var Cu=Object.defineProperty;var Eu=(t,e,n)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var j=(t,e,n)=>Eu(t,typeof e!="symbol"?e+"":e,n);/** * @vue/shared v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function dr(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Ee={},Fn=[],Ut=()=>{},ua=()=>!1,os=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),hr=t=>t.startsWith("onUpdate:"),je=Object.assign,pr=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Iu=Object.prototype.hasOwnProperty,Ce=(t,e)=>Iu.call(t,e),ae=Array.isArray,$n=t=>_i(t)==="[object Map]",ca=t=>_i(t)==="[object Set]",Br=t=>_i(t)==="[object Date]",ue=t=>typeof t=="function",Me=t=>typeof t=="string",Ot=t=>typeof t=="symbol",_e=t=>t!==null&&typeof t=="object",fa=t=>(_e(t)||ue(t))&&ue(t.then)&&ue(t.catch),da=Object.prototype.toString,_i=t=>da.call(t),Au=t=>_i(t).slice(8,-1),ha=t=>_i(t)==="[object Object]",as=t=>Me(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ri=dr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ls=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},Ou=/-\w/g,Tt=ls(t=>t.replace(Ou,e=>e.slice(1).toUpperCase())),Lu=/\B([A-Z])/g,pn=ls(t=>t.replace(Lu,"-$1").toLowerCase()),us=ls(t=>t.charAt(0).toUpperCase()+t.slice(1)),bs=ls(t=>t?`on${us(t)}`:""),cn=(t,e)=>!Object.is(t,e),Hi=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},gr=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Pu=t=>{const e=Me(t)?Number(t):NaN;return isNaN(e)?t:e};let Hr;const cs=()=>Hr||(Hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mr(t){if(ae(t)){const e={};for(let n=0;n{if(n){const i=n.split(Mu);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function vr(t){let e="";if(Me(t))e=t;else if(ae(t))for(let n=0;n!!(t&&t.__v_isRef===!0),Hu=t=>Me(t)?t:t==null?"":ae(t)||_e(t)&&(t.toString===da||!ue(t.toString))?ma(t)?Hu(t.value):JSON.stringify(t,va,2):String(t),va=(t,e)=>ma(e)?va(t,e.value):$n(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s],r)=>(n[Ss(i,r)+" =>"]=s,n),{})}:ca(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Ss(n))}:Ot(e)?Ss(e):_e(e)&&!ae(e)&&!ha(e)?String(e):e,Ss=(t,e="")=>{var n;return Ot(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** * @vue/reactivity v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ze;class ya{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ze,!e&&Ze&&(this.index=(Ze.scopes||(Ze.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e0&&--this._on===0&&(Ze=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n0)return;if(ai){let e=ai;for(ai=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;oi;){let e=oi;for(oi=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){t||(t=i)}e=n}}if(t)throw t}function ka(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function _a(t){let e,n=t.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),Sr(i),Uu(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}t.deps=e,t.depsTail=n}function Us(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Ca(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Ca(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===gi)||(t.globalVersion=gi,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Us(t))))return;t.flags|=2;const e=t.dep,n=Ie,i=At;Ie=t,At=!0;try{ka(t);const s=t.fn(t._value);(e.version===0||cn(s,t._value))&&(t.flags|=128,t._value=s,e.version++)}catch(s){throw e.version++,s}finally{Ie=n,At=i,_a(t),t.flags&=-3}}function Sr(t,e=!1){const{dep:n,prevSub:i,nextSub:s}=t;if(i&&(i.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Sr(r,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function Uu(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let At=!0;const Ea=[];function Gt(){Ea.push(At),At=!1}function Qt(){const t=Ea.pop();At=t===void 0?!0:t}function Wr(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Ie;Ie=void 0;try{e()}finally{Ie=n}}}let gi=0;class ju{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class xr{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ie||!At||Ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ie)n=this.activeLink=new ju(Ie,this),Ie.deps?(n.prevDep=Ie.depsTail,Ie.depsTail.nextDep=n,Ie.depsTail=n):Ie.deps=Ie.depsTail=n,Ia(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=Ie.depsTail,n.nextDep=void 0,Ie.depsTail.nextDep=n,Ie.depsTail=n,Ie.deps===n&&(Ie.deps=i)}return n}trigger(e){this.version++,gi++,this.notify(e)}notify(e){wr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{br()}}}function Ia(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)Ia(i)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Vi=new WeakMap,_n=Symbol(""),js=Symbol(""),mi=Symbol("");function tt(t,e,n){if(At&&Ie){let i=Vi.get(t);i||Vi.set(t,i=new Map);let s=i.get(n);s||(i.set(n,s=new xr),s.map=i,s.key=n),s.track()}}function zt(t,e,n,i,s,r){const o=Vi.get(t);if(!o){gi++;return}const a=l=>{l&&l.trigger()};if(wr(),e==="clear")o.forEach(a);else{const l=ae(t),u=l&&as(n);if(l&&n==="length"){const c=Number(i);o.forEach((f,p)=>{(p==="length"||p===mi||!Ot(p)&&p>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(mi)),e){case"add":l?u&&a(o.get("length")):(a(o.get(_n)),$n(t)&&a(o.get(js)));break;case"delete":l||(a(o.get(_n)),$n(t)&&a(o.get(js)));break;case"set":$n(t)&&a(o.get(_n));break}}br()}function Vu(t,e){const n=Vi.get(t);return n&&n.get(e)}function Ln(t){const e=Se(t);return e===t?e:(tt(e,"iterate",mi),bt(t)?e:e.map(Lt))}function fs(t){return tt(t=Se(t),"iterate",mi),t}function rn(t,e){return Yt(t)?Un(Xt(t)?Lt(e):e):Lt(e)}const qu={__proto__:null,[Symbol.iterator](){return Ts(this,Symbol.iterator,t=>rn(this,t))},concat(...t){return Ln(this).concat(...t.map(e=>ae(e)?Ln(e):e))},entries(){return Ts(this,"entries",t=>(t[1]=rn(this,t[1]),t))},every(t,e){return jt(this,"every",t,e,void 0,arguments)},filter(t,e){return jt(this,"filter",t,e,n=>n.map(i=>rn(this,i)),arguments)},find(t,e){return jt(this,"find",t,e,n=>rn(this,n),arguments)},findIndex(t,e){return jt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return jt(this,"findLast",t,e,n=>rn(this,n),arguments)},findLastIndex(t,e){return jt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return jt(this,"forEach",t,e,void 0,arguments)},includes(...t){return ks(this,"includes",t)},indexOf(...t){return ks(this,"indexOf",t)},join(t){return Ln(this).join(t)},lastIndexOf(...t){return ks(this,"lastIndexOf",t)},map(t,e){return jt(this,"map",t,e,void 0,arguments)},pop(){return Gn(this,"pop")},push(...t){return Gn(this,"push",t)},reduce(t,...e){return Ur(this,"reduce",t,e)},reduceRight(t,...e){return Ur(this,"reduceRight",t,e)},shift(){return Gn(this,"shift")},some(t,e){return jt(this,"some",t,e,void 0,arguments)},splice(...t){return Gn(this,"splice",t)},toReversed(){return Ln(this).toReversed()},toSorted(t){return Ln(this).toSorted(t)},toSpliced(...t){return Ln(this).toSpliced(...t)},unshift(...t){return Gn(this,"unshift",t)},values(){return Ts(this,"values",t=>rn(this,t))}};function Ts(t,e,n){const i=fs(t),s=i[e]();return i!==t&&!bt(t)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=n(r.value)),r}),s}const zu=Array.prototype;function jt(t,e,n,i,s,r){const o=fs(t),a=o!==t&&!bt(t),l=o[e];if(l!==zu[e]){const f=l.apply(t,r);return a?Lt(f):f}let u=n;o!==t&&(a?u=function(f,p){return n.call(this,rn(t,f),p,t)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,t)}));const c=l.call(o,u,i);return a&&s?s(c):c}function Ur(t,e,n,i){const s=fs(t);let r=n;return s!==t&&(bt(t)?n.length>3&&(r=function(o,a,l){return n.call(this,o,a,l,t)}):r=function(o,a,l){return n.call(this,o,rn(t,a),l,t)}),s[e](r,...i)}function ks(t,e,n){const i=Se(t);tt(i,"iterate",mi);const s=i[e](...n);return(s===-1||s===!1)&&hs(n[0])?(n[0]=Se(n[0]),i[e](...n)):s}function Gn(t,e,n=[]){Gt(),wr();const i=Se(t)[e].apply(t,n);return br(),Qt(),i}const Ku=dr("__proto__,__v_isRef,__isVue"),Aa=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ot));function Xu(t){Ot(t)||(t=String(t));const e=Se(this);return tt(e,"has",t),e.hasOwnProperty(t)}class Oa{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,i){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(s?r?sc:Ma:r?Ra:Pa).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const o=ae(e);if(!s){let l;if(o&&(l=qu[n]))return l;if(n==="hasOwnProperty")return Xu}const a=Reflect.get(e,n,Re(e)?e:i);if((Ot(n)?Aa.has(n):Ku(n))||(s||tt(e,"get",n),r))return a;if(Re(a)){const l=o&&as(n)?a:a.value;return s&&_e(l)?qs(l):l}return _e(a)?s?qs(a):ds(a):a}}class La extends Oa{constructor(e=!1){super(!1,e)}set(e,n,i,s){let r=e[n];const o=ae(e)&&as(n);if(!this._isShallow){const u=Yt(r);if(!bt(i)&&!Yt(i)&&(r=Se(r),i=Se(i)),!o&&Re(r)&&!Re(i))return u||(r.value=i),!0}const a=o?Number(n)t,Pi=t=>Reflect.getPrototypeOf(t);function Zu(t,e,n){return function(...i){const s=this.__v_raw,r=Se(s),o=$n(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=s[t](...i),c=n?Vs:e?Un:Lt;return!e&&tt(r,"iterate",l?js:_n),je(Object.create(u),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:a?[c(f[0]),c(f[1])]:c(f),done:p}}})}}function Ri(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function ec(t,e){const n={get(s){const r=this.__v_raw,o=Se(r),a=Se(s);t||(cn(s,a)&&tt(o,"get",s),tt(o,"get",a));const{has:l}=Pi(o),u=e?Vs:t?Un:Lt;if(l.call(o,s))return u(r.get(s));if(l.call(o,a))return u(r.get(a));r!==o&&r.get(s)},get size(){const s=this.__v_raw;return!t&&tt(Se(s),"iterate",_n),s.size},has(s){const r=this.__v_raw,o=Se(r),a=Se(s);return t||(cn(s,a)&&tt(o,"has",s),tt(o,"has",a)),s===a?r.has(s):r.has(s)||r.has(a)},forEach(s,r){const o=this,a=o.__v_raw,l=Se(a),u=e?Vs:t?Un:Lt;return!t&&tt(l,"iterate",_n),a.forEach((c,f)=>s.call(r,u(c),u(f),o))}};return je(n,t?{add:Ri("add"),set:Ri("set"),delete:Ri("delete"),clear:Ri("clear")}:{add(s){!e&&!bt(s)&&!Yt(s)&&(s=Se(s));const r=Se(this);return Pi(r).has.call(r,s)||(r.add(s),zt(r,"add",s,s)),this},set(s,r){!e&&!bt(r)&&!Yt(r)&&(r=Se(r));const o=Se(this),{has:a,get:l}=Pi(o);let u=a.call(o,s);u||(s=Se(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,r),u?cn(r,c)&&zt(o,"set",s,r):zt(o,"add",s,r),this},delete(s){const r=Se(this),{has:o,get:a}=Pi(r);let l=o.call(r,s);l||(s=Se(s),l=o.call(r,s)),a&&a.call(r,s);const u=r.delete(s);return l&&zt(r,"delete",s,void 0),u},clear(){const s=Se(this),r=s.size!==0,o=s.clear();return r&&zt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Zu(s,t,e)}),n}function Tr(t,e){const n=ec(t,e);return(i,s,r)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?i:Reflect.get(Ce(n,s)&&s in i?n:i,s,r)}const tc={get:Tr(!1,!1)},nc={get:Tr(!1,!0)},ic={get:Tr(!0,!1)};const Pa=new WeakMap,Ra=new WeakMap,Ma=new WeakMap,sc=new WeakMap;function rc(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function oc(t){return t.__v_skip||!Object.isExtensible(t)?0:rc(Au(t))}function ds(t){return Yt(t)?t:kr(t,!1,Gu,tc,Pa)}function ac(t){return kr(t,!1,Yu,nc,Ra)}function qs(t){return kr(t,!0,Qu,ic,Ma)}function kr(t,e,n,i,s){if(!_e(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=oc(t);if(r===0)return t;const o=s.get(t);if(o)return o;const a=new Proxy(t,r===2?i:n);return s.set(t,a),a}function Xt(t){return Yt(t)?Xt(t.__v_raw):!!(t&&t.__v_isReactive)}function Yt(t){return!!(t&&t.__v_isReadonly)}function bt(t){return!!(t&&t.__v_isShallow)}function hs(t){return t?!!t.__v_raw:!1}function Se(t){const e=t&&t.__v_raw;return e?Se(e):t}function _r(t){return!Ce(t,"__v_skip")&&Object.isExtensible(t)&&pa(t,"__v_skip",!0),t}const Lt=t=>_e(t)?ds(t):t,Un=t=>_e(t)?qs(t):t;function Re(t){return t?t.__v_isRef===!0:!1}function k(t){return Da(t,!1)}function lc(t){return Da(t,!0)}function Da(t,e){return Re(t)?t:new uc(t,e)}class uc{constructor(e,n){this.dep=new xr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Se(e),this._value=n?e:Lt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,i=this.__v_isShallow||bt(e)||Yt(e);e=i?e:Se(e),cn(e,n)&&(this._rawValue=e,this._value=i?e:Lt(e),this.dep.trigger())}}function Ip(t){t.dep&&t.dep.trigger()}function Cr(t){return Re(t)?t.value:t}function Ap(t){return ue(t)?t():Cr(t)}const cc={get:(t,e,n)=>e==="__v_raw"?t:Cr(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const s=t[e];return Re(s)&&!Re(n)?(s.value=n,!0):Reflect.set(t,e,n,i)}};function Na(t){return Xt(t)?t:new Proxy(t,cc)}function fc(t){const e=ae(t)?new Array(t.length):{};for(const n in t)e[n]=Fa(t,n);return e}class dc{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=Se(e);let s=!0,r=e;if(!ae(e)||!as(String(n)))do s=!hs(r)||bt(r);while(s&&(r=r.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=Cr(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Re(this._raw[this._key])){const n=this._object[this._key];if(Re(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return Vu(this._raw,this._key)}}class hc{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Op(t,e,n){return Re(t)?t:ue(t)?new hc(t):_e(t)&&arguments.length>1?Fa(t,e,n):k(t)}function Fa(t,e,n){return new dc(t,e,n)}class pc{constructor(e,n,i){this.fn=e,this.setter=n,this._value=void 0,this.dep=new xr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Ie!==this)return Ta(this,!0),!0}get value(){const e=this.dep.track();return Ca(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function gc(t,e,n=!1){let i,s;return ue(t)?i=t:(i=t.get,s=t.set),new pc(i,s,n)}const Mi={},qi=new WeakMap;let Tn;function mc(t,e=!1,n=Tn){if(n){let i=qi.get(n);i||qi.set(n,i=[]),i.push(t)}}function vc(t,e,n=Ee){const{immediate:i,deep:s,once:r,scheduler:o,augmentJob:a,call:l}=n,u=O=>s?O:bt(O)||s===!1||s===0?Kt(O,1):Kt(O);let c,f,p,h,d=!1,g=!1;if(Re(t)?(f=()=>t.value,d=bt(t)):Xt(t)?(f=()=>u(t),d=!0):ae(t)?(g=!0,d=t.some(O=>Xt(O)||bt(O)),f=()=>t.map(O=>{if(Re(O))return O.value;if(Xt(O))return u(O);if(ue(O))return l?l(O,2):O()})):ue(t)?e?f=l?()=>l(t,2):t:f=()=>{if(p){Gt();try{p()}finally{Qt()}}const O=Tn;Tn=c;try{return l?l(t,3,[h]):t(h)}finally{Tn=O}}:f=Ut,e&&s){const O=f,W=s===!0?1/0:s;f=()=>Kt(O(),W)}const w=ba(),x=()=>{c.stop(),w&&w.active&&pr(w.effects,c)};if(r&&e){const O=e;e=(...W)=>{O(...W),x()}}let R=g?new Array(t.length).fill(Mi):Mi;const L=O=>{if(!(!(c.flags&1)||!c.dirty&&!O))if(e){const W=c.run();if(s||d||(g?W.some((C,D)=>cn(C,R[D])):cn(W,R))){p&&p();const C=Tn;Tn=c;try{const D=[W,R===Mi?void 0:g&&R[0]===Mi?[]:R,h];R=W,l?l(e,3,D):e(...D)}finally{Tn=C}}}else c.run()};return a&&a(L),c=new Sa(f),c.scheduler=o?()=>o(L,!1):L,h=O=>mc(O,!1,c),p=c.onStop=()=>{const O=qi.get(c);if(O){if(l)l(O,4);else for(const W of O)W();qi.delete(c)}},e?i?L(!0):R=c.run():o?o(L.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function Kt(t,e=1/0,n){if(e<=0||!_e(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Re(t))Kt(t.value,e,n);else if(ae(t))for(let i=0;i{Kt(i,e,n)});else if(ha(t)){for(const i in t)Kt(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&Kt(t[i],e,n)}return t}/** * @vue/runtime-core v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ci(t,e,n,i){try{return i?t(...i):t()}catch(s){Ei(s,e,n)}}function Pt(t,e,n,i){if(ue(t)){const s=Ci(t,e,n,i);return s&&fa(s)&&s.catch(r=>{Ei(r,e,n)}),s}if(ae(t)){const s=[];for(let r=0;r>>1,s=ct[i],r=vi(s);r=vi(n)?ct.push(t):ct.splice(wc(e),0,t),t.flags|=1,Ba()}}function Ba(){zi||(zi=$a.then(Wa))}function bc(t){ae(t)?Bn.push(...t):on&&t.id===-1?on.splice(Mn+1,0,t):t.flags&1||(Bn.push(t),t.flags|=1),Ba()}function jr(t,e,n=Nt+1){for(;nvi(n)-vi(i));if(Bn.length=0,on){on.push(...e);return}for(on=e,Mn=0;Mnt.id==null?t.flags&2?-1:1/0:t.id;function Wa(t){try{for(Nt=0;Nt{i._d&&Gi(-1);const r=Ki(e);let o;try{o=t(...s)}finally{Ki(r),i._d&&Gi(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Lp(t,e){if(Qe===null)return t;const n=vs(Qe),i=t.dirs||(t.dirs=[]);for(let s=0;s1)return n&&ue(e)?e.call(i&&i.proxy):e}}function xc(){return!!(Xn()||Cn)}const Tc=Symbol.for("v-scx"),kc=()=>Ht(Tc);function Ct(t,e,n){return Va(t,e,n)}function Va(t,e,n=Ee){const{immediate:i,deep:s,flush:r,once:o}=n,a=je({},n),l=e&&i||!e&&r!=="post";let u;if(Vn){if(r==="sync"){const h=kc();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Ut,h.resume=Ut,h.pause=Ut,h}}const c=Ge;a.call=(h,d,g)=>Pt(h,c,d,g);let f=!1;r==="post"?a.scheduler=h=>{pt(h,c&&c.suspense)}:r!=="sync"&&(f=!0,a.scheduler=(h,d)=>{d?h():Ir(h)}),a.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const p=vc(t,e,a);return Vn&&(u?u.push(p):l&&p()),p}function _c(t,e,n){const i=this.proxy,s=Me(t)?t.includes(".")?qa(i,t):()=>i[t]:t.bind(i,i);let r;ue(e)?r=e:(r=e.handler,n=e);const o=Ai(this),a=Va(s,r.bind(i),n);return o(),a}function qa(t,e){const n=e.split(".");return()=>{let i=t;for(let s=0;st.__isTeleport,$t=Symbol("_leaveCb"),Qn=Symbol("_enterCb");function Ka(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pr(()=>{t.isMounted=!0}),Rr(()=>{t.isUnmounting=!0}),t}const xt=[Function,Array],Xa={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xt,onEnter:xt,onAfterEnter:xt,onEnterCancelled:xt,onBeforeLeave:xt,onLeave:xt,onAfterLeave:xt,onLeaveCancelled:xt,onBeforeAppear:xt,onAppear:xt,onAfterAppear:xt,onAppearCancelled:xt},Ja=t=>{const e=t.subTree;return e.component?Ja(e.component):e},Ec={name:"BaseTransition",props:Xa,setup(t,{slots:e}){const n=Xn(),i=Ka();return()=>{const s=e.default&&Ar(e.default(),!0);if(!s||!s.length)return;const r=Ga(s),o=Se(t),{mode:a}=o;if(i.isLeaving)return _s(r);const l=Vr(r);if(!l)return _s(r);let u=yi(l,o,i,n,f=>u=f);l.type!==nt&&In(l,u);let c=n.subTree&&Vr(n.subTree);if(c&&c.type!==nt&&!kn(c,l)&&Ja(n).type!==nt){let f=yi(c,o,i,n);if(In(c,f),a==="out-in"&&l.type!==nt)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},_s(r);a==="in-out"&&l.type!==nt?f.delayLeave=(p,h,d)=>{const g=Qa(i,c);g[String(c.key)]=c,p[$t]=()=>{h(),p[$t]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{d(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function Ga(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==nt){e=n;break}}return e}const Ic=Ec;function Qa(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function yi(t,e,n,i,s){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:d,onLeaveCancelled:g,onBeforeAppear:w,onAppear:x,onAfterAppear:R,onAppearCancelled:L}=e,O=String(t.key),W=Qa(n,t),C=(v,T)=>{v&&Pt(v,i,9,T)},D=(v,T)=>{const E=T[1];C(v,T),ae(v)?v.every(I=>I.length<=1)&&E():v.length<=1&&E()},M={mode:o,persisted:a,beforeEnter(v){let T=l;if(!n.isMounted)if(r)T=w||l;else return;v[$t]&&v[$t](!0);const E=W[O];E&&kn(t,E)&&E.el[$t]&&E.el[$t](),C(T,[v])},enter(v){if(W[O]===t)return;let T=u,E=c,I=f;if(!n.isMounted)if(r)T=x||u,E=R||c,I=L||f;else return;let S=!1;v[Qn]=J=>{S||(S=!0,J?C(I,[v]):C(E,[v]),M.delayedLeave&&M.delayedLeave(),v[Qn]=void 0)};const N=v[Qn].bind(null,!1);T?D(T,[v,N]):N()},leave(v,T){const E=String(t.key);if(v[Qn]&&v[Qn](!0),n.isUnmounting)return T();C(p,[v]);let I=!1;v[$t]=N=>{I||(I=!0,T(),N?C(g,[v]):C(d,[v]),v[$t]=void 0,W[E]===t&&delete W[E])};const S=v[$t].bind(null,!1);W[E]=t,h?D(h,[v,S]):S()},clone(v){const T=yi(v,e,n,i,s);return s&&s(T),T}};return M}function _s(t){if(Ii(t))return t=fn(t),t.children=null,t}function Vr(t){if(!Ii(t))return za(t.type)&&t.children?Ga(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&ue(n.default))return n.default()}}function In(t,e){t.shapeFlag&6&&t.component?(t.transition=e,In(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ar(t,e=!1,n){let i=[],s=0;for(let r=0;r1)for(let r=0;rli(g,e&&(ae(e)?e[w]:e),n,i,s));return}if(Hn(i)&&!s){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&li(t,e,n,i.component.subTree);return}const r=i.shapeFlag&4?vs(i.component):i.el,o=s?null:r,{i:a,r:l}=t,u=e&&e.r,c=a.refs===Ee?a.refs={}:a.refs,f=a.setupState,p=Se(f),h=f===Ee?ua:g=>qr(c,g)?!1:Ce(p,g),d=(g,w)=>!(w&&qr(c,w));if(u!=null&&u!==l){if(zr(e),Me(u))c[u]=null,h(u)&&(f[u]=null);else if(Re(u)){const g=e;d(u,g.k)&&(u.value=null),g.k&&(c[g.k]=null)}}if(ue(l))Ci(l,a,12,[o,c]);else{const g=Me(l),w=Re(l);if(g||w){const x=()=>{if(t.f){const R=g?h(l)?f[l]:c[l]:d()||!t.k?l.value:c[t.k];if(s)ae(R)&&pr(R,r);else if(ae(R))R.includes(r)||R.push(r);else if(g)c[l]=[r],h(l)&&(f[l]=c[l]);else{const L=[r];d(l,t.k)&&(l.value=L),t.k&&(c[t.k]=L)}}else g?(c[l]=o,h(l)&&(f[l]=o)):w&&(d(l,t.k)&&(l.value=o),t.k&&(c[t.k]=o))};if(o){const R=()=>{x(),Xi.delete(t)};R.id=-1,Xi.set(t,R),pt(R,n)}else zr(t),x()}}}function zr(t){const e=Xi.get(t);e&&(e.flags|=8,Xi.delete(t))}const Kr=t=>t.nodeType===8;cs().requestIdleCallback;cs().cancelIdleCallback;function Ac(t,e){if(Kr(t)&&t.data==="["){let n=1,i=t.nextSibling;for(;i;){if(i.nodeType===1){if(e(i)===!1)break}else if(Kr(i))if(i.data==="]"){if(--n===0)break}else i.data==="["&&n++;i=i.nextSibling}}else e(t)}const Hn=t=>!!t.type.__asyncLoader;function ut(t){ue(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:s=200,hydrate:r,timeout:o,suspensible:a=!0,onError:l}=t;let u=null,c,f=0;const p=()=>(f++,u=null,h()),h=()=>{let d;return u||(d=u=e().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((w,x)=>{l(g,()=>w(p()),()=>x(g),f+1)});throw g}).then(g=>d!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Or({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(d,g,w){let x=!1;(g.bu||(g.bu=[])).push(()=>x=!0);const R=()=>{x||w()},L=r?()=>{const O=r(R,W=>Ac(d,W));O&&(g.bum||(g.bum=[])).push(O)}:R;c?L():h().then(()=>!g.isUnmounted&&L())},get __asyncResolved(){return c},setup(){const d=Ge;if(Lr(d),c)return()=>Di(c,d);const g=L=>{u=null,Ei(L,d,13,!i)};if(a&&d.suspense||Vn)return h().then(L=>()=>Di(L,d)).catch(L=>(g(L),()=>i?qe(i,{error:L}):null));const w=k(!1),x=k(),R=k(!!s);return s&&setTimeout(()=>{R.value=!1},s),o!=null&&setTimeout(()=>{if(!w.value&&!x.value){const L=new Error(`Async component timed out after ${o}ms.`);g(L),x.value=L}},o),h().then(()=>{w.value=!0,d.parent&&Ii(d.parent.vnode)&&d.parent.update()}).catch(L=>{g(L),x.value=L}),()=>{if(w.value&&c)return Di(c,d);if(x.value&&i)return qe(i,{error:x.value});if(n&&!R.value)return Di(n,d)}}})}function Di(t,e){const{ref:n,props:i,children:s,ce:r}=e.vnode,o=qe(t,i,s);return o.ref=n,o.ce=r,delete e.vnode.ce,o}const Ii=t=>t.type.__isKeepAlive;function Oc(t,e){Ya(t,"a",e)}function Lc(t,e){Ya(t,"da",e)}function Ya(t,e,n=Ge){const i=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(ps(e,i,n),n){let s=n.parent;for(;s&&s.parent;)Ii(s.parent.vnode)&&Pc(i,e,n,s),s=s.parent}}function Pc(t,e,n,i){const s=ps(e,t,i,!0);el(()=>{pr(i[e],s)},n)}function ps(t,e,n=Ge,i=!1){if(n){const s=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{Gt();const a=Ai(n),l=Pt(e,n,t,o);return a(),Qt(),l});return i?s.unshift(r):s.push(r),r}}const Zt=t=>(e,n=Ge)=>{(!Vn||t==="sp")&&ps(t,(...i)=>e(...i),n)},Rc=Zt("bm"),Pr=Zt("m"),Mc=Zt("bu"),Za=Zt("u"),Rr=Zt("bum"),el=Zt("um"),Dc=Zt("sp"),Nc=Zt("rtg"),Fc=Zt("rtc");function $c(t,e=Ge){ps("ec",t,e)}const tl="components",Bc="directives",nl=Symbol.for("v-ndc");function Hc(t){return Me(t)?il(tl,t,!1)||t:t||nl}function Rp(t){return il(Bc,t)}function il(t,e,n=!0,i=!1){const s=Qe||Ge;if(s){const r=s.type;if(t===tl){const a=If(r,!1);if(a&&(a===e||a===Tt(e)||a===us(Tt(e))))return r}const o=Xr(s[t]||r[t],e)||Xr(s.appContext[t],e);return!o&&i?r:o}}function Xr(t,e){return t&&(t[e]||t[Tt(e)]||t[us(Tt(e))])}function Mp(t,e,n,i){let s;const r=n,o=ae(t);if(o||Me(t)){const a=o&&Xt(t);let l=!1,u=!1;a&&(l=!bt(t),u=Yt(t),t=fs(t)),s=new Array(t.length);for(let c=0,f=t.length;ce(a,l,void 0,r));else{const a=Object.keys(t);s=new Array(a.length);for(let l=0,u=a.length;l0;return e!=="default"&&(n.name=e),jn(),bi(gt,null,[qe("slot",n,i)],u?-2:64)}let r=t[e];r&&r._c&&(r._d=!1),jn();const o=r&&sl(r(n)),a=n.key||o&&o.key,l=bi(gt,{key:(a&&!Ot(a)?a:`_${e}`)+(!o&&i?"_fb":"")},o||[],o&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function sl(t){return t.some(e=>Si(e)?!(e.type===nt||e.type===gt&&!sl(e.children)):!0)?t:null}const zs=t=>t?Cl(t)?vs(t):zs(t.parent):null,ui=je(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>zs(t.parent),$root:t=>zs(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>al(t),$forceUpdate:t=>t.f||(t.f=()=>{Ir(t.update)}),$nextTick:t=>t.n||(t.n=Er.bind(t.proxy)),$watch:t=>_c.bind(t)}),Cs=(t,e)=>t!==Ee&&!t.__isScriptSetup&&Ce(t,e),Wc={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=t;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return i[e];case 2:return s[e];case 4:return n[e];case 3:return r[e]}else{if(Cs(i,e))return o[e]=1,i[e];if(s!==Ee&&Ce(s,e))return o[e]=2,s[e];if(Ce(r,e))return o[e]=3,r[e];if(n!==Ee&&Ce(n,e))return o[e]=4,n[e];Ks&&(o[e]=0)}}const u=ui[e];let c,f;if(u)return e==="$attrs"&&tt(t.attrs,"get",""),u(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==Ee&&Ce(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,Ce(f,e))return f[e]},set({_:t},e,n){const{data:i,setupState:s,ctx:r}=t;return Cs(s,e)?(s[e]=n,!0):i!==Ee&&Ce(i,e)?(i[e]=n,!0):Ce(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:s,props:r,type:o}},a){let l;return!!(n[a]||t!==Ee&&a[0]!=="$"&&Ce(t,a)||Cs(e,a)||Ce(r,a)||Ce(i,a)||Ce(ui,a)||Ce(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ce(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Np(){return rl().slots}function Fp(){return rl().attrs}function rl(t){const e=Xn();return e.setupContext||(e.setupContext=Il(e))}function Jr(t){return ae(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Ks=!0;function Uc(t){const e=al(t),n=t.proxy,i=t.ctx;Ks=!1,e.beforeCreate&&Gr(e.beforeCreate,t,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:h,updated:d,activated:g,deactivated:w,beforeDestroy:x,beforeUnmount:R,destroyed:L,unmounted:O,render:W,renderTracked:C,renderTriggered:D,errorCaptured:M,serverPrefetch:v,expose:T,inheritAttrs:E,components:I,directives:S,filters:N}=e;if(u&&jc(u,i,null),o)for(const X in o){const re=o[X];ue(re)&&(i[X]=re.bind(n))}if(s){const X=s.call(n,n);_e(X)&&(t.data=ds(X))}if(Ks=!0,r)for(const X in r){const re=r[X],ge=ue(re)?re.bind(n,n):ue(re.get)?re.get.bind(n,n):Ut,De=!ue(re)&&ue(re.set)?re.set.bind(n):Ut,Te=ee({get:ge,set:De});Object.defineProperty(i,X,{enumerable:!0,configurable:!0,get:()=>Te.value,set:ke=>Te.value=ke})}if(a)for(const X in a)ol(a[X],i,n,X);if(l){const X=ue(l)?l.call(n):l;Reflect.ownKeys(X).forEach(re=>{Sc(re,X[re])})}c&&Gr(c,t,"c");function Q(X,re){ae(re)?re.forEach(ge=>X(ge.bind(n))):re&&X(re.bind(n))}if(Q(Rc,f),Q(Pr,p),Q(Mc,h),Q(Za,d),Q(Oc,g),Q(Lc,w),Q($c,M),Q(Fc,C),Q(Nc,D),Q(Rr,R),Q(el,O),Q(Dc,v),ae(T))if(T.length){const X=t.exposed||(t.exposed={});T.forEach(re=>{Object.defineProperty(X,re,{get:()=>n[re],set:ge=>n[re]=ge,enumerable:!0})})}else t.exposed||(t.exposed={});W&&t.render===Ut&&(t.render=W),E!=null&&(t.inheritAttrs=E),I&&(t.components=I),S&&(t.directives=S),v&&Lr(t)}function jc(t,e,n=Ut){ae(t)&&(t=Xs(t));for(const i in t){const s=t[i];let r;_e(s)?"default"in s?r=Ht(s.from||i,s.default,!0):r=Ht(s.from||i):r=Ht(s),Re(r)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[i]=r}}function Gr(t,e,n){Pt(ae(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function ol(t,e,n,i){let s=i.includes(".")?qa(n,i):()=>n[i];if(Me(t)){const r=e[t];ue(r)&&Ct(s,r)}else if(ue(t))Ct(s,t.bind(n));else if(_e(t))if(ae(t))t.forEach(r=>ol(r,e,n,i));else{const r=ue(t.handler)?t.handler.bind(n):e[t.handler];ue(r)&&Ct(s,r,t)}}function al(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!s.length&&!n&&!i?l=e:(l={},s.length&&s.forEach(u=>Ji(l,u,o,!0)),Ji(l,e,o)),_e(e)&&r.set(e,l),l}function Ji(t,e,n,i=!1){const{mixins:s,extends:r}=e;r&&Ji(t,r,n,!0),s&&s.forEach(o=>Ji(t,o,n,!0));for(const o in e)if(!(i&&o==="expose")){const a=Vc[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const Vc={data:Qr,props:Yr,emits:Yr,methods:ni,computed:ni,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:ni,directives:ni,watch:zc,provide:Qr,inject:qc};function Qr(t,e){return e?t?function(){return je(ue(t)?t.call(this,this):t,ue(e)?e.call(this,this):e)}:e:t}function qc(t,e){return ni(Xs(t),Xs(e))}function Xs(t){if(ae(t)){const e={};for(let n=0;ne==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Tt(e)}Modifiers`]||t[`${pn(e)}Modifiers`];function Gc(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||Ee;let s=n;const r=e.startsWith("update:"),o=r&&Jc(i,e.slice(7));o&&(o.trim&&(s=n.map(c=>Me(c)?c.trim():c)),o.number&&(s=n.map(gr)));let a,l=i[a=bs(e)]||i[a=bs(Tt(e))];!l&&r&&(l=i[a=bs(pn(e))]),l&&Pt(l,t,6,s);const u=i[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Pt(u,t,6,s)}}const Qc=new WeakMap;function ul(t,e,n=!1){const i=n?Qc:e.emitsCache,s=i.get(t);if(s!==void 0)return s;const r=t.emits;let o={},a=!1;if(!ue(t)){const l=u=>{const c=ul(u,e,!0);c&&(a=!0,je(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(_e(t)&&i.set(t,null),null):(ae(r)?r.forEach(l=>o[l]=null):je(o,r),_e(t)&&i.set(t,o),o)}function gs(t,e){return!t||!os(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ce(t,e[0].toLowerCase()+e.slice(1))||Ce(t,pn(e))||Ce(t,e))}function Zr(t){const{type:e,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:p,setupState:h,ctx:d,inheritAttrs:g}=t,w=Ki(t);let x,R;try{if(n.shapeFlag&4){const O=s||i,W=O;x=Bt(u.call(W,O,c,f,h,p,d)),R=a}else{const O=e;x=Bt(O.length>1?O(f,{attrs:a,slots:o,emit:l}):O(f,null)),R=e.props?a:Yc(a)}}catch(O){ci.length=0,Ei(O,t,1),x=qe(nt)}let L=x;if(R&&g!==!1){const O=Object.keys(R),{shapeFlag:W}=L;O.length&&W&7&&(r&&O.some(hr)&&(R=Zc(R,r)),L=fn(L,R,!1,!0))}return n.dirs&&(L=fn(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&In(L,n.transition),x=L,Ki(w),x}const Yc=t=>{let e;for(const n in t)(n==="class"||n==="style"||os(n))&&((e||(e={}))[n]=t[n]);return e},Zc=(t,e)=>{const n={};for(const i in t)(!hr(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function ef(t,e,n){const{props:i,children:s,component:r}=t,{props:o,children:a,patchFlag:l}=e,u=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?eo(i,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;fObject.create(fl),hl=t=>Object.getPrototypeOf(t)===fl;function nf(t,e,n,i=!1){const s={},r=dl();t.propsDefaults=Object.create(null),pl(t,e,s,r);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=i?s:ac(s):t.type.props?t.props=s:t.props=r,t.attrs=r}function sf(t,e,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=t,a=Se(s),[l]=t.propsOptions;let u=!1;if((i||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[p,h]=gl(f,e,!0);je(o,p),h&&a.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!r&&!l)return _e(t)&&i.set(t,Fn),Fn;if(ae(r))for(let c=0;ct==="_"||t==="_ctx"||t==="$stable",Dr=t=>ae(t)?t.map(Bt):[Bt(t)],of=(t,e,n)=>{if(e._n)return e;const i=ja((...s)=>Dr(e(...s)),n);return i._c=!1,i},ml=(t,e,n)=>{const i=t._ctx;for(const s in t){if(Mr(s))continue;const r=t[s];if(ue(r))e[s]=of(s,r,i);else if(r!=null){const o=Dr(r);e[s]=()=>o}}},vl=(t,e)=>{const n=Dr(e);t.slots.default=()=>n},yl=(t,e,n)=>{for(const i in e)(n||!Mr(i))&&(t[i]=e[i])},af=(t,e,n)=>{const i=t.slots=dl();if(t.vnode.shapeFlag&32){const s=e._;s?(yl(i,e,n),n&&pa(i,"_",s,!0)):ml(e,i)}else e&&vl(t,e)},lf=(t,e,n)=>{const{vnode:i,slots:s}=t;let r=!0,o=Ee;if(i.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:yl(s,e,n):(r=!e.$stable,ml(e,s)),o=e}else e&&(vl(t,e),o={default:1});if(r)for(const a in s)!Mr(a)&&o[a]==null&&delete s[a]},pt=hf;function uf(t){return cf(t)}function cf(t,e){const n=cs();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:h=Ut,insertStaticContent:d}=t,g=(m,y,A,b=null,P=null,B=null,z=void 0,V=null,U=!!y.dynamicChildren)=>{if(m===y)return;m&&!kn(m,y)&&(b=vt(m),ke(m,P,B,!0),m=null),y.patchFlag===-2&&(U=!1,y.dynamicChildren=null);const{type:H,ref:ie,shapeFlag:Y}=y;switch(H){case ms:w(m,y,A,b);break;case nt:x(m,y,A,b);break;case Wi:m==null&&R(y,A,b,z);break;case gt:I(m,y,A,b,P,B,z,V,U);break;default:Y&1?W(m,y,A,b,P,B,z,V,U):Y&6?S(m,y,A,b,P,B,z,V,U):(Y&64||Y&128)&&H.process(m,y,A,b,P,B,z,V,U,rt)}ie!=null&&P?li(ie,m&&m.ref,B,y||m,!y):ie==null&&m&&m.ref!=null&&li(m.ref,null,B,m,!0)},w=(m,y,A,b)=>{if(m==null)i(y.el=a(y.children),A,b);else{const P=y.el=m.el;y.children!==m.children&&u(P,y.children)}},x=(m,y,A,b)=>{m==null?i(y.el=l(y.children||""),A,b):y.el=m.el},R=(m,y,A,b)=>{[m.el,m.anchor]=d(m.children,y,A,b,m.el,m.anchor)},L=({el:m,anchor:y},A,b)=>{let P;for(;m&&m!==y;)P=p(m),i(m,A,b),m=P;i(y,A,b)},O=({el:m,anchor:y})=>{let A;for(;m&&m!==y;)A=p(m),s(m),m=A;s(y)},W=(m,y,A,b,P,B,z,V,U)=>{if(y.type==="svg"?z="svg":y.type==="math"&&(z="mathml"),m==null)C(y,A,b,P,B,z,V,U);else{const H=m.el&&m.el._isVueCE?m.el:null;try{H&&H._beginPatch(),v(m,y,P,B,z,V,U)}finally{H&&H._endPatch()}}},C=(m,y,A,b,P,B,z,V)=>{let U,H;const{props:ie,shapeFlag:Y,transition:ne,dirs:oe}=m;if(U=m.el=o(m.type,B,ie&&ie.is,ie),Y&8?c(U,m.children):Y&16&&M(m.children,U,null,b,P,Es(m,B),z,V),oe&&yn(m,null,b,"created"),D(U,m,m.scopeId,z,b),ie){for(const me in ie)me!=="value"&&!ri(me)&&r(U,me,null,ie[me],B,b);"value"in ie&&r(U,"value",null,ie.value,B),(H=ie.onVnodeBeforeMount)&&Rt(H,b,m)}oe&&yn(m,null,b,"beforeMount");const fe=ff(P,ne);fe&&ne.beforeEnter(U),i(U,y,A),((H=ie&&ie.onVnodeMounted)||fe||oe)&&pt(()=>{H&&Rt(H,b,m),fe&&ne.enter(U),oe&&yn(m,null,b,"mounted")},P)},D=(m,y,A,b,P)=>{if(A&&h(m,A),b)for(let B=0;B{for(let H=U;H{const V=y.el=m.el;let{patchFlag:U,dynamicChildren:H,dirs:ie}=y;U|=m.patchFlag&16;const Y=m.props||Ee,ne=y.props||Ee;let oe;if(A&&wn(A,!1),(oe=ne.onVnodeBeforeUpdate)&&Rt(oe,A,y,m),ie&&yn(y,m,A,"beforeUpdate"),A&&wn(A,!0),(Y.innerHTML&&ne.innerHTML==null||Y.textContent&&ne.textContent==null)&&c(V,""),H?T(m.dynamicChildren,H,V,A,b,Es(y,P),B):z||re(m,y,V,null,A,b,Es(y,P),B,!1),U>0){if(U&16)E(V,Y,ne,A,P);else if(U&2&&Y.class!==ne.class&&r(V,"class",null,ne.class,P),U&4&&r(V,"style",Y.style,ne.style,P),U&8){const fe=y.dynamicProps;for(let me=0;me{oe&&Rt(oe,A,y,m),ie&&yn(y,m,A,"updated")},b)},T=(m,y,A,b,P,B,z)=>{for(let V=0;V{if(y!==A){if(y!==Ee)for(const B in y)!ri(B)&&!(B in A)&&r(m,B,y[B],null,P,b);for(const B in A){if(ri(B))continue;const z=A[B],V=y[B];z!==V&&B!=="value"&&r(m,B,V,z,P,b)}"value"in A&&r(m,"value",y.value,A.value,P)}},I=(m,y,A,b,P,B,z,V,U)=>{const H=y.el=m?m.el:a(""),ie=y.anchor=m?m.anchor:a("");let{patchFlag:Y,dynamicChildren:ne,slotScopeIds:oe}=y;oe&&(V=V?V.concat(oe):oe),m==null?(i(H,A,b),i(ie,A,b),M(y.children||[],A,ie,P,B,z,V,U)):Y>0&&Y&64&&ne&&m.dynamicChildren&&m.dynamicChildren.length===ne.length?(T(m.dynamicChildren,ne,A,P,B,z,V),(y.key!=null||P&&y===P.subTree)&&wl(m,y,!0)):re(m,y,A,ie,P,B,z,V,U)},S=(m,y,A,b,P,B,z,V,U)=>{y.slotScopeIds=V,m==null?y.shapeFlag&512?P.ctx.activate(y,A,b,z,U):N(y,A,b,P,B,z,U):J(m,y,U)},N=(m,y,A,b,P,B,z)=>{const V=m.component=kf(m,b,P);if(Ii(m)&&(V.ctx.renderer=rt),_f(V,!1,z),V.asyncDep){if(P&&P.registerDep(V,Q,z),!m.el){const U=V.subTree=qe(nt);x(null,U,y,A),m.placeholder=U.el}}else Q(V,m,y,A,P,B,z)},J=(m,y,A)=>{const b=y.component=m.component;if(ef(m,y,A))if(b.asyncDep&&!b.asyncResolved){X(b,y,A);return}else b.next=y,b.update();else y.el=m.el,b.vnode=y},Q=(m,y,A,b,P,B,z)=>{const V=()=>{if(m.isMounted){let{next:Y,bu:ne,u:oe,parent:fe,vnode:me}=m;{const Ne=bl(m);if(Ne){Y&&(Y.el=me.el,X(m,Y,z)),Ne.asyncDep.then(()=>{pt(()=>{m.isUnmounted||H()},P)});return}}let q=Y,le;wn(m,!1),Y?(Y.el=me.el,X(m,Y,z)):Y=me,ne&&Hi(ne),(le=Y.props&&Y.props.onVnodeBeforeUpdate)&&Rt(le,fe,Y,me),wn(m,!0);const ve=Zr(m),xe=m.subTree;m.subTree=ve,g(xe,ve,f(xe.el),vt(xe),m,P,B),Y.el=ve.el,q===null&&tf(m,ve.el),oe&&pt(oe,P),(le=Y.props&&Y.props.onVnodeUpdated)&&pt(()=>Rt(le,fe,Y,me),P)}else{let Y;const{el:ne,props:oe}=y,{bm:fe,m:me,parent:q,root:le,type:ve}=m,xe=Hn(y);wn(m,!1),fe&&Hi(fe),!xe&&(Y=oe&&oe.onVnodeBeforeMount)&&Rt(Y,q,y),wn(m,!0);{le.ce&&le.ce._hasShadowRoot()&&le.ce._injectChildStyle(ve);const Ne=m.subTree=Zr(m);g(null,Ne,A,b,m,P,B),y.el=Ne.el}if(me&&pt(me,P),!xe&&(Y=oe&&oe.onVnodeMounted)){const Ne=y;pt(()=>Rt(Y,q,Ne),P)}(y.shapeFlag&256||q&&Hn(q.vnode)&&q.vnode.shapeFlag&256)&&m.a&&pt(m.a,P),m.isMounted=!0,y=A=b=null}};m.scope.on();const U=m.effect=new Sa(V);m.scope.off();const H=m.update=U.run.bind(U),ie=m.job=U.runIfDirty.bind(U);ie.i=m,ie.id=m.uid,U.scheduler=()=>Ir(ie),wn(m,!0),H()},X=(m,y,A)=>{y.component=m;const b=m.vnode.props;m.vnode=y,m.next=null,sf(m,y.props,b,A),lf(m,y.children,A),Gt(),jr(m),Qt()},re=(m,y,A,b,P,B,z,V,U=!1)=>{const H=m&&m.children,ie=m?m.shapeFlag:0,Y=y.children,{patchFlag:ne,shapeFlag:oe}=y;if(ne>0){if(ne&128){De(H,Y,A,b,P,B,z,V,U);return}else if(ne&256){ge(H,Y,A,b,P,B,z,V,U);return}}oe&8?(ie&16&&mt(H,P,B),Y!==H&&c(A,Y)):ie&16?oe&16?De(H,Y,A,b,P,B,z,V,U):mt(H,P,B,!0):(ie&8&&c(A,""),oe&16&&M(Y,A,b,P,B,z,V,U))},ge=(m,y,A,b,P,B,z,V,U)=>{m=m||Fn,y=y||Fn;const H=m.length,ie=y.length,Y=Math.min(H,ie);let ne;for(ne=0;neie?mt(m,P,B,!0,!1,Y):M(y,A,b,P,B,z,V,U,Y)},De=(m,y,A,b,P,B,z,V,U)=>{let H=0;const ie=y.length;let Y=m.length-1,ne=ie-1;for(;H<=Y&&H<=ne;){const oe=m[H],fe=y[H]=U?qt(y[H]):Bt(y[H]);if(kn(oe,fe))g(oe,fe,A,null,P,B,z,V,U);else break;H++}for(;H<=Y&&H<=ne;){const oe=m[Y],fe=y[ne]=U?qt(y[ne]):Bt(y[ne]);if(kn(oe,fe))g(oe,fe,A,null,P,B,z,V,U);else break;Y--,ne--}if(H>Y){if(H<=ne){const oe=ne+1,fe=oene)for(;H<=Y;)ke(m[H],P,B,!0),H++;else{const oe=H,fe=H,me=new Map;for(H=fe;H<=ne;H++){const _=y[H]=U?qt(y[H]):Bt(y[H]);_.key!=null&&me.set(_.key,H)}let q,le=0;const ve=ne-fe+1;let xe=!1,Ne=0;const Oe=new Array(ve);for(H=0;H=ve){ke(_,P,B,!0);continue}let te;if(_.key!=null)te=me.get(_.key);else for(q=fe;q<=ne;q++)if(Oe[q-fe]===0&&kn(_,y[q])){te=q;break}te===void 0?ke(_,P,B,!0):(Oe[te-fe]=H+1,te>=Ne?Ne=te:xe=!0,g(_,y[te],A,null,P,B,z,V,U),le++)}const Le=xe?df(Oe):Fn;for(q=Le.length-1,H=ve-1;H>=0;H--){const _=fe+H,te=y[_],he=y[_+1],pe=_+1{const{el:B,type:z,transition:V,children:U,shapeFlag:H}=m;if(H&6){Te(m.component.subTree,y,A,b);return}if(H&128){m.suspense.move(y,A,b);return}if(H&64){z.move(m,y,A,rt);return}if(z===gt){i(B,y,A);for(let Y=0;YV.enter(B),P);else{const{leave:Y,delayLeave:ne,afterLeave:oe}=V,fe=()=>{m.ctx.isUnmounted?s(B):i(B,y,A)},me=()=>{B._isLeaving&&B[$t](!0),Y(B,()=>{fe(),oe&&oe()})};ne?ne(B,fe,me):me()}else i(B,y,A)},ke=(m,y,A,b=!1,P=!1)=>{const{type:B,props:z,ref:V,children:U,dynamicChildren:H,shapeFlag:ie,patchFlag:Y,dirs:ne,cacheIndex:oe}=m;if(Y===-2&&(P=!1),V!=null&&(Gt(),li(V,null,A,m,!0),Qt()),oe!=null&&(y.renderCache[oe]=void 0),ie&256){y.ctx.deactivate(m);return}const fe=ie&1&&ne,me=!Hn(m);let q;if(me&&(q=z&&z.onVnodeBeforeUnmount)&&Rt(q,y,m),ie&6)ze(m.component,A,b);else{if(ie&128){m.suspense.unmount(A,b);return}fe&&yn(m,null,y,"beforeUnmount"),ie&64?m.type.remove(m,y,A,rt,b):H&&!H.hasOnce&&(B!==gt||Y>0&&Y&64)?mt(H,y,A,!1,!0):(B===gt&&Y&384||!P&&ie&16)&&mt(U,y,A),b&&$e(m)}(me&&(q=z&&z.onVnodeUnmounted)||fe)&&pt(()=>{q&&Rt(q,y,m),fe&&yn(m,null,y,"unmounted")},A)},$e=m=>{const{type:y,el:A,anchor:b,transition:P}=m;if(y===gt){dt(A,b);return}if(y===Wi){O(m);return}const B=()=>{s(A),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(m.shapeFlag&1&&P&&!P.persisted){const{leave:z,delayLeave:V}=P,U=()=>z(A,B);V?V(m.el,B,U):U()}else B()},dt=(m,y)=>{let A;for(;m!==y;)A=p(m),s(m),m=A;s(y)},ze=(m,y,A)=>{const{bum:b,scope:P,job:B,subTree:z,um:V,m:U,a:H}=m;no(U),no(H),b&&Hi(b),P.stop(),B&&(B.flags|=8,ke(z,m,y,A)),V&&pt(V,y),pt(()=>{m.isUnmounted=!0},y)},mt=(m,y,A,b=!1,P=!1,B=0)=>{for(let z=B;z{if(m.shapeFlag&6)return vt(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const y=p(m.anchor||m.el),A=y&&y[Cc];return A?p(A):y};let Ye=!1;const st=(m,y,A)=>{let b;m==null?y._vnode&&(ke(y._vnode,null,null,!0),b=y._vnode.component):g(y._vnode||null,m,y,null,null,null,A),y._vnode=m,Ye||(Ye=!0,jr(b),Ha(),Ye=!1)},rt={p:g,um:ke,m:Te,r:$e,mt:N,mc:M,pc:re,pbc:T,n:vt,o:t};return{render:st,hydrate:void 0,createApp:Xc(st)}}function Es({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function wn({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function ff(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function wl(t,e,n=!1){const i=t.children,s=e.children;if(ae(i)&&ae(s))for(let r=0;r>1,t[n[a]]0&&(e[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}function bl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:bl(e)}function no(t){if(t)for(let e=0;et.__isSuspense;function hf(t,e){e&&e.pendingBranch?ae(t)?e.effects.push(...t):e.effects.push(t):bc(t)}const gt=Symbol.for("v-fgt"),ms=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),Wi=Symbol.for("v-stc"),ci=[];let wt=null;function jn(t=!1){ci.push(wt=t?null:[])}function pf(){ci.pop(),wt=ci[ci.length-1]||null}let wi=1;function Gi(t,e=!1){wi+=t,t<0&&wt&&e&&(wt.hasOnce=!0)}function Tl(t){return t.dynamicChildren=wi>0?wt||Fn:null,pf(),wi>0&&wt&&wt.push(t),t}function gf(t,e,n,i,s,r){return Tl(_l(t,e,n,i,s,r,!0))}function bi(t,e,n,i,s){return Tl(qe(t,e,n,i,s,!0))}function Si(t){return t?t.__v_isVNode===!0:!1}function kn(t,e){return t.type===e.type&&t.key===e.key}const kl=({key:t})=>t??null,Ui=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Me(t)||Re(t)||ue(t)?{i:Qe,r:t,k:e,f:!!n}:t:null);function _l(t,e=null,n=null,i=0,s=null,r=t===gt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&kl(e),ref:e&&Ui(e),scopeId:Ua,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:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Qe};return a?(Nr(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=Me(n)?8:16),wi>0&&!o&&wt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&wt.push(l),l}const qe=mf;function mf(t,e=null,n=null,i=0,s=null,r=!1){if((!t||t===nl)&&(t=nt),Si(t)){const a=fn(t,e,!0);return n&&Nr(a,n),wi>0&&!r&&wt&&(a.shapeFlag&6?wt[wt.indexOf(t)]=a:wt.push(a)),a.patchFlag=-2,a}if(Af(t)&&(t=t.__vccOpts),e){e=vf(e);let{class:a,style:l}=e;a&&!Me(a)&&(e.class=vr(a)),_e(l)&&(hs(l)&&!ae(l)&&(l=je({},l)),e.style=mr(l))}const o=Me(t)?1:xl(t)?128:za(t)?64:_e(t)?4:ue(t)?2:0;return _l(t,e,n,i,s,o,r,!0)}function vf(t){return t?hs(t)||hl(t)?je({},t):t:null}function fn(t,e,n=!1,i=!1){const{props:s,ref:r,patchFlag:o,children:a,transition:l}=t,u=e?Sf(s||{},e):s,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&kl(u),ref:e&&e.ref?n&&r?ae(r)?r.concat(Ui(e)):[r,Ui(e)]:Ui(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==gt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&fn(t.ssContent),ssFallback:t.ssFallback&&fn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&i&&In(c,l.clone(c)),c}function yf(t=" ",e=0){return qe(ms,null,t,e)}function wf(t,e){const n=qe(Wi,null,t);return n.staticCount=e,n}function bf(t="",e=!1){return e?(jn(),bi(nt,null,t)):qe(nt,null,t)}function Bt(t){return t==null||typeof t=="boolean"?qe(nt):ae(t)?qe(gt,null,t.slice()):Si(t)?qt(t):qe(ms,null,String(t))}function qt(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:fn(t)}function Nr(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(ae(e))n=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),Nr(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!hl(e)?e._ctx=Qe:s===3&&Qe&&(Qe.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ue(e)?(e={default:e,_ctx:Qe},n=32):(e=String(e),i&64?(n=16,e=[yf(e)]):n=8);t.children=e,t.shapeFlag|=n}function Sf(...t){const e={};for(let n=0;nGe||Qe;let Qi,Gs;{const t=cs(),e=(n,i)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(i),r=>{s.length>1?s.forEach(o=>o(r)):s[0](r)}};Qi=e("__VUE_INSTANCE_SETTERS__",n=>Ge=n),Gs=e("__VUE_SSR_SETTERS__",n=>Vn=n)}const Ai=t=>{const e=Ge;return Qi(t),t.scope.on(),()=>{t.scope.off(),Qi(e)}},io=()=>{Ge&&Ge.scope.off(),Qi(null)};function Cl(t){return t.vnode.shapeFlag&4}let Vn=!1;function _f(t,e=!1,n=!1){e&&Gs(e);const{props:i,children:s}=t.vnode,r=Cl(t);nf(t,i,r,e),af(t,s,n||e);const o=r?Cf(t,e):void 0;return e&&Gs(!1),o}function Cf(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Wc);const{setup:i}=n;if(i){Gt();const s=t.setupContext=i.length>1?Il(t):null,r=Ai(t),o=Ci(i,t,0,[t.props,s]),a=fa(o);if(Qt(),r(),(a||t.sp)&&!Hn(t)&&Lr(t),a){if(o.then(io,io),e)return o.then(l=>{so(t,l)}).catch(l=>{Ei(l,t,0)});t.asyncDep=o}else so(t,o)}else El(t)}function so(t,e,n){ue(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:_e(e)&&(t.setupState=Na(e)),El(t)}function El(t,e,n){const i=t.type;t.render||(t.render=i.render||Ut);{const s=Ai(t);Gt();try{Uc(t)}finally{Qt(),s()}}}const Ef={get(t,e){return tt(t,"get",""),t[e]}};function Il(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Ef),slots:t.slots,emit:t.emit,expose:e}}function vs(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Na(_r(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ui)return ui[n](t)},has(e,n){return n in e||n in ui}})):t.proxy}function If(t,e=!0){return ue(t)?t.displayName||t.name:t.name||e&&t.__name}function Af(t){return ue(t)&&"__vccOpts"in t}const ee=(t,e)=>gc(t,e,Vn);function Al(t,e,n){try{Gi(-1);const i=arguments.length;return i===2?_e(e)&&!ae(e)?Si(e)?qe(t,null,[e]):qe(t,e):qe(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Si(n)&&(n=[n]),qe(t,e,n))}finally{Gi(1)}}const Of="3.5.29";/** * @vue/runtime-dom v3.5.29 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Qs;const ro=typeof window<"u"&&window.trustedTypes;if(ro)try{Qs=ro.createPolicy("vue",{createHTML:t=>t})}catch{}const Ol=Qs?t=>Qs.createHTML(t):t=>t,Lf="http://www.w3.org/2000/svg",Pf="http://www.w3.org/1998/Math/MathML",Vt=typeof document<"u"?document:null,oo=Vt&&Vt.createElement("template"),Rf={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e==="svg"?Vt.createElementNS(Lf,t):e==="mathml"?Vt.createElementNS(Pf,t):n?Vt.createElement(t,{is:n}):Vt.createElement(t);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>Vt.createTextNode(t),createComment:t=>Vt.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Vt.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,r){const o=n?n.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{oo.innerHTML=Ol(i==="svg"?`${t}`:i==="mathml"?`${t}`:t);const a=oo.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},tn="transition",Yn="animation",qn=Symbol("_vtc"),Ll={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},Pl=je({},Xa,Ll),Mf=t=>(t.displayName="Transition",t.props=Pl,t),Df=Mf((t,{slots:e})=>Al(Ic,Rl(t),e)),bn=(t,e=[])=>{ae(t)?t.forEach(n=>n(...e)):t&&t(...e)},ao=t=>t?ae(t)?t.some(e=>e.length>1):t.length>1:!1;function Rl(t){const e={};for(const I in t)I in Ll||(e[I]=t[I]);if(t.css===!1)return e;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,d=Nf(s),g=d&&d[0],w=d&&d[1],{onBeforeEnter:x,onEnter:R,onEnterCancelled:L,onLeave:O,onLeaveCancelled:W,onBeforeAppear:C=x,onAppear:D=R,onAppearCancelled:M=L}=e,v=(I,S,N,J)=>{I._enterCancelled=J,nn(I,S?c:a),nn(I,S?u:o),N&&N()},T=(I,S)=>{I._isLeaving=!1,nn(I,f),nn(I,h),nn(I,p),S&&S()},E=I=>(S,N)=>{const J=I?D:R,Q=()=>v(S,I,N);bn(J,[S,Q]),lo(()=>{nn(S,I?l:r),Dt(S,I?c:a),ao(J)||uo(S,i,g,Q)})};return je(e,{onBeforeEnter(I){bn(x,[I]),Dt(I,r),Dt(I,o)},onBeforeAppear(I){bn(C,[I]),Dt(I,l),Dt(I,u)},onEnter:E(!1),onAppear:E(!0),onLeave(I,S){I._isLeaving=!0;const N=()=>T(I,S);Dt(I,f),I._enterCancelled?(Dt(I,p),Ys(I)):(Ys(I),Dt(I,p)),lo(()=>{I._isLeaving&&(nn(I,f),Dt(I,h),ao(O)||uo(I,i,w,N))}),bn(O,[I,N])},onEnterCancelled(I){v(I,!1,void 0,!0),bn(L,[I])},onAppearCancelled(I){v(I,!0,void 0,!0),bn(M,[I])},onLeaveCancelled(I){T(I),bn(W,[I])}})}function Nf(t){if(t==null)return null;if(_e(t))return[Is(t.enter),Is(t.leave)];{const e=Is(t);return[e,e]}}function Is(t){return Pu(t)}function Dt(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[qn]||(t[qn]=new Set)).add(e)}function nn(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[qn];n&&(n.delete(e),n.size||(t[qn]=void 0))}function lo(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Ff=0;function uo(t,e,n,i){const s=t._endId=++Ff,r=()=>{s===t._endId&&i()};if(n!=null)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=Ml(t,e);if(!o)return i();const u=o+"end";let c=0;const f=()=>{t.removeEventListener(u,p),r()},p=h=>{h.target===t&&++c>=l&&f()};setTimeout(()=>{c(n[d]||"").split(", "),s=i(`${tn}Delay`),r=i(`${tn}Duration`),o=co(s,r),a=i(`${Yn}Delay`),l=i(`${Yn}Duration`),u=co(a,l);let c=null,f=0,p=0;e===tn?o>0&&(c=tn,f=o,p=r.length):e===Yn?u>0&&(c=Yn,f=u,p=l.length):(f=Math.max(o,u),c=f>0?o>u?tn:Yn:null,p=c?c===tn?r.length:l.length:0);const h=c===tn&&/\b(?:transform|all)(?:,|$)/.test(i(`${tn}Property`).toString());return{type:c,timeout:f,propCount:p,hasTransform:h}}function co(t,e){for(;t.lengthfo(n)+fo(t[i])))}function fo(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Ys(t){return(t?t.ownerDocument:document).body.offsetHeight}function $f(t,e,n){const i=t[qn];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Yi=Symbol("_vod"),Dl=Symbol("_vsh"),$p={name:"show",beforeMount(t,{value:e},{transition:n}){t[Yi]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Zn(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),Zn(t,!0),i.enter(t)):i.leave(t,()=>{Zn(t,!1)}):Zn(t,e))},beforeUnmount(t,{value:e}){Zn(t,e)}};function Zn(t,e){t.style.display=e?t[Yi]:"none",t[Dl]=!e}const Bf=Symbol(""),Hf=/(?:^|;)\s*display\s*:/;function Wf(t,e,n){const i=t.style,s=Me(n);let r=!1;if(n&&!s){if(e)if(Me(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&ji(i,a,"")}else for(const o in e)n[o]==null&&ji(i,o,"");for(const o in n)o==="display"&&(r=!0),ji(i,o,n[o])}else if(s){if(e!==n){const o=i[Bf];o&&(n+=";"+o),i.cssText=n,r=Hf.test(n)}}else e&&t.removeAttribute("style");Yi in t&&(t[Yi]=r?i.display:"",t[Dl]&&(i.display="none"))}const ho=/\s*!important$/;function ji(t,e,n){if(ae(n))n.forEach(i=>ji(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=Uf(t,e);ho.test(n)?t.setProperty(pn(i),n.replace(ho,""),"important"):t[i]=n}}const po=["Webkit","Moz","ms"],As={};function Uf(t,e){const n=As[e];if(n)return n;let i=Tt(e);if(i!=="filter"&&i in t)return As[e]=i;i=us(i);for(let s=0;sOs||(zf.then(()=>Os=0),Os=Date.now());function Xf(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Pt(Jf(i,n.value),e,5,[i])};return n.value=t,n.attached=Kf(),n}function Jf(t,e){if(ae(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const bo=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Gf=(t,e,n,i,s,r)=>{const o=s==="svg";e==="class"?$f(t,i,o):e==="style"?Wf(t,n,i):os(e)?hr(e)||Vf(t,e,n,i,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Qf(t,e,i,o))?(vo(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&mo(t,e,i,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Me(i))?vo(t,Tt(e),i,r,e):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),mo(t,e,i,o))};function Qf(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&bo(e)&&ue(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return bo(e)&&Me(n)?!1:e in t}const Nl=new WeakMap,Fl=new WeakMap,Zi=Symbol("_moveCb"),So=Symbol("_enterCb"),Yf=t=>(delete t.props.mode,t),Zf=Yf({name:"TransitionGroup",props:je({},Pl,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Xn(),i=Ka();let s,r;return Za(()=>{if(!s.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!id(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(ed),s.forEach(td);const a=s.filter(nd);Ys(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;Dt(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Zi]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[Zi]=null,nn(u,o))};u.addEventListener("transitionend",f)}),s=[]}),()=>{const o=Se(t),a=Rl(o);let l=o.tag||gt;if(s=[],r)for(let u=0;u{a.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const r=e.nodeType===1?e:e.parentNode;r.appendChild(i);const{hasTransform:o}=Ml(i);return r.removeChild(i),o}const xo=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ae(e)?n=>Hi(e,n):e};function sd(t){t.target.composing=!0}function To(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ls=Symbol("_assign");function ko(t,e,n){return e&&(t=t.trim()),n&&(t=gr(t)),t}const Hp={created(t,{modifiers:{lazy:e,trim:n,number:i}},s){t[Ls]=xo(s);const r=i||s.props&&s.props.type==="number";Dn(t,e?"change":"input",o=>{o.target.composing||t[Ls](ko(t.value,n,r))}),(n||r)&&Dn(t,"change",()=>{t.value=ko(t.value,n,r)}),e||(Dn(t,"compositionstart",sd),Dn(t,"compositionend",To),Dn(t,"change",To))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:i,trim:s,number:r}},o){if(t[Ls]=xo(o),t.composing)return;const a=(r||t.type==="number")&&!/^0\d/.test(t.value)?gr(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(i&&e===n||s&&t.value.trim()===l)||(t.value=l))}},rd=["ctrl","shift","alt","meta"],od={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>rd.some(n=>t[`${n}Key`]&&!e.includes(n))},Wp=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=((s,...r)=>{for(let o=0;o{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=(s=>{if(!("key"in s))return;const r=pn(s.key);if(e.some(o=>o===r||ad[o]===r))return t(s)}))},ld=je({patchProp:Gf},Rf);let _o;function ud(){return _o||(_o=uf(ld))}const Bl=((...t)=>{const e=ud().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=fd(i);if(!s)return;const r=e._component;!ue(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,cd(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e});function cd(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function fd(t){return Me(t)?document.querySelector(t):t}/*! * pinia v3.0.4 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Hl;const Oi=t=>Hl=t,Wl=Symbol();function Zs(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var fi;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(fi||(fi={}));function dd(){const t=wa(!0),e=t.run(()=>k({}));let n=[],i=[];const s=_r({install(r){Oi(s),s._a=r,r.provide(Wl,s),r.config.globalProperties.$pinia=s,i.forEach(o=>n.push(o)),i=[]},use(r){return this._a?n.push(r):i.push(r),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const Ul=()=>{};function Co(t,e,n,i=Ul){t.add(e);const s=()=>{t.delete(e)&&i()};return!n&&ba()&&Wu(s),s}function Pn(t,...e){t.forEach(n=>{n(...e)})}const hd=t=>t(),Eo=Symbol(),Ps=Symbol();function er(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,i)=>t.set(i,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],s=t[n];Zs(s)&&Zs(i)&&t.hasOwnProperty(n)&&!Re(i)&&!Xt(i)?t[n]=er(s,i):t[n]=i}return t}const pd=Symbol();function gd(t){return!Zs(t)||!Object.prototype.hasOwnProperty.call(t,pd)}const{assign:sn}=Object;function md(t){return!!(Re(t)&&t.effect)}function vd(t,e,n,i){const{state:s,actions:r,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=s?s():{});const c=fc(n.state.value[t]);return sn(c,r,Object.keys(o||{}).reduce((f,p)=>(f[p]=_r(ee(()=>{Oi(n);const h=n._s.get(t);return o[p].call(h,h)})),f),{}))}return l=jl(t,u,e,n,i,!0),l}function jl(t,e,n={},i,s,r){let o;const a=sn({actions:{}},n),l={deep:!0};let u,c,f=new Set,p=new Set,h;const d=i.state.value[t];!r&&!d&&(i.state.value[t]={});let g;function w(M){let v;u=c=!1,typeof M=="function"?(M(i.state.value[t]),v={type:fi.patchFunction,storeId:t,events:h}):(er(i.state.value[t],M),v={type:fi.patchObject,payload:M,storeId:t,events:h});const T=g=Symbol();Er().then(()=>{g===T&&(u=!0)}),c=!0,Pn(f,v,i.state.value[t])}const x=r?function(){const{state:v}=n,T=v?v():{};this.$patch(E=>{sn(E,T)})}:Ul;function R(){o.stop(),f.clear(),p.clear(),i._s.delete(t)}const L=(M,v="")=>{if(Eo in M)return M[Ps]=v,M;const T=function(){Oi(i);const E=Array.from(arguments),I=new Set,S=new Set;function N(X){I.add(X)}function J(X){S.add(X)}Pn(p,{args:E,name:T[Ps],store:W,after:N,onError:J});let Q;try{Q=M.apply(this&&this.$id===t?this:W,E)}catch(X){throw Pn(S,X),X}return Q instanceof Promise?Q.then(X=>(Pn(I,X),X)).catch(X=>(Pn(S,X),Promise.reject(X))):(Pn(I,Q),Q)};return T[Eo]=!0,T[Ps]=v,T},O={_p:i,$id:t,$onAction:Co.bind(null,p),$patch:w,$reset:x,$subscribe(M,v={}){const T=Co(f,M,v.detached,()=>E()),E=o.run(()=>Ct(()=>i.state.value[t],I=>{(v.flush==="sync"?c:u)&&M({storeId:t,type:fi.direct,events:h},I)},sn({},l,v)));return T},$dispose:R},W=ds(O);i._s.set(t,W);const D=(i._a&&i._a.runWithContext||hd)(()=>i._e.run(()=>(o=wa()).run(()=>e({action:L}))));for(const M in D){const v=D[M];if(Re(v)&&!md(v)||Xt(v))r||(d&&gd(v)&&(Re(v)?v.value=d[M]:er(v,d[M])),i.state.value[t][M]=v);else if(typeof v=="function"){const T=L(v,M);D[M]=T,a.actions[M]=v}}return sn(W,D),sn(Se(W),D),Object.defineProperty(W,"$state",{get:()=>i.state.value[t],set:M=>{w(v=>{sn(v,M)})}}),i._p.forEach(M=>{sn(W,o.run(()=>M({store:W,app:i._a,pinia:i,options:a})))}),d&&r&&n.hydrate&&n.hydrate(W.$state,d),u=!0,c=!0,W}/*! #__NO_SIDE_EFFECTS__ */function St(t,e,n){let i;const s=typeof e=="function";i=s?n:e;function r(o,a){const l=xc();return o=o||(l?Ht(Wl,null):null),o&&Oi(o),o=Hl,o._s.has(t)||(s?jl(t,e,i,o):vd(t,i,o)),o._s.get(t)}return r.$id=t,r}const Ve=St("property",()=>{const t=k(null),e=k(""),n=k(!1);function i(o){t.value=o}function s(o){n.value=o}function r(){t.value=null,e.value="",n.value=!1}return{id:t,pageName:e,isTawkHostedPage:n,updateId:i,updateIsTawkHostedPage:s,resetState:r}}),Io=lc(null),Et={i18n(t,e,n){var r;let i={};t&&(e=`${t}.${e}`),n&&(i={...i,...n});const s=((r=globalThis.$_Tawk)==null?void 0:r.i18next)??Io.value;return typeof s!="function"?"":s(e,i)},setTranslator(t){Io.value=t},install(t){t&&t.provide("i18n",Et.i18n)}},es={isGeneratedName(t){return/^V[0-9]{16}$/.test(t)},parseVisitorName(t){return this.isGeneratedName(t)?Et.i18n("chat","default_name")||"You":t},formatVisitorLoginData(t){const e={};return Object.keys(t).forEach(n=>{if(n==="hash"||n==="userId"||n==="name"||n==="email"||n==="phone"){e[n]=t[n];return}e.attributes===void 0&&(e.attributes={}),e.attributes[n]=t[n]}),e}},tr="&",Vl='"',ql="'",zl="<",Kl=">",nr="©",ir="®",sr="â„¢",Xl=""",Jl="'",Gl="<",Ql=">",Yl="&",Zl="©",eu="®",tu="™",yd=new RegExp(tr,"g"),wd=new RegExp(Vl,"g"),bd=new RegExp(ql,"g"),Sd=new RegExp(zl,"g"),xd=new RegExp(Kl,"g"),Td=new RegExp(nr,"gm"),kd=new RegExp(ir,"gm"),_d=new RegExp(sr,"gm"),Cd=new RegExp(Xl,"g"),Ed=new RegExp(Jl,"g"),Id=new RegExp(Gl,"g"),Ad=new RegExp(Ql,"g"),Ao=new RegExp(Yl,"g"),Oo=new RegExp(Zl,"g"),Lo=new RegExp(eu,"g"),Po=new RegExp(tu,"g"),be={regTrim:/^\s+|\s+$/g,rawEncode(t){return t&&t.replace(yd,Yl).replace(wd,Xl).replace(bd,Jl).replace(Sd,Gl).replace(xd,Ql).replace(Td,Zl).replace(kd,eu).replace(_d,tu)},rawDecode(t){return t&&t.replace(Cd,Vl).replace(Ed,ql).replace(Id,zl).replace(Ad,Kl).replace(Ao,tr).replace(Oo,nr).replace(Lo,ir).replace(Po,sr)},rawDecodeHTMLSymbols(t){return t&&t.replace(Ao,tr).replace(Oo,nr).replace(Lo,ir).replace(Po,sr)},h(t){let e=0;if(t.length===0)return e;for(let n=0;n'+a[1]+""),r===t)return r;return r},markdownToHtml(t){return t=this.rawEncode(t),t=this.toLinkable(t),t=t.replace(/(?!]*>[^<])_(.*?)_(?![^<]*<\/a>)/gim,"$1"),t=t.replace(/\*\*(.*?)\*\*/gim,"$1").replace(/\*(.*?)\*/gim,"$1"),t},removeHTMLTags(t){return!t||t.length===0?t:t.replace(/|
/g," ")},removeAnchorTags(t){return t.replace(/]*>([^<]+)<\/a>/gi,"$1")},cleanupCssValue(t){return this.isString(t)?t.replace(/(!important)|(;)/g,""):t},parseQueryString(t){const e={};let n;t?n=t.replace(/(.*)\?/,""):n=window.location.search.substring(1);const i=n.split("&");for(let s=0,r=i.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ds=ii-nu,Rn=Math.floor,Ns=String.fromCharCode,$d={error(t){throw new RangeError(Fd[t])},map(t,e){let n=t.length;const i=[];for(;n--;)i[n]=e(t[n]);return i},mapDomain(t,e){const n=t.split("@");let i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(Nd,".");const r=t.split(".").map(e).join(".");return i+r},ucs2decode(t){const e=[];let n=0;const i=t.length;for(;n=55296&&s<=56319&&n>1,t+=Rn(t/e);t>Ds*Ms>>1;i+=ii)t=Rn(t/Ds);return Rn(i+(Ds+1)*t/(t+Od))},encode(t){let e,n,i,s,r,o,a,l,u,c,f;const p=[];let h,d,g;const w=this.ucs2decode(t),x=w.length;for(e=Rd,n=0,r=Pd,o=0;o=e&&fRn((Rs-n)/h)&&this.error("overflow"),n+=(a-e)*h,e=a,o=0;oRs&&this.error("overflow"),f==e){for(l=n,u=ii;u<=r?c=nu:u>=r+Ms?c=Ms:c=u-r,!(lDd.test(e)?"xn--"+this.encode(e):e)}};var ts=function(){return ts=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&s[s.length-1])||c[0]!==6&&c[0]!==2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function _t(t,e,n){if(arguments.length===2)for(var i,s=0,r=e.length;s3100?(r=s,window.localStorage.removeItem(r),e._cleanClientLocksByClientId(s)):i.push(s)}),JSON.stringify(n)!==JSON.stringify(i)&&this._storeClientIds(i)}else this._storeClientIds([])},t})();(function(){if(typeof window<"u"){var t=window.navigator;if(t&&!t.locks){var e=new Hd;Object.defineProperty(t,"locks",{value:e})}}})();const Wd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let rr=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=Wd[n[t]&63];return e};const ft={post(t,e={},n={},i,s=!0,r=!1){let o=[],a=!0;const l={...n||{}};if(e instanceof FormData)o=e,a=!1;else{if(r)o=typeof e=="string"?e:JSON.stringify(e),l["Content-Type"]="application/json; charset=utf-8";else{const c=[];if(typeof e=="object"&&e!==null)for(const f in e)Object.prototype.hasOwnProperty.call(e,f)&&c.push(`${encodeURIComponent(f)}=${encodeURIComponent(String(e[f]))}`);c.length&&(o=c.join("&")),l["Content-Type"]="application/www-x-form-urlencoded"}a=!0}if(typeof window.fetch<"u"&&typeof window.AbortController<"u"){const f=new window.AbortController().signal;let p;return s?p={method:"POST",headers:l,signal:f,credentials:a?"include":"same-origin",body:o}:p={method:"POST",headers:l,signal:f,body:o},fetch(t,p).then(h=>h.status===500?i(!0):h.json()).then(h=>{i(null,h)}).catch(()=>{i(!0)}),f}const u=new XMLHttpRequest;if(u.onerror=()=>i(!0),u.open("POST",t,!0),!(e instanceof FormData)){for(const c in l)u.setRequestHeader(c,l[c]);u.withCredentials=!0}return u.onload=()=>{u.status>=200&&u.status<300?i(null,JSON.parse(u.responseText)):i(!0)},u.send(o),u},get(t,e={},n={},i){const s=[],r={...n||{}};if(e)for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&s.push(`${encodeURIComponent(a)}=${encodeURIComponent(String(e[a]))}`);if(s.length&&(t+=`?${s.join("&")}`),typeof window.fetch<"u"&&typeof window.AbortController<"u"){const l=new window.AbortController().signal;return fetch(t,{headers:r,signal:l}).then(u=>u.json()).then(u=>{i(null,u)}).catch(()=>{i(!0)}),l}const o=new XMLHttpRequest;o.onerror=()=>i(!0),o.open("GET",t,!0);for(const a in r)o.setRequestHeader(a,r[a]);return o.onload=()=>{o.status>=200&&o.status<300?i(null,JSON.parse(o.responseText)):i(!0)},o.send(),o}};class Fr{constructor(){j(this,"isEnabled",!1);this.checkIsEnabled()}checkIsEnabled(){}setItem(e,n){}getItem(e){return null}}class Ud extends Fr{checkIsEnabled(){try{this.isEnabled=!!window.sessionStorage}catch{this.isEnabled=!1}}setItem(e,n){if(this.isEnabled)try{return window.sessionStorage.setItem(e,n),!0}catch{return}}getItem(e){return this.isEnabled?window.sessionStorage.getItem(e):null}}class jd extends Fr{checkIsEnabled(){try{window.localStorage.setItem("exist_test","yes"),window.localStorage.removeItem("exist_test"),this.isEnabled=!0}catch{this.isEnabled=!1}}setItem(e,n){if(this.isEnabled)return window.localStorage.setItem(e,n),!0}getItem(e){return this.isEnabled?window.localStorage.getItem(e):null}deleteItem(e){this.isEnabled&&window.localStorage.removeItem(e)}}var Do=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Fi(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var No={},Fo;function Vd(){return Fo||(Fo=1,(function(){(function(t){{var e;typeof window<"u"?e=window:typeof Do<"u"?e=Do:typeof self<"u"&&(e=self),e.$__TawkEngine=t()}})(function(){return(function t(e,n,i){function s(a,l){if(!n[a]){if(!e[a]){var u=typeof Fi=="function"&&Fi;if(!l&&u)return u(a,!0);if(r)return r(a,!0);throw new Error("Cannot find module '"+a+"'")}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(f){var p=e[a][1][f];return s(p||f)},c,c.exports,t,e,n,i)}return n[a].exports}for(var r=typeof Fi=="function"&&Fi,o=0;oo&&(r=o),s>=o||s>=r||o===0)return new ArrayBuffer(0);for(var a=new Uint8Array(i),l=new Uint8Array(r-s),u=s,c=0;u>2],l+=i[(r[o]&3)<<4|r[o+1]>>4],l+=i[(r[o+1]&15)<<2|r[o+2]>>6],l+=i[r[o+2]&63];return a%3===2?l=l.substring(0,l.length-1)+"=":a%3===1&&(l=l.substring(0,l.length-2)+"=="),l},n.decode=function(s){var r=s.length*.75,o=s.length,a,l=0,u,c,f,p;s[s.length-1]==="="&&(r--,s[s.length-2]==="="&&r--);var h=new ArrayBuffer(r),d=new Uint8Array(h);for(a=0;a>4,d[l++]=(c&15)<<4|f>>2,d[l++]=(f&3)<<6|p&63;return h}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],6:[function(t,e,n){(function(i){var s=i.BlobBuilder||i.WebKitBlobBuilder||i.MSBlobBuilder||i.MozBlobBuilder,r=(function(){try{var f=new Blob(["hi"]);return f.size===2}catch{return!1}})(),o=r&&(function(){try{var f=new Blob([new Uint8Array([1,2])]);return f.size===2}catch{return!1}})(),a=s&&s.prototype.append&&s.prototype.getBlob;function l(f){for(var p=0;p0&&(this.extraHeaders=g.extraHeaders),this.open()}p.priorWebsocketSuccess=!1,r(p.prototype),p.protocol=l.protocol,p.Socket=p,p.Transport=t("./transport"),p.transports=t("./transports"),p.parser=t("engine.io-parser"),p.prototype.createTransport=function(d){o('creating transport "%s"',d);var g=h(this.query);g.EIO=l.protocol,g.transport=d,this.id&&(g.sid=this.id);var w=new s[d]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:g,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders});return w};function h(d){var g={};for(var w in d)d.hasOwnProperty(w)&&(g[w]=d[w]);return g}p.prototype.open=function(){var d;if(this.rememberUpgrade&&p.priorWebsocketSuccess&&this.transports.indexOf("websocket")!=-1)d="websocket";else if(this.transports.length===0){var g=this;setTimeout(function(){g.emit("error","No transports available")},0);return}else d=this.transports[0];this.readyState="opening";try{d=this.createTransport(d)}catch{this.transports.shift(),this.open();return}d.open(),this.setTransport(d)},p.prototype.setTransport=function(d){o("setting transport %s",d.name);var g=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",function(){g.onDrain()}).on("packet",function(w){g.onPacket(w)}).on("error",function(w){g.onError(w)}).on("close",function(){g.onClose("transport close")})},p.prototype.probe=function(d){o('probing transport "%s"',d);var g=this.createTransport(d,{probe:1}),w=!1,x=this;p.priorWebsocketSuccess=!1;function R(){if(x.onlyBinaryUpgrades){var v=!this.supportsBinary&&x.transport.supportsBinary;w=w||v}w||(o('probe transport "%s" opened',d),g.send([{type:"ping",data:"probe"}]),g.once("packet",function(T){if(!w)if(T.type=="pong"&&T.data=="probe"){if(o('probe transport "%s" pong',d),x.upgrading=!0,x.emit("upgrading",g),!g)return;p.priorWebsocketSuccess=g.name=="websocket",o('pausing current transport "%s"',x.transport.name),x.transport.pause(function(){w||x.readyState!="closed"&&(o("changing transport and sending upgrade packet"),M(),x.setTransport(g),g.send([{type:"upgrade"}]),x.emit("upgrade",g),g=null,x.upgrading=!1,x.flush())})}else{o('probe transport "%s" failed',d);var E=new Error("probe error");E.transport=g.name,x.emit("upgradeError",E)}}))}function L(){w||(w=!0,M(),g.close(),g=null)}function O(v){var T=new Error("probe error: "+v);T.transport=g.name,L(),o('probe transport "%s" failed because of error: %s',d,v),x.emit("upgradeError",T)}function W(){O("transport closed")}function C(){O("socket closed")}function D(v){g&&v.name!=g.name&&(o('"%s" works - aborting "%s"',v.name,g.name),L())}function M(){g.removeListener("open",R),g.removeListener("error",O),g.removeListener("close",W),x.removeListener("close",C),x.removeListener("upgrading",D)}g.once("open",R),g.once("error",O),g.once("close",W),this.once("close",C),this.once("upgrading",D),g.open()},p.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",p.priorWebsocketSuccess=this.transport.name=="websocket",this.emit("open"),this.flush(),this.readyState=="open"&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var d=0,g=this.upgrades.length;d';x=document.createElement(O)}catch{x=document.createElement("iframe"),x.name=h.iframeId,x.src="javascript:0"}x.id=h.iframeId,h.form.appendChild(x),h.iframe=x}L(),f=f.replace(a,`\\ `),this.area.value=f.replace(o,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){h.iframe.readyState=="complete"&&R()}:this.iframe.onload=R}}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{"./polling":17,"component-inherit":9}],16:[function(t,e,n){(function(i){var s=t("xmlhttprequest-ssl"),r=t("./polling"),o=t("component-emitter"),a=t("component-inherit"),l=t("debug")("engine.io-client:polling-xhr");e.exports=c,e.exports.Request=f;function u(){}function c(h){if(r.call(this,h),i.location){var d=location.protocol=="https:",g=location.port;g||(g=d?443:80),this.xd=h.hostname!=i.location.hostname||g!=h.port,this.xs=h.secure!=d}else this.extraHeaders=h.extraHeaders}a(c,r),c.prototype.supportsBinary=!0,c.prototype.request=function(h){return h=h||{},h.uri=this.uri(),h.xd=this.xd,h.xs=this.xs,h.agent=this.agent||!1,h.supportsBinary=this.supportsBinary,h.enablesXDR=this.enablesXDR,h.pfx=this.pfx,h.key=this.key,h.passphrase=this.passphrase,h.cert=this.cert,h.ca=this.ca,h.ciphers=this.ciphers,h.rejectUnauthorized=this.rejectUnauthorized,h.extraHeaders=this.extraHeaders,new f(h)},c.prototype.doWrite=function(h,d){var g=typeof h!="string"&&h!==void 0,w=this.request({method:"POST",data:h,isBinary:g}),x=this;w.on("success",d),w.on("error",function(R){x.onError("xhr post error",R)}),this.sendXhr=w},c.prototype.doPoll=function(){l("xhr poll");var h=this.request(),d=this;h.on("data",function(g){d.onData(g)}),h.on("error",function(g){d.onError("xhr poll error",g)}),this.pollXhr=h};function f(h){this.method=h.method||"GET",this.uri=h.uri,this.xd=!!h.xd,this.xs=!!h.xs,this.async=h.async!==!1,this.data=h.data!=null?h.data:null,this.agent=h.agent,this.isBinary=h.isBinary,this.supportsBinary=h.supportsBinary,this.enablesXDR=h.enablesXDR,this.pfx=h.pfx,this.key=h.key,this.passphrase=h.passphrase,this.cert=h.cert,this.ca=h.ca,this.ciphers=h.ciphers,this.rejectUnauthorized=h.rejectUnauthorized,this.extraHeaders=h.extraHeaders,this.create()}o(f.prototype),f.prototype.create=function(){var h={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};h.pfx=this.pfx,h.key=this.key,h.passphrase=this.passphrase,h.cert=this.cert,h.ca=this.ca,h.ciphers=this.ciphers,h.rejectUnauthorized=this.rejectUnauthorized;var d=this.xhr=new s(h),g=this;try{l("xhr open %s: %s",this.method,this.uri),d.open(this.method,this.uri,this.async);try{if(this.extraHeaders){d.setDisableHeaderCheck(!0);for(var w in this.extraHeaders)this.extraHeaders.hasOwnProperty(w)&&d.setRequestHeader(w,this.extraHeaders[w])}}catch{}if(this.supportsBinary&&(d.responseType="arraybuffer"),this.method=="POST")try{this.isBinary?d.setRequestHeader("Content-type","application/octet-stream"):d.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}"withCredentials"in d&&(d.withCredentials=!0),this.hasXDR()?(d.onload=function(){g.onLoad()},d.onerror=function(){g.onError(d.responseText)}):d.onreadystatechange=function(){d.readyState==4&&(d.status==200||d.status==1223?g.onLoad():setTimeout(function(){g.onError(d.status)},0))},l("xhr data %s",this.data),d.send(this.data)}catch(x){setTimeout(function(){g.onError(x)},0);return}i.document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(h){this.emit("data",h),this.onSuccess()},f.prototype.onError=function(h){this.emit("error",h),this.cleanup(!0)},f.prototype.cleanup=function(h){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,h)try{this.xhr.abort()}catch{}i.document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var h;try{var d;try{d=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch{}if(d==="application/octet-stream")h=this.xhr.response;else if(!this.supportsBinary)h=this.xhr.responseText;else try{h=String.fromCharCode.apply(null,new Uint8Array(this.xhr.response))}catch{for(var g=new Uint8Array(this.xhr.response),w=[],x=0,R=g.length;x"u")try{f=t("ws")}catch{}e.exports=p;function p(h){var d=h&&h.forceBase64;d&&(this.supportsBinary=!1),this.perMessageDeflate=h.perMessageDeflate,s.call(this,h)}a(p,s),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var h=this.uri(),d=void 0,g={agent:this.agent,perMessageDeflate:this.perMessageDeflate};g.pfx=this.pfx,g.key=this.key,g.passphrase=this.passphrase,g.cert=this.cert,g.ca=this.ca,g.ciphers=this.ciphers,g.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(g.headers=this.extraHeaders),this.ws=c?new f(h):new f(h,d,g),this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="buffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var h=this;this.ws.onopen=function(){h.onOpen()},this.ws.onclose=function(){h.onClose()},this.ws.onmessage=function(d){h.onData(d.data)},this.ws.onerror=function(d){h.onError("websocket error",d)}},typeof navigator<"u"&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(p.prototype.onData=function(h){var d=this;setTimeout(function(){s.prototype.onData.call(d,h)},0)}),p.prototype.write=function(h){var d=this;this.writable=!1;for(var g=h.length,w=0,x=g;w1?{type:d[T],data:C.substring(1)}:{type:d[T]}}var v=new Uint8Array(C),T=v[0],E=o(C,1);return w&&D==="blob"&&(E=new w([E])),{type:d[T],data:E}},n.decodeBase64Packet=function(C,D){var M=d[C.charAt(0)];if(!i.ArrayBuffer)return{type:M,data:{base64:!0,data:C.substr(1)}};var v=a.decode(C.substr(1));return D==="blob"&&w&&(v=new w([v])),{type:M,data:v}},n.encodePayload=function(C,D,M){typeof D=="function"&&(M=D,D=null);var v=r(C);if(D&&v)return w&&!p?n.encodePayloadAsBlob(C,M):n.encodePayloadAsArrayBuffer(C,M);if(!C.length)return M("0:");function T(I){return I.length+":"+I}function E(I,S){n.encodePacket(I,v?D:!1,!0,function(N){S(null,T(N))})}W(C,E,function(I,S){return M(S.join(""))})};function W(C,D,M){for(var v=new Array(C.length),T=l(C.length,M),E=function(S,N,J){D(N,function(Q,X){v[S]=X,J(Q,v)})},I=0;I0;){for(var I=new Uint8Array(v),S=I[0]===0,N="",J=1;I[J]!=255;J++){if(N.length>310){E=!0;break}N+=I[J]}if(E)return M(g,0,1);v=o(v,2+N.length),N=parseInt(N);var Q=o(v,0,N);if(S)try{Q=String.fromCharCode.apply(null,new Uint8Array(Q))}catch{var X=new Uint8Array(Q);Q="";for(var J=0;J=55296&&S<=56319&&E65535&&(I-=65536,S+=l(I>>>10&1023|55296),I=56320|I&1023),S+=l(I);return S}function f(v){if(v>=55296&&v<=57343)throw Error("Lone surrogate U+"+v.toString(16).toUpperCase()+" is not a scalar value")}function p(v,T){return l(v>>T&63|128)}function h(v){if((v&4294967168)==0)return l(v);var T="";return(v&4294965248)==0?T=l(v>>6&31|192):(v&4294901760)==0?(f(v),T=l(v>>12&15|224),T+=p(v,6)):(v&4292870144)==0&&(T=l(v>>18&7|240),T+=p(v,12),T+=p(v,6)),T+=l(v&63|128),T}function d(v){for(var T=u(v),E=T.length,I=-1,S,N="";++I=R)throw Error("Invalid byte index");var v=x[L]&255;if(L++,(v&192)==128)return v&63;throw Error("Invalid continuation byte")}function w(){var v,T,E,I,S;if(L>R)throw Error("Invalid byte index");if(L==R)return!1;if(v=x[L]&255,L++,(v&128)==0)return v;if((v&224)==192){var T=g();if(S=(v&31)<<6|T,S>=128)return S;throw Error("Invalid continuation byte")}if((v&240)==224){if(T=g(),E=g(),S=(v&15)<<12|T<<6|E,S>=2048)return f(S),S;throw Error("Invalid continuation byte")}if((v&248)==240&&(T=g(),E=g(),I=g(),S=(v&15)<<18|T<<12|E<<6|I,S>=65536&&S<=1114111))return S;throw Error("Invalid UTF-8 detected")}var x,R,L;function O(v){x=u(v),R=x.length,L=0;for(var T=[],E;(E=w())!==!1;)T.push(E);return c(T)}var W={version:"2.0.0",encode:d,decode:O};if(r&&!r.nodeType)if(o)o.exports=W;else{var C={},D=C.hasOwnProperty;for(var M in W)D.call(W,M)&&(r[M]=W[M])}else s.utf8=W})(this)}).call(this,typeof self<"u"?self:typeof window<"u"?window:{})},{}],30:[function(t,e,n){var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),s=64,r={},o=0,a=0,l;function u(p){var h="";do h=i[p%s]+h,p=Math.floor(p/s);while(p>0);return h}function c(p){var h=0;for(a=0;a{n&&console.error(n)},!1,!0)}reportIncident(){}reportError(e){const n=JSON.stringify(e);ft.post("https://va.tawk.to/log",n,{},i=>{i&&console.error("[Tawk/Logger]: Error report sent",i)},!1,!0)}}const En=new qd,zd="(?:(?:[a-z]+:)?//)?",Kd="(?:\\S+(?::\\S*)?@)?",Xd="(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)",Jd="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Gd="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Qd="(?::\\d{2,5})?",Yd='(?:[/?#][^\\s"]*)?',Zd=[zd,Kd,"(?:localhost|"+Xd+Jd+Gd+")",Qd,Yd].join(""),ht={regLineBreaks:/(\r\n|\n|\r)/gm,regBr://,regMatchUrl:new RegExp("(?:^"+Zd+"$)","i"),regMatchIp:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?\/([a-zA-Z0-9!$&'()*+.=-_~:@\\/\\?#]+)+)\b/gi,regEmailMatch:/^((mailto:){0,1}[a-zA-Z0-9_.\-+])+@(([a-zA-Z0-9\\-])+\.)+([a-zA-Z0-9]+)$/,regTelMatch:/^(tel:\+|\+|tel:){1}(?:[0-9\-\(\)\/\.]\s?){6,15}[0-9]{1}\b/gi,br:"
",getTargetElement(t){let e=t.target;return e&&e.nodeType===3&&(e=e.parentNode),e},formatFileSize(t){const e=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=parseInt(t,10);if(!n)return"0Bytes";for(let i=1;i{if(n)return e();t(i.handle)})},uploadFile(t,e,n,i){const s=new FormData;s.append("upload",n,n.name||n.filename||"file"),ft.post(`https://upload.tawk.to/upload/visitor-chat/visitor?handle=${t}&visitorSessionId=${e}`,s,{},(r,o)=>{if(r)return i(!0);i(o)})}};function si(){return`t${rr()}`}const iu=function(t){const e=t.map(n=>n.then(i=>({status:"fulfilled",value:i})).catch(i=>({status:"rejected",reason:i})));return Promise.all(e)};function eh(t){return{all:t=t||new Map,on:function(e,n){var i=t.get(e);i?i.push(n):t.set(e,[n])},off:function(e,n){var i=t.get(e);i&&(n?i.splice(i.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var i=t.get(e);i&&i.slice().map(function(s){s(n)}),(i=t.get("*"))&&i.slice().map(function(s){s(e,n)})}}}const ei=eh(),We={emit:((t,e)=>ei.emit(t,e)),on:((t,e)=>ei.on(t,e)),off:((t,e)=>ei.off(t,e)),once(t,e){const n=(...i)=>{ei.off(t,n),e(i[0])};ei.on(t,n)},install(t){t&&t.provide("emitter",this)}},Pe=St("browserData",()=>{const t=k(!1),e=k(null),n=k(null),i=k(null),s=k(null),r=k(null),o=k(!0),a=k(null);function l(f){s.value=f.vendor,r.value=String(f.version),t.value=f.isIE,n.value=f.mobileBrowserName||null,e.value=f.html5audio,i.value=f.searchEngine,o.value=f.isWebRTCAvailable,a.value=f.os}function u(f){n.value=f}function c(){t.value=!1,e.value=null,n.value=null,i.value=null,s.value=null,r.value=null,o.value=!0,a.value=null}return{isIE:t,html5audio:e,mobileBrowserName:n,searchEngine:i,vendor:s,version:r,isWebRTCAvailable:o,os:a,updateInitialData:l,updateMobileBrowserName:u,resetState:c}});class th{constructor(){j(this,"incomingMessage");j(this,"audioContext");j(this,"isReadyForInit");j(this,"touchstartInited");j(this,"TawkWindow");j(this,"soundFile");this.incomingMessage=null,this.audioContext=null,this.isReadyForInit=!1,this.touchstartInited=!1,this.TawkWindow=null,this.soundFile="https://embed.tawk.to/_s/v4/assets/audio/chat_sound.mp3"}install(e,{TawkWindow:n}){e&&e.provide("audioPlayer",this),this.TawkWindow=n}init(){let e;const n=Pe().html5audio;!n||!n.supported||(!this.audioContext&&!/Firefox/.test(navigator.userAgent)&&typeof AudioBuffer<"u"&&(window.AudioContext!==void 0||window.webkitAudioContext!==void 0)&&(window.AudioContext=window.AudioContext||window.webkitAudioContext,this.audioContext=new window.AudioContext),this.audioContext?this.incomingMessage=this.audioContextPlayer():this.incomingMessage=this.htmlAudioPlayer(),this.audioContext&&(e=()=>{var i;if(this.isReadyForInit&&!this.touchstartInited){const s=this.incomingMessage;s.volume=0,s.play(),(i=s.source)==null||i.stop(0),s.volume=1,window&&typeof window.removeEventListener=="function"&&window.removeEventListener("touchstart",e),this.touchstartInited=!0}},Pe().mobileBrowserName&&"ontouchstart"in window&&window.addEventListener("touchstart",e,{passive:!0})))}playSound(){se.local_API.disableSound||K().isSoundEnabled&&K().localSoundEnabled&&this.incomingMessage&&this.incomingMessage.play()}audioContextPlayer(){const e={sourcePath:this.soundFile,buffer:null,source:null,volume:1,play:()=>{if(e.buffer){const n=this.audioContext.createGain();n.gain.value=e.volume,e.source=this.audioContext.createBufferSource(),e.source.buffer=e.buffer,e.source.connect(n),n.connect(this.audioContext.destination),e.source.start(0)}},loadBuffer:()=>{const n=new XMLHttpRequest;n.open("GET",e.sourcePath,!0),n.responseType="arraybuffer",n.onload=()=>{this.audioContext.decodeAudioData(n.response,i=>{i&&(e.buffer=i,this.isReadyForInit||(this.isReadyForInit=!0))},i=>{throw new Error(i.message)})},n.onerror=()=>{throw new Error("BufferLoader: XHR error for "+e.sourcePath)},n.send()}};return e.loadBuffer(),e}htmlAudioPlayer(){const e={play:()=>{}};return Pe().mobileBrowserName==="symbian"||(Pe().mobileBrowserName==="safari"?(e.sound=document.createElement("audio"),e.sound.src=this.soundFile,e.sound.style.cssText="position: absolute; width: 0px; height: 0px; top: -10000px; left: -10000px;",document.body.appendChild(e.sound)):e.sound=new Audio(this.soundFile),e.sound.addEventListener("timeupdate",()=>{e.sound&&e.sound.currentTime>=.2&&e.sound.pause()},!1),e.sound.load(),e.play=()=>{try{e.sound&&(e.sound.currentTime=0,e.sound.autoplay=!0,e.sound.load(),e.sound.play())}catch{}}),e}}const xi=new th,He=St("schedule",()=>{const t=k(!1),e=k([]),n=k(null);function i(o){let a=[];if(o&&typeof o.enabled<"u"?t.value=!!o.enabled:t.value=!!o,!t.value){e.value=[];return}const l=o.config?o.config.schedule:[];Array.isArray(l)?a=l:Object.keys(l).forEach(function(u){const c=l[u];c.start===0&&c.end===0||a.push({day:parseInt(u,10),start:Math.floor(c.start/6e4),end:Math.floor(c.end/6e4)})}),e.value=a}function s(o){o?n.value={tzo:o.tzo!==void 0?o.tzo:o.offset,utc:o.utc}:n.value=null}function r(){t.value=!1,e.value=[],n.value=null}return{isEnabled:t,slots:e,timezone:n,addSlots:i,updateTimezone:s,resetState:r}});let zn=null;function nh(t){zn=t}function Sn(){return zn}function su(){return!!(zn&&!zn.closed)}function ru(){return!su()||typeof zn.focus!="function"?!1:(zn.focus(),!0)}const ou=St("overlay",()=>{const t=k(!1);function e(i){t.value!==i&&(t.value=i)}function n(){t.value=!1}return{isOpen:t,updateOverlay:e,resetState:n}}),ih=15,sh=new Set(["/","chat","prechat"]),$i=()=>({current:"/",history:[],routes:[]}),dn=St("router",()=>{const t=k($i().current),e=k($i().history),n=k($i().routes),i=ee(()=>t.value==="/"),s=ee(()=>n.value.find(x=>x.path===t.value)??null),r=ee(()=>x=>n.value.find(R=>R.path===x)),o=ee(()=>e.value);function a(x){if(!n.value.some(R=>R.path===x))throw new Error(`Unrecognised route: ${x}`);t.value!==x&&(t.value=x,d(x))}function l(){g(),w()}function u(x){n.value=x}function c(x){const R=n.value.find(L=>L.path===x.path);R&&typeof x.hasBack<"u"&&(R.hasBack=x.hasBack)}function f(){e.value=[]}function p(x){const R=e.value.indexOf(x);R!==-1&&e.value.splice(R,1)}function h(){const x=$i();t.value=x.current,e.value=x.history,n.value=x.routes}function d(x){e.value.length>=ih&&e.value.splice(0,1),e.value.push(x)}function g(){e.value.pop();const x=e.value[e.value.length-1];t.value=x??"/"}function w(){(sh.has(t.value)||e.value.length===0)&&ou().updateOverlay(!1)}return{current:t,history:e,routes:n,isHome:i,getCurrentView:s,getRoute:r,getHistory:o,routerPush:a,routerBack:l,addRoutes:u,updateRoute:c,clearHistory:f,removeFromHistory:p,resetState:h}}),G=St("session",()=>{const t=k(!1),e=k("min"),n=k([]),i=k(!1),s=k(!1),r=k(""),o=k(0),a=k(!1),l=k(null),u=k(!1),c=k(""),f=k(""),p=k(6e4),h=k(0),d=k(null),g=k(0),w=k(null),x=k(null),R=k(null),L=k(null),O=k(!1),W=k(!1),C=k(!1),D=k(null),M=k(null),v=k("US"),T=k(null);function E(b){t.value=!0,b||we.publish("notifyChatBubbleClosed")}function I(){de.sessionStore().getItem("previousNav")!==window.location.href&&setTimeout(function(){const P={u:window.location.href,t:document.title};x.value!==null&&(P.t=x.value),document.referrer&&R.value!==document.referrer&&(R.value=document.referrer,P.r=document.referrer),we.publish("nav",P),de.sessionStore().setItem("previousNav",P.u)},500)}function S(b){b!==r.value&&se.triggerApiHandlers("onStatusChange",b)}function N({data:b,status:P}){const B=He(),z=K();if(!B.isEnabled&&typeof z.agentDrivenStatus<"u"&&z.agentDrivenStatus===!1){S("online"),r.value="online",b&&Object.keys(b).length&&b.dptst&&Array.isArray(b.dptst)&&(n.value=b.dptst);return}if(b&&Object.keys(b).length){const V=b.ast;if(!V||!be.isString(V)||b.dptst&&!Array.isArray(b.dptst))return;(b.asver>o.value||b.asver===0)&&(It.originalPageStatus=b.ast,o.value=b.asver,n.value=b.dptst,B.isEnabled||(S(b.ast),r.value=b.ast),It.calculate());return}P&&(S(P),r.value=P)}function J(){K().isWindowed?window.close():e.value==="min"?(X("max"),Z().setSeenAllUnseenMessages()):X("min")}function Q(b){e.value=b}function X(b){if(b==="max"&&su()){ru();return}if(e.value===b)return;Q(b);const P=K();b==="max"&&P.onClick==="pop"||(b==="max"?se.triggerApiHandlers("onChatMaximized"):b==="min"&&se.triggerApiHandlers("onChatMinimized"),we.publish("notifyWindowState",b))}function re(b){typeof b.vss!==void 0&&(f.value=b.vss),typeof b.sk!==void 0&&(c.value&&c.value!==b.sk&&(de.sessionStore().setItem("previousNav",null),dn().routerPush("/")),c.value=b.sk)}function ge(b){s.value=b}function De(b){a.value=b}function Te(b){l.value=b}function ke(b){i.value=b}function $e(b){const P=new Date;P.setSeconds(b.expiry),b.token?(d.value=b.token,Ue.storeToken(b.token)):d.value=Ue.getStoredToken(),g.value=P.getTime()}async function dt(){return new Promise((b,P)=>{Ue.TawkWindow.register.init(B=>{$e({token:B.data.tkn,expiry:B.data.tknExp}),b(void 0)},P)})}function ze(b){h.value=b,we.publish("visitorChatSeen",{timestamp:b},function(){})}function mt(){L.value&&clearTimeout(L.value),t.value=!1,e.value="min",n.value=[],i.value=!1,s.value=!1,o.value=0,a.value=!1,l.value=null,u.value=!1,c.value="",f.value="",p.value=6e4,h.value=0,d.value=null,g.value=0,w.value=null,x.value=null,R.value=null,L.value=null,O.value=!1,W.value=!1,C.value=!1,D.value=null,M.value=null,v.value="US",T.value=null}function vt(b){p.value=b}function Ye(){L.value&&clearTimeout(L.value),!(p.value<=6e4)&&(O.value?(p.value=p.value-6e4,L.value=setTimeout(()=>{Ye()},6e4)):(O.value=!0,L.value=setTimeout(()=>{Ye()},6e4)))}function st(){W.value||(W.value=!0,Ye())}async function rt(){new Date().getTime()>=g.value&&await dt()}function en(b){C.value=!!b}function m(b){v.value=b||"US"}function y(b){T.value=b||null}function A(b){w.value=b,de.sessionStore().setItem("previousNav",null)}return{chatBubbleClosed:t,chatWindowState:e,departments:n,isWindowFocused:i,needConsent:s,pageStatus:r,pageStatusVersion:o,prechatFormSubmitted:a,previousSessionKey:l,restarted:u,sessionKey:c,visitorSocketServer:f,waitTime:p,lastMessageTimestamp:h,token:d,tokenExpiry:g,isInactive:w,originalPageTitle:x,pageReferrer:R,waitTimeTimeout:L,waitTimeFirstTime:O,waitTimeInitialized:W,isReconnecting:C,isNotValidEmail:D,isNotValidPhone:M,countryCode:v,regionalCode:T,closeChatBubble:E,sendNavigationEvent:I,setPageStatus:N,toggleWidget:J,setChatWindowState:Q,updateChatWindowState:X,updateConnectionData:re,updateConsentFlag:ge,updatePrechatSubmitted:De,updatePreviousSessionKey:Te,updateIsWindowFocused:ke,updateToken:$e,retrieveNewToken:dt,updateVisitorChatSeen:ze,resetState:mt,updateWaitTime:vt,addWaitTime:st,waitTimeUpdater:Ye,checkTokenValidity:rt,reconnectSession:en,triggerPageStatusAPI:S,setCountryCode:m,setRegionalCode:y,setIsInactive:A}});class rh{constructor(){j(this,"setupTimeout",null);j(this,"agentCountSubscription",null);j(this,"originalPageStatus",null);j(this,"utcOffset",0);j(this,"isSetup",!1);j(this,"agentCountListener",null);j(this,"isCleanedUp",!1);j(this,"TawkWindow",null);j(this,"initial")}install(e,{TawkWindow:n}){e&&e.provide("scheduler",this),this.TawkWindow=n}setup(){this.clear(),this.isCleanedUp=!1,this.originalPageStatus===null&&(this.originalPageStatus=G().pageStatus),He().isEnabled?(this.utcOffset=(new Date().getTime()-He().timezone.utc)*-1,this.isSetup=!0,this.calculate()):G().setPageStatus({status:this.originalPageStatus})}clear(){clearTimeout(this.setupTimeout),this.setupTimeout=null}cleanUp(){this.clear(),this.originalPageStatus=null,this.isSetup=!1,this.unwatchAgentCount(),this.isCleanedUp=!0}calculate(){if(this.clear(),this.isCleanedUp)return this.setup();if(!this.isSetup||!He().isEnabled){G().setPageStatus({status:this.originalPageStatus});return}const e=He().slots;if(e.length===0){this.goOffline();return}let n,i,s;const r=new Date,o=r.getTimezoneOffset()*-6e4,a=He().timezone.tzo-o,l=new Date(r.getTime()+this.utcOffset+a),u=l.getDay(),c=l.getHours()*60+l.getMinutes(),f=c*60+l.getSeconds();for(let p=0;p=h.start&&c{this.calculate()},s*1e3))}goOnline(){this.unwatchAgentCount(),K().agentDrivenStatus||G().setPageStatus({status:"online"}),this.originalPageStatus&&(G().setPageStatus({status:this.originalPageStatus}),this.initial=!1)}goOffline(){Z().agentsCount===0&&G().setPageStatus({status:"offline"}),this.agentCountListener=Ct(()=>Z().agentsCount,e=>{e===0&&G().setPageStatus({status:"offline"})})}unwatchAgentCount(){typeof this.agentCountListener=="function"&&(this.agentCountListener(),this.agentCountListener=null)}hasScheduleToday(){const e=He().slots,n=new Date,i=n.getTimezoneOffset()*-6e4,s=He().timezone.tzo-i,o=new Date(n.getTime()+this.utcOffset+s).getDay();for(let a=0;a=u.start&&a{const t=k({}),e=k(0),n=k([]),i=k(Bo()),s=k({}),r=k(null),o=k(null),a=k({}),l=k({data:null,version:null}),u=k(!1),c=k(null),f=k(!1),p=k([]),h=k(!1),d=k(!1),g=k(!1),w=k([]),x=k(null),R=k(null),L=k(!1),O=k(Ho()),W=k(""),C=ee(()=>!!(!g.value&&h.value&&e.value>0)),D=ee(()=>!!(!g.value&&h.value)),M=ee(()=>!D.value),v=ee(()=>_=>{const te=t.value[_];return te&&te.profileId&&s.value[te.profileId]||null}),T=ee(()=>_=>a.value[_]);function E(_){o.value=_,L.value=!1,Object.keys(i.value.lastMessage).length===0&&!L.value&&(L.value=!0)}function I(_){R.value=_}function S(_){h.value=_}function N(_){d.value=_}function J(_){r.value=_}function Q(_){c.value=_}function X(_){l.value.data=_}function re(_){w.value.push(_)}function ge(_){const te=w.value.findIndex(he=>he.uuid===_);te!==-1&&w.value.splice(te,1)}function De(_){O.value.refs[_.id]=_.done}function Te(_){i.value.history=_}function ke(_){i.value.id=_}function $e(_){x.value=_}function dt(_){f.value=_,g.value=!_}function ze(_){O.value.ticket.hasSubmitted=_}function mt(_){O.value.lead.hasSubmitted=_}function vt(_){return M.value?(W.value=_,!0):!1}function Ye(){W.value=""}function st(_){_=_||{};const te=_.cver||0,he=_.c||[];if(i.value.synced=!0,!(i.value.version>=te)){for(let pe=0,Fe=i.value.buffer.length;pete&&he.push(i.value.buffer[pe]);for(let pe=0,Fe=he.length;pe{xi.playSound(),E(ot),i.value.version=_.cver,q(ot)},50)}}h.value&&!d.value&&K().showEstimatedWaitTime&&G().addWaitTime(),i.value.version=te}}function rt(_){e.value+=_}function en(_){i.value.version=_}function m(_){i.value.department=_}function y(_){if(G().pageStatus==="offline")if(_.ut==="a")G().setPageStatus({status:"online"});else return;if(_.cver>i.value.version){if(_.md&&_.md.ao){i.value.version=_.cver;return}const te=Je.parseChatMessage(_,!0);te&&(xi.playSound(),E(te),i.value.version=_.cver,q(te))}}function A(_){_&&_.cver>i.value.version&&(i.value.version=_.cver,q(_))}function b(_){let te;const he=s.value[_.profileData.profileId];for(let pe=0;pe0?i.value.messages[i.value.order]:null;for(_=Fe,te=Be.length;_=new Date(he.co).getTime())continue;he.ut==="v"&&!h.value&&he.t==="c"&&(pe=new Date().getTime()-new Date(he.co).getTime());const at=Je.parseChatMessage(he);at&&(setTimeout(function(){E(at)}),q(at))}if(h.value&&!d.value&&K().showEstimatedWaitTime){const at=G();at.waitTime<(pe||0)?at.waitTime=6e4:at.waitTime=at.waitTime-(pe||0),at.addWaitTime()}f.value=h.value||d.value,g.value=!!i.value.endVersion&&!f.value,i.value.historyProcessed=!0}function z(_){i.value.unseenMessages.push(_),i.value.unreadMessage+=1}function V(){i.value.unseenMessages=[],i.value.unreadMessage=0}function U(){n.value=[],s.value={},t.value={},e.value=0}function H(_){_=_||function(){},we.publish("endVisitorChat",(te,he)=>{if(te){_(!0);return}const pe=Object.keys(i.value.messages),Fe=[];for(let Be=0;Be(l.value.version||0)&&(l.value.data=_,l.value.version=te)}function oe(_){_&&(i.value.order+=1,i.value.messages[i.value.order]=_)}function fe(_){p.value.push(_)}function me(){p.value=[]}function q(_){i.value.order+=1,i.value.messages[i.value.order]=_,(_.type==="c"||_.callData)&&(i.value.lastMessage=_),_.type==="c"&&_.senderType!=="s"&&!f.value&&He().isEnabled&&It.hasScheduleToday()&&It.hasCurrentTimePassedSchedule()&&Ve().id==="603e2c2c1c1c2a130d63fd5a"&&En.reportError({incident:"Sending chat message while offline",data:{currentTime:new Date,timezone:new Date().getTimezoneOffset(),userAgent:window.navigator.userAgent},state:{schedule:{isEnabled:He().isEnabled,slots:He().slots,timeZone:He().timezone},session:{pageStatus:G().pageStatus},widget:{id:K().id},visitor:{id:Jt().visitorId}}}),_.type==="c"&&_.senderType!=="s"&&!f.value&&G().pageStatus!=="offline"&&(dt(!0),se.triggerApiHandlers("onChatStarted",{chatId:i.value.id}))}function le(_){const te=[],he=[];let pe;const Fe=i.value.id;let Be;for(let ot=0;ot<_.length;ot++){const Ke=_[ot];if(Ke.t==="c"){Be=Ke.m;continue}if(Ke.t==="n"&&Ke.m==="AGENT_JOIN_CONVERSATION"&&Ke.md){const at=Ke.md;te.push({displayName:be.rawDecode(Ke.n),profileId:at.pid,profileImage:at.pi,profileTitle:be.rawDecode(at.pst)}),he.indexOf(Ke.uid)===-1&&he.push(Ke.uid);continue}Ke.m==="CHAT_ENDED"&&(pe=Ke.co)}i.value.endedChats.unshift({id:Fe+String(i.value.endedChats.length),agentAliases:te,agentIds:he,snippet:Be,messages:_,endedOn:pe,isTemp:!0})}function ve(_){u.value=_}function xe(_){O.value.ticket.id=_}function Ne(_){O.value.lead.id=_}function Oe(){if(i.value.unseenMessages.length>0){const _=Object.keys(i.value.messages).length,te=i.value.messages[_];te&&te.timeStamp&&(G().updateVisitorChatSeen(te.timeStamp),V(),se.triggerApiHandlers("onUnreadCountChanged",i.value.unreadMessage))}}function Le(){t.value={},e.value=0,n.value=[],i.value=Bo(),s.value={},r.value=null,o.value=null,a.value={},l.value={data:null,version:null},u.value=!1,c.value=null,f.value=!1,p.value=[],h.value=!1,d.value=!1,g.value=!1,w.value=[],x.value=null,R.value=null,L.value=!1,O.value=Ho()}return{agents:t,agentsCount:e,activeProfiles:n,chat:i,allProfiles:s,rating:r,incomingMessage:o,calls:a,chatTransfer:l,ongoingCall:u,incomingCall:c,hasChatStarted:f,messageBlocks:p,visitorHasMessaged:h,agentHasMessaged:d,hasChatEnded:g,uploadFiles:w,lastScrollPositon:x,outgoingMessage:R,firstIncoming:L,form:O,chatInputMessage:W,isChatOngoing:C,isVisitorEngaged:D,canSetChatInputMessage:M,agentProfile:v,callData:T,setIncomingMessage:E,setOutgoingMessage:I,setVisitorHasMessaged:S,setAgentHasMessaged:N,setRating:J,setIncomingCall:Q,setChatTransferData:X,addFileUpload:re,removeFileUpload:ge,setFormRefs:De,setHistoryMessages:Te,setChatId:ke,setLastScrollPosition:$e,setChatHasStarted:dt,setTicketFormSubmit:ze,setLeadFormSubmit:mt,setChatInputMessage:vt,clearChatInputMessage:Ye,updateConversation:st,updateAgentCount:rt,updateVersion:en,updateDepartment:m,incomingChatMessage:y,outgoingChatMessage:A,agentJoined:b,agentLeft:P,setPreviousMessages:B,updateUnseenMessages:z,clearUnseenMessages:V,clearProfiles:U,endChat:H,handleIncomingChatEnd:ie,updateCallData:Y,updateChatTransferData:ne,updateRatingMessage:oe,addMessageBlock:fe,clearMessageBlock:me,updateChatMessage:q,processEndedChat:le,updateOngoingCall:ve,setTicketFormID:xe,setLeadFormID:Ne,setSeenAllUnseenMessages:Oe,resetState:Le}});class oh{constructor(){j(this,"keyDownTimeout",null);j(this,"webrtcWin",null);j(this,"maxNumberFileUpload",5);j(this,"maxSizeFileUpload",50*1024*1024);j(this,"regSurvey",/\[option\](.*?)(|$)/gm);j(this,"regSurveyQuestion",/^(.*?)\[option\]/s);j(this,"regOption",/\[option\]/g);j(this,"TawkWindow",null)}install(e,{TawkWindow:n}){e&&e.provide("chatManager",this),this.TawkWindow=n}processHistoryMessages(e){const n=[],i={};let s=null,r=!1,o=!1,a=!1;for(let l=0;l{const O=L.type;O==="suggested-messages"?(a=!0,s={options:L.content.options}):O==="file"?x=this.processFile(d)||{}:O==="ticket-form"?r=!0:O==="lead-capture-form"&&(o=!0)}),a||d.ut==="v")f=be.rawEncode(this.parseText(d.m));else{const{parsedMessage:L,surveyOptions:O}=this.parseSurvey(d.m);f=be.rawEncode(L),O&&(s={options:O})}n.push({...x,timeStamp:w,message:f||"",name:R,type:d.t,time:d.co,data:d.md,isPending:!1,senderType:d.ut,ownerId:u,profileImage:c,cver:d.cver,messageId:g,isCallView:p,callId:h,callData:null,surveyObj:s,rawMessage:d,hasInlineTicketForm:r,hasInlineLeadCaptureForm:o})}return n}parseChatMessage(e,n){var L,O,W;let i,s,r,o=!1,a=null,l={},u=null,c=null,f=null,p=!1,h=!1,d=!1;const g=si(),w=new Date(e.co).getTime();let x=n?!!Z().chatTransfer.data:!1;if(e.n=be.rawDecode(e.n),e.t==="n"&&(e.m==="AGENT_JOIN_CONVERSATION"||e.m==="AGENT_LEFT_CONVERSATION"))return this.updateAgentPresence(e,n),Z().updateChatMessage({rawMessage:e,type:"n"}),x&&e.m==="AGENT_JOIN_CONVERSATION"&&Z().setChatTransferData(null),null;if(e.t==="n"&&e.m==="CHAT_ENDED"&&n)return Z().handleIncomingChatEnd(e),null;if(e.t==="n"&&e.m==="CHAT_TRANSFER")return Z().updateChatMessage({rawMessage:e,type:"n"}),(L=e.md)!=null&&L.transfer&&((W=(O=e.md)==null?void 0:O.transfer)==null?void 0:W.status)==="active"?x=!0:x=!1,null;if(e.t==="n"&&e.ut==="v"){if(e.m!=="VISITOR_RATING")return;if(e.m==="VISITOR_RATING"){const C=e.md;n&&this.changeRating(C.rt,!0),C.rt<0?(e.m="thumbs-down",e.t="c"):C.rt>0?(e.m="thumbs-up",e.t="c"):e.m=Et.i18n("chat","remove_rate")}}if(e.ut==="v")s=e.uid;else if(i=e.n,e.ut==="a"){const C=e.md,D=Z().agents;D[C.rsc]&&(s=D[C.rsc].profileId);const M=Z().agentProfile(C.rsc);r=M?M.profileImage:void 0}else if(e.ut==="s"){const C=e.md;r=C&&C.pi?`https://tawk.link/${C.pi}`:"https://embed.tawk.to/_s/v4/assets/images/default-profile.svg"}e.attchs&&Array.isArray(e.attchs)&&e.attchs.forEach(C=>{const D=C.type;D==="suggested-messages"?(d=!0,u={options:C.content.options}):D==="file"?l=this.processFile(e)||{}:D==="ticket-form"?(p=!0,c=C.content.ref):D==="lead-capture-form"&&(h=!0,f=C.content.ref)});let R;if(e.m==="WEBRTC_CALL"&&e.md&&e.md.webrtc)o=!0,a=e.md.clid;else{if(e.t==="c"){if(e.ut==="v")Z().setVisitorHasMessaged(!0);else if(e.ut==="a"){if(Z().setAgentHasMessaged(!0),n){const C={message:be.rawDecodeHTMLSymbols(e.m),attachments:e.attchs?e.attchs:[]};e.m.length===0&&delete C.message,se.triggerApiHandlers("onChatMessageAgent",C)}}else if(e.ut==="s"&&n){const C={message:be.rawDecodeHTMLSymbols(e.m),attachments:e.attchs?e.attchs:[]};e.m.length===0&&delete C.message,se.triggerApiHandlers("onChatMessageSystem",C)}}if(d||e.ut==="v")R=this.parseText(e.m);else{const{parsedMessage:C,surveyOptions:D}=this.parseSurvey(e.m);R=be.rawDecodeHTMLSymbols(C),D&&(u={options:D})}}return w>G().lastMessageTimestamp&&(e.ut==="v"?G().lastMessageTimestamp=w:(Z().updateUnseenMessages(g),n&&se.triggerApiHandlers("onUnreadCountChanged",Z().chat.unreadMessage))),l={...l,timeStamp:w,message:R,name:i,type:e.t,time:e.co,data:e.md,isPending:!w,senderType:e.ut,ownerId:s,profileImage:r,cver:e.cver,messageId:g,isCallView:o,callId:a,callData:null,surveyObj:u,rawMessage:e,ticketFormRef:c,hasInlineTicketForm:p,leadFormRef:f,hasInlineLeadCaptureForm:h},l}processFile(e){if(e.attchs&&Array.isArray(e.attchs)){const n={images:[],videos:[],audios:[],files:[]};return e.attchs.forEach(i=>{if(i.type==="file"){const s=i.content.file;["image/jpeg","image/png","image/gif"].indexOf(s.mimeType)!==-1?n.images.push({source:s.url,name:be.rawEncode(s.name)}):["video/mp4","video/ogg","video/webm"].indexOf(s.mimeType)!==-1?n.videos.push({source:"selfhosted",url:s.url,name:be.rawEncode(s.name),size:ht.formatFileSize(s.size),options:{controls:"",mute:!0,loop:!1,startTime:0}}):["audio/mp3","audio/ogg","audio/mpeg","audio/wav"].indexOf(s.mimeType)!==-1?n.audios.push({source:s.url,type:s.mimeType,name:be.rawEncode(s.name),size:ht.formatFileSize(s.size)}):n.files.push({source:s.url,name:be.rawEncode(s.name),size:ht.formatFileSize(s.size)})}}),{attchs:n}}}parseText(e,n=!1){if(!e)return e;if(be.hasMarkdown(e))return be.rawEncode(e);const i=e.split(` `);for(let s=0;sthis.parseEmail(s)):e[i].match(ht.regTelMatch)?e[i]=e[i].replace(ht.regTelMatch,s=>this.parsePhoneNumber(s)):(e[i]=e[i].replace(ht.regMatchUrl,s=>this.parseUrl(s)),e[i]=e[i].replace(ht.regMatchIp,s=>this.parseUrl(s)));return e.join(n)}parseUrl(e){let n="",i;if(typeof window.emojione<"u"&&window.emojione.unifyUnicode(e)!==e)return e;const s=be.hasPunctuation(e);if(s&&s.length){const l=s[0].replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),u=new RegExp(l+"$","g");e=e.replace(u,"")}const r=`${s&&s.length?s[0]:""} `;if(e.match(ht.regEmailMatch)&&(n="mailto:"),n==="mailto:"){const l=e.match(ht.regEmailMatch)[0];return l.indexOf("mailto")!==-1&&(n=""),e.replace(ht.regEmailMatch,`[${l}](${n+l})${r}`)}e.toLowerCase().indexOf("http")!==0&&e.toLowerCase().indexOf("ftp")!==0&&(n="http://");const o=this.parseUrlHostName(document.location.href),a=this.parseUrlHostName(e);return o===a?i="_parent":i="_blank",i==="_parent"?`_[${e}](${n+e})${r}`:`[${e}](${n+e})${r}`}parseUrlHostName(e){const n=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);if(n!=null&&n.length>2&&typeof n[2]=="string"&&n[2].length>0)return n[2]}parseEmail(e){let n="";return typeof window.emojione<"u"&&window.emojione.unifyUnicode(e)!==e?e:(e.indexOf("mailto")===-1&&(n="mailto:"),`[${e}](${n+e})`)}parseSurvey(e){const n=e.match(this.regSurveyQuestion);if(n===null)return{parsedMessage:this.parseText(e),surveyOptions:null};const i=this.parseText(be.trim(n[1])),s=[],r=e.match(this.regSurvey);if(!r)return{parsedMessage:i,surveyOptions:null};for(let o=0,a=r.length;oi.seq.time||o.seq.time===i.seq.time&&o.seq.inc>i.seq.inc)){if(n){const a=Z().agentProfile(s);a&&se.triggerApiHandlers("onAgentLeaveChat",{name:a.displayName,position:a.profileTitle,image:a.profileImage,id:e.uid})}Z().agentLeft({resourceId:s,agentData:i})}}clearTypingTimeout(){this.keyDownTimeout&&(clearTimeout(this.keyDownTimeout),this.keyDownTimeout=null),we.publish("notifyMessagePreview","")}sendMessagePreview(e){let n;const i=ht.getTargetElement(e);if(e.keyCode===13&&!e.shiftKey&&!Pe().mobileBrowserName)return n=be.trim(i.value),i.value="",this.sendMessage({message:n||""});!this.keyDownTimeout&&K().showVisitorTyping&&(this.keyDownTimeout=setTimeout(()=>{n=be.trim(i.value),typeof window.emojione<"u"&&(n=window.emojione.toShort(n||"")),we.publish("notifyMessagePreview",n),clearTimeout(this.keyDownTimeout),this.keyDownTimeout=null},1e3))}async sendMessage({message:e="",attachments:n=[],callback:i}){e=be.rawDecode(be.trim(e)),i=i||function(){};let s=!1,r=[];n.length===1&&n[0].type==="lead-capture-response"?(r=n,s=!0):n.length>0&&(r=await this.uploadFiles(n)),clearTimeout(this.keyDownTimeout),this.keyDownTimeout=null,e.length>0&&typeof window.emojione<"u"&&(e=e.replace(/©/gm,"©").replace(/®/gm,"®").replace(/â„¢/gm,"™"),e=window.emojione.toShort(e),e=e.replace(/©/gm,"©").replace(/®/gm,"®").replace(/™/gm,"â„¢")),this.sendMessageToServer({message:e,attachments:r,callback:i,isLeadCaptureForm:s})}sendMessageToServer({message:e,attachments:n=[],callback:i=()=>{},isLeadCaptureForm:s=!1,isPreChat:r=!1}){i=i||function(){};const o=this.parseChatMessage({attchs:n,ut:"v",t:"c",m:be.rawEncode(e),co:null,uid:Jt().visitorId});r&&(o.data={pcs:!0}),s||Z().setOutgoingMessage(o);const a={message:e,attachments:n};r&&(a.isPreChat=!0),e.length===0&&delete a.message,we.publish("sendChatMessage",a,(l,u)=>{l?(o.sendFailed=!0,o.isPending=!1):(s&&Z().setOutgoingMessage(o),o.cver=u.data.cver,o.timeStamp=new Date(u.data.co).getTime(),o.time=u.data.co,o.isPending=!1,o.rawMessage.co=u.data.co,o.sendFailed=!1,se.triggerApiHandlers("onChatMessageVisitor",a),G().addWaitTime(),Z().outgoingChatMessage(o)),i(l)})}changeRating(e,n){let i,s="c";Z().rating===e&&(e=0),Z().setRating(e),n||(we.publish("setRating",e),se.triggerApiHandlers("onChatSatisfaction",e)),e<0?i="thumbs-down":e>0?i="thumbs-up":(i=Et.i18n("chat","remove_rate"),s="n");const r=this.parseChatMessage({ut:"v",t:s,m:i,co:new Date,uid:Jt().visitorId,md:{rt:e}});n||(Z().setOutgoingMessage(r),Z().updateRatingMessage(r))}uploadFiles(e){const n=[],i=[];for(let s=0;sthis.maxSizeFileUpload){i.push(be.rawEncode(r.file.name));continue}s>=this.maxNumberFileUpload||(Z().addFileUpload(o),n.push(new Promise((a,l)=>{$o.getUploadHandler(u=>{o.handle=u,$o.uploadFile(u,G().sessionKey,r.file,c=>{a(c),Z().removeFileUpload(o.uuid)})},l)})))}return i.length&&We.emit("tooBigFileList",i),iu(n).then(s=>{const r=[];for(let o=0;o{u.hasError||(u.hasError=!0)})}return r})}callStatusUpdate(e){let n=Z().callData(e.clid);n||(n={callId:e.clid,status:e.stts,version:e.ver,isMissed:e.mssd,isRejected:e.rjctd,isRinging:e.stts==="ringing",isDone:e.stts==="completed",isVideo:e.f?e.f.vid:!1,isScreenshare:e.f?e.f.scrn:!1,hasError:!1},Z().updateCallData(n)),we.publish("getCallStatus",{callId:e.clid},(i,s)=>{if(i||!s.data.call.f||n.version>s.data.call.ver){n.hasError=!0,Z().updateCallData(n);return}let r;const o=s.data.call;o.cllr.t==="a"&&(r=Z().agentProfile(o.cllr.urid),!r)||(n={callId:o.clid,status:o.stts,version:o.ver,isMissed:o.mssd,isRejected:o.rjctd,isRinging:o.stts==="ringing",isDone:o.stts==="completed",isVideo:o.f.vid,isScreenshare:o.f.scrn,hasError:!1,caller:r||o.cllr,startedAt:o.so,endedAt:o.eo},n.isRinging&&n.caller&&o.cllr.t==="a"?Z().setIncomingCall(n):n.isDone&&Z().incomingCall&&Z().incomingCall.callId==n.callId&&Z().setIncomingCall(null),n.isDone?Z().updateOngoingCall(!1):Z().updateOngoingCall(!0),Z().updateCallData(n),We.emit("callDataUpdated",n))})}chatTransferUpdate(e,n){Z().updateChatTransferData({transfer:e,transferVersion:n})}acceptCall(){Pe().isWebRTCAvailable&&(this.webrtcWin=window.open("",""),we.publish("getWebRTCToken",{},(e,n)=>{Z().setIncomingCall(null),e&&this.webrtcWin.close(),this.webrtcWin.location.href=`https://video.tawk.to/v2/call?token=${n.data.token}`}))}declineCall(e){const n={callId:e};we.publish("declineCall",n,()=>{Z().setIncomingCall(null)})}initiateCall(e,n){this.webrtcWin=window.open("",""),we.publish("getWebRTCToken",{video:e,screen:n},(i,s)=>{i&&this.webrtcWin.close(),this.webrtcWin.location.href=`https://video.tawk.to/v2/call?token=${s.data.token}`})}clearUnseenNotification(){Z().clearUnseenMessages(),se.triggerApiHandlers("onUnreadCountChanged",Z().chat.unreadMessage)}updateFileProgress(e,n,i){let s;const r=Z().uploadFiles;for(let o=0;o50){i=!0,n("[JSAPI/setAttributes]: 50 custom attributes are only allowed.");return}const s=o=>/^[a-zA-Z0-9_-]{1,50}$/.test(o),r=o=>typeof o=="string"&&o.length<=255||typeof o=="number"||typeof o=="boolean"||o===null;Object.keys(e).forEach(o=>{if(o==="hash")return;if(!s(o)){i=!0,n(`[JSAPI/setAttributes]: Invalid key: ${o}`);return}const a=e[o];if(!r(a)){i=!0,n(`[JSAPI/setAttributes]: Invalid value for key ${o}: ${String(a)}}`);return}}),!i&&(e=se.secureWrapper(e),we.publish("setAttributes",e,o=>{o||(e.name||e.email)&&Jt().updateVisitorInformation({n:e.name||void 0,e:e.email||void 0}),n(o)}))}addTags(e,n){n=n||function(){};const i=se.secureWrapper({});i.tags=e,we.publish("addTags",i,n)}removeTags(e,n){n=n||function(){};const i=se.secureWrapper({});i.tags=e,we.publish("removeTags",i,n)}parsePhoneNumber(e){let n="";return e.indexOf("tel")===-1&&(n="tel:"),''+e+" "}}const Je=new oh,Wo=500;class ah{constructor(){j(this,"local_API");j(this,"TawkWindow",null);j(this,"triggerApiHandlers",(e,n)=>{const i=this.local_API[e];if(i===void 0)return;const s=window.Tawk_API;if(e==="onBeforeLoad"){if(s.onBeforeLoaded)return;s.onBeforeLoaded=!0}else if(e==="onLoad"){if(s.onLoaded)return;s.onLoaded=!0}if(this.dispatch(i.eventName,n),typeof i.func=="function")try{i.func(n)}catch{}We.on("resetState",()=>{s.onBeforeLoaded=!1,s.onLoaded=!1})});j(this,"dispatch",(e,n)=>{let i;e&&(typeof window.CustomEvent=="function"?i=new CustomEvent(e,{detail:n}):i=this.CustomEventIE(e,{bubbles:!1,cancelable:!1,detail:n}),window.dispatchEvent(i))});j(this,"secureWrapper",e=>(typeof e>"u"&&(e={}),this.local_API&&this.local_API.visitor&&(this.local_API.visitor.email&&(e.email=this.local_API.visitor.email),this.local_API.visitor.hash&&(e.hash=this.local_API.visitor.hash)),e));j(this,"unsetVisitorAttributes",()=>{this.local_API&&this.local_API.visitor&&(this.local_API.visitor=void 0)});this.local_API={};const e=window;if(e.$_Tawk=e.$_Tawk||{},e.Tawk_API=e.Tawk_API||{},typeof e.$_Tawk_API=="object"){const n=e.$_Tawk_API;for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e.Tawk_API[i]=n[i])}typeof window.CustomEvent!="function"&&(this.CustomEventIE(),this.CustomEventIE.prototype=window.Event.prototype),this.init()}install(e,{TawkWindow:n}){e&&e.provide("jsApi",this),this.TawkWindow=n}CustomEventIE(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};const i=document.createEvent("CustomEvent");return i.initCustomEvent(e||"",n.bubbles,n.cancelable,n.detail),i}init(){const e=window.Tawk_API||{};this.local_API={disableSound:!!e.disableSound,embedded:e.embedded||null,visitor:e.visitor||null,autoStart:e.autoStart||!0,disableMobileBackHistory:!!e.disableMobileBackHistory,disableWidgetFont:e.disableWidgetFont||!1,isWindowed:!!e.isPopup,customStyle:e.customStyle||null,onBeforeLoad:{eventName:"tawkBeforeLoad",func:e.onBeforeLoad},onLoad:{eventName:"tawkLoad",func:e.onLoad},onStatusChange:{eventName:"tawkStatusChange",func:e.onStatusChange},onChatMaximized:{eventName:"tawkChatMaximized",func:e.onChatMaximized},onChatMinimized:{eventName:"tawkChatMinimized",func:e.onChatMinimized},onChatHidden:{eventName:"tawkChatHidden",func:e.onChatHidden},onChatStarted:{eventName:"tawkChatStarted",func:e.onChatStarted},onChatEnded:{eventName:"tawkChatEnded",func:e.onChatEnded},onPrechatSubmit:{eventName:"tawkPrechatSubmit",func:e.onPrechatSubmit},onOfflineSubmit:{eventName:"tawkOfflineSubmit",func:e.onOfflineSubmit},onTranscriptRequest:{eventName:"tawkTranscriptRequest",func:e.onTranscriptRequest},onChatMessageVisitor:{eventName:"tawkChatMessageVisitor",func:e.onChatMessageVisitor},onChatMessageAgent:{eventName:"tawkChatMessageAgent",func:e.onChatMessageAgent},onChatMessageSystem:{eventName:"tawkChatMessageSystem",func:e.onChatMessageSystem},onAgentJoinChat:{eventName:"tawkAgentJoinChat",func:e.onAgentJoinChat},onAgentLeaveChat:{eventName:"tawkAgentLeaveChat",func:e.onAgentLeaveChat},onChatSatisfaction:{eventName:"tawkChatSatisfaction",func:e.onChatSatisfaction},onVisitorNameChanged:{eventName:"tawkVisitorNameChanged",func:e.onVisitorNameChanged},onFileUpload:{eventName:"tawkFileUpload",func:e.onFileUpload},onTagsUpdated:{eventName:"tawkTagsUpdated",func:e.onTagsUpdated},onUnreadCountChanged:{eventName:"tawkUnreadCountChanged",func:e.onUnreadCountChanged}};const n=window;n.$_Tawk.maximize=n.Tawk_API.maximize=()=>{n.$_Tawk.ready||G().updateChatWindowState("max")},n.$_Tawk.minimize=n.Tawk_API.minimize=()=>{n.$_Tawk.ready||G().updateChatWindowState("min")},n.$_Tawk.toggle=n.Tawk_API.toggle=()=>{n.$_Tawk.ready||G().toggleWidget()},n.$_Tawk.popup=n.Tawk_API.popup=()=>{n.$_Tawk.ready||this.TawkWindow.popoutWidget()},n.$_Tawk.getWindowType=n.Tawk_API.getWindowType=()=>{if(!n.$_Tawk.ready)return K().isEmbedded?"embed":K().isWindowed?"popup":"inline"},n.$_Tawk.showWidget=n.Tawk_API.showWidget=()=>{n.$_Tawk.ready||K().setVisibility(!0)},n.$_Tawk.hideWidget=n.Tawk_API.hideWidget=()=>{n.$_Tawk.ready||K().setVisibility(!1)},n.$_Tawk.toggleVisibility=n.Tawk_API.toggleVisibility=()=>{n.$_Tawk.ready||K().toggleVisibility()},n.$_Tawk.getStatus=n.Tawk_API.getStatus=()=>{if(!n.$_Tawk.ready)return G().pageStatus},n.$_Tawk.isChatMaximized=n.Tawk_API.isChatMaximized=()=>{if(!n.$_Tawk.ready)return G().chatWindowState==="max"},n.$_Tawk.isChatMinimized=n.Tawk_API.isChatMinimized=()=>{if(!n.$_Tawk.ready)return G().chatWindowState==="min"},n.$_Tawk.isChatHidden=n.Tawk_API.isChatHidden=()=>{if(!n.$_Tawk.ready)return!K().isVisible},n.$_Tawk.isChatOngoing=n.Tawk_API.isChatOngoing=()=>{if(!n.$_Tawk.ready)return Z().isChatOngoing},n.$_Tawk.isVisitorEngaged=n.Tawk_API.isVisitorEngaged=()=>{if(!n.$_Tawk.ready)return Z().isVisitorEngaged},n.$_Tawk.endChat=n.Tawk_API.endChat=()=>{n.$_Tawk.ready||Z().endChat()},n.$_Tawk.addEvent=n.Tawk_API.addEvent=(i,s,r)=>{n.$_Tawk.ready||Je.sendApiEvent(i,s,r)},n.$_Tawk.setAttributes=n.Tawk_API.setAttributes=(i,s)=>{this.local_API.visitor=this.local_API.visitor||{},i.name&&(this.local_API.visitor.name=i.name),i.email&&(this.local_API.visitor.email=i.email),i.hash&&(this.local_API.visitor.hash=i.hash),Je.sendApiAttributes(i,s)},n.$_Tawk.setChatInputMessage=n.Tawk_API.setChatInputMessage=(i,s)=>{if(!n.$_Tawk.ready){if(s=s||function(){},typeof i!="string"){s("[JSAPI/setChatInputMessage]: The message must be a string.");return}if(i.trim().length===0){s("[JSAPI/setChatInputMessage]: The message must not be empty.");return}if([...i].length>Wo){s(`[JSAPI/setChatInputMessage]: The message must not exceed ${Wo} characters.`);return}if(!Z().setChatInputMessage(i)){s("[JSAPI/setChatInputMessage]: The message cannot be set once the visitor has sent a message.");return}s()}},n.$_Tawk.addTags=n.Tawk_API.addTags=(i,s)=>{Je.addTags(i,s)},n.$_Tawk.removeTags=n.Tawk_API.removeTags=(i,s)=>{Je.removeTags(i,s)},n.$_Tawk.widgetPosition=n.Tawk_API.widgetPosition=()=>{if(!n.$_Tawk.ready)return K().desktopVisibility?K().desktopVisibility.position:null},n.$_Tawk.login=n.Tawk_API.login=(i={},s)=>{if(n.$_Tawk.ready)return;s=s||function(){};const r=es.formatVisitorLoginData(i);Ue.login(r,s)},n.$_Tawk.logout=n.Tawk_API.logout=i=>{n.$_Tawk.ready||(i=i||function(){},Ue.logout(i))},n.$_Tawk.switchWidget=n.Tawk_API.switchWidget=({propertyId:i=null,widgetId:s=null},r=()=>{})=>{n.$_Tawk.ready||K().switchWidget({propertyId:i,widgetId:s,callback:r})},n.$_Tawk.shutdown=n.Tawk_API.shutdown=(i=()=>{})=>{n.$_Tawk.ready||K().shutdown(i)},n.$_Tawk.start=n.Tawk_API.start=(i={},s=()=>{})=>{n.$_Tawk.ready||K().start({params:i,callback:s})}}}const se=new ah,ys=St("socket",()=>{const t=k(!1),e=k(!1),n=k(!1),i=k([]);function s(l){const c={agentIsTyping:t,isReady:e,isConnecting:n}[l.event];c&&(c.value=l.value)}function r(l){G().sendNavigationEvent(),e.value=l,n.value=!1}function o(l){n.value=l}function a(){t.value=!1,e.value=!1,n.value=!1,i.value=[]}return{agentIsTyping:t,isReady:e,isConnecting:n,stack:i,updateEvent:s,updateIsReady:r,updateIsConnecting:o,resetState:a}});class lh{constructor(){j(this,"chatWindowStates");j(this,"io");j(this,"selfOrigin");j(this,"disconnect");j(this,"ready");j(this,"banned");j(this,"forceDisconnected");j(this,"clearRegisterRetryTimeout");j(this,"events");j(this,"stack");j(this,"connectCount");j(this,"TawkWindow");this.chatWindowStates={min:!0,max:!0},this.io=null,this.selfOrigin=null,this.disconnect=!1,this.ready=!1,this.banned=!1,this.forceDisconnected=!1,this.clearRegisterRetryTimeout=null,this.events={},this.stack=[],this.connectCount=0,this.TawkWindow=null}install(e,{TawkWindow:n}){e&&e.provide("socket",this),this.TawkWindow=n}connect(){const e=window;if(e.$_Tawk.connected=!1,this.disconnect=!1,this.forceDisconnected=!1,this.connectCount===5){K().setVisibility(!1);return}this.io&&(this.io.removeAllListeners(),this.io.disconnect());const n={k:G().sessionKey,cver:Z().chat.version,pop:K().isWindowed,asver:G().pageStatusVersion,tkn:G().token};this.connectCount++,this.io=new window.$__TawkSocket(`wss://${G().visitorSocketServer}/`,{transports:["websocket"],engineIo:window.$__TawkEngine,path:"/s",query:n}),this.io.on("disconnect",()=>{this.disconnectHandler()}),this.io.on("error",i=>{let s,r="socket on error";if(i instanceof Error){if(s={toString:i.toString(),stack:i.stack,lineNumber:i.lineNumber,fileName:i.fileName},En&&En.unloading&&s.toString.indexOf("post")===-1)return;i.type==="TransportError"&&(s.description=i.description),s.toString.indexOf("post")!==-1&&(r="socket post error")}else s=i;En.reportError({error:r,data:{...s}}),this.io.disconnect(),this.disconnectHandler()}),this.io.on("connect",()=>{this.disconnect=!1,G().reconnectSession(!1)}),this.io.on("ready",(i,s,r)=>{if(!this.TawkWindow)return this.disconnectSocket();this.selfOrigin=i,e.$_Tawk.connected=!0,this.ready||(e.$_Tawk.loaded=!0),this.ready=!0,Z().updateConversation(s),G().setPageStatus({data:r}),ys().updateIsReady(!0),this.clearStack(),clearTimeout(this.clearRegisterRetryTimeout),this.clearRegisterRetryTimeout=setTimeout(()=>{this.disconnect||this.TawkWindow.register.resetRetryCount(),this.clearRegisterRetryTimeout=null},5e3)}),this.io.on("remoteDisconnect",i=>{if(i=i||{},i.msg==="BANNED"){this.banned=!0;try{this.io.disconnect()}catch{}We.emit("removeWidget");return}this.io.disconnect(),this.disconnectHandler()}),this.addEventListeners()}disconnectSocket(){this.forceDisconnected=!0,this.io&&(this.io.disconnect(),this.disconnectHandler())}disconnectHandler(){if(window.$_Tawk.connected=!1,this.io.removeAllListeners(),It.cleanUp(),this.banned||this.forceDisconnected||this.disconnect){this.connectCount=0;return}this.disconnect=!0,G().reconnectSession(!0),this.TawkWindow.retryRegister()}addEventListeners(){this.io.on("visitorChatWindowState",e=>{if(this.selfOrigin===e.origin)return;const n=K();n.isWindowed||n.isEmbedded||G().setChatWindowState(e.cw)}),this.io.on("visitorSound",e=>{e.origin!==this.selfOrigin&&K().toggleLocalSound(!!e.sdo)}),this.io.on("pageStatus",e=>{G().setPageStatus({data:e})}),this.io.on("visitorPopupFocus",e=>{e=e||{},G().updateIsWindowFocused(!!e.hasFocus)}),this.io.on("chatBubbleClosed",e=>{e.origin!==this.selfOrigin&&G().closeChatBubble(!0)}),this.io.on("pageDisable",()=>{this.disconnectSocket(),We.emit("removeWidget")}),this.io.on("vCallStatus",e=>{Je.callStatusUpdate(e)}),this.io.on("widgetScheduleUpdate",e=>{const n=K().id;n&&n!==e.wdgt||(He().addSlots(e.ws?{config:{schedule:e.ws.sch}}:null),He().updateTimezone(e.wstz),It.calculate())}),!(!K().hasLiveChat&&(!Z().hasChatStarted||Z().hasChatStarted&&Z().agentsCount===0))&&(this.io.on("visitorDataUpdate",e=>{this.selfOrigin!==e.origin&&(Jt().updateVisitorInformation(e),e.dpt&&Z().updateDepartment(e.dpt),e.pcfs&&G().updatePrechatSubmitted(!0))}),this.io.on("visitorMessage",e=>{this.selfOrigin!==e.origin&&Z().incomingChatMessage(e)}),this.io.on("visitorConversationPresenceUpdate",e=>{Z().incomingChatMessage(e)}),this.io.on("visitorChatSeen",e=>{Je.clearUnseenNotification(e)}),this.io.on("visitorChatDismiss",e=>{We.emit("dismissPreview",e)}),this.io.on("visitorTagsUpdate",e=>{se.triggerApiHandlers("onTagsUpdated",e)}),this.io.on("uploadProgress",e=>{Je.updateFileProgress(e)}),this.io.on("uploadFinished",e=>{Je.updateFileProgress(e,!0)}),this.io.on("uploadError",e=>{Je.updateFileProgress(e,!1,!0)}),this.io.on("agentIsTyping",e=>{We.emit("agentIsTyping",e)}),this.io.on("agentStopedTyping",e=>{We.emit("agentStopedTyping",e)}),this.io.on("visitorChatTransfer",e=>{Je.chatTransferUpdate(e.transfer,e.transferVersion)}))}isForcedDisconnect(){return this.forceDisconnected}publish(e,n,i){if(!window.$_Tawk.connected){this.addToStack(e,n,i);return}if(i!==void 0||typeof n=="function")this.wrapCallback(e,n,i);else try{this.send(e,n,i)}catch{}}addToStack(e,n,i){e==="sendChatMessage"&&delete this.events.notifyMessagePreview,e==="notifyMessagePreview"?this.events[e]={command:e,data:n,callback:i}:this.stack.push({command:e,data:n,callback:i})}clearStack(){this.stack.forEach(e=>{this.publish(e.command,e.data,e.callback)});for(const e in this.events)this.publish(this.events[e].command,this.events[e].data,this.events[e].callback);this.stack=[],this.events={}}wrapCallback(e,n,i){typeof n=="function"&&(i=n,n=null);const s=setTimeout(function(){throw i(!0),new Error("Socket server did not execute the callback for "+e+" with data : "+JSON.stringify(n))},35e3);let r=function(...o){clearTimeout(s),r=()=>{},i(...o)};try{n===null?this.send(e,r):this.send(e,n,r)}catch{}}send(e,n,i){this[e](n,i)}nav(e,n){this.io.send("nav",e,n)}notifyMessagePreview(e){this.io.send("messagePreview",e,new Date().getTime())}sendChatMessage(e,n){this.io.send("service","visitor-chat","/v1/message/visitor",e,n)}getCallStatus(e,n){this.io.send("service","webrtc","/v1/vcall/status/visitor",e,n)}getWebRTCToken(e,n){this.io.send("service","webrtc","/v1/vcall/init/visitor",e,n)}declineCall(e,n){this.io.send("service","webrtc","/v1/vcall/reject/visitor",e,n)}notifyOfflineMessage(e,n){this.io.send("service","visitor-chat","/v1/visitor/offline-form",e,n)}visitorChatSeen(e,n){this.io.send("service","visitor-chat","/v1/visitor/messages-seen",e,n)}notifyPrechat(e,n){this.io.send("service","visitor-chat","/v1/visitor/prechat-form",e,n)}notifyNameChange(e,n){this.io.send("saveNameChangeForm",e,n)}notifyEmailTranscript(e,n){this.io.send("saveTranscriptEmailForm",e,n)}notifyEndChatTranscript(e,n){this.io.send("sendTranscript",e,n)}endVisitorChat(e){this.io.send("endChat",e)}addEvent(e,n){this.io.send("addEvent",e,n)}setAttributes(e,n){this.io.send("setAttributes",e,n)}addTags(e,n){this.io.send("addTags",e,n)}removeTags(e,n){this.io.send("removeTags",e,n)}fileUploadMessage(e,n){this.io.send("fileUploadMessage",e,n)}popupOnFocus(e){this.io.send("visitorPopupFocus",e)}notifySocketStatusUpdate(e){this.io.send("socketStatusUpdate",e)}setRating(e){this.io.send("visitorRating",e)}visitorChatDismiss(e,n){this.io.send("service","visitor-chat","/v1/visitor/dismiss-preview",e,n)}getForm(e,n){this.io.send("service","table","/v1/form/get",e,n)}notifyChatBubbleClosed(){this.io.send("chatBubbleClose")}notifyWindowState(e){this.io.send("chatWindowState",e)}toggleSound(e){this.io.send("visitorSound",e)}notifyWidgetResized(){this.io.send("notifyWidgetResized")}}const we=new lh,ce=t=>typeof t=="string",ti=()=>{let t,e;const n=new Promise((i,s)=>{t=i,e=s});return n.resolve=t,n.reject=e,n},Uo=t=>t==null?"":""+t,uh=(t,e,n)=>{t.forEach(i=>{e[i]&&(n[i]=e[i])})},ch=/###/g,jo=t=>t&&t.indexOf("###")>-1?t.replace(ch,"."):t,Vo=t=>!t||ce(t),di=(t,e,n)=>{const i=ce(e)?e.split("."):e;let s=0;for(;s{const{obj:i,k:s}=di(t,e,Object);if(i!==void 0||e.length===1){i[s]=n;return}let r=e[e.length-1],o=e.slice(0,e.length-1),a=di(t,o,Object);for(;a.obj===void 0&&o.length;)r=`${o[o.length-1]}.${r}`,o=o.slice(0,o.length-1),a=di(t,o,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${r}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${r}`]=n},fh=(t,e,n,i)=>{const{obj:s,k:r}=di(t,e,Object);s[r]=s[r]||[],s[r].push(n)},ns=(t,e)=>{const{obj:n,k:i}=di(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},dh=(t,e,n)=>{const i=ns(t,n);return i!==void 0?i:ns(e,n)},au=(t,e,n)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?ce(t[i])||t[i]instanceof String||ce(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):au(t[i],e[i],n):t[i]=e[i]);return t},xn=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var hh={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ph=t=>ce(t)?t.replace(/[&<>"'\/]/g,e=>hh[e]):t;class gh{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const mh=[" ",",","?","!",";"],vh=new gh(20),yh=(t,e,n)=>{e=e||"",n=n||"";const i=mh.filter(o=>e.indexOf(o)<0&&n.indexOf(o)<0);if(i.length===0)return!0;const s=vh.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`);let r=!s.test(t);if(!r){const o=t.indexOf(n);o>0&&!s.test(t.substring(0,o))&&(r=!0)}return r},or=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const i=e.split(n);let s=t;for(let r=0;r-1&&lt==null?void 0:t.replace("_","-"),wh={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){var n,i;(i=(n=console==null?void 0:console[t])==null?void 0:n.apply)==null||i.call(n,console,e)}};class is{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||wh,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,s){return s&&!this.debug?null:(ce(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new is(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new is(this.logger,e)}}var Wt=new is;let ws=class{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(n)||0;this.observers[i].set(n,s+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,r])=>{for(let o=0;o{for(let o=0;o-1&&this.options.ns.splice(n,1)}getResource(e,n,i,s={}){var u,c;const r=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],i&&(Array.isArray(i)?a.push(...i):ce(i)&&r?a.push(...i.split(r)):a.push(i)));const l=ns(this.data,a);return!l&&!n&&!i&&e.indexOf(".")>-1&&(e=a[0],n=a[1],i=a.slice(2).join(".")),l||!o||!ce(i)?l:or((c=(u=this.data)==null?void 0:u[e])==null?void 0:c[n],i,r)}addResource(e,n,i,s,r={silent:!1}){const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=[e,n];i&&(a=a.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(a=e.split("."),s=n,n=a[1]),this.addNamespaces(n),qo(this.data,a,s),r.silent||this.emit("added",e,n,i,s)}addResources(e,n,i,s={silent:!1}){for(const r in i)(ce(i[r])||Array.isArray(i[r]))&&this.addResource(e,n,r,i[r],{silent:!0});s.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,s,r,o={silent:!1,skipCopy:!1}){let a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),s=i,i=n,n=a[1]),this.addNamespaces(n);let l=ns(this.data,a)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?au(l,i,r):l={...l,...i},qo(this.data,a,l),o.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var lu={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,s){return t.forEach(r=>{var o;e=((o=this.processors[r])==null?void 0:o.process(e,n,i,s))??e}),e}};const uu=Symbol("i18next/PATH_KEY");function bh(){const t=[],e=Object.create(null);let n;return e.get=(i,s)=>{var r;return(r=n==null?void 0:n.revoke)==null||r.call(n),s===uu?t:(t.push(s),n=Proxy.revocable(i,e),n.proxy)},Proxy.revocable(Object.create(null),e).proxy}function ar(t,e){const{[uu]:n}=t(bh());return n.join((e==null?void 0:e.keySeparator)??".")}const Ko={},$s=t=>!ce(t)&&typeof t!="boolean"&&typeof t!="number";class ss extends ws{constructor(e,n={}){super(),uh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Wt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const i={...n};if(e==null)return!1;const s=this.resolve(e,i);if((s==null?void 0:s.res)===void 0)return!1;const r=$s(s.res);return!(i.returnObjects===!1&&r)}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const o=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!yh(e,i,s);if(o&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:ce(r)?[r]:r};const u=e.split(i);(i!==s||i===s&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),e=u.join(s)}return{key:e,namespaces:ce(r)?[r]:r}}translate(e,n,i){let s=typeof n=="object"?{...n}:n;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),e==null)return"";typeof e=="function"&&(e=ar(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]);const r=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],s),u=l[l.length-1];let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=s.lng||this.language,p=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return p?r?{res:`${u}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(s)}:`${u}${c}${a}`:r?{res:a,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(s)}:a;const h=this.resolve(e,s);let d=h==null?void 0:h.res;const g=(h==null?void 0:h.usedKey)||a,w=(h==null?void 0:h.exactUsedKey)||a,x=["[object Number]","[object Function]","[object RegExp]"],R=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,O=s.count!==void 0&&!ce(s.count),W=ss.hasDefaultValue(s),C=O?this.pluralResolver.getSuffix(f,s.count,s):"",D=s.ordinal&&O?this.pluralResolver.getSuffix(f,s.count,{ordinal:!1}):"",M=O&&!s.ordinal&&s.count===0,v=M&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${C}`]||s[`defaultValue${D}`]||s.defaultValue;let T=d;L&&!d&&W&&(T=v);const E=$s(T),I=Object.prototype.toString.apply(T);if(L&&T&&E&&x.indexOf(I)<0&&!(ce(R)&&Array.isArray(T))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,T,{...s,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(h.res=S,h.usedParams=this.getUsedParamsDetails(s),h):S}if(o){const S=Array.isArray(T),N=S?[]:{},J=S?w:g;for(const Q in T)if(Object.prototype.hasOwnProperty.call(T,Q)){const X=`${J}${o}${Q}`;W&&!d?N[Q]=this.translate(X,{...s,defaultValue:$s(v)?v[Q]:void 0,joinArrays:!1,ns:l}):N[Q]=this.translate(X,{...s,joinArrays:!1,ns:l}),N[Q]===X&&(N[Q]=T[Q])}d=N}}else if(L&&ce(R)&&Array.isArray(d))d=d.join(R),d&&(d=this.extendTranslation(d,e,s,i));else{let S=!1,N=!1;!this.isValidLookup(d)&&W&&(S=!0,d=v),this.isValidLookup(d)||(N=!0,d=a);const Q=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:d,X=W&&v!==d&&this.options.updateMissing;if(N||S||X){if(this.logger.log(X?"updateKey":"missingKey",f,u,a,X?v:d),o){const Te=this.resolve(a,{...s,keySeparator:!1});Te&&Te.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let re=[];const ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ge&&ge[0])for(let Te=0;Te{var ze;const dt=W&&$e!==d?$e:Q;this.options.missingKeyHandler?this.options.missingKeyHandler(Te,u,ke,dt,X,s):(ze=this.backendConnector)!=null&&ze.saveMissing&&this.backendConnector.saveMissing(Te,u,ke,dt,X,s),this.emit("missingKey",Te,u,ke,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?re.forEach(Te=>{const ke=this.pluralResolver.getSuffixes(Te,s);M&&s[`defaultValue${this.options.pluralSeparator}zero`]&&ke.indexOf(`${this.options.pluralSeparator}zero`)<0&&ke.push(`${this.options.pluralSeparator}zero`),ke.forEach($e=>{De([Te],a+$e,s[`defaultValue${$e}`]||v)})}):De(re,a,v))}d=this.extendTranslation(d,e,s,h,i),N&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${u}${c}${a}`),(N||S)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${a}`:a,S?d:void 0,s))}return r?(h.res=d,h.usedParams=this.getUsedParamsDetails(s),h):d}extendTranslation(e,n,i,s,r){var l,u;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const c=ce(e)&&(((u=i==null?void 0:i.interpolation)==null?void 0:u.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const h=e.match(this.interpolator.nestingRegexp);f=h&&h.length}let p=i.replace&&!ce(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,i.lng||this.language||s.usedLng,i),c){const h=e.match(this.interpolator.nestingRegexp),d=h&&h.length;f(r==null?void 0:r[0])===h[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),i)),i.interpolation&&this.interpolator.reset()}const o=i.postProcess||this.options.postProcess,a=ce(o)?[o]:o;return e!=null&&(a!=null&&a.length)&&i.applyPostProcessor!==!1&&(e=lu.handle(a,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,n={}){let i,s,r,o,a;return ce(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const u=this.extractFromKey(l,n),c=u.key;s=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&!ce(n.count),h=p&&!n.ordinal&&n.count===0,d=n.context!==void 0&&(ce(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(w=>{var x,R;this.isValidLookup(i)||(a=w,!Ko[`${g[0]}-${w}`]&&((x=this.utils)!=null&&x.hasLoadedNamespace)&&!((R=this.utils)!=null&&R.hasLoadedNamespace(a))&&(Ko[`${g[0]}-${w}`]=!0,this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(L=>{var C;if(this.isValidLookup(i))return;o=L;const O=[c];if((C=this.i18nFormat)!=null&&C.addLookupKeys)this.i18nFormat.addLookupKeys(O,c,L,w,n);else{let D;p&&(D=this.pluralResolver.getSuffix(L,n.count,n));const M=`${this.options.pluralSeparator}zero`,v=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&D.indexOf(v)===0&&O.push(c+D.replace(v,this.options.pluralSeparator)),O.push(c+D),h&&O.push(c+M)),d){const T=`${c}${this.options.contextSeparator||"_"}${n.context}`;O.push(T),p&&(n.ordinal&&D.indexOf(v)===0&&O.push(T+D.replace(v,this.options.pluralSeparator)),O.push(T+D),h&&O.push(T+M))}}let W;for(;W=O.pop();)this.isValidLookup(i)||(r=W,i=this.getResource(L,w,W,n))}))})}),{res:i,usedKey:s,exactUsedKey:r,usedLng:o,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i,s={}){var r;return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(e,n,i,s):this.resourceStore.getResource(e,n,i,s)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!ce(e.replace);let s=i?e.replace:e;if(i&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const r of n)delete s[r]}return s}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}class Xo{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Wt.create("languageUtils")}getScriptPartFromCode(e){if(e=Ti(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Ti(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(ce(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const s=this.getScriptPartFromCode(i);if(this.isSupportedCode(s))return n=s;const r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(o=>{if(o===r)return o;if(!(o.indexOf("-")<0&&r.indexOf("-")<0)&&(o.indexOf("-")>0&&r.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===r||o.indexOf(r)===0&&r.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),ce(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),s=[],r=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return ce(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):ce(e)&&r(this.formatLanguageCode(e)),i.forEach(o=>{s.indexOf(o)<0&&r(this.formatLanguageCode(o))}),s}}const Jo={zero:0,one:1,two:2,few:3,many:4,other:5},Go={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Sh{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Wt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const i=Ti(e==="dev"?"en":e),s=n.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:i,type:s});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let o;try{o=new Intl.PluralRules(i,{type:s})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Go;if(!e.match(/-|_/))return Go;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,n)}return this.pluralRulesCache[r]=o,o}needsPlural(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,n,i={}){return this.getSuffixes(e,i).map(s=>`${n}${s}`)}getSuffixes(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((s,r)=>Jo[s]-Jo[r]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,n,i={}){const s=this.getRule(e,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,i))}}const Qo=(t,e,n,i=".",s=!0)=>{let r=dh(t,e,n);return!r&&s&&ce(n)&&(r=or(t,n,i),r===void 0&&(r=or(e,n,i))),r},Bs=t=>t.replace(/\$/g,"$$$$");class Yo{constructor(e={}){var n;this.logger=Wt.create("interpolator"),this.options=e,this.format=((n=e==null?void 0:e.interpolation)==null?void 0:n.format)||(i=>i),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:i,useRawValueToEscape:s,prefix:r,prefixEscaped:o,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:d,nestingSuffixEscaped:g,nestingOptionsSeparator:w,maxReplaces:x,alwaysFormat:R}=e.interpolation;this.escape=n!==void 0?n:ph,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=r?xn(r):o||"{{",this.suffix=a?xn(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=p?xn(p):h||xn("$t("),this.nestingSuffix=d?xn(d):g||xn(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=x||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,i,s){var h;let r,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const R=Qo(n,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,i,{...s,...n,interpolationkey:d}):R}const g=d.split(this.formatSeparator),w=g.shift().trim(),x=g.join(this.formatSeparator).trim();return this.format(Qo(n,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),x,i,{...s,...n,interpolationkey:w})};this.resetRegExp();const c=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((h=s==null?void 0:s.interpolation)==null?void 0:h.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>Bs(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?Bs(this.escape(d)):Bs(d)}].forEach(d=>{for(a=0;r=d.regex.exec(e);){const g=r[1].trim();if(o=u(g),o===void 0)if(typeof c=="function"){const x=c(e,r,s);o=ce(x)?x:""}else if(s&&Object.prototype.hasOwnProperty.call(s,g))o="";else if(f){o=r[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),o="";else!ce(o)&&!this.useRawValueToEscape&&(o=Uo(o));const w=d.safeValue(o);if(e=e.replace(r[0],w),f?(d.regex.lastIndex+=o.length,d.regex.lastIndex-=r[0].length):d.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n,i={}){let s,r,o;const a=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const f=l.split(new RegExp(`${xn(c)}[ ]*{`));let p=`{${f[1]}`;l=f[0],p=this.interpolate(p,o);const h=p.match(/'/g),d=p.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!d||((d==null?void 0:d.length)??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),u&&(o={...u,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${c}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;s=this.nestingRegexp.exec(e);){let l=[];o={...i},o=o.replace&&!ce(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(u!==-1&&(l=s[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),s[1]=s[1].slice(0,u)),r=n(a.call(this,s[1].trim(),o),o),r&&s[0]===e&&!ce(r))return r;ce(r)||(r=Uo(r)),r||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),r=""),l.length&&(r=l.reduce((c,f)=>this.format(c,f,i.lng,{...i,interpolationkey:s[1].trim()}),r.trim())),e=e.replace(s[0],r),this.regexp.lastIndex=0}return e}}const xh=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);e==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(o){const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},Zo=t=>{const e={};return(n,i,s)=>{let r=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(r={...r,[s.interpolationkey]:void 0});const o=i+JSON.stringify(r);let a=e[o];return a||(a=t(Ti(i),s),e[o]=a),a(n)}},Th=t=>(e,n,i)=>t(Ti(n),i)(e);class kh{constructor(e={}){this.logger=Wt.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const i=n.cacheInBuiltFormats?Zo:Th;this.formats={number:i((s,r)=>{const o=new Intl.NumberFormat(s,{...r});return a=>o.format(a)}),currency:i((s,r)=>{const o=new Intl.NumberFormat(s,{...r,style:"currency"});return a=>o.format(a)}),datetime:i((s,r)=>{const o=new Intl.DateTimeFormat(s,{...r});return a=>o.format(a)}),relativetime:i((s,r)=>{const o=new Intl.RelativeTimeFormat(s,{...r});return a=>o.format(a,r.range||"day")}),list:i((s,r)=>{const o=new Intl.ListFormat(s,{...r});return a=>o.format(a)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Zo(n)}format(e,n,i,s={}){const r=n.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(a=>a.indexOf(")")>-1)){const a=r.findIndex(l=>l.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,a)].join(this.formatSeparator)}return r.reduce((a,l)=>{var f;const{formatName:u,formatOptions:c}=xh(l);if(this.formats[u]){let p=a;try{const h=((f=s==null?void 0:s.formatParams)==null?void 0:f[s.interpolationkey])||{},d=h.locale||h.lng||s.locale||s.lng||i;p=this.formats[u](a,d,{...c,...s,...h})}catch(h){this.logger.warn(h)}return p}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}const _h=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Ch extends ws{constructor(e,n,i,s={}){var r,o;super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=Wt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(o=(r=this.backend)==null?void 0:r.init)==null||o.call(r,i,s.backend,s)}queueLoad(e,n,i,s){const r={},o={},a={},l={};return e.forEach(u=>{let c=!0;n.forEach(f=>{const p=`${u}|${f}`;!i.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,c=!1,o[p]===void 0&&(o[p]=!0),r[p]===void 0&&(r[p]=!0),l[f]===void 0&&(l[f]=!0)))}),c||(a[u]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const s=e.split("|"),r=s[0],o=s[1];n&&this.emit("failedLoading",r,o,n),!n&&i&&this.store.addResourceBundle(r,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&i&&(this.state[e]=0);const a={};this.queue.forEach(l=>{fh(l.loaded,[r],o),_h(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(f=>{a[u][f]===void 0&&(a[u][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,n,i,s=0,r=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:s,wait:r,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&s{this.read.call(this,e,n,i,s+1,r*2,o)},r);return}o(u,c)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(e,n,a)}prepareLoading(e,n,i={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();ce(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ce(n)&&(n=[n]);const r=this.queueLoad(e,n,i,s);if(!r.toLoad.length)return r.pending.length||s(),null;r.toLoad.forEach(o=>{this.loadOne(o)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e,n=""){const i=e.split("|"),s=i[0],r=i[1];this.read(s,r,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${r} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${r} for language ${s}`,a),this.loaded(e,o,a)})}saveMissing(e,n,i,s,r,o={},a=()=>{}){var l,u,c,f,p;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((f=(c=this.services)==null?void 0:c.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((p=this.backend)!=null&&p.create){const h={...o,isUpdate:r},d=this.backend.create.bind(this.backend);if(d.length<6)try{let g;d.length===5?g=d(e,n,i,s,h):g=d(e,n,i,s),g&&typeof g.then=="function"?g.then(w=>a(null,w)).catch(a):a(null,g)}catch(g){a(g)}else d(e,n,i,s,a,h)}!e||!e[0]||this.store.addResource(e[0],n,i,s)}}}const Hs=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),ce(t[1])&&(e.defaultValue=t[1]),ce(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(i=>{e[i]=n[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ea=t=>{var e,n;return ce(t.ns)&&(t.ns=[t.ns]),ce(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),ce(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),((n=(e=t.supportedLngs)==null?void 0:e.indexOf)==null?void 0:n.call(e,"cimode"))<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t},Bi=()=>{},Eh=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})},cu="__i18next_supportNoticeShown",Ih=()=>typeof globalThis<"u"&&!!globalThis[cu],Ah=()=>{typeof globalThis<"u"&&(globalThis[cu]=!0)},Oh=t=>{var e,n,i,s,r,o,a,l,u,c,f,p,h;return!!(((i=(n=(e=t==null?void 0:t.modules)==null?void 0:e.backend)==null?void 0:n.name)==null?void 0:i.indexOf("Locize"))>0||((a=(o=(r=(s=t==null?void 0:t.modules)==null?void 0:s.backend)==null?void 0:r.constructor)==null?void 0:o.name)==null?void 0:a.indexOf("Locize"))>0||(u=(l=t==null?void 0:t.options)==null?void 0:l.backend)!=null&&u.backends&&t.options.backend.backends.some(d=>{var g,w,x;return((g=d==null?void 0:d.name)==null?void 0:g.indexOf("Locize"))>0||((x=(w=d==null?void 0:d.constructor)==null?void 0:w.name)==null?void 0:x.indexOf("Locize"))>0})||(f=(c=t==null?void 0:t.options)==null?void 0:c.backend)!=null&&f.projectId||(h=(p=t==null?void 0:t.options)==null?void 0:p.backend)!=null&&h.backendOptions&&t.options.backend.backendOptions.some(d=>d==null?void 0:d.projectId))};class hi extends ws{constructor(e={},n){if(super(),this.options=ea(e),this.services={},this.logger=Wt,this.modules={external:[]},Eh(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(ce(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=Hs();this.options={...i,...this.options,...ea(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=i.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Oh(this)&&!Ih()&&Ah();const s=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Wt.init(s(this.modules.logger),this.options):Wt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=kh;const c=new Xo(this.options);this.store=new zo(this.options.resources,this.options);const f=this.services;f.logger=Wt,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new Sh(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=s(u),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Yo(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Ch(s(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.languageDetector&&(f.languageDetector=s(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=s(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new ss(this.services,this.options),this.translator.on("*",(h,...d)=>{this.emit(h,...d)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Bi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const a=ti(),l=()=>{const u=(c,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(f),n(c,f)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(e,n=Bi){var r,o;let i=n;const s=ce(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const a=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&a.indexOf(f)<0&&a.push(f)})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),(o=(r=this.options.preload)==null?void 0:r.forEach)==null||o.call(r,u=>l(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(u)})}else i(null)}reloadResources(e,n,i){const s=ti();return typeof e=="function"&&(i=e,e=void 0),typeof n=="function"&&(i=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),i||(i=Bi),this.services.backendConnector.reload(e,n,r=>{s.resolve(),i(r)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&lu.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const i=ti();this.emit("languageChanging",e);const s=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},r=(a,l)=>{l?this.isLanguageChangingTo===e&&(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve((...u)=>this.t(...u)),n&&n(a,(...u)=>this.t(...u))},o=a=>{var c,f;!e&&!a&&this.services.languageDetector&&(a=[]);const l=ce(a)?a:a&&a[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(ce(a)?[a]:a);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),(f=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||f.call(c,u)),this.loadResources(u,p=>{r(p,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),i}getFixedT(e,n,i){const s=(r,o,...a)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([r,o].concat(a)):l={...o},l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||s.keyPrefix);const u=this.options.keySeparator||".";let c;return l.keyPrefix&&Array.isArray(r)?c=r.map(f=>(typeof f=="function"&&(f=ar(f,{...this.options,...o})),`${l.keyPrefix}${u}${f}`)):(typeof r=="function"&&(r=ar(r,{...this.options,...o})),c=l.keyPrefix?`${l.keyPrefix}${u}${r}`:r),this.t(c,l)};return ce(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=i,s}t(...e){var n;return(n=this.translator)==null?void 0:n.translate(...e)}exists(...e){var n;return(n=this.translator)==null?void 0:n.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!s||o(r,e)))}loadNamespaces(e,n){const i=ti();return this.options.ns?(ce(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=ti();ce(e)&&(e=[e]);const s=this.options.preload||[],r=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return r.length?(this.options.preload=s.concat(r),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}dir(e){var s,r;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((r=this.services)==null?void 0:r.languageUtils)||new Xo(Hs());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const i=new hi(e,n);return i.createInstance=hi.createInstance,i}cloneInstance(e={},n=Bi){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},r=new hi(s);if((e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(a=>{r[a]=this[a]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},i){const a=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,f)=>(c[f]={...l[u][f]},c),l[u]),l),{});r.store=new zo(a,s),r.services.resourceStore=r.store}if(e.interpolation){const l={...Hs().interpolation,...this.options.interpolation,...e.interpolation},u={...s,interpolation:l};r.services.interpolator=new Yo(u)}return r.translator=new ss(r.services,s),r.translator.on("*",(a,...l)=>{r.emit(a,...l)}),r.init(s,n),r.translator.options=s,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const it=hi.createInstance();it.createInstance;it.dir;it.init;it.loadResources;it.reloadResources;it.use;it.changeLanguage;it.getFixedT;it.t;it.exists;it.setDefaultNamespace;it.hasLoadedNamespace;it.loadNamespaces;it.loadLanguages;const Lh={isValidStore(){let t=!1,e=!1;const n=!!(window.Shopify&&typeof window.Shopify=="object"&&window.Shopify.shop);for(const i of document.querySelectorAll("link"))if(i.href.includes("cdn.shopify.com")||i.href.includes("shopifycdn.com")){t=!0;break}if(!t){for(const i of document.scripts)if(i.src.includes("cdn.shopify.com")||i.src.includes("shopifycdn.com")){e=!0;break}}return n&&(t||e)}};class Ph{constructor(){j(this,"TawkWindow",null);j(this,"languageScript");j(this,"version",null);this.languageScript=void 0}install(e,{TawkWindow:n}){e&&e.provide("widgetSettings",this),this.TawkWindow=n}getSettings(e,n){const i={propertyId:Ve().id,widgetId:K().id},s=de.sessionStore().getItem("tawk_sv");this.version?i.sv=this.version:s!==void 0?i.sv=s:i.sv=null,ft.get("https://va.tawk.to/v1/widget-settings",i,null,(r,o)=>{if(r)return n(r);const a=o.data.widget.language||"en";it.changeLanguage(a,l=>{l&&console.error("[Tawk/Widget-Settings]:",l)}),this.processSettings(o.data),e(o.data.settingsVersion)})}processSettings(e){const n=Lh.isValidStore(),i={text:"",textColor:"#000000",url:"",whitelabeled:!0};if(e){this.version=e.settingsVersion,K().setData(e.widget),K().setWebrtcOptions(e.webrtc),K().updateBranding(n?i:e.branding);const s=e.widget;typeof s.agentDrivenStatus<"u"&&s.agentDrivenStatus===!1&&G().setPageStatus({status:"online"})}}xOffset(){var n,i,s;const e=(i=(n=se==null?void 0:se.local_API)==null?void 0:n.customStyle)==null?void 0:i.visibility;if(((s=e==null?void 0:e.desktop)==null?void 0:s.xOffset)!==void 0){let r=e.desktop.xOffset;if(typeof r=="string"&&(r=parseInt(r.replace("px",""),10)),!isNaN(r))return r}return K().isCenter&&!K().isRoundWidget?0:K().xOffset}yOffset(){var n,i,s;const e=(i=(n=se==null?void 0:se.local_API)==null?void 0:n.customStyle)==null?void 0:i.visibility;if(((s=e==null?void 0:e.desktop)==null?void 0:s.yOffset)!==void 0){let r=e.desktop.yOffset;if(typeof r=="string"&&(r=parseInt(r.replace("px",""),10)),!isNaN(r))return r}return K().isCenter?0:K().yOffset}xOffsetMobile(){var n,i,s;const e=(i=(n=se==null?void 0:se.local_API)==null?void 0:n.customStyle)==null?void 0:i.visibility;if(((s=e==null?void 0:e.mobile)==null?void 0:s.xOffset)!==void 0){let r=e.mobile.xOffset;if(typeof r=="string"&&(r=parseInt(r.replace("px",""),10)),!isNaN(r))return r}return K().isCenter&&!K().isRoundWidget?0:K().xOffsetMobile}yOffsetMobile(){var n,i,s;const e=(i=(n=se==null?void 0:se.local_API)==null?void 0:n.customStyle)==null?void 0:i.visibility;if(((s=e==null?void 0:e.mobile)==null?void 0:s.yOffset)!==void 0){let r=e.mobile.yOffset;if(typeof r=="string"&&(r=parseInt(r.replace("px",""),10)),!isNaN(r))return r}return K().isCenter?0:K().yOffsetMobile}bubbleXOffset(){var n,i,s,r,o;const e=(i=(n=se==null?void 0:se.local_API)==null?void 0:n.customStyle)==null?void 0:i.visibility;if(((s=e==null?void 0:e.bubble)==null?void 0:s.xOffset)!==void 0){let a=e.bubble.xOffset;if(typeof a=="string"&&(a=parseInt(a.replace("px",""),10)),!isNaN(a))return a}if(((r=e==null?void 0:e.desktop)==null?void 0:r.position)!==void 0){const a=(o=e==null?void 0:e.desktop)==null?void 0:o.position;if(a&&K().desktopVisibility.position!==a)return K().isCenter?K().minDesktop.height+5:0}return K().bubble.config.offsetX}bubbleYOffset(){var n,i,s,r,o;const e=(i=(n=se==null?void 0:se.local_API)==null?void 0:n.customStyle)==null?void 0:i.visibility;if(((s=e==null?void 0:e.bubble)==null?void 0:s.yOffset)!==void 0){let a=e.bubble.yOffset;if(typeof a=="string"&&(a=parseInt(a.replace("px",""),10)),!isNaN(a))return a}if(((r=e==null?void 0:e.desktop)==null?void 0:r.position)!==void 0){const a=(o=e==null?void 0:e.desktop)==null?void 0:o.position;if(a&&K().desktopVisibility.position!==a)return K().isCenter?0:K().minDesktop.height+5}return K().bubble.config.offsetY}bubbleRotate(){var i,s,r;const e=(s=(i=se==null?void 0:se.local_API)==null?void 0:i.customStyle)==null?void 0:s.visibility,n=[0,90,-90];if(((r=e==null?void 0:e.bubble)==null?void 0:r.rotate)!==void 0){let o=e.bubble.rotate;if(typeof o=="string"&&(o=parseInt(o.replace("deg",""),10)),!isNaN(o)&&n.indexOf(o)!==-1)return o}return K().bubble.config.rotate}isRoundWidget(){var i,s,r,o;const e=K().isRoundWidget,n=(s=(i=se==null?void 0:se.local_API)==null?void 0:i.customStyle)==null?void 0:s.visibility;if(((r=n==null?void 0:n.desktop)==null?void 0:r.position)!==void 0){const a=(o=n==null?void 0:n.desktop)==null?void 0:o.position;if(K().desktopVisibility.position!==a)return!1}return e}}const un=new Ph;class Rh{constructor({TawkWindow:e}){j(this,"TawkWindow");j(this,"registerTime",0);j(this,"maxRetrycount",3);j(this,"retryCount",0);j(this,"previousRegisterCall",null);j(this,"requestCancelTimeout",null);j(this,"connectionCookieInterval",null);j(this,"registerDelayTimeout",null);j(this,"registerData",null);j(this,"registerStarted",!1);j(this,"retryDelay",null);j(this,"retryInitialDelay",30);j(this,"retryMultiplier",1.5);j(this,"minRandom",.5);j(this,"maxRandom",1.5);j(this,"maxDelay",120);j(this,"retryRegisterTimeout",null);this.TawkWindow=e}clearTimers(){this.abort(),clearTimeout(this.requestCancelTimeout),clearTimeout(this.registerDelayTimeout),clearTimeout(this.retryRegisterTimeout),clearInterval(this.connectionCookieInterval),this.TawkWindow&&de&&de.cookieStore().setItem("TawkConnectionTime","0",!0),this.retryRegisterTimeout=null,this.registerDelayTimeout=null,this.requestCancelTimeout=null,this.connectionCookieInterval=null}async init(e,n,{visitor:i}={}){var s,r;if(this.registerStarted=!0,this.clearTimers(),await this.prepareData({visitor:i}),!((s=this.registerData)!=null&&s.u)&&!((r=this.registerData)!=null&&r.uik)){this.clearTimers(),typeof n=="function"&&n();return}this.startRegister(e,n)}async prepareData({visitor:e}={}){var l;let n;if(!this.TawkWindow)return;let i="";const s=Ue.getSessionInformation();s.length&&(i=s[0]);let r=new Date().getTimezoneOffset();(r<-900||r>900)&&(r=0),!de.sessionStore().getItem("tawk_has_register_visitor")&&((l=window.Tawk_API)!=null&&l.visitor)&&typeof window.Tawk_API.visitor=="object"&&(n=es.formatVisitorLoginData(e)),this.registerData?this.registerData.vss=i:this.registerData={p:Ve().id||"",w:K().id,platform:Pe().mobileBrowserName?"mobile":"desktop",tzo:r,url:document.location.href,referrer:document.referrer||void 0,vss:i,user:n};let a=null;if(window.location&&window.location.href)try{a=new URL(window.location.href),(a.protocol==="http:"||a.protocol==="https:"||a.protocol==="file:")&&(this.registerData.url=window.location.href)}catch{}if(!a&&window.top!==window)try{window.top.document&&window.top.location&&window.top.location.href&&(this.registerData.url=window.top.document.location.href)}catch{console.error("[Tawk/Register]: Failed to access url")}this.registerData.consent=!1;for(let u=0;u1e3?(de.cookieStore().setItem("TawkConnectionTime",new Date().getTime().toString(),!0),this.connectionCookieInterval=setInterval(()=>{this.TawkWindow&&de&&de.cookieStore().setItem("TawkConnectionTime",new Date().getTime().toString(),!0)},100),this.doRegister(e,n)):this.delayRegister(e,n)}delayRegister(e,n){clearTimeout(this.registerDelayTimeout),this.registerDelayTimeout=setTimeout(()=>{this.init(e,n)},1e3)}doRegister(e,n){this.setupRegisterTimeout();const i="https://va.tawk.to/v1/session/start",s=Ue.getStoredToken();let r;s&&(r={"X-Tawk-Token":s}),this.previousRegisterCall=ft.post(i,this.registerData,r,(o,a)=>{var l,u;if(this.clearTimers(),o||!o&&!a)return this.retryRegister(e,n);if(a.error)return a.error.code&&a.error.code==="InternalServerError"?this.retryRegister(e,n):n==null?void 0:n();(l=window.Tawk_API)!=null&&l.visitor&&typeof window.Tawk_API.visitor=="object"&&de.sessionStore().setItem("tawk_has_register_visitor","true"),e==null||e(a),(u=this.registerData)!=null&&u.user&&typeof this.registerData=="object"&&se.unsetVisitorAttributes()},!0,!0)}setupRegisterTimeout(){clearTimeout(this.requestCancelTimeout),this.requestCancelTimeout=setTimeout(()=>{this.abort(),this.retryRegister()},9e4)}abort(){this.previousRegisterCall!==null&&(this.previousRegisterCall=null)}retryRegister(e,n){if(this.retryRegisterTimeout!==null)return;if(this.retryCount>=this.maxRetrycount){this.clearTimers(),G().updateChatWindowState("min"),K().setVisibility(!1);return}this.retryCount++;const i=this.getRetryWaitDelay();this.retryRegisterTimeout=setTimeout(()=>{this.init(e,n)},i)}getRetryWaitDelay(){const e=Math.random()*(this.maxRandom-this.minRandom)+this.minRandom;if(this.retryDelay===null)this.retryDelay=this.retryInitialDelay;else{const n=this.retryDelay*this.retryMultiplier;this.retryDelay>this.maxDelay||n>this.maxDelay?this.retryDelay=this.maxDelay:this.retryDelay=n}return Math.round(this.retryDelay*e)*1e3}resetRetryCount(){this.retryCount=0,this.retryDelay=10}}class Mh{constructor(){j(this,"focusReconnectCalled");j(this,"hasFocus");j(this,"active");j(this,"away");j(this,"inactivityTimeout");j(this,"awayTimeout");j(this,"interval");j(this,"TawkWindow");j(this,"onActivityHandler");j(this,"popupOnFocusHandler");j(this,"popupOnBlurHandler");j(this,"reconnectOnActivity");j(this,"initActivityReset");this.focusReconnectCalled=!1,this.hasFocus=!1,this.active=!1,this.away=!1,this.inactivityTimeout=null,this.awayTimeout=null,this.interval=null,this.TawkWindow=null,this.onActivityHandler=()=>{this.TawkWindow&&(this.away&&window.$_Tawk.connected&&we.publish("notifySocketStatusUpdate","online"),this.active=!0,this.away=!1)},this.popupOnFocusHandler=()=>{this.TawkWindow&&(!window.$_Tawk.connected&&we.isForcedDisconnect()?(G().setIsInactive(!1),this.TawkWindow.criticalRefresh()):(this.hasFocus||(this.active=!0,this.hasFocus=!0,window.$_Tawk.connected&&we.publish("popupOnFocus",!0)),this.away&&window.$_Tawk.connected&&we.publish("notifySocketStatusUpdate","online"),this.away=!1))},this.popupOnBlurHandler=()=>{this.TawkWindow&&(this.hasFocus=!1,window.$_Tawk.connected&&we.publish("popupOnFocus",!1))},this.reconnectOnActivity=()=>{!this.TawkWindow||this.focusReconnectCalled||(this.focusReconnectCalled=!0,G().setIsInactive(!1),this.TawkWindow.criticalRefresh())},this.initActivityReset=()=>{this.cleanUp(),this.resetTimeout(),this.setupListeners(),this.setupMaxWidgetListeners(),this.interval=setInterval(()=>{this.active&&(this.resetTimeout(),this.active=!1)},1e4)}}install(e,{TawkWindow:n}){e&&e.provide("activityMonitor",this),this.TawkWindow=n}getMaxWidgetDocument(){var e,n,i;return((i=(n=(e=this.TawkWindow)==null?void 0:e.maxWidget)==null?void 0:n.$el)==null?void 0:i.contentDocument)??null}resetTimeout(){clearTimeout(this.inactivityTimeout),clearTimeout(this.awayTimeout),!(!this.TawkWindow||we.isForcedDisconnect())&&(this.awayTimeout=setTimeout(()=>{this.away||!this.TawkWindow||(this.away=!0,we&&window.$_Tawk.connected&&we.publish("notifySocketStatusUpdate","away"))},6e5),this.inactivityTimeout=setTimeout(()=>{this.inactivityTimeoutHandler()},12e5))}inactivityTimeoutHandler(){this.TawkWindow&&(Z().clearUnseenMessages(),we.disconnectSocket(),G().setChatWindowState("min"),G().setIsInactive(!0),this.setupMaxWidgetListenersReconnect(),Pe().mobileBrowserName?(document.addEventListener("touchmove",this.reconnectOnActivity,{once:!0}),document.addEventListener("touchend",this.reconnectOnActivity,{once:!0}),document.addEventListener("keydown",this.reconnectOnActivity,{once:!0})):(document.addEventListener("mousemove",this.reconnectOnActivity,{once:!0}),document.addEventListener("click",this.reconnectOnActivity,{once:!0}),document.addEventListener("keydown",this.reconnectOnActivity,{once:!0}),document.onfocusin?document.addEventListener("focusin",this.reconnectOnActivity,{once:!0}):window.addEventListener("focus",this.reconnectOnActivity,{once:!0})))}cleanUp(){clearInterval(this.interval),clearTimeout(this.inactivityTimeout),clearTimeout(this.awayTimeout),document.removeEventListener("mousemove",this.onActivityHandler),document.removeEventListener("click",this.onActivityHandler),document.removeEventListener("keydown",this.onActivityHandler),document.removeEventListener("click",this.reconnectOnActivity),document.removeEventListener("keydown",this.reconnectOnActivity),document.removeEventListener("focus",this.reconnectOnActivity),document.removeEventListener("focusin",this.popupOnFocusHandler),document.removeEventListener("focusout",this.popupOnBlurHandler),window.removeEventListener("focus",this.popupOnFocusHandler),window.removeEventListener("blur",this.popupOnBlurHandler);const e=this.getMaxWidgetDocument();e&&(e.removeEventListener("mousemove",this.onActivityHandler),e.removeEventListener("click",this.onActivityHandler),e.removeEventListener("keydown",this.onActivityHandler),e.removeEventListener("touchmove",this.onActivityHandler),e.removeEventListener("touchend",this.onActivityHandler),e.removeEventListener("mousemove",this.reconnectOnActivity),e.removeEventListener("click",this.reconnectOnActivity),e.removeEventListener("keydown",this.reconnectOnActivity),e.removeEventListener("touchmove",this.reconnectOnActivity),e.removeEventListener("touchend",this.reconnectOnActivity)),this.hasFocus=!1,this.active=!1,this.away=!1,this.inactivityTimeout=null,this.awayTimeout=null,this.interval=null,this.focusReconnectCalled=!1}setupListeners(){Pe().mobileBrowserName?(document.addEventListener("touchmove",this.onActivityHandler),document.addEventListener("touchend",this.onActivityHandler),document.addEventListener("keydown",this.onActivityHandler)):K().isWindowed?(document.onfocusin?(document.addEventListener("focusin",this.popupOnFocusHandler),document.addEventListener("focusout",this.popupOnBlurHandler)):(window.addEventListener("focus",this.popupOnFocusHandler),window.addEventListener("blur",this.popupOnBlurHandler)),document.addEventListener("click",this.popupOnFocusHandler),document.addEventListener("keydown",this.popupOnFocusHandler)):(document.addEventListener("mousemove",this.onActivityHandler),document.addEventListener("click",this.onActivityHandler),document.addEventListener("keydown",this.onActivityHandler))}setupMaxWidgetListeners(){const e=this.getMaxWidgetDocument();e&&(e.addEventListener("mousemove",this.onActivityHandler),e.addEventListener("click",this.onActivityHandler),e.addEventListener("keydown",this.onActivityHandler),Pe().mobileBrowserName&&(e.addEventListener("touchmove",this.onActivityHandler),e.addEventListener("touchend",this.onActivityHandler)))}setupMaxWidgetListenersReconnect(){const e=this.getMaxWidgetDocument();e&&(e.addEventListener("mousemove",this.reconnectOnActivity,{once:!0}),e.addEventListener("click",this.reconnectOnActivity,{once:!0}),e.addEventListener("keydown",this.reconnectOnActivity,{once:!0}),Pe().mobileBrowserName&&(e.addEventListener("touchmove",this.reconnectOnActivity,{once:!0}),e.addEventListener("touchend",this.reconnectOnActivity,{once:!0})))}}const Wn=new Mh;class Dh{constructor(){j(this,"browserIdentifier",[{string:navigator.userAgent,subString:"Edge",identity:"explorer",versionSearch:"Edge"},{string:navigator.userAgent,subString:"Trident/7.0",identity:"explorer",versionSearch:"rv"},{string:navigator.userAgent,subString:"(Opera|OPR)",identity:"opera",versionSearch:"Version"},{string:navigator.userAgent,subString:"Chrome",identity:"chrome",versionSearch:"Chrome"},{string:navigator.userAgent,subString:"Mobile Safari",identity:"android",versionSearch:"Version"},{string:navigator.userAgent,subString:"Firefox",identity:"firefox",versionSearch:"Firefox"},{string:navigator.userAgent,subString:"MSIE",identity:"explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"IEMobile",identity:"explorer",versionSearch:"IEMobile"},{string:navigator.userAgent,subString:"Safari",identity:"safari",versionSearch:"Version"},{string:navigator.userAgent,subString:"Gecko",identity:"mozilla",versionSearch:"rv"}]);j(this,"osIdentifier",[{string:navigator.userAgent,subString:"Windows Phone",identity:"windows_phone"},{string:navigator.platform,subString:"Win",identity:"windows"},{string:navigator.platform,subString:"Mac",identity:"mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iphone"},{string:navigator.userAgent,subString:"Android",identity:"android"},{string:navigator.platform,subString:"Linux",identity:"linux"},{string:navigator.userAgent,subString:"iPad",identity:"ipad"}]);j(this,"searchEngines",{google:"q",yahoo:"p",baidu:"wd",yandex:"text",bing:"q",soso:"w",ask:"q",aol:"q",sogou:"query",mywebsearch:"searchfor",youdao:"q",lycos:"q",infospace:"q",blekko:"q",info:"q",dogpile:"q",duckduckgo:"q",webcrawler:"q"});j(this,"mobileBrowserIdentifier",{nokia:[/(NokiaBrowser)\/(\d+)\.(\d+).(\d+)\.(\d+)/,/^(Nokia)/,/(NokiaBrowser)\/(\d+)\.(\d+).(\d+)/,/(NokiaBrowser)\/(\d+)\.(\d+)/,/(BrowserNG)\/(\d+)\.(\d+).(\d+)/,/(Series60)\/5\.0/,/(Series60)\/(\d+)\.(\d+)/,/(S40OviBrowser)\/(\d+)\.(\d+)\.(\d+)\.(\d+)/,/(Nokia)[EN]?(\d+)/],blackberry:[/(BB10);/,/(PlayBook).+RIM Tablet OS (\d+)\.(\d+)\.(\d+)/,/(Black[bB]erry).+Version\/(\d+)\.(\d+)\.(\d+)/,/(Black[bB]erry)\s?(\d+)/],chrome:[/(CrMo)\/(\d+)\.(\d+)\.(\d+)\.(\d+)/,/(CriOS)\/(\d+)\.(\d+)\.(\d+)\.(\d+)/,/(Android).*(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+) (Mobile)?/],ie:[/(IEMobile)[ /](\d+)\.(\d+)/],firefox:[/Mobile.*(Firefox)\/(\d+)\.(\d+)/,/Tablet.*(Firefox)\/(\d+)\.(\d+)/],operamini:[/(Opera Mini)(?:\/att)?\/(\d+)\.(\d+)/],opera:[/(Opera Tablet).*Version\/(\d+)\.(\d+)(?:\.(\d+))?/,/(?:Mobile Safari).*(OPR)\/(\d+)\.(\d+)\.(\d+)'/,/(Opera)\/.+Opera Mobi.+Version\/(\d+)\.(\d+)/,/(Opera)\/(\d+)\.(\d+).+Opera Mobi/,/Opera Mobi.+(Opera)\/(\d+)\.(\d+)/,/Opera Mobi/,/(Opera)\/9.80.*Version\/(\d+)\.(\d+)(?:\.(\d+))?/],safari:[/(iPod|iPhone|iPad);.*CPU.*OS (\d+)(?:_\d+)?_(\d+).*Mobile/],uc:[/(UCBrowser)[ /](\d+)\.(\d+)\.(\d+)/,/(UC Browser)[ /](\d+)\.(\d+)\.(\d+)/,/(UC Browser|UCBrowser|UCWEB)(\d+)\.(\d+)\.(\d+)/],"android2.3":[/(Android) 2\.3(?:[.-]([a-z0-9]+))?/],android2:[/(Android) 2\.(\d+)(?:[.-]([a-z0-9]+))?/],android:[/Android[- ][\d]+\.[\d]+; [A-Za-z]{2}-[A-Za-z]{0,2}; WOWMobile (.+) Build/,/Android[- ][\d]+\.[\d]+-update1; [A-Za-z]{2}-[A-Za-z]{0,2}; (.+) Build/,/Android[- ][\d]+\.[\d]+\.[\d]+; [A-Za-z]{2}-[A-Za-z]{0,2}; (.+) Build/,/Android[- ][\d]+\.[\d]+\.[\d]+;[A-Za-z]{2}-[A-Za-z]{0,2};(.+) Build/,/Android[- ][\d]+\.[\d]+; [A-Za-z]{2}-[A-Za-z]{0,2}; (.+) Build/,/Android[- ][\d]+\.[\d]+\.[\d]+; (.+) Build/,/Android[- ][\d]+\.[\d]+; (.+) Build/]});this.init()}init(){let e="other",n,i=!1;const s=this.searchString(this.browserIdentifier)||{};s.identity&&(e=s.identity,n=s.versionSearch||s.identity,e==="explorer"&&(i=!0));const r=this.searchVersion(navigator.userAgent,n)||this.searchVersion(navigator.appVersion,n)||"other",o=this.searchString(this.osIdentifier)||"other",a=this.getPlugins(),l=this.getMobileBrowser(),u=this.getReferredSearchEngine(),c={mp3:this.hasHtmlAudio("mp3"),ogg:this.hasHtmlAudio("ogg"),wav:this.hasHtmlAudio("wav")};c.supported=c.mp3||c.ogg||c.wav;const f=!i;Pe().updateInitialData({version:r,os:o,plugins:a,mobileBrowserName:l,html5audio:c,isIE:i,searchEngine:u,isWebRTCAvailable:f})}searchString(e){for(let n=0;n=0){let s=this.getQuerystring(document.referrer,this.searchEngines[e]);e==="blekko"&&s===""&&(s=this.getQuerystring(document.referrer.replace("/ws/","/?q="),"q")),i=e;break}}return i}getHostname(e){const n=new RegExp("^(?:f|ht)tp(?:s)?://([^/]+)","im"),i=e.match(n);return i===null||!Array.isArray(i)||i.length<2?null:i[1]?i[1].toString():null}getQuerystring(e,n){n=n.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");const s=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);return s===null||!Array.isArray(s)||s.length<2?null:s[1]?unescape(s[1].replace(/\+/g," ")):null}hasHtmlAudio(e){const n=document.createElement("audio");try{if(!(n.canPlayType&&n.canPlayType("audio/"+e)!=="no"&&n.canPlayType("audio/"+e)!==""))return!1}catch{return!1}return!0}getPlugins(){const e=[];for(let n=0,i=navigator.plugins.length;n{const t=k("/v1/form"),e=k({index:!1,store:!1}),n=k([]);async function i(r="lead-capture-form"){if(!r)throw new Error("Please set form property/form ID before calling the action.show");e.value.index=!0,we.publish("getForm",{formId:r},function(o,a){if(e.value.index=!1,o){console.error(`[Tawk/Form]: ${o.code} ${o.message}`);return}n.value.push(a.data.form)})}function s(){t.value="/v1/form",e.value={index:!1,store:!1},n.value=[]}return{baseUrl:t,loading:e,forms:n,get:i,resetState:s}}),yt=()=>({baseUrl:"/v1/chat/",items:[],loading:{index:!1,chat:!1},nextListHash:null,lastMessageTimestamp:null,loadError:!1,messageBlocks:[],selectedChat:null,chatError:!1,selectedChatMessages:null,scrollPosition:0,calls:{}}),Fh=St("history",()=>{const t=k(yt().baseUrl),e=k(yt().items),n=k(yt().loading),i=k(yt().nextListHash),s=k(yt().lastMessageTimestamp),r=k(yt().loadError),o=k(yt().messageBlocks),a=k(yt().selectedChat),l=k(yt().chatError),u=k(yt().selectedChatMessages),c=k(yt().scrollPosition),f=k(yt().calls),p=ee(()=>E=>n.value[E]),h=ee(()=>E=>f.value[E]);async function d(E={}){n.value.index=!0,r.value=!1;try{await G().checkTokenValidity()}catch{r.value=!0;return}const I=G().token,S={limit:E.limit||10};E.loadNext&&(S.next=i.value),ft.get(`https://va.tawk.to${t.value}list`,S,{"X-Tawk-Token":I},(N,J)=>{if(n.value.index=!1,N){r.value=!0;return}if(J.data&&J.data.chats.length){const Q=J.data.chats.map(X=>({...X,snippet:be.rawEncode(X.snippet)}));E.loadNext?e.value=e.value.concat(Q):e.value=Q}i.value=J.data.hasNext?J.data.next:null})}async function g(){try{await G().checkTokenValidity()}catch{return}const E=G().token;ft.get(`https://va.tawk.to${t.value}list`,{limit:1},{"X-Tawk-Token":E},(I,S)=>{I||S.data&&S.data.chats.length&&(s.value=S.data.chats[0].endedOn??null)})}async function w(){if(l.value=!1,n.value.chat=!0,!a.value)throw l.value=!0,new Error("Invalid Id");try{await G().checkTokenValidity()}catch{l.value=!0;return}const E=G().token;ft.get(`https://va.tawk.to${t.value}get`,{chatId:a.value.id},{"X-Tawk-Token":E},(I,S)=>{if(I)l.value=!0;else if(S.data&&S.data.error)l.value=!0;else{const N=Je.processHistoryMessages(S.data.chat.messages);W(N),C(S.data.chat.calls)}})}function x(){e.value=[]}function R(E){if(E.messageType==="call"){let I;const S=Object.values(f.value);if(S.length){for(let N=0;N{const t=k("/v1/kb"),e=k(null),n=k([]),i=k([]),s=k({index:!1,show:!1,search:!1}),r=k({}),o=k(!1),a=k(!1),l=k({query:null,results:[],hasNext:!1,token:null,total:0,error:!1,linkTarget:"self"}),u=k(null),c=k(0),f=ee(()=>S=>s.value[S]);async function p(S){if(!S.siteId||!S.articleId)throw new Error("Please set article ID before calling the action.show");s.value.show=!0,ft.get(`https://va.tawk.to${t.value}${S.url}`,{propertyId:Ve().id,siteId:S.siteId,articleId:S.articleId},null,(N,J)=>{if(N)throw s.value.show=!1,N;J.data.siteId=S.siteId,r.value=J.data,s.value.show=!1})}function h(S){i.value=S}function d(S){e.value=S}function g(){r.value={}}function w(){a.value=!1,o.value=!0}function x(){a.value=!0,o.value=!1}async function R(S){if(s.value.search=!0,S&&typeof S.siteId<"u"&&(u.value=S.siteId),S&&typeof S.search<"u"&&(l.value.query=S.search,l.value.results=[],l.value.hasNext=!1,l.value.token=null,l.value.total=0,l.value.error=!1),!l.value.query){s.value.search=!1;return}const N={propertyId:Ve().id,siteId:u.value,query:l.value.query,limit:S&&S.limit?S.limit:10,from:l.value.results.length};ft.get("https://va.tawk.to/v1/kb/article/search",N,null,(J,Q)=>{if(s.value.search=!1,J){l.value.error=!0;return}L(Q.data),W()})}function L(S){S.articles.forEach(N=>{if(N.highlight){if(N.highlight.title&&N.highlight.title.length)for(let J=0;J').replace(/\[\/em\]/gi,"");if(N.highlight.subtitle&&N.highlight.subtitle.length)for(let J=0;J').replace(/\[\/em\]/gi,"")}}),l.value.results=l.value.results.concat(S.articles),l.value.hasNext=S.total>l.value.results.length,l.value.token=S.token,l.value.total=S.total,l.value.error=!1}function O(S){ft.post("https://va.tawk.to/v1/kb/analytics/search-result-clicked",{token:l.value.token,articleId:S},null,(N,J)=>{if(N)return J},!1,!0)}function W(){ft.post("https://va.tawk.to/v1/kb/analytics/search-performed",{token:l.value.token},null,(S,N)=>{if(S)return N},!1,!0)}function C(S){s.value.search=S}function D(S){l.value.linkTarget=S}function M(){l.value.query=null,l.value.results=[],l.value.hasNext=!1,l.value.token=null,l.value.total=0,l.value.error=!1,l.value.linkTarget="self"}function v(S){c.value=S}function T(){c.value=0}function E(){l.value.results=[],l.value.hasNext=!1,l.value.total=0,l.value.error=!1}function I(){t.value="/v1/kb",e.value=null,n.value=[],i.value=[],s.value={index:!1,show:!1,search:!1},r.value={},o.value=!1,a.value=!1,l.value={query:null,results:[],hasNext:!1,token:null,total:0,error:!1,linkTarget:"self"},u.value=null,c.value=0}return{baseUrl:t,id:e,items:n,options:i,loading:s,selected:r,isLoadingCodeMirror:o,isCodeMirrorLoaded:a,searchData:l,siteId:u,scrollPosition:c,getIsLoading:f,show:p,updateOptions:h,updateId:d,unsetSelected:g,updateCodeMirrorIsLoading:w,updateCodeMirrorIsLoaded:x,searchArticles:R,articleClickedAnalytics:O,searchPerformedAnalytics:W,updateSearchLoading:C,updateSearchDataLinkTarget:D,unsetSearchData:M,updateScrollPosition:v,unsetScrollPosition:T,unsetSearchDataResults:E,resetState:I}});function Bh(){return[Pe,Z,Nh,Fh,$h,ou,Ve,dn,He,G,ys,Jt,K]}function fu(){for(const t of Bh())t().resetState()}const Hh=Or({name:"TawkRouterView",__name:"TawkRouterView",setup(t){const e=dn(),n=ee(()=>e.getCurrentView);return(i,s)=>(jn(),bi(Df,{name:"slide-fade",mode:"out-in"},{default:ja(()=>{var r;return[(r=n.value)!=null&&r.component?(jn(),bi(Hc(n.value.component),{key:n.value.path})):bf("",!0)]}),_:1}))}}),Wh=(function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"})(),Uh=function(t){return"/"+t},ta={},et=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){let o=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=o(n.map(u=>{if(u=Uh(u),u in ta)return;ta[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Wh,c||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),c)return new Promise((h,d)=>{p.addEventListener("load",h),p.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${u}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},du=[{path:"/",component:()=>{}},{path:"chat",component:()=>{}},{path:"kb-article",component:ut(()=>et(()=>import("./twk-base-DEd6HbV3.js"),[])),hasBack:!0},{path:"kb-search",component:ut(()=>et(()=>import("./twk-base-DyvyTiw_.js"),[])),hasBack:!0,title:()=>Et.i18n("kb","search_results")||"Search Results"},{path:"history-list",component:ut(()=>et(()=>import("./twk-base-BV-dKSQ6.js"),[])),hasBack:!0,title:()=>Et.i18n("routes","conversations")||"Conversations"},{path:"history-chat",component:ut(()=>et(()=>import("./twk-chat-B1W53fzn.js"),[])),hasBack:!0},{path:"agents",component:ut(()=>et(()=>import("./twk-AgentsList-C1mhUoBr.js"),[])),hasBack:!0,title:()=>Et.i18n("routes","all_agents")||"All Agents"},{path:"offline-success",component:ut(()=>et(()=>import("./twk-OfflineSubmitted-BYiZNNMF.js"),[]))},{path:"prechat",component:()=>{}},{path:"name-form",component:ut(()=>et(()=>import("./twk-ChangeNameForm-LU-4ldXT.js"),[]))},{path:"email-transcript-form",component:ut(()=>et(()=>import("./twk-EmailTranscriptForm-CpsWBZvI.js"),[]))},{path:"restart-chat",component:ut(()=>et(()=>import("./twk-RestartChatForm-YdOprX9c.js"),[]))},{path:"messages",component:ut(()=>et(()=>import("./twk-base-WD5d5zqc.js"),[])),hasBack:!0,title:()=>Et.i18n("home","messages")||"Messages"}];function jh(t){dn().addRoutes(du),t&&t.component("TawkRouterView",Hh)}class lr{constructor(e={}){j(this,"matcher");this.matcher=e.routes}}j(lr,"install",jh);const Vh={"outline:":"none !important;","visibility:":"visible !important;","resize:":"none !important;","box-shadow:":"none !important;","overflow:":"visible !important;","background:":"none !important;","opacity:":"1 !important;","filter:":"alpha(opacity=100) !important;","-ms-filter:":"progid:DXImageTransform.Microsoft.Alpha(Opacity 1}) !important;","-mz-opacity:":"1 !important;","-khtml-opacity:":"1 !important;","top:":"auto !important;","right:":"auto !important;","bottom:":"auto !important;","left:":"auto !important;","position:":"absolute !important;","border:":"0 !important;","min-height:":"auto !important;","min-width:":"auto !important;","max-height:":"none !important;","max-width:":"none !important;","padding:":"0 !important;","margin:":"0 !important;","-moz-transition-property:":"none !important;","-webkit-transition-property:":"none !important;","-o-transition-property:":"none !important;","transition-property:":"none !important;","transform:":"none !important;","-webkit-transform:":"none !important;","-ms-transform:":"none !important;","width:":"auto !important;","height:":"auto !important;","display:":"block !important;","z-index:":"auto !important;","background-color:":"transparent !important;","cursor:":"none !important;","float:":"none !important;","border-radius:":"unset !important;","pointer-events:":"auto !important;","clip:":"auto !important;","color-scheme:":"light !important;"},qh=["a[href]","area[href]","button","input","select","textarea","iframe","audio[controls]","video[controls]",'[contenteditable="true"]',"[tabindex]"].join(",");function zh(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Kh(t){if(t.hasAttribute("disabled")||t.getAttribute("aria-hidden")==="true"||t.closest('[aria-hidden="true"]')||t.closest("[inert]"))return!1;const e=t.getAttribute("tabindex");return e!==null&&Number(e)<0?!1:zh(t)}function hu(t){return t?Array.from(t.querySelectorAll(qh)).filter(Kh):[]}function pi(t,e=!1){var n;if(!t)return!1;try{t.focus({preventScroll:e})}catch{return!1}return((n=t.ownerDocument)==null?void 0:n.activeElement)===t}function qp(t){if(!t)return!1;const[e]=hu(t);return pi(e)||pi(t)}function zp(t){let e=!1,n=null;function i(s){var c,f;if(s.key==="Escape"||s.key==="Esc"){(c=t.onEscape)==null||c.call(t);return}if(s.key!=="Tab")return;const r=t.getRoot(),o=hu(r);if(!o.length)return;const a=o[0],l=o[o.length-1],u=(f=r==null?void 0:r.ownerDocument)==null?void 0:f.activeElement;if(!u||!(r!=null&&r.contains(u))||u===r){s.preventDefault(),pi(s.shiftKey?l:a);return}if(s.shiftKey&&u===a){s.preventDefault(),pi(l);return}!s.shiftKey&&u===l&&(s.preventDefault(),pi(a))}return{activate(){e||(n=t.getDocument()??null,n&&(n.addEventListener("keydown",i),e=!0))},deactivate(){e&&(n==null||n.removeEventListener("keydown",i),n=null,e=!1)},get isActive(){return e}}}const Kp="restoreLauncherFocus",Xh="widgetOpened",Jh=["id"],Gh=Or({name:"TawkMessenger",__name:"App",setup(t){const e=ut(()=>et(()=>import("./twk-MinWidget-DFrnenzP.js"),[])),n=ut(()=>et(()=>import("./twk-MaxWidget-DGA-89eT.js").then(q=>q.M),[])),i=ut(()=>et(()=>import("./twk-BrandingWidget-MJiLQkQP.js"),[])),s=ut(()=>et(()=>import("./twk-BubbleWidget-CrSR8RTB.js"),[])),r=ut(()=>et(()=>import("./twk-MessagePreview-KbNQqIX-.js"),[])),o=Ht("emitter"),a=Ht("i18n"),l=Ht("jsApi"),u=Ht("audioPlayer"),c=Ht("tawkWindow"),f=K(),p=G(),h=Z(),d=ys(),g=Pe(),w=k(null),x=k(si()),R=k("auto"),L=k("0px"),O=k("auto"),W=k("0px"),C=k(null),D=k(!1),M=k(null),v=k(!1),T=Vh,E=ee(()=>f.isRight),I=ee(()=>f.isBottom),S=ee(()=>f.isCenter),N=ee(()=>p.pageStatus),J=ee(()=>f.bubble),Q=ee(()=>p.chatBubbleClosed),X=ee(()=>f.showMessagePreview),re=ee(()=>f.isWindowed),ge=ee(()=>f.isEmbedded),De=ee(()=>f.maxDesktop),Te=ee(()=>f.isVisible),ke=ee(()=>f.onClick),$e=ee(()=>p.chatWindowState),dt=ee(()=>f.showTitleNotification),ze=ee(()=>p.originalPageTitle),mt=ee(()=>f.hasLiveChat),vt=ee(()=>f.generalVisibility),Ye=ee(()=>f.show),st=ee(()=>h.chat.unreadMessage),rt=ee(()=>h.hasChatStarted),en=ee(()=>h.agentsCount),m=ee(()=>d.isReady),y=ee(()=>g.mobileBrowserName),A=ee(()=>{let q,le,ve,xe="none !important;",Oe="0px",Le={"transition-property:":"none !important;","margin:":"0px !important;","padding:":"0px !important;","z-index:":"2000000000 !important;","width:":`${R.value} !important;`,"height:":`${O.value} !important;`,"max-height:":`${O.value==="auto"?"none":O.value} !important;`,"max-width:":`${R.value==="auto"?"none":R.value} !important;`,"min-width:":`${L.value} !important;`,"min-height:":`${W.value} !important;`};return ge.value?Le["position:"]="relative !important;":re.value?Le["position:"]="fixed !important;":(Le["position:"]="fixed !important;",I.value||S.value?(le="0px !important;",ve="auto !important;"):(le="auto !important;",ve="0px !important;"),v.value?Le["display:"]="block !important;":Le["display:"]="none !important;",Le["left:"]=E.value?"auto !important;":`${Oe} !important;`,Le["right:"]=E.value?`${Oe} !important;`:"auto !important;",Le["bottom:"]=le,Le["top:"]=ve,Le["transform:"]=xe),l.local_API&&l.local_API.customStyle&&Object.keys(l.local_API.customStyle).length&&l.local_API.customStyle.zIndex&&(Le["z-index:"]=`${be.cleanupCssValue(l.local_API.customStyle.zIndex)} !important;`),q={...T,...Le},Object.entries(q).map(([_,te])=>_+te).join(` `)}),b=[];function P(q,le,ve){const xe=Bl({name:ve||"WidgetApp",render:()=>Al(q)}),Ne={tawkWindow:c,widgetSettings:un,jsApi:se,audioPlayer:xi,scheduler:It,chatManager:Je,activityMonitor:Wn,sessionManager:Ue,webStorage:de,emitter:We,socket:we,i18n:Et.i18n,logger:En};Object.entries(Ne).forEach(([Le,_])=>{xe.provide(Le,_)});const Oe=xe.mount(le);return b.push(xe),Oe}function B(){c.maxWidget||(c.maxWidget=P(n,"#max-widget","MaxWidgetApp"))}function z(){var le,ve;b.forEach(xe=>xe.unmount()),b.length=0,c.minWidget=null,c.maxWidget=null,c.bubbleWidget=null,c.messagePreview=null,c.brandingWidget=null;const q=w.value;(le=c.app)==null||le.unmount(),c.app=null,(ve=q==null?void 0:q.parentNode)==null||ve.removeChild(q)}function V(){if(!document.head.querySelector("link[data-tawk-font-preconnect]"))for(const q of["https://fonts.googleapis.com","https://fonts.gstatic.com"]){const le=document.createElement("link");le.rel="preconnect",le.href=q,le.crossOrigin="anonymous",le.setAttribute("data-tawk-font-preconnect",""),document.head.appendChild(le)}}function U(q){M.value&&clearInterval(M.value),q||N.value==="offline"?ze.value!==null&&(document.title=ze.value,p.originalPageTitle=null):(ze.value===null&&(p.originalPageTitle=document.title),M.value=setInterval(()=>{document.title=ze.value===document.title?a("chat","new_message",{count:st.value}):ze.value},1e3))}function H(){let q;clearTimeout(q),q=setTimeout(()=>{y.value&&(!c.isMobileOptimizedWebsite||y.value==="opera"||y.value==="android2.3")&&Y()},100)}function ie(){return y.value==="safari"||y.value==="android"?window.orientation!==0:screen.height{q==="max"&&ke.value!=="pop"&&(B(),We.emit(Xh)),ke.value==="pop"&&q==="max"?c.popoutWidget():y.value&&!l.local_API.disableMobileBackHistory&&(q==="max"&&(!window.location.hash||window.location.hash==="#max-widget")?(D.value=!0,window.history.pushState?window.history.pushState({page:1},"",window.location.href+"#max-widget"):window.location.hash="max-widget"):q==="min"&&window.location.hash==="#max-widget"&&(D.value=!0,window.history.back())),fe()}),Ct(st,q=>{!dt.value||!mt.value&&(!rt.value||en.value===0)||(q>0?U():U(!0))}),Ct(N,q=>{q==="offline"?U(!0):st.value>0&&U(),fe()}),Ct(Ye,()=>{fe()}),Ct(m,q=>{q&&l.triggerApiHandlers("onLoad")}),Ct(v,q=>{oe(q)}),Er(()=>{fe()}),Pr(()=>{var ve;if((ve=l==null?void 0:l.local_API)!=null&&ve.disableWidgetFont||V(),m.value&&l.triggerApiHandlers("onLoad"),(ge.value||re.value)&&(R.value="100%",O.value="100%",L.value="100%",W.value="100%"),ge.value){const xe=document.getElementById(l.local_API.embedded);xe&&w.value&&(xe.appendChild(w.value),(xe.clientWidth<280||xe.clientHeight<330)&&(R.value=`${De.value.width}px`,O.value=`${De.value.height}px`,L.value=`${De.value.width}px`,W.value=`${De.value.height}px`))}else w.value&&document.body.appendChild(w.value);!re.value&&!ge.value&&(c.minWidget=P(e,"#min-widget","MinWidgetApp"),J.value&&!Q.value&&!y.value&&(c.bubbleWidget=P(s,"#chat-bubble","BubbleWidgetApp")),X.value&&(c.messagePreview=P(r,"#message-preview","MessagePreviewApp"))),(re.value||ge.value||$e.value==="max")&&B(),(ke.value==="max"||!ge.value||!re.value||!y.value)&&(c.brandingWidget=P(i,"#branding-widget","BrandingWidgetApp")),C.value=()=>{u.init(),window.removeEventListener("click",C.value)},window.addEventListener("click",C.value,!1),o.on("removeWidget",z);const q=window.history.pushState.bind(window.history),le=window.history.replaceState.bind(window.history);window.location.hash==="#max-widget"&&(window.history?window.history.replaceState({},document.title,"."):window.location.hash=""),window.history.pushState=(xe,Ne,Oe)=>{q(xe,Ne,Oe),(Oe&&typeof Oe=="string"?Oe.indexOf("#max-widget"):-1)===-1?p.sendNavigationEvent():D.value=!1},window.history.replaceState=(xe,Ne,Oe)=>{const Le=Oe&&typeof Oe=="string"?Oe.indexOf("#max-widget"):-1;le(xe,Ne,Oe),Le===-1?p.sendNavigationEvent():D.value=!1},window.addEventListener("popstate",()=>{if($e.value==="max"&&y.value)return D.value=!0,p.updateChatWindowState("min");D.value||p.sendNavigationEvent()}),window.addEventListener("hashchange",()=>{D.value||window.location&&window.location.hash&&(window.location.hash==="#"||window.location.hash==="#max-widget")||p.sendNavigationEvent()}),window.addEventListener("resize",()=>{H()}),H(),ne(),me(),window.addEventListener("resize",me),window.addEventListener("beforeprint",()=>{ze.value!==null&&(document.title=ze.value),oe(!1)}),window.addEventListener("afterprint",()=>{st.value>0?U():U(!0),oe(v.value)})}),Rr(()=>{o.off("removeWidget",z)}),(q,le)=>(jn(),gf("div",{id:x.value,ref_key:"rootEl",ref:w},[...le[0]||(le[0]=[wf('
',5)])],8,Jh))}});class ur{constructor({propertyId:e,widgetId:n,callback:i,TawkWindow:s}={}){j(this,"propertyId");j(this,"widgetId");j(this,"callback");j(this,"TawkWindow");j(this,"pinia");this.propertyId=e||window.$_Tawk_AccountKey,this.widgetId=n||window.$_Tawk_WidgetId,this.callback=i||function(){},this.TawkWindow=s||{},this.pinia=dd()}updateConfig(e){this.propertyId=e.propertyId,this.widgetId=e.widgetId}init({visitor:e}={}){Oi(this.pinia);const n=globalThis;if(n.$_Tawk.downloaded===void 0){if(n.$_Tawk.downloaded=!0,typeof window.Prototype<"u"&&typeof window.Prototype.Version=="string"&&parseFloat(window.Prototype.Version.substr(0,3))<1.7&&typeof Array.prototype.toJSON<"u"){const i=JSON.stringify;JSON.stringify=function(s){const r=Array.prototype.toJSON;delete Array.prototype.toJSON;const o=i(s);return Array.prototype.toJSON=r,o}}n.$_Tawk.startTime=new Date().getTime().toString(),n.$_Tawk.loaded=!1,n.$_Tawk.connected=!1,n.$_Tawk.ready=!1,this.TawkWindow.register=new Rh({TawkWindow:this.TawkWindow}),En.install(null,{}),de.install(null,{TawkWindow:this.TawkWindow}),un.install(null,{TawkWindow:this.TawkWindow}),se.install(null,{TawkWindow:this.TawkWindow}),xi.install(null,{TawkWindow:this.TawkWindow}),It.install(null,{TawkWindow:this.TawkWindow}),Je.install(null,{TawkWindow:this.TawkWindow}),Wn.install(null,{TawkWindow:this.TawkWindow}),Ue.install(null,{TawkWindow:this.TawkWindow}),we.install(null,{TawkWindow:this.TawkWindow}),lr.install(null),this.checkMetaContent(),this.connect({visitor:e})}}checkMetaContent(){let e;const n={},i=document.getElementsByTagName("meta");let s="";for(let u=0,c=i.length;u{un.getSettings(r,o)})],i=window.Tawk_API;(!i||i.autoStart||i.autoStart===void 0)&&n.push(new Promise((r,o)=>{this.TawkWindow.register.init(r,o,{visitor:e})}));try{iu(n).then(r=>{if(r.length===2){if(r[0].status==="fulfilled"&&r[1].status==="fulfilled"){const{data:o}=r[1].value||{};o&&o.settingsVersion===r[0].value?(this.extractRegistrationData(r[1].value),this.createUI(!0)):(de.sessionStore().setItem("tawk_sv",o==null?void 0:o.settingsVersion),un.version=o==null?void 0:o.settingsVersion,un.getSettings(()=>{this.extractRegistrationData(r[1].value),this.createUI(!0),We.emit("updateWidgetSettings")},function(a){console.error(a)}))}}else r[0].status==="fulfilled"&&this.createUI()})}catch(r){console.error(r)}}extractRegistrationData({data:e}){e.cc&&G().setCountryCode(e.cc),e.rc&&G().setRegionalCode(e.rc);const n=!!(e.rcf&&K().consentFormType);if(Z().updateVersion(e.cver||0),G().updateConsentFlag(n),e.cw==="max"&&(this.TawkWindow.maximize=!0),G().updateConnectionData(e),n||(Ue.storeSessionInformation(),e.uid&&Jt().updateUUID(e.uid),Jt().updateVisitorInformation(e),e.dpt&&Z().updateDepartment(e.dpt)),e.pcfs&&G().updatePrechatSubmitted(e.pcfs),e.refs&&e.refs.length)for(let i=0;i{const s=this.codeOf(i);s&&(n[s]=i)}),n):(Object.keys(e).forEach(i=>{n[String(i).toUpperCase()]=e[i]}),n)},codeOf(t){if(!t||typeof t!="object")return null;for(let e=0;e{const t=k({}),e=k({}),n=k({}),i=k(null),s=k({}),r=k(null),o=k(!1),a=k({}),l=k({}),u=k({}),c=k({}),f=k({}),p=k("max"),h=k(null),d=k({}),g=k({}),w=k("inline"),x=k(void 0),R=k({}),L=k(!1),O=k(0),W=k(0),C=k(0),D=k(0),M=k("en"),v=k({}),T=k({}),E=k({}),I=k(!1),S=k(!0),N=k(1),J=k({showAgentAvatars:!1}),Q=k(!1),X=k(!0),re=k(!1),ge=k("classic"),De=k(!1),Te=k(void 0),ke=k("home"),$e=ee(()=>{var F,$;return($=(F=g.value)==null?void 0:F.header)==null?void 0:$.background}),dt=ee(()=>{var F,$;return($=(F=g.value)==null?void 0:F.header)==null?void 0:$.text}),ze=ee(()=>{var F,$;return($=(F=g.value)==null?void 0:F.visitor)==null?void 0:$.messageBackground}),mt=ee(()=>{var F,$;return($=(F=g.value)==null?void 0:F.visitor)==null?void 0:$.messageText}),vt=ee(()=>{var F,$;return($=(F=g.value)==null?void 0:F.agent)==null?void 0:$.messageBackground}),Ye=ee(()=>{var F,$;return($=(F=g.value)==null?void 0:F.agent)==null?void 0:$.messageText}),st=()=>{var $;const F=($=se.local_API)==null?void 0:$.customStyle;return F==null?void 0:F.visibility},rt=ee(()=>{var ye,Ae;const F=["br","cr","tr"],$=st();return Pe().mobileBrowserName?(ye=$==null?void 0:$.mobile)!=null&&ye.position?F.indexOf($.mobile.position)!==-1:F.indexOf(f.value.position??"")!==-1:(Ae=$==null?void 0:$.desktop)!=null&&Ae.position?F.indexOf($.desktop.position)!==-1:F.indexOf(s.value.position??"")!==-1}),en=ee(()=>{var ye,Ae;const F=["br","bl"],$=st();return Pe().mobileBrowserName?(ye=$==null?void 0:$.mobile)!=null&&ye.position?F.indexOf($.mobile.position)!==-1:F.indexOf(f.value.position??"")!==-1:(Ae=$==null?void 0:$.desktop)!=null&&Ae.position?F.indexOf($.desktop.position)!==-1:F.indexOf(s.value.position??"")!==-1}),m=ee(()=>{var ye,Ae;const F=["cr","cl"],$=st();return Pe().mobileBrowserName?(ye=$==null?void 0:$.mobile)!=null&&ye.position?F.indexOf($.mobile.position)!==-1:F.indexOf(f.value.position??"")!==-1:(Ae=$==null?void 0:$.desktop)!=null&&Ae.position?F.indexOf($.desktop.position)!==-1:F.indexOf(s.value.position??"")!==-1}),y=ee(()=>Pe().mobileBrowserName?c.value.type==="round":u.value.type==="round"),A=ee(()=>o.value&&!re.value),b=ee(()=>A.value&&!Pe().mobileBrowserName&&ge.value==="modern"),P=ee(()=>{var $;if(!b.value)return!1;const F=t.value;return!(F!=null&&F.whitelabeled)||((($=F.text)==null?void 0:$.length)??0)>0}),B=ee(()=>{var F,$,ye,Ae;return Pe().mobileBrowserName?($=(F=v.value)==null?void 0:F.mobile)==null?void 0:$.preview:(Ae=(ye=v.value)==null?void 0:ye.desktop)==null?void 0:Ae.preview}),z=ee(()=>{var F,$;return($=(F=v.value)==null?void 0:F.all)==null?void 0:$.visitorTyping}),V=ee(()=>{var F,$;return!!(($=(F=v.value)==null?void 0:F.all)!=null&&$.estimatedWaitTime)}),U=ee(()=>{var F,$;return!!(($=(F=v.value)==null?void 0:F.all)!=null&&$.agentTyping)}),H=ee(()=>{var F,$,ye;return!!((ye=($=(F=d.value)==null?void 0:F.prechat)==null?void 0:$.handlers)!=null&&ye.form)}),ie=ee(()=>{var F,$,ye;return!!((ye=($=(F=d.value)==null?void 0:F.prechat)==null?void 0:$.handlers)!=null&&ye.suppressAiResponse)}),Y=ee(()=>{var F,$;return!!(($=(F=v.value)==null?void 0:F.all)!=null&&$.sound)&&S.value}),ne=ee(()=>{var $,ye,Ae;return h.value!==null?h.value:G().pageStatus==="offline"&&!(($=a.value)!=null&&$.showWhenOffline)?!1:Pe().mobileBrowserName?(ye=f.value)==null?void 0:ye.show:(Ae=s.value)==null?void 0:Ae.show}),oe=ee(()=>{var Ae;const $=G().pageStatus,ye=(Ae=d.value)==null?void 0:Ae[$];if(!(ye!=null&&ye.header))return null;if(Array.isArray(ye.header)){const gn=ye.header.find(kt=>kt.type==="logo");return gn?gn.content:null}return null}),fe=ee(()=>ia.isStateEnabled(i.value,G().regionalCode)),me=ee(()=>ia.hasGdprForm(n.value)),q=ee(()=>G().countryCode==="US"&&fe.value?"us-two-party":me.value?"general-data-protection-regulation":null),le=ee(()=>{var F;return!!((F=e.value)!=null&&F.liveChat)}),ve=ee(()=>{var F;return!!((F=T.value)!=null&&F.transcript)}),xe=ee(()=>{var F;return!!((F=T.value)!=null&&F.emoji)}),Ne=ee(()=>{var F,$;return(($=(F=v.value)==null?void 0:F.all)==null?void 0:$.tab)??!1});function Oe(){Li(!h.value)}function Le(F){t.value=F}function _(F){r.value=F}function te(F){typeof F<"u"?S.value=F:(S.value=!S.value,we.publish("toggleSound",S.value))}function he(){S.value=!0}function pe(F){J.value.showAgentAvatars=F}function Fe(F){Q.value=F}function Be(F){X.value=F}function ot(F=()=>{}){Z().resetState(),Z().clearChatInputMessage(),Wn.cleanUp(),we.disconnectSocket(),delete window.$_Tawk.downloaded,Li(!1),F()}function Ke({params:F={},callback:$=()=>{}}){ys().updateIsConnecting(!0);const ye=Ve().id,Ae=r.value,gn=new ur({propertyId:ye,widgetId:Ae,TawkWindow:Ue.TawkWindow,callback:function(){h.value=F.showWidget?!0:null,$()}});new Promise((kt,mn)=>{Ue.TawkWindow.register.init(kt,mn)}).then(kt=>{un.version=kt.data.settingsVersion;const mn=de.sessionStore().getItem("tawk_sv"),Jn=()=>{gn.extractRegistrationData(kt),We.emit("updateWidgetSettings"),G().needConsent||we.connect(),Wn.initActivityReset(),dn().clearHistory()};!mn||mn!==kt.data.settingsVersion?(de.sessionStore().setItem("tawk_sv",kt.data.settingsVersion),un.getSettings(Jn,function(On){console.error(On)})):Jn()})}function at({propertyId:F,widgetId:$,callback:ye}){if(F===null)return ye("INVALID_PROPERTY_ID");if($===null)return ye("INVALID_WIDGET_ID");ot(),fu(),new ur({propertyId:F,widgetId:$,TawkWindow:Ue.TawkWindow,callback:function(){Li(!0),We.emit("switchWidget"),Ue.TawkWindow.updateBootConfig({propertyId:F,widgetId:$}),ye()}}).init()}function yu(F){var mn,Jn;const $=F;x.value=$.version,p.value=$.behavior.click,ke.value=((mn=$.behavior)==null?void 0:mn.defaultView)||"home",e.value=$.components,g.value=$.theme;const ye=JSON.parse(JSON.stringify($.states));for(const On in ye){const vn=ye[On];vn&&vn.body&&(vn.body=vn.body.filter($r=>!($r.id&&$r.id.startsWith("pc:"))))}d.value=ye,R.value=$.bubble,Te.value=$.agentDrivenStatus,l.value={width:parseInt($.maximized.desktop.width,10)||350,height:parseInt($.maximized.desktop.height,10)||520};const Ae=$.minimized.desktop;u.value=Ae,Ae.type==="rectangle"?(u.value.width=parseInt(Ae.width??"",10)||320,u.value.height=parseInt(Ae.height??"",10)||40,O.value=0,D.value=10):(u.value.width=60,u.value.height=60,O.value=20,D.value=20);const gn=$.minimized.mobile;c.value=gn,gn.type==="rectangle"?(c.value.width=110,c.value.height=48,C.value=15,W.value=15):(c.value.width=60,c.value.height=60,C.value=20,W.value=20),a.value=$.visibility.all,s.value=$.visibility.desktop,f.value=$.visibility.mobile,n.value=$.consent;const kt=$.usPrivacyShield||$.consent&&$.consent.usPrivacyShield;if(kt&&(i.value=kt),M.value=$.language,L.value=["ar","he","fa"].indexOf($.language)!==-1,v.value=$.notification,T.value=$.features,R.value&&R.value.type==="image"&&R.value.config&&((Jn=R.value.config.image)==null?void 0:Jn.type)==="gallery"){const On=$.visibility.desktop.position,vn=$.minimized.desktop.type;(On!=="cr"&&vn!=="rectangle"||On!=="cl"&&vn!=="rectangle")&&(R.value.config.offsetX-=D.value),s.value.position!=="cr"&&s.value.position!=="cl"&&(R.value.config.offsetY-=O.value)}$.scheduler&&$.scheduler.config?He().addSlots($.scheduler):He().addSlots(void 0)}function Li(F){h.value=F,h.value||se.triggerApiHandlers("onChatHidden")}function wu(F){E.value=F}function bu(F){o.value=F}function Su(F){I.value=F}function xu(F){N.value=F}function Tu(F){re.value=F}function ku(F){ge.value=F==="modern"?"modern":"classic"}function _u(F){De.value=F}return{branding:t,components:e,consentData:n,usPrivacyShield:i,desktopVisibility:s,id:r,isWindowed:o,generalVisibility:a,maxDesktop:l,minDesktop:u,minMobile:c,mobileVisibility:f,onClick:p,show:h,states:d,theme:g,type:w,version:x,bubble:R,isRTL:L,yOffset:O,xOffsetMobile:W,yOffsetMobile:C,xOffset:D,language:M,notification:v,features:T,webrtcOptions:E,isEmbedded:I,localSoundEnabled:S,zoomRatio:N,toolbarOptions:J,isMobileLandscape:Q,isFocus:X,isPopout:re,directChatLayout:ge,isIframe:De,agentDrivenStatus:Te,defaultView:ke,headerBgColor:$e,headerTxtColor:dt,visitorBgColor:ze,visitorTxtColor:mt,agentBgColor:vt,agentTxtColor:Ye,isRight:rt,isBottom:en,isCenter:m,isRoundWidget:y,isDirectChat:A,isModernDirectChat:b,hasModernDirectChatBranding:P,showMessagePreview:B,showVisitorTyping:z,showEstimatedWaitTime:V,showAgentTyping:U,isPrechatEnabled:H,isPrechatAiResponseSuppressed:ie,isSoundEnabled:Y,isVisible:ne,getLogoContent:oe,usPrivacyShieldEnabled:fe,hasConsentConfig:me,consentFormType:q,hasLiveChat:le,emailTranscriptEnabled:ve,emojiEnabled:xe,showTitleNotification:Ne,toggleVisibility:Oe,updateBranding:Le,updateId:_,toggleLocalSound:te,resetState:he,toggleAgentAvatarToolbar:pe,updateMobileLandscape:Fe,toggleFocus:Be,shutdown:ot,start:Ke,switchWidget:at,setData:yu,setVisibility:Li,setWebrtcOptions:wu,setIsWindowed:bu,setIsEmbedded:Su,setZoomRatio:xu,setIsPopout:Tu,setDirectChatLayout:ku,setIsIframe:_u}});class Yh extends Fr{constructor({TawkWindow:n}={}){super();j(this,"TawkWindow");this.TawkWindow=n||null}checkIsEnabled(){let n=!!navigator.cookieEnabled;typeof navigator.cookieEnabled>"u"&&!n&&(document.cookie="testcookie",n=document.cookie.indexOf("testcookie")!=-1),this.isEnabled=n}setItem(n,i,s,r){if(window.location.protocol==="file:"||K().isIframe)return de.localStore().setItem(n,i);if(this.isEnabled){let a="",l="Lax;",u="";if(!s){const f=new Date;f.setTime(f.getTime()+15552e6),a=`; expires=${f.toUTCString()}`}K().isIframe&&(l="None;");const c=r?`; domain=${r}`:"";return window.location.protocol==="https:"&&(u=" Secure"),document.cookie=`${n}=${i}${a}; path=/${c}; SameSite=${l}${u};`,!0}}getItem(n){const i=[];if(window.location.protocol==="file:"||K().isIframe){const r=de.localStore().getItem(n);return r?[r]:[]}if(this.isEnabled){const r=`${n}=`,o=document.cookie.split(";");for(let a=0,l=o.length;a{let i,s;const o=`twk_uuid_${Ve().id}`;if(K().isPopout){this.getPopoutUUID(o).then(a=>{e(a)}).catch(()=>{n(new Error("Failed to get popout UUID"))});return}if((K().isWindowed||Ve().isTawkHostedPage)&&(s=de.localStore().getItem(o),s&&s.length))try{const a=JSON.parse(s);if(a&&typeof a=="object")return e(a)}catch(a){console.error(a)}if(!s){const a=de.cookieStore().getItem(o);if(a&&a.length)try{i=JSON.parse(decodeURIComponent(a[0]))}catch(l){console.error(l)}}i||(i=this.getDeprecatedUUID()),e(i||{})})}getPopoutUUID(e){return new Promise((n,i)=>{let s,r;const o=de.sessionStore().getItem(e);if(o&&o.length)try{r=JSON.parse(o),n(r)}catch(a){console.error(a),i(a instanceof Error?a:new Error("Failed to parse UUID"))}else{const a=l=>{const u=l.data;if(u&&l.source===window.opener){if(window.removeEventListener("message",a,!1),clearTimeout(s),u.twkWidgetUUID)return n({uuid:u.twkWidgetUUID,version:3});n({})}};window.addEventListener("message",a,!1),s=setTimeout(()=>{i(new Error("Timed out waiting for popout UUID"))},1e4),window.opener.postMessage("getTwkWidgetUUID","*")}})}getDeprecatedUUID(){let e,n,i=!1,s=1/0,r=$d.toASCII(window.location.hostname);r.substring(0,4)==="www."&&(r=r.replace("www.",""));const o=de.cookieStore().getItem("__tawkuuid");if(o&&o.length>0)for(let a=0;a{e=this.generateIdempotencyKey()}),e}catch{try{return this.generateIdempotencyKey()}catch(n){return console.error("[Tawk/Session]",n),rr()}}}generateIdempotencyKey(){let e=de.cookieStore().getItem("twk_idm_key");return e&&e.length?e=e[0]:(e=rr(),de.cookieStore().setItem("twk_idm_key",e,!0),de.cookieStore().checkItemSaved("twk_idm_key")),e}storeUUID(e,n,i){const r=`twk_uuid_${Ve().id}`,o=new Date().getTime(),a=JSON.stringify({uuid:e,version:n,domain:i,ts:o});if(K().isPopout){de.sessionStore().setItem(r,a);return}if(K().isWindowed||Ve().isTawkHostedPage)de.localStore().setItem(r,a);else{de.cookieStore().setItem(r,encodeURIComponent(a),!1,i||void 0);try{de.cookieStore().checkItemSaved(r)}catch(l){console.error(l)}}}getStoredToken(){const e=Ve().id;let n=null;return K().isPopout?n=de.sessionStore().getItem(`twk_token_${e}`):n=de.localStore().getItem(`twk_token_${e}`),n||(de.localStore().getItem("twk_token"),de.localStore().deleteItem("twk_token")),n}storeToken(e){const i=`twk_token_${Ve().id}`;K().isPopout?de.sessionStore().setItem(i,e):de.localStore().setItem(i,e)}async reconnectSession(e){e=e||function(){},await Promise.resolve(this.TawkWindow.criticalRefresh()),e()}async login(e,n){try{await G().checkTokenValidity()}catch(o){console.error("[JSAPI/Login]",o);return}const i="https://va.tawk.to/v1/client/login",s=this.getStoredToken();let r;s&&(r={"X-Tawk-Token":s}),ft.post(i,e,r,(o,a)=>{if(o||!o&&!a)return n(!0);if(a.error)return n(a.error);const l=()=>{n(),We.emit("forceUpdate")};Z().clearChatInputMessage(),this.reconnectSession(l)},!0,!0)}async logout(e){try{await G().checkTokenValidity()}catch(r){console.error("[JSAPI/Logout]",r);return}const n="https://va.tawk.to/v1/client/logout",i=this.getStoredToken();let s;i&&(s={"X-Tawk-Token":i}),ft.post(n,{},s,(r,o)=>{if(r||!r&&!o)return e(!0);if(o.error)return e(o.error);const a=()=>{e(),We.emit("forceUpdate")};Z().clearChatInputMessage(),this.reconnectSession(a)},!0,!0)}}const Ue=new ep,Jt=St("visitor",()=>{const t=k(null),e=k(null),n=k(null),i=k(null),s=k(null),r=k(0),o=k(null),a=ee(()=>t.value||i.value),l=ee(()=>es.isGeneratedName(n.value)?"":n.value);function u(h){r.value=h.uv||0,s.value=h.u,Ue.storeUUID(h.u,h.uv,h.domain)}function c(h){const d={visitorId:o.value,name:n.value,email:t.value,transcriptEmail:i.value};h.n&&be.isString(h.n)&&(d.name=h.n),h.te&&be.isString(h.te)&&(d.transcriptEmail=h.te),h.e&&be.isString(h.e)&&(d.email=h.e),h.vid&&(d.visitorId=h.vid),o.value=d.visitorId,n.value=be.rawDecode(d.name),e.value=es.parseVisitorName(d.name),t.value=d.email,i.value=d.transcriptEmail}function f(){n.value=null,e.value=null,t.value=null,i.value=null}function p(){t.value=null,e.value=null,n.value=null,i.value=null,s.value=null,r.value=0,o.value=null}return{email:t,displayName:e,name:n,transcriptEmail:i,uuid:s,uuidVer:r,visitorId:o,getEmailValue:a,getVisitorName:l,updateUUID:u,updateVisitorInformation:c,clearVisitorInformation:f,resetState:p}});function cr(t){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(t)}function pu(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":cr(XMLHttpRequest))==="object"}function tp(t){return!!t&&typeof t.then=="function"}function np(t){return tp(t)?t:Promise.resolve(t)}function sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function ra(t){for(var e=1;eimport("./twk-browser-ponyfill-DxWGZJwh.js").then(t=>t.b),[]).then(function(t){hn=t.default}).catch(function(){})}catch{}var fr=function(e,n){if(n&&An(n)==="object"){var i="";for(var s in n)i+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!i)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+i.slice(1)}return e},oa=function(e,n,i,s){var r=function(l){if(!l.ok)return i(l.statusText||"Error",{status:l.status});l.text().then(function(u){i(null,{status:l.status,data:u})}).catch(i)};if(s){var o=s(e,n);if(o instanceof Promise){o.then(r).catch(i);return}}typeof fetch=="function"?fetch(e,n).then(r).catch(i):hn(e,n).then(r).catch(i)},aa=!1,op=function(e,n,i,s){e.queryStringParams&&(n=fr(n,e.queryStringParams));var r=ra({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(r["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),i&&(r["Content-Type"]="application/json");var o=typeof e.requestOptions=="function"?e.requestOptions(i):e.requestOptions,a=ra({method:i?"POST":"GET",body:i?e.stringify(i):void 0,headers:r},aa?{}:o),l=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{oa(n,a,s,l)}catch(u){if(!o||Object.keys(o).length===0||!u.message||u.message.indexOf("not implemented")<0)return s(u);try{Object.keys(o).forEach(function(c){delete a[c]}),oa(n,a,s,l),aa=!0}catch(c){s(c)}}},ap=function(e,n,i,s){i&&An(i)==="object"&&(i=fr("",i).slice(1)),e.queryStringParams&&(n=fr(n,e.queryStringParams));try{var r=ki?new ki:new rs("MSXML2.XMLHTTP.3.0");r.open(i?"POST":"GET",n,1),e.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!e.withCredentials,i&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");var o=e.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)r.setRequestHeader(a,o[a]);r.onreadystatechange=function(){r.readyState>3&&s(r.status>=400?r.statusText:null,{status:r.status,data:r.responseText})},r.send(i)}catch(l){}},lp=function(e,n,i,s){if(typeof i=="function"&&(s=i,i=void 0),s=s||function(){},hn&&n.indexOf("file:")!==0)return op(e,n,i,s);if(pu()||typeof ActiveXObject=="function")return ap(e,n,i,s);s(new Error("No fetch and no xhr implementation found!"))};function Kn(t){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(t)}function la(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function Ws(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};up(this,t),this.services=e,this.options=n,this.allOptions=i,this.type="backend",this.init(e,n,i)}return fp(t,[{key:"init",value:function(n){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Ws(Ws(Ws({},hp()),this.options||{}),s),this.allOptions=r,this.services&&this.options.reloadInterval){var o=setInterval(function(){return i.reload()},this.options.reloadInterval);Kn(o)==="object"&&typeof o.unref=="function"&&o.unref()}}},{key:"readMulti",value:function(n,i,s){this._readAny(n,n,i,i,s)}},{key:"read",value:function(n,i,s){this._readAny([n],n,[i],i,s)}},{key:"_readAny",value:function(n,i,s,r,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,s)),l=np(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(c,o,i,r)})}},{key:"loadUrl",value:function(n,i,s,r){var o=this,a=typeof s=="string"?[s]:s,l=typeof r=="string"?[r]:r,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,f){if(f&&(f.status>=500&&f.status<600||!f.status))return i("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return i("failed loading "+n+"; status code: "+f.status,!1);if(!f&&c&&c.message){var p=c.message.toLowerCase(),h=["failed","fetch","network","load"].find(function(w){return p.indexOf(w)>-1});if(h)return i("failed loading "+n+": "+c.message,!0)}if(c)return i(c,!1);var d,g;try{typeof f.data=="string"?d=o.options.parse(f.data,s,r):d=f.data}catch{g="failed parsing "+n+" to json"}if(g)return i(g,!1);i(null,d)})}},{key:"create",value:function(n,i,s,r,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(i,s,r),u=0,c=[],f=[];n.forEach(function(p){var h=a.options.addPath;typeof a.options.addPath=="function"&&(h=a.options.addPath(p,i));var d=a.services.interpolator.interpolate(h,{lng:p,ns:i});a.options.request(a.options,d,l,function(g,w){u+=1,c.push(g),f.push(w),u===n.length&&typeof o=="function"&&o(c,f)})})}}},{key:"reload",value:function(){var n=this,i=this.services,s=i.backendConnector,r=i.languageUtils,o=i.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(f){var p=r.toResolveHierarchy(f);p.forEach(function(h){l.indexOf(h)<0&&l.push(h)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(f){s.read(c,f,"read",null,null,function(p,h){p&&o.warn("loading namespace ".concat(f," for language ").concat(c," failed"),p),!p&&h&&o.log("loaded namespace ".concat(f," for language ").concat(c),h),s.loaded("".concat(c,"|").concat(f),p,h)})})})}}}])})();vu.type="backend";var Nn=function(){return Nn=Object.assign||function(t){for(var e,n=1,i=arguments.length;n)((\\n|.)*)(<\\/pre>)","g"),_p=new RegExp("https?:\\/\\/(?:[a-zA-Z0-9\\-]+\\.)+[a-zA-Z]{2,}(?:\\/[^\\s]*)?","g"),Cp=(function(){function t(e){e===void 0&&(e={}),this.options=e}return t.prototype.parseMarkdown=function(e){return e=this.standardizeLineEndings(e),e=e.replace(/\$/g,"DOLLAR=SIGN=PLACEHOLDER"),e=this.fixCodeBlocks(this.replaceMarkdown(` `+e+` `)).trim(),e=e.replace(/DOLLAR=SIGN=PLACEHOLDER/g,"$"),e},t.prototype.standardizeLineEndings=function(e){return e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `),e},t.prototype.replaceCodeBlocks=function(e){var n=this;return e.replace(pp,function(i,s){return`
`+n.encodeHTMLEntites(s)+"
"})},t.prototype.replaceInlineCodes=function(e){return e.replace(gp,function(n,i,s){return""+s+""})},t.prototype.replaceLinks=function(e){var n=this;return e.replace(mp,function(i,s,r,o){var a=s||r,l={target:"_blank",href:r};return o&&(l.alt=o),typeof n.options=="object"&&n.options.a&&n.options.a.length>0&&n.options.a.forEach(function(u){u.rule===void 0&&u.attributes&&(l=Nn(Nn({},l),u.attributes)),u.rule&&u.rule.test(i)&&(l=Nn(Nn({},l),u.attributes))}),""+a+""})},t.prototype.replaceLinksWithTargetParent=function(e){return e.replace(vp,function(n,i,s,r){var o=r?' alt="'.concat(r,'"'):"",a=i||s;return'"+a+""})},t.prototype.replaceBold=function(e){return e.replace(yp,function(n,i){var s,r,o="",a="",l=((s=n.match(/^\*+/))===null||s===void 0?void 0:s[0].length)||0,u=((r=n.match(/\*+$/))===null||r===void 0?void 0:r[0].length)||0;return l!==u&&(l>=2||u>=2)&&(l>2&&u>2?(o="*".repeat(l-2),a="*".repeat(u-2)):(o="*".repeat(l-1),a="*".repeat(u-1))),o+""+i+""+a})},t.prototype.replaceItalic=function(e){return e.replace(wp,function(n,i){var s,r;if(n.match(_p))return n;var o="",a="",l=((s=n.match(/^_+/))===null||s===void 0?void 0:s[0].length)||0,u=((r=n.match(/_+$/))===null||r===void 0?void 0:r[0].length)||0;return l!==u&&(l>=2||u>=2)&&(l>2&&u>2?(o="_".repeat(l-2),a="_".repeat(u-2)):(o="_".repeat(l-1),a="_".repeat(u-1))),o+""+i+""+a})},t.prototype.replaceceStrikethrough=function(e){return e.replace(bp,function(n,i){var s,r,o="",a="",l=((s=n.match(/^~+/))===null||s===void 0?void 0:s[0].length)||0,u=((r=n.match(/~+$/))===null||r===void 0?void 0:r[0].length)||0;return l!==u&&(l>=2||u>=2)&&(l>2&&u>2?(o="~".repeat(l-2),a="~".repeat(u-2)):(o="~".repeat(l-1),a="~".repeat(u-1))),o+""+i+""+a})},t.prototype.replaceBlockquotes=function(e){return e.replace(Sp,function(n,i,s){var r=i.length;r>2&&(r=2),s=s.replace(/^>/,"");var o=Array.from({length:r},function(){return"
"});return o.push(s),o.push("
".repeat(r)),` `+o.join("")})},t.prototype.replaceUnorderedLists=function(e){return e.replace(xp,function(n){var i=[],s=0;for(n.trim().split(` `).forEach(function(r){var o=r.match(/^(\s*)(-|\+)(?!-|\+)(.*)/);if(o){for(var a=o[1].length,l=o[3].trim();s>a;)i.push(""),s--;s
  • ".concat(l,"
  • ")),s++):i.push("
  • ".concat(l,"
  • "))}});s>0;)i.push(""),s--;return"
      ".concat(i.join(""),"
    ")})},t.prototype.replaceOrderedLists=function(e){var n=this;return e.replace(Tp,function(i){var s=[],r=0,o=i.split(` `).indexOf(i.trim().split(` `)[0]);for(i.trim().split(` `).forEach(function(a){var l=a.match(/(\d+\.)\s(.*)/);if(l){for(var u=n.countLevels(a)-1;r>u;)s.push(""),r--;r
  • ".concat(l[2],"
  • ")),r++):s.push("
  • ".concat(l[2],"
  • "))}});r>0;)s.push(""),r--;return o>0?"".concat(` `.repeat(o),"
      ").concat(s.join(""),"
    "):"
      ".concat(s.join(""),"
    ")})},t.prototype.countLevels=function(e){var n=e.match(/^(\d+(\.\d+)*)\./);return n?n[1].split(".").length:0},t.prototype.fixCodeBlocks=function(e){return e.replace(kp,function(n,i,s,r,o){var a="";return s.split(` `).forEach(function(l){a+=l+` `}),i+a+o})},t.prototype.encodeHTMLEntites=function(e){return e.replace(//g,">").replace(/\//g,"/")},t.prototype.replaceMarkdown=function(e){var n=this,i=e,s=[],r=[];return i=i.replace(/```([\s\S]*?)```/g,function(o){return r.push(o),"CODEBLOCK=PLACEHOLDER=".concat((r.length-1).toString())}),i=i.replace(/`([^`]+)`/g,function(o){return s.push(o),"INLINECODE=PLACEHOLDER=".concat((s.length-1).toString())}),i=this.replaceBold(i),i=this.replaceItalic(i),i=this.replaceLinksWithTargetParent(i),i=this.replaceLinks(i),i=this.replaceceStrikethrough(i),i=this.replaceBlockquotes(i),i=this.replaceUnorderedLists(i),i=this.replaceOrderedLists(i),i=i.replace(/INLINECODE=PLACEHOLDER=(\d+)/g,function(o,a){return n.replaceInlineCodes(s[Number(a)])}),i=i.replace(/CODEBLOCK=PLACEHOLDER=(\d+)/g,function(o,a){return n.replaceCodeBlocks(r[Number(a)])}),i},t.prototype.convertAttributesToString=function(e){return Object.entries(e).map(function(n){var i=n[0],s=n[1];return"".concat(i,'="').concat(String(s),'"')}).join(" ")},t.prototype.makeHtml=function(e){return this.parseMarkdown(e)},t})();(function(){var s;const t={},e=new Cp(t),n={maximize:!1},i=new ur({TawkWindow:n});n.registerWithConsent=()=>{n.maximize=!0,Ue.storeSessionInformation(!0),new Promise((r,o)=>{n.register.init(r,o)}).then(r=>{if(i.extractRegistrationData(r),G().needConsent){We.emit("consentSubmissionFailed"),Sn()&&Sn().postMessage("twkConsentFailed","*");return}we.connect(),dn().clearHistory(),Ue.storeSessionInformation(!0),Sn()&&Sn().postMessage("twkPopWidgetRegister","*")}).catch(r=>{console.error("[Tawk/Consent]",r),We.emit("consentSubmissionFailed")})},n.retryRegister=()=>{new Promise((r,o)=>{n.register.init(r,o)}).then(r=>{i.extractRegistrationData(r),we.connect()})},n.popoutWidget=()=>{const r=Ve().id,o=K().id,a=K().branding;let l=`https://tawk.to/chat/${r}/`;G().updateChatWindowState("min"),!ru()&&(a&&a.whitelabeled&&a.popoutBaseUrl&&(l=`${a.popoutBaseUrl}/chat/`),nh(window.open(l+o+"?pop=1","Tawk","height=500, width=450, resizable=yes, toolbar=no, location=no, menubar=no, personalbar=no")))},n.criticalRefresh=()=>{if(K().isWindowed)return window.location.reload();delete window.$_Tawk.downloaded,dn().clearHistory(),i.connect()},n.updateBootConfig=r=>{i.updateConfig(r)},n.makeHtml=r=>e.makeHtml(r),window.addEventListener("beforeunload",function(){n&&n.logger&&(n.logger.unloading=!0)}),window.addEventListener("message",function(r){if(Sn()&&r.data==="getTwkWidgetUUID"){Sn().postMessage({twkWidgetUUID:Jt().uuid},r.origin);return}if(r.data==="twkRegisterWConsent"&&r.source===Sn())return n.registerWithConsent();if(K().isPopout&&r.data==="twkPopWidgetRegister"&&r.source===window.opener){n.registerWithConsent();return}K().isPopout&&r.data==="twkConsentFailed"&&r.source===window.opener&&We.emit("consentSubmissionFailed")},!1),it.use(vu).init({lng:"en",debug:!1,load:"currentOnly",fallbackLng:["en","en_dev"],interpolation:{escapeValue:!1},backend:{loadPath:"https://embed.tawk.to/_s/v4/app/6ab62d2918b/languages/{{lng}}.json"}},function(r,o){r&&console.error("[Tawk/Widget-Settings]",r),window.$_Tawk.i18next=o,Et.setTranslator(o)}),i.init({visitor:(s=window.Tawk_API)==null?void 0:s.visitor})})();export{Xh as $,dn as A,Rr as B,Er as C,K as D,Up as E,gt as F,Wp as G,Fh as H,Z as I,Ct as J,be as K,Pe as L,Lp as M,$p as N,si as O,zh as P,qp as Q,Kp as R,Nh as S,Df as T,ys as U,Jt as V,el as W,Dp as X,Bp as Y,ds as Z,et as _,ou as a,Hh as a0,pi as a1,zp as a2,Ip as a3,lc as a4,Ve as a5,Je as a6,Rp as a7,Np as a8,Bl as a9,Al as aa,Fp as ab,Sf as ac,Hp as ad,Pp as ae,Ap as af,Op as ag,ht as ah,ia as ai,Qh as aj,G as b,Do as c,Or as d,jn as e,gf as f,jp as g,_l as h,Ht as i,qe as j,Cr as k,bf as l,yf as m,k as n,Pr as o,ee as p,ft as q,Mp as r,bi as s,Hu as t,$h as u,mr as v,ja as w,vr as x,Hc as y,ut as z};