PageSourceSearch

https://www.mondans.com/_nuxt/entry.CJ8heZv4.js

js mondans.com collected 2026-10-09 05:02:00 UTC 942,165 bytes, 216 lines download raw bytes

vendor: 10,144 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./callback.CQYNALTI.js","./callback.BAYg6h30.css","./_...slug_.CYLSYaA4.js","./NotFound.BWMDUpAp.js","./TheBody.BW9YvX4n.js","./useIsElementOnView.Kjy8Ilj4.js","./useScript.CTv2apwq.js","./porta.bsBCnddN.js","./RedirectingToLogin.CRQxzpIl.js","./RedirectingToLogin.xrA_4SV8.css","./_...slug_.CbOCcL8-.js","./Player.0nMYU4JY.js","./_...plan_.Cvx5SNrh.js","./stripeAndTonos.pVTRH8wf.js","./_...KyWuTIbE.css","./BannerCarousel.tjmn5mad.js","./Banner.LUT87W92.js","./TonosComponent.CfBA2XdT.js","./index.Bw6xUgmI.js","./TonosComponent.DY69IwpG.css","./BannerStyle.BN1YOxVV.js","./button.BXxFpdbh.js","./index.DEwpggfi.js","./AdComponent.RwHerBiZ.js","./TheAdComponent.DKWUt0b_.js","./Button.DWf0VfKq.js","./Card.BUgPQLUG.js","./Chat.2W_1DReA.js","./index.CMfm2QNT.js","./Chat.BCZ7c8dv.css","./Carousel.CpyRlFmt.js","./Card.BxM94k4O.js","./secondsToTime.Dt8J9aIw.js","./TabData.7D9Dw4gm.js","./CardStyle.DzEcfIGb.js","./Carousel.NzRp9lbD.css","./Grid.VNb7KIKk.js","./Grid.DjhnvGzs.css","./Single.C4qOrrUm.js","./Slider.Ca-rDmL6.js","./FollowingMedia.BMgzKxa9.js","./FollowingMedia.BNugL-Ry.css","./Image.BZY9SiGz.js","./Image.C3NyeEV1.css","./NewestVideos.CQbtpSo_.js","./Gap.D7I5o_lH.js","./Loading.FA-5iZI8.js","./Loading.9S5Q7XRD.css","./RelatedGroup.B7Xm0rnI.js","./Search.MkaBNiG9.js","./NoSearchResult.BQcbcon8.js","./Cards.CGL5k6es.js","./Heros.778UwRaI.js","./showCase.iBl8RPD4.js","./showCase.Bb7PkHFc.css","./Tabs.Cymg3OtG.js","./Widget.BgeYo4Tk.js","./TonosProductList.CJ0UOM1G.js","./client-only.CSAQuQwn.js","./Player.DxRA59VF.js","./Player.L3Up0qLJ.css","./Video.BqqABydI.js","./WatchedVideos.DuKMs4v-.js","./WatchedVideos.BEPdL3C3.css","./ScriptAriaLoadingIndicator.DOchPnZI.js","./ScriptAriaLoadingIndicator.DPadAbBJ.css","./ScriptCarbonAds.DjpaiRST.js","./useScriptTriggerElement.wksc7WB4.js","./ScriptCrisp.C8QQ3Tii.js","./utils.Cxhoc88R.js","./ScriptGoogleAdsense.DVJttfiw.js","./ScriptGoogleMaps.CcfEcGQh.js","./ScriptIntercom.COh7mA_u.js","./ScriptLemonSqueezy.D0bwUoOp.js","./ScriptLoadingIndicator.Q_sthsEZ.js","./ScriptLoadingIndicator.R6VeGRzD.css","./ScriptStripePricingTable.CG48nVQK.js","./ScriptVimeoPlayer.DCEtfHMG.js","./ScriptVimeoPlayer.CwQsl6NG.css","./ScriptYouTubePlayer.Dsat1e-E.js"])))=>i.map(i=>d[i]);
2var cy=Object.defineProperty;var of=e=>{throw TypeError(e)};var uy=(e,t,r)=>t in e?cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Fr=(e,t,r)=>uy(e,typeof t!="symbol"?t+"":t,r),fy=(e,t,r)=>t.has(e)||of("Cannot "+r);var bi=(e,t,r)=>(fy(e,t,"read from private field"),r?r.call(e):t.get(e)),sf=(e,t,r)=>t.has(e)?of("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();/**
3* @vue/shared v3.5.14
4* (c) 2018-present Yuxi (Evan) You and Vue contributors
5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function dy(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const py={},hy=()=>{},pp=Object.assign,gy=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},my=Object.prototype.hasOwnProperty,Qs=(e,t)=>my.call(e,t),En=Array.isArray,Ai=e=>ka(e)==="[object Map]",yy=e=>ka(e)==="[object Set]",qi=e=>typeof e=="function",vy=e=>typeof e=="string",as=e=>typeof e=="symbol",ni=e=>e!==null&&typeof e=="object",by=Object.prototype.toString,ka=e=>by.call(e),_y=e=>ka(e).slice(8,-1),wy=e=>ka(e)==="[object Object]",Dc=e=>vy(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yn=(e,t)=>!Object.is(e,t),Sy=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})};/**
7* @vue/reactivity v3.5.14
8* (c) 2018-present Yuxi (Evan) You and Vue contributors
9* @license MIT
10**/let gr;class Lc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=gr,!t&&gr&&(this.index=(gr.scopes||(gr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=gr;try{return gr=this,t()}finally{gr=r}}}on(){++this._on===1&&(this.prevScope=gr,gr=this)}off(){this._on>0&&--this._on===0&&(gr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function xa(e){return new Lc(e)}function no(){return gr}function eo(e,t=!1){gr&&gr.cleanups.push(e)}let Ct;const pl=new WeakSet;class Vi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,gr&&gr.active&&gr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pl.has(this)&&(pl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gp(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,af(this),mp(this);const t=Ct,r=Xr;Ct=this,Xr=!0;try{return this.fn()}finally{yp(this),Ct=t,Xr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Bc(t);this.deps=this.depsTail=void 0,af(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hl(this)&&this.run()}get dirty(){return Hl(this)}}let hp=0,Pi,Ii;function gp(e,t=!1){if(e.flags|=8,t){e.next=Ii,Ii=e;return}e.next=Pi,Pi=e}function jc(){hp++}function Mc(){if(--hp>0)return;if(Ii){let t=Ii;for(Ii=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Pi;){let t=Pi;for(Pi=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function mp(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yp(e){let t,r=e.depsTail,n=r;for(;n;){const o=n.prevDep;n.version===-1?(n===r&&(r=o),Bc(n),ky(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=r}function Hl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(vp(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function vp(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wi)||(e.globalVersion=Wi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Hl(e))))return;e.flags|=2;const t=e.dep,r=Ct,n=Xr;Ct=e,Xr=!0;try{mp(e);const o=e.fn(e._value);(t.version===0||Yn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ct=r,Xr=n,yp(e),e.flags&=-3}}function Bc(e,t=!1){const{dep:r,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let i=r.computed.deps;i;i=i.nextDep)Bc(i,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function ky(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function xy(e,t){e.effect instanceof Vi&&(e=e.effect.fn);const r=new Vi(e);t&&pp(r,t);try{r.run()}catch(o){throw r.stop(),o}const n=r.run.bind(r);return n.effect=r,n}function Cy(e){e.effect.stop()}let Xr=!0;const bp=[];function Pn(){bp.push(Xr),Xr=!1}function In(){const e=bp.pop();Xr=e===void 0?!0:e}function af(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ct;Ct=void 0;try{t()}finally{Ct=r}}}let Wi=0,Ey=class{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Ca{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ct||!Xr||Ct===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ct)r=this.activeLink=new Ey(Ct,this),Ct.deps?(r.prevDep=Ct.depsTail,Ct.depsTail.nextDep=r,Ct.depsTail=r):Ct.deps=Ct.depsTail=r,_p(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Ct.depsTail,r.nextDep=void 0,Ct.depsTail.nextDep=r,Ct.depsTail=r,Ct.deps===r&&(Ct.deps=n)}return r}trigger(t){this.version++,Wi++,this.notify(t)}notify(t){jc();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Mc()}}}function _p(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)_p(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ea=new WeakMap,yo=Symbol(""),$l=Symbol(""),zi=Symbol("");function mr(e,t,r){if(Xr&&Ct){let n=ea.get(e);n||ea.set(e,n=new Map);let o=n.get(r);o||(n.set(r,o=new Ca),o.map=n,o.key=r),o.track()}}function wn(e,t,r,n,o,i){const s=ea.get(e);if(!s){Wi++;return}const a=d=>{d&&d.trigger()};if(jc(),t==="clear")s.forEach(a);else{const d=En(e),f=d&&Dc(r);if(d&&r==="length"){const u=Number(n);
vendor: 4,337 bytes, line 10
10s.forEach((p,g)=>{(g==="length"||g===zi||!as(g)&&g>=u)&&a(p)})}else switch((r!==void 0||s.has(void 0))&&a(s.get(r)),f&&a(s.get(zi)),t){case"add":d?f&&a(s.get("length")):(a(s.get(yo)),Ai(e)&&a(s.get($l)));break;case"delete":d||(a(s.get(yo)),Ai(e)&&a(s.get($l)));break;case"set":Ai(e)&&a(s.get(yo));break}}Mc()}function Ty(e,t){const r=ea.get(e);return r&&r.get(t)}function Oo(e){const t=vt(e);return t===e?t:(mr(t,"iterate",zi),Or(e)?t:t.map(lr))}function Ea(e){return mr(e=vt(e),"iterate",zi),e}const Fy={__proto__:null,[Symbol.iterator](){return hl(this,Symbol.iterator,lr)},concat(...e){return Oo(this).concat(...e.map(t=>En(t)?Oo(t):t))},entries(){return hl(this,"entries",e=>(e[1]=lr(e[1]),e))},every(e,t){return vn(this,"every",e,t,void 0,arguments)},filter(e,t){return vn(this,"filter",e,t,r=>r.map(lr),arguments)},find(e,t){return vn(this,"find",e,t,lr,arguments)},findIndex(e,t){return vn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vn(this,"findLast",e,t,lr,arguments)},findLastIndex(e,t){return vn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vn(this,"forEach",e,t,void 0,arguments)},includes(...e){return gl(this,"includes",e)},indexOf(...e){return gl(this,"indexOf",e)},join(e){return Oo(this).join(e)},lastIndexOf(...e){return gl(this,"lastIndexOf",e)},map(e,t){return vn(this,"map",e,t,void 0,arguments)},pop(){return _i(this,"pop")},push(...e){return _i(this,"push",e)},reduce(e,...t){return lf(this,"reduce",e,t)},reduceRight(e,...t){return lf(this,"reduceRight",e,t)},shift(){return _i(this,"shift")},some(e,t){return vn(this,"some",e,t,void 0,arguments)},splice(...e){return _i(this,"splice",e)},toReversed(){return Oo(this).toReversed()},toSorted(e){return Oo(this).toSorted(e)},toSpliced(...e){return Oo(this).toSpliced(...e)},unshift(...e){return _i(this,"unshift",e)},values(){return hl(this,"values",lr)}};function hl(e,t,r){const n=Ea(e),o=n[t]();return n!==e&&!Or(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=r(i.value)),i}),o}const Ay=Array.prototype;function vn(e,t,r,n,o,i){const s=Ea(e),a=s!==e&&!Or(e),d=s[t];if(d!==Ay[t]){const p=d.apply(e,i);return a?lr(p):p}let f=r;s!==e&&(a?f=function(p,g){return r.call(this,lr(p),g,e)}:r.length>2&&(f=function(p,g){return r.call(this,p,g,e)}));const u=d.call(s,f,n);return a&&o?o(u):u}function lf(e,t,r,n){const o=Ea(e);let i=r;return o!==e&&(Or(e)?r.length>3&&(i=function(s,a,d){return r.call(this,s,a,d,e)}):i=function(s,a,d){return r.call(this,s,lr(a),d,e)}),o[t](i,...n)}function gl(e,t,r){const n=vt(e);mr(n,"iterate",zi);const o=n[t](...r);return(o===-1||o===!1)&&Aa(r[0])?(r[0]=vt(r[0]),n[t](...r)):o}function _i(e,t,r=[]){Pn(),jc();const n=vt(e)[t].apply(e,r);return Mc(),In(),n}const Py=dy("__proto__,__v_isRef,__isVue"),wp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(as));function Iy(e){as(e)||(e=String(e));const t=vt(this);return mr(t,"has",e),t.hasOwnProperty(e)}class Sp{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?Fp:Tp:i?Ep:Cp).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=En(t);if(!o){let d;if(s&&(d=Fy[r]))return d;if(r==="hasOwnProperty")return Iy}const a=Reflect.get(t,r,St(t)?t:n);return(as(r)?wp.has(r):Py(r))||(o||mr(t,"get",r),i)?a:St(a)?s&&Dc(r)?a:a.value:ni(a)?o?Nc(a):nn(a):a}}class kp extends Sp{constructor(t=!1){super(!1,t)}set(t,r,n,o){let i=t[r];if(!this._isShallow){const d=dn(i);if(!Or(n)&&!dn(n)&&(i=vt(i),n=vt(n)),!En(t)&&St(i)&&!St(n))return d?!1:(i.value=n,!0)}const s=En(t)&&Dc(r)?Number(r)<t.length:Qs(t,r),a=Reflect.set(t,r,n,St(t)?t:o);return t===vt(o)&&(s?Yn(n,i)&&wn(t,"set",r,n):wn(t,"add",r,n)),a}deleteProperty(t,r){const n=Qs(t,r);t[r];const o=Reflect.deleteProperty(t,r);return o&&n&&wn(t,"delete",r,void 0),o}has(t,r){const n=Reflect.has(t,r);return(!as(r)||!wp.has(r))&&mr(t,"has",r),n}ownKeys(t){return mr(t,"iterate",En(t)?"length":yo),Reflect.ownKeys(t)}}class xp extends Sp{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Ry=new kp,Oy=new xp,Dy=new kp(!0),Ly=new xp(!0),Ul=e=>
vendor: 7,209 bytes, lines 10-13
10e,xs=e=>Reflect.getPrototypeOf(e);function jy(e,t,r){return function(...n){const o=this.__v_raw,i=vt(o),s=Ai(i),a=e==="entries"||e===Symbol.iterator&&s,d=e==="keys"&&s,f=o[e](...n),u=r?Ul:t?ta:lr;return!t&&mr(i,"iterate",d?$l:yo),{next(){const{value:p,done:g}=f.next();return g?{value:p,done:g}:{value:a?[u(p[0]),u(p[1])]:u(p),done:g}},[Symbol.iterator](){return this}}}}function Cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function My(e,t){const r={get(o){const i=this.__v_raw,s=vt(i),a=vt(o);e||(Yn(o,a)&&mr(s,"get",o),mr(s,"get",a));const{has:d}=xs(s),f=t?Ul:e?ta:lr;if(d.call(s,o))return f(i.get(o));if(d.call(s,a))return f(i.get(a));i!==s&&i.get(o)},get size(){const o=this.__v_raw;return!e&&mr(vt(o),"iterate",yo),Reflect.get(o,"size",o)},has(o){const i=this.__v_raw,s=vt(i),a=vt(o);return e||(Yn(o,a)&&mr(s,"has",o),mr(s,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const s=this,a=s.__v_raw,d=vt(a),f=t?Ul:e?ta:lr;return!e&&mr(d,"iterate",yo),a.forEach((u,p)=>o.call(i,f(u),f(p),s))}};return pp(r,e?{add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear")}:{add(o){!t&&!Or(o)&&!dn(o)&&(o=vt(o));const i=vt(this);return xs(i).has.call(i,o)||(i.add(o),wn(i,"add",o,o)),this},set(o,i){!t&&!Or(i)&&!dn(i)&&(i=vt(i));const s=vt(this),{has:a,get:d}=xs(s);let f=a.call(s,o);f||(o=vt(o),f=a.call(s,o));const u=d.call(s,o);return s.set(o,i),f?Yn(i,u)&&wn(s,"set",o,i):wn(s,"add",o,i),this},delete(o){const i=vt(this),{has:s,get:a}=xs(i);let d=s.call(i,o);d||(o=vt(o),d=s.call(i,o)),a&&a.call(i,o);const f=i.delete(o);return d&&wn(i,"delete",o,void 0),f},clear(){const o=vt(this),i=o.size!==0,s=o.clear();return i&&wn(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=jy(o,e,t)}),r}function Ta(e,t){const r=My(e,t);return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Qs(r,o)&&o in n?r:n,o,i)}const By={get:Ta(!1,!1)},Ny={get:Ta(!1,!0)},Hy={get:Ta(!0,!1)},$y={get:Ta(!0,!0)},Cp=new WeakMap,Ep=new WeakMap,Tp=new WeakMap,Fp=new WeakMap;function Uy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qy(e){return e.__v_skip||!Object.isExtensible(e)?0:Uy(_y(e))}function nn(e){return dn(e)?e:Fa(e,!1,Ry,By,Cp)}function Cn(e){return Fa(e,!1,Dy,Ny,Ep)}function Nc(e){return Fa(e,!0,Oy,Hy,Tp)}function Vy(e){return Fa(e,!0,Ly,$y,Fp)}function Fa(e,t,r,n,o){if(!ni(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=qy(e);if(i===0)return e;const s=o.get(e);if(s)return s;const a=new Proxy(e,i===2?n:r);return o.set(e,a),a}function Qr(e){return dn(e)?Qr(e.__v_raw):!!(e&&e.__v_isReactive)}function dn(e){return!!(e&&e.__v_isReadonly)}function Or(e){return!!(e&&e.__v_isShallow)}function Aa(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Dt(e){return!Qs(e,"__v_skip")&&Object.isExtensible(e)&&Sy(e,"__v_skip",!0),e}const lr=e=>ni(e)?nn(e):e,ta=e=>ni(e)?Nc(e):e;function St(e){return e?e.__v_isRef===!0:!1}function ue(e){return Ap(e,!1)}function Tn(e){return Ap(e,!0)}function Ap(e,t){return St(e)?e:new Wy(e,t)}class Wy{constructor(t,r){this.dep=new Ca,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:lr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Or(t)||dn(t);t=n?t:vt(t),Yn(t,r)&&(this._rawValue=t,this._value=n?t:lr(t),this.dep.trigger())}}function zy(e){e.dep&&e.dep.trigger()}function S(e){return St(e)?e.value:e}function Sn(e){return qi(e)?e():S(e)}const Ky={get:(e,t,r)=>t==="__v_raw"?e:S(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return St(o)&&!St(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function Hc(e){return Qr(e)?e:new Proxy(e,Ky)}class Jy{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Ca,{get:n,set:o}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function $c(e){return new Jy(e)}function it(e){const t=En(e)?new Array(e.length):{};for(const r in e)t[r]=Pp(e,r);return t}class Gy{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ty(vt(this._object),this._key)}}class Yy{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ls(e,t,r){return St(e)?e:qi(e)?new Yy(e):ni(e)&&arguments.length>1?Pp(e,t,r):ue(e)}function Pp(e,t,r){const n=e[t];return St(n)?n:new Gy(e,t,r)}class Zy{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Ca(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ct!==this)return gp(this,!0),!0}get value(){const t=this.dep.track();return vp(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Xy(e,t,r=!1){let n,o;return qi(e)?n=e:(n=e.get,o=e.set),new Zy(n,o,r)}const Qy={GET:"get",HAS:"has",ITERATE:"iterate"},ev={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Es={},ra=new WeakMap;let Un;function tv(){return Un}function Ip(e,t=!1,r=Un){if(r){let n=ra.get(r);n||ra.set(r,n=[]),n.push(e)}}function rv(e,t,r=py){const{immediate:n,deep:o,once:i,scheduler:s,augmentJob:a,call:d}=r,f=T=>o?T:Or(T)||o===!1||o===0?kn(T,1):kn(T);let u,p,g,y,v=!1,k=!1;if(St(e)?(p=()=>e.value,v=Or(e)):Qr(e)?(p=()=>f(e),v=!0):En(e)?(k=!0,v=e.some(T=>Qr(T)||Or(T)),p=()=>e.map(T=>{if(St(T))return T.value;if(Qr(T))return f(T);if(qi(T))return d?d(T,2):T()})):qi(e)?t?p=d?()=>d(e,2):e:p=()=>{if(g){Pn();try{g()}finally{In()}}const T=Un;Un=u;try{return d?d(e,3,[y]):e(y)}finally{Un=T}}:p=hy,t&&o){const T=p,F=o===!0?1/0:o;p=()=>kn(T(),F)}const C=no(),E=()=>{u.stop(),C&&C.active&&gy(C.effects,u)};if(i&&t){const T=t;t=(...F)=>{T(...F),E()}}let w=k?new Array(e.length).fill(Es):Es;const _=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const F=u.run();if(o||v||(k?F.some((I,P)=>Yn(I,w[P])):Yn(F,w))){g&&g();const I=Un;Un=u;try{const P=[F,w===Es?void 0:k&&w[0]===Es?[]:w,y];d?d(t,3,P):t(...P),w=F}finally{Un=I}}}else u.run()};return a&&a(_),u=new Vi(p),u.scheduler=s?()=>s(_,!1):_,y=T=>Ip(T,!1,u),g=u.onStop=()=>{const T=ra.get(u);if(T){if(d)d(T,4);else for(const F of T)F();ra.delete(u)}},t?n?_(!0):w=u.run():s?s(_.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function kn(e,t=1/0,r){if(t<=0||!ni(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,St(e))kn(e.value,t,r);else if(En(e))for(let n=0;n<e.length;n++)kn(e[n],t,r);else if(yy(e)||Ai(e))e.forEach(n=>{kn(n,t,r)});else if(wy(e)){for(const n in e)kn(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&kn(e[n],t,r)}return e}/**
11* @vue/shared v3.5.14
12* (c) 2018-present Yuxi (Evan) You and Vue contributors
13* @license MIT
14**//*! #__NO_SIDE_EFFECTS__ */function Rp(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const bt={},Uo=[],fn=()=>{},nv=()=>!1,Pa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Op=e=>e.startsWith("onUpdate:"),nr=Object.assign,Dp=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},ov=Object.prototype.hasOwnProperty,Et=(e,t)=>ov.call(e,t),dt=Array.isArray,iv=e=>Ia(e)==="[object Map]",sv=e=>Ia(e)==="[object Set]",av=e=>Ia(e)==="[object RegExp]",ft=e=>typeof e=="function",Wt=e=>typeof e=="string",Uc=e=>typeof e=="symbol",tr=e=>e!==null&&typeof e=="object",qc=e=>(tr(e)||ft(e))&&ft(e.then)&&ft(e.catch),Lp=Object.prototype.toString,Ia=e=>Lp.call(e),lv=e=>Ia(e)==="[object Object]",qo=Rp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ra=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},cv=/-(\w)/g,Dr=Ra(e=>e.replace(cv,(t,r)=>r?r.toUpperCase():"")),uv=/\B([A-Z])/g,oi=Ra(e=>e.replace(uv,"-$1").toLowerCase()),Oa=Ra(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ri=Ra(e=>e?`on${Oa(e)}`:""),go=(e,t)=>!Object.is(e,t),Oi=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},fv=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},dv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pv=e=>{const t=Wt(e)?Number(e):NaN;return isNaN(t)?e:t};let cf;const Da=()=>cf||(cf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),hv="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",gv=Rp(hv);function se(e){if(dt(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=Wt(n)?bv(n):se(n);if(o)for(const i in o)t[i]=o[i]}return t}else if(Wt(e)||tr(e))return e}const mv=/;(?![^(]*\))/g,yv=/:([^]+)/,vv=/\/\*[^]*?\*\//g;function bv(e){const t={};return e.replace(vv,"").split(mv).forEach(r=>{if(r){const n=r.split(yv);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Be(e){let t="";if(Wt(e))t=e;else if(dt(e))for(let r=0;r<e.length;r++){const n=Be(e[r]);n&&(t+=n+" ")}else if(tr(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function La(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Wt(t)&&(e.class=Be(t)),r&&(e.style=se(r)),e}const jp=e=>!!(e&&e.__v_isRef===!0),ge=e=>Wt(e)?e:e==null?"":dt(e)||tr(e)&&(e.toString===Lp||!ft(e.toString))?jp(e)?ge(e.value):JSON.stringify(e,Mp,2):String(e),Mp=(e,t)=>jp(t)?Mp(e,t.value):iv(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o],i)=>(r[ml(n,i)+" =>"]=o,r),{})}:sv(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>ml(r))}:Uc(t)?ml(t):tr(t)&&!dt(t)&&!lv(t)?String(t):t,ml=(e,t="")=>{var r;return Uc(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
15* @vue/runtime-core v3.5.14
16* (c) 2018-present Yuxi (Evan) You and Vue contributors
17* @license MIT
18**/const Bp=[];function _v(e){Bp.push(e)}function wv(){Bp.pop()}function Sv(e,t){}const kv={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},xv={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ii(e,t,r,n){try{return n?e(...n):e()}catch(o){Fo(o,t,r)}}function Vr(e,t,r,n){if(ft(e)){const o=ii(e,t,r,n);return o&&qc(o)&&o.catch(i=>{Fo(i,t,r)}),o}if(dt(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Vr(e[i],t,r,n));return o}}function Fo(e,t,r,n=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||bt;if(t){let a=t.parent;const d=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const u=a.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,d,f)===!1)return}a=a.parent}if(i){Pn(),ii(i,null,10,[e,d,f]),In();return}}Cv(e,r,o,n,s)}function Cv(e,t,r,n=!0,o=!1){if(o)throw e;console.error(e)}const xr=[];let cn=-1;const Vo=[];let qn=null,jo=0;const Np=Promise.resolve();let na=null;function or(e){const t=na||Np;return e?t.then(this?e.bind(this):e):t}function Ev(e){let t=cn+1,r=xr.length;for(;t<r;){const n=t+r>>>1,o=xr[n],i=Ji(o);i<e||i===e&&o.flags&2?t=n+1:r=n}return t}function Vc(e){if(!(e.flags&1)){const t=Ji(e),r=xr[xr.length-1];!r||!(e.flags&2)&&t>=Ji(r)?xr.push(e):xr.splice(Ev(t),0,e),e.flags|=1,Hp()}}function Hp(){na||(na=Np.then($p))}function Ki(e){dt(e)?Vo.push(...e):qn&&e.id===-1?qn.splice(jo+1,0,e):e.flags&1||(Vo.push(e),e.flags|=1),Hp()}function uf(e,t,r=cn+1){for(;r<xr.length;r++){const n=xr[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;xr.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function oa(e){if(Vo.length){const t=[...new Set(Vo)].sort((r,n)=>Ji(r)-Ji(n));if(Vo.length=0,qn){qn.push(...t);return}for(qn=t,jo=0;jo<qn.length;jo++){const r=qn[jo];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}qn=null,jo=0}}const Ji=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $p(e){try{for(cn=0;cn<xr.length;cn++){const t=xr[cn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ii(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;cn<xr.length;cn++){const t=xr[cn];t&&(t.flags&=-2)}cn=-1,xr.length=0,oa(),na=null,(xr.length||Vo.length)&&$p()}}let Mo,Ts=[];function Up(e,t){var r,n;Mo=e,Mo?(Mo.enabled=!0,Ts.forEach(({event:o,args:i})=>Mo.emit(o,...i)),Ts=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Up(i,t)}),setTimeout(()=>{Mo||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ts=[])},3e3)):Ts=[]}let er=null,ja=null;function Gi(e){const t=er;return er=e,ja=e&&e.type.__scopeId||null,t}function Tv(e){ja=e}function Fv(){ja=null}const Av=e=>Te;function Te(e,t=er,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&Yl(-1);const i=Gi(t);let s;try{s=e(...o)}finally{Gi(i),n._d&&Yl(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function wt(e,t){if(er===null)return e;const r=ds(er),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,s,a,d=bt]=t[o];i&&(ft(i)&&(i={mounted:i,updated:i}),i.deep&&kn(s),n.push({dir:i,instance:r,value:s,oldValue:void 0,arg:a,modifiers:d}))}return e}function un(e,t,r,n){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let d=a.dir[n];d&&(Pn(),Vr(d,r,8,[e.el,a,e,t]),In())}}const qp=Symbol("_vte"),Vp=e=>e.__isTeleport,Di=e=>e&&(e.disabled||e.disabled===""),ff=e=>e&&(e.defer||e.defer===""),df=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ql=(e,t)=>
vendor: 45,839 bytes, lines 18-19
18{const r=e&&e.to;return Wt(r)?t?t(r):null:r},Wp={name:"Teleport",__isTeleport:!0,process(e,t,r,n,o,i,s,a,d,f){const{mc:u,pc:p,pbc:g,o:{insert:y,querySelector:v,createText:k,createComment:C}}=f,E=Di(t.props);let{shapeFlag:w,children:_,dynamicChildren:T}=t;if(e==null){const F=t.el=k(""),I=t.anchor=k("");y(F,r,n),y(I,r,n);const P=($,ee)=>{w&16&&(o&&o.isCE&&(o.ce._teleportTarget=$),u(_,$,ee,o,i,s,a,d))},H=()=>{const $=t.target=ql(t.props,v),ee=zp($,t,k,y);$&&(s!=="svg"&&df($)?s="svg":s!=="mathml"&&pf($)&&(s="mathml"),E||(P($,ee),qs(t,!1)))};E&&(P(r,I),qs(t,!0)),ff(t.props)?Zt(()=>{H(),t.el.__isMounted=!0},i):H()}else{if(ff(t.props)&&!e.el.__isMounted){Zt(()=>{Wp.process(e,t,r,n,o,i,s,a,d,f),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,I=t.target=e.target,P=t.targetAnchor=e.targetAnchor,H=Di(e.props),$=H?r:I,ee=H?F:P;if(s==="svg"||df(I)?s="svg":(s==="mathml"||pf(I))&&(s="mathml"),T?(g(e.dynamicChildren,T,$,o,i,s,a),ou(e,t,!0)):d||p(e,t,$,ee,o,i,s,a,!1),E)H?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fs(t,r,F,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=ql(t.props,v);j&&Fs(t,j,null,f,0)}else H&&Fs(t,I,P,f,1);qs(t,E)}},remove(e,t,r,{um:n,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:d,targetStart:f,targetAnchor:u,target:p,props:g}=e;if(p&&(o(f),o(u)),i&&o(d),s&16){const y=i||!Di(g);for(let v=0;v<a.length;v++){const k=a[v];n(k,t,r,y,!!k.dynamicChildren)}}},move:Fs,hydrate:Pv};function Fs(e,t,r,{o:{insert:n},m:o},i=2){i===0&&n(e.targetAnchor,t,r);const{el:s,anchor:a,shapeFlag:d,children:f,props:u}=e,p=i===2;if(p&&n(s,t,r),(!p||Di(u))&&d&16)for(let g=0;g<f.length;g++)o(f[g],t,r,2);p&&n(a,t,r)}function Pv(e,t,r,n,o,i,{o:{nextSibling:s,parentNode:a,querySelector:d,insert:f,createText:u}},p){const g=t.target=ql(t.props,d);if(g){const y=Di(t.props),v=g._lpa||g.firstChild;if(t.shapeFlag&16)if(y)t.anchor=p(s(e),t,a(e),r,n,o,i),t.targetStart=v,t.targetAnchor=v&&s(v);else{t.anchor=s(e);let k=v;for(;k;){if(k&&k.nodeType===8){if(k.data==="teleport start anchor")t.targetStart=k;else if(k.data==="teleport anchor"){t.targetAnchor=k,g._lpa=t.targetAnchor&&s(t.targetAnchor);break}}k=s(k)}t.targetAnchor||zp(g,t,u,f),p(v&&s(v),t,g,r,n,o,i)}qs(t,y)}return t.anchor&&s(t.anchor)}const cs=Wp;function qs(e,t){const r=e.ctx;if(r&&r.ut){let n,o;for(t?(n=e.el,o=e.anchor):(n=e.targetStart,o=e.targetAnchor);n&&n!==o;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function zp(e,t,r,n){const o=t.targetStart=r(""),i=t.targetAnchor=r("");return o[qp]=i,e&&(n(o,e),n(i,e)),i}const Vn=Symbol("_leaveCb"),As=Symbol("_enterCb");function Wc(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return kt(()=>{e.isMounted=!0}),oo(()=>{e.isUnmounting=!0}),e}const Hr=[Function,Array],zc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hr,onEnter:Hr,onAfterEnter:Hr,onEnterCancelled:Hr,onBeforeLeave:Hr,onLeave:Hr,onAfterLeave:Hr,onLeaveCancelled:Hr,onBeforeAppear:Hr,onAppear:Hr,onAfterAppear:Hr,onAppearCancelled:Hr},Kp=e=>{const t=e.subTree;return t.component?Kp(t.component):t},Iv={name:"BaseTransition",props:zc,setup(e,{slots:t}){const r=Cr(),n=Wc();return()=>{const o=t.default&&Ma(t.default(),!0);if(!o||!o.length)return;const i=Jp(o),s=vt(e),{mode:a}=s;if(n.isLeaving)return yl(i);const d=hf(i);if(!d)return yl(i);let f=zo(d,s,n,r,p=>f=p);d.type!==Ht&&Rn(d,f);let u=r.subTree&&hf(r.subTree);if(u&&u.type!==Ht&&!Yr(d,u)&&Kp(r).type!==Ht){let p=zo(u,s,n,r);if(Rn(u,p),a==="out-in"&&d.type!==Ht)return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete p.afterLeave,u=void 0},yl(i);a==="in-out"&&d.type!==Ht?p.delayLeave=(g,y,v)=>{const k=Yp(n,u);k[String(u.key)]=u,g[Vn]=()=>{y(),g[Vn]=void 0,delete f.delayedLeave,u=void 0},f.delayedLeave=()=>{v(),delete f.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Jp(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Ht){t=r;break}}return t}const Gp=Iv;function Yp(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function zo(e,t,r,n,o){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:d,onEnter:f,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:g,onLeave:y,onAfterLeave:v,onLeaveCancelled:k,onBeforeAppear:C,onAppear:E,onAfterAppear:w,onAppearCancelled:_}=t,T=String(e.key),F=Yp(r,e),I=($,ee)=>{$&&Vr($,n,9,ee)},P=($,ee)=>{const j=ee[1];I($,ee),dt($)?$.every(W=>W.length<=1)&&j():$.length<=1&&j()},H={mode:s,persisted:a,beforeEnter($){let ee=d;if(!r.isMounted)if(i)ee=C||d;else return;$[Vn]&&$[Vn](!0);const j=F[T];j&&Yr(e,j)&&j.el[Vn]&&j.el[Vn](),I(ee,[$])},enter($){let ee=f,j=u,W=p;if(!r.isMounted)if(i)ee=E||f,j=w||u,W=_||p;else return;let ie=!1;const ce=$[As]=pe=>{ie||(ie=!0,pe?I(W,[$]):I(j,[$]),H.delayedLeave&&H.delayedLeave(),$[As]=void 0)};ee?P(ee,[$,ce]):ce()},leave($,ee){const j=String(e.key);if($[As]&&$[As](!0),r.isUnmounting)return ee();I(g,[$]);let W=!1;const ie=$[Vn]=ce=>{W||(W=!0,ee(),ce?I(k,[$]):I(v,[$]),$[Vn]=void 0,F[j]===e&&delete F[j])};F[j]=e,y?P(y,[$,ie]):ie()},clone($){const ee=zo($,t,r,n,o);return o&&o(ee),ee}};return H}function yl(e){if(us(e))return e=pn(e),e.children=null,e}function hf(e){if(!us(e))return Vp(e.type)&&e.children?Jp(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&ft(r.default))return r.default()}}function Rn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Rn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ma(e,t=!1,r){let n=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=r==null?s.key:String(r)+String(s.key!=null?s.key:i);s.type===qe?(s.patchFlag&128&&o++,n=n.concat(Ma(s.children,t,a))):(t||s.type!==Ht)&&n.push(a!=null?pn(s,{key:a}):s)}if(o>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function ur(e,t){return ft(e)?nr({name:e.name},t,{setup:e}):e}function Rv(){const e=Cr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Kc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ov(e){const t=Cr(),r=Tn(null);if(t){const o=t.refs===bt?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>r.value,set:i=>r.value=i})}return r}function Yi(e,t,r,n,o=!1){if(dt(e)){e.forEach((v,k)=>Yi(v,t&&(dt(t)?t[k]:t),r,n,o));return}if(Zn(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Yi(e,t,r,n.component.subTree);return}const i=n.shapeFlag&4?ds(n.component):n.el,s=o?null:i,{i:a,r:d}=e,f=t&&t.r,u=a.refs===bt?a.refs={}:a.refs,p=a.setupState,g=vt(p),y=p===bt?()=>!1:v=>Et(g,v);if(f!=null&&f!==d&&(Wt(f)?(u[f]=null,y(f)&&(p[f]=null)):St(f)&&(f.value=null)),ft(d))ii(d,a,12,[s,u]);else{const v=Wt(d),k=St(d);if(v||k){const C=()=>{if(e.f){const E=v?y(d)?p[d]:u[d]:d.value;o?dt(E)&&Dp(E,i):dt(E)?E.includes(i)||E.push(i):v?(u[d]=[i],y(d)&&(p[d]=u[d])):(d.value=[i],e.k&&(u[e.k]=d.value))}else v?(u[d]=s,y(d)&&(p[d]=s)):k&&(d.value=s,e.k&&(u[e.k]=s))};s?(C.id=-1,Zt(C,r)):C()}}}let gf=!1;const Do=()=>{gf||(console.error("Hydration completed but contains mismatches."),gf=!0)},Dv=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Lv=e=>e.namespaceURI.includes("MathML"),Ps=e=>{if(e.nodeType===1){if(Dv(e))return"svg";if(Lv(e))return"mathml"}},No=e=>e.nodeType===8;function jv(e){const{mt:t,p:r,o:{patchProp:n,createText:o,nextSibling:i,parentNode:s,remove:a,insert:d,createComment:f}}=e,u=(_,T)=>{if(!T.hasChildNodes()){r(null,_,T),oa(),T._vnode=_;return}p(T.firstChild,_,null,null,null),oa(),T._vnode=_},p=(_,T,F,I,P,H=!1)=>{H=H||!!T.dynamicChildren;const $=No(_)&&_.data==="[",ee=()=>k(_,T,F,I,P,$),{type:j,ref:W,shapeFlag:ie,patchFlag:ce}=T;let pe=_.nodeType;T.el=_,ce===-2&&(H=!1,T.dynamicChildren=null);let ae=null;switch(j){case Qn:pe!==3?T.children===""?(d(T.el=o(""),s(_),_),ae=_):ae=ee():(_.data!==T.children&&(Do(),_.data=T.children),ae=i(_));break;case Ht:w(_)?(ae=i(_),E(T.el=_.content.firstChild,_,F)):pe!==8||$?ae=ee():ae=i(_);break;case bo:if($&&(_=i(_),pe=_.nodeType),pe===1||pe===3){ae=_;const me=!T.children.length;for(let ve=0;ve<T.staticCount;ve++)me&&(T.children+=ae.nodeType===1?ae.outerHTML:ae.data),ve===T.staticCount-1&&(T.anchor=ae),ae=i(ae);return $?i(ae):ae}else ee();break;case qe:$?ae=v(_,T,F,I,P,H):ae=ee();break;default:if(ie&1)(pe!==1||T.type.toLowerCase()!==_.tagName.toLowerCase())&&!w(_)?ae=ee():ae=g(_,T,F,I,P,H);else if(ie&6){T.slotScopeIds=P;const me=s(_);if($?ae=C(_):No(_)&&_.data==="teleport start"?ae=C(_,_.data,"teleport end"):ae=i(_),t(T,me,null,F,I,Ps(me),H),Zn(T)&&!T.type.__asyncResolved){let ve;$?(ve=Se(qe),ve.anchor=ae?ae.previousSibling:me.lastChild):ve=_.nodeType===3?tt(""):Se("div"),ve.el=_,T.component.subTree=ve}}else ie&64?pe!==8?ae=ee():ae=T.type.hydrate(_,T,F,I,P,H,e,y):ie&128&&(ae=T.type.hydrate(_,T,F,I,Ps(s(_)),P,H,e,p))}return W!=null&&Yi(W,null,I,T),ae},g=(_,T,F,I,P,H)=>{H=H||!!T.dynamicChildren;const{type:$,props:ee,patchFlag:j,shapeFlag:W,dirs:ie,transition:ce}=T,pe=$==="input"||$==="option";if(pe||j!==-1){ie&&un(T,null,F,"created");let ae=!1;if(w(_)){ae=bh(null,ce)&&F&&F.vnode.props&&F.vnode.props.appear;const ve=_.content.firstChild;ae&&ce.beforeEnter(ve),E(ve,_,F),T.el=_=ve}if(W&16&&!(ee&&(ee.innerHTML||ee.textContent))){let ve=y(_.firstChild,T,_,F,I,P,H);for(;ve;){Is(_,1)||Do();const Pe=ve;ve=ve.nextSibling,a(Pe)}}else if(W&8){let ve=T.children;ve[0]===`
19`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(ve=ve.slice(1)),_.textContent!==ve&&(Is(_,0)||Do(),_.textContent=T.children)}if(ee){if(pe||!H||j&48){const ve=_.tagName.includes("-");for(const Pe in ee)(pe&&(Pe.endsWith("value")||Pe==="indeterminate")||Pa(Pe)&&!qo(Pe)||Pe[0]==="."||ve)&&n(_,Pe,null,ee[Pe],void 0,F)}else if(ee.onClick)n(_,"onClick",null,ee.onClick,void 0,F);else if(j&4&&Qr(ee.style))for(const ve in ee.style)ee.style[ve]}let me;(me=ee&&ee.onVnodeBeforeMount)&&Ar(me,F,T),ie&&un(T,null,F,"beforeMount"),((me=ee&&ee.onVnodeMounted)||ie||ae)&&Ah(()=>{me&&Ar(me,F,T),ae&&ce.enter(_),ie&&un(T,null,F,"mounted")},I)}return _.nextSibling},y=(_,T,F,I,P,H,$)=>{$=$||!!T.dynamicChildren;const ee=T.children,j=ee.length;for(let W=0;W<j;W++){const ie=$?ee[W]:ee[W]=Pr(ee[W]),ce=ie.type===Qn;_?(ce&&!$&&W+1<j&&Pr(ee[W+1]).type===Qn&&(d(o(_.data.slice(ie.children.length)),F,i(_)),_.data=ie.children),_=p(_,ie,I,P,H,$)):ce&&!ie.children?d(ie.el=o(""),F):(Is(F,1)||Do(),r(null,ie,F,null,I,P,Ps(F),H))}return _},v=(_,T,F,I,P,H)=>{const{slotScopeIds:$}=T;$&&(P=P?P.concat($):$);const ee=s(_),j=y(i(_),T,ee,F,I,P,H);return j&&No(j)&&j.data==="]"?i(T.anchor=j):(Do(),d(T.anchor=f("]"),ee,j),j)},k=(_,T,F,I,P,H)=>{if(Is(_.parentElement,1)||Do(),T.el=null,H){const j=C(_);for(;;){const W=i(_);if(W&&W!==j)a(W);else break}}const $=i(_),ee=s(_);return a(_),r(null,T,ee,$,F,I,Ps(ee),P),F&&(F.vnode.el=T.el,qa(F,T.el)),$},C=(_,T="[",F="]")=>{let I=0;for(;_;)if(_=i(_),_&&No(_)&&(_.data===T&&I++,_.data===F)){if(I===0)return i(_);I--}return _},E=(_,T,F)=>{const I=T.parentNode;I&&I.replaceChild(_,T);let P=F;for(;P;)P.vnode.el===T&&(P.vnode.el=P.subTree.el=_),P=P.parent},w=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[u,p]}const mf="data-allow-mismatch",Mv={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Is(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(mf);)e=e.parentElement;const r=e&&e.getAttribute(mf);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(Mv[t])}}const Bv=Da().requestIdleCallback||(e=>setTimeout(e,1)),Nv=Da().cancelIdleCallback||(e=>clearTimeout(e)),Hv=(e=1e4)=>t=>{const r=Bv(t,{timeout:e});return()=>Nv(r)};function $v(e){const{top:t,left:r,bottom:n,right:o}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:s}=window;return(t>0&&t<i||n>0&&n<i)&&(r>0&&r<s||o>0&&o<s)}const Uv=e=>(t,r)=>{const n=new IntersectionObserver(o=>{for(const i of o)if(i.isIntersecting){n.disconnect(),t();break}},e);return r(o=>{if(o instanceof Element){if($v(o))return t(),n.disconnect(),!1;n.observe(o)}}),()=>n.disconnect()},qv=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},Vv=(e=[])=>(t,r)=>{Wt(e)&&(e=[e]);let n=!1;const o=s=>{n||(n=!0,i(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},i=()=>{r(s=>{for(const a of e)s.removeEventListener(a,o)})};return r(s=>{for(const a of e)s.addEventListener(a,o,{once:!0})}),i};function Wv(e,t){if(No(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(No(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const Zn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Ve(e){ft(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:o=200,hydrate:i,timeout:s,suspensible:a=!0,onError:d}=e;let f=null,u,p=0;const g=()=>(p++,f=null,y()),y=()=>{let v;return f||(v=f=t().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),d)return new Promise((C,E)=>{d(k,()=>C(g()),()=>E(k),p+1)});throw k}).then(k=>v!==f&&f?f:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),u=k,k)))};return ur({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(v,k,C){const E=i?()=>{const w=i(C,_=>Wv(v,_));w&&(k.bum||(k.bum=[])).push(w)}:C;u?E():y().then(()=>!k.isUnmounted&&E())},get __asyncResolved(){return u},setup(){const v=Qt;if(Kc(v),u)return()=>vl(u,v);const k=_=>{f=null,Fo(_,v,13,!n)};if(a&&v.suspense||Ko)return y().then(_=>()=>vl(_,v)).catch(_=>(k(_),()=>n?Se(n,{error:_}):null));const C=ue(!1),E=ue(),w=ue(!!o);return o&&setTimeout(()=>{w.value=!1},o),s!=null&&setTimeout(()=>{if(!C.value&&!E.value){const _=new Error(`Async component timed out after ${s}ms.`);k(_),E.value=_}},s),y().then(()=>{C.value=!0,v.parent&&us(v.parent.vnode)&&v.parent.update()}).catch(_=>{k(_),E.value=_}),()=>{if(C.value&&u)return vl(u,v);if(E.value&&n)return Se(n,{error:E.value});if(r&&!w.value)return Se(r)}}})}function vl(e,t){const{ref:r,props:n,children:o,ce:i}=t.vnode,s=Se(e,n,o);return s.ref=r,s.ce=i,delete t.vnode.ce,s}const us=e=>e.type.__isKeepAlive,zv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Cr(),n=r.ctx;if(!n.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,i=new Set;let s=null;const a=r.suspense,{renderer:{p:d,m:f,um:u,o:{createElement:p}}}=n,g=p("div");n.activate=(w,_,T,F,I)=>{const P=w.component;f(w,_,T,0,a),d(P.vnode,w,_,T,P,a,F,w.slotScopeIds,I),Zt(()=>{P.isDeactivated=!1,P.a&&Oi(P.a);const H=w.props&&w.props.onVnodeMounted;H&&Ar(H,P.parent,w)},a)},n.deactivate=w=>{const _=w.component;sa(_.m),sa(_.a),f(w,g,null,1,a),Zt(()=>{_.da&&Oi(_.da);const T=w.props&&w.props.onVnodeUnmounted;T&&Ar(T,_.parent,w),_.isDeactivated=!0},a)};function y(w){bl(w),u(w,r,a,!0)}function v(w){o.forEach((_,T)=>{const F=tc(_.type);F&&!w(F)&&k(T)})}function k(w){const _=o.get(w);_&&(!s||!Yr(_,s))?y(_):s&&bl(s),o.delete(w),i.delete(w)}cr(()=>[e.include,e.exclude],([w,_])=>{w&&v(T=>Ti(w,T)),_&&v(T=>!Ti(_,T))},{flush:"post",deep:!0});let C=null;const E=()=>{C!=null&&(aa(r.subTree.type)?Zt(()=>{o.set(C,Rs(r.subTree))},r.subTree.suspense):o.set(C,Rs(r.subTree)))};return kt(E),$a(E),oo(()=>{o.forEach(w=>{const{subTree:_,suspense:T}=r,F=Rs(_);if(w.type===F.type&&w.key===F.key){bl(F);const I=F.component.da;I&&Zt(I,T);return}y(w)})}),()=>{if(C=null,!t.default)return s=null;const w=t.default(),_=w[0];if(w.length>1)return s=null,w;if(!Dn(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return s=null,_;let T=Rs(_);if(T.type===Ht)return s=null,T;const F=T.type,I=tc(Zn(T)?T.type.__asyncResolved||{}:F),{include:P,exclude:H,max:$}=e;if(P&&(!I||!Ti(P,I))||H&&I&&Ti(H,I))return T.shapeFlag&=-257,s=T,_;const ee=T.key==null?F:T.key,j=o.get(ee);return T.el&&(T=pn(T),_.shapeFlag&128&&(_.ssContent=T)),C=ee,j?(T.el=j.el,T.component=j.component,T.transition&&Rn(T,T.transition),T.shapeFlag|=512,i.delete(ee),i.add(ee)):(i.add(ee),$&&i.size>parseInt($,10)&&k(i.values().next().value)),T.shapeFlag|=256,s=T,aa(_.type)?_:T}}},Zp=zv;function Ti(e,t){return dt(e)?e.some(r=>Ti(r,t)):Wt(e)?e.split(",").includes(t):av(e)?(e.lastIndex=0,e.test(t)):!1}function Ba(e,t){Xp(e,"a",t)}function Na(e,t){Xp(e,"da",t)}function Xp(e,t,r=Qt){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ha(t,n,r),r){let o=r.parent;for(;o&&o.parent;)us(o.parent.vnode)&&Kv(n,t,r,o),o=o.parent}}function Kv(e,t,r,n){const o=Ha(t,e,n,!0);fr(()=>{Dp(n[t],o)},r)}function bl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Rs(e){return e.shapeFlag&128?e.ssContent:e}function Ha(e,t,r=Qt,n=!1){if(r){const o=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...s)=>{Pn();const a=ko(r),d=Vr(t,r,e,s);return a(),In(),d});return n?o.unshift(i):o.push(i),i}}const Mn=e=>(t,r=Qt)=>{(!Ko||e==="sp")&&Ha(e,(...n)=>t(...n),r)},Jc=Mn("bm"),kt=Mn("m"),Gc=Mn("bu"),$a=Mn("u"),oo=Mn("bum"),fr=Mn("um"),Qp=Mn("sp"),eh=Mn("rtg"),th=Mn("rtc");function Yc(e,t=Qt){Ha("ec",e,t)}const Zc="components",Jv="directives";function On(e,t){return Xc(Zc,e,!0,t)||e}const rh=Symbol.for("v-ndc");function Lt(e){return Wt(e)?Xc(Zc,e,!1)||e:e||rh}function Gv(e){return Xc(Jv,e)}function Xc(e,t,r=!0,n=!1){const o=er||Qt;if(o){const i=o.type;if(e===Zc){const a=tc(i,!1);if(a&&(a===t||a===Dr(t)||a===Oa(Dr(t))))return i}const s=yf(o[e]||i[e],t)||yf(o.appContext[e],t);return!s&&n?i:s}}function yf(e,t){return e&&(e[t]||e[Dr(t)]||e[Oa(Dr(t))])}function pt(e,t,r,n){let o;const i=r&&r[n],s=dt(e);if(s||Wt(e)){const a=s&&Qr(e);let d=!1,f=!1;a&&(d=!Or(e),f=dn(e),e=Ea(e)),o=new Array(e.length);for(let u=0,p=e.length;u<p;u++)o[u]=t(d?f?ta(lr(e[u])):lr(e[u]):e[u],u,void 0,i&&i[u])}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i&&i[a])}else if(tr(e))if(e[Symbol.iterator])o=Array.from(e,(a,d)=>t(a,d,void 0,i&&i[d]));else{const a=Object.keys(e);o=new Array(a.length);for(let d=0,f=a.length;d<f;d++){const u=a[d];o[d]=t(e[u],u,d,i&&i[d])}}else o=[];return r&&(r[n]=o),o}function nh(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(dt(n))for(let o=0;o<n.length;o++)e[n[o].name]=n[o].fn;else n&&(e[n.name]=n.key?(...o)=>{const i=n.fn(...o);return i&&(i.key=n.key),i}:n.fn)}return e}function Ze(e,t,r={},n,o){if(er.ce||er.parent&&Zn(er.parent)&&er.parent.ce)return t!=="default"&&(r.name=t),D(),Ee(qe,null,[Se("slot",r,n&&n())],64);let i=e[t];i&&i._c&&(i._d=!1),D();const s=i&&Qc(i(r)),a=r.key||s&&s.key,d=Ee(qe,{key:(a&&!Uc(a)?a:`_${t}`)+(!s&&n?"_fb":"")},s||(n?n():[]),s&&e._===1?64:-2);return!o&&d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),i&&i._c&&(i._d=!0),d}function Qc(e){return e.some(t=>Dn(t)?!(t.type===Ht||t.type===qe&&!Qc(t.children)):!0)?e:null}function Yv(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Ri(n)]=e[n];return r}const Vl=e=>e?Lh(e)?ds(e):Vl(e.parent):null,Li=nr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Vl(e.parent),$root:e=>Vl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>tu(e),$forceUpdate:e=>e.f||(e.f=()=>{Vc(e.update)}),$nextTick:e=>e.n||(e.n=or.bind(e.proxy)),$watch:e=>x0.bind(e)}),_l=(e,t)=>e!==bt&&!e.__isScriptSetup&&Et(e,t),Wl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:o,props:i,accessCache:s,type:a,appContext:d}=e;let f;if(t[0]!=="$"){const y=s[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return i[t]}else{if(_l(n,t))return s[t]=1,n[t];if(o!==bt&&Et(o,t))return s[t]=2,o[t];if((f=e.propsOptions[0])&&Et(f,t))return s[t]=3,i[t];if(r!==bt&&Et(r,t))return s[t]=4,r[t];zl&&(s[t]=0)}}const u=Li[t];let p,g;if(u)return t==="$attrs"&&mr(e.attrs,"get",""),u(e);if((p=a.__cssModules)&&(p=p[t]))return p;if(r!==bt&&Et(r,t))return s[t]=4,r[t];if(g=d.config.globalProperties,Et(g,t))return g[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:i}=e;return _l(o,t)?(o[t]=r,!0):n!==bt&&Et(n,t)?(n[t]=r,!0):Et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:i}},s){let a;return!!r[s]||e!==bt&&Et(e,s)||_l(t,s)||(a=i[0])&&Et(a,s)||Et(n,s)||Et(Li,s)||Et(o.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Et(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},Zv=nr({},Wl,{get(e,t){if(t!==Symbol.unscopables)return Wl.get(e,t,e)},has(e,t){return t[0]!=="_"&&!gv(t)}});function Xv(){return null}function Qv(){return null}function e0(e){}function t0(e){}function r0(){return null}function n0(){}function o0(e,t){return null}function i0(){return oh().slots}function eu(){return oh().attrs}function oh(){const e=Cr();return e.setupContext||(e.setupContext=Bh(e))}function Zi(e){return dt(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function s0(e,t){const r=Zi(e);for(const n in t){if(n.startsWith("__skip"))continue;let o=r[n];o?dt(o)||ft(o)?o=r[n]={type:o,default:t[n]}:o.default=t[n]:o===null&&(o=r[n]={default:t[n]}),o&&t[`__skip_${n}`]&&(o.skipFactory=!0)}return r}function a0(e,t){return!e||!t?e||t:dt(e)&&dt(t)?e.concat(t):nr({},Zi(e),Zi(t))}function l0(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function ih(e){const t=Cr();let r=e();return Xl(),qc(r)&&(r=r.catch(n=>{throw ko(t),n})),[r,()=>ko(t)]}let zl=!0;function c0(e){const t=tu(e),r=e.proxy,n=e.ctx;zl=!1,t.beforeCreate&&vf(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:d,inject:f,created:u,beforeMount:p,mounted:g,beforeUpdate:y,updated:v,activated:k,deactivated:C,beforeDestroy:E,beforeUnmount:w,destroyed:_,unmounted:T,render:F,renderTracked:I,renderTriggered:P,errorCaptured:H,serverPrefetch:$,expose:ee,inheritAttrs:j,components:W,directives:ie,filters:ce}=t;if(f&&u0(f,n,null),s)for(const me in s){const ve=s[me];ft(ve)&&(n[me]=ve.bind(r))}if(o){const me=o.call(r,r);tr(me)&&(e.data=nn(me))}if(zl=!0,i)for(const me in i){const ve=i[me],Pe=ft(ve)?ve.bind(r,r):ft(ve.get)?ve.get.bind(r,r):fn,Re=!ft(ve)&&ft(ve.set)?ve.set.bind(r):fn,Je=xe({get:Pe,set:Re});Object.defineProperty(n,me,{enumerable:!0,configurable:!0,get:()=>Je.value,set:$e=>Je.value=$e})}if(a)for(const me in a)sh(a[me],n,r,me);if(d){const me=ft(d)?d.call(r):d;Reflect.ownKeys(me).forEach(ve=>{Xn(ve,me[ve])})}u&&vf(u,e,"c");function ae(me,ve){dt(ve)?ve.forEach(Pe=>me(Pe.bind(r))):ve&&me(ve.bind(r))}if(ae(Jc,p),ae(kt,g),ae(Gc,y),ae($a,v),ae(Ba,k),ae(Na,C),ae(Yc,H),ae(th,I),ae(eh,P),ae(oo,w),ae(fr,T),ae(Qp,$),dt(ee))if(ee.length){const me=e.exposed||(e.exposed={});ee.forEach(ve=>{Object.defineProperty(me,ve,{get:()=>r[ve],set:Pe=>r[ve]=Pe})})}else e.exposed||(e.exposed={});F&&e.render===fn&&(e.render=F),j!=null&&(e.inheritAttrs=j),W&&(e.components=W),ie&&(e.directives=ie),$&&Kc(e)}function u0(e,t,r=fn){dt(e)&&(e=Kl(e));for(const n in e){const o=e[n];let i;tr(o)?"default"in o?i=$t(o.from||n,o.default,!0):i=$t(o.from||n):i=$t(o),St(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[n]=i}}function vf(e,t,r){Vr(dt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function sh(e,t,r,n){let o=n.includes(".")?Ch(r,n):()=>r[n];if(Wt(e)){const i=t[e];ft(i)&&cr(o,i)}else if(ft(e))cr(o,e.bind(r));else if(tr(e))if(dt(e))e.forEach(i=>sh(i,t,r,n));else{const i=ft(e.handler)?e.handler.bind(r):t[e.handler];ft(i)&&cr(o,i,e)}}function tu(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let d;return a?d=a:!o.length&&!r&&!n?d=t:(d={},o.length&&o.forEach(f=>ia(d,f,s,!0)),ia(d,t,s)),tr(t)&&i.set(t,d),d}function ia(e,t,r,n=!1){const{mixins:o,extends:i}=t;i&&ia(e,i,r,!0),o&&o.forEach(s=>ia(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const a=f0[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const f0={data:bf,props:_f,emits:_f,methods:Fi,computed:Fi,beforeCreate:kr,created:kr,beforeMount:kr,mounted:kr,beforeUpdate:kr,updated:kr,beforeDestroy:kr,beforeUnmount:kr,destroyed:kr,unmounted:kr,activated:kr,deactivated:kr,errorCaptured:kr,serverPrefetch:kr,components:Fi,directives:Fi,watch:p0,provide:bf,inject:d0};function bf(e,t){return t?e?function(){return nr(ft(e)?e.call(this,this):e,ft(t)?t.call(this,this):t)}:t:e}function d0(e,t){return Fi(Kl(e),Kl(t))}function Kl(e){if(dt(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function kr(e,t){return e?[...new Set([].concat(e,t))]:t}function Fi(e,t){return e?nr(Object.create(null),e,t):t}function _f(e,t){return e?dt(e)&&dt(t)?[...new Set([...e,...t])]:nr(Object.create(null),Zi(e),Zi(t??{})):t}function p0(e,t){if(!e)return t;if(!t)return e;const r=nr(Object.create(null),e);for(const n in t)r[n]=kr(e[n],t[n]);return r}function ah(){return{app:null,config:{isNativeTag:nv,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let h0=0;function g0(e,t){return function(n,o=null){ft(n)||(n=nr({},n)),o!=null&&!tr(o)&&(o=null);const i=ah(),s=new WeakSet,a=[];let d=!1;const f=i.app={_uid:h0++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:Hh,get config(){return i.config},set config(u){},use(u,...p){return s.has(u)||(u&&ft(u.install)?(s.add(u),u.install(f,...p)):ft(u)&&(s.add(u),u(f,...p))),f},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),f},component(u,p){return p?(i.components[u]=p,f):i.components[u]},directive(u,p){return p?(i.directives[u]=p,f):i.directives[u]},mount(u,p,g){if(!d){const y=f._ceVNode||Se(n,o);return y.appContext=i,g===!0?g="svg":g===!1&&(g=void 0),p&&t?t(y,u):e(y,u,g),d=!0,f._container=u,u.__vue_app__=f,ds(y.component)}},onUnmount(u){a.push(u)},unmount(){d&&(Vr(a,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(u,p){return i.provides[u]=p,f},runWithContext(u){const p=vo;vo=f;try{return u()}finally{vo=p}}};return f}}let vo=null;function Xn(e,t){if(Qt){let r=Qt.provides;const n=Qt.parent&&Qt.parent.provides;n===r&&(r=Qt.provides=Object.create(n)),r[e]=t}}function $t(e,t,r=!1){const n=Qt||er;if(n||vo){const o=vo?vo._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return r&&ft(t)?t.call(n&&n.proxy):t}}function si(){return!!(Qt||er||vo)}const lh={},ch=()=>Object.create(lh),uh=e=>Object.getPrototypeOf(e)===lh;function m0(e,t,r,n=!1){const o={},i=ch();e.propsDefaults=Object.create(null),fh(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);r?e.props=n?o:Cn(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function y0(e,t,r,n){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=vt(o),[d]=e.propsOptions;let f=!1;if((n||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let g=u[p];if(Ua(e.emitsOptions,g))continue;const y=t[g];if(d)if(Et(i,g))y!==i[g]&&(i[g]=y,f=!0);else{const v=Dr(g);o[v]=Jl(d,a,v,y,e,!1)}else y!==i[g]&&(i[g]=y,f=!0)}}}else{fh(e,t,o,i)&&(f=!0);let u;for(const p in a)(!t||!Et(t,p)&&((u=oi(p))===p||!Et(t,u)))&&(d?r&&(r[p]!==void 0||r[u]!==void 0)&&(o[p]=Jl(d,a,p,void 0,e,!0)):delete o[p]);if(i!==a)for(const p in i)(!t||!Et(t,p))&&(delete i[p],f=!0)}f&&wn(e.attrs,"set","")}function fh(e,t,r,n){const[o,i]=e.propsOptions;let s=!1,a;if(t)for(let d in t){if(qo(d))continue;const f=t[d];let u;o&&Et(o,u=Dr(d))?!i||!i.includes(u)?r[u]=f:(a||(a={}))[u]=f:Ua(e.emitsOptions,d)||(!(d in n)||f!==n[d])&&(n[d]=f,s=!0)}if(i){const d=vt(r),f=a||bt;for(let u=0;u<i.length;u++){const p=i[u];r[p]=Jl(o,d,p,f[p],e,!Et(f,p))}}return s}function Jl(e,t,r,n,o,i){const s=e[r];if(s!=null){const a=Et(s,"default");if(a&&n===void 0){const d=s.default;if(s.type!==Function&&!s.skipFactory&&ft(d)){const{propsDefaults:f}=o;if(r in f)n=f[r];else{const u=ko(o);n=f[r]=d.call(null,t),u()}}else n=d;o.ce&&o.ce._setProp(r,n)}s[0]&&(i&&!a?n=!1:s[1]&&(n===""||n===oi(r))&&(n=!0))}return n}const v0=new WeakMap;function dh(e,t,r=!1){const n=r?v0:t.propsCache,o=n.get(e);if(o)return o;const i=e.props,s={},a=[];let d=!1;if(!ft(e)){const u=p=>{d=!0;const[g,y]=dh(p,t,!0);nr(s,g),y&&a.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!d)return tr(e)&&n.set(e,Uo),Uo;if(dt(i))for(let u=0;u<i.length;u++){const p=Dr(i[u]);wf(p)&&(s[p]=bt)}else if(i)for(const u in i){const p=Dr(u);if(wf(p)){const g=i[u],y=s[p]=dt(g)||ft(g)?{type:g}:nr({},g),v=y.type;let k=!1,C=!0;if(dt(v))for(let E=0;E<v.length;++E){const w=v[E],_=ft(w)&&w.name;if(_==="Boolean"){k=!0;break}else _==="String"&&(C=!1)}else k=ft(v)&&v.name==="Boolean";y[0]=k,y[1]=C,(k||Et(y,"default"))&&a.push(p)}}const f=[s,a];return tr(e)&&n.set(e,f),f}function wf(e){return e[0]!=="$"&&!qo(e)}const ru=e=>e[0]==="_"||e==="$stable",nu=e=>dt(e)?e.map(Pr):[Pr(e)],b0=(e,t,r)=>{if(t._n)return t;const n=Te((...o)=>nu(t(...o)),r);return n._c=!1,n},ph=(e,t,r)=>{const n=e._ctx;for(const o in e){if(ru(o))continue;const i=e[o];if(ft(i))t[o]=b0(o,i,n);else if(i!=null){const s=nu(i);t[o]=()=>s}}},hh=(e,t)=>{const r=nu(t);e.slots.default=()=>r},gh=(e,t,r)=>{for(const n in t)(r||!ru(n))&&(e[n]=t[n])},_0=(e,t,r)=>{const n=e.slots=ch();if(e.vnode.shapeFlag&32){const o=t._;o?(gh(n,t,r),r&&fv(n,"_",o,!0)):ph(t,n)}else t&&hh(e,t)},w0=(e,t,r)=>{const{vnode:n,slots:o}=e;let i=!0,s=bt;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:gh(o,t,r):(i=!t.$stable,ph(t,o)),s=t}else t&&(hh(e,t),s={default:1});if(i)for(const a in o)!ru(a)&&s[a]==null&&delete o[a]},Zt=Ah;function mh(e){return vh(e)}function yh(e){return vh(e,jv)}function vh(e,t){const r=Da();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:s,createText:a,createComment:d,setText:f,setElementText:u,parentNode:p,nextSibling:g,setScopeId:y=fn,insertStaticContent:v}=e,k=(b,R,L,G=null,Q=null,de=null,ke=void 0,Ce=null,Ae=!!R.dynamicChildren)=>{if(b===R)return;b&&!Yr(b,R)&&(G=_e(b),$e(b,Q,de,!0),b=null),R.patchFlag===-2&&(Ae=!1,R.dynamicChildren=null);const{type:Fe,ref:ze,shapeFlag:Ne}=R;switch(Fe){case Qn:C(b,R,L,G);break;case Ht:E(b,R,L,G);break;case bo:b==null&&w(R,L,G,ke);break;case qe:W(b,R,L,G,Q,de,ke,Ce,Ae);break;default:Ne&1?F(b,R,L,G,Q,de,ke,Ce,Ae):Ne&6?ie(b,R,L,G,Q,de,ke,Ce,Ae):(Ne&64||Ne&128)&&Fe.process(b,R,L,G,Q,de,ke,Ce,Ae,Ue)}ze!=null&&Q&&Yi(ze,b&&b.ref,de,R||b,!R)},C=(b,R,L,G)=>{if(b==null)n(R.el=a(R.children),L,G);else{const Q=R.el=b.el;R.children!==b.children&&f(Q,R.children)}},E=(b,R,L,G)=>{b==null?n(R.el=d(R.children||""),L,G):R.el=b.el},w=(b,R,L,G)=>{[b.el,b.anchor]=v(b.children,R,L,G,b.el,b.anchor)},_=({el:b,anchor:R},L,G)=>{let Q;for(;b&&b!==R;)Q=g(b),n(b,L,G),b=Q;n(R,L,G)},T=({el:b,anchor:R})=>{let L;for(;b&&b!==R;)L=g(b),o(b),b=L;o(R)},F=(b,R,L,G,Q,de,ke,Ce,Ae)=>{R.type==="svg"?ke="svg":R.type==="math"&&(ke="mathml"),b==null?I(R,L,G,Q,de,ke,Ce,Ae):$(b,R,Q,de,ke,Ce,Ae)},I=(b,R,L,G,Q,de,ke,Ce)=>{let Ae,Fe;const{props:ze,shapeFlag:Ne,transition:Ke,dirs:Oe}=b;if(Ae=b.el=s(b.type,de,ze&&ze.is,ze),Ne&8?u(Ae,b.children):Ne&16&&H(b.children,Ae,null,G,Q,wl(b,de),ke,Ce),Oe&&un(b,null,G,"created"),P(Ae,b,b.scopeId,ke,G),ze){for(const Xe in ze)Xe!=="value"&&!qo(Xe)&&i(Ae,Xe,null,ze[Xe],de,G);"value"in ze&&i(Ae,"value",null,ze.value,de),(Fe=ze.onVnodeBeforeMount)&&Ar(Fe,G,b)}Oe&&un(b,null,G,"beforeMount");const et=bh(Q,Ke);et&&Ke.beforeEnter(Ae),n(Ae,R,L),((Fe=ze&&ze.onVnodeMounted)||et||Oe)&&Zt(()=>{Fe&&Ar(Fe,G,b),et&&Ke.enter(Ae),Oe&&un(b,null,G,"mounted")},Q)},P=(b,R,L,G,Q)=>{if(L&&y(b,L),G)for(let de=0;de<G.length;de++)y(b,G[de]);if(Q){let de=Q.subTree;if(R===de||aa(de.type)&&(de.ssContent===R||de.ssFallback===R)){const ke=Q.vnode;P(b,ke,ke.scopeId,ke.slotScopeIds,Q.parent)}}},H=(b,R,L,G,Q,de,ke,Ce,Ae=0)=>{for(let Fe=Ae;Fe<b.length;Fe++){const ze=b[Fe]=Ce?Wn(b[Fe]):Pr(b[Fe]);k(null,ze,R,L,G,Q,de,ke,Ce)}},$=(b,R,L,G,Q,de,ke)=>{const Ce=R.el=b.el;let{patchFlag:Ae,dynamicChildren:Fe,dirs:ze}=R;Ae|=b.patchFlag&16;const Ne=b.props||bt,Ke=R.props||bt;let Oe;if(L&&fo(L,!1),(Oe=Ke.onVnodeBeforeUpdate)&&Ar(Oe,L,R,b),ze&&un(R,b,L,"beforeUpdate"),L&&fo(L,!0),(Ne.innerHTML&&Ke.innerHTML==null||Ne.textContent&&Ke.textContent==null)&&u(Ce,""),Fe?ee(b.dynamicChildren,Fe,Ce,L,G,wl(R,Q),de):ke||ve(b,R,Ce,null,L,G,wl(R,Q),de,!1),Ae>0){if(Ae&16)j(Ce,Ne,Ke,L,Q);else if(Ae&2&&Ne.class!==Ke.class&&i(Ce,"class",null,Ke.class,Q),Ae&4&&i(Ce,"style",Ne.style,Ke.style,Q),Ae&8){const et=R.dynamicProps;for(let Xe=0;Xe<et.length;Xe++){const lt=et[Xe],Bt=Ne[lt],U=Ke[lt];(U!==Bt||lt==="value")&&i(Ce,lt,Bt,U,Q,L)}}Ae&1&&b.children!==R.children&&u(Ce,R.children)}else!ke&&Fe==null&&j(Ce,Ne,Ke,L,Q);((Oe=Ke.onVnodeUpdated)||ze)&&Zt(()=>{Oe&&Ar(Oe,L,R,b),ze&&un(R,b,L,"updated")},G)},ee=(b,R,L,G,Q,de,ke)=>{for(let Ce=0;Ce<R.length;Ce++){const Ae=b[Ce],Fe=R[Ce],ze=Ae.el&&(Ae.type===qe||!Yr(Ae,Fe)||Ae.shapeFlag&70)?p(Ae.el):L;k(Ae,Fe,ze,null,G,Q,de,ke,!0)}},j=(b,R,L,G,Q)=>{if(R!==L){if(R!==bt)for(const de in R)!qo(de)&&!(de in L)&&i(b,de,R[de],null,Q,G);for(const de in L){if(qo(de))continue;const ke=L[de],Ce=R[de];ke!==Ce&&de!=="value"&&i(b,de,Ce,ke,Q,G)}"value"in L&&i(b,"value",R.value,L.value,Q)}},W=(b,R,L,G,Q,de,ke,Ce,Ae)=>{const Fe=R.el=b?b.el:a(""),ze=R.anchor=b?b.anchor:a("");let{patchFlag:Ne,dynamicChildren:Ke,slotScopeIds:Oe}=R;Oe&&(Ce=Ce?Ce.concat(Oe):Oe),b==null?(n(Fe,L,G),n(ze,L,G),H(R.children||[],L,ze,Q,de,ke,Ce,Ae)):Ne>0&&Ne&64&&Ke&&b.dynamicChildren?(ee(b.dynamicChildren,Ke,L,Q,de,ke,Ce),(R.key!=null||Q&&R===Q.subTree)&&ou(b,R,!0)):ve(b,R,L,ze,Q,de,ke,Ce,Ae)},ie=(b,R,L,G,Q,de,ke,Ce,Ae)=>{R.slotScopeIds=Ce,b==null?R.shapeFlag&512?Q.ctx.activate(R,L,G,ke,Ae):ce(R,L,G,Q,de,ke,Ae):pe(b,R,Ae)},ce=(b,R,L,G,Q,de,ke)=>{const Ce=b.component=Dh(b,G,Q);if(us(b)&&(Ce.ctx.renderer=Ue),jh(Ce,!1,ke),Ce.asyncDep){if(Q&&Q.registerDep(Ce,ae,ke),!b.el){const Ae=Ce.subTree=Se(Ht);E(null,Ae,R,L)}}else ae(Ce,b,R,L,Q,de,ke)},pe=(b,R,L)=>{const G=R.component=b.component;if(P0(b,R,L))if(G.asyncDep&&!G.asyncResolved){me(G,R,L);return}else G.next=R,G.update();else R.el=b.el,G.vnode=R},ae=(b,R,L,G,Q,de,ke)=>{const Ce=()=>{if(b.isMounted){let{next:Ne,bu:Ke,u:Oe,parent:et,vnode:Xe}=b;{const Ft=_h(b);if(Ft){Ne&&(Ne.el=Xe.el,me(b,Ne,ke)),Ft.asyncDep.then(()=>{b.isUnmounted||Ce()});return}}let lt=Ne,Bt;fo(b,!1),Ne?(Ne.el=Xe.el,me(b,Ne,ke)):Ne=Xe,Ke&&Oi(Ke),(Bt=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&Ar(Bt,et,Ne,Xe),fo(b,!0);const U=Vs(b),ir=b.subTree;b.subTree=U,k(ir,U,p(ir.el),_e(ir),b,Q,de),Ne.el=U.el,lt===null&&qa(b,U.el),Oe&&Zt(Oe,Q),(Bt=Ne.props&&Ne.props.onVnodeUpdated)&&Zt(()=>Ar(Bt,et,Ne,Xe),Q)}else{let Ne;const{el:Ke,props:Oe}=R,{bm:et,m:Xe,parent:lt,root:Bt,type:U}=b,ir=Zn(R);if(fo(b,!1),et&&Oi(et),!ir&&(Ne=Oe&&Oe.onVnodeBeforeMount)&&Ar(Ne,lt,R),fo(b,!0),Ke&&A){const Ft=()=>{b.subTree=Vs(b),A(Ke,b.subTree,b,Q,null)};ir&&U.__asyncHydrate?U.__asyncHydrate(Ke,b,Ft):Ft()}else{Bt.ce&&Bt.ce._injectChildStyle(U);const Ft=b.subTree=Vs(b);k(null,Ft,L,G,b,Q,de),R.el=Ft.el}if(Xe&&Zt(Xe,Q),!ir&&(Ne=Oe&&Oe.onVnodeMounted)){const Ft=R;Zt(()=>Ar(Ne,lt,Ft),Q)}(R.shapeFlag&256||lt&&Zn(lt.vnode)&&lt.vnode.shapeFlag&256)&&b.a&&Zt(b.a,Q),b.isMounted=!0,R=L=G=null}};b.scope.on();const Ae=b.effect=new Vi(Ce);b.scope.off();const Fe=b.update=Ae.run.bind(Ae),ze=b.job=Ae.runIfDirty.bind(Ae);ze.i=b,ze.id=b.uid,Ae.scheduler=()=>Vc(ze),fo(b,!0),Fe()},me=(b,R,L)=>{R.component=b;const G=b.vnode.props;b.vnode=R,b.next=null,y0(b,R.props,G,L),w0(b,R.children,L),Pn(),uf(b),In()},ve=(b,R,L,G,Q,de,ke,Ce,Ae=!1)=>{const Fe=b&&b.children,ze=b?b.shapeFlag:0,Ne=R.children,{patchFlag:Ke,shapeFlag:Oe}=R;if(Ke>0){if(Ke&128){Re(Fe,Ne,L,G,Q,de,ke,Ce,Ae);return}else if(Ke&256){Pe(Fe,Ne,L,G,Q,de,ke,Ce,Ae);return}}Oe&8?(ze&16&&at(Fe,Q,de),Ne!==Fe&&u(L,Ne)):ze&16?Oe&16?Re(Fe,Ne,L,G,Q,de,ke,Ce,Ae):at(Fe,Q,de,!0):(ze&8&&u(L,""),Oe&16&&H(Ne,L,G,Q,de,ke,Ce,Ae))},Pe=(b,R,L,G,Q,de,ke,Ce,Ae)=>{b=b||Uo,R=R||Uo;const Fe=b.length,ze=R.length,Ne=Math.min(Fe,ze);let Ke;for(Ke=0;Ke<Ne;Ke++){const Oe=R[Ke]=Ae?Wn(R[Ke]):Pr(R[Ke]);k(b[Ke],Oe,L,null,Q,de,ke,Ce,Ae)}Fe>ze?at(b,Q,de,!0,!1,Ne):H(R,L,G,Q,de,ke,Ce,Ae,Ne)},Re=(b,R,L,G,Q,de,ke,Ce,Ae)=>{let Fe=0;const ze=R.length;let Ne=b.length-1,Ke=ze-1;for(;Fe<=Ne&&Fe<=Ke;){const Oe=b[Fe],et=R[Fe]=Ae?Wn(R[Fe]):Pr(R[Fe]);if(Yr(Oe,et))k(Oe,et,L,null,Q,de,ke,Ce,Ae);else break;Fe++}for(;Fe<=Ne&&Fe<=Ke;){const Oe=b[Ne],et=R[Ke]=Ae?Wn(R[Ke]):Pr(R[Ke]);if(Yr(Oe,et))k(Oe,et,L,null,Q,de,ke,Ce,Ae);else break;Ne--,Ke--}if(Fe>Ne){if(Fe<=Ke){const Oe=Ke+1,et=Oe<ze?R[Oe].el:G;for(;Fe<=Ke;)k(null,R[Fe]=Ae?Wn(R[Fe]):Pr(R[Fe]),L,et,Q,de,ke,Ce,Ae),Fe++}}else if(Fe>Ke)for(;Fe<=Ne;)$e(b[Fe],Q,de,!0),Fe++;else{const Oe=Fe,et=Fe,Xe=new Map;for(Fe=et;Fe<=Ke;Fe++){const pr=R[Fe]=Ae?Wn(R[Fe]):Pr(R[Fe]);pr.key!=null&&Xe.set(pr.key,Fe)}let lt,Bt=0;const U=Ke-et+1;let ir=!1,Ft=0;const We=new Array(U);for(Fe=0;Fe<U;Fe++)We[Fe]=0;for(Fe=Oe;Fe<=Ne;Fe++){const pr=b[Fe];if(Bt>=U){$e(pr,Q,de,!0);continue}let _r;if(pr.key!=null)_r=Xe.get(pr.key);else for(lt=et;lt<=Ke;lt++)if(We[lt-et]===0&&Yr(pr,R[lt])){_r=lt;break}_r===void 0?$e(pr,Q,de,!0):(We[_r-et]=Fe+1,_r>=Ft?Ft=_r:ir=!0,k(pr,R[_r],L,null,Q,de,ke,Ce,Ae),Bt++)}const fi=ir?S0(We):Uo;for(lt=fi.length-1,Fe=U-1;Fe>=0;Fe--){const pr=et+Fe,_r=R[pr],Br=pr+1<ze?R[pr+1].el:G;We[Fe]===0?k(null,_r,L,Br,Q,de,ke,Ce,Ae):ir&&(lt<0||Fe!==fi[lt]?Je(_r,L,Br,2):lt--)}}},Je=(b,R,L,G,Q=null)=>{const{el:de,type:ke,transition:Ce,children:Ae,shapeFlag:Fe}=b;if(Fe&6){Je(b.component.subTree,R,L,G);return}if(Fe&128){b.suspense.move(R,L,G);return}if(Fe&64){ke.move(b,R,L,Ue);return}if(ke===qe){n(de,R,L);for(let Ne=0;Ne<Ae.length;Ne++)Je(Ae[Ne],R,L,G);n(b.anchor,R,L);return}if(ke===bo){_(b,R,L);return}if(G!==2&&Fe&1&&Ce)if(G===0)Ce.beforeEnter(de),n(de,R,L),Zt(()=>Ce.enter(de),Q);else{const{leave:Ne,delayLeave:Ke,afterLeave:Oe}=Ce,et=()=>{b.ctx.isUnmounted?o(de):n(de,R,L)},Xe=()=>{Ne(de,()=>{et(),Oe&&Oe()})};Ke?Ke(de,et,Xe):Xe()}else n(de,R,L)},$e=(b,R,L,G=!1,Q=!1)=>{const{type:de,props:ke,ref:Ce,children:Ae,dynamicChildren:Fe,shapeFlag:ze,patchFlag:Ne,dirs:Ke,cacheIndex:Oe}=b;if(Ne===-2&&(Q=!1),Ce!=null&&(Pn(),Yi(Ce,null,L,b,!0),In()),Oe!=null&&(R.renderCache[Oe]=void 0),ze&256){R.ctx.deactivate(b);return}const et=ze&1&&Ke,Xe=!Zn(b);let lt;if(Xe&&(lt=ke&&ke.onVnodeBeforeUnmount)&&Ar(lt,R,b),ze&6)st(b.component,L,G);else{if(ze&128){b.suspense.unmount(L,G);return}et&&un(b,null,R,"beforeUnmount"),ze&64?b.type.remove(b,R,L,Ue,G):Fe&&!Fe.hasOnce&&(de!==qe||Ne>0&&Ne&64)?at(Fe,R,L,!1,!0):(de===qe&&Ne&384||!Q&&ze&16)&&at(Ae,R,L),G&&Me(b)}(Xe&&(lt=ke&&ke.onVnodeUnmounted)||et)&&Zt(()=>{lt&&Ar(lt,R,b),et&&un(b,null,R,"unmounted")},L)},Me=b=>{const{type:R,el:L,anchor:G,transition:Q}=b;if(R===qe){rt(L,G);return}if(R===bo){T(b);return}const de=()=>{o(L),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(b.shapeFlag&1&&Q&&!Q.persisted){const{leave:ke,delayLeave:Ce}=Q,Ae=()=>ke(L,de);Ce?Ce(b.el,de,Ae):Ae()}else de()},rt=(b,R)=>{let L;for(;b!==R;)L=g(b),o(b),b=L;o(R)},st=(b,R,L)=>{const{bum:G,scope:Q,job:de,subTree:ke,um:Ce,m:Ae,a:Fe,parent:ze,slots:{__:Ne}}=b;sa(Ae),sa(Fe),G&&Oi(G),ze&&dt(Ne)&&Ne.forEach(Ke=>{ze.renderCache[Ke]=void 0}),Q.stop(),de&&(de.flags|=8,$e(ke,b,R,L)),Ce&&Zt(Ce,R),Zt(()=>{b.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},at=(b,R,L,G=!1,Q=!1,de=0)=>{for(let ke=de;ke<b.length;ke++)$e(b[ke],R,L,G,Q)},_e=b=>{if(b.shapeFlag&6)return _e(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const R=g(b.anchor||b.el),L=R&&R[qp];return L?g(L):R};let De=!1;const Le=(b,R,L)=>{b==null?R._vnode&&$e(R._vnode,null,null,!0):k(R._vnode||null,b,R,null,null,null,L),R._vnode=b,De||(De=!0,uf(),oa(),De=!1)},Ue={p:k,um:$e,m:Je,r:Me,mt:ce,mc:H,pc:ve,pbc:ee,n:_e,o:e};let q,A;return t&&([q,A]=t(Ue)),{render:Le,hydrate:q,createApp:g0(Le,q)}}function wl({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function fo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ou(e,t,r=!1){const n=e.children,o=t.children;if(dt(n)&&dt(o))for(let i=0;i<n.length;i++){const s=n[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=Wn(o[i]),a.el=s.el),!r&&a.patchFlag!==-2&&ou(s,a)),a.type===Qn&&(a.el=s.el),a.type===Ht&&!a.el&&(a.el=s.el)}}function S0(e){const t=e.slice(),r=[0];let n,o,i,s,a;const d=e.length;for(n=0;n<d;n++){const f=e[n];if(f!==0){if(o=r[r.length-1],e[o]<f){t[n]=o,r.push(n);continue}for(i=0,s=r.length-1;i<s;)a=i+s>>1,e[r[a]]<f?i=a+1:s=a;f<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,s=r[i-1];i-- >0;)r[i]=s,s=t[s];return r}function _h(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_h(t)}function sa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const wh=Symbol.for("v-scx"),Sh=()=>$t(wh);function kh(e,t){return fs(e,null,t)}function k0(e,t){return fs(e,null,{flush:"post"})}function xh(e,t){return fs(e,null,{flush:"sync"})}function cr(e,t,r){return fs(e,t,r)}function fs(e,t,r=bt){const{immediate:n,deep:o,flush:i,once:s}=r,a=nr({},r),d=t&&n||!t&&i!=="post";let f;if(Ko){if(i==="sync"){const y=Sh();f=y.__watcherHandles||(y.__watcherHandles=[])}else if(!d){const y=()=>{};return y.stop=fn,y.resume=fn,y.pause=fn,y}}const u=Qt;a.call=(y,v,k)=>Vr(y,u,v,k);let p=!1;i==="post"?a.scheduler=y=>{Zt(y,u&&u.suspense)}:i!=="sync"&&(p=!0,a.scheduler=(y,v)=>{v?y():Vc(y)}),a.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,u&&(y.id=u.uid,y.i=u))};const g=rv(e,t,a);return Ko&&(f?f.push(g):d&&g()),g}function x0(e,t,r){const n=this.proxy,o=Wt(e)?e.includes(".")?Ch(n,e):()=>n[e]:e.bind(n,n);let i;ft(t)?i=t:(i=t.handler,r=t);const s=ko(this),a=fs(o,i.bind(n),r);return s(),a}function Ch(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}function C0(e,t,r=bt){const n=Cr(),o=Dr(t),i=oi(t),s=Eh(e,o),a=$c((d,f)=>{let u,p=bt,g;return xh(()=>{const y=e[o];go(u,y)&&(u=y,f())}),{get(){return d(),r.get?r.get(u):u},set(y){const v=r.set?r.set(y):y;if(!go(v,u)&&!(p!==bt&&go(y,p)))return;const k=n.vnode.props;k&&(t in k||o in k||i in k)&&(`onUpdate:${t}`in k||`onUpdate:${o}`in k||`onUpdate:${i}`in k)||(u=y,f()),n.emit(`update:${t}`,v),go(y,v)&&go(y,p)&&!go(v,g)&&f(),p=y,g=v}}});return a[Symbol.iterator]=()=>{let d=0;return{next(){return d<2?{value:d++?s||bt:a,done:!1}:{done:!0}}}},a}const Eh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Dr(t)}Modifiers`]||e[`${oi(t)}Modifiers`];function E0(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||bt;let o=r;const i=t.startsWith("update:"),s=i&&Eh(n,t.slice(7));s&&(s.trim&&(o=r.map(u=>Wt(u)?u.trim():u)),s.number&&(o=r.map(dv)));let a,d=n[a=Ri(t)]||n[a=Ri(Dr(t))];!d&&i&&(d=n[a=Ri(oi(t))]),d&&Vr(d,e,6,o);const f=n[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Vr(f,e,6,o)}}function Th(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!ft(e)){const d=f=>{const u=Th(f,t,!0);u&&(a=!0,nr(s,u))};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!i&&!a?(tr(e)&&n.set(e,null),null):(dt(i)?i.forEach(d=>s[d]=null):nr(s,i),tr(e)&&n.set(e,s),s)}function Ua(e,t){return!e||!Pa(t)?!1:(t=t.slice(2).replace(/Once$/,""),Et(e,t[0].toLowerCase()+t.slice(1))||Et(e,oi(t))||Et(e,t))}function Vs(e){const{type:t,vnode:r,proxy:n,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:d,render:f,renderCache:u,props:p,data:g,setupState:y,ctx:v,inheritAttrs:k}=e,C=Gi(e);let E,w;try{if(r.shapeFlag&4){const T=o||n,F=T;E=Pr(f.call(F,T,u,p,y,g,v)),w=a}else{const T=t;E=Pr(T.length>1?T(p,{attrs:a,slots:s,emit:d}):T(p,null)),w=t.props?a:F0(a)}}catch(T){ji.length=0,Fo(T,e,1),E=Se(Ht)}let _=E;if(w&&k!==!1){const T=Object.keys(w),{shapeFlag:F}=_;T.length&&F&7&&(i&&T.some(Op)&&(w=A0(w,i)),_=pn(_,w,!1,!0))}return r.dirs&&(_=pn(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&Rn(_,r.transition),E=_,Gi(C),E}function T0(e,t=!0){let r;for(let n=0;n<e.length;n++){const o=e[n];if(Dn(o)){if(o.type!==Ht||o.children==="v-if"){if(r)return;r=o}}else return}return r}const F0=e=>{let t;for(const r in e)(r==="class"||r==="style"||Pa(r))&&((t||(t={}))[r]=e[r]);return t},A0=(e,t)=>{const r={};for(const n in e)(!Op(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function P0(e,t,r){const{props:n,children:o,component:i}=e,{props:s,children:a,patchFlag:d}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return n?Sf(n,s,f):!!s;if(d&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const g=u[p];if(s[g]!==n[g]&&!Ua(f,g))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?Sf(n,s,f):!0:!!s;return!1}function Sf(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(t[i]!==e[i]&&!Ua(r,i))return!0}return!1}function qa({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const aa=e=>e.__isSuspense;let Gl=0;const I0={name:"Suspense",__isSuspense:!0,process(e,t,r,n,o,i,s,a,d,f){if(e==null)R0(t,r,n,o,i,s,a,d,f);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}O0(e,t,r,n,o,s,a,d,f)}},hydrate:D0,normalize:L0},iu=I0;function Xi(e,t){const r=e.props&&e.props[t];ft(r)&&r()}function R0(e,t,r,n,o,i,s,a,d){const{p:f,o:{createElement:u}}=d,p=u("div"),g=e.suspense=Fh(e,o,n,t,p,r,i,s,a,d);
vendor: 4,885 bytes, line 19
19f(null,g.pendingBranch=e.ssContent,p,null,n,g,i,s),g.deps>0?(Xi(e,"onPending"),Xi(e,"onFallback"),f(null,e.ssFallback,t,r,n,null,i,s),Wo(g,e.ssFallback)):g.resolve(!1,!0)}function O0(e,t,r,n,o,i,s,a,{p:d,um:f,o:{createElement:u}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const g=t.ssContent,y=t.ssFallback,{activeBranch:v,pendingBranch:k,isInFallback:C,isHydrating:E}=p;if(k)p.pendingBranch=g,Yr(g,k)?(d(k,g,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0?p.resolve():C&&(E||(d(v,y,r,n,o,null,i,s,a),Wo(p,y)))):(p.pendingId=Gl++,E?(p.isHydrating=!1,p.activeBranch=k):f(k,o,p),p.deps=0,p.effects.length=0,p.hiddenContainer=u("div"),C?(d(null,g,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0?p.resolve():(d(v,y,r,n,o,null,i,s,a),Wo(p,y))):v&&Yr(g,v)?(d(v,g,r,n,o,p,i,s,a),p.resolve(!0)):(d(null,g,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0&&p.resolve()));else if(v&&Yr(g,v))d(v,g,r,n,o,p,i,s,a),Wo(p,g);else if(Xi(t,"onPending"),p.pendingBranch=g,g.shapeFlag&512?p.pendingId=g.component.suspenseId:p.pendingId=Gl++,d(null,g,p.hiddenContainer,null,o,p,i,s,a),p.deps<=0)p.resolve();else{const{timeout:w,pendingId:_}=p;w>0?setTimeout(()=>{p.pendingId===_&&p.fallback(y)},w):w===0&&p.fallback(y)}}function Fh(e,t,r,n,o,i,s,a,d,f,u=!1){const{p,m:g,um:y,n:v,o:{parentNode:k,remove:C}}=f;let E;const w=j0(e);w&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const _=e.props?pv(e.props.timeout):void 0,T=i,F={vnode:e,parent:t,parentComponent:r,namespace:s,container:n,hiddenContainer:o,deps:0,pendingId:Gl++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(I=!1,P=!1){const{vnode:H,activeBranch:$,pendingBranch:ee,pendingId:j,effects:W,parentComponent:ie,container:ce}=F;let pe=!1;F.isHydrating?F.isHydrating=!1:I||(pe=$&&ee.transition&&ee.transition.mode==="out-in",pe&&($.transition.afterLeave=()=>{j===F.pendingId&&(g(ee,ce,i===T?v($):i,0),Ki(W))}),$&&(k($.el)===ce&&(i=v($)),y($,ie,F,!0)),pe||g(ee,ce,i,0)),Wo(F,ee),F.pendingBranch=null,F.isInFallback=!1;let ae=F.parent,me=!1;for(;ae;){if(ae.pendingBranch){ae.effects.push(...W),me=!0;break}ae=ae.parent}!me&&!pe&&Ki(W),F.effects=[],w&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Xi(H,"onResolve")},fallback(I){if(!F.pendingBranch)return;const{vnode:P,activeBranch:H,parentComponent:$,container:ee,namespace:j}=F;Xi(P,"onFallback");const W=v(H),ie=()=>{F.isInFallback&&(p(null,I,ee,W,$,null,j,a,d),Wo(F,I))},ce=I.transition&&I.transition.mode==="out-in";ce&&(H.transition.afterLeave=ie),F.isInFallback=!0,y(H,$,null,!0),ce||ie()},move(I,P,H){F.activeBranch&&g(F.activeBranch,I,P,H),F.container=I},next(){return F.activeBranch&&v(F.activeBranch)},registerDep(I,P,H){const $=!!F.pendingBranch;$&&F.deps++;const ee=I.vnode.el;I.asyncDep.catch(j=>{Fo(j,I,0)}).then(j=>{if(I.isUnmounted||F.isUnmounted||F.pendingId!==I.suspenseId)return;I.asyncResolved=!0;const{vnode:W}=I;Ql(I,j,!1),ee&&(W.el=ee);const ie=!ee&&I.subTree.el;P(I,W,k(ee||I.subTree.el),ee?null:v(I.subTree),F,s,H),ie&&C(ie),qa(I,W.el),$&&--F.deps===0&&F.resolve()})},unmount(I,P){F.isUnmounted=!0,F.activeBranch&&y(F.activeBranch,r,I,P),F.pendingBranch&&y(F.pendingBranch,r,I,P)}};return F}function D0(e,t,r,n,o,i,s,a,d){const f=t.suspense=Fh(t,n,r,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),u=d(e,f.pendingBranch=t.ssContent,r,f,i,s);return f.deps===0&&f.resolve(!1,!0),u}function L0(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=kf(n?r.default:r),e.ssFallback=n?kf(r.fallback):Se(Ht)}function kf(e){let t;if(ft(e)){const r=So&&e._c;r&&(e._d=!1,D()),e=e(),r&&(e._d=!0,t=vr,Ph())}return dt(e)&&(e=T0(e)),e=Pr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Ah(e,t){t&&t.pendingBranch?dt(e)?t.effects.push(...e):t.effects.push(e):Ki(e)}function Wo(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;r.el=o,n&&n.subTree===r&&(n.vnode.el=o,qa(n,o))}function j0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const qe=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),Ht=Symbol.for("v-cmt"),bo=Symbol.for("v-stc"),ji=[];let vr=null;function D(e=!1){ji.push(vr=e?null:[])}function Ph(){ji.pop(),vr=ji[ji.length-1]||null}let So=1;function Yl(e,t=!1){So+=e,e<0&&vr&&t&&(vr.hasOnce=!0)}function Ih(e){return e.dynamicChildren=So>0?vr||Uo:null,Ph(),So>0&&vr&&vr.push(e),e}function V(e,t,r,n,o,i){return Ih(B(e,t,r,n,o,i,!0))}function Ee(e,t,r,n,o){return Ih(Se(e,t,r,n,o,!0))}function Dn(e){return e?e.__v_isVNode===!0:!1}function Yr(e,t){return e.type===t.type&&e.key===t.key}function M0(e){}const Rh=({key:e})=>e??null,Ws=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Wt(e)||St(e)||ft(e)?{i:er,r:e,k:t,f:!!r}:e:null);function B(e,t=null,r=null,n=0,o=null,i=e===qe?0:1,s=!1,a=!1){const d={__v_isVNode:!0,__v_skip:!0,t
vendor: 4,655 bytes, line 19
19ype:e,props:t,key:t&&Rh(t),ref:t&&Ws(t),scopeId:ja,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:er};return a?(su(d,r),i&128&&e.normalize(d)):r&&(d.shapeFlag|=Wt(r)?8:16),So>0&&!s&&vr&&(d.patchFlag>0||i&6)&&d.patchFlag!==32&&vr.push(d),d}const Se=B0;function B0(e,t=null,r=null,n=0,o=null,i=!1){if((!e||e===rh)&&(e=Ht),Dn(e)){const a=pn(e,t,!0);return r&&su(a,r),So>0&&!i&&vr&&(a.shapeFlag&6?vr[vr.indexOf(e)]=a:vr.push(a)),a.patchFlag=-2,a}if(W0(e)&&(e=e.__vccOpts),t){t=Va(t);let{class:a,style:d}=t;a&&!Wt(a)&&(t.class=Be(a)),tr(d)&&(Aa(d)&&!dt(d)&&(d=nr({},d)),t.style=se(d))}const s=Wt(e)?1:aa(e)?128:Vp(e)?64:tr(e)?4:ft(e)?2:0;return B(e,t,r,n,o,s,i,!0)}function Va(e){return e?Aa(e)||uh(e)?nr({},e):e:null}function pn(e,t,r=!1,n=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:d}=e,f=t?dr(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Rh(f),ref:t&&t.ref?r&&i?dt(i)?i.concat(Ws(t)):[i,Ws(t)]:Ws(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&n&&Rn(u,d.clone(u)),u}function tt(e=" ",t=0){return Se(Qn,null,e,t)}function Oh(e,t){const r=Se(bo,null,e);return r.staticCount=t,r}function le(e="",t=!1){return t?(D(),Ee(Ht,null,e)):Se(Ht,null,e)}function Pr(e){return e==null||typeof e=="boolean"?Se(Ht):dt(e)?Se(qe,null,e.slice()):Dn(e)?Wn(e):Se(Qn,null,String(e))}function Wn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function su(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(dt(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),su(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!uh(t)?t._ctx=er:o===3&&er&&(er.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ft(t)?(t={default:t,_ctx:er},r=32):(t=String(t),n&64?(r=16,t=[tt(t)]):r=8);e.children=t,e.shapeFlag|=r}function dr(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=Be([t.class,n.class]));else if(o==="style")t.style=se([t.style,n.style]);else if(Pa(o)){const i=t[o],s=n[o];s&&i!==s&&!(dt(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=n[o])}return t}function Ar(e,t,r,n=null){Vr(e,t,7,[r,n])}const N0=ah();let H0=0;function Dh(e,t,r){const n=e.type,o=(t?t.appContext:e.appContext)||N0,i={uid:H0++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Lc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dh(n,o),emitsOptions:Th(n,o),emit:null,emitted:null,propsDefaults:bt,inheritAttrs:n.inheritAttrs,ctx:bt,data:bt,props:bt,attrs:bt,slots:bt,refs:bt,setupState:bt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=E0.bind(null,i),e.ce&&e.ce(i),i}let Qt=null;const Cr=()=>Qt||er;let la,Zl;{const e=Da(),t=(r,n)=>{let o;return(o=e[r])||(o=e[r]=[]),o.push(n),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};la=t("__VUE_INSTANCE_SETTERS__",r=>Qt=r),Zl=t("__VUE_SSR_SETTERS__",r=>Ko=r)}const ko=e=>{const t=Qt;return la(e),e.scope.on(),()=>{e.scope.off(),la(t)}},Xl=()=>{Qt&&Qt.scope.off(),la(null)};function Lh(e){return e.vnode.shapeFlag&4}let Ko=!1;function jh(e,t=!1,r=!1){t&&Zl(t);const{props:n,children:o}=e.vnode,i=Lh(e);m0(e,n,i,t),_0(e,o,r||t);const s=i?$0(e,t):void 0;return t&&Zl(!1),s}function $0(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wl);const{setup:n}=r;if(n){Pn();const o=e.setupContext=n.length>1?Bh(e):null,i=ko(e),s=ii(n,e,0,[e.props,o]),a=qc(s);if(In(),i(),(a||e.sp)&&!Zn(e)&&Kc(e),a){if(s.then(Xl,Xl),t)return s.then(d=>{Ql(e,d,t)}).catch(d=>{Fo(d,e,0)});e.asyncDep=s}else Ql(e,s,t)}else Mh(e,t)}
vendor: 1,938 bytes, lines 19-22
19function Ql(e,t,r){ft(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:tr(t)&&(e.setupState=Hc(t)),Mh(e,r)}let ca,ec;function U0(e){ca=e,ec=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Zv))}}const q0=()=>!ca;function Mh(e,t,r){const n=e.type;if(!e.render){if(!t&&ca&&!n.render){const o=n.template||tu(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:d}=n,f=nr(nr({isCustomElement:i,delimiters:a},s),d);n.render=ca(o,f)}}e.render=n.render||fn,ec&&ec(e)}{const o=ko(e);Pn();try{c0(e)}finally{In(),o()}}}const V0={get(e,t){return mr(e,"get",""),e[t]}};function Bh(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,V0),slots:e.slots,emit:e.emit,expose:t}}function ds(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hc(Dt(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Li)return Li[r](e)},has(t,r){return r in t||r in Li}})):e.proxy}function tc(e,t=!0){return ft(e)?e.displayName||e.name:e.name||t&&e.__name}function W0(e){return ft(e)&&"__vccOpts"in e}const xe=(e,t)=>Xy(e,t,Ko);function br(e,t,r){const n=arguments.length;return n===2?tr(t)&&!dt(t)?Dn(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Dn(r)&&(r=[r]),Se(e,t,r))}function z0(){}function K0(e,t,r,n){const o=r[n];if(o&&Nh(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=n,r[n]=i}function Nh(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n<r.length;n++)if(go(r[n],t[n]))return!1;return So>0&&vr&&vr.push(e),!0}const Hh="3.5.14",J0=fn,G0=xv,Y0=Mo,Z0=Up,X0={createComponentInstance:Dh,setupComponent:jh,renderComponentRoot:Vs,setCurrentRenderingInstance:Gi,isVNode:Dn,normalizeVNode:Pr,getComponentPublicInstance:ds,ensureValidVNode:Qc,pushWarningContext:_v,popWarningContext:wv},Q0=X0,eb=null,tb=null,rb=null;/**
20* @vue/shared v3.5.14
21* (c) 2018-present Yuxi (Evan) You and Vue contributors
22* @license MIT
23**//*! #__NO_SIDE_EFFECTS__ */function nb(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Sl={},ob=()=>{},ib=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sb=e=>e.startsWith("onUpdate:"),xo=Object.assign,ab=Object.prototype.hasOwnProperty,lb=(e,t)=>ab.call(e,t),Lr=Array.isArray,ps=e=>au(e)==="[object Set]",xf=e=>au(e)==="[object Date]",$h=e=>typeof e=="function",Jo=e=>typeof e=="string",rc=e=>typeof e=="symbol",nc=e=>e!==null&&typeof e=="object",cb=Object.prototype.toString,au=e=>cb.call(e),Uh=e=>au(e)==="[object Object]",lu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},ub=/-(\w)/g,zs=lu(e=>e.replace(ub,(t,r)=>r?r.toUpperCase():"")),fb=/\B([A-Z])/g,Gn=lu(e=>e.replace(fb,"-$1").toLowerCase()),db=lu(e=>e.charAt(0).toUpperCase()+e.slice(1)),pb=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},oc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ic=e=>{const t=Jo(e)?Number(e):NaN;return isNaN(t)?e:t},hb="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gb=nb(hb);function qh(e){return!!e||e===""}function mb(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=to(e[n],t[n]);return r}function to(e,t){if(e===t)return!0;let r=xf(e),n=xf(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=rc(e),n=rc(t),r||n)return e===t;if(r=Lr(e),n=Lr(t),r||n)return r&&n?mb(e,t):!1;if(r=nc(e),n=nc(t),r||n){if(!r||!n)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const s in e){const a=e.hasOwnProperty(s),d=t.hasOwnProperty(s);if(a&&!d||!a&&d||!to(e[s],t[s]))return!1}}return String(e)===String(t)}function Wa(e,t){return e.findIndex(r=>to(r,t))}/**
24* @vue/runtime-dom v3.5.14
25* (c) 2018-present Yuxi (Evan) You and Vue contributors
26* @license MIT
27**/let sc;const Cf=typeof window<"u"&&window.trustedTypes;if(Cf)try{sc=Cf.createPolicy("vue",{createHTML:e=>e})}catch{}const Vh=sc?e=>sc.createHTML(e):e=>e,yb="http://www.w3.org/2000/svg",vb="http://www.w3.org/1998/Math/MathML",_n=typeof document<"u"?document:null,Ef=_n&&_n.createElement("template"),bb={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t==="svg"?_n.createElementNS(yb,e):t==="mathml"?_n.createElementNS(vb,e):r?_n.createElement(e,{is:r}):_n.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>_n.createTextNode(e),createComment:e=>_n.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_n.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,o,i){const s=r?r.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{Ef.innerHTML=Vh(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Ef.content;if(n==="svg"||n==="mathml"){const d=a.firstChild;for(;d.firstChild;)a.appendChild(d.firstChild);a.removeChild(d)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Nn="transition",wi="animation",Go=Symbol("_vtc"),Wh={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},zh=xo({},zc,Wh),_b=e=>(e.displayName="Transition",e.props=zh,e),ai=_b((e,{slots:t})=>br(Gp,Kh(e),t)),po=(e,t=[])=>{Lr(e)?e.forEach(r=>r(...t)):e&&e(...t)},Tf=e=>e?Lr(e)?e.some(t=>t.length>1):e.length>1:!1;function Kh(e){const t={};for(const W in e)W in Wh||(t[W]=e[W]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:d=i,appearActiveClass:f=s,appearToClass:u=a,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:g=`${r}-leave-active`,leaveToClass:y=`${r}-leave-to`}=e,v=wb(o),k=v&&v[0],C=v&&v[1],{onBeforeEnter:E,onEnter:w,onEnterCancelled:_,onLeave:T,onLeaveCancelled:F,onBeforeAppear:I=E,onAppear:P=w,onAppearCancelled:H=_}=t,$=(W,ie,ce,pe)=>{W._enterCancelled=pe,Hn(W,ie?u:a),Hn(W,ie?f:s),ce&&ce()},ee=(W,ie)=>{W._isLeaving=!1,Hn(W,p),Hn(W,y),Hn(W,g),ie&&ie()},j=W=>(ie,ce)=>{const pe=W?P:w,ae=()=>$(ie,W,ce);po(pe,[ie,ae]),Ff(()=>{Hn(ie,W?d:i),ln(ie,W?u:a),Tf(pe)||Af(ie,n,k,ae)})};return xo(t,{onBeforeEnter(W){po(E,[W]),ln(W,i),ln(W,s)},onBeforeAppear(W){po(I,[W]),ln(W,d),ln(W,f)},onEnter:j(!1),onAppear:j(!0),onLeave(W,ie){W._isLeaving=!0;const ce=()=>ee(W,ie);ln(W,p),W._enterCancelled?(ln(W,g),ac()):(ac(),ln(W,g)),Ff(()=>{W._isLeaving&&(Hn(W,p),ln(W,y),Tf(T)||Af(W,n,C,ce))}),po(T,[W,ce])},onEnterCancelled(W){$(W,!1,void 0,!0),po(_,[W])},onAppearCancelled(W){$(W,!0,void 0,!0),po(H,[W])},onLeaveCancelled(W){ee(W),po(F,[W])}})}function wb(e){if(e==null)return null;if(nc(e))return[kl(e.enter),kl(e.leave)];{const t=kl(e);return[t,t]}}function kl(e){return ic(e)}function ln(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Go]||(e[Go]=new Set)).add(t)}function Hn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Go];r&&(r.delete(t),r.size||(e[Go]=void 0))}function Ff(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Sb=0;function Af(e,t,r,n){const o=e._endId=++Sb,i=()=>{o===e._endId&&n()};if(r!=null)return setTimeout(i,r);const{type:s,timeout:a,propCount:d}=Jh(e,t);if(!s)return n();const f=s+"end";let u=0;const p=()=>{e.removeEventListener(f,g),i()},g=y=>{y.target===e&&++u>=d&&p()};setTimeout(()=>{u<d&&p()},a+1),e.addEventListener(f,g)}function Jh(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),o=n(`${Nn}Delay`),i=n(`${Nn}Duration`),s=Pf(o,i),a=n(`${wi}Delay`),d=n(`${wi}Duration`),f=Pf(a,d);let u=null,p=0,g=0;t===Nn?s>0&&(u=Nn,p=s,g=i.length):t===wi?f>0&&(u=wi,p=f,g=d.length):(p=Math.max(s,f),u=p>0?s>f?Nn:wi:null,g=u?u===Nn?i.length:d.length:0);const y=u===Nn&&/\b(transform|all)(,|$)/.test(n(`${Nn}Property`).toString());return{type:u,timeout:p,propCount:g,hasTransform:y}}function Pf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>If(r)+If(e[n])))}function If(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ac(){return document.body.offsetHeight}function kb(e,t,r){const n=e[Go];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const ua=Symbol("_vod"),Gh=Symbol("_vsh"),Mt={beforeMount(e,{value:t},{transition:r}){e[ua]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Si(e,t)}
vendor: 4,139 bytes, line 27
27,mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Si(e,!0),n.enter(e)):n.leave(e,()=>{Si(e,!1)}):Si(e,t))},beforeUnmount(e,{value:t}){Si(e,t)}};function Si(e,t){e.style.display=t?e[ua]:"none",e[Gh]=!t}function xb(){Mt.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Yh=Symbol("");function jr(e){const t=Cr();if(!t)return;const r=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>fa(i,o))},n=()=>{const o=e(t.proxy);t.ce?fa(t.ce,o):lc(t.subTree,o),r(o)};Gc(()=>{Ki(n)}),kt(()=>{cr(n,ob,{flush:"post"});const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),fr(()=>o.disconnect())})}function lc(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{lc(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fa(e.el,t);else if(e.type===qe)e.children.forEach(r=>lc(r,t));else if(e.type===bo){let{el:r,anchor:n}=e;for(;r&&(fa(r,t),r!==n);)r=r.nextSibling}}function fa(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const o in t)r.setProperty(`--${o}`,t[o]),n+=`--${o}: ${t[o]};`;r[Yh]=n}}const Cb=/(^|;)\s*display\s*:/;function Eb(e,t,r){const n=e.style,o=Jo(r);let i=!1;if(r&&!o){if(t)if(Jo(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Ks(n,a,"")}else for(const s in t)r[s]==null&&Ks(n,s,"");for(const s in r)s==="display"&&(i=!0),Ks(n,s,r[s])}else if(o){if(t!==r){const s=n[Yh];s&&(r+=";"+s),n.cssText=r,i=Cb.test(r)}}else t&&e.removeAttribute("style");ua in e&&(e[ua]=i?n.display:"",e[Gh]&&(n.display="none"))}const Rf=/\s*!important$/;function Ks(e,t,r){if(Lr(r))r.forEach(n=>Ks(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Tb(e,t);Rf.test(r)?e.setProperty(Gn(n),r.replace(Rf,""),"important"):e[n]=r}}const Of=["Webkit","Moz","ms"],xl={};function Tb(e,t){const r=xl[t];if(r)return r;let n=Dr(t);if(n!=="filter"&&n in e)return xl[t]=n;n=db(n);for(let o=0;o<Of.length;o++){const i=Of[o]+n;if(i in e)return xl[t]=i}return t}const Df="http://www.w3.org/1999/xlink";function Lf(e,t,r,n,o,i=gb(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Df,t.slice(6,t.length)):e.setAttributeNS(Df,t,r):r==null||i&&!qh(r)?e.removeAttribute(t):e.setAttribute(t,i?"":rc(r)?String(r):r)}function jf(e,t,r,n,o){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Vh(r):r);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,d=r==null?e.type==="checkbox"?"on":"":String(r);(a!==d||!("_value"in e))&&(e.value=d),r==null&&e.removeAttribute(t),e._value=r;return}let s=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=qh(r):r==null&&a==="string"?(r="",s=!0):a==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(o||t)}function xn(e,t,r,n){e.addEventListener(t,r,n)}function Fb(e,t,r,n){e.removeEventListener(t,r,n)}const Mf=Symbol("_vei");function Ab(e,t,r,n,o=null){const i=e[Mf]||(e[Mf]={}),s=i[t];if(n&&s)s.value=n;else{const[a,d]=Pb(t);if(n){const f=i[t]=Ob(n,o);xn(e,a,f,d)}else s&&(Fb(e,a,s,d),i[t]=void 0)}}const Bf=/(?:Once|Passive|Capture)$/;function Pb(e){let t;if(Bf.test(e)){t={};let n;for(;n=e.match(Bf);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Gn(e.slice(2)),t]}let Cl=0;const Ib=Promise.resolve(),Rb=()=>Cl||(Ib.then(()=>Cl=0),Cl=Date.now());function Ob(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Vr(Db(n,r.value),t,5,[n])};return r.value=e,r.attached=Rb(),r}function Db(e,t){if(Lr(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const Nf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lb=(e,t,r,n,o,i)=>{const s=o==="svg";t==="class"?kb(e,n,s):t==="style"?Eb(e,r,n):ib(t)?sb(t)||Ab(e,t,r,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.
27slice(1),!1):jb(e,t,n,s))?(jf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Lf(e,t,n,s,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Jo(n))?jf(e,zs(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Lf(e,t,n,s))};function jb(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nf(t)&&$h(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Nf(t)&&Jo(r)?!1:t in e}const Hf={};/*! #__NO_SIDE_EFFECTS__ */function Zh(e,t,r){const n=ur(e,t);Uh(n)&&xo(n,t);class o extends za{constructor(s){super(n,s,r)}}return o.def=n,o}/*! #__NO_SIDE_EFFECTS__ */const Mb=(e,t)=>Zh(e,t,uu),Bb=typeof HTMLElement<"u"?HTMLElement:class{};class za extends Bb{constructor(t,r={},n=ha){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==ha?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof za){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,or(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const o of n)this._setAttr(o.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,o=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:s}=n;let a;if(i&&!Lr(i))for(const d in i){const f=i[d];(f===Number||f&&f.type===Number)&&(d in this._props&&(this._props[d]=ic(this._props[d])),(a||(a=Object.create(null)))[zs(d)]=!0)}this._numberProps=a,o&&this._resolveProps(n),this.shadowRoot&&this._applyStyles(s),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>t(this._def=n,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)lb(this,n)||Object.defineProperty(this,n,{get:()=>S(r[n])})}_resolveProps(t){const{props:r}=t,n=Lr(r)?r:Object.keys(r||{});for(const o of Object.keys(this))o[0]!=="_"&&n.includes(o)&&this._setProp(o,this[o]);for(const o of n.map(zs))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(i){this._setProp(o,i,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):Hf;const o=zs(t);r&&this._numberProps&&this._numberProps[o]&&(n=ic(n)),this._setProp(o,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,o=!1){if(r!==this._props[t]&&(r===Hf?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),o&&this._instance&&this._update(),n)){const i=this._ob;i&&i.disconnect(),r===!0?this.setAttribute(Gn(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Gn(t),r+""):r||this.removeAttribute(Gn(t)),i&&i.observe(this,{attributes:!0})}}
vendor: 6,523 bytes, line 27
27_update(){cg(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=Se(this._def,xo(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,Uh(s[0])?xo({detail:s},s[0]):{detail:s}))};n.emit=(i,...s)=>{o(i,s),Gn(i)!==i&&o(Gn(i),s)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let o=t.length-1;o>=0;o--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=t[o],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),r=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const o=t[n],i=o.getAttribute("name")||"default",s=this._slots[i],a=o.parentNode;if(s)for(const d of s){if(r&&d.nodeType===1){const f=r+"-s",u=document.createTreeWalker(d,1);d.setAttribute(f,"");let p;for(;p=u.nextNode();)p.setAttribute(f,"")}a.insertBefore(d,o)}else for(;o.firstChild;)a.insertBefore(o.firstChild,o);a.removeChild(o)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function Xh(e){const t=Cr(),r=t&&t.ce;return r||null}function Nb(){const e=Xh();return e&&e.shadowRoot}function Hb(e="$style"){{const t=Cr();if(!t)return Sl;const r=t.type.__cssModules;if(!r)return Sl;const n=r[e];return n||Sl}}const Qh=new WeakMap,eg=new WeakMap,da=Symbol("_moveCb"),$f=Symbol("_enterCb"),$b=e=>(delete e.props.mode,e),Ub=$b({name:"TransitionGroup",props:xo({},zh,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Cr(),n=Wc();let o,i;return $a(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!zb(o[0].el,r.vnode.el,s)){o=[];return}o.forEach(qb),o.forEach(Vb);const a=o.filter(Wb);ac(),a.forEach(d=>{const f=d.el,u=f.style;ln(f,s),u.transform=u.webkitTransform=u.transitionDuration="";const p=f[da]=g=>{g&&g.target!==f||(!g||/transform$/.test(g.propertyName))&&(f.removeEventListener("transitionend",p),f[da]=null,Hn(f,s))};f.addEventListener("transitionend",p)}),o=[]}),()=>{const s=vt(e),a=Kh(s);let d=s.tag||qe;if(o=[],i)for(let f=0;f<i.length;f++){const u=i[f];u.el&&u.el instanceof Element&&(o.push(u),Rn(u,zo(u,a,n,r)),Qh.set(u,u.el.getBoundingClientRect()))}i=t.default?Ma(t.default()):[];for(let f=0;f<i.length;f++){const u=i[f];u.key!=null&&Rn(u,zo(u,a,n,r))}return Se(d,null,i)}}}),tg=Ub;function qb(e){const t=e.el;t[da]&&t[da](),t[$f]&&t[$f]()}function Vb(e){eg.set(e,e.el.getBoundingClientRect())}function Wb(e){const t=Qh.get(e),r=eg.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${o}px)`,i.transitionDuration="0s",e}}function zb(e,t,r){const n=e.cloneNode(),o=e[Go];o&&o.forEach(a=>{a.split(/\s+/).forEach(d=>d&&n.classList.remove(d))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:s}=Jh(n);return i.removeChild(n),s}const ro=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Lr(t)?r=>pb(t,r):t};function Kb(e){e.target.composing=!0}function Uf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qr=Symbol("_assign"),pa={created(e,{modifiers:{lazy:t,trim:r,number:n}},o){e[qr]=ro(o);const i=n||o.props&&o.props.type==="number";xn(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;r&&(a=a.trim()),i&&(a=oc(a)),e[qr](a)}),r&&xn(e,"change",()=>{e.value=e.value.trim()}),t||(xn(e,"compositionstart",Kb),xn(e,"compositionend",Uf),xn(e,"change",Uf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:o,number:i}},s){if(e[qr]=ro(s),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?oc(e.value):e.value,d=t??"";a!==d&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||o&&e.value.trim()===d)||(e.value=d))}},Fn={deep:!0,created(e,t,r){e[qr]=ro(r),xn(e,"change",()=>{const n=e._modelValue,o=Yo(e),i=e.checked,s=e[qr];if(Lr(n)){const a=Wa(n,o),d=a!==-1;if(i&&!d)s(n.concat(o));else if(!i&&d){const f=[...n];f.splice(a,1),s(f)}}else if(ps(n)){const a=new Set(n);i?a.add(o):a.delete(o),s(a)}else s(ng(e,i))})},mounted:qf,beforeUpdate(e,t,r){e[qr]=ro(r),qf(e,t,r)}};function qf(e,{value:t,oldValue:r},n){e._modelValue=t;let o;if(Lr(t))o=Wa(t,n.props.value)>-1;else if(ps(t))o=t.has(n.props.value);else{if(t===r)return;o=to(t,ng(e,!0))}e.checked!==o&&(e.checked=o)}const cu={created(e,{value:t},r){e.checked=to(t,r.props.value),e[qr]=ro(r),xn(e,"change",()=>{e[qr](Yo(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[qr]=ro(n),t!==r&&(e.checked=to(t,n.props.value))}},rg={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const o=ps(t);xn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?oc(Yo(s)):Yo(s));e[qr](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,or(()=>{e._assigning=!1})}),e[qr]=ro(n)},mounted(e,{value:t}){Vf(e,t)},beforeUpdate(e,t,r){e[qr]=ro(r)},updated(e,{value:t}){e._assigning||Vf(e,t)}};function Vf(e,t){const r=e.multiple,n=Lr(t);if(!(r&&!n&&!ps(t))){for(let o=0,i=e.options.length;o<i;o++){const s=e.options[o],a=Yo(s);if(r)if(n){const d=typeof a;d==="string"||d==="number"?s.selected=t.some(f=>String(f)===String(a)):s.selected=Wa(t,a)>-1}else s.selected=t.has(a);else if(to(Yo(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Yo(e){return"_value"in e?e._value:e.value}function ng(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const og={created(e,t,r){Os(e,t,r,null,"created")},mounted(e,t,r){Os(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Os(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Os(e,t,r,n,"updated")}};function ig(e,t){switch(e){case"SELECT":return rg;case"TEXTAREA":return pa;default:switch(t){case"checkbox":return Fn;case"radio":return cu;default:return pa}}}function Os(e,t,r,n,o){const s=ig(e.tagName,r.props&&r.props.type)[o];s&&s(e,t,r,n)}function Jb(){pa.getSSRProps=({value:e})=>({value:e}),cu.getSSRProps=({value:e},t)=>{if(t.props&&to(t.props.value,e))return{checked:!0}},Fn.getSSRProps=({value:e},t)=>{if(Lr(e)){if(t.props&&Wa(e,t.props.value)>-1)return{checked:!0}}
vendor: 4,386 bytes, line 27
27else if(ps(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},og.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=ig(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const Gb=["ctrl","shift","alt","meta"],Yb={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Gb.some(r=>e[`${r}Key`]&&!t.includes(r))},Zo=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(o,...i)=>{for(let s=0;s<t.length;s++){const a=Yb[t[s]];if(a&&a(o,t))return}return e(o,...i)})},Zb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qi=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=o=>{if(!("key"in o))return;const i=Gn(o.key);if(t.some(s=>s===i||Zb[s]===i))return e(o)})},sg=xo({patchProp:Lb},bb);let Mi,Wf=!1;function ag(){return Mi||(Mi=mh(sg))}function lg(){return Mi=Wf?Mi:yh(sg),Wf=!0,Mi}const cg=(...e)=>{ag().render(...e)},Xb=(...e)=>{lg().hydrate(...e)},ha=(...e)=>{const t=ag().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=fg(n);if(!o)return;const i=t._component;!$h(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=r(o,!1,ug(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},uu=(...e)=>{const t=lg().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=fg(n);if(o)return r(o,!0,ug(o))},t};function ug(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function fg(e){return Jo(e)?document.querySelector(e):e}let zf=!1;const Qb=()=>{zf||(zf=!0,Jb(),xb())},m5=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Gp,BaseTransitionPropsValidators:zc,Comment:Ht,DeprecationTypes:rb,EffectScope:Lc,ErrorCodes:kv,ErrorTypeStrings:G0,Fragment:qe,KeepAlive:Zp,ReactiveEffect:Vi,Static:bo,Suspense:iu,Teleport:cs,Text:Qn,TrackOpTypes:Qy,Transition:ai,TransitionGroup:tg,TriggerOpTypes:ev,VueElement:za,assertNumber:Sv,callWithAsyncErrorHandling:Vr,callWithErrorHandling:ii,camelize:Dr,capitalize:Oa,cloneVNode:pn,compatUtils:tb,computed:xe,createApp:ha,createBlock:Ee,createCommentVNode:le,createElementBlock:V,createElementVNode:B,createHydrationRenderer:yh,createPropsRestProxy:l0,createRenderer:mh,createSSRApp:uu,createSlots:nh,createStaticVNode:Oh,createTextVNode:tt,createVNode:Se,customRef:$c,defineAsyncComponent:Ve,defineComponent:ur,defineCustomElement:Zh,defineEmits:Qv,defineExpose:e0,defineModel:n0,defineOptions:t0,defineProps:Xv,defineSSRCustomElement:Mb,defineSlots:r0,devtools:Y0,effect:xy,effectScope:xa,getCurrentInstance:Cr,getCurrentScope:no,getCurrentWatcher:tv,getTransitionRawChildren:Ma,guardReactiveProps:Va,h:br,handleError:Fo,hasInjectionContext:si,hydrate:Xb,hydrateOnIdle:Hv,hydrateOnInteraction:Vv,hydrateOnMediaQuery:qv,hydrateOnVisible:Uv,initCustomFormatter:z0,initDirectivesForSSR:Qb,inject:$t,isMemoSame:Nh,isProxy:Aa,isReactive:Qr,isReadonly:dn,isRef:St,isRuntimeOnly:q0,isShallow:Or,isVNode:Dn,markRaw:Dt,mergeDefaults:s0,mergeModels:a0,mergeProps:dr,nextTick:or,normalizeClass:Be,normalizeProps:La,normalizeStyle:se,onActivated:Ba,onBeforeMount:Jc,onBeforeUnmount:oo,onBeforeUpdate:Gc,onDeactivated:Na,onErrorCaptured:Yc,onMounted:kt,onRenderTracked:th,onRenderTriggered:eh,onScopeDispose:eo,onServerPrefetch:Qp,onUnmounted:fr,onUpdated:$a,onWatcherCleanup:Ip,openBlock:D,popScopeId:Fv,provide:Xn,proxyRefs:Hc,pushScopeId:Tv,queuePostFlushCb:Ki,reactive:nn,readonly:Nc,ref:ue,registerRuntimeCompiler:U0,render:cg,renderList:pt,renderSlot:Ze,resolveComponent:On,resolveDirective:Gv,resolveDynamicComponent:Lt,resolveFilter:eb,resolveTransitionHooks:zo,setBlockTracking:Yl,setDevtoolsHook:Z0,setTransitionHooks:Rn,shallowReactive:Cn,shallowReadonly:Vy,shallowRef:Tn,ssrContextKey:wh,ssrUtils:Q0,stop:Cy,toDisplayString:ge,toHandlerKey:Ri,toHandlers:Yv,toRaw:vt,toRef:ls,toRefs:it,toValue:Sn,transformVNodeArgs:M0,triggerRef:zy,unref:S,useAttrs:eu,useCssModule:Hb,useCssVars:jr,useHost:Xh,useId:Rv,useModel:C0,useSSRContext:Sh,use
27ShadowRoot:Nb,useSlots:i0,useTemplateRef:Ov,useTransitionState:Wc,vModelCheckbox:Fn,vModelDynamic:og,vModelRadio:cu,vModelSelect:rg,vModelText:pa,vShow:Mt,version:Hh,warn:J0,watch:cr,watchEffect:kh,watchPostEffect:k0,watchSyncEffect:xh,withAsyncContext:ih,withCtx:Te,withDefaults:o0,withDirectives:wt,withKeys:Qi,withMemo:K0,withModifiers:Zo,withScopeId:Av},Symbol.toStringTag,{value:"Module"})),e_=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,t_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,r_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function n_(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){o_(e);return}return t}function o_(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function fu(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!r_.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(e_.test(e)||t_.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,n_)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const i_=/#/g,s_=/&/g,a_=/\//g,l_=/=/g,du=/\+/g,c_=/%5e/gi,u_=/%60/gi,f_=/%7c/gi,d_=/%20/gi;function p_(e){return encodeURI(""+e).replace(f_,"|")}function cc(e){return p_(typeof e=="string"?e:JSON.stringify(e)).replace(du,"%2B").replace(d_,"+").replace(i_,"%23").replace(s_,"%26").replace(u_,"`").replace(c_,"^").replace(a_,"%2F")}function El(e){return cc(e).replace(l_,"%3D")}function ga(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function h_(e){return ga(e.replace(du," "))}function g_(e){return ga(e.replace(du," "))}function pu(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const o=h_(n[1]);if(o==="__proto__"||o==="constructor")continue;const i=g_(n[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function m_(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${El(e)}=${cc(r)}`).join("&"):`${El(e)}=${cc(t)}`:El(e)}function y_(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>m_(t,e[t])).filter(Boolean).join("&")}const v_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,b_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,__=/^([/\\]\s*){2,}[^/\\]/,w_=/^[\s\0]*(blob|data|javascript|vbscript):$/i,S_=/\/$|\/\?|\/#/,k_=/^\.?\//;function Bn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?v_.test(e):b_.test(e)||(t.acceptRelative?__.test(e):!1)}function x_(e){return!!e&&w_.test(e)}function uc(e="",t){return t?S_.test(e):e.endsWith("/")}function Ka(e="",t){if(!t)return(uc(e)?e.slice(0,-1):e)||"/";if(!uc(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");o!==-1&&(r=e.slice(0,o),n=e.slice(o));const[i,...s]=r.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function ma(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(uc(e,!0))return e||"/";let r=e,n="";const o=e.indexOf("#");if(o!==-1&&(r=e.slice(0,o),n=e.slice(o),!r))return n;const[i,...s]=r.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function C_(e=""){return e.startsWith("/")}function Kf(e=""){return C_(e)?e:"/"+e}function E_(e,t){if(pg(t)||Bn(e))return e;const r=Ka(t);if(e.startsWith(r)){const n=e[r.length];if(!n||n==="/"||n==="?")return e}return Ja(r,e)}function Jf(e,t){if(pg(t))return e;const r=Ka(t);if(!e.startsWith(r))return e;const n=e[r.length];return n&&n!=="/"&&n!=="?"?e:"/"+e.slice(r.length).replace(/^\/+/,"")}function dg(e,t){const r=mg(e),n={...pu(r.search),...t};return r.search=y_(n),A_(r)}function pg(e){return!e||e==="/"}function T_(e){return e&&e!=="/"}function Ja(e,...t){let r=e||"";for(const n of t.filter(o=>T_(o)))if(r){const o=n.replace(k_,"");r=ma(r)+o}else r=n;return r}function hg(...e){var s,a,d,f;const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let o=0;for(const u of r)if(!(!u||u==="/")){for(const[p,g]of u.split(t).entries())if(!(!g||g===".")){if(g===".."){if(n.length===1&&Bn(n[0]))continue;n.pop(),o--;continue}if(p===1&&((s=n[n.length-1])!=null&&s.endsWith(":/"))){n[n.length-1]+="/"+g;continue}n.push(g),o++}}let i=n.join("/");return o>=0?(a=r[0])!=null&&a.startsWith("/")&&!i.startsWith("/")?i="/"+i:(d=r[0])!=null&&d.startsWith("./")&&!i.startsWith("./")&&(i="./"
27+i):i="../".repeat(-1*o)+i,(f=r[r.length-1])!=null&&f.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function F_(e,t,r={}){return r.trailingSlash||(e=ma(e),t=ma(t)),r.leadingSlash||(e=Kf(e),t=Kf(t)),r.encoding||(e=ga(e),t=ga(t)),e===t}const gg=Symbol.for("ufo:protocolRelative");function mg(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,p,g=""]=r;return{protocol:p.toLowerCase(),pathname:g,href:p+g,auth:"",host:"",search:"",hash:""}}if(!Bn(e,{acceptRelative:!0}))return Gf(e);const[,n="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:d,search:f,hash:u}=Gf(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:d,search:f,hash:u,[gg]:!n}}function Gf(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function A_(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[gg]?(e.protocol||"")+"//":"")+o+i+t+r+n}class P_ extends Error{constructor(t,r){super(t,r),this.name="FetchError",r!=null&&r.cause&&!this.cause&&(this.cause=r.cause)}}function I_(e){var d,f,u,p,g;const t=((d=e.error)==null?void 0:d.message)||((f=e.error)==null?void 0:f.toString())||"",r=((u=e.request)==null?void 0:u.method)||((p=e.options)==null?void 0:p.method)||"GET",n=((g=e.request)==null?void 0:g.url)||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${o}: ${i}${t?` ${t}`:""}`,a=new P_(s,e.error?{cause:e.error}:void 0);for(const y of["request","options","response"])Object.defineProperty(a,y,{get(){return e[y]}});for(const[y,v]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,y,{get(){return e.response&&e.response[v]}});return a}const R_=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Yf(e="GET"){return R_.has(e.toUpperCase())}function O_(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const D_=new Set(["image/svg","application/xml","application/xhtml","application/html"]),L_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function j_(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return L_.test(t)?"json":t==="text/event-stream"?"stream":D_.has(t)||t.startsWith("text/")?"text":"blob"}function M_(e,t,r,n){const o=B_((t==null?void 0:t.headers)??(e==null?void 0:e.headers),r==null?void 0:r.headers,n);let i;return(r!=null&&r.query||r!=null&&r.params||t!=null&&t.params||t!=null&&t.query)&&(i={...r==null?void 0:r.params,...r==null?void 0:r.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...r,...t,query:i,params:i,headers:o}}function B_(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,i]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,i);return n}async function Ds(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const N_=new Set([408,409,425,429,500,502,503,504]),H_=new Set([101,204,205,304]);function yg(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function o(a){const d=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!d){let u;typeof a.options.retry=="number"?u=a.options.retry:u=Yf(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):N_.has(p))){const g=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return g>0&&await new Promise(y=>setTimeout(y,g)),i(a.request,{...a.options,retry:u-1})}}const f=I_(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,i),f}const i=async function(d,f={}){const u={request:d,options:M_(d,f,e.defaults,r),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await Ds(u,u.options.onRequest),u.options.headers instanceof r||(u.options.headers=new r(u.options.headers||{}))),typeof u.request=="string"&&(u.options.baseURL&&(u.request=E_(u.request,u.options.baseURL)),u.options.query&&(u.request=dg(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&Yf(u.options.method))if(O_(u.options.body)){const y=u.options.headers.get("content-type");typeof u.options.body!="string"&&(u.options.body=y==="application/x-www-form-urlencoded"?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),y||u.options.headers.set("content-type","application/json"),u.o
27ptions.headers.has("accept")||u.options.headers.set("accept","application/json")}else("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"));let p;if(!u.options.signal&&u.options.timeout){const y=new n;p=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,y.abort(v)},u.options.timeout),u.options.signal=y.signal}try{u.response=await t(u.request,u.options)}catch(y){return u.error=y,u.options.onRequestError&&await Ds(u,u.options.onRequestError),await o(u)}finally{p&&clearTimeout(p)}if((u.response.body||u.response._bodyInit)&&!H_.has(u.response.status)&&u.options.method!=="HEAD"){const y=(u.options.parseResponse?"json":u.options.responseType)||j_(u.response.headers.get("content-type")||"");switch(y){case"json":{const v=await u.response.text(),k=u.options.parseResponse||fu;u.response._data=k(v);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[y]()}}return u.options.onResponse&&await Ds(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Ds(u,u.options.onResponseError),await o(u)):u.response},s=async function(d,f){return(await i(d,f))._data};return s.raw=i,s.native=(...a)=>t(...a),s.create=(a={},d={})=>yg({...e,...d,defaults:{...e.defaults,...d.defaults,...a}}),s}const ya=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),$_=ya.fetch?(...e)=>ya.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),U_=ya.Headers,q_=ya.AbortController,V_=yg({fetch:$_,Headers:U_,AbortController:q_}),W_=V_,z_=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},va=z_().app,K_=()=>va.baseURL,J_=()=>va.buildAssetsDir,hu=(...e)=>hg(vg(),J_(),...e),vg=(...e)=>{const t=va.cdnURL||va.baseURL;return e.length?hg(t,...e):t};globalThis.__buildAssetsURL=hu,globalThis.__publicAssetsURL=vg;globalThis.$fetch||(globalThis.$fetch=W_.create({baseURL:K_()}));function fc(e,t={},r){for(const n in e){const o=e[n],i=r?`${r}:${n}`:n;typeof o=="object"&&o!==null?fc(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const G_={run:e=>e()},Y_=()=>G_,bg=typeof console.createTask<"u"?console.createTask:Y_;function Z_(e,t){const r=t.shift(),n=bg(r);return e.reduce((o,i)=>o.then(()=>n.run(()=>i(...t))),Promise.resolve())}function X_(e,t){const r=t.shift(),n=bg(r);return Promise.all(e.map(o=>n.run(()=>o(...t))))}function Tl(e,t){for(const r of[...e])r(t)}class Q_{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!n.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,o=(...i)=>(typeof n=="function"&&n(),n=void 0,o=void 0,r(...i));return n=this.hook(t,o),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const o of n)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=fc(t),n=Object.keys(r).map(o=>this.hook(o,r[o]));return()=>{for(const o of n.splice(0,n.length))o()}}removeHooks(t){const r=fc(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(Z_,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(X_,t,...r)}callHookWith(t,r,...n){const o=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Tl(this._before,o);const i=t(r in this._hooks?[...this._hooks[r]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&o&&Tl(this._after,o)}):(this._after&&o&&Tl(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function _g(){return new Q_}function e1(e={}){let t,r=!1;const n=s=>{if(t&&t!==s)throw new Error("Context conflict")};let o;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?o=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>
27{if(o){const s=o.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=i();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>i(),set:(s,a)=>{a||n(s),t=s,r=!0},unset:()=>{t=void 0,r=!1},call:(s,a)=>{n(s),t=s;try{return o?o.run(s,a):a()}finally{r||(t=void 0)}},async callAsync(s,a){t=s;const d=()=>{t=s},f=()=>t===s?d:void 0;dc.add(f);try{const u=o?o.run(s,a):a();return r||(t=void 0),await u}finally{dc.delete(f)}}}}function t1(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=e1({...e,...n})),t[r]}}}const ba=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Zf="__unctx__",r1=ba[Zf]||(ba[Zf]=t1()),n1=(e,t={})=>r1.get(e,t),Xf="__unctx_async_handlers__",dc=ba[Xf]||(ba[Xf]=new Set);function Bi(e){const t=[];for(const o of dc){const i=o();i&&t.push(i)}const r=()=>{for(const o of t)o()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(o=>{throw r(),o})),[n,r]}const pc=!1,o1=!1,Ho={value:null,errorValue:null,deep:!0},i1=null,s1={},a1="#__nuxt",wg="nuxt-app",Qf=36e5,l1="vite:preloadError";function Sg(e=wg){return n1(e,{asyncContext:!1})}const c1="__nuxt_plugin";function u1(e){var o;let t=0;const r={_id:e.id||wg||"nuxt-app",_scope:xa(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return r.vueApp.version}},payload:Cn({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:Cn({}),state:nn({}),once:new Set,_errors:Cn({})}),static:{data:{}},runWithContext(i){return r._scope.active&&!no()?r._scope.run(()=>ed(r,i)):ed(r,i)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Cn({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const s in i)switch(s){case"data":case"state":case"_errors":Object.assign(r.payload[s],i[s]);break;default:r.payload[s]=i[s]}}r.hooks=_g(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(i,s)=>{const a="$"+i;Ls(r,a,s),Ls(r.vueApp.config.globalProperties,a,s)},Ls(r.vueApp,"$nuxt",r),Ls(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(l1,s=>{r.callHook("app:chunkError",{error:s.payload}),(r.isHydrating||s.payload.message.includes("Unable to preload CSS"))&&s.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Tt);const i=r.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});r.hook("app:mounted",i)}const n=r.payload.config;return r.provide("config",n),r}function f1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function d1(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function p1(e,t){const r=[],n=[],o=[],i=[];let s=0;async function a(d){var u;const f=((u=d.dependsOn)==null?void 0:u.filter(p=>t.some(g=>g._name===p)&&!r.includes(p)))??[];if(f.length>0)n.push([new Set(f),d]);else{const p=d1(e,d).then(async()=>{d._name&&(r.push(d._name),await Promise.all(n.map(async([g,y])=>{g.has(d._name)&&(g.delete(d._name),g.size===0&&(s++,await a(y)))})))});d.parallel?o.push(p.catch(g=>i.push(g))):await p}}for(const d of t)f1(e,d);for(const d of t)await a(d);if(await Promise.all(o),s)for(let d=0;d<s;d++)await Promise.all(o);if(i.length)throw i[0]}function Wr(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[c1]:!0,_name:t})}const h1=Wr;function ed(e,t,r){const n=()=>t();return Sg(e._id).set(e),e.vueApp.runWithContext(n)}function kg(e){var r;let t;return si()&&(t=(r=Cr())==null?void 0:r.appContext.app.$nuxt),t||(t=Sg(e).tryUse()),t||null}function Tt(e){const t=kg(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function en(e){return Tt().$config}function Ls(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function g1(e,t){return{ctx:{table:e},matchAll:r=>Cg(r,e)}}function xg(e){const t={};for(const r in e)t[r]=r==="dynamic"?new Map(Object.entries(e[r]).map(([n,o])=>[n,xg(o)])):new Map(Object.entries(e[r]));return t}function m1(e){return g1(xg(e))}function Cg(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const n=[];for(const[i,s]of td(t.wildcard))(e===i||e.startsWith(i+"/"))&&n.push(s);for(const[i,s]of td(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");n.push(...Cg(a,s))}const o=t.static.get(e);
27return o&&n.push(o),n.filter(Boolean)}function td(e){return[...e.entries()].sort((t,r)=>t[0].length-r[0].length)}function Fl(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function hc(e,t,r=".",n){if(!Fl(t))return hc(e,{},r,n);const o={...t};for(const i of Object.keys(e)){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(n&&n(o,i,s,r)||(Array.isArray(s)&&Array.isArray(o[i])?o[i]=[...s,...o[i]]:Fl(s)&&Fl(o[i])?o[i]=hc(s,o[i],(r?`${r}.`:"")+i.toString(),n):o[i]=s))}return o}function y1(e){return(...t)=>t.reduce((r,n)=>hc(r,n,"",e),{})}const Eg=y1();function v1(e,t){try{return t in e}catch{return!1}}class gc extends Error{constructor(r,n={}){super(r,n);Fr(this,"statusCode",500);Fr(this,"fatal",!1);Fr(this,"unhandled",!1);Fr(this,"statusMessage");Fr(this,"data");Fr(this,"cause");n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const r={message:this.message,statusCode:mc(this.statusCode,500)};return this.statusMessage&&(r.statusMessage=Tg(this.statusMessage)),this.data!==void 0&&(r.data=this.data),r}}Fr(gc,"__h3_error__",!0);function Js(e){if(typeof e=="string")return new gc(e);if(b1(e))return e;const t=new gc(e.message??e.statusMessage??"",{cause:e.cause||e});if(v1(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=mc(e.statusCode,t.statusCode):e.status&&(t.statusCode=mc(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;Tg(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function b1(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const _1=/[^\u0009\u0020-\u007E]/g;function Tg(e=""){return e.replace(_1,"")}function mc(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const w1=Symbol("layout-meta"),Ga=Symbol("route"),rr=()=>{var e;return(e=Tt())==null?void 0:e.$router},Ln=()=>si()?$t(Ga,Tt()._route):Tt()._route;function y5(e){return e}const S1=()=>{try{if(Tt()._processingMiddleware)return!0}catch{return!1}return!1},Fg=(e,t)=>
27{e||(e="/");const r=typeof e=="string"?e:"path"in e?yc(e):rr().resolve(e).href;if(t!=null&&t.open){const{target:d="_blank",windowFeatures:f={}}=t.open,u=Object.entries(f).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p.toLowerCase()}=${g}`).join(", ");return open(r,d,u),Promise.resolve()}const n=Bn(r,{acceptRelative:!0}),o=(t==null?void 0:t.external)||n;if(o){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:d}=new URL(r,window.location.href);if(d&&x_(d))throw new Error(`Cannot navigate to a URL with '${d}' protocol.`)}const i=S1();if(!o&&i){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:d,search:f,hash:u}=mg(e);return{path:d,...f&&{query:pu(f)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const s=rr(),a=Tt();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(r):location.href=r,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)};function yc(e){return dg(e.path||"",e.query||{})+(e.hash||"")}const Ag="__nuxt_error",Ya=()=>ls(Tt().payload,"error"),zn=e=>{const t=Za(e);try{const r=Tt(),n=Ya();r.hooks.callHook("app:error",t),n.value||(n.value=t)}catch{throw t}return t},Pg=async(e={})=>{const t=Tt(),r=Ya();t.callHook("app:error:cleared",e),e.redirect&&await rr().replace(e.redirect),r.value=i1},Ig=e=>!!e&&typeof e=="object"&&Ag in e,Za=e=>{const t=Js(e);return Object.defineProperty(t,Ag,{value:!0,configurable:!1,writable:!1}),t};/*!
28 * pinia v3.0.2
29 * (c) 2025 Eduardo San Martin Morote
30 * @license MIT
31 */let Rg;const hs=e=>Rg=e,Og=Symbol();function vc(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ni;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ni||(Ni={}));function k1(){const e=xa(!0),t=e.run(()=>ue({}));let r=[],n=[];const o=Dt({install(i){hs(o),o._a=i,i.provide(Og,o),i.config.globalProperties.$pinia=o,n.forEach(s=>r.push(s)),n=[]},use(i){return this._a?r.push(i):n.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}const Dg=()=>{};function rd(e,t,r,n=Dg){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!r&&no()&&eo(o),o}function Lo(e,...t){e.slice().forEach(r=>{r(...t)})}const x1=e=>e(),nd=Symbol(),Al=Symbol();function bc(e,t){e instanceof Map&&t instanceof Map?t.forEach((r,n)=>e.set(n,r)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],o=e[r];vc(o)&&vc(n)&&e.hasOwnProperty(r)&&!St(n)&&!Qr(n)?e[r]=bc(o,n):e[r]=n}return e}const C1=Symbol();function E1(e){return!vc(e)||!Object.prototype.hasOwnProperty.call(e,C1)}const{assign:$n}=Object;function T1(e){return!!(St(e)&&e.effect)}function F1(e,t,r,n){const{state:o,actions:i,getters:s}=t,a=r.state.value[e];let d;function f(){a||(r.state.value[e]=o?o():{});const u=it(r.state.value[e]);return $n(u,i,Object.keys(s||{}).reduce((p,g)=>(p[g]=Dt(xe(()=>{hs(r);const y=r._s.get(e);return s[g].call(y,y)})),p),{}))}return d=Lg(e,f,t,r,n,!0),d}function Lg(e,t,r={},n,o,i){let s;const a=$n({actions:{}},r),d={deep:!0};let f,u,p=[],g=[],y;const v=n.state.value[e];!i&&!v&&(n.state.value[e]={}),ue({});let k;function C(H){let $;f=u=!1,typeof H=="function"?(H(n.state.value[e]),$={type:Ni.patchFunction,storeId:e,events:y}):(bc(n.state.value[e],H),$={type:Ni.patchObject,payload:H,storeId:e,events:y});const ee=k=Symbol();or().then(()=>{k===ee&&(f=!0)}),u=!0,Lo(p,$,n.state.value[e])}const E=i?function(){const{state:$}=r,ee=$?$():{};this.$patch(j=>{$n(j,ee)})}:Dg;function w(){s.stop(),p=[],g=[],n._s.delete(e)}const _=(H,$="")=>{if(nd in H)return H[Al]=$,H;const ee=function(){hs(n);const j=Array.from(arguments),W=[],ie=[];function ce(me){W.push(me)}function pe(me){ie.push(me)}Lo(g,{args:j,name:ee[Al],store:F,after:ce,onError:pe});let ae;try{ae=H.apply(this&&this.$id===e?this:F,j)}catch(me){throw Lo(ie,me),me}return ae instanceof Promise?ae.then(me=>(Lo(W,me),me)).catch(me=>(Lo(ie,me),Promise.reject(me))):(Lo(W,ae),ae)};return ee[nd]=!0,ee[Al]=$,ee},T={_p:n,$id:e,$onAction:rd.bind(null,g),$patch:C,$reset:E,$subscribe(H,$={}){const ee=rd(p,H,$.detached,()=>j()),j=s.run(()=>cr(()=>n.state.value[e],W=>{($.flush==="sync"?u:f)&&H({storeId:e,type:Ni.direct,events:y},W)},$n({},d,$)));return ee},$dispose:w},F=nn(T);n._s.set(e,F);const P=(n._a&&n._a.runWithContext||x1)(()=>n._e.run(()=>(s=xa()).run(()=>t({action:_}))));for(const H in P){const $=P[H];if(St($)&&!T1($)||Qr($))i||(v&&E1($)&&(St($)?$.value=v[H]:bc($,v[H])),n.state.value[e][H]=$);else if(typeof $=="function"){const ee=_($,H);P[H]=ee,a.actions[H]=$}}return $n(F,P),$n(vt(F),P),Object.defineProperty(F,"$state",{get:()=>n.state.value[e],set:H=>{C($=>{$n($,H)})}}),n._p.forEach(H=>{$n(F,s.run(()=>H({store:F,app:n._a,pinia:n,options:a})))}),v&&i&&r.hydrate&&r.hydrate(F.$state,v),f=!0,u=!0,F}/*! #__NO_SIDE_EFFECTS__ */function gs(e,t,r){let n;const o=typeof t=="function";n=o?r:t;function i(s,a){const d=si();return s=s||(d?$t(Og,null):null),s&&hs(s),s=Rg,s._s.has(e)||(o?Lg(e,t,n,s):F1(e,n,s)),s._s.get(e)}return i.$id=e,i}function ot(e){const t=vt(e),r={};for(const n in t){const o=t[n];o.effect?r[n]=xe({get:()=>e[n],set(i){e[n]=i}}):(St(o)||Qr(o))&&(r[n]=ls(e,n))}return r}const A1=new Set(["link","style","script","noscript"]),P1=new Set(["title","titleTemplate","script","style","noscript"]),od=new Set(["base","meta","link","style","script","noscript"]),I1=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),R1=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),O1=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),v5=new Set(["onload","onerror"]),D1=new Set(["templateParams","htmlAttrs","bodyAttrs"]),L1=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const j1=["name","property","http-equiv"],M1=new Set(["viewport","description","keywords","robots"]);function jg(e){const t=e.split(":");return t.length?L1.has(t[1]):!1}function _c(e){const{props:t,tag:r}=e;if(R1.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of j1)if(t[n]!==void 0){const o=t[n],i=o.includes(":"),s=M1.has(o),d=!(i||s)&&e.key?`:key:${e.key}`:"";return`${r}:${o}${d}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(P1.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function id(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,o])=>`${n}:${String(o)}`).join(",")}`}function _a(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let o;if(t&&(o=t(r,e)),Array.isArray(o))return o.map(i=>_a(i,t));if((o==null?void 0:o.constructor)===Object){const i={};for(const s of Object.keys(o))i[s]=_a(o[s],t,s);return i}return o}function B1(e,t){const r=e==="style"?new Map:new Set;function n(o){const i=o.trim();if(i)if(e==="style"){const[s,...a]=i.split(":").map(d=>d.trim());s&&a.length&&r.set(s,a.join(":"))}
31else i.split(" ").filter(Boolean).forEach(s=>r.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(o=>n(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,i])=>{i&&i!=="false"&&(e==="style"?r.set(o.trim(),i):n(o))}),r}function Mg(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=B1(r,n);return}if(O1.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let s=t.type;if(t.type||(s="application/json"),!(s!=null&&s.endsWith("json"))&&s!=="speculationrules")return;t.type=s,e.props.type=s,e[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),i=r.startsWith("data-");o==="true"||o===""?e.props[r]=i?o:!0:!n&&i&&o==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function N1(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=Mg({tag:e,props:{}},r);return n.key&&A1.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(o=>({...n,props:{...n.props,content:o}})):n}function H1(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(o,i)=>{for(let s=0;s<t.length;s++)i=t[s](o,i);return i};e=r(void 0,e);const n=[];return e=_a(e,r),Object.entries(e||{}).forEach(([o,i])=>{if(i!==void 0)for(const s of Array.isArray(i)?i:[i])n.push(N1(o,s))}),n.flat()}const wc=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,sd={base:-10,title:10},$1={critical:-8,high:-1,low:2},ad={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},U1=/@import/,ki=e=>e===""||e===!0;function q1(e,t){var i;if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=$1[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:ad;if(t.tag in sd)r=sd[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(r=ad.meta[s])}else t.tag==="link"&&t.props.rel?r=o.link[t.props.rel]:t.tag==="script"?ki(t.props.async)?r=o.script.async:t.props.src&&!ki(t.props.defer)&&!ki(t.props.async)&&t.props.type!=="module"&&!((i=t.props.type)!=null&&i.endsWith("json"))?r=o.script.sync:ki(t.props.defer)&&t.props.src&&!ki(t.props.async)&&(r=o.script.defer):t.tag==="style"&&(r=t.innerHTML&&U1.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function ld(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function V1(e={}){var a;const t=_g();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,i=new Set,s={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:d=>ld(s,d),push(d,f){const u={...f||{}};delete u.head;const p=u._index??s._entryCount++,g={_i:p,input:d,options:u},y={_poll(v=!1){s.dirty=!0,!v&&i.add(p),t.callHook("entries:updated",s)},dispose(){n.delete(p)&&s.invalidate()},patch(v){(!u.mode||u.mode==="server"&&r||u.mode==="client"&&!r)&&(g.input=v,n.set(p,g),y._poll())}};return y.patch(d),y},async resolveTags(){var y;const d={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",d);i.size;){const v=i.values().next().value;i.delete(v);const k=n.get(v);if(k){const C={tags:H1(k.input,e.propResolvers||[]).map(E=>Object.assign(E,k.options)),entry:k};await t.callHook("entries:normalize",C),k._tags=C.tags.map((E,w)=>(E._w=q1(s,E),E._p=(k._i<<10)+w,E._d=_c(E),E))}}let f=!1;d.entries.flatMap(v=>(v._tags||[]).map(k=>({...k,props:{...k.props}}))).sort(wc).reduce((v,k)=>{const C=String(k._d||k._p);if(!v.has(C))return v.set(C,k);const E=v.get(C);if(((k==null?void 0:k.tagDuplicateStrategy)||(D1.has(k.tag)?"merge":null)||(k.key&&k.key===E.key?"merge":null))==="merge"){const _={...E.props};
31Object.entries(k.props).forEach(([T,F])=>_[T]=T==="style"?new Map([...E.props.style||new Map,...F]):T==="class"?new Set([...E.props.class||new Set,...F]):F),v.set(C,{...k,props:_})}else k._p>>10===E._p>>10&&k.tag==="meta"&&jg(C)?(v.set(C,Object.assign([...Array.isArray(E)?E:[E],k],k)),f=!0):(k._w===E._w?k._p>E._p:(k==null?void 0:k._w)<(E==null?void 0:E._w))&&v.set(C,k);return v},d.tagMap);const u=d.tagMap.get("title"),p=d.tagMap.get("titleTemplate");if(s._title=u==null?void 0:u.textContent,p){const v=p==null?void 0:p.textContent;if(s._titleTemplate=v,v){let k=typeof v=="function"?v(u==null?void 0:u.textContent):v;typeof k=="string"&&!s.plugins.has("template-params")&&(k=k.replace("%s",(u==null?void 0:u.textContent)||"")),u?k===null?d.tagMap.delete("title"):d.tagMap.set("title",{...u,textContent:k}):(p.tag="title",p.textContent=k)}}d.tags=Array.from(d.tagMap.values()),f&&(d.tags=d.tags.flat().sort(wc)),await t.callHook("tags:beforeResolve",d),await t.callHook("tags:resolve",d),await t.callHook("tags:afterResolve",d);const g=[];for(const v of d.tags){const{innerHTML:k,tag:C,props:E}=v;if(I1.has(C)&&!(Object.keys(E).length===0&&!v.innerHTML&&!v.textContent)&&!(C==="meta"&&!E.content&&!E["http-equiv"]&&!E.charset)){if(C==="script"&&k){if((y=E.type)!=null&&y.endsWith("json")){const w=typeof k=="string"?k:JSON.stringify(k);v.innerHTML=w.replace(/</g,"\\u003C")}else typeof k=="string"&&(v.innerHTML=k.replace(new RegExp(`</${C}`,"g"),`<\\/${C}`));v._d=_c(v)}g.push(v)}}return g},invalidate(){for(const d of n.values())i.add(d._i);s.dirty=!0,t.callHook("entries:updated",s)}};return((e==null?void 0:e.plugins)||[]).forEach(d=>ld(s,d)),s.hooks.callHook("init",s),(a=e.init)==null||a.forEach(d=>d&&s.push(d)),s}const Kn="%separator",W1=new RegExp(`${Kn}(?:\\s*${Kn})*`,"g");function z1(e,t,r=!1){var o;let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const i=t.indexOf(".");n=(o=e[t.substring(0,i)])==null?void 0:o[t.substring(i+1)]}else n=e[t];if(n!==void 0)return r?(n||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):n||""}function js(e,t,r,n=!1){if(typeof e!="string"||!e.includes("%"))return e;let o=e;try{o=decodeURI(e)}catch{}const i=o.match(/%\w+(?:\.\w+)?/g);if(!i)return e;const s=e.includes(Kn);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Kn||!i.includes(a))return a;const d=z1(t,a.slice(1),n);return d!==void 0?d:a}).trim(),s&&(e.endsWith(Kn)&&(e=e.slice(0,-Kn.length)),e.startsWith(Kn)&&(e=e.slice(Kn.length)),e=e.replace(W1,r||"").trim()),e}const cd=e=>e.includes(":key")?e:e.split(":").join(":key:"),K1={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const n=r.tagPriority;if(!n)continue;const o=String(n);if(o.startsWith("before:")){const i=cd(o.slice(7)),s=e.tagMap.get(i);s&&(typeof s.tagPriority=="number"&&(r.tagPriority=s.tagPriority),r._p=s._p-1,t=!0)}else if(o.startsWith("after:")){const i=cd(o.slice(6)),s=e.tagMap.get(i);s&&(typeof s.tagPriority=="number"&&(r.tagPriority=s.tagPriority),r._p=s._p+1,t=!0)}}t&&(e.tags=e.tags.sort(wc))}}},J1={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function Sc(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(r=>Sc(r)));if((e==null?void 0:e.constructor)===Object){const r={};for(const n of Object.keys(e))r[n]=await Sc(e[n]);return r}return e}const G1={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(Sc(e.entries[r].input).then(n=>{e.entries[r].input=n,e.entries[r]._promisesProcessed=!0}));await Promise.all(t)}}},Y1={meta:"content",link:"href",htmlAttrs:"lang"},Z1=["innerHTML","textContent"],X1=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var n,o,i;const r=((o=(n=t.tags.filter(s=>s.tag==="templateParams"&&s.mode==="server"))==null?void 0:n[0])==null?void 0:o.props)||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...((i=e._ssrPayload)==null?void 0:i.templateParams)||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{var i;const n=((i=t.get("templateParams"))==null?void 0:i.props)||{},o=n.separator||"|";delete n.separator,n.pageTitle=js(n.pageTitle||e._title||"",n,o);for(const s of r){if(s.processTemplateParams===!1)continue;const a=Y1[s.tag];if(a&&typeof s.props[a]=="string")s.props[a]=js(s.props[a],n,o);else if(s.processTemplateParams||s.tag==="titleTemplate"||s.tag==="title")for(const d of Z1)typeof s[d]=="string"&&(s[d]=js(s[d],n,o,s.tag==="script"&&s.props.type.endsWith("json")))}e._templateParams=n,e._separator=o},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r!=null&&r.textContent&&r.processTemplateParams!==!1&&(r.textContent=js(r.textContent,e._templateParams,e._separator))}}}),Q1=(e,t)=>St(t)?Sn(t):t,gu="usehead";function ew(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(gu,e)}}.install}
31function tw(){if(si()){const e=$t(gu);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function rw(e,t={}){const r=t.head||tw();return r.ssr?r.push(e||{},t):nw(r,e,t)}function nw(e,t,r={}){const n=ue(!1);let o;return kh(()=>{const s=n.value?{}:_a(t,Q1);o?o.patch(s):o=e.push(s,r)}),Cr()&&(oo(()=>{o.dispose()}),Na(()=>{n.value=!0}),Ba(()=>{n.value=!1})),o}function ow(e){var r;const t=e||kg();return((r=t==null?void 0:t.ssrContext)==null?void 0:r.head)||(t==null?void 0:t.runWithContext(()=>{if(si())return $t(gu)}))}function mu(e,t={}){const r=ow(t.nuxt);if(r)return rw(e,{head:r,...t})}const iw="modulepreload",sw=function(e,t){return new URL(e,t).href},ud={},He=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let s=function(u){return Promise.all(u.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const a=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));o=s(r.map(u=>{if(u=sw(u,n),u in ud)return;ud[u]=!0;const p=u.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(!!n)for(let k=a.length-1;k>=0;k--){const C=a[k];if(C.href===u&&(!p||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${g}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":iw,p||(v.as="script"),v.crossOrigin="",v.href=u,f&&v.setAttribute("nonce",f),document.head.appendChild(v),p)return new Promise((k,C)=>{v.addEventListener("load",k),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};let Gs,Ys;function aw(){return Gs=$fetch(hu(`builds/meta/${en().app.buildId}.json`),{responseType:"json"}),Gs.then(e=>{Ys=m1(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Gs}function Xa(){return Gs||aw()}async function yu(e){const t=typeof e=="string"?e:e.path;if(await Xa(),!Ys)return console.error("[nuxt] Error creating app manifest matcher.",Ys),{};try{return Eg({},...Ys.matchAll(t).reverse())}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function fd(e,t={}){if(!await Bg(e))return null;const n=await cw(e,t);return await uw(n)||null}const lw="_payload.js";async function cw(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||Bn(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const n=en(),o=t.hash||(t.fresh?Date.now():n.app.buildId),i=n.app.cdnURL,s=i&&await Bg(e)?i:n.app.baseURL;return Ja(s,r.pathname,lw+(o?`?${o}`:""))}async function uw(e){const t=import(e).then(r=>r.default||r);try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}async function Bg(e=Ln().path){const t=Tt();return e=Ka(e),(await Xa()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const n=await yu({path:e});return!!n.prerender&&!n.redirect})}function fw(e,t){Tt()._payloadRevivers[e]=t}const dw=h1(()=>{fw("skipHydrate",e=>{})});async function vu(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{var y;const i=new Map,s=new Promise(v=>{e.resolveTags().then(k=>{v(k.map(C=>{const E=i.get(C._d)||0,w={tag:C,id:(E?`${C._d}:${E}`:C._d)||id(C),shouldRender:!0};return C._d&&jg(C._d)&&i.set(C._d,E+1),w}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const v of["body","head"]){const k=(y=r[v])==null?void 0:y.children;for(const C of k){const E=C.tagName.toLowerCase();if(!od.has(E))continue;const w=Mg({tag:E,props:{}},{innerHTML:C.innerHTML,...C.getAttributeNames().reduce((_,T)=>(_[T]=C.getAttribute(T),_),{})||{}});if(w.key=C.getAttribute("data-hid")||void 0,w._d=_c(w)||id(w),a.elMap.has(w._d)){let _=1,T=w._d;for(;a.elMap.has(T);)T=`${w._d}:${_++}`;a.elMap.set(T,C)}else a.elMap.set(w._d,C)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function d(v,k,C){const E=`${v}:${k}`;a.sideEffects[E]=C,delete a.pendingSideEffects[E]}function f({id:v,$el:k,tag:C}){const E=C.tag.endsWith("Attrs");a.elMap.set(v,k),E||(C.textContent&&C.textContent!==k.textContent&&(k.textContent=C.textContent),C.innerHTML&&C.innerHTML!==k.innerHTML&&(k.innerHTML=C.innerHTML),d(v,"el",()=>{k==null||k.remove(),a.elMap.delete(v)}));for(const w in C.props){if(!Object.prototype.hasOwnProperty.call(C.props,w))continue;const _=C.props[w];if(w.startsWith("on")&&typeof _=="function"){const F=k==null?void 0:k.dataset;if(F&&F[`${w}fired`]){const I=w.slice(0,-5);_.call(k,new Event(I.substring(2)))}k.getAttribute(`data-${w}`)!==""&&((C.tag==="bodyAttrs"?r.defaultView:k).addEventListener(w.substring(2),_.bind(k)),k.setAttribute(`data-${w}`,""));continue}const T=`attr:${w}`;if(w==="class"){if(!_)continue;for(const F of _)E&&d(v,`${T}:${F}`,()=>k.classList.remove(F)),!k.classList.contains(F)&&k.classList.add(F)}else if(w==="style"){if(!_)continue;for(const[F,I]of _)d(v,`${T}:${F}`,()=>{k.style.removeProperty(F)}),k.style.setProperty(F,I)}else _!==!1&&_!==null&&(k.getAttribute(w)!==_&&k.setAttribute(w,_===!0?"":String(_)),E&&d(v,T,()=>k.removeAttribute(w)))}}const u=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0},g=await s;for(const v of g){const{tag:k,shouldRender:C,id:E}=v;if(C){if(k.tag==="title"){r.title=k.textContent,d("title","",()=>r.title=a.title);continue}v.$el=v.$el||a.elMap.get(E),v.$el?f(v):od.has(k.tag)&&u.push(v)}}for(const v of u){const k=v.tag.tagPosition||"head";v.$el=r.createElement(v.tag.tag),f(v),p[k]=p[k]||r.createDocumentFragment(),p[k].appendChild(v.$el)}for(const v of g)await e.hooks.callHook("dom:renderTag",v,r,d);p.head&&r.head.appendChild(p.head),p.bodyOpen&&r.body.insertBefore(p.bodyOpen,r.body.firstChild),p.bodyClose&&r.body.appendChild(p.bodyClose);for(const v in a.pendingSideEffects)a.pendingSideEffects[v]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:g}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function pw(e={}){var n,o,i;const t=((n=e.domOptions)==null?void 0:n.render)||vu;e.document=e.document||(typeof window<"u"?document:void 0);const r=((i=(o=e.document)==null?void 0:o.head.querySelector('script[id="unhead:payload"]'))==null?void 0:i.innerHTML)||!1;return V1({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function hw(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function gw(e={}){const t=pw({domOptions:{render:hw(()=>vu(t),r=>setTimeout(r,0))},...e});return t.install=ew(t),t}const mw={disableDefaults:!0,disableCapoSorting:!1,plugins:[J1,G1,X1,K1]},yw=Wr({name:"nuxt:head",enforce:"pre",setup(e){const t=gw(mw);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await vu(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});/*!
32  * vue-router v4.5.1
33  * (c) 2025 Eduardo San Martin Morote
34  * @license MIT
35  */const Bo=typeof document<"u";function Ng(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
vendor: 13,050 bytes, line 35
35function vw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ng(e.default)}const _t=Object.assign;function Pl(e,t){const r={};for(const n in t){const o=t[n];r[n]=tn(o)?o.map(e):e(o)}return r}const Hi=()=>{},tn=Array.isArray,Hg=/#/g,bw=/&/g,_w=/\//g,ww=/=/g,Sw=/\?/g,$g=/\+/g,kw=/%5B/g,xw=/%5D/g,Ug=/%5E/g,Cw=/%60/g,qg=/%7B/g,Ew=/%7C/g,Vg=/%7D/g,Tw=/%20/g;function bu(e){return encodeURI(""+e).replace(Ew,"|").replace(kw,"[").replace(xw,"]")}function Fw(e){return bu(e).replace(qg,"{").replace(Vg,"}").replace(Ug,"^")}function kc(e){return bu(e).replace($g,"%2B").replace(Tw,"+").replace(Hg,"%23").replace(bw,"%26").replace(Cw,"`").replace(qg,"{").replace(Vg,"}").replace(Ug,"^")}function Aw(e){return kc(e).replace(ww,"%3D")}function Pw(e){return bu(e).replace(Hg,"%23").replace(Sw,"%3F")}function Iw(e){return e==null?"":Pw(e).replace(_w,"%2F")}function es(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Rw=/\/$/,Ow=e=>e.replace(Rw,"");function Il(e,t,r="/"){let n,o={},i="",s="";const a=t.indexOf("#");let d=t.indexOf("?");return a<d&&a>=0&&(d=-1),d>-1&&(n=t.slice(0,d),i=t.slice(d+1,a>-1?a:t.length),o=e(i)),a>-1&&(n=n||t.slice(0,a),s=t.slice(a,t.length)),n=Mw(n??t,r),{fullPath:n+(i&&"?")+i+s,path:n,query:o,hash:es(s)}}function Dw(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function dd(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Lw(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Xo(t.matched[n],r.matched[o])&&Wg(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Xo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Wg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!jw(e[r],t[r]))return!1;return!0}function jw(e,t){return tn(e)?pd(e,t):tn(t)?pd(t,e):e===t}function pd(e,t){return tn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Mw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),o=n[n.length-1];(o===".."||o===".")&&n.push("");let i=r.length-1,s,a;for(s=0;s<n.length;s++)if(a=n[s],a!==".")if(a==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(s).join("/")}const Jr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ts;(function(e){e.pop="pop",e.push="push"})(ts||(ts={}));var $i;(function(e){e.back="back",e.forward="forward",e.unknown=""})($i||($i={}));function Bw(e){if(!e)if(Bo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ow(e)}const Nw=/^[^#]+#/;function Hw(e,t){return e.replace(Nw,"#")+t}function $w(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Qa=()=>({left:window.scrollX,top:window.scrollY});function Uw(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=$w(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function hd(e,t){return(history.state?history.state.position-t:-1)+e}const xc=new Map;function qw(e,t){xc.set(e,t)}function Vw(e){const t=xc.get(e);return xc.delete(e),t}let Ww=()=>location.protocol+"//"+location.host;function zg(e,t){const{pathname:r,search:n,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,d=o.slice(a);return d[0]!=="/"&&(d="/"+d),dd(d,"")}return dd(r,e)+n+o}function zw(e,t,r,n){let o=[],i=[],s=null;const a=({state:g})=>{const y=zg(e,location),v=r.value,k=t.value;let C=0;if(g){if(r.value=y,t.value=g,s&&s===v){s=null;return}C=k?g.position-k.position:0}else n(y);o.forEach(E=>{E(r.value,v,{delta:C,type:ts.pop,direction:C?C>0?$i.forward:$i.back:$i.unknown})})};function d(){s=r.value}function f(g){o.push(g);const y=()=>{const v=o.indexOf(g);v>-1&&o.splice(v,1)};return i.push(y),y}function u(){const{history:g}=window;g.state&&g.replaceState(_t({},g.state,{scroll:Qa()}),"")}function p(){for(const g of i)g();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:d,listen:f,destroy:p}}function gd(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?Qa():null}}function Kw(e){const{history:t,location:r}=window,n={value:zg(e,r)},o={value:t.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(d,f,u){const p=e.indexOf("#"),g=p>-1?(r.host&&document.querySelector("base")?e:e.slice(p))+d:Ww()+e+d;try{t[u?"replaceState":"pushState"](f,"",g),o.value=f}catch(y){console.error(y),r[u?"replace":"assign"](g)}}function s(d,f){const u=_t({},t.state,gd(o.value.back,d,o.value.forward,!0),f,{position:o.value.position});i(d,u,!0),n.value=d}function a(d,f){const u=_t({},o.value,t.state,{forward:d,scroll:Qa()});i(u.current,u,!0);const p=_t({},gd(n.value,d,null),{position:u.position+1},f);i(d,p,!1),n.value=d}return{location:n,state:o,push:a,replace:s}}function Jw(e){e=Bw(e);const t=Kw(e),r=zw(e,t.state,t.location,t.replace);function n(i,s=!0){s||r.pauseListeners(),history.go(i)}const o=_t({location:"",base:e,go:n,createHref:Hw.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Gw(e){return typeof e=="string"||e&&typeof e=="object"}function Kg(e){return typeof e=="string"||typeof e=="symbol"}const Jg=Symbol("");var md;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(md||(md={}));function Qo(e,t){return _t(new Error,{type:e,[Jg]:!0},t)}function bn(e,t){return e instanceof Error&&Jg in e&&(t==null||!!(e.type&t))}const yd="[^/]+?",Yw={sensitive:!1,strict:!1,start:!0,end:!0},Zw=/[.+*?^${}()[\]/\\]/g;function Xw(e,t){const r=_t({},Yw,t),n=[];let o=r.start?"^":"";const i=[];for(const f of e){const u=f.length?[]:[90];r.strict&&!f.length&&(o+="/");for(let p=0;p<f.length;p++){const g=f[p];let y=40+(r.sensitive?.25:0);if(g.type===0)p||(o+="/"),o+=g.value.replace(Zw,"\\$&"),y+=40;else if(g.type===1){const{value:v,repeatable:k,optional:C,regexp:E}=g;i.push({name:v,repeatable:k,optional:C});const w=E||yd;if(w!==yd){y+=10;try{new RegExp(`(${w})`)}catch(T){throw new Error(`Invalid custom RegExp for param "${v}" (${w}): `+T.message)}}let _=k?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;p||(_=C&&f.length<2?`(?:/${_})`:"/"+_),C&&(_+="?"),o+=_,y+=20,C&&(y+=-8),k&&(y+=-20),w===".*"&&(y+=-50)}u.push(y)}n.push(u)}if(r.strict&&r.end){const f=n.length-1;n[f][n[f].length-1]+=.7000000000000001}r.strict||(o+="/?"),r.end?o+="$":r.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,r.sensitive?"":"i");function a(f){const u=f.match(s),p={};if(!u)return null;for(let g=1;g<u.length;g++){const y=u[g]||"",v=i[g-1];p[v.name]=y&&v.repeatable?y.split("/"):y}return p}function d(f){let u="",p=!1;for(const g of e){(!p||!u.endsWith("/"))&&(u+="/"),p=!1;for(const y of g)if(y.type===0)u+=y.value;else if(y.type===1){const{value:v,repeatable:k,optional:C}=y,E=v in f?f[v]:"";if(tn(E)&&!k)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const w=tn(E)?E.join("/"):E;if(!w)if(C)g.length<2&&(u.endsWith("/")?u=u.slice(0,-1):p=!0);else throw new Error(`Missing required param "${v}"`);u+=w}}return u||"/"}return{re:s,score:n,keys:i,parse:a,stringify:d}}function Qw(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Gg(e,t){let r=0;const n=e.score,o=t.score;for(;r<n.length&&r<o.length;){const i=Qw(n[r],o[r]);if(i)return i;r++}if(Math.abs(o.length-n.length)===1){if(vd(n))return 1;if(vd(o))return-1}return o.length-n.length}function vd(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const eS={type:0,value:""},tS=/[a-zA-Z0-9_]/;function rS(e){if(!e)return[[]];if(e==="/")return[[eS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${r})/"${f}": ${y}`)}let r=0,n=r;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,d,f="",u="";function p(){f&&(r===0?i.push({type:0,value:f}):r===1||r===2||r===3?(i.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:f,regexp:u,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=d}for(;a<e.length;){if(d=e[a++],d==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:d==="/"?(f&&p(),s()):d===":"?(p(),r=1):g();break;case 4:g(),r=n;break;case 1:d==="("?r=2:tS.test(d)?g():(p(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&a--);break;case 2:d===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+d:r=3:u+=d;break;case 3:p(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&a--,u="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${f}"`),p(),s(),o}function nS(e,t,r){const n=Xw(rS(e.path),r),o=_t(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function oS(e,t){const r=[],n=new Map;t=Sd({strict:!1,end:!0,sensitive:!1},t);function o(p){return n.get(p)}function i(p,g,y){const v=!y,k=_d(p);k.aliasOf=y&&y.record;const C=Sd(t,p),E=[k];if("alias"in p){const T=typeof p.alias=="string"?[p.alias]:p.alias;for(const F of T)E.push(_d(_t({},k,{components:y?y.record.components:k.components,path:F,aliasOf:y?y.record:k})))}let w,_;for(const T of E){const{path:F}=T;if(g&&F[0]!=="/"){const I=g.record.path,P=I[I.length-1]==="/"?"":"/";T.path=g.record.path+(F&&P+F)}if(w=nS(T,g,C),y?y.alias.push(w):(_=_||w,_!==w&&_.alias.push(w),v&&p.name&&!wd(w)&&s(p.name)),Yg(w)&&d(w),k.children){const I=k.children;for(let P=0;P<I.length;P++)i(I[P],w,y&&y.children[P])}y=y||w}return _?()=>{s(_)}:Hi}function s(p){if(Kg(p)){const g=n.get(p);g&&(n.delete(p),r.splice(r.indexOf(g),1),g.children.forEach(s),g.alias.forEach(s))}else{const g=r.indexOf(p);g>-1&&(r.splice(g,1),p.record.name&&n.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function a(){return r}function d(p){const g=aS(p,r);r.splice(g,0,p),p.record.name&&!wd(p)&&n.set(p.record.name,p)}function f(p,g){let y,v={},k,C;if("name"in p&&p.name){if(y=n.get(p.name),!y)throw Qo(1,{location:p});C=y.record.name,v=_t(bd(g.params,y.keys.filter(_=>!_.optional).concat(y.parent?y.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),p.params&&bd(p.params,y.keys.map(_=>_.name))),k=y.stringify(v)}else if(p.path!=null)k=p.path,y=r.find(_=>_.re.test(k)),y&&(v=y.parse(k),C=y.record.name);else{if(y=g.name?n.get(g.name):r.find(_=>_.re.test(g.path)),!y)throw Qo(1,{location:p,currentLocation:g});C=y.record.name,v=_t({},g.params,p.params),k=y.stringify(v)}const E=[];let w=y;for(;w;)E.unshift(w.record),w=w.parent;return{name:C,path:k,params:v,matched:E,meta:sS(E)}}e.forEach(p=>i(p));function u(){r.length=0,n.clear()}return{addRoute:i,resolve:f,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function bd(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function _d(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:iS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function iS(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function wd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function sS(e){return e.reduce((t,r)=>_t(t,r.meta),{})}function Sd(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function aS(e,t){let r=0,n=t.length;for(;r!==n;){const i=r+n>>1;Gg(e,t[i])<0?n=i:r=i+1}const o=lS(e);return o&&(n=t.lastIndexOf(o,n-1)),n}function lS(e){let t=e;for(;t=t.parent;)if(Yg(t)&&Gg(e,t)===0)return t}function Yg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function cS(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const i=n[o].replace($g," "),s=i.indexOf("="),a=es(s<0?i:i.slice(0,s)),d=s<0?null:es(i.slice(s+1));if(a in t){let f=t[a];tn(f)||(f=t[a]=[f]),f.push(d)}else t[a]=d}return t}function kd(e){let t="";for(let r in e){const n=e[r];if(r=Aw(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(tn(n)?n.map(i=>
vendor: 4,183 bytes, line 35
35i&&kc(i)):[n&&kc(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function uS(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=tn(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}const Zg=Symbol(""),xd=Symbol(""),el=Symbol(""),_u=Symbol(""),Cc=Symbol("");function xi(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function fS(e,t,r){const n=()=>{e[t].delete(r)};fr(n),Na(n),Ba(()=>{e[t].add(r)}),e[t].add(r)}function b5(e){const t=$t(Zg,{}).value;t&&fS(t,"updateGuards",e)}function Jn(e,t,r,n,o,i=s=>s()){const s=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((a,d)=>{const f=g=>{g===!1?d(Qo(4,{from:r,to:t})):g instanceof Error?d(g):Gw(g)?d(Qo(2,{from:t,to:g})):(s&&n.enterCallbacks[o]===s&&typeof g=="function"&&s.push(g),a())},u=i(()=>e.call(n&&n.instances[o],t,r,f));let p=Promise.resolve(u);e.length<3&&(p=p.then(f)),p.catch(g=>d(g))})}function Rl(e,t,r,n,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let d=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Ng(d)){const u=(d.__vccOpts||d)[t];u&&i.push(Jn(u,r,n,s,a,o))}else{let f=d();i.push(()=>f.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const p=vw(u)?u.default:u;s.mods[a]=u,s.components[a]=p;const y=(p.__vccOpts||p)[t];return y&&Jn(y,r,n,s,a,o)()}))}}return i}function Cd(e){const t=$t(el),r=$t(_u),n=xe(()=>{const d=S(e.to);return t.resolve(d)}),o=xe(()=>{const{matched:d}=n.value,{length:f}=d,u=d[f-1],p=r.matched;if(!u||!p.length)return-1;const g=p.findIndex(Xo.bind(null,u));if(g>-1)return g;const y=Ed(d[f-2]);return f>1&&Ed(u)===y&&p[p.length-1].path!==y?p.findIndex(Xo.bind(null,d[f-2])):g}),i=xe(()=>o.value>-1&&mS(r.params,n.value.params)),s=xe(()=>o.value>-1&&o.value===r.matched.length-1&&Wg(r.params,n.value.params));function a(d={}){if(gS(d)){const f=t[S(e.replace)?"replace":"push"](S(e.to)).catch(Hi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:n,href:xe(()=>n.value.href),isActive:i,isExactActive:s,navigate:a}}function dS(e){return e.length===1?e[0]:e}const pS=ur({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Cd,setup(e,{slots:t}){const r=nn(Cd(e)),{options:n}=$t(el),o=xe(()=>({[Td(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Td(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&dS(t.default(r));return e.custom?i:br("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),hS=pS;function gS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function mS(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!tn(o)||o.length!==n.length||n.some((i,s)=>i!==o[s]))return!1}return!0}function Ed(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Td=(e,t,r)=>e??t??r,yS=ur({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=$t(Cc),o=xe(()=>e.route||n.value),i=$t(xd,0),s=xe(()=>{let f=S(i);const{matched:u}=o.value;let p;for(;(p=u[f])&&!p.components;)f++;return f}),a=xe(()=>o.value.matched[s.value]);Xn(xd,xe(()=>s.value+1)),Xn(Zg,a),Xn(Cc,o);const d=ue();return cr(()=>[d.value,a.value,e.name],([f,u,p],[g,y,v])=>{u&&(u.instances[p]=f,y&&y!==u&&f&&f===g&&(u.leaveGuards.size||(u.leaveGuards=y.leaveGuards),u.updateGuards.size||(u.updateGuards=y.updateGuards))),f&&u&&(!y||!Xo(u,y)||!g)&&(u.enterCallbacks[p]||[]).forEac
vendor: 4,849 bytes, line 35
35h(k=>k(f))},{flush:"post"}),()=>{const f=o.value,u=e.name,p=a.value,g=p&&p.components[u];if(!g)return Fd(r.default,{Component:g,route:f});const y=p.props[u],v=y?y===!0?f.params:typeof y=="function"?y(f):y:null,C=br(g,_t({},v,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(p.instances[u]=null)},ref:d}));return Fd(r.default,{Component:C,route:f})||C}}});function Fd(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Xg=yS;function vS(e){const t=oS(e.routes,e),r=e.parseQuery||cS,n=e.stringifyQuery||kd,o=e.history,i=xi(),s=xi(),a=xi(),d=Tn(Jr);let f=Jr;Bo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Pl.bind(null,_e=>""+_e),p=Pl.bind(null,Iw),g=Pl.bind(null,es);function y(_e,De){let Le,Ue;return Kg(_e)?(Le=t.getRecordMatcher(_e),Ue=De):Ue=_e,t.addRoute(Ue,Le)}function v(_e){const De=t.getRecordMatcher(_e);De&&t.removeRoute(De)}function k(){return t.getRoutes().map(_e=>_e.record)}function C(_e){return!!t.getRecordMatcher(_e)}function E(_e,De){if(De=_t({},De||d.value),typeof _e=="string"){const R=Il(r,_e,De.path),L=t.resolve({path:R.path},De),G=o.createHref(R.fullPath);return _t(R,L,{params:g(L.params),hash:es(R.hash),redirectedFrom:void 0,href:G})}let Le;if(_e.path!=null)Le=_t({},_e,{path:Il(r,_e.path,De.path).path});else{const R=_t({},_e.params);for(const L in R)R[L]==null&&delete R[L];Le=_t({},_e,{params:p(R)}),De.params=p(De.params)}const Ue=t.resolve(Le,De),q=_e.hash||"";Ue.params=u(g(Ue.params));const A=Dw(n,_t({},_e,{hash:Fw(q),path:Ue.path})),b=o.createHref(A);return _t({fullPath:A,hash:q,query:n===kd?uS(_e.query):_e.query||{}},Ue,{redirectedFrom:void 0,href:b})}function w(_e){return typeof _e=="string"?Il(r,_e,d.value.path):_t({},_e)}function _(_e,De){if(f!==_e)return Qo(8,{from:De,to:_e})}function T(_e){return P(_e)}function F(_e){return T(_t(w(_e),{replace:!0}))}function I(_e){const De=_e.matched[_e.matched.length-1];if(De&&De.redirect){const{redirect:Le}=De;let Ue=typeof Le=="function"?Le(_e):Le;return typeof Ue=="string"&&(Ue=Ue.includes("?")||Ue.includes("#")?Ue=w(Ue):{path:Ue},Ue.params={}),_t({query:_e.query,hash:_e.hash,params:Ue.path!=null?{}:_e.params},Ue)}}function P(_e,De){const Le=f=E(_e),Ue=d.value,q=_e.state,A=_e.force,b=_e.replace===!0,R=I(Le);if(R)return P(_t(w(R),{state:typeof R=="object"?_t({},q,R.state):q,force:A,replace:b}),De||Le);const L=Le;L.redirectedFrom=De;let G;return!A&&Lw(n,Ue,Le)&&(G=Qo(16,{to:L,from:Ue}),Je(Ue,Ue,!0,!1)),(G?Promise.resolve(G):ee(L,Ue)).catch(Q=>bn(Q)?bn(Q,2)?Q:Re(Q):ve(Q,L,Ue)).then(Q=>{if(Q){if(bn(Q,2))return P(_t({replace:b},w(Q.to),{state:typeof Q.to=="object"?_t({},q,Q.to.state):q,force:A}),De||L)}else Q=W(L,Ue,!0,b,q);return j(L,Ue,Q),Q})}function H(_e,De){const Le=_(_e,De);return Le?Promise.reject(Le):Promise.resolve()}function $(_e){const De=rt.values().next().value;return De&&typeof De.runWithContext=="function"?De.runWithContext(_e):_e()}function ee(_e,De){let Le;const[Ue,q,A]=bS(_e,De);Le=Rl(Ue.reverse(),"beforeRouteLeave",_e,De);for(const R of Ue)R.leaveGuards.forEach(L=>{Le.push(Jn(L,_e,De))});const b=H.bind(null,_e,De);return Le.push(b),at(Le).then(()=>{Le=[];for(const R of i.list())Le.push(Jn(R,_e,De));return Le.push(b),at(Le)}).then(()=>{Le=Rl(q,"beforeRouteUpdate",_e,De);for(const R of q)R.updateGuards.forEach(L=>{Le.push(Jn(L,_e,De))});return Le.push(b),at(Le)}).then(()=>{Le=[];for(const R of A)if(R.beforeEnter)if(tn(R.beforeEnter))for(const L of R.beforeEnter)Le.push(Jn(L,_e,De));else Le.push(Jn(R.beforeEnter,_e,De));return Le.push(b),at(Le)}).then(()=>(_e.matched.forEach(R=>R.enterCallbacks={}),Le=Rl(A,"beforeRouteEnter",_e,De,$),Le.push(b),at(Le))).then(()=>{Le=[];for(const R of s.list())Le.push(Jn(R,_e,De));return Le.push(b),at(Le)}).catch(R=>bn(R,8)?R:Promise.reject(R))}function j(_e,De,Le){a.list().forEach(Ue=>$(()=>Ue(_e,De,Le)))}function W(_e,De,Le,Ue,q){const A=_(_e,De);if(A)return A;const b=De===Jr,R=Bo?history.state:{};Le&&(Ue||b?o.replace(_e.fullPath,_t({scroll:b&&R&&R.scroll},q)):o.push(_e.fullPath,q)),d.value=_e,Je(_e,De,Le,b),Re()}let ie;function ce(){ie||(ie=o.listen((_e,De,Le)=>{if(!st.listening)return;const Ue=E(_e),q=I(Ue);if(q){P(_t(q,{replace:!0,force:!0}),Ue).catch(Hi);return}f=Ue;const A=d.value;Bo&&qw(hd(A.fullPath,Le.delta),Qa()),ee(Ue,A).catch(b=>bn(b,12)?b:bn(b,2)?(P(_t(w(b.to),{force:!0}),Ue).then(R=>{bn(R,20)&&!Le.delta&&Le.type===ts.pop&&o.go(-1,!1)}).catch(Hi),Promise.reject()):(Le.delta&&o.go(-Le.delta,!1),ve(b,Ue,A))).then(b=>{b=b||W(Ue,A,!1),b&&(Le.delta&&!bn(b,8)?o.go(-Le.delta,!1):Le.type===ts.pop&&bn(b,20)&&o.go(-1,!1)),j(Ue,A,b)}).catch(Hi)}))}let pe=xi(),ae=xi(),me;function ve(_e,De,Le){Re(_e);const Ue=ae.list();return Ue.length?Ue.forEach(q=>q(_e,De,Le)):console.error(_e),Promise.reject(_e)}function Pe(){return me&&d.value!==Jr?Promise.resolve():new Promise((_e,De)=>{pe.add([_e,De])})}
35function Re(_e){return me||(me=!_e,ce(),pe.list().forEach(([De,Le])=>_e?Le(_e):De()),pe.reset()),_e}function Je(_e,De,Le,Ue){const{scrollBehavior:q}=e;if(!Bo||!q)return Promise.resolve();const A=!Le&&Vw(hd(_e.fullPath,0))||(Ue||!Le)&&history.state&&history.state.scroll||null;return or().then(()=>q(_e,De,A)).then(b=>b&&Uw(b)).catch(b=>ve(b,_e,De))}const $e=_e=>o.go(_e);let Me;const rt=new Set,st={currentRoute:d,listening:!0,addRoute:y,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:k,resolve:E,options:e,push:T,replace:F,go:$e,back:()=>$e(-1),forward:()=>$e(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:ae.add,isReady:Pe,install(_e){const De=this;_e.component("RouterLink",hS),_e.component("RouterView",Xg),_e.config.globalProperties.$router=De,Object.defineProperty(_e.config.globalProperties,"$route",{enumerable:!0,get:()=>S(d)}),Bo&&!Me&&d.value===Jr&&(Me=!0,T(o.location).catch(q=>{}));const Le={};for(const q in Jr)Object.defineProperty(Le,q,{get:()=>d.value[q],enumerable:!0});_e.provide(el,De),_e.provide(_u,Cn(Le)),_e.provide(Cc,d);const Ue=_e.unmount;rt.add(_e),_e.unmount=function(){rt.delete(_e),rt.size<1&&(f=Jr,ie&&ie(),ie=null,d.value=Jr,Me=!1,me=!1),Ue()}}};function at(_e){return _e.reduce((De,Le)=>De.then(()=>$(Le)),Promise.resolve())}return st}function bS(e,t){const r=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(f=>Xo(f,a))?n.push(a):r.push(a));const d=e.matched[s];d&&(t.matched.find(f=>Xo(f,d))||o.push(d))}return[r,n,o]}function _5(){return $t(el)}function w5(e){return $t(_u)}const _S=/(:\w+)\([^)]+\)/g,wS=/(:\w+)[?+*]/g,SS=/:\w+/g,kS=(e,t)=>t.path.replace(_S,"$1").replace(wS,"$1").replace(SS,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""}),Ec=(e,t)=>{const r=e.route.matched.find(o=>{var i;return((i=o.components)==null?void 0:i.default)===e.Component.type}),n=t??(r==null?void 0:r.meta.key)??(r&&kS(e.route,r));return typeof n=="function"?n(e.route):n},xS=(e,t)=>({default:()=>e?br(Zp,e===!0?{}:e,t):t});function wu(e){return Array.isArray(e)?e:[e]}const CS={middleware:["slug"]},ES={middleware:["auth-check"]},TS={middleware:["require-plan"]};const Ol=[{name:"error",path:"/error",component:()=>He(()=>import("./error.CrXt_YQA.js"),[],import.meta.url)},{name:"callback",path:"/callback",component:()=>He(()=>import("./callback.CQYNALTI.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"slug",path:"/:slug(.*)*",meta:CS||{},component:()=>He(()=>import("./_...slug_.CYLSYaA4.js"),__vite__mapDeps([2,3,4,5,6]),import.meta.url)},{name:"auth-porta",path:"/auth/porta",meta:ES||{},component:()=>He(()=>import("./porta.bsBCnddN.js"),__vite__mapDeps([7,8,9]),import.meta.url)},{name:"silent-renew",path:"/silent-renew",component:()=>He(()=>import("./silent-renew.D8gmf-N8.js"),[],import.meta.url)},{name:"embed-slug",path:"/embed/:slug(.*)*",component:()=>He(()=>import("./_...slug_.CbOCcL8-.js"),__vite__mapDeps([10,11]),import.meta.url)},{name:"checkout-plan",path:"/checkout/:plan(.*)*",meta:TS||{},component:()=>He(()=>import("./_...plan_.Cvx5SNrh.js"),__vite__mapDeps([12,13,14]),import.meta.url)}],FS=(e,t)=>({default:()=>{var r;return e?br(ai,e===!0?{}:e,t):(r=t.default)==null?void 0:r.call(t)}}),AS=/(:\w+)\([^)]+\)/g,PS=/(:\w+)[?+*]/g,IS=/:\w+/g;function Ad(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(AS,"$1").replace(PS,"$1").replace(IS,r=>{var n;return((n=e.params[r.slice(1)])==null?void 0:n.toString())||""});return typeof t=="function"?t(e):t}function RS(e,t){return e===t||t===Jr?!1:Ad(e)!==Ad(t)?!0:!e.matched.every((n,o)=>{var i,s;return n.components&&n.components.default===((s=(i=t.matched[o])==null?void 0:i.components)==null?void 0:s.default)})}const OS={scrollBehavior(e,t,r){var f;const n=Tt(),o=((f=rr().options)==null?void 0:f.scrollBehaviorType)??"auto";let i=r||void 0;const s=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&s!==!1&&RS(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Qg(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??pc),d=a(t)&&a(e)?"page:transition:finish":"page:loading:end";return new Promise(u=>{n.hooks.hookOnce(d,()=>{requestAnimationFrame(()=>u(DS(e,"instant",i)))})})}};function Qg(e){try{const t=document.querySelector(e);
35if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function DS(e,t,r){return r||(e.hash?{el:e.hash,top:Qg(e.hash),behavior:t}:{left:0,top:0,behavior:t})}const LS={trailingSlash:!1,hashMode:!1,scrollBehaviorType:"auto"},$r={...LS,...OS},jS=async e=>{var d;let t,r;if(!((d=e.meta)!=null&&d.validate))return;const n=Tt(),o=rr(),i=([t,r]=Bi(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t);if(i===!0)return;const s=Za({statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(f=>{if(a(),f===e){const u=o.afterEach(async()=>{u(),await n.runWithContext(()=>zn(s)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},MS=async e=>{let t,r;const n=([t,r]=Bi(()=>yu({path:e.path})),t=await t,r(),t);if(n.redirect)return Bn(n.redirect,{acceptRelative:!0})?(window.location.href=n.redirect,!1):n.redirect},BS=[jS,MS],Ui={"auth-check":()=>He(()=>import("./authCheck.CAqihPka.js"),[],import.meta.url),"require-plan":()=>He(()=>import("./requirePlan.V1PvPZLp.js"),[],import.meta.url),slug:()=>He(()=>import("./slug.CG90ImdY.js"),[],import.meta.url)};function NS(e,t,r){const{pathname:n,search:o,hash:i}=t,s=e.indexOf("#");if(s>-1){const f=i.includes(e.slice(s))?e.slice(s).length:1;let u=i.slice(f);return u[0]!=="/"&&(u="/"+u),Jf(u,"")}const a=Jf(n,e),d=!r||F_(a,r,{trailingSlash:!0})?a:r;return d+(d.includes("?")?"":o)+i}const HS=Wr({name:"nuxt:router",enforce:"pre",async setup(e){var C;let t,r,n=en().app.baseURL;const o=((C=$r.history)==null?void 0:C.call($r,n))??Jw(n),i=$r.routes?([t,r]=Bi(()=>$r.routes(Ol)),t=await t,r(),t??Ol):Ol;let s;const a=vS({...$r,scrollBehavior:(E,w,_)=>{if(w===Jr){s=_;return}if($r.scrollBehavior){if(a.options.scrollBehavior=$r.scrollBehavior,"scrollRestoration"in window.history){const T=a.beforeEach(()=>{T(),window.history.scrollRestoration="manual"})}return $r.scrollBehavior(E,Jr,s||_)}},history:o,routes:i});$r.routes&&$r.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const d=Tn(a.currentRoute.value);a.afterEach((E,w)=>{d.value=w}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>d.value});const f=NS(n,window.location,e.payload.path),u=Tn(a.currentRoute.value),p=()=>{u.value=a.currentRoute.value};e.hook("page:finish",p),a.afterEach((E,w)=>{var _,T,F,I;((T=(_=E.matched[0])==null?void 0:_.components)==null?void 0:T.default)===((I=(F=w.matched[0])==null?void 0:F.components)==null?void 0:I.default)&&p()});const g={};for(const E in u.value)Object.defineProperty(g,E,{get:()=>u.value[E],enumerable:!0});e._route=Cn(g),e._middleware||(e._middleware={global:[],named:{}});const y=Ya();a.afterEach(async(E,w,_)=>{delete e._processingMiddleware,!e.isHydrating&&y.value&&await e.runWithContext(Pg),_&&await e.callHook("page:loading:end")});try{[t,r]=Bi(()=>a.isReady()),await t,r()}catch(E){[t,r]=Bi(()=>e.runWithContext(()=>zn(E))),await t,r()}const v=f!==a.currentRoute.value.fullPath?a.resolve(f):a.currentRoute.value;p();const k=e.payload.state._layout;return a.beforeEach(async(E,w)=>{var _;await e.callHook("page:loading:start"),E.meta=nn(E.meta),e.isHydrating&&k&&!dn(E.meta.layout)&&(E.meta.layout=k),e._processingMiddleware=!0;{const T=new Set([...BS,...e._middleware.global]);for(const F of E.matched){const I=F.meta.middleware;if(I)for(const P of wu(I))T.add(P)}{const F=await e.runWithContext(()=>yu({path:E.path}));if(F.appMiddleware)for(const I in F.appMiddleware)F.appMiddleware[I]?T.add(I):T.delete(I)}for(const F of T){const I=typeof F=="string"?e._middleware.named[F]||await((_=Ui[F])==null?void 0:_.call(Ui).then(P=>P.default||P)):F;if(!I)throw new Error(`Unknown route middleware: '${F}'.`);try{const P=await e.runWithContext(()=>I(E,w));if(!e.payload.serverRendered&&e.isHydrating&&(P===!1||P instanceof Error)){const H=P||Js({statusCode:404,statusMessage:`Page Not Found: ${f}`});return await e.runWithContext(()=>zn(H)),!1}if(P===!0)continue;if(P===!1)return P;if(P)return Ig(P)&&P.fatal&&await e.runWithContext(()=>zn(P)),P}catch(P){const H=Js(P);return H.fatal&&await e.runWithContext(()=>zn(H)),H}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(E,w)=>{E.matched.length===0&&await e.runWithContext(()=>zn(Js({statusCode:404,fatal:!1,statusMessage:`Page not found: ${E.fullPath}`,data:{path:E.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in v&&(v.name=void 0),await a.replace({...v,force:!0}),a.options.scrollBehavior=$r.scrollBehavior}catch(E){await e.runWithContext(()=>zn(E))}}),{provide:{router:a}}}}),Tc=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),$S=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),io=e=>{const t=Tt();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Tc(()=>e())}):Tc(()=>e())},US=Wr({name:"nuxt:payload",setup(e){const t=new Set;
35rr().beforeResolve(async(r,n)=>{if(r.path===n.path)return;const o=await fd(r.path);if(o){for(const i of t)delete e.static.data[i];for(const i in o.data)i in e.static.data||t.add(i),e.static.data[i]=o.data[i]}}),io(()=>{var r;e.hooks.hook("link:prefetch",async n=>{const{hostname:o}=new URL(n,window.location.href);o===window.location.hostname&&await fd(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),((r=navigator.connection)==null?void 0:r.effectiveType)!=="slow-2g"&&setTimeout(Xa,1e3)})}}),qS=Wr(()=>{const e=rr();io(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),VS=Wr(e=>{let t;async function r(){const n=await Xa();t&&clearTimeout(t),t=setTimeout(r,Qf);try{const o=await $fetch(hu("builds/latest.json")+`?${Date.now()}`);o.id!==n.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}io(()=>{t=setTimeout(r,Qf)})});function WS(e={}){const t=e.path||window.location.pathname;let r={};try{r=fu(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Tt().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const zS=Wr({name:"nuxt:chunk-reload",setup(e){const t=rr(),r=en(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:i})=>{n.add(i)});function o(i){const a="href"in i&&i.href[0]==="#"?r.app.baseURL+i.href:Ja(r.app.baseURL,i.fullPath);WS({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,s)=>{n.has(i)&&o(s)})}});function Fc(e){return typeof e=="string"?`'${e}'`:new KS().serialize(e)}const KS=(function(){var t;class e{constructor(){sf(this,t,new Map)}compare(n,o){const i=typeof n,s=typeof o;return i==="string"&&s==="string"?n.localeCompare(o):i==="number"&&s==="number"?n-o:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(o,!0))}serialize(n,o){if(n===null)return"null";switch(typeof n){case"string":return o?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const o=Object.prototype.toString.call(n);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),n);const i=n.constructor,s=i===Object||i===void 0?"":i.name;if(s!==""&&globalThis[s]===i)return this.serializeBuiltInType(s,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return s+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(s,Object.entries(n))}serializeBuiltInType(n,o){const i=this["$"+n];if(i)return i.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(n,o.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,o){const i=Array.from(o).sort((a,d)=>this.compare(a[0],d[0]));let s=`${n}{`;for(let a=0;a<i.length;a++){const[d,f]=i[a];s+=`${this.serialize(d,!0)}:${this.serialize(f)}`,a<i.length-1&&(s+=",")}return s+"}"}$object(n){let o=bi(this,t).get(n);return o===void 0&&(bi(this,t).set(n,`#${bi(this,t).size}`),o=this.serializeObject(n),bi(this,t).set(n,o)),o}$function(n){const o=Function.prototype.toString.call(n);return o.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${o.replace(/\s*\n\s*/g,"")}`}$Array(n){let o="[";for(let i=0;i<n.length;i++)o+=this.serialize(n[i]),i<n.length-1&&(o+=",");return o+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((o,i)=>this.compare(o,i)))}`}
35$Map(n){return this.serializeObjectEntries("Map",n.entries())}}t=new WeakMap;for(const r of["Error","RegExp","URL"])e.prototype["$"+r]=function(n){return`${r}(${n})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])e.prototype["$"+r]=function(n){return`${r}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function JS(e,t){return e===t||Fc(e)===Fc(t)}const GS=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],YS=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],ZS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ho=[];class XS{constructor(){Fr(this,"_data",new $o);Fr(this,"_hash",new $o([...GS]));Fr(this,"_nDataBytes",0);Fr(this,"_minBufferSize",0)}finalize(t){t&&this._append(t);const r=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),this._data.words[(n+64>>>9<<4)+15]=r,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,r){const n=this._hash.words;let o=n[0],i=n[1],s=n[2],a=n[3],d=n[4],f=n[5],u=n[6],p=n[7];for(let g=0;g<64;g++){if(g<16)ho[g]=t[r+g]|0;else{const _=ho[g-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,F=ho[g-2],I=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;ho[g]=T+ho[g-7]+I+ho[g-16]}const y=d&f^~d&u,v=o&i^o&s^i&s,k=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),C=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),E=p+C+y+YS[g]+ho[g],w=k+v;p=u,u=f,f=d,d=a+E|0,a=s,s=i,i=o,o=E+w|0}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+d|0,n[5]=n[5]+f|0,n[6]=n[6]+u|0,n[7]=n[7]+p|0}_append(t){typeof t=="string"&&(t=$o.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let r,n=this._data.sigBytes/64;t?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const o=n*16,i=Math.min(o*4,this._data.sigBytes);if(o){for(let s=0;s<o;s+=16)this._doProcessBlock(this._data.words,s);r=this._data.words.splice(0,o),this._data.sigBytes-=i}return new $o(r,i)}}class $o{constructor(t,r){Fr(this,"words");Fr(this,"sigBytes");t=this.words=t||[],this.sigBytes=r===void 0?t.length*4:r}static fromUtf8(t){const r=unescape(encodeURIComponent(t)),n=r.length,o=[];for(let i=0;i<n;i++)o[i>>>2]|=(r.charCodeAt(i)&255)<<24-i%4*8;return new $o(o,n)}toBase64(){const t=[];for(let r=0;r<this.sigBytes;r+=3){const n=this.words[r>>>2]>>>24-r%4*8&255,o=this.words[r+1>>>2]>>>24-(r+1)%4*8&255,i=this.words[r+2>>>2]>>>24-(r+2)%4*8&255,s=n<<16|o<<8|i;for(let a=0;a<4&&r*8+a*6<this.sigBytes*8;a++)t.push(ZS.charAt(s>>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let r=0;r<t.sigBytes;r++){const n=t.words[r>>>2]>>>24-r%4*8&255;this.words[this.sigBytes+r>>>2]|=n<<24-(this.sigBytes+r)%4*8}else for(let r=0;r<t.sigBytes;r+=4)this.words[this.sigBytes+r>>>2]=t.words[r>>>2];this.sigBytes+=t.sigBytes}}function QS(e){return new XS().finalize(e).toBase64()}function ek(e){return QS(Fc(e))}const tk=e=>e==="defer"||e===!1;function Su(...e){var k;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[r,n,o={}]=e;if(typeof r!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof n!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const i=Tt(),s=n,a=()=>Ho.value,d=()=>i.isHydrating?i.payload.data[r]:i.static.data[r];o.server??(o.server=!0),o.default??(o.default=a),o.getCachedData??(o.getCachedData=d),o.lazy??(o.lazy=!1),o.immediate??(
35o.immediate=!0),o.deep??(o.deep=Ho.deep),o.dedupe??(o.dedupe="cancel");const f=o.getCachedData(r,i),u=f!=null;if(!i._asyncData[r]||!o.immediate){(k=i.payload._errors)[r]??(k[r]=Ho.errorValue);const C=o.deep?ue:Tn;i._asyncData[r]={data:C(u?f:o.default()),pending:ue(!u),error:ls(i.payload._errors,r),status:ue("idle"),_default:o.default}}const p={...i._asyncData[r]};delete p._default,p.refresh=p.execute=(C={})=>{if(i._asyncDataPromises[r]){if(tk(C.dedupe??o.dedupe))return i._asyncDataPromises[r];i._asyncDataPromises[r].cancelled=!0}if(C._initial||i.isHydrating&&C._initial!==!1){const w=C._initial?f:o.getCachedData(r,i);if(w!=null)return Promise.resolve(w)}p.pending.value=!0,p.status.value="pending";const E=new Promise((w,_)=>{try{w(s(i))}catch(T){_(T)}}).then(async w=>{if(E.cancelled)return i._asyncDataPromises[r];let _=w;o.transform&&(_=await o.transform(w)),o.pick&&(_=nk(_,o.pick)),i.payload.data[r]=_,p.data.value=_,p.error.value=Ho.errorValue,p.status.value="success"}).catch(w=>{if(E.cancelled)return i._asyncDataPromises[r];p.error.value=Za(w),p.data.value=S(o.default()),p.status.value="error"}).finally(()=>{E.cancelled||(p.pending.value=!1,delete i._asyncDataPromises[r])});return i._asyncDataPromises[r]=E,i._asyncDataPromises[r]},p.clear=()=>rk(i,r);const g=()=>p.refresh({_initial:!0}),y=o.server!==!1&&i.payload.serverRendered;{const C=Cr();if(C&&y&&o.immediate&&!C.sp&&(C.sp=[]),C&&!C._nuxtOnBeforeMountCbs){C._nuxtOnBeforeMountCbs=[];const _=C._nuxtOnBeforeMountCbs;Jc(()=>{_.forEach(T=>{T()}),_.splice(0,_.length)}),fr(()=>_.splice(0,_.length))}y&&i.isHydrating&&(p.error.value||f!=null)?(p.pending.value=!1,p.status.value=p.error.value?"error":"success"):C&&(i.payload.serverRendered&&i.isHydrating||o.lazy)&&o.immediate?C._nuxtOnBeforeMountCbs.push(g):o.immediate&&g();const E=no();if(o.watch){const _=cr(o.watch,()=>p.refresh());E&&eo(_)}const w=i.hook("app:data:refresh",async _=>{(!_||_.includes(r))&&await p.refresh()});E&&eo(w)}const v=Promise.resolve(i._asyncDataPromises[r]).then(()=>p);return Object.assign(v,p),v}function S5(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n,o={}]=e;return Su(r,n,{...o,lazy:!0},null)}function rk(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Ho.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Ho.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function nk(e,t){const r={};for(const n of t)r[n]=e[n];return r}const ok="$s";function Dl(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const o=ok+r,i=Tt(),s=ls(i.payload.state,o);if(s.value===void 0&&n){const a=n();if(St(a))return i.payload.state[o]=a,a;s.value=a}return s}function ik(e,t,r){const[n={},o]=typeof t=="string"?[{},t]:[t,r],i=xe(()=>Sn(e)),s=n.key||ek([o,typeof i.value=="string"?i.value:"",...sk(n)]);if(!s||typeof s!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+s);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");const a=s===o?"$f"+s:s;if(!n.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:d,lazy:f,default:u,transform:p,pick:g,watch:y,immediate:v,getCachedData:k,deep:C,dedupe:E,...w}=n,_=nn({...s1,...w,cache:typeof n.cache=="boolean"?void 0:n.cache}),T={server:d,lazy:f,default:u,transform:p,pick:g,immediate:v,getCachedData:k,deep:C,dedupe:E,watch:y===!1?[]:[_,i,...y||[]]};let F;return Su(a,()=>{var ee;(ee=F==null?void 0:F.abort)==null||ee.call(F,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),F=typeof AbortController<"u"?new AbortController:{};const P=Sn(n.timeout);let H;return P&&(H=setTimeout(()=>F.abort(new DOMException("Request aborted due to timeout.","AbortError")),P),F.signal.onabort=()=>clearTimeout(H)),(n.$fetch||globalThis.$fetch)(i.value,{signal:F.signal,..._}).finally(()=>{clearTimeout(H)})},T)}function sk(e){var r;const t=[((r=Sn(e.method))==null?void 0:r.toUpperCase())||"GET",Sn(e.baseURL)];for(const n of[e.params||e.query]){const o=Sn(n);if(!o)continue;const i={};for(const[s,a]of Object.entries(o))i[Sn(s)]=Sn(a);t.push(i)}return t}const ak=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function lk(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const r=new ak,n=t||{},o=n.decode||ck;let i=0;for(;i<e.length;){const s=e.indexOf("=",i);if(s===-1)break;let a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<s){i=e.lastIndexOf(";",s-1)+1;continue}const d=e.slice(i,s).trim();if(n!=null&&n.filter&&!(n!=null&&n.filter(d))){i=a+1;continue}if(r[d]===void 0){let f=e.slice(s+1,a).trim();f.codePointAt(0)===34&&(f=f.slice(1,-1)),r[d]=uk(f,o)}i=a+1}return r}
35function ck(e){return e.includes("%")?decodeURIComponent(e):e}function uk(e,t){try{return t(e)}catch{return e}}const Ms=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Pd(e,t,r){const n=r||{},o=n.encode||encodeURIComponent;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!Ms.test(e))throw new TypeError("argument name is invalid");const i=o(t);if(i&&!Ms.test(i))throw new TypeError("argument val is invalid");let s=e+"="+i;if(n.maxAge!==void 0&&n.maxAge!==null){const a=n.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(n.domain){if(!Ms.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!Ms.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){if(!fk(n.expires)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.priority){case"low":{s+="; Priority=Low";break}case"medium":{s+="; Priority=Medium";break}case"high":{s+="; Priority=High";break}
35default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:{s+="; SameSite=Strict";break}case"lax":{s+="; SameSite=Lax";break}case"strict":{s+="; SameSite=Strict";break}case"none":{s+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(s+="; Partitioned"),s}function fk(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Gr(e){if(typeof e!="object")return e;var t,r,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){r=new e.constructor;for(t in e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=Gr(e[t]))}else{r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Gr(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=Gr(e[t])}return r}if(n==="[object Array]"){for(t=e.length,r=Array(t);t--;)r[t]=Gr(e[t]);return r}return n==="[object Set]"?(r=new Set,e.forEach(function(o){r.add(Gr(o))}),r):n==="[object Map]"?(r=new Map,e.forEach(function(o,i){r.set(Gr(i),Gr(o))}),r):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(r=new RegExp(e.source,e.flags),r.lastIndex=e.lastIndex,r):n==="[object DataView]"?new e.constructor(Gr(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}const dk={path:"/",watch:!0,decode:e=>fu(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Bs=window.cookieStore;function pk(e,t){var f;const r={...dk,...t};r.filter??(r.filter=u=>u===e);const n=Id(r)||{};let o;r.maxAge!==void 0?o=r.maxAge*1e3:r.expires&&(o=r.expires.getTime()-Date.now());const i=o!==void 0&&o<=0,s=i||n[e]===void 0||n[e]===null,a=Gr(i?void 0:n[e]??((f=r.default)==null?void 0:f.call(r))),d=o&&!i?mk(a,o,r.watch&&r.watch!=="shallow"):ue(a);{let u=null;try{!Bs&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const p=(k=!1)=>{!k&&(r.readonly||JS(d.value,n[e]))||(gk(e,d.value,r),n[e]=Gr(d.value),u==null||u.postMessage({value:r.encode(d.value)}))},g=k=>{var E;const C=k.refresh?(E=Id(r))==null?void 0:E[e]:r.decode(k.value);y=!0,d.value=C,n[e]=Gr(C),or(()=>{y=!1})};let y=!1;const v=!!no();if(v&&eo(()=>{y=!0,p(),u==null||u.close()}),Bs){const k=C=>{const E=C.changed.find(_=>_.name===e),w=C.deleted.find(_=>_.name===e);E&&g({value:E.value}),w&&g({value:null})};Bs.addEventListener("change",k),v&&eo(()=>Bs.removeEventListener("change",k))}else u&&(u.onmessage=({data:k})=>g(k));r.watch&&cr(d,()=>{y||p()},{deep:r.watch!=="shallow"}),s&&p(s)}return d}function Id(e={}){return lk(document.cookie,e)}function hk(e,t,r={}){return t==null?Pd(e,t,{...r,maxAge:-1}):Pd(e,t,r)}function gk(e,t,r={}){document.cookie=hk(e,t,r)}const Rd=2147483647;function mk(e,t,r){let n,o,i=0;const s=r?ue(e):{value:e};return no()&&eo(()=>{o==null||o(),clearTimeout(n)}),$c((a,d)=>{r&&(o=cr(s,d));function f(){i=0,clearTimeout(n);const u=t-i,p=u<Rd?u:Rd;n=setTimeout(()=>{if(i+=p,i<t)return f();s.value=void 0,d()},p)}return{get(){return a(),s.value},set(u){f(),s.value=u,d()}}})}async function em(e,t=rr()){const{path:r,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(r)))return;const o=t._preloadPromises||(t._preloadPromises=[]);if(o.length>4)return Promise.all(o).then(()=>em(e,t));t._routePreloaded.add(r);const i=n.map(s=>{var a;return(a=s.components)==null?void 0:a.default}).filter(s=>typeof s=="function");for(const s of i){const a=Promise.resolve(s()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const yk=(...e)=>e.find(t=>t!==void 0);function vk(e){const t=e.componentName||"NuxtLink";function r(i){return typeof i=="string"&&i.startsWith("#")}function n(i,s){if(!i||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return i;if(typeof i=="string")return Od(i,e.trailingSlash);const a="path"in i&&i.path!==void 0?i.path:s(i).path;return{...i,name:void 0,path:Od(a,e.trailingSlash)}}function o(i){const s=rr(),a=en(),d=xe(()=>!!i.target&&i.target!=="_self"),f=xe(()=>{const C=i.to||i.href||"";return typeof C=="string"&&Bn(C,{acceptRelative:!0})}),u=On("RouterLink"),p=u&&typeof u!="string"?u.useLink:void 0,g=xe(()=>{if(i.external)return!0;const C=i.to||i.href||"";return typeof C=="object"?!1:C===""||f.value}),y=xe(()=>{const C=i.to||i.href||"";return g.value?C:n(C,s.resolve)}),v=g.value||p==null?void 0:p({...i,to:y}),k=xe(()=>{var C;if(!y.value||f.value||r(y.value))return y.value;if(g.value){const E=typeof y.value=="object"&&"path"in y.value?yc(y.value):y.value,w=typeof E=="object"?s.resolve(E).href:E;return n(w,s.resolve)}return typeof y.value=="object"?((C=s.resolve(y.value))==null?void 0:C.href)??null:n(Ja(a.app.baseURL,y.value),s.resolve)});return{to:y,hasTarget:d,isAbsoluteUrl:f,isExternal:g,href:k,isActive:(v==null?void 0:v.isActive)??xe(()=>y.value===s.currentRoute.value.path),isExactActive:(v==null?void 0:v.isExactActive)??xe(()=>y.value===s.currentRoute.value.path),route:(v==null?void 0:v.route)??xe(()=>s.resolve(y.value)),async navigate(C){await Fg(k.value,{replace:i.replace,external:g.value||d.value})}}}return ur({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:o,setup(i,{slots:s}){const a=rr(),{to:d,href:f,navigate:u,isExternal:p,hasTarget:g,isAbsoluteUrl:y}=o(i),v=ue(!1),k=ue(null),C=_=>{var T;
35k.value=i.custom?(T=_==null?void 0:_.$el)==null?void 0:T.nextElementSibling:_==null?void 0:_.$el};function E(_){var T,F;return!v.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===_:((T=i.prefetchOn)==null?void 0:T[_])??((F=e.prefetchOn)==null?void 0:F[_]))&&(i.prefetch??e.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!wk()}async function w(_=Tt()){if(v.value)return;v.value=!0;const T=typeof d.value=="string"?d.value:p.value?yc(d.value):a.resolve(d.value).fullPath,F=p.value?new URL(T,window.location.href).href:T;await Promise.all([_.hooks.callHook("link:prefetch",F).catch(()=>{}),!p.value&&!g.value&&em(d.value,a).catch(()=>{})])}if(E("visibility")){const _=Tt();let T,F=null;kt(()=>{const I=bk();io(()=>{T=Tc(()=>{var P;(P=k==null?void 0:k.value)!=null&&P.tagName&&(F=I.observe(k.value,async()=>{F==null||F(),F=null,await w(_)}))})})}),oo(()=>{T&&$S(T),F==null||F(),F=null})}return()=>{var F;if(!p.value&&!g.value&&!r(d.value)){const I={ref:C,to:d.value,activeClass:i.activeClass||e.activeClass,exactActiveClass:i.exactActiveClass||e.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};
35return i.custom||(E("interaction")&&(I.onPointerenter=w.bind(null,void 0),I.onFocus=w.bind(null,void 0)),v.value&&(I.class=i.prefetchedClass||e.prefetchedClass),I.rel=i.rel||void 0),br(On("RouterLink"),I,s.default)}const _=i.target||null,T=yk(i.noRel?"":i.rel,e.externalRelAttribute,y.value||g.value?"noopener noreferrer":"")||null;return i.custom?s.default?s.default({href:f.value,navigate:u,prefetch:w,get route(){if(!f.value)return;const I=new URL(f.value,window.location.href);return{path:I.pathname,fullPath:I.pathname,get query(){return pu(I.search)},hash:I.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:T,target:_,isExternal:p.value||g.value,isActive:!1,isExactActive:!1}):null:br("a",{ref:k,href:f.value||null,rel:T,target:_},(F=s.default)==null?void 0:F.call(s))}}})}function Od(e,t){const r=t==="append"?ma:Ka;return Bn(e)&&!e.startsWith("http")?e:r(e,!0)}function bk(){const e=Tt();if(e._observer)return e._observer;let t=null;const r=new Map,n=(i,s)=>(t||(t=new IntersectionObserver(a=>{for(const d of a){const f=r.get(d.target);(d.isIntersecting||d.intersectionRatio>0)&&f&&f()}})),r.set(i,s),t.observe(i),()=>{r.delete(i),t==null||t.unobserve(i),r.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:n}}const _k=/2g/;function wk(){const e=navigator.connection;return!!(e&&(e.saveData||_k.test(e.effectiveType)))}const Sk=Wr({name:"pinia",setup(e){const t=k1();return e.vueApp.use(t),hs(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),kk=Ve(()=>He(()=>import("./BannerCarousel.tjmn5mad.js"),__vite__mapDeps([15,16,17,13,18,19,20,21,22,5]),import.meta.url).then(e=>e.default||e.default||e)),xk=Ve(()=>He(()=>import("./TheBody.BW9YvX4n.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ck=Ve(()=>He(()=>Promise.resolve().then(()=>r5),void 0,import.meta.url).then(e=>e.default||e.default||e)),Ek=Ve(()=>He(()=>Promise.resolve().then(()=>qP),void 0,import.meta.url).then(e=>e.default||e.default||e)),Tk=Ve(()=>He(()=>import("./TheTest.DydvsE6i.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Fk=Ve(()=>He(()=>import("./AdComponent.RwHerBiZ.js"),__vite__mapDeps([23,24]),import.meta.url).then(e=>e.default||e.default||e)),Ak=Ve(()=>He(()=>import("./TheAdComponent.DKWUt0b_.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Pk=Ve(()=>He(()=>import("./Banner.LUT87W92.js"),__vite__mapDeps([16,17,13,18,19,20,21,22,5]),import.meta.url).then(e=>e.default||e.default||e)),Ik=Ve(()=>He(()=>import("./Button.DWf0VfKq.js"),__vite__mapDeps([25,21]),import.meta.url).then(e=>e.default||e.default||e)),Rk=Ve(()=>He(()=>import("./Card.BUgPQLUG.js"),__vite__mapDeps([26,22]),import.meta.url).then(e=>e.default||e.default||e)),Ok=Ve(()=>He(()=>import("./Chat.2W_1DReA.js"),__vite__mapDeps([27,28,29]),import.meta.url).then(e=>e.default||e.default||e)),Dk=Ve(()=>He(()=>import("./Col.DNLGh7Nv.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Lk=Ve(()=>He(()=>import("./ColWrapper.C0_3S10g.js"),[],import.meta.url).then(e=>e.default||e.default||e)),jk=Ve(()=>He(()=>import("./Comments.8MwL3pzh.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Mk=Ve(()=>He(()=>import("./Carousel.CpyRlFmt.js"),__vite__mapDeps([30,25,21,31,32,33,34,22,35]),import.meta.url).then(e=>e.default||e.default||e)),Bk=Ve(()=>He(()=>import("./Grid.VNb7KIKk.js"),__vite__mapDeps([36,25,21,31,32,33,34,22,37]),import.meta.url).then(e=>e.default||e.default||e)),Nk=Ve(()=>He(()=>import("./Single.C4qOrrUm.js"),__vite__mapDeps([38,31,32,33,21,34,22]),import.meta.url).then(e=>e.default||e.default||e)),Hk=Ve(()=>He(()=>import("./Slider.Ca-rDmL6.js"),__vite__mapDeps([39,25,21,31,32]),import.meta.url).then(e=>e.default||e.default||e)),$k=Ve(()=>He(()=>import("./ContentDetails.CXdO4ogE.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Uk=Ve(()=>He(()=>import("./CustomJsComponent.DVa-SSba.js"),[],import.meta.url).then(e=>e.default||e.default||e)),qk=Ve(()=>He(()=>import("./FollowingMedia.BMgzKxa9.js"),__vite__mapDeps([40,31,32,34,22,41]),import.meta.url).then(e=>e.default||e.default||e)),Vk=Ve(()=>He(()=>import("./Image.BZY9SiGz.js"),__vite__mapDeps([42,43]),import.meta.url).then(e=>e.default||e.default||e)),Wk=Ve(()=>He(()=>import("./Label.BynV8ZZ-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),zk=Ve(()=>He(()=>import("./Logo.BhpAAsf3.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Kk=Ve(()=>He(()=>import("./Menu.DYqgZBlr.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Jk=Ve(()=>He(()=>import("./SocialMedia.GXe6enEo.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Gk=Ve(()=>He(()=>import("./Spacing.C-LSrH_6.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Yk=Ve(()=>He(()=>Promise.resolve().then(()=>jP),void 0,import.meta.url).then(e=>e.default||e.default||e)),Zk=Ve(()=>He(()=>Promise.resolve().then(()=>PP),void 0,import.meta.url).then(e=>e.default||e.default||e)),Xk=Ve(()=>He(()=>Promise.resolve().then(()=>SP),void 0,import.meta.url).then(e=>e.default||e.default||e)),Qk=Ve(()=>He(()=>Promise.resolve().then(()=>fA),void 0,import.meta.url).then(e=>e.default||e.default||e)),ex=Ve(()=>He(()=>Promise.resolve().then(()=>F4),void 0,import.meta.url).then(e=>e.default||e.default||e)),tx=Ve(()=>He(()=>Promise.resolve().then(()=>mP),void 0,import.meta.url).then(e=>e.default||e.default||e)),rx=Ve(()=>He(()=>Promise.resolve().then(()=>bP),void 0,import.meta.url).then(e=>e.default||e.default||e)),nx=Ve(()=>He(()=>Promise.resolve().then(()=>x4),void 0,import.meta.url).then(e=>e.default||e.default||e)),ox=Ve(()=>He(()=>Promise.resolve().then(()=>DP),void 0,import.meta.url).then(e=>e.default||e.default||e)),ix=Ve(()=>He(()=>Promise.resolve().then(()=>FP),void 0,import.meta.url).then(e=>e.default||e.default||e)),sx=Ve(()=>He(()=>Promise.resolve().then(()=>IP),void 0,import.meta.url).then(e=>e.default||e.default||e)),ax=Ve(()=>He(()=>import("./Image.kZAxPQdS.js"),[],import.meta.url).then(e=>e.default||e.default||e)),lx=Ve(()=>He(()=>Promise.resolve().then(()=>AP),void 0,import.meta.url).then(e=>e.default||e.default||e)),cx=Ve(()=>He(()=>import("./List.5J1VfjM1.js"),[],import.meta.url).then(e=>e.default||e.default||e)),ux=Ve(()=>He(()=>import("./Menu.ATc6BzuX.js"),[],import.meta.url).then(e=>e.default||e.default||e)),fx=Ve(()=>He(()=>import("./NewestVideos.CQbtpSo_.js"),__vite__mapDeps([44,31,32,45,34,22]),import.meta.url).then(e=>e.default||e.default||e)),dx=Ve(()=>He(()=>import("./Loading.FA-5iZI8.js"),__vite__mapDeps([46,47]),import.meta.url).then(e=>e.default||e.default||e)),px=Ve(()=>He(()=>import("./NoSearchResult.BQcbcon8.js"),[],import.meta.url).then(e=>e.default||e.default||e)),hx=Ve(()=>He(()=>import("./NotFound.BWMDUpAp.js"),[],import.meta.url).then(e=>e.default||e.default||e)),gx=Ve(()=>He(()=>import("./RedirectingToLogin.CRQxzpIl.js"),__vite__mapDeps([8,9]),import.meta.url).then(e=>e.default||e.default||e)),mx=Ve(()=>He(()=>import("./RelatedGroup.B7Xm0rnI.js"),__vite__mapDeps([48,21]),import.meta.url).then(e=>e.default||e.default||e)),yx=Ve(()=>He(()=>import("./RichTextContent.CwVkAMba.js"),[],import.meta.url).then(e=>e.default||e.default||e)),vx=Ve(()=>He(()=>import("./Row.CEjulzwe.js"),[],import.meta.url).then(e=>e.default||e.default||e)),bx=Ve(()=>He(()=>import("./Search.MkaBNiG9.js"),__vite__mapDeps([49,46,47,50,32]),import.meta.url).then(e=>e.default||e.default||e)),_x=Ve(()=>He(()=>import("./Cards.CGL5k6es.js"),__vite__mapDeps([51,26,22]),import.meta.url).then(e=>e.default||e.default||e)),wx=Ve(()=>He(()=>import("./Heros.778UwRaI.js"),__vite__mapDeps([52,26,22]),import.meta.url).then(e=>e.default||e.default||e)),Sx=Ve(()=>He(()=>import("./SceletonCards.ClVccxLU.js"),[],import.meta.url).then(e=>e.default||e.default||e)),kx=Ve(()=>He(()=>import("./Slides.C1wvPbh7.js"),[],import.meta.url).then(e=>e.default||e.default||e)),xx=Ve(()=>He(()=>import("./showCase.iBl8RPD4.js"),__vite__mapDeps([53,20,21,22,31,32,33,34,5,54]),import.meta.url).then(e=>e.default||e.default||e)),Cx=Ve(()=>He(()=>Promise.resolve().then(()=>RP),void 0,import.meta.url).then(e=>e.default||e.default||e)),Ex=Ve(()=>He(()=>import("./Tabs.Cymg3OtG.js"),__vite__mapDeps([55,56,33,21,34,22]),import.meta.url).then(e=>e.default||e.default||e)),Tx=Ve(()=>He(()=>import("./TonosComponent.CfBA2XdT.js"),__vite__mapDeps([17,13,18,19]),import.meta.url).then(e=>e.default||e.default||e)),Fx=Ve(()=>He(()=>import("./TonosProductList.CJ0UOM1G.js"),__vite__mapDeps([57,58,31,32,33,21,34,22,35]),import.meta.url).then(e=>e.default||e.default||e)),Ax=Ve(()=>He(()=>import("./Details.BiyoXhJk.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Px=Ve(()=>He(()=>import("./Player.DxRA59VF.js"),__vite__mapDeps([59,58,18,28,11,60]),import.meta.url).then(e=>e.default||e.default||e)),Ix=Ve(()=>He(()=>import("./TheTest1.DEPi7fRN.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Rx=Ve(()=>He(()=>import("./Video.BqqABydI.js"),__vite__mapDeps([61,59,58,18,28,11,60]),import.meta.url).then(e=>e.default||e.default||e)),Ox=Ve(()=>He(()=>import("./VpIcon.5VCecmDS.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Dx=Ve(()=>He(()=>import("./WatchedVideos.DuKMs4v-.js"),__vite__mapDeps([62,31,32,45,34,22,33,21,63]),import.meta.url).then(e=>e.default||e.default||e)),Lx=Ve(()=>He(()=>
35import("./Widget.BgeYo4Tk.js"),[],import.meta.url).then(e=>e.default||e.default||e)),jx=Ve(()=>He(()=>Promise.resolve().then(()=>aA),void 0,import.meta.url).then(e=>e.default||e.default||e)),Mx=Ve(()=>He(()=>import("./my-lib.umd.sZd4C2_R.js").then(e=>e.m),[],import.meta.url).then(e=>e.default||e.default||e)),Bx=Ve(()=>He(()=>import("./ScriptAriaLoadingIndicator.DOchPnZI.js"),__vite__mapDeps([64,65]),import.meta.url).then(e=>e.default||e.default||e)),Nx=Ve(()=>He(()=>import("./ScriptCarbonAds.DjpaiRST.js"),__vite__mapDeps([66,67]),import.meta.url).then(e=>e.default||e.default||e)),Hx=Ve(()=>He(()=>import("./ScriptCrisp.C8QQ3Tii.js"),__vite__mapDeps([68,67,69,6]),import.meta.url).then(e=>e.default||e.default||e)),$x=Ve(()=>He(()=>import("./ScriptGoogleAdsense.DVJttfiw.js"),__vite__mapDeps([70,67,69,6]),import.meta.url).then(e=>e.default||e.default||e)),Ux=Ve(()=>He(()=>import("./ScriptGoogleMaps.CcfEcGQh.js"),__vite__mapDeps([71,69,6,67,64,65]),import.meta.url).then(e=>e.default||e.default||e)),qx=Ve(()=>He(()=>import("./ScriptIntercom.COh7mA_u.js"),__vite__mapDeps([72,69,6,67]),import.meta.url).then(e=>e.default||e.default||e)),Vx=Ve(()=>He(()=>import("./ScriptLemonSqueezy.D0bwUoOp.js"),__vite__mapDeps([73,67,69,6]),import.meta.url).then(e=>e.default||e.default||e)),Wx=Ve(()=>He(()=>import("./ScriptLoadingIndicator.Q_sthsEZ.js"),__vite__mapDeps([74,75]),import.meta.url).then(e=>e.default||e.default||e)),zx=Ve(()=>He(()=>import("./ScriptStripePricingTable.CG48nVQK.js"),__vite__mapDeps([76,67,6]),import.meta.url).then(e=>e.default||e.default||e)),Kx=Ve(()=>He(()=>import("./ScriptVimeoPlayer.DCEtfHMG.js"),__vite__mapDeps([77,67,69,6,64,65,78]),import.meta.url).then(e=>e.default||e.default||e)),Jx=Ve(()=>He(()=>import("./ScriptYouTubePlayer.Dsat1e-E.js"),__vite__mapDeps([79,67,69,6,64,65]),import.meta.url).then(e=>e.default||e.default||e)),Gx=Ve(()=>He(()=>import("./index.Cdt1eJ2C.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Yx=[["BannerCarousel",kk],["TheBody",xk],["TheFooter",Ck],["TheHeader",Ek],["TheTest",Tk],["AdComponent",Fk],["AdComponentTheAdComponent",Ak],["Banner",Pk],["Button",Ik],["Card",Rk],["Chat",Ok],["Col",Dk],["ColWrapper",Lk],["Comments",jk],["ContentCarousel",Mk],["ContentGrid",Bk],["ContentSingle",Nk],["ContentSlider",Hk],["ContentDetails",$k],["CustomJsComponent",Uk],["FollowingMedia",qk],["FooterImage",Vk],["FooterLabel",Wk],["FooterLogo",zk],["FooterMenu",Kk],["FooterSocialMedia",Jk],["FooterSpacing",Gk],["HeaderV2CustomComponent",Yk],["HeaderV2Label",Zk],["HeaderV2Language",Xk],["HeaderV2Logo",Qk],["HeaderV2Menu",ex],["HeaderV2Notification",tx],["HeaderV2Profile",rx],["HeaderV2Search",nx],["HeaderV2Sidebar",ox],["HeaderV2Spacing",ix],["Identifier",sx],["Image",ax],["Label",lx],["List",cx],["Menu",ux],["NewestVideos",fx],["PageLoading",dx],["PageNoSearchResult",px],["PageNotFound",hx],["PageRedirectingToLogin",gx],["RelatedGroup",mx],["RichTextContent",yx],["Row",vx],["Search",bx],["SectionCards",_x],["SectionHeros",wx],["SectionSceletonCards",Sx],["SectionSlides",kx],["ShowCase",xx],["Sidebar",Cx],["Tabs",Ex],["TonosComponent",Tx],["TonosProductList",Fx],["VideoDetails",Ax],["VideoPlayer",Px],["VideoTheTest1",Ix],["Video",Rx],["VpIcon",Ox],["WatchedVideos",Dx],["Widget",Lx],["MyLibEs",jx],["MyLibUmd",Mx],["ScriptAriaLoadingIndicator",Bx],["ScriptCarbonAds",Nx],["ScriptCrisp",Hx],["ScriptGoogleAdsense",$x],["ScriptGoogleMaps",Ux],["ScriptIntercom",qx],["ScriptLemonSqueezy",Vx],["ScriptLoadingIndicator",Wx],["ScriptStripePricingTable",zx],["ScriptVimeoPlayer",Kx],["ScriptYouTubePlayer",Jx],["RenderCacheable",Gx]],Zx=Wr({name:"nuxt:global-components",setup(e){for(const[t,r]of Yx)e.vueApp.component(t,r),e.vueApp.component("Lazy"+t,r)}}),Ns={},Xx=Wr({name:"nuxt:prefetch",setup(e){const t=rr();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{var o;const n=(o=r==null?void 0:r.meta)==null?void 0:o.layout;n&&typeof Ns[n]=="function"&&await Ns[n]()})}),e.hooks.hook("link:prefetch",r=>{if(Bn(r))return;const n=t.resolve(r);if(!n)return;const o=n.meta.layout;let i=wu(n.meta.middleware);i=i.filter(s=>typeof s=="string");for(const s of i)typeof Ui[s]=="function"&&Ui[s]();
35o&&typeof Ns[o]=="function"&&Ns[o]()})}}),Qx=new RegExp(/Googlebot\/|Googlebot-Mobile|Googlebot-Image|Googlebot-News|Googlebot-Video|AdsBot-Google([^-]|$)|AdsBot-Google-Mobile|Feedfetcher-Google|Mediapartners-Google|Mediapartners \(Googlebot\)|APIs-Google|Google-InspectionTool|Storebot-Google|GoogleOther|bingbot|Slurp|[wW]get|LinkedInBot|Python-urllib|python-requests|aiohttp|httpx|libwww-perl|httpunit|Nutch|Go-http-client|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|BIGLOTRON|Teoma|convera|seekbot|Gigabot|Gigablast|exabot|ia_archiver|GingerCrawler|webmon |HTTrack|grub\.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|findlink|msrbot|panscient|yacybot|AISearchBot|ips-agent|tagoobot|MJ12bot|woriobot|yanga|buzzbot|mlbot|yandex\.com\/bots|purebot|Linguee Bot|CyberPatrol|voilabot|Baiduspider|citeseerxbot|spbot|twengabot|postrank|Turnitin|scribdbot|page2rss|sitebot|linkdex|Adidxbot|ezooms|dotbot|Mail\.RU_Bot|discobot|heritrix|findthatfile|europarchive\.org|NerdByNature\.Bot|(sistrix|SISTRIX) [cC]rawler|Ahrefs(Bot|SiteAudit)|fuelbot|CrunchBot|IndeedBot|mappydata|woobot|ZoominfoBot|PrivacyAwareBot|Multiviewbot|SWIMGBot|Grobbot|eright|Apercite|semanticbot|Aboundex|domaincrawler|wbsearchbot|summify|CCBot|edisterbot|SeznamBot|ec2linkfinder|gslfbot|aiHitBot|intelium_bot|facebookexternalhit|Yeti|RetrevoPageAnalyzer|lb-spider|Sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net\.com\.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|it2media-domain-crawler|ip-web-crawler\.com|siteexplorer\.info|elisabot|proximic|changedetection|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|CC Metadata Scaper|g00g1e\.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Twitterbot|cXensebot|smtbot|bnf\.fr_bot|A6-Indexer|ADmantX|Facebot|OrangeBot\/|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive\.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|S[eE][mM]rushBot|yoozBot|lipperhey|Y!J|Domain Re-Animator Bot|AddThis|Screaming Frog SEO Spider|MetaURI|Scrapy|Livelap[bB]ot|OpenHoseBot|CapsuleChecker|collection@infegy\.com|IstellaBot|DeuSu\/|betaBot|Cliqzbot\/|MojeekBot\/|netEstate NE Crawler|SafeSearch microdata crawler|Gluten Free Crawler\/|Sonic|Sysomos|Trove|deadlinkchecker|Slack-ImgProxy|Embedly|RankActiveLinkBot|iskanie|SafeDNSBot|SkypeUriPreview|Veoozbot|Slackbot|redditbot|datagnionbot|Google-Adwords-Instant|adbeat_bot|WhatsApp|contxbot|pinterest\.com\/bot|electricmonk|GarlikCrawler|BingPreview\/|vebidoobot|FemtosearchBot|Yahoo Link Preview|MetaJobBot|DomainStatsBot|mindUpBot|Daum\/|Jugendschutzprogramm-Crawler|Xenu Link Sleuth|Pcore-HTTP|moatbot|KosmioBot|[pP]ingdom|AppInsights|PhantomJS|Gowikibot|PiplBot|Discordbot|TelegramBot|Jetslide|newsharecounts|James BOT|Bark[rR]owler|TinEye|SocialRankIOBot|trendictionbot|Ocarinabot|epicbot|Primalbot|DuckDuckGo-Favicons-Bot|GnowitNewsbot|Leikibot|LinkArchiver|YaK\/|PaperLiBot|Digg Deeper|dcrawl|Snacktory|AndersPinkBot|Fyrebot|EveryoneSocialBot|Mediatoolkitbot|Luminator-robots|ExtLinksBot|SurveyBot|NING\/|okhttp|Nuzzel|omgili|PocketParser|YisouSpider|um-LN|ToutiaoSpider|MuckRack|Jamie's Spider|AHC\/|NetcraftSurveyAgent|Laserlikebot|^Apache-HttpClient|AppEngine-Google|Jetty|Upflow|Thinklab|Traackr\.com|Twurly|Mastodon|http_get|DnyzBot|botify|007ac9 Crawler|BehloolBot|BrandVerity|check_http|BDCbot|ZumBot|EZID|ICC-Crawler|ArchiveBot|^LCC |filterdb\.iss\.net\/crawler|BLP_bbot|BomboraBot|Buck\/|Companybook-Crawler|Genieo|magpie-crawler|MeltwaterNews|Moreover|newspaper\/|ScoutJet|(^| )sentry\/|StorygizeBot|UptimeRobot|OutclicksBot|seoscanners|Hatena|Google Web Preview|MauiBot|AlphaBot|SBL-BOT|IAS crawler|adscanner|Netvibes|acapbot|Baidu-YunGuanCe|bitlybot|blogmuraBot|Bot\.AraTurka\.com|bot-pge\.chlooe\.com|BoxcarBot|BTWebClient|ContextAd Bot|Digincore bot|Disqus|Feedly|Fetch\/|Fever|Flamingo_SearchEngine|FlipboardProxy|g2reader-bot|G2 Web Services|imrbot|K7MLWCBot|Kemvibot|Landau-Media-Spider|linkapediabot|vkShare|Siteimprove\.com|BLEXBot\/|DareBoost|ZuperlistBot\/|Miniflux\/|Feedspot|Diffbot\/|SEOkicks|tracemyfile|Nimbostratus-Bot|zgrab|PR-CY\.RU|AdsTxtCrawler|Datafeedwatch|Zabbix|TangibleeBot|google-xrawler|axios|Amazon CloudFront|Pulsepoint|CloudFlare-AlwaysOnline|Google-Structured-Data-Testing-Tool|WordupInfoSearch|WebDataStats|HttpUrlConnection|ZoomBot|VelenPublicWebCrawler|MoodleBot|jpg-newsbot|outbrain|W3C_Validator|Validator\.nu|W3C-checklink|W3C-mobileOK|W3C_I18n-Checker|FeedValidator|W3C_CSS_Validator|W3C_Unicorn|Google-PhysicalWeb|Blackboard|ICBot\/|BazQux|Twingly|Rivva|Experibot|awesomecrawler|Dataprovider\.com|GroupHigh\/|theoldreader\.com|AnyEvent|Uptimebot\.org|Nmap Scripting Engine|2ip\.ru|Clickagy|Caliperbot|MBCrawler|online-webceo-bot|B2B Bot|AddSearchBot|Google Favicon|HubSpot|Chrome-Lighthouse|HeadlessChrome|CheckMarkNetwork\/|www\.uptime\.com|Streamline3Bot\/|serpstatbot\/|MixnodeCache\/|^curl|SimpleScraper|RSSingBot|Jooblebot|fedoraplanet|Friendica|NextCloud|Tiny Tiny RSS|RegionStuttgartBot|Bytespider|Datanyze|Google-Site-Verification|TrendsmapResolver|tweetedtimes|NTENTbot|Gwene|SimplePie|SearchAtlas|Superfeedr|feedbot|UT-Dorkbot|Amazonbot|SerendeputyBot|Eyeotabot|office
35storebot|Neticle Crawler|SurdotlyBot|LinkisBot|AwarioSmartBot|AwarioRssBot|RyteBot|FreeWebMonitoring SiteChecker|AspiegelBot|NAVER Blog Rssbot|zenback bot|SentiBot|Domains Project\/|Pandalytics|VKRobot|bidswitchbot|tigerbot|NIXStatsbot|Atom Feed Robot|[Cc]urebot|PagePeeker\/|Vigil\/|rssbot\/|startmebot\/|JobboerseBot|seewithkids|NINJA bot|Cutbot|BublupBot|BrandONbot|RidderBot|Taboolabot|Dubbotbot|FindITAnswersbot|infoobot|Refindbot|BlogTraffic\/\d\.\d+ Feed-Fetcher|SeobilityBot|Cincraw|Dragonbot|VoluumDSP-content-bot|FreshRSS|BitBot|^PHP-Curl-Class|Google-Certificates-Bridge|centurybot|Viber|e\.ventures Investment Crawler|evc-batch|PetalBot|virustotal|(^| )PTST\/|minicrawler|Cookiebot|trovitBot|seostar\.co|IonCrawl|Uptime-Kuma|Seekport|FreshpingBot|Feedbin|CriteoBot|Snap URL Preview Service|Better Uptime Bot|RuxitSynthetic|Google-Read-Aloud|Valve\/Steam|OdklBot\/|GPTBot|ChatGPT-User|YandexRenderResourcesBot\/|LightspeedSystemsCrawler|ev-crawler\/|BitSightBot\/|woorankreview\/|Google-Safety|AwarioBot|DataForSeoBot|Linespider|WellKnownBot|A Patent Crawler|StractBot|search\.marginalia\.nu|YouBot|Nicecrawler|Neevabot|BrightEdge Crawler|SiteCheckerBotCrawler|TombaPublicWebCrawler|CrawlyProjectCrawler|KomodiaBot|KStandBot|CISPA Webcrawler|MTRobot|hyscore\.io|AlexandriaOrgBot|2ip bot|Yellowbrandprotectionbot|SEOlizer|vuhuvBot|INETDEX-BOT|Synapse|t3versionsBot|deepnoc|Cocolyzebot|hypestat|ReverseEngineeringBot|sempi\.tech|Iframely|MetaInspector|node-fetch|lkxscan|python-opengraph|OpenGraphCheck|developers\.google\.com\/\+\/web\/snippet|SenutoBot|MaCoCu|NewsBlur|inoreader|NetSystemsResearch|PageThing|WordPress\/|PhxBot|ImagesiftBot|Expanse|InternetMeasurement|^BW\/|GeedoBot|Audisto Crawler|PerplexityBot\/|[cC]laude[bB]ot|Monsidobot|GroupMeBot|Vercelbot|vercel-screenshot/),eC=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,tC=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,rC=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,nC=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
35sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function oC(e){return eC.test(e)||tC.test(e.slice(0,4))}function iC(e){return rC.test(e)||nC.test(e.slice(0,4))}function sC(e){return/iPad|iPhone|iPod/.test(e)}function aC(e){return/android/i.test(e)}function lC(e){return/Windows/.test(e)}function cC(e){return/Mac OS X/.test(e)}const uC=[{name:"Samsung",regex:/SamsungBrowser/i},{name:"Edge",regex:/edg(?:[ea]|ios)?\//i},{name:"Firefox",regex:/firefox|iceweasel|fxios/i},{name:"Chrome",regex:/chrome|crios|crmo/i},{name:"Safari",regex:/safari|applewebkit/i}];function fC(e){for(const t of uC)if(t.regex.test(e))return t.name;return""}function Dd(e,t={}){let r=!1,n=!1,o=!1,i=!1;if(e==="Amazon CloudFront")t["cloudfront-is-mobile-viewer"]==="true"&&(r=!0,n=!0),t["cloudfront-is-tablet-viewer"]==="true"&&(r=!1,n=!0),t["cloudfront-is-desktop-viewer"]==="true"&&(r=!1,n=!1),t["cloudfront-is-ios-viewer"]==="true"&&(o=!0),t["cloudfront-is-android-viewer"]==="true"&&(i=!0);else if(t&&t["cf-device-type"])switch(t["cf-device-type"]){case"mobile":r=!0,n=!0;break;case"tablet":r=!1,n=!0;break;case"desktop":r=!1,n=!1;break}else r=oC(e),n=iC(e),o=sC(e),i=aC(e);const s=lC(e),a=cC(e),d=fC(e),f=d==="Safari",u=d==="Firefox",p=d==="Edge",g=d==="Chrome",y=d==="Samsung",v=Qx.test(e);return{userAgent:e,isMobile:r,isMobileOrTablet:n,isTablet:!r&&n,isDesktop:!n,isIos:o,isAndroid:i,isWindows:s,isMacOS:a,isApple:a||o,isDesktopOrTablet:!r,isSafari:f,isFirefox:u,isEdge:p,isChrome:g,isSamsung:y,isCrawler:v}}const dC=Wr(()=>{const e=en(),t=e.public.device.defaultUserAgent;let r;{const n=navigator.userAgent||t;r=nn(Dd(n)),e.public.device.refreshOnResize&&window.addEventListener("resize",()=>{setTimeout(()=>{const o=Dd(navigator.userAgent||n);Object.entries(o).forEach(([i,s])=>{r[i]=s})},50)})}return{provide:{device:r}}}),pC=Wr(e=>{e.vueApp.config.errorHandler=(t,r)=>{console.error("defineNuxtPlugin",t,r)}}),hC=[dw,yw,HS,US,qS,VS,zS,Sk,Zx,Xx,dC,pC],yt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},gC={};function mC(e,t){return D(),V("button",La(Va(e.$attrs)),[Ze(e.$slots,"default")],16)}const yC=yt(gC,[["render",mC]]),vC={};function bC(e,t){return D(),V("span",dr({class:"rounded py-0.5 px-1 flex items-center justify-center"},e.$attrs),[Ze(e.$slots,"default")],16)}const so=yt(vC,[["render",bC]]),_C={class:"absolute flex items-center justify-center top-0 bottom-0 right-0 left-0"},wC={viewBox:"0,0,24,24",width:"32",height:"32",fill:"white",xmlns:"http://www.w3.org/2000/svg",class:"inline-block"}
35,SC={key:0,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.054 10.149a.6.6 0 01.82-.218 2.885 2.885 0 01-.002 4.997.6.6 0 11-.6-1.039 1.685 1.685 0 000-2.92.6.6 0 01-.218-.82z"},kC={key:1,"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.193 8.167a.6.6 0 01.82-.219 5.17 5.17 0 012.587 4.48 5.17 5.17 0 01-2.588 4.481.6.6 0 11-.6-1.039A3.97 3.97 0 0019.4 12.43a3.97 3.97 0 00-1.988-3.442.6.6 0 01-.219-.82zM8.571 8.4a.6.6 0 01.6.6v6.857a.6.6 0 01-1.2 0V9a.6.6 0 01.6-.6z"},xC=["autoplay","muted","src"],CC={__name:"JVideoBanner",props:{autoplay:{type:Boolean,default:!1},videoSource:{type:String,required:!0},canControlAudio:{type:Boolean,default:!1}},setup(e){const t=ue(!0),r=n=>{n.preventDefault(),t.value=!t.value};return(n,o)=>(D(),V("div",_C,[e.canControlAudio?(D(),V("button",{key:0,"aria-label":"Control Audio",class:"btn-control-audio absolute top-0 right-0 m-3 z-20 transition delay-1000 ease-out duration-300",onClick:r},[(D(),V("svg",wC,[t.value?le("",!0):(D(),V("path",SC)),t.value?le("",!0):(D(),V("path",kC)),o[0]||(o[0]=B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.795 6.711c1.723-1.206 4.09.027 4.09 2.13v7.175c0 2.103-2.367 3.336-4.09 2.13l-2.413-1.689H7.43a4.029 4.029 0 010-8.057h.953l2.413-1.689zm2.89 2.13c0-1.132-1.274-1.796-2.202-1.147L8.76 9.6H7.429a2.829 2.829 0 100 5.657H8.76l2.722 1.906c.928.65 2.203-.015 2.203-1.147V8.84z"},null,-1))]))])):le("",!0),B("video",{autoplay:e.autoplay,playsinline:"","webkit-playsinline":"",muted:t.value,loop:"",src:e.videoSource},null,8,xC)]))}};function Ac(e){if(!e)return{};const t=window.getComputedStyle(e)["overflow-y"],r=window.getComputedStyle(e)["overflow-x"];return{vertical:(t==="scroll"||t==="auto")&&e.scrollHeight>e.clientHeight,horizontal:(r==="scroll"||r==="auto")&&e.scrollWidth>e.clientWidth}}function on(e,t,r,n=!1){const o=new window.IntersectionObserver(([i])=>{if(i.isIntersecting){t&&(r?t(r):t(),n&&o.unobserve(e));return}},{root:null,threshold:.1});if(e)o.observe(e);else throw t}let ku=null;const tm=e=>{ku=setTimeout(()=>{e.value=!0},1e3)},rm=e=>{clearTimeout(ku),e.value=!1},EC=(e,t)=>{e&&(ku=e.addEventListener("mouseenter",function(){tm(t)}),e.addEventListener("mouseleave",function(){rm(t)}))},TC=e=>{e&&(e.removeEventListener("mouseenter",tm),e.removeEventListener("mouseleave",rm))},FC={class:"w-2/3 sm:w-1/2 pb-5 z-10"},AC={key:0,class:""},PC=["innerHTML"],IC={key:4,class:"j-tag font-semibold text-xs sm:text-base flex items-center mb-2"},RC={class:"w-full"},OC={key:2},DC={__name:"JBanner",props:{data:{type:Object,required:!0},hasOverlay:{type:Boolean,required:!1,default:!1},customWrapper:{type:[String,Object],required:!1,default:"div"},titleStyle:{type:Object,default:{}},descriptionStyle:{type:Object,required:!1,default:{}},metricsStyle:{type:Object,required:!1,default:{}},contentStyle:{type:Object,required:!1,default:{}},contentClasses:{type:String,required:!1,default:"items-start justify-end text-left"},buttonAlignment:{type:String,required:!1,default:"justify-start items-end text-center"},wrapperStyle:{type:Object,required:!1,default:{height:"500px"}},hasInteraction:{type:Boolean,required:!1,default:!0},autoplay:{Boolean,required:!1,default:!1},canControlAudio:{Boolean,required:!1,default:!1},buttons:{type:Array,default:[]},buttonCustomWrapper:{type:[String,Object],required:!1,default:"div"}},setup(e){jr(T=>({bf109614:w.value,"61e30a8c":_.value}));const t=e,{data:r,customWrapper:n,hasOverlay:o,width:i,autoplay:s,canControlAudio:a,wrapperStyle:d}=it(t),f=ue(!0),u=ue(!1),p=ue(null),g=ue(null),y=ue(s.value),v=xe(()=>f.value?"auto":""),k=()=>{let T=Ac(p.value);if(p.value){const F=p.value.querySelector(":first-child");F&&(T=Ac(F))}T!=null&&T.vertical&&(u.value=!0)};kt(()=>{var T;try{p.value&&on(p.value,k,null,!0)}catch(F){console.error("check show more issues",F,p.value)}s.value||!((T=r.value)!=null&&T.videoSrc)||EC(g.value,y)}),fr(()=>{var T;s.value||!((T=r.value)!=null&&T.videoSrc)||TC(g.value)});const C=T=>{T.preventDefault(),f.value=!f.value},E=xe(()=>{var T,F;if((T=r.value)!=null&&T.videoSrc&&s.value)return null;if((F=r.value)!=null&&F.img)return`url(${r.value.img})`;if(y.value)return"unset"}),w=xe(()=>{var T,F;return((T=d.value)==null?void 0:T.borderColorOnHover)||((F=d.value)==null?void 0:F.borderColor)}),_=xe(()=>{var T,F;return((T=d.value)==null?void 0:T.borderColorOnActive)||((F=d.value)==null?void 0:F.borderColor)});return(T,F)=>{var I,P;return D(),V("div",{class:Be(["j-banner overflow-hidden",[S(o)?"overlay":null,S(s)||y.value?"is-video":null]]),ref_key:"jBannerRef",ref:g,style:se({backgroundImage:E.value,...f.value?{...S(d)}:{...S(d),height:v.value,aspectRatio:"unset"},minHeight:"100%"})},[y.value?(D(),Ee(CC,{key:0,"video-source":S(r).videoSrc,autoplay:S(s)||y.value,canControlAudio:S(a)},null,8,["video-source","autoplay","canControlAudio"])):le("",!0),S(r)?(D(),V(qe,{key:1},[(D(),Ee(Lt(S(n)),{class:"flex h-full z-10 absolute top-0 right-0 bottom-0 left-0",to:S(r).imgTo?S(r).imgTo:"/not-set",target:S(n)==="a"?"_blank":null,href:S(r).imgTo,"aria-label":`Read more ${S(r).description}`},null,8,["to","target","href","aria-label"])),B("div",{class:Be(["slider-content h-full flex flex-col container mx-auto top-0 left-0 right-0 bottom-0",[e.contentClasses,f.value&&(S(d).aspectRatio||S(d).height!=="auto")?"absolute":"relative"]]),style:se(e.contentStyle)},[B("div",FC,[(I=S(r).socialMedia)!=null&&I.items&&(P=S(r).socialMedia)!=null&&P.items.length?(D(),V("div",AC,[Se(S(ju),{data:S(r).socialMedia,customWrapper:e.hasInteraction?"a":"div"},null,8,["data","customWrapper"])])):le("",!0),S(r).title?(D(),V("h1",{key:1,class:"j-title",style:se(e.titleStyle)},ge(S(r).title),5)):le("",!0),S(r).description?(D(),V("div",{key:2,class:Be(["j-description mb-2",{"truncate-3-lines":f.value,"ql-editor p-0":S(r).isRichText}]),ref_key:"jdescription",ref:p,style:se(e.descriptionStyle),innerHTML:S(r).description},null,14,PC)):le("",!0),S(r).tags?(D(),V("h4",{key:3,class:"j-tag mb-2",style:se(e.metricsStyle)},ge(S(r).tags)+". ",5)):le("",!0),S(r).text?(D(),V("h4",IC,ge(S(r).text),1)):le("",!0),u.value?(D(),Ee(S(mt),{key:5,class:"md:text-base j-banner-show-more flex text-base",onClick:C,style:se(e.descriptionStyle),"aria-label":f.value?`${S(r).showMoreButtonText}`:`${S(r).showLessButtonText}`},{default:Te(()=>[tt(ge(f.value?S(r).showMoreButtonText:S(r).showLessButtonText),1)]),_:1},8,["style","aria-label"])):le("",!0)]),B("div",RC,[S(r).userEngagements?(D(),Ee(S(Mu),{key:0,subscribe:S(r).userEngagements.subscribe,like:S(r).userEngagements.like,dislike:S(r).userEngagements.dislike,watchLater:S(r).userEngagements.watchLater},null,8,["subscribe","like","dislike","watchLater"])):le("",!0)]),Ze(T.$slots,"tonos-buttons",{},void 0,!0),B("div",{class:Be(["w-full flex flex-wrap",e.buttonAlignment])},[Ze(T.$slots,"buttons",{},()=>[(D(!0),V(qe,null,pt(e.buttons,H=>(D(),Ee(S(jn),{class:"z-10",key:H.id,data:H,type:H.props.type,"custom-wrapper":H.props.linkType===1?"a":e.buttonCustomWrapper,style:se(H.style),icon:H.icon,text:H.props.text,url:H.props.url},null,8,["data","type","custom-wrapper","style","icon","text","url"]))),128))],!0)],2)],6)],64)):(D(),V("div",OC,"..."))],6)}}}
35,nm=yt(DC,[["__scopeId","data-v-d01beaa6"]]),LC={key:0,class:"flex h-full"},jC={class:"w-2/3 sm:w-1/2 pb-5"},MC={key:0,class:""},BC=["innerHTML"],NC={key:4,class:"j-tag font-semibold text-xs sm:text-base flex items-center mb-2"},HC={class:"w-full"},$C={class:"w-full flex flex-wrap"},UC={key:1},qC={__name:"JBannerSceleton",props:{data:{type:Object,required:!0},hasOverlay:{type:Boolean,required:!1,default:!1},customWrapper:{type:String,required:!1,default:"div"},titleStyle:{type:Object,default:{}},descriptionStyle:{type:Object,required:!1,default:{}},metricsStyle:{type:Object,required:!1,default:{}},contentStyle:{type:Object,required:!1,default:{}},contentClasses:{type:String,required:!1,default:"items-start justify-end text-left"},wrapperStyle:{type:Object,required:!1,default:{height:"500px"}},hasInteraction:{type:Boolean,required:!1,default:!0},autoplay:{Boolean,required:!1,default:!1},canControlAudio:{Boolean,required:!1,default:!1},buttons:{type:Array,default:[]}},setup(e){const t=e,{data:r,customWrapper:n,hasOverlay:o,width:i,autoplay:s,canControlAudio:a}=it(t),d=ue(!0);ue(!1);const f=ue(null);return xe(()=>d?"auto":""),(u,p)=>{var g,y;return D(),V("div",{class:"j-banner j-banner-sceleton overflow-hidden",style:se({...e.wrapperStyle,minHeight:"100%"})},[S(r)?(D(),V("div",LC,[B("div",{class:Be(["slider-content flex flex-col container mx-auto",e.contentClasses]),style:se(e.contentStyle)},[B("div",jC,[(g=S(r).socialMedia)!=null&&g.items&&(y=S(r).socialMedia)!=null&&y.items.length?(D(),V("div",MC,[Se(S(ju),{data:S(r).socialMedia,customWrapper:e.hasInteraction?"a":"div"},null,8,["data","customWrapper"])])):le("",!0),S(r).title?(D(),V("h1",{key:1,class:"j-title",style:se(e.titleStyle)},ge(S(r).title),5)):le("",!0),S(r).description?(D(),V("div",{key:2,class:Be(["j-description mb-2",{"truncate-3-lines":d.value,"ql-editor p-0":S(r).isRichText}]),ref_key:"jdescription",ref:f,style:se(e.descriptionStyle),innerHTML:S(r).description},null,14,BC)):le("",!0),S(r).tags?(D(),V("h4",{key:3,class:"j-tag mb-2",style:se(e.metricsStyle)},ge(S(r).tags)+". ",5)):le("",!0),S(r).text?(D(),V("h4",NC,ge(S(r).text),1)):le("",!0)]),B("div",HC,[S(r).userEngagements?(D(),Ee(S(Mu),{key:0,subscribe:S(r).userEngagements.subscribe,like:S(r).userEngagements.like,dislike:S(r).userEngagements.dislike,watchLater:S(r).userEngagements.watchLater},null,8,["subscribe","like","dislike","watchLater"])):le("",!0)]),B("div",$C,[Ze(u.$slots,"buttons",{},()=>[(D(!0),V(qe,null,pt(e.buttons,v=>(D(),Ee(S(om),{key:v.id,data:v},null,8,["data"]))),128))],!0)])],6)])):(D(),V("div",UC,"..."))],4)}}},VC=yt(qC,[["__scopeId","data-v-5b28ec64"]]),mt={__name:"JButton",props:{variant:{type:String,required:!1,default:"primary"},active:{type:Boolean,required:!1,default:!1},full:{type:Boolean,required:!1,default:!1},circle:{type:Boolean,required:!1,default:!1},transparent:{type:Boolean,required:!1,default:!1},rounded:{type:Boolean,required:!1,default:!1},outlined:{type:Boolean,required:!1,default:!1},hovered:{type:Boolean,required:!1,default:!1},selected:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},callback:{type:Function,required:!1,default:()=>{}},data:{type:String,required:!1,default:null},dg:{type:String,required:!1,default:null},border:{type:String,required:!1,default:null},background:{type:String,required:!1,default:null},textColor:{type:String,required:!1,default:null},hidden:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,{variant:r,active:n,full:o,border:i,hidden:s,transparent:a,roun
35ded:d,textColor:f,background:u,callback:p,data:g}=it(t),y=xe(()=>({background:u.value,border:i.value,color:f.value}));function v(){p&&p.value&&p.value(g.value)}return(k,C)=>(D(),V("button",{class:Be(["j-button py-2",[S(r),{"j-is-rounded":S(d),"j-is-loading":e.loading,"j-is-outlined":e.outlined,"j-is-fullwidth":S(o),"j-is-circle":e.circle,"j-is-transparent":S(a),"j-is-active":S(n),"j-is-hovered":e.hovered,"j-is-selected":e.selected,"j-is-hidden":S(s)}]]),style:se(y.value),onClick:v},[Ze(k.$slots,"default")],6))}},WC={key:0},zC={__name:"JCustomButton",props:{text:{type:String,default:""},customWrapper:{type:[String,Object],default:"RouterLink"},style:{type:Object,default:{}},icon:{type:Object,default:{}},type:{type:String,default:"icon"},url:{type:String,default:""},textBeforeIcon:{type:Boolean,default:!1},version:{type:String,default:"1"}},setup(e){jr(T=>({"71214c07":v.value,ccb48366:w.value,"03db2e7c":u.value,"03d625c8":p.value,"711c4353":k.value,"3c364c80":g.value,"1d626d95":C.value,e313a7d6:_.value,"3c405de8":y.value,"1d5d64e1":E.value}));const t=e,{customWrapper:r,text:n,style:o,icon:i,type:s,url:a,version:d}=it(t),f=xe(()=>{const T=d.value==="2"?o.value:o.value.fontStyle;if(!T)return{};const{textAlign:F,fontSize:I,fontWeight:P,fontFamily:H,color:$,colorOnActive:ee,colorOnHover:j}=T;return{textAlign:F,fontSize:I,fontWeight:P,fontFamily:H,color:$,colorOnActive:ee,colorOnHover:j}}),u=xe(()=>{var T,F;return((T=f.value)==null?void 0:T.colorOnHover)||((F=f.value)==null?void 0:F.color)}),p=xe(()=>{var T,F,I,P;return((F=(T=i.value)==null?void 0:T.style)==null?void 0:F.colorOnHover)||((P=(I=i.value)==null?void 0:I.style)==null?void 0:P.color)}),g=xe(()=>{var T,F;return((T=f.value)==null?void 0:T.colorOnActive)||((F=f.value)==null?void 0:F.color)}),y=xe(()=>{var T,F,I,P;return((F=(T=i.value)==null?void 0:T.style)==null?void 0:F.colorOnActive)||((P=(I=i.value)==null?void 0:I.style)==null?void 0:P.color)}),v=xe(()=>{var T,F;return((T=o.value)==null?void 0:T.backgroundColorOnHover)||((F=o.value)==null?void 0:F.backgroundColor)}),k=xe(()=>{var T,F,I,P;return((F=(T=i.value)==null?void 0:T.style)==null?void 0:F.backgroundColorOnHover)||((P=(I=i.value)==null?void 0:I.style)==null?void 0:P.backgroundColor)}),C=xe(()=>{var T,F;return((T=o.value)==null?void 0:T.backgroundColorOnActive)||((F=o.value)==null?void 0:F.backgroundColor)}),E=xe(()=>{var T,F,I,P;return((F=(T=i.value)==null?void 0:T.style)==null?void 0:F.backgroundColorOnActive)||((P=(I=i.value)==null?void 0:I.style)==null?void 0:P.backgroundColor)}),w=xe(()=>{var T,F;return((T=o.value)==null?void 0:T.borderColorOnHover)||((F=o.value)==null?void 0:F.borderColor)}),_=xe(()=>{var T,F;return((T=o.value)==null?void 0:T.borderColorOnActive)||((F=o.value)==null?void 0:F.borderColor)});return(T,F)=>(D(),Ee(Lt(S(r)),{style:se(S(o)),href:S(r)==="a"&&S(a)?S(a):"/not-set",to:S(a)?S(a):"/not-set",target:S(r)==="a"&&S(a)?"_blank":null,class:Be(["flex flex-row flex-wrap items-center j-custom-button",e.textBeforeIcon===!0?"flex-row-reverse":""]),"aria-label":`Read more ${S(n)}`},{default:Te(()=>[Ze(T.$slots,"default",{},()=>[(S(s)==="icon"||S(s)==="icon-text")&&S(i).props?(D(),V("span",WC,[Se(S(ht),{"ikone-name":S(i).props.name,"ikone-style":S(i).style},null,8,["ikone-name","ikone-style"])])):le("",!0),S(s)==="text"||S(s)==="icon-text"?(D(),V("div",{key:1,style:se(f.value),class:"button-text cursor-pointer"},[Ze(T.$slots,"text",{},()=>[tt(ge(S(n)),1)],!0)],4)):le("",!0)],!0)]),_:3},8,["style","href","to","target","class","aria-label"]))}},jn=yt(zC,[["__scopeId","data-v-d2886edf"]]),KC=["width","height"],om={__name:"JCustomButtonSceleton",props:{data:{type:Object,required:!0},customWrapper:{type:String,default:null}},setup(e){return(t,r)=>(D(),V("div",{style:se(e.data.style),class:"j-custom-button-sceleton flex flex-wrap items-center"},[Ze(t.$slots,"default",{},()=>[e.data.props.type==="icon"||e.data.props.type==="icon-text"?(D(),V("span",{key:0,style:se(e.data.icon.style)},[Ze(t.$slots,"icon",{},()=>[(D(),V("svg",{viewBox:"0,0,24,24",width:e.data.icon.props.size,height:e.data.icon.props.size,xmlns:"http://www.w3.org/2000/svg",class:"inline-block",style:se({fill:e.data.icon.style.color||"currentcolor"})},r[0]||(r[0]=[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4 6A2.6 2.6 0 016 3.4h12A2.6 2.6 0 0120.6 6v12a2.6 2.6 0 01-2.6 2.6H6A2.6 2.6 0 013.4 18V6zM6 4.6A1.4 1.4 0 004.6 6v12A1.4 1.4 0 006 19.4h12a1.4 1.4 0 001.4-1.4V6A1.4 1.4 0 0018 4.6H6z"},null,-1),B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.477 8.077a1.6 1.6 0 011.6-1.6h1.077a1.6 1.6 0 011.6 1.6v1.077a1.6 1.6 0 01-1.6 1.6H8.077a1.6 1.6 0 01-1.6-1.6V8.077zm1.6-.4a.4.4 0 00-.4.4v1.077c0 .22.179.4.4.4h1.077a.4.4 0 00.4-.4V8.077a.4.4 0 00-.4-.4H8.077zM12.015 7.077a.6.6 0 01.6-.6h4.308a.6.6 0 010 1.2h-4.308a.6.6 0 01-.6-.6zM12.015 10.
35154a.6.6 0 01.6-.6h4.308a.6.6 0 010 1.2h-4.308a.6.6 0 01-.6-.6zM6.477 14.23a1.6 1.6 0 011.6-1.6h1.077a1.6 1.6 0 011.6 1.6v1.078a1.6 1.6 0 01-1.6 1.6H8.077a1.6 1.6 0 01-1.6-1.6V14.23zm1.6-.4a.4.4 0 00-.4.4v1.078c0 .22.179.4.4.4h1.077a.4.4 0 00.4-.4V14.23a.4.4 0 00-.4-.4H8.077zM12.015 13.23a.6.6 0 01.6-.6h4.308a.6.6 0 010 1.2h-4.308a.6.6 0 01-.6-.6zM12.015 16.308a.6.6 0 01.6-.6h4.308a.6.6 0 010 1.2h-4.308a.6.6 0 01-.6-.6z"},null,-1)]),12,KC))])],4)):le("",!0),e.data.props.type==="text"||e.data.props.type==="icon-text"?(D(),V("div",{key:1,style:se(e.data.style.fontStyle),class:"button-text"},[Ze(t.$slots,"text",{},()=>[tt(ge(e.data.props.text),1)])],4)):le("",!0)])],4))}},JC={class:"flex flex-1 flex-col justify-between p-2 order-2"},GC={class:"flex gap-1"},YC={class:"flex gap-1"},ZC={key:0,class:"py-1 px-1.5 rounded text-white bg-[#3A41ED]"},XC={class:"flex ml-auto gap-1"},QC={key:0,class:"badge badge__wrapper-video-live"},e2={key:1,class:"py-1 px-1.5 rounded text-white bg-black/50"},t2={class:"flex mt-auto"},r2={class:"flex ml-auto"},n2={inheritAttrs:!1,customOptions:{}},o2=Object.assign(n2,{__name:"JCard",props:{showTitle:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:""},showAuthor:{type:Boolean,required:!1,default:!1},author:{type:String,required:!1,default:""},showViews:{type:Boolean,required:!1,default:!1},views:{type:String,required:!1,default:""},showDate:{type:Boolean,required:!1,default:!1},date:{type:String,required:!1,default:""},showTimeDuration:{type:Boolean,required:!1,default:!1},timeDuration:{type:[String,Number],required:!1,default:""},showThumbnail:{type:Boolean,required:!1,default:!1},detailsStyle:{type:Object,required:!1},url:{type:String,required:!1,default:""},isRedirect:{type:Boolean,required:!1,default:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},cardStyle:{type:Object,required:!1,default:{}},titleStyle:{type:Object,required:!1,default:{}},infoboxFontStyle:{type:Object,required:!1,default:{}},infoboxClasses:{type:String,default:""},infoboxStyle:{type:Object,required:!1,default:{}},infoboxWrapperStyle:{type:Object,required:!1,default:{}},thumbnailStyle:{type:Object,required:!1,default:{}},breakpoint:{type:String,required:!1,default:"desktop"},showParentGroup:{type:Boolean,default:!1},parentGroupName:{type:String,default:""},parentGroupUrl:{type:String,default:""},parentGroupStyle:{type:Object,default:{}},showProgressBar:{type:Boolean,default:!0},progressBarConfig:{type:Object,default:{position:"bottom",frontBarStyle:{},backBarStyle:{},isVertical:!1}},progressBarValue:{type:[Number,String],default:50},isNew:{type:Boolean,default:!1},newItemText:{type:String,default:"New"}},setup(e){const t=e,r=eu(),n=xe(()=>r.order?`flex-${r.order}`:"flex-col"),{showAuthor:o,showViews:i,showDate:s,parentGroupStyle:a,progressBarValue:d}=it(t),f=xe(()=>o.value||i.value||s.value),u=xe(()=>{if(!t.progressBarConfig)return{};const{isVertical:y,frontBarStyle:v}=t.progressBarConfig;return y?{...v,height:d.value+"%"}:{...v,width:d.value+"%"}}),p=y=>{y.target.style.color=a.value.colorOnHover||a.value.color},g=y=>{y.target.style.color=a.value.color};return(y,v)=>(D(),V("div",dr({class:"j-card w-full"},y.$attrs,{class:[e.cardStyle.layoutType,e.breakpoint]}),[B("div",{class:Be([[n.value,e.cardStyle.layoutType],"w-full flex cardBorder"]),style:se(e.cardStyle)},[e.showThumbnail?(D(),Ee(Lt(e.isRedirect?"a":e.customWrapper),{key:0,to:e.url?e.url:"",href:e.url?e.url:"",class:"relative"},{default:Te(()=>[B("div",{class:Be(["absolute z-1 top-0 left-0 flex w-full h-full overflow-hidden",e.progressBarConfig&&e.progressBarConfig.isVertical?"flex-row":"flex-col"]),style:se(e.thumbnailStyle)},[B("div",JC,[B("div",GC,[B("div",YC,[e.isNew?(D(),V("span",ZC,ge(e.newItemText),1)):le("",!0),Ze(y.$slots,"top_left",{},void 0,!0)]),B("div",XC,[Ze(y.$slots,"top_right",{},void 0,!0),e.showTimeDuration&&e.timeDuration?(D(),V(qe,{key:0},[e.timeDuration===-1?(D(),V("span",QC,"Live")):(D(),V("span",e2,ge(e.timeDuration),1))],64)):le("",!0)])]),v[0]||(v[0]=B("div",{class:"flex w-full mt-auto"},null,-1)),B("div",t2,[Ze(y.$slots,"bottom_left",{class:"flex"},void 0,!0),B("div",r2,[Ze(y.$slots,"bottom_right",{},void 0,!0)])])]),e.showProgressBar&&e.progressBarConfig&&S(d)?(D(),V("div",{key:0,class:Be(["flex",e.progressBarConfig.position==="bottom"||e.progressBarConfig.position==="right"?"order-3":"order-1"])},[B("div",{class:"flex-1 overflow-hidden",style:se(e.progressBarConfig.backBarStyle)},[B("div",{style:se(u.value)},null,4)],4)],2)):le("",!0)],6),Ze(y.$slots,"image",{},void 0,!0),Ze(y.$slots,"filmstrip",{},void 0,!0)]),_:3},8,["to","href"])):le("",!0),f.value||e.showTitle?(D(),V("div",{key:1,style:se(e.infoboxWrapperStyle),class:"j-infobox p-1 box-border z-1 overflow-hidden"},[e.showTitle?(D(),Ee(Lt(e.isRedirect?"a":e.customWrapper),{key:0,to:e.url?e.url:"",href:e.url?e.url:"",class:"jcard-truncate",style:se(e.titleStyle)},{default:Te(()=>
35[tt(ge(e.title),1)]),_:1},8,["to","href","style"])):le("",!0),e.showParentGroup&&e.parentGroupName?(D(),Ee(Lt(e.parentGroupUrl?"RouterLink":"div"),{key:1,style:se(S(a)),to:e.parentGroupUrl,onMouseenter:p,onMouseleave:g},{default:Te(()=>[tt(ge(e.parentGroupName),1)]),_:1},40,["style","to"])):le("",!0),f.value?(D(),V("div",{key:2,class:Be([e.infoboxClasses,"flex flex-wrap"]),style:se(e.infoboxStyle)},[S(o)?(D(),V("span",{key:0,style:se(e.infoboxFontStyle)},ge(e.author),5)):le("",!0),S(i)?(D(),V("span",{key:1,style:se(e.infoboxFontStyle)},ge(e.views),5)):le("",!0),S(s)?(D(),V("span",{key:2,style:se(e.infoboxFontStyle)},ge(e.date),5)):le("",!0)],6)):le("",!0)],4)):le("",!0)],6)],16))}}),li=yt(o2,[["__scopeId","data-v-9c581b6b"]]),i2={key:0,class:"relative"},s2={class:"absolute z-1 top-0 left-0 flex flex-col w-full h-full justify-between p-2"},a2={class:"flex"},l2={class:"flex ml-auto absolute right-0"},c2={key:0,class:"j-card-badge-sceleton py-0.5 px-1 rounded text-white bg-black/50 mx-1"},u2={class:"flex mt-auto"},f2={class:"flex ml-auto"},d2={inheritAttrs:!1,customOptions:{}},p2=Object.assign(d2,{__name:"JCardSceleton",props:{showTitle:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:""},showAuthor:{type:Boolean,required:!1,default:!1},author:{type:String,required:!1,default:""},showViews:{type:Boolean,required:!1,default:!1},views:{type:String,required:!1,default:""},showDate:{type:Boolean,required:!1,default:!1},date:{type:String,required:!1,default:""},showTimeDuration:{type:Boolean,required:!1,default:!1},timeDuration:{type:String,required:!1,default:""},showThumbnail:{type:Boolean,required:!1,default:!1},detailsStyle:{type:Object,required:!1},url:{type:String,required:!1,default:""},isRedirect:{type:Boolean,required:!1,default:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},cardStyle:{type:Object,required:!1,default:{}},titleStyle:{type:Object,required:!1,default:{}},infoboxFontStyle:{type:Object,required:!1,default:{}},infoboxClasses:{type:String,default:""},infoboxStyle:{type:Object,required:!1,default:{}},infoboxWrapperStyle:{type:Object,required:!1,default:{}},breakpoint:{type:String,required:!1,default:"desktop"}},setup(e){const t=e,r=eu(),n=xe(()=>r.order?`flex-${r.order}`:"flex-col"),{showAuthor:o,showViews:i,showDate:s}=it(t),a=xe(()=>o.value||i.value||s.value);return(d,f)=>(D(),V("div",dr({class:"j-card-sceleton w-full"},d.$attrs,{class:[e.cardStyle.layoutType,e.breakpoint]}),[B("div",{class:Be([n.value,"w-full flex"]),style:se(e.cardStyle)},[e.showThumbnail?(D(),V("div",i2,[B("div",s2,[B("div",a2,[Ze(d.$slots,"top_left",{},void 0,!0),B("div",l2,[Ze(d.$slots,"top_right",{},void 0,!0),e.showTimeDuration&&e.timeDuration?(D(),V("span",c2,ge(e.timeDuration),1)):le("",!0)])]),f[0]||(f[0]=B("div",{class:"flex w-full mt-auto"},null,-1)),B("div",u2,[Ze(d.$slots,"bottom_left",{class:"flex"},void 0,!0),B("div",f2,[Ze(d.$slots,"bottom_right",{},void 0,!0)])])]),Ze(d.$slots,"image",{},void 0,!0),Ze(d.$slots,"filmstrip",{},void 0,!0)])):le("",!0),a.value||e.showTitle?(D(),V("div",{key:1,style:se(e.infoboxWrapperStyle),class:"j-infobox p-1 box-border z-1"},[e.showTitle?(D(),V("div",{key:0,class:"j-card-title jcard-truncate",style:se(e.titleStyle)},ge(e.title),5)):le("",!0),a.value?(D(),V("div",{key:1,class:Be([e.infoboxClasses,"j-card-sceleton-infobox flex flex-wrap"]),style:se(e.infoboxStyle)},[S(o)?(D(),V("span",{key:0,class:"j-card-sceleton-subtitle",style:se(e.infoboxFontStyle)},ge(e.author),5)):le("",!0),S(i)?(D(),V("span",{key:1,class:"j-card-sceleton-subtitle",style:se(e.infoboxFontStyle)},ge(e.views),5)):le("",!0),S(s)?(D(),V("span",{key:2,class:"j-card-sceleton-subtitle",style:se(e.infoboxFontStyle)},ge(e.date),5)):le("",!0)],6)):le("",!0)],4)):le("",!0)],6)],16))}}),xu=yt(p2,[["__scopeId","data-v-8fae4fae"]]);async function im(e){return new Promise(t=>{const r=new Image;r.onload=function(){t(e)},r.onerror=function(){console.log("onerror",e),t(!1)},r.src=e})}const h2=["alt","src","data-src"],g2={__name:"JPertaciImage",props:{imageSrc:{type:String,required:!1},width:{type:String,required:!1},height:{type:String,required:!1},aspectRatio:{type:String,required:!1},alt:{type:String,required:!0},placeholder:{type:String,required:!1,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII="},fallback:{type:String,required:!1,default:"https://cdn.vpapps.cloud/default-image.png"},noLazyImage:{type:Boolean,required:!1,default:!1},alt:{type:String,required:!1,default:"&nbsp;"}},setup(e){const t=e,{imageSrc:r,placeholder:n,width:o,height:i,aspectRatio:s,alt:a,fallback:d,noLazyImage:f}=it(t),u=ue(r.value),p=ue(null);return kt(()=>{setTimeout(()=>{im(r.value).then(g=>{g||(p.value.classList.add("broke-image"),u.value=d.value)})},3e3)}),(g,y)=>(D(),V("img",dr({style:{aspectRatio:S(s),width:S(o),height:S(i)},alt:S(a),class:"j-lazy-image w-full",ref_key:"jimage",ref:p,src:u.value,"data-src":S(r)},g.$attrs),null,16,h2))}},zt=yt(g2,[["__scopeId","data-v-c63ef3c3"]]);let Ld=null;function sm(e,t){clearTimeout(Ld),Ld=setTimeout(()=>{e()},t)}const m2={class:"chat-input flex flex-col relative"},y2={class:"h-[24px] w-[24px] min-w-[24px] min-h-[24px]"},v2={class:"relative w-full"},b2=["placeholder","data-placeholder"],_2={class:"absolute w-3/4 bottom-full bg-white text-black"},w2=["onClick","onMouseover"],S2={class:"w-10 h-auto"},k2={class:"absolute"},x2={key:0,class:"flex bg-white max-h-48 scrollable-list items-center justify-center p-4 overflow-y-auto z-20 flex-col"},C2={class:"flex justify-end items-center"},E2={__name:"JChatInput",props:{postMessageCallback:{type:Function,required:!0},footerStyle:{type:Object,required:!1,default:{}},profile:{type:Object,required:!1,default:{picture:null,name:"Unknown"}},buttonText:{type:String,required:!1,default:"Send"},inputText:{type:String,required:!1,default:"Write a message..."},mentionUsers:{type:Array,required:!0,default:[]},mentionEnabled:{type:Boolean,default:!0},loadMentionUsers:{type:Function,required:!1,default:null},hideMentionUserLoader:{type:Boolean,required:!1,default:!1},sendButtonType:{type:String,required:!1,default:"icon-text"},loadMoreMentions:{type:Function,required:!1,default:()=>{}},mentionsSearchCallback:{type:Function,required:!1,default:null}},setup(e){jr(ie=>({af43ee8c:g.value}));const t=e,{mentionEnabled:r,mentionUsers:n}=it(t);ue(null);const o=ue(null),i=ue(!1),s=ue(""),a=ue([]),d=ue(""),f=ue(-1),u=ue(!1),p=ue(null),g=ue(t.footerStyle.input.placeholderColor),y=xe(()=>n.value.filter(ie=>!a.value.some(ce=>
35ce.userId===ie.userId)));function v(){t.loadMentionUsers&&t.loadMentionUsers()}const k=()=>sm(v,600),C=()=>{if(o.value.innerText.trim().length===0)return;const ie=o.value.cloneNode(!0);ie.querySelectorAll("span").forEach(pe=>{if(pe.classList.contains("mention")){const ae=`@{${pe.getAttribute("data-user-id")}}`,me=document.createTextNode(ae);pe.replaceWith(me)}else{const ae=document.createTextNode(pe.innerText);pe.replaceWith(ae)}});const ce=ie.innerText.trim();t.postMessageCallback&&t.postMessageCallback(ce),o.value.innerText="",E()},E=()=>{a.value=[],i.value=!1,s.value="",u.value=!1};v();const w=ie=>{if(ie.key==="Enter"&&(ie.preventDefault(),C()),ie.key==="@"&&k(),ie.key==="@"&&r.value===!0&&n.value&&n.value.length>0){const ce=window.getSelection().getRangeAt(0);if(ce.startContainer.textContent.charAt(ce.startOffset-1).trim().slice(-1)!==""){i.value=!1;return}i.value=!0,a.value.length===n.value.length&&I(),P()}else if(ie.key==="ArrowUp")ie.preventDefault(),T();else if(ie.key==="ArrowDown")ie.preventDefault(),F();else if(ie.key==="Escape")ie.preventDefault(),i.value=!1;else if(ie.key==="Backspace"||ie.key==="Delete"){if(window.getSelection().toString().trim()===o.value.innerText.trim()&&a.value.length>0){ie.preventDefault(),a.value=[],o.value.innerHTML="",i.value=!1;return}let ce=Array.from(o.value.querySelectorAll(".mention"));setTimeout(()=>{ce.forEach(pe=>{if(!document.body.contains(pe)){ie.preventDefault();let ae=pe.innerText;const me=a.value.find(ve=>`${ve.firstName} ${ve.lastName}`===ae);me&&(a.value=a.value.filter(ve=>
35ve.userId!==me.userId)),d.value=o.value.innerHTML}}),s.value===""&&(i.value=!1)},0)}else if(ie.key===" "){const ce=window.getSelection().getRangeAt(0);ce.startOffset>0&&ce.startContainer.textContent.charAt(ce.startOffset-1)==="@"&&(i.value=!1)}},_=ue(null),T=()=>{i.value&&f.value>0&&(f.value--,_.value.children[f.value].scrollIntoView({block:"nearest",inline:"nearest"}))},F=()=>{i.value&&f.value<y.value.length-1&&(f.value++,_.value.children[f.value].scrollIntoView({block:"nearest",inline:"nearest"}))},I=()=>{u.value=!0,setTimeout(()=>{u.value=!1},2e3)},P=()=>{const ie=window.getSelection().getRangeAt(0),ce=ie.startContainer.textContent.substring(0,ie.startOffset),pe=ce.lastIndexOf("@");if(pe!==-1){const ae=ce.substring(pe+1).trim();s.value=ae}else s.value="";i.value&&t.mentionsSearchCallback&&(s.value.split(" ").length>2&&(i.value=!1,s.value=""),s.value.length&&t.mentionsSearchCallback(s.value))},H=ie=>{o.value.innerText.length>=200&&ie.preventDefault()},$=ie=>{ie.preventDefault();let ce=ie.clipboardData.getData("text"),pe=200-o.value.innerText.length;ce.length>pe&&(ce=ce.substring(0,pe)),o.value.innerText+=ce},ee=ie=>{var ce,pe;if(a.value.some(Je=>Je.userId===ie.userId))return;a.value.push(ie),a.value.length===n.value.length&&!s.value&&I();const ae=window.getSelection(),me=ae.getRangeAt(0),ve=s.value.length;if(me.startContainer&&me.startOffset>ve)me.setStart(me.startContainer,me.startOffset-ve-1);else if(me.startContainer&&me.startContainer.previousSibling){const Je=me.startContainer.previousSibling;me.setStart(Je,Je.length-ve-1)}const Pe=`<span contenteditable="false" class="mention" style="color:${(pe=(ce=t.footerStyle)==null?void 0:ce.input)==null?void 0:pe.wrapper.mentionColor}" data-user-id="${ie.userId}">${ie.firstName} ${ie.lastName}</span>`,Re=me.createContextualFragment(Pe);me.deleteContents(),me.insertNode(Re),me.collapse(!1),o.value.focus(),ae.removeAllRanges(),ae.addRange(me),d.value=o.value.innerHTML,s.value="",i.value=!1,P(),k()},j=ie=>{let ce=0;for(let ae=0;ae<ie.length;ae++)ce=ie.charCodeAt(ae)+((ce<<5)-ce);let pe=(ce&16777215).toString(16).toUpperCase();for(;pe.length<6;)pe="0"+pe;return"#"+pe};kt(()=>{on(p.value,W)});const W=()=>{try{t.loadMoreMentions()}catch(ie){console.error("Error calling load more: ",ie)}};return(ie,ce)=>(D(),V("div",m2,[B("div",{class:"flex justify-between py-1",style:se(e.footerStyle.input.wrapper)},[B("picture",y2,[e.profile.picture?(D(),Ee(zt,{key:0,"image-src":e.profile.picture,alt:"comment-img",class:"rounded-full mr-3 h-100 h-[24px] w-[24px]",fallback:"https://cdn.vpapps.cloud/unnamed.jpg"},null,8,["image-src"])):(D(),Ee(S(tl),{key:1,profileStyle:e.profile.style,name:e.profile.name},{default:Te(()=>[tt(ge(e.profile.name),1)]),_:1},8,["profileStyle","name"]))]),B("div",v2,[B("div",{ref_key:"editableDiv",ref:o,type:"text",class:"chat-input flex-1 editable-div whitespace-nowrap bg-transparent absolute left-0 top-0 w-full overflow-x-auto focus:outline-none px-3",placeholder:e.inputText,contenteditable:"",onKeydown:w,onKeypress:H,onPaste:$,onInput:P,onBlur:ce[0]||(ce[0]=pe=>i.value=!1),style:se(e.footerStyle.input.fontStyle),"data-placeholder":e.inputText},null,44,b2),B("div",_2,[wt(B("ul",{class:"flex bg-white max-h-48 scrollable-list overflow-y-auto z-20 flex-col",ref_key:"suggestionList",ref:_},[(D(!0),V(qe,null,pt(y.value,(pe,ae)=>{var me,ve;return D(),V("li",{class:"cursor-pointer flex gap-2 px-3 z-9999 items-center bg-white py-2 hover:bg-[#F6F8F9] border border-t border-[#ECF2F4] text-black pb-3 whitespace-nowrap",key:pe.userId,onClick:Pe=>ee(pe),onMousedown:ce[1]||(ce[1]=Zo(()=>{},["prevent"])),onMouseover:Pe=>f.value=ae,style:se(f.value===ae?{backgroundColor:"#F6F8F9"}:{})},[B("div",S2,[B("span",{class:"w-10 min-w-[40px] h-10 rounded-full text-white flex items-center justify-center relative",style:se({backgroundColor:j((me=pe==null?void 0:pe.firstName)==null?void 0:me.slice(0,1))})},[pe!=null&&pe.picture?(D(),Ee(zt,{key:0,"image-src":pe==null?void 0:pe.picture,alt:"comment-img",class:"rounded-full h-full object-cover z-1"},null,8,["image-src"])):le("",!0),B("span",k2,ge((ve=pe==null?void 0:pe.firstName)==null?void 0:ve.slice(0,1)),1)],4)]),tt(" "+ge(pe.firstName)+" "+ge(pe.lastName),1)],44,w2)}),128)),B("li",null,[wt(B("div",{ref_key:"mentionUserLoader",ref:p,class:"first-chat-message flex justify-center flex-col items-center"},ce[2]||(ce[2]=[B("div",{class:"overflow-hidden"},[B("div",{class:"border-gray-300 min-h-[24px] min-w-[24px] animate-spin rounded-full border-4 border-t-blue-600 my-1"})],-1)]),512),[[Mt,e.hideMentionUserLoader]])])],512),[[Mt,y.value.length>0&&i.value]]),s.value.length&&!y.value.length?(D(),V("ul",x2,ce[3]||(ce[3]=[B("li",null,"No Users Found",-1)]))):le("",!0)])])],4),B("div",C2,[Se(S(jn),{text:e.buttonText,"custom-wrapper":"div",type:e.sendButtonType,style:se(e.footerStyle.button),icon:e.footerStyle.icon,version:"2",onClick:C},null,8,["text","type","style","icon"])])]))}},am=yt(E2,[["__scopeId","data-v-34ca76db"]]);function hn(e,t){return kt(()=>{document.addEventListener("click",t,{capture:!0})}),fr(()=>{document.removeEventListener("click",t)}),{isClickOutside:function(r){return(e==null?void 0:e.value)&&!e.value.contains(r.target)}}}const T2={class:"flex"},F2={class:"flex"},A2=["innerHTML"],P2={key:0,class:"relative mr-5"},I2=["id"],R2={class:"flex flex-col bg-white z-90"},O2={class:"flex items-center pl-2 hover:bg-[#F8FAFB]"},D2={class:"flex items-center pl-2 hover:bg-[#F8FAFB]"},L2={class:"flex items-center pl-2 hover:bg-[#F8FAFB]"},lm={__name:"JChatRow",props:{message:{type:String,required:!0},id:{type:String,required:!1,default:"1"},index:{type:Number,required:!0,default:-1},author:{type:Object,required:!0},rowStyle:{type:Object,required:!1},deleteChatMessageCallback:{type:Function,required:!1},showChatMessageOptions:{type:Boolean,required:!1,default:!1},blockChatUserCallback:{type:Function,required:!1},mentionUsers:{type:Array,required:!1,default:[]},enableTimestamps:{type:Boolean,required:!1,default:!1},messageTime:{type:String,required:!1,default:""}},setup(e){const t=e,{mentionUsers:r}=it(t),n=ue(!1),o=ue(null),i=ue(!1),s=ue(null),a=v=>{d.isClickOutside(v,o)&&(n.value=!1),f.isClickOutside(v,s)&&(i.value=!1)},d=hn(o,a),f=hn(s,a),u=()=>{t.deleteChatMessageCallback&&(t.deleteChatMessageCallback(t.id),n.value=!1)},p=()=>{const v={type:1,email:t.author.email};t.blockChatUserCallback&&(t.blockChatUserCallback(v),n.value=!1)},g=()=>{const v={type:2,email:t.author.email};t.blockChatUserCallback&&(t.blockChatUserCallback(v),n.value=!1)},y=v=>{const k=/@\{(\w+)\}/g;return v.replace(k,(C,E)=>{var w,_;const T=r.value.find(F=>F.userId===E);return T?`<span style="color:${((_=(w=t.rowStyle)==null?void 0:w.wrapper)==null?void 0:_.mentionColor)||"blue"};">${T.firstName} ${T.lastName}</span>
35`:'<span style="color:red;">User Not Found</span>'})};return(v,k)=>{var C,E;return D(),V("div",{class:"w-full h-auto flex flex-row items-start",style:se(e.rowStyle.wrapper)},[B("div",T2,[e.author.image?(D(),Ee(S(zt),{key:0,style:se(e.rowStyle.image),"image-src":e.author.image,alt:"comment-img",class:"chat-imagerounded-full",fallback:"https://cdn.vpapps.cloud/unnamed.jpg"},null,8,["style","image-src"])):(D(),Ee(S(tl),{key:1,profileStyle:e.rowStyle.image,name:e.author.name},{default:Te(()=>[tt(ge(v.profile.name),1)]),_:1},8,["profileStyle","name"]))]),B("div",{class:"flex flex-row justify-between w-full items-center",style:se({gap:((E=(C=e.rowStyle)==null?void 0:C.wrapper)==null?void 0:E.gap)||null})},[B("div",F2,[B("div",{class:"chat-message break-all!",style:se(e.rowStyle.text)},[B("span",{class:"chat-author whitespace-nowrap inline-block",style:se(e.rowStyle.author)},ge(e.enableTimestamps?e.messageTime:"")+" "+ge(e.author.name)+": ",5),B("span",{innerHTML:y(e.message)},null,8,A2)],4)]),e.showChatMessageOptions?(D(),V("div",P2,[(D(),V("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer",xmlns:"http://www.w3.org/2000/svg",onClick:k[0]||(k[0]=w=>n.value=!n.value)},k[1]||(k[1]=[B("path",{d:"M7.99984 4.66667C7.26346 4.66667 6.6665 4.06971 6.6665 3.33333C6.6665 2.59695 7.26346 2 7.99984 2C8.73622 2 9.33317 2.59695 9.33317 3.33333C9.33317 4.06971 8.73622 4.66667 7.99984 4.66667Z",fill:"#36435E"},null,-1),B("path",{d:"M7.99984 9.33333C7.26346 9.33333 6.6665 8.73638 6.6665 8C6.6665 7.26362 7.26346 6.66667 7.99984 6.66667C8.73622 6.66667 9.33317 7.26362 9.33317 8C9.33317 8.73638 8.73622 9.33333 7.99984 9.33333Z",fill:"#36435E"},null,-1),B("path",{d:"M6.6665 12.6667C6.6665 13.403 7.26346 14 7.99984 14C8.73622 14 9.33317 13.403 9.33317 12.6667C9.33317 11.9303 8.73622 11.3333 7.99984 11.3333C7.26346 11.3333 6.6665 11.9303 6.6665 12.6667Z",fill:"#36435E"},null,-1)]))),wt(B("div",{ref_key:"chatOptionsRef",ref:o,id:`chat-options-pop-up-${e.id}`,class:Be(["w-auto absolute right-4 -transform-x-1/2 rounded-sm shadow flex flex-col",e.index>2?"bottom-0":"top-0"])},[B("span",R2,[B("span",O2,[Se(S(mt),{callback:u,data:"1",rounded:"",class:"flex gap-2 whitespace-nowrap text-[#ff0000] px-2 justify-start! w-full pl-0","aria-label":"Smazat"},{default:Te(()=>k[2]||(k[2]=[B("svg",{width:"18",height:"18",viewBox:"0 0 14 16",fill:"none",class:"p-px",xmlns:"http://www.w3.org/2000/svg"},[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.90234V3.27734H0.8125C0.50184 3.27734 0.25 3.52918 0.25 3.83984C0.25 4.1505 0.50184 4.40234 0.8125 4.40234H1.84375L3.00363 13.6814C3.14438 14.8074 4.10153 15.6523 5.23626 15.6523H8.76374C9.89847 15.6523 10.8556 14.8074 10.9964 13.6814L12.1562 4.40234H13.1875C13.4982 4.40234 13.75 4.1505 13.75 3.83984C13.75 3.52918 13.4982 3.27734 13.1875 3.27734H10V2.90234C10 1.6597 8.99264 0.652344 7.75 0.652344H6.25C5.00736 0.652344 4 1.6597 4 2.90234ZM7.75 1.77734H6.25C5.62868 1.77734 5.125 2.28102 5.125 2.90234V3.27734H8.875V2.90234C8.875 2.28102 8.37132 1.77734 7.75 1.77734ZM4.11995 13.5419L3.02438 4.77734H10.9756L9.88005 13.5419C9.80968 14.1049 9.3311 14.5273 8.76374 14.5273H5.23626C4.6689 14.5273 4.19032 14.1049 4.11995 13.5419Z",fill:"#ff0000"})],-1),tt(" Delete ")])),_:1,__:[2]})]),B("span",D2,[Se(S(mt),{callback:p,data:"1",rounded:"",class:"flex gap-2 whitespace-nowrap text-[#36435E] px-2 justify-start! w-full pl-0","aria-label":"Smazat"},{default:Te(()=>k[3]||(k[3]=[B("svg",{width:"18",height:"18",viewBox:"0 0 14 14",fill:"none",class:"p-px",xmlns:"http://www.w3.org/2000/svg"},[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.84742 7.15302C3.84742 6.87809 4.0703 6.65521 4.34523 6.65521H9.65514C9.93007 6.65521 10.1529 6.87809 10.1529 7.15302C10.1529 7.42795 9.93007 7.65082 9.65514 7.65082H4.34523C4.0703 7.65082 3.84742 7.42795 3.84742 7.15302Z",fill:"#36435E"}),B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00019 12.7948C10.1161 12.7948 12.642 10.2689 12.642 7.15302C12.642 4.03715 10.1161 1.51123 7.00019 1.51123C3.88431 1.51123 1.3584 4.03715 1.3584 7.15302C1.3584 10.2689 3.88431 12.7948 7.00019 12.7948ZM7.00019 13.7904C10.6659 13.7904 13.6376 10.8187 13.6376 7.15302C13.6376 3.48729 10.6659 0.515625 7.00019 0.515625C3.33445 0.515625 0.362793 3.48729 0.362793 7.15302C0.362793 10.8187 3.33445 13.7904 7.00019 13.7904Z",fill:"#6E7B95"})],-1),tt(" Block User for Chat ")])),_:1,__:[3]})]),B("span",L2,[Se(S(mt),{callback:g,data:"1",rounded:"",class:"flex gap-2 whitespace-nowrap text-[#36435E] px-2 justify-start! w-full pl-0","aria-label":"Smazat"},{default:Te(()=>k[4]||(k[4]=[B("svg",{width:"18",height:"18",viewBox:"0 0 14 14",fill:"none",class:"p-px",xmlns:"http://www.w3.org/2000/svg"},[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.84742 7.15302C3.84742 6.87809 4.0703 6.65521 4.34523 6.65521H9.65514C9.93007 6.65521 10.1529 6.87809 10.1529 7.15302C10.1529 7.42795 9.93007 7.65082 9.65514 7.65082H4.34523C4.0703 7.65082 3.84742 7.42795 3.84742 7.15302Z",fill:"#36435E"}),B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00019 12.7948C10.1161 12.7948 12.642 10.2689 12.642 7.15302C12.642 4.03715 10.1161 1.51123 7.00019 1.51123C3.88431 1.51123 1.3584 4.03715 1.3584 7.15302C1.3584 10.2689 3.88431 12.7948 7.00019 12.7948ZM7.00019 13.7904C10.6659 13.7904 13.6376 10.8187 13.6376 7.15302C13.6376 3.48729 10.6659 0.515625 7.00019 0.515625C3.33445 0.515625 0.362793 3.48729 0.362793 7.15302C0.362793 10.8187 3.33445 13.7904 7.00019 13.7904Z",fill:"#6E7B95"})],-1),tt(" Block User for Project ")])),_:1,__:[4]})])])],10,I2),[[Mt,n.value]])])):le("",!0)],4)],4)}}},j2={class:"flex flex-col"},M2={key:0,class:"absolute top-0 right-0 bottom-0 left-0 flex justify-center items-center text-black text-xs"},B2={__name:"JChat",props:{config:{type:Object,required:!1,default:{active:!1,isEnded:!1,canChat:!0}},postMessageCallback:{type:Function,required:!0},loadMentionUsers:{type:Function,required:!1,default:null},loadMoreOldMesaggesCallback:{type:Function,required:!1,default:null},loadMoreOldParticipantsCallback:{type:Function,required:!1,default:null},deleteChatMessageCallback:{type:Function,required:!1,default:null},laodMoreMentionsCallback:{type:Function,required:!1,default:null},mentionsSearchCallback:{type:Function,required:!1,default:null},blockChatUserCallback:{type:Function,required:!1,default:null},chatMessages:{type:Array,required:!1,default:[]},mentionUsers:{type:Array,required:!1,default:[]},participantsList:{type:Array,required:!1,default:[]},newMessage:{type:Object,required:!1,default:null},title:{type:String,required:!1,default:"LiveChat"},hideChatText:{type:String,required:!1,default:"Hide Chat"},hideMentionUserLoader:{type:Boolean,required:!1,default:!1},showChatText:{type:String,required:!1,default:"Show Chat"},buttonText:{type:String,required:!1,default:"Send"},showParticipantsLoader:{type:Boolean,required:!1,default:!1},sendButtonType:{type:String,required:!1,default:"icon-text"},showChatMessageOptions:{type:Boolean,required:!1,default:!1},participantsChatText:{type:String,required:!1,default:"Participants"},timestampsChatText:{type:String,required:!1,default:"Timestamps"},inputText:{type:String,required:!1,default:"Write a message..."},profile:{type:Object,required:!1,default:{picture:null,name:"John Doe",style:{backgroundColor:"red",color:"blue",borderRadius:"100%",fontSize:"14px",fontWeight:"500",fontFamily:"",textDecoration:"none",fontStyle:"normal",minWidth:"20px",minHeight:"20px"}}},customHeight:{type:[String,Number],required:!1,default:null},style:{type:Object,required:!1,default:{wrapper:{backgroundColor:"lightpink"},header:{wrapper:{color:"green",backgroundColor:"lightgreen"},title:{color:"green",backgroundColor:"lightgreen"},hideButton:{backgroundColor:"lightpink",color:"red",padding:"4px 8px",borderRadius:"4px"}},body:{backgroundColor:"lightpink",color:"pink"},row:{wrapper:{backgroundColor:"lightyellow",borderWidth:"1px"},image:{backgroundColor:"lightgreen",borderRadius:"100%",color:"green"},author:{color:"#6E7B95",fontSize:"12px",fontWeight:"500",fontFamily:""},text:{color:"#36435E",fontSize:"12px",fontWeight:"500",fontFamily:"",padding:"0 0 0 8px"}},footer:{wrapper:{backgroundColor:"lightblue",color:"blue"},input:{borderWidth:"1px",borderColor:"#ECF2F4",padding:"8px 16px",borderRadius:"4px",color:"blue",placeholderColor:"#6E7B95"},button:{fontSize:"14px",color:"#36435E"},icon:{name:"vpapps-font-send-message-alt",style:{fontSize:"20px",color:"#36435E"}}},button:{wrapper:{backgroundColor:"lightpink"}}}},participantsEnabled:{type:Boolean,required:!1,default:!1},chatInReplayMode:{type:Boolean,required:!1,default:!1}},setup(e,{expose:t}){jr(P=>({"5a0d8b1a":v.value,"49f00e30":k.value}));const r=e,n=ue(null),o=ue(!0),i=ue(r.chatMessages),s=ue(null),a=ue(!1),d=ue(0),f=ue(!1),u=ue(""),p=ue(!1),g=ue(!1),y=xe(()=>r.config.active),v=xe(()=>
35{var P,H,$,ee,j,W;return(($=(H=(P=r.style)==null?void 0:P.header)==null?void 0:H.hideButton)==null?void 0:$.colorOnHover)||((W=(j=(ee=r.style)==null?void 0:ee.header)==null?void 0:j.hideButton)==null?void 0:W.color)}),k=xe(()=>{var P,H,$,ee,j,W;return(($=(H=(P=r.style)==null?void 0:P.header)==null?void 0:H.hideButton)==null?void 0:$.colorOnActive)||((W=(j=(ee=r.style)==null?void 0:ee.header)==null?void 0:j.hideButton)==null?void 0:W.color)}),C=P=>{P.target.scrollTop===0?o.value=!0:o.value=!1},E=()=>{s.value.scrollTo(0,0)},w=()=>{a.value||(d.value=s.value.scrollTop),a.value=!a.value,d.value!=0&&or(()=>{s.value.scrollTo({top:d.value,left:0,behavior:"instant"})})},_=()=>{g.value=!g.value},T=()=>{if(a.value)return;const[P]=i.value;let H=0;P&&(H=P.chatMessageId);try{r.loadMoreOldMesaggesCallback(H)}catch($){console.error("Error calling load more: ",$)}};t({showInfoMessage:P=>{u.value=P,p.value=!0,setTimeout(()=>{p.value=!1},4e3)}}),kt(()=>{n.value&&on(n.value,T)});function F(P){f.value=P}function I(){a.value=!1}return(P,H)=>{var $,ee;return D(),V("div",{class:Be(["j-chat relative h-full flex flex-col overflow-hidden",a.value&&"is-collapsed h-auto!"]),style:se({...e.style.wrapper,height:e.customHeight})},[wt(Se(S(cm),{style:se(e.style),participants:e.participantsList,"load-more-old-participants":e.loadMoreOldParticipantsCallback,showParticipantsLoader:e.showParticipantsLoader,onHideParticipants:_},null,8,["style","participants","load-more-old-participants","showParticipantsLoader"]),[[Mt,g.value]]),B("div",{class:"chat-content flex flex-col h-full",style:se({gap:((ee=($=e.style)==null?void 0:$.wrapper)==null?void 0:ee.gap)||null})},[B("div",{class:"chat-header flex justify-between items-center",style:se(e.style.header.wrapper)},[B("p",{style:se(e.style.header.title)},ge(e.title),5),Se(S(um),{"is-collapsed":a.value,"show-chat-text":e.showChatText,"hide-chat-text":e.hideChatText,"icon-color":e.style.header.title.color,"participants-enabled":e.participantsEnabled,"participants-chat-text":e.participantsChatText,"timestamps-chat-text":e.timestampsChatText,onToogleChat:w,onEnableTimestamps:F,onOpenChatSettings:I,onShowParticipants:_},null,8,["is-collapsed","show-chat-text","hide-chat-text","icon-color","participants-enabled","participants-chat-text","timestamps-chat-text"])],4),wt(B("div",{ref_key:"chatBody",ref:s,key:"body",class:"chat-body overflow-y-auto overflow-x-hidden flex h-full flex-col-reverse",style:se(e.style.body),onScroll:C},[H[0]||(H[0]=B("div",{class:"flex flex-1 grow"},null,-1)),B("div",j2,[(D(!0),V(qe,null,pt(i.value,(j,W)=>(D(),Ee(S(lm),{key:j.chatMessageId,index:W,rowStyle:e.style.row,id:j.chatMessageId,message:j.message,"message-time":j.createdAt,author:j.author,"delete-chat-message-callback":e.deleteChatMessageCallback,"block-chat-user-callback":e.blockChatUserCallback,"show-chat-message-options":e.showChatMessageOptions,mentionUsers:j.userMentions,"enable-timestamps":f.value},null,8,["index","rowStyle","id","message","message-time","author","delete-chat-message-callback","block-chat-user-callback","show-chat-message-options","mentionUsers","enable-timestamps"]))),128))]),wt(B("div",{ref_key:"firstChatMessage",ref:n,class:"first-chat-message flex justify-center flex-col items-center"},[Ze(P.$slots,"loadMoreSpinner",{},void 0,!0)],512),[[Mt,i.value.length>=9]]),B("div",{class:Be([p.value?"show":null,"info-message absolute bottom-0 flex justify-center items-center text-sm text-black p-1 rounded-md bg-slate-300 m-4"])},ge(u.value),3)],36),[[Mt,!a.value]]),wt(B("div",{class:"chat-footer",key:"chat-footer",style:se(e.style.footer.wrapper)},[wt(Se(S(am),{class:Be(y.value?null:"blur-[1px]"),footerStyle:e.style.footer,profile:e.profile,postMessageCallback:e.postMessageCallback,"button-text":e.buttonText,"input-text":e.inputText,mentionUsers:e.mentionUsers,"load-mention-users":e.loadMentionUsers,"send-button-type":e.sendButtonType,"hide-mention-user-loader":e.hideMentionUserLoader,"load-more-mentions":e.laodMoreMentionsCallback,"mentions-search-callback":e.mentionsSearchCallback},null,8,["class","footerStyle","profile","postMessageCallback","button-text","input-text","mentionUsers","load-mention-users","send-button-type","hide-mention-user-loader","load-more-mentions","mentions-search-callback"]),[[Mt,!e.chatInReplayMode]]),y.value?le("",!0):(D(),V("div",M2,[Ze(P.$slots,"chatFooterInfo",{},void 0,!0)]))],4),[[Mt,!a.value]]),Se(ai,{name:"slide-up"},{default:Te(()=>[!o.value&&i.value.length>=9?(D(),V("div",{key:0,onClick:E,class:"chat-scroll-to-bottom absolute flex justify-center items-center bottom-16 w-10 h-10 rounded-full mx-auto cursor-pointer"},[Se(S(ht),{class:"w-[32px] h-[32px] rounded-full border-2 flex justify-center items-center font-bold","ikone-name":"vpapps-font-chevron-line-down","ikone-style":e.style.button.wrapper}
35,null,8,["ikone-style"])])):le("",!0)]),_:1})],4)],6)}}},N2=yt(B2,[["__scopeId","data-v-e22c54a5"]]),H2={width:"22",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$2=["fill"],U2={class:"flex-col m-4 mt-0"},q2={class:"flex items-center m-2 gap-1 ml-0"},V2={class:"flex"},W2={key:0,class:"overflow-hidden"},cm={__name:"JChatParticipants",props:{style:{type:Object,required:!1,default:{}},participants:{type:Array,required:!1,default:()=>[]},loadMoreOldParticipants:{type:Function,required:!1,default:()=>{}},showParticipantsLoader:{type:Boolean,required:!1,default:!1}},emits:["hideParticipants"],setup(e,{emit:t}){const r=e,n=ue(null),o=ue(null);kt(()=>{on(n.value,i)});const i=()=>{try{r.loadMoreOldParticipants()}catch(s){console.error("Error calling load more: ",s)}};return(s,a)=>{var d,f,u;return D(),V("div",{class:"absolute top-0 left-0 w-full h-full z-99999",style:se({backgroundColor:((d=e.style.wrapper)==null?void 0:d.backgroundcolor)||"#FFFFFF"})},[B("div",{class:"chat-content flex flex-col h-full",style:se({gap:((u=(f=e.style)==null?void 0:f.wrapper)==null?void 0:u.gap)||null})},[B("div",{class:"chat-header flex items-center",style:se(e.style.header.wrapper)},[B("div",{class:"m-4 cursor-pointer",onClick:a[0]||(a[0]=p=>s.$emit("hideParticipants"))},[(D(),V("svg",H2,[B("path",{d:"M6.77521 1.7935C7.01929 1.54943 7.01929 1.1537 6.77521 0.909621C6.53113 0.665543 6.13541 0.665543 5.89133 0.909621L1.18596 5.61499C0.77916 6.02179 0.77916 6.68134 1.18596 7.08813L5.89133 11.7935C6.13541 12.0376 6.53113 12.0376 6.77521 11.7935C7.01929 11.5494 7.01929 11.1537 6.77521 10.9096L2.84215 6.97656L14.6666 6.97656C15.0118 6.97656 15.2916 6.69674 15.2916 6.35156C15.2916 6.00639 15.0118 5.72656 14.6666 5.72656L2.84215 5.72656L6.77521 1.7935Z",fill:e.style.header.title.color},null,8,$2)]))]),B("span",{class:"cursor-default",style:se({color:e.style.header.title.color})},"Participants",4)],4),B("div",{ref_key:"chatBody",ref:o,key:"body",class:"chat-body overflow-y-auto overflow-x-hidden w-full flex-1 flex-col-reverse",onScroll:a[1]||(a[1]=(...p)=>s.onScroll&&s.onScroll(...p))},[B("ul",U2,[(D(!0),V(qe,null,pt(e.participants,(p,g)=>(D(),V("li",null,[B("div",q2,[p.picture?(D(),Ee(S(zt),{key:0,style:se(e.style.row.image),"image-src":p.picture,alt:"comment-img",class:"chat-imagerounded-full",fallback:"https://cdn.vpapps.cloud/unnamed.jpg"},null,8,["style","image-src"])):(D(),Ee(S(tl),{key:1,profileStyle:e.style.row.image,name:p.firstName},{default:Te(()=>[tt(ge(p.firstName),1)]),_:2},1032,["profileStyle","name"])),B("div",V2,[B("div",{class:"chat-message break-all!",style:se(e.style.row.text)},[B("span",{class:"chat-author whitespace-nowrap inline-block",style:se(e.style.row.author)},ge(p.firstName)+" "+ge(p.lastName),5)],4)])])]))),256)),B("li",null,[wt(B("div",{ref_key:"firstParticipant",ref:n,class:"first-chat-message flex justify-center flex-col items-center"},[e.showParticipantsLoader?le("",!0):(D(),V("div",W2,a[2]||(a[2]=[B("div",{class:"border-gray-300 min-h-[24px] min-w-[24px] animate-spin rounded-full border-4 border-t-blue-600 my-1"},null,-1)])))],512),[[Mt,e.participants.length>=9&&!e.showParticipantsLoader]])])])],544)],4)],4)}}},z2={class:"relative"},K2=["fill"],J2={class:"text-sm py-1 mx-1 flex flex-col whitespace-nowrap"},G2={class:"text-[#36435E] font-medium p-3 py-1 flex gap-2 items-center cursor-pointer hover:bg-[#F8FAFB]"},Y2={class:"switch-container relative border border-gray-300"},Z2=["checked"],X2={__name:"JChatOptions",props:{isCollapsed:{type:Boolean,required:!0,default:!1},hideChatText:{type:String,required:!1,default:"Hide Chat"},showChatText:{type:String,required:!1,default:"Show Chat"},participantsChatText:{type:String,required:!1,default:"Participants"},timestampsChatText:{type:String,required:!1,default:"Timestamps"},iconColor:{type:String,required:!1,default:"#6E7B95"},participantsEnabled:{type:Boolean,required:!1,default:!1}},emits:["enableTimestamps","toogleChat","openChatSettings","showParticipants"],setup(e,{emit:t}){const r=t,n=e,o=ue(!1),i=ue(!1),s=ue(null),a=ue(null),{isCollapsed:d}=it(n),f=()=>{o.value=!o.value,r("toogleChat")},u=()=>{d.value&&r("openChatSettings"),o.value=!o.value},p=()=>{r("showParticipants")}
35,g=v=>{r("enableTimestamps",v)},y=v=>{o.value&&!s.value.contains(v.target)&&!a.value.contains(v.target)&&(o.value=!1)};return kt(()=>{document.addEventListener("click",y)}),fr(()=>{document.removeEventListener("click",y)}),(v,k)=>(D(),V("div",z2,[B("div",{ref_key:"trigger",ref:a},[(D(),V("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:e.iconColor,class:"cursor-pointer",xmlns:"http://www.w3.org/2000/svg",onClick:u},k[1]||(k[1]=[B("path",{d:"M7.99984 4.66667C7.26346 4.66667 6.6665 4.06971 6.6665 3.33333C6.6665 2.59695 7.26346 2 7.99984 2C8.73622 2 9.33317 2.59695 9.33317 3.33333C9.33317 4.06971 8.73622 4.66667 7.99984 4.66667Z"},null,-1),B("path",{d:"M7.99984 9.33333C7.26346 9.33333 6.6665 8.73638 6.6665 8C6.6665 7.26362 7.26346 6.66667 7.99984 6.66667C8.73622 6.66667 9.33317 7.26362 9.33317 8C9.33317 8.73638 8.73622 9.33333 7.99984 9.33333Z"},null,-1),B("path",{d:"M6.6665 12.6667C6.6665 13.403 7.26346 14 7.99984 14C8.73622 14 9.33317 13.403 9.33317 12.6667C9.33317 11.9303 8.73622 11.3333 7.99984 11.3333C7.26346 11.3333 6.6665 11.9303 6.6665 12.6667Z"},null,-1)]),8,K2))],512),wt(B("div",{ref_key:"dropdown",ref:s,class:"absolute w-auto bg-white border rounded-sm border-gray-200 right-full z-9999"},[B("ul",J2,[e.participantsEnabled?(D(),V("li",{key:0,class:"text-[#36435E] font-medium p-3 py-1 flex gap-2 items-center cursor-pointer hover:bg-[#F8FAFB]",onClick:p},[k[2]||(k[2]=B("svg",{width:"18",height:"18",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[B("path",{d:"M7.99985 8.25C9.24249 8.25 10.2498 7.24264 10.2498 6C10.2498 4.75736 9.24249 3.75 7.99985 3.75C6.75721 3.75 5.74985 4.75736 5.74985 6C5.74985 7.24264 6.75721 8.25 7.99985 8.25Z",fill:"#6E7B95"}),B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.99981 0.9375C3.40088 0.9375 1.39372 3.88954 0.789072 5.59984C0.697262 5.85953 0.697263 6.14047 0.789072 6.40016C1.39372 8.11046 3.40088 11.0625 7.99981 11.0625C12.5987 11.0625 14.6059 8.11046 15.2106 6.40016C15.3024 6.14047 15.3024 5.85953 15.2106 5.59984C14.6059 3.88954 12.5987 0.9375 7.99981 0.9375ZM1.84974 5.97482C2.34315 4.57917 4.00644 2.0625 7.99981 2.0625C11.9932 2.0625 13.6565 4.57917 14.1499 5.97482C14.1559 5.99188 14.1559 6.00812 14.1499 6.02518C13.6565 7.42083 11.9932 9.9375 7.99981 9.9375C4.00645 9.9375 2.34315 7.42083 1.84974 6.02518C1.84371 6.00812 1.84371 5.99188 1.84974 5.97482Z",fill:"#6E7B95"})],-1)),B("span",null,ge(e.participantsChatText),1)])):le("",!0),B("li",G2,[k[4]||(k[4]=Oh('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-b1640d92><path d="M4.84734 2.97058C5.11944 2.70279 5.11944 2.26862 4.84734 2.00083C4.57523 1.73304 4.13406 1.73304 3.86195 2.00083L2.00389 3.8294C1.73178 4.09719 1.73178 4.53136 2.00389 4.79915C2.27599 5.06694 2.71717 5.06694 2.98927 4.79915L4.84734 2.97058Z" fill="#6E7B95" data-v-b1640d92></path><path d="M13.1523 2.00083C12.8802 2.26862 12.8802 2.70279 13.1523 2.97058L15.0103 4.79915C15.2824 5.06694 15.7236 5.06694 15.9957 4.79915C16.2678 4.53136 16.2678 4.09719 15.9957 3.8294L14.1377 2.00083C13.8656 1.73304 13.4244 1.73304 13.1523 2.00083Z" fill="#6E7B95" data-v-b1640d92></path><path d="M9.69658 7.05713C9.69658 6.67842 9.38462 6.37142 8.9998 6.37142C8.61499 6.37142 8.30303 6.67842 8.30303 7.05713V10.084L10.3652 12.1134C10.6373 12.3812 11.0785 12.3812 11.3506 12.1134C11.6227 11.8456 11.6227 11.4115 11.3506 11.1437L9.69658 9.51596V7.05713Z" fill="#6E7B95" data-v-b1640d92></path><path fill-rule="evenodd" clip-rule="evenodd" d="M15.503 9.79999C15.503 13.3346 12.5914 16.2 8.9998 16.2C5.40817 16.2 2.49658 13.3346 2.49658 9.79999C2.49658 6.26537 5.40817 3.39999 8.9998 3.39999C12.5914 3.39999 15.503 6.26537 15.503 9.79999ZM14.1095 9.79999C14.1095 12.5772 11.8218 14.8286 8.9998 14.8286C6.17781 14.8286 3.89013 12.5772 3.89013 9.79999C3.89013 7.02278 6.17781 4.77142 8.9998 4.77142C11.8218 4.77142 14.1095 7.02278 14.1095 9.79999Z" fill="#6E7B95" data-v-b1640d92></path></svg>',1)),B("span",null,ge(e.timestampsChatText),1),B("div",Y2,[B("input",{type:"checkbox",id:"`switch-${name}`",name:"name",checked:i.value,onChange:k[0]||(k[0]=C=>g(C.target.checked)),hidden:""},null,40,Z2),k[3]||(k[3]=B("label",{for:"`switch-${name}`",class:"switch absolute w-full h-full cursor-pointer"},null,-1))])]),B("li",{class:"text-[#36435E] font-medium p-3 py-1 flex gap-2 items-center cursor-pointer hover:bg-[#F8FAFB]",onClick:f},[k[5]||(k[5]=B("svg",{width:"18",height:"18",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[B("path",{d:"M7.99985 8.25C9.24249 8.25 10.2498 7.24264 10.2498 6C10.2498 4.75736 9.24249 3.75 7.99985 3.75C6.75721 3.75 5.74985 4.75736 5.74985 6C5.74985 7.24264 6.75721 8.25 7.99985 8.25Z",fill:"#6E7B95"}),B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.99981 0.9375C3.40088 0.9375 1.39372 3.88954 0.789072 5.59984C0.697262 5.85953 0.697263 6.14047 0.789072 6.40016C1.39372 8.11046 3.40088 11.0625 7.99981 11.0625C12.5987 11.0625 14.6059 8.11046 15.2106 6.40016C15.3024 6.14047 15.3024 5.85953 15.2106 5.59984C14.6059 3.88954 12.5987 0.9375 7.99981 0.9375ZM1.84974 5.97482C2.34315 4.57917 4.00644 2.0625 7.99981 2.0625C11.9932 2.0625 13.6565 4.57917 14.1499 5.97482C14.1559 5.99188 14.1559 6.00812 14.1499 6.02518C13.6565 7.42083 11.9932 9.9375 7.99981 9.9375C4.00645 9.9375 2.34315 7.42083 1.84974 6.02518C1.84371 6.00812 1.84371 5.99188 1.84974 5.97482Z",fill:"#6E7B95"})],-1)),B("span",null,ge(S(d)?e.showChatText:e.hideChatText),1)])])],512),[[Mt,o.value]])]))}},um=yt(X2,[["__scopeId","data-v-b1640d92"]]),fm={__name:"JCol",props:{columns:{type:[String,Number],default:null},orientation:{type:String,default:"vertical"}},setup(e){const t={1:"basis-1/12",2:"basis-2/12",3:"basis-3/12",4:"basis-4/12",5:"basis-5/12",6:"basis-6/12",7:"basis-7/12",8:"basis-8/12",9:"basis-9/12",10:"basis-10/12",11:"basis-11/12",12:"basis-full"};return(r,n)=>(D(),V("div",{class:Be(["j-column flex max-w-full",[t[e.columns],e.orientation==="vertical"?"flex-col":"flex-row"]])},[Ze(r.$slots,"default")],2))}},Q2={class:"j-comment-input grid grid-cols-2"},eE={key:1,class:"j-comment-action-holder flex gap-4 col-span-2"},tE={class:"w-10 min-w-[40px] h-10 rounded-full text-white flex bg-[#F8FAFB] items-center justify-center relative"},rE={class:"absolute flex items-center justify-center",style:{backgroundColor:"#F1F1F3",borderRadius:"100%",fontSize:"14px",fontFamily:"Inter !important",lineHeight:"16px",color:"#868693",fontWeight:"600"}},nE={class:"relative w-full"},oE=["onKeydown"],iE=["onClick","onMouseover"],sE={class:"w-10 h-auto"},aE={class:"w-10 min-w-[40px] h-10 rounded-full text-white flex items-center justify-center relative",style:{backgroundColor:"#F1F1F3",borderRadius:"100%",fontSize:"13px",fontFamily:"Inter !important",lineHeight:"16px",color:"#868693",fontWeight:"600"}},lE={class:"absolute flex items-center justify-center"},cE={key:1,class:"bg-white"},uE={key:2,class:"j-comment-actions col-span-2 gap-2 flex justify-end mt-3"},dm={__name:"JCommentInput",props:{callback:{type:Function,required:!1,default:()=>{}},parentId:{type:String,required:!1,default:null},cancelCommentCallback:{type:Function,required:!1,default:()=>{}},user:{type:Object,required:!0},mentionUsers:{type:Array,required:!0},mentionEnabled:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},confirmText:{type:String,default:"Confirm"},primaryButtonStyle:{type:Object,default:{}},secondaryButtonStyle:{type:Object,default:{}},canComment:{type:Boolean,default:!0},inputTextStyle:{type:Object,default:{}}},setup(e){const t=e,{callback:r,cancelCommentCallback:n,parentId:o,user:i,mentionEnabled:s,mentionUsers:a}=it(t),d=ue(null),f=ue(null),u=ue(!1),p=ue(""),g=ue([]),y=ue(""),v=ue(-1),k=ue(!1),C=xe(()=>{const W=a.value.filter(ce=>!g.value.some(pe=>
35pe.userId===ce.userId));if(p.value==="")return W;const ie=p.value.replace(/@.*/,"").trim();return W.filter(ce=>`${ce.firstName} ${ce.lastName}`.toLowerCase().includes(ie.toLowerCase()))}),E=()=>{d.value=null,g.value=[],n&&n.value&&n.value(),f.value.innerHTML=""},w=W=>{if(W.key==="@"&&s.value===!0&&a.value&&a.value.length>0){const ie=window.getSelection().getRangeAt(0);if(ie.startContainer.textContent.charAt(ie.startOffset-1).trim().slice(-1)!==""){u.value=!1;return}u.value=!0,g.value.length===a.value.length&&P(),H()}else if(W.key==="ArrowUp")W.preventDefault(),T();else if(W.key==="ArrowDown")W.preventDefault(),F();else if(W.key==="Escape")W.preventDefault(),u.value=!1;else if(W.key==="Backspace"||W.key==="Delete"){if(window.getSelection().toString().trim()===f.value.innerText.trim()&&g.value.length>0){W.preventDefault(),g.value=[],f.value.innerHTML="",u.value=!1;return}let ie=Array.from(f.value.querySelectorAll(".mention"));setTimeout(()=>{ie.forEach(ce=>{if(!document.body.contains(ce)){W.preventDefault();let pe=ce.innerText;const ae=g.value.find(me=>`${me.firstName} ${me.lastName}`===pe);ae&&(g.value=g.value.filter(me=>me.userId!==ae.userId)),y.value=f.value.innerHTML}}),p.value===""&&(u.value=!1)},0)}else if(W.key==="Enter")W.preventDefault(),I();else if(W.key===" "){const ie=window.getSelection().getRangeAt(0);ie.startOffset>0&&ie.startContainer.textContent.charAt(ie.startOffset-1)==="@"&&(u.value=!1)}},_=ue(null),T=()=>{u.value&&v.value>0&&(v.value--,_.value.children[v.value].scrollIntoView({block:"nearest",inline:"nearest"}))},F=()=>{u.value&&v.value<C.value.length-1&&(v.value++,_.value.children[v.value].scrollIntoView({block:"nearest",inline:"nearest"}))},I=()=>{u.value&&v.value>=0&&v.value<C.value.length&&(ee(C.value[v.value]),v.value=-1)},P=()=>{k.value=!0,setTimeout(()=>{k.value=!1},2e3);const W=a.value[a.value.length-1];`${W.firstName}${W.lastName}`},H=()=>{const W=window.getSelection().getRangeAt(0),ie=W.startContainer.textContent.substring(0,W.startOffset),ce=ie.lastIndexOf("@");if(ce!==-1){const pe=ie.substring(ce+1).trim();p.value=pe}else p.value=""},$=xe(()=>{let W=y.value;return g.value.forEach(ie=>{`${ie.userId}`;const ce=new RegExp(`@${ie.userId}`,"g");W=W.replace(ce,`${ie.firstName} ${ie.lastName}`)}),W}),ee=W=>{if(g.value.some(ve=>ve.userId===W.userId))return;g.value.push(W),g.value.length===a.value.length&&P();const ie=window.getSelection(),ce=ie.getRangeAt(0),pe=p.value.length;if(ce.startContainer&&ce.startOffset>pe)ce.setStart(ce.startContainer,ce.startOffset-pe-1);else if(ce.startContainer&&ce.startContainer.previousSibling){const ve=ce.startContainer.previousSibling;ce.setStart(ve,ve.length-pe-1)}const ae=`<span contenteditable="false" class="mention" data-user-id="${W.userId}">${W.firstName} ${W.lastName}</span>`,me=ce.createContextualFragment(ae);ce.deleteContents(),ce.insertNode(me),ce.collapse(!1),f.value.focus(),ie.removeAllRanges(),ie.addRange(ce),y.value=f.value.innerHTML,u.value=!1,H()},j=()=>{y.value=f.value.innerHTML.replace(/&nbsp;/g," ");const W=f.value.cloneNode(!0);W.querySelectorAll("span").forEach(ce=>{if(ce.classList.contains("mention")){const pe=`@{${ce.getAttribute("data-user-id")}}`,ae=document.createTextNode(pe);ce.replaceWith(ae)}else{const pe=document.createTextNode(ce.innerText);ce.replaceWith(pe)}});const ie=W.innerText.trim();r&&r.value&&(r.value(ie,o.value,g.value),d.value=null,g.value=[]),f.value.innerHTML=""};return(W,ie)=>{var ce,pe,ae,me,ve,Pe;return D(),V("div",Q2,[e.canComment?(D(),V("div",eE,[B("span",tE,[(ce=S(i))!=null&&ce.picture?(D(),Ee(zt,{key:0,"image-src":(pe=S(i))==null?void 0:pe.picture,alt:"comment-img",class:"rounded-full h-full object-cover z-1"},null,8,["image-src"])):le("",!0),B("span",rE,ge((me=(ae=S(i))==null?void 0:ae.firstName)==null?void 0:me.slice(0,1).toUpperCase())+ge((Pe=(ve=S(i))==null?void 0:ve.lastName)==null?void 0:Pe.slice(0,1).toUpperCase()),1)]),B("div",nE,[B("div",{ref_key:"editableDiv",ref:f,contenteditable:"",onKeydown:w,onInput:H,onBlur:ie[0]||(ie[0]=Re=>u.value=!1),class:"w-full h-full border pt-1 bg-transparent border-[#DEDEDE] text-black px-3 rounded-md focus:outline-0 relative",style:se(e.inputTextStyle)},null,36),u.value?(D(),V("div",{key:0,class:"absolute min-w-[50%] w-2/3 md:w-[40%] top-full bg-white text-black",onKeydown:Qi(Zo(I,["prevent"]),["enter"])},[C.value.length>0?(D(),V("ul",{key:0,class:"flex bg-white max-h-48 scrollable-list overflow-y-auto z-20 flex-col",ref_key:"suggestionList",ref:_}
35,[(D(!0),V(qe,null,pt(C.value,(Re,Je)=>{var $e,Me;return D(),V("li",{class:"cursor-pointer flex gap-2 px-3 z-100 items-center bg-white py-2 hover:bg-[#F6F8F9] border border-t border-[#ECF2F4] text-black pb-3 whitespace-nowrap",key:Re.userId,onClick:rt=>ee(Re),onMousedown:ie[1]||(ie[1]=Zo(()=>{},["prevent"])),onMouseover:rt=>v.value=Je,style:se(v.value===Je?{backgroundColor:"#F6F8F9"}:{})},[B("div",sE,[B("span",aE,[Re!=null&&Re.picture?(D(),Ee(zt,{key:0,"image-src":Re==null?void 0:Re.picture,alt:"comment-img",class:"rounded-full h-full object-cover z-1"},null,8,["image-src"])):le("",!0),B("span",lE,ge(($e=Re==null?void 0:Re.firstName)==null?void 0:$e.slice(0,1).toUpperCase())+ge((Me=Re==null?void 0:Re.lastName)==null?void 0:Me.slice(0,1).toUpperCase()),1)])]),tt(" "+ge(Re.firstName)+" "+ge(Re.lastName),1)],44,iE)}),128))],512)):le("",!0),k.value?(D(),V("ul",cE,ie[3]||(ie[3]=[B("li",{class:"cursor-pointer px-3 py-2 hover:bg-[#F6F8F9] z-90 text-black pb-3 whitespace-nowrap"}," No mentionUsers left to suggest. ",-1)]))):le("",!0)],40,oE)):le("",!0)])])):(D(),V("div",{key:0,class:"col-span-2 mb-2 font-medium flex gap-4",style:se({backgroundColor:e.primaryButtonStyle.backgroundColor||"#F6F8F9"})},ie[2]||(ie[2]=[B("span",{class:"p-4 text-black"}," Your account has been blocked from commenting.",-1)]),4)),e.canComment?(D(),V("div",uE,[Se(S(mt),{onClick:E,"aria-label":e.cancelText,style:se(e.secondaryButtonStyle)},{default:Te(()=>[tt(ge(e.cancelText),1)]),_:1},8,["aria-label","style"]),Se(S(mt),{callback:j,data:$.value,"aria-label":e.confirmText,style:se(e.primaryButtonStyle)},{default:Te(()=>[tt(ge(e.confirmText),1)]),_:1}
35,8,["data","aria-label","style"])])):le("",!0)])}}},fE={class:"j-comment-row grid grid-cols-2 mt-4"},dE={class:"col-span-2 flex gap-1"},pE={class:"w-10 min-w-[40px] h-10 rounded-full text-white flex items-center justify-center relative",style:{backgroundColor:"#F1F1F3",borderRadius:"100%",fontSize:"14px",fontFamily:"Inter !important",lineHeight:"16px",color:"#868693",fontWeight:"600"}},hE={class:"absolute flex items-center justify-center"},gE={class:"grid grid-rows gap-1 w-full ml-3"},mE={class:"j-comment-content-row w-full flex justify-between"},yE={class:"flex"},vE={class:"text-[#7483A1] text-xs"},bE={class:"relative"},_E=["id"],wE={class:"flex flex-col"},SE={class:"flex bg-white items-center"},kE={class:"j-comment-content-row flex"},xE=["innerHTML"],CE={class:"j-comment-content flex flex-col"},EE={key:2},TE={key:2},FE={key:2},AE={key:1,class:"j-comment-content-row flex"},PE={class:"text-[#3A3CFF]"},IE={key:0,id:"delete-pop-up",class:"fixed top-0 left-0 right-0 transform-x-1/2 bg-[#04030633] flex flex-col h-full w-full items-center justify-center z-50"},RE={key:0},OE={key:1},DE={key:2},LE={key:3},jE={class:"flex justify-end gap-3"},ME={__name:"JCommentRow",props:{data:{type:Object,required:!0},callback:{type:Function,required:!1,default:()=>{}},postCommentCallback:{type:Function,required:!1,default:()=>{}},deleteCommentCallback:{type:Function,required:!1,default:()=>{}},cancelCommentCallback:{type:Function,required:!1,default:()=>{}},showCommentInput:{type:Boolean,required:!1,default:!1},onCommentEngagementCallback:{type:Function,required:!1,default:()=>{}},loadRepliesCallback:{type:Function,required:!1,default:()=>{}},user:{type:Object,required:!1,default:{}},mentionUsers:{type:Array,required:!0},mentionEnabled:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},confirmText:{type:String,default:"Confirm"},replyText:{type:String,default:"Reply"},repliesText:{type:String,default:"REPLIES"},accountNameStyle:{type:Object,default:{}},commentStyle:{type:Object,default:{}},primaryButtonStyle:{type:Object,default:{}},secondaryButtonStyle:{type:Object,default:{}},engagementsStyle:{type:Object,default:{}},showLike:{type:Boolean,default:!0},showDislike:{type:Boolean,default:!0},showReply:{type:Boolean,default:!0},showLikeCount:{type:Boolean,default:!0},showLikeIcon:{type:Boolean,default:!0},showLikeText:{type:Boolean,default:!1},showDislikeCount:{type:Boolean,default:!0},showDislikeIcon:{type:Boolean,default:!0},showDislikeText:{type:Boolean,default:!1},showReplyCount:{type:Boolean,default:!0},showReplyIcon:{type:Boolean,default:!0},showReplyText:{type:Boolean,default:!0},likeIcon:{type:Object,default:{props:{name:"vpapps-font-thumbs-up-like"},style:{}}},dislikeIcon:{type:Object,default:{props:{name:"vpapps-font-thumbs-down-dislike"},style:{}}},replyIcon:{type:Object,default:{props:{name:"vpapps-font-reply"},style:{}}},dateFormat:{type:String,default:"en"},deleteText:{type:String,default:"Delete"}},setup(e){jr($e=>({"1e225e81":ce.value,"4edda60f":pe.value,d1390702:ae.value,e3f042e6:me.value,"0a218b84":ve.value,"2e6cb98c":Pe.value}));const t=e,{data:r,callback:n,postCommentCallback:o,deleteCommentCallback:i,onCommentEngagementCallback:s,mentionUsers:a,likeIcon:d,dislikeIcon:f,replyIcon:u,loadRepliesCallback:p,dateFormat:g,deleteText:y}=it(t),v=ue(!1),k=ue(!1),C=ue(null),E=ue(null),w=ue(!1),_=ue(r.value.showCommentInput),T=$e=>{F.isClickOutside($e,C)&&(v.value=!1),I.isClickOutside($e,E)&&(k.value=!1)},F=hn(C,T),I=hn(E,T),P=$e=>{const Me=/@\{(\w+)\}/g;return $e.replace(Me,(rt,st)=>{var at,_e;const De=a.value.find(Le=>Le.userId===st);return De?`<span style="color: ${(at=t.commentStyle.colors)==null?void 0:at.mentionedUser};">${De.firstName} ${De.lastName}</span>`:`<span style="color: ${(_e=t.commentStyle.colors)==null?void 0:_e.mentionedUser};">User Not Found</span>`})},H=$e=>{const Me=new Date($e),rt=Math.floor((new Date-Me)/(1e3*60*60*24)),st=Math.floor(rt/30),at=Math.floor(rt/365);return rt<30?new Intl.RelativeTimeFormat(`${g.value}`,{numeric:"auto"}).format(-rt,"day"):st<12?new Intl.RelativeTimeFormat(`${g.value}`,{numeric:"auto"}).format(-st,"month"):new Intl.RelativeTimeFormat(`${g.value}`,{numeric:"auto"}).format(-at,"year")},$=($e,Me)=>{s&&s.value&&s.value($e,Me)},ee=($e,Me,rt)=>{rt?_.value=!0:(w.value=!w.value,p&&p.value&&p.value($e,Me))},j=()=>{_.value=!1},W=()=>{v.value=!1,k.value=!0},ie=({id:$e,parentId:Me})=>{i&&i.value&&(k.value=!1,i.value($e,Me))},ce=xe(()=>{var $e,Me;return(Me=($e=d.value)==null?void 0:$e.style)==null?void 0:Me.colorOnHover}
35),pe=xe(()=>{var $e,Me;return(Me=($e=d.value)==null?void 0:$e.style)==null?void 0:Me.backgroundColorOnHover}),ae=xe(()=>{var $e,Me;return(Me=($e=f.value)==null?void 0:$e.style)==null?void 0:Me.colorOnHover}),me=xe(()=>{var $e,Me;return(Me=($e=f.value)==null?void 0:$e.style)==null?void 0:Me.backgroundColorOnHover}),ve=xe(()=>{var $e,Me;return(Me=($e=u.value)==null?void 0:$e.style)==null?void 0:Me.colorOnHover}),Pe=xe(()=>{var $e,Me;return(Me=($e=u.value)==null?void 0:$e.style)==null?void 0:Me.backgroundColorOnHover}),Re=xe(()=>{var $e,Me,rt,st,at,_e,De,Le,Ue,q,A,b;let R={color:(Me=($e=d.value)==null?void 0:$e.style)==null?void 0:Me.color,backgroundColor:(st=(rt=d.value)==null?void 0:rt.style)==null?void 0:st.backgroundColor};return r.value.isLiked&&((_e=(at=d.value)==null?void 0:at.style)!=null&&_e.colorOnActive&&(R.color=(Le=(De=d.value)==null?void 0:De.style)==null?void 0:Le.colorOnActive),(q=(Ue=d.value)==null?void 0:Ue.style)!=null&&q.backgroundColorOnActive&&(R.backgroundColor=(b=(A=d.value)==null?void 0:A.style)==null?void 0:b.backgroundColorOnActive)),R}),Je=xe(()=>{var $e,Me,rt,st,at,_e,De,Le,Ue,q,A,b;let R={color:(Me=($e=f.value)==null?void 0:$e.style)==null?void 0:Me.color,backgroundColor:(st=(rt=f.value)==null?void 0:rt.style)==null?void 0:st.backgroundColor};return r.value.isDisliked&&((_e=(at=f.value)==null?void 0:at.style)!=null&&_e.colorOnActive&&(R.color=(Le=(De=f.value)==null?void 0:De.style)==null?void 0:Le.colorOnActive),(q=(Ue=f.value)==null?void 0:Ue.style)!=null&&q.backgroundColorOnActive&&(R.backgroundColor=(b=(A=f.value)==null?void 0:A.style)==null?void 0:b.backgroundColorOnActive)),R});return($e,Me)=>{var rt,st,at,_e,De,Le,Ue,q,A,b,R;return D(),V(qe,null,[B("div",fE,[B("div",dE,[B("span",pE,[(rt=S(r).author)!=null&&rt.picture?(D(),Ee(zt,{key:0,"image-src":(st=S(r).author)==null?void 0:st.picture,alt:"comment-img",class:"rounded-full h-full object-cover z-1"},null,8,["image-src"])):le("",!0),B("span",hE,ge((De=(_e=(at=S(r))==null?void 0:at.author)==null?void 0:_e.firstName)==null?void 0:De.slice(0,1).toUpperCase())+ge((q=(Ue=(Le=S(r))==null?void 0:Le.author)==null?void 0:Ue.lastName)==null?void 0:q.slice(0,1).toUpperCase()),1)]),B("div",gE,[B("div",mE,[B("div",yE,[B("p",{class:"mr-3",style:se(e.accountNameStyle)},ge((A=S(r).author)==null?void 0:A.firstName)+" "+ge((b=S(r).author)==null?void 0:b.lastName),5),B("h5",vE,ge(H(S(r).createdAt)),1)]),B("div",bE,[(R=S(r))!=null&&R.canDelete?(D(),Ee(S(ht),{key:0,onClick:Me[0]||(Me[0]=L=>v.value=!v.value),ikoneName:"vpapps-font-three-dots-vertical"})):le("",!0),wt(B("div",{ref_key:"commentOptionsRef",ref:C,id:`comment-options-pop-up-${S(r).id}`,class:"absolute top-4 left-auto right-1 -transform-x-1/2 shadow w-32 flex flex-col"},[B("span",wE,[B("span",SE,[Se(mt,{callback:W,data:S(r).id,rounded:"",class:"flex gap-2 whitespace-nowrap text-[#ff0000] px-2 justify-start! w-full pl-0","aria-label":S(y)},{default:Te(()=>[Se(S(ht),{"ikone-name":"vpapps-font-delete-trash"}),tt(" "+ge(S(y)),1)]),_:1},8,["data","aria-label"])])])],8,_E),[[Mt,v.value]])])]),B("div",kE,[B("p",{class:"j-comment-text whitespace-break-spaces",style:se(e.commentStyle),innerHTML:P(S(r).text)},null,12,xE)]),B("div",CE,[B("div",{class:"j-comment-content-row flex",style:se(e.engagementsStyle)},[e.showLike?(D(),Ee(mt,{key:0,class:"flex gap-1","aria-label":"Like","text-color":e.engagementsStyle.color,style:se({fontSize:e.engagementsStyle.fontSize,fontStyle:e.engagementsStyle.fontStyle,fontWeight:e.engagementsStyle.fontWeight,fontFamily:e.engagementsStyle.fontFamily}),onClick:Me[1]||(Me[1]=L=>$(1,S(r).id))},{default:Te(()=>{var L,G,Q;return[e.showLikeIcon?(D(),Ee(S(ht),{key:0,"ikone-name":(G=(L=S(d))==null?void 0:L.props)==null?void 0:G.name,"ikone-style":{...(Q=S(d))==null?void 0:Q.style,color:Re.value.color,backgroundColor:Re.value.backgroundColor},class:"like-icon-hover"},null,8,["ikone-name","ikone-style"])):le("",!0),e.showLikeText?(D(),V(qe,{key:1},[tt("Like")],64)):le("",!0),e.showLikeCount&&S(r).likeCount?(D(),V("p",EE," ("+ge(S(r).likeCount)+") ",1)):le("",!0)]}),_:1},8,["text-color","style"])):le("",!0),e.showDislike?(D(),Ee(mt,{key:1,class:"flex gap-1","aria-label":"Dislike","text-color":e.engagementsStyle.color,style:se({fontSize:e.engagementsStyle.fontSize,fontStyle:e.engagementsStyle.fontStyle,fontWeight:e.engagementsStyle.fontWeight,fontFamily:e.engagementsStyle.fontFamily}),onClick:Me[2]||(Me[2]=L=>$(2,S(r).id))},{default:Te(()=>{var L,G,Q;return[e.showDislikeIcon?(D(),Ee(S(ht),{key:0,"ikone-name":(G=(L=S(f))==null?void 0:L.props)==null?void 0:G.name,"ikone-style":{...(Q=S(f))==null?void 0:Q.style,color:Je.value.color,backgroundColor:Je.value.backgroundColor},class:"dislike-icon-hover"},null,8,["ikone-name","ikone-style"])):le("",!0),e.showDislikeText?(D(),V(qe,{key:1},[tt("Like")],64)):le("",!0),e.showDislikeCount&&S(r).dislikeCount?(D(),V("p",TE," ("+ge(S(r).dislikeCount)+") ",1)):le("",!0)]}),_:1},8,["text-color","style"])):le("",!0),!S(r).parentId&&e.showReply?(D(),Ee(mt,{key:2,class:"flex gap-1","aria-label":"Reply","text-color":e.engagementsStyle.color,style:se({fontSize:e.engagementsStyle.fontSize,fontStyle:e.engagementsStyle.fontStyle,fontWeight:e.engagementsStyle.fontWeight,fontFamily:e.engagementsStyle.fontFamily}),onClick:Me[3]||(Me[3]=L=>ee(S(r).id,S(r).mediaId,!0))},{default:Te(()=>{var L,G,Q;return[e.showReplyIcon?(D(),Ee(S(ht),{key:0,"ikone-name":(G=(L=S(u))==null?void 0:L.props)==null?void 0:G.name,"ikone-style":(Q=S(u))==null?void 0:Q.style,class:"reply-icon-hover"},null,8,["ikone-name","ikone-style"])):le("",!0),e.showReplyText?(D(),V(qe,{key:1},[tt(ge(e.replyText),1)],64)):le("",!0),e.showReplyCount&&S(r).replyCount?(D(),V("p",FE," ("+ge(S(r).replyCount)+") ",1)):le("",!0)]}),_:1},8,["text-color","style"])):le("",!0)],4),_.value?(D(),Ee(dm,{key:0,parentId:S(r).id,callback:S(o),user:e.user,cancelCommentCallback:j,"mention-users":S(a),"mention-enabled":e.mentionEnabled,"cancel-text":e.cancelText,"confirm-text":e.confirmText,"primary-button-style":e.primaryButtonStyle,"secondary-button-style":e.secondaryButtonStyle},null,8,["parentId","callback","user","mention-users","mention-enabled","cancel-text","confirm-text","primary-button-style","secondary-button-style"])):le("",!0),B("div",null,[w.value===!0?Ze($e.$slots,"replies",{key:0},void 0,!0):le("",!0),Ze($e.$slots,"repliesLoader",{},void 0,!0)]),S(r).repliesCount!==0?(D(),V("div",AE,[Se(mt,{onClick:Me[4]||(Me[4]=L=>ee(S(r).id,S(r).mediaId,!1)),class:"md:text-[13px] text-xs flex gap-2",textColor:"#000000","aria-label":"Replies"},{default:Te(()=>
35[(D(),V("svg",{width:"8",height:"5",viewBox:"0 0 8 5",fill:"none",class:Be(w.value?"rotate-180":""),xmlns:"http://www.w3.org/2000/svg"},Me[6]||(Me[6]=[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.602252 0.203937C0.821922 -0.0157329 1.17808 -0.0157329 1.39775 0.203937L4 2.80619L6.60225 0.203937C6.82192 -0.0157329 7.17808 -0.0157329 7.39775 0.203937C7.61742 0.423607 7.61742 0.779762 7.39775 0.999432L4.66291 3.73427C4.2968 4.10038 3.7032 4.10038 3.33709 3.73427L0.602252 0.999432C0.382583 0.779762 0.382583 0.423607 0.602252 0.203937Z",fill:"#3A3CFF"},null,-1)]),2)),B("p",PE,ge(e.repliesText),1)]),_:1})])):le("",!0)])])])]),(D(),Ee(cs,{to:"body"},[k.value?(D(),V("div",IE,[B("div",{ref_key:"deleteModalRef",ref:E,class:"flex flex-col text-center w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/3 bg-[#FFFFFF] p-6 gap-8 text-[#36435E] rounded-md"},[S(g)!=="en"?(D(),V("p",RE,"Smazat komentář")):(D(),V("p",OE,"Delete Comment")),S(g)!=="en"?(D(),V("span",DE,Me[7]||(Me[7]=[B("p",null,"Jste si jisti, že chcete smazat tento komentář?",-1),B("p",{class:"text-[#6E7B95]"},"Tuto akci nebude možné vrátit zpět.",-1)]))):(D(),V("span",LE,Me[8]||(Me[8]=[B("p",null,"Are you sure you want to delete this comment?",-1),B("p",{class:"text-[#6E7B95]"},"This action cannot be undone",-1)]))),B("div",jE,[Se(mt,{onClick:Me[5]||(Me[5]=L=>k.value=!1),rounded:"",full:"",class:"flex gap-2 whitespace-nowrap font-normal",border:"1px solid #E2E2E2",textColor:"#646464","aria-label":e.cancelText},{default:Te(()=>[tt(ge(e.cancelText),1)]),_:1},8,["aria-label"]),Se(mt,{callback:ie,data:S(r),rounded:"",full:"",class:"flex gap-2 whitespace-nowrap text-[#ff0000] font-normal",background:"#E34850","text-color":"#fff","aria-label":S(y)},{default:Te(()=>[tt(ge(S(y)),1)]),_:1},8,["data","aria-label"])])],512)])):le("",!0)]))],64)}}},jd=yt(ME,[["__scopeId","data-v-c643d0b4"]]),BE={class:"relative h-full w-full flex flex-col"},NE={class:"col-span-1 flex justify-start"},HE={class:"col-span-1 flex justify-end"},$E={key:0,width:"24",height:"24",viewBox:"0 0 18 18",fill:"#9f9f9f",xmlns:"http://www.w3.org/2000/svg",class:"cursor-pointer col-span-1"},UE={class:"border-l border-[#6E7B95] border-solid pl-5"},qE={id:"load-more-comments"},VE={__name:"JComments",props:{data:{type:[Object,Array],required:!0},loadMoreCommentsCallback:{type:Function,required:!1,default:()=>{}},postCommentCallback:{type:Function,required:!1,default:()=>{}},loadRepliesCallback:{type:Function,required:!1,default:()=>{}},deleteCommentCallback:{type:Function,required:!1,default:()=>{}},onCommentEngagementCallback:{type:Function,required:!1,default:()=>{}},user:{type:Object,required:!1,default:{}},breakpoint:{type:String,default:"desktop"},screenOrientation:{type:String,default:"natural"},cancelCommentCallback:{type:Function,required:!1,default:()=>{}},mentionEnabled:{type:Boolean,default:!0},mentionUsers:{type:Array,required:!0},commentsText:{type:String,default:"Comments"},cancelText:{type:String,default:"Cancel"},confirmText:{type:String,default:"Confirm"},replyText:{type:String,default:"Reply"},repliesText:{type:String,default:"REPLIES"},style:{type:Object,default:{}},titleStyle:{type:Object,default:{}},titleWrapperStyle:{type:Object,default:{}},accountNameStyle:{type:Object,default:{}},commentStyle:{type:Object,default:{}},engagementsStyle:{type:Object,default:{}},primaryButtonStyle:{type:Object,default:{}},secondaryButtonStyle:{type:Object,default:{}},showLike:{type:Boolean,default:!0},showDislike:{type:Boolean,default:!0},showReply:{type:Boolean,default:!0},showLikeCount:{type:Boolean,default:!0},showLikeIcon:{type:Boolean,default:!0},showLikeText:{type:Boolean,default:!1},showDislikeCount:{type:Boolean,default:!0},showDislikeIcon:{type:Boolean,default:!0},showDislikeText:{type:Boolean,default:!1},showReplyCount:{type:Boolean,default:!0},showReplyIcon:{type:Boolean,default:!0},showReplyText:{type:Boolean,default:!0},likeIcon:{type:[Object,null],default:null},dislikeIcon:{type:[Object,null],default:null},replyIcon:{type:[Object,null],default:null},escapeHeight:{type:Number,default:60},dateFormat:{type:String,default:"en"},deleteText:{type:String,default:"Delete"}},setup(e){jr(k=>({dae72660:v.value}));const t=e,{data:r,loadMoreCommentsCallback:n,postCommentCallback:o,deleteCommentCallback:i,onCommentEngagementCallback:s,user:a,breakpoint:d,screenOrientation:f,loadRepliesCallback:u}=it(t),p=ue(!1),g=xe(()=>d.value==="mobile"||d.value==="tablet");cr(f,k=>{k.includes("landscape")&&g.value&&p.value&&y(!1)});function y(k){p.value=k;const C=document.querySelector(".j-header"),E=document.querySelector(".j-comments"),w=document.querySelector("body");if(k){if(C){const _=C==null?void 0:C.offsetHeight;E.style.top=`calc(56.25vw + ${_}px)`}window.scrollTo(0,0),w.style.overflow="hidden"}else w.style.overflow=""}const v=xe(()=>`${t.escapeHeight}px`);return kt(()=>{or(()=>{const k=document.querySelector("#load-more-comments");on(k,n.value)})}),(k,C)=>(D(),V("div",{class:Be(["j-comments",{"fixed-comments bg-white overflow-y-hidden fixed left-0 right-0 bottom-0 z-20  shadow-[0_-6px_16px_rgba(163,176,194,0.32)] rounded-t m-0!":g.value&&p.value,"":g.value&&!p.value,hidden:g.value&&S(f).includes("landscape")}]),style:se(e.style)}
35,[B("div",BE,[B("div",{class:Be(["grid grid-cols-2 w-full z-10 comments-header",{"mb-0":g.value&&!p.value,"px-2 border-b border-b-[#E0E5EB]":g.value}]),style:se(e.titleWrapperStyle),onClick:C[1]||(C[1]=E=>g.value&&y(!0))},[B("div",NE,[B("p",{class:"my-auto",style:se(e.titleStyle)},ge(e.commentsText),5)]),B("div",HE,[g.value&&!p.value?(D(),V("svg",$E,C[2]||(C[2]=[B("path",{d:"M6.60225 4.37523C6.82192 4.5949 7.17808 4.5949 7.39775 4.37523C7.61742 4.15556 7.61742 3.79941 7.39775 3.57974L4.66291 0.8449C4.2968 0.478783 3.7032 0.478784 3.33709 0.8449L0.602252 3.57974C0.382583 3.79941 0.382583 4.15556 0.602252 4.37523C0.821922 4.5949 1.17808 4.5949 1.39775 4.37523L4 1.77298L6.60225 4.37523Z",fill:"#7483A1"},null,-1),B("path",{d:"M6.60225 8.07974C6.82192 7.86007 7.17808 7.86007 7.39775 8.07974C7.61742 8.29941 7.61742 8.65556 7.39775 8.87523L4.66291 11.6101C4.29679 11.9762 3.7032 11.9762 3.33709 11.6101L0.602252 8.87523C0.382583 8.65556 0.382583 8.29941 0.602252 8.07974C0.821922 7.86006 1.17808 7.86006 1.39775 8.07974L4 10.682L6.60225 8.07974Z",fill:"#7483A1"},null,-1)]))):le("",!0),g.value&&p.value?(D(),Ee(S(ht),{key:1,onClick:C[0]||(C[0]=Zo(E=>y(!1),["stop"])),"ikone-name":"vpapps-font-close-cancel"})):le("",!0)])],6),wt(B("div",{class:Be(["flex flex-col",{"overflow-y-auto h-11/12 p-3 pt-5! mt-px":g.value&&p.value,"":g.value&&!p.value}])},[Ze(k.$slots,"commentInput"),S(r).data&&(!g.value||g.value&&p.value)?(D(!0),V(qe,{key:0},pt(S(r).data,E=>(D(),Ee(jd,{key:E.id,data:E,postCommentCallback:S(o),deleteCommentCallback:S(i),cancelCommentCallback:e.cancelCommentCallback,onCommentEngagementCallback:S(s),user:S(a),"mention-users":e.mentionUsers,"mention-enabled":e.mentionEnabled,cancelText:e.cancelText,confirmText:e.confirmText,replyText:e.replyText,repliesText:e.repliesText,"account-name-style":e.accountNameStyle,"comment-style":e.commentStyle,"engagements-style":e.engagementsStyle,"primary-button-style":e.primaryButtonStyle,"secondary-button-style":e.secondaryButtonStyle,"show-like":e.showLike,"show-dislike":e.showDislike,"show-reply":e.showReply,"show-like-count":e.showLikeCount,"show-like-icon":e.showLikeIcon,"show-like-text":e.showLikeText,"show-dislike-count":e.showDislikeCount,"show-dislike-icon":e.showDislikeIcon,"show-dislike-text":e.showDislikeText,"show-reply-count":e.showReplyCount,"show-reply-icon":e.showReplyIcon,"show-reply-text":e.showReplyText,"like-icon":e.likeIcon,"dislike-icon":e.dislikeIcon,"reply-icon":e.replyIcon,loadRepliesCallback:S(u),"date-format":e.dateFormat,"delete-text":e.deleteText},{replies:Te(()=>[B("div",UE,[(D(!0),V(qe,null,pt(E.replies,w=>(D(),Ee(jd,{key:w.id,data:w,user:S(a),postCommentCallback:S(o),deleteCommentCallback:S(i),cancelCommentCallback:e.cancelCommentCallback,onCommentEngagementCallback:S(s),"mention-users":e.mentionUsers,"mention-enabled":e.mentionEnabled,cancelText:e.cancelText,confirmText:e.confirmText,replyText:e.replyText,repliesText:e.repliesText,"account-name-style":e.accountNameStyle,"comment-style":e.commentStyle,"engagements-style":e.engagementsStyle,"primary-button-style":e.primaryButtonStyle,"secondary-button-style":e.secondaryButtonStyle,"show-like":e.showLike,"show-dislike":e.showDislike,"show-reply":e.showReply,"show-like-count":e.showLikeCount,"show-like-icon":e.showLikeIcon,"show-like-text":e.showLikeText,"show-dislike-count":e.showDislikeCount,"show-dislike-icon":e.showDislikeIcon,"show-dislike-text":e.showDislikeText,"show-reply-count":e.showReplyCount,"show-reply-icon":e.showReplyIcon,"show-reply-text":e.showReplyText,"like-icon":e.likeIcon,"dislike-icon":e.dislikeIcon,"reply-icon":e.replyIcon,loadRepliesCallback:S(u),"date-format":e.dateFormat,"delete-text":e.deleteText},null,8,["data","user","postCommentCallback","deleteCommentCallback","cancelCommentCallback","onCommentEngagementCallback","mention-users","mention-enabled","cancelText","confirmText","replyText","repliesText","account-name-style","comment-style","engagements-style","primary-button-style","secondary-button-style","show-like","show-dislike","show-reply","show-like-count","show-like-icon","show-like-text","show-dislike-count","show-dislike-icon","show-dislike-text","show-reply-count","show-reply-icon","show-reply-text","like-icon","dislike-icon","reply-icon","loadRepliesCallback","date-format","delete-text"]))),128))])]),_:2},1032,["data","postCommentCallback","deleteCommentCallback","cancelCommentCallback","onCommentEngagementCallback","user","mention-users","mention-enabled","cancelText","confirmText","replyText","repliesText","account-name-style","comment-style","engagements-style","primary-button-style","secondary-button-style","show-like","show-dislike","show-reply","show-like-count","show-like-icon","show-like-text","show-dislike-count","show-dislike-icon","show-dislike-text","show-reply-count","show-reply-icon","show-reply-text","like-icon","dislike-icon","reply-icon","loadRepliesCallback","date-format","delete-text"]))),128)):le("",!0),wt(B("div",qE,null,512),[[Mt,g.value?g.value&&p.value:!0]])],2),[[Mt,g.value?g.value&&p.value:!0]])])],6))}},WE="…";function zE(e,t,r){e.style.cssText+="overflow:hidden;overflow-wrap:break-word;word-wrap:break-word";const n=t*parseInt(window.getComputedStyle(e).lineHeight,10);return e.scrollHeight<=n?!1:pm(e,e,n,WE)}function pm(e,t,r,n){const o=e.childNodes;let i=o.length-1;for(;i>-1;){const s=o[i--];if(s.nodeType===1&&pm(s,t,r,n)||s.nodeType===3&&KE(s,t,r,n))return!0;e.removeChild(s)}return!1}function KE(e,t,r,n){let o,i=e.textContent;for(;i.length>1&&(o=i.lastIndexOf(" "),o!==-1);){if(e.textContent=i.substring(0,o),t.scrollHeight<=r){e.textContent=i;break}i=e.textContent}return GE(e,t,r,n)}const JE=/[ .,;!?'‘’“”\-–—]+$/;function GE(e,t,r,n){let o=e.textContent,i=o.length;for(;i>1;)if(o=o.substring(0,i-1).replace(JE,""),i=o.length,e.textContent=o+n,t.scrollHeight<=r)return!0;return!1}const YE={class:"j-details-title mb-2 w-full border-b border-gray-200 pb-3"},ZE={key:1,class:"flex flex-col"},XE=["innerHTML"],QE={__name:"JContentDetailsDescription",props:{title:{type:String,required:!0},description:{type:String,required:!1,default:null},titleStyle:{type:Object,default:{}},descriptionStyle:{type:Object,default:{}},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},showMoreText:{type:String,required:!1,default:"Zobrazit více"},showLessText:{type:String,required:!1,default:"Zobrazit méně"}},setup(e){const t=e,r=ue(!1),n=ue(!1),{description:o}=it(t);function i(s){const a=document.querySelector("#j-details-description");if(s)a.innerHTML=o.value;else return zE(a,3)}return kt(()=>{setTimeout(()=>{r.value=i(n.value)},800)}),(s,a)=>(D(),V("div",YE,[e.showTitle?(D(),V("h1",{key:0,style:se(e.titleStyle)},ge(e.title),5)):le("",!0),e.showDescription?(D(),V("div",ZE,[B("div",{id:"j-details-description",class:"whitespace-pre-wrap ql-editor p-0!",innerHTML:S(o),style:se(e.descriptionStyle)},null,12,XE),r.value?(D(),Ee(S(mt),{key:0,textColor:e.descriptionStyle.color,class:"shrink px-0 show-more-description text-left",style:se({fontSize:e.descriptionStyle.fontSize}),"aria-label":n.value?e.showLessText:e.showMoreText,onClick:a[0]||(a[0]=()=>{n.value=!n.value,i(n.value)})},{default:Te(()=>[tt(ge(n.value?e.showLessText:e.showMoreText),1)]),_:1},8,["textColor","style","aria-label"])):le("",!0)])):le("",!0)]))}},eT=yt(QE,[["__scopeId","data-v-152b13cb"]]),tT={key:0,id:"share-pop-up",class:"fixed top-0 left-0 right-0 transform-x-1/2 bg-[#04030633] flex flex-col h-full w-full items-center justify-center z-50"},rT={class:"flex justify-between mb-2"},nT={class:"text-xl flex text-[#000000] font-extrabold"},oT={class:"flex flex-col border-b border-b-[#EAEAEA] pb-4 mb-4"},iT={class:"flex gap-2 py-2 mb-6"},sT={class:"mb-6"},aT={class:"bg-[#F5F5F5] p-3 rounded flex gap-4"},lT={key:0,class:"flex flex-col"},cT={class:"flex bg-white items-center justify-between p-3 mt-5 mb-2 border border-secondary rounded-md transition-all duration-50 ease-in"},uT={class:"text-[#646464] max-w-md grow flex-1 truncate"},fT={class:"flex gap-3"},dT={class:"flex gap-3"},pT={class:"flex gap-3"},hT={key:1,class:"flex flex-col"},gT={class:"flex bg-white items-center justify-between p-3 mt-5 border border-secondary rounded-md transition-all duration-50 ease-in"},mT={class:"text-[#646464] max-w-md grow flex-1 truncate"},yT={class:"text-base flex text-[#000000] font-bold mb-1"},vT={class:"flex bg-white items-center justify-between p-3 border border-secondary rounded-md transition-all duration-50 ease-in"},bT={class:"text-[#646464] max-w-md grow flex-1 truncate"},_T={key:0,class:"flex gap-3"},wT={class:"text-black"},ST={class:"text-[#8E8E8E] px-2"},kT={__name:"JContentDetailsShareModal",props:{callback:{type:Function,required:!1,default:()=>{}},origin:{type:String,required:!1,default:""},pathname:{type:String,required:!1,default:""},shareText:{type:String,default:"Share"},videoUrl:{type:String,required:!1,default:""},videoUrlEmbed:{type:String,required:!1,default:""},title:{type:String,required:!0},date:{type:[String],required:!1,default:"25/02/2022"},duration:{type:[String,Number],required:!1,default:0},img:{type:[String],required:!1,default:"https://cdn.vpapps.cloud/default-video-card.png"},includeSeo:{type:Boolean,required:!1,default:!1},autoplay:{type:Boolean,required:!1,default:!0},autoplayMobile:{type:Boolean,required:!1,default:!1},muted:{type:Boolean,required:!1,default:!0},shareIcon:{type:Object,default:{props:{name:"vpapps-font-share"},style:{}}},embedScript:{type:String,required:!1,default:"javascript"},copyText:{type:String,default:"Copy"},linkText:{type:String,default:"Copy"},videoStartTimeText:{type:String,default:"Video start time"},showMoreText:{type:String,required:!1,default:"Zobrazit více"},showLessText:{type:String,required:!1,default:"Zobrazit méně"},share:{type:Boolean,default:!1},isVerticalPlayer:{type:Boolean,default:!1}},emits:["closeShareModal"],setup(e,{emit:t}){const r=e,{shareText:n,videoUrl:o,videoUrlEmbed:i,title:s,date:a,duration:d,img:f,shareIcon:u,copyText:p,linkText:g,videoStartTimeText:y,showMoreText:v,showLessText:k,share:C}=it(r),E=ue(null),w=ue(!1),_=t,T=ue(0),F=ue("javascript"),I=ue(!1),P=ue(!0),H=ue(!1),$=ue(!0),ee=[{id:"0",name:"Facebook",icon:"https://cdn.vpapps.cloud/social-medias/embed.svg",url:Pe=>!0},{id:"1",name:"Facebook",icon:"https://cdn.vpapps.cloud/social-medias/facebook.svg",url:Pe=>`https://www.facebook.com/dialog/share?href=${Pe}&client_id=461693840960966 `},{id:"2",name:"Messenger",icon:"https://cdn.vpapps.cloud/social-medias/messenger.svg",url:Pe=>`http://www.facebook.com/dialog/send?link=${Pe}&redirect_uri=${Pe}&app_id=461693840960966 `},{id:"4",name:"Twitter",icon:"https://cdn.vpapps.cloud/social-medias/twitter.svg",url:Pe=>`https://twitter.com/intent/tweet?url=${Pe}`}],j=hn(E,Pe=>{j.isClickOutside(Pe,E)&&_("closeShareModal")}),W=Pe=>Pe.includes("?")?"&":"?",ie=xe(()=>{const Pe=W(i.value);return`<div style="padding-top:56.25%; position:relative; width:100%;">
36    ${I.value?pe.value:""}
37    <iframe
38      class="no-margin"
39      style="position:absolute; left:0; top:0; width: 100%; height:100%;"
40      src="${i.value}${Pe}autoplay=${!P.value}&am=${H.value}&muted=${$.value}"
41      frameborder="0"
42      allow="autoplay"
43      Allowfullscreen
44    >
45    </iframe>
46  </div>`}),ce=xe(()=>{const Pe=W(i.value);return`<script type="application/ld+json">
47    {
48      "@context": "https://schema.org",
49      "@type": "VideoObject",
50      "name": "${s.value}",
51      "duration": "PT${d.value}S",
52      "thumbnailUrl": "${f.value}",
53      "uploadDate": "${a.value}",
54      "contentUrl": "${i.value}${Pe}autoplay=${P.value}&am=${H.value}&muted=${$.value}"
55    }
56    <\/script>
57  <div
58    class="vp-embed-wrapper"
59    data-upload="${a.value}"
60    data-name="${s.value}"
61    data-duration="PT${d.value}S"
62    data-thumbnail="${f.value}"
63    data-url="${i.value}${Pe}autoplay=${P.value}&am=${H.value}&muted=${$.value}">
64    <div class="vp-embed" style="position: relative; overflow: hidden; padding-bottom: 56.25%"></div>
65    <script
66      id="JEmbed"
67      type="text/javascript"
68      src="https://cdn.vpapps.cloud/embed.js"><\/script>
69  </div>`}),pe=xe(()=>`<meta itemprop='${a.value}' content='${a.value}' />
70    <meta itemprop='${s.value}' />
71    <meta itemprop='PT${d.value}S' content='PT${d.value}S' />
72    <meta itemprop='${f.value}' content='${f.value}' />
73    <meta itemprop='${i.value}${W(i.value)}autoplay=${P.value}&am=${H.value}&muted=${$.value}' content='${i.value}${W(i.value)}autoplay=${P.value}&am=${H.value}&muted=${$.value}' />`);async function ae(Pe,Re){const Je=Pe.target.parentElement;try{await navigator.clipboard.writeText(Re),Je.classList.add("ring-1","ring-offset-0","ring-blue-500","bg-blue-300/25"),setTimeout(()=>{Je.classList.remove("ring-1","ring-offset-0","ring-blue-500","bg-blue-300/25")},1e3)}catch($e){console.error("Failed to copy: ",$e)}}function me(Pe){var Re;T.value=Pe.target.checked&&typeof vpPlayer=="function"?Math.floor((Re=vpPlayer())==null?void 0:Re.getPosition()):0}const ve=xe(()=>{const{value:Pe}=T;return Pe<60?`00:${Pe<10?"0"+Pe:Pe}`:Pe<3600?`${parseInt(Pe/60)<10?"0"+parseInt(Pe/60):parseInt(Pe/60)}:${parseInt(Pe%60,10)<10?"0"+parseInt(Pe%60,10):parseInt(Pe%60,10)}`:`${parseInt(Pe/60/60,10)}:${parseInt(Pe/60%60,10)}:${parseInt(Pe%60,10)}`});return(Pe,Re)=>(D(),Ee(cs,{to:"body"},[S(C)?(D(),V("div",tT,[B("div",{ref_key:"shareModalRef",ref:E,class:"flex flex-col w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/3 bg-[#FFFFFF] rounded-md p-6"},[B("span",rT,[B("p",nT,ge(S(n)),1),(D(),V("svg",{onClick:Re[0]||(Re[0]=Je=>_("closeShareModal")),width:"24",height:"24",viewBox:"0 0 18 18",fill:"#9f9f9f",xmlns:"http://www.w3.org/2000/svg",class:"cursor-pointer"},Re[10]||(Re[10]=[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.793 17.207a.6.6 0 00.849 0l9.565-9.565a.6.6 0 00-.849-.849l-9.565 9.565a.6.6 0 000 .849z"},null,-1),B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.207 17.207a.6.6 0 01-.849 0L6.793 7.642a.6.6 0 01.849-.849l9.565 9.565a.6.6 0 010 .849z"},null,-1)])))]),B("span",oT,[B("div",iT,[(D(),V(qe,null,pt(ee,({icon:Je,name:$e,id:Me,url:rt})=>(D(),V(qe,{key:Me},[Me>0?(D(),Ee(S(rs),{key:0,imageSrc:Je,"external-link-to":rt(S(o),S(s)),alt:$e,"custom-wrapper":"a","image-style":{height:"40px",width:"40px",borderRadius:"4px"}},null,8,["imageSrc","external-link-to","alt"])):(D(),Ee(S(rs),{key:1,imageSrc:Je,onClick:Re[1]||(Re[1]=st=>w.value=!0),alt:$e,"custom-wrapper":"a",class:"cursor-pointer","image-style":{height:"40px",width:"40px",borderRadius:"4px"}},null,8,["imageSrc","alt"]))],64))),64))]),wt(B("span",sT,[B("span",aT,[Se(S(mt),{onClick:Re[2]||(Re[2]=Je=>F.value="javascript"),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#646464] shrink px-3 w-full",style:se({background:F.value=="javascript"?"#FFFFFF":"#FFFFFF00",fontWeight:400}),"aria-label":"Javascript embed"},{default:Te(()=>Re[11]||(Re[11]=[tt(" JavaScript ")])),_:1,__:[11]},8,["style"]),Se(S(mt),{onClick:Re[3]||(Re[3]=Je=>F.value="iframe"),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#646464] shrink px-3 w-full",style:se({background:F.value=="iframe"?"#FFFFFF":"#FFFFFF00",fontWeight:400}),"aria-label":"iFrame embed"},{default:Te(()=>Re[12]||(Re[12]=[tt(" iFrame ")])),_:1,__:[12]},8,["style"])]),tt(" "+ge(F.value)+" ",1),F.value=="iframe"?(D(),V("span",lT,[B("span",cT,[B("p",uT,ge(ie.value),1),Se(S(mt),{onClick:Re[4]||(Re[4]=Je=>ae(Je,ie.value)),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#ffffff] shrink px-3",style:{background:"#3A3CFF",fontWeight:400},"aria-label":"Copy iframe embed"},{default:Te(()=>
73[tt(ge(S(p)),1)]),_:1})]),B("span",fT,[wt(B("input",{"onUpdate:modelValue":Re[5]||(Re[5]=Je=>I.value=Je),type:"checkbox",name:"includeSeo",id:"includeSeo"},null,512),[[Fn,I.value]]),Re[13]||(Re[13]=B("p",{class:"text-black"},"Zahrnout SEO",-1))]),B("span",dT,[wt(B("input",{"onUpdate:modelValue":Re[6]||(Re[6]=Je=>P.value=Je),type:"checkbox",name:"autoplay",id:"autoplay"},null,512),[[Fn,P.value]]),Re[14]||(Re[14]=B("p",{class:"text-black"},"Vypnout autoplay",-1))]),B("span",pT,[wt(B("input",{"onUpdate:modelValue":Re[7]||(Re[7]=Je=>H.value=Je),type:"checkbox",name:"autoplayMobile",id:"autoplayMobile"},null,512),[[Fn,H.value]]),Re[15]||(Re[15]=B("p",{class:"text-black"},"Zapnout autoplay na mobilním webu",-1))])])):le("",!0),F.value=="javascript"?(D(),V("span",hT,[B("span",gT,[B("p",mT,ge(ce.value),1),Se(S(mt),{onClick:Re[8]||(Re[8]=Je=>ae(Je,ce.value)),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#ffffff] shrink px-3",style:{background:"#3A3CFF",fontWeight:400},"aria-label":"Copy javascript embed"},{default:Te(()=>
73[tt(ge(S(p)),1)]),_:1})])])):le("",!0)],512),[[Mt,w.value]]),B("p",yT,ge(S(g)),1),B("span",vT,[B("p",bT,ge(S(o)),1),Se(S(mt),{onClick:Re[9]||(Re[9]=Je=>ae(Je,S(o))),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#ffffff] shrink px-3",style:{background:"#3A3CFF",fontWeight:400},"aria-label":"Copy video url"},{default:Te(()=>[tt(ge(S(p)),1)]),_:1})])]),e.isVerticalPlayer?le("",!0):(D(),V("span",_T,[B("input",{type:"checkbox",name:"embedCurrentTime",id:"embedCurrentTime",onInput:me},null,32),B("p",wT,ge(S(y)),1),B("p",ST,ge(ve.value),1)]))],512)])):le("",!0)]))}},xT=yt(kT,[["__scopeId","data-v-bf2aa07c"]]),CT={class:"j-details-info flex items-center gap-2"},ET={key:1},TT={key:2},FT={key:1},AT=["width","height"],PT=["fill-rule"],IT={key:2},RT={__name:"JContentDetails",props:{title:{type:String,required:!0},description:{type:String,required:!1,default:null},callback:{type:Function,required:!1,default:()=>{}},origin:{type:String,required:!1,default:""},pathname:{type:String,required:!1,default:""},viewsCount:{type:[Number,String],required:!1,default:"2,332"},img:{type:[String],required:!1,default:"https://cdn.vpapps.cloud/default-video-card.png"},date:{type:[String],required:!1,default:"25/02/2022"},duration:{type:[String,Number],required:!1,default:0},likesCount:{type:[Number,null],required:!1,default:null},dislikesCount:{type:[Number,null],required:!1,default:null},sharesCount:{type:[Number,null],required:!1,default:null},watchLaterCount:{type:Number,required:!1,default:null},hasLiked:{type:Boolean,required:!1,default:null},hasDisliked:{type:Boolean,required:!1,default:!1},hasWatchLater:{type:Boolean,required:!1,default:!1},showMoreText:{type:String,required:!1,default:"Zobrazit více"},showLessText:{type:String,required:!1,default:"Zobrazit méně"},engagementsShowDemo:{type:Boolean,required:!1,default:!0},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},showLike:{type:Boolean,default:!0},showDislike:{type:Boolean,default:!0},showShare:{type:Boolean,default:!0},showViews:{type:Boolean,default:!0},showPublishDate:{type:Boolean,default:!0},breakpoint:{type:String,default:"desktop"},shareText:{type:String,default:"Share"},viewsCountText:{type:String,default:"views"},videoStartTimeText:{type:String,default:"Video start time"},copyText:{type:String,default:"Copy"},linkText:{type:String,default:"Copy"},engagementsStyle:{type:Object,default:{}},titleStyle:{type:Object,default:{}},descriptionStyle:{type:Object,default:{}},showLikeIcon:{type:Boolean,default:!0},showLikeText:{type:Boolean,default:!1},showDislikeIcon:{type:Boolean,default:!0},showDislikeText:{type:Boolean,default:!1},showShareIcon:{type:Boolean,default:!0},showShareText:{type:Boolean,default:!0},likeIcon:{type:Object,default:{props:{name:"vpapps-font-thumbs-up-like"},style:{}}},dislikeIcon:{type:Object,default:{props:{name:"vpapps-font-thumbs-down-dislike"},style:{}}},shareIcon:{type:Object,default:{props:{name:"vpapps-font-share"},style:{}}},style:{type:Object,default:{}},isVerticalPlayer:{type:Boolean,default:!1}},setup(e){jr(ke=>({"6c9388f1":ke.likedColorOnHover,a51ef702:ke.likedBackgroundColorOnHover,"0ac607e2":ke.dislikedColorOnHover,"33532a1d":ke.dislikedBackgroundColorOnHover,b84a4bba:ke.shareColorOnHover,"29317f31":ke.shareBackgroundColorOnHover}));const t=e,{title:r,description:n,callback:o,viewsCount:i,img:s,date:a,duration:d,likeIcon:f,dislikeIcon:u,shareIcon:p,likesCount:g,dislikesCount:y,watchLaterCount:v,hasLiked:k,hasDisliked:C,hasWatchLater:E,breakpoint:w,origin:_,pathname:T,shareText:F,viewsCountText:I,videoStartTimeText:P,copyText:H,linkText:$,showTitle:ee,showDescription:j,showMoreText:W,showLessText:ie,showLikeIcon:ce,showLikeText:pe,showDislikeIcon:ae,showDislikeText:me,showShareIcon:ve,showShareText:Pe,engagementsShowDemo:Re,showViews:Je,showPublishDate:$e,engagementsStyle:Me,titleStyle:rt,descriptionStyle:st,style:at,showLike:_e,showDislike:De,showShare:Le}=it(t),Ue=xe(()=>w.value==="mobile"),q=ue(!1),A=ue(!1),b=ue(0),R=xe(()=>{var ke,Ce,Ae,Fe,ze,Ne,Ke,Oe,et,Xe,lt,Bt;let U={color:(Ce=(ke=f.value)==null?void 0:ke.style)==null?void 0:Ce.color,backgroundColor:(Fe=(Ae=f.value)==null?void 0:Ae.style)==null?void 0:Fe.backgroundColor};return k.value&&((Ne=(ze=f.value)==null?void 0:ze.style)!=null&&Ne.colorOnActive&&(U.color=(Oe=(Ke=f.value)==null?void 0:Ke.style)==null?void 0:Oe.colorOnActive),(Xe=(et=f.value)==null?void 0:et.style)!=null&&Xe.backgroundColorOnActive&&(U.backgroundColor=(Bt=(lt=f.value)==null?void 0:lt.style)==null?void 0:Bt.backgroundColorOnActive)),U}),L=xe(()=>{var ke,Ce,Ae,Fe,ze,Ne,Ke,Oe,et,Xe,lt,Bt;let U={color:(Ce=(ke=u.value)==null?void 0:ke.style)==null?void 0:Ce.color,backgroundColor:(Fe=(Ae=u.value)==null?void 0:Ae.style)==null?void 0:Fe.backgroundColor};return C.value&&((Ne=(ze=u.value)==null?void 0:ze.style)!=null&&Ne.colorOnActive&&(U.color=(Oe=(Ke=u.value)==null?void 0:Ke.style)==null?void 0:Oe.colorOnActive),(Xe=(et=u.value)==null?void 0:et.style)!=null&&Xe.backgroundColorOnActive&&(U.backgroundColor=(Bt=(lt=u.value)==null?void 0:lt.style)==null?void 0:Bt.backgroundColorOnActive)),U}),G=xe(()=>_.value+T.value+`${b.value?"?t="+b.value:""}`),Q=xe(()=>_.value+"/embed"+T.value+`${b.value?"?t="+b.value:""}`),de=ke=>{o&&o.value&&o.value(ke)};return(ke,Ce)=>{var Ae;return D(),V("div",{class:"j-details flex flex-col",style:se(S(at))},[B("div",{class:"j-details-info-holder relative flex justify-between items-center flex-wrap w-full",style:se(S(Me))},[B("div",CT,[S(Re)&&S(Je)?(D(),V("p",{key:0,class:"j-details-vews whitespace-nowrap",style:se({...S(Me).fontStyle})},ge(S(i))+" "+ge(S(I)),5)):le("",!0),S(Re)&&S(Je)&&S($e)?(D(),V("p",ET,"•")):le("",!0),S($e)?(D(),V("p",{key:2,class:"j-details-date whitespace-nowrap",style:se({...S(Me).fontStyle})},ge(S(a)),5)):le("",!0)]),S(Re)?(D(),V("div",{key:0,class:"j-details-actions relative flex overflow-x-auto items-center justify-start md:justify-end",style:se({gap:(Ae=S(Me))==null?void 0:Ae.gap})},[S(_e)?(D(),Ee(S(mt),{key:0,class:"flex whitespace-nowrap","aria-label":"Like",style:se({...S(Me).fontStyle}),onClick:Ce[0]||(Ce[0]=Fe=>de(1))},{default:Te(()=>{var Fe,ze;return[S(ce)?(D(),Ee(S(ht),{key:0,"ikone-name":(ze=(Fe=S(f))==null?void 0:Fe.props)==null?void 0:ze.name,"ikone-style":{...S(f).style,color:R.value.color,backgroundColor:R.value.backgroundColor},class:"like-icon-hover"},null,8,["ikone-name","ikone-style"])):le("",!0),S(pe)?(D(),V(qe,{key:1},[tt("Like")],64)):le("",!0),S(g)?(D(),V("p",TT,"("+ge(S(g))+")",1)):le("",!0)]}),_:1},8,["style"])):le("",!0),S(De)?(D(),Ee(S(mt),{key:1,class:"flex whitespace-nowrap","aria-label":"Dislike",style:se({...S(Me).fontStyle}),onClick:Ce[1]||(Ce[1]=Fe=>de(2))},{default:Te(()=>[S(ae)?(D(),Ee(S(ht),{key:0,"ikone-name":S(u).props.name,"ikone-style":{...S(u).style,color:L.value.color,backgroundColor:L.value.backgroundColor},class:"dislike-icon-hover"},null,8,["ikone-name","ikone-style"])):le("",!0),S(y)?(D(),V("p",FT,"("+ge(S(y))+")",1)):le("",!0)]),_:1},8,["style"])):le("",!0),q.value?(D(),Ee(S(mt),{key:2,onClick:Ce[2]||(Ce[2]=Fe=>de(5)),rounded:"",class:"flex whitespace-nowrap","aria-label":"Watch later",style:se({...S(Me).fontStyle})},{default:Te(()=>[(D(),V("svg",{width:Ue.value?16:18,height:Ue.value?16:18,class:"md:my-auto mx-auto",viewBox:"0 0 20 21",style:{fill:"currentColor"},xmlns:"http://www.w3.org/2000/svg"},[Ce[5]||(Ce[5]=B("path",{d:"M4.53033 0.821232C4.82322 1.11413 4.82322 1.589 4.53033 1.88189L1.53033 4.88189C1.23744 5.17479 0.762563 5.17479 0.46967 4.88189C0.176777 4.589 0.176777 4.11413 0.46967 3.82123L3.46967 0.821232C3.76256 0.528339 4.23744 0.528339 4.53033 0.821232Z",fill:"#6E7B95"},null,-1)),Ce[6]||(Ce[6]=B("path",{d:"M6.25 11.3516C6.25 10.9373 6.58579 10.6016 7 10.6016H9.25V8.35156C9.25 7.93735 9.58579 7.60156 10 7.60156C10.4142 7.60156 10.75 7.93735 10.75 8.35156V10.6016H13C13.4142 10.6016 13.75 10.9373 13.75 11.3516C13.75 11.7658 13.4142 12.1016 13 12.1016H10.75V14.3516C10.75 14.7658 10.4142 15.1016 10 15.1016C9.58579 15.1016 9.25 14.7658 9.25 14.3516V12.1016H7C6.58579 12.1016 6.25 11.7658 6.25 11.3516Z",fill:"#6E7B95"},null,-1)),B("path",{"fill-rule":S(E)?"nonzero":"evenodd","clip-rule":"evenodd",d:"M10 20.3516C14.9706 20.3516 19 16.3221 19 11.3516C19 6.381 14.9706 2.35156 10 2.35156C5.02944 2.35156 1 6.381 1 11.3516C1 16.3221 5.02944 20.3516 10 20.3516ZM10 18.8516C14.1421 18.8516 17.5 15.4937 17.5 11.3516C17.5 7.20943 14.1421 3.85156 10 3.85156C5.85786 3.85156 2.5 7.20943 2.5 11.3516C2.5 15.4937 5.85786 18.8516 10 18.8516Z",stroke:"#6E7B95",fill:"#6E7B9500"}
73,null,8,PT),Ce[7]||(Ce[7]=B("path",{d:"M15.4697 1.88189C15.1768 1.589 15.1768 1.11413 15.4697 0.821232C15.7626 0.528339 16.2374 0.528339 16.5303 0.821232L19.5303 3.82123C19.8232 4.11413 19.8232 4.589 19.5303 4.88189C19.2374 5.17479 18.7626 5.17479 18.4697 4.88189L15.4697 1.88189Z",fill:"#6E7B95"},null,-1))],8,AT)),B("p",null,ge(S(v))+" Shlédnout Později",1)]),_:1},8,["style"])):le("",!0),S(Re)&&S(Le)?(D(),Ee(S(mt),{key:3,rounded:"",class:"flex whitespace-nowrap","aria-label":"Share",style:se({...S(Me).fontStyle}),onClick:Ce[3]||(Ce[3]=Fe=>A.value=!A.value)},{default:Te(()=>[S(ve)?(D(),Ee(S(ht),{key:0,"ikone-name":S(p).props.name,"ikone-style":{...S(p).style},class:"share-icon-hover"},null,8,["ikone-name","ikone-style"])):le("",!0),S(Pe)?(D(),V(qe,{key:1},[tt(ge(S(F)),1)],64)):le("",!0),e.sharesCount?(D(),V("p",IT,"("+ge(e.sharesCount)+")",1)):le("",!0)]),_:1},8,["style"])):le("",!0)],4)):le("",!0)],4),Se(eT,{title:S(r),description:S(n),titleStyle:S(rt),descriptionStyle:S(st),showTitle:S(ee),showDescription:S(j),showMoreText:S(W),showLessText:S(ie)},null,8,["title","description","titleStyle","descriptionStyle","showTitle","showDescription","showMoreText","showLessText"]),A.value?(D(),Ee(xT,{key:0,callback:S(o),origin:S(_),pathname:S(T),shareText:S(F),videoUrl:G.value,videoUrlEmbed:Q.value,title:S(r),date:S(a),duration:S(d),img:S(s),shareIcon:S(p),copyText:S(H),linkText:S($),videoStartTimeText:S(P),showMoreText:S(W),showLessText:S(ie),share:A.value,isVerticalPlayer:e.isVerticalPlayer,onCloseShareModal:Ce[4]||(Ce[4]=Fe=>A.value=!1)},null,8,["callback","origin","pathname","shareText","videoUrl","videoUrlEmbed","title","date","duration","img","shareIcon","copyText","linkText","videoStartTimeText","showMoreText","showLessText","share","isVerticalPlayer"])):le("",!0)],4)}}},OT=yt(RT,[["__scopeId","data-v-8b867571"]]),DT="…";function LT(e,t,r){e.style.cssText+="overflow:hidden;overflow-wrap:break-word;word-wrap:break-word";const n=t*parseInt(window.getComputedStyle(e).lineHeight,10);return e.scrollHeight<=n?!1:hm(e,e,n,DT)}function hm(e,t,r,n){const o=e.childNodes;let i=o.length-1;for(;i>-1;){const s=o[i--];if(s.nodeType===1&&hm(s,t,r,n)||s.nodeType===3&&jT(s,t,r,n))return!0;e.removeChild(s)}return!1}function jT(e,t,r,n){let o,i=e.textContent;for(;i.length>1&&(o=i.lastIndexOf(" "),o!==-1);){if(e.textContent=i.substring(0,o),t.scrollHeight<=r){e.textContent=i;break}i=e.textContent}return BT(e,t,r,n)}const MT=/[ .,;!?'‘’“”\-–—]+$/;function BT(e,t,r,n){let o=e.textContent,i=o.length;for(;i>1;)if(o=o.substring(0,i-1).replace(MT,""),i=o.length,e.textContent=o+n,t.scrollHeight<=r)return!0;return!1}const NT={class:"j-details p-3 mt-5 md:p-2 flex flex-col"},HT={class:"j-details-info-holder relative flex justify-between flex-wrap w-full gap-4 md:gap-1 mb-3"},$T={class:"j-details-info flex col-span-4 gap-2 justify-start md:col-span-3 items-center"},UT={key:0,class:"j-details-vews text-[#6E7B95] text-[14px] md:text-[16px] whitespace-nowrap"},qT={key:1},VT={class:"j-details-date text-[#6E7B95] whitespace-nowrap text-[14px] md:text-[16px] flex align-center justify-between"},WT={key:0,class:"j-details-actions relative text-[#6E7B95] gap-2 sm:gap-3 md:gap-4 col-span-4 flex overflow-x-auto md:col-span-7 items-center justify-start md:justify-end"},zT={class:"flex rounded-md bg-[#F6F8F9] sm:bg-transparent gap-0 sm:gap-4"},KT={class:"border-r text-[14px] md:text-[16px] border-gray-500 pr-3 sm:pr-0 sm:border-none text-[#36435E]"},JT={class:"flex text-[#36435E]"},GT={class:"flex text-[#36435E]"},YT={class:"j-details-title mb-2 w-full border-b border-gray-200 pb-3"},ZT={key:0,class:"text-[18px] md:text-xl text-black font-semibold mb-3"},XT={key:1,class:"flex flex-col"},QT=["innerHTML"],e6={key:0,id:"share-pop-up",class:"fixed top-0 left-0 right-0 transform-x-1/2 bg-[#04030633] flex flex-col h-full w-full items-center justify-center z-50"},t6={class:"flex justify-between mb-2"},r6={class:"text-xl flex text-[#000000] font-extrabold"},n6={class:"flex flex-col border-b border-b-[#EAEAEA] pb-4 mb-4"},o6={class:"flex gap-2 py-2 mb-6"},i6={class:"mb-6"},s6={class:"bg-[#F5F5F5] p-3 rounded flex gap-4"},a6={key:0,class:"flex flex-col"},l6={class:"flex bg-white items-center justify-between p-3 mt-5 mb-2 border border-secondary rounded-md transition-all duration-50 ease-in"},c6={class:"text-[#646464] max-w-md grow flex-1 truncate"},u6={class:"flex gap-3"},f6={class:"flex gap-3"},d6={class:"flex gap-3"},p6={key:1,class:"flex flex-col"},h6={class:"flex bg-white items-center justify-between p-3 mt-5 border border-secondary rounded-md transition-all duration-50 ease-in"},g6={class:"text-[#646464] max-w-md grow flex-1 truncate"},m6={class:"text-base flex text-[#000000] font-bold mb-1"},y6={class:"flex bg-white items-center justify-between p-3 border border-secondary rounded-md transition-all duration-50 ease-in"},v6={class:"text-[#646464] max-w-md grow flex-1 truncate"},b6={class:"flex gap-3"},_6={class:"text-black"},w6={class:"text-[#8E8E8E] px-2"},S6={__name:"JDetails",props:{data:{type:Array,required:!0},title:{type:String,required:!0},description:{type:String,required:!1,default:null},callback:{type:Function,required:!1,default:()=>{}},viewsCount:{type:[Number,String],required:!1,default:"2,332"},img:{type:[String],required:!1,default:"https://cdn.vpapps.cloud/default-video-card.png"},date:{type:[String],required:!1,default:"25/02/2022"},duration:{type:[String,Number],required:!1,default:0},likesCount:{type:Number,required:!1,default:null},dislikesCount:{type:Number,required:!1,default:null},favoritesCount:{type:Number,required:!1,default:null},subscribesCount:{type:Number,required:!1,default:null},watchLaterCount:{type:Number,required:!1,default:null},hasLiked:{type:Boolean,required:!1,default:null},hasDisliked:{type:Boolean,required:!1,default:!1},hasFavorite:{type:Boolean,required:!1,default:!1},hasSubsribed:{type:Boolean,required:!1,default:!1},hasWatchLater:{type:Boolean,required:!1,default:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},showMoreText:{type:String,required:!1,default:"Zobrazit více"},showLessText:{type:String,required:!1,default:"Zobrazit méně"},engagementsShowDemo:{type:Boolean,required:!1,default:!0},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},showLike:{type:Boolean,default:!0},showDislike:{type:Boolean,default:!0},showShare:{type:Boolean,default:!0},showFavorite:{type:Boolean,default:!0},showViews:{type:Boolean,default:!0},breakpoint:{type:String,default:"desktop"},shareText:{type:String,default:"Share"},viewsCountText:{type:String,default:"views"},videoStartTimeText:{type:String,default:"Video start time"},copyText:{type:String,default:"Copy"},linkText:{type:String,default:"Copy"}},setup(e){const t=e,{origin:r,pathname:n}=window.location,{data:o,title:i,description:s,callback:a,viewsCount:d,img:f,date:u,duration:p,likesCount:g,dislikesCount:y,favoritesCount:v,subscribesCount:k,watchLaterCount:C,hasLiked:E,hasDisliked:w,hasFavorite:_,hasSubsribed:T,hasWatchLater:F,breakpoint:I}=it(t),P=ue(null);xe(()=>I.value==="mobile");const H=ue(!1),$=ue(!1);ue(!1),ue(!1),ue(!1);const ee=ue(!1),j=ue(!1);ue(!1),ue(!1);const W=ue(!1),ie=ue("javascript"),ce=q=>{a&&a.value&&a.value(q)},pe=hn(P,q=>{pe.isClickOutside(q,P)&&(j.value=!1)});async function ae(q,A){const b=q.target.parentElement;try{await navigator.clipboard.writeText(A),b.classList.add("ring-1","ring-offset-0","ring-blue-500","bg-blue-300/25"),setTimeout(()=>{b.classList.remove("ring-1","ring-offset-0","ring-blue-500","bg-blue-300/25")},1e3)}catch(R){console.error("Failed to copy: ",R)}}const me=[{id:"0",name:"Facebook",icon:"https://cdn.vpapps.cloud/social-medias/embed.svg",createdAt:"0001-01-01T00:00:00",url:q=>W.value=!W.value},{id:"1",name:"Facebook",icon:"https://cdn.vpapps.cloud/social-medias/facebook.svg",createdAt:"0001-01-01T00:00:00",url:q=>`https://www.facebook.com/dialog/share?href=${q}&client_id=461693840960966 `},{id:"2",name:"Messenger",icon:"https://cdn.vpapps.cloud/social-medias/messenger.svg",createdAt:"0001-01-01T00:00:00",url:q=>`http://www.facebook.com/dialog/send?link=${q}&redirect_uri=${q}&app_id=461693840960966 `},{id:"4",name:"Twitter",icon:"https://cdn.vpapps.cloud/social-medias/twitter.svg",createdAt:"0001-01-01T00:00:00",url:q=>`https://twitter.com/intent/tweet?url=${q}`}],ve=ue(0),Pe=xe(()=>{const{value:q}=ve;return q<60?`00:${q<10?"0"+q:q}`:q<3600?`${parseInt(q/60)<10?"0"+parseInt(q/60):parseInt(q/60)}:${parseInt(q%60,10)<10?"0"+parseInt(q%60,10):parseInt(q%60,10)}`:`${parseInt(q/60/60,10)}:${parseInt(q/60%60,10)}:${parseInt(q%60,10)}`});function Re(q){var A;ve.value=q.target.checked&&typeof vpPlayer=="function"?Math.floor((A=vpPlayer())==null?void 0:A.getPosition()):0}const Je=xe(()=>r+n+`${ve.value?"?t="+ve.value:""}`),$e=xe(()=>r+"/embed"+n+`${ve.value?"?t="+ve.value:""}`),Me=ue(!1),rt=ue(!0),st=ue(!1),at=ue(!0),_e=xe(()=>`<div style="padding-top:56.25%; position:relative; width:100%;">
74    ${Me.value?Le.value:""}
75    <iframe
76      class="no-margin"
77      style="position:absolute; left:0; top:0; width: 100%; height:100%;"
78      src="${$e.value}
78?autoplay=${rt.value}&am=${st.value}&muted=${at.value}"
79      frameborder="0"
80      allow="autoplay" 
81      Allowfullscreen
82    >
83    </iframe>
84  </div>`),De=xe(()=>`<script type="application/ld+json">
85    {
86      "@context": "https://schema.org",
87      "@type": "VideoObject",
88      "name": "${i.value}",
89      "duration": "PT${p.value}S",
90      "thumbnailUrl": "${f.value}",
91      "uploadDate": "${u.value}",
92      "contentUrl": "${$e.value}?autoplay=${rt.value}&am=${st.value}&muted=${at.value}"
93    }
94    <\/script>
95  <div
96    class="vp-embed-wrapper"
97    data-upload="${u.value}"
98    data-name="${i.value}"
99    data-duration="PT${p.value}S"
100    data-thumbnail="${f.value}"
101    data-url="${$e.value}?autoplay=${rt.value}&am=${st.value}&muted=${at.value}">
102    <div class="vp-embed" style="position: relative; overflow: hidden; padding-bottom: 56.25%"></div>
103    <script
104      id="JEmbed"
105      type="text/javascript"
106      src="https://cdn.vpapps.cloud/embed.js"><\/script>
107  </div>`),Le=xe(()=>`<meta itemprop='${u.value}' content='${u.value}' />
108    <meta itemprop='${i.value}' />
109    <meta itemprop='PT${p.value}S' content='PT${p.value}S' />
110    <meta itemprop='${f.value}' content='${f.value}' />
111    <meta itemprop='${$e.value}?autoplay=${rt.value}&am=${st.value}&muted=${at.value}' content='${$e.value}?autoplay=${rt.value}&am=${st.value}&muted=${at.value}' />`);function Ue(q){const A=document.querySelector("#j-details-description");if(q)A.innerHTML=s.value;else return LT(A,3)}return kt(()=>{setTimeout(()=>{H.value=Ue($.value)},800)}),(q,A)=>(D(),V(qe,null,[B("div",NT,[B("div",HT,[B("div",$T,[e.engagementsShowDemo&&e.showViews?(D(),V("p",UT,ge(S(d))+" "+ge(e.viewsCountText),1)):le("",!0),e.engagementsShowDemo&&e.showViews?(D(),V("p",qT,"•")):le("",!0),B("p",VT,ge(S(u)),1)]),e.engagementsShowDemo?(D(),V("div",WT,[B("div",zT,[e.showLike?(D(),Ee(S(mt),{key:0,onClick:A[0]||(A[0]=b=>ce(1)),class:"flex text-[14px] md:text-[16px] gap-2 px-3 rounded-l-md bg-[#F6F8F9] sm:bg-transparent whitespace-nowrap","aria-label":"Like"},{default:Te(()=>[Se(S(ht),{"ikone-name":"vpapps-font-thumbs-up-like"}),B("p",KT,ge(S(g)),1)]),_:1})):le("",!0),e.showDislike?(D(),Ee(S(mt),{key:1,onClick:A[1]||(A[1]=b=>ce(2)),class:"flex text-[14px] md:text-[16px] gap-2 px-3 whitespace-nowrap rounded-r-md bg-[#F6F8F9] sm:bg-transparent","aria-label":"Dislike"},{default:Te(()=>[Se(S(ht),{"ikone-name":"vpapps-font-thumbs-down-dislike"})]),_:1})):le("",!0)]),ee.value?(D(),Ee(S(mt),{key:0,onClick:A[2]||(A[2]=b=>ce(5)),rounded:"",class:"flex text-[14px] md:text-[16px] gap-2 whitespace-nowrap bg-[#F6F8F9] sm:bg-transparent","aria-label":"Watch later"},{default:Te(()=>[Se(S(ht),{"ikone-name":"vpapps-font-clock-time-alarm-add"}),B("p",JT,ge(S(C))+" Shlédnout Později ",1)]),_:1})):le("",!0),e.engagementsShowDemo&&e.showShare?(D(),Ee(S(mt),{key:1,onClick:A[3]||(A[3]=b=>j.value=!j.value),rounded:"",class:"flex text-[14px] md:text-[16px] gap-2 px-3 whitespace-nowrap bg-[#F6F8F9] sm:bg-transparent relative","aria-label":"Share"},{default:Te(()=>[Se(S(ht),{"ikone-name":"vpapps-font-share"}),B("p",GT,ge(e.shareText),1)]),_:1})):le("",!0)])):le("",!0)]),B("div",YT,[e.showTitle?(D(),V("p",ZT,ge(S(i)),1)):le("",!0),e.showDescription?(D(),V("div",XT,[B("div",{id:"j-details-description",class:"text-[#646464] text-[14px] md:text-[16px] font-medium whitespace-pre-wrap ql-editor p-0!",innerHTML:S(s)},null,8,QT),H.value?(D(),Ee(S(mt),{key:0,textColor:"#4B4B4B",class:"flex w-fit text-[14px] md:text-[16px] shrink px-0 show-more-description","aria-label":$.value?e.showLessText:e.showMoreText,onClick:A[4]||(A[4]=()=>{$.value=!$.value,Ue($.value)})},{default:Te(()=>[tt(ge($.value?e.showLessText:e.showMoreText),1)]),_:1},8,["aria-label"])):le("",!0)])):le("",!0)])]),(D(),Ee(cs,{to:"body"},[j.value?(D(),V("div",e6,[B("div",{ref_key:"shareModalRef",ref:P,class:"flex flex-col w-11/12 sm:w-3/4 md:w-2/3 lg:w-1/3 bg-[#FFFFFF] rounded-md p-6"},[B("span",t6,[B("p",r6,ge(e.shareText),1),Se(S(ht),{"ikone-name":"vpapps-font-close-cancel",onClick:A[5]||(A[5]=b=>j.value=!1)})]),B("span",n6,[B("div",o6,[(D(),V(qe,null,pt(me,({icon:b,name:R,id:L,url:G})=>(D(),V(qe,{key:L},[L>0?(D(),Ee(S(rs),{key:0,imageSrc:b,"external-link-to":G(Je.value,S(i)),alt:R,"custom-wrapper":"a","image-style":{height:"40px",width:"40px",borderRadius:"4px"}},null,8,["imageSrc","external-link-to","alt"])):(D(),Ee(S(rs),{key:1,imageSrc:b,onClick:Q=>G(),alt:R,"custom-wrapper":"a",class:"cursor-pointer","image-style":{height:"40px",width:"40px",borderRadius:"4px"}},null,8,["imageSrc","onClick","alt"]))],64))),64))]),wt(B("span",i6,[B("span",s6,[Se(S(mt),{onClick:A[6]||(A[6]=b=>ie.value="javascript"),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#646464] shrink px-3 w-full",style:se({background:ie.value=="javascript"?"#FFFFFF":"#FFFFFF00",fontWeight:400}),"aria-label":"Javascript embed"},{default:Te(()=>A[14]||(A[14]=[tt(" JavaScript ")])),_:1,__:[14]},8,["style"]),Se(S(mt),{onClick:A[7]||(A[7]=b=>ie.value="iframe"),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#646464] shrink px-3 w-full",style:se({background:ie.value=="iframe"?"#FFFFFF":"#FFFFFF00",fontWeight:400}),"aria-label":"iFrame embed"},{default:Te(()=>A[15]||(A[15]=[tt(" iFrame ")])),_:1,__:[15]},8,["style"])]),ie.value=="iframe"?(D(),V("span",a6,[B("span",l6,[B("p",c6,ge(_e.value),1),Se(S(mt),{onClick:A[8]||(A[8]=b=>ae(b,_e.value)),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#ffffff] shrink px-3",style:{background:"#3A3CFF",fontWeight:400},"aria-label":"Copy iframe embed"},{default:Te(()=>[tt(ge(e.copyText),1)]),_:1})]),B("span",u6,[wt(B("input",{"onUpdate:modelValue":A[9]||(A[9]=b=>Me.value=b),type:"checkbox",name:"includeSeo",id:"includeSeo"},null,512),[[Fn,Me.value]]),A[16]||(A[16]=B("p",{class:"text-black"},"Zahrnout SEO",-1))]),B("span",f6,[wt(B("input",{"onUpdate:modelValue":A[10]||(A[10]=b=>rt.value=b),type:"checkbox",name:"autoplay",id:"autoplay"},null,512),[[Fn,rt.value]]),A[17]||(A[17]=B("p",{class:"text-black"},"Vypnout autoplay",-1))]),B("span",d6,[wt(B("input",{"onUpdate:modelValue":A[11]||(A[11]=b=>st.value=b),type:"checkbox",name:"autoplayMobile",id:"autoplayMobile"},null,512),[[Fn,st.value]]),A[18]||(A[18]=B("p",{class:"text-black"},"Zapnout autoplay na mobilním webu",-1))])])):le("",!0),ie.value=="javascript"?(D(),V("span",p6,[B("span",h6,[B("p",g6,ge(De.value),1),Se(S(mt),{onClick:A[12]||(A[12]=b=>ae(b,De.value)),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#ffffff] shrink px-3",style:{background:"#3A3CFF",fontWeight:400},"aria-label":"Copy javascript embed"},{default:Te(()=>[tt(ge(e.copyText),1)]),_:1})])])):le("",!0)],512),[[Mt,W.value]]),B("p",m6,ge(e.linkText),1),B("span",y6,[B("p",v6,ge(Je.value),1),Se(S(mt),{onClick:A[13]||(A[13]=b=>ae(b,Je.value)),rounded:"",class:"flex md:text-md gap-2 whitespace-nowrap text-[#ffffff] shrink px-3",style:{background:"#3A3CFF",fontWeight:400},"aria-label":"Copy video url"},{default:Te(()=>[tt(ge(e.copyText),1)]),_:1})])]),B("span",b6,[B("input",{type:"checkbox",name:"embedCurrentTime",id:"embedCurrentTime",onInput:Re},null,32),B("p",_6,ge(e.videoStartTimeText),1),B("p",w6,ge(Pe.value),1)])],512)])):le("",!0)]))],64))}},k6=yt(S6,[["__scopeId","data-v-80d467da"]]),x6={class:"ml-auto"},C6={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E6=["fill"],T6={key:0},F6=["onClick"],A6={key:1,class:"p-3 text-center"},P6={__name:"JDropdown",props:{modelValue:{default:null},options:{type:Array},placeholder:{type:String,default:"Select"},optionLabel:{type:String,default:"name"},optionValue:{type:String,default:"publicId"},optionId:{type:String,default:null},border:{type:Boolean,default:!0},buttonTextPadding:{type:String,default:"p-1"},optionsWrapperClass:{type:String,default:""},disabled:{type:Boolean,required:!1},selectObject:{type:Boolean,default:!0},dropDownStyle:{type:Object,default:{color:"#334155",backgroundColor:"white"}}},emits:["update:modelValue","change"],setup(e,{emit:t}){const r=e,n=t,o=ue(!1),i=xe(()=>{var u;return((u=r.options)==null?void 0:u.find(p=>p[r.optionValue]===r.modelValue||r.optionId&&p[r.optionId]===r.modelValue[r.optionId]||p===r.modelValue))||null}),s=xe(()=>i.value!==null&&i.value!==void 0?i.value[r.optionLabel]:i.value);function a(){r.disabled||(o.value=!o.value)}function d(u){let p;u[r.optionValue]!==null&&u[r.optionValue]!==void 0?p=u[r.optionValue]:
111p=r.selectObject?u:null,n("update:modelValue",p),n("change",p),o.value=!1}const f=xe(()=>r.dropDownStyle.color==="#FFFFFF"||r.dropDownStyle.color==="#00000000"||r.dropDownStyle.color==="");return(u,p)=>(D(),V("div",null,[wt(B("div",{onClick:p[0]||(p[0]=g=>o.value=!1),class:"fixed inset-0 z-10 w-full h-full"},null,512),[[Mt,o.value]]),B("div",{class:Be(["relative text-sm sm:text-main border border-[#cdd8e7] rounded-lg",{"opacity-70":e.disabled}]),style:se({backgroundColor:e.dropDownStyle.backgroundColor})},[B("a",{onClick:a,class:Be(["relative flex w-full select-none items-center gap-1 px-3 min-w-[130px] md:min-w-[180px]",[e.buttonTextPadding,!e.disabled&&"cursor-pointer"]])},[Ze(u.$slots,"button-text",{},()=>[B("span",{class:"mr-1 truncate font-medium",style:se({color:f.value===!0?"#334155":e.dropDownStyle.color})},ge(s.value||e.placeholder),5),B("span",x6,[(D(),V("svg",C6,[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.46967 8.54262C6.76256 8.26367 7.23744 8.26367 7.53033 8.54262L10 10.8947L12.4697 8.54262C12.7626 8.26367 13.2374 8.26367 13.5303 8.54262C13.8232 8.82156 13.8232 9.27382 13.5303 9.55277L10.8839 12.0732C10.3957 12.5381 9.60427 12.5381 9.11612 12.0732L6.46967 9.55277C6.17678 9.27382 6.17678 8.82156 6.46967 8.54262Z",fill:e.dropDownStyle.color},null,8,E6)]))])],!0)],2),B("div",{class:Be(["shadow-md absolute w-full left-0 top-full border overflow-y-auto h-auto scroll max-h-[140px] z-20 mt-[5px] rounded-md",[e.optionsWrapperClass,!o.value&&"hidden"]]),style:se({backgroundColor:e.dropDownStyle.backgroundColor})},[Ze(u.$slots,"default",{},()=>[e.options.length?(D(),V("ul",T6,[(D(!0),V(qe,null,pt(e.options,(g,y)=>(D(),V("li",{class:Be(["px-2 py-1 cursor-pointer border-[#cdd8e7]] border-b",{"bg-gray-300 font-medium ":g[e.optionValue]===e.modelValue||e.optionId&&g[e.optionId]===e.modelValue[e.optionId]||g===e.modelValue}]),key:`${y}`,style:se({color:g[e.optionValue]===e.modelValue||e.optionId&&g[e.optionId]===e.modelValue[e.optionId]||g===e.modelValue?f.value===!0?"#334155":e.dropDownStyle.color:"#64748b"}),onClick:v=>d(g)},[Ze(u.$slots,"option",dr({ref_for:!0},g),()=>[tt(ge(g[e.optionLabel]||g),1)],!0)],14,F6))),128))])):(D(),V("div",A6,"No available options"))],!0)],6)],6)]))}},ci=yt(P6,[["__scopeId","data-v-8f7797a1"]]),gm={__name:"JFilmStrip",props:{src:{type:String,required:!1,default:null},switchTime:{type:Number,required:!1,default:.5}},setup(e){const t=e,r=ue("0 0 / 1000% 1000%"),n=ue(null),o=ue(null),i=ue(null),s=ue("hover:opacity-0!"),a=ue(!1),d=ue(null),f=ue(!0),u=C=>{C&&(a.value=!!C,d.value=`url(${C})`,s.value=null)},p=()=>{clearInterval(n.value)},g=(C,E)=>{r.value=`${C}% ${E}% / 500% 500%`},y=()=>{let C=0,E=0;n.value=setInterval(()=>{g(C,E),C+=25,C>100&&(C=0,E+=25),E>100&&(p(),s.value="hover:opacity-0!")},t.switchTime*1e3)},v=()=>{if(f.value){if(!t.src){f.value=!1;return}i.value=setTimeout(async()=>{if(!a.value){const C=await im(t.src);if(!C){clearTimeout(i.value),f.value=!1;return}u(C)}s.value=null,g(0,0),o.value=setTimeout(()=>{y()},100)},600)}},k=()=>{f.value&&(clearTimeout(o.value),clearTimeout(i.value),p(),s.value="hover:opacity-0!")};return(C,E)=>(D(),V("div",{class:Be(["j-filmstrip cursor-pointer z-1 absolute top-0 right-0 left-0 bottom-0 opacity-0 hover:opacity-100 transition-opacity hover:delay-700",s.value]),onMouseenter:v,onMouseleave:k,style:se({background:`${d.value} ${r.value}`})},null,38))}},I6={__name:"JFollowingMedia",props:{media:{type:Array,required:!0},callback:{type:Function,required:!1,default:()=>{}},customWrapper:{type:String,required:!1,default:"RouterLink"},title:{type:String,required:!1,default:"Related videos"},breakpoint:{type:String,default:"desktop"},style:{type:Object,default:{}},titleStyle:{type:Object,default:{}},newItemText:{type:String,default:"New"}},setup(e){const t=e,{media:r,callback:n,breakpoint:o}=it(t);return xe(()=>o.value==="mobile").value,kt(()=>{or(()=>{const i=document.querySelector("#load-more-related");on(i,n.value)})}),(i,s)=>(D(),V("div",{class:"j-content-grid flex flex-col",style:se(e.style)},[e.title?(D(),V("h3",{key:0,style:se(e.titleStyle)},ge(e.title),5)):le("",!0),(D(!0),V(qe,null,pt(S(r),(a,d)=>(D(),V("div",{class:"content-wrapper basis-full",key:d},[Ze(i.$slots,"card",{card:a},()=>{var f,u;return[Se(S(li),{class:Be("pt-0 pb-2 px-2"),"card-style":a.style.style,order:a.style.order,"infobox-font-style":a.style.infoboxFontStyle,"infobox-style":a.style.infoboxStyle,"infobox-wrapper-style":a.style.infoboxWrapperStyle,"infobox-classe
111s":a.style.infoboxClasses,"thumbnail-style":a.style.thumbnailStyle,"title-style":{lineHeight:"20px",overflow:" hidden",textOverflow:"ellipsis",whiteSpace:"normal",padding:0,...a.style.titleStyle},"show-title":a.style.showTitle,title:a.props.title,"show-author":a.style.showAuthor,author:a.props.author,"show-views":!1,views:"00K Views","show-date":a.style.showDate,date:a.props.startDate,"show-thumbnail":a.style.showThumbnail,"show-time-duration":a.style.showTimeDuration,"time-duration":a.props.timeDuration,mediaid:a.props.mediaid,url:a.props.url,"custom-wrapper":a.props.isRedirect?"a":e.customWrapper,breakpoint:S(o),"show-parent-group":a.style.showParentGroup,"parent-group-style":a.style.parentGroupStyle,"parent-group-name":(f=a.props.parentGroup)==null?void 0:f.name,"parent-group-url":(u=a.props.parentGroup)==null?void 0:u.url,"show-progress-bar":a.style.showProgressBar,"progress-bar-config":a.style.progressBarStyle,"progress-bar-value":a.props.progressBarValue,"is-new":a.props.isNew,"new-item-text":e.newItemText},{image:Te(()=>[Ze(i.$slots,"card-image",dr({ref_for:!0},{image:a.props.img,style:a.style.imageStyle,filmstrip:a.props.filmstrip,isFilmstrip:a.style.isFilmstrip,alt:a.props.title}),()=>[Se(S(zt),{imageSrc:a.props.img,alt:a.props.title,class:Be(["w-full",[S(o)]]),style:se(a.style.imageStyle)},null,8,["imageSrc","alt","class","style"])])]),badge:Te(()=>[(D(!0),V(qe,null,pt(i.formatedBadges,(p,g)=>(D(),V(qe,null,[p.classes?(D(),Ee(S(so),{key:g,style:se(p.style),class:Be(p.classes)},{default:Te(()=>[tt(ge(p.name),1)]),_:2},1032,["style","class"])):le("",!0)],64))),256))]),_:2},1032,["card-style","order","infobox-font-style","infobox-style","infobox-wrapper-style","infobox-classes","thumbnail-style","title-style","show-title","title","show-author","author","show-date","date","show-thumbnail","show-time-duration","time-duration","mediaid","url","custom-wrapper","breakpoint","show-parent-group","parent-group-style","parent-group-name","parent-group-url","show-progress-bar","progress-bar-config","progress-bar-value","is-new","new-item-text"])]})]))),128)),s[0]||(s[0]=B("div",{id:"load-more-related"},null,-1))],4))}},R6={name:"jvp-footer",inheritAttrs:!1,customOptions:{}};function O6(e,t,r,n,o,i){return D(),V("div",dr(e.$attrs,{id:"j-footer",class:"j-footer w-full flex flex-wrap gap-4"}),[Ze(e.$slots,"default")],16)}const mm=yt(R6,[["render",O6]]),D6={__name:"JFooterLabel",props:{data:{type:Object,default:{text:{type:String,default:""}}},labelStyle:{type:Object,required:!1,default:{}}},setup(e){const t=e,{text:r}=t.data;return(n,o)=>(D(),V("div",dr(n.$attrs,{style:e.labelStyle,class:"p-4 md:pl-0 text-center md:text-left"}),ge(S(r)),17))}},L6=["target","aria-label","href"],j6={__name:"JFooterMenuItem",props:{menu:{type:Array,required:!1,default:[]},style:{type:Object,default:{}}},setup(e){const t=e;function r(i){var s=/^javascript/;return s.test(i)}const{menu:n,orientation:o}=t;return(i,s)=>{const a=On("RouterLink"),d=On("JFooterMenuItem",!0);return D(),V("ol",{class:Be(["flex flex-wrap gap-4 text-sm",e.style.orientation==="horizontal"?"flex-row":"flex-col"]),style:se(e.style)},[(D(!0),V(qe,null,pt(S(n),f=>(D(),V("li",{class:"menu-item list-none",key:f.url},[f?(D(),V(qe,{key:0},[f.itemTypeId===1||f.itemLinkTypeId===2?(D(),Ee(a,{to:f.url,key:f.url,"aria-label":f.navigationLabel,class:"cursor-pointer item"},{default:Te(()=>[tt(ge(f.navigationLabel),1)]),_:2},1032,["to","aria-label"])):f.itemTypeId===2?(D(),V("a",{target:r(f.url)?null:"_blank",key:"external"+f.url,"aria-label":f.navigationLabel,href:f.url,class:"cursor-pointer item"},ge(f.navigationLabel),9,L6)):(D(),V("div",{key:"label"+f.url},ge(f.navigationLabel),1)),f.childItems?(D(),Ee(d,{key:3,menu:f.childItems,orientation:S(o),style:se(e.style)},null,8,["menu","orientation","style"])):le("",!0)],64)):le("",!0)]))),128))],6)}}},M6={key:0,class:"mb-6"},B6={__name:"JFooterMenu",props:{data:{type:Object,default:{title:{type:String,default:""},menu:{type:Array,default:[]}}},style:{type:Object,default:{wrapperStyle:{},titleStyle:{},itemsStyle:{}}},menuItems:{type:Array,default:null}},setup(e){return(t,r)=>{var n,o,i,s;return D(),V("div",{class:"p-4 pt-0! md:pl-0! j-footer-menu",style:se(e.style.wrapperStyle)},[e.data.title?(D(),V("div",M6,[B("h5",{style:se(e.style.titleStyle)},ge(e.data.title),5)])):le("",!0),(D(),Ee(j6,{key:`${(n=e.menuItems)==null?void 0:n.length}-${(s=(i=(o=e.data)==null?void 0:o.menu)==null?void 0:i.items)==null?void 0:s.length}`,menu:e.menuItems||e.data.menu.items,style:se(e.style.itemsStyle)},null,8,["menu","style"]))],4)}}},N6=yt(B6,[["__scopeId","data-v-2ec0474f"]]),H6=["aria-label","href"],$6={__name:"JFooterImage",props:{data:{type:Object,default:{image:{type:String,default:""}}},style:{type:Object,required:!1}},setup(e){const t=e,{image:r,altText:n,clickable:o,link:i,title:s}=it(t.data),{style:a}=it(t),d=p=>p?p.type==="px"||p.type==="%"?`${p.value}${p.type}
111`:`${p.type}`:"",f=p=>p?p.type==="px"||p.type==="%"?`${p.value}${p.type}`:`${p.type}`:"",u=xe(()=>{var p,g;return{width:f((p=a.value)==null?void 0:p.width),height:d((g=a.value)==null?void 0:g.height)}});return xe(()=>{var p,g,y,v,k,C,E,w,_,T,F,I,P,H,$,ee,j,W,ie,ce,pe,ae,me;return{fontSize:`${(y=(g=(p=a.value)==null?void 0:p.captionStyle)==null?void 0:g.fontStyle)==null?void 0:y.weight}`,fontWeight:`${(C=(k=(v=a.value)==null?void 0:v.captionStyle)==null?void 0:k.fontStyle)==null?void 0:C.weight}`,fontFamily:`${(_=(w=(E=a.value)==null?void 0:E.captionStyle)==null?void 0:w.fontStyle)==null?void 0:_.family}`,fontStyle:`${(I=(F=(T=a.value)==null?void 0:T.captionStyle)==null?void 0:F.fontStyle)==null?void 0:I.style}`,color:`${($=(H=(P=a.value)==null?void 0:P.captionStyle)==null?void 0:H.fontStyle)==null?void 0:$.color}`,padding:`${(j=(ee=a.value)==null?void 0:ee.captionStyle)==null?void 0:j.padding.top}px ${(ie=(W=a.value)==null?void 0:W.captionStyle)==null?void 0:ie.padding.right}px ${(pe=(ce=a.value)==null?void 0:ce.captionStyle)==null?void 0:pe.padding.left}px ${(me=(ae=a.value)==null?void 0:ae.captionStyle)==null?void 0:me.padding.bottom}px`}}),(p,g)=>{const y=On("router-link");return D(),V("div",{class:"j-footer",style:se(u.value)},[tt(ge(S(s))+" ",1),S(o)?(D(),V(qe,{key:0},[e.data.linkType===1?(D(),V("a",{key:0,class:"cursor-pointer flex",target:"_blank","aria-label":S(n),href:`https://${e.data.imgTo}`},[Se(S(Zs),{"image-src":S(r),alt:S(n)},null,8,["image-src","alt"])],8,H6)):e.data.linkType===2?(D(),Ee(y,{key:1,to:e.data.imgTo?e.data.imgTo:"/not-set",class:"cursor-pointer flex"},{default:Te(()=>[Se(S(Zs),{"image-src":S(r),alt:S(n)},null,8,["image-src","alt"])]),_:1},8,["to"])):le("",!0)],64)):(D(),Ee(S(Zs),{key:1,"image-src":S(r),alt:S(n)},null,8,["image-src","alt"]))],4)}}},U6={},q6={class:"j-footer-sceleton w-full"};function V6(e,t){return D(),V("div",q6,t[0]||(t[0]=[B("div",{class:"card w-full is-loading"},[B("div",{class:"image"}),B("div",{class:"content"},[B("h2"),B("p")])],-1)]))}const W6=yt(U6,[["render",V6]]),z6={class:""},K6={__name:"JHeaderSidebar",props:{icon:{type:Object,default:{color:"",size:"18",name:""}},style:{type:Object,default:{}},wrapperStyle:{type:Object,default:{}},wrapperClass:{type:String,default:"w-[80%]"},fixedWrapperClass:{type:String,default:"fixed"},headerClass:{type:String,default:""},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onOpen:{type:Function,default:()=>{},required:!1},onClose:{type:Function,default:()=>{},required:!1},slideDirection:{type:String,default:"right"},isShown:{type:Boolean,default:!0},isReactive:{type:Boolean,default:!0}},setup(e){const t=e,r=ue(0),n=ue(null);function o(){t.onOpen()||(t.onToggle(),t.isReactive&&r.value++)}function i(){t.onClose()}const s=hn(n,a=>{s.isClickOutside(a,n)&&i()});return(a,d)=>(D(),V("div",{ref_key:"sidebarRef",ref:n},[B("div",{onClick:d[0]||(d[0]=f=>o()),style:se(e.style)},[Ze(a.$slots,"button",{},void 0,!0)],4),B("div",{class:Be(["h-screen top-0 bg-white p-3 overflow-y-auto scroll",[e.fixedWrapperClass,e.isOpen?`nav-open-${e.slideDirection}`:`nav-close-${e.slideDirection}`,e.slideDirection==="right"?"left-0":"right-0",{hidden:r.value===0}]]),style:se({...e.wrapperStyle,width:e.wrapperStyle.menuWidth})},[B("div",{class:Be(["w-full justify-between my-3 gap-5 items-center flex",e.headerClass])},[B("div",z6,[Ze(a.$slots,"header",{},void 0,!0)]),B("div",{onClick:d[1]||(d[1]=f=>i())},[Ze(a.$slots,"header-close",{},()=>[Se(S(ht),{"ikone-name":"vpapps-font-close-cancel"})],!0)])],2),Ze(a.$slots,"default",{},void 0,!0)],6)],512))}},Cu=yt(K6,[["__scopeId","data-v-414e7623"]]),J6={class:"j-submenu-wrapper submenu-parent"},G6={class:"menu-wrapper"},Y6=["value"],Z6={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 8 6",fill:"none"},X6=["fill"],Q6={class:"j-language-item flex items-center text-sm font-medium cursor-pointer whitespace-pre p-3 row-menu-item",value:"1"},e3=["href","aria-label"],t3={__name:"JHeaderSubMenuItem",props:{label:{type:String,default:{color:"#FFF",size:"18",name:""}},childItems:{type:Array,required:!1,default:"RouterLink"},firstLevel:{type:Boolean,required:!1,default:!1},parentLevel:{type:[Number],required:!1,default:"none"},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-align-lines-left",size:18},style:{size:"18px",color:"black"}})}},setup(e){const t=e,{parentLevel:r,firstLevel:n}=it(t),o=ue(!1),i=f=>{o.value?a():s()},s=f=>{o.value=!0},a=()=>{o.value=!1},d=(f,u,p)=>
111{if(u.relatedTarget&&document.querySelector(`.menu-level-${u.relatedTarget.value}`)!==document.querySelector(`.menu-level-${f}`)&&or(()=>{document.querySelector(`.menu-level-${f}`).focus(),document.querySelector(`.menu-level-${f}`).blur()}),!p&&!u.relatedTarget){document.querySelector(`.menu-level-${f}`).focus(),document.querySelector(`.menu-level-${f}`).blur();return}(!u.relatedTarget||!u.relatedTarget.classList.contains("menu-related"))&&a()};return(f,u)=>{const p=On("RouterLink"),g=On("JHeaderSubMenuItem",!0);return D(),V("div",J6,[B("div",G6,[B("button",{class:Be(["icon menu-btn icon-holder flex items-center justify-between menu-related",[S(n)?null:"p-3 level-hover",`menu-level-${S(r)}`]]),value:S(r),"aria-label":"Submenu",onKeydown:Qi(a,["esc"]),onBlur:u[0]||(u[0]=y=>d(S(r),y,S(n))),onClick:u[1]||(u[1]=y=>i(S(r)))},[tt(ge(e.label)+" ",1),B("span",{class:Be(["dropdown-icon ml-3",o.value?S(n)?"active":"half-active":null])},[(D(),V("svg",Z6,[B("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.46967 4.80895C0.762563 5.08789 1.23744 5.08789 1.53033 4.80895L4 2.45688L6.46967 4.80895C6.76256 5.08789 7.23744 5.08789 7.53033 4.80895C7.82322 4.53 7.82322 4.07774 7.53033 3.79879L4.88388 1.27837C4.39573 0.81346 3.60427 0.81346 3.11612 1.27837L0.46967 3.79879C0.176777 4.07774 0.176777 4.53 0.46967 4.80895Z",fill:e.icons.style.color?e.icons.style.color:"#333"},null,8,X6)]))],2)],42,Y6),Se(ai,{name:"fade"},{default:Te(()=>[o.value?(D(),V("div",{key:0,class:Be(["j-submenu-dropdown-wrapper flex flex-col",S(n)?null:"multilevel"])},[(D(!0),V(qe,null,pt(e.childItems,y=>{var v;return D(),V(qe,null,[(v=y.childItems)!=null&&v.length?(D(),Ee(g,{label:y.navigationLabel,childItems:y.childItems,"parent-level":S(r),key:y.navigationLabel,icons:e.icons},null,8,["label","childItems","parent-level","icons"])):(D(),V(qe,{key:0},[y.itemTypeId===3?(D(),V("div",{class:"row-menu-item p-3",key:y.navigationLabel},ge(y.navigationLabel),1)):y.itemTypeId===1||y.itemLinkTypeId===2?(D(),Ee(p,{to:y.url?y.url:"not-set",key:y.navigationLabel,"aria-label":y.navigationLabel},{default:Te(()=>[B("li",Q6,ge(y.navigationLabel),1)]),_:2},1032,["to","aria-label"])):y.itemTypeId===2?(D(),V("a",{class:"cursor-pointer item p-3 row-menu-item",href:y.url,key:y.navigationLabel,target:"_blank","aria-label":y.navigationLabel},ge(y.navigationLabel),9,e3)):y.itemTypeId===4?(D(),V("div",{class:"p-3 row-menu-item",key:y.navigationLabel},ge(y.navigationLabel),1)):le("",!0)],64))],64)}),256))],2)):le("",!0)]),_:1})])])}}},r3=["href"],n3={__name:"JHeaderMenuItems",props:{menuItems:{type:Array,required:!0},style:{type:Object,default:{}},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-align-lines-left",size:18},style:{size:"18px",color:"black"}})}},emits:["closeSideBar"],setup(e,{emit:t}){const r=e,{style:n,menuItems:o}=it(r),i=p=>{p.target.style.color=n.value.colorOnHover},s=p=>{p.target.style.color=n.value.color},a=p=>{p.target.style.color=n.value.colorOnActive},d=p=>{p.target.style.color=n.value.color},f=t;function u(){f("closeSideBar")}return(p,g)=>{const y=On("RouterLink");return D(),V("ul",dr(p.$attrs,{style:S(n)}),[(D(!0),V(qe,null,pt(S(o),(v,k)=>{var C;return D(),V("li",{class:Be(["menu-item","parent-level-"+k]),key:"menu-item-"+v.id},[(C=v.childItems)!=null&&C.length?(D(),Ee(t3,{key:1,label:v.navigationLabel,childItems:v.childItems,firstLevel:"","parent-level":k,onClick:u,icons:e.icons},null,8,["label","childItems","parent-level","icons"])):(D(),V(qe,{key:0},[v.itemTypeId===1||v.itemLinkTypeId===2?(D(),Ee(y,{key:0,to:v.url?v.url:"not-set","aria-label":"HeaderInternalLink",onMouseenter:i,onMouseleave:s,onMousedown:a,onMouseup:d,onClick:u},{default:Te(()=>[tt(ge(v.navigationLabel),1)]),_:2},1032,["to"])):v.itemTypeId===2?(D(),V("a",{key:1,class:"cursor-pointer item",href:v.url,"aria-label":"HeaderExternalLink",target:"_blank",onMouseenter:i,onMouseleave:s,onMousedown:a,onMouseup:d,onClick:u},ge(v.navigationLabel),41,r3)):(D(),V("div",{key:2,onMouseenter:i,onMouseleave:s,onMousedown:a,onMouseup:d,onClick:u},ge(v.navigationLabel),33))],64))],2)}),128))],16)}}},ym=yt(n3,[["__scopeId","data-v-4e985e16"]]),o3=["width","height","src"],Eu={__name:"JHeaderMenu",props:{breakpoint:{type:String,required:!0},data:{type:Object,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onMenuOpen:{type:Function,default:()=>{},required:!1},onMenuClose:{type:Function,default:()=>{},required:!1},menuItems:{type:Array,default:[]},logo:{type:Object,default:null},isShown:{type:Boolean,default:!0},fixedWrapperClass:{type:String,default:"fixed"},logoStyle:{type:Object,required:!1,default:{width:150,height:0}},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-align-lines-left",size:18},style:{size:"18px",color:"black"}})},isNestedComponent:{type:Boolean,default:!1}},emits:["closeSideBar"],setup(e,{emit:t}){const r=e,n=t,{breakpoint:o,data:i,icons:s,onToggle:a,isOpen:d,isNestedComponent:f}=it(r),u=xe(()=>p.value?Dt(Cu):"div"),p=xe(()=>(o.value==="mobile"||i.value.props.layout==="burger")&&!f.value),g=xe(()=>({...i.value.style.fontStyle,gap:i.value.style.gap,alignItems:i.value.style.alignItems})),y=w=>{var _;w.target.style.color=s.value.style.colorOnHover,w.target.style.backgroundColor=(_=s.value.style)==null?void 0:_.backgroundColorOnHover},v=w=>{var _;w.target.style.color=s.value.style.color,w.target.style.backgroundColor=(_=s==null?void 0:s.value.style)==null?void 0:_.backgroundColor},k=w=>{var _;w.target.style.color=(_=s.value.style)==null?void 0:_.colorOnActive},C=w=>{var _;w.target.style.color=(_=s.value.style)==null?void 0:_.color},E=()=>{a.value(!1),n("closeSideBar")};return(w,_)=>(D(),Ee(Lt(u.value),{"is-open":S(d),"on-toggle":S(a),"on-open":e.onMenuOpen,"on-close":e.onMenuClose,"slide-direction":S(i).props.slideDirection,"fixed-wrapper-class":e.fixedWrapperClass,"is-shown":e.isShown,"wrapper-class":`w-[${S(i).style.menuWidth||100}%]`,style:se(S(i).style),class:"j-header-menu cursor-pointer","wrapper-style":S(i).style,icon:{size:18,color:g.value.color}},nh({button:Te(()=>[Se(S(ht),{"ikone-name":S(s).props.name,"ikone-style":S(s).style,onMouseenter:y,onMouseleave:v,onMousedown:k,onMouseup:C},null,8,["ikone-name","ikone-style"])]),default:Te(()=>[Se(ym,{class:Be(["flex",p.value||S(f)?"flex-col":"flex-row"]),"menu-items":e.menuItems,style:se(g.value),icons:S(s),onCloseSideBar:E},null,8,["menu-items","class","style","icons"])]),_:2},[e.logo?{name:"header",fn:Te(()=>[(D(),Ee(Lt(e.logo.customWrapper||"RouterLink"),{class:"w-full m-auto pointer",to:e.logo.url||"",href:e.logo.url||"",target:e.logo.customWrapper==="a"?"_blank":null},{default:Te(()=>{var T,F;return[e.logo.source?(D(),V("img",{key:0,width:((T=e.logo)==null?void 0:T.width)||e.logoStyle.width,height:((F=e.logo)==null?void 0:F.height)||e.logoStyle.height,src:e.logo.source,alt:"logo"},null,8,o3)):le("",!0)]}),_:1},8,["to","href","target"]))]),key:"0"}:void 0]),1064,["is-open","on-toggle","on-open","on-close","slide-direction","fixed-wrapper-class","is-shown","wrapper-class","style","wrapper-style","
111icon"]))}},i3={key:0},Tu={__name:"JHeaderDropdown",props:{isOpen:{type:Boolean,required:!0},style:{type:Object,default:{}},wrapperClass:{type:String,default:""},onToggle:{type:Function,required:!0},onOpen:{type:Function,default:()=>{},required:!1},onClose:{type:Function,default:()=>{},required:!1},style:{type:Object,default:{}}},setup(e){const t=e,r=ue(null);function n(){t.onOpen()||t.onToggle()}function o(){t.onClose()}const i=hn(r,s=>{i.isClickOutside(s,r)&&o()});return(s,a)=>(D(),V("div",{style:se(e.style),ref_key:"headerDropdownRef",ref:r},[B("div",{onClick:a[0]||(a[0]=d=>n())},[Ze(s.$slots,"button")]),Se(ai,{name:"fade"},{default:Te(()=>[e.isOpen?(D(),V("div",i3,[Ze(s.$slots,"default")])):le("",!0)]),_:3})],4))}},s3={class:"flex gap-1 items-center"},a3={key:1},l3={key:0,class:"j-language-dropdown-wrapper"},c3={__name:"JHeaderLanguage",props:{data:{type:Object,required:!0},notificationData:{type:Array,required:!1,default:null},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onOpen:{type:Function,default:()=>{},required:!1},onClose:{type:Function,default:()=>{},required:!1},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-align-lines-left",size:18},style:{size:"18px",color:"black"}})}},emits:["customEvent"],setup(e,{emit:t}){const r=e,{data:n,icons:o}=it(r),i=t;function s(p){i("customEvent",{type:"search-option-click",event:p})}const a=p=>{p.target.style.color=o.value.style.colorOnHover,p.target.style.backgroundColor=o.value.style.backgroundColorOnHover},d=p=>{var g;p.target.style.color=o.value.style.color,p.target.style.backgroundColor=(g=o.value.style)==null?void 0:g.backgroundColor},f=p=>{p.target.style.color=o.value.style.colorOnActive},u=p=>{p.target.style.color=o.value.style.color};return(p,g)=>(D(),Ee(Tu,{"is-open":e.isOpen,"on-toggle":e.onToggle,"on-open":e.onOpen,"on-close":e.onClose,class:"j-header-language relative",style:se(S(n).props.style),icon:S(n).icon.style},{button:Te(()=>[B("div",s3,[S(n).props.type==="text"||S(n).props.type==="icon-text"?(D(),V("div",{key:0,style:se(S(n).style.fontStyle)},ge(S(n).props.text),5)):le("",!0),S(n).props.type==="icon"||S(n).props.type==="icon-text"?(D(),V("div",a3,[Se(S(ht),{"ikone-name":S(o).props.name,"ikone-style":S(o).style,onMouseenter:a,onMouseleave:d,onMousedown:f,onMouseup:u},null,8,["ikone-name","ikone-style"])])):le("",!0)])]),default:Te(()=>[e.isOpen?(D(),V("div",l3,[B("li",{class:"j-language-item flex items-center text-xs font-normal cursor-pointer",onClick:s,value:"1"},g[0]||(g[0]=[B("span",null,null,-1),tt(" English ")])),B("li",{class:"j-language-item flex items-center text-xs font-normal cursor-pointer",onClick:s,value:"2"},g[1]||(g[1]=[B("span",null,null,-1),tt(" Shqip ")])),B("li",{class:"j-language-item flex items-center text-xs font-normal cursor-pointer",onClick:s,value:"3"},g[2]||(g[2]=[B("span",null,null,-1),tt(" Czech ")]))])):le("",!0)]),_:1},8,["is-open","on-toggle","on-open","on-close","style","icon"]))}},Fu=yt(c3,[["__scopeId","data-v-5f8b231d"]]);function u3(e){const t=new Date,r=new Date(e),n=new Intl.RelativeTimeFormat("cs",{localeMatcher:"best fit",numeric:"always",style:"long"}),o=t.getTime()-r.getTime();return o<60*1e3?n.format(-Math.floor(o/1e3),"second"):o<3600*1e3?n.format(-Math.floor(o/(60*1e3)),"minute"):o<1440*60*1e3?n.format(-Math.floor(o/(3600*1e3)),"hour"):o<10080*60*1e3?n.format(-Math.floor(o/(1440*60*1e3)),"day"):o<720*60*60*1e3?n.format(-Math.floor(o/(10080*60*1e3)),"week"):o<365*24*60*60*1e3?n.format(-Math.floor(o/(720*60*60*1e3)),"month"):n.format(-Math.floor(o/(365*24*60*60*1e3)),"year")}const f3={class:"flex gap-1 items-center"},d3={key:1},p3={class:"flex items-center cursor-pointer gap-3"},h3={class:"text-black"},g3={key:0,class:"notification-wrapper-title flex mb-1 justify-between"},m3={key:1,class:"w-[95%] mt-4 h-px bg-slate-700 mx-auto"},y3=["value"],v3={class:"w-[60px] h-[50px] mr-2 mt-1"},b3={class:"w-full flex flex-col gap-1"},_3={class:"notification-date flex justify-start text-sm font-medium breakword"},w3={class:"notification-text text-left font-normal breakword"},S3={class:"notification-date flex justify-start text-xs text-gray-600 leading-4"},k3={__name:"JHeaderNotifications",props:{data:{type:Object,required:!0},notificationData:{type:Array,required:!1,default:null},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onOpen:{type:Function,default:()=>{},required:!1},onClose:{type:Function,default:()=>{},required:!1},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-notification-alert",size:18},style:{size:"18px",color:"black"}})},loadCallback:{type:Function,required:!1,default:()=>{}},customWrapper:{type:String,required:!1,default:"RouterLink"},onNotificationReadCallback:{type:Function,required:!1,default:()=>{}},breakpoint:{type:String,required:!0},isReactive:{type:Boolean,default:!0}},emits:["openNav"],setup(e,{emit:t}){const r=e,{notificationData:n,loadCallback:o,onNotificationReadCallback:i,breakpoint:s,data:a,icons:d}=it(r),f=xe(()=>s.value==="mobile"),u=xe(()=>s.value==="mobile"?Dt(Cu):Dt(Tu)),p=xe(()=>{var C;return((C=n==null?void 0:n.value)==null?void 0:C.length)||""});kt(()=>{or(()=>{const C=document.querySelector("#load-more-notifications");o&&o.value&&C&&on(C,o.value)})});const g=C=>{var E;C.target.style.color=d.value.style.colorOnHover,C.target.style.backgroundColor=(E=d.value.style)==null?void 0:E.backgroundColorOnHover},y=C=>{var E;C.target.style.color=d.value.style.color,C.target.style.backgroundColor=(E=d.value.style)==null?void 0:E.backgroundColor},v=C=>{var E;
111C.target.style.color=(E=d.value.style)==null?void 0:E.colorOnActive},k=C=>{var E;C.target.style.color=(E=d.value.style)==null?void 0:E.color};return(C,E)=>(D(),Ee(Lt(u.value),{"is-open":e.isOpen,"on-toggle":e.onToggle,"on-open":e.onOpen,"on-close":e.onClose,"slide-direction":S(a).props.slideDirection,"wrapper-class":"w-full",class:"j-header-notifications relative cursor-pointer","header-class":"flex-row-reverse",style:se(S(a).style),icon:S(a).icon.style,"is-reactive":e.isReactive},{button:Te(()=>[B("div",f3,[S(a).props.type==="text"||S(a).props.type==="icon-text"?(D(),V("div",{key:0,style:se(S(a).style.fontStyle)},ge(S(a).props.text),5)):le("",!0),S(a).props.type==="icon"||S(a).props.type==="icon-text"?(D(),V("div",d3,[Se(S(ht),{"ikone-name":S(d).props.name,"ikone-style":S(d).style,onMouseenter:g,onMouseleave:y,onMousedown:v,onMouseup:k},null,8,["ikone-name","ikone-style"])])):le("",!0)])]),header:Te(()=>[B("a",{class:"pr-3 text-sm flex items-center text-[#455A82] cursor-pointer",onClick:E[0]||(E[0]=w=>S(i)(""))}," Označit vše jako zobrazené ")]),"header-close":Te(()=>[B("a",p3,[Se(S(ht),{"ikone-name":"vpapps-font-chevron-line-left"}),B("span",h3,"Notifikace "+ge(p.value),1)])]),default:Te(()=>{var w;return[wt(B("div",{class:Be(f.value?"":"notification-suggestion-wrapper scroll")},[f.value?le("",!0):(D(),V("div",g3,[E[2]||(E[2]=B("div",{class:"title-name font-semibold text-sm"},"Vaše notifikace",-1)),B("div",{class:"title-action font-normal text-xs pointer",onClick:E[1]||(E[1]=_=>S(i)(""))}," Označit vše jako zobrazené ")])),f.value?(D(),V("div",m3)):le("",!0),(w=S(n))!=null&&w.length?le("",!0):(D(),V("div",{key:2,class:Be([f.value?"mt-28":"my-4","flex flex-col w-full justify-center items-center"])},E[3]||(E[3]=[B("img",{src:"https://agmipoby.blob.gjirafa.tech/Group%201000002592.png",alt:"",class:"mb-4"},null,-1),B("p",{class:"text-sm pb-1 text-[#36435E] font-medium"}," Nemáte žádné notifikace ",-1),B("p",{class:"text-xs px-5 text-center text-[#6E7B95]"}," Upozorníme vás, jakmile se objeví něco nového. ",-1)]),2)),(D(!0),V(qe,null,pt(S(n),(_,T)=>(D(),V("li",{class:Be(["notification-list-item w-full leading-4",[f.value?"w-full":"mb-3",_.read?"":"notification-unread"]]),key:T,value:_.source},[B("div",{class:Be(["m-0 flex",f.value?"gap-4":""])},[(D(),Ee(Lt(e.customWrapper),{class:"flex flex-row",to:_.source,onClick:F=>S(i)(_.id)},{default:Te(()=>[B("div",{class:Be(["suggestion-img-holder relative pl-1",[_.read?null:"new",f.value?"pl-2 ":""]])},[B("div",v3,[Se(S(zt),{alt:"notification-img","image-src":_.img,class:Be(f.value?"w-full min-h-[60px] max-h-[60px] min-w-[70px] max-w-[70px]  mx-auto rounded-md":"w-full min-h-[50px] max-h-[50px] min-w-[60px] max-w-[60px]  mx-auto rounded-md")},null,8,["image-src","class"])])],2),B("div",{class:Be(f.value?"pl-4":"  px-2")},[B("div",b3,[B("p",_3,ge(_.name),1),B("h5",w3,ge(_.text),1),B("p",S3,ge(S(u3)(_.date)),1)])],2)]),_:2},1032,["to","onClick"]))],2)],10,y3))),128)),E[4]||(E[4]=B("div",{id:"load-more-notifications"},null,-1))],2),[[Mt,e.isOpen]])]}),_:1},40,["is-open","on-toggle","on-open","on-close","slide-direction","style","icon","is-reactive"]))}},Au=yt(k3,[["__scopeId","data-v-bcf70687"]]),x3={class:"flex gap-1 items-center"},C3={key:1},E3=["src"],T3={class:"py-2"},F3=["href"],A3=["src"],P3={class:"text-sm text-medium truncate"},I3={class:"py-2"},R3={__name:"JHeaderProfile",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}},breakpoint:{type:String,required:!0},data:{type:Object,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onOpen:{type:Function,default:()=>{},required:!1},onClose:{type:Function,default:()=>{},required:!1},userData:{type:[Object,null],required:!0,default:{accountName:null,name:null,surname:null,accountPicture:null,accountProfileUrl:"/"}},logOutText:{type:String,default:"Log out"},loginCallback:{type:Function,required:!1,default:null},logoutCallback:{type:Function,required:!1,default:null},userProfileText:{type:String,required:!1,default:"User Profile"},isReactive:{type:Boolean,default:!0},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-chevron-line-right",size:18},style:{size:"18px",color:"black"}})}},emits:["customEvent","openNav"],setup(e,{emit:t}){const r=e,{data:n,breakpoint:o,userData:i,isOpen:s,icons:a}=it(r),{loginCallback:d,logoutCallback:f,onOpen:u,onToggle:p}=r,g=xe(()=>o.value==="mobile"?Dt(Cu):Dt(Tu)),y=xe(()=>o.value==="mobile");function v(){if(!i.value.name&&d)return d(),!0}const k=()=>{f&&f()},C=T=>{var F;T.target.style.color=a.value.style.colorOnHover,T.target.style.backgroundColor=(F=a.value.style)==null?void 0:F.backgroundColorOnHover},E=T=>{var F;T.target.style.color=a.value.style.color,T.target.style.backgroundColor=(F=a.value.style)==null?void 0:F.backgroundColor},w=T=>{var F;T.target.style.color=(F=a.value.style)==null?void 0:F.colorOnActive},_=T=>{var F;T.target.style.color=(F=a.value.style)==null?void 0:F.color};return(T,F)=>(D(),Ee(Lt(g.value),{"is-open":S(s),"on-toggle":S(p),"on-open":v,"on-close":e.onClose,"slide-direction":S(n).props.slideDirection,"wrapper-class":"w-[90%]",class:"j-header-profile relative cursor-pointer",style:se(S(n).style),icon:S(n).icon.style,"is-reactive":e.isReactive},{button:Te(()=>{var I,P,H,$;return[B("div",x3,[S(n).props.type==="text"||S(n).props.type==="icon-text"?(D(),V("div",{key:0,style:se(S(n).style.fontStyle)},ge(S(n).props.text),5)):le("",!0),S(n).props.type==="icon"||S(n).props.type==="icon-text"?(D(),V("div",C3,[S(i).accountPicture?(D(),V("img",{key:0,src:S(i).accountPicture,style:se({minWidth:S(a).style.fontSize,width:S(a).style.fontSize,height:S(a).style.fontSize}),alt:"account-picture",class:"rounded-full"},null,12,E3)):le("",!0),S(i).name&&!S(i).accountPicture?(D(),V("span",{key:1,class:"flex items-center justify-center",style:se({backgroundColor:"#F1F1F3",minWidth:S(a).style.fontSize,width:S(a).style.fontSize,height:S(a).style.fontSize,borderRadius:"100%",fontSize:"10px",fontFamily:"Inter !important",lineHeight:"16px",color:"#868693",fontWeight:"600"})},ge((P=(I=S(i))==null?void 0:I.name)==null?void 0:P.slice(0,1).toUpperCase())+ge(($=(H=S(i))==null?void 0:H.surname)==null?void 0:$.slice(0,1).toUpperCase()),5)):le("",!0),!S(i).accountPicture&&!S(i).name?(D(),Ee(S(ht),{key:2,"ikone-name":S(a).props.name,"ikone-style":S(a).style,onMouseenter:C,onMouseleave:E,onMousedown:w,onMouseup:_},null,8,["ikone-name","ikone-style"])):le("",!0)])):le("",!0)])]}),header:Te(()=>[B("p",null,ge(e.userProfileText),1)]),default:Te(()=>{var I,P,H,$;return[B("div",{class:Be(["flex flex-col divide-y list-none text-black",y.value?"":"j-profile-dropdown-wrapper"])},[B("li",T3,[B("a",{class:"flex items-center gap-2 text-xs font-medium",href:S(i).accountProfileUrl,target:"_blank"},[S(i).accountPicture?(D(),V("img",{key:0,src:S(i).accountPicture,alt:"account-picture",class:"w-6 h-6 rounded-full"},null,8,A3)):le("",!0),S(i).name&&!S(i).accountPicture?(D(),V("span",{key:1,class:"flex items-center justify-center",style:se({backgroundColor:"#F1F1F3",minWidth:S(a).style.fontSize,width:S(a).style.fontSize,height:S(a).style.fontSize,borderRadius:"100%",fontSize:"10px",fontFamily:"Inter !important",lineHeight:"16px",color:"#868693",fontWeight:"600"})},ge((P=(I=S(i))==null?void 0:I.name)==null?void 0:P.slice(0,1).toUpperCase())+ge(($=(H=S(i))==null?void 0:H.surname)==null?void 0:$.slice(0,1).toUpperCase()),5)):le("",!0),!S(i).accountPicture&&!S(i).name?(D(),Ee(S(ht),{key:2,"ikone-name":S(a).props.name,"ikone-style":S(a).style},null,8,["ikone-name","ikone-style"])):le("",!0),B("h1",P3,ge(S(i).name)+" "+ge(S(i).surname),1)],8,F3)]),B("li",I3,[B("p",{class:"flex items-center gap-2 cursor-pointer text-xs font-medium",onClick:k},[F[0]||(F[0]=B("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"
111currentcolor",xmlns:"http://www.w3.org/2000/svg"},[B("path",{d:"M20.25 6C20.25 4.75736 19.2426 3.75 18 3.75H6C4.75736 3.75 3.75 4.75736 3.75 6V18C3.75 19.2426 4.75736 20.25 6 20.25H18C19.2426 20.25 20.25 19.2426 20.25 18V17C20.25 16.5858 20.5858 16.25 21 16.25C21.4142 16.25 21.75 16.5858 21.75 17V18C21.75 20.0711 20.0711 21.75 18 21.75H6C3.92893 21.75 2.25 20.0711 2.25 18V6C2.25 3.92893 3.92893 2.25 6 2.25H18C20.0711 2.25 21.75 3.92893 21.75 6V7C21.75 7.41421 21.4142 7.75 21 7.75C20.5858 7.75 20.25 7.41421 20.25 7V6Z",fill:"currentcolor"}),B("path",{d:"M14.4697 6.46967C14.1768 6.76256 14.1768 7.23744 14.4697 7.53033L18.1893 11.25H6.00001C5.5858 11.25 5.25001 11.5858 5.25001 12C5.25001 12.4142 5.5858 12.75 6.00001 12.75H18.1893L14.4697 16.4697C14.1768 16.7626 14.1768 17.2374 14.4697 17.5303C14.7626 17.8232 15.2374 17.8232 15.5303 17.5303L21.0607 12L15.5303 6.46967C15.2374 6.17678 14.7626 6.17678 14.4697 6.46967Z",fill:"currentcolor"})],-1)),tt(" "+ge(e.logOutText),1)])])],2)]}),_:1},40,["is-open","on-toggle","on-close","slide-direction","style","icon","is-reactive"]))}},Pu=yt(R3,[["__scopeId","data-v-304a222b"]]),O3=["value","autofocus","placeholder"],D3={class:"search-suggestion-wrapper scroll"},L3={key:0,class:"flex flex-col items-center justify-center p-5"},j3=["value"],M3={class:"flex m-0"},B3={class:"suggestion-img-holder"},N3={class:"basis-full px-2"},H3={class:"text-left text-xs font-semibold"},$3={class:"flex justify-start text-xs text-gray-600"},U3={key:0,class:"flex justify-center"},q3={__name:"JHeaderSearch",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}},data:{type:Object,required:!0},wrapperStyle:{type:Object,required:!1,default:()=>({})},searchData:{type:Array,default:[]},searchCallback:{type:Function,required:!1,default:()=>{}},searchEnterCallback:{type:Function,required:!1,default:()=>{}},customWrapper:{type:String,required:!1,default:"RouterLink"},settings:{type:Object,default:{}},breakpoint:{type:String,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onClose:{type:Function,default:()=>{},required:!1},isOpenByDefault:{type:Boolean,default:!1},clientSearchValue:{type:String,required:!1,default:""},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-location-map-compass",size:18},style:{size:"18px",color:"black"}})},noSearchDataText:{type:String,required:!1,default:"Žádné výsledky hledání"}},emits:["onCloseSearch","customEvent"],setup(e,{emit:t}){var r,n;const o=e,i=t,{searchData:s,searchCallback:a,searchEnterCallback:d,data:f,clientSearchValue:u,icons:p}=it(o),g=ue(u.value),y=ue(null),v=ue(null),k=ue(!0),C=ue(null);function E(pe){const ae=y.value;if(ae){k.value=!1;const me=ae.offsetWidth;ae.style.maxWidth=`${me}px`,ae.style.transition="max-width 0.2s ease-in-out",ae.offsetWidth,ae.style.maxWidth="100px",setTimeout(()=>{g.value=null,o.onClose(),ae.style.maxWidth="",ae.style.transition="",or(()=>{k.value=!0})},200)}}function w(){C.value?E():o.onClose()}const _=hn(y,pe=>{_.isClickOutside(pe,y)&&w()}),T=ue(!1),F=ue(null),I=()=>{F.value=!1,i("onCloseSearch")};function P(pe){var ae;g.value=(ae=pe.target)==null?void 0:ae.value,g.value.trim().length>0&&(F.value=!0,a&&a.value&&$(pe))}let H=null;function $(pe){clearTimeout(H),T.value=!0,H=setTimeout(async()=>{var ae;await a.value((ae=pe.target)==null?void 0:ae.value),T.value=!1},1e3)}const ee=()=>{var pe;const ae=(pe=g.value)==null?void 0:pe.trim();ae&&ae!==""&&(d&&d.value&&d.value(ae),I(),v.value&&v.value.blur())};((n=(r=f.value)==null?void 0:r.props)==null?void 0:n.searchBoxOpenStatus)==="default"&&o.onToggle();function j(pe){i("customEvent",{type:"search-option-click",event:pe})}const W=pe=>{var ae;pe.target.style.color=p.value.style.colorOnHover,pe.target.style.backgroundColor=(ae=p.value.style)==null?void 0:ae.backgroundColorOnHover},ie=pe=>{var ae;pe.target.style.color=p.value.style.color,pe.target.style.backgroundColor=(ae=p.value.style)==null?void 0:ae.backgroundColor},ce=pe=>{pe.preventDefault()};return(pe,ae)=>(D(),V("div",{class:Be(["j-search j-header-search flex relative",e.isOpen||e.isOpenByDefault?"flex-1":"no-animation"]),ref_key:"searchRef",ref:y,style:se(e.wrapperStyle)},[!e.isOpen&&k.value?(D(),V("div",{key:0,class:Be(["icon flex items-center cursor-pointer justify-end",e.isOpen||e.isOpenByDefault&&"absolute h-full left-2 top-2/4 -translate-y-2/4"]),onClick:ae[0]||(ae[0]=me=>
111e.onToggle())},[Se(S(ht),{"ikone-name":S(p).props.name,"ikone-style":S(p).style,onMouseenter:W,onMouseleave:ie},null,8,["ikone-name","ikone-style"])],2)):le("",!0),e.isOpen||e.isOpenByDefault?(D(),V("div",{key:1,class:"j-search-input",ref_key:"searchAnimationEl",ref:C},[B("form",{role:"search",onSubmit:ce,action:"/results",class:"h-full"},[B("input",{type:"search",ref_key:"inputSearch",ref:v,"aria-label":"Search",onInput:P,value:g.value,onKeydown:[Qi(I,["esc"]),Qi(ee,["enter"])],onBlur:I,autofocus:e.isOpen,placeholder:S(f).props.placeholder||"Search video or show",maxlength:"200",style:se({backgroundColor:S(f).style.backgroundColor,color:S(f).style.color,...S(f).style.placeholderColor?{"--placeholder-color":S(f).style.placeholderColor}:{}})},null,44,O3)],32),Se(ai,{name:"fade"},{default:Te(()=>[wt(B("div",D3,[T.value?(D(),V("div",L3,ae[2]||(ae[2]=[B("div",{class:"j-spinner"},null,-1)]))):(D(),V(qe,{key:1},[(D(!0),V(qe,null,pt(S(s),(me,ve)=>(D(),V("li",{class:"mb-3",onClick:j,key:ve,value:me.source},[B("div",M3,[(D(),Ee(Lt(e.customWrapper),{class:"flex",to:me.source},{default:Te(()=>[B("div",B3,[Se(S(zt),{"image-src":me.img,style:se(me.imageStyle),alt:"search-result-img"},null,8,["image-src","style"])]),B("div",N3,[B("div",null,[B("h5",H3,ge(me.text),1),B("p",$3,ge(me.date),1)])])]),_:2},1032,["to"]))])],8,j3))),128)),S(s).length<=0?(D(),V("div",U3,ge(e.noSearchDataText),1)):le("",!0)],64))],512),[[Mt,F.value]])]),_:1}),B("div",{class:"absolute top-1/2 right-5 z-10 transform -translate-y-1/2 cursor-pointer p-3 pr-1",onClick:ae[1]||(ae[1]=Zo(me=>w(),["stop"]))},[Se(S(ht),{"ikone-name":"vpapps-font-close-cancel"})])],512)):le("",!0)],6))}},Iu=yt(q3,[["__scopeId","data-v-a60cab3b"]]),V3={__name:"JHeaderLogo",props:{data:{type:Object,required:!0},customWrapper:{type:[String,Object],required:!1,default:"RouterLink"},style:{type:Object,required:!1},url:{type:String,default:""},imgSource:{type:String,default:null},imgStyle:{type:Object,required:!1,default:{width:150,height:0}}},setup(e){return(t,r)=>(D(),V("div",{class:"logo flex j-header-logo",style:se(e.style)},[(D(),Ee(Lt(e.customWrapper),{class:"w-full h-full m-auto pointer",to:e.url,href:e.url,target:e.customWrapper==="a"?"_blank":null},{default:Te(()=>[Ze(t.$slots,"image-src",{},void 0,!0)]),_:3},8,["to","href","target"]))],4))}},Ru=yt(V3,[["__scopeId","data-v-a65ab817"]]),vm={__name:"JSpacing",props:{isDivider:{type:Boolean,default:!1},style:{type:Object,default:{}},dividerStyle:{type:Object,default:{}}},setup(e){return(t,r)=>(D(),V("div",{class:Be(["j-header-spacing",!e.isDivider&&"grow"]),style:se(e.style)},[e.isDivider?(D(),V("div",{key:0,style:se(e.dividerStyle)},null,4)):le("",!0)],6))}},Ou={__name:"JHeaderSpacing",setup(e){return(t,r)=>(D(),Ee(vm,La(Va(t.$attrs)),null,16))}},W3={class:"container mx-auto flex items-center gap-2 flex-1"},bm={__name:"JHeader",props:{breakpoint:{type:String,required:!0},components:{type:Array,default:[{id:"menu-1689666471345673",type:"menu",props:{layout:"row",menuId:null,slideDirection:"right"},style:{alignment:"center",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},borderProperties:{show:!1,color:"transparent",radius:{top:0,right:0,bottom:0,left:0}},backgroundHoverColor:"",backgroundColor:"",spacing:4,fontProperties:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},gradient:{show:!1,type:"linear-gradient",direction:0,colors:[{color:"",position:0},{color:"",position:0}]}},icon:{props:{name:"Search"},style:{size:24,color:"",colorOnHover:"",colorOnActive:""}},entityId:null},{id:"spacing-1689666516322224",type:"spacing",props:{},style:{},icon:null,entityId:null},{id:"languages-1689666506997623",type:"languages",props:{type:"icon"},style:{color:"",backgroundColorOnHover:"",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},borderProperties:{show:!1,color:"transparent",radius:{top:0,right:0,bottom:0,left:0}},fontProperties:{size:14,weight:"500",family:"Inter",style:"Normal",color:""}},icon:{props:{name:"Languages"},style:{size:24,color:"",colorOnHover:"",colorOnActive:""}}},{id:"profile-1689668102963421",type:"profile",props:{type:"icon"},style:{color:"",backgroundColorOnHover:"",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},borderProperties:{show:!1,color:"transparent",radius:{top:0,right:0,bottom:0,left:0}},fontProperties:{size:14,weight:"500",family:"Inter",style:"Normal",color:""}},icon:{props:{name:"Profile"},style:{size:24,color:"",colorOnHover:"",colorOnActive:""}},entityId:null},{id:"search-1689666489564410",type:"search",props:{type:"icon",placeholder:"",noResultMessage:"",searchBoxOpenStatus:"click"},style:{color:"",backgroundColor:"",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},borderProperties:{show:!1,color:"transparent",radius:{top:0,right:0,bottom:0,left:0}},fontProperties:{size:14,weight:"500",family:"Inter",style:"Normal",color:""}},icon:{props:{name:"Search"},style:{size:24,color:"",colorOnHover:"",colorOnActive:""}},entityId:null},{id:"notifications-1689666487311260",type:"notifications",props:{type:"icon"},style:{color:"",backgroundColorOnHover:"",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},borderProperties:{show:!1,color:"transparent",radius:{top:0,right:0,bottom:0,left:0}},fontProperties:{size:14,weight:"500",family:"Inter",style:"Normal",color:""}},icon:{props:{name:"Notifications"},style:{size:24,color:"",colorOnHover:"",colorOnActive:""}},entityId:null}]}},setup(e,{expose:t}){const r=ue(!1),n=ue(!1),o=ue(!1),i=ue(!1),s=ue(!1),a=ue(!1);t({onSearchToggle:f,isSearchOpen:n}),Dt(Eu),Dt(Ru),Dt(Iu),Dt(Au),Dt(Pu),Dt(Fu),Dt(Ou),Dt(Lu),Dt(ym);function d(){r.value=!r.value}function f(){n.value=!n.value}function u(){o.value=!o.value}function p(){i.value=!i.value}function g(){s.value=!s.value}function y(){a.value=!a.value}function v(){r.value=!1}function k(){n.value=!1}function C(){o.value=!1}
111function E(){i.value=!1}function w(){s.value=!1}function _(){a.value=!1}function T(P){switch(P){case"menu":return r.value;case"search":return n.value;case"profile":return o.value;case"languages":return i.value;case"notifications":return s.value;case"sidebar":return a.value;default:return!1}}function F(P){switch(P){case"menu":return d;case"search":return f;case"profile":return u;case"languages":return p;case"notifications":return g;case"sidebar":return y;default:return()=>{}}}function I(P){switch(P){case"menu":return v;case"search":return k;case"profile":return C;case"languages":return E;case"notifications":return w;case"sidebar":return _;default:return()=>{}}}return(P,H)=>(D(),V("div",{class:Be(["flex items-center flex-1 header-wrapper p-3",[n.value&&"is-search-open",s.value&&"is-notification-open",o.value&&"is-profile-open",i.value&&"is-language-open",r.value&&"is-menu-open",e.breakpoint]])},[B("div",W3,[(D(!0),V(qe,null,pt(e.components,$=>Ze(P.$slots,$.type,{item:$,isOpen:T($.type),onToggle:F($.type),onClose:I($.type)})),256)),Ze(P.$slots,"drop-zone")])],2))}},z3={},K3={class:"j-header-sceleton w-full"};function J3(e,t){return D(),V("div",K3,t[0]||(t[0]=[B("div",{class:"card w-full is-loading"},[B("div",{class:"image"})],-1)]))}const _m=yt(z3,[["render",J3]]),G3=["src","alt"],Zs={__name:"JImage",props:{imageSrc:{type:String,required:!1,default:"https://ub1doy938d.gjirafa.net/media/zxgzzz/thumbnails/standart.jpg"},alt:{type:String,required:!0}},setup(e){return(t,r)=>(D(),V("img",dr({src:e.imageSrc,alt:e.alt?e.alt:"name-img",class:"w-full"},t.$attrs),null,16,G3))}},Y3={__name:"JImageSceleton",props:{imageSrc:{type:String,required:!1,default:"https://ub1doy938d.gjirafa.net/media/zxgzzz/thumbnails/standart.jpg"}},setup(e){return(t,r)=>(D(),V("div",dr({src:"",class:"jimage-sceleton w-full"},t.$attrs),null,16))}},Z3=yt(Y3,[["__scopeId","data-v-e0e4c3cd"]]),ht={__name:"JIcon",props:{ikoneName:{type:String,required:!0,default:"vpapps-font-home"},ikoneStyle:{type:Object,default:()=>({color:"#9f9f9f",fontSize:"18px !important",backgroundColor:"transparent",borderColor:"#ccc",cursor:"pointer"})}},setup(e){return(t,r)=>(D(),V("span",{class:Be(["j-icon relative",e.ikoneName]),style:se(e.ikoneStyle)},null,6))}},X3={__name:"JImageContainer",props:{imageSrc:{type:String,required:!1,default:"https://ub1doy938d.gjirafa.net/media/zxgzzz/thumbnails/standart.jpg"},alt:{type:String,required:!0},customWrapper:{type:String,required:!1,default:"div"},wrapperStyle:{type:Object,default:{}},captionStyle:{type:Object,default:{}},imageStyle:{type:Object,default:{}},hasCaption:{type:Boolean,default:!1},caption:{type:String,default:""},linkTo:{type:String,default:null},externalLinkTo:{type:String,default:null}},setup(e){return(t,r)=>(D(),Ee(Lt(e.customWrapper),{style:se(e.wrapperStyle),to:e.linkTo,target:e.externalLinkTo?"_blank":null,href:e.externalLinkTo},{default:Te(()=>[Se(S(zt),{class:"image","image-src":e.imageSrc,alt:e.alt,style:se(e.imageStyle)},null,8,["image-src","alt","style"]),e.hasCaption?(D(),V("div",{key:0,style:se(e.captionStyle)},[B("span",null,ge(e.caption),1)],4)):le("",!0)]),_:1},8,["style","to","target","href"]))}},rs=yt(X3,[["__scopeId","data-v-7cc27c46"]]),Q3={class:"j-label-text cursor-pointer"},eF={__name:"JLabel",props:{customWrapper:{type:String,required:!1,default:"div"},url:{type:String,required:!1,default:""},text:{type:String,default:""},style:{type:Object,default:{}},labelStyle:{type:Object,default:{}}},setup(e){jr(i=>({"63a4e1b4":n.value,"2a2f1348":o.value}));const t=e,{labelStyle:r}=it(t),n=xe(()=>{var i,s;return((i=r==null?void 0:r.value)==null?void 0:i.colorOnHover)||((s=r==null?void 0:r.value)==null?void 0:s.color)}),o=xe(()=>{var i,s;return((i=r==null?void 0:r.value)==null?void 0:i.colorOnActive)||((s=r==null?void 0:r.value)==null?void 0:s.color)});return(i,s)=>(D(),V("div",{style:se(e.style)},[(D(),Ee(Lt(e.customWrapper),{style:se(S(r)),to:e.customWrapper!=="a"&&e.url?e.url:"",href:e.customWrapper==="a"&&e.url?e.url:"",target:e.customWrapper==="a"?"_blank":null},{default:Te(()=>[B("span",Q3,ge(e.text),1)]),_:1},8,["style","to","href","target"]))],4))}},wm=yt(eF,[["__scopeId","data-v-978754f1"]]),tF={__name:"JList",props:{numberOfItems:{type:Number,default:0},orientation:{type:String,default:"horizontal"},hasLimit:{type:Boolean,default:!1},limit:{type:Number,default:0},style:{type:Object,default:{}},buttonStyle:{type:Object,default:{}}},setup(e){const t=e,r={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},n=ue(t.limit),o=xe(()=>{let d="flex flex-wrap";return t.hasLimit&&t.orientation==="horizontal"?`grid ${r[t.limit]}`:(t.orientation==="vertical"&&(d+=" flex-col"),d)}),i=xe(()=>t.hasLimit&&n.value<t.numberOfItems),s=xe(()=>t.hasLimit?n.value:t.numberOfItems),a=()=>{const d=n.value+4;n.value=Math.min(d,t.numberOfItems)};return(d,f)=>(D(),V("div",{class:"flex flex-col",style:se(e.style)}
111,[B("div",{class:Be(o.value),style:se({gap:e.style.gap})},[(D(!0),V(qe,null,pt(s.value,u=>(D(),V("div",{key:u},[Ze(d.$slots,"item",{index:u})]))),128))],6),i.value?(D(),Ee(S(jn),{key:0,type:"text",text:"Show More","custom-wrapper":"div",version:"2",style:se(e.buttonStyle),onClick:a},null,8,["style"])):le("",!0)],4))}},ms={__name:"JNavigatorWrapper",props:{data:{type:Object,required:!1,default:null}},setup(e){const t=e,{data:r}=it(t),n={EXTERNAL_NEW_PAGE:1,INTERNAL:2,EXTERNAL:3},o={};return!r.value||!r.value.active?o.wrapperName="div":r.value.linkType===n.INTERNAL?(o.wrapperName="RouterLink",o.url=r.value.url):r.value.linkType===n.EXTERNAL?(o.wrapperName="a",o.url=r.value.url):r.value.linkType===n.EXTERNAL_NEW_PAGE?(o.wrapperName="a",o.target="_blank",o.url=r.value.url):o.wrapperName="div",(i,s)=>(D(),Ee(Lt(o.wrapperName),{to:o.url,href:o.url,target:o.target},{default:Te(()=>[Ze(i.$slots,"default")]),_:3},8,["to","href","target"]))}};function rF(e,t,r){let n=!1,o=0,i=0;function s(f){n=!0,o=f.clientX,f.preventDefault()}function a(f){n&&(i=f.clientX-o)}function d(){n=!1,i>0?t():i<0&&r(),i=0}e.addEventListener("mousedown",s),e.addEventListener("mousemove",a),e.addEventListener("mouseup",d)}const nF={key:0,class:"carousel-navigator-holder left flex h-100 items-center absolute left-0 bottom-0 top-0"},oF={key:1,class:"carousel-navigator-holder right flex h-100 items-center absolute right-0 bottom-0 top-0"},Du={__name:"ScrollCarousel",props:{generalStyle:{type:Object,required:!1,default:{titleStyle:{},wrapperStyle:{backgroundColor:"transparent"},itemStyle:{backgroundColor:"white",color:"black"},hoverColors:{backgroundColor:"blue",color:"red",active:"#FFAB00"}}},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-arrow-right",size:18},style:{size:"18px",color:"black"}})},inline:{type:Boolean,required:!1,default:!0},allowButtonScroll:{type:Boolean,required:!1,default:!0},iconName:{type:String,default:"vpapps-font-chevron-line-left"}},setup(e){const t=e,r=ue(null),n=ue(!1),o=ue(!0),i=ue(!1);ue(null),ue("#330000");const s=()=>{y()},a=()=>{g()},d=()=>{Ac(r.value).horizontal&&(n.value=!0)};kt(()=>{rF(r.value,s,a),t.allowButtonScroll&&on(r.value,d,null,!0)});function f(w,_,T){const F=w.scrollLeft,I=performance.now();function P($){const ee=($||performance.now())-I,j=Math.floor(H(ee,F,_,T));w.scrollLeft=j,ee<T&&requestAnimationFrame(P)}function H($,ee,j,W){return $/=W/2,$<1?j/2*$*$+ee:($--,-j/2*($*($-2)-1)+ee)}requestAnimationFrame(P)}function u(w){return w.scrollLeft+2*w.clientWidth>=w.scrollWidth}function p(w){return w.scrollLeft<=w.clientWidth}const g=()=>{i.value=!0;const w=r.value.clientWidth;f(r.value,w,600),u(r.value)?o.value=!1:o.value=!0},y=()=>{o.value=!0;const w=r.value.clientWidth;f(r.value,-w,600),p(r.value)?i.value=!1:i.value=!0},v=w=>{const _=r.value;_.scrollLeft+3>=_.scrollWidth-_.offsetWidth?(i.value=!0,o.value=!1):_.scrollLeft===0?(i.value=!1,o.value=!0):(i.value=!0,o.value=!0)},k=()=>sm(v,200),C=w=>{var _,T;w.target.style.backgroundColor=(_=t.icons.style)==null?void 0:_.backgroundColorOnHover,w.target.style.color=(T=t.icons.style)==null?void 0:T.colorOnHover},E=w=>{var _,T;w.target.style.backgroundColor=(_=t.icons.style)==null?void 0:_.backgroundColor,w.target.style.color=(T=t.icons.style)==null?void 0:T.color};return(w,_)=>(D(),V("div",{class:"j-scroll-carousel-menu relative",style:se(e.generalStyle.wrapperStyle)},[B("div",{class:Be(["flex items-center j-scroll-carousel-menu-wrapper overflow-y-hidden",[e.inline?"overflow-x-auto":"flex-wrap"]]),ref_key:"menuHolderEl",ref:r,style:{justifyContent:"inherit",gap:"inherit",alignItems:"inherit"},onScroll:k},[n.value&&i.value&&e.allowButtonScroll?(D(),V("div",nF,[Se(S(ht),{"ikone-name":e.iconName,"ikone-style":e.icons.style,class:"z-10 flex items-center justify-center drop-shadow-lg cursor-pointer",onClick:y,onMouseenter:C,onMouseleave:E},null,8,["ikone-name","ikone-style"])])):le("",!0),Ze(w.$slots,"default"),n.value&&o.value&&e.allowButtonScroll?(D(),V("div",oF,[Se(S(ht),{"ikone-name":e.iconName,"ikone-style":e.icons.style,class:"z-10 flex items-center justify-center drop-shadow-lg cursor-pointer rotate-180",onClick:g,onMouseenter:C,onMouseleave:E}
111,null,8,["ikone-name","ikone-style"])])):le("",!0)],34)],4))}},iF={class:"j-page-menu"},sF={__name:"JPageMenu",props:{menuItems:{type:Array,required:!1,default:[]},blurColor:{type:[String,Number,null],required:!1,default:null},generalStyle:{type:Object,required:!1,default:{titleStyle:{},wrapperStyle:{backgroundColor:"green"},itemStyle:{backgroundColor:"white",color:"black"},iconSettings:{size:"42px",color:"black"},hoverColors:{backgroundColor:"blue",color:"red",active:"#FFAB00"}}},inline:{type:Boolean,required:!1,default:!0},allowButtonScroll:{type:Boolean,required:!1,default:!0},customWrapper:{type:[String,Object],required:!1,default:"RouterLink"}},setup(e){jr(f=>({c936dbfc:S(d)}));const t=e,{blurColor:r}=it(t),n=f=>{var u,p,g,y;f.target.style.backgroundColor=(p=(u=t.generalStyle)==null?void 0:u.hoverColors)==null?void 0:p.backgroundColor,f.target.style.color=(y=(g=t.generalStyle)==null?void 0:g.hoverColors)==null?void 0:y.color},o=f=>{var u,p,g,y;f.target.style.backgroundColor=(p=(u=t.generalStyle)==null?void 0:u.itemStyle)==null?void 0:p.backgroundColor,f.target.style.color=(y=(g=t.generalStyle)==null?void 0:g.itemStyle)==null?void 0:y.color},i=f=>{var u,p;f.target.style.backgroundColor=(p=(u=t.generalStyle)==null?void 0:u.hoverColors)==null?void 0:p.active},s=f=>{var u,p,g,y;f.target.style.backgroundColor=(p=(u=t.generalStyle)==null?void 0:u.itemStyle)==null?void 0:p.backgroundColor,f.target.style.color=(y=(g=t.generalStyle)==null?void 0:g.itemStyle)==null?void 0:y.color},a=f=>f.isExternal?"a":f.url?t.customWrapper:"div";let d="";return r.value?d=`${r.value} 10%,
112  ${r.value.replace(")","-c)")} 70%,
113  rgba(255, 255, 255, 0) 100%`:d="transparent, transparent",(f,u)=>{var p;return D(),V("div",iF,[Se(Du,{"general-style":e.generalStyle,icons:(p=e.generalStyle)==null?void 0:p.iconSettings,inline:e.inline},{default:Te(()=>[(D(!0),V(qe,null,pt(e.menuItems,g=>{var y,v;return D(),Ee(Lt(a(g)),{key:g.id,href:g.isExternal||(y=g.url)!=null&&y.startsWith("#")?g.url:void 0,to:!g.isExternal&&g.url&&!((v=g.url)!=null&&v.startsWith("#"))?{path:g.url}:void 0,onMouseenter:n,onMouseleave:o,onMousedown:i,onMouseup:s,target:g.isExternal?"_blank":void 0,class:"j-scroll-carousel-item flex hover:bg-[#7483A1] hover:text-white mr-3 my-2 transition-colors whitespace-nowrap cursor-pointer",style:se(e.generalStyle.itemStyle)},{default:Te(()=>[tt(ge(g.displayName),1)]),_:2},1064,["href","to","target","style"])}),128))]),_:1},8,["general-style","icons","inline"])])}}},tl={__name:"JProfileLetter",props:{name:{type:String,required:!0},profileStyle:{type:Object,required:!1,default:{backgroundColor:"#ECF2F4",color:"#11254A",borderRadius:"100%"}}},setup(e){const t=e;function r(){return t.name.split(" ").filter(Boolean).slice(0,2).map(n=>n[0].toUpperCase()).join("")}return(n,o)=>(D(),V("div",{class:"flex justify-center items-center min-w-full min-h-full",style:se(e.profileStyle)},ge(r()),5))}},aF={class:"flex flex-col gap-1"},lF={class:"flex"},cF=["innerHTML"],uF={__name:"JRelatedGroup",props:{title:{type:String,default:""},description:{type:String,default:""},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},showImage:{type:Boolean,default:!0},style:{type:Object,default:{gap:"20px"}},titleStyle:{type:Object,default:{}},descriptionStyle:{type:Object,default:{}},imageStyle:{type:Object,default:{}},imageSrc:{type:String,default:""},engagements:{type:Array,default:[]},isRedirect:{type:Boolean,default:!0},isImageRedirect:{type:Boolean,default:!0},isImageRounded:{type:Boolean,default:!0},url:{type:String,required:!1,default:""}},setup(e){const t=e,{showTitle:r,title:n,showDescription:o,description:i,showImage:s,style:a,titleStyle:d,descriptionStyle:f,imageSrc:u,engagements:p,isRedirect:g,url:y}=it(t),v=w=>{const{backgroundColor:_,backgroundColorOnHover:T,borderColor:F,borderColorOnHover:I}=a.value;w.target.style.backgroundColor=T||_,w.target.style.borderColor=I||F},k=w=>{const{backgroundColor:_,borderColor:T}=a.value;w.target.style.backgroundColor=_,w.target.style.borderColor=T},C=w=>{const{colorOnHover:_}=d.value;w.target.style.color=_},E=w=>{const{color:_}=d.value;w.target.style.color=_};return(w,_)=>(D(),V("div",null,[B("div",{class:"flex",style:se(S(a)),onMouseenter:v,onMouseleave:k},[S(s)?(D(),Ee(Lt(e.isImageRedirect&&S(y)?"RouterLink":"div"),{key:0,class:Be(["w-12 h-12 bg-[#ECF2F4] aspect-square",e.isImageRounded&&"rounded-full"]),to:S(y),style:se(e.imageStyle)},{default:Te(()=>[S(u)?(D(),Ee(zt,{key:0,"image-src":S(u),alt:"group-img",class:"rounded-full w-full h-full object-cover"},null,8,["image-src"])):le("",!0)]),_:1},8,["class","to","style"])):le("",!0),B("div",{class:"grow flex flex-col justify-center",style:se({gap:S(a).gap})},[S(r)?(D(),V("div",{key:0,class:"flex flex-wrap justify-between",onMouseenter:C,onMouseleave:E,style:se(S(d))},[B("div",aF,[(D(),Ee(Lt(S(g)&&S(y)?"RouterLink":"span"),{to:S(y),style:se({fontWeight:S(d).fontWeight}),class:"font-main"},{default:Te(()=>[tt(ge(S(n)),1)]),_:1},8,["to","style"]))]),B("div",null,[Ze(w.$slots,"engagements",{},()=>[B("div",lF,[(D(!0),V(qe,null,pt(S(p),T=>(D(),Ee(S(jn),{key:T.id,data:T,type:T.props.type,"custom-wrapper":T.props.linkType===1?"a":"RouterLink","link-type":T.props.linkType,style:se(T.style),icon:T.icon,text:T.props.text,url:T.props.url},null,8,["data","type","custom-wrapper","link-type","style","icon","text","url"]))),128))])])])],36)):le("",!0),S(o)&&S(i)?Ze(w.$slots,"description",{key:1},()=>[B("div",{style:se(S(f)),innerHTML:S(i)},null,12,cF)]):le("",!0)],4)],36)]))}},Sm={__name:"JRow",props:{alignment:{type:Object,default:{horizontal:null,vertical:null}},xAlignment:{type:[String,null],default:null},yAlignment:{type:[String,null],default:null},isContainer:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,r={left:"justify-start",right:"justify-end",center:"justify-center"},n={top:"items-start",bottom:"items-end",center:"items-center"},o=xe(()=>{const{xAlignment:i,yAlignment:s}=t;return`${i?r[i]:""}${s?" "+n[s]:""}`});return(i,s)=>(D(),V("div",{class:Be(["j-row w-full relative flex flex-wrap",[o.value,e.isContainer?"container px-3 mx-auto":null]])},[Ze(i.$slots,"default")],2))}},fF={class:"j-show-case"},dF={__name:"JShowCase",props:{banner:{type:Object,requied:!0},grid:{type:Object,required:!0},layoutType:{type:Number,requied:!1,default:1},title:{type:String,requied:!1,default:null},titleStyle:{type:Object,requied:!1,default:null},navigationData:{type:Object,required:!1,default:null},newItemText:{type:String,default:"New"},buttonCustomWrapper:{type:[String,Object],required:!1,default:"div"}},setup(e){const t=e,{titleStyle:r}=it(t),n=xe(()=>{if(t.layoutType===1)return"ascend";if(t.layoutType===2)return"descend";if(t.layoutType===3)return"rightward";if(t.layoutType===4)return"leftward"}),o=s=>{s.target.style.color=r.value.colorOnHover||r.value.color},i=s=>{s.target.style.color=r.value.color};return(s,a)=>(D(),V("div",fF,[Se(S(ms),{data:e.navigationData,class:"flex"},{default:Te(()=>[B("h1",{style:se(S(r)),onMouseenter:o,onMouseleave:i},ge(e.title),37)]),_:1},8,["data"]),B("div",{class:Be(["j-show-case-holder",n.value])},[Ze(s.$slots,"banner",{banner:e.banner},()=>[Se(S(nm),{data:e.banner.data,"has-overlay":e.banner.hasOverlay,"title-style":e.banner.titleStyle,customWrapper:e.banner.customWrapper,"
113wrapper-style":e.banner.wrapperStyle,"content-classes":e.banner.contentClasses,contentStyle:e.banner.contentStyle,"description-style":e.banner.descriptionStyle,autoplay:e.banner.autoplay,buttons:e.banner.buttons,canControlAudio:e.banner.canControlAudio,buttonCustomWrapper:e.buttonCustomWrapper},null,8,["data","has-overlay","title-style","customWrapper","wrapper-style","content-classes","contentStyle","description-style","autoplay","buttons","canControlAudio","buttonCustomWrapper"])]),Ze(s.$slots,"grid",{grid:e.grid},()=>[Se(S(ns),{data:e.grid.data,"widget-identifier":-1,"wrapper-style":{...e.grid.wrapperStyle},"number-of-columns":e.grid.numberOfColumns,"content-wrapper-style":e.grid.contentWrapperStyle,"card-style":e.grid.cardStyle,"new-item-text":e.newItemText},{"card-image":Te(({image:d,style:f,filmstrip:u,alt:p})=>[Se(S(zt),{imageSrc:d,alt:"Video Card Placeholder",class:"w-full",style:se(f),"no-lazy-image":""},null,8,["imageSrc","style","alt"]),e.grid.cardStyle.isFilmstrip?(D(),Ee(S(gm),{key:0,src:u,"switch-time":.5,style:se({...f,backgroundColor:"unset"})},null,8,["src","style"])):le("",!0)]),_:1},8,["data","wrapper-style","number-of-columns","content-wrapper-style","card-style","new-item-text"])])],2)]))}},pF={ref:"sidebar"},hF={__name:"JSidebar",props:{icon:{type:Object,default:{color:"",size:"18",name:""}},style:{type:Object,default:{}},wrapperStyle:{type:Object,default:{}},wrapperClass:{type:String,default:"w-[80%]"},fixedWrapperClass:{type:String,default:"fixed"},headerClass:{type:String,default:""},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onOpen:{type:Function,default:()=>{},required:!1},onClose:{type:Function,default:()=>{},required:!1},slideDirection:{type:String,default:"right"},isShown:{type:Boolean,default:!0},counter:{type:Number,default:0},mainIconName:{type:String,default:"vpapps-font-menu-three-lines"},mainIconStyle:{type:Object,default:{}},closeIconName:{type:String,default:"vpapps-font-close-cancel"},closeIconStyle:{type:Object,default:{}},overlayStyle:{type:Object,default:{}},teleportDisabled:{type:Boolean,default:!0}},setup(e){const t=e,r=ue(0),n=ue(null),o=ue(),i=xe(()=>{const g=t.slideDirection==="right"?"left-0":"right-0";let y;return r.value?y=t.isOpen?`nav-open-${t.slideDirection}`:`nav-close-${t.slideDirection}`:y=`nav-hidden-${t.slideDirection}`,`${t.fixedWrapperClass} ${g} ${y}`});kt(()=>{n.value&&(o.value=hn(n,d))});function s(){r.value++,t.onOpen()||t.onToggle()}function a(){t.onClose()}const d=g=>{o.value.isClickOutside(g,n)&&a()},f=(g,y)=>{g.target.querySelector(".j-icon")&&(g.target.querySelector(".j-icon").style.color=y==null?void 0:y.colorOnHover,g.target.querySelector(".j-icon").style.backgroundColor=y==null?void 0:y.backgroundColorOnHover)},u=(g,y)=>{g.target.querySelector(".j-icon")&&(g.target.querySelector(".j-icon").style.color=y.colorOnActive,g.target.querySelector(".j-icon").style.backgroundColor=y.backgroundColorOnActive)},p=(g,y)=>{g.target.querySelector(".j-icon")&&(g.target.querySelector(".j-icon").style.color=y==null?void 0:y.color,g.target.querySelector(".j-icon").style.backgroundColor=y==null?void 0:y.backgroundColor)};return(g,y)=>(D(),V("div",pF,[B("div",{class:"cursor-pointer",onClick:y[0]||(y[0]=v=>s()),onMouseenter:y[1]||(y[1]=v=>f(v,e.mainIconStyle)),onMouseleave:y[2]||(y[2]=v=>p(v,e.mainIconStyle)),onMousedown:y[3]||(y[3]=v=>u(v,e.mainIconStyle)),onMouseup:y[4]||(y[4]=v=>p(v,e.mainIconStyle))},[Ze(g.$slots,"button",{},()=>[Se(S(ht),{"ikone-name":e.mainIconName,"ikone-style":e.mainIconStyle},null,8,["ikone-name","ikone-style"])],!0)],32),(D(),Ee(cs,{disabled:e.teleportDisabled||!e.isOpen,to:"body"},[e.isOpen?(D(),V("div",{key:0,class:Be(["sidebar-wrapper-bg h-screen w-screen top-0 overflow-y-auto fixed z-111",[e.fixedWrapperClass,e.slideDirection==="right"?"left-0":"right-0"]]),style:se(e.overlayStyle),onClick:y[5]||(y[5]=v=>a())},null,6)):le("",!0),B("div",{class:Be(["sidebar-wrapper h-screen top-0 overflow-y-auto scroll flex flex-col",i.value]),style:se(e.style)},[B("div",{class:Be(["w-full justify-between items-center flex",e.headerClass]),style:se({gap:e.style.gap})},[B("div",null,[Ze(g.$slots,"header",{},void 0,!0)]),B("div",{class:"cursor-pointer",onClick:y[6]||(y[6]=v=>a()),onMouseenter:y[7]||(y[7]=v=>f(v,e.closeIconStyle)),onMouseleave:y[8]||(y[8]=v=>p(v,e.closeIconStyle)),onMousedown:y[9]||(y[9]=v=>u(v,e.closeIconStyle)),onMouseup:y[10]||(y[10]=v=>p(v,e.closeIconStyle))},[Ze(g.$slots,"header-close",{},()=>[Se(S(ht),{"ikone-name":e.closeIconName,"ikone-style":e.closeIconStyle},null,8,["ikone-name","ikone-style"])],!0)],32)],6),Ze(g.$slots,"default",{},void 0,!0)],6)],8,["disabled"]))],512))}},Lu=yt(hF,[["__scopeId","data-v-fe063b20"]]),gF={key:0,class:"slider-tracker slider-tracker container mx-auto absolute left-0 right-0"},mF={class:"slider-indicators"},yF=["onClick"],km={__name:"JSlider",props:{slides:{type:Array,required:!0},autoSlide:{type:Boolean,required:!1,default:!1},scrollInterval:{type:[Number,String],required:!1,default:!1},activeSlide:{type:Number,required:!1,default:0},animationTime:{type:String,required:!1,default:".6s"},showArrows:{type:Boolean,required:!1,default:!0},showDots:{type:Boolean,required:!1,default:!0},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-arrow-right",size:18},style:{size:"18px",color:"black"}})}},emits:["customClickEvent"],setup(e,{emit:t}){jr(j=>({"08489e7e":f.value}));const r=e,{slides:n,autoSlide:o,scrollInterval:i,showIndicators:s,icons:a}=it(r),d=ue(r.activeSlide),f=ue(r.animationTime),u=ue(C(n.value,d.value)),p=ue(null),g=ue(!1),y=ue(""),v=ue(!1),k=ue(null);function C(j,W){return(W%j.length+j.length)%j.length}const E=xe(()=>n.value.map((j,W)=>(W===u.value?j.active=!0:j.active=!1,j)));function w(j,W=-1){g.value||(g.value=!0,y.value=j,W===-1?d.value+=j==="slide-left"?1:-1:d.value=W,u.value=C(n.value,d.value),j==="slide-right"?u.value+1===n.value.length?p.value="flex-row-reverse":p.value="justify-end":j==="slide-left"&&(u.value===0?p.value="flex-row-reverse justify-end":p.value=""))}const _=()=>w("slide-right"),T=()=>w("slide-left");function F(){g.value=!1}kt(()=>{o.value&&(k.value=setInterval(()=>{v.value||T()},i.value*1e3))}),fr(()=>{clearInterval(k.value)});function I(j){j!==u.value&&(u.value<j?w("slide-left",j):w("slide-right",j))}const P=()=>{o.value&&(v.value=!0,clearInterval(k.value),k.value=null)},H=()=>{o.value&&(v.value=!1,!k.value&&(k.value=setInterval(()=>{v.value||T()},i.value*1e3)))},$=j=>{var W;j.target.style.backgroundColor=(W=a.value.style)==null?void 0:W.backgroundColorOnHover,j.target.style.color=a.value.style.colorOnHover},ee=j=>{var W,ie;j.target.style.backgroundColor=(W=a.value.style)==null?void 0:W.backgroundColor,j.target.style.color=(ie=a.value.style)==null?void 0:ie.color};return(j,W)=>(D(),V("div",{class:"j-slider",onMouseover:P,onMouseleave:H},[Se(tg,{name:"slide",onAfterEnter:F,tag:"div",class:Be(["j-slider-wrapper",[y.value,p.value]])},{default:Te(()=>[(D(!0),V(qe,null,pt(E.value,(ie,ce)=>wt((D(),V("div",{key:ce,class:"slide-page"},[Ze(j.$slots,"slide",{slide:ie,index:ce})])),[[Mt,ie.active]])),128))]),_:3},8,["class"]),e.showDots?(D(),V("div",gF,[B("ol",mF,[(D(!0),V(qe,null,pt(S(n),(ie,ce)=>(D(),V("li",{class:Be(["slide-indicator",u.value===ce?"active":null]),onClick:pe=>I(ce),key:ce},null,10,yF))),128))])])):le("",!0),e.showArrows?(D(),V("button",{key:1,class:"button-slide button-slide-left","aria-label":"Previous Slide",onClick:_},[Se(S(ht),{"ikone-name":"vpapps-font-chevron-line-left","ikone-style":S(a).style,onMouseover:$,onMouseleave:ee}
113,null,8,["ikone-style"])])):le("",!0),e.showArrows?(D(),V("button",{key:2,class:"button-slide button-slide-right",onClick:T,"aria-label":"Next Slide"},[Se(S(ht),{"ikone-name":"vpapps-font-chevron-line-right","ikone-style":S(a).style,onMouseover:$,onMouseleave:ee},null,8,["ikone-style"])])):le("",!0)],32))}},vF={class:"flex items-center gap-3 social-items relative z-10"},bF={key:0,class:"social-item h-full"},_F=["onClick"],wF={__name:"JSocialMedia",props:{data:{type:Object,default:{items:{type:Array,default:[],required:!0}}},customWrapper:{type:String,default:"a"}},setup(e){const t=e,r=(n,o)=>{t.customWrapper!=="div"&&(window.open(o,"_blank"),n.preventDefault())};return(n,o)=>(D(),V("ul",vF,[(D(!0),V(qe,null,pt(e.data.items,(i,s)=>(D(),V(qe,{key:`social-item-${s}`},[i&&i.url?(D(),V("li",bF,[B("div",{onClick:a=>r(a,i.url),class:"z-10 cursor-pointer w-8 h-8"},[Se(zt,{imageSrc:i.icon,alt:`${i.name} Logo`,class:"w-full h-auto aspect-square"},null,8,["imageSrc","alt"])],8,_F)])):le("",!0)],64))),128))]))}},ju=yt(wF,[["__scopeId","data-v-14c16df9"]]),SF=["aria-label","onClick","onMouseover"],kF={class:"flex-1"},xF={__name:"JTab",props:{tabs:{type:Array,required:!0},activeTab:{type:Number,required:!1,default:0},wrapperClasses:{type:String,default:"justify-start"},wrapperStyle:{type:Object,default:{}},tabItemStyle:{type:Object,default:{}},onTabClickCallback:{type:Function,required:!1,default:null},isVertical:{type:Boolean,default:!1},isCarousel:{type:Boolean,default:!1},layoutType:{type:Number,default:1},changeOnHover:{type:Boolean,required:!1,default:!1},iconsStyle:{type:Object,default:{}}},setup(e){jr(I=>({"8d08990e":d.value,c728adf2:f.value}));const t=e,{onTabClickCallback:r}=t,{isVertical:n,isCarousel:o,changeOnHover:i,tabItemStyle:s}=it(t),a=ue(t.activeTab),d=ue(s.value.backgroundColorOnActive),f=ue(s.value.colorOnActive),u=xe(()=>n.value||!o.value?"div":Dt(Du)),p=xe(()=>{var I,P;return((P=(I=t.iconsStyle)==null?void 0:I.props)==null?void 0:P.name)||"vpapps-font-chevron-line-left"}),g=(I,P,H,$)=>{$&&$.active&&(console.log(I,P,H,$),$.linkType===1||$.linkType===2||console.log("linkType not supported",$.linkType)),r&&r({tabIndex:P,tabName:H}),a.value=P},y=(I,P,H,$)=>{i.value&&g(P,H,$)},v=I=>{switch(I){case"ContentSlider":return Dt(xm);case"ContentGrid":return Dt(ns);case"ContentSingle":return Dt(Cm);case"ContentCarousel":return Dt(Em);default:return Dt(ns)}},k=I=>{s.value.backgroundColorOnHover&&(I.target.style.backgroundColor=s.value.backgroundColorOnHover),s.value.colorOnHover&&(I.target.style.color=s.value.colorOnHover),s.value.borderColorOnHover&&(I.target.style.borderColor=s.value.borderColorOnHover)},C=I=>{s.value.backgroundColor&&(I.target.style.backgroundColor=s.value.backgroundColor),s.value.color&&(I.target.style.color=s.value.color),s.value.borderColor&&(I.target.style.borderColor=s.value.borderColor)},E=I=>{s.value.backgroundColorOnActive&&(I.target.style.backgroundColor=s.value.backgroundColorOnActive),s.value.colorOnActive&&(I.target.style.color=s.value.colorOnActive)},w=I=>{s.value.backgroundColor&&(I.target.style.backgroundColor=s.value.backgroundColor),s.value.color&&(I.target.style.color=s.value.color)},_=I=>{switch(I){case 2:return"flex-col-reverse";case 3:return"flex-row";case 4:return"flex-row-reverse";default:return"flex-col"}},T=I=>{var P,H;return!i.value||!I.linkData||!((P=I.linkData)!=null&&P.linkType)?"div":((H=I==null?void 0:I.linkData)==null?void 0:H.linkType)===1?"a":"RouterLink"},F=I=>{var P,H;return!i.value||!((P=I==null?void 0:I.linkData)!=null&&P.linkType)?"":((H=I==null?void 0:I.linkData)==null?void 0:H.linkType)===1?"href":"to"};return(I,P)=>(D(),V("div",{class:Be(["j-tab flex",_(e.layoutType)])},[B("div",{class:Be(["j-tab-wrapper",e.wrapperClasses])},[(D(),Ee(Lt(u.value),{style:se(e.wrapperStyle),icons:e.iconsStyle,class:Be(["j-tab-actions",S(n)?"flex flex-col":"flex flex-wrap w-full"]),"icon-name":p.value},{default:Te(()=>[(D(!0),V(qe,null,pt(e.tabs,(H,$)=>{var ee,j;return D(),Ee(Lt(T(H)),La({key:$,[F(H)||""]:(ee=H==null?void 0:H.linkData)==null?void 0:ee.url,target:(j=H==null?void 0:H.linkData)!=null&&j.linkType&&S(i)===1?"_blank":""}),{default:Te(()=>[B("button",{class:Be(["j-tab-action-btn w-full",a.value===$?"active":null]),"aria-label":H.name,style:se(S(s)),onClick:W=>g(I.data,$,H.name,H==null?void 0:H.linkData),onMouseleave:C,onMousedown:E,onMouseup:w,onMouseover:W=>y(I.$e,I.data,$,H.name),onMouseenter:k},ge(H.name),47,SF)]),_:2},1040,["target"])}),128))]),_:1},8,["style","icons","class","icon-name"]))],2),B("div",kF,[(D(!0),V(qe,null,pt(e.tabs,(H,$)=>wt((D(),V("div",{key:$},[Ze(I.$slots,"tab",{tab:H,titleWrapperStyle:H.titleWrapperStyle},()=>[(D(),Ee(Lt(v(H.type)),{data:H.data||[],widgetIdentifier:H.id,titleWrapperStyle:H.titleWrapperStyle},null,8,["data","widgetIdentifier","titleWrapperStyle"]))])],512)),[[Mt,a.value===$]])),128))])],2))}},CF={class:"user-engagements flex mt-3"},Mu={__name:"JUserEngagements",props:{subscribe:{type:Boolean,required:!1,default:!1},like:{type:Boolean,required:!1,default:!1},dislike:{type:Boolean,required:!1,default:!1},watchLater:{type:Boolean,required:!1,default:!1}},emits:["customClickEvent"],setup(e,{emit:t}){const r=e,{subscribe:n,like:o,dislike:i,watchLater:s}=it(r),a=t,d=f=>{a("customClickEvent",f)};return(f,u)=>(D(),V("div",CF,[S(n)?(D(),Ee(mt,{key:0,"icon-name":"favorite",onClick:u[0]||(u[0]=p=>d("subscribe")),variant:"primary",active:!1,class:"mb-1 mr-2 flex","aria-label":"Add to favorite"},{default:Te(()=>[B("span",null,[Se(S(ht),{"ikone-name":"vpapps-font-heart-favorite"})]),u[4]||(u[4]=B("p",{class:"ml-1"},"FAVORITE",-1))]),_:1,__:[4]})):le("",!0),S(s)?(D(),Ee(mt,{key:1,onClick:u[1]||(u[1]=p=>d("watchLater")),"icon-name":"favorite",variant:"primary",active:!1,class:"mb-1 mr-2 flex","aria-label":"Add to wat
113ch later"},{default:Te(()=>[B("span",null,[Se(S(ht),{"ikone-name":"vpapps-font-clock-time-alarm-check"})])]),_:1})):le("",!0),S(o)?(D(),Ee(mt,{key:2,onClick:u[2]||(u[2]=p=>d("like")),"icon-name":"favorite",variant:"primary",active:!1,class:"mb-1 mr-2 flex","aria-label":"Like"},{default:Te(()=>[B("span",null,[Se(S(ht),{"ikone-name":"vpapps-font-thumbs-up-like"})])]),_:1})):le("",!0),S(i)?(D(),Ee(mt,{key:3,onClick:u[3]||(u[3]=p=>d("dislike")),"icon-name":"favorite",variant:"primary",active:!1,class:"mb-1 mr-2 flex","aria-label":"Dislike"},{default:Te(()=>[B("span",null,[Se(S(ht),{"ikone-name":"vpapps-font-thumbs-down-dislike"})])]),_:1})):le("",!0)]))}},EF=["id"],TF={key:0,class:"flex w-full flex-row gap-1 items-center mb-2"},FF={class:"flex flex-wrap items-center gap-5 ml-auto justify-end"},AF={key:0,class:"flex gap-2 items-center"},PF={class:"contents"},IF={key:0,class:"col-span-full flex justify-center"},RF=["id"],OF={name:"jvp-grid",inheritAttrs:!1,customOptions:{}},DF=Object.assign(OF,{props:{id:{type:[Number,String],required:!1},data:{type:Array,required:!0},widgetIdentifier:{type:[String,Number],required:!1,default:-1},loadMoreCallback:{type:Function,required:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},title:{type:String,required:!1,default:""},titleStyle:{type:Object,required:!1,default:{}},wrapperStyle:{type:Object,required:!1,default:{}},sortByText:{type:String,required:!1,default:"Sort By"},spacing:{type:Number,required:!1,default:8},numberOfColumns:{type:Number,required:!1,default:6},contentWrapperStyle:{type:Object,required:!1,default:{gap:"10px"}},cardStyle:{type:Object,default:{titleStyle:{},infoboxFontStyle:{},infoboxStyle:{},infoboxWrapperStyle:{},style:{},imageStyle:{},infoboxClasses:"",order:"col",showTitle:!1,showAuthor:!1,showViews:!1,showDate:!1,showThumbnail:!1,showTimeDuration:!1}},selectedFilter:{type:[Number,String],default:1},filterOptions:{type:Array,default:[]},filterContentCallback:{type:Function,required:!1,default:()=>{}},navigationData:{type:Object,required:!1,default:null},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-filter-sort-descending",size:18},style:{size:"18px",color:"black"}})},breakpoint:{type:String,required:!1,default:"desktop"},button:{type:Object,required:!1,default:null},showButton:{type:Boolean,required:!1,default:!1},newItemText:{type:String,default:"New"},showLoadMoreButton:{type:Boolean,default:!1},loadMoreButtonData:{type:Object,default:null},showInfiniteScroll:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,{data:n,widgetIdentifier:o,loadMoreCallback:i,selectedFilter:s,filterContentCallback:a,titleStyle:d,showLoadMoreButton:f}=it(r),u=ue(s.value),p=xe(()=>`grid-cols-${r.numberOfColumns}`),g=C=>{C.target.style.color=d.value.colorOnHover||d.value.color},y=C=>{C.target.style.color=d.value.color};function v(){i.value()}function k(){const C=document.querySelector(`#el-widget-${o==null?void 0:o.value}`);i.value&&C&&on(C,i.value)}return kt(()=>{or(()=>{f.value||k()})}),(C,E)=>(D(),V("div",{class:"j-content-grid-wrapper",id:`j-grid-${e.id}`,style:se(e.wrapperStyle)},[e.title||e.filterOptions.length?(D(),V("div",TF,[Se(S(ms),{data:e.navigationData},{default:Te(()=>[e.title?(D(),V("p",{key:0,class:"contents",style:se(S(d)),onMouseenter:g,onMouseleave:y},ge(e.title),37)):le("",!0)]),_:1},8,["data"]),B("div",FF,[e.filterOptions.length?(D(),V("div",AF,[B("span",{style:se({color:S(d).color||"#334155"})},[Se(S(ht),{"ikone-name":"vpapps-font-filter-sort-descending","ikone-style":e.icons.style},null,8,["ikone-style"])],4),Se(S(ci),{modelValue:u.value,"onUpdate:modelValue":E[0]||(E[0]=w=>u.value=w),options:e.filterOptions,"option-value":"id","option-label":"name",class:"sort-filters","drop-down-style":{color:S(d).color,backgroundColor:"white"},onChange:S(a)},null,8,["modelValue","options","drop-down-style","onChange"])])):le("",!0),B("div",null,[e.showButton?Ze(C.$slots,"button",{key:0},()=>{var w,_,T,F,I,P,H,$;return[(D(),Ee(S(jn),{class:"z-10",key:(w=e.button)==null?void 0:w.id,data:e.button,type:(_=e.button)==null?void 0:_.props.type,"custom-wrapper":((F=(T=e.button)==null?void 0:T.props)==null?void 0:F.linkType)===1?"a":e.customWrapper,style:se((I=e.button)==null?void 0:I.style),icon:(P=e.button)==null?void 0:P.icon,text:(H=e.button)==null?void 0:H.props.text,url:($=e.button)==null?void 0:$.props.url,textBeforeIcon:!0},null,8,["data","type","custom-wrapper","style","icon","text","url"]))]},!0):le("",!0)])])])):le("",!0),B("div",{class:Be(["j-content-grid grid grid-cols-1 last:mb-0",[p.value]]),style:se(e.contentWrapperStyle)},[(D(!0),V(qe,null,pt(S(n),(w,_)=>{var T,F;return D(),V("div",{class:"content-wrapper",key:_},[Se(S(li),{cardStyle:e.cardStyle.style,order:e.cardStyle.order,infoboxFontStyle:e.cardStyle.infoboxFontStyle,infoboxStyle:e.cardStyle.infoboxStyle,infoboxClasses:e.cardStyle.infoboxClasses,infoboxWrapperStyle:e.cardStyle.infoboxWrapperStyle,"thumbnail-style":e.cardStyle.thumbnailStyle,titleStyle:e.cardStyle.titleStyle,showTitle:e.cardStyle.showTitle,title:w.title,showAuthor:e.cardStyle.showAuthor,author:w.author,showViews:!1,views:"00K Views",showDate:e.cardStyle.showDate,date:w.startDate,
113showThumbnail:e.cardStyle.showThumbnail,showTimeDuration:e.cardStyle.showTimeDuration,timeDuration:w.timeDuration,mediaid:w.mediaid,url:w.url,isRedirect:w.isRedirect,customWrapper:e.customWrapper,breakpoint:e.breakpoint,"show-parent-group":e.cardStyle.showParentGroup,"parent-group-style":e.cardStyle.parentGroupStyle,"parent-group-name":(T=w.parentGroup)==null?void 0:T.name,"parent-group-url":(F=w.parentGroup)==null?void 0:F.url,"show-progress-bar":e.cardStyle.showProgressBar,"progress-bar-config":e.cardStyle.progressBarStyle,"progress-bar-value":w.progressBarValue,"is-new":w.isNew,"new-item-text":e.newItemText},{image:Te(()=>[Ze(C.$slots,"card-image",dr({ref_for:!0},{image:w.img,style:e.cardStyle.imageStyle,filmstrip:w.filmstrip,index:_,alt:w.title}),()=>[Se(S(zt),{imageSrc:w.img,alt:w.title,class:"w-full",style:se(e.cardStyle.imageStyle)},null,8,["imageSrc","alt","style"])],!0)]),badge:Te(()=>[(D(!0),V(qe,null,pt(C.formatedBadges,(I,P)=>(D(),V(qe,null,[I.classes?(D(),Ee(S(so),{key:P,style:se(I.style),class:Be(I.classes)},{default:Te(()=>[tt(ge(I.name),1)]),_:2},1032,["style","class"])):le("",!0)],64))),256))]),_:2},1032,["cardStyle","order","infoboxFontStyle","infoboxStyle","infoboxClasses","infoboxWrapperStyle","thumbnail-style","titleStyle","showTitle","title","showAuthor","author","showDate","date","showThumbnail","showTimeDuration","timeDuration","mediaid","url","isRedirect","customWrapper","breakpoint","show-parent-group","parent-group-style","parent-group-name","parent-group-url","show-progress-bar","progress-bar-config","progress-bar-value","is-new","new-item-text"])])}),128)),B("div",PF,[S(f)?(D(),V("div",IF,[Ze(C.$slots,"loadMoreButton",{},()=>[e.loadMoreButtonData?(D(),Ee(S(jn),{key:0,class:"z-10","custom-wrapper":"div",type:e.loadMoreButtonData.props.type,style:se(e.loadMoreButtonData.style),icon:e.loadMoreButtonData.icon,text:e.loadMoreButtonData.props.text,onClick:v},null,8,["type","style","icon","text"])):le("",!0)],!0)])):le("",!0),S(o)!=-1&&e.showInfiniteScroll?(D(),V("div",{key:1,id:`el-widget-${S(o)}`},null,8,RF)):le("",!0)])],6)],12,EF))}}),ns=yt(DF,[["__scopeId","data-v-32298800"]]),LF={key:0,class:"flex w-full flex-row gap-1 items-center mb-2"},jF={class:"basis-1/2"},MF={key:0,class:"flex flex-wrap items-center gap-2 ml-auto basis-1/2 justify-end"},BF=["id"],NF={__name:"JContentGridSceleton",props:{data:{type:Array,required:!0},widgetIdentifier:{type:[String,Number],required:!1},loadMoreCallback:{type:Function,required:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},title:{type:String,required:!1,default:""},titleStyle:{type:Object,required:!1,default:{}},wrapperStyle:{type:Object,required:!1,default:{padding:"10px"}},sortByText:{type:String,required:!1,default:"Sort By"},spacing:{type:Number,required:!1,default:8},numberOfColumns:{type:Number,required:!1,default:6},contentWrapperStyle:{type:Object,required:!1,default:{gap:"10px"}},cardStyle:{type:Object,default:{titleStyle:{},infoboxFontStyle:{},infoboxStyle:{},infoboxWrapperStyle:{},style:{},imageStyle:{},infoboxClasses:"",order:"col",showTitle:!1,showAuthor:!1,showViews:!1,showDate:!1,showThumbnail:!1,showTimeDuration:!1}},selectedFilter:{type:[Number,String],default:1},filterOptions:{type:Array,default:[]},filterContentCallback:{type:Function,required:!1,default:()=>{}},navigationData:{type:Object,required:!1,default:null},breakpoint:{type:String,required:!1,default:"desktop"}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,{data:n,widgetIdentifier:o,loadMoreCallback:i,selectedFilter:s,filterContentCallback:a}=it(r),d=ue(s.value),f=xe(()=>`grid-cols-${r.numberOfColumns}`);return(u,p)=>(D(),V("div",{class:"j-content-grid-sceleton j-content-grid-wrapper",style:se(e.wrapperStyle)},[e.title||e.filterOptions.length?(D(),V("div",LF,[B("div",jF,[e.title?(D(),V("h3",{key:0,style:se(e.titleStyle),class:"j-content-grid-sceleton-title contents"},ge(e.title),5)):le("",!0)]),e.filterOptions.length?(D(),V("div",MF,[B("span",{style:se({color:e.titleStyle.color?e.titleStyle.color:"#334155"})},[Se(S(ht),{"ikone-name":"vpapps-font-filter-sort-descending"})],4),Se(S(ci),{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=g=>d.value=g),options:[],"option-value":"id","option-label":"name",class:"sort-filters","drop-down-style":{color:e.titleStyle.color,backgroundColor:"white"},onChange:S(a)},null,8,["modelValue","drop-down-style","onChange"])])):le("",!0)])):le("",!0),B("div",{class:Be(["j-content-grid grid grid-cols-1 last:mb-0",[f.value]]),style:se(e.contentWrapperStyle)},[(D(!0),V(qe,null,pt(S(n),(g,y)=>(D(),V("div",{class:"content-wrapper",key:y},[Se(S(xu),{cardStyle:e.cardStyle.style,order:e.cardStyle.order,infoboxFontStyle:e.cardStyle.infoboxFontStyle,infoboxStyle:e.cardStyle.infoboxStyle,infoboxClasses:e.cardStyle.infoboxClasses,infoboxWrapperStyle:e.cardStyle.infoboxWrapperStyle,titleStyle:e.cardStyle.titleStyle,showTitle:e.cardStyle.showTitle,title:g.title,showAuthor:e.cardStyle.showAuthor,author:g.author,showViews:!1,views:"00K Views",showDate:e.cardStyle.showDate,date:g.startDate,
113showThumbnail:e.cardStyle.showThumbnail,showTimeDuration:e.cardStyle.showTimeDuration,timeDuration:g.timeDuration,mediaid:g.mediaid,url:g.url,isRedirect:g.isRedirect,customWrapper:e.customWrapper,breakpoint:e.breakpoint},{image:Te(()=>[Ze(u.$slots,"card-image",dr({ref_for:!0},{image:g.img,style:e.cardStyle.imageStyle,filmstrip:g.filmstrip}),()=>[B("div",{class:"w-full",style:se(e.cardStyle.imageStyle)},null,4)],!0)]),badge:Te(()=>[(D(!0),V(qe,null,pt(u.formatedBadges,(v,k)=>(D(),V(qe,null,[v.classes?(D(),Ee(S(so),{key:k,style:se(v.style),class:Be(v.classes)},{default:Te(()=>[tt(ge(v.name),1)]),_:2},1032,["style","class"])):le("",!0)],64))),256))]),_:2},1032,["cardStyle","order","infoboxFontStyle","infoboxStyle","infoboxClasses","infoboxWrapperStyle","titleStyle","showTitle","title","showAuthor","author","showDate","date","showThumbnail","showTimeDuration","timeDuration","mediaid","url","isRedirect","customWrapper","breakpoint"])]))),128)),B("div",{id:`el-widget-${S(o)}`},null,8,BF)],6)],4))}},HF=yt(NF,[["__scopeId","data-v-5e90814d"]]),$F={key:0,class:"flex w-full flex-row gap-1 items-center mb-2"},UF={class:"flex flex-wrap items-center gap-5 ml-auto justify-end"},qF={key:0,class:"flex gap-2 items-center"},VF={__name:"JContentSlider",props:{data:{type:Object,required:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-arrow-right",size:18},style:{size:"18px",color:"black"}})},title:{type:String,required:!1,default:""},titleStyle:{type:Object,required:!1,default:{}},wrapperStyle:{type:Object,required:!1,default:{padding:"10px"}},spacing:{type:Number,required:!1,default:8},cardStyle:{type:Object,default:{titleStyle:{},infoboxFontStyle:{},infoboxStyle:{},infoboxWrapperStyle:{},style:{},imageStyle:{},infoboxClasses:"",order:"col",showTitle:!1,showAuthor:!1,showViews:!1,showDate:!1,showThumbnail:!1,showTimeDuration:!1}},selectedFilters:{type:Array,default:[]},filterOptions:{type:Array,default:[]},breakpoint:{type:String,required:!1,default:"desktop"},button:{type:Object,required:!1,default:null},showButton:{type:Boolean,required:!1,default:!1},newItemText:{type:String,default:"New"}},setup(e){const t=e,{selectedFilters:r,titleStyle:n}=it(t),o=[{title:"Shows 2",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"},{title:"Gaming",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"},{title:"General",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"},{title:"Music",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"},{title:"Cars",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"},{title:"6 mars season",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"},{title:"test fat",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"},{title:"Smartphones",timeDuration:"00:00",publishdate:"Invalid Date",img:null,component:"JCard",url:"content/undefined"}],i=a=>{a.target.style.color=n.value.colorOnHover||n.value.color},s=a=>{a.target.style.color=n.value.color};return(a,d)=>(D(),V("div",{class:"j-content-slider h-full",style:se(e.wrapperStyle)},[e.title||e.filterOptions.length?(D(),V("div",$F,[e.title?(D(),V("p",{key:0,class:"contents",style:se(S(n)),onMouseenter:i,onMouseleave:s},ge(e.title),37)):le("",!0),B("div",UF,[e.filterOptions.length?(D(),V("div",qF,[B("span",{style:se({color:S(n).color||"#334155"})},[Se(S(ht),{"ikone-name":"vpapps-font-filter-sort-descending","ikone-style":e.icons.style},null,8,["ikone-style"])],4),Se(S(ci),{modelValue:S(r),"onUpdate:modelValue":d[0]||(d[0]=f=>St(r)?r.value=f:null),options:e.filterOptions,class:"sort-filters","drop-down-style":{color:S(n).color,backgroundColor:"white"}},null,8,["modelValue","options","drop-down-style"])])):le("",!0),B("div",null,[e.showButton?Ze(a.$slots,"button",{key:0},()=>{var f,u,p,g,y,v,k,C;return[(D(),Ee(S(jn),{class:"z-10",key:(f=e.button)==null?void 0:f.id,data:e.button,type:(u=e.button)==null?void 0:u.props.type,"custom-wrapper":((g=(p=e.button)==null?void 0:p.props)==null?void 0:g.linkType)===1?"a":e.customWrapper,style:se((y=e.button)==null?void 0:y.style),icon:(v=e.button)==null?void 0:v.icon,text:(k=e.button)==null?void 0:k.props.text,url:(C=e.button)==null?void 0:C.props.url,textBeforeIcon:!0},null,8,["data","type","custom-wrapper","style","icon","text","url"]))]},!0):le("",!0)])])])):le("",!0),Se(S(km),{slides:o,autoSlide:!1,scrollInterval:7,activeSlide:0,animationTime:"1s",showIndicators:!1,icons:e.icons},{slide:Te(f=>{var u,p;return[e.cardStyle?(D(),Ee(S(li),{key:0,cardStyle:e.cardStyle.style,order:e.cardStyle.order,infoboxFontStyle:e.cardStyle.infoboxFontStyle,infoboxStyle:e.cardStyle.infoboxStyle,infoboxClasses:e.cardStyle.infoboxClasses,infoboxWrapperStyle:e.cardStyle.infoboxWrapperStyle,"thumbnail-style":e.cardStyle.thumbnailStyle,titleStyle:e.cardStyle.titleStyle,showTitle:e.cardStyle.showTitle,title:f.slide.title,showAuthor:e.cardStyle.showAuthor,author:f.slide.author,showViews:e.cardStyle.showViews,views:f.slide.views,showDate:e.cardStyle.showDate,date:f.slide.startDate,
113showThumbnail:e.cardStyle.showThumbnail,showTimeDuration:e.cardStyle.showTimeDuration,timeDuration:f.slide.timeDuration,customWrapper:e.customWrapper,url:f.slide.url,breakpoint:e.breakpoint,"show-parent-group":e.cardStyle.showParentGroup,"parent-group-style":e.cardStyle.parentGroupStyle,"parent-group-name":(u=f.slide.parentGroup)==null?void 0:u.name,"parent-group-url":(p=f.slide.parentGroup)==null?void 0:p.url,"show-progress-bar":e.cardStyle.showProgressBar,"progress-bar-config":e.cardStyle.progressBarStyle,"progress-bar-value":f.slide.progressBarValue,"is-new":f.slide.isNew,"new-item-text":e.newItemText},{image:Te(()=>[Se(S(zt),{imageSrc:f.slide.IMG,alt:f.slide.title,class:"w-full",style:se(e.cardStyle.imageStyle)},null,8,["imageSrc","alt","style"])]),badge:Te(()=>[(D(!0),V(qe,null,pt(a.formatedBadges,(g,y)=>(D(),V(qe,null,[g.classes?(D(),Ee(S(so),{key:y,style:se(g.style),class:Be(g.classes)},{default:Te(()=>[tt(ge(g.name),1)]),_:2},1032,["style","class"])):le("",!0)],64))),256))]),_:2},1032,["cardStyle","order","infoboxFontStyle","infoboxStyle","infoboxClasses","infoboxWrapperStyle","thumbnail-style","titleStyle","showTitle","title","showAuthor","author","showViews","views","showDate","date","showThumbnail","showTimeDuration","timeDuration","customWrapper","url","breakpoint","show-parent-group","parent-group-style","parent-group-name","parent-group-url","show-progress-bar","progress-bar-config","progress-bar-value","is-new","new-item-text"])):le("",!0)]}),_:1},8,["icons"])],4))}},xm=yt(VF,[["__scopeId","data-v-802c24da"]]),WF={class:"flex"},Cm={__name:"JContentSingle",props:{data:{type:Object,required:!0},title:{type:String,required:!1,default:""},customWrapper:{type:String,required:!1,default:"RouterLink"},titleStyle:{type:Object,required:!1,default:{fontWeight:"bold"}},wrapperStyle:{type:Object,required:!1,default:{padding:"10px"}},cardStyle:{type:Object,default:{titleStyle:{},infoboxFontStyle:{},infoboxStyle:{},infoboxWrapperStyle:{},style:{},imageStyle:{},infoboxClasses:"",order:"col",showTitle:!1,showAuthor:!1,showViews:!1,showDate:!1,showThumbnail:!1,showTimeDuration:!1}},breakpoint:{type:String,required:!1,default:"desktop"},newItemText:{type:String,default:"New"}},setup(e){const t=e,{data:r,customWrapper:n,titleStyle:o}=it(t),i=a=>{a.target.style.color=o.value.colorOnHover||o.value.color},s=a=>{a.target.style.color=o.value.color};return(a,d)=>{var f,u;return S(r)?(D(),V("div",{key:0,class:"j-content-single",style:se(e.wrapperStyle)},[B("div",WF,[e.title?(D(),V("h3",{key:0,class:"mb-2",style:se(S(o)),onMouseenter:i,onMouseleave:s},ge(e.title),37)):le("",!0)]),Se(S(li),{cardStyle:e.cardStyle.style,order:e.cardStyle.order,infoboxFontStyle:e.cardStyle.infoboxFontStyle,infoboxStyle:e.cardStyle.infoboxStyle,infoboxClasses:e.cardStyle.infoboxClasses,infoboxWrapperStyle:e.cardStyle.infoboxWrapperStyle,"thumbnail-style":e.cardStyle.thumbnailStyle,titleStyle:e.cardStyle.titleStyle,showTitle:e.cardStyle.showTitle,title:S(r).title,showAuthor:e.cardStyle.showAuthor,author:S(r).author,showViews:e.cardStyle.showViews,views:S(r).views,showDate:e.cardStyle.showDate,date:S(r).startDate,showThumbnail:e.cardStyle.showThumbnail,showTimeDuration:e.cardStyle.showTimeDuration,timeDuration:S(r).timeDuration,mediaid:S(r).mediaid,url:S(r).url,customWrapper:S(n),breakpoint:e.breakpoint,"show-parent-group":e.cardStyle.showParentGroup,"parent-group-style":e.cardStyle.parentGroupStyle,"parent-group-name":(f=S(r).parentGroup)==null?void 0:f.name,"parent-group-url":(u=S(r).parentGroup)==null?void 0:u.url,"show-progress-bar":e.cardStyle.showProgressBar,"progress-bar-config":e.cardStyle.progressBarStyle,"progress-bar-value":S(r).progressBarValue,"is-new":S(r).isNew,"new-item-text":e.newItemText},{image:Te(()=>[Se(S(zt),{imageSrc:S(r).img,alt:"Video Card Placeholder",class:"w-full",style:se(e.cardStyle.imageStyle)},null,8,["imageSrc","style"])]),badge:Te(()=>[(D(!0),V(qe,null,pt(a.formatedBadges,(p,g)=>(D(),V(qe,null,[p.classes?(D(),Ee(S(so),{key:g,style:se(p.style),class:Be(p.classes)},{default:Te(()=>[tt(ge(p.name),1)]),_:2},1032,["style","class"])):le("",!0)],64))),256))]),_:1}
113,8,["cardStyle","order","infoboxFontStyle","infoboxStyle","infoboxClasses","infoboxWrapperStyle","thumbnail-style","titleStyle","showTitle","title","showAuthor","author","showViews","views","showDate","date","showThumbnail","showTimeDuration","timeDuration","mediaid","url","customWrapper","breakpoint","show-parent-group","parent-group-style","parent-group-name","parent-group-url","show-progress-bar","progress-bar-config","progress-bar-value","is-new","new-item-text"])],4)):le("",!0)}}},zF={class:"j-content-carousel",id:"j-carousel"},KF={key:0,class:"flex w-full flex-row gap-4 items-center mb-2"},JF={class:"flex flex-wrap items-center gap-5 ml-auto justify-end"},GF={key:0,class:"flex gap-2 items-center"},YF={class:"j-content-grid block flex-nowrap"},ZF={name:"jvp-carousel",inheritAttrs:!1,customOptions:{}},XF=Object.assign(ZF,{props:{data:{type:Array,required:!0},widgetIdentifier:{type:[String,Number],required:!1},loadMoreCallback:{type:Function,required:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-arrow-right",size:18},style:{size:"18px",color:"black"}})},title:{type:String,required:!1,default:""},titleStyle:{type:Object,required:!1,default:{}},sortByText:{type:String,required:!1,default:"Sort By"},spacing:{type:Number,required:!1,default:8},numberOfColumns:{type:Number,required:!1,default:6},contentWrapperStyle:{type:Object,required:!1,default:{gap:"10px"}},blurColor:{type:[String,Number,null],required:!1,default:null},cardStyle:{type:Object,default:{titleStyle:{},infoboxFontStyle:{},infoboxStyle:{},infoboxWrapperStyle:{},style:{},imageStyle:{},infoboxClasses:"",order:"col",showTitle:!1,showAuthor:!1,showViews:!1,showDate:!1,showThumbnail:!1,showTimeDuration:!1}},selectedFilter:{type:[Number,String],default:1},filterOptions:{type:Array,default:[]},filterContentCallback:{type:Function,required:!1,default:()=>{}},generalStyle:{type:Object,required:!1,default:{titleStyle:{},wrapperStyle:{backgroundColor:"transparent"},itemStyle:{backgroundColor:"white",color:"black"},hoverColors:{backgroundColor:"blue",color:"red",active:"#FFAB00"}}},navigationData:{type:Object,required:!1,default:null},breakpoint:{type:String,required:!1,default:"desktop"},button:{type:Object,required:!1,default:null},showButton:{type:Boolean,required:!1,default:!1},newItemText:{type:String,default:"New"}},emits:["update:modelValue"],setup(e,{emit:t}){jr(C=>({"9fde819e":S(y)}));const r=e,{data:n,icons:o,blurColor:i,widgetIdentifier:s,loadMoreCallback:a,selectedFilter:d,filterContentCallback:f,titleStyle:u,button:p}=it(r),g=ue(d.value);let y="";i.value?y=`${i.value} 5%,
114  ${i.value.replace(")","-c)")} 40%,
115  rgba(255, 255, 255, 0) 100%`:y="transparent, transparent";const v=C=>{C.target.style.color=u.value.colorOnHover||u.value.color},k=C=>{C.target.style.color=u.value.color};return kt(()=>{or(()=>{if(!a.value)return;const C=document.querySelector(`#el-widget-${s.value}`);on(C,a.value)})}),(C,E)=>(D(),V("div",zF,[e.title||e.filterOptions.length?(D(),V("div",KF,[Se(S(ms),{data:e.navigationData},{default:Te(()=>[e.title?(D(),V("p",{key:0,class:"contents",style:se(S(u)),onMouseenter:v,onMouseleave:k},ge(e.title),37)):le("",!0)]),_:1},8,["data"]),B("div",JF,[e.filterOptions.length?(D(),V("div",GF,[B("span",{style:se({color:S(u).color||"#334155"})},[Se(S(ht),{"ikone-name":"vpapps-font-filter-sort-descending",style:se(S(o).style)},null,8,["style"])],4),Se(S(ci),{modelValue:g.value,"onUpdate:modelValue":E[0]||(E[0]=w=>g.value=w),options:e.filterOptions,"option-value":"id","option-label":"name",class:"sort-filters","drop-down-style":{color:S(u).color,backgroundColor:"white"},onChange:S(f)},null,8,["modelValue","options","drop-down-style","onChange"])])):le("",!0),B("div",null,[e.showButton?Ze(C.$slots,"button",{key:0},()=>{var w,_,T,F,I,P,H,$;return[(D(),Ee(S(jn),{class:"z-10",key:(w=S(p))==null?void 0:w.id,data:S(p),type:(_=S(p))==null?void 0:_.props.type,"custom-wrapper":((F=(T=S(p))==null?void 0:T.props)==null?void 0:F.linkType)===1?"a":e.customWrapper,style:se((I=S(p))==null?void 0:I.style),icon:(P=S(p))==null?void 0:P.icon,text:(H=S(p))==null?void 0:H.props.text,url:($=S(p))==null?void 0:$.props.url,textBeforeIcon:!0},null,8,["data","type","custom-wrapper","style","icon","text","url"]))]},!0):le("",!0)])])])):le("",!0),B("div",YF,[Se(Du,{style:se(e.contentWrapperStyle),"general-style":e.generalStyle,icons:S(o)},{default:Te(()=>[(D(!0),V(qe,null,pt(S(n),(w,_)=>{var T,F;return D(),V("div",{class:"content-wrapper",style:se({minWidth:`${100/e.numberOfColumns}%`,width:`${100/e.numberOfColumns}%`}),key:_},[Se(S(li),{cardStyle:e.cardStyle.style,order:e.cardStyle.order,infoboxFontStyle:e.cardStyle.infoboxFontStyle,infoboxStyle:e.cardStyle.infoboxStyle,infoboxClasses:e.cardStyle.infoboxClasses,infoboxWrapperStyle:e.cardStyle.infoboxWrapperStyle,"thumbnail-style":e.cardStyle.thumbnailStyle,titleStyle:e.cardStyle.titleStyle,showTitle:e.cardStyle.showTitle,title:w.title,showAuthor:e.cardStyle.showAuthor,author:w.author,showViews:!1,views:"00K Views",showDate:e.cardStyle.showDate,date:w.startDate,
115showThumbnail:e.cardStyle.showThumbnail,showTimeDuration:e.cardStyle.showTimeDuration,timeDuration:w.timeDuration,mediaid:w.mediaid,url:w.url,isRedirect:w.isRedirect,customWrapper:e.customWrapper,breakpoint:e.breakpoint,"show-parent-group":e.cardStyle.showParentGroup,"parent-group-style":e.cardStyle.parentGroupStyle,"parent-group-name":(T=w.parentGroup)==null?void 0:T.name,"parent-group-url":(F=w.parentGroup)==null?void 0:F.url,"show-progress-bar":e.cardStyle.showProgressBar,"progress-bar-config":e.cardStyle.progressBarStyle,"progress-bar-value":w.progressBarValue,"is-new":w.isNew,"new-item-text":e.newItemText},{image:Te(()=>[Ze(C.$slots,"card-image",dr({ref_for:!0},{image:w.img,style:e.cardStyle.imageStyle,filmstrip:w.filmstrip,index:_,alt:w.title}),()=>[Se(S(zt),{imageSrc:w.img,alt:w.title,class:"w-full","no-lazy-image":_<3,style:se(e.cardStyle.imageStyle)},null,8,["imageSrc","alt","no-lazy-image","style"])],!0)]),badge:Te(()=>[(D(!0),V(qe,null,pt(C.formatedBadges,(I,P)=>(D(),V(qe,null,[I.classes?(D(),Ee(S(so),{key:P,style:se(I.style),class:Be(I.classes)},{default:Te(()=>[tt(ge(I.name),1)]),_:2},1032,["style","class"])):le("",!0)],64))),256))]),_:2},1032,["cardStyle","order","infoboxFontStyle","infoboxStyle","infoboxClasses","infoboxWrapperStyle","thumbnail-style","titleStyle","showTitle","title","showAuthor","author","showDate","date","showThumbnail","showTimeDuration","timeDuration","mediaid","url","isRedirect","customWrapper","breakpoint","show-parent-group","parent-group-style","parent-group-name","parent-group-url","show-progress-bar","progress-bar-config","progress-bar-value","is-new","new-item-text"])],4)}),128))]),_:3},8,["style","general-style","icons"])])]))}}),Em=yt(XF,[["__scopeId","data-v-e0b853f1"]]),QF={class:"j-content-carousel"},eA={key:0,class:"flex w-full flex-row gap-1 items-center mb-2"},tA={key:0,class:"flex flex-wrap items-center gap-2 ml-auto basis-1/2 justify-end"},rA={class:"j-content-grid block flex-nowrap"},nA={__name:"JContentCarouselSkeleton",props:{data:{type:Array,required:!0},widgetIdentifier:{type:[String,Number],required:!1},loadMoreCallback:{type:Function,required:!1},customWrapper:{type:String,required:!1,default:"RouterLink"},icons:{type:Object,required:!1,default:()=>({props:{name:"vpapps-font-arrow-right",size:18},style:{size:"18px",color:"black"}})},title:{type:String,required:!1,default:""},titleStyle:{type:Object,required:!1,default:{}},sortByText:{type:String,required:!1,default:"Sort By"},spacing:{type:Number,required:!1,default:8},numberOfColumns:{type:Number,required:!1,default:6},contentWrapperStyle:{type:Object,required:!1,default:{gap:"10px"}},blurColor:{type:[String,Number,null],required:!1,default:null},cardStyle:{type:Object,default:{titleStyle:{},infoboxFontStyle:{},infoboxStyle:{},infoboxWrapperStyle:{},style:{},imageStyle:{},infoboxClasses:"",order:"col",showTitle:!1,showAuthor:!1,showViews:!1,showDate:!1,showThumbnail:!1,showTimeDuration:!1}},selectedFilter:{type:[Number,String],default:1},filterOptions:{type:Array,default:[]},filterContentCallback:{type:Function,required:!1,default:()=>{}},generalStyle:{type:Object,required:!1,default:{titleStyle:{},wrapperStyle:{backgroundColor:"transparent"},itemStyle:{backgroundColor:"white",color:"black"},hoverColors:{backgroundColor:"blue",color:"red",active:"#FFAB00"}}},navigationData:{type:Object,required:!1,default:null},breakpoint:{type:String,required:!1,default:"desktop"}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,{data:n,icons:o,blurColor:i,widgetIdentifier:s,loadMoreCallback:a,selectedFilter:d,filterContentCallback:f}=it(r),u=ue(d.value);return kt(()=>{or(()=>{if(!a.value)return;const p=document.querySelector(`#el-widget-${s.value}`);on(p,a.value)})}),xe(()=>`grid-cols-${r.numberOfColumns}`),(p,g)=>(D(),V("div",QF,[e.title||e.filterOptions.length?(D(),V("div",eA,[Se(S(ms),{data:e.navigationData,class:"basis-1/2"},{default:Te(()=>[e.title?(D(),V("p",{key:0,style:se(e.titleStyle),class:"contents"},ge(e.title),5)):le("",!0)]),_:1},8,["data"]),e.filterOptions.length?(D(),V("div",tA,[B("span",{style:se({color:e.titleStyle.color?e.titleStyle.color:"#334155"})},[Se(S(ht),{"ikone-name":"vpapps-font-filter-sort-descending",style:se(S(o).style)},null,8,["style"])],4),Se(S(ci),{modelValue:u.value,"onUpdate:modelValue":g[0]||(g[0]=y=>u.value=y),options:e.filterOptions,"option-value":"id","option-label":"name",class:"sort-filters","drop-down-style":{color:e.titleStyle.color,backgroundColor:"white"},onChange:S(f)},null,8,["modelValue","options","drop-down-style","onChange"])])):le("",!0)])):le("",!0),B("div",rA,[B("div",{style:se(e.contentWrapperStyle),class:"flex overflow-hidden"},[(D(!0),V(qe,null,pt(S(n),(y,v)=>(D(),V("div",{class:"content-wrapper",style:se({minWidth:`${100/e.numberOfColumns}%`,width:`${100/e.numberOfColumns}%`}),key:v},[Se(S(xu),{cardStyle:e.cardStyle.style,order:e.cardStyle.order,infoboxFontStyle:e.cardStyle.infoboxFontStyle,infoboxStyle:e.cardStyle.infoboxStyle,infoboxClasses:e.cardStyle.infoboxClasses,infoboxWrapperStyle:e.cardStyle.infoboxWrapperStyle,titleStyle:e.cardStyle.titleStyle,showTitle:e.cardStyle.showTitle,title:y.title,showAuthor:e.cardStyle.showAuthor,author:y.author,showViews:!1,views:"00K Views",showDate:e.cardStyle.showDate,date:y.startDate,
115showThumbnail:e.cardStyle.showThumbnail,showTimeDuration:e.cardStyle.showTimeDuration,timeDuration:y.timeDuration,mediaid:y.mediaid,url:y.url,isRedirect:y.isRedirect,customWrapper:e.customWrapper,breakpoint:e.breakpoint},{image:Te(()=>[B("div",{class:"w-full",style:se(e.cardStyle.imageStyle)},null,4)]),badge:Te(()=>[(D(!0),V(qe,null,pt(p.formatedBadges,(k,C)=>(D(),V(qe,null,[k.classes?(D(),Ee(S(so),{key:C,style:se(k.style),class:Be(k.classes)},{default:Te(()=>[tt(ge(k.name),1)]),_:2},1032,["style","class"])):le("",!0)],64))),256))]),_:2},1032,["cardStyle","order","infoboxFontStyle","infoboxStyle","infoboxClasses","infoboxWrapperStyle","titleStyle","showTitle","title","showAuthor","author","showDate","date","showThumbnail","showTimeDuration","timeDuration","mediaid","url","isRedirect","customWrapper","breakpoint"])],4))),128))],4)])]))}},oA=yt(nA,[["__scopeId","data-v-8f8ef056"]]),iA={class:"j-widget flex flex-wrap"},sA={__name:"JWidget",emits:["customEvent"],setup(e,{emit:t}){const r=t,n=o=>{r("customEvent",o)};return(o,i)=>(D(),V("div",iA,[Se(S(ns),{onCustomEvent:n})]))}},aA=Object.freeze(Object.defineProperty({__proto__:null,JBadge:so,JBanner:nm,JBannerSceleton:VC,JButton:mt,JCard:li,JCardSceleton:xu,JChat:N2,JChatInput:am,JChatOptions:um,JChatParticipants:cm,JChatRow:lm,JCol:fm,JCommentInput:dm,JComments:VE,JContentCarousel:Em,JContentCarouselSkeleton:oA,JContentDetails:OT,JContentGrid:ns,JContentGridSceleton:HF,JContentSingle:Cm,JContentSlider:xm,JCustomButton:jn,JCustomButtonSceleton:om,JDetails:k6,JDropdown:ci,JFilmStrip:gm,JFollowingMedia:I6,JFooter:mm,JFooterImage:$6,JFooterLabel:D6,JFooterMenu:N6,JFooterSceleton:W6,JHeaderLanguageV2:Fu,JHeaderLogoV2:Ru,JHeaderMenuV2:Eu,JHeaderNotificationsV2:Au,JHeaderProfileV2:Pu,JHeaderSceleton:_m,JHeaderSearchV2:Iu,JHeaderSpacingV2:Ou,JHeaderV2:bm,JIcon:ht,JImage:Zs,JImageContainer:rs,JImageSceleton:Z3,JLabel:wm,JList:tF,JNavigatorWrapper:ms,JPageMenu:sF,JPertaciImage:zt,JProfileLetter:tl,JRelatedGroup:uF,JRow:Sm,JShowCase:dF,JSidebar:Lu,JSlider:km,JSocialMedia:ju,JSpacing:vm,JTab:xF,JUserEngagements:Mu,JWidget:sA,VButton:yC},Symbol.toStringTag,{value:"Module"}));function lA(e){return e?{margin:`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}:null}function cA(e){return e?{padding:`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}:null}function Ur(e){if(e){const t=typeof e=="number"?{value:e,type:"%"}:e;return t.type==="px"||t.type==="%"?`${t.value}${t.type}`:`${t.type}`}return null}function Co(e){return e.type==="px"||e.type==="%"?`${e.value}${e.type}`:`${e.type}`}class Ge{constructor(){this.color=null}checkColor(t){if(t)if(t.includes("#")||t.includes("rgb"))this.color=t;else if(t.includes("color-")||t.includes("color_"))this.color=`var(--${t})`;else return}}class An{constructor(){this.fontSize=null,this.color=null,this.fontStyle=null,this.fontWeight=null,this.fontFamily=null,this.textAlign=null}fromData({size:t=null,color:r=null,style:n=null,weight:o=null,family:i=null,textAlign:s=null,textAlignment:a=null,colorOnHover:d=null,colorOnActive:f=null,decoration:u=null,lineHeight:p=null}){if(t&&(this.fontSize=`${t}px`),r){const g=new Ge;g.checkColor(r),this.color=g.color}if(this.fontStyle=n,this.fontWeight=o,i&&i!="Default"){const g=i.replaceAll(" ","-");this.fontFamily=`${g}, Avant !important`}else delete this.fontFamily;if(s&&(this.textAlign=s),a&&(this.textAlign=a),d){const g=new Ge;g.checkColor(d),this.colorOnHover=g.color}if(f){const g=new Ge;g.checkColor(f),this.colorOnActive=g.color}u&&(this.textDecorationLine=u),p&&(this.lineHeight=`${p}px`)}}function gn(e){const t=new An;return e&&t.fromData(e),t}class Md{constructor(){this.top=0,this.right=0,this.bottom=0,this.left=0}fromData({top:t=0,right:r=0,bottom:n=0,left:o=0}){this.top=t,this.right=r,this.bottom=n,this.left=o}getDimensions(){return`${this.top}px ${this.right}px ${this.bottom}px ${this.left}px`}getMargin(){return{margin:`${this.top}px ${this.right}px ${this.bottom}px ${this.left}px`}}getPadding(){return{padding:`${this.top}px ${this.right}px ${this.bottom}px ${this.left}px`}}getBorderRadius(){return{borderRadius:`${this.top}px ${this.right}px ${this.bottom}px ${this.left}px`}}getBorderWidth(){return{borderWidth:` ${this.top}px ${this.right}px ${this.bottom}px ${this.left}px`}}}function Mr(e){const{show:t,color:r,colorAlpha:n,radius:o,width:i,colorOnHover:s,colorOnHoverAlpha:a,colorOnActive:d,colorOnActiveAlpha:f}=e,{top:u,right:p,bottom:g,left:y}=o||{};let v=!1;typeof i=="number"&&(v=!0);const{top:k=0,right:C=0,bottom:E=0,left:w=0}=i||{},_=new Ge;_.checkColor(r);const T=_.color,F=new Ge;F.checkColor(s);const I=F.color,P=new Ge;P.checkColor(d);const H=P.color;return{borderColor:T,borderColorOnHover:I,borderColorOnActive:H,borderStyle:"solid",borderRadius:`${u}px ${p}px ${g}px ${y}px`,borderWidth:v?`${i}px`:`${k}px ${C}px ${E}px ${w}px`}}class uA{constructor(){}fromData({color:t=null,colorAlpha:r=100,colorOnHover:n="",colorOnHoverAlpha:o=100,colorOnActive:i="",colorOnActiveAlpha:s=100,alignment:a="",borderProperties:d=null,fontProperties:f=null,fontStyle:u=null,background:p=null,width:g=null,height:y=null,gap:v=0,spacing:k=0,aspectRatio:C=null,objectFit:E=null,xPos:w=0,yPos:_=0,padding:T=null,margin:F=null,blur:I=0,backgroundColor:P=null,mentionColor:H="",bgColor:$="",bgColorOnHover:ee="",bgColorOnActive:j=""}
115){if(a&&(this.textAlign=a),(v||k)&&(this.gap=`${v||k}px`),C&&(this.aspectRatio=C),E&&(this.objectFit=E),(_||w)&&(this.objectPosition=`${w}px ${_}px`),t&&(this.color=t),i){const W=new Ge;W.checkColor(i),this.colorOnActive=W.color}if(n){const W=new Ge;W.checkColor(n),this.colorOnHover=W.color}if(P){const W=new Ge;W.checkColor(P),this.backgroundColor=W.color}if(p){const{color:W,colorAlpha:ie=100,colorOnActive:ce,colorOnActiveAlpha:pe=100,colorOnHover:ae,colorOnHoverAlpha:me=100}=p;if(W){const ve=new Ge;ve.checkColor(W),this.backgroundColor=ve.color}if(ce){const ve=new Ge;ve.checkColor(ce),this.backgroundColorOnActive=ve.color}if(H){const ve=new Ge;ve.checkColor(H),this.mentionColor=ve.color}if(ae){const ve=new Ge;ve.checkColor(ae),this.backgroundColorOnHover=ve.color}}if($){const W=new Ge;W.checkColor($),this.backgroundColor=W.color}if(j){const W=new Ge;W.checkColor(j),this.backgroundColorOnActive=W.color}if(ee){const W=new Ge;W.checkColor(ee),this.backgroundColorOnHover=W.color}if(d&&d.show){const{borderColor:W,borderStyle:ie,borderRadius:ce,borderWidth:pe,borderColorOnHover:ae,borderColorOnActive:me}=Mr(d);this.borderStyle=ie,this.borderWidth=pe,this.borderRadius=ce,this.borderColorOnHover=ae,me&&(this.borderColorOnActive=me),this.borderColor=W}if(!f&&u&&(f=u),f){const W=gn(f),{fontSize:ie,fontWeight:ce,fontFamily:pe,fontStyle:ae,textDecorationLine:me,textAlign:ve,lineHeight:Pe,color:Re,colorAlpha:Je,colorOnHover:$e,colorOnHoverAlpha:Me,colorOnActive:rt,colorOnActiveAlpha:st}=W;ie&&(this.fontSize=ie),ce&&(this.fontWeight=ce),pe&&(this.fontFamily=pe),ae&&(this.fontStyle=ae),me&&(this.textDecorationLine=me),ve&&(this.textAlign=ve),Pe&&(this.lineHeight=`${Pe}px`),Re&&(this.color=Re),rt&&(this.colorOnActive=rt),$e&&(this.colorOnHover=$e)}if(g){const W=Ur(typeof g=="number"?{value:g,type:"px"}:g);this.width=W}if(y){const W=Co(typeof y=="number"?{value:y,type:"px"}:y);this.height=W}if(T){const W=cA(T);this.padding=W.padding}if(F){const W=lA(F);this.margin=W.margin}I&&(this.filter=`blur(${I})px`)}}function Eo(e){const t=new uA;return t.fromData(e),t}const Bu={__name:"Logo",props:{data:{type:Object,required:!0},breakpoint:{type:String,required:!0}},setup(e){const t=e,r=xe(()=>{if(t.data.props.alt)return t.data.props.alt;if(t.data.props.source){const i=t.data.props.source.split("/");return i[i.length-1]}return""});mu({link:[{rel:"preload",as:"image",href:`${t.data.props.source}?q=80&format=webp`}]});const n=xe(()=>{var i;return Eo({...t.data.style,width:null,height:null,backgroundColor:((i=t.data.style)==null?void 0:i.backgroundColor)||null})}),o=xe(()=>{var i,s,a;return Eo({width:((i=t.data.style)==null?void 0:i.width)||{type:"px",value:150},height:(s=t.data.style)==null?void 0:s.height,objectFit:(a=t.data.style)==null?void 0:a.objectFit})});return(i,s)=>(D(),Ee(S(Ru),{breakpoint:e.breakpoint,data:e.data,logoData:e.data,class:Be("order-"+e.data.order),"custom-wrapper":e.data.props.linkType===1?"a":"RouterLink",style:se(n.value),url:e.data.props.url,"img-source":`${e.data.props.source}?q=80&format=webp`,"img-style":o.value},{"image-src":Te(()=>[Se(S(zt),{imageSrc:`${e.data.props.source}?q=80&format=webp`,alt:r.value||e.data.props.source,style:se(o.value)},null,8,["imageSrc","alt","style"])]),_:1},8,["breakpoint","data","logoData","class","custom-wrapper","style","url","img-source","img-style"]))}},fA=Object.freeze(Object.defineProperty({__proto__:null,default:Bu},Symbol.toStringTag,{value:"Module"}));class dA{constructor(){this.id=1,this.uid=0,this.loginStatus="anonymous",this.premiumStatus="free",this.intrenal="ip",this.userId=null,this.token=null}setLoginStatus(t){this.loginStatus=t}setUid(t){this.uid=t.id}setPremiumStatus(t){this.premiumStatus=t}setUserId(t){this.userId=t}setUserToken(t){this.token=t}}class pA{constructor(){this.id=null,this.title=null,this.type=null,this.category=null,this.length=null,this.tags=[],this.show={}}fromData(t){this.id=t.id,this.title=t.title,this.type=t.type,this.category=t.category,this.length=t.length,t.tags&&t.tags.length>0&&this.tags.push(...t.tags),this.lockedAfter=t.lockedAfter}setTags(t){if(!t&&typeof t!="object")return;const r=[];for(const n in t)if(t.hasOwnProperty(n)){const o=t[n];Array.isArray(o)&&o.forEach(i=>
115{i&&i.title&&r.push(i.title)})}this.tags.push(...r)}}class hA{constructor(){this.type="",this.videoName=null,this.live=!1}setPageProperties(t){var o,i;const{media:r,content:n}=t??{};r?(this.type="media",this.live=(o=r==null?void 0:r.model)==null?void 0:o.isLive,this.videoName=(i=r==null?void 0:r.model)==null?void 0:i.title):n?this.type="content":this.type="home"}}class gA{constructor(){this.contentId=null,this.mediaId=null,this.projectId=null,this.organizationId=null,this.isEmbed="vpapps/web-client",this.user=new dA,this.page=new hA,this.server={},this.device="desktop",this.error=null,this.media=new pA,this.analyticsProperties={},this.env="production"}setUserToken(t){this.user.setUserToken(t)}setUid(t){this.user.setUid(t)}setExtraAnalyticsProperties(t){this.analyticsProperties=t}setCustomProperties(t){this.server={...t}}setMediaData(t){this.media.fromData(t)}setParentDataToMediaTags(t){this.media.setTags(t)}setPageProperties(t){this.page.setPageProperties(t)}setContentId(t){this.contentId=t}setMediaId(t){this.mediaId=t}setProjectId(t){this.projectId=t}setOrganizationId(t){this.organizationId=t}setUserId(t){this.user.setUserId(t)}setLoginStatus(t){this.user.setLoginStatus(t)}setIsEmbed(t){t&&(t.includes("/embed")?this.isEmbed="vpapps/embed-client":this.isEmbed="vpapps/web-client")}setDeviceType(t){this.device=t}setErrorType(t){this.error=t}}const Tm=e=>/^(ftp|http|https):\/\/[^ "]+$/.test(e);let mA=class{constructor(){this.id=null,this.name=null,this.src="",this.async=!1,this.defer=!1,this.body=!1,this.type=null,this.tagPosition=null,this.loadOption="once",this["custom-script"]="true",this.class=null,this.isSSR=!1}fromData(t){let r=!1;t.downloadUrl&&(r=Tm(t.downloadUrl)),r?(this.src=t.downloadUrl,this.type="application/javascript"):(this.type="text/javascript",delete this.src),t.content&&(this.innerHTML=t.content),t.custom&&(this[t.custom.key]=t.custom.value),t.loadOption&&(this.loadOption=t.loadOption,t.loadOption==="onceineachpage"&&(this.class="load-every-time-script"),t.loadOption==="once"&&(this.class="load-one-time-script")),this.name=t.name,this.isSSR=t.isSSR,t.location&&(t.location==="header"?(this.body=!1,this.tagPosition="head"):t.location==="bodystart"?(this.body=!0,this.tagPosition="bodyOpen"):t.location==="bodyend"?(this.body=!0,this.tagPosition="bodyClose"):(this.body=!0,this.tagPosition="bodyClose"))}};class Bd{constructor(t){this.scripts=[],this.isCLH=t}getServerSideScripts(t){if(this.isCLH)return[];const r={src:t,tagPosition:"head",tagPriority:-2,class:"load-internal-script",isSSR:!0},n=this.scripts.filter(o=>o.isSSR);return Array.isArray(n)&&n.unshift(r),n}getCustomScriptsToLoadEachPage(){return this.isCLH?[]:this.scripts.filter(t=>!t.isSSR&&t.loadOption==="onceineachpage").map(t=>(t.loadedTime=new Date().getTime(),t))}getCustomScriptsToLoadOnce(){return this.isCLH?[]:this.scripts.filter(t=>!t.isSSR&&t.loadOption==="once")}fromData(t){if(!t){this.scripts=[];return}const r=t.map(n=>{const o=new mA;return o.fromData(n),o});this.scripts=r}}class yA{constructor(){this.id=null,this.type=null,this.style=null,this.props=null}fromData(t){var r,n;if(this.id=t.id,this.type=t.type,this.props=t.props,this.style=t.style,t.type==="label"){const o=new An;o.fromData(t.style.fontProperties),this.style={...o,textAlign:t.style.alignment}}else if(t.type==="menu"){const o=new Ge;o.checkColor(t.style.bgColor);const i={backgroundColor:o.color,textAlign:t.style.alignment},s=new An;t.style.itemsStyle&&s.fromData(t.style.itemsStyle.fontStyle);const a=(r=t.style.itemsStyle)==null?void 0:r.orientation,d=new An;t.style.titleStyle&&d.fromData(t.style.titleStyle.fontStyle),this.style={wrapperStyle:i,titleStyle:d,itemsStyle:{orientation:a,...s,...((n=t.style)==null?void 0:n.itemsStyle.orientation)==="horizontal"?{justifyContent:t.style.alignment}:{}}}}else t.type==="SocialMedia"&&t.props.items.length>0&&(this.props.items=t.props.items.map(o=>(o.icon=o.icon,o)))}}class vA{constructor(){this.id=null,this.type=null,this.style=null,this.children=null,this.props=null,this.backgroundColor=null}fromData(t){var n,o;this.id=t.id,this.type=t.type,this.style=t.style;const r=new Ge;r.checkColor((n=t.style)==null?void 0:n.backgroundColor),this.colStyle={padding:`${t.style.padding.top}px ${t.style.padding.right}px ${t.style.padding.bottom}px ${t.style.padding.left}px`,margin:`${t.style.margin.top}px ${t.style.margin.right}px ${t.style.margin.bottom}px ${t.style.margin.left}px`,backgroundColor:r.color},this.children=(o=t==null?void 0:t.children)==null?void 0:o.map(i=>{const s=new yA;return s.fromData(i),s}),this.props=t.props}}class bA{constructor(){this.id=null,this.style=null,this.children=null,this.type=null,this.props=null}fromData(t){var r;this.id=t.id,this.style=t.style,this.children=(r=t.children)==null?void 0:r.map(n=>{const o=new vA;return o.fromData(n),o}),this.type=t.type,this.props={xAlignment:t.props.xAlignment,yAlignment:t.props.yAlignment}}}class _A{constructor(){this.style=null,this.children=null}fromData(t){var n;const r=new Ge;(n=t==null?void 0:t.style)!=null&&n.backgroundColor&&r.checkColor(t.style.backgroundColor),this.style={...t.style,backgroundColor:r.color},this.children=t==null?void 0:t.children.map(o=>{const i=new bA;return i.fromData(o),i})}}class wA{constructor(t){this.deviceType=t,this.desktop=null,this.mobile=null,this.tablet=null}fromData(t){if(!t)throw"No Footer data";const r=this.deviceType;if(t[r]){const n=new _A;n.fromData(t[r]),this[r]={children:n==null?void 0:n.children,style:n==null?void 0:n.style}}}}class SA{constructor(){this.logo=!1,this.menu=!1,this.search=!1,this.language=!1,this.notifications=!1,this.profile=!1}fromData(t){this.logo=t.logo,this.menu=t==null?void 0:t.menu,this.search=t.search,this.language=t.language,this.notifications=t.notifications,this.profile=t.profile}}
115class kA{constructor(){this.style=null,this.components=null}fromData(t){const r=new Ge;r.checkColor(t==null?void 0:t.backgroundColor),this.style={backgroundColor:r.color};const n=new SA;n.fromData(t.components),this.components=n}}class Nu{constructor(){this.navigationLabel=null,this.url="/",this.order=0,this.itemTypeId=null,this.itemType=null,this.childItems=[]}fromData(t){var r;this.navigationLabel=t==null?void 0:t.navigationLabel,this.url=t!=null&&t.url?t==null?void 0:t.url:"/",this.order=t==null?void 0:t.order,this.itemTypeId=t==null?void 0:t.itemTypeId,this.itemType=t==null?void 0:t.itemType,((r=t==null?void 0:t.childItems)==null?void 0:r.length)>0&&(this.childItems=t.childItems.map(n=>{const o=new Nu;return o.fromData(n),o}))}}let xA=class{constructor(){this.style=null,this.menuItems=[]}fromData(t){const r=new An;r.fromData(t.style.fontProperties),this.style={textAlign:t.style.alignment,...r,gap:`${t.style.spacing}px`},t.menuItems&&t.menuItems.length>0&&(this.menuItems=t.menuItems.map(n=>{const o=new Nu;return o.fromData(n),o}))}};class rl{constructor(){this.name=null,this.size=null,this.color=null}fromData(t){this.name=t.name,this.size=`${t.size}px`;const r=new Ge;r.checkColor(t.color),this.color=r.color}}let CA=class{constructor(){this.placeholderText=null,this.iconSettings=null}fromData(t){this.placeholderText=t.placeholderText;const r=new rl;r.fromData(t.iconSettings),this.iconSettings=r}},EA=class{constructor(){this.iconSettings=null}fromData(t){const r=new rl;r.fromData(t.iconSettings),this.iconSettings=r}},TA=class{constructor(){this.name=null,this.componentName=null,this.display=!1,this.iconSettings=null}fromData(t){this.name=t.name,this.componentName=t.componentName,this.display=t.display;const r=new rl;r.fromData(t.iconSettings),this.iconSettings=r}};const FA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AA=/^(?:www\.|[^/?#\s]+\.[a-z]{2,}(?:[/?#]|$))/i,ei=e=>typeof e!="string"||e===""||e[0]==="/"||e[0]==="#"||e[0]==="?"||FA.test(e)||AA.test(e)?e:`/${e}`;class PA{constructor(){this.source=null,this.url=null,this.style=new Nd,this.linkType=1}fromData(t){t.source&&(this.source=`${t.source}?q=90`),this.linkType=t.linkType,this.url=t.linkType===1?t.url:ei(t.url);const{width:r,height:n}=t,o=new Nd;o.fromQuery({width:r,height:n}),this.style=o}}let Nd=class{constructor(){this.height=null,this.width=null}fromQuery({width:t=null,height:r=null}){t&&(this.width=t),r&&(this.height=r.value)}},IA=class{constructor(){this.componentName=null,this.display=!1,this.name=null,this.iconSettings=null}fromData(t){this.componentName=t.componentName,this.display=t.display,this.name=t.name;const r=new rl;r.fromData(t.iconSettings),this.iconSettings=r}};class RA{constructor(){this.menu=null,this.search=null,this.logo=null,this.language=null,this.notifications=null,this.profile=null}fromData(t){const r=new xA;r.fromData(t==null?void 0:t.menu),this.menu=r;const n=new CA;n.fromData(t.search),this.search=n;const o=new PA;o.fromData(t.logo),this.logo=o;const i=new EA;i.fromData(t.language),this.language=i;const s=new IA;s.fromData(t.notifications),this.notifications=s;const a=new TA;a.fromData(t.profile),this.profile=a}}class Ll{constructor(){this.navigationBarProperties=null,this.components=null}fromData(t){const r=new kA;r.fromData(t.navigationBarProperties),this.navigationBarProperties=r;const n=new RA;n.fromData(t.components),this.components=n}}class OA{constructor(t){this.deviceType=t,this.desktop=null,this.mobile=null,this.tablet=null}fromData(t){if(!t)throw"No header data";const r=new Ll;r.fromData(t.desktop),this.desktop=r;const n=new Ll;n.fromData(t.mobile),this.mobile=n;const o=new Ll;o.fromData(t.tablet),this.tablet=o}fromDataV2(t){var n,o;if(!t)return null;const r=this.deviceType;this[r]=(n=t.layout)==null?void 0:n[r],(o=this[r])==null||o.components.map((i,s)=>(i.order=s,i))}}class DA{constructor(){this.backgroundColor=null,this.backgroundImage=null,this.background=null,this.omitHeaderFooter=!1}fromData(t){if(!t)return;const r=new Ge;if(r.checkColor(t==null?void 0:t.backgroundColor),this.backgroundColor=r.color,this.omitHeaderFooter=t.omitHeaderFooter,t.backgroundImage&&t.backgroundImage.length>0?this.backgroundImage=`url(${t.backgroundImage})`:delete this.backgroundImage,t.gradient&&t.gradient.show){const{show:n,type:o,direction:i,colors:s}=t.gradient,[a,d]=s,f=new Ge;f.checkColor(a.color);const u=new Ge;u.checkColor(d.color),this.background=n?`${o}(${i}deg, ${f.color} ${a.position}px, ${u.color} ${d.position}px)`:""}else delete this.background}}class Pc{constructor(){this.name="Banner",this.bannerType=1,this.data=null,this.socialMedia={items:[]},this.properties=[],this.settings={},this.buttons=[],this.tonosButtons,this.isDynamic=!1}
115fromData(t){if(!t)throw"Banner.js Error on data parse";this.bannerType=t.bannerType,this.isDynamic=t.bannerType===2,this.data=t.data,this.settings=t.settings,this.properties=t.properties,this.socialMedia=t.socialMedia,this.buttons=(t==null?void 0:t.buttons)||[],this.tonosButtons=t==null?void 0:t.tonosButtons}}class LA{constructor(){this.name="carousel",this.autoswipe=5,this.elements=2,this.bannerType=1,this.indicators=null,this.items=[]}fromData(t){if(this.name="carousel",this.autoswipe=t.autoswipe,this.elements=t.elements,this.indicators=t.indicators,this.bannerType=t.bannerType,this.isDynamic=t.bannerType===2,!t.items)throw"error on Crousel";this.items=t.items.map((r,n)=>{const o=new Pc;return o.fromData(r),{...o,active:!n}})}}class jA{constructor(){this.backgroundColor="",this.color=""}fromData(t){this.backgroundColor="",this.color=""}}class Hd{constructor(){this.wrapper={backgroundColor:"lightpink"}}fromData(t){var n;const r=new Ge;r.checkColor((n=t.fontProperties)==null?void 0:n.color),this.wrapper.backgroundColor=r.color,this.wrapper.color="#e5e7eb"}}class MA{constructor(t){this.style=new Ud,this.props=new $d((t==null?void 0:t.props)||null)}fromData({style:t=null,props:r=null}){if(t){const n=new Ud;n.fromData(t),this.style=n}if(r){const n=new $d;n.fromData(r),this.props=n}}}class $d{constructor(t){this.size=(t==null?void 0:t.size)||24,this.name=(t==null?void 0:t.name)||"vpapps-font-heart-favorite"}fromData({size:t=24,name:r="vpapps-font-heart-favorite"}){this.size=t||this.size,this.name=r||this.name}}class Ud{constructor(){this.color="",this.colorOnHover="",this.colorOnActive="",this.backgroundColor="",this.backgroundColorOnHover="",this.backgroundColorOnActive="",this.padding=null,this.margin=null,this.fontSize="18px"}fromData({color:t=null,colorAlpha:r=100,colorOnHover:n="",colorOnHoverAlpha:o=100,colorOnActive:i="",colorOnActiveAlpha:s=100,background:a=null,bgColor:d="",bgColorAlpha:f=100,bgColorOnHover:u=null,bgColorOnHoverAlpha:p=100,bgColorOnActive:g=null,bgColorOnActiveAlpha:y=100,padding:v=null,margin:k=null,borderProperties:C=null,size:E=18}){const w=new Ge;w.checkColor(t),this.color=w.color;const _=new Ge;_.checkColor(n),this.colorOnHover=_.color;const T=new Ge;T.checkColor(i),this.colorOnActive=T.color;const F=new Ge;F.checkColor(a==null?void 0:a.color),this.backgroundColor=F.color;const I=new Ge;I.checkColor(a==null?void 0:a.colorOnHover),this.backgroundColorOnHover=I.color;const P=new Ge;if(P.checkColor(g),this.backgroundColorOnActive=P.color,this.fontSize=E+"px",v){const H=new Md;H.fromData(v);const{padding:$}=H.getPadding();this.padding=$}if(k){const H=new Md;H.fromData(k);const{margin:$}=H.getMargin();this.margin=$}if(C){const{borderColor:H,borderStyle:$,borderRadius:ee,borderWidth:j}=Mr(C);this.borderStyle=$,this.borderWidth=j,this.borderRadius=ee;const W=new Ge;W.checkColor(H),this.borderColor=W.color}}}function rn(e){const t=new MA;return e&&t.fromData({props:e.props,style:{...e.style,size:e.props.size}}),t}class qd{constructor(){this.wrapper={},this.type="icon-text",this.input={},this.button={fontSize:"14px",color:"#36435E"},this.icon={name:"vpapps-font-send-message-alt",style:{fontSize:"20px",color:"#36435E"},props:{name:"vpapps-font-send-message-alt",size:20}}}fromData({input:t=null,button:r=null,icon:n=null,type:o=null}){if(t){if(this.input={wrapper:{...Eo({...t,fontProperties:null,mentionColor:t==null?void 0:t.mentionColor})},fontStyle:{...gn(t.fontProperties)}},t&&t.backgroundColor){const i=new Ge;i.checkColor(t.backgroundColor),this.input.wrapper.backgroundColor=i.color}if(this.type=o,t&&t.mentionColor){const i=new Ge;i.checkColor(t.mentionColor),this.input.wrapper.mentionColor=i.color}}r&&(this.button=Eo(r)),n&&(this.icon=rn(n))}}class Vd{constructor(){this.wrapper={},this.title=new Wd,this.hideButton=new zd}fromData({wrapper:t={},title:r=null,hideButton:n=null}){if(this.wrapper=t,r){const o=new Wd;o.fromData(r),this.title=o}if(n){const o=new zd;o.fromData(n),this.hideButton=o}}}class Wd{constructor(){this.color=null,this.backgroundColor=null,this.padding=null,this.borderRadius=null}fromData({backgroundColor:t=null,alignment:r,width:n=null,height:o=null,margin:i=null,padding:s=null,borderProperties:a=null,fontProperties:d=null}){if(r&&(this.textAlign=r),t){const f=new Ge;f.checkColor(t),this.backgroundColor=f.color}if(a){const{borderRadius:f,borderColor:u,borderStyle:p,borderWidth:g}=Mr(a);this.borderRadius=f,this.borderColor=u,this.borderStyle=p||"solid",this.borderWidth=g}if(s&&(this.padding=`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`),i&&(this.margin=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`),n&&(this.width=Ur(n)),o&&(this.height=Co(o)),d){const f=gn(d),{fontSize:u,fontWeight:p,fontFamily:g,fontStyle:y,textDecorationLine:v,textAlign:k,lineHeight:C,color:E,colorOnHover:w,colorOnActive:_}=f;u&&(this.fontSize=u),p&&(this.fontWeight=p),g&&(this.fontFamily=g),y&&(this.fontStyle=y),v&&(this.textDecorationLine=v),k&&(this.textAlign=k),C&&(this.lineHeight=C),E&&(this.color=E),_&&(this.colorOnActive=_),w&&(this.colorOnHover=w)}}}class zd{constructor(){this.color=null,this.backgroundColor=null,this.padding=null,this.borderRadius=null}fromData({backgroundColor:t=null,backgroundColorOnHover:r=null,alignment:n,width:o=null,height:i=null,margin:s=null,padding:a=null,borderProperties:d=null,fontProperties:f=null}){if(n&&(this.textAlign=n),t){const u=new Ge;u.checkColor(t),this.backgroundColor=u.color}if(r){const u=new Ge;u.checkColor(r),this.backgroundColorOnHover=u.color}if(d){const{borderRadius:u,borderColor:p,borderStyle:g,borderWidth:y}=Mr(d);this.borderRadius=u,this.borderColor=p,this.borderStyle=g||"solid",this.borderWidth=y}if(a&&(this.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`),s&&(this.margin=`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`),o&&(this.width=Ur(o)),i&&(this.height=Co(i)),f){const u=gn(f),{fontSize:p,fontWeight:g,fontFamily:y,fontStyle:v,textDecorationLine:k,textAlign:C,lineHeight:E,color:w,colorOnHover:_,colorOnActive:T}=u;p&&(this.fontSize=p),g&&(this.fontWeight=g),y&&(this.fontFamily=y),v&&(this.fontStyle=v),k&&(this.textDecorationLine=k),C&&
115(this.textAlign=C),E&&(this.lineHeight=E),w&&(this.color=w),T&&(this.colorOnActive=T),_&&(this.colorOnHover=_)}}}class Kd{constructor(){this.wrapper=new Jd,this.image=new Gd,this.author=new Hs,this.text=new Hs}fromData({wrapper:t=null,image:r=null,author:n=null,text:o=null}){if(t){const i=new Jd;i.fromData(t),this.wrapper=i}if(r){const i=new Gd;i.fromData(r),this.image=i}if(n){const i=new Hs;i.fromData(n),this.author=i}if(o){const i=new Hs;i.fromData(o),this.text=i}}}class Jd{constructor(){}fromData({backgroundColor:t="",mentionColor:r="",backgroundColorOnHover:n="",backgroundColorOnActive:o="",alignment:i="",gap:s=0,width:a=null,height:d=null,margin:f=null,padding:u=null,borderProperties:p=null}){if(s&&(this.gap=`${s}px`),i&&(this.textAlign=i),t){const g=new Ge;g.checkColor(t),this.backgroundColor=g.color}if(r){const g=new Ge;g.checkColor(r),this.mentionColor=g.color}if(n){const g=new Ge;g.checkColor(n),this.backgroundColorOnHover=g.color}if(o){const g=new Ge;g.checkColor(o),this.backgroundColorOnActive=g.color}if(p){const{borderRadius:g,borderColor:y,borderStyle:v,borderWidth:k}=Mr(p);this.borderRadius=g,this.borderColor=y,this.borderStyle=v||"solid",this.borderWidth=k}u&&(this.padding=`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`),f&&(this.margin=`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`),a&&(this.width=Ur(a)),d&&(this.height=Co(d))}}class Gd{constructor(){this.width="16px"}fromData({objectFit:t="cover",type:r="rounded",width:n=null,blur:o=null}){this.objectFit=t,r==="rounded"&&(this.borderRadius="100%"),n&&(this.width=Ur(n)),n&&(this.minWidth=Ur(n)),n&&(this.height=Ur(n)),o&&(this.filter=`blur(${Ur(o)})`)}}class Hs{constructor(){}fromData({fontProperties:t=null}){if(t){const r=gn(t),{fontSize:n,fontWeight:o,fontFamily:i,fontStyle:s,textDecorationLine:a,textAlign:d,lineHeight:f,color:u,colorOnHover:p,colorOnActive:g}=r;n&&(this.fontSize=n),o&&(this.fontWeight=o),i&&(this.fontFamily=i),s&&(this.fontStyle=s),a&&(this.textDecorationLine=a),d&&(this.textAlign=d),f&&(this.lineHeight=f),u&&(this.color=u),g&&(this.colorOnActive=g),p&&(this.colorOnHover=p)}}}class Yd{constructor(){}fromData({gap:t=12,backgroundColor:r="",padding:n=null,margin:o=null,borderProperties:i=null}){if(this.gap=`${t}px`,r){const s=new Ge;s.checkColor(r),this.backgroundColor=s.color}if(i){const{borderRadius:s,borderColor:a,borderStyle:d,borderWidth:f}=Mr(i);this.borderRadius=s,this.borderColor=a,this.borderStyle=d||"solid",this.borderWidth=f}n&&(this.padding=`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`),o&&(this.margin=`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`)}}class BA{constructor(){this.wrapper=new Yd,this.header=new Vd,this.body=new jA,this.row=new Kd,this.footer=new qd,this.button=new Hd}fromData(t){if(!t)return;const r=new Yd;r.fromData(t.style),this.wrapper=r;const n=new Vd;n.fromData({title:t.components.title.style,hideButton:t.components.headerButton.style}),this.header=n;const o=new Kd;o.fromData({wrapper:t.components.message.style,image:t.components.messageImage.style,author:t.components.messageAuthor.style,text:t.components.message.style}),this.row=o;const i=new qd;i.fromData({input:t.components.messageBox.style,button:t.components.footerButton.style,icon:t.components.footerButton.icon,type:t.components.footerButton.props.type}),this.footer=i;const s=new Hd;s.fromData(t.components.footerButton.style),this.button=s}}class os{constructor(){this.userId=null,this.firstName="Unknown",this.lastName="Unknown",this.picture="https://cdn.vpapps.cloud/unnamed.jpg",this.email=null,this.name=null}fromData(t){t&&(this.userId=t.userId,this.firstName=t.firstName,this.lastName=t.lastName,this.picture=t.picture,this.email=t.email)}fromUserToAuthor(t){t&&(this.firstName=t.name,this.lastName=t.surname||t.lastName,this.picture=t.picture,this.email=t.email,this.name=`${this.firstName} ${this.lastName}`)}}class NA{constructor(){this.id=null,this.author=new os,this.createdAt=null,this.createdBy=null,this.dislikeCount=null,this.isDisliked=null,this.isLiked=!1,this.likeCount=null,this.mediaId=null,this.projectId=null,this.repliesCount=null,this.text=null,this.replies=null,this.parentId=null,this.canDelete=!1}fromData(t){this.id=t.id;const r=new os;r.fromData(t.author),this.author=r,this.createdAt=t.createdAt,this.createdBy=t.createdBy,this.dislikeCount=t.dislikeCount,this.isDisliked=t.isDisliked,this.isLiked=t.isLiked,this.likeCount=t.likeCount,this.mediaId=t.mediaId,this.projectId=t.projectId,this.repliesCount=t.repliesCount,this.text=t.text,this.replies=t.replies,this.parentId=t.parentId,this.canDelete=t.canDelete}}class HA{constructor(){this.id=null,this.author=new os,this.createdAt=null,this.createdBy=null,this.dislikeCount=null,this.isDisliked=!1,this.likeCount=null,this.mediaId=null,this.projectId=null,this.repliesCount=null,this.text=null,this.replies=[],this.parentId=null,this.canDelete=!1,this.img=null}fromData(t){var n;this.id=t.id;const r=new os;r.fromData(t.author),this.author=r,this.createdAt=t.createdAt,this.createdBy=t.createdBy,this.dislikeCount=t.dislikeCount,this.isDisliked=t.isDisliked,this.isLiked=t.isLiked,this.likeCount=t.likeCount,this.mediaId=t.mediaId,this.projectId=t.projectId,this.repliesCount=t.repliesCount,this.text=t.text,this.canDelete=t.canDelete,t.replies&&(this.replies=t.replies.map(o=>{const i=new NA;return i.fromData(o),i})),this.img=(n=t.author)==null?void 0:n.picture}}class $A{constructor(){this.iconColor="",this.backgroundColor="",this.gap=null,this.padding=null,this.margin=null,this.borderStyle="solid",this.borderColor=null,this.borderWidth=null,this.borderRadius=null,this.fontStyle=null}fromData({bgColor:t="",padding:r=null,margin:n=null,borderProperties:o=null,fontProperties:i=null,spacing:s=null}){const a=new Ge;if(a.checkColor(t),this.backgroundColor=a.color,s&&(this.gap=`${s}px`),r&&(this.padding=`${r.top}
115px ${r.right}px ${r.bottom}px ${r.left}px`),n&&(this.margin=`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`),o){const{borderColor:d,borderStyle:f,borderRadius:u,borderWidth:p}=Mr(o);this.borderStyle=f,this.borderWidth=p,this.borderRadius=u,this.borderColor=d}i&&(this.fontStyle=gn(i))}}function P5(e){const t=new $A;return e&&t.fromData(e),{...t,...t.fontStyle}}class UA{constructor(){this.id=null}fromData(t){this.id=t.id}}class Zd{constructor(){this.id=null,this.style={itemStyle:null,titleStyle:null,wrapperStyle:null,iconSettings:{size:"40px"}},this.type=null,this.title=null,this.showButtons=!0}fromData(t){const r=new An;let n=new An,o={},i={size:"40px",color:"red"},s={};t&&(i=rn(t).style),this.style={titleStyle:r,wrapperStyle:o,itemStyle:n,iconSettings:i,hoverColors:s}}}class qA{constructor(t){this.margin=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`}}class VA{constructor(t){this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`}}class WA{constructor(){this.id=null,this.url=null,this.order=null,this.itemId=null,this.isExternal=!1,this.displayName=null}fromData(t){this.id=t.id,this.url=t.url?t.url:"/",this.order=t.order,this.itemId=t.itemId,this.isExternal=t.itemTypeId!==1,this.displayName=t.navigationLabel,t.itemTypeId===2&&t.itemLinkTypeId===2&&(this.isExternal=!1),this.isExternal||(this.url=ei(this.url))}}class zA{constructor(){this.id=null,this.style={itemStyle:null,titleStyle:null,wrapperStyle:null,blurColor:null},this.type=null,this.items=null,this.title=null,this.inline=!0,this.showButtons=!0}fromData(t){var g,y,v,k,C,E;this.id=t.id,this.type=t.type,this.title=t.props.title,this.inline=t.props.menuType===2;const r=new An;let n=new An,o={},i={},s={};this.inline||(o.justifyContent=t.style.alignment),t.icon&&(i=rn({style:t.icon.style,props:{size:(g=t.icon.props)==null?void 0:g.size}}));const a=new Ge;a.checkColor(t.style.bgColorOnHover),s.backgroundColor=a.color;const d=new Ge;d.checkColor(t.style.fontHoverColor),s.color=d.color;const f=new Ge;if(f.checkColor(t.style.fontActiveColor),s.active=f.color,t.style){t.style.fontStyle&&n.fromData(t.style.fontStyle);let w={};t.style.margin&&(w=new qA(t.style.margin));let _={};if(t.style.padding&&(_=new VA(t.style.padding)),n.marginRight=`${t.style.gap}px`,(y=t.style)!=null&&y.border){const{borderWidth:I,borderRadius:P,borderStyle:H,borderColor:$}=Mr((v=t.style)==null?void 0:v.border);n.borderRadius=P,n.borderWidth=I,n.borderStyle=H,n.borderColor=$}n.color=n.color;const T=new Ge;
115T.checkColor((k=t.style)==null?void 0:k.itemBackgroundColor),n.backgroundColor=T.color||"white";const F=new Ge;F.checkColor((C=t.style)==null?void 0:C.bgColor),o.backgroundColor=F.color,o={...o,...w,..._}}const u=new Ge;u.checkColor(t.style.blurColor),this.style={titleStyle:r,wrapperStyle:o,itemStyle:n,iconSettings:i,hoverColors:s,blurColor:u.color};const p=((E=t.props.menu)==null?void 0:E.items)||t.props.items;this.items=p.map(w=>{const _=new WA;return _.fromData(w),_})}}class KA{constructor(){this.data=null,this.layout=[],this.settings={},this.tabType=null,this.isDynamic=null}fromData(t){this.data=t.data,this.layout=t.layout,this.settings=t.settings,this.tabType=t.tabType,this.isDynamic=t.tabType===2}}class JA{constructor(){this.id=null,this.videoSource=null}fromData(t){this.id=t.id,this.videoSource=t.videoSource}}class wa{constructor(){this.id=null,this.style=null,this.type=null,this.props=null}fromData(t){var r,n;switch(this.id=t.id,this.style=t.style,this.type=t.type,t.type){case"row":this.children=t==null?void 0:t.children.map(v=>{const k=new wa;return k.fromData(v),k}),this.style=t.style,this.props=t.props;break;case"col":this.children=t==null?void 0:t.children.map(v=>{const k=new wa;return k.fromData(v),k}),this.style=t.style,this.props=t.props;break;case"banner":const o=new Pc;o.fromData(t.props),this.props=o,this.children=t.children||null;break;case"BannerCarousel":const i=new LA;i.fromData(t.props),this.props=i;break;case"tabs":this.tabs=t.tabs.map(v=>{const k=new KA;return k.fromData(v),k}),this.style=t.style,this.props=t.props,this.icon=t.icon,this.changeOnHover=t.changeOnHover;break;case"ContentGrid":this.style=t.style,this.props=t.props,this.components=t.components,t!=null&&t.icon&&(this.style.generalStyle={...(r=this.style)==null?void 0:r.generalStyle,iconSettings:rn({style:{...t.icon.style,size:t.icon.props.size},props:t.icon.props})});break;case"ContentSingle":this.style=t.style,this.props=t.props,this.components=t.components;break;case"image":this.style=t.style,this.props=t.props;break;case"label":this.style=t.style,this.props=t.props;break;case"video":const s=new JA;s.fromData({}),this.video=s,this.style=t.style,this.props=t.props;break;case"RichTextContent":this.style=t.style,this.props=t.props;break;case"NewestVideos":this.style=t.style,this.props=t.props;break;case"WatchedVideos":this.style=t.style,this.props=t.props,this.components=t.components;break;case"TonosComponent":this.style=t.style,this.props=t.props;break;case"TonosProductList":this.style=t.style,this.props=t.props,this.components=t.components;const a=new Zd;a.fromData(t.icon),this.iconStyle=a;break;case"details":const d=new UA;d.fromData({}),this.details=d,this.style=t.style,this.props=t.props;break;case"details":const f=new HA;f.fromData({}),this.comments=f,this.style=t.style,this.props=t.props;break;case"contentDetails":this.style=t.style,this.props=t.props,this.components=t.components,this.engagements=t.engagements;break;case"search":this.style=t.style,this.props=t.props;break;case"menu":const u=new zA;u.fromData(t),this.menuData=u,this.props=t.props;break;case"ContentCarousel":this.style=t.style,this.props=t.props,this.components=t.components;const p=new Zd;p.fromData(t.icon),this.generalStyle=p;break;case"showCase":this.style=t.style,this.props=t.props,this.grid=t.components.grid,this.banner=t.components.banner;const g=new Pc;g.fromData(t.components.banner.props),this.banner.props=g,this.banner.children=((n=t.components.banner)==null?void 0:n.children)||[];break;case"player":this.style=t.style,this.props=t.props,this.components=t.components,this.type="video";break;case"followingMedia":this.style=t.style,this.props=t.props,this.components=t.components;break;case"relatedGroup":this.style=t.style,this.props=t.props,this.components=t.components;break;case"adComponent":this.style=t.style,this.props=t.props,this.children=t.children;break;case"comments":this.style=t.style,this.props=t.props,this.components=t.components;break;case"list":this.style=t.style,this.props=t.props,this.components=t.components,this.item=t.item;break;case"chat":const y=new BA;y.fromData(t.layout),this.style=y,this.props=t.props;break;case"button":this.style=t.style,this.props=t.props;break;case"customJsComponent":this.style=null,this.props=t.props;break;default:this.name="component not implemented",this.props=`props not added component type is: '${t.type}'`;break}}}class GA{constructor(){this.children=[],this.id=null,this.props=null,this.style=null,this.type="col"}fromData(t){t.children&&t.children.length>0?this.children=t.children.map(r=>{const n=new wa;return n.fromData(r),n}):console.log("Column.js No children"),this.id=t.id,this.props=t.props,this.style=t.style,this.type=t.type}}class I5{constructor(){this.padding=null,this.margin=null,this.backgroundColor=null}fromData({padding:t=null,margin:r=null,backgroundColor:n=null,maxWidth:o=null}){t&&(this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`),r&&(this.margin=`${r.top}
115px 0px ${r.bottom}px 0px`);const i=new Ge;i.checkColor(n),this.backgroundColor=i.color}}class YA{constructor(t){this.order=t+1,this.children=[],this.id=null,this.props=null,this.style=null,this.type="row"}fromData(t){var r;this.children=(r=t.children)==null?void 0:r.map(n=>{const o=new GA;return o.fromData(n),o}),this.id=t.id,this.props=t.props,this.style=t.style,this.type=t.type}}class ZA{constructor(){this.id=null,this.name=null,this.src="",this.async=!1,this.defer=!1,this.body=!1,this.type=null,this.tagPosition=null,this.loadOption="once",this["custom-script"]="true",this.class=null,this.isSSR=!1}fromData(t){let r=!1;t.downloadUrl&&(r=Tm(t.downloadUrl)),r?(this.src=t.downloadUrl,this.type="application/javascript"):(this.type="text/javascript",delete this.src),t.content&&(this.innerHTML=t.content),t.custom&&(this[t.custom.key]=t.custom.value),t.loadOption&&(this.loadOption=t.loadOption,t.loadOption==="onceineachpage"&&(this.class="load-every-time-script"),t.loadOption==="once"&&(this.class="load-one-time-script")),this.name=t.name,this.isSSR=t.isSSR,t.location&&(t.location==="header"?(this.body=!1,this.tagPosition="head"):t.location==="bodystart"?(this.body=!0,this.tagPosition="bodyOpen"):t.location==="bodyend"?(this.body=!0,this.tagPosition="bodyClose"):(this.body=!0,this.tagPosition="bodyClose"))}}const nl=e=>{if(!e)return null;e=e.replace(/<[^>]*>/g,"");const t={"&aacute;":"á","&Aacute;":"Á","&yacute;":"ý","&Yacute;":"Ý","&iacute;":"í","&Iacute;":"Í","&eacute;":"é","&Eacute;":"É","&scaron;":"š","&Scaron;":"Š","&ccaron;":"č","&Ccaron;":"Č","&rcaron;":"ř","&Rcaron;":"Ř","&ncaron;":"ň","&Ncaron;":"Ň","&uring;":"ů","&Uring;":"Ů","&zcaron;":"ž","&Zcaron;":"Ž"};for(let r in t)e&&(e=e.replace(new RegExp(r,"g"),t[r]));return e},XA=e=>{if(!e)return null;let t=Math.floor(e),r=Math.floor(t/3600),n=Math.floor(t%3600/60),o=t%60;return`PT${r.toString().padStart(2,"0")}H${n.toString().padStart(2,"0")}M${o.toString().padStart(2,"0")}S`};class Fm{constructor(){this.name=null,this.description=null,this.thumbnailUrl=null,this.uploadDate=null,this.duration=null,this.embedUrl=null,this.publisher=null}fromData(t){t.model&&(this.name=t.model.title,this.description=nl(t.model.description),t.model.imageAssets&&t.model.imageAssets.length>0&&(this.thumbnailUrl=t.model.imageAssets[0].url),this.uploadDate=t.model.publishDate,this.duration=XA(t.model.length),this.publisher=t.model.author,this.interactionStatistic={"@type":"InteractionCounter",interactionType:{"@type":"WatchAction"},userInteractionCount:t.model.viewCount})}}const QA={layout:{desktop:{rows:[{id:"row-1678283731951309",type:"row",class:"flex-nowrap!",children:[{id:"col-1678283750109961",type:"col",children:[{id:"video-1678283783178844",type:"search",style:{width:100,height:{type:"auto",value:0},alignment:"center",titleFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},descriptionFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},metricsFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},buttonFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""}},props:{bannerType:1,data:{title:"Video Player",description:"",imgTo:"",action:"",text:"",textTo:"",img:"https://vpapps.blob.gjirafa.tech/ed8dcbec-f6c8-4723-83e1-6ceecc55dad2.jpeg",alt:""},settings:null}}],style:{order:0,display:!0,orientation:"vertical"},props:{columns:12}}],props:{yAlignment:null,xAlignment:null},style:{spacing:4,isContainer:!0}}],style:{}},tablet:{rows:[{id:"row-1678283731951309",type:"row",class:"flex-nowrap!",children:[{id:"col-1678283750109961",type:"col",children:[{id:"video-1678283783178844",type:"search",style:{width:100,height:{type:"auto",value:0},alignment:"center",titleFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},descriptionFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},metricsFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},buttonFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""}},props:{bannerType:1,data:{title:"Video Player",description:"",imgTo:"",action:"",text:"",textTo:"",img:"https://vpapps.blob.gjirafa.tech/ed8dcbec-f6c8-4723-83e1-6ceecc55dad2.jpeg",alt:""},settings:null}}],style:{order:0,display:!0,orientation:"vertical"},props:{columns:12}}],props:{yAlignment:null,xAlignment:null},style:{spacing:4,isContainer:!0}}],style:{}},mobile:{rows:[{id:"row-1678283731951309",type:"row",class:"flex-nowrap!",children:[{id:"col-1678283750109961",type:"col",children:[{id:"video-1678283783178844",type:"search",style:{width:100,height:{type:"auto",value:0},alignment:"center",titleFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},descriptionFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},metricsFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""},buttonFontStyle:{size:14,weight:"500",family:"Inter",style:"Normal",color:""}},props:{bannerType:1,data:{title:"Video Player",description:"",imgTo:"",action:"",text:"",textTo:"",img:"https://vpapps.blob.gjirafa.tech/ed8dcbec-f6c8-4723-83e1-6ceecc55dad2.jpeg",alt:""},settings:null}}],style:{order:0,display:!0,orientation:"vertical"},props:{columns:12}}],props:{yAlignment:null,xAlignment:null},style:{spacing:4,isContainer:!0}}],style:{}}},analyticsProperties:{parents:{TvShow:["Alfabeti"]}},parents:null,media:null,queries:null,customScripts:[],seo:{title:"",author:"",description:"",copyright:"",robot:{follow:!1,noFollow:!1,index:!1,noIndex:!1}
115,twitterCard:{username:"",title:"",description:"",image:null,type:null},metaOg:{title:"",description:"",image:null}}};function e4(e){const t=/Mobile|Android|iP(hone|od)|BlackBerry|IEMobile|Silk|Opera Mini|Fennec|webOS|Windows Phone|PlayStation Vita/i,r=/Tablet|iPad|Nexus 7|Nexus 9|Kindle|Silk|Fennec/i,n=/Win(dows NT|dows NT 10.0|dows NT 6.1|dows NT 6.2|dows NT 6.3|dows NT 5.1|dows NT 5.2|dows NT 6.0|dows NT 5.0)|Macintosh|Intel Mac OS X|Linux|Ubuntu|CrOS/i,o=/SmartTV|AppleTV|GoogleTV|HbbTV|NetCast|WebTV|Tizen|Roku|Xbox|PlayStation|CrKey|DIAL/i;return/Watch|Wearable|Google Glass|SmartWatch|Gear/i.test(e)?"wearable":o.test(e)?"tv":r.test(e)?"tablet":t.test(e)?"mobile":n.test(e)?"desktop":"unknown"}const ct=gs("url-builder",{state:()=>({userAgent:null,xVpAppsProjectId:"Z6wMB4kEl2n",xVpAppsDomain:"app-23.prod.vpapps.cloud",fullPath:null,testHeaderAcceptLanguage:null,TESTxVpAppsProjectId:"testproject",TESTxVpAppsDomain:"testdomain",token:null,config:null,biskoId:null,userDeviceType:null}),actions:{actionStoreBiskoIdFromCookie(e){this.biskoId=e},actionStoreAccessTokenFromCookie(e){e&&(this.token=e)},actionStoreRequestHeaders(e){e.referer&&(this.fullPath=e.referer);const t=e["user-agent"];t&&(this.userAgent=t,this.userDeviceType=e4()),e["x-vp-apps-domain"]&&(this.xVpAppsDomain=e["x-vp-apps-domain"]),e["x-vp-apps-project-id"]&&(this.xVpAppsProjectId=e["x-vp-apps-project-id"]),e["accept-language"]&&(this.testHeaderAcceptLanguage=e["accept-language"]),e["x-vp-apps-domain"]&&(this.TESTxVpAppsDomain=e["x-vp-apps-domain"]),e["x-vp-apps-project-id"]&&(this.TESTxVpAppsProjectId=e["x-vp-apps-project-id"])},actionSetToken(e){this.token=e},actionRemoveTokenFromStore(){this.token=null},actionSetConfig(){const e=en();this.config=e}},getters:{getRequestHeaders:e=>({"X-Project-Id":e.xVpAppsProjectId,"X-Project-Domain":e.xVpAppsDomain,testHeaderAcceptLanguage:e.testHeaderAcceptLanguage,...e.token?{authorization:`Bearer ${e.token}`}:{},...e.biskoId?{"X-Bisko-Id":e.biskoId}:{}}),getProjectId:e=>e.xVpAppsProjectId,getProjecDomain:e=>`https://${e.xVpAppsDomain}`,getToken:e=>e.token,isCLH:e=>{var t;return((t=e.userAgent)==null?void 0:t.includes("Chrome-Lighthouse"))??!1}}}),Xt=(e,t)=>{const r=/{([^}]+)}/g;return e?e.replace(r,(o,i)=>{const s=i.split(".").reduce((a,d)=>a&&a[d],t);return s!==void 0?nl(s):o}):""};class Xd{constructor(t){this.deviceType=t,this.id=0,this.inputs={},this.media={},this.seo={},this.content=null,this.layout={desktop:{},tablet:{},mobile:{}},this.queries=[],this.contentId="",this.scripts=[],this.structuredData=new Fm,this.analyticsProperties={},this.user=null}fromData(t,r=!1){var f,u,p,g,y,v,k,C,E,w,_,T,F,I,P,H,$,ee,j;const n=this.deviceType,o=ct(),{isCLH:i,config:s,getProjectId:a}=ot(o);if(t&&t.analyticsProperties&&(this.analyticsProperties=t.analyticsProperties),!i.value){const W=(t==null?void 0:t.customScripts)||[];this.scripts=W==null?void 0:W.map(ie=>{const ce=new ZA;return ce.fromData(ie),ce})}if(!t)return;this.queries=(t==null?void 0:t.queries)||[],this.layout[n].rows=(u=(f=t.layout[n])==null?void 0:f.rows)==null?void 0:u.map((W,ie)=>{const ce=new YA(ie);return ce.fromData(W),ce});const d=new DA;if(d.fromData((p=t.layout[n])==null?void 0:p.style),this.layout[n].style=d,this.id=t.id,this.inputs=t.inputs,this.media=t.media,this.content=t.content,t.content){this.pageContentId=t.content.id;const W=Xt(t.seo.title,t),ie=Xt(t.seo.description,t),ce=Xt(t.seo.author,t),pe=Xt((g=t.seo.metaOg)==null?void 0:g.title,t),ae=Xt((y=t.seo.metaOg)==null?void 0:y.description,t);Xt((v=t.seo.metaOg)==null?void 0:v.image,t);const me=Xt((k=t.seo.twitterCard)==null?void 0:k.title,t),ve=Xt((C=t.seo.twitterCard)==null?void 0:C.description,t);Xt((E=t.seo.twitterCard)==null?void 0:E.image,t),this.seo={title:W,description:ie||W,author:ce,metaOg:{title:pe,description:ae||pe,image:(_=(w=t==null?void 0:t.content)==null?void 0:w.bannerImages)==null?void 0:_.desktop},twitterCard:{title:me,description:ve||me,image:(F=(T=t==null?void 0:t.content)==null?void 0:T.bannerImages)==null?void 0:F.desktop}}}else if(t.media&&t.media.id){this.structuredData.fromData(t.media);let W=nl((P=(I=t.media)==null?void 0:I.model)==null?void 0:P.description);const ie=(H=t==null?void 0:t.media.model)==null?void 0:H.title;let ce="";t.media.model.imageAssets&&t.media.model.imageAssets.length>0&&(ce=($=t==null?void 0:t.media.model)==null?void 0:$.imageAssets[0].url),W||(W=ie),this.seo={title:ie||"",description:W,author:(j=(ee=t.media)==null?void 0:ee.model)==null?void 0:j.author,metaOg:{title:ie,description:W,image:ce},twitterCard:{title:ie,description:W,image:ce}}}else this.seo=t.seo;this.seo&&t.seo&&t.seo.robot&&(this.seo.robot=t.seo.robot),this.user=t.user}getRootStyle(){return this.layout[this.deviceType].style}fromNoData(){this.seo={title:"Page Not Found",description:"This page does not exists or problem finding."}}}class t4{constructor(){this.seo=null,this.structuredData=new Fm}fromData(t){var i,s,a,d,f,u,p,g,y,v,k,C,E;const{content:r,media:n,seo:o}=t??{};if(this.seo=o,r){this.pageContentId=r.id;const w=Xt(o.title,t),_=Xt(o.description,t),T=Xt(o.author,t),F=Xt((i=o.metaOg)==null?void 0:i.title,t),I=Xt((s=o.metaOg)==null?void 0:s.description,t);Xt((a=o.metaOg)==null?void 0:a.image,t);const P=Xt((d=o.twitterCard)==null?void 0:d.title,t),H=Xt((f=o.twitterCard)==null?void 0:f.description,t);Xt((u=o.twitterCard)==null?void 0:u.image,t),this.seo={title:w,description:_||w,author:T,metaOg:{title:F,description:I||F,image:Xt((p=o==null?void 0:o.metaOg)==null?void 0:p.image,t)||((g=r==null?void 0:r.bannerImages)==null?void 0:g.desktop)},twitterCard:{title:P,description:H||P,image:(y=r==null?void 0:r.bannerImages)==null?void 0:y.desktop}}}else if(n&&n.id){this.structuredData.fromData(n);let w=nl((v=n.model)==null?void 0:v.description);const _=(k=n.model)==null?void 0:k.title;let T="";if(n.model.imageAssets&&n.model.imageAssets.length>0){const F=n.model.imageAssets.length-1;T=(C=n.model)==null?void 0:C.imageAssets[F].url}w||(w=_),this.seo={title:_||"",description:w,author:(E=n.model)==null?void 0:E.author,metaOg:{title:_,description:w,image:T},twitterCard:{title:_,description:w,image:T}}}else this.seo=o;this.seo&&o&&o.robot&&(this.seo.robot=o.robot)}getSeoData(){return this.seo}}const r4=e=>e?new Intl.DateTimeFormat("en-GB").format(new Date(e)):null,n4=e=>{const t="/embed";return e.startsWith(t)?e.slice(t.length):e},jl="auth._",Ml=".iodc",Bl=["profile","access_token","expires_at","id_token","refresh_token","scope","session_state","state","token_type"],Qd=(e,t)=>{sessionStorage.setItem(e,t)},R5=e=>sessionStorage.getItem(e),O5=e=>{sessionStorage.removeItem(e)},o4=(e,t)=>
115{localStorage.setItem(e,t)},i4=e=>localStorage.getItem(e),s4=e=>{localStorage.removeItem(e)},a4=e=>/^(?:https?:\/\/)?(?:[a-zA-Z0-9-]+\.){1}([a-zA-Z0-9-]+)\./.test(e),l4=e=>{const t=/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n?]+)(?:[/:?]|$)/i,r=e.match(t);return r&&r.length>=2?r[1]:null},Ic=e=>a4(e)?e.split(".").slice(1).join("."):l4(e);class mo{getItem(t){const r=document.cookie.split(";");for(let n=0;n<r.length;n++){const o=r[n].trim();if(o.startsWith(t+"="))return o.substring(t.length+1)}return null}setItem(t,r,n=""){let o=Ic(location.origin);o==="http://localhost:3000"&&(o="localhost"),console.log("SETTING ON COOKKIE, ",o),document.cookie=`${t}=${r};${n};domain=.${o}`}removeItem(t){let r=Ic(location.origin);r==="http://localhost:3000"&&(r="localhost"),document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.${r}`}}function c4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D5(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Xs={exports:{}},u4=Xs.exports,ep;function f4(){return ep||(ep=1,(function(e,t){(function(n,o){e.exports=o()})(u4,(function(){return(function(r){var n={};function o(i){if(n[i])return n[i].exports;var s=n[i]={i,l:!1,exports:{}};return r[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=r,o.c=n,o.d=function(i,s,a){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:a})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var d in i)o.d(a,d,(function(f){return i[f]}).bind(null,d));return a},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=22)})([function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var i=(function(){function f(u,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,p,g){return p&&f(u.prototype,p),g&&f(u,g),u}})(),s={debug:function(){},info:function(){},warn:function(){},error:function(){}},a=void 0,d=void 0;(n.Log=(function(){function f(){(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,f)}return f.reset=function(){d=3,a=s},f.debug=function(){if(d>=4){for(var p=arguments.length,g=Array(p),y=0;y<p;y++)g[y]=arguments[y];a.debug.apply(a,Array.from(g))}},f.info=function(){if(d>=3){for(var p=arguments.length,g=Array(p),y=0;y<p;y++)g[y]=arguments[y];a.info.apply(a,Array.from(g))}},f.warn=function(){if(d>=2){for(var p=arguments.length,g=Array(p),y=0;y<p;y++)g[y]=arguments[y];a.warn.apply(a,Array.from(g))}},f.error=function(){if(d>=1){for(var p=arguments.length,g=Array(p),y=0;y<p;y++)g[y]=arguments[y];a.error.apply(a,Array.from(g))}},i(f,null,[{key:"NONE",get:function(){return 0}},{key:"ERROR",get:function(){return 1}},{key:"WARN",get:function(){return 2}},{key:"INFO",get:function(){return 3}},{key:"DEBUG",get:function(){return 4}},{key:"level",get:function(){return d},set:function(p){if(!(0<=p&&p<=4))throw new Error("Invalid log level");d=p}},{key:"logger",get:function(){return a}
115,set:function(p){if(!p.debug&&p.info&&(p.debug=p.info),!(p.debug&&p.info&&p.warn&&p.error))throw new Error("Invalid logger");a=p}}]),f})()).reset()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var i=(function(){function f(u,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,p,g){return p&&f(u.prototype,p),g&&f(u,g),u}})(),s={setInterval:(function(f){function u(p,g){return f.apply(this,arguments)}return u.toString=function(){return f.toString()},u})((function(f,u){return setInterval(f,u)})),clearInterval:(function(f){function u(p){return f.apply(this,arguments)}return u.toString=function(){return f.toString()},u})((function(f){return clearInterval(f)}))},a=!1,d=null;n.Global=(function(){function f(){(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,f)}return f._testing=function(){a=!0},f.setXMLHttpRequest=function(p){d=p},i(f,null,[{key:"location",get:function(){if(!a)return location}},{key:"localStorage",get:function(){if(!a&&typeof window<"u")return localStorage}},{key:"sessionStorage",get:function(){if(!a&&typeof window<"u")return sessionStorage}},{key:"XMLHttpRequest",get:function(){if(!a&&typeof window<"u")return d||XMLHttpRequest}},{key:"timer",get:function(){if(!a)return s}}]),f})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.MetadataService=void 0;var i=(function(){function u(p,g){for(var y=0;y<g.length;y++){var v=g[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,g,y){return g&&u(p.prototype,g),y&&u(p,y),p}})(),s=o(0),a=o(7);function d(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")}var f=".well-known/openid-configuration";n.MetadataService=(function(){function u(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.JsonService;if(d(this,u),!p)throw s.Log.error("MetadataService: No settings passed to MetadataService"),new Error("settings");this._settings=p,this._jsonService=new g(["application/jwk-set+json"])}return u.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},u.prototype.getMetadata=function(){var g=this;return this._settings.metadata?(s.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(s.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then((function(y){s.Log.debug("MetadataService.getMetadata: json received");var v=g._settings.metadataSeed||{};return g._settings.metadata=Object.assign({},v,y),g._settings.metadata}))):(s.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(new Error("No authority or metadataUrl configured on settings")))},u.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},u.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},u.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},u.prototype.getTokenEndpoint=function(){var g=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this._getMetadataProperty("token_endpoint",g)},u.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},u.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},u.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},u.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},u.prototype._getMetadataProperty=function(g){var y=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return s.Log.debug("MetadataService.getMetadataProperty for: "+g),this.getMetadata().then((function(v){if(s.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),v[g]===void 0){if(y===!0)return void s.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+g);throw s.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+g),new Error("Metadata does not contain property "+g)}return v[g]}))},u.prototype.getSigningKeys=function(){var g=this;return this._settings.signingKeys?(s.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then((function(y){return s.Log.debug("MetadataService.getSigningKeys: jwks_uri received",y),g._jsonService.getJson(y).then((function(v){if(s.Log.debug("MetadataService.getSigningKeys: key set received",v),!v.keys)throw s.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),new Error("Missing keys on keyset");return g._settings.signingKeys=v.keys,g._settings.signingKeys}))}
115))},i(u,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&this._metadataUrl.indexOf(f)<0&&(this._metadataUrl[this._metadataUrl.length-1]!=="/"&&(this._metadataUrl+="/"),this._metadataUrl+=f))),this._metadataUrl}}]),u})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.UrlUtility=void 0;var i=o(0),s=o(1);n.UrlUtility=(function(){function a(){(function(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")})(this,a)}return a.addQueryParam=function(f,u,p){return f.indexOf("?")<0&&(f+="?"),f[f.length-1]!=="?"&&(f+="&"),f+=encodeURIComponent(u),f+="=",f+=encodeURIComponent(p)},a.parseUrlFragment=function(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.Global;typeof f!="string"&&(f=p.location.href);var g=f.lastIndexOf(u);g>=0&&(f=f.substr(g+1)),u==="?"&&(g=f.indexOf("#"))>=0&&(f=f.substr(0,g));for(var y,v={},k=/([^&=]+)=([^&]*)/g,C=0;y=k.exec(f);)if(v[decodeURIComponent(y[1])]=decodeURIComponent(y[2].replace(/\+/g," ")),C++>50)return i.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",f),{error:"Response exceeded expected number of parameters"};for(var E in v)return v;return{}},a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.JoseUtil=void 0;var i=o(26),s=(function(d){return d&&d.__esModule?d:{default:d}})(o(33));n.JoseUtil=(0,s.default)({jws:i.jws,KeyUtil:i.KeyUtil,X509:i.X509,crypto:i.crypto,hextob64u:i.hextob64u,b64tohex:i.b64tohex,AllowedSigningAlgs:i.AllowedSigningAlgs})},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.OidcClientSettings=void 0;var i=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},s=(function(){function E(w,_){for(var T=0;T<_.length;T++){var F=_[T];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(w,F.key,F)}}return function(w,_,T){return _&&E(w.prototype,_),T&&E(w,T),w}})(),a=o(0),d=o(23),f=o(6),u=o(24),p=o(2);function g(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}var y=".well-known/openid-configuration",v="id_token",k="openid",C="client_secret_post";n.OidcClientSettings=(function(){function E(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=w.authority,T=w.metadataUrl,F=w.metadata,I=w.signingKeys,P=w.metadataSeed,H=w.client_id,$=w.client_secret,ee=w.response_type,j=ee===void 0?v:ee,W=w.scope,ie=W===void 0?k:W,ce=w.redirect_uri,pe=w.post_logout_redirect_uri,ae=w.client_authentication,me=ae===void 0?C:ae,ve=w.prompt,Pe=w.display,Re=w.max_age,Je=w.ui_locales,$e=w.acr_values,Me=w.resource,rt=w.response_mode,st=w.filterProtocolClaims,at=st===void 0||st,_e=w.loadUserInfo,De=_e===void 0||_e,Le=w.staleStateAge,Ue=Le===void 0?900:Le,q=w.clockSkew,A=q===void 0?300:q,b=w.clockService,R=b===void 0?new d.ClockService:b,L=w.userInfoJwtIssuer,G=L===void 0?"OP":L,Q=w.mergeClaims,de=Q!==void 0&&Q,ke=w.stateStore,Ce=ke===void 0?new f.WebStorageStateStore:ke,Ae=w.ResponseValidatorCtor,Fe=Ae===void 0?u.ResponseValidator:Ae,ze=w.MetadataServiceCtor,Ne=ze===void 0?p.MetadataService:ze,Ke=w.extraQueryParams,Oe=Ke===void 0?{}:Ke,et=w.extraTokenParams,Xe=et===void 0?{}:et;g(this,E),this._authority=_,this._metadataUrl=T,this._metadata=F,this._metadataSeed=P,this._signingKeys=I,this._client_id=H,this._client_secret=$,this._response_type=j,this._scope=ie,this._redirect_uri=ce,this._post_logout_redirect_uri=pe,this._client_authentication=me,this._prompt=ve,this._display=Pe,this._max_age=Re,this._ui_locales=Je,this._acr_values=$e,this._resource=Me,this._response_mode=rt,this._filterProtocolClaims=!!at,this._loadUserInfo=!!De,this._staleStateAge=Ue,this._clockSkew=A,this._clockService=R,this._userInfoJwtIssuer=G,this._mergeClaims=!!de,this._stateStore=Ce,this._val
115idator=new Fe(this),this._metadataService=new Ne(this),this._extraQueryParams=(Oe===void 0?"undefined":i(Oe))==="object"?Oe:{},this._extraTokenParams=(Xe===void 0?"undefined":i(Xe))==="object"?Xe:{}}return E.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},s(E,[{key:"client_id",get:function(){return this._client_id},set:function(_){if(this._client_id)throw a.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),new Error("client_id has already been assigned.");this._client_id=_}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"client_authentication",get:function(){return this._client_authentication}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(_){if(this._authority)throw a.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),new Error("authority has already been assigned.");this._authority=_}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&this._metadataUrl.indexOf(y)<0&&(this._metadataUrl[this._metadataUrl.length-1]!=="/"&&(this._metadataUrl+="/"),this._metadataUrl+=y)),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(_){this._metadata=_}},{key:"metadataSeed",get:function(){return this._metadataSeed},set:function(_){this._metadataSeed=_}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(_){this._signingKeys=_}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"mergeClaims",get:function(){return this._mergeClaims}},{key:"stateStore",get:function(){return this._stateStore}},{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(_){(_===void 0?"undefined":i(_))==="object"?this._extraQueryParams=_:this._extraQueryParams={}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(_){(_===void 0?"undefined":i(_))==="object"?this._extraTokenParams=_:this._extraTokenParams={}}}]),E})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.WebStorageStateStore=void 0;var i=o(0),s=o(1);function a(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}n.WebStorageStateStore=(function(){function d(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=f.prefix,p=u===void 0?"oidc.":u,g=f.store,y=g===void 0?s.Global.localStorage:g;a(this,d),this._store=y,this._prefix=p}return d.prototype.set=function(u,p){return i.Log.debug("WebStorageStateStore.set",u),u=this._prefix+u,this._store.setItem(u,p),Promise.resolve()},d.prototype.get=function(u){i.Log.debug("WebStorageStateStore.get",u),u=this._prefix+u;var p=this._store.getItem(u);return Promise.resolve(p)},d.prototype.remove=function(u){i.Log.debug("WebStorageStateStore.remove",u),u=this._prefix+u;var p=this._store.getItem(u);return this._store.removeItem(u),Promise.resolve(p)},d.prototype.getAllKeys=function(){i.Log.debug("WebStorageStateStore.getAllKeys");for(var u=[],p=0;p<this._store.length;p++){var g=this._store.key(p);g.indexOf(this._prefix)===0&&u.push(g.substr(this._prefix.length))}return Promise.resolve(u)},d})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.JsonService=void 0;var i=o(0),s=o(1);function a(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}n.JsonService=(function(){function d(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s.Global.XMLHttpRequest,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;a(this,d),f&&Array.isArray(f)?this._contentTypes=f.slice():this._contentTypes=[],this._contentTypes.push("application/json"),p&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=u,this._jwtHandler=p}return d.prototype.getJson=function(u,p){var g=this;if(!u)throw i.Log.error("JsonService.getJson: No url passed"),new Error("url");return i.Log.debug("JsonService.getJson, url: ",u),new Promise((function(y,v){var k=new g._XMLHttpRequest;k.open("GET",u);var C=g._contentTypes,E=g._jwtHandler;k.onload=function(){if(i.Log.debug("JsonService.getJson: HTTP response received, status",k.status),k.status===200){var w=k.getResponseHeader("Content-Type");if(w){var _=C.find((function(T){if(w.startsWith(T))return!0}));if(_=="application/jwt")return void E(k).then(y,v);if(_)try{return void y(JSON.parse(k.responseText))}catch(T){return i.Log.error("JsonService.getJson: Error parsing JSON response",T.message),void v(T)}}v(Error("Invalid response Content-Type: "+w+", from URL: "+u))}else v(Error(k.statusText+" ("+k.status+")"))},k.onerror=function(){i.Log.error("JsonService.getJson: network error"),v(Error("Network Error"))},p&&(i.Log.debug("JsonService.getJson: token passed, setting Authorization header"),k.setRequestHeader("Authorization","Bearer "+p)),k.send()}))},d.prototype.postForm=function(u,p,g){var y=this;if(!u)throw i.Log.error("JsonService.postForm: No url passed"),new Error("url");return i.Log.debug("JsonService.postForm, url: ",u),new Promise((function(v,k){var C=new y._XMLHttpRequest;C.open("POST",u);var E=y._contentTypes;C.onload=function(){if(i.Log.debug("JsonService.postForm: HTTP response received, status",C.status),C.status!==200){if(C.status===400&&(I=C.getResponseHeader("Content-Type"))&&E.find((function(P){if(I.startsWith(P))return!0})))try{var F=JSON.parse(C.responseText);if(F&&F.error)return i.Log.error("JsonService.postForm: Error from server: ",F.error),void k(new Error(F.error))}catch(P){return i.Log.error("JsonService.postForm: Error parsing JSON response",P.message),void k(P)}k(Error(C.statusText+" ("+C.status+")"))}else{var I;if((I=C.getResponseHeader("Content-Type"))&&E.find((function(P){if(I.startsWith(P))return!0})))try{return void v(JSON.parse(C.responseText))}catch(P){return i.Log.error("JsonService.postForm: Error parsing JSON response",P.message),void k(P)}k(Error("Invalid response Content-Type: "+I+", from URL: "+u))}},C.onerror=function(){i.Log.error("JsonService.postForm: network error"),k(Error("Network Error"))};var w="";for(var _ in p){var T=p[_];T&&(w.length>0&&(w+="&"),w+=encodeURIComponent(_),w+="=",w+=encodeURIComponent(T))}C.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g!==void 0&&C.setRequestHeader("Authorization","Basic "+btoa(g)),C.send(w)}))},d})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.SigninRequest=void 0;var i=o(0),s=o(3),a=o(13);n.SigninRequest=(function(){function d(f){var u=f.url,p=f.client_id,g=f.redirect_uri,y=f.response_type,v=f.scope,k=f.authority,C=f.data,E=f.prompt,w=f.display,_=f.max_age,T=f.ui_locales,F=f.id_token_hint,I=f.login_hint,P=f.acr_values,H=f.resource,$=f.response_mode,ee=f.request,j=f.request_uri,W=f.extraQueryParams,ie=f.request_type,ce=f.client_secret,pe=f.extraTokenParams,ae=f.skipUserInfo;
115if((function(Me,rt){if(!(Me instanceof rt))throw new TypeError("Cannot call a class as a function")})(this,d),!u)throw i.Log.error("SigninRequest.ctor: No url passed"),new Error("url");if(!p)throw i.Log.error("SigninRequest.ctor: No client_id passed"),new Error("client_id");if(!g)throw i.Log.error("SigninRequest.ctor: No redirect_uri passed"),new Error("redirect_uri");if(!y)throw i.Log.error("SigninRequest.ctor: No response_type passed"),new Error("response_type");if(!v)throw i.Log.error("SigninRequest.ctor: No scope passed"),new Error("scope");if(!k)throw i.Log.error("SigninRequest.ctor: No authority passed"),new Error("authority");var me=d.isOidc(y),ve=d.isCode(y);$||($=d.isCode(y)?"query":null),this.state=new a.SigninState({nonce:me,data:C,client_id:p,authority:k,redirect_uri:g,code_verifier:ve,request_type:ie,response_mode:$,client_secret:ce,scope:v,extraTokenParams:pe,skipUserInfo:ae}),u=s.UrlUtility.addQueryParam(u,"client_id",p),u=s.UrlUtility.addQueryParam(u,"redirect_uri",g),u=s.UrlUtility.addQueryParam(u,"response_type",y),u=s.UrlUtility.addQueryParam(u,"scope",v),u=s.UrlUtility.addQueryParam(u,"state",this.state.id),me&&(u=s.UrlUtility.addQueryParam(u,"nonce",this.state.nonce)),ve&&(u=s.UrlUtility.addQueryParam(u,"code_challenge",this.state.code_challenge),u=s.UrlUtility.addQueryParam(u,"code_challenge_method","S256"));var Pe={prompt:E,display:w,max_age:_,ui_locales:T,id_token_hint:F,login_hint:I,acr_values:P,resource:H,request:ee,request_uri:j,response_mode:$};for(var Re in Pe)Pe[Re]&&(u=s.UrlUtility.addQueryParam(u,Re,Pe[Re]));for(var Je in W)u=s.UrlUtility.addQueryParam(u,Je,W[Je]);this.url=u}return d.isOidc=function(u){return!!u.split(/\s+/g).filter((function(p){return p==="id_token"}))[0]},d.isOAuth=function(u){return!!u.split(/\s+/g).filter((function(p){return p==="token"}))[0]},d.isCode=function(u){return!!u.split(/\s+/g).filter((function(p){return p==="code"}))[0]},d})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.State=void 0;var i=(function(){function f(u,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,p,g){return p&&f(u.prototype,p),g&&f(u,g),u}})(),s=o(0),a=(function(u){return u&&u.__esModule?u:{default:u}})(o(14));function d(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}n.State=(function(){function f(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=u.id,g=u.data,y=u.created,v=u.request_type;d(this,f),this._id=p||(0,a.default)(),this._data=g,this._created=typeof y=="number"&&y>0?y:parseInt(Date.now()/1e3),this._request_type=v}return f.prototype.toStorageString=function(){return s.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},f.fromStorageString=function(p){return s.Log.debug("State.fromStorageString"),new f(JSON.parse(p))},f.clearStaleState=function(p,g){var y=Date.now()/1e3-g;return p.getAllKeys().then((function(v){s.Log.debug("State.clearStaleState: got keys",v);for(var k=[],C=function(T){var F=v[T];w=p.get(F).then((function(I){var P=!1;if(I)try{var H=f.fromStorageString(I);s.Log.debug("State.clearStaleState: got item from key: ",F,H.created),H.created<=y&&(P=!0)}catch($){s.Log.error("State.clearStaleState: Error parsing state for key",F,$.message),P=!0}else s.Log.debug("State.clearStaleState: no item in storage for key: ",F),P=!0;if(P)return s.Log.debug("State.clearStaleState: removed item for key: ",F),p.remove(F)})),k.push(w)},E=0;E<v.length;E++){var w;C(E)}return s.Log.debug("State.clearStaleState: waiting on promise count:",k.length),Promise.all(k)}))},i(f,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"created",get:function(){return this._created}},{key:"request_type",get:function(){return this._request_type}}]),f})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.OidcClient=void 0;var i=(function(){function C(E,w){for(var _=0;_<w.length;_++){var T=w[_];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(E,T.key,T)}}return function(E,w,_){return w&&C(E.prototype,w),_&&C(E,_),E}})(),s=o(0),a=o(5),d=o(12),f=o(8),u=o(34),p=o(35),g=o(36),y=o(13),v=o(9);function k(C,E){if(!(C instanceof E))throw new TypeError("Cannot call a class as a function")}n.OidcClient=(function(){function C(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};k(this,C),E instanceof a.OidcClientSettings?this._settings=E:this._settings=new a.OidcClientSettings(E)}return C.prototype.createSigninRequest=function(){var w=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=_.response_type,F=_.scope,I=_.redirect_uri,P=_.data,H=_.state,$=_.prompt,ee=_.display,j=_.max_age,W=_.ui_locales,ie=_.id_token_hint,ce=_.login_hint,pe=_.acr_values,ae=_.resource,me=_.request,ve=_.request_uri,Pe=_.response_mode,Re=_.extraQueryParams,Je=_.extraTokenParams,$e=_.request_type,Me
vendor: 4,808 bytes, line 115
115=_.skipUserInfo,rt=arguments[1];s.Log.debug("OidcClient.createSigninRequest");var st=this._settings.client_id;T=T||this._settings.response_type,F=F||this._settings.scope,I=I||this._settings.redirect_uri,$=$||this._settings.prompt,ee=ee||this._settings.display,j=j||this._settings.max_age,W=W||this._settings.ui_locales,pe=pe||this._settings.acr_values,ae=ae||this._settings.resource,Pe=Pe||this._settings.response_mode,Re=Re||this._settings.extraQueryParams,Je=Je||this._settings.extraTokenParams;var at=this._settings.authority;return f.SigninRequest.isCode(T)&&T!=="code"?Promise.reject(new Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then((function(_e){s.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",_e);var De=new f.SigninRequest({url:_e,client_id:st,redirect_uri:I,response_type:T,scope:F,data:P||H,authority:at,prompt:$,display:ee,max_age:j,ui_locales:W,id_token_hint:ie,login_hint:ce,acr_values:pe,resource:ae,request:me,request_uri:ve,extraQueryParams:Re,extraTokenParams:Je,request_type:$e,response_mode:Pe,client_secret:w._settings.client_secret,skipUserInfo:Me}),Le=De.state;return(rt=rt||w._stateStore).set(Le.id,Le.toStorageString()).then((function(){return De}))}))},C.prototype.readSigninResponseState=function(w,_){var T=arguments.length>2&&arguments[2]!==void 0&&arguments[2];s.Log.debug("OidcClient.readSigninResponseState");var F=this._settings.response_mode==="query"||!this._settings.response_mode&&f.SigninRequest.isCode(this._settings.response_type),I=F?"?":"#",P=new u.SigninResponse(w,I);if(!P.state)return s.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(new Error("No state in response"));_=_||this._stateStore;var H=T?_.remove.bind(_):_.get.bind(_);return H(P.state).then((function($){if(!$)throw s.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:y.SigninState.fromStorageString($),response:P}}))},C.prototype.processSigninResponse=function(w,_){var T=this;return s.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(w,_,!0).then((function(F){var I=F.state,P=F.response;return s.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),T._validator.validateSigninResponse(I,P)}))},C.prototype.createSignoutRequest=function(){var w=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=_.id_token_hint,F=_.data,I=_.state,P=_.post_logout_redirect_uri,H=_.extraQueryParams,$=_.request_type,ee=arguments[1];return s.Log.debug("OidcClient.createSignoutRequest"),P=P||this._settings.post_logout_redirect_uri,H=H||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then((function(j){if(!j)throw s.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),new Error("no end session endpoint");s.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",j);var W=new p.SignoutRequest({url:j,id_token_hint:T,post_logout_redirect_uri:P,data:F||I,extraQueryParams:H,request_type:$}),ie=W.state;return ie&&(s.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(ee=ee||w._stateStore).set(ie.id,ie.toStorageString())),W}))},C.prototype.readSignoutResponseState=function(w,_){var T=arguments.length>2&&arguments[2]!==void 0&&arguments[2];s.Log.debug("OidcClient.readSignoutResponseState");var F=new g.SignoutResponse(w);if(!F.state)return s.Log.debug("OidcClient.readSignoutResponseState: No state in response"),F.error?(s.Log.warn("OidcClient.readSignoutResponseState: Response was error: ",F.error),Promise.reject(new d.ErrorResponse(F))):Promise.resolve({state:void 0,response:F});var I=F.state;_=_||this._stateStore;var P=T?_.remove.bind(_):_.get.bind(_);return P(I).then((function(H){if(!H)throw s.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),new Error("No matching state found in storage");return{state:v.State.fromStorageString(H),response:F}}))},C.prototype.processSignoutResponse=function(w,_){var T=this;return s.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(w,_,!0).then((function(F){var I=F.state,P=F.response;return I?(s.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),T._validator.validateSignoutResponse(I,P)):(s.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),P)}))},C.prototype.clearStaleState=function(w){return s.Log.debug("OidcClient.clearStaleState"),w=w||this._stateStore,v.State.clearStaleState(w,this.settings.staleStateAge)},i(C,[{key:"_stateStore",get:function(){return this.settings.stateStore}}
115,{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),C})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenClient=void 0;var i=o(7),s=o(2),a=o(0);function d(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}n.TokenClient=(function(){function f(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.JsonService,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.MetadataService;if(d(this,f),!u)throw a.Log.error("TokenClient.ctor: No settings passed"),new Error("settings");this._settings=u,this._jsonService=new p,this._metadataService=new g(this._settings)}return f.prototype.exchangeCode=function(){var p=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(g=Object.assign({},g)).grant_type=g.grant_type||"authorization_code",g.client_id=g.client_id||this._settings.client_id,g.client_secret=g.client_secret||this._settings.client_secret,g.redirect_uri=g.redirect_uri||this._settings.redirect_uri;var y=void 0,v=g._client_authentication||this._settings._client_authentication;return delete g._client_authentication,g.code?g.redirect_uri?g.code_verifier?g.client_id?g.client_secret||v!="client_secret_basic"?(v=="client_secret_basic"&&(y=g.client_id+":"+g.client_secret,delete g.client_id,delete g.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(k){return a.Log.debug("TokenClient.exchangeCode: Received token endpoint"),p._jsonService.postForm(k,g,y).then((function(C){return a.Log.debug("TokenClient.exchangeCode: response received"),C}))}))):(a.Log.error("TokenClient.exchangeCode: No client_secret passed"),Promise.reject(new Error("A client_secret is required"))):(a.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(new Error("A code_verifier is required"))):(a.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(new Error("A redirect_uri is required"))):(a.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(new Error("A code is required")))},f.prototype.exchangeRefreshToken=function(){var p=this,g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(g=Object.assign({},g)).grant_type=g.grant_type||"refresh_token",g.client_id=g.client_id||this._settings.client_id,g.client_secret=g.client_secret||this._settings.client_secret;var y=void 0,v=g._client_authentication||this._settings._client_authentication;return delete g._client_authentication,g.refresh_token?g.client_id?(v=="client_secret_basic"&&(y=g.client_id+":"+g.client_secret,delete g.client_id,delete g.client_secret),this._metadataService.getTokenEndpoint(!1).then((function(k){return a.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),p._jsonService.postForm(k,g,y).then((function(C){return a.Log.debug("TokenClient.exchangeRefreshToken: response received"),C}))}))):(a.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(new Error("A client_id is required"))):(a.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(new Error("A refresh_token is required")))},f})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorResponse=void 0;var i=o(0);function s(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function a(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||typeof f!="object"&&typeof f!="function"?d:f}n.ErrorResponse=(function(d){function f(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=u.error,g=u.error_description,y=u.error_uri,v=u.state,k=u.session_state;if(s(this,f),!p)throw i.Log.error("No error passed to ErrorResponse"),new Error("error");var C=a(this,d.call(this,g||p));return C.name="ErrorResponse",C.error=p,C.error_description=g,C.error_uri=y,C.state=v,C.session_state=k,C}return(function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)})(f,d),f})(Error)},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.SigninState=void 0;var i=(function(){function g(y,v){for(var k=0;k<v.length;k++){var C=v[k];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(y,C.key,C)}}return function(y,v,k){return v&&g(y.prototype,v),k&&g(y,k),y}})(),s=o(0),a=o(9),d=o(4),f=(function(y){return y&&y.__esModule?y:{default:y}})(o(14));function u(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function p(g,y){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?g:y}n.SigninState=(function(g){function y(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=v.nonce,C=v.authority,E=v.client_id,w=v.redirect_uri,_=v.code_verifier,T=v.response_mode,F=v.client_secret,I=v.scope,P=v.extraTokenParams,H=v.skipUserInfo;u(this,y);var $=p(this,g.call(this,arguments[0]));if(k===!0?$._nonce=(0,f.default)():k&&($._nonce=k),_===!0?$._code_verifier=(0,f.default)()+(0,f.default)()+(0,f.default)():_&&($._code_verifier=_),$.code_verifier){var ee=d.JoseUtil.hashString($.code_verifier,"SHA256");$._code_challenge=d.JoseUtil.hexToBase64Url(ee)}return $._redirect_uri=w,$._authority=C,$._client_id=E,$._response_mode=T,$._client_secret=F,$._scope=I,$._extraTokenParams=P,$._skipUserInfo=H,$}return(function(k,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);k.prototype=Object.create(C&&C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(k,C):k.__proto__=C)})(y,g),y.prototype.toStorageString=function(){return s.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},y.fromStorageString=function(k){return s.Log.debug("SigninState.fromStorageString"),new y(JSON.parse(k))},i(y,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),y})(a.State)},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return(i!="undefined"&&i!==null&&i.getRandomValues!==void 0?s:a)().replace(/-/g,"")};var i=typeof window<"u"?window.crypto||window.msCrypto:null;function s(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(d){return(d^i.getRandomValues(new Uint8Array(1))[0]&15>>d/4).toString(16)}))}function a(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(d){return(d^16*Math.random()>>d/4).toString(16)}))}r.exports=n.default},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.User=void 0;var i=(function(){function a(d,f){for(var u=0;u<f.length;u++){var p=f[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,f,u){return f&&a(d.prototype,f),u&&a(d,u),d}})(),s=o(0);n.User=(function(){function a(d){var f=d.id_token,u=d.session_state,p=d.access_token,g=d.refresh_token,y=d.token_type,v=d.scope,k=d.profile,C=d.expires_at,E=d.state;(function(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")})(this,a),this.id_token=f,this.session_state=u,this.access_token=p,this.refresh_token=g,this.token_type=y,this.scope=v,this.profile=k,this.expires_at=C,this.state=E}return a.prototype.toStorageString=function(){return s.Log.debug("User.toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})},a.fromStorageString=function(f){return s.Log.debug("User.fromStorageString"),new a(JSON.parse(f))},i(a,[{key:"expires_in",get:function(){if(this.expires_at){var f=parseInt(Date.now()/1e3);return this.expires_at-f}},set:function(f){var u=parseInt(f);if(typeof u=="number"&&u>0){var p=parseInt(Date.now()/1e3);this.expires_at=p+u}}},{key:"expired",get:function(){var f=this.expires_in;if(f!==void 0)return f<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.AccessTokenEvents=void 0;var i=o(0),s=o(46);function a(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}n.AccessTokenEvents=(function(){function d(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=f.accessTokenExpiringNotificationTime,p=u===void 0?60:u,g=f.accessTokenExpiringTimer,y=g===void 0?new s.Timer("Access token expiring"):g,v=f.accessTokenExpiredTimer,k=v===void 0?new s.Timer("Access token expired"):v;a(this,d),this._accessTokenExpiringNotificationTime=p,this._accessTokenExpiring=y,this._accessTokenExpired=k}return d.prototype.load=function(u){if(u.access_token&&u.expires_in!==void 0){var p=u.expires_in;
vendor: 41,563 bytes, lines 115-127
115if(i.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",p),p>0){var g=p-this._accessTokenExpiringNotificationTime;g<=0&&(g=1),i.Log.debug("AccessTokenEvents.load: registering expiring timer in:",g),this._accessTokenExpiring.init(g)}else i.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var y=p+1;i.Log.debug("AccessTokenEvents.load: registering expired timer in:",y),this._accessTokenExpired.init(y)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},d.prototype.unload=function(){i.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},d.prototype.addAccessTokenExpiring=function(u){this._accessTokenExpiring.addHandler(u)},d.prototype.removeAccessTokenExpiring=function(u){this._accessTokenExpiring.removeHandler(u)},d.prototype.addAccessTokenExpired=function(u){this._accessTokenExpired.addHandler(u)},d.prototype.removeAccessTokenExpired=function(u){this._accessTokenExpired.removeHandler(u)},d})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.Event=void 0;var i=o(0);n.Event=(function(){function s(a){(function(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")})(this,s),this._name=a,this._callbacks=[]}return s.prototype.addHandler=function(d){this._callbacks.push(d)},s.prototype.removeHandler=function(d){var f=this._callbacks.findIndex((function(u){return u===d}));f>=0&&this._callbacks.splice(f,1)},s.prototype.raise=function(){i.Log.debug("Event: Raising event: "+this._name);for(var d=0;d<this._callbacks.length;d++){var f;(f=this._callbacks)[d].apply(f,arguments)}},s})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.SessionMonitor=void 0;var i=(function(){function u(p,g){for(var y=0;y<g.length;y++){var v=g[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,g,y){return g&&u(p.prototype,g),y&&u(p,y),p}})(),s=o(0),a=o(19),d=o(1);function f(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")}n.SessionMonitor=(function(){function u(p){var g=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.CheckSessionIFrame,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.Global.timer;if(f(this,u),!p)throw s.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),new Error("userManager");this._userManager=p,this._CheckSessionIFrameCtor=y,this._timer=v,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then((function(k){k?g._start(k):g._settings.monitorAnonymousSession&&g._userManager.querySessionStatus().then((function(C){var E={session_state:C.session_state};C.sub&&C.sid&&(E.profile={sub:C.sub,sid:C.sid}),g._start(E)})).catch((function(C){s.Log.error("SessionMonitor ctor: error from querySessionStatus:",C.message)}))})).catch((function(k){s.Log.error("SessionMonitor ctor: error from getUser:",k.message)})))}return u.prototype._start=function(g){var y=this,v=g.session_state;v&&(g.profile?(this._sub=g.profile.sub,this._sid=g.profile.sid,s.Log.debug("SessionMonitor._start: session_state:",v,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,s.Log.debug("SessionMonitor._start: session_state:",v,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(v):this._metadataService.getCheckSessionIframe().then((function(k){if(k){s.Log.debug("SessionMonitor._start: Initializing check session iframe");var C=y._client_id,E=y._checkSessionInterval,w=y._stopCheckSessionOnError;y._checkSessionIFrame=new y._CheckSessionIFrameCtor(y._callback.bind(y),C,k,E,w),y._checkSessionIFrame.load().then((function(){y._checkSessionIFrame.start(v)}))}else s.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")})).catch((function(k){s.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",k.message)})))},u.prototype._stop=function(){var g=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(s.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var y=this._timer.setInterval((function(){g._timer.clearInterval(y),g._userManager.querySessionStatus().then((function(v){var k={session_state:v.session_state};v.sub&&v.sid&&(k.profile={sub:v.sub,sid:v.sid}),g._start(k)})).catch((function(v){s.Log.error("SessionMonitor: error from querySessionStatus:",v.message)}))}),1e3)},u.prototype._callback=function(){var g=this;this._userManager.querySessionStatus().then((function(y){var v=!0;y?y.sub===g._sub?(v=!1,g._checkSessionIFrame.start(y.session_state),y.sid===g._sid?s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",y.session_state):(s.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",y.session_state),g._userManager.events._raiseUserSessionChanged())):s.Log.debug("SessionMonitor._callback: Different subject signed into OP:",y.sub):s.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),v&&(g._sub?(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),g._userManager.events._raiseUserSignedOut()):(s.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),g._userManager.events._raiseUserSignedIn()))})).catch((function(y){g._sub&&(s.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",y.message),g._userManager.events._raiseUserSignedOut())}))},i(u,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),u})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.CheckSessionIFrame=void 0;var i=o(0);function s(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}n.CheckSessionIFrame=(function(){function a(d,f,u,p){var g=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];s(this,a),this._callback=d,this._client_id=f,this._url=u,this._interval=p||2e3,this._stopOnError=g;var y=u.indexOf("/",u.indexOf("//")+2);this._frame_origin=u.substr(0,y),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=u}return a.prototype.load=function(){var f=this;return new Promise((function(u){f._frame.onload=function(){u()},window.document.body.appendChild(f._frame),f._boundMessageEvent=f._message.bind(f),window.addEventListener("message",f._boundMessageEvent,!1)}))},a.prototype._message=function(f){f.origin===this._frame_origin&&f.source===this._frame.contentWindow&&(f.data==="error"?(i.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):f.data==="changed"?(i.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):i.Log.debug("CheckSessionIFrame: "+f.data+" message from check session op iframe"))},a.prototype.start=function(f){var u=this;if(this._session_state!==f){i.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=f;var p=function(){u._frame.contentWindow.postMessage(u._client_id+" "+u._session_state,u._frame_origin)};p(),this._timer=window.setInterval(p,this._interval)}},a.prototype.stop=function(){this._session_state=null,this._timer&&(i.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenRevocationClient=void 0;var i=o(0),s=o(2),a=o(1);function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}var f="access_token",u="refresh_token";n.TokenRevocationClient=(function(){function p(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.Global.XMLHttpRequest,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.MetadataService;if(d(this,p),!g)throw i.Log.error("TokenRevocationClient.ctor: No settings provided"),new Error("No settings provided.");this._settings=g,this._XMLHttpRequestCtor=y,this._metadataService=new v(this._settings)}return p.prototype.revoke=function(y,v){var k=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"access_token";if(!y)throw i.Log.error("TokenRevocationClient.revoke: No token provided"),new Error("No token provided.");if(C!==f&&C!=u)throw i.Log.error("TokenRevocationClient.revoke: Invalid token type"),new Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then((function(E){if(E){i.Log.debug("TokenRevocationClient.revoke: Revoking "+C);var w=k._settings.client_id,_=k._settings.client_secret;return k._revoke(E,w,_,y,C)}if(v)throw i.Log.error("TokenRevocationClient.revoke: Revocation not supported"),new Error("Revocation not supported")}))},p.prototype._revoke=function(y,v,k,C,E){var w=this;return new Promise((function(_,T){var F=new w._XMLHttpRequestCtor;F.open("POST",y),F.onload=function(){i.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",F.status),F.status===200?_():T(Error(F.statusText+" ("+F.status+")"))},F.onerror=function(){i.Log.debug("TokenRevocationClient.revoke: Network Error."),T("Network Error")};var I="client_id="+encodeURIComponent(v);k&&(I+="&client_secret="+encodeURIComponent(k)),I+="&token_type_hint="+encodeURIComponent(E),I+="&token="+encodeURIComponent(C),F.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),F.send(I)}))},p})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.CordovaPopupWindow=void 0;var i=(function(){function a(d,f){for(var u=0;u<f.length;u++){var p=f[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,f,u){return f&&a(d.prototype,f),u&&a(d,u),d}})(),s=o(0);n.CordovaPopupWindow=(function(){function a(d){var f=this;(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,a),this._promise=new Promise((function(u,p){f._resolve=u,f._reject=p})),this.features=d.popupWindowFeatures||"location=no,toolbar=no,zoom=no",this.target=d.popupWindowTarget||"_blank",this.redirect_uri=d.startUrl,s.Log.debug("CordovaPopupWindow.ctor: redirect_uri: "+this.redirect_uri)}return a.prototype._isInAppBrowserInstalled=function(f){return["cordova-plugin-inappbrowser","cordova-plugin-inappbrowser.inappbrowser","org.apache.cordova.inappbrowser"].some((function(u){return f.hasOwnProperty(u)}))},a.prototype.navigate=function(f){if(f&&f.url){if(!window.cordova)return this._error("cordova is undefined");var u=window.cordova.require("cordova/plugin_list").metadata;if(this._isInAppBrowserInstalled(u)===!1)return this._error("InAppBrowser plugin not found");this._popup=cordova.InAppBrowser.open(f.url,this.target,this.features),this._popup?(s.Log.debug("CordovaPopupWindow.navigate: popup successfully created"),this._exitCallbackEvent=this._exitCallback.bind(this),this._loadStartCallbackEvent=this._loadStartCallback.bind(this),this._popup.addEventListener("exit",this._exitCallbackEvent,!1),this._popup.addEventListener("loadstart",this._loadStartCallbackEvent,!1)):this._error("Error opening popup window")}else this._error("No url provided");return this.promise},a.prototype._loadStartCallback=function(f){f.url.indexOf(this.redirect_uri)===0&&this._success({url:f.url})},a.prototype._exitCallback=function(f){this._error(f)},a.prototype._success=function(f){this._cleanup(),s.Log.debug("CordovaPopupWindow: Successful response from cordova popup window"),this._resolve(f)},a.prototype._error=function(f){this._cleanup(),s.Log.error(f),this._reject(new Error(f))},a.prototype.close=function(){this._cleanup()},a.prototype._cleanup=function(){this._popup&&(s.Log.debug("CordovaPopupWindow: cleaning up popup"),this._popup.removeEventListener("exit",this._exitCallbackEvent,!1),this._popup.removeEventListener("loadstart",this._loadStartCallbackEvent,!1),this._popup.close()),this._popup=null},i(a,[{key:"promise",get:function(){return this._promise}}]),a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var i=o(0),s=o(10),a=o(5),d=o(6),f=o(37),u=o(38),p=o(16),g=o(2),y=o(48),v=o(49),k=o(19),C=o(20),E=o(18),w=o(1),_=o(15),T=o(50);n.default={Version:T.Version,Log:i.Log,OidcClient:s.OidcClient,OidcClientSettings:a.OidcClientSettings,WebStorageStateStore:d.WebStorageStateStore,InMemoryWebStorage:f.InMemoryWebStorage,UserManager:u.UserManager,AccessTokenEvents:p.AccessTokenEvents,MetadataService:g.MetadataService,CordovaPopupNavigator:y.CordovaPopupNavigator,CordovaIFrameNavigator:v.CordovaIFrameNavigator,CheckSessionIFrame:k.CheckSessionIFrame,TokenRevocationClient:C.TokenRevocationClient,SessionMonitor:E.SessionMonitor,Global:w.Global,User:_.User},r.exports=n.default},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.ClockService=(function(){function i(){(function(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")})(this,i)}return i.prototype.getEpochTime=function(){return Promise.resolve(Date.now()/1e3|0)},i})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.ResponseValidator=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},s=o(0),a=o(2),d=o(25),f=o(11),u=o(12),p=o(4);function g(v,k){if(!(v instanceof k))throw new TypeError("Cannot call a class as a function")}var y=["nonce","at_hash","iat","nbf","exp","aud","iss","c_hash"];n.ResponseValidator=(function(){function v(k){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.MetadataService,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.UserInfoService,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:p.JoseUtil,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f.TokenClient;if(g(this,v),!k)throw s.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),new Error("settings");this._settings=k,this._metadataService=new C(this._settings),this._userInfoService=new E(this._settings),this._joseUtil=w,this._tokenClient=new _(this._settings)}return v.prototype.validateSigninResponse=function(C,E){var w=this;return s.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(C,E).then((function(_){return s.Log.debug("ResponseValidator.validateSigninResponse: state processed"),w._validateTokens(C,_).then((function(T){return s.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),w._processClaims(C,T).then((function(F){return s.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),F}))}))}))},v.prototype.validateSignoutResponse=function(C,E){return C.id!==E.state?(s.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(new Error("State does not match"))):(s.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),E.state=C.data,E.error?(s.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",E.error),Promise.reject(new u.ErrorResponse(E))):Promise.resolve(E))},v.prototype._processSigninParams=function(C,E){if(C.id!==E.state)return s.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(new Error("State does not match"));if(!C.client_id)return s.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(new Error("No client_id on state"));if(!C.authority)return s.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(new Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==C.authority)return s.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(new Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=C.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==C.client_id)return s.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(new Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=C.client_id;return s.Log.debug("ResponseValidator._processSigninParams: state validated"),E.state=C.data,E.error?(s.Log.warn("ResponseValidator._processSigninParams: Response was error",E.error),Promise.reject(new u.ErrorResponse(E))):C.nonce&&!E.id_token?(s.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(new Error("No id_token in response"))):!C.nonce&&E.id_token?(s.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(new Error("Unexpected id_token in response"))):C.code_verifier&&!E.code?(s.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(new Error("No code in response"))):!C.code_verifier&&E.code?(s.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(new Error("Unexpected code in response"))):(E.scope||(E.scope=C.scope),Promise.resolve(E))},v.prototype._processClaims=function(C,E){var w=this;if(E.isOpenIdConnect){if(s.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),E.profile=this._filterProtocolClaims(E.profile),C.skipUserInfo!==!0&&this._settings.loadUserInfo&&E.access_token)return s.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(E.access_token).then((function(_){return s.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),_.sub!==E.profile.sub?(s.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token"),Promise.reject(new Error("sub from user info endpoint does not match sub in id_token"))):(E.profile=w._mergeClaims(E.profile,_),s.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",E.profile),E)}));s.Log.debug("ResponseValidator._processClaims: not loading user info")}else s.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(E)},v.prototype._mergeClaims=function(C,E){var w=Object.assign({},C);for(var _ in E){var T=E[_];Array.isArray(T)||(T=[T]);for(var F=0;F<T.length;F++){var I=T[F];w[_]?Array.isArray(w[_])?w[_].indexOf(I)<0&&w[_].push(I):w[_]!==I&&((I===void 0?"undefined":i(I))==="object"&&this._settings.mergeClaims?w[_]=this._mergeClaims(w[_],I):w[_]=[w[_],I]):w[_]=I}}return w},v.prototype._filterProtocolClaims=function(C){s.Log.debug("ResponseValidator._filterProtocolClaims, incoming claims:",C);var E=Object.assign({},C);return this._settings._filterProtocolClaims?(y.forEach((function(w){delete E[w]})),s.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims filtered",E)):s.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims not filtered"),E},v.prototype._validateTokens=function(C,E){return E.code?(s.Log.debug("ResponseValidator._validateTokens: Validating code"),this._processCode(C,E)):E.id_token?E.access_token?(s.Log.debug("ResponseValidator._validateTokens: Validating id_token and access_token"),this._validateIdTokenAndAccessToken(C,E)):(s.Log.debug("ResponseValidator._validateTokens: Validating id_token"),this._validateIdToken(C,E)):(s.Log.debug("ResponseValidator._validateTokens: No code to process or id_token to validate"),Promise.resolve(E))},v.prototype._processCode=function(C,E){var w=this,_={client_id:C.client_id,client_secret:C.client_secret,code:E.code,redirect_uri:C.redirect_uri,code_verifier:C.code_verifier};return C.extraTokenParams&&i(C.extraTokenParams)==="object"&&Object.assign(_,C.extraTokenParams),this._tokenClient.exchangeCode(_).then((function(T){for(var F in T)E[F]=T[F];return E.id_token?(s.Log.debug("ResponseValidator._processCode: token response successful, processing id_token"),w._validateIdTokenAttributes(C,E)):(s.Log.debug("ResponseValidator._processCode: token response successful, returning response"),E)}))},v.prototype._validateIdTokenAttributes=function(C,E){var w=this;return this._metadataService.getIssuer().then((function(_){var T=C.client_id,F=w._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdTokenAttributes: Validaing JWT attributes; using clock skew (in seconds) of: ",F),w._settings.getEpochTime().then((function(I){return w._joseUtil.validateJwtAttributes(E.id_token,_,T,F,I).then((function(P){return C.nonce&&C.nonce!==P.nonce?(s.Log.error("ResponseValidator._validateIdTokenAttributes: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):P.sub?(E.profile=P,E):(s.Log.error("ResponseValidator._validateIdTokenAttributes: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))}))},v.prototype._validateIdTokenAndAccessToken=function(C,E){var w=this;return this._validateIdToken(C,E).then((function(_){return w._validateAccessToken(_)}))},v.prototype._getSigningKeyForJwt=function(C){var E=this;return this._metadataService.getSigningKeys().then((function(w){var _=C.header.kid;if(!w)return s.Log.error("ResponseValidator._validateIdToken: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));s.Log.debug("ResponseValidator._validateIdToken: Received signing keys");var T=void 0;if(_)T=w.filter((function(F){return F.kid===_}))[0];else{if((w=E._filterByAlg(w,C.header.alg)).length>1)return s.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));T=w[0]}return Promise.resolve(T)}))},v.prototype._getSigningKeyForJwtWithSingleRetry=function(C){var E=this;return this._getSigningKeyForJwt(C).then((function(w){return w?Promise.resolve(w):(E._metadataService.resetSigningKeys(),E._getSigningKeyForJwt(C))}))},v.prototype._validateIdToken=function(C,E){var w=this;if(!C.nonce)return s.Log.error("ResponseValidator._validateIdToken: No nonce on state"),Promise.reject(new Error("No nonce on state"));var _=this._joseUtil.parseJwt(E.id_token);return _&&_.header&&_.payload?C.nonce!==_.payload.nonce?(s.Log.error("ResponseValidator._validateIdToken: Invalid nonce in id_token"),Promise.reject(new Error("Invalid nonce in id_token"))):this._metadataService.getIssuer().then((function(T){return s.Log.debug("ResponseValidator._validateIdToken: Received issuer"),w._getSigningKeyForJwtWithSingleRetry(_).then((function(F){if(!F)return s.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var I=C.client_id,P=w._settings.clockSkew;return s.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",P),w._joseUtil.validateJwt(E.id_token,F,T,I,P).then((function(){return s.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),_.payload.sub?(E.profile=_.payload,E):(s.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(new Error("No sub present in id_token")))}))}))})):(s.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token",_),Promise.reject(new Error("Failed to parse id_token")))},v.prototype._filterByAlg=function(C,E){var w=null;if(E.startsWith("RS"))w="RSA";else if(E.startsWith("PS"))w="PS";else{if(!E.startsWith("ES"))return s.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",E),[];w="EC"}return s.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",w),C=C.filter((function(_){return _.kty===w})),s.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",w,C.length),C},v.prototype._validateAccessToken=function(C){if(!C.profile)return s.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(new Error("No profile loaded from id_token"));if(!C.profile.at_hash)return s.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(new Error("No at_hash in id_token"));if(!C.id_token)return s.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(new Error("No id_token"));var E=this._joseUtil.parseJwt(C.id_token);if(!E||!E.header)return s.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",E),Promise.reject(new Error("Failed to parse id_token"));var w=E.header.alg;if(!w||w.length!==5)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",w),Promise.reject(new Error("Unsupported alg: "+w));var _=w.substr(2,3);if(!_)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",w,_),Promise.reject(new Error("Unsupported alg: "+w));if((_=parseInt(_))!==256&&_!==384&&_!==512)return s.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",w,_),Promise.reject(new Error("Unsupported alg: "+w));var T="sha"+_,F=this._joseUtil.hashString(C.access_token,T);if(!F)return s.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",T),Promise.reject(new Error("Failed to validate at_hash"));var I=F.substr(0,F.length/2),P=this._joseUtil.hexToBase64Url(I);return P!==C.profile.at_hash?(s.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",P,C.profile.at_hash),Promise.reject(new Error("Failed to validate at_hash"))):(s.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(C))},v})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.UserInfoService=void 0;var i=o(7),s=o(2),a=o(0),d=o(4);function f(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")}n.UserInfoService=(function(){function u(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.JsonService,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.MetadataService,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d.JoseUtil;if(f(this,u),!p)throw a.Log.error("UserInfoService.ctor: No settings passed"),new Error("settings");this._settings=p,this._jsonService=new g(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new y(this._settings),this._joseUtil=v}return u.prototype.getClaims=function(g){var y=this;return g?this._metadataService.getUserInfoEndpoint().then((function(v){return a.Log.debug("UserInfoService.getClaims: received userinfo url",v),y._jsonService.getJson(v,g).then((function(k){return a.Log.debug("UserInfoService.getClaims: claims received",k),k}))})):(a.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(new Error("A token is required")))},u.prototype._getClaimsFromJwt=function(g){var y=this;try{var v=this._joseUtil.parseJwt(g.responseText);if(!v||!v.header||!v.payload)return a.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",v),Promise.reject(new Error("Failed to parse id_token"));var k=v.header.kid,C=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":C=this._metadataService.getIssuer();break;case"ANY":C=Promise.resolve(v.payload.iss);break;default:C=Promise.resolve(this._settings.userInfoJwtIssuer)}return C.then((function(E){return a.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+E),y._metadataService.getSigningKeys().then((function(w){if(!w)return a.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(new Error("No signing keys from metadata"));a.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var _=void 0;if(k)_=w.filter((function(I){return I.kid===k}))[0];else{if((w=y._filterByAlg(w,v.header.alg)).length>1)return a.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(new Error("No kid found in id_token and more than one key found in metadata"));_=w[0]}if(!_)return a.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(new Error("No key matching kid or alg found in signing keys"));var T=y._settings.client_id,F=y._settings.clockSkew;return a.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",F),y._joseUtil.validateJwt(g.responseText,_,E,T,F,void 0,!0).then((function(){return a.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),v.payload}))}))}))}catch(E){return a.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",E.message),void reject(E)}},u.prototype._filterByAlg=function(g,y){var v=null;if(y.startsWith("RS"))v="RSA";else if(y.startsWith("PS"))v="PS";else{if(!y.startsWith("ES"))return a.Log.debug("UserInfoService._filterByAlg: alg not supported: ",y),[];v="EC"}return a.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",v),g=g.filter((function(k){return k.kty===v})),a.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",v,g.length),g},u})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.AllowedSigningAlgs=n.b64tohex=n.hextob64u=n.crypto=n.X509=n.KeyUtil=n.jws=void 0;var i=o(27);n.jws=i.jws,n.KeyUtil=i.KEYUTIL,n.X509=i.X509,n.crypto=i.crypto,n.hextob64u=i.hextob64u,n.b64tohex=i.b64tohex,n.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(r,n,o){(function(i){Object.defineProperty(n,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a={userAgent:!1},d={};/*!
116Copyright (c) 2011, Yahoo! Inc. All rights reserved.
117Code licensed under the BSD License:
118http://developer.yahoo.com/yui/license.html
119version: 2.9.0
120*/if(f===void 0)var f={};f.lang={extend:function(l,h,m){if(!h||!l)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var x=function(){};if(x.prototype=h.prototype,l.prototype=new x,l.prototype.constructor=l,l.superclass=h.prototype,h.prototype.constructor==Object.prototype.constructor&&(h.prototype.constructor=h),m){var O;for(O in m)l.prototype[O]=m[O];var M=function(){},J=["toString","valueOf"];try{/MSIE/.test(a.userAgent)&&(M=function(K,Y){for(O=0;O<J.length;O+=1){var X=J[O],re=Y[X];typeof re=="function"&&re!=Object.prototype[X]&&(K[X]=re)}})}catch{}M(l.prototype,m)}}};/*! CryptoJS v3.1.2 core-fix.js
121 * code.google.com/p/crypto-js
122 * (c) 2009-2013 by Jeff Mott. All rights reserved.
123 * code.google.com/p/crypto-js/wiki/License
124 * THIS IS FIX of 'core.js' to fix Hmac issue.
125 * https://code.google.com/p/crypto-js/issues/detail?id=84
126 * https://crypto-js.googlecode.com/svn-history/r667/branches/3.x/src/core.js
127 */var u,p,g,y,v,k,C,E,w,_,T,F=F||(u=Math,g=(p={}).lib={},y=g.Base=(function(){function c(){}return{extend:function(h){c.prototype=this;var m=new c;return h&&m.mixIn(h),m.hasOwnProperty("init")||(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var m in h)h.hasOwnProperty(m)&&(this[m]=h[m]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),v=g.WordArray=y.extend({init:function(l,h){l=this.words=l||[],this.sigBytes=h??4*l.length},toString:function(l){return(l||C).stringify(this)},concat:function(l){var h=this.words,m=l.words,x=this.sigBytes,O=l.sigBytes;if(this.clamp(),x%4)for(var M=0;M<O;M++){var J=m[M>>>2]>>>24-M%4*8&255;h[x+M>>>2]|=J<<24-(x+M)%4*8}else for(M=0;M<O;M+=4)h[x+M>>>2]=m[M>>>2];return this.sigBytes+=O,this},clamp:function(){var l=this.words,h=this.sigBytes;l[h>>>2]&=4294967295<<32-h%4*8,l.length=u.ceil(h/4)},clone:function(){var l=y.clone.call(this);return l.words=this.words.slice(0),l},random:function(l){for(var h=[],m=0;m<l;m+=4)h.push(4294967296*u.random()|0);return new v.init(h,l)}}),k=p.enc={},C=k.Hex={stringify:function(l){for(var h=l.words,m=l.sigBytes,x=[],O=0;O<m;O++){var M=h[O>>>2]>>>24-O%4*8&255;x.push((M>>>4).toString(16)),x.push((15&M).toString(16))}return x.join("")},parse:function(l){for(var h=l.length,m=[],x=0;x<h;x+=2)m[x>>>3]|=parseInt(l.substr(x,2),16)<<24-x%8*4;return new v.init(m,h/2)}},E=k.Latin1={stringify:function(l){for(var h=l.words,m=l.sigBytes,x=[],O=0;O<m;O++){var M=h[O>>>2]>>>24-O%4*8&255;x.push(String.fromCharCode(M))}return x.join("")},parse:function(l){for(var h=l.length,m=[],x=0;x<h;x++)m[x>>>2]|=(255&l.charCodeAt(x))<<24-x%4*8;return new v.init(m,h)}},w=k.Utf8={stringify:function(l){try{return decodeURIComponent(escape(E.stringify(l)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(l){return E.parse(unescape(encodeURIComponent(l)))}},_=g.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(l){typeof l=="string"&&(l=w.parse(l)),this._data.concat(l),this._nDataBytes+=l.sigBytes},_process:function(l){var h=this._data,m=h.words,x=h.sigBytes,O=this.blockSize,M=x/(4*O),J=(M=l?u.ceil(M):u.max((0|M)-this._minBufferSize,0))*O,z=u.min(4*J,x);if(J){for(var K=0;K<J;K+=O)this._doProcessBlock(m,K);var Y=m.splice(0,J);h.sigBytes-=z}return new v.init(Y,z)},clone:function(){var l=y.clone.call(this);return l._data=this._data.clone(),l},_minBufferSize:0}),g.Hasher=_.extend({cfg:y.extend(),init:function(l){this.cfg=this.cfg.extend(l),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(l){return this._append(l),this._process(),this},finalize:function(l){return l&&this._append(l),this._doFinalize()},blockSize:16,_createHelper:function(l){return function(h,m){return new l.init(m).finalize(h)}},_createHmacHelper:function(l){return function(h,m){return new T.HMAC.init(l,m).finalize(h)}}}),T=p.algo={},p);(function(c){var l,h=(l=F).lib,m=h.Base,x=h.WordArray;(l=l.x64={}).Word=m.extend({init:function(M,J){this.high=M,this.low=J}}),l.WordArray=m.extend({init:function(M,J){M=this.words=M||[],this.sigBytes=J??8*M.length},toX32:function(){for(var M=this.words,J=M.length,z=[],K=0;K<J;K++){var Y=M[K];z.push(Y.high),z.push(Y.low)}return x.create(z,this.sigBytes)},clone:function(){for(var M=m.clone.call(this),J=M.words=this.words.slice(0),z=J.length,K=0;K<z;K++)J[K]=J[K].clone();return M}})})(),(function(){var c=F,l=c.lib.WordArray;c.enc.Base64={stringify:function(m){var x=m.words,O=m.sigBytes,M=this._map;m.clamp(),m=[];for(var J=0;J<O;J+=3)for(var z=(x[J>>>2]>>>24-J%4*8&255)<<16|(x[J+1>>>2]>>>24-(J+1)%4*8&255)<<8|x[J+2>>>2]>>>24-(J+2)%4*8&255,K=0;4>K&&J+.75*K<O;K++)m.push(M.charAt(z>>>6*(3-K)&63));if(x=M.charAt(64))for(;m.length%4;)m.push(x);return m.join("")},parse:function(m){var x=m.length,O=this._map;(M=O.charAt(64))&&(M=m.indexOf(M))!=-1&&(x=M);for(var M=[],J=0,z=0;z<x;z++)if(z%4){var K=O.indexOf(m.charAt(z-1))<<z%4*2,Y=O.indexOf(m.charAt(z))>>>6-z%4*2;M[J>>>2]|=(K|Y)<<24-J%4*8,J++}return l.create(M,J)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),(function(c){for(var l=F,h=(x=l.lib).WordArray,m=x.Hasher,x=l.algo,O=[],M=[],J=function(ye){return 4294967296*(ye-(0|ye))|0},z=2,K=0;64>K;){var Y;e:{Y=z;for(var X=c.sqrt(Y),re=2;re<=X;re++)if(!(Y%re)){Y=!1;break e}Y=!0}Y&&(8>K&&(O[K]=J(c.pow(z,.5))),M[K]=J(c.pow(z,1/3)),K++),z++}var oe=[];x=x.SHA256=m.extend({_doReset:function(){this._hash=new h.init(O.slice(0))},_doProcessBlock:function(ye,be){for(var N=this._hash.words,Z=N[0],te=N[1],ne=N[2],he=N[3],we=N[4],Qe=N[5],je=N[6],gt=N[7],Ye=0;64>Ye;Ye++){if(16>Ye)oe[Ye]=0|ye[be+Ye];else{var nt=oe[Ye-15],xt=oe[Ye-2];oe[Ye]=((nt<<25|nt>>>7)^(nt<<14|nt>>>18)^nt>>>3)+oe[Ye-7]+((xt<<15|xt>>>17)^(xt<<13|xt>>>19)^xt>>>10)+oe[Ye-16]}nt=gt+((we<<26|we>>>6)^(we<<21|we>>>11)^(we<<7|we>>>25))+(we&Qe^~we&je)+M[Ye]+oe[Ye],xt=((Z<<30|Z>>>2)^(Z<<19|Z>>>13)^(Z<<10|Z>>>22))+(Z&te^Z&ne^te&ne),gt=je,je=Qe,Qe=we,we=he+nt|0,he=ne,ne=te,te=Z,Z=nt+xt|0}N[0]=N[0]+Z|0,N[1]=N[1]+te|0,N[2]=N[2]+ne|0,N[3]=N[3]+he|0,N[4]=N[4]+we|0,N[5]=N[5]+Qe|0,N[6]=N[6]+je|0,N[7]=N[7]+gt|0},_doFinalize:function(){var ye=this._data,be=ye.words,N=8*this._nDataBytes,Z=8*ye.sigBytes;return be[Z>>>5]|=128<<24-Z%32,be[14+(Z+64>>>9<<4)]=c.floor(N/4294967296),be[15+(Z+64>>>9<<4)]=N,ye.sigBytes=4*be.length,this._process(),this._hash},clone:function(){var ye=m.clone.call(this);return ye._hash=this._hash.clone(),ye}}),l.SHA256=m._createHelper(x),l.HmacSHA256=m._createHmacHelper(x)})(Math),(function(){function c(){return m.create.apply(m,arguments)}for(var l=F,h=l.lib.Hasher,m=(O=l.x64).Word,x=O.WordArray,O=l.algo,M=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],J=[],z=0;80>z;z++)J[z]=c();O=O.SHA512=h.extend({_doReset:function(){this._hash=new x.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(Y,X){for(var re=(te=this._hash.words)[0],oe=te[1],fe=te[2],ye=te[3],be=te[4],N=te[5],Z=te[6],te=te[7],ne=re.high,he=re.low,we=oe.high,Qe=oe.low,je=fe.high,gt=fe.low,Ye=ye.high,nt=ye.low,xt=be.high,It=be.low,Pt=N.high,Tr=N.low,hr=Z.high,wr=Z.low,Nt=te.high,Jt=te.low,ar=ne,Sr=he,pi=we,Po=Qe,hi=je,Io=gt,ul=Ye,gi=nt,zr=xt,Nr=It,Ss=Pt,mi=Tr,ks=hr,yi=wr,fl=Nt,vi=Jt,Kr=0;80>Kr;Kr++){var lo=J[Kr];if(16>Kr)var mn=lo.high=0|Y[X+2*Kr],Rt=lo.low=0|Y[X+2*Kr+1];else{mn=((Rt=(mn=J[Kr-15]).high)>>>1|(yn=mn.low)<<31)^(Rt>>>8|yn<<24)^Rt>>>7;var yn=(yn>>>1|Rt<<31)^(yn>>>8|Rt<<24)^(yn>>>7|Rt<<25),Ro=((Rt=(Ro=J[Kr-2]).high)>>>19|(Gt=Ro.low)<<13)^(Rt<<3|Gt>>>29)^Rt>>>6,Gt=(Gt>>>19|Rt<<13)^(Gt<<3|Rt>>>29)^(Gt>>>6|Rt<<26),dl=(Rt=J[Kr-7]).high,co=(uo=J[Kr-16]).high,uo=uo.low;mn=(mn=(mn=mn+dl+((Rt=yn+Rt.low)>>>0<yn>>>0?1:0))+Ro+((Rt=Rt+Gt)>>>0<Gt>>>0?1:0))+co+((Rt=Rt+uo)>>>0<uo>>>0?1:0),lo.high=mn,lo.low=Rt}dl=zr&Ss^~zr&ks,uo=Nr&mi^~Nr&yi,lo=ar&pi^ar&hi^pi&hi;var ay=Sr&Po^Sr&Io^Po&Io,ly=(yn=(ar>>>28|Sr<<4)^(ar<<30|Sr>>>2)^(ar<<25|Sr>>>7),Ro=(Sr>>>28|ar<<4)^(Sr<<30|ar>>>2)^(Sr<<25|ar>>>7),(Gt=M[Kr]).high),nf=Gt.low;co=fl+((zr>>>14|Nr<<18)^(zr>>>18|Nr<<14)^(zr<<23|Nr>>>9))+((Gt=vi+((Nr>>>14|zr<<18)^(Nr>>>18|zr<<14)^(Nr<<23|zr>>>9)))>>>0<vi>>>0?1:0),fl=ks,vi=yi,ks=Ss,yi=mi,Ss=zr,mi=Nr,zr=ul+(co=(co=(co=co+dl+((Gt=Gt+uo)>>>0<uo>>>0?1:0))+ly+((Gt=Gt+nf)>>>0<nf>>>0?1:0))+mn+((Gt=Gt+Rt)>>>0<Rt>>>0?1:0))+((Nr=gi+Gt|0)>>>0<gi>>>0?1:0)|0,ul=hi,gi=Io,hi=pi,Io=Po,pi=ar,Po=Sr,ar=co+(lo=yn+lo+((Rt=Ro+ay)>>>0<Ro>>>0?1:0))+((Sr=Gt+Rt|0)>>>0<Gt>>>0?1:0)|0}he=re.low=he+Sr,re.high=ne+ar+(he>>>0<Sr>>>0?1:0),Qe=oe.low=Qe+Po,oe.high=we+pi+(Qe>>>0<Po>>>
1270?1:0),gt=fe.low=gt+Io,fe.high=je+hi+(gt>>>0<Io>>>0?1:0),nt=ye.low=nt+gi,ye.high=Ye+ul+(nt>>>0<gi>>>0?1:0),It=be.low=It+Nr,be.high=xt+zr+(It>>>0<Nr>>>0?1:0),Tr=N.low=Tr+mi,N.high=Pt+Ss+(Tr>>>0<mi>>>0?1:0),wr=Z.low=wr+yi,Z.high=hr+ks+(wr>>>0<yi>>>0?1:0),Jt=te.low=Jt+vi,te.high=Nt+fl+(Jt>>>0<vi>>>0?1:0)},_doFinalize:function(){var Y=this._data,X=Y.words,re=8*this._nDataBytes,oe=8*Y.sigBytes;return X[oe>>>5]|=128<<24-oe%32,X[30+(oe+128>>>10<<5)]=Math.floor(re/4294967296),X[31+(oe+128>>>10<<5)]=re,Y.sigBytes=4*X.length,this._process(),this._hash.toX32()},clone:function(){var Y=h.clone.call(this);return Y._hash=this._hash.clone(),Y},blockSize:32}),l.SHA512=h._createHelper(O),l.HmacSHA512=h._createHmacHelper(O)})(),(function(){var c=F,l=(x=c.x64).Word,h=x.WordArray,m=(x=c.algo).SHA512,x=x.SHA384=m.extend({_doReset:function(){this._hash=new h.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var M=m._doFinalize.call(this);return M.sigBytes-=16,M}});c.SHA384=m._createHelper(x),c.HmacSHA384=m._createHmacHelper(x)})();/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
128 */var I,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function H(c){var l,h,m="";for(l=0;l+3<=c.length;l+=3)h=parseInt(c.substring(l,l+3),16),m+=P.charAt(h>>6)+P.charAt(63&h);for(l+1==c.length?(h=parseInt(c.substring(l,l+1),16),m+=P.charAt(h<<2)):l+2==c.length&&(h=parseInt(c.substring(l,l+2),16),m+=P.charAt(h>>2)+P.charAt((3&h)<<4)),"=";(3&m.length)>0;)m+="=";return m}function $(c){var l,h,m,x="",O=0;for(l=0;l<c.length&&c.charAt(l)!="=";++l)(m=P.indexOf(c.charAt(l)))<0||(O==0?(x+=ae(m>>2),h=3&m,O=1):O==1?(x+=ae(h<<2|m>>4),h=15&m,O=2):O==2?(x+=ae(h),x+=ae(m>>2),h=3&m,O=3):(x+=ae(h<<2|m>>4),x+=ae(15&m),O=0));return O==1&&(x+=ae(h<<2)),x}function ee(c){var l,h=$(c),m=new Array;for(l=0;2*l<h.length;++l)m[l]=parseInt(h.substring(2*l,2*l+2),16);return m}function j(c,l,h){c!=null&&(typeof c=="number"?this.fromNumber(c,l,h):l==null&&typeof c!="string"?this.fromString(c,256):this.fromString(c,l))}function W(){return new j(null)}a.appName=="Microsoft Internet Explorer"?(j.prototype.am=function(l,h,m,x,O,M){for(var J=32767&h,z=h>>15;--M>=0;){var K=32767&this[l],Y=this[l++]>>15,X=z*K+Y*J;O=((K=J*K+((32767&X)<<15)+m[x]+(1073741823&O))>>>30)+(X>>>15)+z*Y+(O>>>30),m[x++]=1073741823&K}return O},I=30):a.appName!="Netscape"?(j.prototype.am=function(l,h,m,x,O,M){for(;--M>=0;){var J=h*this[l++]+m[x]+O;O=Math.floor(J/67108864),m[x++]=67108863&J}return O},I=26):(j.prototype.am=function(l,h,m,x,O,M){for(var J=16383&h,z=h>>14;--M>=0;){var K=16383&this[l],Y=this[l++]>>14,X=z*K+Y*J;O=((K=J*K+((16383&X)<<14)+m[x]+O)>>28)+(X>>14)+z*Y,m[x++]=268435455&K}return O},I=28),j.prototype.DB=I,j.prototype.DM=(1<<I)-1,j.prototype.DV=1<<I,j.prototype.FV=Math.pow(2,52),j.prototype.F1=52-I,j.prototype.F2=2*I-52;var ie,ce,pe=new Array;for(ie=48,ce=0;ce<=9;++ce)pe[ie++]=ce;for(ie=97,ce=10;ce<36;++ce)pe[ie++]=ce;for(ie=65,ce=10;ce<36;++ce)pe[ie++]=ce;function ae(c){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(c)}function me(c,l){var h=pe[c.charCodeAt(l)];return h??-1}function ve(c){var l=W();return l.fromInt(c),l}function Pe(c){var l,h=1;return(l=c>>>16)!=0&&(c=l,h+=16),(l=c>>8)!=0&&(c=l,h+=8),(l=c>>4)!=0&&(c=l,h+=4),(l=c>>2)!=0&&(c=l,h+=2),(l=c>>1)!=0&&(c=l,h+=1),h}function Re(c){this.m=c}function Je(c){this.m=c,this.mp=c.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<c.DB-15)-1,this.mt2=2*c.t}function $e(c,l){return c&l}function Me(c,l){return c|l}function rt(c,l){return c^l}function st(c,l){return c&~l}function at(c){if(c==0)return-1;var l=0;return(65535&c)==0&&(c>>=16,l+=16),(255&c)==0&&(c>>=8,l+=8),(15&c)==0&&(c>>=4,l+=4),(3&c)==0&&(c>>=2,l+=2),(1&c)==0&&++l,l}function _e(c){for(var l=0;c!=0;)c&=c-1,++l;return l}function De(){}function Le(c){return c}function Ue(c){this.r2=W(),this.q3=W(),j.ONE.dlShiftTo(2*c.t,this.r2),this.mu=this.r2.divide(c),this.m=c}Re.prototype.convert=function(l){return l.s<0||l.compareTo(this.m)>=0?l.mod(this.m):l},Re.prototype.revert=function(l){return l},Re.prototype.reduce=function(l){l.divRemTo(this.m,null,l)},Re.prototype.mulTo=function(l,h,m){l.multiplyTo(h,m),this.reduce(m)},Re.prototype.sqrTo=function(l,h){l.squareTo(h),this.reduce(h)},Je.prototype.convert=function(l){var h=W();return l.abs().dlShiftTo(this.m.t,h),h.divRemTo(this.m,null,h),l.s<0&&h.compareTo(j.ZERO)>0&&this.m.subTo(h,h),h},Je.prototype.revert=function(l){var h=W();return l.copyTo(h),this.reduce(h),h},Je.prototype.reduce=function(l){for(;l.t<=this.mt2;)l[l.t++]=0;for(var h=0;h<this.m.t;++h){var m=32767&l[h],x=m*this.mpl+((m*this.mph+(l[h]>>15)*this.mpl&this.um)<<15)&l.DM;for(l[m=h+this.m.t]+=this.m.am(0,x,l,h,0,this.m.t);l[m]>=l.DV;)l[m]-=l.DV,l[++m]++}l.clamp(),l.drShiftTo(this.m.t,l),l.compareTo(this.m)>=0&&l.subTo(this.m,l)},Je.prototype.mulTo=function(l,h,m){l.multiplyTo(h,m),this.reduce(m)},Je.prototype.sqrTo=function(l,h){l.squareTo(h),this.reduce(h)},j.prototype.copyTo=function(l){for(var h=this.t-1;h>=0;--h)l[h]=this[h];l.t=this.t,l.s=this.s},j.prototype.fromInt=function(l){this.t=1,this.s=l<0?-1:0,l>0?this[0]=l:l<-1?this[0]=l+this.DV:this.t=0},j.prototype.fromString=function(l,h){var m;if(h==16)m=4;else if(h==8)m=3;else if(h==256)m=8;else if(h==2)m=1;else if(h==32)m=5;else{if(h!=4)return void this.fromRadix(l,h);m=2}this.t=0,this.s=0;for(var x=l.length,O=!1,M=0;--x>=0;){var J=m==8?255&l[x]:me(l,x);J<0?l.charAt(x)=="-"&&(O=!0):(O=!1,M==0?this[this.t++]=J:M+m>this.DB?(this[this.t-1]|=(J&(1<<this.DB-M)-1)<<M,this[this.t++]=J>>this.DB-M):this[this.t-1]|=J<<M,(M+=m)>
vendor: 4,525 bytes, line 128
128=this.DB&&(M-=this.DB))}m==8&&(128&l[0])!=0&&(this.s=-1,M>0&&(this[this.t-1]|=(1<<this.DB-M)-1<<M)),this.clamp(),O&&j.ZERO.subTo(this,this)},j.prototype.clamp=function(){for(var l=this.s&this.DM;this.t>0&&this[this.t-1]==l;)--this.t},j.prototype.dlShiftTo=function(l,h){var m;for(m=this.t-1;m>=0;--m)h[m+l]=this[m];for(m=l-1;m>=0;--m)h[m]=0;h.t=this.t+l,h.s=this.s},j.prototype.drShiftTo=function(l,h){for(var m=l;m<this.t;++m)h[m-l]=this[m];h.t=Math.max(this.t-l,0),h.s=this.s},j.prototype.lShiftTo=function(l,h){var m,x=l%this.DB,O=this.DB-x,M=(1<<O)-1,J=Math.floor(l/this.DB),z=this.s<<x&this.DM;for(m=this.t-1;m>=0;--m)h[m+J+1]=this[m]>>O|z,z=(this[m]&M)<<x;for(m=J-1;m>=0;--m)h[m]=0;h[J]=z,h.t=this.t+J+1,h.s=this.s,h.clamp()},j.prototype.rShiftTo=function(l,h){h.s=this.s;var m=Math.floor(l/this.DB);if(m>=this.t)h.t=0;else{var x=l%this.DB,O=this.DB-x,M=(1<<x)-1;h[0]=this[m]>>x;for(var J=m+1;J<this.t;++J)h[J-m-1]|=(this[J]&M)<<O,h[J-m]=this[J]>>x;x>0&&(h[this.t-m-1]|=(this.s&M)<<O),h.t=this.t-m,h.clamp()}},j.prototype.subTo=function(l,h){for(var m=0,x=0,O=Math.min(l.t,this.t);m<O;)x+=this[m]-l[m],h[m++]=x&this.DM,x>>=this.DB;if(l.t<this.t){for(x-=l.s;m<this.t;)x+=this[m],h[m++]=x&this.DM,x>>=this.DB;x+=this.s}else{for(x+=this.s;m<l.t;)x-=l[m],h[m++]=x&this.DM,x>>=this.DB;x-=l.s}h.s=x<0?-1:0,x<-1?h[m++]=this.DV+x:x>0&&(h[m++]=x),h.t=m,h.clamp()},j.prototype.multiplyTo=function(l,h){var m=this.abs(),x=l.abs(),O=m.t;for(h.t=O+x.t;--O>=0;)h[O]=0;for(O=0;O<x.t;++O)h[O+m.t]=m.am(0,x[O],h,O,0,m.t);h.s=0,h.clamp(),this.s!=l.s&&j.ZERO.subTo(h,h)},j.prototype.squareTo=function(l){for(var h=this.abs(),m=l.t=2*h.t;--m>=0;)l[m]=0;for(m=0;m<h.t-1;++m){var x=h.am(m,h[m],l,2*m,0,1);(l[m+h.t]+=h.am(m+1,2*h[m],l,2*m+1,x,h.t-m-1))>=h.DV&&(l[m+h.t]-=h.DV,l[m+h.t+1]=1)}l.t>0&&(l[l.t-1]+=h.am(m,h[m],l,2*m,0,1)),l.s=0,l.clamp()},j.prototype.divRemTo=function(l,h,m){var x=l.abs();if(!(x.t<=0)){var O=this.abs();if(O.t<x.t)return h!=null&&h.fromInt(0),void(m!=null&&this.copyTo(m));m==null&&(m=W());var M=W(),J=this.s,z=l.s,K=this.DB-Pe(x[x.t-1]);K>0?(x.lShiftTo(K,M),O.lShiftTo(K,m)):(x.copyTo(M),O.copyTo(m));var Y=M.t,X=M[Y-1];if(X!=0){var re=X*(1<<this.F1)+(Y>1?M[Y-2]>>this.F2:0),oe=this.FV/re,fe=(1<<this.F1)/re,ye=1<<this.F2,be=m.t,N=be-Y,Z=h??W();for(M.dlShiftTo(N,Z),m.compareTo(Z)>=0&&(m[m.t++]=1,m.subTo(Z,m)),j.ONE.dlShiftTo(Y,Z),Z.subTo(M,M);M.t<Y;)M[M.t++]=0;for(;--N>=0;){var te=m[--be]==X?this.DM:Math.floor(m[be]*oe+(m[be-1]+ye)*fe);if((m[be]+=M.am(0,te,m,N,0,Y))<te)for(M.dlShiftTo(N,Z),m.subTo(Z,m);m[be]<--te;)m.subTo(Z,m)}h!=null&&(m.drShiftTo(Y,h),J!=z&&j.ZERO.subTo(h,h)),m.t=Y,m.clamp(),K>0&&m.rShiftTo(K,m),J<0&&j.ZERO.subTo(m,m)}}},j.prototype.invDigit=function(){if(this.t<1)return 0;var l=this[0];if((1&l)==0)return 0;var h=3&l;return(h=(h=(h=(h=h*(2-(15&l)*h)&15)*(2-(255&l)*h)&255)*(2-((65535&l)*h&65535))&65535)*(2-l*h%this.DV)%this.DV)>0?this.DV-h:-h},j.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},j.prototype.exp=function(l,h){if(l>4294967295||l<1)return j.ONE;var m=W(),x=W(),O=h.convert(this),M=Pe(l)-1;for(O.copyTo(m);--M>=0;)if(h.sqrTo(m,x),(l&1<<M)>0)h.mulTo(x,O,m);else{var J=m;m=x,x=J}return h.revert(m)},j.prototype.toString=function(l){if(this.s<0)return"-"+this.negate().toString(l);var h;if(l==16)h=4;else if(l==8)h=3;else if(l==2)h=1;else if(l==32)h=5;else{if(l!=4)return this.toRadix(l);h=2}var m,x=(1<<h)-1,O=!1,M="",J=this.t,z=this.DB-J*this.DB%h;if(J-- >0)for(z<this.DB&&(m=this[J]>>z)>0&&(O=!0,M=ae(m));J>=0;)z<h?(m=(this[J]&(1<<z)-1)<<h-z,m|=this[--J]>>(z+=this.DB-h)):(m=this[J]>>(z-=h)&x,z<=0&&(z+=this.DB,--J)),m>0&&(O=!0),O&&(M+=ae(m));return O?M:"0"},j.prototype.negate=function(){var l=W();return j.ZERO.subTo(this,l),l},j.prototype.abs=function(){return this.s<0?this.negate():this},j.prototype.compareTo=function(l){var h=this.s-l.s;if(h!=0)return h;var m=this.t;if((h=m-l.t)!=0)return this.s<0?-h:h;for(;--m>=0;)if((h=this[m]-l[m])!=0)return h;return 0},j.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Pe(this[this.t-1]^this.s&this.DM)},j.prototype.mod=function(l){var h=W();return this.abs().divRemTo(l,null,h),this.s<0&&h.compareTo(j.ZERO)>0&&l.subTo(h,h),h},j.prototype.modPowInt=function(l,h){var m;return m=l<256||h.isEven()?new Re(h):new Je(h),this.exp(l,m)},j.ZERO=ve(0),j.ONE=ve(1),De.prototype.convert=Le,De.prototype.revert=Le,De.prototype.mulTo=function(l,h,m){l.multiplyTo(h,m)},De.prototype.sqrTo=function(l,h){l.squareTo(h)},Ue.prototype.convert=function(l){if(l.s<0||l.t>2*this.m.t)return l.mod(this.m);
vendor: 6,760 bytes, lines 128-129
128if(l.compareTo(this.m)<0)return l;var h=W();return l.copyTo(h),this.reduce(h),h},Ue.prototype.revert=function(l){return l},Ue.prototype.reduce=function(l){for(l.drShiftTo(this.m.t-1,this.r2),l.t>this.m.t+1&&(l.t=this.m.t+1,l.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);l.compareTo(this.r2)<0;)l.dAddOffset(1,this.m.t+1);for(l.subTo(this.r2,l);l.compareTo(this.m)>=0;)l.subTo(this.m,l)},Ue.prototype.mulTo=function(l,h,m){l.multiplyTo(h,m),this.reduce(m)},Ue.prototype.sqrTo=function(l,h){l.squareTo(h),this.reduce(h)};var q=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],A=(1<<26)/q[q.length-1];/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
129 */function b(){this.i=0,this.j=0,this.S=new Array}j.prototype.chunkSize=function(l){return Math.floor(Math.LN2*this.DB/Math.log(l))},j.prototype.toRadix=function(l){if(l==null&&(l=10),this.signum()==0||l<2||l>36)return"0";var h=this.chunkSize(l),m=Math.pow(l,h),x=ve(m),O=W(),M=W(),J="";for(this.divRemTo(x,O,M);O.signum()>0;)J=(m+M.intValue()).toString(l).substr(1)+J,O.divRemTo(x,O,M);return M.intValue().toString(l)+J},j.prototype.fromRadix=function(l,h){this.fromInt(0),h==null&&(h=10);for(var m=this.chunkSize(h),x=Math.pow(h,m),O=!1,M=0,J=0,z=0;z<l.length;++z){var K=me(l,z);K<0?l.charAt(z)=="-"&&this.signum()==0&&(O=!0):(J=h*J+K,++M>=m&&(this.dMultiply(x),this.dAddOffset(J,0),M=0,J=0))}M>0&&(this.dMultiply(Math.pow(h,M)),this.dAddOffset(J,0)),O&&j.ZERO.subTo(this,this)},j.prototype.fromNumber=function(l,h,m){if(typeof h=="number")if(l<2)this.fromInt(1);else for(this.fromNumber(l,m),this.testBit(l-1)||this.bitwiseTo(j.ONE.shiftLeft(l-1),Me,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(h);)this.dAddOffset(2,0),this.bitLength()>l&&this.subTo(j.ONE.shiftLeft(l-1),this);else{var x=new Array,O=7&l;x.length=1+(l>>3),h.nextBytes(x),O>0?x[0]&=(1<<O)-1:x[0]=0,this.fromString(x,256)}},j.prototype.bitwiseTo=function(l,h,m){var x,O,M=Math.min(l.t,this.t);for(x=0;x<M;++x)m[x]=h(this[x],l[x]);if(l.t<this.t){for(O=l.s&this.DM,x=M;x<this.t;++x)m[x]=h(this[x],O);m.t=this.t}else{for(O=this.s&this.DM,x=M;x<l.t;++x)m[x]=h(O,l[x]);m.t=l.t}m.s=h(this.s,l.s),m.clamp()},j.prototype.changeBit=function(l,h){var m=j.ONE.shiftLeft(l);return this.bitwiseTo(m,h,m),m},j.prototype.addTo=function(l,h){for(var m=0,x=0,O=Math.min(l.t,this.t);m<O;)x+=this[m]+l[m],h[m++]=x&this.DM,x>>=this.DB;if(l.t<this.t){for(x+=l.s;m<this.t;)x+=this[m],h[m++]=x&this.DM,x>>=this.DB;x+=this.s}else{for(x+=this.s;m<l.t;)x+=l[m],h[m++]=x&this.DM,x>>=this.DB;x+=l.s}h.s=x<0?-1:0,x>0?h[m++]=x:x<-1&&(h[m++]=this.DV+x),h.t=m,h.clamp()},j.prototype.dMultiply=function(l){this[this.t]=this.am(0,l-1,this,0,0,this.t),++this.t,this.clamp()},j.prototype.dAddOffset=function(l,h){if(l!=0){for(;this.t<=h;)this[this.t++]=0;for(this[h]+=l;this[h]>=this.DV;)this[h]-=this.DV,++h>=this.t&&(this[this.t++]=0),++this[h]}},j.prototype.multiplyLowerTo=function(l,h,m){var x,O=Math.min(this.t+l.t,h);for(m.s=0,m.t=O;O>0;)m[--O]=0;for(x=m.t-this.t;O<x;++O)m[O+this.t]=this.am(0,l[O],m,O,0,this.t);for(x=Math.min(l.t,h);O<x;++O)this.am(0,l[O],m,O,0,h-O);m.clamp()},j.prototype.multiplyUpperTo=function(l,h,m){--h;var x=m.t=this.t+l.t-h;for(m.s=0;--x>=0;)m[x]=0;for(x=Math.max(h-this.t,0);x<l.t;++x)m[this.t+x-h]=this.am(h-x,l[x],m,0,0,this.t+x-h);m.clamp(),m.drShiftTo(1,m)},j.prototype.modInt=function(l){if(l<=0)return 0;var h=this.DV%l,m=this.s<0?l-1:0;if(this.t>0)if(h==0)m=this[0]%l;else for(var x=this.t-1;x>=0;--x)m=(h*m+this[x])%l;return m},j.prototype.millerRabin=function(l){var h=this.subtract(j.ONE),m=h.getLowestSetBit();if(m<=0)return!1;var x=h.shiftRight(m);(l=l+1>>1)>q.length&&(l=q.length);for(var O=W(),M=0;M<l;++M){O.fromInt(q[Math.floor(Math.random()*q.length)]);var J=O.modPow(x,this);if(J.compareTo(j.ONE)!=0&&J.compareTo(h)!=0){for(var z=1;z++<m&&J.compareTo(h)!=0;)if((J=J.modPowInt(2,this)).compareTo(j.ONE)==0)return!1;if(J.compareTo(h)!=0)return!1}}return!0},j.prototype.clone=function(){var l=W();return this.copyTo(l),l},j.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},j.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},j.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},j.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},j.prototype.toByteArray=function(){var l=this.t,h=new Array;h[0]=this.s;var m,x=this.DB-l*this.DB%8,O=0;if(l-- >0)for(x<this.DB&&(m=this[l]>>x)!=(this.s&this.DM)>>x&&(h[O++]=m|this.s<<this.DB-x);l>=0;)x<8?(m=(this[l]&(1<<x)-1)<<8-x,m|=this[--l]>>(x+=this.DB-8)):(m=this[l]>>(x-=8)&255,x<=0&&(x+=this.DB,--l)),(128&m)!=0&&(m|=-256),O==0&&(128&this.s)!=(128&m)&&++O,(O>0||m!=this.s)&&(h[O++]=m);return h},j.prototype.equals=function(l){return this.compareTo(l)==0},j.prototype.min=function(l){return this.compareTo(l)<0?this:l},j.prototype.max=function(l){return this.compareTo(l)>0?this:l},j.prototype.and=function(l){var h=W();return this.bitwiseTo(l,$e,h),h},j.prototype.or=function(l){var h=W();return this.bitwiseTo(l,Me,h),h},j.prototype.xor=function(l){var h=W();return this.bitwiseTo(l,rt,h),h},j.prototype.andNot=function(l){var h=W();return this.bitwiseTo(l,st,h),h},j.prototype.not=function(){for(var l=W(),h=0;h<this.t;++h)l[h]=this.DM&~this[h];return l.t=this.t,l.s=~this.s,l},j.prototype.shiftLeft=function(l){var h=W();return l<0?this.rShiftTo(-l,h):this.lShiftTo(l,h),h},j.prototype.shiftRight=function(l){var h=W();return l<0?this.lShiftTo(-l,h):this.rShiftTo(l,h),h},j.prototype.getLowestSetBit=function(){for(var l=0;l<this.t;++l)if(this[l]!=0)return l*this.DB+at(this[l]);return this.s<0?this.t*this.DB:-1},j.prototype.bitCount=function(){for(var l=0,h=this.s&this.DM,m=0;m<this.t;++m)l+=_e(this[m]^h);return l},j.prototype.testBit=function(l){var h=Math.floor(l/this.DB);return h>=this.t?this.s!=0:(this[h]&1<<l%this.DB)!=0},j.prototype.setBit=function(l){return this.changeBit(l,Me)},j.prototype.clearBit=function(l){return this.changeBit(l,st)}
vendor: 13,045 bytes, lines 129-132
129,j.prototype.flipBit=function(l){return this.changeBit(l,rt)},j.prototype.add=function(l){var h=W();return this.addTo(l,h),h},j.prototype.subtract=function(l){var h=W();return this.subTo(l,h),h},j.prototype.multiply=function(l){var h=W();return this.multiplyTo(l,h),h},j.prototype.divide=function(l){var h=W();return this.divRemTo(l,h,null),h},j.prototype.remainder=function(l){var h=W();return this.divRemTo(l,null,h),h},j.prototype.divideAndRemainder=function(l){var h=W(),m=W();return this.divRemTo(l,h,m),new Array(h,m)},j.prototype.modPow=function(l,h){var m,x,O=l.bitLength(),M=ve(1);if(O<=0)return M;m=O<18?1:O<48?3:O<144?4:O<768?5:6,x=O<8?new Re(h):h.isEven()?new Ue(h):new Je(h);var J=new Array,z=3,K=m-1,Y=(1<<m)-1;if(J[1]=x.convert(this),m>1){var X=W();for(x.sqrTo(J[1],X);z<=Y;)J[z]=W(),x.mulTo(X,J[z-2],J[z]),z+=2}var re,oe,fe=l.t-1,ye=!0,be=W();for(O=Pe(l[fe])-1;fe>=0;){for(O>=K?re=l[fe]>>O-K&Y:(re=(l[fe]&(1<<O+1)-1)<<K-O,fe>0&&(re|=l[fe-1]>>this.DB+O-K)),z=m;(1&re)==0;)re>>=1,--z;if((O-=z)<0&&(O+=this.DB,--fe),ye)J[re].copyTo(M),ye=!1;else{for(;z>1;)x.sqrTo(M,be),x.sqrTo(be,M),z-=2;z>0?x.sqrTo(M,be):(oe=M,M=be,be=oe),x.mulTo(be,J[re],M)}for(;fe>=0&&(l[fe]&1<<O)==0;)x.sqrTo(M,be),oe=M,M=be,be=oe,--O<0&&(O=this.DB-1,--fe)}return x.revert(M)},j.prototype.modInverse=function(l){var h=l.isEven();if(this.isEven()&&h||l.signum()==0)return j.ZERO;for(var m=l.clone(),x=this.clone(),O=ve(1),M=ve(0),J=ve(0),z=ve(1);m.signum()!=0;){for(;m.isEven();)m.rShiftTo(1,m),h?(O.isEven()&&M.isEven()||(O.addTo(this,O),M.subTo(l,M)),O.rShiftTo(1,O)):M.isEven()||M.subTo(l,M),M.rShiftTo(1,M);for(;x.isEven();)x.rShiftTo(1,x),h?(J.isEven()&&z.isEven()||(J.addTo(this,J),z.subTo(l,z)),J.rShiftTo(1,J)):z.isEven()||z.subTo(l,z),z.rShiftTo(1,z);m.compareTo(x)>=0?(m.subTo(x,m),h&&O.subTo(J,O),M.subTo(z,M)):(x.subTo(m,x),h&&J.subTo(O,J),z.subTo(M,z))}return x.compareTo(j.ONE)!=0?j.ZERO:z.compareTo(l)>=0?z.subtract(l):z.signum()<0?(z.addTo(l,z),z.signum()<0?z.add(l):z):z},j.prototype.pow=function(l){return this.exp(l,new De)},j.prototype.gcd=function(l){var h=this.s<0?this.negate():this.clone(),m=l.s<0?l.negate():l.clone();if(h.compareTo(m)<0){var x=h;h=m,m=x}var O=h.getLowestSetBit(),M=m.getLowestSetBit();if(M<0)return h;for(O<M&&(M=O),M>0&&(h.rShiftTo(M,h),m.rShiftTo(M,m));h.signum()>0;)(O=h.getLowestSetBit())>0&&h.rShiftTo(O,h),(O=m.getLowestSetBit())>0&&m.rShiftTo(O,m),h.compareTo(m)>=0?(h.subTo(m,h),h.rShiftTo(1,h)):(m.subTo(h,m),m.rShiftTo(1,m));return M>0&&m.lShiftTo(M,m),m},j.prototype.isProbablePrime=function(l){var h,m=this.abs();if(m.t==1&&m[0]<=q[q.length-1]){for(h=0;h<q.length;++h)if(m[0]==q[h])return!0;return!1}if(m.isEven())return!1;for(h=1;h<q.length;){for(var x=q[h],O=h+1;O<q.length&&x<A;)x*=q[O++];for(x=m.modInt(x);h<O;)if(x%q[h++]==0)return!1}return m.millerRabin(l)},j.prototype.square=function(){var l=W();return this.squareTo(l),l},b.prototype.init=function(l){var h,m,x;for(h=0;h<256;++h)this.S[h]=h;for(m=0,h=0;h<256;++h)m=m+this.S[h]+l[h%l.length]&255,x=this.S[h],this.S[h]=this.S[m],this.S[m]=x;this.i=0,this.j=0},b.prototype.next=function(){var l;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,l=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=l,this.S[l+this.S[this.i]&255]};var R,L,G;/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
130 */function Q(){(function(l){L[G++]^=255&l,L[G++]^=l>>8&255,L[G++]^=l>>16&255,L[G++]^=l>>24&255,G>=256&&(G-=256)})(new Date().getTime())}if(L==null){var de;if(L=new Array,G=0,d!==void 0&&(d.crypto!==void 0||d.msCrypto!==void 0)){var ke=d.crypto||d.msCrypto;if(ke.getRandomValues){var Ce=new Uint8Array(32);for(ke.getRandomValues(Ce),de=0;de<32;++de)L[G++]=Ce[de]}else if(a.appName=="Netscape"&&a.appVersion<"5"){var Ae=d.crypto.random(32);for(de=0;de<Ae.length;++de)L[G++]=255&Ae.charCodeAt(de)}}for(;G<256;)de=Math.floor(65536*Math.random()),L[G++]=de>>>8,L[G++]=255&de;G=0,Q()}function Fe(){if(R==null){for(Q(),(R=(function(){return new b})()).init(L),G=0;G<L.length;++G)L[G]=0;G=0}return R.next()}function ze(){}/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
131 */function Ne(c,l){return new j(c,l)}function Ke(c,l,h){for(var m="",x=0;m.length<l;)m+=h(String.fromCharCode.apply(String,c.concat([(4278190080&x)>>24,(16711680&x)>>16,(65280&x)>>8,255&x]))),x+=1;return m}function Oe(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
132 */function et(c,l){this.x=l,this.q=c}function Xe(c,l,h,m){this.curve=c,this.x=l,this.y=h,this.z=m??j.ONE,this.zinv=null}function lt(c,l,h){this.q=c,this.a=this.fromBigInteger(l),this.b=this.fromBigInteger(h),this.infinity=new Xe(this,null,null)}ze.prototype.nextBytes=function(l){var h;for(h=0;h<l.length;++h)l[h]=Fe()},Oe.prototype.doPublic=function(l){return l.modPowInt(this.e,this.n)},Oe.prototype.setPublic=function(l,h){if(this.isPublic=!0,this.isPrivate=!1,typeof l!="string")this.n=l,this.e=h;else{if(!(l!=null&&h!=null&&l.length>0&&h.length>0))throw"Invalid RSA public key";this.n=Ne(l,16),this.e=parseInt(h,16)}},Oe.prototype.encrypt=function(l){var h=(function(M,J){if(J<M.length+11)throw"Message too long for RSA";for(var z=new Array,K=M.length-1;K>=0&&J>0;){var Y=M.charCodeAt(K--);Y<128?z[--J]=Y:Y>127&&Y<2048?(z[--J]=63&Y|128,z[--J]=Y>>6|192):(z[--J]=63&Y|128,z[--J]=Y>>6&63|128,z[--J]=Y>>12|224)}z[--J]=0;for(var X=new ze,re=new Array;J>2;){for(re[0]=0;re[0]==0;)X.nextBytes(re);z[--J]=re[0]}return z[--J]=2,z[--J]=0,new j(z)})(l,this.n.bitLength()+7>>3);if(h==null)return null;var m=this.doPublic(h);if(m==null)return null;var x=m.toString(16);return(1&x.length)==0?x:"0"+x},Oe.prototype.encryptOAEP=function(l,h,m){var x=(function(z,K,Y,X){var re=U.crypto.MessageDigest,oe=U.crypto.Util,fe=null;if(Y||(Y="sha1"),typeof Y=="string"&&(fe=re.getCanonicalAlgName(Y),X=re.getHashLength(fe),Y=function(je){return Ir(oe.hashHex(sn(je),fe))}),z.length+2*X+2>K)throw"Message too long for RSA";var ye,be="";for(ye=0;ye<K-z.length-2*X-2;ye+=1)be+="\0";var N=Y("")+be+"�"+z,Z=new Array(X);new ze().nextBytes(Z);var te=Ke(Z,N.length,Y),ne=[];for(ye=0;ye<N.length;ye+=1)ne[ye]=N.charCodeAt(ye)^te.charCodeAt(ye);var he=Ke(ne,Z.length,Y),we=[0];for(ye=0;ye<Z.length;ye+=1)we[ye+1]=Z[ye]^he.charCodeAt(ye);return new j(we.concat(ne))})(l,this.n.bitLength()+7>>3,h,m);if(x==null)return null;var O=this.doPublic(x);if(O==null)return null;var M=O.toString(16);return(1&M.length)==0?M:"0"+M},Oe.prototype.type="RSA",et.prototype.equals=function(l){return l==this||this.q.equals(l.q)&&this.x.equals(l.x)},et.prototype.toBigInteger=function(){return this.x},et.prototype.negate=function(){return new et(this.q,this.x.negate().mod(this.q))},et.prototype.add=function(l){return new et(this.q,this.x.add(l.toBigInteger()).mod(this.q))},et.prototype.subtract=function(l){return new et(this.q,this.x.subtract(l.toBigInteger()).mod(this.q))},et.prototype.multiply=function(l){return new et(this.q,this.x.multiply(l.toBigInteger()).mod(this.q))},et.prototype.square=function(){return new et(this.q,this.x.square().mod(this.q))},et.prototype.divide=function(l){return new et(this.q,this.x.multiply(l.toBigInteger().modInverse(this.q)).mod(this.q))},Xe.prototype.getX=function(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},Xe.prototype.getY=function(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},Xe.prototype.equals=function(l){return l==this||(this.isInfinity()?l.isInfinity():l.isInfinity()?this.isInfinity():!!l.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(l.z)).mod(this.curve.q).equals(j.ZERO)&&l.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(l.z)).mod(this.curve.q).equals(j.ZERO))},Xe.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(j.ZERO)&&!this.y.toBigInteger().equals(j.ZERO)},Xe.prototype.negate=function(){return new Xe(this.curve,this.x,this.y.negate(),this.z)},Xe.prototype.add=function(l){if(this.isInfinity())return l;if(l.isInfinity())return this;var h=l.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(l.z)).mod(this.curve.q),m=l.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(l.z)).mod(this.curve.q);if(j.ZERO.equals(m))return j.ZERO.equals(h)?this.twice():this.curve.getInfinity();var x=new j("3"),O=this.x.toBigInteger(),M=this.y.toBigInteger(),J=(l.x.toBigInteger(),l.y.toBigInteger(),m.square()),z=J.multiply(m),K=O.multiply(J),Y=h.square().multiply(this.z),X=Y.subtract(K.shiftLeft(1)).multiply(l.z).subtract(z).multiply(m).mod(this.curve.q),re=K.multiply(x).multiply(h).subtract(M.multiply(z)).subtract(Y.multiply(h)).multiply(l.z).add(h.multiply(z)).mod(this.curve.q),oe=z.multiply(this.z).multiply(l.z).mod(this.curve.q);return new Xe(this.curve,this.curve.fromBigInteger(X),this.curve.fromBigInteger(re),oe)},Xe.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var l=new j("3"),h=this.x.toBigInteger(),m=this.y.toBigInteger(),x=m.multiply(this.z),O=x.multiply(m).mod(this.curve.q),M=this.curve.a.toBigInteger(),J=h.square().multiply(l);j.ZERO.equals(M)||(J=J.add(this.z.square().multiply(M)));var z=(J=J.mod(this.curve.q)).square().subtract(h.shiftLeft(3).multiply(O)).shiftLeft(1).multiply(x).mod(this.curve.q),K=J.multiply(l).multiply(h).subtract(O.shiftLeft(1)).shiftLeft(2).multiply(O).subtract(J.square().multiply(J)).mod(this.curve.q),Y=x.square().multiply(x).shiftLeft(3).mod(this.curve.q);return new Xe(this.curve,this.curve.fromBigInteger(z),this.curve.fromBigInteger(K),Y)},Xe.prototype.multiply=function(l){if(this.isInfinity())return this;if(l.signum()==0)return this.curve.getInfinity();var h,m=l,x=m.multiply(new j("3")),O=this.negate(),M=this,J=this.curve.q.subtract(l),z=J.multiply(new j("3")),K=new Xe(this.curve,this.x,this.y),Y=K.negate();for(h=x.bitLength()-2;h>0;--h){M=M.twice();var X=x.testBit(h);X!=m.testBit(h)&&(M=M.add(X?this:O))}for(h=z.bitLength()-2;h>0;--h){K=K.twice();var re=z.testBit(h);re!=J.testBit(h)&&(K=K.add(re?K:Y))}return M},Xe.prototype.multiplyTwo=function(l,h,m){var x;x=l.bitLength()>m.bitLength()?l.bitLength()-1:m.bitLength()-1;for(var O=this.curve.getInfinity(),M=this.add(h);x>=0;)O=O.twice(),l.testBit(x)?O=m.testBit(x)?O.add(M):O.add(this):m.testBit(x)&&(O=O.add(h)),--x;return O},lt.prototype.getQ=function(){return this.q},lt.prototype.getA=function(){return this.a},lt.prototype.getB=function(){return this.b},lt.prototype.equals=function(l){return l==this||this.q.equals(l.q)&&this.a.equals(l.a)&&this.b.equals(l.b)},lt.prototype.getInfinity=function(){return this.infinity},lt.prototype.fromBigInteger=function(l){return new et(this.q,l)},lt.prototype.decodePointHex=function(l){switch(parseInt(l.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var h=(l.length-2)/2,m=l.substr(2,h),x=l.substr(h+2,h);return new Xe(this,this.fromBigInteger(new j(m,16)),this.fromBigInteger(new j(x,16)));default:return null}},et.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},Xe.prototype.getEncoded=function(c){var l=function(M,J){var z=M.toByteArrayUnsigned();if(J<z.length)z=z.slice(z.length-J);else for(;J>z.length;)z.unshift(0);return z},h=this.getX().toBigInteger(),m=this.getY().toBigInteger(),x=l(h,32);return c?m.isEven()?x.unshift(2):x.unshift(3):(x.unshift(4),x=x.concat(l(m,32))),x},Xe.decodeFrom=function(c,l){l[0];var h=l.length-1,m=l.slice(1,1+h/2),x=l.slice(1+h/2,1+h);m.unshift(0),x.unshift(0);var O=new j(m),M=new j(x);return new Xe(c,c.fromBigInteger(O),c.fromBigInteger(M))},Xe.decodeFromHex=function(c,l){l.substr(0,2);var h=l.length-2,m=l.substr(2,h/2),x=l.substr(2+h/2,h/2),O=new j(m,16),M=new j(x,16);return new Xe(c,c.fromBigInteger(O),c.fromBigInteger(M))},Xe.prototype.add2D=function(c){if(this.isInfinity())return c;if(c.isInfinity())return this;if(this.x.equals(c.x))return this.y.equals(c.y)?this.twice():this.curve.getInfinity();var l=c.x.subtract(this.x),h=c.y.subtract(this.y).divide(l),m=h.square().subtract(this.x).subtract(c.x),x=h.multiply(this.x.subtract(m)).subtract(this.y);return new Xe(this.curve,m,x)},Xe.prototype.twice2D=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var c=this.curve.fromBigInteger(j.valueOf(2)),l=this.curve.fromBigInteger(j.valueOf(3)),h=this.x.square().multiply(l).add(this.curve.a).divide(this.y.multiply(c)),m=h.square().subtract(this.x.multiply(c)),x=h.multiply(this.x.subtract(m)).subtract(this.y);return new Xe(this.curve,m,x)},Xe.prototype.multiply2D=function(c){if(this.isInfinity())return this;if(c.signum()==0)return this.curve.getInfinity();var l,h=c,m=h.multiply(new j("3")),x=this.negate(),O=this;for(l=m.bitLength()-2;l>0;
132--l){O=O.twice();var M=m.testBit(l);M!=h.testBit(l)&&(O=O.add2D(M?this:x))}return O},Xe.prototype.isOnCurve=function(){var c=this.getX().toBigInteger(),l=this.getY().toBigInteger(),h=this.curve.getA().toBigInteger(),m=this.curve.getB().toBigInteger(),x=this.curve.getQ(),O=l.multiply(l).mod(x),M=c.multiply(c).multiply(c).add(h.multiply(c)).add(m).mod(x);return O.equals(M)},Xe.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},Xe.prototype.validate=function(){var c=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var l=this.getX().toBigInteger(),h=this.getY().toBigInteger();if(l.compareTo(j.ONE)<0||l.compareTo(c.subtract(j.ONE))>0)throw new Error("x coordinate out of bounds");if(h.compareTo(j.ONE)<0||h.compareTo(c.subtract(j.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(c).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
133 */var Bt=(function(){var c=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),l=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),h={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:`
134`,r:"\r",t:"	"};function m(M,J,z){return J?h[J]:String.fromCharCode(parseInt(z,16))}var x=new String(""),O=Object.hasOwnProperty;return function(M,J){var z,K,Y=M.match(c),X=Y[0],re=!1;X==="{"?z={}:X==="["?z=[]:(z=[],re=!0);for(var oe=[z],fe=1-re,ye=Y.length;fe<ye;++fe){var be;switch((X=Y[fe]).charCodeAt(0)){default:(be=oe[0])[K||be.length]=+X,K=void 0;break;case 34:if((X=X.substring(1,X.length-1)).indexOf("\\")!==-1&&(X=X.replace(l,m)),be=oe[0],!K){if(!(be instanceof Array)){K=X||x;break}K=be.length}be[K]=X,K=void 0;break;case 91:be=oe[0],oe.unshift(be[K||be.length]=[]),K=void 0;break;case 93:oe.shift();break;case 102:(be=oe[0])[K||be.length]=!1,K=void 0;break;case 110:(be=oe[0])[K||be.length]=null,K=void 0;break;case 116:(be=oe[0])[K||be.length]=!0,K=void 0;break;case 123:be=oe[0],oe.unshift(be[K||be.length]={}),K=void 0;break;case 125:oe.shift()}}if(re){if(oe.length!==1)throw new Error;z=z[0]}else if(oe.length)throw new Error;return J&&(z=(function N(Z,te){var ne=Z[te];if(ne&&(ne===void 0?"undefined":s(ne))==="object"){var he=null;for(var we in ne)if(O.call(ne,we)&&ne!==Z){var Qe=N(ne,we);Qe!==void 0?ne[we]=Qe:(he||(he=[]),he.push(we))}if(he)for(var je=he.length;--je>=0;)delete ne[he[je]]}return J.call(Z,te,ne)})({"":z},"")),z}})();U!==void 0&&U||(n.KJUR=U={}),U.asn1!==void 0&&U.asn1||(U.asn1={}),U.asn1.ASN1Util=new function(){this.integerToByteHex=function(c){var l=c.toString(16);return l.length%2==1&&(l="0"+l),l},this.bigIntToMinTwosComplementsHex=function(c){var l=c.toString(16);if(l.substr(0,1)!="-")l.length%2==1?l="0"+l:l.match(/^[0-7]/)||(l="00"+l);else{var h=l.substr(1).length;h%2==1?h+=1:l.match(/^[0-7]/)||(h+=2);for(var m="",x=0;x<h;x++)m+="f";l=new j(m,16).xor(c).add(j.ONE).toString(16).replace(/^-/,"")}return l},this.getPEMStringFromHex=function(c,l){return Er(c,l)},this.newObject=function(c){var l=U.asn1,h=l.ASN1Object,m=l.DERBoolean,x=l.DERInteger,O=l.DERBitString,M=l.DEROctetString,J=l.DERNull,z=l.DERObjectIdentifier,K=l.DEREnumerated,Y=l.DERUTF8String,X=l.DERNumericString,re=l.DERPrintableString,oe=l.DERTeletexString,fe=l.DERIA5String,ye=l.DERUTCTime,be=l.DERGeneralizedTime,N=l.DERVisibleString,Z=l.DERBMPString,te=l.DERSequence,ne=l.DERSet,he=l.DERTaggedObject,we=l.ASN1Util.newObject;if(c instanceof l.ASN1Object)return c;var Qe=Object.keys(c);if(Qe.length!=1)throw new Error("key of param shall be only one.");var je=Qe[0];if(":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+je+":")==-1)throw new Error("undefined key: "+je);if(je=="bool")return new m(c[je]);if(je=="int")return new x(c[je]);if(je=="bitstr")return new O(c[je]);if(je=="octstr")return new M(c[je]);
134if(je=="null")return new J(c[je]);if(je=="oid")return new z(c[je]);if(je=="enum")return new K(c[je]);if(je=="utf8str")return new Y(c[je]);if(je=="numstr")return new X(c[je]);if(je=="prnstr")return new re(c[je]);if(je=="telstr")return new oe(c[je]);if(je=="ia5str")return new fe(c[je]);if(je=="utctime")return new ye(c[je]);if(je=="gentime")return new be(c[je]);if(je=="visstr")return new N(c[je]);if(je=="bmpstr")return new Z(c[je]);if(je=="asn1")return new h(c[je]);if(je=="seq"){for(var gt=c[je],Ye=[],nt=0;nt<gt.length;nt++){var xt=we(gt[nt]);Ye.push(xt)}return new te({array:Ye})}if(je=="set"){for(gt=c[je],Ye=[],nt=0;nt<gt.length;nt++)xt=we(gt[nt]),Ye.push(xt);return new ne({array:Ye})}if(je=="tag"){var It=c[je];if(Object.prototype.toString.call(It)==="[object Array]"&&It.length==3){var Pt=we(It[2]);return new he({tag:It[0],explicit:It[1],obj:Pt})}return new he(It)}},this.jsonToASN1HEX=function(c){return this.newObject(c).getEncodedHex()}},U.asn1.ASN1Util.oidHexToInt=function(c){for(var l="",h=parseInt(c.substr(0,2),16),m=(l=Math.floor(h/40)+"."+h%40,""),x=2;x<c.length;x+=2){var O=("00000000"+parseInt(c.substr(x,2),16).toString(2)).slice(-8);m+=O.substr(1,7),O.substr(0,1)=="0"&&(l=l+"."+new j(m,2).toString(10),m="")}return l},U.asn1.ASN1Util.oidIntToHex=function(c){var l=function(z){var K=z.toString(16);return K.length==1&&(K="0"+K),K},h=function(z){var K="",Y=new j(z,10).toString(2),X=7-Y.length%7;X==7&&(X=0);for(var re="",oe=0;oe<X;oe++)re+="0";for(Y=re+Y,oe=0;oe<Y.length-1;oe+=7){var fe=Y.substr(oe,7);oe!=Y.length-7&&(fe="1"+fe),K+=l(parseInt(fe,2))}return K};if(!c.match(/^[0-9.]+$/))throw"malformed oid string: "+c;var m="",x=c.split("."),O=40*parseInt(x[0])+parseInt(x[1]);m+=l(O),x.splice(0,2);for(var M=0;M<x.length;M++)m+=h(x[M]);return m},U.asn1.ASN1Object=function(c){this.params=null,this.getLengthHexFromValue=function(){if(this.hV===void 0||this.hV==null)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n=0,v="+this.hV);var l=this.hV.length/2,h=l.toString(16);if(h.length%2==1&&(h="0"+h),l<128)return h;var m=h.length/2;if(m>15)throw"ASN.1 length too long to represent by 8x: n = "+l.toString(16);return(128+m).toString(16)+h},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(l){this.params=l},c!=null&&c.tlv!=null&&(this.hTLV=c.tlv,this.isModified=!1)},U.asn1.DERAbstractString=function(c){U.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(l){this.hTLV=null,this.isModified=!0,this.s=l,this.hV=sl(this.s).toLowerCase()},this.setStringHex=function(l){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=l},this.getFreshValueHex=function(){return this.hV},c!==void 0&&(typeof c=="string"?this.setString(c):c.str!==void 0?this.setString(c.str):c.hex!==void 0&&this.setStringHex(c.hex))},f.lang.extend(U.asn1.DERAbstractString,U.asn1.ASN1Object),U.asn1.DERAbstractTime=function(c){U.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(l){var h=l.getTime()+6e4*l.getTimezoneOffset();return new Date(h)},this.formatDate=function(l,h,m){var x=this.zeroPadding,O=this.localDateToUTC(l),M=String(O.getFullYear());h=="utc"&&(M=M.substr(2,2));var J=M+x(String(O.getMonth()+1),2)+x(String(O.getDate()),2)+x(String(O.getHours()),2)+x(String(O.getMinutes()),2)+x(String(O.getSeconds()),2);if(m===!0){var z=O.getMilliseconds();if(z!=0){var K=x(String(z),3);J=J+"."+(K=K.replace(/[0]+$/,""))}}return J+"Z"},this.zeroPadding=function(l,h){return l.length>=h?l:new Array(h-l.length+1).join("0")+l},this.getString=function(){return this.s},this.setString=function(l){this.hTLV=null,this.isModified=!0,this.s=l,this.hV=Br(l)},this.setByDateValue=function(l,h,m,x,O,M){var J=new Date(Date.UTC(l,h-1,m,x,O,M,0));this.setByDate(J)},this.getFreshValueHex=function(){return this.hV}},f.lang.extend(U.asn1.DERAbstractTime,U.asn1.ASN1Object),U.asn1.DERAbstractStructured=function(c){U.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(l){this.hTLV=null,this.isModified=!0,this.asn1Array=l},this.appendASN1Object=function(l){this.hTLV=null,this.isModified=!0,this.asn1Array.push(l)},this.asn1Array=new Array,c!==void 0&&c.array!==void 0&&(this.asn1Array=c.array)},f.lang.extend(U.asn1.DERAbstractStructured,U.asn1.ASN1Object),U.asn1.DERBoolean=function(c){U.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=c==0?"010100":"0101ff"},f.lang.extend(U.asn1.DERBoolean,U.asn1.ASN1Object),U.asn1.DERInteger=function(c){U.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(l){this.hTLV=null,this.isModified=!0,this.hV=U.asn1.ASN1Util.bigIntToMinTwosComplementsHex(l)},this.setByInteger=function(l){var h=new j(String(l),10);this.setByBigInteger(h)},this.setValueHex=function(l){this.hV=l},this.getFreshValueHex=function(){return this.hV},c!==void 0&&(c.bigint!==void 0?this.setByBigInteger(c.bigint):c.int!==void 0?this.setByInteger(c.int):typeof c=="number"?this.setByInteger(c):c.hex!==void 0&&this.setValueHex(c.hex))},f.lang.extend(U.asn1.DERInteger,U.asn1.ASN1Object),U.asn1.DERBitString=function(c){if(c!==void 0&&c.obj!==void 0){var l=U.asn1.ASN1Util.newObject(c.obj);c.hex="00"+l.getEncodedHex()}U.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(h){this.hTLV=null,this.isModified=!0,this.hV=h},this.setUnusedBitsAndHexValue=function(h,m){if(h<0||7<h)throw"unused bits shall be from 0 to 7: u = "+h;var x="0"+h;this.hTLV=null,this.isModified=!0,this.hV=x+m}
134,this.setByBinaryString=function(h){var m=8-(h=h.replace(/0+$/,"")).length%8;m==8&&(m=0);for(var x=0;x<=m;x++)h+="0";var O="";for(x=0;x<h.length-1;x+=8){var M=h.substr(x,8),J=parseInt(M,2).toString(16);J.length==1&&(J="0"+J),O+=J}this.hTLV=null,this.isModified=!0,this.hV="0"+m+O},this.setByBooleanArray=function(h){for(var m="",x=0;x<h.length;x++)h[x]==1?m+="1":m+="0";this.setByBinaryString(m)},this.newFalseArray=function(h){for(var m=new Array(h),x=0;x<h;x++)m[x]=!1;return m},this.getFreshValueHex=function(){return this.hV},c!==void 0&&(typeof c=="string"&&c.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(c):c.hex!==void 0?this.setHexValueIncludingUnusedBits(c.hex):c.bin!==void 0?this.setByBinaryString(c.bin):c.array!==void 0&&this.setByBooleanArray(c.array))},f.lang.extend(U.asn1.DERBitString,U.asn1.ASN1Object),U.asn1.DEROctetString=function(c){if(c!==void 0&&c.obj!==void 0){var l=U.asn1.ASN1Util.newObject(c.obj);c.hex=l.getEncodedHex()}U.asn1.DEROctetString.superclass.constructor.call(this,c),this.hT="04"},f.lang.extend(U.asn1.DEROctetString,U.asn1.DERAbstractString),U.asn1.DERNull=function(){U.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},f.lang.extend(U.asn1.DERNull,U.asn1.ASN1Object),U.asn1.DERObjectIdentifier=function(c){U.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(l){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=l},this.setValueOidString=function(l){var h=(function(x){var O=function(re){var oe=re.toString(16);return oe.length==1&&(oe="0"+oe),oe},M=function(re){var oe="",fe=parseInt(re,10).toString(2),ye=7-fe.length%7;ye==7&&(ye=0);for(var be="",N=0;N<ye;N++)be+="0";for(fe=be+fe,N=0;N<fe.length-1;N+=7){var Z=fe.substr(N,7);N!=fe.length-7&&(Z="1"+Z),oe+=O(parseInt(Z,2))}return oe};try{if(!x.match(/^[0-9.]+$/))return null;var J="",z=x.split("."),K=40*parseInt(z[0],10)+parseInt(z[1],10);J+=O(K),z.splice(0,2);for(var Y=0;Y<z.length;Y++)J+=M(z[Y]);return J}catch{return null}})(l);if(h==null)throw new Error("malformed oid string: "+l);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=h},this.setValueName=function(l){var h=U.asn1.x509.OID.name2oid(l);if(h==="")throw new Error("DERObjectIdentifier oidName undefined: "+l);this.setValueOidString(h)},this.setValueNameOrOid=function(l){l.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(l):this.setValueName(l)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(l){typeof l=="string"?this.setValueNameOrOid(l):l.oid!==void 0?this.setValueNameOrOid(l.oid):l.name!==void 0?this.setValueNameOrOid(l.name):l.hex!==void 0&&this.setValueHex(l.hex)},c!==void 0&&this.setByParam(c)},f.lang.extend(U.asn1.DERObjectIdentifier,U.asn1.ASN1Object),U.asn1.DEREnumerated=function(c){U.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(l){this.hTLV=null,this.isModified=!0,this.hV=U.asn1.ASN1Util.bigIntToMinTwosComplementsHex(l)},this.setByInteger=function(l){var h=new j(String(l),10);this.setByBigInteger(h)},this.setValueHex=function(l){this.hV=l},this.getFreshValueHex=function(){return this.hV},c!==void 0&&(c.int!==void 0?this.setByInteger(c.int):typeof c=="number"?this.setByInteger(c):c.hex!==void 0&&this.setValueHex(c.hex))},f.lang.extend(U.asn1.DEREnumerated,U.asn1.ASN1Object),U.asn1.DERUTF8String=function(c){U.asn1.DERUTF8String.superclass.constructor.call(this,c),this.hT="0c"},f.lang.extend(U.asn1.DERUTF8String,U.asn1.DERAbstractString),U.asn1.DERNumericString=function(c){U.asn1.DERNumericString.superclass.constructor.call(this,c),this.hT="12"},f.lang.extend(U.asn1.DERNumericString,U.asn1.DERAbstractString),U.asn1.DERPrintableString=function(c){U.asn1.DERPrintableString.superclass.constructor.call(this,c),this.hT="13"},f.lang.extend(U.asn1.DERPrintableString,U.asn1.DERAbstractString),U.asn1.DERTeletexString=function(c){U.asn1.DERTeletexString.superclass.constructor.call(this,c),this.hT="14"},f.lang.extend(U.asn1.DERTeletexString,U.asn1.DERAbstractString),U.asn1.DERIA5String=function(c){U.asn1.DERIA5String.superclass.constructor.call(this,c),this.hT="16"},f.lang.extend(U.asn1.DERIA5String,U.asn1.DERAbstractString),U.asn1.DERVisibleString=function(c){U.asn1.DERIA5String.superclass.constructor.call(this,c),this.hT="1a"},f.lang.extend(U.asn1.DERVisibleString,U.asn1.DERAbstractString),U.asn1.DERBMPString=function(c){U.asn1.DERBMPString.superclass.constructor.call(this,c),this.hT="1e"},f.lang.extend(U.asn1.DERBMPString,U.asn1.DERAbstractString),U.asn1.DERUTCTime=function(c){U.asn1.DERUTCTime.superclass.constructor.call(this,c),this.hT="17",this.setByDate=function(l){this.hTLV=null,this.isModified=!0,this.date=l,this.s=this.formatDate(this.date,"utc"),this.hV=Br(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=Br(this.s)),this.hV},c!==void 0&&(c.str!==void 0?this.setString(c.str):typeof c=="string"&&c.match(/^[0-9]{12}Z$/)?this.setString(c):c.hex!==void 0?this.setStringHex(c.hex):c.date!==void 0&&this.setByDate(c.date))},f.lang.extend(U.asn1.DERUTCTime,U.asn1.DERAbstractTime),U.asn1.DERGeneralizedTime=function(c){U.asn1.DERGeneralizedTime.superclass.constructor.call(this,c),this.hT="18",this.withMillis=!1,this.setByDate=function(l){this.hTLV=null,this.isModified=!0,this.date=l,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=Br(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=Br(this.s)),this.hV},c!==void 0&&(c.str!==void 0?this.setString(c.str):typeof c=="string"&&c.match(/^[0-9]{14}Z$/)?this.setString(c):c.hex!==void 0?this.setStringHex(c.hex):c.date!==void 0&&this.setByDate(c.date),c.millis===!0&&(this.withMillis=!0))},f.lang.extend(U.asn1.DERGeneralizedTime,U.asn1.DERAbstractTime),U.asn1.DERSequence=function(c){U.asn1.DERSequence.superclass.constructor.call(this,c),this.hT="30",this.getFreshValueHex=function(){for(var l="",h=0;h<this.asn1Array.length;h++)l+=this.asn1Array[h].getEncodedHex();return this.hV=l,this.hV}},f.lang.extend(U.asn1.DERSequence,U.asn1.DERAbstractStructured),U.asn1.DERSet=function(c){U.asn1.DERSet.superclass.constructor.call(this,c),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var l=new Array,h=0;h<this.asn1Array.length;h++){var m=this.asn1Array[h];l.push(m.getEncodedHex())}return this.sortFlag==1&&l.sort(),this.hV=l.join(""),this.hV},c!==void 0&&c.sortflag!==void 0&&c.sortflag==0&&(this.sortFlag=!1)},f.lang.extend(U.asn1.DERSet,U.asn1.DERAbstractStructured),U.asn1.DERTaggedObject=function(c){U.asn1.DERTaggedObject.
134superclass.constructor.call(this);var l=U.asn1;this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(h,m,x){this.hT=m,this.isExplicit=h,this.asn1Object=x,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=x.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,m),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(h){h.tag!=null&&(this.hT=h.tag),h.explicit!=null&&(this.isExplicit=h.explicit),h.tage!=null&&(this.hT=h.tage,this.isExplicit=!0),h.tagi!=null&&(this.hT=h.tagi,this.isExplicit=!1),h.obj!=null&&(h.obj instanceof l.ASN1Object?(this.asn1Object=h.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)):s(h.obj)=="object"&&(this.asn1Object=l.ASN1Util.newObject(h.obj),this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},c!=null&&this.setByParam(c)},f.lang.extend(U.asn1.DERTaggedObject,U.asn1.ASN1Object);var U,ir,Ft,We=new function(){};function fi(c){for(var l=new Array,h=0;h<c.length;h++)l[h]=c.charCodeAt(h);return l}function pr(c){for(var l="",h=0;h<c.length;h++)l+=String.fromCharCode(c[h]);return l}function _r(c){for(var l="",h=0;h<c.length;h++){var m=c[h].toString(16);m.length==1&&(m="0"+m),l+=m}return l}function Br(c){return _r(fi(c))}function vs(c){return c=(c=(c=c.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function di(c){return c.length%4==2?c+="==":c.length%4==3&&(c+="="),c=(c=c.replace(/-/g,"+")).replace(/_/g,"/")}function Kt(c){return c.length%2==1&&(c="0"+c),vs(H(c))}function At(c){return $(di(c))}function sl(c){return bs(ws(c))}function sr(c){return decodeURIComponent(_s(c))}function Ir(c){for(var l="",h=0;h<c.length-1;h+=2)l+=String.fromCharCode(parseInt(c.substr(h,2),16));return l}function sn(c){for(var l="",h=0;h<c.length;h++)l+=("0"+c.charCodeAt(h).toString(16)).slice(-2);return l}function zu(c){return H(c)}function Ku(c){var l=zu(c).replace(/(.{64})/g,`$1\r
135`);return l=l.replace(/\r\n$/,"")}function Ju(c){return $(c.replace(/[^0-9A-Za-z\/+=]*/g,""))}function Er(c,l){return"-----BEGIN "+l+`-----\r
136`+Ku(c)+`\r
137-----END `+l+`-----\r
138`}function an(c,l){if(c.indexOf("-----BEGIN ")==-1)throw"can't find PEM header: "+l;return Ju(c=l!==void 0?(c=c.replace(new RegExp("^[^]*-----BEGIN "+l+"-----"),"")).replace(new RegExp("-----END "+l+"-----[^]*$"),""):(c=c.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function al(c){var l,h,m,x,O,M,J,z,K,Y,X;if(X=c.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return z=X[1],l=parseInt(z),z.length===2&&(50<=l&&l<100?l=1900+l:0<=l&&l<50&&(l=2e3+l)),h=parseInt(X[2])-1,m=parseInt(X[3]),x=parseInt(X[4]),O=parseInt(X[5]),M=parseInt(X[6]),J=0,(K=X[7])!==""&&(Y=(K.substr(1)+"00").substr(0,3),J=parseInt(Y)),Date.UTC(l,h,m,x,O,M,J);throw"unsupported zulu format: "+c}function Gu(c){return~~(al(c)/1e3)}function bs(c){return c.replace(/%/g,"")}function _s(c){return c.replace(/(..)/g,"%$1")}function Yu(c){var l="malformed IPv6 address";if(!c.match(/^[0-9A-Fa-f:]+$/))throw l;var h=(c=c.toLowerCase()).split(":").length-1;if(h<2)throw l;var m=":".repeat(7-h+2),x=(c=c.replace("::",m)).split(":");if(x.length!=8)throw l;for(var O=0;O<8;O++)x[O]=("0000"+x[O]).slice(-4);return x.join("")}function Zu(c){if(!c.match(/^[0-9A-Fa-f]{32}$/))throw"malformed IPv6 address octet";for(var l=(c=c.toLowerCase()).match(/.{1,4}/g),h=0;h<8;h++)l[h]=l[h].replace(/^0+/,""),l[h]==""&&(l[h]="0");var m=(c=":"+l.join(":")+":").match(/:(0:){2,}/g);if(m===null)return c.slice(1,-1);var x="";for(h=0;h<m.length;h++)m[h].length>x.length&&(x=m[h]);return(c=c.replace(x,"::")).slice(1,-1)}function ll(c){var l="malformed hex value";if(!c.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw l;if(c.length!=8)return c.length==32?Zu(c):c;try{return parseInt(c.substr(0,2),16)+"."+parseInt(c.substr(2,2),16)+"."+parseInt(c.substr(4,2),16)+"."+parseInt(c.substr(6,2),16)}catch{throw l}}function ws(c){for(var l=encodeURIComponent(c),h="",m=0;m<l.length;m++)l[m]=="%"?(h+=l.substr(m,3),m+=2):h=h+"%"+Br(l[m]);return h}function Xu(c){return!(c.length%2!=0||!c.match(/^[0-9a-f]+$/)&&!c.match(/^[0-9A-F]+$/))}function cl(c){return c.length%2==1?"0"+c:c.substr(0,1)>"7"?"00"+c:c}We.getLblen=function(c,l){if(c.substr(l+2,1)!="8")return 1;var h=parseInt(c.substr(l+3,1));return h==0?-1:0<h&&h<10?h+1:-2},We.getL=function(c,l){var h=We.getLblen(c,l);return h<1?"":c.substr(l+2,2*h)},We.getVblen=function(c,l){var h;
138return(h=We.getL(c,l))==""?-1:(h.substr(0,1)==="8"?new j(h.substr(2),16):new j(h,16)).intValue()},We.getVidx=function(c,l){var h=We.getLblen(c,l);return h<0?h:l+2*(h+1)},We.getV=function(c,l){var h=We.getVidx(c,l),m=We.getVblen(c,l);return c.substr(h,2*m)},We.getTLV=function(c,l){return c.substr(l,2)+We.getL(c,l)+We.getV(c,l)},We.getTLVblen=function(c,l){return 2+2*We.getLblen(c,l)+2*We.getVblen(c,l)},We.getNextSiblingIdx=function(c,l){return We.getVidx(c,l)+2*We.getVblen(c,l)},We.getChildIdx=function(c,l){var h,m,x,O=We,M=[];h=O.getVidx(c,l),m=2*O.getVblen(c,l),c.substr(l,2)=="03"&&(h+=2,m-=2),x=0;for(var J=h;x<=m;){var z=O.getTLVblen(c,J);if((x+=z)<=m&&M.push(J),J+=z,x>=m)break}return M},We.getNthChildIdx=function(c,l,h){return We.getChildIdx(c,l)[h]},We.getIdxbyList=function(c,l,h,m){var x,O,M=We;return h.length==0?m!==void 0&&c.substr(l,2)!==m?-1:l:(x=h.shift())>=(O=M.getChildIdx(c,l)).length?-1:M.getIdxbyList(c,O[x],h,m)},We.getIdxbyListEx=function(c,l,h,m){var x,O,M=We;if(h.length==0)return m!==void 0&&c.substr(l,2)!==m?-1:l;x=h.shift(),O=M.getChildIdx(c,l);for(var J=0,z=0;z<O.length;z++){var K=c.substr(O[z],2);if(typeof x=="number"&&!M.isContextTag(K)&&J==x||typeof x=="string"&&M.isContextTag(K,x))return M.getIdxbyListEx(c,O[z],h,m);M.isContextTag(K)||J++}return-1},We.getTLVbyList=function(c,l,h,m){var x=We,O=x.getIdxbyList(c,l,h,m);return O==-1||O>=c.length?null:x.getTLV(c,O)},We.getTLVbyListEx=function(c,l,h,m){var x=We,O=x.getIdxbyListEx(c,l,h,m);return O==-1?null:x.getTLV(c,O)},We.getVbyList=function(c,l,h,m,x){var O,M,J=We;return(O=J.getIdxbyList(c,l,h,m))==-1||O>=c.length?null:(M=J.getV(c,O),x===!0&&(M=M.substr(2)),M)},We.getVbyListEx=function(c,l,h,m,x){var O,M,J=We;return(O=J.getIdxbyListEx(c,l,h,m))==-1?null:(M=J.getV(c,O),c.substr(O,2)=="03"&&x!==!1&&(M=M.substr(2)),M)},We.getInt=function(c,l,h){h==null&&(h=-1);try{var m=c.substr(l,2);if(m!="02"&&m!="03")return h;var x=We.getV(c,l);return m=="02"?parseInt(x,16):(function(M){try{var J=M.substr(0,2);if(J=="00")return parseInt(M.substr(2),16);var z=parseInt(J,16),K=M.substr(2),Y=parseInt(K,16).toString(2);return Y=="0"&&(Y="00000000"),Y=Y.slice(0,0-z),parseInt(Y,2)}catch{return-1}})(x)}catch{return h}},We.getOID=function(c,l,h){h==null&&(h=null);try{return c.substr(l,2)!="06"?h:(function(x){if(!Xu(x))return null;try{var O=[],M=x.substr(0,2),J=parseInt(M,16);O[0]=new String(Math.floor(J/40)),O[1]=new String(J%40);for(var z=x.substr(2),K=[],Y=0;Y<z.length/2;Y++)K.push(parseInt(z.substr(2*Y,2),16));var X=[],re="";for(Y=0;Y<K.length;Y++)128&K[Y]?re+=Qu((127&K[Y]).toString(2),7):(re+=Qu((127&K[Y]).toString(2),7),X.push(new String(parseInt(re,2))),re="");var oe=O.join(".");return X.length>0&&(oe=oe+"."+X.join(".")),oe}catch{return null}})(We.getV(c,l))}catch{return h}},We.getOIDName=function(c,l,h){h==null&&(h=null);try{var m=We.getOID(c,l,h);if(m==h)return h;var x=U.asn1.x509.OID.oid2name(m);return x==""?m:x}catch{return h}},We.getString=function(c,l,h){h==null&&(h=null);try{return Ir(We.getV(c,l))}catch{return h}},We.hextooidstr=function(c){var l=function(re,oe){return re.length>=oe?re:new Array(oe-re.length+1).join("0")+re},h=[],m=c.substr(0,2),x=parseInt(m,16);h[0]=new String(Math.floor(x/40)),h[1]=new String(x%40);for(var O=c.substr(2),M=[],J=0;J<O.length/2;J++)M.push(parseInt(O.substr(2*J,2),16));var z=[],K="";for(J=0;J<M.length;J++)128&M[J]?K+=l((127&M[J]).toString(2),7):(K+=l((127&M[J]).toString(2),7),z.push(new String(parseInt(K,2))),K="");var Y=h.join(".");return z.length>0&&(Y=Y+"."+z.join(".")),Y},We.dump=function(c,l,h,m){var x=We,O=x.getV,M=x.dump,J=x.getChildIdx,z=c;c instanceof U.asn1.ASN1Object&&(z=c.getEncodedHex());var K=function(je,gt){return je.length<=2*gt?je:je.substr(0,gt)+"..(total "+je.length/2+"bytes).."+je.substr(je.length-gt,gt)};l===void 0&&(l={ommit_long_octet:32}),h===void 0&&(h=0),m===void 0&&(m="");var Y,X=l.ommit_long_octet;if((Y=z.substr(h,2))=="01")return(re=O(z,h))=="00"?m+`BOOLEAN FALSE
139`:m+`BOOLEAN TRUE
140`;if(Y=="02")return m+"INTEGER "+K(re=O(z,h),X)+`
141`;if(Y=="03"){var re=O(z,h);if(x.isASN1HEX(re.substr(2))){var oe=m+`BITSTRING, encapsulates
142`;return oe+=M(re.substr(2),l,0,m+"  ")}return m+"BITSTRING "+K(re,X)+`
143`}if(Y=="04")return re=O(z,h),x.isASN1HEX(re)?(oe=m+`OCTETSTRING, encapsulates
144`,oe+=M(re,l,0,m+"  ")):m+"OCTETSTRING "+K(re,X)+`
145`;if(Y=="05")return m+`NULL
146`;if(Y=="06"){var fe=O(z,h),ye=U.asn1.ASN1Util.oidHexToInt(fe),be=U.asn1.x509.OID.oid2name(ye),N=ye.replace(/\./g," ");
146return be!=""?m+"ObjectIdentifier "+be+" ("+N+`)
147`:m+"ObjectIdentifier ("+N+`)
148`}if(Y=="0a")return m+"ENUMERATED "+parseInt(O(z,h))+`
149`;if(Y=="0c")return m+"UTF8String '"+sr(O(z,h))+`'
150`;if(Y=="13")return m+"PrintableString '"+sr(O(z,h))+`'
151`;if(Y=="14")return m+"TeletexString '"+sr(O(z,h))+`'
152`;if(Y=="16")return m+"IA5String '"+sr(O(z,h))+`'
153`;if(Y=="17")return m+"UTCTime "+sr(O(z,h))+`
154`;if(Y=="18")return m+"GeneralizedTime "+sr(O(z,h))+`
155`;if(Y=="1a")return m+"VisualString '"+sr(O(z,h))+`'
156`;if(Y=="1e")return m+"BMPString '"+sr(O(z,h))+`'
157`;if(Y=="30"){if(z.substr(h,4)=="3000")return m+`SEQUENCE {}
158`;oe=m+`SEQUENCE
159`;var Z=l;if(((he=J(z,h)).length==2||he.length==3)&&z.substr(he[0],2)=="06"&&z.substr(he[he.length-1],2)=="04"){be=x.oidname(O(z,he[0]));var te=JSON.parse(JSON.stringify(l));te.x509ExtName=be,Z=te}for(var ne=0;ne<he.length;ne++)oe+=M(z,Z,he[ne],m+"  ");return oe}if(Y=="31"){oe=m+`SET
160`;var he=J(z,h);for(ne=0;ne<he.length;ne++)oe+=M(z,l,he[ne],m+"  ");return oe}if((128&(Y=parseInt(Y,16)))!=0){var we=31&Y;if((32&Y)!=0){for(oe=m+"["+we+`]
161`,he=J(z,h),ne=0;ne<he.length;ne++)oe+=M(z,l,he[ne],m+"  ");return oe}if(re=O(z,h),We.isASN1HEX(re)){var oe=m+"["+we+`]
162`;return oe+=M(re,l,0,m+"  ")}return(re.substr(0,8)=="68747470"||l.x509ExtName==="subjectAltName"&&we==2)&&(re=sr(re)),oe=m+"["+we+"] "+re+`
163`}return m+"UNKNOWN("+Y+") "+O(z,h)+`
164`},We.isContextTag=function(c,l){var h,m;c=c.toLowerCase();try{h=parseInt(c,16)}catch{return-1}if(l===void 0)return(192&h)==128;try{return l.match(/^\[[0-9]+\]$/)!=null&&!((m=parseInt(l.substr(1,l.length-1),10))>31)&&(192&h)==128&&(31&h)==m}catch{return!1}},We.isASN1HEX=function(c){var l=We;if(c.length%2==1)return!1;var h=l.getVblen(c,0),m=c.substr(0,2),x=l.getL(c,0);return c.length-m.length-x.length==2*h},We.checkStrictDER=function(c,l,h,m,x){var O=We;if(h===void 0){if(typeof c!="string")throw new Error("not hex string");if(c=c.toLowerCase(),!U.lang.String.isHex(c))throw new Error("not hex string");h=c.length,x=(m=c.length/2)<128?1:Math.ceil(m.toString(16))+1}if(O.getL(c,l).length>2*x)throw new Error("L of TLV too long: idx="+l);var M=O.getVblen(c,l);if(M>m)throw new Error("value of L too long than hex: idx="+l);var J=O.getTLV(c,l),z=J.length-2-O.getL(c,l).length;if(z!==2*M)throw new Error("V string length and L's value not the same:"+z+"/"+2*M);if(l===0&&c.length!=J.length)throw new Error("total length and TLV length unmatch:"+c.length+"!="+J.length);var K=c.substr(l,2);if(K==="02"){var Y=O.getVidx(c,l);if(c.substr(Y,2)=="00"&&c.charCodeAt(Y+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(K,16)){for(var X=O.getVblen(c,l),re=0,oe=O.getChildIdx(c,l),fe=0;fe<oe.length;fe++)re+=O.getTLV(c,oe[fe]).length,O.checkStrictDER(c,oe[fe],h,m,x);if(2*X!=re)throw new Error("sum of children's TLV length and L unmatch: "+2*X+"!="+re)}},We.oidname=function(c){var l=U.asn1;U.lang.String.isHex(c)&&(c=l.ASN1Util.oidHexToInt(c));var h=l.x509.OID.oid2name(c);return h===""&&(h=c),h},U!==void 0&&U||(n.KJUR=U={}),U.lang!==void 0&&U.lang||(U.lang={}),U.lang.String=function(){},typeof i=="function"?(n.utf8tob64u=ir=function(l){return vs(i.from(l,"utf8").toString("base64"))},n.b64utoutf8=Ft=function(l){return i.from(di(l),"base64").toString("utf8")}):(n.utf8tob64u=ir=function(l){return Kt(bs(ws(l)))},n.b64utoutf8=Ft=function(l){return decodeURIComponent(_s(At(l)))}),U.lang.String.isInteger=function(c){return!!c.match(/^[0-9]+$/)||!!c.match(/^-[0-9]+$/)},U.lang.String.isHex=function(c){return Xu(c)},U.lang.String.isBase64=function(c){return!(!(c=c.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||c.length%4!=0)},U.lang.String.isBase64URL=function(c){return!c.match(/[+/=]/)&&(c=di(c),U.lang.String.isBase64(c))},U.lang.String.isIntegerArray=function(c){return!!(c=c.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},U.lang.String.isPrintable=function(c){return c.match(/^[0-9A-Za-z '()+,-./:=?]*$/)!==null},U.lang.String.isIA5=function(c){return c.match(/^[\x20-\x21\x23-\x7f]*$/)!==null},U.lang.String.isMail=function(c){return c.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)!==null};var Qu=function(l,h,m){return m==null&&(m="0"),l.length>=h?l:new Array(h-l.length+1).join(m)+l};U!==void 0&&U||(n.KJUR=U={}),U.crypto!==void 0&&U.crypto||(U.crypto={}),U.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"}
vendor: 1,378 bytes, line 164
164,this.CRYPTOJSMESSAGEDIGESTNAME={md5:F.algo.MD5,sha1:F.algo.SHA1,sha224:F.algo.SHA224,sha256:F.algo.SHA256,sha384:F.algo.SHA384,sha512:F.algo.SHA512,ripemd160:F.algo.RIPEMD160},this.getDigestInfoHex=function(c,l){if(this.DIGESTINFOHEAD[l]===void 0)throw"alg not supported in Util.DIGESTINFOHEAD: "+l;return this.DIGESTINFOHEAD[l]+c},this.getPaddedDigestInfoHex=function(c,l,h){var m=this.getDigestInfoHex(c,l),x=h/4;if(m.length+22>x)throw"key is too short for SigAlg: keylen="+h+","+l;for(var O="0001",M="00"+m,J="",z=x-O.length-M.length,K=0;K<z;K+=2)J+="ff";return O+J+M},this.hashString=function(c,l){return new U.crypto.MessageDigest({alg:l}).digestString(c)},this.hashHex=function(c,l){return new U.crypto.MessageDigest({alg:l}).digestHex(c)},this.sha1=function(c){return this.hashString(c,"sha1")},this.sha256=function(c){return this.hashString(c,"sha256")},this.sha256Hex=function(c){return this.hashHex(c,"sha256")},this.sha512=function(c){return this.hashString(c,"sha512")},this.sha512Hex=function(c){return this.hashHex(c,"sha512")},this.isKey=function(c){return c instanceof Oe||c instanceof U.crypto.DSA||c instanceof U.crypto.ECDSA}},U.crypto.Util.md5=function(c){return new U.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(c)},U.crypto.Util.ripemd160=function(c){return new U.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(c)}
164,U.crypto.Util.SECURERANDOMGEN=new ze,U.crypto.Util.getRandomHexOfNbytes=function(c){var l=new Array(c);return U.crypto.Util.SECURERANDOMGEN.nextBytes(l),_r(l)},U.crypto.Util.getRandomBigIntegerOfNbytes=function(c){return new j(U.crypto.Util.getRandomHexOfNbytes(c),16)},U.crypto.Util.getRandomHexOfNbits=function(c){var l=c%8,h=new Array((c-l)/8+1);return U.crypto.Util.SECURERANDOMGEN.nextBytes(h),h[0]=(255<<l&255^255)&h[0],_r(h)},U.crypto.Util.getRandomBigIntegerOfNbits=function(c){return new j(U.crypto.Util.getRandomHexOfNbits(c),16)},U.crypto.Util.getRandomBigIntegerZeroToMax=function(c){for(var l=c.bitLength();;){var h=U.crypto.Util.getRandomBigIntegerOfNbits(l);if(c.compareTo(h)!=-1)return h}},U.crypto.Util.getRandomBigIntegerMinToMax=function(c,l){var h=c.compareTo(l);if(h==1)throw"biMin is greater than biMax";if(h==0)return c;var m=l.subtract(c);return U.crypto.Util.getRandomBigIntegerZeroToMax(m).add(c)},U.crypto.MessageDigest=function(c){this.setAlgAndProvider=function(l,h){if((l=U.crypto.MessageDigest.getCanonicalAlgName(l))!==null&&h===void 0&&(h=U.crypto.Util.DEFAULTPROVIDER[l]),":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(l)!=-1&&h=="cryptojs"){try{this.md=U.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[l].create()}catch(m){throw"setAlgAndProvider hash alg set fail alg="+l+"/"+m}this.updateString=function(m){this.md.update(m)},this.updateHex=function(m){var x=F.enc.Hex.parse(m);this.md.update(x)},this.digest=function(){return this.md.finalize().toString(F.enc.Hex)},this.digestString=function(m){return this.updateString(m),this.digest()},this.digestHex=function(m){return this.updateHex(m),this.digest()}}if(":sha256:".indexOf(l)!=-1&&h=="sjcl"){try{this.md=new sjcl.hash.sha256}catch(m){throw"setAlgAndProvider hash alg set fail alg="+l+"/"+m}this.updateString=function(m){this.md.update(m)},this.updateHex=function(m){var x=sjcl.codec.hex.toBits(m);this.md.update(x)},this.digest=function(){var m=this.md.finalize();return sjcl.codec.hex.fromBits(m)},this.digestString=function(m){return this.updateString(m),this.digest()},this.digestHex=function(m){return this.updateHex(m),this.digest()}}},this.updateString=function(l){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(l){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(l){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(l){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},c!==void 0&&c.alg!==void 0&&(this.algName=c.alg,c.prov===void 0&&(this.provName=U.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},U.crypto.MessageDigest.getCanonicalAlgName=function(c){return typeof c=="string"&&(c=(c=c.toLowerCase()).replace(/-/,"")),c},U.crypto.MessageDigest.getHashLength=function(c){var l=U.crypto.MessageDigest,h=l.getCanonicalAlgName(c);if(l.HASHLENGTH[h]===void 0)throw"not supported algorithm: "+c;return l.HASHLENGTH[h]},U.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},U.crypto.Mac=function(c){this.setAlgAndProvider=function(l,h){if((l=l.toLowerCase())==null&&(l="hmacsha1"),(l=l.toLowerCase()).substr(0,4)!="hmac")throw"setAlgAndProvider unsupported HMAC alg: "+l;h===void 0&&(h=U.crypto.Util.DEFAULTPROVIDER[l]),this.algProv=l+"/"+h;var m=l.substr(4);if(":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(m)!=-1&&h=="cryptojs"){try{var x=U.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[m];this.mac=F.algo.HMAC.create(x,this.pass)}catch(O){throw"setAlgAndProvider hash alg set fail hashAlg="+m+"/"+O}this.updateString=function(O){this.mac.update(O)},this.updateHex=function(O){var M=F.enc.Hex.parse(O);this.mac.update(M)},this.doFinal=function(){return this.mac.finalize().toString(F.enc.Hex)},this.doFinalString=function(O){return this.updateString(O),this.doFinal()},this.doFinalHex=function(O){return this.updateHex(O),this.doFinal()}}},this.updateString=function(l){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(l){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(l){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(l){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(l){if(typeof l=="string"){var h=l;return l.length%2!=1&&l.match(/^[0-9A-Fa-f]+$/)||(h=sn(l)),void(this.pass=F.enc.Hex.parse(h))}if((l===void 0?"undefined":s(l))!="object")throw"KJUR.crypto.Mac unsupported password type: "+l;if(h=null,l.hex!==void 0){if(l.hex.length%2!=0||!l.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+l.hex;h=l.hex}if(l.utf8!==void 0&&(h=sl(l.utf8)),l.rstr!==void 0&&(h=sn(l.rstr)),l.b64!==void 0&&(h=$(l.b64)),l.b64u!==void 0&&(h=At(l.b64u)),h==null)throw"KJUR.crypto.Mac unsupported password type: "+l;this.pass=F.enc.Hex.parse(h)},c!==void 0&&(c.pass!==void 0&&this.setPassword(c.pass),c.alg!==void 0&&(this.algName=c.alg,c.prov===void 0&&(this.provName=U.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},U.crypto.Signature=function(c){var l=null;if(this._setAlgNames=function(){var h=this.algName.match(/^(.+)with(.+)$/);h&&(this.mdAlgName=h[1].toLowerCase(),this.pubkeyAlgName=h[2].toLowerCase(),this.pubkeyAlgName=="rsaandmgf1"&&this.mdAlgName=="sha"&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(h,m){for(var x="",O=m/4-h.length,M=0;M<O;M++)x+="0";return x+h},this.setAlgAndProvider=function(h,m){if(this._setAlgNames(),m!="cryptojs/jsrsa")throw new Error("provider not supported: "+m);
164if(":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)!=-1){try{this.md=new U.crypto.MessageDigest({alg:this.mdAlgName})}catch(x){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+x)}this.init=function(x,O){var M=null;try{M=O===void 0?Ut.getKey(x):Ut.getKey(x,O)}catch(J){throw"init failed:"+J}if(M.isPrivate===!0)this.prvKey=M,this.state="SIGN";else{if(M.isPublic!==!0)throw"init failed.:"+M;this.pubKey=M,this.state="VERIFY"}},this.updateString=function(x){this.md.updateString(x)},this.updateHex=function(x){this.md.updateHex(x)},this.sign=function(){if(this.sHashHex=this.md.digest(),this.prvKey===void 0&&this.ecprvhex!==void 0&&this.eccurvename!==void 0&&U.crypto.ECDSA!==void 0&&(this.prvKey=new U.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof Oe&&this.pubkeyAlgName==="rsaandmgf1")this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof Oe&&this.pubkeyAlgName==="rsa")this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof U.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof U.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(x){return this.updateString(x),this.sign()},this.signHex=function(x){return this.updateHex(x),this.sign()},this.verify=function(x){if(this.sHashHex=this.md.digest(),this.pubKey===void 0&&this.ecpubhex!==void 0&&this.eccurvename!==void 0&&U.crypto.ECDSA!==void 0&&(this.pubKey=new U.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof Oe&&this.pubkeyAlgName==="rsaandmgf1")return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,x,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof Oe&&this.pubkeyAlgName==="rsa")return this.pubKey.verifyWithMessageHash(this.sHashHex,x);if(U.crypto.ECDSA!==void 0&&this.pubKey instanceof U.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,x);if(U.crypto.DSA!==void 0&&this.pubKey instanceof U.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,x);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(h,m){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(h){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(h){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(h){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(h){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(h){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=c,c!==void 0&&(c.alg!==void 0&&(this.algName=c.alg,c.prov===void 0?this.provName=U.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=c.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),c.psssaltlen!==void 0&&(this.pssSaltLen=c.psssaltlen),c.prvkeypem!==void 0)){if(c.prvkeypas!==void 0)throw"both prvkeypem and prvkeypas parameters not supported";try{l=Ut.getKey(c.prvkeypem),this.init(l)}catch(h){throw"fatal error to load pem private key: "+h}}},U.crypto.Cipher=function(c){},U.crypto.Cipher.encrypt=function(c,l,h){if(l instanceof Oe&&l.isPublic){var m=U.crypto.Cipher.getAlgByKeyAndName(l,h);if(m==="RSA")return l.encrypt(c);if(m==="RSAOAEP")return l.encryptOAEP(c,"sha1");var x=m.match(/^RSAOAEP(\d+)$/);if(x!==null)return l.encryptOAEP(c,"sha"+x[1]);throw"Cipher.encrypt: unsupported algorithm for RSAKey: "+h}throw"Cipher.encrypt: unsupported key or algorithm"},U.crypto.Cipher.decrypt=function(c,l,h){if(l instanceof Oe&&l.isPrivate){var m=U.crypto.Cipher.getAlgByKeyAndName(l,h);if(m==="RSA")return l.decrypt(c);if(m==="RSAOAEP")return l.decryptOAEP(c,"sha1");var x=m.match(/^RSAOAEP(\d+)$/);if(x!==null)return l.decryptOAEP(c,"sha"+x[1]);throw"Cipher.decrypt: unsupported algorithm for RSAKey: "+h}throw"Cipher.decrypt: unsupported key or algorithm"},U.crypto.Cipher.getAlgByKeyAndName=function(c,l){if(c instanceof Oe){if(":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:".indexOf(l)!=-1)return l;if(l==null)return"RSA";throw"getAlgByKeyAndName: not supported algorithm name for RSAKey: "+l}throw"getAlgByKeyAndName: not supported algorithm name: "+l},U.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040023":"secp521r1","2b81040022":"secp384r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},U!==void 0&&U||(n.KJUR=U={}),U.crypto!==void 0&&U.crypto||(U.crypto={}),U.crypto.ECDSA=function(c){var l=Error,h=j,m=Xe,x=U.crypto.ECDSA,O=U.crypto.ECParameterDB,M=x.getName,J=We,z=J.getVbyListEx,K=J.isASN1HEX,Y=new ze;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(X){return new h(X.bitLength(),Y).mod(X.subtract(h.ONE)).add(h.ONE)},this.setNamedCurve=function(X){this.ecparams=O.getByName(X),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=X},this.setPrivateKeyHex=function(X){this.isPrivate=!0,this.prvKeyHex=X},this.setPublicKeyHex=function(X){this.isPublic=!0,this.pubKeyHex=X},this.getPublicKeyXYHex=function(){var X=this.pubKeyHex;if(X.substr(0,2)!=="04")throw"this method supports uncompressed format(04) only";var re=this.ecparams.keylen/4;if(X.length!==2+2*re)throw"malformed public key hex length";var oe={};return oe.x=X.substr(2,re),oe.y=X.substr(2+re),oe}
164,this.getShortNISTPCurveName=function(){var X=this.curveName;return X==="secp256r1"||X==="NIST P-256"||X==="P-256"||X==="prime256v1"?"P-256":X==="secp384r1"||X==="NIST P-384"||X==="P-384"?"P-384":null},this.generateKeyPairHex=function(){var X=this.ecparams.n,re=this.getBigRandom(X),oe=this.ecparams.G.multiply(re),fe=oe.getX().toBigInteger(),ye=oe.getY().toBigInteger(),be=this.ecparams.keylen/4,N=("0000000000"+re.toString(16)).slice(-be),Z="04"+("0000000000"+fe.toString(16)).slice(-be)+("0000000000"+ye.toString(16)).slice(-be);return this.setPrivateKeyHex(N),this.setPublicKeyHex(Z),{ecprvhex:N,ecpubhex:Z}},this.signWithMessageHash=function(X){return this.signHex(X,this.prvKeyHex)},this.signHex=function(X,re){var oe=new h(re,16),fe=this.ecparams.n,ye=new h(X.substring(0,this.ecparams.keylen/4),16);do var be=this.getBigRandom(fe),N=this.ecparams.G.multiply(be).getX().toBigInteger().mod(fe);while(N.compareTo(h.ZERO)<=0);var Z=be.modInverse(fe).multiply(ye.add(oe.multiply(N))).mod(fe);return x.biRSSigToASN1Sig(N,Z)},this.sign=function(X,re){var oe=re,fe=this.ecparams.n,ye=h.fromByteArrayUnsigned(X);do var be=this.getBigRandom(fe),N=this.ecparams.G.multiply(be).getX().toBigInteger().mod(fe);while(N.compareTo(j.ZERO)<=0);var Z=be.modInverse(fe).multiply(ye.add(oe.multiply(N))).mod(fe);return this.serializeSig(N,Z)},this.verifyWithMessageHash=function(X,re){return this.verifyHex(X,re,this.pubKeyHex)},this.verifyHex=function(X,re,oe){try{var fe,ye,be=x.parseSigHex(re);fe=be.r,ye=be.s;var N=m.decodeFromHex(this.ecparams.curve,oe),Z=new h(X.substring(0,this.ecparams.keylen/4),16);return this.verifyRaw(Z,fe,ye,N)}catch{return!1}},this.verify=function(X,re,oe){var fe,ye,be;if(Bitcoin.Util.isArray(re)){var N=this.parseSig(re);fe=N.r,ye=N.s}else{if((re===void 0?"undefined":s(re))!=="object"||!re.r||!re.s)throw"Invalid value for signature";
164fe=re.r,ye=re.s}if(oe instanceof Xe)be=oe;else{if(!Bitcoin.Util.isArray(oe))throw"Invalid format for pubkey value, must be byte array or ECPointFp";be=m.decodeFrom(this.ecparams.curve,oe)}var Z=h.fromByteArrayUnsigned(X);return this.verifyRaw(Z,fe,ye,be)},this.verifyRaw=function(X,re,oe,fe){var ye=this.ecparams.n,be=this.ecparams.G;if(re.compareTo(h.ONE)<0||re.compareTo(ye)>=0||oe.compareTo(h.ONE)<0||oe.compareTo(ye)>=0)return!1;var N=oe.modInverse(ye),Z=X.multiply(N).mod(ye),te=re.multiply(N).mod(ye);return be.multiply(Z).add(fe.multiply(te)).getX().toBigInteger().mod(ye).equals(re)},this.serializeSig=function(X,re){var oe=X.toByteArraySigned(),fe=re.toByteArraySigned(),ye=[];return ye.push(2),ye.push(oe.length),(ye=ye.concat(oe)).push(2),ye.push(fe.length),(ye=ye.concat(fe)).unshift(ye.length),ye.unshift(48),ye},this.parseSig=function(X){var re;if(X[0]!=48)throw new Error("Signature not a valid DERSequence");if(X[re=2]!=2)throw new Error("First element in signature must be a DERInteger");var oe=X.slice(re+2,re+2+X[re+1]);if(X[re+=2+X[re+1]]!=2)throw new Error("Second element in signature must be a DERInteger");var fe=X.slice(re+2,re+2+X[re+1]);return re+=2+X[re+1],{r:h.fromByteArrayUnsigned(oe),s:h.fromByteArrayUnsigned(fe)}},this.parseSigCompact=function(X){if(X.length!==65)throw"Signature has the wrong length";var re=X[0]-27;if(re<0||re>7)throw"Invalid signature type";var oe=this.ecparams.n;return{r:h.fromByteArrayUnsigned(X.slice(1,33)).mod(oe),s:h.fromByteArrayUnsigned(X.slice(33,65)).mod(oe),i:re}},this.readPKCS5PrvKeyHex=function(X){if(K(X)===!1)throw new Error("not ASN.1 hex string");var re,oe,fe;try{re=z(X,0,["[0]",0],"06"),oe=z(X,0,[1],"04");try{fe=z(X,0,["[1]",0],"03")}catch{}}catch{throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=M(re),this.curveName===void 0)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(fe),this.setPrivateKeyHex(oe),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(X){if(K(X)===!1)throw new l("not ASN.1 hex string");var re,oe,fe;try{z(X,0,[1,0],"06"),re=z(X,0,[1,1],"06"),oe=z(X,0,[2,0,1],"04");try{fe=z(X,0,[2,0,"[1]",0],"03")}catch{}}catch{throw new l("malformed PKCS#8 plain ECC private key")}if(this.curveName=M(re),this.curveName===void 0)throw new l("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(fe),this.setPrivateKeyHex(oe),this.isPublic=!1},this.readPKCS8PubKeyHex=function(X){if(K(X)===!1)throw new l("not ASN.1 hex string");var re,oe;try{z(X,0,[0,0],"06"),re=z(X,0,[0,1],"06"),oe=z(X,0,[1],"03")}catch{throw new l("malformed PKCS#8 ECC public key")}if(this.curveName=M(re),this.curveName===null)throw new l("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(oe)},this.readCertPubKeyHex=function(X,re){if(K(X)===!1)throw new l("not ASN.1 hex string");var oe,fe;try{oe=z(X,0,[0,5,0,1],"06"),fe=z(X,0,[0,5,1],"03")}catch{throw new l("malformed X.509 certificate ECC public key")}if(this.curveName=M(oe),this.curveName===null)throw new l("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(fe)},c!==void 0&&c.curve!==void 0&&(this.curveName=c.curve),this.curveName===void 0&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),c!==void 0&&(c.prv!==void 0&&this.setPrivateKeyHex(c.prv),c.pub!==void 0&&this.setPublicKeyHex(c.pub))},U.crypto.ECDSA.parseSigHex=function(c){var l=U.crypto.ECDSA.parseSigHexInHexRS(c);return{r:new j(l.r,16),s:new j(l.s,16)}},U.crypto.ECDSA.parseSigHexInHexRS=function(c){var l=We,h=l.getChildIdx,m=l.getV;if(l.checkStrictDER(c,0),c.substr(0,2)!="30")throw new Error("signature is not a ASN.1 sequence");var x=h(c,0);if(x.length!=2)throw new Error("signature shall have two elements");var O=x[0],M=x[1];if(c.substr(O,2)!="02")throw new Error("1st item not ASN.1 integer");if(c.substr(M,2)!="02")throw new Error("2nd item not ASN.1 integer");return{r:m(c,O),s:m(c,M)}},U.crypto.ECDSA.asn1SigToConcatSig=function(c){var l=U.crypto.ECDSA.parseSigHexInHexRS(c),h=l.r,m=l.s;if(h.substr(0,2)=="00"&&h.length%32==2&&(h=h.substr(2)),m.substr(0,2)=="00"&&m.length%32==2&&(m=m.substr(2)),h.length%32==30&&(h="00"+h),m.length%32==30&&(m="00"+m),h.length%32!=0)throw"unknown ECDSA sig r length error";if(m.length%32!=0)throw"unknown ECDSA sig s length error";return h+m},U.crypto.ECDSA.concatSigToASN1Sig=function(c){if(c.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig  length error";var l=c.substr(0,c.length/2),h=c.substr(c.length/2);return U.crypto.ECDSA.hexRSSigToASN1Sig(l,h)},U.crypto.ECDSA.hexRSSigToASN1Sig=function(c,l){var h=new j(c,16),m=new j(l,16);return U.crypto.ECDSA.biRSSigToASN1Sig(h,m)},U.crypto.ECDSA.biRSSigToASN1Sig=function(c,l){var h=U.asn1,m=new h.DERInteger({bigint:c}),x=new h.DERInteger({bigint:l});return new h.DERSequence({array:[m,x]}).getEncodedHex()}
164,U.crypto.ECDSA.getName=function(c){return c==="2b8104001f"?"secp192k1":c==="2a8648ce3d030107"?"secp256r1":c==="2b8104000a"?"secp256k1":c==="2b81040021"?"secp224r1":c==="2b81040022"?"secp384r1":"|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(c)!==-1?"secp256r1":"|secp256k1|".indexOf(c)!==-1?"secp256k1":"|secp224r1|NIST P-224|P-224|".indexOf(c)!==-1?"secp224r1":"|secp384r1|NIST P-384|P-384|".indexOf(c)!==-1?"secp384r1":null},U!==void 0&&U||(n.KJUR=U={}),U.crypto!==void 0&&U.crypto||(U.crypto={}),U.crypto.ECParameterDB=new function(){var c={},l={};function h(m){return new j(m,16)}this.getByName=function(m){var x=m;if(l[x]!==void 0&&(x=l[m]),c[x]!==void 0)return c[x];throw"unregistered EC curve name: "+x},this.regist=function(m,x,O,M,J,z,K,Y,X,re,oe,fe){c[m]={};var ye=h(O),be=h(M),N=h(J),Z=h(z),te=h(K),ne=new lt(ye,be,N),he=ne.decodePointHex("04"+Y+X);c[m].name=m,c[m].keylen=x,c[m].curve=ne,c[m].G=he,c[m].n=Z,c[m].h=te,c[m].oid=oe,c[m].info=fe;for(var we=0;we<re.length;we++)l[re[we]]=m}},U.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),U.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),U.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),U.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),U.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),U.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),U.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),U.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),U.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),U.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]);var Ut=(function(){var c=function(K,Y,X){return l(F.AES,K,Y,X)},l=function(K,Y,X,re){var oe=F.enc.Hex.parse(Y),fe=F.enc.Hex.parse(X),ye=F.enc.Hex.parse(re),be={};be.key=fe,be.iv=ye,be.ciphertext=oe;var N=K.decrypt(be,fe,{iv:ye});return F.enc.Hex.stringify(N)},h=function(K,Y,X){return m(F.AES,K,Y,X)},m=function(K,Y,X,re){var oe=F.enc.Hex.parse(Y),fe=F.enc.Hex.parse(X),ye=F.enc.Hex.parse(re),be=K.encrypt
164(oe,fe,{iv:ye}),N=F.enc.Hex.parse(be.toString());return F.enc.Base64.stringify(N)},x={"AES-256-CBC":{proc:c,eproc:h,keylen:32,ivlen:16},"AES-192-CBC":{proc:c,eproc:h,keylen:24,ivlen:16},"AES-128-CBC":{proc:c,eproc:h,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(K,Y,X){return l(F.TripleDES,K,Y,X)},eproc:function(K,Y,X){return m(F.TripleDES,K,Y,X)},keylen:24,ivlen:8},"DES-CBC":{proc:function(K,Y,X){return l(F.DES,K,Y,X)},eproc:function(K,Y,X){return m(F.DES,K,Y,X)},keylen:8,ivlen:8}},O=function(K){var Y={},X=K.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));X&&(Y.cipher=X[1],Y.ivsalt=X[2]);var re=K.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));re&&(Y.type=re[1]);var oe=-1,fe=0;K.indexOf(`\r
165\r
166`)!=-1&&(oe=K.indexOf(`\r
167\r
168`),fe=2),K.indexOf(`
169
170`)!=-1&&(oe=K.indexOf(`
171
172`),fe=1);var ye=K.indexOf("-----END");if(oe!=-1&&ye!=-1){var be=K.substring(oe+2*fe,ye-fe);be=be.replace(/\s+/g,""),Y.data=be}return Y},M=function(K,Y,X){for(var re=X.substring(0,16),oe=F.enc.Hex.parse(re),fe=F.enc.Utf8.parse(Y),ye=x[K].keylen+x[K].ivlen,be="",N=null;;){var Z=F.algo.MD5.create();if(N!=null&&Z.update(N),Z.update(fe),Z.update(oe),N=Z.finalize(),(be+=F.enc.Hex.stringify(N)).length>=2*ye)break}var te={};return te.keyhex=be.substr(0,2*x[K].keylen),te.ivhex=be.substr(2*x[K].keylen,2*x[K].ivlen),te},J=function(K,Y,X,re){var oe=F.enc.Base64.parse(K),fe=F.enc.Hex.stringify(oe);return(0,x[Y].proc)(fe,X,re)};return{version:"1.0.0",parsePKCS5PEM:function(K){return O(K)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(K,Y,X){return M(K,Y,X)},decryptKeyB64:function(K,Y,X,re){return J(K,Y,X,re)},getDecryptedKeyHex:function(K,Y){var X=O(K),re=X.cipher,oe=X.ivsalt,fe=X.data,ye=M(re,Y,oe).keyhex;return J(fe,re,ye,oe)},getEncryptedPKCS5PEMFromPrvKeyHex:function(K,Y,X,re,oe){var fe="";if(re!==void 0&&re!=null||(re="AES-256-CBC"),x[re]===void 0)throw"KEYUTIL unsupported algorithm: "+re;oe!==void 0&&oe!=null||(oe=(function(N){var Z=F.lib.WordArray.random(N);return F.enc.Hex.stringify(Z)})(x[re].ivlen).toUpperCase());var ye=(function(N,Z,te,ne){return(0,x[Z].eproc)(N,te,ne)})(Y,re,M(re,X,oe).keyhex,oe);return fe="-----BEGIN "+K+` PRIVATE KEY-----\r
173`,fe+=`Proc-Type: 4,ENCRYPTED\r
174`,fe+="DEK-Info: "+re+","+oe+`\r
175`,fe+=`\r
176`,fe+=ye.replace(/(.{64})/g,`$1\r
177`),fe+=`\r
178-----END `+K+` PRIVATE KEY-----\r
179`},parseHexOfEncryptedPKCS8:function(K){var Y=We,X=Y.getChildIdx,re=Y.getV,oe={},fe=X(K,0);if(fe.length!=2)throw"malformed format: SEQUENCE(0).items != 2: "+fe.length;oe.ciphertext=re(K,fe[1]);var ye=X(K,fe[0]);if(ye.length!=2)throw"malformed format: SEQUENCE(0.0).items != 2: "+ye.length;if(re(K,ye[0])!="2a864886f70d01050d")throw"this only supports pkcs5PBES2";var be=X(K,ye[1]);if(ye.length!=2)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+be.length;var N=X(K,be[1]);if(N.length!=2)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+N.length;if(re(K,N[0])!="2a864886f70d0307")throw"this only supports TripleDES";oe.encryptionSchemeAlg="TripleDES",oe.encryptionSchemeIV=re(K,N[1]);var Z=X(K,be[0]);if(Z.length!=2)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+Z.length;if(re(K,Z[0])!="2a864886f70d01050c")throw"this only supports pkcs5PBKDF2";var te=X(K,Z[1]);if(te.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+te.length;oe.pbkdf2Salt=re(K,te[0]);var ne=re(K,te[1]);try{oe.pbkdf2Iter=parseInt(ne,16)}catch{throw"malformed format pbkdf2Iter: "+ne}return oe},getPBKDF2KeyHexFromParam:function(K,Y){var X=F.enc.Hex.parse(K.pbkdf2Salt),re=K.pbkdf2Iter,oe=F.PBKDF2(Y,X,{keySize:6,iterations:re});return F.enc.Hex.stringify(oe)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(K,Y){var X=an(K,"ENCRYPTED PRIVATE KEY"),re=this.parseHexOfEncryptedPKCS8(X),oe=Ut.getPBKDF2KeyHexFromParam(re,Y),fe={};fe.ciphertext=F.enc.Hex.parse(re.ciphertext);var ye=F.enc.Hex.parse(oe),be=F.enc.Hex.parse(re.encryptionSchemeIV),N=F.TripleDES.decrypt(fe,ye,{iv:be});return F.enc.Hex.stringify(N)},getKeyFromEncryptedPKCS8PEM:function(K,Y){var X=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(K,Y);return this.getKeyFromPlainPrivatePKCS8Hex(X)}
179,parsePlainPrivatePKCS8Hex:function(K){var Y=We,X=Y.getChildIdx,re=Y.getV,oe={algparam:null};if(K.substr(0,2)!="30")throw"malformed plain PKCS8 private key(code:001)";var fe=X(K,0);if(fe.length!=3)throw"malformed plain PKCS8 private key(code:002)";if(K.substr(fe[1],2)!="30")throw"malformed PKCS8 private key(code:003)";var ye=X(K,fe[1]);if(ye.length!=2)throw"malformed PKCS8 private key(code:004)";if(K.substr(ye[0],2)!="06")throw"malformed PKCS8 private key(code:005)";if(oe.algoid=re(K,ye[0]),K.substr(ye[1],2)=="06"&&(oe.algparam=re(K,ye[1])),K.substr(fe[2],2)!="04")throw"malformed PKCS8 private key(code:006)";return oe.keyidx=Y.getVidx(K,fe[2]),oe},getKeyFromPlainPrivatePKCS8PEM:function(K){var Y=an(K,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(Y)},getKeyFromPlainPrivatePKCS8Hex:function(K){var Y,X=this.parsePlainPrivatePKCS8Hex(K);if(X.algoid=="2a864886f70d010101")Y=new Oe;else if(X.algoid=="2a8648ce380401")Y=new U.crypto.DSA;else{if(X.algoid!="2a8648ce3d0201")throw"unsupported private key algorithm";Y=new U.crypto.ECDSA}return Y.readPKCS8PrvKeyHex(K),Y},_getKeyFromPublicPKCS8Hex:function(K){var Y,X=We.getVbyList(K,0,[0,0],"06");if(X==="2a864886f70d010101")Y=new Oe;else if(X==="2a8648ce380401")Y=new U.crypto.DSA;else{if(X!=="2a8648ce3d0201")throw"unsupported PKCS#8 public key hex";Y=new U.crypto.ECDSA}return Y.readPKCS8PubKeyHex(K),Y},parsePublicRawRSAKeyHex:function(K){var Y=We,X=Y.getChildIdx,re=Y.getV,oe={};if(K.substr(0,2)!="30")throw"malformed RSA key(code:001)";var fe=X(K,0);if(fe.length!=2)throw"malformed RSA key(code:002)";if(K.substr(fe[0],2)!="02")throw"malformed RSA key(code:003)";if(oe.n=re(K,fe[0]),K.substr(fe[1],2)!="02")throw"malformed RSA key(code:004)";return oe.e=re(K,fe[1]),oe},parsePublicPKCS8Hex:function(K){var Y=We,X=Y.getChildIdx,re=Y.getV,oe={algparam:null},fe=X(K,0);if(fe.length!=2)throw"outer DERSequence shall have 2 elements: "+fe.length;var ye=fe[0];if(K.substr(ye,2)!="30")throw"malformed PKCS8 public key(code:001)";var be=X(K,ye);if(be.length!=2)throw"malformed PKCS8 public key(code:002)";if(K.substr(be[0],2)!="06")throw"malformed PKCS8 public key(code:003)";if(oe.algoid=re(K,be[0]),K.substr(be[1],2)=="06"?oe.algparam=re(K,be[1]):K.substr(be[1],2)=="30"&&(oe.algparam={},oe.algparam.p=Y.getVbyList(K,be[1],[0],"02"),oe.algparam.q=Y.getVbyList(K,be[1],[1],"02"),oe.algparam.g=Y.getVbyList(K,be[1],[2],"02")),K.substr(fe[1],2)!="03")throw"malformed PKCS8 public key(code:004)";return oe.key=re(K,fe[1]).substr(2),oe}}})();Ut.getKey=function(c,l,h){var m=(be=We).getChildIdx,x=(be.getV,be.getVbyList),O=U.crypto,M=O.ECDSA,J=O.DSA,z=Oe,K=an,Y=Ut;if(z!==void 0&&c instanceof z||M!==void 0&&c instanceof M||J!==void 0&&c instanceof J)return c;if(c.curve!==void 0&&c.xy!==void 0&&c.d===void 0)return new M({pub:c.xy,curve:c.curve});if(c.curve!==void 0&&c.d!==void 0)return new M({prv:c.d,curve:c.curve});if(c.kty===void 0&&c.n!==void 0&&c.e!==void 0&&c.d===void 0)return(nt=new z).setPublic(c.n,c.e),nt;if(c.kty===void 0&&c.n!==void 0&&c.e!==void 0&&c.d!==void 0&&c.p!==void 0&&c.q!==void 0&&c.dp!==void 0&&c.dq!==void 0&&c.co!==void 0&&c.qi===void 0)return(nt=new z).setPrivateEx(c.n,c.e,c.d,c.p,c.q,c.dp,c.dq,c.co),nt;if(c.kty===void 0&&c.n!==void 0&&c.e!==void 0&&c.d!==void 0&&c.p===void 0)return(nt=new z).setPrivate(c.n,c.e,c.d),nt;if(c.p!==void 0&&c.q!==void 0&&c.g!==void 0&&c.y!==void 0&&c.x===void 0)return(nt=new J).setPublic(c.p,c.q,c.g,c.y),nt;if(c.p!==void 0&&c.q!==void 0&&c.g!==void 0&&c.y!==void 0&&c.x!==void 0)return(nt=new J).setPrivate(c.p,c.q,c.g,c.y,c.x),nt;if(c.kty==="RSA"&&c.n!==void 0&&c.e!==void 0&&c.d===void 0)return(nt=new z).setPublic(At(c.n),At(c.e)),nt;if(c.kty==="RSA"&&c.n!==void 0&&c.e!==void 0&&c.d!==void 0&&c.p!==void 0&&c.q!==void 0&&c.dp!==void 0&&c.dq!==void 0&&c.qi!==void 0)return(nt=new z).setPrivateEx(At(c.n),At(c.e),At(c.d),At(c.p),At(c.q),At(c.dp),At(c.dq),At(c.qi)),nt;if(c.kty==="RSA"&&c.n!==void 0&&c.e!==void 0&&c.d!==void 0)return(nt=new z).setPrivate(At(c.n),At(c.e),At(c.d)),nt;if(c.kty==="EC"&&c.crv!==void 0&&c.x!==void 0&&c.y!==void 0&&c.d===void 0){var X=(Ye=new M({curve:c.crv})).ecparams.keylen/4,re="04"+("0000000000"+At(c.x)).slice(-X)+("0000000000"+At(c.y)).slice(-X);return Ye.setPublicKeyHex(re),Ye}if(c.kty==="EC"&&c.crv!==void 0&&c.x!==void 0&&c.y!==void 0&&c.d!==void 0){X=(Ye=new M({curve:c.crv})).ecparams.keylen/4,re="04"+("0000000000"+At(c.x)).slice(-X)+("0000000000"+At(c.y)).slice(-X);var oe=("0000000000"+At(c.d)).slice(-X);return Ye.setPublicKeyHex(re),Ye.setPrivateKeyHex(oe),Ye}if(h==="pkcs5prv"){var fe,ye=c,be=We;if((fe=m(ye,0)).length===9)(nt=new z).readPKCS5PrvKeyHex(ye);else if(fe.length===6)(nt=new J).readPKCS5PrvKeyHex(ye);else{if(!(fe.length>2&&ye.substr(fe[1],2)==="04"))throw"unsupported PKCS#1/5 hexadecimal key";(nt=new M).readPKCS5PrvKeyHex(ye)}return nt}
179if(h==="pkcs8prv")return nt=Y.getKeyFromPlainPrivatePKCS8Hex(c);if(h==="pkcs8pub")return Y._getKeyFromPublicPKCS8Hex(c);if(h==="x509pub")return qt.getPublicKeyFromCertHex(c);if(c.indexOf("-END CERTIFICATE-",0)!=-1||c.indexOf("-END X509 CERTIFICATE-",0)!=-1||c.indexOf("-END TRUSTED CERTIFICATE-",0)!=-1)return qt.getPublicKeyFromCertPEM(c);if(c.indexOf("-END PUBLIC KEY-")!=-1){var N=an(c,"PUBLIC KEY");return Y._getKeyFromPublicPKCS8Hex(N)}if(c.indexOf("-END RSA PRIVATE KEY-")!=-1&&c.indexOf("4,ENCRYPTED")==-1){var Z=K(c,"RSA PRIVATE KEY");return Y.getKey(Z,null,"pkcs5prv")}if(c.indexOf("-END DSA PRIVATE KEY-")!=-1&&c.indexOf("4,ENCRYPTED")==-1){var te=x(Pt=K(c,"DSA PRIVATE KEY"),0,[1],"02"),ne=x(Pt,0,[2],"02"),he=x(Pt,0,[3],"02"),we=x(Pt,0,[4],"02"),Qe=x(Pt,0,[5],"02");return(nt=new J).setPrivate(new j(te,16),new j(ne,16),new j(he,16),new j(we,16),new j(Qe,16)),nt}if(c.indexOf("-END EC PRIVATE KEY-")!=-1&&c.indexOf("4,ENCRYPTED")==-1)return Z=K(c,"EC PRIVATE KEY"),Y.getKey(Z,null,"pkcs5prv");if(c.indexOf("-END PRIVATE KEY-")!=-1)return Y.getKeyFromPlainPrivatePKCS8PEM(c);if(c.indexOf("-END RSA PRIVATE KEY-")!=-1&&c.indexOf("4,ENCRYPTED")!=-1){var je=Y.getDecryptedKeyHex(c,l),gt=new Oe;return gt.readPKCS5PrvKeyHex(je),gt}if(c.indexOf("-END EC PRIVATE KEY-")!=-1&&c.indexOf("4,ENCRYPTED")!=-1){var Ye,nt=x(Pt=Y.getDecryptedKeyHex(c,l),0,[1],"04"),xt=x(Pt,0,[2,0],"06"),It=x(Pt,0,[3,0],"03").substr(2);if(U.crypto.OID.oidhex2name[xt]===void 0)throw"undefined OID(hex) in KJUR.crypto.OID: "+xt;return(Ye=new M({curve:U.crypto.OID.oidhex2name[xt]})).setPublicKeyHex(It),Ye.setPrivateKeyHex(nt),Ye.isPublic=!1,Ye}if(c.indexOf("-END DSA PRIVATE KEY-")!=-1&&c.indexOf("4,ENCRYPTED")!=-1){var Pt;return te=x(Pt=Y.getDecryptedKeyHex(c,l),0,[1],"02"),ne=x(Pt,0,[2],"02"),he=x(Pt,0,[3],"02"),we=x(Pt,0,[4],"02"),Qe=x(Pt,0,[5],"02"),(nt=new J).setPrivate(new j(te,16),new j(ne,16),new j(he,16),new j(we,16),new j(Qe,16)),nt}if(c.indexOf("-END ENCRYPTED PRIVATE KEY-")!=-1)return Y.getKeyFromEncryptedPKCS8PEM(c,l);throw new Error("not supported argument")},Ut.generateKeypair=function(c,l){if(c=="RSA"){var h=l;(M=new Oe).generate(h,"10001"),M.isPrivate=!0,M.isPublic=!0;var m=new Oe,x=M.n.toString(16),O=M.e.toString(16);return m.setPublic(x,O),m.isPrivate=!1,m.isPublic=!0,(J={}).prvKeyObj=M,J.pubKeyObj=m,J}if(c=="EC"){var M,J,z=l,K=new U.crypto.ECDSA({curve:z}).generateKeyPairHex();return(M=new U.crypto.ECDSA({curve:z})).setPublicKeyHex(K.ecpubhex),M.setPrivateKeyHex(K.ecprvhex),M.isPrivate=!0,M.isPublic=!1,(m=new U.crypto.ECDSA({curve:z})).setPublicKeyHex(K.ecpubhex),m.isPrivate=!1,m.isPublic=!0,(J={}).prvKeyObj=M,J.pubKeyObj=m,J}throw"unknown algorithm: "+c},Ut.getPEM=function(c,l,h,m,x,O){var M=U,J=M.asn1,z=J.DERObjectIdentifier,K=J.DERInteger,Y=J.ASN1Util.newObject,X=J.x509.SubjectPublicKeyInfo,re=M.crypto,oe=re.DSA,fe=re.ECDSA,ye=Oe;function be(Ye){return Y({seq:[{int:0},{int:{bigint:Ye.n}},{int:Ye.e},{int:{bigint:Ye.d}},{int:{bigint:Ye.p}},{int:{bigint:Ye.q}},{int:{bigint:Ye.dmp1}},{int:{bigint:Ye.dmq1}},{int:{bigint:Ye.coeff}}]})}function N(Ye){return Y({seq:[{int:1},{octstr:{hex:Ye.prvKeyHex}},{tag:["a0",!0,{oid:{name:Ye.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+Ye.pubKeyHex}}]}]})}function Z(Ye){return Y({seq:[{int:0},{int:{bigint:Ye.p}},{int:{bigint:Ye.q}},{int:{bigint:Ye.g}},{int:{bigint:Ye.y}},{int:{bigint:Ye.x}}]})}if((ye!==void 0&&c instanceof ye||oe!==void 0&&c instanceof oe||fe!==void 0&&c instanceof fe)&&c.isPublic==1&&(l===void 0||l=="PKCS8PUB"))return Er(we=new X(c).getEncodedHex(),"PUBLIC KEY");if(l=="PKCS1PRV"&&ye!==void 0&&c instanceof ye&&(h===void 0||h==null)&&c.isPrivate==1)return Er(we=be(c).getEncodedHex(),"RSA PRIVATE KEY");if(l=="PKCS1PRV"&&fe!==void 0&&c instanceof fe&&(h===void 0||h==null)&&c.isPrivate==1){var te=new z({name:c.curveName}).getEncodedHex(),ne=N(c).getEncodedHex(),he="";return he+=Er(te,"EC PARAMETERS"),he+=Er(ne,"EC PRIVATE KEY")}if(l=="PKCS1PRV"&&oe!==void 0&&c instanceof oe&&(h===void 0||h==null)&&c.isPrivate==1)return Er(we=Z(c).getEncodedHex(),"DSA PRIVATE KEY");if(l=="PKCS5PRV"&&ye!==void 0&&c instanceof ye&&h!==void 0&&h!=null&&c.isPrivate==1){var we=be(c).getEncodedHex();return m===void 0&&(m="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",we,h,m,O)}if(l=="PKCS5PRV"&&fe!==void 0&&c instanceof fe&&h!==void 0&&h!=null&&c.isPrivate==1)return we=N(c).getEncodedHex(),m===void 0&&(m="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",we,h,m,O);
179if(l=="PKCS5PRV"&&oe!==void 0&&c instanceof oe&&h!==void 0&&h!=null&&c.isPrivate==1)return we=Z(c).getEncodedHex(),m===void 0&&(m="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",we,h,m,O);var Qe=function(nt,xt){var It=je(nt,xt);return new Y({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:It.pbkdf2Salt}},{int:It.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:It.encryptionSchemeIV}}]}]}]},{octstr:{hex:It.ciphertext}}]}).getEncodedHex()},je=function(nt,xt){var It=F.lib.WordArray.random(8),Pt=F.lib.WordArray.random(8),Tr=F.PBKDF2(xt,It,{keySize:6,iterations:100}),hr=F.enc.Hex.parse(nt),wr=F.TripleDES.encrypt(hr,Tr,{iv:Pt})+"",Nt={};return Nt.ciphertext=wr,Nt.pbkdf2Salt=F.enc.Hex.stringify(It),Nt.pbkdf2Iter=100,Nt.encryptionSchemeAlg="DES-EDE3-CBC",Nt.encryptionSchemeIV=F.enc.Hex.stringify(Pt),Nt};if(l=="PKCS8PRV"&&ye!=null&&c instanceof ye&&c.isPrivate==1){var gt=be(c).getEncodedHex();return we=Y({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:gt}}]}).getEncodedHex(),h===void 0||h==null?Er(we,"PRIVATE KEY"):Er(ne=Qe(we,h),"ENCRYPTED PRIVATE KEY")}if(l=="PKCS8PRV"&&fe!==void 0&&c instanceof fe&&c.isPrivate==1)return gt=new Y({seq:[{int:1},{octstr:{hex:c.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+c.pubKeyHex}}]}]}).getEncodedHex(),we=Y({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:c.curveName}}]},{octstr:{hex:gt}}]}).getEncodedHex(),h===void 0||h==null?Er(we,"PRIVATE KEY"):Er(ne=Qe(we,h),"ENCRYPTED PRIVATE KEY");if(l=="PKCS8PRV"&&oe!==void 0&&c instanceof oe&&c.isPrivate==1)return gt=new K({bigint:c.x}).getEncodedHex(),we=Y({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:c.p}},{int:{bigint:c.q}},{int:{bigint:c.g}}]}]},{octstr:{hex:gt}}]}).getEncodedHex(),h===void 0||h==null?Er(we,"PRIVATE KEY"):Er(ne=Qe(we,h),"ENCRYPTED PRIVATE KEY");throw new Error("unsupported object nor format")},Ut.getKeyFromCSRPEM=function(c){var l=an(c,"CERTIFICATE REQUEST");return Ut.getKeyFromCSRHex(l)},Ut.getKeyFromCSRHex=function(c){var l=Ut.parseCSRHex(c);return Ut.getKey(l.p8pubkeyhex,null,"pkcs8pub")},Ut.parseCSRHex=function(c){var l=We,h=l.getChildIdx,m=l.getTLV,x={},O=c;if(O.substr(0,2)!="30")throw"malformed CSR(code:001)";var M=h(O,0);if(M.length<1)throw"malformed CSR(code:002)";if(O.substr(M[0],2)!="30")throw"malformed CSR(code:003)";var J=h(O,M[0]);if(J.length<3)throw"malformed CSR(code:004)";return x.p8pubkeyhex=m(O,J[2]),x},Ut.getKeyID=function(c){var l=Ut,h=We;typeof c=="string"&&c.indexOf("BEGIN ")!=-1&&(c=l.getKey(c));var m=an(l.getPEM(c)),x=h.getIdxbyList(m,0,[1]),O=h.getV(m,x).substring(2);return U.crypto.Util.hashHex(O,"sha1")},Ut.getJWKFromKey=function(c){var l={};if(c instanceof Oe&&c.isPrivate)return l.kty="RSA",l.n=Kt(c.n.toString(16)),l.e=Kt(c.e.toString(16)),l.d=Kt(c.d.toString(16)),l.p=Kt(c.p.toString(16)),l.q=Kt(c.q.toString(16)),l.dp=Kt(c.dmp1.toString(16)),l.dq=Kt(c.dmq1.toString(16)),l.qi=Kt(c.coeff.toString(16)),l;if(c instanceof Oe&&c.isPublic)return l.kty="RSA",l.n=Kt(c.n.toString(16)),l.e=Kt(c.e.toString(16)),l;if(c instanceof U.crypto.ECDSA&&c.isPrivate){if((m=c.getShortNISTPCurveName())!=="P-256"&&m!=="P-384")throw"unsupported curve name for JWT: "+m;var h=c.getPublicKeyXYHex();return l.kty="EC",l.crv=m,l.x=Kt(h.x),l.y=Kt(h.y),l.d=Kt(c.prvKeyHex),l}if(c instanceof U.crypto.ECDSA&&c.isPublic){var m;if((m=c.getShortNISTPCurveName())!=="P-256"&&m!=="P-384")throw"unsupported curve name for JWT: "+m;return h=c.getPublicKeyXYHex(),l.kty="EC",l.crv=m,l.x=Kt(h.x),l.y=Kt(h.y),l}throw"not supported key object"},Oe.getPosArrayOfChildrenFromHex=function(c){return We.getChildIdx(c,0)},Oe.getHexValueArrayOfChildrenFromHex=function(c){var l,h=We.getV,m=h(c,(l=Oe.getPosArrayOfChildrenFromHex(c))[0]),x=h(c,l[1]),O=h(c,l[2]),M=h(c,l[3]),J=h(c,l[4]),z=h(c,l[5]),K=h(c,l[6]),Y=h(c,l[7]),X=h(c,l[8]);return(l=new Array).push(m,x,O,M,J,z,K,Y,X),l},Oe.prototype.readPrivateKeyFromPEMString=function(c){var l=an(c),h=Oe.getHexValueArrayOfChildrenFromHex(l);this.setPrivateEx(h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8])},Oe.prototype.readPKCS5PrvKeyHex=function(c){var l=Oe.getHexValueArrayOfChildrenFromHex(c);this.setPrivateEx(l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8])},Oe.prototype.readPKCS8PrvKeyHex=function(c){var l,h,m,x,O,M,J,z,K=We,Y=K.getVbyListEx;if(K.isASN1HEX(c)===!1)throw new Error("not ASN.1 hex string");try{l=Y(c,0,[2,0,1],"02"),h=Y(c,0,[2,0,2],"02"),m=Y(c,0,[2,0,3],"02"),x=Y(c,0,[2,0,4],"02"),O=Y(c,0,[2,0,5],"02"),M=Y(c,0,[2,0,6],"02"),J=Y(c,0,[2,0,7],"02"),z=Y(c,0,[2,0,8],"02")}catch{throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(l,h,m,x,O,M,J,z)},Oe.prototype.readPKCS5PubKeyHex=function(c){var l=We,h=l.getV;if(l.isASN1HEX(c)===!1)throw new Error("keyHex is not ASN.1 hex string");var m=l.getChildIdx(c,0);if(m.length!==2||c.substr(m[0],2)!=="02"||c.substr(m[1],2)!=="02")throw new Error("wrong hex for PKCS#5 public key");var x=h(c,m[0]),O=h(c,m[1]);this.setPublic(x,O)},Oe.prototype.readPKCS8PubKeyHex=function(c){var l=We;if(l.isASN1HEX(c)===!1)throw new Error("not ASN.1 hex string");if(l.getTLVbyListEx(c,0,[0,0])!=="06092a864886f70d010101")throw new Error("not PKCS8 RSA public key");var h=l.getTLVbyListEx(c,0,[1,0]);this.readPKCS5PubKeyHex(h)},Oe.prototype.readCertPubKeyHex=function(c,l){var h,m;(h=new qt).readCertHex(c),m=h.getPublicKeyHex(),this.readPKCS8PubKeyHex(m)};var Ym=new RegExp("[^0-9a-f]","gi");function ef(c,l){for(var h="",m=l/4-c.length,x=0;x<m;x++)h+="0";return h+c}function tf(c,l,h){for(var m="",x=0;m.length<l;)m+=Ir(h(sn(c+String.fromCharCode.apply(String,[(4278190080&x)>>24,(16711680&x)>>16,(65280&x)>>8,255&x])))),x+=1;return m}function rf(c){for(var l in U.crypto.Util.DIGESTINFOHEAD){var h=U.crypto.Util.DIGESTINFOHEAD[l],m=h.length;if(c.substring(0,m)==h)return[l,c.substring(m)]}return[]}function qt(c){var l,h=We,m=h.getChildIdx,x=h.getV,O=h.getTLV,M=h.getVbyList,J=h.getVbyListEx,z=h.getTLVbyList,K=h.getTLVbyListEx,Y=h.getIdxbyList,X=h.getIdxbyListEx,re=h.getVidx,oe=h.oidname,fe=h.hextooidstr,ye=qt,be=an;try{l=U.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch{}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return this.hex===null||this.version!==0?this.version:z(this.hex,0,[0,0])!=="a003020102"?(this.version=1,this.foffset=-1,1):(this.version=3,3)}
vendor: 1,457 bytes, line 179
179,this.getSerialNumberHex=function(){return J(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var N=K(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(N)},this.getAlgorithmIdentifierName=function(N){for(var Z in l)if(N===l[Z])return Z;return oe(J(N,0,[0],"06"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return z(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return ye.hex2dn(this.getIssuerHex())},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},this.getSubjectHex=function(){return z(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return ye.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var N=M(this.hex,0,[0,4+this.foffset,0]);return N=N.replace(/(..)/g,"%$1"),N=decodeURIComponent(N)},this.getNotAfter=function(){var N=M(this.hex,0,[0,4+this.foffset,1]);return N=N.replace(/(..)/g,"%$1"),N=decodeURIComponent(N)},this.getPublicKeyHex=function(){return h.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return Y(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var N=this.getPublicKeyIdx();return Y(this.hex,N,[1,0],"30")},this.getPublicKey=function(){return Ut.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var N=z(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(N)}
179,this.getSignatureValueHex=function(){return M(this.hex,0,[2],"03",!0)},this.verifySignature=function(N){var Z=this.getSignatureAlgorithmField(),te=this.getSignatureValueHex(),ne=z(this.hex,0,[0],"30"),he=new U.crypto.Signature({alg:Z});return he.init(N),he.updateHex(ne),he.verify(te)},this.parseExt=function(N){var Z,te,ne;if(N===void 0){if(ne=this.hex,this.version!==3)return-1;Z=Y(ne,0,[0,7,0],"30"),te=m(ne,Z)}else{ne=an(N);var he=Y(ne,0,[0,3,0,0],"06");if(x(ne,he)!="2a864886f70d01090e")return void(this.aExtInfo=new Array);Z=Y(ne,0,[0,3,0,1,0],"30"),te=m(ne,Z),this.hex=ne}this.aExtInfo=new Array;for(var we=0;we<te.length;we++){var Qe={critical:!1},je=0;m(ne,te[we]).length===3&&(Qe.critical=!0,je=1),Qe.oid=h.hextooidstr(M(ne,te[we],[0],"06"));var gt=Y(ne,te[we],[1+je]);Qe.vidx=re(ne,gt),this.aExtInfo.push(Qe)}},this.getExtInfo=function(N){var Z=this.aExtInfo,te=N;if(N.match(/^[0-9.]+$/)||(te=U.asn1.x509.OID.name2oid(N)),te!==""){for(var ne=0;ne<Z.length;ne++)if(Z[ne].oid===te)return Z[ne]}},this.getExtBasicConstraints=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("basicConstraints");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"basicConstraints"};if(Z&&(ne.critical=!0),N==="3000")return ne;if(N==="30030101ff")return ne.cA=!0,ne;if(N.substr(0,12)==="30060101ff02"){var he=x(N,10),we=parseInt(he,16);return ne.cA=!0,ne.pathLen=we,ne}throw new Error("hExtV parse error: "+N)},this.getExtKeyUsage=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("keyUsage");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"keyUsage"};return Z&&(ne.critical=!0),ne.names=this.getExtKeyUsageString(N).split(","),ne},this.getExtKeyUsageBin=function(N){if(N===void 0){var Z=this.getExtInfo("keyUsage");if(Z===void 0)return"";N=O(this.hex,Z.vidx)}if(N.length!=8&&N.length!=10)throw new Error("malformed key usage value: "+N);var te="000000000000000"+parseInt(N.substr(6),16).toString(2);return N.length==8&&(te=te.slice(-8)),N.length==10&&(te=te.slice(-16)),(te=te.replace(/0+$/,""))==""&&(te="0"),te},this.getExtKeyUsageString=function(N){for(var Z=this.getExtKeyUsageBin(N),te=new Array,ne=0;ne<Z.length;ne++)Z.substr(ne,1)=="1"&&te.push(qt.KEYUSAGE_NAME[ne]);return te.join(",")},this.getExtSubjectKeyIdentifier=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("subjectKeyIdentifier");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"subjectKeyIdentifier"};Z&&(ne.critical=!0);var he=x(N,0);return ne.kid={hex:he},ne},this.getExtAuthorityKeyIdentifier=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("authorityKeyIdentifier");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"authorityKeyIdentifier"};Z&&(ne.critical=!0);for(var he=m(N,0),we=0;we<he.length;we++){var Qe=N.substr(he[we],2);if(Qe==="80"&&(ne.kid={hex:x(N,he[we])}),Qe==="a1"){var je=O(N,he[we]),gt=this.getGeneralNames(je);ne.issuer=gt[0].dn}Qe==="82"&&(ne.sn={hex:x(N,he[we])})}return ne},this.getExtExtKeyUsage=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("extKeyUsage");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"extKeyUsage",array:[]};Z&&(ne.critical=!0);for(var he=m(N,0),we=0;we<he.length;we++)ne.array.push(oe(x(N,he[we])));return ne},this.getExtExtKeyUsageName=function(){var N=this.getExtInfo("extKeyUsage");if(N===void 0)return N;var Z=new Array,te=O(this.hex,N.vidx);if(te==="")return Z;for(var ne=m(te,0),he=0;he<ne.length;he++)Z.push(oe(x(te,ne[he])));return Z},this.getExtSubjectAltName=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("subjectAltName");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"subjectAltName",array:[]};return Z&&(ne.critical=!0),ne.array=this.getGeneralNames(N),ne},this.getExtIssuerAltName=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("issuerAltName");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"issuerAltName",array:[]};return Z&&(ne.critical=!0),ne.array=this.getGeneralNames(N),ne},this.getGeneralNames=function(N){for(var Z=m(N,0),te=[],ne=0;ne<Z.length;ne++){var he=this.getGeneralName(O(N,Z[ne]));he!==void 0&&te.push(he)}return te},this.getGeneralName=function(N){var Z=N.substr(0,2),te=x(N,0),ne=Ir(te);return Z=="81"?{rfc822:ne}:Z=="82"?{dns:ne}:Z=="86"?{uri:ne}:Z=="87"?{ip:ll(te)}:Z=="a4"?{dn:this.getX500Name(te)}:void 0},this.getExtSubjectAltName2=function(){var N,Z,te,ne=this.getExtInfo("subjectAltName");if(ne===void 0)return ne;for(var he=new Array,we=O(this.hex,ne.vidx),Qe=m(we,0),je=0;je<Qe.length;je++)te=we.substr(Qe[je],2),N=x(we,Qe[je]),te==="81"&&(Z=sr(N),he.push(["MAIL",Z])),te==="82"&&(Z=sr(N),he.push(["DNS",Z])),te==="84"&&(Z=qt.hex2dn(N,0),he.push(["DN",Z])),te==="86"&&(Z=sr(N),he.push(["URI",Z])),te==="87"&&(Z=ll(N),he.push(["IP",Z]));return he},this.getExtCRLDistributionPoints=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("cRLDistributionPoints");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"cRLDistributionPoints",array:[]};Z&&(ne.critical=!0);for(var he=m(N,0),we=0;we<he.length;we++){var Qe=O(N,he[we]);ne.array.push(this.getDistributionPoint(Qe))}return ne},this.getDistributionPoint=function(N){for(var Z={},te=m(N,0),ne=0;ne<te.length;ne++){var he=N.substr(te[ne],2),we=O(N,te[ne]);he=="a0"&&(Z.dpname=this.getDistributionPointName(we))}return Z},this.getDistributionPointName=function(N){for(var Z={},te=m(N,0),ne=0;ne<te.length;ne++){var he=N.substr(te[ne],2),we=O(N,te[ne]);he=="a0"&&(Z.full=this.getGeneralNames(we))}return Z},this.getExtCRLDistributionPointsURI=function(){var N=this.getExtInfo("cRLDistributionPoints");if(N===void 0)return N;for(var Z=new Array,te=m(this.hex,N.vidx),ne=0;ne<te.length;ne++)try{var he=sr(M(this.hex,te[ne],[0,0,0],"86"));Z.push(he)}catch{}return Z},this.getExtAIAInfo=function(){var N=this.getExtInfo("authorityInfoAccess");if(N===void 0)return N;for(var Z={ocsp:[],caissuer:[]},te=m(this.hex,N.vidx),ne=0;ne<te.length;ne++){var he=M(this.hex,te[ne],[0],"06"),we=M(this.hex,te[ne],[1],"86");he==="2b06010505073001"&&Z.ocsp.push(sr(we)),he==="2b06010505073002"&&Z.caissuer.push(sr(we))}return Z},this.getExtAuthorityInfoAccess=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("authorityInfoAccess");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"authorityInfoAccess",array:[]};Z&&(ne.critical=!0);for(var he=m(N,0),we=0;we<he.length;we++){var Qe=J(N,he[we],[0],"06"),je=sr(M(N,he[we],[1],"86"));if(Qe=="2b06010505073001")ne.array.push({ocsp:je});else{if(Qe!="2b06010505073002")throw new Error("unknown method: "+Qe);ne.array.push({caissuer:je})}}return ne},this.getExtCertificatePolicies=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("certificatePolicies");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"certificatePolicies",array:[]};Z&&(ne.critical=!0);for(var he=m(N,0),we=0;we<he.length;we++){var Qe=O(N,he[we]),je=this.getPolicyInformation(Qe);ne.array.push(je)}return ne},this.getPolicyInformation=function(N){var Z={},te=M(N,0,[0],"06");Z.policyoid=oe(te);var ne=X(N,0,[1],"30");if(ne!=-1){Z.array=[];for(var he=m(N,ne),we=0;we<he.length;we++){var Qe=O(N,he[we]),je=this.getPolicyQualifierInfo(Qe);Z.array.push(je)}}return Z},this.getPolicyQualifierInfo=function(N){var Z={},te=M(N,0,[0],"06");
179if(te==="2b06010505070201"){var ne=J(N,0,[1],"16");Z.cps=Ir(ne)}else if(te==="2b06010505070202"){var he=z(N,0,[1],"30");Z.unotice=this.getUserNotice(he)}return Z},this.getUserNotice=function(N){for(var Z={},te=m(N,0),ne=0;ne<te.length;ne++){var he=O(N,te[ne]);he.substr(0,2)!="30"&&(Z.exptext=this.getDisplayText(he))}return Z},this.getDisplayText=function(N){var Z={};return Z.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[N.substr(0,2)],Z.str=Ir(x(N,0)),Z},this.getExtCRLNumber=function(N,Z){var te={extname:"cRLNumber"};if(Z&&(te.critical=!0),N.substr(0,2)=="02")return te.num={hex:x(N,0)},te;throw new Error("hExtV parse error: "+N)},this.getExtCRLReason=function(N,Z){var te={extname:"cRLReason"};if(Z&&(te.critical=!0),N.substr(0,2)=="0a")return te.code=parseInt(x(N,0),16),te;throw new Error("hExtV parse error: "+N)},this.getExtOcspNonce=function(N,Z){var te={extname:"ocspNonce"};Z&&(te.critical=!0);var ne=x(N,0);return te.hex=ne,te},this.getExtOcspNoCheck=function(N,Z){var te={extname:"ocspNoCheck"};return Z&&(te.critical=!0),te},this.getExtAdobeTimeStamp=function(N,Z){if(N===void 0&&Z===void 0){var te=this.getExtInfo("adobeTimeStamp");if(te===void 0)return;N=O(this.hex,te.vidx),Z=te.critical}var ne={extname:"adobeTimeStamp"};Z&&(ne.critical=!0);var he=m(N,0);if(he.length>1){var we=O(N,he[1]),Qe=this.getGeneralName(we);Qe.uri!=null&&(ne.uri=Qe.uri)}if(he.length>2){var je=O(N,he[2]);je=="0101ff"&&(ne.reqauth=!0),je=="010100"&&(ne.reqauth=!1)}return ne},this.getX500NameRule=function(N){for(var Z=null,te=[],ne=0;ne<N.length;ne++)for(var he=N[ne],we=0;we<he.length;we++)te.push(he[we]);for(ne=0;ne<te.length;ne++){var Qe=te[ne],je=Qe.ds,gt=Qe.value,Ye=Qe.type;if(je!="prn"&&je!="utf8"&&je!="ia5")return"mixed";if(je=="ia5"){if(Ye!="CN")return"mixed";if(U.lang.String.isMail(gt))continue;return"mixed"}if(Ye=="C"){if(je=="prn")continue;return"mixed"}if(Z==null)Z=je;else if(Z!==je)return"mixed"}return Z??"prn"},this.getX500Name=function(N){var Z=this.getX500NameArray(N);return{array:Z,str:this.dnarraytostr(Z)}},this.getX500NameArray=function(N){for(var Z=[],te=m(N,0),ne=0;ne<te.length;ne++)Z.push(this.getRDN(O(N,te[ne])));return Z},this.getRDN=function(N){for(var Z=[],te=m(N,0),ne=0;ne<te.length;ne++)Z.push(this.getAttrTypeAndValue(O(N,te[ne])));return Z},this.getAttrTypeAndValue=function(N){var Z={type:null,value:null,ds:null},te=m(N,0),ne=M(N,te[0],[],"06"),he=M(N,te[1],[]),we=U.asn1.ASN1Util.oidHexToInt(ne);return Z.type=U.asn1.x509.OID.oid2atype(we),Z.value=Ir(he),Z.ds=this.HEX2STAG[N.substr(te[1],2)],Z},this.readCertPEM=function(N){this.readCertHex(be(N))},this.readCertHex=function(N){this.hex=N,this.getVersion();try{Y(this.hex,0,[0,7],"a3"),this.parseExt()}catch{}},this.getParam=function(){var N={};return N.version=this.getVersion(),N.serial={hex:this.getSerialNumberHex()},N.sigalg=this.getSignatureAlgorithmField(),N.issuer=this.getIssuer(),N.notbefore=this.getNotBefore(),N.notafter=this.getNotAfter(),N.subject=this.getSubject(),N.sbjpubkey=Er(this.getPublicKeyHex(),"PUBLIC KEY"),this.aExtInfo.length>0&&(N.ext=this.getExtParamArray()),N.sighex=this.getSignatureValueHex(),N},this.getExtParamArray=function(N){N==null&&X(this.hex,0,[0,"[3]"])!=-1&&(N=K(this.hex,0,[0,"[3]",0],"30"));for(var Z=[],te=m(N,0),ne=0;ne<te.length;ne++){var he=O(N,te[ne]),we=this.getExtParam(he);we!=null&&Z.push(we)}return Z},this.getExtParam=function(N){var Z=m(N,0).length;if(Z!=2&&Z!=3)throw new Error("wrong number elements in Extension: "+Z+" "+N);var te=fe(M(N,0,[0],"06")),ne=!1;Z==3&&z(N,0,[1])=="0101ff"&&(ne=!0);var he=z(N,0,[Z-1,0]),we=void 0;if(te=="2.5.29.14"?we=this.getExtSubjectKeyIdentifier(he,ne):te=="2.5.29.15"?we=this.getExtKeyUsage(he,ne):te=="2.5.29.17"?we=this.getExtSubjectAltName(he,ne):te=="2.5.29.18"?we=this.getExtIssuerAltName(he,ne):te=="2.5.29.19"?we=this.getExtBasicConstraints(he,ne):te=="2.5.29.31"?we=this.getExtCRLDistributionPoints(he,ne):te=="2.5.29.32"?we=this.getExtCertificatePolicies(he,ne):te=="2.5.29.35"?we=this.getExtAuthorityKeyIdentifier(he,ne):te=="2.5.29.37"?we=this.getExtExtKeyUsage(he,ne):te=="1.3.6.1.5.5.7.1.1"?we=this.getExtAuthorityInfoAccess(he,ne):te=="2.5.29.20"?we=this.getExtCRLNumber(he,ne):te=="2.5.29.21"?we=this.getExtCRLReason(he,ne):te=="1.3.6.1.5.5.7.48.1.2"?we=this.getExtOcspNonce(he,ne):te=="1.3.6.1.5.5.7.48.1.5"?we=this.getExtOcspNoCheck(he,ne):te=="1.2.840.113583.1.1.9.1"&&(we=this.getExtAdobeTimeStamp(he,ne)),we!=null)return we;var Qe={extname:te,extn:he};return ne&&(Qe.critical=!0),Qe},this.findExt=function(N,Z){for(var te=0;te<N.length;te++)if(N[te].extname==Z)return N[te];return null},this.updateExtCDPFullURI=function(N,Z){var te=this.findExt(N,"cRLDistributionPoints");if(te!=null&&te.array!=null){for(var ne=te.array,he=0;he<ne.length;he++)if(ne[he].dpname!=null&&ne[he].dpname.full!=null)for(var we=ne[he].dpname.full,Qe=0;Qe<we.length;Qe++){var je=we[he];je.uri!=null&&(je.uri=Z)}}},this.updateExtAIAOCSP=function(N,Z){var te=this.findExt(N,"authorityInfoAccess");if(te!=null&&te.array!=null)for(var ne=te.array,he=0;he<ne.length;he++)ne[he].ocsp!=null&&(ne[he].ocsp=Z)},this.updateExtAIACAIssuer=function(N,Z){var te=this.findExt(N,"authorityInfoAccess");if(te!=null&&te.array!=null)for(var ne=te.array,he=0;he<ne.length;he++)ne[he].caissuer!=null&&(ne[he].caissuer=Z)},this.dnarraytostr=function(N){return"/"+N.map((function(Z){return(function(ne){return ne.map((function(he){return(function(Qe){return Qe.type+"="+Qe.value})(he)})).join("+")}
179)(Z)})).join("/")},this.getInfo=function(){var N,Z,te,ne=function(Tr){return JSON.stringify(Tr.array).replace(/[\[\]\{\}\"]/g,"")},he=function(Tr){for(var hr="",wr=Tr.array,Nt=0;Nt<wr.length;Nt++){var Jt=wr[Nt];if(hr+="    policy oid: "+Jt.policyoid+`
180`,Jt.array!==void 0)for(var ar=0;ar<Jt.array.length;ar++){var Sr=Jt.array[ar];Sr.cps!==void 0&&(hr+="    cps: "+Sr.cps+`
181`)}}return hr},we=function(Tr){for(var hr="",wr=Tr.array,Nt=0;Nt<wr.length;Nt++){var Jt=wr[Nt];try{Jt.dpname.full[0].uri!==void 0&&(hr+="    "+Jt.dpname.full[0].uri+`
182`)}catch{}try{Jt.dname.full[0].dn.hex!==void 0&&(hr+="    "+qt.hex2dn(Jt.dpname.full[0].dn.hex)+`
183`)}catch{}}return hr},Qe=function(Tr){for(var hr="",wr=Tr.array,Nt=0;Nt<wr.length;Nt++){var Jt=wr[Nt];Jt.caissuer!==void 0&&(hr+="    caissuer: "+Jt.caissuer+`
184`),Jt.ocsp!==void 0&&(hr+="    ocsp: "+Jt.ocsp+`
185`)}return hr};if(N=`Basic Fields
186`,N+="  serial number: "+this.getSerialNumberHex()+`
187`,N+="  signature algorithm: "+this.getSignatureAlgorithmField()+`
188`,N+="  issuer: "+this.getIssuerString()+`
189`,N+="  notBefore: "+this.getNotBefore()+`
190`,N+="  notAfter: "+this.getNotAfter()+`
191`,N+="  subject: "+this.getSubjectString()+`
192`,N+=`  subject public key info: 
193`,N+="    key algorithm: "+(Z=this.getPublicKey()).type+`
194`,Z.type==="RSA"&&(N+="    n="+cl(Z.n.toString(16)).substr(0,16)+`...
195`,N+="    e="+cl(Z.e.toString(16))+`
196`),(te=this.aExtInfo)!=null){N+=`X509v3 Extensions:
197`;for(var je=0;je<te.length;je++){var gt=te[je],Ye=U.asn1.x509.OID.oid2name(gt.oid);Ye===""&&(Ye=gt.oid);var nt="";if(gt.critical===!0&&(nt="CRITICAL"),N+="  "+Ye+" "+nt+`:
198`,Ye==="basicConstraints"){var xt=this.getExtBasicConstraints();xt.cA===void 0?N+=`    {}
199`:(N+="    cA=true",xt.pathLen!==void 0&&(N+=", pathLen="+xt.pathLen),N+=`
200`)}else if(Ye==="keyUsage")N+="    "+this.getExtKeyUsageString()+`
201`;else if(Ye==="subjectKeyIdentifier")N+="    "+this.getExtSubjectKeyIdentifier().kid.hex+`
202`;else if(Ye==="authorityKeyIdentifier"){var It=this.getExtAuthorityKeyIdentifier();It.kid!==void 0&&(N+="    kid="+It.kid.hex+`
203`)}else Ye==="extKeyUsage"?N+="    "+this.getExtExtKeyUsage().array.join(", ")+`
204`:Ye==="subjectAltName"?N+="    "+ne(this.getExtSubjectAltName())+`
205`:Ye==="cRLDistributionPoints"?N+=we(this.getExtCRLDistributionPoints()):Ye==="authorityInfoAccess"?N+=Qe(this.getExtAuthorityInfoAccess()):Ye==="certificatePolicies"&&(N+=he(this.getExtCertificatePolicies()))}}return N+="signature algorithm: "+this.getSignatureAlgorithmName()+`
206`,N+="signature: "+this.getSignatureValueHex().substr(0,16)+`...
207`},typeof c=="string"&&(c.indexOf("-----BEGIN")!=-1?this.readCertPEM(c):U.lang.String.isHex(c)&&this.readCertHex(c))}Oe.prototype.sign=function(c,l){var h=(function(x){return U.crypto.Util.hashString(x,l)})(c);return this.signWithMessageHash(h,l)},Oe.prototype.signWithMessageHash=function(c,l){var h=Ne(U.crypto.Util.getPaddedDigestInfoHex(c,l,this.n.bitLength()),16);return ef(this.doPrivate(h).toString(16),this.n.bitLength())},Oe.prototype.signPSS=function(c,l,h){var m=(function(O){return U.crypto.Util.hashHex(O,l)})(sn(c));return h===void 0&&(h=-1),this.signWithMessageHashPSS(m,l,h)},Oe.prototype.signWithMessageHashPSS=function(c,l,h){var m,x=Ir(c),O=x.length,M=this.n.bitLength()-1,J=Math.ceil(M/8),z=function(N){return U.crypto.Util.hashHex(N,l)};if(h===-1||h===void 0)h=O;else if(h===-2)h=J-O-2;else if(h<-2)throw new Error("invalid salt length");if(J<O+h+2)throw new Error("data too long");var K="";h>0&&(K=new Array(h),new ze().nextBytes(K),K=String.fromCharCode.apply(String,K));var Y=Ir(z(sn("\0\0\0\0\0\0\0\0"+x+K))),X=[];for(m=0;m<J-h-O-2;m+=1)X[m]=0;var re=String.fromCharCode.apply(String,X)+"�"+K,oe=tf(Y,re.length,z),fe=[];for(m=0;m<re.length;m+=1)fe[m]=re.charCodeAt(m)^oe.charCodeAt(m);var ye=65280>>8*J-M&255;for(fe[0]&=~ye,m=0;m<O;m++)fe.push(Y.charCodeAt(m));return fe.push(188),ef(this.doPrivate(new j(fe)).toString(16),this.n.bitLength())},Oe.prototype.verify=function(c,l){var h=Ne(l=(l=l.replace(Ym,"")).replace(/[ \n]+/g,""),16);if(h.bitLength()>this.n.bitLength())return 0;var m=rf(this.doPublic(h).toString(16).replace(/^1f+00/,""));if(m.length==0)return!1;var x=m[0];return m[1]==(function(M){return U.crypto.Util.hashString(M,x)})(c)},Oe.prototype.verifyWithMessageHash=function(c,l){if(l.length!=Math.ceil(this.n.bitLength()/4))return!1;var h=Ne(l,16);if(h.bitLength()>this.n.bitLength())return 0;var m=rf(this.doPublic(h).toString(16).replace(/^1f+00/,""));return m.length==0?!1:(m[0],m[1]==c)},Oe.prototype.verifyPSS=function(c,l,h,m){var x=(function(M){return U.crypto.Util.hashHex(M,h)})(sn(c));return m===void 0&&(m=-1),this.verifyWithMessageHashPSS(x,l,h,m)},Oe.prototype.verifyWithMessageHashPSS=function(c,l,h,m){if(l.length!=Math.ceil(this.n.bitLength()/4))return!1;var x,O=new j(l,16),M=function(te){return U.crypto.Util.hashHex(te,h)},J=Ir(c),z=J.length,K=this.n.bitLength()-1,Y=Math.ceil(K/8);
207if(m===-1||m===void 0)m=z;else if(m===-2)m=Y-z-2;else if(m<-2)throw new Error("invalid salt length");if(Y<z+m+2)throw new Error("data too long");var X=this.doPublic(O).toByteArray();for(x=0;x<X.length;x+=1)X[x]&=255;for(;X.length<Y;)X.unshift(0);if(X[Y-1]!==188)throw new Error("encoded message does not end in 0xbc");var re=(X=String.fromCharCode.apply(String,X)).substr(0,Y-z-1),oe=X.substr(re.length,z),fe=65280>>8*Y-K&255;if((re.charCodeAt(0)&fe)!=0)throw new Error("bits beyond keysize not zero");var ye=tf(oe,re.length,M),be=[];for(x=0;x<re.length;x+=1)be[x]=re.charCodeAt(x)^ye.charCodeAt(x);be[0]&=~fe;var N=Y-z-m-2;for(x=0;x<N;x+=1)if(be[x]!==0)throw new Error("leftmost octets not zero");if(be[N]!==1)throw new Error("0x01 marker not found");return oe===Ir(M(sn("\0\0\0\0\0\0\0\0"+J+String.fromCharCode.apply(String,be.slice(-m)))))},Oe.SALT_LEN_HLEN=-1,Oe.SALT_LEN_MAX=-2,Oe.SALT_LEN_RECOVER=-2,qt.hex2dn=function(c,l){if(l===void 0&&(l=0),c.substr(l,2)!=="30")throw new Error("malformed DN");for(var h=new Array,m=We.getChildIdx(c,l),x=0;x<m.length;x++)h.push(qt.hex2rdn(c,m[x]));return"/"+(h=h.map((function(O){return O.replace("/","\\/")}))).join("/")},qt.hex2rdn=function(c,l){if(l===void 0&&(l=0),c.substr(l,2)!=="31")throw new Error("malformed RDN");for(var h=new Array,m=We.getChildIdx(c,l),x=0;x<m.length;x++)h.push(qt.hex2attrTypeValue(c,m[x]));
207return(h=h.map((function(O){return O.replace("+","\\+")}))).join("+")},qt.hex2attrTypeValue=function(c,l){var h=We,m=h.getV;if(l===void 0&&(l=0),c.substr(l,2)!=="30")throw new Error("malformed attribute type and value");var x=h.getChildIdx(c,l);x.length!==2||c.substr(x[0],2);var O=m(c,x[0]),M=U.asn1.ASN1Util.oidHexToInt(O);return U.asn1.x509.OID.oid2atype(M)+"="+Ir(m(c,x[1]))},qt.getPublicKeyFromCertHex=function(c){var l=new qt;return l.readCertHex(c),l.getPublicKey()},qt.getPublicKeyFromCertPEM=function(c){var l=new qt;return l.readCertPEM(c),l.getPublicKey()},qt.getPublicKeyInfoPropOfCertPEM=function(c){var l,h,m=We.getVbyList,x={};return x.algparam=null,(l=new qt).readCertPEM(c),h=l.getPublicKeyHex(),x.keyhex=m(h,0,[1],"03").substr(2),x.algoid=m(h,0,[0,0],"06"),x.algoid==="2a8648ce3d0201"&&(x.algparam=m(h,0,[0,1],"06")),x},qt.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"],U!==void 0&&U||(n.KJUR=U={}),U.jws!==void 0&&U.jws||(U.jws={}),U.jws.JWS=function(){var c=U.jws.JWS.isSafeJSONString;this.parseJWS=function(l,h){if(this.parsedJWS===void 0||!h&&this.parsedJWS.sigvalH===void 0){var m=l.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(m==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var x=m[1],O=m[2],M=m[3],J=x+"."+O;if(this.parsedJWS={},this.parsedJWS.headB64U=x,this.parsedJWS.payloadB64U=O,this.parsedJWS.sigvalB64U=M,this.parsedJWS.si=J,!h){var z=At(M),K=Ne(z,16);this.parsedJWS.sigvalH=z,this.parsedJWS.sigvalBI=K}var Y=Ft(x),X=Ft(O);if(this.parsedJWS.headS=Y,this.parsedJWS.payloadS=X,!c(Y,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+Y}}},U.jws.JWS.sign=function(c,l,h,m,x){var O,M,J,z=U,K=z.jws.JWS,Y=K.readSafeJSONString,X=K.isSafeJSONString,re=z.crypto,oe=(re.ECDSA,re.Mac),fe=re.Signature,ye=JSON;if(typeof l!="string"&&(l===void 0?"undefined":s(l))!="object")throw"spHeader must be JSON string or object: "+l;if((l===void 0?"undefined":s(l))=="object"&&(M=l,O=ye.stringify(M)),typeof l=="string"){if(!X(O=l))throw"JWS Head is not safe JSON string: "+O;M=Y(O)}if(J=h,(h===void 0?"undefined":s(h))=="object"&&(J=ye.stringify(h)),c!=""&&c!=null||M.alg===void 0||(c=M.alg),c!=""&&c!=null&&M.alg===void 0&&(M.alg=c,O=ye.stringify(M)),c!==M.alg)throw"alg and sHeader.alg doesn't match: "+c+"!="+M.alg;var be=null;if(K.jwsalg2sigalg[c]===void 0)throw"unsupported alg name: "+c;be=K.jwsalg2sigalg[c];var N=ir(O)+"."+ir(J),Z="";if(be.substr(0,4)=="Hmac"){if(m===void 0)throw"mac key shall be specified for HS* alg";var te=new oe({alg:be,prov:"cryptojs",pass:m});te.updateString(N),Z=te.doFinal()}else if(be.indexOf("withECDSA")!=-1){(he=new fe({alg:be})).init(m,x),he.updateString(N);var ne=he.sign();Z=U.crypto.ECDSA.asn1SigToConcatSig(ne)}else{var he;be!="none"&&((he=new fe({alg:be})).init(m,x),he.updateString(N),Z=he.sign())}return N+"."+Kt(Z)},U.jws.JWS.verify=function(c,l,h){var m,x=U,O=x.jws.JWS,M=O.readSafeJSONString,J=x.crypto,z=J.ECDSA,K=J.Mac,Y=J.Signature;s(Oe)!==void 0&&(m=Oe);var X=c.split(".");if(X.length!==3)return!1;var re=X[0]+"."+X[1],oe=At(X[2]),fe=M(Ft(X[0])),ye=null,be=null;if(fe.alg===void 0)throw"algorithm not specified in header";if(be=(ye=fe.alg).substr(0,2),h!=null&&Object.prototype.toString.call(h)==="[object Array]"&&h.length>0&&(":"+h.join(":")+":").indexOf(":"+ye+":")==-1)throw"algorithm '"+ye+"' not accepted in the list";if(ye!="none"&&l===null)throw"key shall be specified to verify.";if(typeof l=="string"&&l.indexOf("-----BEGIN ")!=-1&&(l=Ut.getKey(l)),!(be!="RS"&&be!="PS"||l instanceof m))throw"key shall be a RSAKey obj for RS* and PS* algs";if(be=="ES"&&!(l instanceof z))throw"key shall be a ECDSA obj for ES* algs";var N=null;if(O.jwsalg2sigalg[fe.alg]===void 0)throw"unsupported alg name: "+ye;if((N=O.jwsalg2sigalg[ye])=="none")throw"not supported";if(N.substr(0,4)=="Hmac"){if(l===void 0)throw"hexadecimal key shall be specified for HMAC";var Z=new K({alg:N,pass:l});return Z.updateString(re),oe==Z.doFinal()}if(N.indexOf("withECDSA")!=-1){var te,ne=null;try{ne=z.concatSigToASN1Sig(oe)}catch{return!1}
207return(te=new Y({alg:N})).init(l),te.updateString(re),te.verify(ne)}return(te=new Y({alg:N})).init(l),te.updateString(re),te.verify(oe)},U.jws.JWS.parse=function(c){var l,h,m,x=c.split("."),O={};if(x.length!=2&&x.length!=3)throw"malformed sJWS: wrong number of '.' splitted elements";return l=x[0],h=x[1],x.length==3&&(m=x[2]),O.headerObj=U.jws.JWS.readSafeJSONString(Ft(l)),O.payloadObj=U.jws.JWS.readSafeJSONString(Ft(h)),O.headerPP=JSON.stringify(O.headerObj,null,"  "),O.payloadObj==null?O.payloadPP=Ft(h):O.payloadPP=JSON.stringify(O.payloadObj,null,"  "),m!==void 0&&(O.sigHex=At(m)),O},U.jws.JWS.verifyJWT=function(c,l,h){var m=U.jws,x=m.JWS,O=x.readSafeJSONString,M=x.inArray,J=x.includedArray,z=c.split("."),K=z[0],Y=z[1],X=(At(z[2]),O(Ft(K))),re=O(Ft(Y));if(X.alg===void 0)return!1;if(h.alg===void 0)throw"acceptField.alg shall be specified";if(!M(X.alg,h.alg)||re.iss!==void 0&&s(h.iss)==="object"&&!M(re.iss,h.iss)||re.sub!==void 0&&s(h.sub)==="object"&&!M(re.sub,h.sub))return!1;if(re.aud!==void 0&&s(h.aud)==="object"){if(typeof re.aud=="string"){if(!M(re.aud,h.aud))return!1}else if(s(re.aud)=="object"&&!J(re.aud,h.aud))return!1}var oe=m.IntDate.getNow();return h.verifyAt!==void 0&&typeof h.verifyAt=="number"&&(oe=h.verifyAt),h.gracePeriod!==void 0&&typeof h.gracePeriod=="number"||(h.gracePeriod=0),!(re.exp!==void 0&&typeof re.exp=="number"&&re.exp+h.gracePeriod<oe)&&!(re.nbf!==void 0&&typeof re.nbf=="number"&&oe<re.nbf-h.gracePeriod)&&!(re.iat!==void 0&&typeof re.iat=="number"&&oe<re.iat-h.gracePeriod)&&(re.jti===void 0||h.jti===void 0||re.jti===h.jti)&&!!x.verify(c,l,h.alg)},U.jws.JWS.includedArray=function(c,l){var h=U.jws.JWS.inArray;if(c===null||(c===void 0?"undefined":s(c))!=="object"||typeof c.length!="number")return!1;for(var m=0;m<c.length;m++)if(!h(c[m],l))return!1;return!0},U.jws.JWS.inArray=function(c,l){if(l===null||(l===void 0?"undefined":s(l))!=="object"||typeof l.length!="number")return!1;for(var h=0;h<l.length;h++)if(l[h]==c)return!0;return!1},U.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},U.jws.JWS.isSafeJSONString=function(c,l,h){var m=null;try{return((m=Bt(c))===void 0?"undefined":s(m))!="object"||m.constructor===Array?0:(l&&(l[h]=m),1)}catch{return 0}},U.jws.JWS.readSafeJSONString=function(c){var l=null;try{return((l=Bt(c))===void 0?"undefined":s(l))!="object"||l.constructor===Array?null:l}catch{return null}},U.jws.JWS.getEncodedSignatureValueFromJWS=function(c){var l=c.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(l==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return l[1]},U.jws.JWS.getJWKthumbprint=function(c){if(c.kty!=="RSA"&&c.kty!=="EC"&&c.kty!=="oct")throw"unsupported algorithm for JWK Thumprint";var l="{";if(c.kty==="RSA"){if(typeof c.n!="string"||typeof c.e!="string")throw"wrong n and e value for RSA key";l+='"e":"'+c.e+'",',l+='"kty":"'+c.kty+'",',l+='"n":"'+c.n+'"}'}else if(c.kty==="EC"){if(typeof c.crv!="string"||typeof c.x!="string"||typeof c.y!="string")throw"wrong crv, x and y value for EC key";l+='"crv":"'+c.crv+'",',l+='"kty":"'+c.kty+'",',l+='"x":"'+c.x+'",',l+='"y":"'+c.y+'"}'}else if(c.kty==="oct"){if(typeof c.k!="string")throw"wrong k value for oct(symmetric) key";l+='"kty":"'+c.kty+'",',l+='"k":"'+c.k+'"}'}var h=sn(l);return Kt(U.crypto.Util.hashHex(h,"sha256"))},U.jws.IntDate={},U.jws.IntDate.get=function(c){var l=U.jws.IntDate,h=l.getNow,m=l.getZulu;if(c=="now")return h();if(c=="now + 1hour")return h()+3600;if(c=="now + 1day")return h()+86400;if(c=="now + 1month")return h()+2592e3;if(c=="now + 1year")return h()+31536e3;if(c.match(/Z$/))return m(c);if(c.match(/^[0-9]+$/))return parseInt(c);throw"unsupported format: "+c},U.jws.IntDate.getZulu=function(c){return Gu(c)},U.jws.IntDate.getNow=function(){return~~(new Date/1e3)},U.jws.IntDate.intDate2UTCString=function(c){return new Date(1e3*c).toUTCString()},U.jws.IntDate.intDate2Zulu=function(c){var l=new Date(1e3*c);return("0000"+l.getUTCFullYear()).slice(-4)+("00"+(l.getUTCMonth()+1)).slice(-2)+("00"+l.getUTCDate()).slice(-2)+("00"+l.getUTCHours()).slice(-2)+("00"+l.getUTCMinutes()).slice(-2)+("00"+l.getUTCSeconds()).slice(-2)+"Z"},n.SecureRandom=ze,n.rng_seed_time=Q,n.BigInteger=j,n.RSAKey=Oe;var Zm=U.crypto.EDSA;n.EDSA=Zm;var Xm=U.crypto.DSA;n.DSA=Xm;var Qm=U.crypto.Signature;n.Signature=Qm;var ey=U.crypto.MessageDigest;n.MessageDigest=ey;var ty=U.crypto.Mac;n.Mac=ty;var ry=U.crypto.Cipher;n.Cipher=ry,n.KEYUTIL=Ut,n.ASN1HEX=We,n.X509=qt,n.CryptoJS=F,n.b64tohex=$,n.b64toBA=ee,n.stoBA=fi,n.BAtos=pr,
207n.BAtohex=_r,n.stohex=Br,n.stob64=function(l){return H(Br(l))},n.stob64u=function(l){return vs(H(Br(l)))},n.b64utos=function(l){return pr(ee(di(l)))},n.b64tob64u=vs,n.b64utob64=di,n.hex2b64=H,n.hextob64u=Kt,n.b64utohex=At,n.utf8tob64u=ir,n.b64utoutf8=Ft,n.utf8tob64=function(l){return H(bs(ws(l)))},n.b64toutf8=function(l){return decodeURIComponent(_s($(l)))},n.utf8tohex=sl,n.hextoutf8=sr,n.hextorstr=Ir,n.rstrtohex=sn,n.hextob64=zu,n.hextob64nl=Ku,n.b64nltohex=Ju,n.hextopem=Er,n.pemtohex=an,n.hextoArrayBuffer=function(l){if(l.length%2!=0)throw"input is not even length";if(l.match(/^[0-9A-Fa-f]+$/)==null)throw"input is not hexadecimal";for(var h=new ArrayBuffer(l.length/2),m=new DataView(h),x=0;x<l.length/2;x++)m.setUint8(x,parseInt(l.substr(2*x,2),16));return h},n.ArrayBuffertohex=function(l){for(var h="",m=new DataView(l),x=0;x<l.byteLength;x++)h+=("00"+m.getUint8(x).toString(16)).slice(-2);return h},n.zulutomsec=al,n.zulutosec=Gu,n.zulutodate=function(l){return new Date(al(l))},n.datetozulu=function(l,h,m){var x,O=l.getUTCFullYear();if(h){if(O<1950||2049<O)throw"not proper year for UTCTime: "+O;x=(""+O).slice(-2)}else x=("000"+O).slice(-4);if(x+=("0"+(l.getUTCMonth()+1)).slice(-2),x+=("0"+l.getUTCDate()).slice(-2),x+=("0"+l.getUTCHours()).slice(-2),x+=("0"+l.getUTCMinutes()).slice(-2),x+=("0"+l.getUTCSeconds()).slice(-2),m){var M=l.getUTCMilliseconds();M!==0&&(x+="."+(M=(M=("00"+M).slice(-3)).replace(/0+$/g,"")))}return x+="Z"},n.uricmptohex=bs,n.hextouricmp=_s,n.ipv6tohex=Yu,n.hextoipv6=Zu,n.hextoip=ll,n.iptohex=function(l){var h="malformed IP address";if(!(l=l.toLowerCase(l)).match(/^[0-9.]+$/)){if(l.match(/^[0-9a-f:]+$/)&&l.indexOf(":")!==-1)return Yu(l);throw h}var m=l.split(".");if(m.length!==4)throw h;var x="";try{for(var O=0;O<4;O++)x+=("0"+parseInt(m[O]).toString(16)).slice(-2);return x}catch{throw h}},n.encodeURIComponentAll=ws,n.newline_toUnix=function(l){return l=l.replace(/\r\n/gm,`
208`)},n.newline_toDos=function(l){return l=(l=l.replace(/\r\n/gm,`
209`)).replace(/\n/gm,`\r
210`)},n.hextoposhex=cl,n.intarystrtohex=function(l){l=(l=(l=l.replace(/^\s*\[\s*/,"")).replace(/\s*\]\s*$/,"")).replace(/\s*/g,"");try{return l.split(/,/).map((function(h,m,x){var O=parseInt(h);if(O<0||255<O)throw"integer not in range 0-255";return("00"+O.toString(16)).slice(-2)})).join("")}catch(h){throw"malformed integer array string: "+h}},n.strdiffidx=function(l,h){var m=l.length;l.length>h.length&&(m=h.length);for(var x=0;x<m;x++)if(l.charCodeAt(x)!=h.charCodeAt(x))return x;return l.length!=h.length?m:-1},n.KJUR=U;var ny=U.crypto;n.crypto=ny;var oy=U.asn1;n.asn1=oy;var iy=U.jws;n.jws=iy;var sy=U.lang;n.lang=sy}).call(this,o(28).Buffer)},function(r,n,o){(function(i){/*!
211 * The buffer module from node.js, for the browser.
212 *
213 * @author   Feross Aboukhadijeh <http://feross.org>
214 * @license  MIT
215 */var s=o(30),a=o(31),d=o(32);function f(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(q,A){if(f()<A)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(q=new Uint8Array(A)).__proto__=p.prototype:(q===null&&(q=new p(A)),q.length=A),q}function p(q,A,b){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(q,A,b);if(typeof q=="number"){if(typeof A=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,q)}return g(this,q,A,b)}function g(q,A,b,R){if(typeof A=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&A instanceof ArrayBuffer?(function(G,Q,de,ke){if(Q.byteLength,de<0||Q.byteLength<de)throw new RangeError("'offset' is out of bounds");if(Q.byteLength<de+(ke||0))throw new RangeError("'length' is out of bounds");return Q=de===void 0&&ke===void 0?new Uint8Array(Q):ke===void 0?new Uint8Array(Q,de):new Uint8Array(Q,de,ke),p.TYPED_ARRAY_SUPPORT?(G=Q).__proto__=p.prototype:G=k(G,Q),G})(q,A,b,R):typeof A=="string"?(function(G,Q,de){if(typeof de=="string"&&de!==""||(de="utf8"),!p.isEncoding(de))throw new TypeError('"encoding" must be a valid string encoding');var ke=0|E(Q,de),Ce=(G=u(G,ke)).write(Q,de);return Ce!==ke&&(G=G.slice(0,Ce)),G})(q,A,b):(function(G,Q){if(p.isBuffer(Q)){var de=0|C(Q.length);return(G=u(G,de)).length===0||Q.copy(G,0,0,de),G}if(Q){if(typeof ArrayBuffer<"u"&&Q.buffer instanceof ArrayBuffer||"length"in Q)return typeof Q.length!="number"||(function(Ce){return Ce!=Ce}
vendor: 19,940 bytes, line 215
215)(Q.length)?u(G,0):k(G,Q);if(Q.type==="Buffer"&&d(Q.data))return k(G,Q.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")})(q,A)}function y(q){if(typeof q!="number")throw new TypeError('"size" argument must be a number');if(q<0)throw new RangeError('"size" argument must not be negative')}function v(q,A){if(y(A),q=u(q,A<0?0:0|C(A)),!p.TYPED_ARRAY_SUPPORT)for(var b=0;b<A;++b)q[b]=0;return q}function k(q,A){var b=A.length<0?0:0|C(A.length);q=u(q,b);for(var R=0;R<b;R+=1)q[R]=255&A[R];return q}function C(q){if(q>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return 0|q}function E(q,A){if(p.isBuffer(q))return q.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(q)||q instanceof ArrayBuffer))return q.byteLength;typeof q!="string"&&(q=""+q);var b=q.length;if(b===0)return 0;for(var R=!1;;)switch(A){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":case void 0:return De(q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*b;case"hex":return b>>>1;case"base64":return Le(q).length;default:if(R)return De(q).length;A=(""+A).toLowerCase(),R=!0}}function w(q,A,b){var R=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0)<=(A>>>=0))return"";for(q||(q="utf8");;)switch(q){case"hex":return me(this,A,b);case"utf8":case"utf-8":return ie(this,A,b);case"ascii":return pe(this,A,b);case"latin1":case"binary":return ae(this,A,b);case"base64":return W(this,A,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,A,b);default:if(R)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),R=!0}}function _(q,A,b){var R=q[A];q[A]=q[b],q[b]=R}function T(q,A,b,R,L){if(q.length===0)return-1;if(typeof b=="string"?(R=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,isNaN(b)&&(b=L?0:q.length-1),b<0&&(b=q.length+b),b>=q.length){if(L)return-1;b=q.length-1}else if(b<0){if(!L)return-1;b=0}if(typeof A=="string"&&(A=p.from(A,R)),p.isBuffer(A))return A.length===0?-1:F(q,A,b,R,L);if(typeof A=="number")return A&=255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(q,A,b):Uint8Array.prototype.lastIndexOf.call(q,A,b):F(q,[A],b,R,L);throw new TypeError("val must be string, number or Buffer")}function F(q,A,b,R,L){var G,Q=1,de=q.length,ke=A.length;if(R!==void 0&&((R=String(R).toLowerCase())==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(q.length<2||A.length<2)return-1;Q=2,de/=2,ke/=2,b/=2}function Ce(Ne,Ke){return Q===1?Ne[Ke]:Ne.readUInt16BE(Ke*Q)}if(L){var Ae=-1;for(G=b;G<de;G++)if(Ce(q,G)===Ce(A,Ae===-1?0:G-Ae)){if(Ae===-1&&(Ae=G),G-Ae+1===ke)return Ae*Q}else Ae!==-1&&(G-=G-Ae),Ae=-1}else for(b+ke>de&&(b=de-ke),G=b;G>=0;G--){for(var Fe=!0,ze=0;ze<ke;ze++)if(Ce(q,G+ze)!==Ce(A,ze)){Fe=!1;break}if(Fe)return G}return-1}function I(q,A,b,R){b=Number(b)||0;var L=q.length-b;R?(R=Number(R))>L&&(R=L):R=L;var G=A.length;if(G%2!=0)throw new TypeError("Invalid hex string");R>G/2&&(R=G/2);for(var Q=0;Q<R;++Q){var de=parseInt(A.substr(2*Q,2),16);if(isNaN(de))return Q;q[b+Q]=de}return Q}function P(q,A,b,R){return Ue(De(A,q.length-b),q,b,R)}function H(q,A,b,R){return Ue((function(G){for(var Q=[],de=0;de<G.length;++de)Q.push(255&G.charCodeAt(de));return Q})(A),q,b,R)}function $(q,A,b,R){return H(q,A,b,R)}function ee(q,A,b,R){return Ue(Le(A),q,b,R)}function j(q,A,b,R){return Ue((function(G,Q){for(var de,ke,Ce,Ae=[],Fe=0;Fe<G.length&&!((Q-=2)<0);++Fe)ke=(de=G.charCodeAt(Fe))>>8,Ce=de%256,Ae.push(Ce),Ae.push(ke);return Ae})(A,q.length-b),q,b,R)}function W(q,A,b){return A===0&&b===q.length?s.fromByteArray(q):s.fromByteArray(q.slice(A,b))}function ie(q,A,b){b=Math.min(q.length,b);for(var R=[],L=A;L<b;){var G,Q,de,ke,Ce=q[L],Ae=null,Fe=Ce>239?4:Ce>223?3:Ce>191?2:1;if(L+Fe<=b)switch(Fe){case 1:Ce<128&&(Ae=Ce);break;case 2:(192&(G=q[L+1]))==128&&(ke=(31&Ce)<<6|63&G)>127&&(Ae=ke);break;case 3:G=q[L+1],Q=q[L+2],(192&G)==128&&(192&Q)==128&&(ke=(15&Ce)<<12|(63&G)<<6|63&Q)>2047&&(ke<55296||ke>57343)&&(Ae=ke);break;case 4:G=q[L+1],Q=q[L+2],de=q[L+3],(192&G)==128&&(192&Q)==128&&(192&de)==128&&(ke=(15&Ce)<<18|(63&G)<<12|(63&Q)<<6|63&de)>65535&&ke<1114112&&(Ae=ke)}Ae===null?(Ae=65533,Fe=1):Ae>65535&&(Ae-=65536,R.push(Ae>>>10&1023|55296),Ae=56320|1023&Ae),R.push(Ae),L+=Fe}return(function(Ne){var Ke=Ne.length;if(Ke<=ce)return String.fromCharCode.apply(String,Ne);for(var Oe="",et=0;et<Ke;)Oe+=String.fromCharCode.apply(String,Ne.slice(et,et+=ce));return Oe})(R)}n.Buffer=p,n.SlowBuffer=function(A){return+A!=A&&(A=0),p.alloc(+A)},n.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=i.TYPED_ARRAY_SUPPORT!==void 0?i.TYPED_ARRAY_SUPPORT:(function(){try{var A=new Uint8Array(1);return A.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},A.foo()===42&&typeof A.subarray=="function"&&A.subarray(1,1).byteLength===0}catch{return!1}})(),n.kMaxLength=f(),p.poolSize=8192,p._augment=function(q){return q.__proto__=p.prototype,q},p.from=function(q,A,b){return g(null,q,A,b)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0})),p.alloc=function(q,A,b){return(function(L,G,Q,de){return y(G),G<=0?u(L,G):Q!==void 0?typeof de=="string"?u(L,G).fill(Q,de):u(L,G).fill(Q):u(L,G)})(null,q,A,b)},p.allocUnsafe=function(q){return v(null,q)},p.allocUnsafeSlow=function(q){return v(null,q)},p.isBuffer=function(A){return!(A==null||!A._isBuffer)},p.compare=function(A,b){if(!p.isBuffer(A)||!p.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(A===b)return 0;for(var R=A.length,L=b.length,G=0,Q=Math.min(R,L);G<Q;++G)if(A[G]!==b[G]){R=A[G],L=b[G];break}return R<L?-1:L<R?1:0},p.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(A,b){if(!d(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return p.alloc(0);var R;if(b===void 0)for(b=0,R=0;R<A.length;++R)b+=A[R].length;var L=p.allocUnsafe(b),G=0;for(R=0;R<A.length;++R){var Q=A[R];if(!p.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(L,G),G+=Q.length}return L},p.byteLength=E,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var b=0;b<A;b+=2)_(this,b,b+1);return this},p.prototype.swap32=function(){var A=this.length;if(A%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var b=0;b<A;b+=4)_(this,b,b+3),_(this,b+1,b+2);return this},p.prototype.swap64=function(){var A=this.length;if(A%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var b=0;b<A;b+=8)_(this,b,b+7),_(this,b+1,b+6),_(this,b+2,b+5),_(this,b+3,b+4);return this},p.prototype.toString=function(){var A=0|this.length;return A===0?"":arguments.length===0?ie(this,0,A):w.apply(this,arguments)},p.prototype.equals=function(A){if(!p.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||p.compare(this,A)===0},p.prototype.inspect=function(){var A="",b=n.INSPECT_MAX_BYTES;return this.length>0&&(A=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(A+=" ... ")),"<Buffer "+A+">"},p.prototype.compare=function(A,b,R,L,G){if(!p.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(b===void 0&&(b=0),R===void 0&&(R=A?A.length:0),L===void 0&&(L=0),G===void 0&&(G=this.length),b<0||R>A.length||L<0||G>this.length)throw new RangeError("out of range index");if(L>=G&&b>=R)return 0;if(L>=G)return-1;if(b>=R)return 1;if(this===A)return 0;for(var Q=(G>>>=0)-(L>>>=0),de=(R>>>=0)-(b>>>=0),ke=Math.min(Q,de),Ce=this.slice(L,G),Ae=A.slice(b,R),Fe=0;Fe<ke;++Fe)if(Ce[Fe]!==Ae[Fe]){Q=Ce[Fe],de=Ae[Fe];break}return Q<de?-1:de<Q?1:0},p.prototype.includes=function(A,b,R){return this.indexOf(A,b,R)!==-1},p.prototype.indexOf=function(A,b,R){return T(this,A,b,R,!0)},p.prototype.lastIndexOf=function(A,b,R){return T(this,A,b,R,!1)},p.prototype.write=function(A,b,R,L){if(b===void 0)L="utf8",R=this.length,b=0;else if(R===void 0&&typeof b=="string")L=b,R=this.length,b=0;else{if(!isFinite(b))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");b|=0,isFinite(R)?(R|=0,L===void 0&&(L="utf8")):(L=R,R=void 0)}var G=this.length-b;if((R===void 0||R>G)&&(R=G),A.length>0&&(R<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");for(var Q=!1;;)switch(L){case"hex":return I(this,A,b,R);case"utf8":case"utf-8":return P(this,A,b,R);case"ascii":return H(this,A,b,R);case"latin1":case"binary":return $(this,A,b,R);case"base64":return ee(this,A,b,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,A,b,R);default:if(Q)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),Q=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ce=4096;function pe(q,A,b){var R="";b=Math.min(q.length,b);for(var L=A;L<b;++L)R+=String.fromCharCode(127&q[L]);return R}function ae(q,A,b){var R="";b=Math.min(q.length,b);for(var L=A;L<b;++L)R+=String.fromCharCode(q[L]);return R}function me(q,A,b){var R=q.length;(!A||A<0)&&(A=0),(!b||b<0||b>R)&&(b=R);for(var L="",G=A;G<b;++G)L+=_e(q[G]);return L}function ve(q,A,b){for(var R=q.slice(A,b),L="",G=0;G<R.length;G+=2)L+=String.fromCharCode(R[G]+256*R[G+1]);return L}function Pe(q,A,b){if(q%1!=0||q<0)throw new RangeError("offset is not uint");if(q+A>b)throw new RangeError("Trying to access beyond buffer length")}function Re(q,A,b,R,L,G){if(!p.isBuffer(q))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>L||A<G)throw new RangeError('"value" argument is out of bounds');if(b+R>q.length)throw new RangeError("Index out of range")}function Je(q,A,b,R){A<0&&(A=65535+A+1);for(var L=0,G=Math.min(q.length-b,2);L<G;++L)q[b+L]=(A&255<<8*(R?L:1-L))>>>8*(R?L:1-L)}function $e(q,A,b,R){A<0&&(A=4294967295+A+1);for(var L=0,G=Math.min(q.length-b,4);L<G;++L)q[b+L]=A>>>8*(R?L:3-L)&255}function Me(q,A,b,R,L,G){if(b+R>q.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function rt(q,A,b,R,L){return L||Me(q,0,b,4),a.write(q,A,b,R,23,4),b+4}function st(q,A,b,R,L){return L||Me(q,0,b,8),a.write(q,A,b,R,52,8),b+8}p.prototype.slice=function(A,b){var R,L=this.length;if((A=~~A)<0?(A+=L)<0&&(A=0):A>L&&(A=L),(b=b===void 0?L:~~b)<0?(b+=L)<0&&(b=0):b>L&&(b=L),b<A&&(b=A),p.TYPED_ARRAY_SUPPORT)(R=this.subarray(A,b)).__proto__=p.prototype;else{var G=b-A;R=new p(G,void 0);for(var Q=0;Q<G;++Q)R[Q]=this[Q+A]}return R},p.prototype.readUIntLE=function(A,b,R){A|=0,b|=0,R||Pe(A,b,this.length);for(var L=this[A],G=1,Q=0;++Q<b&&(G*=256);)L+=this[A+Q]*G;return L},p.prototype.readUIntBE=function(A,b,R){A|=0,b|=0,R||Pe(A,b,this.length);for(var L=this[A+--b],G=1;b>0&&(G*=256);)L+=this[A+--b]*G;return L},p.prototype.readUInt8=function(A,b){return b||Pe(A,1,this.length),this[A]},p.prototype.readUInt16LE=function(A,b){return b||Pe(A,2,this.length),this[A]|this[A+1]<<8},p.prototype.readUInt16BE=function(A,b){return b||Pe(A,2,this.length),this[A]<<8|this[A+1]},p.prototype.readUInt32LE=function(A,b){return b||Pe(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},p.prototype.readUInt32BE=function(A,b){return b||Pe(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},p.prototype.readIntLE=function(A,b,R){A|=0,b|=0,R||Pe(A,b,this.length);for(var L=this[A],G=1,Q=0;++Q<b&&(G*=256);)L+=this[A+Q]*G;return L>=(G*=128)&&(L-=Math.pow(2,8*b)),L},p.prototype.readIntBE=function(A,b,R){A|=0,b|=0,R||Pe(A,b,this.length);for(var L=b,G=1,Q=this[A+--L];L>0&&(G*=256);)Q+=this[A+--L]*G;return Q>=(G*=128)&&(Q-=Math.pow(2,8*b)),Q},p.prototype.readInt8=function(A,b){return b||Pe(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},p.prototype.readInt16LE=function(A,b){b||Pe(A,2,this.length);var R=this[A]|this[A+1]<<8;return 32768&R?4294901760|R:R},p.prototype.readInt16BE=function(A,b){b||Pe(A,2,this.length);var R=this[A+1]|this[A]<<8;return 32768&R?4294901760|R:R},p.prototype.readInt32LE=function(A,b){return b||Pe(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},p.prototype.readInt32BE=function(A,b){return b||Pe(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},p.prototype.readFloatLE=function(A,b){return b||Pe(A,4,this.length),a.read(this,A,!0,23,4)},p.prototype.readFloatBE=function(A,b){return b||Pe(A,4,this.length),a.read(this,A,!1,23,4)},p.prototype.readDoubleLE=function(A,b){return b||Pe(A,8,this.length),a.read(this,A,!0,52,8)},p.prototype.readDoubleBE=function(A,b){return b||Pe(A,8,this.length),a.read(this,A,!1,52,8)},p.prototype.writeUIntLE=function(A,b,R,L){A=+A,b|=0,R|=0,L||Re(this,A,b,R,Math.pow(2,8*R)-1,0);var G=1,Q=0;for(this[b]=255&A;++Q<R&&(G*=256);)this[b+Q]=A/G&255;return b+R},p.prototype.writeUIntBE=function(A,b,R,L){A=+A,b|=0,R|=0,L||Re(this,A,b,R,Math.pow(2,8*R)-1,0);var G=R-1,Q=1;for(this[b+G]=255&A;--G>=0&&(Q*=256);)this[b+G]=A/Q&255;return b+R},p.prototype.writeUInt8=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,1,255,0),p.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[b]=255&A,b+1},p.prototype.writeUInt16LE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[b]=255&A,this[b+1]=A>>>8):Je(this,A,b,!0),b+2},p.prototype.writeUInt16BE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[b]=A>>>8,this[b+1]=255&A):Je(this,A,b,!1),b+2},p.prototype.writeUInt32LE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[b+3]=A>>>24,this[b+2]=A>>>16,this[b+1]=A>>>8,this[b]=255&A):$e(this,A,b,!0),b+4},p.prototype.writeUInt32BE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[b]=A>>>24,this[b+1]=A>>>16,this[b+2]=A>>>8,this[b+3]=255&A):$e(this,A,b,!1),b+4},p.prototype.writeIntLE=function(A,b,R,L){if(A=+A,b|=0,!L){var G=Math.pow(2,8*R-1);Re(this,A,b,R,G-1,-G)}var Q=0,de=1,ke=0;for(this[b]=255&A;++Q<R&&(de*=256);)A<0&&ke===0&&this[b+Q-1]!==0&&(ke=1),this[b+Q]=(A/de>>0)-ke&255;return b+R},p.prototype.writeIntBE=function(A,b,R,L){if(A=+A,b|=0,!L){var G=Math.pow(2,8*R-1);Re(this,A,b,R,G-1,-G)}var Q=R-1,de=1,ke=0;for(this[b+Q]=255&A;--Q>=0&&(de*=256);)A<0&&ke===0&&this[b+Q+1]!==0&&(ke=1),this[b+Q]=(A/de>>0)-ke&255;return b+R},p.prototype.writeInt8=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,1,127,-128),p.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[b]=255&A,b+1},p.prototype.writeInt16LE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[b]=255&A,this[b+1]=A>>>8):Je(this,A,b,!0),b+2},p.prototype.writeInt16BE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[b]=A>>>8,this[b+1]=255&A):Je(this,A,b,!1),b+2},p.prototype.writeInt32LE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[b]=255&A,this[b+1]=A>>>8,this[b+2]=A>>>16,this[b+3]=A>>>24):$e(this,A,b,!0),b+4},p.prototype.writeInt32BE=function(A,b,R){return A=+A,b|=0,R||Re(this,A,b,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),p.TYPED_ARRAY_SUPPORT?(this[b]=A>>>24,this[b+1]=A>>>16,this[b+2]=A>>>8,this[b+3]=255&A):$e(this,A,b,!1),b+4},p.prototype.writeFloatLE=function(A,b,R){return rt(this,A,b,!0,R)},p.prototype.writeFloatBE=function(A,b,R){return rt(this,A,b,!1,R)},p.prototype.writeDoubleLE=function(A,b,R){return st(this,A,b,!0,R)},p.prototype.writeDoubleBE=function(A,b,R){return st(this,A,b,!1,R)},p.prototype.copy=function(A,b,R,L){if(R||(R=0),L||L===0||(L=this.length),b>=A.length&&(b=A.length),b||(b=0),L>0&&L<R&&(L=R),L===R||A.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("sourceStart out of bounds");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),A.length-b<L-R&&(L=A.length-b+R);var G,Q=L-R;if(this===A&&R<b&&b<L)for(G=Q-1;G>=0;--G)A[G+b]=this[G+R];else if(Q<1e3||!p.TYPED_ARRAY_SUPPORT)for(G=0;G<Q;++G)A[G+b]=this[G+R];else Uint8Array.prototype.set.call(A,this.subarray(R,R+Q),b);return Q},p.prototype.fill=function(A,b,R,L){if(typeof A=="string"){if(typeof b=="string"?(L=b,b=0,R=this.length):typeof R=="string"&&(L=R,R=this.length),A.length===1){var G=A.charCodeAt(0);G<256&&(A=G)}if(L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!p.isEncoding(L))throw new TypeError("Unknown encoding: "+L)}else typeof A=="number"&&(A&=255);if(b<0||this.length<b||this.length<R)throw new RangeError("Out of range index");if(R<=b)return this;var Q;if(b>>>=0,R=R===void 0?this.length:R>>>0,A||(A=0),typeof A=="number")for(Q=b;Q<R;++Q)this[Q]=A;else{var de=p.isBuffer(A)?A:De(new p(A,L).toString()),ke=de.length;for(Q=0;Q<R-b;++Q)this[Q+b]=de[Q%ke]}return this};var at=/[^+\/0-9A-Za-z-_]/g;function _e(q){return q<16?"0"+q.toString(16):q.toString(16)}function De(q,A){var b;A=A||1/0;for(var R=q.length,L=null,G=[],Q=0;Q<R;++Q){if((b=q.charCodeAt(Q))>55295&&b<57344){if(!L){if(b>56319){(A-=3)>-1&&G.push(239,191,189);continue}if(Q+1===R){(A-=3)>-1&&G.push(239,191,189);continue}L=b;continue}if(b<56320){(A-=3)>-1&&G.push(239,191,189),L=b;continue}b=65536+(L-55296<<10|b-56320)}else L&&(A-=3)>-1&&G.push(239,191,189);if(L=null,b<128){if((A-=1)<0)break;G.push(b)}else if(b<2048){if((A-=2)<0)break;G.push(b>>6|192,63&b|128)}else if(b<65536){if((A-=3)<0)break;G.push(b>>12|224,b>>6&63|128,63&b|128)}else{if(!(b<1114112))throw new Error("Invalid code point");if((A-=4)<0)break;G.push(b>>18|240,b>>12&63|128,b>>6&63|128,63&b|128)}}return G}function Le(q){return s.toByteArray((function(b){if((b=(function(L){return L.trim?L.trim():L.replace(/^\s+|\s+$/g,"")})(b).replace(at,"")).length<2)return"";for(;b.length%4!=0;)b+="=";return b})(q))}function Ue(q,A,b,R){for(var L=0;L<R&&!(L+b>=A.length||L>=q.length);++L)A[L+b]=q[L];return L}}).call(this,o(29))},function(r,n){var o;o=(function(){return this})();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}r.exports=o},function(r,n,o){n.byteLength=function(v){var k=p(v),C=k[0],E=k[1];return 3*(C+E)/4-E},n.toByteArray=function(v){var k,C,E=p(v),w=E[0],_=E[1],T=new a((function(H,$,ee){return 3*($+ee)/4-ee})(0,w,_)),F=0,I=_>0?w-4:w;for(C=0;C<I;C+=4)k=s[v.charCodeAt(C)]<<18|s[v.charCodeAt(C+1)]<<12|s[v.charCodeAt(C+2)]<<6|s[v.charCodeAt(C+3)],T[F++]=k>>16&255,T[F++]=k>>8&255,T[F++]=255&k;return _===2&&(k=s[v.charCodeAt(C)]<<2|s[v.charCodeAt(C+1)]>>4,T[F++]=255&k),_===1&&(k=s[v.charCodeAt(C)]<<10|s[v.charCodeAt(C+1)]<<4|s[v.charCodeAt(C+2)]>>2,T[F++]=k>>8&255,T[F++]=255&k),T},n.fromByteArray=function(v){for(var k,C=v.length,E=C%3,w=[],_=16383,T=0,F=C-E;T<F;T+=_)w.push(g(v,T,T+_>F?F:T+_));return E===1?(k=v[C-1],w.push(i[k>>2]+i[k<<4&63]+"==")):E===2&&(k=(v[C-2]<<8)+v[C-1],w.push(i[k>>10]+i[k>>4&63]+i[k<<2&63]+"=")),w.join("")};for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=d.length;f<u;++f)i[f]=d[f],s[d.charCodeAt(f)]=f;function p(y){var v=y.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=y.indexOf("=");return k===-1&&(k=v),[k,k===v?0:4-k%4]}function g(y,v,k){for(var C,E,w=[],_=v;_<k;_+=3)C=(y[_]<<16&16711680)+(y[_+1]<<8&65280)+(255&y[_+2]),w.push(i[(E=C)>>18&63]+i[E>>12&63]+i[E>>6&63]+i[63&E]);return w.join("")}s[45]=62,s[95]=63},function(r,n){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource>
215 */n.read=function(o,i,s,a,d){var f,u,p=8*d-a-1,g=(1<<p)-1,y=g>>1,v=-7,k=s?d-1:0,C=s?-1:1,E=o[i+k];for(k+=C,f=E&(1<<-v)-1,E>>=-v,v+=p;v>0;f=256*f+o[i+k],k+=C,v-=8);for(u=f&(1<<-v)-1,f>>=-v,v+=a;v>0;u=256*u+o[i+k],k+=C,v-=8);if(f===0)f=1-y;else{if(f===g)return u?NaN:1/0*(E?-1:1);u+=Math.pow(2,a),f-=y}return(E?-1:1)*u*Math.pow(2,f-a)},n.write=function(o,i,s,a,d,f){var u,p,g,y=8*f-d-1,v=(1<<y)-1,k=v>>1,C=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=a?0:f-1,w=a?1:-1,_=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(p=isNaN(i)?1:0,u=v):(u=Math.floor(Math.log(i)/Math.LN2),i*(g=Math.pow(2,-u))<1&&(u--,g*=2),(i+=u+k>=1?C/g:C*Math.pow(2,1-k))*g>=2&&(u++,g/=2),u+k>=v?(p=0,u=v):u+k>=1?(p=(i*g-1)*Math.pow(2,d),u+=k):(p=i*Math.pow(2,k-1)*Math.pow(2,d),u=0));d>=8;o[s+E]=255&p,E+=w,p/=256,d-=8);for(u=u<<d|p,y+=d;y>0;o[s+E]=255&u,E+=w,u/=256,y-=8);o[s+E-w]|=128*_}},function(r,n){var o={}.toString;r.exports=Array.isArray||function(i){return o.call(i)=="[object Array]"}},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(a){var d=a.jws,f=a.KeyUtil,u=a.X509,p=a.crypto,g=a.hextob64u,y=a.b64tohex,v=a.AllowedSigningAlgs;return(function(){function k(){(function(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")})(this,k)}return k.parseJwt=function(E){i.Log.debug("JoseUtil.parseJwt");try{var w=d.JWS.parse(E);return{header:w.headerObj,payload:w.payloadObj}}catch(_){i.Log.error(_)}},k.validateJwt=function(E,w,_,T,F,I,P){i.Log.debug("JoseUtil.validateJwt");try{if(w.kty==="RSA")if(w.e&&w.n)w=f.getKey(w);else{if(!w.x5c||!w.x5c.length)return i.Log.error("JoseUtil.validateJwt: RSA key missing key material",w),Promise.reject(new Error("RSA key missing key material"));var H=y(w.x5c[0]);w=u.getPublicKeyFromCertHex(H)}else{if(w.kty!=="EC")return i.Log.error("JoseUtil.validateJwt: Unsupported key type",w&&w.kty),Promise.reject(new Error(w.kty));if(!(w.crv&&w.x&&w.y))return i.Log.error("JoseUtil.validateJwt: EC key missing key material",w),Promise.reject(new Error("EC key missing key material"));w=f.getKey(w)}return k._validateJwt(E,w,_,T,F,I,P)}catch($){return i.Log.error($&&$.message||$),Promise.reject("JWT validation failed")}},k.validateJwtAttributes=function(E,w,_,T,F,I){T||(T=0),F||(F=parseInt(Date.now()/1e3));var P=k.parseJwt(E).payload;if(!P.iss)return i.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(new Error("issuer was not provided"));if(P.iss!==w)return i.Log.error("JoseUtil._validateJwt: Invalid issuer in token",P.iss),Promise.reject(new Error("Invalid issuer in token: "+P.iss));if(!P.aud)return i.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(new Error("aud was not provided"));if(!(P.aud===_||Array.isArray(P.aud)&&P.aud.indexOf(_)>=0))return i.Log.error("JoseUtil._validateJwt: Invalid audience in token",P.aud),Promise.reject(new Error("Invalid audience in token: "+P.aud));if(P.azp&&P.azp!==_)return i.Log.error("JoseUtil._validateJwt: Invalid azp in token",P.azp),Promise.reject(new Error("Invalid azp in token: "+P.azp));if(!I){var H=F+T,$=F-T;if(!P.iat)return i.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(new Error("iat was not provided"));if(H<P.iat)return i.Log.error("JoseUtil._validateJwt: iat is in the future",P.iat),Promise.reject(new Error("iat is in the future: "+P.iat));if(P.nbf&&H<P.nbf)return i.Log.error("JoseUtil._validateJwt: nbf is in the future",P.nbf),Promise.reject(new Error("nbf is in the future: "+P.nbf));if(!P.exp)return i.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(new Error("exp was not provided"));if(P.exp<$)return i.Log.error("JoseUtil._validateJwt: exp is in the past",P.exp),Promise.reject(new Error("exp is in the past:"+P.exp))}return Promise.resolve(P)},k._validateJwt=function(E,w,_,T,F,I,P){return k.validateJwtAttributes(E,_,T,F,I,P).then((function(H){try{return d.JWS.verify(E,w,v)?H:(i.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(new Error("signature validation failed")))}catch($){return i.Log.error($&&$.message||$),Promise.reject(new Error("signature validation failed"))}}))},k.hashString=function(E,w){try{return p.Util.hashString(E,w)}catch(_){i.Log.error(_)}},k.hexToBase64Url=function(E){try{return g(E)}catch(w){i.Log.error(w)}},k})()};var i=o(0);r.exports=n.default},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.SigninResponse=void 0;var i=(function(){function d(f,u){for(var p=0;p<u.length;p++){var g=u[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,u,p){return u&&d(f.prototype,u),p&&d(f,p),f}})(),s=o(3);function a(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}n.SigninResponse=(function(){function d(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#";a(this,d);var p=s.UrlUtility.parseUrlFragment(f,u);this.error=p.error,this.error_description=p.error_description,this.error_uri=p.error_uri,this.code=p.code,this.state=p.state,this.id_token=p.id_token,this.session_state=p.session_state,this.access_token=p.access_token,this.token_type=p.token_type,this.scope=p.scope,this.profile=void 0,this.expires_in=p.expires_in}return i(d,[{key:"expires_in",get:function(){if(this.expires_at){var u=parseInt(Date.now()/1e3);return this.expires_at-u}},set:function(u){var p=parseInt(u);if(typeof p=="number"&&p>0){var g=parseInt(Date.now()/1e3);this.expires_at=g+p}}},{key:"expired",get:function(){var u=this.expires_in;if(u!==void 0)return u<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),d})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.SignoutRequest=void 0;var i=o(0),s=o(3),a=o(9);n.SignoutRequest=function d(f){var u=f.url,p=f.id_token_hint,g=f.post_logout_redirect_uri,y=f.data,v=f.extraQueryParams,k=f.request_type;if((function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")})(this,d),!u)throw i.Log.error("SignoutRequest.ctor: No url passed"),new Error("url");for(var C in p&&(u=s.UrlUtility.addQueryParam(u,"id_token_hint",p)),g&&(u=s.UrlUtility.addQueryParam(u,"post_logout_redirect_uri",g),y&&(this.state=new a.State({data:y,request_type:k}
215),u=s.UrlUtility.addQueryParam(u,"state",this.state.id))),v)u=s.UrlUtility.addQueryParam(u,C,v[C]);this.url=u}},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.SignoutResponse=void 0;var i=o(3);n.SignoutResponse=function s(a){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,s);var d=i.UrlUtility.parseUrlFragment(a,"?");this.error=d.error,this.error_description=d.error_description,this.error_uri=d.error_uri,this.state=d.state}},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.InMemoryWebStorage=void 0;var i=(function(){function a(d,f){for(var u=0;u<f.length;u++){var p=f[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,f,u){return f&&a(d.prototype,f),u&&a(d,u),d}})(),s=o(0);n.InMemoryWebStorage=(function(){function a(){(function(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")})(this,a),this._data={}}return a.prototype.getItem=function(f){return s.Log.debug("InMemoryWebStorage.getItem",f),this._data[f]},a.prototype.setItem=function(f,u){s.Log.debug("InMemoryWebStorage.setItem",f),this._data[f]=u},a.prototype.removeItem=function(f){s.Log.debug("InMemoryWebStorage.removeItem",f),delete this._data[f]},a.prototype.key=function(f){return Object.getOwnPropertyNames(this._data)[f]},i(a,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.UserManager=void 0;var i=(function(){function _(T,F){for(var I=0;I<F.length;I++){var P=F[I];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}return function(T,F,I){return F&&_(T.prototype,F),I&&_(T,I),T}})(),s=o(0),a=o(10),d=o(39),f=o(15),u=o(45),p=o(47),g=o(18),y=o(8),v=o(20),k=o(11),C=o(4);function E(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")}function w(_,T){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||typeof T!="object"&&typeof T!="function"?_:T}n.UserManager=(function(_){function T(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.SilentRenewService,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.SessionMonitor,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v.TokenRevocationClient,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:k.TokenClient,ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:C.JoseUtil;E(this,T),F instanceof d.UserManagerSettings||(F=new d.UserManagerSettings(F));var j=w(this,_.call(this,F));return j._events=new u.UserManagerEvents(F),j._silentRenewService=new I(j),j.settings.automaticSilentRenew&&(s.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),j.startSilentRenew()),j.settings.monitorSession&&(s.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),j._sessionMonitor=new P(j)),j._tokenRevocationClient=new H(j._settings),j._tokenClient=new $(j._settings),j._joseUtil=ee,j}return(function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);I.prototype=Object.create(P&&P.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(I,P):I.__proto__=P)})(T,_),T.prototype.getUser=function(){var I=this;return this._loadUser().then((function(P){return P?(s.Log.info("UserManager.getUser: user loaded"),I._events.load(P,!1),P):(s.Log.info("UserManager.getUser: user not found in storage"),null)}))},T.prototype.removeUser=function(){var I=this;return this.storeUser(null).then((function(){s.Log.info("UserManager.removeUser: user removed from storage"),I._events.unload()}))},T.prototype.signinRedirect=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(I=Object.assign({},I)).request_type="si:r";var P={useReplaceToNavigate:I.useReplaceToNavigate};return this._signinStart(I,this._redirectNavigator,P).then((function(){s.Log.info("UserManager.signinRedirect: successful")}))},T.prototype.signinRedirectCallback=function(I){return this._signinEnd(I||this._redirectNavigator.url).then((function(P){return P.profile&&P.profile.sub?s.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",P.profile.sub):s.Log.info("UserManager.signinRedirectCallback: no sub"),P}))},T.prototype.signinPopup=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(I=Object.assign({},I)).request_type="si:p";var P=I.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return P?(I.redirect_uri=P,I.display="popup",this._signin(I,this._popupNavigator,{startUrl:P,popupWindowFeatures:I.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:I.popupWindowTarget||this.settings.popupWindowTarget}).then((function(H){return H&&(H.profile&&H.profile.sub?s.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",H.profile.sub):s.Log.info("UserManager.signinPopup: no sub")),H}))):(s.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(new Error("No popup_redirect_uri or redirect_uri configured")))},T.prototype.signinPopupCallback=function(I){return this._signinCallback(I,this._popupNavigator).then((function(P){return P&&(P.profile&&P.profile.sub?s.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",P.profile.sub):s.Log.info("UserManager.signinPopupCallback: no sub")),P})).catch((function(P){s.Log.error(P.message)}))},T.prototype.signinSilent=function(){var I=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return P=Object.assign({},P),this._loadUser().then((function(H){return H&&H.refresh_token?(P.refresh_token=H.refresh_token,I._useRefreshToken(P)):(P.request_type="si:s",P.id_token_hint=P.id_token_hint||I.settings.includeIdTokenInSilentRenew&&H&&H.id_token,H&&I._settings.val
vendor: 9,798 bytes, line 215
215idateSubOnSilentRenew&&(s.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",H.profile.sub),P.current_sub=H.profile.sub),I._signinSilentIframe(P))}))},T.prototype._useRefreshToken=function(){var I=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(P).then((function(H){return H?H.access_token?I._loadUser().then((function($){if($){var ee=Promise.resolve();return H.id_token&&(ee=I._validateIdTokenFromTokenRefreshToken($.profile,H.id_token)),ee.then((function(){return s.Log.debug("UserManager._useRefreshToken: refresh token response success"),$.id_token=H.id_token||$.id_token,$.access_token=H.access_token,$.refresh_token=H.refresh_token||$.refresh_token,$.expires_in=H.expires_in,I.storeUser($).then((function(){return I._events.load($),$}))}))}return null})):(s.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(s.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))}))},T.prototype._validateIdTokenFromTokenRefreshToken=function(I,P){var H=this;return this._metadataService.getIssuer().then((function($){return H.settings.getEpochTime().then((function(ee){return H._joseUtil.validateJwtAttributes(P,$,H._settings.client_id,H._settings.clockSkew,ee).then((function(j){return j?j.sub!==I.sub?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(new Error("sub in id_token does not match current sub"))):j.auth_time&&j.auth_time!==I.auth_time?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(new Error("auth_time in id_token does not match original auth_time"))):j.azp&&j.azp!==I.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(new Error("azp in id_token does not match original azp"))):!j.azp&&I.azp?(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(new Error("azp not in id_token, but present in original id_token"))):void 0:(s.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(new Error("Failed to validate id_token")))}))}))}))},T.prototype._signinSilentIframe=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=I.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return P?(I.redirect_uri=P,I.prompt=I.prompt||"none",this._signin(I,this._iframeNavigator,{startUrl:P,silentRequestTimeout:I.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function(H){return H&&(H.profile&&H.profile.sub?s.Log.info("UserManager.signinSilent: successful, signed in sub: ",H.profile.sub):s.Log.info("UserManager.signinSilent: no sub")),H}))):(s.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},T.prototype.signinSilentCallback=function(I){return this._signinCallback(I,this._iframeNavigator).then((function(P){return P&&(P.profile&&P.profile.sub?s.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",P.profile.sub):s.Log.info("UserManager.signinSilentCallback: no sub")),P}))},T.prototype.signinCallback=function(I){var P=this;return this.readSigninResponseState(I).then((function(H){var $=H.state;return H.response,$.request_type==="si:r"?P.signinRedirectCallback(I):$.request_type==="si:p"?P.signinPopupCallback(I):$.request_type==="si:s"?P.signinSilentCallback(I):Promise.reject(new Error("invalid response_type in state"))}))},T.prototype.signoutCallback=function(I,P){var H=this;return this.readSignoutResponseState(I).then((function($){var ee=$.state,j=$.response;return ee?ee.request_type==="so:r"?H.signoutRedirectCallback(I):ee.request_type==="so:p"?H.signoutPopupCallback(I,P):Promise.reject(new Error("invalid response_type in state")):j}))},T.prototype.querySessionStatus=function(){var I=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(P=Object.assign({},P)).request_type="si:s";var H=P.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return H?(P.redirect_uri=H,P.prompt="none",P.response_type=P.response_type||this.settings.query_status_response_type,P.scope=P.scope||"openid",P.skipUserInfo=!0,this._signinStart(P,this._iframeNavigator,{startUrl:H,silentRequestTimeout:P.silentRequestTimeout||this.settings.silentRequestTimeout}).then((function($){return I.processSigninResponse($.url).then((function(ee){if(s.Log.debug("UserManager.querySessionStatus: got signin response"),ee.session_state&&ee.profile.sub)return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",ee.profile.sub),{session_state:ee.session_state,sub:ee.profile.sub,sid:ee.profile.sid};s.Log.info("querySessionStatus successful, user not authenticated")})).catch((function(ee){if(ee.session_state&&I.settings.monitorAnonymousSession&&(ee.message=="login_required"||ee.message=="consent_required"||ee.message=="interaction_required"||ee.message=="account_selection_required"))return s.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:ee.session_state};throw ee}))}))):(s.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(new Error("No silent_redirect_uri configured")))},T.prototype._signin=function(I,P){var H=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._signinStart(I,P,$).then((function(ee){return H._signinEnd(ee.url,I)}))},T.prototype._signinStart=function(I,P){var H=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P.prepare($).then((function(ee){return s.Log.debug("UserManager._signinStart: got navigator window handle"),H.createSigninRequest(I).then((function(j){return s.Log.debug("UserManager._signinStart: got signin request"),$.url=j.url,$.id=j.state.id,ee.navigate($)})).catch((function(j){throw ee.close&&(s.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),ee.close()),j}))}))},T.prototype._signinEnd=function(I){var P=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.processSigninResponse(I).then((function($){s.Log.debug("UserManager._signinEnd: got signin response");var ee=new f.User($);if(H.current_sub){if(H.current_sub!==ee.profile.sub)return s.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",ee.profile.sub),Promise.reject(new Error("login_required"));s.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return P.storeUser(ee).then((function(){return s.Log.debug("UserManager._signinEnd: user stored"),P._events.load(ee),ee}))}))},T.prototype._signinCallback=function(I,P){s.Log.debug("UserManager._signinCallback");var H=this._settings.response_mode==="query"||!this._settings.response_mode&&y.SigninRequest.isCode(this._settings.response_type)?"?":"#";return P.callback(I,void 0,H)},T.prototype.signoutRedirect=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(I=Object.assign({},I)).request_type="so:r";var P=I.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;P&&(I.post_logout_redirect_uri=P);var H={useReplaceToNavigate:I.useReplaceToNavigate};return this._signoutStart(I,this._redirectNavigator,H).then((function(){s.Log.info("UserManager.signoutRedirect: successful")}))},T.prototype.signoutRedirectCallback=function(I){return this._signoutEnd(I||this._redirectNavigator.url).then((function(P){return s.Log.info("UserManager.signoutRedirectCallback: successful"),P}))},T.prototype.signoutPopup=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(I=Object.assign({},I)).request_type="so:p";var P=I.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return I.post_logout_redirect_uri=P,I.display="popup",I.post_logout_redirect_uri&&(I.state=I.state||{}),this._signout(I,this._popupNavigator,{startUrl:P,popupWindowFeatures:I.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:I.popupWindowTarget||this.settings.popupWindowTarget}).then((function(){s.Log.info("UserManager.signoutPopup: successful")}))},T.prototype.signoutPopupCallback=function(I,P){return P===void 0&&typeof I=="boolean"&&(P=I,I=null),this._popupNavigator.callback(I,P,"?").then((function(){s.Log.info("UserManager.signoutPopupCallback: successful")}))},T.prototype._signout=function(I,P){var H=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._signoutStart(I,P,$).then((function(ee){return H._signoutEnd(ee.url)}))},T.prototype._signoutStart=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=this,H=arguments[1],$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return H.prepare($).then((function(ee){return s.Log.debug("UserManager._signoutStart: got navigator window handle"),P._loadUser().then((function(j){return s.Log.debug("UserManager._signoutStart: loaded current user from storage"),(P._settings.revokeAccessTokenOnSignout?P._revokeInternal(j):Promise.resolve()).then((function(){var W=I.id_token_hint||j&&j.id_token;return W&&(s.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),I.id_token_hint=W),P.removeUser().then((function(){return s.Log.debug("UserManager._signoutStart: user removed, creating signout request"),P.createSignoutRequest
215(I).then((function(ie){return s.Log.debug("UserManager._signoutStart: got signout request"),$.url=ie.url,ie.state&&($.id=ie.state.id),ee.navigate($)}))}))}))})).catch((function(j){throw ee.close&&(s.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),ee.close()),j}))}))},T.prototype._signoutEnd=function(I){return this.processSignoutResponse(I).then((function(P){return s.Log.debug("UserManager._signoutEnd: got signout response"),P}))},T.prototype.revokeAccessToken=function(){var I=this;return this._loadUser().then((function(P){return I._revokeInternal(P,!0).then((function(H){if(H)return s.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),P.access_token=null,P.refresh_token=null,P.expires_at=null,P.token_type=null,I.storeUser(P).then((function(){s.Log.debug("UserManager.revokeAccessToken: user stored"),I._events.load(P)}))}))})).then((function(){s.Log.info("UserManager.revokeAccessToken: access token revoked successfully")}))},T.prototype._revokeInternal=function(I,P){var H=this;if(I){var $=I.access_token,ee=I.refresh_token;return this._revokeAccessTokenInternal($,P).then((function(j){return H._revokeRefreshTokenInternal(ee,P).then((function(W){return j||W||s.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),j||W}))}))}return Promise.resolve(!1)},T.prototype._revokeAccessTokenInternal=function(I,P){return!I||I.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(I,P).then((function(){return!0}))},T.prototype._revokeRefreshTokenInternal=function(I,P){return I?this._tokenRevocationClient.revoke(I,P,"refresh_token").then((function(){return!0})):Promise.resolve(!1)},T.prototype.startSilentRenew=function(){this._silentRenewService.start()},T.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},T.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then((function(I){return I?(s.Log.debug("UserManager._loadUser: user storageString loaded"),f.User.fromStorageString(I)):(s.Log.debug("UserManager._loadUser: no user storageString"),null)}))},T.prototype.storeUser=function(I){if(I){s.Log.debug("UserManager.storeUser: storing user");var P=I.toStorageString();return this._userStore.set(this._userStoreKey,P)}return s.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},i(T,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),T})(a.OidcClient)},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.UserManagerSettings=void 0;var i=(function(){function k(C,E){for(var w=0;w<E.length;w++){var _=E[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(C,_.key,_)}}return function(C,E,w){return E&&k(C.prototype,E),w&&k(C,w),C}})(),s=(o(0),o(5)),a=o(40),d=o(41),f=o(43),u=o(6),p=o(1),g=o(8);function y(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}function v(k,C){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!C||typeof C!="object"&&typeof C!="function"?k:C}n.UserManagerSettings=(function(k){function C(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=E.popup_redirect_uri,_=E.popup_post_logout_redirect_uri,T=E.popupWindowFeatures,F=E.popupWindowTarget,I=E.silent_redirect_uri,P=E.silentRequestTimeout,H=E.automaticSilentRenew,$=H!==void 0&&H,ee=E.validateSubOnSilentRenew,j=ee!==void 0&&ee,W=E.includeIdTokenInSilentRenew,ie=W===void 0||W,ce=E.monitorSession,pe=ce===void 0||ce,ae=E.monitorAnonymousSession,me=ae!==void 0&&ae,ve=E.checkSessionInterval,Pe=ve===void 0?2e3:ve,Re=E.stopCheckSessionOnError,Je=Re===void 0||Re,$e=E.query_status_response_type,Me
215=E.revokeAccessTokenOnSignout,rt=Me!==void 0&&Me,st=E.accessTokenExpiringNotificationTime,at=st===void 0?60:st,_e=E.redirectNavigator,De=_e===void 0?new a.RedirectNavigator:_e,Le=E.popupNavigator,Ue=Le===void 0?new d.PopupNavigator:Le,q=E.iframeNavigator,A=q===void 0?new f.IFrameNavigator:q,b=E.userStore,R=b===void 0?new u.WebStorageStateStore({store:p.Global.sessionStorage}):b;y(this,C);var L=v(this,k.call(this,arguments[0]));return L._popup_redirect_uri=w,L._popup_post_logout_redirect_uri=_,L._popupWindowFeatures=T,L._popupWindowTarget=F,L._silent_redirect_uri=I,L._silentRequestTimeout=P,L._automaticSilentRenew=$,L._validateSubOnSilentRenew=j,L._includeIdTokenInSilentRenew=ie,L._accessTokenExpiringNotificationTime=at,L._monitorSession=pe,L._monitorAnonymousSession=me,L._checkSessionInterval=Pe,L._stopCheckSessionOnError=Je,$e?L._query_status_response_type=$e:arguments[0]&&arguments[0].response_type?L._query_status_response_type=g.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":L._query_status_response_type="id_token",L._revokeAccessTokenOnSignout=rt,L._redirectNavigator=De,L._popupNavigator=Ue,L._iframeNavigator=A,L._userStore=R,L}return(function(w,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);w.prototype=Object.create(_&&_.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(w,_):w.__proto__=_)})(C,k),i(C,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._validateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),C})(s.OidcClientSettings)},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.RedirectNavigator=void 0;var i=(function(){function a(d,f){for(var u=0;u<f.length;u++){var p=f[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,f,u){return f&&a(d.prototype,f),u&&a(d,u),d}})(),s=o(0);n.RedirectNavigator=(function(){function a(){(function(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")})(this,a)}return a.prototype.prepare=function(){return Promise.resolve(this)},a.prototype.navigate=function(f){return f&&f.url?(f.useReplaceToNavigate?window.location.replace(f.url):window.location=f.url,Promise.resolve()):(s.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(new Error("No url provided")))},i(a,[{key:"url",get:function(){return window.location.href}}]),a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.PopupNavigator=void 0;var i=o(0),s=o(42);n.PopupNavigator=(function(){function a(){(function(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")})(this,a)}return a.prototype.prepare=function(f){var u=new s.PopupWindow(f);return Promise.resolve(u)},a.prototype.callback=function(f,u,p){i.Log.debug("PopupNavigator.callback");try{return s.PopupWindow.notifyOpener(f,u,p),Promise.resolve()}catch(g){return Promise.reject(g)}},a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.PopupWindow=void 0;var i=(function(){function d(f,u){for(var p=0;p<u.length;p++){var g=u[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}}return function(f,u,p){return u&&d(f.prototype,u),p&&d(f,p),f}})(),s=o(0),a=o(3);n.PopupWindow=(function(){function d(f){var u=this;(function(v,k){if(!(v instanceof k))throw new TypeError("Cannot call a class as a function")})(this,d),this._promise=new Promise((function(y,v){u._resolve=y,u._reject=v}));var p=f.popupWindowTarget||"_blank",g=f.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",p,g),this._popup&&(s.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return d.prototype.navigate=function(u){return this._popup?u&&u.url?(s.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=u.id,this._id&&(window["popupCallback_"+u.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=u.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},d.prototype._success=function(u){s.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(u)},d.prototype._error=function(u){s.Log.error("PopupWindow.error: ",u),this._cleanup(),this._reject(new Error(u))},d.prototype.close=function(){this._cleanup(!1)},d.prototype._cleanup=function(u){s.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!u&&this._popup.close(),this._popup=null},d.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},d.prototype._callback=function(u,p){this._cleanup(p),u?(s.Log.debug("PopupWindow.callback success"),this._success({url:u})):(s.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},d.notifyOpener=function(u,p,g){if(window.opener){if(u=u||window.location.href){var y=a.UrlUtility.parseUrlFragment(u,g);if(y.state){var v="popupCallback_"+y.state,k=window.opener[v];k?(s.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),k(u,p)):s.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else s.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else s.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},i(d,[{key:"promise",get:function(){return this._promise}}]),d})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.IFrameNavigator=void 0;var i=o(0),s=o(44);n.IFrameNavigator=(function(){function a(){(function(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")})(this,a)}return a.prototype.prepare=function(f){var u=new s.IFrameWindow(f);return Promise.resolve(u)},a.prototype.callback=function(f){i.Log.debug("IFrameNavigator.callback");try{return s.IFrameWindow.notifyParent(f),Promise.resolve()}catch(u){return Promise.reject(u)}},a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.IFrameWindow=void 0;var i=(function(){function a(d,f){for(var u=0;u<f.length;u++){var p=f[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}return function(d,f,u){return f&&a(d.prototype,f),u&&a(d,u),d}})(),s=o(0);n.IFrameWindow=(function(){function a(d){var f=this;(function(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")})(this,a),this._promise=new Promise((function(u,p){f._resolve=u,f._reject=p})),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return a.prototype.navigate=function(f){if(f&&f.url){var u=f.silentRequestTimeout||1e4;s.Log.debug("IFrameWindow.navigate: Using timeout of:",u),this._timer=window.setTimeout(this._timeout.bind(this),u),this._frame.src=f.url}else this._error("No url provided");return this.promise},a.prototype._success=function(f){this._cleanup(),s.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(f)},a.prototype._error=function(f){this._cleanup(),s.Log.error(f),this._reject(new Error(f))},a.prototype.close=function(){this._cleanup()},a.prototype._cleanup=function(){this._frame&&(s.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},a.prototype._timeout=function(){s.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},a.prototype._message=function(f){if(s.Log.debug("IFrameWindow.message"),this._timer&&f.origin===this._origin&&f.source===this._frame.contentWindow&&typeof f.data=="str
215ing"&&(f.data.startsWith("http://")||f.data.startsWith("https://"))){var u=f.data;u?this._success({url:u}):this._error("Invalid response from frame")}},a.notifyParent=function(f){s.Log.debug("IFrameWindow.notifyParent"),(f=f||window.location.href)&&(s.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(f,location.protocol+"//"+location.host))},i(a,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),a})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.UserManagerEvents=void 0;var i=o(0),s=o(16),a=o(17);n.UserManagerEvents=(function(d){function f(u){(function(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")})(this,f);var p=(function(y,v){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?y:v})(this,d.call(this,u));return p._userLoaded=new a.Event("User loaded"),p._userUnloaded=new a.Event("User unloaded"),p._silentRenewError=ne
215w a.Event("Silent renew error"),p._userSignedIn=new a.Event("User signed in"),p._userSignedOut=new a.Event("User signed out"),p._userSessionChanged=new a.Event("User session changed"),p}return(function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)})(f,d),f.prototype.load=function(p){var g=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];i.Log.debug("UserManagerEvents.load"),d.prototype.load.call(this,p),g&&this._userLoaded.raise(p)},f.prototype.unload=function(){i.Log.debug("UserManagerEvents.unload"),d.prototype.unload.call(this),this._userUnloaded.raise()},f.prototype.addUserLoaded=function(p){this._userLoaded.addHandler(p)},f.prototype.removeUserLoaded=function(p){this._userLoaded.removeHandler(p)},f.prototype.addUserUnloaded=function(p){this._userUnloaded.addHandler(p)},f.prototype.removeUserUnloaded=function(p){this._userUnloaded.removeHandler(p)},f.prototype.addSilentRenewError=function(p){this._silentRenewError.addHandler(p)},f.prototype.removeSilentRenewError=function(p){this._silentRenewError.removeHandler(p)},f.prototype._raiseSilentRenewError=function(p){i.Log.debug("UserManagerEvents._raiseSilentRenewError",p.message),this._silentRenewError.raise(p)},f.prototype.addUserSignedIn=function(p){this._userSignedIn.addHandler(p)},f.prototype.removeUserSignedIn=function(p){this._userSignedIn.removeHandler(p)},f.prototype._raiseUserSignedIn=function(){i.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},f.prototype.addUserSignedOut=function(p){this._userSignedOut.addHandler(p)},f.prototype.removeUserSignedOut=function(p){this._userSignedOut.removeHandler(p)},f.prototype._raiseUserSignedOut=function(){i.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},f.prototype.addUserSessionChanged=function(p){this._userSessionChanged.addHandler(p)},f.prototype.removeUserSessionChanged=function(p){this._userSessionChanged.removeHandler(p)},f.prototype._raiseUserSessionChanged=function(){i.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},f})(s.AccessTokenEvents)},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.Timer=void 0;var i=(function(){function p(g,y){for(var v=0;v<y.length;v++){var k=y[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,k.key,k)}}return function(g,y,v){return y&&p(g.prototype,y),v&&p(g,v),g}})(),s=o(0),a=o(1),d=o(17);function f(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?p:g}n.Timer=(function(p){function g(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.Global.timer,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;f(this,g);var C=u(this,p.call(this,y));return C._timer=v,C._nowFunc=k||function(){return Date.now()/1e3},C}return(function(v,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);v.prototype=Object.create(k&&k.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(v,k):v.__proto__=k)})(g,p),g.prototype.init=function(v){v<=0&&(v=1),v=parseInt(v);var k=this.now+v;if(this.expiration===k&&this._timerHandle)s.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),s.Log.debug("Timer.init timer "+this._name+" for duration:",v),this._expiration=k;var C=5;v<C&&(C=v),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*C)}},g.prototype.cancel=function(){this._timerHandle&&(s.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},g.prototype._callback=function(){var v=this._expiration-this.now;s.Log.debug("Timer.callback; "+this._name+" timer expires in:",v),this._expiration<=this.now&&(this.cancel(),p.prototype.raise.call(this))}
215,i(g,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),g})(d.Event)},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.SilentRenewService=void 0;var i=o(0);n.SilentRenewService=(function(){function s(a){(function(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")})(this,s),this._userManager=a}return s.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then((function(d){})).catch((function(d){i.Log.error("SilentRenewService.start: Error from getUser:",d.message)})))},s.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},s.prototype._tokenExpiring=function(){var d=this;this._userManager.signinSilent().then((function(f){i.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")}),(function(f){i.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",f.message),d._userManager.events._raiseSilentRenewError(f)}))},s})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.CordovaPopupNavigator=void 0;var i=o(21);n.CordovaPopupNavigator=(function(){function s(){(function(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")})(this,s)}return s.prototype.prepare=function(d){var f=new i.CordovaPopupWindow(d);return Promise.resolve(f)},s})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.CordovaIFrameNavigator=void 0;var i=o(21);n.CordovaIFrameNavigator=(function(){function s(){(function(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")})(this,s)}return s.prototype.prepare=function(d){d.popupWindowFeatures="hidden=yes";var f=new i.CordovaPopupWindow(d);return Promise.resolve(f)},s})()},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.Version="1.11.5"}])}))})(Xs)),Xs.exports}var d4=f4();const Ci=c4(d4);class tp{constructor(){this.name=null,this.email=null,this.birthdate=null,this.picture=null,this.sid=null,this.username=null,this.surname=null,this.gender=null,this.accessToken=null}fromData(t){this.name=t.given_name,this.surname=t.family_name,this.email=t.email,this.birthdate=t.birthdate,this.picture=t.picture,this.sid=t.sid,this.username=t.name,this.gender=t.gender,this.accessToken=t.access_token}}function p4(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(o){o(r)}),(n=e.get("*"))&&n.slice().map(function(o){o(t,r)})}}}const $s=p4(),Rc=gs("global-builder",{state:()=>({isLoading:!1,isRedirectingToLogin:!1}),actions:{SET_IS_REDIRECTING_TO_LOGIN(e){},async globalReq(e){}},getters:{}}),ol=gs("auth-builder",{state:()=>({isLoading:!1,user:null,userManager:null,userToken:null,goToRegister:!1,isLogedInSSR:!1,userSubId:null,userTonosAccess:[]}),actions:{async actionEdgeRequestWithToken(e){const r=en().public.baseUrl;try{return await $fetch(`${r}/token`,{method:"GET",headers:{Authorization:`Bearer ${e}`}})}catch(n){console.error(n)}},setUserManager(){const e=ao();if(!e.providersData)throw"Login is not implemented or auth-provider issues";this.checkUserInfo(e.providersData);const t=e.providersData.issuer,r=`${location.origin}/callback`,n=location.origin,o=e.providersData.clientId,a={authority:t,client_id:o,redirect_uri:r,silent_redirect_uri:r,response_type:"code",scope:"vpapps_api openid profile address email offline_access",post_logout_redirect_uri:n,userStore:new Ci.WebStorageStateStore({store:window.localStorage}),monitorSession:!1},{UserManager:d}=Ci;this.userManager=new d(a),Ci.Log.logger=console,Ci.Log.level=Ci.Log.INFO,this.userManager.events.addAccessTokenExpiring(async()=>{console.log("AccessToken expiring:");const f=await this.userManager.signinSilent();console.log("Event signinSilent AFTER expiring...",f),await this.actionEdgeRequestWithToken(f.access_token),this.setTokenOnState(f.access_token),this.setTokenOnCookie(f.access_token)}),this.userManager.events.addAccessTokenExpired(async()=>{try{this.unsetUserOnCookie(),console.log("AccessToken expired:"),console.log("AccessToken signinSilent.....after expired");const f=await this.userManager.signinSilent();await this.actionEdgeRequestWithToken(f.access_token),this.setTokenOnState(f.access_token),this.setTokenOnCookie(f.access_token),this.getTonosAccess(),window.location.reload()}catch(f){console.error(f),this.callLogOut()}}),this.userManager.events.addSilentRenewError(()=>{console.log("events.addSilentRenewError(")}),this.userManager.events.addUserLoaded(f=>{console.log("events.addUserLoaded(",f),this.setUserOnCookie(f)}),this.userManager.events.addUserUnloaded(()=>{this.unsetUserOnCookie()}),this.userManager.events.addUserSignedOut(()=>{this.unsetUserOnCookie()})},setTokenOnCookie(e){const t=ct(),{xVpAppsDomain:r}=ot(t),n=Ic(r.value),o=pk("mAccessToken",{maxAge:3600*24*3,domain:n});o.value=e},setTokenOnState(e){ct().actionSetToken(e)},callLogin(){const e=`${location.pathname}${location.search}`;Qd("urlBeforeLoginRedirect",e),rr().push("/auth/porta")},callLoginForTonos(){const e=`${location.pathname}${location.search}`;this.goToRegister=!0;const t=window.scrollY;if(localStorage.setItem("scrollPositionOfTonosOffer",t),Qd("urlBeforeLoginRedirect",e),rr().push("/auth/porta"),Rc(),!this.userManager)throw"userManager is not set";Ln()},callLoginAfterRedirect(){if(Rc(),!this.userManager)throw"userManager is not set";if(Ln(),this.goToRegister){const e={extraQueryParams:{action:"Register"}};this.userManager.signinRedirect(e)}else this.userManager.signinRedirect()}
215,async callLogOut(){if(!this.userManager)throw"userManager is not set";localStorage.removeItem("user-logged-out"),typeof __VPAPPS__<"u"&&(__VPAPPS__.user={id:1,uid:null,loginStatus:"anonymous",premiumStatus:"free",intrenal:"ip",token:null}),s4("tonosAccessToken"),new mo().removeItem("mAccessToken"),console.log("callLogOut",this.userManager);try{this.unsetUserOnCookie(),await this.userManager.signoutRedirect()}catch(t){console.error(t)}},async callSigninRedirectCallback(){new mo().removeItem("user-logged-out");try{const t=await this.userManager.signinCallback();if(!t)return;const r=new tp;r.fromData(t.profile),this.user=r;const n=await this.userManager.getUser();return await this.actionEdgeRequestWithToken(t.access_token),t}catch(t){Fg("/"),console.error(t)}},async getUser(){if(!this.userManager)throw"userManager is not set";try{const e=await this.userManager.getUser();if(!e){$s.emit("userNotFound",null);return}if($s.emit("userFetched",e),new mo().getItem("user-logged-out"))return this.userManager.removeUser();this.setTokenOnState(e.access_token),this.setTokenOnCookie(e.access_token);const r=new tp;r.fromData(e.profile),this.user=r,this.userToken=e.access_token}catch(e){console.error(e),this.callLogOut(),$s.emit("userFetchError",e)}},async renewToken(){try{const e=await this.userManager.signinSilent();console.log("renewToken...",e)}catch(e){console.error("renewToken",e)}},async actionRequireLogin(){if(!this.user)return this.callLogin(),!0},checkUserInfo(e){if(i4(`oidc.user:${e.issuer}:${e.clientId}`))return;const t={},r=new mo;Bl.forEach(n=>{let o=r.getItem(`${jl}${n}${Ml}`);n==="profile"&&(o=JSON.parse(o)),n==="expires_at"&&(o=Number(o)),o&&Object.assign(t,{[n]:o})}),Object.keys(t).length&&o4(`oidc.user:${e.issuer}:${e.clientId}`,JSON.stringify(t))},setUserOnCookie(e){const t=new mo;t.removeItem("user-logged-out"),Bl.forEach(r=>{t.setItem(`${jl}${r}${Ml}`,typeof e[r]=="object"?JSON.stringify(e[r]):e[r])})},async getTonosAccess(){var t,r;let e;if(this.userToken){try{e=JSON.parse(localStorage.getItem("CPapToken"))}catch{e=void 0}try{const n=await fetch(`https://client-api.tonos.gjirafa.tech/init/access?contentId=${window.tonos_integration_content_id}`,{headers:{Authorization:`Bearer ${this.userToken}`,Appid:window.tonos_integration_application_id,...e?{CPapToken:e.value}:{}}});if(!n.ok)throw new Error(`Network response was not ok: ${n.statusText}`);const o=await n.json();this.userTonosAccess=((r=(t=o==null?void 0:o.data)==null?void 0:t.productAccessInfo)==null?void 0:r.map(s=>s.productId))||[];const i=localStorage.getItem("subscriptionProduct");if(i){let s;try{s=JSON.parse(i)}catch{localStorage.removeItem("subscriptionProduct")}s&&(Date.now()-s.timestamp>6e5||this.userTonosAccess.includes(s.productId)?localStorage.removeItem("subscriptionProduct"):this.userTonosAccess.push(s.productId))}$s.emit("userTonosAccess",this.userTonosAccess)}catch(n){console.error("There was a problem with the fetch operation:",n),this.userTonosAccess=[]}}},unsetUserOnCookie(){const e=new mo;e.setItem("user-logged-out",!0),Bl.forEach(t=>{e.removeItem(`${jl}${t}${Ml}`)})}},getters:{getCurrentUserAsAuthor:e=>{const t=new os;return t.fromUserToAuthor(e.user),t},isUserLoggedIn:e=>e.isLogedInSSR}});class h4{constructor(){this.result=new g4}}class g4{constructor(){this.layout=[]}}const ao=gs("page-builder",{state:()=>({baseUrl:null,baseUrlServer:null,isLoading:!0,layoutName:null,header:null,footer:null,slugData:{},options:{headers:{"X-Project-Id":"bJZEnw5N5BA","X-Project-Domain":"http://localhost:3000"}},headerss:{},windowWidth:null,content:null,layoutData:null,providersData:null,mediaEngagements:{likesCount:0,dislikesCount:0,favoritesCount:0,subscribesCount:0,watchLaterCount:0,hasLiked:!1,hasDisliked:!1,hasFavorite:!1,hasSubscribed:!1,hasWatchLater:!1},videoDetails:{},allRows:null,deviceType:null,organizationId:null,projectDetails:new Map,errorCode:null,videoConfig:{},serverWaitTime:4e3,global:{language:null},pageType:"homepage",media:{},content:{},queries:null,inputs:null,page:null}),actions:{SET_BASE_URL(e){this.baseUrl=e},SET_BASE_URL_SERVER(e){this.baseUrlServer=e},SET_CONFIG(e){this.SET_BASE_URL(e.public.baseUrl),this.SET_BASE_URL_SERVER(e.public.baseUrlServer)},UPDATE_WINDOW_WIDTH(e){this.windowWidth=e},UPDATE_SLUG_DATA(e){this.slugData=e},UPDATE_MEDIA_ID_BY_COMPOENENT(e){this.media={id:e}},SET_MEDIA_ON_STATE(e){this.media=e},SET_QUERIES_ON_STATE(e){this.queries=e},SET_INPUTS_ON_STATE(e){this.inputs=e},SET_CONTENT_ON_STATE(e){this.content=e},SET_PAGE_ON_STATE(e){this.page=e},SET_CUSTOM_SCRIPTS_ON_STATE(e){this.customScripts=e},UPDATE_PAGE_TYPE(e){this.pageType=e},setDeviceType(e,t,r){const n=ct(),{userAgent:o}=ot(n);let i="Desktop";e?i="mobile":r?i="desktop":t&&(i="tablet"),this.deviceType=i},async actionGetAuthProviders(){const e=this.baseUrl,t=ct(),{getRequestHeaders:r}=ot(t);try{const n=await ik(`${e}/project-auth-providers`,{headers:r.value},"$r6Xl_SQTIJ");this.providersData=n.data.value.result}catch(n){console.error(n)}},async actionGetPageInit(e){var u,p;const t=e.replace("/embed",""),r=Ln();let n="";if(r.query){const g=new URLSearchParams;["preview","version","page-id","tab"].forEach(y=>{r.query[y]&&g.append(y,r.query[y])}),g.toString()&&(n=`&${g.toString()}`)}const o=this.baseUrlServer,i=ct(),{getRequestHeaders:s,xVpAppsDomain:a,xVpAppsProjectId:d}=ot(i);let f=t;t==="/callback"&&(f="/"),console.error("------------------------->>init request url",`${o}/init${`?url=${a.value+f}${n}`}`);try{const g=await $fetch(`${o}/init${`?url=${a.value+f}${n}`}`,{headers:{...s.value,"x-device-type":this.deviceType}});if(!g)throw"page init issues";const y=g.result,{header:v,footer:k,page:C,authProviders:E,projects:w}=y,_=ct(),{config:T,isCLH:F}=ot(_),{customScripts:I}=C??{},P=new Bd(F.value);P.fromData(I);const{getProjectId:H}=ot(_),$=P.getServerSideScripts((u=T.value)==null?void 0:u.public.analyticsUrl);E&&(this.providersData=E);const ee=new Xd(this.deviceType);if(C?(ee.fromData(C),C.content&&this.UPDATE_PAGE_TYPE("content"),C.media&&this.UPDATE_PAGE_TYPE("media")):(ee.fromNoData(),this.slugData.errorMessage="Page not Found",this.UPDATE_PAGE_TYPE("error")),w){const ce=w.reduce((ae,me)=>(ae.set(me.id,me),ae),new Map);this.projectDetails=ce;const pe=((p=this.projectDetails.get(d.value))==null?void 0:p.language)??"en";this.global.language=pe}const j=ee.getRootStyle(),W=new OA(this.deviceType);try{W.fromDataV2(v)}catch(ce){console.error("Trying to set header error: ",ce)}const ie=new wA(this.deviceType);try{ie.fromData(k.layout)}catch(ce){console.error("Set Footer error: ",ce)}
215return{scriptsSSR:$,header:W,footer:ie,rootStyle:j,page:C}}catch(g){throw g}},async actionGetLayoutData(e,t=!1,r=null){this.baseUrl;const n=ct(),{getRequestHeaders:o,xVpAppsDomain:i}=ot(n);let s=new Xd(this.deviceType),a,d,f,u,p,g;this.errorCode=null;try{const y=Ln();let v="";if(y.query){const P=new URLSearchParams;["preview","version","page-id","tab"].forEach(H=>{y.query[H]&&P.append(H,y.query[H])}),P.toString()&&(v=`?${P.toString()}`)}let k=null;if(e.includes("/results"))k={result:QA};else if(t)k={result:r};else{let P="";P=e==="/"?"/homepage":e,P=n4(P);try{k=await $fetch(`/api/page${P}${v}`,{headers:o.value})}catch{k=new h4,console.error(k)}}const{result:C}=k;this.setPageData(C);const{seo:E}=C??{},{customScripts:w}=C??{},_=ct(),{isCLH:T}=ot(_),F=new Bd(T.value);F.fromData(w),a=F.getCustomScriptsToLoadEachPage(),d=F.getCustomScriptsToLoadOnce();const I=new t4;if(I.fromData(C),p=I.getSeoData(),f=this.getAnalyticsData(C,e),C){this.slugData.errorMessage=null;const{media:P,content:H}=C;u=P,H&&(g=H.customProperties),P?this.UPDATE_PAGE_TYPE("media"):this.UPDATE_PAGE_TYPE(H?"content":"homepage"),s.fromData(C)}else this.slugData.errorMessage="Page Not Found",this.UPDATE_PAGE_TYPE("error");return{rows:s.layout[this.deviceType].rows||[],style:s.layout[this.deviceType].style,customScriptsLoadEachPage:a,customScriptsLoadOnce:d,analitycsData:f,media:u,seo:p,customProperties:g||null,canonicalSlug:(C==null?void 0:C.canonicalSlug)??null}}catch(y){console.error("API errorm",y),console.error("API error status code",y.statusCode),this.errorCode=404,(y==null?void 0:y.statusCode)===404&&(this.errorCode=404,this.UPDATE_PAGE_TYPE("error"))}finally{}return s},async actionGetMediaData(e){let t=this.media.id;const r=this.baseUrl,n=ct(),{getRequestHeaders:o}=ot(n);let i=null;try{return e&&e.model?i=e.model:i=(await $fetch(`${r}/medias/${`${t}`}`,{headers:o.value})).result,i}catch(s){console.error(s)}},async actionGetUserEngagement(){const e=this.media.id,t=this.baseUrl,r=ct(),{getRequestHeaders:n}=ot(r);try{const o=await $fetch(`${t}/medias/${`${e}`}/engagement-counts`,{headers:n.value});return this.mediaEngagements=o.result,o.result}catch(o){console.error(o)}},async actionGetMediaViewsCount(){const e=this.media.id,t=this.baseUrl,r=ct(),{getRequestHeaders:n}=ot(r);try{return(await $fetch(`${t}/medias/${`${e}`}/views`,{headers:n.value})).result}catch(o){console.error(o)}},async postGetWatchTimeByMediaIds(e){const t=this.baseUrl,r={mediaIds:e},n=ct(),{getRequestHeaders:o}=ot(n);try{return(await $fetch(`${t}/media/user/watchtimes`,{method:"POST",headers:o.value,body:r})).result||[]}catch(i){console.error(i)}},async actionPostUserEngagement(e,t=1,r=null){let n=null;r?n=r:n=this.media.id;const o=t,i={engagementTypeId:e},s=this.baseUrl,a=ct(),{getRequestHeaders:d}=ot(a);try{return(await $fetch(`${s}/entity/${n}/entity-type/${o}/engagements`,{method:"POST",headers:d.value,body:i})).result}catch(f){console.error(f)}},async actionDeleteUserEngagement(e,t=1,r=null){let n=null;r?n=r:n=this.media.id;const o=t,i=this.baseUrl,s=ct(),{getRequestHeaders:a}=ot(s);try{return(await $fetch(`${i}/entity/${n}/entity-type/${o}/engagements/${e}`,{method:"DELETE",headers:a.value})).result}catch(d){console.error(d)}},async actionGetMediaRelated(e){var s;const t=new URLSearchParams(e),r=(s=this.media)==null?void 0:s.id,n=this.baseUrl,o=ct(),{getRequestHeaders:i}=ot(o);try{return(await $fetch(`${n}/medias/${`${r}/related?${t}`}`,{headers:i.value})).result}catch(a){console.error(a)}},async actionGetMediaNewest(e=[]){const t=e.join(","),r=this.baseUrl,n=ct(),{getRequestHeaders:o}=ot(n);try{return(await $fetch(`${r}/newest-media?projects=${t}`,{headers:o.value})).result}catch(i){console.error(i)}},async actionGetWatchVideos(e){const t=this.baseUrl,r=new URLSearchParams(e),n=ct(),{getRequestHeaders:o}=ot(n);try{return await $fetch(`${t}/media/user/continue-watching?${r}`,{headers:o.value})}catch{}},async actionGetTonosProductList(){const e=this.baseUrl,t=ct(),{getRequestHeaders:r}=ot(t);try{return await $fetch(`${e}/user/tonos/access?contentId=${window.tonos_integration_content_id}`,{headers:{...r.value,appId:window.tonos_integration_application_id}})}catch{}},async actionGetMediaComments(e){var s;const t=new URLSearchParams(e),r=(s=this.media)==null?void 0:s.id,n=this.baseUrl,o=ct(),{getRequestHeaders:i}=ot(o);try{return(await $fetch(`${n}/v2/medias/${`${r}/comments?${t}`}`,{headers:i.value})).result}catch(a){console.error(a)}}
215,async actionGetCommentReplies(e){const t=this.media.id,r=this.baseUrl,n=ct(),{getRequestHeaders:o}=ot(n);try{return(await $fetch(`${r}/v2/medias/${t}/comments/${e}/replies`,{headers:o.value})).result.comments.items}catch(i){console.error(i)}},async actionPostComment(e,t=null){const r=this.media.id,n={text:e,parentId:t},o=this.baseUrl,i=ct(),{getRequestHeaders:s}=ot(i);try{return(await $fetch(`${o}/medias/${r}/comments`,{method:"POST",headers:s.value,body:n})).result}catch(a){console.error(a)}},async actionDeleteComment(e){const t=this.media.id,r=this.baseUrl,n=ct(),{getRequestHeaders:o}=ot(n);try{return(await $fetch(`${r}/medias/${t}/comments/${e}`,{method:"DELETE",headers:o.value})).result}catch(i){console.error(i)}},async actionSearchMedia(e,t){const r=this.baseUrl,n=ct(),{getRequestHeaders:o}=ot(n);try{return(await $fetch(`${r}/search?q=${t}`,{headers:o.value})).response}catch(i){console.error(i)}},async actionSearchMediaPage(e,t){const r=e.page,n=e.groupId,o=this.baseUrl,i=ct(),{getRequestHeaders:s}=ot(i);let a=`${o}/search/page?q=${t}`;n!=null&&r!=null&&(a=`${o}/search/page?q=${t}&groupId=${n}&page=${r}`);try{return(await $fetch(a,{headers:s.value})).response}catch(d){console.error(d)}},async actionGetNotifications(e){new URLSearchParams(e);const t=this.baseUrl,r=ct(),{getRequestHeaders:n}=ot(r);try{return(await $fetch(`${t}/notifications?skip=0`,{headers:n.value})).result}catch(o){console.error(o)}},async actionPutReadNotification(e){const t=this.baseUrl,r=ct(),{getRequestHeaders:n}=ot(r);try{return(await $fetch(`${t}/notifications/read/${e}`,{method:"POST",body:{notificationId:e},headers:n.value})).result}catch(o){console.error(o)}},async actionGetQueryDataInitClient(e,t,r=null,n=!1,o=null){let i=null;try{i=await this.actionGetQueryDataFromInit(e,t,r,n,o)}catch(s){console.error(s)}if(!i)try{i=await this.actionGetQueryDataFromClient(e,t,r,n,o)}catch(s){console.error(s)}return{response:i}},async actionGetQueryDataFromInit(e,t,r=null,n=!1){if(n)return null;const o=r||this.inputs.contentId;if(t&&(!(t!=null&&t.skip)||t.skip===0)){const i=this.queries.find(s=>s.id===e&&s.contentId==o&&(!(t!=null&&t.sort)||t.sort===s.sort));if(i)return i}},async actionGetQueryDataFromClient(e,t,r=null,n=!1,o=!1){var y;let i=null;typeof biskota<"u"&&biskota&&(i=biskota.getBiskoId());let s=null;r?s=r:s=this.inputs.contentId;const a={pageContentId:(y=this.content)==null?void 0:y.id},d=this.page.id,f=new URLSearchParams({...s?{contentId:s}:{},...t,...a.pageContentId?a:{},pageId:d,...i?{biskoId:i}:{},...n?{aiHub:n}:{},...o?{row:o}:{}}),u=ct(),{getRequestHeaders:p}=ot(u);let g=this.baseUrl;if(!e)throw"No queryId provided.";try{const v=await $fetch(`${g}/query/${`${e}?${f}`}`,{headers:p.value});if(v.result)return v.result}catch(v){console.error(v)}},async actionGetCheckoutDetails(e){const t=this.baseUrl,r=ct(),{getRequestHeaders:n}=ot(r);try{return(await $fetch(`${t}/checkout/${e}`,{headers:n.value})).result}catch(o){console.error(o)}},async actionPutCheckoutDetails(e){const t={checkoutDetails:{...e}},r=this.baseUrl,n=ct(),{getRequestHeaders:o}=ot(n);try{return(await $fetch(`${r}/checkout`,{method:"POST",headers:o.value,body:t})).result}catch(i){console.error(i)}},setPageData(e){const{queries:t}=e??[];this.SET_QUERIES_ON_STATE(t);const{inputs:r}=e??{};this.SET_INPUTS_ON_STATE(r);//!!TODO: manage seo data per page
216const{seo:n}=e??{},{media:o}=e??{};this.SET_MEDIA_ON_STATE(o);const{content:i}=e??{};this.SET_CONTENT_ON_STATE(i);const{id:s}=e??{};this.SET_PAGE_ON_STATE({id:s})},getSeoData(e){},getAnalyticsData(e,t){var v;const r=this.projectDetails,{user:n,media:o,content:i,analyticsProperties:s}=e??{},a=ct(),d=ol(),{getProjectId:f,token:u}=ot(a),{userToken:p}=ot(d),g=new gA;let y=null;if(r&&r.get(f.value)&&(y=r.get(f.value).organizationId),g.page.setPageProperties(e),i)g.setContentId(i.id);else if(o&&(g.setMediaId(o.id),o.model)){const k=o.model.title,C=o.model.length,E=o.model.typeId,w=o.model.mediaId,_=o.model.tags,T=o.model.lockedAfter;g.setParentDataToMediaTags(o.model.parents),g.setMediaData({title:k,length:C,type:E,id:w,tags:_,lockedAfter:T})}return n&&g.setUid(n),g.setUserToken(u.value||p.value),g.setExtraAnalyticsProperties(s),g.setIsEmbed(t),g.setProjectId(f.value),g.setOrganizationId(y),g.setLoginStatus(p.value?"loggedin":"anonymous"),g.setUserId((v=n==null?void 0:n.value)==null?void 0:v.sid),g.setDeviceType(this.deviceType),g}},getters:{getErrorMessage(e){return e.slugData.errorMessage},getProjectDetails(e){return e.projectDetails},getCurrentProjectDetails(e){const t=ct(),{getProjectId:r}=ot(t);return e.projectDetails.get(r.value)},getPalette(e){var i;const t=ct(),{config:r,getProjectId:n}=ot(t),o=r.value.public.cdnBaseUrl;return(i=e.getCurrentProjectDetails)!=null&&i.useSystemPalette?!1:`${o}/palettes/${n.value}/palette.css`},getFontPack(e){var i;const t=ct(),{config:r,getProjectId:n}=ot(t),o=r.value.public.cdnBaseUrl;if((i=e.getCurrentProjectDetails)!=null&&i.useCustomFont)return`${o}/fonts/${n.value}/fonts.css`},getIconPack(e){var i;const t=ct(),{config:r,getProjectId:n}=ot(t),o=r.value.public.cdnBaseUrl;return!e.getCurrentProjectDetails||(i=e.getCurrentProjectDetails)!=null&&i.useSystemIconPack?`${o}/fonts/default/vpapps-font.css`:`${o}/fonts/${n.value}/vpapps-font.css`},getProjectFavIcon(e){const t=ct(),{getProjectId:r}=ot(t);if(!e.projectDetails)return;const n=e.projectDetails.get(r==null?void 0:r.value);if(n)return n.favIcon||"https://vpapps.gjirafa.dev/favicon.ico"},getLayoutMediaData(e){var t;return(t=e.media)==null?void 0:t.model},getVideoStructuredData(e){var t;return{"@context":"https://schema.org","@type":"VideoObject",...(t=e.layoutData)==null?void 0:t.structuredData}}}});let m4=class{constructor(){this.img=null,this.source="/",this.text=null,this.date=null,this.privacyStatusId=3,this.imageStyle={aspectRatio:"16 / 9",borderRadius:"4px",border:"solid 1px #b3b3b3"}}fromSearch(t){if(t.imageAssets&&t.imageAssets.length>0&&(this.img=t.imageAssets[0].url),t.cardImages&&(this.img=t.cardImages.ar21_29,this.imageStyle.aspectRatio="21 / 29"),t.thumbnail&&(this.img=t.thumbnail,this.imageStyle.minWidth="100px"),this.text=t.title,t.url&&(this.source=ei(t.url)),t.startDate)try{this.date=r4(t.startDate)}catch(r){console.error(r)}this.privacyStatusId=t.privacyStatusId}};class Hu{constructor(){this.fontSize="14px",this.fontWeight="500",this.fontFamily="Avant",this.fontStyle="Normal",this.color="#333",this.textAlign="left",this.colorOnHover="",this.colorOnActive=""}fromData(t){t.size&&(this.fontSize=`${t.size}px`);const r=new Ge;r.checkColor(t.colorOnHover),this.colorOnHover=r.color;const n=new Ge;n.checkColor(t.colorOnActive),this.colorOnActive=n.color,this.fontWeight=t.weight,this.fontFamily=t.family,this.fontStyle=t.style;const o=new Ge;o.checkColor(t.color),this.color=o.color,t.textAlignment?this.textAlign=t.textAlignment:delete this.textAlign}}class y4{constructor(){this.padding=null,this.margin=null,this.border=null,this.borderRadius=null,this.fontStyle=null,this.color=null,this.backgroundColor=null,this.placeholderColor=" "}fromData({padding:t=null,margin:r=null,borderProperties:n=null,fontProperties:o=null,color:i=null,backgroundColor:s=null,placeholderColor:a=""}){this.color=i;const d=new Ge;d.checkColor(s),this.backgroundColor=d.color;const f=new Ge;if(f.checkColor(a),this.placeholderColor=f.color,t&&(this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`),r&&(this.margin=`${r.top}
216px ${r.right}px ${r.bottom}px ${r.left}px`),n){const{borderRadius:u,borderColor:p,borderStyle:g,borderWidth:y}=Mr(n);this.borderRadius=u;const v=new Ge;v.checkColor(p),this.borderColor=v.color,this.borderStyle=g||"solid",this.borderWidth=y}if(o){const u=new Hu;u.fromData(o),this.fontStyle=u,this.color=u.color}}}function rp(e){const t=new y4;return t.fromData(e),t}const v4=["en","fr","cz","sl"],b4="en",Am=ue(b4),_4={en:{welcome:"Welcomeee",page_search_no_results_title:"No search results",page_search_no_results_row_description_one:"Sorry, but nothing was found",page_search_no_results_row_description_two:"You can search for a specific video or show",page_search_no_results_row_description_three:"Check your search term for typos",Videos:"Videos",component_details_show_more:"Show more",component_details_show_less:"Show less",component_details_share:"Share",component_details_views_count:"views",component_details_views_online_count:"online views",component_details_video_start_time:"Start time",component_details_copy:"Copy",component_details_link:"Link",component_comments_comments:"Comments",component_comments_cancel:"Cancel",component_comments_confirm:"Confirm",component_comments_delete:"Delete",component_header_profile_user_profile:"User Profile",component_comments_reply:"Reply",component_comments_replies:"REPLIES",component_related_title:"Related videos",page_login_callback_logging_in:"Logging in",component_header_profile_log_out:"Log out",component_chat_callback_login:"Login",page_server_error_title:"500",page_server_error_description:"An error has occured and we are working to fix the problem! We'll be up and running shortly.",page_not_found_title:"404",page_not_found_description:"Sorry, but the page you requested was not found. Make sure you haven't made a mistake in the URL. The page may have been moved or deleted.",component_dropdown_sort_by_text:"Sort by","Newest to Oldest":"Newest to Oldest","Oldest to Newest":"Oldest to newest","A-Z":"A - Z","Z-A":"Z - A","Most Watched":"Most Watched",component_redirecting_to_login_text:"Redirecting to login",component_chat_chat_ended:"Chat has ended",component_chat_paused:"Chat has been paused",component_chat_scheduled:"Chat scheduled. Will start soon.",component_chat_requires_login:"Log in if you want to interact with chat.",component_chat_inactive:"Chat is not active",component_chat_replay:"Chat replay is active",component_chat_button_hide_chat:"Hide Chat",component_chat_button_show_chat:"Show Chat",component_chat_button_participants:"Participants",component_chat_button_timestamps:"Timestamps",component_chat_button_send:"Send",component_chat_input_placeholder:"Write a message...",component_card_new_text:"New",component_player_product_placement:"This video contains product placement",component_player_private_media:"Private media",component_search_no_results:"No results",component_player_content_is_paid:"Paid Content",component_player_login_redirect:"Login",Pořady:"Shows",Kategorie:"Categories"},cz:{welcome:"Mendim",page_search_no_results_title:"Omlouváme se, ale nic jsme nenašli",page_search_no_results_row_description_one:"Omlouváme se, ale nic jsme nenašli",page_search_no_results_row_description_two:"Můžete hledat konkrétní video nebo pořad",page_search_no_results_row_description_three:"Zkontrolujte, zda v hledaném výrazu nemáte překlepy",Videos:"Videa",component_details_show_more:"Zobrazit více",component_details_show_less:"Zobrazit méně",component_details_share:"Sdílet",component_details_views_count:"zhlédnutí",component_details_views_online_count:"online zobrazení",component_details_video_start_time:"Čas spuštení videa",component_details_copy:"Kopírovat",component_details_link:"Odkaz",component_comments_comments:"Komentáře",component_comments_cancel:"Zrušit",component_comments_confirm:"Potvrdit",component_comments_delete:"Smazat",component_comments_reply:"Odpovědět",component_comments_replies:"ODPOVĚDI",component_related_title:"Následující videa",page_login_callback_logging_in:"Přihlášení",component_header_profile_log_out:"Odhlášení",component_header_profile_user_profile:"Uživatelský profil",component_chat_callback_login:"Přihlášení",page_server_error_title:"500",page_server_error_description:"Došlo k chybě a na odstraně
216ní problému pracujeme! Za chvíli budeme v provozu.",page_not_found_title:"404",page_not_found_description:"Je nám líto, ale požadovaná stránka nebyla nalezena. Ujistěte se, že jste neudělali chybu v URL adrese. Je možné, že byla stránka přemístěna nebo odstraněna.",component_dropdown_sort_by_text:"Třídit podle","Newest to Oldest":"Nejnovější","Oldest to Newest":"Nejstarší","A-Z":"Abecedně A-Z","Z-A":"Abecedně Z-A","Most Watched":"Nejsledovanější",component_redirecting_to_login_text:"Přesměrování na přihlášení",component_chat_chat_ended:"Chat byl ukončen",component_chat_paused:"Chat byl pozastaven",component_chat_scheduled:"Chat je naplánován a brzy začne",component_chat_requires_login:"Pokud se chcete zapojit v chatu, přihlaste se prosím.",component_chat_inactive:"Chat není aktivní",component_chat_replay:"Záznam chatu se přehrává",component_chat_button_hide_chat:"Skrýt chat",component_chat_button_show_chat:"Zobrazit chat",component_chat_button_participants:"Aktivní uživatelé",component_chat_button_timestamps:"Časová razítka",component_chat_button_send:"Poslat",component_chat_input_placeholder:"Napište zprávu...",component_card_new_text:"Nové",component_player_product_placement:"Toto video obsahuje product placement",component_player_private_media:"Soukromá média",component_player_content_is_paid:"Obsah je placený",component_player_login_redirect:"Přihlášení",component_search_no_results:"Žádné výsledky hledání",Pořady:"Pořady",Kategorie:"Kategorie"},sl:{welcome:"Dobrodošli",page_search_no_results_title:"Ni rezultatov iskanja / Iskanje ni vrnilo rezultatov.",page_search_no_results_row_description_one:"Oprostite, vendar ni bilo nič najdeno",page_search_no_results_row_description_two:"Lahko iščete določen video ali oddajo",page_search_no_results_row_description_three:"Preverite, ali so v iskalnem izrazu napake",Videos:"Videi",component_details_show_more:"Pokaži več",component_details_show_less:"Pokaži manj",component_details_share:"Deli",component_details_views_count:"ogledi",component_details_views_online_count:"ogledi na spletu",component_details_video_start_time:"Začetni čas",component_details_copy:"Kopiraj",component_details_link:"Povezava",component_comments_comments:"Komentarji",component_comments_cancel:"Prekliči",component_comments_confirm:"Potrdi",component_comments_reply:"Odgovori",component_comments_replies:"ODGOVORI",component_related_title:"Sorodni videi",component_header_profile_user_profile:"Uživatelský profil",page_login_callback_logging_in:"Prijava v teku",component_header_profile_log_out:"Odjava",component_chat_callback_login:"Prijava",page_server_error_title:"500",page_server_error_description:"Prišlo je do napake in delamo na rešitvi problema! Kmalu bomo spet na voljo",page_not_found_title:"404",page_not_found_description:"Oprostite, vendar zahtevana stran ni bila najdena. Prepričajte se, da v URL-ju ni napake. Stran je morda premaknjena ali izbrisana.",component_dropdown_sort_by_text:"Razvrsti po","Newest to Oldest":"Najnovejši do najstarejši","Oldest to Newest":"Najstarejši do najnovejši","A-Z":"A - Z","Z-A":"Z - A","Most Watched":"Najbolj gledano",component_redirecting_to_login_text:"Preusmeritev na prijavo",component_chat_chat_ended:"Klepet je končan",component_chat_paused:"Klepet je bil zaustavljen",component_chat_scheduled:"Klepet je načrtovan. Začel se bo kmalu.",component_chat_requires_login:"Prijavite se, če želite sodelovati v klepetu.",component_chat_inactive:"Klepet ni aktiven",component_chat_replay:"Predvajanje klepeta je aktivno",component_chat_button_hide_chat:"Skrij klepet",component_chat_button_show_chat:"Pokaži klepet",component_chat_button_participants:"Udeleženci",component_chat_button_timestamps:"Časovni žigi",component_chat_button_send:"Pošlji",component_chat_input_placeholder:"Napiši sporočilo...",component_card_new_text:"Novo",component_player_product_placement:"Ta video vsebuje oglaševanje izdelkov",component_player_private_media:"Zasebni mediji",component_player_login_redirect:"Přihlášení",component_search_no_results:"Ni rezultatov iskanja",Pořady:"Serije",component_player_content_is_paid:"Obsah je placený",Kategorie:"Kategorije"}},w4=xe(()=>_4[Am.value]),S4=e=>{v4.includes(e)&&(Am.value=e)},ti=e=>w4.value[e]||e,k4=e=>{S4(e)},Pm={__name:"Search",props:{data:{type:Object,required:!0},breakpoint:{type:String,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onClose:{type:Function,default:()=>{},required:!1},searchEnterCallback:{type:Function,required:!1,default:null},searchValue:{type:String,required:!1,default:""}},setup(e){const t=ao(),r=e,n=ue([]),o=async d=>{const f={take:10,skip:0};let u;const p=encodeURIComponent(d);try{u=await t.actionSearchMedia(f,p)}catch(g){console.error(g)}u||(u=[]),n.value=u.map(g=>{const y=new m4;return y.fromSearch(g),y})},i=xe(()=>({...r.data,style:rp(r.data.style)})),s=xe(()=>{const d=rp(r.data.style);return{padding:d.padding,margin:d.margin,borderRadius:d.borderRadius,borderWidth:d.borderWidth,borderColor:d.borderColor}}),a=rn(r.data.icon);return(d,f)=>(D(),Ee(S(Iu),{class:Be(["order-"+e.data.order]),"is-open":e.isOpen,"on-toggle":e.onToggle,"on-close":e.onClose,breakpoint:e.breakpoint,data:S(i),"search-data":S(n),searchCallback:o,wrapperStyle:S(s),icons:S(a),icon:S(a),"client-search-value":e.searchValue,searchEnterCallback:e.searchEnterCallback,noSearchDataText:S(ti)("component_search_no_results")},null,8,["class","is-open","on-toggle","on-close","breakpoint","data","search-data","wrapperStyle","icons","icon","client-search-value","searchEnterCallback","noSearchDataText"]))}},x4=Object.freeze(Object.defineProperty({__proto__:null,default:Pm},Symbol.toStringTag,{value:"Module"}));function Im(e){const{show:t,type:r,direction:n,colors:o}=e,[i,s]=o,a=new Ge;a.checkColor(i.color);const d=a.color,f=new Ge;f.checkColor(s.color);const u=f.color;return t?`${r}(${r==="linear-gradient"?n+"deg, ":""}${d} ${i.position}%, ${u} ${s.position}%)`:""}class C4{constructor(){this.padding=null,this.margin=null,this.borderWidth=null,this.borderRadius=null,this.borderStyle=null,this.borderColor=null,this.gap=null,this.fontStyle=null,this.backgroundColor="",this.backgroundHoverColor=""}fromData({padding:t=null,margin:r=null,borderProperties:n=null,gap:o=null,fontProperties:i=null,backgroundColor:s="",backgroundHoverColor:a="",width:d=null,alignment:f=null}){if(o&&(this.gap=`${o}px`),d&&(this.width=d),f&&(this.textAlign=f),t&&(this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`),r&&(this.margin=`${r.top}
216px ${r.right}px ${r.bottom}px ${r.left}px`),n){const{borderWidth:g,borderRadius:y,borderStyle:v,borderColor:k}=Mr(n);this.borderWidth=g,this.borderRadius=y,this.borderStyle=v;const C=new Ge;C.checkColor(k),this.borderColor=C.color}const u=new Ge;u.checkColor(s),this.backgroundColor=u.color;const p=new Ge;p.checkColor(a),this.backgroundHoverColor=p.color,i&&(this.fontStyle=gn(i))}}class E4{constructor(){this.padding=null,this.background="",this.backgroundColor=null,this.opacity=null,this.gap=null,this.fontStyle=null,this.alignItems=null,this.menuWidth=null}fromData({backgroundColor:t="",gradient:r=null,opacity:n=null,padding:o=null,gap:i=null,fontProperties:s=null,alignment:a=null,menuWidth:d=null}){const f=new Ge;if(f.checkColor(t),this.backgroundColor=f.color,this.menuWidth=Ur(d),i&&(this.gap=`${i}px`),r&&(this.background=Im(r)),o&&(this.padding=`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`),s&&(this.fontStyle=gn(s)),a)switch(a){case"center":this.alignItems="center";break;case"right":this.alignItems="flex-end";break;default:this.alignItems="flex-start"}}}function T4(e,t="row"){const r=t==="row"?new C4:new E4;return r.fromData(e),r}const Rm={__name:"Menu",props:{data:{type:Object,required:!0},breakpoint:{type:String,required:!0},isOpen:{type:Boolean,default:!1},onToggle:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{},required:!1},logoData:{type:[Object,null],default:null},isNested:{type:Boolean,default:!1}},setup(e){const t=ol(),r=ct(),{userToken:n}=ot(t),{getProjectId:o}=ot(r),i=e,s=xe(()=>({...i.data,style:T4({...i.data.style,...i.isNested?{width:"100%"}:{}},i.data.props.layout)})),a=g=>(g==null?void 0:g.itemTypeId)===1||(g==null?void 0:g.itemLinkTypeId)===2,d=g=>({...g,url:a(g)?ei(g.url):g.url,childItems:Array.isArray(g==null?void 0:g.childItems)?g.childItems.map(d):g==null?void 0:g.childItems}),f=xe(()=>(i.data.extras||s.value.props.items||[]).map(d)),u=xe(()=>{if(i.logoData)return{...i.logoData.props,source:i.logoData.props.secondSource,customWrapper:i.logoData.props.linkType===1?"a":vk({})}});cr(n,g=>{var y;g&&o.value==="rWbMwrOxNq2"&&((y=i.data)==null||y.extras.push({id:23142122411241224e6,url:"/welcome-back",order:0,itemId:"231421fsajihfdsafsoa",itemType:"Page",childItems:[],itemTypeId:1,iconSettings:null,itemLinkType:null,itemLinkTypeId:null,navigationLabel:"My Videos"}))});const p=rn(i.data.icon);return(g,y)=>(D(),Ee(S(Eu),{"is-shown":e.isOpen,"is-open":e.isOpen,"on-toggle":e.onToggle,"on-menu-close":e.onClose,breakpoint:e.breakpoint,data:S(s),icons:S(p),"menu-items":S(f),logo:S(u),"fixed-wrapper-class":"fixed","is-nested-component":e.isNested,class:Be("order-"+S(s).order)},null,8,["is-shown","is-open","on-toggle","on-menu-close","breakpoint","data","icons","menu-items","logo","is-nested-component","class"]))}},F4=Object.freeze(Object.defineProperty({__proto__:null,default:Rm},Symbol.toStringTag,{value:"Module"})),Ei={ACTIVE:1,INACTIVE:2,PAUSED:3,SCHEDULED:4,REPLAY:5};class np{constructor(){this.name=null,this.image=null,this.userId=null}fromData(t){this.name=`${t.firstName} ${t.lastName}`,this.image=t.picture,this.userId=t.userId}}class A4{constructor(){this.id=null,this.chatMessageId=null,this.author=new np,this.message=null,this.isPinned=!1,this.chatMessageId=null,this.createdAt=null,this.userMentions=[]}formData(t){if(this.id=t.id,this.chatMessageId=t.id||t.chatMessageId,this.message=t.message,this.isPinned=t.isPinned,this.userMentions=t.userMentions||[],t.createdAt){let n=new Date(t.createdAt),o=n.getHours(),i=n.getMinutes();o=o<10?"0"+o:o,i=i<10?"0"+i:i,this.createdAt=`${o}:${i}`}else this.createdAt=t.createdAt;const r=new np;r.fromData(t.author),this.author=r}}
216class _o extends Error{constructor(t,r){const n=new.target.prototype;super(`${t}: Status code '${r}'`),this.statusCode=r,this.__proto__=n}}class $u extends Error{constructor(t="A timeout occurred."){const r=new.target.prototype;super(t),this.__proto__=r}}class Zr extends Error{constructor(t="An abort occurred."){const r=new.target.prototype;super(t),this.__proto__=r}}class P4 extends Error{constructor(t,r){const n=new.target.prototype;super(t),this.transport=r,this.errorType="UnsupportedTransportError",this.__proto__=n}}class I4 extends Error{constructor(t,r){const n=new.target.prototype;super(t),this.transport=r,this.errorType="DisabledTransportError",this.__proto__=n}}class R4 extends Error{constructor(t,r){const n=new.target.prototype;super(t),this.transport=r,this.errorType="FailedToStartTransportError",this.__proto__=n}}class op extends Error{constructor(t){const r=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=r}}class O4 extends Error{constructor(t,r){const n=new.target.prototype;super(t),this.innerErrors=r,this.__proto__=n}}class Om{constructor(t,r,n){this.statusCode=t,this.statusText=r,this.content=n}}class il{get(t,r){return this.send({...r,method:"GET",url:t})}post(t,r){return this.send({...r,method:"POST",url:t})}delete(t,r){return this.send({...r,method:"DELETE",url:t})}getCookieString(t){return""}}var Ie;(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"})(Ie||(Ie={}));class is{constructor(){}log(t,r){}}is.instance=new is;const D4="8.0.7";class Vt{static isRequired(t,r){if(t==null)throw new Error(`The '${r}' argument is required.`)}static isNotEmpty(t,r){if(!t||t.match(/^\s*$/))throw new Error(`The '${r}' argument should not be empty.`)}static isIn(t,r,n){if(!(t in r))throw new Error(`Unknown ${n} value: ${t}.`)}}class jt{static get isBrowser(){return!jt.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!jt.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!jt.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function ss(e,t){let r="";return To(e)?(r=`Binary data of length ${e.byteLength}`,t&&(r+=`. Content: '${L4(e)}'`)):typeof e=="string"&&(r=`String data of length ${e.length}`,t&&(r+=`. Content: '${e}'`)),r}function L4(e){const t=new Uint8Array(e);let r="";return t.forEach(n=>{const o=n<16?"0":"";r+=`0x${o}${n.toString(16)} `}),r.substr(0,r.length-1)}function To(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function Dm(e,t,r,n,o,i){const s={},[a,d]=ri();s[a]=d,e.log(Ie.Trace,`(${t} transport) sending data. ${ss(o,i.logMessageContent)}.`);const f=To(o)?"arraybuffer":"text",u=await r.post(n,{content:o,headers:{...s,...i.headers},responseType:f,timeout:i.timeout,withCredentials:i.withCredentials});e.log(Ie.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}function j4(e){return e===void 0?new Sa(Ie.Information):e===null?is.instance:e.log!==void 0?e:new Sa(e)}class M4{constructor(t,r){this._subject=t,this._observer=r}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}}class Sa{constructor(t){this._minLevel=t,this.out=console}log(t,r){if(t>=this._minLevel){const n=`[${new Date().toISOString()}] ${Ie[t]}: ${r}`;switch(t){case Ie.Critical:case Ie.Error:this.out.error(n);break;case Ie.Warning:this.out.warn(n);break;case Ie.Information:this.out.info(n);break;default:this.out.log(n);break}}}}function ri(){let e="X-SignalR-User-Agent";return jt.isNode&&(e="User-Agent"),[e,B4(D4,N4(),$4(),H4())]}function B4(e,t,r,n){let o="Microsoft SignalR/";const i=e.split(".");return o+=`${i[0]}.${i[1]}`,o+=` (${e}; `,t&&t!==""?o+=`${t}; `:o+="Unknown OS; ",o+=`${r}`,n?o+=`; ${n}`:o+="; Unknown Runtime Version",o+=")",o}
216function N4(){if(jt.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function H4(){if(jt.isNode)return process.versions.node}function $4(){return jt.isNode?"NodeJS":"Browser"}function Nl(e){return e.stack?e.stack:e.message?e.message:`${e}`}function U4(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class q4 extends il{constructor(t){if(super(),this._logger=t,typeof fetch>"u"||jt.isNode){const r=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(r("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=r("node-fetch"):this._fetchType=fetch,this._fetchType=r("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(U4());if(typeof AbortController>"u"){const r=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=r("abort-controller")}else this._abortControllerType=AbortController}async send(t){if(t.abortSignal&&t.abortSignal.aborted)throw new Zr;if(!t.method)throw new Error("No method defined.");if(!t.url)throw new Error("No url defined.");const r=new this._abortControllerType;let n;t.abortSignal&&(t.abortSignal.onabort=()=>{r.abort(),n=new Zr});let o=null;if(t.timeout){const d=t.timeout;o=setTimeout(()=>{r.abort(),this._logger.log(Ie.Warning,"Timeout from HTTP request."),n=new $u},d)}t.content===""&&(t.content=void 0),t.content&&(t.headers=t.headers||{},To(t.content)?t.headers["Content-Type"]="application/octet-stream":t.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=await this._fetchType(t.url,{body:t.content,cache:"no-cache",credentials:t.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...t.headers},method:t.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(d){throw n||(this._logger.log(Ie.Warning,`Error from HTTP request. ${d}.`),d)}finally{o&&clearTimeout(o),t.abortSignal&&(t.abortSignal.onabort=null)}if(!i.ok){const d=await ip(i,"text");throw new _o(d||i.statusText,i.status)}const a=await ip(i,t.responseType);return new Om(i.status,i.statusText,a)}getCookieString(t){let r="";return jt.isNode&&this._jar&&this._jar.getCookies(t,(n,o)=>r=o.join("; ")),r}}function ip(e,t){let r;switch(t){case"arraybuffer":r=e.arrayBuffer();break;case"text":r=e.text();break;case"blob":case"document":case"json":throw new Error(`${t} is not supported.`);default:r=e.text();break}return r}class V4 extends il{constructor(t){super(),this._logger=t}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new Zr):t.method?t.url?new Promise((r,n)=>{const o=new XMLHttpRequest;o.open(t.method,t.url,!0),o.withCredentials=t.withCredentials===void 0?!0:t.withCredentials,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.content===""&&(t.content=void 0),t.content&&(To(t.content)?o.setRequestHeader("Content-Type","application/octet-stream"):o.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const i=t.headers;
216i&&Object.keys(i).forEach(s=>{o.setRequestHeader(s,i[s])}),t.responseType&&(o.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=()=>{o.abort(),n(new Zr)}),t.timeout&&(o.timeout=t.timeout),o.onload=()=>{t.abortSignal&&(t.abortSignal.onabort=null),o.status>=200&&o.status<300?r(new Om(o.status,o.statusText,o.response||o.responseText)):n(new _o(o.response||o.responseText||o.statusText,o.status))},o.onerror=()=>{this._logger.log(Ie.Warning,`Error from HTTP request. ${o.status}: ${o.statusText}.`),n(new _o(o.statusText,o.status))},o.ontimeout=()=>{this._logger.log(Ie.Warning,"Timeout from HTTP request."),n(new $u)},o.send(t.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class W4 extends il{constructor(t){if(super(),typeof fetch<"u"||jt.isNode)this._httpClient=new q4(t);else if(typeof XMLHttpRequest<"u")this._httpClient=new V4(t);else throw new Error("No usable HttpClient found.")}send(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new Zr):t.method?t.url?this._httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(t){return this._httpClient.getCookieString(t)}}class Rr{static write(t){return`${t}${Rr.RecordSeparator}`}static parse(t){if(t[t.length-1]!==Rr.RecordSeparator)throw new Error("Message is incomplete.");const r=t.split(Rr.RecordSeparator);return r.pop(),r}}Rr.RecordSeparatorCode=30;Rr.RecordSeparator=String.fromCharCode(Rr.RecordSeparatorCode);class z4{writeHandshakeRequest(t){return Rr.write(JSON.stringify(t))}parseHandshakeResponse(t){let r,n;if(To(t)){const a=new Uint8Array(t),d=a.indexOf(Rr.RecordSeparatorCode);
216if(d===-1)throw new Error("Message is incomplete.");const f=d+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(a.slice(0,f))),n=a.byteLength>f?a.slice(f).buffer:null}else{const a=t,d=a.indexOf(Rr.RecordSeparator);if(d===-1)throw new Error("Message is incomplete.");const f=d+1;r=a.substring(0,f),n=a.length>f?a.substring(f):null}const o=Rr.parse(r),i=JSON.parse(o[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[n,i]}}var ut;(function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e[e.Ack=8]="Ack",e[e.Sequence=9]="Sequence"})(ut||(ut={}));class K4{constructor(){this.observers=[]}next(t){for(const r of this.observers)r.next(t)}error(t){for(const r of this.observers)r.error&&r.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new M4(this,t)}}class J4{constructor(t,r,n){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=r,this._bufferSize=n}async _send(t){const r=this._protocol.writeMessage(t);let n=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let o=()=>{},i=()=>{};To(r)?this._bufferedByteCount+=r.byteLength:this._bufferedByteCount+=r.length,this._bufferedByteCount>=this._bufferSize&&(n=new Promise((s,a)=>{o=s,i=a})),this._messages.push(new G4(r,this._totalMessageCount,o,i))}try{this._reconnectInProgress||await this._connection.send(r)}catch{this._disconnected()}await n}_ack(t){let r=-1;for(let n=0;n<this._messages.length;n++){const o=this._messages[n];if(o._id<=t.sequenceId)r=n,To(o._message)?this._bufferedByteCount-=o._message.byteLength:this._bufferedByteCount-=o._message.length,o._resolver();else if(this._bufferedByteCount<this._bufferSize)o._resolver();else break}r!==-1&&(this._messages=this._messages.slice(r+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==ut.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;const r=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,r<=this._latestReceivedSequenceId?(r===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=r,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:ut.Sequence,sequenceId:t}));const r=this._messages;for(const n of r)await this._connection.send(n._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(const r of this._messages)r._rejector(t)}_isInvocationMessage(t){switch(t.type){case ut.Invocation:case ut.StreamItem:case ut.Completion:case ut.StreamInvocation:case ut.CancelInvocation:return!0;case ut.Close:case ut.Sequence:case ut.Ping:case ut.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:ut.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class G4{constructor(t,r,n,o){this._message=t,this._id=r,this._resolver=n,this._rejector=o}}const Y4=30*1e3,Z4=15*1e3,X4=1e5;var Ot;(function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"})(Ot||(Ot={}));class Uu{static create(t,r,n,o,i,s,a){return new Uu(t,r,n,o,i,s,a)}constructor(t,r,n,o,i,s,a){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(Ie.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Vt.isRequired(t,"connection"),Vt.isRequired(r,"logger"),Vt.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=i??Y4,this.keepAliveIntervalInMilliseconds=s??Z4,this._statefulReconnectBufferSize=a??X4,this._logger=r,this._protocol=n,this.connection=t,this._reconnectPolicy=o,this._handshakeProtocol=new z4,this.connection.onreceive=d=>
vendor: 5,309 bytes, line 216
216this._processIncomingData(d),this.connection.onclose=d=>this._connectionClosed(d),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ot.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:ut.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==Ot.Disconnected&&this._connectionState!==Ot.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ot.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ot.Connecting,this._logger.log(Ie.Debug,"Starting HubConnection.");try{await this._startInternal(),jt.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ot.Connected,this._connectionStarted=!0,this._logger.log(Ie.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=Ot.Disconnected,this._logger.log(Ie.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise((r,n)=>{this._handshakeResolver=r,this._handshakeRejecter=n});await this.connection.start(this._protocol.transferFormat);try{let r=this._protocol.version;this.connection.features.reconnect||(r=1);const n={protocol:this._protocol.name,version:r};if(this._logger.log(Ie.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)),this._logger.log(Ie.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new J4(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(r){throw this._logger.log(Ie.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(r),r}}async stop(){const t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===Ot.Disconnected)return this._logger.log(Ie.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ot.Disconnecting)return this._logger.log(Ie.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const r=this._connectionState;return this._connectionState=Ot.Disconnecting,this._logger.log(Ie.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(Ie.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(r===Ot.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new Zr("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...r){const[n,o]=this._replaceStreamingParams(r),i=this._createStreamInvocation(t,r,o);let s;const a=new K4;return a.cancelCallback=()=>{const d=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],s.then(()=>this._sendWithProtocol(d))},this._callbacks[i.invocationId]=(d,f)=>{if(f){a.error(f);return}else d&&(d.type===ut.Completion?d.error?a.error(new Error(d.error)):a.complete():a.next(d.item))},s=this._sendWithProtocol(i).catch(d=>{a.error(d),delete this._callbacks[i.invocationId]}),this._launchStreams(n,s),a}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...r){const[n,o]=this._replaceStreamingParams(r),i=this._sendWithProtocol(this._createInvocation(t,r,!0,o));return this._launchStreams(n,i),i}invoke(t,...r){const[n,o]=this._replaceStreamingParams(r),i=this._createInvocation(t,r,!1,o);return new Promise((a,d)=>{this._callbacks[i.invocationId]=(u,p)=>
216{if(p){d(p);return}else u&&(u.type===ut.Completion?u.error?d(new Error(u.error)):a(u.result):d(new Error(`Unexpected message type: ${u.type}`)))};const f=this._sendWithProtocol(i).catch(u=>{d(u),delete this._callbacks[i.invocationId]});this._launchStreams(n,f)})}on(t,r){!t||!r||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(r)===-1&&this._methods[t].push(r))}off(t,r){if(!t)return;t=t.toLowerCase();const n=this._methods[t];if(n)if(r){const o=n.indexOf(r);o!==-1&&(n.splice(o,1),n.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const r=this._protocol.parseMessages(t,this._logger);for(const n of r)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(n)))switch(n.type){case ut.Invocation:this._invokeClientMethod(n).catch(o=>{this._logger.log(Ie.Error,`Invoke client method threw error: ${Nl(o)}`)});break;case ut.StreamItem:case ut.Completion:{const o=this._callbacks[n.invocationId];if(o){n.type===ut.Completion&&delete this._callbacks[n.invocationId];try{o(n)}catch(i){this._logger.log(Ie.Error,`Stream callback threw error: ${Nl(i)}`)}}break}case ut.Ping:break;case ut.Close:{this._logger.log(Ie.Information,"Close message received from server.");const o=n.error?new Error("Server returned an error on close: "+n.error):void 0;n.allowReconnect===!0?this.connection.stop(o):this._stopPromise=this._stopInternal(o);break}case ut.Ack:this._messageBuffer&&this._messageBuffer._ack(n);break;case ut.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(n);break;default:this._logger.log(Ie.Warning,`Invalid message type: ${n.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let r,n;try{[n,r]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(o){const i="Error parsing handshake response: "+o;this._logger.log(Ie.Error,i);const s=new Error(i);throw this._handshakeRejecter(s),s}if(r.error){const o="Server returned handshake error: "+r.error;this._logger.log(Ie.Error,o);const i=new Error(o);throw this._handshakeRejecter(i),i}else this._logger.log(Ie.Debug,"Server handshake complete.");return this._handshakeResolver(),n}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let t=this._nextKeepAlive-new Date().getTime();t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ot.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},t)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){const r=t.target.toLowerCase(),n=this._methods[r];if(!n){this._logger.log(Ie.Warning,`No client method with the name '${r}' found.`),t.invocationId&&(this._logger.log(Ie.Warning,`No result given for '${r}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}const o=n.slice(),i=!!t.invocationId;let s,a,d;for(const f of o)try{const u=s;s=await f.apply(this,t.arguments),i&&s&&u&&(this._logger.log(Ie.Error,`Multiple results provided for '${r}'. Sending error to server.`),d=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),a=void 0}catch(u){a=u,this._logger.log(Ie.Error,`A callback for the method '${r}' threw error '${u}'.`)}d?await this._sendWithProtocol(d):i?(a?d=this._createCompletionMessage(t.invocationId,`${a}`,null):s!==void 0?d=this._createCompletionMessage(t.invocationId,null,s):(this._logger.log(Ie.Warning,`No result given for '${r}' method and invocation ID '${t.invocationId}'.`),d=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(d)):s&&this._logger.log(Ie.Error,`Result given for '${r}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(Ie.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new Zr("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ot.Disconnecting?this._completeClose(t):this._connectionState===Ot.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===Ot.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=Ot.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),jt.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(r=>r.apply(this,[t]))}catch(r){this._logger.log(Ie.Error,`An onclose callback called with error '${t}' threw error '${r}'.`)}}}async _reconnect(t){const r=Date.now();
216let n=0,o=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(n++,0,o);if(i===null){this._logger.log(Ie.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=Ot.Reconnecting,t?this._logger.log(Ie.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(Ie.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(s=>s.apply(this,[t]))}catch(s){this._logger.log(Ie.Error,`An onreconnecting callback called with error '${t}' threw error '${s}'.`)}if(this._connectionState!==Ot.Reconnecting){this._logger.log(Ie.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log(Ie.Information,`Reconnect attempt number ${n} will start in ${i} ms.`),await new Promise(s=>{this._reconnectDelayHandle=setTimeout(s,i)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ot.Reconnecting){this._logger.log(Ie.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ot.Connected,this._logger.log(Ie.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(s=>s.apply(this,[this.connection.connectionId]))}catch(s){this._logger.log(Ie.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${s}'.`)}return}catch(s){if(this._logger.log(Ie.Information,`Reconnect attempt failed because of error '${s}'.`),this._connectionState!==Ot.Reconnecting){this._logger.log(Ie.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ot.Disconnecting&&this._completeClose();return}o=s instanceof Error?s:new Error(s.toString()),i=this._getNextRetryDelay(n++,Date.now()-r,o)}}this._logger.log(Ie.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${n} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,r,n){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:t,retryReason:n})}catch(o){return this._logger.log(Ie.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${r}) threw error '${o}'.`),null}}_cancelCallbacksWithError(t){const r=this._callbacks;this._callbacks={},Object.keys(r).forEach(n=>{const o=r[n];try{o(null,t)}catch(i){this._logger.log(Ie.Error,`Stream 'error' callback called with '${t}' threw error: ${Nl(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,r,n,o){if(n)return o.length!==0?{arguments:r,streamIds:o,target:t,type:ut.Invocation}:{arguments:r,target:t,type:ut.Invocation};{const i=this._invocationId;return this._invocationId++,o.length!==0?{arguments:r,invocationId:i.toString(),streamIds:o,target:t,type:ut.Invocation}:{arguments:r,invocationId:i.toString(),target:t,type:ut.Invocation}}}_launchStreams(t,r){if(t.length!==0){r||(r=Promise.resolve());for(const n in t)t[n].subscribe({complete:()=>{r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(n)))},error:o=>{let i;o instanceof Error?i=o.message:o&&o.toString?i=o.toString():i="Unknown error",r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(n,i)))},next:o=>{r=r.then(()=>this._sendWithProtocol(this._createStreamItemMessage(n,o)))}})}}_replaceStreamingParams(t){const r=[],n=[];for(let o=0;o<t.length;o++){const i=t[o];if(this._isObservable(i)){const s=this._invocationId;this._invocationId++,r[s]=i,n.push(s.toString()),t.splice(o,1)}}return[r,n]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,r,n){const o=this._invocationId;return this._invocationId++,n.length!==0?{arguments:r,invocationId:o.toString(),streamIds:n,target:t,type:ut.StreamInvocation}:{arguments:r,invocationId:o.toString(),target:t,type:ut.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:ut.CancelInvocation}}_createStreamItemMessage(t,r){return{invocationId:t,item:r,type:ut.StreamItem}}_createCompletionMessage(t,r,n){return r?{error:r,invocationId:t,type:ut.Completion}:{invocationId:t,result:n,type:ut.Completion}}_createCloseMessage(){return{type:ut.Close}}}const Q4=[0,2e3,1e4,3e4,null];class sp{constructor(t){this._retryDelays=t!==void 0?[...t,null]:Q4}nextRetryDelayInMilliseconds(t){return this._retryDelays[t.previousRetryCount]}}class wo{}wo.Authorization="Authorization";wo.Cookie="Cookie";class eP extends il{constructor(t,r){super(),this._innerClient=t,this._accessTokenFactory=r}async send(t){let r=!0;this._accessTokenFactory&&(!this._accessToken||t.url&&t.url.indexOf("/negotiate?")>0)&&(r=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(t);const n=await this._innerClient.send(t);return r&&n.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(t),await this._innerClient.send(t)):n}_setAuthorizationHeader(t){t.headers||(t.headers={}),this._accessToken?t.headers[wo.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&t.headers[wo.Authorization]&&delete t.headers[wo.Authorization]}getCookieString(t){return this._innerClient.getCookieString(t)}}var Yt;(function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"})(Yt||(Yt={}));var yr;(function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"})(yr||(yr={}));let tP=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class ap{get pollAborted(){return this._pollAbort.aborted}constructor(t,r,n){this._httpClient=t,this._logger=r,this._pollAbort=new tP,this._options=n,this._running=!1,this.onreceive=null,this.onclose
vendor: 4,753 bytes, line 216
216=null}async connect(t,r){if(Vt.isRequired(t,"url"),Vt.isRequired(r,"transferFormat"),Vt.isIn(r,yr,"transferFormat"),this._url=t,this._logger.log(Ie.Trace,"(LongPolling transport) Connecting."),r===yr.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[n,o]=ri(),i={[n]:o,...this._options.headers},s={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};r===yr.Binary&&(s.responseType="arraybuffer");const a=`${t}&_=${Date.now()}`;this._logger.log(Ie.Trace,`(LongPolling transport) polling: ${a}.`);const d=await this._httpClient.get(a,s);d.statusCode!==200?(this._logger.log(Ie.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new _o(d.statusText||"",d.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,s)}async _poll(t,r){try{for(;this._running;)try{const n=`${t}&_=${Date.now()}`;this._logger.log(Ie.Trace,`(LongPolling transport) polling: ${n}.`);const o=await this._httpClient.get(n,r);o.statusCode===204?(this._logger.log(Ie.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):o.statusCode!==200?(this._logger.log(Ie.Error,`(LongPolling transport) Unexpected response code: ${o.statusCode}.`),this._closeError=new _o(o.statusText||"",o.statusCode),this._running=!1):o.content?(this._logger.log(Ie.Trace,`(LongPolling transport) data received. ${ss(o.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(o.content)):this._logger.log(Ie.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(n){this._running?n instanceof $u?this._logger.log(Ie.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=n,this._running=!1):this._logger.log(Ie.Trace,`(LongPolling transport) Poll errored after shutdown: ${n.message}`)}}finally{this._logger.log(Ie.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(t){return this._running?Dm(this._logger,"LongPolling",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(Ie.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(Ie.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const t={},[r,n]=ri();t[r]=n;const o={headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let i;try{await this._httpClient.delete(this._url,o)}catch(s){i=s}i?i instanceof _o&&(i.statusCode===404?this._logger.log(Ie.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(Ie.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log(Ie.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(Ie.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let t="(LongPolling transport) Firing onclose event.";this._closeError&&(t+=" Error: "+this._closeError),this._logger.log(Ie.Trace,t),this.onclose(this._closeError)}}}class rP{constructor(t,r,n,o){this._httpClient=t,this._accessToken=r,this._logger=n,this._options=o,this.onreceive=null,this.onclose=null}async connect(t,r){return Vt.isRequired(t,"url"),Vt.isRequired(r,"transferFormat"),Vt.isIn(r,yr,"transferFormat"),this._logger.log(Ie.Trace,"(SSE transport) Connecting."),this._url=t,this._accessToken&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((n,o)=>{let i=!1;if(r!==yr.Text){o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let s;if(jt.isBrowser||jt.isWebWorker)s=new this._options.EventSource(t,{withCredentials:this._options.withCredentials});else{const a=this._httpClient.getCookieString(t),d={};d.Cookie=a;const[f,u]=ri();d[f]=u,s=new this._options.EventSource(t,{withCredentials:this._options.withCredentials,headers:{...d,...this._options.headers}})}try{s.onmessage=a=>{if(this.onreceive)try{this._logger.log(Ie.Trace,`(SSE transport) data received. ${ss(a.data,this._options.logMessageContent)}.`),this.onreceive(a.data)}catch(d){this._close(d);return}},s.onerror=a=>{i?this._close():o(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky 
216sessions are enabled."))},s.onopen=()=>{this._logger.log(Ie.Information,`SSE connected to ${this._url}`),this._eventSource=s,i=!0,n()}}catch(a){o(a);return}})}async send(t){return this._eventSource?Dm(this._logger,"SSE",this._httpClient,this._url,t,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(t){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(t))}}class nP{constructor(t,r,n,o,i,s){this._logger=n,this._accessTokenFactory=r,this._logMessageContent=o,this._webSocketConstructor=i,this._httpClient=t,this.onreceive=null,this.onclose=null,this._headers=s}async connect(t,r){Vt.isRequired(t,"url"),Vt.isRequired(r,"transferFormat"),Vt.isIn(r,yr,"transferFormat"),this._logger.log(Ie.Trace,"(WebSockets transport) Connecting.");let n;return this._accessTokenFactory&&(n=await this._accessTokenFactory()),new Promise((o,i)=>{t=t.replace(/^http/,"ws");let s;const a=this._httpClient.getCookieString(t);let d=!1;if(jt.isNode||jt.isReactNative){const f={},[u,p]=ri();f[u]=p,n&&(f[wo.Authorization]=`Bearer ${n}`),a&&(f[wo.Cookie]=a),s=new this._webSocketConstructor(t,void 0,{headers:{...f,...this._headers}})}else n&&(t+=(t.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(n)}`);s||(s=new this._webSocketConstructor(t)),r===yr.Binary&&(s.binaryType="arraybuffer"),s.onopen=f=>{this._logger.log(Ie.Information,`WebSocket connected to ${t}.`),this._webSocket=s,d=!0,o()},s.onerror=f=>{let u=null;typeof ErrorEvent<"u"&&f instanceof ErrorEvent?u=f.error:u="There was an error with the transport",this._logger.log(Ie.Information,`(WebSockets transport) ${u}.`)},s.onmessage=f=>{if(this._logger.log(Ie.Trace,`(WebSockets transport) data received. ${ss(f.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(f.data)}catch(u){this._close(u);return}},s.onclose=f=>{if(d)this._close(f);else{let u=null;typeof ErrorEvent<"u"&&f instanceof ErrorEvent?u=f.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(u))}}})}send(t){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(Ie.Trace,`(WebSockets transport) sending data. ${ss(t,this._logMessageContent)}.`),this._webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(t){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(Ie.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(t)&&(t.wasClean===!1||t.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${t.code} (${t.reason||"no reason given"}).`)):t instanceof Error?this.onclose(t):this.onclose())}_isCloseEvent(t){return t&&typeof t.wasClean=="boolean"&&typeof t.code=="number"}}const lp=100;class oP{constructor(t,r={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Vt.isRequired(t,"url"),this._logger=j4(r.logger),this.baseUrl=this._resolveUrl(t),r=r||{},r.logMessageContent=r.logMessageContent===void 0?!1:r.logMessageContent,typeof r.withCredentials=="boolean"||r.withCredentials===void 0)r.withCredentials=r.withCredentials===void 0?!0:r.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.timeout=r.timeout===void 0?100*1e3:r.timeout;let n=null,o=null;if(jt.isNode&&typeof require<"u"){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;n=i("ws"),o=i("eventsource")}!jt.isNode&&typeof WebSocket<"u"&&!r.WebSocket?r.WebSocket=WebSocket:jt.isNode&&!r.WebSocket&&n&&(r.WebSocket=n),!jt.isNode&&typeof EventSource<"u"&&!r.EventSource?r.EventSource=EventSource:jt.isNode&&!r.EventSource&&typeof o<"u"&&(r.EventSource=o),this._httpClient=new eP(r.httpClient||new W4(this._logger),r.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=r,this.onreceive=null,this.onclose
216=null}async start(t){if(t=t||yr.Binary,Vt.isIn(t,yr,"transferFormat"),this._logger.log(Ie.Debug,`Starting connection with transfer format '${yr[t]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(t),await this._startInternalPromise,this._connectionState==="Disconnecting"){const r="Failed to start the HttpConnection before stop() was called.";return this._logger.log(Ie.Error,r),await this._stopPromise,Promise.reject(new Zr(r))}else if(this._connectionState!=="Connected"){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(Ie.Error,r),Promise.reject(new Zr(r))}this._connectionStarted=!0}send(t){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new qu(this.transport)),this._sendQueue.send(t))}async stop(t){if(this._connectionState==="Disconnected")return this._logger.log(Ie.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(Ie.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(r=>{this._stopPromiseResolver=r}),await this._stopInternal(t),await this._stopPromise}async _stopInternal(t){this._stopError=t;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(r){this._logger.log(Ie.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(Ie.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(t){let r=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Yt.WebSockets)this.transport=this._constructTransport(Yt.WebSockets),await this._startTransport(r,t);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let n=null,o=0;do{if(n=await this._getNegotiationResponse(r),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Zr("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(n.url&&(r=n.url),n.accessToken){const i=n.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0}o++}while(n.url&&o<lp);if(o===lp&&n.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(r,this._options.transport,n,t)}this.transport instanceof ap&&(this.features.inherentKeepAlive=!0),this._connectionState==="Connecting"&&(this._logger.log(Ie.Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(n){return this._logger.log(Ie.Error,"Failed to start the connection: "+n),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(n)}}async _getNegotiationResponse(t){const r={},[n,o]=ri();r[n]=o;const i=this._resolveNegotiateUrl(t);this._logger.log(Ie.Debug,`Sending negotiation request: ${i}.`);try{const s=await this._httpClient.post(i,{content:"",headers:{...r,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(s.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${s.statusCode}'`));const a=JSON.parse(s.content);return(!a.negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),a.useStatefulReconnect&&this._options._useStatefulReconnect!==!0?Promise.reject(new op("Client didn't negotiate Stateful Reconnect but the server did.")):a}catch(s){let a="Failed to complete negotiation with the server: "+s;return s instanceof _o&&s.statusCode===404&&(a=a+" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(Ie.Error,a),Promise.reject(new op(a))}}_createConnectUrl(t,r){return r?t+(t.indexOf("?")===-1?"?":"&")+`id=${r}`:t}async _createTransport(t,r,n,o){let i=this._createConnectUrl(t,n.connectionToken);if(this._isITransport(r)){this._logger.log(Ie.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=r,await this._startTransport(i,o),this.connectionId=n.connectionId;return}const s=[],a=n.availableTransports||[];let d=n;for(const f of a){const u=this._resolveTransportOrError(f,r,o,(d==null?void 0:d.use
216StatefulReconnect)===!0);if(u instanceof Error)s.push(`${f.transport} failed:`),s.push(u);else if(this._isITransport(u)){if(this.transport=u,!d){try{d=await this._getNegotiationResponse(t)}catch(p){return Promise.reject(p)}i=this._createConnectUrl(t,d.connectionToken)}try{await this._startTransport(i,o),this.connectionId=d.connectionId;return}catch(p){if(this._logger.log(Ie.Error,`Failed to start the transport '${f.transport}': ${p}`),d=void 0,s.push(new R4(`${f.transport} failed: ${p}`,Yt[f.transport])),this._connectionState!=="Connecting"){const g="Failed to select transport before stop() was called.";return this._logger.log(Ie.Debug,g),Promise.reject(new Zr(g))}}}}return s.length>0?Promise.reject(new O4(`Unable to connect to the server with any of the available transports. ${s.join(" ")}`,s)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(t){switch(t){case Yt.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new nP(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Yt.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new rP(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Yt.LongPolling:return new ap(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${t}.`)}}_startTransport(t,r){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async n=>{let o=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(t,r),await this.features.resend()}catch{o=!0}else{this._stopConnection(n);return}o&&this._stopConnection(n)}:this.transport.onclose=n=>this._stopConnection(n),this.transport.connect(t,r)}_resolveTransportOrError(t,r,n,o){const i=Yt[t.transport];if(i==null)return this._logger.log(Ie.Debug,`Skipping transport '${t.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${t.transport}' because it is not supported by this client.`);if(iP(r,i))if(t.transferFormats.map(a=>yr[a]).indexOf(n)>=0){if(i===Yt.WebSockets&&!this._options.WebSocket||i===Yt.ServerSentEvents&&!this._options.EventSource)return this._logger.log(Ie.Debug,`Skipping transport '${Yt[i]}' because it is not supported in your environment.'`),new P4(`'${Yt[i]}' is not supported in your environment.`,i);this._logger.log(Ie.Debug,`Selecting transport '${Yt[i]}'.`);try{return this.features.reconnect=i===Yt.WebSockets?o:void 0,this._constructTransport(i)}catch(a){return a}}else return this._logger.log(Ie.Debug,`Skipping transport '${Yt[i]}' because it does not support the requested transfer format '${yr[n]}'.`),new Error(`'${Yt[i]}' does not support ${yr[n]}.`);else return this._logger.log(Ie.Debug,`Skipping transport '${Yt[i]}' because it was disabled by the client.`),new I4(`'${Yt[i]}' is disabled by the client.`,i)}_isITransport(t){return t&&typeof t=="object"&&"connect"in t}_stopConnection(t){if(this._logger.log(Ie.Debug,`HttpConnection.stopConnection(${t}) called while in state ${this._connectionState}.`),this.transport=void 0,t=this._stopError||t,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(Ie.Debug,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(Ie.Warning,`Call to HttpConnection.stopConnection(${t}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${t}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),t?this._logger.log(Ie.Error,`Connection disconnected with error '${t}'.`):this._logger.log(Ie.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(r=>{this._logger.log(Ie.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(t)}catch(r){this._logger.log(Ie.Error,`HttpConnection.onclose(${t}) threw error '${r}'.`)}}}_resolveUrl(t){if(t.lastIndexOf("https://",0)===0||t.lastIndexOf("http://",0)===0)return t;if(!jt.isBrowser)throw new Error(`Cannot resolve '${t}'.`);const r=window.document.createElement("a");return r.href=t,this._logger.log(Ie.Information,`Normalizing '${t}' to '${r.href}'.`),r.href}
216_resolveNegotiateUrl(t){const r=new URL(t);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";const n=new URLSearchParams(r.searchParams);return n.has("negotiateVersion")||n.append("negotiateVersion",this._negotiateVersion.toString()),n.has("useStatefulReconnect")?n.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&n.append("useStatefulReconnect","true"),r.search=n.toString(),r.toString()}}function iP(e,t){return!e||(t&e)!==0}class qu{constructor(t){this._transport=t,this._buffer=[],this._executing=!0,this._sendBufferedData=new Us,this._transportResult=new Us,this._sendLoopPromise=this._sendLoop()}send(t){return this._bufferData(t),this._transportResult||(this._transportResult=new Us),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(t){if(this._buffer.length&&typeof this._buffer[0]!=typeof t)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof t}`);this._buffer.push(t),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Us;const t=this._transportResult;this._transportResult=void 0;const r=typeof this._buffer[0]=="string"?this._buffer.join(""):qu._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(r),t.resolve()}catch(n){t.reject(n)}}}static _concatBuffers(t){const r=t.map(i=>i.byteLength).reduce((i,s)=>i+s),n=new Uint8Array(r);let o=0;for(const i of t)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}}class Us{constructor(){this.promise=new Promise((t,r)=>[this._resolver,this._rejecter]=[t,r])}resolve(){this._resolver()}reject(t){this._rejecter(t)}}const sP="json";class aP{constructor(){this.name=sP,this.version=2,this.transferFormat=yr.Text}parseMessages(t,r){if(typeof t!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];r===null&&(r=is.instance);const n=Rr.parse(t),o=[];for(const i of n){const s=JSON.parse(i);if(typeof s.type!="number")throw new Error("Invalid payload.");switch(s.type){case ut.Invocation:this._isInvocationMessage(s);break;case ut.StreamItem:this._isStreamItemMessage(s);break;case ut.Completion:this._isCompletionMessage(s);break;case ut.Ping:break;case ut.Close:break;case ut.Ack:this._isAckMessage(s);break;case ut.Sequence:this._isSequenceMessage(s);break;default:r.log(Ie.Information,"Unknown message type '"+s.type+"' ignored.");continue}o.push(s)}return o}writeMessage(t){return Rr.write(JSON.stringify(t))}_isInvocationMessage(t){this._assertNotEmptyString(t.target,"Invalid payload for Invocation message."),t.invocationId!==void 0&&this._assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(t){if(this._assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),t.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this._assertNotEmptyString(t.error,"Invalid payload for Completion message."),this._assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")}_isAckMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(t){if(typeof t.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(t,r){if(typeof t!="string"||t==="")throw new Error(r)}}const lP={trace:Ie.Trace,debug:Ie.Debug,info:Ie.Information,information:Ie.Information,warn:Ie.Warning,warning:Ie.Warning,error:Ie.Error,critical:Ie.Critical,none:Ie.None};function cP(e){const t=lP[e.toLowerCase()];if(typeof t<"u")return t;throw new Error(`Unknown log level: ${e}`)}class uP{configureLogging(t){if(Vt.isRequired(t,"logging"),fP(t))this.logger=t;else if(typeof t=="string"){const r=cP(t);this.logger=new Sa(r)}else this.logger=new Sa(t);return this}withUrl(t,r){return Vt.isRequired(t,"url"),Vt.isNotEmpty(t,"url"),this.url=t,typeof r=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...r}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:r},this}withHubProtocol(t){return Vt.isRequired(t,"protocol"),this.protocol=t,this}withAutomaticReconnect(t){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return t?Array.isArray(t)?this.reconnectPolicy=new sp(t):this.reconnectPolicy=t:this.reconnectPolicy=new sp,this}withServerTimeout(t){return Vt.isRequired(t,"milliseconds"),this._serverTimeoutInMilliseconds=t,this}withKeepAliveInterval(t){return Vt.isRequired(t,"milliseconds"),this._keepAliveIntervalInMilliseconds=t,this}withStatefulReconnect(t){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=t==null?void 0:t.bufferSize,this}build(){const t=this.httpConnectionOptions||{};if(t.logger===void 0&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const r=new oP(this.url,t);return Uu.create(r,this.logger||is.instance,this.protocol||new aP,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function fP(e){return e.log!==void 0}const Lm=gs("signalr-builder",{state:()=>({isConnected:!1,user:null,userManager:null,realTimeMediaViews:0,connection:null,realTimeNotification:null,realTimeUnregisteredNotification:null,joinQueue:[],chatMessages:[],chatConfig:{active:!0,message:"Chat is not active",inReplayMode:!1},newestChatMessage:null,chatIdToRemove:null}),actions:{async createConnection(){if(this.isConnected)return;const t=en().public.baseUrlRealtime,r=ct(),{getToken:n}=ot(r),o=n.value||null;this.connection=new uP().withUrl(`${t}/contentHub`,{accessTokenFactory:()=>o}).withAutomaticReconnect([0,3e3,5e3,1e4,15e3,3e4,59e3]).build();try{await this.connection.start({withCredentials:!1}),this.isConnected=!0,this.executeFromJoinQueue()}catch(i){console.error(i)}this.connection.on("ReceiveChatMessage",i=>{this.setChatNotifications(i)}),this.connection.on("ReceiveChatInfo",i=>{this.updateChatInfo(i)}),this.connection.on("DeleteChatMessage",i=>{this.chatIdToRemove=i}),this.connection.on("ReceiveNotifications",(i,s)=>{i.notificationDisplayType===1&&this.setNotification(i),i.notificationDisplayType===2&&this.setUnregisteredUserNotification(i)}),this.connection.on("ReceiveComment",i=>{}),this.connection.on("ReceiveLiveViewers",i=>{this.realTimeMediaViews=Number(i)})},async joinGroup({connectionName:e,data:t}){if(this.connection)this.connection.invoke(e,t);else throw t},async leaveGroup(e){try{if(this.connection)this.connection.invoke("LeaveRoom",e);else throw e}catch(t){throw t}},setToJoinQueue(e,t){this.isConnected?this.joinGroup({connectionName:e,data:t}):this.joinQueue.push({connectionName:e,data:t})}
216,executeFromJoinQueue(){this.joinQueue.forEach(e=>{this.joinGroup(e)}),this.joinQueue=[]},setNotification(e){this.realTimeNotification=e},setChatNotifications(e){const t=new A4;t.formData(e),this.newestChatMessage=t},setUnregisteredUserNotification(e){this.realTimeUnregisteredNotification=e},updateChatInfo(e){Ei.ACTIVE===e.chatStatusId?(this.chatConfig.active=!0,this.chatConfig.inReplayMode=!1):Ei.INACTIVE===e.chatStatusId?(this.chatConfig.active=!1,this.chatConfig.inReplayMode=!1,this.chatConfig.message="Chat has ended"):Ei.PAUSED===e.chatStatusId?(this.chatConfig.active=!1,this.chatConfig.inReplayMode=!1,this.chatConfig.message="Chat has been paused"):Ei.SCHEDULED===e.chatStatusId?(this.chatConfig.active=!1,this.chatConfig.inReplayMode=!1,this.chatConfig.message="Chat scheduled. Will start soon."):Ei.REPLAY===e.chatStatusId&&(this.chatConfig.active=!1,this.chatConfig.inReplayMode=!0,this.chatConfig.message="Chat replay")},removeChatMessageById(e){}}});let cp=class{constructor(){this.id=null,this.title="",this.typeId=0,this.name="",this.img="https://cdn.vpplayer.tech/agmipnzv/encode/vjsnkirh/thumbnails/standart.jpg",this.source="/video-1",this.text="Vojtěch Dyk o životních cyklech a zparchantělé době= Mlčel jsem, protože",this.date="23/12/2022",this.read=!1,this.redirectUrl="/",this.subtitle="",this.linkType=0}fromQuery(t){this.title=t.title,this.subtitle=t.subtitle,this.id=t.id,this.typeId=t.notificationTypeId,this.name=t.resourceName,this.img=t.image,this.source=t.redirectUrl?ei(t.redirectUrl):"/not-set",this.text=t.title,this.date=t.date,this.read=t.read,this.redirectUrl=t.redirectUrl,this.linkType=t.linkType}fromRealTime(t){this.id=t.id,this.typeId=t.notificationTypeId,this.name=t.title,this.img=t.image,this.source=t.redirectUrl?ei(t.redirectUrl):"/not-set",this.text=t.subtitle,this.date=t.date,this.read=t.read,this.redirectUrl=t.redirectUrl,this.linkType=t.linkType}};const dP={JOIN_REALTIME_VIEWS:"JoinRoom",JOIN_NOTIFICATION:"JoinProjectRoom",JOIN_CHAT:"JoinChatRoom"};class pP{constructor(){this.padding=null,this.margin=null,this.border=null,this.borderRadius=null,this.fontStyle=null,this.backgroundColorOnHover=null}fromData({padding:t=null,margin:r=null,borderProperties:n=null,fontProperties:o=null,backgroundColorOnHover:i=null}){const s=new Ge;if(s.checkColor(i),this.backgroundColorOnHover=s.color,t&&(this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`),r&&(this.margin=`${r.top}
216px ${r.right}px ${r.bottom}px ${r.left}px`),n){const{borderRadius:a,borderColor:d,borderStyle:f,borderWidth:u}=Mr(n);this.borderRadius=a;const p=new Ge;p.checkColor(d),this.borderColor=p.color,this.borderStyle=f||"solid",this.borderWidth=u}if(o){const a=new Hu;a.fromData(o),this.fontStyle=a}}}function hP(e){const t=new pP;return t.fromData(e),t}const gP={key:0,class:"absolute flex h-2 w-2 -right-1 top-0 z-10"},jm={__name:"Notification",props:{data:{type:Object,required:!0},breakpoint:{type:String,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onClose:{type:Function,default:()=>{},required:!1}},setup(e){const t=ao(),r=ct(),{getProjectId:n}=ot(r),o=Lm(),{realTimeNotification:i}=ot(o),s=e,a=ue([]),d=ue(""),f=ue(0),u=ue(3),p=ue(null);cr(()=>i.value,E=>{d.value.classList.add("active");const w=new cp;w.fromRealTime(E),a.value.unshift(w),setTimeout(()=>{d.value.classList.remove("active")},3e3)}),kt(()=>{o.setToJoinQueue(dP.JOIN_NOTIFICATION,n.value)}),io(()=>{g()});const g=async()=>{if(f.value>p.value)return;const E={take:u.value,skip:f.value};let w;try{w=await t.actionGetNotifications(E)}catch(_){console.error(_)}w&&(p.value=w.total,f.value+=u.value,!(!w||w.length<=0)&&a.value.push(...w.map(_=>{const T=new cp;return T.fromQuery(_),{...T,text:T.subtitle,id:T.id,img:T.img,name:T.title,date:T.date,redirectUrl:T.redirectUrl,typeId:1}})))},y=xe(()=>a.value.some(E=>E.read===!1)),v=async E=>{Number(E)===0?a.value=a.value.map(w=>({...w,read:!0})):a.value=a.value.map(w=>w.id===E?{...w,read:!0}:w),await t.actionPutReadNotification(E),s.onClose()},k=xe(()=>({...s.data,style:hP(s.data.style)})),C=rn(s.data.icon);return(E,w)=>(D(),V("div",{class:Be(["header-notification-wrapper relative block my-auto j-header-notifications","order-"+k.value.order]),ref_key:"animateEl",ref:d},[y.value?(D(),V("span",gP,w[0]||(w[0]=[B("span",{class:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"},null,-1),B("span",{class:"relative inline-flex rounded-full h-2 w-2 bg-red-500"},null,-1)]))):le("",!0),Se(S(Au),{"is-open":e.isOpen,"on-toggle":e.onToggle,"on-close":e.onClose,breakpoint:e.breakpoint,data:k.value,icons:S(C),"notification-data":a.value,"on-notification-read-callback":v},null,8,["is-open","on-toggle","on-close","breakpoint","data","icons","notification-data"])],2))}},mP=Object.freeze(Object.defineProperty({__proto__:null,default:jm},Symbol.toStringTag,{value:"Module"}));class yP{constructor(){this.padding=null,this.margin=null,this.border=null,this.borderRadius=null,this.fontStyle=null,this.backgroundColorOnHover=null}fromData({padding:t=null,margin:r=null,borderProperties:n=null,fontProperties:o=null,backgroundColorOnHover:i=null}){const s=new Ge;if(s.checkColor(i),this.backgroundColorOnHover=s.color,t&&(this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`),r&&(this.margin=`${r.top}
216px ${r.right}px ${r.bottom}px ${r.left}px`),n){const{borderRadius:a,borderColor:d,borderStyle:f,borderWidth:u}=Mr(n);this.borderRadius=a;const p=new Ge;p.checkColor(d),this.borderColor=p.color,this.borderStyle=f||"solid",this.borderWidth=u}o&&(this.fontStyle=gn(o))}}function vP(e){const t=new yP;return t.fromData(e),t}const Mm={__name:"Profile",props:{data:{type:Object,required:!0},breakpoint:{type:String,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onClose:{type:Function,default:()=>{},required:!1}},setup(e){const t=ct(),r=ao(),n=ol(),{deviceType:o}=ot(r),{getProjectId:i}=ot(t),{isLogedInSSR:s,userToken:a,userSubId:d}=ot(n),f=e,{user:u}=ot(n),p=ue({...f.data}),g=ue(null),y=rr(),v=async()=>{try{await n.callLogin()}catch(T){console.error("Login click",T)}},k=async()=>{new mo().removeItem("mAccessToken"),s.value=!1,a.value=null,d.value=null,n.unsetUserOnCookie(),await n.callLogOut()},C=xe(()=>({...p.value,style:vP(p.value.style)}));io(()=>{var F;if(i.value!=="rWbMwrOxNq2")return;cr(a,I=>{var P,H;if(I){p.value.props.type="icon";const $=(H=(P=f.data.style)==null?void 0:P.fontProperties)==null?void 0:H.size;_.value.style.fontSize=`${$?$*2:36}px`}else o.value==="desktop"&&(p.value.props.type="text")},{immediate:!0});const T=(F=g.value)==null?void 0:F.$el;T&&(E=new MutationObserver(()=>w()),E.observe(T,{childList:!0,subtree:!0}),w())});let E=null;oo(()=>E==null?void 0:E.disconnect());const w=()=>{var ee,j;if(!a.value)return;const T=(ee=g.value)==null?void 0:ee.$el;if(!T||T.querySelector("[data-subscriptions-item]"))return;const F=T.querySelectorAll("li");if(F.length<2)return;const I=F[0],P=F[F.length-1],H=document.createElement("li");H.className=P.className,H.setAttribute("data-subscriptions-item","");const $=document.createElement("a");$.className=((j=I.querySelector("a"))==null?void 0:j.className)||"flex items-center gap-2 cursor-pointer text-xs font-medium",$.href="/profile",$.insertAdjacentHTML("afterbegin",'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2.5" y="5.5" width="19" height="13" rx="2.5"/><path d="M2.5 9.5h19"/></svg>'),$.appendChild(document.createTextNode("Subscriptions")),$.addEventListener("click",W=>{W.preventDefault(),f.onClose(),y.push("/profile")}),H.appendChild($),P.parentNode.insertBefore(H,P)},_=ue(rn(f.data.icon));return(T,F)=>{var I,P,H,$,ee,j;return D(),Ee(S(Pu),{ref_key:"profileRef",ref:g,class:Be(["order-"+e.data.order,"items-center justify-center flex"]),"is-open":e.isOpen,"on-toggle":e.onToggle,"on-close":e.onClose,breakpoint:e.breakpoint,data:S(C),userProfileText:S(ti)("component_header_profile_user_profile"),"user-data":{accountName:(I=S(u))==null?void 0:I.name,name:(P=S(u))==null?void 0:P.name,surname:(H=S(u))==null?void 0:H.surname,accountPicture:($=S(u))==null?void 0:$.picture,accountProfileUrl:((j=(ee=S(r))==null?void 0:ee.providersData)==null?void 0:j.issuer)||"https://myaccount.fameplay.tv/"},icons:S(_),"login-callback":v,"logout-callback":k,"log-out-text":S(ti)("component_header_profile_log_out")},null,8,["class","is-open","on-toggle","on-close","breakpoint","data","userProfileText","user-data","icons","log-out-text"])}}},bP=Object.freeze(Object.defineProperty({__proto__:null,default:Mm},Symbol.toStringTag,{value:"Module"}));class _P{constructor(){this.padding=null,this.margin=null,this.border=null,this.borderRadius=null,this.fontStyle=null,this.backgroundColorOnHover=null}fromData({padding:t=null,margin:r=null,borderProperties:n=null,fontProperties:o=null,backgroundColorOnHover:i=null}){const s=new Ge;if(s.checkColor(i),this.backgroundColorOnHover=s.color,t&&(this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`),r&&(this.margin=`${r.top}
216px ${r.right}px ${r.bottom}px ${r.left}px`),n){const{borderRadius:a,borderColor:d,borderStyle:f,borderWidth:u}=Mr(n);this.borderRadius=a;const p=new Ge;p.checkColor(d),this.borderColor=p.color,this.borderStyle=f||"solid",this.borderWidth=u}if(o){const a=new Hu;a.fromData(o),this.fontStyle=a}}}function wP(e){const t=new _P;return t.fromData(e),t}const Bm={__name:"Language",props:{data:{type:Object,required:!0},breakpoint:{type:String,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onClose:{type:Function,default:()=>{},required:!1}},setup(e){const t=e,r=xe(()=>({...t.data,style:wP(t.data.style,t.data.props.layout)})),n=rn(t.data.icon);return(o,i)=>(D(),Ee(S(Fu),{"is-open":e.isOpen,"on-toggle":e.onToggle,"on-close":e.onClose,breakpoint:e.breakpoint,data:S(r),icons:S(n),class:Be("order-"+e.data.order)},null,8,["is-open","on-toggle","on-close","breakpoint","data","icons","class"]))}},SP=Object.freeze(Object.defineProperty({__proto__:null,default:Bm},Symbol.toStringTag,{value:"Module"}));class kP{constructor(){this.maxWidth="100%",this.maxHeight="auto"}fromData({width:t=null,height:r=null}){t&&(this.maxWidth=Ur(t)),r&&(this.maxHeight=Co(r))}}class xP{constructor(){this.padding=null,this.margin=null}fromData({padding:t=null,margin:r=null}){t&&(this.padding=`${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`),r&&(this.margin=`${r.top}
216px ${r.right}px ${r.bottom}px ${r.left}px`)}}class CP{constructor(){this.borderColor="",this.borderStyle="solid"}fromData({width:t=null,height:r=null,color:n="",borderStyle:o="solid",direction:i="horizontal"}){if(i==="horizontal"?(this.width=Ur(t||{}),this.borderBottomWidth=Co(r||{})):i==="vertical"&&(this.borderLeftWidth=Ur(t||{}),this.height=Co(r||{})),n){const s=new Ge;s.checkColor(n),this.borderColor=s.color}this.borderStyle=o}}function EP(e,t="space"){const r=t==="space"?new kP:new xP;return r.fromData(e),r}function TP(e){if(!e)return{};const t=new CP;return t.fromData(e),t}const Nm={__name:"Spacing",props:{data:{type:Object,required:!0}},setup(e){const t=e,{data:r}=t,n=xe(()=>EP(r.style,r.props.type)),o=xe(()=>TP(r.style));return(i,s)=>{var a;return D(),Ee(S(Ou),{class:Be("order-"+((a=S(r))==null?void 0:a.order)),style:se(S(n)),"divider-style":S(o),"is-divider":S(r).props.type==="divider"},null,8,["class","style","divider-style","is-divider"])}}},FP=Object.freeze(Object.defineProperty({__proto__:null,default:Nm},Symbol.toStringTag,{value:"Module"})),Hm={__name:"Label",props:{data:{type:Object,required:!1,default:!1}},setup(e){const t=e,{data:r}=it(t),n=xe(()=>{var s,a;return{...gn(((a=(s=r.value)==null?void 0:s.style)==null?void 0:a.fontProperties)||{})}}),o=xe(()=>{var s;return Eo({...(s=r.value)==null?void 0:s.style,fontProperties:null})}),i=xe(()=>{var f;const{url:s="",clickable:a=!1,linkType:d=1}=(f=r.value)==null?void 0:f.props;return a&&s?d===1?"a":"RouterLink":"div"});return(s,a)=>(D(),Ee(S(wm),{text:S(r).props.text,style:se(o.value),"label-style":n.value,"custom-wrapper":i.value,url:S(r).props.url},null,8,["text","style","label-style","custom-wrapper","url"]))}},AP=Object.freeze(Object.defineProperty({__proto__:null,default:Hm},Symbol.toStringTag,{value:"Module"})),$m={__name:"Label",props:{data:{type:Object,required:!0}},setup(e){return(t,r)=>{var o;const n=Hm;return D(),Ee(n,{data:e.data,class:Be(["order-"+((o=e.data)==null?void 0:o.order),"w-auto!"])},null,8,["data","class"])}}},PP=Object.freeze(Object.defineProperty({__proto__:null,default:$m},Symbol.toStringTag,{value:"Module"})),Vu={__name:"Identifier",props:{component:{type:Object,required:!0},rowOrder:{type:Number,required:!1,default:null}},setup(e){const t=e,{component:r}=it(t),n=o=>o?o.type:"div";return(o,i)=>(D(),Ee(Lt(n(S(r))),dr({data:S(r)},o.$attrs,{rowOrder:e.rowOrder}),null,16,["data","rowOrder"]))}},IP=Object.freeze(Object.defineProperty({__proto__:null,default:Vu},Symbol.toStringTag,{value:"Module"})),Um={__name:"Sidebar",props:{data:{type:Object,required:!1,default:!1},style:{type:Object,default:{}},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onOpen:{type:Function,default:()=>{},required:!1},onClose:{type:Function,default:()=>{},required:!1},slideDirection:{type:String,default:"right"},mainIconName:{type:String,default:"vpapps-font-menu-three-lines"},mainIconStyle:{type:Object,default:{}},closeIconName:{type:String,default:"vpapps-font-close-cancel"},closeIconStyle:{type:Object,default:{}},overlayStyle:{type:Object,default:{}}},setup(e){return(t,r)=>(D(),Ee(S(Lu),{"is-open":e.isOpen,"on-toggle":e.onToggle,"on-close":e.onClose,"slide-direction":"right","main-icon-style":e.mainIconStyle,"main-icon-name":e.mainIconName,"close-icon-name":e.closeIconName,"close-icon-style":e.closeIconStyle,style:se(e.style),"overlay-style":e.overlayStyle,"teleport-disabled":!1},{header:Te(()=>[Ze(t.$slots,"header")]),default:Te(()=>[Ze(t.$slots,"default")]),_:3},8,["is-open","on-toggle","on-close","main-icon-style","main-icon-name","close-icon-name","close-icon-style","style","overlay-style"]))}},RP=Object.freeze(Object.defineProperty({__proto__:null,default:Um},Symbol.toStringTag,{value:"Module"})),qm=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},OP={__name:"Sidebar",props:{data:{type:Object,required:!0},breakpoint:{type:String,required:!0},isOpen:{type:Boolean,required:!0},onToggle:{type:Function,required:!0},onClose:{type:Function,default:()=>{},required:!1}},setup(e){const t=e,r={menu:"HeaderV2Menu",label:"HeaderV2Label",language:"HeaderV2Language",logo:"HeaderV2Logo",spacing:"HeaderV2Spacing"},n=xe(()=>Eo(t.data.style)),o=xe(()=>Eo({background:t.data.style.overlay})),i=xe(()=>{const{style:d}=rn(t.data.components.main);return d}),s=xe(()=>{const{style:d}=rn(t.data.components.close);return d}),a=xe(()=>{const d=t.data.children.find(f=>f.type==="logo");if(!d)return"";
216if(d.style.alignment==="left")return"logoAligmentLeft";if(d.style.alignment==="right")return"logoAligmentRight";if(d.style.alignment==="center")return"logoAligmentCenter"});return(d,f)=>{var g;const u=Vu,p=Um;return D(),Ee(p,{data:e.data,class:Be("order-"+((g=e.data)==null?void 0:g.order)),"is-open":e.isOpen,"on-toggle":e.onToggle,"on-close":e.onClose,breakpoint:e.breakpoint,"slide-direction":"right","main-icon-style":i.value,"main-icon-name":e.data.components.main.props.name,"close-icon-name":e.data.components.close.props.name,"close-icon-style":s.value,style:se(n.value),"overlay-style":o.value},{header:Te(()=>{var y,v;return[(v=(y=e.data)==null?void 0:y.components)!=null&&v.logo?(D(),Ee(Bu,{key:0,breakpoint:e.breakpoint,data:e.data.components.logo},null,8,["breakpoint","data"])):le("",!0)]}),default:Te(()=>[(D(!0),V(qe,null,pt(e.data.children,y=>(D(),Ee(u,{data:y,component:{...y,type:r[y.type]},breakpoint:e.breakpoint,key:y.id,class:Be(a.value),"is-nested":"",onCloseSideBar:e.onClose},null,8,["data","component","breakpoint","class","onCloseSideBar"]))),128))]),_:1},8,["data","class","is-open","on-toggle","on-close","breakpoint","main-icon-style","main-icon-name","close-icon-name","close-icon-style","style","overlay-style"])}}},Vm=qm(OP,[["__scopeId","data-v-9c21a4f1"]]),DP=Object.freeze(Object.defineProperty({__proto__:null,default:Vm},Symbol.toStringTag,{value:"Module"})),LP=["id"],Wm={__name:"CustomComponent",props:{data:{type:Object,required:!0}},setup(e){const t=e,r=ue(null);return io(async()=>{try{const{data:n}=t,o=n.props.styleSource?[{href:n.props.styleSource,rel:"stylesheet",type:"text/css"}]:[],i=n.props.scriptSources.length?n.props.scriptSources.map(s=>({src:s,type:"application/javascript",tagPosition:"head",isSSR:!0})):[];mu({script:i,link:o})}catch{}}),(n,o)=>{var i;return D(),V("div",{id:e.data.props.id,ref_key:"customComponentRef",ref:r,class:Be("order-"+((i=e.data)==null?void 0:i.order))},null,10,LP)}}},jP=Object.freeze(Object.defineProperty({__proto__:null,default:Wm},Symbol.toStringTag,{value:"Module"}));class MP{constructor(){this.background="",this.backgroundColor=null,this.opacity=null}fromData({backgroundColor:t="",gradient:r=null,opacity:n=null}){const o=new Ge;o.checkColor(t),this.backgroundColor=o.color,r&&(this.background=Im(r)),this.opacity=n}}function BP(e){const t=new MP;return t.fromData(e),t}const NP=["is-sticky"],HP={key:0,class:"loading-sceleton"},$P={key:1,class:"flex"},UP={__name:"TheHeader",props:{headerData:{type:Object,required:!0}},setup(e){const t=e,r=ao(),n=ct(),{header:o,deviceType:i,pageType:s}=ot(r),{getToken:a,getProjectId:d}=ot(n),f=ue(""),u=ue(null);kt(()=>{Ln().path==="/results"&&u.value.onSearchToggle()});const p=E=>{const w=rr(),_=encodeURIComponent(E);w.push(`/results?query=${_}`)};(E=>{var _;const w=Ln();return w.path==="/results"?(f.value=(_=w.query)==null?void 0:_.query,!0):E})();const y=E=>t.headerData[i.value].components.find(_=>_.type===E);ue(!0);const v=xe(()=>{var w;if(s.value=="search"&&(d.value==="DZeEDLVEw1d"||d.value==="dV8MmwVEG2X"||d.value==="4k6EbkwN230"||d.value==="xj9NRWKMzm8"||d.value==="JkvEjBQEXV6"||d.value==="JkvEjrYEXV6"))return"#6E3CFF";if(s.value=="search"&&(d.value==="Z6wMB4kEl2n"||d.value==="lWjM5lgNAO7"))return"#FFFFFF";const E=new Ge;return E.checkColor((w=t.headerData[i.value].style)==null?void 0:w.backgroundColor),E.color}),k=xe(()=>BP(t.headerData[i.value].style)),C=xe(()=>{var E;return(E=t.headerData[i.value].style)!=null&&E.sticky?"position:fixed;top:0;width:100%":""});return(E,w)=>{var ie,ce,pe;const _=Bu,T=Pm,F=Rm,I=jm,P=Mm,H=Bm,$=Nm,ee=$m,j=Vm,W=Wm;return D(),V("div",{class:Be(["vp-header relative z-110",[S(i),{"backdrop-contrast-50":S(s)=="search"}]]),style:se(C.value),"is-sticky":!!((ie=t.headerData[S(i)].style)!=null&&ie.sticky)},[(pe=(ce=e.headerData)==null?void 0:ce[S(i)])!=null&&pe.components?(D(),V("div",$P,[Se(S(bm),{breakpoint:S(i),components:e.headerData[S(i)].components,style:se({...k.value,backgroundColor:v.value}),class:Be(["meni","z-10 grow"]),ref_key:"jHeader",ref:u},{logo:Te(({isOpen:ae,onToggle:me,item:ve})=>[Se(_,{breakpoint:S(i),"is-open":ae,data:ve,"on-toggle":me},null,8,["breakpoint","is-open","data","on-toggle"])]),search:Te(({isOpen:ae,onToggle:me,onClose:ve,item:Pe})=>[Se(T,{breakpoint:S(i),"is-open":ae,data:Pe,searchEnterCallback:p,clientSearchValue:f.value,"on-toggle":me,"on-close":ve,noSearchDataText:S(ti)("component_search_no_results")},null,8,["breakpoint","is-open","data","clientSearchValue","on-toggle","on-close","noSearchDataText"])]),menu:Te(({isOpen:ae,onToggle:me,onClose:ve,item:Pe})=>{var Re;return[wt(Se(F,{breakpoint:S(i),"is-open":ae,data:Pe,"logo-data":y("logo"),"on-toggle":me,"on-close":ve,class:Be(ae?"burger-menu":"")},null,8,["breakpoint","is-open","data","logo-data","on-toggle","on-close","class"]),[[Mt,!((Re=u.value)!=null&&Re.isSearchOpen)]])]}),notifications:Te(({isOpen:ae,onToggle:me,onClose:ve,item:Pe})=>[S(a)?(D(),Ee(I,{key:0,breakpoint:S(i),"is-open":ae,data:Pe,"on-toggle":me,"on-close":ve},null,8,["breakpoint","is-open","data","on-toggle","on-close"])):le("",!0)]),profile:Te(({isOpen:ae,onToggle:me,onClose:ve,item:Pe})=>[Se(P,{breakpoint:S(i),"is-open":ae,data:Pe,"on-toggle":me,"on-close":ve},null,8,["breakpoint","is-open","data","on-toggle","on-close"])]),languages:Te(({isOpen:ae,onToggle:me,onClose:ve,item:Pe})=>[Se(H,{breakpoint:S(i),"is-open":ae,data:Pe,"on-toggle":me,"on-close":ve},null,8,["breakpoint","is-open","data","on-toggle","on-close"])]),spacing:Te(({isOpen:ae,onToggle:me,item:ve})=>[Se($,{breakpoint:S(i),"is-open":ae,data:ve,"on-toggle":me},null,8,["breakpoint","is-open","data","on-toggle"])]),label:Te(()=>[Se(ee,{data:y("label")},null,8,["data"])]),sidebar:Te(({isOpen:ae,onToggle:me,onClose:ve,item:Pe})=>[Se(j,{breakpoint:S(i),"is-open":ae,data:Pe,"on-toggle":me,"on-close":ve},null,8,["breakpoint","is-open","data","on-toggle","on-close"])]),customComponent:Te(()=>{var ae;return[Se(W,{class:Be(["transition",((ae=u.value)==null?void 0:ae.isSearchOpen)&&"w-0! overflow-hidden!"]),data:y("customComponent")},null,8,["class","data"])]}),_:1}
216,8,["breakpoint","components","style"])])):(D(),V("div",HP,[Se(S(_m))]))],14,NP)}}},zm=qm(UP,[["__scopeId","data-v-aeab39b7"]]),qP=Object.freeze(Object.defineProperty({__proto__:null,default:zm},Symbol.toStringTag,{value:"Module"}));function VP(e,t){const r=t/e*100;return 2/Math.PI*100*Math.atan(r/50)}function WP(e={}){const{duration:t=2e3,throttle:r=200,hideDelay:n=500,resetDelay:o=400}=e,i=e.estimatedProgress||VP,s=Tt(),a=ue(0),d=ue(!1),f=ue(!1);let u=!1,p,g,y,v;const k=(P={})=>{_(),f.value=!1,C(0,P)};function C(P=0,H={}){if(s.isHydrating)return;if(P>=100)return w({force:H.force});T(),a.value=P<0?0:P;const $=H.force?0:r;$?g=setTimeout(()=>{d.value=!0,F()},$):(d.value=!0,F())}function E(){y=setTimeout(()=>{d.value=!1,v=setTimeout(()=>{a.value=0},o)},n)}function w(P={}){a.value=100,u=!0,T(),_(),P.error&&(f.value=!0),P.force?(a.value=0,d.value=!1):E()}function _(){clearTimeout(y),clearTimeout(v)}function T(){clearTimeout(g),cancelAnimationFrame(p)}function F(){u=!1;let P;function H($){if(u)return;P??(P=$);const ee=$-P;a.value=Math.max(0,Math.min(100,i(t,ee))),p=requestAnimationFrame(H)}p=requestAnimationFrame(H)}let I=()=>{};{const P=s.hook("page:loading:start",()=>{k()}),H=s.hook("page:loading:end",()=>{w()}),$=s.hook("vue:error",()=>w());I=()=>{$(),P(),H(),T()}}return{_cleanup:I,progress:xe(()=>a.value),isLoading:xe(()=>d.value),error:xe(()=>f.value),start:k,set:C,finish:w,clear:T}}function zP(e={}){const t=Tt(),r=t._loadingIndicator||(t._loadingIndicator=WP(e));return no()&&(t._loadingIndicatorDeps||(t._loadingIndicatorDeps=0),t._loadingIndicatorDeps++,eo(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(r._cleanup(),delete t._loadingIndicator)})),r}const KP=ur({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:r}){const{progress:n,isLoading:o,error:i,start:s,finish:a,clear:d}=zP({duration:e.duration,throttle:e.throttle,estimatedProgress:e.estimatedProgress});return r({progress:n,isLoading:o,error:i,start:s,finish:a,clear:d}),()=>br("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:o.value?1:0,background:i.value?e.errorColor:e.color||void 0,backgroundSize:`${100/n.value*100}% auto`,transform:`scaleX(${n.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),Km=(e="RouteProvider")=>ur({name:e,props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,o={};for(const i in t.route)Object.defineProperty(o,i,{get:()=>r===t.renderKey?t.route[i]:n[i],enumerable:!0});return Xn(Ga,Cn(o)),()=>br(t.vnode,{ref:t.vnodeRef})}}),JP=Km(),up=new WeakMap,GP=ur({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:n}){const o=Tt(),i=ue(),s=$t(Ga,null);let a;n({pageRef:i});const d=$t(w1,null);let f;const u=o.deferHydration();if(o.isHydrating){const g=o.hooks.hookOnce("app:error",u);rr().beforeEach(g)}e.pageKey&&cr(()=>e.pageKey,(g,y)=>{g!==y&&o.callHook("page:loading:start")});let p=!1;{const g=rr().beforeResolve(()=>{p=!1});oo(()=>{g()})}return()=>br(Xg,{name:e.name,route:e.route,...t},{default:g=>{const y=ZP(s,g.route,g.Component),v=s&&s.matched.length===g.route.matched.length;if(!g.Component){if(f&&!v)return f;u();return}if(f&&d&&!d.isCurrent(g.route))return f;if(y&&s&&(!d||d!=null&&d.isCurrent(s)))return v?f:null;const k=Ec(g,e.pageKey),C=XP(s,g.route,g.Component);!o.isHydrating&&a===k&&!C&&(o.callHook("page:loading:end"),p=!0),a=k;const E=!!(e.transition??g.route.meta.pageTransition??pc),w=E&&YP([e.transition,g.route.meta.pageTransition,pc,{onAfterLeave:()=>{o.callHook("page:transition:finish",g.Component)}}]),_=e.keepalive??g.route.meta.keepalive??o1;return f=FS(E&&w,xS(_,br(iu,{suspensible:!0,onPending:()=>o.callHook("page:start",g.Component),onResolve:()=>{or(()=>o.callHook("page:finish",g.Component).then(()=>
216{if(!p&&!C)return p=!0,o.callHook("page:loading:end")}).finally(u))}},{default:()=>{const T={key:k||void 0,vnode:r.default?QP(r.default,g):g.Component,route:g.route,renderKey:k||void 0,trackRootNodes:E,vnodeRef:i};if(!_)return br(JP,T);const F=g.Component.type,I=F;let P=up.get(I);return P||(P=Km(F.name||F.__name),up.set(I,P)),br(P,T)}}))).default(),f}})}});function YP(e){const t=e.filter(Boolean).map(r=>({...r,onAfterLeave:r.onAfterLeave?wu(r.onAfterLeave):void 0}));return Eg(...t)}function ZP(e,t,r){if(!e)return!1;const n=t.matched.findIndex(o=>{var i;return((i=o.components)==null?void 0:i.default)===(r==null?void 0:r.type)});return!n||n===-1?!1:t.matched.slice(0,n).some((o,i)=>{var s,a,d;return((s=o.components)==null?void 0:s.default)!==((d=(a=e.matched[i])==null?void 0:a.components)==null?void 0:d.default)})||r&&Ec({route:t,Component:r})!==Ec({route:e,Component:r})}function XP(e,t,r){return e?t.matched.findIndex(o=>{var i;return((i=o.components)==null?void 0:i.default)===(r==null?void 0:r.type)})<t.matched.length-1:!1}function QP(e,t){const r=e(t);return r.length===1?br(r[0]):br(qe,void 0,r)}const e5={class:"vp-footer relative"},t5={key:0},Jm={__name:"TheFooter",props:{footerData:{type:Object,required:!1}},setup(e){const t=ct(),{getProjectId:r}=ot(t),n=ao(),{deviceType:o}=ot(n),i={image:"FooterImage",label:"FooterLabel",logo:"FooterLogo",menu:"FooterMenu",spacing:"FooterSpacing",SocialMedia:"FooterSocialMedia"};return(s,a)=>{var f;const d=Vu;return D(),V("div",e5,[e.footerData?(D(),V("div",t5,[Se(S(mm),{ref:"jFooter",style:se((f=e.footerData[S(o)])==null?void 0:f.style)},{default:Te(()=>{var u;return[(D(!0),V(qe,null,pt((u=e.footerData[S(o)])==null?void 0:u.children,p=>(D(),Ee(S(Sm),{key:p.id,"x-alignment":p.props.xAlignment,"y-alignment":p.props.yAlignment,"is-container":p.style.isContainer},{default:Te(()=>[(D(!0),V(qe,null,pt(p==null?void 0:p.children,g=>{var y;return D(),Ee(S(fm),{key:g.id,columns:g.props.columns,orientation:(y=g.style)==null?void 0:y.orientation,style:se(g.colStyle)},{default:Te(()=>[(D(!0),V(qe,null,pt(g.children,v=>(D(),Ee(d,{component:{...v,type:i[v.type]},key:v.id},null,8,["component"]))),128))]),_:2},1032,["columns","orientation","style"])}),128))]),_:2},1032,["x-alignment","y-alignment","is-container"]))),128))]}),_:1}
216,8,["style"])])):le("",!0)])}}},r5=Object.freeze(Object.defineProperty({__proto__:null,default:Jm},Symbol.toStringTag,{value:"Module"})),n5=()=>Tt().$device,o5=()=>{const e=ao();e.UPDATE_WINDOW_WIDTH(window.innerWidth),window.addEventListener("resize",()=>{e.UPDATE_WINDOW_WIDTH(window.innerWidth)})};const i5={key:1,class:"limit-to-load-row h-px bg-transparent z-1111 relative bottom-0 w-full",ref:"loadMoreRows"},s5={__name:"app",async setup(e){var ce;let t,r;const n=Ln(),o=ao(),i=ol(),s=Lm(),a=Rc(),d=ct(),{getProjectId:f}=ot(d),u=en(),{isMobile:p,isTablet:g,isDesktop:y}=n5();o.setDeviceType(p,g,y),o.SET_CONFIG(u);const{global:v,getPalette:k,getIconPack:C,getFontPack:E}=ot(o),{isRedirectingToLogin:w}=ot(a),{user:_,userSubId:T,userToken:F}=ot(i),I=Dl("header-shallow-state",()=>Tn({deep:"not reactive"})),P=Dl("footer-shallow-state",()=>Tn({deep:"not reactive"}));Dl("script-shallow-state",()=>Tn({deep:"not reactive"}));const H=ue(null),$=ue(null),ee=ue(!0),j=ue("en"),W=ue(!1);n.path.includes("/embed")&&(W.value=!0);const ie=pe=>{const{omitHeaderFooter:ae}=pe??{};ae&&ae===!0?ee.value=!1:ee.value=!0};[t,r]=ih(async()=>Su(async()=>{},"$O5ue-YpHCB")),await t,r(),j.value=((ce=v.value.language)==null?void 0:ce.locale)||"en",k4(j.value),kt(async()=>{await i.setUserManager();try{await i.getUser()}catch(pe){console.error(pe)}window.tonos_integration_content_id!==void 0&&window.tonos_integration_application_id!==void 0?await i.getTonosAccess():console.log("no tonos integration"),f.value==="rWbMwrOxNq2"&&(cr(F,pe=>{pe&&localStorage.setItem("tonosAccessToken",pe)},{immediate:!0}),tonosHandler.init()),window.vpappsLogin=i.callLoginForTonos,window.vpappsLogout=i.callLogOut,window.vpappsUser=_.value,window.vpAppsLoginRedirect=i.callLogin,W.value;try{await s.createConnection()}catch(pe){console.error(pe)}console.log("time app.vue onMounted end")}),io(async()=>{console.log("time app.vue onMounted start"),o5()});try{en().public.disableCache||void 0}catch(pe){console.error(pe)}return(pe,ae)=>{const me=zm,ve=KP,Pe=GP,Re=Jm;return D(),V("div",{class:Be(["vp-app h-auto min-h-max flex flex-col grow",W.value||!W.value&&ee.value?null:"no-header-footer"]),style:se($.value)},[!W.value&&ee.value?(D(),Ee(me,{key:0,headerData:S(I)},null,8,["headerData"])):le("",!0),Se(ve,{height:4,color:"#3b3b3b",class:"z-1111 opacity-100!"}),Se(Pe,{ssrPageData:H.value,managePageStyle:ie},null,8,["ssrPageData"]),!W.value&&ee.value?(D(),V("div",i5,null,512)):le("",!0),!W.value&&ee.value?(D(),Ee(Re,{key:2,footerData:S(P)},null,8,["footerData"])):le("",!0)],6)}}},Oc=Symbol("head-component"),Wu={body:{type:Boolean,default:void 0},tagPosition:{type:String}},ys=e=>{const t=Object.fromEntries(Object.entries(e).filter(([r,n])=>n!==void 0));return typeof t.body<"u"&&(t.tagPosition=t.body?"bodyClose":"head"),typeof t.renderPriority<"u"&&(t.tagPriority=t.renderPriority),t};function Ao(){return $t(Oc,Gm,!0)}function Gm(){const e=$t(Oc,null);if(e)return e;const t=nn({}),r=mu(t),n={input:t,entry:r};return Xn(Oc,n),n}const ui={accesskey:String,autocapitalize:String,autofocus:{type:Boolean,default:void 0},class:{type:[String,Object,Array],default:void 0},contenteditable:{type:Boolean,default:void 0},contextmenu:String,dir:String,draggable:{type:Boolean,default:void 0},enterkeyhint:String,exportparts:String,hidden:{type:Boolean,default:void 0},id:String,inputmode:String,is:String,itemid:String,itemprop:String,itemref:String,itemscope:String,itemtype:String,lang:String,nonce:String,part:String,slot:String,spellcheck:{type:Boolean,default:void 0},style:{type:[String,Object,Array],default:void 0},tabindex:String,title:String,translate:String,renderPriority:[String,Number],tagPriority:{type:[String,Number]}};({...ui,...Wu});const B5=ur({name:"Link",inheritAttrs:!1,props:{...ui,...Wu,as:String,crossorigin:String,disabled:Boolean,fetchpriority:String,href:String,hreflang:String,imagesizes:String,imagesrcset:String,integrity:String,media:String,prefetch:{type:Boolean,default:void 0},referrerpolicy:String,rel:String,sizes:String,title:String,type:String,methods:String,target:String},setup(e){const{input:t}=Ao();t.link||(t.link=[]);const r=t.link.push({})-1;return fr(()=>t.link[r]=null),()=>(t.link[r]=ys(e),null)}});({...ui});const a5=ur({name:"Title",inheritAttrs:!1,setup(e,{slots:t}){const{input:r}=Ao();return fr(()=>r.title=null),()=>{var o,i,s;const n=(o=t.default)==null?void 0:o.call(t);return r.title=(i=n==null?void 0:n[0])!=null&&i.children?String((s=n==null?void 0:n[0])==null?void 0:s.children):void 0,null}}}),l5=ur({name:"Meta",inheritAttrs:!1,props:{...ui,charset:String,content:String,httpEquiv:String,name:String,property:String},setup(e){const{input:t}=Ao();t.meta||(t.meta=[]);const r=t.meta.push({})-1;return fr(()=>t.meta[r]=null),()=>{const n={"http-equiv":e.httpEquiv,...ys(e)};return"httpEquiv"in n&&delete n.httpEquiv,t.meta[r]=n,null}}});({...ui,...Wu});const c5=ur({name:"Head",inheritAttrs:!1,setup:(e,t)=>(Gm(),()=>{var r,n;
216return(n=(r=t.slots).default)==null?void 0:n.call(r)})});({...ui});const u5={class:"not-found-page not-found-container container mx-auto text-center"},f5={class:"text-white"},d5={__name:"error",props:{error:Object},setup(e){const t=()=>Pg({redirect:"/"});return(r,n)=>{const o=a5,i=l5,s=c5;return D(),V("div",u5,[Se(s,null,{default:Te(()=>[Se(o,null,{default:Te(()=>[tt(ge(e.error.statusCode),1)]),_:1}),Se(i,{name:"description",content:S(ti)("page_server_error_description")},null,8,["content"])]),_:1}),B("pre",f5,ge(e.error),1),B("h1",null,ge(e.error.statusCode),1),B("p",null,ge(S(ti)("page_server_error_description")),1),B("button",{onClick:t},"Clear errors")])}}},p5={key:0},fp={__name:"nuxt-root",setup(e){const t=()=>null,r=Tt(),n=r.deferHydration();if(r.isHydrating){const d=r.hooks.hookOnce("app:error",n);rr().beforeEach(d)}const o=!1;Xn(Ga,Ln()),r.hooks.callHookWith(d=>d.map(f=>f()),"vue:setup");const i=Ya(),s=!1;Yc((d,f,u)=>{if(r.hooks.callHook("vue:error",d,f,u).catch(p=>console.error("[nuxt] Error in `vue:error` hook",p)),Ig(d)&&(d.fatal||d.unhandled))return r.runWithContext(()=>zn(d)),!1});const a=!1;return(d,f)=>(D(),Ee(iu,{onResolve:S(n)},{default:Te(()=>[S(s)?(D(),V("div",p5)):S(i)?(D(),Ee(S(d5),{key:1,error:S(i)},null,8,["error"])):S(a)?(D(),Ee(S(t),{key:2,context:S(a)},null,8,["context"])):S(o)?(D(),Ee(Lt(S(o)),{key:3})):(D(),Ee(S(s5),{key:4}))]),_:1},8,["onResolve"]))}};let dp;{let e;dp=async function(){var s,a;if(e)return e;const n=!!(((s=window.__NUXT__)==null?void 0:s.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?uu(fp):ha(fp),o=u1({vueApp:n});async function i(d){var f;await o.callHook("app:error",d),(f=o.payload).error||(f.error=Za(d))}n.config.errorHandler=i,o.hook("app:suspense:resolve",()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)});try{await p1(o,hC)}catch(d){i(d)}try{await o.hooks.callHook("app:created",n),await o.hooks.callHook("app:beforeMount",n),n.mount(a1),await o.hooks.callHook("app:mounted",n),await or()}catch(d){i(d)}return n},e=dp().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ti as $,Se as A,se as B,wt as C,Mt as D,Fg as E,XA as F,tt as G,c5 as H,qe as I,pt as J,Vu as K,B5 as L,l5 as M,Lm as N,fr as O,mu as P,Gv as Q,Ze as R,La as S,a5 as T,Va as U,Lt as V,dr as W,Yv as X,Zo as Y,Be as Z,qm as _,B as a,nh as a$,ai as a0,nn as a1,cr as a2,$s as a3,Oh as a4,pa as a5,y5 as a6,it as a7,rn as a8,km as a9,zt as aA,Z3 as aB,gm as aC,Em as aD,HF as aE,ns as aF,Cm as aG,xm as aH,jn as aI,cA as aJ,lA as aK,Mr as aL,Hu as aM,r4 as aN,OT as aO,Im as aP,I6 as aQ,v5 as aR,tw as aS,St as aT,eo as aU,Cr as aV,Eg as aW,Tt as aX,ow as aY,Qd as aZ,_5 as a_,Co as aa,Ur as ab,On as ac,D5 as ad,c4 as ae,Su as af,VC as ag,vk as ah,nm as ai,gs as aj,A4 as ak,en as al,Ei as am,dP as an,N2 as ao,fm as ap,I5 as aq,S5 as ar,dm as as,VE as at,gn as au,P5 as av,Ge as aw,HA as ax,NA as ay,oA as az,ct as b,so as b0,Zs as b1,li as b2,ei as b3,Zd as b4,Eo as b5,$6 as b6,D6 as b7,ju as b8,N6 as b9,ek as bA,vt as bB,Ja as bC,jr as bD,Q0 as bE,Qb as bF,i0 as bG,br as bH,vm as ba,TP as bb,EP as bc,rs as bd,tF as be,sF as bf,qA as bg,VA as bh,uF as bi,Sm as bj,eu as bk,xu as bl,dF as bm,An as bn,xF as bo,w5 as bp,ur as bq,Xn as br,cs as bs,Hm as bt,Jc as bu,m5 as bv,dg as bw,no as bx,Sn as by,Tn as bz,V as c,rr as d,io as e,S as f,Ic as g,pk as h,R5 as i,ao as j,Ln as k,ue as l,oo as m,b5 as n,D as o,kt as p,xe as q,O5 as r,ot as s,ge as t,ol as u,or as v,ih as w,Ee as x,Te as y,le as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.