vendor: 6,127 bytes, lines 1-2
1/*! For license information please see bundle.js.LICENSE.txt */ 2(()=>{var e,t,n={50953(e,t,n){"use strict";n.d(t,{BA:()=>Ue,C4:()=>E,EW:()=>Qe,Gc:()=>Se,IG:()=>Pe,IJ:()=>De,KR:()=>Me,Kh:()=>we,PP:()=>Ze,Pr:()=>$e,QW:()=>Ge,QZ:()=>O,R1:()=>Be,Tm:()=>Te,Ul:()=>Je,X2:()=>d,Yv:()=>rt,a1:()=>Le,bl:()=>x,ch:()=>ot,ds:()=>C,fE:()=>Ae,g8:()=>Ce,hV:()=>st,hZ:()=>U,i9:()=>je,jr:()=>c,ju:()=>Ee,lJ:()=>Ie,lW:()=>Ke,mu:()=>Fe,nD:()=>_e,o5:()=>l,qA:()=>$,rY:()=>We,tB:()=>ke,u4:()=>B,uY:()=>a,ux:()=>xe,wB:()=>it,yC:()=>s});var r=n(90033);let o,i;class s{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){1===++this._on&&(this.prevScope=o,o=this)}off(){this._on>0&&0===--this._on&&(o=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function a(e){return new s(e)}function l(){return o}function c(e,t=!1){o&&o.cleanups.push(e)}const u=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,o&&o.active&&o.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,u.has(this)&&(u.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||m(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,P(this),y(this);const e=i,t=T;i=this,T=!0;try{return this.fn()}finally{0,b(this),i=e,T=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)k(e);this.deps=this.depsTail=void 0,P(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){w(this)&&this.run()}get dirty(){return w(this)}}let p,f,h=0;function m(e,t=!1){if(e.flags|=8,t)return e.next=f,void(f=e);e.next=p,p=e}function v(){h++}function g(){if(--h>0)return;if(f){let e=f;for(f=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;p;){let t=p;for(p=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function y(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function b(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),k(r),_(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function w(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(S(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function S(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===I)return;if(e.globalVersion=I,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!w(e)))return;e.flags|=2;const t=e.dep,n=i,o=T;i=e,T=!0;try{y(e);const n=e.fn(e._value);(0===t.version||(0,r.$H)(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{i=n,T=o,b(e),e.flags&=-3}}function k(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)k(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function _(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function O(e,t){e.effect instanceof d&&(e=e.effect.fn);const n=new d(e);t&&(0,r.X$)(n,t);try{n.run()}catch(e){throw n.stop(),e}const o=n.run.bind(n);return o.effect=n,o}function C(e){e.effect.stop()}let T=!0;const A=[];function E(){A.push(T),T=!1}function x(){const e=A.pop();T=void 0===e||e}function P(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=i;i=void 0;try{t()}finally{i=e}}}let I=0;class L{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class j{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!i||!T||i===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink=new L(i,this),i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,M(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,I++,this.notify(e)}notify(e){v();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{g()}}}function M(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)M(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const D=new WeakMap,R=Symbol(""),N=Symbol(""),F=Symbol("");function B(e,t,n){if(T&&i){let t=D.get(e);t||D.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new j),r.map=t,r.key=n),r.track()}}function U(e,t,n,o,i,s){const a=D.get(e);if(!a)return void I++;const l=e=>{e&&e.trigger()};
2if(v(),"clear"===t)a.forEach(l);else{const i=(0,r.cy)(e),s=i&&(0,r.yI)(n);if(i&&"length"===n){const e=Number(o);a.forEach((t,n)=>{("length"===n||n===F||!(0,r.Bm)(n)&&n>=e)&&l(t)})}else switch((void 0!==n||a.has(void 0))&&l(a.get(n)),s&&l(a.get(F)),t){case"add":i?s&&l(a.get("length")):(l(a.get(R)),(0,r.CE)(e)&&l(a.get(N)));break;case"delete":i||(l(a.get(R)),(0,r.CE)(e)&&l(a.get(N)));break;case"set":(0,r.CE)(e)&&l(a.get(R))}}g()}function H(e){const t=xe(e);return t===e?t:(B(t,0,F),Ae(e)?t:t.map(Ie))}function $(e){return B(e=xe(e),0,F),e}function z(e,t){return Te(e)?Ce(e)?Le(Ie(t)):Le(t):Ie(t)}const W={__proto__:null,[Symbol.iterator](){return G(this,Symbol.iterator,e=>z(this,e))},concat(...e){return H(this).concat(...e.map(e=>(0,r.cy)(e)?H(e):e))},entries(){return G(this,"entries",e=>(e[1]=z(this,e[1]),e))},every(e,t){return V(this,"every",e,t,void 0,arguments)},filter(e,t){return V(this,"filter",e,t,e=>e.map(e=>z(this,e)),arguments)},find(e,t){return V(this,"find",e,t,e=>z(this,e),arguments)},findIndex(e,t){return V(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return V(this,"findLast",e,t,e=>z(this,e),arguments)},findLastIndex(e,t){return V(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return V(this,"forEach",e,t,void 0,arguments)},includes(...e){return q(this,"includes",e)},indexOf(...e){return q(this,"indexOf",e)},join(e){return H(this).join(e)},lastIndexOf(...e){return q(this,"lastIndexOf",e)},map(e,t){return V(this,"map",e,t,void 0,arguments)},pop(){return Y(this,"pop")},push(...e){return Y(this,"push",e)},reduce(e,...t){return K(this,"reduce",e,t)},reduceRight(e,...t){return K(this,"reduceRight",e,t)},shift(){return Y(this,"shift")},some(e,t){return V(this,"some",e,t,void 0,arguments)},splice(...e){return Y(this,"splice",e)},toReversed(){return H(this).toReversed()},toSorted(e){return H(this).toSorted(e)},toSpliced(...e){return H(this).toSpliced(...e)},unshift(...e){return Y(this,"unshift",e)},values(){return G(this,"values",e=>z(this,e))}};function G(e,t,n){const r=$(e),o=r[t]();return r===e||Ae(e)||(o._next=o.next,o.next=()=>{const e=o._next();return e.done||(e.value=n(e.value)),e}),o}const X=Array.prototype;function V(e,t,n,r,o,i){const s=$(e),a=s!==e&&!Ae(e),l=s[t];if(l!==X[t]){const t=l.apply(e,i);return a?Ie(t):t}let c=n;s!==e&&(a?c=function(t,r){return n.call(this,z(e,t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));const u=l.call(s,c,r);return a&&o?o(u):u}function K(e,t,n,r){const o=$(e),i=o!==e&&!Ae(e);let s=n,a=!1;o!==e&&(i?(a=0===r.length,s=function(t,r,o){return a&&(a=!1,t=z(e,t)),n.call(this,t,z(e,r),o,e)}):n.length>3&&(s=function(t,r,o){return n.call(this,t,r,o,e)}));const l=o[t](s,...r);return a?z(e,l):l}function q(e,t,n){const r=xe(e);B(r,0,F);const o=r[t](...n);return-1!==o&&!1!==o||!Ee(n[0])?o:(n[0]=xe(n[0]),r[t](...n))}function Y(e,t,n=[]){E(),v();const r=xe(e)[t].apply(e,n);return g(),x(),r}const Q=(0,r.pD)("__proto__,__v_isRef,__isVue"),J=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.Bm));function Z(e){(0,r.Bm)(e)||(e=String(e));const t=xe(this);return B(t,0,e),t.hasOwnProperty(e)}class ee{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?be:ye:i?ge:ve).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=(0,r.cy)(e);if(!o){let e;if(s&&(e=W[t]))return e;if("hasOwnProperty"===t)return Z}const a=Reflect.get(e,t,je(e)?e:n);if((0,r.Bm)(t)?J.has(t):Q(t))return a;if(o||B(e,0,t),i)return a;if(je(a)){const e=s&&(0,r.yI)(t)?a:a.value;return o&&(0,r.Gv)(e)?ke(e):e}return(0,r.Gv)(a)?o?ke(a):we(a):a}}class te extends ee{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];const s=(0,r.cy)(e)&&(0,r.yI)(t);if(!this._isShallow){const e=Te(i);if(Ae(n)||Te(n)||(i=xe(i),n=xe(n)),!s&&je(i)&&!je(n))return e||(i.value=n),!0}const a=s?Number(t)<e.length:(0,r.$3)(e,t),l=Reflect.set(e,t,n,je(e)?e:o);return e===xe(o)&&(a?(0,r.$H)(n,i)&&U(e,"set",t,n):U(e,"add",t,n)),l}deleteProperty(e,t){const n=(0,r.$3)(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&U(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return(0,r.Bm)(t)&&J.has(t)||B(e,0,t),n}ownKeys(e){return B(e,0,(0,r.cy)(e)?"length":R),Reflect.ownKeys(e)}}class ne extends ee{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const re=new te,oe=new ne,ie=new te(!0),se=new ne(!0),ae=e=>e,le=e=>Reflect.getPrototypeOf(e);function ce(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ue(e,t){const n={get(n){const o=this.__v_raw,i=xe(o),s=xe(n);e||((0,r.$H)(n,s)&&B(i,0,n),B(i,0,s));const{has:a}=le(i),l=t?ae:e?Le:Ie;return a.call(i,n)?l(o.get(n)):a.call(i,s)?l(o.get(s)):void(o!==i&&o.get(n))},get size(){const t=this.__v_raw;return!e&&B(xe(t),0,R),t.size},has(t){const n=this.__v_raw,o=xe(n),i=xe(t);return e||((0,r.$H)(t,i)&&B(o,0,t),B(o,0,i)),t===i?n.has(t):n.has(t)||n.has(i)}
2,forEach(n,r){const o=this,i=o.__v_raw,s=xe(i),a=t?ae:e?Le:Ie;return!e&&B(s,0,R),i.forEach((e,t)=>n.call(r,a(e),a(t),o))}};(0,r.X$)(n,e?{add:ce("add"),set:ce("set"),delete:ce("delete"),clear:ce("clear")}:{add(e){const n=xe(this),o=le(n),i=xe(e),s=t||Ae(e)||Te(e)?e:i;return o.has.call(n,s)||(0,r.$H)(e,s)&&o.has.call(n,e)||(0,r.$H)(i,s)&&o.has.call(n,i)||(n.add(s),U(n,"add",s,s)),this},set(e,n){t||Ae(n)||Te(n)||(n=xe(n));const o=xe(this),{has:i,get:s}=le(o);let a=i.call(o,e);a||(e=xe(e),a=i.call(o,e));const l=s.call(o,e);return o.set(e,n),a?(0,r.$H)(n,l)&&U(o,"set",e,n):U(o,"add",e,n),this},delete(e){const t=xe(this),{has:n,get:r}=le(t);let o=n.call(t,e);o||(e=xe(e),o=n.call(t,e));r&&r.call(t,e);const i=t.delete(e);return o&&U(t,"delete",e,void 0),i},clear(){const e=xe(this),t=0!==e.size,n=e.clear();return t&&U(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=function(e,t,n){return function(...o){const i=this.__v_raw,s=xe(i),a=(0,r.CE)(s),l="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=i[e](...o),d=n?ae:t?Le:Ie;return!t&&B(s,0,c?N:R),(0,r.X$)(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(o,e,t)}),n}function de(e,t){const n=ue(e,t);return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.$3)(n,o)&&o in t?n:t,o,i)}const pe={get:de(!1,!1)},fe={get:de(!1,!0)},he={get:de(!0,!1)},me={get:de(!0,!0)};const ve=new WeakMap,ge=new WeakMap,ye=new WeakMap,be=new WeakMap;function we(e){return Te(e)?e:Oe(e,!1,re,pe,ve)}function Se(e){return Oe(e,!1,ie,fe,ge)}function ke(e){return Oe(e,!0,oe,he,ye)}function _e(e){return Oe(e,!0,se,me,be)}function Oe(e,t,n,o,i){if(!(0,r.Gv)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.Zf)(a));var a;if(0===s)return e;const l=i.get(e);if(l)return l;const c=new Proxy(e,2===s?o:n);return i.set(e,c),c}function Ce(e){return Te(e)?Ce(e.__v_raw):!(!e||!e.__v_isReactive)}function Te(e){return!(!e||!e.__v_isReadonly)}function Ae(e){return!(!e||!e.__v_isShallow)}function Ee(e){return!!e&&!!e.__v_raw}function xe(e){const t=e&&e.__v_raw;return t?xe(t):e}function Pe(e){return!(0,r.$3)(e,"__v_skip")&&Object.isExtensible(e)&&(0,r.yQ)(e,"__v_skip",!0),e}const Ie=e=>(0,r.Gv)(e)?we(e):e,Le=e=>(0,r.Gv)(e)?ke(e):e;function je(e){return!!e&&!0===e.__v_isRef}function Me(e){return Re(e,!1)}function De(e){return Re(e,!0)}function Re(e,t){return je(e)?e:new Ne(e,t)}class Ne{constructor(e,t){this.dep=new j,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:xe(e),this._value=t?e:Ie(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Ae(e)||Te(e);e=n?e:xe(e),(0,r.$H)(e,t)&&(this._rawValue=e,this._value=n?e:Ie(e),this.dep.trigger())}}function Fe(e){e.dep&&e.dep.trigger()}function Be(e){return je(e)?e.value:e}function Ue(e){return(0,r.Tn)(e)?e():Be(e)}const He={get:(e,t,n)=>"__v_raw"===t?e:Be(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return je(o)&&!je(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function $e(e){return Ce(e)?e:new Proxy(e,He)}class ze{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new j,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function We(e){return new ze(e)}function Ge(e){const t=(0,r.cy)(e)?new Array(e.length):{};for(const n in e)t[n]=qe(e,n);return t}class Xe{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=xe(e);let o=!0,i=e;if(!(0,r.cy)(e)||!(0,r.yI)(String(t)))do{o=!Ee(i)||Ae(i)}while(o&&(i=i.__v_raw));this._shallow=o}get value(){let e=this._object[this._key];return this._shallow&&(e=Be(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&je(this._raw[this._key])){const t=this._object[this._key];if(je(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=D.get(e);return n&&n.get(t)}(this._raw,this._key)}}class Ve{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ke(e,t,n){return je(e)?e:(0,r.Tn)(e)?new Ve(e):(0,r.Gv)(e)&&arguments.length>1?qe(e,t,n):Me(e)}function qe(e,t,n){return new Xe(e,t,n)}class Ye{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new j(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=I-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||i===this))return m(this,!0),!0}get value(){const e=this.dep.track();return S(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Qe(e,t,n=!1){let o,i;(0,r.Tn)(e)?o=e:(o=e.get,i=e.set);return new Ye(o,i,n)}const Je={GET:"get",HAS:"has",ITERATE:"iterate"},Ze={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},et={},tt=new WeakMap;let nt;function rt(){return nt}function ot(e,t=!1,n=nt){if(n){let t=tt.get(n);t||tt.set(n,t=[]),t.push(e)}else 0}function it(e,t,n=r.MZ){const{immediate:o,deep:i,once:s,scheduler:a,augmentJob:c,call:u}=n,p=e=>i?e:Ae(e)||!1===i||0===i?st(e,1):st(e);let f,h,m,v,g=!1,y=!1;if(je(e)?(h=()=>e.value,g=Ae(e)):Ce(e)?(h=()=>p(e),g=!0):(0,r.cy)(e)?(y=!0,g=e.some(e=>Ce(e)||Ae(e)),h=()=>e.map(e=>je(e)?e.value:Ce(e)?p(e):(0,r.Tn)(e)?u?u(e,2):e():void 0)):h=(0,r.Tn)(e)?t?u?()=>u(e,2):e:()=>{if(m){E();try{m()}finally{x()}}const t=nt;nt=f;try{return u?u(e,3,[v]):e(v)}finally{nt=t}}:r.tE,t&&i){const e=h,t=!0===i?1/0:i;h=()=>st(e(),t)}const b=l(),w=()=>{f.stop(),b&&b.active&&(0,r.TF)(b.effects,f)};if(s&&t){const e=t;t=(...t)=>{e(...t),w()}}let S=y?new Array(e.length).fill(et):et;const k=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(i||g||(y?e.some((e,t)=>(0,r.$H)(e,S[t])):(0,r.$H)(e,S))){m&&m();const n=nt;nt=f;try{const n=[e,S===et?void 0:y&&S[0]===et?[]:S,v];S=e,u?u(t,3,n):t(...n)}finally{nt=n}}}else f.run()};
2return c&&c(k),f=new d(h),f.scheduler=a?()=>a(k,!1):k,v=e=>ot(e,!1,f),m=f.onStop=()=>{const e=tt.get(f);if(e){if(u)u(e,4);else for(const t of e)t();tt.delete(f)}},t?o?k(!0):S=f.run():a?a(k.bind(null,!0),!0):f.run(),w.pause=f.pause.bind(f),w.resume=f.resume.bind(f),w.stop=w,w}function st(e,t=1/0,n){if(t<=0||!(0,r.Gv)(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,je(e))st(e.value,t,n);else if((0,r.cy)(e))for(let r=0;r<e.length;r++)st(e[r],t,n);else if((0,r.vM)(e)||(0,r.CE)(e))e.forEach(e=>{st(e,t,n)});else if((0,r.Qd)(e)){for(const r in e)st(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&st(e[r],t,n)}return e}},20641(e,t,n){"use strict";n.d(t,{$V:()=>Xe,$u:()=>lt,$y:()=>yt,BA:()=>r.BA,Bi:()=>Oe,Bs:()=>ao,C4:()=>o.C4,CE:()=>hr,Df:()=>ke,Dl:()=>k,E:()=>Xt,E3:()=>Cr,EW:()=>ro,EY:()=>rr,FK:()=>nr,Fv:()=>Ar,Fw:()=>$,GM:()=>Dt,Gc:()=>r.Gc,Gt:()=>B,Gw:()=>ho,Gy:()=>de,H4:()=>d,HF:()=>zt,Ht:()=>Bt,IG:()=>r.IG,IJ:()=>r.IJ,Ic:()=>at,Im:()=>se,K9:()=>Fn,KC:()=>it,KR:()=>r.KR,Kf:()=>o.rU,Kh:()=>r.Kh,LJ:()=>mo,LM:()=>z,Lk:()=>Sr,Lu:()=>Rt,MZ:()=>Se,Mw:()=>or,NP:()=>Nt,Ng:()=>Or,OA:()=>Ut,OW:()=>ye,PP:()=>r.PP,PR:()=>qe,PS:()=>H,PT:()=>o.PT,Pn:()=>$e,Pr:()=>r.Pr,Q3:()=>Er,QP:()=>fe,QW:()=>r.QW,QZ:()=>r.QZ,Qi:()=>j,R1:()=>r.R1,R8:()=>co,RG:()=>Ot,SS:()=>dt,Tb:()=>Tt,Tm:()=>r.Tm,Tq:()=>We,Tr:()=>o.Tr,U4:()=>s,U_:()=>X,Ul:()=>r.Ul,Vq:()=>pr,WQ:()=>U,Wv:()=>mr,X2:()=>r.X2,Y4:()=>Je,Y5:()=>vo,YY:()=>D,Yj:()=>Lt,Yv:()=>r.Yv,ZH:()=>o.ZH,ZQ:()=>uo,_B:()=>o._B,aT:()=>go,bF:()=>kr,bU:()=>so,bj:()=>pt,bn:()=>Gt,bo:()=>N,ch:()=>r.ch,ci:()=>Bn,dA:()=>ze,dY:()=>b,ds:()=>r.ds,eW:()=>Tr,eX:()=>_t,fE:()=>r.fE,fn:()=>un,g2:()=>vt,g8:()=>r.g8,gN:()=>bt,gW:()=>yr,gh:()=>c,h:()=>oo,hi:()=>ut,i9:()=>r.i9,iD:()=>fo,jC:()=>ir,jr:()=>r.jr,jt:()=>M,ju:()=>r.ju,k6:()=>R,lW:()=>r.lW,lt:()=>po,mu:()=>r.mu,n:()=>Qe,nD:()=>r.nD,nI:()=>Fr,nT:()=>W,o5:()=>r.o5,p9:()=>G,pI:()=>kt,pM:()=>_e,pR:()=>ve,qG:()=>ht,qL:()=>u,qP:()=>jt,qR:()=>ft,rE:()=>lo,rO:()=>Ft,rU:()=>He,rY:()=>r.rY,rk:()=>Te,sV:()=>st,tB:()=>r.tB,tC:()=>qr,tG:()=>a,tY:()=>Yn,uX:()=>lr,uY:()=>r.uY,ux:()=>r.ux,v6:()=>Lr,v_:()=>o.v_,vv:()=>vr,wB:()=>V,wX:()=>Yr,wk:()=>Mt,xo:()=>ct,y$:()=>io,yC:()=>r.yC,zz:()=>Wt});var r=n(50953),o=n(90033);const i=[];function s(e,t){}const a={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"},l={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 c(e,t,n,r){try{return r?e(...r):e()}catch(e){d(e,t,n)}}function u(e,t,n,r){if((0,o.Tn)(e)){const i=c(e,t,n,r);return i&&(0,o.yL)(i)&&i.catch(e=>{d(e,t,n)}),i}if((0,o.cy)(e)){const o=[];for(let i=0;i<e.length;i++)o.push(u(e[i],t,n,r));return o}}function d(e,t,n,i=!0){t&&t.vnode;const{errorHandler:s,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||o.MZ;if(t){let o=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,a))return;o=o.parent}if(s)return(0,r.C4)(),c(s,null,10,[e,i,a]),void(0,r.bl)()}!function(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}(e,0,0,i,a)}const p=[];let f=-1;const h=[];let m=null,v=0;const g=Promise.resolve();let y=null;function b(e){const t=y||g;return e?t.then(this?e.bind(this):e):t}function w(e){if(!(1&e.flags)){const t=C(e),n=p[p.length-1];!n||!(2&e.flags)&&t>=C(n)?p.push(e):p.splice(function(e){let t=f+1,n=p.length;for(;t<n;){const r=t+n>>>1,o=p[r],i=C(o);i<e||i===e&&2&o.flags?t=r+1:n=r}return t}(t),0,e),e.flags|=1,S()}}function S(){y||(y=g.then(T))}function k(e){(0,o.cy)(e)?h.push(...e):m&&-1===e.id?m.splice(v+1,0,e):1&e.flags||(h.push(e),e.flags|=1),S()}function _(e,t,n=f+1){for(0;n<p.length;n++){const t=p[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;0,p.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function O(e){if(h.length){const e=[...new Set(h)].sort((e,t)=>
2C(e)-C(t));if(h.length=0,m)return void m.push(...e);for(m=e,v=0;v<m.length;v++){const e=m[v];0,4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}m=null,v=0}}const C=e=>null==e.id?2&e.flags?-1:1/0:e.id;function T(e){o.tE;try{for(f=0;f<p.length;f++){const e=p[f];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),c(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;f<p.length;f++){const e=p[f];e&&(e.flags&=-2)}f=-1,p.length=0,O(),y=null,(p.length||h.length)&&T(e)}}let A,E=[],x=!1;let P=null,I=null;function L(e){const t=P;return P=e,I=e&&e.type.__scopeId||null,t}function j(e){I=e}function M(){I=null}const D=e=>R;function R(e,t=P,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&pr(-1);const o=L(t);let i;try{i=e(...n)}finally{L(o),r._d&&pr(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function N(e,t){if(null===P)return e;const n=eo(P),i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[s,a,l,c=o.MZ]=t[e];s&&((0,o.Tn)(s)&&(s={mounted:s,updated:s}),s.deep&&(0,r.hV)(a),i.push({dir:s,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function F(e,t,n,o){const i=e.dirs,s=t&&t.dirs;for(let a=0;a<i.length;a++){const l=i[a];s&&(l.oldValue=s[a].value);let c=l.dir[o];c&&((0,r.C4)(),u(c,n,8,[e.el,l,e,t]),(0,r.bl)())}}function B(e,t){if(Nr){let n=Nr.provides;const r=Nr.parent&&Nr.parent.provides;r===n&&(n=Nr.provides=Object.create(r)),n[e]=t}}function U(e,t,n=!1){const r=Fr();if(r||cn){let i=cn?cn._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.Tn)(t)?t.call(r&&r.proxy):t}else 0}function H(){return!(!Fr()&&!cn)}const $=Symbol.for("v-scx"),z=()=>{{const e=U($);return e}};function W(e,t){return K(e,null,t)}function G(e,t){return K(e,null,{flush:"post"})}function X(e,t){return K(e,null,{flush:"sync"})}function V(e,t,n){return K(e,t,n)}function K(e,t,n=o.MZ){const{immediate:i,deep:s,flush:a,once:l}=n;const c=(0,o.X$)({},n);const d=t&&i||!t&&"post"!==a;let p;if(Xr)if("sync"===a){const e=z();p=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=o.tE,e.resume=o.tE,e.pause=o.tE,e}const f=Nr;c.call=(e,t,n)=>u(e,f,t,n);let h=!1;"post"===a?c.scheduler=e=>{Nn(e,f&&f.suspense)}
2:"sync"!==a&&(h=!0,c.scheduler=(e,t)=>{t?e():w(e)}),c.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};const m=(0,r.wB)(e,t,c);return Xr&&(p?p.push(m):d&&m()),m}function q(e,t,n){const r=this.proxy,i=(0,o.Kg)(e)?e.includes(".")?Y(r,e):()=>r[e]:e.bind(r,r);let s;(0,o.Tn)(t)?s=t:(s=t.handler,n=t);const a=Hr(this),l=K(i,s.bind(r),n);return a(),l}function Y(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const Q=Symbol("_vte"),J=e=>e.__isTeleport,Z=e=>e&&(e.disabled||""===e.disabled),ee=e=>e&&(e.defer||""===e.defer),te=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,ne=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,re=(e,t)=>{const n=e&&e.to;if((0,o.Kg)(n)){if(t){return t(n)}return null}return n},oe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,s,a,l,c){const{mc:u,pc:d,pbc:p,o:{insert:f,querySelector:h,createText:m,createComment:v}}=c,g=Z(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");f(e,n,r),f(c,n,r);const d=(e,t)=>{16&y&&u(b,e,t,o,i,s,a,l)},p=()=>{const e=t.target=re(t.props,h),n=le(e,t,m,f);e&&("svg"!==s&&te(e)?s="svg":"mathml"!==s&&ne(e)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(e),g||(d(e,n),ae(t,!1)))};g&&(d(n,c),ae(t,!0)),ee(t.props)?(t.el.__isMounted=!1,Nn(()=>{p(),delete t.el.__isMounted},i)):p()}else{if(ee(t.props)&&!1===e.el.__isMounted)return void Nn(()=>{oe.process(e,t,n,r,o,i,s,a,l,c)},i);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,f=t.target=e.target,m=t.targetAnchor=e.targetAnchor,v=Z(e.props),y=v?n:f,b=v?u:m;if("svg"===s||te(f)?s="svg":("mathml"===s||ne(f))&&(s="mathml"),w?(p(e.dynamicChildren,w,y,o,i,s,a),Wn(e,t,!0)):l||d(e,t,y,b,o,i,s,a,!1),g)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ie(t,n,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=re(t.props,h);e&&ie(t,e,null,c,0)}else v&&ie(t,f,m,c,1);ae(t,g)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(o(c),o(u)),i&&o(l),16&s){const e=i||!Z(p);for(let o=0;o<a.length;o++){const i=a[o];r(i,t,n,e,!!i.dynamicChildren)}}},move:ie,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:c,createText:u}},d){function p(e,n){let r=n;for(;r;){if(r&&8===r.nodeType)if("teleport start anchor"===r.data)t.targetStart=r;else if("teleport anchor"===r.data){t.targetAnchor=r,e._lpa=t.targetAnchor&&s(t.targetAnchor);break}r=s(r)}}function f(e,t){t.anchor=d(s(e),t,a(e),n,r,o,i)}const h=t.target=re(t.props,l),m=Z(t.props);if(h){const l=h._lpa||h.firstChild;
216&t.shapeFlag&&(m?(f(e,t),p(h,l),t.targetAnchor||le(h,t,u,c,a(e)===h?e:null)):(t.anchor=s(e),p(h,l),t.targetAnchor||le(h,t,u,c),d(l&&s(l),t,h,n,r,o,i))),ae(t,m)}else m&&16&t.shapeFlag&&(f(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}};function ie(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&r(s,t,n),(!d||Z(u))&&16&l)for(let e=0;e<c.length;e++)o(c[e],t,n,2);d&&r(a,t,n)}const se=oe;function ae(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function le(e,t,n,r,o=null){const i=t.targetStart=n(""),s=t.targetAnchor=n("");return i[Q]=s,e&&(r(i,e,o),r(s,e,o)),s}const ce=Symbol("_leaveCb"),ue=Symbol("_enterCb");function de(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return st(()=>{e.isMounted=!0}),ct(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],fe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},he=e=>{const t=e.subTree;return t.component?he(t.component):t};function me(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==or){0,t=r,n=!0;break}}return t}const ve={name:"BaseTransition",props:fe,setup(e,{slots:t}){const n=Fr(),o=de();return()=>{const i=t.default&&ke(t.default(),!0);if(!i||!i.length)return;const s=me(i),a=(0,r.ux)(e),{mode:l}=a;if(o.isLeaving)return be(s);const c=we(s);if(!c)return be(s);let u=ye(c,a,o,n,e=>u=e);c.type!==or&&Se(c,u);let d=n.subTree&&we(n.subTree);if(d&&d.type!==or&&!gr(d,c)&&he(n).type!==or){let e=ye(d,a,o,n);if(Se(d,e),"out-in"===l&&c.type!==or)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},be(s);"in-out"===l&&c.type!==or?e.delayLeave=(e,t,n)=>{ge(o,d)[String(d.key)]=d,e[ce]=()=>{t(),e[ce]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return s}}};function ge(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ye(e,t,n,r,i){const{appear:s,mode:a,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:p,onEnterCancelled:f,onBeforeLeave:h,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:w,onAppearCancelled:S}=t,k=String(e.key),_=ge(n,e),O=(e,t)=>{e&&u(e,r,9,t)},C=(e,t)=>{const n=t[1];O(e,t),(0,o.cy)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:a,persisted:l,beforeEnter(t){let r=c;if(!n.isMounted){if(!s)return;r=y||c}t[ce]&&t[ce](!0);const o=_[k];o&&gr(e,o)&&o.el[ce]&&o.el[ce](),O(r,[t])},enter(t){if(_[k]===e)return;let r=d,o=p,i=f;if(!n.isMounted){if(!s)return;r=b||d,o=w||p,i=S||f}let a=!1;t[ue]=e=>{a||(a=!0,O(e?i:o,[t]),T.delayedLeave&&T.delayedLeave(),t[ue]=void 0)};const l=t[ue].bind(null,!1);r?C(r,[t,l]):l()},leave(t,r){const o=String(e.key);if(t[ue]&&t[ue](!0),n.isUnmounting)return r();O(h,[t]);let i=!1;t[ce]=n=>{i||(i=!0,r(),O(n?g:v,[t]),t[ce]=void 0,_[o]===e&&delete _[o])};const s=t[ce].bind(null,!1);_[o]=e,m?C(m,[t,s]):s()},clone(e){const o=ye(e,t,n,r,i);return i&&i(o),o}};return T}function be(e){if(Ke(e))return(e=Cr(e)).children=null,e}function we(e){if(!Ke(e))return J(e.type)&&e.children?me(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,o.Tn)(n.default))return n.default()}}function Se(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Se(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ke(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===nr?(128&s.patchFlag&&o++,r=r.concat(ke(s.children,t,a))):(t||s.type!==or)&&r.push(null!=a?Cr(s,{key:a}):s)}if(o>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function _e(e,t){return(0,o.Tn)(e)?(()=>(0,o.X$)({name:e.name},t,{setup:e}))():e}function Oe(){const e=Fr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}
2function Ce(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Te(e){const t=Fr(),n=(0,r.IJ)(null);if(t){const r=t.refs===o.MZ?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}else 0;return n}function Ae(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Ee=new WeakMap;function xe(e,t,n,i,s=!1){if((0,o.cy)(e))return void e.forEach((e,r)=>xe(e,t&&((0,o.cy)(t)?t[r]:t),n,i,s));if(Ge(i)&&!s)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&xe(e,t,n,i.component.subTree));const a=4&i.shapeFlag?eo(i.component):i.el,l=s?null:a,{i:u,r:d}=e;const p=t&&t.r,f=u.refs===o.MZ?u.refs={}:u.refs,h=u.setupState,m=(0,r.ux)(h),v=h===o.MZ?o.NO:e=>!Ae(f,e)&&(0,o.$3)(m,e),g=(e,t)=>!t||!Ae(f,t);if(null!=p&&p!==d)if(Pe(t),(0,o.Kg)(p))f[p]=null,v(p)&&(h[p]=null);else if((0,r.i9)(p)){const e=t;g(0,e.k)&&(p.value=null),e.k&&(f[e.k]=null)}if((0,o.Tn)(d))c(d,u,12,[l,f]);else{const t=(0,o.Kg)(d),i=(0,r.i9)(d);if(t||i){const r=()=>{if(e.f){const n=t?v(d)?h[d]:f[d]:g()||!e.k?d.value:f[e.k];if(s)(0,o.cy)(n)&&(0,o.TF)(n,a);else if((0,o.cy)(n))n.includes(a)||n.push(a);else if(t)f[d]=[a],v(d)&&(h[d]=f[d]);else{const t=[a];g(0,e.k)&&(d.value=t),e.k&&(f[e.k]=t)}}else t?(f[d]=l,v(d)&&(h[d]=l)):i&&(g(0,e.k)&&(d.value=l),e.k&&(f[e.k]=l))};if(l){const t=()=>{r(),Ee.delete(e)};t.id=-1,Ee.set(e,t),Nn(t,n)}else Pe(e),r()}else 0}}function Pe(e){const t=Ee.get(e);t&&(t.flags|=8,Ee.delete(e))}let Ie=!1;const Le=()=>{Ie||(console.error("Hydration completed but contains mismatches."),Ie=!0)},je=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},Me=e=>8===e.nodeType;function De(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:a,parentNode:l,remove:c,insert:u,createComment:d}}=e,p=(n,r,o,i,c,d=!1)=>{d=d||!!r.dynamicChildren;const w=Me(n)&&"["===n.data,S=()=>v(n,r,o,i,c,w),{type:k,ref:_,shapeFlag:O,patchFlag:C}=r;let T=n.nodeType;r.el=n,-2===C&&(d=!1,r.dynamicChildren=null);let A=null;switch(k){case rr:3!==T?""===r.children?(u(r.el=s(""),l(n),n),A=n):A=S():(n.data!==r.children&&(Le(),n.data=r.children),A=a(n));break;case or:b(n)?(A=a(n),y(r.el=n.content.firstChild,n,o)):A=8!==T||w?S():a(n);break;case ir:if(w&&(T=(n=a(n)).nodeType),1===T||3===T){A=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===A.nodeType?A.outerHTML:A.data),t===r.staticCount-1&&(r.anchor=A),A=a(A);return w?a(A):A}S();break;case nr:A=w?m(n,r,o,i,c,d):S();break;default:if(1&O)A=1===T&&r.type.toLowerCase()===n.tagName.toLowerCase()||b(n)?f(n,r,o,i,c,d):S();else if(6&O){r.slotScopeIds=c;const e=l(n);if(A=w?g(n):Me(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):a(n),t(r,e,null,o,i,je(e),d),Ge(r)&&!r.type.__asyncResolved){let t;w?(t=kr(nr),t.anchor=A?A.previousSibling:e.lastChild):t=3===n.nodeType?Tr(""):kr("div"),t.el=n,r.component.subTree=t}}else 64&O?A=8!==T?S():r.type.hydrate(n,r,o,i,c,d,e,h):128&O&&(A=r.type.hydrate(n,r,o,i,je(l(n)),c,d,e,p))}return null!=_&&xe(_,null,i,r),A},f=(e,t,n,s,a,l)=>{l=l||!!t.dynamicChildren;const{type:u,props:d,patchFlag:p,shapeFlag:f,dirs:m,transition:v}=t,g="input"===u||"option"===u;if(g||-1!==p){m&&F(t,null,n,"created");let u,w=!1;if(b(e)){w=zn(null,v)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;if(w){const e=r.getAttribute("class");e&&(r.$cls=e),v.beforeEnter(r)}y(r,e,n),t.el=e=r}if(16&f&&(!d||!d.innerHTML&&!d.textContent)){let r=h(e.firstChild,t,e,n,s,a,l);for(;r;){Fe(e,1)||Le();const t=r;r=r.nextSibling,c(t)}}else if(8&f){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,"\n")&&(Fe(e,0)||Le(),e.textContent=t.children)}if(d)if(g||!l||48&p){const t=e.tagName.includes("-");for(const r in d)(g&&(r.endsWith("value")||"indeterminate"===r)||(0,o.Mp)(r)&&!(0,o.SU)(r)||"."===r[0]||t&&!(0,o.SU)(r))&&i(e,r,null,d[r],void 0,n)}else if(d.onClick)i(e,"onClick",null,d.onClick,void 0,n);else if(4&p&&(0,r.g8)(d.style))for(const e in d.style)d.style[e];(u=d&&d.onVnodeBeforeMount)&&jr(u,n,t),m&&F(t,null,n,"beforeMount"),((u=d&&d.onVnodeMounted)||m||w)&&er(()=>{u&&jr(u,n,t),w&&v.enter(e),m&&F(t,null,n,"mounted")},s)}return e.nextSibling},h=(e,t,r,o,i,l,c)=>{c=c||!!t.dynamicChildren;const d=t.children,f=d.length;for(let t=0;t<f;t++){const h=c?d[t]:d[t]=xr(d[t]),m=h.type===rr;e?(m&&!c&&t+1<f&&xr(d[t+1]).type===rr&&(u(s(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=p(e,h,o,i,l,c)):m&&!h.children?u(h.el=s(""),r):(Fe(r,1)||Le(),n(null,h,r,null,o,i,je(r),l))}return e},m=(e,t,n,r,o,i)=>{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const c=l(e),p=h(a(e),t,c,n,r,o,i);return p&&Me(p)&&"]"===p.data?a(t.anchor=p):(Le(),u(t.anchor=d("]"),c,p),p)},v=(e,t,r,o,i,s)=>{if(Fe(e.parentElement,1)||Le(),t.el=null,s){const t=g(e);for(;;){const n=a(e);if(!n||n===t)break;c(n)}}const u=a(e),d=l(e);return c(e),n(null,t,d,u,r,o,je(d),i),r&&(r.vnode.el=t.el,kn(r,t.el)),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&Me(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},y=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},b=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),O(),void(t._vnode=e);p(t.firstChild,e,null,null,null),O(),t._vnode=e},p]}const Re="data-allow-mismatch",Ne={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Fe(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(Re);)e=e.parentElement;const n=e&&e.getAttribute(Re);
2if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||e.includes(Ne[t])}}const Be=(0,o.We)().requestIdleCallback||(e=>setTimeout(e,1)),Ue=(0,o.We)().cancelIdleCallback||(e=>clearTimeout(e)),He=(e=1e4)=>t=>{const n=Be(t,{timeout:e});return()=>Ue(n)};const $e=e=>(t,n)=>{const r=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:r,right:o}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:s}=window;return(t>0&&t<i||r>0&&r<i)&&(n>0&&n<s||o>0&&o<s)}(e)?(t(),r.disconnect(),!1):void r.observe(e)}),()=>r.disconnect()},ze=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},We=(e=[])=>(t,n)=>{(0,o.Kg)(e)&&(e=[e]);let r=!1;const i=e=>{r||(r=!0,s(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},s=()=>{n(t=>{for(const n of e)t.removeEventListener(n,i)})};return n(t=>{for(const n of e)t.addEventListener(n,i,{once:!0})}),s};const Ge=e=>!!e.type.__asyncLoader;function Xe(e){(0,o.Tn)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,hydrate:a,timeout:l,suspensible:c=!0,onError:u}=e;let p,f=null,h=0;const m=()=>{let e;return f||(e=f=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),u)return new Promise((t,n)=>{u(e,()=>t((h++,f=null,m())),()=>n(e),h+1)});throw e}).then(t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),p=t,t)))};return _e({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(e,t,n){let r=!1;(t.bu||(t.bu=[])).push(()=>r=!0);const o=()=>{r||n()},i=a?()=>{const n=a(o,t=>function(e,t){if(Me(e)&&"["===e.data){let n=1,r=e.nextSibling;for(;r;){if(1===r.nodeType){if(!1===t(r))break}else if(Me(r))if("]"===r.data){if(0===--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:o;p?i():m().then(()=>!t.isUnmounted&&i())},get __asyncResolved(){return p},setup(){const e=Nr;if(Ce(e),p)return()=>Ve(p,e);const t=t=>{f=null,d(t,e,13,!i)};if(c&&e.suspense||Xr)return m().then(t=>()=>Ve(t,e)).catch(e=>(t(e),()=>i?kr(i,{error:e}):null));const o=(0,r.KR)(!1),a=(0,r.KR)(),u=(0,r.KR)(!!s);return s&&setTimeout(()=>{u.value=!1},s),null!=l&&setTimeout(()=>{if(!o.value&&!a.value){const e=new Error(`Async component timed out after ${l}ms.`);t(e),a.value=e}},l),m().then(()=>{o.value=!0,e.parent&&Ke(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),a.value=e}),()=>o.value&&p?Ve(p,e):a.value&&i?kr(i,{error:a.value}):n&&!u.value?Ve(n,e):void 0}})}function Ve(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=kr(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Ke=e=>e.type.__isKeepAlive,qe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Fr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let a=null;const l=n.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:p}}}=r,f=p("div");function h(e){tt(e),d(e,n,l,!0)}function m(e){i.forEach((t,n)=>{const r=to(Ge(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&v(n)})}function v(e){const t=i.get(e);!t||a&&gr(t,a)?a&&tt(a):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;u(e,t,n,0,l),c(s.vnode,e,t,n,s,l,r,e.slotScopeIds,i),Nn(()=>{s.isDeactivated=!1,s.a&&(0,o.DY)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&jr(t,s.parent,e)},l)},r.deactivate=e=>{const t=e.component;Xn(t.m),Xn(t.a),u(e,f,null,1,l),Nn(()=>{t.da&&(0,o.DY)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&jr(n,t.parent,e),t.isDeactivated=!0},l)},V(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ye(e,t)),t&&m(e=>!Ye(t,e))},{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&(Kn(n.subTree.type)?Nn(()=>{i.set(g,nt(n.subTree))},n.subTree.suspense):i.set(g,nt(n.subTree)))};return st(y),lt(y),ct(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,o=nt(t);if(e.type===o.type&&e.key===o.key){tt(o);const e=o.component.da;return void(e&&Nn(e,r))}h(e)})}),()=>{if(g=null,!t.default)return a=null;
2const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!(vr(r)&&(4&r.shapeFlag||128&r.shapeFlag)))return a=null,r;let o=nt(r);if(o.type===or)return a=null,o;const l=o.type,c=to(Ge(o)?o.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!c||!Ye(u,c))||d&&c&&Ye(d,c))return o.shapeFlag&=-257,a=o,r;const f=null==o.key?l:o.key,h=i.get(f);return o.el&&(o=Cr(o),128&r.shapeFlag&&(r.ssContent=o)),g=f,h?(o.el=h.el,o.component=h.component,o.transition&&Se(o,o.transition),o.shapeFlag|=512,s.delete(f),s.add(f)):(s.add(f),p&&s.size>parseInt(p,10)&&v(s.values().next().value)),o.shapeFlag|=256,a=o,Kn(r.type)?r:o}}};function Ye(e,t){return(0,o.cy)(e)?e.some(e=>Ye(e,t)):(0,o.Kg)(e)?e.split(",").includes(t):!!(0,o.gd)(e)&&(e.lastIndex=0,e.test(t))}function Qe(e,t){Ze(e,"a",t)}function Je(e,t){Ze(e,"da",t)}function Ze(e,t,n=Nr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(rt(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ke(e.parent.vnode)&&et(r,t,n,e),e=e.parent}}function et(e,t,n,r){const i=rt(t,e,r,!0);ut(()=>{(0,o.TF)(r[t],i)},n)}function tt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function nt(e){return 128&e.shapeFlag?e.ssContent:e}function rt(e,t,n=Nr,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{(0,r.C4)();const i=Hr(n),s=u(t,n,e,o);return i(),(0,r.bl)(),s});return o?i.unshift(s):i.push(s),s}}const ot=e=>(t,n=Nr)=>{Xr&&"sp"!==e||rt(e,(...e)=>t(...e),n)},it=ot("bm"),st=ot("m"),at=ot("bu"),lt=ot("u"),ct=ot("bum"),ut=ot("um"),dt=ot("sp"),pt=ot("rtg"),ft=ot("rtc");function ht(e,t=Nr){rt("ec",e,t)}const mt="components";function vt(e,t){return wt(mt,e,!0,t)||e}const gt=Symbol.for("v-ndc");function yt(e){return(0,o.Kg)(e)?wt(mt,e,!1)||e:e||gt}function bt(e){return wt("directives",e)}function wt(e,t,n=!0,r=!1){const i=P||Nr;if(i){const n=i.type;if(e===mt){const e=to(n,!1);if(e&&(e===t||e===(0,o.PT)(t)||e===(0,o.ZH)((0,o.PT)(t))))return n}const s=St(i[e]||n[e],t)||St(i.appContext[e],t);return!s&&r?n:s}}function St(e,t){return e&&(e[t]||e[(0,o.PT)(t)]||e[(0,o.ZH)((0,o.PT)(t))])}function kt(e,t,n,i){let s;const a=n&&n[i],l=(0,o.cy)(e);if(l||(0,o.Kg)(e)){let n=!1,o=!1;l&&(0,r.g8)(e)&&(n=!(0,r.fE)(e),o=(0,r.Tm)(e),e=(0,r.qA)(e)),s=new Array(e.length);for(let i=0,l=e.length;i<l;i++)s[i]=t(n?o?(0,r.a1)((0,r.lJ)(e[i])):(0,r.lJ)(e[i]):e[i],i,void 0,a&&a[i])}else if("number"==typeof e){s=new Array(e);for(let n=0;n<e;n++)s[n]=t(n+1,n,void 0,a&&a[n])}else if((0,o.Gv)(e))if(e[Symbol.iterator])s=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{const n=Object.keys(e);s=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];s[r]=t(e[o],o,r,a&&a[r])}}else s=[];return n&&(n[i]=s),s}function _t(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,o.cy)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ot(e,t,n={},r,i){if(P.ce||P.parent&&Ge(P.parent)&&P.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),lr(),mr(nr,null,[kr("slot",n,r&&r())],e?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),lr();const a=s&&Ct(s(n)),l=n.key||a&&a.key,c=mr(nr,{key:(l&&!(0,o.Bm)(l)?l:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function Ct(e){return e.some(e=>!vr(e)||e.type!==or&&!(e.type===nr&&!Ct(e.children)))?e:null}function Tt(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:(0,o.rU)(r)]=e[r];return n}const At=e=>e?zr(e)?eo(e):At(e.parent):null,Et=(0,o.X$)(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=>At(e.parent),$root:e=>At(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Qt(e),$forceUpdate:e=>e.f||(e.f=()=>{w(e.update)}),$nextTick:e=>e.n||(e.n=b.bind(e.proxy)),$watch:e=>q.bind(e)}),xt=(e,t)=>e!==o.MZ&&!e.__isScriptSetup&&(0,o.$3)(e,t),Pt={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:s,props:a,accessCache:l,type:c,appContext:u}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(xt(i,t))return l[t]=1,i[t];if(s!==o.MZ&&(0,o.$3)(s,t))return l[t]=2,s[t];if((0,o.$3)(a,t))return l[t]=3,a[t];if(n!==o.MZ&&(0,o.$3)(n,t))return l[t]=4,n[t];Vt&&(l[t]=0)}}const d=Et[t];let p,f;return d?("$attrs"===t&&(0,r.u4)(e.attrs,"get",""),d(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==o.MZ&&(0,o.$3)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,o.$3)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return xt(i,t)?(i[t]=n,!0):r!==o.MZ&&(0,o.$3)(r,t)?(r[t]=n,!0):!(0,o.$3)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:s,type:a}},l){let c;return!!(n[l]||e!==o.MZ&&"$"!==l[0]&&(0,o.$3)(e,l)||xt(t,l)||(0,o.$3)(s,l)||(0,o.$3)(r,l)||(0,o.$3)(Et,l)||(0,o.$3)(i.config.globalProperties,l)||(c=a.__cssModules)&&c[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.$3)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const It=(0,o.X$)({},Pt,{get(e,t){if(t!==Symbol.unscopables)return Pt.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,o.BH)(t)});function Lt(){return null}function jt(){return null}function Mt(e){0}function Dt(e){0}function Rt(){return null}function Nt(){0}function Ft(e,t){return null}function Bt(){return Ht("useSlots").slots}function Ut(){return Ht("useAttrs").attrs}function Ht(e){const t=Fr();return t.setupContext||(t.setupContext=Zr(t))}function $t(e){return(0,o.cy)(e)?e.reduce((e,t)=>
2(e[t]=null,e),{}):e}function zt(e,t){const n=$t(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?(0,o.cy)(r)||(0,o.Tn)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Wt(e,t){return e&&t?(0,o.cy)(e)&&(0,o.cy)(t)?e.concat(t):(0,o.X$)({},$t(e),$t(t)):e||t}function Gt(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Xt(e){const t=Fr(),n=Xr;let r=e();$r(),n&&Ur(!1);const i=()=>{Hr(t),n&&Ur(!0)},s=()=>{Fr()!==t&&t.scope.off(),$r(),n&&Ur(!1)};return(0,o.yL)(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(s)),e})),[r,()=>{i(),Promise.resolve().then(s)}]}let Vt=!0;function Kt(e){const t=Qt(e),n=e.proxy,i=e.ctx;Vt=!1,t.beforeCreate&&qt(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:f,mounted:h,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:S,unmounted:k,render:_,renderTracked:O,renderTriggered:C,errorCaptured:T,serverPrefetch:A,expose:E,inheritAttrs:x,components:P,directives:I,filters:L}=t;if(d&&function(e,t){(0,o.cy)(e)&&(e=tn(e));for(const n in e){const i=e[n];let s;s=(0,o.Gv)(i)?"default"in i?U(i.from||n,i.default,!0):U(i.from||n):U(i),(0,r.i9)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i,null),l)for(const e in l){const t=l[e];(0,o.Tn)(t)&&(i[e]=t.bind(n))}if(s){0;const t=s.call(n,n);0,(0,o.Gv)(t)&&(e.data=(0,r.Kh)(t))}if(Vt=!0,a)for(const e in a){const t=a[e],r=(0,o.Tn)(t)?t.bind(n,n):(0,o.Tn)(t.get)?t.get.bind(n,n):o.tE;0;const s=!(0,o.Tn)(t)&&(0,o.Tn)(t.set)?t.set.bind(n):o.tE,l=ro({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const e in c)Yt(c[e],i,n,e);if(u){const e=(0,o.Tn)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{B(t,e[t])})}function j(e,t){(0,o.cy)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(p&&qt(p,e,"c"),j(it,f),j(st,h),j(at,m),j(lt,v),j(Qe,g),j(Je,y),j(ht,T),j(ft,O),j(pt,C),j(ct,w),j(ut,k),j(dt,A),(0,o.cy)(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===o.tE&&(e.render=_),null!=x&&(e.inheritAttrs=x),P&&(e.components=P),I&&(e.directives=I),A&&Ce(e)}function qt(e,t,n){u((0,o.cy)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yt(e,t,n,r){let i=r.includes(".")?Y(n,r):()=>n[r];if((0,o.Kg)(e)){const n=t[e];(0,o.Tn)(n)&&V(i,n)}else if((0,o.Tn)(e))V(i,e.bind(n));else if((0,o.Gv)(e))if((0,o.cy)(e))e.forEach(e=>Yt(e,t,n,r));else{const r=(0,o.Tn)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.Tn)(r)&&V(i,r,e)}else 0}function Qt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,l=s.get(t);let c;return l?c=l:i.length||n||r?(c={},i.length&&i.forEach(e=>Jt(c,e,a,!0)),Jt(c,t,a)):c=t,(0,o.Gv)(t)&&s.set(t,c),c}function Jt(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Jt(e,i,n,!0),o&&o.forEach(t=>Jt(e,t,n,!0));for(const o in t)if(r&&"expose"===o);else{const r=Zt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Zt={data:en,props:on,emits:on,methods:rn,computed:rn,beforeCreate:nn,created:nn,beforeMount:nn,mounted:nn,beforeUpdate:nn,updated:nn,beforeDestroy:nn,beforeUnmount:nn,destroyed:nn,unmounted:nn,activated:nn,deactivated:nn,errorCaptured:nn,serverPrefetch:nn,components:rn,directives:rn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,o.X$)(Object.create(null),e);for(const r in t)n[r]=nn(e[r],t[r]);return n},provide:en,inject:function(e,t){return rn(tn(e),tn(t))}};function en(e,t){return t?e?function(){return(0,o.X$)((0,o.Tn)(e)?e.call(this,this):e,(0,o.Tn)(t)?t.call(this,this):t)}:t:e}function tn(e){if((0,o.cy)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function nn(e,t){return e?[...new Set([].concat(e,t))]:t}function rn(e,t){return e?(0,o.X$)(Object.create(null),e,t):t}function on(e,t){return e?(0,o.cy)(e)&&(0,o.cy)(t)?[...new Set([...e,...t])]:(0,o.X$)(Object.create(null),$t(e),$t(null!=t?t:{})):t}function sn(){return{app:null,config:{isNativeTag:o.NO,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 an=0;function ln(e,t){return function(n,r=null){(0,o.Tn)(n)||(n=(0,o.X$)({},n)),null==r||(0,o.Gv)(r)||(r=null);const i=sn(),s=new WeakSet,a=[];let l=!1;const c=i.app={_uid:an++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:lo,get config(){return i.config},set config(e){0},use:(e,...t)=>(s.has(e)||(e&&(0,o.Tn)(e.install)?(s.add(e),e.install(c,...t)):(0,o.Tn)(e)&&(s.add(e),e(c,...t))),c),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),c),component:(e,t)=>
2t?(i.components[e]=t,c):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,c):i.directives[e],mount(o,s,a){if(!l){0;const u=c._ceVNode||kr(n,r);return u.appContext=i,!0===a?a="svg":!1===a&&(a=void 0),s&&t?t(u,o):e(u,o,a),l=!0,c._container=o,o.__vue_app__=c,eo(u.component)}},onUnmount(e){a.push(e)},unmount(){l&&(u(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,c),runWithContext(e){const t=cn;cn=c;try{return e()}finally{cn=t}}};return c}}let cn=null;function un(e,t,n=o.MZ){const i=Fr();const s=(0,o.PT)(t);const a=(0,o.Tg)(t),l=dn(e,s),c=(0,r.rY)((r,l)=>{let c,u,d=o.MZ;return X(()=>{const t=e[s];(0,o.$H)(c,t)&&(c=t,l())}),{get:()=>(r(),n.get?n.get(c):c),set(e){const r=n.set?n.set(e):e;if(!((0,o.$H)(r,c)||d!==o.MZ&&(0,o.$H)(e,d)))return;const p=i.vnode.props;p&&(t in p||s in p||a in p)&&(`onUpdate:${t}`in p||`onUpdate:${s}`in p||`onUpdate:${a}`in p)||(c=e,l()),i.emit(`update:${t}`,r),(0,o.$H)(e,r)&&(0,o.$H)(e,d)&&!(0,o.$H)(r,u)&&l(),d=e,u=r}}});return c[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?l||o.MZ:c,done:!1}:{done:!0}}},c}const dn=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,o.PT)(t)}Modifiers`]||e[`${(0,o.Tg)(t)}Modifiers`];function pn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.MZ;let i=n;const s=t.startsWith("update:"),a=s&&dn(r,t.slice(7));let l;a&&(a.trim&&(i=n.map(e=>(0,o.Kg)(e)?e.trim():e)),a.number&&(i=n.map(o.bB)));let c=r[l=(0,o.rU)(t)]||r[l=(0,o.rU)((0,o.PT)(t))];!c&&s&&(c=r[l=(0,o.rU)((0,o.Tg)(t))]),c&&u(c,e,6,i);const d=r[l+"Once"];if(d){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,u(d,e,6,i)}}const fn=new WeakMap;function hn(e,t,n=!1){const r=n?fn:t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let a={},l=!1;if(!(0,o.Tn)(e)){const r=e=>{const n=hn(e,t,!0);n&&(l=!0,(0,o.X$)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||l?((0,o.cy)(s)?s.forEach(e=>a[e]=null):(0,o.X$)(a,s),(0,o.Gv)(e)&&r.set(e,a),a):((0,o.Gv)(e)&&r.set(e,null),null)}function mn(e,t){return!(!e||!(0,o.Mp)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.$3)(e,t[0].toLowerCase()+t.slice(1))||(0,o.$3)(e,(0,o.Tg)(t))||(0,o.$3)(e,t))}function vn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:p,props:f,data:h,setupState:m,ctx:v,inheritAttrs:g}=e,y=L(e);let b,w;try{if(4&n.shapeFlag){const e=i||r,t=e;b=xr(u.call(t,e,p,f,m,h,v)),w=l}else{const e=t;0,b=xr(e.length>1?e(f,{attrs:l,slots:a,emit:c}):e(f,null)),w=t.props?l:yn(l)}}catch(t){sr.length=0,d(t,e,1),b=kr(or)}let S=b;if(w&&!1!==g){const e=Object.keys(w),{shapeFlag:t}=S;e.length&&7&t&&(s&&e.some(o.CP)&&(w=bn(w,s)),S=Cr(S,w,!1,!0))}return n.dirs&&(S=Cr(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&Se(S,n.transition),b=S,L(y),b}function gn(e,t=!0){let n;for(let t=0;t<e.length;t++){const r=e[t];if(!vr(r))return;if(r.type!==or||"v-if"===r.children){if(n)return;n=r}}return n}const yn=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.Mp)(n))&&((t||(t={}))[n]=e[n]);return t},bn=(e,t)=>{const n={};for(const r in e)(0,o.CP)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function wn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(Sn(t,e,i)&&!mn(n,i))return!0}return!1}function Sn(e,t,n){const r=e[n],i=t[n];return"style"===n&&(0,o.Gv)(r)&&(0,o.Gv)(i)?!(0,o.BX)(r,i):r!==i}function kn({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const _n={},On=()=>Object.create(_n),Cn=e=>Object.getPrototypeOf(e)===_n;function Tn(e,t,n,i){const[s,a]=e.propsOptions;let l,c=!1;if(t)for(let r in t){if((0,o.SU)(r))continue;const u=t[r];let d;s&&(0,o.$3)(s,d=(0,o.PT)(r))?a&&a.includes(d)?(l||(l={}))[d]=u:n[d]=u:mn(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,c=!0)}if(a){const t=(0,r.ux)(n),i=l||o.MZ;for(let r=0;r<a.length;r++){const l=a[r];n[l]=An(s,t,l,i[l],e,!(0,o.$3)(i,l))}}return c}function An(e,t,n,r,i,s){const a=e[n];if(null!=a){const e=(0,o.$3)(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&(0,o.Tn)(e)){const{propsDefaults:o}=i;if(n in o)r=o[n];else{const s=Hr(i);r=o[n]=e.call(null,t),s()}}else r=e;i.ce&&i.ce._setProp(n,r)}a[0]&&(s&&!e?r=!1:!a[1]||""!==r&&r!==(0,o.Tg)(n)||(r=!0))}return r}const En=new WeakMap;function xn(e,t,n=!1){const r=n?En:t.propsCache,i=r.get(e);if(i)return i;const s=e.props,a={},l=[];let c=!1;if(!(0,o.Tn)(e)){const r=e=>{c=!0;const[n,r]=xn(e,t,!0);(0,o.X$)(a,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!c)return(0,o.Gv)(e)&&r.set(e,o.Oj),o.Oj;if((0,o.cy)(s))for(let e=0;e<s.length;e++){0;const t=(0,o.PT)(s[e]);Pn(t)&&(a[t]=o.MZ)}else if(s){0;for(const e in s){const t=(0,o.PT)(e);if(Pn(t)){const n=s[e],r=a[t]=(0,o.cy)(n)||(0,o.Tn)(n)?{type:n}:(0,o.X$)({},n),i=r.type;let c=!1,u=!0;if((0,o.cy)(i))for(let e=0;e<i.length;++e){const t=i[e],n=(0,o.Tn)(t)&&t.name;if("Boolean"===n){c=!0;break}"String"===n&&(u=!1)}else c=(0,o.Tn)(i)&&"Boolean"===i.name;r[0]=c,r[1]=u,(c||(0,o.$3)(r,"default"))&&l.push(t)}}}const u=[a,l];return(0,o.Gv)(e)&&r.set(e,u),u}function Pn(e){return"$"!==e[0]&&!(0,o.SU)(e)}const In=e=>"_"===e||"_ctx"===e||"$stable"===e,Ln=e=>(0,o.cy)(e)?e.map(xr):[xr(e)],jn=(e,t,n)=>{if(t._n)return t;const r=R((...e)=>Ln(t(...e)),n);return r._c=!1,r},Mn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(In(n))continue;const i=e[n];if((0,o.Tn)(i))t[n]=jn(0,i,r);else if(null!=i){0;const e=Ln(i);t[n]=()=>e}}},Dn=(e,t)=>{const n=Ln(t);e.slots.default=()=>n},Rn=(e,t,n)=>{for(const r in t)!n&&In(r)||(e[r]=t[r])};const Nn=er;function Fn(e){return Un(e)}function Bn(e){return Un(e,De)}function Un(e,t){(0,o.We)().__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:a,createText:l,createComment:c,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:h=o.tE,insertStaticContent:m}
2=e,v=(e,t,n,r=null,o=null,i=null,s=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!gr(e,t)&&(r=V(e),$(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case rr:g(e,t,n,r);break;case or:y(e,t,n,r);break;case ir:null==e&&b(t,n,r,s);break;case nr:I(e,t,n,r,o,i,s,a,l);break;default:1&d?k(e,t,n,r,o,i,s,a,l):6&d?L(e,t,n,r,o,i,s,a,l):(64&d||128&d)&&c.process(e,t,n,r,o,i,s,a,l,Y)}null!=u&&o?xe(u,e&&e.ref,i,t||e,!t):null==u&&e&&null!=e.ref&&xe(e.ref,null,i,e,!0)},g=(e,t,r,o)=>{if(null==e)n(t.el=l(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},y=(e,t,r,o)=>{null==e?n(t.el=c(t.children||""),r,o):t.el=e.el},b=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},k=(e,t,n,r,o,i,s,a,l)=>{if("svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e)C(t,n,r,o,i,s,a,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),E(e,t,o,i,s,a,l)}finally{n&&n._endPatch()}}},C=(e,t,r,i,l,c,u,p)=>{let f,h;const{props:m,shapeFlag:v,transition:g,dirs:y}=e;if(f=e.el=a(e.type,c,m&&m.is,m),8&v?d(f,e.children):16&v&&A(e.children,f,null,i,l,Hn(e,c),u,p),y&&F(e,null,i,"created"),T(f,e,e.scopeId,u,i),m){for(const e in m)"value"===e||(0,o.SU)(e)||s(f,e,null,m[e],c,i);"value"in m&&s(f,"value",null,m.value,c),(h=m.onVnodeBeforeMount)&&jr(h,i,e)}y&&F(e,null,i,"beforeMount");const b=zn(l,g);b&&g.beforeEnter(f),n(f,t,r),((h=m&&m.onVnodeMounted)||b||y)&&Nn(()=>{h&&jr(h,i,e),b&&g.enter(f),y&&F(e,null,i,"mounted")},l)},T=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t<r.length;t++)h(e,r[t]);if(o){let n=o.subTree;if(t===n||Kn(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=o.vnode;T(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},A=(e,t,n,r,o,i,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?Pr(e[c]):xr(e[c]);v(null,l,t,n,r,o,i,s,a)}},E=(e,t,n,r,i,a,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||o.MZ,m=t.props||o.MZ;let v;if(n&&$n(n,!1),(v=m.onVnodeBeforeUpdate)&&jr(v,n,t,e),f&&F(t,e,n,"beforeUpdate"),n&&$n(n,!0),(h.innerHTML&&null==m.innerHTML||h.textContent&&null==m.textContent)&&d(c,""),p?x(e.dynamicChildren,p,c,n,r,Hn(t,i),a):l||N(e,t,c,null,n,r,Hn(t,i),a,!1),u>0){if(16&u)P(c,h,m,n,i);else if(2&u&&h.class!==m.class&&s(c,"class",null,m.class,i),4&u&&s(c,"style",h.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],o=h[r],a=m[r];a===o&&"value"!==r||s(c,r,o,a,i,n)}}1&u&&e.children!==t.children&&d(c,t.children)}else l||null!=p||P(c,h,m,n,i);((v=m.onVnodeUpdated)||f)&&Nn(()=>{v&&jr(v,n,t,e),f&&F(t,e,n,"updated")},r)},x=(e,t,n,r,o,i,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===nr||!gr(l,c)||198&l.shapeFlag)?p(l.el):n;v(l,c,u,null,r,o,i,s,!0)}},P=(e,t,n,r,i)=>{if(t!==n){if(t!==o.MZ)for(const a in t)(0,o.SU)(a)||a in n||s(e,a,t[a],null,i,r);for(const a in n){if((0,o.SU)(a))continue;const l=n[a],c=t[a];l!==c&&"value"!==a&&s(e,a,c,l,i,r)}"value"in n&&s(e,"value",t.value,n.value,i)}},I=(e,t,r,o,i,s,a,c,u)=>{const d=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,r,o),n(p,r,o),A(t.children||[],r,p,i,s,a,c,u)):f>0&&64&f&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(x(e.dynamicChildren,h,r,i,s,a,c),(null!=t.key||i&&t===i.subTree)&&Wn(e,t,!0)):N(e,t,r,p,i,s,a,c,u)},L=(e,t,n,r,o,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,l):j(t,n,r,o,i,s,l):M(e,t,l)},j=(e,t,n,r,o,i,s)=>{const a=e.component=Rr(e,r,o);if(Ke(e)&&(a.ctx.renderer=Y),Vr(a,!1,s),a.asyncDep){if(o&&o.registerDep(a,D,s),!e.el){const r=a.subTree=kr(or);y(null,r,t,n),e.placeholder=r.el}}else D(a,e,t,n,o,i,s)},M=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!a||a&&a.$stable)||r!==s&&(r?!s||wn(r,s,c):!!s);if(1024&l)return!0;if(16&l)return r?wn(r,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(Sn(s,r,n)&&!mn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void R(r,t,n);
2r.next=t,r.update()}else t.el=e.el,r.vnode=t},D=(e,t,n,i,s,a,l)=>{e.scope.on();const c=e.effect=new r.X2(()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:c}=e;{const n=Gn(e);if(n)return t&&(t.el=c.el,R(e,t,l)),void n.asyncDep.then(()=>{Nn(()=>{e.isUnmounted||u()},s)})}let d,f=t;0,$n(e,!1),t?(t.el=c.el,R(e,t,l)):t=c,n&&(0,o.DY)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&jr(d,i,t,c),$n(e,!0);const h=vn(e);0;const m=e.subTree;e.subTree=h,v(m,h,p(m.el),V(m),e,s,a),t.el=h.el,null===f&&kn(e,h.el),r&&Nn(r,s),(d=t.props&&t.props.onVnodeUpdated)&&Nn(()=>jr(d,i,t,c),s)}else{let r;const{el:l,props:c}=t,{bm:u,m:d,parent:p,root:f,type:h}=e,m=Ge(t);if($n(e,!1),u&&(0,o.DY)(u),!m&&(r=c&&c.onVnodeBeforeMount)&&jr(r,p,t),$n(e,!0),l&&Z){const t=()=>{e.subTree=vn(e),Z(l,e.subTree,e,s,null)};m&&h.__asyncHydrate?h.__asyncHydrate(l,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(h,e.parent?e.parent.type:void 0);const r=e.subTree=vn(e);0,v(null,r,n,i,e,s,a),t.el=r.el}if(d&&Nn(d,s),!m&&(r=c&&c.onVnodeMounted)){const e=t;Nn(()=>jr(r,p,e),s)}(256&t.shapeFlag||p&&Ge(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Nn(e.a,s),e.isMounted=!0,t=n=i=null}});e.scope.off();const u=e.update=c.run.bind(c),d=e.job=c.runIfDirty.bind(c);
2d.i=e,d.id=e.uid,c.scheduler=()=>w(d),$n(e,!0),u()},R=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:a,vnode:{patchFlag:l}}=e,c=(0,r.ux)(s),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let r;Tn(e,t,s,a)&&(d=!0);for(const i in c)t&&((0,o.$3)(t,i)||(r=(0,o.Tg)(i))!==i&&(0,o.$3)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=An(u,c,i,void 0,e,!0)):delete s[i]);if(a!==c)for(const e in a)t&&(0,o.$3)(t,e)||(delete a[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(mn(e.emitsOptions,i))continue;const l=t[i];if(u)if((0,o.$3)(a,i))l!==a[i]&&(a[i]=l,d=!0);else{const t=(0,o.PT)(i);s[t]=An(u,c,t,l,e,!1)}else l!==a[i]&&(a[i]=l,d=!0)}}d&&(0,r.hZ)(e.attrs,"set","")}(e,t.props,i,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,a=o.MZ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:Rn(i,t,n):(s=!t.$stable,Mn(t,i)),a=t}else t&&(Dn(e,t),a={default:1});if(s)for(const e in i)In(e)||null!=a[e]||delete i[e]})(e,t.children,n),(0,r.C4)(),_(e),(0,r.bl)()},N=(e,t,n,r,o,i,s,a,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void U(c,p,n,r,o,i,s,a,l);if(256&f)return void B(c,p,n,r,o,i,s,a,l)}8&h?(16&u&&X(c,o,i),p!==c&&d(n,p)):16&u?16&h?U(c,p,n,r,o,i,s,a,l):X(c,o,i,!0):(8&u&&d(n,""),16&h&&A(p,n,r,o,i,s,a,l))},B=(e,t,n,r,i,s,a,l,c)=>{e=e||o.Oj,t=t||o.Oj;const u=e.length,d=t.length,p=Math.min(u,d);let f;for(f=0;f<p;f++){const r=t[f]=c?Pr(t[f]):xr(t[f]);v(e[f],r,n,null,i,s,a,l,c)}u>d?X(e,i,s,!0,!1,p):A(t,n,r,i,s,a,l,c,p)},U=(e,t,n,r,i,s,a,l,c)=>{let u=0;const d=t.length;let p=e.length-1,f=d-1;for(;u<=p&&u<=f;){const r=e[u],o=t[u]=c?Pr(t[u]):xr(t[u]);if(!gr(r,o))break;v(r,o,n,null,i,s,a,l,c),u++}for(;u<=p&&u<=f;){const r=e[p],o=t[f]=c?Pr(t[f]):xr(t[f]);if(!gr(r,o))break;v(r,o,n,null,i,s,a,l,c),p--,f--}if(u>p){if(u<=f){const e=f+1,o=e<d?t[e].el:r;for(;u<=f;)v(null,t[u]=c?Pr(t[u]):xr(t[u]),n,o,i,s,a,l,c),u++}}else if(u>f)for(;u<=p;)$(e[u],i,s,!0),u++;else{const h=u,m=u,g=new Map;for(u=m;u<=f;u++){const e=t[u]=c?Pr(t[u]):xr(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const w=f-m+1;let S=!1,k=0;const _=new Array(w);for(u=0;u<w;u++)_[u]=0;for(u=h;u<=p;u++){const r=e[u];if(b>=w){$(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(y=m;y<=f;y++)if(0===_[y-m]&&gr(r,t[y])){o=y;break}void 0===o?$(r,i,s,!0):(_[o-m]=u+1,o>=k?k=o:S=!0,v(r,t[o],n,null,i,s,a,l,c),b++)}const O=S?function(e){const t=e.slice(),n=[0];let r,o,i,s,a;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<l?i=a+1:s=a;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(_):o.Oj;for(y=O.length-1,u=w-1;u>=0;u--){const e=m+u,o=t[e],p=t[e+1],f=e+1<d?p.el||Vn(p):r;0===_[u]?v(null,o,n,f,i,s,a,l,c):S&&(y<0||u!==O[y]?H(o,n,f,2):y--)}}},H=(e,t,r,o,s=null)=>{const{el:a,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)return void H(e.component.subTree,t,r,o);if(128&d)return void e.suspense.move(t,r,o);if(64&d)return void l.move(e,t,r,Y);if(l===nr){n(a,t,r);for(let e=0;e<u.length;e++)H(u[e],t,r,o);return void n(e.anchor,t,r)}if(l===ir)return void(({el:e,anchor:t},r,o)=>{let i;for(;e&&e!==t;)i=f(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);if(2!==o&&1&d&&c)if(0===o)c.beforeEnter(a),n(a,t,r),Nn(()=>c.enter(a),s);else{const{leave:o,delayLeave:s,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?i(a):n(a,t,r)},d=()=>{a._isLeaving&&a[ce](!0),o(a,()=>{u(),l&&l()})};s?s(a,u,d):d()}else n(a,t,r)},$=(e,t,n,o=!1,i=!1)=>{const{type:s,props:a,ref:l,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:p,dirs:f,cacheIndex:h}=e;if(-2===p&&(i=!1),null!=l&&((0,r.C4)(),xe(l,null,n,e,!0),(0,r.bl)()),null!=h&&(t.renderCache[h]=void 0),256&d)return void t.ctx.deactivate(e);const m=1&d&&f,v=!Ge(e);let g;if(v&&(g=a&&a.onVnodeBeforeUnmount)&&jr(g,t,e),6&d)G(e.component,n,o);else{if(128&d)return void e.suspense.unmount(n,o);m&&F(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,Y,o):u&&!u.hasOnce&&(s!==nr||p>0&&64&p)?X(u,t,n,!1,!0):(s===nr&&384&p||!i&&16&d)&&X(c,t,n),o&&z(e)}(v&&(g=a&&a.onVnodeUnmounted)||m)&&Nn(()=>{g&&jr(g,t,e),m&&F(e,null,t,"unmounted")},n)},z=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===nr)return void W(n,r);if(t===ir)return void S(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},W=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},G=(e,t,n)=>{const{bum:r,scope:i,job:s,subTree:a,um:l,m:c,a:u}=e;Xn(c),Xn(u),r&&(0,o.DY)(r),i.stop(),s&&(s.flags|=8,$(a,e,t,n)),l&&Nn(l,t),Nn(()=>{e.isUnmounted=!0},t)},X=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s<e.length;s++)$(e[s],t,n,r,o)},V=e=>{if(6&e.shapeFlag)return V(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[Q];return n?f(n):t};let K=!1;
2const q=(e,t,n)=>{let r;null==e?t._vnode&&($(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,K||(K=!0,_(r),O(),K=!1)},Y={p:v,um:$,m:H,r:z,mt:j,mc:A,pc:N,pbc:x,n:V,o:e};let J,Z;return t&&([J,Z]=t(Y)),{render:q,hydrate:J,createApp:ln(q,J)}}function Hn({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $n({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function zn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wn(e,t,n=!1){const r=e.children,i=t.children;if((0,o.cy)(r)&&(0,o.cy)(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=Pr(i[e]),o.el=t.el),n||-2===o.patchFlag||Wn(t,o)),o.type===rr&&(-1===o.patchFlag&&(o=i[e]=Pr(o)),o.el=t.el),o.type!==or||o.el||(o.el=t.el)}}function Gn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gn(t)}function Xn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Vn(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Vn(t.subTree):null}const Kn=e=>e.__isSuspense;let qn=0;const Yn={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,a,l,c){if(null==e)!function(e,t,n,r,o,i,s,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=Jn(e,o,r,t,d,n,i,s,a,l);c(null,p.pendingBranch=e.ssContent,d,null,r,p,i,s),p.deps>0?(Qn(e,"onPending"),Qn(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,i,s),tr(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,r,o,i,s,a,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,i,s,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,f=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=p,gr(m,p)?(l(m,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0?d.resolve():v&&(g||(l(h,f,n,r,o,null,i,s,a),tr(d,f)))):(d.pendingId=qn++,g?(d.isHydrating=!1,d.activeBranch=m):c(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),v?(l(null,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0?d.resolve():(l(h,f,n,r,o,null,i,s,a),tr(d,f))):h&&gr(h,p)?(l(h,p,n,r,o,d,i,s,a),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0&&d.resolve()));else if(h&&gr(h,p))l(h,p,n,r,o,d,i,s,a),tr(d,p);else if(Qn(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=qn++,l(null,p,d.hiddenContainer,null,o,d,i,s,a),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(f)},e):0===e&&d.fallback(f)}}(e,t,n,r,o,s,a,l,c)}},hydrate:function(e,t,n,r,o,i,s,a,l){const c=t.suspense=Jn(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,i,s);0===c.deps&&c.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Zn(r?n.default:n),e.ssFallback=r?Zn(n.fallback):kr(or)}};function Qn(e,t){const n=e.props&&e.props[t];(0,o.Tn)(n)&&n()}function Jn(e,t,n,r,i,s,a,l,c,u,p=!1){const{p:f,m:h,um:m,n:v,o:{parentNode:g,remove:y}}=u;let b;const w=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);w&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const S=e.props?(0,o.Ro)(e.props.timeout):void 0;const _=s,O={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:qn++,timeout:"number"==typeof S?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:a,effects:l,parentComponent:c,container:u,isInFallback:d}=O;let p=!1;O.isHydrating?O.isHydrating=!1:e||(p=o&&i.transition&&"out-in"===i.transition.mode,p&&(o.transition.afterLeave=()=>{a===O.pendingId&&(h(i,u,s===_?v(o):s,0),k(l),d&&r.ssFallback&&(r.ssFallback.el=null))}),o&&(g(o.el)===u&&(s=v(o)),m(o,c,O,!0),!p&&d&&r.ssFallback&&Nn(()=>
2r.ssFallback.el=null,O)),p||h(i,u,s,0)),tr(O,i),O.pendingBranch=null,O.isInFallback=!1;let f=O.parent,y=!1;for(;f;){if(f.pendingBranch){f.effects.push(...l),y=!0;break}f=f.parent}y||p||k(l),O.effects=[],w&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Qn(r,"onResolve")},fallback(e){if(!O.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=O;Qn(t,"onFallback");const s=v(n),a=()=>{O.isInFallback&&(f(null,e,o,s,r,null,i,l,c),tr(O,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=a),O.isInFallback=!0,m(n,r,null,!0),u||a()},move(e,t,n){O.activeBranch&&h(O.activeBranch,e,t,n),O.container=e},next:()=>O.activeBranch&&v(O.activeBranch),registerDep(e,t,n){const r=!!O.pendingBranch;r&&O.deps++;const o=e.vnode.el;e.asyncDep.catch(t=>{d(t,e,0)}).then(i=>{if(e.isUnmounted||O.isUnmounted||O.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Kr(e,i,!1),o&&(s.el=o);const l=!o&&e.subTree.el;t(e,s,g(o||e.subTree.el),o?null:v(e.subTree),O,a,n),l&&(s.placeholder=null,y(l)),kn(e,s.el),r&&0===--O.deps&&O.resolve()})},unmount(e,t){O.isUnmounted=!0,O.activeBranch&&m(O.activeBranch,n,e,t),O.pendingBranch&&m(O.pendingBranch,n,e,t)}};return O}function Zn(e){let t;if((0,o.Tn)(e)){const n=dr&&e._c;n&&(e._d=!1,lr()),e=e(),n&&(e._d=!0,t=ar,cr())}if((0,o.cy)(e)){const t=gn(e);0,e=t}return e=xr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function er(e,t){t&&t.pendingBranch?(0,o.cy)(e)?t.effects.push(...e):t.effects.push(e):k(e)}function tr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,kn(r,o))}const nr=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),or=Symbol.for("v-cmt"),ir=Symbol.for("v-stc"),sr=[];let ar=null;function lr(e=!1){sr.push(ar=e?null:[])}function cr(){sr.pop(),ar=sr[sr.length-1]||null}let ur,dr=1;function pr(e,t=!1){dr+=e,e<0&&ar&&t&&(ar.hasOnce=!0)}function fr(e){return e.dynamicChildren=dr>0?ar||o.Oj:null,cr(),dr>0&&ar&&ar.push(e),e}function hr(e,t,n,r,o,i){return fr(Sr(e,t,n,r,o,i,!0))}function mr(e,t,n,r,o){return fr(kr(e,t,n,r,o,!0))}function vr(e){return!!e&&!0===e.__v_isVNode}function gr(e,t){return e.type===t.type&&e.key===t.key}function yr(e){ur=e}const br=({key:e})=>null!=e?e:null,wr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,o.Kg)(e)||(0,r.i9)(e)||(0,o.Tn)(e)?{i:P,r:e,k:t,f:!!n}:e:null);function Sr(e,t=null,n=null,r=0,i=null,s=(e===nr?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&br(t),ref:t&&wr(t),scopeId:I,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:P};return l?(Ir(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=(0,o.Kg)(n)?8:16),dr>0&&!a&&ar&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&ar.push(c),c}const kr=_r;function _r(e,t=null,n=null,i=0,s=null,a=!1){if(e&&e!==gt||(e=or),vr(e)){const r=Cr(e,t,!0);return n&&Ir(r,n),dr>0&&!a&&ar&&(6&r.shapeFlag?ar[ar.indexOf(e)]=r:ar.push(r)),r.patchFlag=-2,r}if(no(e)&&(e=e.__vccOpts),t){t=Or(t);let{class:e,style:n}=t;e&&!(0,o.Kg)(e)&&(t.class=(0,o.C4)(e)),(0,o.Gv)(n)&&((0,r.ju)(n)&&!(0,o.cy)(n)&&(n=(0,o.X$)({},n)),t.style=(0,o.Tr)(n))}return Sr(e,t,n,i,s,(0,o.Kg)(e)?1:Kn(e)?128:J(e)?64:(0,o.Gv)(e)?4:(0,o.Tn)(e)?2:0,a,!0)}function Or(e){return e?(0,r.ju)(e)||Cn(e)?(0,o.X$)({},e):e:null}function Cr(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:a,children:l,transition:c}=e,u=t?Lr(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&br(u),ref:t&&t.ref?n&&s?(0,o.cy)(s)?s.concat(wr(t)):[s,wr(t)]:wr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nr?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Cr(e.ssContent),ssFallback:e.ssFallback&&Cr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Se(d,c.clone(d)),d}function Tr(e=" ",t=0){return kr(rr,null,e,t)}function Ar(e,t){const n=kr(ir,null,e);return n.staticCount=t,n}function Er(e="",t=!1){return t?(lr(),mr(or,null,e)):kr(or,null,e)}function xr(e){return null==e||"boolean"==typeof e?kr(or):(0,o.cy)(e)?kr(nr,null,e.slice()):vr(e)?Pr(e):kr(rr,null,String(e))}function Pr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Cr(e)}function Ir(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.cy)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ir(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Cn(t)?3===r&&P&&(1===P.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=P}}else(0,o.Tn)(t)?(t={default:t,_ctx:P},n=32):(t=String(t),64&r?(n=16,t=[Tr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Lr(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,o.C4)([t.class,r.class]));else if("style"===e)t.style=(0,o.Tr)([t.style,r.style]);else if((0,o.Mp)(e)){const n=t[e],i=r[e];!i||n===i||(0,o.cy)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function jr(e,t,n,r=null){u(e,t,7,[n,r])}const Mr=sn();let Dr=0;function Rr(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||Mr,a={uid:Dr++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new r.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xn(i,s),emitsOptions:hn(i,s),emit:null,emitted:null,propsDefaults:o.MZ,inheritAttrs:i.inheritAttrs,ctx:o.MZ,data:o.MZ,props:o.MZ,attrs:o.MZ,slots:o.MZ,refs:o.MZ,setupState:o.MZ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
2sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=pn.bind(null,a),e.ce&&e.ce(a),a}let Nr=null;const Fr=()=>Nr||P;let Br,Ur;{const e=(0,o.We)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Br=t("__VUE_INSTANCE_SETTERS__",e=>Nr=e),Ur=t("__VUE_SSR_SETTERS__",e=>Xr=e)}const Hr=e=>{const t=Nr;return Br(e),e.scope.on(),()=>{e.scope.off(),Br(t)}},$r=()=>{Nr&&Nr.scope.off(),Br(null)};function zr(e){return 4&e.vnode.shapeFlag}let Wr,Gr,Xr=!1;function Vr(e,t=!1,n=!1){t&&Ur(t);const{props:i,children:s}=e.vnode,a=zr(e);!function(e,t,n,o=!1){const i={},s=On();e.propsDefaults=Object.create(null),Tn(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=o?i:(0,r.Gc)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,i,a,t),((e,t,n)=>{const r=e.slots=On();if(32&e.vnode.shapeFlag){const e=t._;e?(Rn(r,t,n),n&&(0,o.yQ)(r,"_",e,!0)):Mn(t,r)}else t&&Dn(e,t)})(e,s,n||t);const l=a?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pt),!1;const{setup:i}=n;if(i){(0,r.C4)();const n=e.setupContext=i.length>1?Zr(e):null,s=Hr(e),a=c(i,e,0,[e.props,n]),l=(0,o.yL)(a);if((0,r.bl)(),s(),!l&&!e.sp||Ge(e)||Ce(e),l){if(a.then($r,$r),t)return a.then(n=>{Kr(e,n,t)}).catch(t=>{d(t,e,0)});e.asyncDep=a}else Kr(e,a,t)}else Qr(e,t)}(e,t):void 0;return t&&Ur(!1),l}function Kr(e,t,n){(0,o.Tn)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Gv)(t)&&(e.setupState=(0,r.Pr)(t)),Qr(e,n)}function qr(e){Wr=e,Gr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,It))}}const Yr=()=>!Wr;function Qr(e,t,n){const i=e.type;if(!e.render){if(!t&&Wr&&!i.render){const t=i.template||Qt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:a}=i,l=(0,o.X$)((0,o.X$)({isCustomElement:n,delimiters:s},r),a);i.render=Wr(t,l)}}e.render=i.render||o.tE,Gr&&Gr(e)}{const t=Hr(e);(0,r.C4)();try{Kt(e)}finally{(0,r.bl)(),t()}}}const Jr={get:(e,t)=>((0,r.u4)(e,"get",""),e[t])};function Zr(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Jr),slots:e.slots,emit:e.emit,expose:t}}function eo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,r.Pr)((0,r.IG)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Et?Et[n](e):void 0,has:(e,t)=>t in e||t in Et})):e.proxy}function to(e,t=!0){return(0,o.Tn)(e)?e.displayName||e.name:e.name||t&&e.__name}function no(e){return(0,o.Tn)(e)&&"__vccOpts"in e}const ro=(e,t)=>(0,r.EW)(e,t,Xr);function oo(e,t,n){try{pr(-1);const r=arguments.length;return 2===r?(0,o.Gv)(t)&&!(0,o.cy)(t)?vr(t)?kr(e,null,[t]):kr(e,t):kr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&vr(n)&&(n=[n]),kr(e,t,n))}finally{pr(1)}}function io(){return void 0}function so(e,t,n,r){const o=n[r];if(o&&ao(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function ao(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if((0,o.$H)(n[e],t[e]))return!1;return dr>0&&ar&&ar.push(e),!0}const lo="3.5.30",co=o.tE,uo=l,po=A,fo=function e(t,n){var r,o;if(A=t,A)A.enabled=!0,E.forEach(({event:e,args:t})=>A.emit(e,...t)),E=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{A||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,x=!0,E=[])},3e3)}else x=!0,E=[]},ho={createComponentInstance:Rr,setupComponent:Vr,renderComponentRoot:vn,setCurrentRenderingInstance:L,isVNode:vr,normalizeVNode:xr,getComponentPublicInstance:eo,ensureValidVNode:Ct,pushWarningContext:function(e){i.push(e)},popWarningContext:function(){i.pop()}},mo=null,vo=null,go=null},53751(e,t,n){"use strict";n.r(t),n.d(t,{BaseTransition:()=>r.pR,BaseTransitionPropsValidators:()=>r.QP,Comment:()=>r.Mw,DeprecationTypes:()=>r.aT,EffectScope:()=>r.yC,ErrorCodes:()=>r.tG,ErrorTypeStrings:()=>r.ZQ,Fragment:()=>r.FK,KeepAlive:()=>r.PR,ReactiveEffect:()=>r.X2,Static:()=>r.jC,Suspense:()=>r.tY,Teleport:()=>r.Im,Text:()=>r.EY,TrackOpTypes:()=>r.Ul,Transition:()=>g,TransitionGroup:()=>fe,TriggerOpTypes:()=>r.PP,VueElement:()=>ie,assertNumber:()=>r.U4,callWithAsyncErrorHandling:()=>r.qL,callWithErrorHandling:()=>r.gh,camelize:()=>r.PT,capitalize:()=>r.ZH,cloneVNode:()=>r.E3,compatUtils:()=>r.Y5,computed:()=>r.EW,createApp:()=>Xe,createBlock:()=>r.Wv,createCommentVNode:()=>r.Q3,createElementBlock:()=>r.CE,createElementVNode:()=>r.Lk,createHydrationRenderer:()=>r.ci,createPropsRestProxy:()=>r.bn,createRenderer:()=>r.K9,createSSRApp:()=>Ve,createSlots:()=>r.eX,createStaticVNode:()=>r.Fv,createTextVNode:()=>r.eW,createVNode:()=>
2r.bF,customRef:()=>r.rY,defineAsyncComponent:()=>r.$V,defineComponent:()=>r.pM,defineCustomElement:()=>ne,defineEmits:()=>r.qP,defineExpose:()=>r.wk,defineModel:()=>r.NP,defineOptions:()=>r.GM,defineProps:()=>r.Yj,defineSSRCustomElement:()=>re,defineSlots:()=>r.Lu,devtools:()=>r.lt,effect:()=>r.QZ,effectScope:()=>r.uY,getCurrentInstance:()=>r.nI,getCurrentScope:()=>r.o5,getCurrentWatcher:()=>r.Yv,getTransitionRawChildren:()=>r.Df,guardReactiveProps:()=>r.Ng,h:()=>r.h,handleError:()=>r.H4,hasInjectionContext:()=>r.PS,hydrate:()=>Ge,hydrateOnIdle:()=>r.rU,hydrateOnInteraction:()=>r.Tq,hydrateOnMediaQuery:()=>r.dA,hydrateOnVisible:()=>r.Pn,initCustomFormatter:()=>r.y$,initDirectivesForSSR:()=>Qe,inject:()=>r.WQ,isMemoSame:()=>r.Bs,isProxy:()=>r.ju,isReactive:()=>r.g8,isReadonly:()=>r.Tm,isRef:()=>r.i9,isRuntimeOnly:()=>r.wX,isShallow:()=>r.fE,isVNode:()=>r.vv,markRaw:()=>r.IG,mergeDefaults:()=>r.HF,mergeModels:()=>r.zz,mergeProps:()=>r.v6,nextTick:()=>r.dY,nodeOps:()=>d,normalizeClass:()=>r.C4,normalizeProps:()=>r._B,normalizeStyle:()=>r.Tr,onActivated:()=>r.n,onBeforeMount:()=>r.KC,onBeforeUnmount:()=>r.xo,onBeforeUpdate:()=>r.Ic,onDeactivated:()=>r.Y4,onErrorCaptured:()=>r.qG,onMounted:()=>r.sV,onRenderTracked:()=>r.qR,onRenderTriggered:()=>r.bj,onScopeDispose:()=>r.jr,onServerPrefetch:()=>r.SS,onUnmounted:()=>r.hi,onUpdated:()=>r.$u,onWatcherCleanup:()=>r.ch,openBlock:()=>r.uX,patchProp:()=>ee,popScopeId:()=>r.jt,provide:()=>r.Gt,proxyRefs:()=>r.Pr,pushScopeId:()=>r.Qi,queuePostFlushCb:()=>r.Dl,reactive:()=>r.Kh,readonly:()=>r.tB,ref:()=>r.KR,registerRuntimeCompiler:()=>r.tC,render:()=>We,renderList:()=>r.pI,renderSlot:()=>
2r.RG,resolveComponent:()=>r.g2,resolveDirective:()=>r.gN,resolveDynamicComponent:()=>r.$y,resolveFilter:()=>r.LJ,resolveTransitionHooks:()=>r.OW,setBlockTracking:()=>r.Vq,setDevtoolsHook:()=>r.iD,setTransitionHooks:()=>r.MZ,shallowReactive:()=>r.Gc,shallowReadonly:()=>r.nD,shallowRef:()=>r.IJ,ssrContextKey:()=>r.Fw,ssrUtils:()=>r.Gw,stop:()=>r.ds,toDisplayString:()=>r.v_,toHandlerKey:()=>r.Kf,toHandlers:()=>r.Tb,toRaw:()=>r.ux,toRef:()=>r.lW,toRefs:()=>r.QW,toValue:()=>r.BA,transformVNodeArgs:()=>r.gW,triggerRef:()=>r.mu,unref:()=>r.R1,useAttrs:()=>r.OA,useCssModule:()=>le,useCssVars:()=>R,useHost:()=>se,useId:()=>r.Bi,useModel:()=>r.fn,useSSRContext:()=>r.LM,useShadowRoot:()=>ae,useSlots:()=>r.Ht,useTemplateRef:()=>r.rk,useTransitionState:()=>r.Gy,vModelCheckbox:()=>Oe,vModelDynamic:()=>Ie,vModelRadio:()=>Te,vModelSelect:()=>Ae,vModelText:()=>_e,vShow:()=>j,version:()=>r.rE,warn:()=>r.R8,watch:()=>r.wB,watchEffect:()=>r.nT,watchPostEffect:()=>r.p9,watchSyncEffect:()=>r.U_,withAsyncContext:()=>r.E,withCtx:()=>r.k6,withDefaults:()=>r.rO,withDirectives:()=>r.bo,withKeys:()=>Fe,withMemo:()=>r.bU,withModifiers:()=>Re,withScopeId:()=>r.YY});var r=n(20641),o=n(50953),i=n(90033);let s;const a="undefined"!=typeof window&&window.trustedTypes;if(a)try{s=a.createPolicy("vue",{createHTML:e=>e})}catch(e){}const l=s?e=>s.createHTML(e):e=>e,c="undefined"!=typeof document?document:null,u=c&&c.createElement("template"),d={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?c.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?c.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?c.createElement(e,{is:n}):c.createElement(e);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>c.createTextNode(e),createComment:e=>c.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
2{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>c.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{u.innerHTML=l("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const o=u.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},p="transition",f="animation",h=Symbol("_vtc"),m={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},v=(0,i.X$)({},r.QP,m),g=(e=>(e.displayName="Transition",e.props=v,e))((e,{slots:t})=>(0,r.h)(r.pR,w(e),t)),y=(e,t=[])=>{(0,i.cy)(e)?e.forEach(e=>e(...t)):e&&e(...t)},b=e=>!!e&&((0,i.cy)(e)?e.some(e=>e.length>1):e.length>1);function w(e){const t={};for(const n in e)n in m||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=function(e){if(null==e)return null;if((0,i.Gv)(e))return[S(e.enter),S(e.leave)];{const t=S(e);return[t,t]}}(o),g=v&&v[0],w=v&&v[1],{onBeforeEnter:C,onEnter:A,onEnterCancelled:E,onLeave:x,onLeaveCancelled:I,onBeforeAppear:L=C,onAppear:j=A,onAppearCancelled:M=E}=t,D=(e,t,n,r)=>{e._enterCancelled=r,_(e,t?d:l),_(e,t?u:a),n&&n()},R=(e,t)=>{e._isLeaving=!1,_(e,p),_(e,h),_(e,f),t&&t()},N=e=>(t,n)=>{const o=e?j:A,i=()=>D(t,e,n);y(o,[t,i]),O(()=>{_(t,e?c:s),k(t,e?d:l),b(o)||T(t,r,g,i)})};return(0,i.X$)(t,{onBeforeEnter(e){y(C,[e]),k(e,s),k(e,a)},onBeforeAppear(e){y(L,[e]),k(e,c),k(e,u)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>R(e,t);k(e,p),e._enterCancelled?(k(e,f),P(e)):(P(e),k(e,f)),O(()=>{e._isLeaving&&(_(e,p),k(e,h),b(x)||T(e,r,w,n))}),y(x,[e,n])},onEnterCancelled(e){D(e,!1,void 0,!0),y(E,[e])},onAppearCancelled(e){D(e,!0,void 0,!0),y(M,[e])},onLeaveCancelled(e){R(e),y(I,[e])}})}function S(e){return(0,i.Ro)(e)}function k(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[h]||(e[h]=new Set)).add(t)}function _(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[h];n&&(n.delete(t),n.size||(e[h]=void 0))}function O(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let C=0;function T(e,t,n,r){const o=e._endId=++C,i=()=>{o===e._endId&&r()};if(null!=n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=A(e,t);if(!s)return r();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,p)}function A(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${p}Delay`),i=r(`${p}Duration`),s=E(o,i),a=r(`${f}Delay`),l=r(`${f}Duration`),c=E(a,l);let u=null,d=0,h=0;t===p?s>0&&(u=p,d=s,h=i.length):t===f?c>0&&(u=f,d=c,h=l.length):(d=Math.max(s,c),u=d>0?s>c?p:f:null,h=u?u===p?i.length:l.length:0);return{type:u,timeout:d,propCount:h,hasTransform:u===p&&/\b(?:transform|all)(?:,|$)/.test(r(`${p}Property`).toString())}}function E(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>x(t)+x(e[n])))}function x(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function P(e){return(e?e.ownerDocument:document).body.offsetHeight}const I=Symbol("_vod"),L=Symbol("_vsh"),j={name:"show",beforeMount(e,{value:t},{transition:n}){e[I]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):M(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),M(e,!0),r.enter(e)):r.leave(e,()=>{M(e,!1)}):M(e,t))},beforeUnmount(e,{value:t}){M(e,t)}};function M(e,t){e.style.display=t?e[I]:"none",e[L]=!t}const D=Symbol("");function R(e){const t=(0,r.nI)();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}
2"]`)).forEach(e=>F(e,n))};const o=()=>{const r=e(t.proxy);t.ce?F(t.ce,r):N(t.subTree,r),n(r)};(0,r.Ic)(()=>{(0,r.Dl)(o)}),(0,r.sV)(()=>{(0,r.wB)(o,i.tE,{flush:"post"});const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,r.hi)(()=>e.disconnect())})}function N(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{N(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)F(e.el,t);else if(e.type===r.FK)e.children.forEach(e=>N(e,t));else if(e.type===r.jC){let{el:n,anchor:r}=e;for(;n&&(F(n,t),n!==r);)n=n.nextSibling}}function F(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t){const o=(0,i.pU)(t[e]);n.setProperty(`--${e}`,o),r+=`--${e}: ${o};`}n[D]=r}}const B=/(?:^|;)\s*display\s*:/;const U=/\s*!important$/;function H(e,t,n){if((0,i.cy)(n))n.forEach(n=>H(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=z[t];if(n)return n;let r=(0,i.PT)(t);if("filter"!==r&&r in e)return z[t]=r;r=(0,i.ZH)(r);for(let n=0;n<$.length;n++){const o=$[n]+r;if(o in e)return z[t]=o}return t}(e,t);U.test(n)?e.setProperty((0,i.Tg)(r),n.replace(U,""),"important"):e[r]=n}}const $=["Webkit","Moz","ms"],z={};const W="http://www.w3.org/1999/xlink";function G(e,t,n,r,o,s=(0,i.J$)(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(W,t.slice(6,t.length)):e.setAttributeNS(W,t,n):null==n||s&&
2!(0,i.Y2)(n)?e.removeAttribute(t):e.setAttribute(t,s?"":(0,i.Bm)(n)?String(n):n)}function X(e,t,n,r,o){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?l(n):n));const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){const r="OPTION"===s?e.getAttribute("value")||"":e.value,o=null==n?"checkbox"===e.type?"on":"":String(n);return r===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,i.Y2)(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(e){0}a&&e.removeAttribute(o||t)}function V(e,t,n,r){e.addEventListener(t,n,r)}const K=Symbol("_vei");function q(e,t,n,o,s=null){const a=e[K]||(e[K]={}),l=a[t];if(o&&l)l.value=o;else{const[n,c]=function(e){let t;if(Y.test(e)){let n;for(t={};n=e.match(Y);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):(0,i.Tg)(e.slice(2));return[n,t]}(t);if(o){const l=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,r.qL)(function(e,t){if((0,i.cy)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Q||(J.then(()=>Q=0),Q=Date.now()))(),n}(o,s);V(e,n,l,c)}else l&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,c),a[t]=void 0)}}const Y=/(?:Once|Passive|Capture)$/;let Q=0;const J=Promise.resolve();const Z=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ee=(e,t,n,r,o,s)=>{const a="svg"===o;"class"===t?function(e,t,n){const r=e[h];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,a):"style"===t?function(e,t,n){const r=e.style,o=(0,i.Kg)(n);let s=!1;if(n&&!o){if(t)if((0,i.Kg)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&H(r,t,"")}else for(const e in t)null==n[e]&&H(r,e,"");for(const e in n)"display"===e&&(s=!0),H(r,e,n[e])}else if(o){if(t!==n){const e=r[D];e&&(n+=";"+e),r.cssText=n,s=B.test(n)}}else t&&e.removeAttribute("style");I in e&&(e[I]=s?r.display:"",e[L]&&(r.display="none"))}(e,n,r):(0,i.Mp)(t)?(0,i.CP)(t)||q(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Z(t)&&(0,i.Tn)(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(Z(t)&&(0,i.Kg)(n))return!1;return t in e}(e,t,r,a))?(X(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||G(e,t,r,a,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const r=(0,i.PT)(t);return Array.isArray(n)?n.some(e=>(0,i.PT)(e)===r):Object.keys(n).some(e=>(0,i.PT)(e)===r)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!(0,i.Kg)(r)))?X(e,(0,i.PT)(t),r,0,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),G(e,t,r,a))};const te={};function ne(e,t,n){let o=(0,r.pM)(e,t);(0,i.Qd)(o)&&(o=(0,i.X$)({},o,t));class s extends ie{constructor(e){super(o,e,n)}}return s.def=o,s}const re=(e,t)=>ne(e,t,Ve),oe="undefined"!=typeof HTMLElement?HTMLElement:class{};class ie extends oe{constructor(e,t={},n=Xe){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Xe?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow((0,i.X$)({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof ie){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,(0,r.dY)(()=>{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,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}
2_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let o;if(n&&!(0,i.cy)(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=(0,i.Ro)(this._props[e])),(o||(o=Object.create(null)))[(0,i.PT)(e)]=!0)}this._numberProps=o,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)(0,i.$3)(this,e)||Object.defineProperty(this,e,{get:()=>(0,o.R1)(t[e])})}_resolveProps(e){const{props:t}=e,n=(0,i.cy)(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(i.PT))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):te;const r=(0,i.PT)(e);t&&this._numberProps&&this._numberProps[r]&&(n=(0,i.Ro)(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===te?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute((0,i.Tg)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,i.Tg)(e),t+""):t||this.removeAttribute((0,i.Tg)(e)),n&&n.observe(this,{attributes:!0})}}
2_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),We(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=(0,r.bF)(this._def,(0,i.X$)(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,(0,i.Qd)(t[0])?(0,i.X$)({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),(0,i.Tg)(e)!==e&&t((0,i.Tg)(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const r=this._nonce,o=this.shadowRoot,i=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let s=null;for(let a=e.length-1;a>=0;a--){const l=document.createElement("style");r&&l.setAttribute("nonce",r),l.textContent=e[a],o.insertBefore(l,s||i),s=l,0===a&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],o=r.getAttribute("name")||"default",i=this._slots[o],s=r.parentNode;if(i)for(const e of i){if(t&&1===e.nodeType){const n=t+"-s",r=document.createTreeWalker(e,1);let o;for(e.setAttribute(n,"");o=r.nextNode();)o.setAttribute(n,"")}s.insertBefore(e,r)}else for(;r.firstChild;)s.insertBefore(r.firstChild,r);s.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){0}}function se(e){const t=(0,r.nI)(),n=t&&t.ce;return n||null}function ae(){const e=se();return e&&e.shadowRoot}function le(e="$style"){{const t=(0,r.nI)();if(!t)return i.MZ;const n=t.type.__cssModules;if(!n)return i.MZ;const o=n[e];return o||i.MZ}}const ce=new WeakMap,ue=new WeakMap,de=Symbol("_moveCb"),pe=Symbol("_enterCb"),fe=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:(0,i.X$)({},v,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.nI)(),i=(0,r.Gy)();let s,a;return(0,r.$u)(()=>{if(!s.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[h];o&&o.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))});n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=A(r);return i.removeChild(r),s}(s[0].el,n.vnode.el,t))return void(s=[]);s.forEach(he),s.forEach(me);const r=s.filter(ve);P(n.vnode.el),r.forEach(e=>{const n=e.el,r=n.style;k(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[de]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",o),n[de]=null,_(n,t))};n.addEventListener("transitionend",o)}),s=[]}),()=>{const l=(0,o.ux)(e),c=w(l);let u=l.tag||r.FK;if(s=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&(s.push(t),(0,r.MZ)(t,(0,r.OW)(t,c,i,n)),ce.set(t,ge(t.el)))}a=t.default?(0,r.Df)(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&(0,r.MZ)(t,(0,r.OW)(t,c,i,n))}return(0,r.bF)(u,null,a)}}});function he(e){const t=e.el;t[de]&&t[de](),t[pe]&&t[pe]()}function me(e){ue.set(e,ge(e.el))}function ve(e){const t=ce.get(e),n=ue.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el,n=t.style,i=t.getBoundingClientRect();let s=1,a=1;return t.offsetWidth&&(s=i.width/t.offsetWidth),t.offsetHeight&&(a=i.height/t.offsetHeight),Number.isFinite(s)&&0!==s||(s=1),Number.isFinite(a)&&0!==a||(a=1),Math.abs(s-1)<.01&&(s=1),Math.abs(a-1)<.01&&(a=1),n.transform=n.webkitTransform=`translate(${r/s}px,${o/a}px)`,n.transitionDuration="0s",e}}function ge(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}const ye=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,i.cy)(t)?e=>(0,i.DY)(t,e):t};function be(e){e.target.composing=!0}function we(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Se=Symbol("_assign");function ke(e,t,n){return t&&(e=e.trim()),n&&(e=(0,i.bB)(e)),e}const _e={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Se]=ye(o);const i=r||o.props&&"number"===o.props.type;V(e,t?"change":"input",t=>{t.target.composing||e[Se](ke(e.value,n,i))}),(n||i)&&V(e,"change",()=>{e.value=ke(e.value,n,i)}),t||(V(e,"compositionstart",be),V(e,"compositionend",we),V(e,"change",we))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},a){if(e[Se]=ye(a),e.composing)return;const l=null==t?"":t;if((!s&&"number"!==e.type||/^0\d/.test(e.value)?e.value:(0,i.bB)(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===l)return}e.value=l}}},Oe={deep:!0,created(e,t,n){e[Se]=ye(n),V(e,"change",()=>{const t=e._modelValue,n=xe(e),r=e.checked,o=e[Se];if((0,i.cy)(t)){const e=(0,i.u3)(t,n),s=-1!==e;if(r&&!s)o(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),o(n)}}else if((0,i.vM)(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Pe(e,r))})},mounted:Ce,beforeUpdate(e,t,n){e[Se]=ye(n),Ce(e,t,n)}};function Ce(e,{value:t,oldValue:n},r){let o;if(e._modelValue=t,(0,i.cy)(t))o=(0,i.u3)(t,r.props.value)>-1;else if((0,i.vM)(t))o=t.has(r.props.value);else{if(t===n)return;o=(0,i.BX)(t,Pe(e,!0))}e.checked!==o&&(e.checked=o)}const Te={created(e,{value:t},n){e.checked=(0,i.BX)(t,n.props.value),e[Se]=ye(n),V(e,"change",()=>{e[Se](xe(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Se]=ye(r),t!==n&&(e.checked=(0,i.BX)(t,r.props.value))}},Ae={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=(0,i.vM)(t);V(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?(0,i.bB)(xe(e)):xe(e));e[Se](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,(0,r.dY)(()=>{e._assigning=!1})}),e[Se]=ye(o)},mounted(e,{value:t}){Ee(e,t)},beforeUpdate(e,t,n){e[Se]=ye(n)},updated(e,{value:t}){e._assigning||Ee(e,t)}};function Ee(e,t){const n=e.multiple,r=(0,i.cy)(t);if(!n||r||(0,i.vM)(t)){for(let o=0,s=e.options.length;o<s;o++){const s=e.options[o],a=xe(s);if(n)if(r){const e=typeof a;s.selected="string"===e||"number"===e?t.some(e=>String(e)===String(a)):(0,i.u3)(t,a)>-1}else s.selected=t.has(a);else if((0,i.BX)(xe(s),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function xe(e){return"_value"in e?e._value:e.value}function Pe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ie={created(e,t,n){je(e,t,n,null,"created")},mounted(e,t,n){je(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){je(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){je(e,t,n,r,"updated")}};function Le(e,t){switch(e){case"SELECT":return Ae;case"TEXTAREA":return _e;default:switch(t){case"checkbox":return Oe;case"radio":return Te;default:return _e}}}function je(e,t,n,r,o){const i=Le(e.tagName,n.props&&n.props.type)[o];i&&i(e,t,n,r)}const Me=["ctrl","shift","alt","meta"],De={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>
2Me.some(n=>e[`${n}Key`]&&!t.includes(n))},Re=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=De[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Ne={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fe=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,i.Tg)(n.key);return t.some(e=>e===r||Ne[e]===r)?e(n):void 0})},Be=(0,i.X$)({patchProp:ee},d);let Ue,He=!1;function $e(){return Ue||(Ue=(0,r.K9)(Be))}function ze(){return Ue=He?Ue:(0,r.ci)(Be),He=!0,Ue}const We=(...e)=>{$e().render(...e)},Ge=(...e)=>{ze().hydrate(...e)},Xe=(...e)=>{const t=$e().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=qe(e);if(!r)return;const o=t._component;(0,i.Tn)(o)||o.render||o.template||(o.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const s=n(r,!1,Ke(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Ve=(...e)=>{const t=ze().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=qe(e);if(t)return n(t,!0,Ke(t))},t};function Ke(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function qe(e){if((0,i.Kg)(e)){return document.querySelector(e)}return e}let Ye=!1;const Qe=()=>{Ye||(Ye=!0,_e.getSSRProps=({value:e})=>({value:e}),Te.getSSRProps=({value:e},t)=>{if(t.props&&(0,i.BX)(t.props.value,e))return{checked:!0}},Oe.getSSRProps=({value:e},t)=>{if((0,i.cy)(e)){if(t.props&&(0,i.u3)(e,t.props.value)>-1)return{checked:!0}}else if((0,i.vM)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ie.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Le(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},j.getSSRProps=({value:e})=>
2{if(!e)return{style:{display:"none"}}})}},90033(e,t,n){"use strict";function r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{$3:()=>f,$H:()=>N,BH:()=>W,BX:()=>te,Bm:()=>S,C4:()=>Y,CE:()=>m,CP:()=>c,DY:()=>F,Gv:()=>k,J$:()=>Z,Kg:()=>w,MZ:()=>o,Mp:()=>l,NO:()=>a,Oj:()=>i,PT:()=>L,Qd:()=>A,Ro:()=>H,SU:()=>x,TF:()=>d,Tg:()=>M,Tn:()=>b,Tr:()=>G,We:()=>z,X$:()=>u,Y2:()=>ee,ZH:()=>D,Zf:()=>T,_B:()=>Q,bB:()=>U,cy:()=>h,gd:()=>y,pD:()=>r,pU:()=>ae,rU:()=>R,tE:()=>s,u3:()=>ne,vM:()=>v,v_:()=>oe,yI:()=>E,yL:()=>_,yQ:()=>B});const o={},i=[],s=()=>{},a=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},p=Object.prototype.hasOwnProperty,f=(e,t)=>p.call(e,t),h=Array.isArray,m=e=>"[object Map]"===C(e),v=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),y=e=>"[object RegExp]"===C(e),b=e=>"function"==typeof e,w=e=>"string"==typeof e,S=e=>"symbol"==typeof e,k=e=>null!==e&&"object"==typeof e,_=e=>(k(e)||b(e))&&b(e.then)&&b(e.catch),O=Object.prototype.toString,C=e=>O.call(e),T=e=>C(e).slice(8,-1),A=e=>"[object Object]"===C(e),E=e=>w(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,x=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-\w/g,L=P(e=>e.replace(I,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,M=P(e=>e.replace(j,"-$1").toLowerCase()),D=P(e=>e.charAt(0).toUpperCase()+e.slice(1)),R=P(e=>e?`on${D(e)}`:""),N=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},B=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=w(e)?Number(e):NaN;return isNaN(t)?e:t};let $;const z=()=>$||($="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});const W=r("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");function G(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=w(r)?q(r):G(r);if(o)for(const e in o)t[e]=o[e]}return t}if(w(e)||k(e))return e}const X=/;(?![^(]*\))/g,V=/:([^]+)/,K=/\/\*[^]*?\*\//g;function q(e){const t={};return e.replace(K,"").split(X).forEach(e=>{if(e){const n=e.split(V);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Y(e){let t="";if(w(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const r=Y(e[n]);r&&(t+=r+" ")}else if(k(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Q(e){if(!e)return null;let{class:t,style:n}=e;return t&&!w(t)&&(e.class=Y(t)),n&&(e.style=G(n)),e}const J="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Z=r(J);function ee(e){return!!e||""===e}function te(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=S(e),r=S(t),n||r)return e===t;if(n=h(e),r=h(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=te(e[r],t[r]);return n}(e,t);if(n=k(e),r=k(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!te(e[n],t[n]))return!1}}return String(e)===String(t)}function ne(e,t){return e.findIndex(e=>te(e,t))}const re=e=>!(!e||!0!==e.__v_isRef),oe=e=>w(e)?e:null==e?"":h(e)||k(e)&&(e.toString===O||!b(e.toString))?re(e)?oe(e.value):JSON.stringify(e,ie,2):String(e),ie=(e,t)=>re(t)?ie(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[se(t,r)+" =>"]=n,e),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>se(e))}:S(t)?se(t):!k(t)||h(t)||A(t)?t:String(t),se=(e,t="")=>{var n;return S(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function ae(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:("number"==typeof e&&Number.isFinite(e),String(e))}},31173(e,t,n){"use strict";n.d(t,{A:()=>a});var r=new Map;function o(e){var t=r.get(e);t&&t.destroy()}function i(e){var t=r.get(e);
vendor: 4,277 bytes, line 2
2t&&t.update()}var s=null;"undefined"==typeof window?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t,n=null,o=window.getComputedStyle(e),i=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),s=function(t){e.removeEventListener("autosize:destroy",s),e.removeEventListener("autosize:update",l),e.removeEventListener("input",i),window.removeEventListener("resize",l),Object.keys(t).forEach(function(n){return e.style[n]=t[n]}),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s),e.addEventListener("autosize:update",l),e.addEventListener("input",i),window.addEventListener("resize",l),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:s,update:l}),l()}function a(t){var r,i,s=t.restoreTextAlign,l=void 0===s?null:s,c=t.testForHeightReduction,u=void 0===c||c,d=o.overflowY;if(0!==e.scrollHeight&&("vertical"===o.resize?e.style.resize="none":"both"===o.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null})}}(e),e.style.height=""),i="content-box"===o.boxSizing?e.scrollHeight-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)):e.scrollHeight+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),"none"!==o.maxHeight&&i>parseFloat(o.maxHeight)?("hidden"===o.overflowY&&(e.style.overflow="scroll"),i=parseFloat(o.maxHeight)):"hidden"!==o.overflowY&&(e.style.overflow="hidden"),e.style.height=i+"px",l&&(e.style.textAlign=l),r&&r(),n!==i&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=i),d!==o.overflow&&!l)){var p=o.textAlign;"hidden"===o.overflow&&(e.style.textAlign="start"===p?"end":"start"),a({restoreTextAlign:p,testForHeightReduction:!0})}}function l(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e});const a=s},6741(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31601),o=n.n(r),i=n(76314),s=n.n(i)()(o());s.push([e.id,"\nimg {\n&.aspect-ratio-1_1[data-v-5320a764] {\n aspect-ratio: 1;\n object-fit: cover;\n}\n&.aspect-ratio-3_4[data-v-5320a764] {\n aspect-ratio: 3/4;\n object-fit: cover;\n}\n&.aspect-ratio-4_3[data-v-5320a764] {\n aspect-ratio: 4/3;\n object-fit: cover;\n}\n&.aspect-ratio-9_16[data-v-5320a764] {\n aspect-ratio: 9/16;\n object-fit: cover;\n}\n&.aspect-ratio-16_9[data-v-5320a764] {\n aspect-ratio: 16/9;\n object-fit: cover;\n}\n}\n.zoom-overlay[data-v-5320a764] {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1000;\n cursor: zoom-out;\n}\n.zoom-background[data-v-5320a764] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n backdrop-filter: blur(10px);\n opacity: 0;\n transition: opacity 300ms ease;\n}\n.zoom-background.active[data-v-5320a764] {\n opacity: 1;\n}\n.zoomed-image[data-v-5320a764] {\n position: absolute;\n transition: top 300ms ease, left 300ms ease, width 300ms ease, height 300ms ease;\n will-change: top, left, width, height;\n filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));\n}\n",""]);const a=s},9731(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31601),o=n.n(r),i=n(76314),s=n.n(i)()(o());s.push([e.id,"\n.option-bar-group-container[data-v-0256d85b] {\n padding: 4px;\n gap: 8px;\n background: var(--asphalt90);\n border-radius: 4px;\n display: flex;\n flex-direction: row;\n justify-content: center;
2\n align-items: center;\n width: 100%;\n user-select: none;\n}\n",""]);const a=s},62523(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31601),o=n.n(r),i=n(76314),s=n.n(i)()(o());s.push([e.id,"\n.top-notification {\n left: 50%;\n transform: translate(-50%, -51px);\n will-change: transform;\n}\n.slide-bar-enter-active,\n.slide-bar-leave-active {\n transition: transform 0.3s ease;\n}\n.slide-bar-enter-from,\n.slide-bar-leave-to {\n transform: translate(-50%, 0);\n}\n.slide-bar-enter-to,\n.slide-bar-leave-from {\n transform: translate(-50%, -51px);\n}\n",""]);const a=s},23972(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31601),o=n.n(r),i=n(76314),s=n.n(i)()(o());s.push([e.id,"\n.button-container {\nspan[data-v-f367f7a2] {\n font:var(--editor-ui-b2-regular);\n color: var(--asphalt40);\n}\n}\n",""]);const a=s},76314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&s[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},31601(e){"use strict";e.exports=function(e){return e[1]}},76575(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{A:()=>un});var o,i,s,a,l,c,u,d,p,f,h,m,v,g=function(){return o||"undefined"!=typeof window&&(o=window.gsap)&&o.registerPlugin&&o},y=1,b=[],w=[],S=[],k=Date.now,_=function(e,t){return t},O=function(e,t){return~S.indexOf(e)&&S[S.indexOf(e)+1][t]},C=function(e){return!!~f.indexOf(e)},T=function(e,t,n,r,o){return e.addEventListener(t,n,{passive:!1!==r,capture:!!o})},A=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},E="scrollLeft",x="scrollTop",P=function(){return h&&h.isPressed||w.cache++},I=function(e,t){var n=function n(r){if(r||0===r){y&&(s.history.scrollRestoration="manual");var o=h&&h.isPressed;r=n.v=Math.round(r)||(h&&h.iOS?1:0),e(r),n.cacheID=w.cache,o&&_("ss",r)}else(t||w.cache!==n.cacheID||_("ref"))&&(n.cacheID=w.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},L={s:E,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:I(function(e){return arguments.length?s.scrollTo(e,j.sc()):s.pageXOffset||a[E]||l[E]||c[E]||0})},j={s:x,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:L,sc:I(function(e){return arguments.length?s.scrollTo(L.sc(),e):s.pageYOffset||a[x]||l[x]||c[x]||0})},M=function(e,t){return(t&&t._ctx&&t._ctx.selector||o.utils.toArray)(e)[0]||("string"==typeof e&&!1!==o.config().nullTargetWarn?console.warn("Element not found:",e):null)},D=function(e,t){var n=t.s,r=t.sc;C(e)&&(e=a.scrollingElement||l);var i=w.indexOf(e),s=r===j.sc?1:2;!~i&&(i=w.push(e)-1),w[i+s]||T(e,"scroll",P);var c=w[i+s],u=c||(w[i+s]=I(O(e,n),!0)||(C(e)?r:I(function(t){return arguments.length?e[n]=t:e[n]})));return u.target=e,c||(u.smooth="smooth"===o.getProperty(e,"scrollBehavior")),u},R=function(e,t,n){var r=e,o=e,i=k(),s=i,a=t||50,l=Math.max(500,3*a),c=function(e,t){var l=k();t||l-i>a?(o=r,r=e,s=i,i=l):n?r+=e:r=o+(e-o)/(l-s)*(i-s)};return{update:c,reset:function(){o=r=n?0:r,s=i=0},getVelocity:function(e){var t=s,a=o,u=k();return(e||0===e)&&e!==r&&c(e),i===s||u-s>l?0:(r+(n?a:-a))/((n?u:i)-t)*1e3}}},N=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},F=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},B=function(){var e,t,n,r;
vendor: 41,367 bytes, line 2
2(p=o.core.globals().ScrollTrigger)&&p.core&&(e=p.core,t=e.bridge||{},n=e._scrollers,r=e._proxies,n.push.apply(n,w),r.push.apply(r,S),w=n,S=r,_=function(e,n){return t[e](n)})},U=function(e){return o=e||g(),!i&&o&&"undefined"!=typeof document&&document.body&&(s=window,a=document,l=a.documentElement,c=a.body,f=[s,a,l,c],o.utils.clamp,v=o.core.context||function(){},d="onpointerenter"in c?"pointer":"mouse",u=H.isTouch=s.matchMedia&&s.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in s||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,m=H.eventTypes=("ontouchstart"in l?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in l?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return y=0},500),B(),i=1),i};L.op=j,w.cache=0;var H=function(){function e(e){this.init(e)}var t,n,f;return e.prototype.init=function(e){i||U(o)||console.warn("Please gsap.registerPlugin(Observer)"),p||B();var t=e.tolerance,n=e.dragMinimum,r=e.type,f=e.target,g=e.lineHeight,y=e.debounce,w=e.preventDefault,S=e.onStop,_=e.onStopDelay,O=e.ignore,E=e.wheelSpeed,x=e.event,I=e.onDragStart,H=e.onDragEnd,$=e.onDrag,z=e.onPress,W=e.onRelease,G=e.onRight,X=e.onLeft,V=e.onUp,K=e.onDown,q=e.onChangeX,Y=e.onChangeY,Q=e.onChange,J=e.onToggleX,Z=e.onToggleY,ee=e.onHover,te=e.onHoverEnd,ne=e.onMove,re=e.ignoreCheck,oe=e.isNormalizer,ie=e.onGestureStart,se=e.onGestureEnd,ae=e.onWheel,le=e.onEnable,ce=e.onDisable,ue=e.onClick,de=e.scrollSpeed,pe=e.capture,fe=e.allowClicks,he=e.lockAxis,me=e.onLockAxis;this.target=f=M(f)||l,this.vars=e,O&&(O=o.utils.toArray(O)),t=t||1e-9,n=n||0,E=E||1,de=de||1,r=r||"wheel,touch,pointer",y=!1!==y,g||(g=parseFloat(s.getComputedStyle(c).lineHeight)||22);var ve,ge,ye,be,we,Se,ke,_e=this,Oe=0,Ce=0,Te=e.passive||!w&&!1!==e.passive,Ae=D(f,L),Ee=D(f,j),xe=Ae(),Pe=Ee(),Ie=~r.indexOf("touch")&&!~r.indexOf("pointer")&&"pointerdown"===m[0],Le=C(f),je=f.ownerDocument||a,Me=[0,0,0],De=[0,0,0],Re=0,Ne=function(){return Re=k()},Fe=function(e,t){return(_e.event=e)&&O&&function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1}(e.target,O)||t&&Ie&&"touch"!==e.pointerType||re&&re(e,t)},Be=function(){var e=_e.deltaX=F(Me),n=_e.deltaY=F(De),r=Math.abs(e)>=t,o=Math.abs(n)>=t;Q&&(r||o)&&Q(_e,e,n,Me,De),r&&(G&&_e.deltaX>0&&G(_e),X&&_e.deltaX<0&&X(_e),q&&q(_e),J&&_e.deltaX<0!=Oe<0&&J(_e),Oe=_e.deltaX,Me[0]=Me[1]=Me[2]=0),o&&(K&&_e.deltaY>0&&K(_e),V&&_e.deltaY<0&&V(_e),Y&&Y(_e),Z&&_e.deltaY<0!=Ce<0&&Z(_e),Ce=_e.deltaY,De[0]=De[1]=De[2]=0),(be||ye)&&(ne&&ne(_e),ye&&(I&&1===ye&&I(_e),$&&$(_e),ye=0),be=!1),Se&&!(Se=!1)&&me&&me(_e),we&&(ae(_e),we=!1),ve=0},Ue=function(e,t,n){Me[n]+=e,De[n]+=t,_e._vx.update(e),_e._vy.update(t),y?ve||(ve=requestAnimationFrame(Be)):Be()},He=function(e,t){he&&!ke&&(_e.axis=ke=Math.abs(e)>Math.abs(t)?"x":"y",Se=!0),"y"!==ke&&(Me[2]+=e,_e._vx.update(e,!0)),"x"!==ke&&(De[2]+=t,_e._vy.update(t,!0)),y?ve||(ve=requestAnimationFrame(Be)):Be()},$e=function(e){if(!Fe(e,1)){var t=(e=N(e,w)).clientX,r=e.clientY,o=t-_e.x,i=r-_e.y,s=_e.isDragging;_e.x=t,_e.y=r,(s||(o||i)&&(Math.abs(_e.startX-t)>=n||Math.abs(_e.startY-r)>=n))&&(ye||(ye=s?2:1),s||(_e.isDragging=!0),He(o,i))}},ze=_e.onPress=function(e){Fe(e,1)||e&&e.button||(_e.axis=ke=null,ge.pause(),_e.isPressed=!0,e=N(e),Oe=Ce=0,_e.startX=_e.x=e.clientX,_e.startY=_e.y=e.clientY,_e._vx.reset(),_e._vy.reset(),T(oe?f:je,m[1],$e,Te,!0),_e.deltaX=_e.deltaY=0,z&&z(_e))},We=_e.onRelease=function(e){if(!Fe(e,1)){A(oe?f:je,m[1],$e,!0);var t=!isNaN(_e.y-_e.startY),n=_e.isDragging,r=n&&(Math.abs(_e.x-_e.startX)>3||Math.abs(_e.y-_e.startY)>3),i=N(e);!r&&t&&(_e._vx.reset(),_e._vy.reset(),w&&fe&&o.delayedCall(.08,function(){if(k()-Re>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(je.createEvent){var t=je.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,s,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}})),_e.isDragging=_e.isGesturing=_e.isPressed=!1,S&&n&&!oe&&ge.restart(!0),ye&&Be(),H&&n&&H(_e),W&&W(_e,r)}},Ge=function(e){return e.touches&&e.touches.length>1&&(_e.isGesturing=!0)&&ie(e,_e.isDragging)},Xe=function(){return(_e.isGesturing=!1)||se(_e)},Ve=function(e){if(!Fe(e)){var t=Ae(),n=Ee();Ue((t-xe)*de,(n-Pe)*de,1),xe=t,Pe=n,S&&ge.restart(!0)}},Ke=function(e){if(!Fe(e)){e=N(e,w),ae&&(we=!0);var t=(1===e.deltaMode?g:2===e.deltaMode?s.innerHeight:1)*E;Ue(e.deltaX*t,e.deltaY*t,0),S&&!oe&&ge.restart(!0)}},qe=function(e){if(!Fe(e)){var t=e.clientX,n=e.clientY,r=t-_e.x,o=n-_e.y;_e.x=t,_e.y=n,be=!0,S&&ge.restart(!0),(r||o)&&He(r,o)}},Ye=function(e){_e.event=e,ee(_e)},Qe=function(e){_e.event=e,te(_e)},Je=function(e){return Fe(e)||N(e,w)&&ue(_e)};ge=_e._dc=o.delayedCall(_||.25,function(){_e._vx.reset(),_e._vy.reset(),ge.pause(),S&&S(_e)}).pause(),_e.deltaX=_e.deltaY=0,_e._vx=R(0,50,!0),_e._vy=R(0,50,!0),_e.scrollX=Ae,_e.scrollY=Ee,_e.isDragging=_e.isGesturing=_e.isPressed=!1,v(this),_e.enable=function(e){return _e.isEnabled||(T(Le?je:f,"scroll",P),r.indexOf("scroll")>=0&&T(Le?je:f,"scroll",Ve,Te,pe),r.indexOf("wheel")>=0&&T(f,"wheel",Ke,Te,pe),(r.indexOf("touch")>=0&&u||r.indexOf("pointer")>=0)&&(T(f,m[0],ze,Te,pe),T(je,m[2],We),T(je,m[3],We),fe&&T(f,"click",Ne,!0,!0),ue&&T(f,"click",Je),ie&&T(je,"gesturestart",Ge),se&&T(je,"gestureend",Xe),ee&&T(f,d+"enter",Ye),te&&T(f,d+"leave",Qe),ne&&T(f,d+"move",qe)),_e.isEnabled=!0,_e.isDragging=_e.isGesturing=_e.isPressed=be=ye=!1,_e._vx.reset(),_e._vy.reset(),xe=Ae(),Pe=Ee(),e&&e.type&&ze(e),le&&le(_e)),_e},_e.disable=function(){_e.isEnabled&&(b.filter(function(e){return e!==_e&&C(e.target)}).length||A(Le?je:f,"scroll",P),_e.isPressed&&(_e._vx.reset(),_e._vy.reset(),A(oe?f:je,m[1],$e,!0)),A(Le?je:f,"scroll",Ve,pe),A(f,"wheel",Ke,pe),A(f,m[0],ze,pe),A(je,m[2],We),A(je,m[3],We),A(f,"click",Ne,!0),A(f,"click",Je),A(je,"gesturestart",Ge),A(je,"gestureend",Xe),A(f,d+"enter",Ye),A(f,d+"leave",Qe),A(f,d+"move",qe),_e.isEnabled=_e.isPressed=_e.isDragging=!1,ce&&ce(_e))},_e.kill=_e.revert=function(){_e.disable();var e=b.indexOf(_e);e>=0&&b.splice(e,1),h===_e&&(h=0)},b.push(_e),oe&&C(f)&&(h=_e),_e.enable(x)},t=e,(n=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&r(t.prototype,n),f&&r(t,f),e}();H.version="3.14.2",H.create=function(e){return new H(e)},H.register=U,H.getAll=function(){return b.slice()},H.getById=function(e){return b.filter(function(t){return t.vars.id===e})[0]},g()&&o.registerPlugin(H);var $,z,W,G,X,V,K,q,Y,Q,J,Z,ee,te,ne,re,oe,ie,se,ae,le,ce,ue,de,pe,fe,he,me,ve,ge,ye,be,we,Se,ke,_e,Oe,Ce,Te=1,Ae=Date.now,Ee=Ae(),xe=0,Pe=0,Ie=function(e,t,n){var r=Ge(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return n["_"+t+"Clamp"]=r,r?e.substr(6,e.length-7):e},Le=function(e,t){return!t||Ge(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},je=function e(){return Pe&&requestAnimationFrame(e)},Me=function(){return te=1},De=function(){return te=0},Re=function(e){return e},Ne=function(e){return Math.round(1e5*e)/1e5||0},Fe=function(){return"undefined"!=typeof window},Be=function(){return $||Fe()&&($=window.gsap)&&$.registerPlugin&&$},Ue=function(e){return!!~K.indexOf(e)},He=function(e){return("Height"===e?ye:W["inner"+e])||X["client"+e]||V["client"+e]},$e=function(e){return O(e,"getBoundingClientRect")||(Ue(e)?function(){return nn.width=W.innerWidth,nn.height=ye,nn}:function(){return ht(e)})},ze=function(e,t){var n=t.s,r=t.d2,o=t.d,i=t.a;return Math.max(0,(n="scroll"+r)&&(i=O(e,n))?i()-$e(e)()[o]:Ue(e)?(X[n]||V[n])-He(r):e[n]-e["offset"+r])},We=function(e,t){for(var n=0;n<se.length;n+=3)(!t||~t.indexOf(se[n+1]))&&e(se[n],se[n+1],se[n+2])},Ge=function(e){return"string"==typeof e},Xe=function(e){return"function"==typeof e},Ve=function(e){return"number"==typeof e},Ke=function(e){return"object"==typeof e},qe=function(e,t,n){return e&&e.progress(t?0:1)&&n&&e.pause()},Ye=function(e,t){if(e.enabled){var n=e._ctx?e._ctx.add(function(){return t(e)}):t(e);n&&n.totalTime&&(e.callbackAnimation=n)}},Qe=Math.abs,Je="left",Ze="right",et="bottom",tt="width",nt="height",rt="Right",ot="Left",it="Top",st="Bottom",at="padding",lt="margin",ct="Width",ut="Height",dt="px",pt=function(e){return W.getComputedStyle(e)},ft=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},ht=function(e,t){var n=t&&"matrix(1, 0, 0, 1, 0, 0)"!==pt(e)[ne]&&$.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect();return n&&n.progress(0).kill(),r},mt=function(e,t){var n=t.d2;return e["offset"+n]||e["client"+n]||0},vt=function(e){var t,n=[],r=e.labels,o=e.duration();for(t in r)n.push(r[t]/o);return n},gt=function(e){var t=$.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,r,o){var i;if(void 0===o&&(o=.001),!r)return t(e);if(r>0){for(e-=o,i=0;i<n.length;i++)if(n[i]>=e)return n[i];return n[i-1]}for(i=n.length,e+=o;i--;)if(n[i]<=e)return n[i];return n[0]}:function(n,r,o){void 0===o&&(o=.001);var i=t(n);return!r||Math.abs(i-n)<o||i-n<0==r<0?i:t(r<0?n-e:n+e)}},yt=function(e,t,n,r){return n.split(",").forEach(function(n){return e(t,n,r)})},bt=function(e,t,n,r,o){return e.addEventListener(t,n,{passive:!r,capture:!!o})},wt=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},St=function(e,t,n){(n=n&&n.wheelHandler)&&(e(t,"wheel",n),e(t,"touchmove",n))},kt={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_t={toggleActions:"play",anticipatePin:0},Ot={top:0,left:0,center:.5,bottom:1,right:1},Ct=function(e,t){if(Ge(e)){var n=e.indexOf("="),r=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf("%")>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in Ot?Ot[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Tt=function(e,t,n,r,o,i,s,a){var l=o.startColor,c=o.endColor,u=o.fontSize,d=o.indent,p=o.fontWeight,f=G.createElement("div"),h=Ue(n)||"fixed"===O(n,"pinType"),m=-1!==e.indexOf("scroller"),v=h?V:n,g=-1!==e.indexOf("start"),y=g?l:c,b="border-color:"+y+";font-size:"+u+";color:"+y+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+((m||a)&&h?"fixed;":"absolute;"),(m||a||!h)&&(b+=(r===j?Ze:et)+":"+(i+parseFloat(d))+"px;"),s&&(b+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),f._isStart=g,f.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),f.style.cssText=b,f.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(f,v.children[0]):v.appendChild(f),f._offset=f["offset"+r.op.d2],At(f,0,r,g),f},At=function(e,t,n,r){var o={display:"block"},i=n[r?"os2":"p2"],s=n[r?"p2":"os2"];e._isFlipped=r,o[n.a+"Percent"]=r?-100:0,o[n.a]=r?"1px":0,o["border"+i+ct]=1,o["border"+s+ct]=0,o[n.p]=t+"px",$.set(e,o)},Et=[],xt={},Pt=function(){return Ae()-xe>34&&(ke||(ke=requestAnimationFrame(qt)))},It=function(){(!ue||!ue.isPressed||ue.startX>V.clientWidth)&&(w.cache++,ue?ke||(ke=requestAnimationFrame(qt)):qt(),xe||Nt("scrollStart"),xe=Ae())},Lt=function(){fe=W.innerWidth,pe=W.innerHeight},jt=function(e){w.cache++,(!0===e||!ee&&!ce&&!G.fullscreenElement&&!G.webkitFullscreenElement&&(!de||fe!==W.innerWidth||Math.abs(W.innerHeight-pe)>.25*W.innerHeight))&&q.restart(!0)},Mt={},Dt=[],Rt=function e(){return wt(un,"scrollEnd",e)||Xt(!0)},Nt=function(e){return Mt[e]&&Mt[e].map(function(e){return e()})||Dt},Ft=[],Bt=function(e){for(var t=0;t<Ft.length;t+=5)(!e||Ft[t+4]&&Ft[t+4].query===e)&&(Ft[t].style.cssText=Ft[t+1],Ft[t].getBBox&&Ft[t].setAttribute("transform",Ft[t+2]||""),Ft[t+3].uncache=1)},Ut=function(){return w.forEach(function(e){return Xe(e)&&++e.cacheID&&(e.rec=e())})},Ht=function(e,t){var n;for(re=0;re<Et.length;re++)!(n=Et[re])||t&&n._ctx!==t||(e?n.kill(1):n.revert(!0,!0));be=!0,t&&Bt(t),t||Nt("revert")},$t=function(e,t){w.cache++,(t||!_e)&&w.forEach(function(e){return Xe(e)&&e.cacheID++&&(e.rec=0)}),Ge(e)&&(W.history.scrollRestoration=ve=e)},zt=0,Wt=function(){V.appendChild(ge),ye=!ue&&ge.offsetHeight||W.innerHeight,V.removeChild(ge)},Gt=function(e){return Y(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},Xt=function(e,t){if(X=G.documentElement,V=G.body,K=[W,G,X,V],!xe||e||be){Wt(),_e=un.isRefreshing=!0,be||Ut();var n=Nt("refreshInit");ae&&un.sort(),t||Ht(),w.forEach(function(e){Xe(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),Et.slice(0).forEach(function(e){return e.refresh()}),be=!1,Et.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),we=1,Gt(!0),Et.forEach(function(e){var t=ze(e.scroller,e._dir),n="max"===e.vars.end||e._endClamp&&e.end>t,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),Gt(!1),we=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),w.forEach(function(e){Xe(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),$t(ve,1),q.pause(),zt++,_e=2,qt(2),Et.forEach(function(e){return Xe(e.vars.onRefresh)&&e.vars.onRefresh(e)}),_e=un.isRefreshing=!1,Nt("refresh")}else bt(un,"scrollEnd",Rt)},Vt=0,Kt=1,qt=function(e){if(2===e||!_e&&!be){un.isUpdating=!0,Ce&&Ce.update(0);var t=Et.length,n=Ae(),r=n-Ee>=50,o=t&&Et[0].scroll();if(Kt=Vt>o?-1:1,_e||(Vt=o),r&&(xe&&!te&&n-xe>200&&(xe=0,Nt("scrollEnd")),J=Ee,Ee=n),Kt<0){for(re=t;re-- >0;)Et[re]&&Et[re].update(0,r);Kt=1}else for(re=0;re<t;re++)Et[re]&&Et[re].update(0,r);un.isUpdating=!1}ke=0},Yt=[Je,"top",et,Ze,lt+st,lt+rt,lt+it,lt+ot,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Qt=Yt.concat([tt,nt,"boxSizing","max"+ct,"max"+ut,"position",lt,at,at+it,at+rt,at+st,at+ot]),Jt=function(e,t,n,r){if(!e._gsap.swappedIn){for(var o,i=Yt.length,s=t.style,a=e.style;i--;)s[o=Yt[i]]=n[o];s.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(s.display="inline-block"),a[et]=a[Ze]="auto",s.flexBasis=n.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[tt]=mt(e,L)+dt,s[nt]=mt(e,j)+dt,s[at]=a[lt]=a.top=a[Je]="0",en(r),a[tt]=a["max"+ct]=n[tt],a[nt]=a["max"+ut]=n[nt],a[at]=n[at],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Zt=/([A-Z])/g,en=function(e){if(e){var t,n,r=e.t.style,o=e.length,i=0;for((e.t._gsap||$.core.getCache(e.t)).uncache=1;i<o;i+=2)n=e[i+1],t=e[i],n?r[t]=n:r[t]&&r.removeProperty(t.replace(Zt,"-$1").toLowerCase())}},tn=function(e){for(var t=Qt.length,n=e.style,r=[],o=0;o<t;o++)r.push(Qt[o],n[Qt[o]]);return r.t=e,r},nn={left:0,top:0},rn=function(e,t,n,r,o,i,s,a,l,c,u,d,p,f){Xe(e)&&(e=e(a)),Ge(e)&&"max"===e.substr(0,3)&&(e=d+("="===e.charAt(4)?Ct("0"+e.substr(3),n):0));var h,m,v,g=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e=+e),Ve(e))p&&(e=$.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,d,e)),s&&At(s,n,r,!0);else{Xe(t)&&(t=t(a));var y,b,w,S,k=(e||"0").split(" ");v=M(t,a)||V,(y=ht(v)||{})&&(y.left||y.top)||"none"!==pt(v).display||(S=v.style.display,v.style.display="block",y=ht(v),S?v.style.display=S:v.style.removeProperty("display")),b=Ct(k[0],y[r.d]),w=Ct(k[1]||"0",n),e=y[r.p]-l[r.p]-c+b+o-w,s&&At(s,w,r,n-w<20||s._isStart&&w>20),n-=n-w}if(f&&(a[f]=e||-.001,e<0&&(e=0)),i){var _=e+n,O=i._isStart;h="scroll"+r.d2,At(i,_,r,O&&_>20||!O&&(u?Math.max(V[h],X[h]):i.parentNode[h])<=_+1),u&&(l=ht(s),u&&(i.style[r.op.p]=l[r.op.p]-r.op.m-i._offset+dt))}return p&&v&&(h=ht(v),p.seek(d),m=ht(v),p._caScrollDist=h[r.p]-m[r.p],e=e/p._caScrollDist*d),p&&p.seek(g),p?e:Math.round(e)},on=/(webkit|moz|length|cssText|inset)/i,sn=function(e,t,n,r){if(e.parentNode!==t){var o,i,s=e.style;if(t===V){for(o in e._stOrig=s.cssText,i=pt(e))+o||on.test(o)||!i[o]||"string"!=typeof s[o]||"0"===o||(s[o]=i[o]);s.top=n,s.left=r}else s.cssText=e._stOrig;$.core.getCache(e).uncache=1,t.appendChild(e)}},an=function(e,t,n){var r=t,o=r;return function(t){var i=Math.round(e());return i!==r&&i!==o&&Math.abs(i-r)>3&&Math.abs(i-o)>3&&(t=i,n&&n()),o=r,r=Math.round(t)}},ln=function(e,t,n){var r={};r[t.p]="+="+n,$.set(e,r)},cn=function(e,t){var n=D(e,t),r="_scroll"+t.p2,o=function t(o,i,s,a,l){var c=t.tween,u=i.onComplete,d={};s=s||n();var p=an(n,s,function(){c.kill(),t.tween=0});return l=a&&l||0,a=a||o-s,c&&c.kill(),i[r]=o,i.inherit=!1,i.modifiers=d,d[r]=function(){return p(s+a*c.ratio+l*c.ratio*c.ratio)},i.onUpdate=function(){w.cache++,t.tween&&qt()},i.onComplete=function(){t.tween=0,u&&u.call(c)},c=t.tween=$.to(e,i)};return e[r]=n,n.wheelHandler=function(){return o.tween&&o.tween.kill()&&(o.tween=0)},bt(e,"wheel",n.wheelHandler),un.isTouch&&bt(e,"touchmove",n.wheelHandler),o},un=function(){function e(t,n){z||e.register($)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),me(this),this.init(t,n)}return e.prototype.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Pe){var r,o,i,s,a,l,c,u,d,p,f,h,m,v,g,y,b,k,_,C,T,A,E,x,P,I,R,N,F,B,U,H,z,K,q,Z,ne,oe,ie,se,ce,ue,de=t=ft(Ge(t)||Ve(t)||t.nodeType?{trigger:t}:t,_t),pe=de.onUpdate,fe=de.toggleClass,he=de.id,me=de.onToggle,ve=de.onRefresh,ge=de.scrub,ye=de.trigger,be=de.pin,ke=de.pinSpacing,Ee=de.invalidateOnRefresh,je=de.anticipatePin,Me=de.onScrubComplete,De=de.onSnapComplete,Fe=de.once,Be=de.snap,We=de.pinReparent,Je=de.pinSpacer,Ze=de.containerAnimation,et=de.fastScrollEnd,yt=de.preventOverlaps,St=t.horizontal||t.containerAnimation&&!1!==t.horizontal?L:j,Ot=!ge&&0!==ge,At=M(t.scroller||W),Pt=$.core.getCache(At),Lt=Ue(At),Mt="fixed"===("pinType"in t?t.pinType:O(At,"pinType")||Lt&&"fixed"),Dt=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Nt=Ot&&t.toggleActions.split(" "),Ft="markers"in t?t.markers:_t.markers,Bt=Lt?0:parseFloat(pt(At)["border"+St.p2+ct])||0,Ut=this,Ht=t.onRefreshInit&&function(){return t.onRefreshInit(Ut)},$t=function(e,t,n){var r=n.d,o=n.d2,i=n.a;return(i=O(e,"getBoundingClientRect"))?function(){return i()[r]}:function(){return(t?He(o):e["client"+o])||0}}(At,Lt,St),Wt=function(e,t){return!t||~S.indexOf(e)?$e(e):function(){return nn}}(At,Lt),Gt=0,Vt=0,qt=0,Yt=D(At,St);if(Ut._startClamp=Ut._endClamp=!1,Ut._dir=St,je*=45,Ut.scroller=At,Ut.scroll=Ze?Ze.time.bind(Ze):Yt,s=Yt(),Ut.vars=t,n=n||t.animation,"refreshPriority"in t&&(ae=1,-9999===t.refreshPriority&&(Ce=Ut)),Pt.tweenScroll=Pt.tweenScroll||{top:cn(At,j),left:cn(At,L)},Ut.tweenTo=r=Pt.tweenScroll[St.p],Ut.scrubDuration=function(e){(z=Ve(e)&&e)?H?H.duration(e):H=$.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:z,paused:!0,onComplete:function(){return Me&&Me(Ut)}}):(H&&H.progress(1).kill(),H=0)},n&&(n.vars.lazy=!1,n._initted&&!Ut.isReverted||!1!==n.vars.immediateRender&&!1!==t.immediateRender&&n.duration()&&n.render(0,!0,!0),Ut.animation=n.pause(),n.scrollTrigger=Ut,Ut.scrubDuration(ge),B=0,he||(he=n.vars.id)),Be&&(Ke(Be)&&!Be.push||(Be={snapTo:Be}),"scrollBehavior"in V.style&&$.set(Lt?[V,X]:At,{scrollBehavior:"auto"}),w.forEach(function(e){return Xe(e)&&e.target===(Lt?G.scrollingElement||X:At)&&(e.smooth=!1)}),i=Xe(Be.snapTo)?Be.snapTo:"labels"===Be.snapTo?function(e){return function(t){return $.utils.snap(vt(e),t)}}(n):"labelsDirectional"===Be.snapTo?(se=n,function(e,t){return gt(vt(se))(e,t.direction)}):!1!==Be.directional?function(e,t){return gt(Be.snapTo)(e,Ae()-Vt<500?0:t.direction)}:$.utils.snap(Be.snapTo),K=Be.duration||{min:.1,max:2},K=Ke(K)?Q(K.min,K.max):Q(K,K),q=$.delayedCall(Be.delay||z/2||.1,function(){var e=Yt(),t=Ae()-Vt<500,o=r.tween;if(!(t||Math.abs(Ut.getVelocity())<10)||o||te||Gt===e)Ut.isActive&&Gt!==e&&q.restart(!0);else{var s,a,u=(e-l)/v,d=n&&!Ot?n.totalProgress():u,p=t?0:(d-U)/(Ae()-J)*1e3||0,f=$.utils.clamp(-u,1-u,Qe(p/2)*p/.185),h=u+(!1===Be.inertia?0:f),m=Be,g=m.onStart,y=m.onInterrupt,b=m.onComplete;if(s=i(h,Ut),Ve(s)||(s=h),a=Math.max(0,Math.round(l+s*v)),e<=c&&e>=l&&a!==e){if(o&&!o._initted&&o.data<=Qe(a-e))return;!1===Be.inertia&&(f=s-u),r(a,{duration:K(Qe(.185*Math.max(Qe(h-d),Qe(s-d))/p/.05||0)),ease:Be.ease||"power3",data:Qe(a-e),onInterrupt:function(){return q.restart(!0)&&y&&y(Ut)},onComplete:function(){Ut.update(),Gt=Yt(),n&&!Ot&&(H?H.resetTo("totalProgress",s,n._tTime/n._tDur):n.progress(s)),B=U=n&&!Ot?n.totalProgress():Ut.progress,De&&De(Ut),b&&b(Ut)}},e,f*v,a-e-f*v),g&&g(Ut,r.tween)}}}).pause()),he&&(xt[he]=Ut),(ie=(ye=Ut.trigger=M(ye||!0!==be&&be))&&ye._gsap&&ye._gsap.stRevert)&&(ie=ie(Ut)),be=!0===be?ye:M(be),Ge(fe)&&(fe={targets:ye,className:fe}),be&&(!1===ke||ke===lt||(ke=!(!ke&&be.parentNode&&be.parentNode.style&&"flex"===pt(be.parentNode).display)&&at),Ut.pin=be,(o=$.core.getCache(be)).spacer?g=o.pinState:(Je&&((Je=M(Je))&&!Je.nodeType&&(Je=Je.current||Je.nativeElement),o.spacerIsNative=!!Je,Je&&(o.spacerState=tn(Je))),o.spacer=k=Je||G.createElement("div"),k.classList.add("pin-spacer"),he&&k.classList.add("pin-spacer-"+he),o.pinState=g=tn(be)),!1!==t.force3D&&$.set(be,{force3D:!0}),Ut.spacer=k=o.spacer,F=pt(be),x=F[ke+St.os2],C=$.getProperty(be),T=$.quickSetter(be,St.a,dt),Jt(be,k,F),b=tn(be)),Ft){h=Ke(Ft)?ft(Ft,kt):kt,p=Tt("scroller-start",he,At,St,h,0),f=Tt("scroller-end",he,At,St,h,0,p),_=p["offset"+St.op.d2];var Qt=M(O(At,"content")||At);u=this.markerStart=Tt("start",he,Qt,St,h,_,0,Ze),d=this.markerEnd=Tt("end",he,Qt,St,h,_,0,Ze),Ze&&(oe=$.quickSetter([u,d],St.a,dt)),Mt||S.length&&!0===O(At,"fixedMarkers")||(ue=pt(ce=Lt?V:At).position,ce.style.position="absolute"===ue||"fixed"===ue?ue:"relative",$.set([p,f],{force3D:!0}),I=$.quickSetter(p,St.a,dt),N=$.quickSetter(f,St.a,dt))}if(Ze){var Zt=Ze.vars.onUpdate,on=Ze.vars.onUpdateParams;Ze.eventCallback("onUpdate",function(){Ut.update(0,0,1),Zt&&Zt.apply(Ze,on||[])})}if(Ut.previous=function(){return Et[Et.indexOf(Ut)-1]},Ut.next=function(){return Et[Et.indexOf(Ut)+1]},Ut.revert=function(e,t){if(!t)return Ut.kill(!0);var r=!1!==e||!Ut.enabled,o=ee;r!==Ut.isReverted&&(r&&(Z=Math.max(Yt(),Ut.scroll.rec||0),qt=Ut.progress,ne=n&&n.progress()),u&&[u,d,p,f].forEach(function(e){return e.style.display=r?"none":"block"}),r&&(ee=Ut,Ut.update(r)),!be||We&&Ut.isActive||(r?function(e,t,n){en(n);var r=e._gsap;if(r.spacerIsNative)en(r.spacerState);else if(e._gsap.swappedIn){var o=t.parentNode;o&&(o.insertBefore(e,t),o.removeChild(t))}e._gsap.swappedIn=!1}(be,k,g):Jt(be,k,pt(be),P)),r||Ut.update(r),ee=o,Ut.isReverted=r)},Ut.refresh=function(o,i,h,w){if(!ee&&Ut.enabled||i)if(be&&o&&xe)bt(e,"scrollEnd",Rt);else{!_e&&Ht&&Ht(Ut),ee=Ut,r.tween&&!h&&(r.tween.kill(),r.tween=0),H&&H.pause(),Ee&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),Ut.isReverted||Ut.revert(!0,!0),Ut._subPinOffset=!1;var S,_,O,T,x,I,N,F,B,U,z,W,K,Y=$t(),Q=Wt(),J=Ze?Ze.duration():ze(At,St),te=v<=.01||!v,re=0,oe=w||0,ie=Ke(h)?h.end:t.end,se=t.endTrigger||ye,ae=Ke(h)?h.start:t.start||(0!==t.start&&ye?be?"0 0":"0 100%":0),ce=Ut.pinnedContainer=t.pinnedContainer&&M(t.pinnedContainer,Ut),ue=ye&&Math.max(0,Et.indexOf(Ut))||0,de=ue;for(Ft&&Ke(h)&&(W=$.getProperty(p,St.p),K=$.getProperty(f,St.p));de-- >0;)(I=Et[de]).end||I.refresh(0,1)||(ee=Ut),!(N=I.pin)||N!==ye&&N!==be&&N!==ce||I.isReverted||(U||(U=[]),U.unshift(I),I.revert(!0,!0)),I!==Et[de]&&(ue--,de--);for(Xe(ae)&&(ae=ae(Ut)),ae=Ie(ae,"start",Ut),l=rn(ae,ye,Y,St,Yt(),u,p,Ut,Q,Bt,Mt,J,Ze,Ut._startClamp&&"_startClamp")||(be?-.001:0),Xe(ie)&&(ie=ie(Ut)),Ge(ie)&&!ie.indexOf("+=")&&(~ie.indexOf(" ")?ie=(Ge(ae)?ae.split(" ")[0]:"")+ie:(re=Ct(ie.substr(2),Y),ie=Ge(ae)?ae:(Ze?$.utils.mapRange(0,Ze.duration(),Ze.scrollTrigger.start,Ze.scrollTrigger.end,l):l)+re,se=ye)),ie=Ie(ie,"end",Ut),c=Math.max(l,rn(ie||(se?"100% 0":J),se,Y,St,Yt()+re,d,f,Ut,Q,Bt,Mt,J,Ze,Ut._endClamp&&"_endClamp"))||-.001,re=0,de=ue;de--;)(N=(I=Et[de]||{}).pin)&&I.start-I._pinPush<=l&&!Ze&&I.end>0&&(S=I.end-(Ut._startClamp?Math.max(0,I.start):I.start),(N===ye&&I.start-I._pinPush<l||N===ce)&&isNaN(ae)&&(re+=S*(1-I.progress)),N===be&&(oe+=S));if(l+=re,c+=re,Ut._startClamp&&(Ut._startClamp+=re),Ut._endClamp&&!_e&&(Ut._endClamp=c||-.001,c=Math.min(c,ze(At,St))),v=c-l||(l-=.01)&&.001,te&&(qt=$.utils.clamp(0,1,$.utils.normalize(l,c,Z))),Ut._pinPush=oe,u&&re&&((S={})[St.a]="+="+re,ce&&(S[St.p]="-="+Yt()),$.set([u,d],S)),!be||we&&Ut.end>=ze(At,St)){if(ye&&Yt()&&!Ze)for(_=ye.parentNode;_&&_!==V;)_._pinOffset&&(l-=_._pinOffset,c-=_._pinOffset),_=_.parentNode}else S=pt(be),T=St===j,O=Yt(),A=parseFloat(C(St.a))+oe,!J&&c>1&&(z={style:z=(Lt?G.scrollingElement||X:At).style,value:z["overflow"+St.a.toUpperCase()]},Lt&&"scroll"!==pt(V)["overflow"+St.a.toUpperCase()]&&(z.style["overflow"+St.a.toUpperCase()]="scroll")),Jt(be,k,S),b=tn(be),_=ht(be,!0),F=Mt&&D(At,T?L:j)(),ke?((P=[ke+St.os2,v+oe+dt]).t=k,(de=ke===at?mt(be,St)+v+oe:0)&&(P.push(St.d,de+dt),"auto"!==k.style.flexBasis&&(k.style.flexBasis=de+dt)),en(P),ce&&Et.forEach(function(e){e.pin===ce&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),Mt&&Yt(Z)):(de=mt(be,St))&&"auto"!==k.style.flexBasis&&(k.style.flexBasis=de+dt),Mt&&((x={top:_.top+(T?O-l:F)+dt,left:_.left+(T?F:O-l)+dt,boxSizing:"border-box",position:"fixed"})[tt]=x["max"+ct]=Math.ceil(_.width)+dt,x[nt]=x["max"+ut]=Math.ceil(_.height)+dt,x[lt]=x[lt+it]=x[lt+rt]=x[lt+st]=x[lt+ot]="0",x[at]=S[at],x[at+it]=S[at+it],x[at+rt]=S[at+rt],x[at+st]=S[at+st],x[at+ot]=S[at+ot],y=function(e,t,n){for(var r,o=[],i=e.length,s=n?8:0;s<i;s+=2)r=e[s],o.push(r,r in t?t[r]:e[s+1]);return o.t=e.t,o}(g,x,We),_e&&Yt(0)),n?(B=n._initted,le(1),n.render(n.duration(),!0,!0),E=C(St.a)-A+v+oe,R=Math.abs(v-E)>1,Mt&&R&&y.splice(y.length-2,2),n.render(0,!0,!0),B||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),le(0)):E=v,z&&(z.value?z.style["overflow"+St.a.toUpperCase()]=z.value:z.style.removeProperty("overflow-"+St.a));U&&U.forEach(function(e){return e.revert(!1,!0)}),Ut.start=l,Ut.end=c,s=a=_e?Z:Yt(),Ze||_e||(s<Z&&Yt(Z),Ut.scroll.rec=0),Ut.revert(!1,!0),Vt=Ae(),q&&(Gt=-1,q.restart(!0)),ee=0,n&&Ot&&(n._initted||ne)&&n.progress()!==ne&&n.progress(ne||0,!0).render(n.time(),!0,!0),(te||qt!==Ut.progress||Ze||Ee||n&&!n._initted)&&(n&&!Ot&&(n._initted||qt||!1!==n.vars.immediateRender)&&n.totalProgress(Ze&&l<-.001&&!qt?$.utils.normalize(l,c,0):qt,!0),Ut.progress=te||(s-l)/v===qt?0:qt),be&&ke&&(k._pinOffset=Math.round(Ut.progress*E)),H&&H.invalidate(),isNaN(W)||(W-=$.getProperty(p,St.p),K-=$.getProperty(f,St.p),ln(p,St,W),ln(u,St,W-(w||0)),ln(f,St,K),ln(d,St,K-(w||0))),te&&!_e&&Ut.update(),!ve||_e||m||(m=!0,ve(Ut),m=!1)}},Ut.getVelocity=function(){return(Yt()-a)/(Ae()-J)*1e3||0},Ut.endAnimation=function(){qe(Ut.callbackAnimation),n&&(H?H.progress(1):n.paused()?Ot||qe(n,Ut.direction<0,1):qe(n,n.reversed()))},Ut.labelToScroll=function(e){return n&&n.labels&&(l||Ut.refresh()||l)+n.labels[e]/n.duration()*v||0},Ut.getTrailing=function(e){var t=Et.indexOf(Ut),n=Ut.direction>0?Et.slice(0,t).reverse():Et.slice(t+1);return(Ge(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return Ut.direction>0?e.end<=l:e.start>=c})},Ut.update=function(e,t,o){if(!Ze||o||e){var i,u,d,f,h,m,g,w=!0===_e?Z:Ut.scroll(),S=e?0:(w-l)/v,_=S<0?0:S>1?1:S||0,O=Ut.progress;if(t&&(a=s,s=Ze?Yt():w,Be&&(U=B,B=n&&!Ot?n.totalProgress():_)),je&&be&&!ee&&!Te&&xe&&(!_&&l<w+(w-a)/(Ae()-J)*je?_=1e-4:1===_&&c>w+(w-a)/(Ae()-J)*je&&(_=.9999)),_!==O&&Ut.enabled){if(f=(h=(i=Ut.isActive=!!_&&_<1)!==(!!O&&O<1))||!!_!=!!O,Ut.direction=_>O?1:-1,Ut.progress=_,f&&!ee&&(u=_&&!O?0:1===_?1:1===O?2:3,Ot&&(d=!h&&"none"!==Nt[u+1]&&Nt[u+1]||Nt[u],g=n&&("complete"===d||"reset"===d||d in n))),yt&&(h||g)&&(g||ge||!n)&&(Xe(yt)?yt(Ut):Ut.getTrailing(yt).forEach(function(e){return e.endAnimation()})),Ot||(!H||ee||Te?n&&n.totalProgress(_,!(!ee||!Vt&&!e)):(H._dp._time-H._start!==H._time&&H.render(H._dp._time-H._start),H.resetTo?H.resetTo("totalProgress",_,n._tTime/n._tDur):(H.vars.totalProgress=_,H.invalidate().restart()))),be)if(e&&ke&&(k.style[ke+St.os2]=x),Mt){if(f){if(m=!e&&_>O&&c+1>w&&w+1>=ze(At,St),We)if(e||!i&&!m)sn(be,k);else{var C=ht(be,!0),P=w-l;sn(be,V,C.top+(St===j?P:0)+dt,C.left+(St===j?0:P)+dt)}en(i||m?y:b),R&&_<1&&i||T(A+(1!==_||m?0:E))}}else T(Ne(A+E*_));Be&&!r.tween&&!ee&&!Te&&q.restart(!0),fe&&(h||Fe&&_&&(_<1||!Se))&&Y(fe.targets).forEach(function(e){return e.classList[i||Fe?"add":"remove"](fe.className)}),pe&&!Ot&&!e&&pe(Ut),f&&!ee?(Ot&&(g&&("complete"===d?n.pause().totalProgress(1):"reset"===d?n.restart(!0).pause():"restart"===d?n.restart(!0):n[d]()),pe&&pe(Ut)),!h&&Se||(me&&h&&Ye(Ut,me),Dt[u]&&Ye(Ut,Dt[u]),Fe&&(1===_?Ut.kill(!1,1):Dt[u]=0),h||Dt[u=1===_?1:3]&&Ye(Ut,Dt[u])),et&&!i&&Math.abs(Ut.getVelocity())>(Ve(et)?et:2500)&&(qe(Ut.callbackAnimation),H?H.progress(1):qe(n,"reverse"===d?1:!_,1))):Ot&&pe&&!ee&&pe(Ut)}if(N){var L=Ze?w/Ze.duration()*(Ze._caScrollDist||0):w;I(L+(p._isFlipped?1:0)),N(L)}oe&&oe(-w/Ze.duration()*(Ze._caScrollDist||0))}},Ut.enable=function(t,n){Ut.enabled||(Ut.enabled=!0,bt(At,"resize",jt),Lt||bt(At,"scroll",It),Ht&&bt(e,"refreshInit",Ht),!1!==t&&(Ut.progress=qt=0,s=a=Gt=Yt()),!1!==n&&Ut.refresh())},Ut.getTween=function(e){return e&&r?r.tween:H},Ut.setPositions=function(e,t,n,r){if(Ze){var o=Ze.scrollTrigger,i=Ze.duration(),s=o.end-o.start;e=o.start+s*e/i,t=o.start+s*t/i}Ut.refresh(!1,!1,{start:Le(e,n&&!!Ut._startClamp),end:Le(t,n&&!!Ut._endClamp)},r),Ut.update()},Ut.adjustPinSpacing=function(e){if(P&&e){var t=P.indexOf(St.d)+1;P[t]=parseFloat(P[t])+e+dt,P[1]=parseFloat(P[1])+e+dt,en(P)}},Ut.disable=function(t,n){if(!1!==t&&Ut.revert(!0,!0),Ut.enabled&&(Ut.enabled=Ut.isActive=!1,n||H&&H.pause(),Z=0,o&&(o.uncache=1),Ht&&wt(e,"refreshInit",Ht),q&&(q.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!Lt)){for(var i=Et.length;i--;)if(Et[i].scroller===At&&Et[i]!==Ut)return;wt(At,"resize",jt),Lt||wt(At,"scroll",It)}},Ut.kill=function(e,r){Ut.disable(e,r),H&&!r&&H.kill(),he&&delete xt[he];var i=Et.indexOf(Ut);i>=0&&Et.splice(i,1),i===re&&Kt>0&&re--,i=0,Et.forEach(function(e){return e.scroller===Ut.scroller&&(i=1)}),i||_e||(Ut.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),u&&[u,d,p,f].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Ce===Ut&&(Ce=0),be&&(o&&(o.uncache=1),i=0,Et.forEach(function(e){return e.pin===be&&i++}),i||(o.spacer=0)),t.onKill&&t.onKill(Ut)},Et.push(Ut),Ut.enable(!1,!1),ie&&ie(Ut),n&&n.add&&!v){var an=Ut.update;Ut.update=function(){Ut.update=an,w.cache++,l||c||Ut.refresh()},$.delayedCall(.01,Ut.update),v=.01,l=c=0}else Ut.refresh();be&&function(){if(Oe!==zt){var e=Oe=zt;requestAnimationFrame(function(){return e===zt&&Xt(!0)})}}()}else this.update=this.refresh=this.kill=Re},e.register=function(t){return z||($=t||Be(),Fe()&&window.document&&e.enable(),z=Pe),z},e.defaults=function(e){if(e)for(var t in e)_t[t]=e[t];return _t},e.disable=function(e,t){Pe=0,Et.forEach(function(n){return n[t?"kill":"disable"](e)}),wt(W,"wheel",It),wt(G,"scroll",It),clearInterval(Z),wt(G,"touchcancel",Re),wt(V,"touchstart",Re),yt(wt,G,"pointerdown,touchstart,mousedown",Me),yt(wt,G,"pointerup,touchend,mouseup",De),q.kill(),We(wt);for(var n=0;n<w.length;n+=3)St(wt,w[n],w[n+1]),St(wt,w[n],w[n+2])},e.enable=function(){if(W=window,G=document,X=G.documentElement,V=G.body,$&&(Y=$.utils.toArray,Q=$.utils.clamp,me=$.core.context||Re,le=$.core.suppressOverwrites||Re,ve=W.history.scrollRestoration||"auto",Vt=W.pageYOffset||0,$.core.globals("ScrollTrigger",e),V)){Pe=1,(ge=document.createElement("div")).style.height="100vh",ge.style.position="absolute",Wt(),je(),H.register($),e.isTouch=H.isTouch,he=H.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),de=1===H.isTouch,bt(W,"wheel",It),K=[W,G,X,V],$.matchMedia?(e.matchMedia=function(e){var t,n=$.matchMedia();for(t in e)n.add(t,e[t]);return n},$.addEventListener("matchMediaInit",function(){Ut(),Ht()}),$.addEventListener("matchMediaRevert",function(){return Bt()}),$.addEventListener("matchMedia",function(){Xt(0,1),Nt("matchMedia")}),$.matchMedia().add("(orientation: portrait)",function(){return Lt(),Lt})):console.warn("Requires GSAP 3.11.0 or later"),Lt(),bt(G,"scroll",It);var t,n,r=V.hasAttribute("style"),o=V.style,i=o.borderTopStyle,s=$.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),o.borderTopStyle="solid",t=ht(V),j.m=Math.round(t.top+j.sc())||0,L.m=Math.round(t.left+L.sc())||0,i?o.borderTopStyle=i:o.removeProperty("border-top-style"),r||(V.setAttribute("style",""),V.removeAttribute("style")),Z=setInterval(Pt,250),$.delayedCall(.5,function(){return Te=0}),bt(G,"touchcancel",Re),bt(V,"touchstart",Re),yt(bt,G,"pointerdown,touchstart,mousedown",Me),yt(bt,G,"pointerup,touchend,mouseup",De),ne=$.utils.checkPrefix("transform"),Qt.push(ne),z=Ae(),q=$.delayedCall(.2,Xt).pause(),se=[G,"visibilitychange",function(){var e=W.innerWidth,t=W.innerHeight;G.hidden?(oe=e,ie=t):oe===e&&ie===t||jt()},G,"DOMContentLoaded",Xt,W,"load",Xt,W,"resize",jt],We(bt),Et.forEach(function(e){return e.enable(0,1)}),n=0;n<w.length;n+=3)St(wt,w[n],w[n+1]),St(wt,w[n],w[n+2])}},e.config=function(t){"limitCallbacks"in t&&(Se=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(Z)||(Z=n)&&setInterval(Pt,n),"ignoreMobileResize"in t&&(de=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(We(wt)||We(bt,t.autoRefreshEvents||"none"),ce=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var n=M(e),r=w.indexOf(n),o=Ue(n);~r&&w.splice(r,o?6:2),t&&(o?S.unshift(W,t,V,t,X,t):S.unshift(n,t))},e.clearMatchMedia=function(e){Et.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var r=(Ge(e)?M(e):e).getBoundingClientRect(),o=r[n?tt:nt]*t||0;return n?r.right-o>0&&r.left+o<W.innerWidth:r.bottom-o>0&&r.top+o<W.innerHeight},e.positionInViewport=function(e,t,n){Ge(e)&&(e=M(e));var r=e.getBoundingClientRect(),o=r[n?tt:nt],i=null==t?o/2:t in Ot?Ot[t]*o:~t.indexOf("%")?parseFloat(t)*o/100:parseFloat(t)||0;return n?(r.left+i)/W.innerWidth:(r.top+i)/W.innerHeight},e.killAll=function(e){if(Et.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=Mt.killAll||[];Mt={},t.forEach(function(e){return e()})}},e}();un.version="3.14.2",un.saveStyles=function(e){return e?Y(e).forEach(function(e){if(e&&e.style){var t=Ft.indexOf(e);t>=0&&Ft.splice(t,5),Ft.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),$.core.getCache(e),me())}}):Ft},un.revert=function(e,t){return Ht(!e,t)},un.create=function(e,t){return new un(e,t)},un.refresh=function(e){return e?jt(!0):(z||un.register())&&Xt(!0)},un.update=function(e){return++w.cache&&qt(!0===e?2:0)},un.clearScrollMemory=$t,un.maxScroll=function(e,t){return ze(e,t?L:j)},un.getScrollFunc=function(e,t){return D(M(e),t?L:j)},un.getById=function(e){return xt[e]},un.getAll=function(){return Et.filter(function(e){return"ScrollSmoother"!==e.vars.id})},un.isScrolling=function(){return!!xe},un.snapDirectional=gt,un.addEventListener=function(e,t){var n=Mt[e]||(Mt[e]=[]);~n.indexOf(t)||n.push(t)},un.removeEventListener=function(e,t){var n=Mt[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},un.batch=function(e,t){var n,r=[],o={},i=t.interval||.016,s=t.batchMax||1e9,a=function(e,t){var n=[],r=[],o=$.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),s<=n.length&&o.progress(1)}};for(n in t)o[n]="on"===n.substr(0,2)&&Xe(t[n])&&"onRefreshInit"!==n?a(0,t[n]):t[n];return Xe(s)&&(s=s(),bt(un,"refresh",function(){return s=t.batchMax()})),Y(e).forEach(function(e){var t={};for(n in o)t[n]=o[n];t.trigger=e,r.push(un.create(t))}),r};var dn,pn=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},fn=function e(t,n){!0===n?t.style.removeProperty("touch-action"):t.style.touchAction=!0===n?"auto":n?"pan-"+n+(H.isTouch?" pinch-zoom":""):"none",t===X&&e(V,n)},hn={auto:1,scroll:1},mn=function(e){var t,n=e.event,r=e.target,o=e.axis,i=(n.changedTouches?n.changedTouches[0]:n).target,s=i._gsap||$.core.getCache(i),a=Ae();if(!s._isScrollT||a-s._isScrollT>2e3){for(;i&&i!==V&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!hn[(t=pt(i)).overflowY]&&!hn[t.overflowX]);)i=i.parentNode;s._isScroll=i&&i!==r&&!Ue(i)&&(hn[(t=pt(i)).overflowY]||hn[t.overflowX]),s._isScrollT=a}(s._isScroll||"x"===o)&&(n.stopPropagation(),n._gsapAllow=!0)},vn=function(e,t,n,r){return H.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r=r&&mn,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&bt(G,H.eventTypes[0],yn,!1,!0)},onDisable:function(){return wt(G,H.eventTypes[0],yn,!0)}})},gn=/(input|label|select|textarea)/i,yn=function(e){var t=gn.test(e.target.tagName);(t||dn)&&(e._gsapAllow=!0,dn=t)},bn=function(e){Ke(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,n,r,o,i,s,a,l,c=e,u=c.normalizeScrollX,d=c.momentum,p=c.allowNestedScroll,f=c.onRelease,h=M(e.target)||X,m=$.core.globals().ScrollSmoother,v=m&&m.get(),g=he&&(e.content&&M(e.content)||v&&!1!==e.content&&!v.smooth()&&v.content()),y=D(h,j),b=D(h,L),S=1,k=(H.isTouch&&W.visualViewport?W.visualViewport.scale*W.visualViewport.width:W.outerWidth)/W.innerWidth,_=0,O=Xe(d)?function(){return d(t)}:function(){return d||2.8},C=vn(h,e.type,!0,p),T=function(){return o=!1},A=Re,E=Re,x=function(){n=ze(h,j),E=Q(he?1:0,n),u&&(A=Q(0,ze(h,L))),r=zt},P=function(){g._gsap.y=Ne(parseFloat(g._gsap.y)+y.offset)+"px",g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(g._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},I=function(){x(),i.isActive()&&i.vars.scrollY>n&&(y()>n?i.progress(1)&&y(n):i.resetTo("scrollY",n))};return g&&$.set(g,{y:"+=0"}),e.ignoreCheck=function(e){return he&&"touchmove"===e.type&&function(){if(o){requestAnimationFrame(T);var e=Ne(t.deltaY/2),n=E(y.v-e);if(g&&n!==y.v+y.offset){y.offset=n-y.v;var r=Ne((parseFloat(g&&g._gsap.y)||0)-y.offset);g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",g._gsap.y=r+"px",y.cacheID=w.cache,qt()}return!0}y.offset&&P(),o=!0}()||S>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){o=!1;var e=S;S=Ne((W.visualViewport&&W.visualViewport.scale||1)/k),i.pause(),e!==S&&fn(h,S>1.01||!u&&"x"),s=b(),a=y(),x(),r=zt},e.onRelease=e.onGestureStart=function(e,t){if(y.offset&&P(),t){w.cache++;var r,o,s=O();u&&(o=(r=b())+.05*s*-e.velocityX/.227,s*=pn(b,r,o,ze(h,L)),i.vars.scrollX=A(o)),o=(r=y())+.05*s*-e.velocityY/.227,s*=pn(y,r,o,ze(h,j)),i.vars.scrollY=E(o),i.invalidate().duration(s).play(.01),(he&&i.vars.scrollY>=n||r>=n-1)&&$.to({},{onUpdate:I,duration:s})}else l.restart(!0);f&&f(e)},e.onWheel=function(){i._ts&&i.pause(),Ae()-_>1e3&&(r=0,_=Ae())},e.onChange=function(e,t,n,o,i){if(zt!==r&&x(),t&&u&&b(A(o[2]===t?s+(e.startX-e.x):b()+t-o[1])),n){y.offset&&P();var l=i[2]===n,c=l?a+e.startY-e.y:y()+n-i[1],d=E(c);l&&c!==d&&(a+=d-c),y(d)}(n||t)&&qt()},e.onEnable=function(){fn(h,!u&&"x"),un.addEventListener("refresh",I),bt(W,"resize",I),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=b.smooth=!1),C.enable()},e.onDisable=function(){fn(h,!0),wt(W,"resize",I),un.removeEventListener("refresh",I),C.kill()},e.lockAxis=!1!==e.lockAxis,(t=new H(e)).iOS=he,he&&!y()&&y(1),he&&$.ticker.add(Re),l=t._dc,i=$.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:an(y,y(),function(){return i.pause()})},onUpdate:qt,onComplete:l.vars.onComplete}),t};un.sort=function(e){if(Xe(e))return Et.sort(e);var t=W.pageYOffset||0;return un.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+W.innerHeight}),Et.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},un.observe=function(e){return new H(e)},un.normalizeScroll=function(e){if(void 0===e)return ue;if(!0===e&&ue)return ue.enable();if(!1===e)return ue&&ue.kill(),void(ue=e);var t=e instanceof H?e:bn(e);return ue&&ue.target===t.target&&ue.kill(),Ue(t.target)&&(ue=t),t},un.core={_getVelocityProp:R,_inputObserver:vn,_scrollers:w,_proxies:S,bridge:{ss:function(){xe||Nt("scrollStart"),xe=Ae()},ref:function(){return ee}}},Be()&&$.registerPlugin(un)},85880(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,{Ay:()=>to,os:()=>to});var i,s,a,l,c,u,d,p,f,h,m,v,g,y,b,w,S,k={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_={duration:.5,overwrite:!1,delay:0},O=1e8,C=1e-8,T=2*Math.PI,A=T/4,E=0,x=Math.sqrt,P=Math.cos,I=Math.sin,L=function(e){return"string"==typeof e},j=function(e){return"function"==typeof e},M=function(e){return"number"==typeof e},D=function(e){return void 0===e},R=function(e){return"object"==typeof e},N=function(e){return!1!==e},F=function(){return"undefined"!=typeof window},B=function(e){return j(e)||L(e)},U="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){}
vendor: 10,418 bytes, line 2
2,H=Array.isArray,$=/random\([^)]+\)/g,z=/,\s*/g,W=/(?:-?\.?\d|\.)+/gi,G=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,X=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,V=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,K=/[+-]=-?[.\d]+/,q=/[^,'"\[\]\s]+/gi,Y=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Q={},J={},Z=function(e){return(J=xe(e,Q))&&In},ee=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},te=function(e,t){return!t&&console.warn(e)},ne=function(e,t){return e&&(Q[e]=t)&&J&&(J[e]=t)||Q},re=function(){return 0},oe={suppressEvents:!0,isStart:!0,kill:!1},ie={suppressEvents:!0,kill:!1},se={suppressEvents:!0},ae={},le=[],ce={},ue={},de={},pe=30,fe=[],he="",me=function(e){var t,n,r=e[0];if(R(r)||j(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=fe.length;n--&&!fe[n].targetTest(r););t=fe[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Wt(e[n],t)))||e.splice(n,1);return e},ve=function(e){return e._gsap||me(at(e))[0]._gsap},ge=function(e,t,n){return(n=e[t])&&j(n)?e[t]():D(n)&&e.getAttribute&&e.getAttribute(t)||n},ye=function(e,t){return(e=e.split(",")).forEach(t)||e},be=function(e){return Math.round(1e5*e)/1e5||0},we=function(e){return Math.round(1e7*e)/1e7||0},Se=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),"+"===n?e+r:"-"===n?e-r:"*"===n?e*r:e/r},ke=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},_e=function(){var e,t,n=le.length,r=le.slice(0);for(ce={},le.length=0,e=0;e<n;e++)(t=r[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},Oe=function(e){return!!(e._initted||e._startAt||e.add)},Ce=function(e,t,n,r){le.length&&!s&&_e(),e.render(t,n,r||!!(s&&t<0&&Oe(e))),le.length&&!s&&_e()},Te=function(e){var t=parseFloat(e);return(t||0===t)&&(e+"").match(q).length<2?t:L(e)?e.trim():e},Ae=function(e){return e},Ee=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},xe=function(e,t){for(var n in t)e[n]=t[n];return e},Pe=function e(t,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=R(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Ie=function(e,t){var n,r={};for(n in e)n in t||(r[n]=e[n]);return r},Le=function(e){var t,n=e.parent||l,r=e.keyframes?(t=H(e.keyframes),function(e,n){for(var r in n)r in e||"duration"===r&&t||"ease"===r||(e[r]=n[r])}):Ee;if(N(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},je=function(e,t,n,r,o){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i,s=e[r];if(o)for(i=t[o];s&&s[o]>i;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=s,t.parent=t._dp=e,t},Me=function(e,t,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o=t._prev,i=t._next;o?o._next=i:e[n]===t&&(e[n]=i),i?i._prev=o:e[r]===t&&(e[r]=o),t._next=t._prev=t.parent=null},De=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Re=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Ne=function(e,t,n,r){return e._startAt&&(s?e._startAt.revert(ie):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Fe=function e(t){return!t||t._ts&&e(t.parent)},Be=function(e){return e._repeat?Ue(e._tTime,e=e.duration()+e._rDelay)*e:0},Ue=function(e,t){var n=Math.floor(e=we(e/t));return e&&n===e?n-1:n},He=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},$e=function(e){return e._end=we(e._start+(e._tDur/Math.abs(e._ts||e._rts||C)||0))},ze=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=we(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),$e(e),n._dirty||Re(n,e)),e},We=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=He(e.rawTime(),t),(!t._dur||nt(0,t.totalDuration(),n)-t._tTime>C)&&t.render(n,!0)),Re(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},Ge=function(e,t,n,r){return t.parent&&De(t),t._start=we((M(n)?n:n||e!==l?Ze(e,n,t):e._time)+t._delay),t._end=we(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),je(e,t,"_first","_last",e._sort?"_start":0),qe(t)||(e._recent=t),r||We(e,t),e._ts<0&&ze(e,e._tTime),e},Xe=function(e,t){return(Q.ScrollTrigger||ee("scrollTrigger",t))&&Q.ScrollTrigger.create(t,e)},Ve=function(e,t,n,r,o){return Jt(e,t,o),e._initted?!n&&e._pt&&!s&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&f!==It.frame?(le.push(e),e._lazy=[o,r],1):void 0:1},Ke=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},qe=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},Ye=function(e,t,n,r){var o=e._repeat,i=we(t)||0,s=e._tTime/e._tDur;return s&&!r&&(e._time*=i/e._dur),e._dur=i,e._tDur=o?o<0?1e10:we(i*(o+1)+e._rDelay*o):i,s>0&&!r&&ze(e,e._tTime=e._tDur*s),e.parent&&$e(e),n||Re(e.parent,e),e},Qe=function(e){return e instanceof Xt?Re(e):Ye(e,e._dur)},Je={_start:0,endTime:re,totalDuration:re},Ze=function e(t,n,r){var o,i,s,a=t.labels,l=t._recent||Je,c=t.duration()>=O?l.endTime(!1):t._dur;return L(n)&&(isNaN(n)||n in a)?(i=n.charAt(0),s="%"===n.substr(-1),o=n.indexOf("="),"<"===i||">"===i?(o>=0&&(n=n.replace(/=/,"")),("<"===i?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(o<0?l:r).totalDuration()/100:1)):o<0?(n in a||(a[n]=c),a[n]):(i=parseFloat(n.charAt(o-1)+n.substr(o+1)),s&&r&&(i=i/100*(H(r)?r[0]:r).totalDuration()),o>1?e(t,n.substr(0,o-1),r)+i:c+i)):null==n?c:+n},et=function(e,t,n){var r,o,i=M(t[1]),s=(i?2:1)+(e<2?0:1),a=t[s];if(i&&(a.duration=t[1]),a.parent=n,e){for(r=a,o=n;o&&!("immediateRender"in r);)r=o.vars.defaults||{},o=N(o.vars.inherit)&&o.parent;a.immediateRender=N(r.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return new rn(t[0],a,t[s+1])},tt=function(e,t){return e||0===e?t(e):t},nt=function(e,t,n){return n<e?e:n>t?t:n},rt=function(e,t){return L(e)&&(t=Y.exec(e))?t[1]:""},ot=[].slice,it=function(e,t){return e&&R(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&R(e[0]))&&!e.nodeType&&e!==c},st=function(e,t,n){return void 0===n&&(n=[]),e.forEach(function(e){var r;return L(e)&&!t||it(e,1)?(r=n).push.apply(r,at(e)):n.push(e)})||n},at=function(e,t,n){return a&&!t&&a.selector?a.selector(e):!L(e)||n||!u&&Lt()?H(e)?st(e,n):it(e)?ot.call(e,0):e?[e]:[]:ot.call((t||d).querySelectorAll(e),0)},lt=function(e){return e=at(e)[0]||te("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return at(t,n.querySelectorAll?n:n===e?te("Invalid scope")||d.createElement("div"):e)}},ct=function(e){return e.sort(function(){return.5-Math.random()})},ut=function(e){if(j(e))return e;var t=R(e)?e:{each:e},n=Bt(t.ease),r=t.from||0,o=parseFloat(t.base)||0,i={},s=r>0&&r<1,a=isNaN(r)||s,l=t.axis,c=r,u=r;return L(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!s&&a&&(c=r[0],u=r[1]),function(e,s,d){var p,f,h,m,v,g,y,b,w,S=(d||t).length,k=i[S];if(!k){if(!(w="auto"===t.grid?0:(t.grid||[1,O])[1])){for(y=-O;y<(y=d[w++].getBoundingClientRect().left)&&w<S;);w<S&&w--}for(k=i[S]=[],p=a?Math.min(w,S)*c-.5:r%w,f=w===O?0:a?S*u/w-.5:r/w|0,y=0,b=O,g=0;g<S;g++)h=g%w-p,m=f-(g/w|0),k[g]=v=l?Math.abs("y"===l?m:h):x(h*h+m*m),v>y&&(y=v),v<b&&(b=v);"random"===r&&ct(k),k.max=y-b,k.min=b,k.v=S=(parseFloat(t.amount)||parseFloat(t.each)*(w>S?S-1:l?"y"===l?S/w:w:Math.max(w,S/w))||0)*("edges"===r?-1:1),k.b=S<0?o-S:o,k.u=rt(t.amount||t.each)||0,n=n&&S<0?Nt(n):n}return S=(k[e]-k.min)/k.max||0,we(k.b+(n?n(S):S)*k.v)+k.u}},dt=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=we(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(M(n)?0:rt(n))}},pt=function(e,t){var n,r,o=H(e);return!o&&R(e)&&(n=o=e.radius||O,e.values?(e=at(e.values),(r=!M(e[0]))&&(n*=n)):e=dt(e.increment)),tt(t,o?j(e)?function(t){return r=e(t),Math.abs(r-t)<=n?r:t}:function(t){for(var o,i,s=parseFloat(r?t.x:t),a=parseFloat(r?t.y:0),l=O,c=0,u=e.length;u--;)(o=r?(o=e[u].x-s)*o+(i=e[u].y-a)*i:Math.abs(e[u]-s))<l&&(l=o,c=u);return c=!n||l<=n?e[c]:t,r||c===t||M(t)?c:c+rt(t)}:dt(e))},ft=function(e,t,n,r){return tt(H(e)?!t:!0===n?!!(n=0):!r,function(){return H(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*r)/r})},ht=function(e,t,n){return tt(n,function(n){return e[~~t(n)]})},mt=function(e){return e.replace($,function(e){var t=e.indexOf("[")+1,n=e.substring(t||7,t?e.indexOf("]"):e.length-1).split(z);return ft(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},vt=function(e,t,n,r,o){var i=t-e,s=r-n;return tt(o,function(t){return n+((t-e)/i*s||0)})},gt=function(e,t,n){var r,o,i,s=e.labels,a=O;for(r in s)(o=s[r]-t)<0==!!n&&o&&a>(o=Math.abs(o))&&(i=r,a=o);return i},yt=function(e,t,n){var r,o,i,s=e.vars,l=s[t],c=a,u=e._ctx;if(l)return r=s[t+"Params"],o=s.callbackScope||e,n&&le.length&&_e(),u&&(a=u),i=r?l.apply(o,r):l.call(o),a=c,i},bt=function(e){return De(e),e.scrollTrigger&&e.scrollTrigger.kill(!!s),e.progress()<1&&yt(e,"onInterrupt"),e},wt=[],St=function(e){if(e)if(e=!e.name&&e.default||e,F()||e.headless){var t=e.name,n=j(e),r=t&&!n&&e.init?function(){this._props=[]}:e,o={init:re,render:fn,add:Yt,kill:mn,modifier:hn,rawVars:0},i={targetTest:0,get:0,getSetter:cn,aliases:{},register:0};if(Lt(),e!==r){if(ue[t])return;Ee(r,Ee(Ie(e,o),i)),xe(r.prototype,xe(o,Ie(e,i))),ue[r.prop=t]=r,e.targetTest&&(fe.push(r),ae[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}ne(t,r),e.register&&e.register(In,r,yn)}else wt.push(e)},kt=255,_t={aqua:[0,kt,kt],lime:[0,kt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,kt],navy:[0,0,128],white:[kt,kt,kt],olive:[128,128,0],yellow:[kt,kt,0],orange:[kt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[kt,0,0],pink:[kt,192,203],cyan:[0,kt,kt],transparent:[kt,kt,kt,0]},Ot=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*kt+.5|0},Ct=function(e,t,n){var r,o,i,s,a,l,c,u,d,p,f=e?M(e)?[e>>16,e>>8&kt,e&kt]:0:_t.black;if(!f){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),_t[e])f=_t[e];else if("#"===e.charAt(0)){if(e.length<6&&(r=e.charAt(1),o=e.charAt(2),i=e.charAt(3),e="#"+r+r+o+o+i+i+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(f=parseInt(e.substr(1,6),16))>>16,f>>8&kt,f&kt,parseInt(e.substr(7),16)/255];f=[(e=parseInt(e.substr(1),16))>>16,e>>
vendor: 10,601 bytes, line 2
28&kt,e&kt]}else if("hsl"===e.substr(0,3))if(f=p=e.match(W),t){if(~e.indexOf("="))return f=e.match(G),n&&f.length<4&&(f[3]=1),f}else s=+f[0]%360/360,a=+f[1]/100,r=2*(l=+f[2]/100)-(o=l<=.5?l*(a+1):l+a-l*a),f.length>3&&(f[3]*=1),f[0]=Ot(s+1/3,r,o),f[1]=Ot(s,r,o),f[2]=Ot(s-1/3,r,o);else f=e.match(W)||_t.transparent;f=f.map(Number)}return t&&!p&&(r=f[0]/kt,o=f[1]/kt,i=f[2]/kt,l=((c=Math.max(r,o,i))+(u=Math.min(r,o,i)))/2,c===u?s=a=0:(d=c-u,a=l>.5?d/(2-c-u):d/(c+u),s=c===r?(o-i)/d+(o<i?6:0):c===o?(i-r)/d+2:(r-o)/d+4,s*=60),f[0]=~~(s+.5),f[1]=~~(100*a+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},Tt=function(e){var t=[],n=[],r=-1;return e.split(Et).forEach(function(e){var o=e.match(X)||[];t.push.apply(t,o),n.push(r+=o.length+1)}),t.c=n,t},At=function(e,t,n){var r,o,i,s,a="",l=(e+a).match(Et),c=t?"hsla(":"rgba(",u=0;if(!l)return e;if(l=l.map(function(e){return(e=Ct(e,t,1))&&c+(t?e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]:e.join(","))+")"}),n&&(i=Tt(e),(r=n.c).join(a)!==i.c.join(a)))for(s=(o=e.replace(Et,"1").split(X)).length-1;u<s;u++)a+=o[u]+(~r.indexOf(u)?l.shift()||c+"0,0,0,0)":(i.length?i:l.length?l:n).shift());if(!o)for(s=(o=e.split(Et)).length-1;u<s;u++)a+=o[u]+l[u];return a+o[s]},Et=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in _t)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),xt=/hsl[a]?\(/,Pt=function(e){var t,n=e.join(" ");if(Et.lastIndex=0,Et.test(n))return t=xt.test(n),e[1]=At(e[1],t),e[0]=At(e[0],t,Tt(e[1])),!0},It=function(){var e,t,n,r,o,i,s=Date.now,a=500,l=33,f=s(),h=f,v=1e3/240,g=v,y=[],b=function n(c){var u,d,p,m,b=s()-h,w=!0===c;if((b>a||b<0)&&(f+=b-l),((u=(p=(h+=b)-f)-g)>0||w)&&(m=++r.frame,o=p-1e3*r.time,r.time=p/=1e3,g+=u+(u>=v?4:v-u),d=1),w||(e=t(n)),d)for(i=0;i<y.length;i++)y[i](p,o,m,c)};return r={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(e){return o/(1e3/(e||60))},wake:function(){p&&(!u&&F()&&(c=u=window,d=c.document||{},Q.gsap=In,(c.gsapVersions||(c.gsapVersions=[])).push(In.version),Z(J||c.GreenSockGlobals||!c.gsap&&c||{}),wt.forEach(St)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,e&&r.sleep(),t=n||function(e){return setTimeout(e,g-1e3*r.time+1|0)},m=1,b(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(e),m=0,t=re},lagSmoothing:function(e,t){a=e||1/0,l=Math.min(t||33,a)},fps:function(e){v=1e3/(e||240),g=1e3*r.time+v},add:function(e,t,n){var o=t?function(t,n,i,s){e(t,n,i,s),r.remove(o)}:e;return r.remove(e),y[n?"unshift":"push"](o),Lt(),o},remove:function(e,t){~(t=y.indexOf(e))&&y.splice(t,1)&&i>=t&&i--},_listeners:y}}(),Lt=function(){return!m&&It.wake()},jt={},Mt=/^[\d.\-M][\d.\-,\s]/,Dt=/["']/g,Rt=function(e){for(var t,n,r,o={},i=e.substr(1,e.length-3).split(":"),s=i[0],a=1,l=i.length;a<l;a++)n=i[a],t=a!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,t),o[s]=isNaN(r)?r.replace(Dt,"").trim():+r,s=n.substr(t+1).trim();return o},Nt=function(e){return function(t){return 1-e(1-t)}},Ft=function e(t,n){for(var r,o=t._first;o;)o instanceof Xt?e(o,n):!o.vars.yoyoEase||o._yoyo&&o._repeat||o._yoyo===n||(o.timeline?e(o.timeline,n):(r=o._ease,o._ease=o._yEase,o._yEase=r,o._yoyo=n)),o=o._next},Bt=function(e,t){return e&&(j(e)?e:jt[e]||function(e){var t,n,r,o,i=(e+"").split("("),s=jt[i[0]];return s&&i.length>1&&s.config?s.config.apply(null,~e.indexOf("{")?[Rt(i[1])]:(t=e,n=t.indexOf("(")+1,r=t.indexOf(")"),o=t.indexOf("(",n),t.substring(n,~o&&o<r?t.indexOf(")",r+1):r)).split(",").map(Te)):jt._CE&&Mt.test(e)?jt._CE("",e):s}(e))||t},Ut=function(e,t,n,r){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===r&&(r=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var o,i={easeIn:t,easeOut:n,easeInOut:r};return ye(e,function(e){for(var t in jt[e]=Q[e]=i,jt[o=e.toLowerCase()]=n,i)jt[o+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=jt[e+"."+t]=i[t]}),i},Ht=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},$t=function e(t,n,r){var o=n>=1?n:1,i=(r||(t?.3:.45))/(n<1?n:1),s=i/T*(Math.asin(1/o)||0),a=function(e){return 1===e?1:o*Math.pow(2,-10*e)*I((e-s)*i)+1},l="out"===t?a:"in"===t?function(e){return 1-a(1-e)}:Ht(a);return i=T/i,l.config=function(n,r){return e(t,n,r)},l},zt=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},o="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:Ht(r);return o.config=function(n){return e(t,n)},o};ye("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Ut(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},function(e){return 1-Math.pow(1-e,n)},function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow(2*(1-e),n)/2})}),jt.Linear.easeNone=jt.none=jt.Linear.easeIn,Ut("Elastic",$t("in"),$t("out"),$t()),v=7.5625,b=2*(y=1/(g=2.75)),w=2.5*y,Ut("Bounce",function(e){return 1-S(1-e)},S=function(e){return e<y?v*e*e:e<b?v*Math.pow(e-1.5/g,2)+.75:e<w?v*(e-=2.25/g)*e+.9375:v*Math.pow(e-2.625/g,2)+.984375}),Ut("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Ut("Circ",function(e){return-(x(1-e*e)-1)}),Ut("Sine",function(e){return 1===e?1:1-P(e*A)}),Ut("Back",zt("in"),zt("out"),zt()),jt.SteppedEase=jt.steps=Q.SteppedEase={config:function(e,t){void 0===e&&(e=1);var n=1/e,r=e+(t?0:1),o=t?1:0;return function(e){return((r*nt(0,.99999999,e)|0)+o)*n}}},_.ease=jt["quad.out"],ye("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return he+=e+","+e+"Params,"});var Wt=function(e,t){this.id=E++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:ge,this.set=t?t.getSetter:cn},Gt=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Ye(this,+e.duration,1,1),this.data=e.data,a&&(this._ctx=a,a.data.push(this)),m||It.wake()}var t=e.prototype;return t.delay=function(e){return e||0===e?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Ye(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Lt(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ze(this,e),!n._dp||n.parent||We(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Ge(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===C||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Ce(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Be(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Be(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Ue(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?He(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(nt(-Math.abs(this._delay),this.totalDuration(),n),!1!==t),$e(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Lt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==C&&(this._tTime-=C)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=we(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ge(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(N(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?He(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=se);var t=s;return s=e,Oe(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),s=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Qe(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Qe(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(Ze(this,e),N(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,N(t)),this._dur||(this._zTime=-1e-8),this},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e<this.endTime(!0)-C))},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>
vendor: 8,879 bytes, line 2
21?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var o=j(e)?e:Ae,i=function(){var e=t.then;t.then=null,n&&n(),j(o)&&(o=o(t))&&(o.then||o===t)&&(t.then=e),r(o),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i})},t.kill=function(){bt(this)},e}();Ee(Gt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Xt=function(e){function t(t,n){var o;return void 0===t&&(t={}),(o=e.call(this,t)||this).labels={},o.smoothChildTiming=!!t.smoothChildTiming,o.autoRemoveChildren=!!t.autoRemoveChildren,o._sort=N(t.sortChildren),l&&Ge(t.parent||l,r(o),n),t.reversed&&o.reverse(),t.paused&&o.paused(!0),t.scrollTrigger&&Xe(r(o),t.scrollTrigger),o}o(t,e);var n=t.prototype;return n.to=function(e,t,n){return et(0,arguments,this),this},n.from=function(e,t,n){return et(1,arguments,this),this},n.fromTo=function(e,t,n,r){return et(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Le(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new rn(e,t,Ze(this,n),1),this},n.call=function(e,t,n){return Ge(this,rn.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,o,i,s){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=i,n.onCompleteParams=s,n.parent=this,new rn(e,n,Ze(this,o)),this},n.staggerFrom=function(e,t,n,r,o,i,s){return n.runBackwards=1,Le(n).immediateRender=N(n.immediateRender),this.staggerTo(e,t,n,r,o,i,s)},n.staggerFromTo=function(e,t,n,r,o,i,s,a){return r.startAt=n,Le(r).immediateRender=N(r.immediateRender),this.staggerTo(e,t,r,o,i,s,a)},n.render=function(e,t,n){var r,o,i,a,c,u,d,p,f,h,m,v,g=this._time,y=this._dirty?this.totalDuration():this._tDur,b=this._dur,w=e<=0?0:we(e),S=this._zTime<0!=e<0&&(this._initted||!b);if(this!==l&&w>y&&e>=0&&(w=y),w!==this._tTime||n||S){if(g!==this._time&&b&&(w+=this._time-g,e+=this._time-g),r=w,f=this._start,u=!(p=this._ts),S&&(b||(g=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(m=this._yoyo,c=b+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*c+e,t,n);if(r=we(w%c),w===y?(a=this._repeat,r=b):((a=~~(h=we(w/c)))&&a===h&&(r=b,a--),r>b&&(r=b)),h=Ue(this._tTime,c),!g&&this._tTime&&h!==a&&this._tTime-h*c-this._dur<=0&&(h=a),m&&1&a&&(r=b-r,v=1),a!==h&&!this._lock){var k=m&&1&h,_=k===(m&&1&a);if(a<h&&(k=!k),g=k?0:w%b?b:w,this._lock=1,this.render(g||(v?0:we(a*c)),t,!b)._lock=0,this._tTime=w,!t&&this.parent&&yt(this,"onRepeat"),this.vars.repeatRefresh&&!v&&(this.invalidate()._lock=1,h=a),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(b=this._dur,y=this._tDur,_&&(this._lock=2,g=k?b:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!v&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Ft(this,v)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(d=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<t)return r;r=r._prev}}(this,we(g),we(r)),d&&(w-=r-(r=d._start))),this._tTime=w,this._time=r,this._act=!p,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,g=0),!g&&w&&b&&!t&&!h&&(yt(this,"onStart"),this._tTime!==w))return this;if(r>=g&&e>=0)for(o=this._first;o;){if(i=o._next,(o._act||r>=o._start)&&o._ts&&d!==o){if(o.parent!==this)return this.render(e,t,n);if(o.render(o._ts>0?(r-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(r-o._start)*o._ts,t,n),r!==this._time||!this._ts&&!u){d=0,i&&(w+=this._zTime=-1e-8);break}}o=i}else{o=this._last;for(var O=e<0?e:r;o;){if(i=o._prev,(o._act||O<=o._end)&&o._ts&&d!==o){if(o.parent!==this)return this.render(e,t,n);if(o.render(o._ts>0?(O-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(O-o._start)*o._ts,t,n||s&&Oe(o)),r!==this._time||!this._ts&&!u){d=0,i&&(w+=this._zTime=O?-1e-8:C);break}}o=i}}if(d&&!t&&(this.pause(),d.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=f,$e(this),this.render(e,t,n);this._onUpdate&&!t&&yt(this,"onUpdate",!0),(w===y&&this._tTime>=this.totalDuration()||!w&&g)&&(f!==this._start&&Math.abs(p)===Math.abs(this._ts)||this._lock||((e||!b)&&(w===y&&this._ts>0||!w&&this._ts<0)&&De(this,1),t||e<0&&!g||!w&&!g&&y||(yt(this,w===y&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(w<y&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(M(t)||(t=Ze(this,t,e)),!(e instanceof Gt)){if(H(e))return e.forEach(function(e){return n.add(e,t)}),this;if(L(e))return this.addLabel(e,t);if(!j(e))return this;e=rn.delayedCall(0,e)}return this!==e?Ge(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-O);for(var o=[],i=this._first;i;)i._start>=r&&(i instanceof rn?t&&o.push(i):(n&&o.push(i),e&&o.push.apply(o,i.getChildren(!0,t,n)))),i=i._next;return o},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return L(e)?this.removeLabel(e):j(e)?this.killTweensOf(e):(e.parent===this&&Me(this,e),e===this._recent&&(this._recent=this._last),Re(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=we(It.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=Ze(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=rn.delayedCall(0,t||re,n);return r.data="isPause",this._hasPause=1,Ge(this,r,Ze(this,e))},n.removePause=function(e){var t=this._first;for(e=Ze(this,e);t;)t._start===e&&"isPause"===t.data&&De(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),o=r.length;o--;)Vt!==r[o]&&r[o].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],o=at(e),i=this._first,s=M(t);i;)i instanceof rn?ke(i._targets,o)&&(s?(!Vt||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&r.push(i):(n=i.getTweensOf(o,t)).length&&r.push.apply(r,n),i=i._next;return r},n.tweenTo=function(e,t){t=t||{};var n,r=this,o=Ze(r,e),i=t,s=i.startAt,a=i.onStart,l=i.onStartParams,c=i.immediateRender,u=rn.to(r,Ee({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:t.duration||Math.abs((o-(s&&"time"in s?s.time:r._time))/r.timeScale())||C,onStart:function(){if(r.pause(),!n){var e=t.duration||Math.abs((o-(s&&"time"in s?s.time:r._time))/r.timeScale());u._dur!==e&&Ye(u,e,0,1).render(u._time,!0,!0),n=1}a&&a.apply(u,l||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Ee({startAt:{time:Ze(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),gt(this,Ze(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),gt(this,Ze(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+C)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);var r,o=this._first,i=this.labels;for(e=we(e);o;)o._start>=n&&(o._start+=e,o._end+=e),o=o._next;if(t)for(r in i)i[r]>=n&&(i[r]+=e);return Re(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Re(this)},n.totalDuration=function(e){var t,n,r,o=0,i=this,s=i._last,a=O;if(arguments.length)return i.timeScale((i._repeat<0?i.duration():i.totalDuration())/(i.reversed()?-e:e));if(i._dirty){for(r=i.parent;s;)t=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>a&&i._sort&&s._ts&&!i._lock?(i._lock=1,Ge(i,s,n-s._delay,1)._lock=0):a=n,n<0&&s._ts&&(o-=n,(!r&&!i._dp||r&&r.smoothChildTiming)&&(i._start+=we(n/i._ts),i._time-=n,i._tTime-=n),i.shiftChildren(-n,!1,-1/0),a=0),s._end>o&&s._ts&&(o=s._end),s=t;Ye(i,i===l&&i._time>o?i._time:o,1,1),i._dirty=0}return i._tDur},t.updateRoot=function(e){if(l._ts&&(Ce(l,He(e,l)),f=It.frame),It.frame>=pe){pe+=k.autoSleep||120;var t=l._first;if((!t||!t._ts)&&k.autoSleep&&It._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||It.sleep()}}},t}(Gt);Ee(Xt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Vt,Kt,qt=function(e,t,n,r,o,i,s){var a,l,c,u,d,p,f,h,m=new yn(this._pt,e,t,0,1,pn,null,o),v=0,g=0;for(m.b=n,m.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=mt(r)),i&&(i(h=[n,r],e,t),n=h[0],r=h[1]),l=n.match(V)||[];a=V.exec(r);)u=a[0],d=r.substring(v,a.index),c?c=(c+1)%5:"rgba("===d.substr(-5)&&(c=1),u!==l[g++]&&
vendor: 7,312 bytes, line 2
2(p=parseFloat(l[g-1])||0,m._pt={_next:m._pt,p:d||1===g?d:",",s:p,c:"="===u.charAt(1)?Se(p,u)-p:parseFloat(u)-p,m:c&&c<4?Math.round:0},v=V.lastIndex);return m.c=v<r.length?r.substring(v,r.length):"",m.fp=s,(K.test(r)||f)&&(m.e=0),this._pt=m,m},Yt=function(e,t,n,r,o,i,s,a,l,c){j(r)&&(r=r(o||0,e,i));var u,d=e[t],p="get"!==n?n:j(d)?l?e[t.indexOf("set")||!j(e["get"+t.substr(3)])?t:"get"+t.substr(3)](l):e[t]():d,f=j(d)?l?an:sn:on;if(L(r)&&(~r.indexOf("random(")&&(r=mt(r)),"="===r.charAt(1)&&((u=Se(p,r)+(rt(p)||0))||0===u)&&(r=u)),!c||p!==r||Kt)return isNaN(p*r)||""===r?(!d&&!(t in e)&&ee(t,r),qt.call(this,e,t,p,r,f,a||k.stringFilter,l)):(u=new yn(this._pt,e,t,+p||0,r-(p||0),"boolean"==typeof d?dn:un,0,f),l&&(u.fp=l),s&&u.modifier(s,this,e),this._pt=u)},Qt=function(e,t,n,r,o,i){var s,a,l,c;if(ue[e]&&!1!==(s=new ue[e]).init(o,s.rawVars?t[e]:function(e,t,n,r,o){if(j(e)&&(e=en(e,o,t,n,r)),!R(e)||e.style&&e.nodeType||H(e)||U(e))return L(e)?en(e,o,t,n,r):e;var i,s={};for(i in e)s[i]=en(e[i],o,t,n,r);return s}(t[e],r,o,i,n),n,r,i)&&(n._pt=a=new yn(n._pt,o,e,0,1,s.render,s,0,s.priority),n!==h))for(l=n._ptLookup[n._targets.indexOf(o)],c=s._props.length;c--;)l[s._props[c]]=a;return s},Jt=function e(t,n,r){var o,a,c,u,d,p,f,h,m,v,g,y,b,w=t.vars,S=w.ease,k=w.startAt,T=w.immediateRender,A=w.lazy,E=w.onUpdate,x=w.runBackwards,P=w.yoyoEase,I=w.keyframes,L=w.autoRevert,j=t._dur,M=t._startAt,D=t._targets,R=t.parent,F=R&&"nested"===R.data?R.vars.targets:D,B="auto"===t._overwrite&&!i,U=t.timeline;if(U&&(!I||!S)&&(S="none"),t._ease=Bt(S,_.ease),t._yEase=P?Nt(Bt(!0===P?S:P,_.ease)):0,P&&t._yoyo&&!t._repeat&&(P=t._yEase,t._yEase=t._ease,t._ease=P),t._from=!U&&!!w.runBackwards,!U||I&&!w.stagger){if(y=(h=D[0]?ve(D[0]).harness:0)&&w[h.prop],o=Ie(w,ae),M&&(M._zTime<0&&M.progress(1),n<0&&x&&T&&!L?M.render(-1,!0):M.revert(x&&j?ie:oe),M._lazy=0),k){if(De(t._startAt=rn.set(D,Ee({data:"isStart",overwrite:!1,parent:R,immediateRender:!0,lazy:!M&&N(A),startAt:null,delay:0,onUpdate:E&&function(){return yt(t,"onUpdate")},stagger:0},k))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(s||!T&&!L)&&t._startAt.revert(ie),T&&j&&n<=0&&r<=0)return void(n&&(t._zTime=n))}else if(x&&j&&!M)if(n&&(T=!1),c=Ee({overwrite:!1,data:"isFromStart",lazy:T&&!M&&N(A),immediateRender:T,stagger:0,parent:R},o),y&&(c[h.prop]=y),De(t._startAt=rn.set(D,c)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(s?t._startAt.revert(ie):t._startAt.render(-1,!0)),t._zTime=n,T){if(!n)return}else e(t._startAt,C,C);for(t._pt=t._ptCache=0,A=j&&N(A)||A&&!j,a=0;a<D.length;a++){if(f=(d=D[a])._gsap||me(D)[a]._gsap,t._ptLookup[a]=v={},ce[f.id]&&le.length&&_e(),g=F===D?a:F.indexOf(d),h&&!1!==(m=new h).init(d,y||o,t,g,F)&&(t._pt=u=new yn(t._pt,d,m.name,0,1,m.render,m,0,m.priority),m._props.forEach(function(e){v[e]=u}),m.priority&&(p=1)),!h||y)for(c in o)ue[c]&&(m=Qt(c,o,t,g,d,F))?m.priority&&(p=1):v[c]=u=Yt.call(t,d,c,"get",o[c],g,F,0,w.stringFilter);t._op&&t._op[a]&&t.kill(d,t._op[a]),B&&t._pt&&(Vt=t,l.killTweensOf(d,v,t.globalTime(n)),b=!t.parent,Vt=0),t._pt&&A&&(ce[f.id]=1)}p&&gn(t),t._onInit&&t._onInit(t)}t._onUpdate=E,t._initted=(!t._op||t._pt)&&!b,I&&n<=0&&U.render(O,!0,!0)},Zt=function(e,t,n,r){var o,i,s=t.ease||r||"power1.inOut";if(H(t))i=n[e]||(n[e]=[]),t.forEach(function(e,n){return i.push({t:n/(t.length-1)*100,v:e,e:s})});else for(o in t)i=n[o]||(n[o]=[]),"ease"===o||i.push({t:parseFloat(e),v:t[o],e:s})},en=function(e,t,n,r,o){return j(e)?e.call(t,n,r,o):L(e)&&~e.indexOf("random(")?mt(e):e},tn=he+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",nn={};ye(tn+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return nn[e]=1});var rn=function(e){function t(t,n,o,s){var a;"number"==typeof n&&(o.duration=n,n=o,o=null);var c,u,d,p,f,h,m,v,g=(a=e.call(this,s?n:Le(n))||this).vars,y=g.duration,b=g.delay,w=g.immediateRender,S=g.stagger,_=g.overwrite,O=g.keyframes,C=g.defaults,T=g.scrollTrigger,A=g.yoyoEase,E=n.parent||l,x=(H(t)||U(t)?M(t[0]):"length"in n)?[t]:at(t);if(a._targets=x.length?me(x):te("GSAP target "+t+" not found. https://gsap.com",!k.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,O||S||B(y)||B(b)){if(n=a.vars,(c=a.timeline=new Xt({data:"nested",defaults:C||{},targets:E&&"nested"===E.data?E.vars.targets:x})).kill(),c.parent=c._dp=r(a),c._start=0,S||B(y)||B(b)){if(p=x.length,m=S&&ut(S),R(S))for(f in S)~tn.indexOf(f)&&(v||(v={}),v[f]=S[f]);for(u=0;u<p;u++)(d=Ie(n,nn)).stagger=0,A&&(d.yoyoEase=A),v&&xe(d,v),h=x[u],d.duration=+en(y,r(a),u,h,x),d.delay=(+en(b,r(a),u,h,x)||0)-a._delay,!S&&1===p&&d.delay&&(a._delay=b=d.delay,a._start+=b,d.delay=0),c.to(h,d,m?m(u,h,x):0),c._ease=jt.none;c.duration()?y=b=0:a.timeline=0}else if(O){Le(Ee(c.vars.defaults,{ease:"none"})),c._ease=Bt(O.ease||n.ease||"none");var P,I,L,j=0;if(H(O))O.forEach(function(e){return c.to(x,e,">")}),c.duration();else{for(f in d={},O)"ease"===f||"easeEach"===f||Zt(f,O[f],d,O.easeEach);for(f in d)for(P=d[f].sort(function(e,t){return e.t-t.t}),j=0,u=0;u<P.length;u++)(L={ease:(I=P[u]).e,duration:(I.t-(u?P[u-1].t:0))/100*y})[f]=I.v,c.to(x,L,j),j+=L.duration;c.duration()<y&&c.to({},{duration:y-c.duration()})}}y||a.duration(y=c.duration())}else a.timeline=0;return!0!==_||i||(Vt=r(a),l.killTweensOf(x),Vt=0),Ge(E,r(a),o),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(w||!y&&!O&&a._start===we(E._time)&&N(w)&&Fe(r(a))&&"nested"!==E.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-b)||0)),T&&Xe(r(a),T),a}o(t,e);var n=t.prototype;return n.render=function(e,t,n){var r,o,i,a,l,c,u,d,p,f=this._time,h=this._tDur,m=this._dur,v=e<0,g=e>h-C&&!v?h:e<C?0:e;if(m){if(g!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==v||this._lazy){if(r=g,d=this.timeline,this._repeat){if(a=m+this._rDelay,this._repeat<-1&&v)return this.totalTime(100*a+e,t,n);if(r=we(g%a),g===h?(i=this._repeat,r=m):(i=~~(l=we(g/a)))&&i===l?(r=m,i--):r>m&&(r=m),(c=this._yoyo&&1&i)&&(p=this._yEase,r=m-r),l=Ue(this._tTime,a),r===f&&!n&&this._initted&&i===l)return this._tTime=g,this;i!==l&&(d&&this._yEase&&Ft(d,c),this.vars.repeatRefresh&&!c&&!this._lock&&r!==a&&this._initted&&(this._lock=n=1,this.render(we(a*i),!0).invalidate()._lock=0))}if(!this._initted){if(Ve(this,v?e:r,n,t,g))return this._tTime=0,this;if(!(f===this._time||n&&this.vars.repeatRefresh&&i!==l))return this;if(m!==this._dur)return this.render(e,t,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(p||this._ease)(r/m),this._from&&(this.ratio=u=1-u),!f&&g&&!t&&!l&&(yt(this,"onStart"),this._tTime!==g))return this;for(o=this._pt;o;)o.r(u,o.d),o=o._next;d&&d.render(e<0?e:d._dur*d._ease(r/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(v&&Ne(this,e,0,n),yt(this,"onUpdate")),this._repeat&&i!==l&&this.vars.onRepeat&&!t&&this.parent&&yt(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(v&&!this._onUpdate&&Ne(this,e,0,!0),(e||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&De(this,1),t||v&&!f||!(g||f||c)||(yt(this,g===h?"onComplete":"onReverseComplete",!0),this._prom&&!(g<h&&this.timeScale()>0)&&this._prom()))}}else!function(e,t,n,r){var o,i,a,l=e.ratio,c=t<0||!t&&(!e._start&&Ke(e)&&(e._initted||!qe(e))||(e._ts<0||e._dp._ts<0)&&!qe(e))?0:1,u=e._rDelay,d=0;if(u&&e._repeat&&(d=nt(0,e._tDur,t),i=Ue(d,u),e._yoyo&&1&i&&(c=1-c),i!==Ue(e._tTime,u)&&(l=1-c,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 30,026 bytes, line 2
2date())),c!==l||s||r||e._zTime===C||!t&&e._zTime){if(!e._initted&&Ve(e,t,r,n,d))return;for(a=e._zTime,e._zTime=t||(n?C:0),n||(n=t&&!a),e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=d,o=e._pt;o;)o.r(c,o.d),o=o._next;t<0&&Ne(e,t,0,!0),e._onUpdate&&!n&&yt(e,"onUpdate"),d&&e._repeat&&!n&&e.parent&&yt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&De(e,1),n||s||(yt(e,c?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,o){m||It.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Jt(this,i),function(e,t,n,r,o,i,s,a){var l,c,u,d,p=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!p)for(p=e._ptCache[t]=[],u=e._ptLookup,d=e._targets.length;d--;){if((l=u[d][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Kt=1,e.vars[t]="+=0",Jt(e,s),Kt=0,a?te(t+" not eligible for reset"):1;p.push(l)}for(d=p.length;d--;)(l=(c=p[d])._pt||c).s=!r&&0!==r||o?l.s+(r||0)+i*l.c:r,l.c=n-l.s,c.e&&(c.e=be(n)+rt(c.e)),c.b&&(c.b=l.s+rt(c.b))}(this,e,t,n,r,this._ease(i/this._dur),i,o)?this.resetTo(e,t,n,r,1):(ze(this,0),this.parent||je(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?bt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!s),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Vt&&!0!==Vt.vars.overwrite)._first||bt(this),this.parent&&n!==this.timeline.totalDuration()&&Ye(this,this._dur*this.timeline._tDur/n,0,1),this}var r,o,i,a,l,c,u,d=this._targets,p=e?at(e):d,f=this._ptLookup,h=this._pt;if((!t||"all"===t)&&function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0}(d,p))return"all"===t&&(this._pt=0),bt(this);for(r=this._op=this._op||[],"all"!==t&&(L(t)&&(l={},ye(t,function(e){return l[e]=1}),t=l),t=function(e,t){var n,r,o,i,s=e[0]?ve(e[0]).harness:0,a=s&&s.aliases;if(!a)return t;for(r in n=xe({},t),a)if(r in n)for(o=(i=a[r].split(",")).length;o--;)n[i[o]]=n[r];return n}(d,t)),u=d.length;u--;)if(~p.indexOf(d[u]))for(l in o=f[u],"all"===t?(r[u]=t,a=o,i={}):(i=r[u]=r[u]||{},a=t),a)(c=o&&o[l])&&("kill"in c.d&&!0!==c.d.kill(l)||Me(this,c,"_pt"),delete o[l]),"all"!==i&&(i[l]=1);return this._initted&&!this._pt&&h&&bt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return et(1,arguments)},t.delayedCall=function(e,n,r,o){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:o})},t.fromTo=function(e,t,n){return et(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return l.killTweensOf(e,t,n)},t}(Gt);Ee(rn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ye("staggerTo,staggerFrom,staggerFromTo",function(e){rn[e]=function(){var t=new Xt,n=ot.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}});var on=function(e,t,n){return e[t]=n},sn=function(e,t,n){return e[t](n)},an=function(e,t,n,r){return e[t](r.fp,n)},ln=function(e,t,n){return e.setAttribute(t,n)},cn=function(e,t){return j(e[t])?sn:D(e[t])&&e.setAttribute?ln:on},un=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},dn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},pn=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round(1e4*(n.s+n.c*e))/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},fn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},hn=function(e,t,n,r){for(var o,i=this._pt;i;)o=i._next,i.p===r&&i.modifier(e,t,n),i=o},mn=function(e){for(var t,n,r=this._pt;r;)n=r._next,r.p===e&&!r.op||r.op===e?Me(this,r,"_pt"):r.dep||(t=1),r=n;return!t},vn=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},gn=function(e){for(var t,n,r,o,i=e._pt;i;){for(t=i._next,n=r;n&&n.pr>i.pr;)n=n._next;(i._prev=n?n._prev:o)?i._prev._next=i:r=i,(i._next=n)?n._prev=i:o=i,i=t}e._pt=r},yn=function(){function e(e,t,n,r,o,i,s,a,l){this.t=t,this.s=r,this.c=o,this.p=n,this.r=i||un,this.d=s||this,this.set=a||on,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=vn,this.m=e,this.mt=n,this.tween=t},e}();ye(he+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return ae[e]=1}),Q.TweenMax=Q.TweenLite=rn,Q.TimelineLite=Q.TimelineMax=Xt,l=new Xt({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),k.stringFilter=Pt;var bn=[],wn={},Sn=[],kn=0,_n=0,On=function(e){return(wn[e]||Sn).map(function(e){return e()})},Cn=function(){var e=Date.now(),t=[];e-kn>2&&(On("matchMediaInit"),bn.forEach(function(e){var n,r,o,i,s=e.queries,a=e.conditions;for(r in s)(n=c.matchMedia(s[r]).matches)&&(o=1),n!==a[r]&&(a[r]=n,i=1);i&&(e.revert(),o&&t.push(e))}),On("matchMediaRevert"),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),kn=e,On("matchMedia"))},Tn=function(){function e(e,t){this.selector=t&<(t),this.data=[],this._r=[],this.isReverted=!1,this.id=_n++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){j(e)&&(n=t,t=e,e=j);var r=this,o=function(){var e,o=a,i=r.selector;return o&&o!==r&&o.data.push(r),n&&(r.selector=lt(n)),a=r,e=t.apply(r,arguments),j(e)&&r._r.push(e),a=o,r.selector=i,r.isReverted=!1,e};return r.last=o,e===j?o(r,function(e){return r.add(null,e)}):e?r[e]=o:o},t.ignore=function(e){var t=a;a=null,e(this),a=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof rn&&!(n.parent&&"nested"===n.parent.data)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?function(){for(var t,r=n.getTweens(),o=n.data.length;o--;)"isFlip"===(t=n.data[o]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(e){return r.splice(r.indexOf(e),1)}));for(r.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),o=n.data.length;o--;)(t=n.data[o])instanceof Xt?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof rn)&&t.revert&&t.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0}():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=bn.length;r--;)bn[r].id===this.id&&bn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),An=function(){function e(e){this.contexts=[],this.scope=e,a&&a.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){R(e)||(e={matches:e});var r,o,i,s=new Tn(0,n||this.scope),l=s.conditions={};for(o in a&&!s.selector&&(s.selector=a.selector),this.contexts.push(s),t=s.add("onMatch",t),s.queries=e,e)"all"===o?i=1:(r=c.matchMedia(e[o]))&&(bn.indexOf(s)<0&&bn.push(s),(l[o]=r.matches)&&(i=1),r.addListener?r.addListener(Cn):r.addEventListener("change",Cn));return i&&t(s,function(e){return s.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),En={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return St(e)})},timeline:function(e){return new Xt(e)},getTweensOf:function(e,t){return l.getTweensOf(e,t)},getProperty:function(e,t,n,r){L(e)&&(e=at(e)[0]);var o=ve(e||{}).get,i=n?Ae:Te;return"native"===n&&(n=""),e?t?i((ue[t]&&ue[t].get||o)(e,t,n,r)):function(t,n,r){return i((ue[t]&&ue[t].get||o)(e,t,n,r))}:e},quickSetter:function(e,t,n){if((e=at(e)).length>1){var r=e.map(function(e){return In.quickSetter(e,t,n)}),o=r.length;return function(e){for(var t=o;t--;)r[t](e)}}e=e[0]||{};var i=ue[t],s=ve(e),a=s.harness&&(s.harness.aliases||{})[t]||t,l=i?function(t){var r=new i;h._pt=0,r.init(e,n?t+n:t,h,0,[e]),r.render(1,r),h._pt&&fn(1,h)}:s.set(e,a);return i?l:function(t){return l(e,a,n?t+n:t,s,1)}},quickTo:function(e,t,n){var r,o=In.to(e,Ee(((r={})[t]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),i=function(e,n,r){return o.resetTo(t,e,n,r)};return i.tween=o,i},isTweening:function(e){return l.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Bt(e.ease,_.ease)),Pe(_,e||{})},config:function(e){return Pe(k,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,o=e.defaults,i=e.extendTimeline;(r||"").split(",").forEach(function(e){return e&&!ue[e]&&!Q[e]&&te(t+" effect requires "+e+" plugin.")}),de[t]=function(e,t,r){return n(at(e),Ee(t||{},o),r)},i&&(Xt.prototype[t]=function(e,n,r){return this.add(de[t](e,R(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){jt[e]=Bt(t)},parseEase:function(e,t){return arguments.length?Bt(e,t):jt},getById:function(e){return l.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,o=new Xt(e);for(o.smoothChildTiming=N(e.smoothChildTiming),l.remove(o),o._dp=0,o._time=o._tTime=l._time,n=l._first;n;)r=n._next,!t&&!n._dur&&n instanceof rn&&n.vars.onComplete===n._targets[0]||Ge(o,n,n._start-n._delay),n=r;return Ge(l,o,0),o},context:function(e,t){return e?new Tn(e,t):a},matchMedia:function(e){return new An(e)},matchMediaRefresh:function(){return bn.forEach(function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()})||Cn()},addEventListener:function(e,t){var n=wn[e]||(wn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=wn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:function e(t,n,r){var o=n-t;return H(t)?ht(t,e(0,t.length),n):tt(r,function(e){return(o+(e-t)%o)%o+t})},wrapYoyo:function e(t,n,r){var o=n-t,i=2*o;return H(t)?ht(t,e(0,t.length-1),n):tt(r,function(e){return t+((e=(i+(e-t)%i)%i||0)>o?i-e:e)})},distribute:ut,random:ft,snap:pt,normalize:function(e,t,n){return vt(e,t,0,1,n)},getUnit:rt,clamp:function(e,t,n){return tt(n,function(n){return nt(e,t,n)})},splitColor:Ct,toArray:at,selector:lt,mapRange:vt,pipe:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||rt(n))}},interpolate:function e(t,n,r,o){var i=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!i){var s,a,l,c,u,d=L(t),p={};if(!0===r&&(o=1)&&(r=null),d)t={p:t},n={p:n};else if(H(t)&&!H(n)){for(l=[],c=t.length,u=c-2,a=1;a<c;a++)l.push(e(t[a-1],t[a]));c--,i=function(e){e*=c;var t=Math.min(u,~~e);return l[t](e-t)},r=n}else o||(t=xe(H(t)?[]:{},t));if(!l){for(s in n)Yt.call(p,t,s,"get",n[s]);i=function(e){return fn(e,p)||(d?t.p:t)}}}return tt(r,i)},shuffle:ct},install:Z,effects:de,ticker:It,updateRoot:Xt.updateRoot,plugins:ue,globalTimeline:l,core:{PropTween:yn,globals:ne,Tween:rn,Timeline:Xt,Animation:Gt,getCache:ve,_removeLinkedListItem:Me,reverting:function(){return s},context:function(e){return e&&a&&(a.data.push(e),e._ctx=a),a},suppressOverwrites:function(e){return i=e}}};ye("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return En[e]=rn[e]}),It.add(Xt.updateRoot),h=En.to({},{duration:0});var xn=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Pn=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,o;if(L(n)&&(r={},ye(n,function(e){return r[e]=1}),n=r),t){for(o in r={},n)r[o]=t(n[o]);n=r}!function(e,t){var n,r,o,i=e._targets;for(n in t)for(r=i.length;r--;)(o=e._ptLookup[r][n])&&(o=o.d)&&(o._pt&&(o=xn(o,n)),o&&o.modifier&&o.modifier(t[n],e,i[r],n))}(e,n)}}}},In=En.registerPlugin({name:"attr",init:function(e,t,n,r,o){var i,s,a;for(i in this.tween=n,t)a=e.getAttribute(i)||"",(s=this.add(e,"setAttribute",(a||0)+"",t[i],r,o,0,0,i)).op=i,s.b=a,this._props.push(i)},render:function(e,t){for(var n=t._pt;n;)s?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Pn("roundProps",dt),Pn("modifiers"),Pn("snap",pt))||En;rn.version=Xt.version=In.version="3.14.2",p=1,F()&&Lt();jt.Power0,jt.Power1,jt.Power2,jt.Power3,jt.Power4,jt.Linear,jt.Quad,jt.Cubic,jt.Quart,jt.Quint,jt.Strong,jt.Elastic,jt.Back,jt.SteppedEase,jt.Bounce,jt.Sine,jt.Expo,jt.Circ;var Ln,jn,Mn,Dn,Rn,Nn,Fn,Bn,Un={},Hn=180/Math.PI,$n=Math.PI/180,zn=Math.atan2,Wn=/([A-Z])/g,Gn=/(left|right|width|margin|padding|x)/i,Xn=/[\s,\(]\S/,Vn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Kn=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},qn=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Yn=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},Qn=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},Jn=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Zn=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},er=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},tr=function(e,t,n){return e.style[t]=n},nr=function(e,t,n){return e.style.setProperty(t,n)},rr=function(e,t,n){return e._gsap[t]=n},or=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},ir=function(e,t,n,r,o){var i=e._gsap;i.scaleX=i.scaleY=n,i.renderTransform(o,i)},sr=function(e,t,n,r,o){var i=e._gsap;i[t]=n,i.renderTransform(o,i)},ar="transform",lr=ar+"Origin",cr=function e(t,n){var r=this,o=this.target,i=o.style,s=o._gsap;if(t in Un&&i){if(this.tfm=this.tfm||{},"transform"===t)return Vn.transform.split(",").forEach(function(t){return e.call(r,t,n)});if(~(t=Vn[t]||t).indexOf(",")?t.split(",").forEach(function(e){return r.tfm[e]=Ar(o,e)}):this.tfm[t]=s.x?s[t]:Ar(o,t),t===lr&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(ar)>=0)return;s.svg&&(this.svgo=o.getAttribute("data-svg-origin"),this.props.push(lr,n,"")),t=ar}(i||n)&&this.props.push(t,n,i[t])},ur=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},dr=function(){var e,t,n=this.props,r=this.target,o=r.style,i=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?2===n[e+1]?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?o[n[e]]=n[e+2]:o.removeProperty("--"===n[e].substr(0,2)?n[e]:n[e].replace(Wn,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)i[t]=this.tfm[t];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=Fn())&&e.isStart||o[ar]||(ur(o),i.zOrigin&&o[lr]&&(o[lr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},pr=function(e,t){var n={target:e,props:[],revert:dr,save:cr};return e._gsap||In.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return n.save(e)}),n},fr=function(e,t){var n=jn.createElementNS?jn.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):jn.createElement(e);return n&&n.style?n:jn.createElement(e)},hr=function e(t,n,r){var o=getComputedStyle(t);return o[n]||o.getPropertyValue(n.replace(Wn,"-$1").toLowerCase())||o.getPropertyValue(n)||!r&&e(t,vr(n)||n,1)||""},mr="O,Moz,ms,Ms,Webkit".split(","),vr=function(e,t,n){var r=(t||Rn).style,o=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(mr[o]+e in r););return o<0?null:(3===o?"ms":o>=0?mr[o]:"")+e},gr=function(){"undefined"!=typeof window&&window.document&&(Ln=window,jn=Ln.document,Mn=jn.documentElement,Rn=fr("div")||{style:{}},fr("div"),ar=vr(ar),lr=ar+"Origin",Rn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Bn=!!vr("perspective"),Fn=In.core.reverting,Dn=1)},yr=function(e){var t,n=e.ownerSVGElement,r=fr("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),o=e.cloneNode(!0);o.style.display="block",r.appendChild(o),Mn.appendChild(r);try{t=o.getBBox()}catch(e){}return r.removeChild(o),Mn.removeChild(r),t},br=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},wr=function(e){var t,n;try{t=e.getBBox()}catch(r){t=yr(e),n=1}return t&&(t.width||t.height)||n||(t=yr(e)),!t||t.width||t.x||t.y?t:{x:+br(e,["x","cx","x1"])||0,y:+br(e,["y","cy","y1"])||0,width:0,height:0}},Sr=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!wr(e))},kr=function(e,t){if(t){var n,r=e.style;t in Un&&t!==lr&&(t=ar),r.removeProperty?("ms"!==(n=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),r.removeProperty("--"===n?t:t.replace(Wn,"-$1").toLowerCase())):r.removeAttribute(t)}},_r=function(e,t,n,r,o,i){var s=new yn(e._pt,t,n,0,1,i?er:Zn);return e._pt=s,s.b=r,s.e=o,e._props.push(n),s},Or={deg:1,rad:1,turn:1},Cr={grid:1,flex:1},Tr=function e(t,n,r,o){var i,s,a,l,c=parseFloat(r)||0,u=(r+"").trim().substr((c+"").length)||"px",d=Rn.style,p=Gn.test(n),f="svg"===t.tagName.toLowerCase(),h=(f?"client":"offset")+(p?"Width":"Height"),m=100,v="px"===o,g="%"===o;if(o===u||!c||Or[o]||Or[u])return c;if("px"!==u&&!v&&(c=e(t,n,r,"px")),l=t.getCTM&&Sr(t),(g||"%"===u)&&(Un[n]||~n.indexOf("adius")))return i=l?t.getBBox()[p?"width":"height"]:t[h],be(g?c/i*m:c/100*i);if(d[p?"width":"height"]=m+(v?u:o),s="rem"!==o&&~n.indexOf("adius")||"em"===o&&t.appendChild&&!f?t:t.parentNode,l&&(s=(t.ownerSVGElement||{}).parentNode),s&&s!==jn&&s.appendChild||(s=jn.body),(a=s._gsap)&&g&&a.width&&p&&a.time===It.time&&!a.uncache)return be(c/a.width*m);if(!g||"height"!==n&&"width"!==n)(g||"%"===u)&&!Cr[hr(s,"display")]&&(d.position=hr(t,"position")),s===t&&(d.position="static"),s.appendChild(Rn),i=Rn[h],s.removeChild(Rn),d.position="absolute";else{var y=t.style[n];t.style[n]=m+o,i=t[h],y?t.style[n]=y:kr(t,n)}return p&&g&&((a=ve(s)).time=It.time,a.width=s[h]),be(v?i*c/m:i&&c?m/i*c:0)},Ar=function(e,t,n,r){var o;return Dn||gr(),t in Vn&&"transform"!==t&&~(t=Vn[t]).indexOf(",")&&(t=t.split(",")[0]),Un[t]&&"transform"!==t?(o=Br(e,r),o="transformOrigin"!==t?o[t]:o.svg?o.origin:Ur(hr(e,lr))+" "+o.zOrigin+"px"):(!(o=e.style[t])||"auto"===o||r||~(o+"").indexOf("calc("))&&(o=Lr[t]&&Lr[t](e,t,n)||hr(e,t)||ge(e,t)||("opacity"===t?1:0)),n&&!~(o+"").trim().indexOf(" ")?Tr(e,t,o,n)+n:o},Er=function(e,t,n,r){if(!n||"none"===n){var o=vr(t,e,1),i=o&&hr(e,o,1);i&&i!==n?(t=o,n=i):"borderColor"===t&&(n=hr(e,"borderTopColor"))}var s,a,l,c,u,d,p,f,h,m,v,g=new yn(this._pt,e.style,t,0,1,pn),y=0,b=0;if(g.b=n,g.e=r,n+="","var(--"===(r+="").substring(0,6)&&(r=hr(e,r.substring(4,r.indexOf(")")))),"auto"===r&&(d=e.style[t],e.style[t]=r,r=hr(e,t)||r,d?e.style[t]=d:kr(e,t)),Pt(s=[n,r]),r=s[1],l=(n=s[0]).match(X)||[],(r.match(X)||[]).length){for(;a=X.exec(r);)p=a[0],h=r.substring(y,a.index),u?u=(u+1)%5:"rgba("!==h.substr(-5)&&"hsla("!==h.substr(-5)||(u=1),p!==(d=l[b++]||"")&&(c=parseFloat(d)||0,v=d.substr((c+"").length),"="===p.charAt(1)&&(p=Se(c,p)+v),f=parseFloat(p),m=p.substr((f+"").length),y=X.lastIndex-m.length,m||(m=m||k.units[t]||v,y===r.length&&(r+=m,g.e+=m)),v!==m&&(c=Tr(e,t,d,m)||0),g._pt={_next:g._pt,p:h||1===b?h:",",s:c,c:f-c,m:u&&u<4||"zIndex"===t?Math.round:0});g.c=y<r.length?r.substring(y,r.length):""}else g.r="display"===t&&"none"===r?er:Zn;return K.test(r)&&(g.e=0),this._pt=g,g},xr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Pr=function(e){var t=e.split(" "),n=t[0],r=t[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==r&&"right"!==r||(e=n,n=r,r=e),t[0]=xr[n]||n,t[1]=xr[r]||r,t.join(" ")},Ir=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,o,i=t.t,s=i.style,a=t.u,l=i._gsap;if("all"===a||!0===a)s.cssText="",r=1;else for(o=(a=a.split(",")).length;--o>-1;)n=a[o],Un[n]&&(r=1,n="transformOrigin"===n?lr:ar),kr(i,n);r&&(kr(i,ar),l&&(l.svg&&i.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Br(i,1),l.uncache=1,ur(s)))}},Lr={clearProps:function(e,t,n,r,o){if("isFromStart"!==o.data){var i=e._pt=new yn(e._pt,t,n,0,0,Ir);return i.u=r,i.pr=-10,i.tween=o,e._props.push(n),1}}},jr=[1,0,0,1,0,0],Mr={},Dr=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Rr=function(e){var t=hr(e,ar);return Dr(t)?jr:t.substr(7).match(G).map(be)},Nr=function(e,t){var n,r,o,i,s=e._gsap||ve(e),a=e.style,l=Rr(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(o=e.transform.baseVal.consolidate().matrix).a,o.b,o.c,o.d,o.e,o.f]).join(",")?jr:l:(l!==jr||e.offsetParent||e===Mn||s.svg||(o=a.display,a.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(i=1,r=e.nextElementSibling,Mn.appendChild(e)),l=Rr(e),o?a.display=o:kr(e,"display"),i&&(r?n.insertBefore(e,r):n?n.appendChild(e):Mn.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Fr=function(e,t,n,r,o,i){var s,a,l,c=e._gsap,u=o||Nr(e,!0),d=c.xOrigin||0,p=c.yOrigin||0,f=c.xOffset||0,h=c.yOffset||0,m=u[0],v=u[1],g=u[2],y=u[3],b=u[4],w=u[5],S=t.split(" "),k=parseFloat(S[0])||0,_=parseFloat(S[1])||0;n?u!==jr&&(a=m*y-v*g)&&(l=k*(-v/a)+_*(m/a)-(m*w-v*b)/a,k=k*(y/a)+_*(-g/a)+(g*w-y*b)/a,_=l):(k=(s=wr(e)).x+(~S[0].indexOf("%")?k/100*s.width:k),_=s.y+(~(S[1]||S[0]).indexOf("%")?_/100*s.height:_)),r||!1!==r&&c.smooth?(b=k-d,w=_-p,c.xOffset=f+(b*m+w*g)-b,c.yOffset=h+(b*v+w*y)-w):c.xOffset=c.yOffset=0,c.xOrigin=k,c.yOrigin=_,c.smooth=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[lr]="0px 0px",i&&(_r(i,c,"xOrigin",d,k),_r(i,c,"yOrigin",p,_),_r(i,c,"xOffset",f,c.xOffset),_r(i,c,"yOffset",h,c.yOffset)),e.setAttribute("data-svg-origin",k+" "+_)},Br=function(e,t){var n=e._gsap||new Wt(e);if("x"in n&&!t&&!n.uncache)return n;var r,o,i,s,a,l,c,u,d,p,f,h,m,v,g,y,b,w,S,_,O,C,T,A,E,x,P,I,L,j,M,D,R=e.style,N=n.scaleX<0,F="px",B="deg",U=getComputedStyle(e),H=hr(e,lr)||"0";return r=o=i=l=c=u=d=p=f=0,s=a=1,n.svg=!(!e.getCTM||!Sr(e)),U.translate&&("none"===U.translate&&"none"===U.scale&&"none"===U.rotate||(R[ar]=("none"!==U.translate?"translate3d("+(U.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==U.rotate?"rotate("+U.rotate+") ":"")+("none"!==U.scale?"scale("+U.scale.split(" ").join(",")+") ":"")+("none"!==U[ar]?U[ar]:"")),R.scale=R.rotate=R.translate="none"),v=Nr(e,n.svg),n.svg&&(n.uncache?(E=e.getBBox(),H=n.xOrigin-E.x+"px "+(n.yOrigin-E.y)+"px",A=""):A=!t&&e.getAttribute("data-svg-origin"),Fr(e,A||H,!!A||n.originIsAbsolute,!1!==n.smooth,v)),h=n.xOrigin||0,m=n.yOrigin||0,v!==jr&&(w=v[0],S=v[1],_=v[2],O=v[3],r=C=v[4],o=T=v[5],6===v.length?(s=Math.sqrt(w*w+S*S),a=Math.sqrt(O*O+_*_),l=w||S?zn(S,w)*Hn:0,(d=_||O?zn(_,O)*Hn+l:0)&&(a*=Math.abs(Math.cos(d*$n))),n.svg&&(r-=h-(h*w+m*_),o-=m-(h*S+m*O))):(D=v[6],j=v[7],P=v[8],I=v[9],L=v[10],M=v[11],r=v[12],o=v[13],i=v[14],c=(g=zn(D,L))*Hn,g&&(A=C*(y=Math.cos(-g))+P*(b=Math.sin(-g)),E=T*y+I*b,x=D*y+L*b,P=C*-b+P*y,I=T*-b+I*y,L=D*-b+L*y,M=j*-b+M*y,C=A,T=E,D=x),u=(g=zn(-_,L))*Hn,g&&(y=Math.cos(-g),M=O*(b=Math.sin(-g))+M*y,w=A=w*y-P*b,S=E=S*y-I*b,_=x=_*y-L*b),l=(g=zn(S,w))*Hn,g&&(A=w*(y=Math.cos(g))+S*(b=Math.sin(g)),E=C*y+T*b,S=S*y-w*b,T=T*y-C*b,w=A,C=E),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),s=be(Math.sqrt(w*w+S*S+_*_)),a=be(Math.sqrt(T*T+D*D)),g=zn(C,T),d=Math.abs(g)>2e-4?g*Hn:0,f=M?1/(M<0?-M:M):0),n.svg&&(A=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!Dr(hr(e,ar)),A&&e.setAttribute("transform",A))),Math.abs(d)>90&&Math.abs(d)<270&&(N?(s*=-1,d+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,d+=d<=0?180:-180)),t=t||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+F,n.y=o-((n.yPercent=o&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-o)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+F,n.z=i+F,n.scaleX=be(s),n.scaleY=be(a),n.rotation=be(l)+B,n.rotationX=be(c)+B,n.rotationY=be(u)+B,n.skewX=d+B,n.skewY=p+B,n.transformPerspective=f+F,(n.zOrigin=parseFloat(H.split(" ")[2])||!t&&n.zOrigin||0)&&(R[lr]=Ur(H)),n.xOffset=n.yOffset=0,n.force3D=k.force3D,n.renderTransform=n.svg?Vr:Bn?Xr:$r,n.uncache=0,n},Ur=function(e){return(e=e.split(" "))[0]+" "+e[1]},Hr=function(e,t,n){var r=rt(t);return be(parseFloat(t)+parseFloat(Tr(e,"x",n+"px",r)))+r},$r=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Xr(e,t)},zr="0deg",Wr="0px",Gr=") ",Xr=function(e,t){var n=t||this,r=n.xPercent,o=n.yPercent,i=n.x,s=n.y,a=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,d=n.skewX,p=n.skewY,f=n.scaleX,h=n.scaleY,m=n.transformPerspective,v=n.force3D,g=n.target,y=n.zOrigin,b="",w="auto"===v&&e&&1!==e||!0===v;if(y&&(u!==zr||c!==zr)){var S,k=parseFloat(c)*$n,_=Math.sin(k),O=Math.cos(k);k=parseFloat(u)*$n,S=Math.cos(k),i=Hr(g,i,_*S*-y),s=Hr(g,s,-Math.sin(k)*-y),a=Hr(g,a,O*S*-y+y)}m!==Wr&&(b+="perspective("+m+Gr),(r||o)&&(b+="translate("+r+"%, "+o+"%) "),(w||i!==Wr||s!==Wr||a!==Wr)&&(b+=a!==Wr||w?"translate3d("+i+", "+s+", "+a+") ":"translate("+i+", "+s+Gr),l!==zr&&(b+="rotate("+l+Gr),c!==zr&&(b+="rotateY("+c+Gr),u!==zr&&(b+="rotateX("+u+Gr),d===zr&&p===zr||(b+="skew("+d+", "+p+Gr),1===f&&1===h||(b+="scale("+f+", "+h+Gr),g.style[ar]=b||"translate(0, 0)"},Vr=function(e,t){var n,r,o,i,s,a=t||this,l=a.xPercent,c=a.yPercent,u=a.x,d=a.y,p=a.rotation,f=a.skewX,h=a.skewY,m=a.scaleX,v=a.scaleY,g=a.target,y=a.xOrigin,b=a.yOrigin,w=a.xOffset,S=a.yOffset,k=a.forceCSS,_=parseFloat(u),O=parseFloat(d);p=parseFloat(p),f=parseFloat(f),(h=parseFloat(h))&&(f+=h=parseFloat(h),p+=h),p||f?(p*=$n,f*=$n,n=Math.cos(p)*m,r=Math.sin(p)*m,o=Math.sin(p-f)*-v,i=Math.cos(p-f)*v,f&&(h*=$n,s=Math.tan(f-h),o*=s=Math.sqrt(1+s*s),i*=s,h&&(s=Math.tan(h),n*=s=Math.sqrt(1+s*s),r*=s)),n=be(n),r=be(r),o=be(o),i=be(i)):(n=m,i=v,r=o=0),(_&&!~(u+"").indexOf("px")||O&&!~(d+"").indexOf("px"))&&(_=Tr(g,"x",u,"px"),O=Tr(g,"y",d,"px")),(y||b||w||S)&&(_=be(_+y-(y*n+b*o)+w),O=be(O+b-(y*r+b*i)+S)),(l||c)&&(s=g.getBBox(),_=be(_+l/100*s.width),O=be(O+c/100*s.height)),s="matrix("+n+","+r+","+o+","+i+","+_+","+O+")",g.setAttribute("transform",s),k&&(g.style[ar]=s)},Kr=function(e,t,n,r,o){var i,s,a=360,l=L(o),c=parseFloat(o)*(l&&~o.indexOf("rad")?Hn:1)-r,u=r+c+"deg";return l&&("short"===(i=o.split("_")[1])&&(c%=a)!==c%180&&(c+=c<0?a:-360),"cw"===i&&c<0?c=(c+36e9)%a-~~(c/a)*a:"ccw"===i&&c>0&&(c=(c-36e9)%a-~~(c/a)*a)),e._pt=s=new yn(e._pt,t,n,r,c,qn),s.e=u,s.u="deg",e._props.push(n),s},qr=function(e,t){for(var n in t)e[n]=t[n];return e},Yr=function(e,t,n){var r,o,i,s,a,l,c,u=qr({},n._gsap),d=n.style;for(o in u.svg?(i=n.getAttribute("transform"),n.setAttribute("transform",""),d[ar]=t,r=Br(n,1),kr(n,ar),n.setAttribute("transform",i)):(i=getComputedStyle(n)[ar],d[ar]=t,r=Br(n,1),d[ar]=i),Un)(i=u[o])!==(s=r[o])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(o)<0&&(a=rt(i)!==(c=rt(s))?Tr(n,o,i,c):parseFloat(i),l=parseFloat(s),e._pt=new yn(e._pt,r,o,a,l-a,Kn),e._pt.u=c||0,e._props.push(o));qr(r,u)};ye("padding,margin,Width,Radius",function(e,t){var n="Top",r="Right",o="Bottom",i="Left",s=(t<3?[n,r,o,i]:[n+i,n+r,o+r,o+i]).map(function(n){return t<2?e+n:"border"+n+e});Lr[t>1?"border"+e:e]=function(e,t,n,r,o){var i,a;if(arguments.length<4)return i=s.map(function(t){return Ar(e,t,n)}),5===(a=i.join(" ")).split(i[0]).length?i[0]:a;i=(r+"").split(" "),a={},s.forEach(function(e,t){return a[e]=i[t]=i[t]||i[(t-1)/2|0]}),e.init(t,a,o)}});var Qr,Jr,Zr,eo={name:"css",register:gr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,o){var i,s,a,l,c,u,d,p,f,h,m,v,g,y,b,w,S,_=this._props,O=e.style,C=n.vars.startAt;for(d in Dn||gr(),this.styles=this.styles||pr(e),w=this.styles.props,this.tween=n,t)if("autoRound"!==d&&(s=t[d],!ue[d]||!Qt(d,t,n,r,e,o)))if(c=typeof s,u=Lr[d],"function"===c&&(c=typeof(s=s.call(n,r,e,o))),"string"===c&&~s.indexOf("random(")&&(s=mt(s)),u)u(this,e,d,s,n)&&(b=1);else if("--"===d.substr(0,2))i=(getComputedStyle(e).getPropertyValue(d)+"").trim(),s+="",Et.lastIndex=0,Et.test(i)||(p=rt(i),(f=rt(s))?p!==f&&(i=Tr(e,d,i,f)+f):p&&(s+=p)),this.add(O,"setProperty",i,s,r,o,0,0,d),_.push(d),w.push(d,0,O[d]);else if("undefined"!==c){if(C&&d in C?(i="function"==typeof C[d]?C[d].call(n,r,e,o):C[d],L(i)&&~i.indexOf("random(")&&(i=mt(i)),rt(i+"")||"auto"===i||(i+=k.units[d]||rt(Ar(e,d))||""),"="===(i+"").charAt(1)&&(i=Ar(e,d))):i=Ar(e,d),l=parseFloat(i),(h="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),d in Vn&&("autoAlpha"===d&&(1===l&&"hidden"===Ar(e,"visibility")&&a&&(l=0),w.push("visibility",0,O.visibility),_r(this,O,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==d&&"transform"!==d&&~(d=Vn[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Un){if(this.styles.save(d),S=s,"string"===c&&"var(--"===s.substring(0,6)){if("calc("===(s=hr(e,s.substring(4,s.indexOf(")")))).substring(0,5)){var T=e.style.perspective;e.style.perspective=s,s=hr(e,"perspective"),T?e.style.perspective=T:kr(e,"perspective")}a=parseFloat(s)}if(v||((g=e._gsap).renderTransform&&!t.parseTransform||Br(e,t.parseTransform),y=!1!==t.smoothOrigin&&g.smooth,(v=this._pt=new yn(this._pt,O,ar,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===d)this._pt=new yn(this._pt,g,"scaleY",g.scaleY,(h?Se(g.scaleY,h+a):a)-g.scaleY||0,Kn),this._pt.u=0,_.push("scaleY",d),d+="X";else{if("transformOrigin"===d){w.push(lr,0,O[lr]),s=Pr(s),g.svg?Fr(e,s,0,y,0,this):((f=parseFloat(s.split(" ")[2])||0)!==g.zOrigin&&_r(this,g,"zOrigin",g.zOrigin,f),_r(this,O,d,Ur(i),Ur(s)));continue}if("svgOrigin"===d){Fr(e,s,1,y,0,this);continue}if(d in Mr){Kr(this,g,d,l,h?Se(l,h+s):s);continue}if("smoothOrigin"===d){_r(this,g,"smooth",g.smooth,s);continue}if("force3D"===d){g[d]=s;continue}if("transform"===d){Yr(this,s,e);continue}}}else d in O||(d=vr(d)||d);if(m||(a||0===a)&&(l||0===l)&&!Xn.test(s)&&d in O)a||(a=0),(p=(i+"").substr((l+"").length))!==(f=rt(s)||(d in k.units?k.units[d]:p
2))&&(l=Tr(e,d,i,f)),this._pt=new yn(this._pt,m?g:O,d,l,(h?Se(l,h+a):a)-l,m||"px"!==f&&"zIndex"!==d||!1===t.autoRound?Kn:Jn),this._pt.u=f||0,m&&S!==s?(this._pt.b=i,this._pt.e=S,this._pt.r=Qn):p!==f&&"%"!==f&&(this._pt.b=i,this._pt.r=Yn);else if(d in O)Er.call(this,e,d,i,h?h+s:s);else if(d in e)this.add(e,d,i||e[d],h?h+s:s,r,o);else if("parseTransform"!==d){ee(d,s);continue}m||(d in O?w.push(d,0,O[d]):"function"==typeof e[d]?w.push(d,2,e[d]()):w.push(d,1,i||e[d])),_.push(d)}b&&gn(this)},render:function(e,t){if(t.tween._time||!Fn())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Ar,aliases:Vn,getSetter:function(e,t,n){var r=Vn[t];return r&&r.indexOf(",")<0&&(t=r),t in Un&&t!==lr&&(e._gsap.x||Ar(e,"x"))?n&&Nn===n?"scale"===t?or:rr:(Nn=n||{})&&("scale"===t?ir:sr):e.style&&!D(e.style[t])?tr:~t.indexOf("-")?nr:cn(e,t)},core:{_removeProperty:kr,_getMatrix:Nr}};In.utils.checkPrefix=vr,In.core.getStyleSaver=pr,Zr=ye((Qr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Jr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){Un[e]=1}),ye(Jr,function(e){k.units[e]="deg",Mr[e]=1}),Vn[Zr[13]]=Qr+","+Jr,ye("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");Vn[t[1]]=Zr[t[0]]}),ye("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){k.units[e]="px"}),In.registerPlugin(eo);var to=In.registerPlugin(eo)||In;to.core.Tween},61586(e,t,n){var r,o;!function(){"use strict";var i,s={};s.VERSION="1.6.1";var a={},l=function(e,t){return function(){return t.apply(e,arguments)}},c=function(){var e,t,n=arguments,r=n[0];for(t=1;t<n.length;t++)for(e in n[t])!(e in r)&&n[t].hasOwnProperty(e)&&(r[e]=n[t][e]);return r},u=function(e,t){return{value:e,name:t}};s.TRACE=u(1,"TRACE"),s.DEBUG=u(2,"DEBUG"),s.INFO=u(3,"INFO"),s.TIME=u(4,"TIME"),s.WARN=u(5,"WARN"),s.ERROR=u(8,"ERROR"),s.OFF=u(99,"OFF");var d=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};d.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},getLevel:function(){return this.context.filterLevel},enabledFor:function(e){var t=this.context.filterLevel;return e.value>=t.value},trace:function(){this.invoke(s.TRACE,arguments)},debug:function(){this.invoke(s.DEBUG,arguments)},info:function(){this.invoke(s.INFO,arguments)},warn:function(){this.invoke(s.WARN,arguments)},error:function(){this.invoke(s.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(s.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(s.TIME,[e,"end"])},invoke:function(e,t){i&&this.enabledFor(e)&&i(t,c({level:e},this.context))}};var p,f=new d({filterLevel:s.OFF});(p=s).enabledFor=l(f,f.enabledFor),p.trace=l(f,f.trace),p.debug=l(f,f.debug),p.time=l(f,f.time),p.timeEnd=l(f,f.timeEnd),p.info=l(f,f.info),p.warn=l(f,f.warn),p.error=l(f,f.error),p.log=p.info,s.setHandler=function(e){i=e},s.setLevel=function(e){for(var t in f.setLevel(e),a)a.hasOwnProperty(t)&&a[t].setLevel(e)},s.getLevel=function(){return f.getLevel()},s.get=function(e){return a[e]||(a[e]=new d(c({name:e},f.context)))},s.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,t){t.name&&e.unshift("["+t.name+"]")};var t={},n=function(e,t){Function.prototype.apply.call(e,console,t)};return"undefined"==typeof console?function(){}:function(r,o){r=Array.prototype.slice.call(r);var i,a=console.log;o.level===s.TIME?(i=(o.name?"["+o.name+"] ":"")+r[0],"start"===r[1]?console.time?console.time(i):t[i]=(new Date).getTime():console.timeEnd?console.timeEnd(i):n(a,[i+": "+((new Date).getTime()-t[i])+"ms"])):(o.level===s.WARN&&console.warn?a=console.warn:o.level===s.ERROR&&console.error?a=console.error:o.level===s.INFO&&console.info?a=console.info:o.level===s.DEBUG&&console.debug?a=console.debug:o.level===s.TRACE&&console.trace&&(a=console.trace),e.formatter(r,o),n(a,r))}},s.useDefaults=function(e){s.setLevel(e&&e.defaultLevel||s.DEBUG),s.setHandler(s.createDefaultHandler(e))},s.setDefaults=s.useDefaults,void 0===(o="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=o)}()}
vendor: 4,154 bytes, line 2
2,49205(e,t,n){"use strict";function r(e){return getComputedStyle(e)}function o(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function i(e){var t=document.createElement("div");return t.className=e,t}n.d(t,{A:()=>P});var s="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function a(e,t){if(!s)throw new Error("No element matching method supported");return s.call(e,t)}function l(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function c(e,t){return Array.prototype.filter.call(e.children,function(e){return a(e,t)})}var u="ps",d="ps__rtl",p={thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},f={focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}},h={x:null,y:null};function m(e,t){var n=e.element.classList,r=f.scrolling(t);n.contains(r)?clearTimeout(h[t]):n.add(r)}function v(e,t){h[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(f.scrolling(t))},e.settings.scrollingThreshold)}var g=function(e){this.element=e,this.handlers={}},y={isEmpty:{configurable:!0}};g.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},g.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)})},g.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},y.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(g.prototype,y);var b=function(){this.eventElements=[]};function w(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function S(e,t,n,r,o){var i;if(void 0===r&&(r=!0),void 0===o&&(o=!1),"top"===t)i=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");i=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,o){var i=n[0],s=n[1],a=n[2],l=n[3],c=n[4],u=n[5];void 0===r&&(r=!0);void 0===o&&(o=!1);var d=e.element;e.reach[l]=null,d[a]<1&&(e.reach[l]="start");d[a]>e[i]-e[s]-1&&(e.reach[l]="end");t&&(d.dispatchEvent(w("ps-scroll-"+l)),t<0?d.dispatchEvent(w("ps-scroll-"+c)):t>0&&d.dispatchEvent(w("ps-scroll-"+u)),r&&function(e,t){m(e,t),v(e,t)}(e,l));e.reach[l]&&(t||o)&&d.dispatchEvent(w("ps-"+l+"-reach-"+e.reach[l]))}(e,n,i,r,o)}function k(e){return parseInt(e,10)||0}b.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new g(e),this.eventElements.push(t)),t},b.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},b.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},b.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},b.prototype.once=function(e,t,n){var r=this.eventElement(e),o=function(e){r.unbind(t,o),n(e)};r.bind(t,o)};var _={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function O(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.floor(r.width),e.containerHeight=Math.floor(r.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(c(t,p.rail("x")).forEac
vendor: 13,018 bytes, line 2
2h(function(e){return l(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(c(t,p.rail("y")).forEach(function(e){return l(e)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=C(e,k(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=k((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=C(e,k(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=k(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r;o(t.scrollbarXRail,n);var i={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:i.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+e.scrollLeft;o(t.scrollbarYRail,i),o(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),o(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(f.active("x")):(t.classList.remove(f.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(f.active("y")):(t.classList.remove(f.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function C(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}var T=null;function A(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],c=t[7],u=t[8],d=e.element,p=null,h=null,g=null;function y(t){t.touches&&t.touches[0]&&(t[o]=t.touches[0]["page"+c.toUpperCase()]),T===s&&(d[l]=p+g*(t[o]-h),m(e,c),O(e),t.stopPropagation(),t.preventDefault())}function b(){v(e,c),e[u].classList.remove(f.clicking),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",b),T=null}function w(t){null===T&&(T=s,p=d[l],t.touches&&(t[o]=t.touches[0]["page"+c.toUpperCase()]),h=t[o],g=(e[r]-e[n])/(e[i]-e[a]),t.touches?(document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",b)):(document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)),e[u].classList.add(f.clicking)),t.stopPropagation(),t.cancelable&&t.preventDefault()}e[s].addEventListener("mousedown",w),e[s].addEventListener("touchstart",w)}var E={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,O(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,O(e),t.stopPropagation()})},"drag-thumb":function(e){A(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),A(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(a(t,":hover")||a(e.scrollbarX,":focus")||a(e.scrollbarY,":focus"))){var r,o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(a(r=o,"input,[contenteditable]")||a(r,"select,[contenteditable]")||a(r,"textarea,[contenteditable]")||a(r,"button,[contenteditable]"))return}var i=0,s=0;switch(n.which){case 37:i=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:s=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:i=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:s=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:s=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:s=e.containerHeight;break;case 34:s=-e.containerHeight;break;case 36:s=e.contentHeight;break;case 35:s=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==i||e.settings.suppressScrollY&&0!==s||(t.scrollTop-=s,t.scrollLeft+=i,O(e),function(n,r){var o=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===o&&r>0||o>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var i=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===i&&n<0||i>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(i,s)&&n.preventDefault())}})},wheel:function(e){var t=e.element;function n(n){var o=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),i=o[0],s=o[1];if(!function(e,n,o){if(!_.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(p.consuming))return!0;var s=r(i);if(o&&s.overflowY.match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&(i.scrollTop>0&&o<0||i.scrollTop<a&&o>0))return!0}if(n&&s.overflowX.match(/(scroll|auto)/)){var l=i.scrollWidth-i.clientWidth;if(l>0&&(i.scrollLeft>0&&n<0||i.scrollLeft<l&&n>0))return!0}i=i.parentNode}return!1}(n.target,i,s)){var a=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(s?t.scrollTop-=s*e.settings.wheelSpeed:t.scrollTop+=i*e.settings.wheelSpeed,a=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(i?t.scrollLeft+=i*e.settings.wheelSpeed:t.scrollLeft-=s*e.settings.wheelSpeed,a=!0):(t.scrollTop-=s*e.settings.wheelSpeed,t.scrollLeft+=i*e.settings.wheelSpeed),O(e),a=a||function(n,r){var o=Math.floor(t.scrollTop),i=0===t.scrollTop,s=o+t.offsetHeight===t.scrollHeight,a=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(r)>Math.abs(n)?i||s:a||l)||!e.settings.wheelPropagation}(i,s),a&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(_.supportsTouch||_.supportsIePointer){var t=e.element,n={startOffset:{},startTime:0,speed:{},easingLoop:null};_.supportsTouch?(e.event.bind(t,"touchstart",a),e.event.bind(t,"touchmove",l),e.event.bind(t,"touchend",c)):_.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",a),e.event.bind(t,"pointermove",l),e.event.bind(t,"pointerup",c)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",a),e.event.bind(t,"MSPointerMove",l),e.event.bind(t,"MSPointerUp",c)))}function o(n,r){t.scrollTop-=r,t.scrollLeft-=n,O(e)}function i(e){return e.targetTouches?e.targetTouches[0]:e}function s(t){return t.target!==e.scrollbarX&&t.target!==e.scrollbarY&&((!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)))}function a(e){if(s(e)){var t=i(e);n.startOffset.pageX=t.pageX,n.startOffset.pageY=t.pageY,n.startTime=(new Date).getTime(),null!==n.easingLoop&&clearInterval(n.easingLoop)}}function l(a){if(s(a)){var l=i(a),c={pageX:l.pageX,pageY:l.pageY},u=c.pageX-n.startOffset.pageX,d=c.pageY-n.startOffset.pageY;if(function(e,n,o){if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(p.consuming))return!0;var s=r(i);if(o&&s.overflowY.match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&(i.scrollTop>0&&o<0||i.scrollTop<a&&o>0))return!0}if(n&&s.overflowX.match(/(scroll|auto)/)){var l=i.scrollWidth-i.clientWidth;if(l>0&&(i.scrollLeft>0&&n<0||i.scrollLeft<l&&n>0))return!0}i=i.parentNode}return!1}(a.target,u,d))return;o(u,d),n.startOffset=c;var f=(new Date).getTime(),h=f-n.startTime;h>0&&(n.speed.x=u/h,n.speed.y=d/h,n.startTime=f),function(n,r){var o=Math.floor(t.scrollTop),i=t.scrollLeft,s=Math.abs(n),a=Math.abs(r);if(a>s){if(r<0&&o===e.contentHeight-e.containerHeight||r>0&&0===o)return 0===window.scrollY&&r>0&&_.isChrome}else if(s>a&&(n<0&&i===e.contentWidth-e.containerWidth||n>0&&0===i))return!0;return!0}(u,d)&&a.cancelable&&a.preventDefault()}}function c(){e.settings.swipeEasing&&(clearInterval(n.easingLoop),n.easingLoop=setInterval(function(){e.isInitialized?clearInterval(n.easingLoop):n.speed.x||n.speed.y?Math.abs(n.speed.x)<.01&&Math.abs(n.speed.y)<.01?clearInterval(n.easingLoop):(o(30*n.speed.x,30*n.speed.y),n.speed.x*=.8,n.speed.y*=.8):clearInterval(n.easingLoop)},10))}}},x=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var s in this.element=e,e.classList.add(u),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[s]=t[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a,l,c=function(){return e.classList.add(f.focus)},h=function(){return e.classList.remove(f.focus)};this.isRtl="rtl"===r(e).direction,!0===this.isRtl&&e.classList.add(d),this.isNegativeScroll=(l=e.scrollLeft,e.scrollLeft=-1,a=e.scrollLeft<0,e.scrollLeft=l,a),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new b,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=i(p.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=i(p.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",c),this.event.bind(this.scrollbarX,"blur",h),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var m=r(this.scrollbarXRail);this.scrollbarXBottom=parseInt(m.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=k(m.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=k(m.borderLeftWidth)+k(m.borderRightWidth),o(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=k(m.marginLeft)+k(m.marginRight),o(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(p.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=i(p.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",c),this.event.bind(this.scrollbarY,"blur",h),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var v=r(this.scrollbarYRail);this.scrollbarYRight=parseInt(v.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=k(v.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=r(e);return k(t.width)+k(t.paddingLeft)+k(t.paddingRight)+k(t.borderLeftWidth)+k(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=k(v.borderTopWidth)+k(v.borderBottomWidth),o(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=k(v.marginTop)+k(v.marginBottom),o(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null}
2,this.isAlive=!0,this.settings.handlers.forEach(function(e){return E[e](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(e){return n.onScroll(e)}),O(this)};x.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,o(this.scrollbarXRail,{display:"block"}),o(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=k(r(this.scrollbarXRail).marginLeft)+k(r(this.scrollbarXRail).marginRight),this.railYMarginHeight=k(r(this.scrollbarYRail).marginTop)+k(r(this.scrollbarYRail).marginBottom),o(this.scrollbarXRail,{display:"none"}),o(this.scrollbarYRail,{display:"none"}),O(this),S(this,"top",0,!1,!0),S(this,"left",0,!1,!0),o(this.scrollbarXRail,{display:""}),o(this.scrollbarYRail,{display:""}))},x.prototype.onScroll=function(e){this.isAlive&&(O(this),S(this,"top",this.element.scrollTop-this.lastScrollTop),S(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},x.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},x.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};const P=x},65606(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},81659(e){var t,n;t={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax",partitioned:""},n={install:function(e,t){t&&this.config(t.expires,t.path,t.domain,t.secure,t.sameSite,t.partitioned);const n=e.config&&e.config.globalProperties;n&&(e.config.globalProperties.$cookies=this,e.provide&&e.provide("$cookies",this)),n&&!e.prototype||(e.prototype.$cookies=this),e.$cookies=this},config:function(e,n,r,o,i,s){t.expires=e||"1d",t.path=n?"; path="+n:"; path=/",t.domain=r?"; domain="+r:"",t.secure=o?"; Secure":"",t.sameSite=i?"; SameSite="+i:"; SameSite=Lax",t.partitioned=s?"; Partitioned":""},get:function(e){var t=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(t&&("{"===t.substring(0,1)&&"}
2"===t.substring(t.length-1,t.length)||"["===t.substring(0,1)&&"]"===t.substring(t.length-1,t.length)))try{t=JSON.parse(t)}catch(e){return t}return t},set:function(e,n,r,o,i,s,a,l){if(!e)throw new Error("Cookie name is not found in the first argument.");if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(e))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"]\t current key name: '+e);n&&"object"==typeof n&&(n=JSON.stringify(n));var c="";if((r=void 0===r?t.expires:r)&&0!==r)switch(r.constructor){case Number:c=r===1/0||-1===r?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(r)){var u=r.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(r.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":c="; max-age="+2592e3*+u;break;case"d":c="; max-age="+86400*+u;break;case"h":c="; max-age="+3600*+u;break;case"min":c="; max-age="+60*+u;break;case"s":c="; max-age="+u;break;case"y":c="; max-age="+31104e3*+u;break;default:new Error('unknown exception of "set operation"')}}else c="; expires="+r;break;case Date:c="; expires="+r.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+c+(i?"; domain="+i:t.domain)+(o?"; path="+o:t.path)+(void 0===s?t.secure:s?"; Secure":"")+(void 0===a?t.sameSite:a?"; SameSite="+a:"")+(void 0===l?t.partitioned:l?"; Partitioned":""),this},remove:function(e,n,r){return!(!e||!this.isKey(e)||(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(r?"; domain="+r:t.domain)+(n?"; path="+n:t.path)+"; SameSite=Lax",0))},isKey:function(e){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=0;t<e.length;t++)e[t]=decodeURIComponent(e[t]);return e}},e.exports=n,"undefined"!=typeof window&&(window.$cookies=n)},97073(e,t,n){"use strict";n.d(t,{Ay:()=>L,JR:()=>O,f0:()=>_});var r=n(90033),o=n(20641);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];if(!o.length)return t;var a=o.shift();if((0,r.Qd)(t)&&(0,r.Qd)(a)){for(var l in a)(0,r.Qd)(a[l])?(t[l]||Object.assign(t,i({},l,{})),e(t[l],a[l])):Object.assign(t,i({},l,a[l]));return e.apply(void 0,[t].concat(o))}},c=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},u=function(e){c()};function d(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),n=e.split("/");return""===t[0]&&"/"===e[e.length-1]&&t.shift(),n.join("/")+t.join("/")}var p,f={},h=function(){f=l({bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},m=function(){return f},v=function(){var e,t=m().globalObjectName;c()&&void 0!==window[t]&&(e=window)[t].apply(e,arguments)},g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=m(),o=r.config,i=r.includes;v.apply(void 0,["config",o.id].concat(t)),Array.isArray(i)&&i.forEac
2h(function(e){v.apply(void 0,["config",e.id].concat(t))})},y=function(e,t){c()&&(window["ga-disable-".concat(e)]=t)},b=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=m(),n=t.config,r=t.includes;y(n.id,e),Array.isArray(r)&&r.forEach(function(t){return y(t.id,e)})},w=function(){b(!0)},S=function(e){p=e},k=function(){return p},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(),r=n.includes,o=n.defaultGroupName;null==t.send_to&&Array.isArray(r)&&r.length&&(t.send_to=r.map(function(e){return e.id}).concat(o)),v("event",e,t)},O=function(e){if(c()){var t;if("string"==typeof e)t={page_path:e};else if(e.path||e.fullPath){var n=m(),r=n.pageTrackerUseFullPath,o=n.pageTrackerPrependBase,i=k(),s=i&&i.options.base,l=r?e.fullPath:e.path;t=a(a({},e.name&&{page_title:e.name}),{},{page_path:o?d(l,s):l})}else t=e;null==t.page_location&&(t.page_location=window.location.href),null==t.send_page_view&&(t.send_page_view=!0),_("page_view",t)}},C=function(e){var t,n=m().appName;e&&((t="string"==typeof e?{screen_name:e}:e).app_name=t.app_name||n,_("screen_view",t))},T=Object.freeze({__proto__:null,query:v,config:g,optOut:w,optIn:function(){b(!1)},pageview:O,screenview:C,exception:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_.apply(void 0,["exception"].concat(t))},linker:function(e){g("linker",e)},time:function(e){_("timing_complete",e)},set:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];v.apply(void 0,["set"].concat(t))},refund:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_.apply(void 0,["refund"].concat(t))},purchase:function(e){_("purchase",e)},customMap:function(e){g({custom_map:e})},event:_}),A=function(e){return a({send_page_view:!1},e)},E=function(){var e=m(),t=e.config,n=e.includes;v("config",t.id,A(t.params)),Array.isArray(n)&&n.forEach(function(e){v("config",e.id,A(e.params))})},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(),o=n.appName,i=n.pageTrackerTemplate,s=n.pageTrackerScreenviewEnabled;if(!n.pageTrackerSkipSamePath||e.path!==t.path){var a=e;(0,r.Tn)(i)?a=i(e,t):s&&(a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u('Missing "appName" property inside the plugin options.',null==e.app_name),u('Missing "name" property in the route.',null==e.screen_name),e}({app_name:o,screen_name:e.name})),s?C(a):O(a)}},P=function(e){var t=m().pageTrackerExcludedRoutes;return t.includes(e.path)||t.includes(e.name)},I=function(){var e=m(),t=e.onReady,n=e.onError,i=e.globalObjectName,s=e.globalDataLayerName,a=e.config,l=e.customResourceURL,u=e.customPreconnectOrigin,d=e.deferScriptLoad,p=e.pageTrackerEnabled,f=e.disableScriptLoad,h=Boolean(p&&k());if(function(){if(c()){var e=m(),t=e.enabled,n=e.globalObjectName,r=e.globalDataLayerName;null==window[n]&&(window[r]=window[r]||[],window[n]=function(){window[r].push(arguments)}),window[n]("js",new Date),t||w(),window[n]}}(),h?function(){var e=m(),t=e.onBeforeTrack,n=e.onAfterTrack,i=k();i.isReady().then(function(){(0,o.dY)().then(function(){var e=i.currentRoute;E(),P(e.value)||x(e.value)}),i.afterEach(function(e,i){(0,o.dY)().then(function(){P(e)||((0,r.Tn)(t)&&t(e,i),x(e,i),(0,r.Tn)(n)&&n(e,i))})})})}():E(),!f)return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,r){if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");if(i.async=!0,i.src=e,i.defer=t.defer,t.preconnectOrigin){var s=document.createElement("link");s.href=t.preconnectOrigin,s.rel="preconnect",o.appendChild(s)}o.appendChild(i),i.onload=n,i.onerror=r}})}("".concat(l,"?id=").concat(a.id,"&l=").concat(s),{preconnectOrigin:u,defer:d}).then(function(){t&&t(window[i])}).catch(function(e){return n&&n(e),e})};const L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;!function(e){e.config.globalProperties.$gtag=T}(e),h(t),S(n),m().bootstrap&&I()}},66262(e,t){"use strict";t.A=(e,t)=>
2{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},36193(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(20641),o=n(90033),i=n(53751),s={class:"alert-message-container"},a={class:"info-icon"},l=["innerHTML"],c={class:"button-container"},u={class:"close-icon"};var d=n(5412),p=n(46335);const f={name:"alert-message",components:{TertiaryButton:n(1868).A,Icon:p.A,Cta:d.A},mounted:function(){var e=this;this.$store.state.alertMessage.show&&setTimeout(function(){e.hideAlert()},1e3*this.$store.state.alertMessage.interval),this.$nextTick(function(){var t;e.hasThisMessage("Linked section")&&e.$store.commit("scrollToSection",{sectionId:null===(t=e.$store.state.selectedSection)||void 0===t?void 0:t._id})})},watch:{$route:function(e,t){this.hideAlert()}},computed:{getInfoIcon:function(){return"success"===this.$store.state.alertMessage.type?"check":"info"}},methods:{onClick:function(){this.hasThisMessage("global spacing")&&this.$store.commit("openSidePanel",{panelPath:"style/spacing"}),this.hasThisMessage("Linked section")&&(this.$store.state.activeModal="UpdateProcessStepModal"),this.hasThisMessage("portfolio is live")&&this.$store.commit("openSidePanel",{panelPath:"settings/domain-and-url"}),this.hideAlert()},hideAlert:function(){this.$store.commit("showAlertMessage",{show:!1,message:null,interval:null})},hasThisMessage:function(e){return this.$store.state.alertMessage&&this.$store.state.alertMessage.message&&this.$store.state.alertMessage.message.includes(e)}}};const h=(0,n(66262).A)(f,[["render",function(e,t,n,d,p,f){var h=(0,r.g2)("Icon"),m=(0,r.g2)("TertiaryButton");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["update-status-alert",e.$store.state.alertMessage.type]),onClick:t[0]||(t[0]=(0,i.withModifiers)(function(e){return f.onClick()},["stop"]))},[(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.bF)(h,{"icon-name":f.getInfoIcon},null,8,["icon-name"])]),(0,r.Lk)("div",{class:"alert-message",innerHTML:e.$store.state.alertMessage.message},null,8,l),(0,r.Lk)("div",c,[f.hasThisMessage("global spacing")?((0,r.uX)(),(0,r.Wv)(m,{key:0,"dark-scheme":"",text:"Learn more"})):(0,r.Q3)("v-if",!0),f.hasThisMessage("Linked section")?((0,r.uX)(),(0,r.Wv)(m,{key:1,"dark-scheme":"",text:"Relink process step "+e.$store.state.selectedNavStep+1},null,8,["text"])):(0,r.Q3)("v-if",!0),f.hasThisMessage("portfolio is live")?((0,r.uX)(),(0,r.Wv)(m,{key:2,"dark-scheme":"",text:"Manage domains"})):(0,r.Q3)("v-if",!0)]),(0,r.Lk)("div",u,[(0,r.bF)(h,{"icon-name":"close"})])])],2)}],["__scopeId","data-v-5b4462b4"]])},95771(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(90033),i={class:"landing coming-soon"},s={class:"page-content"},a={class:"ufo--container"};const l={name:"coming-soon",props:["type"],components:{Header:n(6290).A},mounted:function(){var e=this.getTheme()||this.getMediaPreference();this.setMode(e)},methods:{setMode:function(e){try{var t;null===(t=window.localStorage)||void 0===t||t.setItem("uxfolio-user-theme",e)}catch(e){}document.documentElement.className=e,this.$store.commit("view/updateActiveMode",e)},getMediaPreference:function(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-mode":"light-mode"},getTheme:function(){try{var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem("uxfolio-user-theme")}catch(e){return null}}},computed:{}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,l,c,u){var d=(0,r.g2)("Header");return(0,r.uX)(),(0,r.CE)("main",i,[(0,r.bF)(d,{class:"soon","coming-soon":""}),(0,r.Lk)("section",s,[(0,r.Lk)("div",a,[t[0]||(t[0]=(0,r.Lk)("h1",null,"Coming soon",-1)),(0,r.Lk)("h2",null,"This "+(0,o.v_)(n.type)+" has not been published yet. Come back later to view it!",1)])])])}],["__scopeId","data-v-cf98f77e"]])},17881(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(20641);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s={class:"confirmation-modal"};var a=n(5412),l=n(79271),c=n(8851),u=n(55445);const d={name:"confirmation-modal",components:{ModalFooter:n(13124).A,ModalBody:u.A,ModalHeader:c.A,ModalWrapper:l.A,Cta:a.A}
2,props:["show","modal-size","title"],methods:{emitPrimaryAction:function(){this.$emit("action",!0)},closeModal:function(){this.$emit("close",!0)}}};const p=(0,n(66262).A)(d,[["render",function(e,t,n,i,a,l){var c=(0,r.g2)("ModalHeader"),u=(0,r.g2)("ModalBody"),d=(0,r.g2)("cta"),p=(0,r.g2)("ModalFooter"),f=(0,r.g2)("ModalWrapper");return(0,r.uX)(),(0,r.Wv)(f,{"dark-scheme":"",show:n.show,"modal-size":"small",onClose:t[2]||(t[2]=function(t){return e.$emit("close")})},{"modal-header":(0,r.k6)(function(){return[(0,r.bF)(c,{"dark-scheme":"",title:n.title},null,8,["title"])]}),"modal-body":(0,r.k6)(function(){return[(0,r.bF)(u,null,{default:(0,r.k6)(function(){return[(0,r.Lk)("div",s,[(0,r.RG)(e.$slots,"content")])]}),_:3})]}),"modal-footer":(0,r.k6)(function(){return[(0,r.bF)(p,null,{default:(0,r.k6)(function(){return[(0,r.bF)(d,{"dark-scheme":"",type:"secondary",onClick:t[0]||(t[0]=function(t){return e.$emit("close")})},{default:(0,r.k6)(function(){return o(t[3]||(t[3]=[(0,r.eW)("Cancel",-1)]))}),_:1}),(0,r.bF)(d,{"dark-scheme":"",type:"alert",onClick:t[1]||(t[1]=function(e){return l.emitPrimaryAction()})},{default:(0,r.k6)(function(){return[(0,r.RG)(e.$slots,"primaryButtonLabel",{},function(){return[t[4]||(t[4]=(0,r.eW)("Delete",-1))]})]}),_:3})]}),_:3})]}),_:3},8,["show"])}]])},46335(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(20641);const o={name:"icon",components:{InlineSvg:n(34528).A},props:{iconName:{type:String,default:"text"},width:{type:Number,default:null},height:{type:Number,default:null}},methods:{getIcon:function(e){switch(e){case"add-button":return n(32658);case"add-link":return n(88618);case"add-media":return n(2018);case"add-page":return n(57559);case"add-text":return n(31455);case"add-testimonial":return n(47967);case"remove-testimonial":return n(89114);case"brush":case"designer":return n(95988);case"col-add":return n(5752);case"col-remove":return n(64331);case"context-menu":return n(41643);case"corner-radius":return n(74937);case"crop":case"crop-active":case"crop-white":return n(35894);case"delete":return n(76221);case"desktop":return n(79796);case"down":case"down-arrow":case"arrow-down":case"down-gray":return n(35696);case"drag":case"rearrange":return n(94706);case"animated-text-layout-wave":case"animated-text-divider-wave":return n(28812);case"animated-text-divider-off":return n(73598);case"animated-text-layout-linear":return n(37465);case"animated-text-layout-wavy":return n(62621);case"animated-text-divider-arrow":return n(30810);case"animated-text-divider-sparkle":return n(51703);case"animated-text-divider-star":return n(17763);case"animated-text-interaction-slow-down":case"type-selector-animated-text-hover-SLOW_DOWN":return n(45529);case"type-selector-animated-text-overflow-FULL_WIDTH":return n(83866);case"type-selector-animated-text-overflow-CLIPPED":return n(95095);case"type-selector-animated-text-overflow-FADED":return n(32096);case"type-selector-animated-text-hover-NONE":case"hover-interaction-none":case"type-selector-hover-interaction-NONE":return n(11832);case"type-selector-animated-text-hover-PAUSE":return n(41212);case"type-selector-animated-text-click-NONE":return n(2980);case"type-selector-animated-text-click-OPEN_LINK":return n(32043);case"type-selector-animated-text-click-NAVIGATE_TO_PAGE":return n(79341);case"edit-logo":return n(26984);case"edit-pages":return n(40375);case"effects":case"effects-active":return n(38230);case"email-settings":return n(31050);case"flip":return n(91597);case"global-spacing":return n(50685);case"spacer-top":return n(1162);case"spacer-bottom":return n(13584);case"idea":return n(84813);case"image-bi-cover":return n(77517);case"image-bottom-align":return n(85125);case"image-display":return n(47094);case"image-display-mode":return n(97470);case"image-fit":return n(50297);case"image-fit-margin":return n(53876);case"image-it-large":return n(90649);case"image-it-medium":return n(11009);case"image-it-small":return n(51249);case"image-large":return n(53441);case"image-medium":return n(95897);case"image-null":case"disabled":case"not-allowed":case"no-mockup":return n(42427);case"image-small":return n(64697);case"layout":case"layout-active":return n(35398);case"card-layout-row-2":return n(54114);case"card-layout-row-3":return n(57843);case"card-layout-grid-2x2":return n(42712);case"card-layout-grid-3x2":return n(23121);case"left":case"arrow-left":return n(80095);case"lock":return n(73929);case"password-lock":return n(69732);case"safari-lock":return n(34053);case"unlock":return n(28352);case"mobile":return n(74458);case"mockups":case"mockups-active":return n(52324);case"remove-mockup":return n(88208);case"nav-background-fill":return n(6634);case"nav-font-color":return n(57625);case"pages":return n(31940);case"page":return n(12408);case"password":return n(24479);case"remove-media":return n(99095);case"remove-page":return n(79792);case"remove-thumbnail":return n(96651);case"reorder-arrows":return n(22181);case"replace":return n(48476);case"resize":return n(67516);case"right":case"arrow-right":return n(6266);case"arrow-horizontal":return n(59946);case"rotate":case"rotate-mockup":return n(17475);case"change-background":case"set-background":case"image-cover":return n(83453);case"set-default-portfolio":return n(23931);case"settings":case"settings-light":return n(59171);case"social-link":case"social-links":return n(52687);case"space-decrease":return n(94251);case"space-increase":return n(54007);
2case"design":case"style":return n(88195);case"success":return n(15581);case"tablet":return n(62596);case"thumbnail-layout":return n(69367);case"thumbnails":return n(69107);case"up":case"arrow-up":return n(54595);case"arrow-out":return n(4082);case"change-image":case"change-image-active":case"upload":return n(17407);case"history":return n(6692);case"history-clock":return n(54173);case"filters":return n(87229);case"add":return n(94946);case"subtract":return n(20549);case"add-case-study-gradient":return n(96296);case"arrows":return n(43083);case"back":return n(60908);case"check":case"checkmark":case"ok":return n(35936);case"chevron-down":return n(84190);case"chevron-left":return n(89109);case"chevron-right":return n(86040);case"chevron-up":return n(93077);case"copy":case"duplicate":return n(582);case"draft":return n(15338);case"caret-down":case"dropdown-select":return n(69183);case"dark":return n(11105);case"figma-mono":return n(9245);case"favicon":return n(18623);case"folder":return n(92821);case"font-size-icon":return n(5502);case"globe":return n(74136);case"hidden":case"notvisible":return n(77857);case"hidden-gradient":return n(75802);case"info":return n(45285);case"italic":return n(63813);case"key":return n(18454);case"light":return n(82247);case"line-height-icon":return n(13169);case"minus":return n(1859);case"navigation":return n(87263);case"presentation":return n(95057);case"public":return n(11466);case"publish":return n(84574);case"replay":return n(9244);case"unpublish":return n(43125);case"restart":case"redo":return n(98950);case"review":return n(1625);case"share":return n(81878);case"visible":case"preview":return n(84629);case"no-index":return n(69023);case"notification":return n(66236);case"gift":return n(58743);case"paste":return n(45840);case"payment":return n(50501);case"profile":return n(59852);case"reorder":return n(35910);case"tools":return n(92726);case"warning":return n(51839);case"web":return n(99929);case"discount":return n(71460);case"percent-discount":return n(51392);case"thumbs-up":return n(31965);case"thumbs-down":return n(16294);case"alt":return n(35625);case"x":case"close":case"close-light":return n(36201);case"done":return n(47342);case"edit":return n(99010);case"edit-link":return n(71487);case"remove-colors":return n(79095);case"style-thick":return n(4045);case"text-bold":return n(52477);case"text-center":return n(59879);case"text-format-remove":return n(70118);case"text-h":return n(75620);case"text-h1":return n(47709);case"text-h2":return n(1438);case"text-h3":return n(21487);case"text-h4":return n(27696);case"text-italic":return n(43604);case"text-left":return n(38239);case"link":case"text-link":return n(42196);case"text-ol":return n(52533);case"text-p":return n(16412);case"text-p1":return n(20485);case"text-p2":return n(88710);case"text-quote":return n(20608);case"text-right":return n(50938);case"text-ul":return n(92567);case"text-underline":return n(65648);case"unlink":case"text-unlink":return n(94281);case"crop_1_1":return n(58547);case"crop_2_3":return n(35638);case"crop_3_2":return n(21278);case"crop_4_5":return n(99682);case"crop_5_4":return n(41898);case"crop_9_16":return n(3119);case"crop_16_9":return n(56807);case"crop_circle":return n(27462);case"crop_custom":return n(26419);case"crop_original":return n(86675);case"aspect-ratio-1_1":return n(74130);case"aspect-ratio-3_4":return n(11793);case"aspect-ratio-4_3":return n(6733);case"aspect-ratio-9_16":return n(50856);case"aspect-ratio-16_9":return n(23876);case"aspect-ratio-Original":return n(20368);case"gallery-arrow-left":return n(53859);case"gallery-arrow-right":return n(72198);case"colorScheme-dark":return n(23338);case"colorScheme-light":return n(94322);case"settings-notch":return n(31298);case"settings-island":return n(72971);case"settings-simple":return n(87162);case"settings-rounded":case"mockupType-minimal":return n(79447);case"settings-squared":return n(53047);case"shadow-no-shadow":return n(25371);case"shadow-shadow":return n(50699);case"mockupType-browser":return n(86260);case"mockupType-outline":return n(85510);case"mockupType-semirealistic":return n(50037);case"mockupType-realistic":return n(16436);case"mockupType-simple":return n(41850);case"deviceType-laptop":return n(87917);case"deviceType-mobile":return n(89791);
2case"deviceType-desktop":return n(71163);case"deviceType-none":return n(56063);case"deviceType-tablet":return n(36817);case"mobile_single_middle":case"type-selector-deviceType-Mobile":return n(669);case"mobile_single_slided":return n(5531);case"mobile_dual_middle":return n(53127);case"mobile_dual_slided":return n(43897);case"mobile_triple_middle":return n(16017);case"mobile_triple_slided":return n(17511);case"mobile_triple_slided_rotated":return n(81009);case"mobile_triple_middle_horizontal":return n(70220);case"mobile_quadruple_slided":return n(67560);case"mobile_quadruple_slided_rotated":return n(20438);case"desktop_single_middle":case"type-selector-deviceType-Laptop":return n(51751);case"desktop_single_slided":return n(26329);case"desktop_mobile_overlay":return n(56198);case"desktop_mobile_middle":return n(27021);case"desktop_single_slided_big":return n(35446);case"desktop_triple_variety":return n(2836);case"tablet_single_middle":case"type-selector-deviceType-Tablet":return n(96681);case"tablet_single_slided":return n(38383);case"tablet_mobile_overlay":return n(94988);case"tablet_mobile_middle":return n(1659);case"tablet_single_slided_big":return n(70464);case"monitor_single_middle":case"type-selector-deviceType-Desktop":return n(65831);case"monitor_mobile_middle":return n(19085);case"monitor_desktop_middle":return n(76089);case"monitor_tablet_middle":return n(2783);case"monitor_triple_variety":return n(22132);case"monitor_quadruple_variety":return n(88341);case"device_style_browser":return n(99281);case"device_style_no_device":return n(1189);case"device_style_outline":return n(21843);case"device_style_semi_realistic":return n(89506);case"device_style_simple":return n(35561);case"background_gradient":return n(30625);case"background_transparent":return n(15193);case"background_solid":return n(68070);case"color_light":return n(23764);case"color_dark":return n(48348);case"device_corner_rounded":return n(81559);case"device_corner_squareed":return n(82583);case"gradient_linear_1":return n(72942);case"gradient_linear_2":return n(67309);case"gradient_linear_3":return n(31852);case"gradient_radial_1":return n(48112);case"anim-none":return n(82262);case"anim-rise":return n(98767);case"anim-fall":return n(97307);case"anim-pan-left":return n(45569);case"anim-pan-right":return n(5292);case"anim-fade-in":return n(79094);case"anim-move-in":return n(34725);case"anim-bring-in":return n(40824);case"anim-scale":return n(61206);case"outlined-pill":return n(64523);case"outlined-rounded":return n(77);case"outlined-square":return n(45167);case"solid-pill":return n(10540);case"solid-rounded":return n(6780);case"solid-square":return n(83216);case"outline-weight-1":return n(55978);case"outline-weight-2":return n(47353);case"outline-weight-3":return n(65608);case"outline-weight-4":return n(54791);case"social-link-shape-square":return n(16577);case"social-link-shape-rounded":return n(75807);case"social-link-shape-circle":return n(42904);case"preset1":return n(20761);case"preset3":return n(15331);case"preset4":return n(25810);case"preset7":return n(25195);case"preset8":return n(15629);case"preset9":return n(65330);case"preset12":return n(78083);case"largeBlock":case"large-block":return n(33839);case"mediumBlockText":case"medium-block-text":return n(88537);case"mixedBlockLarge":case"large-block-mixed":return n(69661);case"smallBlock":case"small-block":return n(70011);case"smallBlockSlide":case"small-block-slided":return n(25445);case"smallBlockText":case"small-block-text":return n(75441);case"smallBlockTextOnly":case"small-block-text-only":case"type-selector-text_grid":return n(99964);case"largeBlockTextOnly":case"large-block-text-only":case"type-selector-text_list":return n(95504);case"aboveAlignment":return n(82827);case"alternatingAlignment":return n(7359);case"belowAlignment":return n(34183);case"hiddenAlignment":return n(79184);case"hoverAlignment":return n(24190);case"insideAlignment":return n(27836);case"leftAlignment":return n(4439);case"rightAlignment":return n(77786);case"type-selector-textPosition-below":return n(64212);case"type-selector-textPosition-above":return n(74508);case"type-selector-textPosition-on-thumbnail":return n(38349);case"type-selector-textPosition-hover":return n(74501);case"type-selector-textPosition-hidden":return n(59765);case"type-selector-textPosition-right":return n(37377);case"type-selector-textPosition-left":return n(11338);case"type-selector-textPosition-alternating":return n(88628);case"horizontal-center":case"horizontalCenter":return n(43034);case"horizontal-left":case"horizontalLeft":return n(72846);case"horizontal-right":case"horizontalRight":return n(16557);case"vertical-bottom":case"verticalBottom":return n(87692);case"vertical-middle":case"verticalCenter":return n(19234);case"vertical-top":case"verticalTop":return n(47958);case"whiteText":return n(46841);case"blackText":return n(79203);case"text_position_full_width_above":return n(50255);case"text_position_full_width_below":return n(5939);case"text_position_full_width_inline":return n(91488);case"text_position_full_width_no_text":return n(44419);case"above":return n(21082);case"below":return n(56474);case"in_line":return n(93271);case"no_text":return n(1924);case"weight_light":return n(95064);case"weight_medium":return n(26617);case"weight_bold":return n(28653);case"bg_style_1":return n(22207);case"bg_style_2":return n(59532);case"bg_style_3":return n(6893);case"bg_style_4":return n(78370);case"bg_style_5":return n(65747);case"bg_style_6":return n(21088);case"bg_style_7":return n(19121);case"bg_style_8":return n(67942);case"bg_style_9":return n(56919);case"content-align-left":return n(2721);case"content-align-center":return n(67241);case"content-align-right":return n(12332);case"content-align-top":return n(47435);case"content-align-middle":return n(39025);case"content-align-bottom":return n(82295);case"radius-lg":return n(17682);case"radius-md":return n(9166);case"radius-sm":return n(28733);case"radius-no":return n(27104);case"type-selector-image":return n(65289);case"type-selector-upload_image":return n(72470);case"type-selector-curated-backgrounds":case"type-selector-curated_backgrounds":return n(67823);case"type-selector-gradient":return n(21214);case"type-selector-solid":case"type-selector-solid_color":return n(15043);case"type-selector-none":case"type-selector-transparent":return n(23916);case"type-selector-animated":return n(15786);case"gallery-device-type-desktop":case"type-selector-gallery-device-type-desktop":case"type-selector-gallery-device-type-Desktop":return n(94726);case"gallery-device-type-laptop":case"type-selector-gallery-device-type-laptop":case"type-selector-gallery-device-type-Laptop":return n(28782);case"gallery-device-type-tablet":case"type-selector-gallery-device-type-tablet":case"type-selector-gallery-device-type-Tablet":return n(12250);case"gallery-device-type-mobile":case"type-selector-gallery-device-type-mobile":case"type-selector-gallery-device-type-Mobile":return n(15900);case"gallery-device-type-none":case"type-selector-gallery-device-type-none":return n(24688);
2case"type-selector-gallery-Grid":return n(47401);case"type-selector-gallery-OffsetGrid":return n(78149);case"type-selector-gallery-Carousel":return n(10215);case"type-selector-gallery-Slider":return n(9274);case"type-selector-gallery-Tilted":return n(61579);case"type-selector-logo-wall-layout-GRID":return n(29430);case"type-selector-logo-wall-layout-CAROUSEL":return n(17495);case"hover-interaction-color-reveal":case"type-selector-hover-interaction-COLOR_REVEAL":return n(62505);case"hover-interaction-scale-up":case"type-selector-hover-interaction-SCALE_UP":return n(6080);case"hover-interaction-opacity-increase":case"type-selector-hover-interaction-OPACITY_INCREASE":return n(33080);case"type-selector-deviceType-none":return n(24589);case"type-selector-tabs-section-layout-image":return n(27056);case"type-selector-tabs-section-layout-text-and-media":return n(18391);case"type-selector-tabs-section-layout-text":return n(71356);case"type-selector-large_list":return n(62636);case"type-selector-medium_list":return n(68644);case"type-selector-highlight_grid":return n(26293);case"type-selector-grid":return n(72066);case"type-selector-offset_grid":return n(63267);case"type-selector-small_list":return n(65734);case"type-selector-interaction-card-color-change":return n(3450);case"type-selector-interaction-zoom-in":return n(50812);case"type-selector-interaction-show-arrow":return n(88957);case"type-selector-interaction-tilt-image":return n(61028);case"type-selector-interaction-underline-title":return n(43182);case"type-selector-interaction-blur-background":return n(36359);case"type-selector-interaction-fill-background":return n(59243);case"type-selector-navigation-layout-Simple":return n(95646);case"type-selector-navigation-layout-Sides":return n(89136);case"type-selector-navigation-layout-SidesWithCta":return n(70032);case"type-selector-navigation-layout-Centered":return n(23240);case"type-selector-navigation-layout-SplitNavigation":return n(14987);case"type-selector-navigation-layout-SplitLogo":return n(44400);case"navigation-sidebar-position-top":return n(42659);case"navigation-sidebar-position-bottom":return n(94271);case"navigation-sidebar-position-outside":return n(30891);case"type-selector-hero-layout-Modular":return n(30069);case"type-selector-hero-layout-Overlay":return n(263);case"type-selector-hero-layout-Sidebar":return n(35363);case"type-selector-hero-content-flow-vertical":return n(34568);case"type-selector-hero-content-flow-horizontal":return n(16714);case"type-selector-open-link":return n(57201);case"type-selector-navigate-to-page":return n(86887);case"type-selector-open-resume":return n(21796);case"type-selector-copy-email":return n(89451);case"cta-open-page":return n(34559);case"cta-open-page-light":return n(34412);case"cta-open-link":return n(16338);case"cta-open-link-light":return n(97417);case"cta-open-new-tab":return n(51218);case"cta-copy-email":return n(34861);case"cta-copy-email-light":return n(11958);case"navigation-item-simple":return n(19199);case"navigation-item-underlined":return n(64685);case"navigation-item-boxed":return n(6203);case"navigation-visual-style-simple":return n(46972);case"navigation-visual-style-framed":return n(48323);case"navigation-layout-corder-radius-square":return n(39944);case"navigation-layout-corder-radius-rounded":return n(5508);case"navigation-layout-corder-radius-pill":return n(98452);case"type-selector-navigation-item-hover-Color":return n(82771);case"type-selector-navigation-item-hover-Underline":return n(60246);case"type-selector-navigation-item-hover-FlipText":return n(2013);case"type-selector-navigation-scroll-effect-ScrollWithPage":return n(17201);case"type-selector-navigation-scroll-effect-StayOnTop":return n(19798);case"type-selector-navigation-scroll-effect-AnimateOutAndBack":return n(76335);case"attach":return n(55089);case"attach_default":return n(97875);case"detach":return n(77815);case"articles":return n(79515);case"awards":return n(14700);case"bio":return n(6172);case"aboutme":return n(3096);case"background":return n(98078);case"card-sorting":case"cardsorting":case"projectgrid":return n(69115);case"cj":case"customerjourney":return n(94505);case"columns":return n(15459);case"contactform":case"contact-form":return n(11973);case"cta":case"contact":return n(67740);case"dividerline":case"divider":return n(53157);case"education":return n(79944);case"experience":return n(7550);case"gallery":case"galleryandmedia":return n(59100);case"header":case"subheader":return n(85545);case"hobbies":return n(86914);case"image":return n(34405);case"imagetext":case"image-text":case"textandmedia":return n(57703);case"research":case"interviews":return n(47562);case"logowall":case"logo-wall":return n(92892);case"media":return n(84750);case"closing":return n(51859);case"navigation":return n(7192);case"personas":case"socialmedia":return n(34825);case"prototype":return n(98960);case"short-intro":case"shortintro":return n(69141);case"sketches":return n(30830);case"skills":case"services":return n(31840);case"statement":case"bold-statement":return n(18457);case"statistics":case"stat":case"stats":return n(65883);case"surveys":return n(5727);case"testimonial":case"testimonials":case"quotesandlogos":return n(8443);case"text":return n(17587);case"ui-design":case"uidesign":case"uishowcase":case"uiDesign":return n(94163);
2case"designpresets":return n(98244);case"uj":case"userjourney":return n(34679);case"user-testing":case"usabilitytesting":return n(55308);case"video":case"embed":return n(76691);case"wireframes":return n(90911);case"adplist":return n(2459);case"introandprocess":case"overview":return n(12875);case"problemandsolution":return n(74821);case"goals":return n(20502);case"projectdetails":return n(71656);case"learningsandnextsteps":return n(60769);case"businessimpact":return n(48991);case"designsystem":return n(70126);case"competitors":case"competitiveresearch":return n(90639);case"mockup":return n(84795);case"module-text":return n(94441);case"module-image":return n(24771);case"module-media":return n(69728);case"module-quote":return n(90344);case"module-form":return n(93190);case"module-mockup":return n(98245);case"page-home":return n(66903);case"page-about":return n(7449);case"page-blank":return n(49112);case"page-contact":return n(95238);case"page-link":return n(59414);case"page-file":return n(45252);case"page-mailto":return n(28976);case"page-resume-builder":return n(62405);case"reviews-lg":return n(14634);case"jobs-board":return n(54906);case"job-fit-checker":return n(21102);case"job-fit-checker-volt":return n(49646);case"plus-plan":case"vector":return n(76988);case"mark":return n(36422);case"rocket":return n(50349);case"check-lotti":return n(20815);case"status-indicator":return n(56783);case"dot":return n(97526);case"confetti":return n(26325);case"timeline-start":return n(7363);case"timeline-end":return n(30488);case"volt-circle-logo":return n(14415);case"adobe":return n(97699);case"airtable":return n(60174);case"axshare":return n(1925);case"figjam":case"figma":return n(97086);case"framer":return n(38425);case"google":return n(82603);case"invision":return n(89635);case"marvel":return n(24951);case"miro":return n(97365);case"protopie":return n(78598);case"vimeo":return n(21622);case"youtube":return n(70845);case"searchIcon":return n(10557);case"proPickIcon":return n(1269);case"serifIcon":return n(42961);case"sansIcon":return n(15465);case"monoIcon":return n(91185);case"tooltip-arrow":return n(25778);case"positive-aspect":return n(25819);case"areas-of-improvement":return n(51436);case"progress-indicator-empty":return n(79601);case"progress-indicator-step1":return n(41877);case"progress-indicator-step2":return n(70006);case"progress-indicator-finished":return n(88064);case"comment":return n(33735);case"chat":return n(23066);case"reaction":return n(34033);case"send":return n(48761);case"dots":return n(79788);case"dots-vertical":return n(67087);case"adplist-logo":return n(77238);case"attendance-icon":return n(70722);case"mentoring-time-icon":return n(13234);case"sessions-icon":return n(76468);case"book-session":return n(16181);case"active-checkmark":return n(57959);case"connecting":return n(28191);case"waiting":return n(2768);case"not_connected":case"inactive":return n(79582);case"old_server":return n(58734);case"mobile_preview":return n(12275);case"desktop_preview":return n(14377);case"ai-sparkling-icon":return n(12619);case"ai-sparkle-one":return n(78297);case"ai-custom-prompt-icon":return n(6518);case"ai-fix-grammar-icon":return n(42929);case"ai-make-shorter-icon":return n(15272);case"ai-storytelling-icon":return n(87872);case"ai-stop-icon":return n(49590);case"mobile-navigation-hamburger":return n(57812);case"mobile-navigation-close":return n(23829);case"bolt":return n(30516);default:return console.error("Image route not defined for section type: ".concat(e)),n(91185)}}}};const i=(0,n(66262).A)(o,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("InlineSvg");return(0,r.uX)(),(0,r.Wv)(a,{src:s.getIcon(n.iconName),width:n.width,height:n.height},null,8,["src","width","height"])}]])},20696(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(73960);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a={key:0,class:"ufo--file-dz-loader"};const l={name:"LoaderOverlay",props:{show:{type:Boolean,default:!1}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,s,l,c){return n.show?((0,r.uX)(),(0,r.CE)("div",a,i(t[0]||(t[0]=[(0,r.Lk)("img",{src:o,width:"80",height:"80",alt:"File upload loader"},null,-1)])))):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-06690d41"]])},3439(e,t,n){"use strict";n.d(t,{A:()=>c});
2var r=n(20641),o=n(90033),i={class:"wrapper",ref:"wrapper"};var s=n(29279),a=n(74256);const l={name:"ChecklistTooltip",props:["mirrored"],components:{LargeTooltip:s.A},mounted:function(){this.isHomePage&&document.addEventListener("click",this.handleClickOutside)},beforeUnmount:function(){this.$store.state.checklist.subpage||(this.$store.state.checklist.activeInteraction=null),document.removeEventListener("click",this.handleClickOutside)},methods:{handleClickOutside:function(e){var t=this.$refs.wrapper,n=this.$refs.checklisttooltip;if(t&&n){var r=n.$el,o=t.getBoundingClientRect(),i=r.getBoundingClientRect(),s=this.isInsideBoundingRect(o,e),a=this.isInsideBoundingRect(i,e);s||a||!this.isHomePage||(this.$store.state.checklist.subpage&&this.isHomePage?this.$store.state.checklist.subpage=!1:this.$store.state.checklist.activeInteraction=null)}},isInsideBoundingRect:function(e,t){return t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom}},computed:{tooltipText:function(){if(!this.isHomePage)return{title:"Go back to the home page",subtitle:"To complete this step, please go back to your home page.",arrowpos:"top"};switch(this.$store.state.checklist.activeInteraction){case a.QT.HEADLINE:return{title:"Grab recruitersâ attention",subtitle:"Turn a plain headline into one thatâs clear and memorable.",arrowpos:"left"};case a.QT.THUMBNAIL:return{title:"Design a thumbnail",subtitle:"Turn raw screenshots into visuals that make recruiters want to click.",arrowpos:"left"};case a.QT.LAYOUT:return{title:"Select a layout",subtitle:"Make your portfolio unique by changing the case study grid layout.",arrowpos:"right"};case a.QT.RESUME:return{title:"Add a resume page",subtitle:"Make it easier for recruiters to access your resume.",arrowpos:"left"};case a.QT.DOMAIN:return{title:"Customize your domain",subtitle:"Make a professional first impression with a custom domain name.",arrowpos:"left"};case a.QT.CASE_STUDY:return{title:"Generate a case study",subtitle:"Use AI to turn your project into a compelling case study.",arrowpos:"left"};case a.QT.CUSTOMIZE:return{title:"Add personality",subtitle:"Update the colors to give your portfolio a personal touch.",arrowpos:"left center"};case a.QT.PUBLISH:return{title:"Go live! ð",subtitle:"Hit Publish & share your portfolio with the world!",arrowpos:"top top-right"};default:return{title:"Title",subtitle:"Subtitle",arrowpos:"left"}}},isHomePage:function(){return this.$store.getters.isHomePage}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("LargeTooltip");return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.bF)(c,{ref:"checklisttooltip",class:(0,o.C4)([e.$store.state.checklist.activeInteraction,{"not-home":!l.isHomePage,mirrored:n.mirrored}]),title:l.tooltipText.title,subtitle:l.tooltipText.subtitle,video:l.tooltipText.video?l.tooltipText.video:null,"arrow-pos":l.tooltipText.arrowpos},null,8,["class","title","subtitle","video","arrow-pos"])],512)}],["__scopeId","data-v-619232a2"]])},15637(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(20641),o=n(53751);var i=n(85880),s=n(76575),a=n(74965),l=n(82124);const c={name:"animation-wrapper",components:{},props:{delayAnimation:{default:0,type:Number},animationStyle:{default:"NONE",type:String},animationSpeed:{default:0,type:Number},disableAnimation:{default:!1,type:Boolean},isFinalSection:{default:!1,type:Boolean},animateOnMount:{default:!1,type:Boolean}},setup:function(e){var t,n=(0,a.lq)(),o=((0,r.EW)(function(){return n.fullPath.includes("/home/portfolios")&&!n.fullPath.includes("/home/portfolios/create-new-portfolio")&&"/home/portfolios"!==n.fullPath}),(0,l.Pj)()),c=(0,r.EW)(function(){return o.getters["design/animationSettings"]}),u=(0,r.EW)(function(){var t,n;return null!==(t=null===(n=c.value)||void 0===n?void 0:n.animationStyle)&&void 0!==t?t:e.animationStyle}),d=(0,r.EW)(function(){var t,n;return null!==(t=null===(n=c.value)||void 0===n?void 0:n.animationSpeed)&&void 0!==t?t:e.animationSpeed});i.Ay.registerPlugin(s.A);(0,r.sV)(function(){s.A.refresh(!0)}),(0,r.hi)(function(){t&&t.kill()});return{beforeEnter:function(t){if(!e.disableAnimation&&"NONE"!==u.value){t.style.willChange="transform",t.style.opacity=0;var n={RISE:"translateY(10px)",PAN_LEFT:"translateX(10px)",PAN_RIGHT:"translateX(-10px)",MOVE_IN:"translate(-10px, 10px)",BRING_IN:"translate(-10px, -10px)",FALL:"translateY(-10px)",SCALE:"scale(0.98)"};n[u.value]&&(t.style.transform=n[u.value])}},enter:function(n){if(!e.disableAnimation&&"NONE"!==u.value){var r=function(){if(e.isFinalSection)return"top bottom";var t=window.innerHeight||document.documentElement.clientHeight||0,r=s.A.maxScroll(window);return n.getBoundingClientRect().top+window.scrollY>r+t-120?"top bottom":"top bottom-=120px"};n._hasAnimated||(n._hasAnimated=!1),t=i.Ay.context(function(){var t=i.Ay.to(n,{duration:d.value,delay:e.delayAnimation,ease:"sine.out",opacity:1,scale:1,x:"0",y:"0",paused:!0,clearProps:"transform,opacity"});
2e.animateOnMount?t.play(0):s.A.create({trigger:n,start:r,once:!0,onEnter:function(){t.restart(!0)}})})}},updateAnimationSetting:function(){s.A.refresh(!0)},usedAnimationStyle:u,recalculateTriggers:function(){setTimeout(function(){s.A.refresh(!0)},10)}}},watch:{"$store.state.showSidePanel":function(e,t){e!==t&&this.recalculateTriggers()},"$store.state.recalculateScrollTrigger":function(e,t){e!==t&&this.recalculateTriggers()},"$store.state.portfolio.templateSettings.theme":function(e,t){e!==t&&this.recalculateTriggers()}}};const u=(0,n(66262).A)(c,[["render",function(e,t,n,i,s,a){return"NONE"!==i.usedAnimationStyle&&e.$store.state.triggerAnimation?((0,r.uX)(),(0,r.Wv)(o.TransitionGroup,{key:0,appear:"",onBeforeEnter:i.beforeEnter,onEnter:i.enter,css:!1},{default:(0,r.k6)(function(){return[(0,r.RG)(e.$slots,"animationContent")]}),_:3},8,["onBeforeEnter","onEnter"])):(0,r.RG)(e.$slots,"animationContent",{key:1})}]])},5412(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(20641),o=n(90033),i=["tooltip","tooltip-position"],s={class:"button-icon"},a={class:"icon-container"},l={key:0,class:"loading-state"};var c=n(34528);const u=n.p+"src/assets/images/saving-oval-blue.ee8b75ac.svg",d=n.p+"src/assets/images/saving-oval-blue-small.5576dbfa.svg",p=n.p+"src/assets/images/saving-oval-blue-large.f45c0b76.svg",f={name:"cta",components:{InlineSvg:c.A},props:{type:{type:String,default:"primary"},size:{type:String,default:null},tooltip:{type:String,default:null},tooltipPosition:{type:String,default:null},loading:{type:Boolean,default:!1},darkScheme:{type:Boolean,default:!1}},computed:{hasExtensionButton:function(){return!!this.$slots.extension},icon:function(){return"small"===this.size?d:"large"===this.size?p:u}}};const h=(0,n(66262).A)(f,[["render",function(e,t,n,c,u,d){var p=(0,r.g2)("InlineSvg");return(0,r.uX)(),(0,r.CE)("button",{class:(0,o.C4)(["ufo-cta","ufo-cta--".concat(n.type),n.size,{extension:d.hasExtensionButton},{"tooltip-on":!!n.tooltip},{loading:n.loading},{dark:n.darkScheme}]),tooltip:n.tooltip,"tooltip-position":n.tooltipPosition},[(0,r.Lk)("span",s,[(0,r.Lk)("div",a,[(0,r.RG)(e.$slots,"default",{},void 0,!0)])]),n.loading?((0,r.uX)(),(0,r.CE)("div",l,[(0,r.bF)(p,{src:d.icon,class:(0,o.C4)(["ufo-cta--loader",n.size])},null,8,["src","class"])])):(0,r.Q3)("v-if",!0),d.hasExtensionButton?(0,r.RG)(e.$slots,"extension",{key:1},void 0,!0):(0,r.Q3)("v-if",!0)],10,i)}],["__scopeId","data-v-14ca6a4e"]])},51634(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(20641),o=n(90033),i=n(53751),s={class:"ufo--dd-selector"},a={class:"selected-container"},l={class:"dd-scrollable",ref:"scrollable"},c=["onClick"];var u=n(69183),d=n(46335),p=n(49205),f=null;const h={name:"drop-down-select",inheritAttrs:!1,components:{Icon:d.A},props:{label:{type:String,default:null},selected:{type:String,default:null},options:{type:Array,default:null},inlineEdit:{type:Boolean,default:!1},hideChevron:{type:Boolean,default:!1},inputType:{type:String,default:"text"},darkScheme:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{type:String,default:null}},watch:{showOptions:function(e){var t=this;e?this.$nextTick(function(){return f=new p.A(t.$refs.scrollable,{wheelPropagation:!1})}):f.destroy(this.$refs.scrollable)}},data:function(){return{showOptions:!1,dropdownSelectIcon:u,inputFocus:!1,newInputValue:!1}},methods:{toggleDropDown:function(){this.showOptions=!this.showOptions&&!this.disabled},handleDropDownBlur:function(){var e=this;setTimeout(function(){e.$refs.dd.contains(document.activeElement)||(e.showOptions=!1)},150)},handleInputFocus:function(e){this.inlineEdit&&(this.inputFocus=!0,this.$nextTick(function(){e.target.select()}))},handleInputBlur:function(e){this.inlineEdit&&this.newInputValue&&(this.selectOption(e.target.value),this.inputFocus=!1)},selectOption:function(e){this.showOptions=!1,this.newInputValue=!1,this.$emit("click",e)}}};const m=(0,n(66262).A)(h,[["render",function(e,t,n,u,d,p){var f=this,h=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo--dd-select",{dark:n.darkScheme}]),ref:"dd",tabindex:"1",onFocusout:t[5]||(t[5]=function(e){return p.handleDropDownBlur()})},[n.label?((0,r.uX)(),(0,r.CE)("label",{key:0,class:(0,o.C4)({open:d.showOptions})},(0,o.v_)(n.label),3)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",s,[(0,r.Lk)("div",{class:(0,o.C4)(["ufo--dd-selected",{open:d.showOptions},{disabled:n.disabled},{"inline-edit":n.inlineEdit},{"align-center":n.hideChevron}]),onClick:t[4]||(t[4]=function(e){return p.toggleDropDown()})},[(0,r.Lk)("div",a,[n.icon?((0,r.uX)(),(0,r.Wv)(h,{key:0,class:"type-icon","icon-name":n.icon},null,8,["icon-name"])):(0,r.Q3)("v-if",!0),((0,r.uX)(),(0,r.Wv)((0,r.$y)(n.inl
2ineEdit?"input":"span"),{value:n.inlineEdit?n.selected:null,type:n.inlineEdit?n.inputType:null,autofocus:d.inputFocus,disabled:n.disabled,onInput:t[0]||(t[0]=function(e){return d.newInputValue=!0}),onClick:t[1]||(t[1]=function(e){return p.handleInputFocus(e)}),onBlur:t[2]||(t[2]=function(e){return p.handleInputBlur(e)}),onKeyup:t[3]||(t[3]=(0,i.withKeys)(function(e){return e.target.blur()},["enter"]))},{default:(0,r.k6)(function(){return[(0,r.eW)((0,o.v_)(n.selected),1)]}),_:1},40,["value","type","autofocus","disabled"]))]),n.inlineEdit||n.hideChevron?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(h,{key:0,class:"chevron","icon-name":"dropdown-select"}))],2),(0,r.bF)(i.Transition,{name:"drop-down"},{default:(0,r.k6)(function(){return[d.showOptions?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--dd-options",{footer:f.$slots["footer-option"]}])},[(0,r.Lk)("div",l,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.options,function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e,onClick:(0,i.withModifiers)(function(t){return p.selectOption(e)},["stop"]),class:(0,o.C4)(["ufo--dd-option",{selected:n.selected===e}])},[(0,r.Lk)("span",null,(0,o.v_)(e),1),n.selected===e?((0,r.uX)(),(0,r.Wv)(h,{key:0,"icon-name":"checkmark"})):(0,r.Q3)("v-if",!0)],10,c)}),128)),(0,r.RG)(e.$slots,"footer-option",{},void 0,!0)],512)],2)):(0,r.Q3)("v-if",!0)]}),_:3})])],34)}],["__scopeId","data-v-a84a3fdc"]])},8187(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(20641),o=n(90033),i=n(53751),s=["disabled"],a={key:1,class:"fixed-tooltip"};const l={name:"fab",emits:["click","mouseenter","mouseleave"],components:{Icon:n(46335).A},inheritAttrs:!1,props:{icon:{type:String,default:null},variant:{type:String,default:"regular"},tooltip:{type:String,default:null},tooltipPosition:{type:String,default:null},disabled:{type:Boolean,default:!1},size:{type:String,default:null},selected:{type:Boolean,default:!1},alert:{type:Boolean,default:!1},customClass:{type:String,default:null}},computed:{hasTextLabel:function(){return!!this.$slots.default},hasFixedTooltipSlot:function(){return!!this.$slots.fixedTooltip}},methods:{handleClick:function(e){this.$emit("click",e)},handleMouseEnter:function(){this.$emit("mouseenter")},handleMouseLeave:function(){this.$emit("mouseleave")}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,l,c,u){var d=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("button",{class:(0,o.C4)(["ufo-fab",n.size?"ufo-fab--".concat(n.size):null,{"ufo-fab--alert":n.alert},{"ufo-fab--has-label":u.hasTextLabel},{selected:n.selected},n.variant,n.customClass]),onClick:t[0]||(t[0]=function(){return u.handleClick&&u.handleClick.apply(u,arguments)}),onMouseenter:t[1]||(t[1]=function(e){return u.handleMouseEnter()}),onMouseleave:t[2]||(t[2]=function(e){return u.handleMouseLeave()}),disabled:n.disabled},[(0,r.bF)(i.Transition,{name:"fab-icon",mode:"out-in"},{default:(0,r.k6)(function(){return[n.icon?((0,r.uX)(),(0,r.Wv)(d,{key:n.icon,alt:"FAB icon","icon-name":n.icon},null,8,["icon-name"])):(0,r.Q3)("v-if",!0)]}),_:1}),(0,r.RG)(e.$slots,"default"),(0,r.RG)(e.$slots,"reaction"),(0,r.RG)(e.$slots,"comment"),n.tooltip?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,o.C4)(["tooltip",n.tooltipPosition,{spacing:"spacing"===n.customClass}])},(0,o.v_)(n.tooltip),3)):(0,r.Q3)("v-if",!0),u.hasFixedTooltipSlot?((0,r.uX)(),(0,r.CE)("div",a,[(0,r.RG)(e.$slots,"fixedTooltip")])):(0,r.Q3)("v-if",!0)],42,s)}]]),u=c},2336(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20641),o=n(90033),i=["tooltip","tooltip-position"];const s={name:"icon-button",components:{Icon:n(46335).A},emits:["click"],props:{tooltip:{type:String,default:null},tooltipPosition:{type:String,default:null},darkScheme:{type:Boolean,default:!1},icon:{type:String,default:null},importance:{type:String,default:"low"},size:{type:String,default:"regular"}}};const a=(0,n(66262).A)(s,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("icon");return(0,r.uX)(),(0,r.CE)("button",{onClick:t[0]||(t[0]=function(t){return e.$emit("click",t)}),class:(0,o.C4)([{"tooltip-on":!!n.tooltip,dark:n.darkScheme},n.importance,n.size]),tooltip:n.tooltip,"tooltip-position":n.tooltipPosition},[(0,r.bF)(c,{"icon-name":n.icon},null,8,["icon-name"])],10,i)}],["__scopeId","data-v-16ae6940"]])},60480(e,t,n){"use strict";n.d(t,{A:()=>y});
2var r=n(20641),o=n(90033),i=n(53751),s={key:1,class:"overflow-marker"},a={ref:"textViewport",class:"text-viewport"},l={class:"text-track"},c={key:0,class:"prefix-text"},u=["readonly","disabled","type","maxlength","size"],d={key:1,class:"assist-text"};var p=n(46335);function f(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return h(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(h(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,h(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,h(d,"constructor",c),h(c,"constructor",l),l.displayName="GeneratorFunction",h(c,o,"GeneratorFunction"),h(d),h(d,o,"Generator"),h(d,r,function(){return this}),h(d,"toString",function(){return"[object Generator]"}),(f=function(){return{w:i,m:p}})()}function h(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}h=function(e,t,n,r){function i(t,n){h(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},h(e,t,n,r)}function m(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const v={name:"InlineEditInput",components:{CtaButton:n(5412).A,Icon:p.A},props:{modelValue:{type:String,default:""},saveHandler:{type:Function,default:null},validateHandler:{type:Function,default:null},disabled:{type:Boolean,default:!1},inputType:{type:String,default:"text"},maxLength:{type:Number,default:254},charLimitPosition:{type:String,default:null},darkScheme:{type:Boolean,default:!1},leadingIcon:{type:String,default:null},prefixText:{type:String,default:""},showActionButton:{type:Boolean,default:!0},alwaysEditable:{type:Boolean,default:!1}},emits:["update:modelValue"],data:function(){return{isEditing:!1,isSaving:!1,inputValue:"",originalValue:"",validationError:"",isInputFocused:!1,hasTextOverflow:!1}},computed:{trailingIcon:function(){return this.isEditing?"check":"edit"},currentLength:function(){var e,t;return String(null!==(e=null!==(t=this.inputValue)&&void 0!==t?t:this.modelValue)&&void 0!==e?e:"").length},showCharLimit:function(){return!("outside"!==this.charLimitPosition||!this.maxLength)&&this.currentLength>=Math.max(Math.ceil(.8*this.maxLength),this.maxLength-10)}},watch:{modelValue:function(e){this.isEditing||(this.inputValue=e||"",this.originalValue=e||"")}},mounted:function(){this.inputValue=this.modelValue||"",this.originalValue=this.modelValue||"",document.addEventListener("click",this.handleOutsideClick)},beforeUnmount:function(){document.removeEventListener("click",this.handleOutsideClick)},methods:{preventFocusedInputBlur:function(e){this.alwaysEditable&&this.isInputFocused&&e.target!==this.$refs.input&&e.preventDefault()},focusInput:function(){var e;!this.alwaysEditable||this.isInputFocused||this.disabled||this.isSaving||null===(e=this.$refs.input)||void 0===e||e.focus()},handleFocus:function(){this.isInputFocused=!0,this.scrollTextToEnd()},handleBlur:function(){this.isInputFocused=!1,this.hasTextOverflow=!1;var e=this.$refs.textViewport;e&&(e.scrollLeft=0)},handleInput:function(){this.alwaysEditable&&this.$emit("update:modelValue",this.inputValue),this.scrollTextToEnd()},scrollTextToEnd:function(){var e=this;this.alwaysEditable&&this.prefixText&&this.isInputFocused&&this.$nextTick(function(){var t=e.$refs.textViewport,n=e.$refs.input;if(t){n&&(n.scrollLeft=0);var r=t.scrollWidth>t.clientWidth;e.hasTextOverflow=r,t.scrollLeft=r?t.scrollWidth:0}})},handleOutsideClick:function(e){var t;this.isEditing&&(null!==(t=this.$refs.container)&&void 0!==t&&t.contains(e.target)||this.revertChanges())},startEditing:function(){var e=this;this.disabled||this.isSaving||(this.isEditing=!0,this.validationError="",this.originalValue=this.modelValue||"",this.inputValue=this.originalValue,this.$nextTick(function(){var t,n,r;null===(t=e.$refs.input)||void 0===t||t.focus(),null===(n=e.$refs.input)||void 0===n||null===(r=n.select)||void 0===r||r.call(n)}))},revertChanges:function(){this.inputValue=this.originalValue,this.isEditing=!1,this.validationError=""},toggleAction:function(){this.isEditing?this.saveChanges():this.startEditing()},validateValue:function(e){if(!this.validateHandler)return this.validationError="",!0;var t=this.validateHandler(e);return!0===t||null==t?(this.validationError="",!0):(this.validationError="string"==typeof t?t:"Invalid value.",!1)},saveChanges:function(){var e,t=this;return(e=f().m(function e(){var n,r,o;return f().w(function(e){for(;;)switch(e.p=e.n){case 0:if((n=t.inputValue.trim())!==t.originalValue){e.n=1;break}return t.revertChanges(),e.a(2);
2case 1:if(t.validateValue(n)){e.n=2;break}return e.a(2);case 2:if(t.isSaving=!0,e.p=3,!t.saveHandler){e.n=4;break}return e.n=4,t.saveHandler(n);case 4:t.originalValue=n,t.inputValue=n,t.$emit("update:modelValue",n),t.isEditing=!1,e.n=6;break;case 5:e.p=5,o=e.v,r=(null==o?void 0:o.message)||"Something went wrong. Please try again.",t.validationError=r;case 6:return e.p=6,t.isSaving=!1,e.f(6);case 7:return e.a(2)}},e,null,[[3,5,6,7]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){m(i,r,o,s,a,"next",e)}function a(e){m(i,r,o,s,a,"throw",e)}s(void 0)})})()}}};const g=(0,n(66262).A)(v,[["render",function(e,t,n,p,f,h){var m=(0,r.g2)("Icon"),v=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["inline-edit-wrapper",{dark:n.darkScheme}])},[(0,r.Lk)("div",{class:(0,o.C4)(["inline-edit-input",{editable:f.isEditing,"always-editable":n.alwaysEditable,focused:f.isInputFocused,disabled:n.disabled,error:!!f.validationError}]),ref:"container"},[(0,r.Lk)("div",{class:"input-wrapper",onMousedown:t[5]||(t[5]=function(){return h.preventFocusedInputBlur&&h.preventFocusedInputBlur.apply(h,arguments)}),onClick:t[6]||(t[6]=function(){return h.focusInput&&h.focusInput.apply(h,arguments)})},[n.leadingIcon?((0,r.uX)(),(0,r.Wv)(m,{key:0,"icon-name":n.leadingIcon,class:"leading-icon"},null,8,["icon-name"])):(0,r.Q3)("v-if",!0),f.hasTextOverflow?((0,r.uX)(),(0,r.CE)("span",s)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",a,[(0,r.Lk)("div",l,[n.prefixText?((0,r.uX)(),(0,r.CE)("span",c,(0,o.v_)(n.prefixText),1)):(0,r.Q3)("v-if",!0),(0,r.bo)((0,r.Lk)("input",{ref:"input","onUpdate:modelValue":t[0]||(t[0]=function(e){return f.inputValue=e}),readonly:!f.isEditing&&!n.alwaysEditable||f.isSaving,disabled:n.disabled,type:n.inputType,maxlength:n.maxLength,size:n.alwaysEditable&&n.prefixText?Math.max(f.inputValue.length,1):null,onFocus:t[1]||(t[1]=function(){return h.handleFocus&&h.handleFocus.apply(h,arguments)}),onBlur:t[2]||(t[2]=function(){return h.handleBlur&&h.handleBlur.apply(h,arguments)}),onInput:t[3]||(t[3]=function(){return h.handleInput&&h.handleInput.apply(h,arguments)}),onKeydown:t[4]||(t[4]=(0,i.withKeys)((0,i.withModifiers)(function(e){return n.showActionButton&&h.toggleAction},["prevent"]),["enter"]))},null,40,u),[[i.vModelDynamic,f.inputValue]])])],512)],32),n.showActionButton?((0,r.uX)(),(0,r.Wv)(v,{key:0,class:"action-button","dark-scheme":n.darkScheme,size:"tiny",disabled:n.disabled||f.isSaving,type:"icon subtle",onClick:h.toggleAction},{default:(0,r.k6)(function(){return[(0,r.bF)(m,{"icon-name":h.trailingIcon},null,8,["icon-name"])]}),_:1},8,["dark-scheme","disabled","onClick"])):(0,r.Q3)("v-if",!0)],2),h.showCharLimit?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["char-limit-message",n.charLimitPosition,{"limit-reached":h.currentLength>=n.maxLength}])},(0,o.v_)(h.currentLength)+" / "+(0,o.v_)(n.maxLength),3)):(0,r.Q3)("v-if",!0),f.validationError?((0,r.uX)(),(0,r.CE)("div",d,(0,o.v_)(f.validationError),1)):(0,r.Q3)("v-if",!0)],2)}],["__scopeId","data-v-111f592e"]]),y=g},16485(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(20641),o=n(90033),i=["type","name","value","placeholder","readonly","disabled","maxlength","min","max"],s={key:1,class:"assist"},a={key:2,class:"feedback"},l={key:3,class:"alert-message"};const c={name:"input-field",emits:["update:modelValue","input","keyup","keydown","mouseenter","mouseleave","focus","blur","click"],inheritAttrs:!1,props:{label:{type:String,default:null},type:{type:String,default:"text"},name:{type:String,default:null},modelValue:{type:[String,Number],default:null},placeholder:{type:String,default:null},disabled:{type:Boolean,default:null},hasError:{type:Boolean,default:null},readOnly:{type:Boolean,default:!1},displayAssist:{type:Boolean,default:!0},displayFeedback:{type:Boolean,default:!0},displayAlert:{type:Boolean,default:!0},maxLength:{type:Number,default:null},range:{type:Object,default:function(){return{min:null,max:null}}},darkScheme:{type:Boolean,default:!1},charLimitPosition:{type:String,default:null}},data:function(){return{focused:!1}},computed:{hasAssistSlot:function(){return!!this.$slots.assist},hasFeedbackSlot:function(){return!!this.$slots.feedback},hasAlertSlot:function(){return!!this.$slots.alert},currentLength:function(){var e;return String(null!==(e=this.modelValue)&&void 0!==e?e:"").length},showCharLimit:function(){return!(!this.charLimitPosition||!this.maxLength)&&this.currentLength>=Math.max(Math.ceil(.8*this.maxLength),this.maxLength-10)}},methods:{handleInput:function(e){this.$emit("update:modelValue",e.target.value),this.$emit("input",e)},handleKeyup:function(e){this.$emit("keyup",e)},handleKeydown:function(e){this.$emit("keydown",e)},handleMouseEnter:function(e){this.$emit("mouseenter",e)},handleMouseLeave:function(e){this.$emit("mouseleave",e)},handleFocus:function(){this.focused=!0,this.$emit("focus")},handleHover:function(){this.hover=!0},blur:function(e){this.focused=!1,this.$emit("blur",e)},click:function(){this.$emit("click")}}};const u=(0,n(66262).A)(c,[["render",function(e,t,n,c,u,d){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo-input",{dark:n.darkScheme}])},[n.label?((0,r.uX)(),(0,r.CE)("label",{key:0,class:(0,o.C4)(["inside-label",{focus:u.focused||n.modelValue}])},(0,o.v_)(n.label),3)):(0,r.Q3)("v-if",!0),(0,r.Lk)("input",{type:n.type,name:n.name,value:n.modelValue,placeholder:u.focu
2sed||!n.label?n.placeholder:n.label,readonly:n.readOnly,disabled:n.disabled,maxlength:n.maxLength,class:(0,o.C4)({"error alert":n.hasError,down:u.focused||n.modelValue}),min:n.range.min,max:n.range.max,onHover:t[0]||(t[0]=function(){return d.handleHover&&d.handleHover.apply(d,arguments)}),onInput:t[1]||(t[1]=function(){return d.handleInput&&d.handleInput.apply(d,arguments)}),onFocus:t[2]||(t[2]=function(){return d.handleFocus&&d.handleFocus.apply(d,arguments)}),onBlur:t[3]||(t[3]=function(){return d.blur&&d.blur.apply(d,arguments)}),onKeyup:t[4]||(t[4]=function(){return d.handleKeyup&&d.handleKeyup.apply(d,arguments)}),onKeydown:t[5]||(t[5]=function(){return d.handleKeydown&&d.handleKeydown.apply(d,arguments)}),onMouseenter:t[6]||(t[6]=function(){return d.handleMouseEnter&&d.handleMouseEnter.apply(d,arguments)}),onMouseleave:t[7]||(t[7]=function(){return d.handleMouseLeave&&d.handleMouseLeave.apply(d,arguments)})},null,42,i),d.hasAssistSlot&&n.displayAssist?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.RG)(e.$slots,"assist",{},void 0,!0)])):(0,r.Q3)("v-if",!0),d.hasFeedbackSlot&&n.displayFeedback?((0,r.uX)(),(0,r.CE)("div",a,[(0,r.RG)(e.$slots,"feedback",{},void 0,!0)])):(0,r.Q3)("v-if",!0),d.hasAlertSlot&&n.displayAlert?((0,r.uX)(),(0,r.CE)("div",l,[(0,r.RG)(e.$slots,"alert",{},void 0,!0)])):(0,r.Q3)("v-if",!0),d.showCharLimit?((0,r.uX)(),(0,r.CE)("div",{key:4,class:(0,o.C4)(["char-limit-message",n.charLimitPosition,{"limit-reached":d.currentLength>=n.maxLength}])},(0,o.v_)(d.currentLength)+" / "+(0,o.v_)(n.maxLength),3)):(0,r.Q3)("v-if",!0)],2)}],["__scopeId","data-v-2bcaa1c8"]]),d=u},29279(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(20641),o=n(90033),i={key:0,class:"video-wrapper"},s={width:"270",height:"150",autoplay:"",loop:"",muted:"",preload:"auto"},a=["src"],l={key:0,class:"title-text"},c={key:1,class:"subtitle-text"};var u=n(46335),d=n(53751),p={name:"LargeTooltip",components:{Icon:u.A},props:["title","subtitle","video","arrowPos"]},f=function(){(0,d.useCssVars)(function(e){return{v2da4042e:e.templateHeroTo
2pPos}})},h=p.setup;p.setup=h?function(e,t){return f(),h(e,t)}:f;const m=p;const v=(0,n(66262).A)(m,[["render",function(e,t,n,u,d,p){var f=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["large-tooltip-container",{video:n.video}])},[n.video?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("video",s,[(0,r.Lk)("source",{src:n.video,type:"video/webm"},null,8,a)])])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,o.C4)(["text-wrapper",{"left-aligned":null===n.title}])},[n.title?((0,r.uX)(),(0,r.CE)("div",l,(0,o.v_)(n.title),1)):(0,r.Q3)("v-if",!0),n.subtitle?((0,r.uX)(),(0,r.CE)("div",c,(0,o.v_)(n.subtitle),1)):(0,r.Q3)("v-if",!0)],2),(0,r.bF)(f,{class:(0,o.C4)(["arrow",[n.arrowPos]]),"icon-name":"tooltip-arrow"},null,8,["class"])],2)}],["__scopeId","data-v-2cfe4f75"]])},33346(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(20641),o=n(90033),i={key:0,class:"picto"},s={class:"message-content"},a=["innerHTML"],l={class:"message"},c=["innerHTML"];var u=n(46335);const d={name:"message-highlight",components:{Cta:n(5412).A,Icon:u.A},props:{type:{type:String,default:"info"},title:{type:String,default:null},message:{type:String,default:null},icon:{type:String,default:null},hideIcon:{type:Boolean,default:!1},linkText:{type:String,default:null},url:{type:String,default:null},darkScheme:{type:Boolean,default:!1},sameTab:{type:Boolean,default:!1}},methods:{clickLink:function(){if(!this.sameTab)return window.open(this.url);window.location.assign(this.url)}}};const p=(0,n(66262).A)(d,[["render",function(e,t,n,u,d,p){var f=(0,r.g2)("Icon"),h=(0,r.g2)("Cta");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo--message-highlight-container",[n.type,{dark:n.darkScheme}]])},[t[2]||(t[2]=(0,r.Lk)("div",{class:"border-left"},null,-1)),(0,r.Lk)("div",{class:(0,o.C4)(["ufo--message-highlight",[n.type,{dark:n.darkScheme}]])},[n.hideIcon?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",i,[(0,r.bF)(f,{"icon-name":n.icon?n.icon:n.type},null,8,["icon-name"])])),(0,r.Lk)("div",s,[n.title?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"title",innerHTML:n.title},null,8,a)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",l,[(0,r.Lk)("span",{innerHTML:n.message},null,8,c),t[1]||(t[1]=(0,r.eW)((0,o.v_)(" ")+" ",-1)),n.url?((0,r.uX)(),(0,r.Wv)(h,{key:0,type:"link","dark-scheme":n.darkScheme,onClick:t[0]||(t[0]=function(e){return p.clickLink()})},{default:(0,r.k6)(function(){return[(0,r.eW)((0,o.v_)(n.linkText?n.linkText:"Learn more"),1)]}),_:1},8,["dark-scheme"])):(0,r.Q3)("v-if",!0)])])],2)],2)}],["__scopeId","data-v-ccd9b99e"]])},53367(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(20641);var o=n(34528),i=n(81661),s=n(70878);function a(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return l(u,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),u}var s={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(l(t={},r,function(){return this}),t),f=d.prototype=c.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,l(f,"constructor",d),l(d,"constructor",u),u.displayName="GeneratorFunction",l(d,o,"GeneratorFunction"),l(f),l(f,o,"Generator"),l(f,r,function(){return this}),l(f,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:h}})()}function l(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}l=function(e,t,n,r){function i(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},l(e,t,n,r)}function c(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){c(i,r,o,s,a,"next",e)}function a(e){c(i,r,o,s,a,"throw",e)}s(void 0)})}}const d={name:"Mockup",props:{svgSrc:{type:String,required:!0},imageSrc:{type:String,required:!1},media:{type:Object},altTag:{type:String},imageLoaded:{type:Function,default:null},setLightBox:{type:Boolean,default:!1},index:{type:Number},shadow:{type:Boolean,default:!1},mockup:{type:Object},isThumbnail:{type:Boolean,default:!1},showScrollHint:{type:Boolean,default:!1},scrollHintSectionKey:{type:String,default:null},scrollHintPriority:{type:Number}},components:{InlineSvg:o.A},data:function(){return{imgElement:null,foreignObject:null,screenArea:null,containerDiv:null,wrapperDiv:null,mockupId:null,defs:null,fullSvg:null,isSafari:!1,instanceId:"mockup-scroll-hint-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),isScrollable:!1,unregisterScrollHint:null}},watch:{imageSrc:function(e){if(this.imgElement)if(!e&&this.containerDiv&&(this.containerDiv.style.background="linear-gradient(161deg, #8F8F8F 12.93%, #515151 89.74%)"),this.img
2Element.tagName&&"image"===this.imgElement.tagName.toLowerCase()){var t=e||"";this.imgElement.setAttribute("href",t),this.imgElement.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t),this.resizeSafariImage(t)}else this.imgElement.src=e}},created:function(){var e=navigator.userAgent,t=/iPhone|iPad|iPod/i.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,n=/AppleWebKit/i.test(e),r=/^((?!chrome|android).)*safari/i.test(e);this.isSafari=t&&n||r},computed:{isShadowEnabled:function(){return this.shadow&&this.mockup.mockupType!==i.M2.OUTLINE&&this.mockup.mockupType!==i.M2.SEMI_REALISTIC}},methods:{svgLoaded:function(e){this.onSvgLoad(e)},onSvgLoad:function(e){var t=this;return u(a().m(function n(){var r,o,s,l,c,u,d,p,f,h,m,v,g,y,b;return a().w(function(n){for(;;)switch(n.n){case 0:if(r=e){n.n=1;break}return n.a(2);case 1:if(t.fullSvg=r,t.screenArea=r.querySelector('rect[fill="#6D6D6D"]')||r.querySelector('path[fill="#6D6D6D"]')||r.querySelector("#".concat(t.mockupId)),t.screenArea){n.n=2;break}return console.log("No screen area path found: ",t.svgSrc),n.a(2);case 2:t.mockupId="unique_"+Date.now()+"_"+Math.random().toString(36).substring(2,15),t.screenArea.setAttribute("id",t.mockupId);case 3:if(o=t.svgSrc.includes("dark"),s=t.svgSrc.includes("minimal"),l=t.mockup.mockupType===i.M2.REALISTIC,t.screenArea.setAttribute("fill",s?"transparent":o||l?"black":"white"),c=t.screenArea.getBBox(),!t.isSafari){n.n=4;break}return t.imageSrc?(t.imgElement=document.createElementNS("http://www.w3.org/2000/svg","image"),t.imgElement.classList.add("mockup-screen","mockup-screen-safari"),t.imgElement.setAttribute("href",t.imageSrc),t.imgElement.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.imageSrc),t.imgElement.setAttribute("x",c.x),t.imgElement.setAttribute("y",c.y),t.imgElement.setAttribute("width",c.width),t.imgElement.setAttribute("height",c.height),u="clip_"+t.mockupId,(d=r.querySelector("defs"))||(d=document.createElementNS("http://www.w3.org/2000/svg","defs"),r.insertBefore(d,r.firstChild)),(p=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id",u),(f=t.screenArea.cloneNode(!0)).removeAttribute("id"),p.appendChild(f),d.appendChild(p),t.imgElement.setAttribute("clip-path","url(#".concat(u,")")),r.appendChild(t.imgElement),r.appendChild(t.createSafariScreenOverlay()),t.resizeSafariImage(t.imageSrc)):((h=r.querySelector("defs"))||(h=document.createElementNS("http://www.w3.org/2000/svg","defs"),r.insertBefore(h,r.firstChild)),r.querySelector("#fallbackGradient")||((m=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id","fallbackGradient"),m.setAttribute("gradientTransform","rotate(161)"),(v=document.createElementNS("http://www.w3.org/2000/svg","stop")).setAttribute("offset","12.93%"),v.setAttribute("stop-color","#8F8F8F"),(g=document.createElementNS("http://www.w3.org/2000/svg","stop")).setAttribute("offset","89.74%"),g.setAttribute("stop-color","#515151"),m.appendChild(v),m.appendChild(g),h.appendChild(m)),(y=document.createElementNS("http://www.w3.org/2000/svg","rect")).classList.add("mockup-screen","mockup-screen-safari"),y.setAttribute("x",c.x),y.setAttribute("y",c.y),y.setAttribute("width",c.width),y.setAttribute("height",c.height),y.setAttribute("fill","url(#fallbackGradient)"),r.appendChild(y),r.appendChild(t.createSafariScreenOverlay())),r.style.overflow="hidden",n.a(2);case 4:t.foreignObject=document.createElementNS("http://www.w3.org/2000/svg","foreignObject"),t.foreignObject.style.position="relative",t.foreignObject.style.pointerEvents="all",t.foreignObject.classList.add("mockup-screen"),t.wrapperDiv=document.createElement("div"),t.wrapperDiv.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.wrapperDiv.classList.add("wrapper"),b=t.extractBorderRadius(t.screenArea),t.wrapperDiv.style.borderRadius="".concat(b),t.wrapperDiv.style.overflow="hidden",t.containerDiv=document.createElement("div"),t.containerDiv.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.containerDiv.classList.add(t.isThumbnail?"container-mockup":"scrollable-container-mockup"),t.containerDiv.addEventListener("scroll",t.syncScrollIndicator),t.containerDiv.addEventListener("touchstart",t.stopMockupScrollGesturePropagation,{passive:!0}),t.containerDiv.addEventListener("touchmove",t.stopMockupScrollGesturePropagation,{passive:!0}),t.containerDiv.addEventListener("pointerdown",t.stopMockupScrollGesturePropagation),t.containerDiv.addEventListener("pointermove",t.stopMockupScrollGesturePropagation),t.imageSrc||(t.containerDiv.style.background="linear-gradient(161deg, #8F8F8F 12.93%, #515151 89.74%)"),t.imgElement=document.createElement("img"),t.imgElement.src=t.imageSrc,t.imgElement.setAttribute("alt",t.altTag||""),t.media&&t.forcedAspectRatio&&t.imgElement.classList.add("aspect-ratio-".concat(t.forcedAspectRatio)),t.imgElement.onload=function(){t.imageLoaded&&t.imageLoaded(t.imgElement),t.syncScrollIndicator()},t.imgElement.style.width="100%",t.imgElement.style.height=t.isThumbnail?"100%":"auto",t.imgElement.style.display="block",t.imgElement.style.objectPosition=t.isThumbnail?"center center"
2:"top left",t.imgElement.style.objectFit=t.isThumbnail?"cover":"initial",t.imgElement.style.maxHeight="unset",t.wrapperDiv.appendChild(t.containerDiv),t.containerDiv.appendChild(t.imgElement),t.foreignObject.appendChild(t.wrapperDiv),r.appendChild(t.foreignObject),t.reorderSmallerElements(r),t.updateScreenLayout(),t.registerScrollHintCandidate();case 5:return n.a(2)}},n)}))()},createSafariScreenOverlay:function(){var e=this.screenArea.cloneNode(!0);return e.removeAttribute("id"),e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("filter"),e.classList.add("mockup-screen-overlay"),e.setAttribute("fill","rgba(0, 0, 0, 0.12)"),e.setAttribute("opacity","0"),e.setAttribute("pointer-events","none"),e},resizeSafariImage:function(e){var t,n=this;if(this.isSafari&&this.imgElement&&"image"===this.imgElement.tagName.toLowerCase()&&e){var r=null===(t=this.screenArea)||void 0===t?void 0:t.getBBox();if(null!=r&&r.width&&null!=r&&r.height){var o=e,i=new Image;i.onload=function(){var e,t;if(o===n.imageSrc&&(null===(e=n.imgElement)||void 0===e?void 0:e.getAttribute("href"))===o){var s=i.naturalWidth,a=i.naturalHeight;if(s&&a){if(n.isThumbnail)n.imgElement.setAttribute("height",r.height),n.imgElement.setAttribute("preserveAspectRatio","xMidYMid slice");else{var l=a*(r.width/s);l>r.height?(n.imgElement.setAttribute("height",r.height),n.imgElement.setAttribute("preserveAspectRatio","xMinYMin slice")):(n.imgElement.setAttribute("height",l),n.imgElement.setAttribute("preserveAspectRatio","xMinYMin meet"))}null===(t=n.imageLoaded)||void 0===t||t.call(n,n.imgElement)}}},i.onerror=function(){o===n.imageSrc&&console.warn("Unable to load Safari mockup image:",o)},i.src=o}}},extractBorderRadius:function(e){if("rect"===e.tagName){var t=parseFloat(e.getAttribute("rx")||"0"),n=parseFloat(e.getAttribute("ry")||t);return"".concat(t,"px ").concat(t,"px ").concat(n,"px ").concat(n,"px")}if("path"===e.tagName){var r=this.svgSrc.includes("v1");return this.svgSrc.includes("mobile")?r&&!this.svgSrc.includes("semirealistic")?"32px":this.svgSrc.includes("browser")?"0px 0px 17px 17px":"52px":this.svgSrc.includes("tablet")?r?"16px":this.svgSrc.includes("browser")?"0px 0px 17px 17px":"29px":this.svgSrc.includes("laptop")&&this.svgSrc.includes("browser")||this.svgSrc.includes("desktop")&&this.svgSrc.includes("browser")?"0px 0px 17px 17px":"0px 0px 0px 0px"}return"0px 0px 0px 0px"},reorderSmallerElements:function(e){var t=this;if(this.screenArea){var n=this.screenArea.getBBox(),r=[];e.querySelectorAll("rect, path, circle").forEach(function(e){var o=e.getBBox();o.width<n.width&&o.height<n.height&&("circle"===e.tagName||o.width>118&&o.height<80||o.height>118&&o.width<80)&&e!==t.screenArea&&r.push(e)}),r.forEach(function(t){e.appendChild(t)})}},updateScreenLayout:function(){if(this.foreignObject&&this.screenArea){var e=this.screenArea.getBBox(),t=e.width+4,n=e.height+4,r=e.x-2,o=e.y-2;this.foreignObject.setAttribute("x",r),this.foreignObject.setAttribute("y",o),this.foreignObject.setAttribute("width",t),this.foreignObject.setAttribute("height",n),this.syncScrollIndicator()}},syncScrollIndicator:function(){if(this.containerDiv&&this.wrapperDiv){var e=Math.max(this.containerDiv.clientHeight-16,0),t=Math.max(this.containerDiv.scrollHeight-this.containerDiv.clientHeight,0);this.isScrollable=t>0;var n=this.containerDiv.clientHeight/this.containerDiv.scrollHeight,r=t>0?Math.max(e*n,24):e,o=8+Math.max(e-r,0)*(t>0?this.containerDiv.scrollTop/t:0);this.wrapperDiv.style.setProperty("--mockup-scroll-thumb-top","".concat(o,"px")),this.wrapperDiv.style.setProperty("--mockup-scroll-thumb-height","".concat(r,"px"))}},stopMockupScrollGesturePropagation:function(e){this.isScrollable&&e.stopPropagation()},registerScrollHintCandidate:function(){var e,t=this;this.scrollHintSectionKey&&this.containerDiv&&(null===(e=this.unregisterScrollHint)||void 0===e||e.call(this),this.unregisterScrollHint=(0,s.t)(this.scrollHintSectionKey,this.instanceId,{isEligible:function(){return t.showScrollHint&&t.isScrollable},getPriority:function(){return t.scrollHintPriority},play:function(){return t.runScrollHintAnimation()}}))},runScrollHintAnimation:function(){var e=this;if(this.showScrollHint&&this.containerDiv){var t=function(e){return.5*(1-Math.cos(Math.PI*e))},n=function(e){return 1-Math.pow(1-e,3)},r=function(t,n,r,o){return new Promise(function(i){var s=performance.now(),a=function(l){var c=Math.min((l-s)/r,1);e.containerDiv.scrollTop=t+(n-t)*o(c),c<1?requestAnimationFrame(a):i()};requestAnimationFrame(a)})};requestAnimationFrame(u(a().m(function e(){return a().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,r(0,48,400,t);case 1:return e.n=2,new Promise(function(e){return setTimeout(e,100)});case 2:return e.n=3,r(48,0,300,n);case 3:return e.a(2)}},e)})))}}},beforeUnmount:function(){var e;this.containerDiv&&(this.containerDiv.removeEventListener("scroll",this.syncScrollIndicator),this.containerDiv.removeEventListener("touchstart",this.stopMockupScrollGesturePropagation),this.containerDiv.removeEventListener("touchmove",this.stopMockupScrollGesturePropagation),this.containerDiv.removeEventListener("pointerdown",this.stopMockupScrollGesturePropagation),this.containerDiv.removeEventListener("pointermove",this.stopMockupScrollGesturePropagation)),null===(e=this.unregisterScrollHint)||void 0===e||e.call(this)}};const p=(0,n(66262).A)(d,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("InlineSvg");return(0,r.uX)(),(0,r.CE)("div",(0,r.v6)(e.$attrs,{class:["mockup-svg-container",{shadow:s.isShadowEnabled,safari:i.isSafari}]}),[(0,r.bF)(a,{ref:"inlineSvg",src:n.svgSrc,onLoaded:s.svgLoaded},null,8,["src","onLoaded"])],16)}]])},71068(e,t,n){"use strict";n.d(t,{A:()=>d});
2var r=n(20641),o=n(90033),i={class:"ufo-mockup--display"},s={class:"ufo-mockup--frame"};var a=n(53367),l=n(913),c=n(81661);const u={name:"MockupContainer",components:{Mockup:a.A},props:["media","imageLoaded","setLightbox","index","forcedAspectRatio","allowAnimation","scrollable","showScrollHint","scrollHintSectionKey","scrollHintPriority"],emits:["click"],data:function(){return{mockupTypeEnum:c.M2}},computed:{defaultImageSrc:function(){var e=this.media,t=this.project,n=(null==e?void 0:e.url)||"/example_project_images/gallery_sample/gallery-sample-tall-01.jpg";if(null!=e&&e.croppedImageUrl)return e.croppedImageUrl;if(!n.includes("/example"))return n;var r=e.mockupSettings?e.mockupSettings.deviceType:null;if(n.includes("suggestion-wireframes")){if(t.aiGenerated&&r){var o=r!==c.w7.MOBILE?r.toLowerCase():"tall";return"/example_project_images/gallery_sample/gallery-sample-".concat(o,"-01-ai.png")}if(r===c.w7.LAPTOP||r===c.w7.DESKTOP)return"/example_project_images/v2/suggestion-wireframes-desktop.png"}if(n.includes("gallery-sample-tall")&&r){if(t.aiGenerated){if(r){var i=r!==c.w7.MOBILE?r.toLowerCase():"";return this.modifyDefaultAiMockupImageUrl(i)}return this.modifyDefaultAiMockupImageUrl("")}if(r===c.w7.LAPTOP||r===c.w7.DESKTOP)return n.replace("tall","desktop").replace("jpg","png");if(r===c.w7.TABLET)return n.replace("tall","tablet").replace("jpg","png")}return n},mockupData:function(){return this.media.mockupSettings},mockupSrc:function(){var e=this.mockupData||{},t=e.deviceType,n=e.mockupType,r=e.version,o=e.colorScheme,i=e.settings,s=e.orientation;return(0,l.zR)(t,n,r,o,i,s)},altTag:function(){return this.media.altTag||"Image gallery item"},project:function(){return this.$store.state.project}},methods:{modifyDefaultAiMockupImageUrl:function(e){var t=e?this.media.url.replace("tall",e).replace("jpg","png"):this.media.url.replace("jpg","png"),n=t.lastIndexOf(".");return-1!==n&&(t=t.slice(0,n)+"-ai"+t.slice(n)),t}}};const d=(0,n(66262).A)(u,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("Mockup");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["mockup",{scrollable:n.scrollable}]),onClick:t[0]||(t[0]=function(t){return e.$emit("click")})},[(0,r.Lk)("div",i,[(0,r.Lk)("div",s,[(0,r.bF)(u,{"image-src":c.defaultImageSrc,"svg-src":c.mockupSrc,"image-loaded":n.imageLoaded?n.imageLoaded(e.$refs.img):null,altTag:c.altTag,media:n.media,index:n.index,class:(0,o.C4)(!c.mockupData&&n.forcedAspectRatio?"aspect-ratio-".concat(n.forcedAspectRatio):""),"allow-animation":n.allowAnimation,shadow:c.mockupData.shadow,mockup:c.mockupData,"show-scroll-hint":n.showScrollHint,"scroll-hint-section-key":n.scrollHintSectionKey,"scroll-hint-priority":n.scrollHintPriority},null,8,["image-src","svg-src","image-loaded","altTag","media","index","class","allow-animation","shadow","mockup","show-scroll-hint","scroll-hint-section-key","scroll-hint-priority"])])])],2)}],["__scopeId","data-v-6f53b736"]])},93116(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(20641),o=n(90033),i={key:0,class:"picto"},s={key:1,class:"option-label"};const a={name:"OptionBar",components:{Icon:n(46335).A},props:{disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},icon:{type:String,default:null},label:{type:String,default:null},size:{type:String,default:"medium"}}};const l=(0,n(66262).A)(a,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("icon");return(0,r.uX)(),(0,r.CE)("button",{class:(0,o.C4)([{selected:n.selected,disabled:n.disabled},n.size])},[n.icon?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.bF)(u,{"icon-name":n.icon},null,8,["icon-name"])])):(0,r.Q3)("v-if",!0),n.label?((0,r.uX)(),(0,r.CE)("div",s,(0,o.v_)(n.label),1)):(0,r.Q3)("v-if",!0)],2)}],["__scopeId","data-v-58468520"]])},4760(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20641),o=n(90033),i={class:"simple-button"};const s={name:"SimpleAiButton",components:{Icon:n(46335).A},props:["text","icon"]};const a=(0,n(66262).A)(s,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("button",i,[n.icon?((0,r.uX)(),(0,r.Wv)(c,{key:0,"icon-name":n.icon},null,8,["icon-name"])):(0,r.Q3)("v-if",!0),(0,r.eW)(" "+(0,o.v_)(n.text),1)])}],["__scopeId","data-v-49c7b23a"]])},97229(e,t,n){"use strict";n.d(t,{A:()=>s});
2var r=n(20641),o=n(90033);n(46335);const i={name:"tab-bar",props:{hideBorder:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},darkScheme:{type:Boolean,default:!1}}};const s=(0,n(66262).A)(i,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["tab-bar",{dark:n.darkScheme,"hide-border":n.hideBorder,"full-width":n.fullWidth}])},[(0,r.RG)(e.$slots,"default",{},void 0,!0)],2)}],["__scopeId","data-v-0a201020"]])},80074(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(20641),o=n(90033),i={key:0,class:"picto"},s={key:1,class:"tab-pill-text"};const a={name:"tab-item",components:{Icon:n(46335).A},props:{active:{type:Boolean,default:!1},darkScheme:{type:Boolean,default:!1},icon:{type:String,default:null},iconPosition:{type:String,default:"left"},label:{type:String,default:null}}};const l=(0,n(66262).A)(a,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("icon");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["tab-pill",{active:n.active,dark:n.darkScheme}])},[(0,r.Lk)("div",{class:(0,o.C4)(["tab-pill-content","icon-".concat(n.iconPosition)])},[n.icon?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.bF)(u,{"icon-name":n.icon},null,8,["icon-name"])])):(0,r.Q3)("v-if",!0),n.label?((0,r.uX)(),(0,r.CE)("div",s,(0,o.v_)(n.label),1)):(0,r.Q3)("v-if",!0),(0,r.RG)(e.$slots,"indicator",{},void 0,!0)],2)],2)}],["__scopeId","data-v-3b8bb4e6"]])},43852(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(20641),o=n(90033);const i={name:"Tag",components:{Icon:n(46335).A},props:{text:{type:String,default:""},iconName:{type:String},darkScheme:{type:Boolean,default:!1}}};const s=(0,n(66262).A)(i,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["tag",{dark:n.darkScheme}])},[n.iconName?((0,r.uX)(),(0,r.Wv)(l,{key:0,width:16,height:16,"icon-name":n.iconName},null,8,["icon-name"])):(0,r.Q3)("v-if",!0),(0,r.eW)(" "+(0,o.v_)(n.text),1)],2)}],["__scopeId","data-v-13a4f5f6"]])},1868(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20641),o=n(90033),i={key:1,class:"tertiary-text"};const s={name:"tertiary-button",components:{Icon:n(46335).A},props:{icon:{type:String,default:null},text:{type:String,default:null},type:{type:String,default:"neutral"},disabled:{type:Boolean,default:!1},darkScheme:{type:Boolean,default:!1},size:{type:String,default:"default"}}};const a=(0,n(66262).A)(s,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("icon");return(0,r.uX)(),(0,r.CE)("button",{class:(0,o.C4)(["tertiary-btn",{disabled:n.disabled,dark:n.darkScheme,"has-icon":n.icon},n.type,n.size])},[n.icon?((0,r.uX)(),(0,r.Wv)(c,{key:0,"icon-name":n.icon},null,8,["icon-name"])):(0,r.Q3)("v-if",!0),n.text?((0,r.uX)(),(0,r.CE)("div",i,(0,o.v_)(n.text),1)):(0,r.Q3)("v-if",!0)],2)}],["__scopeId","data-v-776253fe"]])},92584(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(90033),i=["value","name","rows","maxlength","placeholder","disabled"],s={key:0,class:"alert-message"};const a={name:"text-area",inheritAttrs:!1,props:{label:{type:String,default:null},name:{type:String,default:null},modelValue:{type:String,default:null},placeholder:{type:String,default:null},rows:{type:Number,default:null},maxLength:{type:Number,default:null},disabled:{type:Boolean,default:!1},hasError:{type:String,default:null},disableEnter:{type:Boolean,default:!0},darkScheme:{type:Boolean,default:!1},charLimitPosition:{type:String,default:null}},data:function(){return{focused:!1,affirmed:!1}},computed:{hasAlertSlot:function(){return!!this.$slots.alert},currentLength:function(){var e;return String(null!==(e=this.modelValue)&&void 0!==e?e:"").length},showCharLimit:function(){return!(!this.charLimitPosition||!this.maxLength)&&this.currentLength>=Math.max(Math.ceil(.8*this.maxLength),this.maxLength-10)}},methods:{handleInput:function(e){this.$emit("update:modelValue",e.target.value)},handleKeyup:function(){this.$emit("keyup")},handleKeydown:function(e){this.$emit("keydown",e)},handleFocus:function(){this.focused=!0,this.$emit("focus")},blur:function(){this.focused=!1,this.affirmed=!1,this.$emit("blur")},click:function(){this.$emit("click")},handlePaste:function(){this.$emit("paste")}}};const l=(0,n(66262).A)(a,[["render",function(e,t,n,a,l,c){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["text-area-container",{dark:n.darkScheme}])},[(0,r.Lk)("div",{class:(0,o.C4)(["ufo-textarea",{disabled:n.disabled,error:n.hasError,focus:l.focused,"has-char-limit-inside":"inside"===n.charLimitPosition}])},[n.label?((0,r.uX)(),(0,r.CE)("label",{key:0,class:(0,o.C4)(["inside-label",{focus:l.focused||n.disabled||n.modelValue}])},(0,o.v_)(n.label),3)):(0,r.Q3)("v-if",!0),(0,r.Lk)("textarea",{class:(0,o.C4)({disabled:n.disabled}),value:n.modelValue,name:n.name,rows:n.rows,maxlength:n.maxLength,placeholder:l.focused||!n.label?n.placeholder:n.label,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return c.handleInput&&c.handleInput.apply(c,arguments)}),onFocus:t[1]||(t[1]=function(){return c.handleFocus&&c.handleFocus.apply(c,arguments)}),onBlur:t[2]||(t[2]=function(e){return c.blur()}),onKeyup:t[3]||(t[3]=function(){return c.handleKeyup&&c.handleKeyup.apply(c,arguments)}),onKeydown:t[4]||(t[4]=function(){return c.handleKeydown&&c.handleKeydown.apply(c,arguments)}
2),onPaste:t[5]||(t[5]=function(){return c.handlePaste&&c.handlePaste.apply(c,arguments)})},null,42,i),c.showCharLimit?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["char-limit-message",n.charLimitPosition,{"limit-reached":c.currentLength>=n.maxLength}])},(0,o.v_)(c.currentLength)+" / "+(0,o.v_)(n.maxLength),3)):(0,r.Q3)("v-if",!0)],2),c.hasAlertSlot?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.RG)(e.$slots,"alert",{},void 0,!0)])):(0,r.Q3)("v-if",!0)],2)}],["__scopeId","data-v-6c00f909"]]),c=l},89705(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(20641);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s={key:0,class:"toggle-grid"};const a={name:"toggle-grid",props:{paddingTop:{default:0,type:Number}}};const l=(0,n(66262).A)(a,[["render",function(e,t,n,i,a,l){return e.$store.state.displayToggleGrid?((0,r.uX)(),(0,r.CE)("div",s,o(t[0]||(t[0]=[(0,r.Fv)('<div class="toggle-grid-col" data-v-acf0e7a4></div><div class="toggle-grid-col" data-v-acf0e7a4></div><div class="toggle-grid-col" data-v-acf0e7a4></div><div class="toggle-grid-col" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div><div class="toggle-grid-col toggle-grid-col-12" data-v-acf0e7a4></div>',12)])))):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-acf0e7a4"]])},28304(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(90033),i=n(53751),s=["value","disabled"];const a={name:"toggle-switch",inheritAttrs:!1,props:{modelValue:{type:[Boolean],default:null},disabled:{type:Boolean,default:!1},darkScheme:{type:Boolean,default:!1},variant:{type:String,default:"default"}},computed:{model:{get:function(){return this.modelValue},set:function(e){this.$emit("update:modelValue",e)}}},methods:{handleChange:function(e){this.$emit("change",e)}}};const l=(0,n(66262).A)(a,[["render",function(e,t,n,a,l,c){return(0,r.uX)(),(0,r.CE)("label",{class:(0,o.C4)(["switch",{dark:n.darkScheme},n.variant])},[(0,r.bo)((0,r.Lk)("input",{type:"checkbox",value:n.modelValue,"onUpdate:modelValue":t[0]||(t[0]=function(e){return c.model=e}),onChange:t[1]||(t[1]=function(){return c.handleChange&&c.handleChange.apply(c,arguments)}),disabled:n.disabled},null,40,s),[[i.vModelCheckbox,c.model]]),t[2]||(t[2]=(0,r.Lk)("span",{class:"slider"},null,-1))],2)}],["__scopeId","data-v-55be4aa0"]]),c=l},62820(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(20641),o=n(90033);const i={name:"UserImagePlaceholder",props:["name","size"],methods:{getUserNameInitials:function(){var e=this.name.split(" ");return e.length>1&&e[1].length?e[0][0]+e[1][0]:e[0][0]}}};const s=(0,n(66262).A)(i,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["placeholder-image",n.size])},[(0,r.Lk)("p",null,(0,o.v_)(a.getUserNameInitials()),1)],2)}],["__scopeId","data-v-96b264c2"]])},21638(e,t,n){"use strict";n.d(t,{A:()=>W});var r=n(20641),o=n(90033),i={class:"background-color-container",id:"capture"},s={key:0,class:"interactions-container"},a={class:"button-wrapper"},l={class:"ufo--project-title-container"},c={class:"project-title"},u={class:"ufo--project-title-container"},d={key:0,class:"project-subtitle"};var p=n(34528),f=n(76107),h=n(53367),m=n(20696);const v=n.p+"src/assets/images/background-gradient-radial-1.7dc19663.svg",g=n.p+"src/assets/images/background-gradient-linear-1.8ff751b9.svg",y=n.p+"src/assets/images/background-gradient-linear-2.831c98d7.svg",b=n.p+"src/assets/images/background-gradient-linear-3.d3dbaef1.svg",w=n.p+"src/assets/images/mobile-placeholder-aspect.dbfad576.png";var S=n(90736),k=n(56139);const _=n.p+"src/assets/images/tablet-placeholder-aspect.b3634cd2.png",O=n.p+"src/assets/images/desktop-placeholder-aspect.bd3e6d1b.png";var C=n(74256),T=n(1868),A=n(95818),E=n(913),x=n(1112),P=n(21781),I=n(82124),L=n(68438);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?M(Object(n),!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return F(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,F(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,F(d,"constructor",c),F(c,"constructor",l),l.displayName="GeneratorFunction",F(c,o,"GeneratorFunction"),F(d),F(d,o,"Generator"),F(d,r,function(){return this}),F(d,"toString",function(){return"[object Generator]"}),(N=function(){return{w:i,m:p}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function i(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},F(e,t,n,r)}function B(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function U(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){B(i,r,o,s,a,"next",e)}function a(e){B(i,r,o,s,a,"throw",e)}s(void 0)})}}var H={mobile:w,laptop:{v1:S,v2:S,v3:k},tablet:_,desktop:O},$={radial_1:v,linear_1:g,linear_2:y,linear_3:b};const z={name:"ThumbnailImagePreview",components:{TertiaryButton:T.A,InlineSvg:p.A,Mockup:h.A,LoaderOverlay:m.A},props:{thumbnailData:{type:Object,required:!0},setModalState:{type:Function,default:function(){}},layouts:{type:Object,required:!0},thumbnailSize:{type:String,default:"small"},updateImageList:{type:Function,default:function(){}},project:{type:Object,default:null},interactive:{type:Boolean,default:!0},useInlineUpload:{type:Boolean,default:!0},showHelperTextOverride:{default:null}},data:function(){return{placeholder:w,uploadIndex:null,loading:!1}},methods:{convertRichTextHTMLToPlainText:L.sZ,getImageSrc:function(e,t){var n=!0;if(this.thumbnailData.images[t]){if(this.thumbnailData.images[t].cropped&&this.thumbnailData.images[t].cropped.url)return n=!1,{image:this.thumbnailData.images[t].cropped.url,isDefault:n};if(this.thumbnailData.images[t].url)return n=!1,{image:this.thumbnailData.images[t].url,isDefault:n}}return{image:"laptop"===e?this.versionedDefaultImage(e):H[e.toLowerCase()],isDefault:n}},getMockupSrc:function(e){return(0,E.zR)(e.deviceType,e.mockupType,e.version,e.colorScheme,e.settings,e.orientation)},imageIndexed:function(e){return this.thumbnailData.images[e]?this.thumbnailData.images[e]:(this.updateImageList(e),{url:null,cropped:{url:null,coordinates:null}})}
2,getSize:function(e){return"large"===this.effectiveThumbnailSize||"small"===e?"icon":"large"===e?"default":"small"},triggerFileInput:function(e){this.uploadIndex=e,document.getElementById("og-image").click()},onUploadClick:function(e){this.useInlineUpload?this.triggerFileInput(e):this.setModalState("fileUpload",e,"mockup")},uploadImage:function(e){var t=this;return U(N().m(function n(){var r,o;return N().w(function(n){for(;;)switch(n.n){case 0:t.loading=!0,r=e.target.files[0],(o=new FileReader).readAsDataURL(r),o.addEventListener("load",U(N().m(function e(){var n,i,s,a,l,c,u;return N().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=(0,x.hH)(o.result),i=(0,x.gd)(n),s=t.filesToDelete(t.uploadIndex),e.n=1,A.A.uploadThumbnailImage(t.$store.state.user._id,t.project._id,o.result,"thumbnail-iamge-"+t.uploadIndex,i,s);case 1:a=e.v,t.thumbnailData.images[t.uploadIndex].url=a.data.url,t.thumbnailData.images[t.uploadIndex].cropped={url:null,coordinates:null},t.setModalState("crop",t.uploadIndex),t.uploadIndex=null,e.n=3;break;case 2:e.p=2,u=e.v,l="Failed to upload image.",413===u.response.status&&(c=(r.size/1048576).toFixed(1),l="Image is too large (".concat(c," MB). The size limit is 5 MB.")),t.$store.commit("showAlertMessage",{type:"alert",message:"".concat(l)});case 3:return e.p=3,t.loading=!1,e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])})),!1);case 1:return n.a(2)}},n)}))()},filesToDelete:function(e){var t=[];return this.thumbnailData.images[e].url&&t.push(this.thumbnailData.images[e].url),this.thumbnailData.images[e].cropped.url&&t.push(this.thumbnailData.images[e].cropped.url),t},versionedDefaultImage:function(e){return H[e.toLowerCase()][this.thumbnailData.mockupDetails[0].version]}},computed:D(D({effectiveThumbnailSize:function(){return"section"===this.thumbnailSize?"small":this.thumbnailSize}},(0,I.L8)("design",["colorPalette"])),{},{suggestedColorsUsed:function(){var e;return(null===(e=this.thumbnailData)||void 0===e||null===(e=e.background)||void 0===e?void 0:e.color)&&!this.thumbnailData.background.color.startsWith("#")&&Object.values(C.bH).includes(this.thumbnailData.background.color)},suggestedColorOptions:function(){return(0,f.bH)(this.colorStyles,this.$store.state.portfolio.designSettings.colorPalette)},colorStyles:function(){return this.$store.state.portfolio.designSettings.colorStyles},inlineSvgColor:function(){return this.suggestedColorsUsed?this.suggestedColorOptions[this.thumbnailData.background.style.match(/^[^_]*/)[0]][this.thumbnailData.background.color][0]:(0,P.WT)(this.thumbnailData.background.color,this.colorPalette)},backgroundStyle:function(){var e={};if(this.thumbnailData.background.style===C.oj.SOLID_COLOR)e["background-color"]=this.suggestedColorsUsed?this.suggestedColorOptions[this.thumbnailData.background.style.match(/^[^_]*/)[0]][this.thumbnailData.background.color][0]:(0,P.WT)(this.thumbnailData.background.color,this.colorPalette);else if(this.thumbnailData.background.style===C.oj.TRANSPARENT)e["background-color"]="transparent";else if(this.thumbnailData.background.style===C.oj.GRADIENT)e["background-color"]=this.suggestedColorsUsed?this.suggestedColorOptions[this.thumbnailData.background.style.match(/^[^_]*/)[0]][this.thumbnailData.background.color][1]:(0,P.WT)(this.thumbnailData.background.accentColor,this.colorPalette);else if(this.thumbnailData.background.style===C.oj.UPLOAD_IMAGE){var t,n,r=(null===(t=this.thumbnailData.background.image)||void 0===t||null===(t=t.cropped)||void 0===t?void 0:t.url)||(null===(n=this.thumbnailData.background.image)||void 0===n?void 0:n.url);r?(e["background-image"]="url(".concat(r,")"),e["background-size"]="cover",e["background-position"]="center"):e["background-color"]="var(--asphalt90)"}else if(this.thumbnailData.background.style===C.oj.CURATED_BACKGROUNDS){var o,i=null===(o=this.thumbnailData.background.image)||void 0===o?void 0:o.url;i?(e["background-image"]="url(".concat(i,")"),e["background-size"]="cover",e["background-position"]="center"):e["background-color"]="var(--asphalt90)"}else e["background-color"]="#FFFFFF";return e},largeThumbnailTextPosition:function(){var e=this.$store.state.portfolio.templateSettings;return"large"===e.tileDisplayMode&&"on-thumbnail"===e.projectTitle.placement&&"visible"===e.projectTitle.visibility?e.projectTitle.alignment.horizontal:"center"},showHelperText:function(){if("boolean"==typeof this.showHelperTextOverride)return this.showHelperTextOverride;var e=this.$store.state.portfolio.templateSettings;return"large"===e.tileDisplayMode&&"on-thumbnail"===e.projectTitle.placement&&"visible"===e.projectTitle.visibility},backgroundSvg:function(){return"gradient"===this.thumbnailData.background.style?$[this.thumbnailData.background.gradient]:""},templateSettings:function(){return this.$store.state.portfolio.templateSettings},projectName:function(){if(!this.project)return"";var e=this.project.sections[0];return null!==this.project.name?this.project.name:e.title.text},projectSubtitle:function(){if(!this.project)return"";var e=this.project.sections[0];return null!==this.project.subtitle?this.project.subtitle:e.subtitle.text}})};const W=(0,n(66262).A)(z,[["render",function(e,t,n,p,f,h){var m=(0,r.g2)("LoaderOverlay"),v=(0,r.g2)("InlineSvg"),g=(0,r.g2)("Mockup"),y=(0,r.g2)("TertiaryButton");return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.bF)(m,{show:f.loading},null,8,["show"]),(0,r.Lk)("div",{class:(0,o.C4)(["thumbnail-preview",{"section-mode":"section"===n.thumbnailSize}]),style:(0,o.Tr)([h.backgroundStyle])},["gradient"===this.thumbnailData.background.style?((0,r.uX)(),(0,r.Wv)(v,{key:0,style:(0,o.Tr)({color:h.inlineSvgColor}),class:"background-image",src:h.backgroundSvg},null,8,["style","src"])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,o.C4)(["mockups-container",[n.thumbnailData.mockupDetail
2s[0].deviceType.toLowerCase(),n.thumbnailData.layout.version,n.thumbnailData.mockupDetails[0].deviceType,h.effectiveThumbnailSize,"align-text-"+h.largeThumbnailTextPosition]])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.layouts[n.thumbnailData.layout.type][n.thumbnailData.layout.version].mockupTypes,function(e,i){return(0,r.uX)(),(0,r.CE)("div",{key:i+"-mockup",class:(0,o.C4)("mockup-container mockup-".concat(i," ").concat(e.type," ").concat(h.getImageSrc(e.type,i).isDefault?"":"uploaded-image"))},[(0,r.bF)(g,{"svg-src":h.getMockupSrc(n.thumbnailData.mockupDetails[i]),"image-src":h.getImageSrc(e.type,i).image,mockup:n.thumbnailData.mockupDetails[i],isThumbnail:!0},null,8,["svg-src","image-src","mockup"]),n.interactive?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",a,[(0,r.bF)(y,{"dark-scheme":!0,size:h.getSize(e.size),icon:"upload",text:"Upload",onClick:function(){return h.onUploadClick(i)}},null,8,["size","onClick"]),h.imageIndexed(i).url?((0,r.uX)(),(0,r.Wv)(y,{key:0,"dark-scheme":!0,size:h.getSize(e.size),icon:"crop",text:"Crop",onClick:function(){return n.setModalState("crop",i,"mockup")}},null,8,["size","onClick"])):(0,r.Q3)("v-if",!0)]),n.useInlineUpload?((0,r.uX)(),(0,r.CE)("input",{key:0,id:"og-image",type:"file",onChange:t[0]||(t[0]=function(e){return h.uploadImage(e)}),accept:"image/png, image/jpeg, image/webp"},null,32)):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0)],2)}),128))],2),h.showHelperText?((0,r.uX)(),(0,r.CE)("div",{key:1,"data-html2canvas-ignore":"true",class:(0,o.C4)(["helper-text project-name",[h.largeThumbnailTextPosition,e.$store.state.portfolio.templateSettings.projectTitle.alignment.vertical]])},[(0,r.Lk)("div",l,[(0,r.Lk)("div",c,(0,o.v_)(h.convertRichTextHTMLToPlainText(h.projectName)),1)]),(0,r.Lk)("div",u,[h.templateSettings.projectTitle.hideDescription?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",d,(0,o.v_)(h.convertRichTextHTMLToPlainText(h.projectSubtitle)),1))])],2)):(0,r.Q3)("v-if",!0)],6)])}],["__scopeId","data-v-6be3f5a4"]])},61556(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(20641),o=n(90033),i=["disabled","tooltip","tooltip-position"],s={key:2};var a=n(46335),l=n(34528);const c={name:"nav-bar-pill",emits:["buttonClicked"],props:{label:{default:null,type:String},iconName:{default:null,type:String},svg:{default:null},width:{default:24,type:Number},height:{default:24,type:Number},active:{default:!1,type:Boolean},tooltip:{default:null,type:String},tooltipPosition:{default:"bottom",type:String},disabled:{default:!1,type:Boolean},customClass:{type:String,default:null},darkScheme:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},components:{InlineSvg:l.A,Icon:a.A}};const u=(0,n(66262).A)(c,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("Icon"),d=(0,r.g2)("InlineSvg");return(0,r.uX)(),(0,r.CE)("button",{onClick:t[0]||(t[0]=function(t){return e.$emit("buttonClicked")}),class:(0,o.C4)([{selected:n.active},{"has-tooltip":n.tooltip},{dark:n.darkScheme},{loading:n.loading},n.customClass]),disabled:n.disabled,tooltip:n.tooltip,"tooltip-position":n.tooltipPosition},[n.iconName?((0,r.uX)(),(0,r.Wv)(u,{key:0,"icon-name":n.iconName},null,8,["icon-name"])):((0,r.uX)(),(0,r.Wv)(d,{key:1,src:n.svg},null,8,["src"])),n.label?((0,r.uX)(),(0,r.CE)("span",s,(0,o.v_)(n.label),1)):(0,r.Q3)("v-if",!0)],10,i)}],["__scopeId","data-v-d03dc5e2"]])},46097(e,t,n){"use strict";n.d(t,{A:()=>H});var r=n(20641),o=n(90033),i=n(53751);function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l={class:"nav-upgrade-to-unlock"},c={class:"publish"},u={class:"btn-content"},d={key:0,ref:"upgradepopup",class:"upgrade-to-unlock-container"},p={key:0,class:"menu-item"},f={class:"input-container"},h={key:1,class:"menu-item"},m={class:"input-container"},v={key:1,class:"own-domain-container"},g={class:"dd-container"},y={class:"dd-select-items"};var b=n(46335),w=n(43852),S=n(5412),k=n(29279),_=n(33639),O=n(74256),C=n(76107),T=n(3439);var A=n(88248),E=n(60480);function x(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return P(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(P(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,P(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,P(d,"constructor",c),P(c,"constructor",l),l.displayName="GeneratorFunction",P(c,o,"GeneratorFunction"),P(d),P(d,o,"Generator"),P(d,r,function(){return this}),P(d,"toString",function(){return"[object Generator]"}),(x=function(){return{w:i,m:p}})()}function P(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}P=function(e,t,n,r){function i(t,n){P(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},P(e,t,n,r)}function I(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var L=/^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/;const j={name:"InlineUrlEditInput",props:{disabled:{type:Boolean,default:!1}},components:{InlineEditInput:E.A},computed:{portfolioShortId:function(){var e;return(null===(e=this.$store.state.portfolio)||void 0===e?void 0:e.shortId)||""},baseUrl:function(){var e,t=(null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.origin.replace(/^https?:\/\//,""))||"";return"".concat(t,"/")}},methods:{validateSlug:function(e){return!(!e||e.length<5||!L.test(e))||"At least 5 letters, no special characters."},saveChanges:function(e){var t,n=this;return(t=x().m(function t(){var r,o,i;return x().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,A.A.updatePortfolioUrl(n.$store.state.portfolio._id,e);case 1:n.$store.commit("updatePortfolioShortId",e),n.$store.commit("showAlertMessage",{type:"success",message:"Default domain successfully updated."}),t.n=3;break;case 2:throw t.p=2,i=t.v,o=null==i||null===(r=i.response)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.message,new Error(o||"Something went wrong. Please try again.");case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){I(i,r,o,s,a,"next",e)}function a(e){I(i,r,o,s,a,"throw",e)}s(void 0)})})()}}};var M=n(66262);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){F(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const B={name:"UpgradeToUnlockNavContainer",props:["openNavigationDropdown","upgradeDropdownOpen","isViewMode"],components:{InlineUrlEditInput:(0,M.A)(j,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("InlineEditInput");return(0,r.uX)(),(0,r.Wv)(a,{"model-value":s.portfolioShortId,"save-handler":s.saveChanges,"validate-handler":s.validateSlug,"dark-scheme":"","char-limit-position":"outside",disabled:n.disabled,"input-type":"text","max-length":24,"leading-icon":"link","prefix-text":s.baseUrl},null,8,["model-value","save-handler","validate-handler","disabled","prefix-text"])}]]),ChecklistTooltip:T.A,Cta:S.A,Tag:w.A,Icon:b.A,LargeTooltip:k.A},data:function(){return{copied:!1,timeoutId:null,loading:!1}},beforeDestroy:function(){clearInterval(this.timeoutId),this.loading=!1},watch:{upgradeDropdownOpen:function(){this.handleEventListener()}},methods:{handleClickOutside:function(e){this.upgradeDropdownOpen&&this.$refs.upgradepopup&&!this.$refs.upgradepopup.contains(e.target)&&(this.loading=!1,this.openNavigationDropdown("upgrade"))},handleEventListener:function(){this.upgradeDropdownOpen?document.addEventListener("click",this.handleClickOutside):document.removeEventListener("click",this.handleClickOutside)},openPrices:function(){_.A.track("UPGRADE_CTA_CLICKED",N(N({},_.A.getUrls()),{},{event_group:_.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Portfolio publish panel",context:"".concat(this.isViewMode?"Preview mode":"Editor"),to:"Payment"})),this.isViewMode?window.location.replace("/home/prices"):this.$router.push("/home/prices")},handlePublishClick:function(){this.$store.state.showPublishTooltip=!1,this.isDraft&&_.A.track("PUBLISH_CTA_CLICKED",N(N({},_.A.getUrls()),{},{event_group:_.A.MixpanelEventGroups.USER_LIFECYCLE,upgrade_required:this.blocked,context:"".concat(this.isViewMode?"Preview mode":"Editor")})),this.loading=!0,this.isDraft?this.openNavigationDropdown("upgrade"):this.publish()},closeUpgradeDropdown:function(){this.upgradeDropdownOpen&&this.openNavigationDropdown("upgrade"),this.loading=!1},publish:function(){var e=this;this.loading=!0,this.timeoutId=setTimeout(function(){e.loading=!1},1e3);var t=this.isDraft;this.$actions.switchPortfolioDraft(this.$store.state.portfolio).then(function(n){n&&(t?(_.A.track("PORTFOLIO_PUBLISHED",N(N({},_.A.getUrls()),{},{event_group:_.A.MixpanelEventGroups.PORTFOLIO,portfolio_id:e.$store.state.portfolio._id})),e.$store.commit("updateChecklistItem",O.QT.PUBLISH)):_.A.track("PORTFOLIO_UNPUBLISHED",N(N({},_.A.getUrls()),{},{event_group:_.A.MixpanelEventGroups.PORTFOLIO,portfolio_id:e.$store.state.portfolio._id})),e.closeUpgradeDropdown())})},openDomainPurchase:function(){this.blocked||this.$router.push("/home/domain/search")}},computed:{ChecklistInteractionEnum:function(){return O.QT},blocked:function(){var e;return!(0,C.w3)(O.O5.PUBLISH_PORTFOLIO,this.$store.state.userSettings.currentSubscriptionPlan,null===(e=this.$store.state.userSettings.currentSubscription)||void 0===e?void 0:e.status)},isDraft:function(){return!!this.$store.state.portfolio.draft},getPublishButtonText:function(){return"".concat(this.isDraft?"Publish":"Unpublish")},showPublishTooltip:function(){return this.$store.state.showPublishTooltip&&this.isDraft},portfolioURL:function(){return this.$store.getters.pageViewURL.replace(/^https?:\/\//,"")},hasOwnDomain:function(){return this.$store.state.portfolio.ownDomainAddress}}},U=(0,M.A)(B,[["render",function(e,t,n,a,b,w){var S=(0,r.g2)("Icon"),k=(0,r.g2)("Cta"),_=(0,r.g2)("LargeTooltip"),O=(0,r.g2)("ChecklistTooltip"),C=(0,r.g2)("InlineUrlEditInput"),T=(0,r.g2)("Tag");return(0,r.uX)(),(0,r.CE)("div",l,[(0,r.Lk)("div",null,[(0,r.Lk)("div",c,[(0,r.bF)(k,{type:w.isDraft?"primary":"primary subtle",class:(0,o.C4)({"right-icon":w.isDraft}),"dark-scheme":"",size:"small",onClick:(0,i.withModifiers)(w.handlePublishClick,["stop"]),loading:b.loading&&!w.isDraft},{default:(0,r.k6)(function(){return[(0,r.Lk)("div",u,[(0,r.eW)((0,o.v_)(w.getPublishButtonText)+" ",1),w.isDraft?((0,r.uX)(),(0,r.Wv)(S,{key:0,width:18,height:18,"icon-name":"chevron-down"})):(0,r.Q3)("v-if",!0)])]}),_:1},8,["type","class","onClick","loading"]),w.showPublishTooltip?((0,r.uX)(),(0,r.CE)("div",{key:0,onClick:t[0]||(t[0]=function(t){return e.$store.state.showPublishTooltip=!1}),class:"tooltip-bg"})):(0,r.Q3)("v-if",!0),w.showPublishTooltip?((0,r.uX)(),(0,r.Wv)(_,{key:1,title:"Ready to go live?",subt
2itle:"When youâre ready, publish your portfolio and share it with the world!","arrow-pos":"top top-right"})):(0,r.Q3)("v-if",!0),n.upgradeDropdownOpen||e.$store.state.checklist.activeInteraction!==w.ChecklistInteractionEnum.PUBLISH?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(O,{key:2}))])]),(0,r.bF)(i.Transition,{name:"drop-down-from-toolbar"},{default:(0,r.k6)(function(){return[n.upgradeDropdownOpen?((0,r.uX)(),(0,r.CE)("div",d,[w.blocked?((0,r.uX)(),(0,r.CE)("div",p,[t[3]||(t[3]=(0,r.Lk)("div",{class:"title-text"},"Ready to publish",-1)),(0,r.Lk)("div",f,[(0,r.bF)(C),(0,r.bF)(k,{"dark-scheme":"",type:"upgrade",onClick:w.openPrices},{default:(0,r.k6)(function(){return s(t[2]||(t[2]=[(0,r.eW)("Upgrade to publish",-1)]))}),_:1},8,["onClick"])])])):((0,r.uX)(),(0,r.CE)("div",h,[t[5]||(t[5]=(0,r.Lk)("div",{class:"title-text"},"Ready to publish",-1)),(0,r.Lk)("div",m,[w.hasOwnDomain?((0,r.uX)(),(0,r.CE)("div",v,[(0,r.bF)(S,{"icon-name":"link",class:"leading-icon"}),(0,r.eW)(" "+(0,o.v_)(w.portfolioURL),1)])):((0,r.uX)(),(0,r.Wv)(C,{key:0})),(0,r.bF)(k,{"dark-scheme":"",type:"primary",onClick:w.publish},{default:(0,r.k6)(function(){return s(t[4]||(t[4]=[(0,r.eW)("Publish",-1)]))}),_:1},8,["onClick"])])])),(0,r.Lk)("div",g,[(0,r.Lk)("div",y,[(0,r.Lk)("a",{class:(0,o.C4)(["dd-select-item",{blocked:w.blocked}]),onClick:t[1]||(t[1]=function(){return w.openDomainPurchase&&w.openDomainPurchase.apply(w,arguments)})},[(0,r.bF)(S,{height:24,width:24,"icon-name":"web"}),t[6]||(t[6]=(0,r.eW)(" Get a custom domain ",-1)),w.blocked?((0,r.uX)(),(0,r.Wv)(T,{key:0,"icon-name":"lock",text:"Upgrade to unlock","dark-scheme":"",onClick:(0,i.withModifiers)(w.openPrices,["stop"])},null,8,["onClick"])):(0,r.Q3)("v-if",!0)],2)])])],512)):(0,r.Q3)("v-if",!0)]}),_:1})])}],["__scopeId","data-v-5f8c162e"]]),H=U},24684(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o={class:"sidebar-overlay"},i={class:"ufo-sepa--cop-det"};var s=n(99298),a=n(92343);const l={name:"overlaying-sidebar-panel",components:{ScrollableContainer:n(89954).A,PanelHeader:s.A,PanelFooter:a.A},emits:["save","cancel","close"],methods:{triggerSave:function(){this.$emit("save")},triggerCancel:function(){this.$emit("cancel")},triggerClose:function(){this.$emit("close")}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("PanelHeader"),u=(0,r.g2)("ScrollableContainer"),d=(0,r.g2)("PanelFooter");return(0,r.uX)(),(0,r.CE)("div",o,[(0,r.bF)(c,{"cascading-view":!0,onClose:t[0]||(t[0]=function(e){return l.triggerClose()})}),(0,r.bF)(u,null,{default:(0,r.k6)(function(){return[(0,r.Lk)("div",i,[(0,r.RG)(e.$slots,"default",{},void 0,!0)])]}),_:3}),(0,r.bF)(d,{onPrimaryAction:t[1]||(t[1]=function(e){return l.triggerSave()}),onSecondaryAction:t[2]||(t[2]=function(e){return l.triggerCancel()})})])}],["__scopeId","data-v-e7ffb284"]])},57831(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(20641),o={class:"option-bar-group-container"};const i={name:"OptionBarGroup"};n(23608);const s=(0,n(66262).A)(i,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",o,[(0,r.RG)(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-0256d85b"]])},92343(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(20641),o=n(90033);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a={key:0,class:"ufo-sepa--buttons"},l={class:"e-ui-b2-regular"};var c=n(5412),u=n(46335);const d={name:"panel-footer",components:{Cta:c.A,Icon:u.A},data:function(){return{showSecondaryText:!1}},computed:{settings:function(){return this.$store.state.sidePanelSettings},showActionButtons:function(){return!this.settings.hideActionButtons},message:function(){return this.settings.infoAboveCtasMessage?this.settings.infoAboveCtasMessage:this.showSecondaryText?"Your colors on custom backgrounds auto-adjust for clear readability.":"Your colors only update on sections without a custom background."},hasInfoLink:function(){return!!this.settings.infoAboveCtasLinkUrl},showWhyToggle:function(){return!this.showSecondaryText&&!this.settings.infoAboveCtasMessage}},methods:{primaryAction:function(){this.$store.state.sidePanelSettings.activeModal=null,this.$emit("primaryAction")},secondaryAction:function(){this.$store.state.sidePanelSettings.activeModal=null,this.$emit("secondaryAction")},navigateToInfoLink:function(){this.$router.push(this.settings.infoAboveCtasLinkUrl)},showColorOverrideExplanation:function(){this.showSecondaryText=!0},hideColorOverrideExplanation:function(){this.showSecondaryText=!1},back:function(){this.$emit("back")},close:function(){this.$emit("close")}}};const p=(0,n(66262).A)(d,[["render",function(e,t,n,s,c,u){var d=(0,r.g2)("Icon"),p=(0,r.g2)("Cta");return u.showActionButtons?((0,r.uX)(),(0,r.CE)("div",a,[u.settings.showInfoAboveCtas?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"info-above-cta",onMouseleave:t[5]||
2(t[5]=function(e){return u.hideColorOverrideExplanation()})},[(0,r.Lk)("p",l,[(0,r.eW)((0,o.v_)(u.message)+" ",1),u.hasInfoLink?((0,r.uX)(),(0,r.Wv)(p,{key:0,type:"link","dark-scheme":"",onClick:t[0]||(t[0]=function(e){return u.navigateToInfoLink()})},{default:(0,r.k6)(function(){return[(0,r.eW)((0,o.v_)(u.settings.infoAboveCtasLinkText)+" ",1),(0,r.bF)(d,{"icon-name":"arrow-out",width:14,height:14})]}),_:1})):u.showWhyToggle?((0,r.uX)(),(0,r.Wv)(p,{key:1,type:"link","dark-scheme":"",onClick:t[1]||(t[1]=function(e){return u.showColorOverrideExplanation()}),onMouseover:t[2]||(t[2]=function(e){return u.showColorOverrideExplanation()}),onFocus:t[3]||(t[3]=function(e){return u.showColorOverrideExplanation()}),onBlur:t[4]||(t[4]=function(e){return u.hideColorOverrideExplanation()})},{default:(0,r.k6)(function(){return i(t[8]||(t[8]=[(0,r.eW)(" Why? ",-1)]))}),_:1})):(0,r.Q3)("v-if",!0)])],32)):(0,r.Q3)("v-if",!0),(0,r.bF)(p,{type:"secondary","dark-scheme":"",onClick:t[6]||(t[6]=function(e){return u.secondaryAction()})},{default:(0,r.k6)(function(){return i(t[9]||(t[9]=[(0,r.eW)(" Cancel ",-1)]))}),_:1}),(0,r.bF)(p,{disabled:!u.settings.allowSave,"dark-scheme":"",onClick:t[7]||(t[7]=function(e){return u.primaryAction()})},{default:(0,r.k6)(function(){return[(0,r.eW)((0,o.v_)(u.settings.saveButton),1)]}),_:1},8,["disabled"])])):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-0051c6e0"]])},99298(e,t,n){"use strict";n.d(t,{A:()=>k});var r=n(20641),o=n(90033),i={class:"ufo-sepa--head"},s={class:"head-control"},a={class:"head-title-container"},l={class:"head-title-row"},c={class:"ufo-sepa--title"},u={class:"ufo-sepa--title head-title-context"},d={key:0,class:"head-subtitle"},p={class:"head-subtitle-text"},f={class:"head-control-actions"},h={key:0,class:"head-tabs"};var m=n(5412),v=n(46335),g=n(80074),y=n(97229),b=n(74256),w=n(68438);const S={name:"panel-header",props:{cascadingView:{type:Boolean,default:!1},showCaseStudyContext:{type:Boolean,default:!1},showPortfolioContext:{type:Boolean,default:!1}},components:{TabBar:y.A,TabItem:g.A,Icon:v.A,Cta:m.A},computed:{settings:function(){return this.$store.state.sidePanelSettings},title:function(){var e;return"Edit buttons"===this.settings.title?"Edit ".concat(null!==(e=this.settings.editedCtaType)&&void 0!==e?e:b.tZ.PRIMARY," buttons"):this.settings.title},showContext:function(){return!this.cascadingView&&this.settings.panel===b.jF.MAIN_PANEL&&(this.showCaseStudyContext&&this.$store.getters.isCaseStudy||this.showPortfolioContext&&!this.$store.getters.isCaseStudy)},contextTitle:function(){return this.$store.getters.isCaseStudy?"Case study":"Portfolio"},showCaseStudySubtitle:function(){return this.showContext&&this.$store.getters.isCaseStudy},caseStudyTitle:function(){var e=this.$store.state.project,t=e.sections[0];return null!==e.name?e.name:(0,w.sZ)(t.title.text)},showBack:function(){return!this.settings.hideBackButton},hasUnsavedChanges:function(){return this.settings.allowSave}},methods:{back:function(){this.hasUnsavedChanges?this.$store.commit("updateSidePanel",{activeModal:"CancelConfirmModal"}):this.$emit("back")},close:function(){this.hasUnsavedChanges?this.$store.commit("updateSidePanel",{activeModal:"CancelConfirmModal"}):this.$emit("close")},selectTab:function(e){this.$store.commit("updateSidePanel",{activeTab:e})}}};const k=(0,n(66262).A)(S,[["render",function(e,t,n,m,v,g){var y=(0,r.g2)("Icon"),b=(0,r.g2)("Cta"),w=(0,r.g2)("SmallTooltip"),S=(0,r.g2)("TabItem"),k=(0,r.g2)("TabBar");return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",s,[g.showBack&&!n.cascadingView?((0,r.uX)(),(0,r.Wv)(b,{key:0,type:"icon xl back subtle no-bg","dark-scheme":!0,onClick:t[0]||(t[0]=function(e){return g.back()})},{default:(0,r.k6)(function(){return[(0,r.bF)(y,{"icon-name":"back"})]}),_:1})):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",a,[(0,r.Lk)("div",l,[(0,r.Lk)("div",c,(0,o.v_)(g.title),1),g.showContext?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.bF)(y,{class:"head-title-separator","icon-name":"chevron-right",width:20,height:20}),(0,r.Lk)("div",u,(0,o.v_)(g.contextTitle),1)],64)):(0,r.Q3)("v-if",!0)]),g.showCaseStudySubtitle?((0,r.uX)(),(0,r.CE)("div",d,[(0,r.bF)(y,{height:16,width:16,"icon-name":"page"}
2),(0,r.Lk)("span",p,(0,o.v_)(g.caseStudyTitle),1)])):(0,r.Q3)("v-if",!0)]),(0,r.Lk)("div",f,[e.showGlobalToggle?((0,r.uX)(),(0,r.CE)("div",{key:0,ref:"globalToggleRef",class:"color-toggle-btn",onMouseenter:t[2]||(t[2]=function(t){return e.hovering=!0}),onMouseleave:t[3]||(t[3]=function(t){return e.hovering=!1})},[(0,r.bF)(b,{type:"icon xl subtle no-bg","dark-scheme":!0,onClick:t[1]||(t[1]=function(t){return e.toggleGlobalSettingForPanel()})},{default:(0,r.k6)(function(){return[(0,r.bF)(y,{"icon-name":e.displayIcon},null,8,["icon-name"])]}),_:1}),e.hovering?((0,r.uX)(),(0,r.Wv)(w,{key:0,text:e.globalToggleTooltip,"target-element":e.$refs.globalToggleRef},null,8,["text","target-element"])):(0,r.Q3)("v-if",!0)],544)):(0,r.Q3)("v-if",!0),(0,r.bF)(b,{type:"icon xl close subtle no-bg","dark-scheme":!0,onClick:t[4]||(t[4]=function(e){return g.close()})},{default:(0,r.k6)(function(){return[(0,r.bF)(y,{"icon-name":"close"})]}),_:1})])]),g.settings.tabPills?((0,r.uX)(),(0,r.CE)("div",h,[(0,r.bF)(k,{"dark-scheme":"","hide-border":""},{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(g.settings.tabPills,function(e){return(0,r.uX)(),(0,r.Wv)(S,{key:e.type,onClick:function(t){return g.selectTab(e.type)},active:g.settings.activeTab===e.type,"dark-scheme":"",label:e.label},null,8,["onClick","active","label"])}),128))]}),_:1})])):(0,r.Q3)("v-if",!0)])}],["__scopeId","data-v-486c0890"]])},89954(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(20641),o={ref:"scrollable",class:"scrollable-container"};const i={name:"ScrollableContainer",computed:{selectedTab:function(){return this.$store.state.sidePanelSettings.activeTab}},watch:{selectedTab:function(){this.$refs.scrollable.scrollTop=0}}};const s=(0,n(66262).A)(i,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",o,[(0,r.RG)(e.$slots,"default",{},void 0,!0)],512)}],["__scopeId","data-v-0e182f88"]])},60447(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>z});var r=n(20641),o=n(50953),i=n(82124),s=n(36596);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=Symbol("cursorState");function u(){var e=(0,o.KR)(0),t=(0,o.KR)(0),n=(0,o.KR)(!1),i=(0,o.KR)(!1),l=(0,o.KR)(!1),u=(0,o.KR)(!1),d=(0,r.EW)(function(){return i.value?"project":n.value?"hover":"default"}),p=(0,r.EW)(function(){return{transform:"translate3d(".concat(e.value,"px, ").concat(t.value,"px, 0)")}});function f(r){e.value=r.clientX,t.value=r.clientY,u.value=!1;var o=r.target.closest('a, button, .btn, [role="button"], input, select, textarea, .clickable');n.value=!!o}function h(e){null===e.relatedTarget&&(u.value=!0)}function m(){u.value=!1}function v(e){i.value=e}var g=new Set,y=null;function b(){l.value=!0}function w(){l.value=!1}function S(e){g.has(e)||(e.addEventListener("mouseenter",b),e.addEventListener("mouseleave",w),g.add(e))}function k(e){e.removeEventListener("mouseenter",b),e.removeEventListener("mouseleave",w),g.delete(e)}(0,r.sV)(function(){window.addEventListener("mousemove",f),document.documentElement.addEventListener("mouseout",h),document.documentElement.addEventListener("mouseover",m),s.A.on("project-hover",v),document.querySelectorAll("iframe").forEach(S),(y=new MutationObserver(function(e){var t,n=a(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;
2r.addedNodes.forEach(function(e){"IFRAME"===e.nodeName&&S(e),e.querySelectorAll&&e.querySelectorAll("iframe").forEach(S)}),r.removedNodes.forEach(function(e){"IFRAME"===e.nodeName&&k(e),e.querySelectorAll&&e.querySelectorAll("iframe").forEach(k)})}}catch(e){n.e(e)}finally{n.f()}})).observe(document.body,{childList:!0,subtree:!0})}),(0,r.hi)(function(){var e;window.removeEventListener("mousemove",f),document.documentElement.removeEventListener("mouseout",h),document.documentElement.removeEventListener("mouseover",m),s.A.off("project-hover",v),g.forEach(k),g.clear(),null===(e=y)||void 0===e||e.disconnect(),y=null});var _={x:e,y:t,isHovering:n,isProjectHovering:i,isOverIframe:l,isOutsideWindow:u,currentState:d,containerStyle:p};return(0,r.Gt)(c,_),_}function d(){return(0,r.WQ)(c)}var p="custom-cursor-style";function f(){var e=document.getElementById(p);return e||((e=document.createElement("style")).id=p,document.head.appendChild(e)),e}function h(){var e;null===(e=document.getElementById(p))||void 0===e||e.remove()}function m(e,t){if("DEFAULT"===e)return h(),document.body.style.cursor="auto",void document.documentElement.style.removeProperty("cursor");t?(f().innerHTML=".ufo--portfolio-page, .ufo--portfolio-page *,\n .ufo-sepa--container, .ufo-sepa--container *,\n .ufo--nav-bar, .ufo--nav-bar * { cursor: none !important; }",document.body.style.cursor="auto",document.documentElement.style.removeProperty("cursor")):(f().innerHTML="* { cursor: none !important; }",document.body.style.cursor="none",document.documentElement.style.setProperty("cursor","none","important"))}var v={name:"CursorBase"};const g=Object.assign(v,{setup:function(e){var t=(0,i.Pj)();!function(e,t){(0,r.sV)(function(){return m(e.value,t.value)}),(0,r.hi)(function(){h(),document.body.style.cursor="auto",document.documentElement.style.removeProperty("cursor")}),(0,r.wB)(e,function(e){return m(e,t.value)}),(0,r.wB)(t,function(t){return m(e.value,t)})}((0,r.EW)(function(){var e;return(null===(e=t.state.portfolio)||void 0===e||null===(e=e.templateSettings)||void 0===e?void 0:e.cursorType)||"DEFAULT"}),(0,r.EW)(function(){return t.state.cursorPreviewMode}));var n=0,o=0,s=u(),a=s.x,l=s.y;return a.value=n,l.value=o,(0,r.wB)(a,function(e){n=e}),(0,r.wB)(l,function(e){o=e}),function(e,t){return(0,r.RG)(e.$slots,"default")}}});var y=n(90033),b={name:"CursorCircle"};const w=Object.assign(b,{setup:function(e){var t=d(),n=t.currentState,i=t.containerStyle,s=t.isOverIframe,a=t.isOutsideWindow;return function(e,t){return(0,r.uX)(),(0,r.CE)("div",{class:(0,y.C4)(["cursor-circle",["circle-size-".concat((0,o.R1)(n)),{"cursor-hidden":(0,o.R1)(s)||(0,o.R1)(a)}]]),style:(0,y.Tr)((0,o.R1)(i))},null,6)}}});var S=n(66262);const k=(0,S.A)(w,[["__scopeId","data-v-6f0ef19f"]]);var _=n(34528),O={name:"CursorArrow"};const C=Object.assign(O,{setup:function(e){var t=d(),i=t.currentState,s=t.containerStyle,a=t.isOverIframe,l=t.isOutsideWindow;function c(e){try{return{layer1:n(36389)("./".concat(e,".svg")),layer2:null}}catch(e){}var t=null,r=null;try{t=n(19909)("./".concat(e,"_1.svg"))}catch(e){}try{r=n(67536)("./".concat(e,"_2.svg"))}catch(e){}return t||r?{layer1:t,layer2:r}:null}var u=(0,r.EW)(function(){return[{name:"hover",svg:c("hover")},{name:"project",svg:c("project_hover")}].filter(function(e){return e.svg})});return function(e,t){return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("div",{class:(0,y.C4)(["cursor-circle",["circle-size-".concat((0,o.R1)(i)),{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,6),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(u.value,function(e){var t;return(0,r.uX)(),(0,r.CE)(r.FK,{key:"icon-".concat(e.name)},[null!==(t=e.svg)&&void 0!==t&&t.layer1?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:0,src:e.svg.layer1,class:(0,y.C4)(["cursor-overlay-icon",[{active:(0,o.R1)(i)===e.name},{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,8,["src","class","style"])):(0,r.Q3)("v-if",!0)],64)}),128))],64)}}}),T=(0,S.A)(C,[["__scopeId","data-v-6417facd"]]);var A={name:"CursorLabeled"};const E=Object.assign(A,{setup:function(e){var t=d(),i=t.currentState,s=t.containerStyle,a=t.isOverIframe,l=t.isOutsideWindow;function c(e){try{return{layer1:n(23811)("./".concat(e,".svg")),layer2:null}}catch(e){}var t=null,r=null;try{t=n(52895)("./".concat(e,"_1.svg"))}catch(e){}try{r=n(66974)("./".concat(e,"_2.svg"))}catch(e){}return t||r?{layer1:t,layer2:r}:null}var u=(0,r.EW)(function(){return c("hover")}),p=(0,r.EW)(function(){return c("project_hover")});return function(e,t){var n,c;return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("div",{class:(0,y.
2C4)(["cursor-circle",["circle-size-".concat((0,o.R1)(i)),{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,6),null!==(n=u.value)&&void 0!==n&&n.layer1?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:0,src:u.value.layer1,class:(0,y.C4)(["cursor-overlay-icon",[{active:"hover"===(0,o.R1)(i)},{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,8,["src","class","style"])):(0,r.Q3)("v-if",!0),null!==(c=p.value)&&void 0!==c&&c.layer1?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:1,src:p.value.layer1,class:(0,y.C4)(["cursor-overlay-icon",[{active:"project"===(0,o.R1)(i)},{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,8,["src","class","style"])):(0,r.Q3)("v-if",!0)],64)}}}),x=(0,S.A)(E,[["__scopeId","data-v-e63ecaaa"]]);var P={class:"cursor-wrapper cursor-type-blurred"},I={name:"CursorBlurred"};const L=Object.assign(I,{setup:function(e){var t=d(),i=t.currentState,s=t.containerStyle,a=t.isOverIframe,l=t.isOutsideWindow;function c(e){try{return{layer1:n(89956)("./".concat(e,".svg")),layer2:null}}catch(e){}var t=null,r=null;try{t=n(11264)("./".concat(e,"_1.svg"))}catch(e){}try{r=n(533)("./".concat(e,"_2.svg"))}catch(e){}return t||r?{layer1:t,layer2:r}:null}var u=(0,r.EW)(function(){return[{name:"default",svg:c("default")},{name:"hover",svg:c("hover")},{name:"project",svg:c("project_hover")}].filter(function(e){return e.svg})});return function(e,t){return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("div",{class:(0,y.C4)(["cursor-blur-lens",["lens-size-".concat((0,o.R1)(i)),{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,6),(0,r.Lk)("div",{class:(0,y.C4)(["cursor-outline-ring",["lens-size-".concat((0,o.R1)(i)),{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,6),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(u.value,function(e){var t;return(0,r.uX)(),(0,r.CE)(r.FK,{key:"overlay-".concat(e.name)},[null!==(t=e.svg)&&void 0!==t&&t.layer1?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:0,src:e.svg.layer1,class:(0,y.C4)(["cursor-overlay-svg",[{active:(0,o.R1)(i)===e.name},{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]]),style:(0,y.Tr)((0,o.R1)(s))},null,8,["src","class","style"])):(0,r.Q3)("v-if",!0)],64)}),128)),(0,r.Lk)("div",{class:(0,y.C4)(["custom-cursor-container",{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]),style:(0,y.Tr)((0,o.R1)(s))},[(0,r.Lk)("div",P,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(u.value,function(e){var t;return(0,r.uX)(),(0,r.CE)("div",{key:"state-".concat(e.name),class:(0,y.C4)(["cursor-state",["cursor-state-".concat(e.name),{active:(0,o.R1)(i)===e.name}]])},[null!==(t=e.svg)&&void 0!==t&&t.layer2?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:0,src:e.svg.layer2,class:"cursor-svg-layer2"},null,8,["src"])):(0,r.Q3)("v-if",!0)],2)}),128))])],6)],64)}}}),j=(0,S.A)(L,[["__scopeId","data-v-3fe31924"]]);var M={class:"cursor-wrapper cursor-type-figma"},D={name:"CursorFigma"};const R=Object.assign(D,{setup:function(e){var t=d(),i=t.currentState,s=t.containerStyle,a=t.isOverIframe,l=t.isOutsideWindow;function c(e){try{return{layer1:n(33408)("./".concat(e,".svg")),layer2:null}}catch(e){}var t=null,r=null;try{t=n(74724)("./".concat(e,"_1.svg"))}catch(e){}try{r=n(75833)("./".concat(e,"_2.svg"))}catch(e){}return t||r?{layer1:t,layer2:r}:null}var u=(0,r.EW)(function(){return[{name:"default",svg:c("default")},{name:"hover",svg:c("hover")},{name:"project",svg:c("project_hover")}].filter(function(e){return e.svg})});return function(e,t){return(0,r.uX)(),(0,r.CE)("div",{class:(0,y.C4)(["custom-cursor-container",{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]),style:(0,y.Tr)((0,o.R1)(s))},[(0,r.Lk)("div",M,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(u.value,function(e){var t,n;return(0,r.uX)(),(0,r.CE)("div",{key:"state-".concat(e.name),class:(0,y.C4)(["cursor-state",["cursor-state-".concat(e.name),{active:(0,o.R1)(i)===e.name}]])},[null!==(t=e.svg)&&void 0!==t&&t.layer2?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:0,src:e.svg.layer2,class:"cursor-svg-layer2"},null,8,["src"])):(0,r.Q3)("v-if",!0),null!==(n=e.svg)&&void 0!==n&&n.layer1?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:1,src:e.svg.layer1,class:"cursor-svg-layer1"},null,8,["src"])):(0,r.Q3)("v-if",!0)],2)}),128))])],6)}}}),N=(0,S.A)(R,[["__scopeId","data-v-07ddca83"]]);var F={class:"cursor-wrapper cursor-type-emoji"},B={name:"CursorEmoji"};const U=Object.assign(B,{setup:function(e){var t=d(),i=t.currentState,s=t.containerStyle,a=t.isOverIframe,l=t.isOutsideWindow;function c(e){try{return{layer1:n(54882)("./".concat(e,".svg")),layer2:null}}catch(e){}var t=null,r=null;try{t=n(30026)("./".concat(e,"_1.svg"))}catch(e){}try{r=n(48859)("./".concat(e,"_2.svg"))}catch(e){}return t||r?{layer1:t,layer2:r}:null}var u=(0,r.EW)(function(){return[{name:"default",svg:c("default")},{name:"hover",svg:c("hover")},{name:"project",svg:c("project_hover")}].filter(function(e){return e.svg})});return function(e,t){return(0,r.uX)(),(0,r.CE)("div",{class:(0,y.
2C4)(["custom-cursor-container",{"cursor-hidden":(0,o.R1)(a)||(0,o.R1)(l)}]),style:(0,y.Tr)((0,o.R1)(s))},[(0,r.Lk)("div",F,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(u.value,function(e){var t,n;return(0,r.uX)(),(0,r.CE)("div",{key:"state-".concat(e.name),class:(0,y.C4)(["cursor-state",["cursor-state-".concat(e.name),{active:(0,o.R1)(i)===e.name}]])},[null!==(t=e.svg)&&void 0!==t&&t.layer2?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:0,src:e.svg.layer2,class:"cursor-svg-layer2"},null,8,["src"])):(0,r.Q3)("v-if",!0),null!==(n=e.svg)&&void 0!==n&&n.layer1?((0,r.uX)(),(0,r.Wv)((0,o.R1)(_.A),{key:1,src:e.svg.layer1,class:"cursor-svg-layer1"},null,8,["src"])):(0,r.Q3)("v-if",!0)],2)}),128))])],6)}}}),H=(0,S.A)(U,[["__scopeId","data-v-0c4a1e9e"]]);var $={name:"Cursor"};const z=Object.assign($,{setup:function(e){var t=(0,i.Pj)(),n=(0,r.EW)(function(){var e;return(null===(e=t.state.portfolio)||void 0===e||null===(e=e.templateSettings)||void 0===e?void 0:e.cursorType)||"DEFAULT"}),s=(0,o.KR)(!1);function a(){if("undefined"!=typeof window){var e=window.innerWidth,t=navigator.userAgent||"",n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t),r=navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Macintosh/.test(t),o=e<1024;s.value=!!(n||r||o)}}return(0,r.sV)(function(){a(),window.addEventListener("resize",a)}),(0,r.xo)(function(){window.removeEventListener("resize",a)}),function(e,t){return"DEFAULT"===n.value||s.value?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(g,{key:0},{default:(0,r.k6)(function(){return["CIRCLE"===n.value?((0,r.uX)(),(0,r.Wv)(k,{key:0})):"ARROW"===n.value?((0,r.uX)(),(0,r.Wv)(T,{key:1})):"LABELED"===n.value?((0,r.uX)(),(0,r.Wv)(x,{key:2})):"BLURRED"===n.value?((0,r.uX)(),(0,r.Wv)(j,{key:3})):"FIGMA"===n.value?((0,r.uX)(),(0,r.Wv)(N,{key:4})):"EMOJI"===n.value?((0,r.uX)(),(0,r.Wv)(H,{key:5})):(0,r.Q3)("v-if",!0)]}),_:1}))}}})},80411(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(20641);const o={name:"ClickOutsideObserver",emits:["click-outside","close"],props:{isActive:{type:Boolean,default:!1},ignoredClassList:{type:Array,default:[]},forceCloseOnClickOutside:{type:Boolean,default:!1}},mounted:function(){this.isActive&&document.addEventListener("mousedown",this.handleClickOutside)},beforeUnmount:function(){this.cleanupObserver()},watch:{isActive:function(e){e?document.addEventListener("mousedown",this.handleClickOutside):this.cleanupObserver()}},methods:{handleClickOutside:function(e){var t,n=null===(t=this.$el)||void 0===t?void 0:t.nextElementSibling,r=this.ignoredClassList.some(function(t){return e.target.closest(".".concat(t))});!n||n.contains(e.target)||r||this.$store.state.activeModal&&!this.forceCloseOnClickOutside||this.$emit("click-outside",e)},cleanupObserver:function(){document.removeEventListener("mousedown",this.handleClickOutside)}}};const i=(0,n(66262).A)(o,[["render",function(e,t,n,o,i,s){return(0,r.RG)(e.$slots,"default")}]])},1293(e,t,n){"use strict";n.d(t,{A:()=>T});var r=n(20641),o=n(90033),i={key:0,class:"background-wrapper"};var s=n(74256),a=n(34528),l=n(77200),c=n(53713),u=n(44718),d=n(49471),p=n(94124),f=n(73837),h=n(58322),m=n(67809),v=n(26827),g=n(68760),y=n(76107),b=n(82124),w=n(21781);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C={name:"template-hero-background",components:{InlineSvg:a.A},data:function(){return{EditedImageTypeEnum:s.i4,bgStyles:[{id:"0",thumbnail:"bg_style_1",layers:[l],type:"none"},{id:"1",thumbnail:"bg_style_2",layers:[l],type:"solid"},{id:"2",thumbnail:"bg_style_3",layers:[l,c],type:"gradient"},{id:"3",thumbnail:"bg_style_4",layers:[l,u],type:"gradient"},{id:"4",thumbnail:"bg_style_5",layers:[l,d],type:"gradient"},{id:"5",thumbnail:"bg_style_6",layers:[l,p],type:"gradient"}
2,{id:"6",thumbnail:"bg_style_7",layers:[l,f],type:"gradient"},{id:"7",thumbnail:"bg_style_8",layers:[l,h,m],type:"gradient"},{id:"8",thumbnail:"bg_style_9",layers:[l,v,g],type:"gradient"}]}},mounted:function(){var e=this;this.$nextTick(function(){setTimeout(function(){e.modifySvgElements()},100)})},computed:_(_(_({},(0,b.L8)(["portfolioHero"])),(0,b.L8)("design",["colorStyles","colorPalette"])),{},{selectedBackgroundStyle:function(){var e=this;return this.bgStyles.find(function(t){var n;return t.id===(null===(n=e.portfolioHero)||void 0===n||null===(n=n.backgroundSettings)||void 0===n?void 0:n.selectedBackgroundStyleId)})},setCustomClass:function(){return[this.showOverlay?"overlay":null,this.showBlur?"blur":null].toString().replace(","," ")},showOverlay:function(){var e,t,n;return!(null===(e=this.portfolioHero)||void 0===e||!e.overlaySettings.overlay)&&(null===(t=this.portfolioHero)||void 0===t?void 0:t.overlaySettings.overlay.a)>0&&!(null!==(n=this.portfolioHero)&&void 0!==n&&n.backgroundSettings.usingCustomBackground)},showBlur:function(){var e,t;return!(null===(e=this.portfolioHero)||void 0===e||!e.overlaySettings.blur||null!==(t=this.portfolioHero)&&void 0!==t&&t.backgroundSettings.usingCustomBackground)},setDim:function(){var e;if(null!==(e=this.portfolioHero)&&void 0!==e&&e.overlaySettings.overlay){var t,n,r,o,i,s,a,l,c="rgba(".concat(null===(t=this.portfolioHero)||void 0===t?void 0:t.overlaySettings.overlay.r,", ").concat(null===(n=this.portfolioHero)||void 0===n?void 0:n.overlaySettings.overlay.g,", ").concat(null===(r=this.portfolioHero)||void 0===r?void 0:r.overlaySettings.overlay.b,", ").concat(null===(o=this.portfolioHero)||void 0===o?void 0:o.overlaySettings.overlay.a,")");if(null!==(null===(i=this.portfolioHero)||void 0===i?void 0:i.overlaySettings.overlay.paletteColorIndex)&&void 0!==(null===(s=this.portfolioHero)||void 0===s?void 0:s.overlaySettings.overlay.paletteColorIndex))c=(0,y.j5)(this.colorPalette.colors[null===(a=this.portfolioHero)||void 0===a?void 0:a.overlaySettings.overlay.paletteColorIndex],null===(l=this.portfolioHero)||void 0===l?void 0:l.overlaySettings.overlay.a);return c}return null},setBlur:function(){var e,t,n;if(null!==(e=this.portfolioHero)&&void 0!==e&&e.overlaySettings.blur&&(null===(t=this.portfolioHero)||void 0===t||!t.backgroundSettings.usingCustomBackground))return"".concat(null===(n=this.portfolioHero)||void 0===n?void 0:n.overlaySettings.blur,"px")},backgroundImageUrl:function(){if(this.portfolioHero.image&&!this.portfolioHero.usingCustomBackground)return this.portfolioHero.image.croppedImageUrl?this.portfolioHero.image.croppedImageUrl:this.portfolioHero.image.url},backgroundColor:function(){var e,t,n,r;return null!==(e=this.portfolioHero)&&void 0!==e&&e.backgroundSettings.backgroundColor?null!==(t=this.portfolioHero)&&void 0!==t&&t.backgroundSettings.backgroundColor.startsWith("#")?null===(n=this.portfolioHero)||void 0===n?void 0:n.backgroundSettings.backgroundColor:"#".concat(null===(r=this.portfolioHero)||void 0===r?void 0:r.backgroundSettings.backgroundColor):null},setBackground:function(){return{"background-image":this.backgroundImageUrl?"url(".concat(this.backgroundImageUrl,")"):null,"--colorOverlay":this.setDim,"--blur":this.setBlur}},suggestedColorsUsed:function(){var e,t,n;return(null===(e=this.portfolioHero)||void 0===e?void 0:e.backgroundSettings.backgroundColor)&&!(null!==(t=this.portfolioHero)&&void 0!==t&&t.backgroundSettings.backgroundColor.startsWith("#"))&&Object.values(s.bH).includes(null===(n=this.portfolioHero)||void 0===n?void 0:n.backgroundSettings.backgroundColor)},suggestedColorOptions:function(){return(0,y.bH)(this.colorStyles,this.colorPalette)}}),methods:{modifySvgElements:function(){var e=this;this.$nextTick(function(){e.$el.querySelectorAll("svg").forEach(function(e,t){var n="gradient-portfolio-hero-".concat(t);e.querySelectorAll("linearGradient").forEach(function(t){var r=t.id,o="".concat(n,"-").concat(r);t.id=o,e.querySelectorAll('[fill="url(#'.concat(r,')"], [stroke="url(#').concat(r,')"]')).forEach(function(e){e.setAttribute("fill","url(#".concat(o,")")),e.setAttribute("stroke","url(#".concat(o,")"))})})})})},getSvgColor:function(e){var t,n=this.suggestedColorsUsed,r=this.selectedBackgroun
2dStyle,o=this.portfolioHero,i=this.suggestedColorOptions;if(null===this.portfolioHero.selectedBackgroundStyleId&&null!==(t=this.portfolioHero)&&void 0!==t&&t.backgroundSettings.backgroundColor)return this.setBackground;if(n){var s=i[r.type][null==o?void 0:o.backgroundSettings.backgroundColor];return{color:0===e?s[0]:s[1]}}return 0===e?{color:(0,w.WT)(null==o?void 0:o.backgroundSettings.backgroundColor,this.colorPalette)}:{color:(0,w.WT)(null==o?void 0:o.backgroundSettings.gradientColor1,this.colorPalette)}}}};const T=(0,n(66262).A)(C,[["render",function(e,t,n,s,a,l){var c,u,d=(0,r.g2)("InlineSvg");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo--page-hero-background",l.setCustomClass]),style:(0,o.Tr)(l.setBackground)},[null!==(c=e.portfolioHero)&&void 0!==c&&c.backgroundSettings.usingCustomBackground&&(null===(u=e.portfolioHero)||void 0===u?void 0:u.backgroundSettings.selectedBackgroundStyleId)>0?((0,r.uX)(),(0,r.CE)("div",i,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(l.selectedBackgroundStyle.layers,function(e,t){return(0,r.uX)(),(0,r.Wv)(d,{key:e,class:"background-svg",src:e,style:(0,o.Tr)([l.getSvgColor(t)])},null,8,["src","style"])}),128))])):(0,r.Q3)("v-if",!0)],6)}],["__scopeId","data-v-da1cc644"]])},72751(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(20641),o=n(53751),i=n(90033),s={class:"loader-container"},a={class:"middle-content"},l={class:"step-text"},c={key:1,class:"error-text-wrapper"},u={class:"error-message"},d={class:"disclaimer-wrapper"},p={class:"error-buttons-wrapper"},f={class:"text"};var h=n(1868);function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const g={name:"AILoader",props:["loadSteps","visibleStepsNum","error","close","retry","stop","disclaimer"],components:{Icon:n(46335).A,TertiaryButton:h.A},data:function(){return{visibleSteps:[],currentIndex:3,timer:null}},mounted:function(){this.loadSteps&&this.loadSteps.length?(this.visibleSteps=this.loadSteps.slice(0,this.visibleStepsNum),this.currentIndex=this.visibleStepsNum,this.startLoop()):console.warn("AILoader: loadSteps is undefined or empty.")},beforeUnmount:function(){this.stopLoop()},methods:{startLoop:function(){var e=this;this.timer=setInterval(function(){var t=e.loadSteps[e.currentIndex];t&&(e.visibleSteps=[].concat(m(e.visibleSteps.slice(1)),[t])),e.currentIndex=(e.currentIndex+1)%e.loadSteps.length},1e3)},stopLoop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}};const y=(0,n(66262).A)(g,[["render",function(e,t,n,h,m,v){var g=(0,r.g2)("Icon"),y=(0,r.g2)("TertiaryButton");return(0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",a,[!n.error&&m.visibleSteps.length?((0,r.uX)(),(0,r.Wv)(o.TransitionGroup,{key:0,name:"overlap-fade",tag:"div",class:"loading-state"},{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(m.visibleSteps,function(e,t){var n;return(0,r.uX)(),(0,r.CE)("div",{key:null!==(n=null==e?void 0:e.id)&&void 0!==n?n:t,class:(0,i.C4)(["loading-step","step-"+t])},[(0,r.bF)(g,{"icon-name":"ai-sparkling-icon"}),(0,r.Lk)("span",l,(0,i.v_)(null==e?void 0:e.text),1)],2)}),128))]}),_:1})):((0,r.uX)(),(0,r.CE)("div",c,[(0,r.Lk)("div",u,[(0,r.bF)(g,{"icon-name":"info"}),t[0]||(t[0]=(0,r.eW)(" Server issue. Please try again ",-1))])]))]),(0,r.Lk)("div",d,[(0,r.Lk)("div",p,[n.stop&&!n.error?((0,r.uX)(),(0,r.Wv)(y,{key:0,"dark-scheme":"",type:"subtle",onClick:n.stop,icon:"ai-stop-icon",text:"Stop"},null,8,["onClick"])):(0,r.Q3)("v-if",!0),n.error?((0,r.uX)(),(0,r.Wv)(y,{key:1,"dark-scheme":"",type:"subtle",onClick:n.close,icon:"close",text:"Close generator"},null,8,["onClick"])):(0,r.Q3)("v-if",!0),n.error?((0,r.uX)(),(0,r.Wv)(y,{key:2,"dark-scheme":"",type:"subtle",onClick:n.retry,icon:"rotate",text:"Retry"},null,8,["onClick"])):(0,r.Q3)("v-if",!0)]),(0,r.Lk)("div",f,(0,i.v_)(n.disclaimer),1)])])}],["__scopeId","data-v-b6b270c8"]])},68072(e,t,n){"use strict";n.d(t,{A:()=>k});
2var r=n(20641),o=n(90033),i={class:"limit-tag"},s={class:"limit-text"},a={key:0,class:"popover"},l={class:"content-wrapper"},c={class:"text-wrapper"},u={class:"title"},d={class:"upgrade-card-wrapper"};var p=n(46335),f=n(1868),h=n(33639),m=n(74256);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w={name:"LimitTag",components:{TertiaryButton:f.A,Icon:p.A},props:{aiFeature:{type:String,required:!0}},data:function(){return{showPopover:!1}},computed:{limitReached:function(){return!this.$store.getters.userHasAiToken(m._s[this.aiFeature])},remainingActions:function(){return this.$store.state.user.featureTokens[m._s[this.aiFeature]]}},methods:{onMouseEnter:function(){this.popoverTimeout&&(clearTimeout(this.popoverTimeout),this.popoverTimeout=null),this.showPopover=!0},onMouseLeave:function(){var e=this;this.popoverTimeout=setTimeout(function(){e.showPopover=!1},100)},navigate:function(){h.A.track("UPGRADE_CTA_CLICKED",y(y({},h.A.getUrls()),{},{event_group:h.A.MixpanelEventGroups.USER_LIFECYCLE,source:this.aiFeature,context:"Editor - ".concat(this.aiFeature),to:"Prices"})),this.$router.push("/home/prices")}}};const S=(0,n(66262).A)(w,[["render",function(e,t,n,p,f,h){var m=(0,r.g2)("Icon"),v=(0,r.g2)("TertiaryButton");return(0,r.uX)(),(0,r.CE)("div",{class:"limit-tag-container",ref:"limit-tag",onMouseenter:t[0]||(t[0]=function(){return h.onMouseEnter&&h.onMouseEnter.apply(h,arguments)}),onMouseleave:t[1]||(t[1]=function(){return h.onMouseLeave&&h.onMouseLeave.apply(h,arguments)})},[(0,r.Lk)("div",i,[(0,r.bF)(m,{"icon-name":h.limitReached?"lock":"ai-sparkling-icon"},null,8,["icon-name"]),(0,r.Lk)("div",s,(0,o.v_)(h.limitReached?"Limit reached | Upgrade":h.remainingActions+" free AI action"+(1===h.remainingActions?"":"s")),1)]),f.showPopover?((0,r.uX)(),(0,r.CE)("div",a,[(0,r.Lk)("div",l,[(0,r.bF)(m,{"icon-name":"ai-sparkling-icon"}),(0,r.Lk)("div",c,[(0,r.Lk)("div",u,"Remaining: "+(0,o.v_)(h.remainingActions)+" actions",1),t[2]||(t[2]=(0,r.Lk)("div",{class:"subtitle"},"The Free plan includes 2 AI actions",-1))])]),(0,r.Lk)("div",d,[t[3]||(t[3]=(0,r.Lk)("div",{class:"text-wrapper"},[(0,r.Lk)("div",{class:"title"},"Create without limits"),(0,r.Lk)("div",{class:"subtitle"},"Unlock unlimited actions")],-1)),(0,r.bF)(v,{onClick:h.navigate,text:"Upgrade"},null,8,["onClick"])])])):(0,r.Q3)("v-if",!0)],544)}],["__scopeId","data-v-66c41f08"]]),k=S},17672(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(20641),o=n(90033),i={class:"generator-prompt-input-container"},s={class:"editor-toolbar"},a={class:"buttons"},l={key:0,class:"char-counter"},c={key:1,class:"error-message"};var u=n(45442),d=n(60792),p=n(98005),f=n(4760),h=n(52781),m=n(42845),v=h.bP.create({name:"customPlaceholder",group:"inline",inline:!0,selectable:!0,atom:!0,addAttributes:function(){return{value:{default:""}}},parseHTML:function(){return[{tag:"span[data-custom-placeholder]"}]},renderHTML:function(e){var t=e.node,n=e.HTMLAttributes;return["span",(0,h.KV)(n,{"data-custom-placeholder":"",class:"custom-placeholder"}),t.attrs.value]},addNodeView:function(){return function(e){var t=e.node,n=e.getPos,r=e.editor,o=document.createElement("span");return o.classList.add("custom-placeholder"),o.setAttribute("data-custom-placeholder",""),o.textContent=t.attrs.value,o.addEventListener("click",function(e){e.preventDefault();var t=n();if("number"==typeof t){var o=r.state,i=r.view,s=o.tr.setSelection(m.nh.create(o.doc,t));i.dispatch(s)}}),{dom:o,contentDOM:null}}}}),g=n(33639);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?b(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const k={name:"PromptSelector",emits:["useDraftClicked"],props:["prompt","setPrompt","draft","placeholder","error","errorMessage","setPromptHtml","promptHtml","draftButtonText","maxLength"],components:{SimpleAiButton:f.A,EditorContent:u.$Z},data:function(){return{editor:null,focused:!1,internalMaxLength:this.maxLength||null}},mounted:function(){var e=this;if(this.editor=new u.KE({content:"",extensions:[d.A,v,p.A.configure({placeholder:this.placeholder,showOnlyWhenEditable:!0,showOnlyCurrent:!0})],onUpdate:function(){var t=e.editor.getText();if(e.internalMaxLength&&t.length>e.internalMaxLength){var n=t.slice(0,e.internalMaxLength);e.editor.commands.setContent(n,{emitUpdate:!1})}else e.applyTextEdit(e.editor.getHTML(),t)},onBlur:function(){e.focused=!1},onFocus:function(){e.focused=!0}}),this.promptHtml)if(/<[a-z][\s\S]*>/i.test(this.promptHtml))this.editor.commands.setContent(this.promptHtml,{emitUpdate:!1});else{var t=this.convertTextToNodes(this.promptHtml);this.editor.chain().focus().insertContent(t).run()}},methods:{getPlainTextWithPlaceholders:function(){var e=this.editor.getJSON();return this.convertJsonToText(e)},convertJsonToText:function(e){var t=this;return e.content&&Array.isArray(e.content)?e.content.map(function(e){return t.convertJsonToText(e)}).join(""):"customPlaceholder"===e.type&&e.attrs&&e.attrs.value?e.attrs.value:e.text?e.text:""},useDraft:function(){var e=this.convertTextToNodes(this.draft);this.editor.chain().focus().insertContent(e).run(),this.setPrompt(this.draft),this.$emit("useDraftClicked"),"Use example"===this.draftButtonText&&g.A.track("USE_EXAMPLE_CTA_CLICKED",w(w({},g.A.getUrls()),{},{event_group:g.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:"Job Description Input Page"}))},applyTextEdit:function(e,t){var n=this.getPlainTextWithPlaceholders();this.setPromptHtml(t.length?e:""),this.setPrompt(n.length?n:"")},convertTextToNodes:function(e){for(var t,n=[],r=/\[([^\]]+)]/g,o=0;null!==(t=r.exec(e));)t.index>o&&n.push({type:"text",text:e.slice(o,t.index)}),n.push({type:"customPlaceholder",attrs:{value:"["+t[1]+"]"}}),o=r.lastIndex;return o<e.length&&n.push({type:"text",text:e.slice(o)}),n},clearEditor:function(){this.editor&&(this.editor.commands.clearContent({emitUpdate:!1}),this.setPrompt(""),this.setPromptHtml(""))}}};const _=(0,n(66262).A)(k,[["render",function(e,t,n,u,d,p){var f,h=(0,r.g2)("EditorContent"),m=(0,r.g2)("SimpleAiButton");return(0,r.uX)(),(0,r.CE)("div",i,[d.editor?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["input-text-box",[{focused:d.focused,error:n.error}]])},[(0,r.bF)(h,{editor:d.editor,class:(0,o.C4)("ufo--text-area-generator-prompt")},null,8,["editor"]),(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[n.prompt.length?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(m,{key:0,onClick:p.useDraft,icon:"add-text",text:null!==(f=n.draftButtonText)&&void 0!==f?f:"Add starter prompt"},null,8,["onClick","text"]))]),d.editor&&d.internalMaxLength?((0,r.uX)(),(0,r.CE)("div",l,(0,o.v_)(d.editor.getText().length)+" / "+(0,o.v_)(d.internalMaxLength),1)):(0,r.Q3)("v-if",!0)])],2)):(0,r.Q3)("v-if",!0),n.error?((0,r.uX)(),(0,r.CE)("div",c,(0,o.v_)(n.errorMessage),1)):(0,r.Q3)("v-if",!0)])}],["__scopeId","data-v-78cae430"]])},35270(e,t,n){"use strict";n.d(t,{A:()=>T});var r=n(20641),o=n(90033),i=n(53751);function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l={class:"adp-list-profile-container"},c={class:"header-wrapper"},u={class:"statistic-container"},d={class:"stats-wrapper"},p={class:"details-wrapper"},f={key:0,class:"stat-value"},h={class:"stat-name"},m={key:0,class:"empty-state"},v={class:"button-container"};var g=n(46335),y=n(63160);function b(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return w(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(w(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,w(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,w(d,"constructor",c),w(c,"constructor",l),l.displayName="GeneratorFunction",w(c,o,"GeneratorFunction"),w(d),w(d,o,"Generator"),w(d,r,function(){return this}),w(d,"toString",function(){return"[object Generator]"}),(b=function(){return{w:i,m:p}})()}function w(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}w=function(e,t,n,r){function i(t,n){w(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},w(e,t,n,r)}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const O={name:"ADPListProfile",props:["media","section","isPreview"],components:{TertiaryButton:n(1868).A,Icon:g.A},data:function(){return{statItems:{meetingsMinutes:{id:0,name:"Total mentoring time",icon:"mentoring-time-icon",value:null,extension:" mins"},meetingsCompleted:{id:1,name:"Sessions completed",icon:"sessions-icon",value:null,extension:""},averageAttendance:{id:2,name:"Average attendance",icon:"attendance-icon",value:null,extension:"%"}}}},watch:{"media.url":function(){this.fetchProfileData()}},mounted:function(){this.media.url&&this.fetchProfileData()},methods:{navigate:function(){window.open("https://adplist.org/mentors/"+this.media.url,"_blank")},fetchProfileData:function(){var e,t=this;return(e=b().m(function e(){var n,r,o;return b().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,y.A.getAPDListProfile(t.media.url);case 1:n=e.v,r=n.data,Object.entries(r.data).forEach(function(e){var n=S(e,2),r=n[0],o=n[1];t.statItems[r]&&(t.statItems[r].value=o)}),e.n=3;break;case 2:e.p=2,o=e.v,console.error("Failed to load ADPList Profile data:",o);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){_(i,r,o,s,a,"next",e)}function a(e){_(i,r,o,s,a,"throw",e)}s(void 0)})})()},openModal:function(){this.$store.commit("selectSection",this.section),this.$store.commit("setActiveModal","ADPListProfileModal")}}};const C=(0,n(66262).A)(O,[["render",function(e,t,n,a,g,y){var b=(0,r.g2)("Icon"),w=(0,r.g2)("TertiaryButton");return(0,r.uX)(),(0,r.CE)("div",l,[(0,r.Lk)("div",c,[(0,r.bF)(b,{"icon-name":"adplist-logo"}),(0,r.Lk)("button",{class:"adp-list-primary-button",onClick:t[0]||(t[0]=function(){return y.navigate&&y.navigate.apply(y,arguments)})},[t[1]||(t[1]=(0,r.eW)(" Book a session ",-1)),(0,r.bF)(b,{"icon-name":"book-session"})])]),t[4]||(t[4]=(0,r.Lk)("div",{class:"divider"},null,-1)),(0,r.Lk)("div",u,[t[3]||(t[3]=(0,r.Lk)("p",{class:"base-text"},"Community statistics",-1)),(0,r.Lk)("div",d,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(Object.values(g.statItems),function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e.id,class:"stat"},[(0,r.bF)(b,{"icon-name":e.icon},null,8,["icon-name"]),(0,r.Lk)("div",p,[null!==e.value?((0,r.uX)(),(0,r.CE)("p",f,(0,o.v_)(e.value)+(0,o.v_)(e.extension),1)):((0,r.uX)(),(0,r.CE)("div",{key:1,style:(0,o.Tr)({width:60+5*e.extension.length+"px"}),class:"skeleton-state-wrapper"},s(t[2]||(t[2]=[(0,r.Lk)("div",{class:"skeleton-state"},null,-1)])),4)),(0,r.Lk)("p",h,(0,o.v_)(e.name),1)])])}),128))])]),this.media.url||this.isPreview?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",m,[(0,r.Lk)("div",v,[(0,r.bF)(w,{icon:"add",text:"Connect ADPList profile",class:"empty-state-button",onClick:(0,i.withModifiers)(y.openModal,["stop"])},null,8,["onClick"])])]))])}],["__scopeId","data-v-4b8f4d65"]]),T=C},57345(e,t,n){"use strict";n.d(t,{A:()=>m});
2var r=n(20641),o=n(90033),i={class:"logo-carousel-container"},s={ref:"track",class:"logo-carousel-track"};var a=n(85880),l=n(82124);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={SLOW:28,MEDIUM:48,FAST:96};const h={name:"LogoCarousel",props:["section"],data:function(){return{hoverActive:!1,marqueeOffsetPx:0,sequenceWidth:0,marqueeCycleWidth:0,repeatCount:8,gsapTickerCallback:null,setTrackX:null,onWindowResize:null}},computed:d(d({},(0,l.L8)("design",["resolveColor","colorPalette"])),{},{logoStyle:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.logoStyle)||{}},overflowClass:function(){var e=this.logoStyle.overflowStyle||"FULL_WIDTH";return"FADED"===e?"overflow-faded":"CLIPPED"===e?"overflow-clipped":"overflow-full-width"},unifiedClass:function(){return"COLOR_REVEAL"===this.logoStyle.logoHoverInteraction?null:this.logoStyle.unified?"unified":null},densityValue:function(){var e;return null!==(e=this.logoStyle.density)&&void 0!==e?e:null},isGradientBg:function(){var e,t;return null!==(null===(e=this.section.backgroundSettings)||void 0===e?void 0:e.selectedBackgroundStyleId)&&(null===(t=this.section.backgroundSettings)||void 0===t?void 0:t.selectedBackgroundStyleId)>1},baseSpeedPxPerSecond:function(){var e,t=this.logoStyle.animationSpeed||"MEDIUM";return null!==(e=f[t])&&void 0!==e?e:f.MEDIUM},isClipped:function(){return"CLIPPED"===(this.logoStyle.overflowStyle||"FULL_WIDTH")},clipBoundaryStyle:function(){var e,t,n=null===(e=this.logoStyle.clippedLineColor)||void 0===e||null===(e=e.text)||void 0===e?void 0:e.idle;if(!n)return null;var r=Number.isFinite(n.paletteColorIndex)&&(null===(t=this.colorPalette)||void 0===t||null===(t=t.colors)||void 0===t?void 0:t[n.paletteColorIndex])||n.color;return r?{background:r}:null}}),watch:{"section.logos":{deep:!0,handler:function(){var e=this;this.$nextTick(function(){return e.refreshSequenceWidth()})}}},mounted:function(){var e=this;this.$nextTick(function(){e.initializeTrackSetter(),e.refreshSequenceWidth(),e.startMarqueeLoop()}),this.onWindowResize=function(){return e.refreshSequenceWidth()},window.addEventListener("resize",this.onWindowResize)},beforeUnmount:function(){this.onWindowResize&&window.removeEventListener("resize",this.onWindowResize),this.stopMarqueeLoop()},methods:{logoMaxHeight:function(e){var t=parseFloat(null==e?void 0:e.width);return parseFloat(null==e?void 0:e.height)>t?"64px":"32px"},initializeTrackSetter:function(){this.$refs.track&&(this.setTrackX=a.Ay.quickSetter(this.$refs.track,"x","px"),a.Ay.set(this.$refs.track,{x:0,force3D:!0}))},applyTrackOffset:function(){this.setTrackX&&this.setTrackX(-this.marqueeOffsetPx)},refreshSequenceWidth:function(){var e,t=null===(e=this.$refs.track)||void 0===e?void 0:e.querySelector(".logo-carousel-sequence");if(t){var n=parseFloat(window.getComputedStyle(this.$refs.track).columnGap)||0,r=(t.offsetWidth||0)+n;if(r){var o=this.resolveCycleRepeatCount(r);this.sequenceWidth=r,this.marqueeCycleWidth=r*o,this.marqueeOffsetPx=this.marqueeCycleWidth>0?this.marqueeOffsetPx%this.marqueeCycleWidth:0,this.applyTrackOffset(),this.repeatCount=Math.max(4,o+Math.ceil(window.innerWidth/this.sequenceWidth)+2)}}},resolveCycleRepeatCount:function(e){var t=Number(e)||0;return t<=0?1:Math.max(1,Math.ceil(window.innerWidth/t))},getCurrentSpeedPxPerSecond:function(){var e=this.baseSpeedPxPerSecond,t=this.logoStyle.sectionHoverInteraction||"NONE";return"PAUSE"===t&&this.hoverActive?0:"SLOW_DOWN"===t&&this.hoverActive?.45*e:e},startMarqueeLoop:function(){var e=this;if(!this.gsapTickerCallback){var t=a.Ay.ticker.time;this.gsapTickerCallback=function(){var n=a.Ay.ticker.time,r=Math.max(0,n-t);t=n;var o=e.getCurrentSpeedPxPerSecond();e.marqueeCycleWidth>0&&o>
20&&(e.marqueeOffsetPx=(e.marqueeOffsetPx+o*r)%e.marqueeCycleWidth,e.applyTrackOffset())},a.Ay.ticker.add(this.gsapTickerCallback)}},stopMarqueeLoop:function(){this.gsapTickerCallback&&(a.Ay.ticker.remove(this.gsapTickerCallback),this.gsapTickerCallback=null)}}};const m=(0,n(66262).A)(h,[["render",function(e,t,n,a,l,c){return(0,r.uX)(),(0,r.CE)("div",i,[c.isClipped?((0,r.uX)(),(0,r.CE)("span",{key:0,class:"clip-boundary left",style:(0,o.Tr)(c.clipBoundaryStyle)},null,4)):(0,r.Q3)("v-if",!0),c.isClipped?((0,r.uX)(),(0,r.CE)("span",{key:1,class:"clip-boundary right",style:(0,o.Tr)(c.clipBoundaryStyle)},null,4)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,o.C4)(["logo-carousel-shell",c.overflowClass]),onMouseenter:t[0]||(t[0]=function(e){return l.hoverActive=!0}),onMouseleave:t[1]||(t[1]=function(e){return l.hoverActive=!1})},[(0,r.Lk)("div",s,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(l.repeatCount,function(t){return(0,r.uX)(),(0,r.CE)("div",{key:t,class:"logo-carousel-sequence"},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.section.logos,function(n,i){return(0,r.uX)(),(0,r.CE)("div",{key:"".concat(t,"-").concat(i),class:"logo-carousel-item",style:(0,o.Tr)({"--logo-max-height":c.logoMaxHeight(n)})},[(0,r.Lk)("div",{class:(0,o.C4)(["logo-box",c.unifiedClass,{gradient:c.isGradientBg}]),style:(0,o.Tr)({"--density":c.densityValue})},[(0,r.RG)(e.$slots,"default",{logo:n,index:i})],6)],4)}),128))])}),128))],512)],34)])}]])},93789(e,t,n){"use strict";n.d(t,{A:()=>U});var r=n(20641),o=n(90033),i={key:1,class:"background-wrapper"};var s=n(74256),a=n(34528),l=n(77200),c=n(53713),u=n(44718),d=n(49471),p=n(94124),f=n(73837),h=n(58322),m=n(67809),v=n(26827),g=n(68760),y=n(76107),b=n(82124),w=n(21781),S={class:"animated-background"};var k=n(84076);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=Object.freeze({AURORA:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(6257)]).then(n.bind(n,81268))}),LIGHT_RAYS:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(2127)]).then(n.bind(n,67019))}),BEAMS:(0,r.$V)(function(){return Promise.all([n.e(9437),n.e(1796),n.e(4839)]).then(n.bind(n,31939))}),THREADS:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(2072)]).then(n.bind(n,47751))}),LINE_WAVES:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(6182)]).then(n.bind(n,41533))}),PARTICLES:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(1278)]).then(n.bind(n,11936))}),DOT_GRID:(0,r.$V)(function(){return Promise.all([n.e(4423),n.e(2079)]).then(n.bind(n,40464))}),SQUARES:(0,r.$V)(function(){return n.e(663).then(n.bind(n,130))}),PIXEL_BLAST:(0,r.$V)(function(){return Promise.all([n.e(9437),n.e(6374),n.e(2258)]).then(n.bind(n,74195))}),GRAINIENT:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(4770)]).then(n.bind(n,18580))}),GRADIENT_BLINDS:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(8802)]).then(n.bind(n,29266))}),SILK:(0,r.$V)(function(){return Promise.all([n.e(7735),n.e(318)]).then(n.bind(n,97747))})});
2const E={name:"AnimatedBackground",props:{selection:{type:Object,default:null},colorPalette:{type:Object,default:null}},computed:{rendererKey:function(){var e;return(null===(e=this.selection)||void 0===e?void 0:e.rendererKey)||null},rendererComponent:function(){return this.rendererKey?A[this.rendererKey]:null},selectedPreset:function(){var e=this;return k.C.find(function(t){return t.rendererKey===e.rendererKey})||null},resolvedProps:function(){var e,t,n=this,r=JSON.parse(JSON.stringify((null===(e=this.selectedPreset)||void 0===e?void 0:e.baseProps)||{}));return null===(t=this.selection)||void 0===t||t.colorSlots.forEach(function(e){var t=(0,y.iL)(e.defaultColor,n.colorPalette);t&&null!=e&&e.propPath&&n.setValueByPath(r,e.propPath,t)}),r},rendererProps:function(){var e=C(C({},this.resolvedProps),{},{className:"animated-background-fill",style:{width:"100%",height:"100%"}});return this.normalizeRendererProps(e),e}},methods:{normalizeRendererProps:function(e){"THREADS"===this.rendererKey&&"string"==typeof e.color&&(e.color=this.hexToNormalizedRgb(e.color))},hexToNormalizedRgb:function(e){var t=String(e||"").replace("#","");return 6!==t.length?[1,1,1]:[parseInt(t.slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255]},setValueByPath:function(e,t,n){var r=t.replace(/\[(\d+)\]/g,".$1").split(".").filter(Boolean);if(r.length){for(var o=e,i=0;i<r.length-1;i++){var s=r[i],a=r[i+1],l=/^\d+$/.test(a);void 0!==o[s]&&null!==o[s]||(o[s]=l?[]:{}),o=o[s]}o[r[r.length-1]]=n}}}};var x=n(66262);const P=(0,x.A)(E,[["render",function(e,t,n,o,i,s){return(0,r.uX)(),(0,r.CE)("div",S,[s.rendererComponent?((0,r.uX)(),(0,r.Wv)((0,r.$y)(s.rendererComponent),(0,r.v6)({key:0},s.rendererProps,{class:"animated-background-renderer"}),null,16)):(0,r.Q3)("v-if",!0)])}],["__scopeId","data-v-4fad80bc"]]);var I=["pointermove","pointerdown","pointerup","pointerleave"],L=["mousemove","mousedown","click","mouseleave"],j={capture:!0,passive:!0},M=new Set(["pointerleave","mouseleave"]);function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){F(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const B={name:"SectionBackground",mixins:[{data:function(){return{animatedBackgroundInteractionRootEl:null,animatedBackgroundInteractionListeners:[],animatedBackgroundMouseMoveRaf:null,animatedBackgroundPendingMouseMoveEvent:null,animatedBackgroundBridgeSetupRaf:null,isForwardingAnimatedBackgroundEvent:!1}},mounted:function(){this.syncAnimatedBackgroundInteractionBridge()},beforeUnmount:function(){this.stopAnimatedBackgroundInteractionBridge()},watch:{showAnimatedBackground:function(){this.syncAnimatedBackgroundInteractionBridge()}},methods:{syncAnimatedBackgroundInteractionBridge:function(){this.showAnimatedBackground?this.startAnimatedBackgroundInteractionBridge():this.stopAnimatedBackgroundInteractionBridge()},startAnimatedBackgroundInteractionBridge:function(){var e,t,n=this;this.stopAnimatedBackgroundInteractionBridge();var r=null===(e=this.$el)||void 0===e||null===(t=e.closest)||void 0===t?void 0:t.call(e,".ufo-sec");
2r&&(this.animatedBackgroundInteractionRootEl=r,this.addAnimatedBackgroundInteractionListeners(r),this.animatedBackgroundBridgeSetupRaf=requestAnimationFrame(function(){n.animatedBackgroundBridgeSetupRaf=null,n.getAnimatedBackgroundOverlayInteractionRoots().forEach(function(e){n.addAnimatedBackgroundInteractionListeners(e)})}))},stopAnimatedBackgroundInteractionBridge:function(){this.animatedBackgroundBridgeSetupRaf&&(cancelAnimationFrame(this.animatedBackgroundBridgeSetupRaf),this.animatedBackgroundBridgeSetupRaf=null),this.animatedBackgroundInteractionListeners.forEach(function(e){e.element.removeEventListener(e.type,e.handler,e.options)}),this.animatedBackgroundInteractionListeners=[],this.animatedBackgroundInteractionRootEl=null,this.animatedBackgroundMouseMoveRaf&&(cancelAnimationFrame(this.animatedBackgroundMouseMoveRaf),this.animatedBackgroundMouseMoveRaf=null),this.animatedBackgroundPendingMouseMoveEvent=null},addAnimatedBackgroundInteractionListener:function(e,t,n,r){e.addEventListener(t,n,r),this.animatedBackgroundInteractionListeners.push({element:e,type:t,handler:n,options:r})},addAnimatedBackgroundInteractionListeners:function(e){var t=this;I.forEach(function(n){t.addAnimatedBackgroundInteractionListener(e,n,t.handleAnimatedBackgroundPointerEvent,j)}),L.forEach(function(n){t.addAnimatedBackgroundInteractionListener(e,n,t.handleAnimatedBackgroundMouseEvent,j)})},getAnimatedBackgroundOverlayInteractionRoots:function(){var e=this.animatedBackgroundInteractionRootEl;return e?Array.from(document.querySelectorAll(".ufo-sec--navigation.nav-overlay")).filter(function(t){return t!==e}):[]},shouldForwardAnimatedBackgroundSourceEvent:function(e){if(M.has(e.type))return!0;if(e.currentTarget===this.animatedBackgroundInteractionRootEl)return!0;var t=this.animatedBackgroundInteractionRootEl;if(!t||!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return!1;var n=t.getBoundingClientRect();return e.clientX>=n.left&&e.clientX<=n.right&&e.clientY>=n.top&&e.clientY<=n.bottom},shouldHandleAnimatedBackgroundSourceEvent:function(e){if(!this.isForwardingAnimatedBackgroundEvent&&!this.isAnimatedBackgroundEditorInteractionEvent(e))return this.shouldForwardAnimatedBackgroundSourceEvent(e)},isAnimatedBackgroundEditorInteractionEvent:function(e){var t,n;return!(null===(t=e.target)||void 0===t||null===(n=t.closest)||void 0===n||!n.call(t,".ufo-fab--container"))},handleAnimatedBackgroundPointerEvent:function(e){this.shouldHandleAnimatedBackgroundSourceEvent(e)&&this.forwardPointerEventToAnimatedBackground(e,e.type)},getAnimatedBackgroundInteractionTarget:function(){var e,t=null===(e=this.$refs.animatedBackground)||void 0===e?void 0:e.$el;return t?t.querySelector("canvas")||t:null},handleAnimatedBackgroundMouseEvent:function(e){this.shouldHandleAnimatedBackgroundSourceEvent(e)&&("mousemove"!==e.type?this.forwardMouseEventToAnimatedBackground(e,e.type):this.throttleAnimatedBackgroundMouseMove(e))},throttleAnimatedBackgroundMouseMove:function(e){var t=this;this.animatedBackgroundPendingMouseMoveEvent=e,this.animatedBackgroundMouseMoveRaf||(this.animatedBackgroundMouseMoveRaf=requestAnimationFrame(function(){t.animatedBackgroundMouseMoveRaf=null;var e=t.animatedBackgroundPendingMouseMoveEvent;t.animatedBackgroundPendingMouseMoveEvent=null,e&&t.forwardMouseEventToAnimatedBackground(e,"mousemove")}))},forwardMouseEventToAnimatedBackground:function(e,t){if(this.showAnimatedBackground){var n=this.getAnimatedBackgroundInteractionTarget();if(n){var r=new MouseEvent(t,{bubbles:!1,cancelable:!0,composed:!0,clientX:e.clientX,clientY:e.clientY,screenX:e.screenX,screenY:e.screenY,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey});this.isForwardingAnimatedBackgroundEvent=!0;try{n.dispatchEvent(r)}finally{this.isForwardingAnimatedBackgroundEvent=!1}}}},forwardPointerEventToAnimatedBackground:function(e,t){if(this.showAnimatedBackground){var n=this.getAnimatedBackgroundInteractionTarget();if(n){var r;r="undefined"!=typeof PointerEvent?new PointerEvent(t,{bubbles:!1,cancelable:!0,composed:!0,clientX:e.clientX,clientY:e.clientY,screenX:e.screenX,screenY:e.screenY,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,pointerId:e.pointerId,pointerType:e.pointerType,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height}):new MouseEvent(t,{bubbles:!1,cancelable:!0,composed:!0,clientX:e.clientX,clientY:e.clientY,screenX:e.screenX,screenY:e.screenY,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey}
2),this.isForwardingAnimatedBackgroundEvent=!0;try{n.dispatchEvent(r)}finally{this.isForwardingAnimatedBackgroundEvent=!1}}}}}}],components:{AnimatedBackground:P,InlineSvg:a.A},props:{section:{type:Object,default:null}},data:function(){return{EditedImageTypeEnum:s.i4,bgStyles:[{id:"0",thumbnail:"bg_style_1",layers:[l],type:"none"},{id:"1",thumbnail:"bg_style_2",layers:[l],type:"solid"},{id:"2",thumbnail:"bg_style_3",layers:[l,c],type:"gradient"},{id:"3",thumbnail:"bg_style_4",layers:[l,u],type:"gradient"},{id:"4",thumbnail:"bg_style_5",layers:[l,d],type:"gradient"},{id:"5",thumbnail:"bg_style_6",layers:[l,p],type:"gradient"},{id:"6",thumbnail:"bg_style_7",layers:[l,f],type:"gradient"},{id:"7",thumbnail:"bg_style_8",layers:[l,h,m],type:"gradient"},{id:"8",thumbnail:"bg_style_9",layers:[l,v,g],type:"gradient"}]}},computed:N(N({},(0,b.L8)("design",["colorStyles","colorPalette"])),{},{selectedBackgroundStyle:function(){var e=this;return this.bgStyles.find(function(t){var n;return t.id===(null===(n=e.section.backgroundSettings)||void 0===n?void 0:n.selectedBackgroundStyleId)})},showAnimatedBackground:function(){var e;return!(null===(e=this.section)||void 0===e||null===(e=e.backgroundSettings)||void 0===e||!e.animatedBackground)},showStaticBackground:function(){var e,t;return!this.showAnimatedBackground&&!(null===(e=this.section.backgroundSettings)||void 0===e||!e.usingCustomBackground)&&(null===(t=this.section.backgroundSettings)||void 0===t?void 0:t.selectedBackgroundStyleId)>0},showGradient:function(){var e;return!(this.section.type!==s.iK.MAIN_HEADER||!this.$store.state.project.settings.displayOptions||!this.$store.state.project.settings.displayOptions.gradient||(null===(e=this.$store.state.portfolio)||void 0===e||null===(e=e.portfolioHero)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.layoutType)===s.qX.SIDEBAR)},setBackgroundImage:function(){var e,t=null;return this.showAnimatedBackground||!this.section.image||null!==(e=this.section.backgroundSettings)&&void 0!==e&&e.usingCustomBackground||(t=this.section.image.croppedImageUrl?this.section.image.croppedImageUrl:this.section.image.url?this.section.image.url:this.section.image.url||this.section.type!==s.iK.MEDIA?null:"/dist/images/empty-case-study-cover.jpg"),t?{backgroundImage:"url(".concat(t,")")}:null},setCustomClass:function(){return[this.showOverlay?"overlay":null,this.showBlur?"blur":null].toString().replace(","," ")},showOverlay:function(){var e,t,n=null===(e=this.section.overlaySettings)||void 0===e?void 0:e.overlay;return!!n&&n.a>0&&!this.showAnimatedBackground&&!(null!==(t=this.section.backgroundSettings)&&void 0!==t&&t.usingCustomBackground)},showBlur:function(){var e,t;return!(null===(e=this.section.overlaySettings)||void 0===e||!e.blur||this.showAnimatedBackground||null!==(t=this.section.backgroundSettings)&&void 0!==t&&t.usingCustomBackground)},setOverlay:function(){return{"--colorOverlay":this.setDim,"--blur":this.setBlur}},setSidebarOutline:function(){var e,t;if((null===(e=this.section.backgroundSettings)||void 0===e?void 0:e.sidebarBackgroundStyle)!==s.fb.OUTLINED)return null;var n=this.resolveColorData(null===(t=this.section.backgroundSettings)||void 0===t?void 0:t.sidebarOutlineColor);return{outline:"1px solid ".concat(n||"transparent")}},setDim:function(){var e,t=null===(e=this.section.overlaySettings)||void 0===e?void 0:e.overlay;if(t){var n="rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(t.a,")");return null!==t.paletteColorIndex&&void 0!==t.paletteColorIndex&&(n=(0,y.j5)(this.colorPalette.colors[t.paletteColorIndex],t.a)),n}return null},setBlur:function(){var e,t=null===(e=this.section.overlaySettings)||void 0===e?void 0:e.blur;return t?"".concat(t,"px"):null},sectionHeight:function(){var e;return this.section.type===s.iK.MAIN_HEADER?this.section.styleSettings&&null!==(e=this.section.styleSettings)&&void 0!==e&&e.sectionHeight?"".concat(this.section.styleSettings.sectionHeight,"px"):"680px":null},suggestedColorsUsed:function(){var e,t=null===(e=this.section.backgroundSettings)||void 0===e?void 0:e.backgroundColor;return t&&!t.startsWith("#")&&Object.values(s.bH).includes(t)},suggestedColorOptions:function(){return(0,y.bH)(this.colorStyles,this.colorPalette)}}
2),methods:{resolveColorData:function(e){return e?Number.isFinite(e.paletteColorIndex)?(null===(t=this.colorPalette)||void 0===t||null===(t=t.colors)||void 0===t?void 0:t[e.paletteColorIndex])||null:e.color||null:null;var t},getSvgColor:function(e){var t=this.suggestedColorsUsed,n=this.selectedBackgroundStyle,r=this.section,o=this.suggestedColorOptions,i=r.backgroundSettings;if(t){var s=o[n.type][null==i?void 0:i.backgroundColor];return{color:0===e?s[0]:s[1]}}return 0===e?{color:(0,w.WT)(null==i?void 0:i.backgroundColor,this.colorPalette)}:{color:(0,w.WT)(null==i?void 0:i.gradientColor1,this.colorPalette)}}}},U=(0,x.A)(B,[["render",function(e,t,n,s,a,l){var c,u=(0,r.g2)("AnimatedBackground"),d=(0,r.g2)("InlineSvg");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo-sec--bg",{gradient:l.showGradient},l.setCustomClass]),style:(0,o.Tr)([[l.setBackgroundImage,l.setOverlay,l.setSidebarOutline],{"pointer-events":"none"}])},[l.showAnimatedBackground?((0,r.uX)(),(0,r.Wv)(u,{key:0,ref:"animatedBackground",selection:null===(c=n.section)||void 0===c||null===(c=c.backgroundSettings)||void 0===c?void 0:c.animatedBackground,"color-palette":e.colorPalette},null,8,["selection","color-palette"])):(0,r.Q3)("v-if",!0),l.showStaticBackground?((0,r.uX)(),(0,r.CE)("div",i,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(l.selectedBackgroundStyle.layers,function(e,t){return(0,r.uX)(),(0,r.Wv)(d,{key:t,class:"background-svg",src:e,style:(0,o.Tr)([l.getSvgColor(t)]),"unique-ids":"gradient-".concat(n.section._id,"-").concat(t)},null,8,["src","style","unique-ids"])}),128))])):(0,r.Q3)("v-if",!0)],6)}],["__scopeId","data-v-0de7a527"]])},84833(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(90033),i=["href"];var s=n(15637),a=n(74256);const l={name:"SocialIcon",components:{AnimationWrapper:s.A},props:{link:{type:Object,default:null},fillType:{type:String,default:a.gZ.OUTLINE},cornerRadius:{type:Number,default:a.aC},outlineWeight:{type:Number,default:a.p0}},computed:{isFill:function(){return this.fillType===a.gZ.FILL},cleanType:function(){var e,t=((null===(e=this.link)||void 0===e?void 0:e.type)||"").toString().toLowerCase();return"x"===t?"x-twitter":t},resolvedUrl:function(){var e;return(null===(e=this.link)||void 0===e?void 0:e.url)||"#"},itemStyle:function(){var e={borderRadius:"".concat(this.cornerRadius,"px")};return this.isFill||(e["--social-icon-outline-weight"]="".concat(this.outlineWeight,"px")),e}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(c,null,{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("a",{href:l.resolvedUrl,target:"_blank",rel:"nofollow noopener",style:(0,o.Tr)(l.itemStyle),class:(0,o.C4)(["social-icon-item",{fill:l.isFill}])},[(0,r.Lk)("i",{class:(0,o.C4)(["fa","fa-".concat(l.cleanType)])},null,2)],14,i)]}),_:1})}],["__scopeId","data-v-bcb396a0"]])},40481(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(20641),o=n(90033),i=["onClick"],s=["contenteditable","onBlur","onClick","onKeydown"];var a=n(21781),l=n(82124);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={name:"TabsSelector",emits:["tab-change","tab-title-change"],props:{tabs:{type:Array,default:function(){return[]}},sectionBgColor:{type:String,default:null},editable:{type:Boolean,default:!1}},data:function(){return{activeTabIndex:0,activeBubble:null,resizeObserver:null,tabRefs:[],titleRefs:[],editingIndex:null}},computed:d(d({}
2,(0,l.L8)("design",["colorPalette","resolveColor"])),{},{controlThemeClass:function(){return(0,a.Bh)(this.sectionBgColor||this.resolveColor("background"),this.colorPalette)},showActiveBubble:function(){return!!this.activeBubble},activeBubbleStyle:function(){return this.activeBubble?{width:"".concat(this.activeBubble.width,"px"),height:"".concat(this.activeBubble.height,"px"),transform:"translate(".concat(this.activeBubble.left,"px, ").concat(this.activeBubble.top,"px)")}:null}}),watch:{tabs:{deep:!0,handler:function(){var e=this;this.$nextTick(function(){e.activeTabIndex=Math.min(e.activeTabIndex,Math.max(e.tabs.length-1,0)),e.observeTabs(),e.updateActiveBubble()})}},activeTabIndex:function(){this.$nextTick(this.updateActiveBubble)}},mounted:function(){this.observeTabs(),this.$nextTick(this.updateActiveBubble),window.addEventListener("resize",this.updateActiveBubble)},beforeUnmount:function(){window.removeEventListener("resize",this.updateActiveBubble),this.disconnectResizeObserver()},methods:{defaultTitle:function(e){return"Tab ".concat(e+1)},isTitleEditing:function(e){return this.editable&&this.editingIndex===e},setTabRef:function(e,t){this.tabRefs[t]=e||null},setTitleRef:function(e,t){this.titleRefs[t]=e||null},handlePillClick:function(e){this.editable&&this.activeTabIndex===e?this.enterEditMode(e):(this.activeTabIndex=e,this.$emit("tab-change",e))},handleTitleClick:function(e,t){this.isTitleEditing(t)&&e.stopPropagation()},enterEditMode:function(e){var t=this;this.editingIndex!==e&&(this.editingIndex=e,this.$nextTick(function(){var n=t.titleRefs[e];n&&(n.focus(),t.placeCursorAtEnd(n))}))},leaveEditMode:function(e){var t;if(this.editingIndex===e){var n=this.titleRefs[e],r=this.truncateTitle(null==n||null===(t=n.textContent)||void 0===t?void 0:t.trim())||this.defaultTitle(e);n&&(n.textContent=r),this.editingIndex=null,this.$emit("tab-title-change",{index:e,title:r}),this.$nextTick(this.updateActiveBubble)}},onTitleKeyDown:function(e,t){var n;"Enter"!==e.code&&"Escape"!==e.code||(e.preventDefault(),this.leaveEditMode(t),null===(n=this.titleRefs[t])||void 0===n||n.blur())},onTitleBeforeInput:function(e){var t;"insertParagraph"!==e.inputType&&"insertLineBreak"!==e.inputType?e.data&&((null===(t=e.currentTarget)||void 0===t||null===(t=t.textContent)||void 0===t?void 0:t.length)||0)-this.getSelectedTextLength(e.currentTarget)+e.data.length>24&&e.preventDefault():e.preventDefault()},onTitleInput:function(e){var t,n=e.currentTarget;(null==n||null===(t=n.textContent)||void 0===t?void 0:t.length)>24&&(n.textContent=this.truncateTitle(n.textContent),this.placeCursorAtEnd(n)),this.$nextTick(this.updateActiveBubble)},onTitlePaste:function(e){var t,n;e.preventDefault();var r=(null===(t=e.clipboardData)||void 0===t||null===(t=t.getData("text/plain"))||void 0===t?void 0:t.replace(/\s+/g," "))||"",o=(null===(n=e.currentTarget)||void 0===n||null===(n=n.textContent)||void 0===n?void 0:n.length)||0,i=this.getSelectedTextLength(e.currentTarget),s=Math.max(24-o+i,0);this.insertPlainText(this.truncateTitle(r,s)),this.$nextTick(this.updateActiveBubble)},truncateTitle:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;return(e||"").slice(0,t)},getSelectedTextLength:function(e){var t=window.getSelection();return null!=t&&t.rangeCount&&null!=e&&e.contains(t.anchorNode)&&e.contains(t.focusNode)?t.toString().length:0},insertPlainText:function(e){var t=window.getSelection();if(null!=t&&t.rangeCount){t.deleteFromDocument();var n=t.getRangeAt(0),r=document.createTextNode(e);n.insertNode(r),n.setStartAfter(r),n.collapse(!0),t.removeAllRanges(),t.addRange(n)}},placeCursorAtEnd:function(e){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);var n=window.getSelection();n.removeAllRanges(),n.addRange(t)},updateActiveBubble:function(){var e=this.tabRefs[this.activeTabIndex];this.activeBubble=e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:null},observeTabs:function(){var e=this;"undefined"!=typeof ResizeObserver&&(this.disconnectResizeObserver(),this.resizeObserver=new ResizeObserver(function(){e.updateActiveBubble()}),this.$refs.selector&&this.resizeObserver.observe(this.$refs.selector),this.tabRefs.forEac
2h(function(t){t&&e.resizeObserver.observe(t)}))},disconnectResizeObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}}};const h=(0,n(66262).A)(f,[["render",function(e,t,n,a,l,c){return(0,r.uX)(),(0,r.CE)("div",{ref:"selector",class:(0,o.C4)(["tabs-selector",c.controlThemeClass])},[c.showActiveBubble?((0,r.uX)(),(0,r.CE)("span",{key:0,class:"active-bubble",style:(0,o.Tr)(c.activeBubbleStyle)},null,4)):(0,r.Q3)("v-if",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.tabs,function(e,n){return(0,r.uX)(),(0,r.CE)("button",{key:e.tabId||n,ref_for:!0,ref:function(e){return c.setTabRef(e,n)},class:(0,o.C4)(["tab-pill",{active:l.activeTabIndex===n}]),onClick:function(e){return c.handlePillClick(n)}},[(0,r.Lk)("span",{ref_for:!0,ref:function(e){return c.setTitleRef(e,n)},class:"tab-pill-title",contenteditable:c.isTitleEditing(n),onBeforeinput:t[0]||(t[0]=function(){return c.onTitleBeforeInput&&c.onTitleBeforeInput.apply(c,arguments)}),onBlur:function(e){return c.leaveEditMode(n)},onClick:function(e){return c.handleTitleClick(e,n)},onInput:t[1]||(t[1]=function(){return c.onTitleInput&&c.onTitleInput.apply(c,arguments)}),onKeydown:function(e){return c.onTitleKeyDown(e,n)},onPaste:t[2]||(t[2]=function(){return c.onTitlePaste&&c.onTitlePaste.apply(c,arguments)})},(0,o.v_)(e.title||c.defaultTitle(n)),41,s)],10,i)}),128))],2)}],["__scopeId","data-v-2b9c5877"]]),m=h},2411(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(20641),o=n(90033),i=["src","height","alt"];var s=n(34528);const a=n.p+"src/assets/images/portfolio-logo-placeholder.895096de.svg";var l=n(82124);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={name:"PortfolioNavigationLogo",emits:["navigate-home"],components:{InlineSvg:s.A},props:{logo:{type:Object,default:null},userName:{type:String,default:""},logoClass:{type:String,default:"navbar-logo"}},computed:d(d({},(0,l.L8)("design",["colorPalette"])),{},{logoPlaceholder:function(){return a},logoUrl:function(){var e,t=null===(e=this.logo)||void 0===e?void 0:e.media;return null!=t&&t.croppedImageUrl?t.croppedImageUrl:null!=t&&t.url?t.url:null},logoHeight:function(){var e,t=Number(null===(e=this.logo)||void 0===e||null===(e=e.media)||void 0===e?void 0:e.height);return Number.isFinite(t)&&t>0?t:32},isLogo:function(){var e;return"Logo"===(null===(e=this.logo)||void 0===e?void 0:e.mode)},isName:function(){var e;return"Name"===(null===(e=this.logo)||void 0===e?void 0:e.mode)},altText:function(){var e;return null!==(e=this.logo)&&void 0!==e&&null!==(e=e.media)&&void 0!==e&&e.altTag?this.logo.media.altTag:"Portfolio logo"},nameStyle:function(){var e,t;if(!this.isName)return null;var n=null===(e=this.logo)||void 0===e?void 0:e.fontSettings,r=null===(t=this.logo)||void 0===t?void 0:t.textColor;if(!n&&!r)return null;var o={};null!=n&&n.font&&(o.fontFamily=n.font),null!=n&&n.fontWeight&&(o.fontWeight=n.fontWeight),null!=n&&n.fontStyle&&(o.fontStyle=n.fontStyle),null!=n&&n.size&&(o.fontSize="".concat(n.size,"px")),null!=n&&n.lineHeight&&(o.lineHeight="".concat(n.lineHeight,"px"));var i=this.resolveTextColor(r);return i&&(o.color=i),Object.keys(o).length?o:null}}),methods:{resolveTextColor:function(e){var t;if(!e)return null;var n,r=null==e||null===(t=e.text)||void 0===t?void 0:t.idle;return Number.isFinite(null==r?void 0:r.paletteColorIndex)?(null===(n=this.colorPalette)||void 0===n||null===(n=n.colors)||void 0===n?void 0:n[r.paletteColorIndex])||(null==r?void 0:r.color)||(null==e?void 0:e.primaryColor)||null:(null==r?void 0:r.color)||(null==e?void 0:e.primaryColor)||null}}};const h=(0,n(66262).A)(f,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("InlineSvg");
2return l.isLogo?((0,r.uX)(),(0,r.CE)("button",{key:0,type:"button",class:(0,o.C4)([n.logoClass,"navbar-home-link"]),onClick:t[0]||(t[0]=function(t){return e.$emit("navigate-home")})},[l.logoUrl?((0,r.uX)(),(0,r.CE)("img",{key:0,src:l.logoUrl,height:l.logoHeight,alt:l.altText},null,8,i)):((0,r.uX)(),(0,r.Wv)(c,{key:1,src:l.logoPlaceholder,class:"navbar-logo-placeholder","aria-label":l.altText,style:(0,o.Tr)({height:"".concat(l.logoHeight,"px")})},null,8,["src","aria-label","style"]))],2)):l.isName?((0,r.uX)(),(0,r.CE)("button",{key:1,type:"button",class:"navbar-id navbar-home-link",style:(0,o.Tr)(l.nameStyle),onClick:t[1]||(t[1]=function(t){return e.$emit("navigate-home")})},(0,o.v_)(n.userName),5)):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-79e4348c"]])},55445(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(20641),o=n(90033);const i={name:"modal-body",inject:["modalSize"],props:{textAlign:{type:String,default:"left"}}};const s=(0,n(66262).A)(i,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["new-modal-body",[a.modalSize,n.textAlign]])},[(0,r.RG)(e.$slots,"default",{},void 0,!0)],2)}],["__scopeId","data-v-fb0636f8"]])},13124(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20641),o=n(90033),i={class:"new-ufo-cta--container"};const s={name:"modal-footer",inject:["modalSize"]};const a=(0,n(66262).A)(s,[["render",function(e,t,n,s,a,l){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["new-modal-footer",l.modalSize])},[(0,r.Lk)("div",i,[(0,r.RG)(e.$slots,"default",{},void 0,!0)])],2)}],["__scopeId","data-v-a353d0e6"]])},8851(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(20641),o=n(53751),i=n(90033),s=["innerHTML"],a={class:"new-modal-header"},l={class:"new-modal-title"},c={class:"right-side"},u={key:0,class:"new-modal-header-pill-container"},d=["innerHTML"],p={key:1,class:"new-modal-tabs-container"},f={key:2,class:"new-modal-step-container"};var h=n(46335),m=n(5412),v=n(74256);const g={name:"modal-header",components:{Cta:m.A,Icon:h.A},inject:["modalSize"],props:{title:{default:null,type:String},description:{default:null,type:String},darkScheme:{default:!1,type:Boolean},hasTabPills:{type:Boolean,default:null},variant:{type:String,default:null},topNotification:{type:Object,default:function(){return{show:!1,text:"",type:v.o0.INFO,icon:""}}}},methods:{closeModal:function(){this.$emit("close"),this.$parent.$emit("close")}},computed:{hasTabPillsSlot:function(){return null!==this.hasTabPills?this.hasTabPills:!!this.$slots.tabPills},hasStepsSlot:function(){return!!this.$slots.steps},hasHeaderPill:function(){return!!this.$slots.headerPill}}};n(8322);const y=(0,n(66262).A)(g,[["render",function(e,t,n,h,m,v){var g=(0,r.g2)("Icon"),y=(0,r.g2)("Cta");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(o.Transition,{name:"slide-bar"},{default:(0,r.k6)(function(){return[n.topNotification.show?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,i.C4)(["top-notification",n.topNotification.type])},[(0,r.bF)(g,{"icon-name":n.topNotification.icon},null,8,["icon-name"]),(0,r.Lk)("div",{innerHTML:n.topNotification.text},null,8,s)],2)):(0,r.Q3)("v-if",!0)]}),_:1}),(0,r.Lk)("div",{class:(0,i.C4)(["new-modal-header-wrapper",[{"has-tabs":v.hasTabPillsSlot,"has-steps":v.hasStepsSlot,dark:n.darkScheme},v.modalSize,n.variant]])},[(0,r.Lk)("div",a,[(0,r.Lk)("div",l,[(0,r.eW)((0,i.v_)(n.title)+" ",1),(0,r.RG)(e.$slots,"titlePill",{},void 0,!0)]),(0,r.Lk)("div",c,[v.hasHeaderPill?((0,r.uX)(),(0,r.CE)("div",u,[(0,r.RG)(e.$slots,"headerPill",{},void 0,!0)])):(0,r.Q3)("v-if",!0),"small"!==v.modalSize?((0,r.uX)(),(0,r.Wv)(y,{key:1,"dark-scheme":n.darkScheme,type:"icon subtle no-bg",onClick:t[0]||(t[0]=function(e){return v.closeModal()})},{default:(0,r.k6)(function(){return[(0,r.bF)(g,{"icon-name":"close",alt:"Close modal",width:24,height:24})]}),_:1},8,["dark-scheme"])):(0,r.Q3)("v-if",!0)])]),n.description?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"new-modal-description",innerHTML:n.description},null,8,d)):(0,r.Q3)("v-if",!0),v.hasTabPillsSlot?((0,r.uX)(),(0,r.CE)("div",p,[(0,r.RG)(e.$slots,"tabPills",{},void 0,!0)])):(0,r.Q3)("v-if",!0),v.hasStepsSlot?((0,r.uX)(),(0,r.CE)("div",f,[(0,r.RG)(e.$slots,"steps",{},void 0,!0)])):(0,r.Q3)("v-if",!0)],2)],64)}],["__scopeId","data-v-00ffd09a"]])},79271(e,t,n){"use strict";n.d(t,{A:()=>l});
2var r=n(20641),o=n(53751),i=n(90033);const s={name:"modal-wrapper",props:{show:{default:!0,type:Boolean},modalSize:{default:"medium",type:String},darkScheme:{default:!1,type:Boolean},disableOutsideClick:{default:!1,type:Boolean},heightOverwrite:{default:null,type:String}},methods:{closeModal:function(){this.$emit("close")},handleOutsideClick:function(){this.disableOutsideClick||this.$emit("close")},init:function(){this.$emit("init",!0)}},provide:function(){return{modalSize:this.modalSize}}};const a=(0,n(66262).A)(s,[["render",function(e,t,n,s,a,l){return(0,r.uX)(),(0,r.Wv)(o.Transition,{name:"modal",onEnter:l.init,appear:""},{default:(0,r.k6)(function(){return[n.show?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,i.C4)(["new-modal-wrapper",{dark:n.darkScheme}])},[(0,r.Lk)("div",{class:"new-modal-mask",onClick:t[0]||(t[0]=function(e){return l.handleOutsideClick()})}),(0,r.Lk)("div",{class:(0,i.C4)(["new-modal-container","new-modal-container--".concat(n.modalSize)]),style:(0,i.Tr)(n.heightOverwrite?{height:n.heightOverwrite}:void 0)},[(0,r.RG)(e.$slots,"modal-header",{onClose:t[1]||(t[1]=function(){return l.closeModal&&l.closeModal.apply(l,arguments)})},void 0,!0),(0,r.RG)(e.$slots,"modal-body",{},void 0,!0),(0,r.RG)(e.$slots,"modal-footer",{},void 0,!0),(0,r.RG)(e.$slots,"full-size-loader",{},void 0,!0)],6)],2)):(0,r.Q3)("v-if",!0)]}),_:3},8,["onEnter"])}],["__scopeId","data-v-5da7768a"]]),l=a},78465(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(20641),o=n(90033);var i=n(46335),s=n(74256);const a={name:"GalleryArrowButtons",components:{Icon:i.A},props:{controlPosition:{type:String,default:s.IB.SIDES}},emits:["next","scroll-to"],data:function(){return{C:s.IB}}};const l=(0,n(66262).A)(a,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(n.controlPosition===s.C.BOTTOM?"gallery-bottom-arrows":"gallery-sides-arrows")},[(0,r.Lk)("button",{class:"gallery-arrow gallery-arrow--prev",type:"button","aria-label":"Previous image",onClick:t[0]||(t[0]=function(t){return e.$emit("previous")})},[(0,r.bF)(l,{"icon-name":"gallery-arrow-left"})]),(0,r.Lk)("button",{class:"gallery-arrow gallery-arrow--next",type:"button","aria-label":"Next image",onClick:t[1]||(t[1]=function(t){return e.$emit("next")})},[(0,r.bF)(l,{"icon-name":"gallery-arrow-right"})])],2)}],["__scopeId","data-v-39c76d77"]])},8241(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(20641),o=n(90033),i={class:"gallery-carousel__stage"},s={class:"gallery-carousel__track"},a=["data-original-index"];var l=n(8311),c=n(74256),u=n(81661),d=n(84579);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={name:"GalleryCarousel",components:{GalleryArrowButtons:n(78465).A,GalleryControls:d.A},props:{section:{type:Object,default:null},items:{type:Array,default:function(){return[]}},pendingFocusIndex:{type:Number,default:null},isPreview:{type:Boolean,default:!1}},emits:["gallery-item-focus-applied"],data:function(){return{emblaApi:null,selectedScrollSnap:0,scrollSnaps:[],originalImageRatios:{},C:c.IB}},mounted:function(){this.initCarousel()},beforeUnmount:function(){this.destroyCarousel()},watch:{items:function(){this.originalImageRatios={},this.reInitCarousel(),this.focusPendingItem()},pendingFocusIndex:function(){this.focusPendingItem()}},computed:{activeDeviceType:function(){var e;return(null===(e=this.items[0])||void 0===e||null===(e=e.media)||void 0===e||null===(e=e.mockupSettings)||void 0===e?void 0:e.deviceType)||null},minimumLoopItems:function(){return[u.w7.MOBILE,u.w7.TABLET].includes(this.activeDeviceType)?12:8},carouselItems:function(){var e=this;if(!this.items.length)return[];var t=Math.max(1,Math.ceil(this.minimumLoopItems/this.items.length));return Array.from({length:t}).flatMap(function(t,n){return e.items.map(function(t,r){var o;return{item:t,originalIndex:r,renderedIndex:n*e.items.length+r,key:"".concat((null===(o=t.media)||void 0===o?void 0:o.url)||r,"-").concat(n,"-").concat(r)}})})},noMockupColumnSpan:function(){var e,t,n;return"Original"===(null===(e=this.section)||void 0===e?void 0:e.mediaAspectRatio)?this.getOriginalAspectRatioColumnSpan(0,null===(n=this.items[0])||void 0===n?void 0:n.media):{"1_1":6,"3_4":5,"9_16":4}[null===(t=this.section)||void 0===t?void 0:t.mediaAspectRatio]||8},mockupColumnSpan:function(){return m(m(m(m(m({},u.w7.MOBILE,3),u.w7.TABLET,4),u.w7.LAPTOP,8),u.w7.DESKTOP,6),"Monitor",6)[this.activeDeviceType]||this.noMockupColumnSpan},mockupTypeClass:function(){return this.activeDeviceType?this.activeDeviceType.toLowerCase():"no-mockup"},controlsPosition:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.controlsPosition)||this.C.SIDES},activeGalleryItemIndex:function(){var e=this.carouselItems[this.selectedScrollSnap];return"number"==typeof(null==e?void 0:e.originalIndex)?e.originalIndex:0},activeGalleryItem:function(){var e;return(null===(e=this.carouselItems[this.selectedScrollSnap])||void 0===e?void 0:e.item)||null},carouselVars:function(){return{"--gallery-carousel-cols":this.mockupColumnSpan}}},methods:{initCarousel:function(){this.$refs.emblaViewport&&this.carouselItems.length&&(this.emblaApi=(0,l.A)(this.$refs.emblaViewport,{align:"center",loop:!0,slidesToScroll:1}),this.emblaApi.on("select",this.updateCarouselState),this.emblaApi.on("reInit",this.updateCarouselState),this.updateCarouselState(),this.focusPendingItem())},destroyCarousel:function(){var e;null===(e=this.emblaApi)||void 0===e||e.destroy(),this.emblaApi=null},reInitCarousel:function(){var e=this;this.$nextTick(function(){e.emblaApi?(e.emblaApi.reInit(),e.focusPendingItem()):e.initCarousel()})},focusPendingItem:function(){var e=this,t=this.pendingFocusIndex;Number.isInteger(t)&&(t<0||t>=this.items.length||this.$nextTick(function(){e.emblaApi&&(e.emblaApi.scrollTo(t),e.$emit("gallery-item-focus-applied",t))}))},updateCarouselState:function(){this.emblaApi&&(this.selectedScrollSnap=this.emblaApi.selectedScrollSnap(),this.scrollSnaps=this.emblaApi.scrollSnapList(),this.cacheLoadedImageRatios())},scrollPrevious:function(){var e;null===(e=this.emblaApi)||void 0===e||e.scrollPrev()},scrollNext:function(){var e;null===(e=this.emblaApi)||void 0===e||e.scrollNext()},scrollTo:function(e){var t;null===(t=this.emblaApi)||void 0===t||t.scrollTo(e)},handleCarouselImageLoad:function(e){this.storeImageRatio(e.target)},cacheLoadedImageRatios:function(){var e=this;this.$nextTick(function(){var t;((null===(t=e.$refs.emblaViewport)||void 0===t?void 0:t.querySelectorAll(".gallery-carousel__slide img"))||[]).forEac
2h(function(t){t.complete&&e.storeImageRatio(t)})})},storeImageRatio:function(e){var t;if("IMG"===(null==e?void 0:e.tagName)){var n=Number(null===(t=e.closest(".gallery-carousel__slide"))||void 0===t||null===(t=t.dataset)||void 0===t?void 0:t.originalIndex),r=Number(e.naturalWidth),o=Number(e.naturalHeight);Number.isInteger(n)&&r&&o&&(this.originalImageRatios=h(h({},this.originalImageRatios),{},m({},n,r/o)))}},getOriginalAspectRatioColumnSpan:function(e,t){var n=this.originalImageRatios[e];if(n)return this.getColumnSpanForAspectRatio(n);var r=Number(null==t?void 0:t.width),o=Number(null==t?void 0:t.height);return r&&o?this.getColumnSpanForAspectRatio(r/o):4},getColumnSpanForAspectRatio:function(e){return e>=1.2?8:e>=.9?6:e>=.65?5:4}}};const g=(0,n(66262).A)(v,[["render",function(e,t,n,l,c,u){var d,p,f,h=(0,r.g2)("GalleryArrowButtons"),m=(0,r.g2)("GalleryControls");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["gallery-layout-module gallery-layout-module--carousel",u.mockupTypeClass]),style:(0,o.Tr)(u.carouselVars)},[(0,r.Lk)("div",i,[(0,r.Lk)("div",{ref:"emblaViewport",class:"gallery-carousel__viewport",onLoadCapture:t[0]||(t[0]=function(){return u.handleCarouselImageLoad&&u.handleCarouselImageLoad.apply(u,arguments)})},[(0,r.Lk)("div",s,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(u.carouselItems,function(t){return(0,r.uX)(),(0,r.CE)("div",{key:t.key,class:"gallery-carousel__slide","data-original-index":t.originalIndex},[(0,r.RG)(e.$slots,"gallery-item",{item:t.item,index:t.originalIndex,renderedIndex:t.renderedIndex,scrollHintPriority:t.renderedIndex===c.selectedScrollSnap?0:t.renderedIndex+1},void 0,!0)],8,a)}),128))])],544),(null===(d=n.section)||void 0===d?void 0:d.controlsPosition)===c.C.SIDES?((0,r.uX)(),(0,r.Wv)(h,{key:0,"control-position":u.controlsPosition,onNext:t[1]||(t[1]=function(e){return u.scrollNext()}),onPrevious:t[2]||(t[2]=function(e){return u.scrollPrevious()})},null,8,["control-position"])):(0,r.Q3)("v-if",!0)]),(0,r.Lk)("div",{class:(0,o.C4)(["gallery-footer",[{"has-controls":u.controlsPosition===c.C.BOTTOM},{"has-caption":n.section.showCaptions}]])},[n.section.showCaptions?(0,r.RG)(e.$slots,"caption",{key:0,activeItem:u.activeGalleryItem,activeIndex:u.activeGalleryItemIndex,alignLeft:u.controlsPosition===c.C.BOTTOM},void 0,!0):(0,r.Q3)("v-if",!0),(0,r.bF)(m,{"items-length":u.carouselItems.length,"scroll-snaps":c.scrollSnaps,"selected-scroll-snap":c.selectedScrollSnap,"controls-position":null===(p=n.section)||void 0===p?void 0:p.controlsPosition,"layout-type":null===(f=n.section)||void 0===f?void 0:f.layout,onPrevious:u.scrollPrevious,onNext:u.scrollNext,onScrollTo:u.scrollTo},null,8,["items-length","scroll-snaps","selected-scroll-snap","controls-position","layout-type","onPrevious","onNext","onScrollTo"])],2)],6)}],["__scopeId","data-v-7411085c"]]),y=g},84579(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(20641),o=n(90033),i={key:0,class:"gallery-controls"},s={key:0,class:"gallery-dots","aria-label":"Gallery pagination"},a=["aria-label","onClick"];var l=n(74256);const c={name:"GalleryControls",components:{GalleryArrowButtons:n(78465).A},props:{itemsLength:{type:Number,default:0},scrollSnaps:{type:Array,default:function(){return[]}},selectedScrollSnap:{type:Number,default:0},controlsPosition:{type:String,default:l.IB.SIDES},layoutType:{type:String,default:null}},emits:["previous","next","scroll-to"],data:function(){return{C:l.IB,L:l.Bx}},computed:{showDots:function(){return this.layoutType!==this.L.CAROUSEL}}};const u=(0,n(66262).A)(c,[["render",function(e,t,n,l,c,u){var d=(0,r.g2)("GalleryArrowButtons");return n.itemsLength>1?((0,r.uX)(),(0,r.CE)("div",i,[u.showDots?((0,r.uX)(),(0,r.CE)("div",s,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.scrollSnaps,function(t,i){return(0,r.uX)(),(0,r.CE)("button",{key:i,class:(0,o.C4)(["gallery-dot",{"gallery-dot--active":n.selectedScrollSnap===i}]),type:"button","aria-label":"Go to image ".concat(i+1),onClick:function(t){return e.$emit("scroll-to",i)}},null,10,a)}),128))])):(0,r.Q3)("v-if",!0),n.controlsPosition===c.C.BOTTOM?((0,r.uX)(),(0,r.Wv)(d,{key:1,"control-position":n.controlsPosition,onNext:t[0]||(t[0]=function(t){return e.$emit("next")}),onPrevious:t[1]||(t[1]=function(t){return e.$emit("previous")})},null,8,["control-position"])):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-4361327e"]])},31639(e,t,n){"use strict";n.d(t,{A:()=>a});
2var r=n(20641),o=n(90033);var i=n(74256);const s={name:"GalleryGrid",props:{section:{type:Object,default:null},items:{type:Array,default:function(){return[]}},pendingFocusIndex:{type:Number,default:null},isPreview:{type:Boolean,default:!1}},emits:["gallery-item-focus-applied"],watch:{items:function(){this.focusPendingItem()},pendingFocusIndex:function(){this.focusPendingItem()}},mounted:function(){this.focusPendingItem()},computed:{isOffsetGrid:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.layout)===i.Bx.OFFSET_GRID},dynamicClassList:function(){return[{"gallery-layout-module--offset-grid":this.isOffsetGrid},this.noMockupOffsetClass,this.mockupTypeClass]},activeDeviceType:function(){var e;return(null===(e=this.items[0])||void 0===e||null===(e=e.media)||void 0===e||null===(e=e.mockupSettings)||void 0===e?void 0:e.deviceType)||null},mockupTypeClass:function(){return this.activeDeviceType?this.activeDeviceType.toLowerCase():"no-mockup"},columns:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.columns)||3},noMockupOffsetClass:function(){return this.activeDeviceType?null:"no-mockup-cols-".concat(this.columns)},galleryGridVars:function(){var e=this.activeDeviceType?{Mobile:4,Tablet:3}[this.activeDeviceType]||2:this.columns;return{"--gallery-grid-cols":this.columns,"--gallery-offset-grid-cols":e}}},methods:{focusPendingItem:function(){var e=this,t=this.pendingFocusIndex;Number.isInteger(t)&&(t<0||t>=this.items.length||this.$nextTick(function(){var n,r=null===(n=e.$el)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t];r&&(r.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),e.$emit("gallery-item-focus-applied",t))}))},getGridCellStyle:function(e){if(!this.isOffsetGrid)return null;var t=Number(this.galleryGridVars["--gallery-offset-grid-cols"])||2,n=e%4,r=Math.floor(e/4)+1;if(4===t){return{gridColumn:[3,1,4,2][n],gridRow:r}}if(3===t){var o=e%3,i=Math.floor(e/3)+1;return{gridColumn:[3,1,2][o],gridRow:i}}return{gridColumn:e%t+1,gridRow:Math.floor(e/t)+1}}}};const a=(0,n(66262).A)(s,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["gallery-layout-module gallery-layout-module--grid",a.dynamicClassList]),style:(0,o.Tr)(a.galleryGridVars)},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.items,function(t,n){var o;return(0,r.RG)(e.$slots,"gallery-item",{key:(null===(o=t.media)||void 0===o?void 0:o.url)||n,item:t,index:n,scrollHintPriority:n,itemStyle:a.getGridCellStyle(n)},void 0,!0)}),128))],6)}],["__scopeId","data-v-2cc1d481"]])},84140(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(20641),o=n(90033),i={ref:"emblaViewport",class:"gallery-slider__viewport"},s={class:"gallery-slider__track"};var a=n(8311),l=n(84579),c=n(74256),u=n(78465),d=n(82124),p=n(76107),f=n(21781);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={name:"GallerySlider",components:{GalleryArrowButtons:u.A,GalleryControl
2s:l.A},props:{section:{type:Object,default:null},items:{type:Array,default:function(){return[]}},pendingFocusIndex:{type:Number,default:null},isPreview:{type:Boolean,default:!1}},emits:["gallery-item-focus-applied"],data:function(){return{emblaApi:null,selectedScrollSnap:0,scrollSnaps:[],C:c.IB}},mounted:function(){this.initSlider()},beforeUnmount:function(){this.destroySlider()},watch:{items:function(){this.reInitSlider(),this.focusPendingItem()},pendingFocusIndex:function(){this.focusPendingItem()}},computed:v(v({},(0,d.L8)("design",["colorPalette","resolveColor"])),{},{mockupTypeClass:function(){var e;return(null===(e=this.items[0])||void 0===e||null===(e=e.media)||void 0===e||null===(e=e.mockupSettings)||void 0===e?void 0:e.deviceType.toLowerCase())||"no-mockup"},controlThemeClass:function(){var e;return(0,f.Bh)((null===(e=this.section)||void 0===e||null===(e=e.backgroundSettings)||void 0===e?void 0:e.backgroundColor)||this.resolveColor("background"),this.colorPalette)},stageStyle:function(){var e,t,n,r={"--gallery-viewport-radius":"".concat(null!==(e=null===(t=this.section)||void 0===t?void 0:t.cornerRadiusPx)&&void 0!==e?e:0,"px")},o=null===(n=this.section)||void 0===n?void 0:n.stageBackgroundColor;return o&&"no-mockup"!==this.mockupTypeClass?v(v({},r),{},{backgroundColor:(0,p.iL)(o,this.colorPalette)}):r},sliderVars:function(){return"no-mockup"!==this.mockupTypeClass?null:{"--gallery-slider-cols":this.noMockupColumnSpan,"--gallery-slider-start":this.noMockupColumnStart,"--gallery-slider-aspect-ratio":this.normalizedAspectRatio}},noMockupColumnSpan:function(){var e;return{"16_9":8,"4_3":8,"1_1":6,"3_4":4,"9_16":4}[null===(e=this.section)||void 0===e?void 0:e.mediaAspectRatio]||8},noMockupColumnStart:function(){return Math.floor((12-this.noMockupColumnSpan)/2)+1},normalizedAspectRatio:function(){var e;return((null===(e=this.section)||void 0===e?void 0:e.mediaAspectRatio)||"16_9").replace("_"," / ")},activeGalleryItem:function(){return this.items[this.selectedScrollSnap]||null}}),methods:{initSlider:function(){this.$refs.emblaViewport&&this.items.length&&(this.emblaApi=(0,a.A)(this.$refs.emblaViewport,{align:"center",containScroll:"trimSnaps",loop:!0,slidesToScroll:1}),this.emblaApi.on("select",this.updateSliderState),this.emblaApi.on("reInit",this.updateSliderState),this.updateSliderState(),this.focusPendingItem())},destroySlider:function(){var e;null===(e=this.emblaApi)||void 0===e||e.destroy(),this.emblaApi=null},reInitSlider:function(){var e=this;this.$nextTick(function(){e.emblaApi?(e.emblaApi.reInit(),e.focusPendingItem()):e.initSlider()})},focusPendingItem:function(){var e=this,t=this.pendingFocusIndex;Number.isInteger(t)&&(t<0||t>=this.items.length||this.$nextTick(function(){e.emblaApi&&(e.emblaApi.scrollTo(t),e.$emit("gallery-item-focus-applied",t))}))},updateSliderState:function(){this.emblaApi&&(this.selectedScrollSnap=this.emblaApi.selectedScrollSnap(),this.scrollSnaps=this.emblaApi.scrollSnapList())},scrollPrevious:function(){var e;null===(e=this.emblaApi)||void 0===e||e.scrollPrev()},scrollNext:function(){var e;null===(e=this.emblaApi)||void 0===e||e.scrollNext()},scrollTo:function(e){var t;null===(t=this.emblaApi)||void 0===t||t.scrollTo(e)}}};const b=(0,n(66262).A)(y,[["render",function(e,t,n,a,l,c){var u,d,p,f,h=(0,r.g2)("GalleryArrowButtons"),m=(0,r.g2)("GalleryControls");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["gallery-layout-module gallery-layout-module--slider",[c.mockupTypeClass,c.controlThemeClass]]),style:(0,o.Tr)(c.sliderVars)},[(0,r.Lk)("div",{class:"gallery-slider__stage",style:(0,o.Tr)(c.stageStyle)},[(0,r.Lk)("div",i,[(0,r.Lk)("div",s,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.items,function(t,n){var o;return(0,r.uX)(),(0,r.CE)("div",{key:(null===(o=t.media)||void 0===o?void 0:o.url)||n,class:"gallery-slider__slide"},[(0,r.RG)(e.$slots,"gallery-item",{item:t,index:n,scrollHintPriority:n===l.selectedScrollSnap?0:n+1},void 0,!0)])}),128))])],512),(null===(u=n.section)||void 0===u?void 0:u.controlsPosition)===l.C.SIDES?((0,r.uX)(),(0,r.Wv)(h,{key:0,"control-position":null===(d=n.section)||void 0===d?void 0:d.controlsPosition,onNext:t[0]||(t[0]=function(e){return c.scrollNext()}),onPrevious:t[1]||(t[1]=function(e){return c.scrollPrevious()})},null,8,["control-position"])):(0,r.Q3)("v-if",!0)],4),n.section.showCaptions?(0,r.RG)(e.$slots,"caption",{key:0,activeItem:c.activeGalleryItem,activeIndex:l.selectedScrollSnap,al
2ignLeft:!1},void 0,!0):(0,r.Q3)("v-if",!0),(0,r.bF)(m,{"items-length":n.items.length,"scroll-snaps":l.scrollSnaps,"selected-scroll-snap":l.selectedScrollSnap,"controls-position":null===(p=n.section)||void 0===p?void 0:p.controlsPosition,"layout-type":null===(f=n.section)||void 0===f?void 0:f.layout,onPrevious:c.scrollPrevious,onNext:c.scrollNext,onScrollTo:c.scrollTo},null,8,["items-length","scroll-snaps","selected-scroll-snap","controls-position","layout-type","onPrevious","onNext","onScrollTo"])],6)}],["__scopeId","data-v-3fa6ff84"]])},7149(e,t,n){"use strict";n.d(t,{A:()=>me});var r=n(20641),o=n(90033),i=n(53751),s=["aria-label"],a={class:"thumbnail-visual"},l={key:0,class:"background-color-container"},c=["src","alt"];const u=n.p+"src/assets/images/mobile-placeholder.3ce7fea7.png";var d=n(90736),p=n(56139);const f=n.p+"src/assets/images/tablet-placeholder.4d1a5308.png",h=n.p+"src/assets/images/desktop-placeholder.2033348f.png";var m=n(669),v=n(5531),g=n(53127),y=n(43897),b=n(16017),w=n(17511),S=n(70220),k=n(81009),_=n(67560),O=n(20438),C=n(51751),T=n(26329),A=n(56198),E=n(27021),x=n(35446),P=n(2836),I=n(65831),L=n(19085),j=n(76089),M=n(2783),D=n(22132),R=n(88341),N=n(96681),F=n(38383),B=n(94988),U=n(1659),H=n(70464);function $(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var W=["fill"],G=["id"],X=["fill"],V=["id"],K=["fill"],q=["id"],Y=["filter"],Q=["id"];const J={props:{variant:{type:String,default:"radial_1"},svgClass:{type:String,default:""}},data:function(){return{uniqueId:""}},created:function(){this.uniqueId="paint0_linear_".concat(this.generateUniqueId())},methods:{generateUniqueId:function(){return Math.random().toString(36).substring(2,9)}}};var Z=n(66262);const ee=(0,Z.A)(J,[["render",function(e,t,n,i,s,a){return"linear_1"===n.variant?((0,r.uX)(),(0,r.CE)("svg",{key:0,class:(0,o.C4)(n.svgClass),width:"368",height:"368",preserveAspectRatio:"none",viewBox:"0 0 368 368",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.Lk)("rect",{width:"368",height:"368",fill:"url(#".concat(s.uniqueId,")")},null,8,W),(0,r.Lk)("defs",null,[(0,r.Lk)("linearGradient",{id:s.uniqueId,x1:"184",y1:"4.11272e-06",x2:"199.861",y2:"367.315",gradientUnits:"userSpaceOnUse"},$(t[0]||(t[0]=[(0,r.Lk)("stop",{"stop-color":"#EDF3FE","stop-opacity":"0"},null,-1),(0,r.Lk)("stop",{offset:"1","stop-color":"currentColor"},null,-1)])),8,G)])],2)):"linear_2"===n.variant?((0,r.uX)(),(0,r.CE)("svg",{key:1,class:(0,o.C4)(n.svgClass),width:"368",height:"368",preserveAspectRatio:"none",viewBox:"0 0 368 368",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.Lk)("rect",{width:"368",height:"368",fill:"url(#".concat(s.uniqueId,")")},null,8,X),(0,r.Lk)("defs",null,[(0,r.Lk)("linearGradient",{id:s.uniqueId,x1:"368",y1:"0",x2:"16.5458",y2:"383.176",gradientUnits:"userSpaceOnUse"},$(t[1]||(t[1]=[(0,r.Lk)("stop",{"stop-color":"#EDF3FE","stop-opacity":"0"},null,-1),(0,r.Lk)("stop",{offset:"1","stop-color":"currentColor"},null,-1)])),8,V)])],2)):"linear_3"===n.variant?((0,r.uX)(),(0,r.CE)("svg",{key:2,class:(0,o.C4)(n.svgClass),width:"368",height:"368",preserveAspectRatio:"none",viewBox:"0 0 368 368",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.Lk)("rect",{width:"368",height:"368",fill:"url(#".concat(s.uniqueId,")")}
2,null,8,K),(0,r.Lk)("defs",null,[(0,r.Lk)("linearGradient",{id:s.uniqueId,x1:"0",y1:"0",x2:"383.176",y2:"351.454",gradientUnits:"userSpaceOnUse"},$(t[2]||(t[2]=[(0,r.Lk)("stop",{"stop-color":"#EDF3FE","stop-opacity":"0"},null,-1),(0,r.Lk)("stop",{offset:"1","stop-color":"currentColor"},null,-1)])),8,q)])],2)):((0,r.uX)(),(0,r.CE)("svg",{key:3,class:(0,o.C4)(n.svgClass),width:"368",height:"368",viewBox:"0 0 368 368",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.Lk)("g",{filter:"url(#".concat(s.uniqueId,")")},$(t[3]||(t[3]=[(0,r.Lk)("circle",{cx:"184",cy:"184",r:"85",fill:"currentColor"},null,-1)])),8,Y),(0,r.Lk)("defs",null,[(0,r.Lk)("filter",{id:s.uniqueId,x:"-31",y:"-31",width:"430",height:"430",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},$(t[4]||(t[4]=[(0,r.Fv)('<feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feGaussianBlur in="BackgroundImageFix" stdDeviation="65"></feGaussianBlur><feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_1660_164104"></feComposite><feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_1660_164104" result="shape"></feBlend><feGaussianBlur stdDeviation="45" result="effect2_foregroundBlur_1660_164104"></feGaussianBlur>',5)])),8,Q)])],2))}]]);var te=n(76107),ne=n(74256),re=n(53367),oe=n(913),ie=n(21781),se=n(68438),ae=n(82124);function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function de(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pe={mobile:u,laptop:{v1:d,v2:d,v3:p},tablet:f,desktop:h};const fe={name:"project-thumbnail",components:{Mockup:re.A,SvgBackground:ee},props:{caseStudy:{default:null,type:Object,required:!0},forceSquared:{default:!1,type:Boolean},isFirst:{default:!1,type:Boolean}},data:function(){return{dynamicHeight:0,resizeObserver:null,placeholder:u,layouts:{mobile:{single_middle:{type:"mobile",svg:m,mockupTypes:["mobile"]},single_slided:{type:"mobile",svg:v,mockupTypes:["mobile"]},dual_middle:{type:"mobile",svg:g,mockupTypes:["mobile","mobile"]},dual_slided:{type:"mobile",svg:y,mockupTypes:["mobile","mobile"]},triple_middle:{type:"mobile",svg:b,mockupTypes:["mobile","mobile","mobile"]},triple_slided:{type:"mobile",svg:w,mockupTypes:["mobile","mobile","mobile"]},triple_middle_horizontal:{type:"mobile",svg:S,mockupTypes:["mobile","mobile","mobile"]},triple_slided_rotated:{type:"mobile",svg:k,mockupTypes:["mobile","mobile","mobile"]},quadruple_slided:{type:"mobile",svg:_,mockupTypes:["mobile","mobile","mobile","mobile"]},quadruple_slided_rotated:{type:"mobile",svg:O,mockupTypes:["mobile","mobile","mobile","mobile"]}},desktop:{single_middle:{type:"desktop",svg:C,mockupTypes:["laptop"]},single_slided:{type:"desktop",svg:T,mockupTypes:["laptop"]},mobile_overlay:{type:"desktop",svg:A,mockupTypes:["laptop","mobile"]},mobile_middle:{type:"desktop",svg:E,mockupTypes:["laptop","mobile"]},single_slided_big:{type:"desktop",svg:x,mockupTypes:["laptop"]},triple_variety:{type:"desktop",svg:P,mockupTypes:["laptop","tablet","mobile"]}},monitor:{single_middle:{type:"monitor",svg:I,mockupTypes:["desktop"]},mobile_middle:{type:"monitor",svg:L,mockupTypes:["desktop","mobile"]},desktop_middle:{type:"monitor",svg:j,mockupTypes:["desktop","laptop"]},tablet_middle:{type:"monitor",svg:M,mockupTypes:["desktop","tablet"]}
2,triple_variety:{type:"monitor",svg:D,mockupTypes:["desktop","tablet","mobile"]},quadruple_variety:{type:"monitor",svg:R,mockupTypes:["desktop","tablet","mobile","laptop"]}},tablet:{single_middle:{type:"tablet",svg:N,mockupTypes:["tablet"]},single_slided:{type:"tablet",svg:F,mockupTypes:["tablet"]},mobile_overlay:{type:"tablet",svg:B,mockupTypes:["tablet","mobile"]},mobile_middle:{type:"tablet",svg:U,mockupTypes:["tablet","mobile"]},single_slided_big:{type:"tablet",svg:H,mockupTypes:["tablet"]}}}}},methods:{activateThumbnail:function(e){var t;null===(t=e.currentTarget)||void 0===t||t.click()},getMockupByIndex:function(e){var t,n=null===(t=this.caseStudy)||void 0===t||null===(t=t.thumbnailData)||void 0===t?void 0:t.mockupDetails;return Array.isArray(n)&&n.length?n[e]||n[0]:null},getMockupSrc:function(e){var t=this.getMockupByIndex(e);return t?(0,oe.zR)(t.deviceType,t.mockupType,t.version,t.colorScheme,t.settings||[],t.orientation):null},getMockupContentSrc:function(e,t){if(this.caseStudy.thumbnailData.images[t]){if(this.caseStudy.thumbnailData.images[t].cropped&&this.caseStudy.thumbnailData.images[t].cropped.url)return this.caseStudy.thumbnailData.images[t].cropped.url;if(this.caseStudy.thumbnailData.images[t].url)return this.caseStudy.thumbnailData.images[t].url}return"laptop"===e?this.versionedDefaultImage(e):pe[e.toLowerCase()]},versionedDefaultImage:function(e){var t;return pe[e.toLowerCase()][(null===(t=this.getMockupByIndex(0))||void 0===t?void 0:t.version)||"v3"]},calculateDynamicHeight:function(){var e=this;this.$nextTick(function(){e.$refs.mockupsContainer&&(e.dynamicHeight=e.$refs.mockupsContainer.offsetWidth)})},initResizeObserver:function(){var e=this;this.$nextTick(function(){e.$refs.mockupsContainer&&(e.resizeObserver=new ResizeObserver(e.calculateDynamicHeight),e.resizeObserver.observe(e.$refs.mockupsContainer))})},destroyResizeObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},computed:ue(ue({},(0,ae.L8)("design",["colorPalette","colorStyles"])),{},{thumbnailSize:function(){return this.forceSquared?"small":this.$store.state.portfolio.templateSettings.thumbnailLayout&&this.$store.state.portfolio.templateSettings.thumbnailLayout.includes("mixed")?this.$store.state.portfolio.templateSettings.thumbnailLayout.includes("large")?this.isFirst?"large":"small":void 0:this.$store.state.portfolio.templateSettings.tileDisplayMode?this.$store.state.portfolio.templateSettings.tileDisplayMode.split("-")[0]:"small"},largeThumbnailTextPosition:function(){var e=this.$store.state.portfolio.templateSettings;return"large"===e.tileDisplayMode&&"on-thumbnail"===e.projectTitle.placement&&"visible"===e.projectTitle.visibility?e.projectTitle.alignment.horizontal:"center"},suggestedColorsUsed:function(){var e;return(null===(e=this.caseStudy)||void 0===e||null===(e=e.thumbnailData)||void 0===e||null===(e=e.background)||void 0===e?void 0:e.color)&&!this.caseStudy.thumbnailData.background.color.startsWith("#")&&Object.values(ne.bH).includes(this.caseStudy.thumbnailData.background.color)},suggestedColorOptions:function(){return(0,te.bH)(this.colorStyles,this.$store.state.portfolio.designSettings.colorPalette)},svgBackgroundColor:function(){return{color:this.suggestedColorsUsed?this.suggestedColorOptions[this.caseStudy.thumbnailData.background.style.match(/^[^_]*/)[0]][this.caseStudy.thumbnailData.background.color][0]:(0,ie.WT)(this.caseStudy.thumbnailData.background.color,this.colorPalette)}},backgroundStyle:function(){var e={};if(this.caseStudy.thumbnailData.background.style===ne.oj.SOLID_COLOR)e["background-color"]=this.suggestedColorsUsed?this.suggestedColorOptions[this.caseStudy.thumbnailData.background.style.match(/^[^_]*/)[0]][this.caseStudy.thumbnailData.background.color][0]:(0,ie.WT)(this.caseStudy.thumbnailData.background.color,this.colorPalette);else if(this.caseStudy.thumbnailData.background.style===ne.oj.TRANSPARENT)e["background-color"]="transparent";else if(this.caseStudy.thumbnailData.background.style===ne.oj.GRADIENT)e["background-color"]=this.suggestedColorsUsed?this.suggestedColorOptions[this.caseStudy.thumbnailData.background.style.match(/^[^_]*/
2)[0]][this.caseStudy.thumbnailData.background.color][1]:(0,ie.WT)(this.caseStudy.thumbnailData.background.accentColor,this.colorPalette);else if(this.caseStudy.thumbnailData.background.style===ne.oj.UPLOAD_IMAGE){var t,n,r=(null===(t=this.caseStudy.thumbnailData.background.image)||void 0===t||null===(t=t.cropped)||void 0===t?void 0:t.url)||(null===(n=this.caseStudy.thumbnailData.background.image)||void 0===n?void 0:n.url);r?(e["background-image"]="url(".concat(r,")"),e["background-size"]="cover",e["background-position"]="center"):e["background-color"]="var(--asphalt90)"}else if(this.caseStudy.thumbnailData.background.style===ne.oj.CURATED_BACKGROUNDS){var o,i=null===(o=this.caseStudy.thumbnailData.background.image)||void 0===o?void 0:o.url;i?(e["background-image"]="url(".concat(i,")"),e["background-size"]="cover",e["background-position"]="center"):e["background-color"]="var(--asphalt90)"}else e["background-color"]="#FFFFFF";return e},isGenerated:function(){return this.caseStudy.settings.usingGeneratedThumbnail},mainHeaderSection:function(){return this.caseStudy.sections.find(function(e){return"MainHeader"===e.type})},getBackgroundColor:function(){var e,t,n,r,o=null!==(e=this.mainHeaderSection.backgroundSettings)&&void 0!==e&&e.backgroundColor?null!==(t=this.mainHeaderSection.backgroundSettings)&&void 0!==t&&t.backgroundColor.startsWith("#")?null===(n=this.mainHeaderSection.backgroundSettings)||void 0===n?void 0:n.backgroundColor:"#".concat(null===(r=this.mainHeaderSection.backgroundSettings)||void 0===r?void 0:r.backgroundColor):null;return{backgroundColor:this.caseStudy.image.url?null:o}},getImageUrl:function(){return this.caseStudy.image.croppedImageUrl?this.caseStudy.image.croppedImageUrl:this.caseStudy.image.url?this.caseStudy.image.url:this.mainHeaderSection.image.croppedImageUrl?this.mainHeaderSection.image.croppedImageUrl:this.mainHeaderSection.image.url?"theme_fifteen"===this.$store.state.portfolio.templateSettings.theme?"/placeholder-images/template-15-thumbnail-"+this.caseStudy.order%3+".svg":this.mainHeaderSection.image.url:this.mainHeaderSection.backgroundColor?null:"/example_project_images/v2/empty-project-thumbnail.jpg"},showOverlay:function(){var e,t;return!(null===(e=this.mainHeaderSection.overlaySettings)||void 0===e||!e.overlay)&&(null===(t=this.mainHeaderSection.overlaySettings)||void 0===t?void 0:t.overlay.a)>0&&!this.caseStudy.image.url},showBlur:function(){var e;return!(null===(e=this.mainHeaderSection.overlaySettings)||void 0===e||!e.blur||this.caseStudy.image.url)},setCustomClass:function(){return[this.showOverlay?"overlay":null,this.showBlur?"blur":null].toString().replace(","," ")},thumbnailHeight:function(){var e="large"===this.thumbnailSize?2:"medium"===this.thumbnailSize?1.15:1;return"".concat(this.width/e,"px")},imageAlt:function(){var e,t=null===(e=this.caseStudy)||void 0===e||null===(e=e.image)||void 0===e||null===(e=e.altTag)||void 0===e?void 0:e.trim();if(t)return t;var n=this.caseStudyTitle;return n?"".concat(n," thumbnail"):"Project thumbnail"},thumbnailActionLabel:function(){var e=this.caseStudyTitle;return e?"Open case study ".concat(e):"Open case study"},caseStudyTitle:function(){var e,t,n=null===(e=this.caseStudy)||void 0===e||null===(e=e.name)||void 0===e?void 0:e.trim();if(n)return n;var r=null===(t=this.caseStudy)||void 0===t||null===(t=t.sections)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.title)||void 0===t?void 0:t.text;if(r){var o,i=null===(o=(0,se.sZ)(r))||void 0===o?void 0:o.trim();if(i)return i}return""},primaryMockupDeviceClass:function(){var e,t=null===(e=this.getMockupByIndex(0))||void 0===e?void 0:e.deviceType;return t?t.toLowerCase():"mobile"}}),mounted:function(){var e=this;this.$nextTick(function(){e.isGenerated&&(e.initResizeObserver(),e.calculateDynamicHeight())})},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect()},watch:{thumbnailSize:function(){this.isGenerated&&this.calculateDynamicHeight()},isGenerated:function(e){var t=this;e?this.$nextTick(function(){t.initResizeObserver(),t.calculateDynamicHeight()}):this.destroyResizeObserver()},"caseStudy.thumbnailData":{handler:function(){var e=this;this.isGenerated&&this.$nextTick(function(){e.initResizeObserver(),e.calculateDynamicHeight()})},deep:!0}}},he=(0,Z.A)(fe,[["render",function(e,t,n,u,d,p){var f=(0,r.g2)("SvgBackgroun
2d"),h=(0,r.g2)("Mockup");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)([p.isGenerated&&"generated-cover-container","image-container",p.setCustomClass]),onClick:t[0]||(t[0]=function(t){return e.$emit("click")}),role:"button",tabindex:"0","aria-label":p.thumbnailActionLabel,onKeydown:[t[1]||(t[1]=(0,i.withKeys)((0,i.withModifiers)(function(){return p.activateThumbnail&&p.activateThumbnail.apply(p,arguments)},["prevent"]),["enter"])),t[2]||(t[2]=(0,i.withKeys)((0,i.withModifiers)(function(){return p.activateThumbnail&&p.activateThumbnail.apply(p,arguments)},["prevent"]),["space"]))],style:(0,o.Tr)([p.getBackgroundColor])},[(0,r.Lk)("div",a,[p.isGenerated&&this.caseStudy.thumbnailData&&this.layouts?((0,r.uX)(),(0,r.CE)("div",l,[(0,r.Lk)("div",{class:(0,o.C4)(["thumbnail-preview",p.thumbnailSize]),style:(0,o.Tr)(p.backgroundStyle)},["gradient"===this.caseStudy.thumbnailData.background.style?((0,r.uX)(),(0,r.Wv)(f,{key:0,class:"background-image",style:(0,o.Tr)(p.svgBackgroundColor),variant:this.caseStudy.thumbnailData.background.gradient},null,8,["style","variant"])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{ref:"mockupsContainer",class:(0,o.C4)(["mockups-container",[p.primaryMockupDeviceClass,this.caseStudy.thumbnailData.layout.version,p.thumbnailSize,"align-text-"+p.largeThumbnailTextPosition]]),style:(0,o.Tr)({height:d.dynamicHeight+"px"})},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(this.layouts[this.caseStudy.thumbnailData.layout.type][this.caseStudy.thumbnailData.layout.version].mockupTypes,function(e,t){return(0,r.uX)(),(0,r.CE)("div",{key:t+"-mockup",class:(0,o.C4)("mockup-container mockup-".concat(t))},[(0,r.bF)(h,{"svg-src":p.getMockupSrc(t),"image-src":p.getMockupContentSrc(e,t),mockup:p.getMockupByIndex(t),isThumbnail:!0},null,8,["svg-src","image-src","mockup"])],2)}),128))],6)],6)])):p.getImageUrl?((0,r.uX)(),(0,r.CE)("img",{key:1,src:p.getImageUrl,class:"project-thumbnail",alt:p.imageAlt},null,8,c)):(0,r.Q3)("v-if",!0)]),(0,r.RG)(e.$slots,"default",{},void 0,!0)],46,s)}],["__scopeId","data-v-38705896"]]),me=he},83108(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(20641),o=n(90033),i={class:"error-wrapper"},s={class:"error"},a={class:"error-message"},l={class:"error-exp"};const c={name:"ErrorPage",props:["error"]};const u=(0,n(66262).A)(c,[["render",function(e,t,n,c,u,d){return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",{class:(0,o.C4)("error-picto error-"+n.error.code)},null,2),(0,r.Lk)("div",a,(0,o.v_)(n.error.title),1),(0,r.Lk)("div",l,(0,o.v_)(n.error.message),1),t[0]||(t[0]=(0,r.Lk)("a",{href:"/",class:"btn--error"},"Go to homepage",-1))])])}]])},34473(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(20641),o=n(90033),i={class:"navbar-toggle"};var s=n(82124);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={name:"HamburgerToggle",components:{Icon:n(46335).A},methods:{handleClick:function(){this.viewData.navOpen=!this.viewData.navOpen}},computed:c(c({},(0,s.L8)("view",["viewData"])),{},{iconName:function(){return this.viewData.navOpen?"mobile-navigation-close":"mobile-navigation-hamburger"},iconClasses:function(){return{hamburger:!0,open:!this.viewData.navOpen,close:this.viewData.navOpen,"nav-open":this.viewData.navOpen}}})};const p=(0,n(66262).A)(d,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",{class:"hamburger-icon",onClick:t[0]||(t[0]=function(){return l.handleClick&&l.handleClick.apply(l,arguments)})},[(0,r.bF)(c,{"icon-name":l.iconName,size:24,style:{color:"var(--hero-nav-button-text-color)"},class:(0,o.C4)(l.iconClasses)},null,8,["icon-name","class"])])])}],["__scopeId","data-v-36a604ac"]]),f=p},64068(e,t,n){"use strict";n.d(t,{A:()=>F});
2var r=n(20641),o=n(90033),i={key:0,class:"alert-banner-container"},s={class:"banner-content-container"},a={class:"banner-text-container"},l={class:"info-icon"},c={class:"message"},u=["data-template-name"],d=["data-template-name"],p={class:"ufo--page-content ufo--home-page-content"},f=["data-template-name"],h={class:"ufo--page-content ufo--home-page-content"};var m=n(30009),v=n(71125),g=n(72614),y=n(4801),b=n(51333),w=n(46335),S=n(41828),k=n(82124),_=n(23492),O=n(74256),C=n(32944),T=n(82408);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return x(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(x(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,x(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,x(d,"constructor",c),x(c,"constructor",l),l.displayName="GeneratorFunction",x(c,o,"GeneratorFunction"),x(d),x(d,o,"Generator"),x(d,r,function(){return this}),x(d,"toString",function(){return"[object Generator]"}),(E=function(){return{w:i,m:p}})()}function x(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}x=function(e,t,n,r){function i(t,n){x(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},x(e,t,n,r)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var R=null;const N={name:"PortfolioPage",components:{ViewNavBar:S.A,GetHeroNavigation:y.A,SectionLoader:g.A,PortfolioHeroHelper:v.A,LegacyPublicPageFooter:b.A,Icon:w.A},data:function(){return{hover:null}},beforeMount:function(){(0,_.f)(this.getAllCssVars)},mounted:function(){var e=this;R=(0,m.u)(function(){return e.headTags}),window.scrollY&&window.scroll(0,0),this.$route.query.templatePreview&&window.addEventListener("message",function(){var t,n=(t=E().m(function t(n){var r,o,i,s;return E().w(function(t){for(;;)switch(t.n){case 0:if("UPDATE_PALETTE"!==(null===(r=n.data)||void 0===r?void 0:r.type)){t.n=3;break}return t.n=1,e.updatePreviewColorPalette({id:n.data.payload.ID,colors:n.data.payload.COLORS});case 1:return t.n=2,e.applyColorPalette();case 2:e.updateParentPreview();case 3:"UPDATE_FONT_PAIR"===(null===(o=n.data)||void 0===o?void 0:o.type)&&(i=n.data.payload,s=Object.fromEntries(Object.entries(e.fontStyles).map(function(e){var t=j(e,2),n=t[0];return[n,I(I({},t[1]),{},{font:i[C.Fq[n]||"text"]},(0,C.ee)(n)?{fontWeight:"400"}:{})]})),e.$store.dispatch("design/updateFontStyles",s),e.$store.dispatch("design/updateFontPairId",i._id),e.updateParentPreview());case 4:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){D(i,r,o,s,a,"next",e)}function a(e){D(i,r,o,s,a,"throw",e)}s(void 0)})});return function(e){return n.apply(this,arguments)}}())},unmounted:function(){var e;null===(e=R)||void 0===e||e.dispose()},methods:I(I({},(0,k.i0)("design",["updatePreviewColorPalette","applyColorPalette"])),{},{updateParentPreview:function(){window.parent.postMessage({type:"STORE_UPDATE",payload:JSON.parse(JSON.stringify(this.viewData.portfolio.designSettings))},"*"),(0,_.f)(this.getAllCssVars)}}),computed:I(I(I(I({},(0,k.L8)("design",["getAllCssVars","fontStyles"])),(0,k.L8)("view",["viewData"])),(0,k.L8)(["portfolioUsesRootHeaderSections"])),{},{portfolio:function(){return this.viewData.portfolio},socialHead:function(){return(0,T.E)({portfolio:this.portfolio,project:this.project,user:this.user,route:this.$route})},headTags:function(){return this.socialHead},user:function(){return this.viewData.user},project:function(){return this.viewData.project},templateSettings:function(){return this.portfolio.templateSettings},portfolioPages:function(){return this.viewData.portfolioPages},emergencyModeSettings:function(){return this.viewData.emergencyModeSettings},sidebarBackgroundColor:function(){return{"--sidebarBgColor":this.portfolio.templateSettings.hero&&this.portfolio.templateSettings.hero.sidebarSettings?this.portfolio.templateSettings.hero.sidebarSettings.backgroundColor:null}},contentPosition:function(){return"profile_theme_nine"===this.templateSettings.theme?"align-content-to-".concat(this.templateSettings.hero.alignment.vertical):null},isFirstSectionCaseStudyGrid:function(){var e;return(null===(e=this.project.sections[0])||void 0===e?void 0:e.type)===O.iK.CASE_STUDY_GRID},templateName:function(){var e,t;return this.portfolio&&(null===(e=this.$store.getters)||void 0===e||null===(t=e.getTemplateForPortfolio)||void 0===t||null===(t=t.call(e,this.portfolio))||void 0===t?void 0:t.name)||""}})};const F=(0,n(66262).A)(N,[["render",function(e,t,n,m,v,g){var y,b=(0,r.g2)("ViewNavBar"),w=(0,r.g2)("Icon"),S=(0,r.g2)("SectionLoader"),k=(0,r.g2)("PortfolioHeroHelper"),_=(0,r.g2)("GetHeroNavigation"),O=(0,r.g2)("LegacyPublicPageFooter");return(0,r.uX)(),(0,r.CE)("main",null,[(0,r.bF)(b),g.emergencyModeSettings&&g.emergencyModeSettings.emergencyMode&&g.emergencyModeSettings.viewModeEmergencyBanner?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.Lk)("div",l,[(0,r.bF)(w,{"icon-name":"info"})]),(0,r.Lk)("div",c,(0,o.v_)(g.emergencyModeSettings.viewModeEmergencyBannerText),1)])])])):(0,r.Q3)("v-if",!0),e.portfolioUsesRootHeaderSections?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["ufo--portfolio-page",g.templateSettings.theme,{home:"home"===(null===(y=g.project)||void 0===y?void 0:y.type)}]),"data-template-name":g.templateName},[(0,r.bF)(S,{sections:g.project.sections,class:(0,o.C4)([g.isFirstSectionCaseStudyGrid?"pg-first":""]),"default-image-alt":""},null,8,["sections","class"])],10,u)):((0,r.uX)(),(0,r.CE)(r.FK,{key:2},[!g.templateSettings.theme||g.templateSettings.theme.includes("profile_")?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--portfolio-page","profile-page",g.templateSettings.theme?g.templateSettings.theme:"profile_theme_default_old",g.templateSettings.showProfilePicture?"profile--hp":""]),"data-template-name":g.templateName},[(0,r.Lk)("div",{class:"grid ufo--page-hero",style:(0,o.Tr)([g.sidebarBackgroun
2dColor]),onMouseenter:t[0]||(t[0]=function(e){return v.hover=-1}),onMouseleave:t[1]||(t[1]=function(e){return v.hover=null})},[(0,r.Lk)("div",{class:(0,o.C4)(["ufo--page-hero-content",g.templateSettings.showProfilePicture&&(g.portfolio.image.url||g.user.image.url&&!g.portfolio.image.url)?"has-picture":"no-profile-picture",g.contentPosition])},[(0,r.bF)(k)],2)],36),(0,r.Lk)("div",p,[!g.templateSettings.theme||g.templateSettings.theme&&g.templateSettings.theme.includes("profile_theme_default")?((0,r.uX)(),(0,r.Wv)(_,{key:0,"show-home-button":!0})):(0,r.Q3)("v-if",!0),(0,r.bF)(S,{sections:g.project.sections,"default-image-alt":""},null,8,["sections"])]),(0,r.bF)(O)],10,d)):((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["ufo--portfolio-page",g.templateSettings.theme]),"data-template-name":g.templateName},[(0,r.bF)(k),(0,r.Lk)("div",h,[(0,r.bF)(S,{sections:g.project.sections,class:(0,o.C4)(["ufo--page-sections",g.isFirstSectionCaseStudyGrid?"pg-first":""]),"default-image-alt":""},null,8,["sections","class"])]),(0,r.bF)(O)],10,f))],64))])}]])},87840(e,t,n){"use strict";n.d(t,{A:()=>T});var r=n(20641),o=n(90033);var i=n(64068),s=n(65498),a=n(33253),l=n(28668),c=n(83108),u=n(33501),d=n(81822),p=n(95771),f=n(60447),h=n(82124),m=n(35166),v=n(45),g=n(91915);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return _(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(_(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_(d,"constructor",c),_(c,"constructor",l),l.displayName="GeneratorFunction",_(c,o,"GeneratorFunction"),_(d),_(d,o,"Generator"),_(d,r,function(){return this}),_(d,"toString",function(){return"[object Generator]"}),(k=function(){return{w:i,m:p}})()}function _(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_=function(e,t,n,r){function i(t,n){_(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_(e,t,n,r)}function O(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const C={name:"PortfolioWrapper",components:{ReviewMode:d.A,PasswordProtection:l.A,PortfolioPage:i.A,ErrorPage:c.A,ComingSoon:p.A,Cursor:f.default},props:["ownDomainError","ownDomainPassword","ownDomainLoaded","ownDomainComingSoon","review"],data:function(){return{password:!1,error:!1,comingSoon:!1,loaded:!1}},mounted:function(){this.comingSoon=!!this.ownDomainComingSoon,this.error=!!this.ownDomainError,this.password=!!this.ownDomainPassword,this.ownDomainLoaded&&(this.loaded=!0)},beforeRouteEnter:function(e,t,n){n(function(t){return t.loadPortfolioIfNeeded(e)})},beforeRouteUpdate:function(e,t,n){this.loadPortfolioIfNeeded(e),n()},methods:{loadPortfolioIfNeeded:function(e){var t,n=this;return(t=k().m(function t(){var r,o,i;return k().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!n.ownDomainLoaded&&!n.hydrateFromExistingViewData(e)){t.n=1;break}return t.a(2);case 1:if(!n.isPreviewingPortfolio(e)){t.n=2;break}return t.a(2);case 2:return t.p=2,r=n.fetchUrl(e),t.n=3,s.A.get(r);case 3:o=t.v,n.setData(null,o.data),t.n=5;break;case 4:t.p=4,i=t.v,n.setData(i,null);case 5:return t.a(2)}},t,null,[[2,4]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){O(i,r,o,s,a,"next",e)}function a(e){O(i,r,o,s,a,"throw",e)}s(void 0)})})()},setData:function(e,t){var n;if(e&&!t)return 404===e.response.status?(this.error=!0,void(this.loaded=!0)):401===e.response.status?(this.comingSoon=!0,void(this.loaded=!0)):(this.applyViewData(this.buildViewDataFromRe
2sponse(null===(n=e.response)||void 0===n?void 0:n.data)),this.password=!0,void(this.loaded=!0));this.error=!1,this.password=!1,this.applyViewData(this.buildViewDataFromResponse(t)),this.loaded=!0},fetchUrl:function(e){var t,n="/data",r=e.params.portfolioId,o=e.params.shortId;return null!==(t=e.query)&&void 0!==t&&t.managerPreview&&o?"/data/preview/"+o+(e.query.previewToken?"?previewToken="+encodeURIComponent(e.query.previewToken):""):(n+=o?"/shortid/"+o:r?"/portfolio/"+r:"/portfolio",this.ownDomainPassword?"/data/ownDomain":n)},hydrateFromExistingViewData:function(e){var t=this.viewData.portfolio,n=this.viewData.portfolioPages,r=e.params.shortId,o=e.params.portfolioId;if(!(r&&(null==t?void 0:t.shortId)===r||o&&(null==t?void 0:t.id)===o)||null==n||!n.length)return!1;var i=n.find(function(e){return"home"===e.shortId});return!!i&&(this.$store.commit("view/updateViewProject",i),this.$store.commit("view/updateActivePage",i.shortId),this.$store.state.project=i,this.error=!1,this.password=!1,this.comingSoon=!1,this.loaded=!0,g.M.commit("view/updateViewModeReadiness",!0),!0)},isPreviewingPortfolio:function(e){var t,n=this.$store.state.portfolio,r=this.$store.state.portfolioPages,o=this.$store.state.caseStudyPages;if(!n||null==r||!r.length)return!1;var i=e.params.shortId,s=e.params.portfolioId,a=i&&n.shortId===i,l=s&&(n.id===s||n._id===s);if(!a&&!l)return!1;var c=r.find(function(e){return"home"===e.shortId})||r[0],u=this.$store.state.project||c;if(!u)return!1;var d=(o||[]).filter(function(e){return!e.deletedAt}),p=d.filter(function(e){return!e.draft&&e.shortId!==u.shortId}).slice(0,4),f={portfolio:n,project:u,user:this.$store.state.user,portfolioPages:r.filter(function(e){return!e.deletedAt}),caseStudies:d,activePage:u.shortId,footerProjects:p,hasDraftCasestudies:d.some(function(e){return e.draft}),loggedInUserId:null===(t=this.$store.state.user)||void 0===t?void 0:t._id,emergencyModeSettings:this.$store.state.emergencyModeSettings,portfolioTemplate:n.templateSettings};return this.applyViewData(f),this.error=!1,this.password=!1,this.comingSoon=!1,this.loaded=!0,g.M.commit("view/updateViewModeReadiness",!0),!0},buildViewDataFromResponse:function(e){if(this.viewData.fontsLoaded||((0,a.zQ)(e.fonts),e.fontNames.filter(function(t){return!e.fonts.map(function(e){return e.name}).includes(t)}).forEach(function(e){return u.A.getFontURL(e)}),this.viewData.fontsLoaded=!0),e.loggedInUserId===e.project.ownerId&&m.z.getUser().then(function(){return v.A.getPortfolios()}).then(function(){return g.M.commit("view/updateViewModeReadiness",!0)}).catch(function(){return g.M.commit("view/updateViewModePreloadFailed",!0)}),this.$store.state.portfolio=e.portfolio,this.$store.state.project=e.project,!e.portfolio.templateSettings.theme.includes("profile_"))try{n(19600)("./_".concat(e.portfolio.templateSettings.theme.replaceAll("_","-").replace("profile_",""),"-base.scss"))}catch(e){console.log("failed to import scss")}return{portfolio:e.portfolio,project:e.project,user:e.user,portfolioPages:e.portfolioPages,activePage:e.project.shortId,footerProjects:e.footerProjects,caseStudies:e.caseStudies,hasDraftCasestudies:e.hasDraftCasestudies,loggedInUserId:e.loggedInUserId,emergencyModeSettings:e.emergencyModeSettings,portfolioTemplate:e.portfolioTemplate}},applyViewData:function(e){this.password=!1,this.$store.commit("view/updateView",e),this.$store.commit("view/updateActivePage",e.activePage)}},computed:w(w({},(0,h.L8)("view",["viewData"])),{},{currentComponent:function(){return!this.viewData.portfolio||this.comingSoon||this.password||!this.loaded&&!this.ownDomainLoaded?this.comingSoon?"ComingSoon":this.password?"PasswordProtection":this.error?"ErrorPage":null:"PortfolioPage"},currentProps:function(){return this.comingSoon?{type:"portfolio"}:this.password?{setData:this.setData,fetchUrl:this.fetchUrl,type:"portfolio"}:this.error?{error:{code:404,title:"This page doesnât exist",message:"We canât seem to find the page you are looking for"}}:{}}})};const T=(0,n(66262).A)(C,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("ReviewMode"),c=(0,r.g2)("Cursor");return(0,r.uX)(),(0,r.CE)(r.FK,null,[e.loaded?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[n.review&&!e.comingSoon?((0,r.uX)(),(0,r.Wv)(l,{key:0},{default:(0,r.k6)(function(){return[((0,r.uX)(),(0,r.Wv)((0,r.$y)(a.currentComponent),(0,o._B)((0,r.Ng)(a.currentProps)),null,16))]}),_:1})):((0,r.uX)(),(0,r.Wv)((0,r.$y)(a.currentComponent),(0,o._B)((0,r.v6)({ke
2y:1},a.currentProps)),null,16))],64)):(0,r.Q3)("v-if",!0),(0,r.bF)(c)],64)}]])},41828(e,t,n){"use strict";n.d(t,{A:()=>ie});var r=n(90033),o=n(20641),i=n(53751),s={key:0,ref:"viewNavbar",class:(0,r.C4)(["ufo--nav-bar","dark","view-nav-bar"])},a={class:"left"},l={class:"mid"},c={class:"right"},u={key:1,ref:"navBanner",class:"nav-banner"},d={class:"title"},p={class:"description"},f={class:"close-icon"};var h=n(34528),m=n(47233),v=n(61556),g={class:"nav-url-edit"},y={key:0,class:"url-edit-container"},b={class:"body-container"},w={class:"title-text"},S={key:1,class:"url-container"},k={class:"url-type"},_={class:"dd-container"},O={class:"dd-select-items"};var C=n(46335),T={class:"url"},A={key:0,class:"type"};var E=n(97073);const x={name:"UrlCardCopy",components:{Icon:C.A},props:["url","type","eventName","disabled"],data:function(){return{copied:!1}},methods:{copyUrl:function(){var e=this;navigator.clipboard.writeText(this.url),this.copied=!0,setTimeout(function(){e.copied=!1},2e3),(0,E.f0)(this.eventName,{event_category:"Portfolio editor",event_label:"User: ".concat(this.$store.state.user._id,", ").concat(this.$refs.url)})}}};var P=n(66262);const I=(0,P.A)(x,[["render",function(e,t,n,i,s,a){var l=(0,o.g2)("Icon");return(0,o.uX)(),(0,o.CE)("div",{class:(0,r.C4)(["url-card",{disabled:n.disabled}]),onClick:t[0]||(t[0]=function(e){return n.disabled?null:a.copyUrl()})},[(0,o.Lk)("div",T,[(0,o.Lk)("span",null,(0,r.v_)(n.url),1),n.disabled?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.Wv)(l,{key:0,"icon-name":s.copied?"check":"copy"},null,8,["icon-name"]))]),n.type?((0,o.uX)(),(0,o.CE)("div",A,(0,r.v_)(n.type),1)):(0,o.Q3)("v-if",!0)],2)}],["__scopeId","data-v-9c116142"]]);var L=n(80411),j=n(33346),M=n(2336),D=n(74256),R=n(76107),N=n(43852),F=n(33639);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z={name:"UrlEditNavContainer",components:{IconButton:M.A,MessageHighlight:j.A,ClickOutsideObserver:L.A,NavBarPill:v.A,UrlCardCopy:I,Icon:C.A,Tag:N.A},data:function(){return{dropdownOpen:!1,copied:!1}},methods:{isOwnDomain:function(e){return!e.includes("uxfol.io/")&&!e.includes("herokuapp.com")&&!e.includes("localhost:")},openDomain:function(){this.blocked||this.$router.push("/home/domain/search")},openPrices:function(){F.A.track("UPGRADE_CTA_CLICKED",H(H({},F.A.getUrls()),{},{event_group:F.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Url dropdown",context:"View - ".concat(this.pageIsCaseStudy?"Case study":"Portfolio"),to:"Prices"})),this.$router.push("/home/prices")},copyUrl:function(){var e=this;navigator.clipboard.writeText(this.portfolioURL),this.copied=!0,setTimeout(function(){e.copied=!1},3e3),(0,E.f0)("Copy portfolio share link",{event_category:"Portfolio editor",event_label:"User: ".concat(this.$store.state.user._id,", ").concat(this.portfolioURL)})}},computed:{portfolio:function(){return this.$store.state.portfolio},portfolioURL:function(){return this.$store.getters.pageViewURL.replace(/^https?:\/\//,"")},pageIsCaseStudy:function(){return this.$store.getters.isCaseStudy},blocked:function(){var e;return!(0,R.w3)(D.O5.CUSTOM_DOMAIN,this.$store.state.userSettings.currentSubscriptionPlan,null===(e=this.$store.state.userSettings.currentSubscription)||void 0===e?void 0:e.status)},notPublished:function(){return this.pageIsCaseStudy?!!this.portfolio.draft||this.$store.state.project.draft:this.portfolio.draft}}},W=(0,P.A)(z,[["render",function(e,t,n,s,a,l){var c=(0,o.g2)("NavBarPill"),u=(0,o.g2)("MessageHighlight"),d=(0,o.g2)("IconButton"),p=(0,o.g2)("Icon"),f=(0,o.g2)("Tag"),h=(0,o.g2)("ClickOutsideObserver");return(0,o.uX)(),(0,o.CE)("div",g,[(0,o.Lk)("div",{class:"navbar-toggle",onClick:t[0]||(t[0]=(0,i.withModifiers)(function(e){return a.dropdownOpen=!a.dropdownOpen},["stop"]))},[(0,o.bF)(c,{"icon-name":l.notPublished?"unpublish":"publish",label:l.portfolioURL,active:a.dropdownOpen,"dark-scheme":""},null,8,["icon-name","label","active"])]),(0,o.bF)(i.Transition,{name:"drop-down-from-toolbar"},{default:(0,o.k6)(function(){return[(0,o.bF)(h,{"is-active":a.dropdownOpen,onClickOutside:t[3]||(t[3]=function(e){return a.dropdownOpen=!1})},{default:(0,o.k6)(function(){return[a.dropdownOpen?((0,o.uX)(),(0,o.CE)("div",y,[(0,o.Lk)("div",b,[(0,o.Lk)("p",w,(0,r.v_)(l.pageIsCaseStudy?"Case study":"Portfolio")+" URL",1),l.notPublished?((0,o.uX)(),(0,o.Wv)(u,{key:0,"dark-scheme":"",type:"info",message:"Publish your ".concat(l.pageIsCaseStudy&&!l.portfolio.draft?"case study":"portfolio"," to get a shareable link. Go back to the editor to <b>publish</b>")},null,8,["message"])):((0,o.uX)(),(0,o.CE)("div",S,[(0,o.Lk)("div",{class:"card",onClick:t[1]||(t[1]=function(){return l.copyUrl&&l.copyUrl.apply(l,arguments)})},[(0,o.Lk)("span",null,(0,r.v_)(a.copied?"Link copied!":l.portfolioURL),1
2),(0,o.bF)(d,{"dark-scheme":"",size:"small",icon:a.copied?"check":"copy",importance:"low"},null,8,["icon"])]),(0,o.Lk)("div",k,(0,r.v_)(l.isOwnDomain(l.portfolioURL)?"Your domain":"This is a default UXfolio URL."),1)]))]),(0,o.Lk)("div",_,[(0,o.Lk)("div",O,[(0,o.Lk)("a",{class:(0,r.C4)(["dd-select-item",{blocked:l.blocked}]),onClick:t[2]||(t[2]=function(){return l.openDomain&&l.openDomain.apply(l,arguments)})},[(0,o.bF)(p,{height:24,width:24,"icon-name":"web"}),t[4]||(t[4]=(0,o.eW)(" Custom Domain ",-1)),l.blocked?((0,o.uX)(),(0,o.Wv)(f,{key:0,"icon-name":"lock",text:"Upgrade to unlock","dark-scheme":"",onClick:(0,i.withModifiers)(l.openPrices,["stop"])},null,8,["onClick"])):(0,o.Q3)("v-if",!0)],2)])])])):(0,o.Q3)("v-if",!0)]}),_:1},8,["is-active"])]}),_:1})])}],["__scopeId","data-v-256a1c0c"]]),G=W;var X=n(82124),V=n(46097),K=n(5412),q=n(67208);function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return te(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(te(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,te(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,te(d,"constructor",c),te(c,"constructor",l),l.displayName="GeneratorFunction",te(c,o,"GeneratorFunction"),te(d),te(d,o,"Generator"),te(d,r,function(){return this}),te(d,"toString",function(){return"[object Generator]"}),(ee=function(){return{w:i,m:p}})()}function te(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}te=function(e,t,n,r){function i(t,n){te(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},te(e,t,n,r)}function ne(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const re={name:"view-nav-bar",components:{Cta:K.A,Icon:C.A,UpgradeToUnlockNavContainer:V.A,UrlEditNavContainer:G,N
2avBarPill:v.A,InlineSvg:h.A},data:function(){return{isSmallScreen:!1,logo:m,upgradeDropdown:!1,isBannerClosed:!1}},beforeMount:function(){var e,t=this;return(e=ee().m(function e(){var n,r;return ee().w(function(e){for(;;)switch(e.n){case 0:t.setScreenSize(),null!==(n=t.$store.state)&&void 0!==n&&null!==(n=n.portfolioPages)&&void 0!==n&&n.length||null===(r=t.viewData.portfolioPages)||void 0===r||!r.length||(t.$store.state.portfolioPages=t.viewData.portfolioPages);case 1:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){ne(i,r,o,s,a,"next",e)}function a(e){ne(i,r,o,s,a,"throw",e)}s(void 0)})})()},mounted:function(){var e=this;window.addEventListener("resize",this.setScreenSize,!0),this.emitter.on("open-navigation-popover-review",function(){e.openNavigationDropdown("review")}),this.$nextTick(function(){return e.applyFixedTopOffset()})},unmounted:function(){window.removeEventListener("resize",this.setScreenSize,!0),this.clearFixedTopOffset()},watch:{showViewModeNavbar:function(){var e=this;this.$nextTick(function(){return e.applyFixedTopOffset()})},showCaseStudyBanner:function(){var e=this;this.$nextTick(function(){return e.applyFixedTopOffset()})},isBannerClosed:function(){var e=this;this.$nextTick(function(){return e.applyFixedTopOffset()})}},methods:{goHome:function(){(0,q.$t)(),window.location.href="/home"},goBack:function(){(0,q.$t)(),this.$store.commit("setTriggerAnimation",!1),this.isHomePage?(this.$store.commit("setPageToEdit","home"),this.$store.commit("setNavigateFromPreview",!0),this.$router.replace("/home/portfolios/".concat(this.viewData.portfolio.shortId))):(this.isPortfolioPage&&this.$store.commit("setPageToEdit",this.viewData.project.shortId),this.$store.commit("setNavigateFromPreview",!0),this.$router.replace("/home/portfolios/".concat(this.viewData.portfolio.shortId,"/p/").concat(this.viewData.project.shortId)))},setScreenSize:function(){var e=this;this.isSmallScreen=window.innerWidth<1024,this.$nextTick(function(){return e.applyFixedTopOffset()})},openNavigationDropdown:function(e){this["".concat(e,"Dropdown")]=!this["".concat(e,"Dropdown")]},closeBanner:function(){this.isBannerClosed=!0},applyFixedTopOffset:function(){var e,t,n,r=document.getElementById("app");if(r)if(this.showViewModeNavbar||"review"===(null===(e=this.$route)||void 0===e||null===(e=e.meta)||void 0===e?void 0:e.type)){var o=(null===(t=this.$refs)||void 0===t||null===(t=t.viewNavbar)||void 0===t?void 0:t.offsetHeight)||60,i=this.showCaseStudyBanner&&!this.isBannerClosed&&(null===(n=this.$refs)||void 0===n||null===(n=n.navBanner)||void 0===n?void 0:n.offsetHeight)||0;r.style.setProperty("--portfolioFixedTopOffset","".concat(o+i,"px"))}else r.style.removeProperty("--portfolioFixedTopOffset")},clearFixedTopOffset:function(){var e=document.getElementById("app");e&&e.style.removeProperty("--portfolioFixedTopOffset")}},computed:J(J({},(0,X.L8)("view",["viewData"])),{},{isCaseStudy:function(){return!!this.$store.state.project&&this.$store.getters.isCaseStudy},isPortfolioPage:function(){var e=this;return this.$store.state.portfolioPages.some(function(t){return t.shortId===e.$store.state.project.shortId})},isHomePage:function(){return this.$store.getters.isHomePage},isOwnerIsLoggedIn:function(){return this.viewData.loggedInUserId===this.$store.state.project.ownerId},isLoading:function(){return!this.$store.state.view.viewModeReady&&!this.$store.state.view.viewModePreloadFailed},isDisabled:function(){return this.$store.state.view.viewModePreloadFailed},isCaseStudyDraft:function(){return this.isCaseStudy&&this.$store.state.project.draft},isCaseStudyPasswordProtected:function(){return this.isCaseStudy&&!!this.$store.state.project.password},showViewModeNavbar:function(){var e,t;return!!this.$store.state.project&&"review"!==(null===(e=this.$route)||void 0===e||null===(e=e.meta)||void 0===e?void 0:e.type)&&"jfc"!==(null===(t=this.$route)||void 0===t||null===(t=t.meta)||void 0===t?void 0:t.type)&&this.isOwnerIsLoggedIn},showCaseStudyBanner:function(){return this.showViewModeNavbar&&(this.isCaseStudyDraft||this.isCaseStudyPasswordProtected)}})},oe=(0,P.A)(re,[["render",function(e,t,n,h,m,v){var g=(0,o.g2)("InlineSvg"),y=(0,o.g2)("NavBarPill"),b=(0,o.g2)("UrlEditNavContainer"),w=(0,o.g2)("UpgradeToUnlockNavContainer"),S=(0,o.g2)("Icon"),k=(0,o.g2)("Cta");return(0,o.uX)(),(0,o.CE)(o.FK,null,[v.showViewModeNavbar?((0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",a,[(0,o.Lk)("div",{onClick:t[0]||(t[0]=(0,i.withModifiers)(function(){return v.goHome&&v.goHome.apply(v,arguments)},["stop"])),class:"logo"},[(0,o.bF)(g,{src:m.logo,class:"dark"},null,8,["src"])]),(0,o.Lk)("div",null,[(0,o.bF)(y,{disabled:v.isDisabled||v.isLoading,loading:v.isLoading,label:"Back to editor","icon-name":"back",onButtonClicked:v.goBack,"dark-scheme":""},null,8,["disabled","loading","onButtonClicked"])])]),(0,o.Lk)("div",l,[(0,o.bF)(b,{variant:"view"})]),(0,o.Lk)("div",c,[v.isCaseStudy?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.Wv)(w,{key:0,"is-view-mode":!0,"upgrade-dropdown-open":m.upgradeDropdown,openNavigationDropdown:v.openNavigationDropdown},null,8,["upgrade-dropdown-open","openNavigationDropdown"]))])],512)):(0,o.Q3)("v-if",!0),v.showCaseStudyBanner&&!m.isBannerClosed?((0,o.uX)(),(0,o.CE)("div",u,[(0,o.Lk)("div",d,[v.isCaseStudyDraft?((0,o.uX)(),(0,o.Wv)(S,{key:0,width:16,height:16,"icon-name":"hidden"})):(0,o.Q3)("v-if",!0),(0,o.Lk)("span",null,(0,r.v_)(v.isCaseStudyDraft?"Hidden case study.":"Password-protected."),1)]),(0,o.Lk)("div",p,(0,r.v_)(v.isCaseStudyDraft?"This page is hidden from your portfolio, it is only visible for you.":"Visitors need to enter a password to view this case study."),1),(0,o.Lk)("div",f,[(0,o.bF)(k,{"dark-scheme":"",type:"icon subtle no-bg",onClick:t[1]||(t[1]=function(e){return v.closeBanner()})},{default:(0,o.k6)(function(){return[(0,o.bF)(S,{"icon-name":"close",alt:"Close banner",width:20,height:20})]}),_:1})])],512)):(0,o.Q3)("v-if",!0)],64)}],["__scopeId","data-v-4962bf44"]]),ie=oe},51333(e,t,n){"use strict";n.d(t,{A:()=>m});
2var r=n(20641),o=n(90033),i={key:0,class:"profile-footer"},s={class:"grid"},a={class:"profile-footer-content"},l=["href"],c={key:0};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h={name:"PublicPageFooter",computed:p(p({},(0,n(82124).L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.portfolio.templateSettings},user:function(){return this.viewData.user},socialLinks:function(){return this.user.socialLinks||this.portfolio.socialLinks?this.user.socialLinks?this.user.socialLinks:this.portfolio.socialLinks:[]},filteredSocials:function(){return this.socialLinks.filter(function(e){return""!==e.url})},oldFooterIsVisible:function(){return!!this.$store.state.portfolio&&this.$store.state.portfolio.settings&&null===this.$store.state.portfolio.settings.showFooterOnPortfolio&&!!this.$store.state.portfolio.socialLinks&&this.$store.state.portfolio.socialLinks.length>0&&""!==this.$store.state.portfolio.socialLinks[0].url&&"profile_theme_four"!==this.templateSettings.theme&&this.templateSettings.theme.indexOf("default")<0&&"profile_theme_nine"!==this.templateSettings.theme&&("profile_theme_eight"===this.templateSettings.theme||"theme_eight"===this.templateSettings.theme||"theme_eleven"===this.templateSettings.theme||"theme_twelve"===this.templateSettings.theme)}})};const m=(0,n(66262).A)(h,[["render",function(e,t,n,u,d,p){return p.oldFooterIsVisible?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(p.filteredSocials,function(e){return(0,r.uX)(),(0,r.CE)("a",{href:e.url,target:"_blank",rel:"nofollow noopener",class:(0,o.C4)(["profile_theme_eight"!==p.templateSettings.theme&&"theme_eight"!==p.templateSettings.theme&&"theme_thriteen"!==p.templateSettings.theme?"footer-url":"footer-icon"])},["profile_theme_eight"!==p.templateSettings.theme&&"theme_eight"!==p.templateSettings.theme&&"theme_thirteen"!==p.templateSettings.theme?((0,r.uX)(),(0,r.CE)("div",c,(0,o.v_)(e.type),1)):((0,r.uX)(),(0,r.CE)("i",{key:1,class:(0,o.C4)(["fa","fa-"+e.type.toLowerCase()])},null,2))],10,l)}),256))])])])):(0,r.Q3)("v-if",!0)}]])},28668(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(20641),o=n(90033),i=n(53751),s={class:"ufo--portfolio-password-protected"},a={class:"password-content"},l={key:0,class:"password-meta user-name"},c={class:"lock-badge","aria-hidden":"true"},u={class:"password-title"},d={class:"ufo-sec--contactform"},p={class:"ufo--contact-form"},f={class:"ufo-form--group"},h=["placeholder"],m={class:"ufo--cta-btn-wr"},v={key:0,class:"password-error"};var g=n(65498),y=n(23492),b=n(82124),w=n(46335);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?k(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return T(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(T(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,T(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,T(d,"constructor",c),T(c,"constructor",l),l.displayName="GeneratorFunction",T(c,o,"GeneratorFunction"),T(d),T(d,o,"Generator"),T(d,r,function(){return this}),T(d,"toString",function(){return"[object Generator]"}),(C=function(){return{w:i,m:p}})()}function T(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}T=function(e,t,n,r){function i(t,n){T(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},T(e,t,n,r)}function A(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}var E=Object.freeze({square:0,rounded:8,pill:40});const x={name:"PasswordProtection",components:{Icon:w.A},props:["fetchUrl","setData","type"],data:function(){return{passwordError:!1,password:""}},watch:{designReady:{immediate:!0,handler:function(e){if(e){var t=this.$store.getters["design/getAllCssVars"];t&&(0,y.f)(t)}}}},methods:{checkPassword:function(){var e,t=this;return(e=C().m(function e(){var n,r;return C().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=t.fetchUrl(t.$route),e.p=1,e.n=2,g.A.get(n,{password:t.password});case 2:r=e.v,t.onSuccess(r.data),e.n=4;break;case 3:e.p=3,e.v,t.onFailure();case 4:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){A(i,r,o,s,a,"next",e)}function a(e){A(i,r,o,s,a,"throw",e)}s(void 0)})})()},onFailure:function(){this.passwordError="Invalid password"},onSuccess:function(e){var t=this;"portfolio"===this.type?(this.$cookies.set(e.portfolio.shortId,this.password),e.portfolio.ownDomainAddress&&this.$cookies.set(e.portfolio.ownDomainAddress,this.password),e.relatedProjectIds.slice(0,-1).split(",").forEach(function(e){t.$cookies.set(e,t.password)}),this.setData(null,e)):(this.$cookies.set(e.project.shortId,this.password),this.setData(null,e))}},computed:_(_(_({},(0,b.L8)("view",["viewData","normalizedHost"])),(0,b.L8)(["isCaseStudy"])),{},{designReady:function(){var e;return!(null===(e=this.$store.state.portfolio)||void 0===e||!e.designSettings)}
2,ctaButtonClasses:function(){var e;if(!this.designReady)return["btn","btn--cta"];var t=(null===(e=this.$store.getters["design/ctaStyles"])||void 0===e?void 0:e.primary)||this.$store.getters["design/ctaStyle"];return["btn","btn--cta",null==t?void 0:t.fillStyle,null==t?void 0:t.shape,null==t?void 0:t.size]},pageType:function(){return this.isCaseStudy?"case study":"portfolio"},usesInheritedPortfolioPassword:function(){var e,t;return this.isCaseStudy&&!(null!==(e=this.viewData.project)&&void 0!==e&&e.password)&&!(null===(t=this.viewData.portfolio)||void 0===t||!t.password)},passwordPageContent:function(){var e,t,n,r,o={title:"Please enter the password to view my ".concat(this.pageType,"."),inputPlaceholder:"Enter password",buttonLabel:"Enter"},i=null===(e=this.usesInheritedPortfolioPassword?null===(t=this.viewData.portfolio)||void 0===t?void 0:t.settings:this.isCaseStudy?null===(n=this.viewData.project)||void 0===n?void 0:n.settings:null===(r=this.viewData.portfolio)||void 0===r?void 0:r.settings)||void 0===e?void 0:e.passwordPage;return null!=i&&i.enabled?{title:i.title||o.title,inputPlaceholder:i.inputPlaceholder||o.inputPlaceholder,buttonLabel:i.buttonLabel||o.buttonLabel}:o},userName:function(){var e;return(null===(e=this.viewData.user)||void 0===e?void 0:e.name)||""},homeLink:function(){var e,t=this.viewData.portfolio;return t&&(null===(e=t.ownDomainAddress)||void 0===e?void 0:e.toLowerCase())!==this.normalizedHost?"/".concat(t.shortId):"/"},inputStyle:function(){return{borderRadius:"".concat(this.inputBorderRadius,"px")}},inputBorderRadius:function(){var e,t,n=(null===(e=this.$store.getters["design/ctaStyles"])||void 0===e?void 0:e.primary)||this.$store.getters["design/ctaStyle"],r=null==n?void 0:n.shape;return"underline"===(null==n?void 0:n.fillStyle)?8:null!==(t=E[r])&&void 0!==t?t:0}})};const P=(0,n(66262).A)(x,[["render",function(e,t,n,g,y,b){var w=(0,r.g2)("Icon"),S=(0,r.g2)("RouterLink");return(0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",a,[e.isCaseStudy?((0,r.uX)(),(0,r.Wv)(S,{key:1,to:b.homeLink,class:"password-meta back-link"},{default:(0,r.k6)(function(){return[(0,r.bF)(w,{"icon-name":"back",width:24,height:24}),t[2]||(t[2]=(0,r.Lk)("span",{class:"back-link__label"},"Back to portfolio",-1))]}),_:1},8,["to"])):((0,r.uX)(),(0,r.CE)("div",l,(0,o.v_)(b.userName),1)),(0,r.Lk)("div",c,[(0,r.bF)(w,{"icon-name":"password-lock",width:24,height:24})]),(0,r.Lk)("h1",u,(0,o.v_)(b.passwordPageContent.title),1),(0,r.Lk)("div",d,[(0,r.Lk)("div",p,[(0,r.Lk)("form",{name:"password_form",class:"ufo--form",onSubmit:t[1]||(t[1]=(0,i.withModifiers)(function(){return b.checkPassword&&b.checkPassword.apply(b,arguments)},["prevent"]))},[(0,r.Lk)("div",f,[(0,r.bo)((0,r.Lk)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return y.password=e}),name:"password",type:"password",autocomplete:"off",placeholder:b.passwordPageContent.inputPlaceholder,required:"",class:"form-handler password-input password-page",style:(0,o.Tr)(b.inputStyle)},null,12,h),[[i.vModelText,y.password]]),(0,r.Lk)("div",m,[(0,r.Lk)("button",{type:"submit",class:(0,o.C4)(b.ctaButtonClasses)},(0,o.v_)(b.passwordPageContent.buttonLabel),3)])]),y.passwordError?((0,r.uX)(),(0,r.CE)("div",v,[(0,r.Lk)("p",null,(0,o.v_)(y.passwordError),1)])):(0,r.Q3)("v-if",!0)],32)])])])])}],["__scopeId","data-v-1aadbcfe"]]),I=P},4801(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(20641),o=n(90033),i={key:0,class:"line"},s={key:2,class:"line"};var a=n(74256),l=n(36230),c=n(61364),u=n(16280),d=n(23231),p=n(34473),f=n(82124);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={name:"GetHeroNavigation",components:{GetHeroNavigationItem:l.A,GetHeroPortfolioLogo:c.A,HamburgerToggle:p.A,GetHeroPortfolioImage:d.A,GetHeroSocialLinks:u.A},props:["showHomeButton"],computed:v(v({},(0,f.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.portfolio.templateSettings},portfolioPages:function(){var e=this.viewData.portfolioPages;return this.showHomeButton||(e=e.filter(function(e){return"home"!==e.type})),e},navBarLayout:function(){return this.portfolio.templateSettings.navigation.layout},navBarStyle:function(){return this.portfolio.templateSettings.navigation.style},showLines:function(){return this.portfolio.templateSettings.navigation.layout===a.wb.LINE_MIDDLE},usePortfolioHeroBackground:function(){return"theme_five"===this.portfolio.templateSettings.theme&&this.portfolio.templateSettings.hero.image.url&&!this.portfolio.designSettings.colorStyles.background.primaryColor?[{background:"url('".concat(this.portfolio.templateSettings.hero.image.url,"') 100% 100% / 100% 100% no-repeat")}]:null},theme:function(){return this.portfolio.templateSettings.theme},navigationIsBelow:function(){return this.portfolio.templateSettings.navigation&&this.portfolio.templateSettings.navigation.type===a.m3.BELOW}}),methods:{selected:function(e){return this.viewData.activePage===e.shortId?"selected":""},active:function(e){return this.viewData.activePage===e.shortId?"active":""},pageTitle:function(e){return this.portfolio.templateSettings.navigation.navigationItems.button.upperCase?e.toUpperCase():e},socialLinksAreInNavbar:function(){return this.portfolio.templateSettings.navigation.socialLinksLocation===a.U$.NAVBAR&&this.portfolio.socialLinks&&this.portfolio.socialLinks.length>0&&""!==this.portfolio.socialLinks[0].type},navigationIsInlineUnderText:function(){return this.portfolio.templateSettings.navigation.type===a.m3.INLINE_BELOW_TEXT},showHambi:function(){return!(this.navigationIsInlineUnderText()||this.templateSettings.theme.includes("profile_theme_default")||this.templateSettings.theme.includes("profile_theme_four")||this.templateSettings.theme.includes("profile_theme_nine"))},goHome:function(){window.location=this.portfolio.ownDomainAddress?"https://"+this.portfolio.ownDomainAddress:"/"+this.portfolio.shortId}}};const b=(0,n(66262).A)(y,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("GetHeroPortfolioLogo"),d=(0,r.g2)("GetHeroNavigationItem"),p=(0,r.g2)("GetHeroSocialLinks"),f=(0,r.g2)("HamburgerToggle"),h=(0,r.g2)("GetHeroPortfolioImage");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["navbar","legacy",c.navBarLayout,c.navBarStyle])},[c.navigationIsBelow?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(u,{key:0})),(0,r.Lk)("div",{class:(0,o.C4)(["navbar-container",{"no-mob":c.navigationIsInlineUnderText()||c.templateSettings.theme.includes("profile_theme_default")},e.viewData.navOpen?"on":""]),style:(0,o.Tr)(c.usePortfolioHeroBackground)},[c.showLines?((0,r.uX)(),(0,r.CE)("div",i)):(0,r.Q3)("v-if",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(c.portfolioPages,function(e,t){return(0,r.uX)(),(0,r.Wv)(d,{index:t,page:e,key:e._id},null,8,["index","page"])}),128)),c.socialLinksAreInNavbar()?((0,r.uX)(),(0,r.Wv)(p,{key:1})):(0,r.Q3)("v-if",!0),c.showLines?((0,r.uX)(),(0,r.CE)("div",s)):(0,r.Q3)("v-if",!0)],6),c.showHambi()?((0,r.uX)(),(0,r.Wv)(f,{key:1})):(0,r.Q3)("v-if",!0),"theme_three"===c.templateSettings.theme?((0,r.uX)(),(0,r.CE)("div",{key:2,onClick:t[0]||(t[0]=function(){return c.goHome&&c.goHome.apply(c,arguments)})},[(0,r.bF)(h)])):(0,r.Q3)("v-if",!0)],2)}],["__scopeId","data-v-3a9eb8c8"]]),w=b},36230(e,t,n){"use strict";n.d(t,{A:()=>y});
2var r=n(20641),o=n(90033);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a={key:0,width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=["href","target","data-text"],c=["data-text"];var u=n(15637),d=n(74256),p=n(82124);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g={name:"GetHeroNavigationItem",props:["page","index","isInFooter"],components:{AnimationWrapper:u.A},computed:m(m({},(0,p.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},showSeparator:function(){return this.index>0&&this.portfolio.templateSettings.navigation.style===d.B0.FORWARD_SLASH},homeIsVisible:function(){return this.$store.getters.isCaseStudy||!this.portfolio.templateSettings.theme.includes("theme_one")&&!this.portfolio.templateSettings.theme.includes("theme_two")},socialLinks:function(){return this.viewData.user.socialLinks?this.viewData.user.socialLinks:this.portfolio.socialLinks},style:function(){return this.isInFooter?"regular":this.portfolio.templateSettings.navigation.navigationItems.button.style}},(0,p.L8)("design",["animationSettings"])),methods:{selected:function(e){return this.viewData.activePage===e.shortId?"selected":""},active:function(e){return this.viewData.activePage===e.shortId?"active":""},rootIsOwnDomain:function(){return this.portfolio.ownDomainAddress&&location.origin.includes(this.portfolio.ownDomainAddress)},homeNavigation:function(e){e.preventDefault();var t=this.rootIsOwnDomain()?"/":"/".concat(this.portfolio.shortId);this.$router.push(t),this.viewData.navOpen=!1},navigationRef:function(e,t){e.preventDefault();var n=this.rootIsOwnDomain()?"/p/".concat(t.shortId):"/p/".concat(this.portfolio.shortId,"/").concat(t.shortId);this.$router.push(n),this.viewData.navOpen=!1},pageTitle:function(e){return this.portfolio.templateSettings.navigation.navigationItems.button.upperCase?e.toUpperCase():e},isFinalSection:function(){return!!(this.portfolio.templateSettings.theme.includes("theme_four")||this.portfolio.templateSettings.theme.includes("theme_nine")||this.portfolio.templateSettings.theme.includes("theme_default"))},animationDelay:function(e){var t=Math.round(100*(e?.1*e:0))/100;return this.socialLinks&&this.portfolio.templateSettings.theme.includes("theme_one")&&(t+=.6+.1*this.socialLinks.length),this.homeIsVisible||this.portfolio.templateSettings.theme.includes("theme_two")||!this.socialLinks||(t-=.1),t}}};const y=(0,n(66262).A)(g,[["render",function(e,t,n,s,u,d){var p,f=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(f,{"animation-style":"NONE"!==(null===(p=e.animationSettings)||void 0===p?void 0:p.animationStyle)?"FADE_IN":null,"is-final-section":d.isFinalSection()||n.isInFooter,"delay-animation":d.animationDelay(n.index)},{animationContent:(0,r.k6)(function(){var e,s,u;return[(0,r.Lk)("div",{class:(0,o.C4)(["navbar-item",d.selected(n.page)])},[d.showSeparator?((0,r.uX)(),(0,r.CE)("svg",a,i(t[2]||(t[2]=[(0,r.Lk)("g",{id:"slash icon"},[(0,r.Lk)("path",{id:"Vector","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.0744 22.4L15.6456 1.59998H17.8088L9.236 22.4H7.0744Z",fill:"#8F94A3"})],-1)])))):(0,r.Q3)("v-if",!0),"home"===n.page.type?((0,r.uX)(),(0,r.CE)("a",{key:1,onClick:t[0]||(t[0]=function(e){return d.homeNavigation(e)}),class:(0,o.C4)(["btn",d.style,d.active(n.page)])},(0,o.v_)(d.pageTitle(n.page.name)),3)):["file","mailto","link"].includes(n.page.type)?((0,r.uX)(),(0,r.CE)("a",{key:2,href:"mailto"===n.page.type?"mailto:"+(null===(e=n.page.settings)||void 0===e||null===(e=e.link)||void 0===e?void 0:e.url):null===(s=n.page.settings)||void 0===s||null===(s=s.link)||void 0===s?void 0:s.url,target:null!==(u=n.page.settings)&&void 0!==u&&null!==(u=u.link)&&void 0!==u&&u.openInNewTab?"_blank":null,rel:"nofollow noopener","data-text":d.pageTitle(n.page.name),class:(0,o.C4)(["btn",d.style])},(0,o.v_)(d.pageTitle(n.page.name)),11,l)):((0,r.uX)(),(0,r.CE)("a",{key:3,onClick:t[1]||(t[1]=function(e){return d.navigationRef(e,n.page)}),class:(0,o.C4)(["btn",d.style,d.active(n.page)]),"data-text":n.page.name},(0,o.v_)(d.pageTitle(n.page.name)),11,c))],2)]}),_:1}
2,8,["animation-style","is-final-section","delay-animation"])}],["__scopeId","data-v-2837e4d1"]])},23231(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(20641),o=n(90033),i=["src","alt"];var s=n(15637),a=n(82124);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={name:"GetHeroPortfolioImage",components:{AnimationWrapper:s.A},props:[""],computed:u(u({},(0,a.L8)("view",["viewData"])),{},{templateSettings:function(){return this.$store.state.portfolio.templateSettings},image:function(){return this.$store.state.portfolio.image},imageUrl:function(){return this.$store.state.portfolio.image.croppedImageUrl?this.$store.state.portfolio.image.croppedImageUrl:this.$store.state.portfolio.image.url?this.$store.state.portfolio.image.url:n(78790)},imageAlt:function(){return this.viewData.user.name+"s portfolio profile image"},animationDelay:function(){return this.$store.state.portfolio&&this.$store.state.portfolio.templateSettings&&this.$store.state.portfolio.templateSettings.showProfilePicture?this.$store.state.portfolio.templateSettings.hero.flipped?this.$store.state.portfolio.templateSettings.theme.includes("theme_sixteen")?.2:.4:this.$store.state.portfolio.templateSettings.theme.includes("theme_sixteen")?.4:.2:0}})};const f=(0,n(66262).A)(p,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(c,{"delay-animation":l.animationDelay},{animationContent:(0,r.k6)(function(){var e,t;return[l.templateSettings.showProfilePicture?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--page-hero-image",l.templateSettings.hero&&l.templateSettings.hero.height?"":"fix-h",l.templateSettings.hero&&l.templateSettings.hero.flipped?"flipped":"",l.image.displayMode?l.image.displayMode:"theme-default",l.templateSettings.hero&&l.templateSettings.hero.alignment.vertical?l.templateSettings.hero.alignment.vertical:"",l.templateSettings.hero&&l.templateSettings.hero.alignment.horizontal?l.templateSettings.hero.alignment.horizontal:"left"]),style:(0,o.Tr)({"--background-color":l.templateSettings.hero&&null!==(e=l.templateSettings.hero)&&void 0!==e&&null!==(e=e.backgroundSettings)&&void 0!==e&&e.backgroundColor?null===(t=l.templateSettings.hero)||void 0===t||null===(t=t.backgroundSettings)||void 0===t?void 0:t.backgroundColor:null})},[(0,r.Lk)("img",{src:l.imageUrl,alt:l.imageAlt,class:"hero-image"},null,8,i)],6)):(0,r.Q3)("v-if",!0)]}),_:1},8,["delay-animation"])}]])},61364(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(20641),o=n(90033),i={key:0,class:"navbar-logo view"},s=["src","height"],a=["src","height"],l={key:0,class:"navbar-id"};var c=n(15637),u=n(82124);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={name:"GetHeroPortfolioLogo",components:{AnimationWrapper:c.A},methods:{homeNavigation:function(e){e.preventDefault();var t=this.rootIsOwnDomain()?"/":"/".concat(this.portfolio.shortId);this.$router.push(t),this.viewData.navOpen=!1},rootIsOwnDomain:function(){return this.portfolio.ownDomainAddress&&location.origin.includes(this.portfolio.ownDomainAddress)}},computed:f(f(f({},(0,u.L8)("view",["viewData"])),(0,u.L8)("design",["animationSettings"])),{},{user:function(){return this.viewData.user},portfolio:function(){return this.viewData.portfolio},resolvedLogo:function(){var e,t;return(null===(e=this.portfolio)||void 0===e?void 0:e.logo)||(null===(t=this.portfolio)||void 0===t||null===(t=t.templateSettings)||void 0===t?void 0:t.logo)||null},logoUrl:function(){var e=this.resolvedLogo;return e?e.media?e.media.croppedImageUrl||e.media.url:e.image?e.image.url:null:null},logoHeight:function(){var e=this.resolvedLogo;return e&&(e.media?e.media.height:e.image?e.image.height:null)||48},showLogo:function(){var e,t=this.resolvedLogo;return!!t&&("Logo"===(t.mode||(null!==(e=t.image)&&void 0!==e&&e.url?"Logo":"None"))&&!!this.logoUrl)},notAllowedInThemes:function(){return["theme_one","theme_two","theme_three","theme_six","theme_seven","theme_eleven"]},checkLocation:function(){return window.location.pathname.includes("/p/")},showOwnerId:function(){return this.portfolio.templateSettings.navigation.navigationItems.ownerId.visible},userName:function(){return this.viewData.portfolio.isTemplatePortfolio&&this.viewData.portfolioTemplate?this.viewData.portfolioTemplate.defaults.persona:this.user.name}})};const v=(0,n(66262).A)(m,[["render",function(e,t,n,c,u,d){var p,f=(0,r.g2)("AnimationWrapper");return!d.showLogo||d.notAllowedInThemes.includes(d.portfolio.templateSettings.theme)||d.portfolio.templateSettings.theme.includes("profile_")?d.showOwnerId?((0,r.uX)(),(0,r.CE)(r.FK,{key:1},["theme_sixteen"!==d.portfolio.templateSettings.theme?((0,r.uX)(),(0,r.Wv)(f,{key:0},{animationContent:(0,r.k6)(function(){return[d.checkLocation?((0,r.uX)(),(0,r.CE)("a",{key:1,onClick:t[1]||(t[1]=function(e){return d.homeNavigation(e)}),class:"navbar-id"},(0,o.v_)(d.userName),1)):((0,r.uX)(),(0,r.CE)("div",l,(0,o.v_)(d.userName),1))]}),_:1})):(0,r.Q3)("v-if",!0)],64)):(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(f,{key:0,"animation-style":"NONE"!==(null===(p=e.animationSettings)||void 0===p?void 0:p.animationStyle)?"FADE_IN":null},{animationContent:(0,r.k6)(function(){return[d.checkLocation?((0,r.uX)(),(0,r.CE)("a",{key:1,onClick:t[0]||(t[0]=function(e){return d.homeNavigation(e)}),class:"navbar-logo view"},[(0,r.Lk)("img",{src:d.logoUrl,height:d.logoHeight,alt:"Portfolio logo"},null,8,a)])):((0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("img",{src:d.logoUrl,height:d.logoHeight,alt:"Portfolio logo"},null,8,s)]))]}),_:1},8,["animation-style"]))}],["__scopeId","data-v-71ae148d"]])},11838(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(20641),o=n(90033),i=["href","data-text"],s={key:0};var a=n(74256),l=n(82124);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={name:"GetHeroSocialLinkItem",props:{socialLink:{type:Object,default:null}},methods:{getCleanType:function(e){return"x-twitter"===e.toLowerCase()?"x":this.templateSettings.navigation.navigationItems.button.upperCase?e.toUpperCase():e}},computed:d(d({},(0,l.L8)("view",["viewData"])),{},{templateSettings:function(){return this.viewData.portfolio.templateSettings},socialLinkStyle:function(){return this.templateSettings.navigation.navigationItems.socialLink.style},linkIsTextType:function(){return this.templateSettings.navigation.navigationItems.socialLink.type===a.tD.TEXT&&"theme_seventeen"!==this.templateSettings.theme}})};const h=(0,n(66262).A)(f,[["render",function(e,t,n,a,l,c){return(0,r.uX)(),(0,r.CE)("a",{href:n.socialLink.url,target:"_blank",rel:"nofollow noopener",class:(0,o.C4)([c.socialLinkStyle,c.linkIsTextType?"text":"icon",c.getCleanType(n.socialLink.type).toLowerCase()]),"data-text":c.linkIsTextType?c.getCleanType(n.socialLink.type):null},[c.linkIsTextType?((0,r.uX)(),(0,r.CE)("span",s,(0,o.v_)(c.getCleanType(n.socialLink.type)),1)):((0,r.uX)(),(0,r.CE)("i",{key:1,class:(0,o.C4)(["fa","fa-"+n.socialLink.type.toLowerCase()])},null,2))],10,i)}],["__scopeId","data-v-2d42b7b3"]])},16280(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(20641),o=n(90033);n(74256);var i=n(15637),s=n(11838),a=n(82124);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={name:"GetHeroSocialLinks",components:{GetHeroSocialLinkItem:s.A,AnimationWrapper:i.A},computed:u(u({},(0,a.L8)("view",["viewData"])),{},{user:function(){return this.viewData.user},portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.portfolio.templateSettings},socialLinks:function(){return this.user.socialLinks?this.user.socialLinks:this.portfolio.socialLinks},filteredSocials:function(){return this.socialLinks.filter(function(e){return""!==e.url})}},(0,a.L8)("design",["animationSettings"]))};const f=(0,n(66262).A)(p,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("GetHeroSocialLinkItem"),c=(0,r.g2)("AnimationWrapper");return a.user.socialLinks||a.portfolio.socialLinks?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["social-links",a.templateSettings.showProfilePicture?"":"full-w",a.templateSettings.hero&&a.templateSettings.hero.alignment.horizontal?a.templateSettings.hero.alignment.horizontal:""])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.filteredSocials,function(t,n){var o;return(0,r.uX)(),(0,r.Wv)(c,{key:t,"animation-style":"NONE"!==(null===(o=e.animationSettings)||void 0===o?void 0:o.animationStyle)?"FADE_IN":null,"delay-animation":.6+.1*n},{animationContent:(0,r.k6)(function(){return[(0,r.bF)(l,{"social-link":t},null,8,["social-link"])]}),_:2},1032,["animation-style","delay-animation"])}),128))],2)):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-6234b986"]])},83850(e,t,n){"use strict";n.d(t,{A:()=>S});
2var r=n(20641),o=n(90033),i={ref:"track",class:"animated-text-track"};var s=n(85880),a=n(82124),l=n(84794),c=n(46335);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={OFF:null,TILDE:"animated-text-divider-wave",ARROW:"animated-text-divider-arrow",DIAMOND:"animated-text-divider-sparkle",ASTERISK:"animated-text-divider-star"},m=[{textSize:21,SLOW:44,MEDIUM:88,FAST:176},{textSize:36,SLOW:38,MEDIUM:76,FAST:152},{textSize:72,SLOW:36,MEDIUM:72,FAST:144},{textSize:112,SLOW:50,MEDIUM:100,FAST:200}],v=[{textSize:21,dividerSize:24,tokenGap:24},{textSize:36,dividerSize:40,tokenGap:36},{textSize:72,dividerSize:80,tokenGap:64},{textSize:112,dividerSize:120,tokenGap:80}],g=[{textSize:21,dividerSize:24,tokenGap:24},{textSize:32,dividerSize:36,tokenGap:32}],y=[{textSize:21,waveHeight:150,waveCycles:1.5},{textSize:32,waveHeight:210,waveCycles:1.5}];const b={name:"AnimatedText",components:{SectionBase:l.A,Icon:c.A},props:{section:{type:Object,required:!0}},data:function(){return{hoverActive:!1,marqueeOffsetPx:0,sequenceWidth:0,marqueeCycleWidth:0,repeatCount:30,gsapTickerCallback:null,setTrackX:null,onWindowResize:null,waveTokenSetters:[],waveTokenBaseX:[],waveAmplitudeCached:0,waveKCached:0}},watch:{tokens:function(){var e=this;this.isWavy&&this.resetWaveTransforms(),this.$nextTick(function(){return e.refreshSequenceWidth()})},lineStyle:{deep:!0,handler:function(){var e=this;this.$nextTick(function(){return e.refreshSequenceWidth()})}},overflowClass:function(){var e=this;this.$nextTick(function(){return e.refreshSequenceWidth()})},isWavy:function(e){var t=this;this.$nextTick(function(){e?t.cacheTokenPositions():t.resetWaveTransforms()})}},mounted:function(){var e=this;this.$nextTick(function(){e.initializeTrackSetter(),e.refreshSequenceWidth(),e.startMarqueeLoop()}),document.fonts.ready.then(function(){e.$nextTick(function(){return e.refreshSequenceWidth()})}),this.onWindowResize=function(){return e.refreshSequenceWidth()},window.addEventListener("resize",this.onWindowResize)},beforeUnmount:function(){this.onWindowResize&&window.removeEventListener("resize",this.onWindowResize),this.stopMarqueeLoop()},computed:p(p({},(0,a.L8)("view",["viewData"])),{},{designSettings:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.animatedTextDesignSettings)||{}},interactionSettings:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.animatedTextInteractionSettings)||{}},items:function(){var e;return Array.isArray(null===(e=this.section)||void 0===e?void 0:e.items)?this.section.items.map(function(e){return null==e?void 0:e.text}).filter(Boolean):[]},dividerIcon:function(){var e,t,n=(null===(e=this.designSettings)||void 0===e?void 0:e.dividerStyle)||"OFF";return null!==(t=h[n])&&void 0!==t?t:null},tokens:function(){var e=this,t=[];return this.items.forEach(function(n,r){r>0&&e.dividerIcon&&t.push({type:"divider",icon:e.dividerIcon}),t.push({type:"item",text:n,chars:n.split("")})}),this.dividerIcon&&this.items.length>=1&&t.push({type:"divider",icon:this.dividerIcon}),t},lineStyle:function(){var e,t,n=(null===(e=this.designSettings)||void 0===e?void 0:e.fontSettings)||{},r=this.resolveTextColor(null===(t=this.designSettings)||void 0===t?void 0:t.textColor),o=this.resolveDividerMetrics(n.size),i=o.dividerSize,s=o.tokenGap,a=n.lineHeight||40,l=this.resolveWaveHeight(n.size);return{color:r,fontFamily:n.font||null,fontWeight:n.fontWeight||null,fontStyle:n.fontStyle||null,fontSize:n.size?"".concat(n.size,"px"):null,lineHeight:"".concat(a,"px"),"--animated-text-divider-size":"".concat(i,"px"),"--animated-text-sequence-gap":"".concat(s,"px"),"--animated-text-line-height":"".concat(a,"px"),"--animated-text-wave-height":"".concat(l,"px")}},isWavy:function(){var e;return"WAVY"===((null===(e=this.designSettings)||void 0===e?void 0:e.layout)||"LINEAR")},layoutClass:function(){return this.isWavy?"layout-wavy":"layout-linear"},overflowClass:function(){var e,t=(null===(e=this.designSettings)||void 0===e?void 0:e.overflowStyle)||"FULL_WIDTH";return"FADED"===t?"overflow-faded":"CLIPPED"===t?"overflow-clipped":"overflow-full-width"},baseSpeedPxPerSecond:function(){var e,t,n=(null===(e=this.interactionSettings)||void 0===e?void 0:e.animationSpeed)||"MEDIUM",r=Number(null===(t=this.designSettings)||void 0===t||null===(t=t.fontSettings)||void 0===t?void 0:t.size)||36;return m.reduce(function(e,t){return Math.abs(t.textSize-r)<Math.abs(e.textSize-r)?t:e})[n]},isClickable:function(){var e,t,n,r=(null===(e=this.interactionSettings)||void 0===e?void 0:e.clickInteraction)||"NONE";return"OPEN_LINK"===r?!(null===(t=this.interactionSettings)||void 0===t||!t.clickUrl):"NAVIGATE_TO_PAGE"===r&&!(null===(n=this.interactionSettings)||void 0===n||!n.clickPageId)},portfolio:function(){var e;return(null===(e=this.viewData)||void 0===e?void 0:e.portfolio)||this.$store.state.portfolio},colorPalette:function(){var e,t,n;return(null===(e=this.viewData)||void 0===e||null===(e=e.portfolio)||void 0===e||null===(e=e.designSettings)||void 0===e?void 0:e.colorPalette)||(null===(t=this.$store.getters)||void 0===t?void 0:t["design/colorPalette"])||(null===(n=this.$store.state.portfolio)||void 0===n||null===(n=n.designSettings)||void 0===n?void 0:n.colorPalette)||null},isClipped:function(){var e;return"CLIPPED"===((null===(e=this.designSettings)||void 0===e?void 0:e.overflowStyle)||"FULL_WIDTH")},clipBoundaryStyle:function(){var e,t=this.resolveTextColor(null===(e=this.designSettings)||void 0===e?void 0:e.clippedLineColor);return t?{background:t}:null}}),methods:{resolveTextColor:function(e){var t,n,r=null==e||null===(t=e.text)||void 0===t?void 0:t.idle;return Number.isFinite(null==r?void 0:r.paletteColorIndex)?(null===(n=this.colorPalette)||void 0===n||null===(n=n.colors)||void 0===n?void 0:n[r.paletteColorIndex])||(null==r?void 0:r.color)||(null==e?void 0:e.primaryColor)||"#1D1D1D":(null==r?void 0:r.color)||(null==e?void 0:e.primaryColor)||"#1D1D1D"},tokenStyle:function(){return null},resolveWaveHeight:function(e){var t=y[1]||y[0],n=Number(e)||t.textSize,r=y.reduce(function(e,t){return Math.abs(t.textSize-n)<Math.abs(e.textSize-n)?t:e},t);return Math.round(r.waveHeight*this.resolveWaveViewportScale())},resolveWaveViewportScale:function(){var e=window.innerWidth||1440;return e<=767?.35:e<=1023?.62:1},resolveWaveCycles:function(e){var t=y[1]||y[0],n=Number(e)||t.textSize;return y.reduce(function(e,t){return Math.abs(t.textSize-n)<Math.abs(e.textSize-n)?t:e},t).waveCycles||1},resolveDividerMetrics:function(e){var t=this.isWavy?g:v,n=t[1]||t[0],r=Number(e)||n.textSize,o=t.reduce(function(e,t){return Math.abs(t.textSize-r)<Math.abs(e.textSize-r)?t:e},n);return{dividerSize:o.dividerSize,tokenGap:o.tokenGap}},initializeTrackSetter:function(){this.$refs.track&&(this.setTrackX=s.Ay.quickSetter(this.$refs.track,"x","px"),s.Ay.set(this.$refs.track,{x:0,force3D:!0}))},applyTrackOffset:function(){this.setTrackX&&this.setTrackX(-this.marqueeOffsetPx)},refreshSequenceWidth:function(){var e,t=this,n=null===(e=this.$refs.track)||void 0===e?void 0:e.querySelector(".animated-text-sequence");if(n){var r=parseFloat(window.getComputedStyle(this.$refs.track).columnGap
2)||0,o=(n.offsetWidth||0)+r;if(o){var i=this.resolveCycleRepeatCount(o);this.sequenceWidth=o,this.marqueeCycleWidth=o*i,this.marqueeOffsetPx=this.marqueeCycleWidth>0?this.marqueeOffsetPx%this.marqueeCycleWidth:0,this.applyTrackOffset();var s=Math.max(2,i+Math.ceil(window.innerWidth/this.sequenceWidth)+2);this.repeatCount=s,this.$nextTick(function(){t.isWavy?t.cacheTokenPositions():t.resetWaveTransforms()})}}},cacheTokenPositions:function(){var e,t,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.$refs.track){var o=this.$refs.track,i=o.getBoundingClientRect().width/(o.offsetWidth||1);if(i<=0)r<10&&requestAnimationFrame(function(){return n.cacheTokenPositions(r+1)});else{var a=o.getBoundingClientRect(),l=Array.from(o.querySelectorAll(".animated-text-char, .animated-text-token.divider-icon"));this.waveTokenBaseX=l.map(function(e){return(e.getBoundingClientRect().left-a.left)/i}),this.waveTokenSetters=l.map(function(e){return{y:s.Ay.quickSetter(e,"y","px"),rotation:s.Ay.quickSetter(e,"rotation","deg")}});var c=this.resolveWaveHeight(null===(e=this.designSettings)||void 0===e||null===(e=e.fontSettings)||void 0===e?void 0:e.size),u=this.resolveWaveCycles(null===(t=this.designSettings)||void 0===t||null===(t=t.fontSettings)||void 0===t?void 0:t.size);this.waveAmplitudeCached=c/2,this.waveKCached=this.marqueeCycleWidth>0?2*Math.PI*u/this.marqueeCycleWidth:0,this.applyWaveTransforms()}}},resolveCycleRepeatCount:function(e){if(!this.isWavy)return 1;var t=Number(e)||0;return t<=0?1:Math.max(1,Math.ceil(window.innerWidth/t))},applyWaveTransforms:function(){var e=this;if(this.waveTokenSetters.length){var t=this.waveAmplitudeCached,n=this.waveKCached;this.waveTokenSetters.forEach(function(r,o){var i=e.waveTokenBaseX[o]-e.marqueeOffsetPx,s=n*i;r.y(t*Math.sin(s)),r.rotation(Math.atan(t*n*Math.cos(s))*(180/Math.PI))})}},resetWaveTransforms:function(){var e,t=null===(e=this.$refs.track)||void 0===e?void 0:e.querySelectorAll(".animated-text-char, .animated-text-token.divider-icon");t&&t.forEach(function(e){return s.Ay.set(e,{y:0,rotation:0})}),this.waveTokenSetters=[],this.waveTokenBaseX=[]},getCurrentSpeedPxPerSecond:function(){var e,t=this.baseSpeedPxPerSecond,n=(null===(e=this.interactionSettings)||void 0===e?void 0:e.hoverInteraction)||"NONE";return"PAUSE"===n&&this.hoverActive?0:"SLOW_DOWN"===n&&this.hoverActive?.45*t:t},startMarqueeLoop:function(){var e=this;if(!this.gsapTickerCallback){var t=s.Ay.ticker.time;this.gsapTickerCallback=function(){var n=s.Ay.ticker.time,r=Math.max(0,n-t);t=n;var o=e.getCurrentSpeedPxPerSecond();e.marqueeCycleWidth>0&&o>
20&&(e.marqueeOffsetPx=(e.marqueeOffsetPx+o*r)%e.marqueeCycleWidth,e.applyTrackOffset()),e.isWavy&&e.applyWaveTransforms()},s.Ay.ticker.add(this.gsapTickerCallback)}},stopMarqueeLoop:function(){this.gsapTickerCallback&&(s.Ay.ticker.remove(this.gsapTickerCallback),this.gsapTickerCallback=null)},normalizeUrl:function(e){var t=(e||"").trim();return t?/^(https?:\/\/|mailto:|tel:)/i.test(t)?t:"https://".concat(t):null},rootIsOwnDomain:function(){var e;return!(null===(e=this.portfolio)||void 0===e||!e.ownDomainAddress)&&location.origin.includes(this.portfolio.ownDomainAddress)},handleClick:function(){var e,t,n;if(this.isClickable){var r=(null===(e=this.interactionSettings)||void 0===e?void 0:e.clickInteraction)||"NONE";if("OPEN_LINK"!==r){if("NAVIGATE_TO_PAGE"===r){var o=null===(t=this.interactionSettings)||void 0===t?void 0:t.clickPageId,i=(this.$store.state.portfolioPages||[]).find(function(e){return(null==e?void 0:e.shortId)===o&&!(null!=e&&e.deletedAt)});if(i){if("home"===i.type){var s,a=this.rootIsOwnDomain()?"/":"/".concat(null===(s=this.portfolio)||void 0===s?void 0:s.shortId);return this.$router.push(a),void(this.viewData&&(this.viewData.navOpen=!1))}if("file"!==i.type&&"link"!==i.type&&"mailto"!==i.type){var l=this.rootIsOwnDomain()?"/p/".concat(i.shortId):"/p/".concat(null===(n=this.portfolio)||void 0===n?void 0:n.shortId,"/").concat(i.shortId);this.$router.push(l),this.viewData&&(this.viewData.navOpen=!1)}else{var c,u,d=null==i||null===(c=i.settings)||void 0===c||null===(c=c.link)||void 0===c?void 0:c.url;if(!d)return;var p="mailto"===i.type?"mailto:":"",f="".concat(p).concat(d);null!=i&&null!==(u=i.settings)&&void 0!==u&&null!==(u=u.link)&&void 0!==u&&u.openInNewTab?window.open(f,"_blank","noopener,noreferrer"):window.location.href=f}}}}else{var h,m=this.normalizeUrl(null===(h=this.interactionSettings)||void 0===h?void 0:h.clickUrl);m&&window.open(m,"_blank")}}}}};const w=(0,n(66262).A)(b,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("Icon"),u=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(u,{section:n.section},{default:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["animated-text-shell",l.overflowClass,l.layoutClass,{clickable:l.isClickable}]),style:(0,o.Tr)(l.lineStyle),onMouseenter:t[0]||(t[0]=function(e){return a.hoverActive=!0}),onMouseleave:t[1]||(t[1]=function(e){return a.hoverActive=!1}),onClick:t[2]||(t[2]=function(){return l.handleClick&&l.handleClick.apply(l,arguments)})},[l.isClipped?((0,r.uX)(),(0,r.CE)("span",{key:0,class:"clip-boundary left",style:(0,o.Tr)(l.clipBoundaryStyle)},null,4)):(0,r.Q3)("v-if",!0),l.isClipped?((0,r.uX)(),(0,r.CE)("span",{key:1,class:"clip-boundary right",style:(0,o.Tr)(l.clipBoundaryStyle)},null,4)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",i,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.repeatCount,function(e){return(0,r.uX)(),(0,r.CE)("div",{class:"animated-text-sequence",key:e},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(l.tokens,function(t,n){return(0,r.uX)(),(0,r.CE)("span",{key:"".concat(e,"-").concat(n),class:(0,o.C4)(["animated-text-token",{"divider-icon":"divider"===t.type}]),style:(0,o.Tr)(l.tokenStyle(n,e))},["divider"===t.type?((0,r.uX)(),(0,r.Wv)(c,{key:0,"icon-name":t.icon},null,8,["icon-name"])):((0,r.uX)(!0),(0,r.CE)(r.FK,{key:1},(0,r.pI)(t.chars,function(e,t){return(0,r.uX)(),(0,r.CE)("span",{key:t,class:"animated-text-char"},(0,o.v_)(e),1)}),128))],6)}),128))])}),128))],512)],38)]}),_:1},8,["section"])}],["__scopeId","data-v-ee16ecce"]]),S=w},73305(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(20641),o=n(90033);var i=n(84794),s=n(38467),a=n(74256),l=n(82124),c=n(76655);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=f(f(f(f({},a.eY.ROW_2,2),a.eY.ROW_3,3),a.eY.GRID_2X2,2),a.eY.GRID_3X2,3);const m={name:"Cards",components:{SectionBase:i.A,GetSectionText:s.A},props:["section"],data:function(){return{equalizeFrame:null,onWindowResize:null}},mounted:function(){var e=this;this.onWindowResize=function(){return e.scheduleCardEqualize()},window.addEventListener("resize",this.onWindowResize),this.scheduleCardEqualize()},beforeUnmount:function(){this.onWindowResize&&window.removeEventListener("resize",this.onWindowResize),this.equalizeFrame&&(cancelAnimationFrame(this.equalizeFrame),this.equalizeFrame=null)},methods:{scheduleCardEqualize:function(){var e=this;"undefined"!=typeof window&&(this.equalizeFrame||(this.equalizeFrame=requestAnimationFrame(function(){e.equalizeFrame=null,e.syncCardEqualHeight()})))},syncCardEqualHeight:function(){var e=this.$el;if(e)if(window.innerWidth<768)e.style.removeProperty("--card-equal-height");else{e.style.removeProperty("--card-equal-height");var t=e.querySelectorAll(".ufo--card");if(t.length){var n=0;t.forEach(function(e){n=Math.max(n,e.offsetHeight||0)}),n>0&&e.style.setProperty("--card-equal-height","".concat(n,"px"))}}},visibleModules:function(){var e,t=this,n=h[this.section.layout]||2;return((null===(e=this.section.layoutSettings)||void 0===e||null===(e=e.modules)||void 0===e?void 0:e.filter(function(e){return e.type!==a.jB.SPACER}))||[]).map(function(e,r){var o,i,s;return{module:p(p({},e),{},{gridSettings:p(p({},null==e?void 0:e.gridSettings),Number.isFinite(null==e||null===(o=e.gridSettings)||void 0===o?void 0:o.rowStart)&&Number.isFinite(null==e||null===(i=e.gridSettings)||void 0===i?void 0:i.rowEnd)?{}:{rowStart:Math.floor(r/n)+1,rowEnd:Math.floor(r/n)+2})}),card:(null===(s=t.section.cards)||void 0===s?void 0:s[r])||null}})},columnSettings:function(e){var t,n,r,o,i=(0,c.f)(e.gridSettings),s=i.rowStart,a=i.rowEnd;return{"--columnStart":null===(t=e.gridSettings)||void 0===t?void 0:t.columnStart,"--columnEnd":null===(n=e.gridSettings)||void 0===n?void 0:n.columnEnd,"--rowStart":s,"--rowEnd":a,"--height":null!==(r=e.gridSettings)&&void 0!==r&&r.height?"".concat(null===(o=e.gridSettings)||void 0===o?void 0:o.height,"px"):null}}
2,resolveModuleBackgroundColor:function(){var e,t,n=null===(e=this.section.moduleBackgroundSettings)||void 0===e?void 0:e.color;return n?Number.isFinite(n.paletteColorIndex)?(null===(t=this.colorPalette)||void 0===t||null===(t=t.colors)||void 0===t?void 0:t[n.paletteColorIndex])||null:n.color||null:null}},computed:p(p({},(0,l.L8)("view",["viewData"])),{},{project:function(){return this.viewData.project||this.$store.state.project},portfolio:function(){return this.viewData.portfolio||this.$store.state.portfolio},isCaseStudy:function(){var e;return(null===(e=this.project)||void 0===e?void 0:e.type)===a.Q8.CASE_STUDY},usingGlobalColorStyles:function(){return this.project.type===a.Q8.CASE_STUDY&&this.project.designSettings.globalColorStyles},colorPalette:function(){return this.isCaseStudy&&!this.usingGlobalColorStyles?this.project.designSettings.colorPalette:this.portfolio.designSettings.colorPalette},cardTypeClass:function(){var e,t=null===(e=this.section.moduleBackgroundSettings)||void 0===e?void 0:e.moduleBackgroundType;return"OUTLINE"===t?"card-type--outline":"SOLID"===t?"card-type--fill":"card-type--none"}
2,cardStyleVars:function(){var e,t;return{"--card-background-color":this.resolveModuleBackgroundColor(),"--card-corner-radius":null!=(null===(e=this.section.moduleBackgroundSettings)||void 0===e?void 0:e.cornerRadiusPx)?"".concat(this.section.moduleBackgroundSettings.cornerRadiusPx,"px"):null,"--card-outline-width":null!=(null===(t=this.section.moduleBackgroundSettings)||void 0===t||null===(t=t.stroke)||void 0===t?void 0:t.strength)?"".concat(this.section.moduleBackgroundSettings.stroke.strength,"px"):null}}})};const v=(0,n(66262).A)(m,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("GetSectionText"),c=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(c,{section:n.section},{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.visibleModules(),function(e,t){var n=e.module,i=e.card;return(0,r.uX)(),(0,r.CE)("div",{key:n.moduleId||t,class:"col",style:(0,o.Tr)(a.columnSettings(n))},[(0,r.Lk)("div",{class:(0,o.C4)(["ufo--card",a.cardTypeClass]),style:(0,o.Tr)(a.cardStyleVars)},[(0,r.bF)(l,{"section-text":null==i?void 0:i.text},null,8,["section-text"])],6)],4)}),128))]}),_:1},8,["section"])}]])},49661(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(20641),o=n(90033),i={class:"ufo--column"};var s=n(65570),a=n(74256),l=n(76655),c=n(45847),u=n(38467);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={name:"Columns",props:["section"],components:{SectionBase:n(84794).A,SectionText:u.A,ColumnImageHelper:c.A},beforeMount:function(){(0,s.aQ)(this.section)},computed:{isCaseStudy:function(){return this.$store.getters.isCaseStudy},sectionColumns:function(){var e;return(Array.isArray(null===(e=this.section)||void 0===e?void 0:e.columns)?this.section.columns:[]).map(function(e){return!e||e.columnId?e:f(f({},e),{},{columnId:e.id||e._id||null})})}},methods:{visibleModules:function(){var e,t=this;return((null===(e=this.section.layoutSettings)||void 0===e?void 0:e.modules)||[]).map(function(e,t){return{module:e,index:t}}).filter(function(e){return e.module.type!==a.jB.SPACER}).map(function(e){var n=e.module,r=e.index;return{module:n,column:t.getColumnByModule(n,r)}})},getColumnIdFromModule:function(e,t){if(!e)return null;if(e.referencedColumnId)return e.referencedColumnId;if(e.columnId)return e.columnId;var n="number"==typeof t&&t>=0?this.sectionColumns[t]:null;return null!=n&&n.columnId?n.columnId:e.moduleId},getColumnByModule:function(e,t){if(!e)return null;var n=this.getColumnIndex(t),r=this.getColumnIdFromModule(e,n);if(r){var o=this.sectionColumns.find(function(e){return e.columnId===r});if(o)return o}return n>=0?this.sectionColumns[n]:null},getColumnIndex:function(e){for(var t,n=(null===(t=this.section.layoutSettings)||void 0===t?void 0:t.modules)||[],r=0,o=0;o<e;o++){var i;(null===(i=n[o])||void 0===i?void 0:i.type)===a.jB.COLUMN&&r++}var s=n[e];return(null==s?void 0:s.type)===a.jB.COLUMN?r:-1},columnSettings:function(e){var t,n,r,o,i,s,a=(0,l.f)(e.gridSettings),c=a.rowStart,u=a.rowEnd;return{"--columnStart":null===(t=e.gridSettings)||void 0===t?void 0:t.columnStart,"--columnEnd":null===(n=e.gridSettings)||void 0===n?void 0:n.columnEnd,"--rowStart":c,"--rowEnd":u,"--height":null!==(r=e.gridSettings)&&void 0!==r&&r.height?"".concat(null===(o=e.gridSettings)||void 0===o?void 0:o.height,"px"):null,"--mediaHeight":null!==(i=e.gridSettings)&&void 0!==i&&i.mediaHeight?"".concat(null===(s=e.gridSettings)||void 0===s?void 0:s.mediaHeight,"px"):null}},verticalAlignment:function(){var e,t;return"aligned-".concat(this.section.styleSettings&&(null===(e=this.section.styleSettings)||void 0===e?void 0:e.boxAlign)&&(null===(t=this.section.styleSettings)||void 0===t?void 0:t.boxAlign.split("-")[1])||"middle")},mediaAspectRatio:function(e,t){return{"--mediaAspectRatio":e&&!t?"".concat(e[0]," / ").concat(e[1]):null}}}};const v=(0,n(66262).A)(m,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("ColumnImageHelper"),u=(0,r.g2)("SectionText"),d=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(d,{section:n.section},{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(l.visibleModules(),function(e,t){var s,a,d=e.module,p=e.column;return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["col",[l.verticalAlignment()]]),style:(0,o.Tr)(l.columnSettings(d))},[(0,r.Lk)("div",i,[null!==(s=n.section.contentSettings)&&void 0!==s&&s.showMedia&&p?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"media-container",style:(0,o.Tr)(l.mediaAspectRatio(d.gridSettings.mediaAspectRatio,p.media.mockupSettings))},[(0,r.bF)(c,{index:t,"total-columns":n.section.columns.length,section:n.section,"column-media":p.media,"placeholder-image":"".concat(l.isCaseStudy?"":"portfolio-","empty-columns-0").concat(t+1,".").concat(l.isCaseStudy?"jpg":"png")},null,8,["index","total-columns","section","column-media","placeholder-image"])],4)):(0,r.Q3)("v-if",!0),!1!==(null===(a=n.section.contentSettings)||void 0===a?void 0:a.showText)&&p?((0,r.uX)(),(0,r.Wv)(u,{key:1,"text-index":t,"total-columns":n.section.columns.length,"section-text":p.text},null,8,["text-index","total-columns","section-text"])):(0,r.Q3)("v-if",!0)])],6)}),256))]}),_:1},8,["section"])}]])},68814(e,t,n){"use strict";n.d(t,{A:()=>h});
2var r=n(20641),o=n(90033),i=["innerHTML"];var s=n(84794),a=n(15637),l=n(82124);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={name:"DividerLine",components:{SectionBase:s.A,AnimationWrapper:a.A},props:["section"],methods:{fixText:function(e){return this.section[e].text}},computed:d(d({},(0,l.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio||this.$store.state.portfolio},project:function(){return this.viewData.project||this.$store.state.project},dividerStyle:function(){var e;return null!==(e=this.section.settings)&&void 0!==e?e:this.portfolio.templateSettings.dividerLineSettings},bgColor:function(){var e,t=null===(e=this.section.backgroundSettings)||void 0===e?void 0:e.backgroundColor;if(t){var n=t.startsWith("#")?t:"#".concat(t);return{"background-color":n}}return null}},(0,l.L8)("design",["animationSettings"]))};const h=(0,n(66262).A)(f,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("AnimationWrapper"),u=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(u,(0,r.v6)(e.$attrs,{section:n.section,style:[l.bgColor]}),{default:(0,r.k6)(function(){var s;return[(0,r.bF)(c,{"animation-style":"NONE"!==(null===(s=e.animationSettings)||void 0===s?void 0:s.animationStyle)?"FADE_IN":null},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["divider-line",l.dividerStyle.weight,l.dividerStyle.text_position,l.dividerStyle.text_alignment])},[t[0]||(t[0]=(0,r.Lk)("div",{class:"line preview"},null,-1)),"no_text"!==l.dividerStyle.text_position?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"text preview",style:(0,o.Tr)([l.bgColor])},[(0,r.Lk)("div",{class:(0,o.C4)(["text-container",n.section.title.style&&n.section.title.style.textStyle?n.section.title.style.textStyle:"default--h2"]),style:(0,o.Tr)({color:n.section.title.style&&!n.section.title.style.textStyle&&n.section.title.style.fontColor?n.section.title.style.fontColor:null}),innerHTML:l.fixText("title")},null,14,i)],4)):(0,r.Q3)("v-if",!0)],2)]}),_:1},8,["animation-style"])]}),_:1},16,["section","style"])}]])},56123(e,t,n){"use strict";n.d(t,{A:()=>S});var r=n(20641),o=n(90033);var i=n(84794),s=n(31639),a=n(84140),l=n(8241),c=n(76971),u=n(74256),d=n(42896),p={class:"media-caption"},f=["innerHTML"];const h={name:"GalleryCaption",props:{caption:{type:String,default:""},alignLeft:{type:Boolean,default:!1}},computed:{captionText:function(){return this.caption?this.caption.includes('rel="noopener noreferrer nofollow"')?this.caption:this.caption.replace("\n","<br />").replace("<a href=",'<a rel="noopener noreferrer nofollow" href='):""}}};var m=n(66262);const v=(0,m.A)(h,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["gallery-caption",{"align-left":n.alignLeft}])},[(0,r.Lk)("div",p,[(0,r.Lk)("div",{class:"text-container",innerHTML:a.captionText||"Â "},null,8,f)])],2)}]]);var g=n(70878);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w={name:"Gallery",components:{SectionBase:i.A,GalleryGrid:s.A,GallerySlider:a.A,GalleryCarou
2sel:l.A,GalleryTiltedLegacy:c.A,GetGalleryMediaContent:d.A,GalleryCaption:v},props:{section:{type:Object,default:null}},data:function(){return{autoHintCheckScheduled:!1}},mounted:function(){window.addEventListener("scroll",this.scheduleAutoHintCheck,{passive:!0}),window.addEventListener("resize",this.scheduleAutoHintCheck),this.scheduleAutoHintCheck()},beforeUnmount:function(){window.removeEventListener("scroll",this.scheduleAutoHintCheck),window.removeEventListener("resize",this.scheduleAutoHintCheck)},computed:{galleryItems:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.galleryItems)||[]},activeGalleryComponent:function(){var e;return b(b(b(b(b({},u.Bx.GRID,"GalleryGrid"),u.Bx.OFFSET_GRID,"GalleryGrid"),u.Bx.SLIDER,"GallerySlider"),u.Bx.CAROUSEL,"GalleryCarousel"),u.Bx.TILTED,"GalleryTiltedLegacy")[null===(e=this.section)||void 0===e?void 0:e.layout]||"GalleryGrid"}},methods:{scheduleAutoHintCheck:function(){var e=this;this.autoHintCheckScheduled||(this.autoHintCheckScheduled=!0,requestAnimationFrame(function(){e.autoHintCheckScheduled=!1,e.checkAutoHintTrigger()}))},checkAutoHintTrigger:function(){var e;if(this.$el){var t=this.$el.getBoundingClientRect(),n=.4*window.innerHeight,r=t.top<=n,o=t.bottom>0;if(r&&o)(0,g.l)(null===(e=this.section)||void 0===e?void 0:e._id)&&(window.removeEventListener("scroll",this.scheduleAutoHintCheck),window.removeEventListener("resize",this.scheduleAutoHintCheck))}}}},S=(0,m.A)(w,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("GetGalleryMediaContent"),c=(0,r.g2)("GalleryCaption"),u=(0,r.g2)("SectionBase");return n.section.galleryItems.length?((0,r.uX)(),(0,r.Wv)(u,{key:0,section:n.section},{default:(0,r.k6)(function(){return[((0,r.uX)(),(0,r.Wv)((0,r.$y)(a.activeGalleryComponent),{section:n.section,items:a.galleryItems},{"gallery-item":(0,r.k6)(function(e){var t,i=e.item,s=e.index,a=e.itemStyle,c=e.scrollHintPriority;return[(0,r.bF)(l,{"gallery-item":i,"image-styles":{aspectRatio:n.section.mediaAspectRatio,cornerRadius:n.section.cornerRadiusPx},index:s,"scroll-hint-priority":c,"scroll-hint-section-key":null===(t=n.section)||void 0===t?void 0:t._id,section:n.section,style:(0,o.Tr)(a)},null,8,["gallery-item","image-styles","index","scroll-hint-priority","scroll-hint-section-key","section","style"])]}),caption:(0,r.k6)(function(e){var t,n=e.activeItem,o=e.alignLeft;return[(0,r.bF)(c,{"align-left":o,caption:(null==n||null===(t=n.media)||void 0===t?void 0:t.caption)||""},null,8,["align-left","caption"])]}),_:1},8,["section","items"]))]}),_:1},8,["section"])):(0,r.Q3)("v-if",!0)}]])},2312(e,t,n){"use strict";n.d(t,{A:()=>ee});var r=n(20641),o=n(90033);var i=n(65570),s=n(74256),a=n(76655),l=n(54953),c=n(25973),u=n(81639),d=["value"],p=["disabled"],f=["disabled"],h=["disabled"],m={key:0},v={class:"cta-content"},g={class:"cta-label"};var y=n(22044),b=n(15637),w=n(38467),S=n(82124),k=n(71083),_=n(46335),O=n(92685),C=n(63970);function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function A(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return E(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(E(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,E(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,E(d,"constructor",c),E(c,"constructor",l),l.displayName="GeneratorFunction",E(c,o,"GeneratorFunction"),E(d),E(d,o,"Generator"),E(d,r,function(){return this}),E(d,"toString",function(){return"[object Generator]"}),(A=function(){return{w:i,m:p}})()}function E(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}E=function(e,t,n,r){function i(t,n){E(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},E(e,t,n,r)}function x(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?P(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j={name:"ContactForm",mixins:[O.A,C.A],props:["section"],components:{SectionText:w.A,AnimationWrapper:b.A,CtaButton:y.A,Icon:_.A},data:function(){return{statusMessage:"",statusActive:!1,isSending:!1,submitState:"idle",successTimer:null}},computed:I(I(I({},(0,S.L8)("design",["ctaStyles"])),(0,S.L8)("view",["viewData"])),{},{textAlign:function(){return this.section.text&&this.section.text.style&&this.section.text.style.textAlign?"push-to-"+this.section.text.style.textAlign:""},user:function(){return this.viewData.user||this.$store.state.user},submitButtonLabel:function(){return"sending"===this.submitState?"Sending...":"success"===this.submitState?"Message sent":""},isFormLocked:function(){return this.isSending||"success"===this.submitState},hasDisplayableText:function(){var e,t;return!!(null!==(e=this.section.text)&&void 0!==e&&e.text||null!==(t=this.section.title)&&void 0!==t&&t.text)},hasSeparateTextModule:function(){var e,t;return null!==(e=null===(t=this.section.layoutSettings)||void 0===t||null===(t=t.modules)||void 0===t?void 0:t.some(function(e){return"TEXT"===(null==e?void 0:e.type)}))&&void 0!==e&&e},showTextInModule:function(){var e;return this.hasDisplayableText&&!1!==(null===(e=this.section.contentSettings)||void 0===e?void 0:e.showText)&&!this.hasSeparateTextModule}}),methods:{showStatus:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.statusMessage=e,this.statusActive=!0,n&&setTimeout(function(){t.statusActive=!1,t.statusMessage=""},2500)},clearSuccessTimer:function(){this.successTimer&&(clearTimeout(this.successTimer),this.successTimer=null)},isValidEmail:function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},sendEmail:function(e){var t,n=this;return(t=A().m(function t(){var r,o,i,s,a,l,c,u,d;return A().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e.preventDefault(),!n.isSending){t.n=1;break}return t.a(2,!1);case 1:if(r=e.target,o=r.toEmail.value.trim(),i=n.user.name||"",s=r.senderName.value.trim(),a=r.senderEmail.value.trim(),l=r.message.value.trim(),n.isValidEmail(a)){t.n=2;break}return n.showStatus("Please enter a valid email address.",!1),r.senderEmail.focus(),t.a(2,!1);case 2:return n.clearSuccessTimer(),n.statusActive=!1,n.statusMessage="",n.isSending=!0,n.submitState="sending",c=i.replace(/[\r\n]+/g," ").trim(),u="\n <div>\n <p>Dear ".concat(c,",</p>\n <p>").concat(l.replace(/\n/g,"<br>"),"</p>\n <p>\n Best regards,<br>\n <strong>").concat(s,"</strong><br>\n ").concat(a,"\n </p>\n </div>\n "),d="Dear ".concat(c,",\n\n").concat(l,"\n\nBest regards,\n").concat(s,"\n").concat(a),k.A.defaults.headers.common["X-CSRF-TOKEN"]=document.querySelector('meta[name="csrf-token"]').getAttribute("content"),t.p=3,t.n=4,Promise.all([k.A.post("/portfolio/contact",{toEmail:o,message:u,textMessage:d,senderName:s,senderEmail:a,isHtml:!0}),new Promise(function(e){return setTimeout(e,1500)})]);case 4:n.isSending=!1,n.submitState="success",n.clearSuccessTimer(),n.successTimer=setTimeout(function(){n.submitState="idle",r.reset(),n.successTimer=null},2500),t.n=6;break;case 5:t.p=5,t.v,n.isSending=!1,n.submitState="idle",n.showStatus("Something went wrong. Please try again.");case 6:return t.a(2,!1)}},t,null,[[3,5]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){x(i,r,o,s,a,"next",e)}function a(e){x(i,r,o,s,a,"throw",e)}s(void 0)})})()}},beforeUnmount:function(){this.clearSuccessTimer()}};var M=n(66262);const D=(0,M.A)(j,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("SectionText"),c=(0,r.g2)("CtaButton"),u=(0,r.g2)("Icon"),y=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo--contact-form",[e.contactFormFieldClasses,{"form-disabled":a.isFormLocked}]]),style:(0,o.Tr)(e.contactFormFieldStyleVars)},[a.showTextInModule?((0,r.uX)(),(0,r.Wv)(l,{key:0,"section-text":n.section.text||n.section.title},null,8,["section-text"])):(0,r.Q3)("v-if",!0),(0,r.bF)(y,null,{animationContent:(0,r.k6)(function(){var i,l,y;return[(0,r.Lk)("form",{onSubmit:t[0]||(t[0]=function(){return a.sendEmail&&a.sendEmail.apply(a,arguments)}),class:"ufo--form",name:"contact_form_section"},[(0,r.Lk)("input",{type:"hidden",name:"toEmail",value:a.user.contactEmail||a.user.email},null,8,d),t[1]||(t[1]=(0,r.Lk)("label",null,"Email",-1)),(0,r.Lk)("input",{class:"s-mail form-handler",name:"senderEmail",type:"email",required:"",placeholder:"Your email",disabled:a.isFormLocked},null,8,p),t[2]||(t[2]=(0,r.Lk)("label",null,"Name",-1)),(0,r.Lk)("input",{class:"s-name form-handler",name:"senderName",type:"text",required:"",placeholder:"Your name",disabled:a.isFormLocked},null,8,f),t[3]||(t[3]=(0,r.Lk)("label",null,"Message",-1)),(0,r.Lk)("textarea",{name:"message",type:"text",class:"form-handler",required:"",placeholder:"Write your message here...",disabled:a.isFormLocked},null,8,h),"idle"===s.submitState?((0,r.uX)(),(0,r.CE)("div",m,[(0,r.bF)(c,{"form-submit-button":!0,section:n.section,alignment:a.textAlign},null,8,["section","alignment"])])):n.section.cta&&n.section.cta.show?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["ufo--cta-btn-wr",a.textAlign])},[(0,r.Lk)("button",{type:"submit",disabled:"",class:(0,o.C4)(["btn","btn--cta",null===(i=e.ctaStyles)||void 0===i||null===(i=i[e.ctaType])||void 0===i?void 0:i.fillStyle,null===(l=e.ctaStyles)||void 0===l||null===(l=l[e.ctaType])||void 0===l?void 0:l.shape,null===(y=e.ctaStyles)||void 0===y||null===(y=y[e.ctaType])||void 0===y?void 0:y.size,e.ctaType])},[(0,r.Lk)("span",v,[(0,r.Lk)("span",g,(0,o.v_)(a.submitButtonLabel),1),"success"===s.submitState?((0,r.uX)(),(0,r.Wv)(u,{key:0,class:"cta-icon","icon-name":"check"})):(0,r.Q3)("v-if",!0)])],2)],2)):(0,r.Q3)("v-if",!0)],32)]}),_:1}),s.statusMessage?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["ufo--form-status-message",{active:s.statusActive}])},(0,o.v_)(s.statusMessage),3)):(0,r.Q3)("v-if",!0)],6)}]]),R=D;var N={class:"ufo--accordion"},F=["onClick"],B={key:0,class:"accordion-plusminus"},U={class:"accordion-title"},H={class:"accordion-content"};function $(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const W={name:"Accordion",components:{GetSectionText:w.A,Icon:_.A},props:{section:{type:Object,default:null}},data:function(){return{openItemIndices:[]}},computed:{accordionItems:function(){return this.section.accordionItems},settings:function(){return this.section.accordionSettings}
2,itemStyle:function(){return{"--accordion-divider-width":"".concat(this.settings.dividerLineWeight,"px")}}},mounted:function(){this.resetOpenItems()},watch:{"section.accordionSettings.openFirstItemByDefault":function(){this.resetOpenItems()},"section.accordionSettings.allowMultipleOpenItems":function(e){!e&&this.openItemIndices.length>1&&(this.openItemIndices=this.openItemIndices.slice(0,1))}},methods:{resetOpenItems:function(){this.openItemIndices=this.settings.openFirstItemByDefault?[0]:[]},getTitleNodeType:function(e){return/<h1[\s>]/i.test(e)?"h1":/<h2[\s>]/i.test(e)?"h2":/<h3[\s>]/i.test(e)?"h3":/<h4[\s>]/i.test(e)?"h4":"p1"},getTitleIconStyle:function(e){var t=this.getTitleNodeType(e);return{color:"var(--section-".concat(t,"-text-color)")}},isItemOpen:function(e){return this.openItemIndices.includes(e)},toggleItem:function(e){this.isItemOpen(e)?this.openItemIndices=this.openItemIndices.filter(function(t){return t!==e}):this.settings.allowMultipleOpenItems?this.openItemIndices=[].concat($(this.openItemIndices),[e]):this.openItemIndices=[e]}}},G=(0,M.A)(W,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("Icon"),c=(0,r.g2)("GetSectionText");return(0,r.uX)(),(0,r.CE)("div",N,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.accordionItems,function(e,t){return(0,r.uX)(),(0,r.CE)("div",{key:"accordion-view-item-".concat(t),class:(0,o.C4)(["accordion-item",{open:a.isItemOpen(t),"with-divider":a.settings.showDivider}]),style:(0,o.Tr)(a.itemStyle)},[(0,r.Lk)("button",{class:(0,o.C4)(["accordion-trigger","icon-".concat(a.settings.iconPlacement)]),type:"button",onClick:function(e){return a.toggleItem(t)}},[(0,r.Lk)("span",{class:(0,o.C4)(["accordion-icon","style-".concat(a.settings.iconStyle),{"is-open":a.isItemOpen(t)}]),style:(0,o.Tr)(a.getTitleIconStyle(e.title.text))},["plus"===a.settings.iconStyle?((0,r.uX)(),(0,r.CE)("span",B)):((0,r.uX)(),(0,r.Wv)(l,{key:1,width:24,height:24,"icon-name":"arrow"===a.settings.iconStyle?"arrow-down":"chevron-down"},null,8,["icon-name"]))],6),(0,r.Lk)("span",U,[(0,r.bF)(c,{"section-text":e.title},null,8,["section-text"])])],10,F),(0,r.Lk)("div",{class:(0,o.C4)(["accordion-content-shell",{"is-open":a.isItemOpen(t)}])},[(0,r.Lk)("div",H,[(0,r.bF)(c,{"section-text":e.content},null,8,["section-text"])])],2)],6)}),128))])}],["__scopeId","data-v-b4cb343a"]]);const X={name:"CtaTitle",components:{CtaButton:y.A,Title:u.A},props:["section"],computed:{boxAlignment:function(){var e;return null!==(e=this.section.styleSettings)&&void 0!==e&&e.boxAlign?this.section.styleSettings.boxAlign.split("-")[0]:"center"}}},V=(0,M.A)(X,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("Title"),l=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a,{section:n.section},null,8,["section"]),(0,r.bF)(l,{section:n.section,"form-submit-button":!1,alignment:"push-to-"+s.boxAlignment},null,8,["section","alignment"])],64)}]]);var K=n(44794);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Z={name:"GeneralSection",components:{SectionBase:n(84794).A,Title:u.A,Media:l.A,Text:c.A,ContactForm:R,Accordion:G,CtaTitle:V,PortfolioNavigationSocialLinks:K.A},props:["section","projectTitle"],beforeMount:function(){(0,i.aQ)(this.section)},computed:Q(Q({},(0,S.L8)("view",["viewData"])),{},{portfolioHeroId:function(){var e;return(null===(e=this.viewData)||void 0===e||null===(e=e.portfolio)||void 0===e||null===(e=e.portfolioHero)||void 0===e?void 0:e._id)||null},showHeroInlineSocialLinks:function(){var e,t,n,r,o;
2if((null===(e=this.section)||void 0===e?void 0:e.type)!==s.iK.HERO)return!1;if(this.portfolioHeroId&&(null===(t=this.section)||void 0===t?void 0:t._id)!==this.portfolioHeroId)return!1;var i=null===(n=this.$store.state.portfolio)||void 0===n?void 0:n.portfolioNavigation;if(!i)return!1;var a=null==i||null===(r=i.socialLinks)||void 0===r?void 0:r.position;if(a!==s.ji.INLINE_STICK_TO_BOTTOM&&a!==s.ji.OFF_GRID)return!1;var l=(null===(o=this.$store.state.portfolio)||void 0===o?void 0:o.socialLinks)||[];return Array.isArray(l)&&l.length>0},inlineSocialAlignClass:function(){var e,t=(null===(e=this.section)||void 0===e||null===(e=e.styleSettings)||void 0===e||null===(e=e.boxAlign)||void 0===e||null===(e=e.split("-"))||void 0===e?void 0:e[0])||"left";return"align-".concat(t)}}),methods:{visibleModules:function(){var e;return null===(e=this.section.layoutSettings)||void 0===e?void 0:e.modules.filter(function(e){return e.type!==s.jB.SPACER})},getComponent:function(e){return e.type===s.jB.MEDIA?"Media":e.type===s.jB.TEXT?"Text":e.type===s.jB.TITLE?"Title":e.type===s.jB.CONTACT_FORM?"ContactForm":e.type===s.jB.ACCORDION?"Accordion":e.type===s.jB.CTA?"CtaTitle":void 0},calculateMediaAspectRatio:function(e){var t,n,r,o,i,a;if(e.type!==s.jB.MEDIA&&(null===(t=this.section.media)||void 0===t||!t.url)||null!==(n=this.section.media)&&void 0!==n&&n.mockupSettings)return null;if(null===(r=e.gridSettings)||void 0===r||!r.mediaHeight)return"".concat(null===(o=this.section.media)||void 0===o?void 0:o.width," / ").concat(null===(i=this.section.media)||void 0===i?void 0:i.height);var l=null===(a=e.gridSettings)||void 0===a?void 0:a.mediaAspectRatio;return l?"".concat(l[0]," / ").concat(l[1]):null},columnSettings:function(e){var t,n,r,o,i,s,l=(0,a.f)(e.gridSettings),c=l.rowStart,u=l.rowEnd;return{"--columnStart":null===(t=e.gridSettings)||void 0===t?void 0:t.columnStart,"--columnEnd":null===(n=e.gridSettings)||void 0===n?void 0:n.columnEnd,"--rowStart":c,"--rowEnd":u,"--height":null!==(r=e.gridSettings)&&void 0!==r&&r.height?"".concat(null===(o=e.gridSettings)||void 0===o?void 0:o.height,"px"):null,"--mediaHeight":!this.calculateMediaAspectRatio(e)&&null!==(i=e.gridSettings)&&void 0!==i&&i.mediaHeight?"".concat(null===(s=e.gridSettings)||void 0===s?void 0:s.mediaHeight,"px"):null,"--mediaAspectRatio":this.calculateMediaAspectRatio(e)}},verticalAlignment:function(){var e,t;return"aligned-".concat(this.section.styleSettings&&(null===(e=this.section.styleSettings)||void 0===e?void 0:e.boxAlign)&&(null===(t=this.section.styleSettings)||void 0===t?void 0:t.boxAlign.split("-")[1])||"middle")},isFullBleed:function(e){var t;return{"is-fullbleed":e.type===s.jB.MEDIA&&(null===(t=e.gridSettings)||void 0===t?void 0:t.isFullBleed)}}}},ee=(0,M.A)(Z,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("PortfolioNavigationSocialLinks"),c=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(c,{section:n.section},{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.visibleModules(),function(e){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["col",[a.verticalAlignment(),a.isFullBleed(e)]]),style:(0,o.Tr)(a.columnSettings(e))},[((0,r.uX)(),(0,r.Wv)((0,r.$y)(a.getComponent(e)),{section:n.section,key:e.moduleId},null,8,["section"]))],6)}),256)),a.showHeroInlineSocialLinks?((0,r.uX)(),(0,r.Wv)(l,{key:0,class:(0,o.C4)(["navbar-inline",a.inlineSocialAlignClass])},null,8,["class"])):(0,r.Q3)("v-if",!0)]}),_:1},8,["section"])}]])},51404(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(20641),o=n(90033),i={class:"ufo--column-content"},s={class:"media-container"},a={class:"media-container"};var l=n(82124),c=n(84794),u=n(45847),d=n(57345);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={name:"LogoWall",components:{SectionBase:c.A,ColumnImageHelper:u.A,LogoCarousel:d.A},props:["section"],computed:h(h({},(0,l.L8)("design",["resolveColor","colorPalette"])),{},{logoStyle:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.logoStyle)||{}},isGrid:function(){return"GRID"===(this.logoStyle.layout||"GRID")},visibleLogos:function(){return this.isGrid?this.section.logos.slice(0,5):this.section.logos},unifiedClass:function(){return"COLOR_REVEAL"===this.logoStyle.logoHoverInteraction?null:this.logoStyle.unified?"unified":null},densityValue:function(){var e;return null!==(e=this.logoStyle.density)&&void 0!==e?e:null},isGradientBg:function(){var e,t;return null!==(null===(e=this.section.backgroundSettings)||void 0===e?void 0:e.selectedBackgroundStyleId)&&(null===(t=this.section.backgroundSettings)||void 0===t?void 0:t.selectedBackgroundStyleId)>1},isCaseStudy:function(){return this.$store.getters.isCaseStudy},logoHoverClass:function(){var e=this.logoStyle.logoHoverInteraction||"NONE";return"COLOR_REVEAL"===e?"hover-color-reveal":"SCALE_UP"===e?"hover-scale-up":"OPACITY_INCREASE"===e?"hover-opacity-increase":null}}),methods:{logoMaxHeight:function(e){var t=parseFloat(null==e?void 0:e.width);return parseFloat(null==e?void 0:e.height)>t?"64px":"32px"}}};const g=(0,n(66262).A)(v,[["render",function(e,t,n,l,c,u){var d=(0,r.g2)("ColumnImageHelper"),p=(0,r.g2)("LogoCarousel"),f=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(f,(0,r.v6)(e.$attrs,{section:n.section}),{default:(0,r.k6)(function(){return[u.isGrid?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--columns","ufo--columns-"+u.visibleLogos.length])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(u.visibleLogos,function(e,t){return(0,r.uX)(),(0,r.CE)("div",{key:t,class:"ufo--column"},[(0,r.Lk)("div",i,[(0,r.Lk)("div",{class:(0,o.C4)(["logo-box",u.unifiedClass,u.logoHoverClass,{gradient:u.isGradientBg}]),style:(0,o.Tr)({"--density":u.densityValue,"--logo-max-height":u.logoMaxHeight(e)})},[(0,r.Lk)("div",s,[(0,r.bF)(d,{index:t,section:n.section,columnMedia:e,"placeholder-image":"".concat(u.isCaseStudy?"":"portfolio-","empty-columns-0").concat(t+1,".").concat(u.isCaseStudy?"jpg":"png")},null,8,["index","section","columnMedia","placeholder-image"])])],6)])])}),128))],2)):((0,r.uX)(),(0,r.Wv)(p,{key:1,section:n.section},{default:(0,r.k6)(function(e){var t=e.logo,o=e.index;return[(0,r.Lk)("div",a,[(0,r.bF)(d,{index:o,section:n.section,columnMedia:t,"placeholder-image":"".concat(u.isCaseStudy?"":"portfolio-","empty-columns-0").concat(o%4+1,".").concat(u.isCaseStudy?"jpg":"png")},null,8,["index","section","columnMedia","placeholder-image"])])]}),_:1},8,["section"]))]}),_:1},16,["section"])}]])},48591(e,t,n){"use strict";n.d(t,{A:()=>Z});var r=n(20641),o=n(90033),i={key:0,class:"grid"};var s=n(84794),a=n(74777);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u={key:0,class:"image"},d=["src"],p={key:1,class:"name"},f={key:2,class:"profile-links"},h={key:3,class:"profile-bio"},m=["innerHTML"],v={key:0,class:"line"},g={key:2,class:"line"},y={key:2,class:"ufo--page-hero-image"},b=["src"],w={key:0,class:"picture"},S=["src"],k={key:0,class:"name"},_={key:1,class:"company"};var O=n(36230),C=n(16280),T=["src","height"];var A=n(82124);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?x(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const L={name:"GetSiteLogo",computed:P(P({},(0,A.L8)("view",["viewData","normalizedHost"])),{},{portfolio:function(){return this.viewData.portfolio},homeLink:function(){return this.portfolio.ownDomainAddress&&this.portfolio.ownDomainAddress.toLowerCase()===this.normalizedHost?"/":"/".concat(this.portfolio.shortId)},resolvedLogo:function(){var e,t;return(null===(e=this.portfolio)||void 0===e?void 0:e.logo)||(null===(t=this.portfolio)||void 0===t||null===(t=t.templateSettings)||void 0===t?void 0:t.logo)||null},logoUrl:function(){var e=this.resolvedLogo;return e?e.media?e.media.croppedImageUrl||e.media.url:e.image?e.image.url:null:null},logoHeight:function(){var e=this.resolvedLogo;return e&&(e.media?e.media.height:e.image?e.image.height:null)||48},showLogo:function(){var e,t=this.$store.getters.isCaseStudy&&"theme_seventeen"!==this.portfolio.templateSettings.theme||!this.$store.getters.isCaseStudy,n=this.resolvedLogo;return!!n&&("Logo"===(n.mode||(null!==(e=n.image)&&void 0!==e&&e.url?"Logo":"None"))&&!!this.logoUrl&&this.logoIsAvailableInTheme&&t)},showOwnerId:function(){return this.portfolio.templateSettings.navigation.navigationItems.ownerId.visible},logoIsAvailableInTheme:function(){return!["theme_one","theme_two","theme_three","theme_six","theme_seven","theme_eleven"].includes(this.portfolio.templateSettings.theme)&&!this.portfolio.templateSettings.theme.includes("profile_")}})};var j=n(66262);const M=(0,j.A)(L,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("RouterLink");return a.showOwnerId||a.showLogo?((0,r.uX)(),(0,r.Wv)(l,{key:0,to:a.homeLink,class:(0,o.C4)([a.showOwnerId&&!a.showLogo?"navbar-id":"navbar-logo",e.viewData.navOpen?"nav-open":""])},{default:(0,r.k6)(function(){return[a.showOwnerId&&!a.showLogo?((0,r.uX)(),(0,r.CE)(r.FK,{key:0}
2,[(0,r.eW)((0,o.v_)(e.viewData.user.name),1)],64)):(0,r.Q3)("v-if",!0),a.showLogo?((0,r.uX)(),(0,r.CE)("img",{key:1,src:a.logoUrl,height:a.logoHeight,alt:"Portfolio logo"},null,8,T)):(0,r.Q3)("v-if",!0)]}),_:1},8,["to","class"])):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-0a8bbbaa"]]);var D=n(34473),R=n(74256),N=n(15637);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=F(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==F(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $={name:"GetSiteNavigation",components:{GetHeroNavigationItem:O.A,GetSiteLogo:M,AnimationWrapper:N.A,HamburgerToggle:D.A,GetHeroSocialLinks:C.A},props:["section"],data:function(){return{showSidebarNav:!1}},mounted:function(){window.onload=this.setScrollClass,window.onresize=this.setScrollClass},methods:{toggleNav:function(){document.querySelector(".navbar").classList.toggle("visible"),this.showSidebarNav=!this.showSidebarNav},scrolledDown:function(){var e=document.querySelector(".ufo--page-hero-text");e.classList.toggle("scrollable",e.scrollTop!==e.scrollHeight-e.offsetHeight)},setScrollClass:function(){var e=document.querySelector(".ufo--page-hero-text");e.classList.toggle("scrollable",e.scrollHeight>e.clientHeight)},goHome:function(){window.location=this.portfolio.ownDomainAddress?"https://"+this.portfolio.ownDomainAddress:"/"+this.portfolio.shortId}},computed:U(U({},(0,A.L8)("view",["viewData"])),{},{portfolioPages:function(){return this.viewData.portfolioPages},portfolioTemplate:function(){return this.portfolio.templateSettings.theme.replace("_old","")},socialLinks:function(){return!!this.portfolio.socialLinks&&this.portfolio.socialLinks},showNavigation:function(){return this.portfolio.settings&&!0===this.portfolio.settings.showNavOnCollectionItems},showSocialLinks:function(){return"profile_theme_four"===this.portfolioTemplate||"profile_theme_one"===this.portfolioTemplate||"profile_theme_two"===this.portfolioTemplate||"theme_five"===this.portfolioTemplate||"profile_theme_five"===this.portfolioTemplate||"theme_six"===this.portfolioTemplate||"profile_theme_six"===this.portfolioTemplate||"theme_ten"===this.portfolioTemplate||this.portfolioTemplate.includes("profile_theme_default")},showSidebarToggleButton:function(){return"profile_theme_four"===this.portfolioTemplate||"profile_theme_six"===this.portfolioTemplate||"profile_theme_nine"===this.portfolioTemplate||"theme_six"===this.portfolioTemplate},showUserImage:function(){return this.portfolio.templateSettings.showProfilePicture&&(this.portfolioTemplate.includes("theme_three")||"profile_theme_four"===this.portfolioTemplate||"profile_theme_nine"===this.portfolioTemplate)},showUserName:function(){return"profile_theme_four"===this.portfolioTemplate},iframeUrl:function(){return window.location.pathname.includes("/uxs-headless/'")},user:function(){return this.viewData.user},portfolio:function(){return this.viewData.portfolio},project:function(){return this.viewData.project},theme:function(){return this.portfolio.templateSettings.theme}
2,usePortfolioHeroBackground:function(){return"theme_five"===this.portfolio.templateSettings.theme&&this.portfolio.templateSettings.hero.image.url&&!this.portfolio.designSettings.colorStyles.background.primaryColor?[{background:"url('".concat(this.portfolio.templateSettings.hero.image.url,"') 100% 100% / 100% 100% no-repeat")}]:null},navBarLayout:function(){return this.portfolio.templateSettings.navigation.layout},navBarStyle:function(){return this.portfolio.templateSettings.navigation.style},showLines:function(){return this.portfolio.templateSettings.navigation.layout===R.wb.LINE_MIDDLE},contentPosition:function(){return"profile_theme_nine"===this.theme?"align-content-to-".concat(this.portfolio.templateSettings.hero.alignment.vertical):null}})},z=(0,j.A)($,[["render",function(e,t,n,i,s,a){var c,O,C=(0,r.g2)("GetSiteLogo"),T=(0,r.g2)("AnimationWrapper"),A=(0,r.g2)("HamburgerToggle"),E=(0,r.g2)("GetHeroSocialLinks"),x=(0,r.g2)("GetHeroNavigationItem");return a.iframeUrl?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--site-nav",a.portfolioTemplate,a.showNavigation?"nav-is-on":""])},[a.showNavigation?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[a.portfolioTemplate.includes("profile_")?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.bF)(T,null,{animationContent:(0,r.k6)(function(){return[(0,r.bF)(C)]}),_:1}),(0,r.bF)(A)],64)):(0,r.Q3)("v-if",!0),a.showSidebarToggleButton?((0,r.uX)(),(0,r.CE)("button",{key:1,onClick:t[0]||(t[0]=function(){return a.toggleNav&&a.toggleNav.apply(a,arguments)}),class:"ufo--site-nav-sidebar-toggle"},l(t[4]||(t[4]=[(0,r.Lk)("span",null,null,-1),(0,r.eW)("Menu",-1)])))):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,o.C4)(["navbar","legacy",{"ufo--site-nav-container":a.portfolioTemplate.includes("profile_")},a.navBarLayout,a.navBarStyle])},[a.portfolioTemplate.includes("profile_")?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(C,{key:0})),a.showSidebarToggleButton||"profile_theme_four"===a.portfolioTemplate||"profile_theme_three"===a.portfolioTemplate||"profile_theme_nine"===a.portfolioTemplate?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["ufo--site-nav-owner-id",a.contentPosition])},[a.showUserImage&&a.portfolio.image.url?((0,r.uX)(),(0,r.CE)("div",u,[(0,r.Lk)("img",{src:a.portfolio.image.url,width:"145",height:"145"},null,8,d)])):(0,r.Q3)("v-if",!0),a.showUserName?((0,r.uX)(),(0,r.CE)("div",p,(0,o.v_)(a.user.name),1)):(0,r.Q3)("v-if",!0),"profile_theme_nine"===a.portfolioTemplate?((0,r.uX)(),(0,r.CE)("div",f,[a.socialLinks&&a.socialLinks.length?((0,r.uX)(),(0,r.Wv)(E,{key:0})):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0),"profile_theme_nine"===a.portfolioTemplate?((0,r.uX)(),(0,r.CE)("div",h,[(0,r.Lk)("div",{class:(0,o.C4)(["description","ufo--page-hero-text",a.portfolio.templateSettings.hero&&a.portfolio.templateSettings.hero.textAlign?"align-text-"+a.portfolio.templateSettings.hero.textAlign:""]),onScroll:t[1]||(t[1]=function(e){return a.scrolledDown()}),innerHTML:a.portfolio.description},null,42,m)])):(0,r.Q3)("v-if",!0),a.showSidebarToggleButton?((0,r.uX)(),(0,r.CE)("button",{key:4,onClick:t[2]||(t[2]=function(){return a.toggleNav&&a.toggleNav.apply(a,arguments)}),class:"ufo-site-nav-sidebar-close"},l(t[5]||(t[5]=[(0,r.Lk)("span",null,null,-1)])))):(0,r.Q3)("v-if",!0)],2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,o.C4)(["navbar-container",e.viewData.navOpen?"on":""]),style:(0,o.Tr)(a.usePortfolioHeroBackground)},[a.showLines?((0,r.uX)(),(0,r.CE)("div",v)):(0,r.Q3)("v-if",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.portfolioPages,function(e,t){return(0,r.uX)(),(0,r.Wv)(x,{page:e,key:e._id,index:t},null,8,["page","index"])}),128)),a.socialLinks&&a.socialLinks.length&&a.showSocialLinks?((0,r.uX)(),(0,r.Wv)(E,{key:1})):(0,r.Q3)("v-if",!0),a.showLines?((0,r.uX)(),(0,r.CE)("div",g)):(0,r.Q3)("v-if",!0)],6),"theme_three"===a.portfolioTemplate&&a.showUserImage&&a.portfolio.image.url?((0,r.uX)(),(0,r.CE)("div",y,[(0,r.Lk)("img",{class:"hero-image",src:a.portfolio.image.croppedImageUrl?a.portfolio.image.croppedImageUrl:a.portfolio.image.url,width:"48",height:"48"},null,8,b)])):(0,r.Q3)("v-if",!0),a.portfolioTemplate.includes("profile_")?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(A,{key:3}))],2)],64)):(0,r.Q3)("v-if",!0),a.showNavigation?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",{key:1,class:"ufo--site-owner",onClick:t[3]||(t[3]=function(e){return a.goHome()})},[a.user.image.url?((0,r.uX)(),(0,r.CE)("div",w,[(0,r.Lk)("img",{height:"50",src:a.user.image.url},null,8,S)])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:(0,o.C4)(["info",null!==(c=n.section.backgroundSettings)&&void 0!==c&&c.backgroundColor&&"FFFFFF"===(null===(O=n.section.backgroundSettings)||void 0===O?void 0:O.backgroundColor)?"dark":""])}
2,[a.user.name?((0,r.uX)(),(0,r.CE)("div",k,(0,o.v_)(a.user.name),1)):(0,r.Q3)("v-if",!0),a.user.title?((0,r.uX)(),(0,r.CE)("div",_,(0,o.v_)(a.user.title),1)):(0,r.Q3)("v-if",!0)],2)]))],2))}],["__scopeId","data-v-2f2aa7e3"]]),W=z;n(81661);var G=n(65570),X=n(76655),V=n(81639);function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const J={name:"MainHeader",components:{Media:n(54953).A,Title:V.A,SectionBase:s.A,AnimationWrapper:N.A,GetSiteNavigation:W,GetMediaContent:a.A},props:["section"],data:function(){return{moduleTypes:R.jB}},beforeMount:function(){this.$route.query.templatePreview||(0,G.aQ)(this.section)},methods:{visibleModules:function(){var e;return null===(e=this.section.layoutSettings)||void 0===e?void 0:e.modules.filter(function(e){return e.type!==R.jB.SPACER})},columnSettings:function(e){var t,n,r,o,i,s,a=(0,X.f)(e.gridSettings),l=a.rowStart,c=a.rowEnd;return{"--columnStart":null===(t=e.gridSettings)||void 0===t?void 0:t.columnStart,"--columnEnd":null===(n=e.gridSettings)||void 0===n?void 0:n.columnEnd,"--rowStart":l,"--rowEnd":c,"--height":null!==(r=e.gridSettings)&&void 0!==r&&r.height?"".concat(null===(o=e.gridSettings)||void 0===o?void 0:o.height,"px"):null,"--mediaHeight":null!==(i=e.gridSettings)&&void 0!==i&&i.mediaHeight?"".concat(null===(s=e.gridSettings)||void 0===s?void 0:s.mediaHeight,"px"):null}}},computed:Y(Y(Y({},(0,A.L8)("view",["viewData"])),(0,A.L8)(["portfolioHasNavigationSection"])),{},{textAlignment:function(){var e;return"align-text-".concat(null===(e=this.section.title.style)||void 0===e?void 0:e.textAlign)},rowStyle:function(){return{"--rowSize":this.section.styleSettings&&this.section.styleSettings.sectionHeight?this.section.styleSettings.sectionHeight+"px":null}},setHorizontalPosition:function(){var e,t;return 0===(null===(e=this.section.title.style)||void 0===e?void 0:e.left)?"left":100===(null===(t=this.section.title.style)||void 0===t?void 0:t.left)?"right":void 0},setVerticalPosition:function(){var e,t;return 0===(null===(e=this.section.title.style)||void 0===e?void 0:e.top)?"top":100===(null===(t=this.section.title.style)||void 0===t?void 0:t.top)?"bottom":"center"},mediaSize:function(){return this.section.media&&this.section.media.displayMode?"media-".concat(this.section.media.displayMode):null}})},Z=(0,j.A)(J,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("GetSiteNavigation"),u=(0,r.g2)("Title"),d=(0,r.g2)("Media"),p=(0,r.g2)("AnimationWrapper"),f=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(f,(0,r.v6)(e.$attrs,{section:n.section,class:"ufo-sec--header-main","data-style-id":n.section._id}),{default:(0,r.k6)(function(){return[e.portfolioHasNavigationSection?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",i,[(0,r.bF)(c,{section:n.section},null,8,["section"])])),(0,r.Lk)("div",{class:"grid ufo--hero-content-grid",style:(0,o.Tr)(l.rowStyle)},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(l.visibleModules(),function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e.moduleId,class:(0,o.C4)(["col",l.setHorizontalPosition,l.setVerticalPosition]),style:(0,o.Tr)([l.columnSettings(e)])},[e.type===a.moduleTypes.TITLE?((0,r.uX)(),(0,r.Wv)(u,{key:0,section:n.section},null,8,["section"])):(0,r.Q3)("v-if",!0),e.type===a.moduleTypes.MEDIA&&n.section.media?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["image-container",l.mediaSize])},[(0,r.bF)(p,null,{animationContent:(0,r.k6)(function(){return[(0,r.bF)(d,{section:n.section},null,8,["section"])]}),_:1})],2)):(0,r.Q3)("v-if",!0)],6)}),128))],4)]}),_:1},16,["section","data-style-id"])}],["__scopeId","data-v-ccb3c51a"]])},56060(e,t,n){"use strict";n.d(t,{A:()=>C});
2var r=n(20641),o=n(90033);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=["data-start","data-end"],l={class:"process-mobile-display"},c={class:"process-step-container"},u=["data-href","href","onClick"],d={class:"step-number"},p={class:"step-name"};var f=n(84794),h=n(15637),m=n(76107),v=n(74256),g=n(82124);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const O={name:"Process",components:{SectionBase:f.A,AnimationWrapper:h.A},props:["section"],data:function(){return{stuck:!1,hideStuckVersion:!1,showMobileProcessSteps:!1}},created:function(){window.addEventListener("scroll",this.handleScroll)},unmounted:function(){this.viewData.stickedHeader=!1,window.removeEventListener("scroll",this.handleScroll)},methods:{scrollToItem:function(e,t){e.preventDefault(),this.stuck&&(this.showMobileProcessSteps=!1);var n=document.querySelector('[data-section-index="'.concat(t,'"]'));if(n){var r=this.stuck?108:this.$refs.processBar.offsetHeight+108,o=n.getBoundingClientRect().top+window.pageYOffset-r;window.scrollTo({top:o,left:0,behavior:"smooth"})}},handleScroll:function(){var e=this.$refs.processBar,t=this.$refs.processSteps;if(e&&t){var n=t.querySelectorAll(".process-step"),r=e.offsetHeight||0,o=k(this.processItems).reverse().find(function(e){return null!==e.sectionIndex&&void 0!==e.sectionIndex}),i=o?document.querySelector('[data-section-index="section-'.concat(o.sectionIndex,'"]')):null,s=e.parentNode.getBoundingClientRect().top,a=i?i.getBoundingClientRect().top+i.getBoundingClientRect().height-70:0;if(s>
2=0)return this.stuck=!1,n.forEach(function(e){return e.classList.remove("checked")}),this.hideStuckVersion=!1,this.showMobileProcessSteps=!1,void(this.viewData.stickedHeader=!1);if(a<=0)return this.hideStuckVersion=!0,void(this.showMobileProcessSteps=!1);if(s<=0){this.hideStuckVersion=!1,this.stuck=!0,this.viewData.stickedHeader=!0,n.forEach(function(e){var t,n=null===(t=e.querySelector(".step-link"))||void 0===t?void 0:t.getAttribute("href"),o=n?n.split("#")[1]:null,i=o?document.querySelector('[data-section-index="'.concat(o,'"]')):null;(i?i.getBoundingClientRect().top:window.innerHeight+1)<=r?e.classList.add("checked"):e.classList.remove("checked")});var l=Array.from(this.$refs.processBar.querySelectorAll(".process-step.checked"));l.length>0&&(this.$refs.processBar.querySelector(".process-step-display").innerHTML=l.pop().innerHTML)}}},toggleProcessSteps:function(){this.showMobileProcessSteps=!this.showMobileProcessSteps}},computed:w(w({},(0,g.L8)("view",["viewData"])),{},{processItems:function(){return this.section.processItems||[]},project:function(){return this.viewData.project||this.$store.state.project},portfolio:function(){return this.viewData.portfolio||this.$store.state.portfolio},colors:function(){return{"--checkedStepColor":(0,m.iL)(this.project.designSettings.colorStyles.navigationHover,this.project.designSettings.colorPalette)}},setStartSection:function(){if(this.processItems.length)return this.processItems.find(function(e){return e.sectionIndex})?this.processItems.find(function(e){return e.sectionIndex}).sectionIndex:1},setEndSection:function(){if(this.processItems.length){var e=JSON.parse(JSON.stringify(this.processItems)).reverse();return e.find(function(e){return e.sectionIndex})?e.find(function(e){return e.sectionIndex}).sectionIndex:null}},portfolioIsDark:function(){return(0,m.oW)((0,m.iL)(this.colorStyles.background,this.colorPalette)).l<.2},colorStyles:function(){return this.isCaseStudy&&!this.usingGlobalColorStyles?this.project.designSettings.colorStyles:this.portfolio.designSettings.colorStyles},colorPalette:function(){return this.isCaseStudy&&!this.usingGlobalColorStyles?this.project.designSettings.colorPalette:this.portfolio.designSettings.colorPalette},isCaseStudy:function(){return this.$store.state.project&&this.$store.state.project.type===v.Q8.CASE_STUDY},usingGlobalColorStyles:function(){return this.project.type===v.Q8.CASE_STUDY&&this.project.designSettings.globalColorStyles}})};const C=(0,n(66262).A)(O,[["render",function(e,t,n,s,f,h){var m=(0,r.g2)("AnimationWrapper"),v=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(v,(0,r.v6)(e.$attrs,{section:n.section,style:[h.colors]}),{default:(0,r.k6)(function(){return[(0,r.Lk)("div",{ref:"processBar",class:(0,o.C4)(["sticky-header",{sticked:f.stuck},{"sticked-hidden":f.hideStuckVersion},{"show-dd":f.showMobileProcessSteps},{dark:h.portfolioIsDark}]),id:"sticky-header","data-start":h.setStartSection,"data-end":h.setEndSection},[(0,r.Lk)("div",l,[t[2]||(t[2]=(0,r.Lk)("div",{class:"process-step-display process-step checked"},null,-1)),(0,r.Lk)("div",{class:"process-dropdown-toggle",onClick:t[0]||(t[0]=function(e){return h.toggleProcessSteps()})},i(t[1]||(t[1]=[(0,r.Lk)("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r.Lk)("path",{d:"M8.60958 0.687671C8.78209 0.47204 9.09674 0.437079 9.31237 0.609584C9.528 0.782089 9.56296 1.09674 9.39045 1.31237L5.39045 5.31237C5.19029 5.56257 4.80975 5.56257 4.60958 5.31237L0.609584 1.31237C0.437079 1.09674 0.47204 0.782089 0.687671 0.609584C0.903302 0.437079 1.21795 0.47204 1.39045 0.687671L5.00002 4.19963L8.60958 0.687671Z",fill:"var(--section-h2-text-color, #ffffff)"})],-1)])))]),(0,r.Lk)("div",{ref:"processSteps",class:(0,o.C4)(["process-steps",h.processItems.length>4?"long":""])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(h.processItems,function(e,t){return(0,r.uX)(),(0,r.Wv)(m,{"delay-animation":t?.1*t:0},{animationContent:(0,r.k6)(function(){return[((0,r.uX)(),(0,r.CE)("div",{class:"process-step",key:"step-".concat(e.sectionIndex)},[(0,r.Lk)("div",c,[(0,r.Lk)("a",{"data-href":e.sectionIndex?"#section-"+e.sectionIndex:"#section-"+n.section.index,href:e.sectionIndex?"#section-"+e.sectionIndex:"#section-"+n.section.index,onClick:function(t){return h.scrollToItem(t,e.sectionIndex?"
2section-"+e.sectionIndex:"section-"+n.section.index)},class:"step-link"},[(0,r.Lk)("div",d,(0,o.v_)(t+1),1),(0,r.Lk)("div",p,(0,o.v_)(e.name),1)],8,u)])]))]}),_:2},1032,["delay-animation"])}),256))],2)],10,a)]}),_:1},16,["section","style"])}]])},84794(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(20641),o=n(90033),i=["id"],s={class:"grid-wrapper"},a={class:"grid"};var l=n(89705),c=n(93789),u=n(65570);n(74256);const d={name:"SectionBase",components:{SectionBackground:c.A,ToggleGrid:l.A},props:{section:{type:Object,required:!0},sectionStyle:{type:Object,default:null},hideBackgroundImage:{type:Boolean,default:!1}},beforeMount:function(){this.$route.query.templatePreview||(0,u.aQ)(this.section)},computed:{sectionElementId:function(){var e;return null!==(e=this.section)&&void 0!==e&&e._id?"section-".concat(this.section._id):null},layoutTypeClass:function(){var e,t=null===(e=this.section)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.layoutType;return t?"layout-".concat(t.toString().replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()):null},contentSettingsClasses:function(){var e;return{"legacy-inset-text-box":!0===(null===(e=this.section)||void 0===e||null===(e=e.contentSettings)||void 0===e?void 0:e.legacyInsetTextBox)}}},methods:{getSectionType:function(){if("TextAndMedia"===this.section.type){var e,t,n=null===(e=this.section.contentSettings)||void 0===e?void 0:e.showText,r=null===(t=this.section.contentSettings)||void 0===t?void 0:t.showMedia;return!0===n&&!0===r?"textandmedia":!1===n&&!0===r?"media":!0===n&&!1===r?"text":"textandmedia"}return this.section.type.toLowerCase()}}};const p=(0,n(66262).A)(d,[["render",function(e,t,n,l,c,u){var d=(0,r.g2)("ToggleGrid"),p=(0,r.g2)("SectionBackground");return n.section?((0,r.uX)(),(0,r.CE)("div",{key:0,id:u.sectionElementId,class:(0,o.C4)(["ufo-sec","ufo-sec--".concat(u.getSectionType()),u.layoutTypeClass,u.contentSettingsClasses]),style:(0,o.Tr)(n.sectionStyle)},[(0,r.bF)(d),n.hideBackgroundImage?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(p,{key:0,section:n.section},null,8,["section"])),(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.RG)(e.$slots,"default")])])],14,i)):(0,r.Q3)("v-if",!0)}]])},72614(e,t,n){"use strict";n.d(t,{A:()=>kn});var r=n(20641),o=n(90033),i=["id"],s={class:"sidebar-content"},a={key:0,class:"section-container"},l=["onMouseenter"],c={key:4,class:"project-footer"},u=["onMouseenter"],d={key:3,class:"project-footer"};var p=n(2312),f=n(49661),h=n(48591),m=n(23585),v=n(56123),g=n(92108),y=n(53751),b={class:"ufo-sec ufo-sec--projectgrid"},w={class:"grid-wrapper"},S=["onClick"],k=["aria-label","onKeydown"],_={class:"project-title"},O={class:"project-title-underline"},C={key:0,class:"project-subtitle"},T={key:0,class:"project-arrow-badge"};var A=n(89705),E=n(7149),x=n(15637);function P(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var L={class:"empty-state grid"},j={class:(0,o.C4)(["container"])},M={class:"text-wrapper"},D={class:"title"},R={class:"subtitle"},N={class:"centered-button"};var F=n(5412),B=n(46335),U=n(76107),H=n(74256),$=n(82124);function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?W(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const V={name:"EmptyProjectGrid",components:{Icon:B.A,Cta:F.A},computed:G(G({},(0,$.L8)("view",["viewData"])),{},{caseStudiesAreDraft:function(){return this.viewData.hasDraftCasestudies},title:function(){return this.caseStudiesAreDraft?"Your case studies are hidden.":"You havenât added any case studies yet"},subtitle:function(){return this.caseStudiesAreDraft?"You can set your case studies visible from the editor.":"Add case studies to your portfolio from the editor."},portfolioIsDark:function(){return(0,U.oW)((0,U.iL)(this.colorStyles.background,this.colorPalette)).l<.2},colorStyles:function(){return this.isCaseStudy&&!this.usingGlobalColorStyles?this.viewData.project.designSettings.colorStyles:this.viewData.portfolio.designSettings.colorStyles},colorPalette:function(){return this.isCaseStudy&&!this.usingGlobalColorStyles?this.viewData.project.designSettings.colorPalette:this.viewData.portfolio.designSettings.colorPalette},isCaseStudy:function(){return this.$store.state.project&&this.$store.state.project.type===H.Q8.CASE_STUDY},usingGlobalColorStyles:function(){return this.viewData.project.type===H.Q8.CASE_STUDY&&this.viewData.project.designSettings.globalColorStyles}})};var K=n(66262);const q=(0,K.A)(V,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("Icon"),c=(0,r.g2)("Cta");return(0,r.uX)(),(0,r.CE)("div",L,[(0,r.Lk)("div",{class:(0,o.C4)(["empty-collection",{dark:a.portfolioIsDark}])},[(0,r.Lk)("div",j,[(0,r.bF)(l,{"icon-name":a.caseStudiesAreDraft?"hidden-gradient":"add-case-study-gradient"},null,8,["icon-name"]),(0,r.Lk)("div",M,[(0,r.Lk)("h2",D,(0,o.v_)(a.title),1),(0,r.Lk)("p",R,(0,o.v_)(a.subtitle),1)]),(0,r.Lk)("div",N,[(0,r.bF)(c,{"dark-scheme":a.portfolioIsDark,onClick:t[0]||(t[0]=function(){return e.$router.push("home")})},{default:(0,r.k6)(function(){return P(t[1]||(t[1]=[(0,r.eW)("Open the editor",-1)]))}),_:1},8,["dark-scheme"])])])],2)])}],["__scopeId","data-v-23e6a3e0"]]);var Y=n(68438),Q=n(93789),J=n(22044);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach(function(t){ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const re={name:"ProjectGrid",components:{SectionBackground:Q.A,EmptyProjectGrid:q,AnimationWrapper:x.A,ProjectThumbnail:E.A,ToggleGrid:A.A,CtaButton:J.A,Icon:B.A},props:["section"],computed:te(te({},(0,$.L8)("view",["viewData","caseStudyRoute"])),{},{portfolio:function(){return this.viewData.portfolio},user:function(){return this.viewData.user},caseStudies:function(){return this.viewData.caseStudies.filter(function(e){return!e.draft&&!e.deletedAt})},loggedInUserId:function(){return this.viewData.loggedInUserId},filteredHomePageSections:function(){return this.viewData.portfolioPages.find(function(e){return"home"===e.type}).sections.filter(function(e){return"ProjectGrid"!==e.type&&e.index<e.index&&!e.deletedAt})},layout:function(){return this.portfolio.templateSettings.thumbnailLayout?this.portfolio.templateSettings.thumbnailLayout:this.portfolio.templateSettings.virtualThumbnailLayout},titleVerticalAlignment:function(){var e;return["above","below"].includes(null===(e=this.portfolio.templateSettings)||void 0===e||null===(e=e.projectTitle)||void 0===e?void 0:e.placement)&&"text-grid"!==this.layout?"top":this.portfolio.templateSettings.projectTitle.alignment.vertical||"none"},thumbnailGridColumns:function(){var e,t;return null!==(e=null===(t=this.portfolio.templateSettings)||void 0===t?void 0:t.thumbnailGridColumns)&&void 0!==e?e:2},textGridStyle:function(){return"text-grid"!==this.layout?{}
2:{"--thumbnailGridColumns":this.thumbnailGridColumns}},isReview:function(){return window.location.pathname.includes("/review/")||window.location.pathname.includes("/myreviews/")},isJFC:function(){return window.location.pathname.includes("/jobfitchecker/")},cardType:function(){var e,t;return null!==(e=this.portfolio.templateSettings)&&void 0!==e&&null!==(e=e.cardStyle)&&void 0!==e&&e.cardType?"card-type-".concat(null===(t=this.portfolio.templateSettings)||void 0===t||null===(t=t.cardStyle)||void 0===t?void 0:t.cardType):""},cornerRadiusStyle:function(){var e,t,n=null!==(t=((null===(e=this.portfolio.templateSettings)||void 0===e?void 0:e.cardStyle)||{}).cornerRadiusPx)&&void 0!==t?t:0;return{"--borderRadius":"".concat(n,"px")}},arrowStyle:function(){var e,t=(null===(e=this.portfolio.templateSettings)||void 0===e?void 0:e.cardStyle)||{};return{"--projectArrowColor":this.resolveCardStyleColor(t.arrowColor,"#0F0F0F"),"--projectArrowBgColor":this.resolveCardStyleColor(t.arrowBgColor,"#EEEEEE"),"--projectImageBackdropColor":this.resolveCardStyleColor(t.imageBackdropColor,"#DCFA37"),"--projectTextBackdropColor":this.resolveCardStyleColor(t.textBackdropColor,"#101472")}},outlineWeight:function(){var e,t;return null!==(e=this.portfolio.templateSettings)&&void 0!==e&&null!==(e=e.cardStyle)&&void 0!==e&&e.outlineWeight?"outline-weight-".concat(null===(t=this.portfolio.templateSettings)||void 0===t||null===(t=t.cardStyle)||void 0===t?void 0:t.outlineWeight):""},interactionClass:function(){return"interaction-is--".concat(this.interactionType)},interactionType:function(){var e,t=null===(e=this.portfolio.templateSettings)||void 0===e||null===(e=e.cardStyle)||void 0===e?void 0:e.interaction;return t||("none"===this.cardTypeValue?"zoom-in":"card-color-change")},cardTypeValue:function(){var e;return(null===(e=this.portfolio.templateSettings)||void 0===e||null===(e=e.cardStyle)||void 0===e?void 0:e.cardType)||"none"},isTextListLayout:function(){return"text-list"===this.layout},dividerLineStyle:function(){if(this.isTextListLayout&&"none"===this.cardTypeValue){var e,t=(null===(e=this.portfolio.templateSettings)||void 0===e||null===(e=e.cardStyle)||void 0===e?void 0:e.dividerLineWeight)||1;return{"--dividerLineWeight":"".concat(t,"px")}}return{}},labelStyle:function(){var e;return(null===(e=this.portfolio)||void 0===e||null===(e=e.templateSettings)||void 0===e?void 0:e.labelStyle)||{fillStyle:"solid",shape:"pill"}},buttonAlign:function(){var e;return(null===(e=this.portfolio.templateSettings.projectTitle)||void 0===e||null===(e=e.alignment)||void 0===e?void 0:e.horizontal)||"left"},showProjectGridButton:function(){var e;return!(null===(e=this.portfolio.templateSettings.projectTitle.hideButton)||void 0===e||e)},showLabels:function(){return!this.portfolio.templateSettings.projectTitle.hideLabels},isTextOnlyLayout:function(){return"text-grid"===this.layout||"text-list"===this.layout},projectNameClasses:function(){var e=this;return function(t){if(!e.isTextListLayout)return"project-name";var n=e.showLabels&&t.labels&&t.labels.length,r=e.showProjectGridButton,o=["project-name","project-name--text-list"];return n&&r?o.push("project-name--labels-text-button"):n?o.push("project-name--labels-text"):r?o.push("project-name--text-button"):o.push("project-name--text-only"),o}}}),methods:{resolveCardStyleColor:function(e,t){var n;return null!==e.paletteColorIndex?(null===(n=this.portfolio)||void 0===n||null===(n=n.designSettings)||void 0===n||null===(n=n.colorPalette)||void 0===n||null===(n=n.colors)||void 0===n?void 0:n[e.paletteColorIndex])||t:e.color||t},navigateToCaseStudy:function(e,t){if(!this.$route.query.templatePreview){e.preventDefault();var n=this.caseStudyRoute(t.shortId);n&&this.$router.push(n).then(function(){window.scrollTo(0,0)})}},projectName:function(e){var t=e.sections.find(function(e){return(null==e?void 0:e.type)===H.iK.MAIN_HEADER});return null!=e.name?e.name:(0,Y.sZ)(t.title.text)},projectSubtitle:function(e){var t=e.sections.find(function(e){return(null==e?void 0:e.type)===H.iK.MAIN_HEADER});return null!=e.subtitle?e.subtitle:(0,Y.sZ)(t.subtitle.text)},projectGridButtonSection:function(e){var t=e.cta||{};return{cta:{show:!0,title:t.title||"View project",type:t.type||"secondary",url:null}}},projectActionLabel:function(e){var t,n=null===(t=this.projectName(e))||void 0===t?void 0:t.trim();return n?"Open case study ".concat(n):"Open case study"}}},oe=(0,K.A)(re,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("ToggleGrid"),c=(0,r.g2)("SectionBackgroun
2d"),u=(0,r.g2)("CtaButton"),d=(0,r.g2)("AnimationWrapper"),p=(0,r.g2)("ProjectThumbnail"),f=(0,r.g2)("Icon"),h=(0,r.g2)("EmptyProjectGrid");return(0,r.uX)(),(0,r.CE)("div",b,[(0,r.bF)(l),(0,r.bF)(c,{section:n.section},null,8,["section"]),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.filteredHomePageSections,function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e,class:"grid"},[(0,r.Lk)("div",{class:(0,o.C4)("works_line_"+a.portfolio.templateSettings.theme)},null,2)])}),128)),(0,r.Lk)("div",w,[(0,r.Lk)("div",{class:(0,o.C4)(["grid ufo--user-projects",{"text-grid-layout":"text-grid"===a.layout,"text-grid-layout--single-column":"text-grid"===a.layout&&1===a.thumbnailGridColumns,"text-list-layout":"text-list"===a.layout}]),style:(0,o.Tr)(a.textGridStyle)},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.caseStudies,function(n,i){return(0,r.uX)(),(0,r.CE)("div",{key:i,onClick:function(e){return a.navigateToCaseStudy(e,n)},onMouseenter:t[0]||(t[0]=function(t){return e.emitter.emit("project-hover",!0)}),onMouseleave:t[1]||(t[1]=function(t){return e.emitter.emit("project-hover",!1)}),class:(0,o.C4)(["project","title-is--"+(a.portfolio.templateSettings.projectTitle.visibility?a.portfolio.templateSettings.projectTitle.visibility:"none"),"title-is--"+(a.portfolio.templateSettings.projectTitle.placement?a.portfolio.templateSettings.projectTitle.placement:"none"),"title-is--"+(a.portfolio.templateSettings.projectTitle.color?a.portfolio.templateSettings.projectTitle.color:"default"),"thumbnail-is--"+(a.portfolio.templateSettings.tileDisplayMode?a.portfolio.templateSettings.tileDisplayMode.split("-")[0]:"default"),"thumbnail-is--"+(a.portfolio.templateSettings.tileDisplayMode?a.portfolio.templateSettings.tileDisplayMode:"default"),"title-align--"+a.titleVerticalAlignment,"title-justify--"+(a.portfolio.templateSettings.projectTitle.alignment.horizontal?a.portfolio.templateSettings.projectTitle.alignment.horizontal:"none"),"layout-is--"+a.layout,a.cardType,a.outlineWeight,a.interactionClass]),style:(0,o.Tr)([a.dividerLineStyle,a.cornerRadiusStyle,a.arrowStyle])},[(0,r.bF)(d,{"disable-animation":"on-thumbnail"===a.portfolio.templateSettings.projectTitle.placement&&"hover"===a.portfolio.templateSettings.projectTitle.visibility},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(a.projectNameClasses(n))},[a.showLabels&&n.labels&&n.labels.length?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--project-title-container","project-labels","align-".concat(a.buttonAlign)])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.labels,function(e,t){return(0,r.uX)(),(0,r.CE)("span",{key:"project-label-".concat(t),class:(0,o.C4)(["project-label",a.labelStyle.fillStyle,a.labelStyle.shape])},(0,o.v_)((null==e?void 0:e.text)||""),3)}),128))],2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:"ufo--project-title-container project-text",role:"button",tabindex:"0","aria-label":a.projectActionLabel(n),onKeydown:[(0,y.withKeys)((0,y.withModifiers)(function(e){return a.navigateToCaseStudy(e,n)},["prevent"]),["enter"]),(0,y.withKeys)((0,y.withModifiers)(function(e){return a.navigateToCaseStudy(e,n)},["prevent"]),["space"])]},[(0,r.Lk)("div",_,[(0,r.Lk)("span",O,(0,o.v_)(a.projectName(n)),1)]),a.portfolio.templateSettings.projectTitle.hideDescription?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",C,(0,o.v_)(a.projectSubtitle(n)),1))],40,k),a.showProjectGridButton?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["ufo--project-title-container","project-grid-button","align-".concat(a.buttonAlign)])},[(0,r.bF)(u,{section:a.projectGridButtonSection(n),alignment:a.portfolio.templateSettings.projectTitle.alignment.horizontal,"form-submit-button":!1},null,8,["section","alignment"])],2)):(0,r.Q3)("v-if",!0)],2)]}),_:2},1032,["disable-animation"]),(0,r.bF)(d,null,{animationContent:(0,r.k6)(function(){return[a.isTextOnlyLayout?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(p,{key:0,"case-study":n,"is-first":0===i},null,8,["case-study","is-first"]))]}),_:2},1024),"show-arrow"===a.interactionType?((0,r.uX)(),(0,r.CE)("div",T,[(0,r.bF)(f,{"icon-name":"arrow-out",width:28,height:28})])):(0,r.Q3)("v-if",!0)],46,S)}),128))],6)]),a.caseStudies.length<1&&a.loggedInUserId&&a.loggedInUserId===a.user._id&&!a.isReview&&!a.isJFC?((0,r.uX)(),(0,r.Wv)(h,{key:0})):(0,r.Q3)("v-if",!0)])}]]);var ie=n(60708),se=n(51404),ae=n(56060),le=n(68814),ce=n(83850);var ue=n(84794),de=n(69870),pe=n(4484),fe=n(56286),he=n(65570);const me={name:"PortfolioNavigationSection",mixins:[fe.A],components:{PortfolioNavigationBar:de.A,SectionBase:ue.A},props:{section:{type:Object,default:null}}
2,data:function(){return{navHeightObserver:null}},beforeMount:function(){this.$route.query.templatePreview||(0,he.aQ)(this.section)},computed:{sectionShell:function(){return{type:"Navigation",layoutSettings:{modules:[]}}},isOverlay:function(){var e;return!this.$store.getters.heroIsSidebar&&(this.$store.getters.isCaseStudy||!0===(null===(e=this.section)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.overlay))},isBelow:function(){var e;return!this.$store.getters.isCaseStudy&&!this.isPinnedEffect&&this.isOverlay&&(null===(e=this.section)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.position)===H.ze.BOTTOM},sectionClasses:function(){return this.isOverlay?[{"nav-overlay":!0},{"nav-sticky":this.isPinnedEffect},this.isBelow?"at-bottom":null].filter(Boolean):null}},mounted:function(){var e=this;this.navHeightObserver=(0,pe.T)({isOverlay:function(){return e.isOverlay},getSectionEl:function(){var t;return null===(t=e.$refs.sectionRoot)||void 0===t?void 0:t.$el},onHeight:function(t){return e.applyNavHeightVars(t)},onClear:function(){return e.applyNavHeightVars(null)}}),this.$nextTick(function(){e.setupResizeObserver()})},beforeUnmount:function(){this.teardownResizeObserver()},watch:{isOverlay:function(){var e=this;this.$nextTick(function(){e.setupResizeObserver()})},section:function(){var e=this;this.$nextTick(function(){e.setupResizeObserver()})}},methods:{setupResizeObserver:function(){var e;
2null===(e=this.navHeightObserver)||void 0===e||e.setup()},teardownResizeObserver:function(){var e;null===(e=this.navHeightObserver)||void 0===e||e.teardown()},applyNavHeightVars:function(e){(0,pe.k)({height:e,isBelow:this.isBelow,isOverlay:this.isOverlay})}}},ve=(0,K.A)(me,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("PortfolioNavigationBar"),c=(0,r.g2)("SectionBase");return n.section?((0,r.uX)(),(0,r.Wv)(c,{key:0,ref:"sectionRoot",section:a.sectionShell,class:(0,o.C4)(a.sectionClasses),"hide-background-image":""},{default:(0,r.k6)(function(){return[(0,r.bF)(l,{navigation:n.section},null,8,["navigation"])]}),_:1},8,["section","class"])):(0,r.Q3)("v-if",!0)}]]);var ge=n(73305),ye={class:"grid-wrapper"},be={class:"grid"},we={key:0,class:"separator"},Se={class:"link-container"};var ke=n(36230),_e=n(11838),Oe={class:"footer-share"},Ce={class:"grid"},Te={href:"https://uxfol.io/?utm_campaign=branding_header",rel:"nofollow",class:"ufo--branding floating"};function Ae(e){return function(e){if(Array.isArray(e))return Ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xe={width:"67",height:"18",viewBox:"0 0 69 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const Pe={name:"UXFolioLogo"};function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){Me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ie(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const De={name:"UXfolioBranding",components:{UXFolioLogo:(0,K.A)(Pe,[["render",function(e,t,n,o,i,s){return(0,r.uX)(),(0,r.CE)("svg",xe,Ae(t[0]||(t[0]=[(0,r.Fv)('<path fill-rule="evenodd" clip-rule="evenodd" d="M33.0226 13.8586C32.6981 13.9416 32.2752 14.0286 31.7538 14.1195C31.1792 14.2145 30.5978 14.2602 30.0158 14.2559C29.5137 14.2705 29.0137 14.1839 28.5442 14.0009C28.1746 13.8512 27.8478 13.6085 27.5941 13.2952C27.3485 12.9761 27.1744 12.6056 27.0843 12.21C26.9771 11.7577 26.9246 11.2937 26.9279 10.8283V6.67725H28.6196V10.5555C28.5748 11.1451 28.6954 11.7356 28.9672 12.2575C29.2537 12.6251 29.7038 12.8174 30.1606 12.7674C30.3653 12.7674 30.5816 12.7674 30.8095 12.7674C30.9809 12.7566 31.1513 12.7329 31.3193 12.6963V6.68318H33.0226V13.8586Z" fill="currentColor" data-v-e3fcc358></path><path fill-rule="evenodd" clip-rule="evenodd" d="M37.8541 8.94854L39.3951 6.68325H41.1679L38.7115 10.2413C39.2252 10.8936 39.7157 11.5538 40.183 12.2219C40.6106 12.8208 40.9978 13.4489 41.3417 14.1018H39.5168C39.4185 13.8975 39.3082 13.6994 39.1865 13.5088L38.7578 12.8861C38.6033 12.6608 38.443 12.4374 38.277 12.216C38.1109 11.9946 37.9487 11.7871 37.7903 11.5934C37.4466 11.9995 37.1255 12.4251 36.8286 12.8683C36.5196 13.319 36.2628 13.7203 36.0581 14.0721H34.3201C34.4727 13.7637 34.643 13.4647 34.8299 13.1767C35.0307 12.8604 35.247 12.5382 35.4788 12.2101C35.7105 11.882 35.948 11.5538 36.1913 11.2257C36.4347 10.8976 36.6761 10.5852 36.9155 10.2887L34.4359 6.67139H36.2956L37.8541 8.94854Z" fill="currentColor" data-v-e3fcc358></path><path fill-rule="evenodd" clip-rule="evenodd" d="M45.6347 3.10152C45.9813 3.09712 46.3273 3.13292 46.666 3.20826C46.8934 3.25784 47.1178 3.32121 47.338 3.39802L47.0136 4.81531C46.8278 4.73186 46.6335 4.67019 46.4342 4.63148C46.2144 4.59173 45.9911 4.57583 45.768 4.58404C45.5347 4.57713 45.3024 4.61743 45.0844 4.70264C44.911 4.77369 44.7577 4.88782 44.6383 5.03473C44.522 5.18613 44.4408 5.36252 44.4007 5.55064C44.3528 5.76657 44.3294 5.98746 44.3312 6.20888V6.70108H45.768V8.13023H44.3486V14.0722H42.6569V6.15551C42.6112 5.33822 42.877 4.53464 43.3985 3.91394C43.9964 3.3287 44.8102 3.03304 45.6347 3.10152Z" fill="currentColor" data-v-e3fcc358></path><path fill-rule="evenodd" clip-rule="evenodd" d="M53.421 10.3777C53.4283 10.9221 53.3441 11.4637 53.1719 11.9788C53.0185 12.4352 52.7761 12.8549 52.4593 13.2123C52.1481 13.5553 51.7688 13.8262 51.347 14.0069C50.8938 14.2001 50.4069 14.297 49.916 14.2916C49.4269 14.2977 48.9418 14.2008 48.4908 14.0069C48.0732 13.8246 47.6981 13.5537 47.3901 13.2123C47.0726 12.8543 46.8284 12.4349 46.6717 11.9788C46.4933 11.465 46.405 10.923 46.411 10.3777C46.4045 9.83433 46.4927 9.29413 46.6717 8.78251C46.8268 8.32565 47.0712 7.90595 47.3901 7.54905C47.702 7.20836 48.0812 6.93951 48.5024 6.76035C48.9506 6.57138 49.4313 6.4766 49.916 6.48164C50.4025 6.47725 50.885 6.57199 51.3354 6.76035C51.7558 6.93796 52.1333 7.20709 52.4419 7.54905C52.7584 7.90556 53.0025 8.32279 53.1603 8.77658C53.3392 9.2882 53.4275 9.8284 53.421 10.3718M51.683 10.3718C51.7155 9.75205 51.5508 9.13826 51.2137 8.6224C50.8972 8.21457 50.4162 7.97689 49.9073 7.97689C49.3985 7.97689 48.9174 8.21457 48.6009 8.6224C48.2638 9.13826 48.0992 9.75205 48.1316 10.3718C48.0966 11.0011 48.2612 11.6251 48.6009 12.1508C48.9149 12.5628 49.3968 12.8036 49.9073 12.8036C50.4178 12.8036 50.8997 12.5628 51.2137 12.1508C51.553 11.6249 51.7176 11.001 51.683 10.3718Z" fill="currentColor" data-v-e3fcc358></path><path fill-rule="evenodd" clip-rule="evenodd" d="M60.605 4.51287C60.6181 4.80178 60.5057 5.08184 60.2979 5.27785C60.1009 5.464 59.8418 5.56586 59.5737 5.5625C59.3 5.56861 59.0345 5.46669 58.8322 5.27785C58.6201 5.08404 58.5033 4.80368 58.5135 4.51287C58.4985 4.22017 58.611 3.93571 58.8206 3.73603C59.0232 3.54772 59.2885 3.44587 59.5621 3.45138C59.8301 3.44862 60.089 3.5504 60.2863 3.73603C60.4995 3.934 60.6162 4.21843 60.605 4.51287ZM58.7337 14.0722H60.4254V6.68328H58.7337V14.0722Z" fill="currentColor" data-v-e3fcc358></path><path fill-rule="evenodd" clip-rule="evenodd" d="M68.9996 10.3777C69.007 10.9221 68.9227 11.4637 68.7505 11.9788C68.5972 12.4352 68.3547 12.8549 68.0379 13.2123C67.7267 13.5553 67.3474 13.8262 66.9256 14.0069C66.4724 14.2001 65.9855 14.297 65.4946 14.2916C65.0055 14.2977 64.5204 14.2008 64.0694 14.0069C63.6518 13.8246 63.2767 13.5537 62.9687 13.2123C62.6512 12.8543 62.407 12.4349 62.2503 11.9788C62.0719 11.465 61.9836 10.923 61.9896 10.3777C61.9831 9.83433 62.0714 9.29413 62.2503 8.78251C62.4054 8.32565 62.6498 7.90595 62.9687 7.549
205C63.2806 7.20836 63.6598 6.93951 64.081 6.76035C64.5292 6.57138 65.0099 6.4766 65.4946 6.48164C65.9811 6.47725 66.4636 6.57199 66.914 6.76035C67.3344 6.93796 67.712 7.20709 68.0205 7.54905C68.337 7.90556 68.5811 8.32279 68.7389 8.77658C68.9179 9.2882 69.0061 9.8284 68.9996 10.3718M67.2616 10.3718C67.2941 9.75205 67.1294 9.13826 66.7923 8.6224C66.4758 8.21457 65.9948 7.97689 65.4859 7.97689C64.9771 7.97689 64.496 8.21457 64.1795 8.6224C63.8424 9.13826 63.6778 9.75205 63.7102 10.3718C63.6752 11.0011 63.8398 11.6251 64.1795 12.1508C64.4935 12.5628 64.9755 12.8036 65.4859 12.8036C65.9964 12.8036 66.4784 12.5628 66.7923 12.1508C67.1316 11.6249 67.2962 11.001 67.2616 10.3718Z" fill="currentColor" data-v-e3fcc358></path><path fill-rule="evenodd" clip-rule="evenodd" d="M55.0723 14.0722H56.7755V3.67676H55.0723V14.0722Z" fill="currentColor" data-v-e3fcc358></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20.1379 6.59422L23.2953 7.6557L23.4749 7.89884L12.4674 19L0 0.0236816L20.1379 6.59422ZM13.9042 15.5012V15.5309L21.0243 8.36139L3.38915 2.60327L11.5868 15.092L12.6354 16.7643L13.9042 15.5012Z" fill="currentColor" data-v-e3fcc358></path><path d="M16.5287 0L15.4048 4.14513L16.7952 4.60175L17.2239 3.01248L20.4972 6.71286L20.138 6.59426L23.2954 7.66167L16.5287 0Z" fill="currentColor" data-v-e3fcc358></path><path d="M14.5531 7.2644L12.2647 16.1062L11.6042 15.098L12.6644 16.7644L13.9332 15.5013L15.9377 7.72102L14.5531 7.2644Z" fill="currentColor" data-v-e3fcc358></path>',10)])))}],["__scopeId","data-v-e3fcc358"]])},computed:je(je({},(0,$.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio}})},Re=(0,K.A)(De,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("UXFolioLogo");return(0,r.uX)(),(0,r.CE)("div",Oe,[(0,r.Lk)("div",Ce,[(0,r.Lk)("div",{class:(0,o.C4)(["footer-share-content","profile_theme_nine"!==a.portfolio.templateSettings.theme?"show-color-background":""])},[(0,r.Lk)("a",Te,[t[0]||(t[0]=(0,r.eW)(" Made with ",-1)),(0,r.bF)(l)])],2)])])}]]);var Ne=n(25973),Fe=n(31096),Be=n(76655);function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const We={name:"PortfolioFooterSection",components:{Text:Ne.A,SectionBackground:Q.A,UXfolioBranding:Re,GetHeroSocialLinkItem:_e.A,GetHeroNavigationItem:ke.A,AnimationWrapper:x.A,ToggleGrid:A.A},mounted:function(){(0,Fe.Ty)(this.viewData.portfolio.portfolioFooter),this.$route.query.templatePreview||(0,he.aQ)(this.viewData.portfolio.portfolioFooter)},computed:$e($e({},(0,$.L8)("view",["viewData"])),{},{showSocialLinksInFooterNavigation:function(){var e;return(null===(e=this.portfolio.portfolioFooter.socialIcons)||void 0===e?void 0:e.length)<1&&this.portfolio.portfolioFooter.displaySocialLinks&&this.portfolio.socialLinks},portfolio:function(){return this.viewData.portfolio},project:function(){return this.viewData.project},user:function(){return this.viewData.user},portfolioTemplate:function(){return this.portfolio.templateSettings.theme.replace("_old","")},displayFooter:function(){return"caseStudy"===this.project.type?this.portfolio.settings.showFooterOnProjects&&this.portfolio.portfolioFooter:this.portfolio.settings.showFooterOnPortfolio&&this.portfolio.portfolioFooter},homeLink:function(){return this.portfolio.ownDomainAddress?"https://"+this.portfolio.ownDomainAddress:"/"+this.portfolio.shortId},notAllowedInThemes:function(){return["theme_one","theme_two","theme_three","theme_six","theme_seven","theme_eleven"]},portfolioPages:function(){return this.viewData.portfolioPages},footerLineClasses:function(){return"".concat(this.$store.state.portfolio.portfolioFooter.lineWeight)},showFooterLinks:function(){return this.$store.state.portfolio.portfolioFooter.displayPageLinks||this.$store.state.portfolio.portfolioFooter.displaySocialLinks&&this.portfolio.socialLinks},disableAlignmentForLinks:function(){var e=this.portfolio.portfolioFooter,t=e.displayPageLinks&&this.portfolioPages&&this.portfolioPages.length,n=e.displaySocialLinks&&this.portfolio.socialLinks&&this.portfolio.socialLinks.length;return t&&n},visibleFooterModules:function(){return(0,Fe.Nc)(this.portfolio.portfolioFooter)}}),methods:{moduleIsText:function(e){return(null==e?void 0:e.type)===H.jB.TEXT},columnSettings:function(e){var t,n,r=(0,Be.f)(e.gridSettings),o=r.rowStart,i=r.rowEnd;return{"--columnStart":null===(t=e.gridSettings)||void 0===t?void 0:t.columnStart,"--columnEnd":null===(n=e.gridSettings)||void 0===n?void 0:n.columnEnd,"--rowStart":o,"--rowEnd":i}}}},Ge=(0,K.A)(We,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("ToggleGrid"),c=(0,r.g2)("SectionBackgroun
2d"),u=(0,r.g2)("Text"),d=(0,r.g2)("AnimationWrapper"),p=(0,r.g2)("GetHeroNavigationItem"),f=(0,r.g2)("GetHeroSocialLinkItem"),h=(0,r.g2)("UXfolioBranding");return(0,r.uX)(),(0,r.CE)(r.FK,null,[a.displayFooter?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["footer-section","portfolio-footer","ufo-sec",a.portfolio.portfolioFooter.styleSettings.boxAlign,{"fixed-links":a.disableAlignmentForLinks}]),style:(0,o.Tr)([{"--section-padding-top":a.portfolio.portfolioFooter.style&&a.portfolio.portfolioFooter.style.paddingTop?a.portfolio.portfolioFooter.style.paddingTop+"px":null,"--section-padding-bottom":a.portfolio.portfolioFooter.style&&a.portfolio.portfolioFooter.style.paddingBottom?a.portfolio.portfolioFooter.style.paddingBottom+"px":null}])},[(0,r.bF)(l),(0,r.bF)(c,{section:a.portfolio.portfolioFooter},null,8,["section"]),(0,r.Lk)("div",ye,[(0,r.Lk)("div",be,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.visibleFooterModules,function(e){var t;return(0,r.uX)(),(0,r.CE)("div",{key:e.moduleId,class:"col",style:(0,o.Tr)(a.columnSettings(e))},[a.moduleIsText(e)&&a.portfolio.portfolioFooter.displayText&&null!==(t=a.portfolio.portfolioFooter.text)&&void 0!==t&&t.text?((0,r.uX)(),(0,r.Wv)(u,{key:0,section:a.portfolio.portfolioFooter},null,8,["section"])):(0,r.Q3)("v-if",!0)],4)}),128)),e.$store.state.portfolio.portfolioFooter.displayDividerLine?((0,r.uX)(),(0,r.CE)("div",we,[(0,r.bF)(d,{"is-final-section":""},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["line",a.footerLineClasses])},null,2)]}),_:1})])):(0,r.Q3)("v-if",!0),a.showFooterLinks?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["footer-links",{profile_theme_default:!e.$store.state.portfolio.templateSettings.theme||e.$store.state.portfolio.templateSettings.theme.includes("theme_default")}])},[(0,r.Lk)("div",Se,[a.portfolio.portfolioFooter.displayPageLinks&&a.portfolioPages?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["portfolio-pages",a.portfolio.portfolioFooter.displaySocialLinks&&a.portfolio.socialLinks?"portfolio-pages--left":""])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.portfolioPages,function(e,t){return(0,r.uX)(),(0,r.Wv)(p,{index:t,page:e,key:e._id,"is-in-footer":!0},null,8,["index","page"])}),128))],2)):(0,r.Q3)("v-if",!0),a.showSocialLinksInFooterNavigation?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["social-links",a.portfolio.portfolioFooter.displayPageLinks&&a.portfolioPages?"social-links--right":""])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.portfolio.socialLinks,function(e,t){return(0,r.uX)(),(0,r.CE)("div",{key:e,class:"footer-link"},[(0,r.bF)(d,{"is-final-section":"","delay-animation":t?.1*t:0},{animationContent:(0,r.k6)(function(){return[(0,r.bF)(f,{"social-link":e},null,8,["social-link"])]}),_:2},1032,["delay-animation"])])}),128))],2)):(0,r.Q3)("v-if",!0)])],2)):(0,r.Q3)("v-if",!0)])])],6)):(0,r.Q3)("v-if",!0),a.user.accountSettings.folioLogo&&"caseStudy"!==a.project.type?((0,r.uX)(),(0,r.Wv)(h,{key:1,class:(0,o.C4)(["footer-share","profile_theme_nine"!==a.portfolio.templateSettings.theme?"show-color-background":""])},null,8,["class"])):(0,r.Q3)("v-if",!0)],64)}],["__scopeId","data-v-3f96f142"]]);var Xe={class:"grid-wrapper"},Ve={class:"grid"},Ke={class:"grid-container"},qe={key:0,class:"related-title"},Ye={key:0,class:"separator related-divider"},Qe={class:"related-projects"},Je=["onClick"],Ze={class:"image"},et=["src","alt"],tt=["src","alt"],nt=["alt"],rt={class:"related-project-title"},ot={key:0,class:"related-project-subtitle"};var it=n(81639),st=n(77745);function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?lt(Object(n),!0).forEach(function(t){ut(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ut(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=at(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==at(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dt={name:"RelatedCaseStudiesSection",components:{SectionBackground:Q.A,AnimationWrapper:x.A,Title:it.A,ToggleGrid:A.A,ProjectThumbnail:E.A},mounted:function(){this.$route.query.templatePreview||this.relatedFooter&&(0,he.aQ)(this.relatedFooter)},computed:ct(ct(ct({},(0,$.L8)("view",["viewData","caseStudyRoute"])),(0,$.L8)("design",["templateSettings"])),{},{cornerRadius:function(){var e,t,n,r=null!==(t=((null===(e=this.templateSettings)||void 0===e?void 0:e.cardStyle)||{}).cornerRadiusPx)&&void 0!==t?t:0,o=null!==(n=H.Tp[r])&&void 0!==n?n:0;return o?"corner-radius-footer-".concat(o):""},portfolio:function(){return this.viewData.portfolio},project:function(){return this.viewData.project},footerProjects:function(){return(0,st.j)({caseStudies:this.viewData.caseStudies,currentId:this.viewData.activePage})},displayRelatedFooter:function(){return!!this.relatedFooterVisible},relatedFooter:function(){return this.portfolio.relatedCaseStudyFooter},relatedFooterVisible:function(){var e;return"caseStudy"===this.project.type&&!(null===(e=this.portfolio.settings)||void 0===e||!e.showRelatedCaseStudiesOnProjects)},relatedAlignment:function(){return this.relatedFooter.styleSettings.boxAlign},relatedSizeClass:function(){return this.relatedFooter.cardSize===H.iI.SMALL?"related-size-small":"related-size-medium"},relatedLineClasses:function(){return"".concat(this.relatedFooter.lineWeight)},showRelatedDividerLine:function(){return!!this.relatedFooter.displayDividerLine},showRelatedTitle:function(){return!!this.relatedFooter.displayTitle},showRelatedDescription:function(){var e,t=!1!==this.relatedFooter.displayDescription,n=!0===(null===(e=this.templateSettings)||void 0===e||null===(e=e.projectTitle)||void 0===e?void 0:e.hideDescription);return t&&!n}}),methods:{navigateToProjectFooter:function(e){var t=this.caseStudyRoute(e);t&&this.$router.push(t).then(function(){window.scrollTo(0,0)})},getProjectName:function(e){var t=e.sections[0];return null!==e.name?e.name:(0,Y.sZ)(t.title.text)},getProjectSubtitle:function(e){var t,n=e.sections[0];return null!=e.subtitle&&""!==e.subtitle?e.subtitle:(0,Y.sZ)((null==n||null===(t=n.subtitle)||void 0===t?void 0:t.text)||"")}}},pt=(0,K.A)(dt,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("ToggleGrid"),c=(0,r.g2)("SectionBackground"),u=(0,r.g2)("Title"),d=(0,r.g2)("AnimationWrapper"),p=(0,r.g2)("ProjectThumbnail");return"caseStudy"===a.project.type&&a.displayRelatedFooter&&a.footerProjects.length?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["footer-section ufo-sec related-case-studies",[a.cornerRadius,a.relatedAlignment,a.relatedSizeClass]]),style:(0,o.Tr)([{"--section-padding-top":a.relatedFooter.style.paddingTop?a.relatedFooter.style.paddingTop+"px":null,"--section-padding-bottom":a.relatedFooter.style.paddingBottom?a.relatedFooter.style.paddingBottom+"px":null}])},[(0,r.bF)(l),a.relatedFooter?((0,r.uX)(),(0,r.Wv)(c,{key:0,section:a.relatedFooter},null,8,["section"])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",Xe,[(0,r.Lk)("div",Ve,[(0,r.Lk)("div",Ke,[(0,r.Lk)("div",{class:(0,o.C4)(["related-projects-container",{"no-related-header":!a.showRelatedTitle&&!a.showRelatedDividerLine}])},[(0,r.bF)(d,null,{animationContent:(0,r.k6)(function(){return[a.showRelatedTitle?((0,r.uX)(),(0,r.CE)("div",qe,[(0,r.bF)(u,{section:a.relatedFooter},null,8,["section"])])):(0,r.Q3)("v-if",!0)]}),_:1}),a.showRelatedDividerLine?((0,r.uX)(),(0,r.CE)("div",Ye,[(0,r.bF)(d,{"is-final-section":""},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["line",a.relatedLineClasses])},null,2)]}),_:1})])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",Qe,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.footerProjects,function(e,t){return(0,r.uX)(),(0,r.CE)("div",{key:e,onClick:function(t){return a.navigateToProjectFooter(e.shortId)},class:"related-project"},[(0,r.bF)(d,{"delay-animation":t?.1*t:0},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",Ze,[e.settings.usingGeneratedThumbnail?((0,r.uX)(),(0,r.Wv)(p,{key:0,caseStudy:e,"force-squared":""},null,8,["caseStudy"])):e.image.url?((0,r.uX)(),(0,r.CE)("img",{key:1,loading:"lazy",src:e.image.croppedImageUrl?e.image.croppedImageUrl:e.image.url,alt:e.name},null,8,et)):"MainHeader"===e.sections[0].type&&e.sections[0].image&&e.sections[0].image.url?((0,r.uX)(),(0,r.CE)("img",{key:2,loading:"lazy",src:e.sections[0].image.croppedImageUrl?e.sections[0].image.croppedImageUrl:e.sections[0].image.url,alt:e.name},null,8,tt)):e.sections[0].backgroundColor?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("img",{key:3,loading:"lazy",src:"/example_project_images/v2/empty-project-thumbnail.jpg",alt:e.name},null,8,nt))])]}),_:2},1032,["delay-animation"]),(0,r.bF)(d,{"delay-animation":t?.1*t:0},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",rt,[(0,r.Lk)("h4",null,(0,o.v_)(a.getProjectName(e)),1)]),a.showRelatedDescription?((0,r.uX)(),(0,r.CE)("div",ot,[(0,r.Lk)("p",null,(0,o.v_)(a.getProjectSubtitle(e)),1)])):(0,r.Q3)("v-if",!0)]}),_:2},1032,["delay-animation"])],8,Je)}),128))])],2)])])])],6)):(0,r.Q3)("v-if",!0)}]]);var ft={key:0},ht={class:"footer-info"},mt={class:"project-owner"},vt={key:0,class:"owner-picture"},gt=["src"],yt={class:"owner-info"},bt={key:0,class:"owner-name"},wt={key:1,class:"owner-company"},St={class:"footer-links"},kt=["href"],_t=["onClick"],Ot={class:"owner-projects-content"},Ct=["onClick"],Tt={class:"image"},At=["src","alt"],Et=["src","alt"],xt=["alt"],Pt={key:0,class:"title"};var It=n(53637);function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function jt(e){return function(e){if(Array.isArray(e))return Mt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Mt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Dt(Object(n),!0).forEach(function(t){Nt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ft={name:"LegacyCaseStudyFooter",components:{ProjectThumbnail:E.A},computed:Rt(Rt({},(0,$.L8)("view",["viewData","caseStudyRoute"])),{},{footer:function(){return It.A},user:function(){return this.viewData.user},portfolio:function(){return this.viewData.portfolio},project:function(){return this.viewData.project},portfolioPages:function(){return this.viewData.portfolioPages},footerProjects:function(){var e=this.viewData.activePage;return this.viewData.caseStudies.filter(function(t){return t.shortId!==e})||[]},shouldRenderFooter:function(){var e,t=(null===(e=this.portfolio)||void 0===e?void 0:e.settings)||{},n=t.showFooterOnPortfolio,r=t.showFooterOnProjects;return null===n&&null===r},sortedFooterProjects:function(){return jt(this.footerProjects).sort(function(e,t){return(e.name||"").localeCompare(t.name||"")})},isLongList:function(){return this.footerProjects.length>6}}),methods:{resolveColor:U.iL,footerHref:function(e){var t;return"file"===e.type?(null===(t=e.settings)||void 0===t||null===(t=t.link)||void 0===t?void 0:t.url)||"#":"home"===e.type?"/".concat(this.portfolio.shortId):void 0},navigateToPage:function(e,t){e.preventDefault();var n=this.rootIsOwnDomain()?"/p/".concat(t.shortId):"/p/".concat(this.portfolio.shortId,"/").concat(t.shortId);this.$router.push(n)},navigateToProjectFooter:function(e){var t=this.caseStudyRoute(e);t&&this.$router.push(t).then(function(){window.scrollTo(0,0)})},rootIsOwnDomain:function(){return this.portfolio.ownDomainAddress&&location.origin.includes(this.portfolio.ownDomainAddress)},navigateBack:function(){var e=this.portfolio,t=e.ownDomainAddress,n=e.shortId;window.location.href=t?"".concat(window.location.protocol,"//").concat(t):"".concat(window.location.origin,"/").concat(n)},getProjectName:function(e){var t,n,r=null===(t=e.sections)||void 0===t?void 0:t[0];return e.name||(0,Y.sZ)((null==r||null===(n=r.title)||void 0===n?void 0:n.text)||"")}}},Bt=(0,K.A)(Ft,[["render",function(e,t,n,i,s,a){var l,c,u,d=(0,r.g2)("ProjectThumbnail");return a.shouldRenderFooter?((0,r.uX)(),(0,r.CE)("div",ft,[(0,r.Lk)("div",ht,[(0,r.Lk)("div",{class:(0,o.C4)(["grid info",{"project-list":a.footerProjects.length}])},[(0,r.Lk)("div",mt,[(0,r.Lk)("div",{class:"owner",onClick:t[0]||(t[0]=function(){return a.navigateBack&&a.navigateBack.apply(a,arguments)})},[null!==(l=a.user)&&void 0!==l&&null!==(l=l.image)&&void 0!==l&&l.url?((0,r.uX)(),(0,r.CE)("div",vt,[(0,r.Lk)("img",{loading:"lazy",height:"60",src:a.user.image.url,alt:"User image"},null,8,gt)])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",yt,[null!==(c=a.user)&&void 0!==c&&c.name?((0,r.uX)(),(0,r.CE)("div",bt,(0,o.v_)(a.user.name),1)):(0,r.Q3)("v-if",!0),null!==(u=a.user)&&void 0!==u&&u.title?((0,r.uX)(),(0,r.CE)("div",wt,(0,o.v_)(a.user.title),1)):(0,r.Q3)("v-if",!0)])]),(0,r.Lk)("div",St,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.portfolioPages,function(e){return(0,r.uX)(),(0,r.CE)(r.FK,null,["file"===e.type||"mailto"===e.type||"link"===e.type?((0,r.uX)(),(0,r.CE)("a",{key:e,class:"footer-btn",href:a.footerHref(e)},(0,o.v_)(e.name),9,kt)):((0,r.uX)(),(0,r.CE)("a",{key:e.type,class:"footer-btn",onClick:function(t){return a.navigateToPage(t,e)}},(0,o.v_)(e.name),9,_t))],64)}),256))])]),a.sortedFooterProjects.length?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["project-owner-projects",{"long-list":a.isLongList}])},[t[1]||(t[1]=(0,r.Lk)("div",{class:"title-line"},"See more of my work:",-1)),(0,r.Lk)("div",Ot,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.sortedFooterProjects,function(e){var t,n,i,s;return(0,r.uX)(),(0,r.CE)("div",{key:e.shortId,class:"f-project related-project",onClick:function(t){return a.navigateToProjectFooter(e.shortId)}},[(0,r.Lk)("div",Tt,[null!==(t=e.settings)&&void 0!==t&&t.usingGeneratedThumbnail?((0,r.uX)(),(0,r.Wv)(d,{key:0,caseStudy:e,"force-squared":""},null,8,["caseStudy"])):null!==(n=e.image)&&void 0!==n&&n.url?((0,r.uX)(),(0,r.CE)("img",{key:1,loading:"lazy",width:"70",src:e.image.croppedImageUrl||e.image.url,alt:e.name},null,8,At)):"MainHeader"===(null===(i=e.sections)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.type)&&null!==(s=e.sections[0])&&void 0!==s&&s.image?((0,r.uX)(),(0,r.CE)("img",{key:2,loading:"lazy",width:"70",src:e.sections[0].image.croppedImageUrl||e.sections[0].image.url,alt:e.name},null,8,Et)):((0,r.uX)(),(0,r.CE)("img",{key:3,loading:"lazy",width:"70",src:"/example_project_images/v2/empty-project-thumbnail.jpg",alt:e.name},null,8,xt))]),a.isLongList?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",Pt,[(0,r.Lk)("h4",null,(0,o.v_)(a.getProjectName(e)),1)]))],8,Ct)}),128))])],2)):(0,r.Q3)("v-if",!0)],2)])])):(0,r.Q3)("v-if",!0)}]]),Ut=Bt;var Ht={key:0,class:"profile-footer"},$t={class:"grid"},zt={class:"profile-footer-content"},Wt={class:"social-links"},Gt=["href"];function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Vt(Object(n),!0).forEach(function(t){qt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yt={name:"LegacyPageFooter",computed:Kt(Kt({},(0,$.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.portfolio.templateSettings},oldFooterIsVisible:function(){return!!this.portfolio&&this.portfolio.settings&&null===this.portfolio.settings.showFooterOnPortfolio&&this.socialLinks.length>0&&"profile_theme_four"!==this.templateSettings.theme&&this.templateSettings.theme.indexOf("default")<0&&"profile_theme_nine"!==this.templateSettings.theme&&("profile_theme_eight"===this.templateSettings.theme||"theme_eight"===this.templateSettings.theme||"theme_eleven"===this.templateSettings.theme||"theme_twelve"===this.templateSettings.theme)},showSocialIcons:function(){return"profile_theme_eight"===this.templateSettings.theme||"theme_eight"===this.templateSettings.theme||"theme_thirteen"===this.templateSettings.theme},socialLinks:function(){return this.portfolio.socialLinks?this.portfolio.socialLinks.filter(function(e){return!!e.url&&!!e.type}):[]}}),methods:{getCleanTypeOfSocialLink:function(e){return"x-twitter"===e.toLowerCase()?"x":e}}},Qt=(0,K.A)(Yt,[["render",function(e,t,n,i,s,a){return a.oldFooterIsVisible?((0,r.uX)(),(0,r.CE)("div",Ht,[(0,r.Lk)("div",$t,[(0,r.Lk)("div",zt,[(0,r.Lk)("div",Wt,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.socialLinks,function(e,t){return(0,r.uX)(),(0,r.CE)("a",{key:t,href:e.url,target:"_blank",rel:"nofollow noopener",class:(0,o.C4)([a.showSocialIcons?"footer-icon":"footer-url",a.getCleanTypeOfSocialLink(e.type.toLowerCase())])},[a.showSocialIcons?((0,r.uX)(),(0,r.CE)("i",{key:0,class:(0,o.C4)("fa fa-".concat(a.getCleanTypeOfSocialLink(e.type.toLowerCase())))},null,2)):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.eW)((0,o.v_)(a.getCleanTypeOfSocialLink(e.type)),1)],64))],10,Gt)}),128))])])])])):(0,r.Q3)("v-if",!0)}]]);var Jt=n(77726),Zt=["onMouseenter"];const en={name:"PortfolioHeroSection",components:{GeneralSection:p.A},props:{section:{type:Object,default:null}},beforeMount:function(){this.$route.query.templatePreview||(0,he.aQ)(this.section)},computed:{sectionHeight:function(){var e,t=null===(e=this.section)||void 0===e||null===(e=e.styleSettings)||void 0===e?void 0:e.sectionHeight;if(null==t||""===t)return null;var n=Number(t);return Number.isFinite(n)?Math.round(n):null},heroStyle:function(){var e,t=this.sectionHeight;if(!t)return null;var n=(null===(e=this.section)||void 0===e||null===(e=e.styleSettings)||void 0===e||null===(e=e.boxAlign)||void 0===e||null===(e=e.split("-"))||void 0===e?void 0:e[1])||"middle";return{"--sectionHeight":"".concat(t,"px"),"--heroContentAlign":{top:"flex-start",middle:"center",bottom:"flex-end"}[n]||"center"}}}},tn=(0,K.A)(en,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("GeneralSection");return n.section?((0,r.uX)(),(0,r.Wv)(a,{key:0,id:"section-".concat(n.section._id),section:n.section,"section-style":s.heroStyle},null,8,["id","section","section-style"])):(0,r.Q3)("v-if",!0)}]]),nn={name:"ViewHeaderSections",components:{FabWrapper:Jt.A,PortfolioHeroSection:tn,PortfolioNavigationSection:ve},props:{showPortfolioHero:{type:Boolean,default:!1},portfolioHeroSection:{type:Object,default:null},portfolioNavigationSection:{type:Object,default:null},navigationVisibility:{type:Object,default:function(){return{}}},isSidebarHeroLayout:{type:Boolean,default:!1}},data:function(){return{hoverKey:null}}
2,computed:{isReviewModeActive:function(){return this.$route.path.includes("/review/")},items:function(){var e,t,n,r,o=[];return null!==(e=this.navigationVisibility)&&void 0!==e&&e.showAbove&&null!==(t=this.portfolioNavigationSection)&&void 0!==t&&t._id&&o.push({key:"nav-above",component:"PortfolioNavigationSection",section:this.portfolioNavigationSection,sectionId:"section-".concat(this.portfolioNavigationSection._id),className:null}),this.showPortfolioHero&&this.portfolioHeroSection&&o.push({key:"portfolio-hero",component:"PortfolioHeroSection",section:this.portfolioHeroSection,sectionId:"section-".concat(this.portfolioHeroSection._id),className:null}),null!==(n=this.navigationVisibility)&&void 0!==n&&n.showBelow&&null!==(r=this.portfolioNavigationSection)&&void 0!==r&&r._id&&o.push({key:"nav-below",component:"PortfolioNavigationSection",section:this.portfolioNavigationSection,sectionId:"section-".concat(this.portfolioNavigationSection._id),className:this.isSidebarHeroLayout?"is-below":null}),o}}},rn=(0,K.A)(nn,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("FabWrapper");return(0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.items,function(n,i){return(0,r.uX)(),(0,r.CE)("div",{key:n.key,class:"section-container",onMouseenter:function(e){return s.hoverKey=n.key},onMouseleave:t[0]||(t[0]=function(e){return s.hoverKey=null})},[a.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.Wv)(l,{key:0,invertedIndex:a.items.length-i+10,hovering:s.hoverKey===n.key,section:n.section},null,8,["invertedIndex","hovering","section"])):(0,r.Q3)("v-if",!0),((0,r.uX)(),(0,r.Wv)((0,r.$y)(n.component),{id:n.sectionId,section:n.section,class:(0,o.C4)(n.className)},null,8,["id","section","class"]))],40,Zt)}),128)}],["__scopeId","data-v-4bc4294c"]]);var on={key:0,class:"sidebar-edit-fabs"},sn={class:"grid"};var an=n(2411),ln=n(54953),cn=n(96937);function un(e){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},un(e)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach(function(t){fn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==un(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hn={name:"PortfolioSidebarHeroSection",components:{PortfolioNavigationBar:de.A,SectionBackground:Q.A,PortfolioNavigationLogo:an.A,Media:ln.A,Text:Ne.A,FabWrapper:Jt.A},props:{section:{type:Object,default:null},navigation:{type:Object,default:null},navigationVisibility:{type:Object,default:function(){return{}}},sidebarHasBackground:{type:Boolean,default:!1}},data:function(){return{hoverKey:null,sidebarHeroTextMaxHeight:cn.Po,sidebarTextResizeObserver:null,sidebarTextMaxHeightAnimationFrame:null}},computed:pn(pn({},(0,$.L8)("view",["viewData"])),{},{sidebarModules:function(){var e,t=this;return((null===(e=this.section)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.modules)||[]).filter(function(e){var n,r;return(null==e?void 0:e.type)===H.jB.MEDIA?null===(n=t.section)||void 0===n||null===(n=n.contentSettings)||void 0===n?void 0:n.showMedia:(null==e?void 0:e.type)===H.jB.TEXT&&(null===(r=t.section)||void 0===r||null===(r=r.contentSettings)||void 0===r?void 0:r.showText)}).sort(function(e,t){var n,r;return(Number(null==e||null===(n=e.gridSettings)||void 0===n?void 0:n.rowStart)||0)-(Number(null==t||null===(r=t.gridSettings)||void 0===r?void 0:r.rowStart)||0)})},showNavigationAbove:function(){var e;return!!this.navigation&&(null===(e=this.navigationVisibility)||void 0===e?void 0:e.showAbove)},showNavigationBelow:function(){var e;return!!this.navigation&&(null===(e=this.navigationVisibility)||void 0===e?void 0:e.showBelow)},navigationSectionId:function(){var e;return null!==(e=this.navigation)&&void 0!==e&&e._id?"section-".concat(this.navigation._id):null},portfolio:function(){var e;return this.$store.state.portfolio||(null===(e=this.viewData)||void 0===e?void 0:e.portfolio)},logo:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.logo)||null},userName:function(){var e,t;return(null===(e=this.logo)||void 0===e?void 0:e.name)||(null===(t=this.viewData)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.name)||""},showLogo:function(){var e;return!(null===(e=this.logo)||void 0===e||!e.mode)&&"None"!==this.logo.mode}
2,isReviewModeActive:function(){return this.$route.path.includes("/review/")},contentStyle:function(){var e;return{"--heroContentAlign":{left:"flex-start",center:"center",right:"flex-end"}[(null===(e=this.section)||void 0===e||null===(e=e.styleSettings)||void 0===e||null===(e=e.boxAlign)||void 0===e||null===(e=e.split("-"))||void 0===e?void 0:e[0])||"left"]||"flex-start"}}}),beforeMount:function(){this.$route.query.templatePreview||(0,he.aQ)(this.section)},mounted:function(){this.setupSidebarTextMaxHeightObserver()},beforeUnmount:function(){this.teardownSidebarTextMaxHeightObserver()},watch:{sidebarModules:{handler:function(){this.scheduleSidebarTextMaxHeightUpdate()},deep:!0},showNavigationAbove:function(){this.scheduleSidebarTextMaxHeightUpdate()},showNavigationBelow:function(){this.scheduleSidebarTextMaxHeightUpdate()}},methods:{getComponent:function(e){return e.type===H.jB.MEDIA?"Media":e.type===H.jB.TEXT?"Text":null},getComponentProps:function(e){var t={section:this.section};return e.type===H.jB.TEXT&&(t.maxRenderedTextHeight=this.sidebarHeroTextMaxHeight),t},calculateMediaAspectRatio:function(e){var t,n,r,o,i;if(e.type!==H.jB.MEDIA&&(null===(t=this.section.media)||void 0===t||!t.url))return null;if(null===(n=e.gridSettings)||void 0===n||!n.mediaHeight)return"".concat(null===(r=this.section.media)||void 0===r?void 0:r.width," / ").concat(null===(o=this.section.media)||void 0===o?void 0:o.height);var s=null===(i=e.gridSettings)||void 0===i?void 0:i.mediaAspectRatio;return s?"".concat(s[0]," / ").concat(s[1]):null},columnSettings:function(e){var t,n,r,o,i,s,a=(0,Be.f)(e.gridSettings),l=a.rowStart,c=a.rowEnd;return{"--columnStart":null===(t=e.gridSettings)||void 0===t?void 0:t.columnStart,"--columnEnd":null===(n=e.gridSettings)||void 0===n?void 0:n.columnEnd,"--rowStart":l,"--rowEnd":c,"--height":null!==(r=e.gridSettings)&&void 0!==r&&r.height?"".concat(null===(o=e.gridSettings)||void 0===o?void 0:o.height,"px"):null,"--mediaHeight":!this.calculateMediaAspectRatio(e)&&null!==(i=e.gridSettings)&&void 0!==i&&i.mediaHeight?"".concat(null===(s=e.gridSettings)||void 0===s?void 0:s.mediaHeight,"px"):null,"--mediaAspectRatio":this.calculateMediaAspectRatio(e)}},verticalAlignment:function(){var e,t;return"aligned-".concat(this.section.styleSettings&&(null===(e=this.section.styleSettings)||void 0===e?void 0:e.boxAlign)&&(null===(t=this.section.styleSettings)||void 0===t?void 0:t.boxAlign.split("-")[1])||"middle")},isFullBleed:function(e){var t;return{"is-fullbleed":e.type===H.jB.MEDIA&&(null===(t=e.gridSettings)||void 0===t?void 0:t.isFullBleed)}},setupSidebarTextMaxHeightObserver:function(){var e=this;if(this.teardownSidebarTextMaxHeightObserver(),"undefined"!=typeof window){var t=window.ResizeObserver||globalThis.ResizeObserver;t&&(this.sidebarTextResizeObserver=new t(function(){e.scheduleSidebarTextMaxHeightUpdate()}),this.$nextTick(function(){var t,n,r=e.getSidebarRailElement(),o=e.$refs.content;r&&(null===(t=e.sidebarTextResizeObserver)||void 0===t||t.observe(r)),o&&(null===(n=e.sidebarTextResizeObserver)||void 0===n||n.observe(o))})),window.addEventListener("resize",this.scheduleSidebarTextMaxHeightUpdate),this.scheduleSidebarTextMaxHeightUpdate()}},teardownSidebarTextMaxHeightObserver:function(){this.sidebarTextResizeObserver&&(this.sidebarTextResizeObserver.disconnect(),this.sidebarTextResizeObserver=null),this.sidebarTextMaxHeightAnimationFrame&&(cancelAnimationFrame(this.sidebarTextMaxHeightAnimationFrame),this.sidebarTextMaxHeightAnimationFrame=null),"undefined"!=typeof window&&window.removeEventListener("resize",this.scheduleSidebarTextMaxHeightUpdate)},scheduleSidebarTextMaxHeightUpdate:function(){var e=this;"undefined"!=typeof window&&(this.sidebarTextMaxHeightAnimationFrame||(this.sidebarTextMaxHeightAnimationFrame=requestAnimationFrame(function(){e.sidebarTextMaxHeightAnimationFrame=null,e.updateSidebarTextMaxHeight()})))},updateSidebarTextMaxHeight:function(){this.sidebarHeroTextMaxHeight=(0,cn.$4)({rail:this.getSidebarRailElement(),textElement:this.getSidebarTextElement()})},getSidebarRailElement:function(){var e,t;return(null===(e=this.$refs.content)||void 0===e||null===(t=e.closest)||void 0===t?void 0:t.call(e,".sidebar-rail"))||null},getSidebarTextElement:function(){var e,t;return(null===(e=this.$refs.content)||void 0===e||null===(t=e.querySelector)||void 0===t?void 0:t.call(e,".ufo-sec--hero .col .sidebar-hero-rendered-text"))||null},rootIsOwnDomain:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.ownDomainAddress)&&location.origin.includes(this.portfolio.ownDomainAddress)},navigateHome:function(){var e=this.rootIsOwnDomain()?"/":"/".concat(this.portfolio.shortId);this.$router.push(e),this.viewData&&(this.viewData.navOpen=!1)}}},mn=(0,K.A)(hn,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("FabWrapper"),c=(0,r.g2)("SectionBackgroun
2d"),u=(0,r.g2)("PortfolioNavigationLogo"),d=(0,r.g2)("PortfolioNavigationBar");return(0,r.uX)(),(0,r.CE)(r.FK,null,[a.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.CE)("div",on,[(0,r.bF)(l,{invertedIndex:10,hovering:"portfolio-hero"===s.hoverKey,section:n.section},null,8,["hovering","section"])])):(0,r.Q3)("v-if",!0),(0,r.bF)(c,{section:n.section},null,8,["section"]),(0,r.Lk)("div",{ref:"content",class:"ufo-sec ufo-sec--hero",style:(0,o.Tr)(a.contentStyle)},[a.showLogo?((0,r.uX)(),(0,r.Wv)(u,{key:0,logo:a.logo,"user-name":a.userName,onNavigateHome:a.navigateHome},null,8,["logo","user-name","onNavigateHome"])):(0,r.Q3)("v-if",!0),a.showNavigationAbove?((0,r.uX)(),(0,r.Wv)(d,{key:1,navigation:e.$store.state.portfolio.portfolioNavigation},null,8,["navigation"])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",sn,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.sidebarModules,function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e.moduleId,class:(0,o.C4)(["col",[a.verticalAlignment(),a.isFullBleed(e)]]),style:(0,o.Tr)(a.columnSettings(e))},[((0,r.uX)(),(0,r.Wv)((0,r.$y)(a.getComponent(e)),(0,r.v6)({key:e.moduleId},{ref_for:!0},a.getComponentProps(e)),null,16))],6)}),128))]),a.showNavigationBelow?((0,r.uX)(),(0,r.Wv)(d,{key:2,navigation:e.$store.state.portfolio.portfolioNavigation},null,8,["navigation"])):(0,r.Q3)("v-if",!0)],4)],64)}],["__scopeId","data-v-aece2f80"]]);var vn=n(78805);function gn(e){return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gn(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach(function(t){wn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=gn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sn={name:"SectionLoader",components:{Columns:f.A,GeneralSection:p.A,FabWrapper:Jt.A,LegacyCaseStudyFooter:Ut,LegacyPageFooter:Qt,PortfolioFooterSection:Ge,RelatedCaseStudiesSection:pt,UXfolioBranding:Re,MainHeader:h.A,Stat:m.A,Gallery:v.A,Tabs:g.A,ProjectGrid:oe,Testimonial:ie.A,LogoWall:se.A,Process:ae.A,DividerLine:le.A,AnimatedText:ce.A,PortfolioNavigationSection:ve,HeaderSections:rn,PortfolioSidebarHeroSection:mn,Cards:ge.A},props:["sections","defaultImageAlt"],data:function(){return{hover:null}},methods:{getSection:function(e){var t=new Set(Object.values(H.jw)),n=e.type;return t.has(e.type)&&(n="GeneralSection"),e.type===H.iK.PROCESS&&(n="Process"),n},getSpacing:function(e){if(this.project.settings&&this.project.settings.globalSpacingEnabled)return this.project.settings.globalSpacing?{"--section-padding-top":this.project.settings.globalSpacing+"px","--section-padding-bottom":this.project.settings.globalSpacing+"px"}:{"--section-padding-top":"0px","--section-padding-bottom":"0px"};var t={};return e.styleSettings&&(null!==e.styleSettings.paddingTop&&(t["--section-padding-top"]=e.styleSettings.paddingTop+"px"),null!==e.styleSettings.paddingBottom&&(t["--section-padding-bottom"]=e.styleSettings.paddingBottom+"px")),t}},computed:bn(bn({},(0,$.L8)("view",["viewData"])),{},{project:function(){return this.viewData.project},portfolio:function(){return this.viewData.portfolio},user:function(){return this.viewData.user},portfolioHeroSection:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.portfolioHero)||null},portfolioHasNavigationSection:function(){var e,t,n;return!(null===(e=this.portfolio)||void 0===e||!e.portfolioNavigation)&&(!((null===(t=this.project)||void 0===t?void 0:t.type)===H.Q8.CASE_STUDY)||this.isSidebarHeroLayout||!(null===(n=this.portfolio)||void 0===n||null===(n=n.settings)||void 0===n||!n.showNavOnCollectionItems))},portfolioNavigationSection:function(){var e;return this.portfolioHasNavigationSection&&(null===(e=this.portfolio)||void 0===e?void 0:e.portfolioNavigation)||null},showPortfolioHero:function(){var e,t,n;return!!this.portfolioHeroSection&&(!!this.isSidebarHeroLayout||(null===(e=this.project)||void 0===e?void 0:e.type)!==H.Q8.CASE_STUDY&&((null===(t=this.project)||void 0===t?void 0:t.type)===H.Q8.HOME||(null===(n=this.portfolioNavigationSection)||void 0===n||null===(n=n.layout)||void 0===n?void 0:n.position)===H.ze.BOTTOM))},navigationVisibility:function(){var e;return(0,vn.Z)({navigation:this.portfolioNavigationSection,isSidebarHeroLayout:this.isSidebarHeroLayout,isCaseStudy:(null===(e=this.project)||void 0===e?void 0:e.type)===H.Q8.CASE_STUDY})},isSidebarHeroLayout:function(){return this.$store.getters.heroIsSidebar}
2,isReviewModeActive:function(){return this.$reviewStore.isReviewMode},footerDisabledInThemes:function(){return["theme_four","profile_theme_four","theme_nine","profile_theme_nine","theme_default","profile_theme_default"]},footerIndex:function(){return this.sections.length+1},relatedFooterIndex:function(){return this.sections.length+2},portfolioTemplate:function(){return this.portfolio.templateSettings.theme.replace("_old","")},isRelatedFooterEnabled:function(){var e;return"caseStudy"===this.project.type&&!(null===(e=this.portfolio.settings)||void 0===e||!e.showRelatedCaseStudiesOnProjects)&&this.relatedFooterProjects.length>0},isPortfolioFooterEnabled:function(){return"caseStudy"===this.project.type?this.portfolio.settings.showFooterOnProjects&&this.portfolio.portfolioFooter:this.portfolio.settings.showFooterOnPortfolio&&!this.footerDisabledInThemes.includes(this.portfolioTemplate)&&this.portfolio.portfolioFooter},showCaseStudyProjectFooter:function(){return"caseStudy"===this.project.type&&!this.iframeUrl},showLegacyPageFooter:function(){return"caseStudy"!==this.project.type&&null===this.portfolio.settings.showFooterOnPortfolio},iframeUrl:function(){return window.location.pathname.includes("/uxs-headless/'")},filteredSection:function(){return this.sections.filter(function(e){return!e.deletedAt})},relatedFooterProjects:function(){return(0,st.j)({caseStudies:this.viewData.caseStudies||[],currentId:this.viewData.activePage})}})},kn=(0,K.A)(Sn,[["render",function(e,t,n,p,f,h){var m=(0,r.g2)("PortfolioSidebarHeroSection"),v=(0,r.g2)("PortfolioNavigationSection"),g=(0,r.g2)("FabWrapper"),y=(0,r.g2)("RelatedCaseStudiesSection"),b=(0,r.g2)("PortfolioFooterSection"),w=(0,r.g2)("LegacyPageFooter"),S=(0,r.g2)("LegacyCaseStudyFooter"),k=(0,r.g2)("UXfolioBranding"),_=(0,r.g2)("HeaderSections");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo--page-sections",{"sidebar-layout":h.isSidebarHeroLayout}])},[h.isSidebarHeroLayout?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.Lk)("div",{id:"section-".concat(h.portfolioHeroSection._id),class:"sidebar-rail"},[(0,r.bF)(m,{section:h.portfolioHeroSection,navigation:h.portfolioNavigationSection,"navigation-visibility":h.navigationVisibility},null,8,["section","navigation","navigation-visibility"])],8,i),(0,r.Lk)("div",s,[h.navigationVisibility.showOutside?((0,r.uX)(),(0,r.CE)("div",a,[(0,r.bF)(v,{id:"section-".concat(h.portfolioNavigationSection._id),section:h.portfolioNavigationSection},null,8,["id","section"])])):(0,r.Q3)("v-if",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(h.filteredSection,function(n,i){return(0,r.uX)(),(0,r.CE)("div",{class:"section-container",key:n._id,onMouseenter:function(e){return f.hover=i},onMouseleave:t[0]||(t[0]=function(e){return f.hover=null})},[h.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.Wv)(g,{key:0,invertedIndex:h.filteredSection.length-i+2,hovering:f.hover===i,section:n},null,8,["invertedIndex","hovering","section"])):(0,r.Q3)("v-if",!0),((0,r.uX)(),(0,r.Wv)((0,r.$y)(h.getSection(n)),{id:"section-".concat(n._id),"data-section-index":"section-".concat(n.index),section:n,style:(0,o.Tr)([h.getSpacing(n)])},null,8,["id","data-section-index","section","style"]))],40,l)}),128)),h.isRelatedFooterEnabled?((0,r.uX)(),(0,r.CE)("div",{key:1,class:"section-container",onMouseenter:t[1]||(t[1]=function(e){return f.hover=h.relatedFooterIndex}),onMouseleave:t[2]||(t[2]=function(e){return f.hover=null})},[h.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.Wv)(g,{key:0,invertedIndex:3,hovering:f.hover===h.relatedFooterIndex,section:{_id:"related-footer"}},null,8,["hovering"])):(0,r.Q3)("v-if",!0),(0,r.bF)(y)],32)):(0,r.Q3)("v-if",!0),h.isPortfolioFooterEnabled?((0,r.uX)(),(0,r.CE)("div",{key:2,class:"section-container",onMouseenter:t[3]||(t[3]=function(e){return f.hover=h.footerIndex}),onMouseleave:t[4]||(t[4]=function(e){return f.hover=null})},[h.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.Wv)(g,{key:0,invertedIndex:2,hovering:f.hover===h.footerIndex,section:{_id:"footer"}},null,8,["hovering"])):(0,r.Q3)("v-if",!0),(0,r.bF)(b)],32)):(0,r.Q3)("v-if",!0),h.showLegacyPageFooter?((0,r.uX)(),(0,r.Wv)(w,{key:3})):(0,r.Q3)("v-if",!0),h.showCaseStudyProjectFooter?((0,r.uX)(),(0,r.CE)("div",c,[(0,r.bF)(S),h.user.accountSettings.folioLogo?((0,r.uX)(),(0,r.Wv)(k,{key:0,class:(0,o.C4)(["footer-share","profile_theme_nine"!==h.portfolio.templateSettings.theme?"show-color-background":""])},null,8,["class"])):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0)])],64)):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.bF)(_,{"show-portfolio-hero":h.showPortfolioHero,"portfolio-hero-section":h.portfolioHeroSection,"portfolio-navigation-section":h.portfolioNavigationSection,"navigation-visibility":h.navigationVisibility,"is-sidebar-hero-layout":h.isSidebarHeroLayout},null,8,["show-portfolio-hero","portfolio-hero-section","portfolio-navigation-section","navigation-visibility","is-sidebar-hero-layout"]),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(h.filteredSection,function(n,i){return(0,r.uX)(),(0,r.CE)("div",{class:"section-container",key:n._id,onMouseenter:function(e){return f.hover=i}
2,onMouseleave:t[5]||(t[5]=function(e){return f.hover=null})},[h.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.Wv)(g,{key:0,invertedIndex:h.filteredSection.length-i+2,hovering:f.hover===i,section:n},null,8,["invertedIndex","hovering","section"])):(0,r.Q3)("v-if",!0),((0,r.uX)(),(0,r.Wv)((0,r.$y)(h.getSection(n)),{id:"section-".concat(n._id),"data-section-index":"section-".concat(n.index),section:n,style:(0,o.Tr)([h.getSpacing(n)])},null,8,["id","data-section-index","section","style"]))],40,u)}),128)),h.isRelatedFooterEnabled?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"section-container",onMouseenter:t[6]||(t[6]=function(e){return f.hover=h.relatedFooterIndex}),onMouseleave:t[7]||(t[7]=function(e){return f.hover=null})},[h.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.Wv)(g,{key:0,invertedIndex:3,hovering:f.hover===h.relatedFooterIndex,section:{_id:"related-footer"}},null,8,["hovering"])):(0,r.Q3)("v-if",!0),(0,r.bF)(y)],32)):(0,r.Q3)("v-if",!0),h.isPortfolioFooterEnabled?((0,r.uX)(),(0,r.CE)("div",{key:1,class:"section-container",onMouseenter:t[8]||(t[8]=function(e){return f.hover=h.footerIndex}),onMouseleave:t[9]||(t[9]=function(e){return f.hover=null})},[h.isReviewModeActive&&e.$reviewStore.review?((0,r.uX)(),(0,r.Wv)(g,{key:0,invertedIndex:2,hovering:f.hover===h.footerIndex,section:{_id:"footer"}},null,8,["hovering"])):(0,r.Q3)("v-if",!0),(0,r.bF)(b)],32)):(0,r.Q3)("v-if",!0),h.showLegacyPageFooter?((0,r.uX)(),(0,r.Wv)(w,{key:2})):(0,r.Q3)("v-if",!0),h.showCaseStudyProjectFooter?((0,r.uX)(),(0,r.CE)("div",d,[(0,r.bF)(S),h.user.accountSettings.folioLogo?((0,r.uX)(),(0,r.Wv)(k,{key:0,class:(0,o.C4)(["footer-share","profile_theme_nine"!==h.portfolio.templateSettings.theme?"show-color-background":""])},null,8,["class"])):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0)],64))],2)}],["__scopeId","data-v-b813b206"]])},23585(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(20641),o=n(90033),i={class:"ufo--column-content"},s=["innerHTML"],a=["innerHTML"];var l=n(84794),c=n(15637);const u={name:"Stats",components:{SectionBase:l.A,AnimationWrapper:c.A},props:["section"],methods:{fixText:function(e){return e.replaceAll("\n","<br/>")},getFontSize:function(e,t){return"".concat(e.style&&e.style.fontSize?e.style.fontSize:t,"px")},numberSize:function(e){return e.data.style&&e.data.style.fontSize?e.data.style.fontSize+"px":null},unitSize:function(e){return e.description.style&&e.description.style.fontSize?e.description.style.fontSize+"px":null}}};const d=(0,n(66262).A)(u,[["render",function(e,t,n,l,c,u){var d=(0,r.g2)("AnimationWrapper"),p=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(p,(0,r.v6)(e.$attrs,{section:n.section}),{default:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["ufo--columns","ufo--columns-"+n.section.statItems.length])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.section.statItems,function(e,t){return(0,r.uX)(),(0,r.CE)("div",{class:"ufo--column",style:(0,o.Tr)({"--numberFontSize":u.getFontSize(e.data,80),"--textFontSize":u.getFontSize(e.description,30)})},[(0,r.Lk)("div",i,[(0,r.bF)(d,{"delay-animation":t?.1*t:0},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["number",e.data.style&&e.data.style.textStyle?e.data.style.textStyle:"default"]),style:(0,o.Tr)({"--numberSizeBase":u.numberSize(e)}),innerHTML:u.fixText(e.data.text)},null,14,s)]}),_:2},1032,["delay-animation"]),(0,r.bF)(d,{"delay-animation":t?.1*t:0},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["unit",e.description.style&&e.description.style.textStyle?e.description.style.textStyle:"default"]),style:(0,o.Tr)({"--unitSizeBase":u.unitSize(e)}
2),innerHTML:u.fixText(e.description.text)},null,14,a)]}),_:2},1032,["delay-animation"])])],4)}),256))],2)]}),_:1},16,["section"])}],["__scopeId","data-v-d5f8a61c"]])},92108(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(20641),o=n(90033),i=n(53751),s={class:"tabs-stage-shell"};var a=n(84794),l=n(38467),c=n(74777),u=n(6972),d=n(74256),p=n(82124),f=n(40481),h=n(66187);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b={name:"Tabs",components:{TabsSelector:f.A,GetMediaCaption:u.A,GetMediaContent:c.A,SectionText:l.A,SectionBase:a.A},props:{section:Object},data:function(){return{activeTabIndex:0,SectionModuleTypeEnum:d.jB}},computed:g(g({},(0,p.L8)("design",["colorPalette"])),{},{tabs:function(){var e;return Array.isArray(null===(e=this.section)||void 0===e?void 0:e.tabs)?this.section.tabs:[]},activeTab:function(){return this.tabs[this.activeTabIndex]||this.tabs[0]||null},activeTabKey:function(){var e;return(null===(e=this.activeTab)||void 0===e?void 0:e.tabId)||this.activeTabIndex},activeModules:function(){var e;return(0,h.F2)(null===(e=this.activeTab)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.modules)},sectionContentStyle:function(){var e;return(0,h.a_)(this.activeTab,null===(e=this.activeTab)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.modules,this.selectedImageAspectRatio)},activeTabMediaSection:function(){var e;return g(g({},this.section),{},{mediaAspectRatio:this.selectedImageAspectRatio,media:(null===(e=this.activeTab)||void 0===e?void 0:e.media)||null})},hasMedia:function(){var e;return(0,h.X2)(null===(e=this.activeTab)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.modules,d.jB.MEDIA)},hasMediaClass:function(){return this.hasMedia?"has-media":"no-media"},hasTextClass:function(){var e;return(0,h.X2)(null===(e=this.activeTab)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.modules,d.jB.TEXT)?"has-text":"no-text"},hasTextOnly:function(){var e;return(0,h.yC)(null===(e=this.activeTab)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.modules)},hasPlainImageOnly:function(){var e;return this.hasMedia&&1===this.activeModules.length&&!(null!==(e=this.activeTab)&&void 0!==e&&null!==(e=e.media)&&void 0!==e&&e.mockupSettings)},textOnlyClass:function(){return this.hasTextOnly?"text-only":null},mockupTypeClass:function(){var e;return this.hasMedia?(null===(e=this.activeTab)||void 0===e||null===(e=e.media)||void 0===e||null===(e=e.mockupSettings)||void 0===e||null===(e=e.deviceType)||void 0===e?void 0:e.toLowerCase())||"no-mockup":null},tabsInternalGridColumns:function(){var e;return(0,h.NW)(this.activeTab,null===(e=this.activeTab)||void 0===e||null===(e=e.layoutSettings)||void 0===e?void 0:e.modules)},selectedImageAspectRatio:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.mediaAspectRatio)||"16_9"},stageStyle:function(){var e,t,n,r,o={"--tabs-stage-cols":this.tabsInternalGridColumns,"--tabs-frame-radius":"".concat(null!==(e=null===(t=this.section)||void 0===t?void 0:t.cornerRadiusPx)&&void 0!==e?e:0,"px")}
2,i=this.resolveFrameBackgroundColor();return i&&(o["--tabs-frame-bg"]=i),this.hasTextOnly||this.hasPlainImageOnly?o:g(g({},o),{},{backgroundColor:i,borderRadius:"".concat(null!==(n=null===(r=this.section)||void 0===r?void 0:r.cornerRadiusPx)&&void 0!==n?n:0,"px")})}}),methods:{calculateMediaAspectRatio:function(e){var t,n,r,o=null===(t=this.activeTab)||void 0===t?void 0:t.media;if(e.type!==d.jB.MEDIA||!o||null!=o&&o.mockupSettings)return null;if(null===(n=e.gridSettings)||void 0===n||!n.mediaHeight)return"".concat(null==o?void 0:o.width," / ").concat(null==o?void 0:o.height);var i=null===(r=e.gridSettings)||void 0===r?void 0:r.mediaAspectRatio;return i?"".concat(i[0]," / ").concat(i[1]):null},moduleStyle:function(e){var t=(null==e?void 0:e.gridSettings)||{},n={gridColumn:"".concat(t.columnStart||1," / ").concat(t.columnEnd||13)};return e.type!==d.jB.MEDIA?n:g(g({},n),{},{"--mediaHeight":!this.calculateMediaAspectRatio(e)&&t.mediaHeight?"".concat(t.mediaHeight,"px"):null,"--mediaAspectRatio":this.calculateMediaAspectRatio(e)})},resolveFrameBackgroundColor:function(){var e,t,n=null===(e=this.section)||void 0===e?void 0:e.stageBackgroundColor;return n?Number.isFinite(n.paletteColorIndex)?(null===(t=this.colorPalette)||void 0===t||null===(t=t.colors)||void 0===t?void 0:t[n.paletteColorIndex])||null:n.color||null:null}}};const w=(0,n(66262).A)(b,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("TabsSelector"),d=(0,r.g2)("GetMediaContent"),p=(0,r.g2)("GetMediaCaption"),f=(0,r.g2)("SectionText"),h=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(h,{section:n.section},{default:(0,r.k6)(function(){var e;return[(0,r.Lk)("div",{class:"tabs-section-content",style:(0,o.Tr)(c.sectionContentStyle)},[(0,r.bF)(u,{tabs:c.tabs,onTabChange:t[0]||(t[0]=function(e){return l.activeTabIndex=e}),"section-bg-color":null===(e=n.section)||void 0===e||null===(e=e.backgroundSettings)||void 0===e?void 0:e.backgroundColor},null,8,["tabs","section-bg-color"]),(0,r.Lk)("div",s,[(0,r.bF)(i.Transition,{name:"tabs-content-fade"},{default:(0,r.k6)(function(){return[((0,r.uX)(),(0,r.CE)("div",{key:c.activeTabKey,class:(0,o.C4)(["tabs-stage",[c.mockupTypeClass,c.hasTextClass,c.hasMediaClass,c.textOnlyClass]]),style:(0,o.Tr)(c.stageStyle)},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(c.activeModules,function(e){var t,n;return(0,r.uX)(),(0,r.CE)(r.FK,{key:e.moduleId},[e.type===l.SectionModuleTypeEnum.MEDIA&&null!==(t=c.activeTab)&&void 0!==t&&t.media?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"tabs-module",style:(0,o.Tr)(c.moduleStyle(e))},[(0,r.bF)(d,{section:c.activeTabMediaSection},null,8,["section"]),(0,r.bF)(p,{caption:c.activeTab.media.caption},null,8,["caption"])],4)):(0,r.Q3)("v-if",!0),e.type===l.SectionModuleTypeEnum.TEXT&&null!==(n=c.activeTab)&&void 0!==n&&n.text?((0,r.uX)(),(0,r.CE)("div",{key:1,class:"tabs-module text",style:(0,o.Tr)(c.moduleStyle(e))},[(0,r.bF)(f,{"section-text":c.activeTab.text},null,8,["section-text"])],4)):(0,r.Q3)("v-if",!0)],64)}),128))],6))]}),_:1})])],4)]}),_:1},8,["section"])}],["__scopeId","data-v-654e2e4d"]])},60708(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(20641),o=n(90033),i={class:"testimonial"},s={ref:"slider",class:"ufo--slider"},a={class:"ufo--slider-track slider__track","data-glide-el":"track",style:{overflow:"hidden"}},l=["innerHTML"],c=["innerHTML"],u={key:0,class:"ufo--slider-bullets glide__bullets","data-glide-el":"controls[nav]"},d=["data-glide-dir","onClick"];var p=n(84794);var f=n(4100);const h={name:"GetColumnMediaContent",props:["columnMedia","placeholderImage"],components:{MockupContainer:n(71068).A,PlaceColumnMediaContent:f.A}};var m=n(66262);const v=(0,m.A)(h,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("MockupContainer"),c=(0,r.g2)("PlaceColumnMediaContent");return n.columnMedia.mockupSettings?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(n.columnMedia.mockupSettings.deviceType)},[(0,r.bF)(l,{media:n.columnMedia},null,8,["media"])],2)):((0,r.uX)(),(0,r.Wv)(c,{key:1,"column-media":n.columnMedia,"placeholder-image":n.placeholderImage},null,8,["column-media","placeholder-image"]))}]]);var g=n(76777),y=n(15637);const b={name:"TestimonialSection",components:{SectionBase:p.A,AnimationWrapper:y.A,GetColumnMediaContent:v},props:["section"],data:function(){return{slider:null}},mounted:function(){this.section.testimonial.length>1&&this.mountSlider(0)},unmounted:function(){this.destroySlider()},methods:{getQuote:function(e){return e.replaceAll("\n","<br />")},mountSlider:function(e){var t=this;if(this.slider)return this.$nextTick(function(){return t.slider.update({startAt:e})});this.slider=new g.A(this.$refs.slider,{slidesToShow:1,slidesToScroll:1,startAt:e,dots:".ufo--slider-bullets",activeNav:"ufo--slider-bullet-active",keyboard:!0,perView:1,animationDuration:300,focusAt:"center",dragThreshold:120}).mount()},navToSlide:function(e){return this.slider.go("=".concat(e))},destroySlider:function(){this.slider&&(this.slider.destroy(),this.slider=null)}}},w=(0,m.A)(b,[["render",function(e,t,n,p,f,h){var m=(0,r.g2)("GetColumnMediaContent"),v=(0,r.g2)("AnimationWrapper"),g=(0,r.g2)("SectionBase");return(0,r.uX)(),(0,r.Wv)(g,(0,r.v6)(e.$attrs,{section:n.section}),{default:(0,r.k6)(function(){return[(0,r.Lk)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.Lk)("ul",{class:(0,o.C4)(["ufo--slides carousel__slides--slider",{"is-sli
2deable":n.section.testimonial.length>1}])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.section.testimonial,function(e,t){return(0,r.uX)(),(0,r.CE)("li",{class:"ufo--slide",key:"quote-".concat(t)},[(0,r.bF)(v,null,{animationContent:(0,r.k6)(function(){var t;return[null!==(t=n.section.contentSettings)&&void 0!==t&&t.showMedia?((0,r.uX)(),(0,r.Wv)(m,{key:0,"column-media":e.media,"placeholder-image":"icon-user-picture-empty-state.svg"},null,8,["column-media"])):(0,r.Q3)("v-if",!0)]}),_:2},1024),(0,r.bF)(v,null,{animationContent:(0,r.k6)(function(){var t;return[(0,r.Lk)("div",{class:(0,o.C4)(["quote",null===(t=e.text.style)||void 0===t?void 0:t.textStyle]),innerHTML:h.getQuote(e.text.text)},null,10,l)]}),_:2},1024),(0,r.bF)(v,null,{animationContent:(0,r.k6)(function(){var t;return[(0,r.Lk)("div",{class:(0,o.C4)(["author",null===(t=e.author.style)||void 0===t?void 0:t.textStyle]),innerHTML:h.getQuote(e.author.text)},null,10,c)]}),_:2},1024)])}),128))],2)]),(0,r.bF)(v,null,{animationContent:(0,r.k6)(function(){return[n.section.testimonial.length>1?((0,r.uX)(),(0,r.CE)("div",u,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.section.testimonial,function(e,t){return(0,r.uX)(),(0,r.CE)("button",{key:t,class:"ufo--slider-bullet","data-glide-dir":"=".concat(t),onClick:function(e){return h.navToSlide(t)}},null,8,d)}),128))])):(0,r.Q3)("v-if",!0)]}),_:1})],512)])]}),_:1},16,["section"])}],["__scopeId","data-v-f3766cce"]])},45847(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(20641),o=n(90033);var i=n(4100),s=n(15637),a=n(71068),l=n(21638),c=n(93295),u=n(74256),d=n(82124);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={name:"ColumnImageHelper",components:{ThumbnailImagePreview:l.A,MockupContainer:a.A,AnimationWrapper:s.A,PlaceColumnMediaContent:i.A},props:["section","columnMedia","placeholderImage","index","totalColumns"],data:function(){return{thumbnailLayouts:c.m}},computed:h(h({},(0,d.L8)("design",["animationSettings"])),{},{activeMockupDisplayMode:function(){var e,t,n,r;return(null===(e=this.columnMedia)||void 0===e?void 0:e.mockupDisplayMode)===u.U2.LAYOUT||(null===(t=this.columnMedia)||void 0===t?void 0:t.mockupDisplayMode)===u.U2.DEVICE?this.columnMedia.mockupDisplayMode:null===(n=this.columnMedia)||void 0===n||!n.thumbnailData||null!==(r=this.columnMedia)&&void 0!==r&&r.mockupSettings?u.U2.DEVICE:u.U2.LAYOUT},supportsThumbnailLayout:function(){var e;return!(null===(e=this.columnMedia)||void 0===e||!e.thumbnailData)&&this.activeMockupDisplayMode===u.U2.LAYOUT},showSingleMockup:function(){var e;return!(null===(e=this.columnMedia)||void 0===e||!e.mockupSettings)&&this.activeMockupDisplayMode!==u.U2.LAYOUT},cornerRadiusContainerStyle:function(){var e,t;return{borderRadius:"".concat(null!==(e=null===(t=this.section)||void 0===t?void 0:t.cornerRadiusPx)&&void 0!==e?e:0,"px"),overflow:"hidden"}},animationDelay:function(){var e,t;return this.index||0===this.index?"SCALE"===(null===(e=this.animationSettings)||void 0===e?void 0:e.animationStyle)?0:"PAN_LEFT"===(null===(t=this.animationSettings)||void 0===t?void 0:t.animationStyle)?.1*(this.totalColumns-1-this.index):.1*this.index:0}})};const g=(0,n(66262).A)(v,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("ThumbnailImagePreview"),c=(0,r.g2)("MockupContainer"),u=(0,r.g2)("PlaceColumnMediaContent"),d=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(d,{"delay-animation":a.animationDelay},{animationContent:(0,r.k6)(function(){return[a.supportsThumbnailLayout?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"thumbnail-layout-preview",style:(0,o.Tr)(a.cornerRadiusContainerStyle)},[(0,r.bF)(l,{"thumbnail-data":n.columnMedia.thumbnailData,layouts:s.thumbnailLayouts,"thumbnail-size":"section",project:e.$store.state.project,interactive:!1,"show-helper
2-text-override":!1},null,8,["thumbnail-data","layouts","project"])],4)):a.showSingleMockup?((0,r.uX)(),(0,r.CE)("div",{key:1,class:"single-mockup-preview",style:(0,o.Tr)(a.cornerRadiusContainerStyle)},[(0,r.bF)(c,{media:n.columnMedia},null,8,["media"])],4)):((0,r.uX)(),(0,r.Wv)(u,{key:2,section:n.section,"column-media":n.columnMedia,"placeholder-image":n.placeholderImage},null,8,["section","column-media","placeholder-image"]))]}),_:1},8,["delay-animation"])}],["__scopeId","data-v-26a52382"]])},22044(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(20641),o=n(90033),i=["href","target"],s={class:"cta-content"},a={class:"cta-label"},l=["type"],c={class:"cta-content"},u={class:"cta-label"};var d=n(15637),p=n(82124),f=n(46335);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={name:"CtaButton",mixins:[n(63970).A],components:{AnimationWrapper:d.A,Icon:f.A},props:{section:{required:!0},formSubmitButton:{type:Boolean,required:!0,default:!1},alignment:{type:String,default:""}},methods:{handleCtaClick:function(){this.formSubmitButton||("copy-email"!==this.ctaActionType?this.ctaActionValue&&this.handleNavigation():this.copyEmailToClipboard())},handleNavigation:function(){this.ctaActionValue&&("open-resume"!==this.ctaActionType?this.ctaActionValue&&!this.ctaActionValue.includes("/p/")?this.ctaIntNavigation(this.ctaActionValue):this.navigateToProject(this.ctaActionValue):window.open(this.ctaActionValue,"_blank"))},ctaIntNavigation:function(e){var t=this.portfolio,n=t.ownDomainAddress,r=t.shortId,o=e.replace(/^\//,"");if(n&&n!==location.host)location.href="".concat(location.protocol,"//").concat(n)+(o?"/".concat(o):"");else{var i=o&&o!==r?"/".concat(r,"/").concat(o):"/".concat(r);this.$router.push(i).then(function(){window.scrollTo(0,0)})}},navigateToProject:function(e){this.$router.push(e).then(function(){window.scrollTo(0,0)})},copyEmailToClipboard:function(){var e,t=this,n=(this.ctaActionValue||"").replace(/^mailto:/i,"").trim();n&&(null!==(e=navigator)&&void 0!==e&&null!==(e=e.clipboard)&&void 0!==e&&e.writeText&&navigator.clipboard.writeText(n).catch(function(){}),this.isCopied=!0,this.copyIconTimer&&clearTimeout(this.copyIconTimer),this.copyIconTimer=setTimeout(function(){t.isCopied=!1},5e3))},urlIsOwnDomain:function(e){return this.portfolio.ownDomainAddress&&this.portfolio.ownDomainAddress===e.replace(/^https?\:\/\//i,"")}},computed:v(v(v({},(0,p.L8)("design",["ctaStyles"])),(0,p.L8)("view",["viewData"])),{},{isExternalAnchor:function(){return!this.formSubmitButton&&("copy-email"!==this.ctaActionType&&(!!this.ctaActionValue&&("open-resume"===this.ctaActionType||this.ctaActionValue.includes("http://")||this.ctaActionValue.includes("https://")||this.ctaActionValue.includes("mailto:"))))},ctaIconName:function(){return this.getCtaActionIconName({isCopied:this.isCopied})},project:function(){return this.viewData.project},portfolio:function(){return this.viewData.portfolio}}),data:function(){return{isCopied:!1,copyIconTimer:null}},beforeUnmount:function(){this.copyIconTimer&&clearTimeout(this.copyIconTimer)}};const b=(0,n(66262).A)(y,[["render",function(e,t,n,d,p,f){var h=(0,r.g2)("Icon"),m=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(m,{"is-final-section":""},{animationContent:(0,r.k6)(function(){var d,p,m,v,g,y;return[n.section.cta&&n.section.cta.show?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--cta-btn-wr",n.al
2ignment])},[f.isExternalAnchor?((0,r.uX)(),(0,r.CE)("a",{key:0,href:e.ctaActionValue,target:[f.urlIsOwnDomain(e.ctaActionValue)?"_self":"_blank"],rel:"nofollow noopener",class:(0,o.C4)(["btn","btn--cta",null===(d=e.ctaStyles)||void 0===d||null===(d=d[e.ctaType])||void 0===d?void 0:d.fillStyle,null===(p=e.ctaStyles)||void 0===p||null===(p=p[e.ctaType])||void 0===p?void 0:p.shape,null===(m=e.ctaStyles)||void 0===m||null===(m=m[e.ctaType])||void 0===m?void 0:m.size,e.ctaType])},[(0,r.Lk)("span",s,[(0,r.Lk)("span",a,(0,o.v_)(n.section.cta.title),1),e.showActionIcon?((0,r.uX)(),(0,r.Wv)(h,{key:0,class:"cta-icon","icon-name":f.ctaIconName},null,8,["icon-name"])):(0,r.Q3)("v-if",!0)])],10,i)):((0,r.uX)(),(0,r.CE)("button",{key:1,type:n.formSubmitButton?"submit":"",class:(0,o.C4)(["btn","btn--cta",null===(v=e.ctaStyles)||void 0===v||null===(v=v[e.ctaType])||void 0===v?void 0:v.fillStyle,null===(g=e.ctaStyles)||void 0===g||null===(g=g[e.ctaType])||void 0===g?void 0:g.shape,null===(y=e.ctaStyles)||void 0===y||null===(y=y[e.ctaType])||void 0===y?void 0:y.size,e.ctaType]),onClick:t[0]||(t[0]=function(e){return f.handleCtaClick()})},[(0,r.Lk)("span",c,[(0,r.Lk)("span",u,(0,o.v_)(n.section.cta.title),1),e.showActionIcon?((0,r.uX)(),(0,r.Wv)(h,{key:0,class:"cta-icon","icon-name":f.ctaIconName},null,8,["icon-name"])):(0,r.Q3)("v-if",!0)])],10,l))],2)):(0,r.Q3)("v-if",!0)]}),_:1})}]])},42896(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(20641),o=n(90033),i={key:1,class:"mockup-display"},s={class:"mockup-image"},a={class:"ufo-mockup--scroller slider-image-container"},l=["alt","fetchpriority","height","loading","src","width"];var c=n(71068),u=n(74256);const d={name:"GetGalleryMediaContent",components:{MockupContainer:c.A},props:["section","galleryItem","index","imageStyles","scrollHintPriority","scrollHintSectionKey"],data:function(){return{L:u.Bx}},methods:{imageLoaded:function(){this.$store.commit("recalculateScrollTriggers")}},computed:{galleryLayout:function(){var e;return null===(e=this.section)||void 0===e?void 0:e.layout},galleryItemClasses:function(){var e;return["gallery-item",(null===(e=this.galleryItem.media)||void 0===e||null===(e=e.mockupSettings)||void 0===e?void 0:e.deviceType)||"no-mockup"]},imageLoadingStrategy:function(){return this.galleryLayout===this.L.TILTED?null:this.shouldPrioritizeCarouselImage?"eager":"lazy"},imageFetchPriority:function(){return this.shouldPrioritizeCarouselImage?"high":null},shouldPrioritizeCarouselImage:function(){var e;if(this.galleryLayout!==this.L.CAROUSEL)return!1;var t=(null===(e=this.section)||void 0===e||null===(e=e.galleryItems)||void 0===e?void 0:e.length)||0;return t<=1||new Set([0,1,t-1,t-2].filter(function(e){return e>=0&&e<t})).has(this.index)},isImageZoomable:function(){return"MainHeader"!==this.galleryItem.type&&this.galleryLayout!==this.L.TILTED&&(!this.galleryItem.media.displayMode||this.galleryItem.media.displayMode&&"full"!==this.galleryItem.media.displayMode)&&!this.galleryItem.media.mockupSettings},getImageUrl:function(){var e,t;return(null===(e=this.galleryItem.media)||void 0===e?void 0:e.croppedImageUrl)||(null===(t=this.galleryItem.media)||void 0===t?void 0:t.url)},cornerRadiusStyle:function(){var e,t;return null!==(e=this.galleryItem.media)&&void 0!==e&&e.mockupSettings?null:{borderRadius:"".concat(null===(t=this.imageStyles)||void 0===t?void 0:t.cornerRadius,"px")}},normalizedAspectRatio:function(){var e;return null===(e=this.imageStyles)||void 0===e||!e.aspectRatio||this.galleryItem.media.mockupSettings?null:this.imageStyles.aspectRatio.replace("_","/").toLowerCase()},allowMockupScroll:function(){return this.section.type!==u.iK.GALLERY||!1!==this.section.allowScrollInMockup},showScrollHint:function(){var e,t;return this.allowMockupScroll&&(null===(e=null===(t=this.section)||void 0===t?void 0:t.hintThatMockupScrolls)||void 0===e||e)}}};const p=(0,n(66262).A)(d,[["render",function(e,t,n,c,u,d){var p,f,h,m=(0,r.g2)("MockupContainer"),v=(0,r.gN)("zoomable");return(0,r.uX)(),(0,r.CE)("div",(0,r.v6)(e.$attrs,{class:d.galleryItemClasses}),[n.galleryItem.media.mockupSettings?((0,r.uX)(),(0,r.Wv)(m,{key:0,media:n.galleryItem.media,scrollable:d.allowMockupScroll,"show-scroll-hint":d.showScrollHint,"scroll-hint-section-key":n.scrollHintSectionKey,"scroll-hint-priority":n.scrollHintPriority},null,8,["media","scrollable","show-scroll-hint","scroll-hint-section-key","scroll-hint-priority"])):((0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.bo)((0,r.Lk)("img",{ref:"img",alt:(null===(p=n.galleryItem.media)||void 0===p?void 0:p.altTag)||"Screen design displayed in a mockup",fetchpriority:d.imageFetchPriority,height:null===(f=n.galleryItem.media)||void 0===f?void 0:f.height,loading:d.imageLoadingStrategy,src:d.getImageUrl,style:(0,o.Tr)([d.cornerRadiusStyle,{"--aspect-ratio":d.normalizedAspectRatio}]),width:null===(h=n.galleryItem.media)||void 0===h?void 0:h.width,onLoad:t[0]||(t[0]=function(){return d.imageLoaded&&d.imageLoaded.apply(d,arguments)})},null,44,l),[[v,d.isImageZoomable]])])])]))],16)}]]),f=p},6972(e,t,n){"use strict";n.d(t,{A:()=>a});
2var r=n(20641),o={key:0,class:"media-caption"},i=["innerHTML"];const s={name:"GetMediaCaption",components:{AnimationWrapper:n(15637).A},props:["caption"],computed:{captionText:function(){return this.caption.includes('rel="noopener noreferrer nofollow"')?this.caption:this.caption.replace("\n","<br />").replace("<a href=",'<a rel="noopener noreferrer nofollow" href=')}}};const a=(0,n(66262).A)(s,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(c,null,{animationContent:(0,r.k6)(function(){return[n.caption&&n.caption.length&&"<p></p>"!==n.caption?((0,r.uX)(),(0,r.CE)("div",o,[(0,r.Lk)("div",{class:"text-container",innerHTML:l.captionText},null,8,i)])):(0,r.Q3)("v-if",!0)]}),_:1})}]])},74777(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(20641),o=n(90033);var i=["src","alt","width","height"],s={key:1,class:"embed"};var a=n(35270),l=n(81661),c=n(76107),u=n(74256);const d={name:"PlaceMediaContent",components:{ADPListProfile:a.A},props:["section","defaultCaption","placeholderImage"],data:function(){return{iframeAttributes:{}}},mounted:function(){this.isEmbeddedMedia&&(this.iframeAttributes=this.getIframeAttributes(this.section.media))},computed:{isZoomAvailable:function(){return this.section.type!==u.iK.MAIN_HEADER&&this.section.type!==u.iK.HERO&&(!this.section.media.displayMode||this.section.media.displayMode&&"full"!==this.section.media.displayMode)&&!this.section.media.mockupSettings},altTag:function(){return this.section.media.altTag.replace('"',""")},getImageUrl:function(){var e;if(!this.section.media.croppedImageUrl&&null!==(e=this.section.media.url)&&void 0!==e&&e.includes("/example")){if(this.section.media.url.includes("suggestion-wireframes")){if(this.section.media.mockupSettings&&(this.section.media.mockupSettings.deviceType===l.w7.LAPTOP||this.section.media.mockupSettings.deviceType===l.w7.DESKTOP))return"/example_project_images/v2/suggestion-wireframes-desktop.png"}else if(this.section.media.url.includes("gallery-sample-tall")){if(this.section.media.mockupSettings&&(this.section.media.mockupSettings.deviceType===l.w7.LAPTOP||this.section.media.mockupSettings.deviceType===l.w7.DESKTOP))return this.section.media.url.replace("tall","desktop").replace("jpg","png");if(this.section.media.mockupSettings&&this.section.media.mockupSettings.deviceType===l.w7.TABLET)return this.section.media.url.replace("tall","tablet").replace("jpg","png")}return this.section.media.url}return this.section.media.croppedImageUrl?this.section.media.croppedImageUrl:this.section.media.url},isEmbeddedMedia:function(){return"Video"===this.section.media.type||"Prototype"===this.section.media.type||"Media"===this.section.media.type},cornerRadiusStyle:function(){var e,t,n,r,o,i,s=this.section.type===u.iK.GALLERY||this.section.type===u.iK.COLUMNS?null===(e=this.section)||void 0===e?void 0:e.cornerRadiusPx:null!==(t=null!==(n=null===(r=this.section)||void 0===r||null===(r=r.media)||void 0===r?void 0:r.cornerRadiusPx)&&void 0!==n?n:null===(o=this.section)||void 0===o?void 0:o.cornerRadiusPx)&&void 0!==t?t:0;return null!==(i=this.section.media)&&void 0!==i&&i.mockupSettings||!s||0===s?null:{borderRadius:"".concat(s,"px")}}},methods:{imageLoaded:function(){this.$store.commit("recalculateScrollTriggers")},forcedAspectRatio:function(){var e;return!(null===(e=this.section)||void 0===e||!e.mediaAspectRatio)},getIframeAttributes:function(e){return(0,c.yp)(e)}}};var p=n(66262);const f=(0,p.A)(d,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("ADPListProfile"),d=(0,r.gN)("zoomable");return"Image"===n.section.media.type?(0,r.bo)(((0,r.uX)(),(0,r.CE)("img",{key:0,ref:"img",onLoad:t[0]||(t[0]=function(){return c.imageLoaded&&c.imageLoaded.apply(c,arguments)}),loading:"lazy",class:(0,o.C4)(c.forcedAspectRatio?"aspect-ratio-".concat(n.section.mediaAspectRatio):null),style:(0,o.Tr)(c.cornerRadiusStyle),src:c.getImageUrl,alt:n.section.media.altTag?c.altTag:n.defaultCaption,width:n.section.media.width,height:n.section.media.height},null,46,i)),[[d,c.isZoomAvailable]]):c.isEmbeddedMedia&&n.section.media.url?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("iframe",(0,r.v6)(l.iframeAttributes,{height:"100%",loading:"lazy",allowTransparency:"true",allowfullscreen:"false"}),null,16)])):"ADPList"===n.section.media.type?((0,r.uX)(),(0,r.Wv)(u,{key:2,media:n.section.media,section:n.section},null,8,["media","section"])):(0,r.Q3)("v-if",!0)}]]),h=f;var m=n(15637),v=n(71068),g=n(21638),y=n(93295);const b={name:"GetMediaContent",components:{ThumbnailImagePreview:g.A,MockupContainer:v.A,AnimationWrapper:m.A,PlaceMediaContent:h},props:["section","defaultCaption","placeholderImage"],data:function(){return{thumbnailLayouts:y.m}}
2,computed:{activeMockupDisplayMode:function(){var e,t,n,r;return(null===(e=this.section)||void 0===e||null===(e=e.media)||void 0===e?void 0:e.mockupDisplayMode)===u.U2.LAYOUT||(null===(t=this.section)||void 0===t||null===(t=t.media)||void 0===t?void 0:t.mockupDisplayMode)===u.U2.DEVICE?this.section.media.mockupDisplayMode:null===(n=this.section)||void 0===n||null===(n=n.media)||void 0===n||!n.thumbnailData||null!==(r=this.section)&&void 0!==r&&null!==(r=r.media)&&void 0!==r&&r.mockupSettings?u.U2.DEVICE:u.U2.LAYOUT},supportsThumbnailLayout:function(){return"Image"===this.section.media.type&&!!this.section.media.thumbnailData&&this.activeMockupDisplayMode===u.U2.LAYOUT&&(this.section.type===u.iK.MEDIA||this.section.type===u.iK.TEXT_AND_MEDIA)},showSingleMockup:function(){return"Image"===this.section.media.type&&!!this.section.media.mockupSettings&&this.activeMockupDisplayMode!==u.U2.LAYOUT},cornerRadiusContainerStyle:function(){var e,t;return{borderRadius:"".concat(null!==(e=null===(t=this.section)||void 0===t||null===(t=t.media)||void 0===t?void 0:t.cornerRadiusPx)&&void 0!==e?e:0,"px"),overflow:"hidden"}},allowMockupScroll:function(){return this.section.type!==u.iK.GALLERY&&this.section.type!==u.iK.TABS||!1!==this.section.allowScrollInMockup}}},w=(0,p.A)(b,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("ThumbnailImagePreview"),c=(0,r.g2)("MockupContainer"),u=(0,r.g2)("PlaceMediaContent"),d=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(d,null,{animationContent:(0,r.k6)(function(){return[a.supportsThumbnailLayout?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"thumbnail-layout-preview",style:(0,o.Tr)(a.cornerRadiusContainerStyle)},[(0,r.bF)(l,{"thumbnail-data":n.section.media.thumbnailData,layouts:s.thumbnailLayouts,"thumbnail-size":"section",project:e.$store.state.project,interactive:!1,"show-helper-text-override":!1},null,8,["thumbnail-data","layouts","project"])],4)):a.showSingleMockup?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)([n.section.media.mockupSettings.mockupType,"single-mockup-preview"]),style:(0,o.Tr)(a.cornerRadiusContainerStyle)},[(0,r.bF)(c,{media:n.section.media,scrollable:a.allowMockupScroll},null,8,["media","scrollable"])],6)):((0,r.uX)(),(0,r.Wv)(u,{key:2,section:n.section,"default-caption":n.defaultCaption,"placeholder-image":n.placeholderImage},null,8,["section","default-caption","placeholder-image"]))]}),_:1})}],["__scopeId","data-v-3bf03c4e"]])},38467(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(20641),o=n(90033),i=["innerHTML"];var s=n(15637),a=n(82124);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={name:"SectionText",components:{AnimationWrapper:s.A},props:["sectionText","textIndex","totalColumns"],computed:u(u({},(0,a.L8)("design",["animationSettings"])),{},{text:function(){return this.sectionText.text.includes('rel="noopener noreferrer nofollow"')?this.sectionText.text:this.sectionText.text.replace("<a href=",'<a rel="noopener noreferrer nofollow" href=')},animationDelay:function(){var e,t;return this.textIndex||0===this.textIndex?"SCALE"===(null===(e=this.animationSettings)||void 0===e?void 0:e.animationStyle)?0:"PAN_LEFT"===(null===(t=this.animationSettings)||void 0===t?void 0:t.animationStyle)?.1*(this.totalColumns-1-this.textIndex):.1*this.textIndex:0}})};const f=(0,n(66262).A)(p,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(c,{"delay-animation":l.animationDelay},{animationContent:(0,r.k6)(function(){var e;return[(0,r.Lk)("div",{class:(0,o.C4)(["text-container","align-text-".concat((null===(e=n.sectionText.style)||void 0===e?void 0:e.textAlign)||"left")]),innerHTML:n.sectionText.text},null,10,i)]}),_:1},8,["delay-animation"])}]])},4100(e,t,n){"use strict";n.d(t,{A:()=>m});
2var r=n(20641),o=n(90033),i=["src","alt"];var s=n(76107),a=n(82124),l=n(97404);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={name:"PlaceColumnMediaContent",props:["section","columnMedia","placeholderImage"],mounted:function(){this.section&&"LogoWall"===this.section.type&&!this.$store.state.darkMode&&(this.$store.state.darkMode=(0,s.oW)(this.resolveColor("background")).l<.2)},methods:{imageLoaded:function(){this.$store.commit("recalculateScrollTriggers")}},computed:d(d({},(0,a.L8)("design",["resolveColor"])),{},{isImageZoomable:function(){return this.section&&"LogoWall"!==this.section.type},forcedAspectRatio:function(){var e;return!(null===(e=this.section)||void 0===e||!e.mediaAspectRatio)},getImageUrl:function(){var e,t=this.placeholderImage?"/example_project_images/".concat(this.placeholderImage):null;return"LogoWall"===(null===(e=this.section)||void 0===e?void 0:e.type)?(0,l.Sw)(this.columnMedia,this.$store.state.darkMode,t):this.columnMedia.croppedImageUrl||this.columnMedia.url||t},cornerRadiusStyle:function(){var e,t,n;return null!==(e=this.columnMedia)&&void 0!==e&&e.mockupSettings?null:{borderRadius:"".concat(null!==(t=null===(n=this.section)||void 0===n?void 0:n.cornerRadiusPx)&&void 0!==t?t:0,"px")}
2}})};const h=(0,n(66262).A)(f,[["render",function(e,t,n,s,a,l){var c=(0,r.gN)("zoomable");return(0,r.bo)(((0,r.uX)(),(0,r.CE)("img",{ref:"img",onLoad:t[0]||(t[0]=function(){return l.imageLoaded&&l.imageLoaded.apply(l,arguments)}),loading:"lazy",class:(0,o.C4)(l.forcedAspectRatio?"aspect-ratio-".concat(n.section.mediaAspectRatio):null),style:(0,o.Tr)(l.cornerRadiusStyle),src:l.getImageUrl,alt:n.columnMedia.altTag?n.columnMedia.altTag:"Image alt tag"},null,46,i)),[[c,l.isImageZoomable]])}]]),m=h},69870(e,t,n){"use strict";n.d(t,{A:()=>F});var r=n(20641),o=n(90033),i={class:"navbar-header"},s={key:0,class:"navbar-logo-container"},a={key:0,class:"line"},l={key:2,class:"line"},c={key:0,class:"navbar-item navbar-cta"};var u=n(2411),d=["data-text"];var p=n(34528),f=n(80596),h=n(82124);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b={name:"PortfolioNavigationItem",components:{InlineSvg:p.A},props:{page:{type:Object,default:null},index:{type:Number,default:0},buttonStyle:{type:[String,Array],default:"regular"},upperCase:{type:Boolean,default:!1},showSeparator:{type:Boolean,default:!1}},computed:g(g({},(0,h.L8)("view",["viewData"])),{},{portfolio:function(){var e;return null===(e=this.viewData)||void 0===e?void 0:e.portfolio},label:function(){var e,t=(null===(e=this.page)||void 0===e?void 0:e.name)||"";
2return this.upperCase?t.toUpperCase():t},pageVisible:function(){return!!this.page},isActive:function(){var e,t;return(null===(e=this.viewData)||void 0===e?void 0:e.activePage)===(null===(t=this.page)||void 0===t?void 0:t.shortId)}}),methods:{rootIsOwnDomain:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.ownDomainAddress)&&location.origin.includes(this.portfolio.ownDomainAddress)},closeMobileNavigation:function(){this.viewData.navOpen=!1},handleClick:function(){var e;if(this.page)if((null===(e=this.viewData)||void 0===e?void 0:e.activePage)!==this.page.shortId)switch(this.page.type){case"home":var t=this.rootIsOwnDomain()?"/":"/".concat(this.portfolio.shortId);this.$router.push(t),this.closeMobileNavigation();break;case"file":case"link":case"mailto":var n,r,o=null===(n=this.page)||void 0===n||null===(n=n.settings)||void 0===n||null===(n=n.link)||void 0===n?void 0:n.url;if(!o)return;var i="mailto"===this.page.type?"mailto:":"",s="".concat(i).concat(o);null!==(r=this.page)&&void 0!==r&&null!==(r=r.settings)&&void 0!==r&&null!==(r=r.link)&&void 0!==r&&r.openInNewTab?window.open(s,"_blank","noopener,noreferrer"):window.location.href=s;break;default:var a=this.rootIsOwnDomain()?"/p/".concat(this.page.shortId):"/p/".concat(this.portfolio.shortId,"/").concat(this.page.shortId);this.$router.push(a),this.closeMobileNavigation()}else this.closeMobileNavigation()}},data:function(){return{slashIcon:f}}};var w=n(66262);const S=(0,w.A)(b,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("InlineSvg");return a.pageVisible?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["navbar-item",{selected:a.isActive}])},[n.showSeparator?((0,r.uX)(),(0,r.Wv)(l,{key:0,class:"divider-icon",src:s.slashIcon},null,8,["src"])):(0,r.Q3)("v-if",!0),(0,r.Lk)("button",{class:(0,o.C4)(["btn",n.buttonStyle,{active:a.isActive}]),"data-text":a.label,onClick:t[0]||(t[0]=function(){return a.handleClick&&a.handleClick.apply(a,arguments)})},[(0,r.Lk)("span",null,(0,o.v_)(a.label),1)],10,d)],2)):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-5cf49b7c"]]),k=S;var _=n(44794),O=n(34473),C=n(15637),T=n(22044),A=n(61726),E=n(39809),x=n(9579),P=n(21643),I=n(57744),L=n(74256);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N={name:"PortfolioNavigationBar",mixins:[A.A,E.A,x.A,P.A,I.A],components:{PortfolioNavigationLogo:u.A,PortfolioNavigationItem:k,PortfolioNavigationSocialLinks:_.A,HamburgerToggle:O.A,AnimationWrapper:C.A,CtaButton:T.A},props:{navigation:{type:Object,default:null},hideLogo:{type:Boolean,default:!1},hideHome:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},computed:D(D(D({},(0,h.L8)("view",["viewData"])),(0,h.L8)("design",["animationSettings"])),{},{portfolio:function(){var e;return null===(e=this.viewData)||void 0===e?void 0:e.portfolio},project:function(){var e;return(null===(e=this.viewData)||void 0===e?void 0:e.project)||this.$store.state.project},isCaseStudy:function(){var e;return(null===(e=this.project)||void 0===e?void 0:e.type)===L.Q8.CASE_STUDY},usingGlobalColorStyles:function(){var e,t;return(null===(e=this.project)||void 0===e?void 0:e.type)===L.Q8.CASE_STUDY&&(null===(t=this.project)||void 0===t||null===(t=t.designSettings)||void 0===t?void 0:t.globalColorStyles)},colorPalette:function(){var e,t;return this.isCaseStudy&&!this.usingGlobalColorStyles?null===(e=this.project)||void 0===e||null===(e=e.designSettings)||void 0===e?void 0:e.colorPalette:null===(t=this.portfolio)||void 0===t||null===(t=t.designSettings)||void 0===t?void 0:t.colorPalette},theme:function(){var e;return(null===(e=this.portfolio)||void 0===e||null===(e=e.templateSettings)||void 0===e?void 0:e.theme)||""},logo:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.logo)||null},userName:function(){var e,t;return(null===(e=this.logo)||void 0===e?void 0:e.name)||(null===(t=this.viewData)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.name)||""},allPagesForNavigation:function(){var e;return(null===(e=this.viewData)||void 0===e?void 0:e.portfolioPages)||[]},socialLinksForNavigation:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.socialLinks)||[]}}),methods:{rootIsOwnDomain:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.ownDomainAddress)&&location.origin.includes(this.portfolio.ownDomainAddress)},navigateToHome:function(){var e;if(null!==(e=this.portfolio)&&void 0!==e&&e.shortId){var t=this.rootIsOwnDomain()?"/":"/".concat(this.portfolio.shortId);this.$router.push(t),this.viewData.navOpen=!1}}}},F=(0,w.A)(N,[["render",function(e,t,n,u,d,p){var f=(0,r.g2)("PortfolioNavigationLogo"),h=(0,r.g2)("HamburgerToggle"),m=(0,r.g2)("PortfolioNavigationItem"),v=(0,r.g2)("AnimationWrapper"),g=(0,r.g2)("PortfolioNavigationSocialLinks"),y=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(e.navbarClasses),style:(0,o.Tr)(e.navFrameStyle)},[(0,r.Lk)("div",i,[e.showLogo?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.bF)(f,{logo:e.resolvedLogo,"user-name":e.resolvedUserName,"logo-class":e.logoClass,onNavigateHome:p.navigateToHome}
2,null,8,["logo","user-name","logo-class","onNavigateHome"])])):(0,r.Q3)("v-if",!0),e.showHamburger?((0,r.uX)(),(0,r.Wv)(h,{key:1})):(0,r.Q3)("v-if",!0)]),(0,r.Lk)("div",{class:(0,o.C4)(["navbar-collapse",e.navOpenClass,e.noMobileClass])},[(0,r.Lk)("div",{ref:"navbarContainer",class:(0,o.C4)(["navbar-container","nav-".concat(p.theme),e.noMobileClass]),style:(0,o.Tr)(e.navItemGapStyle)},[e.showLines?((0,r.uX)(),(0,r.CE)("div",a)):(0,r.Q3)("v-if",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.filteredPages,function(t,n){var o;return(0,r.uX)(),(0,r.Wv)(v,{key:t._id||"".concat(t.shortId,"-").concat(n),"animation-style":"NONE"!==(null===(o=e.animationSettings)||void 0===o?void 0:o.animationStyle)?"FADE_IN":null,"delay-animation":.1*n,"animate-on-mount":e.$store.getters.heroIsSidebar},{animationContent:(0,r.k6)(function(){return[(0,r.bF)(m,{page:t,index:n,"button-style":e.buttonStyleClass,"upper-case":e.upperCase,"show-separator":e.showSeparator(n)},null,8,["page","index","button-style","upper-case","show-separator"])]}),_:2},1032,["animation-style","delay-animation","animate-on-mount"])}),128)),e.showSocialLinks?((0,r.uX)(),(0,r.Wv)(g,{key:1})):(0,r.Q3)("v-if",!0),e.showLines?((0,r.uX)(),(0,r.CE)("div",l)):(0,r.Q3)("v-if",!0)],6),e.showCtaButton?((0,r.uX)(),(0,r.CE)("div",c,[(0,r.bF)(y,{section:n.navigation,"form-submit-button":!1},null,8,["section"])])):(0,r.Q3)("v-if",!0)],2)],6)}],["__scopeId","data-v-4a31d60c"]])},44794(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(20641),o={key:0,class:"social-links"};var i=n(90033),s=["href","data-text"],a={key:0};const l={name:"PortfolioNavigationSocialLinkItem",props:{link:{type:Object,default:null},linkType:{type:String,default:"text"},linkStyle:{type:String,default:"simple"},upperCase:{type:Boolean,default:!1}},computed:{cleanType:function(){var e,t=((null===(e=this.link)||void 0===e?void 0:e.type)||"").toString().toLowerCase();return"x-twitter"===t?"x":t},cleanLabel:function(){var e,t=((null===(e=this.link)||void 0===e?void 0:e.type)||"").toString();
2return this.upperCase?t.toUpperCase():t}}};var c=n(66262);const u=(0,c.A)(l,[["render",function(e,t,n,o,l,c){return(0,r.uX)(),(0,r.CE)("a",{href:n.link.url,target:"_blank",rel:"nofollow noopener",class:(0,i.C4)([n.linkStyle,n.linkType,c.cleanType]),"data-text":"text"===n.linkType?c.cleanLabel:null},["text"===n.linkType?((0,r.uX)(),(0,r.CE)("span",a,(0,i.v_)(c.cleanLabel),1)):((0,r.uX)(),(0,r.CE)("i",{key:1,class:(0,i.C4)(["fa","fa-".concat(c.cleanType)])},null,2))],10,s)}]]);var d=n(15637),p=n(82124),f=n(74256);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y={name:"PortfolioNavigationSocialLinks",components:{PortfolioNavigationSocialLinkItem:u,AnimationWrapper:d.A},props:{links:{type:Array,default:null},linkType:{type:String,default:null},linkStyle:{type:String,default:null},upperCase:{type:Boolean,default:!1}},computed:v(v(v({},(0,p.L8)("view",["viewData"])),(0,p.L8)("design",["animationSettings"])),{},{portfolio:function(){var e;return null===(e=this.viewData)||void 0===e?void 0:e.portfolio},linkTypeResolved:function(){var e;if(this.linkType)return this.linkType;var t=null===(e=this.portfolio)||void 0===e||null===(e=e.portfolioNavigation)||void 0===e||null===(e=e.socialLinks)||void 0===e?void 0:e.type;return(null==t?void 0:t.toLowerCase())===f.tD.ICON?"icon":"text"},linkStyleResolved:function(){var e;if(this.linkStyle)return this.linkStyle;var t=null===(e=this.portfolio)||void 0===e||null===(e=e.portfolioNavigation)||void 0===e||null===(e=e.socialLinks)||void 0===e?void 0:e.style;return t===f.UE.BOX_SHARP?"box-sharp":t===f.UE.BOX_ROUNDED?"box-rounded":t===f.UE.BOX_PILL?"box-pill":t===f.UE.BOX_PILL_FILL?"box-pill-fill":t===f.UE.UNDERLINE_REGULAR?"underline-regular":"simple"},upperCaseResolved:function(){var e;return!!this.upperCase||!(null===(e=this.portfolio)||void 0===e||null===(e=e.portfolioNavigation)||void 0===e||null===(e=e.menu)||void 0===e||!e.upperCase)}
2,linksResolved:function(){var e;return Array.isArray(this.links)?this.links:(null===(e=this.portfolio)||void 0===e?void 0:e.socialLinks)||[]},filteredLinks:function(){return this.linksResolved.filter(function(e){return null==e?void 0:e.url})},hasLinks:function(){return this.filteredLinks.length>0}})},b=(0,c.A)(y,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("PortfolioNavigationSocialLinkItem"),c=(0,r.g2)("AnimationWrapper");return a.hasLinks?((0,r.uX)(),(0,r.CE)("div",o,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.filteredLinks,function(t,n){var o;return(0,r.uX)(),(0,r.Wv)(c,{key:t._id||"".concat(t.type,"-").concat(n),"animation-style":"NONE"!==(null===(o=e.animationSettings)||void 0===o?void 0:o.animationStyle)?"FADE_IN":null,"delay-animation":.6+.1*n},{animationContent:(0,r.k6)(function(){return[(0,r.bF)(l,{link:t,"link-type":a.linkTypeResolved,"link-style":a.linkStyleResolved,"upper-case":a.upperCaseResolved},null,8,["link","link-type","link-style","upper-case"])]}),_:2},1032,["animation-style","delay-animation"])}),128))])):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-16b67170"]])},54953(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(90033);var i=n(74777),s=n(6972),a=n(74256);const l={name:"Media",props:{section:Object,placeholderImage:{String,default:"empty-big-image.jpg"}},components:{GetMediaContent:i.A,GetMediaCaption:s.A},computed:{mediaDisplayModeClass:function(){var e,t;return(null===(e=this.section)||void 0===e?void 0:e.type)!==a.iK.HERO?null:(null===(t=this.section)||void 0===t||null===(t=t.media)||void 0===t?void 0:t.displayMode)||null},mediaDisplayModeVars:function(){var e,t;if((null===(e=this.section)||void 0===e?void 0:e.type)!==a.iK.HERO)return null;var n=null===(t=this.section)||void 0===t||null===(t=t.media)||void 0===t?void 0:t.displayMode;if(!n)return null;var r=n.match(/^frame_offset_(\d+)$/);return r?{"--imgFrameOffset":"".concat(r[1],"px")}:null}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("GetMediaContent"),c=(0,r.g2)("GetMediaCaption");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["media-container",a.mediaDisplayModeClass]),style:(0,o.Tr)(a.mediaDisplayModeVars)},[(0,r.bF)(l,{section:n.section,"placeholder-image":n.placeholderImage},null,8,["section","placeholder-image"]),(0,r.bF)(c,{caption:n.section.media.caption},null,8,["caption"])],6)}]])},25973(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(20641),o=n(90033);var i=n(38467),s=n(22044),a=n(69870),l=n(44794),c=n(74256),u=n(82124),d=n(84833);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const v={name:"Text",props:{section:{type:Object,required:!0},maxRenderedTextHeight:{type:Number,default:null}},components:{GetSectionText:i.A,CtaButton:s.A,PortfolioNavigationBar:a.A,PortfolioNavigationSocialLinks:l.A,SocialIcon:d.A},methods:{showCta:function(){var e;return(null===(e=this.section.cta)||void 0===e?void 0:e.show)&&this.section.type!==c.iK.CONTACT_FORM},textAlign:function(){return this.section.text.style&&this.section.text.style.textAlign?"push-to-"+this.section.text.style.textAlign:""}},computed:h(h({},(0,u.L8)("view",["viewData"])),{},{portfolio:function(){var e;return null===(e=this.viewData)||void 0===e?void 0:e.portfolio},navigation:function(){var e;return(null===(e=this.portfolio)||void 0===e?void 0:e.portfolioNavigation)||null},showInlineNavigation:function(){var e;return this.section.type===c.iK.HERO&&(null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.position)===c.ze.UNDER_TEXT},showLegacyInlineSocialLinks:function(){var e,t;if(this.showHeroSocialIcons)return!1;if(this.section.type!==c.iK.HERO)return!1;if(!this.navigation)return!1;if((null===(e=this.navigation)||void 0===e||null===(e=e.socialLinks)||void 0===e?void 0:e.position)!==c.ji.INLINE_BELOW_TEXT)return!1;var n=(null===(t=this.portfolio)||void 0===t?void 0:t.socialLinks)||[];return Array.isArray(n)&&n.length>0},socialIconsConfig:function(){var e;return null===(e=this.portfolio)||void 0===e||null===(e=e.templateSettings)||void 0===e?void 0:e.socialIconStyle},socialIcons:function(){var e;return null===(e=this.section.socialIcons)||void 0===e?void 0:e.filter(function(e){return!(null==e||!e.url||null==e||!e.type)})},showHeroSocialIcons:function(){return(this.section.type===c.iK.HERO||this.section.type===c.iK.FOOTER)&&this.socialIcons.length>0},showHeroActionsRow:function(){var e;return this.showHeroSocialIcons||!(null===(e=this.section)||void 0===e||null===(e=e.cta)||void 0===e||!e.show)},heroActionsAlignClass:function(){var e,t=(null===(e=this.section)||void 0===e||null===(e=e.text)||void 0===e||null===(e=e.style)||void 0===e?void 0:e.textAlign)||"left";return"align-".concat(t)},renderedHeightStyle:function(){return null===this.maxRenderedTextHeight||void 0===this.maxRenderedTextHeight?null:{maxHeight:"".concat(this.maxRenderedTextHeight,"px"),overflow:"hidden"}},inlineSocialAlignClass:function(){var e,t=(null===(e=this.section)||void 0===e||null===(e=e.styleSettings)||void 0===e||null===(e=e.boxAlign)||void 0===e||null===(e=e.split("-"))||void 0===e?void 0:e[0])||"left";return"align-".concat(t)}})};const g=(0,n(66262).A)(v,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("GetSectionText"),c=(0,r.g2)("CtaButton"),u=(0,r.g2)("SocialIcon"),d=(0,r.g2)("PortfolioNavigationBar"),p=(0,r.g2)("PortfolioNavigationSocialLinks");return(0,r.uX)(),(0,r.CE)(r.FK,null,[a.renderedHeightStyle?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"sidebar-hero-rendered-text",style:(0,o.Tr)(a.renderedHeightStyle)},[(0,r.bF)(l,{"section-text":n.section.text},null,8,["section-text"])],4)):((0,r.uX)(),(0,r.Wv)(l,{key:1,"section-text":n.section.text},null,8,["section-text"])),a.showHeroActionsRow?((0,r.uX)(),(0,r.CE)("div",{key:2,class:(0,o.C4)(["actions-row",a.heroActionsAlignClass])},[a.showCta()?((0,r.uX)(),(0,r.Wv)(c,{key:0,"form-submit-button":!1,section:n.section,alignment:a.textAlign()},null,8,["section","alignment"])):(0,r.Q3)("v-if",!0),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.socialIcons,function(e){return(0,r.uX)(),(0,r.Wv)(u,{key:e.type,link:e,"fill-type":a.socialIconsConfig.fillType,"corner-radius":a.socialIconsConfig.cornerRadius,"outline-weight":a.socialIconsConfig.outlineWeight},null,8,["link","fill-type","corner-radius","outline-weight"])}),128))],2)):(0,r.Q3)("v-if",!0),a.showInlineNavigation?((0,r.uX)(),(0,r.Wv)(d,{key:3,class:"navbar-inline",navigation:a.navigation,inl
2ine:"","hide-logo":"","hide-home":""},null,8,["navigation"])):(0,r.Q3)("v-if",!0),a.showLegacyInlineSocialLinks?((0,r.uX)(),(0,r.Wv)(p,{key:4,class:(0,o.C4)(["navbar-inline",a.inlineSocialAlignClass])},null,8,["class"])):(0,r.Q3)("v-if",!0)],64)}],["__scopeId","data-v-1ca6a646"]])},81639(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(20641),o=n(90033),i=["innerHTML"],s=["innerHTML"];var a=n(15637),l=n(74256);const c={name:"Title",components:{AnimationWrapper:a.A},props:["section"],computed:{resolvedTextAlign:function(){var e,t,n;return null!==(e=this.section)&&void 0!==e&&null!==(e=e.title)&&void 0!==e&&null!==(e=e.style)&&void 0!==e&&e.textAlign?this.section.title.style.textAlign:(null===(t=this.section)||void 0===t?void 0:t.type)===l.iK.MAIN_HEADER||(null===(n=this.section)||void 0===n?void 0:n.type)===l.iK.HEADER?"center":null}},methods:{fixText:function(e){return this.section[e].text.replaceAll("\n","<br/>")},sectionStyle:function(){return{textAlign:this.resolvedTextAlign}},textIsNotEmpty:function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent.trim().length>0},defaultTitleStyle:function(){return this.section.type===l.iK.MAIN_HEADER?"h1":"default--h2"},defaultSubtitleStyle:function(){return this.section.type===l.iK.MAIN_HEADER?"h2":"default--h4"}}};const u=(0,n(66262).A)(c,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["text-container",c.resolvedTextAlign])},[(0,r.bF)(u,{"is-final-section":""},{animationContent:(0,r.k6)(function(){var e,t,a;return[c.textIsNotEmpty(n.section.title.text)?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["text",null!==(e=n.section.title.style)&&void 0!==e&&e.textStyle?n.section.title.style.textStyle:c.defaultTitleStyle()]),style:(0,o.Tr)(c.sectionStyle()),innerHTML:c.fixText("title")},null,14,i)):(0,r.Q3)("v-if",!0),n.section.subtitle&&c.textIsNotEmpty(null===(t=n.section.subtitle)||void 0===t?void 0:t.text)?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["text",null!==(a=n.section.subtitle.style)&&void 0!==a&&a.textStyle?n.section.subtitle.style.textStyle:c.defaultSubtitleStyle()]),style:(0,o.Tr)(c.sectionStyle()),innerHTML:c.fixText("subtitle")},null,14,s)):(0,r.Q3)("v-if",!0)]}),_:1})],2)}]])},76971(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(20641),o=n(90033),i={class:"gallery-layout-module gallery-layout-module--tilted"},s={class:"tilted-gallery"};var a=n(42896),l=n(81661);const c={name:"ViewGalleryTiltedLegacy",components:{GetGalleryMediaContent:a.A},props:{section:{type:Object,default:null},items:{type:Array,default:function(){return[]}}},computed:{itemsToCopy:function(){var e=this.section.galleryItems.length;return e%4!=0?Math.abs(4-e%4):0},ghostGalleries:function(){return["before-one","before-two","before-three","after-one","after-two","after-three","top-one","top-two","bottom-one","bottom-two"]},galleryItemsForTilted:function(){var e=this,t=this.section.galleryItems.filter(function(t,n){return n<e.itemsToCopy});return 1===this.section.galleryItems.length?Array(3).fill(t).flat():t},isMobileOrTablet:function(){var e,t=null===(e=this.section.galleryItems[0])||void 0===e||null===(e=e.media)||void 0===e?void 0:e.mockupSettings;return t&&(t.deviceType===l.w7.MOBILE||t.deviceType===l.w7.TABLET)}}};const u=(0,n(66262).A)(c,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("GetGalleryMediaContent");return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",{class:(0,o.C4)(["tilted",{"mockups-in-gallery":c.isMobileOrTablet}])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.section.galleryItems,function(e,t){return(0,r.uX)(),(0,r.Wv)(u,{key:"gi_".concat(t),index:t,"gallery-item":e,"gallery-layout":n.section.layout,"image-styles":{aspectRatio:n.section.mediaAspectRatio,cornerRadius:n.section.cornerRadiusPx},section:n.section},null,8,["index","gallery-item","gallery-layout","image-styles","section"])}),128)),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(c.galleryItemsForTilted,function(e,t){return(0,r.uX)(),(0,r.Wv)(u,{key:"gi_copy_".concat(n.section.galleryItems.length+t),"gallery-item":e,"gallery-layout":n.section.layout,"image-styles":{aspectRatio:n.section.mediaAspectRatio,cornerRadius:n.section.cornerRadiusPx},section:n.section},null,8,["gallery-item","gallery-layout","image-styles","section"])}),128))],2),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(c.ghostGalleries,function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e,class:(0,o.C4)(["gallery-ghost",e,"tilted"])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.section.galleryItems,function(t,o){return(0,r.uX)(),(0,r.Wv)(u,{key:"ghost_".concat(e,"_gi_").concat(o),"gallery-item":t,"gallery-layout":n.section.layout,"image-styles":{aspectRatio:n.section.mediaAspectRatio,cornerRadius:n.section.cornerRadiusPx},section:n.section},null,8,["gallery-item","gallery-layout","image-styles","section"])}),128)),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(c.galleryItemsForTilted,function(t,o){return(0,r.uX)(),(0,r.Wv)(u,{key:"ghost_".concat(e,"_gi_copy_").concat(n.section.galleryItems.length+o),"gallery-item":t,"gallery-layout":n.section.layout,"image-styles":{aspectRatio:n.section.mediaAspectRatio,cornerRadius:n.section.cornerRadiusPx},section:n.section},null,8,["gallery-item","gallery-layout","image-styles","section"])}),128))],2)}
2),128))])])}],["__scopeId","data-v-46b41a89"]])},71125(e,t,n){"use strict";n.d(t,{A:()=>vn});var r=n(20641),o=n(90033);var i={class:"ufo--page-hero-columns"},s=["innerHTML"];var a=n(61364),l=n(4801),c=n(16280),u=n(23231),d=n(34473),p=n(89705),f=n(74256),h=n(15637),m=n(1293),v=n(19209),g=n(82124),y=n(65570);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _={name:"ThemeX",components:{TemplateHeroBackground:m.A,AnimationWrapper:h.A,ToggleGrid:p.A,HamburgerToggle:d.A,GetHeroPortfolioImage:u.A,GetHeroSocialLinks:c.A,GetHeroNavigation:l.A,GetHeroPortfolioLogo:a.A},data:function(){return{hover:null,elements:[{key:"media"},{key:"text"}],TemplateRestrictions:v.A}},beforeMount:function(){this.templateSettings.showProfilePicture||this.elements.splice(0,1),this.portfolio.templateSettings.hero.flipped&&this.elements.reverse(),this.$route.query.templatePreview||(0,y.aQ)(this.portfolio.templateSettings.hero)},computed:S(S({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},project:function(){return this.viewData.project},isHomePage:function(){return this.project.type===f.Q8.HOME},templateSettings:function(){return this.portfolio.templateSettings},displayHero:function(){return window.location.pathname.includes("/templates")?!(window.location.pathname.includes("/about")||window.location.pathname.includes("/contact"))||"theme_seventeen"===this.templateSettings.theme:!window.location.pathname.includes("/p/")&&!window.location.pathname.includes("/templates")||"theme_seventeen"===this.templateSettings.theme},heroAlignment:function(){var e=[];return this.templateSettings.hero&&(this.portfolio.templateSettings.hero.flipped&&e.push("flipped"),this.portfolio.templateSettings.hero.alignment&&(this.portfolio.templateSettings.hero.alignment.vertical&&e.push(this.portfolio.templateSettings.hero.alignment.vertical),this.portfolio.templateSettings.hero.alignment.horizontal&&e.push(this.portfolio.templateSettings.hero.alignment.horizontal))),e},textBoxPosition:function(){return this.portfolio.templateSettings.hero.textBoxPosition?"text-is-".concat(this.portfolio.templateSettings.hero.textBoxPosition):null},textColumnSpan:function(){return{"--text-column-span":this.portfolio.templateSettings.hero.textColumnSpan}},textIsOnFullWidth:function(){return 12===this.$store.state.portfolio.templateSettings.hero.textColumnSpan&&!this.$store.state.portfolio.templateSettings.showProfilePicture},verticalAlignment:function(){var e;return(null===(e=this.portfolio.templateSettings)||void 0===e||null===(e=e.hero)||void 0===e||null===(e=e.alignment)||void 0===e?void 0:e.vertical)||"middle"},horizontalAlignment:function(){var e;return null===(e=this.portfolio.templateSettings.hero)||void 0===e||null===(e=e.alignment)||void 0===e?void 0:e.horizontal}}),methods:{navigationIsAbove:function(){return this.portfolio.templateSettings.navigation.type===f.m3.ABOVE},navigationIsBelow:function(){return this.portfolio.templateSettings.navigation.type===f.m3.BELOW},navigationIsInlineUnderText:function(){return this.portfolio.templateSettings.navigation.type===f.m3.INLINE_BELOW_TEXT},socialLinksAreInline:function(){return this.portfolio.templateSettings.navigation.socialLinksLocation===f.U$.INLINE_BELOW_TEXT},socialLinksAreInHero:function(){return this.portfolio.templateSettings.navigation.socialLinksLocation===f.U$.INLINE_STICK_TO_BOTTOM||this.portfolio.templateSettings.navigation.socialLinksLocation===f.U$.OFF_GRID}}};var O=n(66262);const C=(0,O.A)(_,[["render",function(e,t,n,a,l,c){var u,d,p=(0,r.g2)("ToggleGrid"),f=(0,r.g2)("GetHeroNavigation"),h=(0,r.g2)("TemplateHeroBackgroun
2d"),m=(0,r.g2)("GetHeroPortfolioImage"),v=(0,r.g2)("GetHeroPortfolioLogo"),g=(0,r.g2)("AnimationWrapper"),y=(0,r.g2)("GetHeroSocialLinks");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["grid","ufo--page-hero",{home:c.isHomePage},c.templateSettings.navigation&&!0===c.templateSettings.navigation.fill?"filled":"transparent",c.portfolio.image.displayMode?c.portfolio.image.displayMode:"theme-default"])},[(0,r.bF)(p),c.navigationIsAbove()?((0,r.uX)(),(0,r.Wv)(f,{key:0,"show-home-button":!0})):(0,r.Q3)("v-if",!0),c.displayHero?((0,r.uX)(),(0,r.Wv)(h,{key:1,section:c.templateSettings.hero},null,8,["section"])):(0,r.Q3)("v-if",!0),c.displayHero?((0,r.uX)(),(0,r.CE)(r.FK,{key:2},[(0,r.Lk)("div",{class:(0,o.C4)(["ufo--page-hero-content",!c.portfolio.templateSettings.hero||c.portfolio.templateSettings.hero&&!c.portfolio.templateSettings.hero.height?"legacy":"",c.templateSettings.showProfilePicture?"has-picture":"",c.textBoxPosition]),style:(0,o.Tr)([{height:null!==(u=c.templateSettings.hero)&&void 0!==u&&u.height?c.templateSettings.hero.height+"px":null},{"--rowSize":null!==(d=c.templateSettings.hero)&&void 0!==d&&d.height?c.templateSettings.hero.height+"px":null},c.textColumnSpan])},[(0,r.Lk)("div",i,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(l.elements,function(e){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["col","col-".concat(e.key),c.verticalAlignment,c.horizontalAlignment,{"full-w":c.textIsOnFullWidth}])},["media"===e.key&&l.TemplateRestrictions.foregroundImageAvalible(c.templateSettings.theme)?((0,r.uX)(),(0,r.Wv)(m,{key:0})):(0,r.Q3)("v-if",!0),"text"===e.key?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(["ufo--page-hero-bio","view",!c.portfolio.templateSettings.hero||c.portfolio.templateSettings.hero&&!c.portfolio.templateSettings.hero.height?"fix-h":"",{"full-w":c.textIsOnFullWidth},c.heroAlignment])},[(0,r.bF)(g,null,{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["ufo--page-hero-text",c.portfolio.templateSettings.hero&&c.portfolio.templateSettings.hero.textAlign?"align-text-"+c.portfolio.templateSettings.hero.textAlign:""])},["theme_seventeen"===c.templateSettings.theme?((0,r.uX)(),(0,r.Wv)(v,{key:0})):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{class:"ufo--text-area",innerHTML:c.portfolio.description},null,8,s)],2)]}),_:1}),c.navigationIsInlineUnderText()?((0,r.uX)(),(0,r.Wv)(f,{key:0,"show-home-button":!1})):(0,r.Q3)("v-if",!0),c.socialLinksAreInline()?((0,r.uX)(),(0,r.Wv)(y,{key:1})):(0,r.Q3)("v-if",!0)],2)):(0,r.Q3)("v-if",!0)],2)}),256))]),c.socialLinksAreInHero()?((0,r.uX)(),(0,r.Wv)(y,{key:0})):(0,r.Q3)("v-if",!0)],6),c.navigationIsBelow()?((0,r.uX)(),(0,r.Wv)(f,{key:0,"show-home-button":!0})):(0,r.Q3)("v-if",!0)],64)):(0,r.Q3)("v-if",!0)],2)}]]);var T={class:"profile-short-cv"},A={class:"profile-links"},E=["data-text"],x=["href"],P=["href"];var I=["innerHTML"],L=["innerHTML"];var j=["href"],M={key:0};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){F(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const B={name:"UserSocialLinks",components:{AnimationWrapper:h.A},methods:{getCleanType:function(e){return"x-twitter"===e.toLowerCase()?"x":this.portfolio.templateSettings.navigation.navigationItems.button.upperCase?e.toUpperCase():e},alignment:function(){return this.portfolio.templateSettings.hero&&this.portfolio.templateSettings.hero.textAlign?"align-".concat(this.portfolio.templateSettings.hero.textAlign):null}},computed:N(N({},(0,g.L8)("view",["viewData"])),{},{user:function(){return this.viewData.user},portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.portfolio.templateSettings},socialLinks:function(){return this.user.socialLinks?this.user.socialLinks:this.portfolio.socialLinks?this.portfolio.socialLinks:null},filteredSocialLinks:function(){return this.socialLinks.filter(function(e){return""!==e.url})},socialLinkStyle:function(){return this.portfolio.templateSettings.navigation.navigationItems.socialLink.style},linkIsTextType:function(){return this.portfolio.templateSettings.navigation.navigationItems.socialLink.type===f.tD.TEXT},socialLinksLocation:function(){return this.portfolio.templateSettings.navigation.socialLinksLocation}},(0,g.L8)("design",["animationSettings"]))},U=(0,O.A)(B,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("AnimationWrapper");return a.socialLinks?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["social-links",a.alignment(),a.socialLinksLocation])},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.filteredSocialLinks,function(t,n){var i;return(0,r.uX)(),(0,r.Wv)(l,{key:t,"animation-style":"NONE"!==(null===(i=e.animationSettings)||void 0===i?void 0:i.animationStyle)?"FADE_IN":null,"delay-animation":.6+.1*n},{animationContent:(0,r.k6)(function(){return[(0,r.Lk)("a",{href:t.url,target:"_blank",rel:"nofollow noopener",class:(0,o.C4)([a.socialLinkStyle,a.linkIsTextType?"text":"icon",a.getCleanType(t.type).toLowerCase()])}
2,[a.linkIsTextType?((0,r.uX)(),(0,r.CE)("span",M,(0,o.v_)(a.getCleanType(t.type)),1)):((0,r.uX)(),(0,r.CE)("i",{key:1,class:(0,o.C4)(["fa","fa-"+t.type.toLowerCase()])},null,2))],10,j)]}),_:2},1032,["animation-style","delay-animation"])}),128))],2)):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-bbe63c98"]]);function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const G={name:"UserPortfolioDescription",components:{UserSocialLinks:U,AnimationWrapper:h.A},computed:z(z({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio}}),methods:{refactorString:function(e){return e.replace("\n","<br />").replace("<a href",'<a rel="nofollow" href')},checkString:function(e){return e.includes('rel="noopener noreferrer nofollow')},scrolledDown:function(){var e=document.querySelector(".ufo--page-hero-text");e.classList.toggle("scrollable",e.scrollTop!==e.scrollHeight-e.offsetHeight)},socialLinksAreInHero:function(){return this.portfolio.templateSettings.navigation.socialLinksLocation===f.U$.INLINE_ABOVE_TEXT||this.portfolio.templateSettings.navigation.socialLinksLocation===f.U$.INLINE_BELOW_TEXT},textAlignment:function(){return this.portfolio.templateSettings.hero&&this.portfolio.templateSettings.hero.textAlign?"align-text-".concat(this.portfolio.templateSettings.hero.textAlign):null}}},X=(0,O.A)(G,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("UserSocialLinks"),c=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.Wv)(c,null,{animationContent:(0,r.k6)(function(){return[a.portfolio.description?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--page-hero-text",a.textAlignment()]),onScroll:t[0]||(t[0]=function(e){return"profile_theme_nine"===a.portfolio.templateSettings.theme?a.scrolledDown():null})},[a.checkString(a.portfolio.description)?((0,r.uX)(),(0,r.CE)("span",{key:0,innerHTML:a.portfolio.description},null,8,I)):((0,r.uX)(),(0,r.CE)("span",{key:1,innerHTML:a.refactorString(a.portfolio.description)},null,8,L))],34)):(0,r.Q3)("v-if",!0),a.socialLinksAreInHero()?((0,r.uX)(),(0,r.Wv)(l,{key:1})):(0,r.Q3)("v-if",!0)]}),_:1})}],["__scopeId","data-v-2f53b246"]]);var V={key:0,class:"ufo--page-hero-text"};function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const J={name:"UserDescription",components:{UserSocialLinks:U,AnimationWrapper:h.A},methods:{refactorString:function(e){return e.replace("\n","<br />").replace("<a href",'<a rel="nofollow" href')},socialLinksAreInHero:function(){return this.portfolio.templateSettings.navigation.socialLinksLocation===f.U$.INLINE_ABOVE_TEXT||this.portfolio.templateSettings.navigation.socialLinksLocation===f.U$.INLINE_BELOW_TEXT}},computed:Y(Y({},(0,g.L8)("view",["viewData"])),{},{user:function(){return this.viewData.user}})},Z=(0,O.A)(J,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("AnimationWrapper"),c=(0,r.g2)("UserSocialLinks");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(l,null,{animationContent:(0,r.k6)(function(){return[e.portfolio.description?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["ufo--page-hero-text",e.portfolio.templateSettings.hero&&e.portfolio.templateSettings.hero.textAlign?"align-text-"+e.portfolio.templateSettings.hero.textAlign:""]),onScroll:t[0]||(t[0]=function(t){return"profile_theme_nine"===e.portfolio.templateSettings.theme?e.scrolledDown():null})},[a.user.description?((0,r.uX)(),(0,r.CE)("div",V,(0,o.v_)(a.refactorString(a.user.description)),1)):(0,r.Q3)("v-if",!0)],34)):(0,r.Q3)("v-if",!0)]}),_:1}),(0,r.bF)(l,null,{animationContent:(0,r.k6)(function(){return[a.socialLinksAreInHero()?((0,r.uX)(),(0,r.Wv)(c,{key:0})):(0,r.Q3)("v-if",!0)]}),_:1})],64)}]]);function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?te(Object(n),!0).forEach(function(t){re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function re(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ee(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oe={name:"UserName",computed:ne(ne({},(0,g.L8)("view",["viewData"])),{},{user:function(){return this.viewData.user},portfolio:function(){return this.viewData.portfolio}}),methods:{navigateToHome:function(){this.portfolio.ownDomainAddress?this.$router.push("/"):this.$router.push("/"+this.portfolio.shortId)}}},ie=(0,O.A)(oe,[["render",function(e,t,n,i,s,a){return a.user.name?((0,r.uX)(),(0,r.CE)("div",{key:0,class:"profile-name",onClick:t[0]||(t[0]=function(e){return a.navigateToHome()}),style:{cursor:"pointer"}},(0,o.v_)(a.user.name),1)):(0,r.Q3)("v-if",!0)}]]);var se={key:0,class:"profile-position"};function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(t){ue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ae(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ae(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de={name:"UserJobTitle",computed:ce(ce({},(0,g.L8)("view",["viewData"])),{},{user:function(){return this.viewData.user}})},pe=(0,O.A)(de,[["render",function(e,t,n,i,s,a){return a.user.title?((0,r.uX)(),(0,r.CE)("div",se,(0,o.v_)(a.user.title),1)):(0,r.Q3)("v-if",!0)}]]);var fe=n(78790),he={key:0,class:"fake-cut"},me={key:1,class:"fake-cut-line"},ve=["src"],ge=["src"],ye={key:2,src:fe,class:"hero-image",width:"1080",height:"1080"};function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(e)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach(function(t){ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==be(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _e={name:"UserThemeCoverImage",components:{AnimationWrapper:h.A},computed:Se(Se({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.portfolio.templateSettings},imageLayoutIsOverflow:function(){return this.templateSettings.theme.includes("profile_theme_default")&&this.templateSettings.hero&&this.templateSettings.hero.sidebarSettings&&"overflow"===this.templateSettings.hero.sidebarSettings.imageLayout},user:function(){return this.viewData.user}})},Oe=(0,O.A)(_e,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("AnimationWrapper");return(0,r.uX)(),(0,r.CE)(r.FK,null,[a.imageLayoutIsOverflow?((0,r.uX)(),(0,r.CE)("div",he)):(0,r.Q3)("v-if",!0),a.imageLayoutIsOverflow?((0,r.uX)(),(0,r.CE)("div",me)):(0,r.Q3)("v-if",!0),a.templateSettings.showProfilePicture&&a.portfolio.image.url?((0,r.uX)(),(0,r.CE)("div",{key:2,class:(0,o.C4)(["profile-cover","profile-picture","ufo--page-hero-image",{"display-overflow":a.imageLayoutIsOverflow}])},[(0,r.bF)(l,{"delay-animation":.2},{animationContent:(0,r.k6)(function(){return[a.portfolio.image.url?((0,r.uX)(),(0,r.CE)("img",{key:0,src:a.portfolio.image.croppedImageUrl?a.portfolio.image.croppedImageUrl:a.portfolio.image.url},null,8,ve)):a.user.image.url?((0,r.uX)(),(0,r.CE)("img",{key:1,src:a.user.image.url},null,8,ge)):((0,r.uX)(),(0,r.CE)("img",ye))]}),_:1})],2)):(0,r.Q3)("v-if",!0)],64)}]]);var Ce={key:0,class:"fake-cut"},Te={key:1,class:"fake-cut-line"},Ae=["src"];function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?xe(Object(n),!0).forEach(function(t){Ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Le={name:"UserImage",computed:Pe(Pe({},(0,g.L8)("view",["viewData"])),{},{templateSettings:function(){return this.viewData.portfolio.templateSettings},user:function(){return this.viewData.user},imageLayoutIsOverflow:function(){return this.templateSettings.showProfilePicture&&this.templateSettings.theme.includes("profile_theme_default")&&this.templateSettings.hero&&this.templateSettings.hero.sidebarSettings&&"overflow"===this.templateSettings.hero.sidebarSettings.imageLayout}})},je=(0,O.A)(Le,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)(r.FK,null,[a.user.image.url&&a.imageLayoutIsOverflow?((0,r.uX)(),(0,r.CE)("div",Ce)):(0,r.Q3)("v-if",!0),a.user.image.url&&a.imageLayoutIsOverflow?((0,r.uX)(),(0,r.CE)("div",Te)):(0,r.Q3)("v-if",!0),a.templateSettings.showProfilePicture&&a.user.image.url?((0,r.uX)(),(0,r.CE)("div",{key:2,class:(0,o.C4)(["profile-picture",{"display-overflow":a.imageLayoutIsOverflow}])},[(0,r.Lk)("img",{src:a.user.image.url},null,8,Ae)],2)):(0,r.Q3)("v-if",!0)],64)}]]);function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach(function(t){Ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fe={name:"ThemeDefaultOld",components:{UserImage:je,UserThemeCoverImage:Oe,UserJobTitle:pe,UserName:ie,UserDescription:Z,UserPortfolioDescription:X},computed:Re(Re({},(0,g.L8)("view",["viewData"])),{},{portfolioPages:function(){return this.viewData.portfolioPages},portfolio:function(){return this.viewData.portfolio}}),methods:{checkSelected:function(e){return window.location.pathname.includes("/"+e.shortId)}}},Be=(0,O.A)(Fe,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("UserThemeCoverImage"),c=(0,r.g2)("UserImage"),u=(0,r.g2)("UserName"),d=(0,r.g2)("UserJobTitle"),p=(0,r.g2)("UserPortfolioDescription"),f=(0,r.g2)("UserDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[a.portfolio&&a.portfolio.image.url?((0,r.uX)(),(0,r.Wv)(l,{key:0})):((0,r.uX)(),(0,r.Wv)(c,{key:1})),(0,r.Lk)("div",T,[(0,r.bF)(u),(0,r.bF)(d),(0,r.Lk)("div",A,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.portfolioPages,function(e){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo--site-nav-button","contact"===e.type?"contact-button":"","contact"===e.type&&a.checkSelected(e)?"selected":"","file"===e.type?"resume-button":""]),"data-text":"contact"===e.type&&e.name?e.name:null},["contact"===e.type?((0,r.uX)(),(0,r.CE)("a",{key:0,href:(a.portfolio.ownDomainAddress,a.portfolio.shortId),class:(0,o.C4)(["btn",a.checkSelected(e)?"active":""])},(0,o.v_)(e.name?e.name:""),11,x)):(0,r.Q3)("v-if",!0),"file"===e.type?((0,r.uX)(),(0,r.CE)("a",{key:1,href:e.settings.link.url,target:"_blank",rel:"nofollow noopener",class:"btn"},(0,o.v_)(e.name),9,P)):(0,r.Q3)("v-if",!0)],10,E)}),256))])]),a.portfolio&&a.portfolio.description?((0,r.uX)(),(0,r.Wv)(p,{key:2})):((0,r.uX)(),(0,r.Wv)(f,{key:3}))],64)}]]);var Ue={class:"profile-short-cv"};function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?$e(Object(n),!0).forEach(function(t){We(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function We(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=He(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=He(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==He(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ge={name:"ProfileThemeDefault",components:{ToggleGrid:p.A,UserPortfolioDescription:X,UserImage:je,UserThemeCoverImage:Oe},computed:ze(ze({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio}})},Xe=(0,O.A)(Ge,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("UserThemeCoverImage"),c=(0,r.g2)("UserImage"),u=(0,r.g2)("UserPortfolioDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),s.portfolio&&s.portfolio.image.url?((0,r.uX)(),(0,r.Wv)(l,{key:0})):((0,r.uX)(),(0,r.Wv)(c,{key:1})),(0,r.Lk)("div",Ue,[s.portfolio&&s.portfolio.description?((0,r.uX)(),(0,r.Wv)(u,{key:0})):(0,r.Q3)("v-if",!0)])],64)}]]);var Ve={class:"profile-short-cv"};function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach(function(t){Qe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Je={name:"ProfileThemeCommon",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,UserDescription:Z,UserJobTitle:pe,UserName:ie,UserPortfolioDescription:X,UserImage:je,UserThemeCoverImage:Oe},computed:Ye(Ye({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio}})},Ze=(0,O.A)(Je,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("UserThemeCoverImage"),c=(0,r.g2)("UserImage"),u=(0,r.g2)("UserPortfolioDescription"),d=(0,r.g2)("UserName"),p=(0,r.g2)("UserJobTitle"),f=(0,r.g2)("UserDescription"),h=(0,r.g2)("GetHeroNavigation");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),s.portfolio&&s.portfolio.image.url?((0,r.uX)(),(0,r.Wv)(l,{key:0})):((0,r.uX)(),(0,r.Wv)(c,{key:1})),(0,r.Lk)("div",Ve,[s.portfolio&&s.portfolio.description?((0,r.uX)(),(0,r.Wv)(u,{key:0})):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.bF)(d),(0,r.bF)(p),(0,r.bF)(f)],64)),(0,r.bF)(h)])],64)}]]);var et={class:"profile-short-cv"};function tt(e){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tt(e)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?nt(Object(n),!0).forEach(function(t){ot(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ot(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const it={name:"ProfileThemeThree",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,UserImage:je,UserThemeCoverImage:Oe,UserDescription:Z,UserPortfolioDescription:X},computed:rt(rt({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},isHome:function(){return"home"===this.viewData.project.type}})},st=(0,O.A)(it,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("GetHeroNavigation"),c=(0,r.g2)("UserThemeCoverImage"),u=(0,r.g2)("UserImage"),d=(0,r.g2)("UserPortfolioDescription"),p=(0,r.g2)("UserDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),(0,r.bF)(l,{"show-home-button":!0}),s.portfolio&&s.portfolio.image.url?((0,r.uX)(),(0,r.Wv)(c,{key:0})):s.isHome?((0,r.uX)(),(0,r.Wv)(u,{key:1})):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",et,[s.portfolio&&s.portfolio.description&&s.isHome?((0,r.uX)(),(0,r.Wv)(d,{key:0})):s.isHome?((0,r.uX)(),(0,r.Wv)(p,{key:1})):(0,r.Q3)("v-if",!0)])],64)}]]);var at={class:"profile-short-cv"},lt={class:"profile-short-cv"};function ct(e){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(e)}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){pt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ct(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ft={name:"ThemeThreeOld",components:{GetHeroNavigation:l.A,UserImage:je,UserThemeCoverImage:Oe,UserJobTitle:pe,UserName:ie,UserDescription:Z,UserPortfolioDescription:X},computed:dt(dt({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.viewData.portfolio.templateSettings},isHome:function(){return"home"===this.viewData.project.type}})},ht=(0,O.A)(ft,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("GetHeroNavigation"),l=(0,r.g2)("UserThemeCoverImage"),c=(0,r.g2)("UserImage"),u=(0,r.g2)("UserName"),d=(0,r.g2)("UserJobTitle"),p=(0,r.g2)("UserPortfolioDescription"),f=(0,r.g2)("UserDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a,{"show-home-button":!0}),s.portfolio&&s.portfolio.image.url&&s.templateSettings.showProfilePicture?((0,r.uX)(),(0,r.Wv)(l,{key:0})):((0,r.uX)(),(0,r.Wv)(c,{key:1})),(0,r.Lk)("div",at,[(0,r.bF)(u),(0,r.bF)(d),(0,r.Lk)("div",lt,[s.portfolio&&s.portfolio.description&&s.isHome?((0,r.uX)(),(0,r.Wv)(p,{key:0})):s.isHome?((0,r.uX)(),(0,r.Wv)(f,{key:1})):(0,r.Q3)("v-if",!0)])])],64)}]]);var mt={class:"profile-short-cv"};function vt(e){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vt(e)}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?gt(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wt={name:"ProfileThemeFour",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,HamburgerToggle:d.A,UserPortfolioDescription:X,UserThemeCoverImage:Oe,UserDescription:Z,UserJobTitle:pe,UserImage:je},mounted:function(){window.onload=this.setScrollClass,window.onresize=this.setScrollClass},computed:yt(yt({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio}}),methods:{setScrollClass:function(){var e=document.querySelector(".ufo--page-hero-text");e.classList.toggle("scrollable",e.scrollHeight>e.clientHeight)}}},St=(0,O.A)(wt,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("HamburgerToggle"),c=(0,r.g2)("UserThemeCoverImage"),u=(0,r.g2)("UserImage"),d=(0,r.g2)("UserPortfolioDescription"),p=(0,r.g2)("UserJobTitle"),f=(0,r.g2)("UserDescription"),h=(0,r.g2)("GetHeroNavigation");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),(0,r.Lk)("div",mt,[(0,r.bF)(l),s.portfolio&&s.portfolio.image.url?((0,r.uX)(),(0,r.Wv)(c,{key:0})):((0,r.uX)(),(0,r.Wv)(u,{key:1})),s.portfolio&&s.portfolio.description?((0,r.uX)(),(0,r.Wv)(d,{key:2})):((0,r.uX)(),(0,r.CE)(r.FK,{key:3},[(0,r.bF)(u),(0,r.bF)(p),(0,r.bF)(f)],64)),(0,r.bF)(h,{"show-home-button":!0})])],64)}]]);var kt={key:0,class:"profile-hero"},_t={key:1,class:"profile-bio"};function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach(function(t){At(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function At(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ot(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Et={name:"ProfileThemeFive",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,UserPortfolioDescription:X,UserThemeCoverImage:Oe,UserName:ie},computed:Tt(Tt({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.viewData.portfolio.templateSettings},checkPath:function(){return!window.location.pathname.includes("/p/")&&!window.location.pathname.includes("/about")&&!window.location.pathname.includes("/contact")}})},xt=(0,O.A)(Et,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("UserName"),c=(0,r.g2)("UserThemeCoverImage"),u=(0,r.g2)("GetHeroNavigation"),d=(0,r.g2)("UserPortfolioDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),(0,r.bF)(l),s.checkPath?((0,r.uX)(),(0,r.CE)("div",kt,[(0,r.bF)(c)])):(0,r.Q3)("v-if",!0),(0,r.bF)(u,{"show-home-button":!0}),s.checkPath?((0,r.uX)(),(0,r.CE)("div",_t,[(0,r.bF)(d)])):(0,r.Q3)("v-if",!0)],64)}]]);var Pt={key:0,class:"profile-hero"},It={class:"profile-links"},Lt={key:1,class:"profile-bio"};function jt(e){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(e)}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Mt(Object(n),!0).forEach(function(t){Rt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nt={name:"ProfileThemeSix",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,UserPortfolioDescription:X,UserSocialLinks:U,UserThemeCoverImage:Oe,UserName:ie},computed:Dt(Dt({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.viewData.portfolio.templateSettings},checkPath:function(){return!window.location.pathname.includes("/p/")&&!window.location.pathname.includes("/about")&&!window.location.pathname.includes("/contact")}})},Ft=(0,O.A)(Nt,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("UserName"),c=(0,r.g2)("GetHeroNavigation"),u=(0,r.g2)("UserThemeCoverImage"),d=(0,r.g2)("UserSocialLinks"),p=(0,r.g2)("UserPortfolioDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),(0,r.bF)(l),(0,r.bF)(c,{"show-home-button":!0}),s.checkPath?((0,r.uX)(),(0,r.CE)("div",Pt,[s.templateSettings.showProfilePicture?((0,r.uX)(),(0,r.Wv)(u,{key:0})):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",It,[(0,r.bF)(d)])])):(0,r.Q3)("v-if",!0),s.checkPath?((0,r.uX)(),(0,r.CE)("div",Lt,[(0,r.bF)(p)])):(0,r.Q3)("v-if",!0)],64)}]]);var Bt={class:"profile-short-cv"},Ut={class:"profile-bio"};function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach(function(t){Wt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ht(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ht(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gt={name:"ProfileThemeSeven",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,UserThemeCoverImage:Oe,UserPortfolioDescription:X,UserName:ie},computed:zt(zt({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.viewData.portfolio.templateSettings},checkPath:function(){return!window.location.pathname.includes("/p/")&&!window.location.pathname.includes("/about")&&!window.location.pathname.includes("/contact")}})},Xt=(0,O.A)(Gt,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("UserName"),c=(0,r.g2)("GetHeroNavigation"),u=(0,r.g2)("UserThemeCoverImage"),d=(0,r.g2)("UserPortfolioDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),(0,r.bF)(l),(0,r.bF)(c,{"show-home-button":!0}),(0,r.Lk)("div",Bt,[s.checkPath?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[s.templateSettings.showProfilePicture?((0,r.uX)(),(0,r.Wv)(u,{key:0})):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",null,[(0,r.Lk)("div",Ut,[(0,r.bF)(d)])])],64)):(0,r.Q3)("v-if",!0)])],64)}]]);var Vt={key:0,class:"profile-hero"},Kt={class:"profile-bio"};function qt(e){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(e)}function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Yt(Object(n),!0).forEach(function(t){Jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zt={name:"ProfileThemeEight",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,UserPortfolioDescription:X,UserThemeCoverImage:Oe},computed:Qt(Qt({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.viewData.portfolio.templateSettings},checkPath:function(){return!window.location.pathname.includes("/p/")&&!window.location.pathname.includes("/about")&&!window.location.pathname.includes("/contact")}})},en=(0,O.A)(Zt,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("GetHeroNavigation"),c=(0,r.g2)("UserThemeCoverImage"),u=(0,r.g2)("UserPortfolioDescription");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),(0,r.bF)(l,{"show-home-button":!0}),s.checkPath?((0,r.uX)(),(0,r.CE)("div",Vt,[s.templateSettings.showProfilePicture?((0,r.uX)(),(0,r.Wv)(c,{key:0})):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",Kt,[(0,r.bF)(u)])])):(0,r.Q3)("v-if",!0)],64)}]]);var tn={class:"profile-hero"},nn={class:"profile-bio"};function rn(e){return rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(e)}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach(function(t){an(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function an(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ln={name:"ProfileThemeNine",components:{GetHeroNavigation:l.A,ToggleGrid:p.A,HamburgerToggle:d.A,UserPortfolioDescription:X,UserThemeCoverImage:Oe,UserName:ie},computed:sn(sn({},(0,g.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},templateSettings:function(){return this.viewData.portfolio.templateSettings}})},cn=(0,O.A)(ln,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ToggleGrid"),l=(0,r.g2)("UserName"),c=(0,r.g2)("HamburgerToggle"),u=(0,r.g2)("UserThemeCoverImage"),d=(0,r.g2)("UserPortfolioDescription"),p=(0,r.g2)("GetHeroNavigation");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.bF)(a),(0,r.bF)(l),(0,r.bF)(c),(0,r.Lk)("div",tn,[s.templateSettings.showProfilePicture?((0,r.uX)(),(0,r.Wv)(u,{key:0})):(0,r.Q3)("v-if",!0)]),(0,r.Lk)("div",nn,[(0,r.bF)(d)]),(0,r.bF)(p,{"show-home-button":!0})],64)}]]);var un=n(77726);n(88623);function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?pn(Object(n),!0).forEach(function(t){hn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=dn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mn={name:"PortfolioHeroHelper",components:{FabWrapper:un.A},data:function(){return{hover:null}},computed:fn(fn({},(0,g.L8)("view",["viewData"])),{},{getHero:function(){var e=this.viewData.portfolio.templateSettings.theme,t={profile_theme_default_old:Be,profile_theme_default:Xe,profile_theme_one:Ze,profile_theme_two:Ze,profile_theme_three:st,profile_theme_three_old:ht,profile_theme_four:St,profile_theme_five:xt,profile_theme_six:Ft,profile_theme_seven:Xt,profile_theme_eight:en,profile_theme_nine:cn};return Object.keys(t).includes(e)?t[e]:C},portfolio:function(){return this.viewData.portfolio},zIndexForHero:function(){return this.viewData.project.sections.length+3},displayHero:function(){return!window.location.pathname.includes("/p/")}
2,isReviewModeActive:function(){return this.$reviewStore.isReviewMode}})},vn=(0,O.A)(mn,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("FabWrapper");return(0,r.uX)(),(0,r.CE)("div",{onMouseenter:t[0]||(t[0]=function(e){return s.hover=-1}),onMouseleave:t[1]||(t[1]=function(e){return s.hover=null}),class:"hero-container"},[a.isReviewModeActive&&e.$reviewStore.review&&a.displayHero?((0,r.uX)(),(0,r.Wv)(l,{key:0,class:(0,o.C4)("hero"),invertedIndex:a.zIndexForHero,hovering:-1===s.hover,section:{_id:"portfolio-hero"}},null,8,["invertedIndex","hovering"])):(0,r.Q3)("v-if",!0),((0,r.uX)(),(0,r.Wv)((0,r.$y)(a.getHero)))],32)}],["__scopeId","data-v-01c7de26"]])},14711(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(90033),i=["data-label"];var s=n(73346),a=n(54478);const l={name:"CtaButton",props:{label:{type:String,default:null},type:{type:String,default:"primary"},noArrow:{type:Boolean,default:!1},hoverArrowOnNoArrow:{type:Boolean,default:!1},inlineArrow:{type:Boolean,default:!1}},components:{ArrowIcon:s.A,ButtonArrowIcon:a.A},computed:{hasHoverArrowOnNoArrow:function(){return this.hoverArrowOnNoArrow||"tertiary"===this.type&&this.noArrow},hasArrow:function(){return"inline"!==this.type&&!this.$slots.default&&(!this.noArrow||this.hasHoverArrowOnNoArrow)},hasInlineArrow:function(){return"inline"===this.type&&this.inlineArrow},arrowSize:function(){return"tertiary"===this.type?12:13}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("ButtonArrowIcon"),u=(0,r.g2)("ArrowIcon");return(0,r.uX)(),(0,r.CE)("button",{type:"button",class:(0,o.C4)(["landing-cta",[n.type,{"has-arrow":l.hasArrow,"no-arrow":n.noArrow,"hover-arrow-on-no-arrow":l.hasHoverArrowOnNoArrow}]])},[n.label?((0,r.uX)(),(0,r.CE)("span",{key:0,"data-label":n.label},(0,o.v_)(n.label),9,i)):(0,r.Q3)("v-if",!0),l.hasArrow?((0,r.uX)(),(0,r.Wv)(c,{key:1,size:l.arrowSize,variant:n.type},null,8,["size","variant"])):l.hasInlineArrow?((0,r.uX)(),(0,r.Wv)(u,{key:2,size:24,class:"inline-arrow"})):(0,r.RG)(e.$slots,"default",{key:3},void 0,!0)],2)}],["__scopeId","data-v-a1b2c9b2"]])},53637(e,t,n){"use strict";n.d(t,{A:()=>E});var r=n(20641),o=n(90033),i={class:"content"},s={class:"top-footer"},a={class:"brand"},l={class:"site-map"},c=["onClick"],u={class:"title"},d={class:"content"},p={class:"bottom-footer"},f={class:"cc c2"},h={class:"controls"},m={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},v=["fill"],g={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},y=["fill"];var b=n(6176),w=n(73346),S=n(14711),k=n(82124);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const A={name:"Footer",components:{UXfolioLogo:b.A,ArrowIcon:w.A,CtaButton:S.A},data:function(){return{showThemeToggle:!1,siteMap:[{id:1,category:"Social",expanded:!1,links:[{id:1,label:"Instagram",url:"https://www.instagram.com/uxfolio/",targetAttr:"_blank"},{id:2,label:"LinkedIn",url:"https://www.linkedin.com/company/uxfolio/",targetAttr:"_blank"},{id:3,label:"Contact us",url:"mailto:[email protected]",targetAttr:"_blank"}]},{id:2,category:"Explore",expanded:!1,links:[{id:1,label:"Examples",url:"/examples"},{id:2,label:"Pricing",url:"/pricing"},{id:3,label:"FAQs",url:"https://support.uxfol.io/",targetAttr:"_blank"},{id:4,label:"Educational partnerships",url:"/partnership-program"}]},{id:3,category:"Articles",expanded:!1,links:[{id:1,label:"UX portfolio template",url:"https://blog.uxfol.io/ux-portfolio-template/",targetAttr:"_blank"},{id:2,label:"UX designer portfolio",url:"https://blog.uxfol.io/ux-designer-portfolio/",targetAttr:"_blank"},{id:3,label:"UI designer portfolio",url:"https://blog.uxfol.io/ui-designer-portfolio/",targetAttr:"_blank"},{id:4,label:"Product design portfolio",url:"https://blog.uxfol.io/product-design-portfolio/",targetAttr:"_blank"},{id:5,label:"UX portfolio examples",url:"https://blog.uxfol.io/ux-portfolio-examples/",targetAttr:"_blank"}]},{category:"Legal",expanded:!1,links:[{id:1,label:"Terms and conditions",url:"/terms-and-conditions"},{id:2,label:"Privacy policy",url:"/privacy-policy"},{id:3,label:"Imprint",url:"/imprint"}]}]}},mounted:function(){if(this.showThemeToggle){var e=this.getTheme()||this.getMediaPreference();this.setMode(e)}else this.setMode("light-mode")},methods:{setMode:function(e){localStorage.setItem("uxfolio-user-theme",e),document.documentElement.className=e,this.viewData.publicPages.activeMode=e},getMediaPreference:function(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k-mode":"light-mode"},getTheme:function(){return localStorage.getItem("uxfolio-user-theme")},scrollTop:function(){window.scroll({top:0,left:0,behavior:"smooth"})}},computed:C(C({},(0,k.L8)("view",["viewData"])),{},{currentYear:function(){return(new Date).getFullYear()}})};const E=(0,n(66262).A)(A,[["render",function(e,t,n,b,w,S){var k=(0,r.g2)("UXfolioLogo"),_=(0,r.g2)("router-link"),O=(0,r.g2)("ArrowIcon"),C=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)("footer",null,[t[3]||(t[3]=(0,r.Lk)("div",{class:"divider"},null,-1)),(0,r.Lk)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.bF)(_,{to:"/"},{default:(0,r.k6)(function(){return[(0,r.bF)(k)]}),_:1})]),(0,r.Lk)("div",l,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(w.siteMap,function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e.id,class:(0,o.C4)(["category",{expanded:e.expanded}]),onClick:function(t){return e.expanded=!e.expanded}},[(0,r.Lk)("div",u,[(0,r.eW)((0,o.v_)(e.category)+" ",1),(0,r.bF)(O,{size:28,class:"footer-category-arrow"})]),(0,r.Lk)("nav",null,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.links,function(e){return(0,r.uX)(),(0,r.Wv)((0,r.$y)(e.targetAttr?"a":"router-link"),{key:e.id,to:e.external?null:e.url,href:e.url,target:e.targetAttr},{default:(0,r.k6)(function(){return[(0,r.eW)((0,o.v_)(e.label),1)]}),_:2},1032,["to","href","target"])}),128))])],10,c)}),128))])])]),t[4]||(t[4]=(0,r.Lk)("div",{class:"divider"},null,-1)),(0,r.Lk)("div",d,[(0,r.Lk)("div",p,[(0,r.Lk)("div",f,"© 2013 - "+(0,o.v_)(S.currentYear)+" UXfolio LLC",1),(0,r.Lk)("div",h,[w.showThemeToggle?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.bF)(C,{type:"inline",label:"Light mode",onClick:t[0]||(t[0]=function(e){return S.setMode("light-mode")}),class:(0,o.C4)({active:"light-mode"===e.viewData.publicPages.activeMode})},{default:(0,r.k6)(function(){return[((0,r.uX)(),(0,r.CE)("svg",m,[(0,r.Lk)("circle",{cx:"12.5",cy:"12.5",r:"7",stroke:"var(--color-text)",fill:"light-mode"===e.viewData.publicPages.activeMode?"var(--color-text)":"transparent"},null,8,v)]))]}),_:1},8,["class"]),(0,r.bF)(C,{type:"inline",label:"Dark mode",onClick:t[1]||(t[1]=function(e){return S.setMode("dark-mode")}),class:(0,o.C4)({active:"dark-mode"===e.viewData.publicPages.activeMode})},{default:(0,r.k6)(function(){return[((0,r.uX)(),(0,r.CE)("svg",g,[(0,r.Lk)("circle",{cx:"12.5",cy:"12.5",r:"7",stroke:"var(--color-text)",fill:"dark-mode"===e.viewData.publicPages.activeMode?"var(--color-text)":"transparent"},null,8,y)]))]}),_:1},8,["class"])],64)):(0,r.Q3)("v-if",!0),(0,r.bF)(C,{type:"inline",label:"Back to top",onClick:t[2]||(t[2]=function(e){return S.scrollTop()})},{default:(0,r.k6)(function(){return[(0,r.bF)(O,{size:16,class:"footer-back-to-top-arrow"})]}),_:1})])])])])}],["__scopeId","data-v-63b85c50"]])},6290(e,t,n){"use strict";n.d(t,{A:()=>F});var r=n(20641),o=n(90033),i={key:0,class:"alert-banner-container"},s={class:"banner-content-container"},a={class:"banner-text-container"},l={class:"info-icon"},c={class:"message"},u={key:1,class:"divider"},d={class:"content"},p={class:"logo"},f=["data-label"],h={class:"actions"};var m=n(6176);function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var y={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const b={name:"HamburgerIcon"};var w=n(66262);const S=(0,w.A)(b,[["render",function(e,t,n,o,i,s){return(0,r.uX)(),(0,r.CE)("svg",y,v(t[0]||(t[0]=[(0,r.Lk)("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"#0F0F0F"},null,-1)])))}]]);var k=n(73346),_=n(14711),O=n(30009),C=n(46335),T=n(65498),A=n(37683),E=n(82124),x=n(67208);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?I(Object(n),!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return D(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,D(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,D(d,"constructor",c),D(c,"constructor",l),l.displayName="GeneratorFunction",D(c,o,"GeneratorFunction"),D(d),D(d,o,"Generator"),D(d,r,function(){return this}),D(d,"toString",function(){return"[object Generator]"}),(M=function(){return{w:i,m:p}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function i(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},D(e,t,n,r)}function R(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const N={name:"HeaderPage",props:{referral:{type:Boolean,default:!1},comingSoon:{type:Boolean,default:!1},noArrowButtons:{type:Boolean,default:!0}},components:{Icon:C.A,UXFolioLogo:m.A,HamburgerIcon:S,ArrowIcon:k.A,CtaButton:_.A},beforeCreate:function(){(0,O.u)({link:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:!0},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,[email protected],200..800&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap"}]})},beforeMount:function(){this.comingSoon||this.getEmergencyModeSettings()},data:function(){return{navItems:[{id:1,label:"Examples",route:"/examples"},{id:2,label:"Pricing",route:"/pricing"},{id:3,label:"Blog",route:"https://blog.uxfol.io/",external:!0}],mobileNavOpen:!1,navigationScrolled:!1}},mounted:function(){window.addEventListener("scroll",this.updateNavigationBorder,{passive:!0}),this.updateNavigationBorder()},beforeUnmount:function(){window.removeEventListener("scroll",this.updateNavigationBorder)},methods:{goToSignup:function(){var e="/"===this.$route.fullPath?"/landing":this.$route.fullPath.includes("/referral")?"/referral":this.$route.fullPath.includes("/examples/")?"/examples":this.$route.fullPath,t=this.$route.params.referral_id;return(0,A.b5)("Sign up",(0,A.aV)(this.$route.path),"Header",e,{mode:this.viewData.publicPages.activeMode,referral_id:this.$route.params.referral_id,destination:"/home/onboarding"}),(0,x.XV)("/home/onboarding",{mode:this.viewData.publicPages.activeMode,referral:t,utm_source:e,utm_campaign:"header"})},goToLogin:function(){var e="/"===this.$route.fullPath?"/landing":this.$route.fullPath;return(0,A.b5)("Log in",(0,A.aV)(this.$route.path),"Header",e,{mode:this.viewData.publicPages.activeMode,destination:"/home"}),(0,x.z6)("/home")},getEmergencyModeSettings:function(){var e,t=this;return(e=M().m(function e(){var n;return M().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,T.A.get("/data/emergency");
2case 1:n=e.v,t.viewData.emergencyModeSettings=n.data,e.n=3;break;case 2:e.p=2,e.v,t.viewData.emergencyModeSettings=null;case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){R(i,r,o,s,a,"next",e)}function a(e){R(i,r,o,s,a,"throw",e)}s(void 0)})})()},navigate:function(e,t){e.preventDefault(),this.toggleMobileNav(!1),this.$router.push(t)},scrollTo:function(e,t){e.preventDefault(),this.toggleMobileNav(!1),"/"===this.$route.fullPath?this.$router.push({hash:t}):this.$router.push({name:"Index",hash:t})},toggleMobileNav:function(e){this.mobileNavOpen=void 0!==e?e:!this.mobileNavOpen},updateNavigationBorder:function(){var e=window.scrollY>4;this.navigationScrolled!==e&&(this.navigationScrolled=e)}},computed:L(L({},(0,E.L8)("view",["viewData"])),{},{emergencyModeSettings:function(){return this.viewData.emergencyModeSettings},shouldShowNavigationBorder:function(){return"/"!==this.$route.fullPath||this.navigationScrolled}})},F=(0,w.A)(N,[["render",function(e,t,n,m,v,g){var y=(0,r.g2)("Icon"),b=(0,r.g2)("UXFolioLogo"),w=(0,r.g2)("router-link"),S=(0,r.g2)("ArrowIcon"),k=(0,r.g2)("CtaButton"),_=(0,r.g2)("HamburgerIcon");return(0,r.uX)(),(0,r.CE)(r.FK,null,[g.emergencyModeSettings&&g.emergencyModeSettings.emergencyMode&&g.emergencyModeSettings.landingEmergencyBanner?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.Lk)("div",l,[(0,r.bF)(y,{"icon-name":"info"})]),(0,r.Lk)("div",c,(0,o.v_)(g.emergencyModeSettings.landingEmergencyBannerText),1)])])])):((0,r.uX)(),(0,r.CE)("div",u)),(0,r.Lk)("header",{class:(0,o.C4)({"show-border":g.shouldShowNavigationBorder})},[(0,r.Lk)("div",d,[(0,r.Lk)("div",p,[(0,r.bF)(w,{to:"/"},{default:(0,r.k6)(function(){return[(0,r.bF)(b)]}),_:1})]),n.referral||n.comingSoon?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("nav",{key:0,class:(0,o.C4)({on:v.mobileNavOpen})},[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(v.navItems,function(e){return(0,r.uX)(),(0,r.Wv)((0,r.$y)(e.external?"a":"router-link"),{key:e.id,to:e.external?null:e.route,href:e.route},{default:(0,r.k6)(function(){return[(0,r.Lk)("span",{"data-label":e.label},(0,o.v_)(e.label),9,f),(0,r.bF)(S,{size:28,class:"mobile-nav-arrow"})]}),_:2},1032,["to","href"])}),128)),(0,r.bF)(k,{type:"secondary","no-arrow":!0,"hover-arrow-on-no-arrow":!0,label:"Log in",class:"login",onClick:t[0]||(t[0]=function(e){return g.goToLogin()})})],2)),(0,r.Lk)("div",h,[n.referral?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(k,{key:0,type:"secondary","no-arrow":!0,"hover-arrow-on-no-arrow":!0,label:"Log in",class:"login",onClick:t[1]||(t[1]=function(e){return g.goToLogin()})})),(0,r.bF)(k,{id:n.referral?"signup_referral_button_nav":"signup_button_nav","no-arrow":!0,"hover-arrow-on-no-arrow":!0,label:"Sign up",onClick:t[2]||(t[2]=function(e){return g.goToSignup()})},null,8,["id"]),(0,r.bF)(k,{type:"secondary",class:"toggler",onClick:t[3]||(t[3]=function(e){return g.toggleMobileNav()})},{default:(0,r.k6)(function(){return[(0,r.bF)(_)]}),_:1})])])],2)],64)}],["__scopeId","data-v-32c54979"]])},73346(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(20641),o=n(90033);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=["width","height"];const l={name:"ArrowIcon",props:{size:{type:Number,default:18}}};const c=(0,n(66262).A)(l,[["render",function(e,t,n,s,l,c){return(0,r.uX)(),(0,r.CE)("svg",{width:n.size,height:n.size,viewBox:"0 -960 960 960",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:(0,o.Tr)("width: ".concat(n.size,"px; height: ").concat(n.size,"px;"))},i(t[0]||(t[0]=[(0,r.Lk)("path",{d:"M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z",fill:"currentColor"},null,-1)])),12,a)}]])},54478(e,t,n){"use strict";n.d(t,{A:()=>a});
2var r=n(20641),o=n(90033);const i=n.p+"src/assets/images/button-arrow.c675337e.svg",s={name:"ButtonArrowIcon",props:{size:{type:Number,default:16},variant:{type:String,default:null}},computed:{iconStyle:function(){return{width:"".concat(this.size,"px"),height:"".concat(this.size,"px"),display:"block",flexShrink:0,backgroundColor:"currentColor",WebkitMask:"url(".concat(i,") center / contain no-repeat"),mask:"url(".concat(i,") center / contain no-repeat")}}}};const a=(0,n(66262).A)(s,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("span",{class:(0,o.C4)(["button-arrow-icon",n.variant?"button-arrow-icon--".concat(n.variant):null]),"aria-hidden":"true",style:(0,o.Tr)(a.iconStyle)},null,6)}]])},6176(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(20641);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s={width:"107",height:"40",viewBox:"0 0 128 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const a={name:"UXFolioLogo"};const l=(0,n(66262).A)(a,[["render",function(e,t,n,i,a,l){return(0,r.uX)(),(0,r.CE)("svg",s,o(t[0]||(t[0]=[(0,r.Fv)('<path d="M26.7023 7.32158L24.8295 13.9386L27.2983 14.7156L27.9377 12.4441L32.2096 17.0704L0 7L20.3587 36.6846L38.15 19.4961L26.7023 7.32158ZM23.1236 29.9349L26.036 19.1049L23.5764 18.328L20.0937 31.2201L7.09256 12.1837L33.1249 20.3265L23.1236 29.9349Z" fill="#0F0F0F" data-v-29aa7ee2></path><path d="M121.313 23.4087C122.638 23.4087 123.797 23.6734 124.79 24.2027C125.801 24.732 126.586 25.4918 127.143 26.4822C127.719 27.4726 128.006 28.6678 128.006 30.068C128.006 31.451 127.719 32.6463 127.143 33.6537C126.586 34.6441 125.801 35.4039 124.79 35.9332C123.797 36.4626 122.638 36.7272 121.313 36.7272C120.006 36.7272 118.846 36.4626 117.835 35.9332C116.824 35.4039 116.031 34.6441 115.456 33.6537C114.898 32.6463 114.619 31.451 114.619 30.068C114.619 28.6678 114.898 27.4726 115.456 26.4822C116.031 25.4918 116.824 24.732 117.835 24.2027C118.846 23.6734 120.006 23.4087 121.313 23.4087ZM121.313 26.0212C120.65 26.0212 120.084 26.1748 119.613 26.4822C119.16 26.7725 118.812 27.2164 118.568 27.8141C118.323 28.4117 118.201 29.163 118.201 30.068C118.201 30.9729 118.323 31.7242 118.568 32.3219C118.812 32.9195 119.16 33.372 119.613 33.6793C120.084 33.9696 120.65 34.1147 121.313 34.1147C121.958 34.1147 122.507 33.9696 122.96 33.6793C123.431 33.372 123.788 32.9195 124.032 32.3219C124.276 31.7242 124.398 30.9729 124.398 30.068C124.398 29.163 124.276 28.4117 124.032 27.8141C123.788 27.2164 123.431 26.7725 122.96 26.4822C122.507 26.1748 121.958 26.0212 121.313 26.0212Z" fill="#0F0F0F" data-v-29aa7ee2></path><path d="M110.526 23.2763C109.777 23.2763 109.219 23.1226 108.853 22.8153C108.487 22.4908 108.304 22.0213 108.304 21.4066C108.304 20.7748 108.487 20.3052 108.853 19.9979C109.219 19.6734 109.777 19.5112 110.526 19.5112C111.276 19.5112 111.834 19.6734 112.2 19.9979C112.566 20.3052 112.749 20.7748 112.749 21.4066C112.749 22.0213 112.566 22.4908 112.2 22.8153C111.834 23.1226 111.276 23.2763 110.526 23.2763ZM112.304 25.0083V36.47H108.722V25.0083H112.304Z" fill="#0F0F0F" data-v-29aa7ee2></path><path d="M105.399 36.4718V19.5518H101.853V36.4718H105.399Z" fill="#0F0F0F" data-v-29aa7ee2></path><path d="M92.5315 23.4087C93.8562 23.4087 95.0154 23.6734 96.0089 24.2027C97.0199 24.732 97.8043 25.4918 98.3621 26.4822C98.9373 27.4726 99.2249 28.6678 99.2249 30.068C99.2249 31.451 98.9373 32.6463 98.3621 33.6537C97.8043 34.6441 97.0199 35.4039 96.0089 35.9332C95.0154 36.4626 93.8562 36.7272 92.5315 36.7272C91.2242 36.7272 90.065 36.4626 89.0541 35.9332C88.0431 35.4039 87.25 34.6441 86.6748 33.6537C86.117 32.6463 85.8381 31.451 85.8381 30.068C85.8381 28.6678 86.117 27.4726 86.6748 26.4822C87.25 25.4918 88.0431 24.732 89.0541 24.2027C90.065 23.6734 91.2242 23.4087 92.5315 23.4087ZM92.5315 26.0212C91.8691 26.0212 91.3026 26.1748 90.832 26.4822C90.3788 26.7725 90.0302 27.2164 89.7861 27.8141C89.5421 28.4117 89.4201 29.163 89.4201 30.068C89.4201 30.9729 89.5421 31.7242 89.7861 32.3219C90.0302 32.9195 90.3788 33.372 90.832 33.6793C91.3026 33.9696 91.8691 34.1147 92.5315 34.1147C93.1764 34.1147 93.7255 33.9696 94.1787 33.6793C94.6493 33.372 95.0067 32.9195 95.2507 32.3219C95.4947 31.7242 95.6167 30.9729 95.6167 30.068C95.6167 29.163 95.4947 28.4117 95.2507 27.8141C95.0067 27.2164 94.6493 26.7725 94.1787 26.4822C93.7255 26.1748 93.1764 26.0212 92.5315 26.0212Z" fill="#0F0F0F" data-v-29aa7ee2></path><path d="M81.9696 19.5518C82.4287 19.5518 82.6374 19.5518 83.3052 19.6744C83.9731 19.797 84.3487 19.7918 86.1018 20.9367L84.5731 23.1446C84.0652 22.8219 84.0669 22.8184 83.7569 22.6973C83.0568 22.4239 82.7034 22.4587 82.3716 22.4587C81.6922 22.4587 81.1569 22.7522 80.792 23.0996C80.3275 23.5411 80.3516 24.2101 80.3516 24.9272V27.0372L80.347 27.7498V36.5762H76.7655V24.1887C76.7655 23.4716 76.8879 22.7881 77.1316 22.2424C77.3752 21.6956 77.7149 21.132 78.1508 20.7734C78.5866 20.4148 79.1002 20.0383 79.6938 19.8669C80.3035 19.6786 80.5922 19.6334 80.9261 19.5926C81.26 19.5518 81.5104 19.5518 81.9696 19.5518ZM84.474 26.5699L82.7221 29.1818H72.7451L74.4904 26.5699L84.474 26.5699Z" fill="#0F0F0F" data-v-29aa7ee2></path><path d="M74.1557 36.5371H69.8677L66.1026 30.5438L62.3899 36.5371H58.2588L64.194 28.0081L
258.6771 19.6328H62.9128L66.3903 25.3188L69.92 19.6328H73.8419L68.2989 27.8801L74.1557 36.5371Z" fill="#0F0F0F" data-v-29aa7ee2></path><path d="M56.4089 19.6328V29.8173C56.4089 32.1224 55.7814 33.8555 54.5264 35.0166C53.2714 36.1607 51.4411 36.7327 49.0357 36.7327C46.6302 36.7327 44.8 36.1607 43.545 35.0166C42.29 33.8555 41.6625 32.1224 41.6625 29.8173V19.6328H45.2706V29.6636C45.2706 31.0808 45.5757 31.9069 46.1858 32.5899C46.8133 33.2729 47.7633 33.6144 49.0357 33.6144C50.3081 33.6144 51.2494 33.2729 51.8595 32.5899C52.4696 31.9069 52.7746 31.0808 52.7746 29.6636V19.6328H56.4089Z" fill="#0F0F0F" data-v-29aa7ee2></path>',8)])))}],["__scopeId","data-v-29aa7ee2"]])},81822(e,t,n){"use strict";n.d(t,{A:()=>jt});var r=n(20641),o=n(53751),i={key:0,class:"review-wrapper"};var s=n(16259),a=n(85041),l=n(90033);function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d={key:0,class:"tour-modal-wrapper"},p={class:"text-container"},f={class:"title-row"},h={class:"description-row"},m={class:"pwt-actions"},v={class:"page-number"},g={class:"buttons"},y={key:0,class:"example-review-fabs"},b={key:1,class:"example-overview"};var w=n(5412),S=n(46335);const k={name:"TourModal",components:{Fab:n(8187).A,CtaButton:w.A,Icon:S.A},data:function(){return{step:0,steps:[{title:"Give general feedback",description:"Write an overview of the whole portfolio and offer general feedback."},{title:"Add comments & reactions",description:"Give feedback to specific sections by adding comments."},{title:"Share your feedback",description:"When your ready, check and submit your review."}]}},mounted:function(){this.$cookies.get("reviewTour")||(this.showTour=!0)},methods:{closeTips:function(){this.$cookies.set("reviewTour",JSON.stringify({reviewTourDone:!0})),this.showTour=!1},nextTip:function(){this.step<2?this.step+=1:this.closeTips()},back:function(){this.step>0&&(this.step-=1)}},computed:{showTour:{get:function(){return this.$reviewStore.showTour&&this.$reviewStore.displayUI},set:function(e){this.$reviewStore.showTour=e}}}};var _=n(66262);const O=(0,_.A)(k,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("CtaButton"),u=(0,r.g2)("Icon"),w=(0,r.g2)("Fab");return s.showTour?((0,r.uX)(),(0,r.CE)("div",d,[(0,r.Lk)("div",{class:(0,l.C4)(["overlay","step-"+i.step])},null,2),(0,r.Lk)("div",{class:(0,l.C4)(["tour-container",["step-"+i.step]])},[(0,r.Lk)("div",p,[(0,r.Lk)("div",f,(0,l.v_)(i.steps[i.step].title),1),(0,r.Lk)("div",h,(0,l.v_)(i.steps[i.step].description),1)]),(0,r.Lk)("div",m,[(0,r.Lk)("div",v,(0,l.v_)(i.step+1)+" of 3",1),(0,r.Lk)("div",g,[0===i.step?((0,r.uX)(),(0,r.Wv)(a,{key:0,"dark-scheme":"",type:"secondary",size:"small",onClick:t[0]||(t[0]=function(e){return s.closeTips()})},{default:(0,r.k6)(function(){return c(t[3]||(t[3]=[(0,r.eW)("Skip tour",-1)]))}),_:1})):(0,r.Q3)("v-if",!0),i.step>0?((0,r.uX)(),(0,r.Wv)(a,{key:1,"dark-scheme":"",type:"secondary",size:"small",onClick:t[1]||(t[1]=function(e){return s.back()})},{default:(0,r.k6)(function(){return c(t[4]||(t[4]=[(0,r.eW)("Back",-1)]))}),_:1})):(0,r.Q3)("v-if",!0),(0,r.bF)(a,{"dark-scheme":"",onClick:t[2]||(t[2]=function(e){return s.nextTip()}),size:"small"},{default:(0,r.k6)(function(){return[(0,r.eW)((0,l.v_)(2===i.step?"Got it":"Next"),1)]}),_:1})])]),(0,r.bF)(u,{class:"review-arrow","icon-name":"tooltip-arrow"})],2),1===i.step?((0,r.uX)(),(0,r.CE)("div",y,[(0,r.bF)(w,{icon:"reaction"}),(0,r.bF)(w,{icon:"comment"})])):(0,r.Q3)("v-if",!0),0===i.step?((0,r.uX)(),(0,r.CE)("div",b,c(t[5]||(t[5]=[(0,r.Lk)("div",null,"Overview",-1)])))):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-35656cbc"]]);var C=n(65498),T=n(74256),A=n(4472),E=n(76647);function x(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var I={class:"modal-body-container"},L={class:"illustration"},j={class:"link-wrapper"};var M=n(79271),D=n(55445),R=n(8851),N=n(13124);const F={name:"OverviewSuccessModal",props:["show","close"],components:{CtaButton:w.A,Icon:S.A,ModalFooter:N.A,ModalHeader:R.A,ModalBody:D.A,ModalWrapper:M.A},methods:{openEditor:function(){window.location.href="/home"}}},B=(0,_.A)(F,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("Icon"),l=(0,r.g2)("CtaButton"),c=(0,r.g2)("ModalBody"),u=(0,r.g2)("ModalWrapper");
2return(0,r.uX)(),(0,r.Wv)(u,{show:n.show,onClose:n.close,"modal-size":"small","dark-scheme":"",disableOutsideClick:""},{"modal-body":(0,r.k6)(function(){return[(0,r.bF)(c,null,{default:(0,r.k6)(function(){return[(0,r.Lk)("div",I,[(0,r.Lk)("div",L,[(0,r.bF)(a,{"icon-name":"check"})]),t[2]||(t[2]=(0,r.Lk)("div",{class:"text-wrapper"},[(0,r.Lk)("div",{class:"title-text"},"Thank you!"),(0,r.Lk)("div",{class:"subtitle-text"},"Your review has been submitted.")],-1)),(0,r.Lk)("div",j,[t[1]||(t[1]=(0,r.Lk)("div",null,"Would you like to get a review?",-1)),(0,r.bF)(l,{"dark-scheme":"",onClick:s.openEditor,type:"link"},{default:(0,r.k6)(function(){return x(t[0]||(t[0]=[(0,r.eW)("Open the editor",-1)]))}),_:1},8,["onClick"])])])]}),_:1})]}),_:1},8,["show","onClose"])}],["__scopeId","data-v-7c42084d"]]),U=n.p+"src/assets/images/review-welcome.c908e499.png";function H(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var z={class:"review-welcome-modal-container"},W={class:"footer-wrapper"},G={class:"text"},X={class:"button-container"};function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=V(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==V(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q={key:0,class:"modal-wrapper"};const Y={name:"modal-frame",inheritAttrs:!1,props:{show:{default:!1,type:Boolean},modalSize:{default:"mid",type:String},customClass:{default:null,type:String},light:{default:!1,type:Boolean},disableOutsideClick:{default:!1,type:Boolean}},methods:{init:function(){this.$emit("init",!0)},closeModal:function(){this.disableOutsideClick||this.$emit("close",!0)}}},Q=(0,_.A)(Y,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.Wv)(o.Transition,{name:"modal",onEnter:a.init,appear:""},{default:(0,r.k6)(function(){return[n.show?((0,r.uX)(),(0,r.CE)("div",q,[(0,r.Lk)("div",{class:"modal-mask",onClick:t[0]||(t[0]=function(e){return a.closeModal()})}),(0,r.Lk)("div",{class:(0,l.C4)([{light:n.light},"modal-container","modal-container--".concat(n.modalSize),K({},"modal-container--".concat(n.customClass),!!n.customClass)])},[(0,r.RG)(e.$slots,"default")],2)])):(0,r.Q3)("v-if",!0)]}),_:3},8,["onEnter"])}]]),J=n.p+"src/assets/images/new-message.429720a8.png";function Z(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var te={class:"header-container"},ne={class:"subheader"},re={key:"transferError",class:"alert"},oe={class:"button-container"};var ie=n(97073),se=n(16485),ae=n(82124),le=n(67208);function ce(e){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(e)}function ue(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return de(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(de(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,de(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,de(d,"constructor",c),de(c,"constructor",l),l.displayName="GeneratorFunction",de(c,o,"GeneratorFunction"),de(d),de(d,o,"Generator"),de(d,r,function(){return this}),de(d,"toString",function(){return"[object Generator]"}),(ue=function(){return{w:i,m:p}})()}function de(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}de=function(e,t,n,r){function i(t,n){de(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},de(e,t,n,r)}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach(function(t){he(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function he(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const ve={name:"FollowUpLogin",props:["getReview","setLoginModalState"],components:{CtaButton:w.A,InputField:se.A},data:function(){return{email:null,errors:{email:!1},ReviewLoginModalStateEnum:T.rD}},methods:{continueWithReview:function(){var e,t=this;return(e=ue().m(function e(){var n,r,o,i,s;return ue().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.errors.email=!t.email||t.checkEmail(t.loginDetails.email),!t.errors.email){e.n=1;break}return e.a(2);case 1:return e.p=1,n=t.$reviewStore.reviewType===T.UT.PORTFOLIO?t.viewData.portfolio._id:t.viewData.project._id,r=encodeURIComponent(t.email),e.n=2,C.A.get("/api/review/reviewer?email=".concat(r,"&contentId=").concat(n));case 2:o=e.v,i=fe(fe({},o.data.review),{},{reviewerDetails:o.data.reviewer}),t.$store.commit("review/updateReview",i),t.$reviewStore.reviews=[i],t.loaded=!0,t.$cookies.set("reviewer",JSON.stringify(response.data.reviewer)),t.closeModal(),e.n=4;break;case 3:e.p=3,(s=e.v).response&&409===s.response.status?t.setLoginModalState(T.rD.AUTH_ERROR):t.setLoginModalState(T.rD.LOGIN_ERROR);case 4:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){me(i,r,o,s,a,"next",e)}function a(e){me(i,r,o,s,a,"throw",e)}s(void 0)})})()},loginWithUxfolioUser:function(){return(0,ie.f0)("Review log-in with UXFolo account",{event_category:"Review mode"}),(0,le.Rf)(window.location.href)},checkEmail:function(e){return!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}},computed:fe(fe({},(0,ae.L8)("view",["viewData"])),{},{userName:function(){return this.viewData.user?this.viewData.user.name:"John Doe"}})};n(98401);const ge=(0,_.A)(ve,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("input-field"),c=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)(r.FK,null,[t[5]||(t[5]=(0,r.Lk)("img",{alt:"new-message-picto",src:J},null,-1)),(0,r.Lk)("div",te,[t[1]||(t[1]=(0,r.Lk)("div",{class:"header"},"You have a follow-up message",-1)),(0,r.Lk)("div",ne,"Provide your email to see and reply to "+(0,l.v_)(s.userName)+"'s follow-up message.",1)]),(0,r.bF)(a,{"dark-scheme":"",label:"Email address",placeholder:"Email address",value:i.email,modelValue:i.email,"onUpdate:modelValue":t[0]||(t[0]=function(e){return i.email=e}),type:"email"},{alert:(0,r.k6)(function(){return[i.errors.email?((0,r.uX)(),(0,r.CE)("span",re,"Invalid e-mail.")):(0,r.Q3)("v-if",!0)]}),_:1},8,["value","modelValue"]),(0,r.Lk)("div",oe,[(0,r.bF)(c,{type:"primary","dark-scheme":"",onClick:s.continueWithReview},{default:(0,r.k6)(function(){return Z(t[2]||(t[2]=[(0,r.eW)("Open my review",-1)]))}),_:1},8,["onClick"]),(0,r.Lk)("span",null,[t[4]||(t[4]=(0,r.eW)("Do you have a UXfol
2io account? ",-1)),(0,r.bF)(c,{onClick:s.loginWithUxfolioUser,type:"link","dark-scheme":""},{default:(0,r.k6)(function(){return Z(t[3]||(t[3]=[(0,r.eW)("Log in",-1)]))}),_:1},8,["onClick"])])])],64)}],["__scopeId","data-v-f367f7a2"]]);function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ye(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ke={name:"ReviewWelcomeModal",props:["show","close","getReview"],components:{ModalFrame:Q,CtaButton:w.A},data:function(){return{}},methods:{returnToSession:function(){this.isFolioUserLoggedIn?(this.$store.state.user=null,this.$reviewStore.reviewLoginModalState=T.rD.GUEST):this.$reviewStore.reviewLoginModalState=T.rD.GUEST_CONTINUE,this.close(),this.$reviewStore.showReviewLoginModal=!0},handlePrimaryClick:function(){this.isFolioUserLoggedIn&&(this.$reviewStore.review.reviewerDetails||(this.$reviewStore.review.reviewerDetails=this.$store.state.user),this.getReview()),this.close()}},computed:we(we({},(0,ae.L8)("view",["viewData"])),{},{userName:function(){return this.viewData.user?this.viewData.user.name:"John Doe"},uxFolioUserName:function(){return this.$store.state.user?this.$store.state.user.name:"John Doe"},isFolioUserLoggedIn:function(){return null!==this.$store.state.user}})},_e=(0,_.A)(ke,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("CtaButton"),c=(0,r.g2)("modal-frame");return n.show?((0,r.uX)(),(0,r.Wv)(c,{key:0,show:n.show,onClose:n.close,"modal-size":"mid","disable-outside-click":""},{default:(0,r.k6)(function(){return[(0,r.Lk)("div",z,[t[1]||(t[1]=(0,r.Lk)("div",{class:"weclome-wrapper"},[(0,r.Lk)("div",{class:"image-wrapper"},[(0,r.Lk)("img",{alt:"review-welcome-picto",src:U})])],-1)),(0,r.Lk)("div",W,[(0,r.Lk)("div",G,"Review "+(0,l.v_)(s.userName)+"'s portfolio",1),(0,r.Lk)("div",X,[(0,r.bF)(a,{type:"primary","dark-scheme":"",onClick:s.handlePrimaryClick},{default:(0,r.k6)(function(){return[(0,r.eW)((0,l.v_)(s.isFolioUserLoggedIn?"Review as "+s.uxFolioUserName:"Start reviewing"),1)]}),_:1},8,["onClick"]),s.isFolioUserLoggedIn?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(a,{key:0,type:"link",onClick:s.returnToSession,"dark-scheme":""},{default:(0,r.k6)(function(){return H(t[0]||(t[0]=[(0,r.eW)("Return to previous session",-1)]))}),_:1},8,["onClick"]))])])])]}),_:1},8,["show","onClose"])):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-10b6eb41"]]);var Oe={class:"review-login-modal-container"};function Ce(e){return function(e){if(Array.isArray(e))return Te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ae={class:"continue-review"},Ee={class:"button-container row"};const xe={name:"LoginErrorModal",props:["setLoginModalState"],data:function(){return{ReviewLoginModalStateEnum:T.rD}},components:{CtaButton:w.A}},Pe=(0,_.A)(xe,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)("div",Ae,[t[4]||(t[4]=(0,r.Lk)("div",{class:"header-row"},[(0,r.Lk)("div",{class:"title-text"},"Email not found"),(0,r.Lk)("div",{class:"subtitle-text"},"We couldnât find a review using this email address. Start a new review now!")],-1)),(0,r.Lk)("div",Ee,[(0,r.bF)(a,{type:"secondary","dark-scheme":"",onClick:t[0]||(t[0]=function(){return n.setLoginModalState(i.ReviewLoginModalStateEnum.GUEST_CONTINUE)})},{default:(0,r.k6)(function(){return Ce(t[2]||(t[2]=[(0,r.eW)("Try another email",-1)]))}),_:1}),(0,r.bF)(a,{type:"primary","dark-scheme":"",onClick:t[1]||(t[1]=function(){return n.setLoginModalState(i.ReviewLoginModalStateEnum.GUEST)})},{default:(0,r.k6)(function(){return Ce(t[3]||(t[3]=[(0,r.eW)("Start a new review",-1)]))}),_:1})])])}],["__scopeId","data-v-56bc586e"]]);function Ie(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Le(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var je={class:"continue-review"},Me={class:"button-container row"};const De={name:"AuthErrorLoginModal",props:["setLoginModalState"],components:{CtaButton:w.A},methods:{loginWithUXfolio:function(){return(0,ie.f0)("Review log-in with UXFolo account",{event_category:"Review mode"}),(0,le.Rf)(window.location.href)},switchModalState:function(){this.setLoginModalState(T.rD.GUEST)}}
2,computed:{loginDetails:function(){return this.$reviewStore.loginDetails}}},Re=(0,_.A)(De,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)("div",je,[t[2]||(t[2]=(0,r.Lk)("div",{class:"header-row"},[(0,r.Lk)("div",{class:"title-text"},"Email registered to UXfolio"),(0,r.Lk)("div",{class:"subtitle-text"},"It looks like you have a UXfolio account. Log in and use it for this review.")],-1)),(0,r.Lk)("div",Me,[(0,r.bF)(a,{type:"secondary","dark-scheme":"",onClick:s.switchModalState},{default:(0,r.k6)(function(){return Ie(t[0]||(t[0]=[(0,r.eW)("Try another email",-1)]))}),_:1},8,["onClick"]),(0,r.bF)(a,{type:"primary","dark-scheme":"",onClick:s.loginWithUXfolio},{default:(0,r.k6)(function(){return Ie(t[1]||(t[1]=[(0,r.eW)("Log in to UXfolio",-1)]))}),_:1},8,["onClick"])])])}],["__scopeId","data-v-608e28da"]]);function Ne(e){return function(e){if(Array.isArray(e))return Fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Be={class:"header-wrapper"},Ue=["src"],He={class:"header-container"},$e={class:"header"},ze={class:"inputs-container"},We={key:"transferError",class:"alert"},Ge={key:"transferError",class:"alert"},Xe={key:"transferError",class:"alert"},Ve={class:"button-container"};var Ke=n(62820);n(88623);function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach(function(t){Je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Je(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return et(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(et(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,et(d,"constructor",c),et(c,"constructor",l),l.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(d),et(d,o,"Generator"),et(d,r,function(){return this}),et(d,"toString",function(){return"[object Generator]"}),(Ze=function(){return{w:i,m:p}})()}function et(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,n,r){function i(t,n){et(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},et(e,t,n,r)}function tt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const nt={name:"GuestLogin",props:["setLoginModalState","getReview"],components:{UserImagePlaceholder:Ke.A,CtaButton:w.A,InputField:se.A},data:function(){return{errors:{name:!1,jobTitle:!1,email:!1}}},methods:{checkUser:function(){var e,t=this;return(e=Ze().m(function e(){var n,r,o,i;return Ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t.checkErrors()){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,C.A.post("/api/review/reviewer",{name:t.loginDetail
2s.name,jobTitle:t.loginDetails.jobTitle,email:t.loginDetails.email});case 2:return n=e.v,t.$reviewStore.review.reviewerDetails=n.data.reviewer,t.$cookies.set("reviewer",JSON.stringify(n.data.reviewer)),e.n=3,t.getReview();case 3:t.$reviewStore.showReviewLoginModal=!1,e.n=7;break;case 4:if(e.p=4,i=e.v,console.log("Error while fetching reviewer",i),!i.response||409!==i.response.status){e.n=6;break}return r=encodeURIComponent(t.loginDetails.email),e.n=5,C.A.get("/api/review/reviewer?email=".concat(r));case 5:o=e.v,t.$cookies.set("reviewer",JSON.stringify(o.data.reviewer)),t.setLoginModalState(T.rD.EXISTING_USER),e.n=7;break;case 6:i.response&&403===i.response.status?t.setLoginModalState(T.rD.AUTH_ERROR):console.log("Error while loading Reviewer.");case 7:(0,ie.f0)("Review with Guest account",{event_category:"Review mode",event_label:"Reviewer: ".concat(t.loginDetails.email,", Portfolio: ").concat(t.viewData.portfolio._id)});case 8:return e.a(2)}},e,null,[[1,4]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){tt(i,r,o,s,a,"next",e)}function a(e){tt(i,r,o,s,a,"throw",e)}s(void 0)})})()},checkErrors:function(){var e=!1;return this.errors.name=!this.loginDetails.name,this.errors.jobTitle=!this.loginDetails.jobTitle,(this.errors.name||this.errors.jobTitle)&&(e=!0),this.errors.email=!this.loginDetails.email||this.checkEmail(this.loginDetails.email),this.errors.email&&(e=!0),e},loginWithUxfolioUser:function(){return(0,ie.f0)("Review log-in with UXFolo account",{event_category:"Review mode"}),(0,le.Rf)(window.location.href)},checkEmail:function(e){return!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}},computed:Qe(Qe({},(0,ae.L8)("view",["viewData"])),{},{user:function(){return this.viewData.user},userName:function(){return this.viewData.user?this.viewData.user.name:"John Doe"},userJobTitle:function(){return this.viewData.user?this.viewData.user.title:"UX designer"},loginDetails:function(){return this.$reviewStore.loginDetails}})},rt=(0,_.A)(nt,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("UserImagePlaceholder"),c=(0,r.g2)("input-field"),u=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("div",Be,[s.user&&s.user.image&&s.user.image.url?((0,r.uX)(),(0,r.CE)("img",{key:0,src:s.user.image.url},null,8,Ue)):((0,r.uX)(),(0,r.Wv)(a,{key:1,name:s.userName,size:"medium"},null,8,["name"])),(0,r.Lk)("div",He,[(0,r.Lk)("div",$e,"First, let "+(0,l.v_)(s.userName)+" know that this review is from you",1)])]),(0,r.Lk)("div",ze,[(0,r.bF)(c,{"dark-scheme":"",label:"Name",placeholder:"Name",value:s.loginDetails.name,modelValue:s.loginDetails.name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return s.loginDetails.name=e})},{alert:(0,r.k6)(function(){return[i.errors.name?((0,r.uX)(),(0,r.CE)("span",We,"Please fill out this field")):(0,r.Q3)("v-if",!0)]}),_:1},8,["value","modelValue"]),(0,r.bF)(c,{"dark-scheme":"",label:"Job title",placeholder:"Job title",value:s.loginDetails.jobTitle,modelValue:s.loginDetails.jobTitle,"onUpdate:modelValue":t[1]||(t[1]=function(e){return s.loginDetails.jobTitle=e})},{alert:(0,r.k6)(function(){return[i.errors.jobTitle?((0,r.uX)(),(0,r.CE)("span",Ge,"Please fill out this field")):(0,r.Q3)("v-if",!0)]}),_:1},8,["value","modelValue"]),(0,r.bF)(c,{"dark-scheme":"",label:"Email address",placeholder:"Email address",value:s.loginDetails.email,modelValue:s.loginDetails.email,"onUpdate:modelValue":t[2]||(t[2]=function(e){return s.loginDetails.email=e}),type:"email"},{alert:(0,r.k6)(function(){return[i.errors.email?((0,r.uX)(),(0,r.CE)("span",Xe,"Invalid e-mail.")):(0,r.Q3)("v-if",!0)]}),_:1},8,["value","modelValue"])]),(0,r.Lk)("div",Ve,[(0,r.bF)(u,{type:"primary","dark-scheme":"",onClick:s.checkUser},{default:(0,r.k6)(function(){return Ne(t[3]||(t[3]=[(0,r.eW)("Review as a guest",-1)]))}),_:1},8,["onClick"]),(0,r.Lk)("span",null,[t[5]||(t[5]=(0,r.eW)("Do you have a UXfolio account? ",-1)),(0,r.bF)(u,{onClick:s.loginWithUxfolioUser,type:"link","dark-scheme":""},{default:(0,r.k6)(function(){return Ne(t[4]||(t[4]=[(0,r.eW)("Log in",-1)]))}),_:1},8,["onClick"])])])],64)}],["__scopeId","data-v-2e791528"]]);function ot(e){return function(e){if(Array.isArray(e))return it(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var st={class:"continue-review"},at={key:"transferError",class:"alert"},lt={class:"button-container"};function ct(e){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(e)}function ut(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return dt(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(dt(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,dt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,dt(d,"constructor",c),dt(c,"constructor",l),l.displayName="GeneratorFunction",dt(c,o,"GeneratorFunction"),dt(d),dt(d,o,"Generator"),dt(d,r,function(){return this}),dt(d,"toString",function(){return"[object Generator]"}),(ut=function(){return{w:i,m:p}})()}function dt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}dt=function(e,t,n,r){function i(t,n){dt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},dt(e,t,n,r)}function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach(function(t){ht(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ht(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ct(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ct(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const vt={name:"ContinueLogin",props:["setLoginModalState","getReview"],components:{InputField:se.A,CtaButton:w.A},data:function(){return{email:null,errors:{email:!1},ReviewLoginModalStateEnum:T.rD}},methods:{continueWithReview:function(){var e,t=this;return(e=ut().m(function e(){var n,r,o,i,s,a;return ut().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.errors.email=!t.loginDetails.email||t.checkEmail(t.loginDetails.email),!t.errors.email){e.n=1;break}return e.a(2);case 1:return e.p=1,n=t.$reviewStore.reviewType===T.UT.PORTFOLIO?t.viewData.portfolio._id:t.viewData.project._id,r=t.loginDetails.email,o=e
2ncodeURIComponent(r),e.n=2,C.A.get("/api/review/reviewer?email=".concat(o,"&contentId=").concat(n));case 2:i=e.v,s=ft(ft({},i.data.review),{},{reviewerDetails:i.data.reviewer}),t.$store.commit("review/updateReview",s),t.$reviewStore.reviews=[s],t.$cookies.set("reviewTour",JSON.stringify({reviewTourDone:!0})),t.$reviewStore.showTour=!1,t.loaded=!0,t.$cookies.set("reviewer",JSON.stringify(i.data.reviewer)),t.closeModal(),e.n=4;break;case 3:e.p=3,(a=e.v).response&&409===a.response.status?t.setLoginModalState(T.rD.AUTH_ERROR):t.setLoginModalState(T.rD.LOGIN_ERROR);case 4:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){mt(i,r,o,s,a,"next",e)}function a(e){mt(i,r,o,s,a,"throw",e)}s(void 0)})})()},startNewReview:function(){this.$reviewStore.showReviewLoginModal=!1,this.setLoginModalState(T.rD.GUEST)},closeModal:function(){this.$reviewStore.showReviewLoginModal=!1},checkEmail:function(e){return!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}},computed:ft(ft({},(0,ae.L8)("view",["viewData"])),{},{loginDetails:function(){return this.$reviewStore.loginDetails}})},gt=(0,_.A)(vt,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("input-field"),l=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)("div",st,[t[4]||(t[4]=(0,r.Lk)("div",{class:"header-row"},[(0,r.Lk)("div",{class:"title-text"},"Jump back into a review you started earlier.")],-1)),(0,r.bF)(a,{"dark-scheme":"",label:"Your email",placeholder:"Your email",value:s.loginDetails.email,modelValue:s.loginDetails.email,"onUpdate:modelValue":t[0]||(t[0]=function(e){return s.loginDetails.email=e}),type:"email"},{alert:(0,r.k6)(function(){return[i.errors.email?((0,r.uX)(),(0,r.CE)("span",at,"Invalid e-mail.")):(0,r.Q3)("v-if",!0)]}),_:1},8,["value","modelValue"]),(0,r.Lk)("div",lt,[(0,r.bF)(l,{type:"primary","dark-scheme":"",onClick:s.continueWithReview},{default:(0,r.k6)(function(){return ot(t[1]||(t[1]=[(0,r.eW)("Start reviewing",-1)]))}),_:1},8,["onClick"]),(0,r.Lk)("span",null,[t[3]||(t[3]=(0,r.eW)("Or ",-1)),(0,r.bF)(l,{type:"link",onClick:s.startNewReview,"dark-scheme":""},{default:(0,r.k6)(function(){return ot(t[2]||(t[2]=[(0,r.eW)("Start a new review",-1)]))}),_:1},8,["onClick"])])])])}],["__scopeId","data-v-334e7afa"]]);function yt(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wt={class:"button-container"};const St={name:"ExistingUserLogin",props:["setLoginModalState","getReview"],components:{CtaButton:w.A},data:function(){return{ReviewLoginModalStateEnum:T.rD,content:{title:"",primaryButtonText:"",secondaryButtonText:""}}},methods:{continueReviewAsExisting:function(){this.$reviewStore.review.reviewerDetails||(this.$reviewStore.review.reviewerDetails=this.user),this.getReview(),this.closeModal()},closeModal:function(){this.$reviewStore.showReviewLoginModal=!1},reviewAsNewGuest:function(){this.$reviewStore.loginDetails={email:null,name:null,jobTitle:null},this.$cookies.remove("reviewer"),this.setLoginModalState(T.rD.GUEST)}},computed:{user:function(){var e=this.$cookies.get("reviewer");if(e)return e},userName:function(){return this.user?this.user.name:"John Doe"},userJobTitle:function(){return this.user?this.user.jobTitle:""}}},kt=(0,_.A)(St,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)(r.FK,null,[t[1]||(t[1]=(0,r.Lk)("div",{class:"header-container"},[(0,r.Lk)("div",{class:"header"},"You already started reviewing this portfolio")],-1)),(0,r.Lk)("div",wt,[(0,r.bF)(a,{type:"primary","dark-scheme":"",onClick:s.continueReviewAsExisting},{default:(0,r.k6)(function(){return[(0,r.eW)("Continue as "+(0,l.v_)(s.userName),1)]}),_:1},8,["onClick"]),(0,r.bF)(a,{type:"link","dark-scheme":"",onClick:s.reviewAsNewGuest},{default:(0,r.k6)(function(){return yt(t[0]||(t[0]=[(0,r.eW)("Start new review",-1)]))}),_:1},8,["onClick"])])],64)}],["__scopeId","data-v-a12eb066"]]),_t={name:"ReviewLoginModalHandler",props:["show","close","getReview"],components:{FollowUpLogin:ge,ExistingUserLogin:kt,ContinueLogin:gt,GuestLogin:rt,AuthErrorLoginModal:Re,LoginErrorModal:Pe,ModalFrame:Q},data:function(){return{ReviewLoginModalStateEnum:T.rD}},mounted:function(){this.checkState()},methods:{checkState:function(){var e=this.$route.query.followup,t=this.$store.state.user;e?this.loginModalState=T.rD.FOLLOW_UP:t&&(this.loginModalState=T.rD.EXISTING_USER)}
2,setLoginModalState:function(e){this.$reviewStore.reviewLoginModalState=e}},computed:{currentModal:function(){switch(this.loginModalState){case T.rD.GUEST:return rt;case T.rD.EXISTING_USER:return kt;case T.rD.GUEST_CONTINUE:return gt;case T.rD.FOLLOW_UP:return ge;case T.rD.LOGIN_ERROR:return Pe;case T.rD.AUTH_ERROR:return Re;default:return rt}},loginModalState:{get:function(){return this.$reviewStore.reviewLoginModalState},set:function(e){this.$reviewStore.reviewLoginModalState=e}}}};function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach(function(t){At(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function At(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ot(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return xt(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(xt(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,xt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,xt(d,"constructor",c),xt(c,"constructor",l),l.displayName="GeneratorFunction",xt(c,o,"GeneratorFunction"),xt(d),xt(d,o,"Generator"),xt(d,r,function(){return this}),xt(d,"toString",function(){return"[object Generator]"}),(Et=function(){return{w:i,m:p}})()}function xt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}xt=function(e,t,n,r){function i(t,n){xt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},xt(e,t,n,r)}function Pt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function It(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){Pt(i,r,o,s,a,"next",e)}function a(e){Pt(i,r,o,s,a,"throw",e)}s(void 0)})}}const Lt={name:"ReviewMode",components:{ReviewLoginModalHandler:(0,_.A)(_t,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("modal-frame");return n.show?((0,r.uX)(),(0,r.Wv)(a,{key:0,show:n.show,onClose:n.close,"modal
2-size":"tiny","disable-outside-click":""},{default:(0,r.k6)(function(){return[(0,r.Lk)("div",Oe,[((0,r.uX)(),(0,r.Wv)((0,r.$y)(s.currentModal),{"set-login-modal-state":s.setLoginModalState,"get-review":n.getReview},null,8,["set-login-modal-state","get-review"]))])]}),_:1},8,["show","onClose"])):(0,r.Q3)("v-if",!0)}]]),ReviewWelcomeModal:_e,OverviewSuccessModal:B,OverviewModal:A.A,TourModal:O,Overview:a.A,ReviewNav:s.A},data:function(){return{showLoginModal:!1,showWelcomeModal:!1,showSuccessModal:!1,loaded:!1,tourDisabled:!1}},mounted:function(){this.checkForReviewer(),this.isMobileDevice()},methods:{checkForReviewer:function(){var e=this;return It(Et().m(function t(){var n,r;return Et().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(n=e.$cookies.get("reviewer"))){t.n=1;break}return e.initiateReviewForCookieReviewer(n),t.a(2);case 1:return t.p=1,t.n=2,E.A.getMyUser();case 2:r=t.v,e.$store.state.user=r.data.user,e.loaded=!0,e.showWelcomeModal=!0,t.n=4;break;case 3:t.p=3,t.v,e.handleReviewerCheckFailure();case 4:return t.a(2)}},t,null,[[1,3]])}))()},openSuccessModal:function(){this.showSuccessModal=!0},closeSuccessModal:function(){this.showSuccessModal=!1},handleReviewerCheckFailure:function(){this.$route.query.followup?this.$reviewStore.showReviewLoginModal=!0:this.showWelcomePromt()},initiateReviewForCookieReviewer:function(e){var t=this;return It(Et().m(function n(){var r,o,i,s;return Et().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,"string"==typeof e&&(e=JSON.parse(e)),r=t.$reviewStore.reviewType===T.UT.PORTFOLIO?t.viewData.portfolio._id:t.viewData.project._id,o=encodeURIComponent(e.email),n.n=1,C.A.get("/api/review/reviewer?email=".concat(o,"&contentId=").concat(r));case 1:i=n.v,t.$cookies.set("reviewTour",JSON.stringify({reviewTourDone:!0})),t.$reviewStore.showTour=!1,i.data.review?(s=Tt(Tt({},i.data.review),{},{reviewerDetails:i.data.reviewer}),t.$store.commit("review/updateReview",s),t.$reviewStore.reviews=[s]):(t.$reviewStore.reviewLoginModalState=T.rD.EXISTING_USER,t.showWelcomeModal=!0),t.loaded=!0,n.n=3;break;case 2:n.p=2,n.v,t.$cookies.remove("reviewer"),t.loaded=!0;case 3:return n.a(2)}},n,null,[[0,2]])}))()},showWelcomePromt:function(){this.loaded=!0,this.showWelcomeModal=!0},closeLoginModal:function(){this.$reviewStore.showReviewLoginModal=!1},closeWelcomeModal:function(){this.showWelcomeModal=!1},closeOverviewModal:function(){this.showOverviewModal=!1},getReview:function(){var e=this;return It(Et().m(function t(){var n,r,o,i,s,a;return Et().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,n=e.$reviewStore.review.reviewerDetails?e.$reviewStore.review.reviewerDetails.email:e.$store.state.user.email,r=e.$reviewStore.reviewType===T.UT.PORTFOLIO?e.viewData.portfolio._id:e.viewData.project._id,o={reviewType:e.$reviewStore.reviewType,reviewer:n,ownerId:e.viewData.portfolio.ownerId,contentId:r},t.n=1,C.A.post("/api/review",o);case 1:i=t.v,s=Tt(Tt({},i.data),{},{reviewerDetails:e.$reviewStore.review.reviewerDetails}),e.$store.commit("review/updateReview",s),e.$reviewStore.reviews=[s],e.loaded=!0,t.n=3;break;case 2:t.p=2,a=t.v,console.log("Error while fetching reviews",a);case 3:return t.a(2)}},t,null,[[0,2]])}))()},isMobileDevice:function(){(void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")||window.innerWidth<640)&&!localStorage.getItem("uxfolioMobileNotificationProfile")&&(this.$store.state.alertModalMessage={type:"mobile-device",title:"Please, switch to a desktop device",message:"Review mode is optimized for desktop use."},this.$store.state.activeModal="AlertModal")}},computed:Tt(Tt({},(0,ae.L8)("view",["viewData"])),{},{showOverviewModal:{get:function(){return this.$reviewStore.showOverviewModal},set:function(e){this.$reviewStore.showOverviewModal=e}}})},jt=(0,_.A)(Lt,[["render",function(e,t,n,s,a,l){var c=this,u=(0,r.g2)("ReviewNav"),d=(0,r.g2)("Overview"),p=(0,r.g2)("TourModal"),f=(0,r.g2)("ReviewWelcomeModal"),h=(0,r.g2)("ReviewLoginModalHandler"),m=(0,r.g2)("OverviewModal"),v=(0,r.g2)("OverviewSuccessModal");return a.loaded?((0,r.uX)(),(0,r.CE)("div",i,[(0,r.bF)(u,{"review-mode":!0,showOverviewModal:function(){return c.showOverviewModal=!0}},null,8,["showOverviewModal"]),(0,r.RG)(e.$slots,"default"),(0,r.bF)(d,{"review-mode":!0}),(0,r.bF)(o.Transition,{name:"fade-in"},{default:(0,r.k6)(function(){return[(0,r.bF)(p)]}),_:1}),(0,r.bF)(f,{show:a.showWelcomeModal,close:l.closeWelcomeModal,"get-review":l.getReview},null,8,["show","close","get-review"]),(0,r.bF)(h,{show:e.$reviewStore.showReviewLoginModal,close:l.closeLoginModal,getReview:l.getReview},null,8,["show","close","getReview"]),(0,r.bF)(m,{show:l.showOverviewModal,close:l.closeOverviewModal,openSuccessModal:l.openSuccessModal},null,8,["show","close","openSuccessModal"]),(0,r.bF)(v,{show:a.showSuccessModal,close:l.closeSuccessModal},null,8,["show","close"])])):(0,r.Q3)("v-if",!0)}]])},66427(e,t,n){"use strict";n.d(t,{A:()=>P});
2var r=n(20641),o=n(90033),i=["src"],s={class:"comment-details"},a={class:"comment-user-and-text"},l={class:"comment-user"},c={class:"name"},u={class:"time"},d=["innerHTML"],p={key:3,class:"edit-container-wrapper"};var f=n(46335),h=n(62820),m=n(53751);const v={name:"MiniFab",props:["iconName","handleClick","type"],components:{Icon:f.A}};var g=n(66262);const y=(0,g.A)(v,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",{class:"mini-fab-container",onClick:t[0]||(t[0]=(0,m.withModifiers)(function(){return n.handleClick&&n.handleClick.apply(n,arguments)},["stop"]))},[(0,r.Lk)("div",{class:(0,o.C4)(["icon-wrapper",n.type])},[(0,r.bF)(l,{"icon-name":n.iconName},null,8,["icon-name"])],2)])}],["__scopeId","data-v-7f3d886c"]]),b=y;var w=n(65498),S=n(82124);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return A(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(A(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,A(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,A(d,"constructor",c),A(c,"constructor",l),l.displayName="GeneratorFunction",A(c,o,"GeneratorFunction"),A(d),A(d,o,"Generator"),A(d,r,function(){return this}),A(d,"toString",function(){return"[object Generator]"}),(T=function(){return{w:i,m:p}})()}function A(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}A=function(e,t,n,r){function i(t,n){A(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},A(e,t,n,r)}function E(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}
2const x={name:"CommentComponent",props:["comment","resolveComment","updateComment","deleteComment","edit","index"],components:{MiniFab:b,UserImagePlaceholder:h.A,Icon:f.A},data:function(){return{show:!1,hovering:!1}},methods:{handleCommentResolve:function(){this.resolveComment&&this.resolveComment()},saveReview:function(){var e,t=this;return(e=T().m(function e(){var n;return T().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,w.A.post("/api/review/"+t.$reviewStore.review._id+"/"+t.$reviewStore.review.contentId,t.$reviewStore.review);case 1:t.saved=!0,t.saving=!1,e.n=3;break;case 2:e.p=2,n=e.v,console.log("Failed to save review",n);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){E(i,r,o,s,a,"next",e)}function a(e){E(i,r,o,s,a,"throw",e)}s(void 0)})})()}},computed:O(O({},(0,S.L8)("view",["viewData"])),{},{user:function(){var e=this,t=this.$reviewStore.receiver?this.$store.state.user:this.viewData.user;if(this.comment.fromUserId){if(t&&this.comment.fromUserId===t._id)return{name:t.name,image:t.image};var n=this.$reviewStore.reviews.map(function(e){return e.reviewerDetails}).find(function(t){return t._id===e.comment.fromUserId});return n||this.$reviewStore.review.reviewerDetails}return this.$reviewStore.review.reviewerDetails},isReceiverMode:function(){return this.$reviewStore.receiver},isResolved:function(){return this.comment.resolved}})},P=(0,g.A)(x,[["render",function(e,t,n,f,h,m){var v=(0,r.g2)("UserImagePlaceholder"),g=(0,r.g2)("MiniFab");return(0,r.uX)(),(0,r.CE)("div",{ref:"comment"+n.index,class:(0,o.C4)(["comment",{edit:n.edit,resolved:m.isResolved}]),onMouseenter:t[0]||(t[0]=function(e){return h.hovering=!0}),onMouseleave:t[1]||(t[1]=function(e){return h.hovering=!1})},[m.user.image&&m.user.image.url?((0,r.uX)(),(0,r.CE)("img",{key:0,class:"profile-picture",alt:"userimage",src:m.user.image.url},null,8,i)):((0,r.uX)(),(0,r.Wv)(v,{key:1,name:m.user.name,size:"small"},null,8,["name"])),(0,r.Lk)("div",s,[(0,r.Lk)("div",a,[(0,r.Lk)("div",l,[(0,r.Lk)("div",c,(0,o.v_)(m.user.name),1),(0,r.Lk)("div",u,(0,o.v_)(e.DateTimeHelper.getMoment(n.comment.createdAt)),1)]),(0,r.Lk)("div",{class:"comment-text",innerHTML:n.comment.text},null,8,d)]),n.comment.label?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["label",n.comment.label.toLowerCase()+"-label"])},(0,o.v_)(n.comment.label),3)):(0,r.Q3)("v-if",!0)]),m.isReceiverMode&&n.resolveComment?((0,r.uX)(),(0,r.Wv)(g,{key:2,class:"resolve-check","icon-name":m.isResolved?"history":"check","handle-click":m.handleCommentResolve},null,8,["icon-name","handle-click"])):(0,r.Q3)("v-if",!0),n.edit?((0,r.uX)(),(0,r.CE)("div",p,[(0,r.bF)(g,{"icon-name":"edit","handle-click":n.updateComment},null,8,["handle-click"]),(0,r.bF)(g,{type:"error","icon-name":"delete","handle-click":n.deleteComment},null,8,["handle-click"])])):(0,r.Q3)("v-if",!0)],34)}],["__scopeId","data-v-a1e7866e"]])},77726(e,t,n){"use strict";n.d(t,{A:()=>Ae});var r=n(20641);var o=n(90033);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=["id"],l={class:"sticky"},c={key:0,ref:"reaction",class:"reaction-fab-container"},u={class:"reaction-in-fab"},d={class:"reaction-wrapper"},p=["src"],f={key:0,class:"reactions-container"},h=["onClick"],m={class:"fab-wrapper"},v=["src"],g={key:1,ref:"comments",class:"comments-fab-container"},y={class:"comment-in-fab"},b={key:0,class:"comments-container"},w={class:"header-row"},S={key:0,ref:"commentList",class:"comments"};var k=n(8187),_=n(46335),O=n(66427),C=n(65498),T=n(17881),A=n(53751),E={class:"comment-input"},x={class:"input-row"},P={key:0,class:"labels-row"},I=["onClick"];var L=n(45442),j=n(60792),M=n(98005);const D={name:"CommentInput",props:["currentComment","addComment","updateCommentLabel"],components:{Icon:_.A,EditorContent:L.$Z},data:function(){return{inputFocused:!1,labels:[{name:"Design"},{name:"Structure"},{name:"Content"},{name:"Imagery"}],editor:null,typeInterval:null,inactivityInterval:null}},watch:{currentComment:function(e){if(this.editor){var t=(null==e?void 0:e.text)||"";this.editor.getHTML()!==t&&this.editor.commands.setContent(t,{emitUpdate:!1})}}},mounted:function(){var e=this;this.editor=new L.KE({content:this.currentComment.text,extensions:[j.A,M.A.configure({placeholder:"Type your comment here",showOnlyWhenEditable:!0,showOnlyCurrent:!0})],onUpdate:function(t){t.getJSON,t.getHTML;e.applyTextEdit(e.editor.getHTML(),e.editor.getText())},onBlur:function(){e.inputFocused=!1},onFocus:function(){e.inputFocused=!0}})},methods:{applyTextEdit:function(e,t){this.currentComment.text=t.length?e:null},addNewComment:function(){this.checkReviewerUser(),this.reviewer&&(this.addComment(),this.editor.commands.clearContent({emitUpdate:!1}))},checkReviewerUser:function(){this.reviewer||(this.$reviewStore.showReviewLoginModal=!0)}},computed:{reviewer:function(){return this.$reviewStore.review.reviewerDetails}}};var R=n(66262);const N=(0,R.A)(D,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("EditorContent"),c=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",E,[(0,r.Lk)("div",x,[(0,r.bF)(l,{editor:s.editor,class:(0,o.C4)("ufo--text-area-comment")},null,8,["editor"]),(0,r.bF)(c,{class:(0,o.C4)({disabled:!this.currentComment.text,active:this.currentComment.text&&this.currentComment.text.length}),"icon-name":"send",onClick:a.addNewComment},null,8,["class","onClick"])]),s.inputFocused||n.currentComment.text&&n.currentComment.text.length?((0,r.uX)(),(0,r.CE)("div",P,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(s.labels,function(e){return(0,r.uX)(),(0,r.CE)("div",{onClick:function(){return n.updateCommentLabel(e.name)}
2,key:e.name,onMousedown:t[0]||(t[0]=(0,A.withModifiers)(function(){},["prevent"])),class:(0,o.C4)(["label",{selected:n.currentComment.label===e.name},e.name.toLowerCase()+"-label"])},(0,o.v_)(e.name),43,I)}),128))])):(0,r.Q3)("v-if",!0)])}],["__scopeId","data-v-ff777e38"]]);var F=n(26700),B=n(87355),U=n(64245),H=n(7615),$=n(95889),z=n(68438),W=n(82124),G=n(74256);function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function V(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return Y(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Y(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Y(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Y(d,"constructor",c),Y(c,"constructor",l),l.displayName="GeneratorFunction",Y(c,o,"GeneratorFunction"),Y(d),Y(d,o,"Generator"),Y(d,r,function(){return this}),Y(d,"toString",function(){return"[object Generator]"}),(q=function(){return{w:i,m:p}})()}function Y(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Y=function(e,t,n,r){function i(t,n){Y(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Y(e,t,n,r)}function Q(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const te={name:"ReviewFabs",props:["section","hovering","invertedIndex","review"],components:{CommentInput:N,ConfirmationModal:T.A,Fab:k.A,Icon:_.A,Comment:O.A},data:function(){return{reaction:!1,comments:!1,updating:null,idToDelete:null,showConfirmationModal:!1,show:!1,listenerMounted:!1,reactions:[{name:"like",value:"👍",img:F},{name:"heart",value:"💖",img:B},{name:"clap",value:"👏",img:U},{name:"bulb",value:"💡",img:H},{name:"check",value:"✅",img:$}],currentComment:{text:null,label:null},defaultSectionReaction:{sectionId:null,reaction:null,comments:[],pageData:{shortId:null,name:null}},indexToUpdate:null}},watch:{$route:function(e,t){this.defaultSectionReaction={sectionId:null,reaction:null,comments:[],pageData:{shortId:null,name:null}},this.setDefaultValues()}},mounted:function(){this.setDefaultValues()},methods:{setDefaultValues:function(){this.defaultSectionReaction.sectionId=this.section._id,this.defaultSectionReaction.pageData={shortId:this.viewData.project.shortId,name:(0,z.sZ)(this.projectName)}},showReaction:function(){this.reaction=!this.reaction,this.comments=!1,this.mountOutsideClick()},showComments:function(){this.comments&&null!==this.updating&&(this.currentComment={text:null,label:null}),this.comments=!this.comments,this.updating=null,this.reaction=!1,this.mountOutsideClick()},mountOutsideClick:function(){!this.reaction&&!this.comments||this.listenerMounted?(this.listenerMounted=!1,document.removeEventListener("click",this.clickOutside,!0)):(this.listenerMounted=!0,document.addEventListener("click",this.clickOutside,!0))},clickOutside:function(){this.reaction&&this.reaction&&this.reviewer&&this.$refs.reaction&&!this.$refs.reaction.contains(event.target)&&this.showReaction(),this.comments&&this.comments&&this.reviewer&&this.$refs.comments&&!this.$refs.comments.contains(event.target)&&this.showComments()},setEmoji:function(e){this.reviewer&&(e===this.sectionReaction.reaction?this.sectionReaction.reaction=null:this.sectionReaction.reaction=e,this.reaction=!1),this.saveReaction()},updateCommentLabel:function(e){this.currentComment.label=this.currentComment.label===e?null:e},addComment:function(){var e=this;if(this.currentComment.text){var t,n,r=(null===(t=this.$reviewStore.review.reviewerDetails)||void 0===t?void 0:t._id)||(null===(n=this.$reviewStore.review.reviewerDetails)||void 0===n?void 0:n.email)||null;if(null===this.updating)this.sectionReaction.comments.push(Z(Z({},this.currentComment),{},{createdAt:Date.now(),fromUserId:r})),this.currentComment={text:null,label:null};else{var o=this.sectionReaction.comments.findIndex(function(t){return t._id===e.updating});o>-1&&(this.sectionReaction.comments[o]=Z(Z({},this.currentComment),{},{createdAt:Date.now(),fromUserId:r,_id:this.updating})),this.currentComment={text:null,label:null}}this.saveReaction(),this.$refs.commentList&&this.$nextTick(function(){var t=e.$refs.commentList;t.scrollTop=t.scrollHeight})}},saveReaction:function(){var e,t=this;return(e=q().m(function e(){return q().w(function(e){for(;;)switch(e.n){case 0:if(!t.reviewer){e.n=2;break}return t.hasReaction?t.isReactionExists||t.sectionReactions.push(Z({sectionId:t.section._id},t.sectionReaction)):t.isReactionExists&&t.sectionReactions.hasOwnProperty(t.savedDataIndex)&&t.sectionReactions.splice(t.savedDataIndex,1),t.updating=null,e.n=1,C.A.post("/api/review/"+t.$reviewStore.review._id+"/"+t.$reviewStore.review.contentId,t.$reviewStore.review);case 1:e.n=3;break;case 2:t.$reviewStore.showReviewLoginModal=!0;case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){Q(i,r,o,s,a,"next",e)}function a(e){Q(i,r,o,s,a,"throw",e)}s(void 0)})})()},updateComment:function(e){this.currentComment=this.sectionReaction.comments.find(function(t){return t._id===e}),this.updating=e},showDeleteModal:function(e){this.idToDelete=e,this.showConfirmationModal=!0}
2,closeDeleteCommentModal:function(){this.showConfirmationModal=!1,this.idToDelete=null},deleteComment:function(){var e=this,t=this.sectionReaction.comments.findIndex(function(t){return t._id===e.idToDelete});this.sectionReaction.comments.splice(t,1),this.idToDelete=null,this.saveReaction(),this.showConfirmationModal=!1},getReactionImage:function(e){return this.reactions.find(function(t){return t.value===e}).img}},computed:Z(Z({},(0,W.L8)("view",["viewData"])),{},{sectionReactions:function(){return this.$reviewStore.review.sectionReactions},projectName:function(){var e=this.project.sections.find(function(e){return(null==e?void 0:e.type)===G.iK.MAIN_HEADER});return null!==this.project.name?this.project.name:e.title.text},hasReaction:function(){return this.sectionReaction.reaction||this.sectionReaction.comments.length},reviewMode:function(){return!this.$reviewStore.receiver},sortedComments:function(){return V(this.sectionReaction.comments).sort(function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})},savedDataIndex:function(){var e=this;return this.sectionReactions.findIndex(function(t){return t.sectionId===e.section._id})},isReactionExists:function(){var e=this;return this.sectionReactions.find(function(t){return t.sectionId===e.section._id})},sectionReaction:function(){var e=this,t=this.sectionReactions.find(function(t){return t.sectionId===e.section._id});return t||this.defaultSectionReaction},isThereStickyHeader:function(){return this.viewData.stickedHeader},reviewer:function(){return this.$reviewStore.review.reviewerDetails},project:function(){return this.viewData.project}})},ne=(0,R.A)(te,[["render",function(e,t,n,s,k,_){var O=(0,r.g2)("fab"),C=(0,r.g2)("Icon"),T=(0,r.g2)("Comment"),A=(0,r.g2)("CommentInput"),E=(0,r.g2)("ConfirmationModal");return e.$reviewStore.displayUI?((0,r.uX)(),(0,r.CE)("div",{key:0,id:n.section._id,class:(0,o.C4)(["review-fabs",n.section.type,{"sticky-header":_.isThereStickyHeader}]),style:(0,o.Tr)({zIndex:n.invertedIndex})},[(0,r.Lk)("div",l,[n.hovering||_.hasReaction||k.reaction||k.comments?((0,r.uX)(),(0,r.CE)("div",c,[(0,r.bF)(O,{selected:k.reaction,icon:null===_.sectionReaction.reaction?"reaction":null,onClick:_.showReaction,tooltip:"Reaction","tooltip-position":"top"},(0,r.eX)({_:2},[_.sectionReaction.reaction?{name:"reaction",fn:(0,r.k6)(function(){return[(0,r.Lk)("div",u,[(0,r.Lk)("div",d,[(0,r.Lk)("img",{src:_.getReactionImage(_.sectionReaction.reaction),alt:"reaction"},null,8,p)])])]}),key:"0"}:void 0]),1032,["selected","icon","onClick"]),k.reaction?((0,r.uX)(),(0,r.CE)("div",f,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(k.reactions,function(e){return(0,r.uX)(),(0,r.CE)("div",{onClick:function(){return _.reviewMode?_.setEmoji(e.value):null},class:"reaction"},[(0,r.Lk)("div",{class:(0,o.C4)(["reaction-wrapper",[{selected:e.value===_.sectionReaction.reaction}]])},[(0,r.Lk)("div",m,[(0,r.Lk)("img",{src:e.img,alt:"reaction"},null,8,v)])],2)],8,h)}),256))])):(0,r.Q3)("v-if",!0)],512)):(0,r.Q3)("v-if",!0),n.hovering||_.hasReaction||k.comments||k.reaction?((0,r.uX)(),(0,r.CE)("div",g,[(0,r.bF)(O,{selected:k.comments,icon:_.sectionReaction.comments.length?null:"comment",onClick:_.showComments,tooltip:"Comments","tooltip-position":"top"},(0,r.eX)({_:2},[_.sectionReaction.comments.length?{name:"comment",fn:(0,r.k6)(function(){return[(0,r.Lk)("div",y,[(0,r.bF)(C,{"icon-name":"chat"}),(0,r.Lk)("span",null,(0,o.v_)(_.sectionReaction.comments.length),1)])]}),key:"0"}:void 0]),1032,["selected","icon","onClick"]),k.comments?((0,r.uX)(),(0,r.CE)("div",b,[(0,r.Lk)("div",w,[(0,r.Lk)("div",null,(0,o.v_)(_.sectionReaction.comments.length?"Comments":"Add comment"),1),(0,r.bF)(C,{iconName:"
2close",onClick:_.showComments},null,8,["onClick"])]),_.sectionReaction.comments.length&&null===k.updating?((0,r.uX)(),(0,r.CE)("div",S,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(_.sortedComments,function(e,t){return(0,r.uX)(),(0,r.Wv)(T,{key:e._id||t,comment:e,updateComment:function(){return _.updateComment(e._id)},deleteComment:function(){return _.showDeleteModal(e._id)},edit:_.reviewMode,index:t},null,8,["comment","updateComment","deleteComment","edit","index"])}),128))],512)):(0,r.Q3)("v-if",!0),_.reviewMode?((0,r.uX)(),(0,r.Wv)(A,{key:1,"current-comment":k.currentComment,"add-comment":_.addComment,"update-comment-label":_.updateCommentLabel},null,8,["current-comment","add-comment","update-comment-label"])):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0)],512)):(0,r.Q3)("v-if",!0),(0,r.bF)(E,{show:k.showConfirmationModal,"modal-size":"small",onAction:t[0]||(t[0]=function(e){return _.deleteComment()}),onClose:t[1]||(t[1]=function(e){return _.closeDeleteCommentModal()})},{title:(0,r.k6)(function(){return i(t[2]||(t[2]=[(0,r.eW)("Delete comment",-1)]))}),content:(0,r.k6)(function(){return i(t[3]||(t[3]=[(0,r.Lk)("p",null,"Are you sure you want to delete this comment?",-1)]))}),_:1},8,["show"])])],14,a)):(0,r.Q3)("v-if",!0)}]]);var re=["id"],oe={class:"sticky"},ie={key:0,ref:"reaction",class:"reaction-fab-container"},se={class:"reaction-in-fab-container"},ae={class:"reaction-wrapper"},le=["src"],ce={key:0},ue={key:1,ref:"comments",class:"comments-fab-container"},de={class:"comment-in-fab"},pe={key:0,class:"comments-container"},fe={class:"header-row"},he={ref:"commentList",class:"comments"};function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function ve(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){we(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function we(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==me(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return ke(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ke(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ke(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ke(d,"constructor",c),ke(c,"constructor",l),l.displayName="GeneratorFunction",ke(c,o,"GeneratorFunction"),ke(d),ke(d,o,"Generator"),ke(d,r,function(){return this}),ke(d,"toString",function(){return"[object Generator]"}),(Se=function(){return{w:i,m:p}})()}function ke(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ke=function(e,t,n,r){function i(t,n){ke(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ke(e,t,n,r)}function _e(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const Oe={name:"ReceiverFabs",props:["section","hovering","invertedIndex"],components:{Fab:k.A,Icon:_.A,Comment:O.A},data:function(){return{comments:!1,show:!1,listenerMounted:!1,reactions:[{name:"like",value:"👍",img:F},{name:"heart",value:"💖",img:B},{name:"clap",value:"👏",img:U},{name:"bulb",value:"💡",img:H},{name:"check",value:"✅",img:$}],sectionReaction:{sectionId:null,reaction:null,comments:[],pageData:{shortId:null,name:null}}}},mounted:function(){var e=this;this.emitter.on("open-comment",function(t){e.comments=t===e.section._id})},methods:{showComments:function(){this.comments=!this.comments,this.updating=null,this.mountOutsideClick()},mountOutsideClick:function(){this.comments&&!this.listenerMounted?(this.listenerMounted=!0,document.addEventListener("click",this.clickOutside,!0)):(this.listenerMounted=!1,document.removeEventListener("click",this.clickOutside,!0))},clickOutside:function(){this.comments&&this.$refs.comments&&!this.$refs.comments.contains(event.target)&&this.showComments()},getTooltip:function(e,t){return t.join(", ")+" reacted with :"+this.reactions.find(function(t){return t.value===e}).name+":"},getReactionImage:function(e){return this.reactions.find(function(t){return t.value===e}).img},resolveComment:function(e){var t,n=this;return(t=Se().m(function t(){var r,o,i;return Se().w(function(t){for(;;)switch(t.n){case 0:return r=n.$reviewStore.reviews.find(function(t){return t.reviewerDetails._id===e.fromUserId}),(o=r.sectionReactions.find(function(e){return e.sectionId===n.section._id}))&&(i=o.comments.find(function(t){return t._id===e._id}))&&(i.resolved=!i.resolved),t.n=1,C.A.post("/api/review/".concat(r._id,"/").concat(r.contentId),r);case 1:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){_e(i,r,o,s,a,"next",e)}function a(e){_e(i,r,o,s,a,"throw",e)}s(void 0)})})()}},computed:be(be({},(0,W.L8)("view",["viewData"])),{},{sectionReactions:function(){var e=this,t={};return this.$reviewStore.reviews.forEach(function(n){n.sectionReactions.forEach(function(r){r.sectionId===e.section._id&&null!=r.reaction&&(t.hasOwnProperty(r.reaction)?(t[r.reaction].number+=1,t[r.reaction].reviewers.push(n.reviewerDetails.name)):t[r.reaction]={number:1,reviewers:[n.reviewerDetails.name]})})}),t},sectionComments:function(){var e=this;return this.allReviewsReactions.filter(function(t){return t.sectionId===e.section._id}).map(function(e){return e.comments}).flat().filter(function(t){var n=e.$reviewStore.filters.showResolved||!t.resolved,r=e.$reviewStore.filters.activeFilter===G.cj.ALL_CATEGORIES||t.label===e.$reviewStore.filters.activeFilter;return n&&r})},allReviewsReactions:function(){return this.$reviewStore.reviews.map(function(e){return e.sectionReactions}).flat()},sortedComments:function(){return ve(this.sectionComments).sort(function(e,t){return new Date(e.createdAt)-new Date(t.createdAt)})},isThereStickyHeader:function(){return this.viewData.stickedHeader}})},Ce=(0,R.A)(Oe,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("fab"),c=(0,r.g2)("Icon"),u=(0,r.g2)("Comment");return e.$reviewStore.displayUI?((0,r.uX)(),(0,r.CE)("div",{key:0,id:n.section._id,class:(0,o.C4)(["review-fabs",n.section.type,{"sticky-header":a.isThereStickyHeader}]),style:(0,o.Tr)({zIndex:n.invertedIndex})},[(0,r.Lk)("div",oe,[Object.values(a.sectionReactions).length?((0,r.uX)(),(0,r.CE)("div",ie,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.sectionReactions,function(e,t){return(0,r.uX)(),(0,r.Wv)(l,{key:t,icon:null,tooltip:a.getTooltip(t,e.reviewers),"tooltip-position":"top"},{reaction:(0,r.k6)(function(){return[(0,r.Lk)("div",se,[(0,r.Lk)("div",ae,[(0,r.Lk)("img",{src:a.getReactionImage(t),alt:"reaction"},null,8,le)]),e.number>1?((0,r.uX)(),(0,r.CE)("span",ce,(0,o.v_)(e.number),1)):(0,r.Q3)("v-if",!0)])]}),_:2},1032,["tooltip"])}),128))],512)):(0,r.Q3)("v-if",!0),a.sectionComments.length?((0,r.uX)(),(0,r.CE)("div",ue,[(0,r.bF)(l,{icon:null,onClick:a.showComments,tooltip:"
2Comments","tooltip-position":"top"},{comment:(0,r.k6)(function(){return[(0,r.Lk)("div",de,[(0,r.bF)(c,{"icon-name":"chat"}),(0,r.Lk)("span",null,(0,o.v_)(a.sectionComments.length),1)])]}),_:1},8,["onClick"]),s.comments?((0,r.uX)(),(0,r.CE)("div",pe,[(0,r.Lk)("div",fe,[t[0]||(t[0]=(0,r.Lk)("div",null,"Comments",-1)),(0,r.bF)(c,{iconName:"close",onClick:a.showComments},null,8,["onClick"])]),(0,r.Lk)("div",he,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.sortedComments,function(e,t){return(0,r.uX)(),(0,r.Wv)(u,{key:e.label,comment:e,"resolve-comment":function(){return a.resolveComment(e)},edit:!1,index:t},null,8,["comment","resolve-comment","index"])}),128))],512)])):(0,r.Q3)("v-if",!0)],512)):(0,r.Q3)("v-if",!0)])],14,re)):(0,r.Q3)("v-if",!0)}]]);n(88623);const Te={name:"FabWrapper",components:{ReceiverFabs:Ce,ReviewFabs:ne},props:["section","hovering","invertedIndex"],computed:{isReceiverMode:function(){return this.$reviewStore.receiver||this.$reviewStore.review&&this.$reviewStore.review.submitted}}},Ae=(0,R.A)(Te,[["render",function(e,t,n,o,i,s){var a=(0,r.g2)("ReceiverFabs"),l=(0,r.g2)("ReviewFabs");return s.isReceiverMode?((0,r.uX)(),(0,r.Wv)(a,{key:0,invertedIndex:n.invertedIndex,hovering:n.hovering,section:n.section},null,8,["invertedIndex","hovering","section"])):((0,r.uX)(),(0,r.Wv)(l,{key:1,invertedIndex:n.invertedIndex,hovering:n.hovering,section:n.section},null,8,["invertedIndex","hovering","section"]))}]])},85041(e,t,n){"use strict";n.d(t,{A:()=>Ve});var r=n(20641),o=n(90033),i={key:0,class:"body-row"},s={key:0,class:"overviews"};var a=n(46335),l=n(14437),c={class:"receiver-overview-container"},u={key:0,class:"review-selector"},d={key:1,class:"overview-tab"},p={key:4,class:"empty-state-overlay"},f={class:"text-with-icon"};var h=n(5412),m=n(97229),v=n(80074),g={class:"follow-up-container"},y={key:0,class:"follow-ups"},b={key:2,class:"input-row"};var w=n(45442),S=n(60792),k=n(98005),_=n(65498),O=n(66427),C=n(19783);const T=n.p+"src/assets/images/message.e17bd938.svg";var A=n(82124);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return j(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(j(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,j(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,j(d,"constructor",c),j(c,"constructor",l),l.displayName="GeneratorFunction",j(c,o,"GeneratorFunction"),j(d),j(d,o,"Generator"),j(d,r,function(){return this}),j(d,"toString",function(){return"[object Generator]"}),(L=function(){return{w:i,m:p}})()}function j(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}j=function(e,t,n,r){function i(t,n){j(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},j(e,t,n,r)}function M(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const D={name:"FollowUps",props:["isEmpty"],components:{ReceiverEmptyState:C.A,CommentComponent:O.A,Icon:a.A,EditorContent:w.$Z},data:function(){return{text:"",editor:null,inputFocused:!1,MessagesIllu:T}},mounted:function(){var e=this;this.editor=new w.KE({content:this.text,extensions:[S.A,k.A.configure({placeholder:"Type your comment here",showOnlyWhenEditable:!0,showOnlyCurrent:!0})],onUpdate:function(t){t.getJSON,t.getHTML;e.applyTextEdit(e.editor.getText())},onBlur:function(){e.inputFocused=!1},onFocus:function(){e.inputFocused=!0}})},methods:{sendFollowup:function(){var e,t=this;return(e=L().m(function e(){var n;return L().w(function(e){for(;;)switch(e.n){case 0:return t.$reviewStore.review.followUps.push({createdAt:Date.now(),fromUserId:t.loggedInUser._id,text:t.text}),n="/api/review/"+t.$reviewStore.review._id+"/"+t.$reviewStore.review.contentId,t.receiverMode?n+="?followup=owner":n+="?followup=reviewer",e.n=1,_.A.post(n,t.$reviewStore.review);case 1:t.text="",t.editor.commands.clearContent({emitUpdate:!1});case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){M(i,r,o,s,a,"next",e)}function a(e){M(i,r,o,s,a,"throw",e)}s(void 0)})})()},applyTextEdit:function(e){this.text=e}},computed:P(P({},(0,A.L8)("view",["viewData"])),{},{review:function(){return this.$reviewStore.review},loggedInUser:function(){return this.$reviewStore.receiver?this.$store.state.user:this.$reviewStore.review.reviewerDetails},receiverMode:function(){return this.$reviewStore.receiver},ownerUserName:function(){return this.viewData.user?this.viewData.user.name:"John Doe"}})};var R=n(66262);const N=(0,R.A)(D,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("CommentComponent"),c=(0,r.g2)("ReceiverEmptyState"),u=(0,r.g2)("EditorContent"),d=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",g,[a.review.followUps.length?((0,r.uX)(),(0,r.CE)("div",y,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.review.followUps,function(e){return(0,r.uX)(),(0,r.Wv)(l,{key:e,comment:e,edit:!1},null,8,["comment"])}),128))])):((0,r.uX)(),(0,r.Wv)(c,{key:1,title:"No follow-up messages yet","body-text":a.receiverMode?"Start a follow-up conversation with "+a.ownerUserName+" and we will notify them about it.":"Write a follow-up message to your reviewer and we will notify them about it",illu:s.MessagesIllu},null,8,["body-text","illu"])),n.isEmpty?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",b,[(0,r.bF)(u,{editor:s.editor,class:(0,o.C4)("ufo--text-area-comment")},null,8,["editor"]),(0,r.bF)(d,{class:(0,o.C4)({disabled:!this.text}),"icon-name":"send",onClick:a.sendFollowup},null,8,["class","onClick"])]))])}],["__scopeId","data-v-67a6e98b"]]);var F={class:"comments-tab"},B={key:0,class:"filter-container"},U={class:"footer-option-resolved"},H=["onClick"],$={class:"page-name"},z={key:0,class:"comments-container"},W={key:1},G={class:"filter-container"},X={class:"footer-option-resolved"};n(85584);var V=n(51634),K=n(28304),q=n(74256),Y={class:"reaction-display-container"},Q={class:"reaction-wrapper"},J={class:"image-wrapper"},Z=["src"],ee={class:"name"};var te=n(26700),ne=n(87355),re=n(64245),oe=n(7615),ie=n(95889);function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ae(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==se(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue={name:"DisplayReaction",props:["reaction"],data:function(){return{reactions:[{name:"like",value:"👍",img:te},{name:"heart",value:"💖",img:ne},{name:"clap",value:"👏",img:re},{name:"bulb",value:"💡",img:oe},{name:"check",value:"✅",img:ie}]}},methods:{getReactionImage:function(){var e=this;return this.reactions.find(function(t){return t.value===e.reaction}).img}},computed:le(le({},(0,A.L8)("view",["viewData"])),{},{user:function(){var e=this,t=this.$reviewStore.receiver?this.$store.state.user:this.viewData.user;if(this.reaction.fromUserId){if(t&&this.reaction.fromUserId===t._id)return{name:t.name,image:t.image};var n=this.$reviewStore.reviews.map(function(e){return e.reviewerDetails}).find(function(t){return t._id===e.comment.fromUserId});return n||this.$reviewStore.review.reviewerDetails}return this.$reviewStore.review.reviewerDetails}})},de=(0,R.A)(ue,[["render",function(e,t,n,i,s,a){return(0,r.uX)(),(0,r.CE)("div",Y,[(0,r.Lk)("div",Q,[(0,r.Lk)("div",J,[(0,r.Lk)("img",{src:a.getReactionImage(),alt:"reaction"},null,8,Z)])]),(0,r.Lk)("div",ee,[(0,r.Lk)("span",null,(0,o.v_)(a.user.name),1),t[0]||(t[0]=(0,r.eW)(" added a reaction",-1))])])}],["__scopeId","data-v-bac42344"]]),pe=n.p+"src/assets/images/empty-comments.d80a3d9f.svg";function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ve(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return ge(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ge(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ge(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ge(d,"constructor",c),ge(c,"constructor",l),l.displayName="GeneratorFunction",ge(c,o,"GeneratorFunction"),ge(d),ge(d,o,"Generator"),ge(d,r,function(){return this}),ge(d,"toString",function(){return"[object Generator]"}),(ve=function(){return{w:i,m:p}})()}function ge(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ge=function(e,t,n,r){function i(t,n){ge(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ge(e,t,n,r)}function ye(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?be(Object(n),!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ke={name:"CommentsComponent",props:["isEmpty"],components:{ReceiverEmptyState:C.A,DisplayReaction:de,ToggleSwitch:K.A,DropDownSelect:V.A,CommentComponent:O.A,Icon:a.A},data:function(){return{openedPage:"",filter:{options:Object.values(q.cj)},EmptyCommentsIllu:pe,ReviewCommentsFilterEnum:q.cj}},methods:{openPageGroup:function(e){this.openedPage===e?this.openedPage="":this.openedPage=e},commentsLengthByPage:function(e){var t=this;return this.filteredSectionReactions.map(function(e){var n=[],r="";return e.comments.map(function(t){r=t.fromUserId,n.push(we(we({},t),{},{page:e.pageData.shortId,sectionData:e.sectionId,type:"comment"}))}),e.reaction&&t.activeFilter===q.cj.ALL_CATEGORIES&&n.push({fromUserId:r,reaction:e.reaction,page:e.pageData.shortId,sectionData:e.sectionId,type:"reaction"}),n}).flat().filter(function(t){return t.page===e})},resolveComment:function(e){var t,n=this;return(t=ve().m(function t(){var r,o;return ve().w(function(t){for(;;)switch(t.n){case 0:return(r=n.$reviewStore.review.sectionReactions.find(function(t){return t.comments.some(function(t){return t._id===e._id})}))&&(o=r.comments.find(function(t){return t._id===e._id}))&&(o.resolved=!o.resolved),t.n=1,_.A.post("/api/review/".concat(n.$reviewStore.review._id,"/").concat(n.$reviewStore.review.contentId),n.$reviewStore.review);case 1:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){ye(i,r,o,s,a,"next",e)}function a(e){ye(i,r,o,s,a,"throw",e)}s(void 0)})})()},navigateToReaction:function(e){var t=this,n=300,r=window.location.pathname,o=!window.location.pathname.includes("/p/"),i=this.viewData.portfolio.shortId,s=this.receiverMode?"/myreviews/":"/review/";r.includes(e.page)||("home"===e.page?o||(n=1e3,this.$router.push(s+i)):(n=1500,this.$router.push(s+"p/"+i+"/"+e.page))),setTimeout(function(){var n=document.getElementById(e.sectionData);e.reaction||t.emitter.emit("open-comment",e.sectionData),n&&n.scrollIntoView({behavior:"smooth"})},n)},changeFilter:function(e){this.activeFilter=e}},computed:we(we({},(0,A.L8)("view",["viewData"])),{},{availablePages:function(){var e=this,t=[],n=new Set;return this.filteredSectionReactions.forEach(function(r){!n.has(r.pageData.shortId)&&(r.comments.length||r.reaction&&e.activeFilter===q.cj.ALL_CATEGORIES)&&(n.add(r.pageData.shortId),t.push(r.pageData))}),t.length&&(this.openedPage=t[0].shortId),t},filteredSectionReactions:function(){var e=this;return this.$reviewStore.review.sectionReactions.filter(function(t){return e.availableSectionIds.includes(t.sectionId)}).map(function(t){var n=t.comments.filter(function(t){var n=e.$reviewStore.filters.showResolved||!t.resolved,r=e.$reviewStore.filters.activeFilter===q.cj.ALL_CATEGORIES||t.label===e.$reviewStore.filters.activeFilter;return n&&r});return we(we({},t),{},{comments:n})})},receiverMode:function(){return this.$reviewStore.receiver},availableSectionIds:function(){return[].concat(he(this.viewData.portfolioPages.map(function(e){return e.sections.map(function(e){return e._id})}).flat()),["portfolio-hero","footer"])},hasResolvedComments:function(){return this.$reviewStore.review.sectionReactions.length},showResolved:{get:function(){return this.$reviewStore.filters.showResolved},set:function(e){this.$reviewStore.filters.showResolved=e}},activeFilter:{get:function(){return this.$reviewStore.filters.activeFilter},set:function(e){this.$reviewStore.filters.activeFilter=e}}})},_e=(0,R.A)(ke,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("ToggleSwitch"),c=(0,r.g2)("DropDownSelect"),u=(0,r.g2)("Icon"),d=(0,r.g2)("CommentComponent"),p=(0,r.g2)("DisplayReaction"),f=(0,r.g2)("ReceiverEmptyState");return(0,r.uX)(),(0,r.CE)("div",F,[a.availablePages.length?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[n.isEmpty?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",B,[(0,r.bF)(c,{icon:"filters",selected:a.activeFilter,options:s.filter.options,onClick:t[1]||(t[1]=function(e){return a.changeFilter(e)}),"dark-scheme":""},{"footer-option":(0,r.k6)(function(){return[(0,r.Lk)("div",U,[t[4]||(t[4]=(0,r.Lk)("div",null,"Show resolved",-1)),(0,r.bF)(l,{value:a.showResolved,modelValue:a.showResolved,"onUpdate:modelValue":t[0]||(t[0]=function(e){return a.showResolved=e}),"dark-scheme":""},null,8,["value","modelValue"])])]}),_:1},8,["selected","options"])])),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.availablePages,function(e){return(0,r.uX)(),(0,r.CE)("div",{class:"page-group",key:e.shortId},[(0,r.Lk)("div",{onClick:function(){return a.openPageGroup(e.shortId)},class:"page-details"}
2,[(0,r.Lk)("div",$,(0,o.v_)(e.name)+" ("+(0,o.v_)(a.commentsLengthByPage(e.shortId).length)+")",1),(0,r.bF)(u,{"icon-name":s.openedPage===e.shortId?"chevron-up":"chevron-down"},null,8,["icon-name"])],8,H),s.openedPage===e.shortId?((0,r.uX)(),(0,r.CE)("div",z,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(a.commentsLengthByPage(e.shortId),function(e){return(0,r.uX)(),(0,r.CE)(r.FK,null,["comment"===e.type?((0,r.uX)(),(0,r.Wv)(d,{key:0,comment:e,edit:!1,onClick:function(){return a.navigateToReaction(e)},"resolve-comment":function(){return a.resolveComment(e)}},null,8,["comment","onClick","resolve-comment"])):((0,r.uX)(),(0,r.Wv)(p,{key:1,reaction:e.reaction,onClick:function(){return a.navigateToReaction(e)}},null,8,["reaction","onClick"]))],64)}),256))])):(0,r.Q3)("v-if",!0)])}),128))],64)):a.hasResolvedComments?((0,r.uX)(),(0,r.CE)("div",W,[(0,r.Lk)("div",G,[(0,r.bF)(c,{icon:"filters",selected:a.activeFilter,options:s.filter.options,onClick:t[3]||(t[3]=function(e){return a.changeFilter(e)}),"dark-scheme":""},{"footer-option":(0,r.k6)(function(){return[(0,r.Lk)("div",X,[t[5]||(t[5]=(0,r.Lk)("div",null,"Show resolved",-1)),(0,r.bF)(l,{value:a.showResolved,modelValue:a.showResolved,"onUpdate:modelValue":t[2]||(t[2]=function(e){return a.showResolved=e}),"dark-scheme":""},null,8,["value","modelValue"])])]}),_:1},8,["selected","options"])]),(0,r.bF)(f,{title:a.activeFilter===s.ReviewCommentsFilterEnum.ALL_CATEGORIES?"All comments have been resolved":"There are no comments in this category",illu:s.EmptyCommentsIllu},null,8,["title","illu"])])):((0,r.uX)(),(0,r.Wv)(f,{key:2,title:"The selected reviewer hasnât added any comments",illu:s.EmptyCommentsIllu},null,8,["illu"]))])}],["__scopeId","data-v-5c01168a"]]);var Oe=n(53751),Ce={class:"ufo--dd-selector"},Te={class:"user-value"},Ae=["src"],Ee={class:"user-details"},xe={class:"user-name"},Pe={class:"user-job-title"},Ie={key:0,class:"ufo--dd-options"},Le=["onClick"],je={class:"user-value"},Me=["src"],De={class:"user-details"},Re={class:"user-name"},Ne={class:"user-job-title"};var Fe=n(69183);const Be={name:"UserSelectDropdown",inheritAttrs:!1,components:{UserImagePlaceholder:n(62820).A,Icon:a.A},props:{label:{type:String,default:null},selected:{type:Object,default:null},options:{type:Array,default:null},darkScheme:{type:Boolean,default:!1}},data:function(){return{showOptions:!1,dropdownSelectIcon:Fe}},methods:{toggleDropDown:function(){this.showOptions=!this.showOptions},selectOption:function(e){this.showOptions=!1,this.$emit("click",e)}}},Ue=(0,R.A)(Be,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("UserImagePlaceholder"),c=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["ufo--dd-select",{dark:n.darkScheme}]),tabindex:"1",onBlur:t[1]||(t[1]=function(e){return s.showOptions=!1})},[n.label?((0,r.uX)(),(0,r.CE)("label",{key:0,class:(0,o.C4)({open:s.showOptions})},(0,o.v_)(n.label),3)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",Ce,[(0,r.Lk)("div",{class:(0,o.C4)(["ufo--dd-selected",{open:s.showOptions}]),onClick:t[0]||(t[0]=function(e){return a.toggleDropDown()})},[(0,r.Lk)("div",Te,[n.selected.image&&n.selected.image.url?((0,r.uX)(),(0,r.CE)("img",{key:0,class:"profile-picture",alt:"userimage",src:n.selected.image.url},null,8,Ae)):((0,r.uX)(),(0,r.Wv)(l,{key:1,name:n.selected.name,size:"small"},null,8,["name"])),(0,r.Lk)("div",Ee,[(0,r.Lk)("div",xe,(0,o.v_)(n.selected.name),1),(0,r.Lk)("div",Pe,(0,o.v_)(n.selected.jobTitle),1)])]),(0,r.bF)(c,{"icon-name":"dropdown-select"})],2),(0,r.bF)(Oe.Transition,{name:"drop-down"},{default:(0,r.k6)(function(){return[s.showOptions?((0,r.uX)(),(0,r.CE)("div",Ie,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.options,function(e){return(0,r.uX)(),(0,r.CE)("div",{key:e,onClick:function(t){return a.selectOption(e)},class:(0,o.C4)(["ufo--dd-option",{selected:n.selected===e.email}])},[(0,r.Lk)("div",je,[e.image&&e.image.url?((0,r.uX)(),(0,r.CE)("img",{key:0,class:"profile-picture",alt:"userimage",src:e.image.url},null,8,Me)):((0,r.uX)(),(0,r.Wv)(l,{key:1,name:e.name,size:"small"},null,8,["name"])),(0,r.Lk)("div",De,[(0,r.Lk)("div",Re,(0,o.v_)(e.name),1),(0,r.Lk)("div",Ne,(0,o.v_)(e.jobTitle),1)])]),n.selected===e.email?((0,r.uX)(),(0,r.Wv)(c,{key:0,"icon-name":"checkmark"})):(0,r.Q3)("v-if",!0)],10,Le)}),128))])):(0,r.Q3)("v-if",!0)]}),_:1})])],34)}],["__scopeId","data-v-734c8346"]]);function He(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return $e(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):($e(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,$e(d,"constructor",c),$e(c,"constructor",l),l.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(d),$e(d,o,"Generator"),$e(d,r,function(){return this}),$e(d,"toString",function(){return"[object Generator]"}),(He=function(){return{w:i,m:p}})()}function $e(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,n,r){function i(t,n){$e(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},$e(e,t,n,r)}function ze(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function We(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){ze(i,r,o,s,a,"next",e)}function a(e){ze(i,r,o,s,a,"throw",e)}s(void 0)})}}const Ge={name:"ReceiverOverview",props:["isEmpty"],components:{CommentsComponent:_e,FollowUps:N,TabItem:v.A,TabBar:m.A,CtaButton:h.A,OverviewField:l.A,UserSelectDropdown:Ue,Icon:a.A},data:function(){return{overViewTabs:[{name:"Overview",key:"overview"},{name:"Comments",key:"comments"},{name:"Follow-up",key:"followup"}],activeTab:"overview",selectedReviewer:null,copied:!1}},mounted:function(){this.selectedReviewer=this.reviewer,this.setRead(),this.$route.query.followup&&(this.activeTab="followup")},methods:{copyLink:function(){var e=this;return We(He().m(function t(){var n;return He().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,n=window.location.origin+"/review/"+e.$store.state.portfolio.shortId,t.n=1,navigator.clipboard.writeText(n);case 1:e.copied=!0,setTimeout(function(){e.copied=!1},2e3),t.n=3;break;case 2:t.p=2,t.v;case 3:return t.a(2)}},t,null,[[0,2]])}))()},changeTab:function(e){this.activeTab=e},updateSelectedReview:function(e){this.selectedReviewer=e,this.$reviewStore.review=this.$reviewStore.reviews.find(function(t){return t.reviewer===e.email}),this.setRead()},setRead:function(){var e=this;return We(He().m(function t(){var n,r;return He().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e.$reviewStore.review.read){t.n=4;break}if(e.$reviewStore.review.read=!0,!e.$reviewStore.review._id||!e.$reviewStore.review.contentId){t.n=4;break}return n="/api/review/"+e.$reviewStore.review._id+"/"+e.$reviewStore.review.contentId,t.p=1,t.n=2,_.A.post(n,e.$reviewStore.review);case 2:t.n=4;break;case 3:t.p=3,r=t.v,console.log("error while setting read",r);case 4:return t.a(2)}},t,null,[[1,3]])}))()}},computed:{reviews:function(){return this.$reviewStore.reviews},reviewer:function(){return this.$reviewStore.review.reviewerDetails},receiverMode:function(){return this.$reviewStore.receiver},isUserPremium:function(){return this.$store.getters.userIsPremium}}},Xe={name:"OverviewComponent",props:["reviewMode","isEmpty"],components:{ReceiverOverview:(0,R.A)(Ge,[["render",function(e,t,n,i,s,a){var l=(0,r.g2)("UserSelectDropdown"),h=(0,r.g2)("TabItem"),m=(0,r.g2)("TabBar"),v=(0,r.g2)("OverviewField"),g=(0,r.g2)("CommentsComponent"),y=(0,r.g2)("FollowUps"),b=(0,r.g2)("Icon"),w=(0,r.g2)("CtaButton");return(0,r.uX)(),(0,r.CE)("div",c,[a.receiverMode?((0,r.uX)(),(0,r.CE)("div",u,[s.selectedReviewer?((0,r.uX)(),(0,r.Wv)(l,{key:0,selected:s.selectedReviewer,options:a.reviews.map(function(e){return e.reviewerDetails}),onClick:t[0]||(t[0]=function(e){return a.updateSelectedReview(e)}),"dark-scheme":""},null,8,["selected","options"])):(0,r.Q3)("v-if",!0)])):(0,r.Q3)("v-if",!0),(0,r.bF)(m,{"dark-scheme":"",class:"tab-bar"},{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(s.overViewTabs,function(e){return(0,r.uX)(),(0,r.Wv)(h,{key:e.key,label:e.name,active:e.key===s.activeTab,onClick:function(t){return a.changeTab(e.key)},"dark-scheme":""},null,8,["label","active","onClick"])}),128))]}),_:1}),"overview"===s.activeTab?((0,r.uX)(),(0,r.CE)("div",d,[(0,r.bF)(v,{"is-input":!1,fieldToUpdate:"positiveAspects",title:"Positive aspects",icon:"positive-aspect"}),(0,r.bF)(v,{"is-input":!1,fieldToUpdate:"negativeAspects",title:"Areas of improvement",icon:"areas-of-improvement"})])):(0,r.Q3)("v-if",!0),"comments"===s.activeTab?((0,r.uX)(),(0,r.Wv)(g,{key:2,isEmpty:n.isEmpty},null,8,["isEmpty"])):(0,r.Q3)("v-if",!0),"followup"===s.activeTab?((0,r.uX)(),(0,r.Wv)(y,{key:3,isEmpty:this.isEmpty},null,8,["isEmpty"])):(0,r.Q3)("v-if",!0),n.isEmpty&&"followup"!==s.activeTab?((0,r.uX)(),(0,r.CE)("div",p,[t[1]||(t[1]=(0,r.Lk)("div",{class:"text-wrapper"},[(0,r.Lk)("div",{class:"title-text"},"This is just an example review"),(0,r.Lk)("div",{class:"subtitle-text"},"Share your review link with mentors and peers to collect reviews.")],-1)),(0,r.bF)(w,{"tooltip-position":"bottom",tooltip:a.isUserPremium?void 0:"Publish your portfolio to get a shareable link.",disabled:!a.isUserPremium,size:"small","dark-scheme":"",type:"primary",onClick:a.copyLink},{default:(0,r.k6)(function(){return[(0,r.Lk)("div",f,[(0,r.bF)(b,{"icon-name":"link"}),(0,r.eW)(" "+(0,o.v_)(s.copied?"Copied!":"Copy review link"),1)])]}),_:1},8,["tooltip","disabled","onClick"])])):(0,r.Q3)("v-if",!0)])}],["__scopeId","data-v-3df49ace"]]),OverviewField:l.A,Icon:a.A},mounted:function(){(this.$route.query.followup||this.$route.query.reviewer)&&(this.isOpen=!0)},computed:{positivePlaceholder:function(){return"Write about what you like about this portfolio focusing on the following areas:\n- look & feel\n- information architecture\n- selection of projects\n- quality of visuals"},negativePlaceholder:function(){return"Write about what could be improved about this portfolio focusing on the following areas:\n- look & feel\n- information architecture\n- selection of projects\n- quality of visuals"},isReceiverMode:function(){return this.$reviewStore.receiver||this.$reviewStore.review&&this.$reviewStore.review.submitted},isOpen:{get:function(){return this.$reviewStore.showGeneralOverview},set:function(e){this.$reviewStore.showGeneralOverview=e}}}},Ve=(0,R.A)(Xe,[["render",function(e,t,n,a,l,c){var u=(0,r.g2)("Icon"),d=(0,r.g2)("OverviewField"),p=(0,r.g2)("ReceiverOverview");return e.$reviewStore.displayUI?((0,r.uX)(),(0,r.CE)("div",{key:0,id:"overview",ref:"overview",class:(0,o.C4)(["overview-container",{isOpen:c.isOpen},{receiver:c.isReceiverMode}])},[(0,r.Lk)("div",{class:(0,o.C4)(["header-row",{isOpen:c.isOpen}]),onClick:t[0]||(t[0]=function(e){return c.isOpen=!c.isOpen})},[(0,r.eW)((0,o.v_)(e.$reviewStore.receiver?"Read reviews":"Overview")+" ",1),(0,r.bF)(u,{"icon-name":c.isOpen?"chevron-down":"chevron-up"},null,8,["icon-name"])],2),c.isOpen?((0,r.uX)(),(0,r.CE)("div",i,[c.isReceiverMode?((0,r.uX)(),(0,r.Wv)(p,{key:1,"is-empty":this.isEmpty},null,8,["is-empty"])):((0,r.uX)(),(0,r.CE)("div",s,[(0,r.bF)(d,{"is-input":!0,fieldToUpdate:"positiveAspects",title:"Positive aspects",icon:"positive-aspect",placeholder:c.positivePlaceholder},null,8,["placeholder"]),(0,r.bF)(d,{"is-input":!0,fieldToUpdate:"negativeAspects",title:"Areas of improvement",icon:"areas-of-improvement",placeholder:c.negativePlaceholder},null,8,["placeholder"])]))])):(0,r.Q3)("v-if",!0)],2)):(0,r.Q3)("v-if",!0)}],["__scopeId","data-v-49d7ad50"]])},14437(e,t,n){"use strict";n.d(t,{A:()=>C});
2var r=n(20641),o=n(90033);const i=n.p+"src/assets/images/saving-oval.7e6a4fe9.png";var s={class:"overview-input-group"},a={class:"title-container"},l={class:"editor-toolbar"},c={class:"buttons"},u={key:0,class:"save-feedback-container"},d={key:1,src:i,width:"16",height:"16"},p=["innerHTML"];var f=n(45442),h=n(60792),m=n(98005),v=n(46335),g=n(65498),y=n(85584),b=n(19783);const w=n.p+"src/assets/images/empty-comments-large.bb1350d6.svg";function S(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return k(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(k(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,k(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,k(d,"constructor",c),k(c,"constructor",l),l.displayName="GeneratorFunction",k(c,o,"GeneratorFunction"),k(d),k(d,o,"Generator"),k(d,r,function(){return this}),k(d,"toString",function(){return"[object Generator]"}),(S=function(){return{w:i,m:p}})()}function k(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}k=function(e,t,n,r){function i(t,n){k(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},k(e,t,n,r)}function _(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const O={name:"OverviewInputBox",props:["title","icon","placeholder","fieldToUpdate","isInput"],components:{ReviewResultEmptyState:y.A,EditorContent:f.$Z,Icon:v.A,ReceiverEmptyState:b.A},data:function(){return{text:"",typeInterval:null,inactivityInterval:null,editor:null,focused:!1,saved:!1,saving:!1,EmptyCommentsLargeIllu:w}},mounted:function(){var e=this;this.$reviewStore.review.overview[this.fieldToUpdate]&&(this.text=this.$reviewStore.review.overview[this.fieldToUpdate],this.saved=!0),this.isInput&&(this.editor=new f.KE({content:this.text,extensions:[h.A,m.A.configure({placeholder:this.placeholder,showOnlyWhenEditable:!0,showOnlyCurrent:!0})],onUpdate:function(t){t.getJSON,t.getHTML;e.applyTextEdit(e.editor.getHTML(),e.editor.getText()),e.typeInterval&&(clearInterval(e.typeInterval),e.typeInterval=null),e.typeInterval=setInterval(function(){e.autoSave()},3e3)},onBlur:function(){e.focused=!1,e.clearAllIntervals(),e.autoSave()},onFocus:function(){e.focused=!0,e.checkReviewerUser()}}))},methods:{clearAllIntervals:function(){clearInterval(this.typeInterval),this.typeInterval=null,clearInterval(this.inactivityInterval),this.inactivityInterval=null},applyTextEdit:function(e,t){this.$reviewStore.review.overview[this.fieldToUpdate]=t.length?e:null},autoSave:function(){this.reviewer&&(this.saving=!0,this.saveReview(),clearInterval(this.typeInterval),this.typeInterval=null)},checkReviewerUser:function(){this.reviewer||(this.$reviewStore.showReviewLoginModal=!0)},saveReview:function(){var e,t=this;return(e=S().m(function e(){var n;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,g.A.post("/api/review/"+t.$reviewStore.review._id+"/"+t.$reviewStore.review.contentId,t.$reviewStore.review);case 1:t.saved=!0,t.saving=!1,e.n=3;break;case 2:e.p=2,n=e.v,console.log("Failed to save review",n);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){_(i,r,o,s,a,"next",e)}function a(e){_(i,r,o,s,a,"throw",e)}s(void 0)})})()},htmlToString:function(e){return e.replaceAll("<p>","").replaceAll("</p>","").replaceAll("<ul>","").replaceAll("</ul>","").replaceAll("<li>","").replaceAll("</li>","")},closeAndOpenOverview:function(){this.$reviewStore.showOverviewModal=!1,this.$reviewStore.showGeneralOverview=!0}},computed:{overviewText:function(){return this.$reviewStore.review.overview[this.fieldToUpdate]},reviewer:function(){return this.$reviewStore.review.reviewerDetails},aspectDone:function(){return null!=this.$reviewStore.review.overview[this.fieldToUpdate]&&this.htmlToString(this.$reviewStore.review.overview[this.fieldToUpdate]).length>=1},receiverMode:function(){return this.$reviewStore.receiver}}};const C=(0,n(66262).A)(O,[["render",function(e,t,n,i,f,h){var m=(0,r.g2)("Icon"),v=(0,r.g2)("EditorContent"),g=(0,r.g2)("ReviewResultEmptyState"),y=(0,r.g2)("ReceiverEmptyState");return(0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",a,[(0,r.bF)(m,{"icon-name":n.icon},null,8,["icon-name"]),(0,r.Lk)("p",null,(0,o.v_)(n.title),1)]),f.editor&&n.isInput?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,o.C4)(["input-text-box",[{focused:f.focused}]])},[(0,r.bF)(v,{editor:f.editor,class:(0,o.C4)("ufo--text-area-review-overview")},null,8,["editor"]),(0,r.Lk)("div",l,[(0,r.Lk)("div",c,[(0,r.Lk)("span",{onClick:t[0]||(t[0]=function(e){return f.editor.chain().focus().toggleBold().run()}),class:(0,o.C4)({active:f.editor.isActive("bold")})},[(0,r.bF)(m,{iconName:"text-bold"})],2),(0,r.Lk)("span",{onClick:t[1]||(t[1]=function(e){return f.editor.chain().focus().toggleItalic().run()}),class:(0,o.C4)({active:f.editor.isActive("italic")})},[(0,r.bF)(m,{iconName:"text-italic"})],2),(0,r.Lk)("span",{onClick:t[2]||(t[2]=function(e){return f.editor.chain().focus().toggleOrderedList().run()}),class:(0,o.C4)({active:f.editor.isActive("orderedList")})},[(0,r.bF)(m,{iconName:"text-ol"})],2),(0,r.Lk)("span",{onClick:t[3]||(t[3]=function(e){return f.editor.chain().focus().toggleBulletList().run()}),class:(0,o.C4)({active:f.editor.isActive("bulletList")})},[(0,r.bF)(m,{iconName:"text-ul"})],2)]),f.saved?((0,r.uX)(),(0,r.CE)("div",u,[f.saving?((0,r.uX)(),(0,r.CE)("img",d)):((0,r.uX)(),(0,r.Wv)(m,{key:0,"icon-name":"check"})),t[4]||(t[4]=(0,r.Lk)("span",null,"Saved",-1))])):(0,r.Q3)("v-if",!0)])],2)):!n.isInput&&h.aspectDone?((0,r.uX)(),(0,r.CE)("div",{key:1,class:"overview-text",innerHTML:h.overviewText},null,8,p)):((0,r.uX)(),(0,r.CE)(r.FK,{key:2},[h.receiverMode?((0,r.uX)(),(0,r.Wv)(y,{key:1,title:"The selected reviewer hasn't added anything here",illu:f.EmptyCommentsLargeIllu,size:"small"},null,8,["illu"])):((0,r.uX)(),(0,r.Wv)(g,{key:0,title:n.title,"button-text":"Add "+n.title,"handle-click":h.closeAndOpenOverview},null,8,["title","button-text","handle-click"]))],64))])}],["__scopeId","data-v-006a7206"]])},19783(e,t,n){"use strict";n.d(t,{A:()=>u});
2var r=n(20641),o=n(90033),i=["src"],s={class:"text-container"},a={class:"title-text"},l={key:0,class:"subtitle-text"};const c={name:"ReceiverEmptyState",props:["title","illu","bodyText","size"]};const u=(0,n(66262).A)(c,[["render",function(e,t,n,c,u,d){return(0,r.uX)(),(0,r.CE)("div",{class:(0,o.C4)(["empty-state",[n.size]])},[(0,r.Lk)("img",{rel:"preload",alt:"text-commnet",src:n.illu},null,8,i),(0,r.Lk)("div",s,[(0,r.Lk)("div",a,(0,o.v_)(n.title),1),n.bodyText?((0,r.uX)(),(0,r.CE)("div",l,(0,o.v_)(n.bodyText),1)):(0,r.Q3)("v-if",!0)])],2)}],["__scopeId","data-v-5bd7383f"]])},16259(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(20641),o=n(90033),i={class:"navigation-row-container"},s={key:0,class:"left-side"},a={class:"main-text"},l={class:"portfolio-text"},c={key:1,class:"left-side"},u={key:2,class:"middle"},d={class:"right-side"},p={key:0,class:"button-wrapper"},f={key:1,class:"button-container"},h={class:"text-with-icon"};var m=n(47233),v=n(34528);var g=n(46335);g.A;var y=n(66262);var b=n(5412),w=n(57831),S=n(93116),k=n(29279),_=n(80411),O=n(82124);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return P(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(P(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,P(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,P(d,"constructor",c),P(c,"constructor",l),l.displayName="GeneratorFunction",P(c,o,"GeneratorFunction"),P(d),P(d,o,"Generator"),P(d,r,function(){return this}),P(d,"toString",function(){return"[object Generator]"}),(x=function(){return{w:i,m:p}})()}function P(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}P=function(e,t,n,r){function i(t,n){P(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},P(e,t,n,r)}function I(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const L={name:"ReviewNav",props:["showOverviewModal","reviewMode"],components:{ClickOutsideObserver:_.A,LargeTooltip:k.A,OptionBarGroup:w.A,OptionBar:S.A,Icon:g.A,CtaButton:b.A,InlineSvg:v.A},data:function(){return{logo:m,viewOptions:{hide:{type:"hide",label:"View only"},show:{type:"show",label:"Comment"}},viewMode:"show",copied:!1,tooltipData:{title:"Share your feedback",subtitle:"When youâre ready, check and submit your review.",arrowpos:"top top-right"},tooltipMounted:!1}},watch:{reviewSectionReactionsLength:"mountTooltip",reviewOverviewPositive:"mountTooltip",reviewOverviewNegative:"mountTooltip"},methods:{openPortfolio:function(){try{var e=window.location.origin+"/home/portfolios/"+this.$store.state.portfolio.shortId;window.open(e,"_blank")}catch(e){}},copyLink:function(){var e,t=this;return(e=x().m(function e(){var n;return x().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=window.location.origin+"/review/"+t.$store.state.portfolio.shortId,e.n=1,navigator.clipboard.writeText(n);case 1:t.copied=!0,setTimeout(function(){t.copied=!1},2e3),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){I(i,r,o,s,a,"next",e)}function a(e){I(i,r,o,s,a,"throw",e)}s(void 0)})})()},changeViewMode:function(e){this.$reviewStore.displayUI="show"===e,this.viewMode=e},closeTooltip:function(e){this.isActive=!1},mountTooltip:function(){var e=this;this.emptyReview&&(this.$reviewStore.emptyReview=!1,setTimeout(function(){e.isActive=!0,setTimeout(function(){e.isActive=!0},1e4)},3e4))}},computed:A(A({},(0,O.L8)("view",["viewData"])),{},{review:function(){return this.$reviewStore.review},username:function(){return this.viewData.user?this.viewData.user.n
2ame:""},isUserPremium:function(){return this.$store.getters.userIsPremium},isActive:{get:function(){return this.$reviewStore.showSubmitTooltip},set:function(e){this.$reviewStore.showSubmitTooltip=e}},reviewSectionReactionsLength:function(){return this.$reviewStore.review.sectionReactions.length},reviewOverviewPositive:function(){return this.$reviewStore.review.overview.positiveAspects},reviewOverviewNegative:function(){return this.$reviewStore.review.overview.negativeAspects},emptyReview:function(){return this.$reviewStore.emptyReview}})},j=(0,y.A)(L,[["render",function(e,t,n,m,v,g){var y=(0,r.g2)("InlineSvg"),b=(0,r.g2)("OptionBar"),w=(0,r.g2)("OptionBarGroup"),S=(0,r.g2)("CtaButton"),k=(0,r.g2)("LargeTooltip"),_=(0,r.g2)("ClickOutsideObserver"),O=(0,r.g2)("Icon");return(0,r.uX)(),(0,r.CE)("div",i,[n.reviewMode?((0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",a,[(0,r.bF)(y,{src:v.logo},null,8,["src"]),t[0]||(t[0]=(0,r.Lk)("div",null,"UXfolio review mode",-1))]),t[2]||(t[2]=(0,r.Lk)("div",{class:"divider"},null,-1)),(0,r.Lk)("div",l,[t[1]||(t[1]=(0,r.eW)("Portfolio by ",-1)),(0,r.Lk)("span",null,(0,o.v_)(g.username),1)])])):((0,r.uX)(),(0,r.CE)("div",c,[(0,r.bF)(y,{src:v.logo},null,8,["src"])])),n.reviewMode?((0,r.uX)(),(0,r.CE)("div",u,[(0,r.bF)(w,null,{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(v.viewOptions,function(e){return(0,r.uX)(),(0,r.Wv)(b,{label:e.label,key:e.type,selected:v.viewMode===e.type,onClick:function(t){return g.changeViewMode(e.type)},icon:e.svg,size:"small"},null,8,["label","selected","onClick","icon"])}),128))]}),_:1})])):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",d,[n.reviewMode?((0,r.uX)(),(0,r.CE)("div",p,[(0,r.bF)(_,{"is-active":g.isActive,onClickOutside:g.closeTooltip},{default:(0,r.k6)(function(){return[(0,r.bF)(S,{size:"small",disabled:e.$reviewStore.review.submitted,"dark-scheme":"",type:"primary",onClick:n.showOverviewModal},{default:(0,r.k6)(function(){return[(0,r.eW)((0,o.v_)(e.$reviewStore.review.submitted?"Review submitted":"Preview & send review"),1)]}),_:1},8,["disabled","onClick"]),g.isActive?((0,r.uX)(),(0,r.Wv)(k,{key:0,ref:"checklisttooltip",title:v.tooltipData.title,subtitle:v.tooltipData.subtitle,"arrow-pos":v.tooltipData.arrowpos},null,8,["title","subtitle","arrow-pos"])):(0,r.Q3)("v-if",!0)]}),_:1},8,["is-active","onClickOutside"])])):((0,r.uX)(),(0,r.CE)("div",f,[(0,r.bF)(S,{"tooltip-position":"left",tooltip:g.isUserPremium?void 0:"Publish your portfolio to get a shareable link.",disabled:!g.isUserPremium,size:"small","dark-scheme":"",type:"primary",onClick:g.copyLink},{default:(0,r.k6)(function(){return[(0,r.Lk)("div",h,[(0,r.bF)(O,{"icon-name":"link"}),(0,r.eW)(" "+(0,o.v_)(v.copied?"Copied!":"Copy review link"),1)])]}),_:1},8,["tooltip","disabled","onClick"])]))])])}],["__scopeId","data-v-585f7418"]])},85584(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20641),o=n(90033),i={class:"review-result-empty-state-container"};const s={name:"ReviewResultEmptyState",components:{TertiaryButton:n(1868).A},props:["title","buttonText","handleClick"],computed:{isReceiverMode:function(){return this.$reviewStore.receiver},isSubmittedMode:function(){return this.$reviewStore.review&&this.$reviewStore.review.submitted}}};const a=(0,n(66262).A)(s,[["render",function(e,t,n,s,a,l){var c=(0,r.g2)("TertiaryButton");return(0,r.uX)(),(0,r.CE)("div",i,[(0,r.Lk)("p",null,(0,o.v_)(l.isReceiverMode?"You reviewer hasn't added any "+n.title:"You haven't added any "+n.title),1),l.isReceiverMode||l.isSubmittedMode?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(c,{key:0,onClick:n.handleClick,"dark-scheme":"",text:n.buttonText,icon:"add",type:"subtle"},null,8,["onClick","text"]))])}],["__scopeId","data-v-fa3636fa"]])},4472(e,t,n){"use strict";n.d(t,{A:()=>R});var r=n(20641),o=n(90033);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a={class:"tab-data"},l={key:0,class:"overview"},c={key:1,class:"comments"},u={class:"selector-container"},d={class:"comments-list"},p={key:1,class:"comments-empty-container"};var f=n(5412),h=n(14437),m=n(66427),v=n(65498),g=n(51634),y=n(79271),b=n(13124),w=n(8851),S=n(97229),k=n(80074),_=n(55445),O=n(97073),C=n(74256),T=n(85584),A=n(82124);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?x(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return j(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(j(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,j(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,j(d,"constructor",c),j(c,"constructor",l),l.displayName="GeneratorFunction",j(c,o,"GeneratorFunction"),j(d),j(d,o,"Generator"),j(d,r,function(){return this}),j(d,"toString",function(){return"[object Generator]"}),(L=function(){return{w:i,m:p}})()}function j(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}j=function(e,t,n,r){function i(t,n){j(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},j(e,t,n,r)}function M(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const D={name:"OverviewModal",props:["show","close","admin","openSuccessModal"],components:{ReviewResultEmptyState:T.A,ModalBody:_.A,TabItem:k.A,TabBar:S.A,ModalHeader:w.A,ModalFooter:b.A,ModalWrapper:y.A,DropDownSelect:g.A,CtaButton:f.A,OverviewField:h.A,Comment:m.A},data:function(){return{tabs:[{key:"overview",name:"Overview",svg:null},{key:"comments",name:"Comments",svg:null}],activeTab:"overview",selectedPage:{name:"",shortId:"home"},isDisabled:!1,ReviewStateEnum:C.z4}},mounted:function(){var e=this.availablePages;e.length&&(this.selectedPage=e[0])},methods:{submitReview:function(){var e,t=this;return(e=L().m(function e(){var n;return L().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,v.A.post("/api/review/submit/"+t.$reviewStore.review._id+"/"+t.$reviewStore.review.contentId);case 1:e.v,(0,O.f0)("Submit Review",{event_category:"Review mode",event_label:"Reviewer: ".concat(t.$reviewStore.review.reviewerDetails.email,", Portfolio: ").concat(t.viewData.portfolio._id)}),t.$store.state.user?(t.close(),t.openSuccessModal()):window.location.replace(window.location.origin+"/result"),e.n=3;break;case 2:e.p=2,n=e.v,console.log("Failed to save review",n);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){M(i,r,o,s,a,"next",e)}function a(e){M(i,r,o,s,a,"throw",e)}s(void 0)})})()},changeTab:function(e){this.activeTab=e},updateSelected:function(e){this.selectedPage=this.availablePages.find(function(t){return t.name===e})},getSelectedName:function(e){return this.availablePages.find(function(t){return t.shortId===e}).name},htmlToString:function(e){return e.replaceAll("<p>","").replaceAll("</p>","").replaceAll("<ul>","").replaceAll("</ul>","").replaceAll("<li>","").replaceAll("</li>","")},checkIndicator:function(e){return this.reviewState!==C.z4.EMPTY&&this.reviewState!==C.z4.FINISHED&&("overview"===e?!this.positiveAspectsDone||!this.negativeAspectsDone:"comments"===e?!this.sectionInteractionAdded:void 0)}},computed:P(P({},(0,A.L8)("view",["viewData"])),{},{sectionReactionComments:function(){var e=this;return this.$reviewStore.review.sectionReactions.map(function(e){return e.comments.map(function(t){return P(P({},t),{},{page:e.pageData.shortId})})}).flat().filter(function(t){return t.page===e.selectedPage.shortId})},availablePages:function(){var e=[],t=new Set;return this.$reviewStore.review.sectionReactions.forEach(function(n){!t.has(n.pageData.shortId)&&n.comments.length&&(t.add(n.pageData.shortId),e.push(n.pageData))}),e},reviewState:function(){var e=[this.positiveAspectsDone,this.negativeAspectsDone,this.sectionInteractionAdded].filter(
2Boolean).length;switch(this.isDisabled=e<1,e){case 0:return C.z4.EMPTY;case 1:case 2:return C.z4.INCOMPLETE;default:return C.z4.FINISHED}},positiveAspectsDone:function(){return null!=this.$reviewStore.review.overview.positiveAspects&&this.htmlToString(this.$reviewStore.review.overview.positiveAspects).length>=1},negativeAspectsDone:function(){return null!=this.$reviewStore.review.overview.negativeAspects&&this.htmlToString(this.$reviewStore.review.overview.negativeAspects).length>=1},sectionInteractionAdded:function(){return this.$reviewStore.review.sectionReactions.filter(function(e){return e.comments.length>0}).length>0}})};const R=(0,n(66262).A)(D,[["render",function(e,t,n,s,f,h){var m=this,v=(0,r.g2)("TabItem"),g=(0,r.g2)("TabBar"),y=(0,r.g2)("ModalHeader"),b=(0,r.g2)("OverviewField"),w=(0,r.g2)("DropDownSelect"),S=(0,r.g2)("Comment"),k=(0,r.g2)("ReviewResultEmptyState"),_=(0,r.g2)("ModalBody"),O=(0,r.g2)("CtaButton"),C=(0,r.g2)("ModalFooter"),T=(0,r.g2)("ModalWrapper");return(0,r.uX)(),(0,r.Wv)(T,{show:n.show,onClose:n.close,"modal-size":"medium","dark-scheme":""},{"modal-header":(0,r.k6)(function(){return[(0,r.bF)(y,{title:"Review summary","dark-scheme":""},(0,r.eX)({tabPills:(0,r.k6)(function(){return[(0,r.bF)(g,{"dark-scheme":"","hide-border":""},{default:(0,r.k6)(function(){return[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(f.tabs,function(e){return(0,r.uX)(),(0,r.Wv)(v,{key:e.key,icon:e.svg,label:e.name,active:e.key===f.activeTab,"dark-scheme":"",onClick:function(){return h.changeTab(e.key)}},(0,r.eX)({_:2},[h.checkIndicator(e.key)?{name:"indicator",fn:(0,r.k6)(function(){return[t[1]||(t[1]=(0,r.Lk)("div",{class:"dot"},null,-1))]}),key:"0"}:void 0]),1032,["icon","label","active","onClick"])}),128))]}),_:1})]}),_:2},[h.reviewState!==f.ReviewStateEnum.FINISHED?{name:"titlePill",fn:(0,r.k6)(function(){return[(0,r.Lk)("div",{class:(0,o.C4)(["pill",h.reviewState])},(0,o.v_)(h.reviewState),3)]}),key:"0"}:void 0]),1024)]}),"modal-body":(0,r.k6)(function(){return[(0,r.bF)(_,null,{default:(0,r.k6)(function(){return[(0,r.Lk)("div",a,["overview"===f.activeTab?((0,r.uX)(),(0,r.CE)("div",l,[(0,r.bF)(b,{fieldToUpdate:"positiveAspects","is-input":!1,title:"positive aspects",icon:"positive-aspect"}),(0,r.bF)(b,{fieldToUpdate:"negativeAspects","is-input":!1,title:"areas of improvement",icon:"areas-of-improvement"})])):(0,r.Q3)("v-if",!0),"comments"===f.activeTab?((0,r.uX)(),(0,r.CE)("div",c,[h.sectionReactionComments.length?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.Lk)("div",u,[(0,r.bF)(w,{label:"Show comments on",selected:h.getSelectedName(f.selectedPage.shortId),options:h.availablePages.map(function(e){return e.name}),onClick:t[0]||(t[0]=function(e){return h.updateSelected(e)}),"dark-scheme":""},null,8,["selected","options"])]),(0,r.Lk)("div",d,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(h.sectionReactionComments,function(e,t){return(0,r.uX)(),(0,r.Wv)(S,{key:e.label,comment:e,edit:!1,index:t},null,8,["comment","index"])}),128))])],64)):((0,r.uX)(),(0,r.CE)("div",p,[(0,r.bF)(k,{title:"comments","button-text":"Add comments","handle-click":function(){return m.close()}},null,8,["handle-click"])]))])):(0,r.Q3)("v-if",!0)])]}),_:1})]}),"modal-footer":(0,r.k6)(function(){return[n.admin?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.Wv)(C,{key:0},{default:(0,r.k6)(function(){return[(0,r.bF)(O,{"dark-scheme":"",type:"secondary",onClick:n.close},{default:(0,r.k6)(function(){return i(t[2]||(t[2]=[(0,r.eW)("Back to reviewing",-1)]))}),_:1},8,["onClick"]),(0,r.bF)(O,{"dark-scheme":"",type:"primary",disabled:f.isDisabled,onClick:h.submitReview},{default:(0,r.k6)(function(){return i(t[3]||(t[3]=[(0,r.eW)("Submit review",-1)]))}),_:1},8,["disabled","onClick"])]}),_:1}))]}),_:1},8,["show","onClose"])}],["__scopeId","data-v-5416898a"]])},72728(e,t,n){var r=n(6741);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(70534).A)("d3a74e1c",r,!1,{})},23608(e,t,n){var r=n(9731);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(70534).A)("0e4b09cb",r,!1,{})},8322(e,t,n){var r=n(62523);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(70534).A)("73cd39b2",r,!1,{})},98401(e,t,n){var r=n(23972);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);(0,n(70534).A)("c39d107c",r,!1,{})},70534(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=i[0],a={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.d(t,{A:()=>h});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){c=n,d=o||{};var s=r(e,t);return m(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(l=i[a.id]).refs--,n.push(l)}t?m(s=r(e,t)):s=[];for(o=0;o<n.length;o++){var l;if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(g(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(g(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function v(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function g(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(f){var o=l++;r=a||(a=v()),t=w.bind(null,r,o,!1),n=w.bind(null,r,o,!0)}else r=v(),t=S.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}
2var y,b=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function w(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function S(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(p,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},82124(e,t,n){"use strict";n.d(t,{y$:()=>F,i0:()=>z,L8:()=>$,aH:()=>H,Pj:()=>f});var r=n(20641),o=n(50953);function i(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const s="function"==typeof Proxy;let a,l;function c(){return void 0!==a||("undefined"!=typeof window&&window.performance?(a=!0,l=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(a=!0,l=globalThis.perf_hooks.performance):a=!1),a?l.now():Date.now();var e}class u{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(e){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}o=e},now:()=>c()},t&&t.on("plugin:settings:set",(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function d(e,t){const n=e,r=i(),o=i().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=s&&n.enableEarlyProxy;if(!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new u(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit("devtools-plugin:setup",e,t)}var p="store";function f(e){return void 0===e&&(e=null),(0,r.WQ)(null!==e?e:p)}function h(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function m(e){return null!==e&&"object"==typeof e}function v(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function g(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;b(e,n,[],e._modules.root,!0),y(e,n,t)}function y(e,t,n){var i=e._state,s=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,l={},c={},u=(0,o.uY)(!0);u.run(function(){h(a,function(t,n){l[n]=function(e,t){return function(){return e(t)}}(t,e),c[n]=(0,r.EW)(function(){return l[n]()}),Object.defineProperty(e.getters,n,{get:function(){return c[n].value},enumerable:!0})})}),e._state=(0,o.Kh)({data:t}),e._scope=u,e.strict&&function(e){(0,r.wB)(function(){return e._state.data},function(){0},{deep:!0,flush:"sync"})}(e),i&&n&&e._withCommit(function(){i.data=null}),s&&s.stop()}function b(e,t,n,r,o){var i=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=r),!i&&!o){var a=S(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var c=r.context=function(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=k(n,r,o),s=i.payload,a=i.options,l=i.type;return a&&a.root||(l=t+l),e.dispatch(l,s)},commit:r?e.commit:function(n,r,o){var i=k(n,r,o),s=i.payload,a=i.options,l=i.type;a&&a.root||(l=t+l),e.commit(l,s,a)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return w(e,t)}},state:{get:function(){return S(e.state,n)}}}),o}(e,s,n);r.forEachMutation(function(t,n){!function(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(t){n.call(e,r.state,t)})}(e,s+n,t,c)}),r.forEachAction(function(t,n){var r=t.root?n:s+n,o=t.handler||t;!function(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(t){var o,i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);
2return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):i})}(e,r,o,c)}),r.forEachGetter(function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,s+n,t,c)}),r.forEachChild(function(r,i){b(e,t,n.concat(i),r,o)})}function w(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function S(e,t){return t.reduce(function(e,t){return e[t]},e)}function k(e,t,n){return m(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var _="vuex:mutations",O="vuex:actions",C="vuex",T=0;function A(e,t){d({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},function(n){n.addTimelineLayer({id:_,label:"Vuex Mutations",color:E}),n.addTimelineLayer({id:O,label:"Vuex Actions",color:E}),n.addInspector({id:C,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===C)if(n.filter){var r=[];L(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[I(t._modules.root,"")]}),n.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===C){var r=n.nodeId;w(t,r),n.state=function(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map(function(t){return{key:t,editable:!0,value:e.state[t]}})};if(r.length){var i=function(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var o=t,i=r.pop();r.forEach(function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value}),o[i]=j(function(){return e[n]})}else t[n]=j(function(){return e[n]})}),t}(t);o.getters=Object.keys(i).map(function(e){return{key:e.endsWith("/")?P(e):e,editable:!1,value:j(function(){return i[e]})}})}return o}((o=t._modules,(s=(i=r).split("/").filter(function(e){return e})).reduce(function(e,t,n){var r=e[t];if(!r)throw new Error('Missing module "'+t+'" for path "'+i+'".');return n===s.length-1?r:r._children},"root"===i?o:o.root._children)),"root"===r?t.getters:t._makeLocalGettersCache,r)}var o,i,s}),n.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===C){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit(function(){n.set(t._state.data,o,n.state.value)})}}),t.subscribe(function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(C),n.sendInspectorState(C),n.addTimelineEvent({layerId:_,event:{time:Date.now(),title:e.type,data:r}})}),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=T++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:O,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},o=Date.now()-e._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:O,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})})}var E=8702998,x={label:"namespaced",textColor:16777215,backgroundColor:6710886};function P(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function I(e,t){return{id:t||"root",label:P(t),tags:e.namespaced?[x]:[],children:Object.keys(e._children).map(function(n){return I(e._children[n],t+n+"/")})}}function L(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[x]:[]}),Object.keys(t._children).forEach(function(o){L(e,t._children[o],n,r+o+"/")})}function j(e){try{return e()}catch(e){return e}}var M=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},D={namespaced:{configurable:!0}};D.namespaced.get=function(){return!!this._rawModule.namespaced},M.prototype.addChild=function(e,t){this._children[e]=t},M.prototype.removeChild=function(e){delete this._children[e]},M.prototype.getChild=function(e){return this._children[e]},M.prototype.hasChild=function(e){return e in this._children},M.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},M.prototype.forEachChild=function(e){h(this._children,e)},M.prototype.forEachGetter=function(e){this._rawModule.getters&&h(this._rawModule.getters,e)},M.prototype.forEachAction=function(e){this._rawModule.actions&&h(this._rawModule.actions,e)},M.prototype.forEachMutation=function(e){this._rawModule.mutations&&h(this._rawModule.mutations,e)},Object.defineProperties(M.prototype,D);var R=function(e){this.register([],e,!1)};function N(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;N(e.concat(r),t.getChild(r),n.modules[r])}}R.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},R.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},R.prototype.update=function(e){N([],this.root,e)},R.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new M(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&h(t.modules,function(t,o){r.register(e.concat(o),t,n)})},R.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},R.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};function F(e){return new B(e)}var B=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new R(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,s=this.dispatch,a=this.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return a.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;
2b(this,l,[],this._modules.root),y(this,l),n.forEach(function(e){return e(t)})},U={state:{configurable:!0}};B.prototype.install=function(e,t){e.provide(t||p,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&A(e,this)},U.state.get=function(){return this._state.data},U.state.set=function(e){0},B.prototype.commit=function(e,t,n){var r=this,o=k(e,t,n),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),l=this._mutations[i];l&&(this._withCommit(function(){l.forEach(function(e){e(s)})}),this._subscribers.slice().forEach(function(e){return e(a,r.state)}))},B.prototype.dispatch=function(e,t){var n=this,r=k(e,t),o=r.type,i=r.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(s,n.state)})}catch(e){0}var l=a.length>1?Promise.all(a.map(function(e){return e(i)})):a[0](i);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(s,n.state)})}catch(e){0}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(s,n.state,e)})}catch(e){0}t(e)})})}},B.prototype.subscribe=function(e,t){return v(e,this._subscribers,t)},B.prototype.subscribeAction=function(e,t){return v("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},B.prototype.watch=function(e,t,n){var o=this;return(0,r.wB)(function(){return e(o.state,o.getters)},t,Object.assign({},n))},B.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},B.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),b(this,this.state,e,this._modules.get(e),n.preserveState),y(this,this.state)},B.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){delete S(t.state,e.slice(0,-1))[e[e.length-1]]}),g(this)},B.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},B.prototype.hotUpdate=function(e){this._modules.update(e),g(this,!0)},B.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(B.prototype,U);var H=G(function(e,t){var n={};return W(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=X(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0}),n}),$=(G(function(e,t){var n={};return W(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=X(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}}),n}),G(function(e,t){var n={};return W(t).forEach(function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||X(this.$store,"mapGetters",e))return this.$store.getters[o]},n[r].vuex=!0}),n})),z=G(function(e,t){var n={};return W(t).forEach(function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=X(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}}),n});function W(e){return function(e){return Array.isArray(e)||m(e)}(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function G(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function X(e,t,n){return e._modulesNamespaceMap[n]}},36389(e,t,n){var r={"./default.svg":69814,"./hover.svg":7435,"./preview_1.svg":30125,"./preview_2.svg":81774,"./project_hover.svg":56677};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=36389},19909(e,t,n){var r={"./preview_1.svg":30125};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=19909}
2,67536(e,t,n){var r={"./preview_2.svg":81774};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=67536},89956(e,t,n){var r={"./default.svg":44733,"./hover.svg":4004,"./preview_1.svg":84898,"./preview_2.svg":65297,"./project_hover_1.svg":66298,"./project_hover_2.svg":27465};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=89956},11264(e,t,n){var r={"./preview_1.svg":84898,"./project_hover_1.svg":66298};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=11264},533(e,t,n){var r={"./preview_2.svg":65297,"./project_hover_2.svg":27465};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=533},54882(e,t,n){var r={"./default.svg":16019,"./hover.svg":52466,"./preview_1.svg":89172,"./preview_2.svg":60679,"./project_hover.svg":7140};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=54882},30026(e,t,n){var r={"./preview_1.svg":89172};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=30026},48859(e,t,n){var r={"./preview_2.svg":60679};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=48859},33408(e,t,n){var r={"./default.svg":59541,"./hover.svg":14540,"./preview_1.svg":59594,"./preview_2.svg":50969,"./project_hover.svg":95674};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=33408},74724(e,t,n){var r={"./preview_1.svg":59594};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=74724},75833(e,t,n){var r={"./preview_2.svg":50969};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=75833},23811(e,t,n){var r={"./default.svg":85948,"./hover.svg":61289,"./preview_1.svg":70831,"./preview_2.svg":91804,"./project_hover.svg":14471};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=23811},52895(e,t,n){var r={"./preview_1.svg":70831};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=52895},66974(e,t,n){var r={"./preview_2.svg":91804};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=66974},40323(e,t,n){var r={"./ARROW/default.svg":69814,"./ARROW/hover.svg":7435,"./ARROW/preview_1.svg":30125,"./ARROW/preview_2.svg":81774,"./ARROW/project_hover.svg":56677,"./BLURRED/default.svg":44733,"./BLURRED/hover.svg":4004,"./BLURRED/preview_1.svg":84898,"./BLURRED/preview_2.svg":65297,"./BLURRED/project_hover_1.svg":66298,"./BLURRED/project_hover_2.svg":27465,"./CIRCLE/default.svg":96399,"./CIRCLE/hover.svg":13814,"./CIRCLE/preview_1.svg":81752,"./CIRCLE/preview_2.svg":32491,"./CIRCLE/project_hover.svg":15608,"./DEFAULT/default.svg":29274,"./DEFAULT/hover.svg":43815,"./DEFAULT/preview_1.svg":26249,"./DEFAULT/preview_2.svg":666,"./DEFAULT/project_hover.svg":41185,"./EMOJI/default.svg":16019,"./EMOJI/hover.svg":52466,"./EMOJI/preview_1.svg":89172,"./EMOJI/preview_2.svg":60679,"./EMOJI/project_hover.svg":7140,"./FIGMA/default.svg":59541,"./FIGMA/hover.svg":14540,"./FIGMA/preview_1.svg":59594,"./FIGMA/preview_2.svg":50969,"./FIGMA/project_hover.svg":95674,"./LABELED/default.svg":85948,"./LABELED/hover.svg":61289,"./LABELED/preview_1.svg":70831,"./LABELED/preview_2.svg":91804,"./LABELED/project_hover.svg":14471};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=40323},87135(e,t,n){var r={"./ARROW/preview_1.svg":30125,"./BLURRED/preview_1.svg":84898,"./BLURRED/project_hover_1.svg":66298,"./CIRCLE/preview_1.svg":81752,"./DEFAULT/preview_1.svg":26249,"./EMOJI/preview_1.svg":89172,"./FIGMA/preview_1.svg":59594,"./LABELED/preview_1.svg":70831};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=87135},92542(e,t,n){var r={"./ARROW/preview_2.svg":81774,"./BLURRED/preview_2.svg":65297,"./BLURRED/project_hover_2.svg":27465,"./CIRCLE/preview_2.svg":32491,"./DEFAULT/preview_2.svg":666,"./EMOJI/preview_2.svg":60679,"./FIGMA/preview_2.svg":50969,"./LABELED/preview_2.svg":91804};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=92542},19600(e,t,n){var r={"./_theme-eight-base.scss":[26222,[6222]],"./_theme-eighteen-base.scss":[25606,[5606]],"./_theme-eleven-base.scss":[50390,[390]],"./_theme-fifteen-base.scss":[41568,[1568]],"./_theme-five-base.scss":[96629,[6629]],"./_theme-fourteen-base.scss":[54241,[4241]],"./_theme-one-base.scss":[50163,[163]],"./_theme-seven-base.scss":[39175,[1556]],"./_theme-seventeen-base.scss":[73104,[3104]],"./_theme-six-base.scss":[59963,[9963]],"./_theme-sixteen-base.scss":[12647,[2647]],"./_theme-ten-base.scss":[17642,[7642]],"./_theme-thirteen-base.scss":[31548,[1548]],"./_theme-three-base.scss":[59059,[9059]],"./_theme-twelve-base.scss":[78826,[8826]],"./_theme-two-base.scss":[34629,[4629]]};function o(e){try{if(!n.o(r,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}catch(e){return Promise.reject(e)}var t=r[e],o=t[0];return n.e(t[1][0]).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=19600,e.exports=o},77238(e,t,n){"use strict";e.exports=n.p+"src/assets/images/adplist-logo.98313984.svg"},70722(e,t,n){"use strict";e.exports=n.p+"src/assets/images/attendance-icon.6abbf678.svg"}
2,16181(e,t,n){"use strict";e.exports=n.p+"src/assets/images/book-session.5dfda104.svg"},13234(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mentoring-time-icon.e525e1ec.svg"},76468(e,t,n){"use strict";e.exports=n.p+"src/assets/images/sessions-icon.25ed8c96.svg"},6518(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ai-custom-prompt-icon.092835c6.svg"},42929(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ai-fix-grammar-icon.c1506f73.svg"},15272(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ai-make-shorter-icon.e3de743b.svg"},78297(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ai-sparkle-one.0a0909fd.svg"},12619(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ai-sparkling.b52013cb.svg"},49590(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ai-stop-icon.cdddef23.svg"},87872(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ai-storytelling-icon.5eeb94be.svg"},15786(e,t,n){"use strict";e.exports=n.p+"src/assets/images/anim-type-selector-icon.a39a2f1e.svg"},30810(e,t,n){"use strict";e.exports=n.p+"src/assets/images/Arrow.b65c42fb.svg"},73598(e,t,n){"use strict";e.exports=n.p+"src/assets/images/Off.b199f81d.svg"},51703(e,t,n){"use strict";e.exports=n.p+"src/assets/images/Sparkle.f40a4848.svg"},17763(e,t,n){"use strict";e.exports=n.p+"src/assets/images/Star.1f53277c.svg"},28812(e,t,n){"use strict";e.exports=n.p+"src/assets/images/Wave.4caa919a.svg"},79341(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigate-page.c3f5acd0.svg"},2980(e,t,n){"use strict";e.exports=n.p+"src/assets/images/non-box-interaction.cddaedcd.svg"},11832(e,t,n){"use strict";e.exports=n.p+"src/assets/images/none-box.499f8809.svg"},32043(e,t,n){"use strict";e.exports=n.p+"src/assets/images/open-link.d1f75962.svg"},41212(e,t,n){"use strict";e.exports=n.p+"src/assets/images/pause.320b9d47.svg"},45529(e,t,n){"use strict";e.exports=n.p+"src/assets/images/slow.b9c13580.svg"},37465(e,t,n){"use strict";e.exports=n.p+"src/assets/images/linear.9465a90c.svg"},62621(e,t,n){"use strict";e.exports=n.p+"src/assets/images/wavy.d12ff944.svg"},95095(e,t,n){"use strict";e.exports=n.p+"src/assets/images/clipped.217d80ae.svg"},32096(e,t,n){"use strict";e.exports=n.p+"src/assets/images/faded.830476b8.svg"},83866(e,t,n){"use strict";e.exports=n.p+"src/assets/images/full-width.88a916ea.svg"},40824(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bring-in.aa4b0d98.svg"},79094(e,t,n){"use strict";e.exports=n.p+"src/assets/images/fade-in.69d5887a.svg"},97307(e,t,n){"use strict";e.exports=n.p+"src/assets/images/fall.b7f62897.svg"},34725(e,t,n){"use strict";e.exports=n.p+"src/assets/images/move-in.bc60c9bd.svg"},82262(e,t,n){"use strict";e.exports=n.p+"src/assets/images/none.157a09ff.svg"},45569(e,t,n){"use strict";e.exports=n.p+"src/assets/images/pan-left.a50ffbc0.svg"},5292(e,t,n){"use strict";e.exports=n.p+"src/assets/images/pan-right.d631a4af.svg"},98767(e,t,n){"use strict";e.exports=n.p+"src/assets/images/rise.c6be3c44.svg"},61206(e,t,n){"use strict";e.exports=n.p+"src/assets/images/scale.8a0f5b7f.svg"},59946(e,t,n){"use strict";e.exports=n.p+"src/assets/images/arrow-horizontal.1eab8120.svg"},4082(e,t,n){"use strict";e.exports=n.p+"src/assets/images/arrow-out.fe1de3aa.svg"},23876(e,t,n){"use strict";e.exports=n.p+"src/assets/images/16_9.ac703ab7.svg"},74130(e,t,n){"use strict";e.exports=n.p+"src/assets/images/1_1.1479b93f.svg"},11793(e,t,n){"use strict";e.exports=n.p+"src/assets/images/3_4.e53f534a.svg"},6733(e,t,n){"use strict";e.exports=n.p+"src/assets/images/4_3.9118422a.svg"},50856(e,t,n){"use strict";e.exports=n.p+"src/assets/images/9_16.559d15ba.svg"},20368(e,t,n){"use strict";e.exports=n.p+"src/assets/images/Original.37ef8df4.svg"},53713(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_3.093371f0.svg"},44718(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_4.1f7ec12c.svg"},49471(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_5.b747ad19.svg"},94124(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_6.59bd2b79.svg"},73837(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_7.54db3ad5.svg"},58322(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_8_a.7e991376.svg"},67809(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_8_b.04c3b406.svg"},26827(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_9_a.4bf6934f.svg"},68760(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_gradient_9_b.2a245290.svg"},77200(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_solid.03125787.svg"}
2,22207(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_1.f7ff5a98.svg"},59532(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_2.3596fa2d.svg"},6893(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_3.1ce1d6d7.svg"},78370(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_4.fb63fb15.svg"},65747(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_5.67a5cb39.svg"},21088(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_6.e5f31f22.svg"},19121(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_7.8dd9d3a6.svg"},67942(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_8.45a435c3.svg"},56919(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bg_style_9.c925ed68.svg"},67823(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background-type-curated-images.c0065d30.svg"},21214(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background-type-gradient.19c517fe.svg"},72470(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background-type-image-thumbnail.2cf2e6db.svg"},65289(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background-type-image.80fd2328.svg"},23916(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background-type-none.a8f53159.svg"},15043(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background-type-solid.ce4ef6bf.svg"},55978(e,t,n){"use strict";e.exports=n.p+"src/assets/images/outline-weight-1.b984e776.svg"},47353(e,t,n){"use strict";e.exports=n.p+"src/assets/images/outline-weight-2.4ca13450.svg"},65608(e,t,n){"use strict";e.exports=n.p+"src/assets/images/outline-weight-3.bdb448e4.svg"},54791(e,t,n){"use strict";e.exports=n.p+"src/assets/images/outline-weight-4.a53229bc.svg"},64523(e,t,n){"use strict";e.exports=n.p+"src/assets/images/outlined-pill.510a891e.svg"},77(e,t,n){"use strict";e.exports=n.p+"src/assets/images/outlined-rounded.b2d91528.svg"},45167(e,t,n){"use strict";e.exports=n.p+"src/assets/images/outlined-square.957881a1.svg"},10540(e,t,n){"use strict";e.exports=n.p+"src/assets/images/solid-pill.d9c9cf9b.svg"},6780(e,t,n){"use strict";e.exports=n.p+"src/assets/images/solid-rounded.d0e54e7c.svg"},83216(e,t,n){"use strict";e.exports=n.p+"src/assets/images/solid-square.3c1ecd09.svg"},54114(e,t,n){"use strict";e.exports=n.p+"src/assets/images/card-layout-row-2.16a47745.svg"},42712(e,t,n){"use strict";e.exports=n.p+"src/assets/images/card-layout-row-2x2.52680670.svg"},57843(e,t,n){"use strict";e.exports=n.p+"src/assets/images/card-layout-row-3.8e64efc5.svg"},23121(e,t,n){"use strict";e.exports=n.p+"src/assets/images/card-layout-row-3x2.f8f13160.svg"},17682(e,t,n){"use strict";e.exports=n.p+"src/assets/images/radius-lg.22997de3.svg"},9166(e,t,n){"use strict";e.exports=n.p+"src/assets/images/radius-md.0933badc.svg"},27104(e,t,n){"use strict";e.exports=n.p+"src/assets/images/radius-no.7e02a969.svg"},28733(e,t,n){"use strict";e.exports=n.p+"src/assets/images/radius-sm.b62993e0.svg"},20815(e,t,n){"use strict";e.exports=n.p+"src/assets/images/checkmark-lotti.1bbf7039.svg"},56807(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_16_9.ac81d90e.svg"},58547(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_1_1.c6430939.svg"},35638(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_2_3.b0ce8b9f.svg"},21278(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_3_2.b426e6e8.svg"},99682(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_4_5.5c9ed061.svg"},41898(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_5_4.464f1fbb.svg"},3119(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_9_16.bd7c5fa2.svg"},27462(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_circle.502a9cae.svg"},26419(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_custom.66e55486.svg"},86675(e,t,n){"use strict";e.exports=n.p+"src/assets/images/crop_original.e86e8bff.svg"},89451(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-button-link-copy-email.39371319.svg"},86887(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-button-link-navigate-to-page.ced9db67.svg"},57201(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-button-link-open-link.875dbf86.svg"}
2,21796(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-button-link-open-resume.201ebc48.svg"},11958(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-copy-email-light.7afadde4.svg"},34861(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-copy-email.491d9da4.svg"},97417(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-open-link-light.969d0e3b.svg"},16338(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-open-link.49961199.svg"},51218(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-open-new-tab.79787fb1.svg"},34412(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-open-page-light.a5715181.svg"},34559(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-open-page.58156190.svg"},69814(e,t,n){"use strict";e.exports=n.p+"src/assets/images/default.5b3aae7a.svg"},7435(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.77f65593.svg"},30125(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_1.21918b83.svg"},81774(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_2.119b0c4e.svg"},56677(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover.9f76f6f7.svg"},44733(e,t,n){"use strict";e.exports=n.p+"src/assets/images/default.0aed88f4.svg"},4004(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.12f0cb93.svg"},84898(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_1.36baa6b1.svg"},65297(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_2.c5ed6b08.svg"},66298(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover_1.0e6c89a8.svg"},27465(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover_2.063afc45.svg"},96399(e,t,n){"use strict";e.exports=n.p+"src/assets/images/default.5b3aae7a.svg"},13814(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.018cfecf.svg"},81752(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_1.21918b83.svg"},32491(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_2.75473054.svg"},15608(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover.51f4b5c4.svg"},29274(e,t,n){"use strict";e.exports=n.p+"src/assets/images/default.bb7096ed.svg"},43815(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.aec1cf17.svg"},26249(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_1.bb7096ed.svg"},666(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_2.aec1cf17.svg"},41185(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover.aec1cf17.svg"},16019(e,t,n){"use strict";e.exports=n.p+"src/assets/images/default.6769ddf4.svg"},52466(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.02d93c5f.svg"},89172(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_1.6769ddf4.svg"},60679(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_2.68e73a0a.svg"},7140(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover.02d93c5f.svg"},59541(e,t,n){"use strict";e.exports=n.p+"src/assets/images/default.382ae286.svg"},14540(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.872e2b7a.svg"},59594(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_1.52dfbbc7.svg"},50969(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_2.500cfab1.svg"},95674(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover.6955b04b.svg"},85948(e,t,n){"use strict";e.exports=n.p+"src/assets/images/default.5b3aae7a.svg"},61289(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.77f65593.svg"},70831(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_1.21918b83.svg"},91804(e,t,n){"use strict";e.exports=n.p+"src/assets/images/preview_2.766e5d17.svg"},14471(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project_hover.2dd8de3f.svg"},50255(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-position--full-width--above.fda858a7.svg"},5939(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-position--full-width--below.8548f9f2.svg"},91488(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-position--full-width--inline.f29d60be.svg"},44419(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-position--full-width--no-text.b6bd76e4.svg"},28653(e,t,n){"use strict";e.exports=n.p+"src/assets/images/weight--bold.f22259f1.svg"},95064(e,t,n){"use strict";e.exports=n.p+"src/assets/images/weight--light.905da81d.svg"},26617(e,t,n){"use strict";e.exports=n.p+"src/assets/images/weight--medium.cba4f900.svg"},21082(e,t,n){"use strict";e.exports=n.p+"src/assets/images/above.81881bb6.svg"},56474(e,t,n){"use strict";e.exports=n.p+"src/assets/images/below.a2d5d290.svg"},93271(e,t,n){"use strict";e.exports=n.p+"src/assets/images/in_line.aea7341c.svg"},1924(e,t,n){"use strict";e.exports=n.p+"src/assets/images/no_text.22867555.svg"},32658(e,t,n){"use strict";
2e.exports=n.p+"src/assets/images/icon-fab-add-button.65cc3f65.svg"},88618(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-add-link.bd8fde34.svg"},2018(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-add-media.ea645483.svg"},57559(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-add-page.4cece8ca.svg"},47967(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-add-testimonial.cf2d09af.svg"},31455(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-add-text.df8ed6ab.svg"},95988(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-brush.a6355d0b.svg"},5752(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-col-add.e6e96296.svg"},64331(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-col-remove.2453d135.svg"},41643(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-context-menu.578e6d53.svg"},35894(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-crop.6ff99e96.svg"},76221(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-delete.f19a3629.svg"},79796(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-desktop.e0ffeaf9.svg"},35696(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-down.a0312a49.svg"},94706(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-drag.c5e41a1f.svg"},26984(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-edit-logo.1f775b58.svg"},40375(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-edit-pages.6bd04ff8.svg"},38230(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-effects.53025700.svg"},31050(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-email-settings.ce301629.svg"},87229(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-filters.e8af4c9e.svg"},91597(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-flip.194c810e.svg"},50685(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-global-spacing.34b032c8.svg"},54173(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-history-clock.feeeaf0b.svg"},6692(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-history.4a558fc6.svg"},84813(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-idea.31242afe.svg"},77517(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-bi-cover.700a7a50.svg"},85125(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-bottom-align.9da2a71f.svg"},97470(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-display-mode.a1c1487b.svg"},47094(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-display.dc325e85.svg"},53876(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-fit-margin.949b3b98.svg"},50297(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-fit.f887549e.svg"},90649(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-it-large.a88f8ae7.svg"},11009(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-it-medium.c48ee81a.svg"},51249(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-it-small.4350d224.svg"},53441(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-large.8f385ecb.svg"},95897(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-medium.ab079ca8.svg"},42427(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-null.d7f4ad28.svg"},64697(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-image-small.77553406.svg"},35398(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-layout.3f54003c.svg"},80095(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-left.18a8a7e4.svg"},73929(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-lock.54d86a16.svg"},74458(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-mobile.9e7c54dc.svg"},52324(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-mockups.b61e846e.svg"},6634(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-nav-background-fill.3ca05ea7.svg"},57625(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-nav-font-color.f019e49b.svg"}
2,31940(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-pages.f467af79.svg"},24479(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-password.c2a4ae8d.svg"},99095(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-remove-media.a5df6631.svg"},88208(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-remove-mockup.0ab61a3a.svg"},79792(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-remove-page.086c59f1.svg"},89114(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-remove-testimonial.55031dce.svg"},96651(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-remove-thumbnail.a2bf2e9a.svg"},22181(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-reorder.bb7047a0.svg"},48476(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-replace.772fa568.svg"},67516(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-resize.f6a58a32.svg"},6266(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-right.e49f2c9a.svg"},17475(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-rotate-mockup.0bfe5733.svg"},83453(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-set-background.6de5156f.svg"},23931(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-set-default-portfolio.c06e094f.svg"},59171(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-settings.0e3ce707.svg"},94251(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-space-decrease.aae88d0a.svg"},54007(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-space-increase.8ddacb4c.svg"},13584(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-spacer-bottom.c1f7c206.svg"},1162(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-spacer-top.a6505caf.svg"},88195(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-style.fe9ddbc2.svg"},15581(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-success.d33cb3e1.svg"},62596(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-tablet.e03da33b.svg"},69367(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-thumbnail-layout.8869770d.svg"},69107(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-thumbnails.bcbbbb97.svg"},28352(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-unlock.8a3c27aa.svg"},54595(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-up.9ecce0d9.svg"},17407(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-fab-upload.94b78944.svg"},53859(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery-arrow-left.af1f8d27.svg"},72198(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery-arrow-right.d5dd34fa.svg"},94726(e,t,n){"use strict";e.exports=n.p+"src/assets/images/galley-device-type-desktop.43b0da4a.svg"},28782(e,t,n){"use strict";e.exports=n.p+"src/assets/images/galley-device-type-laptop.60a9de25.svg"},15900(e,t,n){"use strict";e.exports=n.p+"src/assets/images/galley-device-type-mobile.67c0d0d0.svg"},24688(e,t,n){"use strict";e.exports=n.p+"src/assets/images/galley-device-type-none.cbfc5bc1.svg"},12250(e,t,n){"use strict";e.exports=n.p+"src/assets/images/galley-device-type-tablet.9988094e.svg"},10215(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery-carousel.bf836ac6.svg"},47401(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery-grid.b15d96c3.svg"},78149(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery-offset-grid.9ee53618.svg"},9274(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery-slider.d8b86acb.svg"},61579(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery-tilted.f5cc3a17.svg"},82295(e,t,n){"use strict";e.exports=n.p+"src/assets/images/content-align-bottom.e7d89b9e.svg"},67241(e,t,n){"use strict";e.exports=n.p+"src/assets/images/content-align-center.093eb87e.svg"},2721(e,t,n){"use strict";e.exports=n.p+"src/assets/images/content-align-left.f8a075f3.svg"},39025(e,t,n){"use strict";e.exports=n.p+"src/assets/images/content-align-middle.470a8d6d.svg"},12332(e,t,n){"use strict";e.exports=n.p+"src/assets/images/content-align-right.596fb8df.svg"},47435(e,t,n){"use strict";
2e.exports=n.p+"src/assets/images/content-align-top.41f06861.svg"},96296(e,t,n){"use strict";e.exports=n.p+"src/assets/images/add-case-study-gradient.5529bd07.svg"},94946(e,t,n){"use strict";e.exports=n.p+"src/assets/images/add.43a54c21.svg"},43083(e,t,n){"use strict";e.exports=n.p+"src/assets/images/arrows.50866715.svg"},60908(e,t,n){"use strict";e.exports=n.p+"src/assets/images/back.18a8a7e4.svg"},30516(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bolt.a7bcd8c8.svg"},35936(e,t,n){"use strict";e.exports=n.p+"src/assets/images/checkmark.40f0b637.svg"},84190(e,t,n){"use strict";e.exports=n.p+"src/assets/images/chev-down.c8e7fe64.svg"},89109(e,t,n){"use strict";e.exports=n.p+"src/assets/images/chev-left.6c7a1dfe.svg"},86040(e,t,n){"use strict";e.exports=n.p+"src/assets/images/chev-right.3d472cb7.svg"},93077(e,t,n){"use strict";e.exports=n.p+"src/assets/images/chev-up.1213d3d4.svg"},582(e,t,n){"use strict";e.exports=n.p+"src/assets/images/copy.92ee38c8.svg"},74937(e,t,n){"use strict";e.exports=n.p+"src/assets/images/corner-radius.e09564f1.svg"},11105(e,t,n){"use strict";e.exports=n.p+"src/assets/images/dark.6e895588.svg"},71460(e,t,n){"use strict";e.exports=n.p+"src/assets/images/discount.ae1c5e7e.svg"},15338(e,t,n){"use strict";e.exports=n.p+"src/assets/images/draft.a5c6bb2c.svg"},69183(e,t,n){"use strict";e.exports=n.p+"src/assets/images/dropdown-select.c8e7fe64.svg"},18623(e,t,n){"use strict";e.exports=n.p+"src/assets/images/favicon.61deaceb.svg"},9245(e,t,n){"use strict";e.exports=n.p+"src/assets/images/figma-mono.2c12f35c.svg"},92821(e,t,n){"use strict";e.exports=n.p+"src/assets/images/folder.6c899e98.svg"},5502(e,t,n){"use strict";e.exports=n.p+"src/assets/images/font-size-icon.ec78288a.svg"},58743(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gift.f0eda55e.svg"},74136(e,t,n){"use strict";e.exports=n.p+"src/assets/images/globe.21e1ae18.svg"},75802(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hidden-gradient.d7868784.svg"},77857(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hidden.776c621a.svg"},45840(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-paste.e8412503.svg"},45285(e,t,n){"use strict";e.exports=n.p+"src/assets/images/info.7e763fea.svg"},63813(e,t,n){"use strict";e.exports=n.p+"src/assets/images/italic.ac1f489d.svg"},18454(e,t,n){"use strict";e.exports=n.p+"src/assets/images/key.29fcef9f.svg"},82247(e,t,n){"use strict";e.exports=n.p+"src/assets/images/light.548f7d0b.svg"},13169(e,t,n){"use strict";e.exports=n.p+"src/assets/images/line-height-icon.77665144.svg"},1859(e,t,n){"use strict";e.exports=n.p+"src/assets/images/minus.8c0f7454.svg"},91185(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mono-category-icon.8c06dc8c.svg"},87263(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation.bd450c41.svg"},69023(e,t,n){"use strict";e.exports=n.p+"src/assets/images/no-index.0b0a2f8e.svg"},66236(e,t,n){"use strict";e.exports=n.p+"src/assets/images/notification.d83cfc08.svg"},1269(e,t,n){"use strict";e.exports=n.p+"src/assets/images/our-picks-category-icon.91216d57.svg"},12408(e,t,n){"use strict";e.exports=n.p+"src/assets/images/page.16a85018.svg"},50501(e,t,n){"use strict";e.exports=n.p+"src/assets/images/payment.de2b723d.svg"},51392(e,t,n){"use strict";e.exports=n.p+"src/assets/images/percent-discount.1f37cda2.svg"},95057(e,t,n){"use strict";e.exports=n.p+"src/assets/images/presentation.6abebc98.svg"},59852(e,t,n){"use strict";e.exports=n.p+"src/assets/images/profile.105611b8.svg"},11466(e,t,n){"use strict";e.exports=n.p+"src/assets/images/public.3db8e61a.svg"},84574(e,t,n){"use strict";e.exports=n.p+"src/assets/images/publish.f9190e43.svg"},35910(e,t,n){"use strict";e.exports=n.p+"src/assets/images/reorder.17905663.svg"},9244(e,t,n){"use strict";e.exports=n.p+"src/assets/images/replay.b442b38e.svg"},98950(e,t,n){"use strict";e.exports=n.p+"src/assets/images/restart.36d79a72.svg"},1625(e,t,n){"use strict";e.exports=n.p+"src/assets/images/review.c7ca4ccc.svg"},15465(e,t,n){"use strict";e.exports=n.p+"src/assets/images/sans-category-icon.7b9935c5.svg"},10557(e,t,n){"use strict";e.exports=n.p+"src/assets/images/search-icon.5c91b182.svg"},42961(e,t,n){"use strict";e.exports=n.p+"src/assets/images/serif-category-icon.1cb45f08.svg"},81878(e,t,n){"use strict";
2e.exports=n.p+"src/assets/images/share.5612d420.svg"},20549(e,t,n){"use strict";e.exports=n.p+"src/assets/images/subtract.bcd8d6c1.svg"},16294(e,t,n){"use strict";e.exports=n.p+"src/assets/images/thumb_down.7e02e313.svg"},31965(e,t,n){"use strict";e.exports=n.p+"src/assets/images/thumb_up.5e1d8bbe.svg"},92726(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tools.b7450b5a.svg"},43125(e,t,n){"use strict";e.exports=n.p+"src/assets/images/unpublish.4297c2c7.svg"},84629(e,t,n){"use strict";e.exports=n.p+"src/assets/images/visible.4b49ab59.svg"},51839(e,t,n){"use strict";e.exports=n.p+"src/assets/images/warning.4c24fb6e.svg"},99929(e,t,n){"use strict";e.exports=n.p+"src/assets/images/web.7177a710.svg"},16714(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hero-content-flow-horizontal.b5762964.svg"},34568(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hero-content-flow-vertical.dfb2b5ca.svg"},30069(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hero-layout-type-modular.7ade9b7f.svg"},263(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hero-layout-type-overlay.fd20dd80.svg"},35363(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hero-layout-type-sidebar.3cd35c91.svg"},62505(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover-interaction-color-reveal.cba9a36b.svg"},33080(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover-interaction-opacity-increase.c77222e1.svg"},6080(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover-interaction-scale-up.90bce629.svg"},57959(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ic-checkmark-green.05c59f24.svg"},58734(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ic-disabled.ec748a1e.svg"},28191(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ic-loader.4f426a93.svg"},79582(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-danger.7f330887.svg"},97699(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-adobe.787cd679.svg"},60174(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-airtable.6eca4936.svg"},1925(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-axure.e234ec41.svg"},97086(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-figma.e614ad37.svg"},38425(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-framer.d7bde3c7.svg"},82603(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-google.fbf601f4.svg"},89635(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-invision.db061550.svg"},24951(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-marvel.e0fe740b.svg"},97365(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-miro.8698d72c.svg"},78598(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-protopie.d10a57f3.svg"},21622(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-vimeo.cf4ea30c.svg"},70845(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-embed-media-youtube.5988653f.svg"},67087(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-more-vertical.3b714b94.svg"},79788(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-more.756fc566.svg"},23829(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-nav-close.4f2fa982.svg"},57812(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-nav-hamburger.cd8bcd64.svg"},69732(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-password-lock.8188ac54.svg"},34053(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-safari-lock.ec6059ce.svg"},48761(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-send.6e6de375.svg"},80596(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-slash-icon.8a05f73a.svg"},52687(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-social-link.bb3042d8.svg"},2768(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-time.e6a9d077.svg"},26325(e,t,n){"use strict";e.exports=n.p+"src/assets/images/confetti.ace26757.svg"},97526(e,t,n){"use strict";e.exports=n.p+"src/assets/images/dot.974b615b.svg"},49646(e,t,n){"use strict";e.exports=n.p+"src/assets/images/job-fit-checker-volt.96129c03.svg"},21102(e,t,n){"use strict";e.exports=n.p+"src/assets/images/job-fit-checker.0f9c2fd3.svg"},54906(e,t,n){"use strict";e.exports=n.p+"src/assets/images/jobs-board.e4ed661c.svg"},36422(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mark.45a7ef9d.svg"},14634(e,t,n){"use strict";e.exports=n.p+"src/assets/images/reviews-lg.d22a2f09.svg"},50349(e,t,n){"use strict";e.exports=n.p+"src/assets/images/rocket.699769f4.svg"},56783(e,t,n){"use strict";e.exports=n.p+"src/assets/images/status-indicator.60805f1a.svg"},30488(e,t,n){"use strict";e.exports=n.p+"src/assets/images/timeline-end.bb2b6a12.svg"},7363(e,t,n){"use strict";e.exports=n.p+"src/assets/images/timeline-start.4ccb84a8.svg"},76988(e,t,n){"use strict";e.exports=n.p+"src/assets/images/vector.4e7b84a2.svg"},73960(e,t,n){"use strict";e.exports=n.p+"src/assets/images/loadinganim.4ec05759.gif"},47233(e,t,n){"use strict";e.exports=n.p+"src/assets/images/logo-symbol-white.0510019f.svg"},29430(e,t,n){"use strict";e.exports=n.p+"src/assets/images/logo-wall-layout-grid.938e8850.svg"},17495(e,t,n){"use strict";e.exports=n.p+"src/assets/images/logo-wall-layout-scrolling.5b406231.svg"},23338(e,t,n){"use strict";e.exports=n.p+"src/assets/images/color-dark.afd5e414.svg"},94322(e,t,n){"use strict";e.exports=n.p+"src/assets/images/color-light.c99ec7d5.svg"},79447(e,t,n){"use strict";e.exports=n.p+"src/assets/images/corner-rounded.d7117dc8.svg"},53047(e,t,n){"use strict";e.exports=n.p+"src/assets/images/corner-squared.2a2deef5.svg"},24589(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device-none.73c09133.svg"},25371(e,t,n){"use strict";
2e.exports=n.p+"src/assets/images/effects-no-shadow.09e4b019.svg"},50699(e,t,n){"use strict";e.exports=n.p+"src/assets/images/effects-shadow.bec8fa9b.svg"},72971(e,t,n){"use strict";e.exports=n.p+"src/assets/images/settings-island.acd1da98.svg"},31298(e,t,n){"use strict";e.exports=n.p+"src/assets/images/settings-notch.0234b383.svg"},87162(e,t,n){"use strict";e.exports=n.p+"src/assets/images/settings-simple.df83c944.svg"},86260(e,t,n){"use strict";e.exports=n.p+"src/assets/images/style-browser.f544a00e.svg"},85510(e,t,n){"use strict";e.exports=n.p+"src/assets/images/style-outline.e956f515.svg"},16436(e,t,n){"use strict";e.exports=n.p+"src/assets/images/style-realistic.777e4fd1.svg"},50037(e,t,n){"use strict";e.exports=n.p+"src/assets/images/style-semi-realistic.2683e9a5.svg"},41850(e,t,n){"use strict";e.exports=n.p+"src/assets/images/style-simple.57025419.svg"},71163(e,t,n){"use strict";e.exports=n.p+"src/assets/images/type-desktop.8dd5c97a.svg"},87917(e,t,n){"use strict";e.exports=n.p+"src/assets/images/type-laptop.51651090.svg"},89791(e,t,n){"use strict";e.exports=n.p+"src/assets/images/type-mobile.f618f2f0.svg"},56063(e,t,n){"use strict";e.exports=n.p+"src/assets/images/type-none.a8631a67.svg"},36817(e,t,n){"use strict";e.exports=n.p+"src/assets/images/type-tablet.42a2f658.svg"},93190(e,t,n){"use strict";e.exports=n.p+"src/assets/images/module-form.9df2b5dd.svg"},24771(e,t,n){"use strict";e.exports=n.p+"src/assets/images/module-image.8f28401a.svg"},69728(e,t,n){"use strict";e.exports=n.p+"src/assets/images/module-media.55c63d77.svg"},98245(e,t,n){"use strict";e.exports=n.p+"src/assets/images/module-mockup.f8520b54.svg"},90344(e,t,n){"use strict";e.exports=n.p+"src/assets/images/module-quote.176716bf.svg"},94441(e,t,n){"use strict";e.exports=n.p+"src/assets/images/module-text.1028f228.svg"},6203(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-item-boxed.f174934d.svg"},82771(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-item-hover-color.d7403691.svg"},2013(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-item-hover-flip-text.2d45a6ee.svg"},60246(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-item-hover-underline.8be6df39.svg"},19199(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-item-simple.ca0107b5.svg"},64685(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-item-underlined.fd7fb0f4.svg"},23240(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-centered.21f22e62.svg"},98452(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-corder-radius-pill.b1fa737b.svg"},5508(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-corder-radius-rounded.3a1dbc94.svg"},39944(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-corder-radius-square.050b6fca.svg"},70032(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-sides-with-cta.c4aa7028.svg"}
2,89136(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-sides.b7e5cc7f.svg"},95646(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-simple.707607df.svg"},44400(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-split-logo.1f0b55e4.svg"},14987(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-layout-split-navigation.2f7bd72e.svg"},76335(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-scroll-effect-animate-out-and-back.8c7327ae.svg"},17201(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-scroll-effect-scroll-with-page.f7a487d3.svg"},19798(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-scroll-effect-stay-on-top.f57a0443.svg"},94271(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-sidebar-position-bottom.a7a6302a.svg"},30891(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-sidebar-position-outside.e98dc99c.svg"},42659(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-sidebar-position-top.d08a043a.svg"},48323(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-visual-style-framed.e6ce5822.svg"},46972(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation-visual-style-simple.b3dd4e6f.svg"},7449(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-page-about.82821f1c.svg"},49112(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-page-blank.87d53996.svg"},95238(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-page-contact.82b4573a.svg"},45252(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-page-file.fde2bb27.svg"},66903(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-page-home.c336eff5.svg"},59414(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-page-link.f2d46130.svg"},28976(e,t,n){"use strict";
2e.exports=n.p+"src/assets/images/icon-page-mailto.0d8f008b.svg"},62405(e,t,n){"use strict";e.exports=n.p+"src/assets/images/icon-page-resume-builder.24d8cec3.svg"},51436(e,t,n){"use strict";e.exports=n.p+"src/assets/images/areas-of-improvement-category.79621a09.svg"},23066(e,t,n){"use strict";e.exports=n.p+"src/assets/images/chat.9fe71ed4.svg"},33735(e,t,n){"use strict";e.exports=n.p+"src/assets/images/comment.0e382b22.svg"},95889(e,t,n){"use strict";e.exports=n.p+"src/assets/images/check-mark.da428525.png"},64245(e,t,n){"use strict";e.exports=n.p+"src/assets/images/clap.b59f0d25.png"},87355(e,t,n){"use strict";e.exports=n.p+"src/assets/images/heart.ba27a2eb.png"},7615(e,t,n){"use strict";e.exports=n.p+"src/assets/images/light-bulb.ed3f75b2.png"},26700(e,t,n){"use strict";e.exports=n.p+"src/assets/images/thumbs-up.bce2db47.png"},25819(e,t,n){"use strict";e.exports=n.p+"src/assets/images/positive-aspect-category.a7c3f2c5.svg"},79601(e,t,n){"use strict";e.exports=n.p+"src/assets/images/progress-indicator-empty.e310d4c6.svg"},88064(e,t,n){"use strict";e.exports=n.p+"src/assets/images/progress-indicator-finished.ca8fcb26.svg"},41877(e,t,n){"use strict";e.exports=n.p+"src/assets/images/progress-indicator-step1.4fa229be.svg"},70006(e,t,n){"use strict";e.exports=n.p+"src/assets/images/progress-indicator-step2.ae9d8478.svg"},34033(e,t,n){"use strict";e.exports=n.p+"src/assets/images/reaction.3e604b15.svg"},25778(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tour-arrow.fa8eb5c4.svg"},3096(e,t,n){"use strict";e.exports=n.p+"src/assets/images/about-me.d1168547.svg"},2459(e,t,n){"use strict";e.exports=n.p+"src/assets/images/adplist.0507789a.svg"},79515(e,t,n){"use strict";e.exports=n.p+"src/assets/images/articles.5ab61b65.svg"},14700(e,t,n){"use strict";e.exports=n.p+"src/assets/images/awards.3b169722.svg"},98078(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background.432052ec.svg"},6172(e,t,n){"use strict";e.exports=n.p+"src/assets/images/bio.1df1380e.svg"},48991(e,t,n){"use strict";e.exports=n.p+"src/assets/images/business-impact.0086d97e.svg"},69115(e,t,n){"use strict";e.exports=n.p+"src/assets/images/card-sorting.fd9254a7.svg"},94505(e,t,n){"use strict";e.exports=n.p+"src/assets/images/cj.682dffcd.svg"},51859(e,t,n){"use strict";e.exports=n.p+"src/assets/images/closing.d7b0ff3c.svg"},15459(e,t,n){"use strict";e.exports=n.p+"src/assets/images/columns.f254f661.svg"},90639(e,t,n){"use strict";e.exports=n.p+"src/assets/images/competitors.097cbeae.svg"},11973(e,t,n){"use strict";e.exports=n.p+"src/assets/images/contact-form.af1f751d.svg"},67740(e,t,n){"use strict";e.exports=n.p+"src/assets/images/cta.0d3ccbf3.svg"},70126(e,t,n){"use strict";e.exports=n.p+"src/assets/images/design-system.df6064d7.svg"},98244(e,t,n){"use strict";e.exports=n.p+"src/assets/images/design.401bae15.svg"},53157(e,t,n){"use strict";e.exports=n.p+"src/assets/images/divider.94c21ee0.svg"},79944(e,t,n){"use strict";e.exports=n.p+"src/assets/images/education.4e94be4f.svg"},7550(e,t,n){"use strict";e.exports=n.p+"src/assets/images/experience.5b4fbed2.svg"},59100(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gallery.197456f9.svg"},20502(e,t,n){"use strict";e.exports=n.p+"src/assets/images/goals.ea88404a.svg"},85545(e,t,n){"use strict";e.exports=n.p+"src/assets/images/header.05b51bd8.svg"},86914(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hobbies.afc3e1f6.svg"},57703(e,t,n){"use strict";e.exports=n.p+"src/assets/images/image-text.1bb0d5bf.svg"},34405(e,t,n){"use strict";e.exports=n.p+"src/assets/images/image.75a10263.svg"},47562(e,t,n){"use strict";e.exports=n.p+"src/assets/images/interviews.0cc1ee06.svg"},60769(e,t,n){"use strict";e.exports=n.p+"src/assets/images/learnings-and-next-steps.7dfaa09d.svg"},92892(e,t,n){"use strict";e.exports=n.p+"src/assets/images/logo-wall.8d17d4a6.svg"},84750(e,t,n){"use strict";e.exports=n.p+"src/assets/images/media.c19c8f99.svg"},84795(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mockup.ea7ffbd2.svg"},7192(e,t,n){"use strict";e.exports=n.p+"src/assets/images/navigation.022112e0.svg"},12875(e,t,n){"use strict";e.exports=n.p+"src/assets/images/overview.1e0af4b6.svg"},34825(e,t,n){"use strict";e.exports=n.p+"src/assets/images/personas.92cb6d93.svg"}
2,74821(e,t,n){"use strict";e.exports=n.p+"src/assets/images/problem-and-solution.aa7024b7.svg"},71656(e,t,n){"use strict";e.exports=n.p+"src/assets/images/project-details.de140a17.svg"},98960(e,t,n){"use strict";e.exports=n.p+"src/assets/images/prototype.e0743235.svg"},69141(e,t,n){"use strict";e.exports=n.p+"src/assets/images/short-intro.7e5bd80a.svg"},30830(e,t,n){"use strict";e.exports=n.p+"src/assets/images/sketches.e3907a40.svg"},31840(e,t,n){"use strict";e.exports=n.p+"src/assets/images/skills.209c1754.svg"},18457(e,t,n){"use strict";e.exports=n.p+"src/assets/images/statement.c37540b4.svg"},65883(e,t,n){"use strict";e.exports=n.p+"src/assets/images/stats.62350226.svg"},5727(e,t,n){"use strict";e.exports=n.p+"src/assets/images/surveys.7e2bdcf9.svg"},8443(e,t,n){"use strict";e.exports=n.p+"src/assets/images/testimonial.7489ec44.svg"},17587(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text.1028f228.svg"},94163(e,t,n){"use strict";e.exports=n.p+"src/assets/images/ui-design.581951f2.svg"},34679(e,t,n){"use strict";e.exports=n.p+"src/assets/images/uj.0f194aa5.svg"},55308(e,t,n){"use strict";e.exports=n.p+"src/assets/images/user-testing.31cb96a1.svg"},76691(e,t,n){"use strict";e.exports=n.p+"src/assets/images/video.88435400.svg"},90911(e,t,n){"use strict";e.exports=n.p+"src/assets/images/wireframes.f69dddd3.svg"},55089(e,t,n){"use strict";e.exports=n.p+"src/assets/images/attach.a9c9ddc7.svg"},97875(e,t,n){"use strict";e.exports=n.p+"src/assets/images/attach_default.c3fdb42e.svg"},77815(e,t,n){"use strict";e.exports=n.p+"src/assets/images/detach.4b35f4b9.svg"},42904(e,t,n){"use strict";e.exports=n.p+"src/assets/images/social-link-shape-circle.088bd3a7.svg"},75807(e,t,n){"use strict";e.exports=n.p+"src/assets/images/social-link-shape-rounded.7f97cebb.svg"},16577(e,t,n){"use strict";e.exports=n.p+"src/assets/images/social-link-shape-square.10863439.svg"},27056(e,t,n){"use strict";e.exports=n.p+"src/assets/images/section-layout-image.56a0d2f9.svg"},18391(e,t,n){"use strict";e.exports=n.p+"src/assets/images/section-layout-text-and-media.3017e990.svg"},71356(e,t,n){"use strict";e.exports=n.p+"src/assets/images/section-layout-text.d1e3ce67.svg"},14377(e,t,n){"use strict";e.exports=n.p+"src/assets/images/desktop_preview_icon.b2a76598.svg"},12275(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_preview_icon.d78ba60b.svg"},35625(e,t,n){"use strict";e.exports=n.p+"src/assets/images/alt-text.9b6901c7.svg"},36201(e,t,n){"use strict";e.exports=n.p+"src/assets/images/close-light.6b0a3922.svg"},47342(e,t,n){"use strict";e.exports=n.p+"src/assets/images/done.6e605e53.svg"},71487(e,t,n){"use strict";e.exports=n.p+"src/assets/images/edit-link.c5fef60b.svg"},99010(e,t,n){"use strict";e.exports=n.p+"src/assets/images/edit.1d26874e.svg"},79095(e,t,n){"use strict";e.exports=n.p+"src/assets/images/remove-colors.675b42fc.svg"},4045(e,t,n){"use strict";e.exports=n.p+"src/assets/images/style-thick.fe9ddbc2.svg"},52477(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-bold.ca8efec1.svg"},59879(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-center.d5ee82a4.svg"},70118(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-format-remove.fd648e16.svg"},75620(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-h.54c8164f.svg"},47709(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-h1.fd0276ca.svg"},1438(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-h2.96c5a7f4.svg"},21487(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-h3.5fdabec9.svg"},27696(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-h4.fd8d58f6.svg"},43604(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-italic.412efa88.svg"},38239(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-left.8277d968.svg"},42196(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-link.f33c6246.svg"},52533(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-ol.263ccf00.svg"},16412(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-p.3eed81db.svg"},20485(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-p1.dba86b6a.svg"},88710(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-p2.4935017e.svg"},20608(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-quote.d9f33830.svg"},50938(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-right.506989af.svg"},92567(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-ul.5cae85c9.svg"},65648(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-underline.e0d29b0a.svg"},94281(e,t,n){"use strict";e.exports=n.p+"src/assets/images/text-unlink.06cfa97c.svg"},79203(e,t,n){"use strict";e.exports=n.p+"src/assets/images/black_text.9b0b2106.svg"}
2,46841(e,t,n){"use strict";e.exports=n.p+"src/assets/images/white_text.e0e0c668.svg"},36359(e,t,n){"use strict";e.exports=n.p+"src/assets/images/blur-background.14cc7c06.svg"},3450(e,t,n){"use strict";e.exports=n.p+"src/assets/images/card-color-change.d39bd00e.svg"},59243(e,t,n){"use strict";e.exports=n.p+"src/assets/images/fill-background.a498cf9e.svg"},88957(e,t,n){"use strict";e.exports=n.p+"src/assets/images/show-arrow.0bebf001.svg"},61028(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tilt-image.ec87d6c1.svg"},43182(e,t,n){"use strict";e.exports=n.p+"src/assets/images/underline-title.a4126603.svg"},50812(e,t,n){"use strict";e.exports=n.p+"src/assets/images/zoom-in.b0bf2f66.svg"},26293(e,t,n){"use strict";e.exports=n.p+"src/assets/images/featured-grid.a8c51d97.svg"},72066(e,t,n){"use strict";e.exports=n.p+"src/assets/images/grid.d84685e0.svg"},69661(e,t,n){"use strict";e.exports=n.p+"src/assets/images/large-block-mixed.34cde110.svg"},95504(e,t,n){"use strict";e.exports=n.p+"src/assets/images/large-block-text-only.99106f12.svg"},33839(e,t,n){"use strict";e.exports=n.p+"src/assets/images/large-block.6ebf0e52.svg"}
2,62636(e,t,n){"use strict";e.exports=n.p+"src/assets/images/large-grid.71de4459.svg"},68644(e,t,n){"use strict";e.exports=n.p+"src/assets/images/large-list.6aaddd30.svg"},65734(e,t,n){"use strict";e.exports=n.p+"src/assets/images/list.ebbd85c6.svg"},88537(e,t,n){"use strict";e.exports=n.p+"src/assets/images/medium-block-text.7aa63afa.svg"},63267(e,t,n){"use strict";e.exports=n.p+"src/assets/images/offset.035417f7.svg"},25445(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block-slided.4e3a9831.svg"},99964(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block-text-only.83b9ad78.svg"},75441(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block-text.6864988a.svg"},70011(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block.171f5ee5.svg"},25195(e,t,n){"use strict";e.exports=n.p+"src/assets/images/large-block-mixed--hover--center--center.e7dd7461.svg"},15629(e,t,n){"use strict";e.exports=n.p+"src/assets/images/large-block_below_left_center.4145100b.svg"},78083(e,t,n){"use strict";e.exports=n.p+"src/assets/images/medium-block-text_alternating_center_center.7cac231b.svg"},25810(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block-slided--below--left--center.3dd20061.svg"},15331(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block-slided--hover--center--center.61323126.svg"},65330(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block-text_right_left_center.c60a4a50.svg"},20761(e,t,n){"use strict";e.exports=n.p+"src/assets/images/small-block_below_center_center.0e2f1f2a.svg"},82827(e,t,n){"use strict";e.exports=n.p+"src/assets/images/above_alignment.c374103b.svg"},7359(e,t,n){"use strict";e.exports=n.p+"src/assets/images/alternating_alignment.81227ecb.svg"},34183(e,t,n){"use strict";e.exports=n.p+"src/assets/images/below_alignment.61b9b9de.svg"},79184(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hidden_alignment.a83b6a98.svg"},24190(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover_alignment.087a8f7c.svg"},27836(e,t,n){"use strict";e.exports=n.p+"src/assets/images/inside_alignment.735a8c2d.svg"},4439(e,t,n){"use strict";e.exports=n.p+"src/assets/images/left_alignment.75910cd6.svg"},77786(e,t,n){"use strict";e.exports=n.p+"src/assets/images/right_alignment.d3ea421a.svg"},74508(e,t,n){"use strict";e.exports=n.p+"src/assets/images/above.b92b1021.svg"},88628(e,t,n){"use strict";e.exports=n.p+"src/assets/images/alternating.774415a3.svg"},64212(e,t,n){"use strict";e.exports=n.p+"src/assets/images/below.37de3024.svg"},59765(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hidden.89ec827d.svg"},74501(e,t,n){"use strict";e.exports=n.p+"src/assets/images/hover.87d1216c.svg"},11338(e,t,n){"use strict";e.exports=n.p+"src/assets/images/left.6bc4c24b.svg"},38349(e,t,n){"use strict";e.exports=n.p+"src/assets/images/on-thumbnail.32092c72.svg"},37377(e,t,n){"use strict";e.exports=n.p+"src/assets/images/right.c822c4f9.svg"},43034(e,t,n){"use strict";e.exports=n.p+"src/assets/images/horizontal_center.2e5413f6.svg"},72846(e,t,n){"use strict";e.exports=n.p+"src/assets/images/horizontal_left.2fd466a3.svg"},16557(e,t,n){"use strict";e.exports=n.p+"src/assets/images/horizontal_right.3dd746c2.svg"},87692(e,t,n){"use strict";e.exports=n.p+"src/assets/images/vertical_bottom.681b100b.svg"},19234(e,t,n){"use strict";e.exports=n.p+"src/assets/images/vertical_center.2413fb9e.svg"},47958(e,t,n){"use strict";e.exports=n.p+"src/assets/images/vertical_top.ee31b45e.svg"},90736(e,t,n){"use strict";e.exports=n.p+"src/assets/images/laptop-placeholder-aspect-v1.259f973f.png"},56139(e,t,n){"use strict";e.exports=n.p+"src/assets/images/laptop-placeholder-aspect-v2.cc504079.png"},30625(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background_gradient.2ec9a8f4.svg"},68070(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background_solid.3596fa2d.svg"},15193(e,t,n){"use strict";e.exports=n.p+"src/assets/images/background_transparent.32f6405a.svg"},48348(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_color_dark.3be82ab9.svg"},23764(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_color_light.a2146539.svg"},81559(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_corner_rounded.d7117dc8.svg"}
2,82583(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_corner_squared.2a2deef5.svg"},99281(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_style_browser.f544a00e.svg"},1189(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_style_no-device.ebe144a6.svg"},21843(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_style_outline.e956f515.svg"},89506(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_style_semi-realistic.2683e9a5.svg"},35561(e,t,n){"use strict";e.exports=n.p+"src/assets/images/device_style_simple.57025419.svg"},72942(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gradient_linear_1.1bcabca1.svg"},67309(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gradient_linear_2.e5f31f22.svg"},31852(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gradient_linear_3.67a5cb39.svg"},48112(e,t,n){"use strict";e.exports=n.p+"src/assets/images/gradient_radial_1.8dd9d3a6.svg"},27021(e,t,n){"use strict";e.exports=n.p+"src/assets/images/desktop_mobile_middle.978d221d.svg"},56198(e,t,n){"use strict";e.exports=n.p+"src/assets/images/desktop_mobile_overlay.9bc8578b.svg"},51751(e,t,n){"use strict";e.exports=n.p+"src/assets/images/desktop_single_middle.eea91a81.svg"},26329(e,t,n){"use strict";e.exports=n.p+"src/assets/images/desktop_single_slided.4055d791.svg"},35446(e,t,n){"use strict";e.exports=n.p+"src/assets/images/desktop_single_slided_big.15bed1d6.svg"},2836(e,t,n){"use strict";e.exports=n.p+"src/assets/images/desktop_triple_variety.71c307f6.svg"},53127(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_dual_middle.bbac862d.svg"},43897(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_dual_slided.31dc7c69.svg"},67560(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_quadruple_slided.625f8f5c.svg"},20438(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_quadruple_slided_rotated.fbc57174.svg"},669(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_single_middle.fc46e26d.svg"},5531(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_single_slided.89fa8d45.svg"},16017(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_triple_middle.5e794d6b.svg"},70220(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_triple_middle_horizontal.7305ea4f.svg"},17511(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_triple_slided.bbb8e068.svg"},81009(e,t,n){"use strict";e.exports=n.p+"src/assets/images/mobile_triple_slided_rotated.18b4c3b2.svg"},76089(e,t,n){"use strict";e.exports=n.p+"src/assets/images/monitor_desktop_middle.348cbb30.svg"},19085(e,t,n){"use strict";e.exports=n.p+"src/assets/images/monitor_mobile_middle.07d31fb2.svg"},88341(e,t,n){"use strict";e.exports=n.p+"src/assets/images/monitor_quadruple_variety.3e7cebf8.svg"},65831(e,t,n){"use strict";e.exports=n.p+"src/assets/images/monitor_single_middle.80249fcb.svg"},2783(e,t,n){"use strict";e.exports=n.p+"src/assets/images/monitor_tablet_middle.a316a9ad.svg"},22132(e,t,n){"use strict";e.exports=n.p+"src/assets/images/monitor_triple_variety.1315e676.svg"},1659(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tablet_mobile_middle.f6752314.svg"},94988(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tablet_mobile_overlay.773bd895.svg"},96681(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tablet_single_middle.de200ec4.svg"},38383(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tablet_single_slided.5e58180c.svg"},70464(e,t,n){"use strict";e.exports=n.p+"src/assets/images/tablet_single_slided_big.380f61bc.svg"}
2,78790(e,t,n){"use strict";e.exports=n.p+"src/assets/images/user-picture-empty-state.0bb6fa61.png"},14415(e,t,n){"use strict";e.exports=n.p+"src/assets/images/volt-circle-logo.0040cdce.svg"},76777(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},h.apply(this,arguments)}n.d(t,{A:()=>J});var m={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function v(e){console.error("[Glide warn]: ".concat(e))}function g(e){return parseInt(e)}function y(e){return"string"==typeof e}function b(e){var t=i(e);return"function"===t||"object"===t&&!!e}function w(e){return"function"==typeof e}function S(e){return void 0===e}function k(e){return e.constructor===Array}function _(e,t,n){Object.defineProperty(e,t,n)}function O(e,t){var n=Object.assign({},e,t);if(t.hasOwnProperty("classes")){n.classes=Object.assign({},e.classes,t.classes);["direction","type","slide","arrow","nav"].forEach(function(r){t.classes.hasOwnProperty(r)&&(n.classes[r]=o(o({},e.classes[r]),t.classes[r]))})}return t.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},e.breakpoints,t.breakpoints)),n}var C=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.events=t,this.hop=t.hasOwnProperty}return l(e,[{key:"on",value:function(e,t){if(!k(e)){this.hop.call(this.events,e)||(this.events[e]=[]);var n=this.events[e].push(t)-1;return{remove:function(){delete this.events[e][n]}}}for(var r=0;r<e.length;r++)this.on(e[r],t)}},{key:"emit",value:function(e,t){if(k(e))for(var n=0;n<e.length;
vendor: 5,874 bytes, line 2
2n++)this.emit(e[n],t);else this.hop.call(this.events,e)&&this.events[e].forEach(function(e){e(t||{})})}}]),e}(),T=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this._c={},this._t=[],this._e=new C,this.disabled=!1,this.selector=t,this.settings=O(m,n),this.index=this.settings.startAt}return l(e,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),b(e)?this._c=function(e,t,n){var r={};for(var o in t)w(t[o])?r[o]=t[o](e,r,n):v("Extension must be a function");for(var i in r)w(r[i].mount)&&r[i].mount();return r}(this,e,this._e):v("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return k(e)?this._t=e:v("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=O(this.settings,e),e.hasOwnProperty("startAt")&&(this.index=e.startAt),this._e.emit("update"),this}},{key:"go",value:function(e){return this._c.Run.make(e),this}},{key:"move",value:function(e){return this._c.Transition.disable(),this._c.Move.make(e),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&(this.settings.autoplay=e),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(e,t){return this._e.on(e,t),this}},{key:"isType",value:function(e){return this.settings.type===e}},{key:"settings",get:function(){return this._o},set:function(e){b(e)?this._o=e:v("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(e){this._i=g(e)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(e){this._d=!!e}}]),e}();function A(){return(new Date).getTime()}function E(e,t){var n,r,o,i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=0,l=function(){a=!1===s.leading?0:A(),n=null,i=e.apply(r,o),n||(r=o=null)},c=function(){var c=A();a||!1!==s.leading||(a=c);var u=t-(c-a);return r=this,o=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),a=c,i=e.apply(r,o),n||(r=o=null)):n||!1===s.trailing||(n=setTimeout(l,u)),i};return c.cancel=function(){clearTimeout(n),a=0,n=r=o=null},c}var x={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function P(e){if(e&&e.parentNode){for(var t=e.parentNode.firstChild,n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}return[]}function I(e){return Array.prototype.slice.call(e)}var L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.listeners=t}return l(e,[{key:"on",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];y(e)&&(e=[e]);for(var o=0;o<e.length;o++)this.listeners[e[o]]=n,t.addEventListener(e[o],this.listeners[e[o]],r)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(e)&&(e=[e]);for(var r=0;r<e.length;r++)t.removeEventListener(e[r],this.listeners[e[r]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),e}();var j=["ltr","rtl"],M={">":"<","<":">","=":"="};function D(e,t){return{modify:function(e){return t.Direction.is("rtl")?-e:e}}}function R(e,t){return{modify:function(e){var n=Math.floor(e/t.Sizes.slideWidth);return e+t.Gaps.value*n}}}function N(e,t){return{modify:function(e){return e+t.Clones.grow/2}}}function F(e,t){return{modify:function(n){if(e.settings.focusAt>=0){var r=t.Peek.value;return b(r)?n-r.before:n-r}return n}}}function B(e,t){return{modify:function(n){var r=t.Gaps.value,o=t.Sizes.width,i=e.settings.focusAt,s=t.Sizes.slideWidth;return"center"===i?n-(o/2-s/2):n-s*i-r*i}}}var U=!1;try{var H=Object.defineProperty({},"passive",{get:function(){U=!0}});window.addEventListener("testPassive",null,H),window.removeEventListener("testPassive",null,H)}catch(e){}var $=U,z=["touchstart","mousedown"],W=["touchmove","mousemove"],G=["touchend","touchcancel","mouseup","mouseleave"],X=["mousedown","mousemove","mouseup","mouseleave"];var V='[data-glide-el^="controls"]',K="".concat(V,' [data-glide-dir*="<"]'),q="".concat(V,' [data-glide-dir*=">"]');function Y(e){return b(e)?(t=e,Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e[n],e},{})):(v("Breakpoints option must be an object"),{});var t}var Q={Html:function(e,t,n){var r={mount:function(){this.root=e.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=I(this.wrapper.children).filter(function(t){return!t.classList.contains(e.settings.classes.slide.clone)})}};return _(r,"root",{get:function(){return r._r},set:function(e){y(e)&&(e=document.querySelector(e)),null!==e?r._r=e:v("Root element must be a existing Html node")}}),_(r,"track",{get:function(){return r._t},set:function(e){r._t=e}}),_(r,"wrapper",{get:function(){return r.track.children[0]}}),n.on("update",function(){r.collectSlides()}),r},Translate:function(e,t,n){var r={set:function(n){var r=function(e,t,n){var r=[R,N,F,B].concat(e._t,[D]);return{mutate:function(o){for(var i=0;i<r.length;i++){var s=r[i];w(s)&&w(s().modify)?o=s(e,t,n).modify(o):v("Transformer should be a function that returns an object with `modify()` method")}return o}}}(e,t).mutate(n),o="translate3d(".concat(-1*r,"px, 0px, 0px)");t.Html.wrapper.style.mozTransform=o,t.Html.wrapper.style.webkitTransform=o,t.Html.wrapper.style.transform=o},remove:function(){t.Html.wrapper.style.transform=""}
2,getStartIndex:function(){var n=t.Sizes.length,r=e.index,o=e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?n+(r-o):(r+o)%n},getTravelDistance:function(){var n=t.Sizes.slideWidth*e.settings.perView;return t.Run.isOffset(">")||t.Run.isOffset("|>")?-1*n:n}};return n.on("move",function(o){if(!e.isType("carousel")||!t.Run.isOffset())return r.set(o.movement);t.Transition.after(function(){n.emit("translate.jump"),r.set(t.Sizes.slideWidth*e.index)});var i=t.Sizes.slideWidth*t.Translate.getStartIndex();return r.set(i-t.Translate.getTravelDistance())}),n.on("destroy",function(){r.remove()}),r},Transition:function(e,t,n){var r=!1,o={compose:function(t){var n=e.settings;return r?"".concat(t," 0ms ").concat(n.animationTimingFunc):"".concat(t," ").concat(this.duration,"ms ").concat(n.animationTimingFunc)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";t.Html.wrapper.style.transition=this.compose(e)},remove:function(){t.Html.wrapper.style.transition=""},after:function(e){setTimeout(function(){e()},this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return _(o,"duration",{get:function(){var n=e.settings;return e.isType("slider")&&t.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",function(){o.set()}),n.on(["build.before","resize","translate.jump"],function(){o.disable()}),n.on("run",function(){o.enable()}),n.on("destroy",function(){o.remove()}),o},Direction:function(e,t,n){var r={mount:function(){this.value=e.settings.direction},resolve:function(e){var t=e.slice(0,1);return this.is("rtl")?e.split(t).join(M[t]):e},is:function(e){return this.value===e},addClass:function(){t.Html.root.classList.add(e.settings.classes.direction[this.value])},removeClass:function(){t.Html.root.classList.remove(e.settings.classes.direction[this.value])}};return _(r,"value",{get:function(){return r._v},set:function(e){j.indexOf(e)>-1?r._v=e:v("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){r.removeClass()}),n.on("update",function(){r.mount()}),n.on(["build.before","update"],function(){r.addClass()}),r},Peek:function(e,t,n){var r={mount:function(){this.value=e.settings.peek}};return _(r,"value",{get:function(){return r._v},set:function(e){b(e)?(e.before=g(e.before),e.after=g(e.after)):e=g(e),r._v=e}}),_(r,"reductor",{get:function(){var t=r.value,n=e.settings.perView;return b(t)?t.before/n+t.after/n:2*t/n}}),n.on(["resize","update"],function(){r.mount()}),r},Sizes:function(e,t,n){var r={setupSlides:function(){for(var e="".concat(this.slideWidth,"px"),n=t.Html.slides,r=0;r<n.length;r++)n[r].style.width=e},setupWrapper:function(){t.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var e=t.Html.slides,n=0;n<e.length;n++)e[n].style.width="";t.Html.wrapper.style.width=""}};return _(r,"length",{get:function(){return t.Html.slides.length}}),_(r,"width",{get:function(){return t.Html.track.offsetWidth}}),_(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+t.Gaps.grow+t.Clones.grow}}),_(r,"slideWidth",{get:function(){return r.width/e.settings.perView-t.Peek.reductor-t.Gaps.reductor}}),n.on(["build.before","resize","update"],function(){r.setupSlides(),r.setupWrapper()}),n.on("destroy",function(){r.remove()}),r},Gaps:function(e,t,n){var r={apply:function(e){for(var n=0,r=e.length;n<r;n++){var o=e[n].style,i=t.Direction.value;o[x[i][0]]=0!==n?"".concat(this.value/2,"px"):"",n!==e.length-1?o[x[i][1]]="".concat(this.value/2,"px"):o[x[i][1]]=""}},remove:function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t].style;r.marginLeft="",r.marginRight=""}}};return _(r,"value",{get:function(){return g(e.settings.gap)}}),_(r,"grow",{get:function(){return r.value*t.Sizes.length}}),_(r,"reductor",{get:function(){var t=e.settings.perView;return r.value*(t-1)/t}}),n.on(["build.after","update"],E(function(){r.apply(t.Html.wrapper.children)},30)),n.on("destroy",function(){r.remove(t.Html.wrapper.children)}),r},Move:function(e,t,n){var r={mount:function(){this._o=0},make:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=r,n.emit("move",{movement:this.value}),t.Transition.after(function(){n.emit("move.after",{movement:e.value})})}};return _(r,"offset",{get:function(){return r._o},set:function(e){r._o=S(e)?0:g(e)}}),_(r,"translate",{get:function(){return t.Sizes.slideWidth*e.index}}),_(r,"value",{get:function(){var e=this.offset,n=this.translate;return t.Direction.is("rtl")?n+e:n-e}}),n.on(["build.before","run"],function(){r.make()}),r},Clones:function(e,t,n){var r={mount:function(){this.items=[],e.isType("carousel")&&(this.items=this.collect())},collect:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=t.Html.slides,o=e.settings,i=o.perView,s=o.classes,a=o.cloningRatio;if(r.length>0)for(var l=i+ +!!e.settings.peek+Math.round(i/2),c=r.slice(0,l).reverse(),u=r.slice(-1*l),d=0;d<Math.max(a,Math.floor(i/r.length));d++){for(var p=0;p<c.length;p++){var f=c[p].cloneNode(!0);f.classList.add(s.slide.clone),n.push(f)}for(var h=0;h<u.length;h++){var m=u[h].cloneNode(!0);m.classList.add(s.slide.clone),n.unshift(m)}}return n},append:function(){for(var e=this.items,n=t.Html,r=n.wrapper,o=n.slides,i=Math.floor(e.length/2),s=e.slice(0,i).reverse(),a=e.slice(-1*i).reverse(),l="".concat(t.Sizes.slideWidth,"px"),c=0;c<a.length;c++)r.appendChild(a[c]);for(var u=0;u<s.length;u++)r.insertBefore(s[u],o[0]);for(var d=0;d<e.length;d++)e[d].style.width=l},remove:function(){for(var e=this.items,n=0;n<e.length;n++)t.Html.wrapper.removeChild(e[n])}};return _(r,"grow",{get:function(){return(t.Sizes.slideWidth+t.Gaps.value)*r.items.length}}),n.on("update",function(){r.remove(),r.mount(),r.append()}),n.on("build.before",function(){e.isType("carousel")&&r.append()}),n.on("destroy",function(){r.remove()}),r},Resize:function(e,t,n){var r=new L,o={mount:function(){this.bind()},bind:function(){r.on("resize",window,E(function(){n.emit("resize")},e.settings.throttle))},unbind:function(){r.off("resize",window)}};return n.on("destroy",function(){o.unbind(),r.destroy()}),o},Build:function(e,t,n){var r={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){t.Html.root.classList.add(e.settings.classes.type[e.settings.type])},activeClass:function(){var n=e.settings.classes,r=t.Html.slides[e.index];r&&(r.classList.add(n.slide.active),P(r).forEach(function(e){e.classList.remove(n.slide.active)}))},removeClasses:function(){var n=e.settings.classes,r=n.type,o=n.slide;t.Html.root.classList.remove(r[e.settings.type]),t.Html.slides.forEac
vendor: 5,739 bytes, line 2
2h(function(e){e.classList.remove(o.active)})}};return n.on(["destroy","update"],function(){r.removeClasses()}),n.on(["resize","update"],function(){r.mount()}),n.on("move.after",function(){r.activeClass()}),r},Run:function(e,t,n){var r={mount:function(){this._o=!1},make:function(r){var o=this;e.disabled||(!e.settings.waitForTransition||e.disable(),this.move=r,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),t.Transition.after(function(){o.isStart()&&n.emit("run.start",o.move),o.isEnd()&&n.emit("run.end",o.move),o.isOffset()&&(o._o=!1,n.emit("run.offset",o.move)),n.emit("run.after",o.move),e.enable()}))},calculate:function(){var t=this.move,n=this.length,o=t.steps,i=t.direction,s=1;if("="===i)return e.settings.bound&&g(o)>n?void(e.index=n):void(e.index=o);if(">"!==i||">"!==o)if("<"!==i||"<"!==o){if("|"===i&&(s=e.settings.perView||1),">"===i||"|"===i&&">"===o){var a=function(t){var n=e.index;if(e.isType("carousel"))return n+t;return n+(t-n%t)}(s);return a>n&&(this._o=!0),void(e.index=function(t,n){var o=r.length;if(t<=o)return t;if(e.isType("carousel"))return t-(o+1);if(e.settings.rewind)return r.isBound()&&!r.isEnd()?o:0;if(r.isBound())return o;return Math.floor(o/n)*n}(a,s))}if("<"===i||"|"===i&&"<"===o){var l=function(t){var n=e.index;if(e.isType("carousel"))return n-t;var r=Math.ceil(n/t);return(r-1)*t}(s);return l<0&&(this._o=!0),void(e.index=function(t,n){var o=r.length;if(t>=0)return t;if(e.isType("carousel"))return t+(o+1);if(e.settings.rewind)return r.isBound()&&r.isStart()?o:Math.floor(o/n)*n;return 0}(l,s))}v("Invalid direction pattern [".concat(i).concat(o,"] has been used"))}else e.index=0;else e.index=n},isStart:function(){return e.index<=0},isEnd:function(){return e.index>=this.length},isOffset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return e?!!this._o&&("|>"===e?"|"===this.move.direction&&">"===this.move.steps:"|<"===e?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===e):this._o},isBound:function(){return e.isType("slider")&&"center"!==e.settings.focusAt&&e.settings.bound}};return _(r,"move",{get:function(){return this._m},set:function(e){var t=e.substr(1);this._m={direction:e.substr(0,1),steps:t?g(t)?g(t):t:0}}}),_(r,"length",{get:function(){var n=e.settings,r=t.Html.slides.length;return this.isBound()?r-1-(g(n.perView)-1)+g(n.focusAt):r-1}}),_(r,"offset",{get:function(){return this._o}}),r},Swipe:function(e,t,n){var r=new L,o=0,i=0,s=0,a=!1,l=!!$&&{passive:!0},c={mount:function(){this.bindSwipeStart()},start:function(t){if(!a&&!e.disabled){this.disable();var r=this.touches(t);o=null,i=g(r.pageX),s=g(r.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(r){if(!e.disabled){var a=e.settings,l=a.touchAngle,c=a.touchRatio,u=a.classes,d=this.touches(r),p=g(d.pageX)-i,f=g(d.pageY)-s,h=Math.abs(p<<2),m=Math.abs(f<<2),v=Math.sqrt(h+m),y=Math.sqrt(m);if(!(180*(o=Math.asin(y/v))/Math.PI<l))return!1;r.stopPropagation(),t.Move.make(p*parseFloat(c)),t.Html.root.classList.add(u.dragging),n.emit("swipe.move")}},end:function(r){if(!e.disabled){var s=e.settings,a=s.perSwipe,l=s.touchAngle,c=s.classes,u=this.touches(r),d=this.threshold(r),p=u.pageX-i,f=180*o/Math.PI;this.enable(),p>d&&f<l?t.Run.make(t.Direction.resolve("".concat(a,"<"))):p<-d&&f<l?t.Run.make(t.Direction.resolve("".concat(a,">"))):t.Move.make(),t.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,o=e.settings,i=o.swipeThreshold,s=o.dragThreshold;i&&r.on(z[0],t.Html.wrapper,function(e){n.start(e)},l),s&&r.on(z[1],t.Html.wrapper,function(e){n.start(e)},l)},unbindSwipeStart:function(){r.off(z[0],t.Html.wrapper,l),r.off(z[1],t.Html.wrapper,l)},bindSwipeMove:function(){var n=this;r.on(W,t.Html.wrapper,E(function(e){n.move(e)},e.settings.throttle),l)},unbindSwipeMove:function(){r.off(W,t.Html.wrapper,l)},bindSwipeEnd:function(){var e=this;r.on(G,t.Html.wrapper,function(t){e.end(t)})},unbindSwipeEnd:function(){r.off(G,t.Html.wrapper)},touches:function(e){return X.indexOf(e.type)>-1?e:e.touches[0]||e.changedTouches[0]},threshold:function(t){var n=e.settings;return X.indexOf(t.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return a=!1,t.Transition.enable(),this},disable:function(){return a=!0,t.Transition.disable(),this}};return n.on("build.after",function(){t.Html.root.classList.add(e.settings.classes.swipeable)}),n.on("destroy",function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),r.destroy()}),c},Images:function(e,t,n){var r=new L,o={mount:function(){this.bind()},bind:function(){r.on("dragstart",t.Html.wrapper,this.dragstart)},unbind:function(){r.off("dragstart",t.Html.wrapper)},dragstart:function(e){e.preventDefault()}};return n.on("destroy",function(){o.unbind(),r.destroy()}),o},Anchors:function(e,t,n){var r=new L,o=!1,i=!1,s={mount:function(){this._a=t.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",t.Html.wrapper,this.click)},unbind:function(){r.off("click",t.Html.wrapper)},click:function(e){i&&(e.stopPropagation(),e.preventDefault())},detach:function(){if(i=!0,!o){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!1;o=!0}return this},attach:function(){if(i=!1,o){for(var e=0;e<this.items.length;e++)this.items[e].draggable=!0;o=!1}return this}};return _(s,"items",{get:function(){return s._a}}),n.on("swipe.move",function(){s.detach()}),n.on("swipe.end",function(){t.Transition.after(function(){s.attach()})}),n.on("destroy",function(){s.attach(),s.unbind(),r.destroy()}),s},Controls:function(e,t,n){var r=new L,o=!!$&&{passive:!0},i={mount:function(){this._n=t.Html.root.querySelectorAll('[data-glide-el="
2controls[nav]"]'),this._c=t.Html.root.querySelectorAll(V),this._arrowControls={previous:t.Html.root.querySelectorAll(K),next:t.Html.root.querySelectorAll(q)},this.addBindings()},setActive:function(){for(var e=0;e<this._n.length;e++)this.addClass(this._n[e].children)},removeActive:function(){for(var e=0;e<this._n.length;e++)this.removeClass(this._n[e].children)},addClass:function(t){var n=e.settings,r=t[e.index];r&&(r.classList.add(n.classes.nav.active),P(r).forEach(function(e){e.classList.remove(n.classes.nav.active)}))},removeClass:function(t){var n=t[e.index];null==n||n.classList.remove(e.settings.classes.nav.active)},setArrowState:function(){if(!e.settings.rewind){var n=i._arrowControls.next,r=i._arrowControls.previous;this.resetArrowState(n,r),0===e.index&&this.disableArrow(r),e.index===t.Run.length&&this.disableArrow(n)}},resetArrowState:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach(function(e){I(e).forEach(function(e){e.classList.remove(t.classes.arrow.disabled)})})},disableArrow:function(){for(var t=e.settings,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach(function(e){I(e).forEach(function(e){e.classList.add(t.classes.arrow.disabled)})})},addBindings:function(){for(var e=0;e<this._c.length;e++)this.bind(this._c[e].children)},removeBindings:function(){for(var e=0;e<this._c.length;e++)this.unbind(this._c[e].children)},bind:function(e){for(var t=0;t<e.length;t++)r.on("click",e[t],this.click),r.on("touchstart",e[t],this.click,o)},unbind:function(e){for(var t=0;t<e.length;t++)r.off(["click","touchstart"],e[t])},click:function(e){$||"touchstart"!==e.type||e.preventDefault();var n=e.currentTarget.getAttribute("data-glide-dir");t.Run.make(t.Direction.resolve(n))}};return _(i,"items",{get:function(){return i._c}}),n.on(["mount.after","move.after"],function(){i.setActive()}),n.on(["mount.after","run"],function(){i.setArrowState()}),n.on("destroy",function(){i.removeBindings(),i.removeActive(),r.destroy()}),i},Keyboard:function(e,t,n){var r=new L,o={mount:function(){e.settings.keyboard&&this.bind()},bind:function(){r.on("keyup",document,this.press)},unbind:function(){r.off("keyup",document)},press:function(n){var r=e.settings.perSwipe;["ArrowRight","ArrowLeft"].includes(n.code)&&t.Run.make(t.Direction.resolve("".concat(r).concat({ArrowRight:">",ArrowLeft:"<"}[n.code])))}};return n.on(["destroy","update"],function(){o.unbind()}),n.on("update",function(){o.mount()}),n.on("destroy",function(){r.destroy()}),o},Autoplay:function(e,t,n){var r=new L,o={mount:function(){this.enable(),this.start(),e.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var r=this;this._e&&(this.enable(),e.settings.autoplay&&S(this._i)&&(this._i=setInterval(function(){r.stop(),t.Run.make(">"),r.start(),n.emit("autoplay")},this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var e=this;r.on("mouseover",t.Html.root,function(){e._e&&e.stop()}),r.on("mouseout",t.Html.root,function(){e._e&&e.start()})},unbind:function(){r.off(["mouseover","mouseout"],t.Html.root)}};return _(o,"time",{get:function(){var n=t.Html.slides[e.index].getAttribute("data-glide-autoplay");return g(n||e.settings.autoplay)}}),n.on(["destroy","update"],function(){o.unbind()}),n.on(["run.before","swipe.start","update"],function(){o.stop()}),n.on(["pause","destroy"],function(){o.disable(),o.stop()}),n.on(["run.after","swipe.end"],function(){o.start()}),n.on(["play"],function(){o.enable(),o.start()}),n.on("update",function(){o.mount()}),n.on("destroy",function(){r.destroy()}),o},Breakpoints:function(e,t,n){var r=new L,o=e.settings,i=Y(o.breakpoints),s=Object.assign({},o),a={match:function(e){if(void 0!==window.matchMedia)for(var t in e)if(e.hasOwnProperty(t)&&window.matchMedia("(max-width: ".concat(t,"px)")).matches)return e[t];return s}};return Object.assign(o,a.match(i)),r.on("resize",window,E(function(){e.settings=O(o,a.match(i))},e.settings.throttle)),n.on("update",function(){i=Y(i),s=Object.assign({},o)}),n.on("destroy",function(){r.off("resize",window)}),a}},J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(n,e);var t=f(n);function n(){return s(this,n),t.apply(this,arguments)}return l(n,[{key:"mount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(u(n.prototype),"mount",this).call(this,Object.assign({},Q,e))}}]),n}(T)}
2,52781(e,t,n){"use strict";n.d(t,{KE:()=>jn,YY:()=>wn,CU:()=>hn,Db:()=>qn,bP:()=>Yn,Yv:()=>Qn,gk:()=>rt,AB:()=>Fn,T7:()=>Ye,Nx:()=>Qe,Zx:()=>vt,yQ:()=>gt,gu:()=>St,FF:()=>_t,iI:()=>Ze,hO:()=>Ot,fl:()=>Ct,Pg:()=>Y,zU:()=>lt,QN:()=>xt,J_:()=>Pt,rU:()=>Le,Op:()=>jt,BQ:()=>Mt,OX:()=>Mn,Zc:()=>Jn,KV:()=>at,jT:()=>Dn,Dd:()=>Xn,kj:()=>Vn,JJ:()=>Rn,tG:()=>Nn});var r=n(38262),o=n(58903),i=n(42845);const s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const l=(e,t,n)=>{let s=a(e,n);if(!s)return!1;let l=p(s);if(!l){let n=s.blockRange(),o=n&&(0,r.jP)(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let c=l.nodeBefore;if(O(e,l,t,-1))return!0;if(0==s.parent.content.size&&(u(c,"end")||i.nh.isSelectable(c)))for(let n=s.depth;;n--){let a=(0,r.$L)(e.doc,s.before(n),s.after(n),o.Ji.empty);if(a&&a.slice.size<a.to-a.from){if(t){let n=e.tr.step(a);n.setSelection(u(c,"end")?i.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos,-1)),-1):i.nh.create(n.doc,l.pos-c.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||s.node(n-1).childCount>1)break}return!(!c.isAtom||l.depth!=s.depth-1)&&(t&&t(e.tr.delete(l.pos-c.nodeSize,l.pos).scrollIntoView()),!0)};function c(e,t,n){let s=t.nodeBefore,a=t.pos-1;for(;!s.isTextblock;a--){if(s.type.spec.isolating)return!1;let e=s.lastChild;if(!e)return!1;s=e}let l=t.nodeAfter,c=t.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let e=l.firstChild;if(!e)return!1;l=e}let u=(0,r.$L)(e.doc,a,c,o.Ji.empty);if(!u||u.from!=a||u instanceof r.Ln&&u.slice.size>=c-a)return!1;if(n){let t=e.tr.step(u);t.setSelection(i.U3.create(t.doc,a)),n(t.scrollIntoView())}return!0}function u(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const d=(e,t,n)=>{let{$head:r,empty:o}=e.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;s=p(r)}let a=s&&s.nodeBefore;return!(!a||!i.nh.isSelectable(a))&&(t&&t(e.tr.setSelection(i.nh.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function p(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function f(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const h=(e,t,n)=>{let s=f(e,n);if(!s)return!1;let a=v(s);if(!a)return!1;let l=a.nodeAfter;if(O(e,a,t,1))return!0;if(0==s.parent.content.size&&(u(l,"start")||i.nh.isSelectable(l))){let n=(0,r.$L)(e.doc,s.before(),s.after(),o.Ji.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(u(l,"start")?i.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos)),1):i.nh.create(r.doc,r.mapping.map(a.pos))),t(r.scrollIntoView())}return!0}}return!(!l.isAtom||a.depth!=s.depth-1)&&(t&&t(e.tr.delete(a.pos,a.pos+l.nodeSize).scrollIntoView()),!0)},m=(e,t,n)=>{let{$head:r,empty:o}=e.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;s=v(r)}let a=s&&s.nodeAfter;return!(!a||!i.nh.isSelectable(a))&&(t&&t(e.tr.setSelection(i.nh.create(e.doc,s.pos)).scrollIntoView()),!0)};function v(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const g=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function y(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const b=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),s=n.indexAfter(-1),a=y(o.contentMatchAt(s));if(!a||!o.canReplaceWith(s,s,a))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,a.createAndFill());o.setSelection(i.LN.near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},w=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof i.i5||r.parent.inlineContent||o.parent.inlineContent)return!1;let s=y(o.parent.contentMatchAt(o.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,a=e.tr.insert(n,s.createAndFill());a.setSelection(i.U3.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},S=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if((0,r.zy)(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let o=n.blockRange(),i=o&&(0,r.jP)(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)};const k=(e,t)=>{let{$from:n,$to:o}=e.selection;if(e.selection instanceof i.nh&&e.selection.node.isBlock)return!(!n.parentOffset||!(0,r.zy)(e.doc,n.pos)||(t&&t(e.tr.split(n.pos).scrollIntoView()),0));if(!n.depth)return!1;let s,a,l=[],c=!1,u=!1;for(let e=n.depth;;e--){if(n.node(e).isBlock){c=n.end(e)==n.pos+(n.depth-e),u=n.start(e)==n.pos-(n.depth-e),a=y(n.node(e-1).contentMatchAt(n.indexAfter(e-1)));let t=_&&_(o.parent,c,n);l.unshift(t||(c&&a?{type:a}:null)),s=e;break}if(1==e)return!1;l.unshift(null)}let d=e.tr;(e.selection instanceof i.U3||e.selection instanceof i.i5)&&d.deleteSelection();let p=d.mapping.map(n.pos),f=(0,r.zy)(d.doc,p,l.length,l);if(f||(l[0]=a?{type:a}:null,f=(0,r.zy)(d.doc,p,l.length,l)),!f)return!1;if(d.split(p,l.length,l),!c&&u&&n.node(s).type!=a){let e=d.mapping.map(n.before(s)),t=d.doc.resolve(e);a&&n.node(s-1).canReplaceWith(t.index(),t.index()+1,a)&&d.setNodeMarkup(d.mapping.map(n.before(s)),a)}return t&&t(d.scrollIntoView()),!0};var _;function O(e,t,n,s){let a,l,c=t.nodeBefore,d=t.nodeAfter,p=c.type.spec.isolating||d.type.spec.isolating;if(!p&&function(e,t,n){let o=t.nodeBefore,i=t.nodeAfter,s=t.index();return!(!(o&&i&&o.type.compatibleContent(i.type))||(!o.content.size&&t.parent.canReplace(s-1,s)?(n&&n(e.tr.delete(t.pos-o.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(s,s+1)||!i.isTextblock&&!(0,r.n9)(e.doc,t.pos)||(n&&n(e.tr.join(t.pos).scrollIntoView()),0)))}
2(e,t,n))return!0;let f=!p&&t.parent.canReplace(t.index(),t.index()+1);if(f&&(a=(l=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&l.matchType(a[0]||d.type).validEnd){if(n){let i=t.pos+d.nodeSize,s=o.FK.empty;for(let e=a.length-1;e>=0;e--)s=o.FK.from(a[e].create(null,s));s=o.FK.from(c.copy(s));let l=e.tr.step(new r.Wg(t.pos-1,i,t.pos,i,new o.Ji(s,1,0),a.length,!0)),u=l.doc.resolve(i+2*a.length);u.nodeAfter&&u.nodeAfter.type==c.type&&(0,r.n9)(l.doc,u.pos)&&l.join(u.pos),n(l.scrollIntoView())}return!0}let h=d.type.spec.isolating||s>0&&p?null:i.LN.findFrom(t,1),m=h&&h.$from.blockRange(h.$to),v=m&&(0,r.jP)(m);if(null!=v&&v>=t.depth)return n&&n(e.tr.lift(m,v).scrollIntoView()),!0;if(f&&u(d,"start",!0)&&u(c,"end")){let i=c,s=[];for(;s.push(i),!i.isTextblock;)i=i.lastChild;let a=d,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(i.canReplace(i.childCount,i.childCount,a.content)){if(n){let i=o.FK.empty;for(let e=s.length-1;e>=0;e--)i=o.FK.from(s[e].copy(i));n(e.tr.step(new r.Wg(t.pos-s.length,t.pos+d.nodeSize,t.pos+l,t.pos+d.nodeSize-l,new o.Ji(i,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function C(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,s=o.depth;for(;o.node(s).isInline;){if(!s)return!1;s--}return!!o.node(s).isTextblock&&(n&&n(t.tr.setSelection(i.U3.create(t.doc,e<0?o.start(s):o.end(s)))),!0)}}const T=C(-1),A=C(1);function E(e,t=null){return function(n,r){let o=!1;for(let r=0;r<n.selection.ranges.length&&!o;r++){let{$from:{pos:i},$to:{pos:s}}=n.selection.ranges[r];n.doc.nodesBetween(i,s,(r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(i),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:s}}=n.selection.ranges[r];o.setBlockType(i,s,e,t)}r(o.scrollIntoView())}return!0}}function x(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let P=x(s,l,d),I=x(s,h,m);const L={Enter:x(g,w,S,k),"Mod-Enter":b,Backspace:P,"Mod-Backspace":P,"Shift-Backspace":P,Delete:I,"Mod-Delete":I,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new i.i5(e.doc))),!0)},j={"Ctrl-h":L.Backspace,"Alt-Backspace":L["Mod-Backspace"],"Ctrl-d":L.Delete,"Ctrl-Alt-Backspace":L["Mod-Delete"],"Alt-Delete":L["Mod-Delete"],"Alt-d":L["Mod-Delete"],"Ctrl-a":T,"Ctrl-e":A};for(let e in L)j[e]=L[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function M(e,t=null){return function(n,i){let{$from:s,$to:a}=n.selection,l=s.blockRange(a);if(!l)return!1;let c=i?n.tr:null;return!!function(e,t,n,i=null){let s=!1,a=t,l=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=l.resolve(t.start-2);a=new o.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new o.u$(t.$from,l.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let c=(0,r.oM)(a,n,i,t);if(!c)return!1;e&&function(e,t,n,i,s){let a=o.FK.empty;for(let e=n.length-1;e>=0;e--)a=o.FK.from(n[e].type.create(n[e].attrs,a));e.step(new r.Wg(t.start-(i?2:0),t.end,t.start,t.end,new o.Ji(a,0,0),n.length,!0));let l=0;for(let e=0;e<n.length;e++)n[e].type==s&&(l=e+1);let c=n.length-l,u=t.start+n.length-(i?2:0),d=t.parent;for(let n=t.startIndex,o=t.endIndex,i=!0;n<o;n++,i=!1)!i&&(0,r.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(n).nodeSize}(e,t,c,s,n);return!0}(c,l,e,t)&&(i&&i(c.scrollIntoView()),!0)}}function D(e){return function(t,n){let{$from:i,$to:s}=t.selection,a=i.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!n||(i.node(a.depth-1).type==e?function(e,t,n,i){let s=e.tr,a=i.end,l=i.$to.end(i.depth);a<l&&(s.step(new r.Wg(a-1,l,a,l,new o.Ji(o.FK.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new o.u$(s.doc.resolve(i.$from.pos),s.doc.resolve(l),i.depth));const c=(0,r.jP)(i);if(null==c)return!1;s.lift(i,c);let u=s.doc.resolve(s.mapping.map(a,-1)-1);(0,r.n9)(s.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&s.join(u.pos);return t(s.scrollIntoView()),!0}(t,n,e,a):function(e,t,n){let i=e.tr,s=n.parent;for(let e=n.end,t=n.endIndex-1,r=n.startIndex;t>r;t--)e-=s.child(t).nodeSize,i.delete(e-1,e+1);let a=i.doc.resolve(n.start),l=a.nodeAfter;if(i.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,u=n.endIndex==s.childCount,d=a.node(-1),p=a.index(-1);if(!d.canReplace(p+(c?0:1),p+1,l.content.append(u?o.FK.empty:o.FK.from(s))))return!1;let f=a.pos,h=f+l.nodeSize;return i.step(new r.Wg(f-(c?1:0),h+(u?1:0),f+1,h-1,new o.Ji((c?o.FK.empty:o.FK.from(s.copy(o.FK.empty))).append(u?o.FK.empty:o.FK.from(s.copy(o.FK.empty))),c?0:1,u?0:1),c?0:1)),t(i.scrollIntoView()),!0}(t,n,a)))}}var R=n(1575),N=n(61396),F=Object.defineProperty,B=(e,t)=>{for(var n in t)F(e,n,{get:t[n],enumerable:!0})};function U(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}var H=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{const n=t(...e)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s=[],a=!!e,l=e||o.tr,c={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{const r=this.buildProps(l,t),o=n(...e)(r);return s.push(o),c}])),run:()=>(a||!t||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),s.every(e=>!0===e))};return c}createCan(e){const{rawCommands:t,state:n}=this,r=!1,o=e||n.tr,i=this.buildProps(o,r);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,r)}}buildProps(e,t=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s={tr:e,editor:r,view:i,state:U({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(s)]))}};return s}},$={};B($,{blur:()=>z,clearContent:()=>W,clearNodes:()=>G,command:()=>X,createParagraphNear:()=>V,cut:()=>K,deleteCurrentNode:()=>q,deleteNode:()=>Q,deleteRange:()=>J,deleteSelection:()=>Z,enter:()=>ee,exitCode:()=>te,extendMarkRange:()=>le,first:()=>
2ce,focus:()=>me,forEach:()=>ve,insertContent:()=>ge,insertContentAt:()=>Se,joinBackward:()=>Oe,joinDown:()=>_e,joinForward:()=>Ce,joinItemBackward:()=>Te,joinItemForward:()=>Ae,joinTextblockBackward:()=>Ee,joinTextblockForward:()=>xe,joinUp:()=>ke,keyboardShortcut:()=>Ie,lift:()=>je,liftEmptyBlock:()=>Me,liftListItem:()=>De,newlineInCode:()=>Re,resetAttributes:()=>Be,scrollIntoView:()=>Ue,selectAll:()=>He,selectNodeBackward:()=>$e,selectNodeForward:()=>ze,selectParentNode:()=>We,selectTextblockEnd:()=>Ge,selectTextblockStart:()=>Xe,setContent:()=>Ke,setMark:()=>Ft,setMeta:()=>Bt,setNode:()=>Ut,setNodeSelection:()=>Ht,setTextDirection:()=>$t,setTextSelection:()=>zt,sinkListItem:()=>Wt,splitBlock:()=>Xt,splitListItem:()=>Vt,toggleList:()=>Yt,toggleMark:()=>Qt,toggleNode:()=>Jt,toggleWrap:()=>Zt,undoInputRule:()=>en,unsetAllMarks:()=>tn,unsetMark:()=>nn,unsetTextDirection:()=>rn,updateAttributes:()=>on,wrapIn:()=>sn,wrapInList:()=>an});var z=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null==(n=null==window?void 0:window.getSelection())||n.removeAllRanges())}),!0),W=(e=!0)=>({commands:t})=>t.setContent("",{emitUpdate:e}),G=()=>({state:e,tr:t,dispatch:n})=>{const{selection:o}=t,{ranges:i}=o;return!n||(i.forEach(({$from:n,$to:o})=>{e.doc.nodesBetween(n.pos,o.pos,(e,n)=>{if(e.type.isText)return;const{doc:o,mapping:i}=t,s=o.resolve(i.map(n)),a=o.resolve(i.map(n+e.nodeSize)),l=s.blockRange(a);if(!l)return;const c=(0,r.jP)(l);if(e.type.isTextblock){const{defaultType:e}=s.parent.contentMatchAt(s.index());t.setNodeMarkup(l.start,e)}(c||0===c)&&t.lift(l,c)})}),!0)},X=e=>t=>e(t),V=()=>({state:e,dispatch:t})=>w(e,t),K=(e,t)=>({editor:n,tr:r})=>{const{state:o}=n,s=o.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const a=r.mapping.map(t);return r.insert(a,s.content),r.setSelection(new i.U3(r.doc.resolve(Math.max(a-1,0)))),!0},q=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const o=e.selection.$anchor;for(let n=o.depth;n>0;n-=1){if(o.node(n).type===r.type){if(t){const t=o.before(n),r=o.after(n);e.delete(t,r).scrollIntoView()}return!0}}return!1};function Y(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var Q=e=>({tr:t,state:n,dispatch:r})=>{const o=Y(e,n.schema),i=t.selection.$anchor;for(let e=i.depth;e>0;e-=1){if(i.node(e).type===o){if(r){const n=i.before(e),r=i.after(e);t.delete(n,r).scrollIntoView()}return!0}}return!1},J=e=>({tr:t,dispatch:n})=>{const{from:r,to:o}=e;return n&&t.delete(r,o),!0},Z=()=>({state:e,dispatch:t})=>s(e,t),ee=()=>({commands:e})=>e.keyboardShortcut("Enter"),te=()=>({state:e,dispatch:t})=>b(e,t);function ne(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function re(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:ne(t[r])?t[r].test(e[r]):t[r]===e[r])}function oe(e,t,n={}){return e.find(e=>e.type===t&&re(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function ie(e,t,n={}){return!!oe(e,t,n)}function se(e,t,n){var r;if(!e||!t)return;let o=e.parent.childAfter(e.parentOffset);if(o.node&&o.node.marks.some(e=>e.type===t)||(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some(e=>e.type===t))return;n=n||(null==(r=o.node.marks[0])?void 0:r.attrs);if(!oe([...o.node.marks],t,n))return;let i=o.index,s=e.start()+o.offset,a=i+1,l=s+o.node.nodeSize;for(;i>0&&ie([...e.parent.child(i-1).marks],t,n);)i-=1,s-=e.parent.child(i).nodeSize;for(;a<e.parent.childCount&&ie([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function ae(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var le=(e,t={})=>({tr:n,state:r,dispatch:o})=>{const s=ae(e,r.schema),{doc:a,selection:l}=n,{$from:c,from:u,to:d}=l;if(o){const e=se(c,s,t);if(e&&e.from<=u&&e.to>=d){const t=i.U3.create(a,e.from,e.to);n.setSelection(t)}}return!0},ce=e=>t=>{const n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function ue(e){return e instanceof i.U3}function de(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function pe(e,t=null){if(!t)return null;const n=i.LN.atStart(e),r=i.LN.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;const o=n.from,s=r.to;return"all"===t?i.U3.create(e,de(0,o,s),de(e.content.size,o,s)):i.U3.create(e,de(t,o,s),de(t,o,s))}function fe(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function he(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var me=(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};const s=()=>{(he()||fe())&&r.dom.focus(),"undefined"==typeof navigator||!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||he()||fe()||r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&null===e||!1===e)return!0}catch{return!1}if(i&&null===e&&!ue(n.state.selection))return s(),!0;const a=pe(o.doc,e)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||o.setSelection(a),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},ve=(e,t)=>
2n=>e.every((e,r)=>t(e,{...n,index:r})),ge=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),ye=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&ye(r)}return e};function be(e){if("undefined"==typeof window)throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,n=(new window.DOMParser).parseFromString(t,"text/html").body;return ye(n)}function we(e,t,n){if(e instanceof o.bP||e instanceof o.FK)return e;n={slice:!0,parseOptions:{},...n};const r="string"==typeof e;if("object"==typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return o.FK.fromArray(e.map(e=>t.nodeFromJSON(e)));const r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),we("",t,n)}if(r){if(n.errorOnInvalidContent){let r=!1,i="";const s=new o.Sj({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,i="string"==typeof e?e:e.outerHTML,null)}]}})});if(n.slice?o.S4.fromSchema(s).parseSlice(be(e),n.parseOptions):o.S4.fromSchema(s).parse(be(e),n.parseOptions),n.errorOnInvalidContent&&r)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${i}`)})}const r=o.S4.fromSchema(t);return n.slice?r.parseSlice(be(e),n.parseOptions).content:r.parse(be(e),n.parseOptions)}return we("",t,n)}var Se=(e,t,n)=>({tr:s,dispatch:a,editor:l})=>{var c;if(a){let a;const u=e=>{l.emit("contentError",{editor:l,error:e,disableCollaboration:()=>{"collaboration"in l.storage&&"object"==typeof l.storage.collaboration&&l.storage.collaboration&&(l.storage.collaboration.isDisabled=!0)}})},d={preserveWhitespace:"full",...(n={parseOptions:l.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n}).parseOptions};if(!n.errorOnInvalidContent&&!l.options.enableContentCheck&&l.options.emitContentError)try{we(t,l.schema,{parseOptions:d,errorOnInvalidContent:!0})}catch(e){u(e)}try{a=we(t,l.schema,{parseOptions:d,errorOnInvalidContent:null!=(c=n.errorOnInvalidContent)?c:l.options.enableContentCheck})}catch(e){return u(e),!1}let{from:p,to:f}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},h=!0,m=!0;if(("type"in a?[a]:a).forEach(e=>{e.check(),h=!!h&&(e.isText&&0===e.marks.length),m=!!m&&e.isBlock}),p===f&&m){const{parent:e}=s.doc.resolve(p);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(p-=1,f+=1)}let v;if(h){if(Array.isArray(t))v=t.map(e=>e.text||"").join("");else if(t instanceof o.FK){let e="";t.forEach(t=>{t.text&&(e+=t.text)}),v=e}else v="object"==typeof t&&t&&t.text?t.text:t;s.insertText(v,p,f)}else{v=a;const e=s.doc.resolve(p),t=e.node(),n=0===e.parentOffset,r=t.isText||t.isTextblock,o=t.content.size>0;n&&r&&o&&(p=Math.max(0,p-1)),s.replaceWith(p,f,v)}n.updateSelection&&function(e,t,n){const o=e.steps.length-1;if(o<t)return;const s=e.steps[o];if(!(s instanceof r.Ln||s instanceof r.Wg))return;const a=e.mapping.maps[o];let l=0;a.forEach((e,t,n,r)=>{0===l&&(l=r)}),e.setSelection(i.LN.near(e.doc.resolve(l),n))}(s,s.steps.length-1,-1),n.applyInputRules&&s.setMeta("applyInputRules",{from:p,text:v}),n.applyPasteRules&&s.setMeta("applyPasteRules",{from:p,text:v})}return!0},ke=()=>({state:e,dispatch:t})=>((e,t)=>{let n,o=e.selection,s=o instanceof i.nh;if(s){if(o.node.isTextblock||!(0,r.n9)(e.doc,o.from))return!1;n=o.from}else if(n=(0,r.N0)(e.doc,o.from,-1),null==n)return!1;if(t){let r=e.tr.join(n);s&&r.setSelection(i.nh.create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0})(e,t),_e=()=>({state:e,dispatch:t})=>((e,t)=>{let n,o=e.selection;if(o instanceof i.nh){if(o.node.isTextblock||!(0,r.n9)(e.doc,o.to))return!1;n=o.to}else if(n=(0,r.N0)(e.doc,o.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0})(e,t),Oe=()=>({state:e,dispatch:t})=>l(e,t),Ce=()=>({state:e,dispatch:t})=>h(e,t),Te=()=>({state:e,dispatch:t,tr:n})=>{try{const o=(0,r.N0)(e.doc,e.selection.$from.pos,-1);return null!=o&&(n.join(o,2),t&&t(n),!0)}catch{return!1}},Ae=()=>({state:e,dispatch:t,tr:n})=>{try{const o=(0,r.N0)(e.doc,e.selection.$from.pos,1);return null!=o&&(n.join(o,2),t&&t(n),!0)}catch{return!1}},Ee=()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=a(e,n);if(!r)return!1;let o=p(r);return!!o&&c(e,o,t)})(e,t),xe=()=>({state:e,dispatch:t})=>((e,t,n)=>{let r=f(e,n);if(!r)return!1;let o=v(r);return!!o&&c(e,o,t)})(e,t);function Pe(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}var Ie=e=>({editor:t,view:n,tr:r,dispatch:o})=>{const i=function(e){const t=e.split(/-(?!$)/);let n,r,o,i,s=t[t.length-1];"Space"===s&&(s=" ");for(let e=0;e<t.length-1;e+=1){const s=t[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))o=!0;else{if(!/^mod$/i.test(s))throw new Error(`Unrecognized modifier name: ${s}`);he()||Pe()?i=!0:r=!0}}return n&&(s=`Alt-${s}`),r&&(s=`Ctrl-${s}`),i&&(s=`Meta-${s}`),o&&(s=`Shift-${s}`),s}(e).split(/-(?!$)/),s=i.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),a=new KeyboardEvent("keydown",{key:"Space"
2===s?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,a))});return null==l||l.steps.forEach(e=>{const t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0};function Le(e,t,n={}){const{from:r,to:o,empty:i}=e.selection,s=t?Y(t,e.schema):null,a=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);a.push({node:e,from:n,to:i})});const l=o-r,c=a.filter(e=>!s||s.name===e.node.type.name).filter(e=>re(e.node.attrs,n,{strict:!1}));if(i)return!!c.length;return c.reduce((e,t)=>e+t.to-t.from,0)>=l}var je=(e,t={})=>({state:n,dispatch:o})=>!!Le(n,Y(e,n.schema),t)&&((e,t)=>{let{$from:n,$to:o}=e.selection,i=n.blockRange(o),s=i&&(0,r.jP)(i);return null!=s&&(t&&t(e.tr.lift(i,s).scrollIntoView()),!0)})(n,o),Me=()=>({state:e,dispatch:t})=>S(e,t),De=e=>({state:t,dispatch:n})=>D(Y(e,t.schema))(t,n),Re=()=>({state:e,dispatch:t})=>g(e,t);function Ne(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Fe(e,t){const n="string"==typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var Be=(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const a=Ne("string"==typeof e?e:e.name,r.schema);if(!a)return!1;"node"===a&&(i=Y(e,r.schema)),"mark"===a&&(s=ae(e,r.schema));let l=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{i&&i===e.type&&(l=!0,o&&n.setNodeMarkup(r,void 0,Fe(e.attrs,t))),s&&e.marks.length&&e.marks.forEach(i=>{s===i.type&&(l=!0,o&&n.addMark(r,r+e.nodeSize,s.create(Fe(i.attrs,t))))})})}),l},Ue=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),He=()=>({tr:e,dispatch:t})=>{if(t){const t=new i.i5(e.doc);e.setSelection(t)}return!0},$e=()=>({state:e,dispatch:t})=>d(e,t),ze=()=>({state:e,dispatch:t})=>m(e,t),We=()=>({state:e,dispatch:t})=>((e,t)=>{let n,{$from:r,to:o}=e.selection,s=r.sharedDepth(o);return 0!=s&&(n=r.before(s),t&&t(e.tr.setSelection(i.nh.create(e.doc,n))),!0)})(e,t),Ge=()=>({state:e,dispatch:t})=>A(e,t),Xe=()=>({state:e,dispatch:t})=>T(e,t);function Ve(e,t,n={},r={}){return we(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Ke=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:o,tr:i,dispatch:s,commands:a})=>{const{doc:l}=i;if("full"!==r.preserveWhitespace){const a=Ve(e,o.schema,r,{errorOnInvalidContent:null!=t?t:o.options.enableContentCheck});return s&&i.replaceWith(0,l.content.size,a).setMeta("preventUpdate",!n),!0}return s&&i.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},e,{parseOptions:r,errorOnInvalidContent:null!=t?t:o.options.enableContentCheck})};function qe(e,t){const n=ae(t,e.schema),{from:r,to:o,empty:i}=e.selection,s=[];i?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{s.push(...e.marks)});const a=s.find(e=>e.type.name===n.name);return a?{...a.attrs}:{}}function Ye(e,t){const n=new r.dL(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Qe(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Je(e){return t=>function(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}(t.$from,e)}function Ze(e,t,n){if(void 0===e.config[t]&&e.parent)return Ze(e.parent,t,n);if("function"==typeof e.config[t]){return e.config[t].bind({...n,parent:e.parent?Ze(e.parent,t,n):null})}return e.config[t]}function et(e){return e.map(e=>{const t=Ze(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...et(t())]:e}).flat(10)}function tt(e,t){const n=o.ZF.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function nt(e){return"function"==typeof e}function rt(e,t=void 0,...n){return nt(e)?t?e.bind(t)(...n):e(...n):e}function ot(e){return{baseExtensions:e.filter(e=>"extension"===e.type),nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}function it(e){const t=[],{nodeExtensions:n,markExtensions:r}=ot(e),o=[...n,...r],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(e=>"text"!==e.name).map(e=>e.name),a=r.map(e=>e.name),l=[...s,...a];
2return e.forEach(e=>{const n=Ze(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage,extensions:o});if(!n)return;n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:"*"===e.types?l:"nodes"===e.types?s:"marks"===e.types?a:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...i,...r}})})})})}),o.forEach(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=Ze(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach(([n,r])=>{const o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})})}),t}function st(e){const t=[],n=function(e){const t=[];let n="",r=!1,o=!1,i=0;const s=e.length;for(let a=0;a<s;a+=1){const s=e[a];if("'"!==s||o)if('"'!==s||r){if(!r&&!o){if("("===s){i+=1,n+=s;continue}if(")"===s&&i>0){i-=1,n+=s;continue}if(";"===s&&0===i){t.push(n),n="";continue}}n+=s}else o=!o,n+=s;else r=!r,n+=s}return n&&t.push(n),t}(e||""),r=n.length;for(let e=0;e<r;e+=1){const r=n[e],o=r.indexOf(":");if(-1===o)continue;const i=r.slice(0,o).trim(),s=r.slice(o+1).trim();i&&s&&t.push([i,s])}return t}function at(...e){return e.filter(e=>!!e).reduce((e,t)=>{const n={...e};return Object.entries(t).forEach(([e,t])=>{if(n[e])if("class"===e){const r=t?String(t).split(" "):[],o=n[e]?n[e].split(" "):[],i=r.filter(e=>!o.includes(e));n[e]=[...o,...i].join(" ")}else if("style"===e){const r=new Map([...st(n[e]),...st(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join("; ")}else n[e]=t;else n[e]=t}),n},{})}function lt(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>at(e,t),{})}function ct(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!=typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null==r?e:{...e,[t.name]:r}},{});return{...r,...o}}}}function ut(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>("attrs"!==e||!function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t))}function dt(e){var t,n;const r={};return!(null==(t=null==e?void 0:e.attribute)?void 0:t.isRequired)&&"default"in((null==e?void 0:e.attribute)||{})&&(r.default=e.attribute.default),void 0!==(null==(n=null==e?void 0:e.attribute)?void 0:n.validate)&&(r.validate=e.attribute.validate),[e.name,r]}function pt(e,t){var n;const r=it(e),{nodeExtensions:i,markExtensions:s}=ot(e),a=null==(n=i.find(e=>Ze(e,"topNode")))?void 0:n.name,l=Object.fromEntries(i.map(n=>{const o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:t},s=ut({...e.reduce((e,t)=>{const r=Ze(t,"extendNodeSchema",i);return{...e,...r?r(n):{}}},{}),content:rt(Ze(n,"content",i)),marks:rt(Ze(n,"marks",i)),group:rt(Ze(n,"group",i)),inline:rt(Ze(n,"inline",i)),atom:rt(Ze(n,"atom",i)),selectable:rt(Ze(n,"selectable",i)),draggable:rt(Ze(n,"draggable",i)),code:rt(Ze(n,"code",i)),whitespace:rt(Ze(n,"whitespace",i)),linebreakReplacement:rt(Ze(n,"linebreakReplacement",i)),defining:rt(Ze(n,"defining",i)),isolating:rt(Ze(n,"isolating",i)),attrs:Object.fromEntries(o.map(dt))}),a=rt(Ze(n,"parseHTML",i));a&&(s.parseDOM=a.map(e=>ct(e,o)));const l=Ze(n,"renderHTML",i);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:lt(e,o)}));const c=Ze(n,"renderText",i);return c&&(s.toText=c),[n.name,s]})),c=Object.fromEntries(s.map(n=>{const o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:t},s=ut({...e.reduce((e,t)=>{const r=Ze(t,"extendMarkSchema",i);return{...e,...r?r(n):{}}},{}),inclusive:rt(Ze(n,"inclusive",i)),excludes:rt(Ze(n,"excludes",i)),group:rt(Ze(n,"group",i)),spanning:rt(Ze(n,"spanning",i)),code:rt(Ze(n,"code",i)),attrs:Object.fromEntries(o.map(dt))}),a=rt(Ze(n,"parseHTML",i));a&&(s.parseDOM=a.map(e=>ct(e,o)));const l=Ze(n,"renderHTML",i);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:lt(e,o)})),[n.name,s]}));return new o.Sj({topNode:a,nodes:l,marks:c})}function ft(e){return e.sort((e,t)=>
2{const n=Ze(e,"priority")||100,r=Ze(t,"priority")||100;return n>r?-1:n<r?1:0})}function ht(e){const t=ft(et(e)),n=function(e){const t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),t}function mt(e,t){return pt(ht(e),t)}function vt(e,t){const n=mt(t);return tt(o.bP.fromJSON(n,e).content,n)}function gt(e,t){const n=mt(t),r=be(e);return o.S4.fromSchema(n).parse(r).toJSON()}function yt(e,t,n){const{from:r,to:o}=t,{blockSeparator:i="\n\n",textSerializers:s={}}=n||{};let a="";return e.nodesBetween(r,o,(e,n,l,c)=>{var u;e.isBlock&&n>r&&(a+=i);const d=null==s?void 0:s[e.type.name];if(d)return l&&(a+=d({node:e,pos:n,parent:l,index:c,range:t})),!1;e.isText&&(a+=null==(u=null==e?void 0:e.text)?void 0:u.slice(Math.max(r,n)-n,o-n))}),a}function bt(e,t){return yt(e,{from:0,to:e.content.size},t)}function wt(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function St(e,t){const n=Ne("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=Y(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,e=>{i.push(e)});const s=i.reverse().find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}(e,t):"mark"===n?qe(e,t):{}}function kt(e){const t=function(e,t=JSON.stringify){const n={};return e.filter(e=>{const r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(e);return 1===t.length?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function _t(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,o)=>{const i=[];if(e.ranges.length)e.forEach((e,t)=>{i.push({from:e,to:t})});else{const{from:e,to:t}=n[o];if(void 0===e||void 0===t)return;i.push({from:e,to:t})}i.forEach(({from:e,to:n})=>{const i=t.slice(o).map(e,-1),s=t.slice(o).map(n),a=t.invert().map(i,-1),l=t.invert().map(s);r.push({oldRange:{from:a,to:l},newRange:{from:i,to:s}})})}),kt(r)}function Ot(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(t=>{const o=se(n.resolve(e),t.type);o&&r.push({mark:t,...o})}):n.nodesBetween(e,t,(e,t)=>{e&&void 0!==(null==e?void 0:e.nodeSize)&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var Ct=(e,t,n,r=20)=>{const o=e.doc.resolve(n);let i=r,s=null;for(;i>0&&null===s;){const e=o.node(i);(null==e?void 0:e.type.name)===t?s=e:i-=1}return[s,i]};function Tt(e,t){return t.nodes[e]||t.marks[e]||null}function At(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{const r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function Et(e,t,n={}){const{empty:r,ranges:o}=e.selection,i=t?ae(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!i||i.name===e.type.name).find(e=>re(e.attrs,n,{strict:!1}));let s=0;const a=[];if(o.forEach(({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,(e,t)=>{if(i&&e.inlineContent&&!e.type.allowsMarkType(i))return!1;if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),l=Math.min(o,t+e.nodeSize);s+=l-n,a.push(...e.marks.map(e=>({mark:e,from:n,to:l})))})}),0===s)return!1;const l=a.filter(e=>!i||i.name===e.mark.type.name).filter(e=>re(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),c=a.filter(e=>!i||e.mark.type!==i&&e.mark.type.excludes(i)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+c:l)>=s}var xt=(e,t)=>{const{$from:n,$to:r,$anchor:o}=e.selection;if(t){const n=Je(e=>e.type.name===t)(e.selection);if(!n)return!1;const r=e.doc.resolve(n.pos+1);return o.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Pt=e=>{const{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function It(e,t){return Array.isArray(t)?t.some(t=>("string"==typeof t?t:t.name)===e.name):t}function Lt(e,t){const{nodeExtensions:n}=ot(t),r=n.find(t=>t.name===e);if(!r)return!1;const o=rt(Ze(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function jt(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;
2if(n){if("hardBreak"===e.type.name)return!0;if(e.isText)return!/\S/.test(null!=(r=e.text)?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let r=!0;return e.content.forEach(e=>{!1!==r&&(jt(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function Mt(e){return e instanceof i.nh}var Dt=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function Rt(e,t){const n=t.mapping.mapResult(e.position);return{position:new Dt(n.pos),mapResult:n}}function Nt(e){return new Dt(e)}var Ft=(e,t={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=ae(e,r.schema);if(o)if(s){const e=qe(r,l);n.addStoredMark(l.create({...e,...t}))}else a.forEach(e=>{const o=e.$from.pos,i=e.$to.pos;r.doc.nodesBetween(o,i,(e,r)=>{const s=Math.max(r,o),a=Math.min(r+e.nodeSize,i);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(s,a,l.create({...e.attrs,...t}))}):n.addMark(s,a,l.create(t))})});return function(e,t,n){var r;const{selection:o}=t;let i=null;if(ue(o)&&(i=o.$cursor),i){const t=null!=(r=e.storedMarks)?r:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}const{ranges:s}=o;return s.some(({$from:t,$to:r})=>{let o=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(o)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),i=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));o=t&&i}return!o}),o})}(r,n,l)},Bt=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Ut=(e,t={})=>({state:n,dispatch:r,chain:o})=>{const i=Y(e,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?o().command(({commands:e})=>!!E(i,{...s,...t})(n)||e.clearNodes()).command(({state:e})=>E(i,{...s,...t})(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Ht=e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,r=de(e,0,n.content.size),o=i.nh.create(n,r);t.setSelection(o)}return!0},$t=(e,t)=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=r;let s,a;return"number"==typeof t?(s=t,a=t):t&&"from"in t&&"to"in t?(s=t.from,a=t.to):(s=i.from,a=i.to),o&&n.doc.nodesBetween(s,a,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},zt=e=>({tr:t,dispatch:n})=>{if(n){const{doc:n}=t,{from:r,to:o}="number"==typeof e?{from:e,to:e}:e,s=i.U3.atStart(n).from,a=i.U3.atEnd(n).to,l=de(r,s,a),c=de(o,s,a),u=i.U3.create(n,l,c);t.setSelection(u)}return!0},Wt=e=>({state:t,dispatch:n})=>{const i=Y(e,t.schema);return(s=i,function(e,t){let{$from:n,$to:i}=e.selection,a=n.blockRange(i,e=>e.childCount>0&&e.firstChild.type==s);if(!a)return!1;let l=a.startIndex;if(0==l)return!1;let c=a.parent,u=c.child(l-1);if(u.type!=s)return!1;if(t){let n=u.lastChild&&u.lastChild.type==c.type,i=o.FK.from(n?s.create():null),l=new o.Ji(o.FK.from(s.create(null,o.FK.from(c.type.create(null,i)))),n?3:1,0),d=a.start,p=a.end;t(e.tr.step(new r.Wg(d-(n?3:1),p,d,p,l,1,!0)).scrollIntoView())}return!0})(t,n);var s};function Gt(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}var Xt=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:o,editor:s})=>{const{selection:a,doc:l}=t,{$from:c,$to:u}=a,d=At(s.extensionManager.attributes,c.node().type.name,c.node().attrs);if(a instanceof i.nh&&a.node.isBlock)return!(!c.parentOffset||!(0,r.zy)(l,c.pos))&&(o&&(e&&Gt(n,s.extensionManager.splittableMarks),t.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const p=u.parentOffset===u.parent.content.size,f=0===c.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(c.node(-1).contentMatchAt(c.indexAfter(-1)));let h=p&&f?[{type:f,attrs:d}]:void 0,m=(0,r.zy)(t.doc,t.mapping.map(c.pos),1,h);if(h||m||!(0,r.zy)(t.doc,t.mapping.map(c.pos),1,f?[{type:f}]:void 0)||(m=!0,h=f?[{type:f,attrs:d}]:void 0),o){if(m&&(a instanceof i.U3&&t.deleteSelection(),t.split(t.mapping.map(c.pos),1,h),f&&!p&&
vendor: 4,479 bytes, line 2
2!c.parentOffset&&c.parent.type!==f)){const e=t.mapping.map(c.before()),n=t.doc.resolve(e);c.node(-1).canReplaceWith(n.index(),n.index()+1,f)&&t.setNodeMarkup(t.mapping.map(c.before()),f)}e&&Gt(n,s.extensionManager.splittableMarks),t.scrollIntoView()}return m},Vt=(e,t={})=>({tr:n,state:s,dispatch:a,editor:l})=>{var c;const u=Y(e,s.schema),{$from:d,$to:p}=s.selection,f=s.selection.node;if(f&&f.isBlock||d.depth<2||!d.sameParent(p))return!1;const h=d.node(-1);if(h.type!==u)return!1;const m=l.extensionManager.attributes;if(0===d.parent.content.size&&d.node(-1).childCount===d.indexAfter(-1)){if(2===d.depth||d.node(-3).type!==u||d.index(-2)!==d.node(-2).childCount-1)return!1;if(a){let e=o.FK.empty;const r=d.index(-1)?1:d.index(-2)?2:3;for(let t=d.depth-r;t>=d.depth-3;t-=1)e=o.FK.from(d.node(t).copy(e));const s=d.indexAfter(-1)<d.node(-2).childCount?1:d.indexAfter(-2)<d.node(-3).childCount?2:3,a={...At(m,d.node().type.name,d.node().attrs),...t},l=(null==(c=u.contentMatch.defaultType)?void 0:c.createAndFill(a))||void 0;e=e.append(o.FK.from(u.createAndFill(null,l)||void 0));const p=d.before(d.depth-(r-1));n.replace(p,d.after(-s),new o.Ji(e,4-r,0));let f=-1;n.doc.nodesBetween(p,n.doc.content.size,(e,t)=>{if(f>-1)return!1;e.isTextblock&&0===e.content.size&&(f=t+1)}),f>-1&&n.setSelection(i.U3.near(n.doc.resolve(f))),n.scrollIntoView()}return!0}const v=p.pos===d.end()?h.contentMatchAt(0).defaultType:null,g={...At(m,h.type.name,h.attrs),...t},y={...At(m,d.node().type.name,d.node().attrs),...t};n.delete(d.pos,p.pos);const b=v?[{type:u,attrs:g},{type:v,attrs:y}]:[{type:u,attrs:g}];if(!(0,r.zy)(n.doc,d.pos,2))return!1;if(a){const{selection:e,storedMarks:t}=s,{splittableMarks:r}=l.extensionManager,o=t||e.$to.parentOffset&&e.$from.marks();if(n.split(d.pos,2,b).scrollIntoView(),!o||!a)return!0;const i=o.filter(e=>r.includes(e.type.name));n.ensureMarks(i)}return!0},Kt=(e,t)=>{const n=Je(e=>e.type===t)(e.selection);if(!n)return!0;const o=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===o)return!0;const i=e.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,r.n9)(e.doc,n.pos)||(e.join(n.pos),!0)},qt=(e,t)=>{const n=Je(e=>e.type===t)(e.selection);if(!n)return!0;const o=e.doc.resolve(n.start).after(n.depth);if(void 0===o)return!0;const i=e.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,r.n9)(e.doc,o)||(e.join(o),!0)},Yt=(e,t,n,r={})=>({editor:o,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:p}=o.extensionManager,f=Y(e,s.schema),h=Y(t,s.schema),{selection:m,storedMarks:v}=s,{$from:g,$to:y}=m,b=g.blockRange(y),w=v||m.$to.parentOffset&&m.$from.marks();if(!b)return!1;const S=Je(e=>Lt(e.type.name,d))(m);if(b.depth>=1&&S&&b.depth-S.depth<=1){if(S.node.type===f)return c.liftListItem(h);if(Lt(S.node.type.name,d)&&f.validContent(S.node.content)&&a)return l().command(()=>(i.setNodeMarkup(S.pos,f),!0)).command(()=>Kt(i,f)).command(()=>qt(i,f)).run()}return n&&w&&a?l().command(()=>{const e=u().wrapInList(f,r),t=w.filter(e=>p.includes(e.type.name));return i.ensureMarks(t),!!e||c.clearNodes()}).wrapInList(f,r).command(()=>Kt(i,f)).command(()=>qt(i,f)).run():l().command(()=>!!u().wrapInList(f,r)||c.clearNodes()).wrapInList(f,r).command(()=>Kt(i,f)).command(()=>qt(i,f)).run()},Qt=(e,t={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=ae(e,r.schema);return Et(r,s,t)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,t)},Jt=(e,t,n={})=>({state:r,commands:o})=>{const i=Y(e,r.schema),s=Y(t,r.schema),a=Le(r,i,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),a?o.setNode(s,l):o.setNode(i,{...l,...n})},Zt=(e,t={})=>({state:n,commands:r})=>{const o=Y(e,n.schema);return Le(n,o,t)?r.lift(o):r.wrapIn(o,t)},en=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(e))){if(t){const t=e.tr,n=i.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(i.text){const n=t.doc.resolve(i.from).marks();t.replaceWith(i.from,i.to,e.schema.text(i.text,n))}else t.delete(i.from,i.to)}return!0}}return!1},tn=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},nn=(e,t={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=ae(e,r.schema),{$from:c,empty:u,ranges:d}=a;if(!o)return!0;
2if(u&&s){let{from:e,to:t}=a;const r=null==(i=c.marks().find(e=>e.type===l))?void 0:i.attrs,o=se(c,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else d.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},rn=e=>({tr:t,state:n,dispatch:r})=>{const{selection:o}=n;let i,s;return"number"==typeof e?(i=e,s=e):e&&"from"in e&&"to"in e?(i=e.from,s=e.to):(i=o.from,s=o.to),r&&t.doc.nodesBetween(i,s,(e,n)=>{if(e.isText)return;const r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},on=(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const a=Ne("string"==typeof e?e:e.name,r.schema);if(!a)return!1;"node"===a&&(i=Y(e,r.schema)),"mark"===a&&(s=ae(e,r.schema));let l=!1;return n.selection.ranges.forEach(e=>{const a=e.$from.pos,c=e.$to.pos;let u,d,p,f;n.selection.empty?r.doc.nodesBetween(a,c,(e,t)=>{i&&i===e.type&&(l=!0,p=Math.max(t,a),f=Math.min(t+e.nodeSize,c),u=t,d=e)}):r.doc.nodesBetween(a,c,(e,r)=>{r<a&&i&&i===e.type&&(l=!0,p=Math.max(r,a),f=Math.min(r+e.nodeSize,c),u=r,d=e),r>=a&&r<=c&&(i&&i===e.type&&(l=!0,o&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),s&&e.marks.length&&e.marks.forEach(i=>{if(s===i.type&&(l=!0,o)){const o=Math.max(r,a),l=Math.min(r+e.nodeSize,c);n.addMark(o,l,s.create({...i.attrs,...t}))}}))}),d&&(void 0!==u&&o&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(e=>{s===e.type&&o&&n.addMark(p,f,s.create({...e.attrs,...t}))}))}),l},sn=(e,t={})=>({state:n,dispatch:o})=>function(e,t=null){return function(n,o){let{$from:i,$to:s}=n.selection,a=i.blockRange(s),l=a&&(0,r.oM)(a,e,t);
2return!!l&&(o&&o(n.tr.wrap(a,l).scrollIntoView()),!0)}}(Y(e,n.schema),t)(n,o),an=(e,t={})=>({state:n,dispatch:r})=>M(Y(e,n.schema),t)(n,r),ln=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},cn=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=null==(t=e.undoable)||t}};function un(e){var t;const{editor:n,from:r,to:o,text:i,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null==(t=c.nodeBefore||c.nodeAfter)?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let u=!1;const d=((e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,o,i)=>{var s,a;const l=(null==(a=(s=e.type.spec).toText)?void 0:a.call(s,{node:e,pos:t,parent:o,index:i}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,r-t))}),n})(c)+i;return s.forEach(e=>{if(u)return;const t=((e,t)=>{if(ne(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r})(d,e.find);if(!t)return;const s=l.state.tr,c=U({state:l.state,transaction:s}),p={from:r-(t[0].length-i.length),to:o},{commands:f,chain:h,can:m}=new H({editor:n,state:c});null!==e.handler({state:c,range:p,match:t,commands:f,chain:h,can:m})&&s.steps.length&&(e.undoable&&s.setMeta(a,{transform:s,from:r,to:o,text:i}),l.dispatch(s),u=!0)}),u}function dn(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function pn(e,t){const n={...e};return dn(e)&&dn(t)&&Object.keys(t).forEach(r=>{dn(t[r])&&dn(e[r])?n[r]=pn(e[r],t[r]):n[r]=t[r]}),n}var fn=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...rt(Ze(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...rt(Ze(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){const t=this.extend({...this.config,addOptions:()=>pn(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},hn=class e extends fn{constructor(){super(...arguments),this.type="mark"}static create(t={}){const n="function"==typeof t?t():t;return new e(n)}static handleExit({editor:e,mark:t}){const{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find(e=>(null==e?void 0:e.type.name)===t.name))return!1;const i=o.find(e=>(null==e?void 0:e.type.name)===t.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){const t="function"==typeof e?e():e;return super.extend(t)}};var mn=class{constructor(e){this.find=e.find,this.handler=e.handler}};function vn(e){const{editor:t,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:c,can:u}=new H({editor:t,state:n}),d=[];n.doc.nodesBetween(r,o,(e,t)=>{var p,f,h,m,v;if((null==(f=null==(p=e.type)?void 0:p.spec)?void 0:f.code)||!(e.isText||e.isTextblock||e.isInline))return;const g=null!=(v=null!=(m=null==(h=e.content)?void 0:h.size)?m:e.nodeSize)?v:0,y=Math.max(r,t),b=Math.min(o,t+g);if(y>=b)return;((e,t,n)=>{if(ne(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n}):[]})(e.isText?e.text||"":e.textBetween(y-t,b-t,void 0,""),i.find,s).forEac
2h(e=>{if(void 0===e.index)return;const t=y+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},p=i.handler({state:n,range:o,match:e,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(p)})});return d.every(e=>null!==e)}var gn=null;function yn(e){const{editor:t,rules:n}=e;let r,s=null,a=!1,l=!1,c="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{r="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{r=null}const u=({state:e,from:n,to:o,rule:i,pasteEvt:s})=>{const a=e.tr,l=U({state:e,transaction:a});if(vn({editor:t,state:l,from:Math.max(n-1,0),to:o.b-1,rule:i,pasteEvent:s,dropEvent:r})&&a.steps.length){try{r="undefined"!=typeof DragEvent?new DragEvent("drop"):null}catch{r=null}return c="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,a}};return n.map(e=>new i.k_({view(e){const n=n=>{var r;s=(null==(r=e.dom.parentElement)?void 0:r.contains(n.target))?e.dom.parentElement:null,s&&(gn=t)},r=()=>{gn&&(gn=null)};return window.addEventListener("dragstart",n),window.addEventListener("dragend",r),{destroy(){window.removeEventListener("dragstart",n),window.removeEventListener("dragend",r)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(l=s===e.dom.parentElement,r=t,!l){const e=gn;(null==e?void 0:e.isEditable)&&setTimeout(()=>{const t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{var n;const r=null==(n=t.clipboardData)?void 0:n.getData("text/html");return c=t,a=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{const i=t[0],s="paste"===i.getMeta("uiEvent")&&!a,d="drop"===i.getMeta("uiEvent")&&!l,p=i.getMeta("applyPasteRules"),f=!!p;if(!s&&!d&&!f)return;if(f){let{text:t}=p;"string"==typeof t||(t=tt(o.FK.from(t),r.schema));const{from:n}=p,i=n+t.length,s=(e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null==(t=n.clipboardData)||t.setData("text/html",e),n})(t);return u({rule:e,state:r,from:n,to:{b:i},pasteEvt:s})}const h=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);return"number"==typeof h&&m&&h!==m.b?u({rule:e,state:r,from:h,to:m,pasteEvt:c}):void 0}}))}var bn=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=ht(e),this.schema=pt(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const n=Ze(t,"addCommands",{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:Tt(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){const{editor:e}=this;return ft([...this.extensions].reverse()).flatMap(t=>{const n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:Tt(t.name,this.schema)},r=[],s=Ze(t,"addKeyboardShortcuts",n);let a={};if("mark"===t.type&&Ze(t,"exitable",n)&&(a.ArrowRight=()=>hn.handleExit({editor:e,mark:t})),s){const t=Object.fromEntries(Object.entries(s()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}const l=(0,N.w)(a);r.push(l);const c=Ze(t,"addInputRules",n);if(It(t,e.options.enableInputRules)&&c){const t=c();if(t&&t.length){const n=function(e){const{editor:t,rules:n}=e,r=new i.k_({state:{init:()=>null,apply(e,i,s){const a=e.getMeta(r);if(a)return a;const l=e.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:e}=l;"string"==typeof e||(e=tt(o.FK.from(e),s.schema));const{from:i}=l,a=i+e.length;un({editor:t,from:i,to:a,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput:(e,o,i,s)=>un({editor:t,from:o,to:i,text:s,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout(()=>{const{$cursor:o}=e.state.selection;o&&un({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(e,o){if("Enter"!==o.key)return!1;const{$cursor:i}=e.state.selection;return!!i&&un({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}({editor:e,rules:t}),s=Array.isArray(n)?n:[n];r.push(...s)}}const u=Ze(t,"addPasteRules",n);if(It(t,e.options.enablePasteRules)&&u){const t=u();if(t&&t.length){const n=yn({editor:e,rules:t});r.push(...n)}}const d=Ze(t,"addProseMirrorPlugins",n);if(d){const e=d();r.push(...e)}return r})}get attributes(){return it(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=ot(this.extensions);return Object.fromEntries(t.filter(e=>!!Ze(e,"addNodeView")).map(t=>{const n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:Y(t.name,this.schema)},o=Ze(t,"addNodeView",r);
2if(!o)return[];const i=o();if(!i)return[];return[t.name,(r,o,s,a,l)=>{const c=lt(r,n);return i({node:r,view:o,getPos:s,decorations:a,innerDecorations:l,editor:e,extension:t,HTMLAttributes:c})}]}))}dispatchTransaction(e){const{editor:t}=this;return ft([...this.extensions].reverse()).reduceRight((e,n)=>{const r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Tt(n.name,this.schema)},o=Ze(n,"dispatchTransaction",r);return o?t=>{o.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){const{editor:t}=this;return ft([...this.extensions]).reduce((e,n)=>{const r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Tt(n.name,this.schema)},o=Ze(n,"transformPastedHTML",r);return o?(t,n)=>{const i=e(t,n);return o.call(r,i)}:e},e||(e=>e))}get markViews(){const{editor:e}=this,{markExtensions:t}=ot(this.extensions);return Object.fromEntries(t.filter(e=>!!Ze(e,"addMarkView")).map(t=>{const n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:ae(t.name,this.schema)},o=Ze(t,"addMarkView",r);if(!o)return[];return[t.name,(r,i,s)=>{const a=lt(r,n);return o()({mark:r,view:i,inline:s,editor:e,extension:t,HTMLAttributes:a,updateAttributes:t=>{Kn(r,e,t)}})}]}))}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{var t;const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Tt(e.name,this.schema)};if("mark"===e.type){(null==(t=rt(Ze(e,"keepOnSplit",n)))||t)&&this.splittableMarks.push(e.name)}const r=Ze(e,"onBeforeCreate",n),o=Ze(e,"onCreate",n),i=Ze(e,"onUpdate",n),s=Ze(e,"onSelectionUpdate",n),a=Ze(e,"onTransaction",n),l=Ze(e,"onFocus",n),c=Ze(e,"onBlur",n),u=Ze(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),s&&this.editor.on("selectionUpdate",s),a&&this.editor.on("transaction",a),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),u&&this.editor.on("destroy",u)})}};bn.resolve=ht,bn.sort=ft,bn.flatten=et;B({},{ClipboardTextSerializer:()=>Sn,Commands:()=>kn,Delete:()=>_n,Drop:()=>On,Editable:()=>Cn,FocusEvents:()=>An,Keymap:()=>En,Paste:()=>xn,Tabindex:()=>Pn,TextDirection:()=>In,focusEventsPluginKey:()=>Tn});var wn=class e extends fn{constructor(){super(...arguments),this.type="extension"}static create(t={}){const n="function"==typeof t?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){const t="function"==typeof e?e():e;return super.extend(t)}},Sn=wn.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new i.k_({key:new i.hs("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o,s=Math.min(...i.map(e=>e.$from.pos)),a=Math.max(...i.map(e=>e.$to.pos)),l=wt(n);return yt(r,{from:s,to:a},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),kn=wn.create({name:"commands",addCommands:()=>({...$})}),_n=wn.create({name:"delete",onUpdate({transaction:e,appendedTransactions:t}){var n,o,i;const s=()=>{var n,o,i,s;if(null!=(s=null==(i=null==(o=null==(n=this.editor.options.coreExtensionOptions)?void 0:n.delete)?void 0:o.filterTransaction)?void 0:i.call(o,e))?s:e.getMeta("y-sync$"))return;const a=Ye(e.before,[e,...t]);_t(a).forEach(t=>{a.mapping.mapResult(t.oldRange.from).deletedAfter&&a.mapping.mapResult(t.oldRange.to).deletedBefore&&a.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{const o=r+n.nodeSize-2,i=t.oldRange.from<=r&&o<=t.oldRange.to;this.editor.emit("delete",{type:"node",node:n,from:r,to:o,newFrom:a.mapping.map(r),newTo:a.mapping.map(o),deletedRange:t.oldRange,newRange:t.newRange,partial:!i,editor:this.editor,transaction:e,combinedTransform:a})})});const l=a.mapping;a.steps.forEach((t,n)=>{var o,i;if(t instanceof r.Ys){const r=l.slice(n).map(t.from,-1),s=l.slice(n).map(t.to),c=l.invert().map(r,-1),u=l.invert().map(s),d=null==(o=a.doc.nodeAt(r-1))?void 0:o.marks.some(e=>e.eq(t.mark)),p=null==(i=a.doc.nodeAt(s))?void 0:i.marks.some(e=>e.eq(t.mark));this.editor.emit("delete",{type:"mark",mark:t.mark,from:t.from,to:t.to,deletedRange:{from:c,to:u},newRange:{from:r,to:s},partial:Boolean(p||d),editor:this.editor,transaction:e,combinedTransform:a})}})};null==(i=null==(o=null==(n=this.editor.options.coreExtensionOptions)?void 0:n.delete)?void 0:o.async)||i?setTimeout(s,0):s()}}),On=wn.create({name:"drop",addProseMirrorPlugins(){return[new i.k_({key:new i.hs("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),Cn=wn.create({name:"editable",addProseMirrorPlugins(){return[new i.k_({key:new i.hs("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Tn=new i.hs("focusEvents"),An=wn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;
2return[new i.k_({key:Tn,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),En=wn.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{const{selection:n,doc:r}=t,{empty:o,$anchor:s}=n,{pos:a,parent:l}=s,c=s.parent.isTextblock&&a>0?t.doc.resolve(a-1):s,u=c.parent.type.spec.isolating,d=s.pos-s.parentOffset,p=u&&1===c.parent.childCount?d===s.pos:i.LN.atStart(r).from===a;return!(!o||!l.type.isTextblock||l.textContent.length||!p||p&&"paragraph"===s.parent.type.name)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return he()||Pe()?o:r},addProseMirrorPlugins(){return[new i.k_({key:new i.hs("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta("composition")))return;const r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),o=e.some(e=>e.getMeta("preventClearDocument"));if(!r||o)return;const{empty:s,from:a,to:l}=t.selection,c=i.LN.atStart(t.doc).from,u=i.LN.atEnd(t.doc).to;if(s||!(a===c&&l===u))return;if(!jt(n.doc))return;const d=n.tr,p=U({state:n,transaction:d}),{commands:f}=new H({editor:this.editor,state:p});return f.clearNodes(),d.steps.length?d:void 0}})]}}),xn=wn.create({name:"paste",addProseMirrorPlugins(){return[new i.k_({key:new i.hs("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),Pn=wn.create({name:"tabindex",addProseMirrorPlugins(){return[new i.k_({key:new i.hs("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),In=wn.create({name:"textDirection",addOptions:()=>({direction:void 0}),addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=ot(this.extensions);return[{types:e.filter(e=>"text"!==e.name).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const t=e.getAttribute("dir");return!t||"ltr"!==t&&"rtl"!==t&&"auto"!==t?this.options.direction:t},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new i.k_({key:new i.hs("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),Ln=class e{constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!=(e=this.actualDepth)?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new e(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const o=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=n.isInline,a=this.pos+r+(i?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!o&&!s&&l.depth<=this.depth)return;const c=new e(l,this.editor,o,o||s?n:null);o&&(c.actualDepth=this.depth+1),t.push(c)}),t}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;
2){if(r.node.type.name===e)if(Object.keys(t).length>0){const e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];if(e[o]!==t[o])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||0===this.children.length)return r;const o=Object.keys(t);return this.children.forEach(i=>{if(!(n&&r.length>0)){if(i.node.type.name===e){o.every(e=>t[e]===i.node.attrs[e])&&r.push(i)}n&&r.length>0||(r=r.concat(i.querySelectorAll(e,t,n)))}}),r}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}};var jn=class extends ln{constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:"undefined"!=typeof document?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:Rt,createMappablePosition:Nt},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on("paste",({event:e,slice:t})=>this.options.onPaste(e,t)),this.on("delete",this.options.onDelete);const t=this.createDoc(),n=pe(t,this.options.autofocus);this.editorState=i.$t.create({doc:t,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if("undefined"==typeof document)throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(!1!==this.options.autofocus&&null!==this.options.autofocus&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;(null==e?void 0:e.editor)&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{"function"==typeof this.css.remove?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&"undefined"!=typeof document&&(this.css=function(e,t,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}
2\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}',this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if("state"===t)return this.editorState;if(t in e)return Reflect.get(e,t);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){const n=nt(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(e=>{const t="string"==typeof e?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[Cn,Sn.configure({blockSeparator:null==(t=null==(e=this.options.coreExtensionOptions)?void 0:e.clipboardTextSerializer)?void 0:t.blockSeparator}),kn,An,En,Pn,On,xn,_n,In.configure({direction:this.options.textDirection})].filter(e=>"object"!=typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name]):[],...this.options.extensions].filter(e=>["extension","node","mark"].includes(null==e?void 0:e.type));this.extensionManager=new bn(n,this)}createCommandManager(){this.commandManager=new H({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=Ve(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error&&["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message)))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&"object"==typeof this.storage.collaboration&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>"collaboration"!==e.name),this.createExtensionManager()}}),e=Ve(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),o=n?this.extensionManager.dispatchTransaction(r):r,i=t.transformPastedHTML,s=this.extensionManager.transformPastedHTML(i);this.editorView=new R.Lz(e,{...t,attributes:{role:"textbox",...null==t?void 0:t.attributes},dispatchTransaction:o,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS();this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach(e
2=>{var t;return null==(t=this.capturedTransaction)?void 0:t.step(e)}):void(this.capturedTransaction=e);const{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),o=n.includes(e),i=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!o)return;this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const s=n.findLast(e=>e.getMeta("focus")||e.getMeta("blur")),a=null==s?void 0:s.getMeta("focus"),l=null==s?void 0:s.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:s}),l&&this.emit("blur",{editor:this,event:l.event,transaction:s}),e.getMeta("preventUpdate")||!n.some(e=>e.docChanged)||i.doc.eq(t.doc)||this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return St(this.state,e)}isActive(e,t){const n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return Le(e,null,n)||Et(e,null,n);const r=Ne(t,e.schema);return"node"===r?Le(e,t,n):"mark"===r&&Et(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return tt(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return bt(this.state.doc,{blockSeparator:t,textSerializers:{...wt(this.schema),...n}})}get isEmpty(){return jt(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,t;return null==(t=null==(e=this.editorView)?void 0:e.isDestroyed)||t}$node(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null==(n=this.$doc)?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Ln(t,this)}get $doc(){return this.$pos(0)}};function Mn(e){return new cn({find:e.find,handler:({state:t,range:n,match:r})=>{const o=rt(e.getAttributes,void 0,r);if(!1===o||null===o)return null;const{tr:i}=t,s=r[r.length-1],a=r[0];if(s){const r=a.search(/\S/),l=n.from+a.indexOf(s),c=l+s.length;if(Ot(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>l).length)return null;c<n.to&&i.delete(c,n.to),l>n.from&&i.delete(n.from+r,l);const u=n.from+r+s.length;i.addMark(n.from+r,u,e.type.create(o||{})),i.removeStoredMark(e.type)}},undoable:e.undoable})}function Dn(e){return new cn({find:e.find,handler:({state:t,range:n,match:r})=>{const o=rt(e.getAttributes,void 0,r)||{},{tr:i}=t,s=n.from;let a=n.to;const l=e.type.create(o);if(r[1]){let e=s+r[0].lastIndexOf(r[1]);e>a?e=a:a=e+r[1].length;const t=r[0][r[0].length-1];i.insertText(t,s+r[0].length-1),i.replaceWith(e,a,l)}else if(r[0]){const t=e.type.isInline?s:s-1;i.insert(t,e.type.create(o)).delete(i.mapping.map(s),i.mapping.map(a))}i.scrollIntoView()},undoable:e.undoable})}function Rn(e){return new cn({find:e.find,handler:({state:t,range:n,match:r})=>{const o=t.doc.resolve(n.from),i=rt(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)},undoable:e.undoable})}function Nn(e){return new cn({find:e.find,handler:({state:t,range:n,match:o,chain:i})=>{const s=rt(e.getAttributes,void 0,o)||{},a=t.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),c=l&&(0,r.oM)(l,e.type,s);if(!c)return null;if(a.wrap(l,c),e.keepMarks&&e.editor){const{selection:n,storedMarks:r}=t,{splittableMarks:o}=e.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){const e=i.filter(e=>o.includes(e.type.name));a.ensureMarks(e)}}if(e.keepAttributes){const t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";i().updateAttributes(t,s).run()}const u=a.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&(0,r.n9)(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(o,u))&&a.join(n.from-1)},undoable:e.undoable})}function Fn(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof i.nh){const e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let o=r.depth;for(;o>=0;){const e=r.index(o);if(r.node(o).contentMatchAt(e).matchType(t))return!0;o-=1}return!1}function Bn(e){if(!(null==e?void 0:e.trim()))return{};const t={},n=[],r=e.replace(/["']([^"']*)["']/g,e=>(n.push(e),`__QUOTED_${n.length-1}
2__`)),o=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(o){const e=o.map(e=>e.trim().slice(1));t.class=e.join(" ")}const i=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);i&&(t.id=i[1]);Array.from(r.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach(([,e,r])=>{var o;const i=parseInt((null==(o=r.match(/__QUOTED_(\d+)__/))?void 0:o[1])||"0",10),s=n[i];s&&(t[e]=s.slice(1,-1))});const s=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();if(s){s.split(/\s+/).filter(Boolean).forEach(e=>{e.match(/^[a-zA-Z][\w-]*$/)&&(t[e]=!0)})}return t}function Un(e){if(!e||0===Object.keys(e).length)return"";const t=[];if(e.class){String(e.class).split(/\s+/).filter(Boolean).forEach(e=>t.push(`.${e}`))}return e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([e,n])=>{"class"!==e&&"id"!==e&&(!0===n?t.push(e):!1!==n&&null!=n&&t.push(`${e}="${String(n)}"`))}),t.join(" ")}function Hn(e){const{nodeName:t,name:n,parseAttributes:r=Bn,serializeAttributes:o=Un,defaultAttributes:i={},requiredAttributes:s=[],allowedAttributes:a}=e,l=n||t;return{parseMarkdown:(e,n)=>{const r={...i,...e.attributes};return n.createNode(t,r,[])},markdownTokenizer:{name:t,level:"block",start(e){var t;const n=new RegExp(`^:::${l}(?:\\s|$)`,"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,n,o){const i=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),a=e.match(i);if(!a)return;const c=a[1]||"",u=r(c);return s.find(e=>!(e in u))?void 0:{type:t,raw:a[0],attributes:u}}},renderMarkdown:e=>{const t=(e=>{if(!a)return e;const t={};return a.forEach(n=>{n in e&&(t[n]=e[n])}),t})(e.attrs||{}),n=o(t);return`:::${l}${n?` {${n}}`:""} :::`}}}function $n(e){const{nodeName:t,name:n,getContent:r,parseAttributes:o=Bn,serializeAttributes:i=Un,defaultAttributes:s={},content:a="block",allowedAttributes:l}=e,c=n||t;return{parseMarkdown:(e,n)=>{let o;if(r){const t=r(e);o="string"==typeof t?[{type:"text",text:t}]:t}else o="block"===a?n.parseChildren(e.tokens||[]):n.parseInline(e.tokens||[]);const i={...s,...e.attributes};return n.createNode(t,i,o)},markdownTokenizer:{name:t,level:"block",start(e){var t;const n=new RegExp(`^:::${c}`,"m"),r=null==(t=e.match(n))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,n,r){var i;const s=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),l=e.match(s);if(!l)return;const[u,d=""]=l,p=o(d);let f=1;const h=u.length;let m="";const v=/^:::([\w-]*)(\s.*)?/gm,g=e.slice(h);for(v.lastIndex=0;;){const n=v.exec(g);if(null===n)break;const o=n.index,s=n[1];if(!(null==(i=n[2])?void 0:i.endsWith(":::")))if(s)f+=1;else if(f-=1,0===f){const i=g.slice(0,o);m=i.trim();const s=e.slice(0,h+o+n[0].length);let l=[];if(m)if("block"===a)for(l=r.blockTokens(i),l.forEach(e=>{!e.text||e.tokens&&0!==e.tokens.length||(e.tokens=r.inlineTokens(e.text))});l.length>0;){const e=l[l.length-1];if("paragraph"!==e.type||e.text&&""!==e.text.trim())break;l.pop()}else l=r.inlineTokens(m);return{type:t,raw:s,attributes:p,content:m,tokens:l}}}}},renderMarkdown:(e,t)=>{const n=(e=>{if(!l)return e;const t={};return l.forEach(n=>{n in e&&(t[n]=e[n])}),t})(e.attrs||{}),r=i(n),o=r?` {${r}}`:"",s=t.renderChildren(e.content||[],"\n\n");return`:::${c}${o}\n\n${s}\n\n:::`}}}function zn(e){if(!e.trim())return{};const t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(e);for(;null!==r;){const[,o,i,s]=r;t[o]=i||s,r=n.exec(e)}return t}function Wn(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}="${t}"`).join(" ")}function Gn(e){const{nodeName:t,name:n,getContent:r,parseAttributes:o=zn,serializeAttributes:i=Wn,defaultAttributes:s={},selfClosing:a=!1,allowedAttributes:l}=e,c=n||t,u=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(e,n)=>{const o={...s,...e.attributes};if(a)return n.createNode(t,o);const i=r?r(e):e.content||"";return i?n.createNode(t,o,[n.createTextNode(i)]):n.createNode(t,o,[])},markdownTokenizer:{name:t,level:"inline",start(e){const t=a?new RegExp(`\\[${u}\\s*[^\\]]*\\]`):new RegExp(`\\[${u}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${u}\\]`),n=e.match(t),r=null==n?void 0:n.index;return void 0!==r?r:-1}
2,tokenize(e,n,r){const i=a?new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`),s=e.match(i);if(!s)return;let l="",c="";if(a){const[,e]=s;c=e}else{const[,e,t]=s;c=e,l=t||""}const d=o(c.trim());return{type:t,raw:s[0],content:l.trim(),attributes:d}}},renderMarkdown:e=>{let t="";r?t=r(e):e.content&&e.content.length>0&&(t=e.content.filter(e=>"text"===e.type).map(e=>e.text).join(""));const n=(e=>{if(!l)return e;const t={};return l.forEach(n=>{const r="string"==typeof n?n:n.name,o="string"==typeof n?void 0:n.skipIfDefault;if(r in e){const n=e[r];if(void 0!==o&&n===o)return;t[r]=n}}),t})(e.attrs||{}),o=i(n),s=o?` ${o}`:"";return a?`[${c}${s}]`:`[${c}${s}]${t}[/${c}]`}}}function Xn(e,t,n){var r,o,i,s;const a=e.split("\n"),l=[];let c="",u=0;const d=t.baseIndentSize||2;for(;u<a.length;){const e=a[u],p=e.match(t.itemPattern);if(!p){if(l.length>0)break;if(""===e.trim()){u+=1,c=`${c}${e}\n`;continue}return}const f=t.extractItemData(p),{indentLevel:h,mainContent:m}=f;c=`${c}${e}\n`;const v=[m];for(u+=1;u<a.length;){const e=a[u];if(""===e.trim()){const t=a.slice(u+1).findIndex(e=>""!==e.trim());if(-1===t)break;if(((null==(o=null==(r=a[u+1+t].match(/^(\s*)/))?void 0:r[1])?void 0:o.length)||0)>h){v.push(e),c=`${c}${e}\n`,u+=1;continue}break}if(!(((null==(s=null==(i=e.match(/^(\s*)/))?void 0:i[1])?void 0:s.length)||0)>h))break;v.push(e),c=`${c}${e}\n`,u+=1}let g;const y=v.slice(1);if(y.length>0){const e=y.map(e=>e.slice(h+d)).join("\n");e.trim()&&(g=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}const b=t.createToken(f,g);l.push(b)}if(0!==l.length)return{items:l,raw:c}}function Vn(e,t,n,r){if(!e||!Array.isArray(e.content))return"";const o="function"==typeof n?n(r):n,[i,...s]=e.content;let a=`${o}${t.renderChildren([i])}`;return s&&s.length>0&&s.forEach((e,n)=>{var r,o;const i=null!=(o=null==(r=t.renderChild)?void 0:r.call(t,e,n+1))?o:t.renderChildren([e]);if(null!=i){const n=i.split("\n").map(e=>e?t.indent(e):t.indent("")).join("\n");a+="paragraph"===e.type?`\n\n${n}`:`\n${n}`}}),a}function Kn(e,t,n={}){const{state:r}=t,{doc:o,tr:i}=r,s=e;o.descendants((t,r)=>{const o=i.mapping.map(r),a=i.mapping.map(r)+t.nodeSize;let l=null;if(t.marks.forEach(e=>{if(e!==s)return!1;l=e}),!l)return;let c=!1;if(Object.keys(n).forEach(e=>{n[e]!==l.attrs[e]&&(c=!0)}),c){const t=e.type.create({...e.attrs,...n});i.removeMark(o,a,e.type),i.addMark(o,a,t)}}),i.docChanged&&t.view.dispatch(i)}B({},{createAtomBlockMarkdownSpec:()=>Hn,createBlockMarkdownSpec:()=>$n,createInlineMarkdownSpec:()=>Gn,parseAttributes:()=>Bn,parseIndentedBlocks:()=>Xn,renderNestedMarkdownContent:()=>Vn,serializeAttributes:()=>Un});var qn=class{constructor(e,t,n){this.component=e,this.editor=t.editor,this.options={...n},this.mark=t.mark,this.HTMLAttributes=t.HTMLAttributes}get dom(){return this.editor.view.dom}get contentDOM(){return null}updateAttributes(e,t){Kn(t||this.mark,this.editor,e)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"==typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&(he()||fe())&&this.editor.isFocused){if([...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}},Yn=class e extends fn{constructor(){super(...arguments),this.type="node"}static create(t={}){const n="function"==typeof t?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){const t="function"==typeof e?e():e;return super.extend(t)}},Qn=class{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.innerDecorations=t.innerDecorations,this.view=t.view,this.HTMLAttributes=t.HTMLAttributes,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,r,o,s,a,l;const{view:c}=this.editor,u=e.target,d=3===u.nodeType?null==(t=u.parentElement)?void 0:t.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null==(n=this.contentDOM)?void 0:n.contains(u))||!d)return;let p=0,f=0;if(this.dom!==d){const t=this.dom.getBoundingClientRect(),n=d.getBoundingClientRect(),i=null!=(o=e.offsetX)?o:null==(r=e.nativeEvent)?void 0:r.offsetX,l=null!=(a=e.offsetY)?a:null==(s=e.nativeEvent)?void 0:s.offsetY;p=n.x-t.x+i,f=n.y-t.y+l}const h=this.dom.cloneNode(!0);try{const e=this.dom.getBoundingClientRect();h.style.width=`${Math.round(e.width)}px`,h.style.height=`${Math.round(e.height)}px`,h.style.boxSizing="border-box",h.style.pointerEvents="none"}catch{}let m=null;try{m=document.createElement("div"),m.style.position="absolute",m.style.top="-9999px",m.style.left="-9999px",m.style.pointerEvents="none",m.appendChild(h),document.body.appendChild(m),null==(l=e.dataTransfer)||l.setDragImage(h,p,f)}finally{m&&setTimeout(()=>{try{null==m||m.remove()}catch{}},0)}const v=this.getPos();if("number"!=typeof v)return;const g=i.nh.create(c.state.doc,v),y=c.state.tr.setSelection(g);c.dispatch(y)}stopEvent(e){var t;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:e});const n=e.target;if(!(this.dom.contains(n)&&!(null==(t=this.contentDOM)?void 0:t.contains(n))))return!1;const r=e.type.startsWith("drag"),o="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!o&&!r)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,c=i.nh.isSelectable(this.node),u="copy"===e.type,d="paste"===e.type,p="cut"
2===e.type,f="mousedown"===e.type;if(!l&&c&&r&&e.target===this.dom&&e.preventDefault(),l&&r&&!a&&e.target===this.dom)return e.preventDefault(),!1;if(l&&s&&!a&&f){const e=n.closest("[data-drag-handle]");e&&(this.dom===e||this.dom.contains(e))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(a||o||u||d||p||f&&c)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"==typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if(this.node.isLeaf||this.node.isAtom)return!0;if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&(he()||fe())&&this.editor.isFocused){if([...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const n=this.getPos();return"number"==typeof n&&(t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if("number"!=typeof e)return;const t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}};function Jn(e){return new mn({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:o})=>{const i=rt(e.getAttributes,void 0,r,o);if(!1===i||null===i)return null;const{tr:s}=t,a=r[r.length-1],l=r[0];let c=n.to;if(a){const r=l.search(/\S/),o=n.from+l.indexOf(a),u=o+a.length;if(Ot(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>o).length)return null;u<n.to&&s.delete(u,n.to),o>n.from&&s.delete(n.from+r,o),c=n.from+r+a.length,s.addMark(n.from+r,c,e.type.create(i||{})),s.removeStoredMark(e.type)}}})}},515(e,t,n){"use strict";n.d(t,{A:()=>o,y:()=>r});var r=n(52781).bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),o=r},81036(e,t,n){"use strict";n.d(t,{A:()=>i,D:()=>o});var r=n(52781),o=r.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,(0,r.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var n;const r=(null==(n=e.attrs)?void 0:n.level)?parseInt(e.attrs.level,10):1,o="#".repeat(r);return e.content?`${o} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.JJ)({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
2)\\s$`),type:this.type,getAttributes:{level:e}}))}}),i=o},334(e,t,n){"use strict";n.d(t,{N_:()=>rt,Ay:()=>ot});var r=n(52781);const o="numeric",i="ascii",s="alpha",a="asciinumeric",l="alphanumeric",c="domain",u="emoji",d="scheme",p="slashscheme",f="whitespace";function h(e,t){return e in t||(t[e]=[]),t[e]}function m(e,t,n){t[o]&&(t[a]=!0,t[l]=!0),t[i]&&(t[a]=!0,t[s]=!0),t[a]&&(t[l]=!0),t[s]&&(t[l]=!0),t[l]&&(t[c]=!0),t[u]&&(t[c]=!0);for(const r in t){const t=h(r,n);t.indexOf(e)<0&&t.push(e)}}function v(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}v.groups={},v.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){const r=t.jr[n][0],o=t.jr[n][1];if(o&&r.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||v.groups,t&&t.j?o=t:(o=new v(t),n&&r&&m(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let t=0;t<i-1;t++)o=o.tt(e[t]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){r=r||v.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let s,a=o.go(e);if(a?(s=new v,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new v,i){if(r)if(s.t&&"string"==typeof s.t){const e=Object.assign(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(s.t,r),n);m(i,e,r)}else n&&m(i,n,r);s.t=i}return o.j[e]=s,s}};const g=(e,t,n,r,o)=>e.ta(t,n,r,o),y=(e,t,n,r,o)=>e.tr(t,n,r,o),b=(e,t,n,r,o)=>e.ts(t,n,r,o),w=(e,t,n,r,o)=>e.tt(t,n,r,o),S="WORD",k="UWORD",_="ASCIINUMERICAL",O="ALPHANUMERICAL",C="LOCALHOST",T="TLD",A="UTLD",E="SCHEME",x="SLASH_SCHEME",P="NUM",I="WS",L="NL",j="OPENBRACE",M="CLOSEBRACE",D="OPENBRACKET",R="CLOSEBRACKET",N="OPENPAREN",F="CLOSEPAREN",B="OPENANGLEBRACKET",U="CLOSEANGLEBRACKET",H="FULLWIDTHLEFTPAREN",$="FULLWIDTHRIGHTPAREN",z="LEFTCORNERBRACKET",W="RIGHTCORNERBRACKET",G="LEFTWHITECORNERBRACKET",X="RIGHTWHITECORNERBRACKET",V="FULLWIDTHLESSTHAN",K="FULLWIDTHGREATERTHAN",q="AMPERSAND",Y="APOSTROPHE",Q="ASTERISK",J="AT",Z="BACKSLASH",ee="BACKTICK",te="CARET",ne="COLON",re="COMMA",oe="DOLLAR",ie="DOT",se="EQUALS",ae="EXCLAMATION",le="HYPHEN",ce="PERCENT",ue="PIPE",de="PLUS",pe="POUND",fe="QUERY",he="QUOTE",me="FULLWIDTHMIDDLEDOT",ve="SEMI",ge="SLASH",ye="TILDE",be="UNDERSCORE",we="EMOJI",Se="SYM";var ke=Object.freeze({__proto__:null,ALPHANUMERICAL:O,AMPERSAND:q,APOSTROPHE:Y,ASCIINUMERICAL:_,ASTERISK:Q,AT:J,BACKSLASH:Z,BACKTICK:ee,CARET:te,CLOSEANGLEBRACKET:U,CLOSEBRACE:M,CLOSEBRACKET:R,CLOSEPAREN:F,COLON:ne,COMMA:re,DOLLAR:oe,DOT:ie,EMOJI:we,EQUALS:se,EXCLAMATION:ae,FULLWIDTHGREATERTHAN:K,FULLWIDTHLEFTPAREN:H,FULLWIDTHLESSTHAN:V,FULLWIDTHMIDDLEDOT:me,FULLWIDTHRIGHTPAREN:$,HYPHEN:le,LEFTCORNERBRACKET:z,LEFTWHITECORNERBRACKET:G,LOCALHOST:C,NL:L,NUM:P,OPENANGLEBRACKET:B,OPENBRACE:j,OPENBRACKET:D,OPENPAREN:N,PERCENT:ce,PIPE:ue,PLUS:de,POUND:pe,QUERY:fe,QUOTE:he,RIGHTCORNERBRACKET:W,RIGHTWHITECORNERBRACKET:X,SCHEME:E,SEMI:ve,SLASH:ge,SLASH_SCHEME:x,SYM:Se,TILDE:ye,TLD:T,UNDERSCORE:be,UTLD:A,UWORD:k,WORD:S,WS:I});const _e=/[a-z]/,Oe=/\p{L}/u,Ce=/\p{Emoji}/u,Te=/\d/,Ae=/\s/;let Ee=null,xe=null;function Pe(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),s=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let a=e,l=null,c=0,u=null,d=-1,p=-1;for(;s<r&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,p=0,u=a):d>=0&&(d+=n[s].length,p++),c+=n[s].length,i+=n[s].length,s++;i-=d,s-=p,c-=d,o.push({t:u.t,v:t.slice(i-c,i),s:i-c,e:i})}return o}function Ie(e,t,n,r,o){let i;const s=t.length;for(let n=0;n<s-1;n++){const s=t[n];e.j[s]?i=e.j[s]:(i=new v(r),i.jr=o.slice(),e.j[s]=i),e=i}return i=new v(n),i.jr=o.slice(),e.j[t[s-1]]=i,i}function Le(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}const je={defaultProtocol:"http",events:null,format:De,formatHref:De,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Me(e,t=null){let n=Object.assign({},je);e&&(n=Object.assign(n,e instanceof Me?e.o:e));const r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function De(e){return e}Me.prototype={o:je,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"==typeof o?(o=n.t in o?o[n.t]:je[e],"function"==typeof o&&r&&(o=o(t,n))):"function"==typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Re(e,t){this.t="token",this.v=e,this.tk=t}
vendor: 5,710 bytes, line 2
2function Ne(e,t){class n extends Re{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}Re.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=je.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),s={},a=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return s.href=r,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:o,attributes:s,content:i,eventListeners:d}}};const Fe=Ne("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Be=Ne("text"),Ue=Ne("nl"),He=Ne("url",{isLink:!0,toHref(e=je.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==C&&e[1].t===ne}});const $e=e=>new v(e);function ze(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const We="undefined"!=typeof console&&console&&console.warn||(()=>{}),Ge="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Xe={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Ve(e,t=!1){if(Xe.initialized&&We(`linkifyjs: already initialized - will not register custom scheme "${e}" ${Ge}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');Xe.customSchemes.push([e,t])}function Ke(){Xe.scanner=function(e=[]){const t={};v.groups=t;const n=new v;null==Ee&&(Ee=Le("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==xe&&(xe=Le("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
2ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),w(n,"'",Y),w(n,"{",j),w(n,"}",M),w(n,"[",D),w(n,"]",R),w(n,"(",N),w(n,")",F),w(n,"<",B),w(n,">",U),w(n,"ï¼",H),w(n,"ï¼",$),w(n,"ã",z),w(n,"ã",W),w(n,"ã",G),w(n,"ã",X),w(n,"ï¼",V),w(n,"ï¼",K),w(n,"&",q),w(n,"*",Q),w(n,"@",J),w(n,"`",ee),w(n,"^",te),w(n,":",ne),w(n,",",re),w(n,"$",oe),w(n,".",ie),w(n,"=",se),w(n,"!",ae),w(n,"-",le),w(n,"%",ce),w(n,"|",ue),w(n,"+",de),w(n,"#",pe),w(n,"?",fe),w(n,'"',he),w(n,"/",ge),w(n,";",ve),w(n,"~",ye),w(n,"_",be),w(n,"\\",Z),w(n,"ã»",me);const r=y(n,Te,P,{[o]:!0});y(r,Te,r);const h=y(r,_e,_,{[a]:!0}),g=y(r,Oe,O,{[l]:!0}),Pe=y(n,_e,S,{[i]:!0});y(Pe,Te,h),y(Pe,_e,Pe),y(h,Te,h),y(h,_e,h);const je=y(n,Oe,k,{[s]:!0});y(je,_e),y(je,Te,g),y(je,Oe,je),y(g,Te,g),y(g,_e),y(g,Oe,g);const Me=w(n,"\n",L,{[f]:!0}),De=w(n,"\r",I,{[f]:!0}),Re=y(n,Ae,I,{[f]:!0});w(n,"",Re),w(De,"\n",Me),w(De,"",Re),y(De,Ae,Re),w(Re,"\r"),w(Re,"\n"),y(Re,Ae,Re),w(Re,"",Re);const Ne=y(n,Ce,we,{[u]:!0});w(Ne,"#"),y(Ne,Ce,Ne),w(Ne,"ï¸",Ne);const Fe=w(Ne,"â");w(Fe,"#"),y(Fe,Ce,Ne);const Be=[[_e,Pe],[Te,h]],Ue=[[_e,null],[Oe,je],[Te,g]];for(let e=0;e<Ee.length;e++)Ie(n,Ee[e],T,S,Be);for(let e=0;e<xe.length;e++)Ie(n,xe[e],A,k,Ue);m(T,{tld:!0,ascii:!0},t),m(A,{utld:!0,alpha:!0},t),Ie(n,"file",E,S,Be),Ie(n,"mailto",E,S,Be),Ie(n,"http",x,S,Be),Ie(n,"https",x,S,Be),Ie(n,"ftp",x,S,Be),Ie(n,"ftps",x,S,Be),m(E,{scheme:!0,ascii:!0},t),m(x,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){const r=e[t][0],s=e[t][1]?{[d]:!0}:{[p]:!0};r.indexOf("-")>=0?s[c]=!0:_e.test(r)?Te.test(r)?s[a]=!0:s[i]=!0:s[o]=!0,b(n,r,r,s)}return b(n,"localhost",C,{ascii:!0}),n.jd=new v(Se),{start:n,tokens:Object.assign({groups:t},ke)}}(Xe.customSchemes);for(let e=0;e<Xe.tokenQueue.length;e++)Xe.tokenQueue[e][1]({scanner:Xe.scanner});Xe.parser=function({groups:e}){const t=e.domain.concat([q,Q,J,Z,ee,te,oe,se,le,P,ce,ue,de,pe,ge,Se,ye,be]),n=[Y,ne,re,ie,ae,ce,fe,he,ve,B,U,j,M,R,D,N,F,H,$,z,W,G,X,V,K],r=[q,Y,Q,Z,ee,te,oe,se,le,j,M,ce,ue,de,pe,fe,ge,Se,ye,be],o=$e(),i=w(o,ye);g(i,r,i),g(i,e.domain,i);const s=$e(),a=$e(),l=$e();g(o,e.domain,s),g(o,e.scheme,a),g(o,e.slashscheme,l),g(s,r,i),g(s,e.domain,s);const c=w(s,J);w(i,J,c),w(a,J,c),w(l,J,c);const u=w(i,ie);g(u,r,i),g(u,e.domain,i);const d=$e();g(c,e.domain,d),g(d,e.domain,d);const p=w(d,ie);g(p,e.domain,d);const f=$e(Fe);g(p,e.tld,f),g(p,e.utld,f),w(c,C,f);const h=w(d,le);w(h,le,h),g(h,e.domain,d),g(f,e.domain,d),w(f,ie,p),w(f,le,h);const m=w(f,ne);g(m,e.numeric,Fe);const v=w(s,le),y=w(s,ie);w(v,le,v),g(v,e.domain,s),g(y,r,i),g(y,e.domain,s);const b=$e(He);g(y,e.tld,b),g(y,e.utld,b),g(b,e.domain,s),g(b,r,i),w(b,ie,y),w(b,le,v),w(b,J,c);const S=w(b,ne),k=$e(He);g(S,e.numeric,k);const _=$e(He),O=$e();g(_,t,_),g(_,n,O),g(O,t,_),g(O,n,O),w(b,ge,_),w(k,ge,_);const T=w(a,ne),A=w(l,ne),E=w(A,ge),x=w(E,ge);g(a,e.domain,s),w(a,ie,y),w(a,le,v),g(l,e.domain,s),w(l,ie,y),w(l,le,v),g(T,e.domain,_),w(T,ge,_),w(T,fe,_),g(x,e.domain,_),g(x,t,_),w(x,ge,_);const I=[[j,M],[D,R],[N,F],[B,U],[H,$],[z,W],[G,X],[V,K]];for(let e=0;e<I.length;e++){const[r,o]=I[e],i=w(_,r);w(O,r,i),w(i,o,_);const s=$e(He);g(i,t,s);const a=$e();g(i,n),g(s,t,s),g(s,n,a),g(a,t,s),g(a,n,a),w(s,o,_),w(a,o,_)}return w(o,C,b),w(o,L,Ue),{start:o,tokens:ke}}(Xe.scanner.tokens);for(let e=0;e<Xe.pluginQueue.length;e++)Xe.pluginQueue[e][1]({scanner:Xe.scanner,parser:Xe.parser});return Xe.initialized=!0,Xe}function qe(e){return Xe.initialized||Ke(),function(e,t,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let a=e,l=null,c=null,u=0,d=null,p=-1;for(;o<r&&!(l=a.go(n[o].t));)s.push(n[o++]);for(;o<r&&(c=l||a.go(n[o].t));)l=null,a=c,a.accepts()?(p=0,d=a):p>=0&&p++,o++,u++;if(p<0)o-=u,o<r&&(s.push(n[o]),o++);else{s.length>
20&&(i.push(ze(Be,t,s)),s=[]),o-=p,u-=p;const e=d.t,r=n.slice(o-u,o);i.push(ze(e,t,r))}}return s.length>0&&i.push(ze(Be,t,s)),i}(Xe.parser.start,e,Pe(Xe.scanner.start,e))}function Ye(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new Me(n),o=qe(e),i=[];for(let e=0;e<o.length;e++){const n=o[e];!n.isLink||t&&n.t!==t||!r.check(n)||i.push(n.toFormattedObject(r))}return i}qe.scan=Pe;var Qe=n(42845),Je="[\0- Â áá â-\u2029âã]",Ze=new RegExp(Je),et=new RegExp(`${Je}$`),tt=new RegExp(Je,"g");function nt(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{const t="string"==typeof e?e:e.scheme;t&&n.push(t)}),!e||e.replace(tt,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var rt=r.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{"string"!=typeof e?Ve(e.scheme,e.optionalSlashes):Ve(e)})},onDestroy(){v.groups={},Xe.scanner=null,Xe.parser=null,Xe.tokenQueue=[],Xe.pluginQueue=[],Xe.customSchemes=[],Xe.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!nt(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{const t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes("@"))return!0;const r=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(r)&&!!/\./.test(r)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!(!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!nt(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!nt(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,r.KV)(this.options.HTMLAttributes,e),0]:["a",(0,r.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var n,r,o,i;const s=null!=(r=null==(n=e.attrs)?void 0:n.href)?r:"",a=null!=(i=null==(o=e.attrs)?void 0:o.title)?i:"",l=t.renderChildren(e);return a?`[${l}](${s} "${a}")`:`[${l}](${s})`},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!nt(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{const{href:n}=e||{};return!(n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!nt(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.Zc)({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,o=Ye(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!nt(e,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t}
2,type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(function(e){return new Qe.k_({key:new Qe.hs("autolink"),appendTransaction:(t,n,o)=>{const i=t.some(e=>e.docChanged)&&!n.doc.eq(o.doc),s=t.some(e=>e.getMeta("preventAutolink"));if(!i||s)return;const{tr:a}=o,l=(0,r.T7)(n.doc,[...t]);return(0,r.FF)(l).forEach(({newRange:t})=>{const n=(0,r.Nx)(o.doc,t,e=>e.isTextblock);let i,s;if(n.length>1)i=n[0],s=o.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0," ");else if(n.length){const e=o.doc.textBetween(t.from,t.to," "," ");if(!et.test(e))return;i=n[0],s=o.doc.textBetween(i.pos,t.to,void 0," ")}if(i&&s){const t=s.split(Ze).filter(Boolean);if(t.length<=0)return!1;const n=t[t.length-1],c=i.pos+s.lastIndexOf(n);if(!n)return!1;const u=qe(n).map(t=>t.toObject(e.defaultProtocol));if(!(1===(l=u).length?l[0].isLink:3===l.length&&l[1].isLink&&["()","[]"].includes(l[0].value+l[2].value)))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:c+e.start+1,to:c+e.end+1})).filter(e=>!o.schema.marks.code||!o.doc.rangeHasMark(e.from,e.to,o.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,r.hO)(t.from,t.to,o.doc).some(t=>t.mark.type===e.type)||a.addMark(t.from,t.to,e.type.create({href:t.href}))})}var l}),a.steps.length?a:void 0}})}({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!nt(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(function(e){return new Qe.k_({key:new Qe.hs("handleClickLink"),props:{handleClick:(t,n,o)=>{var i,s;if(0!==o.button)return!1;if(!t.editable)return!1;let a=null;if(o.target instanceof HTMLAnchorElement)a=o.target;else{const t=o.target;if(!t)return!1;const n=e.editor.view.dom;a=t.closest("a"),a&&!n.contains(a)&&(a=null)}if(!a)return!1;let l=!1;if(e.enableClickSelection&&(l=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){const n=(0,r.gu)(t.state,e.type.name),o=null!=(i=a.href)?i:n.href,c=null!=(s=a.target)?s:n.target;o&&(window.open(o,c),l=!0)}return l}}})}({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(function(e){return new Qe.k_({key:new Qe.hs("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{shouldAutoLink:o}=e,{state:i}=t,{selection:s}=i,{empty:a}=s;if(a)return!1;let l="";r.content.forEach(e=>{l+=e.textContent});const c=Ye(l,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===l);return!(!l||!c||void 0!==o&&!o(c.value))&&e.editor.commands.setMark(e.type,{href:c.href})}}})}({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),ot=rt},24260(e,t,n){"use strict";n.d(t,{A:()=>s,f:()=>i});var r=n(52781),o=" ",i=r.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{const n=e.tokens||[];if(1===n.length&&"image"===n[0].type)return t.parseChildren([n[0]]);const r=t.parseInline(n);return 1!==r.length||"text"!==r[0].type||r[0].text!==o&&"Â "!==r[0].text?t.createNode("paragraph",void 0,r):t.createNode("paragraph",void 0,[])},renderMarkdown:(e,t,n)=>{var r,i;if(!e)return"";const s=Array.isArray(e.content)?e.content:[];if(0===s.length){const e=Array.isArray(null==(r=null==n?void 0:n.previousNode)?void 0:r.content)?n.previousNode.content:[];return"paragraph"===(null==(i=null==n?void 0:n.previousNode)?void 0:i.type)&&0===e.length?o:""}return t.renderChildren(s)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),s=i},98005(e,t,n){"use strict";n.d(t,{A:()=>r});var r=n(57115).Or},53953(e,t,n){"use strict";n.d(t,{A:()=>
2o,E:()=>r});var r=n(52781).bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),o=r},57115(e,t,n){"use strict";n.d(t,{n4:()=>B,QO:()=>U,vR:()=>H,Or:()=>z,JU:()=>G,lb:()=>X});var r=n(52781),o=n(42845),i=n(38262);function s(e={}){return new o.k_({view:t=>new a(t,e)})}class a{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r=this.editorView.dom,o=r.getBoundingClientRect(),i=o.width/r.offsetWidth,s=o.height/r.offsetHeight;if(n){let n=t.nodeBefore,r=t.nodeAfter;if(n||r){let t=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(t){let o=t.getBoundingClientRect(),i=n?o.bottom:o.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let a=this.width/2*s;e={left:o.left,right:o.right,top:i-a,bottom:i+a}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos),n=this.width/2*i;e={left:t.left-n,right:t.left+n,top:t.top,bottom:t.bottom}}let a,l,c=this.editorView.dom.offsetParent;if(this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!c||c==document.body&&"static"==getComputedStyle(c).position)a=-pageXOffset,l=-pageYOffset;else{let e=c.getBoundingClientRect(),t=e.width/c.offsetWidth,n=e.height/c.offsetHeight;a=e.left-c.scrollLeft*t,l=e.top-c.scrollTop*n}this.element.style.left=(e.left-a)/i+"px",this.element.style.top=(e.top-l)/s+"px",this.element.style.width=(e.right-e.left)/i+"px",this.element.style.height=(e.bottom-e.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,i.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var l=n(1575),c=n(61396),u=n(58903);class d extends o.LN{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return d.valid(n)?new d(n):o.LN.near(n)}content(){return u.Ji.empty}eq(e){return e instanceof d&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new d(e.resolve(t.pos))}getBookmark(){return new p(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0!=n)for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||f(e.type))return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||f(e.type))return!0;
vendor: 10,435 bytes, line 2
2if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&d.valid(e))return e;let r=e.pos,i=null;for(let n=e.depth;;n--){let o=e.node(n);if(t>0?e.indexAfter(n)<o.childCount:e.index(n)>0){i=o.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let s=e.doc.resolve(r);if(d.valid(s))return s}for(;;){let s=t>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!o.nh.isSelectable(i)){e=e.doc.resolve(r+i.nodeSize*t),n=!1;continue e}break}i=s,r+=t;let a=e.doc.resolve(r);if(d.valid(a))return a}return null}}}d.prototype.visible=!1,d.findFrom=d.findGapCursorFrom,o.LN.jsonID("gapcursor",d);class p{constructor(e){this.pos=e}map(e){return new p(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return d.valid(t)?new d(t):o.LN.near(t)}}function f(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}const h=(0,c.K)({ArrowLeft:m("horiz",-1),ArrowRight:m("horiz",1),ArrowUp:m("vert",-1),ArrowDown:m("vert",1)});function m(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,i){let s=e.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof o.U3){if(!i.endOfTextblock(n)||0==a.depth)return!1;l=!1,a=e.doc.resolve(t>0?a.after():a.before())}let c=d.findGapCursorFrom(a,t,l);return!!c&&(r&&r(e.tr.setSelection(new d(c))),!0)}}function v(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!d.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&o.nh.isSelectable(e.state.doc.nodeAt(i.inside)))&&(e.dispatch(e.state.tr.setSelection(new d(r))),!0)}function g(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof d))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=u.FK.empty;for(let e=r.length-1;e>=0;e--)i=u.FK.from(r[e].createAndFill(null,i));let s=e.state.tr.replace(n.pos,n.pos,new u.Ji(i,0,0));return s.setSelection(o.U3.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function y(e){if(!(e.selection instanceof d))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",l.zF.create(e.doc,[l.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var b=200,w=function(){};w.prototype.append=function(e){return e.length?(e=w.from(e),!this.length&&e||e.length<b&&this.leafAppend(e)||this.length<b&&e.leafPrepend(this)||this.appendInner(e)):this},w.prototype.prepend=function(e){return e.length?w.from(e).append(this):this},w.prototype.appendInner=function(e){return new k(this,e)},w.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?w.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},w.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},w.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},w.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},w.from=function(e){return e instanceof w?e:e&&e.length?new S(e):w.empty};var S=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=b)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=b)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(w);w.empty=new S([]);var k=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(w);const _=w;class O{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,s,a=e.tr,l=[],c=[];return this.items.forEach((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),r=n.maps.length),r--,void c.push(e);if(n){c.push(new C(e.map));let t,o=e.step.map(n.slice(r));o&&a.maybeStep(o).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],l.push(new C(t,void 0,void 0,l.length+c.length))),r--,t&&n.appendMap(t,r)}else a.maybeStep(e.step);return e.selection?(i=n?e.selection.map(n.slice(r)):e.selection,s=new O(this.items.slice(0,o).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:s,transform:a,selection:i}}addTransform(e,t,n,r){let o=[],i=this.eventCount,s=this.items,a=!r&&s.length?s.get(s.length-1):null;for(let n=0;n<e.steps.length;n++){let l,c=e.steps[n].invert(e.docs[n]),u=new C(e.mapping.maps[n],c,t);(l=a&&a.merge(u))&&(u=l,n?o.pop():s=s.slice(0,s.length-1)),o.push(u),t&&(i++,t=void 0),r||(a=u)}let l=i-n.depth;return l>A&&(s=function(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&0==t--)return n=r,!1}),e.slice(n)}(s,l),i-=l),new O(s.append(o),i)}remapping(e,t){let n=new i.X9;return this.items.forEach((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)},e,t),n}addMaps(e){return 0==this.eventCount?this:new O(this.items.append(e.map(e=>new C(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},r);let a=t;this.items.forEach(t=>{let r=o.getMirror(--a);if(null==r)return;i=Math.min(i,r);let l=o.maps[r];if(t.step){let i=e.steps[r].invert(e.docs[r]),c=t.selection&&t.selection.map(o.slice(a+1,r));c&&s++,n.push(new C(l,i,c))}else n.push(new C(l))},r);let l=[];for(let e=t;e<i;e++)l.push(new C(o.maps[e]));let c=this.items.slice(0,r).append(l).append(n),u=new O(c,s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((i,s)=>{if(s>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),s=e&&e.getMap();if(n--,s&&t.appendMap(s,n),e){let a=i.selection&&i.selection.map(t.slice(n));a&&o++;let l,c=new C(s.invert(),e,a),u=r.length-1;(l=r.length&&r[u].merge(c))?r[u]=l:r.push(c)}}else i.map&&n--},this.items.length,0),new O(_.from(r.reverse()),o)}}O.empty=new O(_.empty,0);class C{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new C(t.getMap().invert(),t,this.selection)}}}class T{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const A=20;function E(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,o)=>t.push(r,o));return t}function x(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}let P=!1,I=null;function L(e){let t=e.plugins;if(I!=t){P=!1,I=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){P=!0;break}}return P}const j=new o.hs("history"),M=new o.hs("closeHistory");function D(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new o.k_({key:j,state:{init:()=>new T(O.empty,O.empty,null,0,-1),apply:(t,n,r)=>function(e,t,n,r){let o,i=n.getMeta(j);if(i)return i.historyState;n.getMeta(M)&&(e=new T(e.done,e.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(j))return s.getMeta(j).redo?new T(e.done.addTransform(n,void 0,r,L(t)),e.undone,E(n.mapping.maps),e.prevTime,e.prevComposition):new T(e.done,e.undone.addTransform(n,void 0,r,L(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new T(e.done.rebased(n,o),e.undone.rebased(n,o),x(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new T(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),x(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),i=0==e.prevTime||!s&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;
2return e.mapping.maps[0].forEach((e,r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)}),n}(n,e.prevRanges)),a=s?x(e.prevRanges,n.mapping):E(n.mapping.maps);return new T(e.done.addTransform(n,i?t.selection.getBookmark():void 0,r,L(t)),O.empty,a,n.time,null==o?e.prevComposition:o)}}(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?N:"historyRedo"==n?F:null;return!(!r||!e.editable)&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}function R(e,t){return(n,r)=>{let o=j.getState(n);if(!o||0==(e?o.undone:o.done).eventCount)return!1;if(r){let i=function(e,t,n){let r=L(t),o=j.get(t).spec.config,i=(n?e.undone:e.done).popEvent(t,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(n?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),o,r),l=new T(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(j,{redo:n,historyState:l})}(o,n,e);i&&r(t?i.scrollIntoView():i)}return!0}}const N=R(!1,!0),F=R(!0,!0);R(!1,!1),R(!0,!1);var B=r.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){const e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new o.k_({key:new o.hs("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const o=this.options.limit;if(null==o||0===o)return void(e=!0);const i=this.storage.characters({node:r.doc});if(i>o){const t=0,n=i-o;console.warn(`[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`);const s=r.tr.deleteRange(t,n);return e=!0,s}e=!0},filterTransaction:(e,t)=>{const n=this.options.limit;if(!e.docChanged||0===n||null==n)return!0;const r=this.storage.characters({node:t.doc}),o=this.storage.characters({node:e.doc});if(o<=n)return!0;if(r>n&&o>n&&o<=r)return!0;if(r>n&&o>n&&o>r)return!1;if(!e.getMeta("paste"))return!1;const i=e.selection.$head.pos,s=i-(o-n),a=i;e.deleteRange(s,a);return!(this.storage.characters({node:e.doc})>n)}})]}}),U=r.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[s(this.options)]}}),H=(r.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new o.k_({key:new o.hs("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:o}=t,i=[];if(!n||!r)return l.zF.create(e,[]);let s=0;"deepest"===this.options.mode&&e.descendants((e,t)=>{if(e.isText)return;if(!(o>=t&&o<=t+e.nodeSize-1))return!1;s+=1});let a=0;return e.descendants((e,t)=>{if(e.isText)return!1;if(!(o>=t&&o<=t+e.nodeSize-1))return!1;a+=1;if("deepest"===this.options.mode&&s-a>0||"shallowest"===this.options.mode&&a>1)return"deepest"===this.options.mode;i.push(l.NZ.node(t,t+e.nodeSize,{class:this.options.className}))}),l.zF.create(e,i)}}})]}}),r.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new o.k_({props:{decorations:y,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&d.valid(n)?new d(n):null,handleClick:v,handleKeyDown:h,handleDOMEvents:{beforeinput
2:g}}})],extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,r.gk)((0,r.iI)(e,"allowGapCursor",n)))?t:null}}})),$="placeholder";var z=r.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:$,placeholder:"Write something â¦",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){const e=this.options.dataAttribute?`data-${t=this.options.dataAttribute,t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}`:`data-${$}`;var t;return[new o.k_({key:new o.hs("placeholder"),props:{decorations:({doc:t,selection:n})=>{const o=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=n,s=[];if(!o)return null;const a=this.editor.isEmpty;return t.descendants((t,n)=>{const o=i>=n&&i<=n+t.nodeSize,c=!t.isLeaf&&(0,r.Op)(t);if(!t.type.isTextblock)return this.options.includeChildren;if((o||!this.options.showOnlyCurrent)&&c){const r=[this.options.emptyNodeClass];a&&r.push(this.options.emptyEditorClass);const i=l.NZ.node(n,n+t.nodeSize,{class:r.join(" "),[e]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:n,hasAnchor:o}):this.options.placeholder});s.push(i)}return this.options.includeChildren}),l.zF.create(t,s)}}})]}});r.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new o.k_({key:new o.hs("selection"),props:{decorations:n=>n.selection.empty||e.isFocused||!e.isEditable||(0,r.BQ)(n.selection)||e.view.dragging?null:l.zF.create(n.doc,[l.NZ.inline(n.selection.from,n.selection.to,{class:t.className})])}})]}});function W({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||(null==t?void 0:t.type)===e}var G=r.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;const t=new o.hs(this.name),n=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(n).includes(e.name));return[new o.k_({key:t,appendTransaction:(e,r,o)=>{const{doc:i,tr:s,schema:a}=o,l=t.getState(o),c=i.content.size,u=a.nodes[n];if(l)return s.insert(c,u.create())},state:{init:(e,t)=>!W({node:t.tr.doc.lastChild,types:r}),apply:(e,t)=>{if(!e.docChanged)return t;if(e.getMeta("__uniqueIDTransaction"))return t;return!W({node:e.doc.lastChild,types:r})}}})]}}),X=r.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>N(e,t),redo:()=>({state:e,dispatch:t})=>F(e,t)}),addProseMirrorPlugins(){return[D(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}})},60792(e,t,n){"use strict";n.d(t,{A:()=>ae});var r=n(52781);var o=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);const{children:n,...r}=null!=t?t:{};if("svg"===e)throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,r,n]},i=/^\s*>\s$/,s=r.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return o("blockquote",{...(0,r.KV)(this.options.HTMLAttributes,e),children:o("slot",{})})},parseMarkdown:(e,t)=>{var n;const r=null!=(n=t.parseBlockChildren)?n:t.parseChildren;return t.createNode("blockquote",void 0,r(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return"";const n=[];return e.content.forEach((e,r)=>{var o,i;const s=(null!=(i=null==(o=t.renderChild)?void 0:o.call(t,e,r))?i:t.renderChildren([e])).split("\n").map(e=>""===e.trim()?">":`> ${e}`);n.push(s.join("\n"))}),n.join("\n>\n")},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}}
2,addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,r.tG)({find:i,type:this.type})]}}),a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,l=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,d=r.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return o("strong",{...(0,r.KV)(this.options.HTMLAttributes,e),children:o("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
2,addInputRules(){return[(0,r.OX)({find:a,type:this.type}),(0,r.OX)({find:c,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:l,type:this.type}),(0,r.Zc)({find:u,type:this.type})]}}),p=/(^|[^`])`([^`]+)`(?!`)$/,f=/(^|[^`])`([^`]+)`(?!`)/g,h=r.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,r.OX)({find:p,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:f,type:this.type})]}}),m=n(42845),v=/^```([a-z]+)?[\s\n]$/,g=/^~~~([a-z]+)?[\s\n]$/,y=r.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;if(!n)return null;const r=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var n,r;return!1===(null==(n=e.raw)?void 0:n.startsWith("```"))&&!1===(null==(r=e.raw)?void 0:r.startsWith("~~~"))&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var n;let r="";const o=(null==(n=e.attrs)?void 0:n.language)||"";if(e.content){r=[`\`\`\`${o}`,t.renderChildren(e.content),"```"].join("\n")}else r=`\`\`\`${o}\n\n\`\`\``;return r},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!(!e||t.parent.type.name!==this.name)&&(!(!n&&t.parent.textContent.length)&&this.editor.commands.clearNodes())},Tab:({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:o}=r,{$from:i,empty:s}=o;if(i.parent.type!==this.type)return!1;const a=" ".repeat(n);return s?e.commands.insertContent(a):e.commands.command(({tr:e})=>{const{from:t,to:n}=o,i=r.doc.textBetween(t,n,"\n","\n").split("\n").map(e=>a+e).join("\n");return e.replaceWith(t,n,r.schema.text(i)),!0})},"Shift-Tab":({editor:e})=>{var t;if(!this.options.enableTabIndentation)return!1;const n=null!=(t=this.options.tabSize)?t:4,{state:r}=e,{selection:o}=r,{$from:i,empty:s}=o;return i.parent.type===this.type&&(s?e.commands.command(({tr:e})=>{var t;const{pos:o}=i,s=i.start(),a=i.end(),l=r.doc.textBetween(s,a,"\n","\n").split("\n");let c=0,u=0;const d=o-s;for(let e=0;e<l.length;e+=1){if(u+l[e].length>=d){c=e;break}u+=l[e].length+1}const p=(null==(t=l[c].match(/^ */))?void 0:t[0])||"",f=Math.min(p.length,n);if(0===f)return!0;let h=s;for(let e=0;e<c;e+=1)h+=l[e].length+1;e.delete(h,h+f);return o-h<=f&&e.setSelection(m.U3.create(e.doc,h)),!0}):e.commands.command(({tr:e})=>{const{from:t,to:i}=o,s=r.doc.textBetween(t,i,"\n","\n").split("\n").map(e=>{var t;const r=(null==(t=e.match(/^ */))?void 0:t[0])||"",o=Math.min(r.length,n);return e.slice(o)}).join("\n");return e.replaceWith(t,i,r.schema.text(s)),!0}))},Enter:({editor:e})=>
2{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith("\n\n");return!(!i||!s)&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;if(!(o.parentOffset===o.parent.nodeSize-2))return!1;const s=o.after();if(void 0===s)return!1;return r.nodeAt(s)?e.commands.command(({tr:e})=>(e.setSelection(m.LN.near(r.resolve(s))),!0)):e.commands.exitCode()}}},addInputRules(){return[(0,r.JJ)({find:v,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.JJ)({find:g,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new m.k_({key:new m.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=null==o?void 0:o.mode;if(!n||!i)return!1;const{tr:s,schema:a}=e.state,l=a.text(n.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:i},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(m.U3.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),b=n(515),w=r.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>" \n",parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:e,storedMarks:o}=n;if(e.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:s}=r.extensionManager,a=o||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&a&&i){const t=a.filter(e=>s.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),S=n(81036),k=r.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.KV)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,r.AB)(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$to:o}=n,i=e();return(0,r.BQ)(n)?i.insertContentAt(o.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){const{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(m.U3.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(m.nh.create(t.doc,n.pos)):t.setSelection(m.U3.create(t.doc,n.pos));else{const o=e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType,i=null==o?void 0:o.create();i&&(t.insert(r,i),t.setSelection(m.U3.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.jT)({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
2ype})]}}),_=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,O=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,C=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,T=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,A=r.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,r.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.OX)({find:_,type:this.type}
2),(0,r.OX)({find:C,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:O,type:this.type}),(0,r.Zc)({find:T,type:this.type})]}}),E=n(334),x=Object.defineProperty,P="textStyle",I=/^\s*([-+*])\s$/,L=r.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(P)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
2,addInputRules(){let e=(0,r.tG)({find:I,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:I,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(P),editor:this.editor})),[e]}}),j=r.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{var n;if("list_item"!==e.type)return[];const r=null!=(n=t.parseBlockChildren)?n:t.parseChildren;let o=[];if(e.tokens&&e.tokens.length>0){if(e.tokens.some(e=>"paragraph"===e.type))o=r(e.tokens);else{const n=e.tokens[0];if(n&&"text"===n.type&&n.tokens&&n.tokens.length>0){if(o=[{type:"paragraph",content:t.parseInline(n.tokens)}],e.tokens.length>1){const t=r(e.tokens.slice(1));o.push(...t)}}else o=r(e.tokens)}}return 0===o.length&&(o=[{type:"paragraph",content:[]}]),{type:"listItem",content:o}},renderMarkdown:(e,t,n)=>(0,r.kj)(e,t,e=>{var t,n;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){return`${((null==(n=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:n.start)||1)+e.index}. `}return"- "},n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((e,t)=>{for(var n in t)x(e,n,{get:t[n],enumerable:!0})})({},{findListItemPos:()=>M,getNextListDepth:()=>D,handleBackspace:()=>B,handleDelete:()=>$,hasListBefore:()=>R,hasListItemAfter:()=>z,hasListItemBefore:()=>N,listItemHasSubList:()=>F,nextListIsDeeper:()=>U,nextListIsHigher:()=>H});var M=(e,t)=>{const{$from:n}=t.selection,o=(0,r.Pg)(e,t.schema);let i=null,s=n.depth,a=n.pos,l=null;for(;s>0&&null===l;)i=n.node(s),i.type===o?l=s:(s-=1,a-=1);return null===l?null:{$pos:t.doc.resolve(a),depth:l}},D=(e,t)=>{const n=M(e,t);if(!n)return!1;const[,o]=(0,r.fl)(t,e,n.$pos.pos+4);return o},R=(e,t,n)=>{const{$anchor:r}=e.selection,o=Math.max(0,r.pos-2),i=e.doc.resolve(o).node();return!(!i||!n.includes(i.type.name))},N=(e,t)=>{var n;const{$anchor:r}=t.selection,o=t.doc.resolve(r.pos-2);return 0!==o.index()&&(null==(n=o.nodeBefore)?void 0:n.type.name)===e},F=(e,t,n)=>{if(!n)return!1;const o=(0,r.Pg)(e,t.schema);let i=!1;return n.descendants(e=>{e.type===o&&(i=!0)}),i},B=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,r.rU)(e.state,t)&&R(e.state,t,n)){const{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),o=[];r.node().descendants((e,n)=>{e.type.name===t&&o.push({node:e,pos:n})});const i=o.at(-1);if(!i)return!1;const s=e.state.doc.resolve(r.start()+i.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},s.end()).joinForward().run()}if(!(0,r.rU)(e.state,t))return!1;if(!(0,r.J_)(e.state))return!1;const o=M(t,e.state);if(!o)return!1;const i=e.state.doc.resolve(o.$pos.pos-2).node(o.depth),s=F(t,e.state,i);return N(t,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},U=(e,t)=>{const n=D(e,t),r=M(e,t);return!(!r||!n)&&n>r.depth},H=(e,t)=>{const n=D(e,t),r=M(e,t);return!(!r||!n)&&n<r.depth},$=(e,t)=>{if(!(0,r.rU)(e.state,t))return!1;if(!(0,r.QN)(e.state,t))return!1;const{selection:n}=e.state,{$from:o,$to:i}=n;return!(!n.empty&&o.sameParent(i))&&(U(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():H(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},z=(e,t)=>{var n;const{$anchor:r}=t.selection,o=t.doc.resolve(r.pos-r.parentOffset-2);return o.index()!==o.parent.childCount-1&&(null==(n=o.nodeAfter)?void 0:n.type.name)===e},W=r.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;
2return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&$(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{void 0!==e.state.schema.nodes[n]&&$(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&B(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{void 0!==e.state.schema.nodes[n]&&B(e,n,r)&&(t=!0)}),t}}}}),G=/^(\s*)(\d+)\.\s+(.*)$/,X=/^\s/;function V(e,t,n){var r;const o=[];let i=0;for(;i<e.length;){const s=e[i];if(s.indent===t){const a=s.content.split("\n"),l=(null==(r=a[0])?void 0:r.trim())||"",c=[];l&&c.push({type:"paragraph",raw:l,tokens:n.inlineTokens(l)});const u=a.slice(1).join("\n").trim();if(u){const e=n.blockTokens(u);c.push(...e)}let d=i+1;const p=[];for(;d<e.length&&e[d].indent>t;)p.push(e[d]),d+=1;if(p.length>0){const e=Math.min(...p.map(e=>e.indent)),t=V(p,e,n);c.push({type:"list",ordered:!0,start:p[0].number,items:t,raw:p.map(e=>e.raw).join("\n")})}o.push({type:"list_item",raw:s.raw,tokens:c}),i=d}else i+=1}return o}var K="textStyle",q=/^(\d+)\.\s$/,Y=r.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return 1===t?["ol",(0,r.KV)(this.options.HTMLAttributes,n),0]:["ol",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];const n=e.start||1,r=e.items?function(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];const n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)n.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){const r=t.parseChildren([e]);n.push({type:"paragraph",content:r})}else{const r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:"listItem",content:n}})}(e.items,t):[];return 1!==n?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{const t=e.match(/^(\s*)(\d+)\.\s+/),n=null==t?void 0:t.index;return void 0!==n?n:-1},tokenize:(e,t,n)=>{var r;const o=e.split("\n"),[i,s]=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e[n],i=o.match(G);if(!i)break;const[,s,a,l]=i,c=s.length;let u=l,d=n+1;const p=[o];for(;d<e.length;){const t=e[d];if(t.match(G))break;if(""===t.trim())p.push(t),u+="\n",d+=1;else{if(!t.match(X))break;p.push(t),u+=`\n${t.slice(c+2)}`,d+=1}}t.push({indent:c,number:parseInt(a,10),content:u.trim(),raw:p.join("\n")}),r=d,n=d}return[t,r]}(o);if(0===i.length)return;const a=V(i,0,n);if(0===a.length)return;return{type:"list",ordered:!0,start:(null==(r=i[0])?void 0:r.number)||1,items:a,raw:o.slice(0,s).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(K)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.tG)({find:q,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.tG)({find:q,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(K)}),joinPredicate:(e,t)=>
2t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),Q=/^\s*(\[([( |x])?\])\s$/,J=r.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",(0,r.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{const n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?n.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):n.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>{var n;const o=`- [${(null==(n=e.attrs)?void 0:n.checked)?"x":" "}] `;return(0,r.kj)(e,t,o)},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:o})=>{const i=document.createElement("li"),s=document.createElement("label"),a=document.createElement("span"),l=document.createElement("input"),c=document.createElement("div"),u=e=>{var t,n;l.ariaLabel=(null==(n=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:n.call(t,e,l.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};u(e),s.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",e=>e.preventDefault()),l.addEventListener("change",t=>{if(!o.isEditable&&!this.options.onReadOnlyChecked)return void(l.checked=!l.checked);const{checked:r}=t.target;o.isEditable&&"function"==typeof n&&o.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{const t=n();if("number"!=typeof t)return!1;const o=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...null==o?void 0:o.attrs,checked:r}),!0}).run(),!o.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,r)||(l.checked=!l.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,s.append(l,a),i.append(s,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let d=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,u(e);const t=o.extensionManager.attributes,n=(0,r.zU)(e,t),s=new Set(Object.keys(n)),a=this.options.HTMLAttributes;return d.forEach(e=>{s.has(e)||(e in a?i.setAttribute(e,a[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{null==t?e in a?i.setAttribute(e,a[e]):i.removeAttribute(e):i.setAttribute(e,t)}),d=s,!0}}}}
2,addInputRules(){return[(0,r.tG)({find:Q,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),Z=r.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",(0,r.KV)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;const n=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,t,n){const o=e=>{const t=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:o},n);return t?[{type:"taskList",raw:t.raw,items:t.items}]:n.blockTokens(e)},i=(0,r.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:o},n);if(i)return{type:"taskList",raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),ee=(r.YY.create({name:"listKit",addExtensions(){const e=[];return!1!==this.options.bulletList&&e.push(L.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(j.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(W.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(Y.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push(J.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(Z.configure(this.options.taskList)),e}}),n(24260)),te=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,ne=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,re=r.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.KV)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.OX)({find:te,type:this.type})]},addPasteRules(){return[(0,r.Zc)({find:ne,type:this.type})]}}),oe=n(53953),ie=r.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.KV)(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,n){const r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;const o=r[2].trim();return{type:"underline",raw:r[0],text:o,tokens:n.inlineTokens(o)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),se=n(57115),ae=r.YY.create({name:"starterKit",addExtensions(){var e,t,n,r;const o=[];return!1!==this.options.bold&&o.push(d.configure(this.options.bold)),!1!==this.options.blockquote&&o.push(s.configure(this.options.blockquote)),!1!==this.options.bulletList&&o.push(L.configure(this.options.bulletList)),!1!==this.options.code&&o.push(h.configure(this.options.code)),!1!==this.options.codeBlock&&o.push(y.configure(this.options.codeBlock)),!1!==this.options.document&&o.push(b.y.configure(this.options.document)),!1!==this.options.dropcursor&&o.push(se.QO.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&o.push(se.vR.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&o.push(w.configure(this.options.hardBreak)),!1!==this.options.heading&&o.push(S.D.configure(this.options.heading)),!1!==this.options.undoRedo&&o.push(se.lb.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&o.push(k.configure(this.options.horizontalRule)),!1!==this.options.italic&&o.push(A.configure(this.options.italic)),!1!==this.options.listItem&&o.push(j.configure(this.options.listItem)),!1!==this.options.listKeymap&&o.push(W.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&o.push(E.N_.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&o.push(Y.configure(this.options.orderedList)),!1!==this.options.paragraph&&o.push(ee.f.configure(this.options.paragraph)),!1!==this.options.strike&&o.push(re.configure(this.options.strike)),!1!==this.options.text&&o.push(oe.E.configure(this.options.text)),!1!==this.options.underline&&o.push(ie.configure(null==(n=this.options)?void 0:n.underline)),!1!==this.options.trailingNode&&o.push(se.JU.configure(null==(r=this.options)?void 0:r.trailingNode)),o}})},45442(e,t,n){"use strict";n.d(t,{$Z:()=>c,KE:()=>l});var r=n(52781),o=n(50953),i=n(20641),s=n(53751);function a(e){return(0,o.rY)((t,n)=>({get:()=>(t(),e),set(t){e=t,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var l=class extends r.KE{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=a(this.view.state),this.reactiveExtensionStorage=a(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),(0,o.IG)(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const n=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}},c=(0,i.pM)({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=(0,o.KR)(),n=(0,i.nI)();return(0,i.nT)(()=>{const r=e.editor;r&&r.options.element&&t.value&&(0,i.dY)(()=>{var e;if(!t.value||!(null==(e=r.view.dom)?void 0:e.parentNode))return;const i=(0,o.R1)(t.value);
2t.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),(0,i.xo)(()=>{const t=e.editor;t&&(t.contentComponent=null,t.appContext=null)}),{rootEl:t}},render(){return(0,i.h)("div",{ref:e=>{this.rootEl=e}})}}),u=((0,i.pM)({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return(0,i.h)(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),(0,i.pM)({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return(0,i.h)(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},null==(t=(e=this.$slots).default)?void 0:t.call(e))}}),class{constructor(e,{props:t={},editor:n}){this.destroyed=!1,this.editor=n,this.component=(0,o.IG)(e),this.el=document.createElement("div"),this.props=(0,o.Kh)(t),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var e,t,n,r;return(null==(t=null==(e=this.renderedComponent.vNode)?void 0:e.component)?void 0:t.exposed)?this.renderedComponent.vNode.component.exposed:null==(r=null==(n=this.renderedComponent.vNode)?void 0:n.component)?void 0:r.proxy}renderComponent(){if(this.destroyed)return this.renderedComponent;let e=(0,i.h)(this.component,this.props);this.editor.appContext&&(e.appContext=this.editor.appContext),"undefined"!=typeof document&&this.el&&(0,s.render)(e,this.el);return{vNode:e,destroy:()=>{this.el&&(0,s.render)(null,this.el),this.el=null,e=null},el:this.el?this.el.firstElementChild:null}}updateProps(e={}){this.destroyed||(Object.entries(e).forEach(([e,t])=>{this.props[e]=t}),this.renderComponent())}destroy(){this.destroyed||(this.destroyed=!0,this.renderedComponent.destroy())}});Boolean,(0,i.pM)({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return(0,i.h)(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}}),r.Db;Boolean,r.Yv},30009(e,t,n){"use strict";n.d(t,{u:()=>s});var r=n(50953),o=n(20641),i=n(90157);function s(e,t={}){const n=t.head||(0,i.i)();if(n)return n.ssr?n.push(e,t):function(e,t,n={}){const s=(0,r.KR)(!1),a=(0,r.KR)({});(0,o.nT)(()=>{a.value=s.value?{}:(0,i.r)(t)});const l=e.push(a.value,n);(0,o.wB)(a,e=>{l.patch(e)});(0,o.nI)()&&((0,o.xo)(()=>{l.dispose()}),(0,o.Y4)(()=>{s.value=!0}),(0,o.n)(()=>{s.value=!1}));return l}(n,e,t)}},90157(e,t,n){"use strict";n.d(t,{c:()=>fe,i:()=>ve,r:()=>ce});const r=new Set(["title","titleTemplate","script","style","noscript"]),o=new Set(["base","meta","link","style","script","noscript"]),i=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),s=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),a=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),l="undefined"!=typeof window;function c(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return(65536+(t^t>>>9)).toString(16).substring(1,8).toLowerCase()}function u(e){if(e._h)return e._h;if(e._d)return c(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return c(t)}const d=e=>({keyValue:e,metaKey:"property"}),p=e=>({keyValue:e}),f=(d("article:expiration_time"),d("article:modified_time"),d("article:published_time"),d("book:release_date"),d("fb:app_id"),p("msapplication-Config"),p("msapplication-TileColor"),p("msapplication-TileImage"),d("og:audio:secure_url"),d("og:audio"),d("og:image:secure_url"),d("og:image"),d("og:site_name"),d("og:video:secure_url"),d("og:video"),d("profile:first_name"),d("profile:last_name"),d("profile:username"),new Set(["og","book","article","profile"]));function h(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-"),r=t.substring(0,n);return"twitter"===r||f.has(r)?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function m(e,t,n,o){const i=o||y("object"!=typeof t||"function"==typeof t||t instanceof Promise?{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:t}:{...t},"templateParams"===e||"titleTemplate"===e);if(i instanceof Promise)return i.then(r=>m(e,t,n,r));const s={tag:e,props:i};for(const e of a){const t=void 0!==s.props[e]?s.props[e]:n[e];void 0!==t&&(("innerHTML"!==e&&"textContent"!==e&&"children"!==e||r.has(s.tag))&&(s["children"===e?"innerHTML":e]=t),delete s.props[e])}return s.props.body&&(s.tagPosition="bodyClose",delete s.props.body),"script"===s.tag&&"object"==typeof s.innerHTML&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(e=>({...s,props:{...s.props,content:e}})):s}function v(e,t){const n="class"===e?" ":";";return t&&"object"==typeof t&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,e])=>e).map(([t,n])=>"style"===e?`${t}:${n}`:t)),String(Array.isArray(t)?t.join(n):t)?.split(n).filter(e=>Boolean(e.trim())).join(n)}function g(e,t,n,r){for(let o=r;o<n.length;o+=1){const r=n[o];if("class"!==r&&"style"!==r){if(e[r]instanceof Promise)return e[r].then(i=>(e[r]=i,g(e,t,n,o)));if(!t&&!a.has(r)){const t=String(e[r]),n=r.startsWith("data-");"true"===t||""===t?e[r]=!n||"true":e[r]||(n&&"false"===t?e[r]="false":delete e[r])}}else e[r]=v(r,e[r])}}function y(e,t=!1){const n=g(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}function b(e,t,n){for(let r=n;r<t.length;r+=1){const n=t[r];
2if(n instanceof Promise)return n.then(n=>(t[r]=n,b(e,t,r)));Array.isArray(n)?e.push(...n):e.push(n)}}function w(e){const t=[],n=e.resolvedInput;for(const r in n){if(!Object.prototype.hasOwnProperty.call(n,r))continue;const o=n[r];if(void 0!==o&&i.has(r))if(Array.isArray(o))for(const n of o)t.push(m(r,n,e));else t.push(m(r,o,e))}if(0===t.length)return[];const r=[];return o=b(r,t,0),s=()=>r.map((t,n)=>(t._e=e._i,e.mode&&(t._m=e.mode),t._p=(e._i<<10)+n,t)),o instanceof Promise?o.then(s):s(o);var o,s}const S=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),k={base:-10,title:10},_={critical:-80,high:-10,low:20};function O(e){const t=e.tagPriority;if("number"==typeof t)return t;let n=100;return"meta"===e.tag?"content-security-policy"===e.props["http-equiv"]?n=-30:e.props.charset?n=-20:"viewport"===e.props.name&&(n=-15):"link"===e.tag&&"preconnect"===e.props.rel?n=20:e.tag in k&&(n=k[e.tag]),t&&t in _?n+_[t]:n}const C=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],T=["name","property","http-equiv"];function A(e){const{props:t,tag:n}=e;if(s.has(n))return n;if("link"===n&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const e of T)if(void 0!==t[e])return`${n}:${e}:${t[e]}`;return!1}const E="%separator";const x=new RegExp(`${E}(?:\\s*${E})*`,"g");function P(e,t,n,r=!1){if("string"!=typeof e||!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(E);return e=e.replace(/%\w+(?:\.\w+)?/g,e=>{if(e===E||!i.includes(e))return e;const n=function(e,t,n=!1){let r;if("s"===t||"pageTitle"===t)r=e.pageTitle;else if(t.includes(".")){const n=t.indexOf(".");r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(void 0!==r)return n?(r||"").replace(/"/g,'\\"'):r||""}(t,e.slice(1),r);return void 0!==n?n:e}).trim(),s&&(e.endsWith(E)&&(e=e.slice(0,-10)),e.startsWith(E)&&(e=e.slice(10)),e=e.replace(x,n).trim()),e}function I(e,t){return null==e?t||null:"function"==typeof e?e(t):e}function L(e,t={}){const n=t.delayFn||(e=>setTimeout(e,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(r=>n(()=>async function(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};return await e.hooks.callHook("dom:beforeRender",r),r.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise(async t=>{const r=(await e.resolveTags()).map(e=>({tag:e,id:o.has(e.tag)?u(e):e.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const e=new Set;for(const t of["body","head"]){const r=n[t]?.children;for(const t of r){const n=t.tagName.toLowerCase();if(!o.has(n))continue;const r={tag:n,props:await y(t.getAttributeNames().reduce((e,n)=>({...e,[n]:t.getAttribute(n)}),{})),innerHTML:t.innerHTML},s=A(r);let a=s,l=1;for(;a&&e.has(a);)a=`${s}:${l++}`;a&&(r._d=a,e.add(a)),i.elMap[t.getAttribute("data-hid")||u(r)]=t}}}function s(e,t,n){const r=`${e}:${t}`;i.sideEffects[r]=n,delete i.pendingSideEffects[r]}function a({id:e,$el:t,tag:r}){const o=r.tag.endsWith("Attrs");if(i.elMap[e]=t,o||(r.textContent&&r.textContent!==t.textContent&&(t.textContent=r.textContent),r.innerHTML&&r.innerHTML!==t.innerHTML&&(t.innerHTML=r.innerHTML),s(e,"el",()=>{i.elMap[e]?.remove(),delete i.elMap[e]})),r._eventHandlers)for(const e in r._eventHandlers)Object.prototype.hasOwnProperty.call(r._eventHandlers,e)&&""!==t.getAttribute(`data-${e}`)&&(("bodyAttrs"===r.tag?n.defaultView:t).addEventListener(e.substring(2),r._eventHandlers[e].bind(t)),t.setAttribute(`data-${e}`,""));for(const n in r.props){if(!Object.prototype.hasOwnProperty.call(r.props,n))continue;const i=r.props[n],a=`attr:${n}`;if("class"===n){if(!i)continue;for(const n of i.split(" "))o&&s(e,`${a}:${n}`,()=>t.classList.remove(n)),!t.classList.contains(n)&&t.classList.add(n)}else if("style"===n){if(!i)continue;for(const n of i.split(";")){const r=n.indexOf(":"),o=n.substring(0,r).trim(),i=n.substring(r+1).trim();s(e,`${a}:${o}`,()=>{t.style.removeProperty(o)}),t.style.setProperty(o,i)}}else t.getAttribute(n)!==i&&t.setAttribute(n,!0===i?"":String(i)),o&&s(e,a,()=>t.removeAttribute(n))}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const e of r){const{tag:t,shouldRender:r,id:s}=e;r&&("title"!==t.tag?(e.$el=e.$el||i.elMap[s],e.$el?a(e):o.has(t.tag)&&l.push(e)):n.title=t.textContent)}for(const e of l){const t=e.tag.tagPosition||"head";e.$el=n.createElement(e.tag.tag),a(e),c[t]=c[t]||n.createDocumentFragment(),c[t].appendChild(e.$el)}for(const t of r)await e.hooks.callHook("dom:renderTag",t,n,s);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(const e in i.pendingSideEffects)i.pendingSideEffects[e]();e._dom=i,await e.hooks.callHook("dom:rendered",{renders:r}),t()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise):void 0}(e,t).then(()=>{delete e._domDebouncedUpdatePromise,r()})))}function j(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;"object"==typeof o&&null!==o?j(o,t,i):"function"==typeof o&&(t[i]=o)}return t}const M={run:e=>e()},D=void 0!==console.createTask?console.createTask:()=>M;function R(e,t){const n=t.shift(),r=D(n);return e.reduce((e,n)=>e.then(()=>r.run(()=>n(...t))),Promise.resolve())}function N(e,t){const n=t.shift(),r=D(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}function F(e,t){for(const n of[...e])n(t)}class B{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||"function"!=typeof t)return()=>{};const r=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!n.allowDeprecated){let e=o.message;e||(e=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...e)=>("function"==typeof n&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){const n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const n=this._hooks[e]||[];delete this._hooks[e];for(const t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=j(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=j(e);for(const e in t)this.removeHook(e,t[e])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(R,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(N,e,...t)}callHookWith(e,t,...n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&F(this._before,r);const o=e(t in this._hooks?[...this._hooks[t]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&r&&F(this._after,r)}):(this._after&&r&&F(this._after,r),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}const U=new Set(["templateParams","htmlAttrs","bodyAttrs"]),H={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&
2(e.key=e.props.key,delete e.props.key);const t=A(e);!t||t.startsWith("meta:og:")||t.startsWith("meta:twitter:")||delete e.key;const n=t||!!e.key&&`${e.tag}:${e.key}`;n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const n of e.tags){const e=(n.key?`${n.tag}:${n.key}`:n._d)||u(n),r=t[e];if(r){let o=n?.tagDuplicateStrategy;if(!o&&U.has(n.tag)&&(o="merge"),"merge"===o){const o=r.props;o.style&&n.props.style&&(";"!==o.style[o.style.length-1]&&(o.style+=";"),n.props.style=`${o.style} ${n.props.style}`),o.class&&n.props.class?n.props.class=`${o.class} ${n.props.class}`:o.class&&(n.props.class=o.class),t[e].props={...o,...n.props};continue}if(n._e===r._e){r._duped=r._duped||[],n._d=`${r._d}:${r._duped.length+1}`,r._duped.push(n);continue}if(O(n)>O(r))continue}n.innerHTML||n.textContent||0!==Object.keys(n.props).length||!o.has(n.tag)?t[e]=n:delete t[e]}const n=[];for(const e in t){const r=t[e],o=r._duped;n.push(r),o&&(delete r._duped,n.push(...o))}e.tags=n,e.tags=e.tags.filter(e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content))}}},$=new Set(["script","link","bodyAttrs"]),z=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!$.has(n.tag))continue;const t=n.props;for(const r in t){if("o"!==r[0]||"n"!==r[1])continue;if(!Object.prototype.hasOwnProperty.call(t,r))continue;const o=t[r];"function"==typeof o&&(e.ssr&&S.has(r)?t[r]=`this.dataset.${r}fired = true`:delete t[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||c(n.props.src||n.props.href))}},"dom:renderTag":({$el:e,tag:t})=>{const n=e?.dataset;if(n)for(const r in n){if(!r.endsWith("fired"))continue;const n=r.slice(0,-5);S.has(n)&&t._eventHandlers?.[n]?.call(e,new Event(n.substring(2)))}}}}),W=new Set(["link","style","script","noscript"]),G={hooks:{"tag:normalise":({tag:e})=>{e.key&&W.has(e.tag)&&(e.props["data-hid"]=e._h=c(e.key))}}},X={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const r of e.tags)"server"!==r._m||"titleTemplate"!==r.tag&&"templateParams"!==r.tag&&"title"!==r.tag||(t[r.tag]="title"===r.tag||"titleTemplate"===r.tag?r.textContent:r.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},V={hooks:{"tags:resolve":e=>{for(const t of e.tags)if("string"==typeof t.tagPriority)for(const{prefix:n,offset:r}of C){if(!t.tagPriority.startsWith(n))continue;const o=t.tagPriority.substring(n.length),i=e.tags.find(e=>e._d===o)?._p;if(void 0!==i){t._p=i+r;break}}e.tags.sort((e,t)=>{const n=O(e),r=O(t);return n<r?-1:n>r?1:e._p-t._p})}}},K={meta:"content",link:"href",htmlAttrs:"lang"},q=["innerHTML","textContent"],Y=e=>({hooks:{"tags:resolve":t=>{const{tags:n}=t;let r;for(let e=0;e<n.length;e+=1){"templateParams"===n[e].tag&&(r=t.tags.splice(e,1)[0].props,e-=1)}const o=r||{},i=o.separator||"|";delete o.separator,o.pageTitle=P(o.pageTitle||n.find(e=>"title"===e.tag)?.textContent||"",o,i);for(const e of n){if(!1===e.processTemplateParams)continue;const t=K[e.tag];if(t&&"string"==typeof e.props[t])e.props[t]=P(e.props[t],o,i);else if(e.processTemplateParams||"titleTemplate"===e.tag||"title"===e.tag)for(const t of q)"string"==typeof e[t]&&(e[t]=P(e[t],o,i,"script"===e.tag&&e.props.type.endsWith("json")))}e._templateParams=o,e._separator=i},"tags:afterResolve":({tags:t})=>{let n;for(let e=0;e<t.length;e+=1){const r=t[e];"title"===r.tag&&!1!==r.processTemplateParams&&(n=r)}n?.textContent&&(n.textContent=P(n.textContent,e._templateParams,e._separator))}}}),Q={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,r;for(let e=0;e<t.length;e+=1){const o=t[e];"title"===o.tag?n=o:"titleTemplate"===o.tag&&(r=o)}if(r&&n){const t=I(r.textContent,n.textContent);null!==t?n.textContent=t||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(r){const e=I(r.textContent);null!==e&&(r.textContent=e,r.tag="title",r=void 0)}r&&e.tags.splice(e.tags.indexOf(r),1)}}},J={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)"string"==typeof t.innerHTML&&(!t.innerHTML||"application/ld+json"!==t.props.type&&"application/json"!==t.props.type?t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`):t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"))}}};let Z;function ee(e={}){const t=ne(e);return t.use(function(e){return t=>{const n=t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;
2return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":t=>{L(t,e)}}}}}()),Z=t}function te(e,t){return!e||"server"===e&&t||"client"===e&&!t}function ne(e={}){const t=new B;t.addHooks(e.hooks||{}),e.document=e.document||(l?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,i=[];const s=[],a={plugins:s,dirty:!1,resolvedOptions:e,hooks:t,headEntries:()=>i,use(e){const r="function"==typeof e?e(a):e;r.key&&s.some(e=>e.key===r.key)||(s.push(r),te(r.mode,n)&&t.addHooks(r.hooks||{}))},push(e,t){delete t?.head;const s={_i:o++,input:e,...t};return te(s.mode,n)&&(i.push(s),r()),{dispose(){i=i.filter(e=>e._i!==s._i),r()},patch(e){for(const t of i)t._i===s._i&&(t.input=s.input=e);r()}}},async resolveTags(){const e={tags:[],entries:[...i]};await t.callHook("entries:resolve",e);for(const n of e.entries){const r=n.resolvedInput||n.input;if(n.resolvedInput=await(n.transform?n.transform(r):r),n.resolvedInput)for(const r of await w(n)){const o={tag:r,entry:n,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",o),e.tags.push(o.tag)}}return await t.callHook("tags:beforeResolve",e),await t.callHook("tags:resolve",e),await t.callHook("tags:afterResolve",e),e.tags},ssr:n};return[H,X,z,G,V,Y,Q,J,...e?.plugins||[]].forEach(e=>a.use(e)),a.hooks.callHook("init",a),a}function re(){return Z}const oe=Symbol("ScriptProxyTarget");function ie(){}ie[oe]=!0;var se=n(20641),ae=n(50953);const le="3"===se.rE[0];function ce(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t="function"==typeof(n=e)?n():(0,ae.R1)(n);var n;if(!e||!t)return t;if(Array.isArray(t))return t.map(e=>ce(e));if("object"==typeof t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&("titleTemplate"===n||"o"===n[0]&&"n"===n[1]?e[n]=(0,ae.R1)(t[n]):e[n]=ce(t[n]));return e}return t}const ue={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=ce(t.input)}}},de="usehead";function pe(e){return{install(t){le&&(t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(de,e))}}.install}function fe(e={}){e.domDelayFn=e.domDelayFn||(e=>(0,se.dY)(()=>setTimeout(()=>e(),0)));const t=ee(e);return t.use(ue),t.install=pe(t),t}const he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},me="__unhead_injection_handler__";function ve(){if(me in he)return he[me]();const e=(0,se.WQ)(de);return e||re()}},71083(e,t,n){"use strict";n.d(t,{A:()=>kt});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>he,hasStandardBrowserEnv:()=>ve,hasStandardBrowserWebWorkerEnv:()=>ge,navigator:()=>me,origin:()=>ye});var i=n(65606);const{toString:s}=Object.prototype,{getPrototypeOf:a}=Object,{iterator:l,toStringTag:c}=Symbol,u=(d=Object.create(null),e=>{const t=s.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const p=e=>(e=e.toLowerCase(),t=>u(t)===e),f=e=>t=>typeof t===e,{isArray:h}=Array,m=f("undefined");function v(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=p("ArrayBuffer");const y=f("string"),b=f("function"),w=f("number"),S=e=>null!==e&&"object"==typeof e,k=e=>{if("object"!==u(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||c in e||l in e)},_=p("Date"),O=p("File"),C=p("Blob"),T=p("FileList");const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},E=void 0!==A.FormData?A.FormData:void 0,x=p("URLSearchParams"),[P,I,L,j]=["ReadableStream","Request","Response","Headers"].map(p);function M(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),h(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(v(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function D(e,t){if(v(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,N=e=>!m(e)&&e!==R;const F=(B="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>B&&e instanceof B);var B;const U=p("HTMLFormElement"),H=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$=p("RegExp"),z=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const W=p("AsyncFunction"),G=(X="function"==typeof setImmediate,V=b(R.postMessage),X?setImmediate:V?(K=`axios@${Math.random()}`,q=[],R.addEventListener("message",({source:e,data:t})=>{e===R&&t===K&&q.length&&q.shift()()},!1),e=>{q.push(e),R.postMessage(K,"*")}):e=>setTimeout(e));var X,V,K,q;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):void 0!==i&&i.nextTick||G,Q={isArray:h,isArrayBuffer:g,isBuffer:v,isFormData:e=>{let t;return e&&(E&&e instanceof E||b(e.append)&&("formdata"===(t=u(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:y,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:k,isEmptyObject:e=>{if(!S(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:P,isRequest:I,isResponse:L,isHeaders:j,isUndefined:m,isDate:_,isFile:O,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:C,isRegExp:$,isFunction:b,isStream:e=>S(e)&&b(e.pipe),isURLSearchParams:x,isTypedArray:F,isFileList:T,forEach:M,merge:function e(){const{caseless:t,skipUndefined:n}=N(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=t&&D(r,i)||i;k(r[s])&&k(o)?r[s]=e(r[s],o):k(o)?r[s]=e({},o):h(o)?r[s]=o.slice():n&&m(o)||(r[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&M(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(M(t,(t,r)=>{n&&b(t)?Object.defineProperty(e,r,{value:o(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,
vendor: 5,788 bytes, line 2
2configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:p,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!w(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[l]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:U,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:z,freezeMethods:e=>{z(e,(t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];b(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:D,global:R,isContextDefined:N,isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[c]&&e[l])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(S(e)){if(t.indexOf(e)>=0)return;if(v(e))return e;if(!("toJSON"in e)){t[r]=e;const o=h(e)?[]:{};return M(e,(e,t)=>{const i=n(e,r+1);!m(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:W,isThenable:e=>e&&(S(e)||b(e))&&b(e.then)&&b(e.catch),setImmediate:G,asap:Y,isIterable:e=>null!=e&&b(e[l])};class J extends Error{static from(e,t,n,r,o,i){const s=new J(e.message,t||e.code,n,r,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}}J.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",J.ERR_BAD_OPTION="ERR_BAD_OPTION",J.ECONNABORTED="ECONNABORTED",J.ETIMEDOUT="ETIMEDOUT",J.ERR_NETWORK="ERR_NETWORK",J.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",J.ERR_DEPRECATED="ERR_DEPRECATED",J.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",J.ERR_BAD_REQUEST="ERR_BAD_REQUEST",J.ERR_CANCELED="ERR_CANCELED",J.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",J.ERR_INVALID_URL="ERR_INVALID_URL";const Z=J;function ee(e){return Q.isPlainObject(e)||Q.isArray(e)}function te(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function ne(e,t,n){return e?e.concat(t).map(function(e,t){return e=te(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const re=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});const oe=function(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Q.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Q.isDate(e))return e.toISOString();if(Q.isBoolean(e))return e.toString();if(!a&&Q.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(e)||Q.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(Q.isReactNative(t)&&Q.isReactNativeBlob(e))return t.append(ne(o,n,i),l(e)),!1;if(e&&!o&&"object"==typeof e)if(Q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q.isArray(e)&&function(e){return Q.isArray(e)&&!e.some(ee)}(e)||(Q.isFileList(e)||Q.endsWith(n,"[]"))&&(a=Q.toArray(e)))return n=te(n),a.forEach(function(e,r){!Q.isUndefined(e)&&null!==e&&t.append(!0===s?ne([n],r,i):null===s?n:n+"[]",l(e))}),!1;return!!ee(e)||(t.append(ne(o,n,i),l(e)),!1)}const u=[],d=Object.assign(re,{defaultVisitor:c,convertValue:l,isVisitable:ee});if(!Q.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Q.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Q.forEach(n,function(n,i){!0===(!(Q.isUndefined(n)||null===n)&&o.call(t,n,Q.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t};function ie(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function se(e,t){this._pairs=[],e&&oe(e,this,t)}const ae=se.prototype;ae.append=function(e,t){this._pairs.push([e,t])},ae.toString=function(e){const t=e?function(t){return e.call(this,t,ie)}:ie;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const le=se;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ue(e,t,n){if(!t)return e;const r=n&&n.encode||ce,o=Q.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let s;if(s=i?i(t,o):Q.isURLSearchParams(t)?t.toString():new le(t,o).toString(r),s){const t=e.indexOf("#");
vendor: 17,559 bytes, line 2
2-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const de=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,function(t){null!==t&&e(t)})}},pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},fe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:le,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},he="undefined"!=typeof window&&"undefined"!=typeof document,me="object"==typeof navigator&&navigator||void 0,ve=he&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),ge="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ye=he&&window.location.href||"http://localhost",be={...r,...fe};const we=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&Q.isArray(r)?r.length:i,a)return Q.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&Q.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Q.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(e,r)=>{t(function(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const Se={transitional:pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Q.isObject(e);o&&Q.isHTMLForm(e)&&(e=new FormData(e));if(Q.isFormData(e))return r?JSON.stringify(we(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return oe(e,new be.classes.URLSearchParams,{visitor:function(e,t,n,r){return be.isNode&&Q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return oe(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Se.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Z.from(e,Z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Se.headers[e]={}});const ke=Se,_e=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Ce(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:Q.isArray(e)?e.map(Te):String(e)}function Ae(e,t,n,r,o){return Q.isFunction(r)?r.call(this,t,n):(o&&(t=n),Q.isString(t)?Q.isString(r)?-1!==t.indexOf(r):Q.isRegExp(r)?r.test(t):void 0:void 0)}class Ee{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ce(t);if(!o)throw new Error("header name must be a non-empty string");const i=Q.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Te(e))}const i=(e,t)=>Q.forEach(e,(e,n)=>o(e,n,t));if(Q.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&_e[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(Q.isObject(e)&&Q.isIterable(e)){let n,r,o={};for(const t of e){if(!Q.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Q.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ce(e)){const n=Q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ce(e)){const n=Q.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ce(e)){const o=Q.findKey(n,e);!o||t&&!Ae(0,n[o],o,t)||(delete n[o],r=!0)}}return Q.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Q.forEach(this,(r,o)=>{const i=Q.findKey(n,o);if(i)return t[i]=Te(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();s!==o&&delete t[o],t[s]=Te(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Q.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Q.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ce(e);t[r]||(!function(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}}Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Ee.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Q.freezeMethods(Ee);const xe=Ee;function Pe(e,t){const n=this||ke,r=t||n,o=xe.from(r.headers);let i=r.data;return Q.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ie(e){return!(!e||!e.__CANCEL__)}const Le=class extends Z{constructor(e,t,n){super(null==e?"canceled":e,Z.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function je(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Me=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];o||(o=l),n[i]=a,r[i]=l;let u=s,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}};const De=function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},i-a)))},()=>n&&s(n)]},Re=(e,t,n=3)=>{let r=0;const o=Me(50,250);return De(n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,l=o(a);r=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},Ne=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Fe=e=>(...t)=>Q.asap(()=>e(...t)),Be=be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,Ue=be.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Q.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),Q.isString(r)&&a.push(`path=${r}`),Q.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),Q.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function He(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const $e=e=>e instanceof xe?{...e}:e;function ze(e,t){t=t||{};const n={};function r(e,t,n,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function o(e,t,n,o){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function s(e,t){return Q.isUndefined(t)?Q.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o($e(e),$e(t),0,!0)};return Q.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=Q.hasOwnProp(l,r)?l[r]:o,s=i(e[r],t[r],r);Q.isUndefined(s)&&i!==a||(n[r]=s)}),n}const We=e=>{const t=ze({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=xe.from(s),t.url=ue(He(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),Q.isFormData(n))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Q.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(be.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||!1!==r&&Be(t.url))){const e=o&&i&&Ue.read(i);e&&s.set(o,e)}return t},Ge="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=We(e);let o=r.data;const i=xe.from(r.headers).normalize();let s,a,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=xe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());je(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new Z("Request aborted",Z.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Z(r,Z.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,o.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Q.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Q.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,u]=Re(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,c]=Re(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Le(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===be.protocols.indexOf(g)?n(new Z("Unsupported protocol "+g+":",Z.ERR_BAD_REQUEST,e)):m.send(o||null)})},Xe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Z?t:new Le(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=r;return a.unsubscribe=()=>Q.asap(s),a}},Ve=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ke=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qe=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ke(e))yield*Ve(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Ye}=Q,Qe=(({Request:e,Response:t})=>({Request:e,Response:t}))(Q.global),{ReadableStream:Je,TextEncoder:Ze}=Q.global,et=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tt=e=>{e=Q.merge.call({skipUndefined:!0},Qe,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ye(t):"function"==typeof fetch,i=Ye(n),s=Ye(r);if(!o)return!1;const a=o&&Ye(Je),l=o&&("function"==typeof Ze?(c=new Ze,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=i&&a&&et(()=>{let e=!1;const t=new n(be.origin,{body:new Je,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&a&&et(()=>Q.isReadableStream(new r("").body)),p={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=Q.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e)){const t=new n(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Q.isArrayBufferView(e)||Q.isArrayBuffer(e)?e.byteLength:(Q.isURLSearchParams(e)&&(e+=""),Q.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:s,data:a,signal:l,cancelToken:c,timeout:h,onDownloadProgress:m,onUploadProgress:v,responseType:g,headers:y,withCredentials:b="same-origin",fetchOptions:w}=We(e),S=t||fetch;g=g?(g+"").toLowerCase():"text";let k=Xe([l,c&&c.toAbortSignal()],h),_=null;const O=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let C;try{if(v&&u&&"get"!==s&&"head"!==s&&0!==(C=await f(y,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(Q.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Ne(C,Re(Fe(v)));a=qe(t.body,65536,e,n)}}Q.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:k,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};_=i&&new n(o,l);let c=await(i?S(_,w):S(o,l));const h=d&&("stream"===g||"response"===g);
vendor: 4,170 bytes, line 2
2if(d&&(m||h&&O)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=c[t]});const t=Q.toFiniteNumber(c.headers.get("content-length")),[n,o]=m&&Ne(t,Re(Fe(m),!0))||[];c=new r(qe(c.body,65536,n,()=>{o&&o(),O&&O()}),e)}g=g||"text";let T=await p[Q.findKey(p,g)||"text"](c,e);return!h&&O&&O(),await new Promise((t,n)=>{je(t,n,{data:T,headers:xe.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:_})})}catch(t){if(O&&O(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,_,t&&t.response),{cause:t.cause||t});throw Z.from(t,t&&t.code,e,_,t&&t.response)}}},nt=new Map,rt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s,a,l=i.length,c=nt;for(;l--;)s=i[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:tt(t)),c=a;return a},ot=(rt(),{http:null,xhr:Ge,fetch:{get:rt}});Q.forEach(ot,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const it=e=>`- ${e}`,st=e=>Q.isFunction(e)||null===e||!1===e;const at={getAdapter:function(e,t){e=Q.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){let n;if(r=e[s],o=r,!st(r)&&(o=ot[(n=String(r)).toLowerCase()],void 0===o))throw new Z(`Unknown adapter '${n}'`);if(o&&(Q.isFunction(o)||(o=o.get(t))))break;i[n||"#"+s]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(it).join("\n"):" "+it(e[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:ot};function lt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Le(null,e)}function ct(e){lt(e),e.headers=xe.from(e.headers),e.data=Pe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return at.getAdapter(e.adapter||ke.adapter,e)(e).then(function(t){return lt(e),t.data=Pe.call(e,e.transformResponse,t),t.headers=xe.from(t.headers),t},function(t){return Ie(t)||(lt(e),t&&t.response&&(t.response.data=Pe.call(e,e.transformResponse,t.response),t.response.headers=xe.from(t.response.headers))),Promise.reject(t)})}const ut="1.13.6",dt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const pt={};dt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ut+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Z(r(o," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},dt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ft={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new Z("option "+i+" must be "+n,Z.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Z("Unknown option "+i,Z.ERR_BAD_OPTION)}},validators:dt},ht=ft.validators;class mt{constructor(e){this.defaults=e||{},this.interceptors={request:new de,response:new de}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ze(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ft.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean),legacyInterceptorReqResOrdering:ht.transitional(ht.boolean)}
vendor: 2,988 bytes, line 2
2,!1),null!=r&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:ft.assertOptions(r,{encode:ht.function,serialize:ht.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ft.assertOptions(t,{baseUrl:ht.spelling("baseURL"),withXsrfToken:ht.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Q.merge(o.common,o[t.method]);o&&Q.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=xe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||pe;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!a){const e=[ct.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let p=t;for(;d<u;){const e=s[d++],t=s[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=ct.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return ue(He((e=ze(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(e){mt.prototype[e]=function(t,n){return this.request(ze(n||{},{method:e,url:t,data:(n||{}).data}))}}),Q.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(ze(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}mt.prototype[e]=t(),mt.prototype[e+"Form"]=t(!0)});const vt=mt;class gt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Le(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gt(function(t){e=t}),cancel:e}}}const yt=gt;const bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(bt).forEach(([e,t])=>{bt[t]=e});const wt=bt;const St=function e(t){const n=new vt(t),r=o(vt.prototype.request,n);return Q.extend(r,vt.prototype,n,{allOwnKeys:!0}),Q.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ze(t,n))},r}(ke);St.Axios=vt,St.CanceledError=Le,St.CancelToken=yt,St.isCancel=Ie,St.VERSION=ut,St.toFormData=oe,St.AxiosError=Z,St.Cancel=St.CanceledError,St.all=function(e){return Promise.all(e)},St.spread=function(e){return function(t){return e.apply(null,t)}},St.isAxiosError=function(e){return Q.isObject(e)&&!0===e.isAxiosError},St.mergeConfig=ze,St.AxiosHeaders=xe,St.formToJSON=e=>we(Q.isHTMLForm(e)?new FormData(e):e),St.getAdapter=at.getAdapter,St.HttpStatusCode=wt,St.default=St;const kt=St},33639(e,t,n){"use strict";n.d(t,{A:()=>ay});var r,o=n(65606);if("undefined"==typeof window){var i={hostname:""};r={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:i,referrer:""},screen:{width:0,height:0},location:i,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else r=window;var s="__mp_targeting",a="__mp_recorder";function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){c(i,r,o,s,a,"next",e)}function a(e){c(i,r,o,s,a,"throw",e)}s(void 0)})}}function d(e,t,n){return d=S()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&y(o,n.prototype),o},d.apply(null,arguments)}function p(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function v(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function g(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function w(e){var t="function"==typeof Map?new Map:void 0;return w=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),y(r,e)},w(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function k(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function O(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
2if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var C,T=Object.defineProperty,A=function(e,t,n){return function(e,t,n){return t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,n)},E=Object.defineProperty,x=function(e,t,n){return function(e,t,n){return t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,n)},P=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(P||{}),I={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},L={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},j={};function M(e){if(j[e])return j[e];var t=globalThis[e],n=t.prototype,r=e in I?I[e]:void 0,o=Boolean(r&&r.every(function(e){var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),i=e in L?L[e]:void 0,s=Boolean(i&&i.every(function(e){var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(o&&s&&!globalThis.Zone)return j[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?j[e]=c:n}catch(e){return n}}var D={};function R(e,t,n){var r,o=e+"."+String(n);if(D[o])return D[o].call(t);var i=M(e),s=null==(r=Object.getOwnPropertyDescriptor(i,n))?void 0:r.get;return s?(D[o]=s,s.call(t)):t[n]}var N={};function F(e,t,n){var r=e+"."+String(n);if(N[r])return N[r].bind(t);var o=M(e)[n];return"function"!=typeof o?t[n]:(N[r]=o,o.bind(t))}var B={childNodes:function(e){return R("Node",e,"childNodes")},parentNode:function(e){return R("Node",e,"parentNode")},parentElement:function(e){return R("Node",e,"parentElement")},textContent:function(e){return R("Node",e,"textContent")},contains:function(e,t){return F("Node",e,"contains")(t)},getRootNode:function(e){return F("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?R("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?R("Element",e,"shadowRoot"):null},querySelector:function(e,t){return R("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return R("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return M("MutationObserver").constructor},patch:function(e,t,n){try{if(!(t in e))return function(){};var r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,function(){e[t]=r}}catch(e){return function(){}}}};function U(e){return e.nodeType===e.ELEMENT_NODE}function H(e){var t=e&&"host"in e&&"mode"in e&&B.host(e)||null;return Boolean(t&&"shadowRoot"in t&&B.shadowRoot(t)===e)}function $(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function z(e){try{var t=e.rules||e.cssRules;if(!t)return null;var n=e.href;!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href);var r=Array.from(t,function(e){return W(e,n)}).join("");return(o=r).includes(" background-clip: text;")&&!o.includes(" -webkit-background-clip: text;")&&(o=o.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),o}catch(e){return null}var o}function W(e,t){if(function(e){return"styleSheet"in e}(e)){var n;try{n=z(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var n=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?n.push("layer"):e.layerName&&n.push("layer("+e.layerName+")"),e.supportsText&&n.push("supports("+e.supportsText+")"),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(t){n=e.cssText}return e.styleSheet.href?te(n,e.styleSheet.href):n}var r,o=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,o=o.replace(r,"$1\\$2")),t?te(o,t):o}var G=function(){function e(){x(this,"idNodeMap",new Map),x(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var n=null==(t=this.getMeta(e))?void 0:t.id;return null!=n?n:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var n=this;void 0===t&&(t=!1);var r=this.getId(e);this.idNodeMap.delete(r),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEac
2h(function(e){return n.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var n=this.getNode(e);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function X(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,o=e.type,i=e.value,s=e.maskInputFn,a=i||"",l=o&&V(o);return(n[r.toLowerCase()]||l&&n[l])&&(a=s?s(a,t):"*".repeat(a.length)),a}function V(e){return e.toLowerCase()}var K="__rrweb_original__";function q(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?V(t):null}function Y(e,t){var n;try{n=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,o=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(r=null==o?void 0:o[1])?r:null}var Q=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,J=/^(?:[a-z+]+:)?\/\//i,Z=/^www\..*/i,ee=/^(data:)([^,]*),(.*)/i;function te(e,t){return(e||"").replace(Q,function(e,n,r,o,i,s){var a,l=r||i||s,c=n||o||"";if(!l)return e;if(J.test(l)||Z.test(l))return"url("+c+l+c+")";if(ee.test(l))return"url("+c+l+c+")";if("/"===l[0])return"url("+c+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+l)+c+")";var u=t.split("/"),d=l.split("/");u.pop();for(var p,f=k(d);!(p=f()).done;){var h=p.value;"."!==h&&(".."===h?u.pop():u.push(h))}return"url("+c+u.join("/")+c+")"})}function ne(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function re(e,t){return function(e,t,n){void 0===n&&(n=!1);var r=Array.from(t.childNodes),o=[],i=0;if(r.length>1&&e&&"string"==typeof e)for(var s=ne(e,n),a=s.length/e.length,l=1;l<r.length;l++)if(r[l].textContent&&"string"==typeof r[l].textContent){for(var c=ne(r[l].textContent,n),u=3;u<c.length&&(c[u].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,u),1));u++);for(;u<c.length;u++){var d=c.substring(0,u),p=s.split(d),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==r[l-1].textContent)f=s.indexOf(d,1);else if(1===p.length){if(d=d.substring(0,d.length-1),(p=s.split(d)).length<=1)return o.push(e),o;u=101}else u===c.length-1&&(f=s.indexOf(d));if(p.length>=2&&u>100){var h=r[l-1].textContent;if(h&&"string"==typeof h){var m=ne(h).length;f=s.indexOf(d,m)}-1===f&&(f=p[0].length)}if(-1!==f){for(var v=Math.floor(f/a);v>0&&v<e.length;){if((i+=1)>50*r.length)return o.push(e),o;var g=ne(e.substring(0,v),n);if(g.length===f){o.push(e.substring(0,v)),e=e.substring(v),s=s.substring(f);break}g.length<f?v+=Math.max(1,Math.floor((f-g.length)/a)):v-=Math.max(1,Math.floor((g.length-f)*a))}break}}}return o.push(e),o}(e,t).join("/* rr_split */")}var oe,ie,se=1,ae=new RegExp("[^a-z0-9-_:]");function le(){return se++}var ce=/^[^ \t\n\r\u000c]+/,ue=/^[, \t\n\r\u000c]+/;var de=new WeakMap;function pe(e,t){return t&&""!==t.trim()?he(e,t):t}function fe(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function he(e,t){var n=de.get(e);if(n||(n=e.createElement("a"),de.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function me(e,t,n,r){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?pe(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}for(var o=[];r(ue),!(n>=t.length);){var i=r(ce);if(","===i.slice(-1))i=pe(e,i.substring(0,i.length-1)),o.push(i);else{var s="";i=pe(e,i);for(var a=!1;;){var l=t.charAt(n);if(""===l){o.push((i+s).trim());break}if(a)")"===l&&(a=!1);else{if(","===l){n+=1,o.push((i+s).trim());break}"("===l&&(a=!0)}s+=l,n+=1}}}return o.join(", ")}(e,r):"style"===n?te(r,he(e)):"object"===t&&"data"===n?pe(e,r):r:pe(e,r):r}function ve(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ge(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&ge(B.parentNode(e),t,n);for(var r=e.classList.length;r--;){var o=e.classList[r];if(t.test(o))return!0}return!!n&&ge(B.parentNode(e),t,n)}function ye(e,t,n,r){var o;
vendor: 14,721 bytes, line 2
2if(U(e)){if(o=e,!B.childNodes(o).length)return!1}else{if(null===B.parentElement(e))return!1;o=B.parentElement(e)}try{if("string"==typeof t){if(r){if(o.closest("."+t))return!0}else if(o.classList.contains(t))return!0}else if(ge(o,t,r))return!0;if(n)if(r){if(o.closest(n))return!0}else if(o.matches(n))return!0}catch(e){}return!1}function be(e,t){var n=t.doc,r=t.mirror,o=t.blockClass,i=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,l=t.maskInputOptions,c=void 0===l?{}:l,u=t.maskTextFn,d=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,h=t.inlineImages,m=t.recordCanvas,g=t.keepIframeSrcFn,y=t.newlyAddedElement,b=void 0!==y&&y,w=t.cssCaptured,S=void 0!==w&&w,k=function(e,t){if(!t.hasNode(e))return;var n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:P.Document,childNodes:[],compatMode:e.compatMode}:{type:P.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:P.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var n,r=t.doc,o=t.blockClass,i=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,l=void 0===a?{}:a,c=t.maskInputFn,u=t.dataURLOptions,d=void 0===u?{}:u,p=t.inlineImages,f=t.recordCanvas,h=t.keepIframeSrcFn,m=t.newlyAddedElement,g=void 0!==m&&m,y=t.rootId,b=function(e,t,n){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var o=e.classList[r];if(t.test(o))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,o,i),w=function(e){if(v(e,HTMLFormElement))return"form";var t=V(e.tagName);return ae.test(t)?"div":t}(e),S={},k=e.attributes.length,_=0;_<k;_++){var O=e.attributes[_];ve(w,O.name,O.value)||(S[O.name]=me(r,w,V(O.name),O.value))}if("link"===w&&s){var C=Array.from(r.styleSheets).find(function(t){return t.href===e.href}),T=null;C&&(T=z(C)),T&&(delete S.rel,delete S.href,S._cssText=T)}if("style"===w&&e.sheet){var A=z(e.sheet);A&&(e.childNodes.length>1&&(A=re(A,e)),S._cssText=A)}if("input"===w||"textarea"===w||"select"===w){var E=e.value,x=e.checked;"radio"!==S.type&&"checkbox"!==S.type&&"submit"!==S.type&&"button"!==S.type&&E?S.value=X({element:e,type:q(e),tagName:w,value:E,maskInputOptions:l,maskInputFn:c}):x&&(S.checked=x)}"option"===w&&(e.selected&&!l.select?S.selected=!0:delete S.selected);"dialog"===w&&e.open&&(S.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===w&&f)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var n=0;n<e.width;n+=50)for(var r=0;r<e.height;r+=50){var o=t.getImageData,i=K in o?o[K]:o;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){var I=e.toDataURL(d.type,d.quality),L=r.createElement("canvas");L.width=e.width,L.height=e.height,I!==L.toDataURL(d.type,d.quality)&&(S.rr_dataURL=I)}if("img"===w&&p){oe||(oe=r.createElement("canvas"),ie=oe.getContext("2d"));var j=e,M=j.currentSrc||j.getAttribute("src")||"<unknown-src>",D=j.crossOrigin,R=function(){j.removeEventListener("load",R);try{oe.width=j.naturalWidth,oe.height=j.naturalHeight,ie.drawImage(j,0,0),S.rr_dataURL=oe.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==j.crossOrigin)return j.crossOrigin="anonymous",void(j.complete&&0!==j.naturalWidth?R():j.addEventListener("load",R));console.warn("Cannot inline img src="+M+"! Error: "+e)}"anonymous"===j.crossOrigin&&(D?S.crossOrigin=D:j.removeAttribute("crossorigin"))};j.complete&&0!==j.naturalWidth?R():j.addEventListener("load",R)}if("audio"===w||"video"===w){var N=S;N.rr_mediaState=e.paused?"paused":"played",N.rr_mediaCurrentTime=e.currentTime,N.rr_mediaPlaybackRate=e.playbackRate,N.rr_mediaMuted=e.muted,N.rr_mediaLoop=e.loop,N.rr_mediaVolume=e.volume}g||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop));if(b){var F=e.getBoundingClientRect(),B=F.width,U=F.height;S={class:S.class,rr_width:B+"px",rr_height:U+"px"}}"iframe"!==w||h(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);try{customElements.get(w)&&(n=!0)}catch(e){}return{type:P.Element,tagName:w,attributes:S,childNodes:[],isSVG:fe(e)||void 0,needBlock:b,rootId:y,isCustom:n}}(e,{doc:n,blockClass:o,blockSelector:i,inlineStylesheet:a,maskInputOptions:c,maskInputFn:d,dataURLOptions:f,inlineImages:h,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:b,rootId:k});case e.TEXT_NODE:return function(e,t){var n=t.needsMask,r=t.maskTextFn,o=t.rootId,i=t.cssCaptured,s=B.parentNode(e),a=s&&s.tagName,l="",c="STYLE"===a||void 0,u="SCRIPT"===a||void 0;u?l="SCRIPT_PLACEHOLDER":i||(l=B.textContent(e),c&&l&&(l=te(l,he(t.doc))));!c&&!u&&l&&n&&(l=r?r(l,B.parentElement(e)):l.replace(/[\S]/g,"*"));return{type:P.Text,textContent:l||"",rootId:o}}(e,{doc:n,needsMask:s,maskTextFn:u,rootId:k,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:P.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:P.Comment,textContent:B.textContent(e)||"",rootId:k};default:return!1}}function we(e){return null==e?"":e.toLowerCase()}function Se(e,t){var n=t.doc,r=t.mirror,o=t.blockClass,i=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,l=t.skipChild,c=void 0!==l&&l,u=t.inlineStylesheet,d=void 0===u||u,p=t.maskInputOptions,f=void 0===p?{}:p,h=t.maskTextFn,m=t.maskInputFn,v=t.slimDOMOptions,g=t.dataURLOptions,y=void 0===g?{}:g,b=t.inlineImages,w=void 0!==b&&b,S=t.recordCanvas,_=void 0!==S&&S,O=t.onSerialize,C=t.onIframeLoad,T=t.iframeLoadTimeout,A=void 0===T?5e3:T,E=t.onStylesheetLoad,x=t.stylesheetLoadTimeout,I=void 0===x?5e3:x,L=t.keepIframeSrcFn,j=void 0===L?function(){return!1}:L,M=t.newlyAddedElement,D=void 0!==M&&M,R=t.cssCaptured,N=void 0!==R&&R,F=t.needsMask,z=t.preserveWhiteSpace,W=void 0===z||z;F||(F=ye(e,s,a,void 0===F));var G,X=be(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,needsMask:F,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:m,dataURLOptions:y,inlineImages:w,recordCanvas:_,keepIframeSrcFn:j,newlyAddedElement:D,cssCaptured:N});if(!X)return console.warn(e,"not serialized"),null;G=r.hasNode(e)?r.getId(e):function(e,t){if(t.comment&&e.type===P.Comment)return!0;if(e.type===P.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Y(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(we(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===we(e.attributes.name)||"icon"===we(e.attributes.rel)||"apple-touch-icon"===we(e.attributes.rel)||"shortcut icon"===we(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&we(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(we(e.attributes.property).match(/^(og|twitter|fb):/)||we(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===we(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===we(e.attributes.name)||"googlebot"===we(e.attributes.name)||"bingbot"===we(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===we(e.attributes.name)||"generator"===we(e.attributes.name)||"framework"===we(e.attributes.name)||"publisher"===we(e.attributes.name)||"progid"===we(e.attributes.name)||we(e.attributes.property).match(/^article:/)||we(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===we(e.attributes.name)||"yandex-verification"===we(e.attributes.name)||"csrf-token"===we(e.attributes.name)||"p:domain_verify"===we(e.attributes.name)||"verify-v1"===we(e.attributes.name)||"verification"===we(e.attributes.name)||"shopify-checkout-api-token"===we(e.attributes.name)))return!0}}return!1}(X,v)||!W&&X.type===P.Text&&!X.textContent.replace(/^\s+|\s+$/gm,"").length?-2:le();var V=Object.assign(X,{id:G});if(r.add(e,V),-2===G)return null;O&&O(e);var K=!c;if(V.type===P.Element){K=K&&!V.needBlock,delete V.needBlock;var q=B.shadowRoot(e);q&&$(q)&&(V.isShadowHost=!0)}if((V.type===P.Document||V.type===P.Element)&&K){v.headWhitespace&&V.type===P.Element&&"head"===V.tagName&&(W=!1);var Q={doc:n,mirror:r,blockClass:o,blockSelector:i,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:m,slimDOMOptions:v,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:j,cssCaptured:!1};if(V.type===P.Element&&"textarea"===V.tagName&&void 0!==V.attributes.value);else{V.type===P.Element&&void 0!==V.attributes._cssText&&"string"==typeof V.attributes._cssText&&(Q.cssCaptured=!0);for(var J,Z=k(Array.from(B.childNodes(e)));!(J=Z()).done;){var ee=Se(J.value,Q);ee&&V.childNodes.push(ee)}}var te=null;if(U(e)&&(te=B.shadowRoot(e)))for(var ne,re=k(Array.from(B.childNodes(te)));!(ne=re()).done;){var oe=Se(ne.value,Q);oe&&($(te)&&(oe.isShadow=!0),V.childNodes.push(oe))}}var ie=B.parentNode(e);return ie&&H(ie)&&$(ie)&&(V.isShadow=!0),V.type===P.Element&&"iframe"===V.tagName&&function(e,t,n){var r=e.contentWindow;if(r){var o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"===o){var s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){i||(t(),i=!0)},n);e.addEventListener("load",function(){clearTimeout(a),i=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&C){var n=Se(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:m,slimDOMOptions:v,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:j});n&&C(e,n)}},A),V.type===P.Element&&"link"===V.tagName&&"string"==typeof V.attributes.rel&&("stylesheet"===V.attributes.rel||"preload"===V.attributes.rel&&"string"==typeof V.attributes.href&&"css"===Y(V.attributes.href))&&function(e,t,n){var r,o=!1;try{r=e.sheet}catch(e){return}if(!r){var i=setTimeout(function(){o||(t(),o=!0)},n);e.addEventListener("load",function(){clearTimeout(i),o=!0,t()})}}(e,function(){if(E){var t=Se(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:h,maskInputFn:m,slimDOMOptions:v,dataURLOptions:y,inlineImages:w,recordCanvas:_,preserveWhiteSpace:W,onSerialize:O,onIframeLoad:C,iframeLoadTimeout:A,onStylesheetLoad:E,stylesheetLoadTimeout:I,keepIframeSrcFn:j});t&&E(e,t)}},I),V}function ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _e(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Oe={exports:{}},Ce=String,Te=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};Oe.exports=Te(),Oe.exports.createColors=Te;var Ae=Oe.exports,Ee=_e(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),xe=Ae,Pe=Ee,Ie=function(e){function t(n,r,o,i,s,a){var l;return(l=e.call(this,n)||this).name="CssSyntaxError",l.reason=n,s&&(l.file=s),i&&(l.source=i),a&&(l.plugin=a),void 0!==r&&void 0!==o&&("number"==typeof r?(l.line=r,l.column=o):(l.line=r.line,l.column=r.column,l.endLine=o.line,l.endColumn=o.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}m(t,e);var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;null==e&&(e=xe.isColorSupported),Pe&&e&&(n=Pe(n));var r,o,i=n.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(e){var c=xe.createColors(!0),u=c.bold,d=c.gray,p=c.red;r=function(e){return u(p(e))},o=function(e){return d(e)}}else r=o=function(e){return e};return i.slice(s,a).map(function(e,n){var i=s+1+n,a=" "+(" "+i).slice(-l)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return r(">")+o(a)+e+"\n "+c+r("^")}return" "+o(a)+e}).join("\n")},n.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error)),Le=Ie;Ie.default=Ie;var je={};je.isClean=Symbol("isClean"),je.my=Symbol("my");var Me={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var De=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}},t.beforeAfter=function(e,t){var n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(n.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.block=function(e,t){var n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;
2r++){var o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},t.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||(n=t),t&&void 0!==(r=e.raws[t]))return r;var o=e.parent;if("before"===n){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return Me[n];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[n])return i.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s,a="raw"+((s=n)[0].toUpperCase()+s.slice(1));return this[a]?r=this[a](i,e):i.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=Me[n]),i.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return(t=n.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Re=De;De.default=De;var Ne=Re;function Fe(e,t){new Ne(t).stringify(e)}var Be=Fe;Fe.default=Fe;var Ue=je.isClean,He=je.my,$e=Le,ze=Re,We=Be;function Ge(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&"proxyCache"!==r){var o=e[r],i=void 0===o?"undefined":b(o);"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:Array.isArray(o)?n[r]=o.map(function(e){return Ge(e,n)}):("object"===i&&null!==o&&(o=Ge(o)),n[r]=o)}return n}var Xe=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ue]=!1,this[He]=!0,e)if("nodes"===t){this.nodes=[];for(var n,r=k(e[t]);!(n=r()).done;){var o=n.value;"function"==typeof o.clone?this.append(o.clone()):this.append(o)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Ge(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,o=n.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:r.column,line:r.line},t)}return new $e(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Ue]){this[Ue]=!1;for(var e=this;e=e.parent;)e[Ue]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);
2else if(e.word){var r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===n[i]?(r=1,o+=1):r+=1;return{column:r,line:o}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var r=this.toString(),o=r.indexOf(e.word);-1!==o&&(t=this.positionInside(o,r),n=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return(new ze).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var r,o=this,i=!1,s=k(t);!(r=s()).done;){var a=r.value;a===this?i=!0:i?(this.parent.insertAfter(o,a),o=a):this.parent.insertBefore(o,a)}i||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=null==t;t=t||new Map;var o=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var s=this[i];if(Array.isArray(s))n[i]=s.map(function(e){return"object"===(void 0===e?"undefined":b(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":b(s))&&s.toJSON)n[i]=s.toJSON(null,t);else if("source"===i){var a=t.get(s.input);null==a&&(a=o,t.set(s.input,o),o++),n[i]={end:s.end,inputId:a,start:s.start}}else n[i]=s}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=We),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},p(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Ve=Xe;Xe.default=Xe;var Ke=function(e){function t(t){var n;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=f({},t,{value:String(t.value)})),(n=e.call(this,t)||this).type="decl",n}return m(t,e),p(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Ve),qe=Ke;Ke.default=Ke;var Ye=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Qe=Ee.SourceMapConsumer,Je=Ee.SourceMapGenerator,Ze=Ee.existsSync,et=Ee.readFileSync,tt=Ee.dirname,nt=Ee.join;var rt=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=tt(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Qe(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":b(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
2if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=tt(e),Ze(e))return this.mapFile=e,et(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(v(t,Qe))return Je.fromSourceMap(t).toString();if(v(t,Je))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw new Error("Unable to load previous source map: "+n.toString());return r}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=nt(tt(e),o)),this.loadFile(o)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),ot=rt;rt.default=rt;var it=Ee.SourceMapConsumer,st=Ee.SourceMapGenerator,at=Ee.fileURLToPath,lt=Ee.pathToFileURL,ct=Ee.isAbsolute,ut=Ee.resolve,dt=Ye,pt=Ee,ft=Le,ht=ot,mt=Symbol("fromOffsetCac
2he"),vt=Boolean(it&&st),gt=Boolean(ut&&ct),yt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":b(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!gt||/^\w+:\/\//.test(t.from)||ct(t.from)?this.file=t.from:this.file=ut(t.from)),gt&&vt){var n=new ht(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+dt(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){var o,i,s;if(void 0===r&&(r={}),t&&"object"===(void 0===t?"undefined":b(t))){var a=t,l=n;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,n=c.col}else t=a.line,n=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);i=u.line,s=u.col}else i=l.line,s=l.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var p=this.origin(t,n,i,s);return(o=p?new ft(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,r.plugin):new ft(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:s,line:i},this.css,this.file,r.plugin)).input={column:n,endColumn:s,endLine:i,line:t,source:this.css},this.file&&(lt&&(o.input.url=lt(this.file).toString()),o.input.file=this.file),o},t.fromOffset=function(e){var t;if(this[mt])t=this[mt];else{var n=this.css.split("\n");t=new Array(n.length);for(var r=0,o=0,i=n.length;o<i;o++)t[o]=r,r+=n[o].length+1;this[mt]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ut(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof n&&(o=s.originalPositionFor({column:r,line:n})),i=ct(a.source)?lt(a.source):new URL(a.source,this.map.consumer().sourceRoot||lt(this.map.mapFile));var l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!at)throw new Error("file: protocol is not available in this PostCSS build");l.file=at(i)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=f({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},p(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),bt=yt;yt.default=yt,pt&&pt.registerInput&&pt.registerInput(yt);var wt=Ee.SourceMapConsumer,St=Ee.SourceMapGenerator,kt=Ee.dirname,_t=Ee.relative,Ot=Ee.resolve,Ct=Ee.sep,Tt=Ee.pathToFileURL,At=bt,Et=Boolean(wt&&St),xt=Boolean(kt&&Ot&&_t&&Ct),Pt=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=k(this.previous());!(e=t()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),o=n.root||kt(n.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new wt(n.text)).sourcesContent&&(i.sourcesContent=null):i=n.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(o)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),xt&&Et&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=St.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new St({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new St({file:this.outputFile(),ignoreInvalidMapping:!0});var t,n,r=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=r,s.generated.column=o-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(r+=t.length,n=a.lastIndexOf("\n"),o=a.length-n):o+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=r,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=o-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?kt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=kt(Ot(n,this.mapOpts.annotation)));var r=_t(n,e);return this.memoizedPaths.set(e,r),r},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new At(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Tt){var n=Tt(e).toString();return this.memoizedFileURLs.set(e,n),n}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Ct&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),It=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="comment",n}return m(t,e),t}(Ve),Lt=It;It.default=It;var jt,Mt,Dt,Rt,Nt=je.isClean,Ft=je.my,Bt=qe,Ut=Lt;
2function Ht(e){return e.map(function(e){return e.nodes&&(e.nodes=Ht(e.nodes)),delete e.source,e})}function $t(e){if(e[Nt]=!1,e.proxyOf.nodes)for(var t,n=k(e.proxyOf.nodes);!(t=n()).done;){$t(t.value)}}var zt=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var n=t.prototype;return n.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,o=k(t);!(r=o()).done;)for(var i,s=r.value,a=k(this.normalize(s,this.last));!(i=a()).done;){var l=i.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n,r=k(this.nodes);!(n=r()).done;){n.value.cleanRaws(t)}},n.each=function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i;return(i=e)[t].apply(i,[].concat(r.map(function(e){return"function"==typeof e?function(t,n){return e(t.toProxy(),n)}:e})))}:"every"===t||"some"===t?function(n){return e[t](function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return n.apply(void 0,[].concat([e.toProxy()],r))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},n.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n,r=this.index(e),o=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i,s=k(o);!(i=s()).done;){var a=i.value;this.proxyOf.nodes.splice(r+1,0,a)}for(var l in this.indexes)r<(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n,r=this.index(e),o=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(var s,a=k(i);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(r,0,l)}for(var c in this.indexes)r<=(n=this.indexes[c])&&(this.indexes[c]=n+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if("string"==typeof e)e=Ht(jt(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var o,i=k(e=e.slice(0));!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=k(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Bt(e)]}else if(e.selector)e=[new Mt(e)];else if(e.name)e=[new Dt(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ut(e)]}var u=e.map(function(e){return e[Ft]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Nt]&&$t(e),void 0===e.raws.before&&n&&void 0!==n.raws.before&&(e.raws.before=n.raws.before.replace(/\S/g,"")),e.parent=r.proxyOf,e});return u},n.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,o=k(t=t.reverse());!(r=o()).done;){for(var i,s=r.value,a=this.normalize(s,this.first,"prepend").reverse(),l=k(a);!(i=l()).done;){var c=i.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e,t=k(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){var t;for(var n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},n.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},n.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))},p(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Ve);zt.registerParse=function(e){jt=e},zt.registerRule=function(e){Mt=e},zt.registerAtRule=function(e){Dt=e},zt.registerRoot=function(e){Rt=e};var Wt=zt;zt.default=zt,zt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Dt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Mt.prototype):"decl"===e.type?Object.setPrototypeOf(e,Bt.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ut.prototype):"root"===e.type&&Object.setPrototypeOf(e,Rt.prototype),e[Ft]=!0,e.nodes&&e.nodes.forEac
2h(function(e){zt.rebuild(e)})};var Gt,Xt,Vt=function(e){function t(t){var n;return(n=e.call(this,f({type:"document"},t))||this).nodes||(n.nodes=[]),n}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Gt(new Xt,this,e).stringify()},t}(Wt);Vt.registerLazyResult=function(e){Gt=e},Vt.registerProcessor=function(e){Xt=e};var Kt=Vt;Vt.default=Vt;var qt=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Yt=qt;qt.default=qt;var Qt=Yt,Jt=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Qt(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},p(e,[{key:"content",get:function(){return this.css}}]),e}(),Zt=Jt;Jt.default=Jt;var en="'".charCodeAt(0),tn='"'.charCodeAt(0),nn="\\".charCodeAt(0),rn="/".charCodeAt(0),on="\n".charCodeAt(0),sn=" ".charCodeAt(0),an="\f".charCodeAt(0),ln="\t".charCodeAt(0),cn="\r".charCodeAt(0),un="[".charCodeAt(0),dn="]".charCodeAt(0),pn="(".charCodeAt(0),fn=")".charCodeAt(0),hn="{".charCodeAt(0),mn="}".charCodeAt(0),vn=";".charCodeAt(0),gn="*".charCodeAt(0),yn=":".charCodeAt(0),bn="@".charCodeAt(0),wn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Sn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,kn=/.[\r\n"'(/\\]/,_n=/[\da-f]/i,On=Wt,Cn=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="atrule",n}m(t,e);var n=t.prototype;return n.append=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=e.prototype.append).call.apply(o,[].concat([this],n))},n.prepend=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=e.prototype.prepend).call.apply(o,[].concat([this],n))},t}(On),Tn=Cn;Cn.default=Cn,On.registerAtRule(Cn);var An,En,xn=Wt,Pn=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="root",n.nodes||(n.nodes=[]),n}m(t,e);var n=t.prototype;return n.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var i,s=k(o);!(i=s()).done;){i.value.raws.before=n.raws.before}return o},n.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return void 0===e&&(e={}),new An(new En,this,e).stringify()},t}(xn);Pn.registerLazyResult=function(e){An=e},Pn.registerProcessor=function(e){En=e};var In=Pn;Pn.default=Pn,xn.registerRoot(Pn);var Ln={comma:function(e){return Ln.split(e,[","],!0)},space:function(e){return Ln.split(e,[" ","\n","\t"])},split:function(e,t,n){for(var r,o=[],i="",s=!1,a=0,l=!1,c="",u=!1,d=k(e);!(r=d()).done;){var p=r.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=p}return(n||""!==i)&&o.push(i.trim()),o}},jn=Ln;Ln.default=Ln;var Mn=Wt,Dn=jn,Rn=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="rule",n.nodes||(n.nodes=[]),n}return m(t,e),p(t,[{key:"selectors",get:function(){return Dn.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(Mn),Nn=Rn;Rn.default=Rn,Mn.registerRule(Rn);var Fn=qe,Bn=function(e,t){void 0===t&&(t={});var n,r,o,i,s,a,l,c,u,d,p=e.css.valueOf(),f=t.ignoreErrors,h=p.length,m=0,v=[],g=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){g.push(e)},endOfFile:function(){return 0===g.length&&m>=h},nextToken:function(e){if(g.length)return g.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;
vendor: 7,019 bytes, line 2
2switch(n=p.charCodeAt(m)){case on:case sn:case ln:case cn:case an:r=m;do{r+=1,n=p.charCodeAt(r)}while(n===sn||n===on||n===ln||n===cn||n===an);d=["space",p.slice(m,r)],m=r-1;break;case un:case dn:case hn:case mn:case yn:case vn:case fn:var b=String.fromCharCode(n);d=[b,b,m];break;case pn:if(c=v.length?v.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==en&&u!==tn&&u!==sn&&u!==on&&u!==ln&&u!==an&&u!==cn){r=m;do{if(a=!1,-1===(r=p.indexOf(")",r+1))){if(f||t){r=m;break}y("bracket")}for(l=r;p.charCodeAt(l-1)===nn;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,r+1),m,r],m=r}else r=p.indexOf(")",m+1),i=p.slice(m,r+1),-1===r||kn.test(i)?d=["(","(",m]:(d=["brackets",i,m,r],m=r);break;case en:case tn:o=n===en?"'":'"',r=m;do{if(a=!1,-1===(r=p.indexOf(o,r+1))){if(f||t){r=m+1;break}y("string")}for(l=r;p.charCodeAt(l-1)===nn;)l-=1,a=!a}while(a);d=["string",p.slice(m,r+1),m,r],m=r;break;case bn:wn.lastIndex=m+1,wn.test(p),r=0===wn.lastIndex?p.length-1:wn.lastIndex-2,d=["at-word",p.slice(m,r+1),m,r],m=r;break;case nn:for(r=m,s=!0;p.charCodeAt(r+1)===nn;)r+=1,s=!s;if(n=p.charCodeAt(r+1),s&&n!==rn&&n!==sn&&n!==on&&n!==ln&&n!==cn&&n!==an&&(r+=1,_n.test(p.charAt(r)))){for(;_n.test(p.charAt(r+1));)r+=1;p.charCodeAt(r+1)===sn&&(r+=1)}d=["word",p.slice(m,r+1),m,r],m=r;break;default:n===rn&&p.charCodeAt(m+1)===gn?(0===(r=p.indexOf("*/",m+2)+1)&&(f||t?r=p.length:y("comment")),d=["comment",p.slice(m,r+1),m,r],m=r):(Sn.lastIndex=m+1,Sn.test(p),r=0===Sn.lastIndex?p.length-1:Sn.lastIndex-2,d=["word",p.slice(m,r+1),m,r],v.push(d),m=r)}return m++,d}},position:function(){return m}}},Un=Lt,Hn=Tn,$n=In,zn=Nn,Wn={empty:!0,space:!0};var Gn=function(){function e(e){this.input=e,this.root=new $n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,n,r,o=new Hn;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(n=a[r=a.length-1];n&&"space"===n[0];)n=a[--r];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&("space"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t,n,r,o,i=0,s=k(e.entries());!(o=s()).done;){var a=o.value,l=a[0];if("("===(n=(t=a[1])[0])&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return l}this.doubleColon(t)}r=t}return!1},t.comment=function(e){var t=new Un;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=Bn(this.input)},t.decl=function(e,t){var n=new Fn;this.init(n,e[0][2]);var r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(r=e[l])[1].toLowerCase()){n.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(n.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var f=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==f)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=u)}if("space"!==r[0]&&"comment"!==r[0])break}var h=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});h&&(n.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new zn;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(n=l[0],a.push(l),"("===n||"["===n)o||(o=l),i.push("("===n?")":"]");else if(s&&r&&"{"===n)o||(o=l),i.push("}");else if(0===i.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}
2if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var o,i,s,a,l=n.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(i=(o=n[d])[0])||d!==l-1||r?"comment"===i?(a=n[d-1]?n[d-1][0]:"empty",s=n[d+1]?n[d+1][0]:"empty",Wn[a]||Wn[s]||","===c.slice(-1)?u=!1:c+=o[1]):c+=o[1]:u=!1;if(!u){var p=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new zn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Xn=Wt,Vn=Gn,Kn=bt;function qn(e,t){var n=new Kn(e,t),r=new Vn(n);try{r.parse()}catch(e){throw e}return r.root}var Yn=qn;qn.default=qn,Xn.registerParse(qn);var Qn=je.isClean,Jn=je.my,Zn=Pt,er=Be,tr=Wt,nr=Kt,rr=Zt,or=Yn,ir=In,sr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ar={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},lr={Once:!0,postcssPlugin:!0,prepare:!0};function cr(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function ur(e){var t=!1,n=sr[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function dr(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ur(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function pr(e){return e[Qn]=!1,e.nodes&&e.nodes.forEach(function(e){return pr(e)}),e}var fr={},hr=function(){function e(t,n,r){var o,i=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===n?"undefined":b(n))||null===n||"root"!==n.type&&"document"!==n.type)if(v(n,e)||v(n,rr))o=pr(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var s=or;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{o=s(n,r)}catch(e){this.processed=!0,this.error=e}o&&!o[Jn]&&tr.rebuild(o)}else o=pr(n);this.result=new rr(t,o,r),this.helpers=f({},fr,{postcss:fr,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":b(e))&&e.prepare?f({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(n.postcssVersion);}else e.plugin=n.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,n=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},r=k(this.plugins);!(t=r()).done;){var o=t.value;if("object"===(void 0===o?"undefined":b(o)))for(var i in o){if(!ar[i]&&/^[A-Z]/.test(i))throw new Error("Unknown event "+i+" in "+o.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
2sion+" now).");if(!lr[i])if("object"===b(o[i]))for(var s in o[i])n(o,"*"===s?i:i+"-"+s.toLowerCase(),o[i][s]);else"function"==typeof o[i]&&n(o,i,o[i])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return u(function(){var t,n,r,o,i,s,a,l,c,u,d,p;return _(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],!cr(r=e.runOnRoot(n)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,r];case 3:return f.sent(),[3,5];case 4:throw o=f.sent(),e.handleError(o);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];i=e.result.root,f.label=7;case 7:if(i[Qn])return[3,14];i[Qn]=!0,s=[dr(i)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!cr(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw l=f.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,o,s;return _(this,function(a){switch(a.label){case 0:t=p.value,n=t[0],r=t[1],e.result.lastPlugin=n,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==i.type?[3,3]:(o=i.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(o)]);case 2:return a.sent(),[3,5];case 3:return[4,r(i,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},d=k(e.listeners.OnceExit),f.label=15;case 15:return(p=d()).done?[3,18]:[5,O(u())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":b(e))&&e.Once){if("document"===this.result.root.type){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return cr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=er;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new Zn(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=k(this.plugins);!(e=t()).done;){var n=e.value;if(cr(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[Qn];)r[Qn]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type)for(var o,i=k(r.nodes);!(o=i()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,r)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var n,r=k(e);!(n=r()).done;){var o=n.value,i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(cr(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(r.length>0&&t.visitorIndex<r.length){var o=r[t.visitorIndex],i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){for(var a,l=t.iterator;a=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!a[Qn])return a[Qn]=!0,void e.push(dr(a));t.iterator=0,delete n.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(n.nodes&&n.nodes.length&&(n[Qn]=!0,t.iterator=n.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Qn]=!0;for(var n,r=k(ur(e));!(n=r()).done;){var o=n.value;if(0===o)e.nodes&&e.each(function(e){e[Qn]||t.walkSync(e)});else{var i=this.listeners[o];if(i&&this.visitSync(i,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
2,p(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();hr.registerPostcss=function(e){fr=e};var mr=hr;hr.default=hr,ir.registerLazyResult(hr),nr.registerLazyResult(hr);var vr=Pt,gr=Be,yr=Yn,br=Zt,wr=function(){function e(e,t,n){var r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var o=gr;this.result=new br(this._processor,r,this._opts),this.result.css=t;var i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var s=new vr(o,r,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},p(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=yr;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Sr=wr;wr.default=wr;var kr=Sr,_r=mr,Or=Kt,Cr=In,Tr=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,n=[],r=k(e);!(t=r()).done;){var o=t.value;if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"===(void 0===o?"undefined":b(o))&&Array.isArray(o.plugins))n=n.concat(o.plugins);else if("object"===(void 0===o?"undefined":b(o))&&o.postcssPlugin)n.push(o);else if("function"==typeof o)n.push(o);else{if("object"!==(void 0===o?"undefined":b(o))||!o.parse&&!o.str
2ingify)throw new Error(o+" is not a PostCSS plugin")}}return n},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new _r(this,e,t):new kr(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Ar=Tr;Tr.default=Tr,Cr.registerProcessor(Tr),Or.registerProcessor(Tr);var Er=qe,xr=ot,Pr=Lt,Ir=Tn,Lr=bt,jr=In,Mr=Nn;function Dr(e,t){if(Array.isArray(e))return e.map(function(e){return Dr(e)});var n=e.inputs,r=g(e,["inputs"]);if(n){t=[];for(var o,i=k(n);!(o=i()).done;){var s=f({},o.value,{__proto__:Lr.prototype});s.map&&(s.map=f({},s.map,{__proto__:xr.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(e){return Dr(e,t)})),r.source){var a=r.source,l=a.inputId,c=g(a,["inputId"]);r.source=c,null!=l&&(r.source.input=t[l])}if("root"===r.type)return new jr(r);if("decl"===r.type)return new Er(r);if("rule"===r.type)return new Mr(r);if("comment"===r.type)return new Pr(r);if("atrule"===r.type)return new Ir(r);throw new Error("Unknown node type: "+e.type)}var Rr=Dr;Dr.default=Dr;var Nr=Le,Fr=qe,Br=mr,Ur=Wt,Hr=Ar,$r=Be,zr=Rr,Wr=Kt,Gr=Yt,Xr=Lt,Vr=Tn,Kr=Zt,qr=bt,Yr=Yn,Qr=jn,Jr=Nn,Zr=In,eo=Ve;function to(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Hr(t)}to.plugin=function(e,t){var n,r=!1;function i(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),o.env.LANG&&o.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var a=t.apply(void 0,[].concat(i));return a.postcssPlugin=e,a.postcssVersion=(new Hr).version,a}return Object.defineProperty(i,"postcss",{get:function(){return n||(n=i()),n}}),i.process=function(e,t,n){return to([i(n)]).process(e,t)},i},to.stringify=$r,to.parse=Yr,to.fromJSON=zr,to.list=Qr,to.comment=function(e){return new Xr(e)},to.atRule=function(e){return new Vr(e)},to.decl=function(e){return new Fr(e)},to.rule=function(e){return new Jr(e)},to.root=function(e){return new Zr(e)},to.document=function(e){return new Wr(e)},to.CssSyntaxError=Nr,to.Declaration=Fr,to.Container=Ur,to.Processor=Hr,to.Document=Wr,to.Comment=Xr,to.Warning=Gr,to.AtRule=Vr,to.Result=Kr,to.Input=qr,to.Rule=Jr,to.Root=Zr,to.Node=eo,Br.registerPostcss(to);var no=to;to.default=to;var ro=ke(no);ro.stringify,ro.fromJSON,ro.plugin,ro.parse,ro.list,ro.document,ro.comment,ro.atRule,ro.rule,ro.decl,ro.root,ro.CssSyntaxError,ro.Declaration,ro.Container,ro.Processor,ro.Document,ro.Comment,ro.Warning,ro.AtRule,ro.Result,ro.Input,ro.Rule,ro.Root,ro.Node;var oo=Object.defineProperty,io=function(e,t,n){return function(e,t,n){return t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,n)};function so(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ao(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var lo={exports:{}},co=String,uo=function(){return{isColorSupported:!1,reset:co,bold:co,dim:co,italic:co,underline:co,inverse:co,hidden:co,strikethrough:co,black:co,red:co,green:co,yellow:co,blue:co,magenta:co,cyan:co,white:co,gray:co,bgBlack:co,bgRed:co,bgGreen:co,bgYellow:co,bgBlue:co,bgMagenta:co,bgCyan:co,bgWhite:co}};lo.exports=uo(),lo.exports.createColors=uo;var po=lo.exports,fo=ao(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),ho=po,mo=fo,vo=function(e){function t(n,r,o,i,s,a){var l;return(l=e.call(this,n)||this).name="CssSyntaxError",l.reason=n,s&&(l.file=s),i&&(l.source=i),a&&(l.plugin=a),void 0!==r&&void 0!==o&&("number"==typeof r?(l.line=r,l.column=o):(l.line=r.line,l.column=r.column,l.endLine=o.line,l.endColumn=o.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}m(t,e);var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;null==e&&(e=ho.isColorSupported),mo&&e&&(n=mo(n));var r,o,i=n.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(e){var c=ho.createColors(!0),u=c.bold,d=c.gray,p=c.red;r=function(e){return u(p(e))},o=function(e){return d(e)}}else r=o=function(e){return e};return i.slice(s,a).map(function(e,n){var i=s+1+n,a=" "+(" "+i).slice(-l)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return r(">")+o(a)+e+"\n "+c+r("^")}return" "+o(a)+e}).join("\n")},n.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error)),go=vo;vo.default=vo;var yo={};yo.isClean=Symbol("isClean"),yo.my=Symbol("my");var bo={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var wo=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}},t.beforeAfter=function(e,t){var n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(n.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.block=function(e,t){var n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;
2r++){var o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},t.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||(n=t),t&&void 0!==(r=e.raws[t]))return r;var o=e.parent;if("before"===n){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return bo[n];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[n])return i.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s,a="raw"+((s=n)[0].toUpperCase()+s.slice(1));return this[a]?r=this[a](i,e):i.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=bo[n]),i.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return(t=n.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),So=wo;wo.default=wo;var ko=So;function _o(e,t){new ko(t).stringify(e)}var Oo=_o;_o.default=_o;var Co=yo.isClean,To=yo.my,Ao=go,Eo=So,xo=Oo;function Po(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&"proxyCache"!==r){var o=e[r],i=void 0===o?"undefined":b(o);"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:Array.isArray(o)?n[r]=o.map(function(e){return Po(e,n)}):("object"===i&&null!==o&&(o=Po(o)),n[r]=o)}return n}var Io=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Co]=!1,this[To]=!0,e)if("nodes"===t){this.nodes=[];for(var n,r=k(e[t]);!(n=r()).done;){var o=n.value;"function"==typeof o.clone?this.append(o.clone()):this.append(o)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Po(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,o=n.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:r.column,line:r.line},t)}return new Ao(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Co]){this[Co]=!1;for(var e=this;e=e.parent;)e[Co]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);
2else if(e.word){var r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===n[i]?(r=1,o+=1):r+=1;return{column:r,line:o}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var r=this.toString(),o=r.indexOf(e.word);-1!==o&&(t=this.positionInside(o,r),n=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return(new Eo).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var r,o=this,i=!1,s=k(t);!(r=s()).done;){var a=r.value;a===this?i=!0:i?(this.parent.insertAfter(o,a),o=a):this.parent.insertBefore(o,a)}i||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=null==t;t=t||new Map;var o=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var s=this[i];if(Array.isArray(s))n[i]=s.map(function(e){return"object"===(void 0===e?"undefined":b(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":b(s))&&s.toJSON)n[i]=s.toJSON(null,t);else if("source"===i){var a=t.get(s.input);null==a&&(a=o,t.set(s.input,o),o++),n[i]={end:s.end,inputId:a,start:s.start}}else n[i]=s}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=xo),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},p(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Lo=Io;Io.default=Io;var jo=function(e){function t(t){var n;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=f({},t,{value:String(t.value)})),(n=e.call(this,t)||this).type="decl",n}return m(t,e),p(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Lo),Mo=jo;jo.default=jo;var Do=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Ro=fo.SourceMapConsumer,No=fo.SourceMapGenerator,Fo=fo.existsSync,Bo=fo.readFileSync,Uo=fo.dirname,Ho=fo.join;var $o=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Uo(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Ro(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":b(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
2if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=Uo(e),Fo(e))return this.mapFile=e,Bo(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(v(t,Ro))return No.fromSourceMap(t).toString();if(v(t,No))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw new Error("Unable to load previous source map: "+n.toString());return r}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=Ho(Uo(e),o)),this.loadFile(o)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),zo=$o;$o.default=$o;var Wo=fo.SourceMapConsumer,Go=fo.SourceMapGenerator,Xo=fo.fileURLToPath,Vo=fo.pathToFileURL,Ko=fo.isAbsolute,qo=fo.resolve,Yo=Do,Qo=fo,Jo=go,Zo=zo,ei=Symbol("fromOffsetCac
2he"),ti=Boolean(Wo&&Go),ni=Boolean(qo&&Ko),ri=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":b(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ni||/^\w+:\/\//.test(t.from)||Ko(t.from)?this.file=t.from:this.file=qo(t.from)),ni&&ti){var n=new Zo(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+Yo(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){var o,i,s;if(void 0===r&&(r={}),t&&"object"===(void 0===t?"undefined":b(t))){var a=t,l=n;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,n=c.col}else t=a.line,n=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);i=u.line,s=u.col}else i=l.line,s=l.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var p=this.origin(t,n,i,s);return(o=p?new Jo(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,r.plugin):new Jo(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:s,line:i},this.css,this.file,r.plugin)).input={column:n,endColumn:s,endLine:i,line:t,source:this.css},this.file&&(Vo&&(o.input.url=Vo(this.file).toString()),o.input.file=this.file),o},t.fromOffset=function(e){var t;if(this[ei])t=this[ei];else{var n=this.css.split("\n");t=new Array(n.length);for(var r=0,o=0,i=n.length;o<i;o++)t[o]=r,r+=n[o].length+1;this[ei]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:qo(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof n&&(o=s.originalPositionFor({column:r,line:n})),i=Ko(a.source)?Vo(a.source):new URL(a.source,this.map.consumer().sourceRoot||Vo(this.map.mapFile));var l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Xo)throw new Error("file: protocol is not available in this PostCSS build");l.file=Xo(i)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=f({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},p(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),oi=ri;ri.default=ri,Qo&&Qo.registerInput&&Qo.registerInput(ri);var ii=fo.SourceMapConsumer,si=fo.SourceMapGenerator,ai=fo.dirname,li=fo.relative,ci=fo.resolve,ui=fo.sep,di=fo.pathToFileURL,pi=oi,fi=Boolean(ii&&si),hi=Boolean(ai&&ci&&li&&ui),mi=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=k(this.previous());!(e=t()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),o=n.root||ai(n.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new ii(n.text)).sourcesContent&&(i.sourcesContent=null):i=n.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(o)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),hi&&fi&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=si.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new si({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new si({file:this.outputFile(),ignoreInvalidMapping:!0});var t,n,r=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=r,s.generated.column=o-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(r+=t.length,n=a.lastIndexOf("\n"),o=a.length-n):o+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=r,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=o-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?ai(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=ai(ci(n,this.mapOpts.annotation)));var r=li(n,e);return this.memoizedPaths.set(e,r),r},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new pi(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(di){var n=di(e).toString();return this.memoizedFileURLs.set(e,n),n}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;
2"\\"===ui&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),vi=mi,gi=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="comment",n}return m(t,e),t}(Lo),yi=gi;gi.default=gi;var bi,wi,Si,ki,_i=yo.isClean,Oi=yo.my,Ci=Mo,Ti=yi;function Ai(e){return e.map(function(e){return e.nodes&&(e.nodes=Ai(e.nodes)),delete e.source,e})}function Ei(e){if(e[_i]=!1,e.proxyOf.nodes)for(var t,n=k(e.proxyOf.nodes);!(t=n()).done;){Ei(t.value)}}var xi=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var n=t.prototype;return n.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,o=k(t);!(r=o()).done;)for(var i,s=r.value,a=k(this.normalize(s,this.last));!(i=a()).done;){var l=i.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n,r=k(this.nodes);!(n=r()).done;){n.value.cleanRaws(t)}},n.each=function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i;return(i=e)[t].apply(i,[].concat(r.map(function(e){return"function"==typeof e?function(t,n){return e(t.toProxy(),n)}:e})))}:"every"===t||"some"===t?function(n){return e[t](function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return n.apply(void 0,[].concat([e.toProxy()],r))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},n.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n,r=this.index(e),o=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i,s=k(o);!(i=s()).done;){var a=i.value;this.proxyOf.nodes.splice(r+1,0,a)}for(var l in this.indexes)r<(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n,r=this.index(e),o=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(var s,a=k(i);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(r,0,l)}for(var c in this.indexes)r<=(n=this.indexes[c])&&(this.indexes[c]=n+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if("string"==typeof e)e=Ai(bi(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var o,i=k(e=e.slice(0));!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=k(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Ci(e)]}else if(e.selector)e=[new wi(e)];else if(e.name)e=[new Si(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ti(e)]}var u=e.map(function(e){return e[Oi]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[_i]&&Ei(e),void 0===e.raws.before&&n&&void 0!==n.raws.before&&(e.raws.before=n.raws.before.replace(/\S/g,"")),e.parent=r.proxyOf,e});return u},n.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,o=k(t=t.reverse());!(r=o()).done;
2){for(var i,s=r.value,a=this.normalize(s,this.first,"prepend").reverse(),l=k(a);!(i=l()).done;){var c=i.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e,t=k(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){var t;for(var n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},n.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},n.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))},p(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Lo);xi.registerParse=function(e){bi=e},xi.registerRule=function(e){wi=e},xi.registerAtRule=function(e){Si=e},xi.registerRoot=function(e){ki=e};var Pi=xi;xi.default=xi,xi.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Si.prototype):"rule"===e.type?Object.setPrototypeOf(e,wi.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ci.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ti.prototype):"root"===e.type&&Object.setPrototypeOf(e,ki.prototype),e[Oi]=!0,e.nodes&&e.nodes.forEach(function(e){xi.rebuild(e)})};var Ii,Li,ji=function(e){function t(t){var n;return(n=e.call(this,f({type:"document"},t))||this).nodes||(n.nodes=[]),n}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Ii(new Li,this,e).stringify()},t}(Pi);ji.registerLazyResult=function(e){Ii=e},ji.registerProcessor=function(e){Li=e};var Mi=ji;ji.default=ji;var Di=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Ri=Di;Di.default=Di;var Ni=Ri,Fi=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Ni(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},p(e,[{key:"content",get:function(){return this.css}}]),e}(),Bi=Fi;Fi.default=Fi;var Ui="'".charCodeAt(0),Hi='"'.charCodeAt(0),$i="\\".charCodeAt(0),zi="/".charCodeAt(0),Wi="\n".charCodeAt(0),Gi=" ".charCodeAt(0),Xi="\f".charCodeAt(0),Vi="\t".charCodeAt(0),Ki="\r".charCodeAt(0),qi="[".charCodeAt(0),Yi="]".charCodeAt(0),Qi="(".charCodeAt(0),Ji=")".charCodeAt(0),Zi="{".charCodeAt(0),es="}".charCodeAt(0),ts=";".charCodeAt(0),ns="*".charCodeAt(0),rs=":".charCodeAt(0),os="@".charCodeAt(0),is=/[\t\n\f\r "#'()/;[\\\]{}]/g,ss=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,as=/.[\r\n"'(/\\]/,ls=/[\da-f]/i,cs=Pi,us=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="atrule",n}m(t,e);var n=t.prototype;return n.append=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=e.prototype.append).call.apply(o,[].concat([this],n))},n.prepend=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=e.prototype.prepend).call.apply(o,[].concat([this],n))},t}(cs),ds=us;us.default=us,cs.registerAtRule(us);var ps,fs,hs=Pi,ms=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="root",n.nodes||(n.nodes=[]),n}m(t,e);var n=t.prototype;return n.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var i,s=k(o);!(i=s()).done;){i.value.raws.before=n.raws.before}return o},n.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return void 0===e&&(e={}),new ps(new fs,this,e).stringify()},t}(hs);ms.registerLazyResult=function(e){ps=e},ms.registerProcessor=function(e){fs=e};var vs=ms;ms.default=ms,hs.registerRoot(ms);var gs={comma:function(e){return gs.split(e,[","],!0)},space:function(e){return gs.split(e,[" ","\n","\t"])},split:function(e,t,n){for(var r,o=[],i="",s=!1,a=0,l=!1,c="",u=!1,d=k(e);!(r=d()).done;){var p=r.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>
vendor: 7,900 bytes, line 2
20&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=p}return(n||""!==i)&&o.push(i.trim()),o}},ys=gs;gs.default=gs;var bs=Pi,ws=ys,Ss=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="rule",n.nodes||(n.nodes=[]),n}return m(t,e),p(t,[{key:"selectors",get:function(){return ws.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(bs),ks=Ss;Ss.default=Ss,bs.registerRule(Ss);var _s=Mo,Os=function(e,t){void 0===t&&(t={});var n,r,o,i,s,a,l,c,u,d,p=e.css.valueOf(),f=t.ignoreErrors,h=p.length,m=0,v=[],g=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){g.push(e)},endOfFile:function(){return 0===g.length&&m>=h},nextToken:function(e){if(g.length)return g.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;switch(n=p.charCodeAt(m)){case Wi:case Gi:case Vi:case Ki:case Xi:r=m;do{r+=1,n=p.charCodeAt(r)}while(n===Gi||n===Wi||n===Vi||n===Ki||n===Xi);d=["space",p.slice(m,r)],m=r-1;break;case qi:case Yi:case Zi:case es:case rs:case ts:case Ji:var b=String.fromCharCode(n);d=[b,b,m];break;case Qi:if(c=v.length?v.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==Ui&&u!==Hi&&u!==Gi&&u!==Wi&&u!==Vi&&u!==Xi&&u!==Ki){r=m;do{if(a=!1,-1===(r=p.indexOf(")",r+1))){if(f||t){r=m;break}y("bracket")}for(l=r;p.charCodeAt(l-1)===$i;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,r+1),m,r],m=r}else r=p.indexOf(")",m+1),i=p.slice(m,r+1),-1===r||as.test(i)?d=["(","(",m]:(d=["brackets",i,m,r],m=r);break;case Ui:case Hi:o=n===Ui?"'":'"',r=m;do{if(a=!1,-1===(r=p.indexOf(o,r+1))){if(f||t){r=m+1;break}y("string")}for(l=r;p.charCodeAt(l-1)===$i;)l-=1,a=!a}while(a);d=["string",p.slice(m,r+1),m,r],m=r;break;case os:is.lastIndex=m+1,is.test(p),r=0===is.lastIndex?p.length-1:is.lastIndex-2,d=["at-word",p.slice(m,r+1),m,r],m=r;break;case $i:for(r=m,s=!0;p.charCodeAt(r+1)===$i;)r+=1,s=!s;if(n=p.charCodeAt(r+1),s&&n!==zi&&n!==Gi&&n!==Wi&&n!==Vi&&n!==Ki&&n!==Xi&&(r+=1,ls.test(p.charAt(r)))){for(;ls.test(p.charAt(r+1));)r+=1;p.charCodeAt(r+1)===Gi&&(r+=1)}d=["word",p.slice(m,r+1),m,r],m=r;break;default:n===zi&&p.charCodeAt(m+1)===ns?(0===(r=p.indexOf("*/",m+2)+1)&&(f||t?r=p.length:y("comment")),d=["comment",p.slice(m,r+1),m,r],m=r):(ss.lastIndex=m+1,ss.test(p),r=0===ss.lastIndex?p.length-1:ss.lastIndex-2,d=["word",p.slice(m,r+1),m,r],v.push(d),m=r)}return m++,d}},position:function(){return m}}},Cs=yi,Ts=ds,As=vs,Es=ks,xs={empty:!0,space:!0};var Ps=function(){function e(e){this.input=e,this.root=new As,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,n,r,o=new Ts;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(n=a[r=a.length-1];n&&"space"===n[0];)n=a[--r];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&("space"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t,n,r,o,i=0,s=k(e.entries());!(o=s()).done;){var a=o.value,l=a[0];if("("===(n=(t=a[1])[0])&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return l}this.doubleColon(t)}r=t}return!1},t.comment=function(e){var t=new Cs;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=Os(this.input)},t.decl=function(e,t){var n=new _s;this.init(n,e[0][2]);var r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(r=e[l])[1].toLowerCase()){n.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(n.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var f=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==f)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=u)}if("space"!==r[0]&&"comment"!==r[0])break}var h=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});h&&(n.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Es;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(n=l[0],a.push(l),"("===n||"["===n)o||(o=l),i.push("("===n?")":"]");else if(s&&r&&"{"===n)o||(o=l),i.push("}");else if(0===i.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}
2if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var o,i,s,a,l=n.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(i=(o=n[d])[0])||d!==l-1||r?"comment"===i?(a=n[d-1]?n[d-1][0]:"empty",s=n[d+1]?n[d+1][0]:"empty",xs[a]||xs[s]||","===c.slice(-1)?u=!1:c+=o[1]):c+=o[1]:u=!1;if(!u){var p=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new Es;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Is=Pi,Ls=Ps,js=oi;function Ms(e,t){var n=new js(e,t),r=new Ls(n);try{r.parse()}catch(e){throw e}return r.root}var Ds=Ms;Ms.default=Ms,Is.registerParse(Ms);var Rs=yo.isClean,Ns=yo.my,Fs=vi,Bs=Oo,Us=Pi,Hs=Mi,$s=Bi,zs=Ds,Ws=vs,Gs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Xs={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Vs={Once:!0,postcssPlugin:!0,prepare:!0};function Ks(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function qs(e){var t=!1,n=Gs[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function Ys(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:qs(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Qs(e){return e[Rs]=!1,e.nodes&&e.nodes.forEach(function(e){return Qs(e)}),e}var Js={},Zs=function(){function e(t,n,r){var o,i=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===n?"undefined":b(n))||null===n||"root"!==n.type&&"document"!==n.type)if(v(n,e)||v(n,$s))o=Qs(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var s=zs;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{o=s(n,r)}catch(e){this.processed=!0,this.error=e}o&&!o[Ns]&&Us.rebuild(o)}else o=Qs(n);this.result=new $s(t,o,r),this.helpers=f({},Js,{postcss:Js,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":b(e))&&e.prepare?f({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(n.postcssVersion);}else e.plugin=n.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,n=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},r=k(this.plugins);!(t=r()).done;){var o=t.value;if("object"===(void 0===o?"undefined":b(o)))for(var i in o){if(!Xs[i]&&/^[A-Z]/.test(i))throw new Error("Unknown event "+i+" in "+o.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
2sion+" now).");if(!Vs[i])if("object"===b(o[i]))for(var s in o[i])n(o,"*"===s?i:i+"-"+s.toLowerCase(),o[i][s]);else"function"==typeof o[i]&&n(o,i,o[i])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return u(function(){var t,n,r,o,i,s,a,l,c,u,d,p;return _(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],!Ks(r=e.runOnRoot(n)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,r];case 3:return f.sent(),[3,5];case 4:throw o=f.sent(),e.handleError(o);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];i=e.result.root,f.label=7;case 7:if(i[Rs])return[3,14];i[Rs]=!0,s=[Ys(i)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Ks(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw l=f.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,o,s;return _(this,function(a){switch(a.label){case 0:t=p.value,n=t[0],r=t[1],e.result.lastPlugin=n,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==i.type?[3,3]:(o=i.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(o)]);case 2:return a.sent(),[3,5];case 3:return[4,r(i,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},d=k(e.listeners.OnceExit),f.label=15;case 15:return(p=d()).done?[3,18]:[5,O(u())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":b(e))&&e.Once){if("document"===this.result.root.type){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return Ks(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Bs;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new Fs(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=k(this.plugins);!(e=t()).done;){var n=e.value;if(Ks(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[Rs];)r[Rs]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type)for(var o,i=k(r.nodes);!(o=i()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,r)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var n,r=k(e);!(n=r()).done;){var o=n.value,i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Ks(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(r.length>0&&t.visitorIndex<r.length){var o=r[t.visitorIndex],i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){for(var a,l=t.iterator;a=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!a[Rs])return a[Rs]=!0,void e.push(Ys(a));t.iterator=0,delete n.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(n.nodes&&n.nodes.length&&(n[Rs]=!0,t.iterator=n.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Rs]=!0;for(var n,r=k(qs(e));!(n=r()).done;){var o=n.value;if(0===o)e.nodes&&e.each(function(e){e[Rs]||t.walkSync(e)});else{var i=this.listeners[o];if(i&&this.visitSync(i,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
2,p(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Zs.registerPostcss=function(e){Js=e};var ea=Zs;Zs.default=Zs,Ws.registerLazyResult(Zs),Hs.registerLazyResult(Zs);var ta=vi,na=Oo,ra=Ds,oa=Bi,ia=function(){function e(e,t,n){var r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var o=na;this.result=new oa(this._processor,r,this._opts),this.result.css=t;var i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var s=new ta(o,r,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},p(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=ra;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),sa=ia;ia.default=ia;var aa=sa,la=ea,ca=Mi,ua=vs,da=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,n=[],r=k(e);!(t=r()).done;){var o=t.value;if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"===(void 0===o?"undefined":b(o))&&Array.isArray(o.plugins))n=n.concat(o.plugins);else if("object"===(void 0===o?"undefined":b(o))&&o.postcssPlugin)n.push(o);else if("function"==typeof o)n.push(o);else{if("object"!==(void 0===o?"undefined":b(o))||!o.parse&&!o.str
2ingify)throw new Error(o+" is not a PostCSS plugin")}}return n},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new la(this,e,t):new aa(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),pa=da;da.default=da,ua.registerProcessor(da),ca.registerProcessor(da);var fa=Mo,ha=zo,ma=yi,va=ds,ga=oi,ya=vs,ba=ks;function wa(e,t){if(Array.isArray(e))return e.map(function(e){return wa(e)});var n=e.inputs,r=g(e,["inputs"]);if(n){t=[];for(var o,i=k(n);!(o=i()).done;){var s=f({},o.value,{__proto__:ga.prototype});s.map&&(s.map=f({},s.map,{__proto__:ha.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(e){return wa(e,t)})),r.source){var a=r.source,l=a.inputId,c=g(a,["inputId"]);r.source=c,null!=l&&(r.source.input=t[l])}if("root"===r.type)return new ya(r);if("decl"===r.type)return new fa(r);if("rule"===r.type)return new ba(r);if("comment"===r.type)return new ma(r);if("atrule"===r.type)return new va(r);throw new Error("Unknown node type: "+e.type)}var Sa=wa;wa.default=wa;var ka=go,_a=Mo,Oa=ea,Ca=Pi,Ta=pa,Aa=Oo,Ea=Sa,xa=Mi,Pa=Ri,Ia=yi,La=ds,ja=Bi,Ma=oi,Da=Ds,Ra=ys,Na=ks,Fa=vs,Ba=Lo;function Ua(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Ta(t)}Ua.plugin=function(e,t){var n,r=!1;function i(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),o.env.LANG&&o.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var a=t.apply(void 0,[].concat(i));return a.postcssPlugin=e,a.postcssVersion=(new Ta).version,a}return Object.defineProperty(i,"postcss",{get:function(){return n||(n=i()),n}}),i.process=function(e,t,n){return Ua([i(n)]).process(e,t)},i},Ua.stringify=Aa,Ua.parse=Da,Ua.fromJSON=Ea,Ua.list=Ra,Ua.comment=function(e){return new Ia(e)},Ua.atRule=function(e){return new La(e)},Ua.decl=function(e){return new _a(e)},Ua.rule=function(e){return new Na(e)},Ua.root=function(e){return new Fa(e)},Ua.document=function(e){return new xa(e)},Ua.CssSyntaxError=ka,Ua.Declaration=_a,Ua.Container=Ca,Ua.Processor=Ta,Ua.Document=xa,Ua.Comment=Ia,Ua.Warning=Pa,Ua.AtRule=La,Ua.Result=ja,Ua.Input=Ma,Ua.Rule=Na,Ua.Root=Fa,Ua.Node=Ba,Oa.registerPostcss(Ua);var Ha=Ua;Ua.default=Ua;var $a=so(Ha);$a.stringify,$a.fromJSON,$a.plugin,$a.parse,$a.list,$a.document,$a.comment,$a.atRule,$a.rule,$a.decl,$a.root,$a.CssSyntaxError,$a.Declaration,$a.Container,$a.Processor,$a.Document,$a.Comment,$a.Warning,$a.AtRule,$a.Result,$a.Input,$a.Rule,$a.Root,$a.Node;var za=function(){function e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];io(this,"parentElement",null),io(this,"parentNode",null),io(this,"ownerDocument"),io(this,"firstChild",null),io(this,"lastChild",null),io(this,"previousSibling",null),io(this,"nextSibling",null),io(this,"ELEMENT_NODE",1),io(this,"TEXT_NODE",3),io(this,"nodeType"),io(this,"nodeName"),io(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!v(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},p(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Wa={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ga={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Xa={};function Va(e){if(Xa[e])return Xa[e];var t=globalThis[e],n=t.prototype,r=e in Wa?Wa[e]:void 0,o=Boolean(r&&r.every(function(e){var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),i=e in Ga?Ga[e]:void 0,s=Boolean(i&&i.every(function(e){var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(o&&s&&!globalThis.Zone)return Xa[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?Xa[e]=c:n}catch(e){return n}}var Ka={};function qa(e,t,n){var r,o=e+"."+String(n);if(Ka[o])return Ka[o].call(t);var i=Va(e),s=null==(r=Object.getOwnPropertyDescriptor(i,n))?void 0:r.get;return s?(Ka[o]=s,s.call(t)):t[n]}var Ya={};
vendor: 3,618 bytes, line 2
2function Qa(e,t,n){var r=e+"."+String(n);if(Ya[r])return Ya[r].bind(t);var o=Va(e)[n];return"function"!=typeof o?t[n]:(Ya[r]=o,o.bind(t))}function Ja(){return Va("MutationObserver").constructor}function Za(e,t,n){try{if(!(t in e))return function(){};var r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,function(){e[t]=r}}catch(e){return function(){}}}var el={childNodes:function(e){return qa("Node",e,"childNodes")},parentNode:function(e){return qa("Node",e,"parentNode")},parentElement:function(e){return qa("Node",e,"parentElement")},textContent:function(e){return qa("Node",e,"textContent")},contains:function(e,t){return Qa("Node",e,"contains")(t)},getRootNode:function(e){return Qa("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?qa("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?qa("Element",e,"shadowRoot"):null},querySelector:function(e,t){return qa("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return qa("Element",e,"querySelectorAll")(t)},mutationObserver:Ja,patch:Za};function tl(e,t,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var nl="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",rl={map:{},getId:function(){return console.error(nl),-1},getNode:function(){return console.error(nl),null},removeNodeFromMap:function(){console.error(nl)},has:function(){return console.error(nl),!1},reset:function(){console.error(nl)}};function ol(e,t,n){void 0===n&&(n={});var r=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var l=Date.now();o||!1!==n.leading||(o=l);var c=t-(l-o),u=this;c<=0||c>t?(r&&(clearTimeout(r),r=null),o=l,e.apply(u,s)):r||!1===n.trailing||(r=setTimeout(function(){o=!1===n.leading?0:Date.now(),r=null,e.apply(u,s)},c))}}function il(e,t,n,r,o){void 0===o&&(o=window);var i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),i&&i.set&&i.set.call(this,e)}}),function(){return il(e,t,i||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rl=new Proxy(rl,{get:function(e,t,n){return"map"===t&&console.error(nl),Reflect.get(e,t,n)}}));var sl=Date.now;function al(e){var t,n,r,o,i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=el.parentElement(i.body))?void 0:t.scrollLeft)||(null==(n=null==i?void 0:i.body)?void 0:n.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(r=el.parentElement(i.body))?void 0:r.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}}function ll(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function cl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ul(e){return e?e.nodeType===e.ELEMENT_NODE?e:el.parentElement(e):null}function dl(e,t,n,r){if(!e)return!1;var o=ul(e);
2if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(r&&null!==o.closest("."+t))return!0}else if(ge(o,t,r))return!0}catch(e){}if(n){if(o.matches(n))return!0;if(r&&null!==o.closest(n))return!0}return!1}function pl(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||-2===t.getId(e)}function fl(e,t){if(H(e))return!1;var n=t.getId(e);if(!t.has(n))return!0;var r=el.parentNode(e);return(!r||r.nodeType!==e.DOCUMENT_NODE)&&(!r||fl(r,t))}function hl(e){return Boolean(e.changedTouches)}function ml(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function vl(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function gl(e){return!!e&&(v(e,za)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(el.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(sl=function(){return(new Date).getTime()});var yl=function(){function e(){A(this,"id",1),A(this,"styleIDMap",new WeakMap),A(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n);var n},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function bl(e){var t,n=null;return"getRootNode"in e&&(null==(t=el.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&el.host(el.getRootNode(e))&&(n=el.host(el.getRootNode(e))),n}function wl(e){var t=e.ownerDocument;if(!t)return!1;var n=function(e){for(var t,n=e;t=bl(n);)n=t;return n}(e);return el.contains(t,n)}function Sl(e){var t=e.ownerDocument;return!!t&&(el.contains(t,e)||wl(e))}var kl=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(kl||{}),_l=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(_l||{}),Ol=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Ol||{}),Cl=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Cl||{}),Tl=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Tl||{}),Al=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Al||{}),El=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(El||{});function xl(e){return"__ln"in e}var Pl,Il=function(){function e(){A(this,"length",0),A(this,"head",null),A(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&xl(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
2(n.previous=t)}else if(e.nextSibling&&xl(e.nextSibling)&&e.nextSibling.__ln.previous){var r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Ll=function(e,t){return e+"@"+t},jl=function(){function e(){var e=this;A(this,"frozen",!1),A(this,"locked",!1),A(this,"texts",[]),A(this,"attributes",[]),A(this,"attributeMap",new WeakMap),A(this,"removes",[]),A(this,"mapRemoves",[]),A(this,"movedMap",{}),A(this,"addedSet",new Set),A(this,"movedSet",new Set),A(this,"droppedSet",new Set),A(this,"removesSubTreeCache",new Set),A(this,"mutationCb"),A(this,"blockClass"),A(this,"blockSelector"),A(this,"maskTextClass"),A(this,"maskTextSelector"),A(this,"inlineStylesheet"),A(this,"maskInputOptions"),A(this,"maskTextFn"),A(this,"maskInputFn"),A(this,"keepIframeSrcFn"),A(this,"recordCanvas"),A(this,"inlineImages"),A(this,"slimDOMOptions"),A(this,"dataURLOptions"),A(this,"doc"),A(this,"mirror"),A(this,"iframeManager"),A(this,"stylesheetManager"),A(this,"shadowDomManager"),A(this,"canvasManager"),A(this,"processedNodeManager"),A(this,"unattachedDoc"),A(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),A(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],n=new Set,r=new Il,o=function(t){for(var n=t,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&e.mirror.getId(n);return r},i=function(i){var s=el.parentNode(i);if(s&&Sl(i)){var a=!1;if(i.nodeType===Node.TEXT_NODE){var l=s.tagName;if("TEXTAREA"===l)return;"STYLE"===l&&e.addedSet.has(s)&&(a=!0)}var c=H(s)?e.mirror.getId(bl(i)):e.mirror.getId(s),u=o(i);if(-1===c||-1===u)return r.addNode(i);var d=Se(i,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){ml(t,e.mirror)&&e.iframeManager.addIframe(t),vl(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),gl(i)&&e.shadowDomManager.addShadowRoot(el.shadowRoot(i),e.doc)},onIframeLoad:function(t,n){e.iframeManager.attachIframe(t,n),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,n){e.stylesheetManager.attachLinkElement(t,n)},cssCaptured:a});d&&(t.push({parentId:c,nextId:u,node:d}),n.add(d.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();if("IFRAME"===s.nodeName)try{e.iframeManager.removeIframe(s)}catch(e){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(s);e.mirror.removeNodeFromMap(s)}for(var a,l=k(e.movedSet);!(a=l()).done;){var c=a.value;Dl(e.removesSubTreeCache,c,e.mirror)&&!e.movedSet.has(el.parentNode(c))||i(c)}for(var u,d=k(e.addedSet);!(u=d()).done;){var p=u.value;Rl(e.droppedSet,p)||Dl(e.removesSubTreeCache,p,e.mirror)?Rl(e.movedSet,p)?i(p):e.droppedSet.add(p):i(p)}for(var f=null;r.length;){var h=null;if(f){var m=e.mirror.getId(el.parentNode(f.value)),v=o(f.value);-1!==m&&-1!==v&&(h=f)}if(!h)for(var g=r.tail;g;){var y=g;if(g=g.previous,y){var b=e.mirror.getId(el.parentNode(y.value));if(-1===o(y.value))continue;if(-1!==b){h=y;break}var w=y.value,S=el.parentNode(w);if(S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var _=el.host(S);if(-1!==e.mirror.getId(_)){h=y;break}}}}if(!h){for(;r.head;)r.removeNode(r.head.value);break}f=h.previous,r.removeNode(h.value),i(h.value)}var O={texts:e.texts.map(function(t){var n=t.node,r=el.parentNode(n);return r&&"TEXTAREA"===r.tagName&&e.genTextAreaValueMutation(r),{id:e.mirror.getId(n),value:t.value}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var n=t.attributes;if("string"==typeof n.style){var r=JSON.stringify(t.styleDiff),o=JSON.stringify(t._unchangedStyles);r.length<n.style.length&&(r+o).split("var(").length===n.style.split("var(").length&&(n.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:n}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(O.texts.length||O.attributes.length||O.removes.length||O.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(O))}}),A(this,"genTextAreaValueMutation",function(t){var n=e.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(n),e.attributeMap.set(t,n));var r=Array.from(el.childNodes(t),function(e){return el.textContent(e)||""}).join("");n.attributes.value=X({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:q(t),value:r,maskInputFn:e.maskInputFn})}),A(this,"processMutation",function(t){if(!pl(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var n=el.textContent(t.target);dl(t.target,e.blockClass,e.blockSelector,!1)||n===t.oldValue||e.texts.push({value:ye(t.target,e.maskTextClass,e.maskTextSelector,!0)&&n?e.maskTextFn?e.maskTextFn(n,ul(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break;
vendor: 5,091 bytes, line 2
2case"attributes":var r=t.target,o=t.attributeName,i=t.target.getAttribute(o);if("value"===o){var s=q(r);i=X({element:r,maskInputOptions:e.maskInputOptions,tagName:r.tagName,type:s,value:i,maskInputFn:e.maskInputFn})}if(dl(t.target,e.blockClass,e.blockSelector,!1)||i===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===r.tagName&&"src"===o&&!e.keepIframeSrcFn(i)){if(r.contentDocument)return;o="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===o&&"INPUT"===r.tagName&&"password"===(t.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!ve(r.tagName,o))if(a.attributes[o]=me(e.doc,V(r.tagName),V(o),i),"style"===o){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var l=e.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var c,u=k(Array.from(r.style));!(c=u()).done;){var d=c.value,p=r.style.getPropertyValue(d),f=r.style.getPropertyPriority(d);p!==l.style.getPropertyValue(d)||f!==l.style.getPropertyPriority(d)?a.styleDiff[d]=""===f?p:[p,f]:a._unchangedStyles[d]=[p,f]}for(var h,m=k(Array.from(l.style));!(h=m()).done;){var v=h.value;""===r.style.getPropertyValue(v)&&(a.styleDiff[v]=!1)}}else"open"===o&&"DIALOG"===r.tagName&&(r.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(dl(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(n){return e.genAdds(n,t.target)}),t.removedNodes.forEach(function(n){var r=e.mirror.getId(n),o=H(t.target)?e.mirror.getId(el.host(t.target)):e.mirror.getId(t.target);dl(t.target,e.blockClass,e.blockSelector,!1)||pl(n,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(n,e.mirror)||(e.addedSet.has(n)?(Ml(e.addedSet,n),e.droppedSet.add(n)):e.addedSet.has(t.target)&&-1===r||fl(t.target,e.mirror)||(e.movedSet.has(n)&&e.movedMap[Ll(r,o)]?Ml(e.movedSet,n):(e.removes.push({parentId:o,id:r,isShadow:!(!H(t.target)||!$(t.target))||void 0}),function(e,t){var n=[e];for(;n.length;){var r=n.pop();t.has(r)||(t.add(r),el.childNodes(r).forEach(function(e){return n.push(e)}))}}(n,e.removesSubTreeCache))),e.mapRemoves.push(n))})}}),A(this,"genAdds",function(t,n){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(pl(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var r=null;n&&e.mirror.hasNode(n)&&(r=e.mirror.getId(n)),r&&-1!==r&&(e.movedMap[Ll(e.mirror.getId(t),r)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);dl(t,e.blockClass,e.blockSelector,!1)||(el.childNodes(t).forEach(function(t){return e.genAdds(t)}),gl(t)&&el.childNodes(el.shadowRoot(t)).forEach(function(n){e.processedNodeManager.add(n,e),e.genAdds(n,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(n){t[n]=e[n]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function Ml(e,t){e.delete(t),el.childNodes(t).forEach(function(t){return Ml(e,t)})}function Dl(e,t,n){return 0!==e.size&&function(e,t){var n=el.parentNode(t);return!!n&&e.has(n)}(e,t)}function Rl(e,t){return 0!==e.size&&Nl(e,t)}function Nl(e,t){var n=el.parentNode(t);return!!n&&(!!e.has(n)||Nl(e,n))}var Fl=function(e){if(!Pl)return e;return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];try{return e.apply(void 0,[].concat(n))}catch(e){if(Pl&&!0===Pl(e))return;throw e}}},Bl=[];function Ul(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Hl(e,t){var n=new jl;Bl.push(n),n.init(e);var r=new(Ja())(Fl(n.processMutations.bind(n)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function $l(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],c=null;return Object.keys(Ol).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
2).forEach(function(e){var s=V(e),a=function(e){return function(n){var s=Ul(n);if(!dl(s,o,i,!0)){var a=null,l=e;if("pointerType"in n){switch(n.pointerType){case"mouse":a=Cl.Mouse;break;case"touch":a=Cl.Touch;break;case"pen":a=Cl.Pen}a===Cl.Touch?Ol[e]===Ol.MouseDown?l="TouchStart":Ol[e]===Ol.MouseUp&&(l="TouchEnd"):Cl.Pen}else hl(n)&&(a=Cl.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===Cl.Touch||l.startsWith("Mouse")&&a===Cl.Mouse)&&(a=null)):Ol[e]===Ol.Click&&(a=c,c=null);var u=hl(n)?n.changedTouches[0]:n;if(u){var d=r.getId(s),p=u.clientX,h=u.clientY;Fl(t)(f({type:Ol[l],id:d,x:p,y:h},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(Ol[e]){case Ol.MouseDown:case Ol.MouseUp:s=s.replace("mouse","pointer");break;case Ol.TouchStart:case Ol.TouchEnd:return}l.push(tl(s,a,n))}),Fl(function(){l.forEach(function(e){return e()})})}function zl(e){var t=e.scrollCb,n=e.doc,r=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.sampling;return tl("scroll",Fl(ol(Fl(function(e){var s=Ul(e);if(s&&!dl(s,o,i,!0)){var a=r.getId(s);if(s===n&&n.defaultView){var l=al(n.defaultView);t({id:a,x:l.left,y:l.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),n)}var Wl=["INPUT","TEXTAREA","SELECT"],Gl=new WeakMap;function Xl(e){return function(e,t){if(Yl("CSSGroupingRule")&&v(e.parentRule,CSSGroupingRule)||Yl("CSSMediaRule")&&v(e.parentRule,CSSMediaRule)||Yl("CSSSupportsRule")&&v(e.parentRule,CSSSupportsRule)||Yl("CSSConditionRule")&&v(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function Vl(e,t,n){var r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Kl(e,t){var n,r,o,i=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?i.getId(t):i.getId(el.host(t));var l="#document"===t.nodeName?null==(n=t.defaultView)?void 0:n.Document:null==(o=null==(r=t.ownerDocument)?void 0:r.defaultView)?void 0:o.ShadowRoot,c=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&l&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,n=null==(t=c.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return n}}),Fl(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function ql(e,t){void 0===t&&(t={});var n,r=e.doc.defaultView;if(!r)return function(){};!function(e,t){var n=e.mutationCb,r=e.mousemoveCb,o=e.mouseInteractionCb,i=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,l=e.mediaInteractionCb,c=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,h=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i;t.mutation&&(i=t).mutation.apply(i,[].concat(r)),n.apply(void 0,[].concat(r))},e.mousemoveCb=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var i;t.mousemove&&(i=t).mousemove.apply(i,[].concat(n)),r.apply(void 0,[].concat(n))},e.mouseInteractionCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;t.mouseInteraction&&(i=t).mouseInteraction.apply(i,[].concat(n)),o.apply(void 0,[].concat(n))},e.scrollCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.scroll&&(o=t).scroll.apply(o,[].concat(n)),i.apply(void 0,[].concat(n))},e.viewportResizeCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.viewportResize&&(o=t).viewportResize.apply(o,[].concat(n)),s.apply(void 0,[].concat(n))},e.inputCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.input&&(o=t).input.apply(o,[].concat(n)),a.apply(void 0,[].concat(n))},e.mediaInteractionCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.mediaInteaction&&(o=t).mediaInteaction.apply(o,[].concat(n)),l.apply(void 0,[].concat(n))},e.styleSheetRuleCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.styleSheetRule&&(o=t).styleSheetRule.apply(o,[].concat(n)),c.apply(void 0,[].concat(n))},e.styleDeclarationCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.styleDeclaration&&(o=t).styleDeclaration.apply(o,[].concat(n)),u.a
2pply(void 0,[].concat(n))},e.canvasMutationCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.canvasMutation&&(o=t).canvasMutation.apply(o,[].concat(n)),d.apply(void 0,[].concat(n))},e.fontCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.font&&(o=t).font.apply(o,[].concat(n)),p.apply(void 0,[].concat(n))},e.selectionCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.selection&&(o=t).selection.apply(o,[].concat(n)),f.apply(void 0,[].concat(n))},e.customElementCb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o;t.customElement&&(o=t).customElement.apply(o,[].concat(n)),h.apply(void 0,[].concat(n))}}(e,t),e.recordDOM&&(n=Hl(e,e.doc));var o,i,s,a,l,c,u,d,p,h=function(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var i,s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,l=[],c=ol(Fl(function(e){var n=Date.now()-i;t(l.map(function(e){return e.timeOffset-=n,e}),e),l=[],i=null}),a),u=Fl(ol(Fl(function(e){var t=Ul(e),n=hl(e)?e.changedTouches[0]:e,r=n.clientX,s=n.clientY;i||(i=sl()),l.push({x:r,y:s,id:o.getId(t),timeOffset:sl()-i}),c("undefined"!=typeof DragEvent&&v(e,DragEvent)?_l.Drag:v(e,MouseEvent)?_l.MouseMove:_l.TouchMove)}),s,{trailing:!1})),d=[tl("mousemove",u,r),tl("touchmove",u,r),tl("drag",u,r)];return Fl(function(){d.forEach(function(e){return e()})})}(e),m=$l(e),g=zl(e),y=function(e,t){var n=e.viewportResizeCb,r=t.win,o=-1,i=-1;return tl("resize",Fl(ol(Fl(function(){var e=ll(),t=cl();o===e&&i===t||(n({width:Number(t),height:Number(e)}),o=e,i=t)}),200)),r)}(e,{win:r}),b=function(e){var t=e.inputCb,n=e.doc,r=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,l=e.maskInputOptions,c=e.maskInputFn,u=e.sampling,d=e.userTriggeredOnInput;function p(e){var t=Ul(e),r=e.isTrusted,u=t&&t.tagName;if(t&&"OPTION"===u&&(t=el.parentElement(t)),t&&u&&!(Wl.indexOf(u)<0)&&!dl(t,o,i,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,f=!1,m=q(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(l[u.toLowerCase()]||l[m])&&(p=X({element:t,maskInputOptions:l,tagName:u,type:m,value:p,maskInputFn:c})),h(t,d?{text:p,isChecked:f,userTriggered:r}:{text:p,isChecked:f});var v=t.name;"radio"===m&&v&&f&&n.querySelectorAll('input[type="radio"][name="'+v+'"]').forEach(function(e){if(e!==t){var n=e.value;h(e,d?{text:n,isChecked:!f,userTriggered:!1}:{text:n,isChecked:!f})}})}}function h(e,n){var o=Gl.get(e);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){Gl.set(e,n);var i=r.getId(e);Fl(t)(f({},n,{id:i}))}}var m=("last"===u.input?["change"]:["input","change"]).map(function(e){return tl(e,Fl(p),n)}),v=n.defaultView;if(!v)return function(){m.forEach(function(e){return e()})};var g,y=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),b=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&(g=m).push.apply(g,[].concat(b.map(function(e){return il(e[0],e[1],{set:function(){Fl(p)({target:this,isTrusted:!1})}},!1,v)}))),Fl(function(){m.forEach(function(e){return e()})})}(e),w=(i=(o=e).mediaInteractionCb,s=o.blockClass,a=o.blockSelector,l=o.mirror,c=o.sampling,u=o.doc,d=Fl(function(e){return ol(Fl(function(t){var n=Ul(t);if(n&&!dl(n,s,a,!0)){var r=n.currentTime,o=n.volume,c=n.muted,u=n.playbackRate,d=n.loop;i({type:e,id:l.getId(n),currentTime:r,volume:o,muted:c,playbackRate:u,loop:d})}}),c.media||500)}),p=[tl("play",d(Al.Play),u),tl("pause",d(Al.Pause),u),tl("seeked",d(Al.Seeked),u),tl("volumechange",d(Al.VolumeChange),u),tl("ratechange",d(Al.RateChange),u)],Fl(function(){p.forEach(function(e){return e()})})),S=function(){},_=function(){},O=function(){},C=function(){};e.recordDOM&&(S=function(e,t){var n=e.styleSheetRuleCb,r=e.mirror,o=e.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Fl(function(e,t,i){var s=i[0],a=i[1],l=Vl(t,r,o.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,adds:[{rule:s,index:a}]}),e.apply(t,i)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n){void 0===n&&(n=this.cssRules.length);var r=e+" { "+t+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[r,n])};var a,l,c=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:Fl(function(e,t,i){var s=i[0],a=Vl(t,r,o.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&n({id:l,styleId:c,removes:[{index:s}]}),e.apply(t,i)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(a=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Fl(function(e,t,i){var s=i[0],a=Vl(t,r,o.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&n({id:l,styleId:c,replace:s}),e.apply(t,i)})}
2)),i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Fl(function(e,t,i){var s=i[0],a=Vl(t,r,o.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&n({id:l,styleId:c,replaceSync:s}),e.apply(t,i)})}));var u={};Ql("CSSGroupingRule")?u.CSSGroupingRule=i.CSSGroupingRule:(Ql("CSSMediaRule")&&(u.CSSMediaRule=i.CSSMediaRule),Ql("CSSConditionRule")&&(u.CSSConditionRule=i.CSSConditionRule),Ql("CSSSupportsRule")&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach(function(e){var t=e[0],i=e[1];d[t]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(d[t].insertRule,{apply:Fl(function(e,t,i){var s=i[0],a=i[1],l=Vl(t.parentStyleSheet,r,o.styleMirror),c=l.id,u=l.styleId;return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,adds:[{rule:s,index:[].concat(Xl(t),[a||0])}]}),e.apply(t,i)})}),i.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:Fl(function(e,t,i){var s=i[0],a=Vl(t.parentStyleSheet,r,o.styleMirror),l=a.id,c=a.styleId;return(l&&-1!==l||c&&-1!==c)&&n({id:l,styleId:c,removes:[{index:[].concat(Xl(t),[s])}]}),e.apply(t,i)})})}),Fl(function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=c,a&&(i.CSSStyleSheet.prototype.replace=a),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(function(e){var t=e[0],n=e[1];n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule})})}(e,{win:r}),_=Kl(e,e.doc),O=function(e,t){var n=e.styleDeclarationCb,r=e.mirror,o=e.ignoreCSSAttributes,i=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Fl(function(e,t,s){var l,c=s[0],u=s[1],d=s[2];if(o.has(c))return a.apply(t,[c,u,d]);var p=Vl(null==(l=t.parentRule)?void 0:l.parentStyleSheet,r,i.styleMirror),f=p.id,h=p.styleId;return(f&&-1!==f||h&&-1!==h)&&n({id:f,styleId:h,set:{property:c,value:u,priority:d},index:Xl(t.parentRule)}),e.apply(t,s)})});var l=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:Fl(function(e,t,s){var a,c=s[0];if(o.has(c))return l.apply(t,[c]);var u=Vl(null==(a=t.parentRule)?void 0:a.parentStyleSheet,r,i.styleMirror),d=u.id,p=u.styleId;return(d&&-1!==d||p&&-1!==p)&&n({id:d,styleId:p,remove:{property:c},index:Xl(t.parentRule)}),e.apply(t,s)})}),Fl(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=l})}(e,{win:r}),e.collectFonts&&(C=function(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var o=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,n){var r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var a=Za(n.fonts,"add",function(e){return function(n){return setTimeout(Fl(function(){var e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}});return o.push(function(){r.FontFace=s}),o.push(a),Fl(function(){o.forEach(function(e){return e()})})}(e)));for(var T,A=function(e){var t=e.doc,n=e.mirror,r=e.blockClass,o=e.blockSelector,i=e.selectionCb,s=!0,a=Fl(function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],l=e.rangeCount||0,c=0;c<l;c++){var u=e.getRangeAt(c),d=u.startContainer,p=u.startOffset,f=u.endContainer,h=u.endOffset;dl(d,r,o,!0)||dl(f,r,o,!0)||a.push({start:n.getId(d),startOffset:p,end:n.getId(f),endOffset:h})}i({ranges:a})}});return a(),tl("selectionchange",a)}(e),E=function(e){var t=e.doc,n=e.customElementCb,r=t.defaultView;return r&&r.customElements?Za(r.customElements,"define",function(e){return function(t,r,o){try{n({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,o])}}):function(){}}(e),x=[],P=k(e.plugins);!(T=P()).done;){var I=T.value;x.push(I.observer(I.callback,r,I.options))}return Fl(function(){Bl.forEach(function(e){return e.reset()}),null==n||n.disconnect(),h(),m(),g(),y(),b(),w(),S(),_(),O(),C(),A(),E(),x.forEach(function(e){return e()})})}function Yl(e){return void 0!==window[e]}function Ql(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Jl=function(){function e(e){A(this,"iframeIdToRemoteIdMap",new WeakMap),A(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,n,r){var o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e),s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s},t.getIds=function(e,t){var n=this,r=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getId(e,t,r,o)})},t.getRemoteId=function(e,t,n){var r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var o=r.get(t);return o||-1},t.getRemoteIds=function(e,t){var n=this,r=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getRemoteId(e,t,r)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),Zl=function(){function e(e){A(this,"iframes",new WeakMap),A(this,"crossOriginIframeMap",new WeakMap),A(this,"crossOriginIframeMirror",new Jl(le)),A(this,"crossOriginIframeStyleMirror"),A(this,"crossOriginIframeRootIdMap",new WeakMap),A(this,"iframeContentDocumentMap",new WeakMap),A(this,"iframeObserverCleanupMap",new WeakMap),A(this,"mirror"),A(this,"mutationCb"),A(this,"wrappedEmit"),A(this,"loadListener"),A(this,"stylesheetManager"),A(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=ne
vendor: 1,143 bytes, line 2
2w Jl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var n=this.iframeObserverCleanupMap.get(e);if(n){try{n()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}
2),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(n=e.contentWindow)||n.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var n=this.crossOriginIframeMap.get(e.source);if(n){var r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var n,r=this;switch(t.type){case kl.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var o=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,o),this.patchRootIdOnNode(t.data.node,o),{timestamp:t.timestamp,type:kl.IncrementalSnapshot,data:{source:_l.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case kl.Meta:case kl.Load:case kl.DomContentLoaded:return!1;case kl.Plugin:return t;case kl.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case kl.IncrementalSnapshot:switch(t.data.source){case _l.Mutation:return t.data.adds.forEach(function(t){r.replaceIds(t,e,["parentId","nextId","previousId"]),r.replaceIdOnNode(t.node,e);var n=r.crossOriginIframeRootIdMap.get(e);n&&r.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(function(t){r.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){r.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case _l.Drag:case _l.TouchMove:case _l.MouseMove:return t.data.positions.forEach(function(t){r.replaceIds(t,e,["id"])}),t;case _l.ViewportResize:return!1;case _l.MediaInteraction:case _l.MouseInteraction:case _l.Scroll:case _l.CanvasMutation:case _l.Input:return this.replaceIds(t.data,e,["id"]),t;case _l.StyleSheetRule:case _l.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _l.Font:return t;case _l.Selection:return t.data.ranges.forEach(function(t){r.replaceIds(t,e,["start","end"])}),t;case _l.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEach(function(t){r.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,n,r){for(var o,i=k(r);!(o=i()).done;){var s=o.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]))}return t},t.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},t.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},t.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var n=this;e.type===El.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})},e}(),ec=function(){function e(e){A(this,"shadowDoms",new WeakSet),A(this,"mutationCb"),A(this,"scrollCb"),A(this,"bypassOptions"),A(this,"mirror"),A(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var n=this;if($(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var r=Hl(f({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return r.disconnect()}),this.restoreHandlers.push(zl(f({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(el.host(e))),n.restoreHandlers.push(Kl({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var n=this;this.restoreHandlers.push(Za(e.prototype,"attachShadow",function(e){return function(r){var o=e.call(this,r),i=el.shadowRoot(this);return i&&Sl(this)&&n.addShadowRoot(i,t),o}}))}
2,t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),tc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rc=0;rc<64;rc++)nc[tc.charCodeAt(rc)]=rc;var oc=new Map;var ic=function(e,t,n){if(e&&(lc(e,t)||"object"===(void 0===e?"undefined":b(e)))){var r=function(e,t){var n=oc.get(e);return n||(n=new Map,oc.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name),o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o}};function sc(e,t,n){if(v(e,Array))return e.map(function(e){return sc(e,t,n)});if(null===e)return e;if(v(e,Float32Array)||v(e,Float64Array)||v(e,Int32Array)||v(e,Uint32Array)||v(e,Uint8Array)||v(e,Uint16Array)||v(e,Int16Array)||v(e,Int8Array)||v(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};if(v(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=tc[n[t]>>2],o+=tc[(3&n[t])<<4|n[t+1]>>4],o+=tc[(15&n[t+1])<<2|n[t+2]>>6],o+=tc[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)};if(v(e,DataView))return{rr_type:e.constructor.name,args:[sc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(v(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};if(v(e,HTMLCanvasElement)){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return v(e,ImageData)?{rr_type:e.constructor.name,args:[sc(e.data,t,n),e.width,e.height]}:lc(e,t)||"object"===(void 0===e?"undefined":b(e))?{rr_type:e.constructor.name,index:ic(e,t,n)}:e}var ac=function(e,t,n){return e.map(function(e){return sc(e,t,n)})},lc=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(n.find(function(n){return v(e,t[n])}))};function cc(e,t,n,r){var o=[];try{var i=Za(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];if(!dl(this,t,n,!0)){var l=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=l),r&&["webgl","webgl2"].includes(l))if(s[0]&&"object"===b(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([o],s))}});o.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){o.forEach(function(e){return e()})}}function uc(e,t,n,r,o,i){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var c=Za(e,a,function(e){return function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=e.apply(this,l);if(ic(u,i,this),"tagName"in this.canvas&&!dl(this.canvas,r,o,!0)){var d=ac(l,i,this),p={type:t,property:a,args:d};n(this.canvas,p)}return u}});l.push(c)}catch(r){var u=il(e,a,{set:function(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(u)}},l=[],c=k(Object.getOwnPropertyNames(e));!(s=c()).done;)a();return l}var dc,pc="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
2yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",fc="undefined"!=typeof window&&window.Blob&&new Blob([(dc=pc,Uint8Array.from(atob(dc),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function hc(e){var t;try{if(!(t=fc&&(window.URL||window.webkitURL).createObjectURL(fc)))throw"";var n=new Worker(t,{name:null==e?void 0:e.name});return n.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;base64,"+pc,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var mc,vc,gc,yc=function(){function e(e){var t=this;A(this,"pendingCanvasMutations",new Map),A(this,"rafStamps",{latestId:0,invokeId:null}),A(this,"mirror"),A(this,"mutationCb"),A(this,"resetObservers"),A(this,"frozen",!1),A(this,"locked",!1),A(this,"processMutation",function(e,n){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(n)});var n=e.sampling,r=void 0===n?"all":n,o=e.win,i=e.blockClass,s=e.blockSelector,a=e.recordCanvas,l=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===r&&this.initCanvasMutationObserver(o,i,s),a&&"number"==typeof r&&this.initCanvasFPSObserver(r,o,i,s,{dataURLOptions:l})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,n,r,o){var i=this,s=cc(t,n,r,!0),a=new Map,l=new hc;l.onmessage=function(e){var t=e.data.id;
2if(a.set(t,!1),"base64"in e.data){var n=e.data,r=n.base64,o=n.type,s=n.width,l=n.height;i.mutationCb({id:t,type:Tl["2D"],commands:[{property:"clearRect",args:[0,0,s,l]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0]}]})}};var c,d=1e3/e,p=0,f=function(e){if(p&&e-p<d)c=requestAnimationFrame(f);else{p=e;var s,h=i;(s=[],t.document.querySelectorAll("canvas").forEach(function(e){dl(e,n,r,!0)||s.push(e)}),s).forEach(u(function(e){var t,n,r,i;return _(this,function(s){switch(s.label){case 0:return n=h.mirror.getId(e),a.get(n)?[2]:0===e.width||0===e.height?[2]:(a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(r=e.getContext(e.__context),!1===(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return i=s.sent(),l.postMessage({id:n,bitmap:i,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[i]),[2]}})})),c=requestAnimationFrame(f)}};c=requestAnimationFrame(f),this.resetObservers=function(){s(),cancelAnimationFrame(c)}},t.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=cc(e,t,n,!1),o=function(e,t,n,r){for(var o,i=function(){var i=o.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])return"continue";var a=Za(t.CanvasRenderingContext2D.prototype,i,function(o){return function(){for(var s=this,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return dl(this.canvas,n,r,!0)||setTimeout(function(){var n=ac(l,t,s);e(s.canvas,{type:Tl["2D"],property:i,args:n})},0),o.apply(this,l)}});s.push(a)}catch(n){var l=il(t.CanvasRenderingContext2D.prototype,i,{set:function(t){e(this.canvas,{type:Tl["2D"],property:i,args:[t],setter:!0})}});s.push(l)}},s=[],a=k(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(o=a()).done;)i();return function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n),i=function(e,t,n,r){var o,i,s=[];return(o=s).push.apply(o,[].concat(uc(t.WebGLRenderingContext.prototype,Tl.WebGL,e,n,r,t))),void 0!==t.WebGL2RenderingContext&&(i=s).push.apply(i,[].concat(uc(t.WebGL2RenderingContext.prototype,Tl.WebGL2,e,n,r,t))),function(){s.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){r(),o(),i()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var r=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var n=this.pendingCanvasMutations.get(e);if(n&&-1!==t){var r=n.map(function(e){return e.type,g(e,["type"])}),o=n[0].type;this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}},e}(),bc=function(){function e(e){A(this,"trackedLinkElements",new WeakSet),A(this,"mutationCb"),A(this,"adoptedStyleSheetCb"),A(this,"styleMirror",new yl),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var n,r=function(){var e=o.value,t=void 0;n.styleMirror.has(e)?t=n.styleMirror.getId(e):(t=n.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,n){return{rule:W(t,e.href),index:n}})})),i.styleIds.push(t)};if(0!==e.length){for(var o,i={id:t,styleIds:[]},s=[],a=k(e);!(o=a()).done;)n=this,r();s.length>0&&(i.styles=s),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var n=e;if(n.adoptedStyleSheets)for(var r,o=k(n.adoptedStyleSheets);!(r=o()).done;){var i=r.value;this.styleMirror.remove(i)}}
2if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),wc=function(){function e(){A(this,"nodeMap",new WeakMap),A(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(e){return e!==t})},t.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),Sc=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var kc=document.createElement("iframe");document.body.appendChild(kc),Array.from=(null==(C=kc.contentWindow)?void 0:C.Array.from)||Array.from,document.body.removeChild(kc)}}catch(e){console.debug("Unable to override Array.from",e)}var _c,Oc,Cc=new G;function Tc(e){void 0===e&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,o=e.blockClass,i=void 0===o?"rr-block":o,s=e.blockSelector,a=void 0===s?null:s,l=e.ignoreClass,c=void 0===l?"rr-ignore":l,u=e.ignoreSelector,d=void 0===u?null:u,p=e.maskTextClass,h=void 0===p?"rr-mask":p,m=e.maskTextSelector,v=void 0===m?null:m,g=e.inlineStylesheet,y=void 0===g||g,b=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,_=e.maskInputFn,O=e.maskTextFn,C=e.hooks,T=e.packFn,A=e.sampling,E=void 0===A?{}:A,x=e.dataURLOptions,P=void 0===x?{}:x,I=e.mousemoveWait,L=e.recordDOM,j=void 0===L||L,M=e.recordCanvas,D=void 0!==M&&M,R=e.recordCrossOriginIframes,N=void 0!==R&&R,F=e.recordAfter,B=void 0===F?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":F,U=e.userTriggeredOnInput,H=void 0!==U&&U,$=e.collectFonts,z=void 0!==$&&$,W=e.inlineImages,X=void 0!==W&&W,V=e.plugins,K=e.keepIframeSrcFn,q=void 0===K?function(){return!1}:K,Y=e.ignoreCSSAttributes,Q=void 0===Y?new Set([]):Y,J=e.errorHandler;Pl=J;var Z=!N||window.parent===window,ee=!1;if(!Z)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Z&&!t)throw new Error("emit function is required");if(!Z&&!ee)return function(){};void 0!==I&&void 0===E.mousemove&&(E.mousemove=I),Cc.reset();var te,ne=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==w?w:{password:!0},re=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S,headTitleMutations:"all"===S}:S||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var oe=0,ie=function(e){for(var t,n=k(V||[]);!(t=n()).done;){var r=t.value;r.eventProcessor&&(e=r.eventProcessor(e))}return T&&!ee&&(e=T(e)),e};mc=function(e,o){var i,s=e;if(s.timestamp=sl(),!(null==(i=Bl[0])?void 0:i.isFrozen())||s.type===kl.FullSnapshot||s.type===kl.IncrementalSnapshot&&s.data.source===_l.Mutation||Bl.forEach(function(e){return e.unfreeze()}),Z)null==t||t(ie(s),o);else if(ee){var a={type:"rrweb",event:ie(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(a,"*")}if(s.type===kl.FullSnapshot)te=s,oe=0;else if(s.type===kl.IncrementalSnapshot){if(s.data.source===_l.Mutation&&s.data.isAttachIframe)return;oe++;var l=r&&oe>=r,c=n&&s.timestamp-te.timestamp>n;(l||c)&&vc(!0)}};for(var se,ae=function(e){mc({type:kl.IncrementalSnapshot,data:f({source:_l.Mutation},e)})},le=function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.Scroll},e)})},ce=function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.CanvasMutation},e)})},ue=new bc({mutationCb:ae,adoptedStyleSheetCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.AdoptedStyleSheet},e)})}}),de=new Zl({mirror:Cc,mutationCb:ae,stylesheetManager:ue,recordCrossOriginIframes:N,wrappedEmit:mc}),pe=k(V||[]);!(se=pe()).done;){var fe=se.value;fe.getMirror&&fe.getMirror({nodeMirror:Cc,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror})}var he=new wc;gc=new yc({recordCanvas:D,mutationCb:ce,win:window,blockClass:i,blockSelector:a,mirror:Cc,sampling:E.canvas,dataURLOptions:P});var me=new ec({mutationCb:ae,scrollCb:le,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:v,inlineStylesheet:y,maskInputOptions:ne,dataURLOptions:P,maskTextFn:O,maskInputFn:_,recordCanvas:D,inlineImages:X,sampling:E,slimDOMOptions:re,iframeManager:de,stylesheetManager:ue,canvasManager:gc,keepIframeSrcFn:q,processedNodeManager:he},mirror:Cc});vc=function(e){if(void 0===e&&(e=!1),j){mc({type:kl.Meta,data:{href:window.location.href,width:cl(),height:ll()}}
2,e),ue.reset(),me.init(),Bl.forEach(function(e){return e.lock()});var t=function(e,t){var n=t||{},r=n.mirror,o=void 0===r?new G:r,i=n.blockClass,s=void 0===i?"rr-block":i,a=n.blockSelector,l=void 0===a?null:a,c=n.maskTextClass,u=void 0===c?"rr-mask":c,d=n.maskTextSelector,p=void 0===d?null:d,f=n.inlineStylesheet,h=void 0===f||f,m=n.inlineImages,v=void 0!==m&&m,g=n.recordCanvas,y=void 0!==g&&g,b=n.maskAllInputs,w=void 0!==b&&b,S=n.maskTextFn,k=n.maskInputFn,_=n.slimDOM,O=void 0!==_&&_,C=n.dataURLOptions,T=n.preserveWhiteSpace,A=n.onSerialize,E=n.onIframeLoad,x=n.iframeLoadTimeout,P=n.onStylesheetLoad,I=n.stylesheetLoadTimeout,L=n.keepIframeSrcFn;return Se(e,{doc:e,mirror:o,blockClass:s,blockSelector:l,maskTextClass:u,maskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:!0===w?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===w?{password:!0}:w,maskTextFn:S,maskInputFn:k,slimDOMOptions:!0===O||"all"===O?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===O,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===O?{}:O,dataURLOptions:C,inlineImages:v,recordCanvas:y,preserveWhiteSpace:T,onSerialize:A,onIframeLoad:E,iframeLoadTimeout:x,onStylesheetLoad:P,stylesheetLoadTimeout:I,keepIframeSrcFn:void 0===L?function(){return!1}:L,newlyAddedElement:!1})}(document,{mirror:Cc,blockClass:i,blockSelector:a,maskTextClass:h,maskTextSelector:v,inlineStylesheet:y,maskAllInputs:ne,maskTextFn:O,maskInputFn:_,slimDOM:re,dataURLOptions:P,recordCanvas:D,inlineImages:X,onSerialize:function(e){ml(e,Cc)&&de.addIframe(e),vl(e,Cc)&&ue.trackLinkElement(e),gl(e)&&me.addShadowRoot(el.shadowRoot(e),document)},onIframeLoad:function(e,t){de.attachIframe(e,t),me.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ue.attachLinkElement(e,t)},keepIframeSrcFn:q});if(!t)return console.warn("Failed to snapshot the document");mc({type:kl.FullSnapshot,data:{node:t,initialOffset:al(window)}},e),Bl.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ue.adoptStyleSheets(document.adoptedStyleSheets,Cc.getId(document))}};try{var ve=[],ge=function(e){var t;return Fl(ql)({mutationCb:ae,mousemoveCb:function(e,t){return mc({type:kl.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.MouseInteraction},e)})},scrollCb:le,viewportResizeCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.ViewportResize},e)})},inputCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.Input},e)})},mediaInteractionCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.MediaInteraction},e)})},styleSheetRuleCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.StyleSheetRule},e)})},styleDeclarationCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.StyleDeclaration},e)})},canvasMutationCb:ce,fontCb:function(e){return mc({type:kl.IncrementalSnapshot,data:f({source:_l.Font},e)})},selectionCb:function(e){mc({type:kl.IncrementalSnapshot,data:f({source:_l.Selection},e)})},customElementCb:function(e){mc({type:kl.IncrementalSnapshot,data:f({source:_l.CustomElement},e)})},blockClass:i,ignoreClass:c,ignoreSelector:d,maskTextClass:h,maskTextSelector:v,maskInputOptions:ne,inlineStylesheet:y,sampling:E,recordDOM:j,recordCanvas:D,inlineImages:X,userTriggeredOnInput:H,collectFonts:z,doc:e,maskInputFn:_,maskTextFn:O,keepIframeSrcFn:q,blockSelector:a,slimDOMOptions:re,dataURLOptions:P,mirror:Cc,iframeManager:de,stylesheetManager:ue,shadowDomManager:me,processedNodeManager:he,canvasManager:gc,ignoreCSSAttributes:Q,plugins:(null==(t=null==V?void 0:V.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return mc({type:kl.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},C)};de.addLoadListener(function(e){try{var t=e.contentDocument,n=ge(t);ve.push(n);var r=de.getObserverCleanup(e);de.setObserverCleanup(e,function(){if(r)try{r()}catch(e){}try{n();var e=ve.indexOf(n);-1!==e&&ve.splice(e,1),function(e){for(var t=Bl.length-1;t>=0;t--)Bl[t].getDoc()===e&&Bl.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var ye=function(){vc(),ve.push(ge(document)),Sc=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(ve.push(tl("DOMContentLoaded",function(){mc({type:kl.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&ye()})),ve.push(tl("load",function(){mc({type:kl.Load,data:{}}),"load"===B&&ye()},window))),function(){ve.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),he.destroy(),Sc=!1,Pl=void 0}}catch(e){console.warn(e)}}Tc.addCustomEvent=function(e,t){if(!Sc)throw new Error("please add custom event after start recording");mc({type:kl.Custom,data:{tag:e,payload:t}}
vendor: 5,419 bytes, line 2
2)},Tc.freezePage=function(){Bl.forEach(function(e){return e.freeze()})},Tc.takeFullSnapshot=function(e){if(!Sc)throw new Error("please take full snapshot after start recording");vc(e)},Tc.mirror=Cc,(Oc=_c||(_c={}))[Oc.NotStarted=0]="NotStarted",Oc[Oc.Running=1]="Running",Oc[Oc.Stopped=2]="Stopped",Tc.addCustomEvent,Tc.freezePage,Tc.takeFullSnapshot;var Ac={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ec={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xc={};function Pc(e){if(xc[e])return xc[e];var t=globalThis[e],n=t.prototype,r=e in Ac?Ac[e]:void 0,o=Boolean(r&&r.every(function(e){var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),i=e in Ec?Ec[e]:void 0,s=Boolean(i&&i.every(function(e){var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(o&&s&&!globalThis.Zone)return xc[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(a),c?xc[e]=c:n}catch(e){return n}}var Ic={};function Lc(e,t,n){var r,o=e+"."+String(n);if(Ic[o])return Ic[o].call(t);var i=Pc(e),s=null==(r=Object.getOwnPropertyDescriptor(i,n))?void 0:r.get;return s?(Ic[o]=s,s.call(t)):t[n]}var jc={};function Mc(e,t,n){var r=e+"."+String(n);if(jc[r])return jc[r].bind(t);var o=Pc(e)[n];return"function"!=typeof o?t[n]:(jc[r]=o,o.bind(t))}var Dc={childNodes:function(e){return Lc("Node",e,"childNodes")},parentNode:function(e){return Lc("Node",e,"parentNode")},parentElement:function(e){return Lc("Node",e,"parentElement")},textContent:function(e){return Lc("Node",e,"textContent")},contains:function(e,t){return Mc("Node",e,"contains")(t)},getRootNode:function(e){return Mc("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Lc("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Lc("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Lc("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Lc("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Pc("MutationObserver").constructor},patch:function(e,t,n){try{if(!(t in e))return function(){};var r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,function(){e[t]=r}}catch(e){return function(){}}}};function Rc(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Rc(Dc.parentNode(e),t);for(var r=e.classList.length;r--;){var o=e.classList[r];if(t.test(o))return!0}return Rc(Dc.parentNode(e),t)}function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Bc={exports:{}},Uc=String,Hc=function(){return{isColorSupported:!1,reset:Uc,bold:Uc,dim:Uc,italic:Uc,underline:Uc,inverse:Uc,hidden:Uc,strikethrough:Uc,black:Uc,red:Uc,green:Uc,yellow:Uc,blue:Uc,magenta:Uc,cyan:Uc,white:Uc,gray:Uc,bgBlack:Uc,bgRed:Uc,bgGreen:Uc,bgYellow:Uc,bgBlue:Uc,bgMagenta:Uc,bgCyan:Uc,bgWhite:Uc}};Bc.exports=Hc(),Bc.exports.createColors=Hc;var $c=Bc.exports,zc=Fc(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Wc=$c,Gc=zc,Xc=function(e){function t(n,r,o,i,s,a){var l;return(l=e.call(this,n)||this).name="CssSyntaxError",l.reason=n,s&&(l.file=s),i&&(l.source=i),a&&(l.plugin=a),void 0!==r&&void 0!==o&&("number"==typeof r?(l.line=r,l.column=o):(l.line=r.line,l.column=r.column,l.endLine=o.line,l.endColumn=o.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}m(t,e);var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;null==e&&(e=Wc.isColorSupported),Gc&&e&&(n=Gc(n));var r,o,i=n.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),l=String(a).length;if(e){var c=Wc.createColors(!0),u=c.bold,d=c.gray,p=c.red;r=function(e){return u(p(e))},o=function(e){return d(e)}}else r=o=function(e){return e};return i.slice(s,a).map(function(e,n){var i=s+1+n,a=" "+(" "+i).slice(-l)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return r(">")+o(a)+e+"\n "+c+r("^")}return" "+o(a)+e}).join("\n")},n.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error)),Vc=Xc;Xc.default=Xc;var Kc={};Kc.isClean=Symbol("isClean"),Kc.my=Symbol("my");
2var qc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Yc=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}},t.beforeAfter=function(e,t){var n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(n.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)n+=i}return n},t.block=function(e,t){var n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},t.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||(n=t),t&&void 0!==(r=e.raws[t]))return r;var o=e.parent;if("before"===n){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return qc[n];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[n])return i.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s,a="raw"+((s=n)[0].toUpperCase()+s.slice(1));return this[a]?r=this[a](i,e):i.walk(function(e){if(void 0!==(r=e.raws[t]))return!1}),void 0===r&&(r=qc[n]),i.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(n=e.raws.before).includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return(t=n.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var o=n.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Qc=Yc;Yc.default=Yc;var Jc=Qc;function Zc(e,t){new Jc(t).stringify(e)}var eu=Zc;Zc.default=Zc;var tu=Kc.isClean,nu=Kc.my,ru=Vc,ou=Qc,iu=eu;function su(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&"proxyCache"!==r){var o=e[r],i=void 0===o?"undefined":b(o);"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:Array.isArray(o)?n[r]=o.map(function(e){return su(e,n)}):("object"===i&&null!==o&&(o=su(o)),n[r]=o)}return n}var au=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[tu]=!1,this[nu]=!0,e)if("nodes"===t){this.nodes=[];for(var n,r=k(e[t]);!(n=r()).done;){var o=n.value;"function"==typeof o.clone?this.append(o.clone()):this.append(o)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=su(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,o=n.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:r.column,line:r.line},t)}return new ru(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[tu]){this[tu]=!1;for(var e=this;e=e.parent;)e[tu]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);
2else if(e.word){var r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===n[i]?(r=1,o+=1):r+=1;return{column:r,line:o}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var r=this.toString(),o=r.indexOf(e.word);-1!==o&&(t=this.positionInside(o,r),n=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return(new ou).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var r,o=this,i=!1,s=k(t);!(r=s()).done;){var a=r.value;a===this?i=!0:i?(this.parent.insertAfter(o,a),o=a):this.parent.insertBefore(o,a)}i||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=null==t;t=t||new Map;var o=0;for(var i in this)if(Object.prototype.hasOwnProperty.call(this,i)&&"parent"!==i&&"proxyCache"!==i){var s=this[i];if(Array.isArray(s))n[i]=s.map(function(e){return"object"===(void 0===e?"undefined":b(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===s?"undefined":b(s))&&s.toJSON)n[i]=s.toJSON(null,t);else if("source"===i){var a=t.get(s.input);null==a&&(a=o,t.set(s.input,o),o++),n[i]={end:s.end,inputId:a,start:s.start}}else n[i]=s}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=iu),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)},p(e,[{key:"proxyOf",get:function(){return this}}]),e}(),lu=au;au.default=au;var cu=function(e){function t(t){var n;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=f({},t,{value:String(t.value)})),(n=e.call(this,t)||this).type="decl",n}return m(t,e),p(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(lu),uu=cu;cu.default=cu;var du=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},pu=zc.SourceMapConsumer,fu=zc.SourceMapGenerator,hu=zc.existsSync,mu=zc.readFileSync,vu=zc.dirname,gu=zc.join;var yu=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=vu(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new pu(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":b(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
2if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=vu(e),hu(e))return this.mapFile=e,mu(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(v(t,pu))return fu.fromSourceMap(t).toString();if(v(t,fu))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw new Error("Unable to load previous source map: "+n.toString());return r}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=gu(vu(e),o)),this.loadFile(o)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),bu=yu;yu.default=yu;var wu=zc.SourceMapConsumer,Su=zc.SourceMapGenerator,ku=zc.fileURLToPath,_u=zc.pathToFileURL,Ou=zc.isAbsolute,Cu=zc.resolve,Tu=du,Au=zc,Eu=Vc,xu=bu,Pu=Symbol("fromOffsetCac
2he"),Iu=Boolean(wu&&Su),Lu=Boolean(Cu&&Ou),ju=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":b(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Lu||/^\w+:\/\//.test(t.from)||Ou(t.from)?this.file=t.from:this.file=Cu(t.from)),Lu&&Iu){var n=new xu(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+Tu(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){var o,i,s;if(void 0===r&&(r={}),t&&"object"===(void 0===t?"undefined":b(t))){var a=t,l=n;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,n=c.col}else t=a.line,n=a.column;if("number"==typeof l.offset){var u=this.fromOffset(l.offset);i=u.line,s=u.col}else i=l.line,s=l.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var p=this.origin(t,n,i,s);return(o=p?new Eu(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,r.plugin):new Eu(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:s,line:i},this.css,this.file,r.plugin)).input={column:n,endColumn:s,endLine:i,line:t,source:this.css},this.file&&(_u&&(o.input.url=_u(this.file).toString()),o.input.file=this.file),o},t.fromOffset=function(e){var t;if(this[Pu])t=this[Pu];else{var n=this.css.split("\n");t=new Array(n.length);for(var r=0,o=0,i=n.length;o<i;o++)t[o]=r,r+=n[o].length+1;this[Pu]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,l=t.length-2;s<l;)if(e<t[a=s+(l-s>>1)])l=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Cu(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof n&&(o=s.originalPositionFor({column:r,line:n})),i=Ou(a.source)?_u(a.source):new URL(a.source,this.map.consumer().sourceRoot||_u(this.map.mapFile));var l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!ku)throw new Error("file: protocol is not available in this PostCSS build");l.file=ku(i)}var c=s.sourceContentFor(a.source);return c&&(l.source=c),l},t.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var r=n[t];null!=this[r]&&(e[r]=this[r])}return this.map&&(e.map=f({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},p(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Mu=ju;ju.default=ju,Au&&Au.registerInput&&Au.registerInput(ju);var Du=zc.SourceMapConsumer,Ru=zc.SourceMapGenerator,Nu=zc.dirname,Fu=zc.relative,Bu=zc.resolve,Uu=zc.sep,Hu=zc.pathToFileURL,$u=Mu,zu=Boolean(Du&&Ru),Wu=Boolean(Nu&&Bu&&Fu&&Uu),Gu=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=k(this.previous());!(e=t()).done;){var n=e.value,r=this.toUrl(this.path(n.file)),o=n.root||Nu(n.file),i=void 0;!1===this.mapOpts.sourcesContent?(i=new Du(n.text)).sourcesContent&&(i.sourcesContent=null):i=n.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(o)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Wu&&zu&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ru.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ru({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Ru({file:this.outputFile(),ignoreInvalidMapping:!0});var t,n,r=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,l,c){if(e.css+=a,l&&"end"!==c&&(s.generated.line=r,s.generated.column=o-1,l.source&&l.source.start?(s.source=e.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(r+=t.length,n=a.lastIndexOf("\n"),o=a.length-n):o+=a.length,l&&"start"!==c){var u=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===u.last&&!u.raws.semicolon||(l.source&&l.source.end?(s.source=e.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=r,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=o-1,e.map.addMapping(s)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Nu(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=Nu(Bu(n,this.mapOpts.annotation)));var r=Fu(n,e);return this.memoizedPaths.set(e,r),r},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new $u(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var o=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Hu){var n=Hu(e).toString();return this.memoizedFileURLs.set(e,n),n}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Uu&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),Xu=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="comment",n}return m(t,e),t}(lu),Vu=Xu;Xu.default=Xu;var Ku,qu,Yu,Qu,Ju=Kc.isClean,Zu=Kc.my,ed=uu,td=Vu;
2function nd(e){return e.map(function(e){return e.nodes&&(e.nodes=nd(e.nodes)),delete e.source,e})}function rd(e){if(e[Ju]=!1,e.proxyOf.nodes)for(var t,n=k(e.proxyOf.nodes);!(t=n()).done;){rd(t.value)}}var od=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var n=t.prototype;return n.append=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,o=k(t);!(r=o()).done;)for(var i,s=r.value,a=k(this.normalize(s,this.last));!(i=a()).done;){var l=i.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n,r=k(this.nodes);!(n=r()).done;){n.value.cleanRaws(t)}},n.each=function(e){if(this.proxyOf.nodes){for(var t,n,r=this.getIterator();this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],!1!==(n=e(this.proxyOf.nodes[t],t)));)this.indexes[r]+=1;return delete this.indexes[r],n}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i;return(i=e)[t].apply(i,[].concat(r.map(function(e){return"function"==typeof e?function(t,n){return e(t.toProxy(),n)}:e})))}:"every"===t||"some"===t?function(n){return e[t](function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return n.apply(void 0,[].concat([e.toProxy()],r))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},n.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n,r=this.index(e),o=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(var i,s=k(o);!(i=s()).done;){var a=i.value;this.proxyOf.nodes.splice(r+1,0,a)}for(var l in this.indexes)r<(n=this.indexes[l])&&(this.indexes[l]=n+o.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n,r=this.index(e),o=0===r&&"prepend",i=this.normalize(t,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(var s,a=k(i);!(s=a()).done;){var l=s.value;this.proxyOf.nodes.splice(r,0,l)}for(var c in this.indexes)r<=(n=this.indexes[c])&&(this.indexes[c]=n+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if("string"==typeof e)e=nd(Ku(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var o,i=k(e=e.slice(0));!(o=i()).done;){var s=o.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,l=k(e=e.nodes.slice(0));!(a=l()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ed(e)]}else if(e.selector)e=[new qu(e)];else if(e.name)e=[new Yu(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new td(e)]}var u=e.map(function(e){return e[Zu]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ju]&&rd(e),void 0===e.raws.before&&n&&void 0!==n.raws.before&&(e.raws.before=n.raws.before.replace(/\S/g,"")),e.parent=r.proxyOf,e});return u},n.prepend=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r,o=k(t=t.reverse());!(r=o()).done;){for(var i,s=r.value,a=this.normalize(s,this.first,"prepend").reverse(),l=k(a);!(i=l()).done;){var c=i.value;this.proxyOf.nodes.unshift(c)}for(var u in this.indexes)this.indexes[u]=this.indexes[u]+a.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e,t=k(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){var t;for(var n in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},n.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},n.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))},p(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(lu);od.registerParse=function(e){Ku=e},od.registerRule=function(e){qu=e},od.registerAtRule=function(e){Yu=e},od.registerRoot=function(e){Qu=e};var id=od;od.default=od,od.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Yu.prototype):"rule"===e.type?Object.setPrototypeOf(e,qu.prototype):"decl"===e.type?Object.setPrototypeOf(e,ed.prototype):"comment"===e.type?Object.setPrototypeOf(e,td.prototype):"root"===e.type&&Object.setPrototypeOf(e,Qu.prototype),e[Zu]=!0,e.nodes&&e.nodes.forEac
2h(function(e){od.rebuild(e)})};var sd,ad,ld=function(e){function t(t){var n;return(n=e.call(this,f({type:"document"},t))||this).nodes||(n.nodes=[]),n}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sd(new ad,this,e).stringify()},t}(id);ld.registerLazyResult=function(e){sd=e},ld.registerProcessor=function(e){ad=e};var cd=ld;ld.default=ld;var ud=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),dd=ud;ud.default=ud;var pd=dd,fd=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new pd(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},p(e,[{key:"content",get:function(){return this.css}}]),e}(),hd=fd;fd.default=fd;var md="'".charCodeAt(0),vd='"'.charCodeAt(0),gd="\\".charCodeAt(0),yd="/".charCodeAt(0),bd="\n".charCodeAt(0),wd=" ".charCodeAt(0),Sd="\f".charCodeAt(0),kd="\t".charCodeAt(0),_d="\r".charCodeAt(0),Od="[".charCodeAt(0),Cd="]".charCodeAt(0),Td="(".charCodeAt(0),Ad=")".charCodeAt(0),Ed="{".charCodeAt(0),xd="}".charCodeAt(0),Pd=";".charCodeAt(0),Id="*".charCodeAt(0),Ld=":".charCodeAt(0),jd="@".charCodeAt(0),Md=/[\t\n\f\r "#'()/;[\\\]{}]/g,Dd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Rd=/.[\r\n"'(/\\]/,Nd=/[\da-f]/i,Fd=id,Bd=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="atrule",n}m(t,e);var n=t.prototype;return n.append=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=e.prototype.append).call.apply(o,[].concat([this],n))},n.prepend=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=e.prototype.prepend).call.apply(o,[].concat([this],n))},t}(Fd),Ud=Bd;Bd.default=Bd,Fd.registerAtRule(Bd);var Hd,$d,zd=id,Wd=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="root",n.nodes||(n.nodes=[]),n}m(t,e);var n=t.prototype;return n.normalize=function(t,n,r){var o=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var i,s=k(o);!(i=s()).done;){i.value.raws.before=n.raws.before}return o},n.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return void 0===e&&(e={}),new Hd(new $d,this,e).stringify()},t}(zd);Wd.registerLazyResult=function(e){Hd=e},Wd.registerProcessor=function(e){$d=e};var Gd=Wd;Wd.default=Wd,zd.registerRoot(Wd);var Xd={comma:function(e){return Xd.split(e,[","],!0)},space:function(e){return Xd.split(e,[" ","\n","\t"])},split:function(e,t,n){for(var r,o=[],i="",s=!1,a=0,l=!1,c="",u=!1,d=k(e);!(r=d()).done;){var p=r.value;u?u=!1:"\\"===p?u=!0:l?p===c&&(l=!1):'"'===p||"'"===p?(l=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==i&&o.push(i.trim()),i="",s=!1):i+=p}return(n||""!==i)&&o.push(i.trim()),o}},Vd=Xd;Xd.default=Xd;var Kd=id,qd=Vd,Yd=function(e){function t(t){var n;return(n=e.call(this,t)||this).type="rule",n.nodes||(n.nodes=[]),n}return m(t,e),p(t,[{key:"selectors",get:function(){return qd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(Kd),Qd=Yd;Yd.default=Yd,Kd.registerRule(Yd);var Jd=uu,Zd=function(e,t){void 0===t&&(t={});var n,r,o,i,s,a,l,c,u,d,p=e.css.valueOf(),f=t.ignoreErrors,h=p.length,m=0,v=[],g=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){g.push(e)},endOfFile:function(){return 0===g.length&&m>=h},nextToken:function(e){if(g.length)return g.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;
vendor: 7,019 bytes, line 2
2switch(n=p.charCodeAt(m)){case bd:case wd:case kd:case _d:case Sd:r=m;do{r+=1,n=p.charCodeAt(r)}while(n===wd||n===bd||n===kd||n===_d||n===Sd);d=["space",p.slice(m,r)],m=r-1;break;case Od:case Cd:case Ed:case xd:case Ld:case Pd:case Ad:var b=String.fromCharCode(n);d=[b,b,m];break;case Td:if(c=v.length?v.pop()[1]:"",u=p.charCodeAt(m+1),"url"===c&&u!==md&&u!==vd&&u!==wd&&u!==bd&&u!==kd&&u!==Sd&&u!==_d){r=m;do{if(a=!1,-1===(r=p.indexOf(")",r+1))){if(f||t){r=m;break}y("bracket")}for(l=r;p.charCodeAt(l-1)===gd;)l-=1,a=!a}while(a);d=["brackets",p.slice(m,r+1),m,r],m=r}else r=p.indexOf(")",m+1),i=p.slice(m,r+1),-1===r||Rd.test(i)?d=["(","(",m]:(d=["brackets",i,m,r],m=r);break;case md:case vd:o=n===md?"'":'"',r=m;do{if(a=!1,-1===(r=p.indexOf(o,r+1))){if(f||t){r=m+1;break}y("string")}for(l=r;p.charCodeAt(l-1)===gd;)l-=1,a=!a}while(a);d=["string",p.slice(m,r+1),m,r],m=r;break;case jd:Md.lastIndex=m+1,Md.test(p),r=0===Md.lastIndex?p.length-1:Md.lastIndex-2,d=["at-word",p.slice(m,r+1),m,r],m=r;break;case gd:for(r=m,s=!0;p.charCodeAt(r+1)===gd;)r+=1,s=!s;if(n=p.charCodeAt(r+1),s&&n!==yd&&n!==wd&&n!==bd&&n!==kd&&n!==_d&&n!==Sd&&(r+=1,Nd.test(p.charAt(r)))){for(;Nd.test(p.charAt(r+1));)r+=1;p.charCodeAt(r+1)===wd&&(r+=1)}d=["word",p.slice(m,r+1),m,r],m=r;break;default:n===yd&&p.charCodeAt(m+1)===Id?(0===(r=p.indexOf("*/",m+2)+1)&&(f||t?r=p.length:y("comment")),d=["comment",p.slice(m,r+1),m,r],m=r):(Dd.lastIndex=m+1,Dd.test(p),r=0===Dd.lastIndex?p.length-1:Dd.lastIndex-2,d=["word",p.slice(m,r+1),m,r],v.push(d),m=r)}return m++,d}},position:function(){return m}}},ep=Vu,tp=Ud,np=Gd,rp=Qd,op={empty:!0,space:!0};var ip=function(){function e(e){this.input=e,this.root=new np,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,n,r,o=new tp;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(n=a[r=a.length-1];n&&"space"===n[0];)n=a[--r];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n,r=0,o=t-1;o>=0&&("space"===(n=e[o])[0]||2!==(r+=1));o--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}},t.colon=function(e){for(var t,n,r,o,i=0,s=k(e.entries());!(o=s()).done;){var a=o.value,l=a[0];if("("===(n=(t=a[1])[0])&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return l}this.doubleColon(t)}r=t}return!1},t.comment=function(e){var t=new ep;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=Zd(this.input)},t.decl=function(e,t){var n=new Jd;this.init(n,e[0][2]);var r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(":"===(r=e.shift())[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(r=e[l])[1].toLowerCase()){n.important=!0;var c=this.stringFrom(e,l);" !important"!==(c=this.spacesFromEnd(e)+c)&&(n.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var u=e.slice(0),d="",p=l;p>0;p--){var f=u[p][0];if(0===d.trim().indexOf("!")&&"space"!==f)break;d=u.pop()[1]+d}0===d.trim().indexOf("!")&&(n.important=!0,n.raws.important=d,e=u)}if("space"!==r[0]&&"comment"!==r[0])break}var h=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});h&&(n.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new rp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],l=e;l;){if(n=l[0],a.push(l),"("===n||"["===n)o||(o=l),i.push("("===n?")":"]");else if(s&&r&&"{"===n)o||(o=l),i.push("}");else if(0===i.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));l=this.tokenizer.nextToken()}
2if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){if(!s)for(;a.length&&("space"===(l=a[a.length-1][0])||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var o,i,s,a,l=n.length,c="",u=!0,d=0;d<l;d+=1)"space"!==(i=(o=n[d])[0])||d!==l-1||r?"comment"===i?(a=n[d-1]?n[d-1][0]:"empty",s=n[d+1]?n[d+1][0]:"empty",op[a]||op[s]||","===c.slice(-1)?u=!1:c+=o[1]):c+=o[1]:u=!1;if(!u){var p=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new rp;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),sp=id,ap=ip,lp=Mu;function cp(e,t){var n=new lp(e,t),r=new ap(n);try{r.parse()}catch(e){throw e}return r.root}var up=cp;cp.default=cp,sp.registerParse(cp);var dp=Kc.isClean,pp=Kc.my,fp=Gu,hp=eu,mp=id,vp=cd,gp=hd,yp=up,bp=Gd,wp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sp={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},kp={Once:!0,postcssPlugin:!0,prepare:!0};function _p(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function Op(e){var t=!1,n=wp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function Cp(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Op(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Tp(e){return e[dp]=!1,e.nodes&&e.nodes.forEach(function(e){return Tp(e)}),e}var Ap={},Ep=function(){function e(t,n,r){var o,i=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===n?"undefined":b(n))||null===n||"root"!==n.type&&"document"!==n.type)if(v(n,e)||v(n,gp))o=Tp(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var s=yp;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{o=s(n,r)}catch(e){this.processed=!0,this.error=e}o&&!o[pp]&&mp.rebuild(o)}else o=Tp(n);this.result=new gp(t,o,r),this.helpers=f({},Ap,{postcss:Ap,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":b(e))&&e.prepare?f({},e,e.prepare(i.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(n.postcssVersion);}else e.plugin=n.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,n=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},r=k(this.plugins);!(t=r()).done;){var o=t.value;if("object"===(void 0===o?"undefined":b(o)))for(var i in o){if(!Sp[i]&&/^[A-Z]/.test(i))throw new Error("Unknown event "+i+" in "+o.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
2sion+" now).");if(!kp[i])if("object"===b(o[i]))for(var s in o[i])n(o,"*"===s?i:i+"-"+s.toLowerCase(),o[i][s]);else"function"==typeof o[i]&&n(o,i,o[i])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return u(function(){var t,n,r,o,i,s,a,l,c,u,d,p;return _(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],!_p(r=e.runOnRoot(n)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,r];case 3:return f.sent(),[3,5];case 4:throw o=f.sent(),e.handleError(o);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];i=e.result.root,f.label=7;case 7:if(i[dp])return[3,14];i[dp]=!0,s=[Cp(i)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!_p(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw l=f.sent(),c=s[s.length-1].node,e.handleError(l,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,o,s;return _(this,function(a){switch(a.label){case 0:t=p.value,n=t[0],r=t[1],e.result.lastPlugin=n,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==i.type?[3,3]:(o=i.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(o)]);case 2:return a.sent(),[3,5];case 3:return[4,r(i,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}})},d=k(e.listeners.OnceExit),f.label=15;case 15:return(p=d()).done?[3,18]:[5,O(u())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":b(e))&&e.Once){if("document"===this.result.root.type){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return _p(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=hp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new fp(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=k(this.plugins);!(e=t()).done;){var n=e.value;if(_p(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[dp];)r[dp]=!0,this.walkSync(r);if(this.listeners.OnceExit)if("document"===r.type)for(var o,i=k(r.nodes);!(o=i()).done;){var s=o.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,r)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var n,r=k(e);!(n=r()).done;){var o=n.value,i=o[0],s=o[1];this.result.lastPlugin=i;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(_p(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if("root"===n.type||"document"===n.type||n.parent){if(r.length>0&&t.visitorIndex<r.length){var o=r[t.visitorIndex],i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){for(var a,l=t.iterator;a=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!a[dp])return a[dp]=!0,void e.push(Cp(a));t.iterator=0,delete n.indexes[l]}for(var c=t.events;t.eventIndex<c.length;){var u=c[t.eventIndex];if(t.eventIndex+=1,0===u)return void(n.nodes&&n.nodes.length&&(n[dp]=!0,t.iterator=n.getIterator()));if(this.listeners[u])return void(t.visitors=this.listeners[u])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[dp]=!0;for(var n,r=k(Op(e));!(n=r()).done;){var o=n.value;if(0===o)e.nodes&&e.each(function(e){e[dp]||t.walkSync(e)});else{var i=this.listeners[o];if(i&&this.visitSync(i,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
2,p(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Ep.registerPostcss=function(e){Ap=e};var xp=Ep;Ep.default=Ep,bp.registerLazyResult(Ep),vp.registerLazyResult(Ep);var Pp=Gu,Ip=eu,Lp=up,jp=hd,Mp=function(){function e(e,t,n){var r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var o=Ip;this.result=new jp(this._processor,r,this._opts),this.result.css=t;var i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var s=new Pp(o,r,this._opts,t);if(s.isMap()){var a=s.generate(),l=a[0],c=a[1];l&&(this.result.css=l),c&&(this.result.map=c)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},p(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Lp;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Dp=Mp;Mp.default=Mp;var Rp=Dp,Np=xp,Fp=cd,Bp=Gd,Up=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,n=[],r=k(e);!(t=r()).done;){var o=t.value;if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"===(void 0===o?"undefined":b(o))&&Array.isArray(o.plugins))n=n.concat(o.plugins);else if("object"===(void 0===o?"undefined":b(o))&&o.postcssPlugin)n.push(o);else if("function"==typeof o)n.push(o);else{if("object"!==(void 0===o?"undefined":b(o))||!o.parse&&!o.str
2ingify)throw new Error(o+" is not a PostCSS plugin")}}return n},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Np(this,e,t):new Rp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Hp=Up;Up.default=Up,Bp.registerProcessor(Up),Fp.registerProcessor(Up);var $p=uu,zp=bu,Wp=Vu,Gp=Ud,Xp=Mu,Vp=Gd,Kp=Qd;function qp(e,t){if(Array.isArray(e))return e.map(function(e){return qp(e)});var n=e.inputs,r=g(e,["inputs"]);if(n){t=[];for(var o,i=k(n);!(o=i()).done;){var s=f({},o.value,{__proto__:Xp.prototype});s.map&&(s.map=f({},s.map,{__proto__:zp.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=e.nodes.map(function(e){return qp(e,t)})),r.source){var a=r.source,l=a.inputId,c=g(a,["inputId"]);r.source=c,null!=l&&(r.source.input=t[l])}if("root"===r.type)return new Vp(r);if("decl"===r.type)return new $p(r);if("rule"===r.type)return new Kp(r);if("comment"===r.type)return new Wp(r);if("atrule"===r.type)return new Gp(r);throw new Error("Unknown node type: "+e.type)}var Yp=qp;qp.default=qp;var Qp=Vc,Jp=uu,Zp=xp,ef=id,tf=Hp,nf=eu,rf=Yp,of=cd,sf=dd,af=Vu,lf=Ud,cf=hd,uf=Mu,df=up,pf=Vd,ff=Qd,hf=Gd,mf=lu;function vf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new tf(t)}vf.plugin=function(e,t){var n,r=!1;function i(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),o.env.LANG&&o.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var a=t.apply(void 0,[].concat(i));return a.postcssPlugin=e,a.postcssVersion=(new tf).version,a}return Object.defineProperty(i,"postcss",{get:function(){return n||(n=i()),n}}),i.process=function(e,t,n){return vf([i(n)]).process(e,t)},i},vf.stringify=nf,vf.parse=df,vf.fromJSON=rf,vf.list=pf,vf.comment=function(e){return new af(e)},vf.atRule=function(e){return new lf(e)},vf.decl=function(e){return new Jp(e)},vf.rule=function(e){return new ff(e)},vf.root=function(e){return new hf(e)},vf.document=function(e){return new of(e)},vf.CssSyntaxError=Qp,vf.Declaration=Jp,vf.Container=ef,vf.Processor=tf,vf.Document=of,vf.Comment=af,vf.Warning=sf,vf.AtRule=lf,vf.Result=cf,vf.Input=uf,vf.Rule=ff,vf.Root=hf,vf.Node=mf,Zp.registerPostcss(vf);var gf=vf;vf.default=vf;var yf=Nc(gf);yf.stringify,yf.fromJSON,yf.plugin,yf.parse,yf.list,yf.document,yf.comment,yf.atRule,yf.rule,yf.decl,yf.root,yf.CssSyntaxError,yf.Declaration,yf.Container,yf.Processor,yf.Document,yf.Comment,yf.Warning,yf.AtRule,yf.Result,yf.Input,yf.Rule,yf.Root,yf.Node;var bf=Object.defineProperty,wf=function(e,t,n){return function(e,t,n){return t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,n)};var Sf=function(){function e(e){wf(this,"fileName"),wf(this,"functionName"),wf(this,"lineNumber"),wf(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),kf=/(^|@)\S+:\d+/,_f=/^\s*at .*(\S+:\d+|\(native\))/m,Of=/^(eval@)?(\[native code])?$/,Cf={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(_f)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(_f)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/),r
2=(t=n?t.replace(n[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(n?n[1]:r.pop()),i=r.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new Sf({functionName:i,fileName:s,lineNumber:o[1],columnNumber:o[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Of)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Sf({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,o=this.extractLocation(e.replace(t,""));return new Sf({functionName:r,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],o=2,i=n.length;o<i;o+=2){var s=t.exec(n[o]);s&&r.push(new Sf({fileName:s[2],lineNumber:parseFloat(s[1])}))}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[],o=0,i=n.length;o<i;o+=2){var s=t.exec(n[o]);s&&r.push(new Sf({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return r},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(kf)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),n=this.extractLocation(t.pop()),r=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Sf({functionName:r,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function Tf(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var n=e.localName;if(!n)break;n=n.toLowerCase();var r=e.parentElement,o=[];if(r.children&&r.children.length>0)for(var i=0;i<r.children.length;i++){var s=r.children[i];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===n&&o.push(s)}o.length>1&&(n+=":eq("+o.indexOf(e)+")"),t=n+(t?">"+t:""),e=r}return t}function Af(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ef(e,t){if(0===t)return!0;for(var n,r=k(Object.keys(e));!(n=r()).done;){var o=n.value;if(Af(e[o])&&Ef(e[o],t-1))return!0}return!1}function xf(e,t){var n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);var r=[],o=[];return JSON.stringify(e,function(e,t){if(r.length>0){var i=r.indexOf(this);~i?r.splice(i+1):r.push(this),~i?o.splice(i,1/0,e):o.push(e),~r.indexOf(t)&&(t=r[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(t)).join(".")+"]")}else r.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(Af(e)&&Object.keys(e).length>n.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(Af(e)&&Ef(e,n.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=t.slice(0,n.stringLengthLimit)+"...");return t}(t);if("bigint"===(void 0===t?"undefined":b(t)))return t.toString()+"n";if(v(t,Event)){var s={};for(var a in t){var l=t[a];Array.isArray(l)?s[a]=Tf(l.length?l[0]:null):s[a]=l}return s}return v(t,Node)?v(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:v(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var Pf={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function If(e,t,n){var r,o=n?Object.assign({},Pf,n):Pf,i=o.logger;if(!i)return function(){};r="string"==typeof i?t[i]:i;var s=0,a=!1,l=[];
2if(o.level.includes("error")){var c=function(t){var n=t.message,r=t.error,i=Cf.parse(r).map(function(e){return e.toString()}),s=[xf(n,o.stringifyOptions)];e({level:"error",trace:i,payload:s})};t.addEventListener("error",c),l.push(function(){t.removeEventListener("error",c)});var u=function(t){var n,r;v(t.reason,Error)?r=[xf("Uncaught (in promise) "+(n=t.reason).name+": "+n.message,o.stringifyOptions)]:(n=new Error,r=[xf("Uncaught (in promise)",o.stringifyOptions),xf(t.reason,o.stringifyOptions)]);var i=Cf.parse(n).map(function(e){return e.toString()});e({level:"error",trace:i,payload:r})};t.addEventListener("unhandledrejection",u),l.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var d,p=k(o.level);!(d=p()).done;){var f=d.value;l.push(h(r,f))}return function(){l.forEach(function(e){return e()})};function h(t,n){var r=this;return t[n]?function(e,t,n){try{if(!(t in e))return function(){};var r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,function(){e[t]=r}}catch(e){return function(){}}}(t,n,function(t){var i=r;return function(){for(var r=arguments.length,l=new Array(r),c=0;c<r;c++)l[c]=arguments[c];if(t.apply(i,l),!("assert"===n&&l[0]||a)){a=!0;try{var u=Cf.parse(new Error).map(function(e){return e.toString()}).splice(1),d=("assert"===n?l.slice(1):l).map(function(e){return xf(e,o.stringifyOptions)});++s<o.lengthThreshold?e({level:n,trace:u,payload:d}):s===o.lengthThreshold&&e({level:"warn",trace:[],payload:[xf("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],l))}finally{a=!1}
2}}}):function(){}}}var Lf,jf,Mf,Df=r.setImmediate,Rf=Object.prototype.toString,Nf=void 0!==Df?function(e){return Df(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Lf=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){Lf=function(e,t,n){return e[t]=n,e}}function Ff(e,t){Mf.add(e,t),jf||(jf=Nf(Mf.drain))}function Bf(e){var t,n=typeof e;return null===e||"object"!==n&&"function"!==n||(t=e.then),"function"==typeof t&&t}function Uf(){for(var e=0;e<this.chain.length;e++)Hf(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Hf(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=Bf(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function $f(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=Bf(e))?Ff(function(){var r=new Gf(n);try{t.call(e,function(){$f.apply(r,arguments)},function(){zf.apply(r,arguments)})}catch(e){zf.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&Ff(Uf,n))}catch(e){zf.call(new Gf(n),e)}}}function zf(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Ff(Uf,t))}function Wf(e,t,n,r){for(var o=0;o<t.length;o++)(function(o){e.resolve(t[o]).then(function(e){n(o,e)},r)})(o)}function Gf(e){this.def=e,this.triggered=!1}function Xf(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Vf(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new Xf(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&Ff(Uf,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){$f.call(t,e)},function(e){zf.call(t,e)})}catch(e){zf.call(t,e)}}Mf=function(){var e,t,n;function r(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(o,i){n=new r(o,i),t?t.next=n:e=n,t=n,n=void 0},drain:function(){var n=e;for(e=t=jf=void 0;n;)n.fn.call(n.self),n=n.next}}}();var Kf,qf=Lf({},"constructor",Vf,!1);Vf.prototype=qf,Lf(qf,"__NPO__",0,!1),Lf(Vf,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),Lf(Vf,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),Lf(Vf,"all",function(e){var t=this;return"[object Array]"!==Rf.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),s=0;Wf(t,e,function(e,t){i[e]=t,++s===o&&n(i)},r)})}),Lf(Vf,"race",function(e){var t=this;return"[object Array]"!==Rf.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");Wf(t,e,function(e,t){n(t)},r)})}),Kf="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Vf;var Yf,Qf,Jf,Zf,eh,th,nh,rh,oh,ih,sh={DEBUG:!1,LIB_VERSION:"2.75.0"},ah=864e5,lh=8e3,ch=Array.prototype,uh=Function.prototype,dh=Object.prototype,ph=ch.slice,fh=dh.toString,hh=dh.hasOwnProperty,mh=r.console,vh=r.navigator,gh=r.document,yh=r.opera,bh=r.screen,wh=vh.userAgent,Sh=uh.bind,kh=ch.forEach,_h=ch.indexOf,Oh=ch.map,Ch=Array.isArray,Th={},Ah={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Eh={log:function(){if(sh.DEBUG&&!Ah.isUndefined(mh)&&mh)try{mh.log.apply(mh,arguments)}catch(e){Ah.each(arguments,function(e){mh.log(e)})}},warn:function(){if(sh.DEBUG&&!Ah.isUndefined(mh)&&mh){var e=["Mixpanel warning:"].concat(Ah.toArray(arguments));try{mh.warn.apply(mh,e)}catch(t){Ah.each(e,function(e){mh.warn(e)})}}},error:function(){if(sh.DEBUG&&!Ah.isUndefined(mh)&&mh){var e=["Mixpanel error:"].concat(Ah.toArray(arguments));try{mh.error.apply(mh,e)}catch(t){Ah.each(e,function(e){mh.error(e)})}}},critical:function(){if(!Ah.isUndefined(mh)&&mh){var e=["Mixpanel error:"].concat(Ah.toArray(arguments));try{mh.error.apply(mh,e)}catch(t){Ah.each(e,function(e){mh.error(e)})}}}},xh=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Eh,arguments)}},Ph=function(e){return{log:xh(Eh.log,e),error:xh(Eh.error,e),critical:xh(Eh.critical,e)}},Ih=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Eh.critical("Implementation error. Please turn on debug and contact [email protected]."),sh.DEBUG&&Eh.critical(e)}}},Lh=function(e){var t=e.prototype;for(var n in t)"function"==typeof t[n]&&(t[n]=Ih(t[n]))};Ah.bind=function(e,t){var n,r;
2if(Sh&&e.bind===Sh)return Sh.apply(e,ph.call(arguments,1));if(!Ah.isFunction(e))throw new TypeError;return n=ph.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(ph.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var s=e.apply(i,n.concat(ph.call(arguments)));return Object(s)===s?s:i},r},Ah.each=function(e,t,n){if(null!=e)if(kh&&e.forEach===kh)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,o=e.length;r<o;r++)if(r in e&&t.call(n,e[r],r,e)===Th)return}else for(var i in e)if(hh.call(e,i)&&t.call(n,e[i],i,e)===Th)return},Ah.extend=function(e){return Ah.each(ph.call(arguments,1),function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e},Ah.isArray=Ch||function(e){return"[object Array]"===fh.call(e)},Ah.isFunction=function(e){return"function"==typeof e},Ah.isArguments=function(e){return!(!e||!hh.call(e,"callee"))},Ah.toArray=function(e){return e?e.toArray?e.toArray():Ah.isArray(e)||Ah.isArguments(e)?ph.call(e):Ah.values(e):[]},Ah.map=function(e,t,n){if(Oh&&e.map===Oh)return e.map(t,n);var r=[];return Ah.each(e,function(e){r.push(t.call(n,e))}),r},Ah.keys=function(e){var t=[];return null===e||Ah.each(e,function(e,n){t[t.length]=n}),t},Ah.values=function(e){var t=[];return null===e||Ah.each(e,function(e){t[t.length]=e}),t},Ah.include=function(e,t){var n=!1;return null===e?n:_h&&e.indexOf===_h?-1!=e.indexOf(t):(Ah.each(e,function(e){if(n||(n=e===t))return Th}),n)},Ah.includes=function(e,t){return-1!==e.indexOf(t)},Ah.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},Ah.isObject=function(e){return e===Object(e)&&!Ah.isArray(e)},Ah.isEmptyObject=function(e){if(Ah.isObject(e)){for(var t in e)if(hh.call(e,t))return!1;return!0}return!1},Ah.isUndefined=function(e){return void 0===e},Ah.isString=function(e){return"[object String]"==fh.call(e)},Ah.isDate=function(e){return"[object Date]"==fh.call(e)},Ah.isNumber=function(e){return"[object Number]"==fh.call(e)},Ah.isElement=function(e){return!(!e||1!==e.nodeType)},Ah.encodeDates=function(e){return Ah.each(e,function(t,n){Ah.isDate(t)?e[n]=Ah.formatDate(t):Ah.isObject(t)&&(e[n]=Ah.encodeDates(t))}),e},Ah.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},Ah.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},Ah.strip_empty_properties=function(e){var t={};return Ah.each(e,function(e,n){Ah.isString(e)&&e.length>0&&(t[n]=e)}),t},Ah.truncate=function(e,t){var n;return"string"==typeof e?n=e.slice(0,t):Ah.isArray(e)?(n=[],Ah.each(e,function(e){n.push(Ah.truncate(e,t))})):Ah.isObject(e)?(n={},Ah.each(e,function(e,r){n[r]=Ah.truncate(e,t)})):n=e,n},Ah.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=n[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,r){var o="",i=0,s="",a="",l=0,c=o,u=[],d=r[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return t(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(o+=" ",u=[],"[object Array]"===fh.apply(d)){for(l=d.length,i=0;i<l;i+=1)u[i]=n(i,d)||"null";return a=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+c+"]":"["+u.join(",")+"]",o=c,a}for(s in d)hh.call(d,s)&&(a=n(s,d))&&u.push(t(s)+(o?": ":":")+a);return a=0===u.length?"{}":o?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",o=c,a}};return n("",{"":e})},Ah.JSONDecode=(eh={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},th=function(e){var t=new SyntaxError(e);throw t.at=Yf,t.text=Jf,t},nh=function(e){return e&&e!==Qf&&th("Expected '"+e+"' instead of '"+Qf+"'"),Qf=Jf.charAt(Yf),Yf+=1,Qf},rh=function(){var e,t="";for("-"===Qf&&(t="-",nh("-"));Qf>="0"&&Qf<="9";)t+=Qf,nh();if("."===Qf)for(t+=".";nh()&&Qf>="0"&&Qf<="9";)t+=Qf;if("e"===Qf||"E"===Qf)for(t+=Qf,nh(),"-"!==Qf&&"+"!==Qf||(t+=Qf,nh());Qf>="0"&&Qf<="9";)t+=Qf,nh();if(e=+t,isFinite(e))return e;th("Bad number")},oh=function(){var e,t,n,r="";if('"'===Qf)for(;nh();){if('"'===Qf)return nh(),r;if("\\"===Qf)if(nh(),"u"===Qf){for(n=0,t=0;t<4&&(e=parseInt(nh(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof eh[Qf])break;r+=eh[Qf]}else r+=Qf}th("Bad string")},ih=function(){for(;Qf&&Qf<=" ";)nh()},Zf=function(){switch(ih(),Qf){case"{":return function(){var e,t={};if("{"===Qf){if(nh("{"),ih(),"}"===Qf)return nh("}"),t;for(;Qf;){if(e=oh(),ih(),nh(":"),Object.hasOwnProperty.call(t,e)&&th('Duplicate key "'+e+'"'),t[e]=Zf(),ih(),"}"===Qf)return nh("}"),t;nh(","),ih()}}th("Bad object")}();case"[":return function(){var e=[];
2if("["===Qf){if(nh("["),ih(),"]"===Qf)return nh("]"),e;for(;Qf;){if(e.push(Zf()),ih(),"]"===Qf)return nh("]"),e;nh(","),ih()}}th("Bad array")}();case'"':return oh();case"-":return rh();default:return Qf>="0"&&Qf<="9"?rh():function(){switch(Qf){case"t":return nh("t"),nh("r"),nh("u"),nh("e"),!0;case"f":return nh("f"),nh("a"),nh("l"),nh("s"),nh("e"),!1;case"n":return nh("n"),nh("u"),nh("l"),nh("l"),null}th('Unexpected "'+Qf+'"')}()}},function(e){var t;return Jf=e,Yf=0,Qf=" ",t=Zf(),ih(),Qf&&th("Syntax error"),t}),Ah.base64Encode=function(e){var t,n,r,o,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,c="",u=[];if(!e)return e;e=Ah.utf8Encode(e);do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,n=i>>12&63,r=i>>6&63,o=63&i,u[l++]=s.charAt(t)+s.charAt(n)+s.charAt(r)+s.charAt(o)}while(a<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},Ah.utf8Encode=function(e){var t,n,r,o,i="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<r;o++){var s=e.charCodeAt(o),a=null;s<128?n++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(n>t&&(i+=e.substring(t,n)),i+=a,t=n=o+1)}return n>t&&(i+=e.substring(t,e.length)),i},Ah.UUID=function(){try{return r.crypto.randomUUID()}catch(n){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",Ah.map(e,function(e){return e.toString(16)}).join("")}};var jh=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];Ah.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<jh.length;t++)if(-1!==e.indexOf(jh[t]))return!0;return!1},Ah.HTTPBuildQuery=function(e,t){var n,r,o=[];return Ah.isUndefined(t)&&(t="&"),Ah.each(e,function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),o[o.length]=r+"="+n}),o.join(t)},Ah.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===n||n&&"string"!=typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(e){Eh.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},Ah.cookie={get:function(e){for(var t=e+"=",n=gh.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=Ah.JSONDecode(Ah.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,n,r,o,i,s){var a="",l="",c="";if(s)a="; domain="+s;else if(r){var u=Kh(gh.location.hostname);a=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+1e3*n),l="; expires="+d.toGMTString()}i&&(o=!0,c="; SameSite=None"),o&&(c+="; secure"),gh.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c},set:function(e,t,n,r,o,i,s){var a="",l="",c="";if(s)a="; domain="+s;else if(r){var u=Kh(gh.location.hostname);a=u?"; domain=."+u:""}if(n){var d=new Date;d.setTime(d.getTime()+24*n*60*60*1e3),l="; expires="+d.toGMTString()}i&&(o=!0,c="; SameSite=None"),o&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+l+"; path=/"+a+c;return gh.cookie=p,p},remove:function(e,t,n){Ah.cookie.set(e,"",-1,t,!1,!1,n)}};var Mh=function(e){var t=!0;try{var n="__mplss_"+Wh(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(t=!1),e.removeItem(n)}catch(e){t=!1}return t},Dh=null,Rh=function(e,t){return null===Dh||t?Dh=Mh(e||r.localStorage):Dh},Nh=null;function Fh(e,t,n){var r=function(e){Eh.error(t+" error: "+e)};return{is_supported:function(r){var o=n(e,r);return o||Eh.error(t+" unsupported"),o},error:r,get:function(t){try{return e.getItem(t)}catch(e){r(e)}return null},parse:function(t){try{return Ah.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,n){try{e.setItem(t,n)}catch(e){r(e)}},remove:function(t){try{e.removeItem(t)}catch(e){r(e)}}}}var Bh=null,Uh=null;try{Bh=r.localStorage,Uh=r.sessionStorage}catch(e){}Ah.localStorage=Fh(Bh,"localStorage",Rh),Ah.sessionStorage=Fh(Uh,"sessionStorage",function(e,t){return null===Nh||t?Nh=Mh(e||r.sessionStorage):Nh}),Ah.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,o,i,s){if(t)if(t.addEventListener&&!i)t.addEventListener(n,o,!!s);else{var a="on"+n,l=t[a];t[a]=function(t,n,o){var i=function(i){if(i=i||e(r.event)){var s,a,l=!0;return Ah.isFunction(o)&&(s=o(i)),a=n.call(t,i),!1!==s&&!1!==a||(l=!1),l}};return i}(t,o,l)}else Eh.error("No valid element provided to register_event")}}();var Hh=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');Ah.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(e,n){var r=" "+n+" ";return(" "+e.className+" ").replace(t," ").indexOf(r)>=0}function r(t){if(!gh.getElementsByTagName)return[];var r,o,i,s,a,l,c,u,d,p,f=t.split(" "),h=[gh];for(l=0;l<f.length;l++)if((r=f[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(o=r.split("#"))[0];var m=o[1],v=gh.getElementById(m);if(!v||i&&v.nodeName.toLowerCase()!=i)return[];h=[v]}else if(r.indexOf(".")>-1){i=(o=r.split("."))[0];var g=o[1];
2for(i||(i="*"),s=[],a=0,c=0;c<h.length;c++)for(d="*"==i?e(h[c]):h[c].getElementsByTagName(i),u=0;u<d.length;u++)s[a++]=d[u];for(h=[],p=0,c=0;c<s.length;c++)s[c].className&&Ah.isString(s[c].className)&&n(s[c],g)&&(h[p++]=s[c])}else{var y=r.match(Hh);if(y){i=y[1];var b,w=y[2],S=y[3],k=y[4];for(i||(i="*"),s=[],a=0,c=0;c<h.length;c++)for(d="*"==i?e(h[c]):h[c].getElementsByTagName(i),u=0;u<d.length;u++)s[a++]=d[u];switch(h=[],p=0,S){case"=":b=function(e){return e.getAttribute(w)==k};break;case"~":b=function(e){return e.getAttribute(w).match(new RegExp("\\b"+k+"\\b"))};break;case"|":b=function(e){return e.getAttribute(w).match(new RegExp("^"+k+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(w).indexOf(k)};break;case"$":b=function(e){return e.getAttribute(w).lastIndexOf(k)==e.getAttribute(w).length-k.length};break;case"*":b=function(e){return e.getAttribute(w).indexOf(k)>-1};break;default:b=function(e){return e.getAttribute(w)}}for(h=[],p=0,c=0;c<s.length;c++)b(s[c])&&(h[p++]=s[c])}else{for(i=r,s=[],a=0,c=0;c<h.length;c++)for(d=h[c].getElementsByTagName(i),u=0;u<d.length;u++)s[a++]=d[u];h=s}}return h}return function(e){return Ah.isElement(e)?[e]:Ah.isObject(e)&&!Ah.isUndefined(e.length)?e:r.call(this,e)}}();var $h=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],zh=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];Ah.info={campaignParams:function(e){var t="",n={};return Ah.each($h,function(r){(t=Ah.getQueryParam(gh.URL,r)).length?n[r]=t:void 0!==e&&(n[r]=e)}),n},clickParams:function(){var e="",t={};return Ah.each(zh,function(n){(e=Ah.getQueryParam(gh.URL,n)).length&&(t[n]=e)}),t},marketingParams:function(){return Ah.extend(Ah.info.campaignParams(),Ah.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=Ah.info.searchEngine(e),n="yahoo"!=t?"q":"p",r={};if(null!==t){r.$search_engine=t;var o=Ah.getQueryParam(e,n);o.length&&(r.mp_keyword=o)}return r},browser:function(e,t,n){return t=t||"",n||Ah.includes(e," OPR/")?Ah.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Ah.includes(e,"IEMobile")||Ah.includes(e,"WPDesktop")?"Internet Explorer Mobile":Ah.includes(e,"SamsungBrowser/")?"Samsung Internet":Ah.includes(e,"Edge")||Ah.includes(e,"Edg/")?"Microsoft Edge":Ah.includes(e,"FBIOS")?"Facebook Mobile":Ah.includes(e,"Whale/")?"Whale Browser":Ah.includes(e,"Chrome")?"Chrome":Ah.includes(e,"CriOS")?"Chrome iOS":Ah.includes(e,"UCWEB")||Ah.includes(e,"UCBrowser")?"UC Browser":Ah.includes(e,"FxiOS")?"Firefox iOS":Ah.includes(t,"Apple")?Ah.includes(e,"Mobile")?"Mobile Safari":"Safari":Ah.includes(e,"Android")?"Android Mobile":Ah.includes(e,"Konqueror")?"Konqueror":Ah.includes(e,"Firefox")?"Firefox":Ah.includes(e,"MSIE")||Ah.includes(e,"Trident/")?"Internet Explorer":Ah.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[Ah.info.browser(e,t,n)];if(void 0===r)return null;var o=e.match(r);return o?parseFloat(o[o.length-2]):null},os:function(){var e=wh;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return r.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Ah.extend(Ah.strip_empty_properties({$os:Ah.info.os(),$browser:Ah.info.browser(wh,vh.vendor,yh),$referrer:gh.referrer,$referring_domain:Ah.info.referringDomain(gh.referrer),$device:Ah.info.device(wh)}),{$current_url:Ah.info.currentUrl(),$browser_version:Ah.info.browserVersion(wh,vh.vendor,yh),$screen_height:bh.height,$screen_width:bh.width,mp_lib:"web",$lib_version:sh.LIB_VERSION,$insert_id:Wh(),time:Ah.timestamp()/1e3},Ah.strip_empty_properties(e))},people_properties:function(){return Ah.extend(Ah.strip_empty_properties({$os:Ah.info.os(),$browser:Ah.info.browser(wh,vh.vendor,yh)}),{$browser_version:Ah.info.browserVersion(wh,vh.vendor,yh)})},mpPageViewProperties:function(){return Ah.strip_empty_properties({current_page_title:gh.title,current_domain:r.location.hostname,current_url_path:r.location.pathname,current_url_protocol:r.location.protocol,current_url_search:r.location.search})}};var Wh=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Gh=function(){return"00-"+Ah.UUID().replace(/-/g,"")+"-"+Ah.UUID().replace(/-/g,"").substring(0,16)+"-01"},Xh=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Vh=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Kh=function(e){var t=Vh,n=e.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(t=Xh);var o=e.match(t);return o?o[0]:""},qh=function(){},Yh=null,Qh=null;"undefined"!=typeof JSON&&(Yh=JSON.stringify,Qh=JSON.parse),Yh=Yh||Ah.JSONEncode,Qh=Qh||Ah.JSONDecode;Ah.info=Ah.info,Ah.info.browser=Ah.info.browser,Ah.info.browserVersion=Ah.info.browserVersion,Ah.info.device=Ah.info.device,Ah.info.properties=Ah.info.properties,Ah.isBlockedUA=Ah.isBlockedUA,Ah.isEmptyObject=Ah.isEmptyObject,Ah.isObject=Ah.isObject,Ah.JSONDecode=Ah.JSONDecode,Ah.JSONEncode=Ah.JSONEncode,Ah.toArray=Ah.toArray,Ah.NPO=Vf;var Jh="mixpanelRecordingEvents",Zh="mixpanelRecordingRegistry",em=[Jh,Zh],tm=function(e){this.dbPromise=null,this.storeName=e};tm.prototype._openDb=function(){return new Kf(function(e,t){var n=r.indexedDB.open("mixpanelBrowserDb",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){e(n.result)},n.onupgradeneeded=function(e){var t=e.target.result;em.forEach(function(e){t.createObjectStore(e)})}})},tm.prototype.init=function(){return r.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof r.IDBDatabase?Kf.resolve():Kf.reject(e)})):Kf.reject("indexedDB is not supported in this browser")},tm.prototype.isInitialized=function(){return!!this.dbPromise},tm.prototype.makeTransaction=function(e,t){var n=this.storeName,r=function(r){return new Kf(function(o,i){var s=r.transaction(n,e);s.oncomplete=function(){o(s)},s.onabort=s.onerror=function(){i(s.error)},t(s.objectStore(n))})};return this.dbPromise.then(r).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):Kf.reject(e)}.bind(this))},tm.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(n){n.put(t,e)})},tm.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(n){t=n.get(e)}).then(function(){return t.result})},tm.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},tm.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};function nm(e,t){fm(!0,e,t)}function rm(e,t){fm(!1,e,t)}function om(e,t){return"1"===pm(e,t)}function im(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||r,n=t.navigator||{},o=!1;return Ah.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(e){Ah.includes([!0,1,"1","yes"],e)&&(o=!0)}),o}(t))return Eh.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n="0"===pm(e,t);return n&&Eh.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function sm(e){return hm(e,function(e){return this.get_config(e)})}function am(e){return hm(e,function(e){return this._get_config(e)})}function lm(e){return hm(e,function(e){return this._get_config(e)})}function cm(e,t){um(t=t||{}
2).remove(dm(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function um(e){return"localStorage"===(e=e||{}).persistenceType?Ah.localStorage:Ah.cookie}function dm(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function pm(e,t){return um(t).get(dm(e,t))}function fm(e,t,n){Ah.isString(t)&&t.length?(um(n=n||{}).set(dm(t,n),e?1:0,Ah.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})):Eh.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function hm(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),o=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");r&&(n=im(r,{ignoreDnt:o,persistenceType:i,persistencePrefix:s,window:a}))}catch(e){Eh.error("Unexpected error when checking tracking opt-out status: "+e)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var mm=Ph("lock"),vm=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||r.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Kf};vm.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Ah.bind(function(n,r){var o=t||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,u=s+":X",d=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-i>l)return mm.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),c.removeItem(p),c.removeItem(d),void v();setTimeout(function(){try{e()}catch(e){r(e)}},a*(Math.random()+.1))},h=function(e,t){e()?t():f(function(){h(e,t)})},m=function(){var e=c.getItem(d);return(!e||e===o)&&(c.setItem(d,o),c.getItem(d)===o||(Rh(c,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},v=function(){c.setItem(u,o),h(m,function(){c.getItem(u)!==o?f(function(){c.getItem(d)===o?h(function(){return!c.getItem(p)},g):v()}):g()})},g=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(d)===o&&c.removeItem(d),c.getItem(u)===o&&c.removeItem(u)};e().then(function(e){t(),n(e)}).catch(function(e){t(),r(e)})};try{if(!Rh(c,!0))throw new Error("localStorage support check failed");v()}catch(e){r(e)}},this))};var gm=function(e){this.storage=e||r.localStorage};gm.prototype.init=function(){return Kf.resolve()},gm.prototype.isInitialized=function(){return!0},gm.prototype.setItem=function(e,t){return new Kf(Ah.bind(function(n,r){try{this.storage.setItem(e,Yh(t))}catch(e){r(e)}n()},this))},gm.prototype.getItem=function(e){return new Kf(Ah.bind(function(t,n){var r;try{r=Qh(this.storage.getItem(e))}catch(e){n(e)}t(r)},this))},gm.prototype.removeItem=function(e){return new Kf(Ah.bind(function(t,n){try{this.storage.removeItem(e)}catch(e){n(e)}t()},this))};var ym=Ph("batch"),bm=function(e,t){var n,o,i,s;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new gm,this.lock=new vm(e,{storage:t.sharedLockStorage||r.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Ah.bind(ym.error,ym),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(n=Ah.bind(this._enqueuePersisted,this),o=t.enqueueThrottleMs,i=null,s=[],function(e){var t=this;return s.push(e),i||(i=new Kf(function(e){setTimeout(function(){var r=n.apply(t,[s]);i=null,s=[],e(r)},o)})),i}):this.enqueuePersisted=Ah.bind(function(e){return this._enqueuePersisted([e])},this)};bm.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Kf.resolve():this.queueStorage.init().then(Ah.bind(function(){this.initialized=!0},this)).catch(Ah.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},bm.prototype.enqueue=function(e,t){var n={id:Wh(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(n):(this.memQueue.push(n),Kf.resolve(!0))},bm.prototype._enqueuePersisted=function(e){var t=Ah.bind(function(){return this.ensureInit().then(Ah.bind(function(){return this.readFromStorage()},this)).then(Ah.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(Ah.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(Ah.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(Ah.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},bm.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(Ah.bind(function(){return this.readFromStorage()},this)).then(Ah.bind(function(n){if(n.length){var r={};Ah.each(t,function(e){r[e.id]=!0});for(var o=0;o<n.length;o++){var i=n[o];if((new Date).getTime()>i.flushAfter&&!r[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}return t},this)):Kf.resolve(t)};var wm=function(e,t){var n=[];return Ah.each(e,function(e){e.id&&!t[e.id]&&n.push(e)}),n};bm.prototype.removeItemsByID=function(e){var t={};if(Ah.each(e,function(e){t[e]=!0}),this.memQueue=wm(this.memQueue,t),this.usePersistence){var n=Ah.bind(function(){return this.ensureInit().then(Ah.bind(function(){return this.readFromStorage()},this)).then(Ah.bind(function(e){return e=wm(e,t),this.saveToStorage(e)},this)).then(Ah.bind(function(){return this.readFromStorage()},this)).then(Ah.bind(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.id&&t[r.id])throw new Error("Item not removed from storage")}return!0},this)).catch(Ah.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(Ah.bind(function(e){return this.reportError("Error acquiring storage lock",e),!
2Rh(this.lock.storage,!0)&&n().then(Ah.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(Ah.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Kf.resolve(!0)};var Sm=function(e,t){var n=[];return Ah.each(e,function(e){var r=e.id;if(r in t){var o=t[r];null!==o&&(e.payload=o,n.push(e))}else n.push(e)}),n};bm.prototype.updatePayloads=function(e){return this.memQueue=Sm(this.memQueue,e),this.usePersistence?this.lock.withLock(Ah.bind(function(){return this.ensureInit().then(Ah.bind(function(){return this.readFromStorage()},this)).then(Ah.bind(function(t){return t=Sm(t,e),this.saveToStorage(t)},this)).catch(Ah.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(Ah.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Kf.resolve(!0)},bm.prototype.readFromStorage=function(){return this.ensureInit().then(Ah.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(Ah.bind(function(e){return e&&(Ah.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(Ah.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},bm.prototype.saveToStorage=function(e){return this.ensureInit().then(Ah.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(Ah.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},bm.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(Ah.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Kf.resolve()};var km=Ph("batch"),_m=function(e,t){this.errorReporter=t.errorReporter,this.queue=new bm(e,{errorReporter:Ah.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};_m.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},_m.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},_m.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},_m.prototype.clear=function(){return this.queue.clear()},_m.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},_m.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},_m.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(Ah.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},_m.prototype.sendRequestPromise=function(e,t){return new Kf(Ah.bind(function(n){this.sendRequest(e,t,n)},this))},_m.prototype.flush=function(e){if(this.requestInProgress)return km.log("Flush: Request already in progress"),Kf.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=(new Date).getTime(),o=this.batchSize;return this.queue.fillBatch(o).then(Ah.bind(function(i){var s=i.length===o,a=[],l={};if(Ah.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=Ah.extend({},t.properties,{mp_sent_by_lib_version:sh.LIB_VERSION}));var n=!0,r=e.id;r?(this.itemIdsSentSuccessfully[r]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[r]}),n=!1):this.reportError("[dupe] found item with no ID",{item:e}),n&&a.push(t)}l[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),Kf.resolve();var c=Ah.bind(function(){return this.queue.removeItemsByID(Ah.map(i,function(e){return e.id})).then(Ah.bind(function(e){return Ah.each(i,Ah.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),Kf.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Kf.resolve())},this))},this),u=Ah.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(l);if(Ah.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-n>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Ah.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(d=r.navigator.onLine,!Ah.isUndefined(d)&&!d)||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),Kf.resolve()}if(Ah.isObject(s)&&413===s.httpStatusCode){if(i.length>1){var u=Math.max(1,Math.floor(o/2));return this.batchSize=Math.min(this.batchSize,u,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Kf.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var d},this),d={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(d.transport="sendBeacon"),km.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,d).then(u)},this)).catch(Ah.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},_m.prototype.reportError=function(e,t){if(km.error.apply(km.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){km.error(t)}};var Om=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Cm="change",Tm="click",Am="hashchange",Em="load",xm="mp_locationchange",Pm="popstate",Im="scrollend",Lm="scroll",jm="submit",Mm="visibilitychange",Dm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Rm=["mp-include"],Nm=["mp-no-track"],Fm=Nm.concat(["mp-sensitive"]),Bm=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Um={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Hm={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},$m={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},zm=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Wm=Ph("autocapture");function Gm(e){for(var t={},n=Xm(e).split(" "),r=0;r<n.length;r++){var o=n[r];o&&(t[o]=!0)}return t}function Xm(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Vm(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Zm(e));return e}function Km(e,t,n,r,o,i){var s={$classes:Xm(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),rv(e,t,o,i)&&Ah.each(Bm.concat(r),function(t){if(e.hasAttribute(t)&&!n[t]){var r=e.getAttribute(t);ov(r)&&(s["$attr-"+t]=r)}});for(var l=1,c=1,u=e;u=Vm(u);)l++,u.tagName===e.tagName&&c++;return s.$nth_child=l,s.$nth_of_type=c,s}function qm(e,t){var n=t.allowElementCallback,o=t.allowSelectors||[],i=t.blockAttrs||[],s=t.blockElementCallback,a=t.blockSelectors||[],l=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.captured
2ForHeatMap||!1,d={};Ah.each(i,function(e){d[e]=!0});var p=null,f=void 0===e.target?e.srcElement:e.target;if(tv(f)&&(f=f.parentNode),function(e,t){if(!e||ev(e,"html")||!Zm(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===jm;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Cm:t.type===Tm;case"select":case"textarea":return t.type===Cm;default:return t.type===Tm}}(f,e)&&Qm(f,e,n,o)&&!Jm(f,e,s,a)){for(var h=[f],m=f;m.parentNode&&!ev(m,"body");)h.push(m.parentNode),m=m.parentNode;var v,g=[],y=!1;if(Ah.each(h,function(t){var r=rv(t,e,n,o);d.href||"a"!==t.tagName.toLowerCase()||(v=t.getAttribute("href"),v=r&&ov(v)&&v),Jm(t,e,s,a)&&(y=!0),g.push(Km(t,e,d,c,n,o))},this),!y){var b=gh.documentElement;if(p={$event_type:e.type,$host:r.location.host,$pathname:r.location.pathname,$elements:g,$el_attr__href:v,$viewportHeight:Math.max(b.clientHeight,r.innerHeight||0),$viewportWidth:Math.max(b.clientWidth,r.innerWidth||0),$pageHeight:gh.body.offsetHeight||0,$pageWidth:gh.body.offsetWidth||0},Ah.each(c,function(e){if(!d[e]&&f.hasAttribute(e)){var t=f.getAttribute(e);ov(t)&&(p["$el_attr__"+e]=t)}}),l&&(w=Ym(f,e,n,o))&&w.length&&(p.$el_text=w),e.type===Tm&&(Ah.each(Dm,function(t){t in e&&(p["$"+t]=e[t])}),u&&(p.$captured_for_heatmap=!0),f=function(e){for(var t=e.target,n=e.composedPath(),r=0;r<n.length;r++){var o=n[r];if(ev(o,"a")||ev(o,"button")||ev(o,"input")||ev(o,"select")||o.getAttribute&&"button"===o.getAttribute("role")){t=o;break}if(o===t)break}return t}(e)),l){var w=Ym(f,e,n,o);w&&w.length&&(p.$el_text=w)}if(f){if(!Qm(f,e,n,o)||Jm(f,e,s,a))return null;var S=Km(f,e,d,c,n,o);p.$target=S,p.$el_classes=S.$classes,Ah.extend(p,Ah.strip_empty_properties({$el_id:S.$id,$el_tag_name:S.$tag_name}))}}}return p}function Ym(e,t,n,r){var o="";return rv(e,t,n,r)&&e.childNodes&&e.childNodes.length&&Ah.each(e.childNodes,function(e){tv(e)&&e.textContent&&(o+=Ah.trim(e.textContent).split(/(\s+)/).filter(ov).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Ah.trim(o)}function Qm(e,t,n,r){if(n)try{if(!n(e,t))return!1}catch(e){return Wm.critical("Error while checking element in allowElementCallback",e),!1}if(!r.length)return!0;for(var o=0;o<r.length;o++){var i=r[o];try{if(e.matches(i))return!0}catch(e){Wm.critical("Error while checking selector: "+i,e)}}return!1}function Jm(e,t,n,r){var o;if(n)try{if(n(e,t))return!0}catch(e){return Wm.critical("Error while checking element in blockElementCallback",e),!0}if(r&&r.length)for(o=0;o<r.length;o++){var i=r[o];try{if(e.matches(i))return!0}catch(e){Wm.critical("Error while checking selector: "+i,e)}}var s=Gm(e);for(o=0;o<Nm.length;o++)if(s[Nm[o]])return!0;return!1}function Zm(e){return e&&1===e.nodeType}function ev(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function tv(e){return e&&3===e.nodeType}function nv(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function rv(e,t,n,r){var o;if(!Qm(e,t,n,r))return!1;for(var i=e;i.parentNode&&!ev(i,"body");i=i.parentNode){var s=Gm(i);for(o=0;o<Fm.length;o++)if(s[Fm[o]])return!1}var a=Gm(e);for(o=0;o<Rm.length;o++)if(a[Rm[o]])return!0;if(ev(e,"input")||ev(e,"select")||ev(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var l=e.type||"";if("string"==typeof l)switch(l.toLowerCase()){case"hidden":case"password":return!1}return!nv(e)}function ov(e){if(null===e||Ah.isUndefined(e))return!1;if("string"==typeof e){e=Ah.trim(e);if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function iv(e){var t="onscrollend"in r,n=Ih(e),o=Im;if(!t){var i=null;n=Ih(function(){clearTimeout(i),i=setTimeout(e,100)}),o=Lm}return{listener:n,eventType:o}}function sv(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.oncl
2ick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<zm.length;t++)if(e.hasAttribute(zm[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");if(!t)return!1;var n=t.trim().split(/\s+/)[0].toLowerCase();return Um[n]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function av(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(Hm[t])return!0;if(sv(e))return!1;for(var n=e.parentElement,r=0;n&&r<5;){if(sv(n))return!1;if(n.getRootNode&&n.getRootNode()!==gh){var o=n.getRootNode();if(o.host&&sv(o.host))return!1}n=n.parentElement,r++}return!!$m[t]}function lv(e){return"composedPath"in e?e.composedPath():[]}function cv(e){var t=lv(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var uv=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",dv=["password","email","tel","hidden"];function pv(e){return e?Array.isArray(e)?e:[e]:[]}function fv(e,t){return!!t&&!!e.closest(t)}function hv(e,t){var n=(e.getAttribute("type")||"").toLowerCase();if(-1!==dv.indexOf(n))return!0;var r=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!r||""===r||"off"===r)||(!!e.hasAttribute("data-rr-is-password")||(!!nv(e)||(t.input.maskAll?!fv(e,t.input.unmaskingSelector):!!fv(e,t.input.maskingSelector)||!!fv(e,uv))))}function mv(e,t){return!!e&&(!(!t.text._legacyClassRegex||!Rc(e,t.text._legacyClassRegex))||(t.text.maskAll?!fv(e,t.text.unmaskingSelector):!!fv(e,t.text.maskingSelector)||!!fv(e,uv)))}var vv=Ph("recorder"),gv=r.CompressionStream,yv={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},bv=new Set([_l.MouseMove,_l.MouseInteraction,_l.Scroll,_l.ViewportResize,_l.Input,_l.TouchMove,_l.MediaInteraction,_l.Drag,_l.Selection]);var wv=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||qh,this._onMaxLengthReached=e.onMaxLengthReached||qh,this._onBatchSent=e.onBatchSent||qh,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=ah,this.recordMinMs=0;var t=Rh(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new tm(Jh),this.batcher=new _m(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:yv,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};wv.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var n=this._mixpanel.get_property("$user_id");return n&&(e.$user_id=n),e},wv.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},wv.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},wv.prototype.get_config=function(e){return this.getConfig(e)},wv.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>ah&&(this.recordMaxMs=ah,vv.critical("record_max_ms cannot be greater than "+ah+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Ah.info.currentUrl(),this.replayStartUrl=Ah.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var n=this.getConfig("record_block_selector");""!==n&&null!==n||(n=void 0);var r,o=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},n=e.get_config("record_mask_input_selector"),r=e.get_config("record_unmask_input_selector"),o=e.get_config("record_mask_all_inputs");t.input.maskingSelector=pv(n).join(","),t.input.unmaskingSelector=pv(r).join(","),void 0!==o&&(t.input.maskAll=o);var i=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),l=e.get_config("record_mask_text_class"),c=pv(i);if(l)if(l instanceof RegExp)t.text._legacyClassRegex=l;else{var u="."+l;-1===c.indexOf(u)&&c.push(u)}return t.text.maskingSelector=c.join(","),t.text.unmaskingSelector=pv(s).join(","),void 0===a&&void 0!==i?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===kl.IncrementalSnapshot&&bv.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(hv,o),maskTextFn:this._getMaskFn(mv,o),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(r={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:If,options:r})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var i=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else vv.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},wv.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},wv.prototype.isRrwebStopped=function(){return null===this._stopRecording},wv.prototype.flushEventsWithOptOut=function(e,t,n){var r=function(e){0===e&&(this.stopRecording(),n({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,n,r)},wv.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},wv.deserialize=function(e,t){return new wv(Ah.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},wv.prototype._sendRequest=function(e,t,n,o){var i=function(t,n){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Ah.info.currentUrl()),this._onBatchSent(),o({status:0,httpStatusCode:t.status,responseBody:n,retryAfter:t.headers.get("Retry-After")})}.bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");r.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){o({error:e})})}).catch(function(e){o({error:e,httpStatusCode:0})})},wv.prototype._flushEvents=sm(function(e,t,n){var o=e.length;if(o>0){for(var i=this.replayId,s=1/0,a=-1/0,l=!1,c=0;c<o;c++)s=Math.min(s,e[c].timestamp),a=Math.max(a,e[c].timestamp),e[c].type===kl.FullSnapshot&&(l=!0);if(0===this.seqNo){if(!l)return n({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=s}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var u=a-this.replayStartTime,d={$current_url:this.batchStartUrl,$lib_version:sh.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},p=JSON.stringify(e);if(Object.assign(d,this.getUserIdInfo()),function(e,t,n){if(!r.CompressionStream)return!1;var o=Ah.info.browser(e,t,n),i=Ah.info.browserVersion(e,t,n);return!(("Safari"===o||"Mobile Safari"===o)&&i>=16.4&&i<16.6)}(wh,vh.vendor,yh)){var f=new Blob([p],{type:"application/json"}).stream().pipeThrough(new gv("gzip"));new Response(f).blob().then(function(e){d.format="gzip",this._sendRequest(i,d,e,n)}.bind(this))}else d.format="body",this._sendRequest(i,d,p,n)}}),wv.prototype.reportError=function(e,t){vv.error.apply(vv.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){vv.error(t)}},wv.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},wv.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>lh?(vv.critical("record_min_ms cannot be greater than 8000ms. Capping value."),lh):e},wv.prototype._getMaskFn=function(e,t){return function(n,r){if(!n.trim().length)return"";var o=!0;try{o=e(r,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(o){var i=Math.min(n.length,1e4);return"*".repeat(i)}return n}.bind(this)};
2var Sv=function(e){this.idb=new tm(Zh),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Sv.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Sv.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Sv.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Kf.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Kf.resolve())},Sv.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return Om(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Kf.resolve(null)},Sv.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Sv.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Sv.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Kf.resolve()},Sv.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return Om(e)}).map(function(e){return wv.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return Kf.all(t)}.bind(this)).catch(this.handleError.bind(this)):Kf.resolve([])};var kv=Ph("recorder"),_v=function(e,t,n){this.mixpanelInstance=e,this.rrwebRecord=t||Tc,this.sharedLockStorage=n,this.recordingRegistry=new Sv({mixpanelInstance:this.mixpanelInstance,errorReporter:kv.error,sharedLockStorage:n}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Ov(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}_v.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){kv.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),n=function(){kv.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),r=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),o={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:n,replayId:Ah.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=wv.deserialize(e.activeSerializedRecording,o):this.activeRecording=new wv(o),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}kv.log("Recording already in progress, skipping startRecording.")},_v.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},_v.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},_v.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var n=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),n}return Kf.resolve()},_v.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Kf.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(kv.log("No resumable recording found."),null)}.bind(this))},_v.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},_v.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(_v.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),r[a]=_v;var Cv,Tv={exports:{}};var Av=(Cv||(Cv=1,Tv.exports=function(){function e(e){for(var t=[],n=0,r=e.length;n<r;
vendor: 4,205 bytes, line 2
2n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},n={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var e=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=t.apply({var:o},this);null!==i&&""!==i||e.push(o)}return e},missing_some:function(e,n){var r=t.apply({missing:n},this);return n.length-r.length>=e?[]:r}};return t.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,r){if(Array.isArray(e))return e.map(function(e){return t.apply(e,r)});if(!t.is_logic(e))return e;var o,i,s,a,l,c=t.get_operator(e),u=e[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(o=0;o<u.length-1;o+=2)if(t.truthy(t.apply(u[o],r)))return t.apply(u[o+1],r);return u.length===o+1?t.apply(u[o],r):null}if("and"===c){for(o=0;o<u.length;o+=1)if(i=t.apply(u[o],r),!t.truthy(i))return i;return i}if("or"===c){for(o=0;o<u.length;o+=1)if(i=t.apply(u[o],r),t.truthy(i))return i;return i}if("filter"===c)return a=t.apply(u[0],r),s=u[1],Array.isArray(a)?a.filter(function(e){return t.truthy(t.apply(s,e))}):[];if("map"===c)return a=t.apply(u[0],r),s=u[1],Array.isArray(a)?a.map(function(e){return t.apply(s,e)}):[];if("reduce"===c)return a=t.apply(u[0],r),s=u[1],l=void 0!==u[2]?t.apply(u[2],r):null,Array.isArray(a)?a.reduce(function(e,n){return t.apply(s,{current:n,accumulator:e})},l):l;if("all"===c){if(a=t.apply(u[0],r),s=u[1],!Array.isArray(a)||!a.length)return!1;for(o=0;o<a.length;o+=1)if(!t.truthy(t.apply(s,a[o])))return!1;return!0}if("none"===c){if(a=t.apply(u[0],r),s=u[1],!Array.isArray(a)||!a.length)return!0;for(o=0;o<a.length;o+=1)if(t.truthy(t.apply(s,a[o])))return!1;return!0}if("some"===c){if(a=t.apply(u[0],r),s=u[1],!Array.isArray(a)||!a.length)return!1;for(o=0;o<a.length;o+=1)if(t.truthy(t.apply(s,a[o])))return!0;return!1}if(u=u.map(function(e){return t.apply(e,r)}),n.hasOwnProperty(c)&&"function"==typeof n[c])return n[c].apply(r,u);if(c.indexOf(".")>0){var d=String(c).split("."),p=n;for(o=0;o<d.length;o++){if(!p.hasOwnProperty(d[o]))throw new Error("Unrecognized operation "+c+" (failed at "+d.slice(0,o+1).join(".")+")");p=p[d[o]]}return p.apply(r,u)}throw new Error("Unrecognized operation "+c)},t.uses_data=function(n){var r=[];if(t.is_logic(n)){var o=t.get_operator(n),i=n[o];Array.isArray(i)||(i=[i]),"var"===o?r.push(i[0]):i.forEach(function(e){r.push.apply(r,t.uses_data(e))})}return e(r)},t.add_operation=function(e,t){n[e]=t},t.rm_operation=function(e){delete n[e]},t.rule_like=function(e,n){if(n===e)return!0;
2if("@"===n)return!0;if("number"===n)return"number"==typeof e;if("string"===n)return"string"==typeof e;if("array"===n)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(n)){if(t.is_logic(e)){var r=t.get_operator(n),o=t.get_operator(e);if("@"===r||r===o)return t.rule_like(t.get_values(e,!1),t.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(e)){if(n.length!==e.length)return!1;for(var i=0;i<n.length;i+=1)if(!t.rule_like(e[i],n[i]))return!1;return!0}return!1}return!1},t}()),Tv.exports),Ev=Ov(Av),xv=function(e,t){if(null==e)return e;if("string"==typeof e)return e.toLowerCase();if(Array.isArray(e))return e.map(function(e){return xv(e,t)});if(e===Object(e)){var n={};for(var r in e){if(e.hasOwnProperty(r))n[t&&"string"==typeof r?r.toLowerCase():r]=xv(e[r],t)}return n}return e},Pv={};Pv.eventMatchesCriteria=function(e,t,n){if(e!==n.event_name)return{matches:!1};var r=n.property_filters,o=!0;if(r&&!Ah.isEmptyObject(r))try{var i=xv(t||{},!0),s=function(e){return xv(e,!1)}(r);o=Ev.apply(s,i)}catch(e){return{matches:!1,error:e.toString()}}return{matches:o}},r[s]=Promise.resolve(Pv);function Iv(){this.clicks=[]}function Lv(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Iv.prototype.isRageClick=function(e,t){var n=(t=t||{}).threshold_px||30,r=t.timeout_ms||1e3,o=t.click_count||4;if(t.interactive_elements_only||false){var i=cv(e);if(!i||av(i))return!1}var s=Date.now(),a=e.pageX,l=e.pageY,c=this.clicks[this.clicks.length-1];if(c&&s-c.timestamp<r&&Math.sqrt(Math.pow(a-c.x,2)+Math.pow(l-c.y,2))<n){if(this.clicks.push({x:a,y:l,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:a,y:l,timestamp:s}];return!1},Lv.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return cv(e)},Lv.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=lv(e),n=0;n<t.length;n++){var r=t[n];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}},Lv.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var n=new window.MutationObserver(function(){t.changeCallback()});n.observe(e,this.observerConfig),this.shadowObservers.push(n)}catch(e){Wm.critical("Error while observing shadow root",e)}}},Lv.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Wm.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Lv.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Wm.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var jv=[Cm,"input",jm,"select","toggle"],Mv=[Im],Dv=[Am],Rv={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Nv(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Nv.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||av(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},Nv.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var n=this.addClick(e);return n&&this.triggerProcessing(t),n},Nv.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,n=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var o=[],i=0;i<r.length;i++){var s=r[i];n-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||o.push(s):this.pendingClicks.push(s)}return o},Nv.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Nv.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Nv.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Nv.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,n=this;this.processingTimeout=setTimeout(function(){if(n.processingActive){for(var t=n.getDeadClicks(e),r=0;r<t.length;r++)n.onDeadClickCallback(t[r].event);n.pendingClicks.length>0?n.processRecursively(e):n.processingActive=!1}},t)}else this.processingActive=!1},Nv.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;jv.forEach(function(t){var n=function(){e.recordChangeEvent()};document.addEventListener(t,n,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:n,options:{capture:!0,passive:!0}})}),Dv.forEach(function(t){var n=function(){e.recordChangeEvent()};window.addEventListener(t,n),e.eventListeners.push({target:window,event:t,handler:n})}),Mv.forEach(function(t){var n=function(){e.recordChangeEvent()};window.addEventListener(t,n,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:n,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,Rv)}catch(e){Wm.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new Lv(function(){e.recordChangeEvent()},Rv),this.shadowDOMObserver.start()}catch(e){Wm.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Nv.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Wm.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Wm.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Wm.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var Fv="autocapture",Bv="full-url",Uv="allow_selectors",Hv="allow_url_regexes",$v="block_attrs",zv="block_element_callback",Wv="block_selectors",Gv="block_url_regexes",Xv="capture_extra_attrs",Vv="capture_text_content",Kv="scroll_capture_all",qv="scroll_depth_percent_checkpoints",Yv="click",Qv="dead_click",Jv="input",Zv="pageview",eg="rage_click",tg="scroll",ng="page_leave",rg="submit",og={};og[Uv]=[],og[Hv]=[],og[$v]=[],og[zv]=null,og[Wv]=[],og[Gv]=[],og[Xv]=[],og[Vv]=!1,og[Kv]=!1,og[qv]=[25,50,75,100],og[Yv]=!0,og[Qv]=!0,og[Jv]=!0,og[Zv]=Bv,og[eg]=!0,og[tg]=!0,og[ng]=!1,og[rg]=!0;var ig={$mp_autocapture:!0},sg="$mp_click",ag="$mp_dead_click",lg="$mp_rage_click",cg=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};cg.prototype.init=function(){!function(){try{return!!gh.createElement("div").matches}catch(e){return!1}}()?Wm.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},cg.prototype.getFullConfig=function(){var e=this.mp.get_config(Fv);return e?Ah.isObject(e)?Ah.extend({},og,e):og:{}},cg.prototype.getConfig=function(e){return this.getFullConfig()[e]},cg.prototype.currentUrlBlocked=function(){var e,t=Ah.info.currentUrl(),n=this.getConfig(Hv)||[];if(n.length){var r=!1;for(e=0;e<n.length;e++){var o=n[e];
2try{if(t.match(o)){r=!0;break}}catch(e){return Wm.critical("Error while checking block URL regex: "+o,e),!0}}if(!r)return!0}var i=this.getConfig(Gv)||[];if(!i||!i.length)return!1;for(e=0;e<i.length;e++)try{if(t.match(i[e]))return!0}catch(t){return Wm.critical("Error while checking block URL regex: "+i[e],t),!0}return!1},cg.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Fv)?this.getConfig(Zv):this.mp.get_config("track_pageview")},cg.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var n=this.mp.is_recording_heatmap_data()&&(t===sg&&!this.getConfig(Yv)||t===lg&&!this._getClickTrackingConfig(eg)||t===ag&&!this._getClickTrackingConfig(Qv)),r=qm(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(Uv),blockAttrs:this.getConfig($v),blockElementCallback:this.getConfig(zv),blockSelectors:this.getConfig(Wv),captureExtraAttrs:this.getConfig(Xv),captureTextContent:this.getConfig(Vv),capturedForHeatMap:n});r&&(Ah.extend(r,ig),this.mp.track(t,r))}},cg.prototype.initPageListeners=function(){if(r.removeEventListener(Pm,this.listenerPopstate),r.removeEventListener(Am,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(ng)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){r.dispatchEvent(new Event(xm))},this.listenerHashchange=function(){r.dispatchEvent(new Event(xm))},r.addEventListener(Pm,this.listenerPopstate),r.addEventListener(Am,this.listenerHashchange);var e=r.history.pushState;"function"==typeof e&&(r.history.pushState=function(t,n,o){e.call(r.history,t,n,o),r.dispatchEvent(new Event(xm))});var t=r.history.replaceState;"function"==typeof t&&(r.history.replaceState=function(e,n,o){t.call(r.history,e,n,o),r.dispatchEvent(new Event(xm))})}},cg.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},cg.prototype._trackPageLeave=function(e,t,n){if(!this.hasTrackedScrollSession&&(this.getConfig(ng)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var o=Math.max(gh.documentElement.clientHeight,r.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-o,0)/(n-o)*100),s=Math.round(o/n*100);n<=o&&(i=100,s=100);var a=Ah.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:s,$scroll_height:n,$event_type:e.type,$current_url:t||Ah.info.currentUrl(),$viewportHeight:o,$viewportWidth:Math.max(gh.documentElement.clientWidth,r.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},ig);this.mp.track("$mp_page_leave",a,{transport:"sendBeacon"})}},cg.prototype._initScrollDepthTracking=function(){if(r.removeEventListener(Lm,this.listenerScrollDepth),r.removeEventListener(Im,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Wm.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(gh.documentElement.clientHeight,r.innerHeight||0);var e=iv(function(){if(!this.currentUrlBlocked()){var e=Math.max(gh.documentElement.clientHeight,r.innerHeight||0)+r.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=gh.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,r.addEventListener(e.eventType,this.listenerScrollDepth)}},cg.prototype.initClickTracking=function(){r.removeEventListener(Tm,this.listenerClick),(this.getConfig(Yv)||this.mp.get_config("record_heatmap_data"))&&(Wm.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(Yv)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,sg)}.bind(this),r.addEventListener(Tm,this.listenerClick))},cg.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(Qv)||this.mp.get_config("record_heatmap_data")?(Wm.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Nv(function(e){this.trackDomEvent(e,ag)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(Qv);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var n=t||{};n.timeout_ms||(n.timeout_ms=500),this._deadClickTracker.trackClick(e,n)}}.bind(this),r.addEventListener(Tm,this.listenerDeadClick))):this.stopDeadClickTracking()},cg.prototype.initInputTracking=function(){r.removeEventListener(Cm,this.listenerChange),this.getConfig(Jv)&&(Wm.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(Jv)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),r.addEventListener(Cm,this.listenerChange))},cg.prototype.initPageviewTracking=function(){if(r.removeEventListener(xm,this.listenerLocationchange),this.pageviewTrackingConfig()){Wm.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(ig)),t&&(e=Ah.info.currentUrl()),this.listenerLocationchange=Ih(function(){if(!this.currentUrlBlocked()){var t=Ah.info.currentUrl(),n=!1,r=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(o===Bv?n=t!==e:"url-with-path-and-query-string"===o?n=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===o&&(n=r),n)this.mp.track_pageview(ig)&&(e=t),r&&(this.lastScrollCheckpoint=0,Wm.log("Path change: re-initializing scroll depth checkpoints"))}}.bind(this)),r.addEventListener(xm,this.listenerLocationchange)}},cg.prototype.initRageClickTracking=function(){r.removeEventListener(Tm,this.listenerRageClick),(this._getClickTrackingConfig(eg)||this.mp.get_config("record_heatmap_data"))&&(Wm.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Iv),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(eg);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,lg))}.bind(this),r.addEventListener(Tm,this.listenerRageClick))},cg.prototype.initScrollTracking=function(){if(r.removeEventListener(Im,this.listenerScroll),r.removeEventListener(Lm,this.listenerScroll),this.getConfig(tg)){Wm.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=iv(function(){if(this.getConfig(tg)&&!this.currentUrlBlocked()){var e=this.getConfig(Kv),t=(this.getConfig(qv)||[]).slice().sort(function(e,t){return e-t}
2),n=r.scrollY,o=Ah.extend({$scroll_top:n},ig);try{var i=gh.body.scrollHeight,s=Math.round(n/(i-r.innerHeight)*100);if(o.$scroll_height=i,o.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var a=0;a<t.length;a++){var l=t[a];s>=l&&this.lastScrollCheckpoint<l&&(o.$scroll_checkpoint=l,this.lastScrollCheckpoint=l,e=!0)}}catch(e){Wm.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",o)}}.bind(this));this.listenerScroll=e.listener,r.addEventListener(e.eventType,this.listenerScroll)}},cg.prototype.initSubmitTracking=function(){r.removeEventListener(jm,this.listenerSubmit),this.getConfig(rg)&&(Wm.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(rg)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),r.addEventListener(jm,this.listenerSubmit))},cg.prototype.initPageLeaveTracking=function(){if(gh.removeEventListener(Mm,this.listenerPageLeaveVisibilitychange),r.removeEventListener(xm,this.listenerPageLeaveLocationchange),r.removeEventListener(Em,this.listenerPageLoad),this.getConfig(ng)||this.mp.get_config("record_heatmap_data")){Wm.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=Ah.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=gh.body.scrollHeight}.bind(this),r.addEventListener(Em,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Ih(function(t){if(!this.currentUrlBlocked()){var n=Ah.info.currentUrl();n!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=n,this.maxScrollViewDepth=Math.max(gh.documentElement.clientHeight,r.innerHeight||0),this.previousScrollHeight=gh.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),r.addEventListener(xm,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){gh.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),gh.addEventListener(Mm,this.listenerPageLeaveVisibilitychange)}},cg.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(r.removeEventListener(Tm,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Lh(cg);var ug=Ph("flags"),dg="flags",pg="context",fg={};fg[pg]={};var hg=function(e){this.fetch=r.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};hg.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):ug.critical("Feature Flags unavailable: missing minimum required APIs")},hg.prototype.getFullConfig=function(){var e=this.getMpConfig(dg);return e?Ah.isObject(e)?Ah.extend({},fg,e):fg:{}},hg.prototype.getConfig=function(e){return this.getFullConfig()[e]},hg.prototype.isSystemEnabled=function(){return!!this.getMpConfig(dg)},hg.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return ug.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var n=this.getMpConfig(dg);Ah.isObject(n)||(n={});var r=t&&t.replace?{}:this.getConfig(pg);return n[pg]=Ah.extend({},r,e),this.setMpConfig(dg,n),this.fetchFlags()},hg.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ug.error("Feature Flags not enabled"),!!this.flags},hg.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),n=Gh();ug.log("Fetching flags for distinct ID: "+e);var o=Ah.extend({distinct_id:e,device_id:t},this.getConfig(pg)),i=new URLSearchParams;i.set("context",JSON.stringify(o)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",sh.LIB_VERSION);var s=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(r,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:n}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var r=new Map,o={};Ah.each(t,function(e,t){var n=!1,o=t+":";if(Ah.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(o)&&(n=!0)}),n){var i=this.flags&&this.flags.get(t);i&&r.set(t,i)}else r.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})},this);var i=e.pending_first_time_events;i&&i.length>0&&Ah.each(i,function(e){var t=e.flag_key,n=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[n]||(o[n]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&Ah.each(this.activatedFirstTimeEvents,function(e,t){var n=function(e){return e.split(":")[0]}(t);e&&!r.has(n)&&this.flags&&this.flags.has(n)&&r.set(n,this.flags.get(n))},this),this.flags=r,this.pendingFirstTimeEvents=o,this._traceparent=n,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),ug.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),ug.error(e)}.bind(this)),this.fetchPromise},hg.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):ug.error("Fetch in progress started time not set, cannot mark fetch complete")},hg.prototype._loadTargetingIfNeeded=function(){var e=!1;Ah.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!Ah.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){ug.log("targeting loaded for property filter evaluation")})},hg.prototype.getTargeting=function(){return(e=this.loadExtraBundle.bind(this),t=this.targetingSrc,r[s]&&"function"==typeof r[s].then||(r[s]=new Promise(function(n){e(t,n)}).then(function(){var e=r[s];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete r[s],e})),r[s]).catch(function(e){ug.error("Failed to load targeting: "+e)}.bind(this));var e,t},hg.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!Ah.isEmptyObject(this.pendingFirstTimeEvents)&&(r[s]&&Ah.isFunction(r[s].then)?r[s].then(function(n){this._processFirstTimeEventCheck(e,t,n)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},hg.prototype._processFirstTimeEventCheck=function(e,t,n){Ah.each(this.pendingFirstTimeEvents,function(r,o){if(!this.activatedFirstTimeEvents[o]){var i,s=r.flag_key;if(n||!r.property_filters||Ah.isEmptyObject(r.property_filters)){if(n){var a={event_name:r.event_name,property_filters:r.property_filters};i=n.eventMatchesCriteria(e,t,a)}else i={matches:e===r.event_name,error:null};if(i.error)ug.error('Error checking first-time event for flag "'+s+'": '+i.error);else if(i.matches){ug.log('First-time event matched for flag "'+s+'": '+e);
2var l={key:r.pending_variant.variant_key,value:r.pending_variant.variant_value,experiment_id:r.pending_variant.experiment_id,is_experiment_active:r.pending_variant.is_experiment_active};this.flags.set(s,l),this.activatedFirstTimeEvents[o]=!0,this.recordFirstTimeEvent(r.flag_id,r.project_id,r.first_time_event_hash)}}else ug.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},hg.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},hg.prototype.recordFirstTimeEvent=function(e,t,n){var o=this.getMpProperty("distinct_id"),i=Gh(),s=new URLSearchParams;s.set("mp_lib","web"),s.set("$lib_version",sh.LIB_VERSION);var a=this.getFirstTimeEventApiRoute(e)+"?"+s.toString(),l={distinct_id:o,project_id:t,first_time_event_hash:n};ug.log("Recording first-time event for flag: "+e),this.fetch.call(r,a,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify(l)}).catch(function(t){ug.error("Failed to record first-time event for flag "+e+": "+t)})},hg.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return ug.error(e),t}):new Promise(function(e){ug.critical("Feature Flags not initialized"),e(t)})},hg.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return ug.log("Flags not loaded yet"),t;var n=this.flags.get(e);return n?(this.trackFeatureCheck(e,n),n):(ug.log('No flag found: "'+e+'"'),t)},hg.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return ug.error(e),t})},hg.prototype.getFeatureData=function(e,t){return ug.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},hg.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},hg.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return ug.error(e),t})},hg.prototype.isEnabledSync=function(e,t){t=t||!1;var n=this.getVariantValueSync(e,t);return!0!==n&&!1!==n&&(ug.error('Feature flag "'+e+'" value: '+n+" is not a boolean; returning fallback value: "+t),n=t),n},hg.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var n={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(n.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(n.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(n.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",n)}},hg.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Lh(hg),hg.prototype.are_flags_ready=hg.prototype.areFlagsReady,hg.prototype.get_variant=hg.prototype.getVariant,hg.prototype.get_variant_sync=hg.prototype.getVariantSync,hg.prototype.get_variant_value=hg.prototype.getVariantValue,hg.prototype.get_variant_value_sync=hg.prototype.getVariantValueSync,hg.prototype.is_enabled=hg.prototype.isEnabled,hg.prototype.is_enabled_sync=hg.prototype.isEnabledSync,hg.prototype.update_context=hg.prototype.updateContext,hg.prototype.get_feature_data=hg.prototype.getFeatureData,hg.prototype.getTargeting=hg.prototype.getTargeting;var mg=function(){};mg.prototype.create_properties=function(){},mg.prototype.event_handler=function(){},mg.prototype.after_track_handler=function(){},mg.prototype.init=function(e){return this.mp=e,this},mg.prototype.track=function(e,t,n,r){var o=this,i=Ah.dom_query(e);if(0!==i.length)return Ah.each(i,function(e){Ah.register_event(e,this.override_event,function(e){var i={},s=o.create_properties(n,this),a=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(r,s,i,!0),a),o.mp.track(t,s,o.track_callback(r,s,i))})},this),!0;Eh.error("The DOM query ("+e+") returned 0 elements")},mg.prototype.track_callback=function(e,t,n,r){r=r||!1;var o=this;return function(){n.callback_fired||(n.callback_fired=!0,e&&!1===e(r,t)||o.after_track_handler(t,n,r))}},mg.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):Ah.extend({},e)};var vg=function(){this.override_event="click"};Ah.inherit(vg,mg),vg.prototype.create_properties=function(e,t){var n=vg.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},vg.prototype.event_handler=function(e,t,n){n.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,n.href=t.href,n.new_tab||e.preventDefault()},vg.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var gg=function(){this.override_event="submit"};Ah.inherit(gg,mg),gg.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},gg.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var yg="$set",bg="$set_once",wg="$unset",Sg="$add",kg="$append",_g="$union",Og="$remove",Cg={set_action:function(e,t){var n={},r={};return Ah.isObject(e)?Ah.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[yg]=r,n},unset_action:function(e){var t={},n=[];return Ah.isArray(e)||(e=[e]),Ah.each(e,function(e){this._is_reserved_property(e)||n.push(e)},this),t[wg]=n,t},set_once_action:function(e,t){var n={},r={};return Ah.isObject(e)?Ah.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[bg]=r,n},union_action:function(e,t){var n={},r={};return Ah.isObject(e)?Ah.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=Ah.isArray(e)?e:[e])},this):r[e]=Ah.isArray(t)?t:[t],n[_g]=r,n},append_action:function(e,t){var n={},r={};return Ah.isObject(e)?Ah.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[kg]=r,n},remove_action:function(e,t){var n={},r={};return Ah.isObject(e)?Ah.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[Og]=r,n},delete_action:function(){var e={$delete:""};return e}},Tg=function(){};Ah.extend(Tg.prototype,Cg),Tg.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},Tg.prototype.set=lm(function(e,t,n){var r=this.set_action(e,t);
2return Ah.isObject(e)&&(n=t),this._send_request(r,n)}),Tg.prototype.set_once=lm(function(e,t,n){var r=this.set_once_action(e,t);return Ah.isObject(e)&&(n=t),this._send_request(r,n)}),Tg.prototype.unset=lm(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),Tg.prototype.union=lm(function(e,t,n){Ah.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),Tg.prototype.delete=lm(function(e){var t=this.delete_action();return this._send_request(t,e)}),Tg.prototype.remove=lm(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)}),Tg.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=Ah.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},Tg.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Tg.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Tg.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Tg.prototype.remove=Tg.prototype.remove,Tg.prototype.set=Tg.prototype.set,Tg.prototype.set_once=Tg.prototype.set_once,Tg.prototype.union=Tg.prototype.union,Tg.prototype.unset=Tg.prototype.unset,Tg.prototype.toString=Tg.prototype.toString;var Ag=function(){};Ah.extend(Ag.prototype,Cg),Ag.prototype._init=function(e){this._mixpanel=e},Ag.prototype.set=am(function(e,t,n){var r=this.set_action(e,t);return Ah.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[yg]=Ah.extend({},Ah.info.people_properties(),r[yg]),this._send_request(r,n)}),Ag.prototype.set_once=am(function(e,t,n){var r=this.set_once_action(e,t);return Ah.isObject(e)&&(n=t),this._send_request(r,n)}),Ag.prototype.unset=am(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),Ag.prototype.increment=am(function(e,t,n){var r={},o={};return Ah.isObject(e)?(Ah.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Eh.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}},this),n=t):(Ah.isUndefined(t)&&(t=1),o[e]=t),r[Sg]=o,this._send_request(r,n)}),Ag.prototype.append=am(function(e,t,n){Ah.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)}),Ag.prototype.remove=am(function(e,t,n){Ah.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)}),Ag.prototype.union=am(function(e,t,n){Ah.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),Ag.prototype.track_charge=am(function(){Eh.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Ag.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Ag.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Eh.error("mixpanel.people.delete_user() requires you to call identify() first")},Ag.prototype.toString=function(){return this._mixpanel.toString()+".people"},Ag.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),o&&(e.$had_persisted_distinct_id=o);var i=Ah.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),Ah.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),Ah.truncate(i,255))},Ag.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Ag.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Ag.prototype._enqueue=function(e){yg in e?this._mixpanel.persistence._add_to_people_queue(yg,e):bg in e?this._mixpanel.persistence._add_to_people_queue(bg,e):wg in e?this._mixpanel.persistence._add_to_people_queue(wg,e):Sg in e?this._mixpanel.persistence._add_to_people_queue(Sg,e):kg in e?this._mixpanel.persistence._add_to_people_queue(kg,e):Og in e?this._mixpanel.persistence._add_to_people_queue(Og,e):_g in e?this._mixpanel.persistence._add_to_people_queue(_g,e):Eh.error("Invalid call to _enqueue():",e)},Ag.prototype._flush_one_queue=function(e,t,n,r){var o=this,i=Ah.extend({},this._mixpanel.persistence.load_queue(e)),s=i;Ah.isUndefined(i)||!Ah.isObject(i)||Ah.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),r&&(s=r(i)),t.call(o,s,function(t,r){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),Ah.isUndefined(n)||n(t,r)}))},Ag.prototype._flush=function(e,t,n,r,o,i,s){var a=this;this._flush_one_queue(yg,this.set,e),this._flush_one_queue(bg,this.set_once,r),this._flush_one_queue(wg,this.unset,i,function(e){return Ah.keys(e)}),this._flush_one_queue(Sg,this.increment,t),this._flush_one_queue(_g,this.union,o);var l=this._mixpanel.persistence.load_queue(kg);if(!Ah.isUndefined(l)&&Ah.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(kg,c),Ah.isUndefined(n)||n(e,t)},d=l.length-1;d>=0;d--)l=this._mixpanel.persistence.load_queue(kg),c=l.pop(),a._mixpanel.persistence.save(),Ah.isEmptyObject(c)||a.append(c,u);var p=this._mixpanel.persistence.load_queue(Og);if(!Ah.isUndefined(p)&&Ah.isArray(p)&&p.length)for(var f,h=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Og,f),Ah.isUndefined(s)||s(e,t)},m=p.length-1;m>=0;m--)p=this._mixpanel.persistence.load_queue(Og),f=p.pop(),a._mixpanel.persistence.save(),Ah.isEmptyObject(f)||a.remove(f,h)},Ag.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Ag.prototype.set=Ag.prototype.set,Ag.prototype.set_once=Ag.prototype.set_once,Ag.prototype.unset=Ag.prototype.unset,Ag.prototype.increment=Ag.prototype.increment,Ag.prototype.append=Ag.prototype.append,Ag.prototype.remove=Ag.prototype.remove,Ag.prototype.union=Ag.prototype.union,Ag.prototype.track_charge=Ag.prototype.track_charge,Ag.prototype.clear_charges=Ag.prototype.clear_charges,Ag.prototype.delete_user=Ag.prototype.delete_user,Ag.prototype.toString=Ag.prototype.toString;var Eg,xg="__mps",Pg="__mpso",Ig="__mpus",Lg="__mpa",jg="__mpap",Mg="__mpr",Dg="__mpu",Rg="$people_distinct_id",Ng="__alias",Fg="__timers",Bg=[xg,Pg,Ig,Lg,jg,Mg,Dg,Rg,Ng,Fg],Ug=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Eh.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Ah.localStorage.is_supported()?this.storage=Ah.localStorage:this.storage=Ah.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Ug.prototype.properties=function(){var e={};return this.load(),Ah.each(this.props,function(t,n){Ah.include(Bg,n)||(e[n]=t)}),e},Ug.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Ah.extend({},e))}},Ug.prototype.upgrade=function(){var e,t;this.storage===Ah.localStorage?(e=Ah.cookie.parse(this.name),Ah.cookie.remove(this.name),Ah.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Ah.cookie&&(t=Ah.localStorage.parse(this.name),Ah.localStorage.remove(this.name),t&&this.register_once(t))},Ug.prototype.save=function(){this.disabled||this.storage.set(this.name,Yh(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Ug.prototype.load_prop=function(e){return this.load(),this.props[e]},Ug.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Ug.prototype.clear=function(){this.remove(),this.props={}},Ug.prototype.register_once=function(e,t,n){return!!Ah.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===n?this.default_expiry:n,this.load(),Ah.each(e,function(e,n){this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e)},this),this.save(),!0)},Ug.prototype.register=function(e,t){return!!Ah.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Ah.extend(this.props,e),this.save(),!0)},Ug.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Ug.prototype.update_search_keyword=function(e){this.register(Ah.info.searchInfo(e))},Ug.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Ah.info.referringDomain(e)||"$direct"},"")},Ug.prototype.get_referrer_info=function(){return Ah.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Ug.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Ug.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Ug.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Ug.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Ug.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Ug.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Ug.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Ug.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],o=this._get_or_create_queue(yg),i=this._get_or_create_queue(bg),s=this._get_or_create_queue(wg),a=this._get_or_create_queue(Sg),l=this._get_or_create_queue(_g),c=this._get_or_create_queue(Og,[]),u=this._get_or_create_queue(kg,[]);n===xg?(Ah.extend(o,r),this._pop_from_people_queue(Sg,r),this._pop_from_people_queue(_g,r),this._pop_from_people_queue(wg,r)):n===Pg?(Ah.each(r,function(e,t){t in i||(i[t]=e)}),this._pop_from_people_queue(wg,r)):n===Ig?Ah.each(r,function(e){Ah.each([o,i,a,l],function(t){e in t&&delete t[e]}),Ah.each(u,function(t){e in t&&delete t[e]}),s[e]=!0}):n===Lg?(Ah.each(r,function(e,t){t in o?o[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(wg,r)):n===Dg?(Ah.each(r,function(e,t){Ah.isArray(e)&&(t in l||(l[t]=[]),Ah.each(e,function(e){Ah.include(l[t],e)||l[t].push(e)}))}),this._pop_from_people_queue(wg,r)):n===Mg?(c.push(r),this._pop_from_people_queue(kg,r)):n===jg&&(u.push(r),this._pop_from_people_queue(wg,r)),Eh.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Eh.log(t),this.save()},Ug.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];Ah.isUndefined(n)||Ah.each(t,function(t,r){e===kg||e===Og?Ah.each(n,function(e){e[r]===t&&delete e[r]}):delete n[r]},this)},Ug.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Ug.prototype._get_queue_key=function(e){return e===yg?xg:e===bg?Pg:e===wg?Ig:e===Sg?Lg:e===kg?jg:e===Og?Mg:e===_g?Dg:void Eh.error("Invalid queue:",e)},Ug.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=Ah.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},Ug.prototype.set_event_timer=function(e,t){var n=this.load_prop(Fg)||{};n[e]=t,this.props[Fg]=n,this.save()},Ug.prototype.remove_event_timer=function(e){var t=(this.load_prop(Fg)||{})[e];return Ah.isUndefined(t)||(delete this.props[Fg][e],this.save()),t};var Hg,$g=function(e,t){throw new Error(e+" not available in this build.")},zg="mixpanel",Wg="base64",Gg="$device:",Xg=r.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Vg=!Xg&&-1===wh.indexOf("MSIE")&&-1===wh.indexOf("Mozilla"),Kg=null;vh.sendBeacon&&(Kg=function(){return vh.sendBeacon.apply(vh,arguments)});var qg={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Yg={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:qg,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Wg,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:qh,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:qh,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose
2:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:ah,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js",targeting_src:"https://cdn.mxpnl.com/libs/mixpanel-targeting.min.js",remote_settings_mode:"disabled"},Qg=!1,Jg=function(){},Zg=function(e,t,n){var o,i=n===zg?Hg:Hg[n];if(i&&0===Eg)o=i;else{if(i&&!Ah.isArray(i))return void Eh.error("You have already initialized "+n);o=new Jg}if(o._cached_groups={},o._init(e,t,n),o.people=new Ag,o.people._init(o),!o.get_config("skip_first_touch_marketing")){var s=Ah.info.campaignParams(null),a={},l=!1;Ah.each(s,function(e,t){a["initial_"+t]=e,e&&(l=!0)}),l&&o.people.set_once(a)}sh.DEBUG=sh.DEBUG||o.get_config("debug");var c=0===Eg?"module":"snippet";return r.dispatchEvent(new r.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:o,source:c,token:e,name:n,info:Ah.info}})),!Ah.isUndefined(i)&&Ah.isArray(i)&&(o._execute_array.call(o.people,i.people),o._execute_array(i)),o};Jg.prototype.init=function(e,t,n){if(Ah.isUndefined(n))this.report_error("You must name your new library: init(token, config, name)");else{if(n!==zg){var r=Zg(e,t,n);return Hg[n]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Jg.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var o={};"api_payload_format"in t||(t.api_host||Yg.api_host).match(/\.mixpanel\.com/)&&(o.api_payload_format="json");if(this.hooks={},this.set_config(Ah.extend({},Yg,o,t,{name:n,token:e,callback_fn:(n===zg?n:zg+"."+n)+"._jsc"})),this._jsc=qh,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(Ah.localStorage.is_supported(!0)&&Xg){if(this.init_batchers(),Kg&&r.addEventListener){var i=Ah.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);r.addEventListener("pagehide",function(e){e.persisted&&i()}),r.addEventListener("visibilitychange",function(){"hidden"===gh.visibilityState&&i()})}}else this._batch_requests=!1,Eh.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Ah.each(this.get_batcher_configs(),function(e){Eh.log("Clearing batch queue "+e.queue_key),Ah.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new Ug(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=Ah.UUID();this.get_distinct_id()||this.register_once({distinct_id:Gg+s,$device_id:s},""),this.flags=new hg({getFullApiRoute:Ah.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:Ah.bind(this.get_config,this),setConfigFunc:Ah.bind(this.set_config,this),getPropertyFunc:Ah.bind(this.get_property,this),trackingFunc:Ah.bind(this.track,this),loadExtraBundle:$g,targetingSrc:this.get_config("targeting_src")}),this.flags.init(),this.flags=this.flags,this.autocapture=new cg(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");"strict"===a||"fallback"===a?this._fetch_remote_settings(a).then(Ah.bind(function(){this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},Jg.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Eh.log("Tab ID initialization skipped due to disable_persistence config");
2else if(Ah.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,n="mp_gen_new_tab_id_"+e;!Ah.sessionStorage.get(n)&&Ah.sessionStorage.get(t)||Ah.sessionStorage.set(t,"$tab-"+Ah.UUID()),Ah.sessionStorage.set(n,"1"),this.tab_id=Ah.sessionStorage.get(t),r.addEventListener("beforeunload",function(){Ah.sessionStorage.remove(n)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},Jg.prototype.get_tab_id=function(){return this.tab_id||null},Jg.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Eh.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new tm(Zh),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var n=0;n<e.length;n++)if(Om(e[n])||e[n].tabId===t)return!0;return!1}).catch(Ah.bind(function(e){this.report_error("Error checking recording registry",e)},this))},Jg.prototype._check_and_start_session_recording=sm(function(e){if(r.MutationObserver){var t=Ah.bind(function(e){var t=Ah.bind(function(){this._recorder=this._recorder||new r[a](this),this._recorder.resumeRecording(e)},this);Ah.isUndefined(r[a])?$g(this.get_config("recorder_src"),t):t()},this),n=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||n?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else Eh.critical("Browser does not support MutationObserver; skipping session recording")}),Jg.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},Jg.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},Jg.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},Jg.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},Jg.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},Jg.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},Jg.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();t&&(e="https://mixpanel.com/projects/replay-redirect?"+Ah.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")}));return e},Jg.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Jg.prototype.__get_recorder=function(){return this._recorder},Jg.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=Ah.info.campaignParams(null);Ah.each(e,function(e,t){this.unregister(t)}.bind(this))}},Jg.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(gh.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Ah.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(gh.referrer)},Jg.prototype._dom_loaded=function(){Ah.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||Ah.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Jg.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Qg)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},Jg.prototype._prepare_callback=function(e,t){if(Ah.isUndefined(e))return null;if(Xg){return function(n){e(n,t)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(o){delete n[r],e(o,t)},o},Jg.prototype._send_request=function(e,t,n,r){var o=!0;if(Vg)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
2:this.get_config("verbose")},s=null;r||!Ah.isFunction(n)&&"string"!=typeof n||(r=n,n=null),n=Ah.extend(i,n||{}),Xg||(n.method="GET");var a="POST"===n.method,l=Kg&&a&&"sendbeacon"===n.transport.toLowerCase(),c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Xg||(r?t.callback=r:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),Ah.extend(t,this.get_config("api_extra_query_params")),e+="?"+Ah.HTTPBuildQuery(t);var u=this;if("img"in t){var d=gh.createElement("img");d.src=e,gh.body.appendChild(d)}else if(l){try{o=Kg(e,s)}catch(e){u.report_error(e),o=!1}try{r&&r(o?1:0)}catch(e){u.report_error(e)}}else if(Xg)try{var p=new XMLHttpRequest;p.open(n.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),Ah.each(f,function(e,t){p.setRequestHeader(t,e)}),n.timeout_ms&&void 0!==p.timeout){p.timeout=n.timeout_ms;var h=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(r)if(c){var t;try{t=Ah.JSONDecode(p.responseText)}catch(e){if(u.report_error(e),!n.ignore_json_errors)return;t=p.responseText}r(t)}else r(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-h>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,u.report_error(e),r)if(c){var o=p.responseHeaders||{};r({status:0,httpStatusCode:p.status,error:e,retryAfter:o["Retry-After"]})}else r(0)},p.send(s)}catch(e){u.report_error(e),o=!1}else{var m=gh.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var v=gh.getElementsByTagName("script")[0];v.parentNode.insertBefore(m,v)}return o},Jg.prototype._fetch_remote_settings=function(e){var t=function(){"strict"===e&&s.set_config({record_sessions_percent:0})};if(!r.AbortController)return Eh.critical("Remote settings unavailable: missing minimum required APIs"),t(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,o={$lib_version:sh.LIB_VERSION,mp_lib:"web",sdk_config:"1"},i=n+"?"+Ah.HTTPBuildQuery(o),s=this,a=new AbortController,l=setTimeout(function(){a.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(s.get_config("token")+":")},signal:a.signal};return r.fetch(i,c).then(function(e){return clearTimeout(l),e.ok?e.json():(Eh.critical("Network response was not ok"),void t())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,r={};Ah.each(n,function(e,t){Yg.hasOwnProperty(t)&&(r[t]=e)}),Ah.isEmptyObject(r)?(Eh.critical("No valid config keys found in remote settings."),t()):s.set_config(r)}else t()}).catch(function(e){clearTimeout(l),Eh.critical("Failed to fetch remote settings",e),t()})},Jg.prototype._execute_array=function(e){var t,n=[],r=[],o=[];Ah.each(e,function(e){e&&(t=e[0],Ah.isArray(t)?o.push(e):"function"==typeof e?e.call(this):Ah.isArray(e)&&"alias"===t?n.push(e):Ah.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):r.push(e))},this);var i=function(e,t){Ah.each(e,function(e){if(Ah.isArray(e[0])){var n=t;Ah.each(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};i(n,this),i(r,this),i(o,this)},Jg.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Jg.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},Jg.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Ah.bind(function(e){return new _m(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Ah.bind(function(t,n,r){var o=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+o[e.api_name],this._encode_data_for_request(t),n,this._prepare_callback(r,t))},this),beforeSendHook:Ah.bind(function(t){var n=this._run_hook("before_send_"+e.type,t);return n?n[0]:null},this),stopAllBatchingFunc:Ah.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Jg.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Ah.each(this.request_batchers,function(e){e.start()}))},Jg.prototype.stop_batch_senders=function(){this._batch_requests=!1,Ah.each(this.request_batchers,function(e){e.stop(),e.clear()})},Jg.prototype.push=function(e){this._execute_array([e])},Jg.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Jg.prototype._encode_data_for_request=function(e){var t=Yh(e);return this.get_config("api_payload_format")===Wg&&(t=Ah.base64Encode(t)),{data:t}},Jg.prototype._track_or_batch=function(e,t){var n=Ah.truncate(e.data,255),r=e.endpoint,o=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{};t=t||qh;var a=!0,l=Ah.bind(function(){return s.skip_hooks||(n=this._run_hook("before_send_"+e.type,n))&&(n=n[0]),n?(Eh.log("MIXPANEL REQUEST:"),Eh.log(n),this._send_request(r,this._encode_data_for_request(n),s,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!i?o.enqueue(n).then(function(e){e?t(1,n):l()}):a=l(),a&&n},Jg.prototype.track=sm(function(e,t,n,r){var o;if(!n||!n.skip_hooks){if(null===(o=this._run_hook("before_track",e,t)))return;e=o[0],t=o[1]}r||"function"!=typeof n||(r=n,n=null);var i=(n=n||{}).transport;i&&(n.transport=i);var s=n.send_immediately;if("function"!=typeof r&&(r=qh),Ah.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Ah.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!Ah.isUndefined(a)){var l=(new Date).getTime()-a;t.$duration=parseFloat((l/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?Ah.info.marketingParams():{};t=Ah.extend({},Ah.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");Ah.isArray(u)?Ah.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var d={event:e,properties:t};return o=this._track_or_batch({type:"events",data:d,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:n},r),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),o}r(0)}}),Jg.prototype.set_group=sm(function(e,t,n){Ah.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)}),Jg.prototype.add_group=sm(function(e,t,n){var r=this.get_property(e),o={};return void 0===r?(o[e]=[t],this.register(o)):-1===r.indexOf(t)&&(r.push(t),o[e]=r,this.register(o)),this.people.union(e,t,n)}),Jg.prototype.remove_group=sm(function(e,t,n){var r=this.get_property(e);if(void 0!==r){var o=r.indexOf(t);o>
2-1&&(r.splice(o,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)}),Jg.prototype.track_with_groups=sm(function(e,t,n,r){var o=Ah.extend({},t||{});return Ah.each(n,function(e,t){null!=e&&(o[t]=e)}),this.track(e,o,r)}),Jg.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Jg.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Jg.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return void 0!==r&&r._group_key===e&&r._group_id===t||((r=new Tg)._init(this,e,t),this._cached_groups[n]=r),r},Jg.prototype.track_pageview=sm(function(e,t){"object"!=typeof e&&(e={});var n=(t=t||{}).event_name||"$mp_web_page_view",r=Ah.extend(Ah.info.mpPageViewProperties(),Ah.info.campaignParams(),Ah.info.clickParams()),o=Ah.extend({},r,e);return this.track(n,o)}),Jg.prototype.track_links=function(){return this._track_dom.call(this,vg,arguments)},Jg.prototype.track_forms=function(){return this._track_dom.call(this,gg,arguments)},Jg.prototype.time_event=function(e){Ah.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var ey={persistent:!0},ty=function(e){var t;return t=Ah.isObject(e)?e:Ah.isUndefined(e)?{}:{days:e},Ah.extend({},ey,t)};Jg.prototype.register=function(e,t){var n=this._run_hook("before_register",e,t);if(null!==n){e=n[0],t=n[1];var r=ty(t);r.persistent?this.persistence.register(e,r.days):Ah.extend(this.unpersisted_superprops,e)}},Jg.prototype.register_once=function(e,t,n){var r=this._run_hook("before_register_once",e,t,n);if(null!==r){e=r[0],t=r[1],n=r[2];var o=ty(n);o.persistent?this.persistence.register_once(e,t,o.days):(void 0===t&&(t="None"),Ah.each(e,function(e,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==t||(this.unpersisted_superprops[n]=e)},this))}},Jg.prototype.unregister=function(e,t){var n=this._run_hook("before_unregister",e,t);null!==n&&(e=n[0],t=n[1],(t=ty(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},Jg.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},Jg.prototype.identify=function(e,t,n,r,o,i,s,a){var l=this._run_hook("before_identify",e);if(null===l)return-1;e=l[0];var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Gg))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(Ng)&&(this.unregister(Ng),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,o,i,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},Jg.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Ah.UUID();this.register_once({distinct_id:Gg+e,$device_id:e},""),this._check_and_start_session_recording()},Jg.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Jg.prototype.alias=function(e,t){if(e===this.get_property(Rg))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return Ah.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Ng,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Jg.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Jg.prototype.set_config=function(e){Ah.isObject(e)&&(Ah.extend(this.config,e),e.batch_size&&Ah.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),sh.DEBUG=sh.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),Ah.isObject(e.hooks)&&(this.hooks={},Ah.each(e.hooks,function(e,t){if(Ah.isFunction(e))this.hooks[t]=[e];else if(Ah.isArray(e)){this.hooks[t]=[];for(var n=0;n<e.length;n++)Ah.isFunction(e[n])||Eh.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[n])}else Eh.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},Jg.prototype.get_config=function(e){return this.config[e]}
2,Jg.prototype._run_hook=function(e){var t=ph.call(arguments,1);return Ah.each(this.hooks[e],function(n){if(null===t)return null;var r=n.apply(this,t);void 0===r?(this.report_error(e+" hook did not return a valid value"),t=null):(Ah.isArray(r)||(r=[r]),t.splice.apply(t,[0,r.length].concat(r)))},this),t},Jg.prototype.get_property=function(e){return this.persistence.load_prop([e])},Jg.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Jg.prototype.toString=function(){var e=this.get_config("name");return e!==zg&&(e=zg+"."+e),e},Jg.prototype._event_is_disabled=function(e){return Ah.isBlockedUA(wh)||this._flags.disable_all_events||Ah.include(this.__disabled_events,e)},Jg.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Ah.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!Ah.cookie.get("mp_optout")||(Ah.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Jg.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Jg.prototype._gdpr_call_func=function(e,t){return t=Ah.extend({track:Ah.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),Ah.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Jg.prototype.opt_in_tracking=function(e){e=Ah.extend({enable_persistence:!0},e),this._gdpr_call_func(nm,e),this._gdpr_update_persistence(e)},Jg.prototype.opt_out_tracking=function(e){(e=Ah.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(rm,e),this._gdpr_update_persistence(e)},Jg.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(om,e)},Jg.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(im,e)},Jg.prototype.clear_opt_in_out_tracking=function(e){e=Ah.extend({enable_persistence:!0},e),this._gdpr_call_func(cm,e),this._gdpr_update_persistence(e)},Jg.prototype.report_error=function(e,t){Eh.error.apply(Eh.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Eh.error(t)}},Jg.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},Jg.prototype.remove_hook=function(e,t){var n;this.hooks[e]&&(-1!==(n=this.hooks[e].indexOf(t))?this.hooks[e].splice(n,1):Eh.log("remove_hook failed. Matching hook was not found"))},Jg.prototype.init=Jg.prototype.init,Jg.prototype.reset=Jg.prototype.reset,Jg.prototype.disable=Jg.prototype.disable,Jg.prototype.time_event=Jg.prototype.time_event,Jg.prototype.track=Jg.prototype.track,Jg.prototype.track_links=Jg.prototype.track_links,Jg.prototype.track_forms=Jg.prototype.track_forms,Jg.prototype.track_pageview=Jg.prototype.track_pageview,Jg.prototype.register=Jg.prototype.register,Jg.prototype.register_once=Jg.prototype.register_once,Jg.prototype.unregister=Jg.prototype.unregister,Jg.prototype.identify=Jg.prototype.identify,Jg.prototype.alias=Jg.prototype.alias,Jg.prototype.name_tag=Jg.prototype.name_tag,Jg.prototype.set_config=Jg.prototype.set_config,Jg.prototype.get_config=Jg.prototype.get_config,Jg.prototype.get_api_host=Jg.prototype.get_api_host,Jg.prototype.get_property=Jg.prototype.get_property,Jg.prototype.get_distinct_id=Jg.prototype.get_distinct_id,Jg.prototype.toString=Jg.prototype.toString,Jg.prototype.opt_out_tracking=Jg.prototype.opt_out_tracking,Jg.prototype.opt_in_tracking=Jg.prototype.opt_in_tracking,Jg.prototype.has_opted_out_tracking=Jg.prototype.has_opted_out_tracking,Jg.prototype.has_opted_in_tracking=Jg.prototype.has_opted_in_tracking,Jg.prototype.clear_opt_in_out_tracking=Jg.prototype.clear_opt_in_out_tracking,Jg.prototype.get_group=Jg.prototype.get_group,Jg.prototype.set_group=Jg.prototype.set_group,Jg.prototype.add_group=Jg.prototype.add_group,Jg.prototype.remove_group=Jg.prototype.remove_group,Jg.prototype.add_hook=Jg.prototype.add_hook,Jg.prototype.remove_hook=Jg.prototype.remove_hook,Jg.prototype.track_with_groups=Jg.prototype.track_with_groups,Jg.prototype.start_batch_senders=Jg.prototype.start_batch_senders,Jg.prototype.stop_batch_senders=Jg.prototype.stop_batch_senders,Jg.prototype.start_session_recording=Jg.prototype.start_session_recording,Jg.prototype.stop_session_recording=Jg.prototype.stop_session_recording,Jg.prototype.pause_session_recording=Jg.prototype.pause_session_recording,Jg.prototype.resume_session_recording=Jg.prototype.resume_session_recording,Jg.prototype.get_session_recording_properties=Jg.prototype.get_session_recording_properties,Jg.prototype.get_session_replay_url=Jg.prototype.get_session_replay_url,Jg.prototype.get_tab_id=Jg.prototype.get_tab_id,Jg.prototype.DEFAULT_API_ROUTES=qg,Jg.prototype.__get_recorder=Jg.prototype.__get_recorder,Ug.prototype.properties=Ug.prototype.properties,Ug.prototype.update_search_keyword=Ug.prototype.update_search_keyword,Ug.prototype.update_referrer_info=Ug.prototype.update_referrer_info,Ug.prototype.get_cross_subdomain=Ug.prototype.get_cross_subdomain,Ug.prototype.clear=Ug.prototype.clear;var ny={},ry=function(){Hg.init=function(e,t,n){if(n)return Hg[n]||(Hg[n]=ny[n]=Zg(e,t,n),Hg[n]._loaded()),Hg[n];var o=Hg;ny[zg]?o=ny[zg]:e&&((o=Zg(e,t,zg))._loaded(),ny[zg]=o),Hg=o,1===Eg&&(r[zg]=
2Hg),Ah.each(ny,function(e,t){t!==zg&&(Hg[t]=e)}),Hg._=Ah}};var oy=($g=function(e,t){t()},Eg=0,Hg=new Jg,ry(),Hg.init(),function(){function e(){e.done||(e.done=!0,Qg=!0,Vg=!1,Ah.each(ny,function(e){e._dom_loaded()}))}if(gh.addEventListener)"complete"===gh.readyState?e():gh.addEventListener("DOMContentLoaded",e,!1);else if(gh.attachEvent){gh.attachEvent("onreadystatechange",e);var t=!1;try{t=null===r.frameElement}catch(e){}gh.documentElement.doScroll&&t&&function t(){try{gh.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}Ah.register_event(r,"load",e,!0)}(),Hg),iy=n(91915);oy.init("0a5ac67fba63f3174470fc8b9f2c153a",{debug:!1});var sy={MixpanelEventGroups:Object.freeze({USER_LIFECYCLE:"USER",PORTFOLIO:"PORTFOLIO",CASE_STUDY:"CASE_STUDY",EDIT:"EDIT",DOMAIN:"DOMAIN",AI_FEATURES:"AI_FEATURES",ONBOARDING:"ONBOARDING",FAKE_DOOR:"FAKE_DOOR",JOB_FIT_CHECKER:"JOB_FIT_CHECKER",CANCELLATION:"CANCELLATION"}),identify:function(e){oy.identify(e)},track:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,r){try{oy.track(e,t,function(){n()})}catch(e){r(e)}})},setUser:function(e){oy.people.set({$name:e.name,$email:e.email})},getUrls:function(){var e=iy.M.state.portfolio,t=iy.M.state.project;return e&&t?{portfolio_url:"https://uxfol.io/".concat(e.shortId),page_url:iy.M.getters.isHomePage?"https://uxfol.io/".concat(e.shortId):"https://uxfol.io/p/".concat(e.shortId,"/").concat(t.shortId)}:{}}};const ay=sy},63160(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(65498);const o={getAPDListProfile:function(e){return r.A.get("".concat("/api/adplist","?profileId=").concat(e))}}},65498(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(71083),o=n(61586);const i={log:function(e,t,n,r){o.debug((n?"SUCCESS":"ERROR")+" @ ["+e+":"+t+"]")},success:function(e,t,n){this.log(e,t,!0,n)},error:function(e,t,n){this.log(e,t,!1,n)}};var s=n(97293);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(c({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),e.suppressAuthStatus?{skipAuthStatusHandling:!0}:{})}function p(e,t,n){var r,o,i=null===(r=e.response)||void 0===r?void 0:r.status,a=e.response&&!(null!==(o=e.config)&&void 0!==o&&o.skipAuthStatusHandling)&&!window.location.pathname.includes("/review")&&!(0,s.OH)(n);a&&401===i&&(0,s.B2)({status:i,url:n}),a&&403===i&&(0,s.yw)({status:i,url:n}),t(e)}const f={getWithParams:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,s){r.A.get(e,d(n,{params:t})).then(function(t){i.success("GET",e,t.data),o(t)}).catch(function(t){i.error("GET",e,t),p(t,s,e)})})},get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getWithParams(e,t,n)},post:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,s){r.A.post(e,t,d(n)).then(function(t){i.success("POST",e,t.data),o(t)}).catch(function(t){i.error("POST",e,t),p(t,s,e)})})},postMultipart:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,s){r.A.post(e,t,d(n,{headers:{"Content-Type":"multipart/form-data"}})).then(function(t){i.success("POST",e,t.data),o(t)}).catch(function(t){i.error("POST",e,t),p(t,s,e)})})},put:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,s){r.A.put(e,t,d(n)).then(function(t){i.success("PUT",e,t.data),o(t)}).catch(function(t){i.error("PUT",e,t),p(t,s,e)})})},patch:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,s){r.A.patch(e,t,d(n)).then(function(t){i.success("PATCH",e,t.data),o(t)}).catch(function(t){i.error("PATCH",e,t),p(t,s,e)})})},delete:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,s){(0,r.A)(d(n,{method:"delete",url:e,data:t})).then(function(t){i.success("DELETE",e,t.data),o(t)}).catch(function(t){i.error("DELETE",e,t),p(t,s,e)})})},downloadPdf:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(o,s){r.A.post(e,t,d(n,{responseType:"arraybuffer"})).then(function(t){i.success("POST",e,t.data),o(t)}).catch(function(t){i.error("POST",e,t),p(t,s,e)})})}}}
2,18080(e,t,n){"use strict";n.d(t,{lo:()=>l,xW:()=>c});var r=[];function o(){return window.UXFOLIO_API_MIGRATION_CONFIG||{}}function i(e){return e.replace(/\/+$/,"")}function s(){var e=o().baseUrl;return"string"!=typeof e?"":i(e.trim())}function a(e){if(!e)return!1;var t=new URL(e,window.location.origin);return function(){var e=o().prefixes;if(!Array.isArray(e))return r;var t=e.filter(function(e){return"string"==typeof e&&e.trim()}).map(function(e){return"/".concat(e.trim().replace(/^\/+/,"").replace(/\/+$/,""))});return t.length?t:r}().some(function(e){return t.pathname===e||t.pathname.startsWith("".concat(e,"/"))})}function l(e){var t=s();if(!c(e))return e;var n=new URL(e,window.location.origin);if(n.origin!==window.location.origin)return e;var r=new URL("".concat(t,"/")),o=i(r.pathname);return"".concat(r.origin).concat(o).concat(n.pathname).concat(n.search).concat(n.hash)}function c(e){return Boolean(s())&&a(e)}},92780(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(65498),o=n(74256),i="/api/admin/",s=i+"showcase/";const a={getUsers:function(e,t,n,o,s,a){var l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return r.A.getWithParams(i+"users",{page:e,pageSize:t,orderBy:n,orderAscending:o,findBy:s,findByValue:a,hideDeletedUsers:l,publishedOnly:c})},getUserCount:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.A.getWithParams(i+"users/count",{hideDeletedUsers:e,publishedOnly:t})},getUserSettings:function(e){return r.A.get(i+"user/"+e)},changeUserVipStatus:function(e){return r.A.post(i+"changeVip/"+e)},getSubscriptionReport:function(e){return r.A.get(i+"report/subscription")},getDomainDetails:function(){return r.A.getWithParams(i+"report/domainDetails")},getYearlySubscriptionReserveDetails:function(){return r.A.get(i+"report/yearlySubscriptionReserveDetails")},getProjects:function(e,t,n,o){return r.A.getWithParams(i+"projects",{page:e,pageSize:t,minProjectsCount:n,userId:o})},getAllCaseStudyPages:function(e){return r.A.getWithParams(i+"all/".concat(e,"/caseStudy"))},getAllPortfolios:function(e){return r.A.getWithParams(i+"all/".concat(e,"/portfolio"))},getShowcase:function(){return r.A.get(s)},addShowcaseItem:function(e){return r.A.post(s,e)},modifyShowcase:function(e){return r.A.put(s,e)},modifyShowcaseItem:function(e){return r.A.put(s+e._id,e)},deleteShowcaseItem:function(e){return r.A.delete(s+e._id,e)},deleteShowcaseImage:function(e,t){return r.A.delete("/api/image/showcase/delete/"+e,{url:t})},getExpertReviewRequests:function(e,t,n){return r.A.getWithParams(i+"review/expert",{unanswered:e,page:t,pageSize:n})},getCommunityReviews:function(e,t){return r.A.getWithParams(i+"review/community",{page:e,pageSize:t})},checkRenenwalInSync:function(){return r.A.get(i+"owndomain/checkRenenwalInSync")},getAllGodaddyDomains:function(){return r.A.get(i+"owndomain/getAllGodaddyDomains")},getAllExternalDomains:function(){return r.A.get(i+"owndomain/getAllExternalDomains")},getOldProxyDomains:function(){return r.A.get(i+"owndomain/getOldProxyDomains")},getRecordDetails:function(e){return r.A.get(i+"owndomain/getRecordDetails/"+e)},updateDomainRecords:function(e){return r.A.post(i+"owndomain/updateDomainRecords/"+e)},checkDomainDetails:function(e){return r.A.get(i+"owndomain/checkDomainDetails/"+e)},checkTldProfitMargin:function(){return r.A.get(i+"owndomain/checkTldProfitMargin")},getEmergencyModeSettings:function(){return r.A.get(i+"emergency/settings/get")},createEmergencyModeSettings:function(){return r.A.post(i+"emergency/settings/create")},updateEmergencyModeSettings:function(e){return r.A.put(i+"emergency/settings/update",e)},getBackgroundLibrary:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.w9.THUMBNAILS;return r.A.getWithParams(i+"background-library/",{scope:e})}
2,updateBackgroundLibrary:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.w9.THUMBNAILS;return r.A.put(i+"background-library/?scope="+t,e)},deleteBackgroundLibraryItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.w9.THUMBNAILS;return r.A.delete(i+"background-library/"+e+"?scope="+t)},getColorPalettes:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return r.A.getWithParams(i+"color-palettes",{includeDeleted:e})},addColorPalette:function(e){return r.A.post(i+"color-palettes",e)},updateColorPalette:function(e,t){return r.A.put(i+"color-palettes/"+e,t)},archiveColorPalette:function(e){return r.A.patch(i+"color-palettes/"+e+"/archive")},restoreColorPalette:function(e){return r.A.patch(i+"color-palettes/"+e+"/restore")},reorderColorPalettes:function(e,t){return r.A.put(i+"color-palettes/reorder/"+e,{paletteIds:t})},getSectionPresetStructure:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.A.getWithParams(i+"section-presets/groups",{includeArchivedPresets:e})},createSectionPresetGroup:function(e){return r.A.post(i+"section-presets/groups",{label:e})},renameSectionPresetGroup:function(e,t){return r.A.put(i+"section-presets/groups/"+e,{label:t})},archiveSectionPresetGroup:function(e){return r.A.delete(i+"section-presets/groups/"+e)},publishSectionPresetGroup:function(e){return r.A.patch(i+"section-presets/groups/"+e+"/publish")},unpublishSectionPresetGroup:function(e){return r.A.patch(i+"section-presets/groups/"+e+"/unpublish")},reorderSectionPresetGroups:function(e){return r.A.put(i+"section-presets/groups/reorder",{groupKeys:e})},createSectionPresetSubgroup:function(e,t){return r.A.post(i+"section-presets/groups/"+e+"/subgroups",{label:t})},renameSectionPresetSubgroup:function(e,t,n){return r.A.put(i+"section-presets/groups/"+e+"/subgroups/"+t,{label:n})},archiveSectionPresetSubgroup:function(e,t){return r.A.delete(i+"section-presets/groups/"+e+"/subgroups/"+t)},publishSectionPresetSubgroup:function(e,t){return r.A.patch(i+"section-presets/groups/"+e+"/subgroups/"+t+"/publish")},unpublishSectionPresetSubgroup:function(e,t){return r.A.patch(i+"section-presets/groups/"+e+"/subgroups/"+t+"/unpublish")},reorderSectionPresetSubgroups:function(e){return r.A.put(i+"section-presets/subgroups/reorder",{groups:e})},reorderSectionPresetsInSubgroups:function(e){return r.A.put(i+"section-presets/sections/reorder",{subgroups:e})},addSectionPresetToSubgroup:function(e,t,n){return r.A.post(i+"section-presets/groups/"+e+"/subgroups/"+t+"/sections",{presetKey:n})},getAdminSectionPreset:function(e){return r.A.get(i+"section-presets/presets/"+e)},createAdminSectionPreset:function(e){return r.A.post(i+"section-presets/presets",e)},updateAdminSectionPreset:function(e,t){return r.A.put(i+"section-presets/presets/"+e,t)},archiveAdminSectionPreset:function(e){return r.A.patch(i+"section-presets/presets/"+e+"/archive")},restoreAdminSectionPreset:function(e){return r.A.patch(i+"section-presets/presets/"+e+"/restore")},getAdminSectionPresetSections:function(e){return r.A.get(i+"section-presets/presets/"+e+"/sections")},getAdminBaseSection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r.A.getWithParams(i+"section-presets/base-section",{sectionType:e,mediaType:t})},uploadSectionPresetImage:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s="string"==typeof e?e.trim():"",a=s?"".concat(s,"/admin/section-presets/media"):"admin/section-presets/media";return function(e,t,n,o,i){var s=new FormData;return s.append("imageFile",t,n),s.append("path",o),s.append("filesToDelete",i||[]),r.A.postMultipart(e,s)}(i+"section-presets/image/upload",t,"sectionPresetImage.".concat(n),a,o?[o]:[])},deleteSectionPresetImage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.A.delete(i+"section-presets/image/delete",{url:e,croppedImageUrl:t},n)}}},37794(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(65498),o="/api/generative-ai";const i={createProjectWithAi:function(e,t,n,i,s,a,l,c,u,d,p,f){var h=new FormData;return h.append("ownerId",e),h.append("portfolioId",t),h.append("order",n),h.append("selectedSections",i),h.append("userPrompt",s),h.append("selectedMockup",l),h.append("designSettings",new Blob([JSON.stringify(a)],{type:"application/json"})),h.append("defaultCaseStudyValues",new Blob([JSON.stringify(c)],{type:"application/json"})),h.append("defaultThumbnailData",new Blob([JSON.stringify(u)],{type:"application/json"})),d&&h.append("imageFile",d,f),p&&h.append("croppedImageFile",p,f),r.A.post("".concat(o,"/generate/case-study"),h)},enhanceText:function(e,t,n,i){var s={userPrompt:t,enhanceType:n,feature:i,
2content:e};return r.A.post("".concat(o,"/enhance"),s)},generateJobFitCheck:function(e){var t=e.jobTitle,n=e.jobCompany,i=e.jobDescription,s=e.ownerId,a=e.portfolioShortId;return r.A.post("".concat(o,"/generate/job-fit-checker"),{jobTitle:t,jobCompany:n,jobDescription:i,ownerId:s,portfolioShortId:a})}}},18957(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(65498);function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function a(n,r,o,s){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return i(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,a=e,p.n=n,l}};function f(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,a=h;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,a)):p.n=a:p.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?a:n.call(r,p))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,o,s),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(i(t={},r,function(){return this}),t),f=d.prototype=c.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,i(f,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,s,"GeneratorFunction"),i(f),i(f,s,"Generator"),i(f,r,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,r){function s(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},i(e,t,n,r)}function s(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,l,"next",e)}function l(e){s(i,r,o,a,l,"throw",e)}a(void 0)})}}var l="/api/job-fit-checks";const c={getPreviousJobFitChecks:(m=a(o().m(function e(){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,r.A.get("".concat(l)))},e)})),function(){return m.apply(this,arguments)}),getActiveJobFitCheck:(h=a(o().m(function e(t){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,r.A.get("".concat(l,"/").concat(t)))},e)})),function(e){return h.apply(this,arguments)}),updateJobFitCheck:(f=a(o().m(function e(t){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,r.A.put("".concat(l),t))},e)})),function(e){return f.apply(this,arguments)}),linkJobFitCheckToPortfolio:(p=a(o().m(function e(t,n,i){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,r.A.put("".concat(l,"/link"),{portfolioId:t,jobFitCheckId:n,ownerId:i}))},e)})),function(e,t,n){return p.apply(this,arguments)}),unlinkJobFitCheckFromPortfolio:(d=a(o().m(function e(t,n){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,r.A.put("".concat(l,"/unlink"),{portfolioId:t,ownerId:n}))},e)})),function(e,t){return d.apply(this,arguments)}),deleteJobFitCheck:(u=a(o().m(function e(t){return o().w(function(e){for(;;)if(0===e.n)return e.a(2,r.A.delete("".concat(l,"/").concat(t)))},e)})),function(e){return u.apply(this,arguments)})};var u,d,p,f,h,m},46641(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(65498),o="/api/notifications/";const i={getLatestNotificationsForUser:function(e){return r.A.getWithParams(o+"latest",{userId:e})},getAllNotificationForUser:function(e){return r.A.getWithParams(o+"all",{userId:e})},getPaginatedNotification:function(e,t,n){return r.A.getWithParams(o+"paginated",{userId:e,page:t,perPage:n})},setNotificationSeenBy:function(e,t){return r.A.put(o+"read",{userId:e,notificationId:t})},getSeenSystemNotifications:function(e){return r.A.getWithParams(o+"seen-system",{userId:e})}}},88248(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(65498),o="/api/portfolio/",i="/api/portfolio-template/";const s={moveDomainToPortfolio:function(e,t){return r.A.post("".concat(o,"moveDomain/").concat(t,"/").concat(e))},getPortfolio:function(e){return r.A.get(o+e)},getPortfolioByShortId:function(e){return r.A.get("".concat(o,"shortid/").concat(e))},getPortfolios:function(e){return r.A.get("".concat(o,"getByUserId/")+e)},refreshManagerPreviews:function(e){return r.A.post("".concat(o).concat(e,"/manager-previews"))},refreshManagerPreview:function(e,t){return r.A.post("".concat(o).concat(e,"/manager-previews/").concat(t))},createPortfolio:function(e,t,n){return r.A.post(o+e,{portfolio:t,projects:n})},duplicatePortfolio:function(e,t,n){return r.A.post("".concat(o,"duplicate/")+e,{portfolio:t,portfolioTitle:n})},editPortfolio:function(e){return r.A.put(o,e)},addDefaultPortfolioPages:function(e){return r.A.put("".concat(o,"addDefaultPages"),e)},deletePortfolio:function(e){return r.A.delete(o+e)},getPortfolioTemplateSettings:function(e){return r.A.get("".concat(o).concat(e,"/template-settings"))},getPortfolioTemplatePreview:function(e){return r.A.get("".concat(i).c
2oncat(e,"/preview"))},getTemplatePreviews:function(){return r.A.get("".concat(i,"preview"))},getTemplateStyle:function(e){return r.A.get("".concat(i).concat(e,"/style"))},getPortfolioTemplateAndSettings:function(e){return r.A.get("".concat(o).concat(e,"/template-design-settings"))},getPortfolioSettings:function(e){return r.A.get("".concat(o).concat(e,"/settings"))},setPortfolioSettings:function(e,t){return r.A.put("".concat(o).concat(e,"/settings"),t)},setPortfolioPassword:function(e,t){return r.A.put(o+e+"/password",{password:t})},setPortfolioDraft:function(e,t){return r.A.put(o+e+"/draft",{draft:t})},deletePortfolioImage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.A.delete("/api/image/portfolio/delete/"+e,t,n)},setDomainForPortfolio:function(e,t){return r.A.post(o+"domain/"+e+"/"+t)},updatePortfolioUrl:function(e,t){return r.A.put(o+"updateUrl/"+e+"/"+t)},uploadCroppedImage:function(e,t,n,o,i){return function(e,t,n,o,i){var s=new FormData;return s.append("imageFile",t,n),s.append("path",o),s.append("filesToDelete",i),r.A.postMultipart(e,s)}("/api/image/portfolio/upload/"+t,n,"croppedImage."+o,e+"/portfolios/"+t,[i])},updatePortfolioLegacyLogo:function(e,t){return r.A.put("".concat(o,"updateLogo/").concat(t),e)},updatePortfolioLogo:function(e,t){return r.A.put("".concat(o).concat(t,"/logo"),e)},updatePortfolioNavigation:function(e,t){return r.A.put("".concat(o).concat(t,"/navigation"),e)},updatePortfolioHero:function(e,t){return r.A.put("".concat(o).concat(t,"/hero"),e)},updatePortfolioDesignSettings:function(e,t){return r.A.put("".concat(o).concat(t,"/design-settings"),e)},updatePortfolioCursorType:function(e,t){return r.A.put("".concat(o).concat(t,"/cursor-type"),{cursorType:e})},setPortfolioGlobalSpacing:function(e){return r.A.put("".concat(o,"setGlobalSpacing"),e)}}},95818(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(65498),o="/api/projects/";function i(e,t,n,o,i){var s=function(e){var t;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var n=e.split(",")[0].split(":")[1].split(";")[0],r=new Uint8Array(t.length),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return new Blob([r],{type:n})}(t),a=new FormData;return a.append("imageFile",s,n),a.append("path",o),a.append("filesToDelete",i),r.A.postMultipart(e,a)}function s(e,t,n,o,i){var s=new FormData;return s.append("imageFile",t,n),s.append("path",o),s.append("filesToDelete",i),r.A.postMultipart(e,s)}const a={getProject:function(e){return r.A.get(o+e)},getProjectByShortId:function(e,t){return r.A.get("".concat(o,"getByShortId/").concat(e,"/").concat(t))},getAllProject:function(e,t){return r.A.getWithParams(o+"all",{userId:e,basicInfo:t})},getProjectSettingsById:function(e){return r.A.get("".concat(o).concat(e,"/settings"))},updateDesignSettingsInProjects:function(e,t,n){return r.A.put("".concat(o,"all/").concat(e,"/").concat(t,"/designSettings"),n)},updateNavButtonStyle:function(e,t,n){return r.A.put("".concat(o,"all/").concat(e,"/").concat(t,"/buttonStyle"),n)},createProject:function(e,t,n,i,s,a,l,c,u,d,p){return r.A.post(o,{ownerId:e,portfolioId:t,type:n,order:i,name:s,link:a,suggestions:l,shortCaseStudy:c,designSettings:u,defaultCaseStudyValues:d,thumbnailData:p})},updateProjectByShortId:function(e,t,n,i){return r.A.post("".concat(o).concat(e,"/").concat(t,"/update"),{name:n,link:i})},getPortfolioPages:function(e){return r.A.get("".concat(o,"pages/").concat(e))},getCaseStudyPages:function(e){return r.A.get("".concat(o,"pages/").concat(e,"/caseStudy"))},updatePortfolioPagesOrder:function(e,t){return r.A.put("".concat(o,"pages/").concat(e,"/order"),t)},updateCaseStudyPagesOrder:function(e,t){return r.A.put("".concat(o,"pages/").concat(e,"/order/caseStudies"),t)},duplicateProject:function(e){return r.A.post(o+e+"/duplicate",null)},deleteProject:function(e){return r.A.delete(o+e,null)},uploadGeneratedThumbnail:function(e,t,n){return i("/api/image/project/upload/"+t,n,"GeneratedThumbnail.png",e+"/"+t)},uploadProjectImage:function(e,t,n,r,o,i,a){return s("/api/image/project/upload/"+t,n,+o+"."+i,e+"/"+t,[a])},uploadThumbnailImage:function(e,t,n,r,o,s){return i("/api/image/project/upload/"+t,n,r+"."+o,e+"/"+t)},uploadCroppedImage:function(e,t,n,r,o){return s("/api/image/project/upload/"+t,n,"croppedImage."+r,e+"/"+t,[o])},updateProjectImage:function(e,t,n,i){return r.A.put(o+e+"/image",{url:t,croppedImageUrl:n,altTag:i})},deleteProjectImage:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r.A.delete("/api/image/project/delete/"+e,{url:t,croppedImageUrl:n},o)},updateProjectSocialImage:function(e,t){return i(o+e+"/socialImage",t,"GeneratedSocialThumbnail.jpg")},setProjectDraft:function(e,t){return r.A.put(o+e+"/draft",{draft:t})},archiveProject:function(e){return r.A.put(o+e+"/archive")},setProjectSettings:function(e,t){return r.A.put(o+e+"/settings",t)},updateProjectDesignSettings:function(e,t){return r.A.put(o+e+"/designSettings",t)},setProjectCta:function(e,t){return r.A.put(o+e+"/cta",t)},setProjectLabels:function(e,t){return r.A.put(o+e+"/labels",t)},setProjectNameAndSubtitle:function(e,t,n){return r.A.put(o+e+"/nameAndSubtitle",{name:t,subtitle:n})},setProjectPassword:function(e,t){return r.A.put(o+e+"/password",{password:t})},addSection:function(e,t){return r.A.post(o+e+"/section",t)},updateSection:function(e,t){return r.A.put(o+e+"/section",t)},updateSections:function(e,t){return r.A.put(o+e+"/sections",t)},reorderSections:function(e,t){return r.A.put(o+e+"/sections/reorder",t)}
2,archiveSection:function(e,t){return r.A.put(o+e+"/section/archive/"+t,t)},duplicateSection:function(e,t,n){return r.A.post("".concat(o).concat(e,"/section/").concat(t,"/duplicate"),{index:n})},deleteSection:function(e,t){return r.A.delete(o+e+"/section",t)},deleteGalleryItem:function(e,t,n){return r.A.delete(o+e+"/gallerySection/"+t,n)},updateProjectUrl:function(e,t){return r.A.put(o+"updateUrl/"+e+"/"+t)},setProjectGlobalSpacing:function(e){return r.A.put("".concat(o,"setGlobalSpacing"),e)},updateProjectThumbnailData:function(e,t){return r.A.put(o+e+"/thumbnail-data",t)},uploadCroppedThumbnailImage:function(e,t,n,r,o,i){return s("/api/image/project/upload/".concat(t),e,"".concat(n,".").concat(r),o,i)}}},15907(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(65498),o="/api/fonts",i="/api/fontpairs";const s={getFonts:function(e){return r.A.get(o+e)},updateFont:function(e,t){return r.A.put(o+"/"+e,t)},deleteFont:function(e){return r.A.delete(o+"/"+e)},getFontPairs:function(e){return r.A.get(i+e)},createFontPair:function(e){return r.A.post(i,e)},updateFontPair:function(e,t){return r.A.put(i+"/"+e,t)},deleteFontPair:function(e){return r.A.delete(i+"/"+e)}}},76647(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(65498),o="/api/users/";const i={getMyUser:function(){return r.A.get(o+"me")},createMyUser:function(){return r.A.post(o+"me")},ensureMyUser:function(){return r.A.post(o+"me/ensure")},editUser:function(e){return r.A.put(o,e)},getUserSettings:function(e){return r.A.get(o+e+"/settings")},deleteCV:function(e){return r.A.delete(o+e+"/cv")},deleteUserImage:function(e,t){return r.A.delete("/api/image/user/delete/"+e,t)},deleteUser:function(e){return r.A.delete(o+e)},deleteUserAsAdmin:function(e){return r.A.delete(o+"admin/"+e)},updateLoginEmail:function(e,t){return r.A.post(o+"updateLoginEmail/"+e+"/"+t)},changePassword:function(e,t){return r.A.post(o+"passwordChange/"+e,{newPassword:t})},updateUserInDrip:function(e,t){return r.A.post("".concat(o,"dripUpdate/").concat(e,"/").concat(t))}}},97293(e,t,n){"use strict";n.d(t,{B2:()=>p,Cl:()=>d,JF:()=>o,NJ:()=>s,OH:()=>c,W3:()=>i,lE:()=>r,oN:()=>u,yw:()=>f});var r="folio:auth-status",o="folio:auth-status-clear",i="folio:session-expired",s="folio:permission-denied",a=[/^\/data\/ownDomain$/,/^\/data\/portfolio(?:\/|$)/,/^\/data\/shortid(?:\/|$)/],l=[/^\/api\/notifications(?:\/|$)/];function c(e){if(!e)return!1;var t=function(e){try{return new URL(e,window.location.origin).pathname}catch(t){return String(e).split("?")[0]}}(e);return[].concat(a,l).some(function(e){return e.test(t)})}function u(e){window.__uxfolioAuthStatus=e,window.dispatchEvent(new CustomEvent(r,{detail:e}))}function d(){window.__uxfolioAuthStatus=null,window.dispatchEvent(new CustomEvent(o))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(i,{detail:e}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(s,{detail:e}))}},67208(e,t,n){"use strict";n.d(t,{$t:()=>Pe,iD:()=>ze,Ag:()=>ve,Ld:()=>Fe,bJ:()=>ut,Ng:()=>Te,Ax:()=>ee,RR:()=>Ie,Fs:()=>ct,Kq:()=>F,Rf:()=>Ge,z6:()=>it,Zr:()=>qe,ri:()=>at,T8:()=>xe,mI:()=>ke,kz:()=>Ve,XV:()=>st,w2:()=>Ze,f1:()=>Ee,vw:()=>Oe,xw:()=>tt,KQ:()=>Le,kW:()=>Ae,Gi:()=>Qe,fx:()=>rt});function r(){if("undefined"==typeof crypto||void 0===crypto.randomUUID)throw new Error("Web Crypto API is not available.");return crypto.randomUUID()}const o="kc-callback-";class i{constructor(){globalThis.localStorage.setItem("kc-test","test"),globalThis.localStorage.removeItem("kc-test")}get(e){if(!e)return null;this.#e();const t=o+e,n=globalThis.localStorage.getItem(t);return n?(globalThis.localStorage.removeItem(t),JSON.parse(n)):null}add(e){this.#e();const t=o+e.state,n=JSON.stringify({...e,expires:Date.now()+36e5});try{globalThis.localStorage.setItem(t,n)}catch(e){this.#t(),globalThis.localStorage.setItem(t,n)}}#e(){const e=Date.now();for(const[t,n]of this.#n()){const r=this.#r(n);(null===r||r<e)&&globalThis.localStorage.removeItem(t)}}#t(){for(const[e]of this.#n())globalThis.localStorage.removeItem(e)}#n(){return Object.entries(globalThis.localStorage).filter(([e])=>e.startsWith(o))}#r(e){let t;try{t=JSON.parse(e)}catch(e){return null}return l(t)&&"expires"in t&&"number"==typeof t.expires?t.expires:null}}class s{get(e){if(!e)return null;const t=this.#o(o+e);return this.#i(o+e,"",this.#s(-100)),t?JSON.parse(t):null}add(e){this.#i(o+e.state,JSON.stringify(e),this.#s(60))}#o(e){const t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""}
2#i(e,t,n){const r=e+"="+t+"; expires="+n.toUTCString()+"; ";document.cookie=r}#s(e){const t=new Date;return t.setTime(t.getTime()+60*e*1e3),t}}function a(e){const[,t]=e.split(".");if("string"!=typeof t)throw new Error("Unable to decode token, payload not found.");let n;try{n=function(e){let t=e.replaceAll("-","+").replaceAll("_","/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Input is not of the correct length.")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return atob(t)}}(t)}catch(e){throw new Error("Unable to decode token, payload is not a valid Base64URL value.",{cause:e})}try{return JSON.parse(n)}catch(e){throw new Error("Unable to decode token, payload is not a valid JSON value.",{cause:e})}}function l(e){return"object"==typeof e&&null!==e}async function c(e,t={}){const n=new Headers(t.headers);n.set("Accept","application/json");const r=await async function(e,t){const n=await fetch(e,t);if(!n.ok)throw new p("Server responded with an invalid status.",{response:n});return n}(e,{...t,headers:n});return await r.json()}function u(e){if(!e)throw new Error("Unable to build authorization header, token is not set, make sure the user is authenticated.");return["Authorization",`bearer ${e}`]}function d(e){return e.endsWith("/")?e.slice(0,-1):e}
vendor: 6,568 bytes, line 2
2class p extends Error{response;constructor(e,t){super(e,t),this.response=t.response}}const f=e=>new Promise(t=>setTimeout(t,e));var h=n(18080),m=n(75129),v=n(97293);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return k(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(k(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,k(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,k(d,"constructor",c),k(c,"constructor",l),l.displayName="GeneratorFunction",k(c,o,"GeneratorFunction"),k(d),k(d,o,"Generator"),k(d,r,function(){return this}),k(d,"toString",function(){return"[object Generator]"}),(S=function(){return{w:i,m:p}})()}function k(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}k=function(e,t,n,r){function i(t,n){k(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},k(e,t,n,r)}function _(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function E(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){A(i,r,o,s,a,"next",e)}function a(e){A(i,r,o,s,a,"throw",e)}s(void 0)})}}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P(r.key),r)}}function P(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}function I(e,t,n){return t=D(t),function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,j()?Reflect.construct(t,n||[],D(e).constructor):t.apply(e,n))}function L(e){var t="function"==typeof Map?new Map:void 0;return L=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(j())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&M(o,n.prototype),o}(e,arguments,D(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),M(n,e)},L(e)}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j=function(){return!!e})()}
2function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var R=window.UXFOLIO_AUTH_CONFIG||{url:"http://localhost:8080",realm:"Folio-dev",clientId:"folio-dev"},N=window.UXFOLIO_BFF_AUTH_CONFIG||{enabled:!1,baseUrl:""},F=new class{#a=[];#l;#c=!0;#u;#d=this.#p(console.info);#f=this.#p(console.warn);#h={enable:!0,callbackList:[],interval:5};#m;didInitialize=!1;authenticated=!1;loginRequired=!1;responseMode="fragment";responseType="code";flow="standard";timeSkew=null;redirectUri;silentCheckSsoRedirectUri;silentCheckSsoFallback=!0;pkceMethod="S256";enableLogging=!1;logoutMethod="GET";scope;messageReceiveTimeout=1e4;idToken;idTokenParsed;token;tokenParsed;refreshToken;refreshTokenParsed;clientId;sessionId;subject;authServerUrl;realm;realmAccess;resourceAccess;profile;userInfo;endpoints;tokenTimeoutHandle;onAuthSuccess;onAuthError;onAuthRefreshSuccess;onAuthRefreshError;onTokenExpired;onAuthLogout;onReady;onActionUpdate;constructor(e){if("string"!=typeof e&&!l(e))throw new Error("The 'Keycloak' constructor must be provided with a configuration object, or a URL to a JSON configuration file.");if(l(e)){const t="oidcProvider"in e?["clientId"]:["url","realm","clientId"];for(const n of t)if(!(n in e))throw new Error(`The configuration object is missing the required '${n}' property.`)}globalThis.isSecureContext||this.#f("[KEYCLOAK] Keycloak JS must be used in a 'secure context' to function properly as it relies on browser APIs that are otherwise not available.\nContinuing to run your application insecurely will lead to unexpected behavior and breakage.\n\nFor more information see: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"),this.#m=e}init=async(e={})=>{if(this.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");this.didInitialize=!0,this.#u=function(){try{return new i}catch(e){return new s}}();if("string"==typeof e.adapter&&["default","cordova","cordova-native"].includes(e.adapter)?this.#l=this.#v(e.adapter):"object"==typeof e.adapter?this.#l=e.adapter:"Cordova"in window||"cordova"in window?this.#l=this.#v("cordova"):this.#l=this.#v("default"),void 0!==e.useNonce&&(this.#c=e.useNonce),void 0!==e.checkLoginIframe&&(this.#h.enable=e.checkLoginIframe),e.checkLoginIframeInterval&&(this.#h.interval=e.checkLoginIframeInterval),"login-required"===e.onLoad&&(this.loginRequired=!0),e.responseMode){if("query"!==e.responseMode&&"fragment"!==e.responseMode)throw new Error("Invalid value for responseMode");this.responseMode=e.responseMode}if(e.flow){switch(e.flow){case"standard":this.responseType="code";break;case"implicit":this.responseType="id_token token";break;case"hybrid":this.responseType="code id_token token";break;default:throw new Error("Invalid value for flow")}this.flow=e.flow}if("number"==typeof e.timeSkew&&(this.timeSkew=e.timeSkew),e.redirectUri&&(this.redirectUri=e.redirectUri),e.silentCheckSsoRedirectUri&&(this.silentCheckSsoRedirectUri=e.silentCheckSsoRedirectUri),"boolean"==typeof e.silentCheckSsoFallback&&(this.silentCheckSsoFallback=e.silentCheckSsoFallback),void 0!==e.pkceMethod){if("S256"!==e.pkceMethod&&!1!==e.pkceMethod)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${e.pkceMethod}.`);this.pkceMethod=e.pkceMethod}return"boolean"==typeof e.enableLogging&&(this.enableLogging=e.enableLogging),"POST"===e.logoutMethod&&(this.logoutMethod="POST"),"string"==typeof e.scope&&(this.scope=e.scope),"number"==typeof e.messageReceiveTimeout&&e.messageReceiveTimeout>0&&(this.messageReceiveTimeout=e.messageReceiveTimeout),await this.#g(),await this.#y(),await this.#b(e),this.onReady?.(this.authenticated),this.authenticated};#v(e){if("default"===e)return this.#w();if("cordova"===e)return this.#h.enable=!1,this.#S();if("cordova-native"===e)return this.#h.enable=!1,this.#k();throw new Error("invalid adapter type: "+e)}#w(){const e=e=>e?.redirectUri||this.redirectUri||globalThis.location.href;return{login:async e=>(window.location.assign(await this.createLoginUrl(e)),await new Promise(()=>{})),logout:async t=>{if("GET"===(t?.logoutMethod??this.logoutMethod))return void window.location.replace(this.createLogoutUrl(t));const n=document.createElement("form");n.setAttribute("method","POST"),n.setAttribute("action",this.createLogoutUrl(t)),n.style.display="none";const r={id_token_hint:this.idToken,client_id:this.clientId,post_logout_redirect_uri:e(t)};for(const[e,t]of Object.entries(r)){const r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",e),r.setAttribute("value",t),n.appendChild(r)}document.body.appendChild(n),n.submit()},register:async e=>(window.location.assign(await this.createRegisterUrl(e)),await new Promise(()=>{})),accountManagement:async()=>{const e=this.createAccountUrl();if(void 0===e)throw new Error("Not supported by the OIDC server");return window.location.href=e,await new Promise(()=>{})},redirectUri:e}}
2#S(){const e=(e,t,n)=>window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,n):window.open(e,t,n),t=e=>{const t=(e=>e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((t,n)=>(t[n]=e.cordovaOptions[n],t),{}):{})(e);return t.location="no",e&&"none"===e.prompt&&(t.hidden="yes"),(e=>Object.keys(e).reduce((t,n)=>(t.push(n+"="+e[n]),t),[]).join(","))(t)},n=()=>this.redirectUri||"http://localhost";return{login:async r=>{const o=t(r),i=await this.createLoginUrl(r),s=e(i,"_blank",o);let a=!1,l=!1;function c(){l=!0,s.close()}return await new Promise((e,t)=>{s.addEventListener("loadstart",async r=>{if(0===r.url.indexOf(n())){const n=this.#_(r.url);a=!0,c();try{await this.#O(n),e()}catch(e){t(e)}}}),s.addEventListener("loaderror",async r=>{if(!a)if(0===r.url.indexOf(n())){const n=this.#_(r.url);a=!0,c();try{await this.#O(n),e()}catch(e){t(e)}}else t(new Error("Unable to process login.")),c()}),s.addEventListener("exit",function(e){l||t(new Error("User closed the login window."))})})},logout:async t=>{const r=this.createLogoutUrl(t),o=e(r,"_blank","location=no,hidden=yes,clearcache=yes");let i=!1;o.addEventListener("loadstart",e=>{0===e.url.indexOf(n())&&o.close()}),o.addEventListener("loaderror",e=>{0===e.url.indexOf(n())||(i=!0),o.close()}),await new Promise((e,t)=>{o.addEventListener("exit",()=>{i?t(new Error("User closed the login window.")):(this.clearToken(),e())})})},register:async r=>{const o=await this.createRegisterUrl(),i=t(r),s=e(o,"_blank",i),a=new Promise((e,t)=>{s.addEventListener("loadstart",async r=>{if(0===r.url.indexOf(n())){s.close();const n=this.#_(r.url);try{await this.#O(n),e()}catch(e){t(e)}}})});await a},accountManagement:async()=>{const t=this.createAccountUrl();if(void 0===t)throw new Error("Not supported by the OIDC server");{const r=e(t,"_blank","location=no");r.addEventListener("loadstart",function(e){0===e.url.indexOf(n())&&r.close()})}},redirectUri:()=>n()}}#k(){return{login:async e=>{const t=await this.createLoginUrl(e);await new Promise((e,n)=>{universalLinks.subscribe("keycloak",async t=>{universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();const r=this.#_(t.url);try{await this.#O(r),e()}catch(e){n(e)}}),window.cordova.plugins.browsertab.openUrl(t)})},logout:async e=>{const t=this.createLogoutUrl(e);await new Promise(e=>{universalLinks.subscribe("keycloak",()=>{universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),this.clearToken(),e()}),window.cordova.plugins.browsertab.openUrl(t)})},register:async e=>{const t=await this.createRegisterUrl(e);await new Promise((e,n)=>{universalLinks.subscribe("keycloak",async t=>{universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();const r=this.#_(t.url);try{await this.#O(r),e()}catch(e){n(e)}}),window.cordova.plugins.browsertab.openUrl(t)})},accountManagement:async()=>{const e=this.createAccountUrl();if(void 0===e)throw new Error("Not supported by the OIDC server");window.cordova.plugins.browsertab.openUrl(e)},redirectUri:e=>e&&e.redirectUri?e.redirectUri:this.redirectUri?this.redirectUri:"http://localhost"}}async#g(){if("string"==typeof this.#m){const e=await async function(e){return await c(e)}(this.#m);this.authServerUrl=e["auth-server-url"],this.realm=e.realm,this.clientId=e.resource,this.#C()}else this.clientId=this.#m.clientId,"oidcProvider"in this.#m?await this.#T(this.#m.oidcProvider):(this.authServerUrl=this.#m.url,this.realm=this.#m.realm,this.#C())}#C(){this.endpoints={authorize:()=>this.#A()+"/protocol/openid-connect/auth",token:()=>this.#A()+"/protocol/openid-connect/token",logout:()=>this.#A()+"/protocol/openid-connect/logout",checkSessionIframe:()=>this.#A()+"/protocol/openid-connect/login-status-iframe.html",thirdPartyCookiesIframe:()=>this.#A()+"/protocol/openid-connect/3p-cookies/step1.html",register:()=>this.#A()+"/protocol/openid-connect/registrations",userinfo:()=>this.#A()+"/protocol/openid-connect/userinfo"}}async#T(e){if("string"==typeof e){const t=`${d(e)}/.well-known/openid-configuration`,n=await async function(e){return await c(e)}(t);
2this.#E(n)}else this.#E(e)}#E(e){this.endpoints={authorize:()=>e.authorization_endpoint,token:()=>e.token_endpoint,logout(){if(!e.end_session_endpoint)throw new Error("Not supported by the OIDC server");return e.end_session_endpoint},checkSessionIframe(){if(!e.check_session_iframe)throw new Error("Not supported by the OIDC server");return e.check_session_iframe},register(){throw new Error('Redirection to "Register user" page not supported in standard OIDC mode')},userinfo(){if(!e.userinfo_endpoint)throw new Error("Not supported by the OIDC server");return e.userinfo_endpoint}}}async#y(){if(!this.#h.enable&&!this.silentCheckSsoRedirectUri||"function"!=typeof this.endpoints.thirdPartyCookiesIframe)return;const e=document.createElement("iframe");e.setAttribute("src",this.endpoints.thirdPartyCookiesIframe()),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-3p-check-iframe"),e.style.display="none",document.body.appendChild(e);const t=new Promise(t=>{const n=r=>{e.contentWindow===r.source&&("supported"!==r.data&&"unsupported"!==r.data||("unsupported"===r.data&&(this.#f("[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\nFor more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"),this.#h.enable=!1,this.silentCheckSsoFallback&&(this.silentCheckSsoRedirectUri=void 0)),document.body.removeChild(e),window.removeEventListener("message",n),t()))};window.addEventListener("message",n,!1)});return await function(e,t,n){let r;const o=new Promise(function(e,o){r=window.setTimeout(function(){o(new Error(n||"Promise is not settled within timeout of "+t+"ms"))},t)});return Promise.race([e,o]).finally(function(){clearTimeout(r)})}(t,this.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}async#b(e){const t=this.#_(window.location.href);if(t?.newUrl&&window.history.replaceState(window.history.state,"",t.newUrl),t&&t.valid)return await this.#x(),void await this.#O(t);const n=async t=>{const n={};t||(n.prompt="none"),e.locale&&(n.locale=e.locale),await this.login(n)},r=async()=>{switch(e.onLoad){case"check-sso":if(this.#h.enable){await this.#x();await this.#P()||(this.silentCheckSsoRedirectUri?await this.#I():await n(!1))}else this.silentCheckSsoRedirectUri?await this.#I():await n(!1);break;case"login-required":await n(!0);break;default:throw new Error("Invalid value for onLoad")}};if(e.token&&e.refreshToken)if(this.#L(e.token,e.refreshToken,e.idToken),this.#h.enable){await this.#x();await this.#P()&&(this.onAuthSuccess?.(),this.#j())}else try{await this.updateToken(-1),this.onAuthSuccess?.()}catch(t){if(this.onAuthError?.(),!e.onLoad)throw t;await r()}else e.onLoad&&await r()}async#x(){if(!this.#h.enable||this.#h.iframe)return;const e=document.createElement("iframe");this.#h.iframe=e,e.setAttribute("src",this.endpoints.checkSessionIframe()),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-session-iframe"),e.style.display="none",document.body.appendChild(e);window.addEventListener("message",e=>{if(e.origin!==this.#h.iframeOrigin||this.#h.iframe?.contentWindow!==e.source)return;if("unchanged"!==e.data&&"changed"!==e.data&&"error"!==e.data)return;"unchanged"!==e.data&&this.clearToken();const t=this.#h.callbackList;this.#h.callbackList=[];for(const n of t.reverse())"error"===e.data?n(new Error("Error while checking login iframe")):n(null,"unchanged"===e.data)},!1);const t=new Promise(t=>{e.addEventListener("load",()=>{const e=this.endpoints.authorize();e.startsWith("/")?this.#h.iframeOrigin=globalThis.location.origin:this.#h.iframeOrigin=new URL(e).origin,t()})});await t}async#P(){if(!this.#h.iframe||!this.#h.iframeOrigin)return;const e=`${this.clientId} ${this.sessionId?this.sessionId:""}`,t=this.#h.iframeOrigin,n=new Promise((n,r)=>{this.#h.callbackList.push((e,t)=>e?r(e):n(t)),1===this.#h.callbackList.length&&this.#h.iframe?.contentWindow?.postMessage(e,t)});return await n}async#I(){const e=document.createElement("iframe"),t=await this.createLoginUrl({prompt:"none",redirectUri:this.silentCheckSsoRedirectUri});return e.setAttribute("src",t),e.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e),await new Promise((t,n)=>{const r=async o=>{if(o.origin!==window.location.origin||e.contentWindow!==o.source)return;const i=this.#_(o.data);try{await this.#O(i),t()}catch(e){n(e)}document.body.removeChild(e),window.removeEventListener("message",r)};window.addEventListener("message",r)})}#_(e){const t=this.#M(e);if(!t)return;const n=this.#u.get(t.state);return n&&(t.valid=!0,t.redirectUri=n.redirectUri,t.storedNonce=n.nonce,t.prompt=n.prompt,t.pkceCodeVerifier=n.pkceCodeVerifier,t.loginOptions=n.loginOptions),t}#M(e){let t=[];switch(this.flow){case"standard":t=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":t=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":t=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"]}
2t.push("error"),t.push("error_description"),t.push("error_uri");const n=new URL(e);let r,o="";if("query"===this.responseMode&&n.searchParams.size>0?(r=this.#D(n.search,t),n.search=r.paramsString,o=n.toString()):"fragment"===this.responseMode&&n.hash.length>0&&(r=this.#D(n.hash.substring(1),t),n.hash=r.paramsString,o=n.toString()),r?.oauthParams)if("standard"===this.flow||"hybrid"===this.flow){if((r.oauthParams.code||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=o,r.oauthParams}else if("implicit"===this.flow&&(r.oauthParams.access_token||r.oauthParams.error)&&r.oauthParams.state)return r.oauthParams.newUrl=o,r.oauthParams}#D(e,t){const n=e.split("&"),r={};let o="";for(const e of n.reverse()){const n=new URLSearchParams(e).entries().next().value;if(!n){o="&"+o;continue}const[i,s]=n;t.includes(i)&&!(i in r)?r[i]=s:o=0===o.length?e:e+"&"+o}return{paramsString:o,oauthParams:r}}async#O(e){const{code:t,error:n,prompt:r}=e;let o=(new Date).getTime();const i=(t,n,r)=>{if(o=(o+(new Date).getTime())/2,this.#L(t,n,r,o),this.#c&&this.idTokenParsed&&this.idTokenParsed.nonce!==e.storedNonce)throw this.#d("[KEYCLOAK] Invalid nonce, clearing token"),this.clearToken(),new Error("Invalid nonce.")};if(e.kc_action_status&&this.onActionUpdate&&this.onActionUpdate(e.kc_action_status,e.kc_action),n){if("none"!==r){if(!e.error_description||"authentication_expired"!==e.error_description){const t={error:n,error_description:e.error_description};throw this.onAuthError?.(t),t}await this.login(e.loginOptions)}}else if("standard"!==this.flow&&(e.access_token||e.id_token)&&(i(e.access_token,void 0,e.id_token),this.onAuthSuccess?.()),"implicit"!==this.flow&&t)try{const n=await async function(e,t,n,r,o){const i=new URLSearchParams([["code",t],["grant_type","authorization_code"],["client_id",n],["redirect_uri",r]]);o&&i.append("code_verifier",o);return await c(e,{method:"POST",credentials:"include",body:i})}(this.endpoints.token(),t,this.clientId,e.redirectUri,e.pkceCodeVerifier);i(n.access_token,n.refresh_token,n.id_token),"standard"===this.flow&&this.onAuthSuccess?.(),this.#j()}catch(n){throw this.onAuthError?.(),n}}async#j(){if(this.#h.enable&&this.token){await f(1e3*this.#h.interval);await this.#P()&&await this.#j()}}login=e=>this.#l.login(e);createLoginUrl=async e=>{const t=r(),n=r(),o=this.#l.redirectUri(e),i={state:t,nonce:n,redirectUri:o,loginOptions:e};e?.prompt&&(i.prompt=e.prompt);const s="register"===e?.action?this.endpoints.register():this.endpoints.authorize();let a=e?.scope||this.scope;const l=a?a.split(" "):[];l.includes("openid")||l.unshift("openid"),a=l.join(" ");const c=new URLSearchParams([["client_id",this.clientId],["redirect_uri",o],["state",t],["response_mode",this.responseMode],["response_type",this.responseType],["scope",a]]);var u;if(this.#c&&c.append("nonce",n),e?.prompt&&c.append("prompt",e.prompt),"number"==typeof e?.maxAge&&c.append("max_age",e.maxAge.toString()),e?.loginHint&&c.append("login_hint",e.loginHint),e?.idpHint&&c.append("kc_idp_hint",e.idpHint),e?.action&&"register"!==e.action&&c.append("kc_action",e.action),e?.locale&&c.append("ui_locales",e.locale),e?.acr&&c.append("claims",(u=e.acr,JSON.stringify({id_token:{acr:u}}))),e?.acrValues&&c.append("acr_values",e.acrValues),this.pkceMethod)try{const e=function(e,t){const n=function(e){if("undefined"==typeof crypto||void 0===crypto.getRandomValues)throw new Error("Web Crypto API is not available.");return crypto.getRandomValues(new Uint8Array(e))}(e),r=new Array(e);for(let o=0;o<e;o++)r[o]=t.charCodeAt(n[o]%t.length);return String.fromCharCode.apply(null,r)}(96,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"),t=await async function(e,t){if("S256"!==e)throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${e}'.`);const n=new Uint8Array(await async function(e){const t=(new TextEncoder).encode(e);if("undefined"==typeof crypto||void 0===crypto.subtle)throw new Error("Web Crypto API is not available.");return await crypto.subtle.digest("SHA-256",t)}(t));return function(e){const t=String.fromCodePoint(...e);return btoa(t)}(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}(this.pkceMethod,e);i.pkceCodeVerifier=e,c.append("code_challenge",t),c.append("code_challenge_method",this.pkceMethod)}catch(e){throw new Error("Failed to generate PKCE challenge.",{cause:e})}return this.#u.add(i),`${s}?${c.toString()}`};logout=e=>this.#l.logout(e);createLogoutUrl=e=>{const t=e?.logoutMethod??this.logoutMethod,n=this.endpoints.logout();if("POST"===t)return n;
2const r=new URLSearchParams([["client_id",this.clientId],["post_logout_redirect_uri",this.#l.redirectUri(e)]]);return this.idToken&&r.append("id_token_hint",this.idToken),`${n}?${r.toString()}`};register=e=>this.#l.register(e);createRegisterUrl=e=>this.createLoginUrl({...e,action:"register"});createAccountUrl=e=>{const t=this.#A();if(!t)throw new Error("Unable to create account URL, make sure the adapter is not configured using a generic OIDC provider.");return`${t}/account?${new URLSearchParams([["referrer",this.clientId],["referrer_uri",this.#l.redirectUri(e)]]).toString()}`};accountManagement=()=>this.#l.accountManagement();hasRealmRole=e=>{const t=this.realmAccess;return!!t&&t.roles.indexOf(e)>=0};hasResourceRole=(e,t)=>{if(!this.resourceAccess)return!1;const n=this.resourceAccess[t||this.clientId];return!!n&&n.roles.indexOf(e)>=0};loadUserProfile=async()=>{const e=this.#A();if(!e)throw new Error("Unable to load user profile, make sure the adapter is not configured using a generic OIDC provider.");const t=`${e}/account`,n=await c(t,{headers:[u(this.token)]});return this.profile=n};loadUserInfo=async()=>{const e=this.endpoints.userinfo(),t=await c(e,{headers:[u(this.token)]});return this.userInfo=t};isTokenExpired=e=>{if(!this.tokenParsed||!this.refreshToken&&"implicit"!==this.flow)throw new Error("Not authenticated");if(null==this.timeSkew)return this.#d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;if("number"!=typeof this.tokenParsed.exp)return!1;let t=this.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+this.timeSkew;if(e){if(isNaN(e))throw new Error("Invalid minValidity");t-=e}return t<0};updateToken=async e=>{if(!this.refreshToken)throw new Error("Unable to update token, no refresh token available.");e=e||5,this.#h.enable&&await this.#P();let t=!1;if(-1===e?(t=!0,this.#d("[KEYCLOAK] Refreshing token: forced refresh")):this.tokenParsed&&!this.isTokenExpired(e)||(t=!0,this.#d("[KEYCLOAK] Refreshing token: token expired")),!t)return!1;const{promise:n,resolve:r,reject:o}=Promise.withResolvers();if(this.#a.push({resolve:r,reject:o}),1===this.#a.length){const e=this.endpoints.token();let t=(new Date).getTime();try{const n=await async function(e,t,n){const r=new URLSearchParams([["grant_type","refresh_token"],["refresh_token",t],["client_id",n]]);return await c(e,{method:"POST",credentials:"include",body:r})}(e,this.refreshToken,this.clientId);this.#d("[KEYCLOAK] Token refreshed"),t=(t+(new Date).getTime())/2,this.#L(n.access_token,n.refresh_token,n.id_token,t),this.onAuthRefreshSuccess?.();for(let e=this.#a.pop();null!=e;e=this.#a.pop())e.resolve(!0)}catch(e){this.#f("[KEYCLOAK] Failed to refresh token"),e instanceof p&&400===e.response.status&&this.clearToken(),this.onAuthRefreshError?.();for(let t=this.#a.pop();null!=t;t=this.#a.pop())t.reject(e)}}return await n};clearToken=()=>{this.token&&(this.#L(),this.onAuthLogout?.(),this.loginRequired&&this.login())};#L(e,t,n,r){if(this.tokenTimeoutHandle&&(clearTimeout(this.tokenTimeoutHandle),this.tokenTimeoutHandle=void 0),t?(this.refreshToken=t,this.refreshTokenParsed=a(t)):(delete this.refreshToken,delete this.refreshTokenParsed),n?(this.idToken=n,this.idTokenParsed=a(n)):(delete this.idToken,delete this.idTokenParsed),e){if(this.token=e,this.tokenParsed=a(e),this.sessionId=this.tokenParsed.sid,this.authenticated=!0,this.subject=this.tokenParsed.sub,this.realmAccess=this.tokenParsed.realm_access,this.resourceAccess=this.tokenParsed.resource_access,r&&(this.timeSkew=Math.floor(r/1e3)-this.tokenParsed.iat),null!==this.timeSkew&&(this.#d("[KEYCLOAK] Estimated time difference between browser and server is "+this.timeSkew+" seconds"),this.onTokenExpired)){const e=1e3*(this.tokenParsed.exp-(new Date).getTime()/1e3+this.timeSkew);this.#d("[KEYCLOAK] Token expires in "+Math.round(e/1e3)+" s"),e<=0?this.onTokenExpired():this.tokenTimeoutHandle=window.setTimeout(this.onTokenExpired,e)}}else delete this.token,delete this.tokenParsed,delete this.subject,delete this.realmAccess,delete this.resourceAccess,this.authenticated=!1}#A(){if(void 0!==this.authServerUrl)return`${d(this.authServerUrl)}/realms/${encodeURIComponent(this.realm)}`}#p(e){return t=>{this.enableLogging&&e.call(console,t)}}}(R),B=null,U=null,H={status:"idle",error:null},$="pkce-jwks-v7-force-cookie-purge",z="uxfolio-auth-version",W=["keycloak","kc-token","kc-callback","pkce","oauth","oidc","uxfolio-auth"],G=["JSESSIONID","SESSION","XSRF-TOKEN","remember-me"],X=["uxfolio-auth"],V=["code","error","error_description","error_uri","iss","session_state","state"],K=["/admin","/edu","/home","/payment","/projects","/settings","/jobfitchecker","/myreviews"],q="uxfolio_editor_view_mode",Y={google:"Google",facebook:"Facebook"},Q=new Set([401,400]),J=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=I(this,t,[e])).name="BffAuthRequestError",r.status=n,r.data=o,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(t,e),n=t,r&&x(n.prototype,r),o&&x(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(L(Error));function Z(){return Boolean(N.enabled)}function ee(){return Z()}function te(e){return"".concat((N.baseUrl||"").replace(/\/$/,""),"/api/auth").concat(e)}function ne(e){return Y[e]||e}function re(e){return oe.apply(this,arguments)}function oe(){return oe=E(S().m(function e(t){var n,r,o,i=arguments;return S().w(function(e){for(;;)switch(e.n){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.n=1,fetch(te(t),b(b({},n),{},{credentials:"include",headers:b(b({},n.body?{"Content-Type":"application/json"}:{}),n.headers||{})}));case 1:return r=e.v,e.n=2,r.json().catch(function(){return{}});case 2:if(o=e.v,r.ok){e.n=3;break}throw new J(o.error||"Authentication failed",r.status,o);case 3:return e.a(2,o)}},e)})),oe.apply(this,arguments)}function ie(e){var t,n,r=O(e.split("."),2)[1];return r?(t=r.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(t.length+(4-t.length%4)%4,"="),JSON.parse(window.atob(n))):{}}function se(e){F.authenticated=!0,F.token=e.accessToken,F.refreshToken=null,F.idToken=null,F.tokenParsed=ie(e.accessToken),F.refreshTokenParsed=null,F.idTokenParsed=null,H={status:"authenticated",error:null},(0,v.Cl)()}function ae(e){return"localhost"===e||"127.0.0.1"===e||"::1"===e}function le(e){return"uxfol.io"===e||e.endsWith(".uxfol.io")}function ce(){var e=window.location.hostname,t=function(e){try{return new URL(e).hostname}catch(e){return""}}(R.url);return!!t&&(e===t||(!(!ae(e)||ae(t))||!ae(t)&&(le(e)&&le(t))))}function ue(){var e=function(){var e=String((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||""),t=e.includes("#")?e.slice(0,e.indexOf("#")):e,n=t.indexOf("?"),r=n>=0?t.slice(n+1):t.replace(/^[?#]/,"");if(!r)return new Set;try{return new Set(_(new URLSearchParams(r).keys()))}catch(e){return new Set}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");return V.some(function(t){return e.has(t)})}function de(e){e&&Object.keys(e).forEach(function(t){var n=t.toLowerCase();W.some(function(e){return n.includes(e)})&&e.removeItem(t)})}function pe(){de(window.localStorage),de(window.sessionStorage)}function fe(e){var t=e.toLowerCase();return G.some(function(e){return e.toLowerCase()===t})||X.some(function(e){return t.includes(e)})}function he(){if(document.cookie){var e=document.cookie.split(";").map(function(e){return e.split("=")[0].trim()}
2).filter(Boolean).filter(fe),t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname,t=[""];if(!ae(e)&&e.includes(".")){t.push(e,".".concat(e));var n=e.split(".");if(n.length>2){var r=n.slice(-2).join(".");t.push(r,".".concat(r))}}return _(new Set(t))}(),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname,t=["/"],n=e.split("/").filter(Boolean),r="";return n.forEach(function(e){r="".concat(r,"/").concat(e),t.push(r)}),_(new Set(t))}();_(new Set(e)).forEach(function(e){t.forEach(function(t){n.forEach(function(n){return function(e,t,n){var r=["".concat(e,"="),"Max-Age=0","expires=Thu, 01 Jan 1970 00:00:00 GMT","path=".concat(n)];t&&r.push("domain=".concat(t)),"https:"===window.location.protocol&&r.push("Secure"),document.cookie=r.join("; ")}(e,t,n)})})})}}function me(){pe(),he()}function ve(){return H}function ge(){F.authenticated=!1,F.token=null,F.refreshToken=null,F.idToken=null,F.tokenParsed=null,F.refreshTokenParsed=null,F.idTokenParsed=null}function ye(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(z,$)}function be(e){var t,n,r=(t=R.url,null!==(n=null==t?void 0:t.replace(/\/$/,""))&&void 0!==n?n:""),o=new URL("".concat(r,"/realms/").concat(R.realm,"/protocol/openid-connect/logout"),window.location.origin);return o.searchParams.set("client_id",R.clientId),o.searchParams.set("post_logout_redirect_uri",e),F.idToken&&o.searchParams.set("id_token_hint",F.idToken),o.toString()}function we(){return Se.apply(this,arguments)}function Se(){return(Se=E(S().m(function e(){var t,n;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("/api/auth/logout",{method:"POST",credentials:"include",keepalive:!0,cache:"no-store"});case 1:if((t=e.v).ok){e.n=2;break}return console.warn("Legacy auth session cleanup returned an unexpected status",t.status),e.a(2,!1);case 2:return e.a(2,!0);case 3:return e.p=3,n=e.v,console.warn("Legacy auth session cleanup failed",n),e.a(2,!1)}},e,null,[[0,3]])}))).apply(this,arguments)}function ke(){return _e.apply(this,arguments)}function _e(){return(_e=E(S().m(function e(){return S().w(function(e){for(;;)switch(e.p=e.n){case 0:return U||(U=E(S().m(function e(){var t;return S().w(function(e){for(;;)switch(e.n){case 0:if(!Te()){e.n=1;break}return e.a(2,!1);case 1:if((null===(t=window.localStorage)||void 0===t?void 0:t.getItem(z))!==$){e.n=2;break}return e.a(2,!1);case 2:return me(),e.n=3,we();case 3:return ye(),e.a(2,!0)}},e)}))()),e.p=1,e.n=2,U;case 2:return e.a(2,e.v);case 3:return e.p=3,U=null,e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}))).apply(this,arguments)}function Oe(){return Ce.apply(this,arguments)}function Ce(){return(Ce=E(S().m(function e(){return S().w(function(e){for(;;)switch(e.n){case 0:return Me&&(clearTimeout(Me),Me=null),ge(),B=null,me(),e.n=1,we();case 1:ye();case 2:return e.a(2)}},e)}))).apply(this,arguments)}function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.search,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.hash;return ue(e)||ue(t)}function Ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return Te(arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.search,window.location.hash)||Ee(e)||Ie(e)||e.startsWith("/review")}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return K.some(function(t){return e.startsWith(t)})}function xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;try{var t;null===(t=window.sessionStorage)||void 0===t||t.setItem(q,JSON.stringify({pathname:e,expiresAt:Date.now()+18e5}))}catch(e){console.warn("Failed to mark editor view mode session",e)}}function Pe(){try{var e;null===(e=window.sessionStorage)||void 0===e||e.removeItem(q)}catch(e){console.warn("Failed to clear editor view mode session",e)}}function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;try{var t,n=null===(t=window.sessionStorage)||void 0===t?void 0:t.getItem(q);if(!n)return!1;var r,o=JSON.parse(n),i=!o.expiresAt||o.expiresAt<Date.now(),s=o.pathname===e;return!(i||!s)||(null===(r=window.sessionStorage)||void 0===r||r.removeItem(q),!1)}catch(e){var a;return null===(a=window.sessionStorage)||void 0===a||a.removeItem(q),!1}}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href,t=new
2URL(e,window.location.origin);return V.forEach(function(e){return t.searchParams.delete(e)}),ue(t.hash)&&(t.hash=""),t.toString()}function je(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=new URL(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/home",window.location.origin);return Object.entries(e).forEach(function(e){var n=O(e,2),r=n[0],o=n[1];null!=o&&""!==o&&t.searchParams.set(r,o)}),t.toString()}var Me=null,De=null;function Re(){var e;if(Me&&(clearTimeout(Me),Me=null),!Z()&&F.authenticated&&null!==(e=F.tokenParsed)&&void 0!==e&&e.exp){var t=Math.floor(Date.now()/1e3),n=function(e){return Math.max(0,1e3*(e-60))}(F.tokenParsed.exp-t);Me=setTimeout(E(S().m(function e(){var t,n,r,o;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,F.updateToken(-1);case 1:e.v&&(n=F.tokenParsed.exp-Math.floor(Date.now()/1e3),(0,m.L)("token_refresh_success",{userId:null===(t=F.tokenParsed)||void 0===t?void 0:t.sub,expiresIn:n})),Re(),e.n=3;break;case 2:e.p=2,o=e.v,(0,m.L)("token_refresh_failure",{userId:null===(r=F.tokenParsed)||void 0===r?void 0:r.sub,error:o.message||"Unknown error"}),(0,v.B2)({error:"Token refresh failed"});case 3:return e.a(2)}},e,null,[[0,2]])})),n)}}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"check-sso";if(!B){var t=ke(),n={pkceMethod:"S256",checkLoginIframe:!1};e&&(n.onLoad=e),"check-sso"===e&&ce()&&(n.silentCheckSsoRedirectUri="".concat(window.location.origin,"/silent-check-sso.html"),n.silentCheckSsoFallback=!0),"check-sso"===e&&(H={status:"checking",error:null},(0,v.oN)({state:"checking_sso",title:"Checking your session",message:"We are looking for your UXfolio session so you can continue without signing in again.",busy:!0})),B=t.then(function(){return F.init(n)}).then(function(t){var n,r,o;t&&F.token?(pe(),ye(),H={status:"authenticated",error:null},(0,v.Cl)(),(0,m.L)("auth_success",{userId:null===(n=F.tokenParsed)||void 0===n?void 0:n.sub,email:null===(r=F.tokenParsed)||void 0===r?void 0:r.email,expiresIn:null!==(o=F.tokenParsed)&&void 0!==o&&o.exp?F.tokenParsed.exp-Math.floor(Date.now()/1e3):null}),Re()):"check-sso"===e&&(H={status:"no_sso_session",error:null},(0,v.oN)({state:"redirecting_login",title:"Opening secure login",message:"We could not find an active UXfolio session, so we are taking you to sign in.",busy:!0}));return t}).catch(function(e){return(0,m.L)("auth_failure",{error:e.message||"Unknown error",errorType:e.error||"init_error"}),B=null,H={status:"error",error:e},(0,v.oN)({state:"auth_check_failed",title:"We could not check your session",message:"Your work is still safe. You can try again or open the secure login page directly.",primaryLabel:"Try again",primaryAction:"retry",secondaryLabel:"Open login",secondaryAction:"forceLogin",redirectUri:window.location.href}),!1})}return B}function Fe(){return F.authenticated&&F.token?Promise.resolve(!0):Z()?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"check-sso";if(!B){var t=ke(),n=Ee(window.location.pathname)||Te(window.location.search,window.location.hash);"check-sso"===e&&n&&(H={status:"checking",error:null},(0,v.oN)({state:"checking_sso",title:"Checking your session",message:"We are looking for your UXfolio session so you can continue without signing in again.",busy:!0})),B=t.then(function(){return He()}).catch(function(t){return B=null,t instanceof J&&401===t.status?(H={status:"no_sso_session",error:null},"check-sso"===e&&n&&(0,v.oN)({state:"redirecting_login",title:"Opening secure login",message:"We could not find an active UXfolio session, so we are taking you to sign in.",busy:!0}),!1):((0,m.L)("auth_failure",{error:t.message||"Unknown error",errorType:"bff_session_check_error"}),H={status:"error",error:t},n&&(0,v.oN)({state:"auth_check_failed",title:"We could not check your session",message:"Your work is still safe. You can try again or open the secure login page directly.",primaryLabel:"Try again",primaryAction:"retry",secondaryLabel:"Open login",secondaryAction:"forceLogin",redirectUri:window.location.href}),!1)})}return B}("check-sso"):Ne("check-sso").then(function(e){return e&&F.authenticated&&Re(),e})}function Be(){return Ne(null)}function Ue(e){(0,v.oN)({state:"signed_in",title:"Welcome back",message:"We found your UXfolio session and are taking you back to your workspace.",busy:!0}
2),window.location.assign(e)}function He(){return $e.apply(this,arguments)}function $e(){return($e=E(S().m(function e(){var t;return S().w(function(e){for(;;)switch(e.n){case 0:return De||(De=re("/check-sso").finally(function(){De=null})),e.n=1,De;case 1:if((t=e.v).authenticated&&t.accessToken){e.n=2;break}throw new J("No active BFF session",401,t);case 2:return se(t),e.a(2,!0)}},e)}))).apply(this,arguments)}function ze(){return We.apply(this,arguments)}function We(){return(We=E(S().m(function e(){var t,n,r,o,i;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!Z()){e.n=7;break}if(F.authenticated){e.n=1;break}return e.n=1,Fe();case 1:if(F.authenticated){e.n=2;break}return e.a(2,null);case 2:if(n=(null===(t=F.tokenParsed)||void 0===t?void 0:t.exp)||0,r=Math.floor(Date.now()/1e3),!(n-r<=30)){e.n=6;break}return e.p=3,e.n=4,He();case 4:e.n=6;break;case 5:return e.p=5,o=e.v,console.error("BFF session refresh failed",o),e.a(2,null);case 6:case 12:return e.a(2,F.token||null);case 7:if(F.authenticated){e.n=8;break}return e.n=8,Fe();case 8:if(F.authenticated){e.n=9;break}return e.a(2,null);case 9:return e.p=9,e.n=10,F.updateToken(10);case 10:e.n=12;break;case 11:return e.p=11,i=e.v,console.error("Keycloak token refresh failed",i),e.a(2,null)}},e,null,[[9,11],[3,5]])}))).apply(this,arguments)}function Ge(){return Xe.apply(this,arguments)}function Xe(){return Xe=E(S().m(function e(){var t,n,r,o,i,s,a,l,c=arguments;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:window.location.href,n=c.length>1&&void 0!==c[1]?c[1]:{},r=Le(t),!F.authenticated||!F.token){e.n=1;break}return Ue(r),e.a(2);case 1:if(!Z()){e.n=5;break}if(n.skipSessionCheck){e.n=4;break}return e.n=2,Fe();case 2:if(o=e.v,i=ve(),!o||!F.authenticated){e.n=3;break}return Ue(r),e.a(2);case 3:if("error"!==i.status){e.n=4;break}return e.a(2);case 4:return window.location.assign("/login?redirectUri=".concat(encodeURIComponent(r))),e.a(2);case 5:if(n.skipSessionCheck||F.authenticated){e.n=9;break}return e.n=6,Fe();case 6:if(s=e.v,a=ve(),!s||!F.authenticated){e.n=7;break}return Ue(r),e.a(2);case 7:if("error"!==a.status){e.n=8;break}return e.a(2);case 8:e.n=10;break;case 9:if(B){e.n=10;break}return e.n=10,Be();case 10:return e.p=10,(0,v.oN)({state:"redirecting_login",title:"Opening secure login",message:"You are being redirected to UXfolio sign in.",busy:!0}),e.a(2,F.login({redirectUri:r}));case 11:e.p=11,l=e.v,console.error("[Login] Could not redirect to Keycloak",l),(0,v.oN)({state:"login_redirect_failed",title:"We could not open secure login",message:"Something interrupted the redirect. You can try again, or reload the page before signing in.",primaryLabel:"Try again",primaryAction:"forceLogin",secondaryLabel:"Reload page",secondaryAction:"retry",redirectUri:r});case 12:return e.a(2)}},e,null,[[10,11]])})),Xe.apply(this,arguments)}function Ve(){return Ke.apply(this,arguments)}function Ke(){return Ke=E(S().m(function e(){var t,n=arguments;return S().w(function(e){for(;;)switch(e.n){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:window.location.href,!Z()){e.n=1;break}return window.location.assign("/signup?redirectUri=".concat(encodeURIComponent(Le(t)))),e.a(2);case 1:return e.n=2,Be();case 2:return e.a(2,F.register({redirectUri:Le(t)}))}},e)})),Ke.apply(this,arguments)}function qe(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=E(S().m(function e(t){var n;return S().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,re("/login",{method:"POST",body:JSON.stringify(t)});case 1:return se(n=e.v),e.a(2,n)}},e)}))).apply(this,arguments)}function Qe(e){return Je.apply(this,arguments)}function Je(){return(Je=E(S().m(function e(t){var n;return S().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,re("/signup",{method:"POST",body:JSON.stringify(t)});case 1:return se(n=e.v),e.a(2,n)}},e)}))).apply(this,arguments)}function Ze(e){return et.apply(this,arguments)}function et(){return(et=E(S().m(function e(t){var n;return S().w(function(e){for(;;)switch(e.n){case 0:if(Z()){e.n=1;break}
2throw new J("Password reset is only available through UXfolio secure login.",400);case 1:return e.n=2,re("/forgot-password",{method:"POST",body:JSON.stringify({email:t})});case 2:return n=e.v,(0,m.L)("forgot_password_requested",{email:t}),e.a(2,n)}},e)}))).apply(this,arguments)}function tt(e){return nt.apply(this,arguments)}function nt(){return(nt=E(S().m(function e(t){var n;return S().w(function(e){for(;;)switch(e.n){case 0:if(Z()){e.n=1;break}throw new J("Password reset is only available through UXfolio secure login.",400);case 1:return e.n=2,re("/reset-password",{method:"POST",body:JSON.stringify(t)});case 2:return n=e.v,(0,m.L)("password_reset_completed"),e.a(2,n)}},e)}))).apply(this,arguments)}function rt(e){return ot.apply(this,arguments)}function ot(){return ot=E(S().m(function e(t){var n,r,o,i,s,a=arguments;return S().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:window.location.href,r=Le(n),o=ne(t),(0,v.oN)({state:"redirecting_login",title:"Opening secure login",message:"We are opening ".concat(o," through UXfolio secure login."),busy:!0}),(0,m.L)("social_login_start",{provider:t}),e.p=1,!Z()){e.n=4;break}return e.n=2,re("/social/".concat(encodeURIComponent(t),"/start?redirectUri=").concat(encodeURIComponent(r)));case 2:if((i=e.v).redirectUrl){e.n=3;break}throw new J("Secure login did not return a redirect URL",502,i);case 3:return window.location.assign(i.redirectUrl),e.a(2,i);case 4:return e.n=5,Be();case 5:return e.a(2,F.login({redirectUri:r,idpHint:t}));case 6:throw e.p=6,s=e.v,(0,m.L)("social_login_start_failure",{provider:t,error:s.message||"Unknown error"}),(0,v.oN)({state:"login_redirect_failed",title:"We could not open secure login",message:"Something interrupted ".concat(o," sign in. You can try again or use email and password."),primaryLabel:"Try again",primaryAction:"forceLogin",secondaryLabel:"Reload page",secondaryAction:"retry",redirectUri:r}),s;case 7:return e.a(2)}},e,null,[[1,6]])})),ot.apply(this,arguments)}function it(){return Ge(je(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/home",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function st(){return Ve(je(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/home/onboarding",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function at(){return lt.apply(this,arguments)}function lt(){return lt=E(S().m(function e(){var t,n,r,o=arguments;return S().w(function(e){for(;;)switch(e.n){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:window.location.origin,n=Le(t),r=null,(0,v.oN)({state:"logging_out",title:"Signing you out",message:"We are closing your UXfolio session and signing you out from secure login.",busy:!0}),!Z())try{r=be(n)}catch(e){console.error("[Logout] Could not build Keycloak logout URL",e)}if(Me&&(clearTimeout(Me),Me=null),!Z()){e.n=1;break}return e.n=1,re("/logout",{method:"POST"}).catch(function(e){console.warn("BFF auth session cleanup failed",e)});case 1:return e.n=2,we();case 2:if(me(),ge(),ye(),!Z()){e.n=3;break}return window.location.assign(n),e.a(2);case 3:if(!r){e.n=4;break}return window.location.assign(r),e.a(2);case 4:(0,v.oN)({state:"logout_local_only",title:"Signed out on this device",message:"We cleared your local UXfolio session, but could not reach secure login logout automatically.",primaryLabel:"Try secure logout again",primaryAction:"retryLogout",secondaryLabel:"Go to homepage",secondaryAction:"goHome"});case 5:return e.a(2)}},e)})),lt.apply(this,arguments)}function ct(e){if(!e||"string"!=typeof e)return!1;if(/[^a-zA-Z0-9\-._~+/=]/.test(e))return!1;var t=e.split(".");return 3===t.length&&t.every(function(e){return e.length>0})}function ut(e){e.interceptors.request.use(function(){var e=E(S().m(function e(t){var n,r,o;return S().w(function(e){for(;;)switch(e.n){case 0:if(t.url=(0,h.lo)(t.url||""),n=new URL(t.url||"",window.location.origin),r=n.origin===window.location.origin&&n.pathname.startsWith("/api/"),F.authenticated||Ae()||r&&Ee(window.location.pathname)){e.n=1;break}return e.a(2,t);case 1:return e.n=2,ze();case 2:if(!(o=e.v)){e.n=5;break}if(ct(o)){e.n=4;break}return F.authenticated=!1,F.token=null,e.n=3,ze();case 3:if(e.v){e.n=4;break}return e.a(2,t);case 4:t.headers=t.headers||{},t.headers.Authorization="Bearer ".concat(F.token||o);case 5:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}
2()),e.interceptors.response.use(function(e){return e},function(){var e=E(S().m(function e(t){var n,r,o,i,s,a,l,c,u,d,p,f,h,g,y,b,w;return S().w(function(e){for(;;)switch(e.n){case 0:if(i=null==t||null===(n=t.response)||void 0===n?void 0:n.status,s=401===i,a=403===i,l=window.location.pathname.includes("/review"),c=new URL((null===(r=t.config)||void 0===r?void 0:r.url)||"",window.location.origin),u=(null===(o=t.config)||void 0===o?void 0:o.skipAuthStatusHandling)||(0,v.OH)(c.toString()),d=c.origin===window.location.origin&&("/api/users/me"===c.pathname||"/api/users/me/ensure"===c.pathname),p=d&&Q.has(i),!s&&!p||l||u){e.n=2;break}return(0,m.L)("unauthorized_access",{url:null===(f=t.config)||void 0===f?void 0:f.url,method:null===(h=t.config)||void 0===h?void 0:h.method,status:i,userId:null===(g=F.tokenParsed)||void 0===g?void 0:g.sub,reason:p?"Legacy Spring session cleanup triggered":void 0}),e.n=1,Oe();case 1:(0,v.B2)({status:i,url:c.toString()}),e.n=3;break;case 2:a&&!u&&((0,m.L)("unauthorized_access",{url:null===(y=t.config)||void 0===y?void 0:y.url,method:null===(b=t.config)||void 0===b?void 0:b.method,status:i,userId:null===(w=F.tokenParsed)||void 0===w?void 0:w.sub,reason:"Forbidden - insufficient permissions"}),(0,v.yw)({status:i,url:c.toString()}));case 3:return e.a(2,Promise.reject(t))}},e)}));return function(t){return e.apply(this,arguments)}}())}},805(e,t,n){"use strict";n.d(t,{A:()=>r,f:()=>o});const r={getMoment:function(e){var t=Date.parse(new Date)-e;return t<6e4?"just now":t>6e4&&t<36e5?Math.round(t/6e4)+"m ago":t>36e5&&t<864e5?Math.round(t/6e6)+"h ago":t>864e5&&t<1728e5?"1 day ago":function(e){var t=new Date(e),n=new Date,r={month:"long",day:"numeric"};t.getFullYear()!==n.getFullYear()&&(r.year="numeric");return t.toLocaleDateString("en-US",r)}(e)}};function o(e){var t=new Date-new Date(e),n=Math.floor(t/1e3),r=Math.floor(t/6e4),o=Math.floor(t/36e5),i=Math.floor(t/864e5),s=Math.floor(t/6048e5),a=Math.floor(t/2592e6),l=Math.floor(t/31536e6);return n<60?"".concat(n," sec").concat(1!==n?"s":""," ago"):r<60?"".concat(r," min").concat(1!==r?"s":""," ago"):o<24?"".concat(o," hour").concat(1!==o?"s":""," ago"):i<7?"".concat(i," day").concat(1!==i?"s":""," ago"):s<5?"".concat(s," week").concat(1!==s?"s":""," ago"):a<12?"".concat(a," month").concat(1!==a?"s":""," ago"):"".concat(l," year").concat(1!==l?"s":""," ago")}},33501(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(31173);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const u={getApiKey:function(){return"AIzaSyACuy0HND-c__u3dCpcuIWhpnxw0IfOOoo"},downloadFonts:function(e){if(e)if(e.headline!==e.text)for(var t in e)"id"!==t&&this.getFontURL(e[t],[400,700]);else this.getFontURL(e.headline)},downloadSingleFonts:function(e,t){var n=this;e&&e.forEach(function(o,i){o.font&&n.getFontURL(o.font,[400,700,800,900]),t&&i===e.length-1&&setTimeout(function(){(0,r.A)(document.querySelectorAll("textarea")),setTimeout(function(){r.A.update(document.querySelectorAll("textarea"))},10)},300)})},getFontURL:function(e,t){var n="https://fonts.googleapis.com/css2?family=";n+=e.replace(/ /g,"+"),n+=":wght@400;700;800;900&display=swap",this.creatLinkElement(n)},generateCss2FontUrl:function(e){var t="",n="";e.map(function(e){return e.includes("italic")}).length&&(t+="ital,");var r="",o="";return Object.entries({light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",heavy:"900"}
2).forEach(function(n){var i=l(n,2),s=i[0],a=i[1];e.find(function(e){return e.includes(s)})&&(t.includes("ital")?(r+="0,"+a+";",o+="1,"+a+";"):r+=a+";")}),n+=r,n+=o,":".concat(t,"wght@").concat(n.slice(0,n.length-1))},getFontUrlWithParams:function(e,t){var n="https://fonts.googleapis.com/css2?family=".concat(e.replace(/ /g,"+")).concat(this.generateCss2FontUrl(t),"&display=swap");this.creatLinkElement(n)},creatLinkElement:function(e){if(!document.querySelector('link[href="'.concat(e,'"]'))){var t=document.createElement("link");t.rel="preload",t.href=e,t.as="style",t.crossOrigin="anonymous",document.head.appendChild(t);var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.crossOrigin="anonymous",document.head.appendChild(n)}},getFontPickerOptions:function(e){var t={limit:1009,variants:["regular"],sort:"popularity"};return{headings:{activeFont:null,options:s({name:"headings"},t)},paragraphs:{activeFont:null,options:s({name:"paragraphs"},t)},navigationAndButtons:{activeFont:null,options:s({name:"navigationAndButtons"},t)},heroTitle:{activeFont:null,options:s({name:"heroTitle"},t)},heroSubtitle:{activeFont:null,options:s({name:"heroSubtitle"},t)},h1:{activeFont:null,options:s({name:"h1"},t)},h2:{activeFont:null,options:s({name:"h2"},t)},h3:{activeFont:null,options:s({name:"h3"},t)},h4:{activeFont:null,options:s({name:"h4"},t)},heroParagraph:{activeFont:null,options:s({name:"heroParagraph"},t)},p1:{activeFont:null,options:s({name:"p1"},t)},p2:{activeFont:null,options:s({name:"p2"},t)},projectTitle:{activeFont:null,options:s({name:"projectTitle"},t)},projectSubtitle:{activeFont:null,options:s({name:"projectSubtitle"},t)},navigation:{activeFont:null,options:s({name:"navigation"},t)},button:{activeFont:null,options:s({name:"button"},t)},secondaryButton:{activeFont:null,options:s({name:"secondaryButton"},t)},label:{activeFont:null,options:s({name:"label"},t)},pageTitle:{activeFont:null,options:s({name:"pageTitle"},t)}}[e]},getDefaultFonts:function(){for(var e=0;e<this.getFontPairs().length;e+=1)this.downloadFonts(this.getFontPairs()[e])},getFontPairs:function(){return[{id:1,headline:"Poppins",text:"Open Sans"},{id:2,headline:"Montserrat",text:"Montserrat"},{id:3,headline:"Ubuntu",text:"Open Sans"},{id:4,headline:"Fira Sans",text:"Open Sans"},{id:5,headline:"Playfair Display",text:"Fauna One"},{id:6,headline:"Yeseva One",text:"Work Sans"},{id:7,headline:"Arapey",text:"Mulish"},{id:8,headline:"Rozha One",text:"Questrial"},{id:9,headline:"Oswald",text:"Questrial"},{id:10,headline:"Alfa Slab One",text:"Gentium Basic"},{id:11,headline:"Source Sans Pro",text:"PT Serif"},{id:12,headline:"Merriweather",text:"Mulish"},{id:13,headline:"Rubik",text:"Roboto"},{id:14,headline:"Oswald",text:"Old Standard TT"},{id:15,headline:"Playfair Display",text:"Open Sans"},{id:16,headline:"Kreon",text:"Open Sans"},{id:17,headline:"Work Sans",text:"Lora"},{id:18,headline:"Montserrat",text:"Quattrocento"},{id:19,headline:"Spectral",text:"Karla"},{id:20,headline:"Montserrat",text:"Noto Serif"},{id:21,headline:"Raleway",text:"Mulish"},{id:22,headline:"Gothic A1",text:"Gothic A1"},{id:23,headline:"Poppins",text:"IBM Plex Mono"}]}}},19209(e,t,n){"use strict";n.d(t,{A:()=>r});const r={topLogo:function(e){return["theme_seventeen"].includes(e)},showImageDisplayButtons:function(e){return!["theme_three","theme_eight","theme_twelve","theme_six","theme_sixteen"].includes(e)},heroDescriptionLeftAlignment:function(e){return["theme_thirteen","theme_fifteen"].includes(e)},logoIsSupportedInTemplate:function(e){return!(["theme_one","theme_two","theme_three","theme_six","theme_seven","theme_eleven"].includes(e)||e.includes("profile_")&&"profile_theme_eight"!==e)},roundImageIsAvalible:function(e){return["theme_default","theme_three","theme_eight","theme_nine","theme_ten","theme_elven","theme_twelve"].includes(e)},footerAllowedInTheme:function(e){return!["theme_four","profile_theme_four","theme_nine","profile_theme_nine","theme_default","profile_theme_default"].includes(e)},heroDescriptionUpDownButtonAllowedInTheme:function(e){return!["theme_twelve","theme_six","theme_fourteen","theme_fifteen","theme_seventeen","theme_eighteen"].includes(e)},foregroundImageAvalible:function(e){return!["theme_three","theme_five","theme_thirteen","theme_fourteen","theme_fifteen","theme_seventeen","theme_eighteen"].includes(e)},avalibleHeroTextAlignments:function(e){return"theme_seventeen"===e?[]:["left","center","right"]}}},65570(e,t,n){"use strict";n.d(t,{_B:()=>C,_m:()=>_,aQ:()=>T,hq:()=>O,wt:()=>A,zu:()=>k});var r=n(91915),o=n(23492),i=n(21781),s=n(74256),a=n(76107);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=[{key:"heroTitle",varName:"--portfolio-hero-h1"},{key:"heroSubtitle",varName:"--portfolio-hero-h2"},{key:"navigation",varName:"--portfolio-hero-nav-button"},{key:"heroParagraph",varName:"--portfolio-hero-p1"}],f=[{key:"heroTitle",varName:"--hero-h1"},{key:"heroSubtitle",varName:"--hero-h2"},{key:"navigation",varName:"--hero-nav-button"},{key:"heroParagraph",varName:"--hero-p1"},{key:"h1",varName:"--section-h1"},{key:"h2",varName:"--section-h2"},{key:"h3",varName:"--section-h3"},{key:"h4",varName:"--section-h4"},{key:"p1",varName:"--section-p1"},{key:"p2",varName:"--section-p2"},{key:"projectTitle",varName:"--thumbnail-title"},{key:"projectSubtitle",varName:"--thumbnail-subtitle"},{key:"button",varName:"--cta-button"},{key:"secondaryButton",varName:"--cta-secondary-button"},{key:"label",varName:"--label"},{key:"pageTitle",varName:"--page-title"}],h=[{key:"heroTitle",varName:"--hero-h1"},{key:"heroSubtitle",varName:"--hero-h2"},{key:"heroParagraph",varName:"--hero-p1"},{key:"h1",varName:"--section-h1"},{key:"h2",varName:"--section-h2"},{key:"h3",varName:"--section-h3"},{key:"h4",varName:"--section-h4"},{key:"p1",varName:"--section-p1"},{key:"p2",varName:"--section-p2"},{key:"projectTitle",varName:"--thumbnail-title"},{key:"projectSubtitle",varName:"--thumbnail-subtitle"},{key:"background",varName:"--background"},{key:"navigation",varName:"--hero-nav-button"},{key:"hyperLink",varName:"--link"},{key:"dividerLine",varName:"--divider-line"},{key:"button",varName:"--cta-button"},{key:"secondaryButton",varName:"--cta-secondary-button"},{key:"label",varName:"--label"},{key:"sidebarBackground",varName:"--sidebar-background"},{key:"card",varName:"--card"},{key:"contactForm",varName:"--contact-form"},{key:"processStep",varName:"--process-step"},{key:"socialIcon",varName:"--social-icon"},{key:"h1",varName:"--page-title"}],m=[{key:"heroTitle",varName:"--hero-h1-text-color"},{key:"heroSubtitle",varName:"--hero-h2-text-color"},{key:"heroParagraph",varName:"--hero-p1-text-color"},{key:"h1",varName:"--section-h1-text-color"},{key:"h2",varName:"--section-h2-text-color"},{key:"h3",varName:"--section-h3-text-color"},{key:"h4",varName:"--section-h4-text-color"},{key:"p1",varName:"--section-p1-text-color"},{key:"p2",varName:"--section-p2-text-color"},{key:"projectTitle",varName:"--thumbnail-title-text-color"},{key:"projectSubtitle",varName:"--thumbnail-subtitle-text-color"},{key:"background",varName:"--background-fill-color"},{key:"navigation",varName:"--hero-nav-button-text-color"},{key:"navigationHover",varName:"--hero-nav-button-text-color-hover"},{key:"navigationFill",varName:"--hero-nav-button-fill-color"},{key:"navigationOutline",varName:"--hero-nav-button-outline-color"},{key:"navigationFillHover",varName:"--hero-nav-button-fill-color-hover"},{key:"navigationOutlineHover",varName:"--hero-nav-button-outline-color-hover"},{key:"hyperLink",varName:"--link-color"},{key:"dividerLine",varName:"--divider-line-fill-color"},{key:"buttonFill",varName:"--cta-button-fill-color"},{key:"buttonFillHover",varName:"--cta-button-fill-color-hover"},{key:"buttonOutline",varName:"--cta-button-outline-color"},{key:"buttonOutlineHover",varName:"--cta-button-outline-color-hover"},{key:"buttonText",varName:"--cta-button-text-color"},{key:"buttonTextHover",varName:"--cta-button-text-color-hover"},{key:"secondaryButtonFill",varName:"--cta-secondary-button-fill-color"},{key:"secondaryButtonFillHover",varName:"--cta-secondary-button-fill-color-hover"},{key:"secondaryButtonOutline",varName:"--cta-secondary-button-outline-color"},{key:"secondaryButtonOutlineHover",varName:"--cta-secondary-button-outline-color-hover"},{key:"secondaryButtonText",varName:"--cta-secondary-button-text-color"},{key:"secondaryButtonTextHover",varName:"--cta-secondary-button-text-color-hover"},{key:"labelFill",varName:"--label-fill-color"},{key:"labelOutline",varName:"--label-outline-color"},{key:"labelText",varName:"--label-text-color"}
2,{key:"sidebarBackground",varName:"--sidebar-background-fill-color"},{key:"cardFill",varName:"--card-fill-color"},{key:"cardOutline",varName:"--card-outline-color"},{key:"contactFormOutline",varName:"--contact-form-outline-color"},{key:"contactFormText",varName:"--contact-form-text-color"},{key:"processOutline",varName:"--process-step-outline-color"},{key:"processText",varName:"--process-step-text-color"},{key:"processFillActive",varName:"--process-step-fill-color-active"},{key:"processTextActive",varName:"--process-step-text-color-active"},{key:"socialIconText",varName:"--social-icon-text-color"},{key:"socialIconFill",varName:"--social-icon-fill-color"},{key:"socialIconOutline",varName:"--social-icon-outline-color"},{key:"socialIconTextHover",varName:"--social-icon-text-color-hover"},{key:"socialIconFillHover",varName:"--social-icon-fill-color-hover"},{key:"socialIconOutlineHover",varName:"--social-icon-outline-color-hover"},{key:"h1",varName:"--page-title-text-color"}],v=[{key:"heroTitle",varName:"--portfolio-hero-h1"},{key:"heroSubtitle",varName:"--portfolio-hero-h2"},{key:"heroParagraph",varName:"--portfolio-hero-p1"},{key:"navigation",varName:"--portfolio-hero-nav-button"},{key:"hyperLink",varName:"--link"},{key:"socialIcon",varName:"--portfolio-social-icon"},{key:"background",varName:"--portfolio-background"}],g=[{key:"heroTitle",varName:"--portfolio-hero-h1-text-color"},{key:"heroSubtitle",varName:"--portfolio-hero-h2-text-color"},{key:"heroParagraph",varName:"--portfolio-hero-p1-text-color"},{key:"background",varName:"--portfolio-background-fill-color"},{key:"navigation",varName:"--portfolio-hero-nav-button-text-color"},{key:"navigationHover",varName:"--portfolio-hero-nav-button-text-color-hover"},{key:"navigationFill",varName:"--portfolio-hero-nav-button-fill-color"},{key:"navigationOutline",varName:"--portfolio-hero-nav-button-outline-color"},{key:"navigationFillHover",varName:"--portfolio-hero-nav-button-fill-color-hover"},{key:"navigationOutlineHover",varName:"--portfolio-hero-nav-button-outline-color-hover"},{key:"hyperLink",varName:"--portfolio-hero-link-text-color"},{key:"socialIconText",varName:"--portfolio-social-icon-text-color"},{key:"socialIconFill",varName:"--portfolio-social-icon-fill-color"},{key:"socialIconOutline",varName:"--portfolio-social-icon-outline-color"},{key:"socialIconTextHover",varName:"--portfolio-social-icon-text-color-hover"},{key:"socialIconFillHover",varName:"--portfolio-social-icon-fill-color-hover"},{key:"socialIconOutlineHover",varName:"--portfolio-social-icon-outline-color-hover"}];function y(e,t,n,r,o){var i={},s=n[t];if("--cta-button"===e){var a=null==r?void 0:r.primary;i["--cta-stroke-strength"]=a&&a.stroke&&a.stroke.strength?"".concat(a.stroke.strength,"px"):null}if("--cta-secondary-button"===e){var l=null==r?void 0:r.secondary;i["--cta-secondary-stroke-strength"]=l&&l.stroke&&l.stroke.strength?"".concat(l.stroke.strength,"px"):null}if("--label"===e){var c=o&&o.stroke&&o.stroke.strength?"".concat(o.stroke.strength,"px"):null;i["--label-stroke-strength"]=c}return i["".concat(e,"-font")]="'".concat(s.font,"'"),i["".concat(e,"-height")]=b(s),i["".concat(e,"-height-mobile")]=b(s,!0),i["".concat(e,"-height-tablet")]=b(s,!1,!0),i["".concat(e,"-size")]="".concat(s.size,"px"),i["".concat(e,"-size-mobile")]="".concat(w(s.size),"px"),i["".concat(e,"-size-tablet")]="".concat(S(s.size),"px"),i["".concat(e,"-style")]=s.fontStyle?"".concat(s.fontStyle):null,i["".concat(e,"-weight")]="".concat(s.fontWeight),i}function b(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=n?w(e.size):r?S(e.size):e.size,i=e.lineHeight,s=e.relativeLineHeight;if(!s&&!i||i&&"auto"===i.toLowerCase||r||n){if(o>72)return 1.05;t=Math.round(.015*Math.pow(o,2)-2.067*o+175.991)/100}else t=s||Math.round(i/o*100)/100;return i&&"auto"===i.toLowerCase?t<1.05?1.05:t>1.5?1.5:t:t}function w(e){if(e<15)return e;var t=.4*e+9.6;return t<12?12:Math.round(100*t)/100}function S(e){if(e<15)return e;var t=.6*e+6.4;return t<12?12:Math.round(100*t)/100}
2function k(e,t,n){var r={};return f.forEach(function(o){var i=o.varName,s=o.key;r=u(u({},r),y(i,s,e,t,n))}),r}function _(e){var t={};return p.forEach(function(n){var r=n.varName,o=n.key;t=u(u({},t),y(r,o,e,null))}),t}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i={},s="useNew"===new URLSearchParams(location.search).get("colors"),a=function(e){return null!==e.paletteColorIndex&&e.paletteColorIndex>=0?n.colors[e.paletteColorIndex]:e.color},l=function(e){return null!==e.paletteColorIndex&&e.paletteColorIndex>=0?n.colors[e.paletteColorIndex]:e.color},c=s||!e,u=null!=o?o:r?c?v:g:c?h:m;return c?function(e){var n=["text","fill","outline"],r=["idle","hover","active"];e.forEach(function(e){var o=e.key,s=e.varName,a=t[o];if(!a)return console.warn("new color resolver:"),void console.warn('Style key "'.concat(o,'" not found in color styles. Skipping color variable "').concat(s,'".'));n.forEach(function(e){var t=a[e];r.forEach(function(n){var r=null==t?void 0:t[n];if(r){var o=l(r);if(o){var a="idle"!==n?"-".concat(n):"";i["".concat(s,"-").concat(e,"-color").concat(a)]=o}}})})})}(u):function(t){t.forEach(function(t){var n=t.key,r=t.varName,o=e[n];if(!o)return console.warn("legacy color resolver:"),void console.warn('Style key "'.concat(n,'" not found in color styles. Skipping color variable "').concat(r,'".'));i[r]=a(o)})}(u),i}function C(e){var t={};return e.colors&&e.colors.forEach(function(e,n){t["--paletteColor".concat(n+1)]=e}),t}function T(e){var t,n,a,l,c,d,p,f,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.M.getters["design/colorPalette"];if(e&&null!==(t=e.designSettings)&&void 0!==t&&t.colors){var m={},v=e.type===s.iK.NAVIGATION,g=e.type===s.iK.CARDS,y=g&&"SOLID"===(null===(n=e.moduleBackgroun
2dSettings)||void 0===n?void 0:n.moduleBackgroundType)&&!(null===(a=e.moduleBackgroundSettings)||void 0===a||!a.color),b=v?!(null===(l=e.moduleBackgroundSettings)||void 0===l||!l.color):null!==(null===(c=e.backgroundSettings)||void 0===c?void 0:c.selectedBackgroundStyleId)&&"0"!==(null===(d=e.backgroundSettings)||void 0===d?void 0:d.selectedBackgroundStyleId)||(null===(p=e.image)||void 0===p?void 0:p.url)||y;if(null!==(f=e.designSettings)&&void 0!==f&&f.colors&&e.type!==s.iK.LOGO_WALL&&b&&(m=u({},O(null,e.designSettings.colors,h))),v){var w,S,k=null===(w=e.moduleBackgroundSettings)||void 0===w?void 0:w.color;m["--background-fill-color"]=Number.isFinite(null==k?void 0:k.paletteColorIndex)?null==h||null===(S=h.colors)||void 0===S?void 0:S[k.paletteColorIndex]:(0,i.WT)(null==k?void 0:k.color,h)}else if(g&&y){var _,C,T=null===(_=e.moduleBackgroundSettings)||void 0===_?void 0:_.color;m["--background-fill-color"]=Number.isFinite(null==T?void 0:T.paletteColorIndex)?null==h||null===(C=h.colors)||void 0===C?void 0:C[T.paletteColorIndex]:(0,i.WT)(null==T?void 0:T.color,h)}else{var A;m["--background-fill-color"]=(0,i.WT)(null===(A=e.backgroundSettings)||void 0===A?void 0:A.backgroundColor,h)}var E=e.type===s.iK.RELATED_CASE_STUDIES_FOOTER,x=e.type===s.iK.FOOTER,P=E?"related-case-studies-footer":x?"portfolio-footer":e._id?"section-".concat(e._id):"portfolio-hero",I=E?".related-case-studies":x?".portfolio-footer":e._id?"#section-".concat(e._id):".ufo--page-hero.home";if((0,o.f)(m,"dynamic-css-vars-for-".concat(P),I),!e._id||e.type===s.iK.MAIN_HEADER){(0,o.f)(O(null,r.M.getters["design/colors"],r.M.getters["design/colorPalette"],!1,[{key:"background",varName:"--background"},{key:"navigation",varName:"--hero-nav-button"}]),"dynamic-css-vars-for-portfolio-hero-mobile",".ufo--page-hero.home .navbar-container, .navbar-id.nav-open, .ufo--site-nav .navbar-container, .navbar-toggle .hamburger.close.nav-open",!0)}}}function A(e){var t,n,o,s,l,c,d,p,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.M.getters["design/colorPalette"];if(e&&null!==(t=e.designSettings)&&void 0!==t&&t.colors&&"custom"!==(null===(n=e.foregroundColorSettings)||void 0===n?void 0:n.option)){var h={background:(0,i.WT)(null===(o=e.backgroundSettings)||void 0===o?void 0:o.backgroundColor,f)||(0,a.iL)(null===(s=e.moduleBackgroun
2dSettings)||void 0===s?void 0:s.color,f),gradient1:(0,i.WT)(null===(l=e.backgroundSettings)||void 0===l?void 0:l.gradientColor1,f),gradient2:(0,i.WT)(null===(c=e.backgroundSettings)||void 0===c?void 0:c.gradientColor2,f)};null!==(null===(d=e.backgroundSettings)||void 0===d?void 0:d.selectedBackgroundStyleId)&&(null===(p=e.backgroundSettings)||void 0===p?void 0:p.selectedBackgroundStyleId)>1&&(h.background=(0,i.Lh)(h.background,h.gradient1));var m=JSON.parse(JSON.stringify(e.designSettings.colors)),v=(0,i.ik)(h.background,f.colors),g=JSON.parse(JSON.stringify(e));g.foregroundColorSettings=u(u({},g.foregroundColorSettings),{},{color:v.color,paletteColorIndex:v.index,option:v.type}),g.designSettings.colors=u({},(0,i.QR)(m,h.background,f,r.M.getters["design/colorGroupsWithDifferentRulesInSection"]())),e._id?r.M.commit("updateSection",g):r.M.commit("updatePortfolioHero",g),T(g)}}},68438(e,t,n){"use strict";n.d(t,{CE:()=>h,FN:()=>v,Zr:()=>y,sZ:()=>m});var r=n(52781),o=n(515),i=n(81036),s=n(24260),a=n(53953);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",p:"paragraph"},f=s.A.extend({addAttributes:function(){return{class:{default:null}}}});function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=p[t.toLowerCase()]||"paragraph";var l,c,d=(l=e,c=document.createElement("textarea"),c.innerHTML=l,c.value).replace(/\u00A0/g," ").replace(/\u200B/g,"").replace(/\u200C/g,"").replace(/\u200D/g,"").replace(/\u2028|\u2029/g,"").replace(/\uFEFF/g,""),h={type:"doc",content:[u(u(u({type:s},"heading"===s&&{attrs:{level:parseInt(t[1])}}),"paragraph"===s&&n&&{attrs:{class:n}}),{},{content:[{type:"text",text:d}]})]};return(0,r.Zx)(h,[o.A,i.A,f,a.A])}function m(e){var t=(0,r.yQ)(e,[o.A,i.A,f,a.A]),n=function(e){return"text"===e.type?e.text||"":e.content?e.content.map(n).join("\n"):""};return n(t).trim()}function v(e){var t=(0,r.yQ)(e,[o.A,i.A,f,a.A]);if(t.content&&t.content.length>0){var n,s=t.content[0];if("heading"===s.type&&s.attrs&&s.attrs.level)return{nodeType:"h".concat(s.attrs.level),class:null};if("paragraph"===s.type)return{nodeType:"p",class:(null===(n=s.attrs)||void 0===n?void 0:n.class)||""}}return null}function g(e){return e&&"string"==typeof e?e.replace(/(<[^>]+) style="[^"]*color:[^";]+;?([^"]*)"/gi,function(e,t,n){var r=n.trim();return r?"".concat(t,' style="').concat(r,'"'):t.trim()}).replace(/<span>(.*?)<\/span>/gi,"$1"):e}function y(e){if(Array.isArray(e)){var t=e.map(function(e){return y(e)||null});return t.some(Boolean)?t:null}if(e&&"object"===l(e)){var n=!1,r={};for(var o in e)if(["text","description"].includes(o)&&"string"==typeof e[o]){var i=g(e[o]);i!==e[o]&&(r[o]=i,n=!0)}else{var s=y(e[o]);s&&(r[o]=s,n=!0)}return n?r:null}return null}},74256(e,t,n){"use strict";n.d(t,{$E:()=>G,$X:()=>u,$m:()=>fe,B0:()=>D,BO:()=>L,Bx:()=>xe,C1:()=>Y,CG:()=>B,Cb:()=>o,Eb:()=>a,GJ:()=>v,H1:()=>ee,IB:()=>Pe,MX:()=>H,Ms:()=>ye,N6:()=>y,NW:()=>ve,O5:()=>de,O_:()=>w,Q8:()=>O,QT:()=>se,Sb:()=>Q,Tp:()=>ke,U$:()=>X,U2:()=>l,UE:()=>J,UT:()=>oe,Vc:()=>F,X3:()=>A,X8:()=>r,YL:()=>Oe,Z7:()=>f,ZM:()=>R,_W:()=>I,_s:()=>me,aC:()=>ne,bH:()=>ie,cj:()=>ce,dh:()=>ue,eY:()=>c,ee:()=>b,f3:()=>M,fb:()=>k,gZ:()=>Z,i4:()=>p,iI:()=>Ae,iK:()=>i,jB:()=>s,jF:()=>h,jS:()=>Ee,jg:()=>N,ji:()=>V,jt:()=>U,jw:()=>d,lw:()=>Se,m3:()=>E,m5:()=>te,mi:()=>$,mq:()=>m,nJ:()=>T,np:()=>ge,o0:()=>be,oN:()=>he,oY:()=>W,oj:()=>Ce,p0:()=>re,pg:()=>z,qX:()=>S,rD:()=>le,tD:()=>K,tZ:()=>C,tn:()=>_,v1:()=>j,v8:()=>we,vs:()=>g,w5:()=>q,w9:()=>_e,wb:()=>P,xL:()=>pe,xV:()=>Te,z4:()=>ae,ze:()=>x});var r=Object.freeze({ACTIVE:"active",CONNECTING:"connecting",WAITING:"waiting",NOT_CONNECTED:"not_connected",INACTIVE:"inactive",OLD_SERVER:"old_server"}),o=Object.freeze({CONNECTED:"connected",CONNECTING:"connecting",NOT_CONNECTED:"not_connected",INACTIVE:"inactive",OLD_SERVER:"old_server",TESTING:"testing"}),i=Object.freeze({HERO:"Hero",NAVIGATION:"Navigation",MAIN_HEADER:"MainHeader",HEADER:"Header",TEXT:"Text",ACCORDION:"Accordion",ANIMATED_TEXT:"AnimatedText",MEDIA:"Media",TEXT_AND_MEDIA:"TextAndMedia",PROCESS:"Process",STAT:"Stat",GALLERY:"Gallery",TABS:"Tabs",COLUMNS:"Columns",CARDS:"Cards",CONTACT_FORM:"ContactForm",CASE_STUDY_GRID:"ProjectGrid",CTA:"Cta",TESTIMONIAL:"Testimonial",LOGO_WALL:"LogoWall",DIVIDER_LINE:"DividerLine",ADPLIST_PROFILE:"ADPList",FOOTER:"PortfolioFooter",RELATED_CASE_STUDIES_FOOTER:"RelatedCaseStudyFooter"}),s=Object.freeze({TITLE:"TITLE",TEXT:"TEXT",ACCORDION:"ACCORDION",MEDIA:"MEDIA",CTA:"CTA",COLUMN:"COLUMN",CONTACT_FORM:"CONTACT_FORM",SPACER:"SPACER",PROJECT_GRID:"PROJECT_GRID",TESTIMONIAL:"TESTIMONIAL",STAT_ITEM:"STAT_ITEM",PROCESS_ITEM:"PROCESS_ITEM",MOCKUP_LAYOUT:"MOCKUP_LAYOUT"}),a=Object.freeze({IMAGE:"Image",VIDEO:"Video",PROTOTYPE:"Prototype",MEDIA:"Media",ADPLIST:"ADPList",MOCKUP:"Mockup"}),l=Object.freeze({DEVICE:"DEVICE",LAYOUT:"LAYOUT"}),c=(Object.freeze({BOLD_STATEMENT:"BoldStatement"}),Object.freeze({ROW_2:"row-2",ROW_3:"row-3",GRID_2X2:"grid-2x2",GRID_3X2:"grid-3x2"}
2)),u=Object.freeze({PORTFOLIO:"PORTFOLIO",CASE_STUDY:"CASE_STUDY"}),d=Object.freeze({HEADER:i.HEADER,TEXT:i.TEXT,ACCORDION:i.ACCORDION,MEDIA:i.MEDIA,TEXT_AND_MEDIA:i.TEXT_AND_MEDIA,CONTACT_FORM:i.CONTACT_FORM,CTA:i.CTA}),p=Object.freeze({IMAGE:"image",MEDIA:"media",GALLERY_ITEMS:"galleryItems",LOGOS:"logos",PORTFOLIO_HERO_IMAGE:"portfolioHeroImage",PORTFOLIO_HERO_MEDIA:"portfolioHeroMedia",PORTFOLIO_LOGO:"portfolioLogo",THUMBNAIL:"thumbnail",THUMBNAIL_DESIGNER:"thumbnail_designer"}),f=Object.freeze({IMAGE:"image",IMAGES:"images",LOGO:"logo",RESUME:"resume",FAVICON:"favicon",THUMBNAIL:"thumbnail",THUMBNAIL_IMAGE:"thumbnailImage"}),h=Object.freeze({MAIN_PANEL:"main-panel",TEMPLATES:"templates",COLORS:"colors",COLOR_PALETTES:"color-palettes",FONTS:"fonts",ADVANCED_HEADING_STYLE_SETTINGS:"headings",ADVANCED_PARAGRAPH_STYLE_SETTINGS:"paragraphs",ADVANCED_NAVIGATION_STYLE_SETTINGS:"navigation-buttons",ADVANCED_BUTTON_STYLE_SETTINGS:"buttons",ADVANCED_HEADING_COLOR_SETTINGS:"heading-colors",ADVANCED_PARAGRAPH_COLOR_SETTINGS:"paragraph-colors",ADVANCED_NAVIGATION_COLOR_SETTINGS:"navigation-colors",ADVANCED_BUTTON_COLOR_SETTINGS:"button-colors",ADVANCED_LABEL_COLOR_SETTINGS:"label-colors",ADVANCED_SOCIAL_ICON_COLOR_SETTINGS:"social-icon-colors",ADVANCED_CONTACT_FORM_COLOR_SETTINGS:"contact-form-colors",ADVANCED_PROCESS_STEP_COLOR_SETTINGS:"process-step-colors",ADVANCED_BACKGROUND_COLOR_SETTINGS:"backgrounds",EDIT_COLOR_PALETTE:"edit-color-palette",PALETTE_DESIGNER:"palette-designer",BUTTONS:"buttons",CURSORS:"cursors",LABELS:"labels",SOCIAL_ICON_SETTINGS:"social-icon-settings",ADVANCED_BUTTON_SETTINGS:"advanced-button-settings",SPACING:"spacing",DISPLAY_OPTIONS:"display-options",ANIMATION_SETTINGS:"animation-settings",RESET:"reset"}),m=Object.freeze({ROOT:"style",CHANGE_TEMPLATE:"change-template",COLORS:"colors",COLOR_PALETTES:"color-palettes",FONTS:"fonts",ADVANCED_HEADING_STYLE_SETTINGS:"headings",ADVANCED_PARAGRAPH_STYLE_SETTINGS:"paragraphs",ADVANCED_NAVIGATION_STYLE_SETTINGS:"navigation-buttons",ADVANCED_BUTTON_FONT_SETTINGS:"buttons",ADVANCED_HEADING_COLOR_SETTINGS:"heading-colors",ADVANCED_PARAGRAPH_COLOR_SETTINGS:"paragraph-colors",ADVANCED_NAVIGATION_COLOR_SETTINGS:"navigation-colors",ADVANCED_BUTTON_COLOR_SETTINGS:"button-colors",ADVANCED_LABEL_COLOR_SETTINGS:"label-colors",ADVANCED_SOCIAL_ICON_COLOR_SETTINGS:"social-icon-colors",ADVANCED_CONTACT_FORM_COLOR_SETTINGS:"contact-form-colors",ADVANCED_PROCESS_STEP_COLOR_SETTINGS:"process-step-colors",ADVANCED_BACKGROUND_COLOR_SETTINGS:"backgrounds",EDIT_COLOR_PALETTE:"edit-color-palette",PALETTE_DESIGNER:"palette-designer",BUTTON_SETTINGS:"button-settings",CURSOR_SETTINGS:"cursor-settings",LABEL_SETTINGS:"label-settings",SOCIAL_ICON_SETTINGS:"social-icon-settings",ADVANCED_BUTTON_SETTINGS:"advanced-button-settings",SPACING:"spacing"}),v=Object.freeze({MAIN_PANEL:"main-panel",SHARE:"share",DOMAIN:"own-domain",DOMAIN_AND_URL:"domain-and-url",SOCIAL_MEDIA_LINKS:"social-media-links",ADD_SOCIAL_LINKS:"add-social-links",EDIT_SOCIAL_LINKS:"edit-social-links",PORTFOLIO_LOGO:"portfolio-logo",FAVICON:"favicon",PASSWORD:"password",ARCHIVE:"archive",FOOTER:"portfolio-footer",URL:"url-slug",HIDE_FROM_SEARCH:"hide-from-search-engines",THUMBNAIL_SETTINGS:"thumbnail-settings",NAVIGATION:"navigation",BANNER:"banner"}),g=Object.freeze({ROOT:"settings",SHARE:"share",DOMAIN_AND_URL:"domain-and-url",SOCIAL_MEDIA_LINKS:"social-media-links",ADD_SOCIAL_LINK:"add-social-link",EDIT_SOCIAL_LINK:"edit-social-link",PORTFOLIO_LOGO:"portfolio-logo",FAVICON:"favicon",PASSWORD:"password",ARCHIVE:"archive",THUMBNAIL_SETTINGS:"basic-details",NAVIGATION:"display-options",URL:"url-slug"}),y=Object.freeze({MAIN_PANEL:"main-panel",ADD_NEW_PAGE:"add-new-page",NAVIGATION_EXTERNAL_LINK:"external-link",NAVIGATION_MAILTO_LINK:"mailto-link",RESUME:"resume"}),b=Object.freeze({ROOT:"pages",ADD_NEW_PAGE:"add-new-page",NAVIGATION_EXTERNAL_LINK:"external-link",NAVIGATION_MAILTO_LINK:"mailto-link",RESUME:"resume"}),w=Object.freeze({BACKGROUND:"background",ADD_MEDIA:"add-media",ACCORDION:"accordion",ANIMATED_TEXT:"animated-text",CASE_STUDY_GRID:"case-study-grid",DIVIDER_LINES:"divider-lines",LOGO_WALL:"logo-wall",GENERAL:"general",COLUMNS:"columns",HEADER:"header",CTA:"cta",GALLERY:"gallery",TABS:"tabs",LEGACY_HERO:"hero",HERO:"portfolio-hero",FOOTER:"footer",RELATED_CASE_STUDIES_FOOTER:"related-case-studies-footer",CARDS:"cards",NAVIGATION:"navigation",PORTFOLIO_LOGO:"portfolio-logo"}),S=Object.freeze({MODULAR:"Modular",OVERLAY:"Overlay",SIDEBAR:"Sidebar"}),k=Object.freeze({FILLED:"Filled",OUTLINED:"Outlined"}),_=Object.freeze({HORIZONTAL:"Horizontal",VERTICAL:"Vertical"}),O=Object.freeze({HOME:"home",ABOUT:"about",CONTACT:"contact",BLANK:"blank",LINK:"link",MAILTO:"mailto",FILE:"file",CASE_STUDY:"caseStudy"}),C=Object.freeze({PRIMARY:"primary",SECONDARY:"secondary"}),T=Object.freeze({BELOW:"below",ABOVE:"above",IN_LINE:"in_line",NO_TEXT:"no_text"}),A=Object.freeze({LIGHT:"weight-light",MEDIUM:"weight-medium",BOLD:"weight-bold"}),E=Object.freeze({ABOVE:"above",BELOW:"below",INLINE_BELOW_TEXT:"inline-below-text"}),x=Object.freeze({TOP:"Top",BOTTOM:"Bottom",UNDER_TEXT:"UnderText"}),P=Object.freeze({SIDES:"sides",MIDDLE:"middle",SIMPLE_LEFT:"simple-left",SIMPLE_MIDDLE:"simple-middle",SIMPLE_RIGHT:"simple-right",LINE_MIDDLE:"line-middle"}),I=Object.freeze({SIMPLE:"Simple",SIMPLE_WITH_LOGO:"SimpleWithLogo",SIDES:"Sides",SIDES_WITH_CTA:"SidesWithCta",CENTERED:"Centered",SPLIT_NAVIGATION:"SplitNavigation",SPLIT_LOGO:"SplitLogo",SIDEBAR:"Sidebar"}),L=Object.freeze({LEFT:"Left",CENTER:"Center",RIGHT:"Right"}),j=Object.freeze({VERTICAL:"Vertical",HORIZONTAL:"Horizontal"}),M=Object.freeze({TOP:"Top",BOTTOM:"Bottom",OUTSIDE:"Outside"}),D=Object.freeze({SIMPLE:"simple",FORWARD_SLASH:"forward_slash"}),R=Object.freeze({SIMPLE:"Simple",FRAMED:"Framed",FORWARD_SLASH:"ForwardSlash",LINE_BOTH_SIDES:"LineBothSides"}),N=Object.freeze({FULL_WIDTH:"FullWidth",CENTERED:"Centered"}),F=Object.freeze({REGULAR:"regular",BOLD:"bold",UNDERLINE_REGULAR:"underline-regular",UNDERLINE_SMALL:"underline-small",UNDERLINE_LARGE:"underline-large",BOX_SHARP:"box-sharp",BOX_ROUNDED:"box-rounded",BOX_PILL:"box-pill",BOX_PILL_FILL:"box-pill-fill"}),B=Object.freeze({SIMPLE:"Simple",UNDERLINED:"Underlined",FRAMED:"Framed"}),U=Object.freeze({SHORT:"Short",FULL_WIDTH:"FullWidth"}),H=Object.freeze({LIGHT:"Light",MEDIUM:"Medium",BOLD:"Bold"}),$=Object.freeze({SHARP:"Sharp",ROUNDED:"Rounded",PILLED:"Pilled"}),z=Object.freeze({FILLED:"Filled",OUTLINED:"Outlined"}),W=Object.freeze({SCROLL_WITH_PAGE:"ScrollWithPage",STAY_ON_TOP:"StayOnTop",ANIMATE_OUT_AND_BACK:"AnimateOutAndBack"}),G=Object.freeze({COLOR:"Color",UNDERLINE:"Underline",FLIP_TEXT:"FlipText"}),X=Object.freeze({NAVBAR:"in-navbar",INLINE_ABOVE_TEXT:"inline-above-text",INLINE_BELOW_TEXT:"inline-below-text",INLINE_STICK_TO_BOTTOM:"inline-stick-to-bottom",OFF_GRID:"off-grid"}),V=Object.freeze({NAVBAR:"Navbar",INLINE_ABOVE_TEXT:"InlineAboveText",INLINE_BELOW_TEXT:"InlineBelowText",INLINE_STICK_TO_BOTTOM:"InlineStickToBottom",OFF_GRID:"OffGrid"}),K=Object.freeze({ICON:"icon",TEXT:"text"}),q=Object.freeze({LINKEDIN:"LinkedIn",BEHANCE:"Behance",DRIBBBLE:"Dribbble",MEDIUM:"Medium",X:"X",INSTAGRAM:"Instagram",PINTEREST:"Pinterest",TUMBLR:"Tumblr",YOUTUBE:"Youtube",VIMEO:"Vimeo",SLACK:"Slack",GITHUB:"Github"}),Y=Object.freeze(Object.values(q)),Q=Object.freeze({SIMPLE:"simple",BOX_SHARP:"box-sharp",BOX_ROUNDED:"box-rounded",BOX_PILL:"box-pill",BOX_PILL_FILL:"box-pill-fill",UNDERLINE_REGULAR:"underline-regular"}),J=Object.freeze({SIMPLE:"Simple",BOX_SHARP:"BoxSharp",BOX_ROUNDED:"BoxRounded",BOX_PILL:"BoxPill",BOX_PILL_FILL:"BoxPillFill",UNDERLINE_REGULAR:"UnderlineRegular"}),Z=Object.freeze({FILL:"Fill",OUTLINE:"Outline"}),ee=Object.freeze([0,8,999]),te=Object.freeze([1,2,4]),ne=8,re=1,oe=(Object.freeze({OUTLINED:"outlined",FILLED:"filled"}),Object.freeze({PORTFOLIO:"Portfolio",CASE_STUDY:"CaseStudy"})),ie=Object.freeze({SUBTLE:"subtle",PLATFORM:"platform",ACCENT:"accent",ACCENT_PLATFORM:"accent_platform",CONTRAST:"contrast"}),se=Object.freeze({TEMPLATE:"template",CUSTOMIZE:"customize",HEADLINE:"headline",CASE_STUDY:"caseStudy",THUMBNAIL:"thumbnail",LAYOUT:"layout",RESUME:"resume",DOMAIN:"domain",PUBLISH:"publish"}),ae=Object.freeze({EMPTY:"Empty",INCOMPLETE:"Incomplete",FINISHED:"Finished"}),le=Object.freeze({GUEST:"guest",GUEST_CONTINUE:"guest_continue",EXISTING_USER:"existing_user",AUTH_ERROR:"auth_error",LOGIN_ERROR:"login_error",FOLLOW_UP:"follow_up"}),ce=Object.freeze({ALL_CATEGORIES:"All Categories",DESIGN:"Design",CONTENT:"Content",STRUCTURE:"Structure",IMAGERy:"Imagery"}),ue=Object.freeze({FREE:"Free",TRIAL:"Trial",PREMIUM:"Premium",STANDARD:"Standard",VIP:"VIP"}),de=Object.freeze({PUBLISH_PORTFOLIO:"publish-portfolio",PUBLISH_CASE_STUDY:"publish-case-study",EDIT_FONTS:"edit-fonts",EDIT_COLORS:"edit-colors",EDIT_ANIMATIONS:"edit-animations",COLLECT_REVIEWS:"collect-reviews",CUSTOM_DOMAIN:"custom-domain",ANALYTICS:"analytics",PASSWORD_PROTECTION:"password-protection",SHARE_LINK:"share-link",HIDE_BANNER:"hide-banner"}
2),pe=Object.freeze([de.ANALYTICS,de.EDIT_FONTS,de.EDIT_COLORS,de.EDIT_ANIMATIONS]),fe=Object.freeze([de.EDIT_FONTS,de.EDIT_COLORS,de.EDIT_ANIMATIONS]),he=Object.freeze([de.PUBLISH_PORTFOLIO,de.PUBLISH_CASE_STUDY,de.EDIT_FONTS,de.EDIT_COLORS,de.EDIT_ANIMATIONS,de.COLLECT_REVIEWS,de.CUSTOM_DOMAIN,de.ANALYTICS,de.PASSWORD_PROTECTION,de.SHARE_LINK,de.HIDE_BANNER]),me=Object.freeze({CASE_STUDY_GENERATOR:"CASE_STUDY_GENERATOR",TEXT_ENHANCER:"TEXT_ENHANCER",CUSTOM_PROMPT:"CUSTOM_PROMPT",JOB_FIT_CHECKER:"JOB_FIT_CHECKER"}),ve=Object.freeze({SUBMITTED:"SUBMITTED",PROCESSING:"PROCESSING",COMPLETED:"COMPLETED",NOT_FOUND:"NOT_FOUND",FAILED:"FAILED",CANCELLED:"CANCELLED"}),ge=Object.freeze({DRAFT:"DRAFT",PUBLISHED:"PUBLISHED"}),ye={SHORTEN:"MAKE_SHORTER",FIX_GRAMMAR:"FIX_GRAMMAR_AND_TYPOS",BOOST_STORY:"BOOST_STORYTELLING",IMPROVE_WRITING:"IMPROVE_WRITING",CUSTOM_PROMPT:"CUSTOM_PROMPT",MAKE_IT_STAND_OUT:"MAKE_IT_STAND_OUT"},be=Object.freeze({INFO:"info",WARNING:"warning",SUCCESS:"success"}),we=Object.freeze({HORIZONTAL:"HORIZONTAL",VERTICAL:"VERTICAL",ALL:"ALL",SINGLE:"SINGLE"}),Se=Object.freeze({DOMAIN:"domain",PASSWORD:"password"}),ke=Object.freeze({0:0,8:4,12:8,16:12,24:16,32:24}),_e=Object.freeze({THUMBNAILS:"THUMBNAILS"}),Oe=(Object.freeze({AURORA:"AURORA",LIGHT_RAYS:"LIGHT_RAYS",BEAMS:"BEAMS",THREADS:"THREADS",LINE_WAVES:"LINE_WAVES",PARTICLES:"PARTICLES",DOT_GRID:"DOT_GRID",SQUARES:"SQUARES",PIXEL_BLAST:"PIXEL_BLAST",GRADIENT:"GRADIENT",GRADIENT_BLINDS:"GRADIENT_BLINDS",SILK:"SILK"}),Object.freeze({NONE:"none",SOLID:"solid",ANIMATED:"animated",IMAGE:"image",GRADIENT:"gradient"})),Ce=Object.freeze({CURATED_BACKGROUNDS:"curated_backgrounds",UPLOAD_IMAGE:"upload_image",GRADIENT:"gradient",SOLID_COLOR:"solid_color",TRANSPARENT:"transparent"}),Te=Object.freeze({BASIC:"basic",ADD_MEDIA:"add-media"}),Ae=Object.freeze({SMALL:"Small",MEDIUM:"Medium"}),Ee=Object.freeze({DEFAULT:"Default",CIRCLE:"Circle",ARROW:"Arrow",LABELED:"Labeled",BLURRED:"Blurred",FIGMA:"Figma",EMOJI:"Emoji"}),xe=Object.freeze({GRID:"Grid",OFFSET_GRID:"OffsetGrid",CAROUSEL:"Carousel",SLIDER:"Slider",TILTED:"Tilted"}),Pe=Object.freeze({SIDES:"Sides",BOTTOM:"Bottom"})},76107(e,t,n){"use strict";n.d(t,{Ly:()=>b,Ob:()=>p,Sf:()=>l,Tv:()=>c,bH:()=>m,fd:()=>g,iL:()=>v,j5:()=>f,nY:()=>y,o:()=>h,oW:()=>a,rp:()=>u,sN:()=>d,w3:()=>w,yp:()=>S});var r=n(74256);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=e.slice(0,7),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)throw new Error("Invalid hex color format");var r=parseInt(n[1],16)/255,o=parseInt(n[2],16)/255,i=parseInt(n[3],16)/255,s=Math.max(r,o,i),a=Math.min(r,o,i),l=s-a,c=(s+a)/2,u=0,d=0;if(0!==l){switch(d=c>.5?l/(2-s-a):l/(s+a),s){case r:u=((o-i)/l+(o<i?6:0))%6;break;case o:u=(i-r)/l+2;break;case i:u=(r-o)/l+4}u*=60}return{h:Math.round(u),s:parseFloat(d.toFixed(2)),l:parseFloat(c.toFixed(2))}}function l(e,t,n){t/=100,n/=100;var r=(1-Math.abs(2*n-1))*t,o=r*(1-Math.abs(e/60%2-1)),i=n-r/2,s=0,a=0,l=0;return 0<=e&&e<60?(s=r,a=o,l=0):60<=e&&e<120?(s=o,a=r,l=0):120<=e&&e<180?(s=0,a=r,l=o):180<=e&&e<240?(s=0,a=o,l=r):240<=e&&e<300?(s=o,a=0,l=r):300<=e&&e<360&&(s=r,a=0,l=o),s=Math.round(255*(s+i)).toString(16).padStart(2,"0"),a=Math.round(255*(a+i)).toString(16).padStart(2,"0"),l=Math.round(255*(l+i)).toString(16).padStart(2,"0"),"#".concat(s).concat(a).concat(l)}function c(e){var t=Math.round(e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)")}function u(e,t){var n=.01*t,r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e);return r.l=Math.max(0,Math.min(1,e.l+n)),r}function d(e,t,n){function r(e){if(e)return 3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map(function(e){return e+e}).join("")),{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}}var o=r(e),i=r(t);return p(Math.round(o.r*n+i.r*(1-n)),Math.round(o.g*n+i.g*(1-n)),Math.round(o.b*n+i.b*(1-n)))}function p(e,t,n){return"#".concat(((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1).toUpperCase())}function f(e,t){var n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(o,", ").concat(t,")")}function h(e){var t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)$/);if(t)return{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:void 0!==t[4]?parseFloat(t[4]):1};throw new Error("Invalid RGB(A) format. Expected formats: rgb(231, 19, 59) or rgba(231, 19, 59, 0.5)")}function m(e,t){var n=v(e.background,t),r=v(e.h1,t),o="transparent"===e.buttonFill?v(e.buttonOutline,t):v(e.buttonFill,t);return{solid:{subtle:[d(r,n,.08)],platform:[d(r,n,.16)],accent:[d(o,n,.28)],accent_platform:[d(o,n,.48)],contrast:[d(r,n,.72)]},gradient:{subtle:[n,d(r,n,.32)],platform:[d(r,n,.16),d(r,n,.64)],accent:[n,o],accent_platform:[d(o,n,.24),d(o,n,.64)],contrast:[d(r,n,.64),r]}}}function v(e,t){return null!==e.paletteColorIndex&&void 0!==e.paletteColorIndex&&t.colors?t.colors[e.paletteColorIndex]:e.primaryColor||e.color}function g(e){return"string"==typeof e&&e.startsWith("#")}function y(e){return"string"==typeof e&&e.startsWith("rgb(")}function b(e){return"string"==typeof e&&e.startsWith("var(--")}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canceled";switch(t===r.dh.VIP||"canceled"!==n&&"past_due"!==n||(t=r.dh.FREE),t){case r.dh.FREE:return r.xL.includes(e);case r.dh.TRIAL:return r.$m.includes(e);case r.dh.PREMIUM:case r.dh.STANDARD:case r.dh.VIP:return r.oN.includes(e);default:return!1}}function S(e){var t=e.url,n=e.width,r=e.height;return t?{src:t,width:n||"100%",style:{"aspect-ratio":n&&r?n/r:"16/9"}}:{}}},42349(e,t,n){"use strict";n.d(t,{$1:()=>m,FZ:()=>y,T8:()=>d,k7:()=>w,r1:()=>h,uR:()=>u});var r,o=n(74256);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return"number"!=typeof e||"number"!=typeof t?0:Math.max(0,t-e)}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3;return{moduleId:"text",type:o.jB.TEXT,gridSettings:{columnStart:e,columnEnd:t,columnSpan:c(e,t)},resizeSettings:{minColumnSpan:r,maxColumnSpan:n,resizeDirections:o.v8.HORIZONTAL,autoHeight:!0}}}function d(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return{moduleId:"media",type:o.jB.MEDIA,gridSettings:{columnStart:e,columnEnd:t,columnSpan:c(e,t)},resizeSettings:{minColumnSpan:r,maxColumnSpan:n,resizeDirections:o.v8.ALL,autoHeight:!0}}}function p(e,t,n){return{moduleId:"contact-form",type:o.jB.CONTACT_FORM,gridSettings:{columnStart:e,columnEnd:t,columnSpan:c(e,t)},resizeSettings:{minColumnSpan:4,maxColumnSpan:n,resizeDirections:o.v8.HORIZONTAL,autoHeight:!0}}}function f(e,t,n){return{moduleId:"accordion",type:o.jB.ACCORDION,gridSettings:{columnStart:e,columnEnd:t,columnSpan:c(e,t)},resizeSettings:{minColumnSpan:4,maxColumnSpan:n,resizeDirections:o.v8.HORIZONTAL,autoHeight:!0}}}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12;return{moduleId:"spacer-".concat(crypto.randomUUID()),type:o.jB.SPACER,gridSettings:{columnStart:e,columnEnd:t,columnSpan:c(e,t)},resizeSettings:{minColumnSpan:0,maxColumnSpan:n,resizeDirections:o.v8.SINGLE}}}var m={TEXT_AND_MEDIA_ORIGINAL:"TEXT_AND_MEDIA_ORIGINAL",MOCKUP_LAYOUT:"MOCKUP_LAYOUT",MOCKUP_LAYOUT_FLIPPED:"MOCKUP_LAYOUT_FLIPPED",MEDIA_FULL_WIDTH:"MEDIA_FULL_WIDTH",TEXT_DEFAULT:"TEXT_DEFAULT",ACCORDION_AND_TEXT:"ACCORDION_AND_TEXT",ACCORDION_AND_IMAGE:"ACCORDION_AND_IMAGE",ACCORDION_FULL_WIDTH:"ACCORDION_FULL_WIDTH",CONTACT_FORM_ORIGINAL:"CONTACT_FORM_ORIGINAL",CONTACT_FORM_AND_TEXT:"CONTACT_FORM_AND_TEXT",CONTACT_FORM_CENTERED:"CONTACT_FORM_CENTERED",HERO:"HERO",HERO_REVERTED:"HERO_REVERTED",HERO_MODULAR_VERTICAL:"HERO_MODULAR_VERTICAL",HERO_OVERLAY:"HERO_OVERLAY",HERO_SIDEBAR:"HERO_SIDEBAR",HERO_SIDEBAR_TEXT:"HERO_SIDEBAR_TEXT"},v=(l(l(l(l(l(l(l(l(l(l(r={},m.TEXT_AND_MEDIA_ORIGINAL,function(){return{SPACER_START:h(1,1,7),MEDIA:d(1,7,9),SPACER_INLINE:h(
27,8,7),TEXT:u(8,13,10),SPACER_END:h(13,13,7)}}),m.MEDIA_FULL_WIDTH,function(){return{MEDIA:d(1,13,12)}}),m.TEXT_DEFAULT,function(){return{SPACER_START:h(1,1,9),TEXT:u(1,9,12)}}),m.ACCORDION_AND_TEXT,function(){return{SPACER_START:h(1,1,6),TEXT:u(1,7,8),SPACER_INLINE:h(7,7,6),ACCORDION:f(7,13,12),SPACER_END:h(13,13,6)}}),m.ACCORDION_AND_IMAGE,function(){return{SPACER_START:h(1,1,6),MEDIA:d(1,7,8),SPACER_INLINE:h(7,7,6),ACCORDION:f(7,13,12),SPACER_END:h(13,13,6)}}),m.ACCORDION_FULL_WIDTH,function(){return{SPACER_START:h(1,1,8),ACCORDION:f(1,13,12)}}),m.CONTACT_FORM_ORIGINAL,function(){return{SPACER_START:h(1,1,6),MEDIA:d(1,6,8),SPACER_INLINE:h(6,7,6),CONTACT_FORM:p(7,13,8),SPACER_END:h(13,13,6)}}),m.CONTACT_FORM_AND_TEXT,function(){return{SPACER_START:h(1,1,6),TEXT:u(1,7,8),SPACER_INLINE:h(7,7,6),CONTACT_FORM:p(7,13,8),SPACER_END:h(13,13,6)}}),m.CONTACT_FORM_CENTERED,function(){return{CONTACT_FORM:p(3,11,8)}}),m.HERO,function(){return{SPACER_START:h(1,1,7),MEDIA:d(1,5,9),SPACER_INLINE:h(5,5,7),TEXT:u(5,13,10),SPACER_END:h(13,13,7)}}),l(l(l(l(l(l(l(r,m.HERO_REVERTED,function(){return{SPACER_START:h(1,1,7),TEXT:u(1,9,10),SPACER_INLINE:h(9,9,7),MEDIA:d(9,13,9),SPACER_END:h(13,13,7)}}),m.HERO_MODULAR_VERTICAL,function(){var e=d(1,13,12),t=u(1,13,12);return{MEDIA:a(a({},e),{},{gridSettings:a(a({},e.gridSettings),{},{rowStart:1,rowEnd:2,columnSpan:12})}),TEXT:a(a({},t),{},{gridSettings:a(a({},t.gridSettings),{},{rowStart:2,rowEnd:3,columnSpan:12})})}}),m.HERO_OVERLAY,function(){var e=d(1,13,12),t=u(3,11,12);return{MEDIA:a(a({},e),{},{resizeSettings:a(a({},e.resizeSettings),{},{minColumnSpan:12,isLocked:!0})}),TEXT:t}}),m.HERO_SIDEBAR,function(){var e=d(1,5,4,2),t=u(1,5,4,4);return{MEDIA:a(a({},e),{},{gridSettings:a(a({},e.gridSettings),{},{rowStart:1,rowEnd:2,columnSpan:4})}),TEXT:a(a({},t),{},{gridSettings:a(a({},t.gridSettings),{},{rowStart:2,rowEnd:3,columnSpan:4}),resizeSettings:a(a({},t.resizeSettings),{},{isLocked:!0})})}}),m.HERO_SIDEBAR_TEXT,function(){var e=u(1,5,4);return{TEXT:a(a({},e),{},{gridSettings:a(a({},e.gridSettings),{},{rowStart:1,rowEnd:2,columnSpan:4}),resizeSettings:a(a({},e.resizeSettings),{},{isLocked:!0})})}}),m.MOCKUP_LAYOUT,function(){var e=d(1,6,8);return{SPACER_START:h(1,1,7),MEDIA:a(a({},e),{},{resizeSettings:a(a({},e.resizeSettings),{},{minColumnSpan:5,resizeDirections:o.v8.HORIZONTAL,autoHeight:!0})}),SPACER_INLINE:h(6,6,7),TEXT:u(6,13,10),SPACER_END:h(13,13,7)}}),m.MOCKUP_LAYOUT_FLIPPED,function(){var e=d(8,13,8);return{SPACER_START:h(1,1,7),TEXT:u(1,8,10),SPACER_INLINE:h(8,8,7),MEDIA:a(a({},e),{},{resizeSettings:a(a({},e.resizeSettings),{},{minColumnSpan:5,resizeDirections:o.v8.HORIZONTAL,autoHeight:!0})}),SPACER_END:h(13,13,7)}}));function g(e,t){var n=v[t];if(!n)return e;var r=n();return Object.values(r)}function y(e,t){return a(a({},e),{},{modules:g(e.modules,t)})}var b=l(l(l(l(l(l({},o.jB.TEXT,{min:3,max:12,dir:o.v8.HORIZONTAL}),o.jB.TITLE,{min:3,max:12,dir:o.v8.HORIZONTAL}),o.jB.ACCORDION,{min:4,max:12,dir:o.v8.HORIZONTAL}),o.jB.CONTACT_FORM,{min:4,max:8,dir:o.v8.HORIZONTAL}),o.jB.MEDIA,{min:2,max:12,dir:o.v8.ALL}),o.jB.MOCKUP_LAYOUT,{});function w(e,t){var n,r,i=e.filter(function(e){return e.type!==o.jB.SPACER}),s=null!==(n=i.find(function(e){return e.type!==o.jB.SPACER}))&&void 0!==n?n:i[0];if(!s)return e;var l=function(e){var t=JSON.parse(JSON.stringify({left:{module:{columnStart:1,columnEnd:9},spacer:{columnStart:1,columnEnd:1}},center:{module:{columnStart:3,columnEnd:11},spacer:{columnStart:null,columnEnd:null}},right:{module:{columnStart:5,columnEnd:13},spacer:{columnStart:13,columnEnd:13}}}));return e===o.jB.MEDIA&&(t.center.module.columnStart=1,t.center.module.columnEnd=13),t}(s.type)[t],u=l.module,d=(l.spacer,null!==(r=b[s.type])&&void 0!==r?r:{min:3,max:12,dir:o.v8.HORIZONTAL}),p="center"!==t?d.min:Math.max(d.min,4),f=a(a({},s),{},{gridSettings:a(a({},s.gridSettings),{},{columnStart:u.columnStart,columnEnd:u.columnEnd,columnSpan:c(u.columnStart,u.columnEnd)}),resizeSettings:a(a({},s.resizeSettings),{},{resizeDirections:d.dir,minColumnSpan:p,maxColumnSpan:d.max})});return"left"===t?[h(1,1,12),f]:"right"===t?[f,h(13,13,12)]:[f]}},92685(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(82124),o=n(74256);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=Object.freeze({square:0,rounded:8,pill:16});const u={computed:a(a({},(0,r.L8)("design",["ctaStyles"])),{},{contactFormCtaType:function(){var e,t;return null!==(e=null===(t=this.section)||void 0===t||null===(t=t.cta)||void 0===t?void 0:t.type)&&void 0!==e?e:o.tZ.PRIMARY},contactFormCtaStyle:function(){var e;return(null===(e=this.ctaStyles)||void 0===e?void 0:e[this.contactFormCtaType])||{}},contactFormFieldClasses:function(){var e=this.contactFormCtaStyle.fillStyle||"solid",t=this.contactFormCtaStyle.shape||"square";return["contact-form--cta-fields","contact-form--cta-".concat(this.contactFormCtaType),"contact-form--fill-".concat(e),"contact-form--shape-".concat(t)]},contactFormFieldStyleVars:function(){var e,t=this.contactFormCtaStyle.fillStyle||"solid",n=this.contactFormCtaStyle.shape||"square",r="underline"===t?8:null!==(e=c[n])&&void 0!==e?e:0;return{"--contact-form-field-radius":"".concat(r,"px")}}})}},63970(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74256);const o={computed:{ctaType:function(){var e,t;return null!==(e=null===(t=this.section)||void 0===t||null===(t=t.cta)||void 0===t?void 0:t.type)&&void 0!==e?e:r.tZ.PRIMARY},ctaActionType:function(){var e;return(null===(e=this.section)||void 0===e||null===(e=e.cta)||void 0===e?void 0:e.actionType)||"open-link"},ctaActionValue:function(){var e;return(null===(e=this.section)||void 0===e||null===(e=e.cta)||void 0===e?void 0:e.url)||""},showActionIcon:function(){var e;return"copy-email"===this.ctaActionType||!(null===(e=this.section)||void 0===e||null===(e=e.cta)||void 0===e||!e.showIcon)},useLightCtaIcon:function(){var e,t=this.ctaType===r.tZ.SECONDARY?"secondaryButton":"button";return function(e){if(null==e)return!1;var t=Number(e);if(!Number.isNaN(t))return t<=300;var n="".concat(e).toLowerCase();return n.includes("light")||n.includes("thin")}(null===(e=this.$store.getters["design/fontStyles"])||void 0===e||null===(e=e[t])||void 0===e?void 0:e.fontWeight)}},methods:{getCtaActionIconName:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).isCopied,t=void 0!==e&&e,n=this.useLightCtaIcon?"-light":"";return"copy-email"===this.ctaActionType?t?"check":"cta-copy-email".concat(n):"navigate-to-page"===this.ctaActionType?"cta-open-page".concat(n):"cta-open-link".concat(n)}}}},913(e,t,n){"use strict";n.d(t,{mz:()=>C,pq:()=>P,St:()=>j,Cz:()=>B,zR:()=>O,eX:()=>A,CA:()=>I,O6:()=>x,S4:()=>T,Nx:()=>E,wI:()=>U});var r=n(81661);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=i({},r.w7.MOBILE,i(i(i(i(i(i(i({},r.M2.REALISTIC,{v1:new r.id("mobile-realistic-v1",r.w7.MOBILE,r.M2.REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v1",[r.Vx.LAPTOP_NOTCH],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v3:new r.id("mobile-realistic-v3",r.w7.MOBILE,r.M2.REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v3",[r.Vx.NOTCH],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.SEMI_REALISTIC,{v1:new r.id("mobile-semi-realistic-v1",r.w7.MOBILE,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v1",[r.Vx.LAPTOP_NOTCH],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v2:new r.id("mobile-semi-realistic-v2",r.w7.MOBILE,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v3:new r.id("mobile-semi-realistic-v3",r.w7.MOBILE,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v3",[r.Vx.NOTCH],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.SIMPLE,{v2:new r.id("mobile-simple-v2",r.w7.MOBILE,r.M2.SIMPLE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v3:new r.id("mobile-simple-v3",r.w7.MOBILE,r.M2.SIMPLE,[r.S5.LIGHT,r.S5.DARK],"v3",[r.Vx.NOTCH],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.OUTLINE,{v1:new r.id("mobile-outline-v1",r.w7.MOBILE,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v2:new r.id("mobile-outline-v2",r.w7.MOBILE,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.BROWSER,{v2:new r.id("mobile-browser-v2",r.w7.MOBILE,r.M2.BROWSER,[r.S5.LIGHT,r.S5.DARK],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.TRADITIONAL,{v1:new r.id("mobile-traditional-v1",r.w7.MOBILE,r.M2.TRADITIONAL,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.MINIMAL,{v2:new r.id("mobile-minimal-v2",r.w7.MOBILE,r.M2.MINIMAL,[r.S5.LIGHT],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT])}));function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=l({},r.w7.TABLET,l(l(l(l(l(l(l({},r.M2.REALISTIC,{v1:new r.id("tablet-realistic-v1",r.w7.TABLET,r.M2.REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v3:new r.id("tablet-realistic-v3",r.w7.TABLET,r.M2.REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v3",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.SEMI_REALISTIC,{v1:new r.id("tablet-semi-realistic-v1",r.w7.TABLET,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v2:new r.id("tablet-semi-realistic-v2",r.w7.TABLET,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.SIMPLE,{v2:new r.id("tablet-simple-v2",r.w7.TABLET,r.M2.SIMPLE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.OUTLINE,{v1:new r.id("tablet-outline-v1",r.w7.TABLET,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE]),v2:new r.id("tablet-outline-v2",r.w7.TABLET,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.BROWSER,{v2:new r.id("tablet-browser-v2",r.w7.TABLET,r.M2.BROWSER,[r.S5.LIGHT,r.S5.DARK],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.TRADITIONAL,{v1:new r.id("tablet-traditional-v1",r.w7.TABLET,r.M2.TRADITIONAL,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT,r.YD.LANDSCAPE])}),r.M2.MINIMAL,{v2:new r.id("tablet-minimal-v2",r.w7.TABLET,r.M2.MINIMAL,[r.S5.LIGHT],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT])}));function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=d({},r.w7.LAPTOP,d(d(d(d(d(d(d({},r.M2.REALISTIC,{v1:new r.id("laptop-realistic-v1",r.w7.LAPTOP,r.M2.REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT]),v3:new r.id("laptop-realistic-v3",r.w7.LAPTOP,r.M2.REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v3",[r.Vx.LAPTOP_NOTCH],[r.YD.PORTRAIT])}),r.M2.SEMI_REALISTIC,{v1:new r.id("laptop-semi-realistic-v1",r.w7.LAPTOP,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT]),v2:new r.id("laptop-semi-realistic-v2",r.w7.LAPTOP,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT]),v3:new r.id("laptop-semi-realistic-v2",r.w7.LAPTOP,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v3",[r.Vx.LAPTOP_NOTCH],[r.YD.PORTRAIT])}),r.M2.SIMPLE,{v2:new r.id("laptop-simple-v2",r.w7.LAPTOP,r.M2.SIMPLE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT]),v3:new r.id("laptop-simple-v2",r.w7.LAPTOP,r.M2.SIMPLE,[r.S5.LIGHT,r.S5.DARK],"v3",[r.Vx.LAPTOP_NOTCH],[r.YD.PORTRAIT])}),r.M2.OUTLINE,{v1:new r.id("laptop-outline-v1",r.w7.LAPTOP,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT]),v2:new r.id("laptop-outline-v2",r.w7.LAPTOP,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT]),v3:new r.id("laptop-outline-v3",r.w7.LAPTOP,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v3",[],[r.YD.PORTRAIT])}),r.M2.BROWSER,{v2:new r.id("laptop-browser-v2",r.w7.LAPTOP,r.M2.BROWSER,[r.S5.LIGHT,r.S5.DARK],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT]),v3:new r.id("laptop-browser-v3",r.w7.LAPTOP,r.M2.BROWSER,[r.S5.LIGHT,r.S5.DARK],"v3",[r.Vx.CORNER],[r.YD.PORTRAIT])}),r.M2.TRADITIONAL,{v1:new r.id("laptop-traditional-v1",r.w7.LAPTOP,r.M2.TRADITIONAL,[r.S5.LIGHT,r.S5.DARK],"v1",[],[r.YD.PORTRAIT])}),r.M2.MINIMAL,{v2:new r.id("laptop-minimal-v2",r.w7.LAPTOP,r.M2.MINIMAL,[r.S5.LIGHT],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT]),v3:new r.id("laptop-minimal-v3",r.w7.LAPTOP,r.M2.MINIMAL,[r.S5.LIGHT],"v3",[r.Vx.CORNER],[r.YD.PORTRAIT])}));function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=h({},r.w7.DESKTOP,h(h(h(h(h(h(h({},r.M2.REALISTIC,{v3:new r.id("desktop-realistic-v3",r.w7.DESKTOP,r.M2.REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v3",[],[r.YD.PORTRAIT])}),r.M2.SEMI_REALISTIC,{v2:new r.id("desktop-semi-realistic-v2",r.w7.DESKTOP,r.M2.SEMI_REALISTIC,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT])}),r.M2.SIMPLE,{v2:new r.id("desktop-simple-v2",r.w7.DESKTOP,r.M2.SIMPLE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT])}),r.M2.OUTLINE,{v2:new r.id("desktop-outline-v2",r.w7.DESKTOP,r.M2.OUTLINE,[r.S5.LIGHT,r.S5.DARK],"v2",[],[r.YD.PORTRAIT])}),r.M2.BROWSER,{v2:new r.id("desktop-browser-v2",r.w7.DESKTOP,r.M2.BROWSER,[r.S5.LIGHT,r.S5.DARK],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT])}),r.M2.TRADITIONAL,{}),r.M2.MINIMAL,{v2:new r.id("desktop-minimal-v2",r.w7.DESKTOP,r.M2.MINIMAL,[r.S5.LIGHT],"v2",[r.Vx.CORNER],[r.YD.PORTRAIT])}));function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=S(S(S(S({},s),c),m),p);function O(e,t,n,o,i,s){try{var a,l,c=r.r4.DEFAULT;if(i.length){var u=i[0];f=u.name,h=u.value,c=r.Vx[f].default===h?r.r4.DEFAULT:u.value}var d=null==_||null===(a=_[e])||void 0===a||null===(a=a[t])||void 0===a?void 0:a[n];if(!d)throw new Error("Mockup not found for deviceType: ".concat(e,", mockupType: ").concat(t,", version: ").concat(n));var p=null===(l=d.urls)||void 0===l||null===(l=l[c])||void 0===l||null===(l=l[s])||void 0===l?void 0:l[o];if(!p)throw new Error("URL not found for setting: ".concat(c,", orientation: ").concat(s,", colorScheme: ").concat(o));return p}catch(r){return console.error("Error in findMockup:",r.message,{deviceType:e,mockupType:t,version:n,colorScheme:o,settingsOption:i,orientation:s}),null}var f,h}function C(e,t){var n=I(e,t);return _[e][t][n].settings.map(function(e){return e.name})}function T(e,t,n,r){return _[e][t][r].settings.map(function(e){return e.name}).includes(n)}function A(e,t){var n=I(e,t);return _[e][t][n].settings.length?[{name:_[e][t][n].settings[0].name,value:_[e][t][n].settings[0].default}]:[]}function E(e,t,n){var r=I(e,t);return _[e][t][r].availableOrientations.includes(n)}function x(e,t,n){var r=I(e,t);return _[e][t][r].colorSchemes.includes(n)}var P={deviceType:r.w7.MOBILE,mockupType:r.M2.REALISTIC,colorScheme:r.S5.LIGHT,orientation:r.YD.PORTRAIT,version:I(r.w7.MOBILE,r.M2.SEMI_REALISTIC),settings:{name:r.Vx.NOTCH.name,value:r.r4.ISLAND},shadow:!1};function I(e,t){var n=_[e][t];if(!n)return console.error("Device type not found: ",e,t),null;var r=Object.keys(n).map(function(e){return parseInt(e.substring(1))}).sort(function(e,t){return t-e})[0];return"v".concat(r)}var L,j=[r.$q.LAPTOP_NOTCH],M=[r.M2.MINIMAL,r.M2.TRADITIONAL],D=[r.M2.TRADITIONAL],R=function(e,t){return e.map(t)},N=function(e,t,n){return e.filter(function(e){return!t.includes(e)}).map(n)},F={deviceType:{name:"Device type",options:[{id:null,name:"none"}].concat((L=Object.values(r.w7).map(function(e){return{id:e.toLowerCase(),name:e}}),function(e){if(Array.isArray(e))return b(e)}(L)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(L)||y(L)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))},mockupType:{name:"Device style",options:N(Object.values(r.M2),M,function(e){return{id:e.toLowerCase().replace(/\s+/g,""),name:e}})},settings:{name:"Settings",groups:Object.entries(r.Vx).filter(function(e){var t=g(e,1)[0];return!j.some(function(e){return e.toLowerCase()===t.toLowerCase()})}).map(function(e){var t,n=g(e,2),r=n[0],o=n[1];return{id:r,name:(t=r,t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()),displayName:o.displayName,options:R(o.options,function(e){return{id:e,name:e}})}})},colorScheme:{name:"Color scheme",options:R(Object.values(r.S5),function(e){return{id:e.toLowerCase(),name:e}})},shadow:{name:"Device shadow",options:[{id:"shadow",name:!0},{id:"no-shadow",name:!1}]}},B=S(S({},F),{},{mockupType:{name:"Device style",options:N(Object.values(r.M2),M,function(e){return{id:e.toLowerCase().replace(/\s+/g,""),name:e}})}}),U=S(S({},F),{},{mockupType:{name:"Device style",options:N(Object.values(r.M2),D,function(e){return{id:e.toLowerCase().replace(/\s+/g,""),name:e}})}})},81661(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{$q:()=>d,M2:()=>a,S5:()=>l,Vx:()=>p,YD:()=>c,id:()=>f,r4:()=>u,w7:()=>s});var s=Object.freeze({MOBILE:"Mobile",LAPTOP:"Laptop",DESKTOP:"Desktop",TABLET:"Tablet"}
2),a=Object.freeze({REALISTIC:"Realistic",SEMI_REALISTIC:"Semirealistic",SIMPLE:"Simple",OUTLINE:"Outline",BROWSER:"Browser",TRADITIONAL:"Traditional",MINIMAL:"Minimal"}),l=Object.freeze({LIGHT:"Light",DARK:"Dark"}),c=Object.freeze({PORTRAIT:"Portrait",LANDSCAPE:"Landscape"}),u=Object.freeze({DEFAULT:"Default",ISLAND:"Island",NOTCH:"Notch",SIMPLE:"Simple",ROUNDED:"Rounded",SQUARED:"Squared"}),d=Object.freeze({CORNER:"CORNER",NOTCH:"NOTCH",LAPTOP_NOTCH:"LAPTOP_NOTCH"}),p=Object.freeze({CORNER:{name:d.CORNER,displayName:"Device corner",options:[u.ROUNDED,u.SQUARED],default:u.ROUNDED},NOTCH:{name:d.NOTCH,displayName:"Bezel type",options:[u.ISLAND,u.NOTCH,u.SIMPLE],default:u.SIMPLE},LAPTOP_NOTCH:{name:d.LAPTOP_NOTCH,displayName:"Bezel type",options:[u.SIMPLE,u.NOTCH],default:u.SIMPLE}}),f=function(){return e=function e(t,n,r,o,i,s,a){var l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.deviceType=n,this.mockupType=r,this.colorSchemes=o,this.version=i,this.settings=s,this.availableOrientations=a.length?a:[c.PORTRAIT],this.urls={},this.settings.length?this.settings.forEach(function(e){e.options.forEach(function(t){var n=e.default===t;l.setupUrls(n?u.DEFAULT:t,n)})}):this.setupUrls(u.DEFAULT,!0)},(t=[{key:"setupUrls",value:function(e,t){var n=this;this.urls[e]={},this.availableOrientations.forEach(function(r){n.urls[e][r]={},n.colorSchemes.forEach(function(o){n.urls[e][r][o]=n.generateSvgPath(o,e,r,t)})})}},{key:"generateSvgPath",value:function(e,t,n,r){var o=r?"":"--".concat(t.toLowerCase()),i=n===c.LANDSCAPE?"--landscape":"";return"/mockups/".concat(this.deviceType.toLowerCase(),"/").concat(this.mockupType.toLowerCase(),"/").concat(this.version,"/").concat(e.toLowerCase()).concat(o).concat(i,".svg")}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},54861(e,t,n){"use strict";n.d(t,{j:()=>c});var r=n(74256);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={type:r.m3.ABOVE,layout:r.wb.SIMPLE_LEFT,style:r.B0.SIMPLE,fill:!0,defaultDarkNav:!0,socialLinksLocation:null,navigationItems:{ownerId:{visible:!1},button:{style:r.Vc.BOLD},socialLink:{type:r.tD.TEXT,style:r.Sb.SIMPLE,weight:null,upperCase:!1}}},c={theme_eighteen:{layout:r.wb.SIMPLE_RIGHT,fill:!1,navigationItems:s(s({},l.navigationItems),{},{ownerId:{visible:!0}})},theme_seventeen:{fill:!1,type:r.m3.BELOW,layout:r.wb.SIMPLE_MIDDLE,navigationItems:s(s({},l.navigationItems),{},{button:{style:r.Vc.UNDERLINE_REGULAR}})},theme_sixteen:{layout:r.wb.SIMPLE_RIGHT,socialLinksLocation:r.U$.INLINE_BELOW_TEXT,navigationItems:s(s({},l.navigationItems),{},{button:{style:r.Vc.BOX_PILL},socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON})})},theme_fourteen:{layout:r.wb.SIMPLE_RIGHT,navigationItems:s(s({},l.navigationItems),{},{ownerId:{visible:!0}})},theme_thirteen:{layout:r.wb.SIMPLE_RIGHT,socialLinksLocation:r.U$.INLINE_STICK_TO_BOTTOM,navigationItems:s(s({},l.navigationItems),{},{ownerId:{visible:!0},button:{style:r.Vc.UNDERLINE_SMALL},socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON})})},theme_twelve:{layout:r.wb.SIMPLE_LEFT,navigationItems:s({},l.navigationItems)},theme_eleven:{layout:r.wb.SIMPLE_MIDDLE,navigationItems:s(s({},l.navigationItems),{},{button:{style:r.Vc.UNDERLINE_SMALL}})},theme_ten:{layout:r.wb.SIDES,socialLinksLocation:r.U$.NAVBAR,fill:!1,navigationItems:s(s({},l.navigationItems),{},{button:s(s({},l.navigationItems.button),{},{style:r.Vc.UNDERLINE_REGULAR}),socialLink:s(s({},l.navigationItems.socialLink),{},{style:r.Sb.UNDERLINE_REGULAR})})},profile_theme_nine:{type:r.m3.BELOW,socialLinksLocation:r.U$.INLINE_ABOVE_TEXT,navigationItems:s(s({},l.navigationItems),{},{socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_PILL})})},theme_eight:{layout:r.wb.SIMPLE_RIGHT,navigationItems:s(s({},l.navigationItems),{},{ownerId:{visible:!0},button:s(s({},l.navigationItems.button),{},{style:r.Vc.UNDERLINE_REGULAR})})},theme_seven:{layout:r.wb.LINE_MIDDLE,socialLinksLocation:r.U$.INLINE_BELOW_TEXT,navigationItems:s(s({},l.navigationItems),{},{button:s({},l.navigationItems.button),socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_SHARP})})},theme_six:{layout:r.wb.SIMPLE_MIDDLE,socialLinksLocation:r.U$.OFF_GRID,navigationItems:s(s({},l.navigationItems),{},{socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_SHARP})})},theme_five:{layout:r.wb.SIDES,fill:!1,socialLinksLocation:r.U$.NAVBAR,navigationItems:s({},l.navigationItems)},profile_theme_four:{socialLinksLocation:r.U$.INLINE_BELOW_TEXT,navigationItems:s(s({},l.navigationItems),{},{button:s({},l.navigationItems.button),socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_PILL})})},theme_three:{layout:r.wb.MIDDLE,socialLinksLocation:r.U$.INLINE_BELOW_TEXT,navigationItems:s(s({},l.navigationItems),{},{button:s({},l.navigationItems.button),socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_PILL_FILL})})},theme_two:{layout:r.wb.SIMPLE_LEFT,type:r.m3.INLINE_BELOW_TEXT,socialLinksLocation:r.U$.NAVBAR,navigationItems:s(s({},l.navigationItems),{},{button:s(s({},l.navigationItems.button),{},{style:r.Vc.BOX_PILL_FILL}),socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_PILL_FILL})})},theme_one:{layout:r.wb.SIMPLE_LEFT,type:r.m3.INLINE_BELOW_TEXT,socialLinksLocation:r.U$.NAVBAR,navigationItems:s(s({},l.navigationItems),{},{button:s(s({},l.navigationItems.button),{},{style:r.Vc.BOX_SHARP}),socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_SHARP})})},profile_theme_default:{socialLinksLocation:r.U$.INLINE_BELOW_TEXT,navigationItems:s(s({},l.navigationItems),{},{button:s(s({},l.navigationItems.button),{},{style:r.Vc.UNDERLINE_REGULAR}),socialLink:s(s({},l.navigationItems.socialLink),{},{type:r.tD.ICON,style:r.Sb.BOX_PILL})})}}},99210(e,t,n){"use strict";n.d(t,{KN:()=>h});var r=n(65498);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,i){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,a=e,p.n=n,l}};function f(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,a=h;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,a)):p.n=a:p.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?a:n.call(r,p))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),f=d.prototype=c.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,s(f,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,o,"GeneratorFunction"),s(f),s(f,o,"Generator"),s(f,r,function(){return this}),s(f,"toString",function(){return"[object Generator]"}),(i=function(){return{w:a,m:h}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,n,r){function i(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},s(e,t,n,r)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){u(i,r,o,s,a,"next",e)}function a(e){u(i,r,o,s,a,"throw",e)}s(void 0)})}}var p=[],f=[];function h(){return m.apply(this,arguments)}function m(){return m=d(i().m(function e(){var t,n,o,s,a,c,u,d,h,m=arguments;return i().w(function(e){for(;;)switch(e.n){case 0:if(n=(t=m.length>0&&void 0!==m[0]?m[0]:{}).includeDeleted,o=void 0!==n&&n,s=t.forceRefresh,a=o?f:p,void 0!==s&&s||!a.length){e.n=1;break}return e.a(2,a);case 1:return c=o?"/api/admin/color-palettes":"/api/color-palettes",e.n=2,r.A.getWithParams(c,o?{includeDeleted:!0}:{});case 2:return u=e.v,d=u.data,h=(d||[]).map(function(e){return l(l({},e),{},{deletedAt:e.deletedAt||null})}),o?f=h:p=h,e.a(2,h)}},e)})),m.apply(this,arguments)}},93295(e,t,n){"use strict";n.d(t,{m:()=>r});var r={mobile:{single_middle:{type:"mobile",svg:"mobile_single_middle",mockupTypes:[{type:"mobile",size:"medium"}],display:!0},single_slided:{type:"mobile",svg:"mobile_single_slided",mockupTypes:[{type:"mobile",size:"large"}],display:!0},dual_middle:{type:"mobile",svg:"mobile_dual_middle",mockupTypes:[{type:"mobile",size:"medium"},{type:"mobile",size:"medium"}],display:!0},dual_slided:{type:"mobile",svg:"mobile_dual_slided",mockupTypes:[{type:"mobile",size:"medium"},{type:"mobile",size:"medium"}],display:!0},triple_middle:{type:"mobile",svg:"mobile_triple_middle",mockupTypes:[{type:"mobile",size:"medium"},{type:"mobile",size:"small"},{type:"mobile",size:"small"}],display:!0},triple_slided:{type:"mobile",svg:"mobile_triple_slided",mockupTypes:[{type:"mobile",size:"medium"},{type:"mobile",size:"medium"},{type:"mobile",size:"medium"}],display:!0},triple_middle_horizontal:{type:"mobile",svg:"mobile_triple_middle_horizontal",mockupTypes:[{type:"mobile",size:"medium"},{type:"mobile",size:"medium"},{type:"mobile",size:"medium"}],display:!0},triple_slided_rotated:{type:"mobile",svg:"mobile_triple_slided_rotated",mockupTypes:[{t
2ype:"mobile",size:"medium"},{type:"mobile",size:"medium"},{type:"mobile",size:""}],display:!0},quadruple_slided:{type:"mobile",svg:"mobile_quadruple_slided",mockupTypes:[{type:"mobile",size:"medium"},{type:"mobile",size:"medium"},{type:"mobile",size:"medium"},{type:"mobile",size:"medium"}],display:!0},quadruple_slided_rotated:{type:"mobile",svg:"mobile_quadruple_slided_rotated",mockupTypes:[{type:"mobile",size:"medium"},{type:"mobile",size:"medium"},{type:"mobile",size:"medium"},{type:"mobile",size:"medium"}],display:!0}},desktop:{single_middle:{type:"desktop",svg:"desktop_single_middle",mockupTypes:[{type:"laptop",size:"medium"}],display:!0},single_slided:{type:"desktop",svg:"desktop_single_slided",mockupTypes:[{type:"laptop",size:"large"}],display:!0},mobile_overlay:{type:"desktop",svg:"desktop_mobile_overlay",mockupTypes:[{type:"laptop",size:"medium"},{type:"mobile",size:"small"}],display:!0},mobile_middle:{type:"desktop",svg:"desktop_mobile_middle",mockupTypes:[{type:"laptop",size:"medium"},{type:"mobile",size:"small"}],display:!0},single_slided_big:{type:"desktop",svg:"desktop_single_slided_big",mockupTypes:[{type:"laptop",size:"large"}],display:!0}},monitor:{single_middle:{type:"monitor",svg:"monitor_single_middle",mockupTypes:[{type:"desktop",size:"large"}],display:!0},desktop_middle:{type:"monitor",svg:"monitor_desktop_middle",mockupTypes:[{type:"desktop",size:"medium"},{type:"laptop",size:"small"}],display:!0},tablet_middle:{type:"monitor",svg:"monitor_tablet_middle",mockupTypes:[{type:"desktop",size:"medium"},{type:"tablet",size:"small"}],display:!0},triple_variety:{type:"monitor",svg:"monitor_triple_variety",mockupTypes:[{type:"desktop",size:"medium"},{type:"tablet",size:"small"},{type:"mobile",size:"small"}],display:!0}},tablet:{single_middle:{type:"tablet",svg:"tablet_single_middle",mockupTypes:[{type:"tablet",size:"medium"}],display:!0},single_slided:{type:"tablet",svg:"tablet_single_slided_big",mockupTypes:[{type:"tablet",size:"large"}],display:!0},mobile_overlay:{type:"tablet",svg:"tablet_mobile_overlay",mockupTypes:[{type:"tablet",size:"medium"},{type:"mobile",size:"small"}],display:!0},mobile_middle:{type:"tablet",svg:"tablet_mobile_middle",mockupTypes:[{type:"tablet",size:"medoum"},{type:"mobile",size:"small"}],display:!0},single_slided_big:{type:"tablet",svg:"tablet_single_slided",mockupTypes:[{type:"tablet",size:"large"}],display:!0}}}},21781(e,t,n){"use strict";n.d(t,{Bh:()=>C,E4:()=>D,Fp:()=>M,Gw:()=>_,I8:()=>T,Lh:()=>L,O0:()=>m,QR:()=>k,WT:()=>O,Zt:()=>b,hO:()=>I,ik:()=>j,kE:()=>w,pn:()=>v});var r=n(76107);function o(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t,n){if(null!=n)return n;var r=t.indexOf(e);return-1!==r?r:null},f=function(e,t,n){e.primaryColor=t,e.secondaryColor=t,e.color=t,e.paletteColorIndex=n},h=function(e,t,n,o){if((0,r.fd)(n)){var i=p(n,t,o);f(e,n,i)}else{var s=t[n];f(e,s,n)}return e};function m(e,t,n,r){var o=t.COLORS?t.COLORS:t.colors,i={};return r.forEach(function(t){var r=e[t];if(r){var s=u({},r);i[t]=h(s,o,n)}else console.error("Color object not found for subtype: ".concat(t))}),i}function v(e,t,n,o,i){var a=t.COLORS?t.COLORS:t.colors,l={};return Object.entries(o).forEach(function(o){var c,d,p,f,m,v,g,y,b=s(o,2),w=b[0],S=b[1],k=u({},e[w]),_=n,O=!(0,r.fd)(n)&&a.indexOf(n)>-1?a.indexOf(n)>-1:null;if(S.colorRule&&"selected"!==S.colorRule.default){if(S.colorRule.colorStyleKey){var C=e[S.colorRule.colorStyleKey];_=C.paletteColorIndex?a[C.paletteColorIndex]:C.color,O=C.paletteColorIndex}if(["contrast","vibrant"].includes(S.colorRule.default)){var T=j((c=S.colorRule,g="selected"===(null===(d=i.fill)||void 0===d?void 0:d.default),y=void 0!==e.background.paletteColorIndex&&null!==e.background.paletteColorIndex?e.background.paletteColorIndex:e.background.primaryColor?e.background.primaryColor:t.COLOR_MAP.BACKGROUND.colorIndex,c.relativeToKey?void 0!==(null===(p=e[c.relativeToKey])||void 0===p?void 0:p.paletteColorIndex)&&null!==(null===(f=e[c.relativeToKey])||void 0===f?void 0:f.paletteColorIndex)?a[e[c.relativeToKey].paletteColorIndex]:(null===(m=e[c.relativeToKey])||void 0===m?void 0:m.color)||a[e.background.paletteColorIndex]||(null===(v=e.background)||void 0===v?void 0:v.color):g&&"idle"===c.state?(0,r.fd)(n)?n:a[n]:y&&!(0,r.fd)(y)?a[y]:e.background.color),a,S.colorRule);_=T.color,O=T.index}}l[w]=h(k,a,_,O)}),l}var g=function(e,t,n,r,o){e.primaryColor=t,e.secondaryColor=t,e.color=t,e.paletteColorIndex=n>-1?n:null,e[r]||(e[r]={}),e[r][o]={color:t,paletteColorIndex:n>-1?n:null}},y=function(e,t,n,o,i,s){if((0,r.fd)(n)){var a=p(n,t,o);g(e,n,a,i,s)}else{var l=t[n];g(e,l,n,i,s)}return e};function b(e,t,n,r){var o=t.COLORS?t.COLORS:t.colors,i={};return r.clusterItems.forEach(function(t){var s=e[t];if(s){var a=u({},s);i[t]=y(a,o,n,null,r.colorTypeToSet,"idle")}else console.error("Color object not found for subtype: ".concat(t))}),i}function w(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=t.COLORS?t.COLORS:t.colors,l={};l[o.clusterName]=u({},e[o.clusterName]);var c=function(t,i,s){var c,u,d,p="selected"===(null===(c=s.fill)||void 0===c||null===(c=c.colorRule)||void 0===c?void 0:c.default),f=null!==(u=e.background.fill.idle.paletteColorIndex)&&void 0!==u?u:4;if(i.relativeToKey){var h,m=i.relativeToKey,v=m.type,g=m.state,y=null===(h=l[o.clusterName])||void 0===h||null===(h=h[v])||void 0===h?void 0:h[g];if(y){var b=y.paletteColorIndex,w=y.color;return null!=b?a[b]:w}return a[4]}return p&&"idle"===t?(0,r.fd)(n)?n:a[n]:null!==(d=a[f])&&void 0!==d?d:e.background.color};return["fill","outline","text"].forEach(function(t){var d=o.colorTypes[t];if(d){if(d.colorRule){["idle","hover","active"].forEach(function(p){var f=d.colorRule[p];if(f){var h=s||n,m=(0,r.fd)(n)?a.includes(n)?a.indexOf(n):null:n;if("selected"!==f.default){if(f.colorStyleDependency){var v=e[f.colorStyleDependency.key][f.colorStyleDependency.type][f.colorStyleDependency.state];h=v.paletteColorIndex?a[v.paletteColorIndex]:v.color,m=v.paletteColorIndex}if(["contrast","vibrant"].includes(f.default)){var g=j(i?n:c(p,f,o.colorTypes),a,f);h=g.color,m=g.index}}if(s&&"background"===f.default&&(h=n,m=a.indexOf(h),f.fallbacks)){var b=c(p,f,o.colorTypes);if(E(x(b),x(n))<4){var w=j(b,a,f);h=w.color,m=w.index}}s&&"selected"===f.default&&(h=s,m=a.indexOf(h)),l[o.clusterName]=u({},y(l[o.clusterName],a,h,m,t,p))}else l[o.clusterName][t]&&l[o.clusterName][t][p]&&(l[o.clusterName][t][p]=null)})}}else l[o.clusterName][t]=null}),l}function S(e,t,n,r,o,s){var a=Array.isArray(e)?[]:{};for(var l in e)if(e.hasOwnProperty(l)){var c=e[l];
2if("paletteColorIndex"===l)a[l]=t>-1?t:null;else if("color"===l)a[l]=t<0?n:null;else if("object"===i(c)&&null!==c){var d;null!==(d=o[l])&&void 0!==d&&d.colorMap?a[l]=u({},w(e,s,r,o[l].colorMap,!0,n)[l]):a[l]=S(c,t,n,r,o,s)}else a[l]=c}return a}function k(e,t,n,r){var o=j(t,n.colors);return S(e,o.index,o.color,t,r,n)}function _(e,t,n,r,o,i){return S(e,r,n,t,i,o)}function O(e,t){return(0,r.fd)(e)?e:t.colors[T(e)]}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ui-controls",r=function(e,t){return e?"object"===i(e)?e.paletteColorIndex?t.colors[e.paletteColorIndex]:e.color||e.primaryColor||null:"string"==typeof e&&e.startsWith("paletteColorIndex:")?O(e,t):e:null}(e,t),o=!!r&&I(r);return"".concat(n,o?"--dark":"--light")}function T(e){return"string"==typeof e&&e.startsWith("paletteColorIndex:")?parseInt(e.split(":")[1],10):-1}function A(e){var t=s(e,3),n=[t[0],t[1],t[2]].map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*n[0]+.7152*n[1]+.0722*n[2]}function E(e,t){var n=A(e)+.05,r=A(t)+.05;return n>r?n/r:r/n}function x(e){if(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}}function P(e){var t=s(e,3);return(299*t[0]+587*t[1]+114*t[2])/1e3/255}function I(e){if(!e)return!1;try{return(0,r.oW)(e).l<.2}catch(e){return!1}}function L(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,o=x(e),i=x(t),s={r:Math.round(o[0]*(1-r)+i[0]*r),g:Math.round(o[1]*(1-r)+i[1]*r),b:Math.round(o[2]*(1-r)+i[2]*r)};return"#"+[(n=s).r,n.g,n.b].map(function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}).join("")}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{default:"contrast"},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,i=x(e);if(!i)return null;var s,l={color:null,index:-1,type:null},c="contrast"===n.default?0:-1/0,u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}([n.default].concat(o(n.fallbacks||[])));try{var d=function(){var n=s.value;return t.forEach(function(t,r){if(t.toLowerCase()!==e.toLowerCase()){var o,s=x(t);if(s)"contrast"===n?o=E(i,s):"vibrant"===n&&(o=function(e,t){return Math.abs(P(e)-P(t))}(i,s)),o>c&&(c=o,l={color:t,index:r,type:n})}}),"contrast"===n&&c>=r?(l.type="contrast",0):l.color?0:void 0};for(u.s();!(s=u.n()).done&&0!==d(););}catch(e){u.e(e)}finally{u.f()}if(!l.color){var p=E(i,[0,0,0]),f=E(i,[255,255,255]);l.color=p>f?"#000000":"#FFFFFF",l.type="fallback"}return l}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,o=new Image;o.crossOrigin="Anonymous",o.src=e,o.onload=function(){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=r,e.height=r,i.fillStyle=t,i.fillRect(0,0,e.width,e.height),i.drawImage(o,0,0,r,r);for(var s=i.getImageData(0,0,r,r).data,a=0,l=0,c=0;c<s.length;c+=4){.299*s[c]+.587*s[c+1]+.114*s[c+2]<128?a++:l++}n(a>l)},o.onerror=function(){console.error("Failed to load image."),n(null)}}function D(e){var t=e.some(function(e){var t;return!(null===(t=e.designSettings)||void 0===t||!t.colors)&&Object.keys(e.designSettings.colors).length>0}),n=!!document.querySelector('style[id^="dynamic-css-vars-for-"]');return t||n}},23492(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dynamic-css-vars",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:":root",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:768,s=document.getElementById(t);if(s&&0===Object.keys(e).length)s.remove();else{s||((s=document.createElement("style")).id=t,document.head.appendChild(s));var a=Object.entries(e).map(function(e){var t=r(e,2),n=t[0],o=t[1];return"".concat(n,": ").concat(o,";")}).join("\n"),l="".concat(n," {\n").concat(a,"\n}");o&&(l="@media (max-width: ".concat(i,"px) {\n").concat(l,"\n}")),s.innerHTML="".concat(l," {\n").concat(a,"\n}")}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dynamic-css-vars",t=document.getElementById(e);t&&t.remove()}n.d(t,{f:()=>i,o:()=>s})},36596(e,t,n){"use strict";var r;n.d(t,{A:()=>o});const o={all:r=r||new Map,on:function(e,t){var n=r.get(e);n?n.push(t):r.set(e,[t])},off:function(e,t){var n=r.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):r.set(e,[]))},emit:function(e,t){var n=r.get(e);n&&n.slice().map(function(e){e(t)}),(n=r.get("*"))&&n.slice().map(function(n){n(e,t)})}}},31096(e,t,n){"use strict";n.d(t,{Nc:()=>l,Tp:()=>a,Ty:()=>s});var r=n(74256),o=n(42349);function i(e){return(0,o.k7)([(0,o.uR)(1,9,12)],function(e){var t;return(null==e||null===(t=e.styleSettings)||void 0===t||null===(t=t.boxAlign)||void 0===t||null===(t=t.split("-"))||void 0===t?void 0:t[0])||"left"}(e))}function s(e){return e?(e.layoutSettings||(e.layoutSettings={modules:i(e),totalColumns:12}),(!Array.isArray(e.layoutSettings.modules)||e.layoutSettings.modules.length<1)&&(e.layoutSettings.modules=i(e)),e.layoutSettings):null}function a(e){var t;return(null===(t=s(e))||void 0===t?void 0:t.modules)||[]}function l(e){return a(e).filter(function(e){return(null==e?void 0:e.type)!==r.jB.SPACER})}},76655(e,t,n){"use strict";function r(e){var t=Number.isFinite(null==e?void 0:e.rowStart)?e.rowStart:null,n=Number.isFinite(null==e?void 0:e.rowEnd)?e.rowEnd:null;return null==t&&null==n?{rowStart:null,rowEnd:null}:null!=t&&null!=n?{rowStart:t,rowEnd:n}:null!=t?{rowStart:t,rowEnd:t+1}:{rowStart:Math.max(1,n-1),rowEnd:n}}n.d(t,{f:()=>r})},97404(e,t,n){"use strict";n.d(t,{Sw:()=>o});var r=[/\/example_project_images\/logo-wall\/logo-[^/]+$/i,/\/example_project_images\/logo-[^/]+$/i];function o(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t&&((n=null==e?void 0:e.url)&&r.some(function(e){return e.test(function(e){return e.split(/[?#]/)[0]}(n))}))?function(e){return!e||/-white\.[^/.?#]+([?#].*)?$/i.test(e)?e:e.replace(/(\.[^/.?#]+)([?#].*)?$/i,"-white$1$2")}(e.url):(null==e?void 0:e.croppedImageUrl)||(null==e?void 0:e.url)||o}},70878(e,t,n){"use strict";n.d(t,{l:()=>s,t:()=>i});var r=new Map,o=new Set;function i(e,t,n){if(!e||!t)return function(){};var i=function(e){return r.has(e)||r.set(e,new Map),r.get(e)}(e);return i.set(t,n),function(){var n=r.get(e);n&&(n.delete(t),n.size||(r.delete(e),o.delete(e)))}}function s(e){var t;if(!e||o.has(e))return!1;var n=Array.from((null===(t=r.get(e))||void 0===t?void 0:t.values())||[]).filter(function(e){return e.isEligible()}).sort(function(e,t){return e.getPriority()-t.getPriority()}),i=n[0];return!!i&&(o.add(e),i.play(),!0)}},5729(e,t,n){"use strict";n.d(t,{r:()=>l});var r=n(65498),o=n(74256);function i(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,i){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,a=e,p.n=n,l}};function f(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,a=h;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,a)):p.n=a:p.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?a:n.call(r,p))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(s(t={},r,function(){return this}),t),f=d.prototype=c.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,s(f,"constructor",d),s(d,"constructor",u),u.displayName="GeneratorFunction",s(d,o,"GeneratorFunction"),s(f),s(f,o,"Generator"),s(f,r,function(){return this}),s(f,"toString",function(){return"[object Generator]"}),(i=function(){return{w:a,m:h}})()}function s(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,n,r){function i(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},s(e,t,n,r)}function a(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return c.apply(this,arguments)}function c(){var e;return e=i().m(function e(t){var n,s,a,l,c,u,d,p,f,h,m,v,g,y,b,w,S,k,_,O=arguments;return i().w(function(e){for(;;)switch(e.n){case 0:s=(n=O.length>1&&void 0!==O[1]?O[1]:{}).pollInterval,a=void 0===s?2e3:s,l=n.maxAttempts,c=void 0===l?90:l,u=n.failureMessage,d=void 0===u?"Job failed.":u,p=n.timeoutMessage,f=void 0===p?"Job timed out.":p,h=n.resolveWithPayload,m=void 0!==h&&h,v=n.shouldCancel,g=n.cancelResult,y=void 0===g?null:g,b=0;case 1:if(!(b<c)){e.n=8;break}if(null==v||!v()){e.n=2;break}return e.a(2,y);case 2:return e.n=3,r.A.get("/api/jobs/status/".concat(t));case 3:if(w=e.v,S=null==w?void 0:w.data,(k=null==S?void 0:S.status)!==o.NW.COMPLETED){e.n=5;break}if(!m){e.n=4;break}return e.a(2,S);case 4:return e.a(2,null!==(_=null==S?void 0:S.result)&&void 0!==_?_:null);case 5:if(k!==o.NW.FAILED&&k!==o.NW.NOT_FOUND){e.n=6;break}throw new Error((null==S?void 0:S.error)||d);case 6:return e.n=7,new Promise(function(e){return setTimeout(e,a)});case 7:b++,e.n=1;break;case 8:throw new Error(f);case 9:return e.a(2)}},e)}),c=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)})},c.apply(this,arguments)}},77745(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t=e.caseStudies,n=void 0===t?[]:t,o=e.currentId,i=(n||[]).filter(function(e){return!(null!=e&&e.draft||null!=e&&e.deletedAt)});if(!i.length)return[];var s=r(i).sort(function(e,t){var n,r,o=null!==(n=null==e?void 0:e.order)&&void 0!==n?n:Number.MAX_SAFE_INTEGER,i=null!==(r=null==t?void 0:t.order)&&void 0!==r?r:Number.MAX_SAFE_INTEGER;return o!==i?o-i:((null==e?void 0:e.name)||"").localeCompare((null==t?void 0:t.name)||"")});if(!o)return s.slice(0,3);var a=s.findIndex(function(e){return(null==e?void 0:e.shortId)===o});if(-1===a)return s.slice(0,3);for(var l=Math.min(3,Math.max(0,s.length-1)),c=[],u=1;u<=l;u+=1)c.push(s[(a+u)%s.length]);return c}n.d(t,{j:()=>i})},96937(e,t,n){"use strict";n.d(t,{$4:()=>o,Po:()=>r});var r=600;function o(e){var t=e.rail,n=e.textElement,o=e.maxHeight,l=void 0===o?r:o,c=e.minViewportWidth,u=void 0===c?1024:c;if("undefined"==typeof window)return l;if(window.innerWidth<u)return null;if(!t||!n)return l;var d=t.getBoundingClientRect(),p=window.getComputedStyle(t),f=parseFloat(p.paddingTop)||0,h=parseFloat(p.paddingBottom)||
20,m=d.height-f-h-function(e){var t=e.closest(".col"),n=e.closest(".ufo-sec--hero");if(!t||!n)return 0;var r=i(t,n);if(!r)return 0;var o=s(n),l=a(n),c=Math.max(0,o.length-1)*l;return o.filter(function(e){return e!==r}).reduce(function(e,t){return e+t.getBoundingClientRect().height},0)+c}(n)-function(e){var t=e.closest(".col"),n=e.closest(".ufo-sec--hero"),r=t&&n?i(t,n):null;if(!t||!r||t===r)return 0;var o=s(r),l=a(r),c=Math.max(0,o.length-1)*l;return o.filter(function(e){return e!==t}).reduce(function(e,t){return e+t.getBoundingClientRect().height},0)+c}(n)-function(e){var t=e.closest(".col");return t?Array.from(t.querySelectorAll(".actions-row, .navbar-inline")).reduce(function(e,t){return e+t.getBoundingClientRect().height},0):0}(n);return Math.max(0,Math.min(l,Math.floor(m)))}function i(e,t){for(var n,r=e;null!==(o=r)&&void 0!==o&&o.parentElement&&r.parentElement!==t;){var o;r=r.parentElement}return(null===(n=r)||void 0===n?void 0:n.parentElement)===t?r:null}function s(e){return Array.from(e.children).filter(function(e){return e.getBoundingClientRect().height>0})}function a(e){var t=window.getComputedStyle(e);return parseFloat(t.rowGap||t.gap)||0}},66187(e,t,n){"use strict";n.d(t,{F2:()=>a,NW:()=>u,X2:()=>l,a_:()=>p,yC:()=>c});var r=n(74256),o={"1_1":6,"3_4":4,"9_16":4},i=new Set(["Mobile","Tablet"]),s=new Set(["Laptop","Desktop","Monitor"]);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.filter(function(e){return(null==e?void 0:e.type)!==r.jB.SPACER}):[]}function l(e,t){return a(e).some(function(e){return e.type===t})}function c(e){var t,n=a(e);return 1===n.length&&(null===(t=n[0])||void 0===t?void 0:t.type)===r.jB.TEXT}function u(e,t){var n;if(c(t))return 12;var r=null==e||null===(n=e.media)||void 0===n||null===(n=n.mockupSettings)||void 0===n?void 0:n.deviceType;return i.has(r)?8:s.has(r)?10:12}function d(e,t){var n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"16_9",c=a(t),u=l(c,r.jB.MEDIA),d=l(c,r.jB.TEXT);if(!u||d)return null;var p=null==e||null===(n=e.media)||void 0===n||null===(n=n.mockupSettings)||void 0===n?void 0:n.deviceType;return p?i.has(p)?6:8:function(){return o[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"16_9"]||8}(s)}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"16_9",o=function(e,t){var n,o=a(t),c=l(o,r.jB.MEDIA),u=l(o,r.jB.TEXT);if(!c||!u)return null;var d=null==e||null===(n=e.media)||void 0===n||null===(n=n.mockupSettings)||void 0===n?void 0:n.deviceType;return i.has(d)?{gridColumn:"2 / span 10"}:s.has(d)?{gridColumn:"1 / span 12"}:null}(e,t);if(o)return o;var c=d(e,t,n);if(!c)return null;var u=Math.floor((12-c)/2)+1;return{gridColumn:"".concat(u," / span ").concat(c)}}},32944(e,t,n){"use strict";n.d(t,{$P:()=>c,Fq:()=>i,GR:()=>r,Lg:()=>l,YE:()=>o,Z$:()=>d,bI:()=>u,ee:()=>a,lB:()=>p});var r={titles:[12,14,16,18,20,24,28,32,40,48,56,64,80,96,112],headings:[12,14,16,18,20,24,28,32,40,48,56,64,80,96],caseStudyHeroTitle:[12,14,16,18,20,24,28,32,40],paragraphs:[12,14,16,18,20,24]},o={Sidebar:{heroTitle:32,heroSubtitle:24,projectTitle:22,h1:32,h2:28,h3:24,h4:20,heroParagraph:16,projectSubtitle:14,p1:14,p2:12,navigation:14,button:14,secondaryButton:12,label:12,pageTitle:32},Small:{heroTitle:45,heroSubtitle:32,projectTitle:22,h1:32,h2:28,h3:24,h4:20,heroParagraph:18,projectSubtitle:14,p1:14,p2:12,navigation:14,button:14,secondaryButton:12,label:12,pageTitle:32},Medium:{heroTitle:60,heroSubtitle:44,projectTitle:24,h1:44,h2:36,h3:28,h4:24,heroParagraph:20,projectSubtitle:16,p1:16,p2:14,navigation:16,button:16,secondaryButton:14,label:14,pageTitle:44},Large:{heroTitle:80,heroSubtitle:56,projectTitle:32,h1:56,h2:44,h3:36,h4:28,heroParagraph:22,projectSubtitle:18,p1:18,p2:16,navigation:18,button:18,secondaryButton:16,label:16,pageTitle:56},Huge:{heroTitle:112,heroSubtitle:72,projectTitle:40,h1:72,h2:56,h3:40,h4:32}},i={heroTitle:"headline",heroSubtitle:"headline",heroParagraph:"text",h1:"headline",h2:"headline",h3:"headline",h4:"headline",p1:"text",p2:"text",projectTitle:"headline",projectSubtitle:"text",navigation:"text",button:"text",secondaryButton:"text",label:"text"},s=["button","secondaryButton"];function a(e){return s.includes(e)}var l={heroTitle:{FONT:"HEADING",WEIGHT:"HEADING"},heroSubtitle:{FONT:"HEADING",WEIGHT:"HEADING"},heroParagraph:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"PARAGRAPH"},h1:{FONT:"HEADING",WEIGHT:"HEADING"},h2:{FONT:"HEADING",WEIGHT:"HEADING"},h3:{FONT:"HEADING",WEIGHT:"HEADING"},h4:{FONT:"HEADING",WEIGHT:"HEADING"},p1:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"PARAGRAPH"},p2:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"PARAGRAPH"},projectTitle:{FONT:"HEADING",WEIGHT:"HEADING"},projectSubtitle:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"PARAGRAPH"},navigation:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"NAVIGATION"},button:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"BUTTON"},secondaryButton:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"BUTTON"},label:{FONT:"PARAGRAPH_AND_NAV",WEIGHT:"BUTTON"}};function c(e){switch(e){case 100:case"100":return"thin";case 200:case"200":return"extra light";case 300:case"300":return"light";case 400:case"400":case"normal":return"regular";case 500:case"500":return"medium";case 600:case"600":case"semi bold":case"semibold":return"semibold";case 700:case"700":case"bold":case 800:case"800":case"extra bold":case 900:case"900":case"black":return"bold";default:return e.toUpperCase()}}function u(e){switch(e){case"light":case"light italic":return"300";case"regular":case"regular light":return"400";
2case"medium":case"medium italic":return"500";case"semibold":case"semibold italic":return"600";default:return"700"}}function d(e){switch(e){case"S":return"Small";case"M":return"Medium";case"L":return"Large";default:return"Huge"}}function p(e){switch(e){case"Small":return"S";case"Medium":return"M";case"Large":return"L";default:return"XL"}}},1112(e,t,n){"use strict";function r(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var l=this;r&&!o&&(e.apply(l,s),o=!0),clearTimeout(n),n=setTimeout(function(){r||e.apply(l,s),o=!1},t)}}function o(e){var t=e.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+)\;base64,/);return t?t[1]:null}function i(e){switch(e){case"image/jpeg":return".jpg";case"image/png":return".png";case"image/gif":return".gif";case"image/bmp":return".bmp";case"image/webp":return".webp";default:return""}}n.d(t,{gd:()=>i,hH:()=>o,sg:()=>r})},13510(e,t,n){"use strict";n.d(t,{_4:()=>$e});var r=n(97073),o=n(20641),i={class:"uxfolio-app-root"};var s=n(90033),a=n(53751);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=["src"];function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const g={name:"ZoomImage",data:function(){return{imageStyle:{},initialRect:null,finalRect:null,isClosing:!1,waitingForTransition:!1,imageLoaded:!1,PADDING:40}},computed:{zoomData:function(){return this.$store.state.zoomData},inheritedClass:function(){return this.zoomData.imageRef?m(this.zoomData.imageRef.classList):[]},forcedAspectRatio:function(){if(!this.zoomData||!this.zoomData.imageRef)return null;var e=m(this.zoomData.imageRef.classList).find(function(e){return e.startsWith("aspect-ratio-")});if(!e)return null;var t=e.split("-");if(t.length>=3){var n=t[2].split("_");if(2===n.length){var r=Number(n[0]),o=Number(n[1]);if(r&&o)return r/o}}return null}},methods:{computeFinalRect:function(e,t){var n=window.innerWidth,r=window.innerHeight,o=n-2*this.PADDING,i=r-2*this.PADDING,s=this.forcedAspectRatio||e/t,a=this.calculateFinalDimensionsWhilePreserveAspectRatio(o,i,s),l=a.finalWidth,c=a.finalHeight;return{left:(n-l)/2,top:(r-c)/2,width:l,height:c}},calculateFinalDimensionsWhilePreserveAspectRatio:function(e,t,n){var r,o;return e/n<=t?(r=e,o=e/n):(o=t,r=t*n),{finalWidth:r,finalHeight:o}},handleClose:function(){this.isClosing||(this.isClosing=!0,this.waitingForTransition=!0,this.imageStyle=f(f({},this.imageStyle),{},{top:this.initialRect.top+"px",left:this.initialRect.left+"px",width:this.initialRect.width+"px",height:this.initialRect.height+"px"}))}
2,onTransitionEnd:function(e){if(this.isClosing&&["top","left","width","height"].includes(e.propertyName)){if(!this.waitingForTransition)return;this.waitingForTransition=!1,this.$store.commit("resetZoom")}}},mounted:function(){var e=this;if(this.zoomData&&this.zoomData.imageRef){var t=this.zoomData.imageRef.getBoundingClientRect();this.initialRect={top:t.top,left:t.left,width:t.width,height:t.height},this.imageStyle={position:"absolute",top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"};var n=new Image;n.src=this.zoomData.imageUrl,n.onload=function(){e.imageLoaded=!0,e.finalRect=e.computeFinalRect(n.naturalWidth,n.naturalHeight),e.$nextTick(function(){requestAnimationFrame(function(){e.imageStyle=f(f({},e.imageStyle),{},{top:e.finalRect.top+"px",left:e.finalRect.left+"px",width:e.finalRect.width+"px",height:e.finalRect.height+"px"})})})}}}};n(72728);var y=n(66262);const b=(0,y.A)(g,[["render",function(e,t,n,r,i,c){return(0,o.uX)(),(0,o.CE)("div",{class:"zoom-overlay",onClick:t[2]||(t[2]=function(){return c.handleClose&&c.handleClose.apply(c,arguments)})},[(0,o.Lk)("div",{class:(0,s.C4)(["zoom-background",[{active:this.imageLoaded}]])},null,2),(0,o.Lk)("img",{alt:"zoomed-in-image",src:c.zoomData.imageUrl,class:(0,s.C4)(["zoomed-image"].concat(l(c.inheritedClass))),style:(0,s.Tr)(i.imageStyle),onClick:t[0]||(t[0]=(0,a.withModifiers)(function(){return c.handleClose&&c.handleClose.apply(c,arguments)},["stop"])),onTransitionend:t[1]||(t[1]=function(){return c.onTransitionEnd&&c.onTransitionEnd.apply(c,arguments)})},null,46,u)])}],["__scopeId","data-v-5320a764"]]),w=b;var S=n(30009),k=n(74965),_={key:0,class:"auth-status-overlay",role:"status","aria-live":"polite"},O=["src"],C={key:1},T={key:2,class:"auth-status-panel__actions"};var A=n(5412),E=n(73960);const x={name:"auth-status-modal",components:{Cta:A.A},props:{show:{type:Boolean,default:!1},title:{type:String,default:""},message:{type:String,default:""},primaryLabel:{type:String,default:null},secondaryLabel:{type:String,default:null},busy:{type:Boolean,default:!1}},data:function(){return{loaderAnimation:E}},computed:{hasActions:function(){return Boolean(this.primaryLabel||this.secondaryLabel)}},emits:["primary","secondary"]},P=(0,y.A)(x,[["render",function(e,t,n,r,i,l){var c=(0,o.g2)("Cta");return(0,o.uX)(),(0,o.Wv)(a.Transition,{name:"auth-status-fade"},{default:(0,o.k6)(function(){return[n.show?((0,o.uX)(),(0,o.CE)("div",_,[(0,o.Lk)("div",{class:(0,s.C4)(["auth-status-panel",{"auth-status-panel--busy":n.busy}])},[n.busy?((0,o.uX)(),(0,o.CE)("img",{key:0,src:i.loaderAnimation,class:"auth-status-panel__spinner",alt:"","aria-hidden":"true"},null,8,O)):(0,o.Q3)("v-if",!0),!n.busy&&n.title?((0,o.uX)(),(0,o.CE)("h2",C,(0,s.v_)(n.title),1)):(0,o.Q3)("v-if",!0),(0,o.Lk)("p",null,(0,s.v_)(n.message),1),l.hasActions?((0,o.uX)(),(0,o.CE)("div",T,[n.secondaryLabel?((0,o.uX)(),(0,o.Wv)(c,{key:0,"dark-scheme":"",type:"secondary",onClick:t[0]||(t[0]=function(t){return e.$emit("secondary")})},{default:(0,o.k6)(function(){return[(0,o.eW)((0,s.v_)(n.secondaryLabel),1)]}),_:1})):(0,o.Q3)("v-if",!0),n.primaryLabel?((0,o.uX)(),(0,o.Wv)(c,{key:1,"dark-scheme":"",type:"primary",onClick:t[1]||(t[1]=function(t){return e.$emit("primary")})},{default:(0,o.k6)(function(){return[(0,o.eW)((0,s.v_)(n.primaryLabel),1)]}),_:1})):(0,o.Q3)("v-if",!0)])):(0,o.Q3)("v-if",!0)],2)])):(0,o.Q3)("v-if",!0)]}),_:1})}],["__scopeId","data-v-04da3fd8"]]);var I=n(97293),L=n(67208);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N={name:"App",components:{ImageZoom:w,AuthStatusModal:P},data:function(){return{authStatus:{show:!1,title:"",message:"",primaryLabel:null,primaryAction:null,secondaryLabel:null,secondaryAction:null,busy:!1,redirectUri:null},authStatusTimer:null}},setup:function(){var e=(0,k.lq)(),t="https://uxfol.io",n="".concat(t,"/landing-images/og_image.png"),r="".concat(t,"/landing-images/uxfolio-logo.svg"),o="uxfol.io"===window.location.hostname||window.location.hostname.endsWith(".uxfol.io"),i={"/":{title:"UXfolio - Build the UX portfolio that gets you hired",description:"Build your UX portfolio faster with supercharged tools tailored to your needs and hiring managers' expectations."},"/pricing":{title:"Pricing and Plans - UXfolio",description:"Check our our Free and Premium plans and start building your online portfolio today! You can easily switch between UXfolio plans any time."},"/showcase":{title:"UX Case Study Showcase - UXfolio",description:"Need some inspiration? Check out the best case studies created with UXfolio and tell your own design story!"},"/examples":{title:"UXfolio portfolio & case study examples",description:"Explore a curated collection of inspiring portfolio and case study examples crafted by UXfolio users."},"/privacy-policy":{title:"Privacy Policy - UXfolio",description:"Read UXfolioâs privacy policy to understand how we collect, use, protect, and handle your personal information."},"/terms-and-conditions":{title:"Terms and Conditions - UXfolio",description:"Read the UXfolio terms of service, subscription terms, and usage conditions."},"/imprint":{title:"Imprint - UXfolio",description:"Company and contact information for UXfolio."},"/partnership-program/thank-you":{title:"Partnership program - thank you - UXfolio",description:"Thanks for applying to the UXfolio partnership program."},"/custom-ux-portfolio":{title:"UXfolio - Build the UX portfolio that gets you hired",description:"Build your UX portfolio faster with supercharged tools tailored to your needs and hiring managers' expectations."},"/login":{title:"Log in - UXfolio",metaTitle:"Log in to UXfolio",description:"Log in to your UXfolio account to continue building your UX portfolio"},"/signup":{title:"Sign up - UXfolio",metaTitle:"Sign up to UXfolio",description:"Sign up to UXfolio and build the UX portfolio that gets you hired"},"/forgot-password":{title:"Reset password - UXfolio",metaTitle:"Reset your UXfolio password",description:"Reset your UXfolio password to regain access to your UX portfolio"},"/reset-password":{title:"Create new password - UXfolio",metaTitle:"Create a new UXfolio password",description:"Create a new password for your UXfolio account to continue building your UX portfolio"}},s=function(e){return i[e]||null},a=function(e){var n="".concat(t).concat(e),o=s(e),i=o.metaTitle||o.title,a=[];return"/"===e&&(a.push({key:"jsonld-organization",type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"UXfolio",url:t,logo:r,description:o.description})}),a.push({key:"jsonld-website",type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"UXfolio",url:t,description:o.description})})),a.push({key:"jsonld-webpage",type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebPage",name:i,description:o.description,url:n,isPartOf:{"@type":"WebSite",name:"UXfolio",url:t}})}),a};(0,S.u)(function(){var r=["/login","/signup","/forgot-password","/reset-password"].includes(e.path),i=s(e.path);return(o||r)&&i?{title:i.title,meta:[{key:"title",name:"title",content:i.metaTitle||i.title},{key:"description",name:"description",content:i.description},{key:"og:title",property:"og:title",content:i.metaTitle||i.title},{key:"og:description",property:"og:description",content:i.description},{key:"og:image",property:"og:image",content:n},{key:"og:url",property:"og:url",content:"".concat(t).concat(e.path)}],link:[{key:"canonical",rel:"canonical",href:"".concat(t).concat(e.path)}],script:a(e.path)}:{}})},methods:{showAuthStatus:function(e){var t=this;this.authStatusTimer&&(clearTimeout(this.authStatusTimer),this.authStatusTimer=null),this.authStatus={show:!0,title:e.title,message:e.message,primaryLabel:e.primaryLabel||null,primaryAction:e.primaryAction||null,secondaryLabel:e.secondaryLabel||null,secondaryAction:e.secondaryAction||null,busy:Boolean(e.busy),redirectUri:e.redirectUri||window.location.href},"checking_sso"===e.state&&(this.authStatusTimer=setTimeout(function(){t.authStatus=D(D({},t.authStatus),{},{message:"This is taking longer than usual. You can wait a little more, try again, or open the secure login page.",primaryLabel:"Try again",primaryAction:"retry",secondaryLabel:"Open login",secondaryAction:"forceLogin",busy:!1})},8e3))},clearAuthStatus:function(){this.authStatusTimer&&(clearTimeout(this.authStatusTimer),this.authStatusTimer=null),this.authStatus={show:!1,title:"",message:"",primaryLabel:null,primaryAction:null,secondaryLabel:null,secondaryAction:null,busy:!1,redirectUri:null}},showSessionExpired:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.shouldShowSessionExpiredOverlay(e)&&this.showAuthStatus({title:"Session expired",message:"Your session has expired due to inactivity. Please log in again to continue editing.",primaryLabel:"Log in again",primaryAction:"login",secondaryLabel:"Go to homepage",secondaryAction:"goHome",redirectUri:window.location.href})},shouldShowSessionExpiredOverlay:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,I.OH)(t.url))return!1;var n=(null===(e=this.$route)||void 0===e?void 0:e.path)||window.location.pathname;return(0,L.f1)(n)||(0,L.RR)(n)},showPermissionDenied:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.showAuthStatus({title:e.title||"Access not available",message:e.message||"You are signed in, but this account does not have access to that area.",primaryLabel:e.primaryLabel||"Go to homepage",primaryAction:e.primaryAction||"goHome",secondaryLabel:e.secondaryLabel||"Use another account",secondaryAction:e.secondaryAction||"retryLogout",redirectUri:e.redirectUri||window.location.origin})},handleAuthStatusAction:function(e){if("retry"!==e)return"forceLogin"===e?(0,L.Rf)(this.authStatus.redirectUri||window.location.href,{skipSessionCheck:!0}):"login"===e?(0,L.Rf)(this.authStatus.redirectUri||window.location.href):"retryLogout"===e?(0,L.ri)(window.location.origin):void("goHome"!==e?"goToRedirectUri"!==e?this.clearAuthStatus():window.location.assign(this.authStatus.redirectUri||window.location.origin):window.location.assign(window.location.origin));window.location.reload()}},mounted:function(){var e=this;this._keyListener=function(e){"KeyG"===e.code&&e.shiftKey&&e.ctrlKey&&(e.preventDefault(),this.$store.state.displayToggleGrid=!this.$store.state.displayToggleGrid)},this._boundKeyListener=this._keyListener.bind(this),document.addEventListener("keydown",this._boundKeyListener),this._authStatusListener=function(t){return e.showAuthStatus(t.detail||{})},this._authStatusClearListener=function(){return e.clearAuthStatus()},this._sessionExpiredListener=function(t){return e.showSessionExpired(t.detail||{})},this._permissionDeniedListener=function(t){return e.showPermissionDenied(t.detail||{})},window.addEventListener(I.lE,this._authStatusListener),window.addEventListener(I.JF,this._authStatusClearListener),window.addEventListener(I.W3,this._sessionExpiredListener),window.addEventListener(I.NJ,this._permissionDeniedListener),window.__uxfolioAuthStatus&&this.showAuthStatus(window.__uxfolioAuthStatus)},beforeUnmount:function(){document.removeEventListener("keydown",this._boundKeyListener),window.removeEventListener(I.lE,this._authStatusListener),window.removeEventListener(I.JF,this._authStatusClearListener),window.removeEventListener(I.W3,this._sessionExpiredListener),window.removeEventListener(I.NJ,this._permissionDeniedListener),this.clearAuthStatus()}},F=(0,y.A)(N,[["render",function(e,t,n,r,s,a){var l=(0,o.g2)("RouterView"),c=(0,o.g2)("ImageZoom"),u=(0,o.g2)("AuthStatusModal");return(0,o.uX)(),(0,o.CE)("div",i,[(0,o.bF)(l,null,{default:(0,o.k6)(function(e){var t=e.Component;return[((0,o.uX)(),(0,o.Wv)((0,o.$y)(t)))]}),_:1}),e.$store.state.zoomData.isZoomed?((0,o.uX)(),(0,o.Wv)(c,{key:0})):(0,o.Q3)("v-if",!0),(0,o.bF)(u,{show:s.authStatus.show,title:s.authStatus.title,message:s.authStatus.message,"primary-label":s.authStatus.primaryLabel,"secondary-label":s.authStatus.secondaryLabel,busy:s.authStatus.busy,onPrimary:t[0]||(t[0]=function(e){return a.handleAuthStatusAction(s.authStatus.primaryAction)}),onSecondary:t[1]||(t[1]=function(e){return a.handleAuthStatusAction(s.authStatus.secondaryAction)})},null,8,["show","title","message","primary-label","secondary-label","busy"])])}],["__scopeId","data-v-3953ad32"]]);var B=n(90157),U=n(81659),H=n(805),$=n(33501),z=n(71083),W=function e(){var t=[].slice.call(arguments),n=!1;"boolean"==typeof t[0]&&(n=t.shift());var r=t[0];if(X(r))throw new Error("extendee must be an object");for(var o=t.slice(1),i=o.length,s=0;s<i;s++){var a=o[s];for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var c=a[l];if(n&&G(c)){var u=Array.isArray(c)?[]:{};r[l]=e(!0,Object.prototype.hasOwnProperty.call(r,l)&&!X(r[l])?r[l]:u,c)}else r[l]=c}}return r};function G(e){return Array.isArray(e)||"[object Object]"=={}.toString.call(e)}function X(e){return!e||"object"!=typeof e&&"function"!=typeof e}
2function V(e){return e&&e.__esModule?e.default:e}class K{on(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}emit(e,...t){this._callbacks=this._callbacks||{};let n=this._callbacks[e];if(n)for(let e of n)e.apply(this,t);return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+e,{args:t})),this}makeEvent(e,t){let n={bubbles:!0,cancelable:!0,detail:t};if("function"==typeof window.CustomEvent)return new CustomEvent(e,n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}off(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;let n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(let e=0;e<n.length;e++){if(n[e]===t){n.splice(e,1);break}}return this}}var q={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2097152,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,defaultHeaders:!0,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init(){},params(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:(e,t)=>t(),chunksUploaded:function(e,t){t()},binaryBody:!1,fallback(){let e;this.element.className=`${this.element.className} dz-browser-not-supported`;for(let t of this.element.getElementsByTagName("div"))if(/(^| )dz-message($| )/.test(t.className)){e=t,t.className="dz-message";break}e||(e=Y.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));let t=e.getElementsByTagName("span")[0];return t&&(null!=t.textContent?t.textContent=this.options.dictFallbackMessage:null!=t.innerText&&(t.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize(e,t,n,r){let o={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height;null==t&&null==n?(t=o.srcWidth,n=o.srcHeight):null==t?t=n*i:null==n&&(n=t/i);let s=(t=Math.min(t,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>t||o.srcHeight>n)if("crop"===r)i>s?(o.srcHeight=e.height,o.srcWidth=o.srcHeight*s):(o.srcWidth=e.width,o.srcHeight=o.srcWidth/s);else{if("contain"!==r)throw new Error(`Unknown resizeMethod '${r}'`);i>s?n=t/i:t=n*i}return o.srcX=(e.width-o.srcWidth)/2,o.srcY=(e.height-o.srcHeight)/2,o.trgWidth=t,o.trgHeight=n,o},transformFile(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:V('<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail=""></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size=""></span></div>\n <div class="dz-filename"><span data-dz-name=""></span></div>\n </div>\n <div class="dz-progress">\n <span class="dz-upload" data-dz-uploadprogress=""></span>\n </div>\n <div class="dz-error-message"><span data-dz-errormessage=""></span></div>\n <div class="dz-success-mark">\n <svg width="54" height="54" viewBox="0 0 54 54" fill="white" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2071 29.7929L14.2929 25.7071C14.6834 25.3166 15.3166 25.3166 15.7071 25.7071L21.2929 31.2929C21.6834 31.6834 22.3166 31.6834 22.7071 31.2929L38.2929 15.7071C38.6834 15.3166 39.3166 15.3166 39.7071 15.7071L43.7929 19.7929C44.1834 20.1834 44.1834 20.8166 43.7929 21.2071L22.7071 42.2929C22.3166 42.6834 21.6834 42.6834 21.2929 42.2929L10.2071 31.2071C9.81658 30.8166 9.81658 30.1834 10.2071 29.7929Z"></path>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54" height="54" viewBox="0 0 54 54" fill="white" xmlns="http://www.w3.org/2000/svg">\n <path d="M26.2929 20.2929L19.2071 13.2071C18.8166 12.8166 18.1834 12.8166 17.7929 13.2071L13.2071 17.7929C12.8166 18.1834 12.8166 18.8166 13.2071 19.2071L20.2929 26.2929C20.6834 26.6834 20.6834 27.3166 20.2929 27.7071L13.2071 34.7929C12.8166 35.1834 12.8166 35.8166 13.2071 36.2071L17.7929 40.7929C18.1834 41.1834 18.8166 41.1834 19.2071 40.7929L26.2929 33.7071C26.6834 33.3166 27.3166 33.3166 27.7071 33.7071L34.7929 40.7929C35.1834 41.1834 35.8166 41.1834 36.2071 40.7929L40.7929 36.2071C41.1834 35.8166 41.1834 35.1834 40.7929 34.7929L33.7071 27.7071C33.3166 27.3166 33.3166 26.6834 33.7071 26.2929L40.7929 19.2071C41.1834 18.8166 41.1834 18.1834 40.7929 17.7929L36.2071 13.2071C35.8166 12.8166 35.1834 12.8166 34.7929 13.2071L27.7071 20.2929C27.3166 20.6834 26.6834 20.6834 26.2929 20.2929Z"></path>\n </svg>\n </div>\n</div>\n'),drop(e){return this.element.classList.remove("dz-drag-hover")},dragstart(e){},dragend(e){return this.element.classList.remove("dz-drag-hover")},dragenter(e){return this.element.classList.add("dz-drag-hover")},dragover(e){return this.element.classList.add("dz-drag-hover")},dragleave(e){return this.element.classList.remove("dz-drag-hover")},paste(e){},reset(){return this.element.classList.remove("dz-started")},addedfile(e){if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){for(var t of(e.previewElement=Y.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),e.previewElement.querySelectorAll("[data-dz-name]")))t.textContent=e.name;for(t of e.previewElement.querySelectorAll("[data-dz-size]"))t.innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=Y.createElement(`<a class="dz-remove" href="javascript:undefined;" data-dz-remove>${this.options.dictRemoveFile}</a>`),e.previewElement.appendChild(e._removeLink));let n=t=>(t.preventDefault(),t.stopPropagation(),e.status===Y.UPLOADING?Y.confirm(this.options.dictCancelUploadConfirmation,()=>this.removeFile(e)):this.options.dictRemoveFileConfirmation?Y.confirm(this.options.dictRemoveFileConfirmation,()=>this.removeFile(e)):this.removeFile(e));for(let t of e.previewElement.querySelectorAll("[data-dz-remove]"))t.addEventListener("click",n)}},removedfile(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(let n of e.previewElement.querySelectorAll("[data-dz-thumbnail]"))n.alt=e.name,n.src=t;return setTimeout(()=>e.previewElement.classList.add("dz-image-preview"),1)}},error(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"string"!=typeof t&&t.error&&(t=t.error);for(let n of e.previewElement.querySelectorAll("[data-dz-errormessage]"))n.textContent=t}},errormultiple(){},processing(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple(){},uploadprogress(e,t,n){if(e.previewElement)for(let n of e.previewElement.querySelectorAll("[data-dz-uploadprogress]"))"PROGRESS"===n.nodeName?n.value=t:n.style.width=`${t}%`},totaluploadprogress(){},sending(){},sendingmultiple(){},success(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple(){}
2,canceled(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple(){},complete(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple(){},maxfilesexceeded(){},maxfilesreached(){},queuecomplete(){},addedfiles(){}};class Y extends K{static initClass(){this.prototype.Emitter=K,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}getAcceptedFiles(){return this.files.filter(e=>e.accepted).map(e=>e)}getRejectedFiles(){return this.files.filter(e=>!e.accepted).map(e=>e)}getFilesWithStatus(e){return this.files.filter(t=>t.status===e).map(e=>e)}getQueuedFiles(){return this.getFilesWithStatus(Y.QUEUED)}getUploadingFiles(){return this.getFilesWithStatus(Y.UPLOADING)}getAddedFiles(){return this.getFilesWithStatus(Y.ADDED)}getActiveFiles(){return this.files.filter(e=>e.status===Y.UPLOADING||e.status===Y.QUEUED).map(e=>e)}init(){if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(Y.createElement(`<div class="dz-default dz-message"><button class="dz-button" type="button">${this.options.dictDefaultMessage}</button></div>`)),this.clickableElements.length){let e=()=>{this.hiddenFileInput&&this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=document.createElement("input"),this.hiddenFileInput.setAttribute("type","file"),(null===this.options.maxFiles||this.options.maxFiles>1)&&this.hiddenFileInput.setAttribute("multiple","multiple"),this.hiddenFileInput.className="dz-hidden-input",null!==this.options.acceptedFiles&&this.hiddenFileInput.setAttribute("accept",this.options.acceptedFiles),null!==this.options.capture&&this.hiddenFileInput.setAttribute("capture",this.options.capture),this.hiddenFileInput.setAttribute("tabindex","-1"),this.hiddenFileInput.style.visibility="hidden",this.hiddenFileInput.style.position="absolute",this.hiddenFileInput.style.top="0",this.hiddenFileInput.style.left="0",this.hiddenFileInput.style.height="0",this.hiddenFileInput.style.width="0",Y.getElement(this.options.hiddenInputContainer,"hiddenInputContainer").appendChild(this.hiddenFileInput),this.hiddenFileInput.addEventListener("change",()=>{let{files:t}=this.hiddenFileInput;if(t.length)for(let e of t)this.addFile(e);this.emit("addedfiles",t),e()})};e()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(let e of this.events)this.on(e,this.options[e]);this.on("uploadprogress",()=>this.updateTotalUploadProgress()),this.on("removedfile",()=>this.updateTotalUploadProgress()),this.on("canceled",e=>this.emit("complete",e)),this.on("complete",e=>{if(0===this.getAddedFiles().length&&0===this.getUploadingFiles().length&&0===this.getQueuedFiles().length)return setTimeout(()=>
2this.emit("queuecomplete"),0)});let e=function(e){if(function(e){if(e.dataTransfer.types)for(var t=0;t<e.dataTransfer.types.length;t++)if("Files"===e.dataTransfer.types[t])return!0;return!1}(e))return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:e=>this.emit("dragstart",e),dragenter:t=>(e(t),this.emit("dragenter",t)),dragover:t=>{let n;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",e(t),this.emit("dragover",t)},dragleave:e=>this.emit("dragleave",e),drop:t=>(e(t),this.drop(t)),dragend:e=>this.emit("dragend",e)}}],this.clickableElements.forEach(e=>this.listeners.push({element:e,events:{click:t=>((e!==this.element||t.target===this.element||Y.elementInside(t.target,this.element.querySelector(".dz-message")))&&this.hiddenFileInput.click(),!0)}})),this.enable(),this.options.init.call(this)}destroy(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,Y.instances.splice(Y.instances.indexOf(this),1)}updateTotalUploadProgress(){let e,t=0,n=0;if(this.getActiveFiles().length){for(let e of this.getActiveFiles())t+=e.upload.bytesSent,n+=e.upload.total;e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}_getParamName(e){return"function"==typeof this.options.paramName?this.options.paramName(e):`${this.options.paramName}${this.options.uploadMultiple?`[${e}]`:""}`}_renameFile(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}getFallbackForm(){let e,t;if(e=this.getExistingFallback())return e;let n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+=`<p>${this.options.dictFallbackText}</p>`),n+=`<input type="file" name="${this._getParamName(0)}" ${this.options.uploadMultiple?'multiple="multiple"':void 0} /><input type="submit" value="Upload!"></div>`;let r=Y.createElement(n);return"FORM"!==this.element.tagName?(t=Y.createElement(`<form action="${this.options.url}" enctype="multipart/form-data" method="${this.options.method}"></form>`),t.appendChild(r)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}getExistingFallback(){let e=function(e){for(let t of e)if(/(^| )fallback($| )/.test(t.className))return t};for(let n of["div","form"]){var t;if(t=e(this.element.getElementsByTagName(n)))return t}}setupEventListeners(){return this.listeners.map(e=>(()=>{let t=[];for(let n in e.events){let r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t})())}removeEventListeners(){return this.listeners.map(e=>(()=>{let t=[];for(let n in e.events){let r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t})())}disable(){return this.clickableElements.forEach(e=>e.classList.remove("dz-clickable")),this.removeEventListeners(),this.disabled=!0,this.files.map(e=>this.cancelUpload(e))}enable(){return delete this.disabled,this.clickableElements.forEach(e=>e.classList.add("dz-clickable")),this.setupEventListeners()}filesize(e){let t=0,n="b";if(e>0){let r=["tb","gb","mb","kb","b"];for(let o=0;o<r.length;o++){let i=r[o];if(e>=Math.pow(this.options.filesizeBase,4-o)/10){t=e/Math.pow(this.options.filesizeBase,4-o),n=i;break}}t=Math.round(10*t)/10}return`<strong>${t}</strong> ${this.options.dictFileSizeUnits[n]}`}_updateMaxFilesReachedClass(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}drop(e){if(!e.dataTransfer)return;this.emit("drop",e);let t=[];for(let n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(t.length){let{items:n}=e.dataTransfer;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)}
2this.emit("addedfiles",t)}paste(e){if(null==(t=null!=e?e.clipboardData:void 0,n=e=>e.items,null!=t?n(t):void 0))return;var t,n;this.emit("paste",e);let{items:r}=e.clipboardData;return r.length?this._addFilesFromItems(r):void 0}handleFiles(e){for(let t of e)this.addFile(t)}_addFilesFromItems(e){return(()=>{let t=[];for(let r of e){var n;null!=r.webkitGetAsEntry&&(n=r.webkitGetAsEntry())?n.isFile?t.push(this.addFile(r.getAsFile())):n.isDirectory?t.push(this._addFilesFromDirectory(n,n.name)):t.push(void 0):null!=r.getAsFile&&(null==r.kind||"file"===r.kind)?t.push(this.addFile(r.getAsFile())):t.push(void 0)}return t})()}_addFilesFromDirectory(e,t){let n=e.createReader(),r=e=>{return t=console,n="log",r=t=>t.log(e),null!=t&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};var o=()=>n.readEntries(e=>{if(e.length>0){for(let n of e)n.isFile?n.file(e=>{if(!this.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=`${t}/${e.name}`,this.addFile(e)}):n.isDirectory&&this._addFilesFromDirectory(n,`${t}/${n.name}`);o()}return null},r);return o()}accept(e,t){this.options.maxFilesize&&e.size>1048576*this.options.maxFilesize?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):Y.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}addFile(e){e.upload={uuid:Y.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=Y.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,t=>{t?(e.accepted=!1,this._errorProcessing([e],t)):(e.accepted=!0,this.options.autoQueue&&this.enqueueFile(e)),this._updateMaxFilesReachedClass()})}enqueueFiles(e){for(let t of e)this.enqueueFile(t);return null}enqueueFile(e){if(e.status!==Y.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=Y.QUEUED,this.options.autoProcessQueue)return setTimeout(()=>this.processQueue(),0)}_enqueueThumbnail(e){if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1048576*this.options.maxThumbnailFilesize)return this._thumbnailQueue.push(e),setTimeout(()=>this._processThumbnailQueue(),0)}_processThumbnailQueue(){if(this._processingThumbnail||0===this._thumbnailQueue.length)return;this._processingThumbnail=!0;let e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,t=>(this.emit("thumbnail",e,t),this._processingThumbnail=!1,this._processThumbnailQueue()))}removeFile(e){if(e.status===Y.UPLOADING&&this.cancelUpload(e),this.files=Q(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}removeAllFiles(e){null==e&&(e=!1);for(let t of this.files.slice())(t.status!==Y.UPLOADING||e)&&this.removeFile(t);return null}resizeImage(e,t,n,r,o){return this.createThumbnail(e,t,n,r,!0,(t,n)=>{if(null==n)return o(e);{let{resizeMimeType:t}=this.options;null==t&&(t=e.type);let r=n.toDataURL(t,this.options.resizeQuality);return"image/jpeg"!==t&&"image/jpg"!==t||(r=ee.restore(e.dataURL,r)),o(Y.dataURItoBlob(r))}})}createThumbnail(e,t,n,r,o,i){let s=new FileReader;s.onload=()=>{e.dataURL=s.result,"image/svg+xml"!==e.type?this.createThumbnailFromUrl(e,t,n,r,o,i):null!=i&&i(s.result)},s.readAsDataURL(e)}displayExistingFile(e,t,n,r,o=!0){if(this.emit("addedfile",e),this.emit("complete",e),o){let o=t=>{this.emit("thumbnail",e,t),n&&n()};e.dataURL=t,this.createThumbnailFromUrl(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,o,r)}else this.emit("thumbnail",e,t),n&&n()}createThumbnailFromUrl(e,t,n,r,o,i,s){let a=document.createElement("img");return s&&(a.crossOrigin=s),o="from-image"!=getComputedStyle(document.body).imageOrientation&&o,a.onload=()=>{let s=e=>e(1);return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(s=e=>EXIF.getData(a,function(){return e(EXIF.getTag(this,"Orientation"))})),s(o=>{e.width=a.width,e.height=a.height;let s=this.options.resize.call(this,e,t,n,r),l=document.createElement("canvas"),c=l.getContext("2d");switch(l.width=s.trgWidth,l.height=s.trgHeight,o>4&&(l.width=s.trgHeight,l.height=s.trgWidth),o){case 2:c.translate(l.width,0),c.scale(-1,1);break;case 3:c.translate(l.width,l.height),c.rotate(Math.PI);break;case 4:c.translate(0,l.height),c.scale(1,-1);break;case 5:c.rotate(.5*Math.PI),c.scale(1,-1);break;case 6:c.rotate(.5*Math.PI),c.translate(0,-l.width);break;case 7:c.rotate(.5*Math.PI),c.translate(l.height,-l.width),c.scale(-1,1);break;case 8:c.rotate(-.5*Math.PI),c.translate(-l.height,0)}Z(c,a,null!=s.srcX?s.srcX:0,null!=s.srcY?s.srcY:0,s.srcWidth,s.srcHeight,null!=s.trgX?s.trgX:0,null!=s.trgY?s.trgY:0,s.trgWidth,s.trgHeight);let u=l.toDataURL("image/png");if(null!=i)return i(u,l)})},null!=i&&(a.onerror=i),a.src=e.dataURL}processQueue(){let{parallelUploads:e}=this.options,t=this.getUploadingFiles().length,n=t;if(t>=e)return;let r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}processFile(e){return this.processFiles([e])}processFiles(e){for(let t of e)t.processing=!0,t.status=Y.UPLOADING,this.emit
2("processing",t);return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}_getFilesWithXhr(e){return this.files.filter(t=>t.xhr===e).map(e=>e)}cancelUpload(e){if(e.status===Y.UPLOADING){let t=this._getFilesWithXhr(e.xhr);for(let e of t)e.status=Y.CANCELED;void 0!==e.xhr&&e.xhr.abort();for(let e of t)this.emit("canceled",e);this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==Y.ADDED&&e.status!==Y.QUEUED||(e.status=Y.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}resolveOption(e,...t){return"function"==typeof e?e.apply(this,t):e}uploadFile(e){return this.uploadFiles([e])}uploadFiles(e){this._transformFiles(e,t=>{if(this.options.chunking){let n=t[0];e[0].upload.chunked=this.options.chunking&&(this.options.forceChunking||n.size>this.options.chunkSize),e[0].upload.totalChunkCount=Math.ceil(n.size/this.options.chunkSize)}if(e[0].upload.chunked){let n=e[0],r=t[0],o=0;n.upload.chunks=[];let i=()=>{let t=0;for(;void 0!==n.upload.chunks[t];)t++;if(t>=n.upload.totalChunkCount)return;o++;let i=t*this.options.chunkSize,s=Math.min(i+this.options.chunkSize,r.size),a={name:this._getParamName(0),data:r.webkitSlice?r.webkitSlice(i,s):r.slice(i,s),filename:n.upload.filename,chunkIndex:t};n.upload.chunks[t]={file:n,index:t,dataBlock:a,status:Y.UPLOADING,progress:0,retries:0},this._uploadData(e,[a])};if(n.upload.finishedChunkUpload=(t,r)=>{let o=!0;t.status=Y.SUCCESS,t.dataBlock=null,t.response=t.xhr.responseText,t.responseHeaders=t.xhr.getAllResponseHeaders(),t.xhr=null;for(let e=0;e<n.upload.totalChunkCount;e++){if(void 0===n.upload.chunks[e])return i();n.upload.chunks[e].status!==Y.SUCCESS&&(o=!1)}o&&this.options.chunksUploaded(n,()=>{this._finished(e,r,null)})},this.options.parallelChunkUploads)for(let e=0;e<n.upload.totalChunkCount;e++)i();else i()}else{let n=[];for(let r=0;r<e.length;r++)n[r]={name:this._getParamName(r),data:t[r],filename:e[r].upload.filename};this._uploadData(e,n)}})}_getChunk(e,t){for(let n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}_uploadData(e,t){let n=new XMLHttpRequest;for(let t of e)t.xhr=n;e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=n);let r=this.resolveOption(this.options.method,e,t),o=this.resolveOption(this.options.url,e,t);n.open(r,o,!0),this.resolveOption(this.options.timeout,e)&&(n.timeout=this.resolveOption(this.options.timeout,e)),n.withCredentials=!!this.options.withCredentials,n.onload=t=>{this._finishedUploading(e,n,t)},n.ontimeout=()=>{this._handleUploadError(e,n,`Request timedout after ${this.options.timeout/1e3} seconds`)},n.onerror=()=>{this._handleUploadError(e,n)},(null!=n.upload?n.upload:n).onprogress=t=>this._updateFilesUploadProgress(e,n,t);let i=this.options.defaultHeaders?{Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}:{};this.options.binaryBody&&(i["Content-Type"]=e[0].type),this.options.headers&&W(i,this.options.headers);for(let e in i){let t=i[e];t&&n.setRequestHeader(e,t)}if(this.options.binaryBody){for(let t of e)this.emit("sending",t,n);this.options.uploadMultiple&&this.emit("sendingmultiple",e,n),this.submitRequest(n,null,e)}else{let r=new FormData;if(this.options.params){let t=this.options.params;"function"==typeof t&&(t=t.call(this,e,n,e[0].upload.chunked?this._getChunk(e[0],n):null));for(let e in t){let n=t[e];if(Array.isArray(n))for(let t=0;t<n.length;t++)r.append(e,n[t]);else r.append(e,n)}}for(let t of e)this.emit("sending",t,n,r);this.options.uploadMultiple&&this.emit("sendingmultiple",e,n,r),this._addFormElementData(r);for(let e=0;e<t.length;e++){let n=t[e];r.append(n.name,n.data,n.filename)}this.submitRequest(n,r,e)}}_transformFiles(e,t){let n=[],r=0;for(let o=0;o<e.length;o++)this.options.transformFile.call(this,e[o],i=>{n[o]=i,++r===e.length&&t(n)})}_addFormElementData(e){if("FORM"===this.element.tagName)for(let t of this.element.querySelectorAll("input, textarea, select, button")){let n=t.getAttribute("name"),r=t.getAttribute("type");if(r&&(r=r.toLowerCase()),null!=n)if("SELECT"===t.tagName&&t.hasAttribute("multiple"))for(let r of t.options)r.selected&&e.append(n,r.value);else(!r||"checkbox"!==r&&"radio"!==r||t.checked)&&e.append(n,t.value)}}_updateFilesUploadProgress(e,t,n){if(e[0].upload.chunked){let r=e[0],o=this._getChunk(r,t);
2n?(o.progress=100*n.loaded/n.total,o.total=n.total,o.bytesSent=n.loaded):(o.progress=100,o.bytesSent=o.total),r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(let e=0;e<r.upload.totalChunkCount;e++)r.upload.chunks[e]&&void 0!==r.upload.chunks[e].progress&&(r.upload.progress+=r.upload.chunks[e].progress,r.upload.total+=r.upload.chunks[e].total,r.upload.bytesSent+=r.upload.chunks[e].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount,this.emit("uploadprogress",r,r.upload.progress,r.upload.bytesSent)}else for(let t of e)t.upload.total&&t.upload.bytesSent&&t.upload.bytesSent==t.upload.total||(n?(t.upload.progress=100*n.loaded/n.total,t.upload.total=n.total,t.upload.bytesSent=n.loaded):(t.upload.progress=100,t.upload.bytesSent=t.upload.total),this.emit("uploadprogress",t,t.upload.progress,t.upload.bytesSent))}_finishedUploading(e,t,n){let r;if(e[0].status!==Y.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e,t),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t),r):this._finished(e,r,n):this._handleUploadError(e,t,r)}}_handleUploadError(e,t,n){if(e[0].status!==Y.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){let n=this._getChunk(e[0],t);if(n.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[n.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}submitRequest(e,t,n){if(1==e.readyState)if(this.options.binaryBody)if(n[0].upload.chunked){const t=this._getChunk(n[0],e);e.send(t.dataBlock.data)}else e.send(n[0]);else e.send(t);else console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.")}_finished(e,t,n){for(let r of e)r.status=Y.SUCCESS,this.emit("success",r,t,n),this.emit("complete",r);
2if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}_errorProcessing(e,t,n){for(let r of e)r.status=Y.ERROR,this.emit("error",r,t,n),this.emit("complete",r);if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}static uuidv4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}constructor(e,t){let n,r;if(super(),this.element=e,this.clickableElements=[],this.listeners=[],this.files=[],"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");Y.instances.push(this),this.element.dropzone=this;let o=null!=(r=Y.optionsForElement(this.element))?r:{};if(this.options=W(!0,{},q,o,null!=t?t:{}),this.options.previewTemplate=this.options.previewTemplate.replace(/\n*/g,""),this.options.forceFallback||!Y.isBrowserSupported())return this.options.fallback.call(this);if(null==this.options.url&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(this.options.uploadMultiple&&this.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");if(this.options.binaryBody&&this.options.uploadMultiple)throw new Error("You cannot set both: binaryBody and uploadMultiple.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes),null!=this.options.renameFilename&&(this.options.renameFile=e=>this.options.renameFilename.call(this,e.name,e)),"string"==typeof this.options.method&&(this.options.method=this.options.method.toUpperCase()),(n=this.getExistingFallback())&&n.parentNode&&n.parentNode.removeChild(n),!1!==this.options.previewsContainer&&(this.options.previewsContainer?this.previewsContainer=Y.getElement(this.options.previewsContainer,"previewsContainer"):this.previewsContainer=this.element),this.options.clickable&&(!0===this.options.clickable?this.clickableElements=[this.element]:this.clickableElements=Y.getElements(this.options.clickable,"clickable")),this.init()}}Y.initClass(),Y.options={},Y.optionsForElement=function(e){return e.getAttribute("id")?Y.options[J(e.getAttribute("id"))]:void 0},Y.instances=[],Y.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},Y.discover=function(){let e;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];let t=t=>(()=>{let n=[];for(let r of t)/(^| )dropzone($| )/.test(r.className)?n.push(e.push(r)):n.push(void 0);return n})();t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return(()=>{let t=[];for(let n of e)!1!==Y.optionsForElement(n)?t.push(new Y(n)):t.push(void 0);return t})()},Y.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],Y.isBrowserSupported=function(){let e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){void 0!==Y.blacklistedBrowsers&&(Y.blockedBrowsers=Y.blacklistedBrowsers);for(let t of Y.blockedBrowsers)if(t.test(navigator.userAgent)){e=!1;continue}}else e=!1;else e=!1;return e},Y.dataURItoBlob=function(e){let t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r);for(let e=0,n=t.length,r=0<=n;r?e<=n:e>=n;r?e++:e--)o[e]=t.charCodeAt(e);return new Blob([r],{type:n})};const Q=(e,t)=>e.filter(e=>e!==t).map(e=>e),J=e=>e.replace(/[\-_](\w)/g,e=>e.charAt(1).toUpperCase());Y.createElement=function(e){let t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},Y.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},Y.getElement=function(e,t){let n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error(`Invalid \`${t}\` option provided. Please provide a CSS selector or a plain HTML element.`);return n},Y.getElements=function(e,t){let n,r;if(e instanceof Array){r=[];try{for(n of e)r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e)for(n of(r=[],document.querySelectorAll(e)))r.push(n);else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error(`Invalid \`${t}\` option provided. Please provide a CSS selector, a plain HTML element or a list of those.`);return r},Y.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},Y.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");let n=e.type,r=n.replace(/\/.*$/,"");
2for(let o of t)if(o=o.trim(),"."===o.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.length-o.length))return!0}else if(/\/\*$/.test(o)){if(r===o.replace(/\/.*$/,""))return!0}else if(n===o)return!0;return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new Y(this,e)})}),Y.ADDED="added",Y.QUEUED="queued",Y.ACCEPTED=Y.QUEUED,Y.UPLOADING="uploading",Y.PROCESSING=Y.UPLOADING,Y.CANCELED="canceled",Y.ERROR="error",Y.SUCCESS="success";var Z=function(e,t,n,r,o,i,s,a,l,c){let u=function(e){e.naturalWidth;let t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;let r=n.getContext("2d");r.drawImage(e,0,0);let{data:o}=r.getImageData(1,0,1,t),i=0,s=t,a=t;for(;a>i;)0===o[4*(a-1)+3]?s=a:i=a,a=s+i>>1;let l=a/t;return 0===l?1:l}(t);return e.drawImage(t,n,r,o,i,s,a,l,c/u)};class ee{static initClass(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}static encode64(e){let t,n,r,o,i,s="",a="",l="",c=0;for(;t=e[c++],n=e[c++],a=e[c++],r=t>>2,o=(3&t)<<4|n>>4,i=(15&n)<<2|a>>6,l=63&a,isNaN(n)?i=l=64:isNaN(a)&&(l=64),s=s+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(l),t=n=a="",r=o=i=l="",c<e.length;);return s}static restore(e,t){if(!e.match("data:image/jpeg;base64,"))return t;let n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),o=this.exifManipulation(t,r);return`data:image/jpeg;base64,${this.encode64(o)}`}static exifManipulation(e,t){let n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}static getExifArray(e){let t,n=0;for(;n<e.length;){if(t=e[n],255===t[0]&225===t[1])return t;n++}return[]}static insertExif(e,t){let n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),o=r.indexOf(255,3),i=r.slice(0,o),s=r.slice(o),a=i;return a=a.concat(t),a=a.concat(s),a}static slice2Segments(e){let t=0,n=[];for(;;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{let r=t+(256*e[t+2]+e[t+3])+2,o=e.slice(t,r);n.push(o),t=r}if(t>e.length)break}return n}static decode64(e){let t,n,r,o,i,s="",a="",l=0,c=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");r=this.KEY_STR.indexOf(e.charAt(l++)),o=this.KEY_STR.indexOf(e.charAt(l++)),i=this.KEY_STR.indexOf(e.charAt(l++)),a=this.KEY_STR.indexOf(e.charAt(l++)),t=r<<2|o>>4,n=(15&o)<<4|i>>2,s=(3&i)<<6|a,c.push(t),64!==i&&c.push(n),64!==a&&c.push(s),t=n=s="",r=o=i=a="",l<e.length;);return c}}ee.initClass();var te=n(18080);function ne(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return re(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(re(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,re(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,re(d,"constructor",c),re(c,"constructor",l),l.displayName="GeneratorFunction",re(c,o,"GeneratorFunction"),re(d),re(d,o,"Generator"),re(d,r,function(){return this}),re(d,"toString",function(){return"[object Generator]"}),(ne=function(){return{w:i,m:p}})()}function re(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}re=function(e,t,n,r){function i(t,n){re(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},re(e,t,n,r)}function oe(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}Y.autoDiscover=!1;const ie={getDropzone:function(e){var t=(0,te.lo)(e.url),n=null,r=function(){var e=document.querySelector(".slow-upload-warning");e&&(e.innerHTML="")};return new Y(e.documentElementId,{url:t,path:e.path,paramName:e.paramName?e.paramName:"imageFile",autoProcessQueue:void 0===e.autoProcessQueue||e.autoProcessQueue,uploadMultiple:!!e.uploadMultiple&&e.uploadMultiple,parallelUploads:e.parallelUploads?e.parallelUploads:2,maxFiles:e.maxFiles?e.maxFiles:1,maxFilesize:e.maxFilesize?e.maxFilesize:10,queueLimit:e.queueLimit?e.queueLimit:1,acceptedFiles:e.acceptedFiles?e.acceptedFiles:".jpg, .jpeg, .png, .svg, .gif",dictDefaultMessage:e.dictDefaultMessage?e.dictDefaultMessage:'<p class="dz-default-message">Drop Your image here or <span class="blue">click to upload</span>.</p>',dictFileTooBig:e.dictFileTooBig?e.dictFileTooBig:"This file is too large ({{filesize}} MB). The size limit is {{maxFilesize}} MB.",dictInvalidFileType:"Upload canceled: This file format is not supported. <br /> Use "+(e.acceptedErrorMessage?e.acceptedErrorMessage:"png, jpeg, svg or gif")+".",dictMaxFilesExceeded:"You can not upload more than {{maxFiles}} files.",previewTemplate:e.previewTemplate?e.previewTemplate:'<div class="dz-preview dz-image-preview"><div class="dz-image"><img data-dz-thumbnail /></div><div class="dz-details"><div class="dz-size"><span data-dz-size=""></span></div><div class="dz-filename"><span data-dz-name=""></span></div></div><div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress=""></span></div><div class="dz-error-message"><span data-dz-errormessage=""></span></div><div class="dz-success-mark"></div><div class="dz-error-mark"></div></div>',thumbnailWidth:e.thumbnailWidth?e.thumbnailWidth:null,thumbnailHeight:e.thumbnailHeight?e.thumbnailHeight:250,headers:{"X-CSRF-TOKEN":z.A.defaults.headers.common["X-CSRF-TOKEN"]},init:function(){this.on("thumbnail",function(t){var n,r;t.size<503e4&&(t.width>3e3||t.height>3e3)&&(n="".concat(e.uploadMultiple?"The images seem":"This image seems"," a bit big. Uploading can take several seconds."),(r=d
2ocument.querySelector(".slow-upload-warning"))&&(r.innerHTML=n))}),this.on("maxfilesexceeded",function(e){r(),this.removeFile(e)}),this.on("error",function(t,n,o){r(),this.removeFile(t),t.accepted&&!o||this.removeFile(t),e.onErrorCallback&&e.onErrorCallback(o,n)}),this.on("addedfiles",function(t){e.onAddedFilesCallback&&e.onAddedFilesCallback(t)})},accept:function(t,r){return(o=ne().m(function o(){return ne().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,(0,L.iD)();case 1:if((n=o.v)&&(0,L.Fs)(n)){o.n=2;break}return r("Your session expired. Please sign in again."),o.a(2);case 2:r(),e.onAcceptCallback&&e.onAcceptCallback(t);case 3:return o.a(2)}},o)}),function(){var e=this,t=arguments;return new Promise(function(n,r){var i=o.apply(e,t);function s(e){oe(i,n,r,s,a,"next",e)}function a(e){oe(i,n,r,s,a,"throw",e)}s(void 0)})})();var o},sending:function(t,r,o){n&&(0,L.Fs)(n)&&r.setRequestHeader("Authorization","Bearer ".concat(n)),o.append("path",e.path),e.onSendingCallback&&e.onSendingCallback(o)},success:function(t,n){r(),t.previewElement.classList.add("dz-success"),e.onSuccessCallback&&e.onSuccessCallback(n)},successmultiple:function(t,n){e.onSuccessMultipleCallback&&e.onSuccessMultipleCallback(n)},queuecomplete:function(){e.onQueueCompleteCallback&&e.onQueueCompleteCallback()}})}};function se(e,t,n,r,o){var i="/";return i+=e||(r?"project/"+(t?t.slice(-8):"")+r.slice(-8)+"/"+o.replace(/[^A-Za-z0-9]/g,"-"):"portfolio/"+t.slice(-8)+"/"+n.replace(/[^A-Za-z0-9]/g,"-"))}function ae(e,t){var n="/";return n+=t?"p/"+t:"home/portfolios/"+e}const le={getUrlForShortId:function(e){return se(e,null,null,null,null)},getUrlForPortfolio:function(e,t){return se(null,e,t,null,null)},getUrlForProject:function(e,t,n){return se(null,n,null,e,t)},getUrlForProjectWithPortfolio:function(e,t,n){return se(null,e,null,t,n)},getProjectEditorUrl:function(e){return ae(null,e)},getPortfolioEditorUrl:function(e){return ae(e,null)},getProjectReviewUrl:function(e,t){return this.getProjectEditorUrl(e)+"/reviews?review="+t}};var ce=n(36596),ue=n(97259),de=n(91915),pe=n(45);const fe={methods:{getNestedValue:function(e,t){if(e&&t)return t.replace(/\[(\w+)\]/g,".$1").split(".").reduce(function(e,t){return null==e?void 0:e[t]},e)},setNestedValue:function(e,t,n){if(e&&t){var r=t.replace(/\[(\w+)\]/g,".$1").split("."),o=r.pop();r.reduce(function(e,t){return e[t]=e[t]||{}},e)[o]=n}}}};var he=n(75129);const me={mounted:function(e,t){if(!1!==t.value){e.style.cursor="zoom-in";var n=function(e){var t=e.currentTarget;de.M.commit("setZoom",{url:t.getAttribute("src"),ref:t})};e.addEventListener("click",n);var r=e.closest(".carousel-gallery");if(r)new MutationObserver(function(t){t.forEach(function(t){t.addedNodes.forEach(function(t){t.nodeType===Node.ELEMENT_NODE&&t.querySelectorAll&&t.querySelectorAll("img").forEach(function(t){t.getAttribute("src")===e.getAttribute("src")&&(t.style.cursor="zoom-in",t.addEventListener("click",n))})})})}).observe(r,{childList:!0,subtree:!0});else console.warn("Gallery container not found.")}}};var ve=n(74256);function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){we(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function we(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){return function(e){if(Array.isArray(e))return ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _e={enabled:!1,columns:12,columnGap:48,columnStart:1,columnEnd:7,height:null,autoHeight:!1,minColumnSpan:2,maxColumnSpan:12,minHeight:null,maxHeight:null,mediaAspectRatio:null,onActivate:null,onResizeStart:null,onResize:null,onResizeEnd:null,onAspectRatioSnap:null,onMediaResize:null,resizeDirections:ve.v8.ALL,keepMediaSize:!1,isMediaModule:!1,fullBleedEnabled:!1,onFullBleedChange:null,isFullBleed:!1,enterFullBleedPx:48,exitFullBleedPx:24,useSpacers:!0,isLocked:!1},Oe=[{ratio:"21 : 9",value:[21,9]}
2,{ratio:"16 : 9",value:[16,9]},{ratio:"4 : 3",value:[4,3]},{ratio:"1 : 1",value:[1,1]},{ratio:"3 : 4",value:[3,4]},{ratio:"9 : 16",value:[9,16]},{ratio:"9 : 21",value:[9,21]},{ratio:"Original",value:null}];function Ce(e,t){return 0===t?e:Ce(t,e%t)}function Te(e,t){if(!e||!t)return[e||1,t||1];var n=Ce(e,t);return[Math.round(e/n),Math.round(t/n)]}function Ae(e,t,n){return null!=t&&(e=Math.max(e,t)),null!=n&&(e=Math.min(e,n)),e}function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function xe(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||je(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ie(e,t,n){return(t=Re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||je(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){if(e){if("string"==typeof e)return Me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,t):void 0}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Re(r.key),r)}}function Re(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}var Ne=function(){return e=function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.options=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return be(be({},_e),e)}(r),this.state={container:null,handles:{},spacerNode:null,boundHandles:new WeakSet,isActive:!1,isResizing:!1,resizingSide:null,switchedToBleedThisDrag:!1,prevCols:{start:null,end:null},columns:{start:null,end:null},aspectRatio:null,popularAspectRatios:Oe.map(function(e){return{ratio:e.ratio,value:e.value?Se(e.value):null}}),size:{height:null},dragStart:{x:0,y:0,column:1,width:0,height:0,mediaHeight:0}},this.onMouseMoveBound=function(e){return n.onMouseMove(e)},this.onMouseUpBound=function(){return n.onMouseUp()}},t=[{key:"initialize",value:function(){return this.state.container=this.el.closest(".grid"),this.state.container?(this.applyInitialStyles(),this.buildHandles(),this.bindHandleEvents(),this.wireSpacerHandle(),this.setFullBleed(this.options.isFullBleed),this.setActive(this.options.enabled),this.setAspectRatioOnMedia(),!0):(console.warn("v-resizable: parent .grid container not found"),!1)}},{key:"updateOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){e.isFullBleed!==t.isFullBleed&&this.setFullBleed(!!e.isFullBleed),e.enabled!==t.enabled&&this.setActive(!!e.enabled),e.isLocked!==t.isLocked&&(this.options.isLocked=!!e.isLocked,this.options.isLocked?this.setActive(!1):void 0!==e.enabled&&this.setActive(!!e.enabled),this.updateHandleVisibility()),e.useSpacers!==t.useSpacers&&(this.options.useSpacers=!1!==e.useSpacers,this.wireSpacerHandle(),this.updateHandleVisibility());var n,r=!1;if(e.columnStart!==t.columnStart&&(r=this.setColumnStartOnly(null!==(n=e.columnStart)&&void 0!==n?n:this.getColumnStart())||r),e.columnEnd!==t.columnEnd){var o,i,s=null!=e.columnStart?e.columnStart+(null!==(o=e.minColumnSpan)&&void 0!==o?o:this.options.minColumnSpan):this.getColumnEnd();r=this.setColumnEndOnly(null!==(i=e.columnEnd)&&void 0!==i?i:s)||r}
2e.height!==t.height&&(null!=e.height&&this.setHeight(e.height),r=!0),r&&this.syncMediaFromDom(),e.resizeDirections!==t.resizeDirections&&this.setResizeDirections(e.resizeDirections),this.assignDefinedOptions(e),this.wireSpacerHandle()}}},{key:"cleanup",value:function(){Object.values(this.state.handles).forEach(function(e){var t;e&&null!==(t=e.classList)&&void 0!==t&&t.contains("rs-handle")&&e.remove()}),this.state.spacerNode&&delete this.state.spacerNode.__rsBound,document.removeEventListener("mousemove",this.onMouseMoveBound),document.removeEventListener("mouseup",this.onMouseUpBound)}},{key:"getPublicApi",value:function(){var e=this;return{setActive:function(t){return e.setActive(t)},setHeight:function(t,n){return e.setHeight(t,n)},setMediaSize:function(t){return e.setMediaSize(t)},applyNewMediaAspectRatio:function(t,n){return e.applyNewMediaAspectRatio(t,n)},storeMediaAspectRatio:function(t,n){return e.storeMediaAspectRatio(t,n)},emitMediaResize:function(t,n){return e.emitMediaResize(t,n)},setResizeDirections:function(t){return e.setResizeDirections(t)},isResizing:function(){return e.state.isResizing},mediaAspectRatio:function(){return e.options.mediaAspectRatio},setFullBleed:function(t){return e.setFullBleed(t)},cleanup:function(){return e.cleanup()}}}},{key:"normalizeColumnValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Number(e);if(Number.isFinite(n))return Math.round(n);var r=Number(t);return Number.isFinite(r)?Math.round(r):1}},{key:"getColumnStart",value:function(){return null!=this.state.columns.start?this.state.columns.start:this.normalizeColumnValue(this.options.columnStart,1)}},{key:"getColumnEnd",value:function(){if(null!=this.state.columns.end)return this.state.columns.end;var e=this.getColumnStart();return this.normalizeColumnValue(this.options.columnEnd,e+this.options.minColumnSpan)}},{key:"getColumnSpan",value:function(){return this.getColumnEnd()-this.getColumnStart()}},{key:"setColumns",value:function(e,t){var n=Ae(this.normalizeColumnValue(e,1),1,this.options.columns+1-this.options.minColumnSpan),r=n+this.options.minColumnSpan,o=Ae(this.normalizeColumnValue(t,r),r,this.options.columns+1),i=n!==this.state.columns.start||o!==this.state.columns.end;return this.state.columns.start=n,this.state.columns.end=o,this.options.columnStart=n,this.options.columnEnd=o,i}},{key:"setColumnStartOnly",value:function(e){return this.setColumns(e,this.getColumnEnd())}},{key:"setColumnEndOnly",value:function(e){return this.setColumns(this.getColumnStart(),e)}},{key:"assignDefinedOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(t).forEach(function(t){var n=Le(t,2),r=n[0],o=n[1];void 0!==o&&(e.options[r]=o)})}},{key:"setStoredHeight",value:function(e){this.state.size.height=null!=e?e:null,this.options.height=this.state.size.height}},{key:"getStoredHeight",value:function(){return this.state.size.height}},{key:"getDomHeight",value:function(){var e,t,n=null===(e=(t=this.el).getBoundingClientRect)||void 0===e?void 0:e.call(t).height;if(n)return n;var r=this.el.offsetHeight;if(r)return r;var o=getComputedStyle(this.el),i=parseFloat(o.height);return!Number.isNaN(i)&&i>0?i:this.getFirstChildHeight()}},{key:"getEffectiveHeight",value:function(){var e;return null!==(e=this.getStoredHeight())&&void 0!==e?e:this.getDomHeight()}},{key:"applyInitialStyles",value:function(){var e=this.options,t=e.columnStart,n=e.columnEnd,r=e.height;this.setColumns(null!=t?t:1,null!=n?n:(null!=t?t:1)+this.options.minColumnSpan),null!==r&&this.setHeight(r)}},{key:"buildHandles",value:function(){var e=this,t=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=document.createElement("div");o.classList.add("rs-handle","rsh-".concat(t)),Object.assign(o.style,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach(function(t){Ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({display:"none",cursor:n},r));var i=e.el.querySelector('[class*="cts-module-"]');return i?i.appendChild(o):e.el.appendChild(o),o},n={top:function(){return t("tm","ns-resize")},bottom:function(){return t("bm","ns-resize")},left:function(){return t("ml","ew-resize")},right:function(){return t("mr","ew-resize")},"top-left":function(){return t("tl","nwse-resize")},"top-right":function(){return t("tr","nesw-resize")},"bottom-left":function(){return t("bl","nesw-resize")},"bottom-right":function(){return t("br","nwse-resize")}};this.state.handles=Object.fromEntries(Object.entries(n).map(function(e){var t=Le(e,2);return[t[0],(0,t[1])()]}));var r=this.el.querySelector(".spacer-resize-handle")||null;r?this.assignSpacerHandle(r):this.state.spacerNode=null}},{key:"assignSpacerHandle",value:function(e){var t=this;if(this.spacersEnabled()&&e){if(this.options.resizeDirections===ve.v8.SINGLE){var n=function(e){var n,r=t.state.handles[e];null!=r&&null!==(n=r.classList)&&void 0!==n&&n.contains("rs-handle")&&r.remove()};this.getColumnEnd()<this.options.columns+1?(n("right"),this.state.handles.right=e):(n("left"),this.state.handles.left=e,delete this.state.handles.right),e.style.display="none"}this.state.spacerNode=e}}},{key:"bindHandleEvents",value:function(){var e=this;
2Object.entries(this.state.handles).forEach(function(t){var n=Le(t,2),r=n[0],o=n[1];o&&!e.state.boundHandles.has(o)&&(o.addEventListener("mousedown",function(t){return e.onMouseDown(t,r)}),e.state.boundHandles.add(o))})}},{key:"wireSpacerHandle",value:function(){var e=this;if(!this.spacersEnabled())return this.state.spacerNode&&(this.state.spacerNode.style.display="none"),void(this.state.spacerNode=null);var t=this.el.querySelector(".spacer-resize-handle")||null;if(t){var n=t!==this.state.spacerNode;!n&&this.state.spacerNode||this.assignSpacerHandle(t),t.__rsBound?n&&this.updateHandleVisibility():(t.style.userSelect="none",t.addEventListener("mousedown",function(t){var n=e.options.resizeDirections===ve.v8.SINGLE?e.singleSideForSpacer():e.pickSideFromEvent(t);e.onMouseDown(t,n)}),t.__rsBound=!0,this.updateHandleVisibility())}else this.state.spacerNode=null}},{key:"pickSideFromEvent",value:function(e){var t=this.el.getBoundingClientRect(),n=t.left+t.width/2;return e.clientX>=n?"right":"left"}},{key:"singleSideForSpacer",value:function(){return this.getColumnEnd()<this.options.columns+1?"right":"left"}},{key:"spacersEnabled",value:function(){return!1!==this.options.useSpacers}},{key:"setFullBleed",value:function(e){var t=!!e;this.options.isFullBleed=t}},{key:"setActive",value:function(e){var t,n,r,o;this.options.isLocked?this.state.isActive&&(this.state.isActive=!1,this.updateHandleVisibility(),null===(r=(o=this.options).onActivate)||void 0===r||r.call(o,this.state.isActive)):this.state.isActive!==e&&(this.state.isActive=!!e,this.updateHandleVisibility(),null===(t=(n=this.options).onActivate)||void 0===t||t.call(n,this.state.isActive))}},{key:"updateHandleVisibility",value:function(){var e=this;if(this.options.isLocked)return Object.values(this.state.handles).forEach(function(e){e&&(e.style.display="none")}),this.state.spacerNode&&(this.state.spacerNode.style.display="none"),void this.el.classList.remove("has-all-handles");var t=this.spacersEnabled(),n=new Set(function(){switch(e.options.resizeDirections){case ve.v8.VERTICAL:return["top","bottom"];case ve.v8.HORIZONTAL:case ve.v8.SINGLE:return["left","right"];case ve.v8.ALL:default:return["top","right","bottom","left","top-left","top-right","bottom-right","bottom-left"]}}());if(Object.entries(this.state.handles).forEach(function(t){var r=Le(t,2),o=r[0],i=r[1];if(i){var s=e.state.isActive&&n.has(o);i.style.display=s?"":"none","top-left"===o&&e.el.classList.toggle("has-all-handles",s)}}),this.state.spacerNode){var r=t&&this.state.isActive&&this.options.resizeDirections===ve.v8.SINGLE;this.state.spacerNode.style.display=r?"":"none"}}},{key:"setResizeDirections",value:function(e){e&&(this.options.resizeDirections=e,this.updateHandleVisibility(),this.wireSpacerHandle())}},{key:"getContainerWidth",value:function(){var e=getComputedStyle(this.state.container);return this.state.container.getBoundingClientRect().width-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}},{key:"getGridSizes",value:function(){return{columnWidth:(this.getContainerWidth()-this.options.columnGap*(this.options.columns-1))/this.options.columns,gap:this.options.columnGap}}},{key:"getFirstChildHeight",value:function(){var e=this.el.firstElementChild;if(!e)return 0;var t=getComputedStyle(e);return e.getBoundingClientRect().height||parseFloat(t.height)||0}},{key:"setHeight",value:function(e,t){var n;this.options.autoHeight||t||this.options.isMediaModule?this.setStoredHeight(null):("auto"===e||null!=e&&!Number.isNaN(e)||(e=this.getFirstChildHeight()),e=Ae(e,0,null!==(n=this.options.maxHeight)&&void 0!==n?n:void 0),this.setStoredHeight(e))}},{key:"setMediaSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.el.querySelector(".media"),n=this.el.querySelector(".media-caption");if(t){if(this.options.keepMediaSize)return this.options.mediaAspectRatio&&(t.style.aspectRatio="".concat(this.options.mediaAspectRatio[0]," / ").concat(this.options.mediaAspectRatio[1])),{width:t.offsetWidth,height:t.offsetHeight};if(e){var r=n?n.offsetHeight+4:0,o=Math.max(e-r,0);t.style.height="".concat(o,"px"),t.style.aspectRatio="".concat(t.offsetWidth," / ").concat(Math.max(t.offsetHeight,1)),this.options.mediaAspectRatio=Te(t.offsetWidth,t.offsetHeight)}else this.options.mediaAspectRatio&&(t.style.aspectRatio="".concat(this.options.mediaAspectRatio[0]," / ").concat(this.options.mediaAspectRatio[1])),t.style.height="auto";return{width:t.offsetWidth,height:t.offsetHeight}}}},{key:"setAspectRatioOnMedia",value:function(){var e=this.el.querySelector(".media");e&&!e.style.aspectRatio&&this.options.mediaAspectRatio&&(e.style.aspectRatio="".concat(this.options.mediaAspectRatio[0]," / ").concat(this.options.mediaAspectRatio[1]))}},{key:"storeMediaAspectRatio",value:function(e,t){this.options.mediaAspectRatio=Te(e,t)}},{key:"emitResize",value:function(){var e,t,n=this.el.querySelector(".media"),r=this.getColumnStart(),o=this.getColumnEnd(),i=this.options.autoHeight||this.options.isMediaModule?null:this.getEffectiveHeight(),s=(null==n?void 0:n.offsetHeight)||null,a=this.normalizeResizeDirection(this.state.resizingSide);null===(e=(t=this.options).onResize)||void 0===e||e.call(t,{columnStart:r,columnEnd:o,height:i,mediaHeight:s,resizeDirection:a,mediaAspectRatio:this.options.mediaAspectRatio})}},{key:"normalizeResizeDirection",value:function(e){return e?"left"===e||"right"===e||"top"===e||"bottom"===e?e:e.includes("right")?"right":e.includes("left")?"left":e.includes("top")?"top":e.includes("bottom")?"bottom":e:""}},{key:"emitMediaResize",value:function(e,t){var n,r;this.options.keepMediaSize||null===(n=(r=this.options).onMediaResize)||void 0===n||n.call(r,{width:e,height:t,mediaAspectRatio:this.options.mediaAspectRatio})}},{key:"applyNewMediaAspectRatio",value:function(e,t){var n=this.el.querySelector(".media"),r=this.el.querySelector(".media-caption");if(n){var o=this.el.offsetWidth,i=o/(e/t)+(r?r.offsetHeight:0);
2this.state.aspectRatio=o/i,this.storeMediaAspectRatio(e,t),this.options.autoHeight=!1;var s=this.setMediaSize();this.setHeight(i,s),this.emitResize()}}},{key:"syncMediaFromDom",value:function(){var e=this.setMediaSize();this.setHeight(this.getEffectiveHeight()),e&&this.emitMediaResize(e.width,e.height)}},{key:"rememberCurrentColumns",value:function(){this.state.prevCols={start:this.getColumnStart(),end:this.getColumnEnd()}}},{key:"onMouseDown",value:function(e,t){var n,r,o;if(!this.options.isLocked&&0===e.button){e.preventDefault(),this.state.isResizing=!0,this.state.switchedToBleedThisDrag=!1,null===(n=(r=this.options).onResizeStart)||void 0===n||n.call(r);var i=this.el.querySelector(".media");this.state.resizingSide=t,this.state.dragStart={x:e.clientX,y:e.clientY,column:this.getColumnStart(),width:this.el.offsetWidth,height:this.getEffectiveHeight(),mediaHeight:null!==(o=null==i?void 0:i.offsetHeight)&&void 0!==o?o:this.getEffectiveHeight()},this.state.aspectRatio=this.el.offsetWidth/Math.max(this.getEffectiveHeight(),1),i&&!this.options.mediaAspectRatio&&this.storeMediaAspectRatio(i.offsetWidth,i.offsetHeight);var s=this.state.popularAspectRatios.find(function(e){return"Original"===e.ratio});s&&(s.value=[(null==i?void 0:i.naturalWidth)||(null==i?void 0:i.offsetWidth)||1,(null==i?void 0:i.naturalHeight)||(null==i?void 0:i.offsetHeight)||1]),document.body.classList.add("force-resize-cursor"),document.addEventListener("mousemove",this.onMouseMoveBound),document.addEventListener("mouseup",this.onMouseUpBound)}}},{key:"onMouseMove",value:function(e){if(this.state.isResizing&&this.state.resizingSide){var t=this.getGridSizes(),n=t.columnWidth,r=t.gap,o=n+r,i=e.clientX-this.state.dragStart.x,s=e.clientY-this.state.dragStart.y,a=this.getColumnStart(),l=this.getColumnEnd(),c=a,u=l,d=this.state.dragStart.width,p=this.state.dragStart.height,f=!1,h=this.state.resizingSide,m="left"===h||"right"===h,v="top"===h||"bottom"===h,g=!m&&!v;if(m&&!this.options.isFullBleed&&!this.state.switchedToBleedThisDrag){var y=1===this.getColumnStart(),b=this.getColumnEnd()===this.options.columns+1;if(y&&"left"===h&&i<0||b&&"right"===h&&i>0){var w,S,k;if(!this.options.fullBleedEnabled)return;if(Math.abs(i)>=(null!==(w=this.options.enterFullBleedPx)&&void 0!==w?w:24))return this.rememberCurrentColumns(),null===(S=(k=this.options).onFullBleedChange)||void 0===S||S.call(k,!0),this.options.isFullBleed=!0,this.state.switchedToBleedThisDrag=!0,void this.setFullBleed(!0)}}if(m&&this.options.isFullBleed){var _,O="left"===h&&i>0,C="right"===h&&i<0,T=Math.abs(i);if((O||C)&&T>=(null!==(_=this.options.exitFullBleedPx)&&void 0!==_?_:16)){var A,E;if(!this.options.fullBleedEnabled)return;return null===(A=(E=this.options).onFullBleedChange)||void 0===A||A.call(E,!1),this.options.isFullBleed=!1,this.state.switchedToBleedThisDrag=!1,this.setFullBleed(!1),null!=this.state.prevCols.start&&null!=this.state.prevCols.end&&this.setColumns(this.state.prevCols.start,this.state.prevCols.end),this.state.dragStart.x=e.clientX,this.state.dragStart.width=this.el.offsetWidth,void(this.state.dragStart.column=this.getColumnStart())}}if(h.includes("left")){var x=Math.round(i/o);c=this.state.dragStart.column+x;var P=l-this.options.minColumnSpan,I=l-this.options.maxColumnSpan;c=Ae(c,Math.max(1,I),P),this.setColumnStartOnly(c)&&(f=!0),d=(l-c)*o-r}if(h.includes("right")){var L=this.state.dragStart.column;u=Math.min(L+this.getNewSpan(this.state.dragStart.width+i,r,o),this.options.columns+1),this.setColumnEndOnly(u)&&(f=!0),d=(u-a)*o-r}if(g&&f){p=d/(this.state.aspectRatio||1);var j=this.setMediaSize();this.setHeight(p,j)}v&&this.handleVerticalResize(s),m&&(this.setMediaSize(this.state.dragStart.height),this.setHeight(this.state.dragStart.height)),this.emitResize()}}},{key:"getNewSpan",value:function(e,t,n){return Ae(Math.round((e+t)/n),this.options.minColumnSpan,this.options.maxColumnSpan)}},{key:"handleVerticalResize",value:function(e){var t=this.el.querySelector(".media");if(t){var n=this.el.querySelector(".media-caption"),r=n?n.offsetHeight+4:0,o="top"===this.state.resizingSide?this.state.dragStart.mediaHeight-e:this.state.dragStart.mediaHeight+e,i=t.offsetWidth,s=o,a=null;this.options.autoHeight=!1;var l,c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=je(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}(this.state.popularAspectRatios);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(u.value){var d=i/(u.value[0]/u.value[1]);if(Number.isFinite(d)&&Math.abs(o-d)<=20){s=d,a=u;break}}}}catch(e){c.e(e)}finally{c.f()}var p=Math.floor(s);if(t.style.height="".concat(p,"px"),a){var f,h;this.options.mediaAspectRatio=xe(a.value),t.style.aspectRatio="".concat(a.value[0]," / ").concat(a.value[1]),null===(f=(h=this.options).onAspectRatioSnap)||void 0===f||f.call(h,{show:!0,label:a.ratio})}else{var m,v,g=t.offsetWidth||1,y=p||1;this.options.mediaAspectRatio=Te(g,y),t.style.aspectRatio="".concat(this.options.mediaAspectRatio[0]," / ").concat(this.options.mediaAspectRatio[1]),null===(m=(v=this.options).onAspectRatioSnap)||void 0===m||m.call(v,{show:!1})}this.setHeight(p+r)}else this.setHeight(this.state.dragStart.height+e)}},{key:"onMouseUp",value:function(){var e,t,n,r;this.state.isResizing=!1,this.state.resizingSide=null,null===(e=(t=this.options).onResizeEnd)||void 0===e||e.call(t),document.body.classList.remove("force-resize-cursor"),document.removeEventListener("mousemove",this.onMouseMoveBound),document.removeEventListener("mouseup",this.onMouseUpBound),null===(n=(r=this.options).onAspectRatioSnap)||void 0===n||n.call(r,{show:!1})}}],t&&De(e.prototype,t),n&&De(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const Fe={mounted:function(e,t){var n=new Ne(e,t.value);n.initialize()&&(e.__resizableController__=n,e.__resizeDirective__=n.getPublicApi(),e.__resizeDirectiveApi__=e.__resizeDirective__)},updated:function(e,t){if(!function(e){var t,n;return(null===(t=e.__resizeDirectiveApi__)||void 0===t||null===(n=t.isResizing)||void 0===n?void 0:n.call(t))&&!e.classList.contains("centered")}(e)){var n=e.__resizableController__;n&&(n.updateOptions(t.value||{},t.oldValue||{}),n.wireSpacerHandle())}},beforeUnmount:function(e){var t,n;null===(t=e.__resizeDirective__)||void 0===t||null===(n=t.cleanup)||void 0===n||n.call(t),delete e.__resizeDirective__,delete e.__resizeDirectiveApi__,delete e.__resizableController__}};var Be,Ue=null;Ue=(0,a.createApp)(F),Be=ue.A,Ue.use(Be),Ue.use(de.M),Ue.mixin(fe),Ue.mixin({computed:{$reviewStore:function(){return this.$store.state.review}}}),Ue.config.globalProperties.$store=de.M,Ue.config.globalProperties.$actions=pe.A,Ue.config.globalProperties.emitter=ce.A;var He=(0,B.c)();Ue.use(He),Ue.use(r.Ay,{includes:[{id:"G-SWXNNMMKPQ"}],config:{id:document.querySelector('meta[name="google-analytics-id"]').getAttribute("content")}}),Ue.directive("zoomable",me),Ue.directive("resizable",Fe),Ue.use(U,{expires:"7d"}),Ue.config.globalProperties.GoogleFontsHelper=$.A,Ue.config.globalProperties.UrlHelper=le,Ue.config.globalProperties.DateTimeHelper=H.A,Ue.config.globalProperties.DropzoneHelper=ie,Ue.config.globalProperties.IsProduction=!0;var $e=window.Stripe?Stripe("pk_live_51Fn0DWGU1qoq7L9TSBCRA2CGjuGaOOmayy48aZzSWa97ITayfnO8jnTGmzybKOrgY1ajkxIDSnq6RmYiqP8nzZfc005iSZIUjA"):null;z.A.defaults.headers.common["X-CSRF-TOKEN"]=document.querySelector('meta[name="csrf-token"]').getAttribute("content"),(0,he.r)(),(0,L.mI)().catch(function(e){console.warn("Legacy auth cleanup failed",e)}),(0,L.bJ)(z.A),(0,L.kW)()&&(0,L.Ld)(),window.uxfolioAuth={keycloak:L.Kq,login:L.Rf,loginWithPassword:L.Zr,logout:L.ri,register:L.kz,requestPasswordReset:L.w2,resetPassword:L.xw,signupWithPassword:L.Gi,startSocialLogin:L.fx},Ue.mount("#app")},75129(e,t,n){"use strict";n.d(t,{L:()=>c,r:()=>u});var r=n(97293);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="[Security]";function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s(s({timestamp:(new Date).toISOString(),event:e},t),{},{userAgent:navigator.userAgent,url:window.location.href});switch(e){case"auth_success":console.info(l,"Authentication successful",n);break;case"auth_failure":console.warn(l,"Authentication failed",n);break;case"token_refresh_success":console.debug(l,"Token refreshed",n);break;case"token_refresh_failure":console.error(l,"Token refresh failed",n);break;case"session_expired":console.warn(l,"Session expired",n);break;case"unauthorized_access":console.warn(l,"Unauthorized access attempt",n);break;case"suspicious_activity":console.error(l,"Suspicious activity detected",n);break;default:console.log(l,e,n)}}function u(){window.addEventListener(r.W3,function(e){var t;c("session_expired",{reason:(null===(t=e.detail)||void 0===t?void 0:t.error)||"Unknown"})})}},97259(e,t,n){"use strict";n.d(t,{A:()=>Zo});var r=n(74965),o=n(74256),i=n(20641),s={class:"ufo-sepa--cop"},a={class:"ufo-sepa--cop-info"};var l=n(24684),c=n(45),u=n(16485);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={name:"edit-mailto-link",components:{CascadingSidebar:l.A,InputField:u.A},emits:["save","cancel","close"],beforeMount:function(){var e=this;this.$route.query.add?(this.pageDetails.name="Email me",this.pageDetails.link.url=this.$store.state.user.contactEmail,this.$store.state.sidePanelSettings=f(f({},this.$store.state.sidePanelSettings),{},{newPageDetails:this.pageDetails})):(this.pageDetails.name=this.$store.state.portfolioPages.find(function(t){return t.shortId===e.$route.query.edit}).name,this.pageDetails.link.url=this.$store.state.portfolioPages.find(function(t){return t.shortId===e.$route.query.edit}).settings.link.url)},mounted:function(){this.$store.commit("updateSidePanel",f(f({},this.$route.meta.sidePanelSettings),{},{title:"".concat(this.$route.query.add?"Add":"Edit"," mailto link"),allowSave:this.$route.query.add})),(0,c.a)("/home".concat(this.$route.fullPath),"Mailto link")},unmounted:function(){this.$store.commit("updateSidePanel",{panel:o.N6.MAIN_PANEL,hideBackButton:!1,title:"Pages",hideActionButtons:!0})},data:function(){return{pageDetails:{name:null,link:{url:null,openInNewTab:!0}}}},watch:{pageDetails:{handler:function(){this.updateState()},deep:!0}},methods:{updateState:function(){var e=this;this.$store.state.sidePanelSettings.newPageDetails=this.pageDetails,this.$route.query.add||(this.$store.state.portfolioPages.find(function(t){return t.shortId===e.$route.query.edit}).name=this.pageDetails.name,this.$store.state.portfolioPages.find(function(t){return t.shortId===e.$route.query.edit}).link=this.pageDetails.link),this.$store.commit("updateSidePanel",{allowSave:!!this.pageDetails.link.url&&this.pageDetails.link.url.length>0&&!!this.pageDetails.name&&this.pageDetails.name.length>0})},triggerSave:function(){this.$emit("save")},triggerCancel:function(){this.$emit("cancel")},triggerClose:function(){this.$emit("close")}}};var v=n(66262);const g=(0,v.A)(m,[["render",function(e,t,n,r,o,l){var c=(0,i.g2)("InputField"),u=(0,i.g2)("CascadingSidebar");return(0,i.uX)(),(0,i.Wv)(u,{onSave:t[2]||(t[2]=function(e){return l.triggerSave()}),onCancel:t[3]||(t[3]=function(e){return l.triggerCancel()}),onClose:t[4]||(t[4]=function(e){return l.triggerClose()})},{default:(0,i.k6)(function(){return[(0,i.Lk)("div",s,[(0,i.Lk)("div",a,[(0,i.bF)(c,{label:"Link name",placeholder:"e.g.: Contact me","max-length":24,"char-limit-position":"outside",value:o.pageDetails.name,modelValue:o.pageDetails.name,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.pageDetails.name=e}),"dark-scheme":""},null,8,["value","modelValue"]),(0,i.bF)(c,{label:"Email address",placeholder:"[email protected]",value:o.pageDetails.link.url,modelValue:o.pageDetails.link.url,"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.pageDetails.link.url=e}),"dark-scheme":""},null,8,["value","modelValue"])])])]}),_:1})}],["__scopeId","data-v-3cae2fe8"]]);var y={key:0};var b=n(90033);var w=n(30009),S=n(72614),k=n(76107),_=n(41828),O=n(82124),C=n(23492),T=n(82408);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?E(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=null;const L={name:"ProjectView",components:{ViewNavBar:_.A,SectionLoader:S.A},beforeMount:function(){(0,C.f)(this.getAllCssVars)},mounted:function(){var e=this;I=(0,w.u)(function(){return e.headTags}),this.$nextTick(function(){document.addEventListener("scroll",e.scrollDistance)})},unmounted:function(){var e;null===(e=I)||void 0===e||e.dispose()},methods:{resolveColor:k.iL,scrollToTop:function(){"scrollBehavior"in document.documentElement.style?window.scroll({top:0,left:0,behavior:"smooth"}):this.smoothScroll(0,-1)},smoothScroll:function(e,t){var n=window.pageYOffset||document.body.scrollTop,r=Math.abs(n-e);if(r)var o=parseInt(24),i=r/o,s=setInterval(function(){if(t>0){if(window.pageYOffset>=e)return scrollBy(0,(e-r)*t),void clearInterval(s)}else if(window.pageYOffset<=0)return scrollBy(0,r*t),void clearInterval(s);scrollBy(0,i*t),window.pageYOffset+window.innerHeight===document.body.scrollHeight&&clearInterval(s)},400/o)},scrollDistance:function(){if(window.pageYOffset>1200){var e,t;if(null!==(e=document.querySelector(".scroll-to-top"))&&void 0!==e&&e.classList.contains("visible"))return;null===(t=document.querySelector(".scroll-to-top"))||void 0===t||t.classList.add("visible")}else{var n;null===(n=document.querySelector(".scroll-to-top"))||void 0===n||n.classList.remove("visible")}}},computed:x(x(x({},(0,O.L8)("design",["getAllCssVars"])),(0,O.L8)("view",["viewData"])),{},{portfolio:function(){return this.viewData.portfolio},socialHead:function(){return(0,T.E)({portfolio:this.portfolio,project:this.project,user:this.user,route:this.$route,useProjectSocialInfo:!0})},headTags:function(){return this.socialHead},project:function(){return this.viewData.project},user:function(){return this.viewData.user},portfolioPages:function(){return this.viewData.portfolioPages}})},j=(0,v.A)(L,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("ViewNavBar"),l=(0,i.g2)("SectionLoader");return(0,i.uX)(),(0,i.CE)(i.FK,null,[(0,i.bF)(a),(0,i.Lk)("div",{class:(0,b.C4)(["ufo--portfolio-page",[s.portfolio.templateSettings.theme.includes("profile_")?null:s.portfolio.templateSettings.theme]])},[(0,i.bF)(l,{sections:s.project.sections},null,8,["sections"]),(0,i.Lk)("div",{class:(0,b.C4)(["scroll-to-top",{"nav-on":s.portfolio.settings&&s.portfolio.settings.showNavOnCollectionItems}]),onClick:t[0]||(t[0]=function(){return s.scrollToTop&&s.scrollToTop.apply(s,arguments)})},null,2)],2)],64)}]]),M=j;var D=n(65498),R=n(33253),N={key:0,class:"ufo--portfolio-container"},F={class:"ufo--portfolio-container"},B={class:"ufo--page-content"},U={key:1,class:"ufo--about-legacy-wrapper"},H={class:"grid ufo--about-content"},$={key:0,class:"about-picture"},z=["src"],W=["innerHTML"],G={key:1,class:"ufo--about-content ufo--page-sections"},X={class:"ufo--page-content ufo--home-page-content"};var V=n(71125),K=n(4801),q=n(51333),Y=n(15637),Q={class:"ufo--about-header"},J={class:"grid"},Z={class:"about-title"},ee={class:"about-title-container"},te={class:"title"},ne={key:1,class:"title"};const re={name:"PageHeader",components:{AnimationWrapper:Y.A},props:{title:{type:String,default:""},animated:{type:Boolean,default:!0}},computed:{titleText:function(){return this.title||""}}},oe=(0,v.A)(re,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("AnimationWrapper");return(0,i.uX)(),(0,i.CE)("div",Q,[(0,i.Lk)("div",J,[(0,i.Lk)("div",Z,[(0,i.Lk)("div",ee,[n.animated?((0,i.uX)(),(0,i.Wv)(a,{key:0},{animationContent:(0,i.k6)(function(){return[(0,i.Lk)("h1",te,(0,b.v_)(s.titleText),1)]}),_:1})):((0,i.uX)(),(0,i.CE)("h1",ne,(0,b.v_)(s.titleText),1))])]),n.animated?((0,i.uX)(),(0,i.Wv)(a,{key:0},{animationContent:(0,i.k6)(function(){return[(0,i.Lk)("div",{class:"back",onClick:t[0]||(t[0]=function(t){return e.$emit("back")})},"âµ Back")]}),_:1})):((0,i.uX)(),(0,i.CE)("div",{key:1,class:"back",onClick:t[1]||(t[1]=function(t){return e.$emit("back")})},"âµ Back"))])])}]]);function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?se(Object(n),!0).forEach(function(t){le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function le(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ie(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce=null;const ue={name:"CustomPage",components:{ViewNavBar:_.A,AnimationWrapper:Y.A,PageHeader:oe,GetHeroNavigation:K.A,LegacyPublicPageFooter:q.A,PortfolioHeroHelper:V.A,SectionLoader:S.A},beforeMount:function(){(0,C.f)(this.getAllCssVars)},mounted:function(){var e=this;ce=(0,w.u)(function(){return e.headTags}),window.scrollY&&window.scroll(0,0)},beforeUpdate:function(){window.scrollY&&window.scroll(0,0)},unmounted:function(){var e;null===(e=ce)||void 0===e||e.dispose()},methods:{goBack:function(){this.$router.back()},navigateToPage:function(e){var t,n,r=null!==(t=this.$route)&&void 0!==t&&null!==(t=t.params)&&void 0!==t&&t.shortId?"/".concat(this.$route.params.shortId):"/".concat((null===(n=this.portfolio)||void 0===n?void 0:n.shortId)||""),o=e?"".concat(r,"/").concat(e):r;this.$router.push(o)},showLegacyAboutPage:function(){var e=0===this.project.sections.length&&"about"===this.project.type&&this.portfolio.about&&(this.portfolio.about.description||this.portfolio.about.image.url);return e&&n.e(2825).then(n.bind(n,82825)),e},legacyAboutText:function(){return this.portfolio.about.description.includes('rel="noopener noreferrer nofollow"')?this.portfolio.about.description:this.refactoredDesc}},computed:ae(ae(ae(ae({},(0,O.L8)("design",["getAllCssVars"])),(0,O.L8)("view",["viewData"])),(0,O.L8)(["portfolioUsesRootHeaderSections"])),{},{portfolio:function(){return this.viewData.portfolio},socialHead:function(){return(0,T.E)({portfolio:this.portfolio,project:this.project,user:this.user,route:this.$route})},headTags:function(){return this.socialHead},project:function(){return this.viewData.project},isHomePage:function(){return this.project.type===o.Q8.HOME},pageHasHeader:function(){var e,t=null===(e=this.portfolio)||void 0===e||null===(e=e.portfolioNavigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.position;return!this.$store.getters.isCaseStudy&&!this.isHomePage&&t===o.ze.UNDER_TEXT&&(this.templateSettings.theme.includes("theme_one")||this.templateSettings.theme.includes("theme_two"))},templateSettings:function(){return this.portfolio.templateSettings},user:function(){return this.viewData.user},settings:function(){return this.portfolio.templateSettings},refactoredDesc:function(){return this.portfolio.about.description.replace("<a href=",'<a rel="nofollow" href=')},portfolioTemplate:function(){return this.portfolio.templateSettings.theme.replace("_old","")}})},de=(0,v.A)(ue,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("ViewNavBar"),l=(0,i.g2)("PageHeader"),c=(0,i.g2)("SectionLoader"),u=(0,i.g2)("PortfolioHeroHelper"),d=(0,i.g2)("GetHeroNavigation"),p=(0,i.g2)("AnimationWrapper"),f=(0,i.g2)("LegacyPublicPageFooter");return(0,i.uX)(),(0,i.CE)(i.FK,null,[(0,i.bF)(a),e.portfolioUsesRootHeaderSections?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,b.C4)(["ufo--portfolio-page",s.templateSettings.theme,{home:s.isHomePage}])},[s.pageHasHeader?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,b.C4)(["ufo--about-page","ufo--about-page-".concat(s.templateSettings.theme)])},[(0,i.bF)(l,{title:s.project.name,onBack:t[0]||(t[0]=function(e){return s.navigateToPage()})},null,8,["title"])],2)):(0,i.Q3)("v-if",!0),(0,i.bF)(c,{sections:s.project.sections,"default-image-alt":"",class:(0,b.C4)(["ufo--about-page-sections",{"empty-list":s.project.sections.length<1}])},null,8,["sections","class"])],2)):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[s.templateSettings.theme.includes("profile_")?((0,i.uX)(),(0,i.CE)("div",N,[(0,i.Lk)("div",F,[(0,i.Lk)("div",{class:(0,b.C4)(["ufo--portfolio-page","profile-page","profile-subpage",s.templateSettings.theme,s.templateSettings.showProfilePicture?"profile--hp":""])},["profile_theme_default_old"===s.templateSettings.theme||"profile_theme_one"!==s.templateSettings.theme&&"profile_theme_two"!==s.templateSettings.theme?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,b.C4)(["grid","ufo--page-hero",s.templateSettings.theme,{home:s.isHomePage}])},[(0,i.Lk)("div",{class:(0,b.C4)(["ufo--page-hero-content",s.templateSettings.showProfilePicture&&(s.portfolio.image.url||s.user.image.url&&!s.portfolio.image.url)?"has-picture":"no-profile-picture"])},[(0,i.bF)(u)],2)],2)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",B,[!s.templateSettings.theme||s.templateSettings.theme&&s.templateSettings.theme.includes("profile_theme_default")?((0,i.uX)(),(0,i.Wv)(d,{key:0,"show-home-button":!0})):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",{class:(0,b.C4)(["ufo--about-page","ufo--about-page-"+s.templateSettings.theme,s.portfolio.about&&(s.portfolio.about.description||s.portfolio.about.image.url)?"legacy":""])},[s.templateSettings.theme.includes("theme_one")||s.templateSettings.theme.includes("theme_two")?((0,i.uX)(),(0,i.Wv)(l,{key:0,title:s.project.name,onBack:t[1]||(t[1]=function(e){return s.navigateToPage()})},null,8,["title"])):(0,i.Q3)("v-if",!0),s.showLegacyAboutPage()?((0,i.uX)(),(0,i.CE)("div",U,[(0,i.bF)(p,null,{animationContent:(0,i.k6)(function(){return[(0,i.Lk)("div",H,[s.portfolio.about.image.url?((0,i.uX)(),(0,i.CE)("div",$,[(0,i.Lk)("img",{src:s.portfolio.about.image.url},null,8,z)])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",{class:(0,b.C4)(["about-text",s.portfolio.about.image.url?"":"no-pic"]),innerHTML:s.legacyAboutText()},null,10,W)])]}),_:1})])):(0,i.Q3)("v-if",!0)],2),s.project.sections?((0,i.uX)(),(0,i.CE)("div",G,[(0,i.bF)(c,{"default-image-alt":"",sections:s.project.sections},null,8,["sections"])])):(0,i.Q3)("v-if",!0)]),(0,i.bF)(f)],2)])])):((0,i.uX)(),(0,i.CE)("div",{key:1,class:(0,b.C4)(["ufo--portfolio-page",s.templateSettings.theme])},[(0,i.bF)(u),"theme_one"===s.templateSettings.theme||"theme_two"===s.templateSettings.theme?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,b.C4)(["ufo--about-page","ufo--about-page-"+s.templateSettings.theme])},[(0,i.bF)(l,{title:s.project.name,animated:!1,onBack:t[2]||(t[2]=function(e){return s.navigateToPage()})},null,8,["title"])],2)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",X,[(0,i.bF)(c,{sections:s.project.sections,"default-image-alt":"",class:(0,b.C4)(["ufo--about-page-sections",{"empty-list":s.project.sections.length<1}])},null,8,["sections","class"])])],2))],64))],64)}],["__scopeId","data-v-616dd494"]]);var pe=n(28668),fe=n(83108),he=n(33501),me=n(81822),ve=n(95771),ge=n(60447),ye=n(35166),be=n(91915);function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Se(Object(n),!0).forEach(function(t){_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=we(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==we(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(e){return function(e){if(Array.isArray(e))return Ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Te(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return Ae(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ae(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ae(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Ae(d,"constructor",c),Ae(c,"constructor",l),l.displayName="GeneratorFunction",Ae(c,o,"GeneratorFunction"),Ae(d),Ae(d,o,"Generator"),Ae(d,r,function(){return this}),Ae(d,"toString",function(){return"[object Generator]"}),(Te=function(){return{w:i,m:p}})()}function Ae(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ae=function(e,t,n,r){function i(t,n){Ae(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ae(e,t,n,r)}function Ee(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}const xe={name:"PageWrapper",props:["review"],components:{ReviewMode:me.A,ErrorPage:fe.A,PasswordProtection:pe.A,CustomPage:de,Project:M,ComingSoon:ve.A,Cursor:ge.default},data:function(){return{pageType:null,loaded:!1}},created:function(){var e=this;this._unwatch=this.$watch(function(){return e.$route.params},function(){e.loaded=!1,e.loadDataIfNeeded(e.$route)},{immediate:!0})},beforeUnmount:function(){var e;null===(e=this._unwatch)||void 0===e||e.call(this)},methods:{loadDataIfNeeded:function(e){var t,n=this;return(t=Te().m(function t(){var r,o,i;return Te().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!n.hydrateFromExistingViewData(e)&&!n.hydrateFromEditorStoreIfMatch(e)){t.n=1;break}return t.a(2);case 1:return t.p=1,r=n.fetchUrl(e),t.n=2,D.A.get(r);case 2:o=t.v,n.setData(null,o.data),t.n=4;break;case 3:t.p=3,i=t.v,n.setData(i,null);case 4:return t.a(2)}},t,null,[[1,3]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(e){Ee(i,r,o,s,a,"next",e)}function a(e){Ee(i,r,o,s,a,"throw",e)}s(void 0)})})()},setData:function(e,t){var n;if(e&&!t)return 404===e.response.status?(this.pageType="not_found",void(this.loaded=!0)):401===e.response.status?(this.pageType="coming_soon",void(this.loaded=!0)):(this.applyViewData(this.buildViewDataFromRe
2sponse(null===(n=e.response)||void 0===n?void 0:n.data)),this.pageType="password",void(this.loaded=!0));this.applyViewData(this.buildViewDataFromResponse(t)),this.pageType=t.pageType,this.loaded=!0},fetchUrl:function(e){var t="/data/project",n=e.params.projectShortId,r=e.params.portfolioShortId;return r&&(t+="/"+r),n&&(t+="/"+n),t},getPageTypeByProjectType:function(e){return"caseStudy"===e.type?"project":"custom"},hydrateFromExistingViewData:function(e){var t=e.params.projectShortId,n=e.params.portfolioShortId,r=this.viewData.portfolio,o=[].concat(Oe(this.viewData.portfolioPages||[]),Oe(this.viewData.caseStudies||[]));if(!r||null==o||!o.length||r.shortId!==n&&!this.rootIsOwnDomain)return!1;var i=o.find(function(e){return e.shortId===t});return!!i&&(!this.requiresPassword(i)&&(this.$store.commit("view/updateViewProject",i),this.$store.commit("view/updateActivePage",i.shortId),this.$store.state.project=i,this.pageType=this.getPageTypeByProjectType(i),this.loaded=!0,be.M.commit("view/updateViewModeReadiness",!0),!0))},hydrateFromEditorStoreIfMatch:function(e){var t,n=this.$store.state.portfolio,r=[].concat(Oe(this.$store.state.portfolioPages||[]),Oe(this.$store.state.caseStudyPages||[]));if(!n||!r.length)return!1;var o=e.params.projectShortId,i=e.params.portfolioShortId;if(!(n.shortId===i||n._id===i||n.id===i))return!1;var s=r.find(function(e){return e.shortId===o});return!!s&&(this.$store.commit("view/updateView",{portfolio:n,project:s,user:this.$store.state.user,portfolioPages:this.$store.state.portfolioPages.filter(function(e){return!e.deletedAt}),caseStudies:this.$store.state.caseStudyPages,activePage:s.shortId,loggedInUserId:null===(t=this.$store.state.user)||void 0===t?void 0:t._id,portfolioTemplate:n.templateSettings}),this.$store.commit("view/updateActivePage",s.shortId),this.$store.state.project=s,this.pageType=this.getPageTypeByProjectType(s),this.loaded=!0,be.M.commit("view/updateViewModeReadiness",!0),!0)},requiresPassword:function(e){var t=this.$cookies.get(e.shortId),n=this.viewData.portfolio||this.$store.state.portfolio,r=e.password||(null==n?void 0:n.password),o=e.password&&e.password===t||(null==n?void 0:n.password)&&n.password===t;return r&&!this.isOwnerIsLoggedIn&&!o},buildViewDataFromResponse:function(e){if(this.viewData.fontsLoaded&&"project"!==e.pageType||((0,R.zQ)(e.fonts),e.fontNames.filter(function(t){return!e.fonts.map(function(e){return e.name}).includes(t)}).forEach(function(e){return he.A.getFontURL(e)}),this.viewData.fontsLoaded=!0),e.loggedInUserId===e.project.ownerId&&ye.z.getUser().then(function(){return c.A.getPortfolios()}).then(function(){return be.M.commit("view/updateViewModeReadiness",!0)}).catch(function(){return be.M.commit("view/updateViewModePreloadFailed",!0)}),this.$store.state.portfolio=e.portfolio,this.$store.state.project=e.project,!e.portfolio.templateSettings.theme.includes("profile_"))try{n(19600)("./_".concat(e.portfolio.templateSettings.theme.replaceAll("_","-").replace("profile_",""),"-base.scss"))}catch(e){console.log("failed to import scss")}return{portfolio:e.portfolio,project:e.project,user:e.user,portfolioPages:e.portfolioPages,caseStudies:e.caseStudies,activePage:e.project.shortId,loggedInUserId:e.loggedInUserId,portfolioTemplate:e.portfolioTemplate}},applyViewData:function(e){this.$store.commit("view/updateView",e),this.$store.commit("view/updateActivePage",e.activePage)}},computed:ke(ke({},(0,O.L8)("view",["viewData"])),{},{currentComponent:function(){if(!this.loaded)return null;switch(this.pageType){case"project":return"Project";case"custom":return"CustomPage";case"password":return"PasswordProtection";case"not_found":return"ErrorPage";case"coming_soon":return"ComingSoon";default:return null}},currentProps:function(){switch(this.pageType){case"password":return{fetchUrl:this.fetchUrl,setData:this.setData,type:"Case Study"};case"coming_soon":return{type:"Case Study"};case"not_found":return{error:{code:404,title:"This page doesn't exist",message:"We can't seem to find the page you are looking for"}};default:return{}}},isOwnerIsLoggedIn:function(){return this.viewData.loggedInUserId===this.$store.state.project.ownerId},rootIsOwnDomain:function(){return this.viewData.portfolio.ownDomainAddress&&location.origin.includes(this.viewData.portfolio.ownDomainAddress)}})},Pe=(0,v.A)(xe,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("ReviewMode"),l=(0,i.g2)("Cursor");return(0,i.uX)(),(0,i.CE)(i.FK,null,[e.loaded?((0,i.uX)(),(0,i.CE)("div",y,[n.review&&"coming_soon"!==e.pageType?((0,i.uX)(),(0,i.Wv)(a,{key:0},{default:(0,i.k6)(function(){return[((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.currentComponent),(0,i.v6)({key:e.$route.params.projectShortId||e.pageType},s.currentProps),null,16))]}),_:1})):((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.currentComponent),(0,i.v6)({key:e.$route.params.projectShortId||e.pageType},s.currentProps),null,16))])):(0,i.Q3)("v-if",!0),(0,i.bF)(l)],64)}]]);var Ie=n(87840);var Le={key:0,class:"review-wrapper"};var je=n(16259),Me=n(85041),De=n(76647);const Re=function(e){return D.A.get("/api/review/"+e)},Ne=n.p+"src/assets/images/ill-logo-volt-circle.945deec5.png";function Fe(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return Be(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Be(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Be(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Be(d,"constructor",c),Be(c,"constructor",l),l.displayName="GeneratorFunction",Be(c,o,"GeneratorFunction"),Be(d),Be(d,o,"Generator"),Be(d,r,function(){return this}),Be(d,"toString",function(){return"[object Generator]"}),(Fe=function(){return{w:i,m:p}})()}function Be(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Be=function(e,t,n,r){function i(t,n){Be(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Be(e,t,n,r)}function Ue(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function He(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){Ue(i,r,o,s,a,"next",e)}function a(e){Ue(i,r,o,s,a,"throw",e)}s(void 0)})}}const $e={name:"ReceiverMode",components:{ReviewNav:je.A,Overview:Me.A},data:function(){return{reviews:null,emptyState:!1,loaded:!1}},mounted:function(){this.checkUser()},methods:{checkUser:function(){var e=this;return He(Fe().m(function t(){var n,r;return Fe().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,De.A.getMyUser();case 1:return n=t.v,t.n=2,De.A.getUserSettings(n.data.user._id);case 2:return r=t.v,e.$store.state.userSettings=n.data,e.$store.commit("setCurrentPlan",r.data.currentSubscriptionPlan),e.$store.state.user=n.data.user,e.$reviewStore.review.receiver=!0,t.n=3,e.getReviews();case 3:t.n=5;break;case 4:t.p=4,t.v,window.location.replace(window.location.origin);case 5:return t.a(2)}},t,null,[[0,4]])}))()},getReviews:function(){var e=this;return He(Fe().m(function t(){var n,r,o,i,s;return Fe().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,Re(e.$store.state.portfolio._id);case 1:n=t.v,e.reviews=n.data,n.data.length?(r=e.$route.query.reviewer,o=n.data[0],i=n.data.find(function(e){return e.reviewerDetails._id===r}),e.$reviewStore.review=i||o,e.$reviewStore.reviews=n.data):(e.emptyState=!0,e.setEmptyState()),e.loaded=!0,t.n=3;break;case 2:t.p=2,s=t.v,console.log("e",s);case 3:return t.a(2)}},t,null,[[0,2]])}))()},setEmptyState:function(){var e={followUps:[],overview:{positiveAspects:"<p>This is the place for what works in your portfolio: <ul><li>look & feel</li><li>information architecture</li><li>clarity of explanations</li></p>",negativeAspects:"<p>This is the place for things that could be improved: <ul><li>look & feel</li><li>information architecture</li><li>clarity of explanations</li></p>"},reviewerDetails:{name:"Example Reviewer",jobTitle:"Portfolio Expert @UXfolio",email:"[email protected]",image:{url:Ne}},sectionReactions:[{sectionId:"portfolio-hero",reaction:"💖",comments:[{text:"I love your font choice!",label:"Design",createdAt:Date.now()}],pageData:{shortId:"home",name:"Home"}}]};this.$reviewStore.review=e,this.$reviewStore.reviews=[e]}}},ze=(0,v.A)($e,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("ReviewNav"),l=(0,i.g2)("Overview");return o.loaded?((0,i.uX)(),(0,i.CE)("div",Le,[(0,i.bF)(a,{reviewMode:!1}),(0,i.RG)(e.$slots,"default"),(0,i.bF)(l,{reviewMode:!1,"is-empty":o.emptyState},null,8,["is-empty"])])):(0,i.Q3)("v-if",!0)}]]);var We=n(64068);function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Xe(Object(n),!0).forEach(function(t){Ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qe(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return Ye(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Ye(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ye(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Ye(d,"constructor",c),Ye(c,"constructor",l),l.displayName="GeneratorFunction",Ye(c,o,"GeneratorFunction"),Ye(d),Ye(d,o,"Generator"),Ye(d,r,function(){return this}),Ye(d,"toString",function(){return"[object Generator]"}),(qe=function(){return{w:i,m:p}})()}function Ye(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Ye=function(e,t,n,r){function i(t,n){Ye(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Ye(e,t,n,r)}function Qe(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Je(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){Qe(i,r,o,s,a,"next",e)}function a(e){Qe(i,r,o,s,a,"throw",e)}s(void 0)})}}const Ze={name:"ReviewWrapper",components:{ReviewMode:me.A,PortfolioPage:We.A,Project:M,CustomPage:de,PasswordProtection:pe.A,ErrorPage:fe.A,ReceiverMode:ze,ComingSoon:ve.A},props:["review"],data:function(){return{loaded:!1,pageType:null,projectShortId:null,error:!1}},mounted:function(){this.$reviewStore.isReviewMode=!0,this.$reviewStore.receiver=!this.review},beforeRouteEnter:function(e,t,n){return Je(qe().m(function t(){var r,o,i,s;return qe().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,r="/data",(o=e.params.portfolioShortId)?(r+="/shortid/"+o,e.params.projectShortId&&(r+="/"+e.params.projectShortId)):r+="/portfolio",t.n=1,D.A.get(r+"?isReview=true");case 1:i=t.v,n(function(e){return e.setData(i.status,i.data)}),t.n=3;break;case 2:t.p=2,s=t.v,n(function(e){return e.setData(s,null)});case 3:return t.a(2)}},t,null,[[0,2]])}))()},beforeRouteUpdate:function(e,t){var n=this;return Je(qe().m(function t(){var r,o,i,s;return qe().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,r=n.projectFetchUrl(e),t.n=1,D.A.get(r+"?isReview=true");case 1:o=t.v,i=o.data,n.setData(null,i),t.n=3;break;case 2:t.p=2,s=t.v,console.log("error",s);case 3:return t.a(2)}},t,null,[[0,2]])}))()},methods:{setData:function(e,t){if(e&&!t){if(404===e.response.status)return this.pageType="not_found",this.error=!0,void(this.loaded=!0);if(401===e.response.status)return this.pageType="coming_soon",void(this.loaded=!0)}this.viewData.fontsLoaded||((0,R.zQ)(t.fonts),t.fontNames.filter(function(e){return!t.fonts.map(function(e){return e.name}).includes(e)}
2).forEach(function(e){he.A.getFontURL(e)}),this.viewData.fontsLoaded=!0);this.password=!1;var r={portfolio:t.portfolio,project:t.project,user:t.user,portfolioPages:t.portfolioPages,activePage:t.project.shortId,caseStudies:t.caseStudies,hasDraftCasestudies:t.hasDraftCasestudies,loggedInUserId:t.loggedInUserId,emergencyModeSettings:t.emergencyModeSettings};if("home"===t.project.type?this.pageType="portfolio":"caseStudy"===t.project.type?this.pageType="project":this.pageType="custom",this.$store.commit("view/updateView",r),!t.portfolio.templateSettings.theme.includes("profile_"))try{n(19600)("./_".concat(t.portfolio.templateSettings.theme.replaceAll("_","-").replace("profile_",""),"-base.scss"))}catch(e){console.log("failed to import scss")}this.$store.state.portfolio=t.portfolio,this.$store.state.project=t.project,this.loaded=!0},projectFetchUrl:function(e){var t="/data/project",n=e.params.projectShortId,r=e.params.portfolioShortId;return r&&(t+="/"+r),n&&(t+="/"+n),t}},computed:Ve(Ve({},(0,O.L8)("view",["viewData"])),{},{currentComponent:function(){if(!this.loaded)return null;switch(this.pageType){case"project":return"Project";case"custom":return"CustomPage";case"not_found":return"ErrorPage";case"portfolio":return"PortfolioPage";case"coming_soon":return"ComingSoon";default:return null}},currentProps:function(){return this.error?{error:{code:404,title:"This page doesnât exist",message:"We canât seem to find the page you are looking for"}}:"coming_soon"===this.pageType?{type:"Case Study"}:{}},currentMode:function(){return this.review?"ReviewMode":"ReceiverMode"}})},et=(0,v.A)(Ze,[["render",function(e,t,n,r,o,s){return"ErrorPage"!==s.currentComponent&&"ComingSoon"!==s.currentComponent?((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.currentMode),{key:0},{default:(0,i.k6)(function(){return[((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.currentComponent),(0,b._B)((0,i.Ng)(s.currentProps)),null,16))]}),_:1})):((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.currentComponent),(0,b._B)((0,i.v6)({key:1},s.currentProps)),null,16))}]]);var tt=n(53751);function nt(e){return function(e){if(Array.isArray(e))return rt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return rt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ot={class:"jfc-wrapper"},it={key:0,class:"jfc-page-content"},st={class:"previous-results"},at={class:"page-title"},lt={class:"results"},ct={class:"left"},ut={class:"job-title"},dt={class:"job-company"},pt=["title"],ft={class:"center"},ht={class:"created"},mt={class:"score-content"},vt={class:"score-bar"},gt={class:"score-text"},yt={class:"right"},bt={class:"jfc-sidebar-title"},wt={class:"jfc-sidebar-content"},St={key:0,class:"job-description-content"},kt={class:"job-description-form"},_t={class:"inputs"},Ot={key:0},Ct={key:0},Tt={class:"description-input-container"},At={key:2,class:"jfc-sidebar-actions"};var Et={class:"navigation-row-container"},xt={class:"left-side"},Pt={class:"main-text"},It={class:"limit-container"},Lt={class:"right-side"},jt={class:"button-container"};var Mt=n(47233),Dt=n(34528),Rt=n(5412),Nt=n(46335),Ft=n(61556),Bt=n(68072);function Ut(e){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(e)}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Ht(Object(n),!0).forEach(function(t){zt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ut(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wt={name:"JFCNavigation",emits:["changeSidebar"],props:{activeContent:{type:String}},components:{LimitTag:Bt.A,NavBarPill:Ft.A,Icon:Nt.A,CtaButton:Rt.A,InlineSvg:Dt.A},data:function(){return{logo:Mt}},computed:$t($t({AiFeatures:function(){return o._s}},(0,O.L8)("jfc",["previousJFCResults"])),{},{hasUser:function(){return console.log(this.$store.state.user),null!=this.$store.state.user},isUserPremiumOrVip:function(){return console.log(this.$store.getters.userIsPremium),console.log(this.$store.getters.userIsVIP),this.$store.getters.userIsPremium||this.$store.getters.userIsVIP}})},Gt=(0,v.A)(Wt,[["render",function(e,t,n,r,o,s){var a,l=(0,i.g2)("InlineSvg"),c=(0,i.g2)("LimitTag"),u=(0,i.g2)("NavBarPill");return(0,i.uX)(),(0,i.CE)("div",Et,[(0,i.Lk)("div",xt,[(0,i.Lk)("div",Pt,[(0,i.bF)(l,{src:o.logo},null,8,["src"]),t[3]||(t[3]=(0,i.Lk)("div",null,"Job fit checker",-1))]),(0,i.Lk)("div",It,[s.hasUser&&!s.isUserPremiumOrVip?((0,i.uX)(),(0,i.Wv)(c,{key:0,"ai-feature":s.AiFeatures.JOB_FIT_CHECKER},null,8,["ai-feature"])):(0,i.Q3)("v-if",!0)])]),(0,i.Lk)("div",Lt,[(0,i.Lk)("div",jt,["previousResults"===n.activeContent?((0,i.uX)(),(0,i.Wv)(u,{key:0,label:"Back to current result","icon-name":"back",onButtonClicked:t[0]||(t[0]=function(t){return e.$emit("changeSidebar","jfcResult")}),"dark-scheme":""})):(0,i.Q3)("v-if",!0),(0,i.bF)(u,{label:"Restart","icon-name":"restart",onButtonClicked:t[1]||(t[1]=function(t){return e.$emit("changeSidebar","jobDescription")}),"dark-scheme":""}),null!==(a=e.previousJFCResults)&&void 0!==a&&a.length?((0,i.uX)(),(0,i.Wv)(u,{key:1,label:"Previous results","icon-name":"history-clock",onButtonClicked:t[2]||(t[2]=function(t){return e.$emit("changeSidebar","previousResults")}),active:"previousResults"===n.activeContent,"dark-scheme":""},null,8,["active"])):(0,i.Q3)("v-if",!0)])])])}],["__scopeId","data-v-c5d725e4"]]);var Xt=n(92584),Vt=n(4760),Kt=n(17672),qt=n(37794),Yt={class:"job-fit-result-content"},Qt={class:"jfc-tab-content"},Jt={key:0,class:"overview-container"},Zt={class:"score-section"},en={class:"score-summary"},tn={class:"score"},nn={class:"score-bar"},rn={key:0,class:"score-details"},on={class:"overview-section"},sn={class:"overview-container"},an={class:"list"},ln={class:"overview-container"},cn={class:"list"},un={key:1,class:"breakdown-container"},dn=["onClick"],pn={class:"page-name"},fn={key:0,class:"accordion-body"},hn={key:0},mn={class:"list"},vn={key:1},gn={class:"list"},yn={key:2,class:"job-description-container"},bn={class:"job-description-container"},wn={class:"job-title-and-description"},Sn={class:"text-box"},kn={class:"text-box"},_n={class:"text-box"};var On=n(97229),Cn=n(80074);function Tn(e){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(e)}function An(e){return function(e){if(Array.isArray(e))return En(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return En(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?xn(Object(n),!0).forEach(function(t){In(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function In(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ln={name:"JFCResult",components:{Icon:Nt.A,TabItem:Cn.A,TabBar:On.A},props:["jobFitResult"],data:function(){return{activeTab:"overview",tabs:[{value:"overview",label:"Overview"},{value:"breakdown",label:"Breakdown"},{value:"jobDescription",label:"Job Description"}],openedSection:"",showScores:!1}},computed:{averageScore:function(){var e=this.jobFitResult.jobFitScore;return Math.round((e.hardSkills+e.experience+e.toolsSoftware+e.industryExperience)/4)},scoreSegments:function(){var e=this,t=this.jobFitResult.jobFitScore,n=t.hardSkills+t.experience+t.toolsSoftware+t.industryExperience;return[{label:"Hard skills",value:t.hardSkills,color:"#7C9300"},{label:"Experience",value:t.experience,color:"#AFCE00"},{label:"Tools/software",value:t.toolsSoftware,color:"#E7FF64"},{label:"Industry experience",value:t.industryExperience,color:"#F7FFCD"}].map(function(t){return Pn(Pn({},t),{},{width:t.value/n*e.averageScore})})},allBreakdownItems:function(){return[].concat(An(this.jobFitResult.portfolioBreakdown.pages||[]),An(this.jobFitResult.portfolioBreakdown.caseStudies||[]))}},methods:{changeTab:function(e){this.activeTab=e},toggleSection:function(e){this.openedSection=this.openedSection===e?"":e}}},jn=(0,v.A)(Ln,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("TabItem"),l=(0,i.g2)("TabBar"),c=(0,i.g2)("Icon");return(0,i.uX)(),(0,i.CE)("div",Yt,[(0,i.bF)(l,{"dark-scheme":"",class:"jfc-tabs"},{default:(0,i.k6)(function(){return[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(o.tabs,function(e){return(0,i.uX)(),(0,i.Wv)(a,{key:e.value,"dark-scheme":"",label:e.label,active:e.value===o.activeTab,onClick:function(t){return s.changeTab(e.value)}},null,8,["label","active","onClick"])}),128))]}),_:1}),(0,i.Lk)("div",Qt,["overview"===o.activeTab?((0,i.uX)(),(0,i.CE)("div",Jt,[(0,i.Lk)("div",Zt,[(0,i.Lk)("div",en,[t[2]||(t[2]=(0,i.Lk)("div",null,"Job Fit Score:",-1)),(0,i.Lk)("div",tn,(0,b.v_)(s.averageScore)+"%",1)]),(0,i.Lk)("div",{class:"score-wrapper",onMouseenter:t[0]||(t[0]=function(e){return o.showScores=!0}),onMouseleave:t[1]||(t[1]=function(e){return o.showScores=!1})},[(0,i.Lk)("div",nn,[o.showScores?((0,i.uX)(!0),(0,i.CE)(i.FK,{key:1},(0,i.pI)(s.scoreSegments,function(e,t){return(0,i.uX)(),(0,i.CE)("div",{class:"score-segment",key:"seg-"+t,style:(0,b.Tr)({width:e.width+"%",backgroundColor:e.color})},null,4)}),128)):((0,i.uX)(),(0,i.CE)("div",{key:0,class:"score-fill",style:(0,b.Tr)({width:s.averageScore+"%",backgroundColor:"var(--volt)"})},null,4))]),o.showScores?((0,i.uX)(),(0,i.CE)("div",rn,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(s.scoreSegments,function(e,t){return(0,i.uX)(),(0,i.CE)("div",{key:"label-"+t,class:"score-label"},[(0,i.Lk)("span",{style:(0,b.Tr)({backgroundColor:e.color}),class:"dot"},null,4),(0,i.Lk)("span",null,(0,b.v_)(e.label),1)])}),128))])):(0,i.Q3)("v-if",!0)],32)]),(0,i.Lk)("div",on,[(0,i.Lk)("div",sn,[t[3]||(t[3]=(0,i.Lk)("div",{class:"title"},"Top strengths",-1)),(0,i.Lk)("div",an,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(n.jobFitResult.portfolioOverview.strengths,function(e,t){return(0,i.uX)(),(0,i.CE)("div",{key:"strength-"+t,class:"list-item"},[(0,i.bF)(c,{width:20,height:20,"icon-name":"check"}),(0,i.eW)(" "+(0,b.v_)(e),1)])}),128))])]),(0,i.Lk)("div",ln,[t[4]||(t[4]=(0,i.Lk)("div",{class:"title"},"Key gaps",-1)),(0,i.Lk)("div",cn,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(n.jobFitResult.portfolioOverview.gaps,function(e,t){return(0,i.uX)(),(0,i.CE)("div",{key:"gap-"+t,class:"list-item"},[(0,i.bF)(c,{width:20,height:20,"icon-name":"minus"}),(0,i.eW)(" "+(0,b.v_)(e),1)])}),128))])])])])):(0,i.Q3)("v-if",!0),"breakdown"===o.activeTab?((0,i.uX)(),(0,i.CE)("div",un,[t[7]||(t[7]=(0,i.Lk)("div",{class:"title"},"Breakdown of results",-1)),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(s.allBreakdownItems,function(e){return(0,i.uX)(),(0,i.CE)("div",{class:"accordion",key:e.projectShortId},[(0,i.Lk)("div",{onClick:function(){return s.toggleSection(e.projectShortId)},class:(0,b.C4)(["accordion-title",{open:o.openedSection===e.projectShortId}])},[(0,i.Lk)("div",pn,(0,b.v_)(e.name)+" ("+(0,b.v_)(e.gaps.length)+")",1),(0,i.bF)(c,{"icon-name":o.openedSection===e.projectShortId?"chevron-up":"chevron-down"},null,8,["icon-name"])],10,dn),o.openedSection===e.projectShortId?((0,i.uX)(),(0,i.CE)("div",fn,[e.strengths.length?((0,i.uX)(),(0,i.CE)("div",hn,[t[5]||(t[5]=(0,i.Lk)("div",{class:"title"},"Top strengths",-1)),(0,i.Lk)("div",mn,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.strengths,function(e,t){return(0,i.uX)(),(0,i.CE)("div",{key:"s-"+t,class:"list-item"},[(0,i.bF)(c,{width:20,height:20,"icon-name":"check"}),(0,i.eW)(" "+(0,b.v_)(e),1)])}),128))])])):(0,i.Q3)("v-if",!0),e.gaps.length?((0,i.uX)(),(0,i.CE)("div",vn,[t[6]||(t[6]=(0,i.Lk)("div",{class:"title"},"Key gaps",-1)),(0,i.Lk)("div",gn,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.gaps,function(e,t){return(0,i.uX)(),(0,i.CE)("div",{key:"g-"+t,class:"list-item"},[(0,i.bF)(c,{width:20,height:20,"icon-name":"minus"}),(0,i.eW)(" "+(0,b.v_)(e.label),1)])}),128))])])):(0,i.Q3)("v-if",!0)])):(0,i.Q3)("v-if",!0)])}),128))])):(0,i.Q3)("v-if",!0),"jobDescription"===o.activeTab?((0,i.uX)(),(0,i.CE)("div",yn,[t[8]||(t[8]=(0,i.Lk)("div",{class:"title"},"Job description",-1)),(0,i.Lk)("div",bn,[(0,i.Lk)("div",wn,[(0,i.Lk)("div",Sn,(0,b.v_)(n.jobFitResult.jobTitle),1),(0,i.Lk)("div",kn,(0,b.v_)(n.jobFitResult.jobCompany),1)]),(0,i.Lk)("div",_n,(0,b.v_)(n.jobFitResult.jobDescription),1)])])):(0,i.Q3)("v-if",!0)])])}],["__scopeId","data-v-70e91704"]]);var Mn=n(805),Dn=n(89954),Rn=n(88248),Nn=n(72751),Fn=n(36193),Bn=n(33639),Un=n(18957),Hn=n(
25729);function $n(e){return function(e){if(Array.isArray(e))return zn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return zn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Wn=n(79271),Gn=n(8851),Xn=n(55445);const Vn={name:"generate-checklist-modal",components:{ModalFooter:n(13124).A,ModalBody:Xn.A,ModalHeader:Gn.A,ModalWrapper:Wn.A,Cta:Rt.A},emits:["close","edit-portfolio","duplicate-portfolio"],methods:{handleEditPortfolio:function(){this.closeModal(),this.$emit("edit-portfolio")},handleDuplicatePortfolio:function(){this.closeModal(),this.$emit("duplicate-portfolio")},closeModal:function(){this.$emit("close")}}};function Kn(e){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn(e)}function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach(function(t){Qn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Kn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return Zn(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Zn(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Zn(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Zn(d,"constructor",c),Zn(c,"constructor",l),l.displayName="GeneratorFunction",Zn(c,o,"GeneratorFunction"),Zn(d),Zn(d,o,"Generator"),Zn(d,r,function(){return this}),Zn(d,"toString",function(){return"[object Generator]"}),(Jn=function(){return{w:i,m:p}})()}function Zn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Zn=function(e,t,n,r){function i(t,n){Zn(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Zn(e,t,n,r)}function er(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function tr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){er(i,r,o,s,a,"next",e)}function a(e){er(i,r,o,s,a,"throw",e)}s(void 0)})}}const nr={name:"JFCLayout",components:{GenerateChecklistModal:(0,v.A)(Vn,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("ModalHeader"),l=(0,i.g2)("ModalBody"),c=(0,i.g2)("Cta"),u=(0,i.g2)("ModalFooter"),d=(0,i.g2)("ModalWrapper");return(0,i.uX)(),(0,i.Wv)(d,{"dark-scheme":"",onClose:t[0]||(t[0]=function(e){return s.closeModal()}),"modal-size":"small"},{"modal-header":(0,i.k6)(function(){return[(0,i.bF)(a,{"dark-scheme":"",title:"Generate your checklist"})]}),"modal-body":(0,i.k6)(function(){return[(0,i.bF)(l,{"text-align":"center"},{default:(0,i.k6)(function(){return $n(t[1]||(t[1]=[(0,i.Lk)("div",{class:"generate-checklist-content"},[(0,i.Lk)("div",null,"Would you like to add the checklist to your existing portfolio or a duplicate version of the same portfolio?")],-1)]))}),_:1})]}),"modal-footer":(0,i.k6)(function(){return[(0,i.bF)(u,null,{default:(0,i.k6)(function(){return[(0,i.bF)(c,{type:"secondary","dark-scheme":"",onClick:s.handleEditPortfolio},{default:(0,i.k6)(function(){return $n(t[2]||(t[2]=[(0,i.eW)("Existing portfolio",-1)]))}),_:1},8,["onClick"]),(0,i.bF)(c,{type:"primary","dark-scheme":"",onClick:s.handleDuplicatePortfolio},{default:(0,i.k6)(function(){return $n(t[3]||(t[3]=[(0,i.eW)("Duplicate portfolio",-1)]))}),_:1},8,["onClick"])]}),_:1})]}),_:1})}],["__scopeId","data-v-030569c8"]]),AlertMessage:Fn.A,AILoader:Nn.A,ScrollableContainer:Dn.A,JFCResult:jn,CtaButton:Rt.A,PromptSelector:Kt.A,SimpleAiButton:Vt.A,TextArea:Xt.A,JFCNavigation:Gt,Icon:Nt.A,Input:u.A},data:function(){return{contentOptions:{jobDescription:"Check your portfolioâs job fit",jfcResult:"Result & suggestions",previousResults:"Previous matches"},activeContent:"jobDescription",jobTitle:"",jobCompany:"",jobDescription:"",jobDescriptionHtml:"",generationError:!1,cancelGeneration:!1,isJobTitleMissing:!1,isJobCompanyMissing:!1,jobFitResult:null,isGenerateChecklistModalOpen:!1,loadState:null,loadSteps:{analyzing:[{id:1,text:"Loading your portfolio..."},{id:2,text:"Scanning portfolio structure..."},{id:3,text:"Extracting case studies and project details..."},{id:4,text:"Parsing job description..."},{id:5,text:"Identifying portfolio sections..."},{id:6,text:"Extracting project titles and descriptions..."},{id:7,text:"Extracting testimonials and social proof..."},{id:8,text:"Identifying portfolio call-to-actions..."},{id:9,text:"Checking for missing sections..."},{id:10,text:"Extracting key job requirements..."},{id:11,text:"Checking for relevant keywords..."},{id:12,text:"Assessing experience alignment..."}],returnToEditor:[{id:1,text:"Extracting key gaps..."},{id:2,text:"Refining insights for your next steps..."},{id:3,text:"Bringing the insights into the editor..."},{id:4,text:"Almost there..."},{id:5,text:"Finalizing the checklist..."}],duplicating:[{id:1,text:"Transferring images and media..."},{id:2,text:"Cloning text and custom sections..."},{id:3,text:"Copying your portfolio structure..."},{id:4,text:"Preserving layout and design..."},{id:5,text:"Setting up your duplicate..."},{id:6,text:"Finalising duplicate..."},{id:7,text:"Your portfolio copy is almost ready..."}]},draft:"About UXfolio\nAt UXfolio, we empower UX and product designers by providing a platform to create stunning portfolios that stand out to hiring managers. Our team is passionate about building intuitive, design-centric tools that streamline the hiring process and showcase designersâ best work.\n\nWeâre looking for a Product Designer to help shape the future of UXfolio. If youâre passionate about user experience, love solving design challenges, and thrive in a fast-moving SaaS environment, weâd love to hear from you!\n\nResponsibilities\n\tâ¢\tDesign end-to-e
2nd user experiences, from concept to final implementation.\n\tâ¢\tConduct user research and usability testing to inform design decisions.\n\tâ¢\tCollaborate with product managers, engineers, and other designers to ship impactful features.\n\tâ¢\tDevelop wireframes, prototypes, and high-fidelity UI designs.\n\tâ¢\tMaintain and evolve our design system for consistency and scalability.\n\tâ¢\tIterate based on user feedback, data insights, and business goals.\n\tâ¢\tEnsure accessibility and usability best practices are met in all designs.\n\nRequired Skills\n\tâ¢\tStrong visual and interaction design skills.\n\tâ¢\tProficiency in Figma and design system methodologies.\n\tâ¢\tAbility to conduct user research and translate insights into design improvements.\n\tâ¢\tExperience designing for SaaS or B2B platforms.\n\tâ¢\tStrong understanding of UX principles, usability heuristics, and accessibility standards.\n\tâ¢\tExcellent collaboration and communication skills.\n\nPreferred Skills\n\tâ¢\tExperience with motion design and microinteractions.\n\tâ¢\tKnowledge of HTML/CSS (you wonât code, but understanding feasibility is key).\n\tâ¢\tFamiliarity with AI-driven design tools and workflows.\n\tâ¢\tExperience working with analytics tools like Hotjar, Mixpanel, or Amplitude.\n\nExperience Level\nMid-Level (3â5 years of experience in product/UX design).\n\nIndustries\nSaaS, B2B, Design Tools, Hiring & Recruitment.\n\nEducation & Certifications\n\tâ¢\tDegree in Design, HCI, or a related field is a plus, but not required.\n\tâ¢\tRelevant certifications (e.g., Google UX Design Certificate) are a bonus.\n\nSoftware & Tools\n\tâ¢\tFigma (primary design tool)\n\tâ¢\tMiro (for collaboration and brainstorming)\n\tâ¢\tNotion (for documentation and design specs)\n\tâ¢\tJira (for project management)\n\tâ¢\tHotjar or Mixpanel (for user analytics)\n\nKeywords\nUser-Centered Design, SaaS, B2B, UX Research, Wireframes, Prototyping, Design Systems, Accessibility, User Testing, Data-Driven Design, Cross-Functional Collaboration.\n\nCompany Values & Culture\nAt UXfolio, we believe in designing with empathy, iterating fast, and learning continuously. Our remote-first culture fosters flexibility, ownership, and a strong focus on collaboration. We encourage innovation and provide opportunities for professional growth.\n\nCompensation & Benefits\n\tâ¢\tCompetitive salary (EUR 50,000â65,000/year, based on experience)\n\tâ¢\tFlexible working hours and remote work\n\tâ¢\tAnnual learning budget for courses, conferences, and books\n\tâ¢\tTeam retreats and offsite meetups\n\tâ¢\tHome office setup allowance\n\nApplication Process\n\tâ¢\tSubmit your resume and portfolio via our application portal.\n\tâ¢\tShortlisted candidates will complete a design challenge (paid).\n\tâ¢\tFinal stage: A chat with our team to discuss culture fit and ways of working.",userPortfolios:[],deletingId:null}},mounted:function(){var e=this;return tr(Jn().m(function t(){var n;return Jn().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Rn.A.getPortfolios(e.viewData.loggedInUserId);case 1:n=t.v,e.userPortfolios=n.data;case 2:return t.a(2)}},t)}))()},methods:{getPortfolioName:function(e){return this.userPortfolios.find(function(t){return t.shortId===e||t._id.endsWith(e)}).name},closeGenerator:function(){this.loadState=null,this.generationError=!1},retryGeneration:function(){this.generationError=!1,this.loadState="analyzing",this.handleSubmit()},stopGeneration:function(){this.cancelGeneration=!0,this.closeGenerator()},setJobDescription:function(e){this.promptError=!1,this.jobDescription=e},setJobDescriptionHtml:function(e){this.jobDescriptionHtml=e},handleUseDraftClicked:function(){this.jobTitle="Product Designer",this.jobCompany="UXfolio"},handleSidebarChange:function(e){var t=this;"jobDescription"===e&&(this.jobTitle="",this.jobCompany="",this.jobDescription="",this.jobDescriptionHtml="",this.isJobTitleMissing=!1,this.isJobCompanyMissing=!1,this.$nextTick(function(){var e,n;null===(e=t.$refs.promptSelectorRef)||void 0===e||null===(n=e.clearEditor)||void 0===n||n.call(e)})),this.activeContent=e},selectPreviousResult:function(e){this.jobFitResult=e,this.activeContent="jfcResult",this.$store.commit("jfc/setActiveJFCResult",e),this.$router.replace("/jobfitchecker/".concat(e.portfolioShortId))},formatDateSince:function(e){return(0,Mn.f)(e)},deletePreviousResult:function(e){var t=this;return tr(Jn().m(function n(){var r;return Jn().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,t.deletingId=e.id,n.n=1,Un.A.deleteJobFitCheck(e.id);case 1:return n.n=2,t.$store.dispatch("jfc/fetchPreviousJFCResults");case 2:t.deletingId=null,t.$store.commit("showAlertMessage",{type:"success",message:"Insight deleted."}),n.n=4;break;case 3:n.p=3,r=n.v,console.error("Failed to delete and refresh JFC results",r),t.deletingId=null,t.$store.commit("showAlertMessage",{type:"alert",message:"Can't delete insight"});case 4:return n.a(2)}},n,null,[[0,3]])}
2))()},getAverageScore:function(e){return Math.round((e.hardSkills+e.experience+e.toolsSoftware+e.industryExperience)/4)},handleSubmit:function(){var e=this;return tr(Jn().m(function t(){var n,r,i,s,a,l,c;return Jn().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e.validateInput(),!e.hasError){t.n=1;break}return t.a(2);case 1:return t.p=1,e.loadState="analyzing",n=e.viewData.user._id,r=e.viewData.portfolio.shortId,i={jobTitle:e.jobTitle,jobCompany:e.jobCompany,jobDescription:e.jobDescription,portfolioShortId:r,ownerId:n},t.n=2,qt.A.generateJobFitCheck(i);case 2:return s=t.v,console.log(s),t.n=3,e.pollResponseEndpoint(s.data.jobId);case 3:if(a=t.v,console.log(a),(null==a?void 0:a.status)!==o.NW.CANCELLED){t.n=4;break}return t.a(2);case 4:if(a&&"COMPLETED"===a.status&&!a.error){t.n=5;break}return e.generationError=!0,t.a(2);case 5:l=a.result,e.$store.commit("jfc/setActiveJFCResult",l),e.$store.commit("jfc/updateJFCResults",l),e.jobFitResult=l,e.activeContent="jfcResult",e.$store.state.user.featureTokens[o._s.JOB_FIT_CHECKER]-=1,t.n=7;break;case 6:t.p=6,c=t.v,e.generationError=!0,console.error("Failed to generate with AI:",c);case 7:return t.p=7,e.loadState=null,Bn.A.track("ANALYSE_CTA_CLICKED",Yn(Yn({},Bn.A.getUrls()),{},{event_group:Bn.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:"Job Description Input Page"})),t.f(7);case 8:return t.a(2)}},t,null,[[1,6,7,8]])}))()},pollResponseEndpoint:function(e){var t=this;return tr(Jn().m(function n(){var r,i;return Jn().w(function(n){for(;;)switch(n.p=n.n){case 0:return t.cancelGeneration=!1,n.p=1,n.n=2,(0,Hn.r)(e,{pollInterval:3e3,failureMessage:"Failed to generate AI response.",timeoutMessage:"AI response timed out.",resolveWithPayload:!0,shouldCancel:function(){return t.cancelGeneration},cancelResult:{status:o.NW.CANCELLED}});case 2:return r=n.v,n.a(2,r);case 3:return n.p=3,i=n.v,console.error("Failed to generate AI response",i),n.a(2,null)}},n,null,[[1,3]])}))()},handleEditPortfolio:function(){var e=this;return tr(Jn().m(function t(){return Jn().w(function(t){for(;;)switch(t.n){case 0:return e.loadState="returnToEditor",t.n=1,Un.A.linkJobFitCheckToPortfolio(e.viewData.portfolio.shortId,e.jobFitResult.id,e.viewData.loggedInUserId);case 1:Bn.A.track("EDIT_PORTFOLIO_CLICKED",Yn(Yn({},Bn.A.getUrls()),{},{event_group:Bn.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:"Insights Page"})),e.$router.push({path:"/home/portfolios/".concat(e.viewData.portfolio.shortId),query:{skipJfc:!0}});case 2:return t.a(2)}},t)}))()},handleDuplicatePortfolio:function(){var e=this;return tr(Jn().m(function t(){var n,r,o,i;return Jn().w(function(t){for(;;)switch(t.p=t.n){case 0:return e.loadState="duplicating",t.p=1,t.n=2,Rn.A.duplicatePortfolio(e.viewData.loggedInUserId,e.$store.state.portfolio,"".concat(e.jobFitResult.jobTitle," ").concat(e.jobFitResult.jobCompany," Portfolio"));case 2:return n=t.v,t.n=3,(0,Hn.r)(n.data.jobId,{failureMessage:"Portfolio duplication failed.",timeoutMessage:"Portfolio duplication timed out."});case 3:return r=t.v,o=r.shortId,e.jobFitResult.portfolioShortId=o,t.n=4,Un.A.updateJobFitCheck(e.jobFitResult);case 4:return t.n=5,Un.A.linkJobFitCheckToPortfolio(o,e.jobFitResult.id,e.viewData.user._id);case 5:Bn.A.track("DUPLICATE_EDIT_CLICKED",Yn(Yn({},Bn.A.getUrls()),{},{event_group:Bn.A.MixpanelEventGroups.JOB_FIT_CHECKER,source:"Insights Page"})),e.$store.state.portfolio=r,e.$router.push({path:"/home/portfolios/".concat(o),query:{skipJfc:!0}}),t.n=7;break;case 6:t.p=6,i=t.v,console.error("Failed to duplicate portfolio",i),e.generationError=!0;case 7:return t.p=7,e.loadState=null,t.f(7);case 8:return t.a(2)}},t,null,[[1,6,7,8]])}))()},openGenerateChecklistModal:function(){this.isGenerateChecklistModalOpen=!0},closeGenerateChecklistModal:function(){this.isGenerateChecklistModalOpen=!1},validateInput:function(){this.isJobTitleMissing=0===this.jobTitle.trim().length,this.isJobCompanyMissing=0===this.jobCompany.trim().length}},computed:Yn(Yn(Yn({},(0,O.L8)("view",["viewData"])),(0,O.L8)("jfc",["previousJFCResults"])),{},{isPrimaryDisabled:function(){return!this.jobDescription.length||!this.jobTitle.length||!this.jobCompany.length},hasError:function(){return this.isJobTitleMissing||this.isJobCompanyMissing}})},rr=(0,v.A)(nr,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("GenerateChecklistModal"),l=(0,i.g2)("AILoader"),c=(0,i.g2)("JFCNavigation"),u=(0,i.g2)("AlertMessage"),d=(0,i.g2)("Icon"),p=(0,i.g2)("CtaButton"),f=(0,i.g2)("ScrollableContainer"),h=(0,i.g2)("Input"),m=(0,i.g2)("PromptSelector"),v=(0,i.g2)("JFCResult");return(0,i.uX)(),(0,i.CE)("div",ot,[(0,i.bF)(tt.Transition,{name:"modal"},{default:(0,i.k6)(function(){return[o.isGenerateChecklistModalOpen?((0,i.uX)(),(0,i.Wv)(a,{key:0,onClose:s.closeGenerateChecklistModal,onEditPortfolio:s.handleEditPortfolio,onDuplicatePortfolio:s.handleDuplicatePortfolio},null,8,["onClose","onEditPortfolio","onDuplicatePortfolio"])):(0,i.Q3)("v-if",!0)]}),_:1}),(0,i.bF)(tt.Transition,{name:"modal"},{default:(0,i.k6)(function(){return[o.loadState||o.generationError?((0,i.uX)(),(0,i.Wv)(l,{key:o.loadState,"load-steps":o.loadState?o.loadSteps[o.loadState]:[],"visible-steps-num":4,error:o.generationError,close:s.closeGenerator,retry:s.retryGeneration,stop:s.stopGeneration,disclaimer:"AI can make mistakes. Check important information."},null,8,["load-steps","error","close","retry","stop"])):(0,i.Q3)("v-if",!0)]}),_:1}),(0,i.bF)(c,{"active-content":o.activeContent,onChangeSidebar:s.handleSidebarChange},null,8,["active-content","onChangeSidebar"]),"previousResults"!==o.activeContent?((0,i.uX)(),(0,i.CE)("div",it,[(0,i.RG)(e.$slots,"default",{},void 0,!0)])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",{class:(0,b.C4)(["jfc-sidebar",{"sidebar-full":"previousResults"===o.activeContent||o.loadState||o.generationError}])},[(0,i.bF)(tt.Transition,{name:e.$store.state.alertMessage.position?"alert-".concat(e.$store.state.alertMessage.position):"alert"},{default:(0,i.k6)(function(){return[e.$store.state.alertMessage.show?((0,i.uX)(),(0,i.Wv)(u,{key:0})):(0,i.Q3)("v-if",!0)]}),_:1},8,["name"]),"previousResults"===o.activeContent?((0,i.uX)(),(0,i.Wv)(f,{key:0},{default:(0,i.k6)(function(){return[(0,i.Lk)("div",st,[(0,i.Lk)("div",at,(0,b.v_)(o.contentOptions[o.activeContent]),1),(0,i.Lk)("div",lt,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.previousJFCResults,function(e){return(0,i.uX)(),(0,i.CE)("div",{class:"result-item",key:e.id},[(0,i.Lk)("div",ct,[(0,i.Lk)("div",ut,(0,b.v_)(e.jobTitle),1),(0,i.Lk)("div",dt,(0,b.v_)(e.jobCompany),1),(0,i.Lk)("div",{class:"portfolio-name",title:s.getPortfolioName(e.portfolioShortId)},(0,b.v_)(s.getPortfolioName(e.portfolioShortId)),9,pt)]),(0,i.Lk)("div",ft,[(0,i.Lk)("div",ht,(0,b.v_)(s.formatDateSince(e.createdAt)),1),(0,i.Lk)("div",mt,[(0,i.Lk)("div",vt,[(0,i.Lk)("div",{class:"score-fill",style:(0,b.Tr)({width:s.getAverageScore(e.jobFitScore)+"%"})},null,4)]),(0,i.Lk)("div",gt,(0,b.v_)(s.getAverageScore(e.jobFitScore)+"%"),1)])]),(0,i.Lk)("div",yt,[(0,i.bF)(p,{loading:o.deletingId===e.id,disabled:o.deletingId,"dark-scheme":"",size:"small",type:"secondary",onClick:function(t){return s.deletePreviousResult(e)}},{default:(0,i.k6)(function(){return[(0,i.bF)(d,{height:24,width:24,"icon-name":"delete"})]}),_:1},8,["loading","disabled","onClick"]),(0,i.bF)(p,{"dark-scheme":"",size:"small",type:"primary subtle",onClick:function(t){return s.selectPreviousResult(e)}},{default:(0,i.k6)(function(){return nt(t[2]||(t[2]=[(0,i.eW)("View insight",-1)]))}),_:1},8,["onClick"])])])}),128))])])]}),_:1})):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[(0,i.Lk)("div",bt,[(0,i.bF)(d,{width:18,height:18,"icon-name":"ai-sparkling-icon"}),(0,i.eW)(" "+(0,b.v_)(o.contentOptions[o.activeContent]),1)]),(0,i.Lk)("div",wt,["jobDescription"===o.activeContent?((0,i.uX)(),(0,i.CE)("div",St,[t[3]||(t[3]=(0,i.Lk)("div",{class:"title"},"Paste a job description",-1)),(0,i.Lk)("div",kt,[(0,i.Lk)("div",_t,[(0,i.bF)(h,{"dark-scheme":"",label:"Job title",modelValue:o.jobTitle,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.jobTitle=e}),"has-error":o.isJobTitleMissing},{alert:(0,i.k6)(function(){return[o.isJobTitleMissing?((0,i.uX)(),(0,i.CE)("span",Ot,"Job title is required")):(0,i.Q3)("v-if",!0)]}),_:1},8,["modelValue","has-error"]),(0,i.bF)(h,{"dark-scheme":"",label:"Company",modelValue:o.jobCompany,"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.jobCompany=e}),"has-error":o.isJobCompanyMissing},{alert:(0,i.k6)(function(){return[o.isJobCompanyMissing?((0,i.uX)(),(0,i.CE)("span",Ct,"Company is required")):(0,i.Q3)("v-if",!0)]}),_:1},8,["modelValue","has-error"])]),(0,i.Lk)("div",Tt,[(0,i.bF)(m,{ref:"promptSelectorRef",prompt:o.jobDescription,setPrompt:s.setJobDescription,placeholder:"Paste job description",draft:o.draft,setPromptHtml:s.setJobDescriptionHtml,promptHtml:o.jobDescriptionHtml,draftButtonText:"Use example","max-length":8e3,onUseDraftClicked:s.handleUseDraftClicked},null,8,["prompt","setPrompt","draft","setPromptHtml","promptHtml","onUseDraftClicked"])])])])):(0,i.Q3)("v-if",!0),"jfcResult"===o.activeContent?((0,i.uX)(),(0,i.Wv)(v,{key:1,jobFitResult:o.jobFitResult},null,8,["jobFitResult"])):(0,i.Q3)("v-if",!0)])],64)),"previousResults"!==o.activeContent?((0,i.uX)(),(0,i.CE)("div",At,["jobDescription"===o.activeContent?((0,i.uX)(),(0,i.Wv)(p,{key:0,loading:!!o.loadState,"dark-scheme":"",type:"primary",disabled:s.isPrimaryDisabled,onClick:s.handleSubmit},{default:(0,i.k6)(function(){return[(0,i.bF)(d,{"icon-name":"ai-sparkling-icon"}),t[4]||(t[4]=(0,i.eW)(" Analyze ",-1))]}),_:1},8,["loading","disabled","onClick"])):(0,i.Q3)("v-if",!0),"jfcResult"===o.activeContent?((0,i.uX)(),(0,i.Wv)(p,{key:1,"dark-scheme":"",type:"primary",onClick:s.openGenerateChecklistModal},{default:(0,i.k6)(function(){return nt(t[5]||(t[5]=[(0,i.eW)(" Generate portfolio checklist ",-1)]))}),_:1},8,["onClick"])):(0,i.Q3)("v-if",!0)])):(0,i.Q3)("v-if",!0)],2)])}],["__scopeId","data-v-60f74ee8"]]);function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ir(Object(n),!0).forEach(function(t){ar(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ar(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=or(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==or(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return cr(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(cr(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,cr(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,cr(d,"constructor",c),cr(c,"constructor",l),l.displayName="GeneratorFunction",cr(c,o,"GeneratorFunction"),cr(d),cr(d,o,"Generator"),cr(d,r,function(){return this}),cr(d,"toString",function(){return"[object Generator]"}),(lr=function(){return{w:i,m:p}})()}function cr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}cr=function(e,t,n,r){function i(t,n){cr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},cr(e,t,n,r)}function ur(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function dr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){ur(i,r,o,s,a,"next",e)}function a(e){ur(i,r,o,s,a,"throw",e)}s(void 0)})}}const pr={name:"JFCWrapper",components:{PortfolioPage:We.A,Project:M,CustomPage:de,PasswordProtection:pe.A,ErrorPage:fe.A,ComingSoon:ve.A},data:function(){return{loaded:!1,pageType:null,projectShortId:null,error:!1}},mounted:function(){var e=this;return dr(lr().m(function t(){var n;return lr().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.$store.dispatch("jfc/fetchPreviousJFCResults");case 1:t.n=3;break;case 2:t.p=2,n=t.v,console.error("Can't get previous results",n);case 3:return t.a(2)}},t,null,[[0,2]])}))()},beforeRouteEnter:function(e,t,n){return dr(lr().m(function t(){var r,o,i,s;return lr().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,r="/data",(o=e.params.portfolioShortId)?(r+="/shortid/"+o,e.params.projectShortId&&(r+="/"+e.params.projectShortId)):r+="/portfolio",t.n=1,D.A.get(r+"?isJFC=true");case 1:i=t.v,n(function(e){return e.setData(i.status,i.data)}),t.n=3;break;case 2:t.p=2,s=t.v,n(function(e){return e.setData(s,null)});case 3:return t.a(2)}},t,null,[[0,2]])}))()},beforeRouteUpdate:function(e,t){var n=this;return dr(lr().m(function t(){var r,o,i,s;return lr().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,r=n.projectFetchUrl(e),t.n=1,D.A.get(r+"?isJFC=true");case 1:o=t.v,i=o.data,n.setData(null,i),t.n=3;break;case 2:t.p=2,s=t.v,console.log("error",s);case 3:return t.a(2)}},t,null,[[0,2]])}))()},methods:{setData:function(e,t){if(e&&!t){if(404===e.response.status)return this.pageType="not_found",this.error=!0,void(this.loaded=!0);if(401===e.response.status)return this.pageType="coming_soon",void(this.loaded=!0)}this.viewData.fontsLoaded||((0,R.zQ)(t.fonts),t.fontNames.filter(function(e){return!t.fonts.map(function(e){return e.name}).includes(e)}
2).forEach(function(e){he.A.getFontURL(e)}),this.viewData.fontsLoaded=!0);this.password=!1;var r={portfolio:t.portfolio,project:t.project,user:t.user,portfolioPages:t.portfolioPages,activePage:t.project.shortId,caseStudies:t.caseStudies,hasDraftCasestudies:t.hasDraftCasestudies,loggedInUserId:t.loggedInUserId,emergencyModeSettings:t.emergencyModeSettings};if(r.loggedInUserId===t.project.ownerId&&ye.z.getUser(),"home"===t.project.type?this.pageType="portfolio":"caseStudy"===t.project.type?this.pageType="project":this.pageType="custom",this.$store.commit("view/updateView",r),!t.portfolio.templateSettings.theme.includes("profile_"))try{n(19600)("./_".concat(t.portfolio.templateSettings.theme.replaceAll("_","-").replace("profile_",""),"-base.scss"))}catch(e){console.log("failed to import scss")}this.$store.state.portfolio=t.portfolio,this.$store.state.project=t.project,this.loaded=!0},projectFetchUrl:function(e){var t=e.path,n=e.params.portfolioShortId,r=e.params.projectShortId;if(t.startsWith("/jobfitchecker/p/")){var o="/data/project/"+n;return r&&(o+="/"+r),o}return"/data/shortid/"+n}},computed:sr(sr({JFCLayout:function(){return rr}},(0,O.L8)("view",["viewData"])),{},{currentComponent:function(){if(!this.loaded)return null;switch(this.pageType){case"project":return"Project";case"custom":return"CustomPage";case"not_found":return"ErrorPage";case"portfolio":return"PortfolioPage";case"coming_soon":return"ComingSoon";default:return null}},currentProps:function(){return this.error?{error:{code:404,title:"This page doesnât exist",message:"We canât seem to find the page you are looking for"}}:"coming_soon"===this.pageType?{type:"Case Study"}:{}}})},fr=(0,v.A)(pr,[["render",function(e,t,n,r,o,s){return"ErrorPage"!==s.currentComponent&&"ComingSoon"!==s.currentComponent?((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.JFCLayout),{key:0},{default:(0,i.k6)(function(){return[((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.currentComponent),(0,b._B)((0,i.Ng)(s.currentProps)),null,16))]}),_:1})):((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.currentComponent),(0,b._B)((0,i.v6)({key:1},s.currentProps)),null,16))}]]),hr=n.p+"src/assets/images/onboarding-customize-illustration.965bb733.svg";function mr(e){return function(e){if(Array.isArray(e))return vr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gr={key:0,class:"onboarding-template-preview-container"},yr={class:"body-container"},br={class:"customization-actions-container"},wr={class:"customization-container"},Sr={class:"card-wrapper"},kr={class:"card-grid"},_r={class:"color-preview-container"},Or={class:"card-wrapper"},Cr={class:"card-grid"},Tr=["src"];var Ar=n(97073);function Er(e){return function(e){if(Array.isArray(e))return xr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return xr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Pr={class:"onboarding-top-nav-container"},Ir={class:"content"},Lr={class:"left-side"},jr={class:"right-side"},Mr={class:"ufo--device-switch"};
2const Dr={name:"OnboardingTopNav",props:["viewMode"],components:{Cta:Rt.A,NavBarPill:Ft.A,Icon:Nt.A},methods:{changeViewMode:function(e){this.$emit("changeViewMode",e)},goBack:function(){this.$emit("goBack")},handleClick:function(){this.$emit("setPortfolioTheme")}}},Rr=(0,v.A)(Dr,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("NavBarPill"),l=(0,i.g2)("Icon"),c=(0,i.g2)("Cta");return(0,i.uX)(),(0,i.CE)("div",Pr,[(0,i.Lk)("div",Ir,[(0,i.Lk)("div",Lr,[t[3]||(t[3]=(0,i.Lk)("div",{class:"logo-container"},[(0,i.Lk)("div",{class:"logo"},[(0,i.Lk)("img",{src:Mt,alt:"Logo"})])],-1)),(0,i.bF)(a,{label:"Back to templates","icon-name":"back",onButtonClicked:t[0]||(t[0]=function(e){return s.goBack()})})]),(0,i.Lk)("div",jr,[(0,i.Lk)("div",Mr,[(0,i.Lk)("button",{onClick:t[1]||(t[1]=function(e){return s.changeViewMode("desktop")}),class:(0,b.C4)({active:"desktop"===n.viewMode})},[(0,i.bF)(l,{"icon-name":"desktop_preview"})],2),(0,i.Lk)("button",{onClick:t[2]||(t[2]=function(e){return s.changeViewMode("mobile")}),class:(0,b.C4)({active:"mobile"===n.viewMode})},[(0,i.bF)(l,{"icon-name":"mobile_preview"})],2)]),(0,i.bF)(c,{onClick:s.handleClick},{default:(0,i.k6)(function(){return Er(t[4]||(t[4]=[(0,i.eW)("Start building",-1)]))}),_:1},8,["onClick"])])])])}],["__scopeId","data-v-12c07c9d"]]);var Nr={class:"browser-content"};const Fr={name:"FakeBrowser",props:["width"]},Br=(0,v.A)(Fr,[["render",function(e,t,n,r,o,s){return(0,i.uX)(),(0,i.CE)("div",{class:"fake-browser-container",style:(0,b.Tr)({width:n.width?n.width:"100%"})},[t[0]||(t[0]=(0,i.Fv)('<div class="nav" data-v-35a00e76><div class="fake-buttons" data-v-35a00e76><div class="circle" data-v-35a00e76></div><div class="circle" data-v-35a00e76></div><div class="circle" data-v-35a00e76></div></div></div>',1)),(0,i.Lk)("div",Nr,[(0,i.RG)(e.$slots,"content",{},void 0,!0)])],4)}],["__scopeId","data-v-35a00e76"]]);var Ur=n(99210),Hr=n(55320),$r={key:0,class:"check-box"};const zr={name:"OnboardingBoxSelect",components:{Icon:Nt.A},props:["selected","type"],emits:["handleClick"],methods:{handleSelect:function(){this.$emit("handleClick")}}},Wr=(0,v.A)(zr,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("Icon");return(0,i.uX)(),(0,i.CE)("div",{class:(0,b.C4)(["onboarding-box-select-container",{selected:n.selected,type:n.type}]),onClick:t[0]||(t[0]=function(){return s.handleSelect&&s.handleSelect.apply(s,arguments)})},[n.selected?((0,i.uX)(),(0,i.CE)("div",$r,[(0,i.bF)(a,{"icon-name":"check"})])):(0,i.Q3)("v-if",!0),(0,i.RG)(e.$slots,"content",{},void 0,!0)],2)}],["__scopeId","data-v-55a631d9"]]);function Gr(e){return Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(e)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach(function(t){Kr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Gr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return Yr(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Yr(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Yr(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Yr(d,"constructor",c),Yr(c,"constructor",l),l.displayName="GeneratorFunction",Yr(c,o,"GeneratorFunction"),Yr(d),Yr(d,o,"Generator"),Yr(d,r,function(){return this}),Yr(d,"toString",function(){return"[object Generator]"}),(qr=function(){return{w:i,m:p}})()}function Yr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Yr=function(e,t,n,r){function i(t,n){Yr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Yr(e,t,n,r)}function Qr(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Jr(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){Qr(i,r,o,s,a,"next",e)}function a(e){Qr(i,r,o,s,a,"throw",e)}s(void 0)})}}const Zr={name:"OnboardingTemplatePreview",emits:["set-portfolio-theme","create-new-portfolio"],components:{OnboardingBoxSelect:Wr,FakeBrowser:Br,OnboardingTopNav:Rr},data:function(){return{viewMode:"desktop",allColorPalettes:[],availableFontPairs:[],selectedColorPalette:null,selectedFontPair:null,updatedStyles:{fontStyles:null,colorStyles:null}}},watch:{selectedTemplate:{handler:function(e){var t,n;null!=e&&e.defaults&&(this.selectedColorPalette=this.getPalette(null===(t=e.defaults.availableColorPalettes)||void 0===t?void 0:t[0])||null,this.selectedFontPair=(null===(n=e.defaults.availableFontPairs)||void 0===n?void 0:n[0])||null)},immediate:!1}},beforeMount:function(){this.selectedTemplate||this.$router.push("/home/onboarding"),window.scrollTo({top:0})},mounted:function(){var e=this;return Jr(qr().m(function t(){var n,r;return qr().w(function(t){for(;;)switch(t.n){case 0:return window.scrollY&&window.scroll(0,0),e.$actions.trackPageView("/home".concat(e.$route.fullPath),"".concat(e.isOnboardingFlow?"Create portfolio":"Onboarding"," - Preview selected theme")),e.$store.state.previewAndCreatePortfolioDetails.activeView=2,t.n=1,e.ensureSelectedTemplateDetails();case 1:return t.n=2,e.loadPalettes();case 2:e.selectedColorPalette=e.getPalette(null===(n=e.selectedTemplate)||void 0===n||null===(n=n.defaults)||void 0===n||null===(n=n.availableColorPalettes)||void 0===n?void 0:n[0])||null,e.selectedFontPair=(null===(r=e.selectedTemplate)||void 0===r||null===(r=r.defaults)||void 0===r||null===(r=r.availableFontPairs)||void 0===r?void 0:r[0])||null,(0,Hr.bU)(e.selectedFontPair),(0,Hr.u4)(e.templateAdditionalFontPairs),window.addEventListener("message",function(t){var n;"STORE_UPDATE"===(null===(n=t.data)||void 0===n?void 0:n.type)&&(e.updatedStyles={fontStyles:t.data.payload.fontStyles,colorStyles:t.data.payload.colors})});case 3:return t.a(2)}},t)}))()},methods:Vr(Vr({},(0,O.i0)("design",["setFontPairs"])),{},{loadPalettes:function(){var e=this;return Jr(qr().m(function t(){var n;return qr().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,(0,Ur.KN)();case 1:e.allColorPalettes=t.v,t.n=3;break;case 2:t.p=2,n=t.v,console.error("Failed to fetch color palettes",n),e.allColorPalettes=[];case 3:return t.a(2)}},t,null,[[0,2]])}))()},ensureSelectedTemplateDetails:function(){var e=this;return Jr(qr().m(function t(){var n,r,o,i,s,a,l;return qr().w(function(t){for(;;)switch(t.p=t.n){case 0:if(null!==(n=e.selectedTemplate)&&void 0!==n&&n.portfolioShortId&&!e.selectedTemplate.defaults){t.n=1;break}return t.a(2);case 1:if(null==(o=null===(r=e.$store.state.portfolioTemplates)||void 0===r?void 0:r.find(function(t){return t.portfolioShortId===e.selectedTemplate.portfolioShortId}))||!o.defaults){t.n=2;break}return e.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate=o,t.a(2);case 2:return t.p=2,t.n=3,D.A.get("/api/portfolio-template/".concat(e.selectedTemplate.portfolioShortId));case 3:i=t.v,s=i.data,e.$store.state.portfolioTemplates||(e.$store.state.portfolioTemplates=[]),(a=e.$store.state.portfolioTemplates.findIndex(function(e){return e.portfolioShortId===s.portfolioShortId}))>=0?e.$store.state.portfolioTemplates.splice(a,1,s):e.$store.state.portfolioTemplates.push(s),e.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate=s,t.n=5;break;case 4:t.p=4,l=t.v,console.log("Error while fetching selected template details",l);case 5:return t.a(2)}},t,null,[[2,4]])}))()},selectOption:function(e){this.selectedColorPalette=e,this.$refs.previewFrame.contentWindow.postMessage({type:"UPDATE_PALETTE",payload:{ID:e.id,COLORS:JSON.parse(JSON.stringify(e.colors))}},"*")},changeFontPair:function(e){var t=JSON.parse(JSON.stringify(e));this.selectedFontPair=e,(0,Hr.bU)(e),this.$refs.previewFrame.contentWindow.postMessage({type:"UPDATE_FONT_PAIR",payload:t},"*")},setPortfolioTheme:function(){if(this.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate=this.selectedTemplate,this.customizationApplied&&Bn.A.track("TEMPLATE_CUSTOMIZATION_APPLIED",Vr(Vr({},Bn.A.getUrls()),{},{event_group:Bn.A.MixpanelEventGroups.ONBOARDING,source:"Template preview",type:this.customizationType})),this.customizationApplied){var e=this.selectedFontPair,t={id:this.selectedColorPalette.i
2d,colors:this.selectedColorPalette.colors},n=this.updatedStyles;this.$emit("create-new-portfolio",e,t,n)}else this.$emit("create-new-portfolio")},goBack:function(){var e=this;this.$store.state.previewAndCreatePortfolioDetails.activeView=1,this.$router.push("/home/onboarding").then(function(){(0,Ar.f0)("Back to start: "+e.selectedTemplate.name,{event_category:"Onboarding",event_label:"User: "+e.$store.state.user._id}),document.querySelector("body").classList.remove("thumbnail-generator-visible"),e.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate=null})},changeViewMode:function(e){this.viewMode=e},fontPairStyle:function(e){return{"--headingFont":e.headline,"--paragraphFont":e.text}},getPalette:function(e){return e?this.allColorPalettes.find(function(t){return t.id===e}):null}}),computed:Vr(Vr({},(0,O.L8)("design",["fontStyles"])),{},{templateUrl:function(){return"".concat(location.origin,"/").concat(this.selectedTemplate.portfolioShortId)},selectedTemplate:function(){return this.$store.state.previewAndCreatePortfolioDetails.selectedPortfolioTemplate},isOnboardingFlow:function(){return!this.$store.state.creatingNewPortfolio},templateAdditionalFontPairs:function(){var e,t=this.selectedTemplate;if(!t)return[];var n=this.$store.state.portfolioTemplates.find(function(e){return e.portfolioShortId===t.portfolioShortId});return(null==n||null===(e=n.defaults)||void 0===e?void 0:e.availableFontPairs)||[]},templateAdditionalColorPalettes:function(){var e,t=this,n=this.selectedTemplate;if(!n)return this.selectedColorPalette?[this.selectedColorPalette]:[];var r=this.$store.state.portfolioTemplates.find(function(e){return e.portfolioShortId===n.portfolioShortId}),o=null==r||null===(e=r.defaults)||void 0===e?void 0:e.availableColorPalettes;return null!=o&&o.length?o.map(function(e){return t.getPalette(e)}).filter(Boolean):this.selectedColorPalette?[this.selectedColorPalette]:[]},customizationApplied:function(){return!!(this.selectedColorPalette&&this.selectedFontPair&&this.templateAdditionalColorPalettes[0]&&this.templateAdditionalFontPairs[0])&&(this.selectedColorPalette.id!==this.templateAdditionalColorPalettes[0].id||this.selectedFontPair._id!==this.templateAdditionalFontPairs[0]._id)},customizationType:function(){if(!(this.selectedColorPalette&&this.selectedFontPair&&this.templateAdditionalColorPalettes[0]&&this.templateAdditionalFontPairs[0]))return"None";var e=this.selectedColorPalette.id!==this.templateAdditionalColorPalettes[0].id,t=this.selectedFontPair._id!==this.templateAdditionalFontPairs[0]._id;return e&&t?"Both":e?"Colors":t?"Fonts":"None"}})},eo=(0,v.A)(Zr,[["render",function(e,t,n,r,o,s){var a=(0,i.g2)("OnboardingTopNav"),l=(0,i.g2)("OnboardingBoxSelect"),c=(0,i.g2)("FakeBrowser");return s.selectedTemplate?((0,i.uX)(),(0,i.CE)("div",gr,[(0,i.bF)(a,{"view-mode":o.viewMode,onChangeViewMode:s.changeViewMode,onSetPortfolioTheme:s.setPortfolioTheme,onGoBack:s.goBack},null,8,["view-mode","onChangeViewMode","onSetPortfolioTheme","onGoBack"]),(0,i.Lk)("div",yr,[(0,i.Lk)("div",br,[t[3]||(t[3]=(0,i.Lk)("div",{class:"text-container"},[(0,i.Lk)("div",{class:"title"},"Make it yours"),(0,i.Lk)("div",{class:"subtitle"},"Stand out by adding personal touch")],-1)),(0,i.Lk)("div",wr,[(0,i.Lk)("div",Sr,[t[0]||(t[0]=(0,i.Lk)("div",{class:"title"},"Colors",-1)),(0,i.Lk)("div",kr,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(s.templateAdditionalColorPalettes,function(e){return(0,i.uX)(),(0,i.Wv)(l,{selected:o.selectedColorPalette&&o.selectedColorPalette.id===e.id,onHandleClick:function(t){return s.selectOption(e)},key:e.id,type:"color"},{content:(0,i.k6)(function(){return[(0,i.Lk)("div",_r,[(0,i.Lk)("div",{class:"color-preview",style:(0,b.Tr)({backgroundColor:"".concat(e.colors[0])})},null,4),(0,i.Lk)("div",{class:"color-preview",style:(0,b.Tr)({backgroundColor:"".concat(e.colors[2])})},null,4),(0,i.Lk)("div",{class:"color-preview",style:(0,b.Tr)({backgroundColor:"".concat(e.colors[4])})},null,4)])]}),_:2},1032,["selected","onHandleClick"])}),128))])]),(0,i.Lk)("div",Or,[t[2]||(t[2]=(0,i.Lk)("div",{class:"title"},"Fonts",-1)),(0,i.Lk)("div",Cr,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(s.templateAdditionalFontPairs,function(e){return(0,i.uX)(),(0,i.Wv)(l,{key:e.text,selected:o.selectedFontPair&&o.selectedFontPair._id===e._id,style:(0,b.Tr)(s.fontPairStyle(e)),onHandleClick:function(t){return s.changeFontPair(e)},type:"font"},{content:(0,i.k6)(function(){return mr(t[1]||(t[1]=[(0,i.Lk)("div",{class:"heading-style"},"Headings",-1),(0,i.Lk)("div",{class:"paragraph-style"},"Body text",-1)]))}),_:1},8,["selected","style","onHandleClick"])}),128))])])]),t[4]||(t[4]=(0,i.Lk)("div",{class:"banner-container"},[(0,i.Lk)("img",{alt:"onboarding-illu",src:hr}),(0,i.Lk)("div",{class:"text"},"Not your perfect combo? Try more styles in the editor.")],-1))]),(0,i.Lk)("div",{class:(0,b.C4)(["preview-container",[o.viewMode]])},[(0,i.bF)(c,{width:"mobile"===o.viewMode?"390px":null},{content:(0,i.k6)(function(){return[(0,i.Lk)("div",{class:(0,b.C4)(["iframe-scale-wrapper",o.viewMode])},[(0,i.Lk)("iframe",{ref:"previewFrame",class:"preview-frame",src:s.templateUrl+"?templatePreview=true"},null,8,Tr)],2)]}),_:1},8,["width"])],2)])])):(0,i.Q3)("v-if",!0)}],["__scopeId","data-v-7554a450"]]);var to=n(50953);function no(e){return no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},no(e)}function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ro(Object(n),!0).forEach(function(t){io(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function io(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=no(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=no(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==no(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var so={class:"ufo-sepa--cop-list"},ao=["onClick"],lo={class:"cursor-preview"},co={class:"cursor-preview-layers"},uo=["src"];const po={__name:"Cursors",emits:["save","cancel","close"],setup:function(e,t){var s=t.expose,a=(0,O.Pj)(),l=(0,r.lq)(),u=o.jS;function d(e,t){try{return{layer1:n(40323)("./".concat(e,"/").concat(t,".svg")),layer2:null}}catch(e){}var r=null,o=null;try{r=n(87135)("./".concat(e,"/").concat(t,"_1.svg"))}catch(e){}try{o=n(92542)("./".concat(e,"/").concat(t,"_2.svg"))}catch(e){}return r||o?{layer1:r,layer2:o}:null}var p=Object.freeze(Object.fromEntries(Object.keys(o.jS).map(function(e){return[e,{preview_1:d(e,"preview_1"),preview_2:d(e,"preview_2")}]}))),f=(0,i.EW)(function(){var e;return(null===(e=a.state.portfolio)||void 0===e||null===(e=e.templateSettings)||void 0===e?void 0:e.cursorType)||"DEFAULT"}),h=f.value;return a.commit("setCursorPreviewMode",!0),(0,i.sV)(function(){a.commit("updateSidePanel",oo(oo({},l.meta.sidePanelSettings),{},{previousSettings:JSON.parse(JSON.stringify(f.value)),showInfoAboveCtas:!0,infoAboveCtasMessage:"Once you hit save, custom cursors only appear on your live site."})),(0,c.a)("/home".concat(l.fullPath),"Portfolio customization - Cursors")}),(0,i.xo)(function(){a.commit("setCursorPreviewMode",!1),a.commit("updateSidePanel",{showInfoAboveCtas:!1,infoAboveCtasMessage:null}),null!==h&&a.commit("updatePortfolioTemplateSettings",{cursorType:h})}),s({triggerSave:function(){h=null,a.commit("setCursorPreviewMode",!1)},triggerCancel:function(){null!==h&&a.commit("updatePortfolioTemplateSettings",{cursorType:h}),a.commit("setCursorPreviewMode",!1)}}),function(e,t){return(0,i.uX)(),(0,i.Wv)(Dn.A,{class:"ufo-sepa--cop-det cursor-settings"},{default:(0,i.k6)(function(){return[(0,i.Lk)("div",so,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,to.R1)(u),function(e,t){return(0,i.uX)(),(0,i.CE)("div",{key:t,class:(0,b.C4)(["cursor-preset-preview",{selected:f.value===t}]),onClick:function(e){return function(e){a.commit("updatePortfolioTemplateSettings",{cursorType:e}),a.commit("updateSidePanel",{allowSave:!0})}(t)}},[(0,i.Lk)("div",lo,[((0,i.uX)(),(0,i.CE)(i.FK,null,(0,i.pI)(["preview_1","preview_2"],function(e){var n,r,o;return(0,i.Lk)("div",{key:e,class:"cursor-preview-item"},[(0,i.Lk)("div",co,[null!==(n=(0,to.R1)(p)[t][e])&&void 0!==n&&n.layer2?((0,i.uX)(),(0,i.Wv)((0,to.R1)(Dt.A),{key:0,src:(0,to.R1)(p)[t][e].layer2,class:"cursor-preview-layer2"},null,8,["src"])):(0,i.Q3)("v-if",!0),null!==(r=(0,to.R1)(p)[t][e])&&void 0!==r&&r.layer1&&"EMOJI"===t?((0,i.uX)(),(0,i.CE)("img",{key:1,src:(0,to.R1)(p)[t][e].layer1,class:"cursor-preview-layer1"},null,8,uo)):null!==(o=(0,to.R1)(p)[t][e])&&void 0!==o&&o.layer1?((0,i.uX)(),(0,i.Wv)((0,to.R1)(Dt.A),{key:2,src:(0,to.R1)(p)[t][e].layer1,class:"cursor-preview-layer1"},null,8,["src"])):(0,i.Q3)("v-if",!0)])])}),64))]),(0,i.Lk)("div",{class:(0,b.C4)(["cursor-title",f.value===t?"e-ui-b2-semibold":"e-ui-b2-regular"])},(0,b.v_)(e),3)],10,ao)}),128))])]}),_:1})}}},fo=(0,v.A)(po,[["__scopeId","data-v-463da0bf"]]);var ho=n(97293),mo=n(67208);function vo(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return go(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(go(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,go(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,go(d,"constructor",c),go(c,"constructor",l),l.displayName="GeneratorFunction",go(c,o,"GeneratorFunction"),go(d),go(d,o,"Generator"),go(d,r,function(){return this}),go(d,"toString",function(){return"[object Generator]"}),(vo=function(){return{w:i,m:p}})()}function go(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}go=function(e,t,n,r){function i(t,n){go(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},go(e,t,n,r)}function yo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function bo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){yo(i,r,o,s,a,"next",e)}function a(e){yo(i,r,o,s,a,"throw",e)}s(void 0)})}}var wo="/home/portfolios";function So(e,t){(0,ho.yw)({status:e,url:new URL(t.fullPath||t.path,window.location.origin).toString(),title:"Admin area only",message:"Only admin accounts can access this page. You can continue from your portfolios.",primaryLabel:"Back to portfolios",primaryAction:"goToRedirectUri",redirectUri:"".concat(window.location.origin).concat(wo),secondaryLabel:"Use another account",secondaryAction:"retryLogout"})}function ko(e){var t;return"/admin"===e.path||e.path.startsWith("/admin/")||Boolean(null===(t=e.matched)||void 0===t?void 0:t.some(function(e){var t;return null===(t=e.meta)||void 0===t?void 0:t.requiresAdmin}))}function _o(){return Oo.apply(this,arguments)}function Oo(){return(Oo=bo(vo().m(function e(){var t,n,r,o;return vo().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,mo.iD)();case 1:if(t=e.v){e.n=2;break}return e.a(2,{allowed:!1,status:401});case 2:return e.n=3,fetch("/api/users/me",{credentials:"include",cache:"no-store",headers:{Authorization:"Bearer ".concat(t)}});case 3:if((n=e.v).ok){e.n=4;break}return e.a(2,{allowed:!1,status:n.status});case 4:return e.n=5,n.json().catch(function(){return{}});case 5:return r=e.v,o=Boolean(null==r?void 0:r.isAdmin),e.a(2,{allowed:o,status:o?n.status:403})}},e)}))).apply(this,arguments)}function Co(){return(Co=bo(vo().m(function e(t,n){var r,o;return vo().w(function(e){for(;;)switch(e.p=e.n){case 0:if(ko(t)){e.n=1;break}return e.a(2,n());case 1:return e.p=1,e.n=2,_o();case 2:if(!(r=e.v).allowed){e.n=3;break}return e.a(2,n());case 3:So(r.status||403,t),e.n=5;break;case 4:e.p=4,o=e.v,console.warn("Admin route access check failed",o),So(403,t);case 5:return e.a(2,n({path:wo,replace:!0}))}},e,null,[[1,4]])}))).apply(this,arguments)}function To(e){return To="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},To(e)}function Ao(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return Eo(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Eo(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Eo(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Eo(d,"constructor",c),Eo(c,"constructor",l),l.displayName="GeneratorFunction",Eo(c,o,"GeneratorFunction"),Eo(d),Eo(d,o,"Generator"),Eo(d,r,function(){return this}),Eo(d,"toString",function(){return"[object Generator]"}),(Ao=function(){return{w:i,m:p}})()}function Eo(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Eo=function(e,t,n,r){function i(t,n){Eo(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Eo(e,t,n,r)}function xo(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Po(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach(function(t){jo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=To(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=To(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==To(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mo=function(){return Promise.all([n.e(432),n.e(3782)]).then(n.bind(n,52722))},Do=function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,3994))},Ro=function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,1468))},No=function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,2037))},Fo=function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,76782))},Bo=function(){return n.e(3681).then(n.bind(n,52520))},Uo=function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,4528))};function Ho(e){return{path:"edit-color-palette",components:{sidePanelOverlayView:Ro},meta:{sidePanelSettings:{panel:o.jF.EDIT_COLOR_PALETTE,title:"Edit color palette",goBackPath:e,tabPills:[{label:"Edit",type:"paletteEditor"},{label:"Generate",type:"paletteGenerator"}],activeTab:"paletteEditor"}}}}var $o,zo,Wo={path:"style",components:{sidePanel:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,673))}},props:!0,children:[{path:"",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,86357))}},meta:{sidePanelSettings:{panel:o.jF.MAIN_PANEL,title:"Design",saveButtonLabel:"Save",previousSettings:null,prevAccentColor:null,showSecondaryTab:!1,hideActionButtons:!0,hideBackButton:!0,allowSave:!1,updateParentPortfolio:!1,tabPills:null,activeTab:null,currentPanelPath:null}}},{path:"change-template",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,13561))}},meta:{sidebarSettings:{panel:o.jF.TEMPLATES,title:"Templates",hideBackButton:!1,hideActionButtons:!1}}},{path:"colors",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,5182))}},meta:{sidePanelSettings:{panel:o.jF.COLORS,title:"Colors",hideBackButton:!1,hideActionButtons:!1,currentPanelPath:null,tabPills:[{label:"Presets",type:"presets"},{label:"Custom",type:"custom"}]}},children:[{path:"heading-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_HEADING_COLOR_SETTINGS,title:"Edit headings",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"paragraph-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_PARAGRAPH_COLOR_SETTINGS,title:"Edit paragraphs",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"navigation-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_NAVIGATION_COLOR_SETTINGS,title:"Edit navigation",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"button-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_BUTTON_COLOR_SETTINGS,title:"Edit buttons",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"label-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_LABEL_COLOR_SETTINGS,title:"Edit labels",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"contact-form-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_CONTACT_FORM_COLOR_SETTINGS,title:"Edit contact forms",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"social-icon-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_SOCIAL_ICON_COLOR_SETTINGS,title:"Edit social icons",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"process-step-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_PROCESS_STEP_COLOR_SETTINGS,title:"Edit process steps",goBackPath:"/".concat(o.jF.COLORS)}}},{path:"backgrounds",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_BACKGROUND_COLOR_SETTINGS,title:"Edit backgrounds",goBackPath:"/".concat(o.jF.COLORS)}}},Ho("/".concat(o.jF.COLORS))]},{path:"fonts",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,18019))}},meta:{sidePanelSettings:{panel:o.jF.FONTS,title:"Fonts",hideBackButton:!1,hideActionButtons:!1,currentPanelPath:o.mq.FONTS,tabPills:[{label:"Presets",type:"presets"},{label:"Custom",type:"custom"}],activeTab:"custom"}},children:[{path:"headings",components:{sidePanelOverlayView:No},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_HEADING_STYLE_SETTINGS,title:"Edit headings",goBackPath:"/".concat(o.jF.FONTS)}}},{path:"paragraphs",components:{sidePanelOverlayView:No},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_PARAGRAPH_STYLE_SETTINGS,title:"Edit paragraphs",goBackPath:"/".concat(o.jF.FONTS)}}},{path:"navigation-buttons",components:{sidePanelOverlayView:No},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_NAVIGATION_STYLE_SETTINGS,title:"Edit navigation",goBackPath:"/".concat(o.jF.FONTS)}}},{path:"buttons",components:{sidePanelOverlayView:No},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_BUTTON_STYLE_SETTINGS,title:"Edit button labels",goBackPath:"/".concat(o.jF.FONTS)}}},Ho("/".concat(o.jF.FONTS))]},{path:"button-settings",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,58111))}},meta:{sidePanelSettings:{panel:o.jF.BUTTONS,title:"Buttons",hideBackButton:!1,hideActionButtons:!0,currentPanelPath:o.mq.BUTTON_SETTINGS}},children:[{path:"advanced-button-settings",components:{sidePanelOverlayView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,95589))}},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_BUTTON_SETTINGS,title:"Edit buttons",hideActionButtons:!1,goBackPath:"/".concat(o.mq.BUTTON_SETTINGS)}}},{path:"button-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_BUTTON_COLOR_SETTINGS,title:"Edit buttons",goBackPath:"/".concat(o.mq.BUTTON_SETTINGS,"/").concat(o.mq.ADVANCED_BUTTON_SETTINGS)}}},Ho("/".concat(o.mq.BUTTON_SETTINGS))]},{path:"cursor-settings",components:{sidePanelSubView:fo},meta:{sidePanelSettings:{panel:o.jF.CURSORS,title:"Cursor",hideBackButton:!1,hideActionButtons:!1}}},{path:"label-settings",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,35335))}},meta:{sidePanelSettings:{panel:o.jF.LABELS,title:"Labels",hideBackButton:!1,hideActionButtons:!1,currentPanelPath:o.mq.LABEL_SETTINGS}},children:[{path:"label-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_LABEL_COLOR_SETTINGS,title:"Edit labels",goBackPath:"/".concat(o.mq.LABEL_SETTINGS)}}},Ho("/".concat(o.mq.LABEL_SETTINGS))]},{path:"social-icon-settings",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,97408))}},meta:{sidePanelSettings:{panel:o.jF.SOCIAL_ICON_SETTINGS,title:"Social icons",hideBackButton:!1,hideActionButtons:!1,currentPanelPath:o.mq.SOCIAL_ICON_SETTINGS}},children:[{path:"social-icon-colors",components:{sidePanelOverlayView:Do},meta:{sidePanelSettings:{panel:o.jF.ADVANCED_SOCIAL_ICON_COLOR_SETTINGS,title:"Edit social icon",goBackPath:"/".concat(o.mq.SOCIAL_ICON_SETTINGS)}}}]},{path:"animation-settings",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,2044))}}
2,meta:{sidePanelSettings:{panel:o.jF.ANIMATION_SETTINGS,title:"Animations",hideBackButton:!1,hideActionButtons:!1}}},{path:"spacing",components:{sidePanelSubView:function(){return Promise.all([n.e(510),n.e(7953),n.e(7709),n.e(2829),n.e(405),n.e(7112),n.e(1900)]).then(n.bind(n,55005))}},meta:{sidePanelSettings:{panel:o.jF.SPACING,title:"Spacing",hideBackButton:!1,hideActionButtons:!1}}}]},Go={path:"settings",components:{sidePanel:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,71446))}},props:!0,children:[{path:"",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,24836))}},meta:{sidePanelSettings:{panel:o.GJ.MAIN_PANEL,title:"Settings",previousSettings:null,prevAccentColor:null,saveButton:"Save",showSecondaryTab:!1,hideActionButtons:!0,hideBackButton:!0,allowSave:!1,tabPills:null,activeTab:null}}},{path:"social-media-links",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,91599))}},meta:{sidePanelSettings:{panel:o.GJ.SOCIAL_MEDIA_LINKS,title:"Social media links",hideActionButtons:!0,hideBackButton:!1}},children:[{path:"add-social-link",components:{sidePanelOverlayView:Fo},meta:{sidePanelSettings:{panel:o.GJ.EDIT_SOCIAL_LINKS,title:"Add social link",hideActionButtons:!1,goBackPath:"/".concat(o.vs.SOCIAL_MEDIA_LINKS)}}},{path:"edit-social-link",components:{sidePanelOverlayView:Fo},meta:{sidePanelSettings:{panel:o.GJ.EDIT_SOCIAL_LINKS,title:"Edit social link",hideActionButtons:!1,goBackPath:"/".concat(o.vs.SOCIAL_MEDIA_LINKS)}}}]},{path:"portfolio-logo",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,3633))}},meta:{sidePanelSettings:{panel:o.GJ.PORTFOLIO_LOGO,title:"Portfolio logo",hideActionButtons:!1,hideBackButton:!1}}},{path:"share",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,49688))}},meta:{sidePanelSettings:{panel:o.GJ.SHARE,hideBackButton:!1,hideActionButtons:!1}}},{path:"domain-and-url",alias:"portfolio-own-domain",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,40993))}},meta:{sidePanelSettings:{panel:o.GJ.DOMAIN_AND_URL,title:"Domain & URL",hideActionButtons:!0,hideBackButton:!1}},children:[{path:"edit-url",components:{sidePanelOverlayView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,99531))}},meta:{sidePanelSettings:{panel:o.GJ.URL,title:"Edit URL",hideActionButtons:!1,hideBackButton:!0,saveButton:"Save"}}}]},{path:"url-slug",alias:"case-study-url",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,85898))}},meta:{sidePanelSettings:{panel:o.GJ.URL,title:"Case study URL",hideActionButtons:!1,hideBackButton:!1,saveButton:"Save"}}},{path:"archive",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,27889))}},meta:{sidePanelSettings:{panel:o.GJ.ARCHIVE,title:"Archive",hideActionButtons:!0,hideBackButton:!1}}},{path:"password",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,51701))}},meta:{sidePanelSettings:{panel:o.GJ.PASSWORD,saveButton:"Save",hideActionButtons:!1,hideBackButton:!1}}},{path:"favicon",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,27693))}},meta:{sidePanelSettings:{panel:o.GJ.FAVICON,title:"Favicon",hideActionButtons:!1,hideBackButton:!1}}},{path:"basic-details",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,45976))}},meta:{sidePanelSettings:{panel:o.GJ.THUMBNAIL_SETTINGS,title:"Thumbn
2ail settings",hideBackButton:!1,hideActionButtons:!1}}},{path:"display-options",components:{sidePanelSubView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,29572))}},meta:{sidePanelSettings:{panel:o.GJ.NAVIGATION,title:"Navigation",hideBackButton:!1,hideActionButtons:!1}}}]},Xo={path:"pages",components:{sidePanel:function(){return Promise.all([n.e(432),n.e(7112),n.e(892)]).then(n.bind(n,76930))}},meta:{sidePanelSettings:{panel:o.N6.MAIN_PANEL,title:"Pages",previousSettings:null,prevAccentColor:null,saveButton:"Save",showSecondaryTab:!1,hideActionButtons:!0,hideBackButton:!0,allowSave:!1,tabPills:null,activeTab:null}},props:!0,children:[{path:"add-new-page",components:{sidePanelOverlayView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,10137))}},meta:{sidePanelSettings:{panel:o.N6.ADD_NEW_PAGE,title:"Add page or link",hideActionButtons:!0,goBackPath:"/"}}},{path:"external-link",components:{sidePanelOverlayView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,40986))}},meta:{sidePanelSettings:{panel:o.N6.NAVIGATION_EXTERNAL_LINK,hideActionButtons:!1,goBackPath:"/"}}},{path:"mailto-link",components:{sidePanelOverlayView:g},meta:{sidePanelSettings:{panel:o.N6.NAVIGATION_MAILTO_LINK,hideActionButtons:!1,goBackPath:"/"}}},{path:"resume",components:{sidePanelOverlayView:function(){return Promise.all([n.e(432),n.e(7953),n.e(354),n.e(7709),n.e(4185),n.e(7112),n.e(2789)]).then(n.bind(n,70361))}},meta:{sidePanelSettings:{panel:o.N6.RESUME,hideActionButtons:!1,goBackPath:"/"}}}]},Vo=[{path:"/jobfitchecker/:portfolioShortId",component:fr,meta:{type:"jfc"}},{path:"/jobfitchecker/p/:portfolioShortId/:projectShortId",component:fr,meta:{type:"jfc"}}],Ko=[{path:"/review/p/:portfolioShortId/:projectShortId",component:et,props:{review:!0},meta:{type:"review"}},{path:"/review/:portfolioShortId",component:et,props:{review:!0},meta:{type:"review"}},{path:"/myreviews/p/:portfolioShortId/:projectShortId",component:et,props:{review:!1},meta:{type:"review"}},{path:"/myreviews/:portfolioShortId",component:et,props:{review:!1},meta:{type:"review"}}],qo=[{path:"/p/:projectShortId",component:Pe,meta:{type:"view"}},{path:"/p/:portfolioShortId/:projectShortId",alias:["/portfolio/:portfolioShortId/project/:projectShortId"],component:Pe,meta:{type:"view"}},{path:"/project/:projectShortId/:projectName",alias:["/project/uxs-headless/:projectShortId/:projectName"],component:Pe,meta:{type:"view"}}],Yo=[{path:"/portfolio/:portfolioId",component:Ie.A,meta:{type:"view"}},{path:"/:shortId",component:Ie.A,meta:{type:"view"}}],Qo=[{path:"/home",name:"HomePageEditorApp",meta:{title:"Editor - UXfolio"},component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,54380))},children:[{path:"portfolios",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,3211))},props:!0,meta:{title:"Portfolio manager - UXfolio",nonEditorPage:!0},children:[{path:"",name:"Portfolio manager - UXfolio",component:function(){return Promise.all([n.e(432),n.e(3782)]).then(n.bind(n,9181))},props:!0},{path:"create-new-portfolio",component:Mo,props:!0},{path:"create-new-portfolio/template-preview",component:function(){return Promise.all([n.e(432),n.e(3782)]).then(n.bind(n,58152))},props:!0},{path:"create-new-portfolio/select-projects",component:function(){return Promise.all([n.e(432),n.e(3782)]).then(n.bind(n,82713))},props:!0}]},{path:"portfolios/:portfolioId",name:"Home Page Editor",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,85345))},alias:"portfolios/:portfolioId/style",meta:{title:"Editor - UXfolio"},children:[Wo,Go,Xo]},{path:"portfolios/:portfolioId/about",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,85099))},children:[Wo,Go,Xo]},{path:"portfolios/:portfolioId/contact",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,48626))},children:[Wo,Go,Xo]},{path:"portfolios/:portfolioId/p/:projectShortId",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,21898))},children:[Wo,Go,Xo]},{path:"onboarding",components:{onBoarding:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,93665))}},props:!0,meta:{title:"Onboarding - UXfolio",nonEditorPage:!0},children:[{path:"",component:Mo,props:!0},{path:"template-preview",component:eo,props:!0}]},{path:"settings",name:"Account Settings",redirect:{path:"/home/settings/account-settings"},component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,60456))},props:!0,meta:{title:"Account - UXfolio",nonEditorPage:!0},children:[{path:"account-settings",name:"Account settings",components:{accountSettingsSubVie
2w:function(){return Promise.all([n.e(1999),n.e(4516)]).then(n.bind(n,33078))}}},{path:"domains",name:"Domains",components:{accountSettingsSubView:function(){return Promise.all([n.e(1999),n.e(4516)]).then(n.bind(n,46589))}}},{path:"plan-and-payment",name:"Plan and payment",components:{accountSettingsSubView:function(){return Promise.all([n.e(1999),n.e(4516)]).then(n.bind(n,1851))}}},{path:"portfolio-settings",name:"Portfolio settings",components:{accountSettingsSubView:function(){return Promise.all([n.e(1999),n.e(4516)]).then(n.bind(n,72054))}}}]},{path:"notifications",name:"Notifications",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,81799))},props:!0,meta:{title:"Notifications - UXfolio",nonEditorPage:!0}},{path:"prices",name:"Prices",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,22626))},props:!0,meta:{title:"Prices - UXfolio",nonEditorPage:!0}},{path:"payment",name:"Payment Center",component:function(){return Promise.all([n.e(9891),n.e(3132)]).then(n.bind(n,80636))},props:!0,meta:{title:"Payment - UXfolio",nonEditorPage:!0},children:[{path:"",name:"Payment",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(2922),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(1999),n.e(9499),n.e(8239)]).then(n.bind(n,77689))},props:function(e){return Lo({},e.params)}},{path:"auth",name:"Auth",component:function(){return Promise.all([n.e(9891),n.e(3132)]).then(n.bind(n,16481))},props:!0},{path:"success",name:"Success",component:function(){return Promise.all([n.e(9891),n.e(3132)]).then(n.bind(n,2425))},props:!0},{path:"failure",name:"Failure",component:function(){return Promise.all([n.e(9891),n.e(3132)]).then(n.bind(n,3052))},props:!0},{path:"deleted",name:"Deleted",component:function(){return Promise.all([n.e(9891),n.e(3132)]).then(n.bind(n,19442))},props:!0}]},{path:"domain",name:"Domain center",component:function(){return n.e(1052).then(n.bind(n,66856))},props:!0,meta:{title:"Domain editor - Uxfolio",nonEditorPage:!0},children:[{path:"manage",name:"Domain manager",component:function(){return n.e(1052).then(n.bind(n,87165))},props:!0},{path:"search",name:"Domain search",component:function(){return n.e(1052).then(n.bind(n,36797))},props:!0},{path:"connect",name:"Connect domain",component:function(){return n.e(1052).then(n.bind(n,33642))},props:!0},{path:"transfer",name:"Transfer domain",component:function(){return n.e(1052).then(n.bind(n,74550))},props:!0}]},{path:"url",name:"Url center",component:function(){return n.e(3681).then(n.bind(n,46316))},props:!0,meta:{title:"URL editor - Uxfolio",nonEditorPage:!0},children:[{path:"edit",name:"Edit url",component:function(){return n.e(3681).then(n.bind(n,3405))},props:!0}]}]},{path:"/:catchAll(.*)",name:"NotFound",component:Bo},{path:"/projects/*",name:"LegacyProjectEditUrl",component:Bo}],Jo=[].concat(qo,[{path:"/",name:"Index",props:!0,component:Uo,children:[{path:"v1",component:Uo}]},{path:"/custom-ux-portfolio",name:"IndexLab",props:!0,component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,76864))},meta:{title:"UXfolio - Build the UX portfolio that gets you hired",type:"landing"}},{path:"/result",name:"Review Result",props:!0,component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,13327))}},{path:"/",component:function(){return n.e(5838).then(n.bind(n,83465))},children:[{path:"login",name:"Login",component:function(){return n.e(5838).then(n.bind(n,35279))},meta:{title:"Log in - UXfolio",type:"landing"}},{path:"signup",name:"Signup",component:function(){return n.e(5838).then(n.bind(n,66849))},meta:{title:"Sign up - UXfolio",type:"landing"}},{path:"forgot-password",name:"Forgot Password",component:function(){return n.e(5838).then(n.bind(n,13895))},meta:{title:"Reset password - UXfolio",type:"landing"}},{path:"reset-password",name:"Reset Password",component:function(){return n.e(5838).then(n.bind(n,96257))},meta:{title:"Create new password - UXfolio",type:"landing"}}]},{path:"/pricing",name:"Pricing",props:!0,component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,83157))},meta:{title:"Pricing - UXfolio",type:"landing"}},{path:"/examples/:showcaseItemShortId/:showcaseItemName",name:"Example",props:!0,component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,35568))},meta:{type:"landing",title:"Examples - UXfolio"}},{path:"/examples",name:"Examples",props:!0,component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,298))},meta:{title:"Examples - UXfolio",type:"landing"}},{path:"/showcase",name:"Showcase",redirect:{name:"Examples"}},{path:"/partnership-program",name:"Partnership program",alias:"/partnership-program/:submitFeedback",component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,30109))},meta:{title:"Educational partnership - UXfolio",type:"landing"}},{path:"/privacy-policy",name:"Privacy policy",component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,76776))},meta:{type:"landing",title:"Privacy Policy - UXfolio"}},{path:"/terms-and-conditions",name:"Terms and conditions",component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,51566))},meta:{type:"landing",title:"Terms and Conditions - UXfolio"}},{path:"/imprint",name:"Imprint",component:function(){return Promise.all([n.e(7522),n.e(9499),n.e(5991)]).then(n.bind(n,78440))},meta:{type:"landing",title:"Imprint - UXfolio"}},{path:"/admin",name:"adminPage",type:"landing",meta:{requiresAdmin:!0,title:"UXfolio - Admin"},component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,65590))},redirect:{name:"admin-users"},children:[{path:"users",name:"admin-users",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,3334))},meta:{adminGroup:"Core",adminLabel:"Users",adminContainer:"fw"}},{path:"subscriptions",name:"admin-subscriptions",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,47950))},meta:{adminGroup:"Core",adminLabel:"Subscriptions",adminContainer:"narrow"}},{path:"cancel-reasons",name:"admin-cancel-reasons",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,83771))},meta:{adminGroup:"Core",adminLabel:"Cancel reasons",adminContainer:"narrow"}},{path:"survey-responses",name:"admin-survey-responses",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,31281))},meta:{adminGroup:"Core",adminLabel:"Survey responses",adminContainer:"fw"}},{path:"showcase",name:"admin-showcase",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,96695))},meta:{adminGroup:"Content",adminLabel:"Showcase",adminContainer:"fw"}},{path:"user-reviews",name:"admin-reviews",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,54136))},meta:{adminGroup:"Content",adminLabel:"User reviews",adminContainer:"fw"}},{path:"background-library",name:"admin-background-library",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,45893))}
2,meta:{adminGroup:"Content",adminLabel:"Background Library",adminContainer:"fw"}},{path:"color-palettes",name:"admin-color-palettes",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,7294))},meta:{adminGroup:"Content",adminLabel:"Color palettes",adminContainer:"fw"}},{path:"section-preset-groups",name:"admin-section-preset-groups",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,46466))},meta:{adminGroup:"Content",adminLabel:"Section preset groups",adminContainer:"fw"}},{path:"own-domain",name:"admin-own-domain",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,21061))},meta:{adminGroup:"Operations",adminLabel:"Own domain",adminContainer:"narrow"}},{path:"system-notifications",name:"admin-system-notifications",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,58036))},meta:{adminGroup:"Operations",adminLabel:"System notifications",adminContainer:"fw"}},{path:"emergency-banner",name:"admin-emergency-banner",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,93788))},meta:{adminGroup:"Operations",adminLabel:"Emergency banner",adminContainer:"narrow"}},{path:"referrals",name:"admin-referrals",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,49588))},meta:{adminGroup:"Growth",adminLabel:"Referrals",adminContainer:"fw"}},{path:"ai-settings",name:"admin-ai-settings",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,43812))},meta:{adminGroup:"AI & Safety",adminLabel:"AI settings",adminContainer:"fw"}},{path:"spam-deletion",name:"admin-spam-deletion",component:function(){return Promise.all([n.e(432),n.e(510),n.e(7953),n.e(9891),n.e(354),n.e(4481),n.e(7237),n.e(7709),n.e(2829),n.e(3115),n.e(4185),n.e(405),n.e(4108),n.e(9884)]).then(n.bind(n,7703))},meta:{adminGroup:"AI & Safety",adminLabel:"Spam deletion",adminContainer:"fw"}}]},{path:"/settings",name:"settingsEditorApp",meta:{title:"UXfolio - Settings"},component:function(){return Promise.all([n.e(510),n.e(2829),n.e(3115),n.e(6472)]).then(n.bind(n,45420))},redirect:{name:"copy"},children:[{name:"copy",path:"copy",component:function(){return Promise.all([n.e(510),n.e(2829),n.e(3115),n.e(6472)]).then(n.bind(n,21249))}},{name:"image-ideas",path:"image-ideas",component:function(){return Promise.all([n.e(510),n.e(2829),n.e(3115),n.e(6472)]).then(n.bind(n,62025))}},{name:"fonts",path:"fonts",component:function(){return Promise.all([n.e(510),n.e(2829),n.e(3115),n.e(6472)]).then(n.bind(n,96353))}},{name:"survey-modal-settings",path:"survey-modal-settings",component:function(){return Promise.all([n.e(510),n.e(2829),n.e(3115),n.e(6472)]).then(n.bind(n,78750))}},{name:"spam-filter-settings",path:"spam-filter-settings",component:function(){return Promise.all([n.e(510),n.e(2829),n.e(3115),n.e(6472)]).then(n.bind(n,62180))}}]}],function(e){if(Array.isArray(e))return Po(e)}($o=Yo.filter(function(e){return"/:shortId"!==e.path}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}($o)||function(e,t){if(e){if("string"==typeof e)return Po(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Po(e,t):void 0}}($o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),Qo,Ko,Vo,[{path:"/:shortId",component:Ie.A,meta:{type:"view"}}]);const Zo=zo=r.aE({history:r.LA(),routes:Jo,scrollBehavior:function(e,t,n){var r=e.path.split("/");return e.hash?{el:e.hash,behavior:"smooth"}:!r.includes("home")&&r.includes("p")&&"view"!==e.meta.type||"landing"===e.meta.type||r.includes("prices")?{top:0}:void 0}});zo.beforeEach(function(e,t,n){var r=e.path.split("/");(r.includes("home")&&!r.includes("p")||"landing"===e.meta.type)&&(document.title=e.meta.title||"UXfolio - Build the UX portfolio that gets you hired"),n()}),zo.beforeEach(function(e,t,n){t.path.startsWith("/review")&&!e.path.startsWith("/review")?n("/review".concat(e.path)):t.path.startsWith("/myreviews")&&!e.path.startsWith("/myreviews")?n("/myreviews".concat(e.path)):n()}),zo.beforeEach(function(e,t,n){!t.path.startsWith("/jobfitchecker")||e.path.startsWith("/jobfitchecker")||e.query.skipJfc?n():n("/jobfitchecker".concat(e.path))}),zo.beforeEach(function(e,t,n){if("true"===t.query.templatePreview&&"true"!==e.query.templatePreview)return n(Lo(Lo({},e),{},{query:Lo(Lo({},e.query),{},{templatePreview:"true"}),replace:!0}));n()}),zo.beforeEach(function(){var e,t=(e=Ao().m(function e(t,n,r){var o,i;return Ao().w(function(e){for(;;)switch(e.p=e.n){case 0:if((0,mo.f1)(t.path)){e.n=1;break}return e.a(2,r());case 1:if(!mo.Kq.authenticated){e.n=2;break}return e.a(2,r());case 2:if(!(0,mo.Ng)(t.fullPath,window.location.hash)){e.n=9;break}return e.n=3,(0,mo.Ld)();case 3:if(!e.v&&!mo.Kq.authenticated){e.n=5;break}if((o=(0,mo.KQ)(window.location.href))===window.location.href){e.n=4;break}return window.location.replace(o),e.a(2,r(!1));case 4:return e.a(2,r());case 5:return i=(0,mo.KQ)(window.location.href),window.history.replaceState({},document.title,i),e.n=6,(0,mo.vw)();case 6:return e.p=6,e.n=7,(0,mo.Rf)(i);case 7:case 13:return e.a(2,r(!1));case 8:return e.p=8,e.v,(0,ho.oN)({state:"auth_callback_failed",title:"We could not complete sign in",message:"Something interrupted the secure login callback. You can try again without losing your work.",primaryLabel:"Try again",primaryAction:"forceLogin",secondaryLabel:"Reload page",secondaryAction:"retry",redirectUri:i}),e.a(2,r(!1));case 9:if(e.p=9,mo.Kq.authenticated){e.n=10;break}return e.n=10,(0,mo.Ld)();case 10:if(!mo.Kq.authenticated){e.n=11;break}return e.a(2,r());case 11:if("error"!==(0,mo.Ag)().status){e.n=12;break}return e.a(2,r(!1));case 12:return e.n=13,(0,mo.Rf)("".concat(window.location.origin).concat(t.fullPath));case 14:return e.p=14,e.v,(0,ho.oN)({state:"auth_route_guard_failed",title:"We could not check your session",message:"Your work is still safe. You can reload the page or open secure login again.",primaryLabel:"Reload page",primaryAction:"retry",secondaryLabel:"Open login",secondaryAction:"forceLogin",redirectUri:"".concat(window.location.origin).concat(t.fullPath)}),e.a(2,r(!1))}},e,null,[[9,14],[6,8]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){xo(i,r,o,s,a,"next",e)}function a(e){xo(i,r,o,s,a,"throw",e)}s(void 0)})});return function(e,n,r){return t.apply(this,arguments)}}()),zo.beforeEach(function(e,t,n){return function(e,t){return Co.apply(this,arguments)}
2(e,n)})},32682(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Gu:()=>c,Lt:()=>l,T7:()=>i,go:()=>s,i4:()=>a});var o,i=[{type:"Text",name:"Text",cssClass:"text"},{type:"Accordion",name:"Accordion",cssClass:"accordion"},{type:"AnimatedText",name:"Animated text",cssClass:"text"},{type:"Image",name:"Big image",cssClass:"image"},{type:"TextAndMedia",name:"Text & image",cssClass:"image-text"},{type:"Columns",name:"Columns",cssClass:"columns"},{type:"Cards",name:"Cards",cssClass:"card"},{type:"Tabs",name:"Tabs",cssClass:"tabs"},{type:"DividerLine",name:"Divider line",cssClass:"divider"},{type:"Gallery",name:"Gallery",cssClass:"gallery"},{type:"Prototype",name:"Prototype",cssClass:"prototype"},{type:"Video",name:"Video",cssClass:"video"},{type:"Media",name:"Media",cssClass:"media"},{type:"Stat",name:"Stats",cssClass:"stats"},{type:"Header",name:"Subheader",cssClass:"header"},{type:"BoldStatement",name:"Bold statement",cssClass:"statement"},{type:"Process",name:"Process",cssClass:"navigation"},{type:"Testimonial",name:"Testimonials",cssClass:"testimonial"},{type:"LogoWall",name:"Logo wall",cssClass:"logo-wall"},{type:"Cta",name:"Call to action",cssClass:"cta"}],s=[{type:"Interviews",name:"Interviews",cssClass:"interviews"},{type:"Surveys",name:"Survey",cssClass:"surveys"},{type:"Personas",name:"Personas",cssClass:"personas"},{type:"CustomerJourney",name:"Customer journey",cssClass:"cj"},{type:"UserJourney",name:"User journey",cssClass:"uj"},{type:"CardSorting",name:"Card sorting",cssClass:"card-sorting"},{type:"Sketches",name:"Sketches",cssClass:"sketches"},{type:"Wireframes",name:"Wireframes",cssClass:"wireframes"},{type:"UsabilityTesting",name:"Usability testing",cssClass:"user-testing"},{type:"UiDesign",name:"UI design",cssClass:"ui-design"}],a=[{type:"Bio",name:"About me",cssClass:"bio"},{type:"ShortIntro",name:"Short intro",cssClass:"short-intro"},{type:"Education",name:"Education",cssClass:"education"},{type:"Services",name:"Services",cssClass:"skills"},{type:"Articles",name:"Articles",cssClass:"articles"},{type:"Awards",name:"Awards",cssClass:"awards"},{type:"Hobbies",name:"Hobbies",cssClass:"hobbies"},{type:"SocialMedia",name:"Social media",cssClass:"personas"},{type:"ADPList",name:"ADPList profile",cssClass:"adplist"}],l=[{type:"Text",name:"Text",cssClass:"text"},{type:"Accordion",name:"Accordion",cssClass:"accordion"},{type:"TextAndMedia",name:"Text & image",cssClass:"image-text"},{type:"Columns",name:"Columns",cssClass:"columns"},{type:"Tabs",name:"Tabs",cssClass:"tabs"},{type:"DividerLine",name:"Divider line",cssClass:"divider"},{type:"Header",name:"Subheader",cssClass:"header"},{type:"Gallery",name:"Gallery",cssClass:"gallery"},{type:"Image",name:"Big image",cssClass:"image"},{type:"Video",name:"Video",cssClass:"video"},{type:"Stat",name:"Stats",cssClass:"stats"},{type:"Testimonial",name:"Testimonial",cssClass:"testimonial"},{type:"BoldStatement",name:"Bold statement",cssClass:"statement"},{type:"ContactForm",name:"Contact form",cssClass:"contact-form"},{type:"Cta",name:"Call to action",cssClass:"cta"},{type:"LogoWall",name:"Logo wall",cssClass:"logo-wall"}],c=function(e){if(Array.isArray(e))return r(e)}(o=new Set([].concat(i,s,l,a)))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},84076(e,t,n){"use strict";n.d(t,{C:()=>g});const r=n.p+"src/assets/images/anim-aurora.759356ae.png",o=n.p+"src/assets/images/anim-light-rays.32aeaa12.png",i=n.p+"src/assets/images/anim-beams.45a72b3a.png",s=n.p+"src/assets/images/anim-threads.c39bd38c.png",a=n.p+"src/assets/images/anim-line-waves.90ca3a8c.png",l=n.p+"src/assets/images/anim-particles.2fce8c07.png",c=n.p+"src/assets/images/anim-dot-grid.d72beb98.png",u=n.p+"src/assets/images/anim-squares.3f202487.png",d=n.p+"src/assets/images/anim-pixel-blast.7a72336c.png",p=n.p+"src/assets/images/anim-grainient.0d32813e.png",f=n.p+"src/assets/images/anim-gradient-blinds.55cf5598.png",h=n.p+"src/assets/images/anim-silk.6e4bd867.png";var m=function(e,t,n,r){return{id:e,group:"Presets",title:t,rendererKey:n,icon:arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",baseProps:r,colorSlots:arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]}},v=function(e,t,n){return{_id:e,label:t,propPath:n,defaultColor:{color:arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,paletteColorIndex:arguments.length>4&&void 0!==arguments[4]?arguments[4]:null}}}
2,g=Object.freeze([m("aurora_default","Aurora","AURORA",{colorStops:["#7cff67","#171D22","#7cff67"],amplitude:1,blend:.5,speed:.5,intensity:.5},[v("aurora_1","Color 1","colorStops[0]",null,4),v("aurora_2","Color 2","colorStops[1]",null,2),v("aurora_3","Color 3","colorStops[2]",null,2)],r),m("light_rays_default","Light Rays","LIGHT_RAYS",{raysOrigin:"top-center",raysColor:"#ffffff",raysSpeed:.6,lightSpread:1,rayLength:1,pulsating:!1,fadeDistance:1,saturation:1,followMouse:!0,mouseInfluence:.1,noiseAmount:0,distortion:0},[v("light_rays_color","Rays Color","raysColor",null,0)],o),m("beams_default","Beams","BEAMS",{beamWidth:2,beamHeight:15,beamNumber:12,lightColor:"#ffffff",speed:1.45,noiseIntensity:1.75,scale:.2,rotation:0},[v("beams_color","Light Color","lightColor",null,0)],i),m("threads_default","Threads","THREADS",{color:[1,1,1],amplitude:1,distance:0,verticalPosition:.22,enableMouseInteraction:!1},[v("threads_color","Thread Color","color",null,0)],s),m("line_waves_default","Line Waves","LINE_WAVES",{speed:.1,innerLineCount:32,outerLineCount:36,warpIntensity:1,rotation:-45,edgeFadeWidth:0,colorCycleSpeed:1,brightness:.12,enableMouseInteraction:!1,mouseInfluence:2,color1:"#ffffff",color2:"#ffffff",color3:"#ffffff"},[v("line_waves_1","Color 1","color1",null,4),v("line_waves_2","Color 2","color2",null,3),v("line_waves_3","Color 3","color3",null,0)],a),m("particles_default","Particles","PARTICLES",{particleCount:170,particleSpread:11,speed:.1,particleColors:["#ffffff","#ffffff","#ffffff"],moveParticlesOnHover:!1,particleHoverFactor:1,alphaParticles:!1,disableRotation:!1,cameraDistance:20,sizeRandomness:1,particleBaseSize:100},[v("particles_1","Color 1","particleColors[0]",null,0),v("particles_2","Color 2","particleColors[1]",null,0),v("particles_3","Color 3","particleColors[2]",null,2)],l),m("dot_grid_default","Dot Grid","DOT_GRID",{dotSize:2,gap:18,baseColor:"#27FF64",activeColor:"#27FF64",proximity:150,speedTrigger:100,shockRadius:185,shockStrength:3,maxSpeed:4500,resistance:530,returnDuration:1.5},[v("dot_grid_base","Base Color","baseColor",null,3),v("dot_grid_active","Active Color","activeColor",null,0)],c),m("squares_default","Squares","SQUARES",{direction:"diagonal",speed:0,borderColor:"#999999",squareSize:40,hoverFillColor:"#222222",edgeShadowEnabled:!1,edgeShadowColor:"#0b0b0b"},[v("squares_border","Border Color","borderColor",null,3),v("squares_fill","Hover Fill","hoverFillColor",null,2)],u),m("pixel_blast_default","Pixel Blast","PIXEL_BLAST",{variant:"square",pixelSize:3,color:"#B19EEF",antialias:!0,patternScale:1.8,patternDensity:1,liquid:!1,liquidStrength:.
21,liquidRadius:1,pixelSizeJitter:0,enableRipples:!0,rippleIntensityScale:1.5,rippleThickness:.1,rippleSpeed:.3,liquidWobbleSpeed:4.5,autoPauseOffscreen:!0,speed:.5,transparent:!0,edgeFade:.5,noiseAmount:0},[v("pixel_blast_color","Color","color",null,1)],d),m("grainient_default","Grainient","GRAINIENT",{timeSpeed:.25,colorBalance:0,warpStrength:1,warpFrequency:5,warpSpeed:2,warpAmplitude:50,blendAngle:0,blendSoftness:.05,rotationAmount:500,noiseScale:2,grainAmount:.1,grainScale:2,grainAnimated:!1,contrast:1.5,gamma:1,saturation:1,centerX:0,centerY:0,zoom:.9,color1:"#FF9FFC",color2:"#5227FF",color3:"#B19EEF"},[v("gradient_1","Color 1","color1",null,3),v("gradient_2","Color 2","color2",null,2),v("gradient_3","Color 3","color3",null,2)],p),m("gradient_blinds_default","Gradient Blinds","GRADIENT_BLINDS",{paused:!1,angle:25,noise:.3,blindCount:16,blindMinWidth:60,mouseDampening:.15,mirrorGradient:!1,spotlightRadius:.5,spotlightSoftness:1,spotlightOpacity:1,distortAmount:0,shineDirection:"left",mixBlendMode:"soft-light",gradientColors:["#FF9FFC","#27FF64","#B19EEF"]},[v("gradient_blinds_1","Color 1","gradientColors[0]",null,1),v("gradient_blinds_2","Color 2","gradientColors[1]",null,1),v("gradient_blinds_3","Color 3","gradientColors[2]",null,1)],f),m("silk_default","Silk","SILK",{speed:2.5,scale:1,color:"#7B7481",noiseIntensity:1.5,rotation:0},[v("silk_color","Color","color",null,1)],h)])},4484(e,t,n){"use strict";function r(e){var t=e.isOverlay,n=e.getSectionEl,r=e.onHeight,o=e.onClear,i=null,s=null,a=null,l=function(e,t){var n,r,o=t||(null==e?void 0:e.offsetHeight)||0;if("undefined"==typeof window||window.innerWidth>768)return o;var i=null==e||null===(n=e.querySelector)||void 0===n?void 0:n.call(e,".navbar"),s=null==e||null===(r=e.querySelector)||void 0===r||null===(r=r.call(e,".navbar-header"))||void 0===r?void 0:r.offsetHeight;if(i&&s){var a=window.getComputedStyle(i),l=parseFloat(a.paddingTop)||0,c=parseFloat(a.paddingBottom)||0,u=parseFloat(a.marginTop)||0,d=parseFloat(a.marginBottom)||0,p=parseFloat(a.borderTopWidth)||0,f=parseFloat(a.borderBottomWidth)||0;return Math.round(s+l+c+u+d+p+f)}return s||o},c=function(){i&&(i.disconnect(),i=null),s&&("undefined"!=typeof window&&"function"==typeof window.cancelAnimationFrame&&window.cancelAnimationFrame(s),s=null),a&&(clearTimeout(a),a=null)};return{setup:function(){var e;if(c(),t()){var u=n();if(u){var d=(null===(e=window)||void 0===e?void 0:e.ResizeObserver)||globalThis.ResizeObserver;d&&((i=new d(function(e){var t,n=e[0],o=l(u,null==n||null===(t=n.contentRect)||void 0===t?void 0:t.height);r(o)})).observe(u),r(l(u)),"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame&&(s=window.requestAnimationFrame(function(){return r(l(u))})),a=setTimeout(function(){return r(l(u))},80))}}else null==o||o()},teardown:c}}function o(){var e,t,n,r,o,i,s,a,l,c,u,d,p,f,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=h.height,v=h.isBelow,g=h.isOverlay,y=h.targetEl,b=y?[y]:(u=null===(e=document)||void 0===e||null===(t=e.querySelector)||void 0===t?void 0:t.call(e,".ufo-sec--hero"),d=null===(n=document)||void 0===n||null===(r=n.querySelector)||void 0===r?void 0:r.call(n,".ufo-sec--header-main"),p=null===(o=document)||void 0===o||null===(i=o.querySelector)||void 0===i?void 0:i.call(o,".ufo--page-sections .section-container:has(.ufo-sec--navigation.nav-overlay)"),f=[null===(s=document)||void 0===s||null===(a=s.querySelector)||void 0===a?void 0:a.call(s,".ufo--page-sections.editor .ufo--add-section-row"),null===(l=document)||void 0===l||null===(c=l.querySelector)||void 0===c?void 0:c.call(l,".ufo--page-sections .ufo-sec:not(.ufo-sec--navigation):not(.ufo-sec--hero):not(.ufo-sec--header-main)")].filter(Boolean).sort(function(e,t){var n;return e===t?0:e.compareDocumentPosition(t)&((null===(n=window)||void 0===n?void 0:n.Node)||globalThis.Node).DOCUMENT_POSITION_FOLLOWING?-1:1})[0],Array.from(new Set([u,d,u||d?null:p||f].filter(Boolean))));if(b.length)if(m){var w="".concat(Math.round(m),"px");b.forEach(function(e){var t,n=null===(t=e.classList)||void 0===t?void 0:t.contains("ufo--add-section-row"),r=n?"--addSectionNavOffsetTop":"--portfolioNavPaddingTop",o=n?"--addSectionNavOffsetBottom":"--portfolioNavPaddingBottom";if(v)return e.style.setProperty(o,w),void e.style.removeProperty(r);g&&(e.style.setProperty(r,w),e.style.removeProperty(o))})}else b.forEach(function(e){e.style.removeProperty("--portfolioNavPaddingTop"),e.style.removeProperty("--portfolioNavPaddingBottom"),e.style.removeProperty("--addSectionNavOffsetTop"),e.style.removeProperty("--addSectionNavOffsetBottom")})}n.d(t,{T:()=>r,k:()=>o})},57744(e,t,n){"use strict";n.d(t,{A:()=>
2o});var r=n(74256);const o={computed:{noMobileClass:function(){return this.inline?"no-mob":""},navOpenClass:function(){var e;return null!==(e=this.viewData)&&void 0!==e&&e.navOpen?"on":""},filteredPages:function(){var e=(Array.isArray(this.allPagesForNavigation)?this.allPagesForNavigation:[]).filter(function(e){return!e.deletedAt});return this.hideHome?e.filter(function(e){return"home"!==(null==e?void 0:e.shortId)}):e},showSocialLinks:function(){var e,t=this.socialLinksForNavigation;return(null===(e=this.navigation)||void 0===e||null===(e=e.socialLinks)||void 0===e?void 0:e.position)===r.ji.NAVBAR&&Array.isArray(t)&&t.length>0}}}},21643(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(74256);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={computed:{resolvedLogo:function(){var e;return this.logo||(null===(e=this.$store)||void 0===e||null===(e=e.state)||void 0===e||null===(e=e.portfolio)||void 0===e?void 0:e.logo)||null},resolvedUserName:function(){var e,t;return this.userName||(null===(e=this.resolvedLogo)||void 0===e?void 0:e.name)||(null===(t=this.$store)||void 0===t||null===(t=t.state)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.name)||""},upperCase:function(){var e;return!(null===(e=this.navigation)||void 0===e||null===(e=e.menu)||void 0===e||!e.upperCase)},logoClass:function(){return"navbar-logo"},showLogo:function(){var e,t,n;if(this.hideLogo)return!1;var o=null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.layoutType;return(o===r._W.SIDES||o===r._W.SIMPLE_WITH_LOGO||o===r._W.SIDES_WITH_CTA||o===r._W.SPLIT_NAVIGATION||o===r._W.SPLIT_LOGO||o===r._W.CENTERED)&&!(null===(t=this.resolvedLogo)||void 0===t||!t.mode)&&(null===(n=this.navigation)||void 0===n?void 0:n.layout.position)!==r.ze.BOTTOM},showCtaButton:function(){var e,t,n=null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.layoutType;return!(n!==r._W.SIDES_WITH_CTA&&n!==r._W.SPLIT_NAVIGATION&&n!==r._W.SPLIT_LOGO)&&!1!==(null===(t=this.navigation)||void 0===t||null===(t=t.cta)||void 0===t?void 0:t.show)},showHamburger:function(){return!this.inline&&!this.theme.includes("profile_theme_")},navItemGapStyle:function(){var e,t=null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.itemGap,n=Number.isFinite(t)?t:24;return{"--navItemGap":"".concat(n,"px")}},navFrameStyle:function(){var e,t,n,o,a,l=Number(null===(e=this.navigation)||void 0===e||null===(e=e.moduleBackgroun
2dSettings)||void 0===e?void 0:e.cornerRadiusPx),c=Number.isFinite(l)?l:0,u=(null===(t=this.navigation)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.visualStyle)===r.ZM.FRAMED,d="OUTLINE"===(null===(n=this.navigation)||void 0===n||null===(n=n.moduleBackgroundSettings)||void 0===n?void 0:n.moduleBackgroundType),p=this.resolveColorData(null===(o=this.navigation)||void 0===o||null===(o=o.moduleBackgroundSettings)||void 0===o?void 0:o.color),f=d?this.resolveColorData(null===(a=this.navigation)||void 0===a||null===(a=a.moduleBackgroundSettings)||void 0===a||null===(a=a.stroke)||void 0===a?void 0:a.color):"transparent";return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({"--navFrameRadius":"".concat(c,"px"),"--navFrameBgColor":p,"--navFrameOutlineColor":f,"--navFrameOutlineWidth":d?"1px":"0px"},u?{"--navCtaRadius":"".concat(16===c?8:c,"px")}:{})}},methods:{resolveColorData:function(e){return e?Number.isFinite(e.paletteColorIndex)?(null===(t=this.colorPalette)||void 0===t||null===(t=t.colors)||void 0===t?void 0:t[e.paletteColorIndex])||null:e.color||null:null;var t}}}},78805(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(74256);function o(e){var t,n,o,i,s=e.navigation,a=e.isSidebarHeroLayout,l=e.isCaseStudy;return s?!a&&l?{showAbove:!0,showBelow:!1,showOutside:!1}:a?{showAbove:(null==s||null===(o=s.layout)||void 0===o?void 0:o.sidebarNavPlacement)===r.f3.TOP,showBelow:(null==s||null===(i=s.layout)||void 0===i?void 0:i.sidebarNavPlacement)===r.f3.BOTTOM}:{showAbove:(null==s||null===(t=s.layout)||void 0===t?void 0:t.position)===r.ze.TOP,showBelow:(null==s||null===(n=s.layout)||void 0===n?void 0:n.position)===r.ze.BOTTOM,showOutside:!1}:{showAbove:!1,showBelow:!1,showOutside:!1}}},9579(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74256);const o={computed:{layoutClass:function(){var e,t,n=null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.layoutType,o=null===(t=this.navigation)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.alignment;if(n===r._W.SIMPLE){var i=this.toKebab(o)||"left";return"simple-".concat(i)}if(n===r._W.SIMPLE_WITH_LOGO)return"simple-with-logo";if(n===r._W.SIDES)return"sides";if(n===r._W.SIDES_WITH_CTA)return"sides-with-cta";if(n===r._W.SPLIT_NAVIGATION)return"split-navigation";if(n===r._W.SPLIT_LOGO)return"split-logo";if(n===r._W.CENTERED)return"middle";if(n===r._W.SIDEBAR){var s=this.toKebab(o)||"left";return"simple-".concat(s)}return"simple-left"},styleClass:function(){var e,t,n,o;return(null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.visualStyle)===r.ZM.FRAMED?"framed":(null===(t=this.navigation)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.visualStyle)===r.ZM.FORWARD_SLASH?"forward-slash":(null===(n=this.navigation)||void 0===n||null===(n=n.layout)||void 0===n?void 0:n.visualStyle)===r.ZM.LINE_BOTH_SIDES?"line-middle":(null===(o=this.navigation)||void 0===o||null===(o=o.layout)||void 0===o||o.visualStyle,r.ZM.SIMPLE,"simple")},frameLayoutClass:function(){var e,t;return(null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.visualStyle)!==r.ZM.FRAMED?null:(null===(t=this.navigation)||void 0===t||null===(t=t.layout)||void 0===t?void 0:t.frameLayout)===r.jg.CENTERED?"framed-centered":"framed-full-width"},buttonStyleClass:function(){var e,t=(null===(e=this.navigation)||void 0===e?void 0:e.menu)||{};if(null==t||!t.style)return["simple"];var n=[this.toKebab(t.style)];return t.linkHoverEffect&&n.push("hover-".concat(this.toKebab(t.linkHoverEffect))),"Underlined"===t.style&&n.push("size-".concat(this.toKebab(t.underlinedSize)),"weight-".concat(this.toKebab(t.underlinedWeight))),"Framed"===t.style&&n.push(this.toKebab(t.boxedShape),this.toKebab(t.boxedWeight)),n.filter(Boolean)},showLines:function(){var e;return(null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.visualStyle)===r.ZM.LINE_BOTH_SIDES}},methods:{toKebab:function(e){return e?e.toString().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/_/g,"-").toLowerCase():null},showSeparator:function(e){return e>0&&"forward-slash"===this.styleClass}}}},56286(e,t,n){"use strict";n.d(t,{A:()=>
2o});var r=n(74256);const o={computed:{isStickyEffect:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.scrollEffect)===r.oY.STAY_ON_TOP},isAutoHideEffect:function(){var e;return(null===(e=this.section)||void 0===e?void 0:e.scrollEffect)===r.oY.ANIMATE_OUT_AND_BACK},isPinnedEffect:function(){return this.isStickyEffect||this.isAutoHideEffect}}}},39809(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74256);const o={data:function(){return{navItemsWrapped:!1,navWrapResizeObserver:null,navWrapAnimationFrame:null}},mounted:function(){this.setupNavWrapObserver()},updated:function(){this.scheduleNavWrapCheck()},beforeUnmount:function(){this.teardownNavWrapObserver()},methods:{setupNavWrapObserver:function(){var e=this;this.teardownNavWrapObserver(),this.$nextTick(function(){var t=e.$refs.navbarContainer;t&&"undefined"!=typeof ResizeObserver?(e.navWrapResizeObserver=new ResizeObserver(function(){e.scheduleNavWrapCheck()}),e.navWrapResizeObserver.observe(t),e.scheduleNavWrapCheck()):e.scheduleNavWrapCheck()})},teardownNavWrapObserver:function(){this.navWrapResizeObserver&&(this.navWrapResizeObserver.disconnect(),this.navWrapResizeObserver=null),this.navWrapAnimationFrame&&(cancelAnimationFrame(this.navWrapAnimationFrame),this.navWrapAnimationFrame=null)},scheduleNavWrapCheck:function(){var e=this;if(!this.navWrapAnimationFrame){var t="function"==typeof requestAnimationFrame?requestAnimationFrame:function(e){return setTimeout(e,0)};this.navWrapAnimationFrame=t(function(){e.navWrapAnimationFrame=null,e.updateNavItemsWrapped()})}},updateNavItemsWrapped:function(){var e,t=this.$refs.navbarContainer;if(t&&this.isSidebarHeroNavigation&&(null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.menuItemAlignment)===r.v1.HORIZONTAL){var n=Array.from(t.children).find(function(e){return null!==e.offsetParent});this.navItemsWrapped=!!n&&Array.from(t.children).some(function(e){return null!==e.offsetParent&&e.offsetTop>n.offsetTop})}else this.navItemsWrapped=!1}}}},61726(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74256);const o={data:function(){return{isStuck:!1,isHidden:!1,lastScrollY:0,downScrollDelta:0,upScrollDelta:0}},computed:{normalizedScrollEffect:function(){var e,t=null===(e=this.navigation)||void 0===e?void 0:e.scrollEffect;if(!t)return null;if(t===r.oY.STAY_ON_TOP)return t;if(t===r.oY.ANIMATE_OUT_AND_BACK)return t;if(t===r.oY.SCROLL_WITH_PAGE)return t;var n=t.toString().replace(/\s+/g,"").toLowerCase();return"stayontop"===n?r.oY.STAY_ON_TOP:"animateout&back"===n||"animateoutandback"===n?r.oY.ANIMATE_OUT_AND_BACK:"scrollwithpage"===n?r.oY.SCROLL_WITH_PAGE:null},isStickyEffect:function(){return this.normalizedScrollEffect===r.oY.STAY_ON_TOP},isAutoHideEffect:function(){return this.normalizedScrollEffect===r.oY.ANIMATE_OUT_AND_BACK},isPinnedEffect:function(){return this.isStickyEffect||this.isAutoHideEffect},isSidebarHeroNavigation:function(){var e,t,n=(null===(e=this.viewData)||void 0===e?void 0:e.portfolio)||this.$store.state.portfolio;return(null==n||null===(t=n.portfolioHero)||void 0===t||null===(t=t.layoutSettings)||void 0===t?void 0:t.layoutType)===r.qX.SIDEBAR},menuItemAlignmentClass:function(){var e;return this.isSidebarHeroNavigation?(null===(e=this.navigation)||void 0===e||null===(e=e.layout)||void 0===e?void 0:e.menuItemAlignment)===r.v1.HORIZONTAL?"menu-items-horizontal":"menu-items-vertical":null},hasAnimatedHeroBackground:function(){var e,t,n=(null===(e=this.viewData)||void 0===e?void 0:e.portfolio)||this.$store.state.portfolio;return!(null==n||null===(t=n.portfolioHero)||void 0===t||null===(t=t.backgroundSettings)||void 0===t||!t.animatedBackground)},navbarClasses:function(){return["navbar",this.layoutClass,this.styleClass,this.frameLayoutClass,this.menuItemAlignmentClass,"pn-".concat(this.theme||""),{sticky:this.isPinnedEffect,stuck:this.isPinnedEffect&&this.isStuck,"auto-hide":this.isAutoHideEffect,"is-hidden":this.isHidden,"on-animated-hero":this.hasAnimatedHeroBackground,"menu-items-wrapped":this.navItemsWrapped}]}},methods:{hasVisibleProcessStickyHeader:function(){return"undefined"!=typeof document&&!!document.querySelector(".ufo-sec--process .sticky-header.sticked:not(.sticked-hidden
2)")},clearPinnedNavOffset:function(){var e,t=null===(e=document)||void 0===e?void 0:e.documentElement;t&&t.style.setProperty("--portfolioPinnedNavOffset","0px")},applyPinnedNavOffset:function(){var e,t=null===(e=document)||void 0===e?void 0:e.documentElement;if(t){var n,r=0;if(this.isPinnedEffect&&this.isStuck&&!(this.isAutoHideEffect&&this.isHidden))r=Math.round((null===(n=this.$el)||void 0===n?void 0:n.offsetHeight)||0);t.style.setProperty("--portfolioPinnedNavOffset","".concat(r,"px"))}},getWindowScrollY:function(){return"undefined"==typeof window?0:window.scrollY||0},resetScrollState:function(){this.isStuck=!1,this.isHidden=!1,this.downScrollDelta=0,this.upScrollDelta=0,this.lastScrollY=this.getWindowScrollY()},setupScrollListener:function(){if(this.teardownScrollListener(),!this.isPinnedEffect||"undefined"==typeof window)return this.resetScrollState(),void this.clearPinnedNavOffset();this.resetScrollState(),window.addEventListener("scroll",this.handleScroll,{passive:!0}),window.addEventListener("resize",this.applyPinnedNavOffset,{passive:!0}),this.handleScroll()},teardownScrollListener:function(){"undefined"!=typeof window&&(window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.applyPinnedNavOffset)),this.clearPinnedNavOffset()},handleScroll:function(){var e=Math.max(this.getWindowScrollY(),0),t=this.hasVisibleProcessStickyHeader();if(!this.isAutoHideEffect)return this.isStuck=e>0,this.isHidden=t,this.lastScrollY=e,void this.applyPinnedNavOffset();if(e<80)return this.isStuck=!1,this.isHidden=!1,this.downScrollDelta=0,this.upScrollDelta=0,this.lastScrollY=e,void this.applyPinnedNavOffset();if(this.isStuck=!0,t)return this.isHidden=!0,this.downScrollDelta=0,this.upScrollDelta=0,this.lastScrollY=e,void this.applyPinnedNavOffset();var n=e-this.lastScrollY;n>0?(this.downScrollDelta+=n,this.upScrollDelta=0,this.downScrollDelta>=60&&(this.isHidden=!0,this.downScrollDelta=0)):n<0&&(this.upScrollDelta+=Math.abs(n),this.downScrollDelta=0,this.upScrollDelta>=24&&(this.isHidden=!1,this.upScrollDelta=0)),this.lastScrollY=e,this.applyPinnedNavOffset()}},mounted:function(){this.setupScrollListener()},beforeUnmount:function(){this.teardownScrollListener()},watch:{isPinnedEffect:function(){this.setupScrollListener()}}}},35680(e,t,n){"use strict";n.d(t,{UL:()=>o,bv:()=>r,tE:()=>i});var r=Object.freeze({OUR_PICKS:"OurPicks",SANS:"Sans",SERIF:"Serif",MONO:"Mono"}),o=Object.freeze({OUR_PICKS:"#E4FE72",SANS:"#fe9772",SERIF:"#72fefe",MONO:"#fe72b8"}),i=Object.freeze({UNIQUE_REPOSITORY:"UNIQUE_REPOSITORY",GOOGLE_API:"GOOGLE_API"})},33253(e,t,n){"use strict";n.d(t,{NP:()=>m,Vt:()=>p,wi:()=>f,zQ:()=>g});var r=n(35680),o=n(33501),i=n(15907);function s(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return a(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,a=e,p.n=n,l}};function f(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,a=h;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,a)):p.n=a:p.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?a:n.call(r,p))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),f=d.prototype=c.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,a(f,"constructor",d),a(d,"constructor",u),u.displayName="GeneratorFunction",a(d,o,"GeneratorFunction"),a(f),a(f,o,"Generator"),a(f,r,function(){return this}),a(f,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:h}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){u(i,r,o,s,a,"next",e)}function a(e){u(i,r,o,s,a,"throw",e)}s(void 0)})}}function p(){i.A.getFonts("").then(function(e){g(e.data)})}function f(e){return h.apply(this,arguments)}
2function h(){return(h=d(s().m(function e(t){var n;return s().w(function(e){for(;;)switch(e.n){case 0:return n=l(new Set(t.map(function(e){return e.font}))),e.n=1,m(n);case 1:return e.a(2)}},e)}))).apply(this,arguments)}function m(e){return v.apply(this,arguments)}function v(){return(v=d(s().m(function e(t){return s().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,i.A.getFonts("?names="+t.join(","));case 1:g(e.v.data);case 2:return e.a(2)}},e)}))).apply(this,arguments)}function g(e){var t=window.document.styleSheets[0];e.forEach(function(e){e.repositoryType===r.tE.UNIQUE_REPOSITORY?e.attributes.forEach(function(n){!function(e,t,n){var r=e.fonts.find(function(e){return e.type.toLowerCase()===t});if(r){var o=r.type.toLowerCase();if(document.querySelector('link[href="'.concat(r.url,'"]')))return;var i=document.createElement("link");i.rel="preload",i.href=r.url,i.as="font",i.crossOrigin="anonymous",document.head.appendChild(i),"light"===o?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 300;}",n.cssRules.length):"regular"===o?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 400;}",n.cssRules.length):"medium"===o?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 500;}",n.cssRules.length):"bold"===o?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 700;}",n.cssRules.length):"semibold"===o?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 600;}",n.cssRules.length):"italic"===o?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-style: italic;}",n.cssRules.length):o.includes("bold")&&o.includes("italic")?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 700; font-style: italic}",n.cssRules.length):o.includes("semibold")&&o.includes("italic")?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 600; font-style: italic}",n.cssRules.length):o.includes("medium")&&o.includes("italic")?n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 500; font-style: italic}",n.cssRules.length):o.includes("light")&&o.includes("italic")&&n.insertRule("@font-face {font-family:"+e.name+"; src:url("+r.url+"); font-weight: 300; font-style: italic}",n.cssRules.length)}}(e,n,t)}):o.A.getFontUrlWithParams(e.name,e.attributes)})}},55320(e,t,n){"use strict";n.d(t,{bU:()=>l,u4:()=>c});var r=n(33253);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s=new Map;function a(e){var t=function(e){return o(new Set((e||[]).filter(Boolean))).sort()}(e);if(!t.length)return Promise.resolve();var n=t.join("|");if(!s.has(n)){var i=(0,r.NP)(t).catch(function(e){console.warn("Failed to preload fonts",t,e)});s.set(n,i)}return s.get(n)}function l(e){return a([null==e?void 0:e.headline,null==e?void 0:e.text])}function c(e){return a((e||[]).flatMap(function(e){return[null==e?void 0:e.headline,null==e?void 0:e.text]}))}},91915(e,t,n){"use strict";n.d(t,{M:()=>gt});var r=n(82124),o=n(97259),i=n(31173),s=n(45),a=n(76647),l=n(97073),c=n(74256),u=n(32682),d=n(88623),p=n(65570),f=n(76107),h=n(54861),m=Object.freeze({text:{default:"selected",state:"idle",idle:{default:"selected"},hover:{default:"vibrant",fallbacks:["contrast","selected"]}},textHover:{default:"vibrant",fallbacks:["contrast","selected"],state:"active"}}),v=Object.freeze({fill:{default:"selected",state:"idle",idle:{default:"selected"},hover:{default:"vibrant",fallbacks:["contrast","selected"]}},text:{default:"contrast",state:"idle",idle:{default:"contrast"},hover:{default:"contrast",relativeToKey:{type:"fill",state:"hover"}}},fillHover:{default:"vibrant",fallbacks:["contrast","selected"],state:"hover"},textHover:{default:"contrast",state:"hover",relativeToKey:"buttonFillHover"}}),g=Object.freeze({fill:{default:"background",colorStyleKey:"background",state:"idle",idle:{default:"background",colorStyleDependency:{key:"background",type:"fill",state:"idle"}},hover:{default:"background",colorStyleDependency:{key:"background",type:"fill",state:"idle"}}},outline:{default:"selected",state:"idle",idle:{default:"selected"},hover:{default:"vibrant",fallbacks:["contrast","selected"]}},text:{default:"selected",state:"idle",idle:{default:"selected"},hover:{default:"vibrant",fallbacks:["contrast","selected"]}},fillHover:{default:"background",colorStyleKey:"background",state:"hover"},outlineHover:{default:"vibrant",fallbacks:["contrast","selected"],state:"hover"},textHover:{default:"vibrant",fallbacks:["contrast","selected"],state:"hover"}}),y=Object.freeze({outline:{default:"selected",state:"idle",idle:{default:"selected"}},text:{default:"paragraph",colorStyleKey:"p1",state:"idle",idle:{default:"paragraph",colorStyleDependency:{key:"p1",type:"text",state:"idle"}}}}),b=Object.freeze({fill:{active:{default:"selected"}},outline:{default:"divider-line",colorStyleKey:"dividerLine",state:"idle",idle:{default:"divider-line",colorStyleDependency:{key:"dividerLine",type:"fill",state:"idle"}}},text:{default:"headings",colorStyleKey:"h1",state:"idle",idle:{default:"headings",colorStyleDependency:{key:"h1",type:"text",state:"idle"}},active:{default:"contrast",relativeToKey:{type:"fill",state:"active"}}
2},fillActive:{default:"selected",state:"active"},textActive:{default:"contrast",state:"active",relativeToKey:"processFillActive"}});function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return{colorIndex:1,clusterName:"navigation",colorTypes:{fill:{displayValue:"selected"===(null===(e=o.fill)||void 0===e?void 0:e.idle.default),colorRule:o.fill?o.fill:null},outline:{colorRule:o.outline?o.outline:null},text:{displayValue:"selected"===(null===(t=o.text)||void 0===t?void 0:t.idle.default),colorRule:o.text?o.text:null}},clusterItems:{navigationFill:{displayValue:"selected"===(null===(n=o.fill)||void 0===n?void 0:n.default),colorRule:o.fill},navigationOutline:{colorRule:o.outline},navigation:{displayValue:"selected"===(null===(r=o.text)||void 0===r?void 0:r.default),colorRule:o.text},navigationFillHover:{colorRule:o.fillHover},navigationOutlineHover:{colorRule:o.outlineHover},navigationHover:{colorRule:o.textHover}},useRules:o}}function C(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return{colorIndex:2,clusterName:"button",colorTypes:{fill:{displayValue:"selected"===(null===(e=o.fill)||void 0===e?void 0:e.idle.default),colorRule:o.fill?o.fill:null},outline:{colorRule:o.outline?o.outline:null},text:{displayValue:"selected"===(null===(t=o.text)||void 0===t?void 0:t.idle.default),colorRule:o.text?o.text:null}},clusterItems:{buttonFill:{displayValue:"selected"===(null===(n=o.fill)||void 0===n?void 0:n.default),colorRule:o.fill},buttonOutline:{colorRule:o.outline},buttonText:{displayValue:"selected"===(null===(r=o.text)||void 0===r?void 0:r.default),colorRule:o.text},buttonFillHover:{colorRule:o.fillHover},buttonOutlineHover:{colorRule:o.outlineHover},buttonTextHover:{colorRule:o.textHover}},useRules:o}}function T(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return{colorIndex:0,clusterName:"secondaryButton",colorTypes:{fill:{displayValue:"selected"===(null===(e=o.fill)||void 0===e?void 0:e.idle.default),colorRule:o.fill?o.fill:null},outline:{colorRule:o.outline?o.outline:null},text:{displayValue:"selected"===(null===(t=o.text)||void 0===t?void 0:t.idle.default),colorRule:o.text?o.text:null}},clusterItems:{secondaryButtonFill:{displayValue:"selected"===(null===(n=o.fill)||void 0===n?void 0:n.default),colorRule:o.fill},secondaryButtonOutline:{colorRule:o.outline},secondaryButtonText:{displayValue:"selected"===(null===(r=o.text)||void 0===r?void 0:r.default),colorRule:o.text},secondaryButtonFillHover:{colorRule:o.fillHover},secondaryButtonOutlineHover:{colorRule:o.outlineHover},secondaryButtonTextHover:{colorRule:o.textHover}},useRules:o}}function A(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return{colorIndex:0,clusterName:"label",colorTypes:{fill:{displayValue:"selected"===(null===(e=o.fill)||void 0===e?void 0:e.idle.default),colorRule:o.fill?o.fill:null},outline:{colorRule:o.outline?o.outline:null},text:{displayValue:"selected"===(null===(t=o.text)||void 0===t?void 0:t.idle.default),colorRule:o.text?o.text:null}},clusterItems:{labelFill:{displayValue:"selected"===(null===(n=o.fill)||void 0===n?void 0:n.default),colorRule:o.fill},labelOutline:{colorRule:o.outline},labelText:{displayValue:"selected"===(null===(r=o.text)||void 0===r?void 0:r.default),colorRule:o.text}},useRules:o}}function E(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return{colorIndex:0,clusterName:"processStep",colorTypes:{fill:{displayValue:"selected"===(null===(e=n.fill)||void 0===e?void 0:e.active.default),colorRule:n.fill},outline:{colorRule:n.outline},text:{colorRule:n.text?n.text:null}},clusterItems:{processOutline:{colorRule:n.outline},processText:{colorRule:n.text},processFillActive:{displayValue:"selected"===(null===(t=n.fillActive)||void 0===t?void 0:t.default),colorRule:n.fillActive},processTextActive:{colorRule:n.textActive}},useRules:n}}function x(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return{colorIndex:2,clusterName:"socialIcon",colorTypes:{fill:{displayValue:"selected"===(null===(e=o.fill)||void 0===e?void 0:e.idle.default),colorRule:o.fill?o.fill:null},outline:{colorRule:o.outline?o.outline:null},text:{displayValue:"selected"===(null===(t=o.text)||void 0===t?void 0:t.idle.default),colorRule:o.text?o.text:null}},clusterItems:{socialIconText:{displayValue:"selected"===(null===(n=o.text)||void 0===n?void 0:n.idle.default),colorRule:o.text},socialIconFill:{displayValue:"selected"===(null===(r=o.fill)||void 0===r?void 0:r.idle.default),colorRule:o.fill},socialIconOutline:{colorRule:o.outline},socialIconTextHover:{colorRule:o.textHover},socialIconFillHover:{colorRule:o.fillHover},socialIconOutlineHover:{colorRule:o.outlineHover}},useRules:o}}function P(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;return{colorIndex:arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,clusterName:"card",colorTypes:{fill:{displayValue:"selected"===(null===(e=n.fill)||void 0===e?void 0:e.idle.default),colorRule:n.fill?n.fill:null},outline:{colorRule:n.outline?n.outline:null}},clusterItems:{cardFill:{displayValue:"selected"===(null===(t=n.fill)||void 0===t?void 0:t.idle.default),colorRule:n.fill},cardOutline:{colorRule:n.outline}},useRules:n}}var I={HEADING:{colorIndex:0,clusterItems:["heroTitle","heroSubtitle","projectTitle","h1","h2","h3","h4"],colorTypeToSet:"text"},PARAGRAPH:{colorIndex:1,clusterItems:["heroParagraph","projectSubtitle","p1","p2"],colorTypeToSet:"text"},HYPERLINK:{colorIndex:0,clusterItems:["hyperLink"],colorTypeToSet:"text"}
2,DIVIDER_LINE:{colorIndex:3,clusterItems:["dividerLine"],colorTypeToSet:"fill"},BACKGROUND:{colorIndex:4,clusterItems:["background"],colorTypeToSet:"fill"},FOREGROUND:{colorIndex:3,clusterItems:["sidebarBackground"],colorTypeToSet:"fill"},CARD:P(),NAVIGATION:O(),BUTTON:C(),SECONDARY_BUTTON:T(),LABEL:A(),CONTACT_FORM:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;return{colorIndex:3,clusterName:"contactForm",colorTypes:{outline:{displayValue:!0,colorRule:e.outline},text:{colorRule:e.text}},clusterItems:{contactFormOutline:{displayValue:!0,colorRule:e.outline},contactFormText:{colorRule:e.text}},useRules:e}}(),PROCESS:E(),SOCIAL_ICON:x()};var L=n(21781);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){D(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function D(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}var N=Object.freeze({fill:{idle:{default:"vibrant"},hover:{default:"contrast"}},text:{idle:{default:"background",fallbacks:["contrast"],relativeToKey:{type:"fill",state:"idle"}},hover:{default:"background",fallbacks:["contrast"],relativeToKey:{type:"fill",state:"hover"}}}}),F=Object.freeze({fill:{idle:{default:"background"},hover:{default:"background"}},outline:{idle:{default:"vibrant"},hover:{default:"contrast"}},text:{idle:{default:"contrast"},hover:{default:"contrast"}}}),B=Object.freeze({fill:{active:{default:"contrast"}},outline:{idle:{default:"contrast"}},text:{idle:{default:"contrast"},active:{default:"selected"}}}),U=Object.freeze({fill:{idle:{default:"selected"},hover:{default:"selected"}},text:{idle:{default:"background"},hover:{default:"background"}}}),H=Object.freeze({fill:{idle:{default:"background"},hover:{default:"background"}},outline:{idle:{default:"selected"},hover:{default:"selected"}},text:{idle:{default:"selected"},hover:{default:"selected"}}}),$=Object.freeze({text:{active:{default:"selected"}}});function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?X(Object(n),!0).forEach(function(t){K(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=G(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==G(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q={namespaced:!0,state:function(){return{fontPairs:[],highlightColorLayersOnUi:!1}},getters:{editedPortfolio:function(e,t,n){return n.portfolio},editedProject:function(e,t,n){return n.project},templateSettings:function(e,t){var n;return null===(n=t.editedPortfolio)||void 0===n?void 0:n.templateSettings},portfolioTheme:function(e,t){var n;return null===(n=t.editedPortfolio)||void 0===n||null===(n=n.templateSettings)||void 0===n?void 0:n.theme},isCaseStudy:function(e,t){var n;return(null===(n=t.editedProject)||void 0===n?void 0:n.type)===c.Q8.CASE_STUDY},isCaseStudyWithCustomColors:function(e,t){return t.isCaseStudy&&!t.projectDesignSettings.globalColorStyles},isCaseStudyWithCustomFonts:function(e,t){return t.isCaseStudy&&!t.projectDesignSettings.globalFontStyles},isCaseStudyUsingPortfolioColors:function(e,t){return t.isCaseStudy&&t.projectDesignSettings.globalColorStyles},isCaseStudyUsingPortfolioFonts:function(e,t){return t.isCaseStudy&&t.projectDesignSettings.globalFontStyles},portfolioDesignSettings:function(e,t){var n;return null===(n=t.editedPortfolio)||void 0===n?void 0:n.designSettings},projectDesignSettings:function(e,t){var n;return null===(n=t.editedProject)||void 0===n?void 0:n.designSettings},colors:function(e,t){var n,r,o,i,s,a,l,c,u,d,p,f,h,m,v,g,y,b,w,S,k,_,O,C,T,A,E,x,P,I,L,j,D,N,F,B,U,H,$,z,W,G=t.isCaseStudyWithCustomColors?t.projectDesignSettings:t.portfolioDesignSettings;if(!G.colors&&G.colorStyles){var X=(n=G.colorStyles)&&"object"===R(n)?{heroTitle:M(M({},n.heroTitle),{},{text:{idle:{color:n.heroTitle.color,paletteColorIndex:n.heroTitle.paletteColorIndex}}}),heroSubtitle:M(M({},n.heroSubtitle),{},{text:{idle:{color:n.heroSubtitle.color,paletteColorIndex:n.heroSubtitle.paletteColorIndex}}}),heroParagraph:M(M({},n.heroParagraph),{},{text:{idle:{color:n.heroParagraph.color,paletteColorIndex:n.heroParagraph.paletteColorIndex}}}),h1:M(M({},n.h1),{},{text:{idle:{color:n.h1.color,paletteColorIndex:n.h1.paletteColorIndex}}}),h2:M(M({},n.h2),{},{text:{idle:{color:n.h2.color,paletteColorIndex:n.h2.paletteColorIndex}}}),h3:M(M({},n.h3),{},{text:{idle:{color:n.h3.color,paletteColorIndex:n.h3.paletteColorIndex}}}),h4:M(M({},n.h4),{},{text:{idle:{color:n.h4.color,paletteColorIndex:n.h4.paletteColorIndex}}}),p1:M(M({},n.p1),{},{text:{idle:{color:n.p1.color,paletteColorIndex:n.p1.paletteColorIndex}}}),p2:M(M({},n.p2),{},{text:{idle:{color:n.p2.color,paletteColorIndex:n.p2.paletteColorIndex}}}),projectTitle:M(M({},n.projectTitle),{},{text:{idle:{color:n.projectTitle.color,paletteColorIndex:n.projectTitle.paletteColorIndex}}}),projectSubtitle:M(M({},n.projectSubtitle),{},{text:{idle:{color:n.projectSubtitle.color,paletteColorIndex:n.projectSubtitle.paletteColorIndex}}}),background:M(M({},n.background),{},{fill:{idle:{color:n.background.color,paletteColorIndex:n.background.paletteColorIndex}}}),sidebarBackground:M(M({},n.sidebarBackground),{},{fill:{idle:{color:n.sidebarBackground.color,paletteColorIndex:n.sidebarBackground.paletteColorIndex}}}),card:M(M({},n.card),{},{fill:{idle:{color:null===(r=n.cardFill)||void 0===r?void 0:r.color,paletteColorIndex:null===(o=n.cardFill)||void 0===o?void 0:o.paletteColorIndex}},outline:{idle:{color:null===(i=n.cardOutline)||void 0===i?void 0:i.color,paletteColorIndex:null===(s=n.cardOutline)||void 0===s?void 0:s.paletteColorIndex}}}),dividerLine:M(M({},n.dividerLine),{},{fill:{idle:{color:n.dividerLine.color,paletteColorIndex:n.dividerLine.paletteColorIndex}}}),hyperLink:M(M({},n.hyperLink),{},{text:{idle:{color:n.hyperLink.color,paletteColorIndex:n.hyperLink.paletteColorIndex}}}),navigation:M(M({},n.navigation),{},{text:{idle:{color:n.navigation.color,paletteColorIndex:n.navigation.paletteColorIndex},hover:{color:null===(a=n.navigationHover)||void 0===a?void 0:a.color,paletteColorIndex:null===(l=n.navigationHover)||void 0===l?void 0:l.paletteColorIndex}},fill:{idle:{color:null===(c=n.navigationFill)||void 0===c?void 0:c.color,paletteColorIndex:null===(u=n.navigationFill)||void 0===u?void 0:u.paletteColorIndex},hover:{color:null===(d=n.navigationFillHover)||void 0===d?void 0:d.color,paletteColorIndex:null===(p=n.navigationFillHover)||void 0===p?void 0:p.paletteColorIndex}},outline:{idle:{color:n.navigationOutline?n.navigationOutline.color:n.navigation.color,paletteColorIndex:n.navigationOutline?n.navigationOutline.paletteColorIndex:n.navigation.paletteColorIndex},hover:{color:n.navigationOutlineHover?n.navigationOutlineHover.color:null===(f=n.navigationHover)||void 0===f?void 0:f.color,paletteColorIndex:n.navigationOutlineHover?n.navigationOutlineHover.paletteColorIndex:null===(h=n.navigationHover)||void 0===h?void 0:h.paletteColorIndex}}}),button:M(M({},n.buttonText),{},{text:{idle:{color:n.buttonText.color,paletteColorIndex:n.buttonText.paletteColorIndex},hover:{color:null===(m=n.buttonTextHover)||void 0===m?void 0:m.color,paletteColorIndex:null===(v=n.buttonTextHover)||void 0===v?void 0:v.paletteColorIndex}},fill:{idle:{color:null===(g=n.buttonFill)||void 0===g?void 0:g.color,paletteColorIndex:null===(y=n.buttonFill)||void 0===y?void 0:y.paletteColorIndex},hover:{color:null===(b=n.buttonFillHover)||void 0===b?void 0:b.color,paletteColorIndex:null===(w=n.buttonFillHover)||void 0===w?void 0:w.paletteColorIndex}},outline:{idle:{color:null===(S=n.buttonOutline)||void 0===S?void 0:S.color,paletteColorIndex:null===(k=n.buttonOutline)||void 0===k?void 0:k.paletteColorIndex},hover:{color:null===(_=n.buttonOutlineHover)||void 0===_?void 0:_.color,paletteColorIndex:null===(O=n.buttonOutlineHover)||void 0===O?void 0:O.paletteColorIndex}}}),label:{text:{idle:{color:null===(C=n.labelText)||void 0===C?void 0:C.color,paletteColorIndex:null===(T=n.labelText)||void 0===T?void 0:T.paletteColorIndex}},fill:{idle:{color:null===(A=n.labelFill)||void 0===A?void 0:A.color,paletteColorIndex:null===(E=n.labelFill)||void 0===E?void 0:E.paletteColorIndex}},outline:{idle:{color:null===(x=n.labelOutline)||void 0===x?void 0:x.color,paletteColorIndex:null===(P=n.labelOutline)||void 0===P?void 0:P.paletteColorIndex}}},contactForm:M(M({},n.contactFormText),{},{text:{idle:{color:n.contactFormText?n.contactFormText.color:n.p1.color,paletteColorIndex:n.contactFormText?n.contactFormText.paletteColorIndex:n.p1.paletteColorIndex}},outline:{idle:{color:n.contactFormOutline?n.contactFormOutline.color:"#E2E3E8",paletteColorIndex:null===(I=n.contactFormOutline)||void 0===I?void 0:I.paletteColorIndex}}}),processStep:M(M({},n.processText),{},{text:{idle:{color:n.processText?null===(L=n.processText)||void 0===L?void 0:L.color:n.h1.color,paletteColorIndex:n.processText?null===(j=n.processText)||void 0===j?void 0:j.paletteColorIndex:n.h1.paletteColorIndex},active:{color:n.processTextActive?n.processTextActive.color:n.h1.color,paletteColorIndex:n.processTextActive?n.processTextActive.paletteColorIndex:n.h1.paletteColorIndex}},fill:{active:{color:n.processFillActive?n.processFillActive.color:n.h1.color,paletteColorIndex:n.processFillActive?null===(D=n.processFillActive)||void 0===D?void 0:D.paletteColorIndex:n.h1.paletteColorIndex}},outline:{idle:{color:n.processOutline?n.processOutline.color:n.h1.color,paletteColorIndex:n.processOutline?n.processOutline.paletteColorIndex:n.h1.paletteColorIndex}}}),socialIcon:M(M({},n.socialIconText),{},{text:{idle:{color:n.socialIconText?n.socialIconText.color:n.navigation.color,paletteColorIndex:n.socialIconText?n.socialIconText.paletteColorIndex:n.navigation.paletteColorIndex},hover:{color:n.socialIconTextHover?n.socialIconTextHover.color:n.navigationHover.color,paletteColorIndex:n.socialIconTextHover?n.socialIconTextHover.paletteColorIndex:n.navigationHover.paletteColorIndex}},fill:{idle:{color:null===(N=n.socialIconFill)||void 0===N?void 0:N.color,paletteColorIndex:null===(F=n.socialIconFill)||void 0===F?void 0:F.paletteColorIndex},hover:{color:null===(B=n.socialIconFillHover)||void 0===B?void 0:B.color,paletteColorIndex:null===(U=n.socialIconFillHover)||void 0===U?void 0:U.paletteColorIndex}},outline:{idle:{color:n.socialIconOutline?null===(H=n.socialIconOutline)||void 0===H?void 0:H.color:n.navigation.color,paletteColorIndex:n.socialIconOutline?null===($=n.socialIconOutline)||void 0===$?void 0:$.paletteColorIndex:n.navigation.paletteColorIndex},hover:{color:n.socialIconOutlineHover?null===(z=n.socialIconOutlineHover)||void 0===z?void 0:z.color:n.navigationHover.color,paletteColorIndex:n.socialIconOutlineHover?null===(W=n.socialIconOutlineHover)||void 0===W?void 0:W.paletteColorIndex:n.navigationHover.paletteColorIndex}}})}
2:(console.warn("Invalid colorStyles object provided for conversion."),null);X&&(G.colors=X)}return G.colors},colorStyles:function(e,t){return t.isCaseStudyWithCustomColors?t.projectDesignSettings.colorStyles:t.portfolioDesignSettings.colorStyles},colorPalette:function(e,t){var n,r=t.colorStyles,o=t.isCaseStudyWithCustomColors?t.projectDesignSettings.colorPalette:t.portfolioDesignSettings.colorPalette;return(null==o||null===(n=o.colors)||void 0===n?void 0:n.length)>0?o:{colors:[r.heroTitle.primaryColor||r.heroTitle.color,r.heroParagraph.primaryColor||r.heroParagraph.color,r.hyperLink.primaryColor||r.hyperLink.color,r.navigation.primaryColor||r.navigation.color,r.background.primaryColor||r.background.color]}},colorPaletteWithColorMap:function(e,t){return function(e){var n,r,o,i,s,a,l,c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d={navItemType:null!==(n=u.navItemType)&&void 0!==n?n:t.navigationItemType,buttonType:null!==(r=u.buttonType)&&void 0!==r?r:"underline"===t.ctaButtonType?"outlined":t.ctaButtonType,secondaryButtonType:null!==(o=u.secondaryButtonType)&&void 0!==o?o:"underline"===t.secondaryCtaButtonType?"outlined":t.secondaryCtaButtonType,socialLinkType:null!==(i=u.socialLinkType)&&void 0!==i?i:t.socialLinkType,cardType:null!==(s=u.cardType)&&void 0!==s?s:t.cardType,labelType:null!==(a=u.labelType)&&void 0!==a?a:"outlined"===(null===(l=t.labelStyle)||void 0===l?void 0:l.fillStyle)&&null!==(c=t.colors)&&void 0!==c&&c.label?"outlined":"solid"},p=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.navItemType,i=void 0===o?"simple":o,s=r.buttonType,a=void 0===s?"filled":s,l=r.secondaryButtonType,c=void 0===l?"outlined":l,u=r.socialLinkType,d=void 0===u?"simple":u,p=r.cardType,f=void 0===p?"fill":p,h=r.labelType,y="simple"===i?m:"filled"===i?v:g,b="filled"===("underline"===a?"outlined":a)?v:g,w="filled"===("underline"===c?"outlined":c)?v:g,S="outlined"===(void 0===h?"solid":h)?g:v,_="simple"===d?m:"filled"===d?v:g,E="fill"===f?v:g,L=null!==(t=null===(n=e.COLOR_MAP)||void 0===n||null===(n=n.CARD)||void 0===n?void 0:n.colorIndex)&&void 0!==t?t:3;return k(k({},e),{},{COLOR_MAP:k(k({},e.COLOR_MAP?e.COLOR_MAP:I),{},{NAVIGATION:O(y),BUTTON:C(b),SECONDARY_BUTTON:T(w),LABEL:A(S),SOCIAL_ICON:x(_),CARD:P(E,L)})})}(t.colorPalette,d);return e?p.COLOR_MAP[e]:p}},resolveColor:function(e,t){return function(e){var n,r,o=null===(n=t.colorStyles)||void 0===n?void 0:n[e];return o?null!==o.paletteColorIndex&&void 0!==o.paletteColorIndex&&null!==(r=t.colorPalette)&&void 0!==r&&r.colors?t.colorPalette.colors[o.paletteColorIndex]:o.primaryColor||o.color:(console.warn("Color object not found for key: ".concat(e)),"#FFFFFF")}},fontStyles:function(e,t){return t.isCaseStudyWithCustomFonts?t.projectDesignSettings.fontStyles:t.portfolioDesignSettings.fontStyles},fontPairId:function(e,t){return t.isCaseStudyWithCustomFonts?t.projectDesignSettings.fontPairId:t.portfolioDesignSettings.fontPairId},animationSettings:function(e,t){return t.portfolioDesignSettings.animationSettings},ctaStyle:function(e,t){return t.editedPortfolio.templateSettings.ctaStyle},secondaryCtaStyle:function(e,t){return t.editedPortfolio.templateSettings.secondaryCtaStyle},cursorType:function(e,t){var n;return(null===(n=t.templateSettings)||void 0===n?void 0:n.cursorType)||"DEFAULT"},ctaStyles:function(e,t){return{primary:t.ctaStyle,secondary:t.secondaryCtaStyle}},labelStyle:function(e,t){var n;return null===(n=t.editedPortfolio)||void 0===n||null===(n=n.templateSettings)||void 0===n?void 0:n.labelStyle},cardStyle:function(e,t){var n;return null===(n=t.editedPortfolio.templateSettings)||void 0===n?void 0:n.cardStyle},getAllCssVars:function(e,t){var n=t.fontStyles,r=t.colorStyles,o=t.colors,i=t.colorPalette,s=t.ctaStyles,a=t.labelStyle,l=r.navigation;l.color<8&&(l.color+="profile_theme_default_old"===t.portfolioTheme||"profile_theme_seven"!==t.portfolioTheme&&"theme_thirteen"!==t.portfolioTheme?"33":"");var c=V(V(V(V({},(0,p.zu)(n,s,a)),(0,p.hq)(r,o,i)),(0,p._B)(i)),{},{"--border-color":(0,f.iL)(l,i),"--link-color-hover":(0,f.iL)(r.hyperLink,i)+"CC"}
2),u=t.resolveColor?t.resolveColor("background"):(0,f.iL)(r.background,i);if(u&&(c["--card-hover-mix-color"]=(0,L.hO)(u)?"#FFFFFF":"#000000"),["theme_nine","profile_theme_nine","theme_four","profile_theme_four"].includes(t.portfolioTheme)){var d,h=t.editedPortfolio.designSettings.fontStyles,m=t.editedPortfolio.designSettings.colorStyles,v=t.editedPortfolio.designSettings.colors,g=(null===(d=t.editedPortfolio.designSettings.colorPalette)||void 0===d||null===(d=d.colors)||void 0===d?void 0:d.length)>0?t.editedPortfolio.designSettings.colorPalette:{id:"custom",colors:[m.heroTitle.primaryColor||m.heroTitle.color,m.heroParagraph.primaryColor||m.heroParagraph.color,m.hyperLink.primaryColor||m.hyperLink.color,m.navigation.primaryColor||m.navigation.color,m.background.primaryColor||m.background.color]},y=(0,f.iL)(m.navigation,g)+"33";c=V(V(V(V({},c),(0,p._m)(h)),(0,p.hq)(m,v,g,!0)),{},{"--portfolio-border-color":y,"--portfolio-link-color":(0,f.iL)(m.hyperLink,g),"--portfolio-link-color-hover":(0,f.iL)(m.hyperLink,g)+"CC","--portfolio-sidebar-background-color":(0,f.iL)(m.sidebarBackground,g)})}return c},navigationItems:function(e,t){var n,r=["profile_theme_default","profile_theme_four","profile_theme_nine"].includes(t.portfolioTheme)?t.portfolioTheme.replace("_old",""):t.portfolioTheme.replace("profile_","").replace("_old","");return(null===(n=t.templateSettings.navigation)||void 0===n?void 0:n.navigationItems)||h.j[r].navigationItems||{}},navigationItemStyle:function(e,t){var n;return null===(n=t.navigationItems.button)||void 0===n?void 0:n.style},socialLinkStyle:function(e,t){var n,r;return(null===(n=t.editedPortfolio)||void 0===n||null===(n=n.templateSettings)||void 0===n||null===(n=n.socialIconStyle)||void 0===n?void 0:n.fillType)||(null===(r=t.navigationItems.socialLink)||void 0===r?void 0:r.style)},navigationItemType:function(e,t){var n;return t.navigationItemStyle===c.Vc.BOX_PILL_FILL?"filled":null!==(n=t.navigationItemStyle)&&void 0!==n&&n.includes("box-")?"outlined":"simple"},socialLinkType:function(e,t){return t.socialLinkStyle===c.Sb.SIMPLE?"simple":t.socialLinkStyle===c.Sb.BOX_PILL_FILL||t.socialLinkStyle===c.gZ.FILL?"filled":"outlined"},ctaButtonType:function(e,t){var n,r=null===(n=t.ctaStyle)||void 0===n?void 0:n.fillStyle;return"solid"===r?"filled":"underline"===r?"underline":"outlined"},secondaryCtaButtonType:function(e,t){var n,r=null===(n=t.secondaryCtaStyle)||void 0===n?void 0:n.fillStyle;return"solid"===r?"filled":"underline"===r?"underline":"outlined"},cardType:function(e,t){var n,r;return null!==(n=null===(r=t.cardStyle)||void 0===r?void 0:r.cardType)&&void 0!==n?n:"none"},colorGroupsWithDifferentRulesInSection:function(e,t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",n={filled:"auto"===e?N:U,outlined:"auto"===e?F:H},r="underline"===t.ctaButtonType?"outlined":t.ctaButtonType,o="underline"===t.secondaryCtaButtonType?"outlined":t.secondaryCtaButtonType;return{navigation:"simple"!==t.navigationItemType?{colorMap:O(n[t.navigationItemType])}:null,button:"simple"!==r?{colorMap:C(n[r])}:null,secondaryButton:"simple"!==o?{colorMap:T(n[o])}:null,socialIcon:"simple"!==t.socialLinkType?{colorMap:x(n[t.socialLinkType])}:null,processSection:{colorMap:E("auto"===e?B:$)}}}},highlightSectionModules:function(e,t){return function(n){var r;if(!(e.highlightColorLayersOnUi&&!(null==n||!n.foregroundColorSettings)&&"object"===G(n.foregroundColorSettings)))return null;var o=null==n||null===(r=n.backgroundSettings)||void 0===r?void 0:r.backgroundColor,i=o?(0,L.WT)(o,t.colorPalette):null;return!!i&&(0,f.oW)(i).l<.2?"highlight-dark":"highlight"}}},mutations:{setFontPairs:function(e,t){e.fontPairs=t},setHighlightColorLayersOnUi:function(e,t){e.highlightColorLayersOnUi=t}},actions:{updateColorCluster:function(e,t){e.state;var n=e.commit,r=e.getters,o=e.dispatch,i=t.newColor,s=t.colorMap,a=V({},r.colorStyles);o("updateColorStyles",a=s.useRules?V(V({},a),(0,L.pn)(r.colorStyles,r.colorPalette,i,s.clusterItems,s.useRules)):V(V({},a),(0,L.O0)(r.colorStyles,r.colorPalette,i,s.clusterItems)));var l=V({},r.colors);o("updateColors",l=s.useRules?V(V({},l),(0,L.kE)(r.colors,r.colorPalette,i,s)):V(V({},l),(0,L.Zt)(r.colors,r.colorPalette,i,s))),n("updateSidePanel",{allowSave:!0},{root:!0})},applyColorPalette:function(e){e.state,e.commit;var t=e.getters,n=e.dispatch;Object.entries(t.colorPaletteWithColorMap().COLOR_MAP).forEach(function(e){var t=z(e,2),r=(t[0],t[1]);n("updateColorCluster",{newColor:r.colorIndex,colorMap:r})})},updateColorStyles:function(e,t){(0,e.commit)("UPDATE_DESIGN_SETTINGS",{newValue:t,keyToItem:e.getters.isCaseStudyWithCustomColors?"project":"portfolio",keyToDesignItem:"colorStyles"},{root:!0})},updateColors:function(e,t){(0,e.commit)("UPDATE_DESIGN_SETTINGS",{newValue:t,keyToItem:e.getters.isCaseStudyWithCustomColors?"project":"portfolio",keyToDesignItem:"colors"},{root:!0})},updateColorPalette:function(e,t){var n=e.commit,r=e.getters;e.rootState;n("UPDATE_DESIGN_SETTINGS",{newValue:t,keyToItem:r.isCaseStudyWithCustomColors?"project":"portfolio",keyToDesignItem:"colorPalette"},{root:!0})},updatePreviewColorPalette:function(e,t){var n=e.commit;e.getters,e.rootState;n("UPDATE_DESIGN_SETTINGS",{newValue:t,keyToItem:"view.view.portfolio",keyToDesignItem:"colorPalette"},{root:!0})},updateFontStyles:function(e,t){(0,e.commit)("UPDATE_DESIGN_SETTINGS",{newValue:t,keyToItem:e.getters.isCaseStudyWithCustomFonts?"project":"portfolio",keyToDesignItem:"fontStyles"},{root:!0})},updateFontPairId:function(e,t){(0,e.commit)("UPDATE_DESIGN_SETTINGS",{newValue:t,keyToItem:e.getters.isCaseStudyWithCustomFonts?"project":"portfolio",keyToDesignItem:"fontPairId"},{root:!0})},updateAnimationSettings:function(e,t){(0,e.commit)("UPDATE_DESIGN_SETTINGS",{newValue:t,keyToItem:"portfolio",keyToDesignItem:"animationSettings"},{root:!0})},toggleGlobalSetting:function(e,t){var n=e.commit,r=t.keyToDesignItem;n("UPDATE_DESIGN_SETTINGS",{newValue:t.value,keyToItem:"project",keyToDesignItem:r},{root:!0})},detachCaseStudyColors:function(e){(0,e.commit)("INITIALIZE_CASE_STUDY_COLORS_FROM_PORTFOLIO",null,{root:!0})},detachCaseStudyFonts:function(e){(0,e.commit)("INITIALIZE_CASE_STUDY_FONTS_FROM_PORTFOLIO",null,{root:!0})},updateLabelStyle:function(e,t){var n=e.commit;n("UPDATE_LABEL_STYLE",{newValue:t,keyToItem:"portfolio",keyToObject:"templateSettings"},{root:!0}),n("updateSidePanel",{allowSave:!0},{root:!0})},updateCtaStyle:function(e,t){var n=e.commit;e.getters;
2n("UPDATE_CTA_STYLE",{newValue:t.newCtaStyle,editedCtaType:t.editedCtaType===c.tZ.PRIMARY?"ctaStyle":"secondaryCtaStyle",keyToItem:"portfolio",keyToObject:"templateSettings"},{root:!0}),n("updateSidePanel",{allowSave:!0},{root:!0})}}};function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee={namespaced:!0,state:function(){return{view:{portfolio:null,project:null,user:null,portfolioPages:[],caseStudies:[],activePage:null,footerProjects:[],navOpen:!1,fontsLoaded:!1,ownDomain:null,publicPages:{activeMode:"light"},showcaseItems:null,selectedShowcaseItem:null,emergencyModeSettings:null,stickedHeader:!1},viewModeReady:!1,viewModePreloadFailed:!1}},getters:{isViewModeReadyToLoad:function(e){return e.viewModeReady},viewData:function(e){return e.view},normalizedHost:function(){return"undefined"==typeof window?"":window.location.host.replace(/^www\./i,"").split(":")[0].toLowerCase()},caseStudyRoute:function(e,t){return function(e){var n=t.viewData.portfolio||{},r=n.ownDomainAddress;return e&&n.shortId?r&&r.toLowerCase()===t.normalizedHost?"/p/".concat(e):"/p/".concat(n.shortId,"/").concat(e):null}}},actions:{},mutations:{updateView:function(e,t){e.view=J(J({},e.view),t)},updateViewModeReadiness:function(e,t){e.viewModeReady=t},updateViewModePreloadFailed:function(e,t){e.viewModePreloadFailed=t},updateActivePage:function(e,t){e.view.activePage=t},updateViewUser:function(e,t){e.view.user=t},setFontsLoaded:function(e,t){e.view.fontsLoaded=!0},updateActiveMode:function(e,t){e.view.publicPages.activeMode=t},clearViewMode:function(e){e.view={portfolio:null,project:null,user:null,portfolioPages:null,activePage:null,footerProjects:[],navOpen:!1,fontsLoaded:!1,ownDomain:null,publicPages:{activeMode:"light"},showcaseItems:null,selectedShowcaseItem:null,emergencyModeSettings:null,stickedHeader:!1}},updateViewPortfolio:function(e,t){},updateViewProject:function(e,t){e.view.project=t}}},te=n(18957);function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach(function(t){ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ne(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function le(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return ce(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ce(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ce(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ce(d,"constructor",c),ce(c,"constructor",l),l.displayName="GeneratorFunction",ce(c,o,"GeneratorFunction"),ce(d),ce(d,o,"Generator"),ce(d,r,function(){return this}),ce(d,"toString",function(){return"[object Generator]"}),(le=function(){return{w:i,m:p}})()}function ce(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ce=function(e,t,n,r){function i(t,n){ce(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ce(e,t,n,r)}function ue(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function de(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){ue(i,r,o,s,a,"next",e)}function a(e){ue(i,r,o,s,a,"throw",e)}s(void 0)})}}var pe={namespaced:!0,state:function(){return{previousJFCResults:[],activeJFCResult:null}},getters:{previousJFCResults:function(e){return e.previousJFCResults},activeJFCResult:function(e){return e.activeJFCResult}},actions:{fetchActiveJFCResult:function(e,t){return de(le().m(function n(){var r,o;return le().w(function(n){for(;;)switch(n.n){case 0:return r=e.commit,n.n=1,te.A.getActiveJobFitCheck(t);case 1:o=n.v,r("setActiveJFCResult",o.data);case 2:return n.a(2)}},n)}))()},fetchPreviousJFCResults:function(e){return de(le().m(function t(){var n,r;return le().w(function(t){for(;;)switch(t.n){case 0:return n=e.commit,t.n=1,te.A.getPreviousJobFitChecks();case 1:r=t.v,n("setPreviousJFCResults",r.data);case 2:return t.a(2)}},t)}))()}},mutations:{setPreviousJFCResults:function(e,t){e.previousJFCResults=t},updateJFCResults:function(e,t){e.previousJFCResults=[t].concat(se(e.previousJFCResults.filter(function(e){return e.id!==t.id})))},updateChecklistItemStatus:function(e,t){var n,r=t.projectShortId,o=t.gapIndex,i=t.done,s=t.deleted,a=function(e){return e.map(function(e){if(e.projectShortId===r){var t=e.gaps||[];if(o<0||o>=t.length)return e;var n=oe(oe(oe({},t[o]),void 0!==i?{done:i}:{}),void 0!==s?{deleted:s}:{}),a=se(t);return a[o]=n,oe(oe({},e),{},{gaps:a})}return e})},l=null===(n=e.activeJFCResult)||void 0===n?void 0:n.portfolioBreakdown;l&&(e.activeJFCResult=oe(oe({},e.activeJFCResult),{},{portfolioBreakdown:{pages:a(l.pages||[]),caseStudies:a(l.caseStudies||[])}}))},clearPreviousJFCResults:function(e){e.previousJFCResults=[]},setActiveJFCResult:function(e,t){e.activeJFCResult=t},clearActiveJFCResult:function(e){e.activeJFCResult=null}}};function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach(function(t){ye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e){if(void 0!==e){if(null===e)return null;try{return JSON.parse(JSON.stringify(e))}catch(t){return e}}}function we(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"preset-section-".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,9))}function Se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e,t){return ge(ge({},e),{},{index:t})})}function ke(e,t,n){e("replaceProject",ge(ge({},t.project||{_id:"preset-editor-sandbox",type:"caseStudy",settings:{globalSpacingEnabled:!1,globalSpacing:60},designSettings:{globalColorStyles:!0,globalFontStyles:!0},sections:[]}),{},{sections:Se(n)}),{root:!0})}var _e={namespaced:!0,state:function(){return{active:!1,snapshot:null}},getters:{isActive:function(e){return e.active}},mutations:{setActive:function(e,t){e.active=t},setSnapshot:function(e,t){e.snapshot=t}},actions:{startSession:function(e){var t=e.state,n=e.commit,r=e.rootState,o=e.rootGetters,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.active){var s={project:be(r.project),portfolio:be(r.portfolio),selectedSection:be(r.selectedSection),viewData:be(o["view/viewData"])},a=i.project||{_id:"preset-editor-sandbox",type:"caseStudy",settings:{globalSpacingEnabled:!1,globalSpacing:60},designSettings:{globalColorStyles:!0,globalFontStyles:!0},sections:[]},l=i.portfolio||be(r.portfolio),c=s.viewData||{};n("replaceProject",a,{root:!0}),n("setPortfolio",l,{root:!0}),n("selectSection",null,{root:!0}),n("view/updateView",ge(ge({},c),{},{project:a,portfolio:l}),{root:!0}),n("setSnapshot",s),n("setActive",!0)}},stopSession:function(e){var t,n,r,o=e.state,i=e.commit;
2if(!o.active||!o.snapshot)return i("setActive",!1),void i("setSnapshot",null);var s=o.snapshot;i("replaceProject",null!==(t=s.project)&&void 0!==t?t:null,{root:!0}),i("setPortfolio",null!==(n=s.portfolio)&&void 0!==n?n:null,{root:!0}),i("selectSection",null!==(r=s.selectedSection)&&void 0!==r?r:null,{root:!0}),i("view/updateView",s.viewData||{},{root:!0}),i("setSnapshot",null),i("setActive",!1)},syncSections:function(e){var t=e.state,n=e.rootState,r=e.commit,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t.active&&ke(r,n,o)},addSectionLocal:function(e){var t,n=e.state,r=e.rootState,o=e.commit,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.postData,a=i.modal,l=void 0===a?null:a;if(n.active){var c=null==s?void 0:s.section;if(c){var u=be((null===(t=r.project)||void 0===t?void 0:t.sections)||[]),d=Number.isInteger(null==s?void 0:s.index)?Math.max(0,Math.min(s.index,u.length)):u.length,p=be(c);p._id||(p._id=we()),delete p.deletedAt,u.splice(d,0,p),ke(o,r,u),o("selectSection",p,{root:!0}),o("setActiveModal",l||null,{root:!0})}}},updateSectionLocal:function(e){var t=e.state,n=e.commit,r=e.rootState,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.section,s=o.modal,a=void 0===s?null:s;t.active&&null!=i&&i._id&&(n("updateSection",i,{root:!0}),a&&"keepModalOpen"===a||"SubscriptionExpiredModal"===r.activeModal||n("setActiveModal",a||null,{root:!0}))},updateSectionsLocal:function(e){var t=e.state,n=e.rootState,r=e.commit,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).sections;t.active&&Array.isArray(o)&&ke(r,n,o)},archiveSectionLocal:function(e){var t,n,r=e.state,o=e.rootState,i=e.commit,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=s.sectionIndex,l=s.sectionId;if(r.active){var c=be((null===(t=o.project)||void 0===t?void 0:t.sections)||[]),u=Number.isInteger(a)?a:-1;if(u<0&&l&&(u=c.findIndex(function(e){return(null==e?void 0:e._id)===l})),!(u<0||u>=c.length)){var d=he(c.splice(u,1),1)[0];ke(i,o,c),null!=d&&d._id&&(null===(n=o.selectedSection)||void 0===n?void 0:n._id)===d._id&&i("selectSection",null,{root:!0}),i("setActiveModal",null,{root:!0})}}},reorderSectionsLocal:function(e,t){var n=e.state,r=e.rootState,o=e.commit;n.active&&Array.isArray(t)&&(ke(o,r,t),o("setActiveModal",null,{root:!0}))},duplicateSectionLocal:function(e){var t,n=e.state,r=e.rootState,o=e.commit,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).sectionId;if(n.active&&i){var s=be((null===(t=r.project)||void 0===t?void 0:t.sections)||[]),a=s.findIndex(function(e){return e._id===i});if(!(a<0)){var l=be(s[a]);l._id=we(),delete l.deletedAt,delete l.copyStatus;var c=a+1;s.splice(c,0,l),ke(o,r,s),o("selectSection",l,{root:!0}),o("setActiveModal",null,{root:!0})}}}}},Oe=n(913),Ce=n(33639),Te=n(95818),Ae=n(88248),Ee=n(92780);const xe={setPortfolio:function(e,t){e.portfolio=t},setSelectedPortfolio:function(e,t){e.selectedPortfolio=t},updatePortfolioTemplateSettings:function(e,t){this.deepMerge(e.portfolio.templateSettings,t)},updatePortfolioDescription:function(e,t){e.portfolio.description=t},updatePortfolioHero:function(e,t){this.deepMerge(e.portfolio.templateSettings.hero,t)},updatePortfolioHeroSection:function(e,t){this.deepMerge(e.portfolio.portfolioHero,t)},setPortfolioTemplateSocialIconStyle:function(e,t){e.portfolio.templateSettings.socialIconStyle=t},preservePortfolioHeroContent:function(e,t){var n;if(null!==(n=e.portfolio)&&void 0!==n&&n.portfolioHero){var r=function(e){return JSON.parse(JSON.stringify(e))};Object.prototype.hasOwnProperty.call(t||{},"text")&&(e.portfolio.portfolioHero.text=r(t.text)),Object.prototype.hasOwnProperty.call(t||{},"socialIcons")&&(e.portfolio.portfolioHero.socialIcons=r(t.socialIcons)),Object.prototype.hasOwnProperty.call(t||{},"cta")&&(e.portfolio.portfolioHero.cta=r(t.cta))}},setPortfolioHeroSocialIcons:function(e,t){e.portfolio.portfolioHero.socialIcons=t.socialIcons},updatePortfolioHeroAssetByKey:function(e,t){var n,r=t.key,o=t.payload;null!==(n=e.portfolio)&&void 0!==n&&n.portfolioHero&&(e.portfolio.portfolioHero[r]=o)},updatePortfolioHeroLayoutSettings:function(e,t){var n;null!==(n=e.portfolio)&&void 0!==n&&n.portfolioHero&&(e.portfolio.portfolioHero.layoutSettings=t)},updatePortfolioNavigation:function(e,t){var n;null!==(n=e.portfolio)&&void 0!==n&&n.portfolioNavigation&&this.deepMerge(e.portfolio.portfolioNavigation,t)},updatePortfolioLogo:function(e,t){var n;null!==(n=e.portfolio)&&void 0!==n&&n.logo?this.deepMerge(e.portfolio.logo,t):e.portfolio.logo=t},updatePortfolioDesignSettings:function(e,t){this.deepMerge(e.portfolio.designSettings,t)},setPortfolioFooterData:function(e,t){e.portfolio.portfolioFooter[t.key]=t.value},updatePortfolioFooter:function(e,t){e.portfolio.portfolioFooter=t},setRelatedCaseStudyFooterData:function(e,t){e.portfolio.relatedCaseStudyFooter[t.key]=t.value}
2,updatePortfolioShortId:function(e,t){e.portfolio&&(e.portfolio.shortId=t),(e.project?[e.project]:[]).forEach(function(e){return e.portfolioShortId=t}),(e.caseStudyPages||[]).forEach(function(e){return e.portfolioShortId=t}),(e.portfolioPages||[]).forEach(function(e){return e.portfolioShortId=t})}};function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me={replaceProject:function(e,t){e.project=t},patchProject:function(e,t){e.project=Le(Le({},e.project),t)}};var De=n(42349);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ne(e){return function(e){if(Array.isArray(e))return Fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach(function(t){He(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function He(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Re(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $e={selectSection:function(e,t){var n=t?e.project.sections.findIndex(function(e){return e._id===t._id}):-1;e.selectedSection=-1===n?t||null:e.project.sections[n]},selectSectionById:function(e,t){e.selectedSection=e.project.sections.find(function(e){return e._id===t})},updateSection:function(e,t){var n=e.project.sections.findIndex(function(e){return e._id===t._id});-1!==n&&e.project.sections.splice(n,1,t),e.selectedSection&&e.selectedSection._id===t._id&&(e.selectedSection=t)},patchSelectedSection:function(e,t){e.selectedSection&&this.deepMerge(e.selectedSection,t)},patchSectionById:function(e,t){var n=t.sectionId,r=t.payload,o=e.project.sections.findIndex(function(e){return e._id===n});if(o>-1){var i=e.project.sections[o];this.deepMerge(i,r)}},patchSectionByPath:function(e,t){var n=t.sectionId,r=t.path,o=t.value,i=e.project.sections.find(function(e){return e._id===n});if(i){for(var s=r.split("."),a=i,l=0;l<s.length-1;l++){if(!a[s[l]])return;a=a[s[l]]}a[s[s.length-1]]=o}},setTextAlignmentInSection:function(e,t){var n=t.sectionId,r=t.columnIndex,o=t.align,i=e.project.sections.find(function(e){return e._id===n});if(i){var s=function(e){e&&(e.style=Ue(Ue({},e.style),{},{textAlign:o}))};null!==r&&i.columns?i.columns.forEach(function(e){return s(e.text)}):s(i.text)}},insertSectionItem:function(e,t){var n=t.sectionId,r=t.arrayName,o=t.item,i=t.index,s=e.project.sections.find(function(e){return e._id===n});s&&Array.isArray(s[r])&&s[r].splice(i,0,o)},removeSectionItem:function(e,t){var n=t.sectionId,r=t.arrayName,o=t.index,i=e.project.sections.find(function(e){return e._id===n});i&&Array.isArray(i[r])&&(!i||i[r][o])&&i[r].splice(o,1)},updateSectionArray:function(e,t){var n=t.sectionId,r=t.arrayName,o=t.newArray,i=e.project.sections.find(function(e){return e._id===n});i&&Array.isArray(o)&&(i[r]=Ne(o))},deleteTextModule:function(e,t){var n=t.sectionId,r=e.project.sections.find(function(e){return e._id===n});if(r){r.contentSettings=Ue(Ue({},r.contentSettings),{},{showText:!1,showMedia:r.type!==c.iK.ACCORDION&&(r.type!==c.iK.CONTACT_FORM||r.contentSettings.showMedia)});
2var o=r.type===c.iK.ACCORDION?De.$1.ACCORDION_FULL_WIDTH:r.type===c.iK.CONTACT_FORM?r.contentSettings.showMedia?De.$1.CONTACT_FORM_ORIGINAL:De.$1.CONTACT_FORM_CENTERED:De.$1.MEDIA_FULL_WIDTH;r.styleSettings=Ue(Ue({},r.styleSettings),{},{boxAlign:r.type===c.iK.ACCORDION?"left-top":o===De.$1.CONTACT_FORM_CENTERED?"center":"left"}),r.layoutSettings=(0,De.FZ)(r.layoutSettings,o)}},deleteMediaModule:function(e,t){var n=t.sectionId,r=e.project.sections.find(function(e){return e._id===n});if(r){r.contentSettings=Ue(Ue({},r.contentSettings),{},{showText:r.type!==c.iK.ACCORDION&&(r.type!==c.iK.CONTACT_FORM||r.contentSettings.showText),showMedia:!1});var o=r.type===c.iK.ACCORDION?De.$1.ACCORDION_FULL_WIDTH:r.type===c.iK.CONTACT_FORM&&r.contentSettings.showText?De.$1.CONTACT_FORM_AND_TEXT:r.type===c.iK.CONTACT_FORM?De.$1.CONTACT_FORM_CENTERED:De.$1.TEXT_DEFAULT;r.styleSettings=Ue(Ue({},r.styleSettings),{},{boxAlign:r.type===c.iK.ACCORDION?"left-top":o===De.$1.CONTACT_FORM_CENTERED?"center":"left"}),r.media.mockupSettings&&(r.media.mockupSettings=null),r.layoutSettings=(0,De.FZ)(r.layoutSettings,o)}},deleteHeroMediaModule:function(e){var t,n=null===(t=e.portfolio)||void 0===t?void 0:t.portfolioHero;if(null!=n&&n.layoutSettings){var r=n.layoutSettings.layoutType===c.qX.SIDEBAR,o=r?De.$1.HERO_SIDEBAR_TEXT:De.$1.TEXT_DEFAULT,i=r?c.qX.SIDEBAR:c.qX.MODULAR,s=Ue(Ue({},(0,De.FZ)(n.layoutSettings,o)),{},{layoutType:i,contentFlow:c.tn.HORIZONTAL});n.contentSettings=Ue(Ue({},n.contentSettings),{},{showText:!0,showMedia:!1}),n.styleSettings=Ue(Ue({},n.styleSettings),{},{boxAlign:"left"}),n.layoutSettings=s}},setSectionModules:function(e,t){var n,r=t.sectionId,o=t.modules,i=null===(n=e.project)||void 0===n||null===(n=n.sections)||void 0===n?void 0:n.find(function(e){return e._id===r||e.id===r});i&&(!function(e){e.layoutSettings||(e.layoutSettings={}),Array.isArray(e.layoutSettings.modules)||(e.layoutSettings.modules=[])}(i),i.layoutSettings.modules=Array.isArray(o)?o.slice():[])}},ze={updateSidebarState:function(e,t){Object.assign(e.sidePanelSettings,t)}},We={portfolioTemplateSettings:function(e){return e.portfolio.templateSettings},portfolioHero:function(e,t){return t.portfolioTemplateSettings.hero},portfolioUsesRootHeaderSections:function(e){var t,n;return!(null===(t=e.portfolio)||void 0===t||!t.portfolioHero||null===(n=e.portfolio)||void 0===n||!n.portfolioNavigation)},portfolioHasHeroSection:function(e){var t;return!(null===(t=e.portfolio)||void 0===t||!t.portfolioHero)},portfolioHasNavigationSection:function(e){var t,n,r,o;return!(null===(t=e.portfolio)||void 0===t||!t.portfolioNavigation)&&((null===(n=e.project)||void 0===n?void 0:n.type)!==c.Q8.CASE_STUDY||((null===(r=e.portfolio)||void 0===r||null===(r=r.portfolioHero)||void 0===r||null===(r=r.layoutSettings)||void 0===r?void 0:r.layoutType)===c.qX.SIDEBAR||!(null===(o=e.portfolio)||void 0===o||null===(o=o.settings)||void 0===o||!o.showNavOnCollectionItems)))}},Ge={selectedSection:function(e){return e.selectedSection},selectedSectionIsCaseStudyHero:function(e,t){var n;return(null===(n=t.selectedSection)||void 0===n?void 0:n.type)===c.iK.MAIN_HEADER},selectedSectionIsPortfolioHero:function(e,t){var n,r=t.selectedSection,o=null===(n=e.portfolio)||void 0===n||null===(n=n.portfolioHero)||void 0===n?void 0:n._id;return(null==r?void 0:r.type)===c.iK.HERO||!!o&&(null==r?void 0:r._id)===o},selectedSectionIsLegacyPortfolioHero:function(e,t){var n;if(t.selectedSectionIsPortfolioHero)return!1;var r=null===(n=t.selectedSection)||void 0===n?void 0:n.type;return null==r},heroIsSidebar:function(e){var t;return(null===(t=e.portfolio)||void 0===t||null===(t=t.portfolioHero)||void 0===t||null===(t=t.layoutSettings)||void 0===t?void 0:t.layoutType)===c.qX.SIDEBAR}};function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function Ve(e,t){for(var n in t){var r=t[n],o=e[n];if(Array.isArray(r)&&Array.isArray(o))for(var i=0;i<r.length;i++)null!=r[i]&&("object"===Xe(r[i])&&o[i]?Ve(o[i],r[i]):o[i]=r[i]);else r&&"object"===Xe(r)&&!Array.isArray(r)?(o&&"object"===Xe(o)||(e[n]={}),Ve(e[n],r)):e[n]=r}}function Ke(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return qe(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(qe(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,qe(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,qe(d,"constructor",c),qe(c,"constructor",l),l.displayName="GeneratorFunction",qe(c,o,"GeneratorFunction"),qe(d),qe(d,o,"Generator"),qe(d,r,function(){return this}),qe(d,"toString",function(){return"[object Generator]"}),(Ke=function(){return{w:i,m:p}})()}function qe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qe=function(e,t,n,r){function i(t,n){qe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},qe(e,t,n,r)}function Ye(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function Qe(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){Ye(i,r,o,s,a,"next",e)}function a(e){Ye(i,r,o,s,a,"throw",e)}s(void 0)})}}function Je(e){var t=e.getters,n=e.commit;t.isCaseStudy?n("updateEditedCaseStudySectionsInCaseStudyPages"):n("updateEditedPageSectionsInPortfolioPages")}function Ze(e,t,n){return et.apply(this,arguments)}function et(){return(et=Qe(Ke().m(function e(t,n,r){var o,i,s,a,l,u;return Ke().w(function(e){for(;;)switch(e.n){case 0:if(o=t.state,i=t.dispatch,s=t.commit,o.project){e.n=1;break}return e.a(2);case 1:if(a=o.project._id,l=!1,0!==(u=o.project.sections.filter(function(e){return e.type===c.iK.PROCESS&&!e.deletedAt})).length){e.n=2;break}return e.a(2);case 2:if(u.forEach(function(e){var t=e.processItems||[];!r&&t.find(function(e){return e.sectionIndex===n})?(o.selectedNavStep=t.findIndex(function(e){return e.sectionIndex===n}),o.selectedSection=e,s("showAlertMessage",{type:"success",message:"Linked section ".concat(r?"changed":"deleted","."),interval:60}),t.find(function(e){return e.sectionIndex===n}).sectionIndex=null,l=!0):r&&t.findLast(function(e){return!!e.sectionIndex})&&n<=t.findLast(function(e){return!!e.sectionIndex}).sectionIndex&&(t.forEach(function(e){n<=e.sectionIndex&&(e.sectionIndex=e.sectionIndex+1)}),l=!0)}),!l){e.n=3;break}return e.n=3,i("updateSections",{projectId:a,sections:u});case 3:return e.a(2)}},e)}))).apply(this,arguments)}const tt={addSection:function(e,t){return Qe(Ke().m(function n(){var r,o,i,s,a,l,c,u;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:return r=t.postData,o=t.modal,i=void 0===o?null:o,s=e.state,a=e.commit,e.getters,n.p=1,n.n=2,Te.A.addSection(s.project._id,r);case 2:l=n.v,a("replaceProject",l.data),c=l.data.sections[r.index],a("selectSection",c),setTimeout(function(){a("scrollToSection",{sectionId:null==c?void 0:c._id})},10),n.n=4;break;case 3:n.p=3,u=n.v,console.error(u);case 4:return n.p=4,Je(e),n.n=5,Ze(e,r.index,!0);case 5:return a("setActiveModal",i||null),n.f(4);case 6:return n.a(2)}},n,null,[[1,3,4,6]])}))()},updateSection:function(e,t){return Qe(Ke().m(function n(){var r,o,i,a,l,u,d,p,f,h;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:if(r=t.section,o=t.modal,i=void 0===o?null:o,a=e.state,l=e.commit,!e.getters.isEditorBlocked){n.n=1;break}return n.a(2);case 1:if((null==r?void 0:r.type)!==c.iK.HERO){n.n=2;break}return l("updatePortfolioHero",r),s.A.updatePortfolio("Update portfolio hero",!0),n.a(2);case 2:if((null==r?void 0:r.type)!==c.iK.FOOTER){n.n=3;break}return l("updatePortfolioFooter",r),s.A.updatePortfolio("Update portfolio footer",!0),n.a(2);case 3:return l("updateSavingState"),n.p=4,n.n=5,Te.A.updateSection(a.project._id,r);case 5:l("updateSection",r),n.n=7;break;case 6:n.p=6,h=n.v,console.error(h),p=null===(u=h.response)||void 0===u?void 0:u.data,405===(null===(d=h.response)||void 0===d?void 0:d.status)&&1014===(null==p?void 0:p.code)&&"past_due"===(null===(f=a.userSettings)||void 0===f||null===(f=f.currentSubscription)||void 0===f?void 0:f.status)&&(console.log("BLOCKED from: SectionActions"),l("setBlockedEditor",!0));case 7:if(n.p=7,Je(e),l("updateSavingState"),!(i&&"keepModalOpen"===i||"SubscriptionExpiredModal"===a.activeModal)){n.n=8;break}return n.a(2);case 8:return l("setActiveModal",i||null),n.f(7);case 9:return n.a(2)}},n,null,[[4,6,7,9]])}))()},updateSocialLinks:function(e,t){return Qe(Ke().m(function n(){var r,o,i;return Ke().w(function(n){for(;;)switch(n.n){case 0:if(r=t.socialLinks,o=t.trackLabel,i=e.commit,!e.getters.isEditorBlocked){n.n=1;break}return n.a(2);case 1:return i("setPortfolioHeroSocialIcons",{socialIcons:r}),n.n=2,s.A.updatePortfolioHero(e.state.portfolio.portfolioHero);case 2:return n.a(2)}},n)}))()},updateSections:function(e,t){return Qe(Ke().m(function n(){var r,o,i,s,a,l,c,u;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:if(r=t.projectId,o=t.sections,i=e.commit,!e.getters.isEditorBlocked){n.n=1;break}return n.a(2);case 1:if(r&&Array.isArray(o)){n.n=2;break}return n.a(2);case 2:return i("updateSavingState"),n.p=3,n.n=4,Te.A.updateSections(r,o);case 4:n.n=6;break;case 5:n.p=5,u=n.v,console.error(u),l=null===(s=u.response)||void 0===s?void 0:s.data,405===(null===(a=u.response)||void 0===a?void 0:a.status)&&1014===(null==l?void 0:l.code)&&"past_due"===(null===(c=e.state.userSettings)||void 0===c||null===(c=c.currentSubscription)||void 0===c?void 0:c.status)&&(console.log("BLOCKED from: SectionActions"),i("setBlockedEditor",!0));case 6:return n.p=6,i("updateSavingState"),n.f(6);case 7:return n.a(2)}},n,null,[[3,5,6,7]])}))()},archiveSection:function(e,t){return Qe(Ke().m(function n(){var r,o,i,s,a,l,c;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:return r=t.projectId,o=t.sectionIndex,i=e.state,s=e.commit,n.p=1,n.n=2,Te.A.archiveSection(r,o);case 2:a=n.v,i.project.sections[o].deletedAt=a.data.deletedAt,i.selectedSection=null,n.n=4;break;case 3:n.p=3,c=n.v,console.error(c);case 4:return n.p=4,i.project.sections[o].deletedAt||s("scrollToSection",{sectionId:null===(l=i.project.sections[o])||void 0===l?void 0:l._id}),s("setActiveModal",null),n.n=5,Ze(e,o,!1);case 5:return n.f(4);case 6:return n.a(2)}},n,null,[[1,3,4,6]])}))()},reorderSections:function(e,t){return Qe(Ke().m(function n(){var r,o,i,s;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:return r=e.state,o=e.commit,n.p=1,n.n=2,Te.A.reorderSections(r.project._id,t);case 2:i=n.v,o("replaceProject",i.data),n.n=4;break;case 3:n.p=3,s=n.v,console.error(s);case 4:return n.p=4,o("setActiveModal",null),n.f(4);case 5:return n.a(2)}},n,null,[[1,3,4,5]])}))()},deleteProjectImage:function(e,t){return Qe(Ke().m(function n(){var r,o,i,s,a,l;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:if(r=e.state,o=t.imageUrl,i=t.croppedImageUrl,s=t.options,a=void 0===s?{}:s,o||i){n.n=1;break}return n.a(2);case 1:return n.p=1,n.n=2,Te.A.deleteProjectImage(r.project._id,o,i,a);case 2:n.n=4;break;case 3:n.p=3,l=n.v,console.error(l);case 4:return n.a(2)}},n,null,[[1,3]])}
2))()},deleteGalleryItem:function(e,t){return Qe(Ke().m(function n(){var r,o,i,s;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:return r=e.state,o=e.commit,n.p=1,n.n=2,Te.A.deleteGalleryItem(r.project._id,r.selectedSection.index,t);case 2:i=n.v,o("updateGalleryItems",i.data.galleryItems),r.project.sections[r.selectedSection.index].galleryItems=Object.assign([],i.data.galleryItems),o("showAlertMessage",{type:"success",message:"Image successfully deleted."}),n.n=4;break;case 3:n.p=3,s=n.v,console.error(s);case 4:return n.a(2)}},n,null,[[1,3]])}))()},duplicateSection:function(e,t){return Qe(Ke().m(function n(){var r,o,i,s,a,l,c,u,d,p,f,h;return Ke().w(function(n){for(;;)switch(n.p=n.n){case 0:if(r=t.sectionId,o=e.state,i=e.commit,!e.getters.isEditorBlocked){n.n=1;break}return n.a(2);case 1:if(s=o.project.sections.find(function(e){return e._id===r})){n.n=2;break}return console.warn("duplicateSection: source section not found in store",r),n.a(2);case 2:return a=s.index+1,i("updateSavingState"),n.p=3,n.n=4,Te.A.duplicateSection(o.project._id,r,a);case 4:return l=n.v,i("replaceProject",l.data),c=l.data.sections[a],i("selectSection",c),i("scrollToSection",{sectionId:null==c?void 0:c._id}),Je(e),n.n=5,Ze(e,a,!0);case 5:"pending"===(null==c?void 0:c.copyStatus)&&nt(e,c._id),n.n=7;break;case 6:n.p=6,h=n.v,console.error(h),p=null===(u=h.response)||void 0===u?void 0:u.data,405===(null===(d=h.response)||void 0===d?void 0:d.status)&&1014===(null==p?void 0:p.code)&&"past_due"===(null===(f=o.userSettings)||void 0===f||null===(f=f.currentSubscription)||void 0===f?void 0:f.status)&&(console.log("BLOCKED from: duplicateSection"),i("setBlockedEditor",!0));case 7:return n.p=7,i("updateSavingState"),i("setActiveModal",null),n.f(7);case 8:return n.a(2)}},n,null,[[3,6,7,8]])}))()}};function nt(e,t){var n=e.state,r=e.commit,o=0,i=setInterval(Qe(Ke().m(function e(){var s,a,l;return Ke().w(function(e){for(;;)switch(e.p=e.n){case 0:return o+=1,e.p=1,e.n=2,Te.A.getProject(n.project._id);case 2:s=e.v,r("replaceProject",s.data),(null==(a=s.data.sections.find(function(e){return e._id===t}))||!a.copyStatus||o>=30)&&(clearInterval(i),a&&r("selectSection",a)),e.n=4;break;case 3:e.p=3,l=e.v,console.error("Failed to poll section copy status",l),o>=30&&clearInterval(i);case 4:return e.a(2)}},e,null,[[1,3]])})),1e3)}function rt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=dt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||dt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function st(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return at(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(at(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,at(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,at(d,"constructor",c),at(c,"constructor",l),l.displayName="GeneratorFunction",at(c,o,"GeneratorFunction"),at(d),at(d,o,"Generator"),at(d,r,function(){return this}),at(d,"toString",function(){return"[object Generator]"}),(st=function(){return{w:i,m:p}})()}function at(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}at=function(e,t,n,r){function i(t,n){at(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},at(e,t,n,r)}function lt(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function ct(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){lt(i,r,o,s,a,"next",e)}function a(e){lt(i,r,o,s,a,"throw",e)}s(void 0)})}}function ut(e){return function(e){if(Array.isArray(e))return pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||dt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){if(e){if("string"==typeof e)return pt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach(function(t){mt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==it(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=function(e){return null==e?e:JSON.parse(JSON.stringify(e))},gt=(0,r.y$)({modules:{review:d.N,design:q,view:ee,jfc:pe,presetEditor:_e},plugins:[function(e){e.deepMerge=Ve}],state:function(){return{triggerAnimation:!0,recalculateScrollTrigger:!0,navigatedFromPreview:!1,emergencyModeSettings:null,user:null,userPortfolios:null,portfolio:null,portfolioSetupComplete:!1,portfolioPages:null,caseStudyPages:null,allCaseStudyPages:null,allPortfolios:null,selectedPortfolioForDomain:null,userSettings:{currentSubscription:null,currentSubscriptionPlan:null,domainSubscriptions:[],invoices:[],stripePrices:{monthlyPrice:{id:"",price:"NaN"},yearlyPrice:{id:"",price:"NaN"}},referrerData:null,referredData:null,creditBalance:0,showSupportSurvey:!1,showTrialStartedAlert:!1,showTrialRestartedAlert:!1},project:null,allowedSections:null,sectionEditorSettings:{pageToEdit:null,emptyStateTreshold:1,hideEditButtons:!1,hideMockupButtons:!1,hideTextAndImageIdeasButtons:!1,hiddenMediaTypes:{image:!1,video:!1,proto:!1,media:!1,mockup:!1},maxColumnsPerSection:4,maxStatItemsPerSection:5,defaultPadding:60,sectionLimit:null,ctsModuleSelected:!1,pendingSettingsReopen:null,pendingGalleryFocus:null},selectedProject:null,selectedSection:null,selectedPortfolio:null,
2savingProject:!1,activeModal:null,portfolioHeroFontStylesBeforeLayoutSwitch:null,portfolioHeroNavigationBeforeLayoutSwitch:null,portfolioHeroBackgroundBeforeLayoutSwitch:null,textEditorActive:!1,isViewLight:function(){var e=o.A.currentRoute._value.fullPath;return e.includes("/create-new-portfolio")||e.includes("/home/settings")||"/home/portfolios"===e||"/home/notifications"===e||"/home/prices"===e||e.includes("/home/domain")||e.includes("/home/url")||e.includes("/home/payment")||e.startsWith("/reviews")},activeModalData:null,activeSectionSettingId:null,uploadImageAndCropStep:"upload",uploadImageAndCropType:null,alertModalMessage:null,showSidePanel:!1,sidePanelSettings:{panel:null,title:"Case study design",previousSettings:null,prevAccentColor:null,saveButton:"Save",showSecondaryTab:!1,hideBackButton:!1,hideActionButtons:!1,allowSave:!1,portfolioPassword:null,newPageDetails:null,globalSpacingChanged:!1,activeModal:null,goBackPath:null,updateParentPortfolio:!1,tabPills:null,activeTab:null,storedScrollPosition:null,selectedColorPaletteItem:null,showInfoAboveCtas:!1,infoAboveCtasMessage:null,infoAboveCtasLinkText:null,infoAboveCtasLinkUrl:null,editedCtaType:null},currentSubscriptionPlan:null,subscriptionSettingsInfo:null,zoomData:{isZoomed:!1,imageUrl:null,imageRef:null},selectedMockupStyle:null,showTipMessage:!1,selectedStatSectionStyles:null,selectedTestimonialSectionStyles:null,selectedHeaderSectionStyle:null,alertMessage:{show:!1,type:"info",message:null,interval:null},notifications:[],showArchiveInfoBubble:!1,showOnBoardingScreen:!1,onboardingFinished:!1,templateTipMessageSeen:!1,pageIsLoading:!1,loaderMessage:null,creatingNewPortfolio:!1,previewingTemplate:!1,templatePreviews:[],portfolioTemplates:[],previewAndCreatePortfolioDetails:{selectedPortfolioTemplate:null,activeView:0,selectedProjects:[],newPortfolio:null},fonts:[],fontPairs:[],reviewCenter:{reviewSent:!1,askForReviewProjectId:null},darkMode:null,displayToggleGrid:!1,checklist:{activeInteraction:null,subpage:!1,finished:!1,popUpClosed:!0},blockedEditor:!1,subscriptionExpiredModalShown:!1,showPublishTooltip:!1,eventsToTrack:[],showAiFeedbackModal:!1,aiFeedbackModalType:null,portfolioTemplateStyles:[],sectionPresets:[],sectionPresetsLoaded:!1,isGlobalCtsOff:!1,activeChecklistItems:[c.QT.TEMPLATE,c.QT.CUSTOMIZE,c.QT.HEADLINE,c.QT.CASE_STUDY,c.QT.THUMBNAIL,c.QT.PUBLISH],cursorPreviewMode:!1}},mutations:ht(ht(ht(ht(ht(ht({},xe),Me),$e),ze),{updateTemplateOrder:function(e,t){var n=t.templateId,r=t.newOrder,o=e.portfolioTemplates.find(function(e){return e.templateId===n});o&&(o.order=r)},updatePortfolioTemplates:function(e,t){var n=e.portfolioTemplates.findIndex(function(e){return e.templateId===t.templateId});-1!==n?e.portfolioTemplates.splice(n,1,t):e.portfolioTemplates.push(t)},removePortfolioTemplate:function(e,t){var n=e.portfolioTemplates.findIndex(function(e){return e.templateId===t.templateId});-1!==n&&e.portfolioTemplates.splice(n,1)},setPortfolioTemplateStyles:function(e,t){e.portfolioTemplateStyles=t}}),{},{setSelectedPortfolioForDomain:function(e,t){e.selectedPortfolioForDomain=t},clearSelectedPortfolioForDomain:function(e){e.selectedPortfolioForDomain=null},resetZoom:function(e){e.zoomData={isZoomed:!1,imageUrl:null,imageRef:null}},setZoom:function(e,t){e.zoomData={isZoomed:!0,imageUrl:t.url,imageRef:t.ref}},setPageToEdit:function(e,t){e.portfolioPages&&(gt.commit("replaceProject",e.portfolioPages.find(function(e){return e.shortId===t})),gt.commit("setAllowedSections",e.project.type),gt.commit("setSectionEditorSettings",{pageToEdit:e.project?e.project.type:"blank",sectionLimit:3})),e.navigatedFromPreview=!1},setNavigateFromPreview:function(e,t){e.navigatedFromPreview=t},setCaseStudyToEdit:function(e,t){gt.commit("replaceProject",e.caseStudyPages.find(function(e){return e.shortId===t})),gt.commit("setAllowedSections","caseStudy")},updateEditedPageSectionsInPortfolioPages:function(e){e.portfolioPages.find(function(t){return t.shortId===e.project.shortId}).sections=e.project.sections},updateEditedCaseStudySectionsInCaseStudyPages:function(e){e.caseStudyPages.find(function(t){return t.shortId===e.project.shortId}).sections=e.project.sections},updateEditedCaseStudyInCaseStudyPages:function(e){var t=e.caseStudyPages.findIndex(function(t){return t._id===e.project._id});-1!==t&&e.caseStudyPages.splice(t,1,e.project)},addNewPageToList:function(e,t){e.portfolioPages.push(t)},addNewCaseStudyToList:function(e,t){e.caseStudyPages.push(t)},setActiveModal:function(e,t){e.activeModal=t},setAllowedSections:function(e,t){e.allowedSections=Object.assign({},{basicSections:t!==c.Q8.CASE_STUDY?u.Lt:u.T7,recommendedSections:t!==c.Q8.CASE_STUDY?u.i4:u.go})},setSectionPresets:function(e,t){e.sectionPresets=t,e.sectionPresetsLoaded=!0},setSectionEditorSettings:function(e,t){e.sectionEditorSettings=Object.assign({},gt.state.sectionEditorSettings,t)},selectCaseStudy:function(e,t){e.selectedProject=t},setCurrentPlan:function(e,t){e.currentSubscriptionPlan=t},setCurrentSubscription:function(e,t){e.userSettings.currentSubscription=ht({},t)},updateSectionByIndex:function(e,t){e.project.sections[t.sectionIndex]=ht(ht({},e.project.sections[t.sectionIndex]),t.updatedSectionEntries)},updateProject:function(e,t){gt.state.project=Object.assign({},gt.state.project,t)},updateSavingState:function(e,t){e.savingProject="boolean"!=typeof t?!e.savingProject:t},updateSidePanel:function(e,t){e.sidePanelSettings=Object.assign({},gt.state.sidePanelSettings,t)},updateEventsToTrackList:function(e,t){var n=Ce.A.getUrls(),r=ht(ht({},t),{},{properties:ht(ht({},n),t.properties)}),o=e.eventsToTrack.findIndex(function(e){return e.event===r.event});r.nonUniqueEvent||-1===o?e.eventsToTrack=[].concat(ut(e.eventsToTrack),[r]):e.eventsToTrack[o]=r},clearEventsToTrackList:function(e){e.eventsToTrack=[]},updateSidePanelVisibility:function(e,t){e.showSidePanel=t},updateSelectedSectionImage:function(e,t){gt.state.selectedSection.image=Object.assign({},gt.state.selectedSection.image,t)},updateSelectedSectionMedia:function(e,t){if("number"==typeof gt.state.selectedColumnIndex)switch(gt.state.selectedSection.type){case"Columns":e.selectedSection.columns[e.selectedColumnIndex].media=t;break;case"Testimonial":e.selectedSection.testimonial[e.selectedColumnIndex].media=t;break;case"LogoWall":e.selectedSection.logos[e.selectedColumnIndex]=ht(ht({},e.selectedSection.logos[e.selectedColumnIndex]),t)}else gt.state.selectedSection.media=Object.assign({},gt.state.selectedSection.media,t)},updateSectionMediaBasedOnActiveModalData:function(e,t){if(e.activeModalData.column)"columns"===e.activeModalData.column.key?e.selectedSection.columns[e.activeModalData.column.index].media=t:"tabs"===e.activeModalData.column.key?e.selectedSection.tabs[e.activeModalData.column.index].media=t:"logos"!==e.activeModalData.column.key?e.selectedSection[e.activeModalData.column.key][e.activeModalData.column.index].media=t:e.selectedSection.logos[e.activeModalData.column.index]=t;else{var n=gt.getters.selectedSectionIsPortfolioHero;if(n||e.activeModalData.key!==c.i4.PORTFOLIO_HERO_IMAGE)if(n||e.activeModalData.key!==c.i4.PORTFOLIO_HERO_MEDIA)if(e.activeModalData.key===c.i4.PORTFOLIO_LOGO)gt.commit("updatePortfolioLogo",{media:t});else if(n){var r=e.activeModalData.key===c.i4.PORTFOLIO_HERO_IMAGE?"image":"media";gt.commit("updatePortfolioHeroAssetByKey",{key:r,payload:t})}else e.activeModalData.key===c.i4.THUMBNAIL?e.selectedProject.image=t:(e.selectedSection[e.activeModalData.key]=t,e.activeModalData.key===c.i4.IMAGE&&(e.selectedSection.backgroundColor=null));else e.portfolio.image=t;else e.portfolio.templateSettings.hero.image=t,e.selectedSection.backgroundColor=null}},updateGalleryItems:function(e,t){e.selectedSection.galleryItems=Object.assign([],e.selectedSection.galleryItems,t)},updateUser:function(e,t){gt.state.user=Object.assign({},gt.state.user,t)},updateUserInDb:function(e,t){var n=this;t&&(0,l.f0)(t,{event_category:"Profile editor",event_label:"User: ".concat(gt.state.user._id)}),e.savingProject=!0,a.A.editUser(e.user).then(function(t){e.user=ht(ht({},t.data),{},{paymentMethods:e.user.paymentMethods})}).catch(function(t){405===t.response.status&&(e.currentSubscriptionPlan=t.response.data.currentSubscriptionPlan,n.$store.commit("showAlertMessage",{message:"Upgrade to Full access to use this feature.",type:"alert",interval:10}),1005===t.response.data.code&&(e.user.accountSettings.folioLogo=!0))}).finally(function(){e.savingProject=!1})},updateUserPaymentMethods:function(e,t){e.user.paymentMethods=t},updateUserSelectedPaymentMethods:function(e,t){e.user.selectedPaymentMethod=t},updateExistingStatSectionStyles:function(e){e.project.sections.find(function(e){if(e.statItems&&!e.deletedAt&&(e.statItems[0].data.style&&e.statItems[0].data.style.textStyle||e.statItems[0].description.style&&e.statItems[0].description.style.textStyle))return gt.state.selectedStatSectionStyles={data:e.statItems[0].data.style.textStyle,description:e.statItems[0].description.style.textStyle}})},updateExistingHeaderSectionStyle:function(e){gt.state.project.sections.find(function(e){if("Header"===e.type&&e.title.style.textStyle&&!e.deletedAt)return gt.state.selectedHeaderSectionStyle=e.title.style.textStyle})},updateExistingTestimonialSectionStyles:function(e){gt.state.project.sections.find(function(e){if("Testimonial"===e.type&&!e.deletedAt)return gt.state.selectedTestimonialSectionStyles={text:e.testimonial[0].text.style.textStyle,author:e.testimonial[0].author.style.textStyle}})},updateFirstMockup:function(e){gt.state.project.sections.find(function(e){return gt.state.selectedMockupStyle=e.media&&e.media.mokcupSettings?e.media.mockupSettings:e.galleryItems&&e.galleryItems[0].media.mockupSettings?e.galleryItems[0].media.mockupSettings:Oe.pq})},openSidePanel:function(e,t){gt.commit("openSidePanelOnPage",t)},openSidePanelOnPage:function(e,t){if(e.project.type===c.Q8.HOME)o.A.push("/home/portfolios/".concat(gt.state.portfolio.shortId,"/").concat(t.panelPath));else o.A.push("/home/portfolios/".concat(gt.state.portfolio.shortId,"/p/").concat(gt.state.project.shortId,"/").concat(t.panelPath))},closeSidePanel:function(e){if(e.project.type===c.Q8.HOME)o.A.push("/home/portfolios/".concat(e.portfolio.shortId));else o.A.push("/home/portfolios/".concat(e.portfolio.shortId,"/p/").concat(e.project.shortId))},toggleSidePanel:function(e,t){e.sidePanelSettings.allowSave?gt.commit("updateSidePanel",{activeModal:"CancelConfirmModal",goToPanel:t.panelPath}):location.pathname.indexOf("/".concat(t.panelPath))<0?gt.commit("openSidePanel",t):gt.commit("closeSidePanel")},navigateBetweenSidePanels:function(e,t){var n,r=t&&t.mainPanel?t.mainPanel:c.mq.ROOT;if(e.project.type===c.Q8.HOME)n="/home/portfolios/".concat(e.portfolio.shortId,"/").concat(r);else n="/home/portfolios/".concat(e.portfolio.shortId,"/p/").concat(e.project.shortId,"/").concat(r);return!t||t&&!t.targetPanelPath?o.A.push(n):o.A.push(n+t.targetPanelPath)},setChatBubblePosition:function(e,t){var n=document.querySelector("#freshworks-container"),r=document.querySelector("#launcher-frame");n&&(n.style.cssText+="--leftPos: ".concat(t,"px;"),gt.getters.showTrialPrompt&&(n.style.cssText+="--bottomBubPos: 51px; --bottomPopPos: 109px")),r&&(r.style.cssText+="--leftPos: ".concat(t,"px;"))},openPortfolioToEdit:function(e,t){return ct(st().m(function n(){return st().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,s.A.getPortfolios(t);case 1:return gt.commit("setPageToEdit","home"),n.n=2,o.A.push("/home/portfolios/".concat(e.portfolio.shortId));case 2:return n.a(2)}},n)}))()},setHeightOfTextareas:function(e){(0,i.A)(document.querySelectorAll("textarea")),setTimeout(function(){i.A.update(document.querySelectorAll("textarea"))},10)},scrollToSection:function(e,t){var n,r=null!==(n=null==t?void 0:t.attempts)&&void 0!==n?n:10,o=0,i=function(){var e=document.getElementById("section-".concat(t.sectionId));if(!e&&o<r)return o+=1,setTimeout(i,80);if(e){e.classList.toggle("restore.stated",!!t.restoreSection);var n=s(e)-(e.offsetHeight<=window.innerHeight?(window.innerHeight-e.offsetHeight)/2+29:58);window.scrollTo({top:n,left:0,behavior:"smooth"})}},s=function(e){var t=e.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop;return t.top+n};i()},showAlertMessage:function(e,t){e.alertMessage={type:t.type,message:t.message,show:!1!==t.show||t.show,interval:t.interval?t.interval:3}},showAiFeedbackModal:function(e,t){e.showAiFeedbackModal=!0,e.aiFeedbackModalType=t.type},hideAiFeedbackModal:function(e){e.showAiFeedbackModal=!1,e.aiFeedbackModalType=null},scrollToItem:function(e,t){var n=t.index-1>-1?document.querySelector('[data-id="'.concat(t.index-1,'"]')):null,r=document.querySelector('[data-section-index="section-'.concat(gt.state.selectedSection.index,'"]')),o=r.offsetTop-(r.offsetHeight<=window.innerHeight?(window.innerHeight-r.offsetHeight)/2+29:58)+(n?n.offsetTop:0);window.scrollTo({top:o,left:0,behavior:"smooth"})},updatePortfolioInUserPortfolios:function(e,t){var n=e.userPortfolios.findIndex(function(e){return e.shortId===t.shortId});e.userPortfolios[n]=t},openLink:function(e,t){window.open(t)},recalculateScrollTriggers:function(e){e.recalculateScrollTrigger=!e.recalculateScrollTrigger},updateChecklistItem:function(e,t){if(e.user.checklistStatus){e.user.checklistStatus.steps[t]=!0,e.checklist.activeInteraction=null;var n="Finished: "+t;(0,l.f0)(n,{event_category:"Activation checklist",event_label:"User: ".concat(e.user._id)}),Ce.A.track("CHECKLIST_STEP_COMPLETED",{event_group:Ce.A.MixpanelEventGroups.ONBOARDING,source:"Checklist",item_name:t}),gt.commit("updateUserInDb")}},updateChecklistFinished:function(e,t){e.checklist.finished=t},updateActivationPopupState:function(e,t){e.checklist.popUpClosed=t}
2,setPortfolioPublishedState:function(e,t){e.portfolio&&(e.portfolio.draft=t),e.selectedPortfolio&&(e.selectedPortfolio.draft=t)},setPortfoliosToDraft:function(e){e.userPortfolios&&e.userPortfolios.length&&e.userPortfolios.forEach(function(e){e.draft=!0}),e.portfolio&&(e.portfolio.draft=!0),e.selectedPortfolio&&(e.selectedPortfolio.draft=!0)},setPortfolioCurrentJobFitCheckId:function(e,t){e.portfolio.currentJobFitCheckId=t,e.userPortfolios.filter(function(t){return t._id===e.portfolio._id})[0].currentJobFitCheckId=t},setBlockedEditor:function(e,t){e.blockedEditor=t},setSubscriptionExpiredModalShown:function(e){e.subscriptionExpiredModalShown=!0},setTextEditorActive:function(e,t){e.textEditorActive=t},setGlobalCTSStatus:function(e,t){e.isGlobalCtsOff=t},decreaseFeatureToken:function(e,t){var n=e.user.featureTokens[t];e.user.featureTokens[t]=Math.max(0,n-1)},UPDATE_DESIGN_SETTINGS:function(e,t){var n=t.newValue,r=t.keyToItem,o=t.keyToDesignItem,i=function(e,t){return t.split(".").reduce(function(e,t){return null==e?void 0:e[t]},e)}(e,r);"object"===it(i.designSettings[o])&&null!==i.designSettings[o]?i.designSettings[o]=ht(ht({},i.designSettings[o]),n):i.designSettings[o]=n},INITIALIZE_CASE_STUDY_COLORS_FROM_PORTFOLIO:function(e){var t=e.portfolio.designSettings,n=e.project.designSettings;["colors","colorStyles","colorPalette","colorPaletteId"].forEach(function(e){n[e]=vt(t[e])}),n.globalColorStyles=!1},INITIALIZE_CASE_STUDY_FONTS_FROM_PORTFOLIO:function(e){var t=e.portfolio.designSettings,n=e.project.designSettings;["fontStyles","fontPairId"].forEach(function(e){n[e]=vt(t[e])}),n.globalFontStyles=!1},UPDATE_CTA_STYLE:function(e,t){var n=t.newValue,r=t.editedCtaType,o=t.keyToItem,i=t.keyToObject;e[o][i][r]=n},UPDATE_LABEL_STYLE:function(e,t){var n=t.newValue,r=t.keyToItem,o=t.keyToObject;e[r][o].labelStyle=n},setTriggerAnimation:function(e,t){e.triggerAnimation=t},setFontPairs:function(e,t){e.fontPairs=t},setCursorPreviewMode:function(e,t){e.cursorPreviewMode=t}}),getters:ht(ht(ht(ht(ht(ht({},We),{project:function(e){return e.project},selectedProject:function(e){return e.selectedProject}}),Ge),{sidebarState:function(e){return e.sidePanelSettings}}),{portfolioTemplateData:function(e){var t=e.portfolio.templateSettings.templateId?e.portfolio.templateSettings.templateId:e.portfolio.templateSettings.theme.replace("profile_","").replace("_old","");return e.portfolioTemplates.find(function(e){return e.templateId===t})},getTemplateForPortfolio:function(e){return function(t){var n=t.templateSettings.templateId?t.templateSettings.templateId:t.templateSettings.theme.replace("profile_","").replace("_old","");return e.portfolioTemplates.find(function(e){return e.templateId===n})}},getDefaultTemplateStyle:function(e){return function(t){return e.portfolioTemplateStyles.find(function(e){return e.templateId===t})}}}),{},{isEditorBlocked:function(){return!!gt.state.blockedEditor},isTextEditorActive:function(){return gt.state.textEditorActive},countPublishedPortfolios:function(){return gt.state.userPortfolios.filter(function(e){return!(null!=e&&e.draft)}).length},countPublishedCaseStudies:function(){return gt.state.caseStudyPages.filter(function(e){return!(null!=e&&e.draft)}).length},isDefaultAccentColor:function(){if(!gt.state.project.settings||gt.state.project.settings.colors&&!gt.state.project.settings.colors.accent)return!0},userIsTrial:function(){return"Trial"===gt.state.currentSubscriptionPlan},userIsFreeOrTrial:function(){return"Free"===gt.state.currentSubscriptionPlan||"Trial"===gt.state.currentSubscriptionPlan},userIsPremium:function(){return!gt.getters.userIsFreeOrTrial&&!gt.getters.userIsCanceledPremium&&!gt.getters.userIsPastDue},userIsPastDue:function(){var e;return"Premium"===gt.state.userSettings.currentSubscriptionPlan&&"past_due"===(null===(e=gt.state.userSettings.currentSubscription)||void 0===e?void 0:e.status)},userIsCanceledPremium:function(){var e;return"Premium"===gt.state.userSettings.currentSubscriptionPlan&&"canceled"===(null===(e=gt.state.userSettings.currentSubscription)||void 0===e?void 0:e.status)},userIsVIP:function(){return"VIP"===gt.state.currentSubscriptionPlan},subscriptionBannerState:function(e){var t,n,r=null===(t=e.userSettings)||void 0===t?void 0:t.currentSubscription,o=(null===(n=e.userSettings)||void 0===n?void 0:n.currentSubscriptionPlan)||e.currentSubscriptionPlan,i=null!=r&&r.nextBillingDate?new Date(r.nextBillingDate).getTime():null,
2s=Date.now();if("Trial"===o||"trialing"===(null==r?void 0:r.status)){if(i&&i>s){var a=Math.floor((i-s)/864e5),l=Math.min(7,Math.max(1,7-a));return"Trial day ".concat(l)}return"Trial expired"}if("past_due"===(null==r?void 0:r.status)||"canceled"===(null==r?void 0:r.status))return"Subscription expired"},userHasAiToken:function(e){return function(t){return e.user.featureTokens[t]>0}},caseStudies:function(e){return e.caseStudyPages},userIsAdmin:function(e){return e.user&&(e.user.isAdmin||e.user.isTemplateCreator)},isAdminPresetEditor:function(e,t){return!!t["presetEditor/isActive"]},pageViewURL:function(e){var t=e.portfolio.ownDomainAddress&&!e.project.draft?"https://".concat(e.portfolio.ownDomainAddress):location.origin,n=o.A.currentRoute.value.params.projectShortId,r=e.portfolio.ownDomainAddress?t:"".concat(t,"/").concat(e.portfolio.shortId);return n&&(r=e.portfolio.ownDomainAddress&&!e.project.draft?"".concat(t,"/p/").concat(n):"".concat(t,"/p/").concat(e.portfolio.shortId,"/").concat(n)),r},isHomePage:function(e){return e.project&&e.project.type===c.Q8.HOME},isCaseStudy:function(e){return e.project&&e.project.type===c.Q8.CASE_STUDY},ctsIsActive:function(e){return e.sectionEditorSettings.ctsModuleSelected},designSettings:function(e,t){return t.isCaseStudy&&!t.usingGlobalColorStyles?e.project.designSettings:e.portfolio.designSettings},fontStyles:function(e,t){return t.isCaseStudy&&!t.usingGlobalFontStyles?e.project.designSettings.fontStyles:e.portfolio.designSettings.fontStyles},colorStyles:function(e,t){return t.isCaseStudy&&!t.usingGlobalColorStyles?e.project.designSettings.colorStyles:e.portfolio.designSettings.colorStyles},colorPalette:function(e,t){var n,r=t.colorStyles;return(null===(n=t.designSettings.colorPalette)||void 0===n||null===(n=n.colors)||void 0===n?void 0:n.length)>0?t.designSettings.colorPalette:{colors:[r.heroTitle.primaryColor||r.heroTitle.color,r.heroParagraph.primaryColor||r.heroParagraph.color,r.hyperLink.primaryColor||r.hyperLink.color,r.navigation.primaryColor||r.navigation.color,r.background.primaryColor||r.background.color]}},showTrialPrompt:function(e,t){return!o.A.currentRoute.value.meta.nonEditorPage&&!e.onboardingFinished&&e.userSettings.currentSubscriptionPlan&&!t.userIsVIP&&(t.userIsTrial||!t.userIsPremium)},activeChecklistStepsStatus:function(e){var t=e.user.checklistStatus.steps,n=new Set(e.activeChecklistItems);return Object.fromEntries(Object.entries(t).filter(function(e){var t=ot(e,1)[0];return n.has(t)}))},userHasUpcomingDiscount:function(e){var t,n=null===(t=e.userSettings)||void 0===t||null===(t=t.currentSubscription)||void 0===t?void 0:t.upComingInvoice;return!!(null!=n&&n.amountOff||null!=n&&n.percentOff)}}),actions:ht(ht({},tt),{},{addSection:function(e,t){return ct(st().m(function n(){return st().w(function(n){for(;;)switch(n.n){case 0:if(!e.getters.isAdminPresetEditor){n.n=1;break}return n.a(2,e.dispatch("presetEditor/addSectionLocal",t));case 1:return n.a(2,tt.addSection(e,t))}},n)}))()},updateSection:function(e,t){return ct(st().m(function n(){return st().w(function(n){for(;;)switch(n.n){case 0:if(!e.getters.isAdminPresetEditor){n.n=1;break}return n.a(2,e.dispatch("presetEditor/updateSectionLocal",t));case 1:return n.a(2,tt.updateSection(e,t))}},n)}))()},updateSections:function(e,t){return ct(st().m(function n(){return st().w(function(n){for(;;)switch(n.n){case 0:if(!e.getters.isAdminPresetEditor){n.n=1;break}return n.a(2,e.dispatch("presetEditor/updateSectionsLocal",t));case 1:return n.a(2,tt.updateSections(e,t))}},n)}))()},archiveSection:function(e,t){return ct(st().m(function n(){return st().w(function(n){for(;;)switch(n.n){case 0:if(!e.getters.isAdminPresetEditor){n.n=1;break}return n.a(2,e.dispatch("presetEditor/archiveSectionLocal",t));case 1:return n.a(2,tt.archiveSection(e,t))}},n)}))()},reorderSections:function(e,t){return ct(st().m(function n(){return st().w(function(n){for(;;)switch(n.n){case 0:if(!e.getters.isAdminPresetEditor){n.n=1;break}return n.a(2,e.dispatch("presetEditor/reorderSectionsLocal",t));case 1:return n.a(2,tt.reorderSections(e,t))}},n)}))()},duplicateSection:function(e,t){return ct(st().m(function n(){return st().w(function(n){for(;;)switch(n.n){case 0:if(!e.getters.isAdminPresetEditor){n.n=1;break}return n.a(2,e.dispatch("presetEditor/duplicateSectionLocal",t));case 1:return n.a(2,tt.duplicateSection(e,t))}},n)}))()},saveSectionMediaChange:function(e){var t=arguments;return ct(st().m(function n(){var r,o,i,s,a,l;return st().w(function(n){for(;;)switch(n.n){case 0:if(o=(r=t.length>1&&void 0!==t[1]?t[1]:{}).section,i=void 0===o?null:o,s=r.modal,a=void 0===s?"keepModalOpen":s,l=i||e.state.selectedSection){n.n=1;break}return n.a(2);case 1:return n.a(2,e.dispatch("updateSection",{section:l,modal:a}))}},n)}))()},uploadCroppedMedia:function(e){var t=arguments;return ct(st().m(function n(){var r,o,i,s,a,l,c,u,d,p,f,h,m,v;return st().w(function(n){for(;;)switch(n.n){case 0:if(s=(i=t.length>1&&void 0!==t[1]?t[1]:{}).blob,a=i.extension,l=i.imageToDelete,c=void 0===l?null:l,u=i.forcePortfolio,d=void 0!==u&&u,s&&a){n.n=1;break}throw new Error("uploadCroppedMedia: blob and extension are required");case 1:if(p=null===(r=e.state.user)||void 0===r?void 0:r._id,!(f=e.getters.isAdminPresetEditor)){n.n=2;break}return n.a(2,Ee.A.uploadSectionPresetImage(p,s,a,c));case 2:if(!(d||f)){n.n=4;break}if(m=null===(h=e.state.portfolio)||void 0===h?void 0:h._id,p&&m){n.n=3;break}throw new Error("uploadCroppedMedia: missing user/portfolio context");
2case 3:return n.a(2,Ae.A.uploadCroppedImage(p,m,s,a,c));case 4:if(v=null===(o=e.state.project)||void 0===o?void 0:o._id,p&&v){n.n=5;break}throw new Error("uploadCroppedMedia: missing user/project context");case 5:return n.a(2,Te.A.uploadCroppedImage(p,v,s,a,c))}},n)}))()},deleteMediaAsset:function(e){var t=arguments;return ct(st().m(function n(){var r,o,i,s,a,l,c,u,d,p,f,h,m,v,g,y;return st().w(function(n){for(;;)switch(n.p=n.n){case 0:if(o=(r=t.length>1&&void 0!==t[1]?t[1]:{}).imageUrl,i=void 0===o?null:o,s=r.croppedImageUrl,a=void 0===s?null:s,l=r.forcePortfolio,c=void 0!==l&&l,i||a){n.n=1;break}return n.a(2);case 1:if(u={suppressAuthStatus:!0},!(d=e.getters.isAdminPresetEditor)){n.n=6;break}return p=i||a,f=i&&a&&i!==a?a:null,n.p=2,n.n=3,Ee.A.deleteSectionPresetImage(p,f,u);case 3:n.n=5;break;case 4:n.p=4,g=n.v,console.error(g);case 5:return n.a(2);case 6:if(!(c||d)){n.n=12;break}if(m=null===(h=e.state.portfolio)||void 0===h?void 0:h._id){n.n=7;break}return n.a(2);case 7:if(v=[],i&&v.push(Ae.A.deletePortfolioImage(m,i,u)),a&&a!==i&&v.push(Ae.A.deletePortfolioImage(m,a,u)),v.length){n.n=8;break}return n.a(2);case 8:return n.p=8,n.n=9,Promise.all(v);case 9:n.n=11;break;case 10:n.p=10,y=n.v,console.error(y);case 11:return n.a(2);case 12:return n.a(2,e.dispatch("deleteProjectImage",{imageUrl:i,croppedImageUrl:a,options:u}))}},n,null,[[8,10],[2,4]])}))()},trackAndClearEvents:function(e){return ct(st().m(function t(){var n,r,o,i,s,a,l;return st().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=e.commit,r=e.state,t.p=1,0!==r.eventsToTrack.length){t.n=2;break}return t.a(2);case 2:o=rt(r.eventsToTrack),t.p=3,o.s();case 4:if((i=o.n()).done){t.n=6;break}return s=i.value,t.n=5,Ce.A.track(s.event,s.properties);case 5:t.n=4;break;case 6:t.n=8;break;case 7:t.p=7,a=t.v,o.e(a);case 8:return t.p=8,o.f(),t.f(8);case 9:n("clearEventsToTrackList"),t.n=11;break;case 10:t.p=10,l=t.v,console.error("Error while tracking events:",l);case 11:return t.a(2)}},t,null,[[3,7,8,9],[1,10]])}))()},showChatBubble:function(){var e=o.A.currentRoute.value.fullPath;!window.fwSettings||gt.state.onboardingFinished||e.includes("/home/onboarding")||setTimeout(function(){window.FreshworksWidget("show","launcher")},5e3)},updatePortfolio:function(e,t){return ct(st().m(function n(){var r,o,i,a,l,c,u,d,p,f,h,m;return st().w(function(n){for(;;)switch(n.p=n.n){case 0:return r=e.commit,o=e.state,i=t.field,a=t.skipStoreUpdate,l=void 0!==a&&a,c=t.keepModalOpen,u=void 0!==c&&c,i&&s.A.trackEditEvent(i),r("updateSavingState"),n.p=1,n.n=2,Ae.A.editPortfolio(o.portfolio);case 2:d=n.v,l||(r("setPortfolio",d.data),r("setSelectedPortfolio",d.data),r("updatePortfolioInUserPortfolios",d.data)),n.n=4;break;case 3:n.p=3,m=n.v,console.error(m),r("setActiveModal",null),h=null===(p=m.response)||void 0===p?void 0:p.data,405===(null===(f=m.response)||void 0===f?void 0:f.status)&&1007===(null==h?void 0:h.code)&&(r("setCurrentPlan",h.currentSubscriptionPlan),r("showAlertMessage",{message:"Upgrade to Full access to use this feature.",type:"alert",interval:10}));case 4:return n.p=4,u||r("setActiveModal",null),r("updateSavingState",!1),r("updateSidePanel",{allowSave:!1}),n.f(4);case 5:return n.a(2)}},n,null,[[1,3,4,5]])}))()}})});gt.subscribe(function(e,t){if("setBlockedEditor"===e.type&&e.payload){var n,r;t.showSidePanel=!1,gt.commit("setPortfoliosToDraft");var i=o.A.currentRoute.value.fullPath;["/home/prices","/home/settings","/home/payment"].some(function(e){return i.includes(e)})||t.subscriptionExpiredModalShown||null!==(n=t.user)&&void 0!==n&&n.isAdmin||null!==(r=t.user)&&void 0!==r&&r.isTemplateCreator||gt.commit("setActiveModal","SubscriptionExpiredModal")}})},45(e,t,n){"use strict";n.d(t,{A:()=>K,a:()=>q});var r=n(91915),o=n(88248),i=n(46641),s=n(95818),a=n(97259),l=n(15907),c=n(97073),u=n(33253),d=n(33501),p=n(35166),f=n(74256),h=n(33639),m=n(65498),v=n(36596);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return b(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(b(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,b(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,b(d,"constructor",c),b(c,"constructor",l),l.displayName="GeneratorFunction",b(c,o,"GeneratorFunction"),b(d),b(d,o,"Generator"),b(d,r,function(){return this}),b(d,"toString",function(){return"[object Generator]"}),(y=function(){return{w:i,m:p}})()}function b(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}b=function(e,t,n,r){function i(t,n){b(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},b(e,t,n,r)}function w(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function S(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){w(i,r,o,s,a,"next",e)}function a(e){w(i,r,o,s,a,"throw",e)}s(void 0)})}}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||A(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=r.M.state,P=r.M.getters,I=null;function L(e){var t;if(!Array.isArray(e))return e;var n=null===(t=x.user)||void 0===t?void 0:t.defaultCollectionId,r=e.findIndex(function(e){return e._id===n});if(r<=0)return e;var o=T(e),i=C(o.splice(r,1),1)[0];return o.unshift(i),o}function j(e){if(x.user){var t=Array.isArray(x.user.seenSystemNotifications)?x.user.seenSystemNotifications:[];x.user=_(_({},x.user),{},{seenSystemNotifications:T(new Set([].concat(T(t),T(e.filter(Boolean)))))})}}function M(e){var t,n=a.A.currentRoute.value.params;return e||n.portfolioId||(null===(t=x.portfolio)||void 0===t?void 0:t.shortId)||x.user.defaultCollectionId}function D(e){return!!a.A.currentRoute.value.params.portfolioId&&e===a.A.currentRoute.value.params.portfolioId}function R(){var e;"/home/onboarding"===a.A.currentRoute.value.fullPath||"/home/portfolios"===a.A.currentRoute.value.fullPath||a.A.currentRoute.value.fullPath.includes("/home/portfolios/create-new-portfolio")||"/home/notifications"===a.A.currentRoute.value.fullPath||"/home/prices"===a.A.currentRoute.value.fullPath||a.A.currentRoute.value.fullPath.includes("/home/settings")||a.A.currentRoute.value.fullPath.includes("home/payment")||a.A.currentRoute.value.fullPath.includes("home/domain")||a.A.currentRoute.value.fullPath.includes("home/url")||a.A.currentRoute.value.fullPath.includes("/reviews")||a.A.currentRoute.value.params.portfolioId||"view"===(null===(e=a.A.currentRoute.value)||void 0===e||null===(e=e.meta)||void 0===e?void 0:e.type)||(x.portfolioPages&&r.M.commit("setPageToEdit","home"),x.portfolio&&a.A.push("/home/portfolios/".concat(x.portfolio.shortId)))}function N(){var e;if(null!==(e=x.portfolio)&&void 0!==e&&null!==(e=e.designSettings)&&void 0!==e&&e.fontStyles)try{var t=Object.entries(x.portfolio.designSettings.fontStyles).map(function(e){return e[1]});d.A.downloadSingleFonts(Object.entries(t).map(function(e){return e[1]}
2)),(0,u.wi)(t).catch(function(e){console.log("Error while loading selected portfolio fonts",e)})}catch(e){console.log("Error while preparing selected portfolio fonts",e)}}function F(){var e,t,n=a.A.currentRoute.value.params.projectShortId,o=a.A.currentRoute.value.fullPath;if(n){var i,s,l=null===(i=x.portfolioPages)||void 0===i?void 0:i.find(function(e){return e.shortId===n}),c=null===(s=x.caseStudyPages)||void 0===s?void 0:s.find(function(e){return e.shortId===n});l?r.M.commit("setPageToEdit",n):c?r.M.commit("setCaseStudyToEdit",n):(r.M.commit("setPageToEdit","home"),a.A.push("/home/portfolios/".concat(x.portfolio.shortId)))}else o.includes("/about")&&null!==(e=x.portfolioPages)&&void 0!==e&&e.some(function(e){return"about"===e.shortId})?r.M.commit("setPageToEdit","about"):o.includes("/contact")&&null!==(t=x.portfolioPages)&&void 0!==t&&t.some(function(e){return"contact"===e.shortId})?r.M.commit("setPageToEdit","contact"):r.M.commit("setPageToEdit","home")}var B,U,H,$,z,W,G,X,V,K={getPortfolio:(V=S(y().m(function e(t){return y().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,o.A.getPortfolio(t||x.portfolio._id).then(function(e){x.portfolio=e.data,x.selectedPortfolio=e.data}).catch(function(e){console.log(e)});case 1:return e.a(2)}},e)})),function(e){return V.apply(this,arguments)}),getUserPortfolios:(X=S(y().m(function e(){var t;return y().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,o.A.getPortfolios(x.user._id);case 1:return t=e.v,x.userPortfolios=L(t.data),e.a(2,x.userPortfolios)}},e)})),function(){return X.apply(this,arguments)}),loadPortfolioForSwitch:(G=S(y().m(function e(t){var n,o,i,a,l;return y().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,K.getUserPortfolios();case 1:if(null!=(n=e.v.find(function(e){return e.shortId===t}))&&n._id){e.n=2;break}throw new Error("The selected portfolio could not be found");case 2:return e.n=3,Promise.all([s.A.getPortfolioPages(n._id),s.A.getCaseStudyPages(n._id)]);case 3:return o=e.v,i=C(o,2),a=i[0],l=i[1],x.portfolio=n,x.selectedPortfolio=n,x.portfolioPages=a.data.sort(function(e,t){return e.order-t.order}),x.caseStudyPages=l.data.sort(function(e,t){return e.order-t.order}),x.selectedProject=null,x.selectedSection=null,x.activeModal=null,x.activeModalData=null,x.showSidePanel=!1,r.M.commit("setPageToEdit","home"),x.portfolioSetupComplete=!0,N(),e.a(2,n)}},e)})),function(e){return G.apply(this,arguments)}),getPortfolios:(W=S(y().m(function e(t){var n,r,i;return y().w(function(e){for(;;)switch(e.n){case 0:if(null!==(n=x.user)&&void 0!==n&&n._id){e.n=1;break}return e.n=1,p.z.ensureUser();case 1:if(null!==(r=x.user)&&void 0!==r&&r._id){e.n=2;break}throw new Error("Cannot load portfolios before the current user is available");case 2:return i=M(t),e.n=3,o.A.getPortfolios(x.user._id).then(function(){var e=S(y().m(function e(t){var n;return y().w(function(e){for(;;)switch(e.n){case 0:if(t.data.length){e.n=2;break}return console.log("No portfolios found"),x.showOnBoardingScreen=!0,e.n=1,a.A.push("/home/onboarding");case 1:e.n=6;break;case 2:return x.userPortfolios=L(t.data),x.portfolio=x.userPortfolios.find(function(e){return e.shortId===i||e._id===i})||x.userPortfolios[0],x.selectedPortfolio=x.portfolio,e.n=3,K.getPortfolioPages(x.portfolio._id);case 3:return e.n=4,K.getCaseStudyPages(x.portfolio._id);case 4:return n=Object.entries(x.portfolio.designSettings.fontStyles).map(function(e){return e[1]}),d.A.downloadSingleFonts(Object.entries(n).map(function(e){return e[1]})),e.n=5,(0,u.wi)(n);case 5:x.portfolioSetupComplete=!0;case 6:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){console.log("Error while getting portfolios",e),a.A.push("/home"),p.z.refreshData()}).finally(function(){R()});case 3:return e.a(2)}},e)})),function(e){return W.apply(this,arguments)}),getPortfolioForEditor:(z=S(y().m(function e(t){var n,r,i,s;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=M(t),e.p=1,n){e.n=3;break}return x.showOnBoardingScreen=!0,e.n=2,a.A.push("/home/onboarding");case 2:return e.a(2);case 3:if(!D(n)){e.n=5;break}return e.n=4,o.A.getPortfolioByShortId(n);case 4:i=e.v,e.n=7;break;case 5:return e.n=6,o.A.getPortfolio(n);case 6:i=e.v;case 7:if(r=i,x.portfolio=r.data,x.selectedPortfolio=x.portfolio,x.userPortfolios=[x.portfolio],x.portfolio){e.n=9;break}return e.n=8,a.A.push("/home");case 8:return e.a(2);case 9:return e.n=10,Promise.all([K.getPortfolioPages(x.portfolio._id),K.getCaseStudyPages(x.portfolio._id)]);case 10:F(),x.portfolioSetupComplete=!0,N(),e.n=12;break;case 11:e.p=11,s=e.v,console.log("Error while getting editor portfolios",s),a.A.push("/home"),p.z.refreshData();case 12:return e.p=12,R(),e.f(12);case 13:return e.a(2)}},e,null,[[1,11,12,13]])})),function(e){return z.apply(this,arguments)}),getPortfolioPages:($=S(y().m(function e(t,n){var o,i;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t&&!x.portfolio){e.n=5;break}return e.p=1,e.n=2,s.A.getPortfolioPages(t||x.portfolio._id);case 2:o=e.v,x.portfolioPages=o.data.sort(function(e,t){return e.order-t.order}),e.n=4;break;case 3:e.p=3,i=e.v,console.log("Error while getting portfolio pages.",i);case 4:return e.p=4,n&&(r.M.commit("setPageToEdit","home"),v.A.emit("update-section-level-custom-colors")),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])})),function(e,t){return $.apply(this,arguments)}),getCaseStudyPages:(H=S(y().m(function e(t){var n;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t&&!x.portfolio){e.n=4;break}return e.p=1,e.n=2,s.A.getCaseStudyPages(t||x.portfolio._id);case 2:n=e.v,x.caseStudyPages=n.data.sort(function(e,t){return e.order-t.order}
2),x.project||(x.project=x.caseStudyPages.filter(function(e){return"home"===e.type})),e.n=4;break;case 3:e.p=3,e.v,console.log("Error while getting case studies");case 4:return e.a(2)}},e,null,[[1,3]])})),function(e){return H.apply(this,arguments)}),getAllCaseStudyPages:(U=S(y().m(function e(t){var n;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t&&!x.user){e.n=4;break}return e.p=1,e.n=2,s.A.getAllProject(t||x.user._id,!0);case 2:n=e.v,x.allCaseStudyPages=n.data.filter(function(e){return!e.deletedAt&&"caseStudy"===e.type}),e.n=4;break;case 3:e.p=3,e.v,console.log("Error while getting All case studies");case 4:return e.a(2)}},e,null,[[1,3]])})),function(e){return U.apply(this,arguments)}),createPage:function(e,t,n){x.savingProject=!0,"file"===e&&x.user.checklistStatus&&!x.user.checklistStatus.steps.resume&&r.M.commit("updateChecklistItem",f.QT.RESUME);var o=x.portfolio.designSettings;s.A.createProject(x.user._id,x.portfolio._id,e,x.portfolioPages.filter(function(e){return!e.deletedAt}).length,t,n,null,!1,o,x.portfolio.templateSettings.defaultCaseStudyValues,x.portfolio.templateSettings.defaultThumbnailData).then(function(t){"about"!==e&&"contact"!==e&&"blank"!==e||(x.project=t.data),r.M.commit("addNewPageToList",t.data)}).catch(function(e){K.handleCommonApiError(e)}).finally(function(){"blank"===e&&K.trackEditEvent("Create Blank page"),x.savingProject=!1,"about"!==e&&"contact"!==e&&"blank"!==e||a.A.push("/home/portfolios/".concat(x.portfolio.shortId,"/p/").concat(x.project.shortId,"/pages"))})},getPageByShortId:function(e){return S(y().m(function t(){return y().w(function(t){for(;;)switch(t.n){case 0:s.A.getProjectByShortId(x.portfolio.shortId,e).then(function(e){x.project=e.data,r.M.commit("setAllowedSections",x.project.type)}).catch(function(e){console.log(e),r.M.commit("setPageToEdit","home"),a.A.push("/home/portfolios/".concat(x.portfolio.shortId))}).finally(function(){x.project&&(r.M.commit("updateExistingStatSectionStyles"),r.M.commit("updateExistingHeaderSectionStyle"),r.M.commit("updateExistingHeaderSectionStyle"))});case 1:return t.a(2)}},t)}))()},updateProjectByShortId:function(e,t,n){s.A.updateProjectByShortId(x.portfolio.shortId,e,t,n).then(function(t){x.portfolioPages[x.portfolioPages.findIndex(function(t){return t.shortId===e})]=t.data}).catch(function(e){console.log(e)})},deletePage:function(e){x.portfolioPages.find(function(t){return t._id===e}).deletedAt=1,K.archivePage(e),K.reorderPages(!0)},reorderPages:function(e){var t=x.portfolioPages.filter(function(e){return!e.deletedAt});
2x.portfolioPages.forEach(function(e,n){e.deletedAt||(e.order=n),e.deletedAt&&(e.order=t.length+n)}),x.portfolioPages.sort(function(e,t){return e.order-t.order}),e&&K.updateNavItemsOrder()},archivePage:function(e){s.A.archiveProject(e).then(function(t){x.portfolioPages.find(function(t){return t._id===e}).deletedAt=t.data.deletedAt?t.data.deletedAt:null,x.portfolioPages.find(function(t){return t._id===e}).draft=!0}).catch(function(e){console.log(e)}).finally(function(){x.selectedProject=null,a.A.currentRoute.value.fullPath.indexOf("/settings/archive")>-1||(x.portfolioPages.find(function(t){return t._id===e&&!t.deletedAt&&("about"===t.type||"contact"===t.type||"blank"===t.type)})?(x.project=x.portfolioPages.find(function(t){return t._id===e}),a.A.push("/home/portfolios/".concat(x.portfolio.shortId,"/p/").concat(x.project.shortId,"/pages"))):x.portfolioPages.find(function(t){return t._id===e&&!t.deletedAt&&"file"===t.type})&&a.A.back())})},updatePageStyle:function(){x.savingProject=!0,o.A.editPortfolio(x.portfolio).then(function(e){x.portfolio=e.data,x.selectedPortfolio=e.data}).catch(function(e){console.log(e)}).finally(function(){x.savingProject=!1})},updateNavButtonStyle:function(e){return S(y().m(function t(){return y().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.A.updateNavButtonStyle(x.user._id,x.portfolio._id,e);case 1:return t.a(2,t.v)}},t)}))()},updatePortfolio:function(e,t,n){e&&K.trackEditEvent(e),x.savingProject=!0,o.A.editPortfolio(x.portfolio).then(function(e){t||(x.portfolio=e.data,x.selectedPortfolio=e.data,r.M.commit("updatePortfolioInUserPortfolios",e.data))}).catch(function(e){console.log(e),x.activeModal=null;var t=e.response.data;405===e.response.status&&1007===t.code&&(r.M.commit("setCurrentPlan",t.currentSubscriptionPlan),r.M.commit("showAlertMessage",{message:"Upgrade to Full access to use this feature.",type:"alert",interval:10}))}).finally(function(){n||(x.activeModal=null),x.savingProject=!1,r.M.commit("updateSidePanel",{allowSave:!1})})},updatePortfolioLogo:function(e){return x.savingProject=!0,o.A.updatePortfolioLogo(e,x.portfolio._id).then(function(e){null!=e&&e.data&&r.M.commit("updatePortfolioLogo",e.data)}).catch(function(e){var t,n;console.log(e),x.activeModal=null;var o=null===(t=e.response)||void 0===t?void 0:t.data;405===(null===(n=e.response)||void 0===n?void 0:n.status)&&1007===(null==o?void 0:o.code)&&(r.M.commit("setCurrentPlan",o.currentSubscriptionPlan),r.M.commit("showAlertMessage",{message:"Upgrade to Full access to use this feature.",type:"alert",interval:10}))}).finally(function(){x.savingProject=!1})},updatePortfolioNavigation:function(e){return x.savingProject=!0,o.A.updatePortfolioNavigation(e,x.portfolio._id).then(function(e){null!=e&&e.data&&r.M.commit("updatePortfolioNavigation",e.data)}).catch(function(e){console.log(e),x.activeModal=null}).finally(function(){x.savingProject=!1})},updatePortfolioHero:function(e){return x.savingProject=!0,o.A.updatePortfolioHero(e,x.portfolio._id).then(function(e){null!=e&&e.data&&r.M.commit("updatePortfolioHeroSection",e.data)}).catch(function(e){console.log(e),x.activeModal=null}).finally(function(){x.savingProject=!1})},updatePortfolioDesignSettings:function(e){return x.savingProject=!0,o.A.updatePortfolioDesignSettings(e,x.portfolio._id).then(function(e){null!=e&&e.data&&r.M.commit("updatePortfolioDesignSettings",e.data)}).catch(function(e){console.log(e),x.activeModal=null}).finally(function(){x.savingProject=!1})},updatePortfolioCursorType:function(e){x.savingProject=!0,o.A.updatePortfolioCursorType(e,x.portfolio._id).then(function(e){null!=e&&e.data&&(x.portfolio.templateSettings.cursorType=e.data)}).catch(function(e){console.log(e)}).finally(function(){x.savingProject=!1,r.M.commit("updateSidePanel",{allowSave:!1})})},setPortfolioGlobalSpacing:function(){x.savingProject=!0,o.A.setPortfolioGlobalSpacing(x.project).then(function(e){x.project=e.data.find(function(e){return e._id===x.project._id}),x.portfolioPages=e.data}).catch(function(e){console.log(e)}).finally(function(){x.savingProject=!1})},updateNavItemsOrder:function(){var e=[];
2x.portfolioPages.forEach(function(t,n){return e.push({projectId:t._id,order:t.order})}),x.savingProject=!0,s.A.updatePortfolioPagesOrder(x.portfolio._id,e).then(function(e){}).catch(function(e){return console.log(e)}).finally(function(){K.updatePortfolio(),x.savingProject=!1,r.M.commit("updateSidePanel",{allowSave:!1})})},updateCaseStudiesOrder:function(){x.savingProject=!0,s.A.updateCaseStudyPagesOrder(x.portfolio._id,x.caseStudyPages).then(function(e){K.getCaseStudyPages()}).catch(function(e){return console.log(e)}).finally(function(){x.savingProject=!1})},setDefaultPagesForPortfolio:function(e){x.savingProject=!0,o.A.addDefaultPortfolioPages(e).then(function(e){x.portfolioPages=e.data.sort(function(e,t){return e.order-t.order})}).catch(function(e){console.log(e)})},getPortfolioTemplateSettings:function(){x.savingProject=!0,o.A.getPortfolioTemplateSettings(x.portfolio._id).then(function(e){x.portfolio.templateSettings=e.data}).catch(function(e){console.log(e)}).finally(function(){x.savingProject=!1})},getPortfolioTemplatePreview:function(){o.A.getPortfolioTemplatePreview(x.portfolio.shortId).then(function(e){x.portfolio.templatePreview=e.data}).catch(function(e){console.log("There was an error fetching current portfolio preview: ".concat(e))})},getTemplatePreviews:function(){o.A.getTemplatePreviews().then(function(e){x.templatePreviews=e.data}).catch(function(e){console.log("There was an error fetching template previews: ".concat(e))})},prefetchTemplatePreviews:function(){return S(y().m(function e(){var t;return y().w(function(e){for(;;)switch(e.n){case 0:if(null===(t=x.templatePreviews)||void 0===t||!t.length){e.n=1;break}return e.a(2,x.templatePreviews);case 1:return I||(I=o.A.getTemplatePreviews().then(function(e){return x.templatePreviews=e.data,e.data}).catch(function(e){return console.log("There was an error prefetching template previews: ".concat(e)),[]}).finally(function(){I=null})),e.a(2,I)}},e)}))()},getPortfolioTemplateAndDesignSettings:function(){x.savingProject=!0,o.A.getPortfolio(x.portfolio._id).then(function(e){console.log(e.data),r.M.commit("updatePortfolioTemplateSettings",e.data.templateSettings),r.M.commit("updatePortfolioDesignSettings",e.data.designSettings),x.portfolio.portfolioHero=e.data.portfolioHero,x.portfolio.portfolioNavigation=e.data.portfolioNavigation,x.portfolio.logo=e.data.logo}).catch(function(e){console.log(e)}).finally(function(){x.savingProject=!1})},getPortfolioSettings:function(){x.savingProject=!0,o.A.getPortfolioSettings(x.portfolio._id).then(function(e){x.portfolio.settings=e.data}).catch(function(e){console.log(e)}).finally(function(){x.savingProject=!1})},switchPortfolioDraft:function(e){return K.trackEditEvent("".concat(e.draft?"Publish":"Unpublish"," portfolio")),o.A.setPortfolioDraft(e._id,!e.draft).then(function(t){return!0===t.data&&K.getPortfolioPages(),r.M.commit("showAlertMessage",{type:"success",message:e.draft?'Your portfolio is live on: <span class="bold">'.concat(r.M.getters.pageViewURL.replace(/^https?:\/\//,""),"</span>"):"Your portfolio is set to draft",interval:5}),x.portfolio.draft=!x.portfolio.draft,!0}).catch(function(e){if(x.activeModal=null,e.response&&e.response.data){var t=e.response.data;405!==e.response.status||1001!==t.code&&1002!==t.code||(x.currentSubscriptionPlan=t.currentSubscriptionPlan,r.M.commit("showAlertMessage",{message:"Publishing failed. Please try again!",interval:5}))}return!1}).finally(function(){return x.selectedPortfolio=null})},switchProjectDraft:function(e){K.trackEditEvent("".concat(e.draft?"Publish":"Unpublish"," project")),s.A.setProjectDraft(e._id,!e.draft).then(function(t){var n;!0===t.data&&K.getCaseStudyPages(),r.M.commit("showAlertMessage",{message:e.draft?null!==(n=x.portfolio)&&void 0!==n&&n.draft?"Your case study will be visible on your live site once you publish your portfolio.":"Your case study is visible on your live site.":"Your case study is hidden from your live site. Only you can see it in the editor.",interval:5,type:"success"}),P.isCaseStudy&&(x.project.draft=!x.project.draft,console.log("store",x.project))}).catch(function(e){if(x.activeModal=null,e.response&&e.response.data){var t=e.response.data;405!==e.response.status||1001!==t.code&&1002!==t.code||(x.currentSubscriptionPlan=t.currentSubscriptionPlan,r.M.commit("showAlertMessage",{message:"Action failed. Please try again!",type:"alert",interval:5}))}}).finally(function(){return x.selectedProject=null})},deletePortfolioImage:function(e,t){x.savingProject=!0,o.A.deletePortfolioImage(x.portfolio._id,e).then(function(e){}).catch(function(e){}).finally(function(){x.savingProject=!1,t&&(x.activeModal=null)})},updatePortfolioLegacyLogo:function(e){x.savingProject=!0,o.A.updatePortfolioLegacyLogo(x.portfolio.templateSettings.logo,x.portfolio._id).then(function(t){e&&K.trackEditEvent(e),x.portfolio.templateSettings.logo=t.data.templateSettings.logo}
2).catch(function(e){405===e.response.status&&(x.currentSubscriptionPlan=e.response.data.currentSubscriptionPlan,r.M.commit("showAlertMessage",{message:"Upgrade to Full access to use this feature.",type:"alert",interval:10}))}).finally(function(){x.savingProject=!1,r.M.commit("navigateBetweenSidePanels",{mainPanel:f.vs.ROOT})})},getLatestNotifications:(B=S(y().m(function e(){return y().w(function(e){for(;;)switch(e.n){case 0:if(!x.user){e.n=1;break}return e.n=1,i.A.getAllNotificationForUser(x.user._id).then(function(){var e=S(y().m(function e(t){var n;return y().w(function(e){for(;;)switch(e.n){case 0:if(!(n=Array.isArray(t.data)?t.data:[]).some(function(e){return"System"===e.type})){e.n=1;break}return e.n=1,p.z.getUserSeenNotifications();case 1:x.notifications=n;case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){console.log(e)});case 1:return e.a(2)}},e)})),function(){return B.apply(this,arguments)}),clickNotification:function(e,t){K.trackEditEvent("Click notification in dropdown"),t||i.A.setNotificationSeenBy(x.user._id,e.id).then(S(y().m(function t(){return y().w(function(t){for(;;)switch(t.n){case 0:if("System"!==e.type){t.n=2;break}return j([e.id]),t.n=1,p.z.getUserSeenNotifications();case 1:t.n=3;break;case 2:return t.n=3,K.getLatestNotifications();case 3:return t.a(2)}},t)}))).catch(function(e){console.log(e)}),K.openReview(e)},setAllNotificationSeen:function(){K.trackEditEvent("Click notification in dropdown"),i.A.setNotificationSeenBy(x.user._id,null).then(function(){var e=S(y().m(function e(t){var n,r;return y().w(function(e){for(;;)switch(e.n){case 0:if(n=Array.isArray(t.data)?t.data:[],!(r=n.filter(function(e){return"System"===e.type}).map(function(e){return e.id})).length){e.n=2;break}return j(r),x.notifications=n,e.n=1,p.z.getUserSeenNotifications();case 1:e.n=3;break;case 2:x.notifications=n;case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){console.log(e)})},openReview:function(e){return S(y().m(function t(){return y().w(function(t){for(;;)switch(t.n){case 0:if(!e.navigation){t.n=14;break}if("Upgrade"!==e.navigation){t.n=4;break}if(h.A.track("UPGRADE_CTA_CLICKED",_(_({},h.A.getUrls()),{},{event_group:h.A.MixpanelEventGroups.USER_LIFECYCLE,source:"Notification",context:"Notification",to:"Payment"})),"Trial"!==x.currentSubscriptionPlan){t.n=2;break}return t.n=1,a.A.push({path:"/home/payment",state:{subscriptionData:{billingCycle:"monthly"}}});case 1:t.n=3;break;case 2:return t.n=3,a.A.push({path:"/home/prices"});case 3:t.n=14;break;case 4:if("Account"!==e.navigation){t.n=5;break}window.location.href="/home/settings/account-settings",t.n=14;break;case 5:if("Review"!==e.navigation){t.n=7;break}return t.n=6,K.handleReviewRedirect(e);case 6:t.n=14;break;case 7:if("Animations"!==e.navigation){t.n=9;break}return t.n=8,a.A.push({path:"/home/portfolios/".concat(x.portfolio.shortId,"/style/animation-settings")});case 8:t.n=14;break;case 9:if("Pricing"!==e.navigation){t.n=11;break}return t.n=10,a.A.push({path:"/home/prices"});case 10:t.n=14;break;case 11:if("NotificationsPage"!==e.navigation){t.n=13;break}return t.n=12,a.A.push({path:"/home/notifications"});case 12:t.n=14;break;case 13:window.location.href="/home/notifications";case 14:return t.a(2)}},t)}))()},handleReviewRedirect:function(e){return S(y().m(function t(){var n,r,o;return y().w(function(t){for(;;)switch(t.n){case 0:"ReviewSubmitted"===e.additionalInfo.type?(n=window.location.origin+"/myreviews/"+e.additionalInfo.shortId+"?reviewer="+e.additionalInfo.fromUserId,window.open(n,"_blank").focus()):"FollowupSentToOwner"===e.additionalInfo.type?(r=window.location.origin+"/myreviews/"+e.additionalInfo.shortId+"?reviewer="+e.additionalInfo.fromUserId+"&followup=true",window.open(r,"_blank").focus()):"FollowupSentToReviewer"===e.additionalInfo.type&&(o=window.location.origin+"/review/"+e.additionalInfo.shortId+"?followup=true",window.open(o,"_blank").focus());case 1:return t.a(2)}},t)}))()},handleCommonApiError:function(e){e.response&&405===e.response.status&&(x.currentSubscriptionPlan=e.response.data.currentSubscriptionPlan,r.M.commit("showAlertMessage",{message:"Upgrade to Full access to use this feature.",type:"alert",interval:10}))},trackPageView:function(e,t){(0,c.JR)({page_path:e,page_title:t,page_location:location.href})},trackPaywallEvent:function(e){try{(0,c.f0)("Paywall appeared",{location:e,event_label:"User: ".concat(x.user._id,", Portfolio: ").concat(x.portfolio?x.portfolio._id:"none")})}catch(e){console.log("Error while sending GEVENT: "+e)}},trackEditEvent:function(e,t){if(!r.M.getters["presetEditor/isActive"]){var n=x.sectionEditorSettings.pageToEdit?"".concat(x.sectionEditorSettings.pageToEdit.charAt(0).toUpperCase()+x.sectionEditorSettings.pageToEdit.slice(1)," page"):"Profile";(0,c.f0)(e,{event_category:(x.project&&x.project.type)!==f.Q8.CASE_STUDY?"".concat(n," editor"):"Project editor",event_label:t?"User: ".concat(x.user._id,", Portfolio: ").concat(x.portfolio?x.portfolio._id:"none",", ").concat(t):"User: ".concat(x.user._id,", Portfolio: ").concat(x.portfolio?x.portfolio._id:"none")}),(0,c.f0)("editor_action",{event_source:(x.project&&x.project.type)!==f.Q8.CASE_STUDY?"".concat(n," editor"):"Project editor",event_name:e,event_params:t?"User: ".concat(x.user._id,", Portfolio: ").concat(x.portfolio?x.portfolio._id:"none",", ").concat(t):"User: ".concat(x.user._id,", Portfolio: ").concat(x.portfolio?x.portfolio._id:"none")})}},getAllAvalibleFonts:function(){return S(y().m(function e(){return y().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,l.A.getFonts("").then(function(e){x.fonts=e.data}).catch(function(e){console.log(e)});case 1:return e.a(2)}},e)}))()},getTemplates:function(){return S(y().m(function e(){var t,n,o,i,s;return y().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,m.A.get("/api/portfolio-template");case 1:return t=e.v,x.portfolioTemplates=t.data,e.n=2,m.A.get("/api/portfolio-template/styles");case 2:n=e.v,o=n.data,i=o.sort(function(e,t){return e.order-t.order}),r.M.commit("setPortfolioTemplateStyles",i),e.n=4;break;case 3:e.p=3,s=e.v,console.log("failed to get template details: ",s);case 4:return e.a(2)}},e,null,[[0,3]])}
2))()}};function q(e,t){(0,c.JR)({page_path:e,page_title:t,page_location:location.href})}},35166(e,t,n){"use strict";n.d(t,{z:()=>_});var r=n(91915),o=n(76647),i=n(46641),s=n(45),a=n(97073),l=n(33639),c=n(67208),u=n(15712);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof a?r:a,c=Object.create(l.prototype);return v(c,"_invoke",function(n,r,o){var i,a,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,a=0,l=e,p.n=n,s}};function f(n,r){for(a=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(a=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,a=0))}if(o||n>1)return s;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==s)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var s={};function a(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(v(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,v(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,v(d,"constructor",c),v(c,"constructor",l),l.displayName="GeneratorFunction",v(c,o,"GeneratorFunction"),v(d),v(d,o,"Generator"),v(d,r,function(){return this}),v(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:i,m:p}})()}function v(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}v=function(e,t,n,r){function i(t,n){v(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},v(e,t,n,r)}function g(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){g(i,r,o,s,a,"next",e)}function a(e){g(i,r,o,s,a,"throw",e)}s(void 0)})}}var b,w,S,k=null,_={createUser:(S=y(m().m(function e(){var t,n;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,o.A.createMyUser();case 1:return t=e.v,r.M.state.user=t.data.user,e.n=2,this.getUserSettings();case 2:(0,a.f0)("New user login",{event_category:"Project editor",event_label:"User: ".concat(r.M.state.user._id)}),e.n=4;break;case 3:e.p=3,(n=e.v).response&&409===n.response.status&&window.location.reload();case 4:return e.a(2)}},e,this,[[0,3]])}
2)),function(){return S.apply(this,arguments)}),getUser:(w=y(m().m(function e(){var t,n,r,i;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,o.A.getMyUser();case 1:return t=e.v,e.n=2,_.setUserFromResponse(t.data);case 2:return e.n=3,(0,u.w1)({user:t.data.user,newUserCreated:!1});case 3:e.n=8;break;case 4:if(e.p=4,i=e.v,400!==(r=null===(n=i.response)||void 0===n?void 0:n.status)&&404!==r){e.n=6;break}return e.n=5,_.ensureUser();case 5:case 8:return e.a(2);case 6:if(403!==r){e.n=7;break}return e.a(2,(0,c.ri)(window.location.origin));case 7:throw i}},e,null,[[0,4]])})),function(){return w.apply(this,arguments)}),getUserSeenNotifications:(b=y(m().m(function e(){var t,n;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,i.A.getSeenSystemNotifications(r.M.state.user._id);case 1:t=e.v,r.M.state.user=f(f({},r.M.state.user),{},{seenSystemNotifications:t.data}),e.n=3;break;case 2:e.p=2,n=e.v,console.log(n);case 3:return e.a(2)}},e,null,[[0,2]])})),function(){return b.apply(this,arguments)}),getUserSettings:function(){return y(m().m(function e(){var t,n;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,o.A.getUserSettings(r.M.state.user._id);case 1:t=e.v,_.setUserSettingsFromResponse(t.data),l.A.identify(r.M.state.user._id),l.A.setUser(r.M.state.user),e.n=3;break;case 2:e.p=2,n=e.v,console.log("failed to get user settings",n);case 3:return e.a(2)}},e,null,[[0,2]])}))()},setUserSettingsFromResponse:function(e){var t=r.M.state.userSettings.showTrialRestartedAlert||!!e.showTrialRestartedAlert;r.M.state.userSettings=f(f(f({},r.M.state.userSettings),e),{},{stripePrices:e.stripePrices||r.M.state.userSettings.stripePrices,domainSubscriptions:e.domainSubscriptions||r.M.state.userSettings.domainSubscriptions||[],invoices:e.invoices||r.M.state.userSettings.invoices||[],showTrialRestartedAlert:t}),r.M.state.currentSubscriptionPlan=e.currentSubscriptionPlan,_.updateBlockedEditorState(r.M.state.userSettings)},updateBlockedEditorState:function(e){r.M.commit("setBlockedEditor",function(e){var t=null==e?void 0:e.currentSubscription,n=null!=t&&t.nextBillingDate?new Date(t.nextBillingDate).getTime():null;return"past_due"===(null==t?void 0:t.status)||"canceled"===(null==t?void 0:t.status)||!!n&&Date.now()>n}(e))},hasPaymentPlanInfo:function(){var e,t,n=r.M.state.userSettings,o=null==n||null===(e=n.stripePrices)||void 0===e?void 0:e.monthlyPrice,i=null==n||null===(t=n.stripePrices)||void 0===t?void 0:t.yearlyPrice;return!(null==n||!n.currentSubscriptionPlan||null==o||!o.id||null==i||!i.id||Number.isNaN(Number(null==o?void 0:o.price))||Number.isNaN(Number(null==i?void 0:i.price)))},prefetchPaymentPlanInfo:function(){return y(m().m(function e(){var t;return m().w(function(e){for(;;)switch(e.n){case 0:if(!_.hasPaymentPlanInfo()&&null!==(t=r.M.state.user)&&void 0!==t&&t._id){e.n=1;break}return e.a(2);case 1:return k||(k=_.getUserSettings().finally(function(){k=null})),e.n=2,k;case 2:return e.a(2)}},e)}))()},ensureUser:function(){return y(m().m(function e(){var t;return m().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,o.A.ensureMyUser();case 1:return t=e.v,e.n=2,_.setUserFromResponse(t.data,{fetchSettingsFallback:!1});case 2:return e.n=3,(0,u.w1)({user:t.data.user,newUserCreated:t.data.newUserCreated});case 3:return e.a(2)}},e)}))()},setUserFromResponse:function(e){var t=arguments;return y(m().m(function n(){var o,i;return m().w(function(n){for(;;)switch(n.n){case 0:if(o=(t.length>1&&void 0!==t[1]?t[1]:{}).fetchSettingsFallback,i=void 0===o||o,r.M.state.user=f(f({},e.user),{},{paymentMethods:e.userPaymentMethods||[],isAdmin:e.isAdmin,isTemplateCreator:e.isTemplateCreator}),r.M.state.emergencyModeSettings=e.emergencyModeSettings,e.user.checklistStatus&&r.M.commit("updateChecklistFinished",e.user.checklistStatus.finished),!e.userSettings){n.n=1;break}_.setUserSettingsFromResponse(e.userSettings),n.n=2;break;case 1:if(!i){n.n=2;break}return n.n=2,_.getUserSettings();case 2:_.setUserDataInSupportWidget(r.M.state.user.name,r.M.state.user.email);case 3:return n.a(2)}},n)}))()},deleteUserImage:function(e){r.M.state.savingProject=!0,e&&o.A.deleteUserImage(r.M.state.user._id,e).then(function(e){}).catch(function(e){}).finally(function(){r.M.state.savingProject=!1})},updateUserInDrip:function(e){o.A.updateUserInDrip(r.M.state.user._id,e).then(function(e){}).catch(function(e){console.log(e)})},refreshData:function(){return y(m().m(function e(){return m().w(function(e){for(;;)switch(e.n){case 0:return r.M.commit("view/updateViewModeReadiness",!1),r.M.state.userDataAndPortfolioDataLoaded=!1,e.n=1,_.getUser();case 1:return e.n=2,Promise.all([s.A.getPortfolios(),s.A.getAllCaseStudyPages(),s.A.getLatestNotifications(),s.A.getAllAvalibleFonts()]);case 2:r.M.commit("view/updateViewModeReadiness",!0);case 3:return e.a(2)}},e)}))()},refreshEditorData:function(){return y(m().m(function e(){return m().w(function(e){for(;;)switch(e.n){case 0:return r.M.commit("view/updateViewModeReadiness",!1),r.M.state.userDataAndPortfolioDataLoaded=!1,e.n=1,_.ensureUser();case 1:return e.n=2,s.A.getPortfolioForEditor();case 2:r.M.commit("view/updateViewModeReadiness",!0),Promise.allSettled([_.prefetchPaymentPlanInfo(),s.A.getLatestNotifications(),s.A.getAllAvalibleFonts()]).catch(function(e){console.log("Error while loading deferred editor data",e)});case 3:return e.a(2)}},e)}))()},refreshOnboardingData:function(){return y(m().m(function e(){var t;return m().w(function(e){for(;;)switch(e.n){case 0:return r.M.commit("view/updateViewModeReadiness",!1),r.M.state.userDataAndPortfolioDataLoaded=!1,t=s.A.prefetchTemplatePreviews(),e.n=1,_.ensureUser();case 1:if(r.M.state.user.defaultCollectionId){e.n=2;break}r.M.state.showOnBoardingScreen=!0,r.M.state.userPortfolios=[],e.n=3;break;case 2:return e.n=3,s.A.getPortfolios();case 3:return e.n=4,t;case 4:r.M.commit("view/updateViewModeReadiness",!0);case 5:return e.a(2)}},e)}))()},setUserDataInSupportWidget:function(e,t){window.fwSettings&&FreshworksWidget("identify","ticketForm",{name:e,email:t})}}},88623(e,t,n){"use strict";n.d(t,{N:()=>o});var r=n(74256),o={namespaced:!0,state:function(){return{isReviewM
2ode:!1,displayUI:!0,receiver:!1,showReviewLoginModal:!1,reviewLoginModalState:r.rD.GUEST,showOverviewModal:!1,showGeneralOverview:!1,showTour:!1,showSubmitTooltip:!1,emptyReview:!1,filters:{showResolved:!1,activeFilter:r.cj.ALL_CATEGORIES},loginDetails:{email:null,name:null,jobTitle:null},review:{overview:{positiveAspects:null,negativeAspects:null},sectionReactions:[],reviewerDetails:null,submitted:null},reviews:[],reviewType:r.UT.PORTFOLIO}},mutations:{updateReview:function(e,t){t.sectionReactions.length>0||null!==t.overview.positiveAspects||null!==t.overview.negativeAspects||(e.emptyReview=!0),e.review=t}},getters:{}}},15712(e,t,n){"use strict";n.d(t,{_H:()=>h,g6:()=>p,w1:()=>m});var r=n(33639);function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function a(n,r,o,s){var a=r&&r.prototype instanceof c?r:c,u=Object.create(a.prototype);return i(u,"_invoke",function(n,r,o){var i,s,a,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,a=e,p.n=n,l}};function f(n,r){for(s=n,a=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(a=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return l;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,a=h;(t=s<2?e:a)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,a)):p.n=a:p.v=a);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?a:n.call(r,p))!==l)break}catch(t){i=e,s=1,a=t}finally{c=1}}return{value:t,done:d}}}(n,o,s),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(i(t={},r,function(){return this}),t),f=d.prototype=c.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,i(f,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,s,"GeneratorFunction"),i(f),i(f,s,"Generator"),i(f,r,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:h}})()}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,r){function s(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},i(e,t,n,r)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function a(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u="uxfolio.pendingSocialAuthTracking",d=function(){try{var e=JSON.parse(window.sessionStorage.getItem(u)||"null");return!e||Date.now()-e.createdAt>6e5?(f(),null):e}catch(e){return f(),null}};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Boolean(window.__UXFOLIO_PRERENDER__)?Promise.resolve():r.A.track(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({event_group:r.A.MixpanelEventGroups.USER_LIFECYCLE,page_path:"".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash)},t)).catch(function(){})}function f(){window.sessionStorage.removeItem(u)}function h(e,t){window.sessionStorage.setItem(u,JSON.stringify({flow:e,type:t,createdAt:Date.now()}))}function m(){return v.apply(this,arguments)}function v(){var e;return e=o().m(function e(){var t,n,i,s,a,l,c=arguments;return o().w(function(e){for(;;)switch(e.n){case 0:if(n=(t=c.length>0&&void 0!==c[0]?c[0]:{}).user,i=t.newUserCreated,s=void 0!==i&&i,(a=d())&&null!=n&&n._id&&a.type){e.n=1;break}return e.a(2);case 1:if(r.A.identify(n._id),r.A.setUser(n),l={auth_page:a.flow,type:a.type},"signup"!==a.flow||!s){e.n=3;break}return e.n=2,p("SIGN_UP_COMPLETED",l);case 2:return f(),e.a(2);case 3:return e.n=4,p("LOGGED_IN",l);case 4:f();case 5:return e.a(2)}},e)}),v=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)})},v.apply(this,arguments)}},82408(e,t,n){"use strict";n.d(t,{E:()=>s});var r=function(e){return null==e?"":function(e){return String(e).replace(/<\/?[^>]+(>|$)/g,"")}(e).replace(/\n/g,"")},o=function(e){return e?/^https?:\/\//.test(e)?e:"https://".concat(e):""},i=function(e){return null!=e&&e.ownDomainAddress?o(e.ownDomainAddress):"https://uxfol.io/".concat((null==e?void 0:e.shortId)||"")},s=function(e){var t,n,s,a,l=e.portfolio,c=e.project,u=e.user,d=e.route,p=e.useProjectSocialInfo,f=void 0!==p&&p,h=f?null==c||null===(t=c.settings)||void 0===t?void 0:t.socialInfo:null==l||null===(n=l.settings)||void 0===n?void 0:n.socialInfo,m=f?(null==c?void 0:c.name)||(null==u?void 0:u.name)||(null==l?void 0:l.name)||"":(null==l?void 0:l.name)||(null==u?void 0:u.name)||"",v=f?(null==c?void 0:c.subtitle)||(null==u?void 0:u.title)||"":(null==l?void 0:l.description)||(null==u?void 0:u.title)||(null==u?void 0:u.description)||"",g=r((null==h?void 0:h.title)||m),y=r((null==h?void 0:h.subtitle)||v),b=(null==h||null===(s=h.image)||void 0===s?void 0:s.url)||"",w=f?function(e,t,n){var r;if(null==t||!t.shortId)return i(e);if(null!=e&&e.ownDomainAddress)return"".concat(o(e.ownDomainAddress),"/p/").concat(t.shortId);var s=(null==n||null===(r=n.params)||void 0===r?void 0:r.portfolioShortId)||(null==e?void 0:e.shortId)||"";return"https://uxfol.io/p/".concat(s,"/").concat(t.shortId)}(l,c,d):"".concat(i(l)).concat(function(e,t){var n,r=(null==t?void 0:t.fullPath)||"",o="/".concat((null==t||null===(n=t.params)||void 0===n?void 0:n.shortId)||(null==e?void 0:e.shortId)||"");return r===o?"":r.startsWith("".concat(o,"/"))?r.slice(o.length):"/"===r?"":r}(l,d)),S=[{key:"description",name:"description",content:y},{key:"og:title",property:"og:title",content:g},{key:"og:description",property:"og:description",content:y},{key:"og:url",property:"og:url",content:w},{key:"twitter:title",name:"twitter:title",content:g},{key:"twitter:description",name:"twitter:description",content:y}];return null!=l&&null!==(a=l.settings)&&void 0!==a&&a.searchEngineHidden&&S.push({key:"robots",name:"robots",content:"noindex"}),b&&S.push({key:"og:image",property:"og:image",content:b},{key:"twitter:image",name:"twitter:image",content:b}),{title:g,meta:S}}},37683(e,t,n){"use strict";n.d(t,{JQ:()=>d,VW:()=>p,aV:()=>f,b5:()=>h});var r=n(97073),o=n(33639);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a({event_group:o.A.MixpanelEventGroups.USER_LIFECYCLE,page_path:"".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash)},e)}function u(){return Boolean(window.__UXFOLIO_PRERENDER__)}function d(e){var t=c(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return u()?Promise.resolve():o.A.track(e,t)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(),o=window.location.pathname+window.location.search,i=d("LANDING_PAGE_VIEWED",a({source:e,page:n},t));if(!u()){try{(0,r.JR)({page_path:o,page_title:document.title,page_location:window.location.href})}catch(e){}Array.isArray(window.dataLayer)&&window.dataLayer.push({event:"landing_page_view",page_path:o,page_title:document.title,landing_source:e,landing_page:n}),"function"==typeof window.fbq&&window.fbq("track","PageView")}return i}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.pathname;return e.startsWith("/pricing")?"Pricing":e.startsWith("/examples")?"Examples":e.startsWith("/custom-ux-portfolio")?"Custom UX Portfolio":"Home"}function h(e,t,n,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=c(a({type:e,page:t,section:n,url:i,destination:s.destination||i},s));if(u())return Promise.resolve();o.A.track("LANDING_CTA_CLICKED",a({},l)),(0,r.f0)("LANDING_CTA_CLICKED",{event_category:"Landing",event_label:"".concat(t," - ").concat(n," - ").concat(e),url:l.url,destination:l.destination})}},8311(e,t,n){"use strict";function r(e){return"number"==typeof e}function o(e){return"string"==typeof e}function i(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function a(e){return Math.abs(e)}function l(e){return Math.sign(e)}function c(e,t){return a(e-t)}function u(e){return m(e).map(Number)}function d(e){return e[p(e)]}function p(e){return Math.max(0,e.length-1)}function f(e,t){return t===p(e)}function h(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function m(e){return Object.keys(e)}function v(e,t){return[e,t].reduce((e,t)=>(m(t).forEach(n=>{const r=e[n],o=t[n],i=s(r)&&s(o);e[n]=i?v(r,o):o}),e),{})}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function y(){let e=[];const t={add:function(n,r,o,i={passive:!0}){let s;if("addEventListener"in n)n.addEventListener(r,o,i),s=()=>n.removeEventListener(r,o,i);else{const e=n;e.addListener(o),s=()=>e.removeListener(o)}return e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function b(e,t,n,r){const o=y(),i=1e3/60;let s=null,a=0,l=0;function c(e){if(!l)return;s||(s=e,n(),n());const o=e-s;for(s=e,a+=o;a>=i;)n(),a-=i;r(a/i),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),s=null,a=0,l=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(s=null,a=0)})},destroy:function(){u(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}function w(e=0,t=0){const n=a(e-t);function r(t){return t<e}function o(e){return e>t}function i(e){return r(e)||o(e)}return{length:n,max:t,min:e,constrain:function(n){return i(n)?r(n)?e:t:n},reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function S(e,t,n){const{constrain:r}=w(0,e),o=e+1;let i=s(t);function s(e){return n?a((o+e)%o):r(e)}function l(){return i}function c(){return S(e,l(),n)}const u={get:l,set:function(e){return i=s(e),u},add:function(e){return c().set(l()+e)},clone:c};return u}function k(e,t,n,r,o,s,u,d,p,f,h,m,v,b,S,k,_,O,C){const{cross:T,direction:A}=e,E=["INPUT","SELECT","TEXTAREA"],x={passive:!1},P=y(),I=y(),L=w(50,225).constrain(b.measure(20)),j={mouse:300,touch:400},M={mouse:500,touch:600},D=S?43:25;let R=!1,N=0,F=0,B=!1,U=!1,H=!1,$=!1;function z(e){if(!g(e,r)&&e.touches.length>=2)return W(e);const t=s.readPoint(e),n=s.readPoint(e,T),i=c(t,N),a=c(n,F);if(!U&&!$){if(!e.cancelable)return W(e);if(U=i>a,!U)return W(e)}const l=s.pointerMove(e);i>k&&(H=!0),f.useFriction(.3).useDuration(.75),d.start(),o.add(A(l)),e.preventDefault()}function W(e){const t=h.byDistance(0,!1).index!==m.get(),n=s.pointerUp(e)*(S?M:j)[$?"mouse":"touch"],r=function(e,t){const n=m.add(-1*l(e)),r=h.byDistance(e,!S).distance;return S||a(e)<L?r:_&&t?.5*r:h.byIndex(n.get(),0).distance}(A(n),t),o=function(e,t){if(0===e||0===t)return 0;if(a(e)<=a(t))return 0;const n=c(a(e),a(t));return a(n/e)}(n,r),i=D-10*o,u=O+o/50;U=!1,B=!1,I.clear(),f.useDuration(i).useFriction(u),p.distance(r,!S),$=!1,v.emit("pointerUp")}function G(e){H&&(e.stopPropagation(),e.preventDefault(),H=!1)}return{init:function(e){if(!C)return;function a(a){(i(C)||C(e,a))&&function(e){const i=g(e,r);if($=i,H=S&&i&&!e.buttons&&R,R=c(o.get(),u.get())>=2,i&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return E.includes(t)}(e.target))return;B=!0,s.pointerDown(e),f.useFriction(0).useDuration(0),o.set(u),function(){const e=$?n:t;I.add(e,"touchmove",z,x).add(e,"touchend",W).add(e,"mousemove",z,x).add(e,"mouseup",W)}(),N=s.readPoint(e),F=s.readPoint(e,T),v.emit("pointerDown")}(a)}const l=t;P.add(l,"dragstart",e=>e.preventDefault(),x).add(l,"touchmove",()=>{},x).add(l,"touchend",()=>{}).add(l,"touchstart",a).add(l,"mousedown",a).add(l,"touchcancel",W).add(l,"contextmenu",W).add(l,"click",G,!0)},destroy:function(){P.clear(),I.clear()},pointerDown:function(){return B}}}function _(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){const o="client"+("x"===(r||e.scroll)?"X":"Y");return(g(n,t)?n:n.touches[0])[o]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){const t=i(e)-i(r),s=o(e)-o(n)>170;return r=e,s&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;const t=i(r)-i(n),s=o(e)-o(n),l=o(e)-o(r)>170,c=t/s;return s&&!l&&a(c)>.1?c:0},readPoint:i}}function O(e,t,n,r,o,s,l){const c=[e].concat(r);let u,d,p=[],f=!1;function h(e){return o.measureSize(l.measure(e))}return{init:function(o){s&&(d=h(e),p=r.map(h),u=new ResizeObserver(n=>{(i(s)||s(o,n))&&function(n){for(const i of n){if(f)return;const n=i.target===e,s=r.indexOf(i.target),l=n?d:p[s];if(a(h(n?e:r[s])-l)>=.5){o.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>
2{c.forEach(e=>u.observe(e))}))},destroy:function(){f=!0,u&&u.disconnect()}}}function C(e,t,n,r,o){const i=o.measure(10),s=o.measure(50),l=w(.1,.99);let c=!1;function u(){return!c&&(!!e.reachedAny(n.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:u,constrain:function(o){if(!u())return;const c=e.reachedMin(t.get())?"min":"max",d=a(e[c]-t.get()),p=n.get()-t.get(),f=l.constrain(d/s);n.subtract(p*f),!o&&a(p)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){c=!e}}}function T(e,t,n,r){const o=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:a}=w(o,i);return{loop:function(t){if(!function(e){return 1===e?a(n.get()):-1===e&&s(n.get())}(t))return;const o=e*(-1*t);r.forEach(e=>e.add(o))}}}function A(e,t,n,r,o){const{reachedAny:i,removeOffset:s,constrain:c}=r;function u(e){return e.concat().sort((e,t)=>a(e)-a(t))[0]}function p(t,r){const o=[t,t+n,t-n];if(!e)return t;if(!r)return u(o);const i=o.filter(e=>l(e)===r);return i.length?u(i):d(o)-n}return{byDistance:function(n,r){const l=o.get()+n,{index:u,distance:d}=function(n){const r=e?s(n):c(n),o=t.map((e,t)=>({diff:p(e-r,0),index:t})).sort((e,t)=>a(e.diff)-a(t.diff)),{index:i}=o[0];return{index:i,distance:r}}(l),f=!e&&i(l);return!r||f?{index:u,distance:n}:{index:u,distance:n+p(t[u]-d,0)}},byIndex:function(e,n){return{index:e,distance:p(t[e]-o.get(),n)}},shortcut:p}}function E(e,t,n,o,s,a,l,c){const u={passive:!0,capture:!0};let d=0;function p(e){"Tab"===e.code&&(d=(new Date).getTime())}return{init:function(f){c&&(a.add(document,"keydown",p,!1),t.forEach((t,p)=>{a.add(t,"focus",t=>{(i(c)||c(f,t))&&function(t){if((new Date).getTime()-d>10)return;l.emit("slideFocusStart"),e.scrollLeft=0;const i=n.findIndex(e=>e.includes(t));r(i)&&(s.useDuration(0),o.index(i,0),l.emit("slideFocus"))}(p)},u)}))}}}function x(e){let t=e;function n(e){return r(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function P(e,t){const n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style;let o=null,i=!1;return{clear:function(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const s=(a=e.direction(t),Math.round(100*a)/100);var a;s!==o&&(r.transform=n(s),o=s)},toggleActive:function(e){i=!e}}}function I(e,t,n,r,o,i,s,a,l){const c=u(o),d=u(o).reverse(),p=function(){const e=s[0];return m(h(d,e),n,!1)}().concat(function(){const e=t-s[0]-1;return m(h(c,e),-n,!0)}());function f(e,t){return e.reduce((e,t)=>e-o[t],t)}function h(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(o,s,c){const u=function(e){return i.map((n,o)=>({start:n-r[o]+.5+e,end:n+t-.5+e}))}(s);return o.map(t=>{const r=c?0:-n,o=c?n:0,i=c?"end":"start",s=u[t][i];return{index:t,loopPoint:s,slideLocation:x(-1),translate:P(e,l[t]),target:()=>a.get()>s?r:o}})}return{canLoop:function(){return p.every(({index:e})=>f(c.filter(t=>t!==e),t)<=.1)},clear:function(){p.forEach(e=>e.translate.clear())},loop:function(){p.forEach(e=>{const{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:p}}function L(e,t,n){let r,o=!1;return{init:function(s){n&&(r=new MutationObserver(e=>{o||(i(n)||n(s,e))&&function(e){for(const n of e)if("childList"===n.type){s.reInit(),t.emit("slidesChanged");break}}(e)}),r.observe(e,{childList:!0}))},destroy:function(){r&&r.disconnect(),o=!0}}}function j(e,t,n,r){const o={};let i,s=null,a=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{const n=t.indexOf(e.target);o[n]=e}),s=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&s)return s;if(!e&&a)return a;const t=function(e){return m(o).reduce((t,n)=>{const r=parseInt(n),{isIntersecting:i}=o[r];return(e&&i||!e&&!i)&&t.push(r),t},[])}(e);return e&&(s=t),e||(a=t),t}}}function M(e,t,n,o,i,s,l,c,f){const{startEdge:h,endEdge:m,direction:v}=e,g=r(n);return{groupSlides:function(e){return g?function(e,t){return u(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}(e,n):function(e){return e.length?u(e).reduce((n,r,u)=>
2{const g=d(n)||0,y=0===g,b=r===p(e),w=i[h]-s[g][h],S=i[h]-s[r][m],k=!o&&y?v(l):0,_=a(S-(!o&&b?v(c):0)-(w+k));return u&&_>t+f&&n.push(r),b&&n.push(e.length),n},[]).map((t,n,r)=>{const o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}(e)}}}function D(e,t,n,r,i,s,m){const{align:v,axis:g,direction:D,startIndex:R,loop:N,duration:F,dragFree:B,dragThreshold:U,inViewThreshold:H,slidesToScroll:$,skipSnaps:z,containScroll:W,watchResize:G,watchSlides:X,watchDrag:V,watchFocus:K}=s,q={measure:function(e){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},Y=q.measure(t),Q=n.map(q.measure),J=function(e,t){const n="rtl"===t,r="y"===e,o=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){const{height:t,width:n}=e;return r?t:n},direction:function(e){return e*o}}}(g,D),Z=J.measureSize(Y),ee=function(e){return{measure:function(t){return e*(t/100)}}}(Z),te=function(e,t){const n={start:function(){return 0},center:function(e){return r(e)/2},end:r};function r(e){return t-e}return{measure:function(r,i){return o(e)?n[e](r):e(t,r,i)}}}(v,Z),ne=!N&&!!W,re=N||!!W,{slideSizes:oe,slideSizesWithGaps:ie,startGap:se,endGap:ae}=function(e,t,n,r,o,i){const{measureSize:s,startEdge:l,endEdge:c}=e,u=n[0]&&o,p=function(){if(!u)return 0;const e=n[0];return a(t[l]-e[l])}(),h=function(){if(!u)return 0;const e=i.getComputedStyle(d(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}(),m=n.map(s),v=n.map((e,t,n)=>{const r=!t,o=f(n,t);return r?m[t]+p:o?m[t]+h:n[t+1][l]-e[l]}).map(a);return{slideSizes:m,slideSizesWithGaps:v,startGap:p,endGap:h}}(J,Y,Q,n,re,i),le=M(J,Z,$,N,Y,Q,se,ae,2),{snaps:ce,snapsAligned:ue}=function(e,t,n,r,o){const{startEdge:i,endEdge:s}=e,{groupSlides:l}=o,c=l(r).map(e=>d(e)[s]-e[0][i]).map(a).map(t.measure),u=r.map(e=>n[i]-e[i]).map(e=>-a(e)),p=l(u).map(e=>e[0]).map((e,t)=>e+c[t]);return{snaps:u,snapsAligned:p}}(J,te,Y,Q,le),de=-d(ce)+d(ie),{snapsContained:pe,scrollContainLimit:fe}=function(e,t,n,r,o){const i=w(-t+e,0),s=n.map((e,t)=>{const{min:r,max:o}=i,s=i.constrain(e),a=!t,c=f(n,t);return a?o:c||l(r,s)?r:l(o,s)?o:s}).map(e=>parseFloat(e.toFixed(3))),a=function(){const e=s[0],t=d(s);return w(s.lastIndexOf(e),s.indexOf(t)+1)}();function l(e,t){return c(e,t)<=1}return{snapsContained:function(){if(t<=e+o)return[i.max];if("keepSnaps"===r)return s;const{min:n,max:l}=a;return s.slice(n,l)}(),scrollContainLimit:a}}(Z,de,ue,W,2),he=ne?pe:ue,{limit:me}=function(e,t,n){const r=t[0];return{limit:w(n?r-e:d(t),r)}}(de,he,N),ve=S(p(he),R,N),ge=ve.clone(),ye=u(n),be=b(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(je),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:o,scrollLooper:i,slideLooper:s,dragHandler:a,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},p)=>{const f=e.settled(),h=!u.shouldConstrain(),m=d?f:f&&h,v=m&&!a.pointerDown();v&&l.stop();const g=n.get()*p+o.get()*(1-p);r.set(g),d&&(i.loop(e.direction()),s.loop()),t.to(r.get()),v&&c.emit("settle"),m||c.emit("scroll")})(je,e)),we=he[ve.get()],Se=x(we),ke=x(we),_e=x(we),Oe=x(we),Ce=function(e,t,n,r,o,i){let s=0,c=0,u=o,d=i,p=e.get(),f=0;function h(e){return u=e,v}function m(e){return d=e,v}const v={direction:function(){return c},duration:function(){return u},velocity:function(){return s},seek:function(){const t=r.get()-e.get();let o=0;return u?(n.set(e),s+=t/u,s*=d,p+=s,e.add(s),o=p-f):(s=0,n.set(r),e.set(r),o=t),c=l(o),f=p,v},settled:function(){return a(r.get()-t.get())<.001},useBaseFriction:function(){return m(i)},useBaseDuration:function(){return h(o)},useFriction:m,useDuration:h};return v}(Se,_e,ke,Oe,F,.68),Te=A(N,he,de,me,Oe),Ae=function(e,t,n,r,o,i,s){function a(o){const a=o.distance,l=o.index!==t.get();
vendor: 4,556 bytes, line 2
2i.add(a),a&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(o.index),s.emit("select"))}return{distance:function(e,t){a(o.byDistance(e,t))},index:function(e,n){const r=t.clone().set(e);a(o.byIndex(r.get(),n))}}}(be,ve,ge,Ce,Te,Oe,m),Ee=function(e){const{max:t,length:n}=e;return{get:function(e){return n?(e-t)/-n:0}}}(me),xe=y(),Pe=j(t,n,m,H),{slideRegistry:Ie}=function(e,t,n,r,o,i){const{groupSlides:s}=o,{min:a,max:l}=r;return{slideRegistry:function(){const r=s(i),o=!e||"keepSnaps"===t;return 1===n.length?[i]:o?r:r.slice(a,l).map((e,t,n)=>{const r=!t,o=f(n,t);return r?h(d(n[0])+1):o?h(p(i)-d(n)[0]+1,d(n)[0]):e})}()}}(ne,W,he,fe,le,ye),Le=E(e,n,Ie,Ae,Ce,xe,m,K),je={ownerDocument:r,ownerWindow:i,eventHandler:m,containerRect:Y,slideRects:Q,animation:be,axis:J,dragHandler:k(J,e,r,i,Oe,_(J,i),Se,be,Ae,Ce,Te,ve,m,ee,B,U,z,.68,V),eventStore:xe,percentOfView:ee,index:ve,indexPrevious:ge,limit:me,location:Se,offsetLocation:_e,previousLocation:ke,options:s,resizeHandler:O(t,m,i,n,J,G,q),scrollBody:Ce,scrollBounds:C(me,_e,Oe,Ce,ee),scrollLooper:T(de,me,_e,[Se,_e,ke,Oe]),scrollProgress:Ee,scrollSnapList:he.map(Ee.get),scrollSnaps:he,scrollTarget:Te,scrollTo:Ae,slideLooper:I(J,Z,de,oe,ie,ce,he,_e,n),slideFocus:Le,slidesHandler:L(t,m,X),slidesInView:Pe,slideIndexes:ye,slideRegistry:Ie,slidesToScroll:le,target:Oe,translate:P(J,t)};return je}n.d(t,{A:()=>F});const R={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function N(e){function t(e,t){return v(e,t||{})}const n={mergeOptions:t,optionsAtMedia:function(n){const r=n.breakpoints||{},o=m(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>m(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return n}function F(e,t,n){const r=e.ownerDocument,i=r.defaultView,s=N(i),a=function(e){let t=[];return{init:function(n,r){return t=r.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}}}(s),l=y(),c=function(){let e,t={};function n(e){return t[e]||[]}const r={init:function(t){e=t},emit:function(t){return n(t).forEach(n=>n(e,t)),r},off:function(e,o){return t[e]=n(e).filter(e=>e!==o),r},on:function(e,o){return t[e]=n(e).concat([o]),r},clear:function(){t={}}};return r}(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:p}=s,{on:f,off:h,emit:m}=c,v=E;let g,b,w,S,k=!1,_=u(R,F.globalOptions),O=u(_),C=[];function T(t){const n=D(e,w,S,r,i,t,c);if(t.loop&&!n.slideLooper.canLoop()){return T(Object.assign({},t,{loop:!1}))}return n}function A(t,n){k||(_=u(_,t),O=d(_),C=n||C,function(){const{container:t,slides:n}=O,r=o(t)?e.querySelector(t):t;w=r||e.children[0];const i=o(n)?w.querySelectorAll(n):n;S=[].slice.call(i||w.children)}(),g=T(O),p([_,...C.map(({options:e})=>e)]).forEach(e=>l.add(e,"change",E)),O.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(L),g.eventHandler.init(L),g.resizeHandler.init(L),g.slidesHandler.init(L),g.options.loop&&g.slideLooper.loop(),w.offsetParent&&S.length&&g.dragHandler.init(L),b=a.init(L,C)))}function E(e,t){const n=I();x(),A(u({startIndex:n},e),t),c.emit("reInit")}function x(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),a.destroy(),l.clear()}function P(e,t,n){O.active&&!k&&(g.scrollBody.useBaseFriction().useDuration(!0===t?0:O.duration),g.scrollTo.index(e,n||0))}function I(){return g.index.get()}const L={canScrollNext:function(){return g.index.add(1).get()!==I()},canScrollPrev:function(){return g.index.add(-1).get()!==I()},containerNode:function(){return w},internalEngine:function(){return g},destroy:function(){k||(k=!0,l.clear(),x(),c.emit("destroy"),c.clear())},off:h,on:f,emit:m,plugins:function(){return b},previousScrollSnap:function(){return g.indexPrevious.get()},reInit:v,rootNode:function(){return e},scrollNext:function(e){P(g.index.add(1).get(),e,-1)},scrollPrev:function(e){P(g.index.add(-1).get(),e,1)},scrollProgress:function(){return g.scrollProgress.get(g.offsetLocation.get())},scrollSnapList:function(){return g.scrollSnapList}
2,scrollTo:P,selectedScrollSnap:I,slideNodes:function(){return S},slidesInView:function(){return g.slidesInView.get()},slidesNotInView:function(){return g.slidesInView.get(!1)}};return A(t,n),setTimeout(()=>c.emit("init"),0),L}F.globalOptions=void 0},61396(e,t,n){"use strict";n.d(t,{K:()=>m,w:()=>h});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(a=1;a<=24;a++)r[a+111]="F"+a;for(a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),o[a]=String.fromCharCode(a);for(var l in r)o.hasOwnProperty(l)||(o[l]=r[l]);var c=n(42845);const u="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function p(e){let t,n,r,o,i=e.split(/-(?!$)/),s=i[i.length-1];"Space"==s&&(s=" ");for(let e=0;e<i.length-1;e++){let s=i[e];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))r=!0;else{if(!/^mod$/i.test(s))throw new Error("Unrecognized modifier name: "+s);u?o=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),r&&(s="Shift-"+s),s}function f(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function h(e){return new c.k_({props:{handleKeyDown:m(e)}})}function m(e){let t=function(e){let t=Object.create(null);for(let n in e)t[p(n)]=e[n];return t}(e);return function(e,n){let a,l=function(e){var t=!(i&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?o:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),c=t[f(l,n)];if(c&&c(e.state,e.dispatch,e))return!0;if(1==l.length&&" "!=l){if(n.shiftKey){let r=t[f(l,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(d&&n.ctrlKey&&n.altKey)&&(a=r[n.keyCode])&&a!=l){let r=t[f(a,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}},58903(e,t,n){"use strict";function r(e){this.content=e}n.d(t,{S4:()=>J,ZF:()=>le,FK:()=>a,CU:()=>d,sX:()=>q,bP:()=>I,u$:()=>x,vI:()=>p,Sj:()=>Y,Ji:()=>f}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var o=n&&n!=e?this.remove(n):this,i=o.find(e),s=o.content.slice();return-1==i?s.push(n||e,t):(s[i+1]=t,n&&(s[i]=n)),new r(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var o=this.remove(t),i=o.content.slice(),s=o.find(e);return i.splice(-1==s?i.length:s,0,t,n),new r(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};const o=r;function i(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),s=t.child(r);
vendor: 4,316 bytes, line 2
2if(o!=s){if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(let e=0;o.text[e]==s.text[e];e++)n++;return n}if(o.content.size||s.content.size){let e=i(o.content,s.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function s(e,t,n,r){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let a=e.child(--o),l=t.child(--i),c=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:r};if(a.isText&&a.text!=l.text){let e=0,t=Math.min(a.text.length,l.text.length);for(;e<t&&a.text[a.text.length-e-1]==l.text[l.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(a.content.size||l.content.size){let e=s(a.content,l.content,n-1,r-1);if(e)return e}n-=c,r-=c}else n-=c,r-=c}}class a{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=0,s=0;s<t;i++){let a=this.content[i],l=s+a.nodeSize;if(l>e&&!1!==n(a,r+s,o||null,i)&&a.content.size){let o=s+1;a.nodesBetween(Math.max(0,e-o),Math.min(a.content.size,t-o),n,r+o)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,(s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?r?"function"==typeof r?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&n&&(i?i=!1:o+=n),o+=l},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new a(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let s=this.content[o],a=i+s.nodeSize;a>e&&((i<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-i),Math.min(s.text.length,t-i)):s.cut(Math.max(0,e-i-1),Math.min(s.content.size,t-i-1))),n.push(s),r+=s.nodeSize),i=a}return new a(n,r)}cutByIndex(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new a(r,o)}addToStart(e){return new a([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new a(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return i(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return s(this,e,t,n)}findIndex(e){if(0==e)return c(0,e);if(e==this.size)return c(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=n+this.child(t).nodeSize;if(r>=e)return r==e?c(t+1,r):c(t,n);n=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return a.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new a(t||e,n)}static from(e){if(!e)return a.empty;if(e instanceof a)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new a([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}a.empty=new a([],0);const l={index:0,offset:0};function c(e,t){return l.index=e,l.offset=t,l}function u(e,t){if(e===t)return!0;
vendor: 12,303 bytes, line 2
2if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!u(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class d{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return d.none;if(e instanceof d)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}d.none=[];class p extends Error{}class f{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=m(this.content,e+this.openStart,t);return n&&new f(n,this.openStart,this.openEnd)}removeBetween(e,t){return new f(h(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new f(a.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new f(e,n,r)}}function h(e,t,n){let{index:r,offset:o}=e.findIndex(t),i=e.maybeChild(r),{index:s,offset:a}=e.findIndex(n);if(o==t||i.isText){if(a!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(h(i.content,t-o-1,n-o-1)))}function m(e,t,n,r){let{index:o,offset:i}=e.findIndex(t),s=e.maybeChild(o);if(i==t||s.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let a=m(s.content,t-i-1,n,s);return a&&e.replaceChild(o,s.copy(a))}function v(e,t,n){if(n.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return g(e,t,n,0)}function g(e,t,n,r){let o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let s=g(e,t,n,r+1);return i.copy(i.content.replaceChild(o,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:o,end:s}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(a.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return k(i,_(e,o,s,t,r))}{let r=e.parent,o=r.content;return k(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return k(i,O(e,t,r))}function y(e,t){if(!t.type.compatibleContent(e.type))throw new p("Cannot join "+t.type.name+" onto "+e.type.name)}function b(e,t,n){let r=e.node(n);return y(r,t.node(n)),r}function w(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function S(e,t,n,r){let o=(t||e).node(n),i=0,s=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(w(e.nodeAfter,r),i++));for(let e=i;e<s;e++)w(o.child(e),r);t&&t.depth==n&&t.textOffset&&w(t.nodeBefore,r)}function k(e,t){return e.type.checkContent(t),e.copy(t)}function _(e,t,n,r,o){let i=e.depth>o&&b(e,t,o+1),s=r.depth>o&&b(n,r,o+1),l=[];return S(null,e,o,l),i&&s&&t.index(o)==n.index(o)?(y(i,s),w(k(i,_(e,t,n,r,o+1)),l)):(i&&w(k(i,O(e,t,o+1)),l),S(t,n,o,l),s&&w(k(s,O(n,r,o+1)),l)),S(r,null,o,l),new a(l)}function O(e,t,n){let r=[];if(S(null,e,n,r),e.depth>n){w(k(b(e,t,n+1),O(e,t,n+1)),r)}return S(t,null,n,r),new a(r)}f.empty=new f(a.empty,0,0);class C{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new x(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let t=e;;){let{index:e,offset:i}=t.content.findIndex(o),s=o-i;if(n.push(t,e,r+i),!s)break;if(t=t.child(e),t.isText)break;o=s-1,r+=i+1}return new C(t,n,o)}static resolveCached(e,t){let n=E.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else E.set(e,n=new T);let r=n.elts[n.i]=C.resolve(e,t);return n.i=(n.i+1)%A,r}}class T{constructor(){this.elts=[],this.i=0}}const A=12,E=new WeakMap;class x{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const P=Object.create(null);class I{constructor(e,t,n,r=d.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||a.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||P)&&d.sameSet(this.marks,n||d.none)}copy(e=null){return e==this.content?this:new I(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new I(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return f.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),s=r.start(i),a=r.node(i).content.cut(r.pos-s,o.pos-s);return new f(a,r.depth-i,o.depth-i)}replace(e,t,n){return v(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return C.resolveCached(this,e)}resolveNoCache(e){return C.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),j(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=a.empty,r=0,o=n.childCount){let i=this.contentMatchAt(e).matchFragment(n,r,o),s=i&&i.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=d.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!d.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>
2e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=a.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}I.prototype.text=void 0;class L extends I{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):j(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new L(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new L(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function j(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class M{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new D(e,t);if(null==n.next)return M.empty;let r=R(n);n.next&&n.err("Unexpected trailing text");let o=function(e){let t=Object.create(null);return n($(e,0));function n(r){let o=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<o.length;e++)o[e][0]==t&&(r=o[e][1]);$(e,n).forEach(e=>{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let i=t[r.join(",")]=new M(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=o[e][1].sort(H);i.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return i}}(function(e){let t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}function i(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(i(n,t)),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return r(t,s),o(i(e.expr,s),s),[r(s)]}if("plus"==e.type){let s=n();return o(i(e.expr,t),s),o(i(e.expr,s),s),[r(s)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){let s=t;for(let t=0;t<e.min;t++){let t=n();o(i(e.expr,s),t),s=t}if(-1==e.max)o(i(e.expr,s),s);else for(let t=e.min;t<e.max;t++){let t=n();r(s,t),o(i(e.expr,s),t),s=t}return[r(s)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let s=i(e.exprs[r],t);if(r==e.exprs.length-1)return s;o(s,t=n())}}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let{type:n,next:s}=e.next[t];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(s)&&r.push(s)}o&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(i,s){let l=i.matchFragment(e,n);if(l&&(!t||l.validEnd))return a.from(s.map(e=>e.createAndFill()));for(let e=0;e<i.next.length;e++){let{type:t,next:n}=i.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:i,next:s}=o.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||r.type&&!s.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}M.empty=new M(!0);class D{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?
vendor: 4,624 bytes, line 2
2=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function R(e){let t=[];do{t.push(N(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function N(e){let t=[];do{t.push(F(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function F(e){let t=function(e){if(e.eat("(")){let t=R(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let e in n){let r=n[e];r.isInGroup(t)&&o.push(r)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=U(e,t)}return t}function B(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function U(e,t){let n=B(e),r=n;return e.eat(",")&&(r="}"!=e.next?B(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function H(e,t){return t-e}function $(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let e=0;e<o.length;e++){let{term:r,to:i}=o[e];r||-1!=n.indexOf(i)||t(i)}}(t),n.sort(H)}function z(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function W(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function G(e,t,n,r){for(let r in t)if(!(r in e))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function X(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new K(e,r,t[r]);return n}class V{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=X(e,n.attrs),this.defaultAttrs=z(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==M.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:W(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new I(this,this.computeAttrs(e),a.from(t),d.setFrom(n))}createChecked(e=null,t,n){return t=a.from(t),this.checkContent(t),new I(this,this.computeAttrs(e),t,d.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=a.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(a.empty,!0);return o?new I(this,e,t.append(o),d.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){G(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:d.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new V(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");
vendor: 55,979 bytes, line 2
2if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class K{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let o=null===n?"null":typeof n;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class q{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=X(e,r.attrs),this.excluded=null;let o=z(this.attrs);this.instance=o?new d(this,o):null}create(e=null){return!e&&this.instance?this.instance:new d(this,W(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,o)=>n[e]=new q(e,r++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){G(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Y{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=o.from(e.nodes),t.marks=o.from(e.marks||{}),this.nodes=V.compile(this.spec.nodes,this),this.marks=q.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",o=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=M.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==o?null:o?Q(this,o.split(" ")):""!=o&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:Q(this,n.split(" "))}this.nodeFromJSON=e=>I.fromJSON(this,e),this.markFromJSON=e=>d.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof V))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new L(n,n.defaultAttrs,e,d.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Q(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],s=i;if(i)n.push(i);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=r)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class J{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new oe(this,t,!1);return n.addAll(e,d.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new oe(this,t,!0);return n.addAll(e,d.none,t.from,t.to),f.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(ie(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(e)||r.context&&!n.matchesContext(r.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=se(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=se(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new J(e,J.schemaRules(e)))}}const Z={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ee={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},te={ol:!0,ul:!0};function ne(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class re{constructor(e,t,n,r,o,i){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=i,this.content=[],this.activeMarks=d.none,this.match=o||(4&i?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(a.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=a.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Z.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class oe{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,o=t.topNode,i=ne(null,t.preserveWhitespace,0)|(n?4:0);r=o?new re(o.type,o.attrs,d.none,!0,t.topMatch||o.type.contentMatch,i):new re(n?null:e.schema.topNodeType,null,d.none,!0,null,i),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,o=2&r.options?"full":this.localPreserveWS||(1&r.options)>0,{schema:i}=this.parser;if("full"===o||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(o)if("full"===o)n=n.replace(/\r\n?/g,"\n");else if(i.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(i.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(i.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(i.text(e[n]),t,!/\S/.test(e[n]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],o=e.previousSibling;(!t||o&&"BR"==o.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(i.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,o=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i,s=e.nodeName.toLowerCase();te.hasOwnProperty(s)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&te.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,n));e:if(a?a.ignore:ee.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let n,r=this.needsBlock;if(Z.hasOwnProperty(s))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let i=a&&a.skip?t:this.readStyles(e,t);i&&this.addAll(e,i),n&&this.sync(o),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,a,n,!1===a.consuming?i:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],o=n.getPropertyValue(r);if(o)for(let e;;){let n=this.parser.matchStyle(r,o,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1!==n.consuming)break;e=n}}return t}addElementByRule(e,t,n,r){let o,i;if(t.node)if(i=this.parser.schema.nodes[t.node],i.isLeaf)this.insertNode(i.create(t.attrs),n,"BR"==e.nodeName)||this.leafFallback(e,n);else{let e=this.enter(i,t.attrs||null,n,t.preserveWhitespace);e&&(o=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let s=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}o&&this.sync(s)&&this.open--}addAll(e,t,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=null==r?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,t);this.findAtPoint(e,o)}findPlace(e,t,n){let r,o;for(let t=this.open,i=0;t>=0;t--){let s=this.nodes[t],a=s.findWrapping(e);if(a&&(!r||r.length>a.length+i)&&(r=a,o=s,!a.length))break;if(s.solid){if(n)break;i+=2}}if(!r)return null;this.sync(o);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let n=d.none;for(let o of r.concat(e.marks))(t.type?t.type.allowsMarkType(o.type):ae(o.type,e.type))&&(n=o.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let o=this.findPlace(e.create(t),n,!1);return o&&(o=this.enterInner(e,t,n,!0,r)),o}enterInner(e,t,n,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let s=ne(e,o,i.options);4&i.options&&0==i.content.length&&(s|=4);let a=d.none;return n=n.filter(t=>!(i.type?i.type.allowsMarkType(t.type):ae(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new re(e,t,a,r,null,s)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=o;s--)if(i(e-1,s))return!0;return!1}{let e=s>0||0==s&&r?this.nodes[s].type:n&&s>=o?n.node(s-o).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function ie(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function se(e){let t={};for(let n in e)t[n]=e[n];return t}function ae(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],s=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t)return!0;if(i.indexOf(o)<0&&s(o))return!0}};if(s(o.contentMatch))return!0}}class le{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=ue(t).createDocumentFragment());let r=n,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],s=this.serializeMark(n,e.isInline,t);s&&(o.push([n,r]),r.appendChild(s.dom),r=s.contentDOM||s.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=fe(ue(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&fe(ue(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return fe(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new le(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ce(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return ce(e.marks)}}function ce(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ue(e){return e.document||window.document}const de=new WeakMap;function pe(e){let t=de.get(e);return void 0===t&&de.set(e,t=function(e){let t=null;function n(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}(e)),t}function fe(e,t,n,r){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o,i=t[0];if("string"!=typeof i)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=pe(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s,a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let l=n?e.createElementNS(n,i):e.createElement(i),c=t[1],u=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){u=2;for(let e in c)if(null!=c[e]){let t=e.indexOf(" ");t>0?l.setAttributeNS(e.slice(0,t),e.slice(t+1),c[e]):"style"==e&&l.style?l.style.cssText=c[e]:l.setAttribute(e,c[e])}}for(let o=u;o<t.length;o++){let i=t[o];if(0===i){if(o<t.length-1||o>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:t,contentDOM:o}=fe(e,i,n,r);if(l.appendChild(t),o){if(s)throw new RangeError("Multiple content holes");s=o}}}return{dom:l,contentDOM:s}}},42845(e,t,n){"use strict";n.d(t,{$t:()=>_,LN:()=>s,U3:()=>u,hs:()=>E,i5:()=>h,k_:()=>C,nh:()=>p});var r=n(58903),o=n(38262);const i=Object.create(null);class s{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new a(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.Ji.empty){let n=t.content.lastChild,o=null;for(let e=0;e<t.openEnd;e++)o=n,n=n.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),a?r.Ji.empty:t),0==a&&g(e,i,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:s}=r[o],a=e.mapping.slice(n),l=a.map(i.pos),c=a.map(s.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),g(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new u(e):v(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let o=t<0?v(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):v(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new h(e.node(0))}static atStart(e){return v(e,e,0,0,1)||new h(e)}static atEnd(e){return v(e,e,e.content.size,e.childCount,-1)||new h(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=i[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in i)throw new RangeError("Duplicate use of selection JSON ID "+e);return i[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends s{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return s.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r.Ji.empty){if(super.replace(e,t),t==r.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,n,!0)||s.findFrom(t,-n,!0);if(!e)return s.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(s.findFrom(e,-n,!0)||s.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new u(e,t)}}s.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class p extends s{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?s.near(o):new p(o)}content(){return new r.Ji(r.FK.from(this.node),0,0)}eq(e){return e instanceof p&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new p(e.resolve(t.anchor))}static create(e,t){return new p(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}p.prototype.visible=!1,s.jsonID("node",p);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new d(n,n):new f(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&p.isSelectable(n)?new p(t):s.near(t)}}class h extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.Ji.empty){if(t==r.Ji.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new h(e)}map(e){return new h(e)}eq(e){return e instanceof h}getBookmark(){return m}}s.jsonID("all",h);const m={map(){return this},resolve:e=>new h(e)};function v(e,t,n,r,o,i=!1){if(t.inlineContent)return u.create(e,n);for(let s=r-(o>0?0:1);o>0?s<t.childCount:s>=0;s+=o){let r=t.child(s);if(r.isAtom){if(!i&&p.isSelectable(r))return p.create(e,n-(o<0?r.nodeSize:0))}else{let t=v(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function g(e,t,n){let r=e.steps.length-1;if(r<t)return;let i,a=e.steps[r];(a instanceof o.Ln||a instanceof o.Wg)&&(e.mapping.maps[r].forEach((e,t,n,r)=>{null==i&&(i=r)}),e.setSelection(s.near(e.doc.resolve(i),n)))}class y extends o.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.CU.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function b(e,t){return t&&e?e.bind(t):e}class w{constructor(e,t,n){this.name=e,this.init=b(t.init,n),this.apply=b(t.apply,n)}}const S=[new w("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new w("selection",{init:(e,t)=>e.selection||s.atStart(t.doc),apply:e=>e.selection}),new w("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class k{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=S.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class _{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let s=this.config.plugins[i];if(s.spec.appendTransaction){let a=r?r[i].n:0,l=r?r[i].state:this,c=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new _(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new y(this)}static create(e){let t=new k(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new _(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new k(this.schema,e.plugins),n=t.fields,r=new _(t);for(let t=0;t<n.length;t++){let o=n[t].name;r[o]=this.hasOwnProperty(o)?this[o]:n[t].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new k(e.schema,e.plugins),i=new _(o);return o.fields.forEach(o=>{if("doc"==o.name)i.doc=r.bP.fromJSON(e.schema,t.doc);else if("selection"==o.name)i.selection=s.fromJSON(i.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let s=n[r],a=s.spec.state;if(s.key==o.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(i[o.name]=a.fromJSON.call(s,e,t[r],i))}i[o.name]=o.init(e,i)}}),i}}function O(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=O(o,t,{})),n[r]=o}return n}class C{constructor(e){this.spec=e,this.props={},e.props&&O(e.props,this,this.props),this.key=e.key?e.key.key:A("plugin")}getState(e){return e[this.key]}}const T=Object.create(null);function A(e){return e in T?e+"$"+ ++T[e]:(T[e]=0,e+"$")}class E{constructor(e="key"){this.key=A(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},38262(e,t,n){"use strict";n.d(t,{$L:()=>j,Ln:()=>y,N0:()=>I,Um:()=>L,Wg:()=>b,X9:()=>c,Ys:()=>m,dL:()=>V,jP:()=>_,n9:()=>x,oM:()=>O,zy:()=>E});var r=n(58903);const o=Math.pow(2,16);function i(e,t){return e+t*o}function s(e){return 65535&e}class a{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class l{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&l.empty)return l.empty}recover(e){let t=0,n=s(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/o}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[l+o],d=this.ranges[l+s],p=c+u;if(e<=p){let o=c+r+((u?e==c?-1:e==p?1:t:t)<0?0:d);if(n)return o;let s=e==(t<0?c:p)?null:i(l/3,e-c),f=e==c?2:e==p?1:4;return(t<0?e!=c:e!=p)&&(f|=8),new a(o,f,s)}r+=d-u}return n?e+r:new a(e+r,0,null)}touches(e,t){let n=0,r=s(t),o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let a=this.ranges[t+o];if(e<=s+a&&t==3*r)return!0;n+=this.ranges[t+i]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],s=i-(this.inverted?o:0),a=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(s,s+l,a,a+c),o+=c-l}}invert(){return new l(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?l.empty:new l(e<0?[0,-e,0]:[0,0,e])}}l.empty=new l([]);class c{constructor(e,t,n=0,r=(e?e.length:0)){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new c(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new c;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this._maps[n].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new a(e,r,null)}}const u=Object.create(null);class d{getMap(){return l.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=u[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in u)throw new RangeError("Duplicate use of step JSON ID "+e);return u[e]=t,t.prototype.jsonID=e,t}}class p{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new p(e,null)}static fail(e){return new p(null,e)}static fromReplace(e,t,n,o){try{return p.ok(e.replace(t,n,o))}catch(e){if(e instanceof r.vI)return p.fail(e.message);throw e}}}function f(e,t,n){let o=[];for(let r=0;r<e.childCount;r++){let i=e.child(r);i.content.size&&(i=i.copy(f(i.content,t,i))),i.isInline&&(i=t(i,n,r)),o.push(i)}return r.FK.fromArray(o)}class h extends d{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),o=n.node(n.sharedDepth(this.to)),i=new r.Ji(f(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,o),t.openStart,t.openEnd);return p.fromReplace(e,this.from,this.to,i)}invert(){return new m(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new h(t.pos,n.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}d.jsonID("addMark",h);class m extends d{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r.Ji(f(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return p.fromReplace(e,this.from,this.to,n)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new m(t.pos,n.pos,this.mark)}merge(e){return e instanceof m&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new m(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new m(t.from,t.to,e.markFromJSON(t.mark))}}d.jsonID("removeMark",m);class v extends d{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return p.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return p.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new v(this.pos,t.marks[n]);return new v(this.pos,this.mark)}}return new g(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new v(t.pos,e.markFromJSON(t.mark))}}d.jsonID("addNodeMark",v);class g extends d{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return p.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return p.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new v(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new g(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new g(t.pos,e.markFromJSON(t.mark))}}d.jsonID("removeNodeMark",g);class y extends d{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&w(e,this.from,this.to)?p.fail("Structure replace would overwrite content"):p.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new l([this.from,this.to-this.from,this.slice.size])}invert(e){return new y(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new y(t.pos,Math.max(t.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof y)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new y(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new y(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new y(t.from,t.to,r.Ji.fromJSON(e,t.slice),!!t.structure)}}d.jsonID("replace",y);class b extends d{constructor(e,t,n,r,o,i,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=s}apply(e){if(this.structure&&(w(e,this.from,this.gapFrom)||w(e,this.gapTo,this.to)))return p.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return p.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?p.fromReplace(e,this.from,this.to,n):p.fail("Content does not fit in gap")}getMap(){return new l([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new b(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new b(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new b(t.from,t.to,t.gapFrom,t.gapTo,r.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function w(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function S(e,t,n,o=n.contentMatch,i=!0){let s=e.doc.nodeAt(t),a=[],l=t+1;for(let t=0;t<s.childCount;t++){let c=s.child(t),u=l+c.nodeSize,d=o.matchType(c.type);if(d){o=d;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new m(l,u,c.marks[t]));if(i&&c.isText&&"pre"!=n.whitespace){let e,t,o=/\r?\n|\r/g;for(;e=o.exec(c.text);)t||(t=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new y(l+e.index,l+e.index+e[0].length,t))}}else a.push(new y(l,u,r.Ji.empty));l=u}if(!o.validEnd){let t=o.fillBefore(r.FK.empty,!0);e.replace(l,l,new r.Ji(t,0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}function k(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function _(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,o=0;;--n){let i=e.$from.node(n),s=e.$from.index(n)+r,a=e.$to.indexAfter(n)-o;if(n<e.depth&&i.canReplace(s,a,t))return n;if(0==n||i.type.spec.isolating||!k(i,s,a))break;s&&(r=1),a<i.childCount&&(o=1)}return null}function O(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let s=i.length?i[0]:t;return n.canReplaceWith(r,o,s)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),s=t.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let e=r;a&&e<o;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?s:null}(r,t);return i?o.map(C).concat({type:t,attrs:n}).concat(i.map(C)):null}function C(e){return{type:e,attrs:null}}function T(e,t,n,r){t.forEach((o,i)=>{if(o.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(o.text);){let o=e.mapping.slice(r).map(n+1+i+s.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}})}function A(e,t,n,r){t.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+i);e.replaceWith(o,o+1,t.type.schema.text("\n"))}})}function E(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(i,n.childCount),a=r&&r[t+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=r&&r[t]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(s))return!1}let a=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(a,a,l?l.type:o.node(i+1).type)}function x(e,t){let n=e.resolve(t),r=n.index();return P(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function P(e,t){return!(!e||!t||e.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let o=0;o<t.childCount;o++){let i=t.child(o),s=i.type==r?e.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n)return!1;if(!e.type.allowsMarks(i.marks))return!1}return n.validEnd}(e,t))}function I(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let o,i,s=r.index(e);if(e==r.depth?(o=r.nodeBefore,i=r.nodeAfter):n>0?(o=r.node(e+1),s++,i=r.node(e).maybeChild(s)):(o=r.node(e).maybeChild(s-1),i=r.node(e+1)),o&&!o.isTextblock&&P(o,i)&&r.node(e).canReplace(s,s+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function L(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let e=0;e<n.openStart;e++)o=o.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,i=r.index(t)+(n>0?1:0),s=r.node(t),a=!1;if(1==e)a=s.canReplace(i,i,o);else{let e=s.contentMatchAt(i).findWrapping(o.firstChild.type);a=e&&s.canReplaceWith(i,i,e[0])}if(a)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function j(e,t,n=t,o=r.Ji.empty){if(t==n&&!o.size)return null;let i=e.resolve(t),s=e.resolve(n);return M(i,s,o)?new y(t,n,o):new D(i,s,o).fit()}function M(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}d.jsonID("replaceAround",b);class D{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=r.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;let i=this.placed,s=n.depth,a=o.depth;for(;s&&a&&1==i.childCount;)i=i.firstChild.content,s--,a--;let l=new r.Ji(i,s,a);return e>-1?new b(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new y(n.pos,o.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,o=null;n?(o=F(this.unplaced.content,n-1).firstChild,e=o.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let s,{type:a,match:l}=this.frontier[e],c=null;if(1==t&&(i?l.matchType(i.type)||(c=l.fillBefore(r.FK.from(i),!1)):o&&a.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:e,parent:o,inject:c};if(2==t&&i&&(s=l.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:o,wrap:s};if(o&&l.matchType(o.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=F(e,t);return!(!o.childCount||o.firstChild.isLeaf)&&(this.unplaced=new r.Ji(e,t+1,Math.max(n,o.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=F(e,t);if(o.childCount<=1&&t>0){let i=e.size-t<=t+o.size;this.unplaced=new r.Ji(R(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new r.Ji(R(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let s=this.unplaced,a=n?n.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:p}=this.frontier[t];if(o){for(let e=0;e<o.childCount;e++)u.push(o.child(e));d=d.matchFragment(o)}let f=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let e=a.child(c),t=d.matchType(e.type);if(!t)break;c++,(c>1||0==l||e.content.size)&&(d=t,u.push(B(e.mark(p.allowedMarks(e.marks)),1==c?l:0,c==a.childCount?f:-1)))}let h=c==a.childCount;h||(f=-1),this.placed=N(this.placed,t,r.FK.from(u)),this.frontier[t].match=d,h&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=h?0==e?r.Ji.empty:new r.Ji(R(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new r.Ji(R(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!U(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=U(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=U(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=N(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=N(this.placed,this.depth,r.FK.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.FK.empty,!0);e.childCount&&(this.placed=N(this.placed,this.frontier.length,e))}}function R(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(R(e.firstChild.content,t-1,n)))}function N(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(N(e.lastChild.content,t-1,n)))}function F(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function B(e,t,n){if(t<=0)return e;let o=e.content;return t>1&&(o=o.replaceChild(0,B(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r.FK.empty,!0)))),e.copy(o)}function U(e,t,n,r,o){let i=e.node(t),s=o?e.indexAfter(t):e.index(t);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=r.fillBefore(i.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,s)?a:null}function H(e){return e.spec.defining||e.spec.definingForContent}function $(e,t,n,o,i){if(t<n){let r=e.firstChild;e=e.replaceChild(0,r.copy($(r.content,t+1,n,o,r)))}if(t>o){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r.FK.empty,!0))}return e}function z(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}class W extends d{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return p.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let o=t.type.create(n,null,t.marks);return p.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(o),0,t.isLeaf?0:1))}getMap(){return l.empty}invert(e){return new W(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new W(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new W(t.pos,t.attr,t.value)}}d.jsonID("attr",W);class G extends d{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return p.ok(n)}getMap(){return l.empty}invert(e){return new G(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new G(t.attr,t.value)}}d.jsonID("docAttr",G);let X=class extends Error{};X=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(X.prototype=Object.create(Error.prototype)).constructor=X,X.prototype.name="TransformError";class V{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new c}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new X(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,o,i)=>{e=Math.min(e,o),t=Math.max(t,i)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.Ji.empty){let o=j(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,n){return this.replace(e,t,new r.Ji(r.FK.from(n),0,0))}delete(e,t){return this.replace(e,t,r.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),s=e.doc.resolve(n);if(M(i,s,o))return e.step(new y(t,n,o));let a=z(i,s);0==a[a.length-1]&&a.pop();let l=-(i.depth+1);a.unshift(l);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?l=e:i.before(e)==t&&a.splice(1,0,-e)}let c=a.indexOf(l),u=[],d=o.openStart;for(let e=o.content,t=0;;t++){let n=e.firstChild;if(u.push(n),t==o.openStart)break;e=n.content}for(let e=d-1;e>=0;e--){let t=u[e],n=H(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(l)-1)))d=e;else if(n||!t.type.isTextblock)break}for(let t=o.openStart;t>=0;t--){let l=(t+d+1)%(o.openStart+1),p=u[l];if(p)for(let t=0;t<a.length;t++){let u=a[(t+c)%a.length],d=!0;u<0&&(d=!1,u=-u);let f=i.node(u-1),h=i.index(u-1);if(f.canReplaceWith(h,h,p.type,p.marks))return e.replace(i.before(u),d?s.after(u):n,new r.Ji($(o.content,0,o.openStart,l),l,o.openEnd))}}let p=e.steps.length;for(let r=a.length-1;r>=0&&(e.replace(t,n,o),!(e.steps.length>p));r--){let e=a[r];e<0||(t=i.before(e),n=s.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,o){if(!o.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}(e.doc,t,o.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r.Ji(r.FK.from(o),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=z(r,o);for(let t=0;t<i.length;t++){let n=i[t],s=t==i.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),o.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return e.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:o,$to:i,depth:s}=t,a=o.before(s+1),l=i.after(s+1),c=a,u=l,d=r.FK.empty,p=0;for(let e=s,t=!1;e>n;e--)t||o.index(e)>0?(t=!0,d=r.FK.from(o.node(e).copy(d)),p++):c--;let f=r.FK.empty,h=0;for(let e=s,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=r.FK.from(i.node(e).copy(f)),h++):u++;e.step(new b(c,u,a,l,new r.Ji(d.append(f),p,h),d.size-p,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let o=null,{linebreakReplacement:i}=e.doc.type.schema,s=e.doc.resolve(t-n),a=s.node().type;if(i&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(i);e&&!t?o=!1:!e&&t&&(o=!0)}let l=e.steps.length;if(!1===o){let r=e.doc.resolve(t+n);
vendor: 3,657 bytes, line 2
2A(e,r.node(),r.before(),l)}a.inlineContent&&S(e,t+n-1,a,s.node().contentMatchAt(s.index()),null==o);let c=e.mapping.slice(l),u=c.map(t-n);if(e.step(new y(u,c.map(t+n,-1),r.Ji.empty,!0)),!0===o){let t=e.doc.resolve(u);T(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return function(e,t,n){let o=r.FK.empty;for(let e=n.length-1;e>=0;e--){if(o.size){let t=n[e].type.contentMatch.matchFragment(o);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=r.FK.from(n[e].type.create(n[e].attrs,o))}let i=t.start,s=t.end;e.step(new b(i,s,i,s,new r.Ji(o,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,o=null){return function(e,t,n,o,i){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let a="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(o,a)&&function(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(s).map(n),o)){let i=null;if(o.schema.linebreakReplacement){let e="pre"==o.whitespace,t=!!o.contentMatch.matchType(o.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&A(e,t,n,s),S(e,e.mapping.slice(s).map(n,1),o,void 0,null===i);let l=e.mapping.slice(s),c=l.map(n,1),u=l.map(n+t.nodeSize,1);return e.step(new b(c,u,c+1,u-1,new r.Ji(r.FK.from(o.create(a,null,t.marks)),0,0),1,!0)),!0===i&&T(e,t,n,s),!1}})}(this,e,t,n,o),this}setNodeMarkup(e,t,n=null,o){return function(e,t,n,o,i){let s=e.doc.nodeAt(t);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(o,null,i||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new b(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new r.Ji(r.FK.from(a),0,0),1,!0))}(this,e,t,n,o),this}setNodeAttribute(e,t,n){return this.step(new W(e,t,n)),this}setDocAttribute(e,t){return this.step(new G(e,t)),this}addNodeMark(e,t){return this.step(new v(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t instanceof r.CU)t.isInSet(n.marks)&&this.step(new g(e,t));else{let r,o=n.marks,i=[];for(;r=t.isInSet(o);)i.push(new g(e,r)),o=r.removeFromSet(o);for(let e=i.length-1;e>=0;e--)this.step(i[e])}return this}split(e,t=1,n){return function(e,t,n=1,o){let i=e.doc.resolve(t),s=r.FK.empty,a=r.FK.empty;for(let e=i.depth,t=i.depth-n,l=n-1;e>t;e--,l--){s=r.FK.from(i.node(e).copy(s));let t=o&&o[l];a=r.FK.from(t?t.type.create(t.attrs,a):i.node(e).copy(a))}e.step(new y(t,t,new r.Ji(s.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,r){let o,i,s=[],a=[];e.doc.nodesBetween(t,n,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),d=Math.min(l+e.nodeSize,n),p=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(o&&o.to==c&&o.mark.eq(u[e])?o.to=d:s.push(o=new m(c,d,u[e])));i&&i.to==c?i.to=d:a.push(i=new h(c,d,r))}}),s.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,o){let i=[],s=0;e.doc.nodesBetween(t,n,(e,a)=>{if(!e.isInline)return;s++;let l=null;if(o instanceof r.sX){let t,n=e.marks;for(;t=o.isInSet(n);)(l||(l=[])).push(t),n=t.removeFromSet(n)}else o?o.isInSet(e.marks)&&(l=[o]):l=e.marks;if(l&&l.length){let r=Math.min(a+e.nodeSize,n);for(let e=0;e<l.length;e++){let n,o=l[e];for(let e=0;e<i.length;e++){let t=i[e];t.step==s-1&&o.eq(i[e].style)&&(n=t)}n?(n.to=r,n.step=s):i.push({style:o,from:Math.max(a,t),to:r,step:s})}}}
vendor: 10,029 bytes, line 2
2),i.forEach(t=>e.step(new m(t.from,t.to,t.style)))}(this,e,t,n),this}clearIncompatible(e,t,n){return S(this,e,t,n),this}}},1575(e,t,n){"use strict";n.d(t,{Lz:()=>gn,NZ:()=>$t,zF:()=>Gt});var r=n(42845),o=n(58903),i=n(38262);const s=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},a=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let l=null;const c=function(e,t,n){let r=l||(l=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},u=function(e,t,n,r){return n&&(p(e,t,n,r,-1)||p(e,t,n,r,1))},d=/^(img|br|input|textarea|hr)$/i;function p(e,t,n,r,o){for(var i;;){if(e==n&&t==r)return!0;if(t==(o<0?0:f(e))){let n=e.parentNode;if(!n||1!=n.nodeType||h(e)||d.test(e.nodeName)||"false"==e.contentEditable)return!1;t=s(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;{let n=e.childNodes[t+(o<0?-1:0)];if(1==n.nodeType&&"false"==n.contentEditable){if(!(null===(i=n.pmViewDesc)||void 0===i?void 0:i.ignoreForSelection))return!1;t+=o}else e=n,t=o<0?f(e):0}}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function h(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const m=function(e){return e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function v(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const g="undefined"!=typeof navigator?navigator:null,y="undefined"!=typeof document?document:null,b=g&&g.userAgent||"",w=/Edge\/(\d+)/.exec(b),S=/MSIE \d/.exec(b),k=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(b),_=!!(S||k||w),O=S?document.documentMode:k?+k[1]:w?+w[1]:0,C=!_&&/gecko\/(\d+)/i.test(b);C&&(/Firefox\/(\d+)/.exec(b)||[0,0])[1];const T=!_&&/Chrome\/(\d+)/.exec(b),A=!!T,E=T?+T[1]:0,x=!_&&!!g&&/Apple Computer/.test(g.vendor),P=x&&(/Mobile\/\w+/.test(b)||!!g&&g.maxTouchPoints>2),I=P||!!g&&/Mac/.test(g.platform),L=!!g&&/Win/.test(g.platform),j=/Android \d/.test(b),M=!!y&&"webkitFontSmoothing"in y.documentElement.style,D=M?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function R(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function N(e,t){return"number"==typeof e?e:e[t]}function F(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function B(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(1!=s.nodeType){s=a(s);continue}let e=s,n=e==i.body,l=n?R(i):F(e),c=0,u=0;if(t.top<l.top+N(r,"top")?u=-(l.top-t.top+N(o,"top")):t.bottom>l.bottom-N(r,"bottom")&&(u=t.bottom-t.top>l.bottom-l.top?t.top+N(o,"top")-l.top:t.bottom-l.bottom+N(o,"bottom")),t.left<l.left+N(r,"left")?c=-(l.left-t.left+N(o,"left")):t.right>l.right-N(r,"right")&&(c=t.right-l.right+N(o,"right")),c||u)if(n)i.defaultView.scrollBy(c,u);else{let n=e.scrollLeft,r=e.scrollTop;u&&(e.scrollTop+=u),c&&(e.scrollLeft+=c);let o=e.scrollLeft-n,i=e.scrollTop-r;t={left:t.left-o,top:t.top-i,right:t.right-o,bottom:t.bottom-i}}let d=n?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(d))break;s="absolute"==d?s.offsetParent:a(s)}}function U(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=a(r));return t}function H(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:o,left:i}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=i&&(r.scrollLeft=i)}}let $=null;function z(e,t){let n,r,o,i,s=2e8,a=0,l=t.top,u=t.top;for(let d=e.firstChild,p=0;d;d=d.nextSibling,p++){let e;if(1==d.nodeType)e=d.getClientRects();else{if(3!=d.nodeType)continue;e=c(d).getClientRects()}for(let c=0;c<e.length;c++){let f=e[c];if(f.top<=l&&f.bottom>=u){l=Math.max(f.bottom,l),u=Math.min(f.top,u);let e=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(e<s){n=d,s=e,r=e&&3==n.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==d.nodeType&&e&&(a=p+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!o&&f.left<=t.left&&f.right>=t.left&&(o=d,i={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(a=p+1)}}return!n&&o&&(n=o,r=i,s=0),n&&3==n.nodeType?function(e,t){let n,r=e.nodeValue.length,o=document.createRange();for(let i=0;i<r;i++){o.setEnd(e,i+1),o.setStart(e,i);let r=K(o,1);if(r.top!=r.bottom&&W(t,r)){n={node:e,offset:i+(t.left>=(r.left+r.right)/2?1:0)};break}}return o.detach(),n||{node:e,offset:0}}(n,r):!n||s&&1==n.nodeType?{node:e,offset:a}:z(n,r)}function W(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function G(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=e.childNodes[i];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if(W(t,o))return G(n,t,o)}}if((i=(i+1)%r)==o)break}return e}function X(e,t){let n,r=e.dom.ownerDocument,o=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(f(r.offsetNode),r.offset)}}catch(e){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(f(r.startContainer),r.startOffset)}}}(r,t.left,t.top);i&&({node:n,offset:o}=i);let s,l=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!l||!e.dom.contains(1!=l.nodeType?l.parentNode:l)){let n=e.dom.getBoundingClientRect();if(!W(t,n))return null;if(l=G(e.dom,t,n),!l)return null}if(x)for(let e=l;n&&e;e=a(e))e.draggable&&(n=void 0);if(l=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(l,t),n){if(C&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}let r;M&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(s=function(e,t,n,r){let o=-1;for(let n=t,i=!1;n!=e.dom;){let t,s=e.docView.nearestDesc(n,!0);if(!s)return null;if(1==s.dom.nodeType&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((t=s.dom.getBoundingClientRect()).width||t.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!i&&t.left>r.left||t.top>r.top?o=s.posBefore:(!i&&t.right<r.left||t.bottom<r.top)&&(o=s.posAfter),i=!0),!s.contentDOM&&o<0&&!s.node.isText))return(s.node.isBlock?r.top<(t.top+t.bottom)/2:r.left<(t.left+t.right)/2)?s.posBefore:s.posAfter;n=s.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}(e,n,o,t))}null==s&&(s=function(e,t,n){let{node:r,offset:o}=z(t,n),i=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();i=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,i)}(e,l,t));let c=e.docView.nearestDesc(l,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function V(e){return e.top<e.bottom||e.left<e.right}function K(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(V(e))return e}return Array.prototype.find.call(n,V)||e.getBoundingClientRect()}const q=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Y(e,t,n){let{node:r,offset:o,atom:i}=e.docView.domFromPos(t,n<0?-1:1),s=M||C;if(3==r.nodeType){if(!s||!q.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,i=n<0?1:-1;return n<0&&!o?(t++,i=-1):n>=0&&o==r.nodeValue.length?(e--,i=1):n<0?e--:t++,Q(K(c(r,e,t),i),i<0)}{let e=K(c(r,o,o),n);if(C&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=K(c(r,o-1,o-1),-1);if(t.top==e.top){let n=K(c(r,o,o+1),-1);if(n.top!=e.top)return Q(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==f(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return J(e.getBoundingClientRect(),!1)}if(null==i&&o<f(r)){let e=r.childNodes[o];if(1==e.nodeType)return J(e.getBoundingClientRect(),!0)}return J(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==f(r))){let e=r.childNodes[o-1],t=3==e.nodeType?c(e,f(e)-(s?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return Q(K(t,1),!1)}if(null==i&&o<f(r)){let e=r.childNodes[o];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?c(e,0,s?0:1):1==e.nodeType?e:null:null;if(t)return Q(K(t,-1),!0)}return Q(K(3==r.nodeType?c(r):r,-n),n>=0)}function Q(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function J(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Z(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}const ee=/[\u0590-\u08ac]/;let te=null,ne=null,re=!1;function oe(e,t,n){return te==t&&ne==n?re:(te=t,ne=n,re="up"==n||"down"==n?function(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return Z(e,t,()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=Y(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0})}
vendor: 5,824 bytes, line 2
2(e,t,n):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,a=e.domSelection();return a?ee.test(r.parent.textContent)&&a.modify?Z(e,t,()=>{let{focusNode:t,focusOffset:o,anchorNode:i,anchorOffset:s}=e.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&o==d;try{a.collapse(i,s),t&&(t!=i||o!=s)&&a.extend&&a.extend(t,o)}catch(e){}return null!=l&&(a.caretBidiLevel=l),p}):"left"==n||"backward"==n?i:s:r.pos==r.start()||r.pos==r.end()}(e,t,n))}class ie{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>s(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let o=this.children[n],i=t+o.size;if(i>e||o instanceof pe){r=e-t;break}t=i}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof se&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?s(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?s(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,a=0;;a++){let n=this.children[a],l=i+n.size;if(-1==r&&e<=l){let o=i+n.border;if(e>=o&&t<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=i;for(let t=a;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=s(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(l>t||a==this.children.length-1)){t=l;for(let e=a+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=s(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let o=Math.min(e,t),i=Math.max(e,t);for(let s=0,a=0;s<this.children.length;s++){let l=this.children[s],c=a+l.size;if(o>a&&i<c)return l.setSelection(e-a-l.border,t-a-l.border,n,r);a=c}let a=this.domFromPos(e,e?-1:1),l=t==e?a:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),d=n.domSelectionRange(),p=!1;if((C||x)&&e==t){let{node:e,offset:t}=a;if(3==e.nodeType){if(p=!(!t||"\n"!=e.nodeValue[t-1]),p&&t==e.nodeValue.length)for(let t,n=e;n;n=n.parentNode){if(t=n.nextSibling){"BR"==t.nodeName&&(a=l={node:t.parentNode,offset:s(t)+1}
vendor: 3,782 bytes, line 2
2);break}let e=n.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];p=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(C&&d.focusNode&&d.focusNode!=l.node&&1==d.focusNode.nodeType){let e=d.focusNode.childNodes[d.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||p&&x)&&u(a.node,a.offset,d.anchorNode,d.anchorOffset)&&u(l.node,l.offset,d.focusNode,d.focusOffset))return;let f=!1;if((c.extend||e==t)&&(!p||!C)){c.collapse(a.node,a.offset);try{e!=t&&c.extend(l.node,l.offset),f=!0}catch(e){}}if(!f){if(e>t){let e=a;a=l,l=e}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){let r=n+o.border,s=i-o.border;if(e>=r&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=r||t!=s||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class se extends ie{constructor(e,t,n,r){let o,i=t.type.toDOM;if("function"==typeof i&&(i=i(n,()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r)),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class ae extends ie{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class le extends ie{constructor(e,t,n,r,o){super(e,[],n,r),this.mark=t,this.spec=o}static create(e,t,n,r){let i=r.nodeViews[t.type.name],s=i&&i(t,r,n);return s&&s.dom||(s=o.ZF.renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new le(e,t,s.dom,s.contentDOM||s.dom,s)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=le.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;t<i&&(o=Ce(o,t,i,n)),e>0&&(o=Ce(o,0,e,n));for(let e=0;e<o.length;e++)o[e].parent=r;return r.children=o,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ce extends ie{constructor(e,t,n,r,o,i,s,a,l){super(e,[],o,i),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=s}static create(e,t,n,r,i,s){let a,l=i.nodeViews[t.type.name],c=l&&l(t,i,(
vendor: 5,429 bytes, line 2
2)=>a?a.parent?a.parent.posBeforeChild(a):void 0:s,n,r),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=o.ZF.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:d}=e)}d||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let p=u;return u=we(u,n,t),c?a=new fe(e,t,n,r,u,d||null,p,c,i,s+1):t.isText?new de(e,t,n,r,u,p,i):new ce(e,t,n,r,u,d||null,p,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>o.FK.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&Se(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,l=new _e(this,s&&s.node,e);!function(e,t,n,r){let o=t.locals(e),i=0;if(0==o.length){for(let n=0;n<e.childCount;n++){let s=e.child(n);r(s,o,t.forChild(i,s),n),i+=s.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d,p,f;for(;s<o.length&&o[s].to==i;){let e=o[s++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(Oe);for(let e=0;e<d.length;e++)n(d[e],c,!!l)}else n(u,c,!!l);if(l)f=-1,p=l,l=null;else{if(!(c<e.childCount))break;f=c,p=e.child(c++)}for(let e=0;e<a.length;e++)a[e].to<=i&&a.splice(e--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)a.push(o[s++]);let h=i+p.nodeSize;if(p.isText){let e=h;s<o.length&&o[s].from<e&&(e=o[s].from);for(let t=0;t<a.length;t++)a[t].to<e&&(e=a[t].to);e<h&&(l=p.cut(e-i),p=p.cut(0,e-i),h=e,f=-1)}else for(;s<o.length&&o[s].to<h;)s++;r(p,p.isInline&&!p.isLeaf?a.filter(e=>!e.inline):a.slice(),t.forChild(i,p),f),i=h}}(this.node,this.innerDeco,(t,i,s)=>{t.spec.marks?l.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!s&&l.syncToMarks(i==this.node.childCount?o.CU.none:this.node.child(i).marks,n,e,i),l.placeWidget(t,e,r)},(t,o,s,c)=>{let u;l.syncToMarks(t.marks,n,e,c),l.findNodeMatch(t,o,s,c)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(t,o,s,u,e)||l.updateNextNode(t,o,s,e,c,r)||l.addNode(t,o,s,e,r),r+=t.nodeSize}),l.syncToMarks([],n,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),he(this.contentDOM,this.children,e),P&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:o}=e.state.selection;if(!(e.state.selection instanceof r.U3)||n<t||o>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,r=function(e,t,n,r){for(let o=0,i=0;o<e.childCount&&i<=r;){let s=e.child(o++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;o<e.childCount;){let t=e.child(o++);if(i+=t.nodeSize,!t.isText)break;l+=t.text}if(i>=n){if(i>=r&&l.slice(r-t.length-a,r-a)==t)return r-t.length;let e=a<r?l.lastIndexOf(t,r-a-1):-1;if(e>=0&&e+t.length+a>=n)return a+e;if(n==r&&l.length>=r+t.length-a&&l.slice(r-a,r-a+t.length)==t)return r}}return-1}(this.node.content,e,n-t,o-t);return r<0?null:{node:i,pos:r,text:e}}return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let o=t;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new ae(this,o,t,r);e.input.compositionNodes.push(i),this.children=Ce(this.children,n,n+r.length,e,i)}update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(Se(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=ye(this.dom,this.nodeDOM,ge(this.outerDeco,this.node,t),ge(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function ue(e,t,n,r,o){we(r,t,e);let i=new ce(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class de extends ce{constructor(e,t,n,r,o,i,s){super(e,t,n,r,o,null,i,s,0
vendor: 5,734 bytes, line 2
2)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new de(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class pe extends ie{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class fe extends ce{constructor(e,t,n,r,o,i,s,a,l,c){super(e,t,n,r,o,i,s,l,c),this.spec=a}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function he(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i<t.length;i++){let s=t[i],a=s.dom;if(a.parentNode==e){for(;a!=r;)r=ke(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(a,r);if(s instanceof le){let t=r?r.previousSibling:e.lastChild;he(s.contentDOM,s.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=ke(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const me=function(e){e&&(this.nodeName=e)};me.prototype=Object.create(null);const ve=[new me];function ge(e,t,n){if(0==e.length)return ve;let r=n?ve[0]:new me,o=[r];for(let i=0;i<e.length;i++){let s=e[i].type.attrs;if(s){s.nodeName&&o.push(r=new me(s.nodeName));for(let e in s){let i=s[e];null!=i&&(n&&1==o.length&&o.push(r=new me(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+i:"style"==e?r.style=(r.style?r.style+";":"")+i:"nodeName"!=e&&(r[e]=i))}}}return o}function ye(e,t,n,r){if(n==ve&&r==ve)return t;let o=t;for(let t=0;t<r.length;t++){let i=r[t],s=n[t];if(t){let t;s&&s.nodeName==i.nodeName&&o!=e&&(t=o.parentNode)&&t.nodeName.toLowerCase()==i.nodeName||(t=document.createElement(i.nodeName),t.pmIsDeco=!0,t.appendChild(o),s=ve[0]),o=t}be(o,s||ve[0],i)}return o}function be(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function we(e,t,n){return ye(e,e,ve,ge(t,n,1!=e.nodeType))}function Se(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function ke(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class _e{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,o=e.childCount,i=new Map,s=[];e:for(;o>0;){let a;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof le)){a=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=e.child(o-1))break;--o,i.set(a,o),s.push(a)}}return{index:o,matched:i,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&!1!==e[o].type.spec.spanning;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let o=-1,s=this.top.children.length;r<this.preMatch.index&&(s=Math.min(this.index+3,s));for(let t=this.index;t<s;t++){let n=this.top.children[t];if(n.matchesMark(e[i])&&!this.isLocked(n.dom)){o=t;break}}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let r=le.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,n,r){let o,i=-1;
vendor: 5,260 bytes, line 2
2if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(e,t,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,o){let i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,i){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof ce){let l=this.preMatch.matched.get(a);if(null!=l&&l!=o)return!1;let c,u=a.dom,d=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&Se(t,a.outerDeco));if(!d&&a.update(e,t,n,r))return this.destroyBetween(this.index,s),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(a,e,t,n,r,i)))return this.destroyBetween(this.index,s),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(r,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,i){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Se(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let s=ce.create(this.top,t,n,r,o,i);if(s.contentDOM){s.children=e.children,e.children=[];for(let e of s.children)e.parent=s}return e.destroy(),s}addNode(e,t,n,r,o){let i=ce.create(this.top,e,t,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new se(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof le;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof de)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((x||A)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new pe(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function Oe(e,t){return e.type.side-t.type.side}function Ce(e,t,n,r,o){let i=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),o&&(i.push(o),o=void 0),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function Te(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&0==i.size,l=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c,u,d=o.resolve(l);if(m(n)){for(c=l;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&r.nh.isSelectable(e)&&i.parent&&(!e.isInline||!function(e,t,n){for(let r=0==t,o=t==f(e);r||o;){if(e==n)return!0;let t=s(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==f(e)}}(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;u=new r.nh(l==e?d:o.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=l,r=l;for(let o=0;o<n.rangeCount;o++){let i=n.getRangeAt(o);t=Math.min(t,e.docView.posFromDOM(i.startContainer,i.startOffset,1)),r=Math.max(r,e.docView.posFromDOM(i.endContainer,i.endOffset,-1))}if(t<0)return null;[c,l]=r==e.state.selection.anchor?[r,t]:[t,r],d=o.resolve(l)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let p=o.resolve(c);if(!u){u=De(e,p,d,"pointer"==t||e.state.selection.head<d.pos&&!a?1:-1)}return u}function Ae(e){return e.editable?e.hasFocus():Ne(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Ee(e,t=!1){let n=e.state.selection;if(je(e,n),Ae(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&A){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&u(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r="IMG"==n.nodeName;r?t.collapse(n.parentNode,s(n)+1):t.collapse(n,0);!r&&!e.state.selection.visible&&_&&O<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{let o,i,{anchor:s,head:a}=n;!xe||n instanceof r.U3||(n.$from.parent.inlineContent||(o=Pe(e,n.from)),n.empty||n.$from.parent.inlineContent||(i=Pe(e,n.to))
vendor: 4,396 bytes, line 2
2),e.docView.setSelection(s,a,e,t),xe&&(o&&Le(o),i&&Le(i)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{Ae(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const xe=x||A&&E<63;function Pe(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(x&&o&&"false"==o.contentEditable)return Ie(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return Ie(o);if(i)return Ie(i)}}function Ie(e){return e.contentEditable="true",x&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Le(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function je(e,t){if(t instanceof r.nh){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Me(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Me(e)}function Me(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function De(e,t,n,o){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r.U3.between(t,n,o)}function Re(e){return!(e.editable&&!e.hasFocus())&&Ne(e)}function Ne(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Fe(e,t){let{$anchor:n,$head:o}=e.selection,i=t>0?n.max(o):n.min(o),s=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return s&&r.LN.findFrom(s,t)}function Be(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ue(e,t,n){let o=e.state.selection;if(!(o instanceof r.U3)){if(o instanceof r.nh&&o.node.isInline)return Be(e,new r.U3(t>0?o.$to:o.$from));{let n=Fe(e.state,t);return!!n&&Be(e,n)}}if(n.indexOf("s")>-1){let{$head:n}=o,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return Be(e,new r.U3(o.$anchor,s))}if(!o.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=Fe(e.state,t);return!!(n&&n instanceof r.nh)&&Be(e,n)}if(!(I&&n.indexOf("m")>-1)){let n,i=o.$head,s=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!s||s.isText)return!1;let a=t<0?i.pos-s.nodeSize:i.pos;return!!(s.isAtom||(n=e.docView.descAt(a))&&!n.contentDOM)&&(r.nh.isSelectable(s)?Be(e,new r.nh(t<0?e.state.doc.resolve(i.pos-s.nodeSize):i)):!!M&&Be(e,new r.U3(e.state.doc.resolve(t<0?a:a+s.nodeSize))))}}function He(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function $e(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function ze(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=!1;C&&1==n.nodeType&&r<He(n)&&$e(n.childNodes[r],-1)&&(a=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if($e(e,-1))o=n,i=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(We(n))break;{let t=n.previousSibling;for(;t&&$e(t,-1);)o=n.parentNode,i=s(t),t=t.previousSibling;if(t)n=t,r=He(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?Ge(e,n,r):o&&Ge(e,o,i)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=He(n);for(;;)if(r<a){if(1!=n.nodeType)break;if(!$e(n.childNodes[r],1))break;o=n,i=++r}else{if(We(n))break;{let t=n.nextSibling;for(;t&&$e(t,1);)o=t.parentNode,i=s(t)+1,t=t.nextSibling;if(t)n=t,r=0,a=He(n);else{if(n=n.parentNode,n==e.dom)break;r=a=0}}}o&&Ge(e,o,i)}(e)}function We(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ge(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!h(e);)t=s(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];
vendor: 4,150 bytes, line 2
2if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!h(e);)t=s(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(m(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout(()=>{e.state==o&&Ee(e)},50)}function Xe(e,t){let n=e.state.doc.resolve(t);if(!A&&!L&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function Ve(e,t,n){let o=e.state.selection;if(o instanceof r.U3&&!o.empty||n.indexOf("s")>-1)return!1;if(I&&n.indexOf("m")>-1)return!1;let{$from:i,$to:s}=o;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=Fe(e.state,t);if(n&&n instanceof r.nh)return Be(e,n)}if(!i.parent.inlineContent){let n=t<0?i:s,a=o instanceof r.i5?r.LN.near(n,t):r.LN.findFrom(n,t);return!!a&&Be(e,a)}return!1}function Ke(e,t){if(!(e.state.selection instanceof r.U3))return!0;let{$head:n,$anchor:o,empty:i}=e.state.selection;if(!n.sameParent(o))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let r=e.state.tr;return t<0?r.delete(n.pos-s.nodeSize,n.pos):r.delete(n.pos,n.pos+s.nodeSize),e.dispatch(r),!0}return!1}function qe(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Ye(e,t){let n=t.keyCode,r=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||I&&72==n&&"c"==r)return Ke(e,-1)||ze(e,-1);if(46==n&&!t.shiftKey||I&&68==n&&"c"==r)return Ke(e,1)||ze(e,1);if(13==n||27==n)return!0;if(37==n||I&&66==n&&"c"==r){let t=37==n?"ltr"==Xe(e,e.state.selection.from)?-1:1:-1;return Ue(e,t,r)||ze(e,t)}if(39==n||I&&70==n&&"c"==r){let t=39==n?"ltr"==Xe(e,e.state.selection.from)?1:-1:1;return Ue(e,t,r)||ze(e,t)}return 38==n||I&&80==n&&"c"==r?Ve(e,-1,r)||ze(e,-1):40==n||I&&78==n&&"c"==r?function(e){if(!x||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;qe(e,n,"true"),setTimeout(()=>qe(e,n,"false"),20)}return!1}(e)||Ve(e,1,r)||ze(e,1):r==(I?"m":"c")&&(66==n||73==n||89==n||90==n)}function Qe(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:s}=t;for(;i>1&&s>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,s--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||o.ZF.fromSchema(e.state.schema),l=at(),c=l.createElement("div");c.appendChild(a.serializeFragment(r,{document:l}));let u,d=c.firstChild,p=0;for(;d&&1==d.nodeType&&(u=it[d.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=l.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),p++}d=c.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",`${i} ${s}${p?` -${p}`:""} ${JSON.stringify(n)}`),{dom:c,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function Je(e,t,n,r,i){let s,a,l=i.parent.type.spec.code;if(!n&&!t)return null;let c=!!t&&(r||l||!n);if(c){if(e.someProp("transformPastedText",n=>{t=n(t,l||r,e)}),l)return a=new o.Ji(o.FK.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{a=t(a,e,!0)}),a;let n=e.someProp("clipboardTextParser",n=>n(t,i,r,e));if(n)a=n;else{let n=i.marks(),{schema:r}=e.state,a=o.ZF.fromSchema(r);
2s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=s.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),s=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=at().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(n=o&&it[o[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"</"+e+">").reverse().join(""));if(r.innerHTML=function(e){let t=window.trustedTypes;if(!t)return e;lt||(lt=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return lt.createHTML(e)}(e),n)for(let e=0;e<n.length;e++)r=r.querySelector(n[e])||r;return r}(n),M&&function(e){let t=e.querySelectorAll(A?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&"Â "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let e=+d[3];e>0;e--){let e=s.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;s=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||o.S4.fromSchema(e.state.schema);a=t.parseSlice(s,{preserveWhitespace:!(!c&&!d),context:i,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Ze.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(d)a=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}let{content:i,openStart:s,openEnd:a}=e;for(let e=n.length-2;e>=0;e-=2){let t=r.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;i=o.FK.from(t.create(n[e+1],i)),s++,a++}return new o.Ji(i,s,a)}(ot(a,+d[1],+d[2]),d[4]);else if(a=o.Ji.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,i=t.node(n).contentMatchAt(t.index(n)),s=[];if(e.forEach(e=>{if(!s)return;let t,n=i.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&tt(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=nt(s[s.length-1],r.length));let t=et(e,n);s.push(t),i=i.matchType(t.type),r=n}}),s)return o.FK.from(s)}return e}(a.content,i),!0),a.openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e<a.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=a.content.lastChild;t<a.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);a=ot(a,e,t)}return e.someProp("transformPasted",t=>{a=t(a,e,c)}),a}const Ze=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function et(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,o.FK.from(e));return e}function tt(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let s=tt(e,t,n,r.lastChild,i+1);if(s)return r.copy(r.content.replaceChild(r.childCount-1,s));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(o.FK.from(et(n,e,i+1))))}}function nt(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,nt(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(o.FK.empty,!0);return e.copy(n.append(r))}function rt(e,t,n,r,i,s){let a=t<0?e.firstChild:e.lastChild,l=a.content;return e.childCount>1&&(s=0),i<r-1&&(l=rt(l,t,n,r,i+1,s)),i>=n&&(l=t<0?a.contentMatchAt(0).fillBefore(l,s<=i).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(o.FK.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(l))}function ot(e,t,n){return t<e.openStart&&(e=new o.Ji(rt(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new o.Ji(rt(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const it={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let st=null;function at(){return st||(st=document.implementation.createHTMLDocument("title"))}let lt=null;const ct={},ut={},dt={touchstart:!0,touchmove:!0};class pt{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ft(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function ht(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>mt(e,t))})}function mt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function vt(e,t){if(!t.bubbles)return!0;
vendor: 9,937 bytes, line 2
2if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function gt(e){return{left:e.clientX,top:e.clientY}}function yt(e,t,n,r,o){if(-1==r)return!1;let i=e.state.doc.resolve(r);for(let r=i.depth+1;r>0;r--)if(e.someProp(t,t=>r>i.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1)))return!0;return!1}function bt(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function wt(e,t,n,o,i){return yt(e,"handleClickOn",t,n,o)||e.someProp("handleClick",n=>n(e,t,o))||(i?function(e,t){if(-1==t)return!1;let n,o,i=e.state.selection;i instanceof r.nh&&(n=i.node);let s=e.state.doc.resolve(t);for(let e=s.depth+1;e>0;e--){let t=e>s.depth?s.nodeAfter:s.node(e);if(r.nh.isSelectable(t)){o=n&&i.$from.depth>0&&e>=i.$from.depth&&s.before(i.$from.depth+1)==i.$from.pos?s.before(i.$from.depth):s.before(e);break}}return null!=o&&(bt(e,r.nh.create(e.state.doc,o),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return!!(o&&o.isAtom&&r.nh.isSelectable(o))&&(bt(e,new r.nh(n),"pointer"),!0)}(e,n))}function St(e,t,n,r){return yt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function kt(e,t,n,o){return yt(e,"handleTripleClickOn",t,n,o)||e.someProp("handleTripleClick",n=>n(e,t,o))||function(e,t,n){if(0!=n.button)return!1;let o=e.state.doc;if(-1==t)return!!o.inlineContent&&(bt(e,r.U3.create(o,0,o.content.size),"pointer"),!0);let i=o.resolve(t);for(let t=i.depth+1;t>0;t--){let n=t>i.depth?i.nodeAfter:i.node(t),s=i.before(t);if(n.inlineContent)bt(e,r.U3.create(o,s+1,s+1+n.content.size),"pointer");else{if(!r.nh.isSelectable(n))continue;bt(e,r.nh.create(o,s),"pointer")}return!0}}(e,n,o)}function _t(e){return It(e)}ut.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!Tt(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!j||!A||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!P||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||Ye(e,n)?n.preventDefault():ft(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},ut.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},ut.keypress=(e,t)=>{let n=t;if(Tt(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||I&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let o=e.state.selection;if(!(o instanceof r.U3&&o.$from.sameParent(o.$to))){let t=String.fromCharCode(n.charCode),r=()=>e.state.tr.insertText(t).scrollIntoView();/[\r\n]/.test(t)||e.someProp("handleTextInput",n=>n(e,o.$from.pos,o.$to.pos,t,r))||e.dispatch(r()),n.preventDefault()}};const Ot=I?"metaKey":"ctrlKey";ct.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=_t(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[Ot]&&e.input.lastClick.button==n.button&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=e.posAtCoords(gt(n));s&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Ct(e,s,n,!!r)):("doubleClick"==i?St:kt)(e,s.pos,s.inside,n)?n.preventDefault():ft(e,"pointer"))};class Ct{constructor(e,t,n,o){let i,s;if(this.view=e,this.pos=t,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[Ot],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,s=n.depth?n.before():0}const a=o?null:n.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=e.state;(0==n.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||c instanceof r.nh&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!C||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ft(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Ee(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(gt(e))),this.updateAllowDefault(e),this.allowDefault||!t?ft(this.view,"pointer"):wt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||x&&this.mightDrag&&!this.mightDrag.node.isAtom||A&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(bt(this.view,r.LN.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):ft(this.view,"pointer")}move(e){this.updateAllowDefault(e),ft(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function Tt(e,t){return!!e.composing||!!(x&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}ct.touchstart=e=>{e.input.lastTouch=Date.now(),_t(e),ft(e,"pointer")},ct.touchmove=e=>{e.input.lastTouch=Date.now(),ft(e,"pointer")},ct.contextmenu=e=>_t(e);const At=j?5e3:-1;function Et(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>It(e),t))}function xt(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Pt(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=f(e=e.childNodes[t-1])}else{if(!e.parentNode||h(e))return null;t=s(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||h(e))return null;t=s(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function It(e,t=!1){if(!(j&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),xt(e),t||e.docView&&e.docView.dirty){let n=Te(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}ut.compositionstart=ut.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof r.U3&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)||A&&L&&function(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||1!=t.nodeType||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return 1==r.nodeType&&"false"==r.contentEditable}(e)))e.markCursor=e.state.storedMarks||n.marks(),It(e,!0),e.markCursor=null;else if(It(e,!t.selection.empty),C&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}Et(e,At)},ut.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Et(e,20))};const Lt=_&&O<15||P&&D<604;function jt(e,t,n,r,i){let s=Je(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,i,s||o.Ji.empty)))return!0;if(!s)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(s),l=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(s);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Mt(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ct.copy=ut.cut=(e,t)=>
vendor: 16,468 bytes, line 2
2{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let i=Lt?null:n.clipboardData,s=r.content(),{dom:a,text:l}=Qe(e,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,a),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ut.paste=(e,t)=>{let n=t;if(e.composing&&!j)return;let r=Lt?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&jt(e,Mt(r),r.getData("text/html"),o,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?jt(e,r.value,null,o,t):jt(e,r.textContent,r.innerHTML,o,t)},50)}(e,n)};class Dt{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}const Rt=I?"altKey":"ctrlKey";function Nt(e,t){let n=e.someProp("dragCopies",e=>!e(t));return null!=n?n:!t[Rt]}ct.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let i,s=e.state.selection,a=s.empty?null:e.posAtCoords(gt(n));if(a&&a.pos>=s.from&&a.pos<=(s instanceof r.nh?s.to-1:s.to));else if(o&&o.mightDrag)i=r.nh.create(e.state.doc,o.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(i=r.nh.create(e.state.doc,t.posBefore))}let l=(i||e.state.selection).content(),{dom:c,text:u,slice:d}=Qe(e,l);(!n.dataTransfer.files.length||!A||E>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Lt?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Lt||n.dataTransfer.setData("text/plain",u),e.dragging=new Dt(d,Nt(e,n),i)},ct.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},ut.dragover=ut.dragenter=(e,t)=>t.preventDefault(),ut.drop=(e,t)=>{try{!function(e,t,n){if(!t.dataTransfer)return;let s=e.posAtCoords(gt(t));if(!s)return;let a=e.state.doc.resolve(s.pos),l=n&&n.slice;l?e.someProp("transformPasted",t=>{l=t(l,e,!1)}):l=Je(e,Mt(t.dataTransfer),Lt?null:t.dataTransfer.getData("text/html"),!1,a);let c=!(!n||!Nt(e,t));if(e.someProp("handleDrop",n=>n(e,t,l||o.Ji.empty,c)))return void t.preventDefault();if(!l)return;t.preventDefault();let u=l?(0,i.Um)(e.state.doc,a.pos,l):a.pos;null==u&&(u=a.pos);let d=e.state.tr;if(c){let{node:e}=n;e?e.replace(d):d.deleteSelection()}let p=d.mapping.map(u),f=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,h=d.doc;f?d.replaceRangeWith(p,p,l.content.firstChild):d.replaceRange(p,p,l);if(d.doc.eq(h))return;let m=d.doc.resolve(p);if(f&&r.nh.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))d.setSelection(new r.nh(m));else{let t=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((e,n,r,o)=>t=o),d.setSelection(De(e,m,d.doc.resolve(t)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},ct.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Ee(e)},20))},ct.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},ct.beforeinput=(e,t)=>{if(A&&j&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in ut)ct[e]=ut[e];function Ft(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Bt{constructor(e,t){this.toDOM=e,this.spec=t||Wt,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:i}=e.mapResult(t.from+r,this.side<0?-1:1);return i?null:new $t(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof Bt&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ft(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Ut{constructor(e,t){this.attrs=e,this.spec=t||Wt}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new $t(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Ut&&Ft(this.attrs,e.attrs)&&Ft(this.spec,e.spec)}static is(e){return e.type instanceof Ut}destroy(){}}class Ht{constructor(e,t){this.attrs=e,this.spec=t||Wt}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new $t(o.pos-n,i.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof Ht&&Ft(this.attrs,e.attrs)&&Ft(this.spec,e.spec)}destroy(){}}class $t{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new $t(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new $t(e,e,new Bt(t,n))}static inline(e,t,n,r){return new $t(e,t,new Ut(n,r))}static node(e,t,n,r){return new $t(e,t,new Ht(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Ut}get widget(){return this.type instanceof Bt}}const zt=[],Wt={};class Gt{constructor(e,t){this.local=e.length?e:zt,this.children=t.length?t:zt}static create(e,t){return t.length?Qt(t,e,0,Wt):Xt}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let i=0;i<this.local.length;i++){let s=this.local[i];s.from<=t&&s.to>=e&&(!o||o(s.spec))&&n.push(s.copy(s.from+r,s.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let s=this.children[i]+1;this.children[i+2].findInner(e-s,t-s,n,r+s,o)}}map(e,t,n){return this==Xt||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Wt)}mapInner(e,t,n,r,o){let i;for(let s=0;s<this.local.length;s++){let a=this.local[s].map(e,n,r);a&&a.type.valid(t,a)?(i||(i=[])).push(a):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,r,o,i,s){let a=e.slice();for(let e=0,t=i;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,o,i)=>{let s=i-o-(n-e);for(let o=0;o<a.length;o+=3){let i=a[o+1];if(i<0||e>i+t-r)continue;let l=a[o]+t-r;n>=l?a[o+1]=e<=l?-2:-1:e>=t&&s&&(a[o]+=s,a[o+1]+=s)}r+=s}),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<a.length;t+=3)if(a[t+1]<0){if(-2==a[t+1]){l=!0,a[t+1]=-1;continue}let c=n.map(e[t]+i),u=c-o;if(u<0||u>=r.content.size){l=!0;continue}let d=n.map(e[t+1]+i,-1)-o,{index:p,offset:f}=r.content.findIndex(u),h=r.maybeChild(p);if(h&&f==u&&f+h.nodeSize==d){let r=a[t+2].mapInner(n,h,c+1,e[t]+i+1,s);r!=Xt?(a[t]=u,a[t+1]=d,a[t+2]=r):(a[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,r,o,i,s){function a(e,t){for(let i=0;i<e.local.length;i++){let a=e.local[i].map(r,o,t);a?n.push(a):s.onRemove&&s.onRemove(e.local[i].spec)}for(let n=0;n<e.children.length;n+=3)a(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)-1==e[n+1]&&a(e[n+2],t[n]+i+1);return n}(a,e,t,n,o,i,s),c=Qt(l,r,0,s);t=c.local;for(let e=0;e<a.length;e+=3)a[e+1]<0&&(a.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<a.length&&a[t]<n;)t+=3;a.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Gt(t.sort(Jt),a)}(this.children,i||[],e,t,n,r,o):i?new Gt(i.sort(Jt),zt):Xt}add(e,t){return t.length?this==Xt?Gt.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach((e,i)=>{let s,a=i+n;if(s=qt(t,e,a)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(e,s,a+1):r.splice(o,0,i,i+e.nodeSize,Qt(s,e,a+1,Wt)),o+=3}});let i=Kt(o?Yt(t):t,-n);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new Gt(i.length?this.local.concat(i).sort(Jt):this.local,r||this.children)}remove(e){return 0==e.length||this==Xt?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let o,i=n[r]+t,s=n[r+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>i&&t.to<s&&(e[n]=null,(o||(o=[])).push(t));if(!o)continue;n==this.children&&(n=this.children.slice());let a=n[r+2].removeInner(o,i+1);a!=Xt?n[r+2]=a:(n.splice(r,3),r-=3)}if(r.length)for(let n,o=0;o<e.length;o++)if(n=e[o])for(let e=0;e<r.length;e++)r[e].eq(n,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Gt(r,n):Xt}forChild(e,t){if(this==Xt)return this;if(t.isLeaf)return Gt.empty;let n,r;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>o&&t.type instanceof Ut){let e=Math.max(o,t.from)-o,n=Math.min(i,t.to)-o;e<n&&(r||(r=[])).push(t.copy(e,n))}}if(r){let e=new Gt(r.sort(Jt),zt);return n?new Vt([e,n]):e}return n||Xt}eq(e){if(this==e)return!0;if(!(e instanceof Gt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Zt(this.localsInner(e))}localsInner(e){if(this==Xt)return zt;if(e.inlineContent||!this.local.some(Ut.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof Ut||t.push(this.local[e]);return t}forEachSet(e){e(this)}}Gt.empty=new Gt([],[]),Gt.removeOverlap=Zt;const Xt=Gt.empty;class Vt{constructor(e){this.members=e}map(e,t){const n=this.members.map(n=>n.map(e,t,Wt));return Vt.from(n)}forChild(e,t){if(t.isLeaf)return Gt.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=Xt&&(o instanceof Vt?n=n.concat(o.members):n.push(o))}return Vt.from(n)}eq(e){if(!(e instanceof Vt)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?Zt(n?t:t.sort(Jt)):zt}static from(e){switch(e.length){case 0:return Xt;case 1:return e[0];default:return new Vt(e.every(e=>e instanceof Gt)?e:e.reduce((e,t)=>e.concat(t instanceof Gt?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function Kt(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new $t(o.from+t,o.to+t,o.type))}return n}function qt(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let t,i=0;i<e.length;i++)(t=e[i])&&t.from>n&&t.to<r&&((o||(o=[])).push(t),e[i]=null);return o}function Yt(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Qt(e,t,n,r){let o=[],i=!1;t.forEach((t,s)=>{let a=qt(e,t,s+n);if(a){i=!0;let e=Qt(a,t,n+s+1,r);e!=Xt&&o.push(s,s+t.nodeSize,e)}});let s=Kt(i?Yt(e):e,-n).sort(Jt);for(let e=0;e<s.length;e++)s[e].type.valid(t,s[e])||(r.onRemove&&r.onRemove(s[e].spec),s.splice(e--,1));return s.length||o.length?new Gt(s,o):Xt}function Jt(e,t){return e.from-t.from||e.to-t.to}function Zt(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),en(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),en(t,o+1,i.copy(r.to,i.to)))}}return t}function en(e,t,n){for(;t<e.length&&Jt(n,e[t])>0;)t++;e.splice(t,0,n)}function tn(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Xt&&t.push(r)}),e.cursorWrapper&&t.push(Gt.create(e.state.doc,[e.cursorWrapper.deco])),Vt.from(t)}const nn={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rn=_&&O<=11;class on{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class sn{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new on,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);_&&O<=11&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():x&&e.composing&&t.some(e=>"childList"==e.type&&"TR"==e.target.nodeName)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),rn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,nn)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Re(this.view)){if(this.suppressingSelectionUpdates)return Ee(this.view);if(_&&O<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let t=e.focusNode;t;t=a(t))n.add(t);for(let r=e.anchorNode;r;r=a(r))if(n.has(r)){t=r;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Re(e)&&!this.ignoreSelectionChange(n),i=-1,s=-1,a=!1,l=[];
vendor: 4,497 bytes, line 2
2if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],l);n&&(i=i<0?n.from:Math.min(n.from,i),s=s<0?n.to:Math.max(n.to,s),n.typeOver&&(a=!0))}if(!l.some(e=>"BR"==e.nodeName)||8!=e.input.lastKeyCode&&46!=e.input.lastKeyCode){if(C&&l.length){let t=l.filter(e=>"BR"==e.nodeName);if(2==t.length){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;!t||"LI"!=t.nodeName||n&&un(e,n)==t||r.remove()}}}}else for(let e of l)if("BR"==e.nodeName&&e.parentNode){let t=e.nextSibling;t&&1==t.nodeType&&"false"==t.contentEditable&&e.parentNode.removeChild(e)}let c=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&m(n)&&(c=Te(e))&&c.eq(r.LN.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Ee(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),function(e){if(an.has(e))return;if(an.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=C,ln)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),ln=!0}}(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,function(e,t){var n;let{focusNode:r,focusOffset:o}=e.domSelectionRange();for(let i of t)if("TR"==(null===(n=i.parentNode)||void 0===n?void 0:n.nodeName)){let t=i.nextSibling;for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.nextSibling;if(t){let n=t;for(;;){let e=n.firstChild;if(!e||1!=e.nodeType||"false"==e.contentEditable||/^(BR|IMG)$/.test(e.nodeName))break;n=e}n.insertBefore(i,n.firstChild),r==i&&e.domSelection().collapse(i,o)}else i.parentNode.removeChild(i)}}(e,l)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Ee(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(_&&O<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:i}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(e.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==e.target?s(r)+1:0,a=n.localPosFromDOM(e.target,i,-1),l=o&&o.parentNode==e.target?s(o):e.target.childNodes.length;return{from:a,to:n.localPosFromDOM(e.target,l,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let an=new WeakMap,ln=!1;function cn(e,t){let n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return u(s.node,s.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function un(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function dn(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(x&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||x&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const pn=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function fn(e,t,n,i,s){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=Te(e,t);
vendor: 4,073 bytes, line 2
2if(n&&!e.state.selection.eq(n)){if(A&&j&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),a&&r.setMeta("composition",a),e.dispatch(r)}return}let l=e.state.doc.resolve(t),c=l.sharedDepth(n);t=l.before(c+1),n=e.state.doc.resolve(n).after(c+1);let u,d,p=e.state.selection,f=function(e,t,n){let r,{node:i,fromOffset:s,toOffset:a,from:l,to:c}=e.docView.parseRange(t,n),u=e.domSelectionRange(),d=u.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(r=[{node:d,offset:u.anchorOffset}],m(u)||r.push({node:u.focusNode,offset:u.focusOffset})),A&&8===e.input.lastKeyCode)for(let e=a;e>s;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){a=e;break}if(!n||n.size)break}let p=e.state.doc,f=e.someProp("domParser")||o.S4.fromSchema(e.state.schema),h=p.resolve(l),v=null,g=f.parse(i,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:s,to:a,preserveWhitespace:"pre"!=h.parent.type.whitespace||"full",findPositions:r,ruleFromNode:dn,context:h});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),v={anchor:e+l,head:t+l}}return{doc:g,sel:v,from:l,to:c}}(e,t,n),h=e.state.doc,g=h.slice(f.from,f.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(u=e.state.selection.to,d="end"):(u=e.state.selection.from,d="start"),e.input.lastKeyCode=null;let y=function(e,t,n,r,o){let i=e.findDiffStart(t,n);if(null==i)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==o){r-=s+Math.max(0,i-Math.min(s,a))-i}if(s<i&&e.size<t.size){let e=r<=i&&r>=s?i-r:0;i-=e,i&&i<t.size&&vn(t.textBetween(i-1,i+1))&&(i+=e?1:-1),a=i+(a-s),s=i}else if(a<i){let t=r<=i&&r>=a?i-r:0;i-=t,i&&i<e.size&&vn(e.textBetween(i-1,i+1))&&(i+=t?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}(g.content,f.doc.content,f.from,u,d);if(y&&e.input.domChangeCount++,(P&&e.input.lastIOSEnter>Date.now()-225||j)&&s.some(e=>1==e.nodeType&&!pn.test(e.nodeName))&&(!y||y.endA>=y.endB)&&e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!y){if(!(i&&p instanceof r.U3&&!p.empty&&p.$head.sameParent(p.$anchor))||e.composing||f.sel&&f.sel.anchor!=f.sel.head){if(f.sel){let t=hn(e,e.state.doc,f.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta("composition",a),e.dispatch(n)}}return}y={start:p.from,endA:p.to,endB:p.to}}e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof r.U3&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2&&e.state.selection.from>=f.from?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&e.state.selection.to<=f.to&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),_&&O<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>f.from&&" Â "==f.doc.textBetween(y.start-f.from-1,y.start-f.from+1)&&(y.start--,y.endA--,y.endB--);let b=f.doc.resolveNoCache(y.start-f.from),w=f.doc.resolveNoCache(y.endB-f.from),S=h.resolve(y.start),k=b.sameParent(w)&&b.parent.inlineContent&&S.end()>=y.endA;if((P&&e.input.lastIOSEnter>Date.now()-225&&(!k||s.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!k&&b.pos<f.doc.content.size&&(!b.sameParent(w)||!b.parent.inlineContent)&&b.pos<w.pos&&!/\S/.test(f.doc.textBetween(b.pos,w.pos,"","")))&&e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>y.start&&function(e,t,n,r,o){if(n-t<=o.pos-r.pos||mn(r,!0,!1)<o.pos)return!1;let i=e.resolve(t);if(!r.parent.isTextblock){let e=i.nodeAfter;return null!=e&&n==t+e.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=e.resolve(mn(i,!0,!0));return!(!s.parent.isTextblock||s.pos>n||mn(s,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(s.parent.content)}(h,y.start,y.endA,b,w)&&e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return void(j&&A&&e.domObserver.suppressSelectionUpdates());
vendor: 10,487 bytes, line 2
2A&&y.endB==y.start&&(e.input.lastChromeDelete=Date.now()),j&&!k&&b.start()!=w.start()&&0==w.parentOffset&&b.depth==w.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==y.endA&&(y.endB-=2,w=f.doc.resolveNoCache(y.endB-f.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,v(13,"Enter"))})},20));let C,T=y.start,E=y.endA,x=t=>{let n=t||e.state.tr.replace(T,E,f.doc.slice(y.start-f.from,y.endB-f.from));if(f.sel){let t=hn(e,n.doc,f.sel);t&&!(A&&e.composing&&t.empty&&(y.start!=y.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==T||t.head==n.mapping.map(E)-1)||_&&t.empty&&t.head==T)&&n.setSelection(t)}return a&&n.setMeta("composition",a),n.scrollIntoView()};if(k)if(b.pos==w.pos){_&&O<=11&&0==b.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ee(e),20));let t=x(e.state.tr.delete(T,E)),n=h.resolve(y.start).marksAcross(h.resolve(y.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(y.endA==y.endB&&(C=function(e,t){let n,r,i,s=e.firstChild.marks,a=t.firstChild.marks,l=s,c=a;for(let e=0;e<a.length;e++)l=a[e].removeFromSet(l);for(let e=0;e<s.length;e++)c=s[e].removeFromSet(c);if(1==l.length&&0==c.length)r=l[0],n="add",i=e=>e.mark(r.addToSet(e.marks));else{if(0!=l.length||1!=c.length)return null;r=c[0],n="remove",i=e=>e.mark(r.removeFromSet(e.marks))}let u=[];for(let e=0;e<t.childCount;e++)u.push(i(t.child(e)));if(o.FK.from(u).eq(e))return{mark:r,type:n}}(b.parent.content.cut(b.parentOffset,w.parentOffset),S.parent.content.cut(S.parentOffset,y.endA-S.start())))){let t=x(e.state.tr);"add"==C.type?t.addMark(T,E,C.mark):t.removeMark(T,E,C.mark),e.dispatch(t)}else if(b.parent.child(b.index()).isText&&b.index()==w.index()-(w.textOffset?0:1)){let t=b.parent.textBetween(b.parentOffset,w.parentOffset),n=()=>x(e.state.tr.insertText(t,T,E));e.someProp("handleTextInput",r=>r(e,T,E,t,n))||e.dispatch(n())}else e.dispatch(x());else e.dispatch(x())}function hn(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:De(e,t.resolve(n.anchor),t.resolve(n.head))}function mn(e,t,n){let r=e.depth,o=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}function vn(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class gn{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new pt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(kn),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=wn(this),bn(this),this.nodeViews=Sn(this),this.docView=ue(this.state.doc,yn(this),tn(this),this.dom,this),this.domObserver=new sn(this,(e,t,n,r)=>fn(this,e,t,n,r)),this.domObserver.start(),function(e){for(let t in ct){let n=ct[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!vt(e,t)||mt(e,t)||!e.editable&&t.type in ut||n(e,t)},dt[t]?{passive:!0}:void 0)}x&&e.dom.addEventListener("input",()=>null),ht(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ht(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(kn),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n;let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(xt(this),i=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(s||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=Sn(this);(function(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(s||t.handleDOMEvents!=this._props.handleDOMEvents)&&ht(this),this.editable=wn(this),bn(this);let a=tn(this),l=yn(this),c=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",d=o||!this.docView.matchesNode(e.doc,l,a);!d&&e.selection.eq(r.selection)||(i=!0);let p="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,s=o+1;s<Math.min(innerHeight,r.bottom);s+=5){let r=e.root.elementFromPoint(i,s);if(!r||r==e.dom||!e.dom.contains(r))continue;let a=r.getBoundingClientRect();if(a.top>=o-20){t=r,n=a.top;break}}return{refDOM:t,refTop:n,stack:U(e.dom)}}(this);if(i){this.domObserver.stop();let t=d&&(_||A)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(d){let n=A?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Pt(this)),!o&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=ue(e.doc,l,a,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return u(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?Ee(this,t):(je(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():p&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;H(n,0==r?0:r-t)}(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof r.nh){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&B(this,t.getBoundingClientRect(),e)}else B(this,this.coordsAtPos(this.state.selection.head,1),e);else;}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,o=-1;if(this.state.doc.nodeAt(n.from)==n.node)o=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&this.state.doc.nodeAt(e))==n.node&&(o=e)}this.dragging=new Dt(e.slice,e.move,o<0?void 0:r.nh.create(this.state.doc,o))}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let o=this.directPlugins[r].props[e];if(null!=o&&(n=t?t(o):o))return n}let o=this.state.plugins;if(o)for(let r=0;r<o.length;r++){let i=o[r].props[e];if(null!=i&&(n=t?t(i):i))return n}}hasFocus(){if(_){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if($)return e.focus($);let t=U(e);e.focus(null==$?{get preventScroll(){return $={preventScroll:!0},!0}}:void 0),$||($=!1,H(t,0))}(this.dom),Ee(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e;return e||document}updateRoot(){this._root=null}posAtCoords(e){return X(this,e)}coordsAtPos(e,t=1){return Y(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return oe(this,t||this.state,e)}pasteHTML(e,t){return jt(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return jt(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return Qe(this,e)}destroy(){this.docView&&(!function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],tn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,l=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){mt(e,t)||!ct[t.type]||!e.editable&&t.type in ut||ct[t.type](e,t)}(this,e)}domSelectionRange(){let e=this.domSelection();return e?x&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return cn(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?cn(e,n):null}
2(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function yn(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[$t.node(0,e.state.doc.content.size,t)]}function bn(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:$t.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function wn(e){return!e.someProp("editable",t=>!1===t(e.state))}function Sn(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function kn(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}gn.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}},34528(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(20641),o=n(50953);const i={};function s(e,t){const{class:n,style:r,...o}=function(e){let t={};const n=e.attributes;if(!n)return t;for(let e=n.length-1;e>=0;e--)t[n[e].name]=n[e].value;return t}(e),{class:i,style:s,...a}=function(e){return Object.keys(e).reduce((t,n)=>(!1!==e[n]&&null!==e[n]&&void 0!==e[n]&&(t[n]=e[n]),t),{})}(t);return{class:[n,i],style:[r,s],...o,...a}}const a=(0,r.pM)({inheritAttrs:!1,__name:"InlineSvg",props:{src:{},title:{default:void 0},transformSource:{type:Function,default:e=>e},keepDuringLoading:{type:Boolean,default:!0},uniqueIds:{type:[Boolean,String],default:!1},uniqueIdsBase:{default:""}},emits:["loaded","unloaded","error"],setup(e,{expose:t,emit:n}){const a=e,l=n,c=(0,r.OA)(),u=(0,o.KR)(),d=(0,o.KR)(),p=(0,o.KR)(),f=Math.random().toString(36).substring(2);function h(e){if(e=e.cloneNode(!0),a.uniqueIds){e=g(e,"string"==typeof a.uniqueIds?a.uniqueIds:f,a.uniqueIdsBase)}return e=a.transformSource(e),a.title&&function(e,t){const n=e.getElementsByTagName("title");if(n.length)n[0].textContent=t;else{const n=document.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=t,e.insertBefore(n,e.firstChild)}}(e,a.title),e.innerHTML}function m(e){i[e]||(i[e]=function(e){return function(e){if(function(e){return void 0!==e.getIsPending}(e))return e;let t=!0,n=e.then(e=>(t=!1,e),e=>{throw t=!1,e});return n.getIsPending=function(){return t},n}(new Promise((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),p.value=r,r.onload=()=>{if(r.status>=200&&r.status<400)try{let e=(new DOMParser).parseFromString(r.responseText,"text/xml").getElementsByTagName("svg")[0];e?t(e):n(new Error('Loaded file is not valid SVG"'))}catch(e){n(e)}else n(new Error("Error loading SVG"))},r.onerror=n,r.send()}))}(e)),u.value&&i[e].getIsPending()&&!a.keepDuringLoading&&(u.value=null,l("unloaded")),i[e].then(e=>{u.value=e,(0,r.dY)(()=>{l("loaded",d.value)})}).catch(t=>{u.value&&(u.value=void 0,l("unloaded")),delete i[e],l("error",t)})}t({svgElSource:u,request:p}),(0,r.wB)(()=>a.src,e=>{m(e)}),m(a.src);const v=()=>u.value?(0,r.h)("svg",{...s(u.value,c),innerHTML:h(u.value),ref:d}):null;function g(e,t,n=""){const r=["id","href","xlink:href","xlink:role","xlink:arcrole"],o=["href","xlink:href"];return[...e.children].forEach(e=>{var i;if(null!=(i=e.attributes)&&i.length){const i=Object.values(e.attributes).map(e=>{const r=/url\((.*?)\)/.exec(e.value);return null!=r&&r[1]&&(e.value=e.value.replace(r[0],`url(${n}${r[1]}_${t})`)),e});r.forEach(e=>{const n=i.find(t=>t.name===e);n&&!((e,t)=>o.includes(e)&&!!t&&!t.includes("#"))(e,n.value)&&(n.value=`${n.value}_${t}`)})}return e.children.length?g(e,t,n):e}),e}return(e,t)=>((0,r.uX)(),(0,r.Wv)(v))}})}
2,74965(e,t,n){"use strict";n.d(t,{Tp:()=>$e,aE:()=>ze,LA:()=>ve,lq:()=>We});const r="undefined"!=typeof document;function o(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function i(e){return e.__esModule||"Module"===e[Symbol.toStringTag]||e.default&&o(e.default)}const s=Object.assign;function a(e,t){const n={};for(const r in t){const o=t[r];n[r]=c(o)?o.map(e):e(o)}return n}const l=()=>{},c=Array.isArray;function u(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const d=/#/g,p=/&/g,f=/\//g,h=/=/g,m=/\?/g,v=/\+/g,g=/%5B/g,y=/%5D/g,b=/%5E/g,w=/%60/g,S=/%7B/g,k=/%7C/g,_=/%7D/g,O=/%20/g;function C(e){return null==e?"":encodeURI(""+e).replace(k,"|").replace(g,"[").replace(y,"]")}function T(e){return C(e).replace(S,"{").replace(_,"}").replace(b,"^")}function A(e){return C(e).replace(v,"%2B").replace(O,"+").replace(d,"%23").replace(p,"%26").replace(w,"`").replace(S,"{").replace(_,"}").replace(b,"^")}function E(e){return A(e).replace(h,"%3D")}function x(e){return function(e){return C(e).replace(d,"%23").replace(m,"%3F")}(e).replace(f,"%2F")}function P(e){if(null==e)return null;try{return decodeURIComponent(""+e)}catch(e){}return""+e}const I=/\/$/;function L(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),o=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=function(e,t){if(e.startsWith("/"))return e;0;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let i,s,a=n.length-1;for(i=0;i<r.length;i++)if(s=r[i],"."!==s){if(".."!==s)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+r.slice(i).join("/")}(null!=r?r:t,n),{fullPath:r+i+s,path:r,query:o,hash:P(s)}}function j(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function M(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function D(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!R(e[n],t[n]))return!1;return!0}function R(e,t){return c(e)?N(e,t):c(t)?N(t,e):e?.valueOf()===t?.valueOf()}function N(e,t){return c(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}const F={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let B=function(e){return e.pop="pop",e.push="push",e}({}),U=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function H(e){if(!e)if(r){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(I,"")}const $=/^[^#]+#/;function z(e,t){return e.replace($,"#")+t}const W=()=>({left:window.scrollX,top:window.scrollY});function G(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#");0;const o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function X(e,t){return(history.state?history.state.position-t:-1)+e}const V=new Map;function K(e){return"string"==typeof e||"symbol"==typeof e}let q=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Y=Symbol("");q.MATCHER_NOT_FOUND,q.NAVIGATION_GUARD_REDIRECT,q.NAVIGATION_ABORTED,q.NAVIGATION_CANCELLED,q.NAVIGATION_DUPLICATED;function Q(e,t){return s(new Error,{type:e,[Y]:!0},t)}function J(e,t){return e instanceof Error&&Y in e&&(null==t||!!(e.type&t))}const Z=["params","query","hash"];function ee(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<n.length;++e){const r=n[e].replace(v," "),o=r.indexOf("="),i=P(o<0?r:r.slice(0,o)),s=o<0?null:P(r.slice(o+1));if(i in t){let e=t[i];c(e)||(e=t[i]=[e]),e.push(s)}else t[i]=s}return t}function te(e){let t="";for(let n in e){const r=e[n];n=E(n),null!=r?(c(r)?r.map(e=>
2e&&A(e)):[r&&A(r)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}):void 0!==r&&(t+=(t.length?"&":"")+n)}return t}function ne(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=c(r)?r.map(e=>null==e?null:""+e):null==r?r:""+r)}return t}const re=Symbol(""),oe=Symbol(""),ie=Symbol(""),se=Symbol(""),ae=Symbol("");function le(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function ce(e,t,n,r,o,i=e=>e()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=e=>{var i;!1===e?l(Q(q.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l(Q(q.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(s&&r.enterCallbacks[o]===s&&"function"==typeof e&&s.push(e),a())},u=i(()=>e.call(r&&r.instances[o],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(e=>l(e))})}function ue(e,t,n,r,s=e=>e()){const a=[];for(const l of e){0;for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if(o(c)){const o=(c.__vccOpts||c)[t];o&&a.push(ce(o,n,r,l,e,s))}else{let o=c();0,a.push(()=>o.then(o=>{if(!o)throw new Error(`Couldn't resolve component "${e}" at "${l.path}"`);const a=i(o)?o.default:o;l.mods[e]=o,l.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&ce(c,n,r,l,e,s)()}))}}}return a}var de=n(20641),pe=n(50953);function fe(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),j(n,"")}return j(n,e)+r+o}function he(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?W():null}}function me(e){const{history:t,location:n}=window,r={value:fe(e,n)},o={value:t.state};function i(r,i,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+r:location.protocol+"//"+location.host+e+r;try{t[s?"replaceState":"pushState"](i,"",l),o.value=i}catch(e){console.error(e),n[s?"replace":"assign"](l)}}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const a=s({},o.value,t.state,{forward:e,scroll:W()});i(a.current,a,!0),i(e,s({},he(r.value,e,null),{position:a.position+1},n),!1),r.value=e},replace:function(e,n){i(e,s({},t.state,he(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function ve(e){const t=me(e=H(e)),n=function(e,t,n,r){let o=[],i=[],a=null;const l=({state:i})=>{const s=fe(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===l)return void(a=null);u=c?i.position-c.position:0}else r(s);o.forEach(e=>{e(n.value,l,{delta:u,type:B.pop,direction:u?u>0?U.forward:U.back:U.unknown})})};function c(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(s({},e.state,{scroll:W()}),"")}}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:function(){a=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}}}(e,t.state,t.location,t.replace);const r=s({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:z.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let ge=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ye=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(ye||{});const be={type:ge.Static,value:""},we=/[a-zA-Z0-9_]/;const Se="[^/]+?",ke={sensitive:!1,strict:!1,start:!0,end:!0};var _e=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(_e||{});const Oe=/[.+*?^${}()[\]/\\]/g;function Ce(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}
2return e.length<t.length?1===e.length&&e[0]===_e.Static+_e.Segment?-1:1:e.length>t.length?1===t.length&&t[0]===_e.Static+_e.Segment?1:-1:0}function Te(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=Ce(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Ae(r))return 1;if(Ae(o))return-1}return o.length-r.length}function Ae(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ee={strict:!1,end:!0,sensitive:!1};function xe(e,t,n){const r=function(e,t){const n=s({},ke,t),r=[];let o=n.start?"^":"";const i=[];for(const t of e){const e=t.length?[]:[_e.Root];n.strict&&!t.length&&(o+="/");for(let r=0;r<t.length;r++){const s=t[r];let a=_e.Segment+(n.sensitive?_e.BonusCaseSensitive:0);if(s.type===ge.Static)r||(o+="/"),o+=s.value.replace(Oe,"\\$&"),a+=_e.Static;else if(s.type===ge.Param){const{value:e,repeatable:n,optional:l,regexp:c}=s;i.push({name:e,repeatable:n,optional:l});const u=c||Se;u!==Se&&(a+=_e.BonusCustomRegExp);let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=l&&t.length<2?`(?:/${d})`:"/"+d),l&&(d+="?"),o+=d,a+=_e.Dynamic,l&&(a+=_e.BonusOptional),n&&(a+=_e.BonusRepeatable),".*"===u&&(a+=_e.BonusWildcard)}e.push(a)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=_e.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");return{re:a,score:r,keys:i,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let e=1;e<t.length;e++){const r=t[e]||"",o=i[e-1];n[o.name]=r&&o.repeatable?r.split("/"):r}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(e.type===ge.Static)n+=e.value;else if(e.type===ge.Param){const{value:i,repeatable:s,optional:a}=e,l=i in t?t[i]:"";if(c(l)&&!s)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const u=c(l)?l.join("/"):l;if(!u){if(!a)throw new Error(`Missing required param "${i}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=u}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[be]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=ye.Static,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a,l=0,c="",u="";function d(){c&&(n===ye.Static?i.push({type:ge.Static,value:c}):n===ye.Param||n===ye.ParamRegExp||n===ye.ParamRegExpEnd?(i.length>1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ge.Param,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;l<e.length;)if(a=e[l++],"\\"!==a||n===ye.ParamRegExp)switch(n){case ye.Static:"/"===a?(c&&d(),s()):":"===a?(d(),n=ye.Param):p();break;case ye.EscapeNext:p(),n=r;break;case ye.Param:"("===a?n=ye.ParamRegExp:we.test(a)?p():(d(),n=ye.Static,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case ye.ParamRegExp:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=ye.ParamRegExpEnd:u+=a;break;case ye.ParamRegExpEnd:d(),n=ye.Static,"*"!==a&&"?"!==a&&"+"!==a&&l--,u="";break;default:t("Unknown state")}else r=n,n=ye.EscapeNext;return n===ye.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),o}(e.path),n);const o=s(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Pe(e,t){const n=[],r=new Map;function o(e,n,r){const c=!r,d=Le(e);d.aliasOf=r&&r.record;const p=u(t,e),f=[d];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)f.push(Le(s({},d,{components:r?r.record.components:d.components,path:e,aliasOf:r?r.record:d})))}let h,m;for(const t of f){const{path:s}=t;if(n&&"/"!==s[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(s&&r+s)}if(h=xe(t,n,p),r?r.alias.push(h):(m=m||h,m!==h&&m.alias.push(h),c&&e.name&&!Me(h)&&i(e.name)),Re(h)&&a(h),d.children){const e=d.children;for(let t=0;t<e.length;t++)o(e[t],h,r&&r.children[t])}r=r||h}return m?()=>{i(m)}:l}function i(e){if(K(e)){const t=r.get(e);
2t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){const t=function(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;Te(e,t[o])<0?r=o:n=o+1}const o=function(e){let t=e;for(;t=t.parent;)if(Re(t)&&0===Te(e,t))return t}(e);o&&(r=t.lastIndexOf(o,r-1));return r}(e,n);n.splice(t,0,e),e.record.name&&!Me(e)&&r.set(e.record.name,e)}return t=u(Ee,t),e.forEach(e=>o(e)),{addRoute:o,resolve:function(e,t){let o,i,a,l={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw Q(q.MATCHER_NOT_FOUND,{location:e});0,a=o.record.name,l=s(Ie(t.params,o.keys.filter(e=>!e.optional).concat(o.parent?o.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ie(e.params,o.keys.map(e=>e.name))),i=o.stringify(l)}else if(null!=e.path)i=e.path,o=n.find(e=>e.re.test(i)),o&&(l=o.parse(i),a=o.record.name);else{if(o=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!o)throw Q(q.MATCHER_NOT_FOUND,{location:e,currentLocation:t});a=o.record.name,l=s({},t.params,e.params),i=o.stringify(l)}const c=[];let u=o;for(;u;)c.unshift(u.record),u=u.parent;return{name:a,path:i,params:l,matched:c,meta:De(c)}},removeRoute:i,clearRoutes:function(){n.length=0,r.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function Ie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Le(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:je(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 je(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function Me(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function De(e){return e.reduce((e,t)=>s(e,t.meta),{})}function Re({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ne(e){const t=(0,de.WQ)(ie),n=(0,de.WQ)(se);const r=(0,de.EW)(()=>{const n=(0,pe.R1)(e.to);return t.resolve(n)}),o=(0,de.EW)(()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],i=n.matched;if(!o||!i.length)return-1;const s=i.findIndex(M.bind(null,o));if(s>-1)return s;const a=Be(e[t-2]);return t>1&&Be(o)===a&&i[i.length-1].path!==a?i.findIndex(M.bind(null,e[t-2])):s}),i=(0,de.EW)(()=>o.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!c(o)||o.length!==r.length||r.some((e,t)=>e.valueOf()!==o[t].valueOf()))return!1}return!0}(n.params,r.value.params)),s=(0,de.EW)(()=>o.value>-1&&o.value===n.matched.length-1&&D(n.params,r.value.params));return{route:r,href:(0,de.EW)(()=>r.value.href),isActive:i,isExactActive:s,navigate:function(n={}){if(function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)){const n=t[(0,pe.R1)(e.replace)?"replace":"push"]((0,pe.R1)(e.to)).catch(l);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}}}const Fe=(0,de.pM)({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:Ne,setup(e,{slots:t}){const n=(0,pe.Kh)(Ne(e)),{options:r}=(0,de.WQ)(ie),o=(0,de.EW)(()=>({[Ue(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ue(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&(1===(i=t.default(n)).length?i[0]:i);var i;return e.custom?r:(0,de.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}});function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ue=(e,t,n)=>null!=e?e:null!=t?t:n;function He(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const $e=(0,de.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=(0,de.WQ)(ae),o=(0,de.EW)(()=>e.route||r.value),i=(0,de.WQ)(oe,0),a=(0,de.EW)(()=>{let e=(0,pe.R1)(i);const{matched:t}=o.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),l=(0,de.EW)(()=>o.value.matched[a.value]);(0,de.Gt)(oe,(0,de.EW)(()=>a.value+1)),(0,de.Gt)(re,l),(0,de.Gt)(ae,o);
2const c=(0,pe.KR)();return(0,de.wB)(()=>[c.value,l.value,e.name],([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&M(t,o)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const r=o.value,i=e.name,a=l.value,u=a&&a.components[i];if(!u)return He(n.default,{Component:u,route:r});const d=a.props[i],p=d?!0===d?r.params:"function"==typeof d?d(r):d:null,f=(0,de.h)(u,s({},p,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:c}));return He(n.default,{Component:f,route:r})||f}}});function ze(e){const t=Pe(e.routes,e),n=e.parseQuery||ee,o=e.stringifyQuery||te,i=e.history;const u=le(),d=le(),p=le(),f=(0,pe.IJ)(F);let h=F;r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=a.bind(null,e=>""+e),v=a.bind(null,x),g=a.bind(null,P);function y(e,r){if(r=s({},r||f.value),"string"==typeof e){const o=L(n,e,r.path),a=t.resolve({path:o.path},r),l=i.createHref(o.fullPath);return s(o,a,{params:g(a.params),hash:P(o.hash),redirectedFrom:void 0,href:l})}let a;if(null!=e.path)a=s({},e,{path:L(n,e.path,r.path).path});else{const t=s({},e.params);for(const e in t)null==t[e]&&delete t[e];a=s({},e,{params:v(t)}),r.params=v(r.params)}const l=t.resolve(a,r),c=e.hash||"";l.params=m(g(l.params));const u=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,s({},e,{hash:T(c),path:l.path})),d=i.createHref(u);return s({fullPath:u,hash:c,query:o===te?ne(e.query):e.query||{}},l,{redirectedFrom:void 0,href:d})}function b(e){return"string"==typeof e?L(n,e,f.value.path):s({},e)}function w(e,t){if(h!==e)return Q(q.NAVIGATION_CANCELLED,{from:t,to:e})}function S(e){return _(e)}function k(e,t){const n=e.matched[e.matched.length-1];if(n&&n.redirect){const{redirect:r}=n;let o="function"==typeof r?r(e,t):r;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=b(o):{path:o},o.params={}),s({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function _(e,t){const n=h=y(e),r=f.value,i=e.state,a=e.force,l=!0===e.replace,c=k(n,r);if(c)return _(s(b(c),{state:"object"==typeof c?s({},i,c.state):i,force:a,replace:l}),t||n);const u=n;let d;return u.redirectedFrom=t,!a&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&M(t.matched[r],n.matched[o])&&D(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(d=Q(q.NAVIGATION_DUPLICATED,{to:u,from:r}),Y(r,r,!0,!1)),(d?Promise.resolve(d):A(u,r)).catch(e=>J(e)?J(e,q.NAVIGATION_GUARD_REDIRECT)?e:z(e):$(e,u,r)).then(e=>{if(e){if(J(e,q.NAVIGATION_GUARD_REDIRECT))return _(s({replace:l},b(e.to),{state:"object"==typeof e.to?s({},i,e.to.state):i,force:a}),t||u)}else e=I(u,r,!0,l,i);return E(u,r,e),e})}function O(e,t){const n=w(e,t);return n?Promise.reject(n):Promise.resolve()}function C(e){const t=oe.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function A(e,t){let n;const[r,o,i]=function(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const i=t.matched[s];i&&(e.matched.find(e=>M(e,i))?r.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find(e=>M(e,a))||o.push(a))}return[n,r,o]}(e,t);n=ue(r.reverse(),"beforeRouteLeave",e,t);for(const o of r)o.leaveGuards.forEach(r=>{n.push(ce(r,e,t))});const s=O.bind(null,e,t);return n.push(s),he(n).then(()=>{n=[];for(const r of u.list())n.push(ce(r,e,t));return n.push(s),he(n)}).then(()=>{n=ue(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach(r=>{n.push(ce(r,e,t))});return n.push(s),he(n)}).then(()=>{n=[];for(const r of i)if(r.beforeEnter)if(c(r.beforeEnter))for(const o of r.beforeEnter)n.push(ce(o,e,t));else n.push(ce(r.beforeEnter,e,t));return n.push(s),he(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=ue(i,"beforeRouteEnter",e,t,C),n.push(s),he(n))).then(()=>{n=[];for(const r of d.list())n.push(ce(r,e,t));return n.push(s),he(n)}).catch(e=>J(e,q.NAVIGATION_CANCELLED)?e:Promise.reject(e))}
2function E(e,t,n){p.list().forEach(r=>C(()=>r(e,t,n)))}function I(e,t,n,o,a){const l=w(e,t);if(l)return l;const c=t===F,u=r?history.state:{};n&&(o||c?i.replace(e.fullPath,s({scroll:c&&u&&u.scroll},a)):i.push(e.fullPath,a)),f.value=e,Y(e,t,n,c),z()}let j;function R(){j||(j=i.listen((e,t,n)=>{if(!fe.listening)return;const o=y(e),a=k(o,fe.currentRoute.value);if(a)return void _(s(a,{replace:!0,force:!0}),o).catch(l);h=o;const c=f.value;var u,d;r&&(u=X(c.fullPath,n.delta),d=W(),V.set(u,d)),A(o,c).catch(e=>J(e,q.NAVIGATION_ABORTED|q.NAVIGATION_CANCELLED)?e:J(e,q.NAVIGATION_GUARD_REDIRECT)?(_(s(b(e.to),{force:!0}),o).then(e=>{J(e,q.NAVIGATION_ABORTED|q.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===B.pop&&i.go(-1,!1)}).catch(l),Promise.reject()):(n.delta&&i.go(-n.delta,!1),$(e,o,c))).then(e=>{(e=e||I(o,c,!1))&&(n.delta&&!J(e,q.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===B.pop&&J(e,q.NAVIGATION_ABORTED|q.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),E(o,c,e)}).catch(l)}))}let N,U=le(),H=le();function $(e,t,n){z(e);const r=H.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function z(e){return N||(N=!e,R(),U.list().forEach(([t,n])=>e?n(e):t()),U.reset()),e}function Y(t,n,o,i){const{scrollBehavior:s}=e;if(!r||!s)return Promise.resolve();const a=!o&&function(e){const t=V.get(e);return V.delete(e),t}(X(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return(0,de.dY)().then(()=>s(t,n,a)).then(e=>e&&G(e)).catch(e=>$(e,t,n))}const Z=e=>i.go(e);let re;const oe=new Set,fe={currentRoute:f,listening:!0,addRoute:function(e,n){let r,o;return K(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:y,options:e,push:S,replace:function(e){return S(s(b(e),{replace:!0}))},go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:u.add,beforeResolve:d.add,afterEach:p.add,onError:H.add,isReady:function(){return N&&f.value!==F?Promise.resolve():new Promise((e,t)=>{U.add([e,t])})},install(e){e.component("RouterLink",Fe),e.component("RouterView",$e),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,pe.R1)(f)}),r&&!re&&f.value===F&&(re=!0,S(i.location).catch(e=>{0}));const t={};for(const e in F)Object.defineProperty(t,e,{get:()=>f.value[e],enumerable:!0});e.provide(ie,fe),e.provide(se,(0,pe.Gc)(t)),e.provide(ae,f);const n=e.unmount;oe.add(e),e.unmount=function(){oe.delete(e),oe.size<1&&(h=F,j&&j(),j=null,f.value=F,re=!1,N=!1),n()}}};function he(e){return e.reduce((e,t)=>e.then(()=>C(t)),Promise.resolve())}return fe}function We(e){return(0,de.WQ)(se)}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.amdO={},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>(({318:"animated-bg-silk",663:"animated-bg-squares",892:"pages-panel",1052:"domain-pages",1278:"animated-bg-particles",1900:"design-panel",2072:"animated-bg-threads",2079:"animated-bg-dot-grid",2127:"animated-bg-light-rays",2258:"animated-bg-pixel-blast",2789:"settings-panel",3132:"payment-pages",3681:"url-pages",3782:"template-selector-pages",4516:"account-settings-sub-pages",4770:"animated-bg-grainient",4839:"animated-bg-beams",5838:"auth-pages",5991:"public-pages",6182:"animated-bg-line-waves",6257:"animated-bg-aurora",6472:"settings",8239:"editor-pages",8802:"animated-bg-gradient-blinds",9884:"admin"}[e]||e)+"."+{24:"1e07acdba555f2709768",163:"9556eda64eda746fec11",318:"61184026eb579fc3d281",354:"f72f0b1e59ecda614c55",390:"84302dbf9b92a19d48f9",405:"3972af1bc54e5eb67107",432:"db573a66d67eb3a37bb2",510:"4552f8725dc68c1e1a8a",663:"0cbc704847a3ecff08d2",892:"f868a6b854572ac0842f",1052:"aa286f0a6801e9afd208",1278:"87fe41c219788a3b3d80",1548:"0142c783ec4b162537b9",1556:"94c8f6f1a704a46716a3",1568:"f765a29bdaee0d4fb6e7",1796:"9e0e271bbac2394ef364",1900:"8d05f9da2005266c7385",1999:"a01da18ec038e9b7ad72",2072:"141b69f8812ab82674b2",2079:"ab62ff29f6fe08265693",2127:"ab77b07f59f3a24f89d5",2258:"19939decf9f6b17a7afc",2647:"4a6cc718b9f00f2ebb28",2789:"34bec5da932f89722a5d",2825:"721df965683d7c073ec0",2829:"ee400bff9d36d305a066",2922:"7778e3f190972137b7ba",3104:"2ddda0e71ea389b4a630",3115:"f7408ff874e24fe2e167",3132:"3e03fb4d55907100a04f",3681:"e7645b8bfb0a084b39ad",3782:"e3d2d75b4fc897581fd0",4108:"7a3e554a6b2018ce37b3",4185:"1ab72dafdd47e2080331",4241:"dcce2c34e893c55548cd",4423:"2077d57eee51242fb5c0",4481:"ecd214cb7b8be277693f",4516:"035fed11408562eddf53",4629:"8e07c69eff70a517470a",4770:"3d31269d1db5ddef7d70",4839:"1f2d23b9e71f19acc131",5606:"c787d1ec65bad8b84f68",5838:"0e336491b03748f60b60",5991:"8c43167d8db8e3ced3a8",6182:"0d556fda2c2d4279b803",6222:"4f27f63e4a9fbd20372a",6257:"4580c70d486b3be597ed",6374:"35de2767be8713b5f1e0",6472:"7fb045059078363a58f6",6629:"9930afe9ceaaa54161e7",7112:"cf3eb58e30f33e7deae2",7237:"8693e9e1a45586be472d",7522:"ffe999c90df71bd86331",7642:"7bed5a44e07839b4440a",7709:"1d28524ef96356dbbbb8",7735:"3c59e9a23b9e925489a4",7953:"0b74c0ce3a440d2749ef",8239:"4497655f630c24aa6cbb",8802:"b9e563a79aa7e47b929b",8826:"269051e312651f311979",9059:"d8bb79231b5e84be9130",9437:"96d70077187bd3c5003e",9499:"3d3fb9a809d0eb3de963",9884:"13b9494b6a59687cef37",9891:"ff78a332eca32559db63",9963:"865e56902c077ee61ee9"}[e]+".js"),o.miniCssF=e=>e+"."+{24:"ca60892e9bda9608fd31",163:"11e80a41f99ce239a7a5",390:"7136eb961a9ddd1a22bc",892:"e288df88dfe280a462da",1052:"ae0db275f8d2b5158708",1548:"e2735465b85471ab666a",1556:"6f11ff33d8ccb9f63e6c",1568:"b41a79be99ebdd620ec7",1900:"d21bc5ac3170735b2caa",2647:"209658e45dbff79a36ec",2789:"64ee1fa4c23b8d4277ae",2825:"b43ab2296244a77d94b4",3104:"843cfcc3b5a3199f3c76",3115:"81ca5ae3c1d52413f2bc",3132:"466aa980cabaee0a1b49",3681:"dc05abf6ea90cb9c5c10",3782:"d25944291bd1af9ae87a",4108:"8a3ebfd06de227eef90a",4241:"db40fda31710985146bc",4516:"15dbd26ed6460d011162",4629:"b73b43d8742cb20a8df9",5606:"4ba39723f8d3785d40e8",5838:"7afbbcc73add54ec3735",5991:"01db9f14ad439ad7f893",6222:"974b2fc6ebf86b79332d",6472:"2470f59372699e32f2ee",6629:"b31638fbc391e7514ea3",7642:"b2ffac613a40e1e7f6de",8239:"d765fa1fae036c0e84b8",8826:"13a56d782d4d5493991f",9059:"50f8827bdb16e41eef2e",9884:"d1b20727420f0b3d47b8",9963:"31829e263de500148486"}[e]+".css",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}
2}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="folio:",o.l=(n,r,i,s)=>{if(e[n])e[n].push(r);else{var a,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[r];var p=(t,r)=>{a.onerror=a.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(r)),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/dist/",(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,n)=>{var r=o.miniCssF(e),i=o.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(s=n[r]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(o===e||o===t))return s}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var s;if((o=(s=i[r]).getAttribute("data-href"))===e||o===t)return s}})(r,i))return t();((e,t,n,r,i)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",o.nc&&(s.nonce=o.nc),s.onerror=s.onload=n=>{if(s.onerror=s.onload=null,"load"===n.type)r();else{var o=n&&n.type,a=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=a,s.parentNode&&s.parentNode.removeChild(s),i(l)}},s.href=t,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s)})(e,i,null,t,n)}),t={3023:0};o.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{24:1,163:1,390:1,892:1,1052:1,1548:1,1556:1,1568:1,1900:1,2647:1,2789:1,2825:1,3104:1,3115:1,3132:1,3681:1,3782:1,4108:1,4241:1,4516:1,4629:1,5606:1,5838:1,5991:1,6222:1,6472:1,6629:1,7642:1,8239:1,8826:1,9059:1,9884:1,9963:1}[n]&&r.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))}}})(),(()=>{var e={3023:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=i);var s=o.p+o.u(t),a=new Error;o.l(s,n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[s,a,l]=n,c=0;if(s.some(t=>0!==e[t])){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(l)l(o)}for(t&&t(n);c<s.length;c++)i=s[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkfolio=self.webpackChunkfolio||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();o(13510)})();
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.