const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tWkbRj9A.js","./BIrC8msD.js","./CllBwr6u.js","./BFe423r-.js","./g.CetD1WXK.css","./BzxAud7u.js","./yMhar15W.js","./BG5RZlNj.js","./D-ymRKcr.js","./Bf6vCITm.js","./BLH_OBOE.js","./BJ_FUIvS.js","./BeWykZGq.js","./DKvywx1I.js","./DLtHs6mO.js","./CHspwnn2.js","./CB_xpAlw.js","./BNPqFdhT.js","./DnyFjy8M.js","./Carousel.tAEy4inf.css","./DKIM0fbK.js","./x_rD_Ya3.js","./BvykmXur.js","./B_-yPp6t.js","./DKpHyiNA.js","./J7m4gNb5.js","./Bg1vyK2e.js","./kZokfpnf.js","./I0VJT_ll.js","./DBgZQ_Yy.js","./DZgYUweN.js","./DYa1sC2w.js","./CZ5j6Ozl.js","./DZ7Vp0La.js","./CXmVquVF.js","./Searchbox.7Ue5gL_5.css","./BuZ3w6BV.js","./CcJ8-4_1.js","./BJBYZgoC.js","./CqSkmGQe.js","./Footer.oLHHz4Eu.css","./15coxRYL.js","./BJkBcKOf.js","./Button.BVzTBofY.css","./CTASection.DHDfQRBd.css","./index.HzTonhft.css","./BKjUstMB.js","./BpZAxmQa.js","./C6YYMQ2N.js","./NfdEvAMu.js","./index.C7_FIYXD.css","./THRlnAvc.js","./qd_Bmoc2.js","./BLX8u6Cl.js","./index.ClrJKV1S.css","./YCIOwWHL.js","./Mw8ES-Og.js","./IconCSS.CeFK9RwE.css","./C2eJEqzx.js","./custom.C44L-8sj.css","./D1K7Jqx0.js"])))=>i.map(i=>d[i]); var IA=Object.defineProperty;var Zy=e=>{throw TypeError(e)};var OA=(e,t,n)=>t in e?IA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ln=(e,t,n)=>OA(e,typeof t!="symbol"?t+"":t,n),RA=(e,t,n)=>t.has(e)||Zy("Cannot "+n);var Ea=(e,t,n)=>(RA(e,t,"read from private field"),n?n.call(e):t.get(e)),Xy=(e,t,n)=>t.has(e)?Zy("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(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 r(o){if(o.ep)return;o.ep=!0;const s=n(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 Yg(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ge={},Ii=[],ar=()=>{},LA=()=>!1,fc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zg=e=>e.startsWith("onUpdate:"),jt=Object.assign,Xg=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},PA=Object.prototype.hasOwnProperty,Ze=(e,t)=>PA.call(e,t),he=Array.isArray,Oi=e=>dc(e)==="[object Map]",Sw=e=>dc(e)==="[object Set]",NA=e=>dc(e)==="[object RegExp]",ye=e=>typeof e=="function",ft=e=>typeof e=="string",go=e=>typeof e=="symbol",at=e=>e!==null&&typeof e=="object",Jg=e=>(at(e)||ye(e))&&ye(e.then)&&ye(e.catch),Ew=Object.prototype.toString,dc=e=>Ew.call(e),MA=e=>dc(e).slice(8,-1),xw=e=>dc(e)==="[object Object]",Qg=e=>ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ri=Yg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Wf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},DA=/-(\w)/g,Dn=Wf(e=>e.replace(DA,(t,n)=>n?n.toUpperCase():"")),$A=/\B([A-Z])/g,mo=Wf(e=>e.replace($A,"-$1").toLowerCase()),zf=Wf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wd=Wf(e=>e?`on${zf(e)}`:""),An=(e,t)=>!Object.is(e,t),Li=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},uh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tw=e=>{const t=ft(e)?Number(e):NaN;return isNaN(t)?e:t};let Jy;const Gf=()=>Jy||(Jy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ls(e){if(he(e)){const t={};for(let n=0;n{if(n){const r=n.split(UA);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qe(e){let t="";if(ft(e))t=e;else if(he(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Fo=e=>ft(e)?e:e==null?"":he(e)||at(e)&&(e.toString===Ew||!ye(e.toString))?Aw(e)?Fo(e.value):JSON.stringify(e,Iw,2):String(e),Iw=(e,t)=>Aw(t)?Iw(e,t.value):Oi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[zd(r,s)+" =>"]=o,n),{})}:Sw(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zd(n))}:go(t)?zd(t):at(t)&&!he(t)&&!xw(t)?String(t):t,zd=(e,t="")=>{var n;return go(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let yn;class Ow{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=yn,!t&&yn&&(this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(rl){let t=rl;for(rl=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nl;){let t=nl;for(nl=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Nw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Mw(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),nm(r),WA(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function fh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Dw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Dw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===El))return;e.globalVersion=El;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!fh(e)){e.flags&=-3;return}const n=ot,r=lr;ot=e,lr=!0;try{Nw(e);const o=e.fn(e._value);(t.version===0||An(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=n,lr=r,Mw(e),e.flags&=-3}}function nm(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)nm(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function WA(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let lr=!0;const $w=[];function Xo(){$w.push(lr),lr=!1}function Jo(){const e=$w.pop();lr=e===void 0?!0:e}function e_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ot;ot=void 0;try{t()}finally{ot=n}}}let El=0;class zA{constructor(t,n){this.sub=t,this.dep=n,this.version=n.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(!ot||!lr||ot===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ot)n=this.activeLink=new zA(ot,this),ot.deps?(n.prevDep=ot.depsTail,ot.depsTail.nextDep=n,ot.depsTail=n):ot.deps=ot.depsTail=n,Fw(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ot.depsTail,n.nextDep=void 0,ot.depsTail.nextDep=n,ot.depsTail=n,ot.deps===n&&(ot.deps=r)}return n}trigger(t){this.version++,El++,this.notify(t)}notify(t){em();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{tm()}}}function Fw(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Fw(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $u=new WeakMap,ks=Symbol(""),dh=Symbol(""),xl=Symbol("");function on(e,t,n){if(lr&&ot){let r=$u.get(e);r||$u.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new qf),o.map=r,o.key=n),o.track()}}function eo(e,t,n,r,o,s){const i=$u.get(e);if(!i){El++;return}const a=l=>{l&&l.trigger()};if(em(),t==="clear")i.forEach(a);else{const l=he(e),c=l&&Qg(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===xl||!go(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(xl)),t){case"add":l?c&&a(i.get("length")):(a(i.get(ks)),Oi(e)&&a(i.get(dh)));break;case"delete":l||(a(i.get(ks)),Oi(e)&&a(i.get(dh)));break;case"set":Oi(e)&&a(i.get(ks));break}}tm()}function GA(e,t){const n=$u.get(e);return n&&n.get(t)}function ii(e){const t=Me(e);return t===e?t:(on(t,"iterate",xl),Gn(e)?t:t.map(sn))}function Kf(e){return on(e=Me(e),"iterate",xl),e}const qA={__proto__:null,[Symbol.iterator](){return qd(this,Symbol.iterator,sn)},concat(...e){return ii(this).concat(...e.map(t=>he(t)?ii(t):t))},entries(){return qd(this,"entries",e=>(e[1]=sn(e[1]),e))},every(e,t){return Vr(this,"every",e,t,void 0,arguments)},filter(e,t){return Vr(this,"filter",e,t,n=>n.map(sn),arguments)},find(e,t){return Vr(this,"find",e,t,sn,arguments)},findIndex(e,t){return Vr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vr(this,"findLast",e,t,sn,arguments)},findLastIndex(e,t){return Vr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Kd(this,"includes",e)},indexOf(...e){return Kd(this,"indexOf",e)},join(e){return ii(this).join(e)},lastIndexOf(...e){return Kd(this,"lastIndexOf",e)},map(e,t){return Vr(this,"map",e,t,void 0,arguments)},pop(){return xa(this,"pop")},push(...e){return xa(this,"push",e)},reduce(e,...t){return t_(this,"reduce",e,t)},reduceRight(e,...t){return t_(this,"reduceRight",e,t)},shift(){return xa(this,"shift")},some(e,t){return Vr(this,"some",e,t,void 0,arguments)},splice(...e){return xa(this,"splice",e)},toReversed(){return ii(this).toReversed()},toSorted(e){return ii(this).toSorted(e)},toSpliced(...e){return ii(this).toSpliced(...e)},unshift(...e){return xa(this,"unshift",e)},values(){return qd(this,"values",sn)}};function qd(e,t,n){const r=Kf(e),o=r[t]();return r!==e&&!Gn(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=n(s.value)),s}),o}const KA=Array.prototype;function Vr(e,t,n,r,o,s){const i=Kf(e),a=i!==e&&!Gn(e),l=i[t];if(l!==KA[t]){const f=l.apply(e,s);return a?sn(f):f}let c=n;i!==e&&(a?c=function(f,d){return n.call(this,sn(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(i,c,r);return a&&o?o(u):u}function t_(e,t,n,r){const o=Kf(e);let s=n;return o!==e&&(Gn(e)?n.length>3&&(s=function(i,a,l){return n.call(this,i,a,l,e)}):s=function(i,a,l){return n.call(this,i,sn(a),l,e)}),o[t](s,...r)}function Kd(e,t,n){const r=Me(e);on(r,"iterate",xl);const o=r[t](...n);return(o===-1||o===!1)&&sm(n[0])?(n[0]=Me(n[0]),r[t](...n)):o}function xa(e,t,n=[]){Xo(),em();const r=Me(e)[t].apply(e,n);return tm(),Jo(),r}const YA=Yg("__proto__,__v_isRef,__isVue"),Uw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(go));function ZA(e){go(e)||(e=String(e));const t=Me(this);return on(t,"has",e),t.hasOwnProperty(e)}class jw{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?iI:Ww:s?Vw:Hw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=he(t);if(!o){let l;if(i&&(l=qA[n]))return l;if(n==="hasOwnProperty")return ZA}const a=Reflect.get(t,n,qe(t)?t:r);return(go(n)?Uw.has(n):YA(n))||(o||on(t,"get",n),s)?a:qe(a)?i&&Qg(n)?a:a.value:at(a)?o?Yf(a):Jt(a):a}}class Bw extends jw{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=Ho(s);if(!Gn(r)&&!Ho(r)&&(s=Me(s),r=Me(r)),!he(t)&&qe(s)&&!qe(r))return l?!1:(s.value=r,!0)}const i=he(t)&&Qg(n)?Number(n)e,Pc=e=>Reflect.getPrototypeOf(e);function tI(e,t,n){return function(...r){const o=this.__v_raw,s=Me(o),i=Oi(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?ph:t?hh:sn;return!t&&on(s,"iterate",l?dh:ks),{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 Nc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nI(e,t){const n={get(o){const s=this.__v_raw,i=Me(s),a=Me(o);e||(An(o,a)&&on(i,"get",o),on(i,"get",a));const{has:l}=Pc(i),c=t?ph:e?hh:sn;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&&on(Me(o),"iterate",ks),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,i=Me(s),a=Me(o);return e||(An(o,a)&&on(i,"has",o),on(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?ph:e?hh:sn;return!e&&on(l,"iterate",ks),a.forEach((u,f)=>o.call(s,c(u),c(f),i))}};return jt(n,e?{add:Nc("add"),set:Nc("set"),delete:Nc("delete"),clear:Nc("clear")}:{add(o){!t&&!Gn(o)&&!Ho(o)&&(o=Me(o));const s=Me(this);return Pc(s).has.call(s,o)||(s.add(o),eo(s,"add",o,o)),this},set(o,s){!t&&!Gn(s)&&!Ho(s)&&(s=Me(s));const i=Me(this),{has:a,get:l}=Pc(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?An(s,u)&&eo(i,"set",o,s):eo(i,"add",o,s),this},delete(o){const s=Me(this),{has:i,get:a}=Pc(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&&eo(s,"delete",o,void 0),c},clear(){const o=Me(this),s=o.size!==0,i=o.clear();return s&&eo(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=tI(o,e,t)}),n}function rm(e,t){const n=nI(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ze(n,o)&&o in r?n:r,o,s)}const rI={get:rm(!1,!1)},oI={get:rm(!1,!0)},sI={get:rm(!0,!1)};const Hw=new WeakMap,Vw=new WeakMap,Ww=new WeakMap,iI=new WeakMap;function aI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lI(e){return e.__v_skip||!Object.isExtensible(e)?0:aI(MA(e))}function Jt(e){return Ho(e)?e:om(e,!1,JA,rI,Hw)}function ro(e){return om(e,!1,eI,oI,Vw)}function Yf(e){return om(e,!0,QA,sI,Ww)}function om(e,t,n,r,o){if(!at(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=lI(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Lr(e){return Ho(e)?Lr(e.__v_raw):!!(e&&e.__v_isReactive)}function Ho(e){return!!(e&&e.__v_isReadonly)}function Gn(e){return!!(e&&e.__v_isShallow)}function sm(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function im(e){return!Ze(e,"__v_skip")&&Object.isExtensible(e)&&kw(e,"__v_skip",!0),e}const sn=e=>at(e)?Jt(e):e,hh=e=>at(e)?Yf(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function ue(e){return zw(e,!1)}function fr(e){return zw(e,!0)}function zw(e,t){return qe(e)?e:new cI(e,t)}class cI{constructor(t,n){this.dep=new qf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Me(t),this._value=n?t:sn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Gn(t)||Ho(t);t=r?t:Me(t),An(t,n)&&(this._rawValue=t,this._value=r?t:sn(t),this.dep.trigger())}}function Jq(e){e.dep&&e.dep.trigger()}function He(e){return qe(e)?e.value:e}function mu(e){return ye(e)?e():He(e)}const uI={get:(e,t,n)=>t==="__v_raw"?e:He(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qe(o)&&!qe(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Gw(e){return Lr(e)?e:new Proxy(e,uI)}class fI{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qf,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function qw(e){return new fI(e)}function dI(e){const t=he(e)?new Array(e.length):{};for(const n in e)t[n]=Kw(e,n);return t}class pI{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 GA(Me(this._object),this._key)}}class hI{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 Xs(e,t,n){return qe(e)?e:ye(e)?new hI(e):at(e)&&arguments.length>1?Kw(e,t,n):ue(e)}function Kw(e,t,n){const r=e[t];return qe(r)?r:new pI(e,t,n)}class gI{constructor(t,n,r){this.fn=t,this.setter=n,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=El-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return Pw(this,!0),!0}get value(){const t=this.dep.track();return Dw(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function mI(e,t,n=!1){let r,o;return ye(e)?r=e:(r=e.get,o=e.set),new gI(r,o,n)}const Mc={},Fu=new WeakMap;let ps;function yI(e,t=!1,n=ps){if(n){let r=Fu.get(n);r||Fu.set(n,r=[]),r.push(e)}}function _I(e,t,n=Ge){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,c=v=>o?v:Gn(v)||o===!1||o===0?to(v,1):to(v);let u,f,d,p,g=!1,h=!1;if(qe(e)?(f=()=>e.value,g=Gn(e)):Lr(e)?(f=()=>c(e),g=!0):he(e)?(h=!0,g=e.some(v=>Lr(v)||Gn(v)),f=()=>e.map(v=>{if(qe(v))return v.value;if(Lr(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){Xo();try{d()}finally{Jo()}}const v=ps;ps=u;try{return l?l(e,3,[p]):e(p)}finally{ps=v}}:f=ar,t&&o){const v=f,S=o===!0?1/0:o;f=()=>to(v(),S)}const y=ca(),m=()=>{u.stop(),y&&y.active&&Xg(y.effects,u)};if(s&&t){const v=t;t=(...S)=>{v(...S),m()}}let b=h?new Array(e.length).fill(Mc):Mc;const _=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const S=u.run();if(o||g||(h?S.some((E,x)=>An(E,b[x])):An(S,b))){d&&d();const E=ps;ps=u;try{const x=[S,b===Mc?void 0:h&&b[0]===Mc?[]:b,p];l?l(t,3,x):t(...x),b=S}finally{ps=E}}}else u.run()};return a&&a(_),u=new Rw(f),u.scheduler=i?()=>i(_,!1):_,p=v=>yI(v,!1,u),d=u.onStop=()=>{const v=Fu.get(u);if(v){if(l)l(v,4);else for(const S of v)S();Fu.delete(u)}},t?r?_(!0):b=u.run():i?i(_.bind(null,!0),!0):u.run(),m.pause=u.pause.bind(u),m.resume=u.resume.bind(u),m.stop=m,m}function to(e,t=1/0,n){if(t<=0||!at(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))to(e.value,t,n);else if(he(e))for(let r=0;r{to(r,t,n)});else if(xw(e)){for(const r in e)to(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&to(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function pc(e,t,n,r){try{return r?e(...r):e()}catch(o){ua(o,t,n)}}function dr(e,t,n,r){if(ye(e)){const o=pc(e,t,n,r);return o&&Jg(o)&&o.catch(s=>{ua(s,t,n)}),o}if(he(e)){const o=[];for(let s=0;s>>1,o=_n[r],s=kl(o);s=kl(n)?_n.push(e):_n.splice(bI(t),0,e),e.flags|=1,Zw()}}function Zw(){Uu||(Uu=Yw.then(Xw))}function ju(e){he(e)?Pi.push(...e):To&&e.id===-1?To.splice(pi+1,0,e):e.flags&1||(Pi.push(e),e.flags|=1),Zw()}function n_(e,t,n=Ar+1){for(;n<_n.length;n++){const r=_n[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_n.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Bu(e){if(Pi.length){const t=[...new Set(Pi)].sort((n,r)=>kl(n)-kl(r));if(Pi.length=0,To){To.push(...t);return}for(To=t,pi=0;pie.id==null?e.flags&2?-1:1/0:e.id;function Xw(e){try{for(Ar=0;Ar<_n.length;Ar++){const t=_n[Ar];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ar<_n.length;Ar++){const t=_n[Ar];t&&(t.flags&=-2)}Ar=-1,_n.length=0,Bu(),Uu=null,(_n.length||Pi.length)&&Xw()}}let Ft=null,Jw=null;function Hu(e){const t=Ft;return Ft=e,Jw=e&&e.type.__scopeId||null,t}function Ps(e,t=Ft,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&y_(-1);const s=Hu(t);let i;try{i=e(...o)}finally{Hu(s),r._d&&y_(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Qq(e,t){if(Ft===null)return e;const n=rd(Ft),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,ol=e=>e&&(e.disabled||e.disabled===""),r_=e=>e&&(e.defer||e.defer===""),o_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,s_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,gh=(e,t)=>{const n=e&&e.to;return ft(n)?t?t(n):null:n},tS={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:h,createComment:y}}=c,m=ol(t.props);let{shapeFlag:b,children:_,dynamicChildren:v}=t;if(e==null){const S=t.el=h(""),E=t.anchor=h("");p(S,n,r),p(E,n,r);const x=(I,O)=>{b&16&&(o&&o.isCE&&(o.ce._teleportTarget=I),u(_,I,O,o,s,i,a,l))},N=()=>{const I=t.target=gh(t.props,g),O=nS(I,t,h,p);I&&(i!=="svg"&&o_(I)?i="svg":i!=="mathml"&&s_(I)&&(i="mathml"),m||(x(I,O),yu(t,!1)))};m&&(x(n,E),yu(t,!0)),r_(t.props)?Mt(()=>{N(),t.el.__isMounted=!0},s):N()}else{if(r_(t.props)&&!e.el.__isMounted){Mt(()=>{tS.process(e,t,n,r,o,s,i,a,l,c),delete e.el.__isMounted},s);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,E=t.target=e.target,x=t.targetAnchor=e.targetAnchor,N=ol(e.props),I=N?n:E,O=N?S:x;if(i==="svg"||o_(E)?i="svg":(i==="mathml"||s_(E))&&(i="mathml"),v?(d(e.dynamicChildren,v,I,o,s,i,a),pm(e,t,!0)):l||f(e,t,I,O,o,s,i,a,!1),m)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Dc(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const U=t.target=gh(t.props,g);U&&Dc(t,U,null,c,0)}else N&&Dc(t,E,x,c,1);yu(t,m)}},remove(e,t,n,{um:r,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||!ol(d);for(let g=0;g{e.isMounted=!0}),fa(()=>{e.isUnmounting=!0}),e}const jn=[Function,Array],rS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jn,onEnter:jn,onAfterEnter:jn,onEnterCancelled:jn,onBeforeLeave:jn,onLeave:jn,onAfterLeave:jn,onLeaveCancelled:jn,onBeforeAppear:jn,onAppear:jn,onAfterAppear:jn,onAppearCancelled:jn},oS=e=>{const t=e.subTree;return t.component?oS(t.component):t},xI={name:"BaseTransition",props:rS,setup(e,{slots:t}){const n=en(),r=EI();return()=>{const o=t.default&&aS(t.default(),!0);if(!o||!o.length)return;const s=sS(o),i=Me(e),{mode:a}=i;if(r.isLeaving)return Yd(s);const l=i_(s);if(!l)return Yd(s);let c=mh(l,i,r,n,f=>c=f);l.type!==Dt&&Ui(l,c);let u=n.subTree&&i_(n.subTree);if(u&&u.type!==Dt&&!rr(l,u)&&oS(n).type!==Dt){let f=mh(u,i,r,n);if(Ui(u,f),a==="out-in"&&l.type!==Dt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Yd(s);a==="in-out"&&l.type!==Dt?f.delayLeave=(d,p,g)=>{const h=iS(r,u);h[String(u.key)]=u,d[Co]=()=>{p(),d[Co]=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 sS(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Dt){t=n;break}}return t}const kI=xI;function iS(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function mh(e,t,n,r,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:y,onAppear:m,onAfterAppear:b,onAppearCancelled:_}=t,v=String(e.key),S=iS(n,e),E=(I,O)=>{I&&dr(I,r,9,O)},x=(I,O)=>{const U=O[1];E(I,O),he(I)?I.every(L=>L.length<=1)&&U():I.length<=1&&U()},N={mode:i,persisted:a,beforeEnter(I){let O=l;if(!n.isMounted)if(s)O=y||l;else return;I[Co]&&I[Co](!0);const U=S[v];U&&rr(e,U)&&U.el[Co]&&U.el[Co](),E(O,[I])},enter(I){let O=c,U=u,L=f;if(!n.isMounted)if(s)O=m||c,U=b||u,L=_||f;else return;let G=!1;const oe=I[$c]=ce=>{G||(G=!0,ce?E(L,[I]):E(U,[I]),N.delayedLeave&&N.delayedLeave(),I[$c]=void 0)};O?x(O,[I,oe]):oe()},leave(I,O){const U=String(e.key);if(I[$c]&&I[$c](!0),n.isUnmounting)return O();E(d,[I]);let L=!1;const G=I[Co]=oe=>{L||(L=!0,O(),oe?E(h,[I]):E(g,[I]),I[Co]=void 0,S[U]===e&&delete S[U])};S[U]=e,p?x(p,[I,G]):G()},clone(I){const O=mh(I,t,n,r,o);return o&&o(O),O}};return N}function Yd(e){if(hc(e))return e=uo(e),e.children=null,e}function i_(e){if(!hc(e))return eS(e.type)&&e.children?sS(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ye(n.default))return n.default()}}function Ui(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ui(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 aS(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;sn.value,set:s=>n.value=s})}return n}function Tl(e,t,n,r,o=!1){if(he(e)){e.forEach((g,h)=>Tl(g,t&&(he(t)?t[h]:t),n,r,o));return}if(Uo(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Tl(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?rd(r.component):r.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&&(ft(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=ft(l),h=qe(l);if(g||h){const y=()=>{if(e.f){const m=g?p(l)?f[l]:u[l]:l.value;o?he(m)&&Xg(m,s):he(m)?m.includes(s)||m.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?(y.id=-1,Mt(y,n)):y()}}}let a_=!1;const ai=()=>{a_||(console.error("Hydration completed but contains mismatches."),a_=!0)},CI=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",AI=e=>e.namespaceURI.includes("MathML"),Fc=e=>{if(e.nodeType===1){if(CI(e))return"svg";if(AI(e))return"mathml"}},wi=e=>e.nodeType===8;function II(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(_,v)=>{if(!v.hasChildNodes()){n(null,_,v),Bu(),v._vnode=_;return}f(v.firstChild,_,null,null,null),Bu(),v._vnode=_},f=(_,v,S,E,x,N=!1)=>{N=N||!!v.dynamicChildren;const I=wi(_)&&_.data==="[",O=()=>h(_,v,S,E,x,I),{type:U,ref:L,shapeFlag:G,patchFlag:oe}=v;let ce=_.nodeType;v.el=_,oe===-2&&(N=!1,v.dynamicChildren=null);let q=null;switch(U){case jo:ce!==3?v.children===""?(l(v.el=o(""),i(_),_),q=_):q=O():(_.data!==v.children&&(ai(),_.data=v.children),q=s(_));break;case Dt:b(_)?(q=s(_),m(v.el=_.content.firstChild,_,S)):ce!==8||I?q=O():q=s(_);break;case Mi:if(I&&(_=s(_),ce=_.nodeType),ce===1||ce===3){q=_;const ne=!v.children.length;for(let re=0;re{N=N||!!v.dynamicChildren;const{type:I,props:O,patchFlag:U,shapeFlag:L,dirs:G,transition:oe}=v,ce=I==="input"||I==="option";if(ce||U!==-1){G&&Ir(v,null,S,"created");let q=!1;if(b(_)){q=OS(null,oe)&&S&&S.vnode.props&&S.vnode.props.appear;const re=_.content.firstChild;q&&oe.beforeEnter(re),m(re,_,S),v.el=_=re}if(L&16&&!(O&&(O.innerHTML||O.textContent))){let re=p(_.firstChild,v,_,S,E,x,N);for(;re;){Uc(_,1)||ai();const Se=re;re=re.nextSibling,a(Se)}}else if(L&8){let re=v.children;re[0]===` `&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(re=re.slice(1)),_.textContent!==re&&(Uc(_,0)||ai(),_.textContent=v.children)}if(O){if(ce||!N||U&48){const re=_.tagName.includes("-");for(const Se in O)(ce&&(Se.endsWith("value")||Se==="indeterminate")||fc(Se)&&!Ri(Se)||Se[0]==="."||re)&&r(_,Se,null,O[Se],void 0,S)}else if(O.onClick)r(_,"onClick",null,O.onClick,void 0,S);else if(U&4&&Lr(O.style))for(const re in O.style)O.style[re]}let ne;(ne=O&&O.onVnodeBeforeMount)&&Cn(ne,S,v),G&&Ir(v,null,S,"beforeMount"),((ne=O&&O.onVnodeMounted)||G||q)&&$S(()=>{ne&&Cn(ne,S,v),q&&oe.enter(_),G&&Ir(v,null,S,"mounted")},E)}return _.nextSibling},p=(_,v,S,E,x,N,I)=>{I=I||!!v.dynamicChildren;const O=v.children,U=O.length;for(let L=0;L{const{slotScopeIds:I}=v;I&&(x=x?x.concat(I):I);const O=i(_),U=p(s(_),v,O,S,E,x,N);return U&&wi(U)&&U.data==="]"?s(v.anchor=U):(ai(),l(v.anchor=c("]"),O,U),U)},h=(_,v,S,E,x,N)=>{if(Uc(_.parentElement,1)||ai(),v.el=null,N){const U=y(_);for(;;){const L=s(_);if(L&&L!==U)a(L);else break}}const I=s(_),O=i(_);return a(_),n(null,v,O,I,S,E,Fc(O),x),S&&(S.vnode.el=v.el,nd(S,v.el)),I},y=(_,v="[",S="]")=>{let E=0;for(;_;)if(_=s(_),_&&wi(_)&&(_.data===v&&E++,_.data===S)){if(E===0)return s(_);E--}return _},m=(_,v,S)=>{const E=v.parentNode;E&&E.replaceChild(_,v);let x=S;for(;x;)x.vnode.el===v&&(x.vnode.el=x.subTree.el=_),x=x.parent},b=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[u,f]}const l_="data-allow-mismatch",OI={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Uc(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(l_);)e=e.parentElement;const n=e&&e.getAttribute(l_);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(OI[t])}}Gf().requestIdleCallback;Gf().cancelIdleCallback;function RI(e,t){if(wi(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wi(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Uo=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Zf(e){ye(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,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((y,m)=>{l(h,()=>y(d()),()=>m(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 At({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(g,h,y){const m=s?()=>{const b=s(y,_=>RI(g,_));b&&(h.bum||(h.bum=[])).push(b)}:y;u?m():p().then(()=>!h.isUnmounted&&m())},get __asyncResolved(){return u},setup(){const g=$t;if(lm(g),u)return()=>Zd(u,g);const h=_=>{c=null,ua(_,g,13,!r)};if(a&&g.suspense||Bi)return p().then(_=>()=>Zd(_,g)).catch(_=>(h(_),()=>r?st(r,{error:_}):null));const y=ue(!1),m=ue(),b=ue(!!o);return o&&setTimeout(()=>{b.value=!1},o),i!=null&&setTimeout(()=>{if(!y.value&&!m.value){const _=new Error(`Async component timed out after ${i}ms.`);h(_),m.value=_}},i),p().then(()=>{y.value=!0,g.parent&&hc(g.parent.vnode)&&g.parent.update()}).catch(_=>{h(_),m.value=_}),()=>{if(y.value&&u)return Zd(u,g);if(m.value&&r)return st(r,{error:m.value});if(n&&!b.value)return st(n)}}})}function Zd(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=st(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const hc=e=>e.type.__isKeepAlive,LI={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=en(),r=n.ctx;if(!r.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=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(b,_,v,S,E)=>{const x=b.component;c(b,_,v,0,a),l(x.vnode,b,_,v,x,a,S,b.slotScopeIds,E),Mt(()=>{x.isDeactivated=!1,x.a&&Li(x.a);const N=b.props&&b.props.onVnodeMounted;N&&Cn(N,x.parent,b)},a)},r.deactivate=b=>{const _=b.component;Gu(_.m),Gu(_.a),c(b,d,null,1,a),Mt(()=>{_.da&&Li(_.da);const v=b.props&&b.props.onVnodeUnmounted;v&&Cn(v,_.parent,b),_.isDeactivated=!0},a)};function p(b){Xd(b),u(b,n,a,!0)}function g(b){o.forEach((_,v)=>{const S=Th(_.type);S&&!b(S)&&h(v)})}function h(b){const _=o.get(b);_&&(!i||!rr(_,i))?p(_):i&&Xd(i),o.delete(b),s.delete(b)}Oe(()=>[e.include,e.exclude],([b,_])=>{b&&g(v=>Ya(b,v)),_&&g(v=>!Ya(_,v))},{flush:"post",deep:!0});let y=null;const m=()=>{y!=null&&(qu(n.subTree.type)?Mt(()=>{o.set(y,jc(n.subTree))},n.subTree.suspense):o.set(y,jc(n.subTree)))};return Rn(m),dS(m),fa(()=>{o.forEach(b=>{const{subTree:_,suspense:v}=n,S=jc(_);if(b.type===S.type&&b.key===S.key){Xd(S);const E=S.component.da;E&&Mt(E,v);return}p(b)})}),()=>{if(y=null,!t.default)return i=null;const b=t.default(),_=b[0];if(b.length>1)return i=null,b;if(!Ns(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return i=null,_;let v=jc(_);if(v.type===Dt)return i=null,v;const S=v.type,E=Th(Uo(v)?v.type.__asyncResolved||{}:S),{include:x,exclude:N,max:I}=e;if(x&&(!E||!Ya(x,E))||N&&E&&Ya(N,E))return v.shapeFlag&=-257,i=v,_;const O=v.key==null?S:v.key,U=o.get(O);return v.el&&(v=uo(v),_.shapeFlag&128&&(_.ssContent=v)),y=O,U?(v.el=U.el,v.component=U.component,v.transition&&Ui(v,v.transition),v.shapeFlag|=512,s.delete(O),s.add(O)):(s.add(O),I&&s.size>parseInt(I,10)&&h(s.values().next().value)),v.shapeFlag|=256,i=v,qu(_.type)?_:v}}},PI=LI;function Ya(e,t){return he(e)?e.some(n=>Ya(n,t)):ft(e)?e.split(",").includes(t):NA(e)?(e.lastIndex=0,e.test(t)):!1}function lS(e,t){uS(e,"a",t)}function cS(e,t){uS(e,"da",t)}function uS(e,t,n=$t){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Xf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)hc(o.parent.vnode)&&NI(r,t,n,o),o=o.parent}}function NI(e,t,n,r){const o=Xf(t,e,r,!0);Js(()=>{Xg(r[t],o)},n)}function Xd(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function jc(e){return e.shapeFlag&128?e.ssContent:e}function Xf(e,t,n=$t,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{Xo();const a=Ms(n),l=dr(t,n,e,i);return a(),Jo(),l});return r?o.unshift(s):o.push(s),s}}const yo=e=>(t,n=$t)=>{(!Bi||e==="sp")&&Xf(e,(...r)=>t(...r),n)},cm=yo("bm"),Rn=yo("m"),fS=yo("bu"),dS=yo("u"),fa=yo("bum"),Js=yo("um"),MI=yo("sp"),DI=yo("rtg"),$I=yo("rtc");function pS(e,t=$t){Xf("ec",e,t)}const um="components",FI="directives";function c_(e,t){return fm(um,e,!0,t)||e}const hS=Symbol.for("v-ndc");function Jf(e){return ft(e)?fm(um,e,!1)||e:e||hS}function t9(e){return fm(FI,e)}function fm(e,t,n=!0,r=!1){const o=Ft||$t;if(o){const s=o.type;if(e===um){const a=Th(s,!1);if(a&&(a===t||a===Dn(t)||a===zf(Dn(t))))return s}const i=u_(o[e]||s[e],t)||u_(o.appContext[e],t);return!i&&r?s:i}}function u_(e,t){return e&&(e[t]||e[Dn(t)]||e[zf(Dn(t))])}function Vu(e,t,n,r){let o;const s=n,i=he(e);if(i||ft(e)){const a=i&&Lr(e);let l=!1;a&&(l=!Gn(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=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function Pr(e,t,n={},r,o){if(Ft.ce||Ft.parent&&Uo(Ft.parent)&&Ft.parent.ce)return t!=="default"&&(n.name=t),me(),ut(bt,null,[st("slot",n,r&&r())],64);let s=e[t];s&&s._c&&(s._d=!1),me();const i=s&&gS(s(n)),a=n.key||i&&i.key,l=ut(bt,{key:(a&&!go(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function gS(e){return e.some(t=>Ns(t)?!(t.type===Dt||t.type===bt&&!gS(t.children)):!0)?e:null}const yh=e=>e?BS(e)?rd(e):yh(e.parent):null,sl=jt(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=>yh(e.parent),$root:e=>yh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_S(e),$forceUpdate:e=>e.f||(e.f=()=>{am(e.update)}),$nextTick:e=>e.n||(e.n=qn.bind(e.proxy)),$watch:e=>lO.bind(e)}),Jd=(e,t)=>e!==Ge&&!e.__isScriptSetup&&Ze(e,t),jI={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,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 r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Jd(r,t))return i[t]=1,r[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(n!==Ge&&Ze(n,t))return i[t]=4,n[t];_h&&(i[t]=0)}}const u=sl[t];let f,d;if(u)return t==="$attrs"&&on(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Ge&&Ze(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,Ze(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Jd(o,t)?(o[t]=n,!0):r!==Ge&&Ze(r,t)?(r[t]=n,!0):Ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Ge&&Ze(e,i)||Jd(t,i)||(a=s[0])&&Ze(a,i)||Ze(r,i)||Ze(sl,i)||Ze(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function BI(){return HI().attrs}function HI(){const e=en();return e.setupContext||(e.setupContext=VS(e))}function Wu(e){return he(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function n9(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):jt({},Wu(e),Wu(t))}function mS(e){const t=en();let n=e();return xh(),Jg(n)&&(n=n.catch(r=>{throw Ms(t),r})),[n,()=>Ms(t)]}let _h=!0;function VI(e){const t=_S(e),n=e.proxy,r=e.ctx;_h=!1,t.beforeCreate&&f_(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:y,beforeDestroy:m,beforeUnmount:b,destroyed:_,unmounted:v,render:S,renderTracked:E,renderTriggered:x,errorCaptured:N,serverPrefetch:I,expose:O,inheritAttrs:U,components:L,directives:G,filters:oe}=t;if(c&&WI(c,r,null),i)for(const ne in i){const re=i[ne];ye(re)&&(r[ne]=re.bind(n))}if(o){const ne=o.call(n,n);at(ne)&&(e.data=Jt(ne))}if(_h=!0,s)for(const ne in s){const re=s[ne],Se=ye(re)?re.bind(n,n):ye(re.get)?re.get.bind(n,n):ar,lt=!ye(re)&&ye(re.set)?re.set.bind(n):ar,be=J({get:Se,set:lt});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>be.value,set:We=>be.value=We})}if(a)for(const ne in a)yS(a[ne],r,n,ne);if(l){const ne=ye(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(re=>{Cs(re,ne[re])})}u&&f_(u,e,"c");function q(ne,re){he(re)?re.forEach(Se=>ne(Se.bind(n))):re&&ne(re.bind(n))}if(q(cm,f),q(Rn,d),q(fS,p),q(dS,g),q(lS,h),q(cS,y),q(pS,N),q($I,E),q(DI,x),q(fa,b),q(Js,v),q(MI,I),he(O))if(O.length){const ne=e.exposed||(e.exposed={});O.forEach(re=>{Object.defineProperty(ne,re,{get:()=>n[re],set:Se=>n[re]=Se})})}else e.exposed||(e.exposed={});S&&e.render===ar&&(e.render=S),U!=null&&(e.inheritAttrs=U),L&&(e.components=L),G&&(e.directives=G),I&&lm(e)}function WI(e,t,n=ar){he(e)&&(e=vh(e));for(const r in e){const o=e[r];let s;at(o)?"default"in o?s=Ut(o.from||r,o.default,!0):s=Ut(o.from||r):s=Ut(o),qe(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function f_(e,t,n){dr(he(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function yS(e,t,n,r){let o=r.includes(".")?LS(n,r):()=>n[r];if(ft(e)){const s=t[e];ye(s)&&Oe(o,s)}else if(ye(e))Oe(o,e.bind(n));else if(at(e))if(he(e))e.forEach(s=>yS(s,t,n,r));else{const s=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(s)&&Oe(o,s,e)}}function _S(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>zu(l,c,i,!0)),zu(l,t,i)),at(t)&&s.set(t,l),l}function zu(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&zu(e,s,n,!0),o&&o.forEach(i=>zu(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=zI[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const zI={data:d_,props:p_,emits:p_,methods:Za,computed:Za,beforeCreate:gn,created:gn,beforeMount:gn,mounted:gn,beforeUpdate:gn,updated:gn,beforeDestroy:gn,beforeUnmount:gn,destroyed:gn,unmounted:gn,activated:gn,deactivated:gn,errorCaptured:gn,serverPrefetch:gn,components:Za,directives:Za,watch:qI,provide:d_,inject:GI};function d_(e,t){return t?e?function(){return jt(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function GI(e,t){return Za(vh(e),vh(t))}function vh(e){if(he(e)){const t={};for(let n=0;n1)return n&&ye(t)?t.call(r&&r.proxy):t}}function da(){return!!($t||Ft||Ts)}const bS={},wS=()=>Object.create(bS),SS=e=>Object.getPrototypeOf(e)===bS;function ZI(e,t,n,r=!1){const o={},s=wS();e.propsDefaults=Object.create(null),ES(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:ro(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function XI(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Me(o),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=xS(f,t,!0);jt(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return at(e)&&r.set(e,Ii),Ii;if(he(s))for(let u=0;ue[0]==="_"||e==="$stable",dm=e=>he(e)?e.map(Nn):[Nn(e)],QI=(e,t,n)=>{if(t._n)return t;const r=Ps((...o)=>dm(t(...o)),n);return r._c=!1,r},TS=(e,t,n)=>{const r=e._ctx;for(const o in e){if(kS(o))continue;const s=e[o];if(ye(s))t[o]=QI(o,s,r);else if(s!=null){const i=dm(s);t[o]=()=>i}}},CS=(e,t)=>{const n=dm(t);e.slots.default=()=>n},AS=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},eO=(e,t,n)=>{const r=e.slots=wS();if(e.vnode.shapeFlag&32){const o=t._;o?(AS(r,t,n),n&&kw(r,"_",o,!0)):TS(t,r)}else t&&CS(e,t)},tO=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Ge;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:AS(o,t,n):(s=!t.$stable,TS(t,o)),i=t}else t&&(CS(e,t),i={default:1});if(s)for(const a in o)!kS(a)&&i[a]==null&&delete o[a]},Mt=$S;function nO(e){return IS(e)}function rO(e){return IS(e,II)}function IS(e,t){const n=Gf();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=ar,insertStaticContent:g}=e,h=(T,A,$,B=null,H=null,k=null,C=void 0,D=null,j=!!A.dynamicChildren)=>{if(T===A)return;T&&!rr(T,A)&&(B=W(T),We(T,H,k,!0),T=null),A.patchFlag===-2&&(j=!1,A.dynamicChildren=null);const{type:z,ref:K,shapeFlag:P}=A;switch(z){case jo:y(T,A,$,B);break;case Dt:m(T,A,$,B);break;case Mi:T==null&&b(A,$,B,C);break;case bt:L(T,A,$,B,H,k,C,D,j);break;default:P&1?S(T,A,$,B,H,k,C,D,j):P&6?G(T,A,$,B,H,k,C,D,j):(P&64||P&128)&&z.process(T,A,$,B,H,k,C,D,j,ie)}K!=null&&H&&Tl(K,T&&T.ref,k,A||T,!A)},y=(T,A,$,B)=>{if(T==null)r(A.el=a(A.children),$,B);else{const H=A.el=T.el;A.children!==T.children&&c(H,A.children)}},m=(T,A,$,B)=>{T==null?r(A.el=l(A.children||""),$,B):A.el=T.el},b=(T,A,$,B)=>{[T.el,T.anchor]=g(T.children,A,$,B,T.el,T.anchor)},_=({el:T,anchor:A},$,B)=>{let H;for(;T&&T!==A;)H=d(T),r(T,$,B),T=H;r(A,$,B)},v=({el:T,anchor:A})=>{let $;for(;T&&T!==A;)$=d(T),o(T),T=$;o(A)},S=(T,A,$,B,H,k,C,D,j)=>{A.type==="svg"?C="svg":A.type==="math"&&(C="mathml"),T==null?E(A,$,B,H,k,C,D,j):I(T,A,H,k,C,D,j)},E=(T,A,$,B,H,k,C,D)=>{let j,z;const{props:K,shapeFlag:P,transition:F,dirs:ee}=T;if(j=T.el=i(T.type,k,K&&K.is,K),P&8?u(j,T.children):P&16&&N(T.children,j,null,B,H,Qd(T,k),C,D),ee&&Ir(T,null,B,"created"),x(j,T,T.scopeId,C,B),K){for(const Le in K)Le!=="value"&&!Ri(Le)&&s(j,Le,null,K[Le],k,B);"value"in K&&s(j,"value",null,K.value,k),(z=K.onVnodeBeforeMount)&&Cn(z,B,T)}ee&&Ir(T,null,B,"beforeMount");const de=OS(H,F);de&&F.beforeEnter(j),r(j,A,$),((z=K&&K.onVnodeMounted)||de||ee)&&Mt(()=>{z&&Cn(z,B,T),de&&F.enter(j),ee&&Ir(T,null,B,"mounted")},H)},x=(T,A,$,B,H)=>{if($&&p(T,$),B)for(let k=0;k{for(let z=j;z{const D=A.el=T.el;let{patchFlag:j,dynamicChildren:z,dirs:K}=A;j|=T.patchFlag&16;const P=T.props||Ge,F=A.props||Ge;let ee;if($&&ls($,!1),(ee=F.onVnodeBeforeUpdate)&&Cn(ee,$,A,T),K&&Ir(A,T,$,"beforeUpdate"),$&&ls($,!0),(P.innerHTML&&F.innerHTML==null||P.textContent&&F.textContent==null)&&u(D,""),z?O(T.dynamicChildren,z,D,$,B,Qd(A,H),k):C||re(T,A,D,null,$,B,Qd(A,H),k,!1),j>0){if(j&16)U(D,P,F,$,H);else if(j&2&&P.class!==F.class&&s(D,"class",null,F.class,H),j&4&&s(D,"style",P.style,F.style,H),j&8){const de=A.dynamicProps;for(let Le=0;Le{ee&&Cn(ee,$,A,T),K&&Ir(A,T,$,"updated")},B)},O=(T,A,$,B,H,k,C)=>{for(let D=0;D{if(A!==$){if(A!==Ge)for(const k in A)!Ri(k)&&!(k in $)&&s(T,k,A[k],null,H,B);for(const k in $){if(Ri(k))continue;const C=$[k],D=A[k];C!==D&&k!=="value"&&s(T,k,D,C,H,B)}"value"in $&&s(T,"value",A.value,$.value,H)}},L=(T,A,$,B,H,k,C,D,j)=>{const z=A.el=T?T.el:a(""),K=A.anchor=T?T.anchor:a("");let{patchFlag:P,dynamicChildren:F,slotScopeIds:ee}=A;ee&&(D=D?D.concat(ee):ee),T==null?(r(z,$,B),r(K,$,B),N(A.children||[],$,K,H,k,C,D,j)):P>0&&P&64&&F&&T.dynamicChildren?(O(T.dynamicChildren,F,$,H,k,C,D),(A.key!=null||H&&A===H.subTree)&&pm(T,A,!0)):re(T,A,$,K,H,k,C,D,j)},G=(T,A,$,B,H,k,C,D,j)=>{A.slotScopeIds=D,T==null?A.shapeFlag&512?H.ctx.activate(A,$,B,C,j):oe(A,$,B,H,k,C,j):ce(T,A,j)},oe=(T,A,$,B,H,k,C)=>{const D=T.component=EO(T,B,H);if(hc(T)&&(D.ctx.renderer=ie),xO(D,!1,C),D.asyncDep){if(H&&H.registerDep(D,q,C),!T.el){const j=D.subTree=st(Dt);m(null,j,A,$)}}else q(D,T,A,$,H,k,C)},ce=(T,A,$)=>{const B=A.component=T.component;if(pO(T,A,$))if(B.asyncDep&&!B.asyncResolved){ne(B,A,$);return}else B.next=A,B.update();else A.el=T.el,B.vnode=A},q=(T,A,$,B,H,k,C)=>{const D=()=>{if(T.isMounted){let{next:P,bu:F,u:ee,parent:de,vnode:Le}=T;{const Ht=RS(T);if(Ht){P&&(P.el=Le.el,ne(T,P,C)),Ht.asyncDep.then(()=>{T.isUnmounted||D()});return}}let Pe=P,gt;ls(T,!1),P?(P.el=Le.el,ne(T,P,C)):P=Le,F&&Li(F),(gt=P.props&&P.props.onVnodeBeforeUpdate)&&Cn(gt,de,P,Le),ls(T,!0);const Tt=ep(T),qt=T.subTree;T.subTree=Tt,h(qt,Tt,f(qt.el),W(qt),T,H,k),P.el=Tt.el,Pe===null&&nd(T,Tt.el),ee&&Mt(ee,H),(gt=P.props&&P.props.onVnodeUpdated)&&Mt(()=>Cn(gt,de,P,Le),H)}else{let P;const{el:F,props:ee}=A,{bm:de,m:Le,parent:Pe,root:gt,type:Tt}=T,qt=Uo(A);if(ls(T,!1),de&&Li(de),!qt&&(P=ee&&ee.onVnodeBeforeMount)&&Cn(P,Pe,A),ls(T,!0),F&&we){const Ht=()=>{T.subTree=ep(T),we(F,T.subTree,T,H,null)};qt&&Tt.__asyncHydrate?Tt.__asyncHydrate(F,T,Ht):Ht()}else{gt.ce&>.ce._injectChildStyle(Tt);const Ht=T.subTree=ep(T);h(null,Ht,$,B,T,H,k),A.el=Ht.el}if(Le&&Mt(Le,H),!qt&&(P=ee&&ee.onVnodeMounted)){const Ht=A;Mt(()=>Cn(P,Pe,Ht),H)}(A.shapeFlag&256||Pe&&Uo(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&T.a&&Mt(T.a,H),T.isMounted=!0,A=$=B=null}};T.scope.on();const j=T.effect=new Rw(D);T.scope.off();const z=T.update=j.run.bind(j),K=T.job=j.runIfDirty.bind(j);K.i=T,K.id=T.uid,j.scheduler=()=>am(K),ls(T,!0),z()},ne=(T,A,$)=>{A.component=T;const B=T.vnode.props;T.vnode=A,T.next=null,XI(T,A.props,B,$),tO(T,A.children,$),Xo(),n_(T),Jo()},re=(T,A,$,B,H,k,C,D,j=!1)=>{const z=T&&T.children,K=T?T.shapeFlag:0,P=A.children,{patchFlag:F,shapeFlag:ee}=A;if(F>0){if(F&128){lt(z,P,$,B,H,k,C,D,j);return}else if(F&256){Se(z,P,$,B,H,k,C,D,j);return}}ee&8?(K&16&&ht(z,H,k),P!==z&&u($,P)):K&16?ee&16?lt(z,P,$,B,H,k,C,D,j):ht(z,H,k,!0):(K&8&&u($,""),ee&16&&N(P,$,B,H,k,C,D,j))},Se=(T,A,$,B,H,k,C,D,j)=>{T=T||Ii,A=A||Ii;const z=T.length,K=A.length,P=Math.min(z,K);let F;for(F=0;FK?ht(T,H,k,!0,!1,P):N(A,$,B,H,k,C,D,j,P)},lt=(T,A,$,B,H,k,C,D,j)=>{let z=0;const K=A.length;let P=T.length-1,F=K-1;for(;z<=P&&z<=F;){const ee=T[z],de=A[z]=j?Ao(A[z]):Nn(A[z]);if(rr(ee,de))h(ee,de,$,null,H,k,C,D,j);else break;z++}for(;z<=P&&z<=F;){const ee=T[P],de=A[F]=j?Ao(A[F]):Nn(A[F]);if(rr(ee,de))h(ee,de,$,null,H,k,C,D,j);else break;P--,F--}if(z>P){if(z<=F){const ee=F+1,de=eeF)for(;z<=P;)We(T[z],H,k,!0),z++;else{const ee=z,de=z,Le=new Map;for(z=de;z<=F;z++){const Kt=A[z]=j?Ao(A[z]):Nn(A[z]);Kt.key!=null&&Le.set(Kt.key,z)}let Pe,gt=0;const Tt=F-de+1;let qt=!1,Ht=0;const un=new Array(Tt);for(z=0;z=Tt){We(Kt,H,k,!0);continue}let En;if(Kt.key!=null)En=Le.get(Kt.key);else for(Pe=de;Pe<=F;Pe++)if(un[Pe-de]===0&&rr(Kt,A[Pe])){En=Pe;break}En===void 0?We(Kt,H,k,!0):(un[En-de]=z+1,En>=Ht?Ht=En:qt=!0,h(Kt,A[En],$,null,H,k,C,D,j),gt++)}const Br=qt?oO(un):Ii;for(Pe=Br.length-1,z=Tt-1;z>=0;z--){const Kt=de+z,En=A[Kt],Ic=Kt+1{const{el:k,type:C,transition:D,children:j,shapeFlag:z}=T;if(z&6){be(T.component.subTree,A,$,B);return}if(z&128){T.suspense.move(A,$,B);return}if(z&64){C.move(T,A,$,ie);return}if(C===bt){r(k,A,$);for(let P=0;PD.enter(k),H);else{const{leave:P,delayLeave:F,afterLeave:ee}=D,de=()=>r(k,A,$),Le=()=>{P(k,()=>{de(),ee&&ee()})};F?F(k,de,Le):Le()}else r(k,A,$)},We=(T,A,$,B=!1,H=!1)=>{const{type:k,props:C,ref:D,children:j,dynamicChildren:z,shapeFlag:K,patchFlag:P,dirs:F,cacheIndex:ee}=T;if(P===-2&&(H=!1),D!=null&&Tl(D,null,$,T,!0),ee!=null&&(A.renderCache[ee]=void 0),K&256){A.ctx.deactivate(T);return}const de=K&1&&F,Le=!Uo(T);let Pe;if(Le&&(Pe=C&&C.onVnodeBeforeUnmount)&&Cn(Pe,A,T),K&6)ze(T.component,$,B);else{if(K&128){T.suspense.unmount($,B);return}de&&Ir(T,null,A,"beforeUnmount"),K&64?T.type.remove(T,A,$,ie,B):z&&!z.hasOnce&&(k!==bt||P>0&&P&64)?ht(z,A,$,!1,!0):(k===bt&&P&384||!H&&K&16)&&ht(j,A,$),B&&je(T)}(Le&&(Pe=C&&C.onVnodeUnmounted)||de)&&Mt(()=>{Pe&&Cn(Pe,A,T),de&&Ir(T,null,A,"unmounted")},$)},je=T=>{const{type:A,el:$,anchor:B,transition:H}=T;if(A===bt){tn($,B);return}if(A===Mi){v(T);return}const k=()=>{o($),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(T.shapeFlag&1&&H&&!H.persisted){const{leave:C,delayLeave:D}=H,j=()=>C($,k);D?D(T.el,k,j):j()}else k()},tn=(T,A)=>{let $;for(;T!==A;)$=d(T),o(T),T=$;o(A)},ze=(T,A,$)=>{const{bum:B,scope:H,job:k,subTree:C,um:D,m:j,a:z}=T;Gu(j),Gu(z),B&&Li(B),H.stop(),k&&(k.flags|=8,We(C,T,A,$)),D&&Mt(D,A),Mt(()=>{T.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&T.asyncDep&&!T.asyncResolved&&T.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ht=(T,A,$,B=!1,H=!1,k=0)=>{for(let C=k;C{if(T.shapeFlag&6)return W(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const A=d(T.anchor||T.el),$=A&&A[Qw];return $?d($):A};let Q=!1;const X=(T,A,$)=>{T==null?A._vnode&&We(A._vnode,null,null,!0):h(A._vnode||null,T,A,null,null,null,$),A._vnode=T,Q||(Q=!0,n_(),Bu(),Q=!1)},ie={p:h,um:We,m:be,r:je,mt:oe,mc:N,pc:re,pbc:O,n:W,o:e};let te,we;return t&&([te,we]=t(ie)),{render:X,hydrate:te,createApp:YI(X,te)}}function Qd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ls({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function OS(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pm(e,t,n=!1){const r=e.children,o=t.children;if(he(r)&&he(o))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function RS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:RS(t)}function Gu(e){if(e)for(let t=0;tUt(sO);function Qf(e,t){return ed(e,null,t)}function aO(e,t){return ed(e,null,{flush:"sync"})}function Oe(e,t,n){return ed(e,t,n)}function ed(e,t,n=Ge){const{immediate:r,deep:o,flush:s,once:i}=n,a=jt({},n),l=t&&r||!t&&s!=="post";let c;if(Bi){if(s==="sync"){const p=iO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=ar,p.resume=ar,p.pause=ar,p}}const u=$t;a.call=(p,g,h)=>dr(p,u,g,h);let f=!1;s==="post"?a.scheduler=p=>{Mt(p,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(p,g)=>{g?p():am(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=_I(e,t,a);return Bi&&(c?c.push(d):l&&d()),d}function lO(e,t,n){const r=this.proxy,o=ft(e)?e.includes(".")?LS(r,e):()=>r[e]:e.bind(r,r);let s;ye(t)?s=t:(s=t.handler,n=t);const i=Ms(this),a=ed(o,s.bind(r),n);return i(),a}function LS(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let u,f=Ge,d;return aO(()=>{const p=e[o];An(u,p)&&(u=p,c())}),{get(){return l(),n.get?n.get(u):u},set(p){const g=n.set?n.set(p):p;if(!An(g,u)&&!(f!==Ge&&An(p,f)))return;const h=r.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()),r.emit(`update:${t}`,g),An(p,g)&&An(p,f)&&!An(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 PS=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Dn(t)}Modifiers`]||e[`${mo(t)}Modifiers`];function cO(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ge;let o=n;const s=t.startsWith("update:"),i=s&&PS(r,t.slice(7));i&&(i.trim&&(o=n.map(u=>ft(u)?u.trim():u)),i.number&&(o=n.map(uh)));let a,l=r[a=Wd(t)]||r[a=Wd(Dn(t))];!l&&s&&(l=r[a=Wd(mo(t))]),l&&dr(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,dr(c,e,6,o)}}function NS(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ye(e)){const l=c=>{const u=NS(c,t,!0);u&&(a=!0,jt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(at(e)&&r.set(e,null),null):(he(s)?s.forEach(l=>i[l]=null):jt(i,s),at(e)&&r.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,mo(t))||Ze(e,t))}function ep(e){const{type:t,vnode:n,proxy:r,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,y=Hu(e);let m,b;try{if(n.shapeFlag&4){const v=o||r,S=v;m=Nn(c.call(S,v,u,f,p,d,g)),b=a}else{const v=t;m=Nn(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),b=t.props?a:fO(a)}}catch(v){il.length=0,ua(v,e,1),m=st(Dt)}let _=m;if(b&&h!==!1){const v=Object.keys(b),{shapeFlag:S}=_;v.length&&S&7&&(s&&v.some(Zg)&&(b=dO(b,s)),_=uo(_,b,!1,!0))}return n.dirs&&(_=uo(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Ui(_,n.transition),m=_,Hu(y),m}function uO(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||fc(n))&&((t||(t={}))[n]=e[n]);return t},dO=(e,t)=>{const n={};for(const r in e)(!Zg(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function pO(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?g_(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let wh=0;const hO={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,l,c){if(e==null)gO(t,n,r,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}mO(e,t,n,r,o,i,a,l,c)}},hydrate:yO,normalize:_O},MS=hO;function Cl(e,t){const n=e.props&&e.props[t];ye(n)&&n()}function gO(e,t,n,r,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=DS(e,o,r,t,f,n,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?(Cl(e,"onPending"),Cl(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,s,i),Ni(d,e.ssFallback)):d.resolve(!1,!0)}function mO(e,t,n,r,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:y,isHydrating:m}=f;if(h)f.pendingBranch=d,rr(d,h)?(l(h,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():y&&(m||(l(g,p,n,r,o,null,s,i,a),Ni(f,p)))):(f.pendingId=wh++,m?(f.isHydrating=!1,f.activeBranch=h):c(h,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(g,p,n,r,o,null,s,i,a),Ni(f,p))):g&&rr(d,g)?(l(g,d,n,r,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&&rr(d,g))l(g,d,n,r,o,f,s,i,a),Ni(f,d);else if(Cl(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=wh++,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 DS(e,t,n,r,o,s,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:g,o:{parentNode:h,remove:y}}=c;let m;const b=vO(e);b&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const _=e.props?Tw(e.props.timeout):void 0,v=s,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:o,deps:0,pendingId:wh++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,x=!1){const{vnode:N,activeBranch:I,pendingBranch:O,pendingId:U,effects:L,parentComponent:G,container:oe}=S;let ce=!1;S.isHydrating?S.isHydrating=!1:E||(ce=I&&O.transition&&O.transition.mode==="out-in",ce&&(I.transition.afterLeave=()=>{U===S.pendingId&&(d(O,oe,s===v?g(I):s,0),ju(L))}),I&&(h(I.el)===oe&&(s=g(I)),p(I,G,S,!0)),ce||d(O,oe,s,0)),Ni(S,O),S.pendingBranch=null,S.isInFallback=!1;let q=S.parent,ne=!1;for(;q;){if(q.pendingBranch){q.effects.push(...L),ne=!0;break}q=q.parent}!ne&&!ce&&ju(L),S.effects=[],b&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),Cl(N,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:x,activeBranch:N,parentComponent:I,container:O,namespace:U}=S;Cl(x,"onFallback");const L=g(N),G=()=>{S.isInFallback&&(f(null,E,O,L,I,null,U,a,l),Ni(S,E))},oe=E.transition&&E.transition.mode==="out-in";oe&&(N.transition.afterLeave=G),S.isInFallback=!0,p(N,I,null,!0),oe||G()},move(E,x,N){S.activeBranch&&d(S.activeBranch,E,x,N),S.container=E},next(){return S.activeBranch&&g(S.activeBranch)},registerDep(E,x,N){const I=!!S.pendingBranch;I&&S.deps++;const O=E.vnode.el;E.asyncDep.catch(U=>{ua(U,E,0)}).then(U=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:L}=E;kh(E,U),O&&(L.el=O);const G=!O&&E.subTree.el;x(E,L,h(O||E.subTree.el),O?null:g(E.subTree),S,i,N),G&&y(G),nd(E,L.el),I&&--S.deps===0&&S.resolve()})},unmount(E,x){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,E,x),S.pendingBranch&&p(S.pendingBranch,n,E,x)}};return S}function yO(e,t,n,r,o,s,i,a,l){const c=t.suspense=DS(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function _O(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=m_(r?n.default:n),e.ssFallback=r?m_(n.fallback):st(Dt)}function m_(e){let t;if(ye(e)){const n=ji&&e._c;n&&(e._d=!1,me()),e=e(),n&&(e._d=!0,t=In,FS())}return he(e)&&(e=uO(e)),e=Nn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function $S(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):ju(e)}function Ni(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,nd(r,o))}function vO(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const bt=Symbol.for("v-fgt"),jo=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),Mi=Symbol.for("v-stc"),il=[];let In=null;function me(e=!1){il.push(In=e?null:[])}function FS(){il.pop(),In=il[il.length-1]||null}let ji=1;function y_(e,t=!1){ji+=e,e<0&&In&&t&&(In.hasOnce=!0)}function US(e){return e.dynamicChildren=ji>0?In||Ii:null,FS(),ji>0&&In&&In.push(e),e}function _t(e,t,n,r,o,s){return US(Mo(e,t,n,r,o,s,!0))}function ut(e,t,n,r,o){return US(st(e,t,n,r,o,!0))}function Ns(e){return e?e.__v_isVNode===!0:!1}function rr(e,t){return e.type===t.type&&e.key===t.key}const jS=({key:e})=>e??null,_u=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ft(e)||qe(e)||ye(e)?{i:Ft,r:e,k:t,f:!!n}:e:null);function Mo(e,t=null,n=null,r=0,o=null,s=e===bt?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jS(t),ref:t&&_u(t),scopeId:Jw,slotScopeIds:null,children:n,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:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ft};return a?(hm(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=ft(n)?8:16),ji>0&&!i&&In&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&In.push(l),l}const st=bO;function bO(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===hS)&&(e=Dt),Ns(e)){const a=uo(e,t,!0);return n&&hm(a,n),ji>0&&!s&&In&&(a.shapeFlag&6?In[In.indexOf(e)]=a:In.push(a)),a.patchFlag=-2,a}if(CO(e)&&(e=e.__vccOpts),t){t=Sh(t);let{class:a,style:l}=t;a&&!ft(a)&&(t.class=Qe(a)),at(l)&&(sm(l)&&!he(l)&&(l=jt({},l)),t.style=Ls(l))}const i=ft(e)?1:qu(e)?128:eS(e)?64:at(e)?4:ye(e)?2:0;return Mo(e,t,n,r,o,i,s,!0)}function Sh(e){return e?sm(e)||SS(e)?jt({},e):e:null}function uo(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?an(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&jS(c),ref:t&&t.ref?n&&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!==bt?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&&uo(e.ssContent),ssFallback:e.ssFallback&&uo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ui(u,l.clone(u)),u}function Al(e=" ",t=0){return st(jo,null,e,t)}function o9(e,t){const n=st(Mi,null,e);return n.staticCount=t,n}function Xt(e="",t=!1){return t?(me(),ut(Dt,null,e)):st(Dt,null,e)}function Nn(e){return e==null||typeof e=="boolean"?st(Dt):he(e)?st(bt,null,e.slice()):Ns(e)?Ao(e):st(jo,null,String(e))}function Ao(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:uo(e)}function hm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(he(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),hm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!SS(t)?t._ctx=Ft:o===3&&Ft&&(Ft.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:Ft},n=32):(t=String(t),r&64?(n=16,t=[Al(t)]):n=8);e.children=t,e.shapeFlag|=n}function an(...e){const t={};for(let n=0;n$t||Ft;let Ku,Eh;{const e=Gf(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};Ku=t("__VUE_INSTANCE_SETTERS__",n=>$t=n),Eh=t("__VUE_SSR_SETTERS__",n=>Bi=n)}const Ms=e=>{const t=$t;return Ku(e),e.scope.on(),()=>{e.scope.off(),Ku(t)}},xh=()=>{$t&&$t.scope.off(),Ku(null)};function BS(e){return e.vnode.shapeFlag&4}let Bi=!1;function xO(e,t=!1,n=!1){t&&Eh(t);const{props:r,children:o}=e.vnode,s=BS(e);ZI(e,r,s,t),eO(e,o,n);const i=s?kO(e,t):void 0;return t&&Eh(!1),i}function kO(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jI);const{setup:r}=n;if(r){Xo();const o=e.setupContext=r.length>1?VS(e):null,s=Ms(e),i=pc(r,e,0,[e.props,o]),a=Jg(i);if(Jo(),s(),(a||e.sp)&&!Uo(e)&&lm(e),a){if(i.then(xh,xh),t)return i.then(l=>{kh(e,l)}).catch(l=>{ua(l,e,0)});e.asyncDep=i}else kh(e,i)}else HS(e)}function kh(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:at(t)&&(e.setupState=Gw(t)),HS(e)}function HS(e,t,n){const r=e.type;e.render||(e.render=r.render||ar);{const o=Ms(e);Xo();try{VI(e)}finally{Jo(),o()}}}const TO={get(e,t){return on(e,"get",""),e[t]}};function VS(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,TO),slots:e.slots,emit:e.emit,expose:t}}function rd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gw(im(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sl)return sl[n](e)},has(t,n){return n in t||n in sl}})):e.proxy}function Th(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function CO(e){return ye(e)&&"__vccOpts"in e}const J=(e,t)=>mI(e,t,Bi);function Ct(e,t,n){const r=arguments.length;return r===2?at(t)&&!he(t)?Ns(t)?st(e,null,[t]):st(e,t):st(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ns(n)&&(n=[n]),st(e,t,n))}const AO="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ch;const __=typeof window<"u"&&window.trustedTypes;if(__)try{Ch=__.createPolicy("vue",{createHTML:e=>e})}catch{}const WS=Ch?e=>Ch.createHTML(e):e=>e,IO="http://www.w3.org/2000/svg",OO="http://www.w3.org/1998/Math/MathML",Jr=typeof document<"u"?document:null,v_=Jr&&Jr.createElement("template"),RO={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Jr.createElementNS(IO,e):t==="mathml"?Jr.createElementNS(OO,e):n?Jr.createElement(e,{is:n}):Jr.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Jr.createTextNode(e),createComment:e=>Jr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{v_.innerHTML=WS(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const a=v_.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wo="transition",ka="animation",Il=Symbol("_vtc"),zS={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},LO=jt({},rS,zS),PO=e=>(e.displayName="Transition",e.props=LO,e),GS=PO((e,{slots:t})=>Ct(kI,NO(e),t)),cs=(e,t=[])=>{he(e)?e.forEach(n=>n(...t)):e&&e(...t)},b_=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function NO(e){const t={};for(const L in e)L in zS||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=MO(o),h=g&&g[0],y=g&&g[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:_,onLeave:v,onLeaveCancelled:S,onBeforeAppear:E=m,onAppear:x=b,onAppearCancelled:N=_}=t,I=(L,G,oe,ce)=>{L._enterCancelled=ce,us(L,G?u:a),us(L,G?c:i),oe&&oe()},O=(L,G)=>{L._isLeaving=!1,us(L,f),us(L,p),us(L,d),G&&G()},U=L=>(G,oe)=>{const ce=L?x:b,q=()=>I(G,L,oe);cs(ce,[G,q]),w_(()=>{us(G,L?l:s),Wr(G,L?u:a),b_(ce)||S_(G,r,h,q)})};return jt(t,{onBeforeEnter(L){cs(m,[L]),Wr(L,s),Wr(L,i)},onBeforeAppear(L){cs(E,[L]),Wr(L,l),Wr(L,c)},onEnter:U(!1),onAppear:U(!0),onLeave(L,G){L._isLeaving=!0;const oe=()=>O(L,G);Wr(L,f),L._enterCancelled?(Wr(L,d),k_()):(k_(),Wr(L,d)),w_(()=>{L._isLeaving&&(us(L,f),Wr(L,p),b_(v)||S_(L,r,y,oe))}),cs(v,[L,oe])},onEnterCancelled(L){I(L,!1,void 0,!0),cs(_,[L])},onAppearCancelled(L){I(L,!0,void 0,!0),cs(N,[L])},onLeaveCancelled(L){O(L),cs(S,[L])}})}function MO(e){if(e==null)return null;if(at(e))return[tp(e.enter),tp(e.leave)];{const t=tp(e);return[t,t]}}function tp(e){return Tw(e)}function Wr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Il]||(e[Il]=new Set)).add(t)}function us(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Il];n&&(n.delete(t),n.size||(e[Il]=void 0))}function w_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let DO=0;function S_(e,t,n,r){const o=e._endId=++DO,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=$O(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[g]||"").split(", "),o=r(`${wo}Delay`),s=r(`${wo}Duration`),i=E_(o,s),a=r(`${ka}Delay`),l=r(`${ka}Duration`),c=E_(a,l);let u=null,f=0,d=0;t===wo?i>0&&(u=wo,f=i,d=s.length):t===ka?c>0&&(u=ka,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?wo:ka:null,d=u?u===wo?s.length:l.length:0);const p=u===wo&&/\b(transform|all)(,|$)/.test(r(`${wo}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function E_(e,t){for(;e.lengthx_(n)+x_(e[r])))}function x_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function k_(){return document.body.offsetHeight}function FO(e,t,n){const r=e[Il];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Yu=Symbol("_vod"),qS=Symbol("_vsh"),s9={beforeMount(e,{value:t},{transition:n}){e[Yu]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ta(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ta(e,!0),r.enter(e)):r.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[qS]=!t}const KS=Symbol("");function i9(e){const t=en();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Zu(s,o))},r=()=>{const o=e(t.proxy);t.ce?Zu(t.ce,o):Ah(t.subTree,o),n(o)};fS(()=>{ju(r)}),Rn(()=>{Oe(r,ar,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Js(()=>o.disconnect())})}function Ah(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ah(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zu(e.el,t);else if(e.type===bt)e.children.forEach(n=>Ah(n,t));else if(e.type===Mi){let{el:n,anchor:r}=e;for(;n&&(Zu(n,t),n!==r);)n=n.nextSibling}}function Zu(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[KS]=r}}const UO=/(^|;)\s*display\s*:/;function jO(e,t,n){const r=e.style,o=ft(n);let s=!1;if(n&&!o){if(t)if(ft(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&vu(r,a,"")}else for(const i in t)n[i]==null&&vu(r,i,"");for(const i in n)i==="display"&&(s=!0),vu(r,i,n[i])}else if(o){if(t!==n){const i=r[KS];i&&(n+=";"+i),r.cssText=n,s=UO.test(n)}}else t&&e.removeAttribute("style");Yu in e&&(e[Yu]=s?r.display:"",e[qS]&&(r.display="none"))}const T_=/\s*!important$/;function vu(e,t,n){if(he(n))n.forEach(r=>vu(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=BO(e,t);T_.test(n)?e.setProperty(mo(r),n.replace(T_,""),"important"):e[r]=n}}const C_=["Webkit","Moz","ms"],np={};function BO(e,t){const n=np[t];if(n)return n;let r=Dn(t);if(r!=="filter"&&r in e)return np[t]=r;r=zf(r);for(let o=0;orp||(zO.then(()=>rp=0),rp=Date.now());function qO(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;dr(KO(r,n.value),t,5,[r])};return n.value=e,n.attached=GO(),n}function KO(e,t){if(he(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const P_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,YO=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?FO(e,r,i):t==="style"?jO(e,n,r):fc(t)?Zg(t)||VO(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ZO(e,t,r,i))?(O_(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&I_(e,t,r,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ft(r))?O_(e,Dn(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),I_(e,t,r,i))};function ZO(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&P_(t)&&ye(n));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 P_(t)&&ft(n)?!1:t in e}const N_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?n=>Li(t,n):t};function XO(e){e.target.composing=!0}function M_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const op=Symbol("_assign"),a9={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[op]=N_(o);const s=r||o.props&&o.props.type==="number";hi(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=uh(a)),e[op](a)}),n&&hi(e,"change",()=>{e.value=e.value.trim()}),t||(hi(e,"compositionstart",XO),hi(e,"compositionend",M_),hi(e,"change",M_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[op]=N_(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?uh(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l))}},JO=["ctrl","shift","alt","meta"],QO={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)=>JO.some(n=>e[`${n}Key`]&&!t.includes(n))},sp=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const s=mo(o.key);if(t.some(i=>i===s||eR[i]===s))return e(o)})},YS=jt({patchProp:YO},RO);let al,D_=!1;function ZS(){return al||(al=nO(YS))}function tR(){return al=D_?al:rO(YS),D_=!0,al}const nR=(...e)=>{ZS().render(...e)},rR=(...e)=>{const t=ZS().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=JS(r);if(!o)return;const s=t._component;!ye(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,XS(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},oR=(...e)=>{const t=tR().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=JS(r);if(o)return n(o,!0,XS(o))},t};function XS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function JS(e){return ft(e)?document.querySelector(e):e}const sR=/"(?:_|\\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*:/,iR=/"(?: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*:/,aR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function lR(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){cR(e);return}return t}function cR(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ol(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.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(!aR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(sR.test(e)||iR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,lR)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const QS=/#/g,eE=/&/g,tE=/\//g,uR=/=/g,fR=/\?/g,od=/\+/g,dR=/%5e/gi,pR=/%60/gi,hR=/%7c/gi,gR=/%20/gi,mR=/%252f/gi;function nE(e){return encodeURI(""+e).replace(hR,"|")}function Ih(e){return nE(typeof e=="string"?e:JSON.stringify(e)).replace(od,"%2B").replace(gR,"+").replace(QS,"%23").replace(eE,"%26").replace(pR,"`").replace(dR,"^").replace(tE,"%2F")}function ip(e){return Ih(e).replace(uR,"%3D")}function yR(e){return nE(e).replace(QS,"%23").replace(fR,"%3F").replace(mR,"%2F").replace(eE,"%26").replace(od,"%2B")}function c9(e){return yR(e).replace(tE,"%2F")}function Xu(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function _R(e){return Xu(e.replace(od," "))}function vR(e){return Xu(e.replace(od," "))}function sd(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=_R(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=vR(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function bR(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ip(e)}=${Ih(n)}`).join("&"):`${ip(e)}=${Ih(t)}`:ip(e)}function wR(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>bR(t,e[t])).filter(Boolean).join("&")}const SR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,rE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ER=/^([/\\]\s*){2,}[^/\\]/,xR=/^[\s\0]*(blob|data|javascript|vbscript):$/i,kR=/\/$|\/\?|\/#/,TR=/^\.?\//;function yr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?SR.test(e):rE.test(e)||(t.acceptRelative?ER.test(e):!1)}function CR(e){return!!e&&xR.test(e)}function Oh(e="",t){return t?kR.test(e):e.endsWith("/")}function id(e="",t){if(!t)return(Oh(e)?e.slice(0,-1):e)||"/";if(!Oh(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Rl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Oh(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function AR(e=""){return e.startsWith("/")}function $_(e=""){return AR(e)?e:"/"+e}function IR(e,t){if(oE(t)||yr(e))return e;const n=id(t);return e.startsWith(n)?e:Qs(n,e)}function F_(e,t){if(oE(t))return e;const n=id(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Ll(e,t){const n=aE(e),r={...sd(n.search),...t};return n.search=wR(r),LR(n)}function oE(e){return!e||e==="/"}function OR(e){return e&&e!=="/"}function Qs(e,...t){let n=e||"";for(const r of t.filter(o=>OR(o)))if(n){const o=r.replace(TR,"");n=Rl(n)+o}else n=r;return n}function sE(...e){var i,a,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&yr(r[0]))continue;r.pop(),o--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let s=r.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(c=n[n.length-1])!=null&&c.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function u9(e){return RR(e,"https://")}function RR(e,t){let n=e.match(rE);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function Rh(e,t,n={}){return n.trailingSlash||(e=Rl(e),t=Rl(t)),n.leadingSlash||(e=$_(e),t=$_(t)),n.encoding||(e=Xu(e),t=Xu(t)),e===t}const iE=Symbol.for("ufo:protocolRelative");function aE(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!yr(e,{acceptRelative:!0}))return Lh(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Lh(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u,[iE]:!r}}function Lh(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function LR(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[iE]?(e.protocol||"")+"//":"")+o+s+t+n+r}class PR extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function NR(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())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new PR(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 MR=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function U_(e="GET"){return MR.has(e.toUpperCase())}function DR(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 $R=new Set(["image/svg","application/xml","application/xhtml","application/html"]),FR=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function UR(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return FR.test(t)?"json":$R.has(t)||t.startsWith("text/")?"text":"blob"}function jR(e,t,n,r){const o=BR((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let s;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(s={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:s,params:s,headers:o}}function BR(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(o,s);return r}async function Bc(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const HR=new Set([408,409,425,429,500,502,503,504]),VR=new Set([101,204,205,304]);function lE(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=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=U_(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):HR.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=NR(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){const u={request:l,options:jR(l,c,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Bc(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=IR(u.request,u.options.baseURL)),u.options.query&&(u.request=Ll(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&&U_(u.options.method)&&(DR(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(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 r;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 Bc(u,u.options.onRequestError),await o(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!VR.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||UR(u.response.headers.get("content-type")||"");switch(p){case"json":{const g=await u.response.text(),h=u.options.parseResponse||Ol;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 Bc(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Bc(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={})=>lE({...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")}(),WR=Ju.fetch?(...e)=>Ju.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),zR=Ju.Headers,GR=Ju.AbortController,qR=lE({fetch:WR,Headers:zR,AbortController:GR}),KR=qR,YR=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qu=YR().app,ZR=()=>Qu.baseURL,XR=()=>Qu.buildAssetsDir,JR=(...e)=>sE(cE(),XR(),...e),cE=(...e)=>{const t=Qu.cdnURL||Qu.baseURL;return e.length?sE(t,...e):t};globalThis.__buildAssetsURL=JR,globalThis.__publicAssetsURL=cE;globalThis.$fetch||(globalThis.$fetch=KR.create({baseURL:ZR()}));function Ph(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Ph(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const QR={run:e=>e()},e1=()=>QR,uE=typeof console.createTask<"u"?console.createTask:e1;function t1(e,t){const n=t.shift(),r=uE(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function n1(e,t){const n=t.shift(),r=uE(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function ap(e,t){for(const n of[...e])n(t)}class r1{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,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.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(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ph(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Ph(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(t1,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(n1,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&ap(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&ap(this._after,o)}):(this._after&&o&&ap(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function fE(){return new r1}function o1(e={}){let t,n=!1;const r=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||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;Nh.add(c);try{const u=o?o.run(i,a):a();return n||(t=void 0),await u}finally{Nh.delete(c)}}}}function s1(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=o1({...e,...r})),t[n]}}}const ef=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},j_="__unctx__",i1=ef[j_]||(ef[j_]=s1()),dE=(e,t={})=>i1.get(e,t),B_="__unctx_async_handlers__",Nh=ef[B_]||(ef[B_]=new Set);function zt(e){const t=[];for(const o of Nh){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const f9=!1,Mh=!1,a1=!0,l1=!1,c1={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},d9={value:null,errorValue:null,deep:!0},u1=null,p9={},f1="#__nuxt",gm="nuxt-app",d1="vite:preloadError";function pE(e=gm){return dE(e,{asyncContext:!1})}const p1="__nuxt_plugin";function h1(e){var o;let t=0;const n={_id:e.id||gm||"nuxt-app",_scope:la(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return n.vueApp.version}},payload:ro({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:ro({}),state:Jt({}),once:new Set,_errors:ro({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!ca()?n._scope.run(()=>H_(n,s)):H_(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:ro({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=fE(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const a="$"+s;Hc(n,a,i),Hc(n.vueApp.config.globalProperties,a,i)},Hc(n.vueApp,"$nuxt",n),Hc(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(d1,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Ae);const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function g1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function m1(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function y1(e,t){const n=[],r=[],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)&&!n.includes(f)))??[];if(c.length>0)r.push([new Set(c),l]);else{const f=m1(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.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)g1(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[p1]:!0,_name:t})}function H_(e,t,n){const r=()=>t();return pE(e._id).set(e),e.vueApp.runWithContext(r)}function hE(e){var n;let t;return da()&&(t=(n=en())==null?void 0:n.appContext.app.$nuxt),t||(t=pE(e).tryUse()),t||null}function Ae(e){const t=hE(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function it(e){return Ae().$config}function Hc(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function lp(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 Dh(e,t,n=".",r){if(!lp(t))return Dh(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:lp(i)&&lp(o[s])?o[s]=Dh(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function mm(e){return(...t)=>t.reduce((n,r)=>Dh(n,r,"",e),{})}const gE=mm(),_1=mm((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function v1(e,t){try{return t in e}catch{return!1}}class $h extends Error{constructor(n,r={}){super(n,r);Ln(this,"statusCode",500);Ln(this,"fatal",!1);Ln(this,"unhandled",!1);Ln(this,"statusMessage");Ln(this,"data");Ln(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:Fh(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=mE(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}Ln($h,"__h3_error__",!0);function bu(e){if(typeof e=="string")return new $h(e);if(b1(e))return e;const t=new $h(e.message??e.statusMessage??"",{cause:e.cause||e});if(v1(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=Fh(e.statusCode,t.statusCode):e.status&&(t.statusCode=Fh(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;mE(t.statusMessage)!==n&&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 b1(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const w1=/[^\u0009\u0020-\u007E]/g;function mE(e=""){return e.replace(w1,"")}function Fh(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const S1=Symbol("layout-meta"),gc=Symbol("route"),Bt=()=>{var e;return(e=Ae())==null?void 0:e.$router},ei=()=>da()?Ut(gc,Ae()._route):Ae()._route;const E1=(e,t,n={})=>{const r=Ae(),o=n.global||!1,s=t;if(!s){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}o?r._middleware.global.push(s):r._middleware.named[e]=s},x1=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!1}return!1},Io=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Uh(e):Bt().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(n,l,u),Promise.resolve()}const r=yr(n,{acceptRelative:!0}),o=(t==null?void 0:t.external)||r;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(n,window.location.href);if(l&&CR(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=x1();if(!o&&s){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=aE(e);return{path:l,...c&&{query:sd(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Bt(),a=Ae();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Uh(e){return Ll(e.path||"",e.query||{})+(e.hash||"")}const yE="__nuxt_error",ad=()=>Xs(Ae().payload,"error"),Oo=e=>{const t=ld(e);try{const n=Ae(),r=ad();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},k1=async(e={})=>{const t=Ae(),n=ad();t.callHook("app:error:cleared",e),e.redirect&&await Bt().replace(e.redirect),n.value=u1},_E=e=>!!e&&typeof e=="object"&&yE in e,ld=e=>{const t=bu(e);return Object.defineProperty(t,yE,{value:!0,configurable:!1,writable:!1}),t};function V_(e){const t=C1(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let o=0;o>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const A1=-1,I1=-2,O1=-3,R1=-4,L1=-5,P1=-6;function N1(e,t){return M1(JSON.parse(e),t)}function M1(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===A1)return;if(s===O1)return NaN;if(s===R1)return 1/0;if(s===L1)return-1/0;if(s===P1)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[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 r[s]=c(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const u=new Set;r[s]=u;for(let p=1;p`${oo(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"?oo(e):`${oo(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${oo(e)} ${t}`}},charset:{}};function oo(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:Pl.META.has(t.slice(0,n))||Pl.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function bE(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function jh(e){return Array.isArray(e)?e.map(jh):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[oo(t),jh(n)]))}function wE(e,t={}){const{entrySeparator:n="",keyValueSeparator:r="",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"?wE(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${i}${r}${l}`}).join(n)}function z_(e,t){const n=bE(t),r=oo(e),o=SE(r);if(!ym.has(r))return[{[o]:r,...n}];const s=Object.fromEntries(Object.entries(n).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 SE(e){var r;if(((r=vE[e])==null?void 0:r.metaKey)==="http-equiv"||Pl.HTTP_EQUIV.has(e))return"http-equiv";const t=oo(e),n=t.indexOf(":");return n===-1?"name":Pl.OG.has(t.slice(0,n))?"property":"name"}function V1(e){return H1[e]||oo(e)}function W1(e,t){var n;return t==="refresh"?`${e.seconds};url=${e.url}`:wE(jh(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:r,key:o})=>r===null?"":typeof r=="boolean"?o:void 0,...(n=vE[t])==null?void 0:n.unpack})}function tf(e){const t=[],n={};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}):z_(o,i));continue}if(typeof s=="object"&&s)if(Pl.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 ym.has(oo(o))?t.push(...z_(o,s)):n[o]=bE(s);else n[o]=s}const r=Object.entries(n).map(([o,s])=>{if(o==="charset")return{charset:s===null?"_null":s};const i=SE(o),a=V1(o),l=s===null?"_null":typeof s=="object"?W1(s,o):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":a,content:l}:{[i]:a,content:l}});return[...t,...r].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const z1={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(tf(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...t)}}},G1=["name","property","http-equiv"];function EE(e){const t=e.split(":")[1];return ym.has(t)}function Bh(e){const{props:t,tag:n}=e;if(U1.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of G1)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if($1.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function G_(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,o])=>`${r}:${String(o)}`).join(",")}`}function nf(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let o;if(t&&(o=t(n,e)),Array.isArray(o))return o.map(s=>nf(s,t));if((o==null?void 0:o.constructor)===Object){const s={};for(const i of Object.keys(o))s[i]=nf(o[i],t,i);return s}return o}function q1(e,t){const n=e==="style"?new Map:new Set;function r(o){const s=o.trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(o=>r(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,s])=>{s&&s!=="false"&&(e==="style"?n.set(o.trim(),s):r(o))}),n}function xE(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=q1(n,r);return}if(j1.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="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[n]=JSON.stringify(r)}else e[n]=r;return}const o=String(r),s=n.startsWith("data-");o==="true"||o===""?e.props[n]=s?o:!0:!r&&s&&o==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e}function K1(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=xE({tag:e,props:{}},n);return r.key&&D1.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Y1(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(o,s)=>{for(let i=0;i{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])r.push(K1(o,i))}),r.flat()}const Hh=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,q_={base:-10,title:10},Z1={critical:-8,high:-1,low:2},K_={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}},X1=/@import/,Ca=e=>e===""||e===!0;function J1(e,t){var s;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=Z1[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:K_;if(t.tag in q_)n=q_[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&&(n=K_.meta[i])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?Ca(t.props.async)?n=o.script.async:t.props.src&&!Ca(t.props.defer)&&!Ca(t.props.async)&&t.props.type!=="module"&&!((s=t.props.type)!=null&&s.endsWith("json"))?n=o.script.sync:Ca(t.props.defer)&&t.props.src&&!Ca(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&X1.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+r}function Y_(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function Q1(e={}){var a;const t=fE();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,o=new Map,s=[],i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>Y_(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(){r.delete(f)&&p._poll(!0)},patch(g){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=g,r.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=r.get(g);if(h){const y={tags:Y1(h.input,e.propResolvers||[]).map(m=>Object.assign(m,h.options)),entry:h};await t.callHook("entries:normalize",y),h._tags=y.tags.map((m,b)=>(m._w=J1(i,m),m._p=(h._i<<10)+b,m._d=Bh(m),m))}}let c=!1;l.entries.flatMap(g=>(g._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(Hh).reduce((g,h)=>{const y=String(h._d||h._p);if(!g.has(y))return g.set(y,h);const m=g.get(y);if(((h==null?void 0:h.tagDuplicateStrategy)||(B1.has(h.tag)?"merge":null)||(h.key&&h.key===m.key?"merge":null))==="merge"){const _={...m.props};Object.entries(h.props).forEach(([v,S])=>_[v]=v==="style"?new Map([...m.props.style||new Map,...S]):v==="class"?new Set([...m.props.class||new Set,...S]):S),g.set(y,{...h,props:_})}else h._p>>10===m._p>>10&&EE(h._d)?(g.set(y,Object.assign([...Array.isArray(m)?m:[m],h],h)),c=!0):(h._w===m._w?h._p>m._p:(h==null?void 0:h._w)<(m==null?void 0:m._w))&&g.set(y,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(Hh)),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:y,props:m}=g;if(F1.has(y)&&!(Object.keys(m).length===0&&!g.innerHTML&&!g.textContent)&&!(y==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(y==="script"&&h){if((p=m.type)!=null&&p.endsWith("json")){const b=typeof h=="string"?h:JSON.stringify(h);g.innerHTML=b.replace(/Y_(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const Ro="%separator",eL=new RegExp(`${Ro}(?:\\s*${Ro})*`,"g");function tL(e,t,n=!1){var o;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");r=(o=e[t.substring(0,s)])==null?void 0:o[t.substring(s+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/{if(a===Ro||!s.includes(a))return a;const l=tL(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(Ro)&&(e=e.slice(0,-Ro.length)),e.startsWith(Ro)&&(e=e.slice(Ro.length)),e=e.replace(eL,n||"").trim()),e}const Z_=e=>e.includes(":key")?e:e.split(":").join(":key:"),nL={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const o=String(r);if(o.startsWith("before:")){const s=Z_(o.slice(7)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(o.startsWith("after:")){const s=Z_(o.slice(6)),i=e.tagMap.get(s);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Hh))}}},rL={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 Vh(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>Vh(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await Vh(e[r]);return n}return e}const oL={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(Vh(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},sL={meta:"content",link:"href",htmlAttrs:"lang"},iL=["innerHTML","textContent"],aL=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,o,s;const n=((o=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:o.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((s=e._ssrPayload)==null?void 0:s.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var s;const r=((s=t.get("templateParams"))==null?void 0:s.props)||{},o=r.separator||"|";delete r.separator,r.pageTitle=Vc(r.pageTitle||e._title||"",r,o);for(const i of n){if(i.processTemplateParams===!1)continue;const a=sL[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=Vc(i.props[a],r,o);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of iL)typeof i[l]=="string"&&(i[l]=Vc(i[l],r,o,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=o},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=Vc(n.textContent,e._templateParams,e._separator))}}}),lL=(e,t)=>qe(t)?mu(t):t,_m="usehead";function cL(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(_m,e)}}.install}function kE(){if(da()){const e=Ut(_m);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 TE(e,t={}){const n=t.head||kE();return n.ssr?n.push(e||{},t):uL(n,e,t)}function uL(e,t,n={}){const r=ue(!1);let o;return Qf(()=>{const i=r.value?{}:nf(t,lL);o?o.patch(i):o=e.push(i,n)}),en()&&(fa(()=>{o.dispose()}),cS(()=>{r.value=!0}),lS(()=>{r.value=!1})),o}function fL(e={},t={}){(t.head||kE()).use(z1);const{title:r,titleTemplate:o,...s}=e;return TE({title:r,titleTemplate:o,_flatMeta:s},t)}function CE(e){var n;const t=e||hE();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(da())return Ut(_m)}))}function Ds(e,t={}){const n=CE(t.nuxt);if(n)return TE(e,{head:n,...t})}function h9(e,t={}){const n=CE(t.nuxt);if(n)return fL(e,{head:n,...t})}const dL="modulepreload",pL=function(e,t){return new URL(e,t).href},X_={},Zt=function(t,n,r){let o=Promise.resolve();if(n&&n.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(n.map(c=>{if(c=pL(c,r),c in X_)return;X_[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)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":dL,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 J_(e,t={}){if(!await IE(e))return null;const r=await gL(e,t);return await AE(r)||null}const hL="_payload.json";async function gL(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||yr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=it(),o=t.hash||(t.fresh?Date.now():r.app.buildId),s=r.app.cdnURL,i=s&&await IE(e)?s:r.app.baseURL;return Qs(i,n.pathname,hL+(o?`?${o}`:""))}async function AE(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(OE));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function IE(e=ei().path){return!!Ae().payload.prerenderedAt}let fs=null;async function mL(){var r;if(fs)return fs;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await OE(e.textContent||""),n=e.dataset.src?await AE(e.dataset.src):void 0;return fs={...t,...n,...window.__NUXT__},(r=fs.config)!=null&&r.public&&(fs.config.public=Jt(fs.config.public)),fs}async function OE(e){return await N1(e,Ae()._payloadRevivers)}function yL(e,t){Ae()._payloadRevivers[e]=t}const _L=[["NuxtError",e=>ld(e)],["EmptyShallowRef",e=>fr(e==="_"?void 0:e==="0n"?BigInt(0):Ol(e))],["EmptyRef",e=>ue(e==="_"?void 0:e==="0n"?BigInt(0):Ol(e))],["ShallowRef",e=>fr(e)],["ShallowReactive",e=>ro(e)],["Ref",e=>ue(e)],["Reactive",e=>Jt(e)]],vL=Je({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,o]of _L)yL(r,o);Object.assign(e.payload,([t,n]=zt(()=>e.runWithContext(mL)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function vm(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.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(y=>{const m=s.get(y._d)||0,b={tag:y,id:(m?`${y._d}:${m}`:y._d)||G_(y),shouldRender:!0};return y._d&&EE(y._d)&&s.set(y._d,m+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const g of["body","head"]){const h=(p=n[g])==null?void 0:p.children;for(const y of h){const m=y.tagName.toLowerCase();if(!W_.has(m))continue;const b=xE({tag:m,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((_,v)=>(_[v]=y.getAttribute(v),_),{})||{}});if(b.key=y.getAttribute("data-hid")||void 0,b._d=Bh(b)||G_(b),a.elMap.has(b._d)){let _=1,v=b._d;for(;a.elMap.has(v);)v=`${b._d}:${_++}`;a.elMap.set(v,y)}else a.elMap.set(b._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(g,h,y){const m=`${g}:${h}`;a.sideEffects[m]=y,delete a.pendingSideEffects[m]}function c({id:g,$el:h,tag:y}){const m=y.tag.endsWith("Attrs");a.elMap.set(g,h),m||(y.textContent&&y.textContent!==h.textContent&&(h.textContent=y.textContent),y.innerHTML&&y.innerHTML!==h.innerHTML&&(h.innerHTML=y.innerHTML),l(g,"el",()=>{h==null||h.remove(),a.elMap.delete(g)}));for(const b in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,b))continue;const _=y.props[b];if(b.startsWith("on")&&typeof _=="function"){const S=h==null?void 0:h.dataset;if(S&&S[`${b}fired`]){const E=b.slice(0,-5);_.call(h,new Event(E.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:h).addEventListener(b.substring(2),_.bind(h)),h.setAttribute(`data-${b}`,""));continue}const v=`attr:${b}`;if(b==="class"){if(!_)continue;for(const S of _)m&&l(g,`${v}:${S}`,()=>h.classList.remove(S)),!h.classList.contains(S)&&h.classList.add(S)}else if(b==="style"){if(!_)continue;for(const[S,E]of _)l(g,`${v}:${S}`,()=>{h.style.removeProperty(S)}),h.style.setProperty(S,E)}else _!==!1&&_!==null&&(h.getAttribute(b)!==_&&h.setAttribute(b,_===!0?"":String(_)),m&&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:y,id:m}=g;if(y){if(h.tag==="title"){n.title=h.textContent,l("title","",()=>n.title=a.title);continue}g.$el=g.$el||a.elMap.get(m),g.$el?c(g):W_.has(h.tag)&&u.push(g)}}for(const g of u){const h=g.tag.tagPosition||"head";g.$el=n.createElement(g.tag.tag),c(g),f[h]=f[h]||n.createDocumentFragment(),f[h].appendChild(g.$el)}for(const g of d)await e.hooks.callHook("dom:renderTag",g,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.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 bL(e={}){var r,o,s;const t=((r=e.domOptions)==null?void 0:r.render)||vm;e.document=e.document||(typeof window<"u"?document:void 0);const n=((s=(o=e.document)==null?void 0:o.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return Q1({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function wL(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function SL(e={}){const t=bL({domOptions:{render:wL(()=>vm(t),n=>setTimeout(n,0))},...e});return t.install=cL(t),t}const EL={disableDefaults:!0,disableCapoSorting:!1,plugins:[rL,oL,aL,nL]},xL=Je({name:"nuxt:head",enforce:"pre",setup(e){const t=SL(EL);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await vm(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const gi=typeof document<"u";function RE(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function kL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&RE(e.default)}const Ye=Object.assign;function cp(e,t){const n={};for(const r in t){const o=t[r];n[r]=pr(o)?o.map(e):e(o)}return n}const ll=()=>{},pr=Array.isArray,LE=/#/g,TL=/&/g,CL=/\//g,AL=/=/g,IL=/\?/g,PE=/\+/g,OL=/%5B/g,RL=/%5D/g,NE=/%5E/g,LL=/%60/g,ME=/%7B/g,PL=/%7C/g,DE=/%7D/g,NL=/%20/g;function bm(e){return encodeURI(""+e).replace(PL,"|").replace(OL,"[").replace(RL,"]")}function ML(e){return bm(e).replace(ME,"{").replace(DE,"}").replace(NE,"^")}function Wh(e){return bm(e).replace(PE,"%2B").replace(NL,"+").replace(LE,"%23").replace(TL,"%26").replace(LL,"`").replace(ME,"{").replace(DE,"}").replace(NE,"^")}function DL(e){return Wh(e).replace(AL,"%3D")}function $L(e){return bm(e).replace(LE,"%23").replace(IL,"%3F")}function FL(e){return e==null?"":$L(e).replace(CL,"%2F")}function Nl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const UL=/\/$/,jL=e=>e.replace(UL,"");function up(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=WL(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:Nl(i)}}function BL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Q_(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function HL(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Hi(t.matched[r],n.matched[o])&&$E(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Hi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $E(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!VL(e[n],t[n]))return!1;return!0}function VL(e,t){return pr(e)?ev(e,t):pr(t)?ev(t,e):e===t}function ev(e,t){return pr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function WL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const er={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ml;(function(e){e.pop="pop",e.push="push"})(Ml||(Ml={}));var cl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(cl||(cl={}));function zL(e){if(!e)if(gi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jL(e)}const GL=/^[^#]+#/;function qL(e,t){return e.replace(GL,"#")+t}function KL(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const cd=()=>({left:window.scrollX,top:window.scrollY});function YL(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=KL(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 tv(e,t){return(history.state?history.state.position-t:-1)+e}const zh=new Map;function ZL(e,t){zh.set(e,t)}function XL(e){const t=zh.get(e);return zh.delete(e),t}let JL=()=>location.protocol+"//"+location.host;function FE(e,t){const{pathname:n,search:r,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),Q_(l,"")}return Q_(n,e)+r+o}function QL(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const p=FE(e,location),g=n.value,h=t.value;let y=0;if(d){if(n.value=p,t.value=d,i&&i===g){i=null;return}y=h?d.position-h.position:0}else r(p);o.forEach(m=>{m(n.value,g,{delta:y,type:Ml.pop,direction:y?y>0?cl.forward:cl.back:cl.unknown})})};function l(){i=n.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 nv(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?cd():null}}function eP(e){const{history:t,location:n}=window,r={value:FE(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:JL()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(l,c){const u=Ye({},t.state,nv(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.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({},nv(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function tP(e){e=zL(e);const t=eP(e),n=QL(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ye({location:"",base:e,go:r,createHref:qL.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function nP(e){return typeof e=="string"||e&&typeof e=="object"}function UE(e){return typeof e=="string"||typeof e=="symbol"}const jE=Symbol("");var rv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(rv||(rv={}));function Vi(e,t){return Ye(new Error,{type:e,[jE]:!0},t)}function Tr(e,t){return e instanceof Error&&jE in e&&(t==null||!!(e.type&t))}const ov="[^/]+?",rP={sensitive:!1,strict:!1,start:!0,end:!0},oP=/[.+*?^${}()[\]/\\]/g;function sP(e,t){const n=Ye({},rP,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function BE(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const aP={type:0,value:""},lP=/[a-zA-Z0-9_]/;function cP(e){if(!e)return[[]];if(e==="/")return[[aP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===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(_)}:ll}function i(f){if(UE(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const d=hP(f,n);n.splice(d,0,f),f.record.name&&!lv(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},h,y;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Vi(1,{location:f});y=p.record.name,g=Ye(iv(d.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&iv(f.params,p.keys.map(_=>_.name))),h=p.stringify(g)}else if(f.path!=null)h=f.path,p=n.find(_=>_.re.test(h)),p&&(g=p.parse(h),y=p.record.name);else{if(p=d.name?r.get(d.name):n.find(_=>_.re.test(d.path)),!p)throw Vi(1,{location:f,currentLocation:d});y=p.record.name,g=Ye({},d.params,f.params),h=p.stringify(g)}const m=[];let b=p;for(;b;)m.unshift(b.record),b=b.parent;return{name:y,path:h,params:g,matched:m,meta:pP(m)}}e.forEach(f=>s(f));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function iv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function av(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dP(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 dP(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function lv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pP(e){return e.reduce((t,n)=>Ye(t,n.meta),{})}function cv(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function hP(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;BE(e,t[s])<0?r=s:n=s+1}const o=gP(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function gP(e){let t=e;for(;t=t.parent;)if(HE(t)&&BE(e,t)===0)return t}function HE({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function mP(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&Wh(s)):[r&&Wh(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function yP(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=pr(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const _P=Symbol(""),fv=Symbol(""),wm=Symbol(""),Sm=Symbol(""),Gh=Symbol("");function Aa(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lo(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Vi(4,{from:n,to:t})):d instanceof Error?l(d):nP(d)?l(Vi(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},u=s(()=>e.call(r&&r.instances[o],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function fp(e,t,n,r,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(RE(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Lo(u,n,r,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=kL(u)?u.default:u;i.mods[a]=u,i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Lo(p,n,r,i,a,o)()}))}}return s}function dv(e){const t=Ut(wm),n=Ut(Sm),r=J(()=>{const l=He(e.to);return t.resolve(l)}),o=J(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Hi.bind(null,u));if(d>-1)return d;const p=pv(l[c-2]);return c>1&&pv(u)===p&&f[f.length-1].path!==p?f.findIndex(Hi.bind(null,l[c-2])):d}),s=J(()=>o.value>-1&&EP(n.params,r.value.params)),i=J(()=>o.value>-1&&o.value===n.matched.length-1&&$E(n.params,r.value.params));function a(l={}){if(SP(l)){const c=t[He(e.replace)?"replace":"push"](He(e.to)).catch(ll);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}function vP(e){return e.length===1?e[0]:e}const bP=At({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:dv,setup(e,{slots:t}){const n=Jt(dv(e)),{options:r}=Ut(wm),o=J(()=>({[hv(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[hv(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&vP(t.default(n));return e.custom?s:Ct("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),wP=bP;function SP(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 EP(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!pr(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function pv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const hv=(e,t,n)=>e??t??n,xP=At({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ut(Gh),o=J(()=>e.route||r.value),s=Ut(fv,0),i=J(()=>{let c=He(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=J(()=>o.value.matched[i.value]);Cs(fv,J(()=>i.value+1)),Cs(_P,a),Cs(Gh,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||!Hi(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 gv(n.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=Ct(d,Ye({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return gv(n.default,{Component:y,route:c})||y}}});function gv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const VE=xP;function kP(e){const t=fP(e.routes,e),n=e.parseQuery||mP,r=e.stringifyQuery||uv,o=e.history,s=Aa(),i=Aa(),a=Aa(),l=fr(er);let c=er;gi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=cp.bind(null,W=>""+W),f=cp.bind(null,FL),d=cp.bind(null,Nl);function p(W,Q){let X,ie;return UE(W)?(X=t.getRecordMatcher(W),ie=Q):ie=W,t.addRoute(ie,X)}function g(W){const Q=t.getRecordMatcher(W);Q&&t.removeRoute(Q)}function h(){return t.getRoutes().map(W=>W.record)}function y(W){return!!t.getRecordMatcher(W)}function m(W,Q){if(Q=Ye({},Q||l.value),typeof W=="string"){const A=up(n,W,Q.path),$=t.resolve({path:A.path},Q),B=o.createHref(A.fullPath);return Ye(A,$,{params:d($.params),hash:Nl(A.hash),redirectedFrom:void 0,href:B})}let X;if(W.path!=null)X=Ye({},W,{path:up(n,W.path,Q.path).path});else{const A=Ye({},W.params);for(const $ in A)A[$]==null&&delete A[$];X=Ye({},W,{params:f(A)}),Q.params=f(Q.params)}const ie=t.resolve(X,Q),te=W.hash||"";ie.params=u(d(ie.params));const we=BL(r,Ye({},W,{hash:ML(te),path:ie.path})),T=o.createHref(we);return Ye({fullPath:we,hash:te,query:r===uv?yP(W.query):W.query||{}},ie,{redirectedFrom:void 0,href:T})}function b(W){return typeof W=="string"?up(n,W,l.value.path):Ye({},W)}function _(W,Q){if(c!==W)return Vi(8,{from:Q,to:W})}function v(W){return x(W)}function S(W){return v(Ye(b(W),{replace:!0}))}function E(W){const Q=W.matched[W.matched.length-1];if(Q&&Q.redirect){const{redirect:X}=Q;let ie=typeof X=="function"?X(W):X;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 X=c=m(W),ie=l.value,te=W.state,we=W.force,T=W.replace===!0,A=E(X);if(A)return x(Ye(b(A),{state:typeof A=="object"?Ye({},te,A.state):te,force:we,replace:T}),Q||X);const $=X;$.redirectedFrom=Q;let B;return!we&&HL(r,ie,X)&&(B=Vi(16,{to:$,from:ie}),be(ie,ie,!0,!1)),(B?Promise.resolve(B):O($,ie)).catch(H=>Tr(H)?Tr(H,2)?H:lt(H):re(H,$,ie)).then(H=>{if(H){if(Tr(H,2))return x(Ye({replace:T},b(H.to),{state:typeof H.to=="object"?Ye({},te,H.to.state):te,force:we}),Q||$)}else H=L($,ie,!0,T,te);return U($,ie,H),H})}function N(W,Q){const X=_(W,Q);return X?Promise.reject(X):Promise.resolve()}function I(W){const Q=tn.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(W):W()}function O(W,Q){let X;const[ie,te,we]=TP(W,Q);X=fp(ie.reverse(),"beforeRouteLeave",W,Q);for(const A of ie)A.leaveGuards.forEach($=>{X.push(Lo($,W,Q))});const T=N.bind(null,W,Q);return X.push(T),ht(X).then(()=>{X=[];for(const A of s.list())X.push(Lo(A,W,Q));return X.push(T),ht(X)}).then(()=>{X=fp(te,"beforeRouteUpdate",W,Q);for(const A of te)A.updateGuards.forEach($=>{X.push(Lo($,W,Q))});return X.push(T),ht(X)}).then(()=>{X=[];for(const A of we)if(A.beforeEnter)if(pr(A.beforeEnter))for(const $ of A.beforeEnter)X.push(Lo($,W,Q));else X.push(Lo(A.beforeEnter,W,Q));return X.push(T),ht(X)}).then(()=>(W.matched.forEach(A=>A.enterCallbacks={}),X=fp(we,"beforeRouteEnter",W,Q,I),X.push(T),ht(X))).then(()=>{X=[];for(const A of i.list())X.push(Lo(A,W,Q));return X.push(T),ht(X)}).catch(A=>Tr(A,8)?A:Promise.reject(A))}function U(W,Q,X){a.list().forEach(ie=>I(()=>ie(W,Q,X)))}function L(W,Q,X,ie,te){const we=_(W,Q);if(we)return we;const T=Q===er,A=gi?history.state:{};X&&(ie||T?o.replace(W.fullPath,Ye({scroll:T&&A&&A.scroll},te)):o.push(W.fullPath,te)),l.value=W,be(W,Q,X,T),lt()}let G;function oe(){G||(G=o.listen((W,Q,X)=>{if(!ze.listening)return;const ie=m(W),te=E(ie);if(te){x(Ye(te,{replace:!0,force:!0}),ie).catch(ll);return}c=ie;const we=l.value;gi&&ZL(tv(we.fullPath,X.delta),cd()),O(ie,we).catch(T=>Tr(T,12)?T:Tr(T,2)?(x(Ye(b(T.to),{force:!0}),ie).then(A=>{Tr(A,20)&&!X.delta&&X.type===Ml.pop&&o.go(-1,!1)}).catch(ll),Promise.reject()):(X.delta&&o.go(-X.delta,!1),re(T,ie,we))).then(T=>{T=T||L(ie,we,!1),T&&(X.delta&&!Tr(T,8)?o.go(-X.delta,!1):X.type===Ml.pop&&Tr(T,20)&&o.go(-1,!1)),U(ie,we,T)}).catch(ll)}))}let ce=Aa(),q=Aa(),ne;function re(W,Q,X){lt(W);const ie=q.list();return ie.length?ie.forEach(te=>te(W,Q,X)):console.error(W),Promise.reject(W)}function Se(){return ne&&l.value!==er?Promise.resolve():new Promise((W,Q)=>{ce.add([W,Q])})}function lt(W){return ne||(ne=!W,oe(),ce.list().forEach(([Q,X])=>W?X(W):Q()),ce.reset()),W}function be(W,Q,X,ie){const{scrollBehavior:te}=e;if(!gi||!te)return Promise.resolve();const we=!X&&XL(tv(W.fullPath,0))||(ie||!X)&&history.state&&history.state.scroll||null;return qn().then(()=>te(W,Q,we)).then(T=>T&&YL(T)).catch(T=>re(T,W,Q))}const We=W=>o.go(W);let je;const tn=new Set,ze={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:h,resolve:m,options:e,push:v,replace:S,go:We,back:()=>We(-1),forward:()=>We(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:q.add,isReady:Se,install(W){const Q=this;W.component("RouterLink",wP),W.component("RouterView",VE),W.config.globalProperties.$router=Q,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>He(l)}),gi&&!je&&l.value===er&&(je=!0,v(o.location).catch(te=>{}));const X={};for(const te in er)Object.defineProperty(X,te,{get:()=>l.value[te],enumerable:!0});W.provide(wm,Q),W.provide(Sm,ro(X)),W.provide(Gh,l);const ie=W.unmount;tn.add(W),W.unmount=function(){tn.delete(W),tn.size<1&&(c=er,G&&G(),G=null,l.value=er,je=!1,ne=!1),ie()}}};function ht(W){return W.reduce((Q,X)=>Q.then(()=>I(X)),Promise.resolve())}return ze}function TP(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iHi(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Hi(c,l))||o.push(l))}return[n,r,o]}function g9(e){return Ut(Sm)}const CP=/(:\w+)\([^)]+\)/g,AP=/(:\w+)[?+*]/g,IP=/:\w+/g,OP=(e,t)=>t.path.replace(CP,"$1").replace(AP,"$1").replace(IP,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),qh=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&OP(e.route,n));return typeof r=="function"?r(e.route):r},RP=(e,t)=>({default:()=>e?Ct(PI,e===!0?{}:e,t):t});function Em(e){return Array.isArray(e)?e:[e]}const LP={layout:!1,pageTransition:!1},PP={layout:!1,pageTransition:!1},NP={layout:!1,pageTransition:!1},MP={layout:!1,pageTransition:!1};const dp=[{name:"g",path:"/g",component:()=>Zt(()=>import("./tWkbRj9A.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"index",path:"/",component:()=>Zt(()=>import("./BzxAud7u.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:()=>Zt(()=>import("./B_-yPp6t.js"),__vite__mapDeps([23,24,25,13,8,9,10,11,26,27,28,22]),import.meta.url)},{name:"v8",path:"/v8",component:()=>Zt(()=>import("./DBgZQ_Yy.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:()=>Zt(()=>import("./DZgYUweN.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:LP||{},component:()=>Zt(()=>import("./BJBYZgoC.js"),__vite__mapDeps([38,39,40,13,41,42,43,44,3,45]),import.meta.url)},{name:"article-id",path:"/article/:id()",component:()=>Zt(()=>import("./BKjUstMB.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:PP||{},component:()=>Zt(()=>import("./C6YYMQ2N.js"),__vite__mapDeps([48,39,40,3,49,50]),import.meta.url)},{name:"v8-article-id",path:"/v8/article/:id()",component:()=>Zt(()=>import("./THRlnAvc.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:NP||{},component:()=>Zt(()=>import("./qd_Bmoc2.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:MP||{},component:()=>Zt(()=>import("./YCIOwWHL.js"),__vite__mapDeps([55,39,40,53,13,41,42,43,44,3,54]),import.meta.url)}],DP=(e,t)=>({default:()=>{var n;return e?Ct(GS,e===!0?{}:e,t):(n=t.default)==null?void 0:n.call(t)}}),$P=/(:\w+)\([^)]+\)/g,FP=/(:\w+)[?+*]/g,UP=/:\w+/g;function mv(e){const t=(e==null?void 0:e.meta.key)??e.path.replace($P,"$1").replace(FP,"$1").replace(UP,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function WE(e,t){return e===t||t===er?!1:mv(e)!==mv(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const jP={scrollBehavior(e,t,n){var c;const r=Ae(),o=((c=Bt().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&WE(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:zE(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??Mh),l=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(u=>{r.hooks.hookOnce(l,()=>{requestAnimationFrame(()=>u(BP(e,"instant",s)))})})}};function zE(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 BP(e,t,n){return n||(e.hash?{el:e.hash,top:zE(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const HP={hashMode:!1,scrollBehaviorType:"auto"},Bn={...HP,...jP},VP=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Ae(),o=Bt(),s=([t,n]=zt(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),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 r.runWithContext(()=>Oo(i)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},WP=[VP],ul={};function zP(e,t,n){const{pathname:r,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),F_(u,"")}const a=F_(r,e),l=!n||Rh(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const GP=Je({name:"nuxt:router",enforce:"pre",async setup(e){var y;let t,n,r=it().app.baseURL;const o=((y=Bn.history)==null?void 0:y.call(Bn,r))??tP(r),s=Bn.routes?([t,n]=zt(()=>Bn.routes(dp)),t=await t,n(),t??dp):dp;let i;const a=kP({...Bn,scrollBehavior:(m,b,_)=>{if(b===er){i=_;return}if(Bn.scrollBehavior){if(a.options.scrollBehavior=Bn.scrollBehavior,"scrollRestoration"in window.history){const v=a.beforeEach(()=>{v(),window.history.scrollRestoration="manual"})}return Bn.scrollBehavior(m,er,i||_)}},history:o,routes:s});Bn.routes&&Bn.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=fr(a.currentRoute.value);a.afterEach((m,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=zP(r,window.location,e.payload.path),u=fr(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((m,b)=>{var _,v,S,E;((v=(_=m.matched[0])==null?void 0:_.components)==null?void 0:v.default)===((E=(S=b.matched[0])==null?void 0:S.components)==null?void 0:E.default)&&f()});const d={};for(const m in u.value)Object.defineProperty(d,m,{get:()=>u.value[m],enumerable:!0});e._route=ro(d),e._middleware||(e._middleware={global:[],named:{}});const p=ad();a.afterEach(async(m,b,_)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(k1),_&&await e.callHook("page:loading:end")});try{[t,n]=zt(()=>a.isReady()),await t,n()}catch(m){[t,n]=zt(()=>e.runWithContext(()=>Oo(m))),await t,n()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const h=e.payload.state._layout;return a.beforeEach(async(m,b)=>{var _;await e.callHook("page:loading:start"),m.meta=Jt(m.meta),e.isHydrating&&h&&!Ho(m.meta.layout)&&(m.meta.layout=h),e._processingMiddleware=!0;{const v=new Set([...WP,...e._middleware.global]);for(const S of m.matched){const E=S.meta.middleware;if(E)for(const x of Em(E))v.add(x)}for(const S of v){const E=typeof S=="string"?e._middleware.named[S]||await((_=ul[S])==null?void 0:_.call(ul).then(x=>x.default||x)):S;if(!E)throw new Error(`Unknown route middleware: '${S}'.`);try{const x=await e.runWithContext(()=>E(m,b));if(!e.payload.serverRendered&&e.isHydrating&&(x===!1||x instanceof Error)){const N=x||bu({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Oo(N)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return _E(x)&&x.fatal&&await e.runWithContext(()=>Oo(x)),x}catch(x){const N=bu(x);return N.fatal&&await e.runWithContext(()=>Oo(N)),N}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(m,b)=>{m.matched.length===0&&await e.runWithContext(()=>Oo(bu({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`,data:{path:m.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=Bn.scrollBehavior}catch(m){await e.runWithContext(()=>Oo(m))}}),{provide:{router:a}}}}),Kh=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),qP=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),xm=e=>{const t=Ae();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Kh(()=>e())}):Kh(()=>e())},KP=Je({name:"nuxt:payload",setup(e){const t=new Set;Bt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const o=await J_(n.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]}}),xm(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await J_(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})})})}}),YP=Je(()=>{const e=Bt();xm(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),ZP=Je(e=>{if(!document.startViewTransition)return;let t,n;Bt().beforeResolve(async(o,s)=>{const i=o.meta.viewTransition??a1,l=window.matchMedia("(prefers-reduced-motion: reduce)").matches&&i!=="always";if(i===!1||l||!WE(o,s))return;const c=new Promise((p,g)=>{t=p,n=g});let u;const f=new Promise(p=>u=p),d=document.startViewTransition(()=>(u(),c));return d.finished.then(()=>{n=void 0,t=void 0}),await e.callHook("page:view-transition:start",d),f}),e.hook("vue:error",()=>{n==null||n(),n=void 0}),e.hook("page:finish",()=>{t==null||t(),t=void 0})});function XP(e={}){const t=e.path||window.location.pathname;let n={};try{n=Ol(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:Qs(n.app.baseURL,s.fullPath);XP({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}});/*! * pinia v2.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */let GE;const mc=e=>GE=e,qE=Symbol();function Yh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fl||(fl={}));function QP(){const e=la(!0),t=e.run(()=>ue({}));let n=[],r=[];const o=im({install(s){mc(o),o._a=s,s.provide(qE,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const KE=()=>{};function yv(e,t,n,r=KE){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ca()&&Sl(o),o}function li(e,...t){e.slice().forEach(n=>{n(...t)})}const eN=e=>e(),_v=Symbol(),pp=Symbol();function Zh(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Yh(o)&&Yh(r)&&e.hasOwnProperty(n)&&!qe(r)&&!Lr(r)?e[n]=Zh(o,r):e[n]=r}return e}const tN=Symbol();function nN(e){return!Yh(e)||!e.hasOwnProperty(tN)}const{assign:ko}=Object;function rN(e){return!!(qe(e)&&e.effect)}function oN(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const u=dI(n.state.value[e]);return ko(u,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=im(J(()=>{mc(n);const p=n._s.get(e);return i[d].call(p,p)})),f),{}))}return l=YE(e,c,t,n,r,!0),l}function YE(e,t,n={},r,o,s){let i;const a=ko({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],p;const g=r.state.value[e];!s&&!g&&(r.state.value[e]={}),ue({});let h;function y(N){let I;c=u=!1,typeof N=="function"?(N(r.state.value[e]),I={type:fl.patchFunction,storeId:e,events:p}):(Zh(r.state.value[e],N),I={type:fl.patchObject,payload:N,storeId:e,events:p});const O=h=Symbol();qn().then(()=>{h===O&&(c=!0)}),u=!0,li(f,I,r.state.value[e])}const m=s?function(){const{state:I}=n,O=I?I():{};this.$patch(U=>{ko(U,O)})}:KE;function b(){i.stop(),f=[],d=[],r._s.delete(e)}const _=(N,I="")=>{if(_v in N)return N[pp]=I,N;const O=function(){mc(r);const U=Array.from(arguments),L=[],G=[];function oe(ne){L.push(ne)}function ce(ne){G.push(ne)}li(d,{args:U,name:O[pp],store:S,after:oe,onError:ce});let q;try{q=N.apply(this&&this.$id===e?this:S,U)}catch(ne){throw li(G,ne),ne}return q instanceof Promise?q.then(ne=>(li(L,ne),ne)).catch(ne=>(li(G,ne),Promise.reject(ne))):(li(L,q),q)};return O[_v]=!0,O[pp]=I,O},v={_p:r,$id:e,$onAction:yv.bind(null,d),$patch:y,$reset:m,$subscribe(N,I={}){const O=yv(f,N,I.detached,()=>U()),U=i.run(()=>Oe(()=>r.state.value[e],L=>{(I.flush==="sync"?u:c)&&N({storeId:e,type:fl.direct,events:p},L)},ko({},l,I)));return O},$dispose:b},S=Jt(v);r._s.set(e,S);const x=(r._a&&r._a.runWithContext||eN)(()=>r._e.run(()=>(i=la()).run(()=>t({action:_}))));for(const N in x){const I=x[N];if(qe(I)&&!rN(I)||Lr(I))s||(g&&nN(I)&&(qe(I)?I.value=g[N]:Zh(I,g[N])),r.state.value[e][N]=I);else if(typeof I=="function"){const O=_(I,N);x[N]=O,a.actions[N]=I}}return ko(S,x),ko(Me(S),x),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:N=>{y(I=>{ko(I,N)})}}),r._p.forEach(N=>{ko(S,i.run(()=>N({store:S,app:r._a,pinia:r,options:a})))}),g&&s&&n.hydrate&&n.hydrate(S.$state,g),c=!0,u=!0,S}/*! #__NO_SIDE_EFFECTS__ */function pa(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const c=da();return a=a||(c?Ut(qE,null):null),a&&mc(a),a=GE,a._s.has(r)||(s?YE(r,t,o,a):oN(r,o,a)),a._s.get(r)}return i.$id=r,i}function yc(e){{const t=Me(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=J({get:()=>e[r],set(s){e[r]=s}}):(qe(o)||Lr(o))&&(n[r]=Xs(e,r))}return n}}function vv(e){return typeof e=="string"?`'${e}'`:new sN().serialize(e)}const sN=function(){var t;class e{constructor(){Xy(this,t,new Map)}compare(r,o){const s=typeof r,i=typeof o;return s==="string"&&i==="string"?r.localeCompare(o):s==="number"&&i==="number"?r-o:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(o,!0))}serialize(r,o){if(r===null)return"null";switch(typeof r){case"string":return o?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const o=Object.prototype.toString.call(r);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),r);const s=r.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,r);if(typeof r.toJSON=="function"){const a=r.toJSON();return i+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(i,Object.entries(r))}serializeBuiltInType(r,o){const s=this["$"+r];if(s)return s.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(r,o.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,o){const s=Array.from(o).sort((a,l)=>this.compare(a[0],l[0]));let i=`${r}{`;for(let a=0;athis.compare(o,s)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}t=new WeakMap;for(const n of["Error","RegExp","URL"])e.prototype["$"+n]=function(r){return`${n}(${r})`};for(const n of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join(",")}]`};for(const n of["BigInt64Array","BigUint64Array"])e.prototype["$"+n]=function(r){return`${n}[${r.join("n,")}${r.length>0?"n":""}]`};return e}();function iN(e,t){return e===t||vv(e)===vv(t)}const aN="$s";function ti(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=aN+n,s=Ae(),i=Xs(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(qe(a))return s.payload.state[o]=a,a;i.value=a}return i}function lN(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},o=r.decode||cN;let s=0;for(;sOl(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},zc=window.cookieStore;function wu(e,t){var c;const n={...dN,...t};n.filter??(n.filter=u=>u===e);const r=wv(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s||r[e]===void 0||r[e]===null,a=tr(s?void 0:r[e]??((c=n.default)==null?void 0:c.call(n))),l=o&&!s?gN(a,o,n.watch&&n.watch!=="shallow"):ue(a);{let u=null;try{!zc&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(h=!1)=>{!h&&(n.readonly||iN(l.value,r[e]))||(hN(e,l.value,n),r[e]=tr(l.value),u==null||u.postMessage({value:n.encode(l.value)}))},d=h=>{var m;const y=h.refresh?(m=wv(n))==null?void 0:m[e]:n.decode(h.value);p=!0,l.value=y,r[e]=tr(y),qn(()=>{p=!1})};let p=!1;const g=!!ca();if(g&&Sl(()=>{p=!0,f(),u==null||u.close()}),zc){const h=y=>{const m=y.changed.find(_=>_.name===e),b=y.deleted.find(_=>_.name===e);m&&d({value:m.value}),b&&d({value:null})};zc.addEventListener("change",h),g&&Sl(()=>zc.removeEventListener("change",h))}else u&&(u.onmessage=({data:h})=>d(h));n.watch&&Oe(l,()=>{p||f()},{deep:n.watch!=="shallow"}),i&&f(i)}return l}function wv(e={}){return lN(document.cookie,e)}function pN(e,t,n={}){return t==null?bv(e,t,{...n,maxAge:-1}):bv(e,t,n)}function hN(e,t,n={}){document.cookie=pN(e,t,n)}const Sv=2147483647;function gN(e,t,n){let r,o,s=0;const i=n?ue(e):{value:e};return ca()&&Sl(()=>{o==null||o(),clearTimeout(r)}),qw((a,l)=>{n&&(o=Oe(i,l));function c(){s=0,clearTimeout(r);const u=t-s,f=u{if(s+=f,s4)return Promise.all(o).then(()=>ZE(e,t));t._routePreloaded.add(n);const s=r.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 mN=(...e)=>e.find(t=>t!==void 0);function yN(e){const t=e.componentName||"NuxtLink";function n(s){return typeof s=="string"&&s.startsWith("#")}function r(s,i){if(!s||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return s;if(typeof s=="string")return Ev(s,e.trailingSlash);const a="path"in s&&s.path!==void 0?s.path:i(s).path;return{...s,name:void 0,path:Ev(a,e.trailingSlash)}}function o(s){const i=Bt(),a=it(),l=J(()=>!!s.target&&s.target!=="_self"),c=J(()=>{const y=s.to||s.href||"";return typeof y=="string"&&yr(y,{acceptRelative:!0})}),u=c_("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=J(()=>{if(s.external)return!0;const y=s.to||s.href||"";return typeof y=="object"?!1:y===""||c.value}),p=J(()=>{const y=s.to||s.href||"";return d.value?y:r(y,i.resolve)}),g=d.value||f==null?void 0:f({...s,to:p}),h=J(()=>{var y;if(!p.value||c.value||n(p.value))return p.value;if(d.value){const m=typeof p.value=="object"&&"path"in p.value?Uh(p.value):p.value,b=typeof m=="object"?i.resolve(m).href:m;return r(b,i.resolve)}return typeof p.value=="object"?((y=i.resolve(p.value))==null?void 0:y.href)??null:r(Qs(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)??J(()=>p.value===i.currentRoute.value.path),isExactActive:(g==null?void 0:g.isExactActive)??J(()=>p.value===i.currentRoute.value.path),route:(g==null?void 0:g.route)??J(()=>i.resolve(p.value)),async navigate(y){await Io(h.value,{replace:s.replace,external:d.value||l.value})}}}return At({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=Bt(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=o(s),g=ue(!1),h=ue(null),y=_=>{var v;h.value=s.custom?(v=_==null?void 0:_.$el)==null?void 0:v.nextElementSibling:_==null?void 0:_.$el};function m(_){var v,S;return!g.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===_:((v=s.prefetchOn)==null?void 0:v[_])??((S=e.prefetchOn)==null?void 0:S[_]))&&(s.prefetch??e.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!wN()}async function b(_=Ae()){if(g.value)return;g.value=!0;const v=typeof l.value=="string"?l.value:f.value?Uh(l.value):a.resolve(l.value).fullPath,S=f.value?new URL(v,window.location.href).href:v;await Promise.all([_.hooks.callHook("link:prefetch",S).catch(()=>{}),!f.value&&!d.value&&ZE(l.value,a).catch(()=>{})])}if(m("visibility")){const _=Ae();let v,S=null;Rn(()=>{const E=vN();xm(()=>{v=Kh(()=>{var x;(x=h==null?void 0:h.value)!=null&&x.tagName&&(S=E.observe(h.value,async()=>{S==null||S(),S=null,await b(_)}))})})}),fa(()=>{v&&qP(v),S==null||S(),S=null})}return()=>{var S;if(!f.value&&!d.value&&!n(l.value)){const E={ref:y,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||(m("interaction")&&(E.onPointerenter=b.bind(null,void 0),E.onFocus=b.bind(null,void 0)),g.value&&(E.class=s.prefetchedClass||e.prefetchedClass),E.rel=s.rel||void 0),Ct(c_("RouterLink"),E,i.default)}const _=s.target||null,v=mN(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 E=new URL(c.value,window.location.href);return{path:E.pathname,fullPath:E.pathname,get query(){return sd(E.search)},hash:E.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:Ct("a",{ref:h,href:c.value||null,rel:v,target:_},(S=i.default)==null?void 0:S.call(i))}}})}const _N=yN(c1);function Ev(e,t){const n=t==="append"?Rl:id;return yr(e)&&!e.startsWith("http")?e:n(e,!0)}function vN(){const e=Ae();if(e._observer)return e._observer;let t=null;const n=new Map,r=(s,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),n.set(s,i),t.observe(s),()=>{n.delete(s),t==null||t.unobserve(s),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const bN=/2g/;function wN(){const e=navigator.connection;return!!(e&&(e.saveData||bN.test(e.effectiveType)))}const kn={AR_35:{widgetId:"AR_35"},AR_36:{widgetId:"AR_36"},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"}},xt={304300:{adHeight:"304px",adWidth:"300px"},304612:{adHeight:"304px",adWidth:"612px"},auto:{adHeight:"auto",adWidth:"auto"},"400_FULL":{adHeight:"400px",adWidth:"auto"},"310_FULL":{adHeight:"310px",adWidth:"100%"},100300:{adHeight:"100px",adWidth:"300px"},290340:{adHeight:"290px",adWidth:"340px"}};function Er(e){return{containerName:`taboola-homepage-${e}`,mode:"thumbnails-r-267x178-v2"}}const SN={article_content_below_button:{mode:"alternating-thumbnails-a",containerName:"taboola-below-article-feed"}},EN={sectiontab_300x250:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("sectiontab-300x250"),assertive:{},props:{}},sectiontab_slider:{outbrain:{...kn.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_r1_c2:{outbrain:{...kn.AR_35},style:{...xt[304300]},taboola:Er("r1-c2"),assertive:{},props:{lazyRender:!0}},newtab_r1_topright:{outbrain:{...kn.AR_36},style:{...xt[304300]},taboola:Er("r1-topright"),assertive:{},props:{lazyRender:!0}},newtab_r2_c1:{outbrain:{...kn.AR_37},style:{...xt[304300]},taboola:Er("r2-c1"),assertive:{},props:{lazyRender:!0}},newtab_r3_right:{outbrain:{...kn.AR_45},style:{...xt[304300]},taboola:Er("r3-right"),assertive:{},props:{lazyRender:!0}},newtab_r4_c1:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r4-c1"),assertive:{},props:{lazyRender:!0}},newtab_r4_right:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r4-right"),assertive:{},props:{lazyRender:!0}},newtab_r3_c1:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r3-c1"),assertive:{},props:{lazyRender:!0}},newtab_r2_c4:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("r2-c4"),assertive:{},props:{lazyRender:!0}},newtab_endless_right:{outbrain:{...kn.AR_38},style:{...xt[304300]},taboola:Er("endless"),assertive:{},props:{lazyRender:!0}},newtab_slider_1:{outbrain:{...kn.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_slider_2:{outbrain:{...kn.AR_27},style:{...xt[304612]},taboola:{},assertive:{},props:{lazyRender:!0}},newtab_leaderboard:{outbrain:{},taboola:{},assertive:{},style:{...xt["400_FULL"]},props:{lazyRender:!0}},newtab_leaderboard_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt[100300]},props:{lazyRender:!0}},article_hero:{outbrain:{},taboola:{},assertive:{},style:{...xt["310_FULL"]},props:{sticky:!0}},article_hero_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt[100300]},props:{sticky:!0}},article_content_below_button:{outbrain:{...kn.AR_31},taboola:{...SN.article_content_below_button},assertive:{},style:{...xt.auto},props:{}},article_content_middle:{outbrain:{},taboola:{},assertive:{},style:{...xt["400_FULL"]},props:{}},article_content_middle_mb:{outbrain:{},taboola:{},assertive:{},style:{...xt["310_FULL"]},props:{lazyRender:!0}},article_siderail_top:{outbrain:{},taboola:{},assertive:{},style:{...xt[290340]},props:{}},article_siderail_middle:{outbrain:{},taboola:{},assertive:{},style:{...xt[290340]},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:{}}},xN={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"},adops:{placements:EN},taboola:{publisherName:"rebasetechinc-network"}},kN={},TN={nuxtIcon:{},openfeature:{multiProvider:!0,localProvider:!1,queryProvider:!0},directAdsHostedConfigUrl:"",redesignedNtpPaths:[""],googleTagManagerId:"",urls:{home:"/",article:"/article",video:"/video"},outbrain:{installationKey:""},adops:{placements:kN},taboola:{publisherName:""}},CN={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"}},$n=_1(xN,TN,CN);function jr(){const e=Ae();return e._appConfig||(e._appConfig=Jt($n)),e._appConfig}const AN=Je({name:"pinia",setup(e){const t=QP();return e.vueApp.use(t),mc(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),IN=Zf(()=>Zt(()=>Promise.resolve().then(()=>z2),void 0,import.meta.url).then(e=>e.default||e.default||e)),ON=Zf(()=>Zt(()=>import("./Mw8ES-Og.js"),__vite__mapDeps([56,57]),import.meta.url).then(e=>e.default||e.default||e)),RN=Zf(()=>Zt(()=>import("./BP6pGL5f.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LN=[["Icon",IN],["IconCSS",ON],["NuxtIcon",RN]],PN=Je({name:"nuxt:global-components",setup(e){for(const[t,n]of LN)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Gc={custom:Zf(()=>Zt(()=>import("./C2eJEqzx.js"),__vite__mapDeps([58,49,59]),import.meta.url).then(e=>e.default||e))},NN=Je({name:"nuxt:prefetch",setup(e){const t=Bt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Gc[r]=="function"&&await Gc[r]()})}),e.hooks.hook("link:prefetch",n=>{if(yr(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Em(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof ul[i]=="function"&&ul[i]();o&&typeof Gc[o]=="function"&&Gc[o]()})}});function Su(...e){var t;(t=window.dataLayer)==null||t.push(arguments)}function XE({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const n of t.initCommands??[])Su(...n);Su("js",new Date);for(const t of e)Su("config",t.id,t.config??{})}function JE(e){const t=Me(e),n=t.tags.filter(Boolean).map(r=>typeof r=="string"?{id:r}:r);if(t.id){const{id:r,config:o,initCommands:s}=t;n.unshift({id:r,config:o,initCommands:s})}return n}const MN=Je({parallel:!0,setup(){const e=it().public.gtag,t=JE(e);if(!t.length||(XE({tags:t}),e.initMode==="manual"))return;const n=e.loadingStrategy==="async"?"async":"defer";Ds({link:[{rel:"preload",as:"script",href:Ll(e.url,{id:t[0].id})}],script:[{src:Ll(e.url,{id:t[0].id}),[n]:!0,"data-gtag":""}]})}}),dl=/^[a-z0-9]+(-[a-z0-9]+)*$/,ud=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=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]:r,prefix:l,name:a};return t&&!Eu(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Eu(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Eu(a,n)?null:a}return null},Eu=(e,t)=>e?!!((e.provider===""||e.provider.match(dl))&&(t&&e.prefix===""||e.prefix.match(dl))&&e.name.match(dl)):!1,QE=Object.freeze({left:0,top:0,width:16,height:16}),rf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_c=Object.freeze({...QE,...rf}),Xh=Object.freeze({..._c,body:"",hidden:!1});function DN(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function xv(e,t){const n=DN(e,t);for(const r in Xh)r in rf?r in e&&!(r in n)&&(n[r]=rf[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function $N(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function FN(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=xv(r[a]||o[a],s)}return i(t),n.forEach(i),xv(e,s)}function ex(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=$N(e);for(const o in r){const s=r[o];s&&(t(o,FN(e,o,s)),n.push(o))}return n}const UN={provider:"",aliases:{},not_found:{},...QE};function hp(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tx(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!hp(e,UN))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(dl)||typeof s.body!="string"||!hp(s,Xh))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(dl)||typeof i!="string"||!n[i]&&!r[i]||!hp(s,Xh))return null}return t}const kv=Object.create(null);function jN(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function $s(e,t){const n=kv[e]||(kv[e]=Object.create(null));return n[t]||(n[t]=jN(e,t))}function km(e,t){return tx(t)?ex(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function BN(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Dl=!1;function nx(e){return typeof e=="boolean"&&(Dl=e),Dl}function rx(e){const t=typeof e=="string"?ud(e,!0,Dl):e;if(t){const n=$s(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function HN(e,t){const n=ud(e,!0,Dl);if(!n)return!1;const r=$s(n.provider,n.prefix);return BN(r,n.name,t)}function VN(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Dl&&!t&&!e.prefix){let o=!1;return tx(e)&&(e.prefix="",ex(e,(s,i)=>{i&&HN(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Eu({provider:t,prefix:n,name:"a"}))return!1;const r=$s(t,n);return!!km(r,e)}function m9(e){const t=rx(e);return t?{..._c,...t}:null}const ox=Object.freeze({width:null,height:null}),sx=Object.freeze({...ox,...rf}),WN=/(-?[0-9.]*[0-9]+[0-9.]*)/g,zN=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Tv(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(WN);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=zN.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function GN(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function qN(e,t){return e?""+e+""+t:t}function KN(e,t,n){const r=GN(e);return qN(r.defs,t+r.content+n)}const YN=e=>e==="unset"||e==="undefined"||e==="none";function ZN(e,t){const n={..._c,...e},r={...sx,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(h=>{const y=[],m=h.hFlip,b=h.vFlip;let _=h.rotate;m?b?_+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):b&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.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,y.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,y.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)),y.length&&(s=KN(s,'',""))});const i=r.width,a=r.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=Tv(f,l/c)):(u=i==="auto"?l:i,f=a===null?Tv(u,c/l):a==="auto"?c:a);const d={},p=(h,y)=>{YN(y)||(d[h]=y.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 XN=/\sid="(\S+)"/g,JN="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let QN=0;function eM(e,t=JN){const n=[];let r;for(;r=XN.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(QN++).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 Jh=Object.create(null);function ix(e,t){Jh[e]=t}function Qh(e){return Jh[e]||Jh[""]}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),Ia=["https://api.simplesvg.com","https://api.unisvg.com"],xu=[];for(;Ia.length>0;)Ia.length===1||Math.random()>.5?xu.push(Ia.shift()):xu.push(Ia.pop());fd[""]=Tm({resources:["https://api.iconify.design"].concat(xu)});function ax(e,t){const n=Tm(t);return n===null?!1:(fd[e]=n,!0)}function dd(e){return fd[e]}function tM(){return Object.keys(fd)}const nM=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let of=nM();function rM(e){of=e}function oM(){return of}function sM(e,t){const n=dd(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function iM(e){return e===404}const aM=(e,t,n)=>{const r=[],o=sM(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function lM(e){if(typeof e=="string"){const t=dd(e);if(t)return t.path}return"/"}const cM=(e,t,n)=>{if(!of){n("abort",424);return}let r=lM(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;of(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(iM(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},uM={prepare:aM,send:cM};function fM(e){const t={loaded:[],missing:[],pending:[]},n=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 r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,l=n[s]||(n[s]=Object.create(null)),c=l[i]||(l[i]=$s(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 lx(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function dM(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=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:r,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||lx([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let pM=0;function hM(e,t,n){const r=pM++,o=lx.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function gM(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?ud(o,t,n):o;s&&r.push(s)}),r}var mM={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function yM(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let E=e.resources.slice(0);for(i=[];E.length>1;){const x=Math.floor(Math.random()*E.length);i.push(E[x]),E=E.slice(0,x).concat(E.slice(x+1))}i=i.concat(E)}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 r=="function"&&p.push(r);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function y(E,x){x&&(p=[]),typeof E=="function"&&p.push(E)}function m(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:y,abort:h}}function b(){l="failed",p.forEach(E=>{E(void 0,u)})}function _(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function v(E,x,N){const I=x!=="success";switch(d=d.filter(O=>O!==E),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=N,b();return}if(I){u=N,d.length||(i.length?S():b());return}if(g(),_(),!e.random){const O=e.resources.indexOf(E.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",p.forEach(O=>{O(N)})}function S(){if(l!=="pending")return;g();const E=i.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:E,callback:(N,I)=>{v(x,N,I)}};d.push(x),c++,f=setTimeout(S,e.rotate),n(E,t,x.callback)}return setTimeout(S),m}function cx(e){const t={...mM,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,c){const u=yM(t,a,l,(f,d)=>{r(),c&&c(f,d)});return n.push(u),u}function s(a){return n.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Cv(){}const gp=Object.create(null);function _M(e){if(!gp[e]){const t=dd(e);if(!t)return;const n=cx(t),r={config:t,redundancy:n};gp[e]=r}return gp[e]}function ux(e,t,n){let r,o;if(typeof e=="string"){const s=Qh(e);if(!s)return n(void 0,424),Cv;o=s.send;const i=_M(e);i&&(r=i.redundancy)}else{const s=Tm(e);if(s){r=cx(s);const i=e.resources?e.resources[0]:"",a=Qh(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Cv):r.query(t,o,n)().abort}const Av="iconify2",$l="iconify",fx=$l+"-count",Iv=$l+"-version",dx=36e5,vM=168,bM=50;function eg(e,t){try{return e.getItem(t)}catch{}}function Cm(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ov(e,t){try{e.removeItem(t)}catch{}}function tg(e,t){return Cm(e,fx,t.toString())}function ng(e){return parseInt(eg(e,fx))||0}const As={local:!0,session:!0},px={local:new Set,session:new Set};let Am=!1;function wM(e){Am=e}let qc=typeof window>"u"?{}:window;function hx(e){const t=e+"Storage";try{if(qc&&qc[t]&&typeof qc[t].length=="number")return qc[t]}catch{}As[e]=!1}function gx(e,t){const n=hx(e);if(!n)return;const r=eg(n,Iv);if(r!==Av){if(r){const a=ng(n);for(let l=0;l{const l=$l+a.toString(),c=eg(n,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{}Ov(n,l)}};let i=ng(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,tg(n,i)):px[e].add(a))}function mx(){if(!Am){wM(!0);for(const e in As)gx(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=$s(r,o);if(!km(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function SM(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in As)gx(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function EM(e,t){Am||mx();function n(r){let o;if(!As[r]||!(o=hx(r)))return;const s=px[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ng(o),i>=bM||!tg(o,i+1))return;const a={cached:Math.floor(Date.now()/dx),provider:e.provider,data:t};return Cm(o,$l+i.toString(),JSON.stringify(a))}t.lastModified&&!SM(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Rv(){}function xM(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,dM(e)}))}function kM(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:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=Qh(n)))return;s.prepare(n,r,o).forEach(a=>{ux(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=km(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),EM(e,l)}catch(c){console.error(c)}xM(e)})})}))}const TM=(e,t)=>{const n=gM(e,!0,nx()),r=fM(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Rv)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push($s(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=$s(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&&kM(l,o[c][u])}),t?hM(t,r,s):Rv};function CM(e,t){switch(e){case"local":case"session":As[e]=t;break;case"all":for(const n in As)As[n]=t;break}}function AM(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in ox?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const IM=/[\s,]+/;function OM(e,t){t.split(IM).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function RM(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}function LM(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function PM(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function NM(e){return"data:image/svg+xml,"+PM(e)}function MM(e){return'url("'+NM(e)+'")'}const Lv={...sx,inline:!1},DM={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},$M={display:"inline-block"},rg={backgroundColor:"currentColor"},yx={backgroundColor:"transparent"},Pv={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Nv={webkitMask:rg,mask:rg,background:yx};for(const e in Nv){const t=Nv[e];for(const n in Pv)t[e+n]=Pv[n]}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 Mv(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Dv=(e,t)=>{const n=AM(Lv,t),r={...DM},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const y=t[h];if(y!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[h]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&OM(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[h]=RM(y):typeof y=="number"&&(n[h]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const m=ku[h];m?(y===!0||y==="true"||y===1)&&(n[m]=!0):Lv[h]===void 0&&(r[h]=y)}}}const l=ZN(e,n),c=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...a},Object.assign(r,c);let h=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=eM(l.body,y?()=>y+"ID"+h++:"iconifyVue"),Ct("svg",r)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=LM(u,{...c,width:f+"",height:d+""});return r.style={...s,"--svg":MM(g),width:Mv(c.width),height:Mv(c.height),...$M,...p?rg:yx,...a},Ct("span",r)};function FM(e){CM(e,!1)}nx(!0);ix("",uM);if(typeof document<"u"&&typeof window<"u"){mx();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!VN(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;ax(n,o)||console.error(r)}catch{console.error(r)}}}}const UM={..._c,body:""},y9=At({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,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=ud(e,!1,!0))===null)return this.abortLoading(),null;let o=rx(r);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:TM([r],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){o=Object.assign({},o);const i=n(o.body,r.name,r.prefix,r.provider);typeof i=="string"&&(o.body=i)}const s=["iconify"];return r.prefix!==""&&s.push("iconify--"+r.prefix),r.provider!==""&&s.push("iconify--"+r.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 Dv(UM,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Dv({..._c,...t.data},n)}}),jM={getAPIConfig:dd,setAPIModule:ix,sendAPIQuery:ux,setFetch:rM,getFetch:oM,listAPIProviders:tM},BM=Je({name:"@nuxt/icon",setup(){var r,o;const e=it(),t=jr().icon;jM.setFetch($fetch.native),FM("all");const n=[];if(t.provider==="server"){const s=((o=(r=e.app)==null?void 0:r.baseURL)==null?void 0:o.replace(/\/$/,""))??"";n.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),t.fallbackToApi&&n.push(t.iconifyApiEndpoint)}else n.push(t.iconifyApiEndpoint);ax("",{resources:n})}});function Vo(e){return ca()?(Sl(e),!0):!1}function pd(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...s)=>(t+=1,n||(r=la(!0),n=r.run(()=>e(...s))),Vo(o),n)}function ln(e){return typeof e=="function"?e():He(e)}const sf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const HM=e=>e!=null,VM=Object.prototype.toString,WM=e=>VM.call(e)==="[object Object]",af=()=>+Date.now(),cr=()=>{};function hd(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const _x=e=>e();function vx(e,t={}){let n,r,o=cr;const s=a=>{clearTimeout(a),o(),o=cr};return a=>{const l=ln(e),c=ln(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(a())},l)})}}function bx(...e){let t=0,n,r=!0,o=cr,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=()=>{n&&(clearTimeout(n),n=void 0,o(),o=cr)};return d=>{const p=ln(i),g=Date.now()-t,h=()=>s=d();return u(),p<=0?(t=Date.now(),h()):(g>p&&(l||!r)?(t=Date.now(),h()):a&&(s=new Promise((y,m)=>{o=c?m:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(h()),u()},Math.max(0,p-g))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,s)}}function zM(e=_x){const t=ue(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Yf(t),pause:n,resume:r,eventFilter:o}}function GM(e){return en()}function qM(e,t=200,n={}){return hd(vx(t,n),e)}function KM(e,t=200,n=!1,r=!0,o=!1){return hd(bx(t,n,r,o),e)}function wx(e,t,n={}){const{eventFilter:r=_x,...o}=n;return Oe(e,hd(r,t),o)}function Sx(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:s,pause:i,resume:a,isActive:l}=zM(r);return{stop:wx(e,t,{...o,eventFilter:s}),pause:i,resume:a,isActive:l}}function gd(e,t=!0,n){GM()?Rn(e,n):t?e():qn(e)}function YM(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let s=null;const i=ue(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=ln(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(r&&sf&&c(),qe(t)||typeof t=="function"){const u=Oe(t,()=>{i.value&&sf&&c()});Vo(u)}return Vo(l),{isActive:i,pause:l,resume:c}}function _9(e,t,n={}){const{debounce:r=0,maxWait:o=void 0,...s}=n;return wx(e,t,{...s,eventFilter:vx(r,{maxWait:o})})}function ZM(e,t,n){const r=Oe(e,(...o)=>(qn(()=>r()),t(...o)),n);return r}function v9(e,t,n){let r;qe(n)?r={evaluating:n}:r=n||{};const{lazy:o=!1,evaluating:s=void 0,shallow:i=!0,onError:a=cr}=r,l=ue(!o),c=i?fr(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?J(()=>(l.value=!0,c.value)):c}function or(e){var t;const n=ln(e);return(t=n==null?void 0:n.$el)!=null?t:n}const On=sf?window:void 0,XM=sf?window.document:void 0;function Dr(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=On):[t,n,r,o]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);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(()=>[or(t),ln(o)],([u,f])=>{if(i(),!u)return;const d=WM(f)?{...f}:f;s.push(...n.flatMap(p=>r.map(g=>a(u,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return Vo(c),c}function JM(){const e=ue(!1),t=en();return t&&Rn(()=>{e.value=!0},t),e}function Im(e){const t=JM();return J(()=>(t.value,!!e()))}function QM(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:o=On}=t,s=ue(!1),i=r?1e3/r:null;let a=0,l=null;function c(d){if(!s.value||!o)return;a||(a=d);const p=d-a;if(i&&pn&&"matchMedia"in n&&typeof n.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(()=>{r.value&&(a(),o=n.matchMedia(ln(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return Vo(()=>{l(),a(),o=void 0}),s}const Kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yc="__vueuse_ssr_handlers__",eD=tD();function tD(){return Yc in Kc||(Kc[Yc]=Kc[Yc]||{}),Kc[Yc]}function nD(e,t){return eD[e]||t}function rD(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 oD={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()}},$v="vueuse-storage";function sD(e,t,n,r={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=On,eventFilter:d,onError:p=O=>{console.error(O)},initOnMounted:g}=r,h=(u?fr:ue)(typeof t=="function"?t():t);if(!n)try{n=nD("getDefaultStorage",()=>{var O;return(O=On)==null?void 0:O.localStorage})()}catch(O){p(O)}if(!n)return h;const y=ln(t),m=rD(y),b=(o=r.serializer)!=null?o:oD[m],{pause:_,resume:v}=Sx(h,()=>E(h.value),{flush:s,deep:i,eventFilter:d});f&&a&&gd(()=>{Dr(f,"storage",N),Dr(f,$v,I),g&&N()}),g||N();function S(O,U){f&&f.dispatchEvent(new CustomEvent($v,{detail:{key:e,oldValue:O,newValue:U,storageArea:n}}))}function E(O){try{const U=n.getItem(e);if(O==null)S(U,null),n.removeItem(e);else{const L=b.write(O);U!==L&&(n.setItem(e,L),S(U,L))}}catch(U){p(U)}}function x(O){const U=O?O.newValue:n.getItem(e);if(U==null)return l&&y!=null&&n.setItem(e,b.write(y)),y;if(!O&&c){const L=b.read(U);return typeof c=="function"?c(L,y):m==="object"&&!Array.isArray(L)?{...y,...L}:L}else return typeof U!="string"?U:b.read(U)}function N(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){h.value=y;return}if(!(O&&O.key!==e)){_();try{(O==null?void 0:O.newValue)!==b.write(h.value)&&(h.value=x(O))}catch(U){p(U)}finally{O?qn(v):v()}}}}function I(O){N(O.detail)}return h}function xx(e){return Ex("(prefers-color-scheme: dark)",e)}function iD(e={}){const{document:t=XM}=e;if(!t)return ue("visible");const n=ue(t.visibilityState);return Dr(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function aD(e,t,n={}){const{window:r=On,...o}=n;let s;const i=Im(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=J(()=>Array.isArray(e)?e.map(f=>or(f)):[or(e)]),c=Oe(l,f=>{if(a(),i.value&&r){s=new ResizeObserver(t);for(const d of f)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Vo(u),{isSupported:i,stop:u}}function b9(e,t={width:0,height:0},n={}){const{window:r=On,box:o="content-box"}=n,s=J(()=>{var f,d;return(d=(f=or(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=ue(t.width),a=ue(t.height),{stop:l}=aD(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&s.value){const p=or(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},n);gd(()=>{const f=or(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=Oe(()=>or(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 lD(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=.1,window:i=On,immediate:a=!0}=n,l=Im(()=>i&&"IntersectionObserver"in i),c=J(()=>{const g=ln(e);return(Array.isArray(g)?g:[g]).map(or).filter(HM)});let u=cr;const f=ue(a),d=l.value?Oe(()=>[c.value,or(r),f.value],([g,h])=>{if(u(),!f.value||!g.length)return;const y=new IntersectionObserver(t,{root:or(h),rootMargin:o,threshold:s});g.forEach(m=>m&&y.observe(m)),u=()=>{y.disconnect(),u=cr}},{immediate:a,flush:"post"}):cr,p=()=>{u(),d(),f.value=!1};return Vo(p),{isSupported:l,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:p}}function kx(e,t={}){const{window:n=On,scrollTarget:r,threshold:o=0}=t,s=ue(!1);return lD(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:r,window:n,threshold:o}),s}const cD=["mousemove","mousedown","resize","keydown","touchstart","wheel"],uD=6e4;function fD(e=uD,t={}){const{initialState:n=!1,listenForVisibilityChange:r=!0,events:o=cD,window:s=On,eventFilter:i=bx(50)}=t,a=ue(n),l=ue(af());let c;const u=()=>{a.value=!1,clearTimeout(c),c=setTimeout(()=>a.value=!0,e)},f=hd(i,()=>{l.value=af(),u()});if(s){const d=s.document;for(const p of o)Dr(s,p,f,{passive:!0});r&&Dr(d,"visibilitychange",()=>{d.hidden||f()}),u()}return{idle:a,lastActive:l,reset:u}}const Fv=1;function dD(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=cr,onScroll:s=cr,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=On,onError:u=x=>{console.error(x)}}=t,f=ue(0),d=ue(0),p=J({get(){return f.value},set(x){h(x,void 0)}}),g=J({get(){return d.value},set(x){h(void 0,x)}});function h(x,N){var I,O,U,L;if(!c)return;const G=ln(e);if(!G)return;(U=G instanceof Document?c.document.body:G)==null||U.scrollTo({top:(I=ln(N))!=null?I:g.value,left:(O=ln(x))!=null?O:p.value,behavior:ln(l)});const oe=((L=G==null?void 0:G.document)==null?void 0:L.documentElement)||(G==null?void 0:G.documentElement)||G;p!=null&&(f.value=oe.scrollLeft),g!=null&&(d.value=oe.scrollTop)}const y=ue(!1),m=Jt({left:!0,right:!1,top:!0,bottom:!1}),b=Jt({left:!1,right:!1,top:!1,bottom:!1}),_=x=>{y.value&&(y.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,o(x))},v=qM(_,n+r),S=x=>{var N;if(!c)return;const I=((N=x==null?void 0:x.document)==null?void 0:N.documentElement)||(x==null?void 0:x.documentElement)||or(x),{display:O,flexDirection:U}=getComputedStyle(I),L=I.scrollLeft;b.left=Lf.value;const G=Math.abs(L)<=(i.left||0),oe=Math.abs(L)+I.clientWidth>=I.scrollWidth-(i.right||0)-Fv;O==="flex"&&U==="row-reverse"?(m.left=oe,m.right=G):(m.left=G,m.right=oe),f.value=L;let ce=I.scrollTop;x===c.document&&!ce&&(ce=c.document.body.scrollTop),b.top=ced.value;const q=Math.abs(ce)<=(i.top||0),ne=Math.abs(ce)+I.clientHeight>=I.scrollHeight-(i.bottom||0)-Fv;O==="flex"&&U==="column-reverse"?(m.top=ne,m.bottom=q):(m.top=q,m.bottom=ne),d.value=ce},E=x=>{var N;if(!c)return;const I=(N=x.target.documentElement)!=null?N:x.target;S(I),y.value=!0,v(x),s(x)};return Dr(e,"scroll",n?KM(E,n,!0,!1):E,a),gd(()=>{try{const x=ln(e);if(!x)return;S(x)}catch(x){u(x)}}),Dr(e,"scrollend",_,a),{x:p,y:g,isScrolling:y,arrivedState:m,directions:b,measure(){const x=ln(e);c&&x&&S(x)}}}function pD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function w9(e,t,n={}){var r;const{direction:o="bottom",interval:s=100,canLoadMore:i=()=>!0}=n,a=Jt(dD(e,{...n,offset:{[o]:(r=n.distance)!=null?r:0,...n.offset}})),l=ue(),c=J(()=>!!l.value),u=J(()=>pD(ln(e))),f=kx(u);function d(){if(a.measure(),!u.value||!f.value||!i(u.value))return;const{scrollHeight:p,clientHeight:g,scrollWidth:h,clientWidth:y}=u.value,m=o==="bottom"||o==="top"?p<=g:h<=y;(a.arrivedState[o]||m)&&(l.value||(l.value=Promise.all([t(a),new Promise(b=>setTimeout(b,s))]).finally(()=>{l.value=null,qn(()=>d())})))}return Oe(()=>[a.arrivedState[o],f.value],d,{immediate:!0}),{isLoading:c}}function Tx(e,t,n={}){const{window:r=On}=n;return sD(e,t,r==null?void 0:r.localStorage,n)}function hD(e={}){const{controls:t=!1,offset:n=0,immediate:r=!0,interval:o="requestAnimationFrame",callback:s}=e,i=ue(af()+n),a=()=>i.value=af()+n,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?QM(l,{immediate:r}):YM(l,o,{immediate:r});return t?{timestamp:i,...c}:i}function gD(e="history",t={}){const{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:o=!1,write:s=!0,window:i=On}=t;if(!i)return Jt(n);const a=Jt({});function l(){if(e==="history")return i.location.search||"";if(e==="hash"){const m=i.location.hash||"",b=m.indexOf("?");return b>0?m.slice(b):""}else return(i.location.hash||"").replace(/^#/,"")}function c(m){const b=m.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(m){const b=new Set(Object.keys(a));for(const _ of m.keys()){const v=m.getAll(_);a[_]=v.length>1?v:m.get(_)||"",b.delete(_)}Array.from(b).forEach(_=>delete a[_])}const{pause:d,resume:p}=Sx(a,()=>{const m=new URLSearchParams("");Object.keys(a).forEach(b=>{const _=a[b];Array.isArray(_)?_.forEach(v=>m.append(b,v)):r&&_==null||o&&!_?m.delete(b):m.set(b,_)}),g(m)},{deep:!0});function g(m,b){d(),b&&f(m),i.history.replaceState(i.history.state,i.document.title,i.location.pathname+c(m)),p()}function h(){s&&g(u(),!0)}Dr(i,"popstate",h,!1),e!=="history"&&Dr(i,"hashchange",h,!1);const y=u();return y.keys().next().value?f(y):Object.assign(a,n),a}function Cx(e={}){const{window:t=On,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0}=e,i=ue(n),a=ue(r),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(),gd(l),Dr("resize",l,{passive:!0}),o){const c=Ex("(orientation: portrait)");Oe(c,()=>l())}return{width:i,height:a}}const mD=Symbol("nuxt-ui.slideover"),yD=Je(e=>{const t=fr({component:"div",props:{}});e.vueApp.provide(mD,t)}),_D=Symbol("nuxt-ui.modal"),vD=Je(e=>{const t=fr({component:"div",props:{}});e.vueApp.provide(_D,t)}),Om="-";function bD(e){const t=SD(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(Om);return a[0]===""&&a.length!==1&&a.shift(),Ax(a,t)||wD(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Ax(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ax(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Om);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Uv=/^\[(.+)\]$/;function wD(e){if(Uv.test(e)){const t=Uv.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function SD(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return xD(Object.entries(e.classGroups),n).forEach(([s,i])=>{og(i,r,s,t)}),r}function og(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:jv(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(ED(o)){og(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{og(i,jv(t,s),n,r)})})}function jv(e,t){let n=e;return t.split(Om).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function ED(e){return e.isThemeGetter}function xD(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function kD(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const Ix="!";function TD(e){const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length;function i(a){const l=[];let c=0,u=0,f;for(let y=0;yu?f-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:h}}return n?function(l){return n({className:l,parseClassName:i})}:i}function CD(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function AD(e){return{cache:kD(e.cacheSize),parseClassName:TD(e),...bD(e)}}const ID=/\s+/;function OD(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(ID).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(i);let f=!!u,d=r(f?c.substring(0,u):c);if(!d){if(!f)return{isTailwindClass:!1,originalClassName:i};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:i};f=!1}const p=CD(a).join(":");return{isTailwindClass:!0,modifierId:l?p+Ix: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 zn(){let e=0,t,n,r="";for(;ef(u),e());return n=AD(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=OD(l,n);return o(l,u),u}return function(){return s(zn.apply(null,arguments))}}function ct(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Rx=/^\[(?:([a-z-]+):)?(.+)\]$/i,RD=/^\d+\/\d+$/,LD=new Set(["px","full","screen"]),PD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ND=/\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$/,MD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,DD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$D=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function zr(e){return ws(e)||LD.has(e)||RD.test(e)}function So(e){return ha(e,"length",zD)}function ws(e){return!!e&&!Number.isNaN(Number(e))}function Zc(e){return ha(e,"number",ws)}function Oa(e){return!!e&&Number.isInteger(Number(e))}function FD(e){return e.endsWith("%")&&ws(e.slice(0,-1))}function Ce(e){return Rx.test(e)}function Eo(e){return PD.test(e)}const UD=new Set(["length","size","percentage"]);function jD(e){return ha(e,UD,Lx)}function BD(e){return ha(e,"position",Lx)}const HD=new Set(["image","url"]);function VD(e){return ha(e,HD,qD)}function WD(e){return ha(e,"",GD)}function Ra(){return!0}function ha(e,t,n){const r=Rx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function zD(e){return ND.test(e)&&!MD.test(e)}function Lx(){return!1}function GD(e){return DD.test(e)}function qD(e){return $D.test(e)}function ig(){const e=ct("colors"),t=ct("spacing"),n=ct("blur"),r=ct("brightness"),o=ct("borderColor"),s=ct("borderRadius"),i=ct("borderSpacing"),a=ct("borderWidth"),l=ct("contrast"),c=ct("grayscale"),u=ct("hueRotate"),f=ct("invert"),d=ct("gap"),p=ct("gradientColorStops"),g=ct("gradientColorStopPositions"),h=ct("inset"),y=ct("margin"),m=ct("opacity"),b=ct("padding"),_=ct("saturate"),v=ct("scale"),S=ct("sepia"),E=ct("skew"),x=ct("space"),N=ct("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",Ce,t],L=()=>[Ce,t],G=()=>["",zr,So],oe=()=>["auto",ws,Ce],ce=()=>["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"],re=()=>["start","end","center","between","around","evenly","stretch"],Se=()=>["","0",Ce],lt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[ws,Zc],We=()=>[ws,Ce];return{cacheSize:500,separator:":",theme:{colors:[Ra],spacing:[zr,So],blur:["none","",Eo,Ce],brightness:be(),borderColor:[e],borderRadius:["none","","full",Eo,Ce],borderSpacing:L(),borderWidth:G(),contrast:be(),grayscale:Se(),hueRotate:We(),invert:Se(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[FD,So],inset:U(),margin:U(),opacity:be(),padding:L(),saturate:be(),scale:be(),sepia:Se(),skew:We(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Ce]}],container:["container"],columns:[{columns:[Eo]}],"break-after":[{"break-after":lt()}],"break-before":[{"break-before":lt()}],"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:[...ce(),Ce]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],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",Oa,Ce]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ce]}],grow:[{grow:Se()}],shrink:[{shrink:Se()}],order:[{order:["first","last","none",Oa,Ce]}],"grid-cols":[{"grid-cols":[Ra]}],"col-start-end":[{col:["auto",{span:["full",Oa,Ce]},Ce]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[Ra]}],"row-start-end":[{row:["auto",{span:[Oa,Ce]},Ce]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ce]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"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:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"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",Ce,t]}],"min-w":[{"min-w":[Ce,t,"min","max","fit"]}],"max-w":[{"max-w":[Ce,t,"none","full","min","max","fit","prose",{screen:[Eo]},Eo]}],h:[{h:[Ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Eo,So]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zc]}],"font-family":[{font:[Ra]}],"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",Ce]}],"line-clamp":[{"line-clamp":["none",ws,Zc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zr,Ce]}],"list-image":[{"list-image":["none",Ce]}],"list-style-type":[{list:["none","disc","decimal",Ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zr,So]}],"underline-offset":[{"underline-offset":["auto",zr,Ce]}],"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",Ce]}],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",Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ce(),BD]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jD]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},VD]}],"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":[m]}],"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":[m]}],"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":[zr,Ce]}],"outline-w":[{outline:[zr,So]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[zr,So]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Eo,WD]}],"shadow-color":[{shadow:[Ra]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Eo,Ce]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"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":[m]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",Ce]}],duration:[{duration:We()}],ease:[{ease:["linear","in","out","in-out",Ce]}],delay:[{delay:We()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Oa,Ce]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ce]}],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",Ce]}],"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",Ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zr,So,Zc]}],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 KD(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:o,extend:s={},override:i={}}){Xa(e,"cacheSize",t),Xa(e,"prefix",n),Xa(e,"separator",r),Xa(e,"experimentalParseClassName",o);for(const a in i)YD(e[a],i[a]);for(const a in s)ZD(e[a],s[a]);return e}function Xa(e,t,n){n!==void 0&&(e[t]=n)}function YD(e,t){if(t)for(const n in t)Xa(e,n,t[n])}function ZD(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function XD(e,...t){return typeof e=="function"?sg(ig,e,...t):sg(()=>KD(ig(),e),...t)}const Wi=sg(ig);function JD(e,t){const n={...e};for(const r of t)delete n[r];return n}function QD(e,t,n){typeof t=="string"&&(t=t.split(".").map(o=>{const s=Number(o);return isNaN(s)?o:s}));let r=e;for(const o of t){if(r==null)return n;r=r[o]}return r!==void 0?r:n}const Rm={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}},e$=e=>Object.keys(Rm).reduce((n,r)=>(e[r]!==void 0&&(n[r]=e[r]),n),{}),t$=XD({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),n$=mm((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=t$(e[t],n),!0});function vc(e,...t){return e==="override"?gE({},...t):n$({},...t)}function Bv(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}const r$="inherit",o$="currentColor",s$="transparent",i$="#000",a$="#fff",l$={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},c$={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) / )"},u$={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},f$={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},d$={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},p$={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"},h$={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"},g$={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},m$={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},y$={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},_$={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"},v$={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},b$={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},w$={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},S$={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},E$={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"},x$={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},k$={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},T$={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},C$={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},A$={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},I$={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},O$={white:"color-mix(in srgb, var(--colors-basic-white) calc(100% * ), transparent)",black:"color-mix(in srgb, var(--colors-basic-black) calc(100% * ), transparent)"},R$={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)"},L$={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)"},P$={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)"},N$={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)"},M$={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)"},D$={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)"},$$={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)"},F$={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)"},U$={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)"},j$={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)"},B$={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)"},H$={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)"},V$={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)"}},W$={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)"},z$={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)"}}},G$={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) / )"},K$={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Xc={inherit:r$,current:o$,transparent:s$,black:i$,white:a$,slate:l$,gray:c$,zinc:u$,neutral:f$,stone:d$,red:p$,orange:h$,amber:g$,yellow:m$,lime:y$,green:_$,emerald:v$,teal:b$,cyan:w$,sky:S$,blue:E$,indigo:x$,violet:k$,purple:T$,fuchsia:C$,pink:A$,rose:I$,basic:O$,grey:R$,trueGrey:L$,lightBlue:P$,warmGrey:N$,light:M$,dark:D$,informative:$$,positive:F$,warning:U$,negative:j$,brandLight:B$,brandDark:H$,background:V$,content:W$,border:z$,action:G$,primary:q$,cool:K$,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"},Y$=Je(()=>{const e=jr(),t=Ae(),n=J(()=>{const o=Xc[e.ui.primary],s=Xc[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||Xc.green).map(([i,a])=>`--color-primary-${i}: ${Bv(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); ${Object.entries(s||Xc.cool).map(([i,a])=>`--color-gray-${i}: ${Bv(a)};`).join(` `)} } .dark { --color-primary-DEFAULT: var(--color-primary-400); } `}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=n.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}Ds(r)}),Z$="__NUXT_COLOR_MODE__",X$="nuxt-color-mode",Gr=window[Z$]||{},J$=Je(e=>{const t=ti("color-mode",()=>Jt({preference:Gr.preference,value:Gr.value,unknown:!1,forced:!1})).value;Bt().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"?Gr.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=Gr.getColorScheme())}))}Oe(()=>t.preference,o=>{var s;t.forced||(o==="system"?(t.value=Gr.getColorScheme(),r()):t.value=o,(s=window.localStorage)==null||s.setItem(X$,o))},{immediate:!0}),Oe(()=>t.value,(o,s)=>{Gr.removeColorScheme(s),Gr.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=Gr.preference,t.value=Gr.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",Qo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Q$=(e,t,n)=>eF({l:e,k:t,s:n}),eF=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Pt=e=>typeof e=="number"&&isFinite(e),tF=e=>Pm(e)==="[object Date]",cf=e=>Pm(e)==="[object RegExp]",md=e=>Fe(e)&&Object.keys(e).length===0,Gt=Object.assign,nF=Object.create,tt=(e=null)=>nF(e);let Hv;const Lm=()=>Hv||(Hv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:tt());function Vv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const rF=Object.prototype.hasOwnProperty;function sr(e,t){return rF.call(e,t)}const Nt=Array.isArray,et=e=>typeof e=="function",le=e=>typeof e=="string",vt=e=>typeof e=="boolean",Ve=e=>e!==null&&typeof e=="object",oF=e=>Ve(e)&&et(e.then)&&et(e.catch),Px=Object.prototype.toString,Pm=e=>Px.call(e),Fe=e=>Pm(e)==="[object Object]",sF=e=>e==null?"":Nt(e)||Fe(e)&&e.toString===Px?JSON.stringify(e,null,2):String(e);function Nm(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}function iF(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Jc=e=>!Ve(e)||Nt(e);function Di(e,t){if(Jc(e)||Jc(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(Ve(r[s])&&!Ve(o[s])&&(o[s]=Array.isArray(r[s])?[]:tt()),Jc(o[s])||Jc(r[s])?o[s]=r[s]:n.push({src:r[s],des:o[s]}))})}}const ao=[],ag={},aF=[()=>Zt(()=>import("./DB7imAev.js"),[],import.meta.url)],yd=[],Nx="@nuxtjs/i18n",lF=!1,cF="i18n_redirected",uF="nuxtI18nInternal",Wv="nuxt-i18n-slp";function fF(e){return e.map(t=>typeof t=="string"?{code:t}:t)}function _d(e){return typeof e=="string"?e:e!=null?e.toString():"(null)"}function zv(e,t,{defaultLocale:n,strategy:r,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s,differentDomains:i}){const a=r!=="no_prefix"||i;let l=_d(e)+(a?o+t:"");return t===n&&r==="prefix_and_default"&&(l+=o+s),l}function dF(e,t){return et(e)?e(t):e}function pF(e,t){const n=[];for(const[r,o]of t.entries()){const s=e.find(i=>i.language.toLowerCase()===o.toLowerCase());if(s){n.push({code:s.code,score:1-r/t.length});break}}for(const[r,o]of t.entries()){const s=o.split("-")[0].toLowerCase(),i=e.find(a=>a.language.split("-")[0].toLowerCase()===s);if(i){n.push({code:i.code,score:.999-r/t.length});break}}return n}function hF(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function gF(e,t,{matcher:n=pF,comparer:r=hF}={}){const o=[];for(const i of e){const{code:a}=i,l=i.language||a;o.push({code:a,language:l})}const s=n(o,t);return s.length===0?"":(s.length>1&&s.sort(r),s[0].code)}function Mm(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const mF=`(${ao.join("|")})`,Gv=Mm(ao);function Dm(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=it().public.i18n,n=`(?:${e}${t})?`,r=new RegExp(`${e}${mF}${n}$`,"i");return s=>{let i=null;return typeof s=="string"?(i=s.match(Gv),(i==null?void 0:i[1])??""):(s.name?i=_d(s.name).match(r):s.path&&(i=s.path.match(Gv)),(i==null?void 0:i[1])??"")}}const pl=new Map;async function yF(e,t){const n={messages:{}};for(const r of e){const{default:o}=await r(),s=et(o)?await t.runWithContext(()=>o()):o;Di(s,n)}return n}function Mx(e,t){if(e===!1)return[];if(Array.isArray(e))return e;let n=[];if(typeof e=="string")return t.every(o=>o!==e)&&n.push(e),n;const r=[...t,"default"];for(const o of r)o in e&&(n=[...n,...e[o].filter(Boolean)]);return n}async function _F(e,{key:t,load:n},r){let o=null;try{const s=await n().then(i=>"default"in i?i.default:i);et(s)?o=await r.runWithContext(()=>s(e)):(o=s,o!=null&&pl&&pl.set(t,o))}catch(s){console.error("Failed locale loading: "+s.message)}return o}async function lg(e,t,n,r){const o=t[e];if(o==null)return;const s={};for(const i of o){let a=null;pl&&pl.has(i.key)&&i.cache?a=pl.get(i.key):a=await r.runWithContext(()=>_F(e,i,r)),a!=null&&Di(a,s)}n(e,s)}function vF(e){return e!=null&&"global"in e&&"mode"in e}function bF(e){return e!=null&&!("__composer"in e)&&"locale"in e&&qe(e.locale)}function Dx(e){return e!=null&&"__composer"in e}function uf(e){return vF(e)?e.global:e}function Ja(e){const t=uf(e);return bF(t)?t:Dx(t)?t.__composer:t}function zi(e,t){const n=He(t);return n==null||!n.name?void 0:_d(n.name).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function $m(e,t,n){var o;if(typeof t=="string"&&yr(t,{acceptRelative:!0}))return t;const r=Fm(e,t,n);return r==null?"":((o=r.redirectedFrom)==null?void 0:o.fullPath)||r.fullPath}function vd(e,t,n){return Fm(e,t,n)??void 0}function wF(e){if(typeof e!="string")return Object.assign({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=Lh(e);return{path:t,query:sd(n),hash:r}}return{name:e}}const SF=e=>!!e.path&&!e.name;function EF(e,t,n){const r=e.runtimeConfig.public.i18n;if(SF(t)){const s=kF(e,t,n),i=zi(e,s);return i?(s.name=zv(i,n,r),s):(IF(e.runtimeConfig)({...r,currentLocale:n})&&(t.path="/"+n+t.path),t.path=(r.trailingSlash?Rl:id)(t.path,!0),t)}t.name||(t.name=zi(e,e.router.currentRoute.value));const o=zv(t.name,n,r);return e.router.hasRoute(o)&&(t.name=o),t}function Fm(e,t,n){try{const r=n||He(uf(e.i18n).locale),o=wF(t),s=e.router.resolve(EF(e,o,r));return s.name?s:e.router.resolve(t)}catch(r){if(Tr(r,1))return null}}function xF(e,t){var r;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return He(e.metaState.value);const n=t.meta||{};return((r=He(n))==null?void 0:r[uF])||{}}function ff(e,t,n){const r=n??e.router.currentRoute.value,o=zi(e,r);if(!o)return"";const s=xF(e,r)[t],i={name:o,params:Object.assign({},r.params,s),fullPath:r.fullPath,query:r.query,hash:r.hash,path:r.path,meta:r.meta},a=$m(e,i,t);return OF(e.runtimeConfig)(a,t)}function kF(e,t,n){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const r=t.path.slice(1),o=t.path[0]+n+(r&&"/"+r),s=e.router.options.routes.find(i=>i.path===o);return s==null?t:e.router.resolve(Object.assign({},t,s,{path:o}))}function $x(e){return{i18n:e??Ae().$i18n,router:Bt(),runtimeConfig:it(),metaState:ti("nuxt-i18n-meta",()=>({}))}}async function Fx(e,t=!1){const n=Ae(),{differentDomains:r,skipSettingLocaleOnNavigate:o}=n.$config.public.i18n,s=bc(),i=He(n.$i18n.locale),a=He(n.$i18n.localeCodes);function l(d=i){s===!1||!s.useCookie||o||n.$i18n.setLocaleCookie(d)}const c=await n.$i18n.onBeforeLanguageSwitch(i,e,t,n);if(c&&a.includes(c)){if(i===c)return l(),!1;e=c}if(!e||!t&&r||i===e)return l(),!1;const u=He(n.$i18n.fallbackLocale),f=n.$i18n.mergeLocaleMessage.bind(n.$i18n);if(u){const d=Mx(u,[e]);await Promise.all(d.map(p=>lg(p,ag,f,n)))}return await lg(e,ag,f,n),o?!1:(l(e),n._vueI18n.__setLocale(e),await n.$i18n.onLanguageSwitched(i,e),!0)}function TF(e,t,n,r){const o=Ae(),{strategy:s,defaultLocale:i,differentDomains:a,multiDomainLocales:l}=o.$config.public.i18n,c=bc(),u=FF(e,r,n);if(u.locale&&u.from!=null&&ao.includes(u.locale))return u.locale;let f="";a||l?f||(f=UF(yd,s,e)):s!=="no_prefix"&&(f||(f=t));const d=(ao.includes(u.locale)||r&&ao.includes(r))&&c&&c.useCookie&&r;return f||(f=d||n||i||""),f}function Ux({to:e,from:t,locale:n,routeLocale:r},o=!1){if(r===n||Ae().$i18n.strategy==="no_prefix")return"";const s=$x();let i=ff(s,n,e);return o&&!i&&(i=$m(s,e.fullPath,n)),Rh(i,e.fullPath)||t&&Rh(i,t.fullPath)?"":i}const CF=()=>ti(Nx+":redirect",()=>"");async function jx({nuxtApp:e,locale:t,route:n,redirectPath:r},o=!1){const{rootRedirect:s,differentDomains:i,multiDomainLocales:a,skipSettingLocaleOnNavigate:l,locales:c,strategy:u}=e.$config.public.i18n;if(n.path==="/"&&s)return typeof s=="string"?r="/"+s:(r="/"+s.path,s.statusCode),r=e.$localePath(r,t),Io(r,{});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=bd(),d=c.find(g=>{var h;if(typeof g!="string")return(h=g.defaultForDomains)==null?void 0:h.find(y=>y===f)}),p=typeof d!="string"?d==null?void 0:d.code:void 0;if(n.path.startsWith(`/${p}`))return Io(n.path.replace(`/${p}`,""));if(!n.path.startsWith(`/${t}`)&&t!==p){const h=Dm()(n.path);return Io(h!==""?`/${t+n.path.replace(`/${h}`,"")}`:`/${t+(n.path==="/"?"":n.path)}`)}return r&&n.path!==r?Io(r):void 0}if(i){const f=CF();f.value&&f.value!==r&&(f.value="",window.location.assign(r))}else if(r)return Io(r)}}function AF({currentLocale:e,defaultLocale:t,strategy:n}){return n!=="no_prefix"&&!(e===t&&(n==="prefix_and_default"||n==="prefix_except_default"))}function IF(e=it()){return t=>AF(t)&&!e.public.i18n.differentDomains}function OF(e=it()){return(t,n)=>{if(!e.public.i18n.differentDomains)return t;const r=Hx(n);return r&&Qs(r,t)||t}}function RF(){return()=>{const e=Ae(),{baseUrl:t,defaultLocale:n,differentDomains:r}=e.$config.public.i18n;if(et(t))return t(e);const o=et(n)?n():n;if(r&&o){const s=Hx(o);if(s)return s}return t}}function Bx(e){return Nx+" "+e}function LF(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Fs(e,t=$x()){return(...n)=>e(t,...n)}function PF(){let e;return navigator.languages&&(e=gF(yd,navigator.languages)),e}function NF(){const e=bc(),t=e&&e.cookieKey||cF,n=new Date,r={expires:new Date(n.setDate(n.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(r.domain=e.cookieDomain),wu(t,r)}function MF(e,t,n){if(t===!1||!t.useCookie)return;const r=e.value??void 0;if(r!=null){if(ao.includes(r))return r;if(n)return e.value=n,n;e.value=void 0}}function DF(e,t,n){n===!1||!n.useCookie||(e.value=t)}const $F={locale:"",reason:"disabled"};function FF(e,t,n=""){const r=bc();if(!r)return $F;const o=Ae(),s=o.$i18n.strategy;if(!o._vueI18n.__firstAccess)return{locale:s==="no_prefix"?n:"",reason:"first_access_only"};const{redirectOn:a,alwaysRedirect:l,useCookie:c,fallbackLocale:u}=r,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(Mm(ao)))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,y=h||u||"";return!h&&u&&(d="fallback"),{locale:y,from:d}}function bd(){let e;return e=window.location.host,e}function UF(e,t,n){let r=bd()||"";const o=Ve(n)?n.path:le(n)?n:"";if(r){let s;const i=e.filter(a=>{if(a&&a.domain){let l=a.domain;return yr(a.domain)&&(l=a.domain.replace(/(http|https):\/\//,"")),l===r}else if(Array.isArray(a==null?void 0:a.domains))return a.domains.includes(r);return!1});if(i.length===1)s=i[0];else if(i.length>1)if(t==="no_prefix")console.warn(Bx("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),s=i[0];else{if(n&&o&&o!==""){const a=o.match(Mm(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(r):a.domainDefault))}if(s)return s.code;r=""}return r}function Hx(e){var i,a,l;const t=it();Ae();const n=bd(),r=t.public.i18n,o=yd.find(c=>c.code===e),s=((a=(i=r==null?void 0:r.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===n));if(s){if(yr(s,{strict:!0}))return s;let c;return c=new URL(window.location.origin).protocol,c+"//"+s}console.warn(Bx("Could not find domain name for locale "+e))}const bc=(e=it().public.i18n)=>(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage;function jF(e,t){const{multiDomainLocales:n,strategy:r,routesNameSeparator:o,defaultLocaleRouteNameSuffix:s}=e.$config.public.i18n;if(!n||!(r==="prefix_except_default"||r==="prefix_and_default"))return;const i=Bt(),a=[o,s].join("");for(const l of i.getRoutes()){const c=_d(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 BF(e){const{locales:t,defaultLocale:n,multiDomainLocales:r}=e.$config.public.i18n;let o=n||"";if(!r)return o;const s=bd();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 HF({key:e,seo:t}){const n=Ae(),{defaultDirection:r}=it().public.i18n,o=He(n.$i18n.locale),s=fF(He(n.$i18n.locales)),i=s.find(a=>a.code===o)||{code:o};return{key:e,seo:t,locale:o,locales:s,currentDir:i.dir||r,currentLocale:i,currentLanguage:i.language,baseUrl:WF()}}function VF(e,{dir:t=!0,lang:n=!0,seo:r=!0,key:o="hid"}){const s={htmlAttrs:{},link:[],meta:[]},i=HF({seo:r,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),n&&i.currentLanguage&&(s.htmlAttrs.lang=i.currentLanguage),r&&i.locale&&i.locales&&(s.link.push(...zF(e,i),...GF(e,i)),s.meta.push(...qF(e,i),...KF(i),...YF(i)))),s}function WF(){const e=Ae(),t=Ja(e.$i18n);return Qs(He(t.baseUrl),e.$config.app.baseURL)}function zF(e,t){const{defaultLocale:n,strategy:r}=it().public.i18n,o=[];if(r==="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=cg(e,t);let d=ug(u,t.baseUrl);f&&i&&(d=`${d}?${f}`),u&&o.push({[t.key]:`i18n-alt-${l}`,rel:"alternate",href:d,hreflang:l})}if(n){const l=ff(e,n,a),c=cg(e,t);let u=ug(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 Vx(e,t){const n=e.router.currentRoute.value,r=vd(e,{...n,path:void 0,name:zi(e,n)});if(!r)return"";let o=ug(r.path,t.baseUrl);const s=cg(e,t);return s&&(o=`${o}?${s}`),o}function GF(e,t){const n=Vx(e,t);return n?[{[t.key]:"i18n-can",rel:"canonical",href:n}]:[]}function cg(e,t){const n=e.router.currentRoute.value,r=vd(e,{...n,path:void 0,name:zi(e,n)}),o=Ve(t.seo)&&t.seo.canonicalQueries||[],s=(r==null?void 0:r.query)||{},i=new URLSearchParams;for(const a of o)if(a in s){const l=s[a];Nt(l)?l.forEach(c=>i.append(a,c||"")):i.append(a,l||"")}return i.toString()||void 0}function qF(e,t){const n=Vx(e,t);return n?[{[t.key]:"i18n-og-url",property:"og:url",content:n}]:[]}function KF(e){return!e.currentLocale||!e.currentLanguage?[]:[{[e.key]:"i18n-og",property:"og:locale",content:Wx(e.currentLanguage)}]}function YF(e){return e.locales.filter(n=>n.language&&n.language!==e.currentLanguage).map(n=>({[e.key]:`i18n-og-alt-${n.language}`,property:"og:locale:alternate",content:Wx(n.language)}))}function Wx(e){return(e||"").replace(/-/g,"_")}function ug(e,t){return e.match(/^https?:\/\//)?e:Qs(t,e)}/*! * message-compiler v11.1.2 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function ZF(e,t,n){return{line:e,column:t,offset:n}}function fg(e,t,n){return{start:e,end:t}}const Xe={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},XF=17;function wd(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function JF(e){throw e}const qr=" ",QF="\r",mn=` `,eU="\u2028",tU="\u2029";function nU(e){const t=e;let n=0,r=1,o=1,s=0;const i=x=>t[x]===QF&&t[x+1]===mn,a=x=>t[x]===mn,l=x=>t[x]===tU,c=x=>t[x]===eU,u=x=>i(x)||a(x)||l(x)||c(x),f=()=>n,d=()=>r,p=()=>o,g=()=>s,h=x=>i(x)||l(x)||c(x)?mn:t[x],y=()=>h(n),m=()=>h(n+s);function b(){return s=0,u(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function _(){return i(n+s)&&s++,s++,t[n+s]}function v(){n=0,r=1,o=1,s=0}function S(x=0){s=x}function E(){const x=n+s;for(;x!==n;)b();s=0}return{index:f,line:d,column:p,peekOffset:g,charAt:h,currentChar:y,currentPeek:m,next:b,peek:_,reset:v,resetPeek:S,skipToPeek:E}}const xo=void 0,rU=".",qv="'",oU="tokenizer";function sU(e,t={}){const n=t.location!==!1,r=nU(e),o=()=>r.index(),s=()=>ZF(r.line(),r.column(),r.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,C,D,...j){const z=c();if(C.column+=D,C.offset+=D,u){const K=n?fg(z.startLoc,C):null,P=wd(k,K,{domain:oU,args:j});u(P)}}function d(k,C,D){k.endLoc=s(),k.currentType=C;const j={type:C};return n&&(j.loc=fg(k.startLoc,k.endLoc)),D!=null&&(j.value=D),j}const p=k=>d(k,13);function g(k,C){return k.currentChar()===C?(k.next(),C):(f(Xe.EXPECTED_TOKEN,s(),0,C),"")}function h(k){let C="";for(;k.currentPeek()===qr||k.currentPeek()===mn;)C+=k.currentPeek(),k.peek();return C}function y(k){const C=h(k);return k.skipToPeek(),C}function m(k){if(k===xo)return!1;const C=k.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C===95}function b(k){if(k===xo)return!1;const C=k.charCodeAt(0);return C>=48&&C<=57}function _(k,C){const{currentType:D}=C;if(D!==2)return!1;h(k);const j=m(k.currentPeek());return k.resetPeek(),j}function v(k,C){const{currentType:D}=C;if(D!==2)return!1;h(k);const j=k.currentPeek()==="-"?k.peek():k.currentPeek(),z=b(j);return k.resetPeek(),z}function S(k,C){const{currentType:D}=C;if(D!==2)return!1;h(k);const j=k.currentPeek()===qv;return k.resetPeek(),j}function E(k,C){const{currentType:D}=C;if(D!==7)return!1;h(k);const j=k.currentPeek()===".";return k.resetPeek(),j}function x(k,C){const{currentType:D}=C;if(D!==8)return!1;h(k);const j=m(k.currentPeek());return k.resetPeek(),j}function N(k,C){const{currentType:D}=C;if(!(D===7||D===11))return!1;h(k);const j=k.currentPeek()===":";return k.resetPeek(),j}function I(k,C){const{currentType:D}=C;if(D!==9)return!1;const j=()=>{const K=k.currentPeek();return K==="{"?m(k.peek()):K==="@"||K==="|"||K===":"||K==="."||K===qr||!K?!1:K===mn?(k.peek(),j()):U(k,!1)},z=j();return k.resetPeek(),z}function O(k){h(k);const C=k.currentPeek()==="|";return k.resetPeek(),C}function U(k,C=!0){const D=(z=!1,K="")=>{const P=k.currentPeek();return P==="{"||P==="@"||!P?z:P==="|"?!(K===qr||K===mn):P===qr?(k.peek(),D(!0,qr)):P===mn?(k.peek(),D(!0,mn)):!0},j=D();return C&&k.resetPeek(),j}function L(k,C){const D=k.currentChar();return D===xo?xo:C(D)?(k.next(),D):null}function G(k){const C=k.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36}function oe(k){return L(k,G)}function ce(k){const C=k.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36||C===45}function q(k){return L(k,ce)}function ne(k){const C=k.charCodeAt(0);return C>=48&&C<=57}function re(k){return L(k,ne)}function Se(k){const C=k.charCodeAt(0);return C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102}function lt(k){return L(k,Se)}function be(k){let C="",D="";for(;C=re(k);)D+=C;return D}function We(k){let C="";for(;;){const D=k.currentChar();if(D==="{"||D==="}"||D==="@"||D==="|"||!D)break;if(D===qr||D===mn)if(U(k))C+=D,k.next();else{if(O(k))break;C+=D,k.next()}else C+=D,k.next()}return C}function je(k){y(k);let C="",D="";for(;C=q(k);)D+=C;return k.currentChar()===xo&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D}function tn(k){y(k);let C="";return k.currentChar()==="-"?(k.next(),C+=`-${be(k)}`):C+=be(k),k.currentChar()===xo&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),C}function ze(k){return k!==qv&&k!==mn}function ht(k){y(k),g(k,"'");let C="",D="";for(;C=L(k,ze);)C==="\\"?D+=W(k):D+=C;const j=k.currentChar();return j===mn||j===xo?(f(Xe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),j===mn&&(k.next(),g(k,"'")),D):(g(k,"'"),D)}function W(k){const C=k.currentChar();switch(C){case"\\":case"'":return k.next(),`\\${C}`;case"u":return Q(k,C,4);case"U":return Q(k,C,6);default:return f(Xe.UNKNOWN_ESCAPE_SEQUENCE,s(),0,C),""}}function Q(k,C,D){g(k,C);let j="";for(let z=0;z{const j=k.currentChar();return j==="{"||j==="@"||j==="|"||j==="("||j===")"||!j||j===qr?D:(D+=j,k.next(),C(D))};return C("")}function T(k){y(k);const C=g(k,"|");return y(k),C}function A(k,C){let D=null;switch(k.currentChar()){case"{":return C.braceNest>=1&&f(Xe.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),k.next(),D=d(C,2,"{"),y(k),C.braceNest++,D;case"}":return C.braceNest>0&&C.currentType===2&&f(Xe.EMPTY_PLACEHOLDER,s(),0),k.next(),D=d(C,3,"}"),C.braceNest--,C.braceNest>0&&y(k),C.inLinked&&C.braceNest===0&&(C.inLinked=!1),D;case"@":return C.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=$(k,C)||p(C),C.braceNest=0,D;default:{let z=!0,K=!0,P=!0;if(O(k))return C.braceNest>0&&f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),D=d(C,1,T(k)),C.braceNest=0,C.inLinked=!1,D;if(C.braceNest>0&&(C.currentType===4||C.currentType===5||C.currentType===6))return f(Xe.UNTERMINATED_CLOSING_BRACE,s(),0),C.braceNest=0,B(k,C);if(z=_(k,C))return D=d(C,4,je(k)),y(k),D;if(K=v(k,C))return D=d(C,5,tn(k)),y(k),D;if(P=S(k,C))return D=d(C,6,ht(k)),y(k),D;if(!z&&!K&&!P)return D=d(C,12,ie(k)),f(Xe.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,D.value),y(k),D;break}}return D}function $(k,C){const{currentType:D}=C;let j=null;const z=k.currentChar();switch((D===7||D===8||D===11||D===9)&&(z===mn||z===qr)&&f(Xe.INVALID_LINKED_FORMAT,s(),0),z){case"@":return k.next(),j=d(C,7,"@"),C.inLinked=!0,j;case".":return y(k),k.next(),d(C,8,".");case":":return y(k),k.next(),d(C,9,":");default:return O(k)?(j=d(C,1,T(k)),C.braceNest=0,C.inLinked=!1,j):E(k,C)||N(k,C)?(y(k),$(k,C)):x(k,C)?(y(k),d(C,11,te(k))):I(k,C)?(y(k),z==="{"?A(k,C)||j:d(C,10,we(k))):(D===7&&f(Xe.INVALID_LINKED_FORMAT,s(),0),C.braceNest=0,C.inLinked=!1,B(k,C))}}function B(k,C){let D={type:13};if(C.braceNest>0)return A(k,C)||p(C);if(C.inLinked)return $(k,C)||p(C);switch(k.currentChar()){case"{":return A(k,C)||p(C);case"}":return f(Xe.UNBALANCED_CLOSING_BRACE,s(),0),k.next(),d(C,3,"}");case"@":return $(k,C)||p(C);default:{if(O(k))return D=d(C,1,T(k)),C.braceNest=0,C.inLinked=!1,D;if(U(k))return d(C,0,We(k));break}}return D}function H(){const{currentType:k,offset:C,startLoc:D,endLoc:j}=l;return l.lastType=k,l.lastOffset=C,l.lastStartLoc=D,l.lastEndLoc=j,l.offset=o(),l.startLoc=s(),r.currentChar()===xo?d(l,13):B(r,l)}return{nextToken:H,currentOffset:o,currentPosition:s,context:c}}const iU="parser",aU=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function lU(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function cU(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,b,_,v,...S){const E=m.currentPosition();if(E.offset+=v,E.column+=v,n){const x=t?fg(_,E):null,N=wd(b,x,{domain:iU,args:S});n(N)}}function o(m,b,_){const v={type:m};return t&&(v.start=b,v.end=b,v.loc={start:_,end:_}),v}function s(m,b,_,v){t&&(m.end=b,m.loc&&(m.loc.end=_))}function i(m,b){const _=m.context(),v=o(3,_.offset,_.startLoc);return v.value=b,s(v,m.currentOffset(),m.currentPosition()),v}function a(m,b){const _=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(5,v,S);return E.index=parseInt(b,10),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function l(m,b){const _=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(4,v,S);return E.key=b,m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function c(m,b){const _=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(9,v,S);return E.value=b.replace(aU,lU),m.nextToken(),s(E,m.currentOffset(),m.currentPosition()),E}function u(m){const b=m.nextToken(),_=m.context(),{lastOffset:v,lastStartLoc:S}=_,E=o(8,v,S);return b.type!==11?(r(m,Xe.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),E.value="",s(E,v,S),{nextConsumeToken:b,node:E}):(b.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,xr(b)),E.value=b.value||"",s(E,m.currentOffset(),m.currentPosition()),{node:E})}function f(m,b){const _=m.context(),v=o(7,_.offset,_.startLoc);return v.value=b,s(v,m.currentOffset(),m.currentPosition()),v}function d(m){const b=m.context(),_=o(6,b.offset,b.startLoc);let v=m.nextToken();if(v.type===8){const S=u(m);_.modifier=S.node,v=S.nextConsumeToken||m.nextToken()}switch(v.type!==9&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),v=m.nextToken(),v.type===2&&(v=m.nextToken()),v.type){case 10:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=f(m,v.value||"");break;case 4:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=l(m,v.value||"");break;case 5:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=a(m,v.value||"");break;case 6:v.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(v)),_.key=c(m,v.value||"");break;default:{r(m,Xe.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const S=m.context(),E=o(7,S.offset,S.startLoc);return E.value="",s(E,S.offset,S.startLoc),_.key=E,s(_,S.offset,S.startLoc),{nextConsumeToken:v,node:_}}}return s(_,m.currentOffset(),m.currentPosition()),{node:_}}function p(m){const b=m.context(),_=b.currentType===1?m.currentOffset():b.offset,v=b.currentType===1?b.endLoc:b.startLoc,S=o(2,_,v);S.items=[];let E=null;do{const I=E||m.nextToken();switch(E=null,I.type){case 0:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(i(m,I.value||""));break;case 5:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(a(m,I.value||""));break;case 4:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(l(m,I.value||""));break;case 6:I.value==null&&r(m,Xe.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,xr(I)),S.items.push(c(m,I.value||""));break;case 7:{const O=d(m);S.items.push(O.node),E=O.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const x=b.currentType===1?b.lastOffset:m.currentOffset(),N=b.currentType===1?b.lastEndLoc:m.currentPosition();return s(S,x,N),S}function g(m,b,_,v){const S=m.context();let E=v.items.length===0;const x=o(1,b,_);x.cases=[],x.cases.push(v);do{const N=p(m);E||(E=N.items.length===0),x.cases.push(N)}while(S.currentType!==13);return E&&r(m,Xe.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),s(x,m.currentOffset(),m.currentPosition()),x}function h(m){const b=m.context(),{offset:_,startLoc:v}=b,S=p(m);return b.currentType===13?S:g(m,_,v,S)}function y(m){const b=sU(m,Gt({},e)),_=b.context(),v=o(0,_.offset,_.startLoc);return t&&v.loc&&(v.loc.source=m),v.body=h(b),e.onCacheKey&&(v.cacheKey=e.onCacheKey(m)),_.currentType!==13&&r(b,Xe.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,m[_.offset]||""),s(v,b.currentOffset(),b.currentPosition()),v}return{parse:y}}function xr(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 uU(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Kv(e,t){for(let n=0;nYv(n)),e}function Yv(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 n=0;ni;function l(h,y){i.code+=h}function c(h,y=!0){const m=y?r:"";l(o?m+" ".repeat(h):m)}function u(h=!0){const y=++i.indentLevel;h&&c(y)}function f(h=!0){const y=--i.indentLevel;h&&c(y)}function d(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:d,helper:h=>`_${h}`,needIndent:()=>i.needIndent}}function hU(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Gi(e,t.key),t.modifier?(e.push(", "),Gi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function gU(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let s=0;s1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let s=0;s{const n=le(t.mode)?t.mode:"normal",r=le(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,s=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=pU(e,{filename:r,breakLineCode:o,needIndent:s});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),i.length>0&&(a.push(`const { ${Nm(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Gi(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 vU(e,t={}){const n=Gt({},t),r=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,a=cU(n).parse(e);return r?(s&&dU(a),o&&mi(a),{ast:a,code:""}):(fU(a,n),_U(a,n))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function bU(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Lm().__INTLIFY_PROD_DEVTOOLS__=!1)}function mp(e){return n=>wU(n,e)}function wU(e,t){const n=EU(t);if(n==null)throw Fl(0);if(jm(n)===1){const s=kU(n);return e.plural(s.reduce((i,a)=>[...i,Zv(e,a)],[]))}else return Zv(e,n)}const SU=["b","body"];function EU(e){return es(e,SU)}const xU=["c","cases"];function kU(e){return es(e,xU,[])}function Zv(e,t){const n=CU(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=IU(t).reduce((o,s)=>[...o,dg(e,s)],[]);return e.normalize(r)}}const TU=["s","static"];function CU(e){return es(e,TU)}const AU=["i","items"];function IU(e){return es(e,AU,[])}function dg(e,t){const n=jm(t);switch(n){case 3:return Qc(t,n);case 9:return Qc(t,n);case 4:{const r=t;if(sr(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(sr(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Fl(n)}case 5:{const r=t;if(sr(r,"i")&&Pt(r.i))return e.interpolate(e.list(r.i));if(sr(r,"index")&&Pt(r.index))return e.interpolate(e.list(r.index));throw Fl(n)}case 6:{const r=t,o=PU(r),s=MU(r);return e.linked(dg(e,s),o?dg(e,o):void 0,e.type)}case 7:return Qc(t,n);case 8:return Qc(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const OU=["t","type"];function jm(e){return es(e,OU)}const RU=["v","value"];function Qc(e,t){const n=es(e,RU);if(n)return n;throw Fl(t)}const LU=["m","modifier"];function PU(e){return es(e,LU)}const NU=["k","key"];function MU(e){const t=es(e,NU);if(t)return t;throw Fl(6)}function es(e,t,n){for(let r=0;re;let eu=tt();function qi(e){return Ve(e)&&jm(e)===0&&(sr(e,"b")||sr(e,"body"))}function $U(e,t={}){let n=!1;const r=t.onError||JF;return t.onError=o=>{n=!0,r(o)},{...vU(e,t),detectError:n}}function FU(e,t){if(le(e)){vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||DU)(e),o=eu[r];if(o)return o;const{ast:s,detectError:i}=$U(e,{...t,location:!1,jit:!0}),a=mp(s);return i?a:eu[r]=a}else{const n=e.cacheKey;if(n){const r=eu[n];return r||(eu[n]=mp(e))}else return mp(e)}}let Ul=null;function UU(e){Ul=e}function jU(e,t,n){Ul&&Ul.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const BU=HU("function:translate");function HU(e){return t=>Ul&&Ul.emit(e,t)}const so={INVALID_ARGUMENT:XF,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},VU=24;function io(e){return wd(e,null,void 0)}function Bm(e,t){return t.locale!=null?Xv(t.locale):Xv(e.locale)}let yp;function Xv(e){if(le(e))return e;if(et(e)){if(e.resolvedOnce&&yp!=null)return yp;if(e.constructor.name==="Function"){const t=e();if(oF(t))throw io(so.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return yp=t}else throw io(so.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw io(so.NOT_SUPPORT_LOCALE_TYPE)}function WU(e,t,n){return[...new Set([n,...Nt(t)?t:Ve(t)?Object.keys(t):le(t)?[t]:[n]])]}function zx(e,t,n){const r=le(n)?n:df,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;Nt(i);)i=Jv(s,i,t);const a=Nt(t)||!Fe(t)?t:t.default?t.default:null;i=le(a)?[a]:a,Nt(i)&&Jv(s,i,!1),o.__localeChainCache.set(r,s)}return s}function Jv(e,t,n){let r=!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--,r=4,d[0]();else{if(o=0,i===void 0||(i=XU(i),i===!1))return!1;d[1]()}};function p(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,a="\\"+g,d[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&p())){if(l=ZU(s),f=ts[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=d[c[1]],u&&(a=s,u()===!1))))return;if(r===7)return t}}const Qv=new Map;function QU(e,t){return Ve(e)?e[t]:null}function ej(e,t){if(!Ve(e))return null;let n=Qv.get(t);if(n||(n=JU(t),n&&Qv.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function nj(){return{upper:(e,t)=>t==="text"&&le(e)?e.toUpperCase():t==="vnode"&&Ve(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&le(e)?e.toLowerCase():t==="vnode"&&Ve(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&le(e)?tb(e):t==="vnode"&&Ve(e)&&"__v_isVNode"in e?tb(e.children):e}}let Gx;function rj(e){Gx=e}let qx;function oj(e){qx=e}let Kx;function sj(e){Kx=e}let Yx=null;const ij=e=>{Yx=e},aj=()=>Yx;let Zx=null;const nb=e=>{Zx=e},lj=()=>Zx;let rb=0;function cj(e={}){const t=et(e.onWarn)?e.onWarn:iF,n=le(e.version)?e.version:tj,r=le(e.locale)||et(e.locale)?e.locale:df,o=et(r)?df:r,s=Nt(e.fallbackLocale)||Fe(e.fallbackLocale)||le(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Fe(e.messages)?e.messages:_p(o),a=Fe(e.datetimeFormats)?e.datetimeFormats:_p(o),l=Fe(e.numberFormats)?e.numberFormats:_p(o),c=Gt(tt(),e.modifiers,nj()),u=e.pluralRules||tt(),f=et(e.missing)?e.missing:null,d=vt(e.missingWarn)||cf(e.missingWarn)?e.missingWarn:!0,p=vt(e.fallbackWarn)||cf(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,h=!!e.unresolving,y=et(e.postTranslation)?e.postTranslation:null,m=Fe(e.processor)?e.processor:null,b=vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,v=et(e.messageCompiler)?e.messageCompiler:Gx,S=et(e.messageResolver)?e.messageResolver:qx||QU,E=et(e.localeFallbacker)?e.localeFallbacker:Kx||WU,x=Ve(e.fallbackContext)?e.fallbackContext:void 0,N=e,I=Ve(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,O=Ve(N.__numberFormatters)?N.__numberFormatters:new Map,U=Ve(N.__meta)?N.__meta:{};rb++;const L={version:n,cid:rb,locale:r,fallbackLocale:s,messages:i,modifiers:c,pluralRules:u,missing:f,missingWarn:d,fallbackWarn:p,fallbackFormat:g,unresolving:h,postTranslation:y,processor:m,warnHtmlMessage:b,escapeParameter:_,messageCompiler:v,messageResolver:S,localeFallbacker:E,fallbackContext:x,onWarn:t,__meta:U};return L.datetimeFormats=a,L.numberFormats=l,L.__datetimeFormatters=I,L.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&jU(L,n,U),L}const _p=e=>({[e]:tt()});function Hm(e,t,n,r,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,n,t,o);return le(a)?a:t}else return t}function La(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function uj(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function fj(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{Xx.includes(l)?i[l]=n[l]:s[l]=n[l]}),le(r)?s.locale=r:Fe(r)&&(i=r),Fe(o)&&(i=o),[s.key||"",a,s,i]}function sb(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function ib(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=hg(...t),d=vt(u.missingWarn)?u.missingWarn:e.missingWarn;vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=Bm(e,u),h=i(e,o,g);if(!le(l)||l==="")return new Intl.NumberFormat(g,f).format(c);let y={},m,b=null;const _="number format";for(let E=0;E{Jx.includes(l)?i[l]=n[l]:s[l]=n[l]}),le(r)?s.locale=r:Fe(r)&&(i=r),Fe(o)&&(i=o),[s.key||"",a,s,i]}function ab(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const dj=e=>e,pj=e=>"",hj="text",gj=e=>e.length===0?"":Nm(e),mj=sF;function lb(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function yj(e){const t=Pt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Pt(e.named.count)||Pt(e.named.n))?Pt(e.named.count)?e.named.count:Pt(e.named.n)?e.named.n:t:t}function _j(e,t){t.count||(t.count=e),t.n||(t.n=e)}function vj(e={}){const t=e.locale,n=yj(e),r=Ve(e.pluralRules)&&le(t)&&et(e.pluralRules[t])?e.pluralRules[t]:lb,o=Ve(e.pluralRules)&&le(t)&&et(e.pluralRules[t])?lb:void 0,s=m=>m[r(n,m.length,o)],i=e.list||[],a=m=>i[m],l=e.named||tt();Pt(e.pluralIndex)&&_j(n,l);const c=m=>l[m];function u(m,b){const _=et(e.messages)?e.messages(m,!!b):Ve(e.messages)?e.messages[m]:!1;return _||(e.parent?e.parent.message(m):pj)}const f=m=>e.modifiers?e.modifiers[m]:dj,d=Fe(e.processor)&&et(e.processor.normalize)?e.processor.normalize:gj,p=Fe(e.processor)&&et(e.processor.interpolate)?e.processor.interpolate:mj,g=Fe(e.processor)&&le(e.processor.type)?e.processor.type:hj,y={list:a,named:c,plural:s,linked:(m,...b)=>{const[_,v]=b;let S="text",E="";b.length===1?Ve(_)?(E=_.modifier||E,S=_.type||S):le(_)&&(E=_||E):b.length===2&&(le(_)&&(E=_||E),le(v)&&(S=v||S));const x=u(m,!0)(y),N=S==="vnode"&&Nt(x)&&E?x[0]:x;return E?f(E)(N,S):N},message:u,type:g,interpolate:p,normalize:d,values:Gt(tt(),i,l)};return y}const cb=()=>"",Vn=e=>et(e);function ub(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,c]=gg(...t),u=vt(c.missingWarn)?c.missingWarn:e.missingWarn,f=vt(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=vt(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=le(c.default)||vt(c.default)?vt(c.default)?s?l:()=>l:c.default:n?s?l:()=>l:null,h=n||g!=null&&(le(g)||et(g)),y=Bm(e,c);d&&bj(c);let[m,b,_]=p?[l,y,a[y]||tt()]:Qx(e,l,y,i,f,u),v=m,S=l;if(!p&&!(le(v)||qi(v)||Vn(v))&&h&&(v=g,S=v),!p&&(!(le(v)||qi(v)||Vn(v))||!le(b)))return o?Sd:l;let E=!1;const x=()=>{E=!0},N=Vn(v)?v:ek(e,l,b,v,S,x);if(E)return v;const I=Ej(e,b,_,c),O=vj(I),U=wj(e,N,O),L=r?r(U,l):U;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:le(l)?l:Vn(v)?v.key:"",locale:b||(Vn(v)?v.locale:""),format:le(v)?v:Vn(v)?v.source:"",message:L};G.meta=Gt({},e.__meta,aj()||{}),BU(G)}return L}function bj(e){Nt(e.list)?e.list=e.list.map(t=>le(t)?Vv(t):t):Ve(e.named)&&Object.keys(e.named).forEach(t=>{le(e.named[t])&&(e.named[t]=Vv(e.named[t]))})}function Qx(e,t,n,r,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f=tt(),d,p=null;const g="translate";for(let h=0;hr;return c.locale=n,c.key=t,c}const l=i(r,Sj(e,n,o,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function wj(e,t,n){return t(n)}function gg(...e){const[t,n,r]=e,o=tt();if(!le(t)&&!Pt(t)&&!Vn(t)&&!qi(t))throw io(so.INVALID_ARGUMENT);const s=Pt(t)?String(t):(Vn(t),t);return Pt(n)?o.plural=n:le(n)?o.default=n:Fe(n)&&!md(n)?o.named=n:Nt(n)&&(o.list=n),Pt(r)?o.plural=r:le(r)?o.default=r:Fe(r)&&Gt(o,r),[s,o]}function Sj(e,t,n,r,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>Q$(t,n,i)}}function Ej(e,t,n,r){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(n,p);if(h==null&&(u||g)){const[,,y]=Qx(u||e,p,t,a,l,c);h=i(y,p)}if(le(h)||qi(h)){let y=!1;const b=ek(e,p,t,h,p,()=>{y=!0});return y?cb:b}else return Vn(h)?h:cb}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Pt(r.plural)&&(d.pluralIndex=r.plural),d}bU();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const xj="10.0.5";function kj(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Lm().__INTLIFY_PROD_DEVTOOLS__=!1)}const Kn={UNEXPECTED_RETURN_TYPE:VU,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 hr(e,...t){return wd(e,null,void 0)}const mg=Qo("__translateVNode"),yg=Qo("__datetimeParts"),_g=Qo("__numberParts"),Tj=Qo("__setPluralRules"),Cj=Qo("__injectWithOption"),vg=Qo("__dispose");function jl(e){if(!Ve(e))return e;for(const t in e)if(sr(e,t))if(!t.includes("."))Ve(e[t])&&jl(e[t]);else{const n=t.split("."),r=n.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]||tt(),Di(c,i[l])):Di(c,i)}else le(a)&&Di(JSON.parse(a),i)}),o==null&&s)for(const a in i)sr(i,a)&&jl(i[a]);return i}function nk(e){return e.type}function Aj(e,t,n){let r=Ve(t.messages)?t.messages:tt();"__i18nGlobal"in n&&(r=tk(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(Ve(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Ve(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function fb(e){return st(jo,null,e,0)}const db="__INTLIFY_META__",pb=()=>[],Ij=()=>!1;let hb=0;function gb(e){return(t,n,r,o)=>e(n,r,en()||void 0,o)}const Oj=()=>{const e=en();let t=null;return e&&(t=nk(e)[db])?{[db]:t}:null};function rk(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,s=lf?ue:fr;let i=vt(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)||Nt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=s(tk(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:vt(e.missingWarn)||cf(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:vt(e.fallbackWarn)||cf(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:vt(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,y=et(e.missing)?e.missing:null,m=et(e.missing)?gb(e.missing):null,b=et(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const S=t?t.modifiers:Fe(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,x;x=(()=>{r&&nb(null);const P={version:xj,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:S,pluralRules:E,missing:m===null?void 0:m,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"}};P.datetimeFormats=u.value,P.numberFormats=f.value,P.__datetimeFormatters=Fe(x)?x.__datetimeFormatters:void 0,P.__numberFormatters=Fe(x)?x.__numberFormatters:void 0;const F=cj(P);return r&&nb(F),F})(),La(x,a.value,l.value);function I(){return[a.value,l.value,c.value,u.value,f.value]}const O=J({get:()=>a.value,set:P=>{a.value=P,x.locale=a.value}}),U=J({get:()=>l.value,set:P=>{l.value=P,x.fallbackLocale=l.value,La(x,a.value,P)}}),L=J(()=>c.value),G=J(()=>u.value),oe=J(()=>f.value);function ce(){return et(b)?b:null}function q(P){b=P,x.postTranslation=P}function ne(){return y}function re(P){P!==null&&(m=gb(P)),y=P,x.missing=m}const Se=(P,F,ee,de,Le,Pe)=>{I();let gt;try{__INTLIFY_PROD_DEVTOOLS__,r||(x.fallbackContext=t?lj():void 0),gt=P(x)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(x.fallbackContext=void 0)}if(ee!=="translate exists"&&Pt(gt)&>===Sd||ee==="translate exists"&&!gt){const[Tt,qt]=F();return t&&g?de(t):Le(Tt)}else{if(Pe(gt))return gt;throw hr(Kn.UNEXPECTED_RETURN_TYPE)}};function lt(...P){return Se(F=>Reflect.apply(ub,null,[F,...P]),()=>gg(...P),"translate",F=>Reflect.apply(F.t,F,[...P]),F=>F,F=>le(F))}function be(...P){const[F,ee,de]=P;if(de&&!Ve(de))throw hr(Kn.INVALID_ARGUMENT);return lt(F,ee,Gt({resolvedMessage:!0},de||{}))}function We(...P){return Se(F=>Reflect.apply(ob,null,[F,...P]),()=>pg(...P),"datetime format",F=>Reflect.apply(F.d,F,[...P]),()=>eb,F=>le(F))}function je(...P){return Se(F=>Reflect.apply(ib,null,[F,...P]),()=>hg(...P),"number format",F=>Reflect.apply(F.n,F,[...P]),()=>eb,F=>le(F))}function tn(P){return P.map(F=>le(F)||Pt(F)||vt(F)?fb(String(F)):F)}const ht={normalize:tn,interpolate:P=>P,type:"vnode"};function W(...P){return Se(F=>{let ee;const de=F;try{de.processor=ht,ee=Reflect.apply(ub,null,[de,...P])}finally{de.processor=null}return ee},()=>gg(...P),"translate",F=>F[mg](...P),F=>[fb(F)],F=>Nt(F))}function Q(...P){return Se(F=>Reflect.apply(ib,null,[F,...P]),()=>hg(...P),"number format",F=>F[_g](...P),pb,F=>le(F)||Nt(F))}function X(...P){return Se(F=>Reflect.apply(ob,null,[F,...P]),()=>pg(...P),"datetime format",F=>F[yg](...P),pb,F=>le(F)||Nt(F))}function ie(P){E=P,x.pluralRules=E}function te(P,F){return Se(()=>{if(!P)return!1;const ee=le(F)?F:a.value,de=A(ee),Le=x.messageResolver(de,P);return qi(Le)||Vn(Le)||le(Le)},()=>[P],"translate exists",ee=>Reflect.apply(ee.te,ee,[P,F]),Ij,ee=>vt(ee))}function we(P){let F=null;const ee=zx(x,l.value,a.value);for(let de=0;de{i&&(a.value=P,x.locale=P,La(x,a.value,l.value))}),Oe(t.fallbackLocale,P=>{i&&(l.value=P,x.fallbackLocale=P,La(x,a.value,l.value))}));const K={id:hb,locale:O,fallbackLocale:U,get inheritLocale(){return i},set inheritLocale(P){i=P,P&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,La(x,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:L,get modifiers(){return S},get pluralRules(){return E||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(P){d=P,x.missingWarn=d},get fallbackWarn(){return p},set fallbackWarn(P){p=P,x.fallbackWarn=p},get fallbackRoot(){return g},set fallbackRoot(P){g=P},get fallbackFormat(){return h},set fallbackFormat(P){h=P,x.fallbackFormat=h},get warnHtmlMessage(){return _},set warnHtmlMessage(P){_=P,x.warnHtmlMessage=P},get escapeParameter(){return v},set escapeParameter(P){v=P,x.escapeParameter=P},t:lt,getLocaleMessage:A,setLocaleMessage:$,mergeLocaleMessage:B,getPostTranslationHandler:ce,setPostTranslationHandler:q,getMissingHandler:ne,setMissingHandler:re,[Tj]:ie};return K.datetimeFormats=G,K.numberFormats=oe,K.rt=be,K.te=te,K.tm=T,K.d=We,K.n=je,K.getDateTimeFormat=H,K.setDateTimeFormat=k,K.mergeDateTimeFormat=C,K.getNumberFormat=D,K.setNumberFormat=j,K.mergeNumberFormat=z,K[Cj]=n,K[mg]=W,K[yg]=X,K[_g]=Q,K}const Vm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Rj({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===bt?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},tt())}function ok(){return bt}const Lj=At({name:"i18n-t",props:Gt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Pt(e)||!isNaN(e)}},Vm),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),i=tt();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=le(e.plural)?+e.plural:e.plural);const a=Rj(t,s),l=o[mg](e.keypath,a,i),c=Gt(tt(),r),u=le(e.tag)||Ve(e.tag)?e.tag:ok();return Ct(u,c,l)}}}),mb=Lj;function Pj(e){return Nt(e)&&!le(e[0])}function sk(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let a=tt();e.locale&&(i.locale=e.locale),le(e.format)?i.key=e.format:Ve(e.format)&&(le(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,p)=>n.includes(p)?Gt(tt(),d,{[p]:e.format[p]}):d,tt()));const l=r(e.value,i,a);let c=[i.key];Nt(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 Pj(h)&&(h[0].key=`${d.type}-${p}`),h}):le(l)&&(c=[l]);const u=Gt(tt(),s),f=le(e.tag)||Ve(e.tag)?e.tag:ok();return Ct(f,u,c)}}const Nj=At({name:"i18n-n",props:Gt({value:{type:Number,required:!0},format:{type:[String,Object]}},Vm),setup(e,t){const n=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return sk(e,t,Jx,(...r)=>n[_g](...r))}}),yb=Nj,Mj=At({name:"i18n-d",props:Gt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Vm),setup(e,t){const n=e.i18n||Ed({useScope:e.scope,__useComponent:!0});return sk(e,t,Xx,(...r)=>n[yg](...r))}}),_b=Mj;function Dj(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function $j(e){const t=i=>{const{instance:a,value:l}=i;if(!a||!a.$)throw hr(Kn.UNEXPECTED_ERROR);const c=Dj(e,a.$),u=vb(l);return[Reflect.apply(c.t,c,[...bb(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=vb(a);i.textContent=Reflect.apply(l.t,l,[...bb(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function vb(e){if(le(e))return{path:e};if(Fe(e)){if(!("path"in e))throw hr(Kn.REQUIRED_VALUE,"path");return e}else throw hr(Kn.INVALID_VALUE)}function bb(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,i={},a=r||{};return le(n)&&(i.locale=n),Pt(o)&&(i.plural=o),Pt(s)&&(i.plural=s),[t,a,i]}function Fj(e,t,...n){const r=Fe(n[0])?n[0]:{};(vt(r.globalInstall)?r.globalInstall:!0)&&([mb.name,"I18nT"].forEach(s=>e.component(s,mb)),[yb.name,"I18nN"].forEach(s=>e.component(s,yb)),[_b.name,"I18nD"].forEach(s=>e.component(s,_b))),e.directive("t",$j(t))}const Uj=Qo("global-vue-i18n");function jj(e={},t){const n=vt(e.globalInjection)?e.globalInjection:!0,r=new Map,[o,s]=Bj(e),i=Qo("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function c(f){r.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;n&&(p=Yj(f,u.global)),Fj(f,u,...d);const g=f.unmount;f.unmount=()=>{p&&p(),u.dispose(),g()}},get global(){return s},dispose(){o.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:c};return u}function Ed(e={}){const t=en();if(t==null)throw hr(Kn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw hr(Kn.NOT_INSTALLED);const n=Hj(t),r=Wj(n),o=nk(t),s=Vj(e,o);if(s==="global")return Aj(r,e,o),r;if(s==="parent"){let l=zj(n,t,e.__useComponent);return l==null&&(l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Gt({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),a=rk(l),i.__composerExtend&&(a[vg]=i.__composerExtend(a)),qj(i,t,a),i.__setInstance(t,a)}return a}function Bj(e,t,n){const r=la(),o=r.run(()=>rk(e));if(o==null)throw hr(Kn.UNEXPECTED_ERROR);return[r,o]}function Hj(e){const t=Ut(e.isCE?Uj:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw hr(e.isCE?Kn.NOT_INSTALLED_WITH_PROVIDE:Kn.UNEXPECTED_ERROR);return t}function Vj(e,t){return md(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Wj(e){return e.mode==="composition"?e.global:e.global.__composer}function zj(e,t,n=!1){let r=null;const o=t.root;let s=Gj(t,n);for(;s!=null;){const i=e;if(e.mode==="composition"&&(r=i.__getInstance(s)),r!=null||o===s)break;s=s.parent}return r}function Gj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function qj(e,t,n){Rn(()=>{},t),Js(()=>{const r=n;e.__deleteInstance(t);const o=r[vg];o&&(o(),delete r[vg])},t)}const Kj=["locale","fallbackLocale","availableLocales"],wb=["t","rt","d","n","tm","te"];function Yj(e,t){const n=Object.create(null);return Kj.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw hr(Kn.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(n,o,i)}),e.config.globalProperties.$i18n=n,wb.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw hr(Kn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,wb.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}kj();rj(FU);oj(ej);sj(zx);if(__INTLIFY_PROD_DEVTOOLS__){const e=Lm();e.__INTLIFY__=!0,UU(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Zj(){return Fs(zi)}function Xj(){return Fs($m)}function Jj(){return Fs(vd)}function Qj(){return Fs(vd)}function ik(){return Fs(ff)}const eB=Je({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const t=ik(),n=new RegExp([``,".+?",``].join(""),"g");e.hook("app:rendered",r=>{var o;((o=r.renderResult)==null?void 0:o.html)!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(n,(s,i)=>s.replace(/href="([^"]+)"/,`href="${encodeURI(t(i??""))}"`)))})}}),tB=Je({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=e,o=r.$router.currentRoute,s=Dm();async function i(l){let c=TF(l,s(l),He(r.$i18n.locale),r.$i18n.getLocaleCookie());if(r._vueI18n.__firstAccess){r._vueI18n.__setLocale(c);const f=Mx(He(r._vueI18n.global.fallbackLocale),[c]);await Promise.all(f.map(d=>r.$i18n.loadLocaleMessages(d))),await r.$i18n.loadLocaleMessages(c)}return await r.runWithContext(()=>Fx(c,r._vueI18n.__firstAccess))&&(c=He(r.$i18n.locale)),c}[t,n]=zt(()=>i(o.value)),await t,n(),E1("locale-changing",async(l,c)=>{let u,f;const d=([u,f]=zt(()=>r.runWithContext(()=>i(l))),u=await u,f(),u),p=([u,f]=zt(()=>r.runWithContext(()=>Ux({to:l,from:c,locale:d,routeLocale:s(l)},!0))),u=await u,f(),u);return r._vueI18n.__firstAccess=!1,[u,f]=zt(()=>r.runWithContext(()=>jx({nuxtApp:r,redirectPath:p,locale:d,route:l}))),u=await u,f(),u},{global:!0})}});function nB(e,{extendComposer:t,extendComposerInstance:n}){const r=la(),o=e.install.bind(e);return e.install=(s,...i)=>{const a=Object.assign({},i[0]);a.__composerExtend=c=>(n(c,Ja(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=c=>(n(c,Ja(c)),()=>{})),Reflect.apply(o,e,[s,a]);const l=Ja(e);if(r.run(()=>{t(l),e.mode==="legacy"&&Dx(e.global)&&n(e.global,Ja(e.global))}),e.mode==="composition"&&s.config.globalProperties.$i18n!=null&&n(s.config.globalProperties.$i18n,l),s.unmount){const c=s.unmount.bind(s);s.unmount=()=>{r.stop(),c()}}},r}const rB=Je({name:"i18n:plugin",parallel:lF,async setup(e){var d;let t,n;const r=e,o=r.$router.currentRoute,s=BF(r);jF(r,s);const i={...r.$config.public.i18n,defaultLocale:s};r.$config.public.i18n.defaultLocale=s,i.baseUrl=RF();const a=bc(),l=([t,n]=zt(()=>yF(aF,Ae())),t=await t,n(),t);l.messages=l.messages||{};for(const p of ao)(d=l.messages)[p]??(d[p]={});l.fallbackLocale=l.fallbackLocale??!1,s&&(l.locale=s);const c=Dm(),u=NF(),f=jj(l);return f.__firstAccess=!0,f.__setLocale=p=>{const g=uf(f);qe(g.locale)?g.locale.value=p:g.locale=p},r._vueI18n=f,nB(f,{extendComposer(p){const g=ue(i.locales),h=ue(ao),y=ue("");p.locales=J(()=>g.value),p.localeCodes=J(()=>h.value),p.baseUrl=J(()=>y.value),Oe(p.locale,()=>{y.value=dF(i.baseUrl,r)},{immediate:!0}),p.strategy=i.strategy,p.localeProperties=J(()=>yd.find(m=>m.code===p.locale.value)||{code:p.locale.value}),p.setLocale=async m=>{if(await Fx(m,f.__firstAccess),p.strategy==="no_prefix"){await p.loadLocaleMessages(m),f.__setLocale(m);return}const b=o.value,_=await r.runWithContext(()=>Ux({to:b,locale:m,routeLocale:c(b)}));await r.runWithContext(()=>jx({nuxtApp:r,redirectPath:_,locale:m,route:b},!0))},p.loadLocaleMessages=async m=>await lg(m,ag,p.mergeLocaleMessage.bind(p),r),p.differentDomains=i.differentDomains,p.defaultLocale=i.defaultLocale,p.getBrowserLocale=()=>PF(),p.getLocaleCookie=()=>MF(u,a,p.defaultLocale),p.setLocaleCookie=m=>DF(u,m,a),p.onBeforeLanguageSwitch=(m,b,_,v)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:m,newLocale:b,initialSetup:_,context:v}),p.onLanguageSwitched=(m,b)=>e.callHook("i18n:localeSwitched",{oldLocale:m,newLocale:b}),p.finalizePendingLocaleChange=async()=>{var m;f.__pendingLocale&&(f.__setLocale(f.__pendingLocale),(m=f.__resolvePendingLocalePromise)==null||m.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 y=>Reflect.apply(g.setLocale,g,[y])],["loadLocaleMessages",()=>async y=>Reflect.apply(g.loadLocaleMessages,g,[y])],["differentDomains",()=>g.differentDomains],["defaultLocale",()=>g.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(g.getBrowserLocale,g,[])],["getLocaleCookie",()=>()=>Reflect.apply(g.getLocaleCookie,g,[])],["setLocaleCookie",()=>y=>Reflect.apply(g.setLocaleCookie,g,[y])],["onBeforeLanguageSwitch",()=>(y,m,b,_)=>Reflect.apply(g.onBeforeLanguageSwitch,g,[y,m,b,_])],["onLanguageSwitched",()=>(y,m)=>Reflect.apply(g.onLanguageSwitched,g,[y,m])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(g.finalizePendingLocaleChange,g,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(g.waitForPendingLocaleChange,g,[])]];for(const[y,m]of h)Object.defineProperty(p,y,{get:m})}}),e.vueApp.use(f),LF(r,"$i18n",uf(f)),{provide:{localeHead:Fs(VF),localePath:Xj(),localeRoute:Jj(),getRouteBaseName:Zj(),switchLocalePath:ik(),resolveRoute:Fs(Fm),localeLocation:Qj()}}}});function oB(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 xd(e){try{const t="__test__";return e.setItem(t,"test"),e.removeItem(t),!0}catch{return!1}}function sB(e){var t;return import.meta&&((t=document.cookie.split("; ").find(n=>n.startsWith(`${e}=`)))==null?void 0:t.split("=")[1])||null}const Pn={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Sb={silent:{level:-1},fatal:{level:Pn.fatal},error:{level:Pn.error},warn:{level:Pn.warn},log:{level:Pn.log},info:{level:Pn.info},success:{level:Pn.success},fail:{level:Pn.fail},ready:{level:Pn.info},start:{level:Pn.info},box:{level:Pn.info},debug:{level:Pn.debug},trace:{level:Pn.trace},verbose:{level:Pn.verbose}};function vp(e){return e!==null&&typeof e=="object"}function bg(e,t,n=".",r){if(!vp(t))return bg(e,{},n);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]]:vp(i)&&vp(o[s])?o[s]=bg(i,o[s],(n?`${n}.`:"")+s.toString()):o[s]=i)}return o}function iB(e){return(...t)=>t.reduce((n,r)=>bg(n,r,""),{})}const aB=iB();function lB(e){return Object.prototype.toString.call(e)==="[object Object]"}function cB(e){return!(!lB(e)||!e.message&&!e.args||e.stack)}let bp=!1;const Eb=[];class Qt{constructor(t={}){const n=t.types||Sb;this.options=aB({...t,defaults:{...t.defaults},level:wp(t.level,n),reporters:[...t.reporters||[]]},{types:Sb,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const o={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(o),this[r].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=wp(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new Qt({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}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 n=this.options.reporters.indexOf(t);if(n>=0)return this.options.reporters.splice(n,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,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).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(){bp=!0}resumeLogs(){bp=!1;const t=Eb.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(bp){Eb.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:wp(t.level,this.options.types)};!r&&n.length===1&&cB(n[0])?Object.assign(o,n[0]):o.args=[...n],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 n of this.options.reporters)n.log(t,{options:this.options})}}function wp(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}Qt.prototype.add=Qt.prototype.addReporter;Qt.prototype.remove=Qt.prototype.removeReporter;Qt.prototype.clear=Qt.prototype.removeReporter;Qt.prototype.withScope=Qt.prototype.withTag;Qt.prototype.mock=Qt.prototype.mockTypes;Qt.prototype.pause=Qt.prototype.pauseLogs;Qt.prototype.resume=Qt.prototype.resumeLogs;function uB(e={}){return new Qt(e)}class fB{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 n=this._getLogFn(t.level),r=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,r].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${a}%c ${t.args[0]}`,i,"",...t.args.slice(1)):n(a,i,...t.args)}}function dB(e={}){return uB({reporters:e.reporters||[new fB({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const pB=dB(),pt=pB.withTag("app"),xb=["getItem","setItem","removeItem","clear","length"],Sp=pt.withTag("StorageEmulator");class hB{constructor(t){Ln(this,"storage",{});this.customStorage=t,t&&oB(t)&&xd(t)?this.storage=t:this.storage={}}setItem(t,n){if(xb.includes(t)){Sp.warn(`Key "${t}" is not allowed in storage.`);return}this.storage[t]=n}getItem(t){return this.storage[t]||null}removeItem(t){if(xb.includes(t)){Sp.warn(`Key "${t}" is not allowed in storage.`);return}if(!this.storage[t]){Sp.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 ak{constructor(t){Ln(this,"storage");this.storage=new hB(t)}setItem(t,n){this.storage.setItem(t,n)}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 gB{constructor(t,n,r){Ln(this,"prefix");Ln(this,"expirationMs");Ln(this,"storage");this.prefix=n,this.expirationMs=r,this.storage=t}storageKey(t){return`${this.prefix}:${t}`}load(t,n){const r=n??this.expirationMs,o=this.storage.getItem(this.storageKey(t))??"";try{const{value:s,timestamp:i}=JSON.parse(o);return Date.now()-i>r?(this.storage.removeItem(this.storageKey(t)),null):s}catch{return this.storage.removeItem(this.storageKey(t)),null}}save(t,n){const r={value:n,timestamp:Date.now()};this.storage.setItem(this.storageKey(t),JSON.stringify(r))}remove(t){this.storage.removeItem(this.storageKey(t))}clear(){const t=Object.keys(this.storage).filter(n=>n.startsWith(this.prefix));for(const n of t)this.storage.removeItem(n)}get length(){return Object.keys(this.storage).filter(t=>t.startsWith(this.prefix)).length}key(t){return Object.keys(this.storage).filter(r=>r.startsWith(this.prefix))[t]||null}getItem(t){return this.load(t)}setItem(t,n){this.save(t,n)}removeItem(t){this.remove(t)}clearAll(){this.clear()}}const ms=new ak(typeof window<"u"?window.localStorage:void 0),mB=new ak(typeof window<"u"?window.sessionStorage:void 0),pf=ms;xd(ms);xd(mB);xd(pf);const Xn=()=>{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}};function kb(e,t){const n=encodeURIComponent(e);return{url:`https://lusearch.com/?br=Chrome&searchEngine=Yahoo&pid=${t}&bitmask=9998&q=${n}`,isMonetized:!0}}const yB="wc.onenews",_B="3007";function vB(){const e=window==null?void 0:window.location.hostname,t=window==null?void 0:window.location.port;return e==="wc.onenews.com"||e==="wc-staging.onenews.com"||(e==null?void 0:e.includes(yB))||e==="localhost"&&t===_B}const bB=pt.withTag("utils:getSearchUrl");async function wB(e,t){var o;const{fallbackUrl:n="",queryPlaceholder:r="{searchTerms}"}={...t};try{if(typeof window<"u"&&vB()){const d=new URLSearchParams(window.location.search).get("variant");if(d==="branded")return kb(e,"NT260101");if(d==="unbranded")return kb(e,"NT260102")}const s=f=>f.replace(r,encodeURIComponent(e)),{shift:i,onelaunch:a}=Xn(),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(n)}}catch(s){return bB.error(s),{url:n}}}function SB(){const{shift:e,onelaunch:t}=Xn(),n=e==null?void 0:e.getServerConfig;if(n)return n();const r=t==null?void 0:t.getMergedData;return r?r():new Promise(o=>o(void 0))}const EB=pt.withTag("utils:host-browser-apis:openInDefaultBrowser");async function xB(e){var r;const{shift:t,onelaunch:n}=Xn();try{const o=(r=t==null?void 0:t.ntp)==null?void 0:r.openInDefaultBrowser;if(o){await o(e);return}const s=n==null?void 0:n.openInDefaultBrowser;if(s){await s(e);return}}catch(o){EB.error("Failed to open in default browser",o)}window.open(e,"_blank")}const kB=pt.withTag("utils:isCurrentlyAtHomeTab");function lk(){try{const e=window.location.href,t=new URL(e),n=new URLSearchParams(t.search);return n.has("pinned")&&n.get("pinned")==="true"}catch(e){return kB.error(e),!1}}function ck(){var t;const{onelaunch:e}=Xn();return(t=e==null?void 0:e.getInstallInfo)==null?void 0:t.call(e)}function TB(){var t,n;const{shift:e}=Xn();return(n=(t=e==null?void 0:e.search)==null?void 0:t.getDefault)==null?void 0:n.call(t)}async function uk(){const e=await ck();return(e==null?void 0:e.version)||"unknown"}var CB=typeof global=="object"&&global&&global.Object===Object&&global,AB=typeof self=="object"&&self&&self.Object===Object&&self,IB=CB||AB||Function("return this")(),hf=IB.Symbol,fk=Object.prototype,OB=fk.hasOwnProperty,RB=fk.toString,Pa=hf?hf.toStringTag:void 0;function LB(e){var t=OB.call(e,Pa),n=e[Pa];try{e[Pa]=void 0;var r=!0}catch{}var o=RB.call(e);return r&&(t?e[Pa]=n:delete e[Pa]),o}var PB=Object.prototype,NB=PB.toString;function MB(e){return NB.call(e)}var DB="[object Null]",$B="[object Undefined]",Tb=hf?hf.toStringTag:void 0;function FB(e){return e==null?e===void 0?$B:DB:Tb&&Tb in Object(e)?LB(e):MB(e)}function UB(e){return e!=null&&typeof e=="object"}var jB="[object Symbol]";function BB(e){return typeof e=="symbol"||UB(e)&&FB(e)==jB}var HB=/\s/;function VB(e){for(var t=e.length;t--&&HB.test(e.charAt(t)););return t}var WB=/^\s+/;function zB(e){return e&&e.slice(0,VB(e)+1).replace(WB,"")}function Cb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ab=NaN,GB=/^[-+]0x[0-9a-f]+$/i,qB=/^0b[01]+$/i,KB=/^0o[0-7]+$/i,YB=parseInt;function ZB(e){if(typeof e=="number")return e;if(BB(e))return Ab;if(Cb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zB(e);var n=qB.test(e);return n||KB.test(e)?YB(e.slice(2),n?2:8):GB.test(e)?Ab:+e}var XB=1/0,JB=17976931348623157e292;function QB(e){if(!e)return e===0?e:0;if(e=ZB(e),e===XB||e===-1/0){var t=e<0?-1:1;return t*JB}return e===e?e:0}function eH(e){var t=QB(e),n=t%1;return t===t?n?t-n:t:0}var tH="Expected a function";function nH(e,t){var n;if(typeof t!="function")throw new TypeError(tH);return e=eH(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function dk(e){return nH(2,e)}var rH=Object.defineProperty,oH=Object.defineProperties,sH=Object.getOwnPropertyDescriptors,Ib=Object.getOwnPropertySymbols,iH=Object.prototype.hasOwnProperty,aH=Object.prototype.propertyIsEnumerable,Ob=(e,t,n)=>t in e?rH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ep=(e,t)=>{for(var n in t||(t={}))iH.call(t,n)&&Ob(e,n,t[n]);if(Ib)for(var n of Ib(t))aH.call(t,n)&&Ob(e,n,t[n]);return e},xp=(e,t)=>oH(e,sH(t)),yi=(e,t,n)=>new Promise((r,o)=>{var s=l=>{try{a(n.next(l))}catch(c){o(c)}},i=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,i);a((n=n.apply(e,t)).next())}),lH={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",ERROR:"ERROR"},pk=(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))(pk||{}),ns=class hk extends Error{constructor(t,n){super(t),Object.setPrototypeOf(this,hk.prototype),this.name="OpenFeatureError",this.cause=n==null?void 0:n.cause}},cH=class gk extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,gk.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},mk=class yk extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,yk.prototype),this.name="GeneralError",this.code="GENERAL"}},uH=class _k extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,_k.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},fH=class vk extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,vk.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},bk=class wk extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,wk.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},Sk=class Ek extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,Ek.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},dH=class xk extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,xk.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},pH=class kk extends ns{constructor(t,n){super(t,n),Object.setPrototypeOf(this,kk.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},hH=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new cH(t);case"PARSE_ERROR":return new fH(t);case"TYPE_MISMATCH":return new pH(t);case"TARGETING_KEY_MISSING":return new dH(t);case"INVALID_CONTEXT":return new uH(t);case"PROVIDER_NOT_READY":return new Sk(t);case"PROVIDER_FATAL":return new bk(t);default:return new mk(t)}},Bl=(e=>(e.NOT_READY="NOT_READY",e.READY="READY",e.ERROR="ERROR",e.STALE="STALE",e.FATAL="FATAL",e.RECONCILING="RECONCILING",e))(Bl||{}),Qr=(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))(Qr||{}),gH={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},Tk=(e,t)=>!t&&e==="PROVIDER_READY"||gH[t]===e,Ck=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},mH=["error","warn","info","debug"],Wm=class{constructor(e){this.fallbackLogger=new Ck;try{for(const t of mH)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)}}},yH=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 n=o=>yi(this,null,function*(){var s;try{yield t(o)}catch(i){(s=this._logger)==null||s.error("Error running event handler:",i)}}),r=this._handlers[e].get(t);this._handlers[e].set(t,[...r||[],n]),this.eventEmitter.on(e,n)}removeHandler(e,t){const n=this._handlers[e].get(t);if(n){const r=n.pop();r&&this.eventEmitter.removeListener(e,r)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new Wm(e),this}get _logger(){var e,t;return(t=this._eventLogger)!=null?t:(e=this.globalLogger)==null?void 0:e.call(this)}};function _H(e){return typeof e=="string"}function _i(e){return _H(e)?e:void 0}function vH(e){return typeof e=="object"}function Hn(e){return vH(e)?e:void 0}function Rb(e){return typeof e<"u"&&e!==null}var wg=class{constructor(e,t,n){this._provider=e,this._status=t,this._pendingContextChanges=0;var r,o,s;(r=e.events)==null||r.addHandler("PROVIDER_READY",()=>{this._status=n.READY}),(o=e.events)==null||o.addHandler("PROVIDER_STALE",()=>{this._status=n.STALE}),(s=e.events)==null||s.addHandler("PROVIDER_ERROR",i=>{(i==null?void 0:i.errorCode)==="PROVIDER_FATAL"?this._status=n.FATAL:this._status=n.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--}},bH=class{constructor(e){this._hooks=[],this._context={},this._logger=new Ck,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 Wm(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,n){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var o;const s=r[0],i=r[1].provider,a=r[1].status;if(Tk(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),n!=null&&n.signal&&typeof n.signal.addEventListener=="function"&&n.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 n,r,o,s,i,a,l,c;const u=_i(e),f=(n=Hn(e))!=null?n:Hn(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 mk(`Provider '${f.metadata.name}' is intended for use on the ${f.runsOn}.`);const g=this.getAssociatedEventEmitters(u);let h;const y=new wg(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?(r=this._domainScopedContext.get(u))!=null?r:this._context:this._context))==null?void 0:s.then(()=>{var m;y.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(u).forEach(b=>{b==null||b.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}),(m=this._apiEmitter)==null||m.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:p})}))==null?void 0:i.catch(m=>{var b;throw(m==null?void 0:m.code)==="PROVIDER_FATAL"?y.status=this._statusEnumType.FATAL:y.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(u).forEach(_=>{_==null||_.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:m==null?void 0:m.message})}),(b=this._apiEmitter)==null||b.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:p,message:m==null?void 0:m.message}),m}):(y.status=this._statusEnumType.READY,g.forEach(m=>{m==null||m.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,y):this._defaultProvider=y,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(m=>{this._logger.error(`error closing provider: ${m==null?void 0:m.message}, ${m==null?void 0:m.stack}`)}),h}getProviderForClient(e){var t,n;return e?(n=(t=this._domainScopedProviders.get(e))==null?void 0:t.provider)!=null?n:this._defaultProvider.provider:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){const t=this._clientEvents.get(e);if(t)return t;const n=this._createEventEmitter();this._clientEvents.set(e,n);const r=this.getProviderForClient(e);return Object.values(Qr).forEach(o=>{var s;return(s=r.events)==null?void 0:s.addHandler(o,i=>yi(this,null,function*(){n.emit(o,xp(Ep({},i),{clientName:e,domain:e,providerName:r.metadata.name}))}))}),n}getUnboundEmitters(){const e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(Rb).filter(r=>!e.includes(r)).map(r=>this._clientEvents.get(r)),this._clientEvents.get(void 0)].filter(Rb)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,n,r){var o;(o=this._clientEventHandlers.get(n))==null||o.forEach(i=>{var a;return(a=e.events)==null?void 0:a.removeHandler(...i)});const s=Object.values(Qr).map(i=>[i,l=>yi(this,null,function*(){r.forEach(c=>{c==null||c.emit(i,xp(Ep({},l),{clientName:n,domain:n,providerName:t.metadata.name}))}),this._apiEmitter.emit(i,xp(Ep({},l),{clientName:n,domain:n,providerName:t.metadata.name}))})]);this._clientEventHandlers.set(n,s),s.forEach(i=>{var a;return(a=t.events)==null?void 0:a.addHandler(...i)})}close(){return yi(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(r){this.handleShutdownError(this._defaultProvider.provider,r)}const n=Array.from(this._domainScopedProviders);yield Promise.all(n.map(r=>yi(this,[r],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 yi(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 wg(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)}},wH=Object.create,zm=Object.defineProperty,SH=Object.defineProperties,EH=Object.getOwnPropertyDescriptor,xH=Object.getOwnPropertyDescriptors,Ak=Object.getOwnPropertyNames,Lb=Object.getOwnPropertySymbols,Ik=Object.getPrototypeOf,Ok=Object.prototype.hasOwnProperty,kH=Object.prototype.propertyIsEnumerable,TH=Reflect.get,Pb=(e,t,n)=>t in e?zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kp=(e,t)=>{for(var n in t||(t={}))Ok.call(t,n)&&Pb(e,n,t[n]);if(Lb)for(var n of Lb(t))kH.call(t,n)&&Pb(e,n,t[n]);return e},CH=(e,t)=>SH(e,xH(t)),AH=(e,t)=>function(){return t||(0,e[Ak(e)[0]])((t={exports:{}}).exports,t),t.exports},IH=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ak(t))!Ok.call(e,o)&&o!==n&&zm(e,o,{get:()=>t[o],enumerable:!(r=EH(t,o))||r.enumerable});return e},OH=(e,t,n)=>(n=e!=null?wH(Ik(e)):{},IH(zm(n,"default",{value:e,enumerable:!0}),e)),RH=(e,t,n)=>TH(Ik(e),n,t),ci=(e,t,n)=>new Promise((r,o)=>{var s=l=>{try{a(n.next(l))}catch(c){o(c)}},i=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,i);a((n=n.apply(e,t)).next())}),LH=AH({"../../node_modules/eventemitter3/index.js"(e,t){var n=Object.prototype.hasOwnProperty,r="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(r=!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=r?r+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)n.call(f,d)&&u.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=r?r+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 Mb}static getInstance(){const t=$b[Db];if(t)return t;const n=new Sg;return $b[Db]=n,n}getProviderStatus(t){var n,r;return t?(r=(n=this._domainScopedProviders.get(t))==null?void 0:n.status)!=null?r:this._defaultProvider.status:this._defaultProvider.status}setProviderAndWait(t,n,r){return ci(this,null,function*(){const o=_i(t),s=Hn(o?n:t),i=Hn(o?r:n);i&&(o?this._domainScopedContext.set(o,i):this._context=i),yield this.setAwaitableProvider(o,s)})}setProvider(t,n,r){const o=_i(t),s=Hn(o?n:t),i=Hn(o?r:n);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,n){return ci(this,null,function*(){var r,o;const s=_i(t),i=(o=(r=Hn(t))!=null?r:Hn(n))!=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 n=_i(t);if(n){const r=this._domainScopedContext.get(n);if(r)return r;this._logger.debug(`Unable to find context for '${n}'.`)}return this._context}clearContext(t){return ci(this,null,function*(){const n=_i(t);if(n){const r=this._domainScopedProviders.get(n);if(r){const o=this.getContext(n);this._domainScopedContext.delete(n);const s=this.getContext();yield this.runProviderContextChangeHandler(n,r,o,s)}else this._domainScopedContext.delete(n)}else return this.setContext({})})}clearContexts(){return ci(this,null,function*(){yield this.clearContext(),yield Promise.allSettled(Array.from(this._domainScopedProviders.keys()).map(t=>this.clearContext(t)))})}getClient(t,n){return new DH(()=>this.getProviderForClient(t),()=>this.getProviderStatus(t),()=>this.buildAndCacheEventEmitterForClient(t),r=>this.getContext(r),()=>this.getHooks(),()=>this._logger,{domain:t,version:n})}clearProviders(){return ci(this,null,function*(){yield RH(Sg.prototype,this,"clearProvidersAndSetDefault").call(this,Nb),this._domainScopedContext.clear()})}runProviderContextChangeHandler(t,n,r,o){return ci(this,null,function*(){var s,i,a,l,c,u;const f=((i=(s=n.provider)==null?void 0:s.metadata)==null?void 0:i.name)||"unnamed-provider";try{if(typeof n.provider.onContextChange=="function"){const d=n.provider.onContextChange(r,o);typeof(d==null?void 0:d.then)=="function"&&(n.incrementPendingContextChanges(),n.status=this._statusEnumType.RECONCILING,this.getAssociatedEventEmitters(t).forEach(p=>{p==null||p.emit(Qr.Reconciling,{domain:t,providerName:f})}),(a=this._apiEmitter)==null||a.emit(Qr.Reconciling,{domain:t,providerName:f}),yield d,n.decrementPendingContextChanges())}n.status=this._statusEnumType.READY,n.allContextChangesSettled&&(this.getAssociatedEventEmitters(t).forEach(d=>{d==null||d.emit(Qr.ContextChanged,{clientName:t,domain:t,providerName:f})}),(l=this._apiEmitter)==null||l.emit(Qr.ContextChanged,{clientName:t,domain:t,providerName:f}))}catch(d){if(n.decrementPendingContextChanges(),n.status=this._statusEnumType.ERROR,n.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(Qr.Error,{clientName:t,domain:t,providerName:f,message:g})}),(u=this._apiEmitter)==null||u.emit(Qr.Error,{clientName:t,domain:t,providerName:f,message:g})}}})}},no=$H.getInstance();const FH="_targetingKey",UH="_splittestname",Rk="_cohort";function S9(){const e=Xn();return["shift","onelaunch"].some(n=>e[n]!==void 0)}function jH(){return Xn().shift!==void 0}var Ue;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,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 r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(Ue||(Ue={}));var Eg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Eg||(Eg={}));const ae=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),No=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"]),BH=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Mn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_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)r._errors.push(n(i));else{let a=r,l=0;for(;ln.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Mn.create=e=>new Mn(e);const Ki=(e,t)=>{let n;switch(e.code){case Y.invalid_type:e.received===ae.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ue.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ue.joinValues(e.keys,", ")}`;break;case Y.invalid_union:n="Invalid input";break;case Y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ue.joinValues(e.options)}`;break;case Y.invalid_enum_value:n=`Invalid enum value. Expected ${Ue.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:n="Invalid function arguments";break;case Y.invalid_return_type:n="Invalid function return type";break;case Y.invalid_date:n="Invalid date";break;case Y.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ue.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Y.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Y.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Y.custom:n="Invalid input";break;case Y.invalid_intersection_types:n="Intersection results could not be merged";break;case Y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ue.assertNever(e)}return{message:n}};let Lk=Ki;function HH(e){Lk=e}function gf(){return Lk}const mf=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},VH=[];function se(e,t){const n=gf(),r=mf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ki?void 0:Ki].filter(o=>!!o)});e.common.issues.push(r)}class cn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return ve;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return cn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){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)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const ve=Object.freeze({status:"aborted"}),Si=e=>({status:"dirty",value:e}),wn=e=>({status:"valid",value:e}),xg=e=>e.status==="aborted",kg=e=>e.status==="dirty",Hl=e=>e.status==="valid",Vl=e=>typeof Promise<"u"&&e instanceof Promise;function yf(e,t,n,r){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 Pk(e,t,n,r,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,n),n}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 Qa,el;class $r{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,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 Fb=(e,t)=>{if(Hl(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 n=new Mn(e.common.issues);return this._error=n,this._error}}};function Te(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))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??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==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 No(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:No(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new cn,ctx:{common:t.parent.common,data:t.data,parsedType:No(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Vl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:No(t)},s=this._parseSync({data:t,path:o.path,parent:o});return Fb(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:No(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(Vl(o)?o:Promise.resolve(o));return Fb(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:Y.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new gr({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Nr.create(this,this._def)}nullable(){return qo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ur.create(this,this._def)}promise(){return Zi.create(this,this._def)}or(t){return ql.create([this,t],this._def)}and(t){return Kl.create(this,t,this._def)}transform(t){return new gr({...Te(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ql({...Te(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new Gm({typeName:_e.ZodBranded,type:this,...Te(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ec({...Te(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return wc.create(this,t)}readonly(){return tc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const WH=/^c[^\s-]{8,}$/i,zH=/^[0-9a-z]+$/,GH=/^[0-9A-HJKMNP-TV-Z]{26}$/,qH=/^[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,KH=/^[a-z0-9_-]{21}$/i,YH=/^[-+]?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)?)??$/,ZH=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,XH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Tp;const JH=/^(?:(?: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])$/,QH=/^(([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})))$/,e3=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Nk="((\\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])))",t3=new RegExp(`^${Nk}$`);function Mk(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 n3(e){return new RegExp(`^${Mk(e)}$`)}function Dk(e){let t=`${Nk}T${Mk(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function r3(e,t){return!!((t==="v4"||!t)&&JH.test(e)||(t==="v6"||!t)&&QH.test(e))}class ir 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 r=new cn;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}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.lengtht.test(o),{validation:n,code:Y.invalid_string,...pe.errToObj(r)})}_addCheck(t){return new ir({...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 n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!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,n){return this._addCheck({kind:"regex",regex:t,...pe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...pe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...pe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...pe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...pe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...pe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...pe.errToObj(n)})}nonempty(t){return this.min(1,pe.errToObj(t))}trim(){return new ir({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ir({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ir({...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 n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new ir({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Te(e)})};function o3(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class Wo 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 r;const o=new cn;for(const s of this._def.checks)s.kind==="int"?Ue.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),se(r,{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)&&(r=this._getOrReturnCtx(t,r),se(r,{code:Y.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?o3(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),se(r,{code:Y.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),se(r,{code:Y.not_finite,message:s.message}),o.dirty()):Ue.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,pe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,pe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,pe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,pe.toString(n))}setLimit(t,n,r,o){return new Wo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:pe.toString(o)}]})}_addCheck(t){return new Wo({...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,n){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(n)})}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 n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Ue.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew Wo({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Te(e)});class zo 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 r;const o=new cn;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),se(r,{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)&&(r=this._getOrReturnCtx(t,r),se(r,{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,n){return this.setLimit("min",t,!0,pe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,pe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,pe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,pe.toString(n))}setLimit(t,n,r,o){return new zo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:pe.toString(o)}]})}_addCheck(t){return new zo({...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,n){return this._addCheck({kind:"multipleOf",value:t,message:pe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new zo({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Te(e)})};class Wl extends Ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ae.boolean){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.boolean,received:r.parsedType}),ve}return wn(t.data)}}Wl.create=e=>new Wl({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Te(e)});class Us 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 r=new cn;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"}),r.dirty()):Ue.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Us({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:pe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:pe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Us({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Te(e)});class _f extends Ie{_parse(t){if(this._getType(t)!==ae.symbol){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.symbol,received:r.parsedType}),ve}return wn(t.data)}}_f.create=e=>new _f({typeName:_e.ZodSymbol,...Te(e)});class zl extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.undefined,received:r.parsedType}),ve}return wn(t.data)}}zl.create=e=>new zl({typeName:_e.ZodUndefined,...Te(e)});class Gl extends Ie{_parse(t){if(this._getType(t)!==ae.null){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.null,received:r.parsedType}),ve}return wn(t.data)}}Gl.create=e=>new Gl({typeName:_e.ZodNull,...Te(e)});class Yi extends Ie{constructor(){super(...arguments),this._any=!0}_parse(t){return wn(t.data)}}Yi.create=e=>new Yi({typeName:_e.ZodAny,...Te(e)});class Is extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wn(t.data)}}Is.create=e=>new Is({typeName:_e.ZodUnknown,...Te(e)});class fo extends Ie{_parse(t){const n=this._getOrReturnCtx(t);return se(n,{code:Y.invalid_type,expected:ae.never,received:n.parsedType}),ve}}fo.create=e=>new fo({typeName:_e.ZodNever,...Te(e)});class vf extends Ie{_parse(t){if(this._getType(t)!==ae.undefined){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.void,received:r.parsedType}),ve}return wn(t.data)}}vf.create=e=>new vf({typeName:_e.ZodVoid,...Te(e)});class ur extends Ie{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==ae.array)return se(n,{code:Y.invalid_type,expected:ae.array,received:n.parsedType}),ve;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.lengtho.maxLength.value&&(se(n,{code:Y.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new $r(n,i,n.path,a)))).then(i=>cn.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new $r(n,i,n.path,a)));return cn.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new ur({...this._def,minLength:{value:t,message:pe.toString(n)}})}max(t,n){return new ur({...this._def,maxLength:{value:t,message:pe.toString(n)}})}length(t,n){return new ur({...this._def,exactLength:{value:t,message:pe.toString(n)}})}nonempty(t){return this.min(1,t)}}ur.create=(e,t)=>new ur({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Te(t)});function vi(e){if(e instanceof yt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Nr.create(vi(r))}return new yt({...e._def,shape:()=>t})}else return e instanceof ur?new ur({...e._def,type:vi(e.element)}):e instanceof Nr?Nr.create(vi(e.unwrap())):e instanceof qo?qo.create(vi(e.unwrap())):e instanceof Fr?Fr.create(e.items.map(t=>vi(t))):e}class yt 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(),n=Ue.objectKeys(t);return this._cached={shape:t,keys:n}}_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:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof fo&&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 $r(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof fo){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}),r.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 $r(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=>cn.mergeObjectSync(r,c)):cn.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return pe.errToObj,new yt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=pe.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new yt({...this._def,unknownKeys:"strip"})}passthrough(){return new yt({...this._def,unknownKeys:"passthrough"})}extend(t){return new yt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new yt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new yt({...this._def,catchall:t})}pick(t){const n={};return Ue.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}omit(t){const n={};return Ue.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new yt({...this._def,shape:()=>n})}deepPartial(){return vi(this)}partial(t){const n={};return Ue.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new yt({...this._def,shape:()=>n})}required(t){const n={};return Ue.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Nr;)s=s._def.innerType;n[r]=s}}),new yt({...this._def,shape:()=>n})}keyof(){return $k(Ue.objectKeys(this.shape))}}yt.create=(e,t)=>new yt({shape:()=>e,unknownKeys:"strip",catchall:fo.create(),typeName:_e.ZodObject,...Te(t)});yt.strictCreate=(e,t)=>new yt({shape:()=>e,unknownKeys:"strict",catchall:fo.create(),typeName:_e.ZodObject,...Te(t)});yt.lazycreate=(e,t)=>new yt({shape:e,unknownKeys:"strip",catchall:fo.create(),typeName:_e.ZodObject,...Te(t)});class ql extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=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 n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new Mn(a.ctx.common.issues));return se(n,{code:Y.invalid_union,unionErrors:i}),ve}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.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 n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new Mn(l));return se(n,{code:Y.invalid_union,unionErrors:a}),ve}}get options(){return this._def.options}}ql.create=(e,t)=>new ql({options:e,typeName:_e.ZodUnion,...Te(t)});const Yr=e=>e instanceof Zl?Yr(e.schema):e instanceof gr?Yr(e.innerType()):e instanceof Xl?[e.value]:e instanceof Go?e.options:e instanceof Jl?Ue.objectValues(e.enum):e instanceof Ql?Yr(e._def.innerType):e instanceof zl?[void 0]:e instanceof Gl?[null]:e instanceof Nr?[void 0,...Yr(e.unwrap())]:e instanceof qo?[null,...Yr(e.unwrap())]:e instanceof Gm||e instanceof tc?Yr(e.unwrap()):e instanceof ec?Yr(e._def.innerType):[];class kd extends Ie{_parse(t){const{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 r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(se(n,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=Yr(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 kd({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Te(r)})}}function Tg(e,t){const n=No(e),r=No(t);if(e===t)return{valid:!0,data:e};if(n===ae.object&&r===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(n===ae.array&&r===ae.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s{if(xg(s)||xg(i))return ve;const a=Tg(s.value,i.value);return a.valid?((kg(s)||kg(i))&&n.dirty(),{status:n.value,value:a.data}):(se(r,{code:Y.invalid_intersection_types}),ve)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Kl.create=(e,t,n)=>new Kl({left:e,right:t,typeName:_e.ZodIntersection,...Te(n)});class Fr extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.array)return se(r,{code:Y.invalid_type,expected:ae.array,received:r.parsedType}),ve;if(r.data.lengththis._def.items.length&&(se(r,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new $r(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>cn.mergeArray(n,i)):cn.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new Fr({...this._def,rest:t})}}Fr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Fr({items:e,typeName:_e.ZodTuple,rest:null,...Te(t)})};class Yl extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,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 o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new $r(r,a,r.path,a)),value:i._parse(new $r(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?cn.mergeObjectAsync(n,o):cn.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ie?new Yl({keyType:t,valueType:n,typeName:_e.ZodRecord,...Te(r)}):new Yl({keyType:ir.create(),valueType:t,typeName:_e.ZodRecord,...Te(n)})}}class bf extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.map)return se(r,{code:Y.invalid_type,expected:ae.map,received:r.parsedType}),ve;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new $r(r,a,r.path,[c,"key"])),value:s._parse(new $r(r,l,r.path,[c,"value"]))}));if(r.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")&&n.dirty(),a.set(c.value,u.value)}return{status:n.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")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}bf.create=(e,t,n)=>new bf({valueType:t,keyType:e,typeName:_e.ZodMap,...Te(n)});class js extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ae.set)return se(r,{code:Y.invalid_type,expected:ae.set,received:r.parsedType}),ve;const o=this._def;o.minSize!==null&&r.data.sizeo.maxSize.value&&(se(r,{code:Y.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.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"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>s._parse(new $r(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new js({...this._def,minSize:{value:t,message:pe.toString(n)}})}max(t,n){return new js({...this._def,maxSize:{value:t,message:pe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}js.create=(e,t)=>new js({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Te(t)});class $i extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.function)return se(n,{code:Y.invalid_type,expected:ae.function,received:n.parsedType}),ve;function r(a,l){return mf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,gf(),Ki].filter(c=>!!c),issueData:{code:Y.invalid_arguments,argumentsError:l}})}function o(a,l){return mf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,gf(),Ki].filter(c=>!!c),issueData:{code:Y.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Zi){const a=this;return wn(async function(...l){const c=new Mn([]),u=await a._def.args.parseAsync(l,s).catch(p=>{throw c.addIssue(r(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 wn(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new Mn([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(u,s);if(!f.success)throw new Mn([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new $i({...this._def,args:Fr.create(t).rest(Is.create())})}returns(t){return new $i({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new $i({args:t||Fr.create([]).rest(Is.create()),returns:n||Is.create(),typeName:_e.ZodFunction,...Te(r)})}}class Zl extends Ie{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Zl.create=(e,t)=>new Zl({getter:e,typeName:_e.ZodLazy,...Te(t)});class Xl extends Ie{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return se(n,{received:n.data,code:Y.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}Xl.create=(e,t)=>new Xl({value:e,typeName:_e.ZodLiteral,...Te(t)});function $k(e,t){return new Go({values:e,typeName:_e.ZodEnum,...Te(t)})}class Go extends Ie{constructor(){super(...arguments),Qa.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return se(n,{expected:Ue.joinValues(r),received:n.parsedType,code:Y.invalid_type}),ve}if(yf(this,Qa)||Pk(this,Qa,new Set(this._def.values)),!yf(this,Qa).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return se(n,{received:n.data,code:Y.invalid_enum_value,options:r}),ve}return wn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Go.create(t,{...this._def,...n})}exclude(t,n=this._def){return Go.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Qa=new WeakMap;Go.create=$k;class Jl extends Ie{constructor(){super(...arguments),el.set(this,void 0)}_parse(t){const n=Ue.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ae.string&&r.parsedType!==ae.number){const o=Ue.objectValues(n);return se(r,{expected:Ue.joinValues(o),received:r.parsedType,code:Y.invalid_type}),ve}if(yf(this,el)||Pk(this,el,new Set(Ue.getValidEnumValues(this._def.values))),!yf(this,el).has(t.data)){const o=Ue.objectValues(n);return se(r,{received:r.data,code:Y.invalid_enum_value,options:o}),ve}return wn(t.data)}get enum(){return this._def.values}}el=new WeakMap;Jl.create=(e,t)=>new Jl({values:e,typeName:_e.ZodNativeEnum,...Te(t)});class Zi extends Ie{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ae.promise&&n.common.async===!1)return se(n,{code:Y.invalid_type,expected:ae.promise,received:n.parsedType}),ve;const r=n.parsedType===ae.promise?n.data:Promise.resolve(n.data);return wn(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Zi.create=(e,t)=>new Zi({type:e,typeName:_e.ZodPromise,...Te(t)});class gr 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:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{se(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return ve;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?ve:l.status==="dirty"||n.value==="dirty"?Si(l.value):l});{if(n.value==="aborted")return ve;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?ve:a.status==="dirty"||n.value==="dirty"?Si(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.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(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ve:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?ve:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Hl(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:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Hl(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);Ue.assertNever(o)}}gr.create=(e,t,n)=>new gr({schema:e,typeName:_e.ZodEffects,effect:t,...Te(n)});gr.createWithPreprocess=(e,t,n)=>new gr({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Te(n)});class Nr extends Ie{_parse(t){return this._getType(t)===ae.undefined?wn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:_e.ZodOptional,...Te(t)});class qo extends Ie{_parse(t){return this._getType(t)===ae.null?wn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qo.create=(e,t)=>new qo({innerType:e,typeName:_e.ZodNullable,...Te(t)});class Ql extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ae.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ql.create=(e,t)=>new Ql({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Te(t)});class ec extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Vl(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Mn(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Mn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Te(t)});class wf extends Ie{_parse(t){if(this._getType(t)!==ae.nan){const r=this._getOrReturnCtx(t);return se(r,{code:Y.invalid_type,expected:ae.nan,received:r.parsedType}),ve}return{status:"valid",value:t.data}}}wf.create=e=>new wf({typeName:_e.ZodNaN,...Te(e)});const s3=Symbol("zod_brand");class Gm extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class wc extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?ve:s.status==="dirty"?(n.dirty(),Si(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?ve:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new wc({in:t,out:n,typeName:_e.ZodPipeline})}}class tc extends Ie{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Hl(o)&&(o.value=Object.freeze(o.value)),o);return Vl(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}tc.create=(e,t)=>new tc({innerType:e,typeName:_e.ZodReadonly,...Te(t)});function Fk(e,t={},n){return e?Yi.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):Yi.create()}const i3={object:yt.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 a3=(e,t={message:`Input not instance of ${e.name}`})=>Fk(n=>n instanceof e,t),Uk=ir.create,jk=Wo.create,l3=wf.create,c3=zo.create,Bk=Wl.create,u3=Us.create,f3=_f.create,d3=zl.create,p3=Gl.create,h3=Yi.create,g3=Is.create,m3=fo.create,y3=vf.create,_3=ur.create,v3=yt.create,b3=yt.strictCreate,w3=ql.create,S3=kd.create,E3=Kl.create,x3=Fr.create,k3=Yl.create,T3=bf.create,C3=js.create,A3=$i.create,I3=Zl.create,O3=Xl.create,R3=Go.create,L3=Jl.create,P3=Zi.create,Ub=gr.create,N3=Nr.create,M3=qo.create,D3=gr.createWithPreprocess,$3=wc.create,F3=()=>Uk().optional(),U3=()=>jk().optional(),j3=()=>Bk().optional(),B3={string:e=>ir.create({...e,coerce:!0}),number:e=>Wo.create({...e,coerce:!0}),boolean:e=>Wl.create({...e,coerce:!0}),bigint:e=>zo.create({...e,coerce:!0}),date:e=>Us.create({...e,coerce:!0})},H3=ve;var R=Object.freeze({__proto__:null,defaultErrorMap:Ki,setErrorMap:HH,getErrorMap:gf,makeIssue:mf,EMPTY_PATH:VH,addIssueToContext:se,ParseStatus:cn,INVALID:ve,DIRTY:Si,OK:wn,isAborted:xg,isDirty:kg,isValid:Hl,isAsync:Vl,get util(){return Ue},get objectUtil(){return Eg},ZodParsedType:ae,getParsedType:No,ZodType:Ie,datetimeRegex:Dk,ZodString:ir,ZodNumber:Wo,ZodBigInt:zo,ZodBoolean:Wl,ZodDate:Us,ZodSymbol:_f,ZodUndefined:zl,ZodNull:Gl,ZodAny:Yi,ZodUnknown:Is,ZodNever:fo,ZodVoid:vf,ZodArray:ur,ZodObject:yt,ZodUnion:ql,ZodDiscriminatedUnion:kd,ZodIntersection:Kl,ZodTuple:Fr,ZodRecord:Yl,ZodMap:bf,ZodSet:js,ZodFunction:$i,ZodLazy:Zl,ZodLiteral:Xl,ZodEnum:Go,ZodNativeEnum:Jl,ZodPromise:Zi,ZodEffects:gr,ZodTransformer:gr,ZodOptional:Nr,ZodNullable:qo,ZodDefault:Ql,ZodCatch:ec,ZodNaN:wf,BRAND:s3,ZodBranded:Gm,ZodPipeline:wc,ZodReadonly:tc,custom:Fk,Schema:Ie,ZodSchema:Ie,late:i3,get ZodFirstPartyTypeKind(){return _e},coerce:B3,any:h3,array:_3,bigint:c3,boolean:Bk,date:u3,discriminatedUnion:S3,effect:Ub,enum:R3,function:A3,instanceof:a3,intersection:E3,lazy:I3,literal:O3,map:T3,nan:l3,nativeEnum:L3,never:m3,null:p3,nullable:M3,number:jk,object:v3,oboolean:j3,onumber:U3,optional:N3,ostring:F3,pipeline:$3,preprocess:D3,promise:P3,record:k3,set:C3,strictObject:b3,string:Uk,symbol:f3,transformer:Ub,tuple:x3,undefined:d3,union:w3,unknown:g3,void:y3,NEVER:H3,ZodIssueCode:Y,quotelessJson:BH,ZodError:Mn});const V3=pt.withTag("updateUserEngagementState"),W3=e=>{const t=e.isEngaged?"isEngaged":"notEngaged",n=no.getContext();V3.info(`User engagement state updated: ${t}`),no.setContext({...n,...e}),window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var r,o;(o=(r=window.assertive)==null?void 0:r.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}})})},jb=pt.withTag("store:UserEngagementStore"),Cg=R.object({isEngaged:R.boolean(),lastEngagementDate:R.date().nullable()}),Cp="app:userEngagement",tu=Cg.parse({isEngaged:!1,lastEngagementDate:null}),z3=pa(Cp,{state:()=>({...tu}),getters:{isEnabled(){return!!it().public.enableUserTracking},localStorageEngagement(){const e=pf.getItem(Cp);if(!e)return tu;const t=JSON.parse(e),n=Cg.safeParse({...t,lastEngagementDate:new Date(t.lastEngagementDate)});return n.success?n.data:(jb.error("Invalid user engagement data:",n.error.errors),tu)}},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)),W3(t)},{flush:"sync"})},setUserEngagement(e,t){if(!this.isEnabled)return;const n={...this.$state,[e]:t,lastEngagementDate:new Date},r=Cg.safeParse(n);if(!r.success){jb.error("Invalid user engagement entry",r.error.errors);return}this.$patch(r.data)},resetUserEngagement(){this.isEnabled&&this.$patch({...tu})},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 c,u;const{shift:n,chrome:r,onelaunch:o}=Xn(),s=(c=n==null?void 0:n.analytics)==null?void 0:c.setProfileProperties;if(s)return s({[e]:t});const i=typeof t=="string"?t:JSON.stringify(t),a=o==null?void 0:o.setProfileProperty;if(a){a(e,i);return}const l=(u=r==null?void 0:r.runtime)==null?void 0:u.setProfileProperty;l&&l(e,i)}const Hk=()=>{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 n=e();return(t==="x"?n:parseInt(n,16)&3|8).toString(16)}).toUpperCase()},E9=()=>`${Date.now()}-${Hk().slice(0,8)}`,Ap=["alfa","bravo","charlie","delta","echo","foxtrot","golf","hotel","india","juliett"],Na=pt.withTag("openfeature"),Ip=new Map;let ui=null;async function G3(){if(ui&&await ui,Ip.has("client")&&Ip.get("client")!==void 0){const S=Ip.get("client");if(S)return{client:S,loaded:Promise.resolve(S)}}const e=1e3*60*60*24*365*10,t=wu(FH,{maxAge:e});t.value=t.value||Hk();const n=wu(Rk,{maxAge:e});if(!n.value||!Ap.includes(n.value)){const S=String(t.value),E=Array.from(S).reduce((x,N)=>x+N.charCodeAt(0),0)%Ap.length;n.value=Ap[E]}const r=Ae().$filters||{userAgent:null,isMobile:null},o=jH(),s=ei().query,i=wu(UH,{maxAge:e}),a=z3();a.loadUserEngagement(),no.setContext({...r,...s,targetingKey:t.value,...i.value?{splittestname:i.value}:{},...a.$state,cohort:n.value,isShiftBrowser:o}),Na.log({filters:r});const{registerMultipleFeatureFlagProviders:l,registerFeatureFlagProvider:c,teardown:u}=await Zt(async()=>{const{registerMultipleFeatureFlagProviders:S,registerFeatureFlagProvider:E,teardown:x}=await import("./D1K7Jqx0.js").then(N=>N.f);return{registerMultipleFeatureFlagProviders:S,registerFeatureFlagProvider:E,teardown:x}},__vite__mapDeps([60,18,9]),import.meta.url);ui&&await ui;const{configCatSdkKey:f}=it().public,{openfeature:d={multiProvider:!1,localProvider:!1,queryProvider:!1}}=jr(),{multiProvider:p=!1,localProvider:g=!1,queryProvider:h=!1}=d,y={configCatKey:f??void 0,localProvider:g,queryProvider:h},m=p?l(y):c(y);ui=m;const b=await m;Na.log({client:b,OpenFeature:no,context:no.getContext()});let _=!1;const v=b.getStringValue("splittestname","");if(v&&(i.value=v),no.setContext({...no.getContext(),splittestname:i.value??"",cohort:n.value??"",isShiftBrowser:o}),typeof window<"u"){_||(window.addEventListener("beforeunload",()=>{Na.log("Teardown OpenFeature client on beforeunload"),u().catch(S=>Na.error("Teardown failed:",S))}),_=!0);try{Sf("ntp_cohort",String(n.value||""))}catch(S){Na.warn("Failed to set NTP cohort property for analytics",S)}}return{client:b,loaded:ui}}const rs=dk(G3);async function q3(e){const{client:t}=await rs(),n=t.getStringValue(e,"control"),r=`/api/v2/configs/${e}`;return[`${r}/${n}.json`,`${r}/control.json`]}const Ma=pt.withTag("store:ConfigStore");function Td(e){const t=n=>{if(!e.transform)return n;try{return e.transform(n)}catch(r){return Ma.error(`[${e.configStoreKey}] Failed to apply transform function:`,r),n}};return pa(e.configStoreKey,()=>{const n=new gB(pf,"app:config",6e4),r=ue(e.defaults),o=ue(!1),s=async()=>{const u=[],f=await q3(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=n.load(e.configStoreKey);if(u)try{const p=JSON.parse(u),g=e.schema(p),h=t(g);r.value=h,(f=e.onLoad)==null||f.call(e,h)}catch(p){Ma.warn(`[${e.configStoreKey}] Failed to parse or validate stored data:`,p)}else{try{const p=await s(),g=t(p);r.value=g,n.save(e.configStoreKey,JSON.stringify(g)),(d=e.onLoad)==null||d.call(e,g)}catch(p){Ma.error(`[${e.configStoreKey}] Failed to fetch or validate config:`,p)}r.value||Ma.warn(`[${e.configStoreKey}] No valid data found in local storage or API`)}return o.value=!1,await Promise.resolve(r.value)};return i=a(),{data:r,isLoading:o,load:a,update:u=>{var d;Ma.log("updating config store",u);const f={...r.value,...u};r.value=t(f),n.save(e.configStoreKey,JSON.stringify(r.value)),(d=e.onUpdate)==null||d.call(e,r.value)},reset:()=>{var f;const u=structuredClone(e.defaults);r.value=t(u),n.save(e.configStoreKey,JSON.stringify(r.value)),(f=e.onReset)==null||f.call(e),i=null},storage:n,initialized:i}})}const K3=R.object({position:R.union([R.literal("off"),R.literal("footer"),R.literal("navbar")]).default("off").transform(e=>e==="navbar"?"footer":e),defaultSettings:R.object({theme:R.union([R.literal("light"),R.literal("dark"),R.literal("auto")]),articleSummary:R.boolean().default(!0)}),enabledSettings:R.object({articleSummary:R.boolean().default(!1)}).default({articleSummary:!1})}),Bb=R.object({userSettings:R.optional(K3),enableLocalNewsSearch:R.boolean().default(!0),sortNewsBy:R.union([R.literal("publishedDate"),R.literal("clusterSize")]).default("publishedDate"),enableArticleReordering:R.boolean().default(!1),derankItemsByStatus:R.union([R.literal("none"),R.literal("viewed"),R.literal("read"),R.literal("both")]).default("viewed"),videoEnabled:R.optional(R.boolean()),gamesEnabled:R.optional(R.boolean())}),Cd=Td({defaults:Bb.parse({userSettings:{position:"off",defaultSettings:{theme:"light",articleSummary:!0},enabledSettings:{articleSummary:!1}},enableLocalNewsSearch:!0,sortNewsBy:"clusterSize",enableArticleReordering:!1,derankItemsByStatus:"viewed",videoEnabled:!1,gamesEnabled:!1}),configStoreKey:"siteSettings",schema:e=>Bb.parse(e)}),Hb=[];function Y3(e,t){if(((r,o)=>!!(r==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(Hb.includes(t.ntp_placement_name))return!1;Hb.push(t.ntp_placement_name)}return!0}function Z3(e,t){const n=Cd(),{data:r}=yc(n);Y3(e,t)&&X3(e,t,r?Me(r):void 0)}async function X3(e,t,n){var f,d;const o={...await $T(n,e),...t||{}};window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:o});const{shift:s,chrome:i,onelaunch:a}=Xn(),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 J3(e,t){var l,c;const{shift:n,chrome:r,onelaunch:o}=Xn(),s=(l=n==null?void 0:n.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=r==null?void 0:r.runtime)==null?void 0:c.addProfileProperty;a&&a(e,t.toString())}const Vk={getSearchUrl:wB,getConfig:SB,getHostApis:Xn,openInDefaultBrowser:xB,getHostBrowserAppVersion:uk,setProfileProperty:Sf,isCurrentlyAtHomeTab:lk,getInstallInfo:ck,getSearchEngineConfig:TB,analytics:{incrementProfileProperty:J3,sendMixpanelEvent:Z3,setProfileProperty:Sf}},Q3="2.213.0",Op={version:Q3},eV=300,tV=12,nV=24,Da=e=>e*eV+(e-1)*tV,$a={1:Da(1),2:Da(2),3:Da(3),4:Da(4),5:Da(5)};function rV(e){const t=e-nV*2;return t>=$a[5]?5:t>=$a[4]?4:t>=$a[3]?3:t>=$a[2]?2:t>=$a[1]?1:0}const oV=()=>{const{width:e,height:t}=Cx(),n=`${e.value}x${t.value}`,r=e.value,o=t.value,s=rV(e.value);return{browser_window_size:n,browser_window_width:r,browser_window_height:o,column_count:s}},qm=R.object({design:R.enum(["google","msn"]).default("google").optional(),pages:R.number().min(2).default(6).optional()}).passthrough(),Wk=R.object({type:R.optional(R.union([R.literal("slider"),R.literal("carousel"),R.literal("title"),R.literal("title-l"),R.literal("video"),R.literal("video-s"),R.literal("video-l"),R.literal("title-msn"),R.literal("article-group"),R.literal("yolo-xxl"),R.literal("yolo-xl"),R.literal("yolo-l"),R.literal("yolo-full")])),y:R.number(),x:R.optional(R.number()),repeat:R.optional(R.boolean()),size:R.optional(R.number()),classes:R.optional(R.string()),props:R.optional(qm),onlyWhenGridIsGreaterThan:R.optional(R.number())}),zk=R.object({y:R.number(),x:R.optional(R.number()),classes:R.optional(R.string()),props:R.optional(qm),onlyWhenGridIsGreaterThan:R.optional(R.number())}),sV=Wk.extend({type:R.literal("slider"),props:R.optional(qm.extend({autoplayInterval:R.optional(R.number()),ads:R.optional(R.array(zk.pick({classes:!0,props:!0}).extend({position:R.number()}))),contentType:R.enum(["video","title"]).optional()}))}),Vb=R.union([Wk,sV,zk]),iV=R.object({name:R.string(),title:R.optional(R.string()),titleIcon:R.optional(R.string()),background:R.optional(R.string()),padded:R.optional(R.literal(!1)),classes:R.optional(R.string()),repeat:R.optional(R.literal(!0)),titles:R.optional(R.array(Vb)),ads:R.optional(R.array(Vb))}),aV=R.object({name:R.string(),section:R.array(iV)}),lV=Td({configStoreKey:"layoutSkeleton",defaults:void 0,schema:e=>aV.parse(e)});function cV(e){const t=new Date(e);if(isNaN(t.getTime()))return 0;const r=new Date().getTime()-t.getTime(),o=Math.max(0,r);return Math.round(o/(1e3*60*60))}const uV=pt.withTag("visibleContent"),Bs=new Map;let Gk=0;function x9(e,t){if(!e)return-1;const n=Bs.get(e);if(n)return t&&(n.metadata=t),n.sortOrder;const r=Gk++;return Bs.set(e,{id:e,sortOrder:r,isVisible:!1,metadata:t}),r}function k9(e,t){const n=Bs.get(e);n&&(n.isVisible=t)}function T9(e){const t=Bs.get(e);t&&(t.isVisible=!1)}function fV(e=!0){const t=Array.from(Bs.values()).filter(r=>!e||r.isVisible).sort((r,o)=>r.sortOrder-o.sortOrder),n=t.slice(0,100);return t.length>100&&uV.warn(`Content exceeds 100 items (${t.length}), capping to 100`),n.map(({id:r,sortOrder:o,metadata:s})=>({id:r,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?cV(s.publishedDate):void 0}))}function dV(e,t){return!t||t<=0?e.map(n=>({...n,position_row:0,position_col:0})):e.map(n=>({...n,position_row:Math.floor(n.sortOrder/t),position_col:n.sortOrder%t}))}function C9(){return Bs.size>0}function pV(){Bs.clear(),Gk=0}const hV=pa("newsToggle",{state:()=>({newsToggle:!0}),actions:{updateNewsToggle(){this.newsToggle=!this.newsToggle}}}),qk=()=>ti("color-mode").value;var Lt;(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"})(Lt||(Lt={}));function gV(e){return e.nodeType===e.ELEMENT_NODE}function hl(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function gl(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function mV(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 yV(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Ef(e){try{const t=e.rules||e.cssRules;return t?mV(Array.from(t,Kk).join("")):null}catch{return null}}function Kk(e){let t;if(vV(e))try{t=Ef(e.styleSheet)||yV(e)}catch{}else if(bV(e)&&e.selectorText.includes(":"))return _V(e.cssText);return t||e.cssText}function _V(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function vV(e){return"styleSheet"in e}function bV(e){return"selectorText"in e}class Yk{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var n;if(!t)return-1;const r=(n=this.getMeta(t))===null||n===void 0?void 0:n.id;return r??-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 n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function wV(){return new Yk}function Km({element:e,maskInputOptions:t,tagName:n,type:r,value:o,maskInputFn:s}){let i=o||"";const a=r&&Hs(r);return(t[n.toLowerCase()]||a&&t[a])&&(s?i=s(i,e):i="*".repeat(i.length)),i}function Hs(e){return e.toLowerCase()}const Wb="__rrweb_original__";function SV(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;rl!==0))return!1}return!0}function Ym(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Hs(t):null}function Zk(e,t){var n;let r;try{r=new URL(e,t??window.location.href)}catch{return null}const o=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(o);return(n=s==null?void 0:s[1])!==null&&n!==void 0?n:null}let EV=1;const xV=new RegExp("[^a-z0-9-_:]"),nc=-2;function Xk(){return EV++}function kV(e){if(e instanceof HTMLFormElement)return"form";const t=Hs(e.tagName);return xV.test(t)?"div":t}function TV(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let fi,zb;const CV=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,AV=/^(?:[a-z+]+:)?\/\//i,IV=/^www\..*/i,OV=/^(data:)([^,]*),(.*)/i;function xf(e,t){return(e||"").replace(CV,(n,r,o,s,i,a)=>{const l=o||i||a,c=r||s||"";if(!l)return n;if(AV.test(l)||IV.test(l))return`url(${c}${l}${c})`;if(OV.test(l))return`url(${c}${l}${c})`;if(l[0]==="/")return`url(${c}${TV(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 RV=/^[^ \t\n\r\u000c]+/,LV=/^[, \t\n\r\u000c]+/;function PV(e,t){if(t.trim()==="")return t;let n=0;function r(s){let i;const a=s.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const o=[];for(;r(LV),!(n>=t.length);){let s=r(RV);if(s.slice(-1)===",")s=Ei(e,s.substring(0,s.length-1)),o.push(s);else{let i="";s=Ei(e,s);let a=!1;for(;;){const l=t.charAt(n);if(l===""){o.push((s+i).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,o.push((s+i).trim());break}else l==="("&&(a=!0);i+=l,n+=1}}}return o.join(", ")}function Ei(e,t){if(!t||t.trim()==="")return t;const n=e.createElement("a");return n.href=t,n.href}function NV(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Zm(){const e=document.createElement("a");return e.href="",e.href}function Jk(e,t,n,r){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Ei(e,r):n==="srcset"?PV(e,r):n==="style"?xf(r,Zm()):t==="object"&&n==="data"?Ei(e,r):r)}function Qk(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function MV(e,t,n){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const o=e.classList[r];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function kf(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?kf(e.parentNode,t,n):!1;for(let r=e.classList.length;r--;){const o=e.classList[r];if(t.test(o))return!0}return n?kf(e.parentNode,t,n):!1}function eT(e,t,n,r){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(typeof t=="string"){if(r){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(kf(o,t,r))return!0;if(n){if(r){if(o.closest(n))return!0}else if(o.matches(n))return!0}}catch{}return!1}function DV(e,t,n){const r=e.contentWindow;if(!r)return;let o=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const a=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function $V(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;const s=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),r=!0,t()})}function FV(e,t){const{doc:n,mirror:r,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,y=UV(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Lt.Document,childNodes:[],compatMode:e.compatMode}:{type:Lt.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Lt.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return BV(e,{doc:n,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:f,inlineImages:d,recordCanvas:p,keepIframeSrcFn:g,newlyAddedElement:h,rootId:y});case e.TEXT_NODE:return jV(e,{needsMask:i,maskTextFn:c,rootId:y});case e.CDATA_SECTION_NODE:return{type:Lt.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:Lt.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function UV(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function jV(e,t){var n;const{needsMask:r,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||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(a=Ef(e.parentNode.sheet))}catch(u){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${u}`,e)}a=xf(a,Zm())}return c&&(a="SCRIPT_PLACEHOLDER"),!l&&!c&&a&&r&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:Lt.Text,textContent:a||"",isStyle:l,rootId:s}}function BV(e,t){const{doc:n,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:d=!1,rootId:p}=t,g=MV(e,r,o),h=kV(e);let y={};const m=e.attributes.length;for(let _=0;_S.href===e.href);let v=null;_&&(v=Ef(_)),v&&(delete y.rel,delete y.href,y._cssText=xf(v,_.href))}if(h==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const _=Ef(e.sheet);_&&(y._cssText=xf(_,Zm()))}if(h==="input"||h==="textarea"||h==="select"){const _=e.value,v=e.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&_?y.value=Km({element:e,type:Ym(e),tagName:h,value:_,maskInputOptions:i,maskInputFn:a}):v&&(y.checked=v)}if(h==="option"&&(e.selected&&!i.select?y.selected=!0:delete y.selected),h==="canvas"&&u){if(e.__context==="2d")SV(e)||(y.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 S=v.toDataURL(l.type,l.quality);_!==S&&(y.rr_dataURL=_)}}if(h==="img"&&c){fi||(fi=n.createElement("canvas"),zb=fi.getContext("2d"));const _=e,v=_.crossOrigin;_.crossOrigin="anonymous";const S=()=>{_.removeEventListener("load",S);try{fi.width=_.naturalWidth,fi.height=_.naturalHeight,zb.drawImage(_,0,0),y.rr_dataURL=fi.toDataURL(l.type,l.quality)}catch(E){console.warn(`Cannot inline img src=${_.currentSrc}! Error: ${E}`)}v?y.crossOrigin=v:_.removeAttribute("crossorigin")};_.complete&&_.naturalWidth!==0?S():_.addEventListener("load",S)}if(h==="audio"||h==="video"){const _=y;_.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&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),g){const{width:_,height:v}=e.getBoundingClientRect();y={class:y.class,rr_width:`${_}px`,rr_height:`${v}px`}}h==="iframe"&&!f(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src);let b;try{customElements.get(h)&&(b=!0)}catch{}return{type:Lt.Element,tagName:h,attributes:y,childNodes:[],isSVG:NV(e)||void 0,needBlock:g,rootId:p,isCustom:b}}function rt(e){return e==null?"":e.toLowerCase()}function HV(e,t){if(t.comment&&e.type===Lt.Comment)return!0;if(e.type===Lt.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"&&Zk(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(rt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||rt(e.attributes.name)==="application-name"||rt(e.attributes.rel)==="icon"||rt(e.attributes.rel)==="apple-touch-icon"||rt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&rt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(rt(e.attributes.property).match(/^(og|twitter|fb):/)||rt(e.attributes.name).match(/^(og|twitter):/)||rt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(rt(e.attributes.name)==="robots"||rt(e.attributes.name)==="googlebot"||rt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(rt(e.attributes.name)==="author"||rt(e.attributes.name)==="generator"||rt(e.attributes.name)==="framework"||rt(e.attributes.name)==="publisher"||rt(e.attributes.name)==="progid"||rt(e.attributes.property).match(/^article:/)||rt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(rt(e.attributes.name)==="google-site-verification"||rt(e.attributes.name)==="yandex-verification"||rt(e.attributes.name)==="csrf-token"||rt(e.attributes.name)==="p:domain_verify"||rt(e.attributes.name)==="verify-v1"||rt(e.attributes.name)==="verification"||rt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function xi(e,t){const{doc:n,mirror:r,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:y=!1,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_=5e3,onStylesheetLoad:v,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:x=!1}=t;let{needsMask:N}=t,{preserveWhiteSpace:I=!0}=t;!N&&e.childNodes&&(N=eT(e,i,a,N===void 0));const O=FV(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,dataURLOptions:g,inlineImages:h,recordCanvas:y,keepIframeSrcFn:E,newlyAddedElement:x});if(!O)return console.warn(e,"not serialized"),null;let U;r.hasNode(e)?U=r.getId(e):HV(O,p)||!I&&O.type===Lt.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?U=nc:U=Xk();const L=Object.assign(O,{id:U});if(r.add(e,L),U===nc)return null;m&&m(e);let G=!l;if(L.type===Lt.Element){G=G&&!L.needBlock,delete L.needBlock;const oe=e.shadowRoot;oe&&gl(oe)&&(L.isShadowHost=!0)}if((L.type===Lt.Document||L.type===Lt.Element)&&G){p.headWhitespace&&L.type===Lt.Element&&L.tagName==="head"&&(I=!1);const oe={doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:y,preserveWhiteSpace:I,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E};if(!(L.type===Lt.Element&&L.tagName==="textarea"&&L.attributes.value!==void 0))for(const ce of Array.from(e.childNodes)){const q=xi(ce,oe);q&&L.childNodes.push(q)}if(gV(e)&&e.shadowRoot)for(const ce of Array.from(e.shadowRoot.childNodes)){const q=xi(ce,oe);q&&(gl(e.shadowRoot)&&(q.isShadow=!0),L.childNodes.push(q))}}return e.parentNode&&hl(e.parentNode)&&gl(e.parentNode)&&(L.isShadow=!0),L.type===Lt.Element&&L.tagName==="iframe"&&DV(e,()=>{const oe=e.contentDocument;if(oe&&b){const ce=xi(oe,{doc:oe,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:y,preserveWhiteSpace:I,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E});ce&&b(e,ce)}},_),L.type===Lt.Element&&L.tagName==="link"&&typeof L.attributes.rel=="string"&&(L.attributes.rel==="stylesheet"||L.attributes.rel==="preload"&&typeof L.attributes.href=="string"&&Zk(L.attributes.href)==="css")&&$V(e,()=>{if(v){const oe=xi(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:N,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:f,maskInputFn:d,slimDOMOptions:p,dataURLOptions:g,inlineImages:h,recordCanvas:y,preserveWhiteSpace:I,onSerialize:m,onIframeLoad:b,iframeLoadTimeout:_,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:E});oe&&v(e,oe)}},S),L}function VV(e,t){const{mirror:n=new Yk,blockClass:r="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:y,onIframeLoad:m,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:S=()=>!1}=t||{};return xi(e,{doc:e,mirror:n,blockClass:r,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:y,onIframeLoad:m,iframeLoadTimeout:b,onStylesheetLoad:_,stylesheetLoadTimeout:v,keepIframeSrcFn:S,newlyAddedElement:!1})}function vn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const bi=`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 Gb={map:{},getId(){return console.error(bi),-1},getNode(){return console.error(bi),null},removeNodeFromMap(){console.error(bi)},has(){return console.error(bi),!1},reset(){console.error(bi)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Gb=new Proxy(Gb,{get(e,t,n){return t==="map"&&console.error(bi),Reflect.get(e,t,n)}}));function rc(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();!o&&n.leading===!1&&(o=i);const a=t-(i-o),l=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(l,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(l,s)},a))}}function Ad(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Ad(e,t,s||{},!0)}function ga(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}let Tf=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Tf=()=>new Date().getTime());function tT(e){var t,n,r,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)||((n=(t=a==null?void 0:a.body)===null||t===void 0?void 0:t.parentElement)===null||n===void 0?void 0:n.scrollLeft)||((r=a==null?void 0:a.body)===null||r===void 0?void 0:r.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 nT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function rT(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function oT(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function bn(e,t,n,r){if(!e)return!1;const o=oT(e);if(!o)return!1;try{if(typeof t=="string"){if(o.classList.contains(t)||r&&o.closest("."+t)!==null)return!0}else if(kf(o,t,r))return!0}catch{}return!!(n&&(o.matches(n)||r&&o.closest(n)!==null))}function WV(e,t){return t.getId(e)!==-1}function Rp(e,t){return t.getId(e)===nc}function sT(e,t){if(hl(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?sT(e.parentNode,t):!0:!0}function Ag(e){return!!e.changedTouches}function zV(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 n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function iT(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function aT(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ig(e){return!!(e!=null&&e.shadowRoot)}class GV{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!==null&&n!==void 0?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}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 lT(e){var t,n;let r=null;return((n=(t=e.getRootNode)===null||t===void 0?void 0:t.call(e))===null||n===void 0?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function qV(e){let t=e,n;for(;n=lT(t);)t=n;return t}function KV(e){const t=e.ownerDocument;if(!t)return!1;const n=qV(e);return t.contains(n)}function cT(e){const t=e.ownerDocument;return t?t.contains(e)||KV(e):!1}var Be=(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))(Be||{}),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||{}),Tn=(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))(Tn||{}),Zr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Zr||{}),Xi=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Xi||{});function qb(e){return"__ln"in e}class YV{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 n=this.head;for(let r=0;r`${e}@${t}`;class ZV{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=[],n=new Set,r=new YV,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||!cT(l)||l.parentNode.tagName==="TEXTAREA")return;const c=hl(l.parentNode)?this.mirror.getId(lT(l)):this.mirror.getId(l.parentNode),u=o(l);if(c===-1||u===-1)return r.addNode(l);const f=xi(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=>{iT(d,this.mirror)&&this.iframeManager.addIframe(d),aT(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Ig(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}),n.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)Yb(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||s(l);for(const l of this.addedSet)!Zb(this.droppedSet,l)&&!Yb(this.removes,l,this.mirror)||Zb(this.movedSet,l)?s(l):this.droppedSet.add(l);let i=null;for(;r.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=r.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(;r.head;)r.removeNode(r.head.value);break}i=l.previous,r.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=>!n.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!n.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 n=this.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(t,n)),n.attributes.value=Array.from(t.childNodes,r=>r.textContent||"").join("")},this.processMutation=t=>{if(!Rp(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!bn(t.target,this.blockClass,this.blockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:eT(t.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,oT(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const i=Ym(n);o=Km({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:o,maskInputFn:this.maskInputFn})}if(bn(t.target,this.blockClass,this.blockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Qk(n.tagName,r)&&(s.attributes[r]=Jk(this.doc,Hs(n.tagName),Hs(r),o),r==="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(n.style)){const l=n.style.getPropertyValue(a),c=n.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))n.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}case"childList":{if(bn(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=hl(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);bn(t.target,this.blockClass,this.blockSelector,!1)||Rp(n,this.mirror)||!WV(n,this.mirror)||(this.addedSet.has(n)?(Og(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||sT(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Kb(r,o)]?Og(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:hl(t.target)&&gl(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Rp(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Kb(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);bn(t,this.blockClass,this.blockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Ig(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,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(n=>{this[n]=t[n]})}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 Og(e,t){e.delete(t),t.childNodes.forEach(n=>Og(e,n))}function Yb(e,t,n){return e.length===0?!1:uT(e,t,n)}function uT(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return e.some(s=>s.id===o)?!0:uT(e,r,n)}function Zb(e,t){return e.size===0?!1:fT(e,t)}function fT(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:fT(e,n):!1}let ml;function XV(e){ml=e}function JV(){ml=void 0}const $e=e=>ml?(...n)=>{try{return e(...n)}catch(r){if(ml&&ml(r)===!0)return;throw r}}:e,Ss=[];function Sc(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 dT(e,t){var n,r;const o=new ZV;Ss.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"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 QV({mousemoveCb:e,sampling:t,doc:n,mirror:r}){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=rc($e(f=>{const d=Date.now()-a;e(i.map(p=>(p.timeOffset-=d,p)),f),i=[],a=null}),s),c=$e(rc($e(f=>{const d=Sc(f),{clientX:p,clientY:g}=Ag(f)?f.changedTouches[0]:f;a||(a=Tf()),i.push({x:p,y:g,id:r.getId(d),timeOffset:Tf()-a}),l(typeof DragEvent<"u"&&f instanceof DragEvent?De.Drag:f instanceof MouseEvent?De.MouseMove:De.TouchMove)}),o,{trailing:!1})),u=[vn("mousemove",c,n),vn("touchmove",c,n),vn("drag",c,n)];return $e(()=>{u.forEach(f=>f())})}function e4({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,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=Sc(f);if(bn(d,r,o,!0))return;let p=null,g=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Zr.Mouse;break;case"touch":p=Zr.Touch;break;case"pen":p=Zr.Pen;break}p===Zr.Touch?Tn[u]===Tn.MouseDown?g="TouchStart":Tn[u]===Tn.MouseUp&&(g="TouchEnd"):Zr.Pen}else Ag(f)&&(p=Zr.Touch);p!==null?(l=p,(g.startsWith("Touch")&&p===Zr.Touch||g.startsWith("Mouse")&&p===Zr.Mouse)&&(p=null)):Tn[u]===Tn.Click&&(p=l,l=null);const h=Ag(f)?f.changedTouches[0]:f;if(!h)return;const y=n.getId(d),{clientX:m,clientY:b}=h;$e(e)(Object.assign({type:Tn[g],id:y,x:m,y:b},p!==null&&{pointerType:p}))};return Object.keys(Tn).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&i[u]!==!1).forEach(u=>{let f=Hs(u);const d=c(u);if(window.PointerEvent)switch(Tn[u]){case Tn.MouseDown:case Tn.MouseUp:f=f.replace("mouse","pointer");break;case Tn.TouchStart:case Tn.TouchEnd:return}a.push(vn(f,d,t))}),$e(()=>{a.forEach(u=>u())})}function pT({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){const i=$e(rc($e(a=>{const l=Sc(a);if(!l||bn(l,r,o,!0))return;const c=n.getId(l);if(l===t&&t.defaultView){const u=tT(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 vn("scroll",i,t)}function t4({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=$e(rc($e(()=>{const s=nT(),i=rT();(n!==s||r!==i)&&(e({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return vn("resize",o,t)}const n4=["INPUT","TEXTAREA","SELECT"],Xb=new WeakMap;function r4({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function f(b){let _=Sc(b);const v=b.isTrusted,S=_&&_.tagName;if(_&&S==="OPTION"&&(_=_.parentElement),!_||!S||n4.indexOf(S)<0||bn(_,r,o,!0)||_.classList.contains(s)||i&&_.matches(i))return;let E=_.value,x=!1;const N=Ym(_)||"";N==="radio"||N==="checkbox"?x=_.checked:(a[S.toLowerCase()]||a[N])&&(E=Km({element:_,maskInputOptions:a,tagName:S,type:N,value:E,maskInputFn:l})),d(_,u?{text:E,isChecked:x,userTriggered:v}:{text:E,isChecked:x});const I=_.name;N==="radio"&&I&&x&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(O=>{if(O!==_){const U=O.value;d(O,u?{text:U,isChecked:!x,userTriggered:!1}:{text:U,isChecked:!x})}})}function d(b,_){const v=Xb.get(b);if(!v||v.text!==_.text||v.isChecked!==_.isChecked){Xb.set(b,_);const S=n.getId(b);$e(e)(Object.assign(Object.assign({},_),{id:S}))}}const g=(c.input==="last"?["change"]:["input","change"]).map(b=>vn(b,$e(f),t)),h=t.defaultView;if(!h)return()=>{g.forEach(b=>b())};const y=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),m=[[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 y&&y.set&&g.push(...m.map(b=>Ad(b[0],b[1],{set(){$e(f)({target:this,isTrusted:!1})}},!1,h))),$e(()=>{g.forEach(b=>b())})}function Cf(e){const t=[];function n(r,o){if(nu("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||nu("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||nu("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||nu("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(i)}return o}return n(e,t)}function Po(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function o4({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:$e((u,f,d)=>{const[p,g]=d,{id:h,styleId:y}=Po(f,t,n.styleMirror);return(h&&h!==-1||y&&y!==-1)&&e({id:h,styleId:y,adds:[{rule:p,index:g}]}),u.apply(f,d)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=Po(f,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,removes:[{index:p}]}),u.apply(f,d)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=Po(f,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replace:p}),u.apply(f,d)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$e((u,f,d)=>{const[p]=d,{id:g,styleId:h}=Po(f,t,n.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,replaceSync:p}),u.apply(f,d)})}));const l={};ru("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(ru("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),ru("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),ru("CSSSupportsRule")&&(l.CSSSupportsRule=r.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,y]=g,{id:m,styleId:b}=Po(p.parentStyleSheet,t,n.styleMirror);return(m&&m!==-1||b&&b!==-1)&&e({id:m,styleId:b,adds:[{rule:h,index:[...Cf(p),y||0]}]}),d.apply(p,g)})}),f.prototype.deleteRule=new Proxy(c[u].deleteRule,{apply:$e((d,p,g)=>{const[h]=g,{id:y,styleId:m}=Po(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||m&&m!==-1)&&e({id:y,styleId:m,removes:[{index:[...Cf(p),h]}]}),d.apply(p,g)})})}),$e(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([u,f])=>{f.prototype.insertRule=c[u].insertRule,f.prototype.deleteRule=c[u].deleteRule})})}function hT({mirror:e,stylesheetManager:t},n){var r,o,s;let i=null;n.nodeName==="#document"?i=e.getId(n):i=e.getId(n.host);const a=n.nodeName==="#document"?(r=n.defaultView)===null||r===void 0?void 0:r.Document:(s=(o=n.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(n,"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(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function s4({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{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(n.has(f))return s.apply(l,[f,d,p]);const{id:g,styleId:h}=Po((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&e({id:g,styleId:h,set:{property:f,value:d,priority:p},index:Cf(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(n.has(f))return i.apply(l,[f]);const{id:d,styleId:p}=Po((u=l.parentRule)===null||u===void 0?void 0:u.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:f},index:Cf(l.parentRule)}),a.apply(l,c)})}),$e(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function i4({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:o,doc:s}){const i=$e(l=>rc($e(c=>{const u=Sc(c);if(!u||bn(u,t,n,!0))return;const{currentTime:f,volume:d,muted:p,playbackRate:g,loop:h}=u;e({type:l,id:r.getId(u),currentTime:f,volume:d,muted:p,playbackRate:g,loop:h})}),o.media||500)),a=[vn("play",i(0),s),vn("pause",i(1),s),vn("seeked",i(2),s),vn("volumechange",i(3),s),vn("ratechange",i(4),s)];return $e(()=>{a.forEach(l=>l())})}function a4({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.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=ga(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 r.push(()=>{n.FontFace=s}),r.push(i),$e(()=>{r.forEach(a=>a())})}function l4(e){const{doc:t,mirror:n,blockClass:r,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{}:ga(n.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 u4(e,t){const{mutationCb:n,mousemoveCb:r,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),n(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),r(...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 f4(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};u4(e,t);let r;e.recordDOM&&(r=dT(e,e.doc));const o=QV(e),s=e4(e),i=pT(e),a=t4(e,{win:n}),l=r4(e),c=i4(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=o4(e,{win:n}),f=hT(e,e.doc),d=s4(e,{win:n}),e.collectFonts&&(p=a4(e)));const g=l4(e),h=c4(e),y=[];for(const m of e.plugins)y.push(m.observer(m.callback,n,m.options));return $e(()=>{Ss.forEach(m=>m.reset()),r==null||r.disconnect(),o(),s(),i(),a(),l(),c(),u(),f(),d(),p(),g(),h(),y.forEach(m=>m())})}function nu(e){return typeof window[e]<"u"}function ru(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Jb{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const s=r||this.getIdToRemoteIdMap(t),i=o||this.getRemoteIdToIdMap(t);let a=s.get(n);return a||(a=this.generateIdFn(),s.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=o.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class d4{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Jb(Xk),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Jb(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,n){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.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 n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const s=this.transformCrossOriginEvent(o,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case Be.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const o=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(n.data.node,o),{timestamp:n.timestamp,type:Be.IncrementalSnapshot,data:{source:De.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Be.Meta:case Be.Load:case Be.DomContentLoaded:return!1;case Be.Plugin:return n;case Be.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Be.IncrementalSnapshot:switch(n.data.source){case De.Mutation:return n.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)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case De.Drag:case De.TouchMove:case De.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case De.ViewportResize:return!1;case De.MediaInteraction:case De.MouseInteraction:case De.Scroll:case De.CanvasMutation:case De.Input:return this.replaceIds(n.data,t,["id"]),n;case De.StyleSheetRule:case De.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case De.Font:return n;case De.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case De.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)===null||r===void 0||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const s of o)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Lt.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class p4{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,n){if(!gl(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const r=dT(Object.assign(Object.assign({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(pT(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(hT({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(ga(t.prototype,"attachShadow",function(o){return function(s){const i=o.call(this,s);return this.shadowRoot&&cT(this)&&r.addShadowRoot(this.shadowRoot,n),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 h4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o"u"?[]:new Uint8Array(256);for(var ou=0;ou>2],o+=ki[(t[n]&3)<<4|t[n+1]>>4],o+=ki[(t[n+1]&15)<<2|t[n+2]>>6],o+=ki[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const Qb=new Map;function _4(e,t){let n=Qb.get(e);return n||(n=new Map,Qb.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const gT=(e,t,n)=>{if(!e||!(yT(e,t)||typeof e=="object"))return;const r=e.constructor.name,o=_4(n,r);let s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function Tu(e,t,n){if(e instanceof Array)return e.map(r=>Tu(r,t,n));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 r=e.constructor.name,o=y4(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Tu(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Tu(e.data,t,n),e.width,e.height]};if(yT(e,t)||typeof e=="object"){const r=e.constructor.name,o=gT(e,t,n);return{rr_type:r,index:o}}}}return e}const mT=(e,t,n)=>e.map(r=>Tu(r,t,n)),yT=(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 v4(e,t,n,r){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;const a=ga(t.CanvasRenderingContext2D.prototype,i,function(l){return function(...c){return bn(this.canvas,n,r,!0)||setTimeout(()=>{const u=mT(c,t,this);e(this.canvas,{type:Xi["2D"],property:i,args:u})},0),l.apply(this,c)}});o.push(a)}catch{const l=Ad(t.CanvasRenderingContext2D.prototype,i,{set(c){e(this.canvas,{type:Xi["2D"],property:i,args:[c],setter:!0})}});o.push(l)}return()=>{o.forEach(i=>i())}}function b4(e){return e==="experimental-webgl"?"webgl":e}function e0(e,t,n,r){const o=[];try{const s=ga(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(a,...l){if(!bn(this,t,n,!0)){const c=b4(a);if("__context"in this||(this.__context=c),r&&["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 t0(e,t,n,r,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=ga(e,c,function(f){return function(...d){const p=f.apply(this,d);if(gT(p,i,this),"tagName"in this.canvas&&!bn(this.canvas,r,o,!0)){const g=mT(d,i,this),h={type:t,property:c,args:g};n(this.canvas,h)}return p}});a.push(u)}catch{const f=Ad(e,c,{set(d){n(this.canvas,{type:t,property:c,args:[d],setter:!0})}});a.push(f)}return a}function w4(e,t,n,r,o){const s=[];return s.push(...t0(t.WebGLRenderingContext.prototype,Xi.WebGL,e,n,r,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...t0(t.WebGL2RenderingContext.prototype,Xi.WebGL2,e,n,r,o,t)),()=>{s.forEach(i=>i())}}function S4(e,t){var n=e.toString(),r=n.split(` `);r.pop(),r.shift();for(var o=r[0].search(/\S/),s=/(['"])__worker_loader_strict__(['"])/g,i=0,a=r.length;i"u"?[]:new Uint8Array(256),r=0;r>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(),y=o(h);return i.set(d,y),y}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),y=new OffscreenCanvas(d,p);y.getContext("2d").drawImage(f,0,0),f.close();const b=yield y.convertToBlob(g),_=b.type,v=yield b.arrayBuffer(),S=o(v);if(!s.has(u)&&(yield h)===S)return s.set(u,S),l.postMessage({id:u});if(s.get(u)===S)return l.postMessage({id:u});l.postMessage({id:u,type:_,base64:S,width:d,height:p}),s.set(u,S)}else return l.postMessage({id:c.data.id})})}})()});class T4{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:n="all",win:r,blockClass:o,blockSelector:s,recordCanvas:i,dataURLOptions:a}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,o,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,o,s,{dataURLOptions:a})}initCanvasFPSObserver(t,n,r,o,s){const i=e0(n,r,o,!0),a=new Map,l=new k4;l.onmessage=g=>{const{id:h}=g.data;if(a.set(h,!1),!("base64"in g.data))return;const{base64:y,type:m,width:b,height:_}=g.data;this.mutationCb({id:h,type:Xi["2D"],commands:[{property:"clearRect",args:[0,0,b,_]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:m}]},0,0]}]})};const c=1e3/t;let u=0,f;const d=()=>{const g=[];return n.document.querySelectorAll("canvas").forEach(h=>{bn(h,r,o,!0)||g.push(h)}),g},p=g=>{if(u&&g-ug4(this,void 0,void 0,function*(){var y;const m=this.mirror.getId(h);if(a.get(m)||h.width===0||h.height===0)return;if(a.set(m,!0),["webgl","webgl2"].includes(h.__context)){const _=h.getContext(h.__context);((y=_==null?void 0:_.getContextAttributes())===null||y===void 0?void 0:y.preserveDrawingBuffer)===!1&&_.clear(_.COLOR_BUFFER_BIT)}const b=yield createImageBitmap(h);l.postMessage({id:m,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,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const o=e0(t,n,r,!1),s=v4(this.processMutation.bind(this),t,n,r),i=w4(this.processMutation.bind(this),t,n,r,this.mirror);this.resetObservers=()=>{o(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const o=r.map(i=>h4(i,["type"])),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}}class C4{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new GV,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,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:Kk(a),index:l}))})),r.styleIds.push(i)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class A4{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Ot(e){return Object.assign(Object.assign({},e),{timestamp:Tf()})}let kt,Cu,Lp,Af=!1;const Jn=wV();function Ec(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,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:y,packFn:m,sampling:b={},dataURLOptions:_={},mousemoveWait:v,recordDOM:S=!0,recordCanvas:E=!1,recordCrossOriginIframes:x=!1,recordAfter:N=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:I=!1,collectFonts:O=!1,inlineImages:U=!1,plugins:L,keepIframeSrcFn:G=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:ce}=e;XV(ce);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),Jn.reset();const re=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},Se=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||{};zV();let lt,be=0;const We=te=>{for(const we of L||[])we.eventProcessor&&(te=we.eventProcessor(te));return m&&!ne&&(te=m(te)),te};kt=(te,we)=>{var T;if(!((T=Ss[0])===null||T===void 0)&&T.isFrozen()&&te.type!==Be.FullSnapshot&&!(te.type===Be.IncrementalSnapshot&&te.data.source===De.Mutation)&&Ss.forEach(A=>A.unfreeze()),q)t==null||t(We(te),we);else if(ne){const A={type:"rrweb",event:We(te),origin:window.location.origin,isCheckout:we};window.parent.postMessage(A,"*")}if(te.type===Be.FullSnapshot)lt=te,be=0;else if(te.type===Be.IncrementalSnapshot){if(te.data.source===De.Mutation&&te.data.isAttachIframe)return;be++;const A=r&&be>=r,$=n&&te.timestamp-lt.timestamp>n;(A||$)&&Cu(!0)}};const je=te=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Mutation},te)}))},tn=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Scroll},te)})),ze=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.CanvasMutation},te)})),ht=te=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.AdoptedStyleSheet},te)})),W=new C4({mutationCb:je,adoptedStyleSheetCb:ht}),Q=new d4({mirror:Jn,mutationCb:je,stylesheetManager:W,recordCrossOriginIframes:x,wrappedEmit:kt});for(const te of L||[])te.getMirror&&te.getMirror({nodeMirror:Jn,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const X=new A4;Lp=new T4({recordCanvas:E,mutationCb:ze,win:window,blockClass:o,blockSelector:s,mirror:Jn,sampling:b.canvas,dataURLOptions:_});const ie=new p4({mutationCb:je,scrollCb:tn,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:re,dataURLOptions:_,maskTextFn:h,maskInputFn:g,recordCanvas:E,inlineImages:U,sampling:b,slimDOMOptions:Se,iframeManager:Q,stylesheetManager:W,canvasManager:Lp,keepIframeSrcFn:G,processedNodeManager:X},mirror:Jn});Cu=(te=!1)=>{if(!S)return;kt(Ot({type:Be.Meta,data:{href:window.location.href,width:rT(),height:nT()}}),te),W.reset(),ie.init(),Ss.forEach(T=>T.lock());const we=VV(document,{mirror:Jn,blockClass:o,blockSelector:s,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:re,maskTextFn:h,slimDOM:Se,dataURLOptions:_,recordCanvas:E,inlineImages:U,onSerialize:T=>{iT(T,Jn)&&Q.addIframe(T),aT(T,Jn)&&W.trackLinkElement(T),Ig(T)&&ie.addShadowRoot(T.shadowRoot,document)},onIframeLoad:(T,A)=>{Q.attachIframe(T,A),ie.observeAttachShadow(T)},onStylesheetLoad:(T,A)=>{W.attachLinkElement(T,A)},keepIframeSrcFn:G});if(!we)return console.warn("Failed to snapshot the document");kt(Ot({type:Be.FullSnapshot,data:{node:we,initialOffset:tT(window)}}),te),Ss.forEach(T=>T.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&W.adoptStyleSheets(document.adoptedStyleSheets,Jn.getId(document))};try{const te=[],we=A=>{var $;return $e(f4)({mutationCb:je,mousemoveCb:(B,H)=>kt(Ot({type:Be.IncrementalSnapshot,data:{source:H,positions:B}})),mouseInteractionCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.MouseInteraction},B)})),scrollCb:tn,viewportResizeCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.ViewportResize},B)})),inputCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Input},B)})),mediaInteractionCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.MediaInteraction},B)})),styleSheetRuleCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.StyleSheetRule},B)})),styleDeclarationCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.StyleDeclaration},B)})),canvasMutationCb:ze,fontCb:B=>kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Font},B)})),selectionCb:B=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.Selection},B)}))},customElementCb:B=>{kt(Ot({type:Be.IncrementalSnapshot,data:Object.assign({source:De.CustomElement},B)}))},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:l,maskTextSelector:c,maskInputOptions:re,inlineStylesheet:u,sampling:b,recordDOM:S,recordCanvas:E,inlineImages:U,userTriggeredOnInput:I,collectFonts:O,doc:A,maskInputFn:g,maskTextFn:h,keepIframeSrcFn:G,blockSelector:s,slimDOMOptions:Se,dataURLOptions:_,mirror:Jn,iframeManager:Q,stylesheetManager:W,shadowDomManager:ie,processedNodeManager:X,canvasManager:Lp,ignoreCSSAttributes:oe,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=>kt(Ot({type:Be.Plugin,data:{plugin:B.name,payload:H}}))})))||[]},y)};Q.addLoadListener(A=>{try{te.push(we(A.contentDocument))}catch($){console.warn($)}});const T=()=>{Cu(),te.push(we(document)),Af=!0};return document.readyState==="interactive"||document.readyState==="complete"?T():(te.push(vn("DOMContentLoaded",()=>{kt(Ot({type:Be.DomContentLoaded,data:{}})),N==="DOMContentLoaded"&&T()})),te.push(vn("load",()=>{kt(Ot({type:Be.Load,data:{}})),N==="load"&&T()},window))),()=>{te.forEach(A=>A()),X.destroy(),Af=!1,JV()}}catch(te){console.warn(te)}}Ec.addCustomEvent=(e,t)=>{if(!Af)throw new Error("please add custom event after start recording");kt(Ot({type:Be.Custom,data:{tag:e,payload:t}}))};Ec.freezePage=()=>{Ss.forEach(e=>e.freeze())};Ec.takeFullSnapshot=e=>{if(!Af)throw new Error("please take full snapshot after start recording");Cu(e)};Ec.mirror=Jn;var _T=(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))(_T||{}),Cr=(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))(Cr||{}),lo={DEBUG:!1,LIB_VERSION:"2.55.1"},Ee;if(typeof window>"u"){var n0={hostname:""};Ee={navigator:{userAgent:"",onLine:!0},document:{location:n0,referrer:""},screen:{width:0,height:0},location:n0}}else Ee=window;var yl=24*60*60*1e3,Pp=8*1e3,Id=Array.prototype,I4=Function.prototype,vT=Object.prototype,Do=Id.slice,xc=vT.toString,Od=vT.hasOwnProperty,It=Ee.console,$o=Ee.navigator,nt=Ee.document,su=Ee.opera,If=Ee.screen,Or=$o.userAgent,Np=I4.bind,r0=Id.forEach,o0=Id.indexOf,s0=Id.map,O4=Array.isArray,Rg={},w={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ke={log:function(){if(lo.DEBUG&&!w.isUndefined(It)&&It)try{It.log.apply(It,arguments)}catch{w.each(arguments,function(t){It.log(t)})}},warn:function(){if(lo.DEBUG&&!w.isUndefined(It)&&It){var e=["Mixpanel warning:"].concat(w.toArray(arguments));try{It.warn.apply(It,e)}catch{w.each(e,function(n){It.warn(n)})}}},error:function(){if(lo.DEBUG&&!w.isUndefined(It)&&It){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{It.error.apply(It,e)}catch{w.each(e,function(n){It.error(n)})}}},critical:function(){if(!w.isUndefined(It)&&It){var e=["Mixpanel error:"].concat(w.toArray(arguments));try{It.error.apply(It,e)}catch{w.each(e,function(n){It.error(n)})}}}},Mp=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Ke,arguments)}},Rd=function(e){return{log:Mp(Ke.log,e),error:Mp(Ke.error,e),critical:Mp(Ke.critical,e)}};w.bind=function(e,t){var n,r;if(Np&&e.bind===Np)return Np.apply(e,Do.call(arguments,1));if(!w.isFunction(e))throw new TypeError;return n=Do.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(Do.call(arguments)));var o={};o.prototype=e.prototype;var s=new o;o.prototype=null;var i=e.apply(s,n.concat(Do.call(arguments)));return Object(i)===i?i:s},r};w.each=function(e,t,n){if(e!=null){if(r0&&e.forEach===r0)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,o=e.length;r0&&(t[r]=n)}),t};w.truncate=function(e,t){var n;return typeof e=="string"?n=e.slice(0,t):w.isArray(e)?(n=[],w.each(e,function(r){n.push(w.truncate(r,t))})):w.isObject(e)?(n={},w.each(e,function(r,o){n[o]=w.truncate(r,t)})):n=e,n};w.JSONEncode=function(){return function(e){var t=e,n=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+'"'},r=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 n(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=[],xc.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="",y;if(t==='"')for(;s();){if(t==='"')return s(),h;if(t==="\\")if(s(),t==="u"){for(y=0,g=0;g<4&&(p=parseInt(s(),16),!!isFinite(p));g+=1)y=y*16+p;h+=String.fromCharCode(y)}else if(typeof n[t]=="string")h+=n[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 r=p,e=0,t=" ",g=u(),l(),t&&o("Syntax error"),g}}();w.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,r,o,s,i,a,l,c,u=0,f=0,d="",p=[];if(!e)return e;e=w.utf8Encode(e);do n=e.charCodeAt(u++),r=e.charCodeAt(u++),o=e.charCodeAt(u++),c=n<<16|r<<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&&(r>n&&(t+=e.substring(n,r)),t+=a,n=r=s+1)}return r>n&&(t+=e.substring(n,e.length)),t};w.UUID=function(){var e=function(){var r=1*new Date,o;if(Ee.performance&&Ee.performance.now)o=Ee.performance.now();else for(o=0;r==1*new Date;)o++;return r.toString(16)+Math.floor(o).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},n=function(){var r=Or,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 r=(If.height*If.width).toString(16);return e()+"-"+t()+"-"+n()+"-"+r+"-"+e()}}();var i0=["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 r(o){if(!nt.getElementsByTagName)return[];var s=o.split(" "),i,a,l,c,u,f,d,p,g,h,y=[nt];for(f=0;f-1){a=i.split("#"),l=a[0];var m=a[1],b=nt.getElementById(m);if(!b||l&&b.nodeName.toLowerCase()!=l)return[];y=[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:N=function(I){return I.getAttribute(S)}}for(y=[],h=0,d=0;d=3?t[2]:""},currentUrl:function(){return Ee.location.href},properties:function(e){return typeof e!="object"&&(e={}),w.extend(w.strip_empty_properties({$os:w.info.os(),$browser:w.info.browser(Or,$o.vendor,su),$referrer:nt.referrer,$referring_domain:w.info.referringDomain(nt.referrer),$device:w.info.device(Or)}),{$current_url:w.info.currentUrl(),$browser_version:w.info.browserVersion(Or,$o.vendor,su),$screen_height:If.height,$screen_width:If.width,mp_lib:"web",$lib_version:lo.LIB_VERSION,$insert_id:Xm(),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(Or,$o.vendor,su)}),{$browser_version:w.info.browserVersion(Or,$o.vendor,su)})},mpPageViewProperties:function(){return w.strip_empty_properties({current_page_title:nt.title,current_domain:Ee.location.hostname,current_url_path:Ee.location.pathname,current_url_protocol:Ee.location.protocol,current_url_search:Ee.location.search})}};var Xm=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},N4=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,M4=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,a0=function(e){var t=M4,n=e.split("."),r=n[n.length-1];(r.length>4||r==="com"||r==="org")&&(t=N4);var o=e.match(t);return o?o[0]:""},D4=function(){var e=Ee.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 $4="__mp_opt_in_out_";function F4(e,t){ST(!0,e,t)}function U4(e,t){ST(!1,e,t)}function j4(e,t){return wT(e,t)==="1"}function bT(e,t){if(H4(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 n=wT(e,t)==="0";return n&&Ke.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function os(e){return ey(e,function(t){return this.get_config(t)})}function ss(e){return ey(e,function(t){return this._get_config(t)})}function ma(e){return ey(e,function(t){return this._get_config(t)})}function B4(e,t){t=t||{},Jm(t).remove(Qm(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Jm(e){return e=e||{},e.persistenceType==="localStorage"?w.localStorage:w.cookie}function Qm(e,t){return t=t||{},(t.persistencePrefix||$4)+e}function wT(e,t){return Jm(t).get(Qm(e,t))}function H4(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Ee,n=t.navigator||{},r=!1;return w.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(o){w.includes([!0,1,"1","yes"],o)&&(r=!0)}),r}function ST(e,t,n){if(!w.isString(t)||!t.length){Ke.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}n=n||{},Jm(n).set(Qm(t,n),e?1:0,w.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})}function ey(e,t){return function(){var n=!1;try{var r=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");r&&(n=bT(r,{ignoreDnt:o,persistenceType:s,persistencePrefix:i,window:a}))}catch(c){Ke.error("Unexpected error when checking tracking opt-out status: "+c)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var V4=Rd("lock"),ET=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};ET.prototype.withLock=function(e,t,n){!n&&typeof t!="function"&&(n=t,t=null);var r=n||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){V4.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+r+"]"),l.removeItem(f),l.removeItem(u),y();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!==r)return!1;if(l.setItem(u,r),l.getItem(u)===r)return!0;if(!Of(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},y=function(){l.setItem(c,r),g(h,function(){if(l.getItem(c)===r){m();return}p(function(){if(l.getItem(u)!==r){y();return}g(function(){return!l.getItem(f)},m)})})},m=function(){l.setItem(f,"1");try{e()}finally{l.removeItem(f),l.getItem(u)===r&&l.removeItem(u),l.getItem(c)===r&&l.removeItem(c)}};try{if(Of(l,!0))y();else throw new Error("localStorage support check failed")}catch(b){d(b)}};var l0=Rd("batch"),is=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||w.bind(l0.error,l0),this.lock=new ET(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};is.prototype.enqueue=function(e,t,n){var r={id:Xm(),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(r),s=this.saveToStorage(i),s&&this.memQueue.push(r)}catch{this.reportError("Error enqueueing item",e),s=!1}n&&n(s)},this),w.bind(function(s){this.reportError("Error acquiring storage lock",s),n&&n(!1)},this),this.pid):(this.memQueue.push(r),n&&n(!0))};is.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.lengths.flushAfter&&!r[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}}return t};var c0=function(e,t){var n=[];return w.each(e,function(r){r.id&&!t[r.id]&&n.push(r)}),n};is.prototype.removeItemsByID=function(e,t){var n={};if(w.each(e,function(o){n[o]=!0}),this.memQueue=c0(this.memQueue,n),!this.usePersistence)t&&t(!0);else{var r=w.bind(function(){var o;try{var s=this.readFromStorage();if(s=c0(s,n),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()-n>=t)this.reportError("Network timeout; retrying"),this.flush();else if(w.isObject(u)&&(u.httpStatusCode>=500||u.httpStatusCode===429||u.httpStatusCode<=0&&!D4()||u.error==="timeout")){var d=this.flushInterval*2;u.retryAfter&&(d=parseInt(u.retryAfter,10)*1e3||d),d=Math.min(W4,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(r/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"),_l.log("MIXPANEL REQUEST:",i),this.sendRequest(i,c,l)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};_r.prototype.reportError=function(e,t){if(_l.error.apply(_l.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(n){_l.error(n)}};var Es=Rd("recorder"),f0=Ee.CompressionStream,z4={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},G4=new Set([Cr.MouseMove,Cr.MouseInteraction,Cr.Scroll,Cr.ViewportResize,Cr.Input,Cr.TouchMove,Cr.MediaInteraction,Cr.Drag,Cr.Selection]);function q4(e){return e.type===_T.IncrementalSnapshot&&G4.has(e.data.source)}var vr=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=yl,this.recordMinMs=0,this._initBatcher()};vr.prototype._initBatcher=function(){this.batcher=new _r("__mprec",{libConfig:z4,sendRequestFunc:w.bind(this.flushEventsWithOptOut,this),errorReporter:w.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})};vr.prototype.get_config=function(e){return this._mixpanel.get_config(e)};vr.prototype.startRecording=function(e){if(this._stopRecording!==null){Es.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>yl&&(this.recordMaxMs=yl,Es.critical("record_max_ms cannot be greater than "+yl+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>Pp&&(this.recordMinMs=Pp,Es.critical("record_min_ms cannot be greater than "+Pp+"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(){Es.log("Idle timeout reached, restarting recording."),this.resetRecording()},this),this.get_config("record_idle_timeout_ms"))},this),n=this.get_config("record_block_selector");(n===""||n===null)&&(n=void 0),this._stopRecording=Ec({emit:w.bind(function(r){this.batcher.enqueue(r),q4(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())},this),blockClass:this.get_config("record_block_class"),blockSelector:n,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)};vr.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)};vr.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)};vr.prototype.flushEventsWithOptOut=function(e,t,n){this._flushEvents(e,t,n,w.bind(this._onOptOut,this))};vr.prototype._onOptOut=function(e){e===0&&(this.recEvents=[],this.stopRecording())};vr.prototype._sendRequest=function(e,t,n,r){var o=w.bind(function(s,i){s.status===200&&this.replayId===e&&this.seqNo++,r({status:0,httpStatusCode:s.status,responseBody:i,retryAfter:s.headers.get("Retry-After")})},this);Ee.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:n}).then(function(s){s.json().then(function(i){o(s,i)}).catch(function(i){r({error:i})})}).catch(function(s){r({error:s,httpStatusCode:0})})};vr.prototype._flushEvents=os(function(e,t,n){const r=e.length;if(r>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[r-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),f0){var f=new Blob([l],{type:"application/json"}).stream(),d=f.pipeThrough(new f0("gzip"));new Response(d).blob().then(w.bind(function(p){a.format="gzip",this._sendRequest(o,a,p,n)},this))}else a.format="body",this._sendRequest(o,a,l,n)}});vr.prototype.reportError=function(e,t){Es.error.apply(Es.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(n){Es.error(n)}};Ee.__mp_recorder=vr;var _o=function(){};_o.prototype.create_properties=function(){};_o.prototype.event_handler=function(){};_o.prototype.after_track_handler=function(){};_o.prototype.init=function(e){return this.mp=e,this};_o.prototype.track=function(e,t,n,r){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(n,this),u=o.mp.get_config("track_links_timeout");o.event_handler(a,this,l),window.setTimeout(o.track_callback(r,c,l,!0),u),o.mp.track(t,c,o.track_callback(r,c,l))})},this),!0};_o.prototype.track_callback=function(e,t,n,r){r=r||!1;var o=this;return function(){n.callback_fired||(n.callback_fired=!0,!(e&&e(r,t)===!1)&&o.after_track_handler(t,n,r))}};_o.prototype.create_properties=function(e,t){var n;return typeof e=="function"?n=e(t):n=w.extend({},e),n};var Ji=function(){this.override_event="click"};w.inherit(Ji,_o);Ji.prototype.create_properties=function(e,t){var n=Ji.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n};Ji.prototype.event_handler=function(e,t,n){n.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",n.href=t.href,n.new_tab||e.preventDefault()};Ji.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Ld=function(){this.override_event="submit"};w.inherit(Ld,_o);Ld.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()};Ld.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Ko="$set",Qi="$set_once",nr="$unset",Vs="$add",Mr="$append",Ws="$union",co="$remove",K4="$delete",xT={set_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[Ko]=r,n},unset_action:function(e){var t={},n=[];return w.isArray(e)||(e=[e]),w.each(e,function(r){this._is_reserved_property(r)||n.push(r)},this),t[nr]=n,t},set_once_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[Qi]=r,n},union_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=w.isArray(o)?o:[o])},this):r[e]=w.isArray(t)?t:[t],n[Ws]=r,n},append_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[Mr]=r,n},remove_action:function(e,t){var n={},r={};return w.isObject(e)?w.each(e,function(o,s){this._is_reserved_property(s)||(r[s]=o)},this):r[e]=t,n[co]=r,n},delete_action:function(){var e={};return e[K4]="",e}},dt=function(){};w.extend(dt.prototype,xT);dt.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n};dt.prototype.set=ma(function(e,t,n){var r=this.set_action(e,t);return w.isObject(e)&&(n=t),this._send_request(r,n)});dt.prototype.set_once=ma(function(e,t,n){var r=this.set_once_action(e,t);return w.isObject(e)&&(n=t),this._send_request(r,n)});dt.prototype.unset=ma(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});dt.prototype.union=ma(function(e,t,n){w.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});dt.prototype.delete=ma(function(e){var t=this.delete_action();return this._send_request(t,e)});dt.prototype.remove=ma(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)});dt.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 n=w.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};dt.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};dt.prototype._get_config=function(e){return this._mixpanel.get_config(e)};dt.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};dt.prototype.remove=dt.prototype.remove;dt.prototype.set=dt.prototype.set;dt.prototype.set_once=dt.prototype.set_once;dt.prototype.union=dt.prototype.union;dt.prototype.unset=dt.prototype.unset;dt.prototype.toString=dt.prototype.toString;var xe=function(){};w.extend(xe.prototype,xT);xe.prototype._init=function(e){this._mixpanel=e};xe.prototype.set=ss(function(e,t,n){var r=this.set_action(e,t);return w.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[Ko]=w.extend({},w.info.people_properties(),r[Ko]),this._send_request(r,n)});xe.prototype.set_once=ss(function(e,t,n){var r=this.set_once_action(e,t);return w.isObject(e)&&(n=t),this._send_request(r,n)});xe.prototype.unset=ss(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});xe.prototype.increment=ss(function(e,t,n){var r={},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),n=t):(w.isUndefined(t)&&(t=1),o[e]=t),r[Vs]=o,this._send_request(r,n)});xe.prototype.append=ss(function(e,t,n){w.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)});xe.prototype.remove=ss(function(e,t,n){w.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)});xe.prototype.union=ss(function(e,t,n){w.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});xe.prototype.track_charge=ss(function(e,t,n){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),n)});xe.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};xe.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)};xe.prototype.toString=function(){return this._mixpanel.toString()+".people"};xe.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),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))};xe.prototype._get_config=function(e){return this._mixpanel.get_config(e)};xe.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};xe.prototype._enqueue=function(e){Ko in e?this._mixpanel.persistence._add_to_people_queue(Ko,e):Qi in e?this._mixpanel.persistence._add_to_people_queue(Qi,e):nr in e?this._mixpanel.persistence._add_to_people_queue(nr,e):Vs in e?this._mixpanel.persistence._add_to_people_queue(Vs,e):Mr in e?this._mixpanel.persistence._add_to_people_queue(Mr,e):co in e?this._mixpanel.persistence._add_to_people_queue(co,e):Ws in e?this._mixpanel.persistence._add_to_people_queue(Ws,e):Ke.error("Invalid call to _enqueue():",e)};xe.prototype._flush_one_queue=function(e,t,n,r){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(),r&&(i=r(s)),t.call(o,i,function(a,l){a===0&&o._mixpanel.persistence._add_to_people_queue(e,s),w.isUndefined(n)||n(a,l)}))};xe.prototype._flush=function(e,t,n,r,o,s,i){var a=this;this._flush_one_queue(Ko,this.set,e),this._flush_one_queue(Qi,this.set_once,r),this._flush_one_queue(nr,this.unset,s,function(y){return w.keys(y)}),this._flush_one_queue(Vs,this.increment,t),this._flush_one_queue(Ws,this.union,o);var l=this._mixpanel.persistence.load_queue(Mr);if(!w.isUndefined(l)&&w.isArray(l)&&l.length)for(var c,u=function(y,m){y===0&&a._mixpanel.persistence._add_to_people_queue(Mr,c),w.isUndefined(n)||n(y,m)},f=l.length-1;f>=0;f--)l=this._mixpanel.persistence.load_queue(Mr),c=l.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(c)||a.append(c,u);var d=this._mixpanel.persistence.load_queue(co);if(!w.isUndefined(d)&&w.isArray(d)&&d.length)for(var p,g=function(y,m){y===0&&a._mixpanel.persistence._add_to_people_queue(co,p),w.isUndefined(i)||i(y,m)},h=d.length-1;h>=0;h--)d=this._mixpanel.persistence.load_queue(co),p=d.pop(),a._mixpanel.persistence.save(),w.isEmptyObject(p)||a.remove(p,g)};xe.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};xe.prototype.set=xe.prototype.set;xe.prototype.set_once=xe.prototype.set_once;xe.prototype.unset=xe.prototype.unset;xe.prototype.increment=xe.prototype.increment;xe.prototype.append=xe.prototype.append;xe.prototype.remove=xe.prototype.remove;xe.prototype.union=xe.prototype.union;xe.prototype.track_charge=xe.prototype.track_charge;xe.prototype.clear_charges=xe.prototype.clear_charges;xe.prototype.delete_user=xe.prototype.delete_user;xe.prototype.toString=xe.prototype.toString;var ty="__mps",ny="__mpso",ry="__mpus",oy="__mpa",sy="__mpap",iy="__mpr",ay="__mpu",kT="$people_distinct_id",Pf="__alias",oc="__timers",Y4=[ty,ny,ry,oy,sy,iy,ay,kT,Pf,oc],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,n){w.include(Y4,n)||(e[n]=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,n){return w.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof n>"u"?this.default_expiry:n,this.load(),w.each(e,function(r,o){(!this.props.hasOwnProperty(o)||this.props[o]===t)&&(this.props[o]=r)},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 n=this._get_queue_key(e),r=t[e],o=this._get_or_create_queue(Ko),s=this._get_or_create_queue(Qi),i=this._get_or_create_queue(nr),a=this._get_or_create_queue(Vs),l=this._get_or_create_queue(Ws),c=this._get_or_create_queue(co,[]),u=this._get_or_create_queue(Mr,[]);n===ty?(w.extend(o,r),this._pop_from_people_queue(Vs,r),this._pop_from_people_queue(Ws,r),this._pop_from_people_queue(nr,r)):n===ny?(w.each(r,function(f,d){d in s||(s[d]=f)}),this._pop_from_people_queue(nr,r)):n===ry?w.each(r,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}):n===oy?(w.each(r,function(f,d){d in o?o[d]+=f:(d in a||(a[d]=0),a[d]+=f)},this),this._pop_from_people_queue(nr,r)):n===ay?(w.each(r,function(f,d){w.isArray(f)&&(d in l||(l[d]=[]),l[d]=l[d].concat(f))}),this._pop_from_people_queue(nr,r)):n===iy?(c.push(r),this._pop_from_people_queue(Mr,r)):n===sy&&(u.push(r),this._pop_from_people_queue(nr,r)),Ke.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ke.log(t),this.save()};Re.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];w.isUndefined(n)||w.each(t,function(r,o){e===Mr||e===co?w.each(n,function(s){s[o]===r&&delete s[o]}):delete n[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===Ko)return ty;if(e===Qi)return ny;if(e===nr)return ry;if(e===Vs)return oy;if(e===Mr)return sy;if(e===co)return iy;if(e===Ws)return ay;Ke.error("Invalid queue:",e)};Re.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=w.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)};Re.prototype.set_event_timer=function(e,t){var n=this.load_prop(oc)||{};n[e]=t,this.props[oc]=n,this.save()};Re.prototype.remove_event_timer=function(e){var t=this.load_prop(oc)||{},n=t[e];return w.isUndefined(n)||(delete this.props[oc][e],this.save()),n};var ly,TT=function(e,t){throw new Error(e+" not available in this build.")},rn,CT=0,Z4=1,X4=function(e){return e},sc=function(){},Wn="mixpanel",AT="base64",J4="json",cy="$device:",Fi=Ee.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,IT=!Fi&&Or.indexOf("MSIE")===-1&&Or.indexOf("Mozilla")===-1,Nf=null;$o.sendBeacon&&(Nf=function(){return $o.sendBeacon.apply($o,arguments)});var OT={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},d0={api_host:"https://api-js.mixpanel.com",api_routes:OT,api_method:"POST",api_transport:"XHR",api_payload_format:AT,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:sc,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:sc,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:yl,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},RT=!1,V=function(){},Lg=function(e,t,n){var r,o=n===Wn?rn:rn[n];if(o&&ly===CT)r=o;else{if(o&&!w.isArray(o)){Ke.error("You have already initialized "+n);return}r=new V}if(r._cached_groups={},r._init(e,t,n),r.people=new xe,r.people._init(r),!r.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&&r.people.set_once(i)}return lo.DEBUG=lo.DEBUG||r.get_config("debug"),!w.isUndefined(o)&&w.isArray(o)&&(r._execute_array.call(r.people,o.people),r._execute_array(o)),r};V.prototype.init=function(e,t,n){if(w.isUndefined(n)){this.report_error("You must name your new library: init(token, config, name)");return}if(n===Wn){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=Lg(e,t,n);return rn[n]=r,r._loaded(),r};V.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var o=t.api_host||d0.api_host;o.match(/\.mixpanel\.com/)&&(r.api_payload_format=J4)}if(this.set_config(w.extend({},d0,r,t,{name:n,token:e,callback_fn:(n===Wn?n:Wn+"."+n)+"._jsc"})),this._jsc=sc,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)||!Fi)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&&Ee.addEventListener){var s=w.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Ee.addEventListener("pagehide",function(l){l.persisted&&s()}),Ee.addEventListener("visibilitychange",function(){nt.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:cy+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=os(function(){if(!Ee.MutationObserver){Ke.critical("Browser does not support MutationObserver; skipping session recording");return}var e=w.bind(function(){this._recorder=this._recorder||new Ee.__mp_recorder(this),this._recorder.startRecording()},this);w.isUndefined(Ee.__mp_recorder)?TT(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,n){this.unregister(n)}).bind(this))}};V.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(nt.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(nt.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(!RT)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)};V.prototype._init_url_change_tracking=function(e){var t="",n=this.track_pageview();if(n&&(t=w.info.currentUrl()),w.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){Ee.addEventListener("popstate",function(){Ee.dispatchEvent(new Event("mp_locationchange"))}),Ee.addEventListener("hashchange",function(){Ee.dispatchEvent(new Event("mp_locationchange"))});var r=Ee.history.pushState;typeof r=="function"&&(Ee.history.pushState=function(s,i,a){r.call(Ee.history,s,i,a),Ee.dispatchEvent(new Event("mp_locationchange"))});var o=Ee.history.replaceState;typeof o=="function"&&(Ee.history.replaceState=function(s,i,a){o.call(Ee.history,s,i,a),Ee.dispatchEvent(new Event("mp_locationchange"))}),Ee.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(Fi){var n=function(i){e(i,t)};return n}else{var r=this._jsc,o=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+o+"]";return r[o]=function(i){delete r[o],e(i,t)},s}};V.prototype._send_request=function(e,t,n,r){var o=!0;if(IT)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;!r&&(w.isFunction(n)||typeof n=="string")&&(r=n,n=null),n=w.extend(s,n||{}),Fi||(n.method="GET");var a=n.method==="POST",l=Nf&&a&&n.transport.toLowerCase()==="sendbeacon",c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Fi||(r?t.callback=r:(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=nt.createElement("img");f.src=e,nt.body.appendChild(f)}else if(l){try{o=Nf(e,i)}catch(m){u.report_error(m),o=!1}try{r&&r(o?1:0)}catch(m){u.report_error(m)}}else if(Fi)try{var d=new XMLHttpRequest;d.open(n.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),w.each(p,function(m,b){d.setRequestHeader(b,m)}),n.timeout_ms&&typeof d.timeout<"u"){d.timeout=n.timeout_ms;var g=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200){if(r)if(c){var m;try{m=w.JSONDecode(d.responseText)}catch(v){if(u.report_error(v),n.ignore_json_errors)m=d.responseText;else return}r(m)}else r(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),r)if(c){var _=d.responseHeaders||{};r({status:0,httpStatusCode:d.status,error:b,retryAfter:_["Retry-After"]})}else r(0)}},d.send(i)}catch(m){u.report_error(m),o=!1}else{var h=nt.createElement("script");h.type="text/javascript",h.async=!0,h.defer=!0,h.src=e;var y=nt.getElementsByTagName("script")[0];y.parentNode.insertBefore(h,y)}return o};V.prototype._execute_array=function(e){var t,n=[],r=[],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"?n.push(i):w.isArray(i)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?o.push(i):r.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(n,this),s(r,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(n){return new _r(n.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:w.bind(function(r,o,s){this._send_request(this.get_config("api_host")+n.endpoint,this._encode_data_for_request(r),o,this._prepare_callback(s,r))},this),beforeSendHook:w.bind(function(r){return this._run_hook("before_send_"+n.type,r)},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")===AT&&(t=w.base64Encode(t)),{data:t}};V.prototype._track_or_batch=function(e,t){var n=w.truncate(e.data,255),r=e.endpoint,o=e.batcher,s=e.should_send_immediately,i=e.send_request_options||{};t=t||sc;var a=!0,l=w.bind(function(){return i.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(Ke.log("MIXPANEL REQUEST:"),Ke.log(n),this._send_request(r,this._encode_data_for_request(n),i,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!s?o.enqueue(n,function(c){c?t(1,n):l()}):a=l(),a&&n};V.prototype.track=os(function(e,t,n,r){!r&&typeof n=="function"&&(r=n,n=null),n=n||{};var o=n.transport;o&&(n.transport=o);var s=n.send_immediately;if(typeof r!="function"&&(r=sc),w.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(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:n},r);return f});V.prototype.set_group=os(function(e,t,n){w.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)});V.prototype.add_group=os(function(e,t,n){var r=this.get_property(e),o={};return r===void 0?(o[e]=[t],this.register(o)):r.indexOf(t)===-1&&(r.push(t),o[e]=r,this.register(o)),this.people.union(e,t,n)});V.prototype.remove_group=os(function(e,t,n){var r=this.get_property(e);if(r!==void 0){var o=r.indexOf(t);o>-1&&(r.splice(o,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,n)});V.prototype.track_with_groups=os(function(e,t,n,r){var o=w.extend({},t||{});return w.each(n,function(s,i){s!=null&&(o[i]=s)}),this.track(e,o,r)});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 n=this._create_map_key(e,t),r=this._cached_groups[n];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new dt,r._init(this,e,t),this._cached_groups[n]=r),r};V.prototype.track_pageview=os(function(e,t){typeof e!="object"&&(e={}),t=t||{};var n=t.event_name||"$mp_web_page_view",r=w.extend(w.info.mpPageViewProperties(),w.info.campaignParams(),w.info.clickParams()),o=w.extend({},r,e);return this.track(n,o)});V.prototype.track_links=function(){return this._track_dom.call(this,Ji,arguments)};V.prototype.track_forms=function(){return this._track_dom.call(this,Ld,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 Q4={persistent:!0},uy=function(e){var t;return w.isObject(e)?t=e:w.isUndefined(e)?t={}:t={days:e},w.extend({},Q4,t)};V.prototype.register=function(e,t){var n=uy(t);n.persistent?this.persistence.register(e,n.days):w.extend(this.unpersisted_superprops,e)};V.prototype.register_once=function(e,t,n){var r=uy(n);r.persistent?this.persistence.register_once(e,t,r.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=uy(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};V.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)};V.prototype.identify=function(e,t,n,r,o,s,i,a){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(cy)===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,n,r,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:cy+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(kT))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=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(){n.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(n){n.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),lo.DEBUG=lo.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]||X4).apply(this,Do.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!==Wn&&(e=Wn+"."+e),e};V.prototype._event_is_disabled=function(e){return w.isBlockedUA(Or)||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(F4,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(U4,e),this._gdpr_update_persistence(e)};V.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(j4,e)};V.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(bT,e)};V.prototype.clear_opt_in_out_tracking=function(e){e=w.extend({enable_persistence:!0},e),this._gdpr_call_func(B4,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(n){Ke.error(n)}};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=OT;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={},e5=function(){w.each(Ti,function(e,t){t!==Wn&&(rn[t]=e)}),rn._=w},t5=function(){rn.init=function(e,t,n){if(n)return rn[n]||(rn[n]=Ti[n]=Lg(e,t,n),rn[n]._loaded()),rn[n];var r=rn;Ti[Wn]?r=Ti[Wn]:e&&(r=Lg(e,t,Wn),r._loaded(),Ti[Wn]=r),rn=r,ly===Z4&&(Ee[Wn]=rn),e5()}},n5=function(){function e(){e.done||(e.done=!0,RT=!0,IT=!1,w.each(Ti,function(r){r._dom_loaded()}))}function t(){try{nt.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(nt.addEventListener)nt.readyState==="complete"?e():nt.addEventListener("DOMContentLoaded",e,!1);else if(nt.attachEvent){nt.attachEvent("onreadystatechange",e);var n=!1;try{n=Ee.frameElement===null}catch{}nt.documentElement.doScroll&&n&&t()}w.register_event(Ee,"load",e,!0)};function r5(e){return TT=e,ly=CT,rn=new V,t5(),rn.init(),n5(),rn}function o5(e,t){t()}var Xr=r5(o5);const LT={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]},enableSearchboxUrlNavigation:{type:"boolean",defaultValue:!1,description:"Enable omnibox-style URL navigation in searchbox (A/B test for DXT-1619)",values:[!0,!1]}};let p0=!1;const s5=Object.keys(LT);function i5(e,t={}){window.mixpanelEventCallLog=window.mixpanelEventCallLog||[],window.mixpanelEventCallLog.push({name:e,eventData:t})}const ic=pt.withTag("mixpanel"),h0=[];let g0=!1;function a5(e,t){if(((r,o)=>!!(r==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(h0.includes(t.ntp_placement_name))return!1;h0.push(t.ntp_placement_name)}if(e==="NtpPage_Viewed"){if(g0)return!1;g0=!0}return!0}const $p=new Map;async function PT(){var s;if($p.has("metadata"))return $p.get("metadata");const{client:e}=await rs(),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(s5.map(async i=>{try{const a=LT[i];return{[i]:await t(i,a.defaultValue)}}catch(a){return ic.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 $p.set("metadata",o),o}async function l5(){var o;if(p0)return Xr;const e=it();if(!e.public.mixpanelToken)throw new Error("Mixpanel token is not defined in the runtime config.");Xr.init(e.public.mixpanelToken,{api_host:e.public.mixpanelApiHost}),ic.info("Mixpanel SDK initialized");const t=await PT();ic.info("Mixpanel metadata:",t),Xr.register(t);const n=t!=null&&t.cohort?String(t.cohort):"",r=t!=null&&t.targetingKey?String(t.targetingKey):"";return n&&r&&(Xr.identify(t.targetingKey),Xr.people.set_once?Xr.people.set_once({cohort:n}):(o=Xr.people)==null||o.set({cohort:n})),p0=!0,Xr}function c5(e,t){return l5().then(()=>{Xr.track(e,t)}).catch(()=>{ic.error("Failed to send event to Mixpanel. The Mixpanel SDK is not initialized.")})}async function NT(e,t){var u,f;if(ic.info(`Sending Mixpanel event: ${e}`,t),!a5(e,t))return;const n=await PT(),r={...t,split_test_data:n};i5(e,r);const{shift:o,chrome:s,onelaunch:i}=Vk.getHostApis(),a=(u=o==null?void 0:o.analytics)==null?void 0:u.track;if(a){a(e,r);return}const l=i==null?void 0:i.sendEvent;if(l){l(e,r);return}const c=(f=s==null?void 0:s.runtime)==null?void 0:f.sendEvent;if(c){c(e,r);return}try{await c5(e,t)}catch{}}async function MT(e,t={}){const n=Cd(),{data:r}=yc(n);return{...await $T(r,e),...t}}function u5(e=300){const t=ue({article:0,video:0});let n=null;function r(o){n&&clearTimeout(n),t.value[o]+=1,n=setTimeout(async()=>{const s=await MT("NtpNewsTile_Rendered",{article_tiles_rendered_count:t.value.article,video_tiles_rendered_count:t.value.video});NT("NtpNewsTile_Rendered",s),t.value={article:0,video:0},n=null},e)}return r}const f5=u5(),zs=()=>{async function e(t,n){if(!k5(t,n))return;const{client:r}=await rs();if(r.track(t,n),t==="NtpNewsTile_Rendered"&&n&&T5(n))f5(n.ntp_content_type);else{const o=await MT(t,n);try{await NT(t,o)}catch{}}}return{track:e,sendMixpanelEvent:e}},d5=pd(()=>{var i,a;const e=Cd(),{data:t}=yc(e),n=qk(),r=Tx("app:userSelectedTheme",!1);r.value||(n.preference=((i=t.value.userSettings)==null?void 0:i.defaultSettings.theme)??"system");const o=J(()=>n.preference==="system"&&n.value==="light"?"auto-light":n.preference==="system"&&n.value==="dark"?"auto-dark":n.preference),s=l=>{const{track:c}=zs();r.value=!0,n.preference=l,document.documentElement.className=`${n.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 n.preference=(r?n.preference:(a=t.value.userSettings)==null?void 0:a.defaultSettings.theme)??"system",{theme:n,updateTheme:s,mixpanelPropertyName:o}}),p5=pd(e=>{const t=Tx("app:userSettings",{articleSummary:{isEnabled:!0,showSettingsToggle:!1,isUserSelected:!1}}),n=J(()=>e==null?void 0:e.value.userSettings);Oe(()=>n.value,o=>{o&&(t.value.articleSummary.isUserSelected||(t.value.articleSummary.isEnabled=o.defaultSettings.articleSummary),t.value.articleSummary.showSettingsToggle=o.enabledSettings.articleSummary)},{immediate:!0});const r=o=>{const{track:s}=zs();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:r}}),h5=pt.withTag("composables:useAssertiveYield");function g5(e){var s,i,a,l,c,u;const{$ayLoaded:t}=Ae();if(!t)return{assertive:null,ayManagerEnv:null,ayData:null,initAY:()=>Promise.resolve(),unMountSlotTargeting:()=>Promise.resolve()};const n=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,y=n.value!==h;e!=null&&e.onAdFulfilled}catch(p){h5.error(p)}});const r=iD();Oe(r,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 m5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomImpression=="function"&&window.assertive.logCustomImpression(e)}))},y5=e=>{e&&(window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){window.assertive&&typeof window.assertive.logCustomClick=="function"&&window.assertive.logCustomClick(e)}))},Au=pt.withTag("analytics:helper");function _5(e){if(e==null)return null;const n=e.match("([0-9]{1}_[0-9]{4}_[0-9]{3}_[0-9]{4}_[0-9]{3}(_[0-9]{3})?_[0-9]{6})");return n!=null?n[0]:null}async function DT(){const e="0_1000_100_1000_100_691231";try{const t=await Vk.getConfig();if(t!=null&&t.type_tag)return t.type_tag;const n=(t==null?void 0:t.search_url)||null,r=_5(n);if(r)return r;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 v5(){const e=ei();return e.path.includes("/v8/article/")?"/v8/article":e.path.includes("/article/")?"/article":e.path.includes("/video/")?"/video":e.path}function b5({fullUrl:e=!1}={}){return e?window.location.href:"https://"+window.location.hostname+window.location.pathname}function w5(){const e=hV(),{newsToggle:t}=yc(e);return t.value?"on":"off"}function S5(){return d5().mixpanelPropertyName.value}function Pd(){return Op==null?void 0:Op.version}function E5(){const t=Pd().split(".").map(s=>parseInt(s,10));if(t.length!==3||t.some(isNaN))return;const[n,r,o]=t;return n*1e6+r*1e3+o}function fy(){const e=window.location.pathname;return e.includes("article")?"article":e.includes("summary")?"summary":e.includes("video")?"video":"homepage"}const x5=async e=>{e.value&&await new Promise(t=>{const n=Oe(e,r=>{r||(n(),t(!0))})})},$T=async(e,t)=>{const{articleSummary:n}=p5(e),r=ei(),o=lV(),{data:s,isLoading:i}=yc(o),{ayData:a}=await g5();await x5(i);const l={ntp_type_tag:await DT(),ntp_window_active:window.isPageVisible||document.visibilityState==="visible",ntp_url:b5(),ntp_app_version:Pd(),ntp_app_version_number:E5(),ntp_layout:v5(),ntp_page_type:fy(),ntp_assertive_data:a??void 0,ntp_news_content_toggle:w5(),ntp_is_user_idle:window.isUserIdle??!1,ntp_user_settings:{theme:S5(),ai_news_summary:{...n}}};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}=oV();l.browser_window_size=u,l.browser_window_height=f,l.browser_window_width=d,["/","/v8","/v8/"].includes(r.path)&&(l.column_count=p)}if(["/","/v8","/v8/"].includes(r.path)&&(l.ntp_layout_skeleton=Me(s.value)),["/","/v8","/v8/"].includes(r.path)&&(t==="NtpPage_Viewed"||t==="NtpMoreNews_Loaded"))try{const{client:u}=await rs();if(!u)throw new Error("OpenFeature client is not available");if(!u.getBooleanValue("ntp_visible_content_enabled",!1))return l;const p=fV(!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=dV(p,g),t==="NtpMoreNews_Loaded"&&pV()}catch(u){Au.warn("Failed to check visible content feature flag",u)}return l},m0=[];function k5(e,t){if(((r,o)=>!!(r==="NtpAd_Rendered"&&o&&typeof o=="object"))(e,t)){if(t.ntp_ad_provider!=="direct"||!t.ntp_placement_name)return!0;if(m0.includes(t.ntp_placement_name))return!1;m0.push(t.ntp_placement_name)}return!0}function T5(e){return e.ntp_content_type==="article"||e.ntp_content_type==="video"}const C5=Je(e=>{const t=it(),n=Pd(),r=t.public.buildVersion||n;try{"nocache"in e._route.query&&(pt.log("Clearing all storage due to no-cache query param"),ms.clear());const o=ms.getItem("app:buildVersion");r!==o&&(["app:config:adSettings","app:config:layoutSettings","app:config:layoutSkeleton","app:config:siteSettings","app:buildVersion"].forEach(i=>{ms.removeItem(i)}),ms.setItem("app:buildVersion",`${r}`))}catch{}e.provide("buildVersion",r),e.provide("storage",ms)}),y0=pt.withTag("plugins:filters"),FT=R.object({userAgent:R.string().nullable(),country:R.string(),isMobile:R.boolean().default(!1)}),_0=FT.parse({country:"US",userAgent:null,isMobile:!1}),A5=Je(async e=>{var r;let t,n;try{const o="/api/v2/filters",s=([t,n]=zt(()=>$fetch(o)),t=await t,n(),t),i={...s,isMobile:((r=s.userAgent)==null?void 0:r.includes("Mobile"))||!1},a=FT.safeParse(i);if(!a.success){y0.warn("Invalid user filtering data:",a.error),e.provide("filters",_0);return}e.provide("filters",a.data)}catch(o){y0.warn("Error fetching user filtering data:",o),e.provide("filters",_0)}}),I5=Je({name:"openfeature",setup:async e=>{let t,n;const{loaded:r,client:o}=([t,n]=zt(()=>rs()),t=await t,n(),t);e.provide("openfeatureLoaded",r),e.provide("openfeature",o)}});function UT(){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 v0=pt.withTag("utils:loadScriptAsync"),iu=new Map;function vl(e,t,n={}){const r=t.src||t.key;if(!r)throw new Error("Script key or src is required");const o=t.src,s=t.textContent;return iu.has(r)||iu.set(r,new Promise((i,a)=>{if(typeof document>"u")return typeof Ds=="function"&&e==="head"?Ds({script:[{...o?{src:o}:{},...s?{textContent:s}:{},type:"text/javascript",async:!0,onload:()=>{i()},onerror:()=>{a(new Error(`Failed to load script: ${r}`))},...n,...t.key?{key:t.key}:{}}]}):(v0.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{v0.warn(`loadScriptAsync: Script with src "${o}" is already present but not loaded yet. Attaching listeners.`);const u=()=>{c.setAttribute("data-loaded","true"),i(),c.removeEventListener("load",u),c.removeEventListener("error",f)},f=()=>{c.removeAttribute("data-loaded"),a(new Error(`Failed to load script: ${r}`)),c.removeEventListener("load",u),c.removeEventListener("error",f)};c.addEventListener("load",u),c.addEventListener("error",f),c.hasAttribute("data-loaded")&&u();return}}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: ${r}`))},e==="head"?document.head.appendChild(l):document.body.appendChild(l)})),iu.get(r)}const b0=pt.withTag("utils:scriptLoadAY");async function O5(e,t,n,r,o){const{isDevMode:s,devDisableAds:i,devAYTestEntityId:a}=it().public;if(s&&i)return b0.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 l=s&&a?a:e,c={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:UT(),custom_5:r,custom_6:o},useHistoryChangeTrigger:!0},u={ayEntityId:l,debug:!0,analytics:c};window.assertiveYieldAnalytics??(window.assertiveYieldAnalytics={...c}),window.assertive??(window.assertive={...u}),window.ayManagerEnv??(window.ayManagerEnv={cmd:[]});try{l&&await vl("head",{src:`https://${l}.ay.delivery/manager/${l}`})}catch(f){return b0.error("Failed to load Assertive Yield SDK:",f),{ayManagerEnv:null,assertive:null,loading:!1}}return window.assertiveQueue=window.assertiveQueue||[],window.assertiveQueue.push(function(){var f,d;(d=(f=window.assertive)==null?void 0:f.analytics)!=null&&d.custom&&(window.assertive.analytics.custom.custom_5=r,window.assertive.analytics.custom.custom_6=o)}),{ayManagerEnv:window.ayManagerEnv,assertive:window.assertive,loading:!0}}const Fp=pt.withTag("revContentStore"),R5="/api/v2/revcontent",L5="https://trends.revcontent.com/view.php",P5=pa("revContent",{state:()=>({ads:[],currentIndex:0,offset:0}),actions:{async splitTestCheck(){const{client:e}=await rs();return e.getStringValue("splittestname","default")==="sp7_rev_content_native"},async init(){if(await this.splitTestCheck())try{await this.fetchAds(3)}catch(e){Fp.error("Failed to initialize and populate RevContent store",e)}},async fetchAds(e){if(await this.splitTestCheck())try{const t=await fetch(`${R5}?offset=${this.offset}&count=${e||1}`,{method:"POST"});if(!t.ok)throw new Error(`Failed to fetch RevContent ads : ${t.statusText}`);const n=await t.json();return this.offset=this.offset+(e||1),this.ads=[...this.ads,...n.content],n.content[0]}catch(t){return Fp.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 n=new URLSearchParams([["view",decodeURIComponent(e.viewHash??"")],["p[]",((t=e.index)==null?void 0:t.toString())??"0"],["view_type",e.view_type??"fill"]]);await fetch(`${L5}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:n})}catch(n){Fp.error("Failed to post view for RevContent ad",n)}}}});function N5(e=gm){return dE(e,{asyncContext:!1})}function M5(e){var n;let t;return da()&&(t=(n=en())==null?void 0:n.appContext.app.$nuxt),t||(t=N5(e).tryUse()),t||null}function D5(e){const t=M5(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function $5(){const e=D5();return e._appConfig||(e._appConfig=Jt($n)),e._appConfig}const Fa={SM:480,MD:600,LG:767,XL:1024},di=pt.withTag("useTaboolaAds"),F5=pd(()=>{var l,c;const e=jr().taboola.publisherName,{$assertive:t}=Ae(),n=((c=(l=t==null?void 0:t.analytics)==null?void 0:l.custom)==null?void 0:c.custom_1)||"",r=fy()==="homepage"?vl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ homepage:'auto', custom_tracking:'sub_id=${n}' }); !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:()=>di.debug("Taboola script loaded."),onerror:()=>di.error("Taboola script failed to load.")}):vl("head",{textContent:`window._taboola = window._taboola || []; _taboola.push({ article:'auto', custom_tracking:'sub_id=${n}' }); !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:()=>di.debug("Taboola script loaded."),onerror:()=>di.error("Taboola script failed to load.")}),o=vl("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:()=>di.debug("Taboola body script loaded."),onerror:()=>di.error("Taboola body script failed to load.")});return{triggerTaboolaRenderedEvent:async(u,f,d,p)=>{await r,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 r,await o,window._taboola=window._taboola||[],window._taboola.push({notify:"newPageLoad"}),window._taboola.push({flush:!0})}}}),au=pt.withTag("useAdFunctions"),U5=()=>{const{track:e}=zs(),{callRenderResearchWidgets:t}=dy(),{callRenderTaboolaWidgets:n}=F5(),r=(f,d)=>{y5(d),e("NtpAd_Clicked",f)},o=(f,d)=>{m5(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&&w0(f);const m=g();m instanceof Promise&&m.catch(b=>{au.error("Error in async callback for non-lazy render",b)});return}const y=kx(f,{threshold:1/100});ZM(y,()=>{h&&clearTimeout(h),y.value&&(h=setTimeout(()=>{p&&w0(f);const m=g();m instanceof Promise&&m.catch(b=>{au.error("Error in async callback for element visibility",b)})},1))})}catch(y){h&&clearTimeout(h),au.error("Unable to render element when visible",y)}},i=()=>{window.ayManagerEnv.cmd=window.ayManagerEnv.cmd||[];try{window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.changePage(),window.ayManagerEnv.dispatchManualEvent()}),t(),n()}catch(f){au.error("Error triggering ad renders on breakpoint change",f)}},{width:a}=Cx(),l=ue("MD"),c=J(()=>a.value<=Fa.LG),u=J(()=>a.value>=Fa.XL);return Oe(a,f=>{let d=l.value;f>=Fa.LG?d="LG":f>=Fa.MD?d="MD":f>=Fa.SM?d="SM":d="XS",d!==l.value&&(l.value=d,i())}),{adClicked:r,adRendered:o,renderWhenCurrentElementIsVisible:s,triggerAdRenders:i,isMobile:c,isXLDesktop:u}},j5=At({__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,{expose:t}){const n=pt.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:o}=$5(),{adClicked:s,renderWhenCurrentElementIsVisible:i}=U5(),{track:a}=zs(),{callRenderResearchWidgets:l,triggerOutbrainRenderedEvent:c,generateExternalSecondaryId:u}=dy(),f=ue(r.placement),d=TI("widgetWrapperEl"),p=ue(""),g=ue(!1),h=ue({"data-ob-portalUrl":"","data-ob-language":"en","data-widget-id":r.widgetId,"data-ob-installation-key":(o==null?void 0:o.installationKey)||"","data-external-id":"","data-external-secondary-id":"","data-render-registered":!1});h.value["data-ob-portalUrl"]=UT(),h.value["data-external-id"]=window.location.host,h.value["data-external-secondary-id"]=u();function y(N){var O;if(!N)return"";const I=[".ob-rec-source",".ob-source",".ob-author-name"];for(const U of I){const L=N.querySelector(U),G=(O=L==null?void 0:L.textContent)==null?void 0:O.trim();if(G)return G}return""}function m(){return{ntp_tile_position:r.tilePosition,ntp_ad_provider:"outbrain",ntp_creative_id:r.widgetId,ntp_placement_name:r.placement,ntp_ad_brand:p.value}}function b(){s(m(),r.widgetId)}function _(N){const I=N.querySelector("a");I&&!I.getAttribute("data-click-registered")&&(I.setAttribute("data-click-registered","true"),I.addEventListener("click",b))}function v(N){if(!N)return;N.querySelectorAll('a[data-click-registered="true"]').forEach(O=>{O.removeEventListener("click",b),O.removeAttribute("data-click-registered")})}async function S(N){var G,oe;await qn();const I=N.element,O=((oe=(G=I==null?void 0:I.parentElement)==null?void 0:G.parentElement)==null?void 0:oe.parentElement)||null;if(g.value){n.debug("[handleOutbrainRenderedEvent] Already tracked render - skipping",{placement:r.placement,widgetId:r.widgetId});return}const U=O==null?void 0:O.classList.contains(r.placement),L={placement:r.placement,placementClassName:f.value,widgetId:r.widgetId,hasElement:!!I,hasParentElement:!!O,parentElementTag:O==null?void 0:O.tagName,parentElementClasses:O?Array.from(O.classList):[],expectedClass:r.placement,hasExpectedClass:U,hasTrackedRender:g.value,widgetWrapperRefExists:!!d.value,widgetWrapperRefClasses:d.value?Array.from(d.value.classList):[],timestamp:Date.now()};if(n.debug("[handleOutbrainRenderedEvent] Render event fired",L),!O){let ce=0;if(I){let q=I;for(;q.parentElement&&ce<3;)q=q.parentElement,ce++}n.warn("[handleOutbrainRenderedEvent] No parent element - DOM not ready?",{placement:r.placement,hasElement:!!I,elementParentCount:ce});return}if(!U){n.warn("[handleOutbrainRenderedEvent] Class mismatch - event may be lost",{placement:r.placement,expectedClass:r.placement,placementClassName:f.value,parentElementClasses:Array.from(O.classList),widgetWrapperClasses:d.value?Array.from(d.value.classList):[]});return}if(O&&!g.value&&U){g.value=!0,n.debug("[handleOutbrainRenderedEvent] Processing render - tracking event",{placement:r.placement,widgetId:r.widgetId}),_(N.element);const ce=await new Promise(ne=>{const re=y(I);if(re)return ne(re);let Se=null;const lt=new MutationObserver(()=>{const We=y(I);We&&(be(),ne(We))}),be=()=>{lt.disconnect(),Se!==null&&clearTimeout(Se)};lt.observe(I,{childList:!0,subtree:!0}),Se=setTimeout(()=>{be(),ne(y(I))},1e3)});p.value=ce;const q=m();q.ntp_ad_brand||n.error("[handleOutbrainRenderedEvent] adBrand is still empty after MutationObserver timeout",{placement:r.placement,widgetId:r.widgetId,innerHTML:I==null?void 0:I.innerHTML.substring(0,500)}),a("NtpAd_Rendered",q),n.debug("[handleOutbrainRenderedEvent] Tracking NtpAd_Rendered",q)}}const E=ue(!1);async function x(){var I,O;if(E.value=!0,await qn(),!d.value||(I=d.value)!=null&&I.getAttribute("data-render-registered")){n.debug("[renderOutbrainAd] Early return",{placement:r.placement,hasWrapper:!!d.value,isAlreadyRegistered:(O=d.value)==null?void 0:O.getAttribute("data-render-registered")});return}const N=W5(r.placement,d.value);f.value=N>0?`${r.placement} ${r.placement}-${N}`:r.placement,d.value.setAttribute("data-render-registered","true");try{await l(),await c(r.widgetId,S),n.debug("[renderOutbrainAd] Triggering Outbrain rendered event",{widgetId:r.widgetId,placement:r.placement})}catch(U){const L=U instanceof Error?U.message:"Unknown error",G={...m(),ntp_error_message:L};a("NtpAd_Render_Failed",G),n.error("[renderOutbrainAd] Error rendering Outbrain ad",{placement:r.placement,widgetId:r.widgetId,error:U})}}return Rn(()=>{n.debug("[onMounted] Outbrain component mounted",{placement:r.placement,widgetId:r.widgetId,lazyRender:r.lazyRender,sticky:r.sticky,tilePosition:r.tilePosition,adInstanceId:r.adInstanceId}),i(d.value,r.lazyRender,r.sticky,x)}),Js(()=>{d.value&&v(d.value)}),t({renderOutbrainAd:x,handleOutbrainRenderedEvent:S}),(N,I)=>(me(),_t("div",{ref_key:"widgetWrapperEl",ref:d,class:Qe(f.value)},[E.value?(me(),_t("div",an({key:0,class:["OUTBRAIN",f.value]},h.value),null,16)):Xt("",!0)],2))}}),Ua=pt.withTag("useOutbrainAds"),dy=pd(()=>{const e=()=>vl("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:()=>Ua.debug("Outbrain script loaded."),onerror:()=>Ua.error("Outbrain script failed to load.")}),t=async()=>{if(await e(),!window.OBR||!window.OBR.extern||typeof window.OBR.extern.researchWidget!="function"){Ua.warn("Outbrain research widget function not available after script load");return}window.OBR.extern.researchWidget()},n=async(s,i)=>{const a=V5(s);if(!a.widgetId||!i)return;const l=`${a.placement}-fallback`;i.classList.remove(s),i.classList.add(l),i.innerHTML="";try{const{vueApp:c}=Ae(),u=Ct(j5,{...a,placement:l});u.appContext=c._context,nR(u,i),await t()}catch(c){Ua.error(`[Native-Fallback]: Error rendering fallback Outbrain ad component ${s}`,c)}},r=async(s,i)=>{await e(),window.OBREvents||(window.OBREvents=[],Ua.warn("Initialized empty OBREvents array after script load")),window.OBREvents.push({name:"rendered",widgetId:s,feedCards:1,callback:i})};function o(){var s;return typeof window>"u"||!((s=window.performance)!=null&&s.timing)?Math.floor(Math.random()*1e9).toFixed():((window.performance.timing.navigationStart+window.performance.now())*Math.random()*1e6).toFixed()}return{callRenderResearchWidgets:t,triggerOutbrainRenderedEvent:r,renderFallbackOutbrainAd:n,generateExternalSecondaryId:o}}),ac=pt.withTag("adFunctions");function jT(e){return e.replace(/__ayManagerEnv__.+$/,"")}function B5(e,t){const{track:n}=zs();n("NtpAd_Rendered",{ntp_ad_brand:"programmatic",ntp_ad_provider:"programmatic",ntp_creative_id:t,ntp_placement_name:e,ntp_ad_refresh:!1})}function H5(e){var o;const t=e.slot.getSlotElementId(),n=(o=document.getElementById(t))==null?void 0:o.parentElement,r=jT(t);if(!n){ac.error("Element not found for native ad fallback",r);return}if(e.isEmpty)try{const{renderFallbackOutbrainAd:s}=dy();window.ayManagerEnv.cmd.push(function(){window.ayManagerEnv.destroy([t],{useInstanceCodes:!0})}),s(r,n);return}catch(s){ac.error("[Native-Fallback]: Error on Gtag slotRenderEnded listener for native ad fallback",s)}B5(r,e.slot.getAdUnitPath())}function V5(e){var n,r;const t=(n=jr().adops)==null?void 0:n.placements;if(!t){ac.error("No outbrain widgets found");return}if(!t||!((r=t[e])!=null&&r.outbrain)){pt.error("No outbrain widget found for: ",e);return}return{...t[e].outbrain,fallback:!0,placement:e}}function W5(e,t){if(!t||!e)return ac.error("Element is null for placement:",e),0;const n=Array.from(document.querySelectorAll(`.${e}`)).filter(r=>r.hasAttribute("ad"));if(n.length>1&&t){const r=Array.from(n).findIndex(o=>o===t);if(r!==-1)return r}return 0}function w0(e,t=3e3){if(!e){ac.error("No element to handle sticky ad");return}e.classList.add("sticky"),e.classList.add("top-0"),e.classList.add("z-[1000]");let n;window.addEventListener("scroll",()=>{e.classList.contains("sticky")||clearTimeout(n),n=setTimeout(()=>{e.classList.remove("sticky"),e.classList.remove("top-0"),e.classList.remove("z-[1000]")},t)})}const S0=pt.withTag("plugins/assertive.client"),z5=Je({name:"assertive",dependsOn:["openfeature"],setup:async e=>{let t,n;const{client:r}=([t,n]=zt(()=>rs()),t=await t,n(),t),{track:o}=zs(),{ayEntityId:s}=it().public,i=r.getStringValue("splittestname","control"),a=r.getStringValue("layoutSkeleton","default"),l=P5();[t,n]=zt(()=>l.init()),await t,n();const c={ntp_app_version:Pd(),host_browser_app_version:([t,n]=zt(()=>uk()),t=await t,n(),t),type_tag:([t,n]=zt(()=>DT()),t=await t,n(),t)},u=no.getContext(),f=([t,n]=zt(()=>O5(s,c,i,a,typeof u.cohort=="string"?u.cohort:null)),t=await t,n(),t);if(!f.loading){S0.error("Assertive Yield SDK failed to load");return}S0.info("Assertive Yield loaded"),window.ayManagerEnv.cmd.push(()=>{window.ayManagerEnv.onEvent("afterRefresh",d=>{d.forEach(p=>{const g={ntp_tile_position:-1,ntp_ad_provider:"programmatic",ntp_creative_id:"",ntp_placement_name:jT(p),ntp_ad_brand:"",ntp_ad_clickurl:"",ntp_ad_refresh:!0};o("NtpAd_Rendered",g)})})}),window.analytics||(window.analytics=zs()),e.provide("ayLoaded",f),e.provide("assertive",window.assertive)}}),G5=Je(e=>{e.vueApp.directive("click-outside",{beforeMount:(t,{value:n})=>{t.clickOutsideEvent=r=>{t===r.target||t.contains(r.target)||n()},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:BT,setPrototypeOf:E0,isFrozen:q5,getPrototypeOf:K5,getOwnPropertyDescriptor:Y5}=Object;let{freeze:Sn,seal:Yn,create:HT}=Object,{apply:Pg,construct:Ng}=typeof Reflect<"u"&&Reflect;Sn||(Sn=function(t){return t});Yn||(Yn=function(t){return t});Pg||(Pg=function(t,n,r){return t.apply(n,r)});Ng||(Ng=function(t,n){return new t(...n)});const lu=Fn(Array.prototype.forEach),x0=Fn(Array.prototype.pop),ja=Fn(Array.prototype.push),Iu=Fn(String.prototype.toLowerCase),Up=Fn(String.prototype.toString),k0=Fn(String.prototype.match),Ba=Fn(String.prototype.replace),Z5=Fn(String.prototype.indexOf),X5=Fn(String.prototype.trim),Qn=Fn(Object.prototype.hasOwnProperty),dn=Fn(RegExp.prototype.test),Ha=J5(TypeError);function Fn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Iu;E0&&E0(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(q5(t)||(t[r]=s),o=s)}e[o]=!0}return e}function Q5(e){for(let t=0;t/gm),oW=Yn(/\${[\w\W]*}/gm),sW=Yn(/^data-[\-\w.\u00B7-\uFFFF]/),iW=Yn(/^aria-[\-\w]+$/),VT=Yn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aW=Yn(/^(?:\w+script|data):/i),lW=Yn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),WT=Yn(/^html$/i),cW=Yn(/^[a-z][.\w]*(-[.\w]+)+$/i);var O0=Object.freeze({__proto__:null,ARIA_ATTR:iW,ATTR_WHITESPACE:lW,CUSTOM_ELEMENT:cW,DATA_ATTR:sW,DOCTYPE_NAME:WT,ERB_EXPR:rW,IS_ALLOWED_URI:VT,IS_SCRIPT_OR_DATA:aW,MUSTACHE_EXPR:nW,TMPLIT_EXPR:oW});const Wa={element:1,text:3,progressingInstruction:7,comment:8,document:9},uW=function(){return typeof window>"u"?null:window},fW=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");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}},R0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uW();const t=ge=>zT(ge);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==Wa.document)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.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=Va(g,"cloneNode"),y=Va(g,"remove"),m=Va(g,"nextSibling"),b=Va(g,"childNodes"),_=Va(g,"parentNode");if(typeof i=="function"){const ge=n.createElement("template");ge.content&&ge.content.ownerDocument&&(n=ge.content.ownerDocument)}let v,S="";const{implementation:E,createNodeIterator:x,createDocumentFragment:N,getElementsByTagName:I}=n,{importNode:O}=r;let U=R0();t.isSupported=typeof BT=="function"&&typeof _=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:G,TMPLIT_EXPR:oe,DATA_ATTR:ce,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:Se}=O0;let{IS_ALLOWED_URI:lt}=O0,be=null;const We=Ne({},[...T0,...jp,...Bp,...Hp,...C0]);let je=null;const tn=Ne({},[...A0,...Vp,...I0,...cu]);let ze=Object.seal(HT(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}})),ht=null,W=null,Q=!0,X=!0,ie=!1,te=!0,we=!1,T=!0,A=!1,$=!1,B=!1,H=!1,k=!1,C=!1,D=!0,j=!1;const z="user-content-";let K=!0,P=!1,F={},ee=null;const de=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 gt=null;const Tt=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",un="http://www.w3.org/1999/xhtml";let Br=un,Kt=!1,En=null;const Ic=Ne({},[qt,Ht,un],Up);let Oc=Ne({},["mi","mo","mn","ms","mtext"]),Rc=Ne({},["annotation-xml"]);const EA=Ne({},["title","style","font","a","script"]);let wa=null;const xA=["application/xhtml+xml","text/html"],kA="text/html";let Vt=null,si=null;const TA=n.createElement("form"),$y=function(M){return M instanceof RegExp||M instanceof Function},Vd=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(si&&si===M)){if((!M||typeof M!="object")&&(M={}),M=hs(M),wa=xA.indexOf(M.PARSER_MEDIA_TYPE)===-1?kA:M.PARSER_MEDIA_TYPE,Vt=wa==="application/xhtml+xml"?Up:Iu,be=Qn(M,"ALLOWED_TAGS")?Ne({},M.ALLOWED_TAGS,Vt):We,je=Qn(M,"ALLOWED_ATTR")?Ne({},M.ALLOWED_ATTR,Vt):tn,En=Qn(M,"ALLOWED_NAMESPACES")?Ne({},M.ALLOWED_NAMESPACES,Up):Ic,gt=Qn(M,"ADD_URI_SAFE_ATTR")?Ne(hs(Tt),M.ADD_URI_SAFE_ATTR,Vt):Tt,Le=Qn(M,"ADD_DATA_URI_TAGS")?Ne(hs(Pe),M.ADD_DATA_URI_TAGS,Vt):Pe,ee=Qn(M,"FORBID_CONTENTS")?Ne({},M.FORBID_CONTENTS,Vt):de,ht=Qn(M,"FORBID_TAGS")?Ne({},M.FORBID_TAGS,Vt):{},W=Qn(M,"FORBID_ATTR")?Ne({},M.FORBID_ATTR,Vt):{},F=Qn(M,"USE_PROFILES")?M.USE_PROFILES:!1,Q=M.ALLOW_ARIA_ATTR!==!1,X=M.ALLOW_DATA_ATTR!==!1,ie=M.ALLOW_UNKNOWN_PROTOCOLS||!1,te=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=M.SAFE_FOR_TEMPLATES||!1,T=M.SAFE_FOR_XML!==!1,A=M.WHOLE_DOCUMENT||!1,H=M.RETURN_DOM||!1,k=M.RETURN_DOM_FRAGMENT||!1,C=M.RETURN_TRUSTED_TYPE||!1,B=M.FORCE_BODY||!1,D=M.SANITIZE_DOM!==!1,j=M.SANITIZE_NAMED_PROPS||!1,K=M.KEEP_CONTENT!==!1,P=M.IN_PLACE||!1,lt=M.ALLOWED_URI_REGEXP||VT,Br=M.NAMESPACE||un,Oc=M.MATHML_TEXT_INTEGRATION_POINTS||Oc,Rc=M.HTML_INTEGRATION_POINTS||Rc,ze=M.CUSTOM_ELEMENT_HANDLING||{},M.CUSTOM_ELEMENT_HANDLING&&$y(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=M.CUSTOM_ELEMENT_HANDLING.tagNameCheck),M.CUSTOM_ELEMENT_HANDLING&&$y(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ze.attributeNameCheck=M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),M.CUSTOM_ELEMENT_HANDLING&&typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ze.allowCustomizedBuiltInElements=M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(X=!1),k&&(H=!0),F&&(be=Ne({},C0),je=[],F.html===!0&&(Ne(be,T0),Ne(je,A0)),F.svg===!0&&(Ne(be,jp),Ne(je,Vp),Ne(je,cu)),F.svgFilters===!0&&(Ne(be,Bp),Ne(je,Vp),Ne(je,cu)),F.mathMl===!0&&(Ne(be,Hp),Ne(je,I0),Ne(je,cu))),M.ADD_TAGS&&(be===We&&(be=hs(be)),Ne(be,M.ADD_TAGS,Vt)),M.ADD_ATTR&&(je===tn&&(je=hs(je)),Ne(je,M.ADD_ATTR,Vt)),M.ADD_URI_SAFE_ATTR&&Ne(gt,M.ADD_URI_SAFE_ATTR,Vt),M.FORBID_CONTENTS&&(ee===de&&(ee=hs(ee)),Ne(ee,M.FORBID_CONTENTS,Vt)),K&&(be["#text"]=!0),A&&Ne(be,["html","head","body"]),be.table&&(Ne(be,["tbody"]),delete ht.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ha('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ha('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=M.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=fW(p,o)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Sn&&Sn(M),si=M}},Fy=Ne({},[...jp,...Bp,...eW]),Uy=Ne({},[...Hp,...tW]),CA=function(M){let Z=_(M);(!Z||!Z.tagName)&&(Z={namespaceURI:Br,tagName:"template"});const fe=Iu(M.tagName),mt=Iu(Z.tagName);return En[M.namespaceURI]?M.namespaceURI===Ht?Z.namespaceURI===un?fe==="svg":Z.namespaceURI===qt?fe==="svg"&&(mt==="annotation-xml"||Oc[mt]):!!Fy[fe]:M.namespaceURI===qt?Z.namespaceURI===un?fe==="math":Z.namespaceURI===Ht?fe==="math"&&Rc[mt]:!!Uy[fe]:M.namespaceURI===un?Z.namespaceURI===Ht&&!Rc[mt]||Z.namespaceURI===qt&&!Oc[mt]?!1:!Uy[fe]&&(EA[fe]||!Fy[fe]):!!(wa==="application/xhtml+xml"&&En[M.namespaceURI]):!1},wr=function(M){ja(t.removed,{element:M});try{_(M).removeChild(M)}catch{y(M)}},Lc=function(M,Z){try{ja(t.removed,{attribute:Z.getAttributeNode(M),from:Z})}catch{ja(t.removed,{attribute:null,from:Z})}if(Z.removeAttribute(M),M==="is")if(H||k)try{wr(Z)}catch{}else try{Z.setAttribute(M,"")}catch{}},jy=function(M){let Z=null,fe=null;if(B)M=""+M;else{const Yt=k0(M,/^[\r\n\t ]+/);fe=Yt&&Yt[0]}wa==="application/xhtml+xml"&&Br===un&&(M=''+M+"");const mt=v?v.createHTML(M):M;if(Br===un)try{Z=new d().parseFromString(mt,wa)}catch{}if(!Z||!Z.documentElement){Z=E.createDocument(Br,"template",null);try{Z.documentElement.innerHTML=Kt?S:mt}catch{}}const nn=Z.body||Z.documentElement;return M&&fe&&nn.insertBefore(n.createTextNode(fe),nn.childNodes[0]||null),Br===un?I.call(Z,A?"html":"body")[0]:A?Z.documentElement:nn},By=function(M){return x.call(M.ownerDocument||M,M,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Hy=function(M){return M instanceof f&&(typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||!(M.attributes instanceof u)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function")},Vy=function(M){return typeof a=="function"&&M instanceof a};function Hr(ge,M,Z){lu(ge,fe=>{fe.call(t,M,Z,si)})}const Wy=function(M){let Z=null;if(Hr(U.beforeSanitizeElements,M,null),Hy(M))return wr(M),!0;const fe=Vt(M.nodeName);if(Hr(U.uponSanitizeElement,M,{tagName:fe,allowedTags:be}),M.hasChildNodes()&&!Vy(M.firstElementChild)&&dn(/<[/\w]/g,M.innerHTML)&&dn(/<[/\w]/g,M.textContent)||M.nodeType===Wa.progressingInstruction||T&&M.nodeType===Wa.comment&&dn(/<[/\w]/g,M.data))return wr(M),!0;if(!be[fe]||ht[fe]){if(!ht[fe]&&Gy(fe)&&(ze.tagNameCheck instanceof RegExp&&dn(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe)))return!1;if(K&&!ee[fe]){const mt=_(M)||M.parentNode,nn=b(M)||M.childNodes;if(nn&&mt){const Yt=nn.length;for(let xn=Yt-1;xn>=0;--xn){const Sr=h(nn[xn],!0);Sr.__removalCount=(M.__removalCount||0)+1,mt.insertBefore(Sr,m(M))}}}return wr(M),!0}return M instanceof l&&!CA(M)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&dn(/<\/no(script|embed|frames)/i,M.innerHTML)?(wr(M),!0):(we&&M.nodeType===Wa.text&&(Z=M.textContent,lu([L,G,oe],mt=>{Z=Ba(Z,mt," ")}),M.textContent!==Z&&(ja(t.removed,{element:M.cloneNode()}),M.textContent=Z)),Hr(U.afterSanitizeElements,M,null),!1)},zy=function(M,Z,fe){if(D&&(Z==="id"||Z==="name")&&(fe in n||fe in TA))return!1;if(!(X&&!W[Z]&&dn(ce,Z))){if(!(Q&&dn(q,Z))){if(!je[Z]||W[Z]){if(!(Gy(M)&&(ze.tagNameCheck instanceof RegExp&&dn(ze.tagNameCheck,M)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(M))&&(ze.attributeNameCheck instanceof RegExp&&dn(ze.attributeNameCheck,Z)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(Z))||Z==="is"&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&dn(ze.tagNameCheck,fe)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(fe))))return!1}else if(!gt[Z]){if(!dn(lt,Ba(fe,re,""))){if(!((Z==="src"||Z==="xlink:href"||Z==="href")&&M!=="script"&&Z5(fe,"data:")===0&&Le[M])){if(!(ie&&!dn(ne,Ba(fe,re,"")))){if(fe)return!1}}}}}}return!0},Gy=function(M){return M!=="annotation-xml"&&k0(M,Se)},qy=function(M){Hr(U.beforeSanitizeAttributes,M,null);const{attributes:Z}=M;if(!Z)return;const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je,forceKeepAttr:void 0};let mt=Z.length;for(;mt--;){const nn=Z[mt],{name:Yt,namespaceURI:xn,value:Sr}=nn,Sa=Vt(Yt);let fn=Yt==="value"?Sr:X5(Sr);if(fe.attrName=Sa,fe.attrValue=fn,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Hr(U.uponSanitizeAttribute,M,fe),fn=fe.attrValue,j&&(Sa==="id"||Sa==="name")&&(Lc(Yt,M),fn=z+fn),T&&dn(/((--!?|])>)|<\/(style|title)/i,fn)){Lc(Yt,M);continue}if(fe.forceKeepAttr||(Lc(Yt,M),!fe.keepAttr))continue;if(!te&&dn(/\/>/i,fn)){Lc(Yt,M);continue}we&&lu([L,G,oe],Yy=>{fn=Ba(fn,Yy," ")});const Ky=Vt(M.nodeName);if(zy(Ky,Sa,fn)){if(v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!xn)switch(p.getAttributeType(Ky,Sa)){case"TrustedHTML":{fn=v.createHTML(fn);break}case"TrustedScriptURL":{fn=v.createScriptURL(fn);break}}try{xn?M.setAttributeNS(xn,Yt,fn):M.setAttribute(Yt,fn),Hy(M)?wr(M):x0(t.removed)}catch{}}}Hr(U.afterSanitizeAttributes,M,null)},AA=function ge(M){let Z=null;const fe=By(M);for(Hr(U.beforeSanitizeShadowDOM,M,null);Z=fe.nextNode();)Hr(U.uponSanitizeShadowNode,Z,null),!Wy(Z)&&(Z.content instanceof s&&ge(Z.content),qy(Z));Hr(U.afterSanitizeShadowDOM,M,null)};return t.sanitize=function(ge){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null,fe=null,mt=null,nn=null;if(Kt=!ge,Kt&&(ge=""),typeof ge!="string"&&!Vy(ge))if(typeof ge.toString=="function"){if(ge=ge.toString(),typeof ge!="string")throw Ha("dirty is not a string, aborting")}else throw Ha("toString is not a function");if(!t.isSupported)return ge;if($||Vd(M),t.removed=[],typeof ge=="string"&&(P=!1),P){if(ge.nodeName){const Sr=Vt(ge.nodeName);if(!be[Sr]||ht[Sr])throw Ha("root node is forbidden and cannot be sanitized in-place")}}else if(ge instanceof a)Z=jy(""),fe=Z.ownerDocument.importNode(ge,!0),fe.nodeType===Wa.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?Z=fe:Z.appendChild(fe);else{if(!H&&!we&&!A&&ge.indexOf("<")===-1)return v&&C?v.createHTML(ge):ge;if(Z=jy(ge),!Z)return H?null:C?S:""}Z&&B&&wr(Z.firstChild);const Yt=By(P?ge:Z);for(;mt=Yt.nextNode();)Wy(mt)||(mt.content instanceof s&&AA(mt.content),qy(mt));if(P)return ge;if(H){if(k)for(nn=N.call(Z.ownerDocument);Z.firstChild;)nn.appendChild(Z.firstChild);else nn=Z;return(je.shadowroot||je.shadowrootmode)&&(nn=O.call(r,nn,!0)),nn}let xn=A?Z.outerHTML:Z.innerHTML;return A&&be["!doctype"]&&Z.ownerDocument&&Z.ownerDocument.doctype&&Z.ownerDocument.doctype.name&&dn(WT,Z.ownerDocument.doctype.name)&&(xn=" `+xn),we&&lu([L,G,oe],Sr=>{xn=Ba(xn,Sr," ")}),v&&C?v.createHTML(xn):xn},t.setConfig=function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vd(ge),$=!0},t.clearConfig=function(){si=null,$=!1},t.isValidAttribute=function(ge,M,Z){si||Vd({});const fe=Vt(ge),mt=Vt(M);return zy(fe,mt,Z)},t.addHook=function(ge,M){typeof M=="function"&&ja(U[ge],M)},t.removeHook=function(ge){return x0(U[ge])},t.removeHooks=function(ge){U[ge]=[]},t.removeAllHooks=function(){U=R0()},t}var dW=zT();function pW(e,t){const n=e.hooks??{};let r;for(r in n){const o=n[r];o!==void 0&&t.addHook(r,o)}}function GT(){return dW()}function hW(e={},t=GT){const n=t();pW(e,n);const r=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=n.sanitize(a,c[l]??u);return}o.innerHTML=n.sanitize(a,u)};return{mounted:r,updated:r}}const gW={install(e,t={},n=GT){e.directive("dompurify-html",hW(t,n))}},mW=Je(e=>{e.vueApp.use(gW)});function yW(e){window[`ga-disable-${e}`]=!0}function _W(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function vW(){const e=it().public.gtag,t=JE(e);let n;n=Su;const r=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}=r(a);if(!l)return;window.dataLayer||XE({tags:c}),document.head.querySelector("script[data-gtag]")||Ds({script:[{src:Ll(e.url,{id:l.id}),"data-gtag":""}]})}};function s(a){{const{tag:l}=r(a);l&&yW(l.id)}}function i(a){{const{tag:l}=r(a);l&&_W(l.id)}}return{gtag:n,initialize:o,disableAnalytics:s,enableAnalytics:i}}const Wp=pt.withTag("plugins:google-tag-manager"),bW=Je(async e=>{let t,n;const{googleTagManagerId:r,redesignedNtpPaths:o}=jr(),{gtag:s,initialize:i}=vW(),a=ei(),{client:l}=([t,n]=zt(()=>rs()),t=await t,n(),t);if(!r){Wp.warn("Google Tag Manager: Gtag ID not available in app config");return}i(r),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){Wp.error("addEventListener: Gtag pubads not found");return}window.googletag.pubads().addEventListener("slotRenderEnded",H5);const u=sB(Rk);window.googletag.setConfig({targeting:{page_type:fy(),split_test_name:l.getStringValue("splittestname","default"),ntp_cohort:u}})})}catch(c){Wp.error("Error mounting event listeners for native fallback",c)}})}),wW=e=>{e!==void 0&&setTimeout(e,100)},SW=Je(e=>{const t=n=>{(document==null?void 0:document.visibilityState)==="visible"&&n.focus()};e.vueApp.directive("autofocus-on-document-visible",{mounted:(n,r)=>{n._visibilityChangeEvent=()=>t(n),document.addEventListener("visibilitychange",n._visibilityChangeEvent),wW(r==null?void 0:r.value),n.focus()},unmounted:n=>{document.removeEventListener("visibilitychange",n._visibilityChangeEvent),delete n._visibilityChangeEvent}})});function EW(e,t,n){return(e=(t.split?t.split("."):t).reduce(function(r,o){return r&&r[o]},e))===void 0?n:e}function L0(e,t,n,r){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()]=n,e}function P0(e,t){return e??t}function kr(e,t,n,r){return P0(P0(n[t],r[t]),e)}function xW(e){const t=e||{};function n(r){const o=function(){try{return r.options.persistedState||{}}catch{return{}}}();if(kr(!0,"persist",o,t)===!1)return;const s=kr(r.store.$id,"key",o,{}),i=kr(!1,"overwrite",o,t),a=kr(function(){try{return window.localStorage}catch{return{getItem:function(){},setItem:function(){},removeItem:function(){}}}}(),"storage",o,t),l=kr(function(){return!0},"filter",o,t),c=kr(JSON.stringify,"serialize",o,t),u=kr(JSON.parse,"deserialize",o,t),f=kr(function(v){return v},"migrate",o,{}),d=kr(function(v,S){return S},"merge",o,{}),p=kr(function(v){const S="@@",E=v.setItem(S,"1"),x=function(){v.removeItem(S)};E instanceof Promise?E.then(x):x()},"assertStorage",o,t);function g(v){(o.beforeHydrate||function(){})(r.store.$state);const S=d(r.store.$state,v);i?r.store.$patch(E=>{Object.keys(E).forEach(x=>{E[x]=S[x]})}):r.store.$patch(S),y()}function h(v){if(v!=null){const S=u(v),E=f(S);E instanceof Promise?E.then(g):g(E)}else y()}let y;const m=new Promise(function(v){y=v});let b=0;r.store.$persistedState={isReady:function(){return m},pending:!1};try{_()}catch{y()}function _(){const v=a.getItem(s);v instanceof Promise?v.then(h):h(v)}r.store.$subscribe(function(v,S){if(l(v,S)===!1)return;Array.isArray(o.includePaths)&&(S=o.includePaths.reduce(function(N,I){return L0(N,I,EW(S,I,void 0))},{})),Array.isArray(o.excludePaths)&&(S=u(c(S)),o.excludePaths.forEach(function(N){return L0(S,N,void 0)},{}));const E=c(S),x=a.setItem(s,E);x instanceof Promise&&(++b,r.store.$persistedState.pending=b!==0,x.catch(function(){}).finally(function(){--b,r.store.$persistedState.pending=b!==0}))})}return n}const kW=Je(e=>{e.$pinia.use(xW({persist:!1}))}),TW=Je({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),CW=[vL,xL,GP,KP,YP,ZP,JP,AN,PN,NN,MN,BM,yD,vD,Y$,J$,eB,tB,rB,C5,A5,I5,z5,G5,mW,bW,SW,kW,TW],qT=(e="RouteProvider")=>At({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,o={};for(const s in t.route)Object.defineProperty(o,s,{get:()=>n===t.renderKey?t.route[s]:r[s],enumerable:!0});return Cs(gc,ro(o)),()=>Ct(t.vnode,{ref:t.vnodeRef})}}),AW=qT(),N0=new WeakMap,IW=At({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:n,expose:r}){const o=Ae(),s=ue(),i=Ut(gc,null);let a;r({pageRef:s});const l=Ut(S1,null);let c;const u=o.deferHydration();if(o.isHydrating){const d=o.hooks.hookOnce("app:error",u);Bt().beforeEach(d)}e.pageKey&&Oe(()=>e.pageKey,(d,p)=>{d!==p&&o.callHook("page:loading:start")});let f=!1;{const d=Bt().beforeResolve(()=>{f=!1});fa(()=>{d()})}return()=>Ct(VE,{name:e.name,route:e.route,...t},{default:d=>{const p=RW(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=qh(d,e.pageKey),y=LW(i,d.route,d.Component);!o.isHydrating&&a===h&&!y&&(o.callHook("page:loading:end"),f=!0),a=h;const m=!!(e.transition??d.route.meta.pageTransition??Mh),b=m&&OW([e.transition,d.route.meta.pageTransition,Mh,{onAfterLeave:()=>{o.callHook("page:transition:finish",d.Component)}}]),_=e.keepalive??d.route.meta.keepalive??l1;return c=DP(m&&b,RP(_,Ct(MS,{suspensible:!0,onPending:()=>o.callHook("page:start",d.Component),onResolve:()=>{qn(()=>o.callHook("page:finish",d.Component).then(()=>{if(!f&&!y)return f=!0,o.callHook("page:loading:end")}).finally(u))}},{default:()=>{const v={key:h||void 0,vnode:n.default?PW(n.default,d):d.Component,route:d.route,renderKey:h||void 0,trackRootNodes:m,vnodeRef:s};if(!_)return Ct(AW,v);const S=d.Component.type,E=S;let x=N0.get(E);return x||(x=qT(S.name||S.__name),N0.set(E,x)),Ct(x,v)}}))).default(),c}})}});function OW(e){const t=e.filter(Boolean).map(n=>({...n,onAfterLeave:n.onAfterLeave?Em(n.onAfterLeave):void 0}));return gE(...t)}function RW(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).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)})||n&&qh({route:t,Component:n})!==qh({route:e,Component:n})}function LW(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)}){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function $W(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const FW=/(-?[0-9.]*[0-9]+[0-9.]*)/g,UW=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function M0(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(FW);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=UW.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function jW(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function BW(e,t){return e?""+e+""+t:t}function HW(e,t,n){const r=jW(e);return BW(r.defs,t+r.content+n)}const VW=e=>e==="unset"||e==="undefined"||e==="none";function WW(e,t){const n={...py,...e},r={...XT,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(h=>{const y=[],m=h.hFlip,b=h.vFlip;let _=h.rotate;m?b?_+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):b&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.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,y.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,y.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)),y.length&&(s=HW(s,'',""))});const i=r.width,a=r.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=M0(f,l/c)):(u=i==="auto"?l:i,f=a===null?M0(u,c/l):a==="auto"?c:a);const d={},p=(h,y)=>{VW(y)||(d[h]=y.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 zW=/\sid="(\S+)"/g,GW="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let qW=0;function KW(e,t=GW){const n=[];let r;for(;r=zW.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(qW++).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 YW(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function ZW(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function XW(e){return"data:image/svg+xml,"+ZW(e)}function JW(e){return'url("'+XW(e)+'")'}const D0={...XT,inline:!1},QW={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},e2={display:"inline-block"},Mg={backgroundColor:"currentColor"},JT={backgroundColor:"transparent"},$0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},F0={webkitMask:Mg,mask:Mg,background:JT};for(const e in F0){const t=F0[e];for(const n in $0)t[e+n]=$0[n]}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 U0(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const t2=(e,t)=>{const n=NW(D0,t),r={...QW},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const y=t[h];if(y!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[h]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&DW(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[h]=$W(y):typeof y=="number"&&(n[h]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const m=Ou[h];m?(y===!0||y==="true"||y===1)&&(n[m]=!0):D0[h]===void 0&&(r[h]=y)}}}const l=WW(e,n),c=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...a},Object.assign(r,c);let h=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=KW(l.body,y?()=>y+"ID"+h++:"iconifyVue"),Ct("svg",r)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=YW(u,{...c,width:f+"",height:d+""});return r.style={...s,"--svg":JW(g),width:U0(c.width),height:U0(c.height),...e2,...p?Mg:JT,...a},Ct("span",r)},n2=Object.create(null),r2=At({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?n2[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:t2({...py,...n},e)}}),bl=/^[a-z0-9]+(-[a-z0-9]+)*$/,Nd=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=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]:r,prefix:l,name:a};return t&&!Ru(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Ru(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Ru(a,n)?null:a}return null},Ru=(e,t)=>e?!!((e.provider===""||e.provider.match(bl))&&(t&&e.prefix===""||e.prefix.match(bl))&&e.name.match(bl)):!1,QT=Object.freeze({left:0,top:0,width:16,height:16}),Mf=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),hy=Object.freeze({...QT,...Mf}),Dg=Object.freeze({...hy,body:"",hidden:!1});function o2(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function j0(e,t){const n=o2(e,t);for(const r in Dg)r in Mf?r in e&&!(r in n)&&(n[r]=Mf[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function s2(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function i2(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=j0(r[a]||o[a],s)}return i(t),n.forEach(i),j0(e,s)}function eC(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=s2(e);for(const o in r){const s=r[o];s&&(t(o,i2(e,o,s)),n.push(o))}return n}const a2={provider:"",aliases:{},not_found:{},...QT};function zp(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tC(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!zp(e,a2))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(bl)||typeof s.body!="string"||!zp(s,Dg))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(bl)||typeof i!="string"||!n[i]&&!r[i]||!zp(s,Dg))return null}return t}const B0=Object.create(null);function l2(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Gs(e,t){const n=B0[e]||(B0[e]=Object.create(null));return n[t]||(n[t]=l2(e,t))}function gy(e,t){return tC(t)?eC(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function c2(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let lc=!1;function nC(e){return typeof e=="boolean"&&(lc=e),lc}function u2(e){const t=typeof e=="string"?Nd(e,!0,lc):e;if(t){const n=Gs(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function f2(e,t){const n=Nd(e,!0,lc);if(!n)return!1;const r=Gs(n.provider,n.prefix);return c2(r,n.name,t)}function d2(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),lc&&!t&&!e.prefix){let o=!1;return tC(e)&&(e.prefix="",eC(e,(s,i)=>{i&&f2(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Ru({provider:t,prefix:n,name:"a"}))return!1;const r=Gs(t,n);return!!gy(r,e)}const p2=Object.freeze({width:null,height:null}),h2=Object.freeze({...p2,...Mf});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const $g=Object.create(null);function g2(e,t){$g[e]=t}function Fg(e){return $g[e]||$g[""]}function my(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 yy=Object.create(null),za=["https://api.simplesvg.com","https://api.unisvg.com"],Lu=[];for(;za.length>0;)za.length===1||Math.random()>.5?Lu.push(za.shift()):Lu.push(za.pop());yy[""]=my({resources:["https://api.iconify.design"].concat(Lu)});function Ug(e,t){const n=my(t);return n===null?!1:(yy[e]=n,!0)}function _y(e){return yy[e]}const m2=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let H0=m2();function y2(e,t){const n=_y(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _2(e){return e===404}const v2=(e,t,n)=>{const r=[],o=y2(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function b2(e){if(typeof e=="string"){const t=_y(e);if(t)return t.path}return"/"}const w2=(e,t,n)=>{if(!H0){n("abort",424);return}let r=b2(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;H0(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_2(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},S2={prepare:v2,send:w2};function E2(e){const t={loaded:[],missing:[],pending:[]},n=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 r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,l=n[s]||(n[s]=Object.create(null)),c=l[i]||(l[i]=Gs(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 rC(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function x2(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=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:r,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||rC([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let k2=0;function T2(e,t,n){const r=k2++,o=rC.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function C2(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?Nd(o,t,n):o;s&&r.push(s)}),r}var A2={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function I2(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let E=e.resources.slice(0);for(i=[];E.length>1;){const x=Math.floor(Math.random()*E.length);i.push(E[x]),E=E.slice(0,x).concat(E.slice(x+1))}i=i.concat(E)}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 r=="function"&&p.push(r);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function y(E,x){x&&(p=[]),typeof E=="function"&&p.push(E)}function m(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:y,abort:h}}function b(){l="failed",p.forEach(E=>{E(void 0,u)})}function _(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function v(E,x,N){const I=x!=="success";switch(d=d.filter(O=>O!==E),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=N,b();return}if(I){u=N,d.length||(i.length?S():b());return}if(g(),_(),!e.random){const O=e.resources.indexOf(E.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",p.forEach(O=>{O(N)})}function S(){if(l!=="pending")return;g();const E=i.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(_(),b())},e.timeout);return}b();return}const x={status:"pending",resource:E,callback:(N,I)=>{v(x,N,I)}};d.push(x),c++,f=setTimeout(S,e.rotate),n(E,t,x.callback)}return setTimeout(S),m}function oC(e){const t={...A2,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,c){const u=I2(t,a,l,(f,d)=>{r(),c&&c(f,d)});return n.push(u),u}function s(a){return n.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function V0(){}const Gp=Object.create(null);function O2(e){if(!Gp[e]){const t=_y(e);if(!t)return;const n=oC(t),r={config:t,redundancy:n};Gp[e]=r}return Gp[e]}function R2(e,t,n){let r,o;if(typeof e=="string"){const s=Fg(e);if(!s)return n(void 0,424),V0;o=s.send;const i=O2(e);i&&(r=i.redundancy)}else{const s=my(e);if(s){r=oC(s);const i=e.resources?e.resources[0]:"",a=Fg(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),V0):r.query(t,o,n)().abort}const W0="iconify2",cc="iconify",sC=cc+"-count",z0=cc+"-version",iC=36e5,L2=168,P2=50;function jg(e,t){try{return e.getItem(t)}catch{}}function vy(e,t,n){try{return e.setItem(t,n),!0}catch{}}function G0(e,t){try{e.removeItem(t)}catch{}}function Bg(e,t){return vy(e,sC,t.toString())}function Hg(e){return parseInt(jg(e,sC))||0}const Md={local:!0,session:!0},aC={local:new Set,session:new Set};let by=!1;function N2(e){by=e}let uu=typeof window>"u"?{}:window;function lC(e){const t=e+"Storage";try{if(uu&&uu[t]&&typeof uu[t].length=="number")return uu[t]}catch{}Md[e]=!1}function cC(e,t){const n=lC(e);if(!n)return;const r=jg(n,z0);if(r!==W0){if(r){const a=Hg(n);for(let l=0;l{const l=cc+a.toString(),c=jg(n,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{}G0(n,l)}};let i=Hg(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,Bg(n,i)):aC[e].add(a))}function uC(){if(!by){N2(!0);for(const e in Md)cC(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=Gs(r,o);if(!gy(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function M2(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Md)cC(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function D2(e,t){by||uC();function n(r){let o;if(!Md[r]||!(o=lC(r)))return;const s=aC[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Hg(o),i>=P2||!Bg(o,i+1))return;const a={cached:Math.floor(Date.now()/iC),provider:e.provider,data:t};return vy(o,cc+i.toString(),JSON.stringify(a))}t.lastModified&&!M2(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function q0(){}function $2(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,x2(e)}))}function F2(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:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=Fg(n)))return;s.prepare(n,r,o).forEach(a=>{R2(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=gy(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),D2(e,l)}catch(c){console.error(c)}$2(e)})})}))}const U2=(e,t)=>{const n=C2(e,!0,nC()),r=E2(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,q0)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(Gs(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=Gs(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&&F2(l,o[c][u])}),t?T2(t,r,s):q0},j2=e=>new Promise((t,n)=>{const r=typeof e=="string"?Nd(e,!0):e;if(!r){n(e);return}U2([r||e],o=>{if(o.length&&r){const s=u2(r);if(s){t({...hy,...s});return}}n(e)})});({...h2});const K0={backgroundColor:"currentColor"},B2={backgroundColor:"transparent"},Y0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Z0={webkitMask:K0,mask:K0,background:B2};for(const e in Z0){const t=Z0[e];for(const n in Y0)t[e+n]=Y0[n]}const qp={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";qp[e+"-flip"]=t,qp[e.slice(0,1)+"-flip"]=t,qp[e+"Flip"]=t});nC(!0);g2("",S2);if(typeof document<"u"&&typeof window<"u"){uC();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!d2(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Ug(n,o)||console.error(r)}catch{console.error(r)}}}}({...hy});const H2=["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 V2(e=""){let t,n="";if(e[0]==="@"&&e.includes(":")&&(n=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const r of H2)if(e.startsWith(r)){t=r,e=e.slice(r.length+1);break}}else if(e.includes(":")){const[r,o]=e.split(":");t=r,e=o}return{provider:n,prefix:t||"",name:e||""}}const W2=At({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=Ae(),o=jr(),s=e;Oe(()=>{var y;return(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions},()=>{var y,m,b,_,v,S;if((m=(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions)!=null&&m.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){Ug("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}Ug("",{resources:[(S=o.nuxtIcon)==null?void 0:S.iconifyApiOptions.url]})}},{immediate:!0});const i=ti("icons",()=>({})),a=ue(!1),l=J(()=>{var y,m;return(m=(y=o.nuxtIcon)==null?void 0:y.aliases)!=null&&m[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),c=J(()=>V2(l.value)),u=J(()=>[c.value.provider,c.value.prefix,c.value.name].filter(Boolean).join(":")),f=J(()=>{var y;return(y=i.value)==null?void 0:y[u.value]}),d=J(()=>{var y;return(y=r.vueApp)==null?void 0:y.component(l.value)}),p=J(()=>{var m,b,_;if(!s.size&&typeof((m=o.nuxtIcon)==null?void 0:m.size)=="boolean"&&!((b=o.nuxtIcon)!=null&&b.size))return;const y=s.size||((_=o.nuxtIcon)==null?void 0:_.size)||"1em";return String(Number(y))===y?`${y}px`:y}),g=J(()=>{var y;return((y=o==null?void 0:o.nuxtIcon)==null?void 0:y.class)??"icon"});async function h(){var y;d.value||(y=i.value)!=null&&y[u.value]||(a.value=!0,i.value[u.value]=await j2(c.value).catch(()=>{}),a.value=!1)}return Oe(l,h),!d.value&&([t,n]=mS(()=>h()),t=await t,n()),(y,m)=>a.value?(me(),_t("span",{key:0,class:Qe(g.value),style:Ls({width:p.value,height:p.value})},null,6)):f.value?(me(),ut(He(r2),{key:1,icon:f.value,class:Qe(g.value),width:p.value,height:p.value},null,8,["icon","class","width","height"])):d.value?(me(),ut(Jf(d.value),{key:2,class:Qe(g.value),width:p.value,height:p.value},null,8,["class","width","height"])):(me(),_t("span",{key:3,class:Qe(g.value),style:Ls({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},[Pr(y.$slots,"default",{},()=>[Al(Fo(e.name),1)],!0)],6))}}),ni=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},fC=ni(W2,[["__scopeId","data-v-5ad9b18b"]]),z2=Object.freeze(Object.defineProperty({__proto__:null,default:fC},Symbol.toStringTag,{value:"Module"})),G2=At({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=jr();return{dynamic:J(()=>{var r,o;return e.dynamic||((o=(r=t.ui)==null?void 0:r.icons)==null?void 0:o.dynamic)})}}});function q2(e,t,n,r,o,s){const i=fC;return e.dynamic?(me(),ut(i,{key:0,name:e.name},null,8,["name"])):(me(),_t("span",{key:1,class:Qe(e.name)},null,2))}const ya=ni(G2,[["render",q2]]),Dd=(e,t,n,r,o=!1)=>{const s=BI(),i=jr(),a=J(()=>{var d;const c=mu(t),u=mu(n),f=mu(r);return vc((c==null?void 0:c.strategy)||((d=i.ui)==null?void 0:d.strategy),f?{wrapper:f}:{},c||{},o?QD(i.ui,e,{}):{},u||{})}),l=J(()=>JD(s,["class"]));return{ui:a,attrs:l}},K2={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"}},Y2={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"}},dC={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"},X0={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:{...dC,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},A9={...X0,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:{...X0.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:{...dC,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Z2={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"}}},X2={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"},ds=vc($n.ui.strategy,$n.ui.avatar,K2),J2=At({components:{UIcon:ya},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:()=>ds.default.icon},size:{type:String,default:()=>ds.default.size,validator(e){return Object.keys(ds.size).includes(e)}},chipColor:{type:String,default:()=>ds.default.chipColor,validator(e){return["gray",...$n.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>ds.default.chipPosition,validator(e){return Object.keys(ds.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:n}=Dd("avatar",Xs(e,"ui"),ds),r=J(()=>typeof e.src=="boolean"?null:e.src),o=J(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=J(()=>Wi(zn(t.value.wrapper,(c.value||!r.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=J(()=>Wi(zn(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=J(()=>zn(t.value.icon.base,t.value.icon.size[e.size])),l=J(()=>zn(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:n,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:r,placeholder:o,error:c,onError:u}}});function Q2(e,t,n,r,o,s){const i=ya;return me(),_t("span",{class:Qe(e.wrapperClass)},[e.url&&!e.error?(me(),ut(Jf(e.as),an({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(),_t("span",{key:1,class:Qe(e.ui.text)},Fo(e.text),3)):e.icon?(me(),ut(i,{key:2,name:e.icon,class:Qe(e.iconClass)},null,8,["name","class"])):e.placeholder?(me(),_t("span",{key:3,class:Qe(e.ui.placeholder)},Fo(e.placeholder),3)):Xt("",!0),e.chipColor?(me(),_t("span",{key:4,class:Qe(e.chipClass)},Fo(e.chipText),3)):Xt("",!0),Pr(e.$slots,"default")],2)}const pC=ni(J2,[["render",Q2]]),J0=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 Q0(e,t){t?t={...J0,...t}:t=J0;const n=hC(t);return n.dispatch(e),n.toString()}const ez=Object.freeze(["prototype","__proto__","constructor"]);function hC(e){let t="",n=new Map;const r=o=>{t+=o};return{toString(){return t},getContext(){return n},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=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return r("buffer:"),r(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&&!ew(o)&&(u=ez),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),r("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),r(":"),e.excludeValues||this.dispatch(o[d]),r(",")};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,r("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=hC(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return n=i,a.sort(),this.array(a,!1)},date(o){return r("date:"+o.toJSON())},symbol(o){return r("symbol:"+o.toString())},unkown(o,s){if(r(s),!!o&&(r(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return r("error:"+o.toString())},boolean(o){return r("bool:"+o)},string(o){r("string:"+o.length+":"),r(o)},function(o){r("fn:"),ew(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 r("number:"+o)},xml(o){return r("xml:"+o.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(o){return r("regex:"+o.toString())},uint8array(o){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return r("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return r("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return r("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return r("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return r("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return r("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return r("url:"+o.toString())},map(o){r("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){r("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return r("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return r("domwindow")},bigint(o){return r("bigint:"+o.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const gC="[native code] }",tz=gC.length;function ew(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-tz)===gC}function nz(e,t,n={}){return e===t||Q0(e,n)===Q0(t,n)}const rz=At({inheritAttrs:!1,props:{...Rm,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(n,r,{isActive:o,isExactActive:s}){return e.exactQuery&&!nz(n.query,r.query)||e.exactHash&&n.hash!==r.hash?e.inactiveClass:e.exact&&s||!e.exact&&o?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),oz=["href","aria-disabled","role","rel","target","onClick"];function sz(e,t,n,r,o,s){const i=_N;return e.to?(me(),ut(i,an({key:1},e.$props,{custom:""}),{default:Ps(({route:a,href:l,target:c,rel:u,navigate:f,isActive:d,isExactActive:p,isExternal:g})=>[Mo("a",an(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[gc]||e.$route,{isActive:d,isExactActive:p}),onClick:h=>!g&&!e.disabled&&f(h)}),[Pr(e.$slots,"default",Qy(Sh({isActive:e.active!==void 0?e.active:e.exact?p:d})))],16,oz)]),_:3},16)):(me(),ut(Jf(e.as),an({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:Ps(()=>[Pr(e.$slots,"default",Qy(Sh({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const mC=ni(rz,[["render",sz]]);function iz({ui:e,props:t}){const n=en();if(Cs("ButtonGroupContextConsumer",!0),Ut("ButtonGroupContextConsumer",!1))return{size:J(()=>t.size),rounded:J(()=>e.value.rounded)};let o=n.parent,s;for(;o&&!s;){if(o.type.name==="ButtonGroup"){s=Ut(`group-${o.uid}`);break}o=o.parent}const i=J(()=>s==null?void 0:s.value.children.indexOf(n));return Rn(()=>{s==null||s.value.register(n)}),Js(()=>{s==null||s.value.unregister(n)}),{size:J(()=>(s==null?void 0:s.value.size)||t.size),rounded:J(()=>!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 Kr=vc($n.ui.strategy,$n.ui.button,Y2),az=At({components:{UIcon:ya,ULink:mC},inheritAttrs:!1,props:{...Rm,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:()=>Kr.default.size,validator(e){return Object.keys(Kr.size).includes(e)}},color:{type:String,default:()=>Kr.default.color,validator(e){return[...$n.ui.colors,...Object.keys(Kr.color)].includes(e)}},variant:{type:String,default:()=>Kr.default.variant,validator(e){return[...Object.keys(Kr.variant),...Object.values(Kr.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>Kr.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:n,attrs:r}=Dd("button",Xs(e,"ui"),Kr),{size:o,rounded:s}=iz({ui:n,props:e}),i=J(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),a=J(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=J(()=>e.square||!t.default&&!e.label),c=J(()=>{var y,m;const h=((m=(y=n.value.color)==null?void 0:y[e.color])==null?void 0:m[e.variant])||n.value.variant[e.variant];return Wi(zn(n.value.base,n.value.font,s.value,n.value.size[o.value],n.value.gap[o.value],e.padded&&n.value[l.value?"square":"padding"][o.value],h==null?void 0:h.replaceAll("{color}",e.color),e.block?n.value.block:n.value.inline),e.class)}),u=J(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),f=J(()=>e.loading&&!i.value?e.loadingIcon:e.trailingIcon||e.icon),d=J(()=>zn(n.value.icon.base,n.value.icon.size[o.value],e.loading&&n.value.icon.loading)),p=J(()=>zn(n.value.icon.base,n.value.icon.size[o.value],e.loading&&!i.value&&n.value.icon.loading)),g=J(()=>e$(e));return{ui:n,attrs:r,isLeading:i,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:p,linkProps:g}}});function lz(e,t,n,r,o,s){const i=ya,a=mC;return me(),ut(a,an({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:Ps(()=>[Pr(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(me(),ut(i,{key:0,name:e.leadingIconName,class:Qe(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Xt("",!0)]),Pr(e.$slots,"default",{},()=>[e.label?(me(),_t("span",{key:0,class:Qe([e.truncate?e.ui.truncate:""])},Fo(e.label),3)):Xt("",!0)]),Pr(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(me(),ut(i,{key:0,name:e.trailingIconName,class:Qe(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):Xt("",!0)])]),_:3},16,["type","disabled","class"])}const yC=ni(az,[["render",lz]]);function cz(e,t,n){let r=null;const{pause:o,resume:s,timestamp:i}=hD({controls:!0}),a=ue(null),l=J(()=>a.value?t-(i.value-a.value):0);function c(...h){r=setTimeout(()=>{r=null,a.value=null,e(...h)},l.value)}function u(){r&&(clearTimeout(r),r=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 Ga=vc($n.ui.strategy,$n.ui.notification,Z2),uz=At({components:{UIcon:ya,UAvatar:pC,UButton:yC},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:()=>Ga.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>Ga.default.closeButton},timeout:{type:Number,default:()=>Ga.default.timeout},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>Ga.default.color,validator(e){return["gray",...$n.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const{ui:n,attrs:r}=Dd("notification",Xs(e,"ui"),Ga);let o=null;const s=ue(e.timeout),i=J(()=>{var h,y;return Wi(zn(n.value.wrapper,(h=n.value.background)==null?void 0:h.replaceAll("{color}",e.color),n.value.rounded,n.value.shadow,(y=n.value.ring)==null?void 0:y.replaceAll("{color}",e.color)),e.class)}),a=J(()=>{var h;return zn(n.value.progress.base,(h=n.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=J(()=>({width:`${s.value/e.timeout*100||0}%`})),c=J(()=>{var h;return zn(n.value.icon.base,(h=n.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=cz(()=>{d()},e.timeout),Qf(()=>{s.value=o.remaining.value}))}return Oe(()=>e.timeout,g),Rn(g),Js(()=>{o&&o.stop()}),{ui:n,attrs:r,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p,twMerge:Wi}}});function fz(e,t,n,r,o,s){const i=ya,a=pC,l=yC;return me(),ut(GS,an({appear:""},e.ui.transition),{default:Ps(()=>[Mo("div",an({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))}),[Mo("div",{class:Qe([e.ui.container,e.ui.rounded,e.ui.ring])},[Mo("div",{class:Qe(["flex",[e.ui.padding,e.ui.gap,{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}]])},[e.icon?(me(),ut(i,{key:0,name:e.icon,class:Qe(e.iconClass)},null,8,["name","class"])):Xt("",!0),e.avatar?(me(),ut(a,an({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):Xt("",!0),Mo("div",{class:Qe(e.ui.inner)},[e.title||e.$slots.title?(me(),_t("p",{key:0,class:Qe(e.ui.title)},[Pr(e.$slots,"title",{title:e.title},()=>[Al(Fo(e.title),1)])],2)):Xt("",!0),e.description||e.$slots.description?(me(),_t("div",{key:1,class:Qe(e.twMerge(e.ui.description,!(e.title&&e.$slots.title)&&"mt-0 leading-5"))},[Pr(e.$slots,"description",{description:e.description},()=>[Al(Fo(e.description),1)])],2)):Xt("",!0),(e.description||e.$slots.description)&&e.actions.length?(me(),_t("div",{key:2,class:Qe(e.ui.actions)},[(me(!0),_t(bt,null,Vu(e.actions,(c,u)=>(me(),ut(l,an({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:sp(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))],2)):Xt("",!0)],2),e.closeButton||!e.description&&!e.$slots.description&&e.actions.length?(me(),_t("div",{key:2,class:Qe(e.twMerge(e.ui.actions,"mt-0"))},[!e.description&&!e.$slots.description&&e.actions.length?(me(!0),_t(bt,{key:0},Vu(e.actions,(c,u)=>(me(),ut(l,an({key:u,ref_for:!0},{...e.ui.default.actionButton||{},...c},{onClick:sp(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128)):Xt("",!0),e.closeButton?(me(),ut(l,an({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{onClick:sp(e.onClose,["stop"])}),null,16,["onClick"])):Xt("",!0)],2)):Xt("",!0)],2),e.timeout?(me(),_t("div",{key:0,class:Qe(e.progressClass),style:Ls(e.progressStyle)},null,6)):Xt("",!0)],2)],16)]),_:3},16)}const _C=ni(uz,[["render",fz]]);function dz(){const e=ti("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 n(s){e.value=e.value.filter(i=>i.id!==s)}function r(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:n,update:r,clear:o}}const pz=vc($n.ui.strategy,$n.ui.notifications,X2),hz=At({components:{UNotification:_C},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Dd("notifications",Xs(e,"ui"),pz),r=dz(),o=ti("notifications",()=>[]),s=J(()=>Wi(zn(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:n,toast:r,notifications:o,wrapperClass:s}}});function gz(e,t,n,r,o,s){const i=_C;return me(),ut(SI,{to:"body"},[Mo("div",an({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(me(),_t("div",{key:0,class:Qe(e.ui.container)},[(me(!0),_t(bt,null,Vu(e.notifications,a=>(me(),_t("div",{key:a.id},[st(i,an({ref_for:!0},a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),UI({_:2},[Vu(e.$slots,(l,c)=>({name:c,fn:Ps(u=>[Pr(e.$slots,c,an({ref_for:!0},u))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):Xt("",!0)],16)])}const mz=ni(hz,[["render",gz]]);function yz(){Rn(()=>{const{idle:e}=fD(5e3,{initialState:!1});Oe(e,t=>{window.isUserIdle=t},{immediate:!0})})}const Rt={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},Rr=console,ys={};Object.keys(Rt).forEach(e=>{ys[e]=Rr[e]});const qa="Datadog Browser SDK:",St={debug:ys.debug.bind(Rr,qa),log:ys.log.bind(Rr,qa),info:ys.info.bind(Rr,qa),warn:ys.warn.bind(Rr,qa),error:ys.error.bind(Rr,qa)},wy="https://docs.datadoghq.com",_z=`${wy}/real_user_monitoring/browser/troubleshooting`,Sy="More details:";function vC(e,t){return(...n)=>{try{return e(...n)}catch(r){St.error(t,r)}}}function tl(e){return e!==0&&Math.random()*100<=e}function vz(e){return bz(e)&&e>=0&&e<=100}function bz(e){return typeof e=="number"}const _a=1e3,as=60*_a,bC=60*as,wz=24*bC,Sz=365*wz;function Bo(){return new Date().getTime()}function vo(){return Bo()}function Df(){return performance.now()}function Ur(){return{relative:Df(),timeStamp:vo()}}function Ez(){return{relative:0,timeStamp:SC()}}function wC(e,t){return t-e}function xz(e,t){return e+t}function kz(e){return e-SC()}let Kp;function SC(){var e,t;return Kp===void 0&&(Kp=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),Kp}const ea=1024,EC=1024*ea,Tz=/[^\u0000-\u007F]/;function xC(e){return Tz.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function Cz(e){return{...e}}function kC(e,t){return Object.keys(e).some(n=>e[n]===t)}function kc(e){return Object.keys(e).length===0}function br(){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 mr=br(),qs="WorkerGlobalScope"in mr;function ta(e,t){const n=br();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}let $f,TC=!1;function Az(e){$f=e}function Iz(e){TC=e}function Oz(e,t,n){const r=n.value;n.value=function(...o){return($f?wt(r):r).apply(this,o)}}function wt(e){return function(){return na(e,this,arguments)}}function na(e,t,n){try{return e.apply(t,n)}catch(r){Ey(r)}}function Ey(e){if(Vg(e),$f)try{$f(e)}catch(t){Vg(t)}}function Vg(...e){TC&&St.error("[MONITOR]",...e)}function Tc(e,t){return ta(br(),"setTimeout")(wt(e),t)}function CC(e){ta(br(),"clearTimeout")(e)}function xy(e,t){return ta(br(),"setInterval")(wt(e),t)}function AC(e){ta(br(),"clearInterval")(e)}function tw(e){var t;const n=(t=mr.queueMicrotask)===null||t===void 0?void 0:t.bind(mr);typeof n=="function"?n(wt(e)):Promise.resolve().then(wt(e))}class Et{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(n=>n(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(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function IC(...e){return new Et(t=>{const n=e.map(r=>r.subscribe(o=>t.notify(o)));return()=>n.forEach(r=>r.unsubscribe())})}class OC extends Et{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 n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return tw(()=>{for(const o of this.buffer){if(n)return;t(o)}n||this.addObserver(t)}),r}unbuffer(){tw(()=>{this.maxBufferSize=this.buffer.length=0})}}function Rz(e,t,n){let r=!1,o,s;return{throttled:(...i)=>{if(r){o=i;return}e(...i),r=!0,s=Tc(()=>{o&&e(...o),r=!1,o=void 0},t)},cancel:()=>{CC(s),r=!1,o=void 0}}}function Yo(){}function Zo(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Zo)}const ra=/([\w-]+)\s*=\s*([^;]+)/g;function Lz(e,t){for(ra.lastIndex=0;;){const n=ra.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function Pz(e){const t=new Map;for(ra.lastIndex=0;;){const n=ra.exec(e);if(n){const r=n[1],o=n[2];t.has(r)?t.get(r).push(o):t.set(r,[o])}else break}return t}function Nz(e){const t=new Map;for(ra.lastIndex=0;;){const n=ra.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function Mz(e,t,n=""){const r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${n}`}var Ks;(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"})(Ks||(Ks={}));const ky=new Set;function Dz(e){Array.isArray(e)&&$z(e.filter(t=>kC(Ks,t)))}function $z(e){e.forEach(t=>{ky.add(t)})}function $d(e){return ky.has(e)}function Fz(){return ky}function Uz(){return jz()===0}let fu;function jz(){return fu??(fu=Bz())}function Bz(e=window){var t;const n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function Ty(e){return RC(e,location.href).href}function RC(e,t){const{URL:n}=Hz();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let Yp;function Hz(){if(!Yp){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=mr}Yp={URL:t.URL},e==null||e.remove()}return Yp}function Fd(e,t,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const s=`expires=${o.toUTCString()}`,i=r&&r.crossSite?"none":"strict",a=r&&r.domain?`;domain=${r.domain}`:"",l=r&&r.secure?";secure":"",c=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${i}${a}${l}${c}`}function Cy(e){return Lz(document.cookie,e)}function Vz(e){return Pz(document.cookie).get(e)||[]}let Zp;function xs(e){return Zp||(Zp=Nz(document.cookie)),Zp.get(e)}function LC(e,t){Fd(e,"",0,t)}function Wz(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Zo()}`,n="test";Fd(t,n,as,e);const r=Cy(t)===n;return LC(t,e),r}catch(t){return St.error(t),!1}}let Xp;function PC(e=location.hostname,t=document.referrer){if(Xp===void 0){const n=zz(e,t);if(n){const r=`dd_site_test_${Zo()}`,o="test",s=n.split(".");let i=s.pop();for(;s.length&&!Cy(r);)i=`${s.pop()}.${i}`,Fd(r,o,_a,{domain:i});LC(r,{domain:i}),Xp=i}}return Xp}function zz(e,t){try{return e||RC(t).hostname}catch{}}const po="_dd_s";function Gz(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function Ff(e){return Object.values(e)}function qz(e){return Object.entries(e)}const Ay=4*bC,NC=15*as,Kz=Sz,MC="0",oa={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},DC=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Iy="&";function Yz(e){return!!e&&(e.indexOf(Iy)!==-1||DC.test(e))}const Zz="1";function _s(e,t){const n={isExpired:Zz};return t.trackAnonymousUser&&(e!=null&&e.anonymousId)&&(n.anonymousId=e==null?void 0:e.anonymousId),n}function Pu(e){return kc(e)}function $C(e){return!Pu(e)}function wl(e){return e.isExpired!==void 0||!Xz(e)}function Xz(e){return(e.created===void 0||Bo()-Number(e.created)t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(Iy)}function Ud(e){const t={};return Yz(e)&&e.split(Iy).forEach(n=>{const r=DC.exec(n);if(r!==null){const[,o,s]=r;o==="aid"?t.anonymousId=s:t[o]=s}}),t}const Jz="_dd",Qz="_dd_r",e8="_dd_l",t8="rum",n8="logs";function r8(e){if(!xs(po)){const n=xs(Jz),r=xs(Qz),o=xs(e8),s={};n&&(s.id=n),o&&/^[01]$/.test(o)&&(s[n8]=o),r&&/^[012]$/.test(r)&&(s[t8]=r),$C(s)&&(FC(s),e.persistSession(s))}}const o8=0;function nw(e){const t=i8(e);return t&&Wz(t)?{type:oa.COOKIE,cookieOptions:t}:void 0}function s8(e,t){const n={isLockEnabled:Uz(),persistSession:r=>rw(t,e,r,NC),retrieveSession:()=>UC(t),expireSession:r=>rw(t,e,_s(r,e),Ay)};return r8(n),n}function rw(e,t,n,r){let o=Wg(n);$d(Ks.ENCODE_COOKIE_OPTIONS)&&(o=Wg({...n,...kc(n)?{}:{c:jC(e)}})),Fd(po,o,t.trackAnonymousUser?Kz:r,e)}function UC(e){if($d(Ks.ENCODE_COOKIE_OPTIONS))return a8(e);const t=Cy(po);return Ud(t)}function i8(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=PC();if(!n)return;t.domain=n}return t}function jC(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=o8<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}function a8(e){const t=Vz(po),n=jC(e);let r;for(const o of t.reverse())if(r=Ud(o),r.c===n)break;return r==null||delete r.c,r??{}}const l8="_dd_test_";function ow(){try{const e=Zo(),t=`${l8}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:oa.LOCAL_STORAGE}:void 0}catch{return}}function c8(e){return{isLockEnabled:!1,persistSession:BC,retrieveSession:HC,expireSession:t=>u8(t,e)}}function BC(e){localStorage.setItem(po,Wg(e))}function HC(){const e=localStorage.getItem(po);return Ud(e)}function u8(e,t){BC(_s(e,t))}const f8=10,d8=100,p8=_a,VC="--",WC=[];let Nu;function vs(e,t,n=0){var r;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&&!g8(d)?d:void 0}};if(Nu||(Nu=e),e!==Nu){WC.push(e);return}if(o&&n>=d8){sw(t);return}let c,u=l();if(o){if(u.lock){du(e,t,n);return}if(c=h8(),a(u.session),u=l(),u.lock!==c){du(e,t,n);return}}let f=e.process(u.session);if(o&&(u=l(),u.lock!==c)){du(e,t,n);return}if(f&&(wl(f)?i(f):(FC(f),o?a(f):s(f))),o&&!(f&&wl(f))){if(u=l(),u.lock!==c){du(e,t,n);return}s(u.session),f=u.session}(r=e.after)===null||r===void 0||r.call(e,f||u.session),sw(t)}function du(e,t,n){Tc(()=>{vs(e,t,n+1)},f8)}function sw(e){Nu=void 0;const t=WC.shift();t&&vs(t,e)}function h8(){return Zo()+VC+vo()}function g8(e){const[,t]=e.split(VC);return!t||wC(Number(t),vo())>p8}const iw=_a;function m8(e){switch(e.sessionPersistence){case oa.COOKIE:return nw(e);case oa.LOCAL_STORAGE:return ow();case void 0:{let t=nw(e);return!t&&e.allowFallbackToLocalStorage&&(t=ow()),t}default:St.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function y8(e,t){return e.type===oa.COOKIE?s8(t,e.cookieOptions):c8(t)}function _8(e,t,n,r,o=y8(e,t)){const s=new Et,i=new Et,a=new Et,l=xy(p,iw);let c;h();const{throttled:u,cancel:f}=Rz(()=>{vs({process:E=>{if(Pu(E))return;const x=g(E);return y(x),x},after:E=>{$C(E)&&!m()&&v(E),c=E}},o)},iw);function d(){vs({process:E=>m()?g(E):void 0},o)}function p(){const E=o.retrieveSession();wl(E)?vs({process:x=>wl(x)?_s(x,t):void 0,after:g},o):g(E)}function g(E){return wl(E)&&(E=_s(E,t)),m()&&(b(E)?_():(a.notify({previousState:c,newState:E}),c=E)),E}function h(){vs({process:E=>{if(Pu(E))return E.anonymousId=Zo(),_s(E,t)},after:E=>{c=E}},o)}function y(E){if(Pu(E))return!1;const x=r(E[n]);E[n]=x,delete E.isExpired,x!==MC&&!E.id&&(E.id=Zo(),E.created=String(Bo()))}function m(){return(c==null?void 0:c[n])!==void 0}function b(E){return c.id!==E.id||c[n]!==E[n]}function _(){c=_s(c,t),i.notify()}function v(E){c=E,s.notify()}function S(E){vs({process:x=>({...x,...E}),after:g},o)}return{expandOrRenewSession:u,expandSession:d,getSession:()=>c,renewObservable:s,expireObservable:i,sessionStateUpdateObservable:a,restartSession:h,expire:E=>{f(),E===!1&&c&&delete c.anonymousId,o.expireSession(c),g(_s(c,t))},stop:()=>{AC(l)},updateSessionState:S}}const zg={GRANTED:"granted",NOT_GRANTED:"not-granted"};function v8(e){const t=new Et;return{tryToInit(n){e||(e=n)},update(n){e=n,t.notify()},isGranted(){return e===zg.GRANTED},observable:t}}function zC(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function b8(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(o){St.error(o)}return!1})}const w8=["chrome-extension://","moz-extension://"];function aw(e){return w8.some(t=>e.includes(t))}function S8(e,t=""){if(aw(e))return!1;const r=t.split(` `).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return aw(r)}const E8="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",x8="SDK initialized on a non-allowed domain.";function k8(e,t,n=typeof location<"u"?location.origin:""){const r=e.allowedTrackingOrigins;if(!r)return S8(n,t)?(St.error(E8),!1):!0;const o=b8(r,n);return o||St.error(x8),o}const T8="datad0g.com",C8="dd0g-gov.com",Ci="datadoghq.com",A8="ddog-gov.com",I8="pci.browser-intake-datadoghq.com",O8=["ddsource","dd-api-key","dd-request-id"];function bs(e,t,n){const r=R8(e,t);return{build(o,s){const i=P8(e,t,o,s,n);return r(i)},trackType:t}}function R8(e,t){const n=`/api/v2/${t}`,r=e.proxy;if(typeof r=="string"){const s=Ty(r);return i=>`${s}?ddforward=${encodeURIComponent(`${n}?${i}`)}`}if(typeof r=="function")return s=>r({path:n,parameters:s});const o=L8(t,e);return s=>`https://${o}${n}?${s}`}function L8(e,t){const{site:n=Ci,internalAnalyticsSubdomain:r}=t;if(e==="logs"&&t.usePciIntake&&n===Ci)return I8;if(r&&n===Ci)return`${r}.${Ci}`;if(n===C8)return`http-intake.logs.${n}`;const o=n.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function P8({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},r,o,{retry:s,encoding:i},a=[]){const l=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.23.0")}`,"dd-evp-origin=browser",`dd-request-id=${Zo()}`].concat(a);return i&&l.push(`dd-evp-encoding=${i}`),r==="rum"&&(l.push(`batch_time=${vo()}`,`_dd.api=${o}`),s&&l.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}function N8(e){const t=e.site||Ci,n=M8(e.source),r=D8({...e,site:t,source:n});return{replica:$8({...e,site:t,source:n}),site:t,source:n,...r}}function M8(e){return e==="flutter"||e==="unity"?e:"browser"}function D8(e){return{logsEndpointBuilder:bs(e,"logs"),rumEndpointBuilder:bs(e,"rum"),profilingEndpointBuilder:bs(e,"profile"),sessionReplayEndpointBuilder:bs(e,"replay"),exposuresEndpointBuilder:bs(e,"exposures")}}function $8(e){if(!e.replica)return;const t={...e,site:Ci,clientToken:e.replica.clientToken};return{logsEndpointBuilder:bs(t,"logs"),rumEndpointBuilder:bs(t,"rum",[`application.id=${e.replica.applicationId}`])}}function F8(e){return O8.every(t=>e.includes(t))}function Jp(e,t){return e!=null&&typeof e!="string"?(St.error(`${t} must be defined as a string`),!1):!0}function U8(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(St.error(`Site should be a valid Datadog site. ${Sy} ${wy}/getting_started/site/.`),!1):!0}function pu(e,t){return e!==void 0&&!vz(e)?(St.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function j8(e,t){var n,r,o,s,i,a,l,c,u,f;if(!e||!e.clientToken){St.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){St.error("Allowed Tracking Origins must be an array");return}if(!(!U8(e.site)||!pu(e.sessionSampleRate,"Session")||!pu(e.telemetrySampleRate,"Telemetry")||!pu(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!pu(e.telemetryUsageSampleRate,"Telemetry Usage")||!Jp(e.version,"Version")||!Jp(e.env,"Env")||!Jp(e.service,"Service")||!k8(e,t??""))){if(e.trackingConsent!==void 0&&!kC(zg,e.trackingConsent)){St.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&vC(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:qs?void 0:m8(e),sessionSampleRate:(n=e.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(r=e.telemetrySampleRate)!==null&&r!==void 0?r: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:zg.GRANTED,trackAnonymousUser:(f=e.trackAnonymousUser)!==null&&f!==void 0?f:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,batchBytesLimit:16*ea,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:30*_a,batchMessagesLimit:qs?1:50,messageBytesLimit:256*ea,variant:e.variant,sdkVersion:e.sdkVersion,...N8(e)}}}function B8(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 sa="?";function va(e){var t,n;const r=[];let o=Qp(e,"stack");const s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(` `).forEach(i=>{const a=W8(i)||G8(i)||K8(i)||X8(i);a&&(!a.func&&a.line&&(a.func=sa),r.push(a))}),r.length>0&&t6()&&e instanceof Error){const i=[];let a=e;for(;(a=Object.getPrototypeOf(a))&&qC(a);){const l=((t=a.constructor)===null||t===void 0?void 0:t.name)||sa;i.push(l)}for(let l=i.length-1;l>=0&&((n=r[0])===null||n===void 0?void 0:n.func)===i[l];l--)r.shift()}return{message:Qp(e,"message"),name:Qp(e,"name"),stack:r}}const GC="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",ia="(?::(\\d+))",H8=new RegExp(`^\\s*at (.*?) ?\\(${GC}${ia}?${ia}?\\)?\\s*$`,"i"),V8=new RegExp(`\\((\\S*)${ia}${ia}\\)`);function W8(e){const t=H8.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,o=V8.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||sa,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const z8=new RegExp(`^\\s*at ?${GC}${ia}?${ia}??\\s*$`,"i");function G8(e){const t=z8.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:sa,line:t[2]?+t[2]:void 0,url:t[1]}}const q8=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function K8(e){const t=q8.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||sa,line:+t[3],url:t[2]}}const Y8=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,Z8=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function X8(e){const t=Y8.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=Z8.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||sa,line:t[4]?+t[4]:void 0,url:t[3]}}function Qp(e,t){if(typeof e!="object"||!e||!(t in e))return;const n=e[t];return typeof n=="string"?n:void 0}function J8(e,t,n,r){if(t===void 0)return;const{name:o,message:s}=e6(e);return{name:o,message:s,stack:[{url:t,column:r,line:n}]}}const Q8=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function e6(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=Q8.exec(e)),{name:t,message:n}}function qC(e){return String(e.constructor).startsWith("class ")}let hu;function t6(){if(hu!==void 0)return hu;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return hu=qC(Object.getPrototypeOf(t))&&n.stack!==t.stack,hu}function jd(e){const n=new Error(e);n.name="HandlingStack";let r;return na(()=>{const o=va(n);o.stack=o.stack.slice(2),r=ba(o)}),r}function ba(e){let t=KC(e);return e.stack.forEach(n=>{const r=n.func==="?"?"":n.func,o=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",s=n.line?`:${n.line}`:"",i=n.line&&n.column?`:${n.column}`:"";t+=` at ${r}${o} @ ${n.url}${s}${i}`}),t}function KC(e){return`${e.name||"Error"}: ${e.message}`}function Os(e,t,n,{computeHandlingStack:r}={}){let o=e[t];if(typeof o!="function")if(t in e&&t.startsWith("on"))o=Yo;else return{stop:Yo};let s=!1;const i=function(){if(s)return o.apply(this,arguments);const a=Array.from(arguments);let l;na(n,null,[{target:this,parameters:a,onPostCall:u=>{l=u},handlingStack:r?jd("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 Cc(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=Ai(Object.prototype),o=Ai(Array.prototype),s=Ai(Object.getPrototypeOf(e)),i=Ai(e);try{return JSON.stringify(e,t,n)}catch{return""}finally{r(),o(),s(),i()}}function Ai(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Yo}const n6=220*ea,r6="$",o6=3;function ho(e,t=n6){const n=Ai(Object.prototype),r=Ai(Array.prototype),o=[],s=new WeakMap,i=eh(e,r6,void 0,o,s),a=JSON.stringify(i);let l=a?a.length:0;if(l>t){th(t,"discarded",e);return}for(;o.length>0&&lt){th(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=eh(c.source[f],c.path,f,o,s);if(d!==void 0&&(l+=JSON.stringify(d).length+u+f.length+o6,u=1),l>t){th(t,"truncated",e);break}c.target[f]=d}}return n(),r(),i}function eh(e,t,n,r,o){const s=a6(e);if(!s||typeof s!="object")return s6(s);const i=Gg(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=n!==void 0?`${t}.${n}`:t,c=Array.isArray(s)?[]:{};return o.set(a,l),r.push({source:s,target:c,path:l}),c}function s6(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 Gg(e){try{if(e instanceof Event)return i6(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function i6(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?Gg(e.currentTarget):null,target:e.target?Gg(e.target):null}}function a6(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function th(e,t,n){St.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const YC="No stack, consider using an instance of Error";function Oy({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:s,useFallbackStack:i=!0,source:a,handling:l}){const c=ri(t);return!e&&c&&(e=va(t)),{startClocks:o,source:a,handling:l,handlingStack:n,componentStack:r,originalError:t,type:e?e.name:void 0,message:l6(e,c,s,t),stack:e?ba(e):i?YC:void 0,causes:c?d6(t,a):void 0,fingerprint:c6(t),context:u6(t)}}function l6(e,t,n,r){return e!=null&&e.message&&(e!=null&&e.name)?e.message:t?"Empty message":`${n} ${Cc(ho(r))}`}function c6(e){return ri(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function u6(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function f6(e){var t;return(t=/@ (.+)/.exec(e))===null||t===void 0?void 0:t[1]}function ri(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function d6(e,t){let n=e;const r=[];for(;ri(n==null?void 0:n.cause)&&r.length<10;){const o=va(n.cause);r.push({message:n.cause.message,source:t,type:o==null?void 0:o.name,stack:o&&ba(o)}),n=n.cause}return r.length?r:void 0}const Un={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function p6(){return new Et(e=>{const t=(o,s)=>{const i=Oy({stackTrace:s,originalError:o,startClocks:Ur(),nonErrorPrefix:"Uncaught",source:Un.SOURCE,handling:"unhandled"});e.notify(i)},{stop:n}=h6(t),{stop:r}=g6(t);return()=>{n(),r()}})}function h6(e){return Os(br(),"onerror",({parameters:[t,n,r,o,s]})=>{let i;ri(s)||(i=J8(t,n,r,o)),e(s??t,i)})}function g6(e){return Os(br(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function m6(e){const t={version:"6.23.0",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return Iz},enumerable:!1}),t}function y6(e,t,n){const r=e[t];r&&!r.q&&r.version&&St.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(o=>vC(o,"onReady callback threw an error:")())}function ZC(e,t){t.silentMultipleInit||St.error(`${e} is already initialized.`)}function oi(e,t,n,r,o){return Ry(e,t,[n],r,o)}function Ry(e,t,n,r,{once:o,capture:s,passive:i}={}){const a=wt(d=>{!d.isTrusted&&!d.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&f(),r(d))}),l=i?{capture:s,passive:i}:s,c=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,u=ta(c,"addEventListener");n.forEach(d=>u.call(t,d,a,l));function f(){const d=ta(c,"removeEventListener");n.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 n=[];t.includes(Uf.cspViolation)&&n.push(b6(e));const r=t.filter(o=>o!==Uf.cspViolation);return r.length&&n.push(v6(r)),IC(...n)}function v6(e){return new Et(t=>{if(!window.ReportingObserver)return;const n=wt((o,s)=>o.forEach(i=>t.notify(w6(i)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function b6(e){return new Et(t=>{const{stop:n}=oi(e,document,"securitypolicyviolation",r=>{t.notify(S6(r))});return n})}function w6(e){const{type:t,body:n}=e;return XC({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:JC(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function S6(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return XC({type:e.effectiveDirective,message:`${Uf.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:JC(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${Mz(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function XC(e){return{startClocks:Ur(),source:Un.REPORT,handling:"unhandled",...e}}function JC(e,t,n,r,o){return n?ba({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}const E6=200;function QC(e){const{env:t,service:n,version:r,datacenter:o,sdkVersion:s,variant:i}=e,a=[gs("sdk_version",s??"6.23.0")];return t&&a.push(gs("env",t)),n&&a.push(gs("service",n)),r&&a.push(gs("version",r)),o&&a.push(gs("datacenter",o)),i&&a.push(gs("variant",i)),a}function gs(e,t){const n=t?`${e}:${t}`:e;return(n.length>E6||x6(n))&&St.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${Sy} ${wy}/getting_started/tagging/#defining-tags`),eA(n)}function eA(e){return e.replace(/,/g,"_")}function x6(e){return k6()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function k6(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function tA(e,t){const n=mr.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function jf(e,t,n=T6()){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(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let s=0;s=0;return n||e.push(t),n}}}function C6(){var e;const t=mr.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 rA(e){return e>=500}function A6(e){try{return e.clone()}catch{return}}const I6=80*ea,O6=32,oA=20*EC,R6=as,sA=_a;function iA(e,t,n,r,o,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?lA(e,t,n,s,{onSuccess:()=>cA(0,t,n,r,o,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),aA(t,n,r,o,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function aA(e,t,n,r,o){e.transportStatus===2&&Tc(()=>{const s=e.queuedPayloads.first();lA(s,e,t,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=sA,cA(1,e,t,n,r,o)},onFailure:()=>{e.currentBackoffTime=Math.min(R6,e.currentBackoffTime*2),aA(e,t,n,r,o)}})},e.currentBackoffTime)}function lA(e,t,n,r,{onSuccess:o,onFailure:s}){t.bandwidthMonitor.add(e),n(e,i=>{t.bandwidthMonitor.remove(e),L6(i)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:i.status},r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function cA(e,t,n,r,o,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${r} events size queued for upload: ${oA/EC}MiB`,source:Un.AGENT,startClocks:Ur()}),t.queueFullReported=!0);const i=t.queuedPayloads;for(t.queuedPayloads=uA();i.size()>0;)iA(i.dequeue(),t,n,r,o,s)}function L6(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||rA(e.status))}function P6(){return{transportStatus:0,currentBackoffTime:sA,bandwidthMonitor:N6(),queuedPayloads:uA(),queueFullReported:!1}}function uA(){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>=oA}}}function N6(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=I6&&this.ongoingRequestCount{for(const i of e)iA(s,o,(a,l)=>{$d(Ks.AVOID_FETCH_KEEPALIVE)?Bf(i,a,l):$6(i,t,a,l)},i.trackType,n,r)},sendOnExit:s=>{for(const i of e)M6(i,t,s)}}}function M6(e,t,n){if(!!navigator.sendBeacon&&n.bytesCountr==null?void 0:r({status:i.status,type:i.type}))).catch(wt(()=>Bf(e,n,r)))}else Bf(e,n,r)}function Bf(e,t,n){const r=e.build("fetch",t);fetch(r,{method:"POST",body:t.data,mode:"cors"}).then(wt(o=>n==null?void 0:n({status:o.status,type:o.type}))).catch(wt(()=>n==null?void 0:n({status:0})))}function F6(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Ly(){const e=U6();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,n,r){const o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function Hf(e){var t;e===void 0&&(e=(t=br().location)===null||t===void 0?void 0:t.hostname);const n=Ly();return!!n&&n.getAllowedWebViewHosts().some(r=>e===r||e.endsWith(`.${r}`))}function U6(){return br().DatadogEventBridge}const Mu={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function j6(e){return new Et(t=>{const{stop:n}=Ry(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}),r=oi(e,window,"beforeunload",()=>{t.notify({reason:Mu.UNLOADING})}).stop;return()=>{n(),r()}})}function B6(e){return Ff(Mu).includes(e)}function dA({encoder:e,request:t,flushController:n,messageBytesLimit:r}){let o={};const s=n.flushObservable.subscribe(f=>u(f));function i(f,d,p){n.notifyBeforeAddMessage(d),p!==void 0?(o[p]=f,n.notifyAfterAddMessage()):e.write(e.isEmpty?f:` ${f}`,g=>{n.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);n.notifyAfterRemoveMessage(p)}function c(f,d){const p=Cc(f),g=e.estimateEncodedBytesCount(p);if(g>=r){St.warn(`Discarded a message whose size was bigger than the maximum allowed size ${r}KB. ${Sy} ${_z}/#technical-limitations`);return}a(d)&&l(d),i(p,g,d)}function u(f){const d=Ff(o).join(` `);o={};const p=B6(f.reason),g=p?t.sendOnExit:t.send;if(p&&e.isAsync){const h=e.finishSync();h.outputBytesCount&&g(cw(h));const y=[h.pendingData,d].filter(Boolean).join(` `);y&&g({data:y,bytesCount:xC(y)})}else d&&e.write(e.isEmpty?d:` ${d}`),e.finish(h=>{g(cw(h))})}return{flushController:n,add:c,upsert:c,stop:s.unsubscribe}}function cw(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 pA({messagesLimit:e,bytesLimit:t,durationLimit:n,pageMayExitObservable:r,sessionExpireObservable:o}){const s=r.subscribe(g=>u(g.reason)),i=o.subscribe(()=>u("session_expire")),a=new Et(()=>()=>{s.unsubscribe(),i.unsubscribe()});let l=0,c=0;function u(g){if(c===0)return;const h=c,y=l;c=0,l=0,p(),a.notify({reason:g,messagesCount:h,bytesCount:y})}let f;function d(){f===void 0&&(f=Tc(()=>{u("duration_limit")},n))}function p(){CC(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 aa="DISCARDED",Zs="SKIPPED";function H6(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const r=e[t]||[],o=[];for(const s of r){const i=s(n);if(i===aa)return aa;i!==Zs&&o.push(i)}return Ys(...o)}}}const Rs={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},V6=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],W6=1,z6=[A8];let nh;function Ac(){return nh||(nh=new OC(100)),nh}function G6(e,t,n,r,o,s){const i=new Et,{stop:a}=K6(t,r,o,s,i),{enabled:l,metricsEnabled:c}=q6(e,t,n,i);return{stop:a,enabled:l,metricsEnabled:c}}function q6(e,t,n,r,o=W6){const s={},i=!z6.includes(t.site)&&tl(t.telemetrySampleRate),a={[Rs.LOG]:i,[Rs.CONFIGURATION]:i&&tl(t.telemetryConfigurationSampleRate),[Rs.USAGE]:i&&tl(t.telemetryUsageSampleRate),metric:i&&tl(o)},l=Y6(),c=Ac();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=Cc(f);if(g.has(h))return;const y=n.triggerHook(1,{startTime:Ur().relative});if(y===aa)return;const m=u(y,e,f,l);r.notify(m),tA("telemetry",m),g.add(h)}),c.unbuffer(),Az(X6),{enabled:i,metricsEnabled:a.metric};function u(f,d,p,g){const y={type:"telemetry",date:Ur().timeStamp,service:d,version:"6.23.0",source:"browser",_dd:{format_version:2},telemetry:Ys(p,{runtime_env:g,connectivity:C6(),sdk_setup:"npm"}),ddtags:QC(t).join(","),experimental_features:Array.from(Fz())};return Ys(y,f)}}function K6(e,t,n,r,o){const s=[];if(Hf()){const i=Ly(),a=o.subscribe(l=>i.send("internal_telemetry",l));s.push(a.unsubscribe)}else{const i=[e.rumEndpointBuilder];e.replica&&Z6(e)&&i.push(e.replica.rumEndpointBuilder);const a=dA({encoder:r(4),request:fA(i,e.batchBytesLimit,t),flushController:pA({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:n,sessionExpireObservable:new Et}),messageBytesLimit:e.messageBytesLimit});s.push(a.stop);const l=o.subscribe(a.add);s.push(l.unsubscribe)}return{stop:()=>s.forEach(i=>i())}}function Y6(){var e;return{is_local_file:((e=mr.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:qs}}function Z6(e){return e.site===T8}function Py(e,t){Vg(Rt.debug,e,t),Ac().notify({rawEvent:{type:Rs.LOG,message:e,status:"debug",...t}})}function X6(e,t){Ac().notify({rawEvent:{type:Rs.LOG,status:"error",...eG(e),...t}})}function J6(e){Ac().notify({rawEvent:{type:Rs.CONFIGURATION,configuration:e}})}function Q6(e){Ac().notify({rawEvent:{type:Rs.USAGE,usage:e}})}function eG(e){if(ri(e)){const t=va(e);return{error:{kind:t.name,stack:ba(tG(t))},message:t.message}}return{error:{stack:YC},message:`Uncaught ${Cc(e)}`}}function tG(e){return e.stack=e.stack.filter(t=>!t.url||V6.some(n=>t.url.startsWith(n))),e}function nG(e){const t=new Set;return e.forEach(n=>t.add(n)),Array.from(t)}function hA(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}const gu=1/0,rG=as;let Ka=null;const Du=new Set;function oG(){Du.forEach(e=>e())}function sG({expireDelay:e,maxEntries:t}){let n=[];Ka||(Ka=xy(()=>oG(),rG));const r=()=>{const u=Df()-e;for(;n.length>0&&n[n.length-1].endTime{hA(n,d)},close:p=>{d.endTime=p}};return t&&n.length>=t&&n.pop(),n.unshift(d),d}function s(u=gu,f={returnInactive:!1}){for(const d of n)if(d.startTime<=u){if(f.returnInactive||u<=d.endTime)return d.value;break}}function i(u){const f=n[0];f&&f.endTime===gu&&f.close(u)}function a(u=gu,f=0){const d=xz(u,f);return n.filter(p=>p.startTime<=d&&u<=p.endTime).map(p=>p.value)}function l(){n=[]}function c(){Du.delete(r),Du.size===0&&Ka&&(AC(Ka),Ka=null)}return{add:o,find:s,closeActive:i,findAll:a,reset:l,stop:c}}const iG="datadog-synthetics-public-id",aG="datadog-synthetics-result-id",lG="datadog-synthetics-injects-rum";function gA(){return qs?!1:!!(mr._DATADOG_SYNTHETICS_INJECTS_RUM||xs(lG))}function cG(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||xs(iG);return typeof e=="string"?e:void 0}function uG(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||xs(aG);return typeof e=="string"?e:void 0}function fG(){return!!(cG()&&uG())}const dG=as,pG=Ay;function hG(e,t,n,r){const o=new Et,s=new Et,i=_8(e.sessionStoreStrategyType,e,t,n),a=sG({expireDelay:pG});if(i.renewObservable.subscribe(()=>{a.add(l(),Df()),o.notify()}),i.expireObservable.subscribe(()=>{s.notify(),a.closeActive(Df())}),i.expandOrRenewSession(),a.add(l(),Ez().relative),$d(Ks.SHORT_SESSION_INVESTIGATION)){const c=i.getSession();c&&vG(e,c)}r.observable.subscribe(()=>{r.isGranted()?i.expandOrRenewSession():i.expire(!1)}),gG(e,()=>{r.isGranted()&&i.expandOrRenewSession()}),mG(e,()=>i.expandSession()),yG(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:MC,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 gG(e,t){const{stop:n}=Ry(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function mG(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:r}=oi(e,document,"visibilitychange",n);xy(n,dG)}function yG(e,t){const{stop:n}=oi(e,window,"resume",t,{capture:!0})}async function _G(e){const t=e.sessionStoreStrategyType;if(!t)return;let n,r;t.type===oa.COOKIE?(n=UC(t.cookieOptions),r={cookie:await mA(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=HC(),Py("Unexpected session state",{sessionStoreStrategyType:t.type,session:n,isSyntheticsTest:fG(),createdTimestamp:n==null?void 0:n.created,expireTimestamp:n==null?void 0:n.expire,...r})}function vG(e,t){if(!window.cookieStore||!t.created)return;const n=Number(t.created),r=Bo(),{stop:o}=oi(e,cookieStore,"change",s);function s(i){const a=Gz(i.changed,c=>c.name===po);if(!a)return;const l=Bo()-n;if(l>14*as)o();else{const c=Ud(a.value);if(c.id&&c.id!==t.id){o();const u=Bo()-r;mA().then(f=>{Py("Session cookie changed",{time:u,session_age:l,old:t,new:c,cookie:f})}).catch(Ey)}}}}async function mA(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(po):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(po)),{count:e.length,domain:PC()||"undefined",...e}}function yA(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const o=xC(n);t+=o,e+=n,r&&r(o)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}class bG{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(o=>o(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}function wG(e,t,n){let r=0,o=!1;return{isLimitReached(){if(r===0&&Tc(()=>{r=0},as),r+=1,r<=t||o)return o=!1,!1;if(r===t+1){o=!0;try{n({message:`Reached max number of ${e}s by minute: ${t}`,source:Un.AGENT,startClocks:Ur()})}finally{o=!1}}return!0}}}let rh;const Ny=new WeakMap;function SG(e){return rh||(rh=EG(e)),rh}function EG(e){return new Et(t=>{const{stop:n}=Os(XMLHttpRequest.prototype,"open",xG),{stop:r}=Os(XMLHttpRequest.prototype,"send",s=>{kG(s,e,t)},{computeHandlingStack:!0}),{stop:o}=Os(XMLHttpRequest.prototype,"abort",TG);return()=>{n(),r(),o()}})}function xG({target:e,parameters:[t,n]}){Ny.set(e,{state:"open",method:String(t).toUpperCase(),url:Ty(String(n))})}function kG({target:e,parameters:[t],handlingStack:n},r,o){const s=Ny.get(e);if(!s)return;const i=s;i.state="start",i.startClocks=Ur(),i.isAborted=!1,i.xhr=e,i.handlingStack=n,i.body=t;let a=!1;const{stop:l}=Os(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{if(u(),l(),a)return;a=!0;const f=s;f.state="complete",f.duration=wC(i.startClocks.timeStamp,vo()),f.status=e.status,o.notify(Cz(f))},{stop:u}=oi(r,e,"loadend",c);o.notify(i)}function TG({target:e}){const t=Ny.get(e);t&&(t.isAborted=!0)}let oh;function _A(){return oh||(oh=CG()),oh}function CG(){return new Et(e=>{if(!mr.fetch)return;const{stop:t}=Os(mr,"fetch",n=>AG(n,e),{computeHandlingStack:!0});return t})}function AG({parameters:e,onPostCall:t,handlingStack:n},r){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:Ty(String(o)),c=Ur(),u={state:"start",init:s,input:o,method:a,startClocks:c,url:l,handlingStack:n};r.notify(u),e[0]=u.input,e[1]=u.init,t(f=>IG(r,f,u))}function IG(e,t,n){const r=n;function o(s){r.state="resolve",Object.assign(r,s),e.notify(r)}t.then(wt(s=>{o({response:s,responseType:s.type,status:s.status,isAborted:!1})}),wt(s=>{var i,a;o({status:0,isAborted:((a=(i=r.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 sh={};function OG(e){const t=e.map(n=>(sh[n]||(sh[n]=RG(n)),sh[n]));return IC(...t)}function RG(e){return new Et(t=>{const n=Rr[e];return Rr[e]=(...r)=>{n.apply(console,r);const o=jd("console error");na(()=>{t.notify(LG(r,e,o))})},()=>{Rr[e]=n}})}function LG(e,t,n){const r=e.map(o=>PG(o)).join(" ");if(t===Rt.error){const o=e.find(ri),s=Oy({originalError:o,handlingStack:n,startClocks:Ur(),source:Un.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:t,message:r,handlingStack:n,error:s}}return{api:t,message:r,error:void 0,handlingStack:n}}function PG(e){return typeof e=="string"?ho(e):ri(e)?KC(va(e)):Cc(ho(e),void 0,2)}const NG=500;function MG(){const e=[];return{add:o=>{e.push(o)>NG&&e.splice(0,1)},remove:o=>{hA(e,o)},drain:o=>{e.forEach(s=>s(o)),e.length=0}}}function DG(e){const t=zC(e)==="object";return t||St.error("Unsupported context:",e),t}function ih(e,t,n){const r={...e};for(const[o,{required:s,type:i}]of Object.entries(t))i==="string"&&!uw(r[o])&&(r[o]=String(r[o])),s&&uw(r[o])&&St.warn(`The property ${o} of ${n} is required; context will not be sent to the intake.`);return r}function uw(e){return e==null||e===""}function Bd(e="",{propertiesConfig:t={}}={}){let n={};const r=new Et,o={getContext:()=>nA(n),setContext:s=>{DG(s)?n=ho(ih(s,t,e)):o.clearContext(),r.notify()},setContextProperty:(s,i)=>{n=ho(ih({...n,[s]:i},t,e)),r.notify()},removeContextProperty:s=>{delete n[s],ih(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}function pn(e,t,n,r){return wt((...o)=>e()[t][n](...o))}function ah(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(o=>o[t].setContext(r))})}const $G="_dd_c",FG=[];function My(e,t,n,r){const o=UG(n,r);FG.push(oi(e,window,"storage",({key:c})=>{o===c&&i()})),t.changeObservable.subscribe(a);const s=Ys(l(),t.getContext());kc(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 UG(e,t){return`${$G}_${e}_${t}`}function jG(e,t,n){const r=vA();return t.storeContextsAcrossPages&&My(t,r,n,4),e.register(0,()=>{const o=r.getContext();return kc(o)||!o.id?Zs:{account:o}}),r}function vA(){return Bd("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function BG(e,t,n,r){const o=bA();return t.storeContextsAcrossPages&&My(t,o,n,2),e.register(0,()=>o.getContext()),o}function bA(){return Bd("global context")}function HG(e,t,n,r){const o=wA();return t.storeContextsAcrossPages&&My(t,o,r,1),e.register(0,({eventType:s,startTime:i})=>{const a=o.getContext(),l=n.findTrackedSession(i);return l&&l.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=l.anonymousId),kc(a)?Zs:{type:s,usr:a}}),e.register(1,({startTime:s})=>{var i;return{anonymous_id:(i=n.findTrackedSession(s))===null||i===void 0?void 0:i.anonymousId}}),o}function wA(){return Bd("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const Wt={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},hn={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"};function VG(e,t,n){const r=e.getReader(),o=[];let s=0;i();function i(){r.read().then(wt(l=>{if(l.done){a();return}o.push(l.value),s+=l.value.length,s>n.bytesLimit?a():i()}),wt(l=>t(l)))}function a(){r.cancel().catch(Yo);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,n.bytesLimit),c=u.length>n.bytesLimit}t(void 0,l,c)}}const fw={XHR:"xhr",FETCH:"fetch"},qg={FETCH:fw.FETCH,XHR:fw.XHR},WG=500;function zG(e=p6){const t=new OC(WG),n=e().subscribe(r=>{t.notify({type:0,error:r})});return{observable:t,stop:()=>{n.unsubscribe()}}}function Vf(e,t,n){const r=n.getHandler(),o=Array.isArray(r)?r:[r];return dw[e]>=dw[n.getLevel()]&&o.includes(t)}const ke={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},dw={[ke.ok]:0,[ke.debug]:1,[ke.info]:2,[ke.notice]:4,[ke.warn]:5,[ke.error]:6,[ke.critical]:7,[ke.alert]:8,[ke.emerg]:9};function Hd(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 GG=function(e,t,n,r){var o=arguments.length,s=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};const uc={console:"console",http:"http"},qG=Object.keys(ke);class Zn{constructor(t,n,r=uc.http,o=ke.debug,s={}){this.handleLogStrategy=t,this.handlerType=r,this.level=o,this.contextManager=Bd("logger"),this.tags=[],this.contextManager.setContext(s),n&&this.contextManager.setContextProperty("logger",{name:n})}logImplementation(t,n,r=ke.info,o,s){const i=ho(n);let a;if(o!=null){const l=Oy({originalError:o,nonErrorPrefix:"Provided",source:Un.LOGGER,handling:"handled",startClocks:Ur()});a=Ys({error:Hd(l,{includeMessage:!0})},l.context,i)}else a=i;this.handleLogStrategy({message:ho(t),context:a,status:r},this,s)}log(t,n,r=ke.info,o){let s;Vf(r,uc.http,this)&&(s=jd("log")),this.logImplementation(t,n,r,o,s)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,n){this.contextManager.setContextProperty(t,n)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,n){this.tags.push(gs(t,n))}removeTagsWithKey(t){const n=eA(t);this.tags=this.tags.filter(r=>r!==n&&!r.startsWith(`${n}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}}GG([Oz],Zn.prototype,"logImplementation",null);Zn.prototype.ok=bo(ke.ok);Zn.prototype.debug=bo(ke.debug);Zn.prototype.info=bo(ke.info);Zn.prototype.notice=bo(ke.notice);Zn.prototype.warn=bo(ke.warn);Zn.prototype.error=bo(ke.error);Zn.prototype.critical=bo(ke.critical);Zn.prototype.alert=bo(ke.alert);Zn.prototype.emerg=bo(ke.emerg);function bo(e){return function(t,n,r){let o;Vf(e,uc.http,this)&&(o=jd("log")),this.logImplementation(t,n,e,r,o)}}function pw(){return qs?{}:{view:{referrer:document.referrer,url:window.location.href}}}const KG=32*ea;function YG(e,t){e.usePciIntake===!0&&e.site&&e.site!=="datadoghq.com"&&St.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");const n=j8(e,t),r=hw(e.forwardConsoleLogs,Ff(Rt),"Forward Console Logs"),o=hw(e.forwardReports,Ff(Uf),"Forward Reports");if(!(!n||!r||!o))return e.forwardErrorsToLogs&&!r.includes(Rt.error)&&r.push(Rt.error),{forwardErrorsToLogs:e.forwardErrorsToLogs!==!1,forwardConsoleLogs:r,forwardReports:o,requestErrorResponseLengthLimit:KG,...n}}function hw(e,t,n){if(e===void 0)return[];if(!(e==="all"||Array.isArray(e)&&e.every(r=>t.includes(r)))){St.error(`${n} should be "all" or an array with allowed values "${t.join('", "')}"`);return}return e==="all"?t:nG(e)}function ZG(e){const t=B8(e);return{forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake,...t}}function XG(e,t,n){const r=MG(),o=bA();ah(o,Wt.globalContext,r);const s=vA();ah(s,Wt.accountContext,r);const i=wA();ah(i,Wt.userContext,r);let a,l;const c=t.observable.subscribe(u);function u(){if(!l||!a||!t.isGranted())return;c.unsubscribe();const f=n(a,l);r.drain(f)}return{init(f,d){if(!f){St.error("Missing configuration");return}if(Dz(f.enableExperimentalFeatures),Hf()&&(f=JG(f)),a=f,J6(ZG(f)),l){ZC("DD_LOGS",f);return}const p=YG(f,d);p&&(l=p,_A().subscribe(Yo),t.tryToInit(p.trackingConsent),u())},get initConfiguration(){return a},globalContext:o,accountContext:s,userContext:i,getInternalContext:Yo,handleLog(f,d,p,g=e(),h=vo()){r.add(y=>y.handleLog(f,d,p,g,h))}}}function JG(e){return{...e,clientToken:"empty"}}function QG(e){const t=v8(),n=zG().observable;let r=XG(pw,t,(a,l)=>{const c=e(l,pw,t,n);return r=eq(a,c),c});const o=()=>r,s={},i=new Zn((...a)=>r.handleLog(...a));return m6({logger:i,init:a=>{const l=new Error().stack;na(()=>r.init(a,l))},setTrackingConsent:wt(a=>{t.update(a),Q6({feature:"set-tracking-consent",tracking_consent:a})}),getGlobalContext:pn(o,Wt.globalContext,hn.getContext),setGlobalContext:pn(o,Wt.globalContext,hn.setContext),setGlobalContextProperty:pn(o,Wt.globalContext,hn.setContextProperty),removeGlobalContextProperty:pn(o,Wt.globalContext,hn.removeContextProperty),clearGlobalContext:pn(o,Wt.globalContext,hn.clearContext),createLogger:wt((a,l={})=>(s[a]=new Zn((...c)=>r.handleLog(...c),ho(a),l.handler,l.level,ho(l.context)),s[a])),getLogger:wt(a=>s[a]),getInitConfiguration:wt(()=>nA(r.initConfiguration)),getInternalContext:wt(a=>r.getInternalContext(a)),setUser:pn(o,Wt.userContext,hn.setContext),getUser:pn(o,Wt.userContext,hn.getContext),setUserProperty:pn(o,Wt.userContext,hn.setContextProperty),removeUserProperty:pn(o,Wt.userContext,hn.removeContextProperty),clearUser:pn(o,Wt.userContext,hn.clearContext),setAccount:pn(o,Wt.accountContext,hn.setContext),getAccount:pn(o,Wt.accountContext,hn.getContext),setAccountProperty:pn(o,Wt.accountContext,hn.setContextProperty),removeAccountProperty:pn(o,Wt.accountContext,hn.removeContextProperty),clearAccount:pn(o,Wt.accountContext,hn.clearContext)})}function eq(e,t){return{init:n=>{ZC("DD_LOGS",n)},initConfiguration:e,...t}}const tq="logs";function nq(e,t){const n=hG(e,tq,r=>SA(e,r),t);return{findTrackedSession:(r,o={returnInactive:!1})=>{const s=n.findSession(r,o);return s&&s.trackingType==="1"?{id:s.id,anonymousId:s.anonymousId}:void 0},expireObservable:n.expireObservable}}function rq(e){const n=SA(e)==="1"?{}:void 0;return{findTrackedSession:()=>n,expireObservable:new Et}}function SA(e,t){return oq(t)?t:tl(e.sessionSampleRate)?"1":"0"}function oq(e){return e==="0"||e==="1"}function sq(e,t,n,r,o){const s=qG.concat(["custom"]),i={};s.forEach(a=>{i[a]=wG(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=kz(a.date),h=c||r(),y=n.triggerHook(0,{startTime:g});if(y===aa)return;const m=QC(e),b=Ys({view:h.view},y,a,l,{ddtags:m.concat(f).join(",")});((d=e.beforeSend)===null||d===void 0?void 0:d.call(e,b,u))===!1||b.origin!==Un.AGENT&&((p=i[b.status])!==null&&p!==void 0?p:i.custom).isLimitReached()||t.notify(1,b)})}const iq={[Rt.log]:ke.info,[Rt.debug]:ke.debug,[Rt.info]:ke.info,[Rt.warn]:ke.warn,[Rt.error]:ke.error};function aq(e,t){const n=OG(e.forwardConsoleLogs).subscribe(r=>{var o;const s={rawLogsEvent:{date:vo(),message:r.message,origin:Un.CONSOLE,error:r.error&&Hd(r.error),status:iq[r.api]},messageContext:(o=r.error)===null||o===void 0?void 0:o.context,domainContext:{handlingStack:r.handlingStack}};t.notify(0,s)});return{stop:()=>{n.unsubscribe()}}}function lq(e,t){const n=_6(e,e.forwardReports).subscribe(r=>{let o=r.message,s;const i=r.originalError.type==="deprecation"?ke.warn:ke.error;i===ke.error?s=Hd(r):r.stack&&(o+=` Found in ${f6(r.stack)}`),t.notify(0,{rawLogsEvent:{date:vo(),message:o,origin:Un.REPORT,error:s,status:i}})});return{stop:()=>{n.unsubscribe()}}}function cq(e,t){if(!e.forwardErrorsToLogs)return{stop:Yo};const n=(qs?new Et:SG(e)).subscribe(s=>{s.state==="complete"&&o(qg.XHR,s)}),r=_A().subscribe(s=>{s.state==="resolve"&&o(qg.FETCH,s)});function o(s,i){!F8(i.url)&&(pq(i)||rA(i.status))&&("xhr"in i?uq(i.xhr,e,a):i.response?dq(i.response,e,a):i.error&&fq(i.error,e,a));function a(l){const c={isAborted:i.isAborted,handlingStack:i.handlingStack};t.notify(0,{rawLogsEvent:{message:`${hq(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:ke.error,origin:Un.NETWORK},domainContext:c})}}return{stop:()=>{n.unsubscribe(),r.unsubscribe()}}}function uq(e,t,n){typeof e.response=="string"?n(Dy(e.response,t)):n(e.response)}function fq(e,t,n){n(Dy(ba(va(e)),t))}function dq(e,t,n){const r=A6(e);!r||!r.body?n():window.TextDecoder?gq(r.body,t.requestErrorResponseLengthLimit,(o,s)=>{n(o?`Unable to retrieve response: ${o}`:s)}):r.text().then(wt(o=>n(Dy(o,t))),wt(o=>n(`Unable to retrieve response: ${o}`)))}function pq(e){return e.status===0&&e.responseType!=="opaque"}function Dy(e,t){return e.length>t.requestErrorResponseLengthLimit?`${e.substring(0,t.requestErrorResponseLengthLimit)}...`:e}function hq(e){return qg.XHR===e?"XHR":"Fetch"}function gq(e,t,n){VG(e,(r,o,s)=>{if(r)n(r);else{let i=new TextDecoder().decode(o);s&&(i+="..."),n(void 0,i)}},{bytesLimit:t})}function mq(e,t,n){if(!e.forwardErrorsToLogs)return{stop:Yo};const r=n.subscribe(o=>{if(o.type===0){const s=o.error;t.notify(0,{rawLogsEvent:{message:s.message,date:s.startClocks.timeStamp,error:Hd(s),origin:Un.SOURCE,status:ke.error},messageContext:s.context})}});return{stop:()=>{r.unsubscribe()}}}const yq=bG;function _q(e){function t(n,r,o,s,i){const a=Ys(r.getContext(),n.context);if(Vf(n.status,uc.console,r)&&bq(n,a),Vf(n.status,uc.http,r)){const l={rawLogsEvent:{date:i||vo(),message:n.message,status:n.status,origin:Un.LOGGER},messageContext:a,savedCommonContext:s,ddtags:r.getTags()};o&&(l.domainContext={handlingStack:o}),e.notify(0,l)}}return{handleLog:t}}const vq={[ke.ok]:Rt.debug,[ke.debug]:Rt.debug,[ke.info]:Rt.info,[ke.notice]:Rt.info,[ke.warn]:Rt.warn,[ke.error]:Rt.error,[ke.critical]:Rt.error,[ke.alert]:Rt.error,[ke.emerg]:Rt.error};function bq({status:e,message:t},n){ys[vq[e]].call(Rr,t,n)}function wq(e,t,n,r,o){const s=[e.logsEndpointBuilder];e.replica&&s.push(e.replica.logsEndpointBuilder);const i=dA({encoder:yA(),request:fA(s,e.batchBytesLimit,n),flushController:pA({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:r,sessionExpireObservable:o.expireObservable}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(1,a=>{i.add(a)}),i}function Sq(e){const t=Ly();e.subscribe(1,n=>{t.send("log",n)})}function Eq(e){return{get:t=>{const n=e.findTrackedSession(t);if(n)return{session_id:n.id}}}}function xq(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:Un.AGENT,status:ke.error}}),Py("Error reported to customer",{"error.message":t.message})}}const kq=H6;function Tq(e){const t=mr;e.register(0,({startTime:o})=>{const s=n(o);return s||Zs}),e.register(1,({startTime:o})=>{var s,i;const a=n(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}}:Zs});function n(o){const i=gA()?t.DD_RUM_SYNTHETICS:t.DD_RUM,a=r(o,i);if(a)return a}function r(o,s){if(s&&s.getInternalContext)return s.getInternalContext(o)}}function Cq(e,t,n){e.register(0,({startTime:r})=>{const o=n.findTrackedSession(r);return n.findTrackedSession(r,{returnInactive:!0})?{service:t.service,session_id:o?o.id:void 0,session:o?{id:o.id}:void 0}:aa}),e.register(1,({startTime:r})=>{const o=n.findTrackedSession(r);return!o||!o.id?Zs:{session:{id:o.id}}})}function Aq(e,t){function n(){return t.isGranted()?Zs:aa}e.register(0,n),e.register(1,n)}const lh="logs";function Iq(e,t,n,r){const o=new yq,s=kq(),i=[];o.subscribe(1,y=>tA("logs",y));const a=xq(o),l=qs?new Et:j6(e),c=G6("browser-logs-sdk",e,s,a,l,yA);i.push(c.stop);const u=e.sessionStoreStrategyType&&!Hf()&&!gA()?nq(e,n):rq(e);Aq(s,n),Cq(s,e,u);const f=jG(s,e,lh),d=HG(s,e,u,lh),p=BG(s,e,lh);Tq(s),cq(e,o),mq(e,o,r),r.unbuffer(),aq(e,o),lq(e,o);const{handleLog:g}=_q(o);if(sq(e,o,s,t,a),Hf())Sq(o);else{const{stop:y}=wq(e,o,a,l,u);i.push(()=>y())}const h=Eq(u);return{handleLog:g,getInternalContext:h.get,accountContext:f,globalContext:p,userContext:d,stop:()=>{i.forEach(y=>y())}}}const Kg=QG(Iq);y6(br(),"DD_LOGS",Kg);function Oq(e){cm(()=>{const t=it(),n=t.public.datadogSite||"us3.datadoghq.com";Kg.init({clientToken:"pubc8593913151c3de3f3d832c73b59ffa8",site:n,env:"production",version:t.public.datadogVersion||"unknown",forwardErrorsToLogs:!0,sessionSampleRate:.01,...e}),Kg.logger.setLevel("warn")})}const Rq=""+new URL("one_news_logo.B36a5Azn.svg",import.meta.url).href,Lq=""+new URL("one_news_logo_dark.DmBixRSb.svg",import.meta.url).href,gw=R.enum(["Automotive","Business","Entertainment","Food","Health","Lifestyle","Money","News","Politics","Science","Shopping","Sports","Technology","Travel"]).catch("News");function Pq(){const e=gD("history",{initialValue:{category:"News",lang:void 0}});Rn(()=>{gw.safeParse(e.category).success||(e.category="News")});const t=ue(gw.parse(e.category));Oe(t,r=>{e.category=r});const n=ue(e.lang);return Oe(n,r=>{Array.isArray(r)?e.lang=r[0]:e.lang=r},{immediate:!0}),{selectedCategory:t,selectedLang:n}}const mw=R.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():""})),Nq=R.string().regex(/^[a-z]{2}$/,"Invalid language code"),Mq=R.string().regex(/^[A-Z]{2}$/,"Invalid country code"),yw={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"},Dq=pa("locale",()=>{const e=ue(void 0),t=ue(void 0),{selectedLang:n}=Pq(),r=J(()=>Array.isArray(n.value)?l(n.value)??e.value??"en":a(n.value??"")??e.value??"en"),o=J(()=>{if(!n.value)return t.value??"US"}),s=p=>{if(!p)return"";const g=mw.safeParse(p);return g.success?g.data.country:""},i=p=>{if(!p)return"";const g=mw.safeParse(p);return g.success?g.data.language:""},a=p=>{const g=i(p),h=Nq.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 m=Mq.safeParse(h);if(m.success)return m.data;continue}const y=a(g);if(y)return u(void 0,y)}},u=(p,g)=>p||(yw[g??"en"]??yw.en);Oe(()=>n.value,p=>{if(!p){n.value=void 0;return}const g=Array.isArray(p)?l(p):a(p);n.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:r,country:o}});function $q(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 n=xx(),r=J(()=>{const o=e();return{ico:`${it().app.cdnURL}/${o}.ico`,svg:`${it().app.cdnURL}/${o}.svg`,png96x96:`${it().app.cdnURL}/${o}-96x96.png`,png180x180:`${it().app.cdnURL}/${o}-180x180.png`}});return Ds({link:[{rel:"shortcut icon",type:"image/x-icon",href:r.value.ico},{rel:"alternate icon",type:"image/svg+xml",href:r.value.svg},{rel:"icon",sizes:"96x96",href:r.value.png96x96},{rel:"apple-touch-icon",sizes:"180x180",href:r.value.png180x180}]}),t(()=>r.value.ico,"shortcut icon"),t(()=>r.value.svg,"alternate icon"),t(()=>r.value.png96x96,"icon"),t(()=>r.value.png180x180,"apple-touch-icon"),{isDark:n,favicon:r}}const Fq=R.object({doodle:R.union([R.literal("off"),R.literal("on"),R.literal("random")]),design:R.optional(R.union([R.literal("google"),R.literal("msn")])),searchboxDesign:R.optional(R.union([R.literal("default"),R.literal("v2"),R.literal("v2-big-yolo"),R.literal("v3")])),searchSuggestionType:R.optional(R.union([R.literal("simple"),R.literal("rich")])),aboveFoldSectionShown:R.optional(R.union([R.literal("LargeCardWithGridSection"),R.literal("HalfPageAdWithGridSection"),R.literal("ContentNewsMixSection"),R.literal("ContentNewsMixWithKeywordSection"),R.literal("CarouselWithGridSection"),R.literal("GamesSection"),R.literal("CategoryMixSection"),R.literal("FiveColumn2x2Card")]))}),_w=R.object({homePage:R.optional(Fq.partial())}),Uq=Td({defaults:_w.parse({homePage:{doodle:"off",design:"msn",searchboxDesign:"default",searchSuggestionType:"simple",aboveFoldSectionShown:void 0}}),configStoreKey:"layoutSettings",schema:e=>_w.parse(e)}),ch=R.object({y:R.number(),x:R.number(),classes:R.string()}),jq=R.object({billboardAdClasses:R.object({widgetId:R.string().optional(),classes:R.string().optional()}),billboardAdSize:R.optional(R.union([R.literal("small"),R.literal("medium"),R.literal("large")])),grid3:R.array(ch),grid2:R.array(ch),grid1:R.array(ch)}),Bq=R.object({provider:R.union([R.literal("affinity"),R.literal("admarketplace"),R.literal("off")]),tilesCount:R.number().default(5),design:R.union([R.literal("msn"),R.literal("google")]).optional(),variant:R.union([R.literal("default"),R.literal("circle"),R.literal("large-primary"),R.literal("large-secondary")]).optional()}),Hq=R.object({provider:R.union([R.literal("affinity"),R.literal("admarketplace")]),tilesCount:R.number().default(5)}),Vq=R.object({provider:R.literal("direct"),name:R.string(),image_url:R.string(),click_url:R.string(),impression_url:R.string()}),Wq=R.object({tilesProvider:R.array(R.union([Hq,Vq])),design:R.union([R.literal("msn"),R.literal("google")]).optional(),variant:R.union([R.literal("default"),R.literal("circle"),R.literal("large-primary"),R.literal("large-secondary")]).optional()}),vw=R.object({sponsoredTiles:R.optional(Bq),dynamicSponsoredTiles:R.optional(Wq),aboveFoldSectionAds:R.optional(jq),aboveFoldSectionLeaderboardAd:R.union([R.literal("testsection_leader"),R.literal("testsection_leader"),R.literal("testsection_leader"),R.literal("")]).default("").optional(),enableSubtleGreyAdBackground:R.boolean().optional()}),zq=Td({defaults:vw.parse({sponsoredTiles:{provider:"off",tilesCount:5},dynamicSponsoredTiles:void 0,aboveFoldSectionAds:void 0,aboveFoldSectionLeaderboardAd:"",enableSubtleGreyAdBackground:!1}),configStoreKey:"adSettings",schema:e=>vw.parse(e)}),Gq=pa("app:layoutSettings",()=>{const e=ue({siteName:"",articlePageUrl:"",homePageUrl:"",tabCategories:[],videoPageUrl:"",headerLogo:"",headerLogoDarkMode:"",tagline:"",footerBrandName:""}),t=dk(r=>{e.value={...e.value,...r}}),n=J(()=>e.value);return{setup:t,settings:n}}),qq=At({__name:"app",async setup(e){let t,n;const r=Uq(),o=Cd(),s=zq();[t,n]=mS(()=>Promise.all([r.initialized,o.initialized,s.initialized])),await t,n();function i(){const m=ei();return["/contact","/privacy-policy","/terms"].includes(m.path)}Ds({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}=Xn();return!!m},l=()=>window.location.hostname.includes("shiftntp.com"),c=lk(),u=xx();function f(){const m=u.value?"-dark":"-light";return a()?c?`home-favicon${m}`:`search-favicon${m}`:l()?`shift-favicon${m}`:"onenews-favicon"}$q(f),yz();const{setLocale:d}=Ed();Rn(()=>{const m=qk();i()&&(m.value="light")});{const{locale:m}=Dq();d(m.toLowerCase())}const p=[{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:g}];function g(){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:h,siteName:y}=jr();return Gq().setup({siteName:y,homePageUrl:h.home,articlePageUrl:h.article,videoPageUrl:h.video,tabCategories:p,headerLogo:a()?void 0:Rq,headerLogoDarkMode:a()?void 0:Lq}),Oq({service:"onenews"}),(m,b)=>{const _=IW,v=mz;return me(),_t(bt,null,[st(_),st(v)],64)}}}),Kq={key:0,class:"h-screen flex justify-center items-center"},Yq=At({__name:"error",props:{error:{}},setup(e){const t=e;return cm(()=>{var n;((n=t.error)==null?void 0:n.statusCode)===404&&Io({path:"/"})}),(n,r)=>{var o;return((o=t.error)==null?void 0:o.statusCode)!==404?(me(),_t("div",Kq," An error occured. Please retry! ")):Xt("",!0)}}}),Zq={key:0},bw={__name:"nuxt-root",setup(e){const t=()=>null,n=Ae(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Bt().beforeEach(l)}const o=!1;Cs(gc,ei()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=ad(),i=!1;pS((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),_E(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Oo(l)),!1});const a=!1;return(l,c)=>(me(),ut(MS,{onResolve:He(r)},{default:Ps(()=>[He(i)?(me(),_t("div",Zq)):He(s)?(me(),ut(He(Yq),{key:1,error:He(s)},null,8,["error"])):He(a)?(me(),ut(He(t),{key:2,context:He(a)},null,8,["context"])):He(o)?(me(),ut(Jf(He(o)),{key:3})):(me(),ut(He(qq),{key:4}))]),_:1},8,["onResolve"]))}};let ww;{let e;ww=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?oR(bw):rR(bw),o=h1({vueApp:r});async function s(l){var c;await o.callHook("app:error",l),(c=o.payload).error||(c.error=ld(l))}r.config.errorHandler=s,o.hook("app:suspense:resolve",()=>{r.config.errorHandler===s&&(r.config.errorHandler=void 0)});try{await y1(o,CW)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(f1),await o.hooks.callHook("app:mounted",r),await qn()}catch(l){s(l)}return r},e=ww().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{qM as $,zs as A,Oe as B,Sf as C,i9 as D,J3 as E,bt as F,Ex as G,Vk as H,Ps as I,ut as J,zq as K,mS as L,yc as M,fr as N,Jq as O,Sl as P,Js as Q,Ut as R,Cs as S,Qf as T,uo as U,Ct as V,qn as W,Jt as X,Me as Y,or as Z,ni as _,Mo as a,S1 as a$,Jf as a0,vc as a1,pC as a2,ya as a3,Dd as a4,Xs as a5,gE as a6,iz as a7,Wi as a8,zn as a9,Cd as aA,R as aB,Cx as aC,rV as aD,s9 as aE,j5 as aF,UI as aG,it as aH,Yf as aI,U5 as aJ,lV as aK,x5 as aL,Uq as aM,S9 as aN,Fa as aO,pV as aP,Ll as aQ,TB as aR,Xn as aS,Io as aT,Ae as aU,gc as aV,g9 as aW,Gc as aX,f9 as aY,DP as aZ,MS as a_,$n as aa,v9 as ab,QD as ac,A9 as ad,c_ as ae,Pr as af,an as ag,GS as ah,Ls as ai,e9 as aj,ei as ak,Bt as al,Dq as am,rs as an,Gq as ao,Pq as ap,h9 as aq,Zf as ar,Zt as as,IB as at,ZB as au,Cb as av,Qs as aw,pB as ax,z3 as ay,ti as az,cm as b,ca as b$,Qy as b0,Sh as b1,Td as b2,n9 as b3,r9 as b4,C9 as b5,fy as b6,UB as b7,FB as b8,CB as b9,xB as bA,lD as bB,T9 as bC,cV as bD,x9 as bE,k9 as bF,TI as bG,F5 as bH,W5 as bI,P5 as bJ,E9 as bK,yC as bL,dD as bM,b9 as bN,BB as bO,hf as bP,$_ as bQ,yr as bR,aE as bS,c9 as bT,yR as bU,BI as bV,sp as bW,vv as bX,mu as bY,p9 as bZ,d9 as b_,ms as ba,jr as bb,p5 as bc,o9 as bd,V2 as be,m9 as bf,TM as bg,HN as bh,y9 as bi,Ck as bj,Mb as bk,mk as bl,pk as bm,lH as bn,Qr as bo,Bl as bp,ns as bq,no as br,dk as bs,pa as bt,$a as bu,aD as bv,u9 as bw,w9 as bx,d5 as by,_N as bz,_t as c,ld as c0,en as c1,fH as c2,cH as c3,pH as c4,Sk as c5,gB as c6,LT as c7,At as d,J as e,t9 as f,Xt as g,st as h,Qq as i,He as j,l9 as k,pt as l,qe as m,Qe as n,me as o,Al as p,Vu as q,ue as r,Z3 as s,Fo as t,Ed as u,a9 as v,_9 as w,Rn as x,Ds as y,iD as z}; //# sourceMappingURL=By-j7jYL.js.map