PageSourceSearch

https://auth.brandalignment.com/assets/index-BPOLC7Kh.js

js brandalignment.com collected 2026-10-06 20:03:34 UTC 476,518 bytes, 46 lines download raw bytes

vendor: 3,816 bytes, lines 1-8
1var Uv=Object.defineProperty;var Fv=(e,t,n)=>t in e?Uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hn=(e,t,n)=>Fv(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();/**
2* @vue/shared v3.5.22
3* (c) 2018-present Yuxi (Evan) You and Vue contributors
4* @license MIT
5**/function nl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Fe={},xr=[],on=()=>{},nf=()=>!1,Ks=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rl=e=>e.startsWith("onUpdate:"),ot=Object.assign,il=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$v=Object.prototype.hasOwnProperty,Pe=(e,t)=>$v.call(e,t),fe=Array.isArray,_r=e=>Ws(e)==="[object Map]",rf=e=>Ws(e)==="[object Set]",ge=e=>typeof e=="function",Qe=e=>typeof e=="string",Cn=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",sf=e=>($e(e)||ge(e))&&ge(e.then)&&ge(e.catch),of=Object.prototype.toString,Ws=e=>of.call(e),jv=e=>Ws(e).slice(8,-1),af=e=>Ws(e)==="[object Object]",sl=e=>Qe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ni=nl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Js=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bv=/-\w/g,Bt=Js(e=>e.replace(Bv,t=>t.slice(1).toUpperCase())),Vv=/\B([A-Z])/g,Gn=Js(e=>e.replace(Vv,"-$1").toLowerCase()),Ys=Js(e=>e.charAt(0).toUpperCase()+e.slice(1)),Co=Js(e=>e?`on${Ys(e)}`:""),jn=(e,t)=>!Object.is(e,t),cs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},lf=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},la=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qv=e=>{const t=Qe(e)?Number(e):NaN;return isNaN(t)?e:t};let tu;const Xs=()=>tu||(tu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Qe(r)?Kv(r):Vn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(Qe(e)||$e(e))return e}const Hv=/;(?![^(]*\))/g,zv=/:([^]+)/,Gv=/\/\*[^]*?\*\//g;function Kv(e){const t={};return e.replace(Gv,"").split(Hv).forEach(n=>{if(n){const r=n.split(zv);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Se(e){let t="";if(Qe(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const r=Se(e[n]);r&&(t+=r+" ")}else if($e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Wv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Jv=nl(Wv);function uf(e){return!!e||e===""}const cf=e=>!!(e&&e.__v_isRef===!0),_e=e=>Qe(e)?e:e==null?"":fe(e)||$e(e)&&(e.toString===of||!ge(e.toString))?cf(e)?_e(e.value):JSON.stringify(e,df,2):String(e),df=(e,t)=>cf(t)?df(e,t.value):_r(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Ao(r,s)+" =>"]=i,n),{})}:rf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ao(n))}:Cn(t)?Ao(t):$e(t)&&!fe(t)&&!af(t)?String(t):t,Ao=(e,t="")=>{var n;return Cn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6* @vue/reactivity v3.5.22
7* (c) 2018-present Yuxi (Evan) You and Vue contributors
8* @license MIT
vendor: 16,654 bytes, lines 9-12
9**/let ft;class ff{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ft,!t&&ft&&(this.index=(ft.scopes||(ft.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ft;try{return ft=this,t()}finally{ft=n}}}on(){++this._on===1&&(this.prevScope=ft,ft=this)}off(){this._on>0&&--this._on===0&&(ft=this.prevScope,this.prevScope=void 0)}stop(t){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&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function hf(e){return new ff(e)}function pf(){return ft}function Yv(e,t=!1){ft&&ft.cleanups.push(e)}let Be;const Io=new WeakSet;class vf{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ft&&ft.active&&ft.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Io.has(this)&&(Io.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||mf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nu(this),yf(this);const t=Be,n=zt;Be=this,zt=!0;try{return this.fn()}finally{bf(this),Be=t,zt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ll(t);this.deps=this.depsTail=void 0,nu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Io.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ua(this)&&this.run()}get dirty(){return ua(this)}}let gf=0,ri,ii;function mf(e,t=!1){if(e.flags|=8,t){e.next=ii,ii=e;return}e.next=ri,ri=e}function ol(){gf++}function al(){if(--gf>0)return;if(ii){let t=ii;for(ii=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ri;){let t=ri;for(ri=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function yf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bf(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),ll(r),Xv(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function ua(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===mi)||(e.globalVersion=mi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ua(e))))return;e.flags|=2;const t=e.dep,n=Be,r=zt;Be=e,zt=!0;try{yf(e);const i=e.fn(e._value);(t.version===0||jn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Be=n,zt=r,bf(e),e.flags&=-3}}function ll(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)ll(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const xf=[];function Sn(){xf.push(zt),zt=!1}function Tn(){const e=xf.pop();zt=e===void 0?!0:e}function nu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Be;Be=void 0;try{t()}finally{Be=n}}}let mi=0;class Qv{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ul{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Be||!zt||Be===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Be)n=this.activeLink=new Qv(Be,this),Be.deps?(n.prevDep=Be.depsTail,Be.depsTail.nextDep=n,Be.depsTail=n):Be.deps=Be.depsTail=n,_f(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=Be.depsTail,n.nextDep=void 0,Be.depsTail.nextDep=n,Be.depsTail=n,Be.deps===n&&(Be.deps=r)}return n}trigger(t){this.version++,mi++,this.notify(t)}notify(t){ol();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{al()}}}function _f(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)_f(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ks=new WeakMap,or=Symbol(""),ca=Symbol(""),yi=Symbol("");function ht(e,t,n){if(zt&&Be){let r=ks.get(e);r||ks.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new ul),i.map=r,i.key=n),i.track()}}function wn(e,t,n,r,i,s){const o=ks.get(e);if(!o){mi++;return}const a=l=>{l&&l.trigger()};if(ol(),t==="clear")o.forEach(a);else{const l=fe(e),u=l&&sl(n);if(l&&n==="length"){const c=Number(r);o.forEach((d,f)=>{(f==="length"||f===yi||!Cn(f)&&f>=c)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(yi)),t){case"add":l?u&&a(o.get("length")):(a(o.get(or)),_r(e)&&a(o.get(ca)));break;case"delete":l||(a(o.get(or)),_r(e)&&a(o.get(ca)));break;case"set":_r(e)&&a(o.get(or));break}}al()}function Zv(e,t){const n=ks.get(e);return n&&n.get(t)}function cr(e){const t=Ce(e);return t===e?t:(ht(t,"iterate",yi),$t(e)?t:t.map(at))}function Qs(e){return ht(e=Ce(e),"iterate",yi),e}const eg={__proto__:null,[Symbol.iterator](){return ko(this,Symbol.iterator,at)},concat(...e){return cr(this).concat(...e.map(t=>fe(t)?cr(t):t))},entries(){return ko(this,"entries",e=>(e[1]=at(e[1]),e))},every(e,t){return pn(this,"every",e,t,void 0,arguments)},filter(e,t){return pn(this,"filter",e,t,n=>n.map(at),arguments)},find(e,t){return pn(this,"find",e,t,at,arguments)},findIndex(e,t){return pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pn(this,"findLast",e,t,at,arguments)},findLastIndex(e,t){return pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Oo(this,"includes",e)},indexOf(...e){return Oo(this,"indexOf",e)},join(e){return cr(this).join(e)},lastIndexOf(...e){return Oo(this,"lastIndexOf",e)},map(e,t){return pn(this,"map",e,t,void 0,arguments)},pop(){return zr(this,"pop")},push(...e){return zr(this,"push",e)},reduce(e,...t){return ru(this,"reduce",e,t)},reduceRight(e,...t){return ru(this,"reduceRight",e,t)},shift(){return zr(this,"shift")},some(e,t){return pn(this,"some",e,t,void 0,arguments)},splice(...e){return zr(this,"splice",e)},toReversed(){return cr(this).toReversed()},toSorted(e){return cr(this).toSorted(e)},toSpliced(...e){return cr(this).toSpliced(...e)},unshift(...e){return zr(this,"unshift",e)},values(){return ko(this,"values",at)}};function ko(e,t,n){const r=Qs(e),i=r[t]();return r!==e&&!$t(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const tg=Array.prototype;function pn(e,t,n,r,i,s){const o=Qs(e),a=o!==e&&!$t(e),l=o[t];if(l!==tg[t]){const d=l.apply(e,s);return a?at(d):d}let u=n;o!==e&&(a?u=function(d,f){return n.call(this,at(d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=l.call(o,u,r);return a&&i?i(c):c}function ru(e,t,n,r){const i=Qs(e);let s=n;return i!==e&&($t(e)?n.length>3&&(s=function(o,a,l){return n.call(this,o,a,l,e)}):s=function(o,a,l){return n.call(this,o,at(a),l,e)}),i[t](s,...r)}function Oo(e,t,n){const r=Ce(e);ht(r,"iterate",yi);const i=r[t](...n);return(i===-1||i===!1)&&fl(n[0])?(n[0]=Ce(n[0]),r[t](...n)):i}function zr(e,t,n=[]){Sn(),ol();const r=Ce(e)[t].apply(e,n);return al(),Tn(),r}const ng=nl("__proto__,__v_isRef,__isVue"),Ef=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Cn));function rg(e){Cn(e)||(e=String(e));const t=Ce(this);return ht(t,"has",e),t.hasOwnProperty(e)}class Sf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?hg:If:s?Af:Cf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=fe(t);if(!i){let l;if(o&&(l=eg[n]))return l;if(n==="hasOwnProperty")return rg}const a=Reflect.get(t,n,Ye(t)?t:r);if((Cn(n)?Ef.has(n):ng(n))||(i||ht(t,"get",n),s))return a;if(Ye(a)){const l=o&&sl(n)?a:a.value;return i&&$e(l)?bi(l):l}return $e(a)?i?bi(a):Ri(a):a}}class Tf extends Sf{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const l=qn(s);if(!$t(r)&&!qn(r)&&(s=Ce(s),r=Ce(r)),!fe(t)&&Ye(s)&&!Ye(r))return l||(s.value=r),!0}const o=fe(t)&&sl(n)?Number(n)<t.length:Pe(t,n),a=Reflect.set(t,n,r,Ye(t)?t:i);return t===Ce(i)&&(o?jn(r,s)&&wn(t,"set",n,r):wn(t,"add",n,r)),a}deleteProperty(t,n){const r=Pe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&wn(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Cn(n)||!Ef.has(n))&&ht(t,"has",n),r}ownKeys(t){return ht(t,"iterate",fe(t)?"length":or),Reflect.ownKeys(t)}}class ig extends Sf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const sg=new Tf,og=new ig,ag=new Tf(!0);const da=e=>e,Ji=e=>Reflect.getPrototypeOf(e);function lg(e,t,n){return function(...r){const i=this.__v_raw,s=Ce(i),o=_r(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?da:t?Os:at;return!t&&ht(s,"iterate",l?ca:or),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Yi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ug(e,t){const n={get(i){const s=this.__v_raw,o=Ce(s),a=Ce(i);e||(jn(i,a)&&ht(o,"get",i),ht(o,"get",a));const{has:l}=Ji(o),u=t?da:e?Os:at;if(l.call(o,i))return u(s.get(i));if(l.call(o,a))return u(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&ht(Ce(i),"iterate",or),i.size},has(i){const s=this.__v_raw,o=Ce(s),a=Ce(i);return e||(jn(i,a)&&ht(o,"has",i),ht(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,l=Ce(a),u=t?da:e?Os:at;return!e&&ht(l,"iterate",or),a.forEach((c,d)=>i.call(s,u(c),u(d),o))}};return ot(n,e?{add:Yi("add"),set:Yi("set"),delete:Yi("delete"),clear:Yi("clear")}:{add(i){!t&&!$t(i)&&!qn(i)&&(i=Ce(i));const s=Ce(this);return Ji(s).has.call(s,i)||(s.add(i),wn(s,"add",i,i)),this},set(i,s){!t&&!$t(s)&&!qn(s)&&(s=Ce(s));const o=Ce(this),{has:a,get:l}=Ji(o);let u=a.call(o,i);u||(i=Ce(i),u=a.call(o,i));const c=l.call(o,i);return o.set(i,s),u?jn(s,c)&&wn(o,"set",i,s):wn(o,"add",i,s),this},delete(i){const s=Ce(this),{has:o,get:a}=Ji(s);let l=o.call(s,i);l||(i=Ce(i),l=o.call(s,i)),a&&a.call(s,i);const u=s.delete(i);return l&&wn(s,"delete",i,void 0),u},clear(){const i=Ce(this),s=i.size!==0,o=i.clear();return s&&wn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=lg(i,e,t)}),n}function cl(e,t){const n=ug(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Pe(n,i)&&i in r?n:r,i,s)}const cg={get:cl(!1,!1)},dg={get:cl(!1,!0)},fg={get:cl(!0,!1)};const Cf=new WeakMap,Af=new WeakMap,If=new WeakMap,hg=new WeakMap;function pg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vg(e){return e.__v_skip||!Object.isExtensible(e)?0:pg(jv(e))}function Ri(e){return qn(e)?e:dl(e,!1,sg,cg,Cf)}function kf(e){return dl(e,!1,ag,dg,Af)}function bi(e){return dl(e,!0,og,fg,If)}function dl(e,t,n,r,i){if(!$e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=vg(e);if(s===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function En(e){return qn(e)?En(e.__v_raw):!!(e&&e.__v_isReactive)}function qn(e){return!!(e&&e.__v_isReadonly)}function $t(e){return!!(e&&e.__v_isShallow)}function fl(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function hl(e){return!Pe(e,"__v_skip")&&Object.isExtensible(e)&&lf(e,"__v_skip",!0),e}const at=e=>$e(e)?Ri(e):e,Os=e=>$e(e)?bi(e):e;function Ye(e){return e?e.__v_isRef===!0:!1}function z(e){return Of(e,!1)}function gg(e){return Of(e,!0)}function Of(e,t){return Ye(e)?e:new mg(e,t)}class mg{constructor(t,n){this.dep=new ul,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ce(t),this._value=n?t:at(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||$t(t)||qn(t);t=r?t:Ce(t),jn(t,n)&&(this._rawValue=t,this._value=r?t:at(t),this.dep.trigger())}}function $(e){return Ye(e)?e.value:e}const yg={get:(e,t,n)=>t==="__v_raw"?e:$(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Ye(i)&&!Ye(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Rf(e){return En(e)?e:new Proxy(e,yg)}function bg(e){const t=fe(e)?new Array(e.length):{};for(const n in e)t[n]=Pf(e,n);return t}class wg{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Zv(Ce(this._object),this._key)}}class xg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function _g(e,t,n){return Ye(e)?e:ge(e)?new xg(e):$e(e)&&arguments.length>1?Pf(e,t,n):z(e)}function Pf(e,t,n){const r=e[t];return Ye(r)?r:new wg(e,t,n)}class Eg{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ul(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=mi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Be!==this)return mf(this,!0),!0}get value(){const t=this.dep.track();return wf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Sg(e,t,n=!1){let r,i;return ge(e)?r=e:(r=e.get,i=e.set),new Eg(r,i,n)}const Xi={},Rs=new WeakMap;let Qn;function Tg(e,t=!1,n=Qn){if(n){let r=Rs.get(n);r||Rs.set(n,r=[]),r.push(e)}}function Cg(e,t,n=Fe){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,u=x=>i?x:$t(x)||i===!1||i===0?xn(x,1):xn(x);let c,d,f,h,p=!1,v=!1;if(Ye(e)?(d=()=>e.value,p=$t(e)):En(e)?(d=()=>u(e),p=!0):fe(e)?(v=!0,p=e.some(x=>En(x)||$t(x)),d=()=>e.map(x=>{if(Ye(x))return x.value;if(En(x))return u(x);if(ge(x))return l?l(x,2):x()})):ge(e)?t?d=l?()=>l(e,2):e:d=()=>{if(f){Sn();try{f()}finally{Tn()}}const x=Qn;Qn=c;try{return l?l(e,3,[h]):e(h)}finally{Qn=x}}:d=on,t&&i){const x=d,E=i===!0?1/0:i;d=()=>xn(x(),E)}const g=pf(),y=()=>{c.stop(),g&&g.active&&il(g.effects,c)};if(s&&t){const x=t;t=(...E)=>{x(...E),y()}}let b=v?new Array(e.length).fill(Xi):Xi;const w=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const E=c.run();if(i||p||(v?E.some((C,P)=>jn(C,b[P])):jn(E,b))){f&&f();const C=Qn;Qn=c;try{const P=[E,b===Xi?void 0:v&&b[0]===Xi?[]:b,h];b=E,l?l(t,3,P):t(...P)}finally{Qn=C}}}else c.run()};return a&&a(w),c=new vf(d),c.scheduler=o?()=>o(w,!1):w,h=x=>Tg(x,!1,c),f=c.onStop=()=>{const x=Rs.get(c);if(x){if(l)l(x,4);else for(const E of x)E();Rs.delete(c)}},t?r?w(!0):b=c.run():o?o(w.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function xn(e,t=1/0,n){if(t<=0||!$e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ye(e))xn(e.value,t,n);else if(fe(e))for(let r=0;r<e.length;r++)xn(e[r],t,n);else if(rf(e)||_r(e))e.forEach(r=>{xn(r,t,n)});else if(af(e)){for(const r in e)xn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&xn(e[r],t,n)}return e}/**
10* @vue/runtime-core v3.5.22
11* (c) 2018-present Yuxi (Evan) You and Vue contributors
12* @license MIT
13**/function Pi(e,t,n,r){try{return r?e(...r):e()}catch(i){Zs(i,t,n)}}function Gt(e,t,n,r){if(ge(e)){const i=Pi(e,t,n,r);return i&&sf(i)&&i.catch(s=>{Zs(s,t,n)}),i}if(fe(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Gt(e[s],t,n,r));return i}}function Zs(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Fe;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,u)===!1)return}a=a.parent}if(s){Sn(),Pi(s,null,10,[e,l,u]),Tn();return}}Ag(e,n,i,r,o)}function Ag(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const St=[];let tn=-1;const Er=[];let Nn=null,hr=0;const Nf=Promise.resolve();let Ps=null;function pl(e){const t=Ps||Nf;return e?t.then(this?e.bind(this):e):t}function Ig(e){let t=tn+1,n=St.length;for(;t<n;){const r=t+n>>>1,i=St[r],s=wi(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function vl(e){if(!(e.flags&1)){const t=wi(e),n=St[St.length-1];!n||!(e.flags&2)&&t>=wi(n)?St.push(e):St.splice(Ig(t),0,e),e.flags|=1,Lf()}}function Lf(){Ps||(Ps=Nf.then(Mf))}function kg(e){fe(e)?Er.push(...e):Nn&&e.id===-1?Nn.splice(hr+1,0,e):e.flags&1||(Er.push(e),e.flags|=1),Lf()}function iu(e,t,n=tn+1){for(;n<St.length;n++){const r=St[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;St.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Df(e){if(Er.length){const t=[...new Set(Er)].sort((n,r)=>wi(n)-wi(r));if(Er.length=0,Nn){Nn.push(...t);return}for(Nn=t,hr=0;hr<Nn.length;hr++){const n=Nn[hr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Nn=null,hr=0}}const wi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mf(e){try{for(tn=0;tn<St.length;tn++){const t=St[tn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;tn<St.length;tn++){const t=St[tn];t&&(t.flags&=-2)}tn=-1,St.length=0,Df(),Ps=null,(St.length||Er.length)&&Mf()}}let lt=null,Uf=null;function Ns(e){const t=lt;return lt=e,Uf=e&&e.type.__scopeId||null,t}function cn(e,t=lt,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ms(-1);const s=Ns(t);let o;try{o=e(...i)}finally{Ns(s),r._d&&Ms(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function yr(e,t){if(lt===null)return e;const n=io(lt),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,l=Fe]=t[i];s&&(ge(s)&&(s={mounted:s,updated:s}),s.deep&&xn(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Wn(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(Sn(),Gt(l,n,8,[e.el,a,e,t]),Tn())}}const Ff=Symbol("_vte"),$f=e=>e.__isTeleport,si=e=>e&&(e.disabled||e.disabled===""),su=e=>e&&(e.defer||e.defer===""),ou=e=>typeof SVGElement<"u"&&e instanceof SVGElement,au=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,fa=(e,t)=>{const n=e&&e.to;return Qe(n)?t?t(n):null:n},jf={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,s,o,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,y=si(t.props);let{shapeFlag:b,children:w,dynamicChildren:x}=t;if(e==null){const E=t.el=v(""),C=t.anchor=v("");h(E,n,r),h(C,n,r);const P=(T,k)=>{b&16&&c(w,T,k,i,s,o,a,l)},I=()=>{const T=t.target=fa(t.props,p),k=Bf(T,t,v,h);T&&(o!=="svg"&&ou(T)?o="svg":o!=="mathml"&&au(T)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(T),y||(P(T,k),ds(t,!1)))};y&&(P(n,C),ds(t,!0)),su(t.props)?(t.el.__isMounted=!1,_t(()=>{I(),delete t.el.__isMounted},s)):I()}else{if(su(t.props)&&e.el.__isMounted===!1){_t(()=>{jf.process(e,t,n,r,i,s,o,a,l,u)},s);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,C=t.target=e.target,P=t.targetAnchor=e.targetAnchor,I=si(e.props),T=I?n:C,k=I?E:P;if(o==="svg"||ou(C)?o="svg":(o==="mathml"||au(C))&&(o="mathml"),x?(f(e.dynamicChildren,x,T,i,s,o,a),bl(e,t,!0)):l||d(e,t,T,k,i,s,o,a,!1),y)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qi(t,n,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=fa(t.props,p);B&&Qi(t,B,null,u,0)}else I&&Qi(t,C,P,u,1);ds(t,y)}},remove(e,t,n,{um:r,o:{remove:i}},s){const{shapeFlag:o,children:a,anchor:l,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(i(u),i(c)),s&&i(l),o&16){const h=s||!si(f);for(let p=0;p<a.length;p++){const v=a[p];r(v,t,n,h,!!v.dynamicChildren)}}},move:Qi,hydrate:Og};function Qi(e,t,n,{o:{insert:r},m:i},s=2){s===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=e,d=s===2;if(d&&r(o,t,n),(!d||si(c))&&l&16)for(let f=0;f<u.length;f++)i(u[f],t,n,2);d&&r(a,t,n)}function Og(e,t,n,r,i,s,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:u,createText:c}},d){function f(v,g,y,b){g.anchor=d(o(v),g,a(v),n,r,i,s),g.targetStart=y,g.targetAnchor=b}const h=t.target=fa(t.props,l),p=si(t.props);if(h){const v=h._lpa||h.firstChild;if(t.shapeFlag&16)if(p)f(e,t,v,v&&o(v));else{t.anchor=o(e);let g=v;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,h._lpa=t.targetAnchor&&o(t.targetAnchor);break}}g=o(g)}t.targetAnchor||Bf(h,t,c,u),d(v&&o(v),t,h,n,r,i,s)}ds(t,p)}else p&&t.shapeFlag&16&&f(e,t,e,o(e));return t.anchor&&o(t.anchor)}const ha=jf;function ds(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Bf(e,t,n,r){const i=t.targetStart=n(""),s=t.targetAnchor=n("");return i[Ff]=s,e&&(r(i,e),r(s,e)),s}const bn=Symbol("_leaveCb"),Zi=Symbol("_enterCb");function Rg(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
vendor: 7,304 bytes, line 13
13ingVNodes:new Map};return ct(()=>{e.isMounted=!0}),gl(()=>{e.isUnmounting=!0}),e}const Ut=[Function,Array],Vf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ut,onEnter:Ut,onAfterEnter:Ut,onEnterCancelled:Ut,onBeforeLeave:Ut,onLeave:Ut,onAfterLeave:Ut,onLeaveCancelled:Ut,onBeforeAppear:Ut,onAppear:Ut,onAfterAppear:Ut,onAppearCancelled:Ut},qf=e=>{const t=e.subTree;return t.component?qf(t.component):t},Pg={name:"BaseTransition",props:Vf,setup(e,{slots:t}){const n=xl(),r=Rg();return()=>{const i=t.default&&Gf(t.default(),!0);if(!i||!i.length)return;const s=Hf(i),o=Ce(e),{mode:a}=o;if(r.isLeaving)return Ro(s);const l=lu(s);if(!l)return Ro(s);let u=pa(l,o,r,n,d=>u=d);l.type!==pt&&xi(l,u);let c=n.subTree&&lu(n.subTree);if(c&&c.type!==pt&&!er(c,l)&&qf(n).type!==pt){let d=pa(c,o,r,n);if(xi(c,d),a==="out-in"&&l.type!==pt)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Ro(s);a==="in-out"&&l.type!==pt?d.delayLeave=(f,h,p)=>{const v=zf(r,c);v[String(c.key)]=c,f[bn]=()=>{h(),f[bn]=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 s}}};function Hf(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pt){t=n;break}}return t}const Ng=Pg;function zf(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function pa(e,t,n,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,x=String(e.key),E=zf(n,e),C=(T,k)=>{T&&Gt(T,r,9,k)},P=(T,k)=>{const B=k[1];C(T,k),fe(T)?T.every(N=>N.length<=1)&&B():T.length<=1&&B()},I={mode:o,persisted:a,beforeEnter(T){let k=l;if(!n.isMounted)if(s)k=g||l;else return;T[bn]&&T[bn](!0);const B=E[x];B&&er(e,B)&&B.el[bn]&&B.el[bn](),C(k,[T])},enter(T){let k=u,B=c,N=d;if(!n.isMounted)if(s)k=y||u,B=b||c,N=w||d;else return;let ie=!1;const X=T[Zi]=q=>{ie||(ie=!0,q?C(N,[T]):C(B,[T]),I.delayedLeave&&I.delayedLeave(),T[Zi]=void 0)};k?P(k,[T,X]):X()},leave(T,k){const B=String(e.key);if(T[Zi]&&T[Zi](!0),n.isUnmounting)return k();C(f,[T]);let N=!1;const ie=T[bn]=X=>{N||(N=!0,k(),X?C(v,[T]):C(p,[T]),T[bn]=void 0,E[B]===e&&delete E[B])};E[B]=e,h?P(h,[T,ie]):ie()},clone(T){const k=pa(T,t,n,r,i);return i&&i(k),k}};return I}function Ro(e){if(eo(e))return e=Hn(e),e.children=null,e}function lu(e){if(!eo(e))return $f(e.type)&&e.children?Hf(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function xi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xi(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Gf(e,t=!1,n){let r=[],i=0;for(let s=0;s<e.length;s++){let o=e[s];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===qe?(o.patchFlag&128&&i++,r=r.concat(Gf(o.children,t,a))):(t||o.type!==pt)&&r.push(a!=null?Hn(o,{key:a}):o)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function be(e,t){return ge(e)?ot({name:e.name},t,{setup:e}):e}function Kf(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ls=new WeakMap;function oi(e,t,n,r,i=!1){if(fe(e)){e.forEach((p,v)=>oi(p,t&&(fe(t)?t[v]:t),n,r,i));return}if(Sr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&oi(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?io(r.component):r.el,o=i?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Fe?a.refs={}:a.refs,d=a.setupState,f=Ce(d),h=d===Fe?nf:p=>Pe(f,p);if(u!=null&&u!==l){if(uu(t),Qe(u))c[u]=null,h(u)&&(d[u]=null);else if(Ye(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(ge(l))Pi(l,a,12,[o,c]);else{const p=Qe(l),v=Ye(l);if(p||v){const g=()=>{if(e.f){const y=p?h(l)?d[l]:c[l]:l.value;if(i)fe(y)&&il(y,s);else if(fe(y))y.includes(s)||y.push(s);else if(p)c[l]=[s],h(l)&&(d[l]=c[l]);else{const b=[s];l.value=b,e.k&&(c[e.k]=b)}}else p?(c[l]=o,h(l)&&(d[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const y=()=>{g(),Ls.delete(e)};y.id=-1,Ls.set(e,y),_t(y,n)}else uu(e),g()}}}function uu(e){const t=Ls.get(e);t&&(t.flags|=8,Ls.delete(e))}Xs().requestIdleCallback;Xs().cancelIdleCallback;const Sr=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Lg(e,t){Wf(e,"a",t)}function Dg(e,t){Wf(e,"da",t)}function Wf(e,t,n=vt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(to(t,r,n),n){let i=n.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&Mg(r,t,n,i),i=i.parent}}function Mg(e,t,n,r){const i=to(t,e,r,!0);dn(()=>{il(r[t],i)},n)}function to(e,t,n=vt,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Sn();const a=Ni(n),l=Gt(t,n,e,o);return a(),Tn(),l});return r?i.unshift(s):i.push(s),s}}const An=e=>(t,n=vt)=>{(!Ti||e==="sp")&&to(e,(...r)=>t(...r),n)},Ug=An("bm"),ct=An("m"),Fg=An("bu"),$g=An("u"),gl=An("bum"),dn=An("um"),jg=An("sp"),Bg=An("rtg"),Vg=An("rtc");function qg(e,t=vt){to("ec",e,t)}const Hg="components";function cu(e,t){return Gg(Hg,e,!0,t)||e}const zg=Symbol.for("v-ndc");function Gg(e,t,n=!0,r=!1){const i=lt||vt;if(i){const s=i.type;{const a=Dm(s,!1);if(a&&(a===t||a===Bt(t)||a===Ys(Bt(t))))return s}const o=du(i[e]||s[e],t)||du(i.appContext[e],t);return!o&&r?s:o}}function du(e,t){return e&&(e[t]||e[Bt(t)]||e[Ys(Bt(t))])}function qt(e,t,n,r){let i;const s=n,o=fe(e);if(o||Qe(e)){const a=o&&En(e);let l=!1,u=!1;a&&(l=!$t(e),u=qn(e),e=Qs(e)),i=new Array(e.length);for(let c=0,d=e.length;c<d;c++)i[c]=t(l?u?Os(at(e[c])):at(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,s)}else if($e(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=t(e[c],c,l,s)}}else i=[];return i}function _i(e,t,n={},r,i){if(lt.ce||lt.parent&&Sr(lt.parent)&&lt.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),R(),pe(qe,null,[U("slot",n,r)],u?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),R();const o=s&&Jf(s(n)),a=n.key||o&&o.key,l=pe(qe,{key:(a&&!Cn(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Jf(e){return e.some(t=>Si(t)?!(t.type===pt||t.type===qe&&!Jf(t.children)):!0)?e:null}const va=e=>e?ph(e)?io(e):va(e.parent):null,ai=ot(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>va(e.parent),$root:e=>va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xf(e),$forceUpdate:e=>e.f||(e.f=()=>{vl(e.update)}),$nextTick:e=>e.n||(e.n=pl.bind(e.proxy)),$watch:e=>pm.bind(e)}),Po=(e,t)=>e!==Fe&&!e.__isScriptSetup&&Pe(e,t),Kg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Po(r,t))return o[t]=1,r[t];if(i!==Fe&&Pe(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Pe(u,t))return o[t]=3,s[t];
vendor: 4,945 bytes, line 13
13if(n!==Fe&&Pe(n,t))return o[t]=4,n[t];ga&&(o[t]=0)}}const c=ai[t];let d,f;if(c)return t==="$attrs"&&ht(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Fe&&Pe(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,Pe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Po(i,t)?(i[t]=n,!0):r!==Fe&&Pe(r,t)?(r[t]=n,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s,type:o}},a){let l,u;return!!(n[a]||e!==Fe&&a[0]!=="$"&&Pe(e,a)||Po(t,a)||(l=s[0])&&Pe(l,a)||Pe(r,a)||Pe(ai,a)||Pe(i.config.globalProperties,a)||(u=o.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fu(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ga=!0;function Wg(e){const t=Xf(e),n=e.proxy,r=e.ctx;ga=!1,t.beforeCreate&&hu(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:x,render:E,renderTracked:C,renderTriggered:P,errorCaptured:I,serverPrefetch:T,expose:k,inheritAttrs:B,components:N,directives:ie,filters:X}=t;if(u&&Jg(u,r,null),o)for(const ae in o){const se=o[ae];ge(se)&&(r[ae]=se.bind(n))}if(i){const ae=i.call(n,n);$e(ae)&&(e.data=Ri(ae))}if(ga=!0,s)for(const ae in s){const se=s[ae],ze=ge(se)?se.bind(n,n):ge(se.get)?se.get.bind(n,n):on,Ze=!ge(se)&&ge(se.set)?se.set.bind(n):on,Oe=Z({get:ze,set:Ze});Object.defineProperty(r,ae,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:ke=>Oe.value=ke})}if(a)for(const ae in a)Yf(a[ae],r,n,ae);if(l){const ae=ge(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(se=>{fs(se,ae[se])})}c&&hu(c,e,"c");function K(ae,se){fe(se)?se.forEach(ze=>ae(ze.bind(n))):se&&ae(se.bind(n))}if(K(Ug,d),K(ct,f),K(Fg,h),K($g,p),K(Lg,v),K(Dg,g),K(qg,I),K(Vg,C),K(Bg,P),K(gl,b),K(dn,x),K(jg,T),fe(k))if(k.length){const ae=e.exposed||(e.exposed={});k.forEach(se=>{Object.defineProperty(ae,se,{get:()=>n[se],set:ze=>n[se]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===on&&(e.render=E),B!=null&&(e.inheritAttrs=B),N&&(e.components=N),ie&&(e.directives=ie),T&&Kf(e)}function Jg(e,t,n=on){fe(e)&&(e=ma(e));for(const r in e){const i=e[r];let s;$e(i)?"default"in i?s=jt(i.from||r,i.default,!0):s=jt(i.from||r):s=jt(i),Ye(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function hu(e,t,n){Gt(fe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yf(e,t,n,r){let i=r.includes(".")?uh(n,r):()=>n[r];if(Qe(e)){const s=t[e];ge(s)&&st(i,s)}else if(ge(e))st(i,e.bind(n));else if($e(e))if(fe(e))e.forEach(s=>Yf(s,t,n,r));else{const s=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(s)&&st(i,s,e)}}function Xf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>Ds(l,u,o,!0)),Ds(l,t,o)),$e(t)&&s.set(t,l),l}function Ds(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Ds(e,s,n,!0),i&&i.forEach(o=>Ds(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Yg[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Yg={data:pu,props:vu,emits:vu,methods:Zr,computed:Zr,beforeCreate:xt,created:xt,beforeMount:xt,mounted:xt,beforeUpdate:xt,updated:xt,beforeDestroy:xt,beforeUnmount:xt,destroyed:xt,unmounted:xt,activated:xt,deactivated:xt,errorCaptured:xt,serverPrefetch:xt,components:Zr,directives:Zr,watch:Qg,provide:pu,inject:Xg};function pu(e,t){return t?e?function(){return ot(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Xg(e,t){return Zr(ma(e),ma(t))}function ma(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function xt(e,t){return e?[...new Set([].concat(e,t))]:t}function Zr(e,t){return e?ot(Object.create(null),e,t):t}function vu(e,t){return e?fe(e)&&fe(t)?[...new Set([...e,...t])]:ot(Object.create(null),fu(e),fu(t??{})):t}function Qg(e,t){if(!e)return t;if(!t)return e;const n=ot(Object.create(null),e);for(const r in t)n[r]=xt(e[r],t[r]);return n}function Qf(){return{app:null,config:{isNativeTag:nf,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 Zg=0;function em(e,t){return function(r,i=null){ge(r)||(r=ot({},r)),i!=null&&!$e(i)&&(i=null);const s=Qf(),o=new WeakSet,a=[];let l=!1;const u=s.app={_uid:Zg++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Um,get config(){return s.config},set config(c){},use(c,...d){return o.has(c)||(c&&ge(c.install)?(o.add(c),c.install(u,...d)):ge(c)&&(o.add(c),c(u,...d))),u}
vendor: 4,631 bytes, line 13
13,mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,d){return d?(s.components[c]=d,u):s.components[c]},directive(c,d){return d?(s.directives[c]=d,u):s.directives[c]},mount(c,d,f){if(!l){const h=u._ceVNode||U(r,i);return h.appContext=s,f===!0?f="svg":f===!1&&(f=void 0),e(h,c,f),l=!0,u._container=c,c.__vue_app__=u,io(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Gt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,d){return s.provides[c]=d,u},runWithContext(c){const d=ar;ar=u;try{return c()}finally{ar=d}}};return u}}let ar=null;function fs(e,t){if(vt){let n=vt.provides;const r=vt.parent&&vt.parent.provides;r===n&&(n=vt.provides=Object.create(r)),n[e]=t}}function jt(e,t,n=!1){const r=xl();if(r||ar){let i=ar?ar._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ge(t)?t.call(r&&r.proxy):t}}function tm(){return!!(xl()||ar)}const Zf={},eh=()=>Object.create(Zf),th=e=>Object.getPrototypeOf(e)===Zf;function nm(e,t,n,r=!1){const i={},s=eh();e.propsDefaults=Object.create(null),nh(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:kf(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function rm(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=Ce(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(no(e.emitsOptions,f))continue;const h=t[f];if(l)if(Pe(s,f))h!==s[f]&&(s[f]=h,u=!0);else{const p=Bt(f);i[p]=ya(l,a,p,h,e,!1)}else h!==s[f]&&(s[f]=h,u=!0)}}}else{nh(e,t,i,s)&&(u=!0);let c;for(const d in a)(!t||!Pe(t,d)&&((c=Gn(d))===d||!Pe(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=ya(l,a,d,void 0,e,!0)):delete i[d]);if(s!==a)for(const d in s)(!t||!Pe(t,d))&&(delete s[d],u=!0)}u&&wn(e.attrs,"set","")}function nh(e,t,n,r){const[i,s]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(ni(l))continue;const u=t[l];let c;i&&Pe(i,c=Bt(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:no(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(s){const l=Ce(n),u=a||Fe;for(let c=0;c<s.length;c++){const d=s[c];n[d]=ya(i,l,d,u[d],e,!Pe(u,d))}}return o}function ya(e,t,n,r,i,s){const o=e[n];if(o!=null){const a=Pe(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ge(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=Ni(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Gn(n))&&(r=!0))}return r}const im=new WeakMap;function rh(e,t,n=!1){const r=n?im:t.propsCache,i=r.get(e);if(i)return i;const s=e.props,o={},a=[];let l=!1;if(!ge(e)){const c=d=>{l=!0;const[f,h]=rh(d,t,!0);ot(o,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return $e(e)&&r.set(e,xr),xr;if(fe(s))for(let c=0;c<s.length;c++){const d=Bt(s[c]);gu(d)&&(o[d]=Fe)}else if(s)for(const c in s){const d=Bt(c);if(gu(d)){const f=s[c],h=o[d]=fe(f)||ge(f)?{type:f}:ot({},f),p=h.type;let v=!1,g=!0;if(fe(p))for(let y=0;y<p.length;++y){const b=p[y],w=ge(b)&&b.name;if(w==="Boolean"){v=!0;break}else w==="String"&&(g=!1)}else v=ge(p)&&p.name==="Boolean";h[0]=v,h[1]=g,(v||Pe(h,"default"))&&a.push(d)}}const u=[o,a];return $e(e)&&r.set(e,u),u}function gu(e){return e[0]!=="$"&&!ni(e)}const ml=e=>e==="_"||e==="_ctx"||e==="$stable",yl=e=>fe(e)?e.map(rn):[rn(e)],sm=(e,t,n)=>{if(t._n)return t;const r=cn((...i)=>yl(t(...i)),n);return r._c=!1,r},ih=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ml(i))continue;const s=e[i];if(ge(s))t[i]=sm(i,s,r);else if(s!=null){const o=yl(s);t[i]=()=>o}}},sh=(e,t)=>{const n=yl(t);e.slots.default=()=>n},oh=(e,t,n)=>{for(const r in t)(n||!ml(r))&&(e[r]=t[r])},om=(e,t,n)=>{const r=e.slots=eh();if(e.vnode.shapeFlag&32){const i=t._;i?(oh(r,t,n),n&&lf(r,"_",i,!0)):ih(t,r)}else t&&sh(e,t)},am=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=Fe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:oh(i,t,n):(s=!t.$stable,ih(t,i)),o=t}else t&&(sh(e,t),o={default:1});if(s)for(const a in i)!ml(a)&&o[a]==null&&delete i[a]},_t=_m;function lm(e){return um(e)}function um(e,t){const n=Xs();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=on,insertStaticContent:p}=e,v=(_,S,A,M=null,F=null,D=null,Q=void 0,J=null,W=!!S.dynamicChildren)=>{if(_===S)return;_&&!er(_,S)&&(M=L(_),ke(_,F,D,!0),_=null),S.patchFlag===-2&&(W=!1,S.dynamicChildren=null);const{type:H,ref:de,shapeFlag:te}=S;
vendor: 18,240 bytes, line 13
13switch(H){case ro:g(_,S,A,M);break;case pt:y(_,S,A,M);break;case hs:_==null&&b(S,A,M,Q);break;case qe:N(_,S,A,M,F,D,Q,J,W);break;default:te&1?E(_,S,A,M,F,D,Q,J,W):te&6?ie(_,S,A,M,F,D,Q,J,W):(te&64||te&128)&&H.process(_,S,A,M,F,D,Q,J,W,le)}de!=null&&F?oi(de,_&&_.ref,D,S||_,!S):de==null&&_&&_.ref!=null&&oi(_.ref,null,D,_,!0)},g=(_,S,A,M)=>{if(_==null)r(S.el=a(S.children),A,M);else{const F=S.el=_.el;S.children!==_.children&&u(F,S.children)}},y=(_,S,A,M)=>{_==null?r(S.el=l(S.children||""),A,M):S.el=_.el},b=(_,S,A,M)=>{[_.el,_.anchor]=p(_.children,S,A,M,_.el,_.anchor)},w=({el:_,anchor:S},A,M)=>{let F;for(;_&&_!==S;)F=f(_),r(_,A,M),_=F;r(S,A,M)},x=({el:_,anchor:S})=>{let A;for(;_&&_!==S;)A=f(_),i(_),_=A;i(S)},E=(_,S,A,M,F,D,Q,J,W)=>{S.type==="svg"?Q="svg":S.type==="math"&&(Q="mathml"),_==null?C(S,A,M,F,D,Q,J,W):T(_,S,F,D,Q,J,W)},C=(_,S,A,M,F,D,Q,J)=>{let W,H;const{props:de,shapeFlag:te,transition:ce,dirs:ve}=_;if(W=_.el=o(_.type,D,de&&de.is,de),te&8?c(W,_.children):te&16&&I(_.children,W,null,M,F,No(_,D),Q,J),ve&&Wn(_,null,M,"created"),P(W,_,_.scopeId,Q,M),de){for(const je in de)je!=="value"&&!ni(je)&&s(W,je,null,de[je],D,M);"value"in de&&s(W,"value",null,de.value,D),(H=de.onVnodeBeforeMount)&&Zt(H,M,_)}ve&&Wn(_,null,M,"beforeMount");const Te=cm(F,ce);Te&&ce.beforeEnter(W),r(W,S,A),((H=de&&de.onVnodeMounted)||Te||ve)&&_t(()=>{H&&Zt(H,M,_),Te&&ce.enter(W),ve&&Wn(_,null,M,"mounted")},F)},P=(_,S,A,M,F)=>{if(A&&h(_,A),M)for(let D=0;D<M.length;D++)h(_,M[D]);if(F){let D=F.subTree;if(S===D||dh(D.type)&&(D.ssContent===S||D.ssFallback===S)){const Q=F.vnode;P(_,Q,Q.scopeId,Q.slotScopeIds,F.parent)}}},I=(_,S,A,M,F,D,Q,J,W=0)=>{for(let H=W;H<_.length;H++){const de=_[H]=J?Ln(_[H]):rn(_[H]);v(null,de,S,A,M,F,D,Q,J)}},T=(_,S,A,M,F,D,Q)=>{const J=S.el=_.el;let{patchFlag:W,dynamicChildren:H,dirs:de}=S;W|=_.patchFlag&16;const te=_.props||Fe,ce=S.props||Fe;let ve;if(A&&Jn(A,!1),(ve=ce.onVnodeBeforeUpdate)&&Zt(ve,A,S,_),de&&Wn(S,_,A,"beforeUpdate"),A&&Jn(A,!0),(te.innerHTML&&ce.innerHTML==null||te.textContent&&ce.textContent==null)&&c(J,""),H?k(_.dynamicChildren,H,J,A,M,No(S,F),D):Q||se(_,S,J,null,A,M,No(S,F),D,!1),W>0){if(W&16)B(J,te,ce,A,F);else if(W&2&&te.class!==ce.class&&s(J,"class",null,ce.class,F),W&4&&s(J,"style",te.style,ce.style,F),W&8){const Te=S.dynamicProps;for(let je=0;je<Te.length;je++){const Ne=Te[je],Ct=te[Ne],At=ce[Ne];(At!==Ct||Ne==="value")&&s(J,Ne,Ct,At,F,A)}}W&1&&_.children!==S.children&&c(J,S.children)}else!Q&&H==null&&B(J,te,ce,A,F);((ve=ce.onVnodeUpdated)||de)&&_t(()=>{ve&&Zt(ve,A,S,_),de&&Wn(S,_,A,"updated")},M)},k=(_,S,A,M,F,D,Q)=>{for(let J=0;J<S.length;J++){const W=_[J],H=S[J],de=W.el&&(W.type===qe||!er(W,H)||W.shapeFlag&198)?d(W.el):A;v(W,H,de,null,M,F,D,Q,!0)}},B=(_,S,A,M,F)=>{if(S!==A){if(S!==Fe)for(const D in S)!ni(D)&&!(D in A)&&s(_,D,S[D],null,F,M);for(const D in A){if(ni(D))continue;const Q=A[D],J=S[D];Q!==J&&D!=="value"&&s(_,D,J,Q,F,M)}"value"in A&&s(_,"value",S.value,A.value,F)}},N=(_,S,A,M,F,D,Q,J,W)=>{const H=S.el=_?_.el:a(""),de=S.anchor=_?_.anchor:a("");let{patchFlag:te,dynamicChildren:ce,slotScopeIds:ve}=S;ve&&(J=J?J.concat(ve):ve),_==null?(r(H,A,M),r(de,A,M),I(S.children||[],A,de,F,D,Q,J,W)):te>0&&te&64&&ce&&_.dynamicChildren?(k(_.dynamicChildren,ce,A,F,D,Q,J),(S.key!=null||F&&S===F.subTree)&&bl(_,S,!0)):se(_,S,A,de,F,D,Q,J,W)},ie=(_,S,A,M,F,D,Q,J,W)=>{S.slotScopeIds=J,_==null?S.shapeFlag&512?F.ctx.activate(S,A,M,Q,W):X(S,A,M,F,D,Q,W):q(_,S,W)},X=(_,S,A,M,F,D,Q)=>{const J=_.component=Om(_,M,F);if(eo(_)&&(J.ctx.renderer=le),Rm(J,!1,Q),J.asyncDep){if(F&&F.registerDep(J,K,Q),!_.el){const W=J.subTree=U(pt);y(null,W,S,A),_.placeholder=W.el}}else K(J,_,S,A,F,D,Q)},q=(_,S,A)=>{const M=S.component=_.component;if(wm(_,S,A))if(M.asyncDep&&!M.asyncResolved){ae(M,S,A);return}else M.next=S,M.update();else S.el=_.el,M.vnode=S},K=(_,S,A,M,F,D,Q)=>{const J=()=>{if(_.isMounted){let{next:te,bu:ce,u:ve,parent:Te,vnode:je}=_;{const Xt=ah(_);if(Xt){te&&(te.el=je.el,ae(_,te,Q)),Xt.asyncDep.then(()=>{_.isUnmounted||J()});return}}let Ne=te,Ct;Jn(_,!1),te?(te.el=je.el,ae(_,te,Q)):te=je,ce&&cs(ce),(Ct=te.props&&te.props.onVnodeBeforeUpdate)&&Zt(Ct,Te,te,je),Jn(_,!0);const At=yu(_),Yt=_.subTree;_.subTree=At,v(Yt,At,d(Yt.el),L(Yt),_,F,D),te.el=At.el,Ne===null&&xm(_,At.el),ve&&_t(ve,F),(Ct=te.props&&te.props.onVnodeUpdated)&&_t(()=>Zt(Ct,Te,te,je),F)}else{let te;const{el:ce,props:ve}=S,{bm:Te,m:je,parent:Ne,root:Ct,type:At}=_,Yt=Sr(S);Jn(_,!1),Te&&cs(Te),!Yt&&(te=ve&&ve.onVnodeBeforeMount)&&Zt(te,Ne,S),Jn(_,!0);{Ct.ce&&Ct.ce._def.shadowRoot!==!1&&Ct.ce._injectChildStyle(At);const Xt=_.subTree=yu(_);v(null,Xt,A,M,_,F,D),S.el=Xt.el}if(je&&_t(je,F),!Yt&&(te=ve&&ve.onVnodeMounted)){const Xt=S;_t(()=>Zt(te,Ne,Xt),F)}(S.shapeFlag&256||Ne&&Sr(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&_.a&&_t(_.a,F),_.isMounted=!0,S=A=M=null}};_.scope.on();const W=_.effect=new vf(J);_.scope.off();const H=_.update=W.run.bind(W),de=_.job=W.runIfDirty.bind(W);de.i=_,de.id=_.uid,W.scheduler=()=>vl(de),Jn(_,!0),H()},ae=(_,S,A)=>{S.component=_;const M=_.vnode.props;_.vnode=S,_.next=null,rm(_,S.props,M,A),am(_,S.children,A),Sn(),iu(_),Tn()},se=(_,S,A,M,F,D,Q,J,W=!1)=>{const H=_&&_.children,de=_?_.shapeFlag:0,te=S.children,{patchFlag:ce,shapeFlag:ve}=S;if(ce>0){if(ce&128){Ze(H,te,A,M,F,D,Q,J,W);return}else if(ce&256){ze(H,te,A,M,F,D,Q,J,W);return}}ve&8?(de&16&&dt(H,F,D),te!==H&&c(A,te)):de&16?ve&16?Ze(H,te,A,M,F,D,Q,J,W):dt(H,F,D,!0):(de&8&&c(A,""),ve&16&&I(te,A,M,F,D,Q,J,W))},ze=(_,S,A,M,F,D,Q,J,W)=>{_=_||xr,S=S||xr;const H=_.length,de=S.length,te=Math.min(H,de);let ce;for(ce=0;ce<te;ce++){const ve=S[ce]=W?Ln(S[ce]):rn(S[ce]);v(_[ce],ve,A,null,F,D,Q,J,W)}H>de?dt(_,F,D,!0,!1,te):I(S,A,M,F,D,Q,J,W,te)},Ze=(_,S,A,M,F,D,Q,J,W)=>{let H=0;const de=S.length;let te=_.length-1,ce=de-1;for(;H<=te&&H<=ce;){const ve=_[H],Te=S[H]=W?Ln(S[H]):rn(S[H]);if(er(ve,Te))v(ve,Te,A,null,F,D,Q,J,W);else break;H++}for(;H<=te&&H<=ce;){const ve=_[te],Te=S[ce]=W?Ln(S[ce]):rn(S[ce]);if(er(ve,Te))v(ve,Te,A,null,F,D,Q,J,W);else break;te--,ce--}if(H>te){if(H<=ce){const ve=ce+1,Te=ve<de?S[ve].el:M;for(;H<=ce;)v(null,S[H]=W?Ln(S[H]):rn(S[H]),A,Te,F,D,Q,J,W),H++}}else if(H>ce)for(;H<=te;)ke(_[H],F,D,!0),H++;else{const ve=H,Te=H,je=new Map;for(H=Te;H<=ce;H++){const Pt=S[H]=W?Ln(S[H]):rn(S[H]);Pt.key!=null&&je.set(Pt.key,H)}let Ne,Ct=0;const At=ce-Te+1;let Yt=!1,Xt=0;const Hr=new Array(At);for(H=0;H<At;H++)Hr[H]=0;for(H=ve;H<=te;H++){const Pt=_[H];if(Ct>=At){ke(Pt,F,D,!0);continue}let Qt;if(Pt.key!=null)Qt=je.get(Pt.key);else for(Ne=Te;Ne<=ce;Ne++)if(Hr[Ne-Te]===0&&er(Pt,S[Ne])){Qt=Ne;break}Qt===void 0?ke(Pt,F,D,!0):(Hr[Qt-Te]=H+1,Qt>=Xt?Xt=Qt:Yt=!0,v(Pt,S[Qt],A,null,F,D,Q,J,W),Ct++)}const Ql=Yt?dm(Hr):xr;for(Ne=Ql.length-1,H=At-1;H>=0;H--){const Pt=Te+H,Qt=S[Pt],Zl=S[Pt+1],eu=Pt+1<de?Zl.el||Zl.placeholder:M;Hr[H]===0?v(null,Qt,A,eu,F,D,Q,J,W):Yt&&(Ne<0||H!==Ql[Ne]?Oe(Qt,A,eu,2):Ne--)}}},Oe=(_,S,A,M,F=null)=>{const{el:D,type:Q,transition:J,children:W,shapeFlag:H}=_;if(H&6){Oe(_.component.subTree,S,A,M);return}if(H&128){_.suspense.move(S,A,M);return}if(H&64){Q.move(_,S,A,le);return}if(Q===qe){r(D,S,A);for(let te=0;te<W.length;te++)Oe(W[te],S,A,M);r(_.anchor,S,A);return}if(Q===hs){w(_,S,A);return}if(M!==2&&H&1&&J)if(M===0)J.beforeEnter(D),r(D,S,A),_t(()=>J.enter(D),F);else{const{leave:te,delayLeave:ce,afterLeave:ve}=J,Te=()=>{_.ctx.isUnmounted?i(D):r(D,S,A)},je=()=>{D._isLeaving&&D[bn](!0),te(D,()=>{Te(),ve&&ve()})};ce?ce(D,Te,je):je()}else r(D,S,A)},ke=(_,S,A,M=!1,F=!1)=>{const{type:D,props:Q,ref:J,children:W,dynamicChildren:H,shapeFlag:de,patchFlag:te,dirs:ce,cacheIndex:ve}=_;if(te===-2&&(F=!1),J!=null&&(Sn(),oi(J,null,A,_,!0),Tn()),ve!=null&&(S.renderCache[ve]=void 0),de&256){S.ctx.deactivate(_);return}const Te=de&1&&ce,je=!Sr(_);let Ne;if(je&&(Ne=Q&&Q.onVnodeBeforeUnmount)&&Zt(Ne,S,_),de&6)re(_.component,A,M);else{if(de&128){_.suspense.unmount(A,M);return}Te&&Wn(_,null,S,"beforeUnmount"),de&64?_.type.remove(_,S,A,le,M):H&&!H.hasOnce&&(D!==qe||te>0&&te&64)?dt(H,S,A,!1,!0):(D===qe&&te&384||!F&&de&16)&&dt(W,S,A),M&&Me(_)}(je&&(Ne=Q&&Q.onVnodeUnmounted)||Te)&&_t(()=>{Ne&&Zt(Ne,S,_),Te&&Wn(_,null,S,"unmounted")},A)},Me=_=>{const{type:S,el:A,anchor:M,transition:F}=_;if(S===qe){Le(A,M);return}if(S===hs){x(_);return}const D=()=>{i(A),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(_.shapeFlag&1&&F&&!F.persisted){const{leave:Q,delayLeave:J}=F,W=()=>Q(A,D);J?J(_.el,D,W):W()}else D()},Le=(_,S)=>{let A;for(;_!==S;)A=f(_),i(_),_=A;i(S)},re=(_,S,A)=>{const{bum:M,scope:F,job:D,subTree:Q,um:J,m:W,a:H}=_;mu(W),mu(H),M&&cs(M),F.stop(),D&&(D.flags|=8,ke(Q,_,S,A)),J&&_t(J,S),_t(()=>{_.isUnmounted=!0},S)},dt=(_,S,A,M=!1,F=!1,D=0)=>{for(let Q=D;Q<_.length;Q++)ke(_[Q],S,A,M,F)},L=_=>{if(_.shapeFlag&6)return L(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const S=f(_.anchor||_.el),A=S&&S[Ff];return A?f(A):S};let ne=!1;const Y=(_,S,A)=>{_==null?S._vnode&&ke(S._vnode,null,null,!0):v(S._vnode||null,_,S,null,null,null,A),S._vnode=_,ne||(ne=!0,iu(),Df(),ne=!1)},le={p:v,um:ke,m:Oe,r:Me,mt:X,mc:I,pc:se,pbc:k,n:L,o:e};return{render:Y,hydrate:void 0,createApp:em(Y)}}function No({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Jn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bl(e,t,n=!1){const r=e.children,i=t.children;if(fe(r)&&fe(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Ln(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&bl(o,a)),a.type===ro&&a.patchFlag!==-1&&(a.el=o.el),a.type===pt&&!a.el&&(a.el=o.el)}}function dm(e){const t=e.slice(),n=[0];let r,i,s,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,e[n[a]]<u?s=a+1:o=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function ah(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ah(t)}function mu(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const fm=Symbol.for("v-scx"),hm=()=>jt(fm);function st(e,t,n){return lh(e,t,n)}function lh(e,t,n=Fe){const{immediate:r,deep:i,flush:s,once:o}=n,a=ot({},n),l=t&&r||!t&&s!=="post";let u;if(Ti){if(s==="sync"){const h=hm();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=on,h.resume=on,h.pause=on,h}}const c=vt;a.call=(h,p,v)=>Gt(h,c,p,v);let d=!1;s==="post"?a.scheduler=h=>{_t(h,c&&c.suspense)}:s!=="sync"&&(d=!0,a.scheduler=(h,p)=>{p?h():vl(h)}),a.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=Cg(e,t,a);return Ti&&(u?u.push(f):l&&f()),f}function pm(e,t,n){const r=this.proxy,i=Qe(e)?e.includes(".")?uh(r,e):()=>r[e]:e.bind(r,r);let s;ge(t)?s=t:(s=t.handler,n=t);const o=Ni(this),a=lh(i,s.bind(r),n);return o(),a}function uh(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const vm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Bt(t)}Modifiers`]||e[`${Gn(t)}Modifiers`];function gm(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Fe;let i=n;const s=t.startsWith("update:"),o=s&&vm(r,t.slice(7));o&&(o.trim&&(i=n.map(c=>Qe(c)?c.trim():c)),o.number&&(i=n.map(la)));let a,l=r[a=Co(t)]||r[a=Co(Bt(t))];!l&&s&&(l=r[a=Co(Gn(t))]),l&&Gt(l,e,6,i);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Gt(u,e,6,i)}}const mm=new WeakMap;function ch(e,t,n=!1){const r=n?mm:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!ge(e)){const l=u=>{const c=ch(u,t,!0);c&&(a=!0,ot(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?($e(e)&&r.set(e,null),null):(fe(s)?s.forEach(l=>o[l]=null):ot(o,s),$e(e)&&r.set(e,o),o)}function no(e,t){return!e||!Ks(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,Gn(t))||Pe(e,t))}function yu(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:h,ctx:p,inheritAttrs:v}=e,g=Ns(e);let y,b;try{if(n.shapeFlag&4){const x=i||r,E=x;y=rn(u.call(E,x,c,d,h,f,p)),b=a}else{const x=t;y=rn(x.length>1?x(d,{attrs:a,slots:o,emit:l}):x(d,null)),b=t.props?a:ym(a)}}catch(x){li.length=0,Zs(x,e,1),y=U(pt)}let w=y;if(b&&v!==!1){const x=Object.keys(b),{shapeFlag:E}=w;x.length&&E&7&&(s&&x.some(rl)&&(b=bm(b,s)),w=Hn(w,b,!1,!0))}return n.dirs&&(w=Hn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&xi(w,n.transition),y=w,Ns(g),y}const ym=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ks(n))&&((t||(t={}))[n]=e[n]);return t},bm=(e,t)=>{const n={};for(const r in e)(!rl(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wm(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?bu(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(o[f]!==r[f]&&!no(u,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?bu(r,o,u):!0:!!o;return!1}function bu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!no(n,s))return!0}return!1}function xm({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const dh=e=>e.__isSuspense;function _m(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):kg(e)}const qe=Symbol.for("v-fgt"),ro=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),hs=Symbol.for("v-stc"),li=[];let Dt=null;function R(e=!1){li.push(Dt=e?null:[])}function Em(){li.pop(),Dt=li[li.length-1]||null}let Ei=1;function Ms(e,t=!1){Ei+=e,e<0&&Dt&&t&&(Dt.hasOnce=!0)}function fh(e){return e.dynamicChildren=Ei>0?Dt||xr:null,Em(),Ei>0&&Dt&&Dt.push(e),e}function G(e,t,n,r,i,s){return fh(m(e,t,n,r,i,s,!0))}function pe(e,t,n,r,i){return fh(U(e,t,n,r,i,!0))}function Si(e){return e?e.__v_isVNode===!0:!1}function er(e,t){return e.type===t.type&&e.key===t.key}const hh=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Qe(e)||Ye(e)||ge(e)?{i:lt,r:e,k:t,f:!!n}:e:null);function m(e,t=null,n=null,r=0,i=null,s=e===qe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hh(t),ref:t&&ps(t),scopeId:Uf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:lt};return a?(wl(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Qe(n)?8:16),Ei>0&&!o&&Dt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Dt.push(l),l}const U=Sm;function Sm(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===zg)&&(e=pt),Si(e)){const a=Hn(e,t,!0);return n&&wl(a,n),Ei>0&&!s&&Dt&&(a.shapeFlag&6?Dt[Dt.indexOf(e)]=a:Dt.push(a)),a.patchFlag=-2,a}if(Mm(e)&&(e=e.__vccOpts),t){t=Tm(t);let{class:a,style:l}=t;a&&!Qe(a)&&(t.class=Se(a)),$e(l)&&(fl(l)&&!fe(l)&&(l=ot({},l)),t.style=Vn(l))}const o=Qe(e)?1:dh(e)?128:$f(e)?64:$e(e)?4:ge(e)?2:0;return m(e,t,n,r,i,o,s,!0)}function Tm(e){return e?fl(e)||th(e)?ot({},e):e:null}function Hn(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=e,u=t?Am(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&hh(u),ref:t&&t.ref?n&&s?fe(s)?s.concat(ps(t)):[s,ps(t)]:ps(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hn(e.ssContent),ssFallback:e.ssFallback&&Hn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&xi(c,l.clone(c)),c}function yt(e=" ",t=0){return U(ro,null,e,t)}function Cm(e,t){const n=U(hs,null,e);return n.staticCount=t,n}function Ie(e="",t=!1){return t?(R(),pe(pt,null,e)):U(pt,null,e)}function rn(e){return e==null||typeof e=="boolean"?U(pt):fe(e)?U(qe,null,e.slice()):Si(e)?Ln(e):U(ro,null,String(e))}function Ln(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Hn(e)}function wl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),wl(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!th(t)?t._ctx=lt:i===3&&lt&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:lt},n=32):(t=String(t),r&64?(n=16,t=[yt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Am(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Se([t.class,r.class]));else if(i==="style")t.style=Vn([t.style,r.style]);else if(Ks(i)){const s=t[i],o=r[i];o&&s!==o&&!(fe(s)&&s.includes(o))&&(t[i]=s?[].concat(s,o):o)}else i!==""&&(t[i]=r[i])}return t}function Zt(e,t,n,r=null){Gt(e,t,7,[n,r])}const Im=Qf();let km=0;function Om(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Im,s={uid:km++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ff(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rh(r,i),emitsOptions:ch(r,i),emit:null,emitted:null,propsDefaults:Fe,inheritAttrs:r.inheritAttrs,ctx:Fe,data:Fe,props:Fe,attrs:Fe,slots:Fe,refs:Fe,setupState:Fe,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,
vendor: 2,044 bytes, lines 13-16
13sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=gm.bind(null,s),e.ce&&e.ce(s),s}let vt=null;const xl=()=>vt||lt;let Us,ba;{const e=Xs(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Us=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),ba=t("__VUE_SSR_SETTERS__",n=>Ti=n)}const Ni=e=>{const t=vt;return Us(e),e.scope.on(),()=>{e.scope.off(),Us(t)}},wu=()=>{vt&&vt.scope.off(),Us(null)};function ph(e){return e.vnode.shapeFlag&4}let Ti=!1;function Rm(e,t=!1,n=!1){t&&ba(t);const{props:r,children:i}=e.vnode,s=ph(e);nm(e,r,s,t),om(e,i,n||t);const o=s?Pm(e,t):void 0;return t&&ba(!1),o}function Pm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Kg);const{setup:r}=n;if(r){Sn();const i=e.setupContext=r.length>1?Lm(e):null,s=Ni(e),o=Pi(r,e,0,[e.props,i]),a=sf(o);if(Tn(),s(),(a||e.sp)&&!Sr(e)&&Kf(e),a){if(o.then(wu,wu),t)return o.then(l=>{xu(e,l)}).catch(l=>{Zs(l,e,0)});e.asyncDep=o}else xu(e,o)}else vh(e)}function xu(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$e(t)&&(e.setupState=Rf(t)),vh(e)}function vh(e,t,n){const r=e.type;e.render||(e.render=r.render||on);{const i=Ni(e);Sn();try{Wg(e)}finally{Tn(),i()}}}const Nm={get(e,t){return ht(e,"get",""),e[t]}};function Lm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Nm),slots:e.slots,emit:e.emit,expose:t}}function io(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Rf(hl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ai)return ai[n](e)},has(t,n){return n in t||n in ai}})):e.proxy}function Dm(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function Mm(e){return ge(e)&&"__vccOpts"in e}const Z=(e,t)=>Sg(e,t,Ti);function Rr(e,t,n){try{Ms(-1);const r=arguments.length;return r===2?$e(t)&&!fe(t)?Si(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Si(n)&&(n=[n]),U(e,t,n))}finally{Ms(1)}}const Um="3.5.22";/**
14* @vue/runtime-dom v3.5.22
15* (c) 2018-present Yuxi (Evan) You and Vue contributors
16* @license MIT
17**/let wa;const _u=typeof window<"u"&&window.trustedTypes;if(_u)try{wa=_u.createPolicy("vue",{createHTML:e=>e})}catch{}const gh=wa?e=>wa.createHTML(e):e=>e,Fm="http://www.w3.org/2000/svg",$m="http://www.w3.org/1998/Math/MathML",yn=typeof document<"u"?document:null,Eu=yn&&yn.createElement("template"),jm={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?yn.createElementNS(Fm,e):t==="mathml"?yn.createElementNS($m,e):n?yn.createElement(e,{is:n}):yn.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>yn.createTextNode(e),createComment:e=>yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Eu.innerHTML=gh(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Eu.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},On="transition",Gr="animation",Ci=Symbol("_vtc"),mh={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},Bm=ot({},Vf,mh),Vm=e=>(e.displayName="Transition",e.props=Bm,e),qm=Vm((e,{slots:t})=>Rr(Ng,Hm(e),t)),Yn=(e,t=[])=>{fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Su=e=>e?fe(e)?e.some(t=>t.length>1):e.length>1:!1;function Hm(e){const t={};for(const N in e)N in mh||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=zm(i),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:x,onLeaveCancelled:E,onBeforeAppear:C=y,onAppear:P=b,onAppearCancelled:I=w}=t,T=(N,ie,X,q)=>{N._enterCancelled=q,Xn(N,ie?c:a),Xn(N,ie?u:o),X&&X()},k=(N,ie)=>{N._isLeaving=!1,Xn(N,d),Xn(N,h),Xn(N,f),ie&&ie()},B=N=>(ie,X)=>{const q=N?P:b,K=()=>T(ie,N,X);Yn(q,[ie,K]),Tu(()=>{Xn(ie,N?l:s),vn(ie,N?c:a),Su(q)||Cu(ie,r,v,K)})};return ot(t,{onBeforeEnter(N){Yn(y,[N]),vn(N,s),vn(N,o)},onBeforeAppear(N){Yn(C,[N]),vn(N,l),vn(N,u)},onEnter:B(!1),onAppear:B(!0),onLeave(N,ie){N._isLeaving=!0;const X=()=>k(N,ie);vn(N,d),N._enterCancelled?(vn(N,f),ku(N)):(ku(N),vn(N,f)),Tu(()=>{N._isLeaving&&(Xn(N,d),vn(N,h),Su(x)||Cu(N,r,g,X))}),Yn(x,[N,X])},onEnterCancelled(N){T(N,!1,void 0,!0),Yn(w,[N])},onAppearCancelled(N){T(N,!0,void 0,!0),Yn(I,[N])},onLeaveCancelled(N){k(N),Yn(E,[N])}})}function zm(e){if(e==null)return null;if($e(e))return[Lo(e.enter),Lo(e.leave)];{const t=Lo(e);return[t,t]}}function Lo(e){return qv(e)}function vn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ci]||(e[Ci]=new Set)).add(t)}function Xn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ci];n&&(n.delete(t),n.size||(e[Ci]=void 0))}function Tu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Gm=0;function Cu(e,t,n,r){const i=e._endId=++Gm,s=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:o,timeout:a,propCount:l}=Km(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,f),s()},f=h=>{h.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function Km(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),i=r(`${On}Delay`),s=r(`${On}Duration`),o=Au(i,s),a=r(`${Gr}Delay`),l=r(`${Gr}Duration`),u=Au(a,l);let c=null,d=0,f=0;t===On?o>0&&(c=On,d=o,f=s.length):t===Gr?u>0&&(c=Gr,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?On:Gr:null,f=c?c===On?s.length:l.length:0);const h=c===On&&/\b(?:transform|all)(?:,|$)/.test(r(`${On}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Au(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Iu(n)+Iu(e[r])))}function Iu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ku(e){return(e?e.ownerDocument:document).body.offsetHeight}function Wm(e,t,n){const r=e[Ci];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ou=Symbol("_vod"),Jm=Symbol("_vsh"),Ym=Symbol(""),Xm=/(?:^|;)\s*display\s*:/;function Qm(e,t,n){const r=e.style,i=Qe(n);let s=!1;if(n&&!i){if(t)if(Qe(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&vs(r,a,"")}else for(const o in t)n[o]==null&&vs(r,o,"");for(const o in n)o==="display"&&(s=!0),vs(r,o,n[o])}else if(i){if(t!==n){const o=r[Ym];o&&(n+=";"+o),r.cssText=n,s=Xm.test(n)}}else t&&e.removeAttribute("style");
vendor: 27,521 bytes, lines 17-25
17Ou in e&&(e[Ou]=s?r.display:"",e[Jm]&&(r.display="none"))}const Ru=/\s*!important$/;function vs(e,t,n){if(fe(n))n.forEach(r=>vs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Zm(e,t);Ru.test(n)?e.setProperty(Gn(r),n.replace(Ru,""),"important"):e[r]=n}}const Pu=["Webkit","Moz","ms"],Do={};function Zm(e,t){const n=Do[t];if(n)return n;let r=Bt(t);if(r!=="filter"&&r in e)return Do[t]=r;r=Ys(r);for(let i=0;i<Pu.length;i++){const s=Pu[i]+r;if(s in e)return Do[t]=s}return t}const Nu="http://www.w3.org/1999/xlink";function Lu(e,t,n,r,i,s=Jv(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Nu,t.slice(6,t.length)):e.setAttributeNS(Nu,t,n):n==null||s&&!uf(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Cn(n)?String(n):n)}function Du(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?gh(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=uf(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function pr(e,t,n,r){e.addEventListener(t,n,r)}function ey(e,t,n,r){e.removeEventListener(t,n,r)}const Mu=Symbol("_vei");function ty(e,t,n,r,i=null){const s=e[Mu]||(e[Mu]={}),o=s[t];if(r&&o)o.value=r;else{const[a,l]=ny(t);if(r){const u=s[t]=sy(r,i);pr(e,a,u,l)}else o&&(ey(e,a,o,l),s[t]=void 0)}}const Uu=/(?:Once|Passive|Capture)$/;function ny(e){let t;if(Uu.test(e)){t={};let r;for(;r=e.match(Uu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gn(e.slice(2)),t]}let Mo=0;const ry=Promise.resolve(),iy=()=>Mo||(ry.then(()=>Mo=0),Mo=Date.now());function sy(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Gt(oy(r,n.value),t,5,[r])};return n.value=e,n.attached=iy(),n}function oy(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Fu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ay=(e,t,n,r,i,s)=>{const o=i==="svg";t==="class"?Wm(e,r,o):t==="style"?Qm(e,n,r):Ks(t)?rl(t)||ty(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ly(e,t,r,o))?(Du(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Lu(e,t,r,o,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Qe(r))?Du(e,Bt(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Lu(e,t,r,o))};function ly(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fu(t)&&ge(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Fu(t)&&Qe(n)?!1:t in e}const $u=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>cs(t,n):t};function uy(e){e.target.composing=!0}function ju(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Uo=Symbol("_assign"),br={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Uo]=$u(i);const s=r||i.props&&i.props.type==="number";pr(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=la(a)),e[Uo](a)}),n&&pr(e,"change",()=>{e.value=e.value.trim()}),t||(pr(e,"compositionstart",uy),pr(e,"compositionend",ju),pr(e,"change",ju))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},o){if(e[Uo]=$u(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?la(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},cy=["ctrl","shift","alt","meta"],dy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>cy.some(n=>e[`${n}Key`]&&!t.includes(n))},Pr=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...s)=>{for(let o=0;o<t.length;o++){const a=dy[t[o]];if(a&&a(i,t))return}return e(i,...s)})},fy={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},xa=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const s=Gn(i.key);if(t.some(o=>o===s||fy[o]===s))return e(i)})},hy=ot({patchProp:ay},jm);let Bu;function py(){return Bu||(Bu=lm(hy))}const yh=(...e)=>{const t=py().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=gy(r);if(!i)return;const s=t._component;!ge(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,vy(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function vy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gy(e){return Qe(e)?document.querySelector(e):e}/*!
18 * vue-router v4.6.3
19 * (c) 2025 Eduardo San Martin Morote
20 * @license MIT
21 */const vr=typeof document<"u";function bh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function my(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bh(e.default)}const Re=Object.assign;function Fo(e,t){const n={};for(const r in t){const i=t[r];n[r]=Kt(i)?i.map(e):e(i)}return n}const ui=()=>{},Kt=Array.isArray;function Vu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const wh=/#/g,yy=/&/g,by=/\//g,wy=/=/g,xy=/\?/g,xh=/\+/g,_y=/%5B/g,Ey=/%5D/g,_h=/%5E/g,Sy=/%60/g,Eh=/%7B/g,Ty=/%7C/g,Sh=/%7D/g,Cy=/%20/g;function _l(e){return e==null?"":encodeURI(""+e).replace(Ty,"|").replace(_y,"[").replace(Ey,"]")}function Ay(e){return _l(e).replace(Eh,"{").replace(Sh,"}").replace(_h,"^")}function _a(e){return _l(e).replace(xh,"%2B").replace(Cy,"+").replace(wh,"%23").replace(yy,"%26").replace(Sy,"`").replace(Eh,"{").replace(Sh,"}").replace(_h,"^")}function Iy(e){return _a(e).replace(wy,"%3D")}function ky(e){return _l(e).replace(wh,"%23").replace(xy,"%3F")}function Oy(e){return ky(e).replace(by,"%2F")}function Ai(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Ry=/\/$/,Py=e=>e.replace(Ry,"");function $o(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),s=t.slice(l,a>0?a:t.length),i=e(s.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=My(r??t,n),{fullPath:r+s+o,path:r,query:i,hash:Ai(o)}}function Ny(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function qu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ly(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Nr(t.matched[r],n.matched[i])&&Th(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Nr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Th(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Dy(e[n],t[n]))return!1;return!0}function Dy(e,t){return Kt(e)?Hu(e,t):Kt(t)?Hu(t,e):e===t}function Hu(e,t){return Kt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function My(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o).join("/")}const Rn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ea=function(e){return e.pop="pop",e.push="push",e}({}),jo=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Uy(e){if(!e)if(vr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Py(e)}const Fy=/^[^#]+#/;function $y(e,t){return e.replace(Fy,"#")+t}function jy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const so=()=>({left:window.scrollX,top:window.scrollY});function By(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=jy(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function zu(e,t){return(history.state?history.state.position-t:-1)+e}const Sa=new Map;function Vy(e,t){Sa.set(e,t)}function qy(e){const t=Sa.get(e);return Sa.delete(e),t}function Hy(e){return typeof e=="string"||e&&typeof e=="object"}function Ch(e){return typeof e=="string"||typeof e=="symbol"}let Xe=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Ah=Symbol("");Xe.MATCHER_NOT_FOUND+"",Xe.NAVIGATION_GUARD_REDIRECT+"",Xe.NAVIGATION_ABORTED+"",Xe.NAVIGATION_CANCELLED+"",Xe.NAVIGATION_DUPLICATED+"";function Lr(e,t){return Re(new Error,{type:e,[Ah]:!0},t)}function gn(e,t){return e instanceof Error&&Ah in e&&(t==null||!!(e.type&t))}const zy=["params","query","hash"];function Gy(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of zy)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ky(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(xh," "),s=i.indexOf("="),o=Ai(s<0?i:i.slice(0,s)),a=s<0?null:Ai(i.slice(s+1));if(o in t){let l=t[o];Kt(l)||(l=t[o]=[l]),l.push(a)}else t[o]=a}return t}function Gu(e){let t="";for(let n in e){const r=e[n];if(n=Iy(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Kt(r)?r.map(i=>i&&_a(i)):[r&&_a(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Wy(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Kt(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const Jy=Symbol(""),Ku=Symbol(""),oo=Symbol(""),El=Symbol(""),Ta=Symbol("");function Kr(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Dn(e,t,n,r,i,s=o=>o()){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const u=f=>{f===!1?l(Lr(Xe.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?l(f):Hy(f)?l(Lr(Xe.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(o&&r.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),a())},c=s(()=>e.call(r&&r.instances[i],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function Bo(e,t,n,r,i=s=>s()){const s=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(bh(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Dn(u,n,r,o,a,i))}else{let u=l();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=my(c)?c.default:c;o.mods[a]=c,o.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&Dn(f,n,r,o,a,i)()}))}}return s}function Yy(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;o<s;o++){const a=t.matched[o];a&&(e.matched.find(u=>Nr(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>Nr(u,l))||i.push(l))}return[n,r,i]}/*!
22 * vue-router v4.6.3
23 * (c) 2025 Eduardo San Martin Morote
24 * @license MIT
25 */let Xy=()=>location.protocol+"//"+location.host;function Ih(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let o=i.includes(e.slice(s))?e.slice(s).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),qu(a,"")}return qu(n,e)+r+i}function Qy(e,t,n,r){let i=[],s=[],o=null;const a=({state:f})=>{const h=Ih(e,location),p=n.value,v=t.value;let g=0;if(f){if(n.value=h,t.value=f,o&&o===p){o=null;return}g=v?f.position-v.position:0}else r(h);i.forEach(y=>{y(n.value,p,{delta:g,type:Ea.pop,direction:g?g>0?jo.forward:jo.back:jo.unknown})})};function l(){o=n.value}function u(f){i.push(f);const h=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return s.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Re({},f.state,{scroll:so()}),"")}}function d(){for(const f of s)f();s=[],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:d}}function Wu(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?so():null}}function Zy(e){const{history:t,location:n}=window,r={value:Ih(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Xy()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function o(l,u){s(l,Re({},t.state,Wu(i.value.back,l,i.value.forward,!0),u,{position:i.value.position}),!0),r.value=l}function a(l,u){const c=Re({},i.value,t.state,{forward:l,scroll:so()});s(c.current,c,!0),s(l,Re({},Wu(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:i,push:a,replace:o}}function e0(e){e=Uy(e);const t=Zy(e),n=Qy(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Re({location:"",base:e,go:r,createHref:$y.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let tr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var nt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(nt||{});const t0={type:tr.Static,value:""},n0=/[a-zA-Z0-9_]/;function r0(e){if(!e)return[[]];if(e==="/")return[[t0]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=nt.Static,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,l,u="",c="";function d(){u&&(n===nt.Static?s.push({type:tr.Static,value:u}):n===nt.Param||n===nt.ParamRegExp||n===nt.ParamRegExpEnd?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:tr.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==nt.ParamRegExp){r=n,n=nt.EscapeNext;continue}switch(n){case nt.Static:l==="/"?(u&&d(),o()):l===":"?(d(),n=nt.Param):f();break;case nt.EscapeNext:f(),n=r;break;case nt.Param:l==="("?n=nt.ParamRegExp:n0.test(l)?f():(d(),n=nt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case nt.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=nt.ParamRegExpEnd:c+=l;break;case nt.ParamRegExpEnd:d(),n=nt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===nt.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),i}const Ju="[^/]+?",i0={sensitive:!1,strict:!1,start:!0,end:!0};var Et=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Et||{});const s0=/[.+*?^${}()[\]/\\]/g;function o0(e,t){const n=Re({},i0,t),r=[];let i=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[Et.Root];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const f=u[d];let h=Et.Segment+(n.sensitive?Et.BonusCaseSensitive:0);if(f.type===tr.Static)d||(i+="/"),i+=f.value.replace(s0,"\\$&"),h+=Et.Static;else if(f.type===tr.Param){const{value:p,repeatable:v,optional:g,regexp:y}=f;s.push({name:p,repeatable:v,optional:g});const b=y||Ju;if(b!==Ju){h+=Et.BonusCustomRegExp;try{`${b}`}catch(x){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+x.message)}}let w=v?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;d||(w=g&&u.length<2?`(?:/${w})`:"/"+w),g&&(w+="?"),i+=w,h+=Et.Dynamic,g&&(h+=Et.BonusOptional),v&&(h+=Et.BonusRepeatable),b===".*"&&(h+=Et.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=Et.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function a(u){const c=u.match(o),d={};if(!c)return null;for(let f=1;f<c.length;f++){const h=c[f]||"",p=s[f-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of f)if(h.type===tr.Static)c+=h.value;else if(h.type===tr.Param){const{value:p,repeatable:v,optional:g}=h,y=p in u?u[p]:"";if(Kt(y)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=Kt(y)?y.join("/"):y;if(!b)if(g)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);c+=b}}return c||"/"}return{re:o,score:r,keys:s,parse:a,stringify:l}}function a0(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Et.Static+Et.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Et.Static+Et.Segment?1:-1:0}function kh(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const s=a0(r[n],i[n]);if(s)return s;n++}if(Math.abs(i.length-r.length)===1){if(Yu(r))return 1;if(Yu(i))return-1}return i.length-r.length}function Yu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const l0={strict:!1,end:!0,sensitive:!1};function u0(e,t,n){const r=o0(r0(e.path),n),i=Re(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function c0(e,t){const n=[],r=new Map;t=Vu(l0,t);function i(d){return r.get(d)}function s(d,f,h){const p=!h,v=Qu(d);v.aliasOf=h&&h.record;const g=Vu(t,d),y=[v];if("alias"in d){const x=typeof d.alias=="string"?[d.alias]:d.alias;for(const E of x)y.push(Qu(Re({},v,{components:h?h.record.components:v.components,path:E,aliasOf:h?h.record:v})))}let b,w;for(const x of y){const{path:E}=x;if(f&&E[0]!=="/"){const C=f.record.path,P=C[C.length-1]==="/"?"":"/";x.path=f.record.path+(E&&P+E)}if(b=u0(x,f,g),h?h.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&d.name&&!Zu(b)&&o(d.name)),Oh(b)&&l(b),v.children){const C=v.children;for(let P=0;P<C.length;P++)s(C[P],b,h&&h.children[P])}h=h||b}return w?()=>{o(w)}:ui}function o(d){if(Ch(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const f=h0(d,n);n.splice(f,0,d),d.record.name&&!Zu(d)&&r.set(d.record.name,d)}function u(d,f){let h,p={},v,g;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Lr(Xe.MATCHER_NOT_FOUND,{location:d});g=h.record.name,p=Re(Xu(f.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),d.params&&Xu(d.params,h.keys.map(w=>w.name))),v=h.stringify(p)}else if(d.path!=null)v=d.path,h=n.find(w=>w.re.test(v)),h&&(p=h.parse(v),g=h.record.name);else{if(h=f.name?r.get(f.name):n.find(w=>w.re.test(f.path)),!h)throw Lr(Xe.MATCHER_NOT_FOUND,{location:d,currentLocation:f});g=h.record.name,p=Re({},f.params,d.params),v=h.stringify(p)}const y=[];let b=h;for(;b;)y.unshift(b.record),b=b.parent;return{name:g,path:v,params:p,matched:y,meta:f0(y)}}e.forEach(d=>s(d));function c(){n.length=0,r.clear()}return{addRoute:s,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:i}}function Xu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Qu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:d0(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function d0(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Zu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function f0(e){return e.reduce((t,n)=>Re(t,n.meta),{})}function h0(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;kh(e,t[s])<0?r=s:n=s+1}const i=p0(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function p0(e){let t=e;for(;t=t.parent;)if(Oh(t)&&kh(e,t)===0)return t}function Oh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ec(e){const t=jt(oo),n=jt(El),r=Z(()=>{const l=$(e.to);return t.resolve(l)}),i=Z(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Nr.bind(null,c));if(f>-1)return f;const h=tc(l[u-2]);return u>1&&tc(c)===h&&d[d.length-1].path!==h?d.findIndex(Nr.bind(null,l[u-2])):f}),s=Z(()=>i.value>-1&&b0(n.params,r.value.params)),o=Z(()=>i.value>-1&&i.value===n.matched.length-1&&Th(n.params,r.value.params));function a(l={}){if(y0(l)){const u=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ui);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}function v0(e){return e.length===1?e[0]:e}const g0=be({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:ec,setup(e,{slots:t}){const n=Ri(ec(e)),{options:r}=jt(oo),i=Z(()=>({[nc(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[nc(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&v0(t.default(n));return e.custom?s:Rr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),m0=g0;function y0(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function b0(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Kt(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function tc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nc=(e,t,n)=>e??t??n,w0=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=jt(Ta),i=Z(()=>e.route||r.value),s=jt(Ku,0),o=Z(()=>{let u=$(s);const{matched:c}=i.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=Z(()=>i.value.matched[o.value]);fs(Ku,Z(()=>o.value+1)),fs(Jy,a),fs(Ta,i);const l=z();return st(()=>[l.value,a.value,e.name],([u,c,d],[f,h,p])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Nr(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return rc(n.default,{Component:f,route:u});const h=d.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=Rr(f,Re({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return rc(n.default,{Component:g,route:u})||g}}});function rc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Rh=w0;function x0(e){const t=c0(e.routes,e),n=e.parseQuery||Ky,r=e.stringifyQuery||Gu,i=e.history,s=Kr(),o=Kr(),a=Kr(),l=gg(Rn);let u=Rn;vr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Fo.bind(null,L=>""+L),d=Fo.bind(null,Oy),f=Fo.bind(null,Ai);function h(L,ne){let Y,le;return Ch(L)?(Y=t.getRecordMatcher(L),le=ne):le=L,t.addRoute(le,Y)}function p(L){const ne=t.getRecordMatcher(L);ne&&t.removeRoute(ne)}function v(){return t.getRoutes().map(L=>L.record)}function g(L){return!!t.getRecordMatcher(L)}function y(L,ne){if(ne=Re({},ne||l.value),typeof L=="string"){const A=$o(n,L,ne.path),M=t.resolve({path:A.path},ne),F=i.createHref(A.fullPath);return Re(A,M,{params:f(M.params),hash:Ai(A.hash),redirectedFrom:void 0,href:F})}let Y;if(L.path!=null)Y=Re({},L,{path:$o(n,L.path,ne.path).path});else{const A=Re({},L.params);for(const M in A)A[M]==null&&delete A[M];Y=Re({},L,{params:d(A)}),ne.params=d(ne.params)}const le=t.resolve(Y,ne),we=L.hash||"";le.params=c(f(le.params));const _=Ny(r,Re({},L,{hash:Ay(we),path:le.path})),S=i.createHref(_);return Re({fullPath:_,hash:we,query:r===Gu?Wy(L.query):L.query||{}},le,{redirectedFrom:void 0,href:S})}function b(L){return typeof L=="string"?$o(n,L,l.value.path):Re({},L)}function w(L,ne){if(u!==L)return Lr(Xe.NAVIGATION_CANCELLED,{from:ne,to:L})}function x(L){return P(L)}function E(L){return x(Re(b(L),{replace:!0}))}function C(L,ne){const Y=L.matched[L.matched.length-1];if(Y&&Y.redirect){const{redirect:le}=Y;let we=typeof le=="function"?le(L,ne):le;return typeof we=="string"&&(we=we.includes("?")||we.includes("#")?we=b(we):{path:we},we.params={}),Re({query:L.query,hash:L.hash,params:we.path!=null?{}:L.params},we)}}function P(L,ne){const Y=u=y(L),le=l.value,we=L.state,_=L.force,S=L.replace===!0,A=C(Y,le);if(A)return P(Re(b(A),{state:typeof A=="object"?Re({},we,A.state):we,force:_,replace:S}),ne||Y);const M=Y;M.redirectedFrom=ne;let F;return!_&&Ly(r,le,Y)&&(F=Lr(Xe.NAVIGATION_DUPLICATED,{to:M,from:le}),Oe(le,le,!0,!1)),(F?Promise.resolve(F):k(M,le)).catch(D=>gn(D)?gn(D,Xe.NAVIGATION_GUARD_REDIRECT)?D:Ze(D):se(D,M,le)).then(D=>
25{if(D){if(gn(D,Xe.NAVIGATION_GUARD_REDIRECT))return P(Re({replace:S},b(D.to),{state:typeof D.to=="object"?Re({},we,D.to.state):we,force:_}),ne||M)}else D=N(M,le,!0,S,we);return B(M,le,D),D})}function I(L,ne){const Y=w(L,ne);return Y?Promise.reject(Y):Promise.resolve()}function T(L){const ne=Le.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(L):L()}function k(L,ne){let Y;const[le,we,_]=Yy(L,ne);Y=Bo(le.reverse(),"beforeRouteLeave",L,ne);for(const A of le)A.leaveGuards.forEach(M=>{Y.push(Dn(M,L,ne))});const S=I.bind(null,L,ne);return Y.push(S),dt(Y).then(()=>{Y=[];for(const A of s.list())Y.push(Dn(A,L,ne));return Y.push(S),dt(Y)}).then(()=>{Y=Bo(we,"beforeRouteUpdate",L,ne);for(const A of we)A.updateGuards.forEach(M=>{Y.push(Dn(M,L,ne))});return Y.push(S),dt(Y)}).then(()=>{Y=[];for(const A of _)if(A.beforeEnter)if(Kt(A.beforeEnter))for(const M of A.beforeEnter)Y.push(Dn(M,L,ne));else Y.push(Dn(A.beforeEnter,L,ne));return Y.push(S),dt(Y)}).then(()=>(L.matched.forEach(A=>A.enterCallbacks={}),Y=Bo(_,"beforeRouteEnter",L,ne,T),Y.push(S),dt(Y))).then(()=>{Y=[];for(const A of o.list())Y.push(Dn(A,L,ne));return Y.push(S),dt(Y)}).catch(A=>gn(A,Xe.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function B(L,ne,Y){a.list().forEach(le=>T(()=>le(L,ne,Y)))}function N(L,ne,Y,le,we){const _=w(L,ne);if(_)return _;const S=ne===Rn,A=vr?history.state:{};Y&&(le||S?i.replace(L.fullPath,Re({scroll:S&&A&&A.scroll},we)):i.push(L.fullPath,we)),l.value=L,Oe(L,ne,Y,S),Ze()}let ie;function X(){ie||(ie=i.listen((L,ne,Y)=>{if(!re.listening)return;const le=y(L),we=C(le,re.currentRoute.value);if(we){P(Re(we,{replace:!0,force:!0}),le).catch(ui);return}u=le;const _=l.value;vr&&Vy(zu(_.fullPath,Y.delta),so()),k(le,_).catch(S=>gn(S,Xe.NAVIGATION_ABORTED|Xe.NAVIGATION_CANCELLED)?S:gn(S,Xe.NAVIGATION_GUARD_REDIRECT)?(P(Re(b(S.to),{force:!0}),le).then(A=>{gn(A,Xe.NAVIGATION_ABORTED|Xe.NAVIGATION_DUPLICATED)&&!Y.delta&&Y.type===Ea.pop&&i.go(-1,!1)}).catch(ui),Promise.reject()):(Y.delta&&i.go(-Y.delta,!1),se(S,le,_))).then(S=>{S=S||N(le,_,!1),S&&(Y.delta&&!gn(S,Xe.NAVIGATION_CANCELLED)?i.go(-Y.delta,!1):Y.type===Ea.pop&&gn(S,Xe.NAVIGATION_ABORTED|Xe.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),B(le,_,S)}).catch(ui)}))}let q=Kr(),K=Kr(),ae;function se(L,ne,Y){Ze(L);const le=K.list();return le.length?le.forEach(we=>we(L,ne,Y)):console.error(L),Promise.reject(L)}function ze(){return ae&&l.value!==Rn?Promise.resolve():new Promise((L,ne)=>{q.add([L,ne])})}function Ze(L){return ae||(ae=!L,X(),q.list().forEach(([ne,Y])=>L?Y(L):ne()),q.reset()),L}function Oe(L,ne,Y,le){const{scrollBehavior:we}=e;if(!vr||!we)return Promise.resolve();const _=!Y&&qy(zu(L.fullPath,0))||(le||!Y)&&history.state&&history.state.scroll||null;return pl().then(()=>we(L,ne,_)).then(S=>S&&By(S)).catch(S=>se(S,L,ne))}const ke=L=>i.go(L);let Me;const Le=new Set,re={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:v,resolve:y,options:e,push:x,replace:E,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:K.add,isReady:ze,install(L){L.component("RouterLink",m0),L.component("RouterView",Rh),L.config.globalProperties.$router=re,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>$(l)}),vr&&!Me&&l.value===Rn&&(Me=!0,x(i.location).catch(le=>{}));const ne={};for(const le in Rn)Object.defineProperty(ne,le,{get:()=>l.value[le],enumerable:!0});L.provide(oo,re),L.provide(El,kf(ne)),L.provide(Ta,l);const Y=L.unmount;Le.add(L),L.unmount=function(){Le.delete(L),Le.size<1&&(u=Rn,ie&&ie(),ie=null,l.value=Rn,Me=!1,ae=!1),Y()}}};function dt(L){return L.reduce((ne,Y)=>ne.then(()=>T(Y)),Promise.resolve())}return re}function In(){return jt(oo)}function Li(e){return jt(El)}const _0=be({__name:"App",setup(e){return(t,n)=>(R(),pe($(Rh)))}}),E0=be({__name:"Home",setup(e){return In().push("/login"),(n,r)=>(R(),G("div",null,"home"))}}),Ph=/^[a-z0-9]+(-[a-z0-9]+)*$/,ao=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),u={provider:i.length>0?i[0]:r,prefix:l,name:a};return t&&!gs(u)?null:u}const s=i[0],o=s.split("-");if(o.length>1){const a={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!gs(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!gs(a,n)?null:a}return null},gs=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Nh=Object.freeze({left:0,top:0,width:16,height:16}),Fs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),lo=Object.freeze({...Nh,...Fs}),Ca=Object.freeze({...lo,body:"",hidden:!1});function S0(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ic(e,t){const n=S0(e,t);for(const r in Ca)r in Fs?r in e&&!(r in n)&&(n[r]=Fs[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function T0(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=r[o]&&r[o].parent,l=a&&s(a);l&&(i[o]=[a].concat(l))}return i[o]}
25return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function C0(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function o(a){s=ic(r[a]||i[a],s)}return o(t),n.forEach(o),ic(e,s)}function Lh(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=T0(e);for(const i in r){const s=r[i];s&&(t(i,C0(e,i,s)),n.push(i))}return n}const A0={provider:"",aliases:{},not_found:{},...Nh};function Vo(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Dh(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Vo(e,A0))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i||typeof s.body!="string"||!Vo(s,Ca))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],o=s.parent;if(!i||typeof o!="string"||!n[o]&&!r[o]||!Vo(s,Ca))return null}return t}const sc=Object.create(null);function I0(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Dr(e,t){const n=sc[e]||(sc[e]=Object.create(null));return n[t]||(n[t]=I0(e,t))}function Mh(e,t){return Dh(t)?Lh(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function k0(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ii=!1;function Uh(e){return typeof e=="boolean"&&(Ii=e),Ii}function O0(e){const t=typeof e=="string"?ao(e,!0,Ii):e;if(t){const n=Dr(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function R0(e,t){const n=ao(e,!0,Ii);if(!n)return!1;const r=Dr(n.provider,n.prefix);return t?k0(r,n.name,t):(r.missing.add(n.name),!0)}function P0(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ii&&!t&&!e.prefix){let i=!1;return Dh(e)&&(e.prefix="",Lh(e,(s,o)=>{R0(s,o)&&(i=!0)})),i}const n=e.prefix;if(!gs({prefix:n,name:"a"}))return!1;const r=Dr(t,n);return!!Mh(r,e)}const Fh=Object.freeze({width:null,height:null}),$h=Object.freeze({...Fh,...Fs}),N0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,L0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oc(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(N0);if(r===null||!r.length)return e;const i=[];let s=r.shift(),o=L0.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?i.push(s):i.push(Math.ceil(a*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");o=!o}}function D0(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf("</"+t);if(i===-1||s===-1)break;const o=e.indexOf(">",s);if(o===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function M0(e,t){return e?"<defs>"+e+"</defs>"+t:t}function U0(e,t,n){const r=D0(e);return M0(r.defs,t+r.content+n)}const F0=e=>e==="unset"||e==="undefined"||e==="none";function $0(e,t){const n={...lo,...e},r={...$h,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(v=>{const g=[],y=v.hFlip,b=v.vFlip;let w=v.rotate;y?b?w+=2:(g.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),g.push("scale(-1 1)"),i.top=i.left=0):b&&(g.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),g.push("scale(1 -1)"),i.top=i.left=0);let x;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:x=i.height/2+i.top,g.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:g.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:x=i.width/2+i.left,g.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}w%2===1&&(i.left!==i.top&&(x=i.left,i.left=i.top,i.top=x),i.width!==i.height&&(x=i.width,i.width=i.height,i.height=x)),g.length&&(s=U0(s,'<g transform="'+g.join(" ")+'">',"</g>"))});const o=r.width,a=r.height,l=i.width,u=i.height;let c,d;o===null?(d=a===null?"1em":a==="auto"?u:a,c=oc(d,l/u)):(c=o==="auto"?l:o,d=a===null?oc(c,u/l):a==="auto"?u:a);const f={},h=(v,g)=>{F0(g)||(f[v]=g.toString())};h("width",c),h("height",d);const p=[i.left,i.top,l,u];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:s}}const j0=/\sid="(\S+)"/g,B0="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let V0=0;function q0(e,t=B0){const n=[];let r;for(;r=j0.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);
25return n.forEach(s=>{const o=typeof t=="function"?t(s):t+(V0++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Aa=Object.create(null);function H0(e,t){Aa[e]=t}function Ia(e){return Aa[e]||Aa[""]}function Sl(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Tl=Object.create(null),Wr=["https://api.simplesvg.com","https://api.unisvg.com"],ms=[];for(;Wr.length>0;)Wr.length===1||Math.random()>.5?ms.push(Wr.shift()):ms.push(Wr.pop());Tl[""]=Sl({resources:["https://api.iconify.design"].concat(ms)});function z0(e,t){const n=Sl(t);return n===null?!1:(Tl[e]=n,!0)}function Cl(e){return Tl[e]}const G0=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ac=G0();function K0(e,t){const n=Cl(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function W0(e){return e===404}const J0=(e,t,n)=>{const r=[],i=K0(e,t),s="icons";let o={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=i&&u>0&&(r.push(o),o={type:s,provider:e,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),r.push(o),r};function Y0(e){if(typeof e=="string"){const t=Cl(e);if(t)return t.path}return"/"}const X0=(e,t,n)=>{if(!ac){n("abort",424);return}let r=Y0(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;ac(e+r).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(W0(o)?"abort":"next",o)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},Q0={prepare:J0,send:X0};function Z0(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,o=i.prefix,a=i.name,l=n[s]||(n[s]=Object.create(null)),u=l[o]||(l[o]=Dr(s,o));let c;a in u.icons?c=t.loaded:o===""||u.missing.has(a)?c=t.missing:c=t.pending;const d={provider:s,prefix:o,name:a};c.push(d)}),t}function jh(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function eb(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const o=s.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const u=l.name;if(e.icons[u])o.loaded.push({provider:r,prefix:i,name:u});else if(e.missing.has(u))o.missing.push({provider:r,prefix:i,name:u});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||jh([e],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let tb=0;function nb(e,t,n){const r=tb++,i=jh.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),i}function rb(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?ao(i,t,n):i;s&&r.push(s)}),r}var ib={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sb(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let C=e.resources.slice(0);for(o=[];C.length>1;){const P=Math.floor(Math.random()*C.length);o.push(C[P]),C=C.slice(0,P).concat(C.slice(P+1))}o=o.concat(C)}else o=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",u=0,c,d=null,f=[],h=[];typeof r=="function"&&h.push(r);function p(){d&&(clearTimeout(d),d=null)}function v(){l==="pending"&&(l="aborted"),p(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function g(C,P){P&&(h=[]),typeof C=="function"&&h.push(C)}function y(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:g,abort:v}}function b(){l="failed",h.forEach(C=>{C(void 0,c)})}function w(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function x(C,P,I){const T=P!=="success";switch(f=f.filter(k=>
25k!==C),l){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(P==="abort"){c=I,b();return}if(T){c=I,f.length||(o.length?E():b());return}if(p(),w(),!e.random){const k=e.resources.indexOf(C.resource);k!==-1&&k!==e.index&&(e.index=k)}l="completed",h.forEach(k=>{k(I)})}function E(){if(l!=="pending")return;p();const C=o.shift();if(C===void 0){if(f.length){d=setTimeout(()=>{p(),l==="pending"&&(w(),b())},e.timeout);return}b();return}const P={status:"pending",resource:C,callback:(I,T)=>{x(P,I,T)}};f.push(P),u++,d=setTimeout(E,e.rotate),n(C,t,P.callback)}return setTimeout(E),y}function Bh(e){const t={...ib,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,l,u){const c=sb(t,a,l,(d,f)=>{r(),u&&u(d,f)});return n.push(c),c}function s(a){return n.find(l=>a(l))||null}return{query:i,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function lc(){}const qo=Object.create(null);function ob(e){if(!qo[e]){const t=Cl(e);if(!t)return;const n=Bh(t),r={config:t,redundancy:n};qo[e]=r}return qo[e]}function ab(e,t,n){let r,i;if(typeof e=="string"){const s=Ia(e);if(!s)return n(void 0,424),lc;i=s.send;const o=ob(e);o&&(r=o.redundancy)}else{const s=Sl(e);if(s){r=Bh(s);const o=e.resources?e.resources[0]:"",a=Ia(o);a&&(i=a.send)}}return!r||!i?(n(void 0,424),lc):r.query(t,i,n)().abort}function uc(){}function lb(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,eb(e)}))}function ub(e){const t=[],n=[];return e.forEach(r=>{(r.match(Ph)?t:n).push(r)}),{valid:t,invalid:n}}function Jr(e,t,n){function r(){const i=e.pendingIcons;t.forEach(s=>{i&&i.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!Mh(e,n).length){r();return}}catch(i){console.error(i)}r(),lb(e)}function cc(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function cb(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const s=e.loadIcon;if(e.loadIcons&&(i.length>1||!s)){cc(e.loadIcons(i,r,n),c=>{Jr(e,i,c)});return}if(s){i.forEach(c=>{const d=s(c,r,n);cc(d,f=>{const h=f?{prefix:r,icons:{[c]:f}}:null;Jr(e,[c],h)})});return}const{valid:o,invalid:a}=ub(i);if(a.length&&Jr(e,a,null),!o.length)return;const l=r.match(Ph)?Ia(n):null;if(!l){Jr(e,o,null);return}
25l.prepare(n,r,o).forEach(c=>{ab(n,c,d=>{Jr(e,c.icons,d)})})}))}const db=(e,t)=>{const n=rb(e,!0,Uh()),r=Z0(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,uc)}),()=>{l=!1}}const i=Object.create(null),s=[];let o,a;return r.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===a&&u===o)return;o=u,a=c,s.push(Dr(u,c));const d=i[u]||(i[u]=Object.create(null));d[c]||(d[c]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:c,name:d}=l,f=Dr(u,c),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),i[u][c].push(d))}),s.forEach(l=>{const u=i[l.provider][l.prefix];u.length&&cb(l,u)}),t?nb(t,r,s):uc};function fb(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in Fh?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const hb=/[\s,]+/;function pb(e,t){t.split(hb).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function vb(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function gb(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function mb(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function yb(e){return"data:image/svg+xml,"+mb(e)}function bb(e){return'url("'+yb(e)+'")'}const dc={...$h,inline:!1},wb={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},xb={display:"inline-block"},ka={backgroundColor:"currentColor"},Vh={backgroundColor:"transparent"},fc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},hc={webkitMask:ka,mask:ka,background:Vh};for(const e in hc){const t=hc[e];for(const n in fc)t[e+n]=fc[n]}const ys={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";ys[e+"-flip"]=t,ys[e.slice(0,1)+"-flip"]=t,ys[e+"Flip"]=t});function pc(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const vc=(e,t)=>{const n=fb(dc,t),r={...wb},i=t.mode||"svg",s={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in t){const g=t[v];if(g!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[v]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&pb(n,g);break;case"color":s.color=g;break;case"rotate":typeof g=="string"?n[v]=vb(g):typeof g=="number"&&(n[v]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete r["aria-hidden"];break;default:{const y=ys[v];y?(g===!0||g==="true"||g===1)&&(n[y]=!0):dc[v]===void 0&&(r[v]=g)}}}const l=$0(e,n),u=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){r.style={...s,...a},Object.assign(r,u);let v=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),r.innerHTML=q0(l.body,g?()=>g+"ID"+v++:"iconifyVue"),Rr("svg",r)}const{body:c,width:d,height:f}=e,h=i==="mask"||(i==="bg"?!1:c.indexOf("currentColor")!==-1),p=gb(c,{...u,width:d+"",height:f+""});return r.style={...s,"--svg":bb(p),width:pc(u.width),height:pc(u.height),...xb,...h?ka:Vh,...a},Rr("span",r)};Uh(!0);H0("",Q0);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!P0(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;z0(n,i)||console.error(r)}catch{console.error(r)}}}}const _b={...lo,body:""},he=be({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()}
25,methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=ao(e,!1,!0))===null)return this.abortLoading(),null;let i=O0(r);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:e,abort:db([r],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){i=Object.assign({},i);const o=n(i.body,r.name,r.prefix,r.provider);typeof o=="string"&&(i.body=o)}const s=["iconify"];return r.prefix!==""&&s.push("iconify--"+r.prefix),r.provider!==""&&s.push("iconify--"+r.provider),{data:i,classes:s}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return vc(_b,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),vc({...lo,...t.data},n)}}),Eb={class:"w-full"},Sb={class:"block text-base font-medium text-blackText"},Tb={class:"relative"},Cb=["type","disabled","placeholder"],Ab={key:0,class:"absolute right-4 translate-y-4 mt-2"},Ib={key:1,class:"absolute right-4 translate-y-4 mt-2"},kb={key:0,class:"h-5"},Lt=be({__name:"Input",props:{label:{default:""},placeholder:{default:""},value:{},variant:{default:"default"},type:{default:"text"},message:{default:""},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e,r=z(!1),i=t,s=o=>{const a=o.target;!n.disabled&&i("change",a.value)};return(o,a)=>(R(),G("div",Eb,[m("div",null,[m("label",Sb,_e(e.label),1),m("div",Tb,[m("input",{onInput:s,type:e.type==="password"&&r.value?"text":e.type,disabled:e.disabled,placeholder:e.placeholder,class:Se(["duration-300 w-full mb-2 mt-4 rounded-md border py-2 px-4 text-blackText outline-none transition",{"bg-grayDisabled border-grayDisabled ":e.disabled,"border-blueLight focus:border-primary ":e.variant==="primary"&&!e.disabled,"border-success focus:border-successLight ":e.variant==="success"&&!e.disabled,"border-error focus:border-errorLight ":e.variant==="error"&&!e.disabled,"border-grayBorder2 focus:border-grayBorder ":e.variant==="default"&&!e.disabled}])},null,42,Cb),o.$slots.startIcon?(R(),G("span",Ab,[_i(o.$slots,"startIcon")])):Ie("",!0),o.$slots.endIcon?(R(),G("span",Ib,[_i(o.$slots,"endIcon")])):Ie("",!0),e.type==="password"?(R(),G("span",{key:2,class:"absolute right-4 translate-y-4 mt-2 cursor-pointer",onClick:a[0]||(a[0]=l=>r.value=!r.value)},[U($(he),{icon:r.value?"lucide:eye-closed":"lucide:eye",width:"24",height:"24"},null,8,["icon"])])):Ie("",!0)]),e.message?(R(),G("div",kb,[m("p",{class:Se(["text-sm",{"text-primaryText":e.variant==="primary","text-success":e.variant==="success","text-error":e.variant==="error"}])},_e(e.message),3)])):Ie("",!0)])]))}}),Ob=be({__name:"Spinner",props:{size:{},color:{}},setup(e){const t=e;return(n,r)=>(R(),G("div",null,[U($(he),{icon:"gg:spinner",width:t.size==="s"?20:t.size==="l"?35:25,height:t.size==="s"?20:t.size==="l"?35:25,style:Vn({color:t.color=="primary"?"#3758F9":t.color==="secondary"?"#F27430":t.color==="white"?"#fff":"#000"}),class:"animate-spin mx-auto"}
25,null,8,["width","height","style"])]))}}),Rb={primary:{primary:"bg-primary text-white hover:bg-primaryDark",secondary:"bg-white text-primary shadow-md",outline:"bg-white border border-primary text-primary hover:bg-primaryLight"},secondary:{primary:"bg-secondary text-white hover:bg-secondaryDark",secondary:"bg-white text-secondary shadow-md",outline:"bg-white border border-secondary text-secondary hover:bg-secondaryLight"}},Pb=(e,t,n,r)=>{const i=r?`w-[${r}]`:"w-fit";return n?`bg-grayDisabled text-white ${i}`:`${Rb[t][e]||""} ${i}`},Nb=["disabled"],Lb={class:"absolute inset-0 flex items-center justify-center"},De=be({__name:"Button",props:{label:{},color:{default:"primary"},size:{default:"medium"},variant:{default:"primary"},disabled:{type:Boolean,default:!1},loading:{type:Boolean},width:{},icon:{}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,i=Z(()=>({"rounded-lg  transition duration-300 whitespace-nowrap text-center relative":!0,[Pb(n.variant||"primary",n.color||"primary",n.disabled||!1,n.width)]:!0,"py-1 px-4 text-sm":n.size==="small","py-2 px-6 text-base":n.size==="medium","py-2 px-10 text-lg":n.size==="large"})),s=o=>{!n.disabled&&r("click",o)};return(o,a)=>(R(),G("button",{type:"button",class:Se(i.value),onClick:a[0]||(a[0]=l=>s(l)),disabled:e.disabled||e.loading},[m("div",Lb,[e.loading?(R(),pe(Ob,{key:0,size:n.size==="small"?"s":n.size==="large"?"l":"m",color:n.variant==="primary"?"white":n.color==="primary"?"primary":n.color==="secondary"?"secondary":"black"},null,8,["size","color"])):Ie("",!0)]),m("span",{class:Se([e.loading?"text-transparent":"","inline-flex items-center gap-2",e.size==="large"?"text-lg":"text-base",!e.loading&&"cursor-pointer"])},[yt(_e(e.label)+" ",1),e.icon&&!e.loading?(R(),pe($(he),{key:0,icon:e.icon,class:Se(e.size==="small"?"w-4 h-4":"w-5 h-5")},null,8,["icon","class"])):Ie("",!0)],2)],10,Nb))}}),Db="/assets/ba_text-Flq9jn85.svg";/*!
26 * pinia v2.3.1
27 * (c) 2025 Eduardo San Martin Morote
28 * @license MIT
29 */let qh;const uo=e=>qh=e,Hh=Symbol();function Oa(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ci;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ci||(ci={}));function Mb(){const e=hf(!0),t=e.run(()=>z({}));let n=[],r=[];const i=hl({install(s){uo(i),i._a=s,s.provide(Hh,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const zh=()=>{};function gc(e,t,n,r=zh){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&pf()&&Yv(i),i}function dr(e,...t){e.slice().forEach(n=>{n(...t)})}const Ub=e=>e(),mc=Symbol(),Ho=Symbol();function Ra(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Oa(i)&&Oa(r)&&e.hasOwnProperty(n)&&!Ye(r)&&!En(r)?e[n]=Ra(i,r):e[n]=r}return e}const Fb=Symbol();function $b(e){return!Oa(e)||!e.hasOwnProperty(Fb)}const{assign:Pn}=Object;function jb(e){return!!(Ye(e)&&e.effect)}function Bb(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=i?i():{});const c=bg(n.state.value[e]);return Pn(c,s,Object.keys(o||{}).reduce((d,f)=>(d[f]=hl(Z(()=>{uo(n);const h=n._s.get(e);return o[f].call(h,h)})),d),{}))}return l=Gh(e,u,t,n,r,!0),l}function Gh(e,t,n={},r,i,s){let o;const a=Pn({actions:{}},n),l={deep:!0};let u,c,d=[],f=[],h;const p=r.state.value[e];!s&&!p&&(r.state.value[e]={}),z({});let v;function g(I){let T;u=c=!1,typeof I=="function"?(I(r.state.value[e]),T={type:ci.patchFunction,storeId:e,events:h}):(Ra(r.state.value[e],I),T={type:ci.patchObject,payload:I,storeId:e,events:h});const k=v=Symbol();pl().then(()=>{v===k&&(u=!0)}),c=!0,dr(d,T,r.state.value[e])}const y=s?function(){const{state:T}=n,k=T?T():{};this.$patch(B=>{Pn(B,k)})}:zh;function b(){o.stop(),d=[],f=[],r._s.delete(e)}const w=(I,T="")=>{if(mc in I)return I[Ho]=T,I;const k=function(){uo(r);const B=Array.from(arguments),N=[],ie=[];function X(ae){N.push(ae)}function q(ae){ie.push(ae)}dr(f,{args:B,name:k[Ho],store:E,after:X,onError:q});let K;try{K=I.apply(this&&this.$id===e?this:E,B)}catch(ae){throw dr(ie,ae),ae}return K instanceof Promise?K.then(ae=>(dr(N,ae),ae)).catch(ae=>(dr(ie,ae),Promise.reject(ae))):(dr(N,K),K)};return k[mc]=!0,k[Ho]=T,k}
29,x={_p:r,$id:e,$onAction:gc.bind(null,f),$patch:g,$reset:y,$subscribe(I,T={}){const k=gc(d,I,T.detached,()=>B()),B=o.run(()=>st(()=>r.state.value[e],N=>{(T.flush==="sync"?c:u)&&I({storeId:e,type:ci.direct,events:h},N)},Pn({},l,T)));return k},$dispose:b},E=Ri(x);r._s.set(e,E);const P=(r._a&&r._a.runWithContext||Ub)(()=>r._e.run(()=>(o=hf()).run(()=>t({action:w}))));for(const I in P){const T=P[I];if(Ye(T)&&!jb(T)||En(T))s||(p&&$b(T)&&(Ye(T)?T.value=p[I]:Ra(T,p[I])),r.state.value[e][I]=T);else if(typeof T=="function"){const k=w(T,I);P[I]=k,a.actions[I]=T}}return Pn(E,P),Pn(Ce(E),P),Object.defineProperty(E,"$state",{get:()=>r.state.value[e],set:I=>{g(T=>{Pn(T,I)})}}),r._p.forEach(I=>{Pn(E,o.run(()=>I({store:E,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(E.$state,p),u=!0,c=!0,E}/*! #__NO_SIDE_EFFECTS__ */function Di(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function o(a,l){const u=tm();return a=a||(u?jt(Hh,null):null),a&&uo(a),a=qh,a._s.has(r)||(s?Gh(r,t,i,a):Bb(r,i,a)),a._s.get(r)}return o.$id=r,o}function Vb(e){{const t=Ce(e),n={};for(const r in t){const i=t[r];i.effect?n[r]=Z({get:()=>e[r],set(s){e[r]=s}}):(Ye(i)||En(i))&&(n[r]=_g(e,r))}return n}}const qb="modulepreload",Hb=function(e){return"/"+e},yc={},Kh=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Hb(l),l in yc)return;yc[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":qb,u||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function Wh(e,t){return function(){return e.apply(t,arguments)}}const{toString:zb}=Object.prototype,{getPrototypeOf:Al}=Object,{iterator:co,toStringTag:Jh}=Symbol,fo=(e=>t=>{const n=zb.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wt=e=>(e=e.toLowerCase(),t=>fo(t)===e),ho=e=>t=>typeof t===e,{isArray:$r}=Array,Mr=ho("undefined");function Mi(e){return e!==null&&!Mr(e)&&e.constructor!==null&&!Mr(e.constructor)&&Ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yh=Wt("ArrayBuffer");function Gb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yh(e.buffer),t}const Kb=ho("string"),Ot=ho("function"),Xh=ho("number"),Ui=e=>e!==null&&typeof e=="object",Wb=e=>e===!0||e===!1,bs=e=>{if(fo(e)!=="object")return!1;const t=Al(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Jh in e)&&!(co in e)},Jb=e=>{if(!Ui(e)||Mi(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Yb=Wt("Date"),Xb=Wt("File"),Qb=Wt("Blob"),Zb=Wt("FileList"),e2=e=>Ui(e)&&Ot(e.pipe),t2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ot(e.append)&&((t=fo(e))==="formdata"||t==="object"&&Ot(e.toString)&&e.toString()==="[object FormData]"))},n2=Wt("URLSearchParams"),[r2,i2,s2,o2]=["ReadableStream","Request","Response","Headers"].map(Wt),a2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),$r(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Mi(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function Qh(e,t){if(Mi(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zh=e=>!Mr(e)&&e!==nr;function Pa(){const{caseless:e,skipUndefined:t}=Zh(this)&&this||{},n={},r=(i,s)=>{const o=e&&Qh(n,s)||s;bs(n[o])&&bs(i)?n[o]=Pa(n[o],i):bs(i)?n[o]=Pa({},i):$r(i)?n[o]=i.slice():(!t||!Mr(i))&&(n[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Fi(arguments[i],r);return n}const l2=(e,t,n,{allOwnKeys:r}={})=>(Fi(t,(i,s)=>{n&&Ot(i)?e[s]=Wh(i,n):e[s]=i},{allOwnKeys:r}),e),u2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),c2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},d2=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Al(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},f2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},h2=e=>{if(!e)return null;if($r(e))return e;let t=e.length;if(!Xh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},p2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Al(Uint8Array)),v2=(e,t)=>{const r=(e&&e[co]).call(e);let i;for(;
29(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},g2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},m2=Wt("HTMLFormElement"),y2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),bc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),b2=Wt("RegExp"),ep=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fi(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},w2=e=>{ep(e,(t,n)=>{if(Ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ot(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},x2=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return $r(e)?r(e):r(String(e).split(t)),n},_2=()=>{},E2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function S2(e){return!!(e&&Ot(e.append)&&e[Jh]==="FormData"&&e[co])}const T2=e=>{const t=new Array(10),n=(r,i)=>{if(Ui(r)){if(t.indexOf(r)>=0)return;if(Mi(r))return r;if(!("toJSON"in r)){t[i]=r;const s=$r(r)?[]:{};return Fi(r,(o,a)=>{const l=n(o,i+1);!Mr(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},C2=Wt("AsyncFunction"),A2=e=>e&&(Ui(e)||Ot(e))&&Ot(e.then)&&Ot(e.catch),tp=((e,t)=>e?setImmediate:t?((n,r)=>(nr.addEventListener("message",({source:i,data:s})=>{i===nr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),nr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ot(nr.postMessage)),I2=typeof queueMicrotask<"u"?queueMicrotask.bind(nr):typeof process<"u"&&process.nextTick||tp,k2=e=>e!=null&&Ot(e[co]),O={isArray:$r,isArrayBuffer:Yh,isBuffer:Mi,isFormData:t2,isArrayBufferView:Gb,isString:Kb,isNumber:Xh,isBoolean:Wb,isObject:Ui,isPlainObject:bs,isEmptyObject:Jb,isReadableStream:r2,isRequest:i2,isResponse:s2,isHeaders:o2,isUndefined:Mr,isDate:Yb,isFile:Xb,isBlob:Qb,isRegExp:b2,isFunction:Ot,isStream:e2,isURLSearchParams:n2,isTypedArray:p2,isFileList:Zb,forEach:Fi,merge:Pa,extend:l2,trim:a2,stripBOM:u2,inherits:c2,toFlatObject:d2,kindOf:fo,kindOfTest:Wt,endsWith:f2,toArray:h2,forEachEntry:v2,matchAll:g2,isHTMLForm:m2,hasOwnProperty:bc,hasOwnProp:bc,reduceDescriptors:ep,freezeMethods:w2,toObjectSet:x2,toCamelCase:y2,noop:_2,toFiniteNumber:E2,findKey:Qh,global:nr,isContextDefined:Zh,isSpecCompliantForm:S2,toJSONObject:T2,isAsyncFn:C2,isThenable:A2,setImmediate:tp,asap:I2,isIterable:k2};function me(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const np=me.prototype,rp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rp[e]={value:e}});Object.defineProperties(me,rp);Object.defineProperty(np,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,s)=>{const o=Object.create(np);O.toFlatObject(e,o,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return me.call(o,a,l,n,r,i),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",s&&Object.assign(o,s),o};const O2=null;function Na(e){return O.isPlainObject(e)||O.isArray(e)}function ip(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function wc(e,t,n){return e?e.concat(t).map(function(i,s){return i=ip(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function R2(e){return O.isArray(e)&&!e.some(Na)}const P2=O.toFlatObject(O,{},null,function(t){return/^is[A-Z]/.test(t)});
vendor: 4,171 bytes, line 29
29function po(e,t,n){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!O.isUndefined(g[v])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(O.isDate(p))return p.toISOString();if(O.isBoolean(p))return p.toString();if(!l&&O.isBlob(p))throw new me("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(p)||O.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,g){let y=p;if(p&&!g&&typeof p=="object"){if(O.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(O.isArray(p)&&R2(p)||(O.isFileList(p)||O.endsWith(v,"[]"))&&(y=O.toArray(p)))return v=ip(v),y.forEach(function(w,x){!(O.isUndefined(w)||w===null)&&t.append(o===!0?wc([v],x,s):o===null?v:v+"[]",u(w))}),!1}return Na(p)?!0:(t.append(wc(g,v,s),u(p)),!1)}const d=[],f=Object.assign(P2,{defaultVisitor:c,convertValue:u,isVisitable:Na});function h(p,v){if(!O.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(p),O.forEach(p,function(y,b){(!(O.isUndefined(y)||y===null)&&i.call(t,y,O.isString(b)?b.trim():b,v,f))===!0&&h(y,v?v.concat(b):[b])}),d.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return h(e),t}function xc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Il(e,t){this._pairs=[],e&&po(e,this,t)}const sp=Il.prototype;sp.append=function(t,n){this._pairs.push([t,n])};sp.toString=function(t){const n=t?function(r){return t.call(this,r,xc)}:xc;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function N2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function op(e,t,n){if(!t)return e;const r=n&&n.encode||N2;O.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=O.isURLSearchParams(t)?t.toString():new Il(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class _c{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ap={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},L2=typeof URLSearchParams<"u"?URLSearchParams:Il,D2=typeof FormData<"u"?FormData:null,M2=typeof Blob<"u"?Blob:null,U2={isBrowser:!0,classes:{URLSearchParams:L2,FormData:D2,Blob:M2},protocols:["http","https","file","blob","url","data"]},kl=typeof window<"u"&&typeof document<"u",La=typeof navigator=="object"&&navigator||void 0,F2=kl&&(!La||["ReactNative","NativeScript","NS"].indexOf(La.product)<0),$2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",j2=kl&&window.location.href||"http://localhost",B2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kl,hasStandardBrowserEnv:F2,hasStandardBrowserWebWorkerEnv:$2,navigator:La,origin:j2},Symbol.toStringTag,{value:"Module"})),gt={...B2,...U2};function V2(e,t){return po(e,new gt.classes.URLSearchParams,{visitor:function(n,r,i,s){return gt.isNode&&O.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function q2(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function H2(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function lp(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=n.length;return o=!o&&O.isArray(i)?i.length:o,l?(O.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!O.isObject(i[o]))&&
vendor: 5,349 bytes, lines 29-31
29(i[o]=[]),t(n,r,i[o],s)&&O.isArray(i[o])&&(i[o]=H2(i[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const n={};return O.forEachEntry(e,(r,i)=>{t(q2(r),i,n,0)}),n}return null}function z2(e,t,n){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const $i={transitional:ap,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=O.isObject(t);if(s&&O.isHTMLForm(t)&&(t=new FormData(t)),O.isFormData(t))return i?JSON.stringify(lp(t)):t;if(O.isArrayBuffer(t)||O.isBuffer(t)||O.isStream(t)||O.isFile(t)||O.isBlob(t)||O.isReadableStream(t))return t;if(O.isArrayBufferView(t))return t.buffer;if(O.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return V2(t,this.formSerializer).toString();if((a=O.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return po(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),z2(t)):t}],transformResponse:[function(t){const n=this.transitional||$i.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(O.isResponse(t)||O.isReadableStream(t))return t;if(t&&O.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?me.from(a,me.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{$i.headers[e]={}});const G2=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),K2=e=>{const t={};let n,r,i;return e&&e.split(`
30`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&G2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ec=Symbol("internals");function Yr(e){return e&&String(e).trim().toLowerCase()}function ws(e){return e===!1||e==null?e:O.isArray(e)?e.map(ws):String(e)}function W2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const J2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zo(e,t,n,r,i){if(O.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!O.isString(t)){if(O.isString(r))return t.indexOf(r)!==-1;if(O.isRegExp(r))return r.test(t)}}function Y2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function X2(e,t){const n=O.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let Rt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,u){const c=Yr(l);if(!c)throw new Error("header name must be a non-empty string");const d=O.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=ws(a))}const o=(a,l)=>O.forEach(a,(u,c)=>s(u,c,l));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(O.isString(t)&&(t=t.trim())&&!J2(t))o(K2(t),n);else if(O.isObject(t)&&O.isIterable(t)){let a={},l,u;for(const c of t){if(!O.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?O.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Yr(t),t){const r=O.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return W2(i);if(O.isFunction(n))return n.call(this,i,r);if(O.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Yr(t),t){const r=O.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Yr(o),o){const a=O.findKey(r,o);a&&(!n||zo(r,r[a],a,n))&&(delete r[a],i=!0)}}return O.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||zo(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return O.forEach(this,(i,s)=>{const o=O.findKey(r,s);if(o){n[o]=ws(i),delete n[s];return}const a=t?Y2(s):String(s).trim();a!==s&&delete n[s],n[a]=ws(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return O.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&O.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
31`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);
31return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Ec]=this[Ec]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Yr(o);r[a]||(X2(i,o),r[a]=!0)}return O.isArray(t)?t.forEach(s):s(t),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(Rt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});O.freezeMethods(Rt);function Go(e,t){const n=this||$i,r=t||n,i=Rt.from(r.headers);let s=r.data;return O.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function up(e){return!!(e&&e.__CANCEL__)}function jr(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}O.inherits(jr,me,{__CANCEL__:!0});function cp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Q2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Z2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];o||(o=u),n[i]=l,r[i]=u;let d=s,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const h=c&&u-c;return h?Math.round(f*1e3/h):void 0}}function ew(e,t){let n=0,r=1e3/t,i,s;const o=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?o(u,c):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},r-d)))},()=>i&&o(i)]}const $s=(e,t,n=3)=>{let r=0;const i=Z2(50,250);return ew(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,u=i(l),c=o<=a;r=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Sc=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Tc=e=>(...t)=>O.asap(()=>e(...t)),tw=gt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,gt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,nw=gt.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];O.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),O.isString(r)&&o.push("path="+r),O.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dp(e,t,n){let r=!rw(t);return e&&(r||n==!1)?iw(e,t):t}const Cc=e=>e instanceof Rt?{...e}:e;function ur(e,t){t=t||{};const n={};function r(u,c,d,f){return O.isPlainObject(u)&&O.isPlainObject(c)?O.merge.call({caseless:f},u,c):O.isPlainObject(c)?O.merge({},c):O.isArray(c)?c.slice():c}
vendor: 5,791 bytes, line 31
31function i(u,c,d,f){if(O.isUndefined(c)){if(!O.isUndefined(u))return r(void 0,u,d,f)}else return r(u,c,d,f)}function s(u,c){if(!O.isUndefined(c))return r(void 0,c)}function o(u,c){if(O.isUndefined(c)){if(!O.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c,d)=>i(Cc(u),Cc(c),d,!0)};return O.forEach(Object.keys({...e,...t}),function(c){const d=l[c]||i,f=d(e[c],t[c],c);O.isUndefined(f)&&d!==a||(n[c]=f)}),n}const fp=e=>{const t=ur({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;if(t.headers=o=Rt.from(o),t.url=op(dp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),O.isFormData(n)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(O.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,d])=>{u.includes(c.toLowerCase())&&o.set(c,d)})}}if(gt.hasStandardBrowserEnv&&(r&&O.isFunction(r)&&(r=r(t)),r||r!==!1&&tw(t.url))){const l=i&&s&&nw.read(s);l&&o.set(i,l)}return t},sw=typeof XMLHttpRequest<"u",ow=sw&&function(e){return new Promise(function(n,r){const i=fp(e);let s=i.data;const o=Rt.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,c,d,f,h,p;function v(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function y(){if(!g)return;const w=Rt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};cp(function(P){n(P),v()},function(P){r(P),v()},E),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new me("Request aborted",me.ECONNABORTED,e,g)),g=null)},g.onerror=function(x){const E=x&&x.message?x.message:"Network Error",C=new me(E,me.ERR_NETWORK,e,g);C.event=x||null,r(C),g=null},g.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||ap;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new me(x,E.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,g)),g=null},s===void 0&&o.setContentType(null),"setRequestHeader"in g&&O.forEach(o.toJSON(),function(x,E){g.setRequestHeader(E,x)}),O.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),a&&a!=="json"&&(g.responseType=i.responseType),u&&([f,p]=$s(u,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=$s(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{g&&(r(!w||w.type?new jr(null,e,g):w),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=Q2(i.url);if(b&&gt.protocols.indexOf(b)===-1){r(new me("Unsupported protocol "+b+":",me.ERR_BAD_REQUEST,e));return}g.send(s||null)})},aw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof me?c:new jr(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>O.asap(a),l}},lw=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},uw=async function*(e,t){for await(const n of cw(e))yield*lw(n,t)},cw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ac=(e,t,n,r)=>{const i=uw(e,t);let s=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){a(),l.close();return}let d=c.byteLength;if(n){let f=s+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Ic=64*1024,{isFunction:es}=O,dw=(({Request:e,Response:t})=>({Request:e,Response:t}))(O.global),{ReadableStream:kc,TextEncoder:Oc}=O.global,Rc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fw=e=>{e=O.merge.call({skipUndefined:!0},dw,e);const{fetch:t,Request:n,Response:r}=e,i=t?es(t):typeof fetch=="function",s=es(n),o=es(r);if(!i)return!1;const a=i&&es(kc),l=i&&(typeof Oc=="function"?(p=>v=>p.encode(v))(new Oc):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=s&&a&&Rc(()=>{let p=!1;const v=new n(gt.origin,{body:new kc,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!v}),c=o&&a&&Rc(()=>O.isReadableStream(new r("").body)),d={stream:c&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(v,g)=>{let y=v&&v[p];
vendor: 4,340 bytes, lines 31-33
31if(y)return y.call(v);throw new me(`Response type '${p}' is not supported`,me.ERR_NOT_SUPPORT,g)})});const f=async p=>{if(p==null)return 0;if(O.isBlob(p))return p.size;if(O.isSpecCompliantForm(p))return(await new n(gt.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(O.isArrayBufferView(p)||O.isArrayBuffer(p))return p.byteLength;if(O.isURLSearchParams(p)&&(p=p+""),O.isString(p))return(await l(p)).byteLength},h=async(p,v)=>{const g=O.toFiniteNumber(p.getContentLength());return g??f(v)};return async p=>{let{url:v,method:g,data:y,signal:b,cancelToken:w,timeout:x,onDownloadProgress:E,onUploadProgress:C,responseType:P,headers:I,withCredentials:T="same-origin",fetchOptions:k}=fp(p),B=t||fetch;P=P?(P+"").toLowerCase():"text";let N=aw([b,w&&w.toAbortSignal()],x),ie=null;const X=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let q;try{if(C&&u&&g!=="get"&&g!=="head"&&(q=await h(I,y))!==0){let Oe=new n(v,{method:"POST",body:y,duplex:"half"}),ke;if(O.isFormData(y)&&(ke=Oe.headers.get("content-type"))&&I.setContentType(ke),Oe.body){const[Me,Le]=Sc(q,$s(Tc(C)));y=Ac(Oe.body,Ic,Me,Le)}}O.isString(T)||(T=T?"include":"omit");const K=s&&"credentials"in n.prototype,ae={...k,signal:N,method:g.toUpperCase(),headers:I.normalize().toJSON(),body:y,duplex:"half",credentials:K?T:void 0};ie=s&&new n(v,ae);let se=await(s?B(ie,k):B(v,ae));const ze=c&&(P==="stream"||P==="response");if(c&&(E||ze&&X)){const Oe={};["status","statusText","headers"].forEach(re=>{Oe[re]=se[re]});const ke=O.toFiniteNumber(se.headers.get("content-length")),[Me,Le]=E&&Sc(ke,$s(Tc(E),!0))||[];se=new r(Ac(se.body,Ic,Me,()=>{Le&&Le(),X&&X()}),Oe)}P=P||"text";let Ze=await d[O.findKey(d,P)||"text"](se,p);return!ze&&X&&X(),await new Promise((Oe,ke)=>{cp(Oe,ke,{data:Ze,headers:Rt.from(se.headers),status:se.status,statusText:se.statusText,config:p,request:ie})})}catch(K){throw X&&X(),K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,p,ie),{cause:K.cause||K}):me.from(K,K&&K.code,p,ie)}}},hw=new Map,hp=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let o=s.length,a=o,l,u,c=hw;for(;a--;)l=s[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:fw(t)),c=u;return u};hp();const Da={http:O2,xhr:ow,fetch:{get:hp}};O.forEach(Da,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Pc=e=>`- ${e}`,pw=e=>O.isFunction(e)||e===null||e===!1,pp={getAdapter:(e,t)=>{e=O.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let o=0;o<n;o++){r=e[o];let a;if(i=r,!pw(r)&&(i=Da[(a=String(r)).toLowerCase()],i===void 0))throw new me(`Unknown adapter '${a}'`);if(i&&(O.isFunction(i)||(i=i.get(t))))break;s[a||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
32`+o.map(Pc).join(`
33`):" "+Pc(o[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i},adapters:Da};function Ko(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jr(null,e)}function Nc(e){return Ko(e),e.headers=Rt.from(e.headers),e.data=Go.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pp.getAdapter(e.adapter||$i.adapter,e)(e).then(function(r){return Ko(e),r.data=Go.call(e,e.transformResponse,r),r.headers=Rt.from(r.headers),r},function(r){return up(r)||(Ko(e),r&&r.response&&(r.response.data=Go.call(e,e.transformResponse,r.response),r.response.headers=Rt.from(r.response.headers))),Promise.reject(r)})}const vp="1.12.2",vo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Lc={};vo.transitional=function(t,n,r){function i(s,o){return"[Axios v"+vp+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new me(i(o," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!Lc[o]&&(Lc[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};vo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};
vendor: 4,133 bytes, lines 33-34
33function vw(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new me("option "+s+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+s,me.ERR_BAD_OPTION)}}const xs={assertOptions:vw,validators:vo},en=xs.validators;let lr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _c,response:new _c}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
34`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ur(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&xs.assertOptions(r,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),i!=null&&(O.isFunction(i)?n.paramsSerializer={serialize:i}:xs.assertOptions(i,{encode:en.function,serialize:en.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xs.assertOptions(n,{baseUrl:en.spelling("baseURL"),withXsrfToken:en.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&O.merge(s.common,s[n.method]);s&&O.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=Rt.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const p=[Nc.bind(this),void 0];for(p.unshift(...a),p.push(...u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=a.length;let h=n;for(;d<f;){const p=a[d++],v=a[d++];try{h=p(h)}catch(g){v.call(this,g);break}}try{c=Nc.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=ur(this.defaults,t);const n=dp(t.baseURL,t.url,t.allowAbsoluteUrls);return op(n,t.params,t.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(t){lr.prototype[t]=function(n,r){return this.request(ur(r||{},{method:t,url:n,data:(r||{}).data}))}});O.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,a){return this.request(ur(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}lr.prototype[t]=n(),lr.prototype[t+"Form"]=n(!0)});let gw=class gp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new jr(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gp(function(i){t=i}),cancel:t}}};function mw(e){return function(n){return e.apply(null,n)}}function yw(e){return O.isObject(e)&&e.isAxiosError===!0}const Ma={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
34setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ma).forEach(([e,t])=>{Ma[t]=e});function mp(e){const t=new lr(e),n=Wh(lr.prototype.request,t);return O.extend(n,lr.prototype,t,{allOwnKeys:!0}),O.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return mp(ur(e,i))},n}const ye=mp($i);ye.Axios=lr;ye.CanceledError=jr;ye.CancelToken=gw;ye.isCancel=up;ye.VERSION=vp;ye.toFormData=po;ye.AxiosError=me;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=mw;ye.isAxiosError=yw;ye.mergeConfig=ur;ye.AxiosHeaders=Rt;ye.formToJSON=e=>lp(O.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=pp.getAdapter;ye.HttpStatusCode=Ma;ye.default=ye;const{Axios:SO,AxiosError:TO,CanceledError:CO,isCancel:AO,CancelToken:IO,VERSION:kO,all:OO,Cancel:RO,isAxiosError:PO,spread:NO,toFormData:LO,AxiosHeaders:DO,HttpStatusCode:MO,formToJSON:UO,getAdapter:FO,mergeConfig:$O}=ye;/*! js-cookie v3.0.5 | MIT */function ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var bw={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ua(e,t){function n(i,s,o){if(!(typeof document>"u")){o=ts({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var l=s[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",ts({},s,{expires:-1}))},withAttributes:function(i){return Ua(this.converter,ts({},this.attributes,i))},withConverter:function(i){return Ua(ts({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var an=Ua(bw,{path:"/"});const Ht={main:{primary:"#FF7F05",secondary:"#ce7323",primaryDark:"#E1580E",primaryLight:"#FBD5C0",secondaryDark:"#E1580E",secondaryLight:"#FBD5C0",gradientStart:"#f6911d",gradientEnd:"#1814f3",orangePrimary:"#FF7F05",orangeSecondary:"#ce7323",orangeTertiary:"#FFF5EB",orangeText:"#FF7F05",warnDark:"#e52d2d",warnText:"#e52d2d",warnBtn:"#FEEBEB"},thorncrest:{primary:"#1C3FB7",secondary:"#15338F",primaryDark:"#15338F",primaryLight:"#E1E8FF",secondaryDark:"#0F2566",secondaryLight:"#C5D1FF",gradientStart:"#006fd2",gradientEnd:"#010628",orangePrimary:"#1C3FB7",orangeSecondary:"#15338F",orangeTertiary:"#E1E8FF",orangeText:"#1C3FB7",warnDark:"#e52d2d",warnText:"#e52d2d",warnBtn:"#FEEBEB"}},yp=()=>{const e="main";return Ht[e]?e:"main"},Dc={main:{title:"Brand Alignment",favicon:"/favicon-ba.ico"},thorncrest:{title:"Thorncrest",favicon:"/favicon-thorncrest.ico"}};function ww(e){return Dc[e]??Dc.main}const Br=Di("theme",()=>{const e=z("main"),t=z(!1),n=Z(()=>Ht[e.value]||Ht.main),r=u=>{const{title:c,favicon:d}=ww(u);let f=document.querySelector("link[rel*='icon']");f||(f=document.createElement("link"),f.rel="icon",document.getElementsByTagName("head")[0].appendChild(f)),f.href=d,document.title=c;const h=document.querySelector('meta[property="og:title"]');h&&h.setAttribute("content",c);const p=document.querySelector('meta[property="og:site_name"]');p&&p.setAttribute("content",c)},i=u=>{const c=Ht[u];if(!c)return;const d=document.documentElement;
34Object.entries(c).forEach(([f,h])=>{d.style.setProperty(`--color-${f}`,h)}),d.style.setProperty("--color-primary",c.primary),d.style.setProperty("--color-secondary",c.secondary),d.style.setProperty("--color-primary-dark",c.primaryDark),d.style.setProperty("--color-primary-light",c.primaryLight),d.style.setProperty("--color-secondary-dark",c.secondaryDark),d.style.setProperty("--color-secondary-light",c.secondaryLight),d.style.setProperty("--color-gradient-start",c.gradientStart),d.style.setProperty("--color-gradient-end",c.gradientEnd),d.style.setProperty("--color-orange-primary",c.orangePrimary),d.style.setProperty("--color-orange-secondary",c.orangeSecondary),d.style.setProperty("--color-orange-tertiary",c.orangeTertiary),d.style.setProperty("--color-orange-text",c.orangeText),d.style.setProperty("--color-warn-dark",c.warnDark),d.style.setProperty("--color-warn-text",c.warnText),d.style.setProperty("--color-warn-btn",c.warnBtn),r(u)},s=()=>yp(),o=u=>{Ht[u]&&(e.value=u,i(u))},a=u=>{Ht[u]&&(e.value=u,i(u))},l=()=>{const u=s();e.value=u,i(u),t.value=!0};return st(e,u=>{r(u)}),{theme:e,isThemeLoaded:t,themeColors:n,setTheme:o,simulateEnvTheme:a,initializeTheme:l}}),Ol=()=>Br().theme==="thorncrest"?".thorncrest.com":".brandalignment.com",bp=(e,t)=>{an.set(e,t,{domain:Ol(),path:"/",secure:!0,sameSite:"lax"})},Rl=e=>{const t=JSON.stringify(e),n=btoa(t);bp("user",n)},wp=()=>{const e=an.get("user");if(e){const t=atob(e);return JSON.parse(t)}},xp=e=>{bp("token",e)},Tr=()=>{const e=an.get("token");if(e)return e},Ur=()=>{an.remove("token",{domain:Ol(),path:"/"}),an.remove("token")},Mc=()=>{an.remove("user",{domain:Ol(),path:"/"}),an.remove("user")},ji=ye.create({baseURL:"https://auth-api.brandalignment.com",headers:{"Content-Type":"application/json","x-api-key":"HnPyPggIRN5khcLGD1Gk37ZLriZurVDy5EmtzNGM"}}),it=ye.create({baseURL:"https://portal-api.brandalignment.com",headers:{"Content-Type":"application/json"}}),Pl=ye.create({baseURL:"https://watchtower-api.brandalignment.com/",headers:{"Content-Type":"application/json","x-api-key":"j6o1VcDuOE7lkOJsOdb8M7sg4tvvVcLAT4SDtPUc"}});Pl.interceptors.request.use(e=>{const t=an.get("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});ji.interceptors.request.use(e=>{const t=an.get("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});it.interceptors.request.use(e=>{const t=an.get("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});ji.interceptors.response.use(e=>e,e=>(e.response&&e.response.status===401&&(Ur(),window.location.href=void 0),Promise.reject(e)));it.interceptors.response.use(e=>e,e=>(e.response&&e.response.status===401&&(Ur(),window.location.href=void 0),Promise.reject(e)));Pl.interceptors.response.use(e=>e,e=>(e.response&&e.response.status===401&&(Ur(),window.location.href=void 0),Promise.reject(e)));const xw=async(e,t,n)=>{try{let r="/authenticate";return n&&(r+="?platform=4"),(await ji.post(r,JSON.stringify({email:e,password:t}))).data}catch(r){return console.log("[API] Login error:",r),r}},_w=async(e,t)=>{try{return(await Pl.post(`/distributors/invitations/${t}/accept`,JSON.stringify({password:e}))).data}catch(n){return n}},Ew=async(e,t)=>{try{return(await ji.post("/forgot-password/",JSON.stringify({email:e,platformId:t}))).data}catch(n){return n}},Sw=async(e,t)=>{try{return(await ji.post(`/users/recover-password/${t}`,JSON.stringify({new_password:e}))).data}catch(n){return n}};var Fa=function(e,t){return Fa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Fa(e,t)};function Tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ee=function(){return ee=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ee.apply(this,arguments)};function js(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function V(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}
vendor: 4,310 bytes, line 34
34return new(n||(n=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function j(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ee(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function xe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Cr(e){return this instanceof Cr?(this.v=e,this):new Cr(e)}function Tw(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(p){return Promise.resolve(p).then(h,d)}}function a(h,p){r[h]&&(i[h]=function(v){return new Promise(function(g,y){s.push([h,v,g,y])>1||l(h,v)})},p&&(i[h]=p(i[h])))}function l(h,p){try{u(r[h](p))}catch(v){f(s[0][3],v)}}function u(h){h.value instanceof Cr?Promise.resolve(h.value.v).then(c,d):f(s[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,p){h(p),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Cw(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ee=="function"?Ee(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}var Fn;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Fn||(Fn={}));var zn;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(zn||(zn={}));var Uc="-",go="AMP",Aw="".concat(go,"_unsent"),_p="$default_instance",Ep="https://api2.amplitude.com/2/httpapi",Iw="https://api.eu.amplitude.com/2/httpapi",kw="https://api2.amplitude.com/batch",Ow="https://api.eu.amplitude.com/batch",Rw="utm_campaign",Pw="utm_content",Nw="utm_id",Lw="utm_medium",Dw="utm_source",Mw="utm_term",Fc="dclid",$c="fbclid",jc="gbraid",Bc="gclid",Vc="ko_click_id",qc="li_fat_id",Hc="msclkid",zc="rdt_cid",Gc="ttclid",Kc="twclid",Wc="wbraid",mo={utm_campaign:void 0,utm_c
34ontent:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},Bs=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],Uw=["authorization","cookie","set-cookie"],Fw=1e3,$a=function(e){if(Object.keys(e).length>Fw)return!1;for(var t in e){var n=e[t];if(!Sp(t,n))return!1}return!0},Sp=function(e,t){var n,r;if(typeof e!="string")return!1;if(Array.isArray(t)){var i=!0;try{for(var s=Ee(t),o=s.next();!o.done;o=s.next()){var a=o.value;if(Array.isArray(a))return!1;if(typeof a=="object")i=i&&$a(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}else{if(t==null)return!1;if(typeof t=="object")return $a(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},Vs=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return ee({},this._properties)},e.prototype.set=function(t,n){return this._safeSet(Ve.SET,t,n),this},e.prototype.setOnce=function(t,n){return this._safeSet(Ve.SET_ONCE,t,n),this},e.prototype.append=function(t,n){return this._safeSet(Ve.APPEND,t,n),this},e.prototype.prepend=function(t,n){return this._safeSet(Ve.PREPEND,t,n),this},e.prototype.postInsert=function(t,n){return this._safeSet(Ve.POSTINSERT,t,n),this},e.prototype.preInsert=function(t,n){return this._safeSet(Ve.PREINSERT,t,n),this},e.prototype.remove=function(t,n){return this._safeSet(Ve.REMOVE,t,n),this},e.prototype.add=function(t,n){return this._safeSet(Ve.ADD,t,n),this},e.prototype.unset=function(t){return this._safeSet(Ve.UNSET,t,Uc),this},e.prototype.clearAll=function(){return this._properties={},this._properties[Ve.CLEAR_ALL]=Uc,this},e.prototype._safeSet=function(t,n,r){if(this._validate(t,n,r)){var i=this._properties[t];return i===void 0&&(i={},this._properties[t]=i),i[n]=r,this._propertySet.add(n),!0}return!1},e.prototype._validate=function(t,n,r){return this._properties[Ve.CLEAR_ALL]!==void 0||this._propertySet.has(n)?!1:t===Ve.ADD?typeof r=="number":t!==Ve.UNSET&&t!==Ve.REMOVE?Sp(n,r):!0},e}(),Ve;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Ve||(Ve={}));var $w=[Ve.CLEAR_ALL,Ve.UNSET,Ve.SET,Ve.SET_ONCE,Ve.ADD,Ve.APPEND,Ve.PREPEND,Ve.PREINSERT,Ve.POSTINSERT,Ve.REMOVE],jw="Event tracked successfully",Bw="Unexpected error occurred",Vw="Event rejected due to exceeded retry count",qw="Event skipped due to optOut config",Hw="Event rejected due to missing API key",zw="Invalid API key",Gw="Client not initialized",et;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(et||(et={}));var Ar=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=et.Unknown),{event:e,code:t,message:n}},tt=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},Kw=function(e){return e?(e^Math.random()*16>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,Kn)},Jc=xe([],oe(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),Kn=function(e){var t,n=tt();if(!(!((t=n==null?void 0:n.crypto)===null||t===void 0)&&t.getRandomValues))return Kw(e);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=r[6]&15|64,r[8]=r[8]&63|128,xe([],oe(r.entries()),!1).map(function(i){var s=oe(i,2),o=s[0],a=s[1];return[4,6,8,10].includes(o)?"-".concat(Jc[a]):Jc[a]}).join("")},Ww=function(){function e(t){this.client=t,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(t,n){var r,i;return V(this,void 0,void 0,function(){return j(this,function(s){switch(s.label){case 0:return this.plugins.some(function(o){return o.name===t.name})?(this.loggerProvider.warn("Plugin with name ".concat(t.name," already exists, skipping registration")),[2]):(t.name===void 0&&(t.name=Kn(),this.loggerProvider.warn(`Plugin name is undefined. 
35      Generating a random UUID for plugin name: `.concat(t.name,`. 
36      Set a name for the plugin to prevent it from being added multiple times.`))),t.type=(r=t.type)!==null&&r!==void 0?r:"enrichment",[4,(i=t.setup)===null||i===void 0?void 0:i.call(t,n,this.client)]);case 1:return s.sent(),this.plugins.push(t),[2]}})})},e.prototype.deregister=function(t,n){var r;return V(this,void 0,void 0,function(){var i,s;return j(this,function(o){switch(o.label){case 0:return i=this.plugins.findIndex(function(a){return a.name===t}),i===-1?(n.loggerProvider.warn("Plugin with name ".concat(t," does not exist, skipping deregistration")),[2]):(s=this.plugins[i],this.plugins.splice(i,1),[4,(r=s.teardown)===null||r===void 0?void 0:r.call(s)]);case 1:return o.sent(),[2]}})})},e.prototype.reset=function(t){this.applying=!1;var n=this.plugins;n.map(function(r){var i;return(i=r.teardown)===null||i===void 0?void 0:i.call(r)}),this.plugins=[],this.client=t},e.prototype.push=function(t){var n=this;return new Promise(function(r){n.queue.push([t,r]),n.scheduleApply(0)})},e.prototype.scheduleApply=function(t){var n=this;this.applying||(this.applying=!0,setTimeout(function(){n.apply(n.queue.shift()).then(function(){n.applying=!1,n.queue.length>0&&n.scheduleApply(0)})},t))},e.prototype.apply=function(t){return V(this,void 0,void 0,function(){var n,r,i,s,o,a,l,h,p,u,c,d,f,h,p,v,g,y,b,w,x,E;return j(this,function(C){switch(C.label){case 0:if(!t)return[2];n=oe(t,1),r=n[0],i=oe(t,2),s=i[1],this.loggerProvider.log("Timeline.apply: Initial event",r),o=this.plugins.filter(function(P){return P.type==="before"}),C.label=1;case 1:C.trys.push([1,6,7,8]),a=Ee(o),l=a.next(),C.label=2;case 2:return l.done?[3,5]:(h=l.value,h.execute?[4,h.execute(ee({},r))]:[3,4]);case 3:if(p=C.sent(),p===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(r))),s({event:r,code:0,message:""}),[2];r=p,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(r))),C.label=4;case 4:return l=a.next(),[3,2];case 5:return[3,8];case 6:return u=C.sent(),b={error:u},[3,8];case 7:try{l&&!l.done&&(w=a.return)&&w.call(a)}finally{if(b)throw b.error}
36return[7];case 8:c=this.plugins.filter(function(P){return P.type==="enrichment"||P.type===void 0}),C.label=9;case 9:C.trys.push([9,14,15,16]),d=Ee(c),f=d.next(),C.label=10;case 10:return f.done?[3,13]:(h=f.value,h.execute?[4,h.execute(ee({},r))]:[3,12]);case 11:if(p=C.sent(),p===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(r))),s({event:r,code:0,message:""}),[2];r=p,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(r))),C.label=12;case 12:return f=d.next(),[3,10];case 13:return[3,16];case 14:return v=C.sent(),x={error:v},[3,16];case 15:try{f&&!f.done&&(E=d.return)&&E.call(d)}finally{if(x)throw x.error}return[7];case 16:return g=this.plugins.filter(function(P){return P.type==="destination"}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(r))),y=g.map(function(P){var I=ee({},r);return P.execute(I).catch(function(T){return Ar(I,0,String(T))})}),Promise.all(y).then(function(P){var I=oe(P,1),T=I[0],k=T||Ar(r,100,"Event not tracked, no destination plugins on the instance");s(k)}),[2]}})})},e.prototype.flush=function(){return V(this,void 0,void 0,function(){var t,n,r,i=this;return j(this,function(s){switch(s.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map(function(o){return i.apply(o)}))];case 1:return s.sent(),n=this.plugins.filter(function(o){return o.type==="destination"}),r=n.map(function(o){return o.flush&&o.flush()}),[4,Promise.all(r)];case 2:return s.sent(),[2]}})})},e.prototype.onIdentityChanged=function(t){this.plugins.forEach(function(n){var r;(r=n.onIdentityChanged)===null||r===void 0||r.call(n,t)})},e.prototype.onSessionIdChanged=function(t){this.plugins.forEach(function(n){var r;(r=n.onSessionIdChanged)===null||r===void 0||r.call(n,t)})},e.prototype.onOptOutChanged=function(t){this.plugins.forEach(function(n){var r;(r=n.onOptOutChanged)===null||r===void 0||r.call(n,t)})},e}(),Jw=function(e,t,n){var r=typeof e=="string"?{event_type:e}:e;return ee(ee(ee({},r),n),t&&{event_properties:t})},Tp=function(e,t){var n=ee(ee({},t),{event_type:zn.IDENTIFY,user_properties:e.getUserProperties()});return n},Yw=function(e,t,n,r){var i,s=ee(ee({},r),{event_type:zn.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(i={},i[e]=t,i)});return s},Xw=function(e,t,n){var r,i=new Vs;i.set(e,t);var s=ee(ee({},n),{event_type:zn.IDENTIFY,user_properties:i.getUserProperties(),groups:(r={},r[e]=t,r)});return s},Qw=function(e,t){return ee(ee({},t),{event_type:zn.REVENUE,event_properties:e.getEventProperties()})},kt=function(e){return{promise:e||Promise.resolve()}},Zw=function(){function e(t){t===void 0&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new Ww(this),this.name=t}return e.prototype._init=function(t){return V(this,void 0,void 0,function(){return j(this,function(n){switch(n.label){case 0:return this.config=t,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return n.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(t){return V(this,void 0,void 0,function(){var n,r,i,s,o,a,l,u;return j(this,function(c){switch(c.label){case 0:n=this[t],this[t]=[],c.label=1;case 1:c.trys.push([1,8,9,10]),r=Ee(n),i=r.next(),c.label=2;case 2:return i.done?[3,7]:(s=i.value,o=s(),o&&"promise"in o?[4,o.promise]:[3,4]);case 3:return c.sent(),[3,6];case 4:return[4,o];case 5:c.sent(),c.label=6;case 6:return i=r.next(),[3,2];case 7:return[3,10];case 8:return a=c.sent(),l={error:a},[3,10];case 9:try{i&&!i.done&&(u=r.return)&&u.call(r)}finally{if(l)throw l.error}return[7];case 10:return this[t].length?[4,this.runQueuedFunctions(t)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[2]}})})},e.prototype.track=function(t,n,r){var i=Jw(t,n,r);return kt(this.dispatch(i))},e.prototype.identify=function(t,n){var r=Tp(t,n);return kt(this.dispatch(r))},e.prototype.groupIdentify=function(t,n,r,i){var s=Yw(t,n,r,i);return kt(this.dispatch(s))},e.prototype.setGroup=function(t,n,r){var i=Xw(t,n,r);return kt(this.dispatch(i))},e.prototype.revenue=function(t,n){var r=Qw(t,n);return kt(this.dispatch(r))},e.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),kt())},e.prototype._addPlugin=function(t){return kt(this.timeline.register(t,this.config))},e.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),kt())},e.prototype._removePlugin=function(t){return kt(this.timeline.deregister(t,this.config))},e.prototype.dispatchWithCallback=function(t,n){if(!this.isReady)return n(Ar(t,0,Gw));this.process(t).then(n)},e.prototype.dispatch=function(t){return V(this,void 0,void 0,function(){var n=this;return j(this,function(r){return this.isReady?[2,this.process(t)]:[2,new Promise(function(i){n.dispatchQ.push(n.dispatchWithCallback.bind(n,t,i))})]})})},e.prototype.getOperationAppliedUserProperties=function(t){var n={};if(t===void 0)return n;var r={};return Object.keys(t).forEach(function(i){Object.values(Fn).includes(i)||(r[i]=t[i])}
36),$w.forEach(function(i){if(Object.keys(t).includes(i)){var s=t[i];switch(i){case Fn.CLEAR_ALL:Object.keys(n).forEach(function(o){delete n[o]});break;case Fn.UNSET:Object.keys(s).forEach(function(o){delete n[o]});break;case Fn.SET:Object.assign(n,s);break}}}),Object.assign(n,r),n},e.prototype.process=function(t){return V(this,void 0,void 0,function(){var n,s,r,i,s;return j(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,Ar(t,0,qw)]:(t.event_type===zn.IDENTIFY&&(n=this.getOperationAppliedUserProperties(t.user_properties),this.timeline.onIdentityChanged({userProperties:n})),[4,this.timeline.push(t)]);case 1:return s=o.sent(),s.code===200?this.config.loggerProvider.log(s.message):s.code===100?this.config.loggerProvider.warn(s.message):this.config.loggerProvider.error(s.message),[2,s];case 2:return r=o.sent(),i=String(r),this.config.loggerProvider.error(i),s=Ar(t,0,i),[2,s];case 3:return[2]}})})},e.prototype.setOptOut=function(t){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!t));return}this._setOptOut(t)},e.prototype._setOptOut=function(t){this.config.optOut!==t&&(this.timeline.onOptOutChanged(t),this.config.optOut=!!t)},e.prototype.flush=function(){return kt(this.timeline.flush())},e.prototype.plugin=function(t){var n=this.timeline.plugins.find(function(r){return r.name===t});if(n===void 0){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(t));return}return n},e.prototype.plugins=function(t){return this.timeline.plugins.filter(function(n){return n instanceof t})},e}(),ex=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(t){return this.productId=t,this},e.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},e.prototype.setPrice=function(t){return this.price=t,this},e.prototype.setRevenueType=function(t){return this.revenueType=t,this},e.prototype.setCurrency=function(t){return this.currency=t,this},e.prototype.setRevenue=function(t){return this.revenue=t,this},e.prototype.setReceipt=function(t){return this.receipt=t,this},e.prototype.setReceiptSig=function(t){return this.receiptSig=t,this},e.prototype.setEventProperties=function(t){return $a(t)&&(this.properties=t),this},e.prototype.getEventProperties=function(){var t=this.properties?ee({},this.properties):{};return t[nn.REVENUE_PRODUCT_ID]=this.productId,t[nn.REVENUE_QUANTITY]=this.quantity,t[nn.REVENUE_PRICE]=this.price,t[nn.REVENUE_TYPE]=this.revenueType,t[nn.REVENUE_CURRENCY]=this.currency,t[nn.REVENUE]=this.revenue,t[nn.RECEIPT]=this.receipt,t[nn.RECEIPT_SIG]=this.receiptSig,t},e}(),nn;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"})(nn||(nn={}));var tx=function(e,t){var n=Math.max(t,1);return e.reduce(function(r,i,s){var o=Math.floor(s/n);return r[o]||(r[o]=[]),r[o].push(i),r},[])},Nt;(function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"})(Nt||(Nt={}));var ns="Amplitude Logger ",Cp=function(){function e(){this.logLevel=Nt.None}return e.prototype.disable=function(){this.logLevel=Nt.None},e.prototype.enable=function(t){t===void 0&&(t=Nt.Warn),this.logLevel=t},e.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Nt.Verbose||console.log("".concat(ns,"[Log]: ").concat(t.join(" ")))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Nt.Warn||console.warn("".concat(ns,"[Warn]: ").concat(t.join(" ")))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Nt.Error||console.error("".concat(ns,"[Error]: ").concat(t.join(" ")))},e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Nt.Debug||console.log("".concat(ns,"[Debug]: ").concat(t.join(" ")))},e}(),_s=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:_p,logLevel:Nt.Warn,loggerProvider:new Cp,offline:!1,optOut:!1,serverUrl:Ep,serverZone:"US",useBatch:!1}},nx=function(){function e(t){var n,r,i,s;this._optOut=!1;var o=_s();this.apiKey=t.apiKey,this.flushIntervalMillis=(n=t.flushIntervalMillis)!==null&&n!==void 0?n:o.flushIntervalMillis,this.flushMaxRetries=t.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=t.flushQueueSize||o.flushQueueSize,this.instanceName=t.instanceName||o.instanceName,this.loggerProvider=t.loggerProvider||o.loggerProvider,this.logLevel=(r=t.logLevel)!==null&&r!==void 0?r:o.logLevel,this.minIdLength=t.minIdLength,this.plan=t.plan,this.ingestionMetadata=t.ingestionMetadata,this.offline=t.offline!==void 0?t.offline:o.offline,this.optOut=(i=t.optOut)!==null&&i!==void 0?i:o.optOut,this.serverUrl=t.serverUrl,this.serverZone=t.serverZone||o.serverZone,this.storageProvider=t.storageProvider,this.transportProvider=t.transportProvider,this.useBatch=(s=t.useBatch)!==null&&s!==void 0?s:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=Ap(t.serverUrl,t.serverZone,t.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(t){this._optOut=t}
36,enumerable:!1,configurable:!0}),e}(),rx=function(e,t){return e==="EU"?t?Ow:Iw:t?kw:Ep},Ap=function(e,t,n){if(e===void 0&&(e=""),t===void 0&&(t=_s().serverZone),n===void 0&&(n=_s().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=["US","EU"].includes(t)?t:_s().serverZone;return{serverZone:r,serverUrl:rx(r,n)}},ix=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(t,n){this.sdk.metrics.histogram[t]=n},e}();function sx(e){return e instanceof Error?e.message:String(e)}function rs(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch{}return t}var ox=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(t){var n;return V(this,void 0,void 0,function(){var r,i=this;return j(this,function(s){switch(s.label){case 0:return this.config=t,this.storageKey="".concat(Aw,"_").concat(this.config.apiKey.substring(0,10)),[4,(n=this.config.storageProvider)===null||n===void 0?void 0:n.get(this.storageKey)];case 1:return r=s.sent(),r&&r.length>0&&Promise.all(r.map(function(o){return i.execute(o)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(t){var n=this;return t.insert_id||(t.insert_id=Kn()),new Promise(function(r){var i={event:t,attempts:0,callback:function(s){return r(s)},timeout:0};n.queue.push(i),n.schedule(n.config.flushIntervalMillis),n.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(t){var n=this;return t.filter(function(r){return r.attempts+=1,r.attempts<n.config.flushMaxRetries?!0:(n.fulfillRequest([r],500,Vw),!1)})},e.prototype.scheduleEvents=function(t){var n=this;t.forEach(function(r){n.schedule(r.timeout===0?n.config.flushIntervalMillis:r.timeout)})},e.prototype.schedule=function(t){var n=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&t>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=t,this.scheduleId=setTimeout(function(){n.queue=n.queue.map(function(r){return r.timeout=0,r}),n.flush(!0)},t);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(t){return t===void 0&&(t=!1),V(this,void 0,void 0,function(){var n,r,i,s=this;return j(this,function(o){switch(o.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),n=[],r=[],this.queue.forEach(function(a){return a.timeout===0?n.push(a):r.push(a)}),i=tx(n,this.config.flushQueueSize),[4,i.reduce(function(a,l){return V(s,void 0,void 0,function(){return j(this,function(u){switch(u.label){case 0:return[4,a];case 1:return u.sent(),[4,this.send(l,t)];case 2:return[2,u.sent()]}})})},Promise.resolve())]);case 1:return o.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(t,n){return n===void 0&&(n=!0),V(this,void 0,void 0,function(){var r,i,s,o,a;return j(this,function(l){switch(l.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,Hw)];r={api_key:this.config.apiKey,events:t.map(function(u){var c=u.event;c.extra;var d=js(c,["extra"]);return d}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new ix,l.label=1;case 1:return l.trys.push([1,3,,4]),i=Ap(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(i,r)];case 2:return s=l.sent(),s===null?(this.fulfillRequest(t,0,Bw),[2]):n?(this.handleResponse(s,t),[3,4]):("body"in s?this.fulfillRequest(t,s.statusCode,"".concat(s.status,": ").concat(rs(s))):this.fulfillRequest(t,s.statusCode,s.status),[2]);case 3:return o=l.sent(),a=sx(o),this.config.loggerProvider.error(a),this.handleResponse({status:et.Failed,statusCode:0},t),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(t,n){var r=t.status;switch(r){case et.Success:{this.handleSuccessResponse(t,n);break}case et.Invalid:{this.handleInvalidResponse(t,n);break}case et.PayloadTooLarge:{this.handlePayloadTooLargeResponse(t,n);break}case et.RateLimit:{this.handleRateLimitResponse(t,n);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(r,"' provided for ").concat(n.length,' events"}')),this.handleOtherResponse(n);break}}},e.prototype.handleSuccessResponse=function(t,n){this.fulfillRequest(n,t.statusCode,jw)},e.prototype.handleInvalidResponse=function(t,n){var r=this;if(t.body.missingField||t.body.error.startsWith(zw)){this.fulfillRequest(n,t.statusCode,t.body.error);return}var i=xe(xe(xe(xe([],oe(Object.values(t.body.eventsWithInvalidFields)),!1),oe(Object.values(t.body.eventsWithMissingFields)),!1),oe(Object.values(t.body.eventsWithInvalidIdLengths)),!1),oe(t.body.silencedEvents),!1).flat(),s=new Set(i),o=n.filter(function(l,u){if(s.has(u)){r.fulfillRequest([l],t.statusCode,t.body.error);return}return!0});o.length>0&&this.config.loggerProvider.warn(rs(t));
36var a=this.removeEventsExceedFlushMaxRetries(o);this.scheduleEvents(a)},e.prototype.handlePayloadTooLargeResponse=function(t,n){if(n.length===1){this.fulfillRequest(n,t.statusCode,t.body.error);return}this.config.loggerProvider.warn(rs(t)),this.config.flushQueueSize/=2;var r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.handleRateLimitResponse=function(t,n){var r=this,i=Object.keys(t.body.exceededDailyQuotaUsers),s=Object.keys(t.body.exceededDailyQuotaDevices),o=t.body.throttledEvents,a=new Set(i),l=new Set(s),u=new Set(o),c=n.filter(function(f,h){if(f.event.user_id&&a.has(f.event.user_id)||f.event.device_id&&l.has(f.event.device_id)){r.fulfillRequest([f],t.statusCode,t.body.error);return}return u.has(h)&&(f.timeout=r.throttleTimeout),!0});c.length>0&&this.config.loggerProvider.warn(rs(t));var d=this.removeEventsExceedFlushMaxRetries(c);this.scheduleEvents(d)},e.prototype.handleOtherResponse=function(t){var n=this,r=t.map(function(s){return s.timeout=s.attempts*n.retryTimeout,s}),i=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(i)},e.prototype.fulfillRequest=function(t,n,r){this.removeEvents(t),t.forEach(function(i){return i.callback(Ar(i.event,n,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var t=this.queue.map(function(n){return n.event});this.config.storageProvider.set(this.storageKey,t)}},e.prototype.removeEvents=function(t){this.queue=this.queue.filter(function(n){return!t.some(function(r){return r.event.insert_id===n.event.insert_id})}),this.saveEvents()},e}(),ax=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:lx(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),lx=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},ux=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(n){t(n)}),this.queue=[])},e}(),Mn=function(){return Mn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Mn.apply(this,arguments)};function Es(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}var Ss=function(e,t){var n,r,i=["string","number","boolean","undefined"],s=typeof e,o=typeof t;if(s!==o)return!1;try{for(var a=Es(i),l=a.next();!l.done;l=a.next()){var u=l.value;if(u===s)return e===t}}catch(g){n={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var c=Array.isArray(e),d=Array.isArray(t);if(c!==d)return!1;if(c&&d){for(var f=0;f<e.length;f++)if(!Ss(e[f],t[f]))return!1}else{var h=Object.keys(e).sort(),p=Object.keys(t).sort();if(!Ss(h,p))return!1;var v=!0;return Object.keys(e).forEach(function(g){Ss(e[g],t[g])||(v=!1)}),v}return!0},cx="$set",dx="$unset",fx="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var hx=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,n=Mn({},this.identity.userProperties),r=Mn(Mn({},this.identity),{userProperties:n});return{setUserId:function(i){return r.userId=i,this},setDeviceId:function(i){return r.deviceId=i,this},setUserProperties:function(i){return r.userProperties=i,this},setOptOut:function(i){return r.optOut=i,this},updateUserProperties:function(i){var s,o,a,l,u,c,d=r.userProperties||{};try{for(var f=Es(Object.entries(i)),h=f.next();!h.done;h=f.next()){var p=Yc(h.value,2),v=p[0],g=p[1];switch(v){case cx:try{for(var y=(a=void 0,Es(Object.entries(g))),b=y.next();!b.done;b=y.next()){var w=Yc(b.value,2),x=w[0],E=w[1];d[x]=E}}catch(I){a={error:I}}finally{try{b&&!b.done&&(l=y.return)&&l.call(y)}finally{if(a)throw a.error}}break;case dx:try{for(var C=(u=void 0,Es(Object.keys(g))),P=C.next();!P.done;P=C.next()){var x=P.value;delete d[x]}}catch(I){u={error:I}}finally{try{P&&!P.done&&(c=C.return)&&c.call(C)}finally{if(u)throw u.error}}break;case fx:d={};break}}}catch(I){s={error:I}}
36finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(s)throw s.error}}return r.userProperties=d,this},commit:function(){return t.setIdentity(r),this}}},e.prototype.getIdentity=function(){return Mn({},this.identity)},e.prototype.setIdentity=function(t){var n=Mn({},this.identity);this.identity=Mn({},t),Ss(n,this.identity)||this.listeners.forEach(function(r){r(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e}(),Xr=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,px=function(){function e(){this.identityStore=new hx,this.eventBridge=new ux,this.applicationContextProvider=new ax}return e.getInstance=function(t){return Xr.analyticsConnectorInstances||(Xr.analyticsConnectorInstances={}),Xr.analyticsConnectorInstances[t]||(Xr.analyticsConnectorInstances[t]=new e),Xr.analyticsConnectorInstances[t]},e}(),ki=function(e){return e===void 0&&(e=_p),px.getInstance(e)},vx=function(e,t){ki(t).identityStore.editIdentity().setUserId(e).commit()},gx=function(e,t){ki(t).identityStore.editIdentity().setDeviceId(e).commit()},mx=function(){function e(){this.name="identity",this.type="before",this.identityStore=ki().identityStore}return e.prototype.execute=function(t){return V(this,void 0,void 0,function(){var n;return j(this,function(r){return n=t.user_properties,n&&this.identityStore.editIdentity().updateUserProperties(n).commit(),[2,t]})})},e.prototype.setup=function(t){return V(this,void 0,void 0,function(){return j(this,function(n){return t.instanceName&&(this.identityStore=ki(t.instanceName).identityStore),[2]})})},e}(),Ip=function(e,t){t===void 0&&(t=Date.now());var n=Date.now(),r=n-t;return r>e},kp=function(e,t,n){return t===void 0&&(t=""),n===void 0&&(n=10),[go,t,e.substring(0,n)].filter(Boolean).join("_")},yx=function(e){return"".concat(go.toLowerCase(),"_").concat(e.substring(0,6))},bx=function(){var e,t,n,r;if(typeof navigator>"u")return"";var i=navigator.userLanguage;return(r=(n=(t=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:navigator.language)!==null&&n!==void 0?n:i)!==null&&r!==void 0?r:""},qs=function(){var e,t=tt();if(!(!((e=t==null?void 0:t.location)===null||e===void 0)&&e.search))return{};var n=t.location.search.substring(1).split("&").filter(Boolean),r=n.reduce(function(i,s){var o=s.split("=",2),a=Xc(o[0]),l=Xc(o[1]);return l&&(i[a]=l),i},{});return r},Xc=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},wx=function(e){var t=new Error().stack||"";return t.split(`
37`).slice(2+e).map(function(n){return n.trim()})},Ke=function(e){return function(){var t=ee({},e.config),n=t.loggerProvider,r=t.logLevel;return{logger:n,logLevel:r}}},xx=function(e,t){var n,r;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");try{for(var i=Ee(t.split(".")),s=i.next();!s.done;s=i.next()){var o=s.value;if(o in e)e=e[o];else return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},We=function(e,t){return function(){var n,r,i={};try{for(var s=Ee(t),o=s.next();!o.done;o=s.next()){var a=o.value;i[a]=xx(e,a)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i}},Je=function(e,t,n,r,i){return i===void 0&&(i=null),function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=n(),l=a.logger,u=a.logLevel;if(u&&u<Nt.Debug||!u||!l)return e.apply(i,s);var c={type:"invoke public method",name:t,args:s,stacktrace:wx(1),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var d=e.apply(i,s);return d&&d.promise?d.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),d}},ja=function(e,t){return!t||!t.length?!0:t.some(function(n){return typeof n=="string"?e===n:e.match(n)})},_x=function(e,t){var n=e;try{n=decodeURI(e)}catch{}return n},Ex=function(e){var t=0;if(e.length===0)return t;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t},Qc=function(e,t){var n=Ex(e.toString()),r=Math.abs(n),i=r*31,s=i%1e5;return s/1e5<t},Nl=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return V(this,void 0,void 0,function(){return j(this,function(t){return[2,!0]})})},e.prototype.get=function(t){return V(this,void 0,void 0,function(){return j(this,function(n){return[2,this.memoryStorage.get(t)]})})},e.prototype.getRaw=function(t){return V(this,void 0,void 0,function(){var n;return j(this,function(r){switch(r.label){case 0:return[4,this.get(t)];case 1:return n=r.sent(),[2,n?JSON.stringify(n):void 0]}})})},e.prototype.set=function(t,n){return V(this,void 0,void 0,function(){return j(this,function(r){return this.memoryStorage.set(t,n),[2]})})},e.prototype.remove=function(t){return V(this,void 0,void 0,function(){return j(this,function(n){return this.memoryStorage.delete(t),[2]})})},e.prototype.reset=function(){return V(this,void 0,void 0,function(){return j(this,function(t){return this.memoryStorage.clear(),[2]})})},e}
37(),Ba=function(){function e(t){this.options=ee({},t)}return e.prototype.isEnabled=function(){return V(this,void 0,void 0,function(){var t,n,r;return j(this,function(i){switch(i.label){case 0:if(!tt())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return i.sent(),[4,t.get(n)];case 3:return r=i.sent(),[2,r===e.testValue];case 4:return i.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){var n;return V(this,void 0,void 0,function(){var r,i;return j(this,function(s){switch(s.label){case 0:return[4,this.getRaw(t)];case 1:if(r=s.sent(),!r)return[2,void 0];try{return i=(n=Sx(r))!==null&&n!==void 0?n:Tx(r),i===void 0?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(r)),[2,void 0]):[2,JSON.parse(i)]}catch{return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(r)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(t){var n,r;return V(this,void 0,void 0,function(){var i,s,o;return j(this,function(a){return i=tt(),s=(r=(n=i==null?void 0:i.document)===null||n===void 0?void 0:n.cookie.split("; "))!==null&&r!==void 0?r:[],o=s.find(function(l){return l.indexOf(t+"=")===0}),o?[2,o.substring(t.length+1)]:[2,void 0]})})},e.prototype.set=function(t,n){var r;return V(this,void 0,void 0,function(){var i,s,o,a,l,u,c;return j(this,function(d){try{i=(r=this.options.expirationDays)!==null&&r!==void 0?r:0,s=n!==null?i:-1,o=void 0,s&&(a=new Date,a.setTime(a.getTime()+s*24*60*60*1e3),o=a),l="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(n)))),o&&(l+="; expires=".concat(o.toUTCString())),l+="; path=/",this.options.domain&&(l+="; domain=".concat(this.options.domain)),this.options.secure&&(l+="; Secure"),this.options.sameSite&&(l+="; SameSite=".concat(this.options.sameSite)),u=tt(),u&&(u.document.cookie=l)}catch(f){c=f instanceof Error?f.message:String(f),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(c))}return[2]})})},e.prototype.remove=function(t){return V(this,void 0,void 0,function(){return j(this,function(n){switch(n.label){case 0:return[4,this.set(t,null)];case 1:return n.sent(),[2]}})})},e.prototype.reset=function(){return V(this,void 0,void 0,function(){return j(this,function(t){return[2]})})},e}(),Sx=function(e){try{return decodeURIComponent(atob(e))}catch{return}},Tx=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},Zc=function(e,t,n){return t===void 0&&(t=""),n===void 0&&(n=10),[go,t,e.substring(0,n)].filter(Boolean).join("_")},Op=function(){function e(t){this.storage=t}return e.prototype.isEnabled=function(){return V(this,void 0,void 0,function(){var t,n,r,i;return j(this,function(s){switch(s.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",s.label=1;case 1:return s.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return s.sent(),[4,n.get(r)];case 3:return i=s.sent(),[2,i===t];case 4:return s.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return s.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){return V(this,void 0,void 0,function(){var n;return j(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(t)];case 1:return n=r.sent(),n?[2,JSON.parse(n)]:[2,void 0];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(t){var n;return V(this,void 0,void 0,function(){return j(this,function(r){return[2,((n=this.storage)===null||n===void 0?void 0:n.getItem(t))||void 0]})})},e.prototype.set=function(t,n){var r;return V(this,void 0,void 0,function(){return j(this,function(i){try{(r=this.storage)===null||r===void 0||r.setItem(t,JSON.stringify(n))}catch{}return[2]})})},e.prototype.remove=function(t){var n;return V(this,void 0,void 0,function(){return j(this,function(r){try{(n=this.storage)===null||n===void 0||n.removeItem(t)}catch{}return[2]})})},e.prototype.reset=function(){var t;return V(this,void 0,void 0,function(){return j(this,function(n){try{(t=this.storage)===null||t===void 0||t.clear()}catch{}return[2]})})},e}(),Cx=10,Ax=1,Ae={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"}
37,ed={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},td=function(){function e(t,n){this.dbPromise=null,this.logger=n,this.dbName="AMP_diagnostics_".concat(t.substring(0,10))}return e.isSupported=function(){var t;return((t=tt())===null||t===void 0?void 0:t.indexedDB)!==void 0},e.prototype.getDB=function(){return V(this,void 0,void 0,function(){return j(this,function(t){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var t=this;return new Promise(function(n,r){var i=indexedDB.open(t.dbName,Ax);i.onerror=function(){t.dbPromise=null,r(new Error("Failed to open IndexedDB"))},i.onsuccess=function(){var s=i.result;s.onclose=function(){t.dbPromise=null,t.logger.debug("DiagnosticsStorage: DB connection closed.")},s.onerror=function(o){t.logger.debug("DiagnosticsStorage: A global database error occurred.",o),s.close()},n(s)},i.onupgradeneeded=function(s){var o=s.target.result;t.createTables(o)}})},e.prototype.createTables=function(t){if(t.objectStoreNames.contains(Ae.TAGS)||t.createObjectStore(Ae.TAGS,{keyPath:"key"}),t.objectStoreNames.contains(Ae.COUNTERS)||t.createObjectStore(Ae.COUNTERS,{keyPath:"key"}),t.objectStoreNames.contains(Ae.HISTOGRAMS)||t.createObjectStore(Ae.HISTOGRAMS,{keyPath:"key"}),!t.objectStoreNames.contains(Ae.EVENTS)){var n=t.createObjectStore(Ae.EVENTS,{keyPath:"id",autoIncrement:!0});n.createIndex("time_idx","time",{unique:!1})}t.objectStoreNames.contains(Ae.INTERNAL)||t.createObjectStore(Ae.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(t){return V(this,void 0,void 0,function(){var n,r,i,s,o=this;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return n=a.sent(),r=n.transaction([Ae.TAGS],"readwrite"),i=r.objectStore(Ae.TAGS),[2,new Promise(function(l){var u=Object.entries(t);r.oncomplete=function(){l()},r.onabort=function(c){o.logger.debug("DiagnosticsStorage: Failed to set tags",c),l()},u.forEach(function(c){var d=oe(c,2),f=d[0],h=d[1],p=i.put({key:f,value:h});p.onerror=function(v){o.logger.debug("DiagnosticsStorage: Failed to set tag",f,h,v)}})})];case 2:return s=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",s),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(t){return V(this,void 0,void 0,function(){var n,r,i,s,o=this;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return n=a.sent(),r=n.transaction([Ae.COUNTERS],"readwrite"),i=r.objectStore(Ae.COUNTERS),[2,new Promise(function(l){var u=Object.entries(t);r.oncomplete=function(){l()},r.onabort=function(c){o.logger.debug("DiagnosticsStorage: Failed to increment counters",c),l()},u.forEach(function(c){var d=oe(c,2),f=d[0],h=d[1],p=i.get(f);p.onsuccess=function(){var v=p.result,g=v?v.value:0,y=i.put({key:f,value:g+h});y.onerror=function(b){o.logger.debug("DiagnosticsStorage: Failed to update counter",f,b)}},p.onerror=function(v){o.logger.debug("DiagnosticsStorage: Failed to read existing counter",f,v)}})})];case 2:return s=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",s),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(t){return V(this,void 0,void 0,function(){var n,r,i,s,o=this;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return n=a.sent(),r=n.transaction([Ae.HISTOGRAMS],"readwrite"),i=r.objectStore(Ae.HISTOGRAMS),[2,new Promise(function(l){var u=Object.entries(t);r.oncomplete=function(){l()},r.onabort=function(c){o.logger.debug("DiagnosticsStorage: Failed to set histogram stats",c),l()},u.forEach(function(c){var d=oe(c,2),f=d[0],h=d[1],p=i.get(f);p.onsuccess=function(){var v=p.result,g;v?g={key:f,count:v.count+h.count,min:Math.min(v.min,h.min),max:Math.max(v.max,h.max),sum:v.sum+h.sum}:g={key:f,count:h.count,min:h.min,max:h.max,sum:h.sum};var y=i.put(g);y.onerror=function(b){o.logger.debug("DiagnosticsStorage: Failed to set histogram stats",f,b)}},p.onerror=function(v){o.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",f,v)}})})];case 2:return s=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",s),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(t){return V(this,void 0,void 0,function(){var n,r,i,s,o=this;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t.length===0?[2]:[4,this.getDB()];case 1:return n=a.sent(),r=n.transaction([Ae.EVENTS],"readwrite"),i=r.objectStore(Ae.EVENTS),[2,new Promise(function(l){r.oncomplete=function(){l()},r.onabort=function(c){o.logger.debug("DiagnosticsStorage: Failed to add event records",c),l()};var u=i.count();u.onsuccess=function(){var c=u.result,d=Math.max(0,Cx-c);d<t.length&&o.logger.debug("DiagnosticsStorage: Only added ".concat(d," of ").concat(t.length," events due to storage limit")),t.slice(0,d).forEac
37h(function(f){var h=i.add(f);h.onerror=function(p){o.logger.debug("DiagnosticsStorage: Failed to add event record",p)}})},u.onerror=function(c){o.logger.debug("DiagnosticsStorage: Failed to count existing events",c)}})];case 2:return s=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",s),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(t,n){return V(this,void 0,void 0,function(){var r,i,s,o;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=a.sent(),i=r.transaction([Ae.INTERNAL],"readwrite"),s=i.objectStore(Ae.INTERNAL),[2,new Promise(function(l,u){i.onabort=function(){return u(new Error("Failed to set internal value"))};var c=s.put({key:t,value:n});c.onsuccess=function(){return l()},c.onerror=function(){return u(new Error("Failed to set internal value"))}})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",o),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(t){return V(this,void 0,void 0,function(){var n,r,i,s;return j(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.getDB()];case 1:return n=o.sent(),r=n.transaction([Ae.INTERNAL],"readonly"),i=r.objectStore(Ae.INTERNAL),[2,new Promise(function(a,l){r.onabort=function(){return l(new Error("Failed to get internal value"))};var u=i.get(t);u.onsuccess=function(){return a(u.result)},u.onerror=function(){return l(new Error("Failed to get internal value"))}})];case 2:return s=o.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",s),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return V(this,void 0,void 0,function(){var t,n;return j(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getInternal(ed.LAST_FLUSH_TIMESTAMP)];case 1:return t=r.sent(),[2,t?parseInt(t.value,10):void 0];case 2:return n=r.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",n),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(t){return V(this,void 0,void 0,function(){var n;return j(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.setInternal(ed.LAST_FLUSH_TIMESTAMP,t.toString())];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",n),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(t,n){return new Promise(function(r,i){var s=t.objectStore(n),o=s.clear();o.onsuccess=function(){return r()},o.onerror=function(){return i(new Error("Failed to clear table ".concat(n)))}})},e.prototype.getAllAndClear=function(){return V(this,void 0,void 0,function(){var t,n,r,i,s,o,a,l;return j(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),[4,this.getDB()];case 1:return t=u.sent(),n=t.transaction([Ae.TAGS,Ae.COUNTERS,Ae.HISTOGRAMS,Ae.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(n,Ae.TAGS),this.getAllFromStore(n,Ae.COUNTERS),this.getAllFromStore(n,Ae.HISTOGRAMS),this.getAllFromStore(n,Ae.EVENTS)])];case 2:return r=oe.apply(void 0,[u.sent(),4]),i=r[0],s=r[1],o=r[2],a=r[3],[4,Promise.all([this.clearTable(n,Ae.COUNTERS),this.clearTable(n,Ae.HISTOGRAMS),this.clearTable(n,Ae.EVENTS)])];case 3:return u.sent(),[2,{tags:i,counters:s,histogramStats:o,events:a}];case 4:return l=u.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",l),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(t,n){return new Promise(function(r,i){var s=t.objectStore(n),o=s.getAll();o.onsuccess=function(){return r(o.result)},o.onerror=function(){return i(new Error("Failed to get all from ".concat(n)))}})},e}(),Ix=1e3,is=5*60*1e3,kx="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",Ox="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",Wo=1e4,Rx=10,Px=function(){function e(t,n,r,i){r===void 0&&(r="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=t,this.logger=n,this.serverUrl=r==="US"?kx:Ox,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(i,null,2)),this.config=ee({enabled:!0,sampleRate:0},i),this.startTimestamp=Date.now(),this.shouldTrack=Qc(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,td.isSupported()?this.storage=new td(t,n):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval()}return e.prototype.isStorageAndTrackEnabled=function(){return!!this.storage&&!!this.shouldTrack},e.prototype.setTag=function(t,n){if(this.isStorageAndTrackEnabled()){if
37(Object.keys(this.inMemoryTags).length>=Wo){this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit");return}this.inMemoryTags[t]=n,this.startTimersIfNeeded()}},e.prototype.increment=function(t,n){if(n===void 0&&(n=1),!!this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryCounters).length>=Wo){this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit");return}this.inMemoryCounters[t]=(this.inMemoryCounters[t]||0)+n,this.startTimersIfNeeded()}},e.prototype.recordHistogram=function(t,n){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryHistograms).length>=Wo){this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");return}var r=this.inMemoryHistograms[t];r?(r.count+=1,r.min=Math.min(r.min,n),r.max=Math.max(r.max,n),r.sum+=n):this.inMemoryHistograms[t]={count:1,min:n,max:n,sum:n},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(t,n){if(this.isStorageAndTrackEnabled()){if(this.inMemoryEvents.length>=Rx){this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit");return}this.inMemoryEvents.push({event_name:t,time:Date.now(),event_properties:n}),this.startTimersIfNeeded()}},e.prototype.startTimersIfNeeded=function(){var t=this;this.saveTimer||(this.saveTimer=setTimeout(function(){t.saveAllDataToStorage().catch(function(n){t.logger.debug("DiagnosticsClient: Failed to save all data to storage",n)}).finally(function(){t.saveTimer=null})},Ix)),this.flushTimer||(this.flushTimer=setTimeout(function(){t._flush().catch(function(n){t.logger.debug("DiagnosticsClient: Failed to flush",n)}).finally(function(){t.flushTimer=null})},is))},e.prototype.saveAllDataToStorage=function(){return V(this,void 0,void 0,function(){var t,n,r,i;return j(this,function(s){switch(s.label){case 0:return this.storage?(t=ee({},this.inMemoryTags),n=ee({},this.inMemoryCounters),r=ee({},this.inMemoryHistograms),i=xe([],oe(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(t),this.storage.incrementCounters(n),this.storage.setHistogramStats(r),this.storage.addEventRecords(i)])]):[2];case 1:return s.sent(),[2]}})})},e.prototype._flush=function(){return V(this,void 0,void 0,function(){var t,n,r,i,s,o,a,l,u,c;return j(this,function(d){switch(d.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return d.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return t=d.sent(),n=t.tags,r=t.counters,i=t.histogramStats,s=t.events,this.storage.setLastFlushTimestamp(Date.now()),o={},n.forEach(function(f){o[f.key]=f.value}),a={},r.forEach(function(f){a[f.key]=f.value}),l={},i.forEach(function(f){l[f.key]={count:f.count,min:f.min,max:f.max,avg:Math.round(f.sum/f.count*100)/100}}),u=s.map(function(f){return{event_name:f.event_name,time:f.time,event_properties:f.event_properties}}),Object.keys(a).length===0&&Object.keys(l).length===0&&u.length===0?[2]:(c={tags:o,histogram:l,counters:a,events:u},this.fetch(c),[2])}})})},e.prototype.fetch=function(t){return V(this,void 0,void 0,function(){var n,r;return j(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!tt())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(t)})];case 1:return n=i.sent(),n.ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return r=i.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",r),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return V(this,void 0,void 0,function(){var t,n,r;return j(this,function(i){switch(i.label){case 0:return this.storage?(t=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return n=i.sent()||-1,n===-1?(this.storage.setLastFlushTimestamp(t),this._setFlushTimer(is),[2]):(r=t-n,r>=is?(this._flush(),[2]):(this._setFlushTimer(is-r),[2]))}})})},e.prototype._setFlushTimer=function(t){var n=this;this.flushTimer=setTimeout(function(){n._flush().catch(function(r){n.logger.debug("DiagnosticsClient: Failed to flush",r)}).finally(function(){n.flushTimer=null})},t)},e.prototype._setSampleRate=function(t){this.logger.debug("DiagnosticsClient: Setting sample rate to",t),this.config.sampleRate=t,this.shouldTrack=Qc(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e}(),Ll=function(){function e(){}return e.prototype.send=function(t,n){return Promise.resolve(null)},e.prototype.buildResponse=function(t){var n,r,i,s,o,a,l,u,c,d,f,h,p,v,g,y,b,w,x,E,C,P;if(typeof t!="object")return null;var I=t.code||0,T=this.buildStatus(I);switch(T){case et.Success:return{status:T,statusCode:I,body:{eventsIngested:(n=t.events_ingested)!==null&&n!==void 0?n:0,payloadSizeBytes:(r=t.payload_size_bytes)!==null&&r!==void 0?r:0,serverUploadTime:(i=t.server_upload_time)!==null&&i!==void 0?i:0}};case et.Invalid:return{status:T,statusCode:I,body:{error:(s=t.error)!==null&&s!==void 0?s:"",missingField:(o=t.missing_field)!==null&&o!==void 0?o:"",eventsWithInvalidFields:(a=t.events_with_invali
vendor: 5,937 bytes, line 37
37d_fields)!==null&&a!==void 0?a:{},eventsWithMissingFields:(l=t.events_with_missing_fields)!==null&&l!==void 0?l:{},eventsWithInvalidIdLengths:(u=t.events_with_invalid_id_lengths)!==null&&u!==void 0?u:{},epsThreshold:(c=t.eps_threshold)!==null&&c!==void 0?c:0,exceededDailyQuotaDevices:(d=t.exceeded_daily_quota_devices)!==null&&d!==void 0?d:{},silencedDevices:(f=t.silenced_devices)!==null&&f!==void 0?f:[],silencedEvents:(h=t.silenced_events)!==null&&h!==void 0?h:[],throttledDevices:(p=t.throttled_devices)!==null&&p!==void 0?p:{},throttledEvents:(v=t.throttled_events)!==null&&v!==void 0?v:[]}};case et.PayloadTooLarge:return{status:T,statusCode:I,body:{error:(g=t.error)!==null&&g!==void 0?g:""}};case et.RateLimit:return{status:T,statusCode:I,body:{error:(y=t.error)!==null&&y!==void 0?y:"",epsThreshold:(b=t.eps_threshold)!==null&&b!==void 0?b:0,throttledDevices:(w=t.throttled_devices)!==null&&w!==void 0?w:{},throttledUsers:(x=t.throttled_users)!==null&&x!==void 0?x:{},exceededDailyQuotaDevices:(E=t.exceeded_daily_quota_devices)!==null&&E!==void 0?E:{},exceededDailyQuotaUsers:(C=t.exceeded_daily_quota_users)!==null&&C!==void 0?C:{},throttledEvents:(P=t.throttled_events)!==null&&P!==void 0?P:[]}};case et.Timeout:default:return{status:T,statusCode:I}}},e.prototype.buildStatus=function(t){return t>=200&&t<300?et.Success:t===429?et.RateLimit:t===413?et.PayloadTooLarge:t===408?et.Timeout:t>=400&&t<500?et.Invalid:t>=500?et.Failed:et.Unknown},e}(),Nx=function(e){Tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(n,r){return V(this,void 0,void 0,function(){var i,s,o;return j(this,function(a){switch(a.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return i={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(r),method:"POST"},[4,fetch(n,i)];case 1:return s=a.sent(),[4,s.text()];case 2:o=a.sent();try{return[2,this.buildResponse(JSON.parse(o))]}catch{return[2,this.buildResponse({code:s.status})]}return[2]}})})},t}(Ll),Lx=function(){function e(t,n){this.key="AMP_remote_config_".concat(t.substring(0,10)),this.logger=n}return e.prototype.fetchConfig=function(){var t=null,n={remoteConfig:null,lastFetch:new Date};try{t=localStorage.getItem(this.key)}catch(i){return this.logger.debug("Remote config localstorage failed to access: ",i),Promise.resolve(n)}if(t===null)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(n);try{var r=JSON.parse(t);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(r))),Promise.resolve({remoteConfig:r.remoteConfig,lastFetch:new Date(r.lastFetch)})}catch(i){return this.logger.debug("Remote config localstorage failed to parse: ",i),localStorage.removeItem(this.key),Promise.resolve(n)}},e.prototype.setConfig=function(t){try{return localStorage.setItem(this.key,JSON.stringify(t)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(n){this.logger.debug("Remote config localstorage failed to set: ",n)}return Promise.resolve(!1)},e}(),Dx="https://sr-client-cfg.amplitude.com/config",Mx="https://sr-client-cfg.eu.amplitude.com/config",Ux=3,Fx=1e3,$x=function(){function e(t,n,r){r===void 0&&(r="US"),this.callbackInfos=[],this.apiKey=t,this.serverUrl=r==="US"?Dx:Mx,this.logger=n,this.storage=new Lx(t,n)}return e.prototype.subscribe=function(t,n,r){var i=Kn(),s={id:i,key:t,deliveryMode:n,callback:r};return this.callbackInfos.push(s),n==="all"?this.subscribeAll(s):this.subscribeWaitForRemote(s,n.timeout),i},e.prototype.unsubscribe=function(t){var n=this.callbackInfos.findIndex(function(r){return r.id===t});return n===-1?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(t," doesn't exist.")),!1):(this.callbackInfos.splice(n,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(t,".")),!0)},e.prototype.updateConfigs=function(){return V(this,void 0,void 0,function(){var t,n=this;return j(this,function(r){switch(r.label){case 0:return[4,this.fetch()];case 1:return t=r.sent(),this.storage.setConfig(t),this.callbackInfos.forEach(function(i){n.sendCallback(i,t,"remote")}),[2]}})})},e.prototype.subscribeAll=function(t){return V(this,void 0,void 0,function(){var n,r,i,s=this;return j(this,function(o){switch(o.label){case 0:return n=this.fetch().then(function(a){s.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(a))),s.sendCallback(t,a,"remote"),s.storage.setConfig(a)}),r=this.storage.fetchConfig().then(function(a){return a}),[4,Promise.race([n,r])];case 1:return i=o.sent(),i!==void 0&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(i))),this.sendCallback(t,i,"cache")),[4,n];case 2:return o.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(t,n){return V(this,void 0,void 0,function(){var r,i,i;return j(this,function(s){switch(s.label){case 0:r=new Promise(function(o,a){setTimeout(function(){a("Timeout exceeded")},n)}),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,Promise.race([this.fetch(),r])];case 2:return i=s.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(t,i,"remote"),this.storage.setConfig(i),[3,5];case 3:return s.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return i=s.sent(),i.remoteConfig!==null?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(t,i,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(t,i,"remote")),[3,5];case 5:return[2]}})})}
37,e.prototype.sendCallback=function(t,n,r){t.lastCallback=new Date;var i;t.key?i=t.key.split(".").reduce(function(s,o){return s===null?s:o in s?s[o]:null},n.remoteConfig):i=n.remoteConfig,t.callback(i,r,n.lastFetch)},e.prototype.fetch=function(t,n){return t===void 0&&(t=Ux),n===void 0&&(n=Fx),V(this,void 0,void 0,function(){var r,i,s,o,a,l,u=this;return j(this,function(c){switch(c.label){case 0:r=n/t,i={remoteConfig:null,lastFetch:new Date},s=function(d){var f,h,p,v,g,y;return j(this,function(b){switch(b.label){case 0:f=new AbortController,h=setTimeout(function(){return f.abort()},n),b.label=1;case 1:return b.trys.push([1,7,8,9]),[4,fetch(o.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:f.signal})];case 2:return p=b.sent(),p.ok?[3,4]:[4,p.text()];case 3:return v=b.sent(),o.logger.debug("Remote config client fetch with retry time ".concat(t," failed with ").concat(p.status,": ").concat(v)),[3,6];case 4:return[4,p.json()];case 5:return g=b.sent(),[2,{value:{remoteConfig:g,lastFetch:new Date}}];case 6:return[3,9];case 7:return y=b.sent(),y instanceof Error&&y.name==="AbortError"?o.logger.debug("Remote config client fetch with retry time ".concat(t," timed out after ").concat(n,"ms")):o.logger.debug("Remote config client fetch with retry time ".concat(t," is rejected because: "),y),[3,9];case 8:return clearTimeout(h),[7];case 9:return d<t-1?[4,new Promise(function(w){return setTimeout(w,u.getJitterDelay(r))})]:[3,11];case 10:b.sent(),b.label=11;case 11:return[2]}})},o=this,a=0,c.label=1;case 1:return a<t?[5,s(a)]:[3,4];case 2:if(l=c.sent(),typeof l=="object")return[2,l.value];c.label=3;case 3:return a++,[3,1];case 4:return[2,i]}})})},e.prototype.getJitterDelay=function(t){return Math.floor(Math.random()*t)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),n=new URLSearchParams;return n.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(n.toString())},e.CONFIG_GROUP="browser",e}(),jx=null,Bx=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],Rp="data-amp-track-",Vx=["div","span","h1","h2","h3","h4","h5","h6"],qx=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],Hx=xe(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],oe(qx),!1),zx=["*"],Gx=1e3,Kx=4,Wx=50;function Jx(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0}function Pp(e,t,n){if(e){var r=t.map(nd),i=n.map(nd);Np({json:e,allowlist:r,excludelist:i,ancestors:[]})}}function Np(e){var t,n,r=e.json,i=e.targetObject,s=e.allowlist,o=e.excludelist,a=e.ancestors,l=e.parentObject,u=e.targetKey;i||(i=r);var c=Object.keys(i);try{for(var d=Ee(c),f=d.next();!f.done;f=d.next()){var h=f.value,p=xe(xe([],oe(a),!1),[h],!1);Jx(i[h])?(!rd(p,s)||rd(p,o))&&delete i[h]:Np({json:r,targetObject:i[h],allowlist:s,excludelist:o,ancestors:p,parentObject:i,targetKey:h})}}catch(v){t={error:v}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}Object.keys(i).length===0&&l&&u&&delete l[u]}function nd(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(t){return t.replace(/~0/g,"~").replace(/~1/g,"/")})}function Va(e,t,n,r){if(n===void 0&&(n=0),r===void 0&&(r=0),r===t.length)return n===e.length;if(n===e.length){for(;r<t.length&&t[r]==="**";)r++;return r===t.length}var i=t[r];if(i==="**"){if(r+1===t.length)return!0;for(var s=n;s<=e.length;s++)if(Va(e,t,s,r+1))return!0;return!1}else return i==="*"||i===e[n]?Va(e,t,n+1,r+1):!1}function rd(e,t){return t.some(function(n){return Va(e,n)})}var Yx=500,Lp=100,Xx=function(){function e(t){this.request=t}return e.prototype.headers=function(t){var n,r;t===void 0&&(t=[]);var i=this.request.headers,s={};if(Array.isArray(i))i.forEach(function(d){var f=oe(d,2),h=f[0],p=f[1];s[h]=p});else if(i instanceof Headers)i.forEach(function(d,f){s[f]=d});else if(typeof i=="object"&&i!==null)try{for(var o=Ee(Object.entries(i)),a=o.next();!a.done;a=o.next()){var l=oe(a.value,2),u=l[0],c=l[1];s[u]=c}}catch(d){n={error:d}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return yo(s,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize=="number")return this._bodySize;var t=tt();if(t!=null&&t.TextEncoder){var n=this.request.body;return this._bodySize=Dp(n,Lp),this._bodySize}}
37,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body=="string"?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),V(this,void 0,void 0,function(){var r;return j(this,function(i){return t.length===0?[2,null]:(r=this.body,[2,Dl(r,t,n)])})})},e}(),Qx=function(){function e(t,n){this.bodyRaw=t,this.requestHeaders=n}return e.prototype.headers=function(t){return t===void 0&&(t=[]),yo(this.requestHeaders,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return Dp(this.bodyRaw,Lp)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw=="string"?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),V(this,void 0,void 0,function(){var r;return j(this,function(i){return t.length===0?[2,null]:(r=this.body,[2,Dl(r,t,n)])})})},e}();function Dp(e,t){var n,r,i,s=tt(),o=s==null?void 0:s.TextEncoder;if(o){var a;if(typeof e=="string")a=e,i=new o().encode(a).length;else if(e instanceof Blob)a=e,i=a.size;else if(e instanceof URLSearchParams)a=e,i=new o().encode(a.toString()).length;else if(ArrayBuffer.isView(e))a=e,i=a.byteLength;else if(e instanceof ArrayBuffer)a=e,i=a.byteLength;else if(e instanceof FormData){var l=e,u=0,c=0;try{for(var d=Ee(l.entries()),f=d.next();!f.done;f=d.next()){var h=oe(f.value,2),p=h[0],v=h[1];if(u+=p.length,typeof v=="string")u+=new o().encode(v).length;else if(v instanceof Blob)u+=v.size;else return;if(++c>=t)return}}catch(g){n={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}i=u}else if(e instanceof ReadableStream){a=e;return}return i}}var Zx=function(){function e(t){this.response=t}return e.prototype.headers=function(t){var n;if(t===void 0&&(t=[]),this.response.headers instanceof Headers){var r=this.response.headers,i={};return(n=r==null?void 0:r.forEach)===null||n===void 0||n.call(r,function(s,o){i[o]=s}),yo(i,{allow:t})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var t,n;if(this._bodySize!==void 0)return this._bodySize;var r=(n=(t=this.response.headers)===null||t===void 0?void 0:t.get)===null||n===void 0?void 0:n.call(t,"content-length"),i=r?parseInt(r,10):void 0;return this._bodySize=i,i},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return V(this,void 0,void 0,function(){var t,n,r;return j(this,function(i){switch(i.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),i.label=1;case 1:return i.trys.push([1,3,,4]),t=this.clonedResponse.text(),n=new Promise(function(s){return setTimeout(function(){return s(null)},Yx)}),[4,Promise.race([t,n])];case 2:return r=i.sent(),[2,r];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),V(this,void 0,void 0,function(){var r;return j(this,function(i){switch(i.label){case 0:return t.length===0?[2,null]:[4,this.text()];case 1:return r=i.sent(),[2,Dl(r,t,n)]}})})},e}(),e_=function(){function e(t,n,r,i){this.statusCode=t,this.headersString=n,this.size=r,this.getJson=i}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(t){var n,r;if(t===void 0&&(t=[]),!this.headersString)return{};var i={},s=this.headersString.split(`\r
38`);try{for(var o=Ee(s),a=o.next();!a.done;a=o.next()){var l=a.value,u=oe(l.split(": "),2),c=u[0],d=u[1];c&&d&&(i[c]=d)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return yo(i,{allow:t})},e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),V(this,void 0,void 0,function(){var r;return j(this,function(i){return t.length===0?[2,null]:(r=this.getJson(),r?(Pp(r,t,n),[2,r]):[2,null])})})},e}();function Dl(e,t,n){if(!e)return null;try{var r=JSON.parse(e);return Pp(r,t,n),r}catch{return null}}var di;(function(e){e.REDACT="redact",e.REMOVE="remove"})(di||(di={}));var id="[REDACTED]",yo=function(e,t){var n,r,i=t.allow,s=i===void 0?[]:i,o=t.strategy,a=o===void 0?di.REMOVE:o,l=xe([],oe(Uw),!1),u={},c=function(p){var v=p.toLowerCase();l.find(function(g){return g.toLowerCase()===v})?a===di.REDACT&&(u[p]=id):s.find(function(g){return g.toLowerCase()===v})?u[p]=e[p]:a===di.REDACT&&(u[p]=id)};try{for(var d=Ee(Object.keys(e)),f=d.next();!f.done;f=d.next()){var h=f.value;c(h)}}catch(p){n={error:p}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return u},t_=function(){function e(t,n,r,i,s,o,a,l,u,c,d){a===void 0&&(a=0),this.type=t,this.method=n,this.timestamp=r,this.startTime=i,this.url=s,this.requestWrapper=o,this.status=a,this.duration=l,this.responseWrapper=u,this.error=c,this.endTime=d}return e.prototype.toSerializable=function(){var t,n,r,i,s={type:this.t
38ype,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:(t=this.requestWrapper)===null||t===void 0?void 0:t.headers(xe([],oe(Bs),!1)),requestBodySize:(n=this.requestWrapper)===null||n===void 0?void 0:n.bodySize,responseHeaders:(r=this.responseWrapper)===null||r===void 0?void 0:r.headers(xe([],oe(Bs),!1)),responseBodySize:(i=this.responseWrapper)===null||i===void 0?void 0:i.bodySize};return Object.fromEntries(Object.entries(s).filter(function(o){var a=oe(o,2);a[0];var l=a[1];return l!==void 0}))},e}();function n_(e){return typeof e=="object"&&e!==null&&"url"in e&&"method"in e}var r_=function(){function e(t,n){n===void 0&&(n=Kn()),this.callback=t,this.id=n}return e}(),i_=function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var n=tt();e.isSupported()&&(this.globalScope=n)}return e.isSupported=function(){var t=tt();return!!t&&!!t.fetch},e.prototype.subscribe=function(t,n){var r,i,s,o,a,l,u,c,d,f;if(this.logger||(this.logger=n),this.eventCallbacks.set(t.id,t),!this.isObserving){var h=(s=(i=(r=this.globalScope)===null||r===void 0?void 0:r.XMLHttpRequest)===null||i===void 0?void 0:i.prototype)===null||s===void 0?void 0:s.open,p=(l=(a=(o=this.globalScope)===null||o===void 0?void 0:o.XMLHttpRequest)===null||a===void 0?void 0:a.prototype)===null||l===void 0?void 0:l.send,v=(d=(c=(u=this.globalScope)===null||u===void 0?void 0:u.XMLHttpRequest)===null||c===void 0?void 0:c.prototype)===null||d===void 0?void 0:d.setRequestHeader;h&&p&&v&&this.observeXhr(h,p,v);var g=(f=this.globalScope)===null||f===void 0?void 0:f.fetch;g&&this.observeFetch(g),this.isObserving=!0}},e.prototype.unsubscribe=function(t){this.eventCallbacks.delete(t.id)},e.prototype.triggerEventCallbacks=function(t){var n=this;this.eventCallbacks.forEach(function(r){var i;try{r.callback(t)}catch(s){(i=n.logger)===null||i===void 0||i.debug("an unexpected error occurred while triggering event callbacks",s)}})},e.prototype.handleNetworkRequestEvent=function(t,n,r,i,s,o,a){var l;if(!(o===void 0||a===void 0)){var u,c="GET";if(n_(n)?(u=n.url,c=n.method):u=(l=n==null?void 0:n.toString)===null||l===void 0?void 0:l.call(n),u)try{var d=new URL(u);u="".concat(d.protocol,"//").concat(d.host).concat(d.pathname).concat(d.search).concat(d.hash)}catch{}c=(r==null?void 0:r.method)||c;var f,h;i&&(f=i.status),s&&(h={name:s.name||"UnknownError",message:s.message||"An unknown error occurred"},f=0);var p=Math.floor(performance.now()-a),v=Math.floor(o+p),g=new t_(t,c,o,o,u,r,f,p,i,h,v);this.triggerEventCallbacks(g)}},e.prototype.getTimestamps=function(){var t,n;return{startTime:(t=Date.now)===null||t===void 0?void 0:t.call(Date),durationStart:(n=performance==null?void 0:performance.now)===null||n===void 0?void 0:n.call(performance)}},e.prototype.observeFetch=function(t){var n=this;!this.globalScope||!t||(this.globalScope.fetch=function(r,i){return V(n,void 0,void 0,function(){var s,o,a,l,u,c;return j(this,function(d){switch(d.label){case 0:try{s=this.getTimestamps()}catch(f){(u=this.logger)===null||u===void 0||u.debug("an unexpected error occurred while retrieving timestamps",f)}d.label=1;case 1:return d.trys.push([1,3,,4]),[4,t(r,i)];case 2:return o=d.sent(),[3,4];case 3:return l=d.sent(),a=l,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",r,i?new Xx(i):void 0,o?new Zx(o):void 0,a,s==null?void 0:s.startTime,s==null?void 0:s.durationStart)}catch(f){(c=this.logger)===null||c===void 0||c.debug("an unexpected error occurred while handling fetch",f)}if(o)return[2,o];throw a}})})})},e.createXhrJsonParser=function(t,n){return function(){var r,i;try{if(t.responseType==="json"){if(!((r=n.globalScope)===null||r===void 0)&&r.structuredClone)return n.globalScope.structuredClone(t.response)}else if(["text",""].includes(t.responseType))return JSON.parse(t.responseText)}catch(s){return s instanceof Error&&s.name==="InvalidStateError"&&((i=n.logger)===null||i===void 0||i.error("unexpected error when retrieving responseText. responseType='".concat(t.responseType,"'"))),null}return null}},e.prototype.observeXhr=function(t,n,r){if(!(!this.globalScope||!t||!n)){var i=this.globalScope.XMLHttpRequest.prototype,s=this;i.open=function(){for(var o,a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var c=this,d=oe(l,2),f=d[0],h=d[1];try{c.$$AmplitudeAnalyticsEvent=ee({method:f,url:(o=h==null?void 0:h.toString)===null||o===void 0?void 0:o.call(h),headers:{}},s.getTimestamps())}catch(p){(a=s.logger)===null||a===void 0||a.error("an unexpected error occurred while calling xhr open",p)}return t.apply(c,l)},i.send=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var l=this,u=l,c=e.createXhrJsonParser(l,s),d=o[0],f=u.$$AmplitudeAnalyticsEvent;return u.addEventListener("loadend",function(){var h;try{var p=u.getAllResponseHeaders(),v=u.getResponseHeader("content-length"),g=new e_(u.status,p,v?parseInt(v,10):void 0,c),y=u.$$AmplitudeAnalyticsEvent.headers,b=new Qx(d,y);f.status=u.status,s.handleNetworkRequestEvent("xhr",{url:f.url,method:f.method},b,g,void 0,f.startTime,f.durationStart)}catch(w){(h=s.logger)===null||h===void 0||h.error("an unexpected error occurred while handling xhr send",w)}}),n.apply(u,o)},i.setRequestHeader=function(o,a){var l,u=this;try{u.$$AmplitudeAnalyticsEvent.headers[o]=a}catch(c){(l=s.logger)===null||l===void 0||l.error("an unexpected error occurred while calling xhr setRequestHeader",c)}r.apply(u,[o,a])}}},e}(),sd=new i_,Mp=function(){function e(){}return e.prototype.parse=function(){return V(this,void 0,void 0,function(){return j(this,function(t){return[2,ee(ee(ee(ee({},mo),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=qs(),n=t[Rw],r=t[Pw],i=t[Nw],s=t[Lw],o=t[Dw],a=t[Mw];return{utm_campaign:n,utm_content:r,utm_id:i,utm_medium:s,utm_source:o,utm_term:a}},e.prototype.getReferrer=function(){var t,n,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=(n=(t=r.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&n!==void 0?n:void 0}catch{}return r},e.prototype.getClickIds=function(){var t,n=qs();return t={},t[Fc]=n[Fc],t[$c]=n[$c],t[jc]=n[jc],t[Bc]=n[Bc],t[Vc]=n[Vc],t[qc]=n[qc],t[Hc]=n[Hc],t[zc]=n[zc],t[Gc]=n[Gc],t[Kc]=n[Kc],t[Wc]=n[Wc],t},e}(),fi="data-amp-mask",$n="*****",s_=/\b(?:\d[ -]*?){13,16}\b/,o_=/(\d{3}-?\d{2}-?\d{4})/g,a_=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,Up=function(e,t){var n,r;if(t===void 0&&(t=[]),typeof e!="string")return"";var i=e;i=i.replace(s_,$n),i=i.replace(o_,$n),i=i.replace(a_,$n);try{for(var s=Ee(t),o=s.next();!o.done;o=s.next()){var a=o.value;try{i=i.replace(a,$n)}catch{}}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i},Fp=function(e){if(typeof document>"u"||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(fi)?$n:e?e(document.title):document.title},Bi=function(e,t){return typeof e=="boolean"?e:(e==null?void 0:e[t])!==!1},$p=function(e){return Bi(e,"attribution")},l_=function(e){return Bi(e,"fileDownloads")},u_=function(e){return Bi(e,"formInteractions")},jp=function(e){return Bi(e,"pageViews")},od=function(e){return Bi(e,"sessions")},Bp=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.networkTracking===!0||typeof e.networkTracking=="object")},Vp=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},c_=function(e){return typeof e=="object"&&e.webVitals===!0},qp=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions=="object")},d_=function(e){if(Vp(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},f_=function(e){if(qp(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.frustrationInteractions=="object")return e.autocapture.frustrationInteractions},h_=function(e){var t;if(Bp(e.autocapture)){var n=void 0;
38return typeof e.autocapture=="object"&&typeof e.autocapture.networkTracking=="object"?n=e.autocapture.networkTracking:e.networkTrackingOptions&&(n=e.networkTrackingOptions),ee(ee({},n),{captureRules:(t=n==null?void 0:n.captureRules)===null||t===void 0?void 0:t.map(function(r){var i,s,o;if(!((i=r.urls)===null||i===void 0)&&i.length&&(!((s=r.hosts)===null||s===void 0)&&s.length)){var a=JSON.stringify(r.hosts),l=JSON.stringify(r.urls);return(o=e.loggerProvider)===null||o===void 0||o.warn("Found network capture rule with both urls='".concat(l,"' and hosts='").concat(a,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),ee(ee({},r),{hosts:void 0})}return r})})}},p_=function(e){var t=function(){return!1},n=void 0,r,i=e.pageCounter,s=jp(e.defaultTracking);return s&&(t=void 0,r=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(r=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:n,eventType:r,pageCounter:i}},v_=function(e){return $p(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?ee({},e.defaultTracking.attribution):{}},Jo=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,s=r.args,o=r.resolve,a=e&&e[i];if(typeof a=="function"){var l=a.apply(e,s);typeof o=="function"&&o(l==null?void 0:l.promise)}}return e},Yo=function(e){var t=e;return t&&t._q!==void 0},Ml="2.26.2",Hp="amplitude-ts",g_="Web",m_="$remote",y_=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(Hp,"/").concat(Ml),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(t){return this.config=t,Promise.resolve(void 0)},e.prototype.execute=function(t){var n,r;return V(this,void 0,void 0,function(){var i,s,o,a;return j(this,function(l){return i=new Date().getTime(),s=(n=this.config.lastEventId)!==null&&n!==void 0?n:-1,o=(r=t.event_id)!==null&&r!==void 0?r:s+1,this.config.lastEventId=o,t.time||(this.config.lastEventTime=i),a=ee(ee(ee(ee(ee(ee(ee(ee({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:g_}),this.config.trackingOptions.language&&{language:bx()}),this.config.trackingOptions.ipAddress&&{ip:m_}),{insert_id:Kn(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),t),{event_id:o,library:this.library,user_agent:this.userAgent}),[2,a]})})},e}(),ss=1e3,zp=function(e){Tt(t,e);function t(n){var r=this,i,s,o;try{o=(i=tt())===null||i===void 0?void 0:i.localStorage}catch(a){(s=n==null?void 0:n.loggerProvider)===null||s===void 0||s.debug("Failed to access localStorage. error=".concat(JSON.stringify(a))),o=void 0}return r=e.call(this,o)||this,r.loggerProvider=n==null?void 0:n.loggerProvider,r}return t.prototype.set=function(n,r){var i;return V(this,void 0,void 0,function(){var s;return j(this,function(o){switch(o.label){case 0:return Array.isArray(r)&&r.length>ss?(s=r.length-ss,[4,e.prototype.set.call(this,n,r.slice(0,ss))]):[3,2];case 1:return o.sent(),(i=this.loggerProvider)===null||i===void 0||i.error("Failed to save ".concat(s," events because the queue length exceeded ").concat(ss,".")),[3,4];case 2:return[4,e.prototype.set.call(this,n,r)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(Op),b_=function(e){Tt(t,e);function t(){var n;return e.call(this,(n=tt())===null||n===void 0?void 0:n.sessionStorage)||this}return t}(Op),w_=function(e){Tt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={done:4},n}return t.prototype.send=function(n,r){return V(this,void 0,void 0,function(){var i=this;return j(this,function(s){return[2,new Promise(function(o,a){typeof XMLHttpRequest>"u"&&a(new Error("XHRTransport is not supported."));var l=new XMLHttpRequest;l.open("POST",n,!0),l.onreadystatechange=function(){if(l.readyState===i.state.done){var u=l.responseText;try{o(i.buildResponse(JSON.parse(u)))}catch{o(i.buildResponse({code:l.status}))}}},l.setRequestHeader("Content-Type","application/json"),l.setRequestHeader("Accept","*/*"),l.send(JSON.stringify(r))})]})})},t}(Ll),x_=function(e){Tt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(n,r){return V(this,void 0,void 0,function(){var i=this;return j(this,function(s){return[2,new Promise(function(o,a){var l=tt();if(!(l!=null&&l.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var u=JSON.stringify(r),c=l.navigator.sendBeacon(n,JSON.stringify(r));return o(c?i.buildResponse({code:200,events_ingested:r.events.length,payload_size_bytes:u.length,server_upload_time:Date.now()}):i.buildResponse({code:500}))}catch(d){a(d)}})]})})},t}(Ll),__=function(e,t,n){return n===void 0&&(n=!0),V(void 0,void 0,void 0,function(){var r,i,s,o,a,l,u,c,d;return j(this,function(f){switch(f.label){case 0:return r=yx(e),[4,t.getRaw(r)];case 1:return i=f.sent(),i?n?[4,t.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:f.sent(),f.label=3;
38case 3:return s=oe(i.split("."),6),o=s[0],a=s[1],l=s[2],u=s[3],c=s[4],d=s[5],[2,{deviceId:o,userId:E_(a),sessionId:Xo(u),lastEventId:Xo(d),lastEventTime:Xo(c),optOut:!!l}]}})})},Xo=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},E_=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},Jt="[Amplitude]",ad="".concat(Jt," Form Started"),S_="".concat(Jt," Form Submitted"),T_="".concat(Jt," File Downloaded"),ld="session_start",ud="session_end",C_="".concat(Jt," File Extension"),A_="".concat(Jt," File Name"),I_="".concat(Jt," Link ID"),k_="".concat(Jt," Link Text"),O_="".concat(Jt," Link URL"),Qo="".concat(Jt," Form ID"),Zo="".concat(Jt," Form Name"),ea="".concat(Jt," Form Destination"),Hs="cookie",R_="US",P_=function(e){Tt(t,e);function t(n,r,i,s,o,a,l,u,c,d,f,h,p,v,g,y,b,w,x,E,C,P,I,T,k,B,N,ie,X,q,K,ae,se,ze,Ze,Oe,ke,Me,Le){i===void 0&&(i=new Nl),s===void 0&&(s={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),u===void 0&&(u=1e3),c===void 0&&(c=5),d===void 0&&(d=30),f===void 0&&(f=Hs),y===void 0&&(y=new Cp),b===void 0&&(b=Nt.Warn),x===void 0&&(x=!1),E===void 0&&(E=!1),I===void 0&&(I=""),T===void 0&&(T=R_),B===void 0&&(B=30*60*1e3),N===void 0&&(N=new zp({loggerProvider:y})),ie===void 0&&(ie={ipAddress:!0,language:!0,platform:!0}),X===void 0&&(X="fetch"),q===void 0&&(q=!1),K===void 0&&(K=!0),ke===void 0&&(ke=!0),Me===void 0&&(Me=0);var re=e.call(this,{apiKey:n,storageProvider:N,transportProvider:Gp(X)})||this;return re.apiKey=n,re.appVersion=r,re.cookieOptions=s,re.defaultTracking=o,re.autocapture=a,re.flushIntervalMillis=u,re.flushMaxRetries=c,re.flushQueueSize=d,re.identityStorage=f,re.ingestionMetadata=h,re.instanceName=p,re.loggerProvider=y,re.logLevel=b,re.minIdLength=w,re.offline=x,re.partnerId=C,re.plan=P,re.serverUrl=I,re.serverZone=T,re.sessionTimeout=B,re.storageProvider=N,re.trackingOptions=ie,re.transport=X,re.useBatch=q,re.fetchRemoteConfig=K,re.networkTrackingOptions=Ze,re.identify=Oe,re.enableDiagnostics=ke,re.diagnosticsSampleRate=Me,re.diagnosticsClient=Le,re.version=Ml,re._optOut=!1,re._cookieStorage=i,re.deviceId=l,re.lastEventId=v,re.lastEventTime=g,re.optOut=E,re.sessionId=k,re.pageCounter=se,re.userId=ae,re.debugLogsEnabled=ze,re.loggerProvider.enable(ze?Nt.Debug:re.logLevel),re.networkTrackingOptions=Ze,re.identify=Oe,re.enableDiagnostics=ke,re.diagnosticsSampleRate=Me,re.diagnosticsClient=Le,re}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(n){this._cookieStorage!==n&&(this._cookieStorage=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(n){this._deviceId!==n&&(this._deviceId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(n){this._userId!==n&&(this._userId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(n){this._sessionId!==n&&(this._sessionId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(n){this._optOut!==n&&(this._optOut=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(n){this._lastEventTime!==n&&(this._lastEventTime=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(n){this._lastEventId!==n&&(this._lastEventId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(n){this._pageCounter!==n&&(this._pageCounter=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(n){this._debugLogsEnabled!==n&&(this._debugLogsEnabled=n,this.updateStorage())}
38,enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var n={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(kp(this.apiKey),n)},t}(nx),N_=function(e,t,n){return t===void 0&&(t={}),V(void 0,void 0,void 0,function(){var r,i,s,o,a,l,u,c,d,f,h,p,v,g,y,b,w,x,E,C,P,I,T,k,B,N,ie,X,q,K,ae,se,ze,Ze,Oe,ke,Me,Le,re,dt,L,ne,Y,le,we;return j(this,function(_){switch(_.label){case 0:return r=t.identityStorage||Hs,P={},r===Hs?[3,1]:(s="",[3,5]);case 1:return(T=(I=t.cookieOptions)===null||I===void 0?void 0:I.domain)!==null&&T!==void 0?(o=T,[3,4]):[3,2];case 2:return[4,D_()];case 3:o=_.sent(),_.label=4;case 4:s=o,_.label=5;case 5:return i=ee.apply(void 0,[(P.domain=s,P.expiration=365,P.sameSite="Lax",P.secure=!1,P.upgrade=!0,P),t.cookieOptions]),a=L_(t.identityStorage,i),[4,__(e,a,(B=(k=t.cookieOptions)===null||k===void 0?void 0:k.upgrade)!==null&&B!==void 0?B:!0)];case 6:return l=_.sent(),[4,a.get(kp(e))];case 7:return u=_.sent(),c=qs(),d=c.ampTimestamp?Number(c.ampTimestamp):void 0,f=d?Date.now()<d:!0,h=(K=(q=(X=(N=t.deviceId)!==null&&N!==void 0?N:f?(ie=c.ampDeviceId)!==null&&ie!==void 0?ie:c.deviceId:void 0)!==null&&X!==void 0?X:u==null?void 0:u.deviceId)!==null&&q!==void 0?q:l.deviceId)!==null&&K!==void 0?K:Kn(),p=(ae=u==null?void 0:u.lastEventId)!==null&&ae!==void 0?ae:l.lastEventId,v=(se=u==null?void 0:u.lastEventTime)!==null&&se!==void 0?se:l.lastEventTime,g=(Ze=(ze=t.optOut)!==null&&ze!==void 0?ze:u==null?void 0:u.optOut)!==null&&Ze!==void 0?Ze:l.optOut,y=(Oe=u==null?void 0:u.sessionId)!==null&&Oe!==void 0?Oe:l.sessionId,b=(Me=(ke=t.userId)!==null&&ke!==void 0?ke:u==null?void 0:u.userId)!==null&&Me!==void 0?Me:l.userId,n.previousSessionDeviceId=(Le=u==null?void 0:u.deviceId)!==null&&Le!==void 0?Le:l.deviceId,n.previousSessionUserId=(re=u==null?void 0:u.userId)!==null&&re!==void 0?re:l.userId,w={ipAddress:(L=(dt=t.trackingOptions)===null||dt===void 0?void 0:dt.ipAddress)!==null&&L!==void 0?L:!0,language:(Y=(ne=t.trackingOptions)===null||ne===void 0?void 0:ne.language)!==null&&Y!==void 0?Y:!0,platform:(we=(le=t.trackingOptions)===null||le===void 0?void 0:le.platform)!==null&&we!==void 0?we:!0},x=u==null?void 0:u.pageCounter,E=u==null?void 0:u.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),C=new P_(e,t.appVersion,a,i,t.defaultTracking,t.autocapture,h,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,p,v,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,g,t.partnerId,t.plan,t.serverUrl,t.serverZone,y,t.sessionTimeout,t.storageProvider,w,t.transport,t.useBatch,t.fetchRemoteConfig,b,x,E,t.networkTrackingOptions,t.identify,t.enableDiagnostics),[4,C.storageProvider.isEnabled()];case 8:return _.sent()||(C.loggerProvider.warn("Storage provider ".concat(C.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),C.storageProvider=new Nl),[2,C]}})})},L_=function(e,t){switch(e===void 0&&(e=Hs),t===void 0&&(t={}),e){case"localStorage":return new zp;case"sessionStorage":return new b_;case"none":return new Nl;case"cookie":default:return new Ba(ee(ee({},t),{expirationDays:t.expiration}))}},Gp=function(e){return e==="xhr"?new w_:e==="beacon"?new x_:new Nx},D_=function(e){return V(void 0,void 0,void 0,function(){var t,n,r,i,s,s,o,a,l,u;return j(this,function(c){switch(c.label){case 0:return[4,new Ba().isEnabled()];case 1:if(!c.sent()||typeof location>"u"||!location.hostname)return[2,""];for(t=location.hostname,n=t.split("."),r=[],i="AMP_TLDTEST",s=n.length-2;s>=0;--s)r.push(n.slice(s).join("."));s=0,c.label=2;case 2:return s<r.length?(o=r[s],a={domain:"."+o},l=new Ba(a),[4,l.set(i,1)]):[3,7];case 3:return c.sent(),[4,l.get(i)];case 4:return u=c.sent(),u?[4,l.remove(i)]:[3,6];case 5:return c.sent(),[2,"."+o];case 6:return s++,[3,2];case 7:return[2,""]}})})},M_=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},U_="[Amplitude] Page Viewed",F_=function(e){e===void 0&&(e={});var t,n=tt(),r=void 0,i=!1,s,o=e.trackOn,a=e.trackHistoryChanges,l=e.eventType,u=l===void 0?U_:l,c=function(y){var b=y;try{b=decodeURI(y)}catch(w){r==null||r.error("Malformed URI sequence: ",w)}return b},d=function(){return V(void 0,void 0,void 0,function(){var y,b,w;return j(this,function(x){switch(x.label){case 0:return y=c(typeof location<"u"&&location.href||""),w={event_type:u},b=[{}
38],[4,$_()];case 1:return[2,(w.event_properties=ee.apply(void 0,[ee.apply(void 0,b.concat([x.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":y,"[Amplitude] Page Path":typeof location<"u"&&c(location.pathname)||"","[Amplitude] Page Title":Fp(Up),"[Amplitude] Page URL":y.split("?")[0]}]),w)]}})})},f=function(){return typeof o>"u"||typeof o=="function"&&o()},h=typeof location<"u"?location.href:null,p=function(){return V(void 0,void 0,void 0,function(){var y,b,w,x;return j(this,function(E){switch(E.label){case 0:return y=location.href,b=B_(a,y,h||"")&&f(),h=y,b?(r==null||r.log("Tracking page view event"),t!=null?[3,1]:[3,3]):[3,4];case 1:return x=(w=t).track,[4,d()];case 2:x.apply(w,[E.sent()]),E.label=3;case 3:E.label=4;case 4:return[2]}})})},v=function(){p()},g={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(y,b){return V(void 0,void 0,void 0,function(){var w,x;return j(this,function(E){switch(E.label){case 0:return t=b,s=y,r=y.loggerProvider,r.log("Installing @amplitude/plugin-page-view-tracking-browser"),i=!0,n&&(n.addEventListener("popstate",v),n.history.pushState=new Proxy(n.history.pushState,{apply:function(C,P,I){var T=oe(I,3),k=T[0],B=T[1],N=T[2];C.apply(P,[k,B,N]),i&&p()}})),f()?(r.log("Tracking page view event"),x=(w=t).track,[4,d()]):[3,2];case 1:x.apply(w,[E.sent()]),E.label=2;case 2:return[2]}})})},execute:function(y){return V(void 0,void 0,void 0,function(){var b;return j(this,function(w){switch(w.label){case 0:return o==="attribution"&&j_(y)?(r==null||r.log("Enriching campaign event to page view event with campaign parameters"),[4,d()]):[3,2];case 1:b=w.sent(),y.event_type=b.event_type,y.event_properties=ee(ee({},y.event_properties),b.event_properties),w.label=2;case 2:return s&&y.event_type===u&&(s.pageCounter=s.pageCounter?s.pageCounter+1:1,y.event_properties=ee(ee({},y.event_properties),{"[Amplitude] Page Counter":s.pageCounter})),[2,y]}})})},teardown:function(){return V(void 0,void 0,void 0,function(){return j(this,function(y){return n&&(n.removeEventListener("popstate",v),i=!1),[2]})})}};return g},$_=function(){return V(void 0,void 0,void 0,function(){var e;return j(this,function(t){switch(t.label){case 0:return e=M_,[4,new Mp().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},j_=function(e){if(e.event_type==="$identify"&&e.user_properties){var t=e.user_properties,n=t[Fn.SET]||{},r=t[Fn.UNSET]||{},i=xe(xe([],oe(Object.keys(n)),!1),oe(Object.keys(r)),!1);return Object.keys(mo).every(function(s){return i.includes(s)})}return!1},B_=function(e,t,n){switch(e){case"pathOnly":{if(n=="")return!0;var r=new URL(t),i=new URL(n),s=r.origin+r.pathname,o=i.origin+i.pathname;return s!==o}default:return t!==n}},V_=function(){var e,t=[],n=function(u,c,d){u.addEventListener(c,d),t.push({element:u,type:c,handler:d})},r=function(){t.forEach(function(u){var c=u.element,d=u.type,f=u.handler;c==null||c.removeEventListener(d,f)}),t=[]},i="@amplitude/plugin-form-interaction-tracking-browser",s="enrichment",o=function(u,c){return V(void 0,void 0,void 0,function(){var d,f;return j(this,function(h){return d=function(){if(!c){u.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var p=function(g){var y=!1;n(g,"change",function(){var b,w=cd(g);y||c.track(ad,(b={},b[Qo]=fr(g.id),b[Zo]=fr(g.name),b[ea]=w,b)),y=!0}),n(g,"submit",function(){var b,w,x=cd(g);y||c.track(ad,(b={},b[Qo]=fr(g.id),b[Zo]=fr(g.name),b[ea]=x,b)),c.track(S_,(w={},w[Qo]=fr(g.id),w[Zo]=fr(g.name),w[ea]=x,w)),y=!1})},v=Array.from(document.getElementsByTagName("form"));v.forEach(p),typeof MutationObserver<"u"&&(e=new MutationObserver(function(g){g.forEach(function(y){y.addedNodes.forEach(function(b){b.nodeName==="FORM"&&p(b),"querySelectorAll"in b&&typeof b.querySelectorAll=="function"&&Array.from(b.querySelectorAll("form")).map(p)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?d():(f=tt(),f?f.addEventListener("load",d):u.loggerProvider.debug("Form interaction tracking is not installed because global is undefined.")),[2]})})},a=function(u){return V(void 0,void 0,void 0,function(){return j(this,function(c){return[2,u]})})},l=function(){return V(void 0,void 0,void 0,function(){return j(this,function(u){return e==null||e.disconnect(),r(),[2]})})};return{name:i,type:s,setup:o,execute:a,teardown:l}},fr=function(e){if(typeof e=="string")return e}
38,cd=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(t??""),window.location.href).href}catch{}return t},q_=function(){var e,t=[],n=function(u,c,d){u.addEventListener(c,d),t.push({element:u,type:c,handler:d})},r=function(){t.forEach(function(u){var c=u.element,d=u.type,f=u.handler;c==null||c.removeEventListener(d,f)}),t=[]},i="@amplitude/plugin-file-download-tracking-browser",s="enrichment",o=function(u,c){return V(void 0,void 0,void 0,function(){var d,f;return j(this,function(h){return d=function(){if(!c){u.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var p=function(y){var b;try{b=new URL(y.href,window.location.href)}catch{return}var w=v.exec(b.href),x=w==null?void 0:w[1];x&&n(y,"click",function(){var E;x&&c.track(T_,(E={},E[C_]=x,E[A_]=b.pathname,E[I_]=y.id,E[k_]=y.text,E[O_]=y.href,E))})},v=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,g=Array.from(document.getElementsByTagName("a"));g.forEach(p),typeof MutationObserver<"u"&&(e=new MutationObserver(function(y){y.forEach(function(b){b.addedNodes.forEach(function(w){w.nodeName==="A"&&p(w),"querySelectorAll"in w&&typeof w.querySelectorAll=="function"&&Array.from(w.querySelectorAll("a")).map(p)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?d():(f=tt(),f?f.addEventListener("load",d):u.loggerProvider.debug("File download tracking is not installed because global is undefined.")),[2]})})},a=function(u){return V(void 0,void 0,void 0,function(){return j(this,function(c){return[2,u]})})},l=function(){return V(void 0,void 0,void 0,function(){return j(this,function(u){return e==null||e.disconnect(),r(),[2]})})};return{name:i,type:s,setup:o,execute:a,teardown:l}},dd=!1,H_=function(e){if(!(dd||e.defaultTracking!==void 0)){var t=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:
39
40amplitude.init(<YOUR_API_KEY>, {
41  defaultTracking: true,
42});
43
44Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(t),dd=!0}},z_=function(){var e="@amplitude/plugin-network-checker-browser",t="before",n=tt(),r=[],i=function(l,u){n!=null&&n.addEventListener&&(n==null||n.addEventListener(l,u),r.push({type:l,handler:u}))},s=function(){r.forEach(function(l){var u=l.type,c=l.handler;n==null||n.removeEventListener(u,c)}),r=[]},o=function(l,u){return V(void 0,void 0,void 0,function(){return j(this,function(c){return typeof navigator>"u"?(l.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),l.offline=!1,[2]):(l.offline=!navigator.onLine,i("online",function(){l.loggerProvider.debug("Network connectivity changed to online."),l.offline=!1,setTimeout(function(){u.flush()},l.flushIntervalMillis)}),i("offline",function(){l.loggerProvider.debug("Network connectivity changed to offline."),l.offline=!0}),[2])})})},a=function(){return V(void 0,void 0,void 0,function(){return j(this,function(l){return s(),[2]})})};return{name:e,type:t,setup:o,teardown:a}};function Kp(e){var t,n,r,i,s,o,a,l,u,c,d;if(!(typeof e!="object"||e===null)&&!Array.isArray(e)){var f=Object.keys(e);try{for(var h=Ee(f),p=h.next();!p.done;p=h.next()){var v=p.value;try{var g=e[v];typeof(g==null?void 0:g.enabled)=="boolean"&&(g.enabled?(delete g.enabled,Object.keys(g).length===0&&(e[v]=!0)):e[v]=!1),Kp(g)}catch{}}}catch(B){t={error:B}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}try{if(!((u=(l=(a=e.autocapture)===null||a===void 0?void 0:a.networkTracking)===null||l===void 0?void 0:l.captureRules)===null||u===void 0)&&u.length)try{for(var y=Ee(e.autocapture.
44networkTracking.captureRules),b=y.next();!b.done;b=y.next()){var w=b.value;try{for(var x=(s=void 0,Ee(["responseHeaders","requestHeaders"])),E=x.next();!E.done;E=x.next()){var C=E.value,P=(c=w[C])!==null&&c!==void 0?c:{},I=P.captureSafeHeaders,T=P.allowlist;if(!(!I&&!T)){if(T!==void 0&&!Array.isArray(T)){delete w[C];continue}w[C]=xe(xe([],oe(I?Bs:[]),!1),oe(T??[]),!1)}}}catch(B){s={error:B}}finally{try{E&&!E.done&&(o=x.return)&&o.call(x)}finally{if(s)throw s.error}}}}catch(B){r={error:B}}finally{try{b&&!b.done&&(i=y.return)&&i.call(y)}finally{if(r)throw r.error}}}catch{}var k=(d=e.autocapture)===null||d===void 0?void 0:d.frustrationInteractions;k&&(k.rageClick&&(k.rageClicks=k.rageClick,delete k.rageClick),k.deadClick&&(k.deadClicks=k.deadClick,delete k.deadClick))}}function fd(e,t,n){var r,i,s=[];try{for(var o=Ee(t??[]),a=o.next();!a.done;a=o.next()){var l=a.value;try{s.push(new RegExp(l))}catch(u){n.loggerProvider.warn("Invalid regex pattern: ".concat(l),u)}}}catch(u){r={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e.concat(s)}function G_(e,t){var n,r,i,s,o,a,l;if(e){Kp(e);try{t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var u=e;if(u&&"autocapture"in u){if(typeof u.autocapture=="boolean"&&(t.autocapture=u.autocapture),typeof u.autocapture=="object"&&u.autocapture!==null){var c=ee({},u.autocapture);if(t.autocapture===void 0&&(t.autocapture=u.autocapture),typeof u.autocapture.elementInteractions=="object"&&u.autocapture.elementInteractions!==null&&(!((i=u.autocapture.elementInteractions.pageUrlAllowlistRegex)===null||i===void 0)&&i.length)){c.elementInteractions=ee
vendor: 16,743 bytes, lines 44-46
44({},u.autocapture.elementInteractions);var d=c.elementInteractions,f=(s=d.pageUrlAllowlist)!==null&&s!==void 0?s:[],h=u.autocapture.elementInteractions.pageUrlAllowlistRegex;d.pageUrlAllowlist=fd(f,h,t),delete d.pageUrlAllowlistRegex}if(typeof u.autocapture.networkTracking=="object"&&u.autocapture.networkTracking!==null&&(!((o=u.autocapture.networkTracking.captureRules)===null||o===void 0)&&o.length)){c.networkTracking=ee({},u.autocapture.networkTracking);var p=c.networkTracking,v=(a=p.captureRules)!==null&&a!==void 0?a:[];try{for(var g=Ee(v),y=g.next();!y.done;y=g.next()){var b=y.value;b.urls=fd((l=b.urls)!==null&&l!==void 0?l:[],b.urlsRegex,t),delete b.urlsRegex}}catch(w){n={error:w}}finally{try{y&&!y.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}}typeof t.autocapture=="boolean"&&(t.autocapture=ee({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},c)),typeof t.autocapture=="object"&&(t.autocapture=ee(ee({},t.autocapture),c))}t.defaultTracking=t.autocapture}t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(w){t.loggerProvider.error("Failed to apply remote configuration because of error: ",w)}}}var K_="@amplitude/plugin-autocapture-browser",W_="@amplitude/plugin-frustration-browser",qa="[Amplitude] Element Clicked",J_="[Amplitude] Dead Click",hd="[Amplitude] Rage Click",Y_="[Amplitude] Element Changed",X_="[Amplitude] Element ID",Q_="[Amplitude] Element Class",pd="[Amplitude] Element Tag",vd="[Amplitude] Element Text",Z_="[Amplitude] Element Hierarchy",eE="[Amplitude] Element Href",tE="[Amplitude] Element Position Left",nE="[Amplitude] Element Position Top",rE="[Amplitude] Element Aria Label",iE="[Amplitude] Element Attributes",sE="[Amplitude] Element Parent Label",gd="[Amplitude] Page URL",oE="[Amplitude] Page Title",aE="[Amplitude] Viewport Height",lE="[Amplitude] Viewport Width",Ts="https://app.amplitude.com",uE="https://app.eu.amplitude.com",cE="https://apps.stag2.amplitude.com",dE={US:Ts,EU:uE,STAGING:cE},fE="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",hE="amp-visual-tagging-selector-highlight",Wp="data-amp-mask-attributes",pE=25;function He(e){return typeof e=="function"}function Ul(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ta=Ul(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
45`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
46  `):"",this.name="UnsubscriptionError",this.errors=n}});function zs(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Vi=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Ee(o),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(v){t={error:v}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(He(c))try{c()}catch(v){s=v instanceof ta?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Ee(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{md(p)}catch(v){s=s??[],v instanceof ta?s=xe(xe([],oe(s)),oe(v.errors)):s.push(v)}}}catch(v){r={error:v}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(s)throw new ta(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)md(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&zs(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&zs(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Jp=Vi.EMPTY;function Yp(e){return e instanceof Vi||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function md(e){He(e)?e():e.unsubscribe()}var vE={Promise:void 0},gE={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,xe([e,t],oe(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Xp(e){gE.setTimeout(function(){throw e})}function Ha(){}function Cs(e){e()}var Fl=function(e){Tt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Yp(n)&&n.add(r)):r.destination=bE,r}return t.create=function(n,r,i){return new Oi(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Vi),mE=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){os(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){os(r)}else os(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){os(n)}},e}(),Oi=function(e){Tt(t,e);function t(n,r,i){var s=e.call(this)||this,o;return He(n)||!n?o={next:n??void 0,error:r??void 0,complete:i??void 0}:o=n,s.destination=new mE(o),s}return t}(Fl);function os(e){Xp(e)}function yE(e){throw e}var bE={closed:!0,next:Ha,error:yE,complete:Ha},$l=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Qp(e){return e}function wE(e){return e.length===0?Qp:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var rt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,s=_E(t)?t:new Oi(t,n,r);return Cs(function(){var o=i,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=yd(n),new n(function(i,s){var o=new Oi({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[$l]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return wE(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=yd(t),new t(function(r,i){var s;n.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},e.create=function(t){return new e(t)},e}();function yd(e){var t;return(t=e??vE.Promise)!==null&&t!==void 0?t:Promise}function xE(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function _E(e){return e&&e instanceof Fl||xE(e)&&Yp(e)}function EE(e){return He(e==null?void 0:e.lift)}function Mt(e){return function(t){if(EE(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function bt(e,t,n,r,i){return new SE(e,t,n,r,i)}var SE=function(e){Tt(t,e);function t(n,r,i,s,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=r?function(u){try{r(u)}catch(c){n.error(c)}}:e.prototype._next,l._error=s?function(u){try{s(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Fl),TE=Ul(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Zp=function(e){Tt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new bd(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new TE},t.prototype.next=function(n){var r=this;Cs(function(){var i,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Ee(r.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Cs(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Cs(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,s=i.hasError,o=i.isStopped,a=i.observers;return s||o?Jp:(this.currentObservers=null,a.push(n),new Vi(function(){r.currentObservers=null,zs(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,s=r.thrownError,o=r.isStopped;i?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new rt;return n.source=this,n},t.create=function(n,r){return new bd(n,r)},t}(rt),bd=function(e){Tt(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Jp},t}(Zp),CE={now:function(){return Date.now()}},AE=function(e){Tt(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t}(Vi),wd={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,xe([e,t],oe(n)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},IE=function(e){Tt(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var s=this.id,o=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(o,s,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),wd.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&wd.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,s;try{this.work(n)}catch(o){i=!0,s=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),s},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,s=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,zs(s,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(AE),xd=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=CE.now,e}(),kE=function(e){Tt(t,e);function t(n,r){r===void 0&&(r=xd.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t}(xd),qi=new kE(IE),OE=qi,jl=new rt(function(e){return e.complete()});function ev(e){return e&&He(e.schedule)}function tv(e){return e[e.length-1]}function RE(e){return ev(tv(e))?e.pop():void 0}function PE(e,t){return typeof tv(e)=="number"?e.pop():t}var Bl=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function nv(e){return He(e==null?void 0:e.then)}function rv(e){return He(e[$l])}function iv(e){return Symbol.asyncIterator&&He(e==null?void 0:e[Symbol.asyncIterator])}function sv(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function NE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ov=NE();function av(e){return He(e==null?void 0:e[ov])}function lv(e){return Tw(this,arguments,function(){var n,r,i,s;return j(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Cr(n.read())];case 3:return r=o.sent(),i=r.value,s=r.done,s?[4,Cr(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Cr(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function uv(e){return He(e==null?void 0:e.getReader)}function wt(e){if(e instanceof rt)return e;if(e!=null){if(rv(e))return LE(e);if(Bl(e))return DE(e);if(nv(e))return ME(e);if(iv(e))return cv(e);if(av(e))return UE(e);if(uv(e))return FE(e)}throw sv(e)}function LE(e){return new rt(function(t){var n=e[$l]();if(He(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function DE(e){return new rt(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ME(e){return new rt(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Xp)})}function UE(e){return new rt(function(t){var n,r;try{for(var i=Ee(e),s=i.next();!s.done;s=i.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function cv(e){return new rt(function(t){$E(e,t).catch(function(n){return t.error(n)})})}function FE(e){return cv(lv(e))}function $E(e,t){var n,r,i,s;return V(this,void 0,void 0,function(){var o,a;return j(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=Cw(e),l.label=1;case 1:return[4,n.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];
46case 10:return[7];case 11:return t.complete(),[2]}})})}function Bn(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function dv(e,t){return t===void 0&&(t=0),Mt(function(n,r){n.subscribe(bt(r,function(i){return Bn(r,e,function(){return r.next(i)},t)},function(){return Bn(r,e,function(){return r.complete()},t)},function(i){return Bn(r,e,function(){return r.error(i)},t)}))})}function fv(e,t){return t===void 0&&(t=0),Mt(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function jE(e,t){return wt(e).pipe(fv(t),dv(t))}function BE(e,t){return wt(e).pipe(fv(t),dv(t))}function VE(e,t){return new rt(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function qE(e,t){return new rt(function(n){var r;return Bn(n,t,function(){r=e[ov](),Bn(n,t,function(){var i,s,o;try{i=r.next(),s=i.value,o=i.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return He(r==null?void 0:r.return)&&r.return()}})}function hv(e,t){if(!e)throw new Error("Iterable cannot be null");return new rt(function(n){Bn(n,t,function(){var r=e[Symbol.asyncIterator]();Bn(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function HE(e,t){return hv(lv(e),t)}function zE(e,t){if(e!=null){if(rv(e))return jE(e,t);if(Bl(e))return VE(e,t);if(nv(e))return BE(e,t);if(iv(e))return hv(e,t);if(av(e))return qE(e,t);if(uv(e))return HE(e,t)}throw sv(e)}function GE(e,t){return t?zE(e,t):wt(e)}function pv(e){return e instanceof Date&&!isNaN(e)}var KE=Ul(function(e){return function(n){n===void 0&&(n=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}});function WE(e,t){var n=pv(e)?{first:e}:typeof e=="number"?{each:e}:e,r=n.first,i=n.each,s=n.with,o=s===void 0?JE:s,a=n.scheduler,l=a===void 0?qi:a,u=n.meta,c=u===void 0?null:u;if(r==null&&i==null)throw new TypeError("No timeout provided.");return Mt(function(d,f){var h,p,v=null,g=0,y=function(b){p=Bn(f,l,function(){try{h.unsubscribe(),wt(o({meta:c,lastValue:v,seen:g})).subscribe(f)}catch(w){f.error(w)}},b)};h=d.subscribe(bt(f,function(b){p==null||p.unsubscribe(),g++,f.next(v=b),i>0&&y(i)},void 0,void 0,function(){p!=null&&p.closed||p==null||p.unsubscribe(),v=null})),!g&&y(r!=null?typeof r=="number"?r:+r-l.now():i)})}function JE(e){throw new KE(e)}function ut(e,t){return Mt(function(n,r){var i=0;n.subscribe(bt(r,function(s){r.next(e.call(t,s,i++))}))})}var YE=Array.isArray;function XE(e,t){return YE(t)?e.apply(void 0,xe([],oe(t))):e(t)}function QE(e){return ut(function(t){return XE(e,t)})}function ZE(e,t,n,r,i,s,o,a){var l=[],u=0,c=0,d=!1,f=function(){d&&!l.length&&!u&&t.complete()},h=function(v){return u<r?p(v):l.push(v)},p=function(v){u++;var g=!1;wt(n(v,c++)).subscribe(bt(t,function(y){t.next(y)},function(){g=!0},void 0,function(){if(g)try{u--;for(var y=function(){var b=l.shift();o||p(b)};l.length&&u<r;)y();f()}catch(b){t.error(b)}}))};return e.subscribe(bt(t,h,function(){d=!0,f()})),function(){}}function Hi(e,t,n){return n===void 0&&(n=1/0),He(t)?Hi(function(r,i){return ut(function(s,o){return t(r,s,i,o)})(wt(e(r,i)))},n):(typeof t=="number"&&(n=t),Mt(function(r,i){return ZE(r,i,e,n)}))}function eS(e){return e===void 0&&(e=1/0),Hi(Qp,e)}var tS=["addListener","removeListener"],nS=["addEventListener","removeEventListener"],rS=["on","off"];function Fr(e,t,n,r){if(He(n)&&(r=n,n=void 0),r)return Fr(e,t,n).pipe(QE(r));var i=oe(oS(e)?nS.map(function(a){return function(l){return e[a](t,l,n)}}):iS(e)?tS.map(_d(e,t)):sS(e)?rS.map(_d(e,t)):[],2),s=i[0],o=i[1];if(!s&&Bl(e))return Hi(function(a){return Fr(a,t,n)})(wt(e));if(!s)throw new TypeError("Invalid event target");return new rt(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return s(l),function(){return o(l)}})}function _d(e,t){return function(n){return function(r){return e[n](t,r)}}}function iS(e){return He(e.addListener)&&He(e.removeListener)}function sS(e){return He(e.on)&&He(e.off)}function oS(e){return He(e.addEventListener)&&He(e.removeEventListener)}function vv(e,t,n){e===void 0&&(e=0),n===void 0&&(n=OE);var r=-1;return t!=null&&(ev(t)?n=t:r=t),new rt(function(i){var s=pv(e)?+e-n.now():e;s<0&&(s=0);var o=0;return n.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function Vl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=RE(e),r=PE(e,1/0),i=e;return i.length?i.length===1?wt(i[0]):eS(r)(GE(i,n)):jl}var aS=Array.isArray;function lS(e){return e.length===1&&aS(e[0])?e[0]:e}function mt(e,t){return Mt(function(n,r){var i=0;n.subscribe(bt(r,function(s){return e.call(t,s,i++)&&r.next(s)}))})}function uS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=lS(e),e.length===1?wt(e[0]):new rt(cS(e))}function cS(e){return function(t){for(var n=[],r=function(s){n.push(wt(e[s]).subscribe(bt(t,function(o){if
46(n){for(var a=0;a<n.length;a++)a!==s&&n[a].unsubscribe();n=null}t.next(o)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}function dS(e){return Mt(function(t,n){var r=[];return t.subscribe(bt(n,function(i){return r.push(i)},function(){n.next(r),n.complete()})),wt(e).subscribe(bt(n,function(){var i=r;r=[],n.next(i)},Ha)),function(){r=null}})}function fS(e,t){return t===void 0&&(t=qi),Mt(function(n,r){var i=null,s=null,o=null,a=function(){if(i){i.unsubscribe(),i=null;var u=s;s=null,r.next(u)}};function l(){var u=o+e,c=t.now();if(c<u){i=this.schedule(void 0,u-c),r.add(i);return}a()}n.subscribe(bt(r,function(u){s=u,o=t.now(),i||(i=t.schedule(l,e),r.add(i))},function(){a(),r.complete()},void 0,function(){s=i=null}))})}function ql(e){return e<=0?function(){return jl}:Mt(function(t,n){var r=0;t.subscribe(bt(n,function(i){++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function hS(e){return ut(function(){return e})}function pS(e,t){return Hi(function(n,r){return wt(e(n,r)).pipe(ql(1),hS(n))})}function vS(e,t){t===void 0&&(t=qi);var n=vv(e,t);return pS(function(){return n})}function gS(){return Mt(function(e,t){var n,r=!1;e.subscribe(bt(t,function(i){var s=n;n=i,r&&t.next([s,i]),r=!0}))})}function rr(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new Zp}:t,r=e.resetOnError,i=r===void 0?!0:r,s=e.resetOnComplete,o=s===void 0?!0:s,a=e.resetOnRefCountZero,l=a===void 0?!0:a;return function(u){var c,d,f,h=0,p=!1,v=!1,g=function(){d==null||d.unsubscribe(),d=void 0},y=function(){g(),c=f=void 0,p=v=!1},b=function(){var w=c;y(),w==null||w.unsubscribe()};return Mt(function(w,x){h++,!v&&!p&&g();var E=f=f??n();x.add(function(){h--,h===0&&!v&&!p&&(d=na(b,l))}),E.subscribe(x),!c&&h>0&&(c=new Oi({next:function(C){return E.next(C)},error:function(C){v=!0,g(),d=na(y,i,C),E.error(C)},complete:function(){p=!0,g(),d=na(y,o),E.complete()}}),wt(w).subscribe(c))})(u)}}function na(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var i=new Oi({next:function(){i.unsubscribe(),e()}});return wt(t.apply(void 0,xe([],oe(n)))).subscribe(i)}}function mS(e,t){return Mt(function(n,r){var i=null,s=0,o=!1,a=function(){return o&&!i&&r.complete()};n.subscribe(bt(r,function(l){i==null||i.unsubscribe();var u=0,c=s++;wt(e(l,c)).subscribe(i=bt(r,function(d){return r.next(t?t(l,d,c,u++):d)},function(){i=null,a()}))},function(){o=!0,a()}))})}function yS(e,t){return Mt(function(n,r){var i=t??{},s=i.leading,o=s===void 0?!0:s,a=i.trailing,l=a===void 0?!1:a,u=!1,c=null,d=null,f=!1,h=function(){d==null||d.unsubscribe(),d=null,l&&(g(),f&&r.complete())},p=function(){d=null,f&&r.complete()},v=function(y){return d=wt(e(y)).subscribe(bt(r,h,p))},g=function(){if(u){u=!1;var y=c;c=null,r.next(y),!f&&v(y)}};n.subscribe(bt(r,function(y){u=!0,c=y,!(d&&!d.closed)&&(o?g():v(y))},function(){f=!0,!(l&&u&&d&&!d.closed)&&r.complete()}))})}function bS(e,t,n){t===void 0&&(t=qi);var r=vv(e,t);return yS(function(){return r},n)}var wS=["input","select","textarea"],gv=function(e,t){var n,r=(n=window==null?void 0:window.getComputedStyle)===null||n===void 0?void 0:n.call(window,e);return(r==null?void 0:r.getPropertyValue("cursor"))==="pointer"&&t==="click"},hi=function(e,t,n){return n===void 0&&(n=!1),function(r,i){var s,o,a=e.pageUrlAllowlist,l=e.pageUrlExcludelist,u=e.shouldTrackEventResolver,c=(o=(s=i==null?void 0:i.tagName)===null||s===void 0?void 0:s.toLowerCase)===null||o===void 0?void 0:o.call(s);if(!c)return!1;if(u)return u(r,i);if(!ja(window.location.href,a)||l&&l.length>0&&ja(window.location.href,l))return!1;var d=String(i==null?void 0:i.getAttribute("type"))||"";if(typeof d=="string")switch(d.toLowerCase()){case"hidden":return!1;case"password":return!1}var f=gv(i,r);if(n&&f)return!0;if(t){var h=t.some(function(p){var v;return!!(!((v=i==null?void 0:i.matches)===null||v===void 0)&&v.call(i,p))});if(!h)return!1}switch(c){case"input":case"select":case"textarea":return r==="change"||r==="click";default:return f?!0:r==="click"}}},xS=function(e){var t,n,r,i=(n=(t=e==null?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||n===void 0?void 0:n.call(t),s=e instanceof HTMLElement?((r=e.getAttribute("contenteditable"))===null||r===void 0?void 0:r.toLowerCase())==="true":!1;return!wS.includes(i)&&!s},_S=function(e){return e?e.split(",").map(function(t){return t.trim()}).filter(function(t){return t.length>0&&t!=="id"&&t!=="class"}):[]},ES=function(e,t){return Object.entries(e).reduce(function(n,r){var i=oe(r,2),s=i[0],o=i[1];if(s.startsWith(t)){var a=s.replace(t,"");a&&(n[a]=o||"")}return n},{})},SS=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},Ed=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return SS(r)||(t[n]=r),t},{})}
46,Hl=function(e,t){return e?t.some(function(n){var r;return(r=e==null?void 0:e.matches)===null||r===void 0?void 0:r.call(e,n)})?e:Hl(e==null?void 0:e.parentElement,t):null},TS=function(e){return new Promise(function(t,n){var r;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",function(){t({status:!0})},{once:!0}),i.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),(r=document.head)===null||r===void 0||r.appendChild(i)}catch(s){n(s)}})};function CS(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var zi=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function AS(e){return e.type==="click"||e.type==="change"}var IS="1.15.2",kS=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",Wp,fi]),OS=["type"],RS=["svg","path","g"],PS=["password","hidden"],NS=128;function LS(e,t){var n,r,i,s,o,a;if(e===null)return null;var l=String(e.tagName).toLowerCase(),u={tag:l},c=Array.from((s=(i=e.parentElement)===null||i===void 0?void 0:i.children)!==null&&s!==void 0?s:[]);c.length&&(u.index=c.indexOf(e),u.indexOfType=c.filter(function(E){return E.tagName===e.tagName}).indexOf(e));var d=(a=(o=e.previousElementSibling)===null||o===void 0?void 0:o.tagName)===null||a===void 0?void 0:a.toLowerCase();d&&(u.prevSib=String(d));var f=e.getAttribute("id");f&&(u.id=String(f));var h=Array.from(e.classList);h.length&&(u.classes=h);var p={},v=Array.from(e.attributes),g=v.filter(function(E){return!kS.has(E.name)}),y=!xS(e);if(!PS.includes(String(e.getAttribute("type")))&&!RS.includes(l))try{for(var b=Ee(g),w=b.next();!w.done;w=b.next()){var x=w.value;if(!(y&&!OS.includes(x.name))){if(t.has(x.name)){p[x.name]=$n;continue}p[x.name]=String(x.value).substring(0,NS)}}}catch(E){n={error:E}}finally{try{w&&!w.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}return Object.keys(p).length&&(u.attrs=p),u}function DS(e){var t=[];if(!e)return t;
46t.push(e);for(var n=e.parentElement;n&&n.tagName!=="HTML";)t.push(n),n=n.parentElement;return t}var MS=function(e,t){try{if(e.sourceType==="DOM_ELEMENT"){var n=document.documentElement;return e.scope&&t&&(n=t.closest(e.scope)),n&&e.selector?n.querySelector(e.selector):n}}catch{return}},US=function(e,t,n){e.forEach(function(r){if(typeof r!="string"&&r.actionType==="ATTACH_EVENT_PROPERTY"){var i=n.extractDataFromDataSource(r.dataSource,t.closestTrackedAncestor);t.targetElementProperties[r.destinationKey]=i}})},zl=function(){function e(t,n){var r,i,s=this,o;this.replaceSensitiveString=function(f){return Up(f,s.additionalMaskTextPatterns)},this.getHierarchy=function(f){var h,p,v,g,y=performance.now(),b=[];if(!f)return[];for(var w=DS(f),x=new Map,E=w.length-1;E>=0;E--){var C=w[E];if(C){var P=_S(C.getAttribute(Wp)),I=E===w.length-1?[]:(v=x.get(w[E+1]))!==null&&v!==void 0?v:new Set,T=new Set(xe(xe([],oe(I),!1),oe(P),!1));x.set(C,T)}}b=w.map(function(q){var K;return LS(q,(K=x.get(q))!==null&&K!==void 0?K:new Set)});var k=function(q){q!=null&&q.attrs&&Object.entries(q.attrs).forEach(function(K){var ae=oe(K,2),se=ae[0],ze=ae[1];q.attrs&&(q.attrs[se]=s.replaceSensitiveString(ze))})};try{for(var B=Ee(b),N=B.next();!N.done;N=B.next()){var ie=N.value;k(ie)}}catch(q){h={error:q}}finally{try{N&&!N.done&&(p=B.return)&&p.call(B)}finally{if(h)throw h.error}}var X=performance.now();return(g=s.diagnosticsClient)===null||g===void 0||g.recordHistogram("autocapturePlugin.getHierarchy",X-y),b},this.getNearestLabel=function(f){var h=f.parentElement;if(!h)return"";var p;try{p=h.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{p=null}return p?s.getText(p):s.getNearestLabel(h)},this.getEventProperties=function(f,h,p){var v,g,y,b,w=(y=(g=h==null?void 0:h.tagName)===null||g===void 0?void 0:g.toLowerCase)===null||y===void 0?void 0:y.call(g),x=typeof h.getBoundingClientRect=="function"?h.getBoundingClientRect():{left:null,top:null},E=s.getHierarchy(h),C=(b=E[0])===null||b===void 0?void 0:b.attrs,P=s.getNearestLabel(h),I=ES(C??{},p),T=(v={},v[Z_]=E,v[pd]=w,v[vd]=s.getText(h),v[tE]=x.left==null?null:Math.round(x.left),v[nE]=x.top==null?null:Math.round(x.top),v[iE]=I,v[sE]=P,v[gd]=_x(window.location.href.split("?")[0]),v[oE]=Fp(s.replaceSensitiveString),v[aE]=window.innerHeight,v[lE]=window.innerWidth,v);return T[X_]=h.getAttribute("id")||"",T[Q_]=h.getAttribute("class"),T[rE]=C==null?void 0:C["aria-label"],w==="a"&&f==="click"&&h instanceof HTMLAnchorElement&&(T[eE]=s.replaceSensitiveString(h.href)),Ed(T)},this.addAdditionalEventProperties=function(f,h,p,v,g){g===void 0&&(g=!1);var y={event:f,timestamp:Date.now(),type:h};if(AS(y)&&y.event.target!==null){if(g){var b=gv(y.event.target,y.type);if(b)return y.closestTrackedAncestor=y.event.target,y.targetElementProperties=s.getEventProperties(y.type,y.closestTrackedAncestor,v),y}var w=Hl(y.event.target,p);return w&&(y.closestTrackedAncestor=w,y.targetElementProperties=s.getEventProperties(y.type,w,v)),y}return y},this.extractDataFromDataSource=function(f,h){if(f.sourceType==="DOM_ELEMENT"){var p=MS(f,h);return p?f.elementExtractType==="TEXT"?s.getText(p):f.elementExtractType==="ATTRIBUTE"&&f.attribute?p.getAttribute(f.attribute):void 0:void 0}},this.getText=function(f){var h=f.closest("[".concat(fi,"]"))!==null;if(h)return $n;var p="";if(!f.querySelector("[".concat(fi,"], [contenteditable]")))p=f.innerText||"";else{var v=f.cloneNode(!0);v.querySelectorAll("[".concat(fi,"], [contenteditable]")).forEach(function(g){g.innerText=$n}),p=v.innerText||""}return s.replaceSensitiveString(p.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(f){var h,p,v;if(!f)return{};var g=(v=(p=f==null?void 0:f.tagName)===null||p===void 0?void 0:p.toLowerCase)===null||v===void 0?void 0:v.call(p),y=(h={},h[pd]=g,h[vd]=s.getText(f),h[gd]=window.location.href.split("?")[0],h);return Ed(y)},this.diagnosticsClient=n==null?void 0:n.diagnosticsClient;var a=(o=t.maskTextRegex)!==null&&o!==void 0?o:[],l=[];try{for(var u=Ee(a),c=u.next();!c.done;c=u.next()){var d=c.value;if(l.length>=pE)break;if(d instanceof RegExp)l.push(d);else if("pattern"in d&&typeof d.pattern=="string")try{l.push(new RegExp(d.pattern,"i"))}catch{}}}catch(f){r={error:f}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}this.additionalMaskTextPatterns=l}return e}(),FS=function(){function e(t){var n=t===void 0?{}:t,r=n.origin,i=r===void 0?Ts:r,s=this;this.endpoint=Ts,this.requestCallbacks={},this.onSelect=function(o){s.notify({action:"element-selected",data:o})},this.onTrack=function(o,a){o==="selector-mode-changed"?s.notify({action:"track-selector-mode-changed",data:a}):o==="selector-moved"&&s.notify({action:"track-selector-moved",data:a})},this.endpoint=i}return e.prototype.notify=function(t){var n,r,i,s;(r=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,"Message sent: ",JSON.stringify(t)),(s=(i=window.opener)===null||i===void 0?void 0:i.postMessage)===null||s===void 0||s.call(i,t,this.endpoint)},e.prototype.sendRequest=function(t,n,r){var i=this;r===void 0&&(r={timeout:15e3});var s=CS(),o={id:s,action:t,args:n},a=new Promise(function(l,u){i.requestCallbacks[s]={resolve:l,reject:u},i.notify(o),(r==null?void 0:r.timeout)>0&&setTimeout(function(){u(new Error("".concat(t," timed out (id: ").concat(s,")"))),delete i.requestCallbacks[s]},r.timeout)});return a},e.prototype.handleResponse=function(t){var n;if(!this.requestCallbacks[t.id]){(n=this.logger)===null||n===void 0||n.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.setup=function(t){var n=this,r=t===void 0?{dataExtractor:new zl({})}:t,i=r.logger,s=r.endpoint,o=r.isElementSelectable,a=r.cssSelectorAllowlist,l=r.actionClickAllowlist,u=r.dataExtractor;
46this.logger=i,s&&this.endpoint===Ts&&(this.endpoint=s);var c=null;window.addEventListener("message",function(d){var f,h,p,v,g;if((h=(f=n.logger)===null||f===void 0?void 0:f.debug)===null||h===void 0||h.call(f,"Message received: ",JSON.stringify(d)),n.endpoint===d.origin){var y=d==null?void 0:d.data,b=y==null?void 0:y.action;if(b)if("id"in y)(v=(p=n.logger)===null||p===void 0?void 0:p.debug)===null||v===void 0||v.call(p,"Received Response to previous request: ",JSON.stringify(d)),n.handleResponse(y);else if(b==="ping")n.notify({action:"pong"});else if(b==="initialize-visual-tagging-selector"){var w=y==null?void 0:y.data;TS(fE).then(function(){var x;c=(x=window==null?void 0:window.amplitudeVisualTaggingSelector)===null||x===void 0?void 0:x.call(window,{getEventTagProps:u.getEventTagProps,isElementSelectable:function(E){return o?o((w==null?void 0:w.actionType)||"click",E):!0},onTrack:n.onTrack,onSelect:n.onSelect,visualHighlightClass:hE,messenger:n,cssSelectorAllowlist:a,actionClickAllowlist:l,extractDataFromDataSource:u.extractDataFromDataSource,dataExtractor:u,diagnostics:{autocapture:{version:IS}}}),n.notify({action:"selector-loaded"})}).catch(function(){var x;(x=n.logger)===null||x===void 0||x.warn("Failed to initialize visual tagging selector")})}else b==="close-visual-tagging-selector"&&((g=c==null?void 0:c.close)===null||g===void 0||g.call(c))}}),this.notify({action:"page-loaded"})},e}(),$S=5;function jS(e){var t=e.amplitude,n=e.allObservables,r=e.options,i=e.shouldTrackEvent,s=e.evaluateTriggers,o=n.clickObservable,a=o.pipe(gS(),mt(function(d){var f=oe(d,2),h=f[0],p=f[1],v=h.event.target!==p.event.target,g=Math.abs(p.event.screenX-h.event.screenX)<=20&&Math.abs(p.event.screenY-h.event.screenY)<=20;return v&&!g})),l=o.pipe(fS(r.debounceTime),ut(function(){return"timeout"})),u=Vl(a,l),c=o.pipe(vS(0),mt(zi),mt(function(d){return i("click",d.closestTrackedAncestor)}),ut(function(d){return s(d)}),dS(u));return c.subscribe(function(d){var f,h,p=(d.length>=$S,qa);try{for(var v=Ee(d),g=v.next();!g.done;g=v.next()){var y=g.value;t==null||t.track(p,y.targetElementProperties)}}catch(b){f={error:b}}finally{try{g&&!g.done&&(h=v.return)&&h.call(v)}finally{if(f)throw f.error}}})}function BS(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackEvent,s=e.evaluateTriggers,o=n.changeObservable,a=o.pipe(mt(zi),mt(function(l){return i("change",l.closestTrackedAncestor)}),ut(function(l){return s(l)}));return a.subscribe(function(l){t==null||t.track(Y_,r("change",l.closestTrackedAncestor))})}function VS(e){var t=e.amplitude,n=e.allObservables,r=e.options,i=e.getEventProperties,s=e.shouldTrackEvent,o=e.shouldTrackActionClick,a=n.clickObservable,l=n.mutationObservable,u=n.navigateObservable,c=a.pipe(mt(function(p){return!s("click",p.closestTrackedAncestor)}),ut(function(p){var v=Hl(p.event.target,r.actionClickAllowlist);return p.closestTrackedAncestor=v,p.closestTrackedAncestor!==null&&(p.targetElementProperties=i(p.type,p.closestTrackedAncestor)),p}),mt(zi),mt(function(p){return o("click",p.closestTrackedAncestor)})),d=[l];u&&d.push(u);var f=Vl.apply(void 0,xe([],oe(d),!1)),h=c.pipe(mS(function(p){return f.pipe(ql(1),WE({first:500,with:function(){return jl}}),ut(function(){return p}))}));return h.subscribe(function(p){t==null||t.track(qa,i("click",p.closestTrackedAncestor))})}var mv=function(){return new rt(function(e){var t=new MutationObserver(function(n){e.next(n)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},yv=function(e){return e===void 0&&(e="click"),Fr(document,e,{capture:!0})},qS=function(e,t){try{if(t.subprop_key==="[Amplitude] Element Text")return t.subprop_op==="is"&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if(t.subprop_key==="[Amplitude] Element Hierarchy")return t.subprop_op==="autotrack css match"&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(n){return console.error("Error matching event to filter",n),!1}return!1},za={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},Sd=function(e){var t,n,r,i,s=Object.values(za).reduce(function(h,p){return h[p]=new Set,h},{});if(!e)return s;try{for(var o=Ee(e),a=o.next();!a.done;a=o.next()){var l=a.value;try{try{for(var u=(r=void 0,Ee(l.definition)),c=u.next();!c.done;c=u.next()){var d=c.value,f=za[d.event_type];f&&s[f].add(l.id)}}catch(h){r={error:h}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}catch(h){console.warn("Skipping Labeled Event due to malformed definition",l==null?void 0:l.id,h)}}}catch(h){t={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s},Td=function(e){var t,n,r,i,s=new Map;try{for(var o=Ee(e),a=o.next();!a.done;a=o.next()){var l=a.value;try{for(var u=(r=void 0,Ee(l.conditions)),c=u.next();!c.done;c=u.next()){var d=c.value;if(d.type==="LABELED_EVENT"){var f=d.match.eventId,h=s.get(f);h||(h=[],s.set(f,h)),h.push(l)}}}catch(p){r={error:p}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}}catch(p){t={error:p}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s},HS=function(e,t){return t.filter(function(n){return n.definition.some(function(r){return za[r.event_type]===e.type&&r.filters.every(function(i){return qS(e,i)})})})},zS=function(e,t){var n,r,i,s,o=new Set;try{for(var a=Ee(e),l=a.next();!l.done;l=a.next()){var u=l.value,c=t.get(u.id);if(c)try{for(var d=(i=void 0,Ee(c)),f=d.next();!f.done;f=d.next()){var h=f.value;o.add(h)}}catch(p){i={error:p}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}}catch(p){n={error:p}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return Array.from(o)},GS=function(){function e(t,n,r,i){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=n,this.dataExtractor=r,this.options=i}return e.prototype.evaluate=function(t){var n,r,i=this.options.pageActions;if(!i)return t;var s=HS(t,Array.from(this.groupedLabeledEvents[t.type]).map(function(c){return i.labeledEvents[c]})),o=zS(s,this.labeledEventToTriggerMap);try{for(var a=Ee(o),l=a.next();!l.done;l=a.next()){var u=l.value;US(u.actions,t,this.dataExtractor)}}catch(c){n={error:c}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t},e.prototype.update=function(t,n,r){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=n,this.options=r},e}(),KS=function(e,t,n,r){return new GS(e,t,n,r)},sn;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"})(sn||(sn={}));var WS=function(e,t){var n,r,i,s,o,a,l,u;e===void 0&&(e={});var c=e.dataAttributePrefix,d=c===void 0?Rp:c,f=e.visualTaggingOptions,h=f===void 0?{enabled:!0,messenger:new FS}:f;e.cssSelectorAllowlist=(n=e.cssSelectorAllowlist)!==null&&n!==void 0?n:Bx,e.actionClickAllowlist=(r=e.actionClickAllowlist)!==null&&r!==void 0?r:Vx,e.debounceTime=(i=e.debounceTime)!==null&&i!==void 0?i:0,e.pageUrlExcludelist=(s=e.pageUrlExcludelist)===null||s===void 0?void 0:s.reduce(function(k,B){if(typeof B=="str
46ing"&&k.push(B),B instanceof RegExp&&k.push(B),typeof B=="object"&&B!==null&&"pattern"in B)try{k.push(new RegExp(B.pattern))}catch(N){return console.warn("Invalid regex pattern: ".concat(B.pattern),N),k}return k},[]);var p=K_,v="enrichment",g=[],y=new zl(e,t),b=function(){var k,B=yv().pipe(ut(function(q){return y.addAdditionalEventProperties(q,"click",e.cssSelectorAllowlist,d)}),rr()),N=Fr(document,"change",{capture:!0}).pipe(ut(function(q){return y.addAdditionalEventProperties(q,"change",e.cssSelectorAllowlist,d)}),rr()),ie;window.navigation&&(ie=Fr(window.navigation,"navigate").pipe(ut(function(q){return y.addAdditionalEventProperties(q,"navigate",e.cssSelectorAllowlist,d)}),rr()));var X=mv().pipe(ut(function(q){return y.addAdditionalEventProperties(q,"mutation",e.cssSelectorAllowlist,d)}),rr());return k={},k[sn.ClickObservable]=B,k[sn.ChangeObservable]=N,k[sn.NavigateObservable]=ie,k[sn.MutationObservable]=X,k},w=Sd(Object.values((a=(o=e.pageActions)===null||o===void 0?void 0:o.labeledEvents)!==null&&a!==void 0?a:{})),x=Td((u=(l=e.pageActions)===null||l===void 0?void 0:l.triggers)!==null&&u!==void 0?u:[]),E=KS(w,x,y,e),C=function(k){var B,N;k&&(e.pageActions=ee(ee({},e.pageActions),k),w=Sd(Object.values((B=e.pageActions.labeledEvents)!==null&&B!==void 0?B:{})),x=Td((N=e.pageActions.triggers)!==null&&N!==void 0?N:[]),E.update(w,x,e))},P=function(k,B){return V(void 0,void 0,void 0,function(){var N,ie,X,q,K,ae,se,ze,Ze,Oe;return j(this,function(ke){return typeof document>"u"?[2]:(k.fetchRemoteConfig&&(k.remoteConfigClient?k.remoteConfigClient.subscribe("analyticsSDK.pageActions","all",function(Me){C(Me)}):k.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),N=hi(e,e.cssSelectorAllowlist),ie=hi(e,e.actionClickAllowlist),X=b(),q=jS({allObservables:X,options:e,amplitude:B,shouldTrackEvent:N,evaluateTriggers:E.evaluate.bind(E)}),g.push(q),K=BS({allObservables:X,getEventProperties:function(){for(var Me=[],Le=0;Le<arguments.length;Le++)Me[Le]=arguments[Le];return y.getEventProperties.apply(y,xe(xe([],oe(Me),!1),[d],!1))},amplitude:B,shouldTrackEvent:N,evaluateTriggers:E.evaluate.bind(E)}),g.push(K),ae=VS({allObservables:X,options:e,getEventProperties:function(){for(var Me=[],Le=0;Le<arguments.length;Le++)Me[Le]=arguments[Le];return y.getEventProperties.apply(y,xe(xe([],oe(Me),!1),[d],!1))},amplitude:B,shouldTrackEvent:N,shouldTrackActionClick:ie}),g.push(ae),(Ze=k==null?void 0:k.loggerProvider)===null||Ze===void 0||Ze.log("".concat(p," has been successfully added.")),window.opener&&h.enabled&&(se=e.cssSelectorAllowlist,ze=e.actionClickAllowlist,(Oe=h.messenger)===null||Oe===void 0||Oe.setup(ee(ee({dataExtractor:y,logger:k==null?void 0:k.loggerProvider},(k==null?void 0:k.serverZone)&&{endpoint:dE[k.serverZone]}),{isElementSelectable:hi(e,xe(xe([],oe(se),!1),oe(ze),!1)),cssSelectorAllowlist:se,actionClickAllowlist:ze}))),[2])})})},I=function(k){return V(void 0,void 0,void 0,function(){return j(this,function(B){return[2,k]})})},T=function(){return V(void 0,void 0,void 0,function(){var k,B,N,ie,X;return j(this,function(q){try{for(k=Ee(g),B=k.next();!B.done;B=k.next())N=B.value,N.unsubscribe()}catch(K){ie={error:K}}finally{try{B&&!B.done&&(X=k.return)&&X.call(k)}finally{if(ie)throw ie.error}}return[2]})})};return{name:p,type:v,setup:P,execute:I,teardown:T}},Cd=3e3;function JS(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackDeadClick,s=n.clickObservable,o=n.mutationObservable,a=n.navigateObservable,l=s.pipe(mt(zi),mt(function(f){return i("click",f.closestTrackedAncestor)}),mt(function(f){var h=f.event.target;return h.closest('a[target="_blank"]')===null})),u=[o];a&&u.push(a);var c=Vl.apply(void 0,xe([],oe(u),!1)),d=l.pipe(Hi(function(f){var h,p=new rt(function(v){return h=setTimeout(function(){return v.next(f)},Cd),function(){clearTimeout(h)}});return uS(p,c.pipe(ql(1),ut(function(){return null}))).pipe(mt(function(v){return v!==null}))}),bS(Cd));return d.subscribe(function(f){var h={"[Amplitude] X":f.event.clientX,"[Amplitude] Y":f.event.clientY};t.track(J_,ee(ee({},r("click",f.closestTrackedAncestor)),h),{time:f.timestamp})})}var Ga=Kx,bv=Gx,Ad=Wx;function Id(e,t){var n,r,i,s,o=t.event,a=o.clientX,l=o.clientY;e.yMin=Math.min((n=e.yMin)!==null&&n!==void 0?n:l,l),e.yMax=Math.max((r=e.yMax)!==null&&r!==void 0?r:l,l),e.xMin=Math.min((i=e.xMin)!==null&&i!==void 0?i:a,a),e.xMax=Math.max((s=e.xMax)!==null&&s!==void 0?s:a,a),e.isOutOfBounds=e.yMax-e.yMin>Ad||e.xMax-e.xMin>Ad}function kd(e){var t=e[0],n=e[e.length-1],r=ee({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(n.timestamp).toISOString(),"[Amplitude] Duration":n.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(i){return{X:i.event.clientX,Y:i.event.clientY,Time:i.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties);return{rageClickEvent:r,time:t.timestamp}}function YS(e,t){var n=Math.max(0,e.length-Ga+1),r=e[n];return t.timestamp-r.timestamp>=bv}function XS(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function QS(e){var t=e.amplitude,n=e.allObservables,r=e.shouldTrackRageClick,i=n.clickObservable,s=[],o={},a;function l(u){s=[],o={},u&&(Id(o,u),s.push(u))}return i.pipe(mt(zi),mt(function(u){return r("click",u.closestTrackedAncestor)}),ut(function(u){if(a&&clearTimeout(a),Id(o,u),s.length===0)return s.push(u),null;if(XS(s,u)||YS(s,u)||o.isOutOfBounds){var c=s.length>=Ga?kd(s):null;return l(u),c}return s.push(u),s.length>=Ga&&(a=setTimeout(function(){var d=kd(s),f=d.rageClickEvent,h=d.time;t.track(hd,f,{time:h}),l()},bv)),null}),mt(function(u){return u!==null})).subscribe(function(u){u!==null&&t.track(hd,u.rageClickEvent,{time:u.time})})}var ZS=function(e){var t,n,r,i,s;e===void 0&&(e={});var o=W_,a="enrichment",l=[],u=(n=(t=e.rageClicks)===null||t===void 0?void 0:t.cssSelectorAllowlist)!==null&&n!==void 0?n:zx,c=(i=(r=e.deadClicks)===null||r===void 0?void 0:r.cssSelectorAllowlist)!==null&&i!==void 0?i:Hx,d=(s=e.dataAttributePrefix)!==null&&s!==void 0?s:Rp,f=new zl(e),h=xe([],oe(new Set(xe(xe([],oe(u),!1),oe(c),!1))),!1),p=function(){var b,w=yv("pointerdown").pipe(ut(function(C){return f.addAdditionalEventProperties(C,"click",h,d,!0)}),rr()),x;window.navigation&&(x=Fr(window.navigation,"navigate").pipe(ut(function(C){return f.addAdditionalEventProperties(C,"navigate",h,d)}),rr()));var E=mv().pipe(ut(function(C){return f.addAdditionalEventProperties(C,"mutation",h,d)}),rr());return b={},b[sn.ClickObservable]=w,b[sn.ChangeObservable]=new rt,b[sn.NavigateObservable]=x,b[sn.MutationObservable]=E,b},v=function(b,w){return V(void 0,void 0,void 0,function(){var x,E,C,P,I,T;return j(this,function(k){return typeof document>"u"?[2]:(x=hi(e,u),E=hi(e,c),C=p(),P=QS({allObservables:C,amplitude:w,shouldTrackRageClick:x}),l.push(P),I=JS({amplitude:w,allObservables:C,getEventProperties:function(B,N){return f.getEventProperties(B,N,d)},shouldTrackDeadClick:E}),l.push(I),(T=b==null?void 0:b.loggerProvider)===null||T===void 0||T.log("".concat(o," has been successfully added.")),[2])})})},g=function(b){return V(void 0,void 0,void 0,function(){return j(this,function(w){return[2,b]})})},y=function(){return V(void 0,void 0,void 0,function(){var b,w,x,E,C;return j(this,function(P){try{for(b=Ee(l),w=b.next();!w.done;w=b.next())x=w.value,x.unsubscribe()}catch(I){E={error:I}}finally{try{w&&!w.done&&(C=b.return)&&C.call(b)}finally{if(E)throw E.error}}return[2]})})};return{name:o,type:a,setup:v,execute:g,teardown:y}},e1="@amplitude/plugin-network-capture-browser",wv="[Amplitude] Network Request",xv="500-599";function As(e,t){var n=t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&"),r="^"+n.replace(/\*/g,".*")+"$",i=new RegExp(r);return i.test(e)}function _v(e,t){var n,r,i=t.split(",");try{for(var s=Ee(i),o=s.next();!o.done;o=s.next()){var a=o.value,l=oe(a.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&c===void 0||e>=u&&e<=c)return!0}}catch(d){n={error:d}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!1}function t1(e,t,n,r,i){if(!(e.hosts&&!e.hosts.find(function(o){return As(t,o)}))&&!(r&&e.urls&&!ja(r,e.urls))&&!(i&&e.methods&&!e.methods.find(function(o){return i.toLowerCase()===o.toLowerCase()||o==="*"}))){if(n||n===0){var s=e.statusCodeRange||xv;if(!_v(n,s))return!1}return!0}}function Ev(e){var t;if(e)try{var n=(t=tt())===null||t===void 0?void 0:t.location.href,r=new URL(e,n),i=r.searchParams.toString(),s=r.hash.replace("#",""),o=r.href,a=r.host;r.hash="",r.search="";var l=r.href;return{query:i,fragment:s,href:o,hrefWithoutQueryOrHash:l,host:a}}catch{return}}function n1(e,t){if(e.includes("amplitude.com"))try{var n=t.body;
46if(typeof n!="string")return!1;var r=JSON.parse(n),i=r.events;if(i.find(function(s){return s.event_type===wv}))return!0}catch{}return!1}function Od(e){if(typeof e!="object"||e===null){if(e)return xe([],oe(Bs),!1);if(e===void 0){var t=void 0;return t}return}if(e.length!==0)return e}function Rd(e){var t,n;return!(!((t=e==null?void 0:e.allowlist)===null||t===void 0)&&t.length)&&!(!((n=e==null?void 0:e.blocklist)===null||n===void 0)&&n.length)}function r1(e,t){var n;t===void 0&&(t={});var r=Ev(e.url);if(!r)return!1;var i=r.host;if(t.ignoreAmplitudeRequests!==!1&&(As(i,"*.amplitude.com")||As(i,"amplitude.com"))||!((n=t.ignoreHosts)===null||n===void 0)&&n.find(function(o){return As(i,o)})||!t.captureRules&&e.status!==void 0&&!_v(e.status,xv))return!1;if(t.captureRules){var s;if(xe([],oe(t.captureRules),!1).reverse().find(function(o){if(s=t1(o,i,e.status,e.url,e.method),s){var a=Od(o.responseHeaders);if(e.responseWrapper&&a){var l=e.responseWrapper.headers(a);l&&(e.responseHeaders=l)}var u=Od(o.requestHeaders);if(e.requestWrapper&&u){var c=e.requestWrapper.headers(u);c&&(e.requestHeaders=c)}e.responseWrapper&&o.responseBody&&!Rd(o.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(o.responseBody.allowlist,o.responseBody.blocklist)),e.requestWrapper&&o.requestBody&&!Rd(o.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(o.requestBody.allowlist,o.requestBody.blocklist))}return s!==void 0}),!s)return!1}return!(e.requestWrapper&&n1(i,e.requestWrapper))}function i1(e,t,n,r){return V(this,void 0,void 0,function(){var i,s,o;return j(this,function(a){switch(a.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(i=oe.apply(void 0,[a.sent(),2]),s=i[0],o=i[1],s)try{e["[Amplitude] Request Body"]=JSON.stringify(s)}catch(l){r==null||r.debug("Failed to stringify request body",l)}if(o)try{e["[Amplitude] Response Body"]=JSON.stringify(o)}catch{r==null||r.debug("Failed to stringify response body")}a.label=2;case 2:return n==null||n.track(wv,e),[2]}})})}function s1(e){var t=e.allObservables,n=e.networkTrackingOptions,r=e.amplitude,i=e.loggerProvider,s=t.networkObservable,o=s.pipe(mt(function(a){return r1(a.event,n)}));return o.subscribe(function(a){var l,u,c,d=a.event,f=Ev(d.url);if(f){var h=(u=d.responseWrapper)===null||u===void 0?void 0:u.bodySize,p=(c=d.requestWrapper)===null||c===void 0?void 0:c.bodySize,v=(l={},l["[Amplitude] URL"]=f.hrefWithoutQueryOrHash,l["[Amplitude] URL Query"]=f.query,l["[Amplitude] URL Fragment"]=f.fragment,l["[Amplitude] Request Method"]=d.method,l["[Amplitude] Status Code"]=d.status,l["[Amplitude] Start Time"]=d.startTime,l["[Amplitude] Completion Time"]=d.endTime,l["[Amplitude] Duration"]=d.duration,l["[Amplitude] Request Body Size"]=p,l["[Amplitude] Response Body Size"]=h,l["[Amplitude] Request Type"]=d.type,l["[Amplitude] Request Headers"]=d.requestHeaders,l["[Amplitude] Response Headers"]=d.responseHeaders,l);i1(v,d,r,i)}})}var Ka;(function(e){e.NetworkObservable="networkObservable"})(Ka||(Ka={}));var o1=function(e){e===void 0&&(e={});var t=e1,n="enrichment",r,i=[],s=function(c,d){var f={event:c,timestamp:Date.now(),type:d};return f},o=function(){var c,d=new rt(function(f){var h=new r_(function(p){var v=s(p,"network");f.next(v)});return sd.subscribe(h,r),function(){sd.unsubscribe(h)}});return c={},c[Ka.NetworkObservable]=d,c},a=function(c,d){return V(void 0,void 0,void 0,function(){var f,h;return j(this,function(p){return typeof document>"u"?[2]:(f=o(),r=c==null?void 0:c.loggerProvider,h=s1({allObservables:f,networkTrackingOptions:e,amplitude:d,loggerProvider:r}),i.push(h),r==null||r.log("".concat(t," has been successfully added.")),[2])})})},l=function(c){return V(void 0,void 0,void 0,function(){return j(this,function(d){return[2,c]})})},u=function(){return V(void 0,void 0,void 0,function(){var c,d,f,h,p;return j(this,function(v){try{for(c=Ee(i),d=c.next();!d.done;d=c.next())f=d.value,f.unsubscribe()}catch(g){h={error:g}}finally{try{d&&!d.done&&(p=c.return)&&p.call(c)}finally{if(h)throw h.error}}return[2]})})};return{name:t,type:n,setup:a,execute:l,teardown:u}},a1="web-vitals-browser",l1="[Amplitude] Web Vitals";let Sv=-1;const Vr=e=>{addEventListener("pageshow",t=>{t.persisted&&(Sv=t.timeStamp,e(t))},!0)},ln=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=((a,l)=>a>l[1]?"poor":a>l[0]?"needs-improvement":"good")(t.value,n),e(t)))}},Gl=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},Kl=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Gi=()=>{const e=Kl();return(e==null?void 0:e.activationStart)??0},un=(e,t=-1)=>{const n=Kl();let r="navigate";return Sv>=0?r="back-forward-cache":n&&(document.prerendering||Gi()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},ra=new WeakMap;function Wl(e,t){return ra.get(e)||ra.set(e,new t),ra.get(e)}class u1{constructor(){hn(this,"t");hn(this,"i",0);hn(this,"o",[])}h(t){var i;if(t.hadRecentInput)return;const n=this.o[0],r=this.o.at(-1);this.i&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),(i=this.t)==null||i.call(this,t)}}const Ki=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Jl=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let wr=-1;const Tv=new Set,Pd=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Wa=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const t of Tv)t();isFinite(wr)||(wr=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Wa,!0))}},bo=()=>{var e;if(wr<0){const t=Gi();wr=(document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??Pd(),addEventListener("visibilitychange",Wa,!0),addEventListener("prerenderingchange",Wa,!0),Vr(()=>{setTimeout(()=>{wr=Pd()})})}return{get firstHiddenTime(){return wr}
46,onHidden(t){Tv.add(t)}}},wo=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Nd=[1800,3e3],Cv=(e,t={})=>{wo(()=>{const n=bo();let r,i=un("FCP");const s=Ki("paint",o=>{for(const a of o)a.name==="first-contentful-paint"&&(s.disconnect(),a.startTime<n.firstHiddenTime&&(i.value=Math.max(a.startTime-Gi(),0),i.entries.push(a),r(!0)))});s&&(r=ln(e,i,Nd,t.reportAllChanges),Vr(o=>{i=un("FCP"),r=ln(e,i,Nd,t.reportAllChanges),Gl(()=>{i.value=performance.now()-o.timeStamp,r(!0)})}))})},Ld=[.1,.25],c1=(e,t={})=>{const n=bo();Cv(Jl(()=>{let r,i=un("CLS",0);const s=Wl(t,u1),o=l=>{for(const u of l)s.h(u);s.i>i.value&&(i.value=s.i,i.entries=s.o,r())},a=Ki("layout-shift",o);a&&(r=ln(e,i,Ld,t.reportAllChanges),n.onHidden(()=>{o(a.takeRecords()),r(!0)}),Vr(()=>{s.i=0,i=un("CLS",0),r=ln(e,i,Ld,t.reportAllChanges),Gl(()=>r())}),setTimeout(r))}))};let Av=0,ia=1/0,as=0;const d1=e=>{for(const t of e)t.interactionId&&(ia=Math.min(ia,t.interactionId),as=Math.max(as,t.interactionId),Av=as?(as-ia)/7+1:0)};let Ja;const Dd=()=>Ja?Av:performance.interactionCount??0,f1=()=>{"interactionCount"in performance||Ja||(Ja=Ki("event",d1,{type:"event",buffered:!0,durationThreshold:0}))};let Md=0;class h1{constructor(){hn(this,"u",[]);hn(this,"l",new Map);hn(this,"m");hn(this,"p")}v(){Md=Dd(),this.u.length=0,this.l.clear()}L(){const t=Math.min(this.u.length-1,Math.floor((Dd()-Md)/50));return this.u[t]}h(t){var i,s;if((i=this.m)==null||i.call(this,t),!t.interactionId&&t.entryType!=="first-input")return;const n=this.u.at(-1);let r=this.l.get(t.interactionId);if(r||this.u.length<10||t.duration>n.P){if(r?t.duration>r.P?(r.entries=[t],r.P=t.duration):t.duration===r.P&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],P:t.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((o,a)=>a.P-o.P),this.u.length>10){const o=this.u.splice(10);for(const a of o)this.l.delete(a.id)}(s=this.p)==null||s.call(this,r)}}}const Iv=e=>{const t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=Jl(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t(()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})}))},Ud=[200,500],p1=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=bo();wo(()=>{f1();let r,i=un("INP");const s=Wl(t,h1),o=l=>{Iv(()=>{for(const c of l)s.h(c);const u=s.L();u&&u.P!==i.value&&(i.value=u.P,i.entries=u.entries,r())})},a=Ki("event",o,{durationThreshold:t.durationThreshold??40});r=ln(e,i,Ud,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),r(!0)}),Vr(()=>{s.v(),i=un("INP"),r=ln(e,i,Ud,t.reportAllChanges)}))})};class v1{constructor(){hn(this,"m")}h(t){var n;(n=this.m)==null||n.call(this,t)}}const Fd=[2500,4e3],g1=(e,t={})=>{wo(()=>{const n=bo();let r,i=un("LCP");const s=Wl(t,v1),o=l=>{t.reportAllChanges||(l=l.slice(-1));for(const u of l)s.h(u),u.startTime<n.firstHiddenTime&&(i.value=Math.max(u.startTime-Gi(),0),i.entries=[u],r())},a=Ki("largest-contentful-paint",o);if(a){r=ln(e,i,Fd,t.reportAllChanges);const l=Jl(()=>{o(a.takeRecords()),a.disconnect(),r(!0)}),u=c=>{c.isTrusted&&(Iv(l),removeEventListener(c.type,u,{capture:!0}))};for(const c of["keydown","click","visibilitychange"])addEventListener(c,u,{capture:!0});Vr(c=>{i=un("LCP"),r=ln(e,i,Fd,t.reportAllChanges),Gl(()=>{i.value=performance.now()-c.timeStamp,r(!0)})})}})},$d=[800,1800],Ya=e=>{document.prerendering?wo(()=>Ya(e)):document.readyState!=="complete"?addEventListener("load",()=>Ya(e),!0):setTimeout(e)},m1=(e,t={})=>{let n=un("TTFB"),r=ln(e,n,$d,t.reportAllChanges);Ya(()=>{const i=Kl();i&&(n.value=Math.max(i.responseStart-Gi(),0),n.entries=[i],r(!0),Vr(()=>{n=un("TTFB",0),r=ln(e,n,$d,t.reportAllChanges),r(!0)}))})};function y1(e){var t,n=((t=e.entries[0])===null||t===void 0?void 0:t.startTime)||0;return performance.timeOrigin+n}function Qr(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(y1(e)),navigationStart:Math.floor(performance.timeOrigin)}}var b1=function(){var e=null,t=tt(),n=t==null?void 0:t.document,r=t==null?void 0:t.location,i=function(a,l){return V(void 0,void 0,void 0,function(){var u,c,d;return j(this,function(f){return u=function(h){var p;if(!h)return"";var v=h;try{v=decodeURI(h)}catch(g){(p=a.loggerProvider)===null||p===void 0||p.error("Malformed URI sequence: ",g)}return v},n===void 0?[2]:(c=u(r==null?void 0:r.href),d={"[Amplitude] Page Domain":(r==null?void 0:r.hostname)||"","[Amplitude] Page Location":c,"[Amplitude] Page Path":u(r==null?void 0:r.pathname),"[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":c.split("?")[0]},g1(function(h){d["[Amplitude] LCP"]=Qr(h)}),Cv(function(h){d["[Amplitude] FCP"]=Qr(h)}),p1(function(h){d["[Amplitude] INP"]=Qr(h)}),c1(function(h){d["[Amplitude] CLS"]=Qr(h)}),m1(function(h){d["[Amplitude] TTFB"]=Qr(h)}),e=function(){n.visibilityState==="hidden"&&e&&(l.track(l1,d),n.removeEventListener("visibilitychange",e),e=null)},n.addEventListener("visibilitychange",e),[2])})})},s=function(a){return V(void 0,void 0,void 0,function(){return j(this,function(l){return[2,a]})})},o=function(){return V(void 0,void 0,void 0,function(){return j(this,function(a){return e&&(n==null||n.removeEventListener("visibilitychange",e)),[2]})})};return{name:a1,type:"enrichment",setup:i,execute:s,teardown:o}},jd=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},w1=function(e){return Object.values(e).every(function(t){return!t})},x1=function(e,t,n,r,i){i===void 0&&(i=!0),e.referrer;var s=e.referring_domain,o=js(e,["referrer","referring_domain"]),a=t||{};a.referrer;var l=a.referring_domain,u=js(a,["referrer","referring_domain"]);if(_1(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&w1(e)&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(o)!==JSON.stringify(u),d=jd(s||"")!==jd(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},_1=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=""),e.some(function(n){return n instanceof RegExp?n.test(t):n===t})},E1=function(e,t){var n=ee(ee({},mo),e),r=Object.entries(n).reduce(function(i,s){var o,a=oe(s,2),l=a[0],u=a[1];return i.setOnce("initial_".concat(l),(o=u??t.initialEmptyValue)!==null&&o!==void 0?o:"EMPTY"),u?i.set(l,u):i.unset(l)},new Vs);return Tp(r)},S1=function(e){var t=e;
46return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},T1=function(){function e(t,n){var r;this.shouldTrackNewCampaign=!1,this.options=ee({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:S1((r=n.cookieOptions)===null||r===void 0?void 0:r.domain)},t),this.storage=n.cookieStorage,this.storageKey=Zc(n.apiKey,"MKTG"),this.webExpStorageKey=Zc(n.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=mo,this.sessionTimeout=n.sessionTimeout,this.lastEventTime=n.lastEventTime,this.logger=n.loggerProvider,n.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return V(this,void 0,void 0,function(){var t,n;return j(this,function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return n=oe.apply(void 0,[r.sent(),2]),this.currentCampaign=n[0],this.previousCampaign=n[1],t=this.lastEventTime?Ip(this.sessionTimeout,this.lastEventTime):!0,x1(this.currentCampaign,this.previousCampaign,this.options,this.logger,t)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return V(this,void 0,void 0,function(){var t;return j(this,function(n){switch(n.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return t=n.sent(),t?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[4,Promise.all([t||new Mp().parse(),this.storage.get(this.storageKey)])];case 4:return[2,n.sent()]}})})},e.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var n=E1(this.currentCampaign,this.options);return t&&(n.event_id=t),n},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),C1=function(e){Tt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._diagnosticsSampleRate=0,n}return t.prototype.init=function(n,r,i){n===void 0&&(n="");var s,o;return arguments.length>2?(s=r,o=i):typeof r=="string"?(s=r,o=void 0):(s=r==null?void 0:r.userId,o=r),kt(this._init(ee(ee({},o),{userId:s,apiKey:n})))},t.prototype._init=function(n){var r,i,s;return V(this,void 0,void 0,function(){var o,a,l,u,c,d,f,h,p,v=this;return j(this,function(g){switch(g.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,N_(n.apiKey,n,this)]);case 1:return o=g.sent(),o.fetchRemoteConfig?(a=new $x(o.apiKey,o.loggerProvider,o.serverZone),[4,new Promise(function(y){a==null||a.subscribe("configs.analyticsSDK.browserSDK","all",function(b,w,x){o.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:b,source:w,lastFetch:x},null,2)),b&&G_(b,o),y()})})]):[3,3];case 2:g.sent(),g.label=3;case 3:return l=new Px(o.apiKey,o.loggerProvider,o.serverZone,{enabled:o.enableDiagnostics,sampleRate:o.diagnosticsSampleRate||this._diagnosticsSampleRate}),l.setTag("library","".concat(Hp,"/").concat(Ml)),[4,e.prototype._init.call(this,o)];case 4:return g.sent(),this.logBrowserOptions(o),this.config.diagnosticsClient=l,this.config.remoteConfigClient=a,$p(this.config.defaultTracking)?(u=v_(this.config),this.webAttribution=new T1(u,this.config),[4,this.webAttribution.init()]):[3,6];case 5:g.sent(),g.label=6;case 6:return c=qs(),d=c.ampTimestamp?Number(c.ampTimestamp):void 0,f=d?Date.now()<d:!0,this.config.identify&&this.identify(this.config.identify),h=f&&!Number.isNaN(Number(c.ampSessionId))?Number(c.ampSessionId):void 0,this.setSessionId((s=(i=(r=n.sessionId)!==null&&r!==void 0?r:h)!==null&&i!==void 0?i:this.config.sessionId)!==null&&s!==void 0?s:Date.now()),p=ki(n.instanceName),p.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===jx?[3,8]:[4,this.add(z_()).promise];case 7:g.sent(),g.label=8;case 8:return[4,this.add(new ox).promise];case 9:return g.sent(),[4,this.add(new y_).promise];case 10:return g.sent(),[4,this.add(new mx).promise];case 11:return g.sent(),H_(this.config),l_(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(q_()).promise]):[3,13];case 12:g.sent(),g.label=13;case 13:return u_(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(V_()).promise]):[3,15];case 14:g.sent(),g.label=15;case 15:return jp(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(F_(p_(this.config))).promise]):[3,17];case 16:g.sent(),g.label=17;case 17:return Vp(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(WS(d_(this.config),{diagnosticsClient:l})).promise]):[3,19];case 18:g.sent(),g.label=19;case 19:return qp(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(ZS(f_(this.config))).promise]):[3,21];case 20:g.sent(),g.label=21;case 21:return Bp(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(o1(h_(this.config))).promise]):[3,23];case 22:g.sent(),g.label=23;case 23:return c_(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(b1()).promise]):[3,25];case 24:g.sent(),g.label=25;case 25:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 26:return g.sent(),p.eventBridge.setEventReceiver(function(y){var b=y.eventProperties||{},w=b.time,x=js(b,["time"]),E=typeof w=="number"?{time:w}:void 0;v.track(y.eventType,x,E)}),[2]}})})},t.prototype.getUserId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.userId},t.prototype.setUserId=function(n){if(!this.config){this.q.push(this.setUserId.bind(this,n));return}
46this.config.loggerProvider.debug("function setUserId: ",n),(n!==this.config.userId||n===void 0)&&(this.config.userId=n,this.timeline.onIdentityChanged({userId:n}),vx(n,this.config.instanceName))},t.prototype.getDeviceId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.deviceId},t.prototype.setDeviceId=function(n){if(!this.config){this.q.push(this.setDeviceId.bind(this,n));return}this.config.loggerProvider.debug("function setDeviceId: ",n),n!==this.config.deviceId&&(this.config.deviceId=n,this.timeline.onIdentityChanged({deviceId:n}),gx(n,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(Kn()),this.setUserId(void 0)},t.prototype.getIdentity=function(){var n,r;return{deviceId:(n=this.config)===null||n===void 0?void 0:n.deviceId,userId:(r=this.config)===null||r===void 0?void 0:r.userId,userProperties:this.userProperties}},t.prototype.getOptOut=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.optOut},t.prototype.getSessionId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.sessionId},t.prototype.setSessionId=function(n){var r,i=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,n)),kt(Promise.resolve());if(n===this.config.sessionId)return kt(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",n);var s=this.getSessionId();s!==n&&this.timeline.onSessionIdChanged(n);var o=this.config.lastEventTime,a=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1;this.config.sessionId=n,this.config.lastEventTime=void 0,this.config.pageCounter=0,od(this.config.defaultTracking)&&(s&&o&&i.push(this.track(ud,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:s,time:o+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var l=this.trackCampaignEventIfNeeded(++a,i);return od(this.config.defaultTracking)&&i.push(this.track(ld,void 0,{event_id:l?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,kt(Promise.all(i))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(n){if(!this.config){this.q.push(this.setTransport.bind(this,n));return}this.config.transportProvider=Gp(n)},t.prototype.identify=function(n,r){if(Yo(n)){var i=n._q;n._q=[],n=Jo(new Vs,i)}return r!=null&&r.user_id&&this.setUserId(r.user_id),r!=null&&r.device_id&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,n,r)},t.prototype.groupIdentify=function(n,r,i,s){if(Yo(i)){var o=i._q;i._q=[],i=Jo(new Vs,o)}return e.prototype.groupIdentify.call(this,n,r,i,s)},t.prototype.revenue=function(n,r){if(Yo(n)){var i=n._q;n._q=[],n=Jo(new ex,i)}return e.prototype.revenue.call(this,n,r)},t.prototype.trackCampaignEventIfNeeded=function(n,r){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var i=this.webAttribution.generateCampaignEvent(n);return r?r.push(this.track(i).promise):this.track(i),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(n){return V(this,void 0,void 0,function(){var r,i,s;return j(this,function(o){return r=Date.now(),i=Ip(this.config.sessionTimeout,this.config.lastEventTime),s=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),n.event_type!==ld&&n.event_type!==ud&&(!n.session_id||n.session_id===this.getSessionId())&&(i||s?(this.setSessionId(r),s&&this.config.loggerProvider.log("Created a new session for new campaign.")):i||this.trackCampaignEventIfNeeded()),n.event_type===zn.IDENTIFY&&n.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(n.user_properties)),[2,e.prototype.process.call(this,n)]})})},t.prototype.logBrowserOptions=function(n){try{var r=ee(ee({},n),{apiKey:n.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(r))}catch(i){this.config.loggerProvider.error("Error logging browser config",i)}},t.prototype._setDiagnosticsSampleRate=function(n){if(!(n>1||n<0)&&!this.config){this._diagnosticsSampleRate=n;return}},t}(Zw),A1=function(){var e=new C1;return{init:Je(e.init.bind(e),"init",Ke(e),We(e,["config"])),add:Je(e.add.bind(e),"add",Ke(e),We(e,["config.apiKey","timeline.plugins"])),remove:Je(e.remove.bind(e),"remove",Ke(e),We(e,["config.apiKey","timeline.plugins"])),track:Je(e.track.bind(e),"track",Ke(e),We(e,["config.apiKey","timeline.queue.length"])),logEvent:Je(e.logEvent.bind(e),"logEvent",Ke(e),We(e,["config.apiKey","timeline.queue.length"])),identify:Je(e.identify.bind(e),"identify",Ke(e),We(e,["config.apiKey","timeline.queue.length"])),groupIdentify:Je(e.groupIdentify.bind(e),"groupIdentify",Ke(e),We(e,["config.apiKey","timeline.queue.length"])),setGroup:Je(e.setGroup.bind(e),"setGroup",Ke(e),We(e,["config.apiKey","timeline.queue.length"])),revenue:Je(e.revenue.bind(e),"revenue",Ke(e),We(e,["config.apiKey","timeline.queue.length"])),flush:Je(e.flush.bind(e),"flush",Ke(e),We(e,["config.apiKey","timeline.queue.length"])),getUserId:Je(e.getUserId.bind(e),"getUserId",Ke(e),We(e,["config","config.userId"])),setUserId:Je(e.setUserId.bind(e),"setUserId",Ke(e),We(e,["config","config.userId"])),getDeviceId:Je(e.getDeviceId.bind(e),"getDeviceId",Ke(e),We(e,["config","config.deviceId"])),setDeviceId:Je(e.setDeviceId.bind(e),"setDeviceId",Ke(e),We(e,["config","config.deviceId"])),reset:Je(e.reset.bind(e),"reset",Ke(e),We(e,["config","config.userId","config.deviceId"])),getSessionId:Je(e.getSessionId.bind(e),"getSessionId",Ke(e),We(e,["config"])),setSessionId:Je(e.setSessionId.bind(e),"setSessionId",Ke(e),We(e,["config"])),extendSession:Je(e.extendSession.bind(e),"extendSession",Ke(e),We(e,["config"])),setOptOut:Je(e.setOptOut.bind(e),"setOptOut",Ke(e),We(e,["config"])),setTransport:Je(e.setTransport.bind(e),"setTransport",Ke(e),We(e,["config"])),getIdentity:Je(e.getIdentity.bind(e),"getIdentity",Ke(e),We(e,["config"])),getOptOut:Je(e.getOptOut.bind(e),"getOptOut",Ke(e),We(e,["config"])),_setDiagnosticsSampleRate:Je(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",Ke(e),We(e,["config"]))}};const qr=A1();var I1=qr.flush,k1=qr.getDeviceId,O1=qr.init,R1=qr.setDeviceId,P1=qr.setUserId,N1=qr.track;const kv=Di("amplitude",{state:()=>({isInitialized:!1}),actions:{init(e,t){this.isInitialized||(O1(e,t),this.isInitialized=!0)},setUserId(e){P1(e)},setDeviceId(e){R1(e)},getDeviceId(){return k1()},track(e,t={}){N1(e,t)},async flush(){return I1().promise}}}),L1=()=>{const e=z("main"),t=z(!1),n=Z(()=>Ht[e.value]||Ht.main),r=a=>{const l=Ht[a];if(!l)return;const u=document.documentElement;Object.entries(l).forEach(([c,d])=>{u.style.setProperty(`--color-${c}`,d)}),u.style.setProperty("--color-primary",l.primary),u.style.setProperty("--color-secondary",l.
46secondary),u.style.setProperty("--color-primary-dark",l.primaryDark),u.style.setProperty("--color-primary-light",l.primaryLight),u.style.setProperty("--color-secondary-dark",l.secondaryDark),u.style.setProperty("--color-secondary-light",l.secondaryLight),u.style.setProperty("--color-gradient-start",l.gradientStart),u.style.setProperty("--color-gradient-end",l.gradientEnd),u.style.setProperty("--color-orange-primary",l.orangePrimary),u.style.setProperty("--color-orange-secondary",l.orangeSecondary),u.style.setProperty("--color-orange-tertiary",l.orangeTertiary),u.style.setProperty("--color-orange-text",l.orangeText),u.style.setProperty("--color-warn-dark",l.warnDark),u.style.setProperty("--color-warn-text",l.warnText),u.style.setProperty("--color-warn-btn",l.warnBtn)},i=()=>yp(),s=a=>{Ht[a]&&(e.value=a,r(a))},o=a=>{Ht[a]&&(e.value=a,r(a))};return ct(()=>{const a=i();e.value=a,r(a),t.value=!0}),st(e,a=>{r(a)}),{theme:bi(e),setTheme:s,themeColors:n,isThemeLoaded:bi(t),simulateEnvTheme:o}},D1="https://portal.brandalignment.com/",M1="https://watchtower.brandalignment.com/",U1="https://demo.brandalignment.com/",Gs=e=>{e==="balab"?window.location.href=D1:e==="watchtower"&&(window.location.href=M1)},ei={balab:1,watchtower:2,admin:3,thorncrest:4};async function F1(e){var t;try{return await it.post("/users/onboarding/step-history",JSON.stringify({step:e,action:"start"})),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function $1(){var e;try{return{success:!0,data:(await it.get("/users/onboarding/industry-types")).data.map(i=>({id:i.id,name:i.description}))}}catch(t){if(ye.isAxiosError(t)){const n=(e=t.response)==null?void 0:e.data;return{success:!1,message:(n==null?void 0:n.message)||t.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function j1(e){var t;try{return await it.post("/users/onboarding/industry-type",JSON.stringify(e)),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function B1(e){var t;try{return await it.post("/users/onboarding/sku-to-monitor",JSON.stringify({sku_to_monitor:e})),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function V1(){return{success:!0,data:1}}async function q1(e){var t;try{return await it.post("/users/onboarding/countries-to-monitor",JSON.stringify(e)),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function H1(e){var t;try{return await it.post("/users/onboarding/marketplaces-to-monitor",JSON.stringify({marketplaces_to_monitor:e})),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function z1(e){var t;try{return await it.post("/users/onboarding/seller-authorization-policy",JSON.stringify({have_seller_authorization_policy:e})),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function G1(e){var t;try{return await it.post("/users/onboarding/authorized-sellers-range",JSON.stringify({authorized_sellers_range:e})),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function K1(e){var t;try{return await it.post("/users/onboarding/map-policy",JSON.stringify({map_policy:e})),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function W1(e){var t;try{return await it.post("/users/onboarding/main-concerns",JSON.stringify({main_concerns:e})),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function J1(e){var t;try{return await it.post("/users/onboarding/products/upload",e),{success:!0,data:null}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function Y1(){var e;try{return{success:!0,data:(await it.get("/countries")).data}}catch(t){if(ye.isAxiosError(t)){const n=(e=t.response)==null?void 0:e.data;return{success:!1,message:(n==null?void 0:n.message)||t.message||"Request failed"}}return{success:!1,message:"Request failed"}}}async function xo(){var e;try{return{success:!0,data:(await it.get("/users/me")).data}}catch(t){if(ye.isAxiosError(t)){const n=(e=t.response)==null?void 0:e.data;return{success:!1,message:(n==null?void 0:n.message)||t.message||"Request failed"}}return{success:!1,message:"Request failed"}}}const X1=async()=>(await Kh(async()=>{const{default:e}=await Promise.resolve().then(()=>Mv);return{default:e}},void 0)).default;async function _o(e){const{user:t,firstLoginSetup:n}=e,r=await X1();if(!t)return{ok:!1,reason:"lost"};if((t==null?void 0:t.user_status)==="Scraping"||(t==null?void 0:t.user_status_id)===9)return r.push({name:"onboarding_loading_products"}),{ok:!0};const i=t==null?void 0:t.user_status_id;if(typeof i=="number"){if(i===1)return r.push({name:"onboarding_send_email",query:{email:t==null?void 0:t.email}}),{ok:!0};if(i===2){const c=await V1(),d=c.success?c.data:1;return r.push({name:"onboarding_stepper",query:{step:String(d)}}),{ok:!0}}if(i===3)return n?r.push({name:"onboarding_stepper",query:{step:"1"}}):r.push({name:"onboarding_get_started"}),{ok:!0};if(i===5)return r.push({name:"TrialExpired"}),{ok:!0};if(i===7)return{ok:!1,reason:"disabled"};if(i===8)return{ok:!1,reason:"lost"}}else if(n)return r.push({name:"onboarding_stepper",query:{step:"1"}}),{ok:!0};const o=((t==null?void 0:t.platforms)||[]).filter(c=>(c==null?void 0:c.id)!==ei.admin),a=o.some(c=>(c==null?void 0:c.id)===ei.watchtower),l=o.some(c=>(c==null?void 0:c.id)===ei.balab),u=o.some(c=>(c==null?void 0:c.id)===ei.thorncrest);return a&&l||a&&u?(r.push("/platform"),{ok:!0}):a?(Gs("watchtower"),{ok:!0}):l||u?(Gs("balab"),{ok:!0}):{ok:!1,reason:"no_platform"}}const Q1=2e3,Z1=50,eT=()=>new Promise(e=>{var r;if((r=window.dashcrab)!=null&&r.identify){e(window.dashcrab);return}const t=Date.now(),n=window.setInterval(()=>{var i;(i=window.dashcrab)!=null&&i.identify?(window.clearInterval(n),e(window.dashcrab)):Date.now()-t>=Q1&&(window.clearInterval(n),e(void 0))},Z1)}),Ov=async(e,t)=>{if(e)try{const n=await eT();n==null||n.identify(e,t)}catch{}},tT=e=>Ov(e,{action:"login"}),nT=e=>Ov(e.email,{action:"signup",name:e.firstName,lastname:e.lastName,brand:e.brandName}),kn=Di("auth",()=>{const e=z(Tr()||void 0),t=z(wp()||void 0),n=z(void 0),r=kv();return{token:e,user:t,login:async(a,l)=>{n.value=void 0,Ur(),Mc();try{const{theme:u}=L1(),c=u.value==="thorncrest",d=await xw(a,l,c);if(ye.isAxiosError(d)){n.value="Internal Error Occurred";return}if(!(d!=null&&d.token)){n.value="Incorrect Username or password";return}e.value=d.token,t.value=d.user,Rl(d.user),xp(d.token),await new Promise(h=>
46setTimeout(h,0)),Tr()||console.error("[auth] cookie persistence failed after setToken"),r.setUserId(d.user.email),r.track("login",{id:d.user.id}),await r.flush(),await tT(d.user.email);const f=await _o({user:d.user,firstLoginSetup:!!d.first_login_setup});if(!f.ok){if(f.reason==="disabled"){n.value="Account disabled";return}if(f.reason==="lost"){n.value="Account unavailable. Please contact support.";return}n.value="No valid platform found for the user"}}catch{n.value="Internal Error Occurred"}},logout:()=>{e.value=void 0,t.value=void 0,n.value=void 0,Ur(),Mc(),Kh(()=>Promise.resolve().then(()=>Mv),void 0).then(a=>a.default.push("/login")).catch(()=>window.location.assign("/login"))},isLoggedIn:()=>!!e.value||!!Tr(),error:n}}),Rv="/assets/thorncrest-text-CYWQ0wz9.png",rT={class:"bg-white h-full w-[700px] ml-auto rounded-lg flex items-center justify-center overflow-y-scroll"},iT={class:"w-[400px] h-[75%] flex flex-col"},sT={class:"flex gap-2"},oT=["src"],aT=["src"],lT={class:"mt-4"},uT=be({__name:"Login",setup(e){const t=kn(),n=Br(),{error:r}=Vb(t),i=z(""),s=z(""),o=z({email:"",pass:"",auth:""}),a=z(!1),l=Z(()=>n.theme),u=Z(()=>l.value==="main"),c=()=>{o.value.auth="",i.value===""?o.value.email="Email is required":o.value.email=""};st(r,p=>{p&&(o.value.auth=p)});const d=()=>{o.value.auth="",s.value===""?o.value.pass="Password is required":o.value.pass=""},f=()=>{o.value.auth.length===0&&(c(),d(),(o.value.email.length===0||o.value.pass.length===0)&&(a.value=!0,t.login(i.value,s.value).finally(()=>{setTimeout(()=>a.value=!1,500)})))},h=p=>{p.key==="Enter"&&!a.value&&f()};return st(i,c),st(s,d),ct(()=>{Ur()}),(p,v)=>(R(),G("div",{id:"container",class:Se({"thorncrest-theme":!u.value})},[m("div",rT,[m("div",iT,[m("div",sT,[u.value?(R(),G("img",{key:0,src:$(Db),class:"w-[170px]"},null,8,oT)):(R(),G("img",{key:1,src:$(Rv),class:"w-[180px]"},null,8,aT))]),m("div",lT,[v[2]||(v[2]=m("h1",{class:"font-bold text-[30px] text-dark my-[30px]"},"Sign In",-1)),U(Lt,{label:"Email Address",placeholder:"Enter your email",type:"email",variant:o.value.email||o.value.auth?"error":"primary",value:i.value,message:o.value.email,required:"",disabled:a.value,readonly:!1,onChange:v[0]||(v[0]=g=>{i.value=g}),onKeyup:xa(h,["enter"]),class:"mb-2"},null,8,["variant","value","message","disabled"]),U(Lt,{label:"Password",placeholder:"Enter your password",type:"password",variant:o.value.pass||o.value.auth?"error":"primary",value:s.value,message:o.value.pass||o.value.auth,required:"",disabled:a.value,readonly:!1,onChange:v[1]||(v[1]=g=>s.value=g),onKeyup:xa(h,["enter"]),class:"mb-4"},null,8,["variant","value","message","disabled"]),U(De,{label:"Sign In",color:"primary",loading:a.value,onClick:f,disabled:a.value||o.value.email.length>0||o.value.pass.length>0,class:"w-full mt-8 mb-4"},null,8,["loading","disabled"]),v[3]||(v[3]=m("div",{class:"flex justify-between text-xs mt-4"},[m("a",{class:"text-primaryText hover:text-primary cursor-pointer transition duration-300",href:"/forgot-password"}," Forgot Password? "),m("p",{class:"text-primaryText"},[yt(" Dont have an account? "),m("a",{href:"/signup",class:"text-primaryText hover:text-primary cursor-pointer transition duration-300"},"Sign Up")])],-1))])])])],2))}}),cT="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='41'%20height='41'%20viewBox='0%200%2041%2041'%20fill='none'%3e%3cpath%20d='M36.3149%207.93677C32.561%202.91711%2027.5549%200.269188%2021.2422%200.306503C16.984%200.331791%2013.0264%201.5141%209.43699%203.80188C3.74295%207.43081%200.545858%2012.5236%200.486938%2019.3973C0.500195%2024.1017%201.9933%2028.7259%204.86561%2032.6192C9.0852%2038.3383%2014.7407%2041.0375%2021.8542%2040.3835C26.4108%2039.9642%2030.4856%2038.2391%2034.0119%2035.3059C38.4389%2031.6237%2040.7697%2026.9011%2040.7545%2021.1214C40.7419%2016.252%2039.2294%2011.834%2036.3149%207.93677Z'%20fill='%231814F3'/%3e%3cpath%20d='M24.7375%2023.7788C24.7106%2023.7749%2024.6836%2023.7715%2024.6571%2023.767C24.6836%2023.7721%2024.7106%2023.7749%2024.7375%2023.7788Z'%20fill='%23F5F7FA'/%3e%3cpath%20d='M13.7787%2021.0068C13.7813%2020.9799%2013.7836%2020.9529%2013.7871%2020.926C13.7832%2020.9529%2013.7813%2020.9799%2013.7787%2021.0068Z'%20fill='%23F5F7FA'/%3e%3cpath%20d='M22.7399%2021.3579L22.5776%2021.2051C22.5771%2021.2176%2022.5776%2021.2307%2022.5771%2021.2432C22.6806%2021.3165%2022.7399%2021.3579%2022.7399%2021.3579Z'%20fill='%23F5F7FA'/%3e%3cpath%20d='M18.0593%2021.1339C18.0103%2021.9199%2018.6345%2022.5843%2019.422%2022.5843H22.9981C23.7856%2022.5843%2024.4098%2021.92%2024.3607%2021.134L24.1717%2018.1026C24.1268%2017.3829%2023.5301%2016.8223%2022.809%2016.8223H19.6113C18.8904%2016.8223%2018.2937%2017.3829%2018.2487%2018.1024L18.0593%2021.1339Z'%20fill='%23F5F7FA'/%3e%3cpath%20d='M20.2414%2011.0435C19.5247%2011.0435%2018.9299%2011.5977%2018.8795%2012.3126L18.7925%2013.5439C18.7367%2014.3338%2019.3625%2015.0054%2
46020.1544%2015.0054H22.2662C23.0582%2015.0054%2023.684%2014.3337%2023.6281%2013.5437L23.541%2012.3124C23.4904%2011.5975%2022.8958%2011.0435%2022.1791%2011.0435H20.2414Z'%20fill='%23F5F7FA'/%3e%3cpath%20d='M21.9479%204.10838C21.5405%203.70011%2020.8793%203.69937%2020.4711%204.10674C19.8121%204.76426%2020.2778%205.89025%2021.2087%205.89025C22.1385%205.89025%2022.6046%204.76657%2021.9479%204.10838Z'%20fill='%23F5F7FA'/%3e%3cpath%20d='M24.1683%209.29286C23.924%209.29286%2023.726%209.09482%2023.726%208.85053V8.76812C23.726%208.56934%2023.8871%208.4082%2024.0859%208.4082H24.2659C24.3653%208.4082%2024.4458%208.32763%2024.4458%208.22824C24.4458%208.12886%2024.3653%208.04829%2024.2659%208.04829H24.0859C23.8871%208.04829%2023.726%207.88714%2023.726%207.68837V7.32004C23.726%206.91784%2023.4%206.5918%2022.9978%206.5918H19.412C19.0098%206.5918%2018.6838%206.91784%2018.6838%207.32004V7.68809C18.6838%207.88702%2018.5225%208.04829%2018.3236%208.04829H18.1434C18.044%208.04829%2017.9634%208.12886%2017.9634%208.22824C17.9634%208.32763%2018.044%208.4082%2018.1434%208.4082H18.3236C18.5225%208.4082%2018.6838%208.56947%2018.6838%208.7684V8.85053C18.6838%209.09482%2018.4858%209.29286%2018.2415%209.29286H17.8785C17.7294%209.29286%2017.6085%209.41372%2017.6085%209.5628C17.6085%209.71188%2017.7294%209.83274%2017.8785%209.83274H18.6838H23.726H24.542C24.6911%209.83274%2024.8119%209.71188%2024.8119%209.5628C24.8119%209.41372%2024.6911%209.29286%2024.542%209.29286H24.1683ZM23.1856%208.21255C23.1856%208.80919%2022.7019%209.29286%2022.1052%209.29286H20.304C19.7073%209.29286%2019.2237%208.80919%2019.2237%208.21255C19.2237%207.61591%2019.7073%207.13223%2020.304%207.13223H22.1052C22.7019%207.13223%2023.1856%207.61591%2023.1856%208.21255Z'%20fill='%23F5F7FA'/%3e%3cpath%20d='M26.9279%2031.7799C26.1411%2031.7799%2025.4907%2031.1665%2025.4445%2030.3811L25.3495%2028.7635C25.2501%2027.0697%2023.8475%2025.7471%2022.1508%2025.7471H20.2708C18.574%2025.7471%2017.1712%2027.0696%2017.0714%2028.7635L16.9761%2030.3815C16.9298%2031.1668%2016.2795%2031.7799%2015.4929%2031.7799C14.6723%2031.7799%2014.0071%2032.4451%2014.0071%2033.2657V33.5806C14.0071%2034.5751%2014.8133%2035.3813%2015.8078%2035.3813H26.6132C27.6077%2035.3813%2028.4139%2034.5751%2028.4139%2033.5806V33.2658C28.4139%2032.4452%2027.7486%2031.7799%2026.9279%2031.7799Z'%20fill='%23F5F7FA'/%3e%3c/svg%3e",Yl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='43'%20height='43'%20viewBox='0%200%2043%2043'%20fill='none'%3e%3cpath%20d='M37.8026%208.35754C33.8418%203.06122%2028.5598%200.267357%202
461.8992%200.306728C17.4063%200.333408%2013.2306%201.58088%209.44333%203.99475C3.43547%207.82368%200.0621664%2013.1972%200%2020.4497C0.0139874%2025.4134%201.58939%2030.2924%204.62%2034.4003C9.07215%2040.4346%2015.0393%2043.2826%2022.5449%2042.5926C27.3527%2042.1502%2031.652%2040.33%2035.3727%2037.2351C40.0437%2033.35%2042.5029%2028.3671%2042.4869%2022.2688C42.4736%2017.131%2040.8778%2012.4696%2037.8026%208.35754Z'%20fill='%23F6911D'/%3e%3cpath%20d='M25.5872%2025.0742C25.5587%2025.0701%2025.5303%2025.0665%2025.5023%2025.0617C25.5303%2025.0672%2025.5587%2025.0701%2025.5872%2025.0742Z'%20fill='white'/%3e%3cpath%20d='M27.076%2024.874C26.5909%2025.0902%2026.0761%2025.1485%2025.5871%2025.0745C25.5586%2025.0702%2025.5301%2025.0674%2025.5021%2025.0619C24.6642%2024.9079%2023.9141%2024.3574%2023.5403%2023.5213C22.9374%2022.1714%2023.5426%2020.5884%2024.8928%2019.9852C26.2427%2019.382%2027.8255%2019.9879%2028.4286%2021.3381C29.0316%2022.6878%2028.4261%2024.2708%2027.076%2024.874ZM32.5267%2021.3192C32.4351%2020.7811%2032.2749%2020.2452%2032.042%2019.7238C30.5474%2016.3784%2026.6239%2014.8774%2023.2785%2016.3723C21.8874%2016.9935%2020.8164%2018.0355%2020.146%2019.2808C19.2044%2021.0302%2019.054%2023.1809%2019.927%2025.1353C21.4214%2028.4807%2025.3451%2029.9819%2028.6905%2028.4869C28.8794%2028.4025%2029.0619%2028.3098%2029.239%2028.2105C29.8918%2029.1646%2031.1558%2029.1714%2032.6069%2029.1714V22.8231C32.637%2022.3257%2032.6121%2021.8214%2032.5267%2021.3192Z'%20fill='white'/%3e%3cpath%20d='M14.0243%2022.1484C14.027%2022.12%2014.0295%2022.0916%2014.0332%2022.0631C14.0291%2022.0916%2014.027%2022.12%2014.0243%2022.1484Z'%20fill='white'/%3e%3cpath%20d='M17.8635%2024.8247C16.5392%2025.4828%2014.9329%2024.9418%2014.2748%2023.6177C14.0383%2023.1421%2013.9594%2022.6303%2014.0134%2022.1381C14.0162%2022.1096%2014.0182%2022.0811%2014.0223%2022.0527C14.1424%2021.2098%2014.661%2020.4373%2015.4816%2020.0296C16.806%2019.3722%2018.4123%2019.9125%2019.0699%2021.236C19.728%2022.5603%2019.1875%2024.1668%2017.8635%2024.8247ZM22.6142%2019.4756C21.9365%2018.1112%2020.8512%2017.0844%2019.5796%2016.4652C17.8332%2015.6153%2015.735%2015.5371%2013.8505%2016.4233V15.1085V14.3376V13.9917C13.8505%2011.8871%2012.1321%2010.1808%2010.0125%2010.1808V18.5605V19.8077V21.8704C10.0125%2022.0754%2010.0218%2022.2785%2010.0375%2022.4797C10.0444%2023.4559%2010.267%2024.4455%2010.7305%2025.3787C12.1064%2028.148%2015.1578%2029.5339%2018.049%2028.9189C18.5832%2028.8052%2019.1123%2028.6229%2
46019.6239%2028.369C22.9054%2026.7391%2024.2442%2022.7572%2022.6142%2019.4756Z'%20fill='white'/%3e%3cpath%20d='M23.4794%2022.5205L23.3081%2022.3592C23.3076%2022.3724%2023.3081%2022.3863%2023.3076%2022.3995C23.4168%2022.4768%2023.4794%2022.5205%2023.4794%2022.5205Z'%20fill='white'/%3e%3c/svg%3e",dT={class:"flex items-center justify-center h-full"},fT={class:"bg-white rounded-lg py-[60px] px-8 w-[1000px]"},hT={class:"flex gap-8 justify-center"},pT={class:"border border-grayBorder2 rounded-lg px-6 py-16 w-[250px] h-[300px] text-center flex flex-col items-center justify-between gap-8"},vT={class:"flex items-center gap-2 justify-center"},gT=["src"],mT={class:"border border-grayBorder2 rounded-lg px-6 py-16 w-[250px] h-[300px] text-center flex flex-col items-center justify-between gap-8"},yT={class:"flex items-center gap-2 justify-center"},bT=["src"],wT={class:"flex flex-col gap-4"},xT=be({__name:"PlatformSelect",setup(e){const t=kn();return(n,r)=>{var i,s;return R(),G("div",dT,[m("div",fT,[r[6]||(r[6]=m("p",{class:"text-secondary w-full text-center"},"Welcome!",-1)),r[7]||(r[7]=m("h1",{class:"text-center text-xxl font-semibold w-[500px] mx-auto mb-8"}," Access Your Collaboration Platform ",-1)),m("div",hT,[m("div",pT,[m("div",vT,[m("img",{src:$(Yl),class:"w-8"},null,8,gT),r[2]||(r[2]=m("strong",null,"Brand Alignment",-1))]),r[3]||(r[3]=m("div",{class:"text-xs text-grayText"}," Monitoring & Enforcement Portal ",-1)),U(De,{label:"Enter",color:"primary",onClick:r[0]||(r[0]=o=>$(Gs)("balab"))})]),m("div",mT,[m("div",yT,[m("img",{src:$(cT),class:"w-8"},null,8,bT),r[4]||(r[4]=m("strong",null,"Watch Tower",-1))]),r[5]||(r[5]=m("div",{class:"text-xs text-grayText"},"Distribution Security Portal",-1)),m("div",wT,[U(De,{disabled:!((s=(i=$(t).user)==null?void 0:i.platforms)!=null&&s.some(o=>o.id===$(ei).watchtower)),width:"full",label:"Enter",color:"primary",onClick:r[1]||(r[1]=()=>$(Gs)("watchtower"))},null,8,["disabled"])])])])])])}}}),_T={class:"fixed bottom-4 inset-x-0 z-[9999] flex justify-center px-4 pointer-events-none"},ET={class:"flex items-center gap-2 ml-4"},ST=be({__name:"Toast",props:{message:{},variant:{},onRetry:{type:Function}},setup(e){const t=e,n=z(!1),r=Z(()=>t.variant==="success"?"bg-success":t.variant==="error"?"bg-error":"bg-primary"),i=()=>{n.value=!0,setTimeout(()=>{n.value=!1},3e3)},s=()=>{n.value=!1};return ct(()=>{i()}),dn(()=>{n.value=!1}),(o,a)=>(R(),G("div",_T,[U(qm,{name:"toast"},{default:cn(()=>[n.value?(R(),G("div",{key:0,class:Se(["p-4 rounded shadow-lg flex items-center justify-between text-white will-change-transform pointer-events-auto",r.value])},[m("span",null,_e(e.message),1),m("div",ET,[e.onRetry?(R(),G("button",{key:0,type:"button",class:"cursor-pointer text-xs font-semibold underline underline-offset-2 opacity-90 hover:opacity-100",onClick:a[0]||(a[0]=()=>{e.onRetry(),s()})}," Retry ")):Ie("",!0),m("button",{type:"button",class:"cursor-pointer",onClick:s},[U($(he),{icon:"ic:round-close",width:"20",height:"20"})])])],2)):Ie("",!0)]),_:1})]))}}),Eo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},TT=Eo(ST,[["__scopeId","data-v-b9c029e3"]]);function Ue(e,t,n){const r=yh({render(){return Rr(TT,{message:e,variant:t,onRetry:n})}}),i=document.createElement("div");document.body.appendChild(i),r.mount(i),setTimeout(()=>{try{r.unmount(),i.parentNode===document.body&&document.body.removeChild(i)}catch{}},3e3)}const CT={id:"container"},AT={class:"bg-white h-full w-[700px] ml-auto rounded-lg flex items-center justify-center overflow-y-scroll"},IT={class:"w-[400px] h-[90%]"},kT={class:"flex gap-2"},OT=["src"],RT=["src"],PT={class:"border border-primary rounded-md px-4 py-[10px] mb-8"},NT=be({__name:"SignupDistributor",setup(e){const t=In(),n=z({email:"",pass:"",auth:""}),r=z(null),i=z(""),s=z(""),o=z(!1),a=z(null),l=Br();kn();const u=Z(()=>l.theme),c=Z(()=>u.value==="main"),d=()=>{n.value.pass="",n.value.auth="",i.value.length<6?n.value.pass="Password must be at least 6 characters long.":i.value!==s.value?n.value.pass="Passwords do not match.":a.value?(o.value=!0,_w(i.value,a.value).then(f=>{f&&f.success?(Ue("Account created successfully","success"),setTimeout(()=>{t.push("/login")},2e3)):f&&f.message?n.value.auth=f.message:n.value.auth="An error occurred creating the account"}).finally(()=>{o.value=!1})):n.value.auth="Invalid validation code, please contact support"};return ct(()=>{const f=Li(),h=new URLSearchParams(f.query);a.value=h.get("unique_code"),r.value=h.get("email")}),st([i,s],()=>{n.value.pass="",n.value.auth=""}),(f,h)=>(R(),G("div",CT,[m("div",AT,[m("div",IT,[m("div",kT,[c.value?(R(),G("img",{key:0,src:$(Yl),class:"w-[170px]"},null,8,OT)):(R(),G("img",{key:1,src:$(Rv),class:"w-[180px]"},null,8,RT))]),h[2]||(h[2]=m("h1",{class:"font-bold text-[30px] text-dark my-[30px]"},"Sign Up",-1)),h[3]||(h[3]=m("p",{class:"text-blackText font-medium mb-4"},"Distributor email",-1)),m("div",PT,_e(r.value),1),U(Lt,{label:"Create Password",placeholder:"Enter your password",type:"password",variant:n.value.pass||n.value.auth?"error":"primary",value:i.value,required:"",disabled:o.value,readonly:!1,onChange:h[0]||(h[0]=p=>i.value=p)},null,8,["variant","value","disabled"]),U(Lt,{label:"Re-enter Password",placeholder:"Enter your password",type:"password",variant:n.value.pass||n.value.auth?"error":"primary",value:s.value,message:n.value.pass||n.value.auth,required:"",disabled:o.value,readonly:!1,onChange:h[1]||(h[1]=p=>s.value=p),class:"mb-8"},null,8,["variant","value","message","disabled"]),U(De,{label:"Confirm",color:"primary",loading:o.value,onClick:d,disabled:n.value.email.length>0||n.value.pass.length>0,class:"w-full mb-4"},null,8,["loading","disabled"])])])]))}}),Pv=e=>/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(e),Bd=e=>!(e.length<8||!/[A-Z]/.test(e)||!/[!@#$%^&*()\-=_+[\]{}|;:'",.<>/?]/.test(e)||!/\d/.test(e)),LT={class:"min-h-screen w-full flex"},DT={class:"hidden lg:flex w-1/2 relative overflow-hidden",style:{backgroundColor:"#FC6301"}},MT={class:"relative z-10 w-full h-full flex flex-col"},UT={class:"flex-1 flex flex-col justify-center gap-[clamp(32px,6vh,80px)] pl-12 pr-10"},FT={class:"flex justify-end"},$T=["src"],jT={class:"flex-1 bg-white flex items-center justify-center"},BT={class:"w-full max-w-[560px] bg-white rounded-2xl px-8 py-10 overflow-y-auto"},VT="https://ba-brand-logos-transfer.s3.us-east-1.amazonaws.com/logoWhite.png",Xl=be({__name:"AuthSplitLayout",props:{leftImageUrl:{}},setup(e){return(t,n)=>(R(),G("div",LT,[m("div",DT,[m("div",MT,[m("div",{class:"pl-12 py-8"},[m("img",{src:VT,alt:"Brand Alignment",class:"w-full h-auto object-contain max-w-[150px]"})]),m("div",UT,[n[0]||(n[0]=m("div",{class:"flex flex-col gap-4"},[m("div",{class:"text-white text-5xl font-semibold leading-tight"},[yt(" Your brand. "),m("br"),yt("Aligned and protected. ")]),m("div",{class:"text-white text-2xl max-w-[520px] leading-[38px]"}," Monitor, protect, and enforce your brand across every marketplace - all from one place. ")],-1)),m("div",FT,[m("img",{src:e.leftImageUrl,alt:"Signup background",fetchpriority:"high",class:"w-[70%] max-w-[520px] h-[350px] object-contain pointer-events-none select-none"},null,8,$T)])])])]),m("div",jT,[m("div",BT,[_i(t.$slots,"default")])])]))}});async function qT(e){var t,n,r,i;try{return await it.post("/users/onboarding/account",JSON.stringify(e)),{success:!0,data:{emailSentTo:e.email}}}catch(s){return ye.isAxiosError(s)?{success:!1,message:((n=(t=s.response)==null?void 0:t.data)==null?void 0:n.message)||((i=(r=s.response)==null?void 0:r.data)==null?void 0:i.error)||s.message||"Request failed"}:{success:!1,message:"Request failed"}}}async function HT(e){var t,n,r,i;if(!e)return{success:!1,message:"Email is required"};try{const o=(await it.post("/users/onboarding/resend-verification-email")).data;return o!=null&&o.success?{success:!0,data:{emailSentTo:e}}:{success:!1,message:(o==null?void 0:o.message)||"Could not resend email"}}catch(s){return ye.isAxiosError(s)?{success:!1,message:((n=(t=s.response)==null?void 0:t.data)==null?void 0:n.message)||((i=(r=s.response)==null?void 0:r.data)==null?void 0:i.error)||s.message||"Could not resend email"}:{success:!1,message:"Could not resend email"}}}async function zT(e){var t;if(!e)return{success:!1,message:"Missing or invalid token"};try{const r=(await it.post(`/users/verify-email/${encodeURIComponent(e)}`,JSON.stringify({}))).data;return r!=null&&r.success?{success:!0,data:{message:r.message||"Email verified",token:r.token,expiration_date:r.expiration_date,user:r.user}}:{success:!1,message:(r==null?void 0:r.message)||"Email verification failed"}}catch(n){if(ye.isAxiosError(n)){const r=(t=n.response)==null?void 0:t.data;return{success:!1,message:(r==null?void 0:r.message)||n.message||"Email verification failed"}}return{success:!1,message:"Email verification failed"}}}const GT={key:0,class:"text-error text-sm mb-4"},KT={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},WT="https://ba-brand-logos-transfer.s3.us-east-1.amazonaws.com/signupHero.png",JT=be({__name:"Signup",setup(e){const t=In(),n=z(""),r=z(""),i=z(""),s=z(""),o=z(""),a=z(!1),l=z({});st([n,r,i,s,o],()=>{l.value={}});const u=f=>f.length<8?{ok:!1,message:"Password must be at least 8 characters long"}:/\d/.test(f)?/^[A-Za-z0-9!@#$%^&*()\-=_+\[\]{}|;:'",.<>/?]+$/.test(f)?{ok:!0,message:""}:{ok:!1,message:"Password contains prohibited characters"}:{ok:!1,message:"Password must contain at least 1 number"},c=()=>{const f={};n.value.trim()||(f.firstName="First name is required"),r.value.trim()||(f.lastName="Last name is required"),i.value.trim()||(f.brandName="Brand name is required"),s.value.trim()?Pv(s.value)||(f.email="Invalid email"):f.email="Email is required";const h=u(o.value);return h.ok||(f.password=h.message),l.value=f,Object.keys(f).length===0},d=async()=>
46{if(c()){a.value=!0;try{const f=await qT({first_name:n.value.trim(),last_name:r.value.trim(),email:s.value.trim(),password:o.value,brand_name:i.value.trim()});if(f.success){nT({email:s.value.trim(),firstName:n.value.trim(),lastName:r.value.trim(),brandName:i.value.trim()}),Ue("We sent you an email to confirm your account.","success"),t.push({path:"/onboarding/send-email",query:{email:f.data.emailSentTo}});return}l.value.form=f.message||"An error occurred while creating your account"}finally{a.value=!1}}};return(f,h)=>(R(),pe(Xl,{leftImageUrl:WT},{default:cn(()=>[m("form",{onSubmit:Pr(d,["prevent"]),novalidate:""},[h[5]||(h[5]=m("h1",{class:"font-bold text-[30px] text-dark mt-8"},"Create your account",-1)),h[6]||(h[6]=m("p",{class:"text-grayText text-sm mb-4"},"Get started with your brand protection journey.",-1)),l.value.form?(R(),G("div",GT,_e(l.value.form),1)):Ie("",!0),m("div",KT,[U(Lt,{label:"First name",placeholder:"John",type:"text",variant:l.value.firstName?"error":"primary",value:n.value,message:l.value.firstName,disabled:a.value,readonly:!1,onChange:h[0]||(h[0]=p=>n.value=p)},null,8,["variant","value","message","disabled"]),U(Lt,{label:"Last name",placeholder:"Smith",type:"text",variant:l.value.lastName?"error":"primary",value:r.value,message:l.value.lastName,disabled:a.value,readonly:!1,onChange:h[1]||(h[1]=p=>r.value=p)},null,8,["variant","value","message","disabled"])]),U(Lt,{label:"Brand name",placeholder:"My Brand",type:"text",variant:l.value.brandName?"error":"primary",value:i.value,message:l.value.brandName,disabled:a.value,readonly:!1,onChange:h[2]||(h[2]=p=>i.value=p),class:"mt-4"},null,8,["variant","value","message","disabled"]),U(Lt,{label:"Work Email",placeholder:"[email protected]",type:"email",variant:l.value.email?"error":"primary",value:s.value,message:l.value.email,disabled:a.value,readonly:!1,onChange:h[3]||(h[3]=p=>s.value=p),class:"mt-4"},null,8,["variant","value","message","disabled"]),U(Lt,{label:"Password",placeholder:"Create a password",type:"password",variant:l.value.password?"error":"primary",value:o.value,message:l.value.password,disabled:a.value,readonly:!1,onChange:h[4]||(h[4]=p=>o.value=p),class:"mt-4"},null,8,["variant","value","message","disabled"]),U(De,{label:"Continue",color:"primary",loading:a.value,onClick:d,class:"w-full mt-8",disabled:a.value},null,8,["loading","disabled"]),h[7]||(h[7]=m("button",{type:"submit",class:"hidden",tabindex:"-1","aria-hidden":"true"},null,-1)),h[8]||(h[8]=m("div",{class:"text-xs mt-4"},[m("a",{href:"/login",class:"text-primaryText hover:text-primary cursor-pointer transition duration-300"}," Back to sign in ")],-1))],32)]),_:1}))}}),YT={class:"flex justify-center mt-2"},XT={class:"font-bold text-[30px] text-dark my-8"},QT={class:"break-all"},ZT={class:"text-grayPrimary flex flex-col gap-3"},eC="https://ba-brand-logos-transfer.s3.us-east-1.amazonaws.com/signupHero.png",tC=30,nC=be({__name:"SignupCheckEmail",setup(e){const t=Li(),n=z(""),r=z(!1),i=z(0);let s;const o=Z(()=>i.value>0?`Resend email (${i.value})`:"Resend email"),a=Z(()=>r.value||!n.value||i.value>0);ct(()=>{const c=t.query.email,d=Array.isArray(c)?c[0]:c;n.value=typeof d=="string"?d:"",l()}),dn(()=>{s&&(window.clearInterval(s),s=void 0)});const l=()=>{s&&(window.clearInterval(s),s=void 0),i.value=tC,s=window.setInterval(()=>{i.value=Math.max(0,i.value-1),i.value===0&&s&&(window.clearInterval(s),s=void 0)},1e3)},u=async()=>{if(n.value&&!(i.value>0)){l(),r.value=!0;try{const c=await HT(n.value);c.success?Ue("Email resent.","success"):Ue(c.message||"Could not resend email.","error")}finally{r.value=!1}}};return(c,d)=>(R(),pe(Xl,{leftImageUrl:eC},{default:cn(()=>[m("form",{onSubmit:Pr(u,["prevent"]),novalidate:""},[m("div",YT,[U($(he),{icon:"lucide:check-circle",width:"80",height:"80",class:"text-success"})]),m("h1",XT,[d[0]||(d[0]=yt("We've sent a verification link to ",-1)),m("span",QT,_e(n.value),1)]),m("div",ZT,[d[1]||(d[1]=m("div",{class:"text-sm text-grayText"},[m("p",null,"Click the link in the email to verify your account. If you don't see it, check your spam folder."),m("p",{class:"mt-2"},"You can verify your email later, but some features may be limited.")],-1)),d[2]||(d[2]=m("div",{class:"text-sm text-grayText"},[m("p",null,"Didn't receive the email? ")],-1)),U(De,{label:o.value,color:"primary",class:"w-full mt-8",disabled:a.value,onClick:u},null,8,["label","disabled"]),d[3]||(d[3]=m("button",{type:"submit",class:"hidden",tabindex:"-1","aria-hidden":"true"},null,-1)),d[4]||(d[4]=m("div",{class:"mt-4"},[m("div",null,[m("a",{href:"/login",class:"text-primaryText hover:text-primary curs
46or-pointer transition duration-300 text-xs"}," Back to sign in ")])],-1))])],32)]),_:1}))}}),rC={key:0,class:"flex flex-col items-center text-center"},iC={class:"flex justify-center"},sC={key:1},oC={class:"flex justify-center"},aC={key:0,class:"text-center font-bold text-[30px] text-dark my-8"},lC={key:1,class:"text-center font-bold text-[30px] text-dark my-8"},uC={class:"flex flex-col items-center text-center gap-4"},cC={class:"text-base text-grayPrimary"},dC={key:0,class:"text-sm text-grayText"},fC={key:1,class:"text-sm text-grayText"},hC="https://ba-brand-logos-transfer.s3.us-east-1.amazonaws.com/signupHero.png",pC=be({__name:"SignupConfirmEmail",setup(e){const t=Li(),n=In(),r=kn(),i=z(!0),s=z(!1),o=z(""),a=z(3);let l;const u=z(4);let c;return dn(()=>{l&&window.clearInterval(l),l=void 0,c&&window.clearInterval(c),c=void 0}),ct(async()=>{const d=t.query.confirmation_code??t.query.token??t.query.code??t.query.t,f=Array.isArray(d)?d[0]:d,h=typeof f=="string"?f:"";try{const p=await zT(h);if(p.success){if(s.value=!0,o.value=p.data.message||"Welcome aboard! your account is now active and ready to go.",p.data.token&&p.data.user){if(xp(p.data.token),!Tr()){s.value=!1,o.value="Authentication token error. Please try again.",u.value=4,c&&window.clearInterval(c),c=window.setInterval(()=>{u.value=Math.max(0,u.value-1),!(u.value>0)&&(c&&window.clearInterval(c),c=void 0,n.push("/login"))},1e3);return}Rl(p.data.user),r.token=p.data.token,r.user=p.data.user}p.data.expiration_date&&window.localStorage.setItem("auth_expiration_date",p.data.expiration_date),a.value=3,l&&window.clearInterval(l),l=window.setInterval(async()=>{if(a.value=Math.max(0,a.value-1),a.value>0)return;l&&window.clearInterval(l),l=void 0;const v=p.data.user||r.user;if(!v)return n.push("/login");(await _o({user:v})).ok||n.push("/login")},1e3)}else s.value=!1,o.value=p.message||"We couldn't confirm your email. Please try again.",u.value=4,c&&window.clearInterval(c),c=window.setInterval(()=>{u.value=Math.max(0,u.value-1),!(u.value>0)&&(c&&window.clearInterval(c),c=void 0,n.push("/login"))},1e3)}finally{i.value=!1}}),(d,f)=>(R(),pe(Xl,{leftImageUrl:hC},{default:cn(()=>[i.value?(R(),G("div",rC,[m("div",iC,[U($(he),{icon:"lucide:loader-2",width:"64",height:"64",class:"text-grayText animate-spin"})]),f[0]||(f[0]=m("h1",{class:"text-center font-bold text-[30px] text-dark my-8"}," Verifying your email... ",-1)),f[1]||(f[1]=m("div",{class:"text-center text-grayPrimary"},"Please wait.",-1))])):(R(),G("div",sC,[m("div",oC,[s.value?(R(),pe($(he),{key:0,icon:"lucide:check-circle",width:"80",height:"80",class:"text-success"})):(R(),pe($(he),{key:1,icon:"lucide:alert-triangle",width:"80",height:"80",class:"text-error"}))]),s.value?(R(),G("h1",aC," Email confirmed! ")):(R(),G("h1",lC," Failed to confirm email ")),m("div",uC,[m("p",cC,_e(o.value),1),s.value?(R(),G("div",dC," Redirecting you in "+_e(a.value)+" seconds... ",1)):(R(),G("div",fC," Redirecting you to sign in in "+_e(u.value)+" seconds... ",1))])]))]),_:1}))}}),vC={class:"min-h-screen w-full relative overflow-hidden bg-white flex flex-col"},gC={class:"relative z-20 w-full bg-white border-b border-grayBorder2"},mC={class:"h-16 px-8 flex items-center justify-between"},yC={class:"flex items-center gap-2"},bC=["src"],wC=["src"],xC={key:2,class:"text-xs font-semibold text-dark"},_C={class:"flex flex-col items-start leading-tight"},EC={class:"text-sm font-semibold text-dark"},SC={class:"text-xs text-grayText"},TC={key:0,class:"absolute right-0 mt-2 w-[220px] rounded-xl border border-grayBorder2 bg-white shadow-lg overflow-hidden z-[60]"},CC={class:"relative z-10 flex-1 px-8 py-10 flex flex-col items-center justify-center"},AC={key:0,class:"text-3xl font-bold text-dark mb-6"},IC={key:0,class:"px-10 pt-8 flex items-start justify-end"},kC={class:"flex flex-col items-end gap-2"},OC={class:"text-xs font-semibold text-grayText"},RC={class:"w-[160px] h-[3px] rounded-full overflow-hidden bg-grayBorder2"},PC={key:0,class:"flex-1 flex flex-col min-h-0"},NC={key:1},Wi=be({__name:"FirstLoginSetupShell",props:{currentStep:{default:1},totalSteps:{default:9},showWelcomeTitle:{type:Boolean,default:!0},showStepIndicator:{type:Boolean,default:!0},containerVariant:{default:"stepper"}},setup(e){const t=e,n=kn(),r=Z(()=>{var p;return((p=n.user)==null?void 0:p.email)||""}),i=Z(()=>r.value||"Not defined"),s=Z(()=>{var y,b;const p=((y=n.user)==null?void 0:y.first_name)||"",v=((b=n.user)==null?void 0:b.last_name)||"";return`${p} ${v}`.trim()||"Not defined"}),o=Z(()=>{var p,v;return((p=n.user)==null?void 0:p.image_url)||((v=n.user)==null?void 0:v.avatar_url)||""}),a=Z(()=>{var w,x;const p=(((w=n.user)==null?void 0:w.first_name)||"").toString().trim(),v=(((x=n.user)==null?void 0:x.last_name)||"").toString().trim(),g=p?p[0]:"",y=v?v[0]:"";return`${g}${y}`.toUpperCase()||(r.value?r.value[0].toUpperCase():"")}),l=z(!1),u=z(null),c=p=>{if(!l.value)return;const v=u.value,g=p.target;v&&g&&v.contains(g)||(l.value=!1)};ct(()=>{document.addEventListener("mousedown",c)}),dn(()=>{document.removeEventListener("mousedown",c)});const d=Z(()=>{const p=Math.max(1,t.totalSteps),v=Math.min(Math.max(1,t.currentStep),p);return Math.round(v/p*100)}),f=Z(()=>t.containerVariant==="narrow"?"bg-white rounded-2xl shadow-sm border border-grayBorder2 w-[560px] max-w-[calc(100vw-64px)] flex flex-col":"bg-white rounded-2xl shadow-sm border border-grayBorder2 w-[1000px] min-h-[600px] max-w-[calc(100vw-64px)] flex flex-col"),h=Z(()=>t.containerVariant==="narrow"?"px-10 py-10":"px-10 pb-10 pt-6 flex-1 flex flex-col min-h-[520px]");return(p,v)=>(R(),G("div",vC,[v[3]||(v[3]=m("div",{class:"pointer-events-none absolute inset-0"},[m("div",{class:"absolute -left-[320px] -bottom-[320px] w-[900px] h-[900px] rounded-full opacity-60 blur-[509px]",style:{background:"#2D68F8"}}),m("div",{class:"absolute -right-[340px] -top-[340px] w-[980px] h-[980px] rounded-full opacity-55 blur-[547px]",style:{background:"#FF4318"}})],-1)),m("header",gC,[m("div",mC,[m("div",yC,[m("img",{src:$(Yl),alt:"Brand Alignment",class:"h-6 w-auto"},null,8,bC),v[2]||(v[2]=m("span",{class:"font-semibold text-sm text-dark"},"Brand Alignment",-1))]),m("div",{ref_key:"menuRoot",ref:u,class:"relative"},[m("button",{type:"button",class:"flex items-center gap-3 rounded-lg px-2 py-1",onClick:v[0]||(v[0]=g=>l.value=!l.value)},[m("div",{class:Se(["w-9 h-9 rounded-full overflow-hidden border border-grayBorder2 flex items-center justify-center shrink-0",r.value?"bg-grayHover":""]),style:Vn(r.value?void 0:"background: #2D68F8; border-color: rgba(45, 104, 248, 0.35);")},[o.value?(R(),G("img",{key:0,src:o.value,alt:"User avatar",class:"w-full h-full object-cover"},null,8,wC)):r.value?(R(),G("span",xC,_e(a.value),1)):(R(),pe($(he),{key:1,icon:"lucide:user",width:"18",height:"18",class:"text-white"}))],6),m("div",_C,[m("div",EC,_e(s.value),1),m("div",SC,_e(i.value),1)]),U($(he),{icon:"lucide:chevron-down",width:"18",height:"18",class:"text-grayText"})]),l.value?(R(),G("div",TC,[m("button",{type:"button",class:"w-full text-left px-4 py-3 text-sm text-dark cursor-pointer hover:bg-grayHover transition",onClick:v[1]||(v[1]=g=>{l.value=!1,$(n).logout()})}," Log out ")])):Ie("",!0)],512)])]),m("main",CC,[e.showWelcomeTitle?(R(),G("h1",AC," Welcome to Brand Alignment ")):Ie("",!0),m("section",{class:Se(f.value)},[e.showStepIndicator?(R(),G("div",IC,[m("div",kC,[m("div",OC," Step "+_e(e.currentStep)+"/"+_e(e.totalSteps),1),m("div",RC,[m("div",{class:"h-full rounded-full",style:Vn([{background:"#FC6301"},{width:d.value+"%"}])},null,4)])])])):Ie("",!0),m("div",{class:Se(h.value)},[e.containerVariant==="stepper"?(R(),G("div",PC,[_i(p.$slots,"default")])):(R(),G("div",NC,[_i(p.$slots,"default")]))],2)],2)
46])]))}}),sa="first_login_setup_v1",Vd=()=>({industry:null,industryOtherEnabled:!1,industryOtherText:"",skuRange:null,selectedCountryIds:[],customCountries:[],selectedMarketplaceIds:[],hasSellerAuthorizationPolicy:null,authorizedSellerRange:null,hasMapPolicy:void 0,selectedConcernIds:[],concernsOtherEnabled:!1,concernsOtherText:"",startedOnboardingSteps:[],postOnboardingChoice:null}),fn=Di("first-login-setup",()=>{const e=z(null),t=z(!1),n=z(""),r=z(null),i=z([]),s=z([]),o=z([]),a=z(null),l=z(null),u=z(void 0),c=z([]),d=z(!1),f=z(""),h=z([]),p=z(null),v=()=>{try{const b=window.localStorage.getItem(sa);if(!b)return;const w=JSON.parse(b),x={...Vd(),...w};e.value=typeof x.industry=="number"?x.industry:x.industry?Number.parseInt(String(x.industry),10):null,t.value=x.industryOtherEnabled,n.value=x.industryOtherText,r.value=x.skuRange,i.value=Array.isArray(x.selectedCountryIds)?x.selectedCountryIds.map(E=>typeof E=="number"?E:Number.parseInt(String(E),10)).filter(E=>Number.isFinite(E)):[],s.value=Array.isArray(x.customCountries)?x.customCountries.map(E=>({id:typeof(E==null?void 0:E.id)=="number"?E.id:Number.parseInt(String(E==null?void 0:E.id),10),name:String((E==null?void 0:E.name)||""),iso2:E!=null&&E.iso2?String(E.iso2):void 0,isCustom:!!(E!=null&&E.isCustom)})).filter(E=>Number.isFinite(E.id)&&E.name.trim().length>0):[],o.value=Array.isArray(x.selectedMarketplaceIds)?x.selectedMarketplaceIds:[],a.value=typeof x.hasSellerAuthorizationPolicy=="boolean"?x.hasSellerAuthorizationPolicy:null,l.value=x.authorizedSellerRange===1||x.authorizedSellerRange===5||x.authorizedSellerRange===10||x.authorizedSellerRange===11?x.authorizedSellerRange:null,u.value=x.hasMapPolicy==="strict"||x.hasMapPolicy==="not_enforcing"?x.hasMapPolicy:x.hasMapPolicy===null?null:void 0,c.value=Array.isArray(x.selectedConcernIds)?x.selectedConcernIds:[],d.value=!!x.concernsOtherEnabled,f.value=String(x.concernsOtherText||""),h.value=Array.isArray(x.startedOnboardingSteps)?x.startedOnboardingSteps:[],p.value=x.postOnboardingChoice==="upload_products"||x.postOnboardingChoice==="sample_data"?x.postOnboardingChoice:null}catch{}},g=()=>{const b={industry:e.value,industryOtherEnabled:t.value,industryOtherText:n.value,skuRange:r.value,selectedCountryIds:i.value,customCountries:s.value,selectedMarketplaceIds:o.value,hasSellerAuthorizationPolicy:a.value,authorizedSellerRange:l.value,hasMapPolicy:u.value,selectedConcernIds:c.value,concernsOtherEnabled:d.value,concernsOtherText:f.value,startedOnboardingSteps:h.value,postOnboardingChoice:p.value};window.localStorage.setItem(sa,JSON.stringify(b))};return st([e,t,n,r,i,s,o,a,l,u,c,d,f,h,p],()=>{typeof window>"u"||g()}),{industry:e,industryOtherEnabled:t,industryOtherText:n,skuRange:r,selectedCountryIds:i,customCountries:s,selectedMarketplaceIds:o,hasSellerAuthorizationPolicy:a,authorizedSellerRange:l,hasMapPolicy:u,selectedConcernIds:c,concernsOtherEnabled:d,concernsOtherText:f,startedOnboardingSteps:h,postOnboardingChoice:p,hydrate:v,reset:()=>{const b=Vd();e.value=b.industry,t.value=b.industryOtherEnabled,n.value=b.industryOtherText,r.value=b.skuRange,i.value=b.selectedCountryIds,s.value=b.customCountries,o.value=b.selectedMarketplaceIds,a.value=b.hasSellerAuthorizationPolicy,l.value=b.authorizedSellerRange,u.value=b.hasMapPolicy,c.value=b.selectedConcernIds,d.value=b.concernsOtherEnabled,f.value=b.concernsOtherText,h.value=b.startedOnboardingSteps,p.value=b.postOnboardingChoice;try{window.localStorage.removeItem(sa)}catch{}}}}),LC={key:0,class:"absolute z-30 mt-2 w-full rounded-lg border border-grayBorder2 bg-white shadow-lg overflow-hidden max-h-[200px] overflow-y-auto"},DC=["onClick"],MC=be({__name:"SelectDropdown",props:{modelValue:{},options:{},placeholder:{default:"Select an option"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=z(!1),s=z(null),o=Z(()=>{const c=n.options.find(d=>d.value===n.modelValue);return(c==null?void 0:c.label)||""}),a=()=>{n.disabled||(i.value=!i.value)},l=c=>{r("update:modelValue",c),i.value=!1},u=c=>{const d=c.target;d&&s.value&&(s.value.contains(d)||(i.value=!1))};return ct(()=>{document.addEventListener("mousedown",u)}),dn(()=>{document.removeEventListener("mousedown",u)}),(c,d)=>(R(),G("div",{ref_key:"rootEl",ref:s,class:"relative w-full"},[m("button",{type:"button",class:Se(["w-full h-12 rounded-lg border bg-white px-4 pr-10 text-sm text-left flex items-center justify-between transition focus:outline-none",e.disabled?"border-grayBorder2 text-grayText cursor-not-allowed":"border-grayBorder2 text-dark cursor-pointer"]),onClick:a},[m("span",{class:Se(o.value?"text-dark":"text-grayText")},_e(o.value||e.placeholder),3),U($(he),{icon:"lucide:chevron-down",class:"absolute right-3 top-1/2 -translate-y-1/2 text-grayText pointer-events-none",width:"18",height:"18"})],2),i.value?(R(),G("div",LC,[(R(!0),G(qe,null,qt(e.options,f=>(R(),G("button",{key:f.value,type:"button",class:Se(["w-full px-4 py-3 text-sm text-left hover:bg-grayHover transition",f.value===e.modelValue?"bg-orangeTertiary text-dark":"text-primaryText"]),onClick:h=>l(f.value)},_e(f.label),11,DC))),128))])):Ie("",!0)],512))}}),UC={class:"flex-1 flex flex-col justify-between min-h-0"},FC={class:"flex-1 overflow-auto pr-1"},$C={class:"mt-8"},jC={key:0,class:"w-full max-w-[560px] flex items-center gap-3 text-sm text-error"},BC={key:1,class:"w-full max-w-[560px]"},VC={class:"mt-4"},qC={class:"inline-flex items-center justify-center w-5 h-5 rounded-full border border-[#FC6301]"},HC={key:2,class:"mt-4 w-full max-w-[560px]"},zC={class:"shrink-0 pt-10 flex justify-end"},GC=be({__name:"OnboardingStepOne",props:{submitting:{type:Boolean}},emits:["continue"],setup(e,{emit:t}){const n=t,r=fn(),i=z([]),s=z(!1),o=z(!1),a=async()=>{s.value=!0,o.value=!1;try{const d=await $1();if(!d.success){o.value=!0;return}i.value=d.data.map(f=>({label:f.name,value:f.id}))}finally{s.value=!1}};ct(a);const l=Z({get:()=>r.industry,set:d=>{r.industry=d,d&&(r.industryOtherEnabled=!1,r.industryOtherText="")}}),u=Z(()=>r.industryOtherEnabled?r.industryOtherText.trim().length>0:!!r.industry),c=()=>{const d=r.industryOtherEnabled;r.industryOtherEnabled=!0,r.industry=null,d||(r.industryOtherText="")};return(d,f)=>(R(),G("div",UC,[m("div",FC,[f[6]||(f[6]=m("h2",{class:"text-3xl font-bold text-dark"},"What industry are you in?",-1)),f[7]||(f[7]=m("p",{class:"text-sm text-grayText mt-2"}," This helps us tailor your brand protection experience. ",-1)),m("div",$C,[f[5]||(f[5]=m("div",{class:"text-xs font-semibold text-primaryText mb-2"},"Industry",-1)),o.value?(R(),G("div",jC,[f[3]||(f[3]=m("span",null,"Could not load industry types.",-1)),m("button",{type:"button",class:"underline underline-offset-2 font-semibold hover:opacity-80",onClick:a}," Retry ")])):(R(),G("div",BC,[U(MC,{modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=h=>l.value=h),options:i.value,placeholder:s.value?"Loading industries...":"Select an industry",disabled:s.value},null,8,["modelValue","options","placeholder","disabled"])])),m("div",VC,[m("button",{type:"button",class:"inline-flex items-center gap-2 rounded-full border border-[#FC6301] px-4 py-2 text-sm font-semibold text-[#FC6301] hover:bg-[#FC6301]/10 transition",onClick:c},[m("span",qC,[U($(he),{icon:"lucide:plus",width:"14",height:"14"})]),f[4]||(f[4]=yt(" Add other ",-1))])]),$(r).industryOtherEnabled?(R(),G("div",HC,[yr(m("input",{"onUpdate:modelValue":f[1]||(f[1]=h=>$(r).industryOtherText=h),type:"text",placeholder:"Enter your industry",class:"duration-300 w-full mb-2 mt-4 rounded-md border py-2 px-4 text-blackText outline-none transition border-blueLight focus:border-primary"},null,512),[[br,$(r).industryOtherText]])])):Ie("",!0)])]),m("div",zC,[U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!u.value||e.submitting,loading:e.submitting,onClick:f[2]||(f[2]=h=>
46n("continue"))},null,8,["disabled","loading"])])]))}}),KC={key:0,class:"w-2.5 h-2.5 rounded-full bg-orangeSelectedBorder"},WC={class:"h-full w-full flex flex-col items-center justify-center gap-1"},JC={key:0,class:"text-xs text-grayText text-center"},_n=be({__name:"SelectableCardOption",props:{modelValue:{},value:{},title:{},subtitle:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Z(()=>n.modelValue===n.value),s=()=>r("update:modelValue",n.value);return(o,a)=>(R(),G("button",{type:"button",class:Se(["relative w-[128px] h-[92px] rounded-lg border transition-colors text-left px-4 py-3",i.value?"border-orangeSelectedBorder bg-orangeSelectedBorder/10":"border-grayBorder2 bg-white hover:bg-grayHover"]),onClick:s},[m("span",{class:Se(["absolute top-3 left-3 w-4 h-4 rounded-full border flex items-center justify-center",i.value?"border-orangeSelectedBorder":"border-grayBorder"])},[i.value?(R(),G("span",KC)):Ie("",!0)],2),m("div",WC,[m("div",{class:Se(["text-sm font-semibold text-center",i.value?"text-orangeText":"text-primaryText"])},_e(e.title),3),e.subtitle?(R(),G("div",JC,_e(e.subtitle),1)):Ie("",!0)])],2))}}),YC={class:"flex-1 flex flex-col justify-between min-h-0"},XC={class:"flex-1 overflow-auto pr-1"},QC={class:"mt-8 flex flex-wrap gap-3"},ZC={class:"shrink-0 pt-10 flex items-center justify-between"},eA=be({__name:"OnboardingStepTwo",props:{submitting:{type:Boolean}},emits:["continue","back"],setup(e,{emit:t}){const n=t,r=fn(),i=Z(()=>!!r.skuRange);return(s,o)=>(R(),G("div",YC,[m("div",XC,[o[7]||(o[7]=m("h2",{class:"text-3xl font-bold text-dark"},"How many SKUs do you monitor?",-1)),o[8]||(o[8]=m("p",{class:"text-sm text-grayText mt-2"}," This helps us tailor your dashboard and demo experience. ",-1)),m("div",QC,[U(_n,{modelValue:$(r).skuRange,"onUpdate:modelValue":o[0]||(o[0]=a=>$(r).skuRange=a),value:"1-50",title:"1-50",subtitle:"SKUs"},null,8,["modelValue"]),U(_n,{modelValue:$(r).skuRange,"onUpdate:modelValue":o[1]||(o[1]=a=>$(r).skuRange=a),value:"51-200",title:"51-200",subtitle:"SKUs"},null,8,["modelValue"]),U(_n,{modelValue:$(r).skuRange,"onUpdate:modelValue":o[2]||(o[2]=a=>$(r).skuRange=a),value:"201-500",title:"201-500",subtitle:"SKUs"},null,8,["modelValue"]),U(_n,{modelValue:$(r).skuRange,"onUpdate:modelValue":o[3]||(o[3]=a=>$(r).skuRange=a),value:"501-1000",title:"501-1000",subtitle:"SKUs"},null,8,["modelValue"]),U(_n,{modelValue:$(r).skuRange,"onUpdate:modelValue":o[4]||(o[4]=a=>$(r).skuRange=a),value:"1000+",title:"1000+",subtitle:"SKUs"},null,8,["modelValue"])])]),m("div",ZC,[U(De,{label:"Back",color:"primary",variant:"outline",class:"w-[140px]",onClick:o[5]||(o[5]=a=>n("back"))}),U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!i.value||e.submitting,loading:e.submitting,onClick:o[6]||(o[6]=a=>n("continue"))},null,8,["disabled","loading"])])]))}}),tA={key:0,class:"text-base leading-none"},nA={class:"whitespace-nowrap"},ls=be({__name:"CountryPill",props:{label:{},flag:{},selected:{type:Boolean,default:!1}},setup(e){const t=e,n=Z(()=>t.selected?"border-orangeSelectedBorder bg-orangeTertiary text-orangeText":"border-grayBorder2 bg-white text-primaryText hover:bg-grayHover");return(r,i)=>(R(),G("button",{type:"button",class:Se(["inline-flex items-center gap-2 px-4 py-2 rounded-full border text-sm transition-colors",n.value])},[e.flag?(R(),G("span",tA,_e(e.flag),1)):Ie("",!0),m("span",nA,_e(e.label),1)],2))}}),Xa=[{id:12,name:"United States",iso2:"US",region:"AMERICAS"},{id:8,name:"Canada",iso2:"CA",region:"AMERICAS"},{id:9,name:"Mexico",iso2:"MX",region:"AMERICAS"},{id:18,name:"Brazil",iso2:"BR",region:"AMERICAS"},{id:2,name:"United Kingdom",iso2:"GB",region:"EUROPE"},{id:3,name:"Germany",iso2:"DE",region:"EUROPE"},{id:10,name:"France",iso2:"FR",region:"EUROPE"},{id:17,name:"Italy",iso2:"IT",region:"EUROPE"},{id:11,name:"Spain",iso2:"ES",region:"EUROPE"},{id:14,name:"Netherlands",iso2:"NL",region:"EUROPE"},{id:15,name:"Sweden",iso2:"SE",region:"EUROPE"},{id:13,name:"Poland",iso2:"PL",region:"EUROPE"},{id:39,name:"Belgium",iso2:"BE",region:"EUROPE"},{id:170,name:"Switzerland",iso2:"CH",region:"EUROPE"},{id:33,name:"Austria",iso2:"AT",region:"EUROPE"},{id:7,name:"Australia",iso2:"AU",region:"ASIA-PACIFIC & MIDDLE EAST"},{id:4,name:"Japan",iso2:"JP",region:"ASIA-PACIFIC & MIDDLE EAST"},{id:6,name:"China",iso2:"CN",region:"ASIA-PACIFIC & MIDDLE EAST"},{id:5,name:"India",iso2:"IN",region:"ASIA-PACIFIC & MIDDLE EAST"},{id:1,name:"UAE",iso2:"AE",region:"ASIA-PACIFIC & MIDDLE EAST"}],rA=new Set(Xa.filter(e=>e.region==="ASIA-PACIFIC & MIDDLE EAST").map(e=>e.id)),qd=[{name:"Argentina",iso2:"AR"},{name:"Chile",iso2:"CL"}
46,{name:"Colombia",iso2:"CO"},{name:"Peru",iso2:"PE"},{name:"Venezuela",iso2:"VE"},{name:"Ecuador",iso2:"EC"},{name:"Bolivia",iso2:"BO"},{name:"Paraguay",iso2:"PY"},{name:"Uruguay",iso2:"UY"},{name:"Costa Rica",iso2:"CR"},{name:"Panama",iso2:"PA"},{name:"Dominican Republic",iso2:"DO"},{name:"Guatemala",iso2:"GT"},{name:"Honduras",iso2:"HN"},{name:"El Salvador",iso2:"SV"},{name:"Nicaragua",iso2:"NI"},{name:"Cuba",iso2:"CU"},{name:"Puerto Rico",iso2:"PR"},{name:"Jamaica",iso2:"JM"},{name:"Portugal",iso2:"PT"},{name:"Denmark",iso2:"DK"},{name:"Norway",iso2:"NO"},{name:"Finland",iso2:"FI"},{name:"Greece",iso2:"GR"},{name:"Czech Republic",iso2:"CZ"},{name:"Romania",iso2:"RO"},{name:"Hungary",iso2:"HU"},{name:"Slovakia",iso2:"SK"},{name:"Bulgaria",iso2:"BG"},{name:"Croatia",iso2:"HR"},{name:"Serbia",iso2:"RS"},{name:"Ukraine",iso2:"UA"},{name:"Russia",iso2:"RU"},{name:"Turkey",iso2:"TR"},{name:"Ireland",iso2:"IE"},{name:"Luxembourg",iso2:"LU"},{name:"Iceland",iso2:"IS"},{name:"Estonia",iso2:"EE"},{name:"Latvia",iso2:"LV"},{name:"Lithuania",iso2:"LT"},{name:"Slovenia",iso2:"SI"},{name:"Cyprus",iso2:"CY"},{name:"Malta",iso2:"MT"},{name:"South Korea",iso2:"KR"},{name:"Singapore",iso2:"SG"},{name:"Thailand",iso2:"TH"},{name:"Indonesia",iso2:"ID"},{name:"Malaysia",iso2:"MY"},{name:"Vietnam",iso2:"VN"},{name:"Philippines",iso2:"PH"},{name:"Taiwan",iso2:"TW"},{name:"New Zealand",iso2:"NZ"},{name:"Pakistan",iso2:"PK"},{name:"Bangladesh",iso2:"BD"},{name:"Sri Lanka",iso2:"LK"},{name:"Nepal",iso2:"NP"},{name:"Saudi Arabia",iso2:"SA"},{name:"Israel",iso2:"IL"},{name:"Jordan",iso2:"JO"},{name:"Qatar",iso2:"QA"},{name:"Kuwait",iso2:"KW"},{name:"Oman",iso2:"OM"},{name:"Bahrain",iso2:"BH"},{name:"Iraq",iso2:"IQ"},{name:"Kazakhstan",iso2:"KZ"},{name:"South Africa",iso2:"ZA"},{name:"Nigeria",iso2:"NG"},{name:"Kenya",iso2:"KE"},{name:"Morocco",iso2:"MA"},{name:"Egypt",iso2:"EG"},{name:"Ghana",iso2:"GH"},{name:"Ethiopia",iso2:"ET"},{name:"Tanzania",iso2:"TZ"},{name:"Senegal",iso2:"SN"}],mn="https://ba-brand-logos-transfer.s3.us-east-1.amazonaws.com",Qa=[{id:"amazon",label:"Amazon",logoUrl:`${mn}/amazon_logo.png`},{id:"walmart",label:"Walmart",logoUrl:`${mn}/walmart_logo.png`},{id:"ebay",label:"eBay",logoUrl:`${mn}/ebay_logo.png`},{id:"target",label:"Target",logoUrl:`${mn}/target_logo.png`},{id:"shopify",label:"Shopify Stores",logoUrl:`${mn}/shopify_logo.png`},{id:"independent",label:"Independent Websites",logoUrl:`${mn}/iw_logo.png`},{id:"tmall",label:"Tmall",logoUrl:`${mn}/tmall_logo.png`},{id:"alibaba",label:"Alibaba",logoUrl:`${mn}/alibaba_logo.png`},{id:"aliexpress",label:"Aliexpress",logoUrl:`${mn}/aliexpress_logo.png`}],Hd=["tmall","alibaba","aliexpress"],iA=Object.fromEntries(Qa.map(e=>[e.id,e.label])),zd=[{id:"map_violations",label:"MAP Violations"},{id:"unauthorized_sellers",label:"Unauthorized Sellers"},{id:"data_monitoring",label:"Data Monitoring"},{id:"buy_box_suppressions",label:"Buy Box Suppressions"},{id:"buy_box_loss",label:"Buy Box Loss"},{id:"ip_enforcement",label:"IP Enforcement"}],sA={class:"flex-1 flex flex-col justify-between min-h-0"},oA={class:"flex-1 overflow-auto pr-1"},aA={class:"mt-8 space-y-6"},lA={class:"flex flex-wrap gap-3"},uA={class:"flex flex-wrap gap-3"},cA={class:"flex flex-wrap gap-3"},dA={class:"flex flex-wrap gap-3"},fA={class:"inline-flex items-center justify-center w-5 h-5 rounded-full border border-orangeSecondary"},hA={class:"shrink-0 pt-10 flex items-center justify-between"},pA={class:"w-[560px] max-w-[calc(100vw-48px)] bg-white rounded-2xl shadow-xl border border-grayBorder2 flex flex-col"},vA={class:"px-6 pb-3"},gA={class:"relative"},mA={class:"overflow-auto px-6 max-h-[320px]"},yA=["onClick"],bA={class:"flex items-center gap-3"},wA={class:"text-xl leading-none"},xA={class:"text-sm text-dark"},_A={key:0,class:"py-8 text-center text-sm text-grayText"},EA={class:"px-6 py-5 flex justify-end"},SA=["disabled"],TA=be({__name:"OnboardingStepThree",props:{submitting:{type:Boolean}},emits:["continue","back"],setup(e,{emit:t}){const n=t,r=fn(),i=w=>Xa.filter(x=>x.region===w),s=z(!1),o=z(""),a=z(new Set),l=Z(()=>new Set(r.selectedCountryIds)),u=w=>l.value.has(w),c=Z(()=>new Set(r.customCountries.map(w=>w.name.toLowerCase()))),d=Z(()=>{const w=o.value.trim().toLowerCase();return qd.filter(x=>c.value.has(x.name.toLowerCase())?!1:!w||x.name.toLowerCase().includes(w))}),f=w=>{const x=new Set(r.selectedCountryIds);x.has(w)?x.delete(w):x.add(w),r.selectedCountryIds=Array.from(x)},h=w=>{if(!w||w.length!==2)return"🌐";const x=w.toUpperCase(),E=127462,C=65;
46return String.fromCodePoint(E+x.charCodeAt(0)-C,E+x.charCodeAt(1)-C)},p=w=>{const x=new Set(a.value);x.has(w)?x.delete(w):x.add(w),a.value=x},v=()=>{o.value="",a.value=new Set,s.value=!0},g=()=>{s.value=!1,o.value="",a.value=new Set},y=()=>{if(a.value.size===0)return;let w=Math.min(0,...r.customCountries.map(C=>C.id),...Xa.map(C=>C.id));const x=[],E=[];for(const C of a.value){const P=qd.find(T=>T.name===C);if(!P)continue;w-=1;const I={id:w,name:P.name,iso2:P.iso2,isCustom:!0};x.push(I),E.push(I.id)}x.length>0&&(r.customCountries=[...r.customCountries,...x],r.selectedCountryIds=[...r.selectedCountryIds,...E.filter(C=>!r.selectedCountryIds.includes(C))]),g()},b=Z(()=>r.selectedCountryIds.length>0);return(w,x)=>(R(),G(qe,null,[m("div",sA,[m("div",oA,[x[8]||(x[8]=m("h2",{class:"text-3xl font-bold text-dark"},"Which countries do you want to monitor?",-1)),x[9]||(x[9]=m("p",{class:"text-sm text-grayText mt-2"}," Select all countries where you sell or want to monitor. ",-1)),m("div",aA,[m("div",null,[x[3]||(x[3]=m("div",{class:"text-xs font-semibold text-primaryText mb-3"},"AMERICAS",-1)),m("div",lA,[(R(!0),G(qe,null,qt(i("AMERICAS"),E=>(R(),pe(ls,{key:E.id,label:E.name,flag:h(E.iso2),selected:u(E.id),onClick:C=>f(E.id)},null,8,["label","flag","selected","onClick"]))),128))])]),m("div",null,[x[4]||(x[4]=m("div",{class:"text-xs font-semibold text-primaryText mb-3"},"EUROPE",-1)),m("div",uA,[(R(!0),G(qe,null,qt(i("EUROPE"),E=>(R(),pe(ls,{key:E.id,label:E.name,flag:h(E.iso2),selected:u(E.id),onClick:C=>f(E.id)},null,8,["label","flag","selected","onClick"]))),128))])]),m("div",null,[x[5]||(x[5]=m("div",{class:"text-xs font-semibold text-primaryText mb-3"}," ASIA-PACIFIC & MIDDLE EAST ",-1)),m("div",cA,[(R(!0),G(qe,null,qt(i("ASIA-PACIFIC & MIDDLE EAST"),E=>(R(),pe(ls,{key:E.id,label:E.name,flag:h(E.iso2),selected:u(E.id),onClick:C=>f(E.id)},null,8,["label","flag","selected","onClick"]))),128))])]),m("div",null,[x[7]||(x[7]=m("div",{class:"text-xs font-semibold text-primaryText mb-3"},"OTHER",-1)),m("div",dA,[(R(!0),G(qe,null,qt($(r).customCountries,E=>(R(),pe(ls,{key:E.id,label:E.name,flag:h(E.iso2),selected:u(E.id),onClick:C=>f(E.id)},null,8,["label","flag","selected","onClick"]))),128)),m("button",{type:"button",class:"inline-flex items-center gap-2 rounded-full border border-orangeSecondary px-4 py-2 text-sm font-semibold text-orangeText hover:bg-orangeTertiary transition",onClick:v},[m("span",fA,[U($(he),{icon:"lucide:plus",width:"14",height:"14"})]),x[6]||(x[6]=yt(" Add other option ",-1))])])])])]),m("div",hA,[U(De,{label:"Back",color:"primary",variant:"outline",class:"w-[140px]",onClick:x[0]||(x[0]=E=>n("back"))}),U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!b.value||e.submitting,loading:e.submitting,onClick:x[1]||(x[1]=E=>n("continue"))},null,8,["disabled","loading"])])]),(R(),pe(ha,{to:"body"},[s.value?(R(),G("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/40",onClick:Pr(g,["self"])},[m("div",pA,[x[10]||(x[10]=m("div",{class:"px-6 pt-6 pb-4"},[m("div",{class:"text-lg font-bold text-dark"},"Choose other country")],-1)),m("div",vA,[m("div",gA,[U($(he),{icon:"lucide:search",width:"16",height:"16",class:"absolute left-3 top-1/2 -translate-y-1/2 text-grayText pointer-events-none"}),yr(m("input",{"onUpdate:modelValue":x[2]||(x[2]=E=>o.value=E),type:"text",placeholder:"Search country",class:"w-full h-10 pl-9 pr-3 rounded-lg border border-grayBorder2 text-sm text-dark placeholder:text-grayText/50 focus:outline-none focus:border-primary"},null,512),[[br,o.value]])])]),m("div",mA,[(R(!0),G(qe,null,qt(d.value,E=>(R(),G("div",{key:E.name,class:"flex items-center justify-between py-3 border-b border-grayBorder2 last:border-0 cursor-pointer select-none",onClick:C=>p(E.name)},[m("div",bA,[m("span",wA,_e(h(E.iso2)),1),m("span",xA,_e(E.name),1)]),m("div",{class:Se(["w-5 h-5 rounded border-2 flex items-center justify-center transition shrink-0",a.value.has(E.name)?"border-primary bg-primary":"border-grayBorder2"])},[a.value.has(E.name)?(R(),pe($(he),{key:0,icon:"lucide:check",width:"14",height:"14",class:"text-white"})):Ie("",!0)],2)],8,yA))),128)),d.value.length?Ie("",!0):(R(),G("div",_A," No countries found "))]),m("div",EA,[m("button",{type:"button",class:"h-10 px-6 rounded-lg bg-primary text-white text-sm font-semibold hover:opacity-90 transition disabled:opacity-50 disabled:cursor-not-allowed",disabled:a.value.size===0,onClick:y}," Select countries"+_e(a.value.size>0?` (${a.value.size})`:""),9,SA)])])])):Ie("",!0)]))],64))}}),CA={class:"flex items-center gap-3"},AA=["src","alt"],IA="brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(2560%) hue-rotate(3deg) brightness(102%) contrast(103%)",kA=be({__name:"MarketplaceOptionCard",props:{label:{},selected:{type:Boolean,default:!1},icon:{},logoUrl:{}},setup(e){const t=e,n=Z(()=>t.selected?"border-orangeSelectedBorder bg-orangeTertiary":"border-grayBorder2 bg-white hover:bg-grayHover"),r=Z(()=>t.selected?"border-transparent bg-orangeCircleSelected":"border-grayBorder2 bg-white"),i=Z(()=>
46{if(t.logoUrl)return t.selected?{filter:IA,opacity:"0.8"}:void 0});return(s,o)=>(R(),G("button",{type:"button",class:Se(["w-full h-[64px] rounded-lg border px-4 flex items-center justify-between transition-colors",n.value])},[m("div",CA,[m("div",{class:Se(["w-8 h-8 rounded-full border flex items-center justify-center overflow-hidden p-1 transition-colors duration-200 ease-out",r.value])},[e.logoUrl?(R(),G("img",{key:0,src:e.logoUrl,alt:e.label,class:"w-[70%] h-[70%] object-contain transition-[filter,opacity] duration-200 ease-out",style:Vn(i.value)},null,12,AA)):e.icon?(R(),pe($(he),{key:1,icon:e.icon,width:"18",height:"18"},null,8,["icon"])):Ie("",!0)],2),m("div",{class:Se(["text-sm",e.selected?"text-orangeText":"text-primaryText"])},_e(e.label),3)]),m("div",{class:Se(["w-4 h-4 rounded-sm border flex items-center justify-center",e.selected?"border-orangeSelectedBorder bg-orangeSelectedBorder":"border-grayBorder"])},[e.selected?(R(),pe($(he),{key:0,icon:"lucide:check",width:"14",height:"14",class:"text-white"})):Ie("",!0)],2)],2))}}),OA={class:"flex-1 flex flex-col justify-between min-h-0"},RA={class:"flex-1 overflow-auto pr-1"},PA={class:"mt-8 grid grid-cols-3 gap-4"},NA={class:"shrink-0 pt-10 flex items-center justify-between"},LA=be({__name:"OnboardingStepFour",props:{submitting:{type:Boolean}},emits:["continue","back"],setup(e,{emit:t}){const n=t,r=fn(),i=Z(()=>r.selectedCountryIds.some(c=>rA.has(c))),s=Z(()=>i.value?Qa:Qa.filter(c=>!Hd.includes(c.id)));st(i,c=>{c||(r.selectedMarketplaceIds=r.selectedMarketplaceIds.filter(d=>!Hd.includes(d)))},{immediate:!0});const o=Z(()=>new Set(r.selectedMarketplaceIds)),a=c=>o.value.has(c),l=c=>{const d=new Set(r.selectedMarketplaceIds);d.has(c)?d.delete(c):d.add(c),r.selectedMarketplaceIds=Array.from(d)},u=Z(()=>r.selectedMarketplaceIds.length>0);return(c,d)=>(R(),G("div",OA,[m("div",RA,[d[2]||(d[2]=m("h2",{class:"text-3xl font-bold text-dark"},"Where do you want to monitor?",-1)),d[3]||(d[3]=m("p",{class:"text-sm text-grayText mt-2"}," Select the marketplaces and channels you want to track. ",-1)),m("div",PA,[(R(!0),G(qe,null,qt(s.value,f=>(R(),pe(kA,{key:f.id,label:f.label,logoUrl:f.logoUrl,selected:a(f.id),onClick:h=>l(f.id)},null,8,["label","logoUrl","selected","onClick"]))),128))])]),m("div",NA,[U(De,{label:"Back",color:"primary",variant:"outline",class:"w-[140px]",onClick:d[0]||(d[0]=f=>n("back"))}),U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!u.value||e.submitting,loading:e.submitting,onClick:d[1]||(d[1]=f=>n("continue"))},null,8,["disabled","loading"])])]))}}),DA={key:0,class:"w-2.5 h-2.5 rounded-full bg-orangeSelectedBorder"},MA={class:"pl-6 h-full flex items-center"},pi=be({__name:"SelectableWideOption",props:{modelValue:{type:[String,Boolean,null]},value:{type:[String,Boolean,null]},label:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Z(()=>n.modelValue===n.value),s=()=>r("update:modelValue",n.value);return(o,a)=>(R(),G("button",{type:"button",class:Se(["relative w-[240px] h-[78px] rounded-lg border px-4 py-4 text-left transition-colors",i.value?"border-orangeSelectedBorder bg-orangeTertiary":"border-grayBorder2 bg-white hover:bg-grayHover"]),onClick:s},[m("span",{class:Se(["absolute top-3 left-3 w-4 h-4 rounded-full border flex items-center justify-center",i.value?"border-orangeSelectedBorder":"border-grayBorder"])},[i.value?(R(),G("span",DA)):Ie("",!0)],2),m("div",MA,[m("span",{class:Se(["text-sm font-semibold",i.value?"text-orangeText":"text-primaryText"])},_e(e.label),3)])],2))}}),UA={class:"flex-1 flex flex-col justify-between min-h-0"},FA={class:"flex-1 overflow-auto pr-1"},$A={class:"mt-8 flex flex-wrap gap-4"},jA={class:"shrink-0 pt-10 flex items-center justify-between"},BA=be({__name:"OnboardingStepFive",props:{submitting:{type:Boolean}},emits:["continue","back"],setup(e,{emit:t}){const n=t,r=fn(),i=Z(()=>typeof r.hasSellerAuthorizationPolicy=="boolean");return(s,o)=>(R(),G("div",UA,[m("div",FA,[o[4]||(o[4]=m("h2",{class:"text-3xl font-bold text-dark"}," Do you have a seller authorization policy? ",-1)),o[5]||(o[5]=m("p",{class:"text-sm text-grayText mt-2"}," A list of approved sellers who are allowed to sell your products. ",-1)),m("div",$A,[U(pi,{modelValue:$(r).hasSellerAuthorizationPolicy,"onUpdate:modelValue":o[0]||(o[0]=a=>$(r).hasSellerAuthorizationPolicy=a),value:!0,label:"Yes, I have one"},null,8,["modelValue"]),U(pi,{modelValue:$(r).hasSellerAuthorizationPolicy,"onUpdate:modelValue":o[1]||(o[1]=a=>$(r).hasSellerAuthorizationPolicy=a),value:!1,label:"No, not yet"},null,8,["modelValue"])])]),m("div",jA,[U(De,{label:"Back",color:"primary",variant:"outline",class:"w-[140px]",onClick:o[2]||(o[2]=a=>n("back"))}),U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!i.value||e.submitting,loading:e.submitting,onClick:o[3]||(o[3]=a=>n("continue"))},null,8,["disabled","loading"])])]))}}),VA={class:"flex-1 flex flex-col justify-between min-h-0"},qA={class:"flex-1 overflow-auto pr-1"},HA={class:"mt-8 flex flex-wrap gap-3"},zA={class:"shrink-0 pt-10 flex items-center justify-between"},GA=be({__name:"OnboardingStepSix",props:{submitting:{type:Boolean}},emits:["continue","back"],setup(e,{emit:t}){const n=t,r=fn(),i=Z(()=>!!r.authorizedSellerRange);return(s,o)=>(R(),G("div",VA,[m("div",qA,[o[6]||(o[6]=m("h2",{class:"text-3xl font-bold text-dark"}," How many authorized sellers do you have? ",-1)),o[7]||(o[7]=m("p",{class:"text-sm text-grayText mt-2"}," This helps us understand the size of your distribution network. ",-1)),m("div",HA,[U(_n,{modelValue:$(r).authorizedSellerRange,"onUpdate:modelValue":o[0]||(o[0]=a=>$(r).authorizedSellerRange=a),value:1,title:"Just one",subtitle:"Seller"},null,8,["modelValue"]),U(_n,{modelValue:$(r).authorizedSellerRange,"onUpdate:modelValue":o[1]||(o[1]=a=>$(r).authorizedSellerRange=a),value:5,title:"1-5",subtitle:"Sellers"},null,8,["modelValue"]),U(_n,{modelValue:$(r).authorizedSellerRange,"onUpdate:modelValue":o[2]||(o[2]=a=>$(r).authorizedSellerRange=a),value:10,title:"6-10",subtitle:"Sellers"},null,8,["modelValue"]),U(_n,{modelValue:$(r).authorizedSellerRange,"onUpdate:modelValue":o[3]||(o[3]=a=>$(r).authorizedSellerRange=a),value:11,title:"10+",subtitle:"Sellers"},null,8,["modelValue"])])]),m("div",zA,[U(De,{label:"Back",color:"primary",variant:"outline",class:"w-[140px]",onClick:o[4]||(o[4]=a=>n("back"))}),U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!i.value||e.submitting,loading:e.submitting,onClick:o[5]||(o[5]=a=>n("continue"))},null,8,["disabled","loading"])])]))}}),KA={class:"flex-1 flex flex-col justify-between min-h-0"},WA={class:"flex-1 overflow-auto pr-1"},JA={class:"mt-8 flex flex-wrap gap-4"},YA={class:"shrink-0 pt-10 flex items-center justify-between"},XA=be({__name:"OnboardingStepSeven",props:{submitting:{type:Boolean}},emits:["continue","back"],setup(e,{emit:t}){const n=t,r=fn(),i=Z(()=>r.hasMapPolicy!==void 0);return(s,o)=>(R(),G("div",KA,[m("div",WA,[o[5]||(o[5]=m("h2",{class:"text-3xl font-bold text-dark"},"Do you have a MAP policy?",-1)),o[6]||(o[6]=m("p",{class:"text-sm text-grayText mt-2"}," Minimum Advertised Price rules for your products. ",-1)),m("div",JA,[U(pi,{modelValue:$(r).hasMapPolicy,"onUpdate:modelValue":o[0]||(o[0]=a=>$(r).hasMapPolicy=a),value:"strict",label:"Yes, I have one"},null,8,["modelValue"]),U(pi,{modelValue:$(r).hasMapPolicy,"onUpdate:modelValue":o[1]||(o[1]=a=>$(r).hasMapPolicy=a),value:"not_enforcing",label:"Yes, but not looking to enforce"},null,8,["modelValue"]),U(pi,{modelValue:$(r).hasMapPolicy,"onUpdate:modelValue":o[2]||(o[2]=a=>$(r).hasMapPolicy=a),value:null,label:"No, not yet"},null,8,["modelValue"])])]),m("div",YA,[U(De,{label:"Back",color:"primary",variant:"outline",class:"w-[140px]",onClick:o[3]||(o[3]=a=>n("back"))}),U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!i.value||e.submitting,loading:e.submitting,onClick:o[4]||(o[4]=a=>n("continue"))},null,8,["disabled","loading"])])]))}}),QA=be({__name:"ConcernOptionCard",props:{label:{},selected:{type:Boolean,default:!1}},setup(e){const t=e,n=Z(()=>t.selected?"border-orangeSelectedBorder bg-orangeTertiary":"border-grayBorder2 bg-white hover:bg-grayHover");return(r,i)=>(R(),G("button",{type:"button",class:Se(["relative w-full min-h-[78px] rounded-lg border px-4 py-4 text-left transition-colors",n.value])},[m("div",{class:Se(["absolute top-3 right-3 w-4 h-4 rounded-sm border flex items-center justify-center",e.selected?"border-orangeSelectedBorder bg-orangeSelectedBorder":"border-grayBorder"])},[e.selected?(R(),pe($(he),{key:0,icon:"lucide:check",width:"14",height:"14",class:"text-white"})):Ie("",!0)],2),m("div",{class:Se(["pr-8 text-sm leading-5",e.selected?"text-orangeText":"text-primaryText"])},_e(e.label),3)],2))}}),ZA={class:"flex-1 flex flex-col justify-between min-h-0"},eI={class:"flex-1 overflow-auto pr-1"},tI={class:"mt-8 grid grid-cols-3 gap-4"},nI={class:"mt-6"},rI={class:"inline-flex items-center justify-center w-5 h-5 rounded-full border border-primary"},iI=["onKeydown"],sI={class:"shrink-0 pt-10 flex items-center justify-between"},oI=be({__name:"OnboardingStepEight",props:{submitting:{type:Boolean}},emits:["continue","back"],setup(e,{emit:t}){const n=t,r=fn(),i=new Set(zd.map(h=>h.id)),s=Z(()=>{const h=r.selectedConcernIds.filter(p=>!i.has(p)).map(p=>({id:p,label:p}));return[...zd,...h]}),o=Z(()=>new Set(r.selectedConcernIds)),a=h=>
46o.value.has(h),l=h=>{const p=new Set(r.selectedConcernIds);p.has(h)?p.delete(h):p.add(h),r.selectedConcernIds=Array.from(p)},u=z(0),c=Z(()=>r.selectedConcernIds.length>0?!0:r.concernsOtherEnabled?r.concernsOtherText.trim().length>0:!1),d=()=>{if(!r.concernsOtherEnabled)return;const h=r.concernsOtherText.trim();h&&(r.selectedConcernIds.includes(h)||(r.selectedConcernIds=[...r.selectedConcernIds,h]),r.concernsOtherText="",u.value+=1)},f=()=>{r.concernsOtherEnabled=!r.concernsOtherEnabled,r.concernsOtherEnabled||(r.concernsOtherText=""),u.value+=1};return(h,p)=>(R(),G("div",ZA,[m("div",eI,[p[4]||(p[4]=m("h2",{class:"text-3xl font-bold text-dark"},"What are your main concerns?",-1)),p[5]||(p[5]=m("p",{class:"text-sm text-grayText mt-2"}," Select the issues you want to prioritize in monitoring. ",-1)),m("div",tI,[(R(!0),G(qe,null,qt(s.value,v=>(R(),pe(QA,{key:v.id,label:v.label,selected:a(v.id),onClick:g=>l(v.id)},null,8,["label","selected","onClick"]))),128))]),m("div",nI,[m("button",{type:"button",class:"inline-flex items-center gap-2 rounded-full border border-primary px-4 py-2 text-sm font-semibold text-primary hover:bg-orangeTertiary transition",onClick:f},[m("span",rI,[U($(he),{icon:"lucide:plus",width:"14",height:"14"})]),p[3]||(p[3]=yt(" Other ",-1))]),$(r).concernsOtherEnabled?(R(),G("div",{key:0,class:"mt-4 w-full max-w-[560px]",onKeydown:xa(Pr(d,["prevent"]),["enter"])},[(R(),pe(Lt,{key:u.value,label:"",placeholder:"Enter a concern",type:"text",variant:"primary",value:$(r).concernsOtherText,disabled:!1,readonly:!1,onChange:p[0]||(p[0]=v=>$(r).concernsOtherText=v)},null,8,["value"]))],40,iI)):Ie("",!0)])]),m("div",sI,[U(De,{label:"Back",color:"primary",variant:"outline",class:"w-[140px]",onClick:p[1]||(p[1]=v=>n("back"))}),U(De,{label:"Continue",color:"primary",class:"w-[180px]",disabled:!c.value||e.submitting,loading:e.submitting,onClick:p[2]||(p[2]=v=>n("continue"))},null,8,["disabled","loading"])])]))}}),aI={key:8,class:"h-full flex items-center justify-center text-grayText"},us=8,lI=3,uI=be({__name:"FirstLoginSetup",setup(e){const t=Li(),n=In(),r=fn(),i=kn(),s=z(!1),o=async()=>{if(!i.user)return;const I=await xo(),T=I.success?{...i.user,user_status_id:I.data.user_status_id,user_status:I.data.user_status}:{...i.user,user_status_id:lI};i.user=T,Rl(T)},a=async I=>{if(!s.value){s.value=!0;try{await I()}finally{s.value=!1}}},l=Z(()=>{const I=t.query.step,T=Array.isArray(I)?I[0]:I,k=Number.parseInt((T||"1").toString(),10);return Number.isNaN(k)?1:Math.min(Math.max(1,k),us)}),u=Z(()=>r.hasSellerAuthorizationPolicy===!1?us-1:us),c=Z(()=>{const I=l.value;return r.hasSellerAuthorizationPolicy===!1&&I>=7?I-1:I}),d=Z(()=>!1);ct(()=>{r.hydrate(),t.query.step||n.replace({query:{...t.query,step:"1"}})});const f=I=>{switch(I){case 1:return"INDUSTRY_TYPE";case 2:return"SKUS_TO_MONITOR";case 3:return"COUNTRIES_TO_MONITOR";case 4:return"MARKETPLACES_TO_MONITOR";case 5:return"SELLER_AUTHORIZATION_POLICY";case 6:return"SELLERS_AMOUNT";case 7:return"MAP_POLICY";case 8:return"MAIN_CONCERNS";default:return null}},h=new Set,p=async I=>{const T=f(I);if(T&&!r.startedOnboardingSteps.includes(T)&&!h.has(T)){h.add(T);try{(await F1(T)).success&&(r.startedOnboardingSteps=[...r.startedOnboardingSteps,T])}finally{h.delete(T)}}};st(l,I=>{p(I)},{immediate:!0});const v=I=>{const T=Math.min(Math.max(1,I),us);n.push({name:"onboarding_stepper",query:{...t.query,step:String(T)}})},g=()=>a(async()=>{const I=r.industryOtherEnabled?{other_industry_type:r.industryOtherText.trim()}:{industry_type_id:r.industry??void 0},T=await j1(I);if(!T.success){Ue(T.message||"Could not save industry type","error",g);return}v(2)}),y=()=>a(async()=>{const I=r.skuRange;if(!I){Ue("Please select an SKU range","error");return}const T=await B1(I);if(!T.success){Ue(T.message||"Could not save SKUs to monitor","error",y);return}v(3)}),b=()=>a(async()=>{const I=new Set(r.selectedCountryIds),T=r.customCountries.filter(N=>I.has(N.id)).map(N=>N.name.trim()).filter(N=>N.length>0),k=r.selectedCountryIds.filter(N=>Number.isFinite(N)&&N>0),B=await q1({country_ids:k,other_countries:T.length?Array.from(new Set(T)):[]});if(!B.success){Ue(B.message||"Could not save countries","error",b);return}v(4)}),w=()=>a(async()=>{const I=r.selectedMarketplaceIds.map(k=>iA[k]||k).filter(k=>typeof k=="string"&&k.trim().length>0),T=await H1(I);if(!T.success){Ue(T.message||"Could not save marketplaces","error",w);return}v(5)}),x=()=>a(async()=>
46{if(typeof r.hasSellerAuthorizationPolicy!="boolean")return;const I=await z1(r.hasSellerAuthorizationPolicy);if(!I.success){Ue(I.message||"Could not save policy","error",x);return}if(r.hasSellerAuthorizationPolicy===!1){v(7);return}v(6)}),E=()=>a(async()=>{const I=typeof r.authorizedSellerRange=="number"?String(r.authorizedSellerRange):null,T=await G1(I);if(!T.success){Ue(T.message||"Could not save sellers range","error",E);return}v(7)}),C=()=>a(async()=>{const I=r.hasMapPolicy;if(I===void 0){Ue("Please select a MAP policy","error");return}const T=await K1(I);if(!T.success){Ue(T.message||"Could not save MAP policy","error",C);return}v(8)}),P=()=>a(async()=>{const I=[...r.selectedConcernIds,...r.concernsOtherEnabled&&r.concernsOtherText.trim()?[r.concernsOtherText.trim()]:[]],T=await W1(I);if(!T.success){Ue(T.message||"Could not save concerns","error",P);return}await o(),r.reset(),n.push({name:"onboarding_configuring_account"})});return(I,T)=>(R(),pe(Wi,{currentStep:c.value,totalSteps:u.value,showWelcomeTitle:!d.value,showStepIndicator:!d.value},{default:cn(()=>[l.value===1?(R(),pe(GC,{key:0,submitting:s.value,onContinue:g},null,8,["submitting"])):l.value===2?(R(),pe(eA,{key:1,submitting:s.value,onBack:T[0]||(T[0]=k=>v(1)),onContinue:y},null,8,["submitting"])):l.value===3?(R(),pe(TA,{key:2,submitting:s.value,onBack:T[1]||(T[1]=k=>v(2)),onContinue:b},null,8,["submitting"])):l.value===4?(R(),pe(LA,{key:3,submitting:s.value,onBack:T[2]||(T[2]=k=>v(3)),onContinue:w},null,8,["submitting"])):l.value===5?(R(),pe(BA,{key:4,submitting:s.value,onBack:T[3]||(T[3]=k=>v(4)),onContinue:x},null,8,["submitting"])):l.value===6?(R(),pe(GA,{key:5,submitting:s.value,onBack:T[4]||(T[4]=k=>v(5)),onContinue:E},null,8,["submitting"])):l.value===7?(R(),pe(XA,{key:6,submitting:s.value,onBack:T[5]||(T[5]=k=>v($(r).hasSellerAuthorizationPolicy===!1?5:6)),onContinue:C},null,8,["submitting"])):l.value===8?(R(),pe(oI,{key:7,submitting:s.value,onBack:T[6]||(T[6]=k=>v(7)),onContinue:P},null,8,["submitting"])):(R(),G("div",aI," Step "+_e(l.value)+" (placeholder) ",1))]),_:1},8,["currentStep","totalSteps","showWelcomeTitle","showStepIndicator"]))}}),cI={class:"h-full w-full flex flex-col items-center justify-center"},dI={class:"w-full max-w-[680px] text-center"},fI={class:"flex flex-col items-center"},hI={class:"w-20 h-20 rounded-full flex items-center justify-center bg-primaryLight"},pI={class:"w-14 h-14 rounded-full flex items-center justify-center bg-primary"},vI={class:"mt-10 space-y-4 text-left"},gI={class:"flex items-center justify-between rounded-xl bg-grayHover px-5 py-4"},mI={class:"flex items-center gap-3"},yI={class:"w-10 h-10 rounded-full flex items-center justify-center bg-primaryLight"},bI={class:"flex items-center justify-between rounded-xl bg-grayHover px-5 py-4"},wI={class:"flex items-center gap-3"},xI={class:"w-10 h-10 rounded-full flex items-center justify-center bg-primaryLight"},_I={class:"flex items-center justify-between rounded-xl bg-grayHover px-5 py-4"},EI={class:"flex items-center gap-3"},SI={class:"w-10 h-10 rounded-full flex items-center justify-center bg-primaryLight"},TI={class:"mt-10"},CI={class:"w-full h-[6px] rounded-full bg-grayBorder2 overflow-hidden"},AI=1e4,II=be({__name:"OnboardingStepNine",emits:["complete"],setup(e,{emit:t}){const n=t,r=z(0);let i,s=0;ct(()=>{s=Date.now(),i=window.setInterval(()=>{const a=Date.now()-s,l=Math.min(100,Math.round(a/AI*100));r.value=l,l>=100&&(i&&window.clearInterval(i),i=void 0,n("complete"))},100)}),dn(()=>{i&&window.clearInterval(i),i=void 0});const o=Z(()=>({one:r.value>=33,two:r.value>=66,three:r.value>=100}));return(a,l)=>(R(),G("div",cI,[m("div",dI,[m("div",fI,[m("div",hI,[m("div",pI,[U($(he),{icon:"lucide:sparkles",width:"26",height:"26",class:"text-white"})])]),l[0]||(l[0]=m("h2",{class:"text-3xl font-bold text-dark mt-6"},"Setting up your account",-1)),l[1]||(l[1]=m("p",{class:"text-sm text-grayText mt-3 max-w-[520px]"}," Please wait while we process your information and prepare everything for you ",-1))]),m("div",vI,[m("div",gI,[m("div",mI,[m("div",yI,[U($(he),{icon:"lucide:scan",width:"22",height:"22",class:"text-primary"})]),l[2]||(l[2]=m("div",{class:"text-sm font-medium text-dark"},"Analyzing your information",-1))]),o.value.one?(R(),pe($(he),{key:0,icon:"lucide:check-circle",width:"20",height:"20",class:"text-success"})):(R(),pe($(he),{key:1,icon:"lucide:loader-2",width:"20",height:"20",class:"text-grayText animate-spin"}))]),m("div",bI,[m("div",wI,[m("div",xI,[U($(he),{icon:"lucide:database",width:"22",height:"22",class:"text-primary"})]),l[3]||(l[3]=m("div",{class:"text-sm font-medium text-dark"}
46,"Setting up your workspace",-1))]),o.value.two?(R(),pe($(he),{key:0,icon:"lucide:check-circle",width:"20",height:"20",class:"text-success"})):(R(),pe($(he),{key:1,icon:"lucide:loader-2",width:"20",height:"20",class:"text-grayText animate-spin"}))]),m("div",_I,[m("div",EI,[m("div",SI,[U($(he),{icon:"lucide:layout-dashboard",width:"22",height:"22",class:"text-primary"})]),l[4]||(l[4]=m("div",{class:"text-sm font-medium text-dark"},"Preparing your dashboard",-1))]),o.value.three?(R(),pe($(he),{key:0,icon:"lucide:check-circle",width:"20",height:"20",class:"text-success"})):(R(),pe($(he),{key:1,icon:"lucide:loader-2",width:"20",height:"20",class:"text-grayText animate-spin"}))])]),m("div",TI,[m("div",CI,[m("div",{class:"h-full rounded-full bg-primary transition-[width] duration-100 ease-linear",style:Vn({width:r.value+"%"})},null,4)])])])]))}}),kI=be({__name:"OnboardingConfiguringAccount",setup(e){const t=In(),n=()=>{t.push({name:"onboarding_get_started"})};return(r,i)=>(R(),pe(Wi,{showWelcomeTitle:!1,showStepIndicator:!1,containerVariant:"narrow"},{default:cn(()=>[U(II,{onComplete:n})]),_:1}))}});var ir;(function(e){e[e.MissingTemplate=0]="MissingTemplate",e[e.MissingJwt=1]="MissingJwt",e[e.MissingSessionToken=2]="MissingSessionToken",e[e.LaunchError=3]="LaunchError"})(ir||(ir={}));const OI={baseUrl:"https://embed.oneschema.co",devMode:!1,className:"oneschema-iframe",autoClose:!0,manageDOM:!0,saveSession:!0};var sr;(function(e){e.Error="error",e.Fatal="fatal"})(sr||(sr={}));function ue(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function It(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i?i.value=n:t.set(e,n),n}var Nv={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function s(l,u,c,d,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new i(c,d||l,f),p=n?n+u:u;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],c,d;if(this._eventsCount===0)return u;for(d in c=this._events)t.call(c,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},a.prototype.listeners=function(u){var c=n?n+u:u,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,p=new Array(h);f<h;f++)p[f]=d[f].fn;return p},a.prototype.listenerCount=function(u){var c=n?n+u:u,d=this._events[c];return d?d.fn?1:d.length:0},a.prototype.emit=function(u,c,d,f,h,p){var v=n?n+u:u;if(!this._events[v])return!1;var g=this._events[v],y=arguments.length,b,w;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,c),!0;case 3:return g.fn.call(g.context,c,d),!0;case 4:return g.fn.call(g.context,c,d,f),!0;case 5:return g.fn.call(g.context,c,d,f,h),!0;case 6:return g.fn.call(g.context,c,d,f,h,p),!0}for(w=1,b=new Array(y-1);w<y;w++)b[w-1]=arguments[w];g.fn.apply(g.context,b)}else{var x=g.length,E;for(w=0;w<x;w++)switch(g[w].once&&this.removeListener(u,g[w].fn,void 0,!0),y){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,c);break;case 3:g[w].fn.call(g[w].context,c,d);break;case 4:g[w].fn.call(g[w].context,c,d,f);break;default:if(!b)for(E=1,b=new Array(y-1);E<y;E++)b[E-1]=arguments[E];g[w].fn.apply(g[w].context,b)}}return!0},a.prototype.on=function(u,c,d){return s(this,u,c,d,!1)},a.prototype.once=function(u,c,d){return s(this,u,c,d,!0)},a.prototype.removeListener=function(u,c,d,f){var h=n?n+u:u;if(!this._events[h])return this;if(!c)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===c&&(!f||p.once)&&(!d||p.context===d)&&o(this,h);else{for(var v=0,g=[],y=p.length;v<y;v++)(p[v].fn!==c||f&&!p[v].once||d&&p[v].context!==d)&&g.push(p[v]);g.length?this._events[h]=g.length===1?g[0]:g:o(this,h)}return this},a.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(Nv);var RI="0.7.2";function Gd(e){return Object.fromEntries(Object.entries(e).filter(t=>t[1]!==void 0))}function Kd(e,t){return Object.assign(Object.assign({},Gd(e??{})),Gd(t??{}))}var Vt,gr,Ge,Ir,kr,Ft,vi,ti,Or,gi,mr,Za,el,Is,tl;const PI=10,NI="importer.oneschema.co";class Un extends Nv.exports.EventEmitter{constructor(t){if(super(),Vt.add(this),Ge.set(this,void 0),Ir.set(this,"Importer"),kr.set(this,RI),Ft.set(this,""),this._hasAttemptedLaunch=!1,vi.set(this,!1),ti.set(this,!1),Or.set(this,void 0),gi.set(this,!1),It(this,Ge,Kd(OI,t)),!(typeof window>"u")&&(window.addEventListener("message",ue(this,Vt,"m",tl).bind(this)),ue(this,Ge,"f").manageDOM)){const n="_oneschema-iframe";if(this.iframe=document.getElementById(n),this.iframe)this.iframe.dataset.count=`${parseInt(this.iframe.dataset.count||"0")+1}`;else{const i=document.createElement("iframe");i.id=n,i.dataset.count="1",this.setIframe(i)}let r=document.body;ue(this,Ge,"f").parentId&&(r=document.getElementById(ue(this,Ge,"f").parentId)||r),this.setParent(r)}}setClient(t,n){It(this,Ir,t),It(this,kr,n)}setIframe(t){this.iframe&&this.close(!0),this.iframe=t,this.iframe.setAttribute("allowtransparency","true");const n=[];n.push(`embed_client_id=${ue(this,Ge,"f").clientId}`),n.push(`dev_mode=${ue(this,Ge,"f").devMode}`),ue(this,Ge,"f").languageCode&&n.push(`lng=${ue(this,Ge,"f").languageCode}`),this.iframe.src=`${ue(this,Ge,"f").baseUrl}/embed-launcher?${n.join("&")}`,this.setClassName(ue(this,Ge,"f").className||""),ue(this,Ge,"f").styles&&this.setStyles(ue(this,Ge,"f").styles),It(Un,gr,!1,"f",mr),this.iframe.onload=()=>{It(Un,gr,!0,"f",mr)},ue(this,Vt,"m",el).call(this)}setClassName(t){this.iframe&&(this.iframe.className=t)}setStyles(t){if(this.iframe){const n=this.iframe.style.display;Object.assign(this.iframe.style,t),this.iframe.style.display=n}}setParent(t){this.iframe&&t.append(this.iframe)}launch(t){this._hasAttemptedLaunch=!0;const n=Kd(ue(this,Ge,"f"),t),r={version:ue(this,kr,"f"),client:ue(this,Ir,"f"),manualClose:!0};let i;if(n.sessionToken)i=Object.assign(Object.assign({},r),{messageType:"init-session",sessionToken:n.sessionToken});else{if(i=Object.assign(Object.assign({},r),{messageType:"init",userJwt:n.userJwt,templateKey:n.templateKey,importConfig:n.importConfig,customizationKey:n.customizationKey,customizationOverrides:n.customizationOverrides,templateOverrides:n.templateOverrides,eventWebhookKeys:n.eventWebhookKeys}),!i.userJwt)return console.error("OneSchema config error: missing userJwt"),this.emit
46("launched",{success:!1,error:ir.MissingJwt}),{success:!1,error:ir.MissingJwt};if(!i.templateKey)return console.error("OneSchema config error: missing templateKey"),this.emit("launched",{success:!1,error:ir.MissingTemplate}),{success:!1,error:ir.MissingTemplate};if(n.saveSession)try{It(this,Ft,`OneSchema-session-${n.userJwt}-${n.templateKey}`,"f");const s=window.localStorage.getItem(ue(this,Ft,"f"));s&&(i.resumeToken=s)}catch{}}return n.importConfig&&n.importConfig.type==="file-upload"&&!n.importConfig.format&&(n.importConfig.format="csv"),It(this,Or,i),this._launch(),{success:!0}}launchSession(t){return this.launch(t)}_launch(){const t=()=>{It(this,ti,!1),this._initWithRetry(),It(Un,gr,!0,"f",mr)};ue(Un,gr,"f",mr)?t():this.iframe&&(this.iframe.onload=t)}_initWithRetry(t=1){if(!(ue(this,vi,"f")||ue(this,ti,"f")||ue(this,gi,"f"))){if(t>PI){const n="OneSchema failed to respond for initialization";console.error(n),ue(this,Ge,"f").devMode?ue(this,Vt,"m",Is).call(this):(this.emitErrorEvent({message:n,severity:sr.Fatal}),ue(this,Ge,"f").autoClose&&this.close());return}ue(this,Vt,"m",Za).call(this,ue(this,Or,"f")||{}),setTimeout(()=>this._initWithRetry(t+1),500)}}_resetSession(t){if(ue(this,Ft,"f"))try{window.localStorage.removeItem(ue(this,Ft,"f"))}catch{}this.close(),setTimeout(()=>{this.launch(t)})}close(t){ue(this,Vt,"m",el).call(this),this.iframe&&ue(Un,gr,"f",mr)&&ue(this,Vt,"m",Za).call(this,{messageType:"close"}),this._hasAttemptedLaunch=!1,It(this,gi,!1),It(this,vi,!1),It(this,ti,!0),t&&this.iframe&&(!this.iframe.dataset.count||this.iframe.dataset.count==="1"?(this.removeAllListeners(),window.removeEventListener("message",ue(this,Vt,"m",tl)),ue(this,Ge,"f").manageDOM&&this.iframe.remove()):this.iframe.dataset.count=`${parseInt(this.iframe.dataset.count||"1")-1}`)}emitErrorEvent(t){this.emit("error",t)}}gr=Un,Ge=new WeakMap,Ir=new WeakMap,kr=new WeakMap,Ft=new WeakMap,vi=new WeakMap,ti=new WeakMap,Or=new WeakMap,gi=new WeakMap,Vt=new WeakSet,Za=function(t){var n,r;(r=(n=this.iframe)===null||n===void 0?void 0:n.contentWindow)===null||r===void 0||r.postMessage(Object.assign({version:ue(this,kr,"f"),client:ue(this,Ir,"f"),"@from":`${ue(this,Ir,"f")}#${ue(this,kr,"f")}`,"@to":NI},t),ue(this,Ge,"f").baseUrl)},el=function(){this.iframe&&(this.iframe.style.display="none")},Is=function(){this.iframe&&(this.iframe.style.display="initial")},tl=function({source:t,data:n}){var r,i,s;if(t===((r=this.iframe)===null||r===void 0?void 0:r.contentWindow))switch(n.messageType){case"page-loaded":{this.emit("page-loaded",{});return}case"init-received":{It(this,gi,!0);return}case"launched":{It(this,vi,!0);let o=n.sessionToken;const a=n.embedId;if(ue(this,Ft,"f")&&o)try{window.localStorage.setItem(ue(this,Ft,"f"),o)}catch{}o||(o=((i=ue(this,Or,"f"))===null||i===void 0?void 0:i.resumeToken)||((s=ue(this,Or,"f"))===null||s===void 0?void 0:s.sessionToken)),this.emit("launched",{success:!0,sessionToken:o,embedId:a}),ue(this,Vt,"m",Is).call(this);return}case"launch-error":{this.emit("launched",{success:!1,error:ir.LaunchError}),ue(this,Ge,"f").devMode?ue(this,Vt,"m",Is).call(this):ue(this,Ge,"f").autoClose&&this.close();return}case"complete":{if(n.data?this.emit("success",n.data):this.emit("success",{eventId:n.eventId,responses:n.responses}),ue(this,Ft,"f"))try{window.localStorage.removeItem(ue(this,Ft,"f"))}catch{}ue(this,Ge,"f").autoClose&&this.close();return}case"cancel":{if(this.emit("cancel"),ue(this,Ft,"f"))try{window.localStorage.removeItem(ue(this,Ft,"f"))}catch{}ue(this,Ge,"f").autoClose&&this.close();return}case"reset-embed":{this._resetSession(n.embedSessionConfig);return}case"error":{this.emitErrorEvent({message:n.message,severity:sr.Fatal}),ue(this,Ge,"f").autoClose&&this.close();return}case"nonclosing-error":{this.emitErrorEvent({message:n.message,severity:sr.Error});return}case"error-v2":{const o=n.severity||sr.Error;this.emitErrorEvent({message:n.message,severity:o}),o===sr.Fatal&&ue(this,Ge,"f").autoClose&&this.close();return}}};mr={value:!1};var LI="0.7.2";function DI(e,t){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).filter(n=>
46!t.includes(n)).forEach(n=>e[n]=e[n].bind(e))}class MI{constructor(t){this.initOptions=t,DI(this,["constructor"])}install(t){const n=new Un(Object.assign({},this.initOptions));n.setClient("Vue",LI),t.provide("os-importer",n)}}const UI=e=>!1,FI=e=>typeof e=="symbol";let Wd;const Jd=()=>Wd||(Wd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(FI));let $I=null,Yd=null;function jI(e,t,n=!1){const r=Lv||$I;if(r||Yd){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Yd._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&UI()?t.call(r&&r.proxy):t}}let Lv=null,oa,Xd="__VUE_INSTANCE_SETTERS__";(oa=Jd()[Xd])||(oa=Jd()[Xd]=[]),oa.push(e=>Lv=e);function BI(e){return new MI(e)}function VI(){return jI("os-importer")}const qI=async(e,t)=>{try{let n=`/transparency/oneschema/auth/${e}`;return(await it.get(n)).data}catch{return null}},Qd="8b4baefa-3d8b-4b85-989d-f0d8381b4645",HI=5,Dv={onboardingProductUpload:"self_onboarding"},zI=Di("oneSchema",()=>{const e=VI(),t=z(!1),n=z(!1),r=z(()=>{}),i=z(null);return{loading:t,launchOneSchema:async(o,a,l)=>{const u=(o||Dv.onboardingProductUpload||"").toString();if(!u){Ue("OneSchema template is not configured","error");return}if(!e){Ue("Error initializing importer","error");return}r.value=a||(()=>{}),i.value=l??null,t.value=!0;try{qI(HI).then(c=>{if(!(c!=null&&c.jwt)){Ue("Error getting OneSchema token","error");return}const d={templateKey:u,userJwt:c.jwt,customizationOverrides:{includeExcelTemplate:!0,uploaderShowSidebar:!0,uploaderSidebarDetails:"all",uploaderShowSidebarBanner:!0}},f=JSON.parse(JSON.stringify(d));n.value||(n.value=!0,e.on("success",async h=>{var p,v;if(i.value){const g=Array.isArray(h==null?void 0:h.data)?h.data:Array.isArray(h==null?void 0:h.records)?h.records:[];try{await i.value(g)}catch{Ue("Error processing upload","error")}finally{r.value()}return}Ue("File processing, please wait","success"),So.push({name:"onboarding_loading_products"});try{const g=JSON.parse(((v=(p=h==null?void 0:h.responses)==null?void 0:p[0])==null?void 0:v.body)||"{}");(g==null?void 0:g.success)===!0?(Ue("File processed correctly, please wait","success"),r.value()):(g==null?void 0:g.success)===!1?(Ue("Error proccessing file","error"),r.value()):(g==null?void 0:g.incomplete)===!0&&Ue("File processing, please wait","success")}catch{}finally{r.value()}}),e.on("cancel",()=>{r.value()}),e.on("error",h=>{Ue("Error uploading file","error"),r.value()}));try{e.launch(f)}catch{Ue("Error launching importer","error");return}}).catch(c=>{Ue("Error initializing importer","error")}).finally(()=>{r.value()})}finally{t.value=!1}}}}),GI={"united states":"USA","united states of america":"USA",us:"USA","united arab emirates":"UAE",czechia:"Czech Republic"},aa=e=>e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");function KI(e){const t={};for(const n of e)t[aa(n)]=n;for(const[n,r]of Object.entries(GI))t[aa(n)]=r;return function(r){if(!r)return r;const i=r.trim();return(t[aa(i)]??i).toLowerCase()}}const WI=["disabled"],JI={class:"truncate"},YI={key:0,class:"absolute z-30 mt-1 left-0 right-0 max-h-56 overflow-auto rounded-lg border border-grayBorder2 bg-white shadow-lg py-1"},XI={key:0,class:"px-3 py-2 text-sm text-grayText"},QI=["onClick","onMouseenter"],ZI={class:"truncate"},ek=be({__name:"CountrySelect",props:{modelValue:{},options:{},placeholder:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=z(!1),s=z(null),o=z(-1),a=Z(()=>{const h=n.options.find(p=>p.code===n.modelValue);return(h==null?void 0:h.label)||""}),l=()=>{n.disabled||(i.value=!i.value,i.value&&(o.value=n.options.findIndex(h=>h.code===n.modelValue)))},u=()=>{i.value=!1,o.value=-1},c=h=>{r("update:modelValue",h),u()},d=h=>{s.value&&(s.value.contains(h.target)||u())},f=h=>{if(i.value){if(h.key==="Escape")h.preventDefault(),u();else if(h.key==="ArrowDown"){if(h.preventDefault(),!n.options.length)return;o.value=(o.value+1)%n.options.length}else if(h.key==="ArrowUp"){if(h.preventDefault(),!n.options.length)return;o.value=o.value<=0?n.options.length-1:o.value-1}else if(h.key==="Enter"){h.preventDefault();const p=n.options[o.value];p&&c(p.code)}}};return st(()=>
46n.options,()=>{o.value>=n.options.length&&(o.value=-1)}),ct(()=>{document.addEventListener("mousedown",d),document.addEventListener("keydown",f)}),gl(()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",f)}),(h,p)=>(R(),G("div",{ref_key:"rootEl",ref:s,class:"relative"},[m("button",{type:"button",disabled:e.disabled,class:Se(["h-10 w-full px-3 pr-8 rounded-lg border border-grayBorder2 text-sm text-left bg-white focus:outline-none focus:border-primary transition flex items-center disabled:opacity-60 disabled:cursor-not-allowed",a.value?"text-dark":"text-grayText"]),onClick:l},[m("span",JI,_e(a.value||e.placeholder||"Select"),1),U($(he),{icon:"lucide:chevron-down",width:"16",height:"16",class:Se(["absolute right-2 top-1/2 -translate-y-1/2 text-grayText transition-transform",i.value?"rotate-180":""])},null,8,["class"])],10,WI),i.value?(R(),G("div",YI,[e.options.length?Ie("",!0):(R(),G("div",XI," No options ")),(R(!0),G(qe,null,qt(e.options,(v,g)=>(R(),G("button",{key:v.code,type:"button",class:Se(["w-full text-left px-3 py-2 text-sm transition flex items-center gap-2",[v.code===e.modelValue?"bg-orangeTertiary text-primary font-medium":"text-dark hover:bg-grayHover",g===o.value&&v.code!==e.modelValue?"bg-grayHover":""]]),onClick:y=>c(v.code),onMouseenter:y=>o.value=g},[m("span",ZI,_e(v.label),1),v.code===e.modelValue?(R(),pe($(he),{key:0,icon:"lucide:check",width:"14",height:"14",class:"ml-auto text-primary shrink-0"})):Ie("",!0)],42,QI))),128))])):Ie("",!0)],512))}}),tk={class:"h-full w-full flex flex-col overflow-hidden"},nk={class:"flex-1 overflow-auto pr-1"},rk={class:"text-3xl font-bold text-dark"},ik={class:"mt-8 grid grid-cols-2 gap-6"},sk={class:"rounded-2xl border border-primary bg-[#FFF7ED4D] p-8 flex flex-col justify-between"},ok={class:"w-12 h-12 rounded-full bg-orangeTertiary flex items-center justify-center"},ak={class:"mt-6"},lk={class:"rounded-2xl border border-blueLight bg-[#EFF6FF4D] p-8 flex flex-col justify-between"},uk={class:"w-12 h-12 rounded-full bg-[#DBEAFE] flex items-center justify-center"},ck={class:"mt-6"},dk={class:"mt-6 rounded-2xl border border-grayBorder2 bg-white px-8 py-6 flex items-center justify-between gap-6"},fk={class:"flex items-start gap-4"},hk={class:"w-12 h-12 rounded-full bg-successLight/40 flex items-center justify-center"},pk={class:"w-[720px] max-w-[calc(100vw-48px)] bg-white rounded-2xl shadow-xl border border-grayBorder2"},vk={class:"px-8 mt-7"},gk={class:"grid grid-cols-2 gap-5"},mk={class:"w-12 h-12 rounded-full bg-grayHover flex items-center justify-center"},yk={class:"w-12 h-12 rounded-full bg-primaryLight flex items-center justify-center"},bk={class:"mt-5 rounded-xl border border-blueLight bg-grayHover px-5 py-4"},wk={class:"flex items-start gap-3"},xk={class:"pt-[2px]"},_k={class:"w-[920px] max-w-[calc(100vw-48px)] bg-white rounded-2xl shadow-xl border border-grayBorder2 flex flex-col max-h-[calc(100vh-48px)]"},Ek={class:"px-8 pt-7 pb-5 flex items-start justify-between"},Sk={class:"flex-1 overflow-auto px-8 pb-2"},Tk={class:"flex flex-col gap-2"},Ck=["onUpdate:modelValue"],Ak=["onUpdate:modelValue"],Ik=["onUpdate:modelValue"],kk={class:"relative"},Ok=["onUpdate:modelValue"],Rk={class:"px-8 py-5 border-t border-grayBorder2 flex flex-col gap-3"},Pk={key:0,class:"text-sm text-error text-center"},Nk={class:"flex items-center justify-end gap-4"},Lk=["disabled"],Zd=5,Dk=be({__name:"OnboardingStepTen",setup(e){const t=kn(),n=fn(),r=In(),i=zI(),s=z([]),o=z([]),a=Z(()=>KI(s.value.map(X=>X.name))),l=Z(()=>o.value.map(X=>({label:X.name,code:X.name.toLowerCase()}))),u=async()=>{const X=await Y1();X.success&&(s.value=X.data)},c=async()=>{const X=await xo();X.success&&(o.value=X.data.countries)},d=z(!1),f=z(!1),h=z(!1),p=z(""),v=Z(()=>{var X;return((X=t.user)==null?void 0:X.first_name)||""}),g=Z(()=>v.value?`, ${v.value}`:""),y=()=>({product_name:"",asin:"",country:"",map:"",sku:""}),b=z(Array.from({length:Zd},y)),w=()=>{n.postOnboardingChoice="sample_data",window.location.href=U1},x=async X=>{r.push({name:"onboarding_loading_products"}),(await J1({products:X})).success||(Ue("We had an error uploading the products, please try again later","error"),r.back())},E=()=>{n.postOnboardingChoice="upload_products",d.value=!0},C=()=>{d.value=!1},P=()=>{b.value=Array.from({length:Zd},y),p.value="",C(),f.value=!0},I=()=>{f.value=!1},T=()=>{b.value.push(y())},k=async()=>{const X=b.value.filter(q=>q.asin.trim()&&q.country.trim()).map(q=>({asin:q.asin.trim(),country:q.country.trim(),...q.product_name.trim()?{product_name:q.product_name.trim()}:{},...String(q.map).trim()&&!isNaN(Number(q.map))?{map:Number(q.map)}:{},...q.sku.trim()?{model_number:q.sku.trim()}:{}}));if(!X.length){p.value="Fill in ASIN and Country in at least one row.";return}p.value="",h.value=!0,I();try{await x(X)}catch{Ue("Error uploading products. Please try again.","error")}finally{h.value=!1}},B=async X=>{const q=X.filter(K=>(K==null?void 0:K.asin)&&(K==null?void 0:K.country)).map(K=>({asin:String(K.asin),country:a.value(String(K.country)),...K.product_name!=null?{product_name:String(K.product_name)}:{},...K.map_price!=null&&!isNaN(Number(K.map_price))?{map:Number(K.map_price)}:{},...K.model_number!=null?{model_number:String(K.model_number)}:{},...K.upc!=null?{upc:String(K.upc)}:{}}));await x(q)},N=async()=>{C(),await i.launchOneSchema(Dv.onboardingProductUpload,()=>{},B)},ie=X=>{X.key==="Escape"&&(d.value?C():f.value&&I())};return ct(()=>{window.addEventListener("keydown",ie),u(),c()}),dn(()=>{window.removeEventListener("keydown",ie)}),(X,q)=>(R(),G(qe,null,[m("div",tk,[m("div",nk,[m("h2",rk,"Welcome"+_e(g.value)+"!",1),q[3]||(q[3]=m("p",{class:"text-sm text-grayText mt-2 max-w-[780px]"}," Your account is ready. Complete a few steps to start monitoring real MAP activity across marketplaces ",-1)),m("div",ik,[m("div",sk,[m("div",null,[m("div",ok,[U($(he),{icon:"lucide:package",width:"22",height:"22",class:"text-primary"})]),q[0]||(q[0]=Cm('<div class="mt-6"><div class="text-base font-bold text-dark"> Add your first products </div><div class="text-sm text-grayText mt-2"> Upload up to <span class="font-semibold text-dark">50 SKUs with MAP prices</span> and start setting up monitoring results in minutes. </div></div><div class="mt-6 rounded-xl bg-orangeTertiary border border-primary p-4"><div class="text-sm font-semibold text-primary">Includes:</div><div class="text-sm text-primary mt-1">One-week free trial.</div><div class="text-sm text-primary">No credit card required.</div></div>',2))]),m("div",ak,[U(De,{label:"Upload products",color:"primary",variant:"primary",class:"w-full",onClick:E})])]),m("div",lk,[m("div",null,[m("div",uk,[U($(he),{icon:"lucide:compass",width:"22",height:"22",class:"text-blueText"})]),q[1]||(q[1]=m("div",{class:"mt-6"},[m("div",{class:"text-base font-bold text-dark"}," Explore the platform with sample data "),m("div",{class:"text-sm text-grayText mt-2"}," Navigate every module using the same example dataset to understand how Brand Alignment works before uploading your own products. ")],-1))]),m("div",ck,[U(De,{label:"Explore with sample data",color:"primary",variant:"outline",class:"w-full",onClick:w})])])]),m("div",dk,[m("div",fk,[m("div",hk,[U($(he),{icon:"lucide:lock",width:"22",height:"22",class:"text-success"})]),q[2]||(q[2]=m("div",null,[m("div",{class:"text-sm font-bold text-dark"}," Do you want to talk to somebody? "),m("div",{class:"text-sm text-grayText mt-1 max-w-[660px]"}," We get in touch fast. Talk to a Brand Alignment specialist and get guidance for complex catalogs, MAP policies, or multi-marketplace strategies. ")],-1))]),U(De,{label:"Get in touch",color:"primary",variant:"outline",class:"w-[140px]",onClick:()=>{}})])])]),(R(),pe(ha,{to:"body"},[d.value?(R(),G("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/40",onClick:Pr(C,["self"])},[m("div",pk,[q[9]||(q[9]=m("div",{class:"px-8 pt-7"},[m("div",{class:"text-lg font-bold text-dark"},"Choose upload method"),m("div",{class:"text-sm text-grayText mt-1"}," Select how you would like to add your products to the platform ")],-1)),m("div",vk,[m("div",gk,[m("button",{type:"button",class:"rounded-xl border border-grayBorder2 bg-white px-6 py-6 text-left hover:border-blueLight transition",onClick:P},[m("div",mk,[U($(he),{icon:"lucide:square-pen",width:"22",height:"22",class:"text-blueText"})]),q[4]||(q[4]=m("div",{class:"mt-4 text-sm font-bold text-dark"}," Upload manually ",-1)),q[5]||(q[5]=m("div",{class:"mt-1 text-sm text-grayText"}," Add products one by one through a simple form interface ",-1))]),m("button",{type:"button",class:"rounded-xl border border-grayBorder2 bg-white px-6 py-6 text-left hover:border-primary transition",onClick:N},[m("div",yk,[U($(he),{icon:"lucide:file-up",width:"22",height:"22",class:"text-primary"})]),q[6]||(q[6]=m("div",{class:"mt-4 text-sm font-bold text-dark"},"Upload via CSV",-1)),q[7]||(q[7]=m("div",{class:"mt-1 text-sm text-grayText"}," Bulk upload multiple products using a CSV file ",-1))])]),m("div",bk,[m("div",wk,[m("div",xk,[U($(he),{icon:"lucide:sparkles",width:"18",height:"18",class:"text-blueText"})]),q[8]||(q[8]=m("div",{class:"text-sm text-blueText"},[m("span",{class:"font-semibold"},"Recommendation"),m("div",{class:"text-sm text-blueText mt-1"}," For uploading 10+ products, we recommend using the CSV upload method for faster processing. ")],-1))])])]),m("div",{class:"px-8 py-6 flex items-center justify-end"},[m("button",{type:"button",class:"h-10 px-5 rounded-lg border border-grayBorder2 bg-white text-sm text-dark hover:bg-grayHover transition",onClick:C}," Cancel ")])])])):Ie("",!0)])),(R(),pe(ha,{to:"body"},[f.value?(R(),G("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/40",onClick:Pr(I,["self"])},[m("div",_k,[m("div",Ek,[q[10]||(q[10]=m("div",null,[m("div",{class:"text-lg font-bold text-dark"},"Add product manually"),m("div",{class:"text-sm text-grayText mt-1"}," Fill in the product details below ")],-1)),m("button",{type:"button",class:"w-8 h-8 flex items-center justify-center rounded-lg text-grayText hover:bg-grayHover transition -mt-1 -mr-1",onClick:I},[U($(he),{icon:"lucide:x",width:"18",height:"18"})])]),m("div",Sk,[m("div",Tk,[q[12]||(q[12]=m("div",{class:"grid grid-cols-[200px_140px_140px_160px_120px] gap-x-3 pb-1"},[m("div",{class:"text-sm font-semibold text-dark"},"Product Name"),m("div",{class:"text-sm font-semibold text-dark"},[yt(" ASIN "),m("span",{class:"text-primary"}
46,"*")]),m("div",{class:"text-sm font-semibold text-dark"},"SKU"),m("div",{class:"text-sm font-semibold text-dark"},[yt(" Country "),m("span",{class:"text-primary"},"*")]),m("div",{class:"text-sm font-semibold text-dark"},"MAP Price")],-1)),(R(!0),G(qe,null,qt(b.value,(K,ae)=>(R(),G("div",{key:ae,class:"grid grid-cols-[200px_140px_140px_160px_120px] gap-x-3"},[yr(m("input",{"onUpdate:modelValue":se=>K.product_name=se,type:"text",class:"h-10 px-3 rounded-lg border border-grayBorder2 text-sm text-dark focus:outline-none focus:border-primary"},null,8,Ck),[[br,K.product_name]]),yr(m("input",{"onUpdate:modelValue":se=>K.asin=se,type:"text",class:"h-10 px-3 rounded-lg border border-grayBorder2 text-sm text-dark focus:outline-none focus:border-primary"},null,8,Ak),[[br,K.asin]]),yr(m("input",{"onUpdate:modelValue":se=>K.sku=se,type:"text",class:"h-10 px-3 rounded-lg border border-grayBorder2 text-sm text-dark focus:outline-none focus:border-blueLight"},null,8,Ik),[[br,K.sku]]),U(ek,{modelValue:K.country,"onUpdate:modelValue":se=>K.country=se,options:l.value,placeholder:"Select"},null,8,["modelValue","onUpdate:modelValue","options"]),m("div",kk,[q[11]||(q[11]=m("span",{class:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-grayText pointer-events-none"},"$",-1)),yr(m("input",{"onUpdate:modelValue":se=>K.map=se,type:"number",min:"0",step:"0.01",class:"h-10 w-full pl-6 pr-3 rounded-lg border border-grayBorder2 text-sm text-dark focus:outline-none focus:border-blueLight"},null,8,Ok),[[br,K.map]])])]))),128))]),m("button",{type:"button",class:"mt-4 mb-2 flex items-center gap-2 h-9 px-4 rounded-lg border border-primary text-sm font-medium text-primary hover:bg-orangeTertiary transition",onClick:T},[U($(he),{icon:"lucide:plus",width:"15",height:"15"}),q[13]||(q[13]=yt(" Add another ",-1))])]),m("div",Rk,[p.value?(R(),G("p",Pk,_e(p.value),1)):Ie("",!0),m("div",Nk,[m("button",{type:"button",class:"h-10 px-5 rounded-lg border border-grayBorder2 bg-white text-sm text-dark hover:bg-grayHover transition shrink-0",onClick:I}," Cancel "),m("button",{type:"button",class:"w-[180px] h-10 rounded-lg bg-primary text-white text-sm font-semibold hover:opacity-90 transition disabled:opacity-50 disabled:cursor-not-allowed",disabled:h.value,onClick:k},_e(h.value?"Saving…":"Save and continue"),9,Lk)])])])])):Ie("",!0)]))],64))}}),Mk=be({__name:"OnboardingGetStarted",setup(e){return(t,n)=>(R(),pe(Wi,{showWelcomeTitle:!1,showStepIndicator:!1},{default:cn(()=>[U(Dk)]),_:1}))}}),Uk={class:"text-center"},Fk={class:"flex flex-col items-center"},$k={class:"w-24 h-24 rounded-full bg-orangeTertiary flex items-center justify-center overflow-hidden shrink-0"},jk={class:"w-16 h-16 rounded-full bg-primary flex items-center justify-center overflow-hidden shrink-0"},Bk={class:"mt-10 flex items-center justify-center gap-4"},Vk={class:"box-wrap box-1 w-14 h-14 rounded-xl border border-primary bg-white flex items-center justify-center"},qk={class:"box-wrap box-2 w-14 h-14 rounded-xl border border-primary bg-white flex items-center justify-center"},Hk={class:"box-wrap box-3 w-14 h-14 rounded-xl border border-primary bg-white flex items-center justify-center"},zk=1e4,ef=5e3,Gk=be({__name:"LoadingProducts",setup(e){const t=In();let n,r;const i=async()=>{const u=await xo();if(!u.success)return;const{user_status:c}=u.data;if(c==="FreeTrial"||c==="ScrapingWithResults"){o();const d=wp(),f=Tr();console.log("status reached:",c),console.log("token:",f),console.log(`waiting ${ef}ms before redirect…`),r=window.setTimeout(()=>{console.log("redirecting with token:",Tr()),_o({user:{...d,user_status:c,user_status_id:c==="FreeTrial"?4:10},firstLoginSetup:!1})},ef)}},s=()=>{n=window.setInterval(i,zk)},o=()=>{n!==void 0&&(window.clearInterval(n),n=void 0)},a=()=>{r!==void 0&&(window.clearTimeout(r),r=void 0)},l=()=>{o(),a(),t.push("/login")};return ct(()=>{s()}),dn(()=>{o(),a()}),(u,c)=>(R(),pe(Wi,{showWelcomeTitle:!1,showStepIndicator:!1,containerVariant:"narrow"},{default:cn(()=>[m("div",Uk,[m("div",Fk,[m("div",$k,[m("div",jk,[U($(he),{icon:"lucide:search",width:"26",height:"26",class:"text-white"})])]),c[0]||(c[0]=m("h2",{class:"text-3xl font-bold text-dark mt-8"}," We're searching your products ",-1)),c[1]||(c[1]=m("p",{class:"text-sm text-grayText mt-3 max-w-[420px]"},[yt(" This might take a few minutes."),m("br"),yt(" We will let you know as soon as we're done. ")],-1)),m("div",Bk,[m("div",Vk,[U($(he),{class:"text-primary",icon:"lucide:box",width:"22",height:"22"})]),m("div",qk,[U($(he),{class:"text-primary",icon:"lucide:box",width:"22",height:"22"})]),m("div",Hk,[U($(he),{class:"text-primary",icon:"lucide:box",width:"22",height:"22"})])]),c[2]||(c[2]=m("div",{class:"mt-6 flex items-center justify-center gap-2"},[m("span",{class:"dot dot-1"}),m("span",{class:"dot dot-2"}),m("span",{class:"dot dot-3"})],-1)),m("button",{type:"button",class:"mt-10 text-xs text-grayText hover:text-primaryText transition cursor-pointer",onClick:l}," Back to log in ")])])]),_:1}))}}),Kk=Eo(Gk,[["__scopeId","data-v-5ed1a7e0"]]),Wk={class:"flex flex-col items-center text-center"},Jk={class:"w-16 h-16 rounded-full bg-orangeTertiary flex items-center justify-center"},Yk={class:"text-2xl font-bold text-dark mt-6"},Xk={class:"mt-6 w-full flex flex-col gap-3 text-left"},Qk={class:"w-5 h-5 rounded-md bg-success flex items-center justify-center shrink-0"},Zk={class:"mt-8 w-full"},eO=7,tf=1e3*60*60*24,tO=be({__name:"TrialExpired",setup(e){var o;const t=kn(),n=z((o=t.user)==null?void 0:o.free_trial_started_at),r=["24/7 automated monitoring across all marketplaces","Violation alerts via email","Direct seller communication tools","Historical trend anal
46ysis & reporting"],i=Z(()=>{if(!n.value)return null;const a=new Date(n.value);if(Number.isNaN(a.getTime()))return null;const l=a.getTime()+eO*tf,u=Date.now()-l;return u<0?null:Math.floor(u/tf)}),s=Z(()=>{const a=i.value;return a===null?"Your free trial has ended":a===0?"Your free trial expired today":a===1?"Your free trial expired 1 day ago":`Your free trial expired ${a} days ago`});return ct(async()=>{if(n.value)return;const a=await xo();a.success&&(n.value=a.data.free_trial_started_at)}),(a,l)=>(R(),pe(Wi,{showWelcomeTitle:!1,showStepIndicator:!1,containerVariant:"narrow"},{default:cn(()=>[m("div",Wk,[m("div",Jk,[U($(he),{icon:"lucide:clock",width:"28",height:"28",class:"text-primary"})]),m("h1",Yk,_e(s.value),1),l[0]||(l[0]=m("p",{class:"text-sm text-grayText mt-3 leading-6 max-w-[440px]"}," Unlock real-time monitoring, automated alerts, and enforcement tools by upgrading your plan. ",-1)),m("ul",Xk,[(R(),G(qe,null,qt(r,u=>m("li",{key:u,class:"flex items-center gap-3 text-sm text-dark"},[m("span",Qk,[U($(he),{icon:"lucide:check",width:"14",height:"14",class:"text-white"})]),m("span",null,_e(u),1)])),64))]),m("div",Zk,[U(De,{label:"Contact sales",color:"primary",class:"w-full",onClick:()=>{}})])])]),_:1}))}}),nO={class:"bg-white h-full w-[700px] ml-auto rounded-lg flex items-center justify-center overflow-y-scroll"},rO={key:0,class:"flex flex-col gap-4 w-[450px] h-[90%]"},iO={key:1,class:"-mt-12 w-[400px] h-[90%] flex items-center"},sO={class:"text-grayPrimary flex flex-col items-center text-lg text-center gap-2 justify-center w-full"},oO={class:"font-medium text-xl bg-gray p-2 px-6 rounded-md my-4"},aO={__name:"ForgetPass",setup(e){const t=Br(),n=z(""),r=z(!1),i=z(!1),s=z(!1),o=Z(()=>t.theme),a=Z(()=>o.value==="main");st(n,()=>{s.value=!1});const l=async()=>{r.value=!0;const u=Pv(n.value);if(s.value=!u,u)try{const c=o.value==="main"?1:o.value==="thorncrest"?4:1;await Ew(n.value,c),i.value=!0}finally{r.value=!1}else r.value=!1};return(u,c)=>(R(),G("div",{id:"container",class:Se({"thorncrest-theme":!a.value})},[m("div",nO,[i.value?(R(),G("div",iO,[m("div",sO,[U($(he),{icon:"lucide:mail",width:"50",height:"50"}),m("div",null,[c[4]||(c[4]=yt(" A email has been sent to: ",-1)),c[5]||(c[5]=m("br",null,null,-1)),m("p",oO,_e(n.value),1),c[6]||(c[6]=yt(" please check your inbox to continue with the recovery process. ",-1))]),m("div",{class:"w-full flex justify-between mt-14"},[c[7]||(c[7]=m("a",{href:"/login",class:"text-primaryText hover:text-primary cursor-pointer transition duration-300 text-xs self-start"},"Go back to Login",-1)),m("span",{onClick:l,class:"text-primaryText hover:text-primary cursor-pointer transition duration-300 text-xs self-start"},"Resend mail")])])])):(R(),G("div",rO,[c[1]||(c[1]=m("h2",{class:"text-[30px] font-bold text-dark dark:text-gray text-left my-2 mt-16"}," Forgot Your Password ",-1)),c[2]||(c[2]=m("div",{class:"font-nunito text-black text-base my-6"}," To recover your password, please enter the email associated with your account. ",-1)),U(Lt,{label:"Email Address",placeholder:"Enter your email",type:"email",variant:s.value?"error":"primary",value:n.value,message:s.value?"Invalid email":void 0,disabled:r.value,readonly:!1,onChange:c[0]||(c[0]=d=>{n.value=d}),class:"mb-2"},null,8,["variant","value","message","disabled"]),U(De,{label:"Send",color:"primary",loading:r.value,onClick:l,disabled:s.value||r.value,class:"w-full mb-4"},null,8,["loading","disabled"]),c[3]||(c[3]=m("a",{href:"/login",class:"text-primaryText hover:text-primary cursor-pointer transition duration-300 text-xs"},"Go back to Login",-1))]))])],2))}},lO=Eo(aO,[["__scopeId","data-v-f3657997"]]),uO={class:"bg-white h-full w-[700px] ml-auto rounded-lg flex items-center justify-center overflow-y-scroll"},cO={class:"flex items-center justify-center w-[450px] h-[90%]"},dO={key:0,class:"flex flex-col gap-4"},fO={key:1,class:"text-grayPrimary flex flex-col items-center text-2xl text-center gap-4 font-medium mt-16"},hO={key:2,class:"text-grayPrimary flex flex-col items-center text-2xl text-center gap-4 font-medium mt-16"},pO={key:0,class:"text-base text-error mt-2"},vO={__name:"ChangePass",setup(e){const t=In(),n=Li(),r=Br(),i=z(!1),s=z(!1),o=z(""),a=z(""),l=z(""),u=z({}),c=z(!1),d=Z(()=>r.theme),f=Z(()=>d.value==="main");st([a,l],()=>{const v={};Bd(a.value)?l.value.length&&a.value!==l.value&&(v.newPass="Passwords does not match"):v.newPass=a.value.length?"Invalid password format":"",Bd(l.value)?a.value.length&&a.value!==l.value&&(v.newPassConfirm="Passwords does not match"):v.newPassConfirm=l.value.length?"Invalid password format":"",u.value=v});const h=Z(()=>Object.keys(u.value).length!==0||!a.value.length||!l.value.length||a.value!==l.value),p=async()=>{var v,g,y,b;c.value=!0,o.value="";try{const w=n.query[""];if(w){const x=Array.isArray(w)?w.join(""):w,E=await Sw(a.value,x);E!=null&&E.success?(i.value=!0,setTimeout(()=>{t.push("/")},3e3)):(s.value=!0,E&&typeof E=="object"&&("response"in E&&((g=(v=E.response)==null?void 0:v.data)!=null&&g.message)?o.value=E.response.data.message:"message"in E&&E.message&&(o.value=E.message)))}else s.value=!0}catch(w){s.value=!0,(b=(y=w==null?void 0:w.response)==null?void 0:y.data)!=null&&b.message?o.value=w.response.data.message:w!=null&&w.message&&(o.value=w.message)}finally{c.value=!1,a.value="",l.value=""}};return(v,g)=>{const y=cu("BsCheckCircle"),b=cu("FiAlertCircle");return R(),G("div",{id:"container",class:Se({"thorncrest-theme":!f.value})},[m("div",uO,[m("div",cO,[!i.value&&!s.value?(R(),G("div",dO,[g[3]||(g[3]=m("h2",{class:"text-[30px] font-bold text-dark my-2"},"Change Password",-1)),g[4]||(g[4]=m("div",{class:"font-nunito text-black text-base my-2"},[m("p",null," Passwords must contain at least 8 characters, one capital letter, one special character, and one number. "),m("p",null,"You cannot reuse any of your last 5 passwords.")],-1)),U(Lt,{label:"New Password",placeholder:"Enter new password",type:"password",variant:u.value.newPass?"error":"primary",value:a.value,message:u.value.newPass?"Invalid password format":void 0,required:"",disabled:c.value,readonly:!1,onChange:g[0]||(g[0]=w=>a.value=w),class:"mb-4"},null,8,["variant","value","message","disabled"]),U(Lt,{label:"Confirm Password",placeholder:"Re-type new password",type:"password",variant:u.value.newPassConfirm?"error":"primary",value:a.value,message:u.value.newPassConfirm?"Invalid password format":void 0,required:"",disabled:c.value,readonly:!1,onChange:g[1]||(g[1]=w=>l.value=w),class:"mb-4"},null,8,["variant","value","message","disabled"]),U(De,{label:"Change Password",color:"primary",loading:c.value,onClick:p,class:"w-full mb-4",disabled:h.value||c.value},null,8,["loading","disabled"])])):i.value?(R(),G("div",fO,[U(y,{class:"text-success",size:"100px"}),g[5]||(g[5]=m("p",null,"Password updated correctly",-1))])):(R(),G("div",hO,[U(b,{class:"text-error",size:"100px"}),g[6]||(g[6]=m("p",null,"An error occurred",-1)),o.value?(R(),G("p",pO,_e(o.value),1)):Ie("",!0),U(De,{label:"Go back to login",color:"primary",onClick:g[2]||(g[2]=w=>$(t).push("/login")),class:"mt-4"})]))])])],2)}}},gO=Eo(vO,[["__scopeId","data-v-eb0bbd22"]]),So=x0({history:e0("/"),routes:[{path:"/",name:"Home",component:E0}
46,{path:"/login",name:"login",component:uT},{path:"/platform",name:"PlatformSelect",component:xT},{path:"/trial-expired",name:"TrialExpired",component:tO},{path:"/first-setup",redirect:"/onboarding/stepper?step=1"},{path:"/first-login-setup",redirect:"/onboarding/stepper?step=1"},{path:"/onboarding/stepper",name:"onboarding_stepper",component:uI},{path:"/onboarding/configuring-account",name:"onboarding_configuring_account",component:kI},{path:"/onboarding/get-started",name:"onboarding_get_started",component:Mk},{path:"/onboarding/loading-products",name:"onboarding_loading_products",component:Kk},{path:"/onboarding/send-email",name:"onboarding_send_email",component:nC},{path:"/onboarding/confirm-email",name:"onboarding_confirm_email",component:pC},{path:"/distributors/create-account",name:"signup_distributor",component:NT},{path:"/signup",name:"signup",component:JT},{path:"/signup/check-email",redirect:e=>({path:"/onboarding/send-email",query:e.query})},{path:"/signup/confirm-email",redirect:e=>({path:"/onboarding/confirm-email",query:e.query})},{path:"/forgot-password",name:"ForgetPass",component:lO},{path:"/recover-password",name:"ChangePass",component:gO}]}),Zn={ONBOARDING_PROCESS:2,PENDING_CONFIGURATION:3,FREE_TRIAL_EXPIRED:5,SCRAPING:9},mO={onboarding_stepper:new Set([Zn.ONBOARDING_PROCESS,Zn.PENDING_CONFIGURATION]),onboarding_configuring_account:new Set([Zn.PENDING_CONFIGURATION]),onboarding_get_started:new Set([Zn.PENDING_CONFIGURATION]),onboarding_loading_products:new Set([Zn.PENDING_CONFIGURATION,Zn.SCRAPING])};So.beforeEach((e,t,n)=>{var a,l;const r=kn(),i=new Set(["login","signup","signup_distributor","onboarding_send_email","onboarding_confirm_email","ForgetPass","ChangePass"]),s=String(e.name||"");if(i.has(s)){n();return}if(!r.isLoggedIn()){n({name:"login"});return}if(((a=r.user)==null?void 0:a.user_status_id)===Zn.FREE_TRIAL_EXPIRED){n({name:"TrialExpired"});return}const o=mO[s];if(o){const u=(l=r.user)==null?void 0:l.user_status_id;if(typeof u!="number"||!o.has(u)){_o({user:r.user,firstLoginSetup:!1}),n(!1);return}}n()});const Mv=Object.freeze(Object.defineProperty({__proto__:null,default:So},Symbol.toStringTag,{value:"Module"})),To=yh(_0),yO=Mb();To.use(yO);To.use(So);Qd&&To.use(BI({clientId:Qd,devMode:!1,importConfig:{type:"local"},className:"oneschema-iframe"}));const bO=Br();bO.initializeTheme();const wO=kv();wO.init("643a58a7f5c557d778814364fd3b54a1",{autocapture:!0});To.mount("#app");

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.