vendor: 6,139 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dp5ks9zY.js","./DueyF-hO.js","./C0eqgcFN.js","./CKPmV5CO.js","./quiz.POYol0G4.css","./mIPmBfrz.js","./final.Bl03r6P7.css","./BDdQp5bM.js","./index.V6Eyp_h0.css","./D17Avayy.js","./stores.h8j8L05f.css","./CZIZ8tZl.js","./thankyou.3q1R6djR.css","./xuBPDhYg.js"])))=>i.map(i=>d[i]); 2(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Ul(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const pe={},Or=[],nn=()=>{},Ch=()=>!1,ei=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Bl=t=>t.startsWith("onUpdate:"),Be=Object.assign,Vl=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},p_=Object.prototype.hasOwnProperty,ve=(t,e)=>p_.call(t,e),Q=Array.isArray,Mr=t=>Jr(t)==="[object Map]",_o=t=>Jr(t)==="[object Set]",$c=t=>Jr(t)==="[object Date]",g_=t=>Jr(t)==="[object RegExp]",se=t=>typeof t=="function",ke=t=>typeof t=="string",Ut=t=>typeof t=="symbol",ge=t=>t!==null&&typeof t=="object",xh=t=>(ge(t)||se(t))&&se(t.then)&&se(t.catch),kh=Object.prototype.toString,Jr=t=>kh.call(t),__=t=>Jr(t).slice(8,-1),Rh=t=>Jr(t)==="[object Object]",vo=t=>ke(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ar=Ul(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mo=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},v_=/-\w/g,Rt=mo(t=>t.replace(v_,e=>e.slice(1).toUpperCase())),m_=/\B([A-Z])/g,Pn=mo(t=>t.replace(m_,"-$1").toLowerCase()),yo=mo(t=>t.charAt(0).toUpperCase()+t.slice(1)),Uo=mo(t=>t?`on${yo(t)}`:""),_t=(t,e)=>!Object.is(t,e),Ir=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Th=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},Wl=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ph=t=>{const e=ke(t)?Number(t):NaN;return isNaN(e)?t:e};let Fc;const bo=()=>Fc||(Fc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wo(t){if(Q(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=ke(r)?E_(r):wo(r);if(s)for(const i in s)e[i]=s[i]}return e}else if(ke(t)||ge(t))return t}const y_=/;(?![^(]*\))/g,b_=/:([^]+)/,w_=/\/\*[^]*?\*\//g;function E_(t){const e={};return t.replace(w_,"").split(y_).forEach(n=>{if(n){const r=n.split(b_);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function ti(t){let e="";if(ke(t))e=t;else if(Q(t))for(let n=0;n<t.length;n++){const r=ti(t[n]);r&&(e+=r+" ")}else if(ge(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function uC(t){if(!t)return null;let{class:e,style:n}=t;return e&&!ke(e)&&(t.class=ti(e)),n&&(t.style=wo(n)),t}const S_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",C_=Ul(S_);function Ah(t){return!!t||t===""}function x_(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=hr(t[r],e[r]);return n}function hr(t,e){if(t===e)return!0;let n=$c(t),r=$c(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Ut(t),r=Ut(e),n||r)return t===e;if(n=Q(t),r=Q(e),n||r)return n&&r?x_(t,e):!1;if(n=ge(t),r=ge(e),n||r){if(!n||!r)return!1;const s=Object.keys(t).length,i=Object.keys(e).length;if(s!==i)return!1;for(const o in t){const a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!hr(t[o],e[o]))return!1}}return String(t)===String(e)}function Oh(t,e){return t.findIndex(n=>hr(n,e))}const Mh=t=>!!(t&&t.__v_isRef===!0),Ih=t=>ke(t)?t:t==null?"":Q(t)||ge(t)&&(t.toString===kh||!se(t.toString))?Mh(t)?Ih(t.value):JSON.stringify(t,$h,2):String(t),$h=(t,e)=>Mh(e)?$h(t,e.value):Mr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],i)=>(n[Bo(r,i)+" =>"]=s,n),{})}:_o(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Bo(n))}:Ut(e)?Bo(e):ge(e)&&!Q(e)&&!Rh(e)?String(e):e,Bo=(t,e="")=>{var n;return Ut(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let nt;class Fh{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=nt,!e&&nt&&(this.index=(nt.scopes||(nt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=nt;try{return nt=this,e()}finally{nt=n}}}on(){++this._on===1&&(this.prevScope=nt,nt=this)}off(){this._on>0&&--this._on===0&&(nt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ql(t){return new Fh(t)}function ni(){return nt}function Fi(t,e=!1){nt&&nt.cleanups.push(t)}let Se;const Vo=new WeakSet;class Nh{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 14,626 bytes, line 2
2=void 0,nt&&nt.active&&nt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vo.has(this)&&(Vo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Dh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Nc(this),Hh(this);const e=Se,n=Dt;Se=this,Dt=!0;try{return this.fn()}finally{jh(this),Se=e,Dt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)zl(e);this.deps=this.depsTail=void 0,Nc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ia(this)&&this.run()}get dirty(){return Ia(this)}}let Lh=0,As,Os;function Dh(t,e=!1){if(t.flags|=8,e){t.next=Os,Os=t;return}t.next=As,As=t}function Gl(){Lh++}function Kl(){if(--Lh>0)return;if(Os){let e=Os;for(Os=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;As;){let e=As;for(As=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Hh(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function jh(t){let e,n=t.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),zl(r),k_(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function Ia(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Uh(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Uh(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Bs)||(t.globalVersion=Bs,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Ia(t))))return;t.flags|=2;const e=t.dep,n=Se,r=Dt;Se=t,Dt=!0;try{Hh(t);const s=t.fn(t._value);(e.version===0||_t(s,t._value))&&(t.flags|=128,t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Se=n,Dt=r,jh(t),t.flags&=-3}}function zl(t,e=!1){const{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)zl(i,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function k_(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Dt=!0;const Bh=[];function Sn(){Bh.push(Dt),Dt=!1}function Cn(){const t=Bh.pop();Dt=t===void 0?!0:t}function Nc(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Se;Se=void 0;try{e()}finally{Se=n}}}let Bs=0;class R_{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Eo{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Se||!Dt||Se===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Se)n=this.activeLink=new R_(Se,this),Se.deps?(n.prevDep=Se.depsTail,Se.depsTail.nextDep=n,Se.depsTail=n):Se.deps=Se.depsTail=n,Vh(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=Se.depsTail,n.nextDep=void 0,Se.depsTail.nextDep=n,Se.depsTail=n,Se.deps===n&&(Se.deps=r)}return n}trigger(e){this.version++,Bs++,this.notify(e)}notify(e){Gl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Kl()}}}function Vh(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Vh(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Ni=new WeakMap,lr=Symbol(""),$a=Symbol(""),Vs=Symbol("");function rt(t,e,n){if(Dt&&Se){let r=Ni.get(t);r||Ni.set(t,r=new Map);let s=r.get(n);s||(r.set(n,s=new Eo),s.map=r,s.key=n),s.track()}}function pn(t,e,n,r,s,i){const o=Ni.get(t);if(!o){Bs++;return}const a=l=>{l&&l.trigger()};if(Gl(),e==="clear")o.forEach(a);else{const l=Q(t),u=l&&vo(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Vs||!Ut(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Vs)),e){case"add":l?u&&a(o.get("length")):(a(o.get(lr)),Mr(t)&&a(o.get($a)));break;case"delete":l||(a(o.get(lr)),Mr(t)&&a(o.get($a)));break;case"set":Mr(t)&&a(o.get(lr));break}}Kl()}function T_(t,e){const n=Ni.get(t);return n&&n.get(e)}function mr(t){const e=he(t);return e===t?e:(rt(e,"iterate",Vs),kt(t)?e:e.map(Bt))}function So(t){return rt(t=he(t),"iterate",Vs),t}function Dn(t,e){return rn(t)?Hr(Ht(t)?Bt(e):e):Bt(e)}const P_={__proto__:null,[Symbol.iterator](){return Wo(this,Symbol.iterator,t=>Dn(this,t))},concat(...t){return mr(this).concat(...t.map(e=>Q(e)?mr(e):e))},entries(){return Wo(this,"entries",t=>(t[1]=Dn(this,t[1]),t))},every(t,e){return sn(this,"every",t,e,void 0,arguments)},filter(t,e){return sn(this,"filter",t,e,n=>n.map(r=>Dn(this,r)),arguments)},find(t,e){return sn(this,"find",t,e,n=>Dn(this,n),arguments)},findIndex(t,e){return sn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return sn(this,"findLast",t,e,n=>Dn(this,n),arguments)},findLastIndex(t,e){return sn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return sn(this,"forEach",t,e,void 0,arguments)},includes(...t){return qo(this,"includes",t)},indexOf(...t){return qo(this,"indexOf",t)},join(t){return mr(this).join(t)},lastIndexOf(...t){return qo(this,"lastIndexOf",t)},map(t,e){return sn(this,"map",t,e,void 0,arguments)},pop(){return rs(this,"pop")},push(...t){return rs(this,"push",t)},reduce(t,...e){return Lc(this,"reduce",t,e)},reduceRight(t,...e){return Lc(this,"reduceRight",t,e)},shift(){return rs(this,"shift")},some(t,e){return sn(this,"some",t,e,void 0,arguments)},splice(...t){return rs(this,"splice",t)},toReversed(){return mr(this).toReversed()},toSorted(t){return mr(this).toSorted(t)},toSpliced(...t){return mr(this).toSpliced(...t)},unshift(...t){return rs(this,"unshift",t)},values(){return Wo(this,"values",t=>Dn(this,t))}};function Wo(t,e,n){const r=So(t),s=r[e]();return r!==t&&!kt(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const A_=Array.prototype;function sn(t,e,n,r,s,i){const o=So(t),a=o!==t&&!kt(t),l=o[e];if(l!==A_[e]){const f=l.apply(t,i);return a?Bt(f):f}let u=n;o!==t&&(a?u=function(f,d){return n.call(this,Dn(t,f),d,t)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,t)}));const c=l.call(o,u,r);return a&&s?s(c):c}function Lc(t,e,n,r){const s=So(t);let i=n;return s!==t&&(kt(t)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,t)}):i=function(o,a,l){return n.call(this,o,Dn(t,a),l,t)}),s[e](i,...r)}function qo(t,e,n){const r=he(t);rt(r,"iterate",Vs);const s=r[e](...n);return(s===-1||s===!1)&&Co(n[0])?(n[0]=he(n[0]),r[e](...n)):s}function rs(t,e,n=[]){Sn(),Gl();const r=he(t)[e].apply(t,n);return Kl(),Cn(),r}const O_=Ul("__proto__,__v_isRef,__isVue"),Wh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ut));function M_(t){Ut(t)||(t=String(t));const e=he(this);return rt(e,"has",t),e.hasOwnProperty(t)}class qh{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?B_:Yh:i?zh:Kh).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=Q(e);if(!s){let l;if(o&&(l=P_[n]))return l;if(n==="hasOwnProperty")return M_}const a=Reflect.get(e,n,Te(e)?e:r);if((Ut(n)?Wh.has(n):O_(n))||(s||rt(e,"get",n),i))return a;if(Te(a)){const l=o&&vo(n)?a:a.value;return s&&ge(l)?Na(l):l}return ge(a)?s?Na(a):An(a):a}}class Gh extends qh{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];const o=Q(e)&&vo(n);if(!this._isShallow){const u=rn(i);if(!kt(r)&&!rn(r)&&(i=he(i),r=he(r)),!o&&Te(i)&&!Te(r))return u||(i.value=r),!0}const a=o?Number(n)<e.length:ve(e,n),l=Reflect.set(e,n,r,Te(e)?e:s);return e===he(s)&&(a?_t(r,i)&&pn(e,"set",n,r):pn(e,"add",n,r)),l}deleteProperty(e,n){const r=ve(e,n);e[n];const s=Reflect.deleteProperty(e,n);return s&&r&&pn(e,"delete",n,void 0),s}has(e,n){const r=Reflect.has(e,n);return(!Ut(n)||!Wh.has(n))&&rt(e,"has",n),r}ownKeys(e){return rt(e,"iterate",Q(e)?"length":lr),Reflect.ownKeys(e)}}class I_ extends qh{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const $_=new Gh,F_=new I_,N_=new Gh(!0);const Fa=t=>t,ui=t=>Reflect.getPrototypeOf(t);function L_(t,e,n){return function(...r){const s=this.__v_raw,i=he(s),o=Mr(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...r),c=n?Fa:e?Hr:Bt;return!e&&rt(i,"iterate",l?$a:lr),Be(Object.create(u),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function fi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function D_(t,e){const n={get(s){const i=this.__v_raw,o=he(i),a=he(s);t||(_t(s,a)&&rt(o,"get",s),rt(o,"get",a));const{has:l}=ui(o),u=e?Fa:t?Hr:Bt;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!t&&rt(he(s),"iterate",lr),s.size},has(s){const i=this.__v_raw,o=he(i),a=he(s);return t||(_t(s,a)&&rt(o,"has",s),rt(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=he(a),u=e?Fa:t?Hr:Bt;return!t&&rt(l,"iterate",lr),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Be(n,t?{add:fi("add"),set:fi("set"),delete:fi("delete"),clear:fi("clear")}:{add(s){!e&&!kt(s)&&!rn(s)&&(s=he(s));const i=he(this);return ui(i).has.call(i,s)||(i.add(s),pn(i,"add",s,s)),this},set(s,i){!e&&!kt(i)&&!rn(i)&&(i=he(i));const o=he(this),{has:a,get:l}=ui(o);let u=a.call(o,s);u||(s=he(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?_t(i,c)&&pn(o,"set",s,i):pn(o,"add",s,i),this},delete(s){const i=he(this),{has:o,get:a}=ui(i);let l=o.call(i,s);l||(s=he(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&pn(i,"delete",s,void 0),u},clear(){const s=he(this),i=s.size!==0,o=s.clear();return i&&pn(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=L_(s,t,e)}),n}function Yl(t,e){const n=D_(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(ve(n,s)&&s in r?n:r,s,i)}const H_={get:Yl(!1,!1)},j_={get:Yl(!1,!0)},U_={get:Yl(!0,!1)};const Kh=new WeakMap,zh=new WeakMap,Yh=new WeakMap,B_=new WeakMap;function V_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function W_(t){return t.__v_skip||!Object.isExtensible(t)?0:V_(__(t))}function An(t){return rn(t)?t:Jl(t,!1,$_,H_,Kh)}function en(t){return Jl(t,!1,N_,j_,zh)}function Na(t){return Jl(t,!0,F_,U_,Yh)}function Jl(t,e,n,r,s){if(!ge(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=W_(t);if(i===0)return t;const o=s.get(t);if(o)return o;const a=new Proxy(t,i===2?r:n);return s.set(t,a),a}function Ht(t){return rn(t)?Ht(t.__v_raw):!!(t&&t.__v_isReactive)}function rn(t){return!!(t&&t.__v_isReadonly)}function kt(t){return!!(t&&t.__v_isShallow)}function Co(t){return t?!!t.__v_raw:!1}function he(t){const e=t&&t.__v_raw;return e?he(e):t}function Zl(t){return!ve(t,"__v_skip")&&Object.isExtensible(t)&&Th(t,"__v_skip",!0),t}const Bt=t=>ge(t)?An(t):t,Hr=t=>ge(t)?Na(t):t;function Te(t){return t?t.__v_isRef===!0:!1}function jt(t){return Jh(t,!1)}function dr(t){return Jh(t,!0)}function Jh(t,e){return Te(t)?t:new q_(t,e)}class q_{constructor(e,n){this.dep=new Eo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:he(e),this._value=n?e:Bt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||kt(e)||rn(e);e=r?e:he(e),_t(e,n)&&(this._rawValue=e,this._value=r?e:Bt(e),this.dep.trigger())}}function De(t){return Te(t)?t.value:t}function fC(t){return se(t)?t():De(t)}const G_={get:(t,e,n)=>e==="__v_raw"?t:De(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return Te(s)&&!Te(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function Zh(t){return Ht(t)?t:new Proxy(t,G_)}class K_{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Eo,{get:r,set:s}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Xh(t){return new K_(t)}function z_(t){const e=Q(t)?new Array(t.length):{};for(const n in t)e[n]=ed(t,n);return e}class Y_{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=he(e);let s=!0,i=e;if(!Q(e)||!vo(String(n)))do s=!Co(i)||kt(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=De(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Te(this._raw[this._key])){const n=this._object[this._key];if(Te(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return T_(this._raw,this._key)}}class J_{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Qh(t,e,n){return Te(t)?t:se(t)?new J_(t):ge(t)&&arguments.length>1?ed(t,e,n):jt(t)}function ed(t,e,n){return new Y_(t,e,n)}class Z_{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Eo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Se!==this)return Dh(this,!0),!0}get value(){const e=this.dep.track();return Uh(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function X_(t,e,n=!1){let r,s;return se(t)?r=t:(r=t.get,s=t.set),new Z_(r,s,n)}const hi={},Li=new WeakMap;let rr;function Q_(t,e=!1,n=rr){if(n){let r=Li.get(n);r||Li.set(n,r=[]),r.push(t)}}function ev(t,e,n=pe){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=y=>s?y:kt(y)||s===!1||s===0?gn(y,1):gn(y);let c,f,d,h,p=!1,g=!1;if(Te(t)?(f=()=>t.value,p=kt(t)):Ht(t)?(f=()=>u(t),p=!0):Q(t)?(g=!0,p=t.some(y=>Ht(y)||kt(y)),f=()=>t.map(y=>{if(Te(y))return y.value;if(Ht(y))return u(y);if(se(y))return l?l(y,2):y()})):se(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){Sn();try{d()}finally{Cn()}}const y=rr;rr=c;try{return l?l(t,3,[h]):t(h)}finally{rr=y}}:f=nn,e&&s){const y=f,E=s===!0?1/0:s;f=()=>gn(y(),E)}const m=ni(),S=()=>{c.stop(),m&&m.active&&Vl(m.effects,c)};if(i&&e){const y=e;
vendor: 9,448 bytes, line 2
2e=(...E)=>{y(...E),S()}}let b=g?new Array(t.length).fill(hi):hi;const _=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(e){const E=c.run();if(s||p||(g?E.some((C,T)=>_t(C,b[T])):_t(E,b))){d&&d();const C=rr;rr=c;try{const T=[E,b===hi?void 0:g&&b[0]===hi?[]:b,h];b=E,l?l(e,3,T):e(...T)}finally{rr=C}}}else c.run()};return a&&a(_),c=new Nh(f),c.scheduler=o?()=>o(_,!1):_,h=y=>Q_(y,!1,c),d=c.onStop=()=>{const y=Li.get(c);if(y){if(l)l(y,4);else for(const E of y)E();Li.delete(c)}},e?r?_(!0):b=c.run():o?o(_.bind(null,!0),!0):c.run(),S.pause=c.pause.bind(c),S.resume=c.resume.bind(c),S.stop=S,S}function gn(t,e=1/0,n){if(e<=0||!ge(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Te(t))gn(t.value,e,n);else if(Q(t))for(let r=0;r<t.length;r++)gn(t[r],e,n);else if(_o(t)||Mr(t))t.forEach(r=>{gn(r,e,n)});else if(Rh(t)){for(const r in t)gn(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&gn(t[r],e,n)}return t}function ri(t,e,n,r){try{return r?t(...r):t()}catch(s){Zr(s,e,n)}}function Vt(t,e,n,r){if(se(t)){const s=ri(t,e,n,r);return s&&xh(s)&&s.catch(i=>{Zr(i,e,n)}),s}if(Q(t)){const s=[];for(let i=0;i<t.length;i++)s.push(Vt(t[i],e,n,r));return s}}function Zr(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||pe;if(e){let a=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,l,u)===!1)return}a=a.parent}if(i){Sn(),ri(i,null,10,[t,l,u]),Cn();return}}tv(t,n,s,r,o)}function tv(t,e,n,r=!0,s=!1){if(s)throw t;console.error(t)}const ft=[];let Yt=-1;const $r=[];let Hn=null,Sr=0;const td=Promise.resolve();let Di=null;function xn(t){const e=Di||td;return t?e.then(this?t.bind(this):t):e}function nv(t){let e=Yt+1,n=ft.length;for(;e<n;){const r=e+n>>>1,s=ft[r],i=Ws(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function Xl(t){if(!(t.flags&1)){const e=Ws(t),n=ft[ft.length-1];!n||!(t.flags&2)&&e>=Ws(n)?ft.push(t):ft.splice(nv(e),0,t),t.flags|=1,nd()}}function nd(){Di||(Di=td.then(rd))}function La(t){Q(t)?$r.push(...t):Hn&&t.id===-1?Hn.splice(Sr+1,0,t):t.flags&1||($r.push(t),t.flags|=1),nd()}function Dc(t,e,n=Yt+1){for(;n<ft.length;n++){const r=ft[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;ft.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Hi(t){if($r.length){const e=[...new Set($r)].sort((n,r)=>Ws(n)-Ws(r));if($r.length=0,Hn){Hn.push(...e);return}for(Hn=e,Sr=0;Sr<Hn.length;Sr++){const n=Hn[Sr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Hn=null,Sr=0}}const Ws=t=>t.id==null?t.flags&2?-1:1/0:t.id;function rd(t){try{for(Yt=0;Yt<ft.length;Yt++){const e=ft[Yt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),ri(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Yt<ft.length;Yt++){const e=ft[Yt];e&&(e.flags&=-2)}Yt=-1,ft.length=0,Hi(),Di=null,(ft.length||$r.length)&&rd()}}let Ze=null,sd=null;function ji(t){const e=Ze;return Ze=t,sd=t&&t.type.__scopeId||null,e}function Ql(t,e=Ze,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&Gi(-1);const i=ji(e);let o;try{o=t(...s)}finally{ji(i),r._d&&Gi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function hC(t,e){if(Ze===null)return t;const n=Ao(Ze),r=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[i,o,a,l=pe]=e[s];i&&(se(i)&&(i={mounted:i,updated:i}),i.deep&&gn(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function Zt(t,e,n,r){const s=t.dirs,i=e&&e.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(Sn(),Vt(l,n,8,[t.el,a,t,e]),Cn())}}function Wn(t,e){if(Je){let n=Je.provides;const r=Je.parent&&Je.parent.provides;r===n&&(n=Je.provides=Object.create(r)),n[t]=e}}function Qe(t,e,n=!1){const r=zn();if(r||cr){let s=cr?cr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&se(e)?e.call(r&&r.proxy):e}}function ec(){return!!(zn()||cr)}const rv=Symbol.for("v-scx"),sv=()=>Qe(rv);function iv(t,e){return tc(t,null,{flush:"sync"})}function yn(t,e,n){return tc(t,e,n)}function tc(t,e,n=pe){const{immediate:r,deep:s,flush:i,once:o}=n,a=Be({},n),l=e&&r||!e&&i!=="post";let u;if(Br){if(i==="sync"){const h=sv();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=nn,h.resume=nn,h.pause=nn,h}}const c=Je;a.call=(h,p,g)=>Vt(h,c,p,g);let f=!1;i==="post"?a.scheduler=h=>{Le(h,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Xl(h)}),a.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=ev(t,e,a);return Br&&(u?u.push(d):l&&d()),d}function ov(t,e,n){const r=this.proxy,s=ke(t)?t.includes(".")?id(r,t):()=>r[t]:t.bind(r,r);let i;se(e)?i=e:(i=e.handler,n=e);const o=oi(this),a=tc(s,i.bind(r),n);return o(),a}function id(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const od=Symbol("_vte"),ad=t=>t.__isTeleport,Ms=t=>t&&(t.disabled||t.disabled===""),Hc=t=>t&&(t.defer||t.defer===""),jc=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Uc=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Da=(t,e)=>{const n=t&&t.to;return ke(n)?e?e(n):null:n},ld={name:"Teleport",__isTeleport:!0,process(t,e,n,r,s,i,o,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:g,createComment:m}}=u,S=Ms(e.props);let{shapeFlag:b,children:_,dynamicChildren:y}=e;if(t==null){const E=e.el=g(""),C=e.anchor=g("");h(E,n,r),h(C,n,r);const T=(k,O)=>{b&16&&c(_,k,O,s,i,o,a,l)},R=()=>{const k=e.target=Da(e.props,p),O=Ha(k,e,g,h);k&&(o!=="svg"&&jc(k)?o="svg":o!=="mathml"&&Uc(k)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(k),S||(T(k,O),Pi(e,!1)))};S&&(T(n,C),Pi(e,!0)),Hc(e.props)?(e.el.__isMounted=!1,Le(()=>{R(),delete e.el.__isMounted},i)):R()}else{if(Hc(e.props)&&t.el.__isMounted===!1){Le(()=>{ld.process(t,e,n,r,s,i,o,a,l,u)},i);return}e.el=t.el,e.targetStart=t.targetStart;const E=e.anchor=t.anchor,C=e.target=t.target,T=e.targetAnchor=t.targetAnchor,R=Ms(t.props),k=R?n:C,O=R?E:T;if(o==="svg"||jc(C)?o="svg":(o==="mathml"||Uc(C))&&(o="mathml"),y?(d(t.dynamicChildren,y,k,s,i,o,a),ic(t,e,!0)):l||f(t,e,k,O,s,i,o,a,!1),S)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):di(e,n,E,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const L=e.target=Da(e.props,p);L&&di(e,L,null,u,0)}else R&&di(e,C,T,u,1);Pi(e,S)}},remove(t,e,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=t;if(f&&(s(u),s(c)),i&&s(l),o&16){const h=i||!Ms(d);for(let p=0;p<a.length;p++){const g=a[p];r(g,e,n,h,!!g.dynamicChildren)}}},move:di,hydrate:av};function di(t,e,n,{o:{insert:r},m:s},i=2){i===0&&r(t.targetAnchor,e,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=t,f=i===2;if(f&&r(o,e,n),(!f||Ms(c))&&l&16)for(let d=0;d<u.length;d++)s(u[d],e,n,2);f&&r(a,e,n)}function av(t,e,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:c}},f){function d(m,S){let b=S;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")e.targetStart=b;else if(b.data==="teleport anchor"){e.targetAnchor=b,m._lpa=e.targetAnchor&&o(e.targetAnchor);break}}b=o(b)}}function h(m,S){S.anchor=f(o(m),S,a(m),n,r,s,i)}const p=e.target=Da(e.props,l),g=Ms(e.props);if(p){const m=p._lpa||p.firstChild;e.shapeFlag&16&&(g?(h(t,e),d(p,m),e.targetAnchor||Ha(p,e,c,u,a(t)===p?t:null)):(e.anchor=o(t),d(p,m),e.targetAnchor||Ha(p,e,c,u),f(m&&o(m),e,p,n,r,s,i))),Pi(e,g)}else g&&e.shapeFlag&16&&(h(t,e),e.targetStart=t,e.targetAnchor=o(t));return e.anchor&&o(e.anchor)}const dC=ld;function Pi(t,e){const n=t.ctx;if(n&&n.ut){let r,s;for(e?(r=t.el,s=t.anchor):(r=t.targetStart,s=t.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Ha(t,e,n,r,s=null){const i=e.targetStart=n(""),o=e.targetAnchor=n("");return i[od]=o,t&&(r(i,t,s),r(o,t,s)),o}const Xt=Symbol("_leaveCb"),ss=Symbol("_enterCb");function lv(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ii(()=>{t.isMounted=!0}),ko(()=>{t.isUnmounting=!0}),t}const Tt=[Function,Array],cd={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tt,onEnter:Tt,onAfterEnter:Tt,onEnterCancelled:Tt,onBeforeLeave:Tt,onLeave:Tt,onAfterLeave:Tt,onLeaveCancelled:Tt,onBeforeAppear:Tt,onAppear:Tt,onAfterAppear:Tt,onAppearCancelled:Tt},ud=t=>{const e=t.subTree;return e.component?ud(e.component):e},cv={name:"BaseTransition",props:cd,setup(t,{slots:e}){const n=zn(),r=lv();return()=>{const s=e.default&&dd(e.default(),!0);if(!s||!s.length)return;const i=fd(s),o=he(t),{mode:a}=o;if(r.isLeaving)return Go(i);const l=Bc(i);if(!l)return Go(i);let u=ja(l,o,r,n,f=>u=f);l.type!==je&&jr(l,u);let c=n.subTree&&Bc(n.subTree);if(c&&c.type!==je&&!Lt(c,l)&&ud(n).type!==je){let f=ja(c,o,r,n);if(jr(c,f),a==="out-in"&&l.type!==je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Go(i);a==="in-out"&&l.type!==je?f.delayLeave=(d,h,p)=>{const g=hd(r,c);g[String(c.key)]=c,d[Xt]=()=>{h(),d[Xt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function fd(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==je){e=n;break}}return e}const uv=cv;
2function hd(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function ja(t,e,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:S,onAfterAppear:b,onAppearCancelled:_}=e,y=String(t.key),E=hd(n,t),C=(k,O)=>{k&&Vt(k,r,9,O)},T=(k,O)=>{const L=O[1];C(k,O),Q(k)?k.every(A=>A.length<=1)&&L():k.length<=1&&L()},R={mode:o,persisted:a,beforeEnter(k){let O=l;if(!n.isMounted)if(i)O=m||l;else return;k[Xt]&&k[Xt](!0);const L=E[y];L&&Lt(t,L)&&L.el[Xt]&&L.el[Xt](),C(O,[k])},enter(k){let O=u,L=c,A=f;if(!n.isMounted)if(i)O=S||u,L=b||c,A=_||f;else return;let H=!1;k[ss]=oe=>{H||(H=!0,oe?C(A,[k]):C(L,[k]),R.delayedLeave&&R.delayedLeave(),k[ss]=void 0)};const ne=k[ss].bind(null,!1);O?T(O,[k,ne]):ne()},leave(k,O){const L=String(t.key);if(k[ss]&&k[ss](!0),n.isUnmounting)return O();C(d,[k]);let A=!1;k[Xt]=ne=>{A||(A=!0,O(),ne?C(g,[k]):C(p,[k]),k[Xt]=void 0,E[L]===t&&delete E[L])};const H=k[Xt].bind(null,!1);E[L]=t,h?T(h,[k,H]):H()},clone(k){const O=ja(k,e,n,r,s);return s&&s(O),O}};return R}function Go(t){if(si(t))return t=kn(t),t.children=null,t}function Bc(t){if(!si(t))return ad(t.type)&&t.children?fd(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&se(n.default))return n.default()}}function jr(t,e){t.shapeFlag&6&&t.component?(t.transition=e,jr(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function dd(t,e=!1,n){let r=[],s=0;for(let i=0;i<t.length;i++){let o=t[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===st?(o.patchFlag&128&&s++,r=r.concat(dd(o.children,e,a))):(e||o.type!==je)&&r.push(a!=null?kn(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function qt(t,e){return se(t)?Be({name:t.name},e,{setup:t}):t}function nc(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function pC(t){const e=zn(),n=dr(null);if(e){const s=e.refs===pe?e.refs={}:e.refs;Object.defineProperty(s,t,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Vc(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const Ui=new WeakMap;function Fr(t,e,n,r,s=!1){if(Q(t)){t.forEach((g,m)=>Fr(g,e&&(Q(e)?e[m]:e),n,r,s));return}if(bn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Fr(t,e,n,r.component.subTree);return}const i=r.shapeFlag&4?Ao(r.component):r.el,o=s?null:i,{i:a,r:l}=t,u=e&&e.r,c=a.refs===pe?a.refs={}:a.refs,f=a.setupState,d=he(f),h=f===pe?Ch:g=>Vc(c,g)?!1:ve(d,g),p=(g,m)=>!(m&&Vc(c,m));if(u!=null&&u!==l){if(Wc(e),ke(u))c[u]=null,h(u)&&(f[u]=null);else if(Te(u)){const g=e;p(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(se(l))ri(l,a,12,[o,c]);else{const g=ke(l),m=Te(l);
vendor: 9,384 bytes, lines 2-4
2if(g||m){const S=()=>{if(t.f){const b=g?h(l)?f[l]:c[l]:p()||!t.k?l.value:c[t.k];if(s)Q(b)&&Vl(b,i);else if(Q(b))b.includes(i)||b.push(i);else if(g)c[l]=[i],h(l)&&(f[l]=c[l]);else{const _=[i];p(l,t.k)&&(l.value=_),t.k&&(c[t.k]=_)}}else g?(c[l]=o,h(l)&&(f[l]=o)):m&&(p(l,t.k)&&(l.value=o),t.k&&(c[t.k]=o))};if(o){const b=()=>{S(),Ui.delete(t)};b.id=-1,Ui.set(t,b),Le(b,n)}else Wc(t),S()}}}function Wc(t){const e=Ui.get(t);e&&(e.flags|=8,Ui.delete(t))}let qc=!1;const yr=()=>{qc||(console.error("Hydration completed but contains mismatches."),qc=!0)},fv=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",hv=t=>t.namespaceURI.includes("MathML"),pi=t=>{if(t.nodeType===1){if(fv(t))return"svg";if(hv(t))return"mathml"}},Rr=t=>t.nodeType===8;function dv(t){const{mt:e,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=t,c=(_,y)=>{if(!y.hasChildNodes()){n(null,_,y),Hi(),y._vnode=_;return}f(y.firstChild,_,null,null,null),Hi(),y._vnode=_},f=(_,y,E,C,T,R=!1)=>{R=R||!!y.dynamicChildren;const k=Rr(_)&&_.data==="[",O=()=>g(_,y,E,C,T,k),{type:L,ref:A,shapeFlag:H,patchFlag:ne}=y;let oe=_.nodeType;y.el=_,ne===-2&&(R=!1,y.dynamicChildren=null);let U=null;switch(L){case ur:oe!==3?y.children===""?(l(y.el=s(""),o(_),_),U=_):U=O():(_.data!==y.children&&(yr(),_.data=y.children),U=i(_));break;case je:b(_)?(U=i(_),S(y.el=_.content.firstChild,_,E)):oe!==8||k?U=O():U=i(_);break;case $s:if(k&&(_=i(_),oe=_.nodeType),oe===1||oe===3){U=_;const Y=!y.children.length;for(let B=0;B<y.staticCount;B++)Y&&(y.children+=U.nodeType===1?U.outerHTML:U.data),B===y.staticCount-1&&(y.anchor=U),U=i(U);return k?i(U):U}else O();break;case st:k?U=p(_,y,E,C,T,R):U=O();break;default:if(H&1)(oe!==1||y.type.toLowerCase()!==_.tagName.toLowerCase())&&!b(_)?U=O():U=d(_,y,E,C,T,R);else if(H&6){y.slotScopeIds=T;const Y=o(_);if(k?U=m(_):Rr(_)&&_.data==="teleport start"?U=m(_,_.data,"teleport end"):U=i(_),e(y,Y,null,E,C,pi(Y),R),bn(y)&&!y.type.__asyncResolved){let B;k?(B=Re(st),B.anchor=U?U.previousSibling:Y.lastChild):B=_.nodeType===3?Vd(""):Re("div"),B.el=_,y.component.subTree=B}}else H&64?oe!==8?U=O():U=y.type.hydrate(_,y,E,C,T,R,t,h):H&128&&(U=y.type.hydrate(_,y,E,C,pi(o(_)),T,R,t,f))}return A!=null&&Fr(A,null,C,y),U},d=(_,y,E,C,T,R)=>{R=R||!!y.dynamicChildren;const{type:k,props:O,patchFlag:L,shapeFlag:A,dirs:H,transition:ne}=y,oe=k==="input"||k==="option";if(oe||L!==-1){H&&Zt(y,null,E,"created");let U=!1;if(b(_)){U=Fd(null,ne)&&E&&E.vnode.props&&E.vnode.props.appear;const B=_.content.firstChild;if(U){const le=B.getAttribute("class");le&&(B.$cls=le),ne.beforeEnter(B)}S(B,_,E),y.el=_=B}if(A&16&&!(O&&(O.innerHTML||O.textContent))){let B=h(_.firstChild,y,_,E,C,T,R);for(;B;){gi(_,1)||yr();const le=B;B=B.nextSibling,a(le)}}else if(A&8){let B=y.children;B[0]===` 3`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(B=B.slice(1));const{textContent:le}=_;le!==B&&le!==B.replace(/\r\n|\r/g,` 4`)&&(gi(_,0)||yr(),_.textContent=y.children)}if(O){if(oe||!R||L&48){const B=_.tagName.includes("-");for(const le in O)(oe&&(le.endsWith("value")||le==="indeterminate")||ei(le)&&!ar(le)||le[0]==="."||B&&!ar(le))&&r(_,le,null,O[le],void 0,E)}else if(O.onClick)r(_,"onClick",null,O.onClick,void 0,E);else if(L&4&&Ht(O.style))for(const B in O.style)O.style[B]}let Y;(Y=O&&O.onVnodeBeforeMount)&&pt(Y,E,y),H&&Zt(y,null,E,"beforeMount"),((Y=O&&O.onVnodeMounted)||H||U)&&Hd(()=>{Y&&pt(Y,E,y),U&&ne.enter(_),H&&Zt(y,null,E,"mounted")},C)}return _.nextSibling},h=(_,y,E,C,T,R,k)=>{k=k||!!y.dynamicChildren;const O=y.children,L=O.length;for(let A=0;A<L;A++){const H=k?O[A]:O[A]=Ct(O[A]),ne=H.type===ur;_?(ne&&!k&&A+1<L&&Ct(O[A+1]).type===ur&&(l(s(_.data.slice(H.children.length)),E,i(_)),_.data=H.children),_=f(_,H,C,T,R,k)):ne&&!H.children?l(H.el=s(""),E):(gi(E,1)||yr(),n(null,H,E,null,C,T,pi(E),R))}return _},p=(_,y,E,C,T,R)=>{const{slotScopeIds:k}=y;k&&(T=T?T.concat(k):k);const O=o(_),L=h(i(_),y,O,E,C,T,R);return L&&Rr(L)&&L.data==="]"?i(y.anchor=L):(yr(),l(y.anchor=u("]"),O,L),L)},g=(_,y,E,C,T,R)=>{if(gi(_.parentElement,1)||yr(),y.el=null,R){const L=m(_);for(;;){const A=i(_);if(A&&A!==L)a(A);else break}}const k=i(_),O=o(_);return a(_),n(null,y,O,k,E,C,pi(O),T),E&&(E.vnode.el=y.el,To(E,y.el)),k},m=(_,y="[",E="]")=>{let C=0;for(;_;)if(_=i(_),_&&Rr(_)&&(_.data===y&&C++,_.data===E)){if(C===0)return i(_);C--}return _},S=(_,y,E)=>{const C=y.parentNode;C&&C.replaceChild(_,y);let T=E;for(;T;)T.vnode.el===y&&(T.vnode.el=T.subTree.el=_),T=T.parent},b=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[c,f]}const Gc="data-allow-mismatch",pv={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function gi(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(Gc);)t=t.parentElement;const n=t&&t.getAttribute(Gc);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:r.includes(pv[e])}}bo().requestIdleCallback;bo().cancelIdleCallback;function gv(t,e){if(Rr(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(Rr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const bn=t=>!!t.type.__asyncLoader;function gC(t){se(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=t;let u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let p;return u||(p=u=e().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((m,S)=>{l(g,()=>m(d()),()=>S(g),f+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return qt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,m){let S=!1;(g.bu||(g.bu=[])).push(()=>S=!0);const b=()=>{S||m()},_=i?()=>{const y=i(b,E=>gv(p,E));y&&(g.bum||(g.bum=[])).push(y)}:b;c?_():h().then(()=>!g.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const p=Je;if(nc(p),c)return()=>_i(c,p);const g=_=>{u=null,Zr(_,p,13,!r)};if(a&&p.suspense||Br)return h().then(_=>()=>_i(_,p)).catch(_=>(g(_),()=>r?Re(r,{error:_}):null));const m=jt(!1),S=jt(),b=jt(!!s);return s&&setTimeout(()=>{b.value=!1},s),o!=null&&setTimeout(()=>{if(!m.value&&!S.value){const _=new Error(`Async component timed out after ${o}ms.`);g(_),S.value=_}},o),h().then(()=>{m.value=!0,p.parent&&si(p.parent.vnode)&&p.parent.update()}).catch(_=>{g(_),S.value=_}),()=>{if(m.value&&c)return _i(c,p);if(S.value&&r)return Re(r,{error:S.value});if(n&&!b.value)return _i(n,p)}}})}function _i(t,e){const{ref:n,props:r,children:s,ce:i}=e.vnode,o=Re(t,r,s);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const si=t=>t.type.__isKeepAlive,_v={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=zn(),r=n.ctx;if(!r.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(b,_,y,E,C)=>{const T=b.component;u(b,_,y,0,a),l(T.vnode,b,_,y,T,a,E,b.slotScopeIds,C),Le(()=>{T.isDeactivated=!1,T.a&&Ir(T.a);const R=b.props&&b.props.onVnodeMounted;R&&pt(R,T.parent,b)},a)},r.deactivate=b=>{const _=b.component;Wi(_.m),Wi(_.a),u(b,d,null,1,a),Le(()=>{_.da&&Ir(_.da);const y=b.props&&b.props.onVnodeUnmounted;y&&pt(y,_.parent,b),_.isDeactivated=!0},a)};function h(b){Ko(b),c(b,n,a,!0)}function p(b){s.forEach((_,y)=>{const E=za(bn(_)?_.type.__asyncResolved||{}:_.type);E&&!b(E)&&g(y)})}function g(b){const _=s.get(b);_&&(!o||!Lt(_,o))?h(_):o&&Ko(o),s.delete(b),i.delete(b)}yn(()=>[t.include,t.exclude],([b,_])=>{b&&p(y=>ys(b,y)),_&&p(y=>!ys(_,y))},{flush:"post",deep:!0});let m=null;const S=()=>{m!=null&&(qi(n.subTree.type)?Le(()=>{s.set(m,vi(n.subTree))},n.subTree.suspense):s.set(m,vi(n.subTree)))};return ii(S),gd(S),ko(()=>{s.forEach(b=>{const{subTree:_,suspense:y}=n,E=vi(_);if(b.type===E.type&&b.key===E.key){Ko(E);const C=E.component.da;C&&Le(C,y);return}h(b)})}),()=>{if(m=null,!e.default)return o=null;const b=e.default(),_=b[0];if(b.length>1)return o=null,b;if(!pr(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let y=vi(_);if(y.type===je)return o=null,y;const E=y.type,C=za(bn(y)?y.type.__asyncResolved||{}:E),{include:T,exclude:R,max:k}=t;if(T&&(!C||!ys(T,C))||R&&C&&ys(R,C))return y.shapeFlag&=-257,o=y,_;const O=y.key==null?E:y.key,L=s.get(O);return y.el&&(y=kn(y),_.shapeFlag&128&&(_.ssContent=y)),m=O,L?(y.el=L.el,y.component=L.component,y.transition&&jr(y,y.transition),y.shapeFlag|=512,i.delete(O),i.add(O)):(i.add(O),k&&i.size>parseInt(k,10)&&g(i.values().next().value)),y.shapeFlag|=256,o=y,qi(_.type)?_:y}}},vv=_v;function ys(t,e){return Q(t)?t.some(n=>ys(n,e)):ke(t)?t.split(",").includes(e):g_(t)?(t.lastIndex=0,t.test(e)):!1}function mv(t,e){pd(t,"a",e)}function yv(t,e){pd(t,"da",e)}function pd(t,e,n=Je){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(xo(e,r,n),n){let s=n.parent;for(;s&&s.parent;)si(s.parent.vnode)&&bv(r,e,n,s),s=s.parent}}function bv(t,e,n,r){const s=xo(e,t,r,!0);_d(()=>{Vl(r[e],s)},n)}function Ko(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function vi(t){return t.shapeFlag&128?t.ssContent:t}function xo(t,e,n=Je,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{Sn();const a=oi(n),l=Vt(e,n,t,o);return a(),Cn(),l});return r?s.unshift(i):s.push(i),i}}
vendor: 4,651 bytes, line 4
4const On=t=>(e,n=Je)=>{(!Br||t==="sp")&&xo(t,(...r)=>e(...r),n)},wv=On("bm"),ii=On("m"),Ev=On("bu"),gd=On("u"),ko=On("bum"),_d=On("um"),Sv=On("sp"),Cv=On("rtg"),xv=On("rtc");function vd(t,e=Je){xo("ec",t,e)}const kv="components",md=Symbol.for("v-ndc");function Rv(t){return ke(t)?Tv(kv,t,!1)||t:t||md}function Tv(t,e,n=!0,r=!1){const s=Ze||Je;if(s){const i=s.type;{const a=za(i,!1);if(a&&(a===e||a===Rt(e)||a===yo(Rt(e))))return i}const o=Kc(s[t]||i[t],e)||Kc(s.appContext[t],e);return!o&&r?i:o}}function Kc(t,e){return t&&(t[e]||t[Rt(e)]||t[yo(Rt(e))])}function _C(t,e,n,r){let s;const i=n,o=Q(t);if(o||ke(t)){const a=o&&Ht(t);let l=!1,u=!1;a&&(l=!kt(t),u=rn(t),t=So(t)),s=new Array(t.length);for(let c=0,f=t.length;c<f;c++)s[c]=e(l?u?Hr(Bt(t[c])):Bt(t[c]):t[c],c,void 0,i)}else if(typeof t=="number"){s=new Array(t);for(let a=0;a<t;a++)s[a]=e(a+1,a,void 0,i)}else if(ge(t))if(t[Symbol.iterator])s=Array.from(t,(a,l)=>e(a,l,void 0,i));else{const a=Object.keys(t);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=e(t[c],c,l,i)}}else s=[];return s}function vC(t,e,n={},r,s){if(Ze.ce||Ze.parent&&bn(Ze.parent)&&Ze.parent.ce){const u=Object.keys(n).length>0;return e!=="default"&&(n.name=e),vt(),_n(st,null,[Re("slot",n,r&&r())],u?-2:64)}let i=t[e];i&&i._c&&(i._d=!1),vt();const o=i&&yd(i(n)),a=n.key||o&&o.key,l=_n(st,{key:(a&&!Ut(a)?a:`_${e}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&t._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function yd(t){return t.some(e=>pr(e)?!(e.type===je||e.type===st&&!yd(e.children)):!0)?t:null}const Ua=t=>t?qd(t)?Ao(t):Ua(t.parent):null,Is=Be(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Ua(t.parent),$root:t=>Ua(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>wd(t),$forceUpdate:t=>t.f||(t.f=()=>{Xl(t.update)}),$nextTick:t=>t.n||(t.n=xn.bind(t.proxy)),$watch:t=>ov.bind(t)}),zo=(t,e)=>t!==pe&&!t.__isScriptSetup&&ve(t,e),Pv={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=t;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return i[e]}else{if(zo(r,e))return o[e]=1,r[e];if(s!==pe&&ve(s,e))return o[e]=2,s[e];if(ve(i,e))return o[e]=3,i[e];if(n!==pe&&ve(n,e))return o[e]=4,n[e];Ba&&(o[e]=0)}}const u=Is[e];let c,f;if(u)return e==="$attrs"&&rt(t.attrs,"get",""),u(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==pe&&ve(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,ve(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:i}=t;return zo(s,e)?(s[e]=n,!0):r!==pe&&ve(r,e)?(r[e]=n,!0):ve(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||t!==pe&&a[0]!=="$"&&ve(t,a)||zo(e,a)||ve(i,a)||ve(r,a)||ve(Is,a)||ve(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ve(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function mC(){return Av().attrs}function Av(t){const e=zn();return e.setupContext||(e.setupContext=Kd(e))}function Bi(t){return Q(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function yC(t,e){return!t||!e?t||e:Q(t)&&Q(e)?t.concat(e):Be({},Bi(t),Bi(e))}let Ba=!0;function Ov(t){const e=wd(t),n=t.proxy,r=t.ctx;Ba=!1,e.beforeCreate&&zc(e.beforeCreate,t,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:g,deactivated:m,beforeDestroy:S,beforeUnmount:b,destroyed:_,unmounted:y,render:E,renderTracked:C,renderTriggered:T,errorCaptured:R,serverPrefetch:k,expose:O,inheritAttrs:L,components:A,directives:H,filters:ne}=e;if(u&&Mv(u,r,null),o)for(const Y in o){const B=o[Y];se(B)&&(r[Y]=B.bind(n))}if(s){const Y=s.call(n,n);ge(Y)&&(t.data=An(Y))}if(Ba=!0,i)for(const Y in i){const B=i[Y],le=se(B)?B.bind(n,n):se(B.get)?B.get.bind(n,n):nn,Ve=!se(B)&&se(B.set)?B.set.bind(n):nn,Pe=mt({get:le,set:Ve});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:ae=>Pe.value=ae})}if(a)for(const Y in a)bd(a[Y],r,n,Y);if(l){const Y=se(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(B=>{Wn(B,Y[B])})}c&&zc(c,t,"c");function U(Y,B){Q(B)?B.forEach(le=>Y(le.bind(n))):B&&Y(B.bind(n))}if(U(wv,f),U(ii,d),U(Ev,h),U(gd,p),U(mv,g),U(yv,m),U(vd,R),U(xv,C),U(Cv,T),U(ko,b),U(_d,y),U(Sv,k),Q(O))if(O.length){const Y=t.exposed||(t.exposed={});O.forEach(B=>{Object.defineProperty(Y,B,{get:()=>n[B],set:le=>n[B]=le,enumerable:!0})})}
vendor: 4,734 bytes, line 4
4else t.exposed||(t.exposed={});E&&t.render===nn&&(t.render=E),L!=null&&(t.inheritAttrs=L),A&&(t.components=A),H&&(t.directives=H),k&&nc(t)}function Mv(t,e,n=nn){Q(t)&&(t=Va(t));for(const r in t){const s=t[r];let i;ge(s)?"default"in s?i=Qe(s.from||r,s.default,!0):i=Qe(s.from||r):i=Qe(s),Te(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function zc(t,e,n){Vt(Q(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function bd(t,e,n,r){let s=r.includes(".")?id(n,r):()=>n[r];if(ke(t)){const i=e[t];se(i)&&yn(s,i)}else if(se(t))yn(s,t.bind(n));else if(ge(t))if(Q(t))t.forEach(i=>bd(i,e,n,r));else{const i=se(t.handler)?t.handler.bind(n):e[t.handler];se(i)&&yn(s,i,t)}}function wd(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(u=>Vi(l,u,o,!0)),Vi(l,e,o)),ge(e)&&i.set(e,l),l}function Vi(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&Vi(t,i,n,!0),s&&s.forEach(o=>Vi(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=Iv[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const Iv={data:Yc,props:Jc,emits:Jc,methods:bs,computed:bs,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:bs,directives:bs,watch:Fv,provide:Yc,inject:$v};function Yc(t,e){return e?t?function(){return Be(se(t)?t.call(this,this):t,se(e)?e.call(this,this):e)}:e:t}function $v(t,e){return bs(Va(t),Va(e))}function Va(t){if(Q(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function at(t,e){return t?[...new Set([].concat(t,e))]:e}function bs(t,e){return t?Be(Object.create(null),t,e):e}function Jc(t,e){return t?Q(t)&&Q(e)?[...new Set([...t,...e])]:Be(Object.create(null),Bi(t),Bi(e??{})):e}function Fv(t,e){if(!t)return e;if(!e)return t;const n=Be(Object.create(null),t);for(const r in e)n[r]=at(t[r],e[r]);return n}function Ed(){return{app:null,config:{isNativeTag:Ch,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Nv=0;function Lv(t,e){return function(r,s=null){se(r)||(r=Be({},r)),s!=null&&!ge(s)&&(s=null);const i=Ed(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Nv++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:gm,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&se(c.install)?(o.add(c),c.install(u,...f)):se(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||Re(r,s);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),f&&e?e(h,c):t(h,c,d),l=!0,u._container=c,c.__vue_app__=u,Ao(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Vt(a,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=cr;cr=u;try{return c()}finally{cr=f}}};return u}}let cr=null;function bC(t,e,n=pe){const r=zn(),s=Rt(e),i=Pn(e),o=Sd(t,s),a=Xh((l,u)=>{let c,f=pe,d;return iv(()=>{const h=t[s];_t(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const p=n.set?n.set(h):h;if(!_t(p,c)&&!(f!==pe&&_t(h,f)))return;const g=r.vnode.props;g&&(e in g||s in g||i in g)&&(`onUpdate:${e}`in g||`onUpdate:${s}`in g||`onUpdate:${i}`in g)||(c=h,u()),r.emit(`update:${e}`,p),_t(h,p)&&_t(h,f)&&!_t(p,d)&&u(),f=h,d=p}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||pe:a,done:!1}:{done:!0}}}},a}const Sd=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Rt(e)}Modifiers`]||t[`${Pn(e)}Modifiers`];function Dv(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||pe;let s=n;const i=e.startsWith("update:"),o=i&&Sd(r,e.slice(7));o&&(o.trim&&(s=n.map(c=>ke(c)?c.trim():c)),o.number&&(s=n.map(Wl)));let a,l=r[a=Uo(e)]||r[a=Uo(Rt(e))];!l&&i&&(l=r[a=Uo(Pn(e))]),l&&Vt(l,t,6,s);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Vt(u,t,6,s)}}const Hv=new WeakMap;function Cd(t,e,n=!1){const r=n?Hv:e.emitsCache,s=r.get(t);if(s!==void 0)return s;const i=t.emits;let o={},a=!1;if(!se(t)){const l=u=>{const c=Cd(u,e,!0);c&&(a=!0,Be(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}
vendor: 9,530 bytes, line 4
4return!i&&!a?(ge(t)&&r.set(t,null),null):(Q(i)?i.forEach(l=>o[l]=null):Be(o,i),ge(t)&&r.set(t,o),o)}function Ro(t,e){return!t||!ei(e)?!1:(e=e.slice(2).replace(/Once$/,""),ve(t,e[0].toLowerCase()+e.slice(1))||ve(t,Pn(e))||ve(t,e))}function Yo(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:g}=t,m=ji(t);let S,b;try{if(n.shapeFlag&4){const y=s||r,E=y;S=Ct(u.call(E,y,c,f,h,d,p)),b=a}else{const y=e;S=Ct(y.length>1?y(f,{attrs:a,slots:o,emit:l}):y(f,null)),b=e.props?a:Uv(a)}}catch(y){Fs.length=0,Zr(y,t,1),S=Re(je)}let _=S;if(b&&g!==!1){const y=Object.keys(b),{shapeFlag:E}=_;y.length&&E&7&&(i&&y.some(Bl)&&(b=Bv(b,i)),_=kn(_,b,!1,!0))}return n.dirs&&(_=kn(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&jr(_,n.transition),S=_,ji(m),S}function jv(t,e=!0){let n;for(let r=0;r<t.length;r++){const s=t[r];if(pr(s)){if(s.type!==je||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Uv=t=>{let e;for(const n in t)(n==="class"||n==="style"||ei(n))&&((e||(e={}))[n]=t[n]);return e},Bv=(t,e)=>{const n={};for(const r in t)(!Bl(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Vv(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Zc(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(xd(o,r,d)&&!Ro(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Zc(r,o,u):!0:!!o;return!1}function Zc(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(xd(e,t,i)&&!Ro(n,i))return!0}return!1}function xd(t,e,n){const r=t[n],s=e[n];return n==="style"&&ge(r)&&ge(s)?!hr(r,s):r!==s}function To({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const kd={},Rd=()=>Object.create(kd),Td=t=>Object.getPrototypeOf(t)===kd;function Wv(t,e,n,r=!1){const s={},i=Rd();t.propsDefaults=Object.create(null),Pd(t,e,s,i);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=r?s:en(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function qv(t,e,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=t,a=he(s),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Ro(t.emitsOptions,d))continue;const h=e[d];if(l)if(ve(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const p=Rt(d);s[p]=Wa(l,a,p,h,t,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{Pd(t,e,s,i)&&(u=!0);let c;for(const f in a)(!e||!ve(e,f)&&((c=Pn(f))===f||!ve(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=Wa(l,a,f,void 0,t,!0)):delete s[f]);if(i!==a)for(const f in i)(!e||!ve(e,f))&&(delete i[f],u=!0)}u&&pn(t.attrs,"set","")}function Pd(t,e,n,r){const[s,i]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(ar(l))continue;const u=e[l];let c;s&&ve(s,c=Rt(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Ro(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=he(n),u=a||pe;for(let c=0;c<i.length;c++){const f=i[c];n[f]=Wa(s,l,f,u[f],t,!ve(u,f))}}return o}function Wa(t,e,n,r,s,i){const o=t[n];if(o!=null){const a=ve(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&se(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=oi(s);r=u[n]=l.call(null,e),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Pn(n))&&(r=!0))}return r}const Gv=new WeakMap;function Ad(t,e,n=!1){const r=n?Gv:e.propsCache,s=r.get(t);if(s)return s;const i=t.props,o={},a=[];let l=!1;if(!se(t)){const c=f=>{l=!0;const[d,h]=Ad(f,e,!0);Be(o,d),h&&a.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return ge(t)&&r.set(t,Or),Or;if(Q(i))for(let c=0;c<i.length;c++){const f=Rt(i[c]);Xc(f)&&(o[f]=pe)}else if(i)for(const c in i){const f=Rt(c);if(Xc(f)){const d=i[c],h=o[f]=Q(d)||se(d)?{type:d}:Be({},d),p=h.type;let g=!1,m=!0;if(Q(p))for(let S=0;S<p.length;++S){const b=p[S],_=se(b)&&b.name;if(_==="Boolean"){g=!0;break}else _==="String"&&(m=!1)}else g=se(p)&&p.name==="Boolean";h[0]=g,h[1]=m,(g||ve(h,"default"))&&a.push(f)}}const u=[o,a];return ge(t)&&r.set(t,u),u}function Xc(t){return t[0]!=="$"&&!ar(t)}const rc=t=>t==="_"||t==="_ctx"||t==="$stable",sc=t=>Q(t)?t.map(Ct):[Ct(t)],Kv=(t,e,n)=>{if(e._n)return e;const r=Ql((...s)=>sc(e(...s)),n);return r._c=!1,r},Od=(t,e,n)=>{const r=t._ctx;for(const s in t){if(rc(s))continue;const i=t[s];if(se(i))e[s]=Kv(s,i,r);else if(i!=null){const o=sc(i);e[s]=()=>o}}},Md=(t,e)=>{const n=sc(e);t.slots.default=()=>n},Id=(t,e,n)=>{for(const r in e)(n||!rc(r))&&(t[r]=e[r])},zv=(t,e,n)=>{const r=t.slots=Rd();if(t.vnode.shapeFlag&32){const s=e._;s?(Id(r,e,n),n&&Th(r,"_",s,!0)):Od(e,r)}else e&&Md(t,e)},Yv=(t,e,n)=>{const{vnode:r,slots:s}=t;let i=!0,o=pe;if(r.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:Id(s,e,n):(i=!e.$stable,Od(e,s)),o=e}else e&&(Md(t,e),o={default:1});if(i)for(const a in s)!rc(a)&&o[a]==null&&delete s[a]},Le=Hd;function Jv(t){return $d(t)}function Zv(t){return $d(t,dv)}function $d(t,e){const n=bo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=nn,insertStaticContent:p}=t,g=(v,w,x,$=null,M=null,F=null,G=void 0,j=null,D=!!w.dynamicChildren)=>{if(v===w)return;v&&!Lt(v,w)&&($=I(v),ae(v,M,F,!0),v=null),w.patchFlag===-2&&(D=!1,w.dynamicChildren=null);const{type:N,ref:re,shapeFlag:J}=w;switch(N){case ur:m(v,w,x,$);break;case je:S(v,w,x,$);break;case $s:v==null&&b(w,x,$,G);break;case st:A(v,w,x,$,M,F,G,j,D);break;default:J&1?E(v,w,x,$,M,F,G,j,D):J&6?H(v,w,x,$,M,F,G,j,D):(J&64||J&128)&&N.process(v,w,x,$,M,F,G,j,D,X)}re!=null&&M?Fr(re,v&&v.ref,F,w||v,!w):re==null&&v&&v.ref!=null&&Fr(v.ref,null,F,v,!0)},m=(v,w,x,$)=>{if(v==null)r(w.el=a(w.children),x,$);else{const M=w.el=v.el;w.children!==v.children&&u(M,w.children)}},S=(v,w,x,$)=>{v==null?r(w.el=l(w.children||""),x,$):w.el=v.el},b=(v,w,x,$)=>{[v.el,v.anchor]=p(v.children,w,x,$,v.el,v.anchor)},_=({el:v,anchor:w},x,$)=>{let M;for(;v&&v!==w;)M=d(v),r(v,x,$),v=M;r(w,x,$)},y=({el:v,anchor:w})=>{let x;for(;v&&v!==w;)x=d(v),s(v),v=x;s(w)},E=(v,w,x,$,M,F,G,j,D)=>{if(w.type==="svg"?G="svg":w.type==="math"&&(G="mathml"),v==null)C(w,x,$,M,F,G,j,D);else{const N=v.el&&v.el._isVueCE?v.el:null;try{N&&N._beginPatch(),k(v,w,M,F,G,j,D)}finally{N&&N._endPatch()}}},C=(v,w,x,$,M,F,G,j)=>{let D,N;const{props:re,shapeFlag:J,transition:ee,dirs:ie}=v;if(D=v.el=o(v.type,F,re&&re.is,re),J&8?c(D,v.children):J&16&&R(v.children,D,null,$,M,Jo(v,F),G,j),ie&&Zt(v,null,$,"created"),T(D,v,v.scopeId,G,$),re){for(const Ee in re)Ee!=="value"&&!ar(Ee)&&i(D,Ee,null,re[Ee],F,$);"value"in re&&i(D,"value",null,re.value,F),(N=re.onVnodeBeforeMount)&&pt(N,$,v)}ie&&Zt(v,null,$,"beforeMount");const de=Fd(M,ee);de&&ee.beforeEnter(D),r(D,w,x),((N=re&&re.onVnodeMounted)||de||ie)&&Le(()=>{N&&pt(N,$,v),de&&ee.enter(D),ie&&Zt(v,null,$,"mounted")},M)},T=(v,w,x,$,M)=>{if(x&&h(v,x),$)for(let F=0;F<$.length;F++)h(v,$[F]);if(M){let F=M.subTree;if(w===F||qi(F.type)&&(F.ssContent===w||F.ssFallback===w)){const G=M.vnode;T(v,G,G.scopeId,G.slotScopeIds,M.parent)}}},R=(v,w,x,$,M,F,G,j,D=0)=>{for(let N=D;N<v.length;N++){const re=v[N]=j?dn(v[N]):Ct(v[N]);g(null,re,w,x,$,M,F,G,j)}},k=(v,w,x,$,M,F,G)=>{const j=w.el=v.el;let{patchFlag:D,dynamicChildren:N,dirs:re}=w;D|=v.patchFlag&16;const J=v.props||pe,ee=w.props||pe;let ie;if(x&&Yn(x,!1),(ie=ee.onVnodeBeforeUpdate)&&pt(ie,x,w,v),re&&Zt(w,v,x,"beforeUpdate"),x&&Yn(x,!0),(J.innerHTML&&ee.innerHTML==null||J.textContent&&ee.textContent==null)&&c(j,""),N?O(v.dynamicChildren,N,j,x,$,Jo(w,M),F):G||B(v,w,j,null,x,$,Jo(w,M),F,!1),D>0){if(D&16)L(j,J,ee,x,M);else if(D&2&&J.class!==ee.class&&i(j,"class",null,ee.class,M),D&4&&i(j,"style",J.style,ee.style,M),D&8){const de=w.dynamicProps;for(let Ee=0;Ee<de.length;Ee++){const ye=de[Ee],dt=J[ye],et=ee[ye];(et!==dt||ye==="value")&&i(j,ye,dt,et,M,x)}}D&1&&v.children!==w.children&&c(j,w.children)}else!G&&N==null&&L(j,J,ee,x,M);((ie=ee.onVnodeUpdated)||re)&&Le(()=>{ie&&pt(ie,x,w,v),re&&Zt(w,v,x,"updated")},$)},O=(v,w,x,$,M,F,G)=>{for(let j=0;j<w.length;j++){const D=v[j],N=w[j],re=D.el&&(D.type===st||!Lt(D,N)||D.shapeFlag&198)?f(D.el):x;g(D,N,re,null,$,M,F,G,!0)}},L=(v,w,x,$,M)=>{if(w!==x){if(w!==pe)for(const F in w)!ar(F)&&!(F in x)&&i(v,F,w[F],null,M,$);for(const F in x){if(ar(F))continue;const G=x[F],j=w[F];G!==j&&F!=="value"&&i(v,F,j,G,M,$)}"value"in x&&i(v,"value",w.value,x.value,M)}},A=(v,w,x,$,M,F,G,j,D)=>{const N=w.el=v?v.el:a(""),re=w.anchor=v?v.anchor:a("");let{patchFlag:J,dynamicChildren:ee,slotScopeIds:ie}=w;ie&&(j=j?j.concat(ie):ie),v==null?(r(N,x,$),r(re,x,$),R(w.children||[],x,re,M,F,G,j,D)):J>0&&J&64&&ee&&v.dynamicChildren&&v.dynamicChildren.length===ee.length?(O(v.dynamicChildren,ee,x,M,F,G,j),(w.key!=null||M&&w===M.subTree)&&ic(v,w,!0)):B(v,w,x,re,M,F,G,j,D)},H=(v,w,x,$,M,F,G,j,D)=>{w.slotScopeIds=j,v==null?w.shapeFlag&512?M.ctx.activate(w,x,$,G,D):ne(w,x,$,M,F,G,D):oe(v,w,D)},ne=(v,w,x,$,M,F,G)=>{const j=v.component=um(v,$,M);if(si(v)&&(j.ctx.renderer=X),fm(j,!1,G),j.asyncDep){if(M&&M.registerDep(j,U,G),!v.el){const D=j.subTree=Re(je);S(null,D,w,x),v.placeholder=D.el}}else U(j,v,w,x,M,F,G)},oe=(v,w,x)=>{const $=w.component=v.component;if(Vv(v,w,x))if($.asyncDep&&!$.asyncResolved){Y($,w,x);return}
vendor: 24,750 bytes, line 4
4else $.next=w,$.update();else w.el=v.el,$.vnode=w},U=(v,w,x,$,M,F,G)=>{const j=()=>{if(v.isMounted){let{next:J,bu:ee,u:ie,parent:de,vnode:Ee}=v;{const wt=Nd(v);if(wt){J&&(J.el=Ee.el,Y(v,J,G)),wt.asyncDep.then(()=>{Le(()=>{v.isUnmounted||N()},M)});return}}let ye=J,dt;Yn(v,!1),J?(J.el=Ee.el,Y(v,J,G)):J=Ee,ee&&Ir(ee),(dt=J.props&&J.props.onVnodeBeforeUpdate)&&pt(dt,de,J,Ee),Yn(v,!0);const et=Yo(v),Ft=v.subTree;v.subTree=et,g(Ft,et,f(Ft.el),I(Ft),v,M,F),J.el=et.el,ye===null&&To(v,et.el),ie&&Le(ie,M),(dt=J.props&&J.props.onVnodeUpdated)&&Le(()=>pt(dt,de,J,Ee),M)}else{let J;const{el:ee,props:ie}=w,{bm:de,m:Ee,parent:ye,root:dt,type:et}=v,Ft=bn(w);if(Yn(v,!1),de&&Ir(de),!Ft&&(J=ie&&ie.onVnodeBeforeMount)&&pt(J,ye,w),Yn(v,!0),ee&&be){const wt=()=>{v.subTree=Yo(v),be(ee,v.subTree,v,M,null)};Ft&&et.__asyncHydrate?et.__asyncHydrate(ee,v,wt):wt()}else{dt.ce&&dt.ce._hasShadowRoot()&&dt.ce._injectChildStyle(et);const wt=v.subTree=Yo(v);g(null,wt,x,$,v,M,F),w.el=wt.el}if(Ee&&Le(Ee,M),!Ft&&(J=ie&&ie.onVnodeMounted)){const wt=w;Le(()=>pt(J,ye,wt),M)}(w.shapeFlag&256||ye&&bn(ye.vnode)&&ye.vnode.shapeFlag&256)&&v.a&&Le(v.a,M),v.isMounted=!0,w=x=$=null}};v.scope.on();const D=v.effect=new Nh(j);v.scope.off();const N=v.update=D.run.bind(D),re=v.job=D.runIfDirty.bind(D);re.i=v,re.id=v.uid,D.scheduler=()=>Xl(re),Yn(v,!0),N()},Y=(v,w,x)=>{w.component=v;const $=v.vnode.props;v.vnode=w,v.next=null,qv(v,w.props,$,x),Yv(v,w.children,x),Sn(),Dc(v),Cn()},B=(v,w,x,$,M,F,G,j,D=!1)=>{const N=v&&v.children,re=v?v.shapeFlag:0,J=w.children,{patchFlag:ee,shapeFlag:ie}=w;if(ee>0){if(ee&128){Ve(N,J,x,$,M,F,G,j,D);return}else if(ee&256){le(N,J,x,$,M,F,G,j,D);return}}ie&8?(re&16&&Oe(N,M,F),J!==N&&c(x,J)):re&16?ie&16?Ve(N,J,x,$,M,F,G,j,D):Oe(N,M,F,!0):(re&8&&c(x,""),ie&16&&R(J,x,$,M,F,G,j,D))},le=(v,w,x,$,M,F,G,j,D)=>{v=v||Or,w=w||Or;const N=v.length,re=w.length,J=Math.min(N,re);let ee;for(ee=0;ee<J;ee++){const ie=w[ee]=D?dn(w[ee]):Ct(w[ee]);g(v[ee],ie,x,null,M,F,G,j,D)}N>re?Oe(v,M,F,!0,!1,J):R(w,x,$,M,F,G,j,D,J)},Ve=(v,w,x,$,M,F,G,j,D)=>{let N=0;const re=w.length;let J=v.length-1,ee=re-1;for(;N<=J&&N<=ee;){const ie=v[N],de=w[N]=D?dn(w[N]):Ct(w[N]);if(Lt(ie,de))g(ie,de,x,null,M,F,G,j,D);else break;N++}for(;N<=J&&N<=ee;){const ie=v[J],de=w[ee]=D?dn(w[ee]):Ct(w[ee]);if(Lt(ie,de))g(ie,de,x,null,M,F,G,j,D);else break;J--,ee--}if(N>J){if(N<=ee){const ie=ee+1,de=ie<re?w[ie].el:$;for(;N<=ee;)g(null,w[N]=D?dn(w[N]):Ct(w[N]),x,de,M,F,G,j,D),N++}}else if(N>ee)for(;N<=J;)ae(v[N],M,F,!0),N++;else{const ie=N,de=N,Ee=new Map;for(N=de;N<=ee;N++){const Et=w[N]=D?dn(w[N]):Ct(w[N]);Et.key!=null&&Ee.set(Et.key,N)}let ye,dt=0;const et=ee-de+1;let Ft=!1,wt=0;const ns=new Array(et);for(N=0;N<et;N++)ns[N]=0;for(N=ie;N<=J;N++){const Et=v[N];if(dt>=et){ae(Et,M,F,!0);continue}let Kt;if(Et.key!=null)Kt=Ee.get(Et.key);else for(ye=de;ye<=ee;ye++)if(ns[ye-de]===0&&Lt(Et,w[ye])){Kt=ye;break}Kt===void 0?ae(Et,M,F,!0):(ns[Kt-de]=N+1,Kt>=wt?wt=Kt:Ft=!0,g(Et,w[Kt],x,null,M,F,G,j,D),dt++)}const Oc=Ft?Xv(ns):Or;for(ye=Oc.length-1,N=et-1;N>=0;N--){const Et=de+N,Kt=w[Et],Mc=w[Et+1],Ic=Et+1<re?Mc.el||Ld(Mc):$;ns[N]===0?g(null,Kt,x,Ic,M,F,G,j,D):Ft&&(ye<0||N!==Oc[ye]?Pe(Kt,x,Ic,2):ye--)}}},Pe=(v,w,x,$,M=null)=>{const{el:F,type:G,transition:j,children:D,shapeFlag:N}=v;if(N&6){Pe(v.component.subTree,w,x,$);return}if(N&128){v.suspense.move(w,x,$);return}if(N&64){G.move(v,w,x,X);return}if(G===st){r(F,w,x);for(let J=0;J<D.length;J++)Pe(D[J],w,x,$);r(v.anchor,w,x);return}if(G===$s){_(v,w,x);return}if($!==2&&N&1&&j)if($===0)j.beforeEnter(F),r(F,w,x),Le(()=>j.enter(F),M);else{const{leave:J,delayLeave:ee,afterLeave:ie}=j,de=()=>{v.ctx.isUnmounted?s(F):r(F,w,x)},Ee=()=>{F._isLeaving&&F[Xt](!0),J(F,()=>{de(),ie&&ie()})};ee?ee(F,de,Ee):Ee()}else r(F,w,x)},ae=(v,w,x,$=!1,M=!1)=>{const{type:F,props:G,ref:j,children:D,dynamicChildren:N,shapeFlag:re,patchFlag:J,dirs:ee,cacheIndex:ie}=v;if(J===-2&&(M=!1),j!=null&&(Sn(),Fr(j,null,x,v,!0),Cn()),ie!=null&&(w.renderCache[ie]=void 0),re&256){w.ctx.deactivate(v);return}const de=re&1&&ee,Ee=!bn(v);let ye;if(Ee&&(ye=G&&G.onVnodeBeforeUnmount)&&pt(ye,w,v),re&6)$e(v.component,x,$);else{if(re&128){v.suspense.unmount(x,$);return}de&&Zt(v,null,w,"beforeUnmount"),re&64?v.type.remove(v,w,x,X,$):N&&!N.hasOnce&&(F!==st||J>0&&J&64)?Oe(N,w,x,!1,!0):(F===st&&J&384||!M&&re&16)&&Oe(D,w,x),$&&Ie(v)}(Ee&&(ye=G&&G.onVnodeUnmounted)||de)&&Le(()=>{ye&&pt(ye,w,v),de&&Zt(v,null,w,"unmounted")},x)},Ie=v=>{const{type:w,el:x,anchor:$,transition:M}=v;if(w===st){Ae(x,$);return}if(w===$s){y(v);return}const F=()=>{s(x),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(v.shapeFlag&1&&M&&!M.persisted){const{leave:G,delayLeave:j}=M,D=()=>G(x,F);j?j(v.el,F,D):D()}else F()},Ae=(v,w)=>{let x;for(;v!==w;)x=d(v),s(v),v=x;s(w)},$e=(v,w,x)=>{const{bum:$,scope:M,job:F,subTree:G,um:j,m:D,a:N}=v;Wi(D),Wi(N),$&&Ir($),M.stop(),F&&(F.flags|=8,ae(G,v,w,x)),j&&Le(j,w),Le(()=>{v.isUnmounted=!0},w)},Oe=(v,w,x,$=!1,M=!1,F=0)=>{for(let G=F;G<v.length;G++)ae(v[G],w,x,$,M)},I=v=>{if(v.shapeFlag&6)return I(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const w=d(v.anchor||v.el),x=w&&w[od];return x?d(x):w};let Z=!1;const q=(v,w,x)=>{let $;v==null?w._vnode&&(ae(w._vnode,null,null,!0),$=w._vnode.component):g(w._vnode||null,v,w,null,null,null,x),w._vnode=v,Z||(Z=!0,Dc($),Hi(),Z=!1)},X={p:g,um:ae,m:Pe,r:Ie,mt:ne,mc:R,pc:B,pbc:O,n:I,o:t};let ce,be;return e&&([ce,be]=e(X)),{render:q,hydrate:ce,createApp:Lv(q,ce)}}function Jo({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Yn({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Fd(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ic(t,e,n=!1){const r=t.children,s=e.children;if(Q(r)&&Q(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=dn(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&ic(o,a)),a.type===ur&&(a.patchFlag===-1&&(a=s[i]=dn(a)),a.el=o.el),a.type===je&&!a.el&&(a.el=o.el)}}function Xv(t){const e=t.slice(),n=[0];let r,s,i,o,a;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(s=n[n.length-1],t[s]<u){e[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,t[n[a]]<u?i=a+1:o=a;u<t[n[i]]&&(i>0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function Nd(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Nd(e)}function Wi(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Ld(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Ld(e.subTree):null}const qi=t=>t.__isSuspense;let qa=0;const Qv={name:"Suspense",__isSuspense:!0,process(t,e,n,r,s,i,o,a,l,u){if(t==null)em(e,n,r,s,i,o,a,l,u);else{if(i&&i.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}tm(t,e,n,r,s,o,a,l,u)}},hydrate:nm,normalize:rm},oc=Qv;function qs(t,e){const n=t.props&&t.props[e];se(n)&&n()}function em(t,e,n,r,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=t.suspense=Dd(t,s,r,e,f,n,i,o,a,l);u(null,d.pendingBranch=t.ssContent,f,null,r,d,i,o),d.deps>0?(qs(t,"onPending"),qs(t,"onFallback"),u(null,t.ssFallback,e,n,r,null,i,o),Nr(d,t.ssFallback)):d.resolve(!1,!0)}function tm(t,e,n,r,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const d=e.ssContent,h=e.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:m,isHydrating:S}=f;if(g)f.pendingBranch=d,Lt(g,d)?(l(g,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():m&&(S||(l(p,h,n,r,s,null,i,o,a),Nr(f,h)))):(f.pendingId=qa++,S?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),m?(l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():(l(p,h,n,r,s,null,i,o,a),Nr(f,h))):p&&Lt(p,d)?(l(p,d,n,r,s,f,i,o,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(p&&Lt(p,d))l(p,d,n,r,s,f,i,o,a),Nr(f,d);else if(qs(e,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=qa++,l(null,d,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:_}=f;b>0?setTimeout(()=>{f.pendingId===_&&f.fallback(h)},b):b===0&&f.fallback(h)}}function Dd(t,e,n,r,s,i,o,a,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:g,remove:m}}=u;let S;const b=sm(t);b&&e&&e.pendingBranch&&(S=e.pendingId,e.deps++);const _=t.props?Ph(t.props.timeout):void 0,y=i,E={vnode:t,parent:e,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:qa++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(C=!1,T=!1){const{vnode:R,activeBranch:k,pendingBranch:O,pendingId:L,effects:A,parentComponent:H,container:ne,isInFallback:oe}=E;let U=!1;E.isHydrating?E.isHydrating=!1:C||(U=k&&O.transition&&O.transition.mode==="out-in",U&&(k.transition.afterLeave=()=>{L===E.pendingId&&(d(O,ne,i===y?p(k):i,0),La(A),oe&&R.ssFallback&&(R.ssFallback.el=null))}),k&&(g(k.el)===ne&&(i=p(k)),h(k,H,E,!0),!U&&oe&&R.ssFallback&&Le(()=>R.ssFallback.el=null,E)),U||d(O,ne,i,0)),Nr(E,O),E.pendingBranch=null,E.isInFallback=!1;let Y=E.parent,B=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...A),B=!0;break}Y=Y.parent}!B&&!U&&La(A),E.effects=[],b&&e&&e.pendingBranch&&S===e.pendingId&&(e.deps--,e.deps===0&&!T&&e.resolve()),qs(R,"onResolve")},fallback(C){if(!E.pendingBranch)return;const{vnode:T,activeBranch:R,parentComponent:k,container:O,namespace:L}=E;qs(T,"onFallback");const A=p(R),H=()=>{E.isInFallback&&(f(null,C,O,A,k,null,L,a,l),Nr(E,C))},ne=C.transition&&C.transition.mode==="out-in";ne&&(R.transition.afterLeave=H),E.isInFallback=!0,h(R,k,null,!0),ne||H()},move(C,T,R){E.activeBranch&&d(E.activeBranch,C,T,R),E.container=C},next(){return E.activeBranch&&p(E.activeBranch)},registerDep(C,T,R){const k=!!E.pendingBranch;k&&E.deps++;const O=C.vnode.el;C.asyncDep.catch(L=>{Zr(L,C,0)}).then(L=>{if(C.isUnmounted||E.isUnmounted||E.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:A}=C;Ka(C,L),O&&(A.el=O);const H=!O&&C.subTree.el;T(C,A,g(O||C.subTree.el),O?null:p(C.subTree),E,o,R),H&&(A.placeholder=null,m(H)),To(C,A.el),k&&--E.deps===0&&E.resolve()})},unmount(C,T){E.isUnmounted=!0,E.activeBranch&&h(E.activeBranch,n,C,T),E.pendingBranch&&h(E.pendingBranch,n,C,T)}};return E}function nm(t,e,n,r,s,i,o,a,l){const u=e.suspense=Dd(e,r,n,t.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(t,u.pendingBranch=e.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function rm(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=Qc(r?n.default:n),t.ssFallback=r?Qc(n.fallback):Re(je)}function Qc(t){let e;if(se(t)){const n=Ur&&t._c;n&&(t._d=!1,vt()),t=t(),n&&(t._d=!0,e=yt,jd())}return Q(t)&&(t=jv(t)),t=Ct(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function Hd(t,e){e&&e.pendingBranch?Q(t)?e.effects.push(...t):e.effects.push(t):La(t)}function Nr(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let s=e.el;for(;!s&&e.component;)e=e.component.subTree,s=e.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,To(r,s))}function sm(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const st=Symbol.for("v-fgt"),ur=Symbol.for("v-txt"),je=Symbol.for("v-cmt"),$s=Symbol.for("v-stc"),Fs=[];let yt=null;function vt(t=!1){Fs.push(yt=t?null:[])}function jd(){Fs.pop(),yt=Fs[Fs.length-1]||null}let Ur=1;function Gi(t,e=!1){Ur+=t,t<0&&yt&&e&&(yt.hasOnce=!0)}function Ud(t){return t.dynamicChildren=Ur>0?yt||Or:null,jd(),Ur>0&&yt&&yt.push(t),t}function Po(t,e,n,r,s,i){return Ud(Jt(t,e,n,r,s,i,!0))}function _n(t,e,n,r,s){return Ud(Re(t,e,n,r,s,!0))}function pr(t){return t?t.__v_isVNode===!0:!1}function Lt(t,e){return t.type===e.type&&t.key===e.key}const Bd=({key:t})=>t??null,Ai=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ke(t)||Te(t)||se(t)?{i:Ze,r:t,k:e,f:!!n}:t:null);function Jt(t,e=null,n=null,r=0,s=null,i=t===st?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Bd(e),ref:e&&Ai(e),scopeId:sd,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ze};return a?(ac(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),Ur>0&&!o&&yt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&yt.push(l),l}const Re=im;function im(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===md)&&(t=je),pr(t)){const a=kn(t,e,!0);return n&&ac(a,n),Ur>0&&!i&&yt&&(a.shapeFlag&6?yt[yt.indexOf(t)]=a:yt.push(a)),a.patchFlag=-2,a}if(pm(t)&&(t=t.__vccOpts),e){e=om(e);let{class:a,style:l}=e;a&&!ke(a)&&(e.class=ti(a)),ge(l)&&(Co(l)&&!Q(l)&&(l=Be({},l)),e.style=wo(l))}const o=ke(t)?1:qi(t)?128:ad(t)?64:ge(t)?4:se(t)?2:0;return Jt(t,e,n,r,s,o,i,!0)}function om(t){return t?Co(t)||Td(t)?Be({},t):t:null}function kn(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=t,u=e?Wd(s||{},e):s,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Bd(u),ref:e&&e.ref?n&&i?Q(i)?i.concat(Ai(e)):[i,Ai(e)]:Ai(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==st?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&kn(t.ssContent),ssFallback:t.ssFallback&&kn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&jr(c,l.clone(c)),c}function Vd(t=" ",e=0){return Re(ur,null,t,e)}function am(t,e){const n=Re($s,null,t);return n.staticCount=e,n}function wC(t="",e=!1){return e?(vt(),_n(je,null,t)):Re(je,null,t)}function Ct(t){return t==null||typeof t=="boolean"?Re(je):Q(t)?Re(st,null,t.slice()):pr(t)?dn(t):Re(ur,null,String(t))}function dn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:kn(t)}function ac(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Q(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),ac(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!Td(e)?e._ctx=Ze:s===3&&Ze&&(Ze.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else se(e)?(e={default:e,_ctx:Ze},n=32):(e=String(e),r&64?(n=16,e=[Vd(e)]):n=8);t.children=e,t.shapeFlag|=n}function Wd(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=ti([e.class,r.class]));else if(s==="style")e.style=wo([e.style,r.style]);else if(ei(s)){const i=e[s],o=r[s];o&&i!==o&&!(Q(i)&&i.includes(o))&&(e[s]=i?[].concat(i,o):o)}else s!==""&&(e[s]=r[s])}return e}function pt(t,e,n,r=null){Vt(t,e,7,[n,r])}const lm=Ed();let cm=0;function um(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||lm,i={uid:cm++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Fh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ad(r,s),emitsOptions:Cd(r,s),emit:null,emitted:null,propsDefaults:pe,inheritAttrs:r.inheritAttrs,ctx:pe,data:pe,props:pe,attrs:pe,slots:pe,refs:pe,setupState:pe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=Dv.bind(null,i),t.ce&&t.ce(i),i}let Je=null;const zn=()=>Je||Ze;let Ki,Ga;{const t=bo(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Ki=e("__VUE_INSTANCE_SETTERS__",n=>Je=n),Ga=e("__VUE_SSR_SETTERS__",n=>Br=n)}const oi=t=>{const e=Je;return Ki(t),t.scope.on(),()=>{t.scope.off(),Ki(e)}},eu=()=>{Je&&Je.scope.off(),Ki(null)};function qd(t){return t.vnode.shapeFlag&4}let Br=!1;function fm(t,e=!1,n=!1){e&&Ga(e);const{props:r,children:s}=t.vnode,i=qd(t);Wv(t,r,i,e),zv(t,s,n||e);const o=i?hm(t,e):void 0;return e&&Ga(!1),o}function hm(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Pv);const{setup:r}=n;if(r){Sn();const s=t.setupContext=r.length>1?Kd(t):null,i=oi(t),o=ri(r,t,0,[t.props,s]),a=xh(o);if(Cn(),i(),(a||t.sp)&&!bn(t)&&nc(t),a){if(o.then(eu,eu),e)return o.then(l=>{Ka(t,l)}).catch(l=>{Zr(l,t,0)});t.asyncDep=o}else Ka(t,o)}else Gd(t)}function Ka(t,e,n){se(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ge(e)&&(t.setupState=Zh(e)),Gd(t)}function Gd(t,e,n){const r=t.type;t.render||(t.render=r.render||nn);{const s=oi(t);Sn();try{Ov(t)}finally{Cn(),s()}}}const dm={get(t,e){return rt(t,"get",""),t[e]}};function Kd(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,dm),slots:t.slots,emit:t.emit,expose:e}}function Ao(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Zh(Zl(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Is)return Is[n](t)},has(e,n){return n in e||n in Is}})):t.proxy}function za(t,e=!0){return se(t)?t.displayName||t.name:t.name||e&&t.__name}function pm(t){return se(t)&&"__vccOpts"in t}const mt=(t,e)=>X_(t,e,Br);function it(t,e,n){try{Gi(-1);const r=arguments.length;return r===2?ge(e)&&!Q(e)?pr(e)?Re(t,null,[e]):Re(t,e):Re(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pr(n)&&(n=[n]),Re(t,e,n))}finally{Gi(1)}}const gm="3.5.28";let Ya;const tu=typeof window<"u"&&window.trustedTypes;if(tu)try{Ya=tu.createPolicy("vue",{createHTML:t=>t})}catch{}const zd=Ya?t=>Ya.createHTML(t):t=>t,_m="http://www.w3.org/2000/svg",vm="http://www.w3.org/1998/Math/MathML",cn=typeof document<"u"?document:null,nu=cn&&cn.createElement("template"),mm={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e==="svg"?cn.createElementNS(_m,t):e==="mathml"?cn.createElementNS(vm,t):n?cn.createElement(t,{is:n}):cn.createElement(t);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>cn.createTextNode(t),createComment:t=>cn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>cn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{nu.innerHTML=zd(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=nu.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Mn="transition",is="animation",Gs=Symbol("_vtc"),Yd={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},ym=Be({},cd,Yd),bm=t=>(t.displayName="Transition",t.props=ym,t),wm=bm((t,{slots:e})=>it(uv,Em(t),e)),Jn=(t,e=[])=>{Q(t)?t.forEach(n=>n(...e)):t&&t(...e)},ru=t=>t?Q(t)?t.some(e=>e.length>1):t.length>1:!1;function Em(t){const e={};for(const A in t)A in Yd||(e[A]=t[A]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=Sm(s),g=p&&p[0],m=p&&p[1],{onBeforeEnter:S,onEnter:b,onEnterCancelled:_,onLeave:y,onLeaveCancelled:E,onBeforeAppear:C=S,onAppear:T=b,onAppearCancelled:R=_}=e,k=(A,H,ne,oe)=>{A._enterCancelled=oe,Zn(A,H?c:a),Zn(A,H?u:o),ne&&ne()},O=(A,H)=>{A._isLeaving=!1,Zn(A,f),Zn(A,h),Zn(A,d),H&&H()},L=A=>(H,ne)=>{const oe=A?T:b,U=()=>k(H,A,ne);Jn(oe,[H,U]),su(()=>{Zn(H,A?l:i),on(H,A?c:a),ru(oe)||iu(H,r,g,U)})};return Be(e,{onBeforeEnter(A){Jn(S,[A]),on(A,i),on(A,o)},onBeforeAppear(A){Jn(C,[A]),on(A,l),on(A,u)},onEnter:L(!1),onAppear:L(!0),onLeave(A,H){A._isLeaving=!0;const ne=()=>O(A,H);on(A,f),A._enterCancelled?(on(A,d),lu(A)):(lu(A),on(A,d)),su(()=>{A._isLeaving&&(Zn(A,f),on(A,h),ru(y)||iu(A,r,m,ne))}),Jn(y,[A,ne])},onEnterCancelled(A){k(A,!1,void 0,!0),Jn(_,[A])},onAppearCancelled(A){k(A,!0,void 0,!0),Jn(R,[A])},onLeaveCancelled(A){O(A),Jn(E,[A])}})}function Sm(t){if(t==null)return null;if(ge(t))return[Zo(t.enter),Zo(t.leave)];{const e=Zo(t);return[e,e]}}function Zo(t){return Ph(t)}function on(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Gs]||(t[Gs]=new Set)).add(e)}function Zn(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Gs];n&&(n.delete(e),n.size||(t[Gs]=void 0))}function su(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Cm=0;function iu(t,e,n,r){const s=t._endId=++Cm,i=()=>{s===t._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=xm(t,e);if(!o)return r();const u=o+"end";let c=0;const f=()=>{t.removeEventListener(u,d),i()},d=h=>{h.target===t&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),t.addEventListener(u,d)}function xm(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),s=r(`${Mn}Delay`),i=r(`${Mn}Duration`),o=ou(s,i),a=r(`${is}Delay`),l=r(`${is}Duration`),u=ou(a,l);let c=null,f=0,d=0;e===Mn?o>0&&(c=Mn,f=o,d=i.length):e===is?u>0&&(c=is,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?Mn:is:null,d=c?c===Mn?i.length:l.length:0);const h=c===Mn&&/\b(?:transform|all)(?:,|$)/.test(r(`${Mn}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function ou(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>au(n)+au(t[r])))}function au(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function lu(t){return(t?t.ownerDocument:document).body.offsetHeight}function km(t,e,n){const r=t[Gs];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const zi=Symbol("_vod"),Jd=Symbol("_vsh"),EC={name:"show",beforeMount(t,{value:e},{transition:n}){t[zi]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):os(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),os(t,!0),r.enter(t)):r.leave(t,()=>{os(t,!1)}):os(t,e))},beforeUnmount(t,{value:e}){os(t,e)}};function os(t,e){t.style.display=e?t[zi]:"none",t[Jd]=!e}const Rm=Symbol(""),Tm=/(?:^|;)\s*display\s*:/;function Pm(t,e,n){const r=t.style,s=ke(n);let i=!1;if(n&&!s){if(e)if(ke(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Oi(r,a,"")}else for(const o in e)n[o]==null&&Oi(r,o,"");for(const o in n)o==="display"&&(i=!0),Oi(r,o,n[o])}else if(s){if(e!==n){const o=r[Rm];o&&(n+=";"+o),r.cssText=n,i=Tm.test(n)}}else e&&t.removeAttribute("style");zi in t&&(t[zi]=i?r.display:"",t[Jd]&&(r.display="none"))}const cu=/\s*!important$/;function Oi(t,e,n){if(Q(n))n.forEach(r=>Oi(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Am(t,e);cu.test(n)?t.setProperty(Pn(r),n.replace(cu,""),"important"):t[r]=n}}const uu=["Webkit","Moz","ms"],Xo={};function Am(t,e){const n=Xo[e];if(n)return n;let r=Rt(e);if(r!=="filter"&&r in t)return Xo[e]=r;r=yo(r);for(let s=0;s<uu.length;s++){const i=uu[s]+r;if(i in t)return Xo[e]=i}return e}const fu="http://www.w3.org/1999/xlink";function hu(t,e,n,r,s,i=C_(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(fu,e.slice(6,e.length)):t.setAttributeNS(fu,e,n):n==null||i&&!Ah(n)?t.removeAttribute(e):t.setAttribute(e,i?"":Ut(n)?String(n):n)}function du(t,e,n,r,s){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?zd(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=Ah(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(s||e)}function Un(t,e,n,r){t.addEventListener(e,n,r)}
4function Om(t,e,n,r){t.removeEventListener(e,n,r)}const pu=Symbol("_vei");function Mm(t,e,n,r,s=null){const i=t[pu]||(t[pu]={}),o=i[e];if(r&&o)o.value=r;else{const[a,l]=Im(e);if(r){const u=i[e]=Nm(r,s);Un(t,a,u,l)}else o&&(Om(t,a,o,l),i[e]=void 0)}}const gu=/(?:Once|Passive|Capture)$/;function Im(t){let e;if(gu.test(t)){e={};let r;for(;r=t.match(gu);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Pn(t.slice(2)),e]}let Qo=0;const $m=Promise.resolve(),Fm=()=>Qo||($m.then(()=>Qo=0),Qo=Date.now());function Nm(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Vt(Lm(r,n.value),e,5,[r])};return n.value=t,n.attached=Fm(),n}function Lm(t,e){if(Q(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const _u=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Dm=(t,e,n,r,s,i)=>{const o=s==="svg";e==="class"?km(t,r,o):e==="style"?Pm(t,n,r):ei(e)?Bl(e)||Mm(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Hm(t,e,r,o))?(du(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&hu(t,e,r,o,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!ke(r))?du(t,Rt(e),r,i,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),hu(t,e,r,o))};function Hm(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&_u(e)&&se(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return _u(e)&&ke(n)?!1:e in t}const Vr=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Q(e)?n=>Ir(e,n):e};function jm(t){t.target.composing=!0}function vu(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const wn=Symbol("_assign");function mu(t,e,n){return e&&(t=t.trim()),n&&(t=Wl(t)),t}const SC={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t[wn]=Vr(s);const i=r||s.props&&s.props.type==="number";Un(t,e?"change":"input",o=>{o.target.composing||t[wn](mu(t.value,n,i))}),(n||i)&&Un(t,"change",()=>{t.value=mu(t.value,n,i)}),e||(Un(t,"compositionstart",jm),Un(t,"compositionend",vu),Un(t,"change",vu))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(t[wn]=Vr(o),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?Wl(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||s&&t.value.trim()===l)||(t.value=l))}},CC={deep:!0,created(t,e,n){t[wn]=Vr(n),Un(t,"change",()=>{const r=t._modelValue,s=Zd(t),i=t.checked,o=t[wn];if(Q(r)){const a=Oh(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const u=[...r];u.splice(a,1),o(u)}}else if(_o(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(Xd(t,i))})},mounted:yu,beforeUpdate(t,e,n){t[wn]=Vr(n),yu(t,e,n)}};function yu(t,{value:e,oldValue:n},r){t._modelValue=e;let s;if(Q(e))s=Oh(e,r.props.value)>-1;else if(_o(e))s=e.has(r.props.value);else{if(e===n)return;s=hr(e,Xd(t,!0))}t.checked!==s&&(t.checked=s)}const xC={created(t,{value:e},n){t.checked=hr(e,n.props.value),t[wn]=Vr(n),Un(t,"change",()=>{t[wn](Zd(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[wn]=Vr(r),e!==n&&(t.checked=hr(e,r.props.value))}};function Zd(t){return"_value"in t?t._value:t.value}function Xd(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Um=["ctrl","shift","alt","meta"],Bm={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Um.some(n=>t[`${n}Key`]&&!e.includes(n))},kC=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<e.length;o++){const a=Bm[e[o]];if(a&&a(s,e))return}return t(s,...i)}))},Vm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},RC=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=Pn(s.key);if(e.some(o=>o===i||Vm[o]===i))return t(s)}))},Qd=Be({patchProp:Dm},mm);let Ns,bu=!1;function Wm(){return Ns||(Ns=Jv(Qd))}function qm(){return Ns=bu?Ns:Zv(Qd),bu=!0,Ns}const Gm=((...t)=>{const e=Wm().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=tp(r);if(!s)return;const i=e._component;!se(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,ep(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e}),Km=((...t)=>{const e=qm().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=tp(r);if(s)return n(s,!0,ep(s))},e});function ep(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function tp(t){return ke(t)?document.querySelector(t):t}const zm=/"(?:_|\\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*:/,Ym=/"(?: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*:/,Jm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Zm(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){Xm(t);return}return e}function Xm(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Ks(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.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(!Jm.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(zm.test(t)||Ym.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,Zm)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const np=/#/g,rp=/&/g,sp=/\//g,Qm=/=/g,ey=/\?/g,Oo=/\+/g,ty=/%5e/gi,ny=/%60/gi,ry=/%7c/gi,sy=/%20/gi,iy=/%252f/gi;function ip(t){return encodeURI(""+t).replace(ry,"|")}function Ja(t){return ip(typeof t=="string"?t:JSON.stringify(t)).replace(Oo,"%2B").replace(sy,"+").replace(np,"%23").replace(rp,"%26").replace(ny,"`").replace(ty,"^").replace(sp,"%2F")}function ea(t){return Ja(t).replace(Qm,"%3D")}function oy(t){return ip(t).replace(np,"%23").replace(ey,"%3F").replace(iy,"%2F").replace(rp,"%26").replace(Oo,"%2B")}function TC(t){return oy(t).replace(sp,"%2F")}function Yi(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function ay(t){return Yi(t.replace(Oo," "))}function ly(t){return Yi(t.replace(Oo," "))}function cy(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=ay(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=ly(r[2]||"");e[s]===void 0?e[s]=i:Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]}return e}function uy(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${ea(t)}=${Ja(n)}`).join("&"):`${ea(t)}=${Ja(e)}`:ea(t)}function fy(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>
4uy(e,t[e])).filter(Boolean).join("&")}const hy=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,dy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,py=/^([/\\]\s*){2,}[^/\\]/,gy=/^\.?\//;function Xr(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?hy.test(t):dy.test(t)||(e.acceptRelative?py.test(t):!1)}function _y(t="",e){return t.endsWith("/")}function Ji(t="",e){return(_y(t)?t.slice(0,-1):t)||"/"}function vy(t="",e){return t.endsWith("/")?t:t+"/"}function my(t=""){return t.startsWith("/")}function PC(t=""){return my(t)?t:"/"+t}function yy(t,e){if(op(e)||Xr(t))return t;const n=Ji(e);if(t.startsWith(n)){const r=t[n.length];if(!r||r==="/"||r==="?")return t}return lc(n,t)}function wu(t,e){if(op(e))return t;const n=Ji(e);if(!t.startsWith(n))return t;const r=t[n.length];if(r&&r!=="/"&&r!=="?")return t;const s=t.slice(n.length);return s[0]==="/"?s:"/"+s}function by(t,e){const n=Sy(t),r={...cy(n.search),...e};return n.search=fy(r),Cy(n)}function op(t){return!t||t==="/"}function wy(t){return t&&t!=="/"}function lc(t,...e){let n=t||"";for(const r of e.filter(s=>wy(s)))if(n){const s=r.replace(gy,"");n=vy(n)+s}else n=r;return n}function ap(...t){const e=/\/(?!\/)/,n=t.filter(Boolean),r=[];let s=0;for(const o of n)if(!(!o||o==="/")){for(const[a,l]of o.split(e).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Xr(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let i=r.join("/");return s>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function Ey(t,e){return Yi(Ji(t))===Yi(Ji(e))}const lp=Symbol.for("ufo:protocolRelative");function Sy(t="",e){const n=t.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(!Xr(t,{acceptRelative:!0}))return Eu(t);const[,r="",s,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=Eu(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:c,[lp]:!r}}function Eu(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function Cy(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",s=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[lp]?(t.protocol||"")+"//":"")+s+i+e+n+r}class xy extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function ky(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",r=t.request?.url||String(t.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",o=`${s}: ${i}${e?` ${e}`:""}`,a=new xy(o,t.error?{cause:t.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return t[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return t.response&&t.response[u]}});return a}const Ry=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Su(t="GET"){return Ry.has(t.toUpperCase())}function Ty(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer||t instanceof FormData||t instanceof URLSearchParams?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const Py=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Ay=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Oy(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return Ay.test(e)?"json":e==="text/event-stream"?"stream":Py.has(e)||e.startsWith("text/")?"text":"blob"}function My(t,e,n,r){const s=Iy(e?.headers??t?.headers,n?.headers,r);let i;return(n?.query||n?.params||e?.params||e?.query)&&(i={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:i,params:i,headers:s}}function Iy(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[s,i]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(s,i);return r}async function mi(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const $y=new Set([408,409,425,429,500,502,503,504]),Fy=new Set([101,204,205,304]);function cp(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Su(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):$y.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),i(a.request,{...a.options,retry:c-1})}}const u=ky(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const c={request:l,options:My(l,u,t.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await mi(c,
4c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=yy(c.request,c.options.baseURL)),c.options.query&&(c.request=by(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Su(c.options.method))if(Ty(c.options.body)){const h=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),h||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await e(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await mi(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!Fy.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||Oy(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Ks;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await mi(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await mi(c,c.options.onResponseError),await s(c)):c.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>e(...a),o.create=(a={},l={})=>cp({...t,...l,defaults:{...t.defaults,...l.defaults,...a}}),o}const Zi=(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")})(),Ny=Zi.fetch?(...t)=>Zi.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Ly=Zi.Headers,Dy=Zi.AbortController,Hy=cp({fetch:Ny,Headers:Ly,AbortController:Dy}),jy=Hy,Uy=()=>window?.__NUXT__?.config||{},cc=()=>Uy().app,By=()=>cc().baseURL,Vy=()=>cc().buildAssetsDir,uc=(...t)=>ap(up(),Vy(),...t),up=(...t)=>{const e=cc(),n=e.cdnURL||e.baseURL;return t.length?ap(n,...t):n};globalThis.__buildAssetsURL=uc,globalThis.__publicAssetsURL=up;globalThis.$fetch||(globalThis.$fetch=jy.create({baseURL:By()}));"global"in globalThis||(globalThis.global=globalThis);function Za(t,e={},n){for(const r in t){const s=t[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Za(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const Wy={run:t=>t()},qy=()=>Wy,fp=typeof console.createTask<"u"?console.createTask:qy;function Gy(t,e){const n=e.shift(),r=fp(n);return t.reduce((s,i)=>s.then(()=>r.run(()=>i(...e))),Promise.resolve())}function Ky(t,e){const n=e.shift(),r=fp(n);return Promise.all(t.map(s=>r.run(()=>s(...e))))}function ta(t,e){for(const n of[...t])n(e)}let zy=class{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(e,n,r={}){if(!e||typeof n!="function")return()=>{};const s=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||
4(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(e,s),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const s of r)this.hook(e,s)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=Za(e),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(e){const n=Za(e);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(Gy,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(Ky,e,...n)}callHookWith(e,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&ta(this._before,s);const i=e(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&ta(this._after,s)}):(this._after&&s&&ta(this._after,s),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}};function Yy(){return new zy}function Jy(t={}){let e,n=!1;const r=o=>{if(e&&e!==o)throw new Error("Context conflict")};let s;if(t.asyncContext){const o=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s){const o=s.getStore();if(o!==void 0)return o}return e};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),e=o,n=!0},unset:()=>{e=void 0,n=!1},call:(o,a)=>{r(o),e=o;try{return s?s.run(o,a):a()}finally{n||(e=void 0)}},async callAsync(o,a){e=o;const l=()=>{e=o},u=()=>e===o?l:void 0;Xa.add(u);try{const c=s?s.run(o,a):a();return n||(e=void 0),await c}finally{Xa.delete(u)}}}}function Zy(t={}){const e={};return{get(n,r={}){return e[n]||(e[n]=Jy({...t,...r})),e[n]}}}const Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Cu="__unctx__",Xy=Xi[Cu]||(Xi[Cu]=Zy()),Qy=(t,e={})=>Xy.get(t,e),xu="__unctx_async_handlers__",Xa=Xi[xu]||(Xi[xu]=new Set);function Ls(t){const e=[];for(const s of Xa){const i=s();i&&e.push(i)}const n=()=>{for(const s of e)s()};let r=t();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const e0=!1,ku=!1,t0=!1,OC={value:null,errorValue:null,deep:!0},n0=null,MC={},r0="#__nuxt",hp="nuxt-app",Ru=36e5,s0="vite:preloadError";function dp(t=hp){return Qy(t,{asyncContext:!1})}const i0="__nuxt_plugin";function o0(t){let e=0;const n={_id:t.id||hp||"nuxt-app",_scope:ql(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.21.1"},get vue(){return n.vueApp.version}},payload:en({...t.ssrContext?.payload||{},data:en({}),state:An({}),once:new Set,_errors:en({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!ni()?n._scope.run(()=>Tu(n,s)):Tu(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let s=!1;return()=>{if(!s&&(s=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:en({}),_payloadRevivers:{},...t};{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=Yy(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;yi(n,o,i),yi(n.vueApp.config.globalProperties,o,i)},yi(n.vueApp,"$nuxt",n),yi(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(s0,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=Ke;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 a0(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function l0(t,e){if(typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const r in n)t.provide(r,n[r])}}async function c0(t,e){const n=new Set,r=[],s=[];let i,o=0;
4async function a(l){const u=l.dependsOn?.filter(c=>e.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=l0(t,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,d])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(o++,await a(d)))})))}).catch(f=>{if(!l.parallel&&!t.payload.error)throw f;i||=f});l.parallel?s.push(c):await c}}for(const l of e)a0(t,l);for(const l of e)await a(l);if(await Promise.all(s),o)for(let l=0;l<o;l++)await Promise.all(s);if(i)throw t.payload.error||i}function ht(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[i0]:!0,_name:e})}const u0=ht;function Tu(t,e,n){const r=()=>e();return dp(t._id).set(t),t.vueApp.runWithContext(r)}function f0(t){let e;return ec()&&(e=zn()?.appContext.app.$nuxt),e||=dp(t).tryUse(),e||null}function Ke(t){const e=f0(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function Rn(t){return Ke().$config}function yi(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function na(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Qa(t,e,n=".",r){if(!na(e))return Qa(t,{},n,r);const s=Object.assign({},e);for(const i in t){if(i==="__proto__"||i==="constructor")continue;const o=t[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:na(o)&&na(s[i])?s[i]=Qa(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function h0(t){return(...e)=>e.reduce((n,r)=>Qa(n,r,"",t),{})}const pp=h0();function d0(t,e){try{return e in t}catch{return!1}}class Pu extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,n={}){super(e,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:el(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=gp(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}function p0(t){if(typeof t=="string")return new Pu(t);if(g0(t))return t;const e=new Pu(t.message??t.statusMessage??"",{cause:t.cause||t});if(d0(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=el(t.statusCode,e.statusCode):t.status&&(e.statusCode=el(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;gp(e.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 t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function g0(t){return t?.constructor?.__h3_error__===!0}const _0=/[^\u0009\u0020-\u007E]/g;function gp(t=""){return t.replace(_0,"")}function el(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const _p=Symbol("layout-meta"),gr=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const $t=()=>Ke()?.$router,Qr=()=>ec()?Qe(gr,Ke()._route):Ke()._route;const vp="__nuxt_error",Mo=()=>Qh(Ke().payload,"error"),sr=t=>{const e=fr(t);try{const n=Mo();Ke().hooks.callHook("app:error",e),n.value||=e}catch{throw e}return e},mp=async(t={})=>{const e=Ke(),n=Mo();e.callHook("app:error:cleared",t),t.redirect&&await $t().replace(t.redirect),n.value=n0},yp=t=>!!t&&typeof t=="object"&&vp in t,fr=t=>{typeof t!="string"&&t.statusText&&(t.message??=t.statusText);const e=p0(t);return Object.defineProperty(e,vp,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(e,"status",{get:()=>e.statusCode,configurable:!0}),Object.defineProperty(e,"statusText",{get:()=>e.statusMessage,configurable:!0}),e};let bp;const Wr=t=>bp=t,wp=Symbol();function tl(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ds;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ds||(Ds={}));
4function v0(){const t=ql(!0),e=t.run(()=>jt({}));let n=[],r=[];const s=Zl({install(i){Wr(s),s._a=i,i.provide(wp,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const Ep=()=>{};function Au(t,e,n,r=Ep){t.add(e);const s=()=>{t.delete(e)&&r()};return!n&&ni()&&Fi(s),s}function br(t,...e){t.forEach(n=>{n(...e)})}const m0=t=>t(),Ou=Symbol(),ra=Symbol();function nl(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],s=t[n];tl(s)&&tl(r)&&t.hasOwnProperty(n)&&!Te(r)&&!Ht(r)?t[n]=nl(s,r):t[n]=r}return t}const y0=Symbol();function b0(t){return!tl(t)||!Object.prototype.hasOwnProperty.call(t,y0)}const{assign:Nn}=Object;function w0(t){return!!(Te(t)&&t.effect)}function E0(t,e,n,r){const{state:s,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=s?s():{});const c=z_(n.state.value[t]);return Nn(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=Zl(mt(()=>{Wr(n);const h=n._s.get(t);return o[d].call(h,h)})),f),{}))}return l=Sp(t,u,e,n,r,!0),l}function Sp(t,e,n={},r,s,i){let o;const a=Nn({actions:{}},n),l={deep:!0};let u,c,f=new Set,d=new Set,h;const p=r.state.value[t];!i&&!p&&(r.state.value[t]={});let g;function m(R){let k;u=c=!1,typeof R=="function"?(R(r.state.value[t]),k={type:Ds.patchFunction,storeId:t,events:h}):(nl(r.state.value[t],R),k={type:Ds.patchObject,payload:R,storeId:t,events:h});const O=g=Symbol();xn().then(()=>{g===O&&(u=!0)}),c=!0,br(f,k,r.state.value[t])}const S=i?function(){const{state:k}=n,O=k?k():{};this.$patch(L=>{Nn(L,O)})}:Ep;function b(){o.stop(),f.clear(),d.clear(),r._s.delete(t)}const _=(R,k="")=>{if(Ou in R)return R[ra]=k,R;const O=function(){Wr(r);const L=Array.from(arguments),A=new Set,H=new Set;function ne(Y){A.add(Y)}function oe(Y){H.add(Y)}br(d,{args:L,name:O[ra],store:E,after:ne,onError:oe});let U;try{U=R.apply(this&&this.$id===t?this:E,L)}catch(Y){throw br(H,Y),Y}return U instanceof Promise?U.then(Y=>(br(A,Y),Y)).catch(Y=>(br(H,Y),Promise.reject(Y))):(br(A,U),U)};return O[Ou]=!0,O[ra]=k,O},y={_p:r,$id:t,$onAction:Au.bind(null,d),$patch:m,$reset:S,$subscribe(R,k={}){const O=Au(f,R,k.detached,()=>L()),L=o.run(()=>yn(()=>r.state.value[t],A=>{(k.flush==="sync"?c:u)&&R({storeId:t,type:Ds.direct,events:h},A)},Nn({},l,k)));return O},$dispose:b},E=An(y);r._s.set(t,E);const T=(r._a&&r._a.runWithContext||m0)(()=>r._e.run(()=>(o=ql()).run(()=>e({action:_}))));for(const R in T){const k=T[R];if(Te(k)&&!w0(k)||Ht(k))i||(p&&b0(k)&&(Te(k)?k.value=p[R]:nl(k,p[R])),r.state.value[t][R]=k);else if(typeof k=="function"){const O=_(k,R);T[R]=O,a.actions[R]=k}}return Nn(E,T),Nn(he(E),T),Object.defineProperty(E,"$state",{get:()=>r.state.value[t],set:R=>{m(k=>{Nn(k,R)})}}),r._p.forEach(R=>{Nn(E,o.run(()=>R({store:E,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(E.$state,p),u=!0,c=!0,E}function IC(t,e,n){let r;const s=typeof e=="function";r=s?n:e;function i(o,a){const l=ec();return o=o||(l?Qe(wp,null):null),o&&Wr(o),o=bp,o._s.has(t)||(s?Sp(t,e,r,o):E0(t,r,o)),o._s.get(t)}return i.$id=t,i}function $C(t){const e=he(t),n={};for(const r in e){const s=e[r];s.effect?n[r]=mt({get:()=>t[r],set(i){t[r]=i}}):(Te(s)||Ht(s))&&(n[r]=Qh(t,r))}return n}function S0(t){const e=x0(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,e.charCodeAt(s));return n}const C0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function x0(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,r=0;for(let s=0;s<t.length;s++)n<<=6,n|=C0.indexOf(t[s]),r+=6,r===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,e+=String.fromCharCode(n)):r===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const k0=-1,R0=-2,T0=-3,P0=-4,A0=-5,O0=-6;function M0(t,e){return I0(JSON.parse(t),e)}function I0(t,e){if(typeof t=="number")return i(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);let s=null;function i(o,a=!1){if(o===k0)return;if(o===T0)return NaN;if(o===P0)return 1/0;if(o===A0)return-1/0;if(o===O0)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const l=n[o];if(!l||typeof l!="object")r[o]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const u=l[0],c=e&&Object.hasOwn(e,u)?e[u]:void 0;if(c){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),s??=new Set,s.has(f))throw new Error("Invalid circular reference");return s.add(f),r[o]=c(i(f)),s.delete(f),r[o]}switch(u){case"Date":r[o]=new Date(l[1]);break;case"Set":const f=new Set;r[o]=f;for(let p=1;p<l.length;p+=1)f.add(i(l[p]));break;case"Map":const d=new Map;r[o]=d;for(let p=1;p<l.length;p+=2)d.set(i(l[p]),i(l[p+1]));break;case"RegExp":r[o]=new RegExp(l[1],l[2]);break;case"Object":r[o]=Object(l[1]);break;case"BigInt":r[o]=BigInt(l[1]);break;case"null":const h=Object.create(null);r[o]=h;for(let p=1;p<l.length;p+=2)h[l[p]]=i(l[p+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=globalThis[u],g=i(l[1]),m=new p(g);r[o]=l[2]!==void 0?m.subarray(l[2],l[3]):m;break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const g=S0(p);r[o]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const p=u.slice(9);r[o]=Temporal[p].from(l[1]);break}case"URL":{const p=new URL(l[1]);r[o]=p;break}case"URLSearchParams":{const p=new URLSearchParams(l[1]);r[o]=p;break}default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(l.length);r[o]=u;for(let c=0;c<l.length;c+=1){const f=l[c];f!==R0&&(u[c]=i(f))}}else{const u={};r[o]=u;for(const c in l){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[c];u[c]=i(f)}}return r[o]}return i(0)}const $0=new Set(["link","style","script","noscript"]),F0=new Set(["title","titleTemplate","script","style","noscript"]),Mu=new Set(["base","meta","link","style","script","noscript"]),N0=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),L0=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),D0=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),H0=new Set(["templateParams","htmlAttrs","bodyAttrs"]),j0=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function rl(t,e={},n){for(const r in t){const s=t[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?rl(s,e,i):typeof s=="function"&&(e[i]=s)}return e}const Cp=(()=>
4{if(console.createTask)return console.createTask;const t={run:e=>e()};return()=>t})();function xp(t,e,n,r){for(let s=n;s<t.length;s+=1)try{const i=r?r.run(()=>t[s](...e)):t[s](...e);if(i instanceof Promise)return i.then(()=>xp(t,e,s+1,r))}catch(i){return Promise.reject(i)}}function U0(t,e,n){if(t.length>0)return xp(t,e,0,Cp(n))}function B0(t,e,n){if(t.length>0){const r=Cp(n);return Promise.all(t.map(s=>r.run(()=>s(...e))))}}function sa(t,e){for(const n of[...t])n(e)}var V0=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;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,e,n={}){if(!t||typeof e!="function")return()=>{};const r=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${r} 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(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(e),()=>{e&&(this.removeHook(t,e),e=void 0)}}hookOnce(t,e){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,e(...s));return n=this.hook(t,r),n}removeHook(t,e){const n=this._hooks[t];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[t]=void 0)}}deprecateHook(t,e){this._deprecatedHooks[t]=typeof e=="string"?{to:e}:e;const n=this._hooks[t]||[];this._hooks[t]=void 0;for(const r of n)this.hook(t,r)}deprecateHooks(t){for(const e in t)this.deprecateHook(e,t[e])}addHooks(t){const e=rl(t),n=Object.keys(e).map(r=>this.hook(r,e[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(t){const e=rl(t);for(const n in e)this.removeHook(n,e[n])}removeAllHooks(){this._hooks={}}callHook(t,...e){return this.callHookWith(U0,t,e)}callHookParallel(t,...e){return this.callHookWith(B0,t,e)}callHookWith(t,e,n){const r=this._before||this._after?{name:e,args:n,context:{}}:void 0;this._before&&sa(this._before,r);const s=t(this._hooks[e]?[...this._hooks[e]]:[],n,e);return s instanceof Promise?s.finally(()=>{this._after&&r&&sa(this._after,r)}):(this._after&&r&&sa(this._after,r),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const e=this._before.indexOf(t);e!==-1&&this._before.splice(e,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const e=this._after.indexOf(t);e!==-1&&this._after.splice(e,1)}}}};function W0(){return new V0}const q0=["name","property","http-equiv"],G0=new Set(["viewport","description","keywords","robots"]);function kp(t){const e=t.split(":");return e.length?j0.has(e[1]):!1}function sl(t){const{props:e,tag:n}=t;if(L0.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";const r=e.hreflang||e.type;if(n==="link"&&e.rel==="alternate"&&r)return`alternate:${r}`;if(e.charset)return"charset";if(t.tag==="meta"){for(const s of q0)if(e[s]!==void 0){const i=e[s],o=i&&typeof i=="string"&&i.includes(":"),a=i&&G0.has(i),u=!(o||a)&&t.key?`:key:${t.key}`:"";return`${n}:${i}${u}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(F0.has(n)){const s=t.textContent||t.innerHTML;if(s)return`${n}:content:${s}`}}function Iu(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function il(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());const s=e?e(n,t):t;if(Array.isArray(s))return s.map(i=>il(i,e));if(s?.constructor===Object){const i={};for(const o of Object.keys(s))i[o]=il(s[o],e,o);return i}return s}function K0(t,e){const n=t==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const i=String(s).trim();if(i)if(t==="style"){const[o,...a]=i.split(":").map(l=>l?l.trim():"");o&&a.length&&n.set(o,a.join(":"))}
4else i.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof e=="string"?t==="style"?e.split(";").forEach(r):r(e):Array.isArray(e)?e.forEach(s=>r(s)):e&&typeof e=="object"&&Object.entries(e).forEach(([s,i])=>{i&&i!=="false"&&(t==="style"?n.set(String(s).trim(),String(i)):r(s))}),n}function Rp(t,e){return t.props=t.props||{},e?t.tag==="templateParams"?(t.props=e,t):(Object.entries(e).forEach(([n,r])=>{if(r===null){t.props[n]=null;return}if(n==="class"||n==="style"){t.props[n]=K0(n,r);return}if(D0.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let a=e.type;if(e.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;e.type=a,t.props.type=a,t[n]=JSON.stringify(r)}else t[n]=r;return}const s=String(r),i=n.startsWith("data-"),o=t.tag==="meta"&&n==="content";s==="true"||s===""?t.props[n]=i||o?s:!0:!r&&i&&s==="false"?t.props[n]="false":r!==void 0&&(t.props[n]=r)}),t):t}function z0(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},r=Rp({tag:t,props:{}},n);return r.key&&$0.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(s=>({...r,props:{...r.props,content:s}})):r}function Y0(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(s,i)=>{for(let o=0;o<e.length;o++)i=e[o](s,i);return i};t=n(void 0,t);const r=[];return t=il(t,n),Object.entries(t||{}).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])r.push(z0(s,o))}),r.flat()}const ol=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,$u={base:-10,title:10},J0={critical:-8,high:-1,low:2},Fu={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}},Z0=/@import/,as=t=>t===""||t===!0;function X0(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const r=J0[e.tagPriority]||0,s=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Fu;if(e.tag in $u)n=$u[e.tag];else if(e.tag==="meta"){const i=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;i&&(n=Fu.meta[i])}else if(e.tag==="link"&&e.props.rel)n=s.link[e.props.rel];else if(e.tag==="script"){const i=String(e.props.type);as(e.props.async)?n=s.script.async:e.props.src&&!as(e.props.defer)&&!as(e.props.async)&&i!=="module"&&!i.endsWith("json")||e.innerHTML&&!i.endsWith("json")?n=s.script.sync:(as(e.props.defer)&&e.props.src&&!as(e.props.async)||i==="module")&&(n=s.script.defer)}else e.tag==="style"&&(n=e.innerHTML&&Z0.test(e.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Nu(t,e){const n=typeof e=="function"?e(t):e,r=n.key||String(t.plugins.size+1);t.plugins.get(r)||(t.plugins.set(r,n),t.hooks.addHooks(n.hooks||{}))}function Q0(t={}){const e=W0();e.addHooks(t.hooks||{});const n=!t.document,r=new Map,s=new Map,i=new Set,o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>Nu(o,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??o._entryCount++,f={_i:c,input:a,options:u},d={_poll(h=!1){o.dirty=!0,!h&&i.add(c),e.callHook("entries:updated",o)},dispose(){r.delete(c)&&o.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=h,r.set(c,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await e.callHook("entries:resolve",a);i.size;){const d=i.values().next().value;i.delete(d);const h=r.get(d);if(h){const p={tags:Y0(h.input,t.propResolvers||[]).map(g=>Object.assign(g,h.options)),entry:h};await e.callHook("entries:normalize",p),h._tags=p.tags.map((g,m)=>(g._w=X0(o,g),g._p=(h._i<<10)+m,g._d=sl(g),g))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(ol).reduce((d,h)=>{const p=String(h._d||h._p);
4if(!d.has(p))return d.set(p,h);const g=d.get(p);if((h?.tagDuplicateStrategy||(H0.has(h.tag)?"merge":null)||(h.key&&h.key===g.key?"merge":null))==="merge"){const S={...g.props};Object.entries(h.props).forEach(([b,_])=>S[b]=b==="style"?new Map([...g.props.style||new Map,..._]):b==="class"?new Set([...g.props.class||new Set,..._]):_),d.set(p,{...h,props:S})}else h._p>>10===g._p>>10&&h.tag==="meta"&&kp(p)?(d.set(p,Object.assign([...Array.isArray(g)?g:[g],h],h)),l=!0):(h._w===g._w?h._p>g._p:h?._w<g?._w)&&d.set(p,h);return d},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(o._title=u?.textContent,c){const d=c?.textContent;if(o._titleTemplate=d,d){let h=typeof d=="function"?d(u?.textContent):d;typeof h=="string"&&!o.plugins.has("template-params")&&(h=h.replace("%s",u?.textContent||"")),u?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:h}):(c.tag="title",c.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(ol)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:h,tag:p,props:g}=d;if(N0.has(p)&&!(Object.keys(g).length===0&&!d.innerHTML&&!d.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&h){if(String(g.type).endsWith("json")){const m=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=m.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));d._d=sl(d)}f.push(d)}}return f},invalidate(){for(const a of r.values())i.add(a._i);o.dirty=!0,e.callHook("entries:updated",o)}};return(t?.plugins||[]).forEach(a=>Nu(o,a)),o.hooks.callHook("init",o),t.init?.forEach(a=>a&&o.push(a)),o}const ia="%separator";function e1(t,e,n=!1){let r;if(e==="s"||e==="pageTitle")r=t.pageTitle;else if(e.includes(".")){const s=e.indexOf(".");r=t[e.substring(0,s)]?.[e.substring(s+1)]}else r=t[e];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function bi(t,e,n,r=!1){if(typeof t!="string"||!t.includes("%"))return t;let s=t;try{s=decodeURI(t)}catch{}const i=s.match(/%\w+(?:\.\w+)?/g);if(!i)return t;const o=t.includes(ia);return t=t.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===ia||!i.includes(a))return a;const l=e1(e,a.slice(1),r);return l!==void 0?l:a}).trim(),o&&(t=t.split(ia).map(a=>a.trim()).filter(a=>a!=="").join(n?` ${n} `:" ")),t}const Lu=t=>t.includes(":key")?t:t.split(":").join(":key:"),t1={key:"aliasSorting",hooks:{"tags:resolve":t=>{let e=!1;for(const n of t.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const i=Lu(s.slice(7)),o=t.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p-1,e=!0)}else if(s.startsWith("after:")){const i=Lu(s.slice(6)),o=t.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p+1,e=!0)}}e&&(t.tags=t.tags.sort(ol))}}},n1={key:"deprecations",hooks:{"entries:normalize":({tags:t})=>{for(const e of t)e.props.children&&(e.innerHTML=e.props.children,delete e.props.children),e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.body&&(e.tagPosition="bodyClose",delete e.props.body)}}};async function al(t){if(typeof t==="function")return t;if(t instanceof Promise)return await t;if(Array.isArray(t))return await Promise.all(t.map(n=>al(n)));if(t?.constructor===Object){const n={};for(const r of Object.keys(t))n[r]=await al(t[r]);return n}return t}const r1={key:"promises",hooks:{"entries:resolve":async t=>{const e=[];for(const n in t.entries)t.entries[n]._promisesProcessed||e.push(al(t.entries[n].input).then(r=>{t.entries[n].input=r,t.entries[n]._promisesProcessed=!0}));await Promise.all(e)}}},s1={meta:"content",link:"href",htmlAttrs:"lang"},i1=["innerHTML","textContent"],o1=t=>({key:"template-params",hooks:{"entries:normalize":e=>{const n=e.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(t._ssrPayload={templateParams:{...t._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:e,tags:n})=>{const r=e.get("templateParams")?.props||{},s=r.separator||"|";delete r.separator,r.pageTitle=bi(r.pageTitle||t._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const o=s1[i.tag];
4if(o&&typeof i.props[o]=="string")i.props[o]=bi(i.props[o],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const a of i1)typeof i[a]=="string"&&(i[a]=bi(i[a],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}t._templateParams=r,t._separator=s},"tags:afterResolve":({tagMap:e})=>{const n=e.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=bi(n.textContent,t._templateParams,t._separator))}}}),a1="usehead";function l1(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(a1,t)}}.install}const c1=(t,e)=>[],Tp=t=>pp({},...c1().map(e=>e.data).reverse()),u1=Tp;let Mi;function f1(){return Mi=$fetch(uc(`builds/meta/${Rn().app.buildId}.json`),{responseType:"json"}),Mi.catch(t=>{console.error("[nuxt] Error fetching app manifest.",t)}),Mi}function fc(){return Mi||f1()}function Io(t){const e=typeof t=="string"?t:t.path;try{return u1(e)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Du(t,e={}){if(await p1(t)){const n=await d1(t,e);return await Pp(n)||null}return null}const h1="_payload.json";async function d1(t,e={}){const n=new URL(t,"http://localhost");if(n.host!=="localhost"||Xr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const r=Rn(),s=e.hash||(e.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,o=i&&await g1(t)?i:r.app.baseURL;return lc(o,n.pathname,h1+(s?`?${s}`:""))}async function Pp(t){const e=fetch(t,{cache:"force-cache"}).then(n=>n.text().then(Mp));try{return await e}catch(n){console.warn("[nuxt] Cannot load payload ",t,n)}return null}function Ap(t){if(t.redirect)return!1;if(t.prerender)return!0}async function Op(t){return t=t==="/"?t:t.replace(/\/$/,""),(await fc()).prerendered.includes(t)}async function p1(t=Qr().path){const e=Io({path:t}),n=Ap(e);return n!==void 0?n:e.payload?!0:await Op(t)}async function g1(t=Qr().path){const e=Ap(Io({path:t}));return e!==void 0?e:await Op(t)}let Xn=null;async function _1(){if(Xn)return Xn;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await Mp(t.textContent||""),n=t.dataset.src?await Pp(t.dataset.src):void 0;return Xn={...e,...n,...window.__NUXT__},Xn.config?.public&&(Xn.config.public=An(Xn.config.public)),Xn}async function Mp(t){return await M0(t,Ke()._payloadRevivers)}function Ip(t,e){Ke()._payloadRevivers[t]=e}const v1=u0(()=>{Ip("skipHydrate",t=>{})}),m1=[["NuxtError",t=>fr(t)],["EmptyShallowRef",t=>dr(t==="_"?void 0:t==="0n"?BigInt(0):Ks(t))],["EmptyRef",t=>jt(t==="_"?void 0:t==="0n"?BigInt(0):Ks(t))],["ShallowRef",t=>dr(t)],["ShallowReactive",t=>en(t)],["Ref",t=>jt(t)],["Reactive",t=>An(t)]],y1=ht({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[r,s]of m1)Ip(r,s);Object.assign(t.payload,([e,n]=Ls(()=>t.runWithContext(_1)),e=await e,n(),e)),window.__NUXT__=t.payload}});async function hc(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const r={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async s=>{const i=new Map,o=new Promise(h=>{t.resolveTags().then(p=>{h(p.map(g=>{const m=i.get(g._d)||0,S={tag:g,id:(m?`${g._d}:${m}`:g._d)||Iu(g),shouldRender:!0};return g._d&&kp(g._d)&&i.set(g._d,m+1),S}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const g of p){const m=g.tagName.toLowerCase();if(!Mu.has(m))continue;const S=Rp({tag:m,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((b,_)=>(b[_]=g.getAttribute(_),b),{})||{}});if(S.key=g.getAttribute("data-hid")||void 0,S._d=sl(S)||Iu(S),a.elMap.has(S._d)){let b=1,_=S._d;for(;a.elMap.has(_);)_=`${S._d}:${b++}`;a.elMap.set(_,g)}else a.elMap.set(S._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,g){const m=`${h}:${p}`;a.sideEffects[m]=g,delete a.pendingSideEffects[m]}function u({id:h,$el:p,tag:g}){const m=g.tag.endsWith("Attrs");a.elMap.set(h,p),m||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const S in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,S))continue;const b=g.props[S];if(S.startsWith("on")&&typeof b=="function"){const y=p?.dataset;if(y&&y[`${S}fired`]){const E=S.slice(0,-5);b.call(p,new Event(E.substring(2)))}p.getAttribute(`data-${S}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(S.substring(2),b.bind(p)),p.setAttribute(`data-${S}`,""));continue}const _=`attr:${S}`;if(S==="class"){if(!b)continue;for(const y of b)m&&l(h,`${_}:${y}`,()=>p.classList.remove(y)),!p.classList.contains(y)&&p.classList.add(y)}else if(S==="style"){if(!b)continue;for(const[y,E]of b)l(h,`${_}:${y}`,()=>{p.style.removeProperty(y)}),p.style.setProperty(y,E)}else b!==!1&&b!==null&&(p.getAttribute(S)!==b&&p.setAttribute(S,b===!0?"":String(b)),m&&l(h,_,()=>p.removeAttribute(S)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await o;for(const h of d){const{tag:p,shouldRender:g,id:m}=h;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}
4h.$el=h.$el||a.elMap.get(m),h.$el?u(h):Mu.has(p.tag)&&c.push(h)}}for(const h of c){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),u(h),f[p]=f[p]||n.createDocumentFragment(),f[p].appendChild(h.$el)}for(const h of d)await t.hooks.callHook("dom:renderTag",h,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 h in a.pendingSideEffects)a.pendingSideEffects[h]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function b1(t={}){const e=t.domOptions?.render||hc;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Q0({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function w1(t,e){let n=0;return()=>{const r=++n;e(()=>{n===r&&t()})}}function E1(t={}){const e=b1({domOptions:{render:w1(()=>hc(e),n=>setTimeout(n,0))},...t});return e.install=l1(e),e}const S1={disableDefaults:!0,disableCapoSorting:!1,plugins:[n1,r1,o1,t1]},C1=ht({name:"nuxt:head",enforce:"pre",setup(t){const e=E1(S1);t.vueApp.use(e);{let n=!0;const r=async()=>{n=!1,await hc(e)};e.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||r()}),t.hooks.hook("app:error",r),t.hooks.hook("app:suspense:resolve",r)}}});const Cr=typeof document<"u";function $p(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function x1(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&$p(t.default)}const _e=Object.assign;function oa(t,e){const n={};for(const r in e){const s=e[r];n[r]=Wt(s)?s.map(t):t(s)}return n}const Hs=()=>{},Wt=Array.isArray;function Hu(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}const Fp=/#/g,k1=/&/g,R1=/\//g,T1=/=/g,P1=/\?/g,Np=/\+/g,A1=/%5B/g,O1=/%5D/g,Lp=/%5E/g,M1=/%60/g,Dp=/%7B/g,I1=/%7C/g,Hp=/%7D/g,$1=/%20/g;function dc(t){return t==null?"":encodeURI(""+t).replace(I1,"|").replace(A1,"[").replace(O1,"]")}function F1(t){return dc(t).replace(Dp,"{").replace(Hp,"}").replace(Lp,"^")}function ll(t){return dc(t).replace(Np,"%2B").replace($1,"+").replace(Fp,"%23").replace(k1,"%26").replace(M1,"`").replace(Dp,"{").replace(Hp,"}").replace(Lp,"^")}function N1(t){return ll(t).replace(T1,"%3D")}function L1(t){return dc(t).replace(Fp,"%23").replace(P1,"%3F")}function D1(t){return L1(t).replace(R1,"%2F")}function zs(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const H1=/\/$/,j1=t=>t.replace(H1,"");function aa(t,e,n="/"){let r,s={},i="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=e.slice(0,l),i=e.slice(l,a>0?a:e.length),s=t(i.slice(1))),a>=0&&(r=r||e.slice(0,a),o=e.slice(a,e.length)),r=W1(r??e,n),{fullPath:r+i+o,path:r,query:s,hash:zs(o)}}function U1(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function ju(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function B1(t,e,n){const r=e.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&qr(e.matched[r],n.matched[s])&&jp(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function qr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function jp(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!V1(t[n],e[n]))return!1;return!0}function V1(t,e){return Wt(t)?Uu(t,e):Wt(e)?Uu(e,t):t?.valueOf()===e?.valueOf()}function Uu(t,e){return Wt(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function W1(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const Ot={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let cl=(function(t){return t.pop="pop",t.push="push",t})({}),la=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function q1(t){if(!t)if(Cr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),j1(t)}const G1=/^[^#]+#/;function K1(t,e){return t.replace(G1,"#")+e}function z1(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const $o=()=>({left:window.scrollX,top:window.scrollY});function Y1(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;e=z1(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}
vendor: 20,125 bytes, line 4
4function Bu(t,e){return(history.state?history.state.position-e:-1)+t}const ul=new Map;function J1(t,e){ul.set(t,e)}function Z1(t){const e=ul.get(t);return ul.delete(t),e}function X1(t){return typeof t=="string"||t&&typeof t=="object"}function Up(t){return typeof t=="string"||typeof t=="symbol"}let Fe=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const Bp=Symbol("");Fe.MATCHER_NOT_FOUND+"",Fe.NAVIGATION_GUARD_REDIRECT+"",Fe.NAVIGATION_ABORTED+"",Fe.NAVIGATION_CANCELLED+"",Fe.NAVIGATION_DUPLICATED+"";function Gr(t,e){return _e(new Error,{type:t,[Bp]:!0},e)}function zt(t,e){return t instanceof Error&&Bp in t&&(e==null||!!(t.type&e))}const Q1=["params","query","hash"];function eb(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of Q1)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}function tb(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Np," "),i=s.indexOf("="),o=zs(i<0?s:s.slice(0,i)),a=i<0?null:zs(s.slice(i+1));if(o in e){let l=e[o];Wt(l)||(l=e[o]=[l]),l.push(a)}else e[o]=a}return e}function Vu(t){let e="";for(let n in t){const r=t[n];if(n=N1(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Wt(r)?r.map(s=>s&&ll(s)):[r&&ll(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function nb(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return e}const rb=Symbol(""),Wu=Symbol(""),Fo=Symbol(""),pc=Symbol(""),fl=Symbol("");function ls(){let t=[];function e(r){return t.push(r),()=>{const s=t.indexOf(r);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function jn(t,e,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Gr(Fe.NAVIGATION_ABORTED,{from:n,to:e})):d instanceof Error?l(d):X1(d)?l(Gr(Fe.NAVIGATION_GUARD_REDIRECT,{from:e,to:d})):(o&&r.enterCallbacks[s]===o&&typeof d=="function"&&o.push(d),a())},c=i(()=>t.call(r&&r.instances[s],e,n,u));let f=Promise.resolve(c);t.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function ca(t,e,n,r,s=i=>i()){const i=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if($p(l)){const u=(l.__vccOpts||l)[e];u&&i.push(jn(u,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=x1(c)?c.default:c;o.mods[a]=c,o.components[a]=f;const d=(f.__vccOpts||f)[e];return d&&jn(d,n,r,o,a,s)()}))}}return i}function sb(t,e){const n=[],r=[],s=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const a=e.matched[o];a&&(t.matched.find(u=>qr(u,a))?r.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(u=>qr(u,l))||s.push(l))}return[n,r,s]}let ib=()=>location.protocol+"//"+location.host;function Vp(t,e){const{pathname:n,search:r,hash:s}=e,i=t.indexOf("#");if(i>-1){let o=s.includes(t.slice(i))?t.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),ju(a,"")}return ju(n,t)+r+s}function ob(t,e,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const h=Vp(t,location),p=n.value,g=e.value;let m=0;if(d){if(n.value=h,e.value=d,o&&o===p){o=null;return}m=g?d.position-g.position:0}else r(h);s.forEach(S=>{S(n.value,p,{delta:m,type:cl.pop,direction:m?m>0?la.forward:la.back:la.unknown})})};function l(){o=n.value}function u(d){s.push(d);const h=()=>{const p=s.indexOf(d);p>-1&&s.splice(p,1)};return i.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(_e({},d.state,{scroll:$o()}),"")}}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function qu(t,e,n,r=!1,s=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:s?$o():null}}function ab(t){const{history:e,location:n}=window,r={value:Vp(t,n)},s={value:e.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=t.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+l:ib()+t+l;try{e[c?"replaceState":"pushState"](u,"",d),s.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function o(l,u){i(l,_e({},e.state,qu(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function a(l,u){const c=_e({},s.value,e.state,{forward:l,scroll:$o()});i(c.current,c,!0),i(l,_e({},qu(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function lb(t){t=q1(t);const e=ab(t),n=ob(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=_e({location:"",base:t,go:r,createHref:K1.bind(null,t)},e,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}let or=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var We=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(We||{});const cb={type:or.Static,value:""},ub=/[a-zA-Z0-9_]/;function fb(t){if(!t)return[[]];if(t==="/")return[[cb]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=We.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===We.Static?i.push({type:or.Static,value:u}):n===We.Param||n===We.ParamRegExp||n===We.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:or.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==We.ParamRegExp){r=n,n=We.EscapeNext;continue}switch(n){case We.Static:l==="/"?(u&&f(),o()):l===":"?(f(),n=We.Param):d();break;case We.EscapeNext:d(),n=r;break;case We.Param:l==="("?n=We.ParamRegExp:ub.test(l)?d():(f(),n=We.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case We.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=We.ParamRegExpEnd:c+=l;break;case We.ParamRegExpEnd:f(),n=We.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:e("Unknown state");break}}return n===We.ParamRegExp&&e(`Unfinished custom RegExp for param "${u}"`),f(),o(),s}const Gu="[^/]+?",hb={sensitive:!1,strict:!1,start:!0,end:!0};var ut=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(ut||{});const db=/[.+*?^${}()[\]/\\]/g;function pb(t,e){const n=_e({},hb,e),r=[];let s=n.start?"^":"";const i=[];for(const u of t){const c=u.length?[]:[ut.Root];n.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=ut.Segment+(n.sensitive?ut.BonusCaseSensitive:0);if(d.type===or.Static)f||(s+="/"),s+=d.value.replace(db,"\\$&"),h+=ut.Static;else if(d.type===or.Param){const{value:p,repeatable:g,optional:m,regexp:S}=d;i.push({name:p,repeatable:g,optional:m});const b=S||Gu;if(b!==Gu){h+=ut.BonusCustomRegExp;try{`${b}`}catch(y){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+y.message)}}let _=g?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(_=m&&u.length<2?`(?:/${_})`:"/"+_),m&&(_+="?"),s+=_,h+=ut.Dynamic,m&&(h+=ut.BonusOptional),g&&(h+=ut.BonusRepeatable),b===".*"&&(h+=ut.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=ut.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of t){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===or.Static)c+=h.value;else if(h.type===or.Param){const{value:p,repeatable:g,optional:m}=h,S=p in u?u[p]:"";if(Wt(S)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=Wt(S)?S.join("/"):S;if(!b)if(m)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=b}}return c||"/"}return{re:o,score:r,keys:i,parse:a,stringify:l}}function gb(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===ut.Static+ut.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===ut.Static+ut.Segment?1:-1:0}function Wp(t,e){let n=0;const r=t.score,s=e.score;for(;n<r.length&&n<s.length;){const i=gb(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(Ku(r))return 1;if(Ku(s))return-1}return s.length-r.length}function Ku(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const _b={strict:!1,end:!0,sensitive:!1};function vb(t,e,n){const r=pb(fb(t.path),n),s=_e(r,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function mb(t,e){const n=[],r=new Map;e=Hu(_b,e);function s(f){return r.get(f)}function i(f,d,h){const p=!h,g=Yu(f);g.aliasOf=h&&h.record;const m=Hu(e,f),S=[g];if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of y)S.push(Yu(_e({},g,{components:h?h.record.components:g.components,path:E,aliasOf:h?h.record:g})))}let b,_;for(const y of S){const{path:E}=y;if(d&&E[0]!=="/"){const C=d.record.path,T=C[C.length-1]==="/"?"":"/";y.path=d.record.path+(E&&T+E)}if(b=vb(y,d,m),h?h.alias.push(b):(_=_||b,_!==b&&_.alias.push(b),p&&f.name&&!Ju(b)&&o(f.name)),qp(b)&&l(b),g.children){const C=g.children;for(let T=0;T<C.length;T++)i(C[T],b,h&&h.children[T])}h=h||b}return _?()=>{o(_)}:Hs}function o(f){if(Up(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return n}function l(f){const d=wb(f,n);n.splice(d,0,f),f.record.name&&!Ju(f)&&r.set(f.record.name,f)}function u(f,d){let h,p={},g,m;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Gr(Fe.MATCHER_NOT_FOUND,{location:f});m=h.record.name,p=_e(zu(d.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&zu(f.params,h.keys.map(_=>_.name))),g=h.stringify(p)}else if(f.path!=null)g=f.path,h=n.find(_=>_.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=d.name?r.get(d.name):n.find(_=>_.re.test(d.path)),!h)throw Gr(Fe.MATCHER_NOT_FOUND,{location:f,currentLocation:d});m=h.record.name,p=_e({},d.params,f.params),g=h.stringify(p)}const S=[];let b=h;for(;b;)S.unshift(b.record),b=b.parent;return{name:m,path:g,params:p,matched:S,meta:bb(S)}}t.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:s}}function zu(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Yu(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:yb(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function yb(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function Ju(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function bb(t){return t.reduce((e,n)=>_e(e,n.meta),{})}function wb(t,e){let n=0,r=e.length;for(;n!==r;){const i=n+r>>1;Wp(t,e[i])<0?r=i:n=i+1}const s=Eb(t);return s&&(r=e.lastIndexOf(s,r-1)),r}function Eb(t){let e=t;for(;e=e.parent;)if(qp(e)&&Wp(t,e)===0)return e}function qp({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Zu(t){const e=Qe(Fo),n=Qe(pc),r=mt(()=>{const l=De(t.to);return e.resolve(l)}),s=mt(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(qr.bind(null,c));if(d>-1)return d;const h=Xu(l[u-2]);return u>1&&Xu(c)===h&&f[f.length-1].path!==h?f.findIndex(qr.bind(null,l[u-2])):d}),i=mt(()=>s.value>-1&&Rb(n.params,r.value.params)),o=mt(()=>s.value>-1&&s.value===n.matched.length-1&&jp(n.params,r.value.params));function a(l={}){if(kb(l)){const u=e[De(t.replace)?"replace":"push"](De(t.to)).catch(Hs);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:mt(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function Sb(t){return t.length===1?t[0]:t}const Cb=qt({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"},viewTransition:Boolean},useLink:Zu,setup(t,{slots:e}){const n=An(Zu(t)),{options:r}=Qe(Fo),s=mt(()=>({[Qu(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Qu(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&Sb(e.default(n));return t.custom?i:it("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),xb=Cb;function kb(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Rb(t,e){for(const n in e){const r=e[n],s=t[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Wt(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function Xu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Qu=(t,e,n)=>t??e??n,Tb=qt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Qe(fl),s=mt(()=>t.route||r.value),i=Qe(Wu,0),o=mt(()=>{let u=De(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=mt(()=>s.value.matched[o.value]);Wn(Wu,mt(()=>o.value+1)),Wn(rb,a),Wn(fl,s);const l=jt();return yn(()=>[l.value,a.value,t.name],([u,c,f],[d,h,p])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!qr(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,c=t.name,f=a.value,d=f&&f.components[c];if(!d)return ef(n.default,{Component:d,route:u});const h=f.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=it(d,_e({},p,e,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return ef(n.default,{Component:m,route:u})||m}}});function ef(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Gp=Tb;function Pb(t){const e=mb(t.routes,t),n=t.parseQuery||tb,r=t.stringifyQuery||Vu,s=t.history,i=ls(),o=ls(),a=ls(),l=dr(Ot);let u=Ot;Cr&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=oa.bind(null,I=>""+I),f=oa.bind(null,D1),d=oa.bind(null,zs);function h(I,Z){let q,X;return Up(I)?(q=e.getRecordMatcher(I),X=Z):X=I,e.addRoute(X,q)}function p(I){const Z=e.getRecordMatcher(I);Z&&e.removeRoute(Z)}function g(){return e.getRoutes().map(I=>I.record)}function m(I){return!!e.getRecordMatcher(I)}function S(I,Z){if(Z=_e({},Z||l.value),typeof I=="string"){const w=aa(n,I,Z.path),x=e.resolve({path:w.path},Z),$=s.createHref(w.fullPath);return _e(w,x,{params:d(x.params),hash:zs(w.hash),redirectedFrom:void 0,href:$})}let q;if(I.path!=null)q=_e({},I,{path:aa(n,I.path,Z.path).path});else{const w=_e({},I.params);for(const x in w)w[x]==null&&delete w[x];q=_e({},I,{params:f(w)}),Z.params=f(Z.params)}const X=e.resolve(q,Z),ce=I.hash||"";X.params=c(d(X.params));const be=U1(r,_e({},I,{hash:F1(ce),path:X.path})),v=s.createHref(be);return _e({fullPath:be,hash:ce,query:r===Vu?nb(I.query):I.query||{}},X,{redirectedFrom:void 0,href:v})}function b(I){return typeof I=="string"?aa(n,I,l.value.path):_e({},I)}function _(I,Z){if(u!==I)return Gr(Fe.NAVIGATION_CANCELLED,{from:Z,to:I})}function y(I){return T(I)}function E(I){return y(_e(b(I),{replace:!0}))}function C(I,Z){const q=I.matched[I.matched.length-1];if(q&&q.redirect){const{redirect:X}=q;let ce=typeof X=="function"?X(I,Z):X;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=b(ce):{path:ce},ce.params={}),_e({query:I.query,hash:I.hash,params:ce.path!=null?{}:I.params},ce)}}function T(I,Z){const q=u=S(I),X=l.value,ce=I.state,be=I.force,v=I.replace===!0,w=C(q,X);if(w)return T(_e(b(w),{state:typeof w=="object"?_e({},ce,w.state):ce,force:be,replace:v}),Z||q);const x=q;x.redirectedFrom=Z;let $;return!be&&B1(r,X,q)&&($=Gr(Fe.NAVIGATION_DUPLICATED,{to:x,from:X}),Pe(X,X,!0,!1)),($?Promise.resolve($):O(x,X)).catch(M=>zt(M)?zt(M,Fe.NAVIGATION_GUARD_REDIRECT)?M:Ve(M):B(M,x,X)).then(M=>{if(M){if(zt(M,Fe.NAVIGATION_GUARD_REDIRECT))return T(_e({replace:v},b(M.to),{state:typeof M.to=="object"?_e({},ce,M.to.state):ce,force:be}),Z||x)}else M=A(x,X,!0,v,ce);return L(x,X,M),M})}function R(I,Z){const q=_(I,Z);return q?Promise.reject(q):Promise.resolve()}function k(I){const Z=Ae.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(I):I()}function O(I,Z){let q;const[X,ce,be]=sb(I,Z);q=ca(X.reverse(),"beforeRouteLeave",I,Z);for(const w of X)w.leaveGuards.forEach(x=>{q.push(jn(x,I,Z))});const v=R.bind(null,I,Z);return q.push(v),Oe(q).then(()=>{q=[];for(const w of i.list())q.push(jn(w,I,Z));return q.push(v),Oe(q)}).then(()=>{q=ca(ce,"beforeRouteUpdate",I,Z);for(const w of ce)w.updateGuards.forEach(x=>{q.push(jn(x,I,Z))});return q.push(v),Oe(q)}).then(()=>{q=[];for(const w of be)if(w.beforeEnter)if(Wt(w.beforeEnter))for(const x of w.beforeEnter)q.push(jn(x,I,Z));else q.push(jn(w.beforeEnter,I,Z));return q.push(v),Oe(q)}).then(()=>(I.matched.forEach(w=>w.enterCallbacks={}),q=ca(be,"beforeRouteEnter",I,Z,k),q.push(v),Oe(q))).then(()=>{q=[];for(const w of o.list())q.push(jn(w,I,Z));return q.push(v),Oe(q)}).catch(w=>zt(w,Fe.NAVIGATION_CANCELLED)?w:Promise.reject(w))}function L(I,Z,q){a.list().forEach(X=>k(()=>X(I,Z,q)))}function A(I,Z,q,X,ce){const be=_(I,Z);if(be)return be;const v=Z===Ot,w=Cr?history.state:{};q&&(X||v?s.replace(I.fullPath,_e({scroll:v&&w&&w.scroll},ce)):s.push(I.fullPath,ce)),l.value=I,Pe(I,Z,q,v),Ve()}let H;function ne(){H||(H=s.listen((I,Z,q)=>{if(!$e.listening)return;const X=S(I),ce=C(X,$e.currentRoute.value);if(ce){T(_e(ce,{replace:!0,force:!0}),X).catch(Hs);return}u=X;const be=l.value;Cr&&J1(Bu(be.fullPath,q.delta),$o()),O(X,be).catch(v=>zt(v,Fe.NAVIGATION_ABORTED|Fe.NAVIGATION_CANCELLED)?v:zt(v,Fe.NAVIGATION_GUARD_REDIRECT)?(T(_e(b(v.to),{force:!0}),X).then(w=>
4{zt(w,Fe.NAVIGATION_ABORTED|Fe.NAVIGATION_DUPLICATED)&&!q.delta&&q.type===cl.pop&&s.go(-1,!1)}).catch(Hs),Promise.reject()):(q.delta&&s.go(-q.delta,!1),B(v,X,be))).then(v=>{v=v||A(X,be,!1),v&&(q.delta&&!zt(v,Fe.NAVIGATION_CANCELLED)?s.go(-q.delta,!1):q.type===cl.pop&&zt(v,Fe.NAVIGATION_ABORTED|Fe.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),L(X,be,v)}).catch(Hs)}))}let oe=ls(),U=ls(),Y;function B(I,Z,q){Ve(I);const X=U.list();return X.length?X.forEach(ce=>ce(I,Z,q)):console.error(I),Promise.reject(I)}function le(){return Y&&l.value!==Ot?Promise.resolve():new Promise((I,Z)=>{oe.add([I,Z])})}function Ve(I){return Y||(Y=!I,ne(),oe.list().forEach(([Z,q])=>I?q(I):Z()),oe.reset()),I}function Pe(I,Z,q,X){const{scrollBehavior:ce}=t;if(!Cr||!ce)return Promise.resolve();const be=!q&&Z1(Bu(I.fullPath,0))||(X||!q)&&history.state&&history.state.scroll||null;return xn().then(()=>ce(I,Z,be)).then(v=>v&&Y1(v)).catch(v=>B(v,I,Z))}const ae=I=>s.go(I);let Ie;const Ae=new Set,$e={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:g,resolve:S,options:t,push:y,replace:E,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:U.add,isReady:le,install(I){I.component("RouterLink",xb),I.component("RouterView",Gp),I.config.globalProperties.$router=$e,Object.defineProperty(I.config.globalProperties,"$route",{enumerable:!0,get:()=>De(l)}),Cr&&!Ie&&l.value===Ot&&(Ie=!0,y(s.location).catch(X=>{}));const Z={};for(const X in Ot)Object.defineProperty(Z,X,{get:()=>l.value[X],enumerable:!0});I.provide(Fo,$e),I.provide(pc,en(Z)),I.provide(fl,l);const q=I.unmount;Ae.add(I),I.unmount=function(){Ae.delete(I),Ae.size<1&&(u=Ot,H&&H(),H=null,l.value=Ot,Ie=!1,Y=!1),q()}}};function Oe(I){return I.reduce((Z,q)=>Z.then(()=>k(q)),Promise.resolve())}return $e}function FC(){return Qe(Fo)}function Kp(t){return Qe(pc)}const Ab=/(:\w+)\([^)]+\)/g,Ob=/(:\w+)[?+*]/g,Mb=/:\w+/g,Ib=(t,e)=>e.path.replace(Ab,"$1").replace(Ob,"$1").replace(Mb,n=>t.params[n.slice(1)]?.toString()||""),hl=(t,e)=>{const n=t.route.matched.find(s=>s.components?.default===t.Component.type),r=e??n?.meta.key??(n&&Ib(t.route,n));return typeof r=="function"?r(t.route):r},$b=(t,e)=>({default:()=>t?it(vv,t===!0?{}:t,e):e});function gc(t){return Array.isArray(t)?t:[t]}const Fb="modulepreload",Nb=function(t,e){return new URL(t,e).href},tf={},Qn=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=u(n.map(c=>{if(c=Nb(c,r),c in tf)return;tf[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":Fb,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},ua=[{name:"quiz",path:"/quiz",component:()=>Qn(()=>import("./Dp5ks9zY.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)},{name:"test",path:"/test",component:()=>Qn(()=>import("./DOVeQfc_.js"),[],import.meta.url)},{name:"final",path:"/final",component:()=>Qn(()=>import("./mIPmBfrz.js"),__vite__mapDeps([5,3,1,2,6]),import.meta.url)},{name:"index",path:"/",component:()=>Qn(()=>import("./BDdQp5bM.js"),__vite__mapDeps([7,8]),import.meta.url)},{name:"stores",path:"/stores",component:()=>Qn(()=>import("./D17Avayy.js"),__vite__mapDeps([9,10]),import.meta.url)},{name:"thankyou",path:"/thankyou",component:()=>Qn(()=>import("./CZIZ8tZl.js"),__vite__mapDeps([11,2,3,12]),import.meta.url)},{name:"old-thankyou",path:"/old-thankyou",component:()=>Qn(()=>import("./xuBPDhYg.js"),__vite__mapDeps([13,2]),import.meta.url)}],zp=(t,e)=>({default:()=>t?it(wm,t===!0?{}:t,e):e.default?.()}),Lb=/(:\w+)\([^)]+\)/g,Db=/(:\w+)[?+*]/g,Hb=/:\w+/g;function nf(t){const e=t?.meta.key??t.path.replace(Lb,"$1").replace(Db,"$1").replace(Hb,n=>t.params[n.slice(1)]?.toString()||"");return typeof e=="function"?e(t):e}function jb(t,e){return t===e||e===Ot?!1:nf(t)!==nf(e)?!0:!t.matched.every((r,s)=>r.components&&r.components.default===e.matched[s]?.components?.default)}const Ub={scrollBehavior(t,e,n){const r=Ke(),s=$t().options?.scrollBehaviorType??"auto";if(t.path.replace(/\/$/,"")===e.path.replace(/\/$/,""))return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:Yp(t.hash),behavior:s}:!1;if((typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop)===!1)return!1;const o=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(e===Ot){a(rf(t,e,n,s));return}r.hooks.hookOnce(o,()=>{requestAnimationFrame(()=>a(rf(t,e,n,s)))})})}};function Yp(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function rf(t,e,n,r){if(n)return n;const s=jb(t,e);return t.hash?{el:t.hash,top:Yp(t.hash),behavior:s?r:"instant"}:{left:0,top:0}}const Bb={hashMode:!1,scrollBehaviorType:"auto"},In={...Bb,...Ub},Vb=async(t,e)=>{let n,r;if(!t.meta?.validate)return;const s=([n,r]=Ls(()=>Promise.resolve(t.meta.validate(t))),n=await n,r(),n);if(s===!0)return;const i=fr({fatal:!0,status:s&&(s.status||s.statusCode)||404,statusText:s&&(s.statusText||s.statusMessage)||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}});return typeof window<"u"&&window.history.pushState({},"",e.fullPath),i},Wb=t=>{const e=Io({path:t.path});if(e.redirect){const n=e.redirect.includes("#")?e.redirect:e.redirect+t.hash;return Xr(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},qb=[Vb,Wb],dl={};function Gb(t,e,n){const{pathname:r,search:s,hash:i}=e,o=t.indexOf("#");if(o>-1){const u=i.includes(t.slice(o))?t.slice(o).length:1;let c=i.slice(u);return c[0]!=="/"&&(c="/"+c),wu(c,"")}const a=wu(r,t),l=!n||Ey(a,n)?a:n;
4return l+(l.includes("?")?"":s)+i}const Kb=ht({name:"nuxt:router",enforce:"pre",async setup(t){let e,n,r=Rn().app.baseURL;const s=In.history?.(r)??lb(r),i=In.routes?([e,n]=Ls(()=>In.routes(ua)),e=await e,n(),e??ua):ua;let o;const a=Pb({...In,scrollBehavior:(m,S,b)=>{if(S===Ot){o=b;return}if(In.scrollBehavior){if(a.options.scrollBehavior=In.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return In.scrollBehavior(m,Ot,o||b)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(a);const l=dr(a.currentRoute.value);a.afterEach((m,S)=>{l.value=S}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Gb(r,window.location,t.payload.path),c=dr(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};a.afterEach((m,S)=>{m.matched.at(-1)?.components?.default===S.matched.at(-1)?.components?.default&&f()});const d={sync:f};for(const m in c.value)Object.defineProperty(d,m,{get:()=>c.value[m],enumerable:!0});t._route=en(d),t._middleware||={global:[],named:{}};const h=Mo();a.afterEach(async(m,S,b)=>{delete t._processingMiddleware,!t.isHydrating&&h.value&&await t.runWithContext(mp),b&&await t.callHook("page:loading:end")});try{[e,n]=Ls(()=>a.isReady()),await e,n()}catch(m){[e,n]=Ls(()=>t.runWithContext(()=>sr(m))),await e,n()}const p=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const g=t.payload.state._layout;return a.beforeEach(async(m,S)=>{await t.callHook("page:loading:start"),m.meta=An(m.meta),t.isHydrating&&g&&!rn(m.meta.layout)&&(m.meta.layout=g),t._processingMiddleware=!0;{const b=new Set([...qb,...t._middleware.global]);for(const y of m.matched){const E=y.meta.middleware;if(E)for(const C of gc(E))b.add(C)}const _=Io({path:m.path});if(_.appMiddleware)for(const y in _.appMiddleware)_.appMiddleware[y]?b.add(y):b.delete(y);for(const y of b){const E=typeof y=="string"?t._middleware.named[y]||await dl[y]?.().then(C=>C.default||C):y;if(!E)throw new Error(`Unknown route middleware: '${y}'.`);try{const C=await t.runWithContext(()=>E(m,S));if(!t.payload.serverRendered&&t.isHydrating&&(C===!1||C instanceof Error)){const T=C||fr({status:404,statusText:`Page Not Found: ${u}`});return await t.runWithContext(()=>sr(T)),!1}if(C===!0)continue;if(C===!1)return C;if(C)return yp(C)&&C.fatal&&await t.runWithContext(()=>sr(C)),C}catch(C){const T=fr(C);return T.fatal&&await t.runWithContext(()=>sr(T)),T}}}}),a.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),a.afterEach(m=>{if(m.matched.length===0&&!h.value)return t.runWithContext(()=>sr(fr({status:404,fatal:!1,statusText:`Page not found: ${m.fullPath}`,data:{path:m.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=In.scrollBehavior}catch(m){await t.runWithContext(()=>sr(m))}}),{provide:{router:a}}}}),sf=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),_c=t=>{const e=Ke();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{sf(()=>t())}):sf(()=>t())},zb=ht({name:"nuxt:payload",setup(t){const e=new Set;$t().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Du(n.path);if(s){for(const i of e)delete t.static.data[i];for(const i in s.data)i in t.static.data||e.add(i),t.static.data[i]=s.data[i]}}),_c(()=>{t.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Du(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(fc,1e3)})}}),Yb=ht(()=>{const t=$t();_c(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),Jb=ht(t=>{let e;async function n(){let r;try{r=await fc()}catch(s){const i=s;
4if(!("status"in i&&(i.status===404||i.status===403)))throw i}e&&clearTimeout(e),e=setTimeout(n,Ru);try{const s=await $fetch(uc("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(t.hooks.callHook("app:manifest:update",s),e&&clearTimeout(e))}catch{}}_c(()=>{e=setTimeout(n,Ru)})});function Zb(t={}){const e=t.path||window.location.pathname;let n={};try{n=Ks(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||n?.path!==e||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:e,expires:Date.now()+(t.ttl??1e4)}))}catch{}if(t.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ke().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const Xb=ht({name:"nuxt:chunk-reload",setup(t){const e=$t(),n=Rn(),r=new Set;e.beforeEach(()=>{r.clear()}),t.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const o=lc(n.app.baseURL,i.fullPath);Zb({path:o,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(s)}),e.onError((i,o)=>{r.has(i)&&s(o)})}});function of(t){return typeof t=="string"?`'${t}'`:new Qb().serialize(t)}const Qb=(function(){class t{#e=new Map;compare(n,r){const s=typeof n,i=typeof r;return s==="string"&&i==="string"?n.localeCompare(r):s==="number"&&i==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const o=n.toJSON();return i+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((o,a)=>this.compare(o[0],a[0]));let i=`${n}{`;for(let o=0;o<s.length;o++){const[a,l]=s[o];i+=`${this.serialize(a,!0)}:${this.serialize(l)}`,o<s.length-1&&(i+=",")}return i+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let s=0;s<n.length;s++)r+=this.serialize(n[s]),s<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,s)=>this.compare(r,s)))}`}
4$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const e of["Error","RegExp","URL"])t.prototype["$"+e]=function(n){return`${e}(${n})`};for(const e of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join(",")}]`};for(const e of["BigInt64Array","BigUint64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function ew(t,e){return t===e||of(t)===of(e)}function tw(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");const n={},r=e||{},s=r.decode||nw;let i=0;for(;i<t.length;){const o=t.indexOf("=",i);if(o===-1)break;let a=t.indexOf(";",i);if(a===-1)a=t.length;else if(a<o){i=t.lastIndexOf(";",o-1)+1;continue}const l=t.slice(i,o).trim();if(r?.filter&&!r?.filter(l)){i=a+1;continue}if(n[l]===void 0){let u=t.slice(o+1,a).trim();u.codePointAt(0)===34&&(u=u.slice(1,-1)),n[l]=rw(u,s)}i=a+1}return n}function nw(t){return t.includes("%")?decodeURIComponent(t):t}function rw(t,e){try{return e(t)}catch{return t}}const wi=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function af(t,e,n){const r=n||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!wi.test(t))throw new TypeError("argument name is invalid");const i=s(e);if(i&&!wi.test(i))throw new TypeError("argument val is invalid");let o=t+"="+i;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!wi.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!wi.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!sw(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
4d");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function sw(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function Nt(t){if(typeof t!="object")return t;var e,n,r=Object.prototype.toString.call(t);if(r==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(e in t)t.hasOwnProperty(e)&&n[e]!==t[e]&&(n[e]=Nt(t[e]))}else{n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:Nt(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=Nt(t[e])}return n}if(r==="[object Array]"){for(e=t.length,n=Array(e);e--;)n[e]=Nt(t[e]);return n}return r==="[object Set]"?(n=new Set,t.forEach(function(s){n.add(Nt(s))}),n):r==="[object Map]"?(n=new Map,t.forEach(function(s,i){n.set(Nt(i),Nt(s))}),n):r==="[object Date]"?new Date(+t):r==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):r==="[object DataView]"?new t.constructor(Nt(t.buffer)):r==="[object ArrayBuffer]"?t.slice(0):r.slice(-6)==="Array]"?new t.constructor(t):t}const iw={path:"/",watch:!0,decode:t=>{const e=decodeURIComponent(t),n=Ks(e);return typeof n=="number"&&(!Number.isFinite(n)||String(n)!==e)?e:n},encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))},Ei=globalThis.cookieStore;function lf(t,e){const n={...iw,...e};n.filter??=u=>u===t;const r=cf(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=i||r[t]===void 0||r[t]===null,a=Nt(i?void 0:r[t]??n.default?.()),l=s&&!i?lw(a,s,n.watch&&n.watch!=="shallow"):jt(a);{let u=null;try{!Ei&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const c=(p=!1)=>{!p&&(n.readonly||ew(l.value,r[t]))||(aw(t,l.value,n),r[t]=Nt(l.value),u?.postMessage({value:n.encode(l.value)}))},f=p=>{const g=p.refresh?cf(n)?.[t]:n.decode(p.value);d=!0,l.value=g,r[t]=Nt(g),xn(()=>{d=!1})};let d=!1;const h=!!ni();if(h&&Fi(()=>{d=!0,c(),u?.close()}),Ei){const p=g=>{const m=g.changed.find(b=>b.name===t),S=g.deleted.find(b=>b.name===t);m&&f({value:m.value}),S&&f({value:null})};Ei.addEventListener("change",p),h&&Fi(()=>Ei.removeEventListener("change",p))}else u&&(u.onmessage=({data:p})=>f(p));n.watch&&yn(l,()=>{d||c()},{deep:n.watch!=="shallow"}),o&&c(o)}return l}function cf(t={}){return tw(document.cookie,t)}function ow(t,e,n={}){return e==null?af(t,e,{...n,maxAge:-1}):af(t,e,n)}function aw(t,e,n={}){document.cookie=ow(t,e,n)}const uf=2147483647;function lw(t,e,n){let r,s,i=0;const o=n?jt(t):{value:t};return ni()&&Fi(()=>{s?.(),clearTimeout(r)}),Xh((a,l)=>{n&&(s=yn(o,l));function u(){i=0,clearTimeout(r);const c=e-i,f=c<uf?c:uf;r=setTimeout(()=>{if(i+=f,i<e)return u();o.value=void 0,l()},f)}return{get(){return a(),o.value},set(c){u(),o.value=c,l()}}})}function cw(t){if(t?.__asyncLoader&&!t.__asyncResolved)return t.__asyncLoader()}const uw=ht({name:"pinia",setup(t){const e=v0();return t.vueApp.use(e),Wr(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}},hooks:{"app:rendered"(){const t=Ke();t.payload.pinia=he(t.$pinia).state.value,Wr(void 0)}}}),fw=ht({name:"nuxt:global-components"}),Bn={},hw=ht({name:"nuxt:prefetch",setup(t){const e=$t();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Bn[r]=="function"&&await Bn[r]()})}),t.hooks.hook("link:prefetch",n=>{if(Xr(n))return;const r=e.resolve(n);if(!r)return;const s=r.meta.layout;let i=gc(r.meta.middleware);
4i=i.filter(o=>typeof o=="string");for(const o of i)typeof dl[o]=="function"&&dl[o]();typeof s=="string"&&s in Bn&&cw(Bn[s])})}});function dw(t,e){if(t==null)return;let n=t;for(let r=0;r<e.length;r++){if(n===void 0||n[e[r]]===void 0)return;if(n===null||n[e[r]]===null)return null;n=n[e[r]]}return n}function vc(t,e,n){if(n.length===0)return e;const r=n[0];return n.length>1&&(e=vc(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,r)?Number.isInteger(Number(n[1]))?[]:{}:t[r],e,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(t)?t.slice()[r]:Object.assign({},t,{[r]:e})}function Jp(t,e){if(t==null||e.length===0)return t;if(e.length===1){if(t==null)return t;if(Number.isInteger(e[0])&&Array.isArray(t))return Array.prototype.slice.call(t,0).splice(e[0],1);const n={};for(const r in t)n[r]=t[r];return delete n[e[0]],n}if(t[e[0]]==null){if(Number.isInteger(e[0])&&Array.isArray(t))return Array.prototype.concat.call([],t);const n={};for(const r in t)n[r]=t[r];return n}return vc(t,Jp(t[e[0]],Array.prototype.slice.call(e,1)),[e[0]])}function Zp(t,e){return e.map(n=>n.split(".")).map(n=>[n,dw(t,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>vc(n,r[1],r[0]),{})}function Xp(t,e){return e.map(n=>n.split(".")).reduce((n,r)=>Jp(n,r),t)}function ff(t,{storage:e,serializer:n,key:r,debug:s,pick:i,omit:o,beforeHydrate:a,afterHydrate:l},u,c=!0){try{c&&a?.(u);const f=e.getItem(r);if(f){const d=n.deserialize(f),h=i?Zp(d,i):d,p=o?Xp(h,o):h;t.$patch(p)}c&&l?.(u)}catch(f){s&&console.error("[pinia-plugin-persistedstate]",f)}}function hf(t,{storage:e,serializer:n,key:r,debug:s,pick:i,omit:o}){try{const a=i?Zp(t,i):t,l=o?Xp(a,o):a,u=n.serialize(l);e.setItem(r,u)}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function pw(t,e){return typeof t=="function"?t(e):typeof t=="string"?t:e}function gw(t,e,n){const{pinia:r,store:s,options:{persist:i=n}}=t;if(!i)return;if(!(s.$id in r.state.value)){const l=r._s.get(s.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const a=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(e);s.$hydrate=({runHooks:l=!0}={})=>{a.forEach(u=>{ff(s,u,t,l)})},s.$persist=()=>{a.forEach(l=>{hf(s.$state,l)})},a.forEach(l=>{ff(s,l,t),s.$subscribe((u,c)=>hf(c,l),{detached:!0})})}function _w(t){return{getItem:e=>lf(e,{...t??Rn().public.piniaPluginPersistedstate.cookieOptions??{},decode:t?.decode??decodeURIComponent,readonly:!0}).value,setItem:(e,n)=>lf(e,{...t??Rn().public.piniaPluginPersistedstate.cookieOptions??{},encode:t?.encode??encodeURIComponent}).value=n}}function vw(){return{getItem:t=>window.localStorage.getItem(t),setItem:(t,e)=>window.localStorage.setItem(t,e)}}function mw(){return{getItem:t=>window.sessionStorage.getItem(t),setItem:(t,e)=>window.sessionStorage.setItem(t,e)}}const fa={cookies:_w,localStorage:vw,sessionStorage:mw};function yw(t){const n=Rn().public.piniaPluginPersistedstate;gw(t,r=>{const s=pw(r.key,t.store.$id);return{key:n.key?n.key.replace(/%id/g,s):s,debug:r.debug??n.debug??!1,serializer:r.serializer??{serialize:i=>JSON.stringify(i),deserialize:i=>JSON.parse(i)},storage:r.storage??(n.storage?n.storage==="cookies"?fa.cookies(n.cookieOptions):fa[n.storage]():fa.cookies()),beforeHydrate:r.beforeHydrate,afterHydrate:r.afterHydrate,pick:r.pick,omit:r.omit}},n.auto??!1)}const bw=ht({name:"pinia-plugin-persistedstate",setup({$pinia:t}){t.use(yw)}});function ww(t,e,n,r,s,i,o){return t.fbq?t.fbq:(s=t.fbq=function(){s.callMethod?s.callMethod.apply(s,arguments):s.queue.push(arguments)},t._fbq||(t._fbq=s),s.push=s,s.loaded=!0,s.version="2.0",s.queue=[],i=e.createElement(n),i.async=!0,i.src=r,o=e.getElementsByTagName(n)[0],o.parentNode.insertBefore(i,o),s)}function Ew(){return ww(window,document,"script","https://connect.facebook.net/en_US/fbevents.js")}function pl(t=Ew()){function e(r,s=!0){return t("set","autoConfig",s,r),t("init",r),pl(t)}function n(r){return r===void 0?t("track","PageView"):t("trackSingle",r,"PageView"),pl(t)}return{$fbq:t,init:e,pageView:n}}function Sw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ha,df;function Cw(){if(df)return ha;df=1,ha=t;function t(r,s,i){r instanceof RegExp&&(r=e(r,i)),s instanceof RegExp&&(s=e(s,i));var o=n(r,s,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+r.length,o[1]),post:i.slice(o[1]+s.length)}}function e(r,s){var i=s.match(r);return i?i[0]:null}t.range=n;function n(r,s,i){var o,a,l,u,c,f=i.indexOf(r),d=i.indexOf(s,f+1),h=f;if(f>=0&&d>0){if(r===s)return[f,d];for(o=[],l=i.length;h>=0&&!c;)h==f?(o.push(h),f=i.indexOf(r,h+1)):o.length==1?c=[o.pop(),d]:(a=o.pop(),a<l&&(l=a,u=d),d=i.indexOf(s,h+1)),h=f<d&&f>=0?f:d;o.length&&(c=[l,u])}return c}return ha}var da,pf;function xw(){if(pf)return da;pf=1;var t=Cw();da=c;var e="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",i="\0PERIOD"+Math.random()+"\0";function o(m){return parseInt(m,10)==m?parseInt(m,10):m.charCodeAt(0)}function a(m){return m.split("\\\\").join(e).split("\\{").join(n).split("\\}").join(r).split("\\,").join(s).split("\\.").join(i)}function l(m){return m.split(e).join("\\").split(n).join("{").split(r).join("}").split(s).join(",").split(i).join(".")}function u(m){if(!m)return[""];var S=[],b=t("{","}",m);if(!b)return m.split(",");var _=b.pre,y=b.body,E=b.post,C=_.split(",");C[C.length-1]+="{"+y+"}";var T=u(E);return E.length&&(C[C.length-1]+=T.shift(),C.push.apply(C,T)),S.push.apply(S,C),S}function c(m){return m?(m.substr(0,2)==="{}"&&(m="\\{\\}"+m.substr(2)),g(a(m),!0).map(l)):[]}function f(m){return"{"+m+"}"}function d(m){return/^-?0\d/.test(m)}function h(m,S){return m<=S}function p(m,S){return m>=S}function g(m,S){var b=[],_=t("{","}",m);if(!_)return[m];var y=_.pre,E=_.post.length?g(_.post,!1):[""];
4if(/\$$/.test(_.pre))for(var C=0;C<E.length;C++){var T=y+"{"+_.body+"}"+E[C];b.push(T)}else{var R=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(_.body),k=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(_.body),O=R||k,L=_.body.indexOf(",")>=0;if(!O&&!L)return _.post.match(/,(?!,).*\}/)?(m=_.pre+"{"+_.body+r+_.post,g(m)):[m];var A;if(O)A=_.body.split(/\.\./);else if(A=u(_.body),A.length===1&&(A=g(A[0],!1).map(f),A.length===1))return E.map(function(Oe){return _.pre+A[0]+Oe});var H;if(O){var ne=o(A[0]),oe=o(A[1]),U=Math.max(A[0].length,A[1].length),Y=A.length==3?Math.abs(o(A[2])):1,B=h,le=oe<ne;le&&(Y*=-1,B=p);var Ve=A.some(d);H=[];for(var Pe=ne;B(Pe,oe);Pe+=Y){var ae;if(k)ae=String.fromCharCode(Pe),ae==="\\"&&(ae="");else if(ae=String(Pe),Ve){var Ie=U-ae.length;if(Ie>0){var Ae=new Array(Ie+1).join("0");Pe<0?ae="-"+Ae+ae.slice(1):ae=Ae+ae}}H.push(ae)}}else{H=[];for(var $e=0;$e<A.length;$e++)H.push.apply(H,g(A[$e],!1))}for(var $e=0;$e<H.length;$e++)for(var C=0;C<E.length;C++){var T=y+H[$e]+E[C];(!S||O||T)&&b.push(T)}}return b}return da}var kw=xw();const Rw=Sw(kw),Tw=1024*64,Qi=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Tw)throw new TypeError("pattern is too long")},Pw={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},cs=t=>t.replace(/[[\]\\-]/g,"\\$&"),Aw=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gf=t=>t.join(""),Ow=(t,e)=>{const n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");const r=[],s=[];let i=n+1,o=!1,a=!1,l=!1,u=!1,c=n,f="";e:for(;i<t.length;){const g=t.charAt(i);if((g==="!"||g==="^")&&i===n+1){u=!0,i++;continue}if(g==="]"&&o&&!l){c=i+1;break}if(o=!0,g==="\\"&&!l){l=!0,i++;continue}if(g==="["&&!l){for(const[m,[S,b,_]]of Object.entries(Pw))if(t.startsWith(m,i)){if(f)return["$.",!1,t.length-n,!0];i+=m.length,_?s.push(S):r.push(S),a=a||b;continue e}}if(l=!1,f){g>f?r.push(cs(f)+"-"+cs(g)):g===f&&r.push(cs(g)),f="",i++;continue}if(t.startsWith("-]",i+1)){r.push(cs(g+"-")),i+=2;continue}if(t.startsWith("-",i+1)){f=g,i+=2;continue}r.push(cs(g)),i++}if(c<i)return["",!1,0,!1];if(!r.length&&!s.length)return["$.",!1,t.length-n,!0];if(s.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!u){const g=r[0].length===2?r[0].slice(-1):r[0];return[Aw(g),!1,c-n,!1]}const d="["+(u?"^":"")+gf(r)+"]",h="["+(u?"":"^")+gf(s)+"]";return[r.length&&s.length?"("+d+"|"+h+")":r.length?d:h,a,c-n,!0]},ws=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),Mw=new Set(["!","?","+","*","@"]),_f=t=>Mw.has(t),Iw="(?!(?:^|/)\\.\\.?(?:$|/))",Si="(?!\\.)",$w=new Set(["[","."]),Fw=new Set(["..","."]),Nw=new Set("().*{}+?[]^$\\!"),Lw=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mc="[^/]",vf=mc+"*?",mf=mc+"+?";class ct{type;#e;#r;#i=!1;#t=[];#n;#o;#l;#a=!1;#s;#c;#f=!1;constructor(e,n,r={}){this.type=e,e&&(this.#r=!0),this.#n=n,this.#e=this.#n?this.#n.#e:this,this.#s=this.#e===this?r:this.#e.#s,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#a&&this.#l.push(this),this.#o=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#c=this.#t.map(e=>String(e)).join("")}#d(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let n=e,r=n.#n;for(;r;){for(let s=n.#o+1;!r.type&&s<r.#t.length;s++)for(const i of e.#t){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(r.#t[s])}n=r,r=n.#n}}return this}
4push(...e){for(const n of e)if(n!==""){if(typeof n!="string"&&!(n instanceof ct&&n.#n===this))throw new Error("invalid part: "+n);this.#t.push(n)}}toJSON(){const e=this.type===null?this.#t.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#t.map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#o===0)return!0;const e=this.#n;for(let n=0;n<this.#o;n++){const r=e.#t[n];if(!(r instanceof ct&&r.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();const e=this.#n?this.#n.#t.length:0;return this.#o===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){const n=new ct(this.type,e);for(const r of this.#t)n.copyIn(r);return n}static#u(e,n,r,s){let i=!1,o=!1,a=-1,l=!1;if(n.type===null){let h=r,p="";for(;h<e.length;){const g=e.charAt(h++);if(i||g==="\\"){i=!i,p+=g;continue}if(o){h===a+1?(g==="^"||g==="!")&&(l=!0):g==="]"&&!(h===a+2&&l)&&(o=!1),p+=g;continue}else if(g==="["){o=!0,a=h,l=!1,p+=g;continue}if(!s.noext&&_f(g)&&e.charAt(h)==="("){n.push(p),p="";const m=new ct(g,n);h=ct.#u(e,m,h,s),n.push(m);continue}p+=g}return n.push(p),h}let u=r+1,c=new ct(null,n);const f=[];let d="";for(;u<e.length;){const h=e.charAt(u++);if(i||h==="\\"){i=!i,d+=h;continue}if(o){u===a+1?(h==="^"||h==="!")&&(l=!0):h==="]"&&!(u===a+2&&l)&&(o=!1),d+=h;continue}else if(h==="["){o=!0,a=u,l=!1,d+=h;continue}if(_f(h)&&e.charAt(u)==="("){c.push(d),d="";const p=new ct(h,c);c.push(p),u=ct.#u(e,p,u,s);continue}if(h==="|"){c.push(d),d="",f.push(c),c=new ct(null,n);continue}if(h===")")return d===""&&n.#t.length===0&&(n.#f=!0),c.push(d),d="",n.push(...f,c),u;d+=h}return n.type=null,n.#r=void 0,n.#t=[e.substring(r-1)],u}static fromGlob(e,n={}){const r=new ct(null,void 0,n);return ct.#u(e,r,0,n),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const e=this.toString(),[n,r,s,i]=this.toRegExpSource();if(!(s||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;const a=(this.#s.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:e})}get options(){return this.#s}toRegExpSource(e){const n=e??!!this.#s.dot;if(this.#e===this&&this.#d(),!this.type){const l=this.isStart()&&this.isEnd(),u=this.#t.map(h=>{const[p,g,m,S]=typeof h=="string"?ct.#p(h,this.#r,l):h.toRegExpSource(e);return this.#r=this.#r||m,this.#i=this.#i||S,p}).join("");let c="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&Fw.has(this.#t[0]))){const p=$w,g=n&&p.has(u.charAt(0))||u.startsWith("\\.")&&p.has(u.charAt(2))||u.startsWith("\\.\\.")&&p.has(u.charAt(4)),m=!n&&!e&&p.has(u.charAt(0));c=g?Iw:m?Si:""}let f="";return this.isEnd()&&this.#e.#a&&this.#n?.type==="!"&&(f="(?:$|\\/)"),[c+u+f,ws(u),this.#r=!!this.#r,this.#i]}const r=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#h(n);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const l=this.toString();return this.#t=[l],this.type=null,this.#r=void 0,[l,ws(this.toString()),!1,!1]}let o=!r||e||n||!Si?"":this.#h(!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&this.#f)a=(this.isStart()&&!n?Si:"")+mf;else{const l=this.type==="!"?"))"+(this.isStart()&&!n&&!e?Si:"")+vf+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+l}return[a,ws(i),this.#r=!!this.#r,this.#i]}#h(e){return this.#t.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[r,s,i,o]=n.toRegExpSource(e);return this.#i=this.#i||o,r}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#p(e,n,r=!1){let s=!1,i="",o=!1;for(let a=0;a<e.length;a++){const l=e.charAt(a);if(s){s=!1,i+=(Nw.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?i+="\\\\":s=!0;continue}if(l==="["){const[u,c,f,d]=Ow(e,a);if(f){i+=u,o=o||c,a+=f-1,n=n||d;continue}}if(l==="*"){r&&e==="*"?i+=mf:i+=vf,n=!0;continue}if(l==="?"){i+=mc,n=!0;continue}i+=Lw(l)}return[i,ws(e),!!n,o]}}const Dw=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var pa={};const ot=(t,e,n={})=>(Qi(e),!n.nocomment&&e.charAt(0)==="#"?!1:new No(e,n).match(t)),Hw=/^\*+([^+@!?\*\[\(]*)$/,jw=t=>e=>!e.startsWith(".")&&e.endsWith(t),Uw=t=>e=>e.endsWith(t),Bw=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Vw=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Ww=/^\*+\.\*+$/,qw=t=>!t.startsWith(".")&&t.includes("."),Gw=t=>t!=="."&&t!==".."&&t.includes("."),Kw=/^\.\*+$/,zw=t=>t!=="."&&t!==".."&&t.startsWith("."),Yw=/^\*+$/,Jw=t=>t.length!==0&&!t.startsWith("."),Zw=t=>t.length!==0&&t!=="."&&t!=="..",Xw=/^\?+([^+@!?\*\[\(]*)?$/,Qw=([t,e=""])=>{const n=Qp([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},eE=([t,e=""])=>{const n=eg([t]);return e?(e=e.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(e)):n},tE=([t,e=""])=>{const n=eg([t]);return e?r=>n(r)&&r.endsWith(e):n},nE=([t,e=""])=>{const n=Qp([t]);return e?r=>n(r)&&r.endsWith(e):n},Qp=([t])=>{const e=t.length;return n=>n.length===e&&!n.startsWith(".")},eg=([t])=>{const e=t.length;return n=>n.length===e&&n!=="."&&n!==".."},tg=typeof process=="object"&&process?typeof pa=="object"&&pa&&pa.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",yf={win32:{sep:"\\"},posix:{sep:"/"}},rE=tg==="win32"?yf.win32.sep:yf.posix.sep;ot.sep=rE;const At=Symbol("globstar **");ot.GLOBSTAR=At;const sE="[^/]",iE=sE+"*?",oE="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",aE="(?:(?!(?:\\/|^)\\.).)*?",lE=(t,e={})=>n=>ot(n,t,e);ot.filter=lE;const Pt=(t,e={})=>Object.assign({},t,e),cE=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ot;const e=ot;return Object.assign((r,s,i={})=>e(r,s,Pt(t,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,Pt(t,i))}static defaults(s){return e.defaults(Pt(t,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,Pt(t,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,Pt(t,i))}},unescape:(r,s={})=>e.unescape(r,Pt(t,s)),escape:(r,s={})=>e.escape(r,Pt(t,s)),filter:(r,s={})=>e.filter(r,Pt(t,s)),defaults:r=>e.defaults(Pt(t,r)),makeRe:(r,s={})=>e.makeRe(r,Pt(t,s)),braceExpand:(r,s={})=>e.braceExpand(r,Pt(t,s)),match:(r,s,i={})=>e.match(r,s,Pt(t,i)),sep:e.sep,GLOBSTAR:At})};ot.defaults=cE;const ng=(t,e={})=>(Qi(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Rw(t));ot.braceExpand=ng;const uE=(t,e={})=>new No(t,e).makeRe();ot.makeRe=uE;const fE=(t,e,n={})=>{const r=new No(e,n);return t=t.filter(s=>r.match(s)),r.options.nonull&&!t.length&&t.push(e),t};ot.match=fE;const bf=/[?*]|[+@!]\(.*?\)|\[|\]/,hE=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class No{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,n={}){Qi(e),n=n||{},this.options=n,this.pattern=e,this.platform=n.platform||tg,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;
4for(const e of this.set)for(const n of e)if(typeof n!="string")return!0;return!1}debug(...e){}make(){const e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);const r=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){const l=i[0]===""&&i[1]===""&&(i[2]==="?"||!bf.test(i[2]))&&!bf.test(i[3]),u=/^[a-z]:/i.test(i[0]);if(l)return[...i.slice(0,4),...i.slice(4).map(c=>this.parse(c))];if(u)return[i[0],...i.slice(1).map(c=>this.parse(c))]}return i.map(l=>this.parse(l))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){const o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let s=0;s<e[r].length;s++)e[r][s]==="**"&&(e[r][s]="*");const{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):n>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let s=r;for(;n[s+1]==="**";)s++;s!==r&&n.splice(r,s-r)}return n})}levelOneOptimize(e){return e.map(n=>(n=n.reduce((r,s)=>{const i=r[r.length-1];return s==="**"&&i==="**"?r:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(r.pop(),r):(r.push(s),r)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){const i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(n=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(n=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){const s=e[r-1];s&&s!=="."&&s!==".."&&s!=="**"&&(n=!0,e.splice(r-1,2),r-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let r of e){let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let o=s;for(;r[o+1]==="**";)o++;o>s&&r.splice(s+1,o-s);let a=r[s+1];const l=r[s+2],u=r[s+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;n=!0,r.splice(s,1);const c=r.slice(0);c[s]="**",e.push(c),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){const a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(n=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let i=0;for(;(i=r.indexOf("..",i+1))!==-1;){const o=r[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){n=!0;const l=i===1&&r[i+1]==="**"?["."]:[];r.splice(i-1,2,...l),r.length===0&&r.push(""),i-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let r=n+1;r<e.length;r++){const s=this.partsMatch(e[n],e[r],!this.preserveMultipleSlashes);if(s){e[n]=[],e[r]=s;break}}return e.filter(n=>n.length)}partsMatch(e,n,r=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<n.length;)if(e[s]===n[i])o.push(a==="b"?n[i]:e[s]),s++,i++;else if(r&&e[s]==="**"&&n[i]===e[s+1])o.push(e[s]),s++;else if(r&&n[i]==="**"&&e[s]===n[i+1])o.push(n[i]),i++;else if(e[s]==="*"&&n[i]&&(this.options.dot||!n[i].startsWith("."))&&n[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,i++}else if(n[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(n[i]),s++,i++}else return!1;return e.length===n.length&&o}parseNegate(){if(this.nonegate)return;const e=this.pattern;let n=!1,r=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)n=!n,r++;r&&(this.pattern=e.slice(r)),this.negate=n}matchOne(e,n,r=!1){const s=this.options;if(this.isWindows){const g=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),m=!g&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),S=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),b=!S&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),_=m?3:g?0:void 0,y=b?3:S?0:void 0;if(typeof _=="number"&&typeof y=="number"){const[E,C]=[e[_],n[y]];E.toLowerCase()===C.toLowerCase()&&(n[y]=E,y>_?n=n.slice(y):_>y&&(e=e.slice(_)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var o=0,a=0,l=e.length,u=n.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");var c=n[a],f=e[o];if(this.debug(n,c,f),c===!1)return!1;if(c===At){this.debug("GLOBSTAR",[n,c,f]);var d=o,h=a+1;if(h===u){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return!1;return!0}for(;d<l;){var p=e[d];if(this.debug(` 5globstar while`,e,d,n,h,p),this.matchOne(e.slice(d),n.slice(h),r))return this.debug("globstar found match!",d,l,p),!0;if(p==="."||p===".."||!s.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,d,n,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(r&&(this.debug(` 6>>> no match, partial?`,e,d,n,h),d===l))}let g;if(typeof c=="string"?(g=f===c,this.debug("string match",c,f,g)):(g=c.test(f),this.debug("pattern match",c,f,g)),!g)return!1}if(o===l&&a===u)return!0;
6if(o===l)return r;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return ng(this.pattern,this.options)}parse(e){Qi(e);const n=this.options;if(e==="**")return At;if(e==="")return"";let r,s=null;(r=e.match(Yw))?s=n.dot?Zw:Jw:(r=e.match(Hw))?s=(n.nocase?n.dot?Vw:Bw:n.dot?Uw:jw)(r[1]):(r=e.match(Xw))?s=(n.nocase?n.dot?eE:Qw:n.dot?tE:nE)(r):(r=e.match(Ww))?s=n.dot?Gw:qw:(r=e.match(Kw))&&(s=zw);const i=ct.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,r=n.noglobstar?iE:n.dot?oE:aE,s=new Set(n.nocase?["i"]:[]);let i=e.map(l=>{const u=l.map(c=>{if(c instanceof RegExp)for(const f of c.flags.split(""))s.add(f);return typeof c=="string"?hE(c):c===At?At:c._src});return u.forEach((c,f)=>{const d=u[f+1],h=u[f-1];c!==At||h===At||(h===void 0?d!==void 0&&d!==At?u[f+1]="(?:\\/|"+r+"\\/)?"+d:u[f]=r:d===void 0?u[f-1]=h+"(?:\\/|"+r+")?":d!==At&&(u[f-1]=h+"(?:\\/|\\/"+r+"\\/)"+d,u[f+1]=At))}),u.filter(c=>c!==At).join("/")}).join("|");const[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;const r=this.options;this.isWindows&&(e=e.split("\\").join("/"));const s=this.slashSplit(e);this.debug(this.pattern,"split",s);const i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){const l=i[a];let u=s;if(r.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return ot.defaults(e).Minimatch}}ot.AST=ct;ot.Minimatch=No;ot.escape=Dw;ot.unescape=ws;const dE=ht(()=>{const e=Rn().public.metapixel,{$fbq:n,init:r,pageView:s}=pl();n.disablePushState=!0;for(const o in e){const a=e[o];r(a.id.toString(),a.autoconfig)}return $t().afterEach((o,a,l)=>{if(!zt(l))for(const u in e){const c=e[u];ot(o.path,c.pageView??"**")&&s(c.id.toString())}}),{provide:{fbq:n}}});var P=typeof window<"u"?window:void 0,Xe=typeof globalThis<"u"?globalThis:P;typeof self>"u"&&(Xe.self=Xe),typeof File>"u"&&(Xe.File=function(){});var rg=Array.prototype,wf=rg.forEach,Ef=rg.indexOf,xt=Xe?.navigator,W=Xe?.document,Ye=Xe?.location,gl=Xe?.fetch,_l=Xe!=null&&Xe.XMLHttpRequest&&"withCredentials"in new Xe.XMLHttpRequest?Xe.XMLHttpRequest:void 0,Sf=Xe?.AbortController,gt=xt?.userAgent,te=P??{},un={DEBUG:!1,LIB_VERSION:"1.345.2"};function Cf(t,e,n,r,s,i,o){try{var a=t[i](o),l=a.value}catch(u){return void n(u)}a.done?e(l):Promise.resolve(l).then(r,s)}function Tr(t){return function(){var e=this,n=arguments;return new Promise((function(r,s){var i=t.apply(e,n);function o(l){Cf(i,r,s,o,a,"next",l)}function a(l){Cf(i,r,s,o,a,"throw",l)}o(void 0)}))}}function z(){return z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},z.apply(null,arguments)}function sg(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var pE=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],gE=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hub
6spot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],xf=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var n=t.toLowerCase();return gE.concat(e).some((r=>{var s=r.toLowerCase();return n.indexOf(s)!==-1}))};function ue(t,e){return t.indexOf(e)!==-1}var Lo=function(t){return t.trim()},vl=function(t){return t.replace(/^\$/,"")},_E=Array.isArray,ig=Object.prototype,og=ig.hasOwnProperty,Do=ig.toString,me=_E||function(t){return Do.call(t)==="[object Array]"},qn=t=>typeof t=="function",qe=t=>t===Object(t)&&!me(t),Pr=t=>{if(qe(t)){for(var e in t)if(og.call(t,e))return!1;return!0}return!1},V=t=>t===void 0,Ge=t=>Do.call(t)=="[object String]",ml=t=>Ge(t)&&t.trim().length===0,Gt=t=>t===null,fe=t=>V(t)||Gt(t),Tn=t=>Do.call(t)=="[object Number]"&&t==t,xr=t=>Tn(t)&&t>0,En=t=>Do.call(t)==="[object Boolean]",vE=t=>t instanceof FormData,mE=t=>ue(pE,t);function yl(t){return t===null||typeof t!="object"}function eo(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function ag(t){return!V(Event)&&(function(e,n){try{return e instanceof n}catch{return!1}})(t,Event)}var yE=[!0,"true",1,"1","yes"],ga=t=>ue(yE,t),bE=[!1,"false",0,"0","no"];function tn(t,e,n,r,s){return e>n&&(r.warn("min cannot be greater than max."),e=n),Tn(t)?t>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):t<e?(r.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+s),tn(s||n,e,n,r))}class wE{constructor(e){this.t={},this.i=e.i,this.o=tn(e.bucketSize,0,100,e.h),this.m=tn(e.refillRate,0,this.o,e.h),this.$=tn(e.refillInterval,0,864e5,e.h)}S(e,n){var r=n-e.lastAccess,s=Math.floor(r/this.$);if(s>0){var i=s*this.m;e.tokens=Math.min(e.tokens+i,this.o),e.lastAccess=e.lastAccess+s*this.$}}consumeRateLimit(e){var n,r=Date.now(),s=String(e),i=this.t[s];return i?this.S(i,r):(i={tokens:this.o,lastAccess:r},this.t[s]=i),i.tokens===0||(i.tokens--,i.tokens===0&&((n=this.i)==null||n.call(this,e)),i.tokens===0)}stop(){this.t={}}}var Mt="Mobile",to="iOS",mn="Android",Ys="Tablet",lg=mn+" "+Ys,cg="iPad",ug="Apple",fg=ug+" Watch",Js="Safari",Kr="BlackBerry",hg="Samsung",dg=hg+"Browser",pg=hg+" Internet",_r="Chrome",EE=_r+" OS",gg=_r+" "+to,yc="Internet Explorer",_g=yc+" "+Mt,bc="Opera",SE=bc+" Mini",wc="Edge",vg="Microsoft "+wc,Lr="Firefox",mg=Lr+" "+to,Zs="Nintendo",Xs="PlayStation",Dr="Xbox",yg=mn+" "+Mt,bg=Mt+" "+Js,Es="Windows",bl=Es+" Phone",kf="Nokia",wl="Ouya",wg="Generic",CE=wg+" "+Mt.toLowerCase(),Eg=wg+" "+Ys.toLowerCase(),El="Konqueror",lt="(\\d+(\\.\\d+)?)",_a=new RegExp("Version/"+lt),xE=new RegExp(Dr,"i"),kE=new RegExp(Xs+" \\w+","i"),RE=new RegExp(Zs+" \\w+","i"),Ec=new RegExp(Kr+"|PlayBook|BB10","i"),TE={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Ci,Rf,va,PE=(t,e)=>e&&ue(e,ug)||(function(n){return ue(n,Js)&&!ue(n,_r)&&!ue(n,mn)})(t),Sg=function(t,e){return e=e||"",ue(t," OPR/")&&ue(t,"Mini")?SE:ue(t," OPR/")?bc:Ec.test(t)?Kr:ue(t,"IE"+Mt)||ue(t,"WPDesktop")?_g:ue(t,dg)?pg:ue(t,wc)||ue(t,"Edg/")?vg:ue(t,"FBIOS")?"Facebook "+Mt:ue(t,"UCWEB")||ue(t,"UCBrowser")?"UC Browser":ue(t,"CriOS")?gg:ue(t,"CrMo")||ue(t,_r)?_r:ue(t,mn)&&ue(t,Js)?yg:ue(t,"FxiOS")?mg:ue(t.toLowerCase(),El.toLowerCase())?El:PE(t,e)?ue(t,Mt)?bg:Js:ue(t,Lr)?Lr:ue(t,"MSIE")||ue(t,"Trident/")?yc:ue(t,"Gecko")?Lr:""},AE={[_g]:[new RegExp("rv:"+lt)],[vg]:[new RegExp(wc+"?\\/"+lt)],[_r]:[new RegExp("("+_r+"|CrMo)\\/"+lt)],[gg]:[new RegExp("CriOS\\/"+lt)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+lt)],[Js]:[_a],[bg]:[_a],[bc]:[new RegExp("(Opera|OPR)\\/"+lt)],[Lr]:[new RegExp(Lr+"\\/"+lt)],[mg]:[new RegExp("FxiOS\\/"+lt)],[El]:[new RegExp("Konqueror[:/]?"+lt,"i")],[Kr]:[new RegExp(Kr+" "+lt),_a],[yg]:[new RegExp("android\\s"+lt,"i")],[pg]:[new RegExp(dg+"\\/"+lt)],[yc]:[new RegExp("(rv:|MSIE )"+lt)],Mozilla:[new RegExp("rv:"+lt)]},OE=function(t,e){var n=Sg(t,e),r=AE[n];if(V(r))return null;for(var s=0;s<r.length;s++){var i=r[s],o=t.match(i);if(o)return parseFloat(o[o.length-2])}return null},Tf=[[new RegExp(Dr+"; "+Dr+" (.*?)[);]","i"),t=>[Dr,t&&t[1]||""]],[new RegExp(Zs,"i"),[Zs,""]],[new RegExp(Xs,"i"),[Xs,""]],[Ec,[Kr,""]],[new RegExp(Es,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[bl,""];if(new RegExp(Mt).test(e)&&!/IEMobile\b/.test(e))return[Es+" "+Mt,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var r=n[1],s=TE[r]||"";return/arm/i.test(e)&&(s="RT"),[Es,s]}return[Es,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>{if(t&&t[3]){var e=[t[3],t[4],t[5]||"0"];return[to,e.join(".")]}return[to,""]}
6],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=V(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+mn+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+mn+")","i"),t=>{if(t&&t[2]){var e=[t[2],t[3],t[4]||"0"];return[mn,e.join(".")]}return[mn,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];if(t&&t[1]){var n=[t[1],t[2],t[3]||"0"];e[1]=n.join(".")}return e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[EE,""]],[/Linux|debian/i,["Linux",""]]],Pf=function(t){return RE.test(t)?Zs:kE.test(t)?Xs:xE.test(t)?Dr:new RegExp(wl,"i").test(t)?wl:new RegExp("("+bl+"|WPDesktop)","i").test(t)?bl:/iPad/.test(t)?cg:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?fg:Ec.test(t)?Kr:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(kf,"i").test(t)?kf:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Mt).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?mn:lg:new RegExp("(pda|"+Mt+")","i").test(t)?CE:new RegExp(Ys,"i").test(t)&&!new RegExp(Ys+" pc","i").test(t)?Eg:""},ME=t=>t instanceof Error;function IE(t){var e=globalThis._posthogChunkIds;if(e){var n=Object.keys(e);return va&&n.length===Rf||(Rf=n.length,va=n.reduce(((r,s)=>{Ci||(Ci={});var i=Ci[s];if(i)r[i[0]]=i[1];else for(var o=t(s),a=o.length-1;a>=0;a--){var l=o[a],u=l?.filename,c=e[s];if(u&&c){r[u]=c,Ci[s]=[u,c];break}}return r}),{})),va}}class $E{constructor(e,n,r){r===void 0&&(r=[]),this.coercers=e,this.stackParser=n,this.modifiers=r}buildFromUnknown(e,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},s=this.buildCoercingContext(r,n,0).apply(e),i=this.buildParsingContext(n),o=this.parseStacktrace(s,i);return{$exception_list:this.convertToExceptionList(o,r),$exception_level:"error"}}modifyFrames(e){var n=this;return Tr((function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&me(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return e}))()}coerceFallback(e){var n;return{type:"Error",value:"Unknown error",stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(e,n){var r,s;return e.cause!=null&&(r=this.parseStacktrace(e.cause,n)),e.stack!=""&&e.stack!=null&&(s=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?n.skipFirstLines:0),n.chunkIdMap)),z({},e,{cause:r,stack:s})}applyChunkIds(e,n){return e.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(e,n){for(var r of this.coercers)if(r.match(e))return r.coerce(e,n);return this.coerceFallback(n)}applyModifiers(e){var n=this;return Tr((function*(){var r=e;for(var s of n.modifiers)r=yield s(r);return r}))()}convertToExceptionList(e,n){var r,s,i,o={type:e.type,value:e.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(s=n.handled)===null||s===void 0||s,synthetic:(i=e.synthetic)!==null&&i!==void 0&&i}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var a=[o];return e.cause!=null&&a.push(...this.convertToExceptionList(e.cause,z({},n,{handled:!0}))),a}buildParsingContext(e){var n;return{chunkIdMap:IE(this.stackParser),skipFirstLines:(n=e.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(e,n,r){r===void 0&&(r=0);var s=(i,o)=>{if(o<=4){var a=this.buildCoercingContext(e,n,o);return this.applyCoercers(i,a)}};return z({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:e,apply:i=>s(i,r),next:i=>s(i,r+1)})}}var zr="?";function Sl(t,e,n,r,s){var i={platform:t,filename:e,function:n==="<anonymous>"?zr:n,in_app:!0};return V(r)||(i.lineno=r),V(s)||(i.colno=s),i}var Cg=(t,e)=>{var n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:zr,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},FE=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,NE=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,LE=/\((\S*)(?::(\d+))(?::(\d+))\)/,DE=(t,e)=>{var n=FE.exec(t);if(n){var[,r,s,i]=n;return Sl(e,r,zr,+s,+i)}var o=NE.exec(t);if(o){if(o[2]&&o[2].indexOf("eval")===0){var a=LE.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[l,u]=Cg(o[1]||zr,o[2]);return Sl(e,u,l,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},HE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,UE=(t,e)=>{var n=HE.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=jE.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var s=n[3],i=n[1]||zr;return[i,s]=Cg(i,s),Sl(e,s,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},Af=/\(error: (.*)\)/,Of=50;function BE(){return(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(s,i){i===void 0&&(i=0);for(var o=[],a=s.split(` 7`),l=i;l<a.length;l++){var u=a[l];if(!(u.length>1024)){var c=Af.test(u)?u.replace(Af,"$1"):u;if(!c.match(/\S*Error: /)){for(var f of n){var d=f(c,t);if(d){o.push(d);break}}if(o.length>=Of)break}}}return(function(h){if(!h.length)return[];var p=Array.from(h);return p.reverse(),p.slice(0,Of).map((g=>{return z({},g,{filename:g.filename||(m=p,m[m.length-1]||{}).filename,function:g.function||zr});var m}))})(o)}})("web:javascript",DE,UE)}class VE{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,n){var r=Ge(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var n=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?n+": "+e.message:n}isDOMException(e){return eo(e,"DOMException")}isDOMError(e){return eo(e,"DOMError")}}class WE{match(e){return(n=>n instanceof Error)(e)}coerce(e,n){return{type:this.getType(e),value:this.getMessage(e,n),stack:this.getStack(e),cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,n){var r=e.message;return r.error&&typeof r.error.message=="string"?String(r.error.message):String(r)}getStack(e){return e.stacktrace||e.stack||void 0}}class qE{constructor(){}match(e){return eo(e,"ErrorEvent")&&e.error!=null}coerce(e,n){var r,s=n.apply(e.error);return s||{type:"ErrorEvent",value:e.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var GE=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class KE{match(e){return typeof e=="string"}coerce(e,n){var r,[s,i]=this.getInfos(e);return{type:s??"Error",value:i??e,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(e){var n="Error",r=e,s=e.match(GE);return s&&(n=s[1],r=s[2]),[n,r]}}var zE=["fatal","error","warning","log","info","debug"];function xg(t,e){e===void 0&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var s=n.slice(0,r).join(", ");
vendor: 4,842 bytes, line 7
7if(!(s.length>e))return r===n.length||s.length<=e?s:s.slice(0,e)+"..."}return""}class YE{match(e){return typeof e=="object"&&e!==null}coerce(e,n){var r,s=this.getErrorPropertyFromObject(e);return s?n.apply(s):{type:this.getType(e),value:this.getValue(e),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return ag(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var n="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(n+=" with message: '"+e.message+"'"),n}if("message"in e&&typeof e.message=="string")return e.message;var r=this.getObjectClassName(e);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+xg(e)}isSeverityLevel(e){return Ge(e)&&!ml(e)&&zE.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];if(ME(r))return r}}getObjectClassName(e){try{var n=Object.getPrototypeOf(e);return n?n.constructor.name:void 0}catch{return}}}class JE{match(e){return ag(e)}coerce(e,n){var r,s=e.constructor.name;return{type:s,value:s+" captured as exception with keys: "+xg(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class ZE{match(e){return yl(e)}coerce(e,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class XE{match(e){return eo(e,"PromiseRejectionEvent")}coerce(e,n){var r,s=this.getUnhandledRejectionReason(e);return yl(s)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(s),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(s)}getUnhandledRejectionReason(e){if(yl(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var kg=function(t,e){var{debugEnabled:n}=e===void 0?{}:e,r={k:function(s){if(P&&(un.DEBUG||te.POSTHOG_DEBUG||n)&&!V(P.console)&&P.console){for(var i=("__rrweb_original__"in P.console[s])?P.console[s].__rrweb_original__:P.console[s],o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];i(t,...a)}},info:function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];r.k("log",...i)},warn:function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];r.k("warn",...i)},error:function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];r.k("error",...i)},critical:function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];console.error(t,...i)},uninitializedWarning:s=>{r.error("You must initialize PostHog before calling "+s)},createLogger:(s,i)=>kg(t+" "+s,i)};return r},K=kg("[PostHog.js]"),Ne=K.createLogger,QE=Ne("[ExternalScriptsLoader]"),Mf=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return QE.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=W?.querySelectorAll("script");if(r){for(var s,i=function(){if(r[o].src===e){var l=r[o];return l.__posthog_loading_callback_fired?{v:n()}:(l.addEventListener("load",(u=>{l.__posthog_loading_callback_fired=!0,n(void 0,u)})),l.onerror=u=>n(u),{v:void 0})}},o=0;o<r.length;o++)if(s=i())return s.v}var a=()=>{if(!W)return n("document not found");var l=W.createElement("script");if(l.type="text/javascript",l.crossOrigin="anonymous",l.src=e,l.onload=f=>{l.__posthog_loading_callback_fired=!0,n(void 0,f)},l.onerror=f=>n(f),t.config.prepare_external_dependency_script&&(l=t.config.prepare_external_dependency_script(l)),!l)return n("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")W.head.appendChild(l);else{var u,c=W.querySelectorAll("body > script");c.length>0?(u=c[0].parentNode)==null||u.insertBefore(l,c[0]):W.body.appendChild(l)}};W!=null&&W.body?a():W?.addEventListener("DOMContentLoaded",a)};te.__PosthogExtensions__=te.__PosthogExtensions__||{},te.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{var r="/static/"+e+".js?v="+t.version;if(e==="remote-config"&&(r="/array/"+t.config.token+"/config.js"),e==="toolbar"){var s=3e5;r=r+"&t="+Math.floor(Date.now()/s)*s}var i=t.requestRouter.endpointFor("assets",r);Mf(t,i,n)},te.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var r=t.requestRouter.endpointFor("api",e);Mf(t,r,n)};var no={};function Gn(t,e,n){if(me(t)){if(wf&&t.forEach===wf)t.forEach(e,n);else if("length"in t&&t.length===+t.length){for(var r=0,s=t.length;r<s;r++)if(r in t&&e.call(n,t[r],r)===no)return}}}function Ce(t,e,n){if(!fe(t)){if(me(t))return Gn(t,e,n);if(vE(t)){for(var r of t.entries())if(e.call(n,r[1],r[0])===no)return}else for(var s in t)if(og.call(t,s)&&e.call(n,t[s],s)===no)return}}
7var He=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Gn(n,(function(s){for(var i in s)s[i]!==void 0&&(t[i]=s[i])})),t},es=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Gn(n,(function(s){Gn(s,(function(i){t.push(i)}))})),t};function Ii(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}var If=function(t){try{return t()}catch{return}},e3=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(this,n)}catch(s){K.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),K.critical(s)}}},Sc=function(t){var e={};return Ce(t,(function(n,r){(Ge(n)&&n.length>0||Tn(n))&&(e[r]=n)})),e};function t3(t,e){return n=t,r=i=>Ge(i)&&!Gt(e)?i.slice(0,e):i,s=new Set,(function i(o,a){return o!==Object(o)?r?r(o,a):o:s.has(o)?void 0:(s.add(o),me(o)?(l=[],Gn(o,(u=>{l.push(i(u))}))):(l={},Ce(o,((u,c)=>{s.has(u)||(l[c]=i(u,c))}))),l);var l})(n);var n,r,s}var n3=["herokuapp.com","vercel.app","netlify.app"];function r3(t){var e=t?.hostname;if(!Ge(e))return!1;var n=e.split(".").slice(-2).join(".");for(var r of n3)if(n===r)return!1;return!0}function Rg(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function Ue(t,e,n,r){var{capture:s=!1,passive:i=!0}=r??{};t?.addEventListener(e,n,{capture:s,passive:i})}var Tg="$people_distinct_id",Ss="__alias",Cs="__timers",$f="$autocapture_disabled_server_side",Cl="$heatmaps_enabled_server_side",Ff="$exception_capture_enabled_server_side",xl="$error_tracking_suppression_rules",Nf="$error_tracking_capture_extension_exceptions",Lf="$web_vitals_enabled_server_side",Pg="$dead_clicks_enabled_server_side",Df="$product_tours_enabled_server_side",Hf="$web_vitals_allowed_metrics",ma="$session_recording_remote_config",ro="$sesid",Ag="$session_is_sampled",Ar="$enabled_feature_flags",xs="$early_access_features",kl="$feature_flag_details",ks="$stored_person_properties",ir="$stored_group_properties",Rl="$surveys",so="$flag_call_reported",Tl="$feature_flag_errors",fn="$user_state",Pl="$client_session_props",Al="$capture_rate_limit",Ol="$initial_campaign_params",Ml="$initial_referrer_info",io="$initial_person_info",oo="$epp",Og="__POSTHOG_TOOLBAR__",us="$posthog_cookieless",s3=[Tg,Ss,"__cmpns",Cs,"$session_recording_enabled_server_side",Cl,ro,Ar,xl,fn,xs,kl,ir,ks,Rl,so,Tl,Pl,Al,Ol,Ml,oo,io,"$conversations_widget_session_id","$conversations_ticket_id","$conversations_widget_state","$conversations_user_traits"];function jf(t){return t instanceof Element&&(t.id===Og||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function Ho(t){return!!t&&t.nodeType===1}function Kn(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function Mg(t){return!!t&&t.nodeType===3}function Ig(t){return!!t&&t.nodeType===11}function Cc(t){return t?Lo(t).split(/\s+/):[]}function Uf(t){var e=P?.location.href;return!!(e&&t&&t.some((n=>e.match(n))))}function ao(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return Cc(e)}function $g(t){return fe(t)?null:Lo(t).split(/(\s+)/).filter((e=>Qs(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ai(t){var e="";return Il(t)&&!Hg(t)&&t.childNodes&&t.childNodes.length&&Ce(t.childNodes,(function(n){var r;Mg(n)&&n.textContent&&(e+=(r=$g(n.textContent))!==null&&r!==void 0?r:"")})),Lo(e)}function Fg(t){return V(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}var xc=["a","button","form","input","select","textarea","label"];function Ng(t,e){if(V(e))return!0;var n,r=function(i){if(e.some((o=>i.matches(o))))return{v:!0}};for(var s of t)if(n=r(s))return n.v;return!1}function Lg(t){var e=t.parentNode;return!(!e||!Ho(e))&&e}var i3=["next","previous","prev",">","<"],Bf=10,Vf=[".ph-no-rageclick",".ph-no-capture"];function o3(t,e){if(!P||kc(t))return!1;var n,r,s;if(En(e)?(n=!!e&&Vf,r=void 0):(n=(s=e?.css_selector_ignorelist)!==null&&s!==void 0?s:Vf,r=e?.content_ignorelist),n===!1)return!1;var{targetElementList:i}=Dg(t,!1);return!(function(o,a){if(o===!1||V(o))return!1;var l;if(o===!0)l=i3;else{if(!me(o))return!1;if(o.length>Bf)return K.error("[PostHog] content_ignorelist array cannot exceed "+Bf+" items. Use css_selector_ignorelist for more complex matching."),!1;l=o.map((u=>u.toLowerCase()))}return a.some((u=>{var{safeText:c,ariaLabel:f}=u;return l.some((d=>c.includes(d)||f.includes(d)))}))})(r,i.map((o=>{var a;return{safeText:ai(o).toLowerCase(),ariaLabel:((a=o.getAttribute("aria-label"))==null?void 0:a.toLowerCase().trim())||""}})))&&!Ng(i,n)}var kc=t=>!t||Kn(t,"html")||!Ho(t),Dg=(t,e)=>{if(!P||kc(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[t],s=t;s.parentNode&&!Kn(s,"body");)if(Ig(s.parentNode))r.push(s.parentNode.host),s=s.parentNode.host;else{var i=Lg(s);if(!i)break;if(e||xc.indexOf(i.tagName.toLowerCase())>-1)n=!0;else{var o=P.getComputedStyle(i);o&&o.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(i),s=i}return{parentIsUsefulElement:n,targetElementList:r}};function a3(t,e,n,r,s){var i,o,a,l;if(n===void 0&&(n=void 0),!P||kc(t)||(i=n)!=null&&i.url_allowlist&&!Uf(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&Uf(n.url_ignorelist))return!1;if((a=n)!=null&&a.dom_event_allowlist){var u=n.dom_event_allowlist;if(u&&!u.some((p=>e.type===p)))return!1}var{parentIsUsefulElement:c,targetElementList:f}=Dg(t,r);
7if(!(function(p,g){var m=g?.element_allowlist;if(V(m))return!0;var S,b=function(y){if(m.some((E=>y.tagName.toLowerCase()===E)))return{v:!0}};for(var _ of p)if(S=b(_))return S.v;return!1})(f,n)||!Ng(f,(l=n)==null?void 0:l.css_selector_allowlist))return!1;var d=P.getComputedStyle(t);if(d&&d.getPropertyValue("cursor")==="pointer"&&e.type==="click")return!0;var h=t.tagName.toLowerCase();switch(h){case"html":return!1;case"form":return(s||["submit"]).indexOf(e.type)>=0;case"input":case"select":case"textarea":return(s||["change","click"]).indexOf(e.type)>=0;default:return c?(s||["click"]).indexOf(e.type)>=0:(s||["click"]).indexOf(e.type)>=0&&(xc.indexOf(h)>-1||t.getAttribute("contenteditable")==="true")}}function Il(t){for(var e=t;e.parentNode&&!Kn(e,"body");e=e.parentNode){var n=ao(e);if(ue(n,"ph-sensitive")||ue(n,"ph-no-capture"))return!1}if(ue(ao(t),"ph-include"))return!0;var r=t.type||"";if(Ge(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var s=t.name||t.id||"";return!(Ge(s)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,"")))}function Hg(t){return!!(Kn(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Kn(t,"select")||Kn(t,"textarea")||t.getAttribute("contenteditable")==="true")}var jg="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",l3=new RegExp("^(?:"+jg+")$"),c3=new RegExp(jg),Ug="\\d{3}-?\\d{2}-?\\d{4}",u3=new RegExp("^("+Ug+")$"),f3=new RegExp("("+Ug+")");function Qs(t,e){return e===void 0&&(e=!0),!(fe(t)||Ge(t)&&(t=Lo(t),(e?l3:c3).test((t||"").replace(/[- ]/g,""))||(e?u3:f3).test(t)))}function Bg(t){var e=ai(t);return Qs(e=(e+" "+Vg(t)).trim())?e:""}function Vg(t){var e="";return t&&t.childNodes&&t.childNodes.length&&Ce(t.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var s=ai(n);e=(e+" "+s).trim(),n.childNodes&&n.childNodes.length&&(e=(e+" "+Vg(n)).trim())}catch(i){K.error("[AutoCapture]",i)}})),e}function h3(t){return(function(e){var n=e.map((r=>{var s,i,o="";if(r.tag_name&&(o+=r.tag_name),r.attr_class)for(var a of(r.attr_class.sort(),r.attr_class))o+="."+a.replace(/"/g,"");var l=z({},r.text?{text:r.text}:{},{"nth-child":(s=r.nth_child)!==null&&s!==void 0?s:0,"nth-of-type":(i=r.nth_of_type)!==null&&i!==void 0?i:0},r.href?{href:r.href}:{},r.attr_id?{attr_id:r.attr_id}:{},r.attributes),u={};return Ii(l).sort(((c,f)=>{var[d]=c,[h]=f;return d.localeCompare(h)})).forEach((c=>{var[f,d]=c;return u[Wf(f.toString())]=Wf(d.toString())})),o+=":",o+=Ii(u).map((c=>{var[f,d]=c;return f+'="'+d+'"'})).join("")}));return n.join(";")})((function(e){return e.map((n=>{var r,s,i={text:(r=n.$el_text)==null?void 0:r.slice(0,400),tag_name:n.tag_name,href:(s=n.attr__href)==null?void 0:s.slice(0,2048),attr_class:d3(n),attr_id:n.attr__id,nth_child:n.nth_child,nth_of_type:n.nth_of_type,attributes:{}};return Ii(n).filter((o=>{var[a]=o;return a.indexOf("attr__")===0})).forEach((o=>{var[a,l]=o;return i.attributes[a]=l})),i}))})(t))}function Wf(t){return t.replace(/"|\\"/g,'\\"')}function d3(t){var e=t.attr__class;return e?me(e)?e:Cc(e):void 0}class Wg{constructor(e){this.disabled=e===!1;var n=qe(e)?e:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(e,n,r){if(this.disabled)return!1;var s=this.clicks[this.clicks.length-1];if(s&&Math.abs(e-s.x)+Math.abs(n-s.y)<this.thresholdPx&&r-s.timestamp<this.timeoutMs){if(this.clicks.push({x:e,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:n,timestamp:r}];return!1}}var lo=t=>{var e=W?.createElement("a");return V(e)?null:(e.href=t,e)},p3=function(t,e){var n,r;e===void 0&&(e="&");var s=[];return Ce(t,(function(i,o){V(i)||V(o)||o==="undefined"||(n=encodeURIComponent((a=>a instanceof File)(i)?i.name:i.toString()),r=encodeURIComponent(o),s[s.length]=r+"="+n)})),s.join(e)},co=function(t,e){for(var n,r=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),s=0;s<r.length;s++){var i=r[s].split("=");if(i[0]===e){n=i;break}}if(!me(n)||n.length<2)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{K.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},li=function(t,e,n){if(!t||!e||!e.length)return t;for(var r=t.split("#"),s=r[0]||"",i=r[1],o=s.split("?"),a=o[1],l=o[0],u=(a||"").split("&"),c=[],f=0;f<u.length;f++){var d=u[f].split("=");me(d)&&(e.includes(d[0])?c.push(d[0]+"="+n):c.push(u[f]))}var h=l;return a!=null&&(h+="?"+c.join("&")),i!=null&&(h+="#"+i),h},uo=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));
7return n?n[1]:null},ya="$copy_autocapture",qf=Ne("[AutoCapture]");function ba(t,e){return e.length>t?e.slice(0,t)+"...":e}function g3(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Ho(e));return e}function _3(t,e,n,r){var s=t.tagName.toLowerCase(),i={tag_name:s};xc.indexOf(s)>-1&&!n&&(s.toLowerCase()==="a"||s.toLowerCase()==="button"?i.$el_text=ba(1024,Bg(t)):i.$el_text=ba(1024,ai(t)));var o=ao(t);o.length>0&&(i.classes=o.filter((function(c){return c!==""}))),Ce(t.attributes,(function(c){var f;if((!Hg(t)||["name","id","class","aria-label"].indexOf(c.name)!==-1)&&(r==null||!r.includes(c.name))&&!e&&Qs(c.value)&&(f=c.name,!Ge(f)||f.substring(0,10)!=="_ngcontent"&&f.substring(0,7)!=="_nghost")){var d=c.value;c.name==="class"&&(d=Cc(d).join(" ")),i["attr__"+c.name]=ba(1024,d)}}));for(var a=1,l=1,u=t;u=g3(u);)a++,u.tagName===t.tagName&&l++;return i.nth_child=a,i.nth_of_type=l,i}function v3(t,e){for(var n,r,{e:s,maskAllElementAttributes:i,maskAllText:o,elementAttributeIgnoreList:a,elementsC
7hainAsString:l}=e,u=[t],c=t;c.parentNode&&!Kn(c,"body");)Ig(c.parentNode)?(u.push(c.parentNode.host),c=c.parentNode.host):(u.push(c.parentNode),c=c.parentNode);var f,d=[],h={},p=!1,g=!1;if(Ce(u,(y=>{var E=Il(y);y.tagName.toLowerCase()==="a"&&(p=y.getAttribute("href"),p=E&&p&&Qs(p)&&p),ue(ao(y),"ph-no-capture")&&(g=!0),d.push(_3(y,i,o,a));var C=(function(T){if(!Il(T))return{};var R={};return Ce(T.attributes,(function(k){if(k.name&&k.name.indexOf("data-ph-capture-attribute")===0){var O=k.name.replace("data-ph-capture-attribute-",""),L=k.value;O&&L&&Qs(L)&&(R[O]=L)}})),R})(y);He(h,C)})),g)return{props:{},explicitNoCapture:g};if(o||(t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?d[0].$el_text=Bg(t):d[0].$el_text=ai(t)),p){var m,S;d[0].attr__href=p;var b=(m=lo(p))==null?void 0:m.host,_=P==null||(S=P.location)==null?void 0:S.host;b&&_&&b!==_&&(f=p)}return{props:He({$event_type:s.type,$ce_version:1},l?{}:{$elements:d},{$elements_chain:h3(d)},(n=d[0])!=null&&n.$el_text?{$el_text:(r=d[0])==null?void 0:r.$el_text}:{},f&&s.type==="click"?{$external_click_url:f}:{},h)}}class m3{constructor(e){this.P=!1,this.T=null,this.I=!1,this.instance=e,this.rageclicks=new Wg(e.config.rageclick),this.C=null}get R(){var e,n,r=qe(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=(e=r.url_allowlist)==null?void 0:e.map((s=>new RegExp(s))),r.url_ignorelist=(n=r.url_ignorelist)==null?void 0:n.map((s=>new RegExp(s))),r}F(){if(this.isBrowserSupported()){if(P&&W){var e=r=>{r=r||P?.event;try{this.O(r)}catch(s){qf.error("Failed to capture event",s)}};if(Ue(W,"submit",e,{capture:!0}),Ue(W,"change",e,{capture:!0}),Ue(W,"click",e,{capture:!0}),this.R.capture_copied_text){var n=r=>{r=r||P?.event,this.O(r,ya)};Ue(W,"copy",n,{capture:!0}),Ue(W,"cut",n,{capture:!0})}}}else qf.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.F(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.I=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[$f]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.C=e}getElementSelectors(e){var n,r=[];return(n=this.C)==null||n.forEach((s=>{var i=W?.querySelectorAll(s);i?.forEach((o=>{e===o&&r.push(s)}))})),r}get isEnabled(){var e,n,r=(e=this.instance.persistence)==null?void 0:e.props[$f],s=this.T;if(Gt(s)&&!En(r)&&!this.instance.M())return!1;var i=(n=this.T)!==null&&n!==void 0?n:!!r;return!!this.instance.config.autocapture&&!i}O(e,n){if(n===void 0&&(n="$autocapture"),this.isEnabled){var r,s=Fg(e);Mg(s)&&(s=s.parentNode||null),n==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(r=this.rageclicks)!=null&&r.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&o3(s,this.instance.config.rageclick)&&this.O(e,"$rageclick");var i=n===ya;if(s&&a3(s,e,this.R,i,i?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=v3(s,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.R.element_attribute_ignorelist,elementsChainAsString:this.I});if(a)return!1;var l=this.getElementSelectors(s);if(l&&l.length>0&&(o.$element_selectors=l),n===ya){var u,c=$g(P==null||(u=P.getSelection())==null?void 0:u.toString()),f=e.type||"clipboard";if(!c)return!1;o.$selected_content=c,o.$copy_type=f}return this.instance.capture(n,o),!0}}}isBrowserSupported(){return qn(W?.querySelectorAll)}}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Tn(t)&&isFinite(t)&&Math.floor(t)===t});var Gf="0123456789abcdef";class fo{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,n,r,s){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(s)||e<0||n<0||r<0||s<0||e>0xffffffffffff||n>4095||r>1073741823||s>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=e/Math.pow(2,40),i[1]=e/Math.pow(2,32),i[2]=e/Math.pow(2,24),i[3]=e/Math.pow(2,16),i[4]=e/Math.pow(2,8),i[5]=e,i[6]=112|n>>>8,i[7]=n,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=s>
vendor: 4,315 bytes, line 7
7>>24,i[13]=s>>>16,i[14]=s>>>8,i[15]=s,new fo(i)}toString(){for(var e="",n=0;n<this.bytes.length;n++)e=e+Gf.charAt(this.bytes[n]>>>4)+Gf.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new fo(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var n=0;n<16;n++){var r=this.bytes[n]-e.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class y3{constructor(){this.A=0,this.j=0,this.D=new b3}generate(){var e=this.generateOrAbort();if(V(e)){this.A=0;var n=this.generateOrAbort();if(V(n))throw new Error("Could not generate UUID after timestamp reset");return n}return e}generateOrAbort(){var e=Date.now();if(e>this.A)this.A=e,this.L();else{if(!(e+1e4>this.A))return;this.j++,this.j>4398046511103&&(this.A++,this.L())}return fo.fromFieldsV7(this.A,Math.trunc(this.j/Math.pow(2,30)),this.j&Math.pow(2,30)-1,this.D.nextUint32())}L(){this.j=1024*this.D.nextUint32()+(1023&this.D.nextUint32())}}var Kf,qg=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;e<t.length;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};P&&!V(P.crypto)&&crypto.getRandomValues&&(qg=t=>crypto.getRandomValues(t));class b3{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(qg(this.N),this.U=0),this.N[this.U++]}}var Vn=()=>w3().toString(),w3=()=>(Kf||(Kf=new y3)).generate(),fs="",E3=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function S3(t,e){if(e){var n=(function(s,i){if(i===void 0&&(i=W),fs)return fs;if(!i||["localhost","127.0.0.1"].includes(s))return"";for(var o=s.split("."),a=Math.min(o.length,8),l="dmn_chk_"+Vn();!fs&&a--;){var u=o.slice(a).join("."),c=l+"=1;domain=."+u+";path=/";i.cookie=c+";max-age=3",i.cookie.includes(l)&&(i.cookie=c+";max-age=0",fs=u)}return fs})(t);if(!n){var r=(s=>{var i=s.match(E3);return i?i[0]:""})(t);r!==n&&K.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}var Qt={H:()=>!!W,B:function(t){K.error("cookieStore error: "+t)},q:function(t){if(W){try{for(var e=t+"=",n=W.cookie.split(";").filter((i=>i.length)),r=0;r<n.length;r++){for(var s=n[r];s.charAt(0)==" ";)s=s.substring(1,s.length);if(s.indexOf(e)===0)return decodeURIComponent(s.substring(e.length,s.length))}}catch{}return null}},W:function(t){var e;try{e=JSON.parse(Qt.q(t))||{}}catch{}return e},G:function(t,e,n,r,s){if(W)try{var i="",o="",a=S3(W.location.hostname,r);if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),i="; expires="+l.toUTCString()}s&&(o="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+i+"; SameSite=Lax; path=/"+a+o;return u.length>3686.4&&K.warn("cookieStore warning: large cookie, len="+u.length),W.cookie=u,u}catch{return}},V:function(t,e){if(W!=null&&W.cookie)try{Qt.G(t,"",-1,e)}catch{return}}},wa=null,Me={H:function(){if(!Gt(wa))return wa;var t=!0;if(V(P))t=!1;else try{var e="__mplssupport__";Me.G(e,"xyz"),Me.q(e)!=='"xyz"'&&(t=!1),Me.V(e)}catch{t=!1}return t||K.error("localStorage unsupported; falling back to cookie store"),wa=t,t},B:function(t){K.error("localStorage error: "+t)},q:function(t){try{return P?.localStorage.getItem(t)}catch(e){Me.B(e)}return null},W:function(t){try{return JSON.parse(Me.q(t))||{}}catch{}return null},G:function(t,e){try{P?.localStorage.setItem(t,JSON.stringify(e))}catch(n){Me.B(n)}},V:function(t){try{P?.localStorage.removeItem(t)}catch(e){Me.B(e)}}},C3=["$device_id","distinct_id",ro,Ag,oo,io],xi={},x3={H:function(){return!0},B:function(t){K.error("memoryStorage error: "+t)},q:function(t){return xi[t]||null},W:function(t){return xi[t]||null},G:function(t,e){xi[t]=e},V:function(t){delete xi[t]}},er=null,ze={H:function(){if(!Gt(er))return er;if(er=!0,V(P))er=!1;else try{var t="__support__";ze.G(t,"xyz"),ze.q(t)!=='"xyz"'&&(er=!1),ze.V(t)}catch{er=!1}return er},B:function(t){K.error("sessionStorage error: ",t)},q:function(t){try{return P?.sessionStorage.getItem(t)}catch(e){ze.B(e)}return null},W:function(t){try{return JSON.parse(ze.q(t))||null}catch{}return null},G:function(t,e){try{P?.sessionStorage.setItem(t,JSON.stringify(e))}catch(n){ze.B(n)}},V:function(t){try{P?.sessionStorage.removeItem(t)}catch(e){ze.B(e)}}}
7,hn=(function(t){return t[t.PENDING=-1]="PENDING",t[t.DENIED=0]="DENIED",t[t.GRANTED=1]="GRANTED",t})({});class k3{constructor(e){this._instance=e}get R(){return this._instance.config}get consent(){return this.J()?hn.DENIED:this.K}isOptedOut(){return this.R.cookieless_mode==="always"||this.consent===hn.DENIED||this.consent===hn.PENDING&&(this.R.opt_out_capturing_by_default||this.R.cookieless_mode==="on_reject")}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===hn.DENIED}optInOut(e){this.Y.G(this.X,e?1:0,this.R.cookie_expiration,this.R.cross_subdomain_cookie,this.R.secure_cookie)}reset(){this.Y.V(this.X,this.R.cross_subdomain_cookie)}get X(){var{token:e,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;return r||(n?n+e:"__ph_opt_in_out_"+e)}get K(){var e=this.Y.q(this.X);return ga(e)?hn.GRANTED:ue(bE,e)?hn.DENIED:hn.PENDING}get Y(){if(!this.Z){var e=this.R.opt_out_capturing_persistence_type;this.Z=e==="localStorage"?Me:Qt;var n=e==="localStorage"?Qt:Me;n.q(this.X)&&(this.Z.q(this.X)||this.optInOut(ga(n.q(this.X))),n.V(this.X,this.R.cross_subdomain_cookie))}return this.Z}J(){return!!this.R.respect_dnt&&!!Rg([xt?.doNotTrack,xt?.msDoNotTrack,te.doNotTrack],(e=>ga(e)))}}var ki=Ne("[Dead Clicks]"),R3=()=>!0,T3=t=>{var e,n=!((e=t.instance.persistence)==null||!e.get_property(Pg)),r=t.instance.config.capture_dead_clicks;return En(r)?r:!!qe(r)||n};class Gg{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(e,n,r){this.instance=e,this.isEnabled=n,this.onCapture=r,this.startIfEnabled()}onRemoteConfig(e){this.instance.persistence&&this.instance.persistence.register({[Pg]:e?.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it((()=>{this.et()}))}it(e){var n,r;(n=te.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&e(),(r=te.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(s=>{s?ki.error("failed to load script",s):e()}))}et(){var e;if(W){if(!this.tt&&(e=te.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var n=qe(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.tt=te.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.tt.start(W),ki.info("starting...")}}else ki.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,ki.info("stopping..."))}}var hs=Ne("[ExceptionAutocapture]");class P3{constructor(e){var n,r,s;this.rt=()=>{var i;if(P&&this.isEnabled&&(i=te.__PosthogExtensions__)!=null&&i.errorWrappingFunctions){var o=te.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,a=te.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,l=te.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.R.capture_unhandled_errors&&(this.st=o(this.captureException.bind(this))),!this.nt&&this.R.capture_unhandled_rejections&&(this.nt=a(this.captureException.bind(this))),!this.ot&&this.R.capture_console_errors&&(this.ot=l(this.captureException.bind(this)))}catch(u){hs.error("failed to start",u),this.ut()}}},this._instance=e,this.ht=!((n=this._instance.persistence)==null||!n.props[Ff]),this.dt=new wE({refillRate:(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&r!==void 0?r:1,bucketSize:(s=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&s!==void 0?s:10,refillInterval:1e4,h:hs}),this.R=this.vt(),this.startIfEnabledOrStop()}vt(){var e=this._instance.config.capture_exceptions,n={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return qe(e)?n=z({},n,e):(V(e)?this.ht:e)&&(n=z({},n,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),n}get isEnabled(){return this.R.capture_console_errors||this.R.capture_unhandled_errors||this.R.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(hs.info("enabled"),this.ut(),this.it(this.rt)):this.ut()}it(e){var n,r;(n=te.__PosthogExtensions__)!=null&&n.errorWrappingFunctions&&e(
7),(r=te.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"exception-autocapture",(s=>{if(s)return hs.error("failed to load script",s);e()}))}ut(){var e,n,r;(e=this.st)==null||e.call(this),this.st=void 0,(n=this.nt)==null||n.call(this),this.nt=void 0,(r=this.ot)==null||r.call(this),this.ot=void 0}onRemoteConfig(e){var n=e.autocaptureExceptions;this.ht=!!n||!1,this._instance.persistence&&this._instance.persistence.register({[Ff]:this.ht}),this.R=this.vt(),this.startIfEnabledOrStop()}onConfigChange(){this.R=this.vt()}captureException(e){var n,r,s=(n=e==null||(r=e.$exception_list)==null||(r=r[0])==null?void 0:r.type)!==null&&n!==void 0?n:"Exception";this.dt.consumeRateLimit(s)?hs.info("Skipping exception capture because of client rate limiting.",{exception:s}):this._instance.exceptions.sendExceptionEvent(e)}}function zf(t,e,n){try{if(!(e in t))return()=>{};var r=t[e],s=n(r);return qn(s)&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=s,()=>{t[e]=r}}catch{return()=>{}}}class A3{constructor(e){var n;this._instance=e,this.ct=(P==null||(n=P.location)==null?void 0:n.pathname)||""}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(K.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ft&&this.ft(),this.ft=void 0,K.info("History API monitoring stopped")}monitorHistoryChanges(){var e,n;if(P&&P.history){var r=this;(e=P.history.pushState)!=null&&e.__posthog_wrapped__||zf(P.history,"pushState",(s=>function(i,o,a){s.call(this,i,o,a),r._t("pushState")})),(n=P.history.replaceState)!=null&&n.__posthog_wrapped__||zf(P.history,"replaceState",(s=>function(i,o,a){s.call(this,i,o,a),r._t("replaceState")})),this.bt()}}_t(e){try{var n,r=P==null||(n=P.location)==null?void 0:n.pathname;if(!r)return;r!==this.ct&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.ct=r}catch(s){K.error("Error capturing "+e+" pageview",s)}}bt(){if(!this.ft){var e=()=>{this._t("popstate")};Ue(P,"popstate",e),this.ft=()=>{P&&P.removeEventListener("popstate",e)}}}}var Ea=Ne("[SegmentIntegration]");function O3(t,e){var n=t.config.segment;if(!n)return e();(function(r,s){var i=r.config.segment;if(!i)return s();var o=l=>{var u=()=>l.anonymousId()||Vn();r.config.get_device_id=u,l.id()&&(r.register({distinct_id:l.id(),$device_id:u()}),r.persistence.set_property(fn,"identified")),s()},a=i.user();"then"in a&&qn(a.then)?a.then(o):o(a)})(t,(()=>{n.register((r=>{Promise&&Promise.resolve||Ea.warn("This browser does not have Promise support, and can not use the segment integration");var s=(i,o)=>{if(!o)return i;i.event.userId||i.event.anonymousId===r.get_distinct_id()||(Ea.info("No userId set, resetting PostHog"),r.reset()),i.event.userId&&i.event.userId!==r.get_distinct_id()&&(Ea.info("UserId set, identifying with PostHog"),r.identify(i.event.userId));var a=r.calculateEventProperties(o,i.event.properties);return i.event.properties=Object.assign({},a,i.event.properties),i};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:i=>s(i,i.event.event),page:i=>s(i,"$pageview"),identify:i=>s(i,"$identify"),screen:i=>s(i,"$screen")}})(t)).then((()=>{e()}))}))}var Kg="posthog-js";function zg(t,e){var{organization:n,projectId:r,prefix:s,severityAllowList:i=["error"],sendExceptionsToPostHog:o=!0}=e===void 0?{}:e;return a=>{var l,u,c,f,d;if(!(i==="*"||i.includes(a.level))||!t.__loaded)return a;a.tags||(a.tags={});var h=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());a.tags["PostHog Person URL"]=h,t.sessionRecordingStarted()&&(a.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var p=((l=a.exception)==null?void 0:l.values)||[],g=p.map((S=>z({},S,{stacktrace:S.stacktrace?z({},S.stacktrace,{type:"raw",frames:(S.stacktrace.frames||[]).map((b=>z({},b,{platform:"web:javascript"})))}):void 0}))),m={$exception_message:((u=p[0])==null?void 0:u.value)||a.message,$exception_type:(c=p[0])==null?void 0:c.type,$exception_level:a.level,$exception_list:g,$sentry_event_id:a.event_id,$sentry_exception:a.exception,$sentry_exception_message:((f=p[0])==null?void 0:f.value)||a.message,$sentry_exception_type:(d=p[0])==null?void 0:d.type,$sentry_tags:a.tags};return n&&r&&(m.$sentry_url=(s||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+a.event_id),o&&t.exceptions.sendExceptionEvent(m),a}}class M3{constructor(e,n,r,s,i,o){this.name=Kg,this.setupOnce=function(a){a(zg(e,{organization:n,projectId:r,prefix:s,severityAllowList:i,sendExceptionsToPostHog:o==null||o}))}}}var I3=P!=null&&P.location?uo(P.location.hash,"__posthog")||uo(location.hash,"state"):null,Yf="_postHogToolbarParam
7s",Jf=Ne("[Toolbar]"),Ln=(function(t){return t[t.UNINITIALIZED=0]="UNINITIALIZED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED",t})(Ln||{});class $3{constructor(e){this.instance=e}yt(e){te.ph_toolbar_state=e}wt(){var e;return(e=te.ph_toolbar_state)!==null&&e!==void 0?e:Ln.UNINITIALIZED}maybeLoadToolbar(e,n,r){if(e===void 0&&(e=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),this.instance.config.name&&this.instance.config.name==="ph_toolbar_internal"||!P||!W)return!1;e=e??P.location,r=r??P.history;try{if(!n){try{P.localStorage.setItem("test","test"),P.localStorage.removeItem("test")}catch{return!1}n=P?.localStorage}var s,i=I3||uo(e.hash,"__posthog")||uo(e.hash,"state"),o=i?If((()=>JSON.parse(atob(decodeURIComponent(i)))))||If((()=>JSON.parse(decodeURIComponent(i)))):null;return o&&o.action==="ph_authorize"?((s=o).source="url",s&&Object.keys(s).length>0&&(o.desiredHash?e.hash=o.desiredHash:r?r.replaceState(r.state,"",e.pathname+e.search):e.hash="")):((s=JSON.parse(n.getItem(Yf)||"{}")).source="localstorage",delete s.userIntent),!(!s.token||this.instance.config.token!==s.token)&&(this.loadToolbar(s),!0)}catch{return!1}}xt(e){var n=te.ph_load_toolbar||te.ph_load_editor;!fe(n)&&qn(n)?n(e,this.instance):Jf.warn("No toolbar load function found")}loadToolbar(e){var n=!(W==null||!W.getElementById(Og));if(!P||n)return!1;var r=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,s=z({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(P.localStorage.setItem(Yf,JSON.stringify(z({},s,{source:void 0}))),this.wt()===Ln.LOADED)this.xt(s);else if(this.wt()===Ln.UNINITIALIZED){var i;this.yt(Ln.LOADING),(i=te.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",(o=>{if(o)return Jf.error("[Toolbar] Failed to load",o),void this.yt(Ln.UNINITIALIZED);this.yt(Ln.LOADED),this.xt(s)})),Ue(P,"turbolinks:load",(()=>{this.yt(Ln.UNINITIALIZED),this.loadToolbar(s)}))}return!0}Et(e){return this.loadToolbar(e)}maybeLoadEditor(e,n,r){return e===void 0&&(e=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),this.maybeLoadToolbar(e,n,r)}}var F3=Ne("[TracingHeaders]");class N3{constructor(e){this.$t=void 0,this.St=void 0,this.rt=()=>{var n,r;V(this.$t)&&((n=te.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),V(this.St)&&((r=te.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null||r._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}it(e){var n,r;(n=te.__PosthogExtensions__)!=null&&n.tracingHeadersPatchFns&&e(),(r=te.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"tracing-headers",(s=>{if(s)return F3.error("failed to load script",s);e()}))}startIfEnabledOrStop(){var e,n;this._instance.config.__add_tracing_headers?this.it(this.rt):((e=this.$t)==null||e.call(this),(n=this.St)==null||n.call(this),this.$t=void 0,this.St=void 0)}}var Ri="https?://(.*)",ts=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],L3=es(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],ts),ci="<masked>",D3=["li_fat_id"];function Yg(t,e,n){if(!W)return{};var r,s=e?es([],ts,n||[]):[],i=Jg(li(W.URL,s,ci),t),o=(r={},Ce(D3,(function(a){var l=Qt.q(a);r[a]=l||null})),r);return He(o,i)}function Jg(t,e){var n=L3.concat(e||[]),r={};return Ce(n,(function(s){var i=co(t,s);r[s]=i||null})),r}function Zg(t){var e=(function(i){return i?i.search(Ri+"google.([^/?]*)")===0?"google":i.search(Ri+"bing.com")===0?"bing":i.search(Ri+"yahoo.com")===0?"yahoo":i.search(Ri+"duckduckgo.com")===0?"duckduckgo":null:null})(t),n=e!="yahoo"?"q":"p",r={};if(!Gt(e)){r.$search_engine=e;var s=W?co(W.referrer,n):"";s.length&&(r.ph_keyword=s)}return r}function Zf(){return navigator.language||navigator.userLanguage}function Xg(){return W?.referrer||"$direct"}function Qg(t,e){var n=t?es([],ts,e||[]):[],r=Ye?.href.substring(0,1e3);return{r:Xg().substring(0,1e3),u:r?li(r,n,ci):void 0}}function e_(t){var e,{r:n,u:r}=t,s={$referrer:n,$referring_domain:n==null?void 0:n=="$direct"?"$direct":(e=lo(n))==null?void 0:e.host};
vendor: 33,568 bytes, lines 7-9
7if(r){s.$current_url=r;var i=lo(r);s.$host=i?.host,s.$pathname=i?.pathname;var o=Jg(r);He(s,o)}if(n){var a=Zg(n);He(s,a)}return s}function t_(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function H3(){try{return new Date().getTimezoneOffset()}catch{return}}function j3(t,e){if(!gt)return{};var n,r,s,i=t?es([],ts,e||[]):[],[o,a]=(function(l){for(var u=0;u<Tf.length;u++){var[c,f]=Tf[u],d=c.exec(l),h=d&&(qn(f)?f(d,l):f);if(h)return h}return["",""]})(gt);return He(Sc({$os:o,$os_version:a,$browser:Sg(gt,navigator.vendor),$device:Pf(gt),$device_type:(r=gt,s=Pf(r),s===cg||s===lg||s==="Kobo"||s==="Kindle Fire"||s===Eg?Ys:s===Zs||s===Dr||s===Xs||s===wl?"Console":s===fg?"Wearable":s?Mt:"Desktop"),$timezone:t_(),$timezone_offset:H3()}),{$current_url:li(Ye?.href,i,ci),$host:Ye?.host,$pathname:Ye?.pathname,$raw_user_agent:gt.length>1e3?gt.substring(0,997)+"...":gt,$browser_version:OE(gt,navigator.vendor),$browser_language:Zf(),$browser_language_prefix:(n=Zf(),typeof n=="string"?n.split("-")[0]:void 0),$screen_height:P?.screen.height,$screen_width:P?.screen.width,$viewport_height:P?.innerHeight,$viewport_width:P?.innerWidth,$lib:"web",$lib_version:un.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var $n=Ne("[Web Vitals]"),Xf=9e5;class U3{constructor(e){var n;this.kt=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Pt=()=>{clearTimeout(this.Tt),this.N.metrics.length!==0&&(this._instance.capture("$web_vitals",this.N.metrics.reduce(((r,s)=>z({},r,{["$web_vitals_"+s.name+"_event"]:z({},s),["$web_vitals_"+s.name+"_value"]:s.value})),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.It=r=>{var s,i=(s=this._instance.sessionManager)==null?void 0:s.checkAndGetSessionAndWindowId(!0);if(V(i))$n.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Ct();V(o)||(fe(r?.name)||fe(r?.value)?$n.error("Invalid metric received",r):this.Rt&&r.value>=this.Rt?$n.error("Ignoring metric with value >= "+this.Rt,r):(this.N.url!==o&&(this.Pt(),this.Tt=setTimeout(this.Pt,this.flushToCaptureTimeoutMs)),V(this.N.url)&&(this.N.url=o),this.N.firstMetricTimestamp=V(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,r.attribution&&r.attribution.interactionTargetElement&&(r.attribution.interactionTargetElement=void 0),this.N.metrics.push(z({},r,{$current_url:o,$session_id:i.sessionId,$window_id:i.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.Pt()))}},this.rt=()=>{if(!this.P){var r,s,i,o,a=te.__PosthogExtensions__;V(a)||V(a.postHogWebVitalsCallbacks)||({onLCP:r,onCLS:s,onFCP:i,onINP:o}=a.postHogWebVitalsCallbacks),r&&s&&i&&o?(this.allowedMetrics.indexOf("LCP")>-1&&r(this.It.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&s(this.It.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.It.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this.It.bind(this)),this.P=!0):$n.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.kt=!((n=this._instance.persistence)==null||!n.props[Lf]),this.startIfEnabled()}get allowedMetrics(){var e,n,r=qe(this._instance.config.capture_performance)?(e=this._instance.config.capture_performance)==null?void 0:e.web_vitals_allowed_metrics:void 0;return fe(r)?((n=this._instance.persistence)==null?void 0:n.props[Hf])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(qe(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=qe(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_attribution:void 0;return e!=null&&e}get Rt(){var e=qe(this._instance.config.capture_performance)&&Tn(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:Xf;return 0<e&&e<=6e4?Xf:e}get isEnabled(){var e=Ye?.protocol;if(e!=="http:"&&e!=="https:")return $n.info("Web Vitals are disabled on non-http/https protocols"),!1;var n=qe(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:En(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return En(n)?n:this.kt}startIfEnabled(){this.isEnabled&&!this.P&&($n.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){var n=qe(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=qe(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Lf]:n}),this._instance.persistence.register({[Hf]:r})),this.kt=n,this.startIfEnabled()}it(e){var n,r;if((n=te.__PosthogExtensions__)!=null&&n.postHogWebVitalsCallbacks)e();else{var s=this.useAttribution?"web-vitals-with-attribution":"web-vitals";(r=te.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,s,(i=>{i?$n.error("failed to load script",i):e()}))}}Ct(){var e=P?P.location.href:void 0;if(e){var n=this._instance.config.mask_personal_data_properties,r=this._instance.config.custom_personal_data_properties,s=n?es([],ts,r||[]):[];return li(e,s,ci)}$n.error("Could not determine current URL")}}var B3=Ne("[Heatmaps]");function Qf(t){return qe(t)&&"clientX"in t&&"clientY"in t&&Tn(t.clientX)&&Tn(t.clientY)}class V3{constructor(e){var n;this.kt=!1,this.P=!1,this.Ft=null,this.instance=e,this.kt=!((n=this.instance.persistence)==null||!n.props[Cl]),this.rageclicks=new Wg(e.config.rageclick)}get flushIntervalMilliseconds(){var e=5e3;return qe(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return fe(this.instance.config.capture_heatmaps)?fe(this.instance.config.enable_heatmaps)?this.kt:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.P)return;B3.info("starting..."),this.Ot(),this.Mt()}else{var e;clearInterval((e=this.Ft)!==null&&e!==void 0?e:void 0),this.At(),this.getAndClearBuffer()}}onRemoteConfig(e){var n=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Cl]:n}),this.kt=n,this.startIfEnabled()}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}jt(e){this.Dt(e.originalEvent,"deadclick")}Mt(){this.Ft&&clearInterval(this.Ft),this.Ft=(function(e){return e?.visibilityState==="visible"})(W)?setInterval(this.Lt.bind(this),this.flushIntervalMilliseconds):null}Ot(){P&&W&&(this.Nt=this.Lt.bind(this),Ue(P,"beforeunload",this.Nt),this.Ut=e=>this.Dt(e||P?.event),Ue(W,"click",this.Ut,{capture:!0}),this.zt=e=>this.Ht(e||P?.event),Ue(W,"mousemove",this.zt,{capture:!0}),this.Bt=new Gg(this.instance,R3,this.jt.bind(this)),this.Bt.startIfEnabled(),this.qt=this.Mt.bind(this),Ue(W,"visibilitychange",this.qt),this.P=!0)}At(){var e;P&&W&&(this.Nt&&P.removeEventListener("beforeunload",this.Nt),this.Ut&&W.removeEventListener("click",this.Ut,{capture:!0}),this.zt&&W.removeEventListener("mousemove",this.zt,{capture:!0}),this.qt&&W.removeEventListener("visibilitychange",this.qt),clearTimeout(this.Wt),(e=this.Bt)==null||e.stop(),this.P=!1)}Gt(e,n){var r=this.instance.scrollManager.scrollY(),s=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=(function(a,l,u){for(var c=a;c&&Ho(c)&&!Kn(c,"body");){if(c===u)return!1;if(ue(l,P?.getComputedStyle(c).position))return!0;c=Lg(c)}return!1})(Fg(e),["fixed","sticky"],i);return{x:e.clientX+(o?0:s),y:e.clientY+(o?0:r),target_fixed:o,type:n}}Dt(e,n){var r;if(n===void 0&&(n="click"),!jf(e.target)&&Qf(e)){var s=this.Gt(e,n);(r=this.rageclicks)!=null&&r.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Vt(z({},s,{type:"rageclick"})),this.Vt(s)}}Ht(e){!jf(e.target)&&Qf(e)&&(clearTimeout(this.Wt),this.Wt=setTimeout((()=>{this.Vt(this.Gt(e,"mousemove"))}),500))}Vt(e){if(P){var n=P.location.href,r=this.instance.config.mask_personal_data_properties,s=this.instance.config.custom_personal_data_properties,i=r?es([],ts,s||[]):[],o=li(n,i,ci);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(e)}}Lt(){this.N&&!Pr(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class eh{constructor(e){this.Jt=(n,r,s)=>{s&&(s.noSessionId||s.activityTimeout||s.sessionPastMaximumLength)&&(K.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:s}),this.Kt=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.Yt()}Yt(){var e;this.Xt=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.Jt)}destroy(){var e;(e=this.Xt)==null||e.call(this),this.Xt=void 0}doPageView(e,n){var r,s=this.Qt(e,n);return this.Kt={pathname:(r=P?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:e},this._instance.scrollManager.resetContext(),s}doPageLeave(e){var n;return this.Qt(e,(n=this.Kt)==null?void 0:n.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.Kt)==null?void 0:e.pageViewId}}Qt(e,n){var r=this.Kt;if(!r)return{$pageview_id:n};var s={$pageview_id:n,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:l,maxContentHeight:u,lastContentY:c,maxContentY:f}=i;if(!(V(o)||V(a)||V(l)||V(u)||V(c)||V(f))){o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),u=Math.ceil(u),c=Math.ceil(c),f=Math.ceil(f);var d=o<=1?1:tn(a/o,0,1,K),h=o<=1?1:tn(l/o,0,1,K),p=u<=1?1:tn(c/u,0,1,K),g=u<=1?1:tn(f/u,0,1,K);s=He(s,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:d,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:h,$prev_pageview_last_content:c,$prev_pageview_last_content_percentage:p,$prev_pageview_max_content:f,$prev_pageview_max_content_percentage:g})}}return r.pathname&&(s.$prev_pageview_pathname=r.pathname),r.timestamp&&(s.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),s}}var vn=(function(t){return t.GZipJS="gzip-js",t.Base64="base64",t})({}),It=Uint8Array,bt=Uint16Array,Yr=Uint32Array,Rc=new It([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Tc=new It([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),th=new It([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),n_=function(t,e){for(var n=new bt(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var s=new Yr(n[30]);for(r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)s[i]=i-n[r]<<5|r;return[n,s]},r_=n_(Rc,2),W3=r_[0],$l=r_[1];W3[28]=258,$l[258]=28;for(var nh=n_(Tc,0)[1],s_=new bt(32768),xe=0;xe<32768;++xe){var tr=(43690&xe)>>>1|(21845&xe)<<1;tr=(61680&(tr=(52428&tr)>>>2|(13107&tr)<<2))>>>4|(3855&tr)<<4,s_[xe]=((65280&tr)>>>8|(255&tr)<<8)>>>1}var js=function(t,e,n){for(var r=t.length,s=0,i=new bt(e);s<r;++s)++i[t[s]-1];var o,a=new bt(e);for(s=0;s<e;++s)a[s]=a[s-1]+i[s-1]<<1;for(o=new bt(r),s=0;s<r;++s)o[s]=s_[a[t[s]-1]++]>>>15-t[s];return o},vr=new It(288);for(xe=0;xe<144;++xe)vr[xe]=8;for(xe=144;xe<256;++xe)vr[xe]=9;for(xe=256;xe<280;++xe)vr[xe]=7;for(xe=280;xe<288;++xe)vr[xe]=8;var ho=new It(32);for(xe=0;xe<32;++xe)ho[xe]=5;var q3=js(vr,9),G3=js(ho,5),i_=function(t){return(t/8>>0)+(7&t&&1)},o_=function(t,e,n){(n==null||n>t.length)&&(n=t.length);var r=new(t instanceof bt?bt:t instanceof Yr?Yr:It)(n-e);return r.set(t.subarray(e,n)),r},an=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},ds=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},Sa=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var s=n.length,i=n.slice();if(!s)return[new It(0),0];if(s==1){var o=new It(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort((function(E,C){return E.f-C.f})),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,f=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=s-1;)a=n[n[u].f<n[f].f?u++:f++],l=n[u!=c&&n[u].f<n[f].f?u++:f++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};var d=i[0].s;for(r=1;r<s;++r)i[r].s>d&&(d=i[r].s);var h=new bt(d+1),p=Fl(n[c-1],h,0);if(p>e){r=0;var g=0,m=p-e,S=1<<m;for(i.sort((function(E,C){return h[C.s]-h[E.s]||E.f-C.f}));r<s;++r){var b=i[r].s;if(!(h[b]>e))break;g+=S-(1<<p-h[b]),h[b]=e}for(g>>>=m;g>0;){var _=i[r].s;h[_]<e?g-=1<<e-h[_]++-1:++r}for(;r>=0&&g;--r){var y=i[r].s;h[y]==e&&(--h[y],++g)}p=e}return[new It(h),p]},Fl=function(t,e,n){return t.s==-1?Math.max(Fl(t.l,e,n+1),Fl(t.r,e,n+1)):e[t.s]=n},rh=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new bt(++e),r=0,s=t[0],i=1,o=function(l){n[r++]=l},a=1;a<=e;++a)if(t[a]==s&&a!=e)++i;else{if(!s&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(s),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(s);i=1,s=t[a]}return[n.subarray(0,r),e]},ps=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},Nl=function(t,e,n){var r=n.length,s=i_(e+2);t[s]=255&r,t[s+1]=r>>>8,t[s+2]=255^t[s],t[s+3]=255^t[s+1];for(var i=0;i<r;++i)t[s+i+4]=n[i];return 8*(s+4+r)},sh=function(t,e,n,r,s,i,o,a,l,u,c){an(e,c++,n),++s[256];for(var f=Sa(s,15),d=f[0],h=f[1],p=Sa(i,15),g=p[0],m=p[1],S=rh(d),b=S[0],_=S[1],y=rh(g),E=y[0],C=y[1],T=new bt(19),R=0;R<b.length;++R)T[31&b[R]]++;for(R=0;R<E.length;++R)T[31&E[R]]++;for(var k=Sa(T,7),O=k[0],L=k[1],A=19;A>4&&!O[th[A-1]];--A);var H,ne,oe,U,Y=u+5<<3,B=ps(s,vr)+ps(i,ho)+o,le=ps(s,d)+ps(i,g)+o+14+3*A+ps(T,O)+(2*T[16]+3*T[17]+7*T[18]);if(Y<=B&&Y<=le)return Nl(e,c,t.subarray(l,l+u));if(an(e,c,1+(le<B)),c+=2,le<B){H=js(d,h),ne=d,oe=js(g,m),U=g;var Ve=js(O,L);for(an(e,c,_-257),an(e,c+5,C-1),an(e,c+10,A-4),c+=14,R=0;R<A;++R)an(e,c+3*R,O[th[R]]);c+=3*A;for(var Pe=[b,E],ae=0;ae<2;++ae){var Ie=Pe[ae];for(R=0;R<Ie.length;++R){var Ae=31&Ie[R];an(e,c,Ve[Ae]),c+=O[Ae],Ae>15&&(an(e,c,Ie[R]>>>5&127),c+=Ie[R]>>>12)}}}else H=q3,ne=vr,oe=G3,U=ho;for(R=0;R<a;++R)if(r[R]>255){Ae=r[R]>>>18&31,ds(e,c,H[Ae+257]),c+=ne[Ae+257],Ae>7&&(an(e,c,r[R]>>>23&31),c+=Rc[Ae]);var $e=31&r[R];ds(e,c,oe[$e]),c+=U[$e],$e>3&&(ds(e,c,r[R]>>>5&8191),c+=Tc[$e])}else ds(e,c,H[r[R]]),c+=ne[r[R]];return ds(e,c,H[256]),c+ne[256]},K3=new Yr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z3=(function(){for(var t=new Yr(256),e=0;e<256;++e){for(var n=e,r=9;--r;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t})(),Y3=function(t,e,n,r,s){return(function(i,o,a,l,u,c){var f=i.length,d=new It(l+f+5*(1+Math.floor(f/7e3))+u),h=d.subarray(l,d.length-u),p=0;if(!o||f<8)for(var g=0;g<=f;g+=65535){var m=g+65535;m<f?p=Nl(h,p,i.subarray(g,m)):(h[g]=c,p=Nl(h,p,i.subarray(g,f)))}else{for(var S=K3[o-1],b=S>>>13,_=8191&S,y=(1<<a)-1,E=new bt(32768),C=new bt(y+1),T=Math.ceil(a/3),R=2*T,k=function(M){return(i[M]^i[M+1]<<T^i[M+2]<<R)&y},O=new Yr(25e3),L=new bt(288),A=new bt(32),H=0,ne=0,oe=(g=0,0),U=0,Y=0;g<f;++g){var B=k(g),le=32767&g,Ve=C[B];if(E[le]=Ve,C[B]=le,U<=g){var Pe=f-g;if((H>7e3||oe>24576)&&Pe>423){p=sh(i,h,0,O,L,A,ne,oe,Y,g-Y,p),oe=H=ne=0,Y=g;for(var ae=0;ae<286;++ae)L[ae]=0;for(ae=0;ae<30;++ae)A[ae]=0}var Ie=2,Ae=0,$e=_,Oe=le-Ve&32767;if(Pe>2&&B==k(g-Oe))for(var I=Math.min(b,Pe)-1,Z=Math.min(32767,g),q=Math.min(258,Pe);Oe<=Z&&--$e&&le!=Ve;){if(i[g+Ie]==i[g+Ie-Oe]){for(var X=0;X<q&&i[g+X]==i[g+X-Oe];++X);if(X>Ie){if(Ie=X,Ae=Oe,X>I)break;var ce=Math.min(Oe,X-2),be=0;for(ae=0;ae<ce;++ae){var v=g-Oe+ae+32768&32767,w=v-E[v]+32768&32767;w>be&&(be=w,Ve=v)}}}Oe+=(le=Ve)-(Ve=E[le])+32768&32767}if(Ae){O[oe++]=268435456|$l[Ie]<<18|nh[Ae];var x=31&$l[Ie],$=31&nh[Ae];ne+=Rc[x]+Tc[$],++L[257+x],++A[$],U=g+Ie,++H}else O[oe++]=i[g],++L[i[g]]}}p=sh(i,h,c,O,L,A,ne,oe,Y,g-Y,p)}return o_(d,0,l+i_(p)+u)})(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!0)},Ca=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function J3(t,e){e===void 0&&(e={});var n=(function(){var a=4294967295;return{p:function(l){for(var u=a,c=0;c<l.length;++c)u=z3[255&u^l[c]]^u>>>8;a=u},d:function(){return 4294967295^a}}})(),r=t.length;n.p(t);var s,i=Y3(t,e,10+((s=e).filename&&s.filename.length+1||0),8),o=i.length;return(function(a,l){var u=l.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=l.level<2?4:l.level==9?2:0,a[9]=3,l.mtime!=0&&Ca(a,4,Math.floor(new Date(l.mtime||Date.now())/1e3)),u){a[3]=8;for(var c=0;c<=u.length;++c)a[c+10]=u.charCodeAt(c)}})(i,e),Ca(i,o-8,n.d()),Ca(i,o-4,r),i}var Z3=function(t){var e,n,r,s,i="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,` 8`).replace(/\r/g,` 9`)).length,s=0;s<r;s++){var o=t.charCodeAt(s),a=null;o<128?n++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),Gt(a)||(n>e&&(i+=t.substring(e,n)),i+=a,e=n=s+1)}return n>e&&(i+=t.substring(e,t.length)),i},X3=!!_l||!!gl,ih="text/plain",po=function(t,e,n){var r;n===void 0&&(n=!0);var[s,i]=t.split("?"),o=z({},e),a=(r=i?.split("&").map((u=>{var c,[f,d]=u.split("="),h=n&&(c=o[f])!==null&&c!==void 0?c:d;return delete o[f],f+"="+h})))!==null&&r!==void 0?r:[],l=p3(o);return l&&a.push(l),s+"?"+a.join("&")},Rs=(t,e)=>JSON.stringify(t,((n,r)=>typeof r=="bigint"?r.toString():r),e),xa=t=>{var{data:e,compression:n}=t;if(e){if(n===vn.GZipJS){var r=J3((function(l,u){var c=l.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(l);for(var f=new It(l.length+(l.length>>>1)),d=0,h=function(S){f[d++]=S},p=0;p<c;++p){if(d+5>f.length){var g=new It(d+8+(c-p<<1));g.set(f),f=g}var m=l.charCodeAt(p);m<128||u?h(m):m<2048?(h(192|m>>>6),h(128|63&m)):m>55295&&m<57344?(h(240|(m=65536+(1047552&m)|1023&l.charCodeAt(++p))>>>18),h(128|m>>>12&63),h(128|m>>>6&63),h(128|63&m)):(h(224|m>>>12),h(128|m>>>6&63),h(128|63&m))}return o_(f,0,d)})(Rs(e)),{mtime:0}),s=new Blob([r],{type:ih});return{contentType:ih,body:s,estimatedSize:s.size}}if(n===vn.Base64){var i=(function(l){var u,c,f,d,h,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=0,m=0,S="",b=[];if(!l)return l;l=Z3(l);do u=(h=l.charCodeAt(g++)<<16|l.charCodeAt(g++)<<8|l.charCodeAt(g++))>>18&63,c=h>>12&63,f=h>>6&63,d=63&h,b[m++]=p.charAt(u)+p.charAt(c)+p.charAt(f)+p.charAt(d);while(g<l.length);switch(S=b.join(""),l.length%3){case 1:S=S.slice(0,-2)+"==";break;case 2:S=S.slice(0,-1)+"="}return S})(Rs(e)),o=(l=>"data="+encodeURIComponent(typeof l=="string"?l:Rs(l)))(i);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var a=Rs(e);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},$i=[];gl&&$i.push({transport:"fetch",method:t=>{var e,n,{contentType:r,body:s,estimatedSize:i}=(e=xa(t))!==null&&e!==void 0?e:{},o=new Headers;Ce(t.headers,(function(c,f){o.append(f,c)})),r&&o.append("Content-Type",r);var a=t.url,l=null;if(Sf){var u=new Sf;l={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}gl(a,z({method:t?.method||"GET",headers:o,keepalive:t.method==="POST"&&(i||0)<52428.8,body:s,signal:(n=l)==null?void 0:n.signal},t.fetchOptions)).then((c=>c.text().then((f=>{var d={statusCode:c.status,text:f};if(c.status===200)try{d.json=JSON.parse(f)}catch(h){K.error(h)}t.callback==null||t.callback(d)})))).catch((c=>{K.error(c),t.callback==null||t.callback({statusCode:0,error:c})})).finally((()=>l?clearTimeout(l.timeout):null))}}),_l&&$i.push({transport:"XHR",method:t=>{var e,n=new _l;n.open(t.method||"GET",t.url,!0);var{contentType:r,body:s}=(e=xa(t))!==null&&e!==void 0?e:{};Ce(t.headers,(function(i,o){n.setRequestHeader(o,i)})),r&&n.setRequestHeader("Content-Type",r),t.timeout&&(n.timeout=t.timeout),t.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(n.readyState===4){var i={statusCode:n.status,text:n.responseText};if(n.status===200)try{i.json=JSON.parse(n.responseText)}catch{}t.callback==null||t.callback(i)}},n.send(s)}}),xt!=null&&xt.sendBeacon&&$i.push({transport:"sendBeacon",method:t=>{var e=po(t.url,{beacon:"1"});try{var n,{contentType:r,body:s}=(n=xa(t))!==null&&n!==void 0?n:{},i=typeof s=="string"?new Blob([s],{type:r}):s;xt.sendBeacon(e,i)}catch{}}});var go=function(t,e){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function oh(t,e,n){return Rs({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var a_={exact:(t,e)=>e.some((n=>t.some((r=>n===r)))),is_not:(t,e)=>e.every((n=>t.every((r=>n!==r)))),regex:(t,e)=>e.some((n=>t.some((r=>go(n,r))))),not_regex:(t,e)=>e.every((n=>t.every((r=>!go(n,r))))),icontains:(t,e)=>e.map(Ti).some((n=>t.map(Ti).some((r=>n.includes(r))))),not_icontains:(t,e)=>e.map(Ti).every((n=>t.map(Ti).every((r=>!n.includes(r))))),gt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((s=>r>parseFloat(s)))})),lt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((s=>r<parseFloat(s)))}))},Ti=t=>t.toLowerCase();function l_(t,e){return!t||Object.entries(t).every((n=>{var[r,s]=n,i=e?.[r];if(V(i)||Gt(i))return!1;var o=[String(i)],a=a_[s.operator];return!!a&&a(s.values,o)}))}var ka=Ne("[Error tracking]");class Q3{constructor(e){var n,r;this.Zt=[],this.ti=new $E([new VE,new XE,new qE,new WE,new JE,new YE,new KE,new ZE],BE()),this._instance=e,this.Zt=(n=(r=this._instance.persistence)==null?void 0:r.get_property(xl))!==null&&n!==void 0?n:[]}onRemoteConfig(e){var n,r,s,i=(n=(r=e.errorTracking)==null?void 0:r.suppressionRules)!==null&&n!==void 0?n:[],o=(s=e.errorTracking)==null?void 0:s.captureExtensionExceptions;this.Zt=i,this._instance.persistence&&this._instance.persistence.register({[xl]:this.Zt,[Nf]:o})}get ii(){var e,n=!!this._instance.get_property(Nf),r=this._instance.config.error_tracking.captureExtensionExceptions;return(e=r??n)!==null&&e!==void 0&&e}buildProperties(e,n){return this.ti.buildFromUnknown(e,{syntheticException:n?.syntheticException,mechanism:{handled:n?.handled}})}sendExceptionEvent(e){var n=e.$exception_list;if(this.ei(n)){if(this.ri(n))return void ka.info("Skipping exception capture because a suppression rule matched");if(!this.ii&&this.si(n))return void ka.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ni(n))return void ka.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}ri(e){if(e.length===0)return!1;var n=e.reduce(((r,s)=>{var{type:i,value:o}=s;return Ge(i)&&i.length>0&&r.$exception_types.push(i),Ge(o)&&o.length>0&&r.$exception_values.push(o),r}),{$exception_types:[],$exception_values:[]});return this.Zt.some((r=>{var s=r.values.map((i=>{var o,a=a_[i.operator],l=me(i.value)?i.value:[i.value],u=(o=n[i.key])!==null&&o!==void 0?o:[];return l.length>0&&a(l,u)}));return r.type==="OR"?s.some(Boolean):s.every(Boolean)}))}si(e){return e.flatMap((n=>{var r,s;return(r=(s=n.stacktrace)==null?void 0:s.frames)!==null&&r!==void 0?r:[]})).some((n=>n.filename&&n.filename.startsWith("chrome-extension://")))}ni(e){if(e.length>0){var n,r,s,i,o=(n=(r=e[0].stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[],a=o[o.length-1];return(s=a==null||(i=a.filename)==null?void 0:i.includes("posthog.com/static"))!==null&&s!==void 0&&s}return!1}ei(e){return!fe(e)&&me(e)}}var St=Ne("[FeatureFlags]"),gs=Ne("[FeatureFlags]",{debugEnabled:!0}),eS="errors_while_computing_flags",tS="flag_missing",nS="quota_limited",rS="timeout",sS="connection_error",iS="unknown_error",oS=t=>"api_error_"+t,Ra="$active_feature_flags",wr="$override_feature_flags",ah="$feature_flag_payloads",_s="$override_feature_flag_payloads",lh="$feature_flag_request_id",ch="$feature_flag_evaluated_at",uh=t=>{var e={};for(var[n,r]of Ii(t||{}))r&&(e[n]=r);return e},aS=t=>{var e=t.flags;return e?(t.featureFlags=Object.fromEntries(Object.keys(e).map((n=>{var r;return[n,(r=e[n].variant)!==null&&r!==void 0?r:e[n].enabled]}))),t.featureFlagPayloads=Object.fromEntries(Object.keys(e).filter((n=>e[n].enabled)).filter((n=>{var r;return(r=e[n].metadata)==null?void 0:r.payload})).map((n=>{var r;return[n,(r=e[n].metadata)==null?void 0:r.payload]})))):St.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),t},lS=(function(t){return t.FeatureFlags="feature_flags",t.Recordings="recordings",t})({});class cS{constructor(e){this.oi=!1,this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.vi=!1,this.ci=!1,this._instance=e,this.featureFlagEventHandlers=[]}fi(){var e,n=(e=this._instance.config.evaluation_contexts)!==null&&e!==void 0?e:this._instance.config.evaluation_environments;return!this._instance.config.evaluation_environments||this._instance.config.evaluation_contexts||this.ci||(St.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ci=!0),n!=null&&n.length?n.filter((r=>{var s=r&&typeof r=="string"&&r.trim().length>0;return s||St.error("Invalid evaluation context found:",r,"Expected non-empty string"),s})):[]}pi(){return this.fi().length>0}flags(){if(this._instance.config.__preview_remote_config)this.di=!0;else{var e=!this.gi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.mi({disableFlags:e})}}get hasLoadedFlags(){return this.ai}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(kl),n=this._instance.get_property(wr),r=this._instance.get_property(_s);if(!r&&!n)return e||{};var s=He({},e||{}),i=[...new Set([...Object.keys(r||{}),...Object.keys(n||{})])];for(var o of i){var a,l,u=s[o],c=n?.[o],f=V(c)?(a=u?.enabled)!==null&&a!==void 0&&a:!!c,d=V(c)?u.variant:typeof c=="string"?c:void 0,h=r?.[o],p=z({},u,{enabled:f,variant:f?d??u?.variant:void 0});f!==u?.enabled&&(p.original_enabled=u?.enabled),d!==u?.variant&&(p.original_variant=u?.variant),h&&(p.metadata=z({},u?.metadata,{payload:h,original_payload:u==null||(l=u.metadata)==null?void 0:l.payload})),s[o]=p}return this.oi||(St.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:r,finalDetails:s}),this.oi=!0),s}getFlagVariants(){var e=this._instance.get_property(Ar),n=this._instance.get_property(wr);if(!n)return e||{};for(var r=He({},e),s=Object.keys(n),i=0;i<s.length;i++)r[s[i]]=n[s[i]];return this.oi||(St.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:n,finalFlags:r}),this.oi=!0),r}getFlagPayloads(){var e=this._instance.get_property(ah),n=this._instance.get_property(_s);if(!n)return e||{};for(var r=He({},e||{}),s=Object.keys(n),i=0;i<s.length;i++)r[s[i]]=n[s[i]];return this.oi||(St.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:n,finalPayloads:r}),this.oi=!0),r}reloadFeatureFlags(){this.ui||this._instance.config.advanced_disable_feature_flags||this.gi||(this._instance.bi.emit("featureFlagsReloading",!0),this.gi=setTimeout((()=>{this.mi()}),5))}yi(){clearTimeout(this.gi),this.gi=void 0}ensureFlagsLoaded(){this.ai||this.li||this.gi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.ui=e}mi(e){var n;if(this.yi(),!this._instance.M())if(this.li)this.hi=!0;else{var r=this._instance.config.token,s=this._instance.get_property("$device_id"),i={token:r,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:z({},((n=this._instance.persistence)==null?void 0:n.get_initial_props())||{},this._instance.get_property(ks)||{}),group_properties:this._instance.get_property(ir)};Gt(s)||V(s)||(i.$device_id=s),(e!=null&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.pi()&&(i.evaluation_contexts=this.fi());var o=this._instance.config.__preview_remote_config,a=o?"/flags/?v=2":"/flags/?v=2&config=true",l=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",u=this._instance.requestRouter.endpointFor("flags",a+l);o&&(i.timezone=t_()),this.li=!0,this._instance._send_request({method:"POST",url:u,data:i,compression:this._instance.config.disable_compression?void 0:vn.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:c=>{var f,d,h,p,g=!0;if(c.statusCode===200&&(this.hi||(this.$anon_distinct_id=void 0),g=!1),this.li=!1,this.di||(this.di=!0,this._instance.wi((p=c.json)!==null&&p!==void 0?p:{})),!i.disable_flags||this.hi){this.vi=!g;var m=[];c.error?c.error instanceof Error?m.push(c.error.name==="AbortError"?rS:sS):m.push(iS):c.statusCode!==200&&m.push(oS(c.statusCode)),(f=c.json)!=null&&f.errorsWhileComputingFlags&&m.push(eS);var S=!((d=c.json)==null||(d=d.quotaLimited)==null||!d.includes(lS.FeatureFlags));if(S&&m.push(nS),(h=this._instance.persistence)==null||h.register({[Tl]:m}),S)St.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var b;i.disable_flags||this.receivedFeatureFlags((b=c.json)!==null&&b!==void 0?b:{},g),this.hi&&(this.hi=!1,this.mi())}}}})}}getFeatureFlag(e,n){var r;if(n===void 0&&(n={}),this.ai||this.getFlags()&&this.getFlags().length>0){var s=this.getFeatureFlagResult(e,n);return(r=s?.variant)!==null&&r!==void 0?r:s?.enabled}St.warn('getFeatureFlag for key "'+e+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var n=this.getFeatureFlagResult(e,{send_event:!1});return n?.payload}getFeatureFlagResult(e,n){if(n===void 0&&(n={}),this.ai||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants(),s=e in r,i=r[e],o=this.getFlagPayloads()[e],a=String(i),l=this._instance.get_property(lh)||void 0,u=this._instance.get_property(ch)||void 0,c=this._instance.get_property(so)||{};if((n.send_event||!("send_event"in n))&&(!(e in c)||!c[e].includes(a))){var f,d,h,p,g,m,S,b,_,y;me(c[e])?c[e].push(a):c[e]=[a],(f=this._instance.persistence)==null||f.register({[so]:c});var E=this.getFeatureFlagDetails(e),C=[...(d=this._instance.get_property(Tl))!==null&&d!==void 0?d:[]];V(i)&&C.push(tS);var T={$feature_flag:e,$feature_flag_response:i,$feature_flag_payload:o||null,$feature_flag_request_id:l,$feature_flag_evaluated_at:u,$feature_flag_bootstrapped_response:((h=this._instance.config.bootstrap)==null||(h=h.featureFlags)==null?void 0:h[e])||null,$feature_flag_bootstrapped_payload:((p=this._instance.config.bootstrap)==null||(p=p.featureFlagPayloads)==null?void 0:p[e])||null,$used_bootstrap_value:!this.vi};V(E==null||(g=E.metadata)==null?void 0:g.version)||(T.$feature_flag_version=E.metadata.version);var R,k=(m=E==null||(S=E.reason)==null?void 0:S.description)!==null&&m!==void 0?m:E==null||(b=E.reason)==null?void 0:b.code;k&&(T.$feature_flag_reason=k),E!=null&&(_=E.metadata)!=null&&_.id&&(T.$feature_flag_id=E.metadata.id),V(E?.original_variant)&&V(E?.original_enabled)||(T.$feature_flag_original_response=V(E.original_variant)?E.original_enabled:E.original_variant),E!=null&&(y=E.metadata)!=null&&y.original_payload&&(T.$feature_flag_original_payload=E==null||(R=E.metadata)==null?void 0:R.original_payload),C.length&&(T.$feature_flag_error=C.join(",")),this._instance.capture("$feature_flag_called",T)}if(s){var O=o;if(!V(o))try{O=JSON.parse(o)}catch{}return{key:e,enabled:!!i,variant:typeof i=="string"?i:void 0,payload:O}}}else St.warn('getFeatureFlagResult for key "'+e+`" failed. Feature flags didn't load in time.`)}getRemoteConfigPayload(e,n){var r=this._instance.config.token,s={distinct_id:this._instance.get_distinct_id(),token:r};this.pi()&&(s.evaluation_contexts=this.fi()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2&config=true"),data:s,compression:this._instance.config.disable_compression?void 0:vn.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:i=>{var o,a=(o=i.json)==null?void 0:o.featureFlagPayloads;n(a?.[e]||void 0)}})}isFeatureEnabled(e,n){if(n===void 0&&(n={}),this.ai||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(e,n);return V(r)?void 0:!!r}St.warn('isFeatureEnabled for key "'+e+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((n=>n!==e))}receivedFeatureFlags(e,n){if(this._instance.persistence){this.ai=!0;var r=this.getFlagVariants(),s=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(o,a,l,u,c){l===void 0&&(l={}),u===void 0&&(u={}),c===void 0&&(c={});var f=aS(o),d=f.flags,h=f.featureFlags,p=f.featureFlagPayloads;if(h){var g=o.requestId,m=o.evaluatedAt;if(me(h)){St.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var S={};if(h)for(var b=0;b<h.length;b++)S[h[b]]=!0;a&&a.register({[Ra]:h,[Ar]:S})}else{var _=h,y=p,E=d;if(o.errorsWhileComputingFlags)if(d){var C=new Set(Object.keys(d).filter((T=>{var R;return!((R=d[T])!=null&&R.failed)})));_=z({},l,Object.fromEntries(Object.entries(_).filter((T=>{var[R]=T;return C.has(R)})))),y=z({},u,Object.fromEntries(Object.entries(y||{}).filter((T=>{var[R]=T;return C.has(R)})))),E=z({},c,Object.fromEntries(Object.entries(E||{}).filter((T=>{var[R]=T;return C.has(R)}))))}else _=z({},l,_),y=z({},u,y),E=z({},c,E);a&&a.register(z({[Ra]:Object.keys(uh(_)),[Ar]:_||{},[ah]:y||{},[kl]:E||{}},g?{[lh]:g}:{},m?{[ch]:m}
9:{}))}}})(e,this._instance.persistence,r,s,i),this.xi(n)}}override(e,n){n===void 0&&(n=!1),St.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:n})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return St.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this._instance.persistence.unregister(wr),this._instance.persistence.unregister(_s),this.xi(),gs.info("All overrides cleared");if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var n,r=e;if(this.oi=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this._instance.persistence.unregister(wr),gs.info("Flag overrides cleared");else if(r.flags){if(me(r.flags)){for(var s={},i=0;i<r.flags.length;i++)s[r.flags[i]]=!0;this._instance.persistence.register({[wr]:s})}else this._instance.persistence.register({[wr]:r.flags});gs.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this._instance.persistence.unregister(_s),gs.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[_s]:r.payloads}),gs.info("Payload overrides set",{payloads:r.payloads}))),void this.xi()}this.xi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ai){var{flags:n,flagVariants:r}=this.Ei();e(n,r)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,n,r){var s,i=(this._instance.get_property(xs)||[]).find((u=>u.flagKey===e)),o={["$feature_enrollment/"+e]:n},a={$feature_flag:e,$feature_enrollment:n,$set:o};i&&(a.$early_access_feature_name=i.name),r&&(a.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(o,!1);var l=z({},this.getFlagVariants(),{[e]:n});(s=this._instance.persistence)==null||s.register({[Ra]:Object.keys(uh(l)),[Ar]:l}),this.xi()}getEarlyAccessFeatures(e,n,r){n===void 0&&(n=!1);var s=this._instance.get_property(xs),i=r?"&"+r.map((o=>"stage="+o)).join("&"):"";if(s&&!n)return e(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:o=>{var a,l;if(o.json){var u=o.json.earlyAccessFeatures;return(a=this._instance.persistence)==null||a.unregister(xs),(l=this._instance.persistence)==null||l.register({[xs]:u}),e(u)}}})}Ei(){var e=this.getFlags(),n=this.getFlagVariants();return{flags:e.filter((r=>n[r])),flagVariants:Object.keys(n).filter((r=>n[r])).reduce(((r,s)=>(r[s]=n[s],r)),{})}}xi(e){var{flags:n,flagVariants:r}=this.Ei();this.featureFlagEventHandlers.forEach((s=>s(n,r,{errorsLoading:e})))}setPersonPropertiesForFlags(e,n){n===void 0&&(n=!0);var r=this._instance.get_property(ks)||{};this._instance.register({[ks]:z({},r,e)}),n&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(ks)}setGroupPropertiesForFlags(e,n){n===void 0&&(n=!0);var r=this._instance.get_property(ir)||{};Object.keys(r).length!==0&&Object.keys(r).forEach((s=>{r[s]=z({},r[s],e[s]),delete e[s]})),this._instance.register({[ir]:z({},r,e)}),n&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var n=this._instance.get_property(ir)||{};this._instance.register({[ir]:z({},n,{[e]:{}})})}else this._instance.unregister(ir)}reset(){this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.vi=!1,this.$anon_distinct_id=void 0,this.yi(),this.oi=!1}}var uS=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Ta{constructor(e,n){this.R=e,this.props={},this.$i=!1,this.Si=(r=>{var s="";return r.token&&(s=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+s+"_posthog"})(e),this.Y=this.ki(e),this.load(),e.debug&&K.info("Persistence loaded",e.persistence,z({},this.props)),this.update_config(e,e,n),this.save()}isDisabled(){return!!this.Pi}ki(e){uS.indexOf(e.persistence.toLowerCase())===-1&&(K.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var n=(function(s){s===void 0&&(s=[]);var i=[...C3,...s];return z({},Me,{W:function(o){try{var a={};try{a=Qt.W(o)||{}}catch{}var l=He(a,JSON.parse(Me.q(o)||"{}"));return Me.G(o,l),l}catch{}return null},G:function(o,a,l,u,c,f){try{Me.G(o,a,void 0,void 0,f);var d={};
9i.forEach((h=>{a[h]&&(d[h]=a[h])})),Object.keys(d).length&&Qt.G(o,d,l,u,c,f)}catch(h){Me.B(h)}},V:function(o,a){try{P?.localStorage.removeItem(o),Qt.V(o,a)}catch(l){Me.B(l)}}})})(e.cookie_persisted_properties||[]),r=e.persistence.toLowerCase();return r==="localstorage"&&Me.H()?Me:r==="localstorage+cookie"&&n.H()?n:r==="sessionstorage"&&ze.H()?ze:r==="memory"?x3:r==="cookie"?Qt:n.H()?n:Qt}properties(){var e={};return Ce(this.props,(function(n,r){if(r===Ar&&qe(n))for(var s=Object.keys(n),i=0;i<s.length;i++)e["$feature/"+s[i]]=n[s[i]];else a=r,l=!1,(Gt(o=s3)?l:Ef&&o.indexOf===Ef?o.indexOf(a)!=-1:(Ce(o,(function(u){if(l||(l=u===a))return no})),l))||(e[r]=n);var o,a,l})),e}load(){if(!this.Pi){var e=this.Y.W(this.Si);e&&(this.props=He({},e))}}save(){this.Pi||this.Y.G(this.Si,this.props,this.Ti,this.Ii,this.Ci,this.R.debug)}remove(){this.Y.V(this.Si,!1),this.Y.V(this.Si,!0)}clear(){this.remove(),this.props={}}register_once(e,n,r){if(qe(e)){V(n)&&(n="None"),this.Ti=V(r)?this.Ri:r;var s=!1;if(Ce(e,((i,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=i,s=!0)})),s)return this.save(),!0}return!1}register(e,n){if(qe(e)){this.Ti=V(n)?this.Ri:n;var r=!1;if(Ce(e,((s,i)=>{e.hasOwnProperty(i)&&this.props[i]!==s&&(this.props[i]=s,r=!0)})),r)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.$i){var e=Yg(this.R.custom_campaign_params,this.R.mask_personal_data_properties,this.R.custom_personal_data_properties);Pr(Sc(e))||this.register(e),this.$i=!0}}update_search_keyword(){var e;this.register((e=W?.referrer)?Zg(e):{})}update_referrer_info(){var e;this.register_once({$referrer:Xg(),$referring_domain:W!=null&&W.referrer&&((e=lo(W.referrer))==null?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[Ol]||this.props[Ml]||this.register_once({[io]:Qg(this.R.mask_personal_data_properties,this.R.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};Ce([Ml,Ol],(o=>{var a=this.props[o];a&&Ce(a,(function(l,u){e["$initial_"+vl(u)]=l}))}));var n,r,s=this.props[io];if(s){var i=(n=e_(s),r={},Ce(n,(function(o,a){r["$initial_"+vl(a)]=o})),r);He(e,i)}return e}safe_merge(e){return Ce(this.props,(function(n,r){r in e||(e[r]=n)})),e}update_config(e,n,r){if(this.Ri=this.Ti=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!r),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==n.persistence||!((o,a)=>{if(o.length!==a.length)return!1;var l=[...o].sort(),u=[...a].sort();return l.every(((c,f)=>c===u[f]))})(e.cookie_persisted_properties||[],n.cookie_persisted_properties||[])){var s=this.ki(e),i=this.props;this.clear(),this.Y=s,this.props=i,this.save()}}set_disabled(e){this.Pi=e,this.Pi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Ii&&(this.Ii=e,this.remove(),this.save())}set_secure(e){e!==this.Ci&&(this.Ci=e,this.remove(),this.save())}set_event_timer(e,n){var r=this.props[Cs]||{};r[e]=n,this.props[Cs]=r,this.save()}remove_event_timer(e){var n=(this.props[Cs]||{})[e];return V(n)||(delete this.props[Cs][e],this.save()),n}get_property(e){return this.props[e]}set_property(e,n){this.props[e]=n,this.save()}}var fh=Ne("[Product Tours]"),Pa="ph_product_tours";class fS{constructor(e){this.Fi=null,this.Oi=null,this._instance=e}onRemoteConfig(e){this._instance.persistence&&this._instance.persistence.register({[Df]:!(e==null||!e.productTours)}),this.loadIfEnabled()}loadIfEnabled(){var e,n;this.Fi||(e=this._instance).config.disable_product_tours||(n=e.persistence)==null||!n.get_property(Df)||this.it((()=>this.Mi()))}it(e){var n,r;(n=te.__PosthogExtensions__)!=null&&n.generateProductTours?e():(r=te.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"product-tours",(s=>{s?fh.error("Could not load product tours script",s):e()}))}Mi(){var e;!this.Fi&&(e=te.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Fi=te.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,n){if(n===void 0&&(n=!1),!me(this.Oi)||n){var r=this._instance.persistence;if(r){var s=r.props[Pa];
9if(me(s)&&!n)return this.Oi=s,void e(s,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:i=>{var o=i.statusCode;if(o!==200||!i.json){var a="Product Tours API could not be loaded, status: "+o;return fh.error(a),void e([],{isLoaded:!1,error:a})}var l=me(i.json.product_tours)?i.json.product_tours:[];this.Oi=l,r&&r.register({[Pa]:l}),e(l,{isLoaded:!0})}})}else e(this.Oi,{isLoaded:!0})}getActiveProductTours(e){fe(this.Fi)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Fi.getActiveProductTours(e)}showProductTour(e){var n;(n=this.Fi)==null||n.showTourById(e)}previewTour(e){this.Fi?this.Fi.previewTour(e):this.it((()=>{var n;this.Mi(),(n=this.Fi)==null||n.previewTour(e)}))}dismissProductTour(){var e;(e=this.Fi)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Fi)==null||e.nextStep()}previousStep(){var e;(e=this.Fi)==null||e.previousStep()}clearCache(){var e;this.Oi=null,(e=this._instance.persistence)==null||e.unregister(Pa)}resetTour(e){var n;(n=this.Fi)==null||n.resetTour(e)}resetAllTours(){var e;(e=this.Fi)==null||e.resetAllTours()}cancelPendingTour(e){var n;(n=this.Fi)==null||n.cancelPendingTour(e)}}var vs=(function(t){return t.Activation="events",t.Cancellation="cancelEvents",t})({});(function(t){return t.Button="button",t.Tab="tab",t.Selector="selector",t})({});(function(t){return t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger",t})({});(function(t){return t.Top="top",t.Left="left",t.Right="right",t.Bottom="bottom",t})({});var Aa=(function(t){return t.Popover="popover",t.API="api",t.Widget="widget",t.ExternalSurvey="external_survey",t})({});(function(t){return t.Open="open",t.MultipleChoice="multiple_choice",t.SingleChoice="single_choice",t.Rating="rating",t.Link="link",t})({});(function(t){return t.NextQuestion="next_question",t.End="end",t.ResponseBased="response_based",t.SpecificQuestion="specific_question",t})({});(function(t){return t.Once="once",t.Recurring="recurring",t.Always="always",t})({});var Ts=(function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t})({}),Oa=(function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t.PRODUCT_TOUR_ID="$product_tour_id",t.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",t})({}),Ll=(function(t){return t.Popover="popover",t.Inline="inline",t})({}),we=Ne("[Surveys]"),c_="seenSurvey_",hS=(t,e)=>{var n="$survey_"+e+"/"+t.id;return t.current_iteration&&t.current_iteration>0&&(n="$survey_"+e+"/"+t.id+"/"+t.current_iteration),n},hh=t=>((e,n)=>{var r=""+e+n.id;return n.current_iteration&&n.current_iteration>0&&(r=""+e+n.id+"_"+n.current_iteration),r})(c_,t),dS=[Aa.Popover,Aa.Widget,Aa.API],pS={ignoreConditions:!1,ignoreDelay:!1,displayType:Ll.Popover};class Pc{constructor(){this.Ai={},this.Ai={}}on(e,n){return this.Ai[e]||(this.Ai[e]=[]),this.Ai[e].push(n),()=>{this.Ai[e]=this.Ai[e].filter((r=>r!==n))}}emit(e,n){for(var r of this.Ai[e]||[])r(n);for(var s of this.Ai["*"]||[])s(e,n)}}function Er(t,e,n){if(fe(t))return!1;switch(n){case"exact":return t===e;case"contains":var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class gS{constructor(e){this.ji=new Pc,this.Di=(n,r)=>this.Li(n,r)&&this.Ni(n,r)&&this.Ui(n,r)&&this.zi(n,r),this.Li=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=e,this.Hi=new Set,this.Bi=new Set}init(){var e;if(!V((e=this._instance)==null?void 0:e._addCaptureHook)){var n;(n=this._instance)==null||n._addCaptureHook(((r,s)=>{this.on(r,s)}))}}register(e){var n,r;if(!V((n=this._instance)==null?void 0:n._addCaptureHook)&&(e.forEach((o=>{var a,l;(a=this.Bi)==null||a.add(o),(l=o.steps)==null||l.forEach((u=>{var c;(c=this.Hi)==null||c.add(u?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var s,i=new Set;e.forEach((o=>{var a;(a=o.steps)==null||a.forEach((l=>{l!=null&&l.selector&&i.add(l?.selector)}))}
9)),(s=this._instance)==null||s.autocapture.setElementSelectors(i)}}on(e,n){var r;n!=null&&e.length!=0&&(this.Hi.has(e)||this.Hi.has(n?.event))&&this.Bi&&((r=this.Bi)==null?void 0:r.size)>0&&this.Bi.forEach((s=>{this.qi(n,s)&&this.ji.emit("actionCaptured",s.name)}))}Wi(e){this.onAction("actionCaptured",(n=>e(n)))}qi(e,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.Di(e,r))return!0;return!1}onAction(e,n){return this.ji.on(e,n)}Ni(e,n){if(n!=null&&n.url){var r,s=e==null||(r=e.properties)==null?void 0:r.$current_url;if(!s||typeof s!="string"||!Er(s,n.url,n.url_matching||"contains"))return!1}return!0}Ui(e,n){return!!this.Gi(e,n)&&!!this.Vi(e,n)&&!!this.Ji(e,n)}Gi(e,n){var r;if(n==null||!n.href)return!0;var s=this.Ki(e);if(s.length>0)return s.some((a=>Er(a.href,n.href,n.href_matching||"exact")));var i,o=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!o&&Er((i=o.match(/(?::|")href="(.*?)"/))?i[1]:"",n.href,n.href_matching||"exact")}Vi(e,n){var r;if(n==null||!n.text)return!0;var s=this.Ki(e);if(s.length>0)return s.some((u=>Er(u.text,n.text,n.text_matching||"exact")||Er(u.$el_text,n.text,n.text_matching||"exact")));var i,o,a,l=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!l&&(i=(function(u){for(var c,f=[],d=/(?::|")text="(.*?)"/g;!fe(c=d.exec(u));)f.includes(c[1])||f.push(c[1]);return f})(l),o=n.text,a=n.text_matching||"exact",i.some((u=>Er(u,o,a))))}Ji(e,n){var r,s;if(n==null||!n.selector)return!0;var i=e==null||(r=e.properties)==null?void 0:r.$element_selectors;if(i!=null&&i.includes(n.selector))return!0;var o=(e==null||(s=e.properties)==null?void 0:s.$elements_chain)||"";if(n.selector_regex&&o)try{return new RegExp(n.selector_regex).test(o)}catch{return!1}return!1}Ki(e){var n;return(e==null||(n=e.properties)==null?void 0:n.$elements)==null?[]:e?.properties.$elements}zi(e,n){return n==null||!n.properties||n.properties.length===0||l_(n.properties.reduce(((r,s)=>{var i=me(s.value)?s.value.map(String):s.value!=null?[String(s.value)]:[];return r[s.key]={values:i,operator:s.operator||"exact"},r}),{}),e?.properties)}}class _S{constructor(e){this._instance=e,this.Yi=new Map,this.Xi=new Map,this.Qi=new Map}Zi(e,n){return!!e&&l_(e.propertyFilters,n?.properties)}te(e,n){var r=new Map;return e.forEach((s=>{var i;(i=s.conditions)==null||(i=i[n])==null||(i=i.values)==null||i.forEach((o=>{if(o!=null&&o.name){var a=r.get(o.name)||[];a.push(s.id),r.set(o.name,a)}}))})),r}ie(e,n,r){var s=(r===vs.Activation?this.Yi:this.Xi).get(e),i=[];return this.ee((o=>{i=o.filter((a=>s?.includes(a.id)))})),i.filter((o=>{var a,l=(a=o.conditions)==null||(a=a[r])==null||(a=a.values)==null?void 0:a.find((u=>u.name===e));return this.Zi(l,n)}))}register(e){var n;V((n=this._instance)==null?void 0:n._addCaptureHook)||(this.re(e),this.se(e))}se(e){var n=e.filter((r=>{var s,i;return((s=r.conditions)==null?void 0:s.actions)&&((i=r.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));n.length!==0&&(this.ne==null&&(this.ne=new gS(this._instance),this.ne.init(),this.ne.Wi((r=>{this.onAction(r)}))),n.forEach((r=>{var s,i,o,a,l;r.conditions&&(s=r.conditions)!=null&&s.actions&&(i=r.conditions)!=null&&(i=i.actions)!=null&&i.values&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((a=this.ne)==null||a.register(r.conditions.actions.values),(l=r.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach((u=>{if(u&&u.name){var c=this.Qi.get(u.name);c&&c.push(r.id),this.Qi.set(u.name,c||[r.id])}})))})))}re(e){var n,r=e.filter((i=>{var o,a;return((o=i.conditions)==null?void 0:o.events)&&((a=i.conditions)==null||(a=a.events)==null||(a=a.values)==null?void 0:a.length)>0})),s=e.filter((i=>{var o,a;return((o=i.conditions)==null?void 0:o.cancelEvents)&&((a=i.conditions)==null||(a=a.cancelEvents)==null||(a=a.values)==null?void 0:a.length)>0}));(r.length!==0||s.length!==0)&&((n=this._instance)==null||n._addCaptureHook(((i,o)=>{this.onEvent(i,o)})),this.Yi=this.te(e,vs.Activation),this.Xi=this.te(e,vs.Cancellation))}onEvent(e,n){var r,s=this.oe(),i=this.ae(),o=this.le(),a=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[i])||[];if(o===e&&n&&a.length>0){var l,u;s.info("event matched, removing item from activated items",{event:e,eventPayload:n,existingActivatedItems:a});var c=(n==null||(l=n.properties)==null?void 0:l.$survey_id)||(n==null||(u=n.properties)==null?void 0:u.$product_tour_id);if(c){var f=a.indexOf(c);f>=0&&(a.splice(f,1),this.ue(a))}}else{if(this.Xi.has(e)){var d=this.ie(e,n,vs.Cancellation);d.length>0&&(s.info("cancel event matched, cancelling items",{event:e,itemsToCancel:d.map((p=>p.id))}),d.forEach((p=>{var g=a.indexOf(p.id);g>=0&&a.splice(g,1),this.he(p.id)})),this.ue(a))}if(this.Yi.has(e)){s.info("event name matched",{event:e,eventPayload:n,items:this.Yi.get(e)});var h=this.ie(e,n,vs.Activation);this.ue(a.concat(h.map((p=>p.id))||[]))}}}onAction(e){var n,r=this.ae(),s=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[r])||[];this.Qi.has(e)&&this.ue(s.concat(this.Qi.get(e)||[]))}ue(e){var n,r=this.oe(),s=this.ae(),i=[...new Set(e)].filter((o=>!this.de(o)));r.info("updating activated items",{activatedItems:i}),(n=this._instance)==null||(n=n.persistence)==null||n.register({[s]:i})}
9getActivatedIds(){var e,n=this.ae(),r=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n];return r||[]}getEventToItemsMap(){return this.Yi}ve(){return this.ne}}class vS extends _S{constructor(e){super(e)}ae(){return"$surveys_activated"}le(){return Ts.SHOWN}ee(e){var n;(n=this._instance)==null||n.getSurveys(e)}he(e){var n;(n=this._instance)==null||n.cancelPendingSurvey(e)}oe(){return we}de(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}class mS{constructor(e){this.ce=void 0,this._surveyManager=null,this.fe=!1,this.pe=[],this.ge=null,this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var n=e.surveys;if(fe(n))return we.warn("Flags not loaded yet. Not loading surveys.");var r=me(n);this.ce=r?n.length>0:n,we.info("flags response received, isSurveysEnabled: "+this.ce),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);(r!=null&&r.startsWith(c_)||r!=null&&r.startsWith("inProgressSurvey_"))&&e.push(r)}e.forEach((s=>localStorage.removeItem(s)))}loadIfEnabled(){if(!this._surveyManager)if(this.fe)we.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)we.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())we.info("Not loading surveys in cookieless mode without consent.");else{var e=te?.__PosthogExtensions__;if(e){if(!V(this.ce)||this._instance.config.advanced_enable_surveys){var n=this.ce||this._instance.config.advanced_enable_surveys;this.fe=!0;try{var r=e.generateSurveys;if(r)return void this._e(r,n);var s=e.loadExternalDependency;if(!s)return void this.me("PostHog loadExternalDependency extension not found.");s(this._instance,"surveys",(i=>{i||!e.generateSurveys?this.me("Could not load surveys script",i):this._e(e.generateSurveys,n)}))}catch(i){throw this.me("Error initializing surveys",i),i}finally{this.fe=!1}}}else we.error("PostHog Extensions not found.")}}_e(e,n){this._surveyManager=e(this._instance,n),this._surveyEventReceiver=new vS(this._instance),we.info("Surveys loaded successfully"),this.be({isLoaded:!0})}me(e,n){we.error(e,n),this.be({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.pe.push(e),this._surveyManager&&this.be({isLoaded:!0}),()=>{this.pe=this.pe.filter((n=>n!==e))}}getSurveys(e,n){if(n===void 0&&(n=!1),this._instance.config.disable_surveys)return we.info("Disabled. Not loading surveys."),e([]);var r,s=this._instance.get_property(Rl);if(s&&!n)return e(s,{isLoaded:!0});typeof Promise<"u"&&this.ge?this.ge.then((i=>{var{surveys:o,context:a}=i;return e(o,a)})):(typeof Promise<"u"&&(this.ge=new Promise((i=>{r=i}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:i=>{var o;this.ge=null;var a=i.statusCode;if(a!==200||!i.json){var l="Surveys API could not be loaded, status: "+a;we.error(l);var u={isLoaded:!1,error:l};return e([],u),void(r==null||r({surveys:[],context:u}))}var c,f=i.json.surveys||[],d=f.filter((p=>(function(g){return!(!g.start_date||g.end_date)})(p)&&((function(g){var m;return!((m=g.conditions)==null||(m=m.events)==null||(m=m.values)==null||!m.length)})(p)||(function(g){var m;return!((m=g.conditions)==null||(m=m.actions)==null||(m=m.values)==null||!m.length)})(p))));d.length>0&&((c=this._surveyEventReceiver)==null||c.register(d)),(o=this._instance.persistence)==null||o.register({[Rl]:f});var h={isLoaded:!0};e(f,h),r?.({surveys:f,context:h})}}))}be(e){for(var n of this.pe)try{if(!e.isLoaded)return n([],e);this.getSurveys(n)}catch(r){we.error("Error in survey callback",r)}}getActiveMatchingSurveys(e,n){if(n===void 0&&(n=!1),!fe(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,n);we.warn("init was not called")}ye(e){var n=null;return this.getSurveys((r=>{var s;n=(s=r.find((i=>i.id===e)))!==null&&s!==void 0?s:null})),n}we(e){if(fe(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var n=typeof e=="string"?this.ye(e):e;return n?this._surveyManager.checkSurveyEligibility(n):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(fe(this._surveyManager))return we.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var n=this.we(e);return{visible:n.eligible,disabledReason:n.reason}}canRenderSurveyAsync(e,n){return fe(this._surveyManager)?(we.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise((r=>
9{this.getSurveys((s=>{var i,o=(i=s.find((l=>l.id===e)))!==null&&i!==void 0?i:null;if(o){var a=this.we(o);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})}),n)}))}renderSurvey(e,n,r){var s;if(fe(this._surveyManager))we.warn("init was not called");else{var i=typeof e=="string"?this.ye(e):e;if(i!=null&&i.id)if(dS.includes(i.type)){var o=W?.querySelector(n);if(o)return(s=i.appearance)!=null&&s.surveyPopupDelaySeconds?(we.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var a,l;we.info("Rendering survey "+i.id+" with delay of "+((a=i.appearance)==null?void 0:a.surveyPopupDelaySeconds)+" seconds"),(l=this._surveyManager)==null||l.renderSurvey(i,o,r),we.info("Survey "+i.id+" rendered")}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,o,r);we.warn("Survey element not found")}else we.warn("Surveys of type "+i.type+" cannot be rendered in the app");else we.warn("Survey not found")}}displaySurvey(e,n){var r;if(fe(this._surveyManager))we.warn("init was not called");else{var s=this.ye(e);if(s){var i=s;if((r=s.appearance)!=null&&r.surveyPopupDelaySeconds&&n.ignoreDelay&&(i=z({},s,{appearance:z({},s.appearance,{surveyPopupDelaySeconds:0})})),n.displayType!==Ll.Popover&&n.initialResponses&&we.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),n.ignoreConditions===!1){var o=this.canRenderSurvey(s);if(!o.visible)return void we.warn("Survey is not eligible to be displayed: ",o.disabledReason)}n.displayType!==Ll.Inline?this._surveyManager.handlePopoverSurvey(i,n):this.renderSurvey(i,n.selector,n.properties)}else we.warn("Survey not found")}}cancelPendingSurvey(e){fe(this._surveyManager)?we.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}var ln=Ne("[Conversations]");class yS{constructor(e){this.xe=void 0,this._conversationsManager=null,this.Ee=!1,this.$e=null,this._instance=e}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var n=e.conversations;fe(n)||(En(n)?this.xe=n:(this.xe=n.enabled,this.$e=n),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.xe=void 0,this.$e=null}loadIfEnabled(){if(!this._conversationsManager&&!this.Ee&&!(this._instance.config.disable_conversations||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=te?.__PosthogExtensions__;if(e&&!V(this.xe)&&this.xe)if(this.$e&&this.$e.token){this.Ee=!0;try{var n=e.initConversations;if(n)return this.Se(n),void(this.Ee=!1);var r=e.loadExternalDependency;if(!r)return void this.ke("PostHog loadExternalDependency extension not found.");r(this._instance,"conversations",(s=>{s||!e.initConversations?this.ke("Could not load conversations script",s):this.Se(e.initConversations),this.Ee=!1}))}catch(s){this.ke("Error initializing conversations",s),this.Ee=!1}}else ln.error("Conversations enabled but missing token in remote config.")}}Se(e){if(this.$e)try{this._conversationsManager=e(this.$e,this._instance),ln.info("Conversations loaded successfully")}catch(n){this.ke("Error completing conversations initialization",n)}else ln.error("Cannot complete initialization: remote config is null")}ke(e,n){ln.error(e,n),this._conversationsManager=null,this.Ee=!1}show(){this._conversationsManager?this._conversationsManager.show():ln.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.xe===!0&&!Gt(this._conversationsManager)}isVisible(){var e,n;return(e=(n=this._conversationsManager)==null?void 0:n.isVisible())!==null&&e!==void 0&&e}sendMessage(e,n,r){var s=this;return Tr((function*(){return s._conversationsManager?s._conversationsManager.sendMessage(e,n,r):(ln.warn("Conversations not available yet."),null)}))()}getMessages(e,n){var r=this;return Tr((function*(){return r._conversationsManager?r._conversationsManager.getMessages(e,n
9):(ln.warn("Conversations not available yet."),null)}))()}markAsRead(e){var n=this;return Tr((function*(){return n._conversationsManager?n._conversationsManager.markAsRead(e):(ln.warn("Conversations not available yet."),null)}))()}getTickets(e){var n=this;return Tr((function*(){return n._conversationsManager?n._conversationsManager.getTickets(e):(ln.warn("Conversations not available yet."),null)}))()}getCurrentTicketId(){var e,n;return(e=(n=this._conversationsManager)==null?void 0:n.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,n;return(e=(n=this._conversationsManager)==null?void 0:n.getWidgetSessionId())!==null&&e!==void 0?e:null}}class bS{constructor(e){var n;this.Pe=!1,this.Te=!1,this._instance=e,this._instance&&(n=this._instance.config.logs)!=null&&n.captureConsoleLogs&&(this.Pe=!0)}onRemoteConfig(e){var n,r=(n=e.logs)==null?void 0:n.captureConsoleLogs;!fe(r)&&r&&(this.Pe=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Pe&&!this.Te){var e=Ne("[logs]"),n=te?.__PosthogExtensions__;if(n){var r=n.loadExternalDependency;r?r(this._instance,"logs",(s=>{var i;s||(i=n.logs)==null||!i.initializeLogs?e.error("Could not load logs script",s):(n.logs.initializeLogs(this._instance),this.Te=!0)})):e.error("PostHog loadExternalDependency extension not found.")}else e.error("PostHog Extensions not found.")}}}var dh=Ne("[RateLimiter]");class wS{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((s=>{dh.info((s||"events")+" is quota limited."),this.serverLimits[s]=new Date().getTime()+6e4}))}catch(s){return void dh.warn('could not rate limit - continuing. Error: "'+s?.message+'"',{text:r})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var n,r,s;e===void 0&&(e=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:o}=this,a=new Date().getTime(),l=(n=(r=this.instance.persistence)==null?void 0:r.get_property(Al))!==null&&n!==void 0?n:{tokens:i,last:a};l.tokens+=(a-l.last)/1e3*o,l.last=a,l.tokens>i&&(l.tokens=i);var u=l.tokens<1;return u||e||(l.tokens=Math.max(0,l.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+o+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(s=this.instance.persistence)==null||s.set_property(Al,l),{isRateLimited:u,remainingTokens:l.tokens}}isServerRateLimited(e){var n=this.serverLimits[e||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var nr=Ne("[RemoteConfig]");class ES{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=te._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Ie(e){var n,r;(n=te.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=te.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):(nr.error("PostHog Extensions not found. Cannot load remote config."),e())}Ce(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:n=>{e(n.json)}})}load(){try{if(this.remoteConfig)return nr.info("Using preloaded remote config",this.remoteConfig),void this.wi(this.remoteConfig);if(this._instance.M())return void nr.warn("Remote config is disabled. Falling back to local config.");this.Ie((e=>{if(!e)return nr.info("No config found after loading remote JS config. Falling back to JSON."),void this.Ce((n=>{this.wi(n)}));this.wi(e)}))}catch(e){nr.error("Error loading remote config",e)}}wi(e){e?this._instance.config.__preview_remote_config?(this._instance.wi(e),e.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):nr.info("__preview_remote_config is disabled. Logging config instead",e):nr.error("Failed to fetch remote config from PostHog.")}}var Dl=3e3;class SS{constructor(e,n){this.Re=!0,this.Fe=[],this.Oe=tn(n?.flush_interval_ms||Dl,250,5e3,K.createLogger("flush interval"),Dl),this.Me=e}enqueue(e){this.Fe.push(e),this.Ae||this.je()}unload(){this.De();var e=this.Fe.length>0?this.Le():{},n=Object.values(e);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.Me(z({},r,{transport:"sendBeacon"}))}))}enable(){this.Re=!1,this.je()}je(){var e=this;this.Re||(this.Ae=setTimeout((()=>
9{if(this.De(),this.Fe.length>0){var n=this.Le(),r=function(){var i=n[s],o=new Date().getTime();i.data&&me(i.data)&&Ce(i.data,(a=>{a.offset=Math.abs(a.timestamp-o),delete a.timestamp})),e.Me(i)};for(var s in n)r()}}),this.Oe))}De(){clearTimeout(this.Ae),this.Ae=void 0}Le(){var e={};return Ce(this.Fe,(n=>{var r,s=n,i=(s?s.batchKey:null)||s.url;V(e[i])&&(e[i]=z({},s,{data:[]})),(r=e[i].data)==null||r.push(s.data)})),this.Fe=[],e}}var CS=["retriesPerformedSoFar"];class xS{constructor(e){this.Ne=!1,this.Ue=3e3,this.Fe=[],this._instance=e,this.Fe=[],this.ze=!0,!V(P)&&"onLine"in P.navigator&&(this.ze=P.navigator.onLine,this.He=()=>{this.ze=!0,this.Lt()},this.Be=()=>{this.ze=!1},Ue(P,"online",this.He),Ue(P,"offline",this.Be))}get length(){return this.Fe.length}retriableRequest(e){var{retriesPerformedSoFar:n}=e,r=sg(e,CS);xr(n)&&(r.url=po(r.url,{retry_count:n})),this._instance._send_request(z({},r,{callback:s=>{s.statusCode!==200&&(s.statusCode<400||s.statusCode>=500)&&(n??0)<10?this.qe(z({retriesPerformedSoFar:n},r)):r.callback==null||r.callback(s)}}))}qe(e){var n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var r=(function(o){var a=3e3*Math.pow(2,o),l=a/2,u=Math.min(18e5,a),c=(Math.random()-.5)*(u-l);return Math.ceil(u+c)})(n),s=Date.now()+r;this.Fe.push({retryAt:s,requestOptions:e});var i="Enqueued failed request for retry in "+r;navigator.onLine||(i+=" (Browser is offline)"),K.warn(i),this.Ne||(this.Ne=!0,this.We())}We(){if(this.Ge&&clearTimeout(this.Ge),this.Fe.length===0)return this.Ne=!1,void(this.Ge=void 0);this.Ge=setTimeout((()=>{this.ze&&this.Fe.length>0&&this.Lt(),this.We()}),this.Ue)}Lt(){var e=Date.now(),n=[],r=this.Fe.filter((i=>i.retryAt<e||(n.push(i),!1)));if(this.Fe=n,r.length>0)for(var{requestOptions:s}of r)this.retriableRequest(s)}unload(){for(var{requestOptions:e}of(this.Ge&&(clearTimeout(this.Ge),this.Ge=void 0),this.Ne=!1,V(P)||(this.He&&(P.removeEventListener("online",this.He),this.He=void 0),this.Be&&(P.removeEventListener("offline",this.Be),this.Be=void 0)),this.Fe))try{this._instance._send_request(z({},e,{transport:"sendBeacon"}))}catch(n){K.error(n)}this.Fe=[]}}class kS{constructor(e){this.Ve=()=>{var n,r,s,i;this.Je||(this.Je={});var o=this.scrollElement(),a=this.scrollY(),l=o?Math.max(0,o.scrollHeight-o.clientHeight):0,u=a+(o?.clientHeight||0),c=o?.scrollHeight||0;this.Je.lastScrollY=Math.ceil(a),this.Je.maxScrollY=Math.max(a,(n=this.Je.maxScrollY)!==null&&n!==void 0?n:0),this.Je.maxScrollHeight=Math.max(l,(r=this.Je.maxScrollHeight)!==null&&r!==void 0?r:0),this.Je.lastContentY=u,this.Je.maxContentY=Math.max(u,(s=this.Je.maxContentY)!==null&&s!==void 0?s:0),this.Je.maxContentHeight=Math.max(c,(i=this.Je.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=e}getContext(){return this.Je}resetContext(){var e=this.Je;return setTimeout(this.Ve,0),e}startMeasuringScrollPosition(){Ue(P,"scroll",this.Ve,{capture:!0}),Ue(P,"scrollend",this.Ve,{capture:!0}),Ue(P,"resize",this.Ve)}scrollElement(){if(!this._instance.config.scroll_root_selector)return P?.document.documentElement;var e=me(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var n of e){var r=P?.document.querySelector(n);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return P&&(P.scrollY||P.pageYOffset||P.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return P&&(P.scrollX||P.pageXOffset||P.document.documentElement.scrollLeft)||0}}var RS=t=>Qg(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class ph{constructor(e,n,r,s){this.Ke=i=>{var o=this.Ye();if(!o||o.sessionId!==i){var a={sessionId:i,props:this.Xe(this._instance)};this.Qe.register({[Pl]:a})}},this._instance=e,this.Ze=n,this.Qe=r,this.Xe=s||RS,this.Ze.onSessionId(this.Ke)}Ye(){return this.Qe.props[Pl]}getSetOnceProps(){var e,n=(e=this.Ye())==null?void 0:e.props;return n?"r"in n?e_(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var e={};return Ce(Sc(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),e["$session_entry_"+vl(r)]=n})),e}}var Ma=Ne("[SessionId]");class gh{on(e,n){return this.tr.on(e,n)}constructor(e,n,r){var s;if(this.ir=[],this.er=void 0,this.tr=new Pc,this.rr=(c,f)=>!(!xr(c)||!xr(f))&&Math.abs(c-f)>
vendor: 6,614 bytes, line 9
9this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode==="always")throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.R=e.config,this.Qe=e.persistence,this.sr=void 0,this.nr=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ar=n||Vn,this.lr=r||Vn;var i=this.R.persistence_name||this.R.token,o=this.R.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*tn(o,60,36e3,Ma.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ur(),this.hr="ph_"+i+"_window_id",this.dr="ph_"+i+"_primary_window_exists",this.vr()){var a=ze.W(this.hr),l=ze.W(this.dr);a&&!l?this.sr=a:ze.V(this.hr),ze.G(this.dr,!0)}if((s=this.R.bootstrap)!=null&&s.sessionID)try{var u=(c=>{var f=c.replace(/-/g,"");if(f.length!==32)throw new Error("Not a valid UUID");if(f[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(f.substring(0,12),16)})(this.R.bootstrap.sessionID);this.cr(this.R.bootstrap.sessionID,new Date().getTime(),u)}catch(c){Ma.error("Invalid sessionID in bootstrap",c)}this.pr()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return V(this.ir)&&(this.ir=[]),this.ir.push(e),this.nr&&e(this.nr,this.sr),()=>{this.ir=this.ir.filter((n=>n!==e))}}vr(){return this.R.persistence!=="memory"&&!this.Qe.Pi&&ze.H()}gr(e){e!==this.sr&&(this.sr=e,this.vr()&&ze.G(this.hr,e))}_r(){return this.sr?this.sr:this.vr()?ze.W(this.hr):null}cr(e,n,r){e===this.nr&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.nr=e,this.Qe.register({[ro]:[n,e,r]}))}mr(){var e=this.Qe.props[ro];return me(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.cr(null,null,null)}destroy(){clearTimeout(this.br),this.br=void 0,this.er&&P&&(P.removeEventListener("beforeunload",this.er,{capture:!1}),this.er=void 0),this.ir=[]}pr(){this.er=()=>{this.vr()&&ze.V(this.dr)},Ue(P,"beforeunload",this.er,{capture:!1})}checkAndGetSessionAndWindowId(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=null),this.R.cookieless_mode==="always")throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[s,i,o]=this.mr(),a=this._r(),l=xr(o)&&Math.abs(r-o)>864e5,u=!1,c=!i,f=!c&&!e&&this.rr(r,s);c||f||l?(i=this.ar(),a=this.lr(),Ma.info("new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:c,activityTimeout:f,sessionPastMaximumLength:l}}),o=r,u=!0):a||(a=this.lr(),u=!0);var d=xr(s)&&e&&!l?s:r,h=xr(o)?o:new Date().getTime();return this.gr(a),this.cr(i,d,h),e||this.ur(),u&&this.ir.forEach((p=>p(i,a,u?{noSessionId:c,activityTimeout:f,sessionPastMaximumLength:l}:void 0))),{sessionId:i,windowId:a,sessionStartTimestamp:h,changeReason:u?{noSessionId:c,activityTimeout:f,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:s}}ur(){clearTimeout(this.br),this.br=setTimeout((()=>{var[e]=this.mr();if(this.rr(new Date().getTime(),e)){var n=this.nr;this.resetSessionId(),this.tr.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var TS=["$set_once","$set"],Fn=Ne("[SiteApps]");class PS{constructor(e){this._instance=e,this.yr=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}wr(e,n){if(n){var r=this.globalsForEvent(n);this.yr.push(r),this.yr.length>1e3&&(this.yr=this.yr.slice(10))}}get siteAppLoaders(){var e;return(e=te._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.wr.bind(this));this.Er=()=>{e(),this.yr=[],this.Er=void 0}}}globalsForEvent(e){var n,r,s,i,o,a,l;if(!e)throw new Error("Event payload is required");var u={},c=this._instance.get_property("$groups")||[],f=this._instance.get_property("$stored_group_properties")||{};for(var[d,h]of Object.entries(f))u[d]={id:c[d],type:d,properties:h};var{$set_once:p,$set:g}=e;return{event:z({},sg(e,TS),{properties:z({},e.properties,g?{$set:z({},(n=(r=e.properties)==null?void 0:r.$set)!==null&&n!==void 0?n:{},g)}:{},p?{$set_once:z({},(s=(i=e.properties)==null?void 0:i.$set_once)!==null&&s!==void 0?s:{},p)}:{}),elements_chain:(o=(a=e.properties)==null?void 0:a.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(l=e.properties)==null?void 0:l.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(e){var n=this.apps[e.id],r=()=>{var a;!n.errored&&this.yr.length&&(Fn.info("Processing "+this.yr.length+" events for site app with id "+e.id),this.yr.forEach((l=>n.processEvent==null?void 0:n.processEvent(l))),n.processedBuffer=!0),Object.values(this.apps).every((l=>l.processedBuffer||l.errored))&&((a=this.Er)==null||a.call(this))},s=!1,i=a=>{n.errored=!a,n.loaded=!0,Fn.info("Site app with id "+e.id+" "+(a?"loaded":"errored")),s&&r()};try{var{processEvent:o}=e.init({posthog:this._instance,callback:a=>{i(a)}});o&&(n.processEvent=o),s=!0}catch(a){Fn.error("Error while initializing PostHog app with config id "+e.id,a),i(!1)}if(s&&n.loaded)try{r()}catch(a){Fn.error("Error while processing buffered events PostHog app with config id "+e.id,a),n.errored=!0}}$r(){var e=this.siteAppLoaders||[];for(var n of e)this.apps[n.id]={id:n.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of e)this.setupSiteApp(r)}Sr(e){if(Object.keys(this.apps).length!==0){var n=this.globalsForEvent(e);for(var r of Object.values(this.apps))try{r.processEvent==null||r.processEvent(n)}catch(s){Fn.error("Error while processing event "+e.event+" for site app "+r.id,s)}}}onRemoteConfig(e){var n,r,s,i=this;if((n=this.siteAppLoaders)!=null&&n.length)return this.isEnabled?(this.$r(),void this._instance.on("eventCaptured",(u=>this.Sr(u)))):void Fn.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((r=this.Er)==null||r.call(this),(s=e.siteApps)!=null&&s.length)if(this.isEnabled){var o=function(u){var c;te["__$$ph_site_app_"+u]=i._instance,(c=te.__PosthogExtensions__)==null||c.loadSiteApp==null||c.loadSiteApp(i._instance,l,(f=>{if(f)return Fn.error("Error while initializing PostHog app with config id "+u,f)}))};for(var{id:a,url:l}of e.siteApps)o(a)}else Fn.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var u_=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&xf(n,e))return!0;try{var r=t?.userAgentData;if(r!=null&&r.brands&&r.brands.some((s=>xf(s?.brand,e))))return!0}catch{}
9return!!t.webdriver},Ps=(function(t){return t.US="us",t.EU="eu",t.CUSTOM="custom",t})({}),_h="i.posthog.com";class AS{constructor(e){this.kr={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,n=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+_h,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.kr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.kr[this.apiHost]=Ps.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.kr[this.apiHost]=Ps.EU:this.kr[this.apiHost]=Ps.CUSTOM),this.kr[this.apiHost]}endpointFor(e,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),e==="ui")return this.uiHost+n;if(e==="flags")return this.flagsApiHost+n;if(this.region===Ps.CUSTOM)return this.apiHost+n;var r=_h+n;switch(e){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var OS={icontains:(t,e)=>!!P&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!P&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!P&&go(e.href,t),not_regex:(t,e)=>!!P&&!go(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class tt{constructor(e){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((s=>{tt.Pr("retrieved web experiments from the server"),n.Tr=new Map,s.forEac
9h((i=>{if(i.feature_flag_key){var o;n.Tr&&(tt.Pr("setting flag key ",i.feature_flag_key," to web experiment ",i),(o=n.Tr)==null||o.set(i.feature_flag_key,i));var a=n._instance.getFeatureFlag(i.feature_flag_key);Ge(a)&&i.variants[a]&&n.Ir(i.name,a,i.variants[a].transforms)}else if(i.variants)for(var l in i.variants){var u=i.variants[l];tt.Cr(u)&&n.Ir(i.name,l,u.transforms)}}))}),r)},this._instance=e,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}onFeatureFlags(e){if(this._is_bot())tt.Pr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(fe(this.Tr))return this.Tr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();tt.Pr("applying feature flags",e),e.forEach((n=>{var r;if(this.Tr&&(r=this.Tr)!=null&&r.has(n)){var s,i=this._instance.getFeatureFlag(n),o=(s=this.Tr)==null?void 0:s.get(n);i&&o!=null&&o.variants[i]&&this.Ir(o.name,i,o.variants[i].transforms)}}))}}previewWebExperiment(){var e=tt.getWindowLocation();if(e!=null&&e.search){var n=co(e?.search,"__experiment_id"),r=co(e?.search,"__experiment_variant");n&&r&&(tt.Pr("previewing web experiments "+n+" && "+r),this.getWebExperiments((s=>{this.Rr(parseInt(n),r,s)}),!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,n,r){if(this._instance.config.disable_web_experiments&&!r)return e([]);var s=this._instance.get_property("$web_experiments");if(s&&!n)return e(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:i=>{if(i.statusCode!==200||!i.json)return e([]);var o=i.json.experiments||[];return e(o)}})}Rr(e,n,r){var s=r.filter((i=>i.id===e));s&&s.length>0&&(tt.Pr("Previewing web experiment ["+s[0].name+"] with variant ["+n+"]"),this.Ir(s[0].name,n,s[0].variants[n].transforms))}static Cr(e){return!fe(e.conditions)&&tt.Fr(e)&&tt.Or(e)}static Fr(e){var n;if(fe(e.conditions)||fe((n=e.conditions)==null?void 0:n.url))return!0;var r,s,i,o=tt.getWindowLocation();return!!o&&((r=e.conditions)==null||!r.url||OS[(s=(i=e.conditions)==null?void 0:i.urlMatchType)!==null&&s!==void 0?s:"icontains"](e.conditions.url,o))}
9static getWindowLocation(){return P?.location}static Or(e){var n;if(fe(e.conditions)||fe((n=e.conditions)==null?void 0:n.utm))return!0;var r=Yg();if(r.utm_source){var s,i,o,a,l,u,c,f,d=(s=e.conditions)==null||(s=s.utm)==null||!s.utm_campaign||((i=e.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==r.utm_campaign,h=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_source||((a=e.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==r.utm_source,p=(l=e.conditions)==null||(l=l.utm)==null||!l.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==r.utm_medium,g=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_term||((f=e.conditions)==null||(f=f.utm)==null?void 0:f.utm_term)==r.utm_term;return d&&p&&g&&h}return!1}static Pr(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];K.info("[WebExperiments] "+e,r)}Ir(e,n,r){this._is_bot()?tt.Pr("Refusing to render web experiment since the viewer is a likely bot"):n!=="control"?r.forEach((s=>{if(s.selector){var i;tt.Pr("applying transform of variant "+n+" for experiment "+e+" ",s);var o=(i=document)==null?void 0:i.querySelectorAll(s.selector);o?.forEach((a=>{var l=a;s.html&&(l.innerHTML=s.html),s.css&&l.setAttribute("style",s.css)}))}})):tt.Pr("Control variants leave the page unmodified.")}_is_bot(){return xt&&this._instance?u_(xt,this._instance.config.custom_blocked_useragents):void 0}}var MS=Ne("[PostHog ExternalIntegrations]"),IS={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class $S{constructor(e){this._instance=e}it(e,n){var r;(r=te.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,e,(s=>{if(s)return MS.error("failed to load script",s);n()}))}startIfEnabledOrStop(){var e=this,n=function(o){var a,l,u;!s||(a=te.__PosthogExtensions__)!=null&&(a=a.integrations)!=null&&a[o]||e.it(IS[o],(()=>{var c;(c=te.__PosthogExtensions__)==null||(c=c.integrations)==null||(c=c[o])==null||c.start(e._instance)})),!s&&(l=te.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[o]&&((u=te.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[o])==null||u.stop())};for(var[r,s]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;n(r)}}}var Hl="[SessionRecording]",ms=Ne(Hl);class vh{get started(){var e;return!((e=this.Mr)==null||!e.isStarted)}get status(){return this.Mr?this.Mr.status:this.Ar&&!this.jr?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Ar=!1,this.Dr=void 0,this._instance=e,!this._instance.sessionManager)throw ms.error("started without valid sessionManager"),new Error(Hl+" started without valid sessionManager. This is a bug.");if(this._instance.config.cookieless_mode==="always")throw new Error(Hl+' cannot be used with cookieless_mode="always"')}get jr(){var e,n=!((e=this._instance.get_property(ma))==null||!e.enabled),r=!this._instance.config.disable_session_recording,s=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return P&&n&&r&&!s}startIfEnabledOrStop(e){var n;if(!this.jr||(n=this.Mr)==null||!n.isStarted){var r=!V(Object.assign)&&!V(Array.from);this.jr&&r?(this.Lr(e),ms.info("starting")):this.stopRecording()}}Lr(e){var n,r,s;this.jr&&(te!=null&&(n=te.__PosthogExtensions__)!=null&&(n=n.rrweb)!=null&&n.record&&(r=te.__PosthogExtensions__)!=null&&r.initSessionRecording?this.Nr(e):(s=te.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this._instance,this.Ur,(i=>{if(i)return ms.error("could not load recorder",i);this.Nr(e)})))}stopRecording(){var e,n;(e=this.Dr)==null||e.call(this),this.Dr=void 0,(n=this.Mr)==null||n.stop()}zr(){var e;(e=this._instance.persistence)==null||e.unregister(Ag)}Hr(e){if(this._instance.persistence){var n,r,s=this._instance.persistence,i=()=>{var o=e.sessionRecording===!1?void 0:e.sessionRecording,a=o?.sampleRate,l=fe(a)?null:parseFloat(a);fe(l)&&this.zr();var u=o?.minimumDurationMilliseconds;s.register({[ma]:z({cache_timestamp:Date.now(),enabled:!!o},o,{networkPayloadCapture:z({capturePerformance:e.capturePerformance},o?.networkPayloadCapture),canvasRecording:{enabled:o?.recordCanvas,fps:o?.canvasFps,quality:o?.canvasQuality},sampleRate:l,minimumDurationMilliseconds:V(u)?null:u,endpoint:o?.endpoint,triggerMatchType:o?.triggerMatchType,masking:o?.masking,urlTriggers:o?.urlTriggers})})};i(),(n=this.Dr)==null||n.call(this),this.Dr=(r=this._instance.sessionManager)==null?void 0:r.onSessionId(i)}}onRemoteConfig(e){"sessionRecording"in e?e.sessionRecording!==!1?(this.Hr(e),this.Ar=!0,this.startIfEnabledOrStop()):this.Ar=!0:ms.info("skipping remote config with no sessionRecording",e)}log(e,n){var r;n===void 0&&(n="log"),(r=this.Mr)!=null&&r.log?this.Mr.log(e,n):ms.warn("log called before recorder was ready")}get Ur(){var e,n,r=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(ma);return(r==null||(n=r.scriptConfig)==null?void 0:n.script)||"lazy-recorder"}Nr(e){var n,r;if((n=te.__PosthogExtensions__)==null||!n.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.Mr||(this.Mr=(r=te.__PosthogExtensions__)==null?void 0:r.initSessionRecording(this._instance),this.Mr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.Mr.start(e)}onRRwebEmit(e){var n;(n=this.Mr)==null||n.onRRwebEmit==null||n.onRRwebEmit(e)}overrideLinkedFlag(){var e,n;this.Mr||(n=this._instance.persistence)==null||n.register({$replay_override_linked_flag:!0}),(e=this.Mr)==null||e.overrideLinkedFlag()}overrideSampling(){var e,n;this.Mr||(n=this._instance.persistence)==null||n.register({$replay_override_sampling:!0}),(e=this.Mr)==null||e.overrideSampling()}overrideTrigger(e){var n,r;this.Mr||(r=this._instance.persistence)==null||r.register({[e==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}
vendor: 4,396 bytes, line 9
9),(n=this.Mr)==null||n.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.Mr)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,n){var r;return!((r=this.Mr)==null||!r.tryAddCustomEvent(e,n))}}var Us={},jl=()=>{},kr="posthog",f_=!X3&>?.indexOf("MSIE")===-1&>?.indexOf("Mozilla")===-1,mh=t=>{var e;return z({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:r3(W?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:jl,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,debug:Ye&&Ge(Ye?.search)&&Ye.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!0,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(P==null||(e=P.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:n=>{var r="Bad HTTP status: "+n.statusCode+" "+n.text;K.error(r)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Dl},error_tracking:{},_onCapture:jl,__preview_eager_load_replay:!1},(n=>({rageclick:!(n&&n>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(n&&n>="2025-05-24")||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},yh=t=>{var e={};V(t.process_person)||(e.person_profiles=t.process_person),V(t.xhr_headers)||(e.request_headers=t.xhr_headers),V(t.cookie_name)||(e.persistence_name=t.cookie_name),V(t.disable_cookie)||(e.disable_persistence=t.disable_cookie),V(t.store_google)||(e.save_campaign_params=t.store_google),V(t.verbose)||(e.debug=t.verbose);var n=He({},e,t);return me(t.property_blacklist)&&(V(t.property_denylist)?n.property_denylist=t.property_blacklist:me(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:K.error("Invalid value for property_denylist config: "+t.property_denylist)),n};class FS{constructor(){this.__forceAllowLocalhost=!1}get Br(){return this.__forceAllowLocalhost}set Br(e){K.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class jo{get decideEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){this.webPerformance=new FS,this.qr=!1,this.version=un.LIB_VERSION,this.bi=new Pc,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=mh(),this.SentryIntegration=M3,this.sentryIntegration=e=>(function(n,r){var s=zg(n,r);return{name:Kg,processEvent:i=>s(i)}})(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Wr=!1,this.Gr=null,this.Vr=null,this.Jr=null,this.featureFlags=new cS(this),this.toolbar=ne
9w $3(this),this.scrollManager=new kS(this),this.pageViewManager=new eh(this),this.surveys=new mS(this),this.conversations=new yS(this),this.logs=new bS(this),this.experiments=new tt(this),this.exceptions=new Q3(this),this.rateLimiter=new wS(this),this.requestRouter=new AS(this),this.consent=new k3(this),this.externalIntegrations=new $S(this),this.people={set:(e,n,r)=>{var s=Ge(e)?{[e]:n}:e;this.setPersonProperties(s),r?.({})},set_once:(e,n,r)=>{var s=Ge(e)?{[e]:n}:e;this.setPersonProperties(void 0,s),r?.({})}},this.on("eventCaptured",(e=>K.info('send "'+e?.event+'"',e)))}init(e,n,r){if(r&&r!==kr){var s,i=(s=Us[r])!==null&&s!==void 0?s:new jo;return i._init(e,n,r),Us[r]=i,Us[kr][r]=i,i}return this._init(e,n,r)}_init(e,n,r){var s;if(n===void 0&&(n={}),V(e)||ml(e))return K.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.Kr(n.debug),this.Yr=n,this.Xr=[],n.person_profiles&&(this.Vr=n.person_profiles),this.set_config(He({},mh(n.defaults),yh(n),{name:r,token:e})),this.config.on_xhr_error&&K.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:vn.GZipJS;var i=this.Qr();this.persistence=new Ta(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Ta(z({},this.config,{persistence:"sessionStorage"}),i);var o=z({},this.persistence.props),a=z({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zr=new SS((b=>this.ts(b)),this.config.request_queue_config),this.es=new xS(this),this.__request_queue=[];var l=this.config.cookieless_mode==="always"||this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new gh(this),this.sessionPropsManager=new ph(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(K.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.rs(l)}),0)):(K.info("Initializing extensions synchronously"),this.rs(l)),un.DEBUG=un.DEBUG||this.config.debug,un.DEBUG&&K.info("Starting in debug mode",{this:this,config:n,thisC:z({},this.config),p:o,s:a}),((s=n.bootstrap)==null?void 0:s.distinctID)!==void 0){var u,c,f=this.config.get_device_id(Vn()),d=(u=n.bootstrap)!=null&&u.isIdentifiedID?f:n.bootstrap.distinctID;this.persistence.set_property(fn,(c=n.bootstrap)!=null&&c.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:n.bootstrap.distinctID,$device_id:d})}if(this.ss()){var h,p,g=Object.keys(((h=n.bootstrap)==null?void 0:h.featureFlags)||{}).filter((b=>{var _;return!((_=n.bootstrap)==null||(_=_.featureFlags)==null||!_[b])})).reduce(((b,_)=>{var y;return b[_]=((y=n.bootstrap)==null||(y=y.featureFlags)==null?void 0:y[_])||!1,b}),{}),m=Object.keys(((p=n.bootstrap)==null?void 0:p.featureFlagPayloads)||{}).filter((b=>g[b])).reduce(((b,_)=>{var y,E;return(y=n.bootstrap)!=null&&(y=y.featureFlagPayloads)!=null&&y[_]&&(b[_]=(E=n.bootstrap)==null||(E=E.featureFlagPayloads)==null?void 0:E[_]),b}),{});this.featureFlags.receivedFeatureFlags({featureFlags:g,featureFlagPayloads:m})}if(l)this.register_once({distinct_id:us,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(Vn());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(fn,"anonymous")}return Ue(P,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),n.segment?O3(this,(()=>this.ns())):this.ns(),qn(this.config._onCapture)&&this.config._onCapture!==jl&&(K.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(b=>this.config._onCapture(b.event,b)))),this.config.ip&&K.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}rs(e){var n=performance.now();this.historyAutocapture=new A3(this),this.historyAutocapture.startIfEnabled();var r=[];r.push((()=>{new N3(this).startIfEnabledOrStop()})),r.push((()=>{var s;this.siteApps=new PS(this),(s=this.siteApps)==null||s.init()})),e||r.push((()=>{this.sessionRecording=new vh(this),this.sessionRecording.startIfEnabledOrStop()})),this.config.disable_scroll_properties||r.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),r.push((()=>{this.autocapture=new m3(this),this.autocapture.startIfEnabled()})),r.push((()=>{this.surveys.loadIfEnabled()})),r.push((()=>{this.logs.loadIfEnabled()})),r.push((()=>{this.conversations.loadIfEnabled()})),r.push((()=>{this.productTours=new fS(this),this.productTours.loadIfEnabled()})),r.push((()=>{this.heatmaps=new V3(this),this.heatmaps.startIfEnabled()})),r.push((()=>{this.webVitalsAutocapture=new U3(this)})),r.push((()=>
9{this.exceptionObserver=new P3(this),this.exceptionObserver.startIfEnabledOrStop()})),r.push((()=>{this.deadClicksAutocapture=new Gg(this,T3),this.deadClicksAutocapture.startIfEnabled()})),r.push((()=>{if(this.os){var s=this.os;this.os=void 0,this.wi(s)}})),this.ls(r,n)}ls(e,n){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&e.length>0)return void setTimeout((()=>{this.ls(e,n)}),0);var r=e.shift();if(r)try{r()}catch(i){K.error("Error initializing extension:",i)}}var s=Math.round(performance.now()-n);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:s}),this.config.__preview_deferred_init_extensions&&K.info("PostHog extensions initialized ("+s+"ms)")}wi(e){var n,r,s,i,o,a,l,u,c;if(!W||!W.body)return K.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.wi(e)}),500);this.config.__preview_deferred_init_extensions&&(this.os=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=ue(e.supportedCompression,vn.GZipJS)?vn.GZipJS:ue(e.supportedCompression,vn.Base64)?vn.Base64:void 0),(n=e.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Vr?this.Vr:"identified_only"}),(r=this.siteApps)==null||r.onRemoteConfig(e),(s=this.sessionRecording)==null||s.onRemoteConfig(e),(i=this.autocapture)==null||i.onRemoteConfig(e),(o=this.heatmaps)==null||o.onRemoteConfig(e),this.surveys.onRemoteConfig(e),this.logs.onRemoteConfig(e),this.conversations.onRemoteConfig(e),(a=this.productTours)==null||a.onRemoteConfig(e),(l=this.webVitalsAutocapture)==null||l.onRemoteConfig(e),(u=this.exceptionObserver)==null||u.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),(c=this.deadClicksAutocapture)==null||c.onRemoteConfig(e)}ns(){try{this.config.loaded(this)}catch(r){K.critical("`loaded` function failed",r)}if(this.us(),this.config.internal_or_test_user_hostname&&Ye!=null&&Ye.hostname){var e=Ye.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?e===n:n.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.config.cookieless_mode==="always")&&this.hs()}),1),new ES(this).load(),this.featureFlags.flags()}us(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Zr)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Gn(this.__request_queue,(e=>this.ts(e))),this.__request_queue=[],this.us()}_handle_unload(){var e,n;this.surveys.handlePageUnload(),this.config.request_batching?(this.ds()&&this.capture("$pageleave"),(e=this.Zr)==null||e.unload(),(n=this.es)==null||n.unload()):this.ds()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(f_?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=po(e.url,{ip:this.config.ip?1:0}),e.headers=z({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(n=>{var r,s,i,o=z({},n);o.timeout=o.timeout||6e4,o.url=po(o.url,{_:new Date().getTime().toString(),ver:un.LIB_VERSION,compression:o.compression});var a=(r=o.transport)!==null&&r!==void 0?r:"fetch",l=$i.filter((c=>!o.disableTransport||!c.transport||!o.disableTransport.includes(c.transport))),u=(s=(i=Rg(l,(c=>c.transport===a)))==null?void 0:i.method)!==null&&s!==void 0?s:l[0].method;if(!u)throw new Error("No available transport method");u(o)})(z({},e,{callback:n=>{var r,s;this.rateLimiter.checkForLimiting(n),n.statusCode>=400&&((r=(s=this.config).on_request_error)==null||r.call(s,n)),e.callback==null||e.callback(n)}}))))}
vendor: 16,118 bytes, line 9
9ts(e){this.es?this.es.retriableRequest(e):this._send_request(e)}_execute_array(e){var n,r=[],s=[],i=[];Gn(e,(a=>{a&&(n=a[0],me(n)?i.push(a):qn(a)?a.call(this):me(a)&&n==="alias"?r.push(a):me(a)&&n.indexOf("capture")!==-1&&qn(this[n])?i.push(a):s.push(a))}));var o=function(a,l){Gn(a,(function(u){if(me(u[0])){var c=l;Ce(u,(function(f){c=c[f[0]].apply(c,f.slice(1))}))}else this[u[0]].apply(this,u.slice(1))}),l)};o(r,this),o(s,this),o(i,this)}ss(){var e,n;return((e=this.config.bootstrap)==null?void 0:e.featureFlags)&&Object.keys((n=this.config.bootstrap)==null?void 0:n.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,n,r){var s;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zr){if(this.is_capturing())if(!V(e)&&Ge(e)){var i=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(i&&!this.config.__preview_capture_bot_pageviews)){var o=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(o==null||!o.isRateLimited){n!=null&&n.$current_url&&!Ge(n?.$current_url)&&(K.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var a=new Date,l=r?.timestamp||a,u=Vn(),c={uuid:u,event:e,properties:this.calculateEventProperties(e,n||{},l,u)};e==="$pageview"&&this.config.__preview_capture_bot_pageviews&&i&&(c.event="$bot_pageview",c.properties.$browser_type="bot"),o&&(c.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),r?.$set&&(c.$set=r?.$set);var f,d=e!=="$groupidentify",h=this.vs(r?.$set_once,d);if(h&&(c.$set_once=h),(c=t3(c,r!=null&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=l,V(r?.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=a),e===Ts.DISMISSED||e===Ts.SENT){var p=n?.[Oa.SURVEY_ID],g=n?.[Oa.SURVEY_ITERATION];f={id:p,current_iteration:g},localStorage.getItem(hh(f))||localStorage.setItem(hh(f),"true"),c.$set=z({},c.$set,{[hS({id:p,current_iteration:g},e===Ts.SENT?"responded":"dismissed")]:!0})}else e===Ts.SHOWN&&(c.$set=z({},c.$set,{[Oa.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));var m=z({},c.properties.$set,c.$set);if(Pr(m)||this.setPersonPropertiesForFlags(m),!fe(this.config.before_send)){var S=this.cs(c);if(!S)return;c=S}this.bi.emit("eventCaptured",c);var b={method:"POST",url:(s=r?._url)!==null&&s!==void 0?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:r?._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.ts(b):this.Zr.enqueue(b),c}K.critical("This capture call is ignored due to client rate limiting.")}}else K.error("No event name provided to posthog.capture")}else K.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(n=>e(n.event,n)))}calculateEventProperties(e,n,r,s,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var o=i?void 0:this.persistence.remove_event_timer(e),a=z({},n);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,(this.config.cookieless_mode=="always"||this.config.cookieless_mode=="on_reject"&&this.consent.isExplicitlyOptedOut())&&(a.$cookieless_mode=!0),e==="$snapshot"){var l=z({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=l.distinct_id,(!Ge(a.distinct_id)&&!Tn(a.distinct_id)||ml(a.distinct_id))&&K.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var u,c=j3(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:f,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());a.$session_id=f,a.$window_id=d}this.sessionPropsManager&&He(a,this.sessionPropsManager.getSessionProps());try{var h;this.sessionRecording&&He(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(h=this.es)==null?void 0:h.length}catch(S){a.$sdk_debug_error_capturing_properties=String(S)}if(this.requestRouter.region===Ps.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),u=e!=="$pageview"||i?e!=="$pageleave"||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,s),a=He(a,u),e==="$pageview"&&W&&(a.title=W.title),!V(o)){var p=r.getTime()-o;a.$duration=parseFloat((p/1e3).toFixed(3))}gt&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=He({},c,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),me(this.config.property_denylist)?Ce(this.config.property_denylist,(function(S){delete a[S]})):K.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var g=this.config.sanitize_properties;g&&(K.error("sanitize_properties is deprecated. Use before_send instead"),a=g(a,e));var m=this.fs();return a.$process_person_profile=m,m&&!i&&this.ps("_calculate_event_properties"),a}vs(e,n){var r;if(n===void 0&&(n=!0),!this.persistence||!this.fs()||this.qr)return e;var s=this.persistence.get_initial_props(),i=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),o=He({},s,i||{},e||{}),a=this.config.sanitize_properties;return a&&(K.error("sanitize_properties is deprecated. Use before_send instead"),o=a(o,"$set_once")),n&&(this.qr=!0),Pr(o)?void 0:o}register(e,n){var r;(r=this.persistence)==null||r.register(e,n)}register_once(e,n,r){var s;(s=this.persistence)==null||s.register_once(e,n,r)}register_for_session(e){var n;(n=this.sessionPersistence)==null||n.register(e)}unregister(e){var n;(n=this.persistence)==null||n.unregister(e)}unregister_for_session(e){var n;(n=this.sessionPersistence)==null||n.unregister(e)}gs(e,n){this.register({[e]:n})}getFeatureFlag(e,n){return this.featureFlags.getFeatureFlag(e,n)}getFeatureFlagPayload(e){return this.featureFlags.getFeatureFlagPayload(e)}getFeatureFlagResult(e,n){return this.featureFlags.getFeatureFlagResult(e,n)}isFeatureEnabled(e,n){return this.featureFlags.isFeatureEnabled(e,n)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateFlags(e,n,r){var s=r!=null&&r.merge?this.featureFlags.getFlagVariants():{},i=r!=null&&r.merge?this.featureFlags.getFlagPayloads():{},o=z({},s,e),a=z({},i,n),l={};for(var[u,c]of Object.entries(o)){var f=typeof c=="string";l[u]={key:u,enabled:!!f||!!c,variant:f?c:void 0,reason:void 0,metadata:V(a?.[u])?void 0:{id:0,version:void 0,description:void 0,payload:a[u]}}}this.featureFlags.receivedFeatureFlags({flags:l})}updateEarlyAccessFeatureEnrollment(e,n,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,n,r)}getEarlyAccessFeatures(e,n,r){return n===void 0&&(n=!1),this.featureFlags.getEarlyAccessFeatures(e,n,r)}on(e,n){return this.bi.on(e,n)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(e))!==null&&n!==void 0?n:()=>{}}getSurveys(e,n){n===void 0&&(n=!1),this.surveys.getSurveys(e,n)}getActiveMatchingSurveys(e,n){n===void 0&&(n=!1),this.surveys.getActiveMatchingSurveys(e,n)}renderSurvey(e,n){this.surveys.renderSurvey(e,n)}displaySurvey(e,n){n===void 0&&(n=pS),this.surveys.displaySurvey(e,n)}cancelPendingSurvey(e){this.surveys.cancelPendingSurvey(e)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,n){return n===void 0&&(n=!1),this.surveys.canRenderSurveyAsync(e,n)}identify(e,n,r){if(!this.__loaded||!this.persistence)return K.uninitializedWarning("posthog.identify");if(Tn(e)&&(e=e.toString(),K.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))K.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(e!==us){if(this.ps("posthog.identify")){var s=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var i=s;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}e!==s&&e!==this.get_property(Ss)&&(this.unregister(Ss),this.register({distinct_id:e}));var o=(this.persistence.get_property(fn)||"anonymous")==="anonymous";e!==s&&o?(this.persistence.set_property(fn,"identified"),this.setPersonPropertiesForFlags(z({},r||{},n||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:s},{$set:n||{},$set_once:r||{}}),this.Jr=oh(e,n,r),this.featureFlags.setAnonymousDistinctId(s)):(n||r)&&this.setPersonProperties(n,r),e!==s&&(this.reloadFeatureFlags(),this.unregister(so))}}else K.critical('The string "'+us+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else K.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,n){if((e||n)&&this.ps("posthog.setPersonProperties")){var r=oh(this.get_distinct_id(),e,n);this.Jr!==r?(this.setPersonPropertiesForFlags(z({},n||{},e||{})),this.capture("$set",{$set:e||{},$set_once:n||{}}),this.Jr=r):K.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,n,r){if(e&&n){var s=this.getGroups();s[e]!==n&&this.resetGroupPropertiesForFlags(e),this.register({$groups:z({},s,{[e]:n})}),r&&(this.capture("$groupidentify",{$group_type:e,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags({[e]:r})),s[e]===n||r||this.reloadFeatureFlags()}else K.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,n){n===void 0&&(n=!0),this.featureFlags.setPersonPropertiesForFlags(e,n)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,n){n===void 0&&(n=!0),this.ps("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,n)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){var n,r,s,i;if(K.info("reset"),!this.__loaded)return K.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),this.surveys.reset(),this.featureFlags.reset(),(s=this.persistence)==null||s.set_property(fn,"anonymous"),(i=this.sessionManager)==null||i.resetSessionId(),this.Jr=null,this.config.cookieless_mode==="always")this.register_once({distinct_id:us,$device_id:null},"");else{var a=this.config.get_device_id(Vn());this.register_once({distinct_id:a,$device_id:e?a:o},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),s=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(e!=null&&e.withTimestamp&&r){var i,o=(i=e.timestampLookBack)!==null&&i!==void 0?i:10;if(!r)return s;s+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}return s}alias(e,n){return e===this.get_property(Tg)?(K.critical("Attempting to create alias for existing People user - aborting."),-2):this.ps("posthog.alias")?(V(n)&&(n=this.get_distinct_id()),e!==n?(this.gs(Ss,e),this.capture("$create_alias",{alias:e,distinct_id:n})):(K.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var n=z({},this.config);if(qe(e)){var r,s,i,o,a,l,u;He(this.config,yh(e));var c=this.Qr();(r=this.persistence)==null||r.update_config(this.config,n,c),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Ta(z({},this.config,{persistence:"sessionStorage"}),c);var f=this.Kr(this.config.debug);En(f)&&(this.config.debug=f),En(this.config.debug)&&(this.config.debug?(un.DEBUG=!0,Me.H()&&Me.G("ph_debug","true"),K.info("set_config",{config:e,oldConfig:n,newConfig:z({},this.config)})):(un.DEBUG=!1,Me.H()&&Me.V("ph_debug"))),(s=this.exceptionObserver)==null||s.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(o=this.autocapture)==null||o.startIfEnabled(),(a=this.heatmaps)==null||a.startIfEnabled(),(l=this.exceptionObserver)==null||l.startIfEnabledOrStop(),this.surveys.loadIfEnabled(),this._s(),(u=this.externalIntegrations)==null||u.startIfEnabledOrStop()}}startSessionRecording(e){var n=e===!0,r={sampling:n||!(e==null||!e.sampling),linked_flag:n||!(e==null||!e.linked_flag),url_trigger:n||!(e==null||!e.url_trigger),event_trigger:n||!(e==null||!e.event_trigger)};if(Object.values(r).some(Boolean)){var s,i,o,a,l;(s=this.sessionManager)==null||s.checkAndGetSessionAndWindowId(),r.sampling&&((i=this.sessionRecording)==null||i.overrideSampling()),r.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),r.url_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("url")),r.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,n){var r=new Error("PostHog syntheticException"),s=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(z({},s,n))}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var n;return(n=this.persistence)==null?void 0:n.props[e]}getSessionProperty(e){var n;return(n=this.sessionPersistence)==null?void 0:n.props[e]}toString(){var e,n=(e=this.config.name)!==null&&e!==void 0?e:kr;return n!==kr&&(n=kr+"."+n),n}_isIdentified(){var e,n;return((e=this.persistence)==null?void 0:e.get_property(fn))==="identified"||((n=this.sessionPersistence)==null?void 0:n.get_property(fn))==="identified"}fs(){var e,n;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&Pr(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[Ss])&&((n=this.persistence)==null||(n=n.props)==null||!n[oo]))}ds(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.fs()||this.ps("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.ps("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}ps(e){return this.config.person_profiles==="never"?(K.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.gs(oo,!0),!0)}Qr(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut(),n=this.config.opt_out_persistence_by_default||this.config.cookieless_mode==="on_reject";return this.config.disable_persistence||e&&!!n}_s(){var e,n,r,s,i=this.Qr();return((e=this.persistence)==null?void 0:e.Pi)!==i&&((r=this.persistence)==null||r.set_disabled(i)),((n=this.sessionPersistence)==null?void 0:n.Pi
9)!==i&&((s=this.sessionPersistence)==null||s.set_disabled(i)),i}opt_in_capturing(e){var n;if(this.config.cookieless_mode!=="always"){var r,s,i;this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),(r=this.sessionManager)==null||r.destroy(),(s=this.pageViewManager)==null||s.destroy(),this.sessionManager=new gh(this),this.pageViewManager=new eh(this),this.persistence&&(this.sessionPropsManager=new ph(this,this.sessionManager,this.persistence)),this.sessionRecording=new vh(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this._s(),this.us(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode=="on_reject"&&this.surveys.loadIfEnabled(),(V(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((i=e?.captureEventName)!==null&&i!==void 0?i:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.hs()}else K.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,n,r;this.config.cookieless_mode!=="always"?(this.config.cookieless_mode==="on_reject"&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this._s(),this.config.cookieless_mode==="on_reject"&&(this.register({distinct_id:us,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(r=this.sessionRecording)==null||r.stopRecording(),this.sessionRecording=void 0,this.hs())):K.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===hn.GRANTED?"granted":e===hn.DENIED?"denied":"pending"}is_capturing(){return this.config.cookieless_mode==="always"||(this.config.cookieless_mode==="on_reject"?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this._s()}_is_bot(){return xt?u_(xt,this.config.custom_blocked_useragents):void 0}hs(){W&&(W.visibilityState==="visible"?this.Wr||(this.Wr=!0,this.capture("$pageview",{title:W.title},{send_instantly:!0}),this.Gr&&(W.removeEventListener("visibilitychange",this.Gr),this.Gr=null)):this.Gr||(this.Gr=this.hs.bind(this),Ue(W,"visibilitychange",this.Gr)))}debug(e){e===!1?(P?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(P?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}M(){var e,n,r,s,i,o,a,l=this.Yr||{};return"advanced_disable_flags"in l?!!l.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(K.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",s=!1,i=K,o=(n="advanced_disable_flags")in(e=l)&&!fe(e[n]),a=r in e&&!fe(e[r]),o?e[n]:a?(i&&i.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),e[r]):s)}cs(e){if(fe(this.config.before_send))return e;var n=me(this.config.before_send)?this.config.before_send:[this.config.before_send],r=e;for(var s of n){if(r=s(r),fe(r)){var i="Event '"+e.event+"' was rejected in beforeSend function";return mE(e.event)?K.warn(i+". This can cause unexpected behavior."):K.info(i),null}r.properties&&!Pr(r.properties)||K.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var e;return(e=this.pageViewManager.Kt)==null?void 0:e.pageViewId}captureTraceFeedback(e,n){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:n})}captureTraceMetric(e,n,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:n,$ai_metric_value:String(r)})}Kr(e){var n=En(e)&&!e,r=Me.H()&&Me.q("ph_debug")==="true";return!n&&(!!r||e)}}(function(t,e){for(var n=0;n<e.length;n++)t.prototype[e[n]]=e3(t.prototype[e[n]])})(jo,["identify"]);var bh,NS=(bh=Us[kr]=new jo,(function(){function t(){t.done||(t.done=!0,f_=!1,Ce(Us,(function(e){e._dom_loaded()})))}W!=null&&W.addEventListener?W.readyState==="complete"?t():Ue(W,"DOMContentLoaded",t,{capture:!1}):P&&K.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),bh);const LS=ht(()=>{const{public:{posthogPublicKey:t,posthogHost:e}}=Rn();if(!t){console.warn("[posthog] Public key is missing â skipping init.");return}const n=NS.init(t,{api_host:e,person_profiles:"identified_only",capture_pageview:!1,autocapture:!1,loaded:s=>{}});return $t().afterEach(s=>{xn(()=>{n.capture("$pageview",{current_url:s.fullPath})})}),{provide:{posthog:()=>n}}}),DS=ht(()=>{{const t=window.location.pathname;localStorage.setItem("previousRoute",t)}}),HS=[v1,y1,C1,Kb,zb,Yb,Jb,Xb,uw,fw,hw,bw,dE,LS,DS],h_=(t="RouteProvider")=>qt({name:t,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const n=e.renderKey,r=e.route,s={};for(const i in e.route)Object.defineProperty(s,i,{get:()=>n===e.renderKey?e.route[i]:r[i],enumerable:!0});return Wn(gr,en(s)),()=>e.vnode?it(e.vnode,{ref:e.vnodeRef}):e.vnode}}),jS=h_(),wh=new WeakMap,US=qt({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(t,{attrs:e,slots:n,expose:r}){const s=Ke(),i=jt(),o=Qe(gr,null);let a;r({pageRef:i});const l=Qe(_p,null);let u;const c=s.deferHydration();let f=!1,d=0;if(s.isHydrating){const p=s.hooks.hookOnce("app:error",c);$t().beforeEach(p)}t.pageKey&&yn(()=>t.pageKey,(p,g)=>{p!==g&&s.callHook("page:loading:start")});let h=!1;{const p=$t().beforeResolve(()=>{h=!1});ko(()=>{p(),c()})}return()=>it(Gp,{name:t.name,route:t.route,...e},{default:p=>{const g=VS(o,p.route,p.Component),m=o&&o.matched.length===p.route.matched.length;if(!p.Component){if(u&&!m)return u;c();return}if(u&&l&&!l.isCurrent(p.route))return u;if(g&&o&&(!l||l?.isCurrent(o)))return m||u?u:null;const S=hl(p,t.pageKey),b=WS(o,p.route,p.Component);!s.isHydrating&&a===S&&!b&&xn(()=>{h||(h=!0,s.callHook("page:loading:end"))}),f&&a!==S&&d++,a=S;const _=!!(t.transition??p.route.meta.pageTransition??ku),y=_&&BS([t.transition,p.route.meta.pageTransition,ku,{onAfterLeave(){delete s._runningTransition,s.callHook("page:transition:finish",p.Component)}}]),E=t.keepalive??p.route.meta.keepalive??t0;return u=zp(_&&y,$b(E,it(oc,{key:d,suspensible:!0,onPending:()=>
9{f=!0,_&&(s._runningTransition=!0),s.callHook("page:start",p.Component)},onResolve:async()=>{f=!1;try{await xn(),s._route.sync?.(),await s.callHook("page:finish",p.Component),delete s._runningTransition,!h&&!b&&(h=!0,await s.callHook("page:loading:end"))}finally{c()}}},{default:()=>{const C={key:S||void 0,vnode:n.default?qS(n.default,p):p.Component,route:p.route,renderKey:S||void 0,trackRootNodes:_,vnodeRef:i};if(!E)return it(jS,C);const T=p.Component.type,R=T;let k=wh.get(R);return k||(k=h_(T.name||T.__name),wh.set(R,k)),it(k,C)}}))).default(),u}})}});function BS(t){const e=[];for(const n of t)n&&e.push({...n,onAfterLeave:n.onAfterLeave?gc(n.onAfterLeave):void 0});return pp(...e)}function VS(t,e,n){if(!t)return!1;const r=e.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:e.matched.slice(0,r).some((s,i)=>s.components?.default!==t.matched[i]?.components?.default)||n&&hl({route:e,Component:n})!==hl({route:t,Component:n})}function WS(t,e,n){return t?e.matched.findIndex(s=>s.components?.default===n?.type)<e.matched.length-1:!1}function qS(t,e){const n=t(e);return n.length===1?it(n[0]):it(st,void 0,n)}const d_=Tp,GS=qt({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>it(Bn[t.name],t.layoutProps,e.slots)}}),KS={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},zS=qt({name:"NuxtLayout",inheritAttrs:!1,props:KS,setup(t,e){const n=Ke(),r=Qe(gr),i=!r||r===Qr()?Kp():r,o=mt(()=>{let c=De(t.name)??i?.meta.layout??d_(i?.path).appLayout??"default";return c&&!(c in Bn)&&t.fallback&&(c=De(t.fallback)),c}),a=dr();e.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",l);$t().beforeEach(c)}let u;return()=>{const c=o.value&&o.value in Bn,f=i?.meta.layoutTransition??e0,d=u;return u=o.value,zp(c&&f,{default:()=>it(oc,{suspensible:!0,onResolve:()=>{xn(l)}},{default:()=>it(YS,{layoutProps:Wd(e.attrs,i.meta.layoutProps??{},{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!t.name,isRenderingNewLayout:h=>h!==d&&h===o.value,hasTransition:!!f},e.slots)})}).default()}}}),YS=qt({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(t,e){const n=t.name;t.shouldProvide&&Wn(_p,{isCurrent:i=>n===!1||n===(i.meta.layout??d_(i.path).appLayout??"default")});const r=Qe(gr);if(r&&r===Qr()){const i=Kp(),o={};for(const a in i){const l=a;Object.defineProperty(o,l,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?i[l]:r[l]})}
9Wn(gr,en(o))}return()=>!n||typeof n=="string"&&!(n in Bn)?e.slots.default?.():it(GS,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}),JS=qt({__name:"app",setup(t){return ii(()=>{{const e=new URL(window.location.href),n=e.searchParams.get("fbclid"),r=e.searchParams.get("utm_source"),s=e.searchParams.get("utm_campaign");n&&localStorage.setItem("fbclid",n),r&&localStorage.setItem("utm_source",r),s&&localStorage.setItem("utm_campaign",s)}}),(e,n)=>{const r=US,s=zS;return vt(),_n(s,null,{default:Ql(()=>[Re(r)]),_:1})}}}),Ac=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},ZS={},XS={viewBox:"0 0 136 44",xmlns:"http://www.w3.org/2000/svg"};function QS(t,e){return vt(),Po("svg",XS,[...e[0]||(e[0]=[am('<path d="M58.4666 27.0373C55.9639 27.0373 54.1268 26.5314 52.9553 25.5197C51.7838 24.4813 51.1981 22.9238 51.1981 20.8471C51.1981 20.0483 51.2779 19.183 51.4377 18.2512L53.115 8.78613C53.6475 5.80417 54.7125 3.59433 56.31 2.1566C57.9341 0.718865 60.2371 0 63.2191 0H81.3505C86.1962 0 88.619 2.07672 88.619 6.23016C88.619 7.0289 88.5391 7.88089 88.3794 8.78613L86.702 18.2512C86.1696 21.2331 85.0779 23.443 83.4272 24.8807C81.8031 26.3184 79.5267 27.0373 76.598 27.0373H58.4666ZM78.9942 9.70468V9.42512C78.9942 8.7595 78.6215 8.4267 77.876 8.4267H63.7383C63.259 8.4267 62.8996 8.53319 62.66 8.74619C62.447 8.95919 62.3005 9.27868 62.2207 9.70468L60.8628 17.2927C60.8362 17.3459 60.8229 17.4658 60.8229 17.6521C60.8229 18.2379 61.2089 18.5307 61.9811 18.5307H76.1187C76.9707 18.5307 77.4766 18.1181 77.6364 17.2927L78.9942 9.70468Z" fill="#B923FF"></path><path d="M20.2041 27.0373C18.1806 27.0373 16.7429 26.6779 15.8909 25.959C15.0389 25.2135 14.6129 24.1219 14.6129 22.6842C14.6129 22.4179 14.6262 22.1384 14.6529 21.8455C14.6795 21.5526 14.7194 21.2465 14.7727 20.927L15.2519 18.1713C15.4117 17.1596 15.6646 16.3475 16.0107 15.7352C16.3568 15.0962 16.7429 14.6036 17.1689 14.2575C17.5949 13.8847 18.0342 13.6318 18.4868 13.4987C18.9394 13.3389 19.3654 13.2324 19.7648 13.1792C19.4453 13.1259 19.1258 13.0594 18.8063 12.9795C18.5134 12.873 18.2472 12.7133 18.0076 12.5003C17.7946 12.2873 17.6215 11.9944 17.4884 11.6217C17.3553 11.2489 17.2887 10.743 17.2887 10.104C17.2887 9.81118 17.302 9.50499 17.3286 9.1855C17.3553 8.83938 17.4085 8.45332 17.4884 8.02733L17.8079 6.11035C18.1274 4.11351 18.8595 2.5959 20.0044 1.55754C21.1759 0.519181 22.9731 0 25.3959 0H46.7222C48.7191 0 50.1435 0.372745 50.9955 1.11823C51.8475 1.8371 52.2735 2.88877 52.2735 4.27325C52.2735 4.56612 52.2602 4.87231 52.2336 5.1918C52.2069 5.48467 52.167 5.79086 52.1137 6.11035L51.7942 8.02733C51.6079 9.09231 51.3682 9.95761 51.0754 10.6232C50.7825 11.2622 50.4497 11.7681 50.077 12.1408C49.7042 12.487 49.3048 12.7399 48.8788 12.8996C48.4795 13.0328 48.0801 13.1259 47.6807 13.1792C48.0002 13.2324 48.333 13.3256 48.6792 13.4588C49.0253 13.5652 49.3315 13.7516 49.5977 14.0179C49.8906 14.2575 50.1302 14.5903 50.3166 15.0163C50.5029 15.4423 50.5961 15.9881 50.5961 16.6537C50.5961 16.8667 50.5828 17.1063 50.5562 17.3726C50.5296 17.6122 50.4896 17.8784 50.4364 18.1713L49.9571 20.927C49.611 22.8972 48.8522 24.4148 47.6807 25.4798C46.5359 26.5181 44.7786 27.0373 42.4091 27.0373H20.2041ZM41.4506 16.9732C41.4506 16.92 41.4506 16.88 41.4506 16.8534C41.4772 16.8268 41.4905 16.7868 41.4905 16.7336C41.4905 16.4141 41.2908 16.2543 40.8914 16.2543H25.5556C25.0764 16.2543 24.7835 16.494 24.677 16.9732L24.3975 18.6106C24.3975 18.6639 24.3842 18.7038 24.3575 18.7304C24.3575 18.7304 24.3575 18.7571 24.3575 18.8103C24.3575 19.1564 24.5705 19.3295 24.9965 19.3295H40.3323C40.8116 19.3295 41.0911 19.0899 41.171 18.6106L41.4506 16.9732ZM42.5688 8.34682V8.14714C42.5688 7.80102 42.3691 7.62796 41.9697 7.62796H27.4726C26.9934 7.62796 26.7138 7.86758 26.6339 8.34682L26.3145 10.0641C26.3145 10.1174 26.3011 10.1573 26.2745 10.1839C26.2745 10.1839 26.2745 10.1972 26.2745 10.2239C26.2745 10.5966 26.4875 10.783 26.9135 10.783H41.4106C41.8899 10.783 42.1694 10.5434 42.2493 10.0641L42.5688 8.34682Z" fill="#B923FF"></path><path d="M3.17578 27.0373L6.25093 9.70468V9.42512C6.25093 8.7595 5.87818 8.4267 5.13269 8.4267H0.5L1.97767 0H8.60721C13.4529 0 15.8757 2.07672 15.8757 6.23016C15.8757 7.0289 15.7959 7.88089 15.6361 8.78613L12.4012 27.0373H3.17578Z" fill="#B923FF"></path><path d="M120.716 43.1656C119.578 43.1656 118.734 42.9279 118.184 42.4527C117.646 41.9
9649 117.377 41.2332 117.377 40.2576C117.377 39.8949 117.415 39.4884 117.49 39.0382L118.484 33.3349C118.646 32.3969 118.997 31.684 119.535 31.1962C120.072 30.7084 120.898 30.4645 122.011 30.4645H132.93C133.868 30.4645 134.531 30.6396 134.918 30.9898C135.306 31.3275 135.5 31.8215 135.5 32.4719C135.5 32.6095 135.494 32.7533 135.481 32.9034C135.469 33.041 135.45 33.1848 135.425 33.3349L135.125 35.0797C134.962 36.0177 134.612 36.7306 134.074 37.2184C133.549 37.7062 132.73 37.9501 131.616 37.9501H121.336L121.204 38.663C121.167 38.8506 121.148 39.0132 121.148 39.1508C121.148 39.4384 121.229 39.6198 121.392 39.6948C121.554 39.7699 121.792 39.8074 122.105 39.8074H133.98L133.38 43.1656H120.716ZM131.654 34.2167C131.666 34.1541 131.673 34.0978 131.673 34.0478C131.685 33.9853 131.692 33.929 131.692 33.879C131.692 33.6914 131.641 33.5788 131.541 33.5413C131.441 33.5038 131.285 33.485 131.072 33.485H122.818C122.342 33.485 122.067 33.7289 121.992 34.2167L121.748 35.6612H130.697C130.947 35.6612 131.135 35.5987 131.26 35.4736C131.385 35.3486 131.473 35.1672 131.523 34.9296L131.654 34.2167Z" fill="white"></path><path d="M112.1 43.1656C111.95 43.053 111.875 42.8779 111.875 42.6403C111.875 42.6027 111.875 42.559 111.875 42.5089C111.888 42.4589 111.9 42.4026 111.913 42.3401L112.344 39.8449C112.357 39.7824 112.363 39.7261 112.363 39.6761C112.375 39.626 112.382 39.5823 112.382 39.5447C112.382 39.3071 112.313 39.1695 112.175 39.132C112.038 39.082 111.85 39.0569 111.612 39.0569H102.72L101.988 43.1656H98.3486L100.581 30.4645H114.427C115.365 30.4645 116.028 30.6334 116.415 30.971C116.803 31.3087 116.997 31.8153 116.997 32.4907C116.997 32.6282 116.991 32.7658 116.978 32.9034C116.966 33.041 116.947 33.1848 116.922 33.3349L116.64 35.0234C116.553 35.5487 116.428 35.9677 116.265 36.2804C116.103 36.5805 115.921 36.8182 115.721 36.9933C115.533 37.1559 115.333 37.2747 115.121 37.3497C114.921 37.4123 114.727 37.4623 114.539 37.4998C114.702 37.5248 114.871 37.5686 115.046 37.6311C115.221 37.6812 115.377 37.7687 115.515 37.8938C115.665 38.0063 115.784 38.1689 115.871 38.3816C115.971 38.5817 116.021 38.8506 116.021 39.1883C116.021 39.3884 116.002 39.6198 115.965 39.8824L115.533 42.3401C115.521 42.4026 115.508 42.4589 115.496 42.5089C115.496 42.559 115.496 42.6027 115.496 42.6403C115.496 42.8779 115.571 43.053 115.721 43.1656H112.1ZM113.151 34.2167C113.163 34.1541 113.17 34.1041 113.17 34.0666C113.182 34.0165 113.188 33.9728 113.188 33.9353C113.188 33.7602 113.138 33.6413 113.038 33.5788C112.938 33.5163 112.782 33.485 112.569 33.485H103.695L103.189 36.3366H111.988C112.238 36.3366 112.438 36.2804 112.588 36.1678C112.751 36.0552 112.857 35.8676 112.907 35.605L113.151 34.2167Z" fill="white"></path><path d="M83.6531 43.1656C82.5149 43.1656 81.6707 42.9279 81.1204 42.4527C80.5826 41.9649 80.3137 41.2332 80.3137 40.2576C80.3137 39.8949 80.3512 39.4884 80.4262 39.0382L81.2142 34.5919C81.4643 33.1911 81.9646 32.153 82.715 31.4776C83.4655 30.8022 84.5223 30.4645 85.8856 30.4645H94.9096C96.0727 30.4645 96.9232 30.7084 97.461 31.1962C97.9988 31.6714 98.2678 32.3969 98.2678 33.3724C98.2678 33.7351 98.2302 34.1416 98.1552 34.5919L97.3672 39.0382C97.1171 40.439 96.6105 41.4771 95.8476 42.1525C95.0972 42.8279 94.0403 43.1656 92.677 43.1656H83.6531ZM94.4405 34.9671C94.4781 34.767 94.4968 34.5981 94.4968 34.4606C94.4968 34.1604 94.4155 33.979 94.2529 33.9165C94.0903 33.8414 93.8527 33.8039 93.54 33.8039H86.092C85.3666 33.8039 84.9351 34.1916 84.7975 34.9671L84.1409 38.663C84.1033 38.8756 84.0846 39.0444 84.0846 39.1695C84.0846 39.4697 84.1659 39.651 84.3285 39.7136C84.4911 39.7761 84.7287 39.8074 85.0414 39.8074H92.4894C92.8771 39.8074 93.1711 39.7136 93.3712 39.526C93.5838 39.3259 93.7214 39.0382 93.7839 38.663L94.4405 34.9671Z" fill="white"></path><path d="M66.3209 43.1656C65.1828 43.1656 64.3385 42.9279 63.7882 42.4527C63.2504 41.9649 62.9815 41.2332 62.9815 40.2576C62.9815 39.8949 63.019 39.4884 63.0941 39.0382L63.882 34.5919C64.1322 33.1911 64.6325 32.153 65.3829 31.4776C66.1333 30.8022 67.1902 30.4645 68.5535 30.4645H80.3728L79.7912 33.8039H68.7598C68.0344 33.8039 67.6029 34.1916 67.4653 34.9671L66.8087 38.663C66.7712 38.8756 66.7524 39.0444 66.7524 39.1695C66.7524 39.4697 66.8337 39.651 66.9963 39.7136C67.1589 39.7761 67.3966 39.8074 67.7092 39.8074H78.7406L78.1402 43.1656H66.3209Z" fill="white"></path>
9<path d="M44.5015 43.1656L45.0455 40.1263H57.09C57.3401 40.1263 57.5277 40.0701 57.6528 39.9575C57.7779 39.8324 57.8654 39.6448 57.9154 39.3947L58.0468 38.6818C58.0593 38.6192 58.0655 38.5629 58.0655 38.5129C58.078 38.4629 58.0843 38.4129 58.0843 38.3628C58.0843 38.1752 58.0343 38.0627 57.9342 38.0251C57.8341 37.9751 57.6841 37.9501 57.4839 37.9501H48.4037C47.4657 37.9501 46.8028 37.7812 46.4151 37.4435C46.0399 37.0933 45.8522 36.5806 45.8522 35.9052C45.8522 35.7676 45.8585 35.63 45.871 35.4924C45.8835 35.3548 45.9023 35.211 45.9273 35.0609L46.2275 33.3349C46.3901 32.3969 46.734 31.684 47.2593 31.1962C47.7971 30.7084 48.6163 30.4645 49.717 30.4645H62.7933L62.268 33.485H50.5424C50.2673 33.485 50.0672 33.5476 49.9421 33.6726C49.8295 33.7852 49.7482 33.9665 49.6982 34.2167L49.5856 34.8546C49.5731 34.9171 49.5606 34.9796 49.5481 35.0422C49.5481 35.0922 49.5481 35.136 49.5481 35.1735C49.5481 35.3736 49.5982 35.4924 49.6982 35.5299C49.7983 35.5675 49.9546 35.5862 50.1672 35.5862H59.2099C60.148 35.5862 60.8109 35.7551 61.1986 36.0928C61.5863 36.4305 61.7802 36.937 61.7802 37.6124C61.7802 37.75 61.7739 37.8938 61.7614 38.0439C61.7489 38.1815 61.7301 38.3253 61.7051 38.4754L61.3862 40.2952C61.2986 40.7705 61.1736 41.1895 61.011 41.5522C60.8484 41.9024 60.6233 42.1963 60.3356 42.4339C60.0604 42.6716 59.7227 42.8529 59.3225 42.978C58.9223 43.1031 58.4408 43.1656 57.8779 43.1656H44.5015Z" fill="white"></path>',8)])])}const eC=Ac(ZS,[["render",QS]]),tC=["disabled"],nC=qt({__name:"BaseButton",props:{title:{default:"Continue"},disabled:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1}},setup(t){return(e,n)=>(vt(),Po("button",{class:ti(["min-h-14 w-full rounded-xl p-5 text-lg font-bold",{"cursor-not-allowed bg-[#482559] text-white/20":t.disabled,"pulse cursor-pointer bg-[#b517ff] text-white":!t.disabled}]),disabled:t.disabled||t.isLoading},Ih(t.title),11,tC))}}),rC=Ac(nC,[["__scopeId","data-v-cf8d853c"]]),sC=async(t,e={})=>{const{$posthog:n}=Ke(),r=`web_funnel_${t}`,s={...e};n()?.capture(r,s)},iC={class:"mx-auto flex h-screen flex-col items-center justify-between px-6 pt-8 text-[#EBE8EE]"},oC={class:"mb-12 flex h-full flex-col items-center gap-20 md:max-w-[600px]"},aC=qt({__name:"error",props:{error:Object},setup(t){const e=Qr();ii(()=>{sC("view_404page",{url:e.fullPath})});const n=()=>mp({redirect:"/"});return(r,s)=>{const i=eC,o=rC;return vt(),Po("div",iC,[Jt("div",oC,[Jt("div",null,[Re(i,{class:"mx-auto mb-10 h-11 w-[8.438rem]"}),s[0]||(s[0]=Jt("div",{class:"mb-10 text-center"},[Jt("h1",{class:"mb-5 text-2xl font-bold"},"Thereâs nothing here."),Jt("p",{class:"text-base"},"Find what you looking for with our app.")],-1))]),s[1]||(s[1]=Jt("div",{class:"relative"},[Jt("p",{class:"text-[128px] font-bold text-[#D06BFF]"},"404"),Jt("div",{class:"gradient absolute top-1/2 left-1/2 -z-10 size-[300px] -translate-x-1/2 -translate-y-1/2"})],-1))]),Re(o,{onClick:n,class:"mb-10",title:"Go Home"})])}}}),lC=Ac(aC,[["__scopeId","data-v-8d797cbf"]]),cC={key:0},Eh={__name:"nuxt-root",setup(t){const e=()=>null,n=Ke(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);$t().beforeEach(u)}const s=!1;Wn(gr,Qr()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const i=Mo(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;vd((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(yp(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>sr(u)),!1});const l=!1;return(u,c)=>(vt(),_n(oc,{onResolve:De(r)},{default:Ql(()=>[De(o)?(vt(),Po("div",cC)):De(i)?(vt(),_n(De(lC),{key:1,error:De(i)},null,8,["error"])):De(l)?(vt(),_n(De(e),{key:2,context:De(l)},null,8,["context"])):De(s)?(vt(),_n(Rv(De(s)),{key:3})):(vt(),_n(De(JS),{key:4}))]),_:1},8,["onResolve"]))}};let Sh;{let t;Sh=async function(){if(t)return t;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?Km(Eh):Gm(Eh),s=o0({vueApp:r});async function i(o){await s.callHook("app:error",o),s.payload.error||=fr(o)}r.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)});try{await c0(s,HS)}catch(o){i(o)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(r0),await s.hooks.callHook("app:mounted",r),await xn()}catch(o){i(o)}return r},t=Sh().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{eC as $,Vd as A,_C as B,Re as C,am as D,bC as E,st as F,ii as G,ti as H,Ih as I,yC as J,ko as K,Te as L,$C as M,pC as N,hC as O,SC as P,RC as Q,wC as R,_n as S,CC as T,xC as U,FC as V,sC as W,Rv as X,rC as Y,wo as Z,Ac as _,OC as a,vC as a0,Ql as a1,EC as a2,dC as a3,wm as a4,kC as a5,Wn as a6,$t as a7,Rn as a8,Wd as a9,gC as aa,Qn as ab,pp as ac,Xr as ad,PC as ae,lc as af,Sy as ag,TC as ah,oy as ai,mC as aj,uC as ak,up as al,IC as am,_d as b,Fi as c,mt as d,dr as e,fr as f,zn as g,De as h,Qe as i,Qh as j,ni as k,An as l,MC as m,xn as n,wv as o,Rh as p,La as q,jt as r,of as s,fC as t,Ke as u,qt as v,yn as w,vt as x,Po as y,Jt as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.