PageSourceSearch

https://www.kuopionpursiseura.fi/@res/ssr-browsing/ssr-browsing.js?b1789981186

js kuopionpursiseura.fi collected 2026-09-25 01:26:33 UTC 388,797 bytes, 139 lines download raw bytes

1(function () {var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function u(e,t){let n=new Set(e.split(`,`));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var d={},f=[],p=()=>{},m=()=>!1,h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g=e=>e.startsWith(`onUpdate:`),_=Object.assign,v=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,S=e=>k(e)===`[object Map]`,C=e=>k(e)===`[object Set]`,w=e=>k(e)===`[object Date]`,T=e=>typeof e==`function`,E=e=>typeof e==`string`,D=e=>typeof e==`symbol`,O=e=>typeof e==`object`&&!!e,ee=e=>(O(e)||T(e))&&T(e.then)&&T(e.catch),te=Object.prototype.toString,k=e=>te.call(e),ne=e=>k(e).slice(8,-1),re=e=>k(e)===`[object Object]`,ie=e=>E(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,A=u(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ae=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oe=/-(\w)/g,se=ae(e=>e.replace(oe,(e,t)=>t?t.toUpperCase():``)),ce=/\B([A-Z])/g,le=ae(e=>e.replace(ce,`-$1`).toLowerCase()),ue=ae(e=>e.charAt(0).toUpperCase()+e.slice(1)),de=ae(e=>e?`on${ue(e)}`:``),fe=(e,t)=>!Object.is(e,t),pe=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},me=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},he=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ge=e=>{let t=E(e)?Number(e):NaN;return isNaN(t)?e:t},_e,ve=()=>_e||(_e=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{});function ye(e){if(x(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=E(r)?Ce(r):ye(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(E(e)||O(e))return e}var be=/;(?![^(]*\))/g,xe=/:([^]+)/,Se=/\/\*[^]*?\*\//g;function Ce(e){let t={};return e.replace(Se,``).split(be).forEach(e=>{if(e){let n=e.split(xe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t=``;if(E(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){let r=j(e[n]);r&&(t+=r+` `)}else if(O(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var we=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Te=u(we);we+``;function Ee(e){return!!e||e===``}function De(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Oe(e[r],t[r]);return n}function Oe(e,t){if(e===t)return!0;let n=w(e),r=w(t);
1if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=D(e),r=D(t),n||r)return e===t;if(n=x(e),r=x(t),n||r)return n&&r?De(e,t):!1;if(n=O(e),r=O(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Oe(e[n],t[n]))return!1}}return String(e)===String(t)}function ke(e,t){return e.findIndex(e=>Oe(e,t))}var M=e=>E(e)?e:e==null?``:x(e)||O(e)&&(e.toString===te||!T(e.toString))?JSON.stringify(e,Ae,2):String(e),Ae=(e,t)=>t&&t.__v_isRef?Ae(e,t.value):S(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[je(t,r)+` =>`]=n,e),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>je(e))}:D(t)?je(t):O(t)&&!x(t)&&!re(t)?String(t):t,je=(e,t=``)=>{var n;return D(e)?`Symbol(${(n=e.description)==null?t:n})`:e},Me,Ne=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Me,!e&&Me&&(this.index=(Me.scopes||(Me.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let t=Me;try{return Me=this,e()}finally{Me=t}}}on(){Me=this}off(){Me=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}};function Pe(e){return new Ne(e)}function Fe(e,t=Me){t&&t.active&&t.effects.push(e)}function Ie(){return Me}function Le(e){Me&&Me.cleanups.push(e)}var Re,ze=class{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Fe(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,qe();for(let e=0;e<this._depsLength;e++){let t=this.deps[e];if(t.computed&&(Be(t.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Je()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=We,t=Re;try{return We=!0,Re=this,this._runnings++,Ve(this),this.fn()}finally{He(this),this._runnings--,Re=t,We=e}}stop(){var e;this.active&&(Ve(this),He(this),(e=this.onStop)==null||e.call(this),this.active=!1)}};function Be(e){return e.value}function Ve(e){e._trackId++,e._depsLength=0}function He(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ue(e.deps[t],e);e.deps.length=e._depsLength}}function Ue(e,t){let n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}var We=!0,Ge=0,Ke=[];function qe(){Ke.push(We),We=!1}function Je(){let e=Ke.pop();We=e===void 0?!0:e}function Ye(){Ge++}function Xe(){for(Ge--;!Ge&&Qe.length;)Qe.shift()()}function Ze(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);let n=e.deps[e._depsLength];n===t?e._depsLength++:(n&&Ue(n,e),e.deps[e._depsLength++]=t)}}var Qe=[];function $e(e,t,n){Ye();for(let n of e.keys()){let r;n._dirtyLevel<t&&(r==null?r=e.get(n)===n._trackId:r)&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(r==null?r=e.get(n)===n._trackId:r)&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&Qe.push(n.scheduler)))}Xe()}var et=(e,t)=>{let n=new Map;return n.cleanup=e,n.computed=t,n},tt=new WeakMap,nt=Symbol(``),rt=Symbol(``);function it(e,t,n){if(We&&Re){let t=tt.get(e);t||tt.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=et(()=>t.delete(n))),Ze(Re,r,void 0)}}function at(e,t,n,r,i,a){let o=tt.get(e);if(!o)return;let s=[];if(t===`clear`)s=[...o.values()];else if(n===`length`&&x(e)){let e=Number(r);o.forEach((t,n)=>{(n===`length`||!D(n)&&n>=e)&&s.push(t)})}else switch(n!==void 0&&s.push(o.get(n)),t){case`add`:x(e)?ie(n)&&s.push(o.get(`length`)):(s.push(o.get(nt)),S(e)&&s.push(o.get(rt)));break;case`delete`:x(e)||(s.push(o.get(nt)),S(e)&&s.push(o.get(rt)));break;case`set`:S(e)&&s.push(o.get(nt));break}Ye();for(let e of s)e&&$e(e,4,void 0);Xe()}function ot(e,t){var n;return(n=tt.get(e))==null?void 0:n.get(t)}
1var st=u(`__proto__,__v_isRef,__isVue`),ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(D)),lt=ut();function ut(){let e={};return[`includes`,`indexOf`,`lastIndexOf`].forEach(t=>{e[t]=function(...e){let n=N(this);for(let e=0,t=this.length;e<t;e++)it(n,`get`,e+``);let r=n[t](...e);return r===-1||r===!1?n[t](...e.map(N)):r}}),[`push`,`pop`,`shift`,`unshift`,`splice`].forEach(t=>{e[t]=function(...e){qe(),Ye();let n=N(this)[t].apply(this,e);return Xe(),Je(),n}}),e}function dt(e){D(e)||(e=String(e));let t=N(this);return it(t,`has`,e),t.hasOwnProperty(e)}var ft=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ht:Vt:i?Bt:zt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=x(e);if(!r){if(a&&b(lt,t))return Reflect.get(lt,t,n);if(t===`hasOwnProperty`)return dt}let o=Reflect.get(e,t,n);return(D(t)?ct.has(t):st(t))||(r||it(e,`get`,t),i)?o:P(o)?a&&ie(t)?o:o.value:O(o)?r?qt(o):Gt(o):o}},pt=class extends ft{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=Xt(i);if(!Zt(n)&&!Xt(n)&&(i=N(i),n=N(n)),!x(e)&&P(i)&&!P(n))return t?!1:(i.value=n,!0)}let a=x(e)&&ie(t)?Number(t)<e.length:b(e,t),o=Reflect.set(e,t,n,r);return e===N(r)&&(a?fe(n,i)&&at(e,`set`,t,n,i):at(e,`add`,t,n)),o}deleteProperty(e,t){let n=b(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&at(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!D(t)||!ct.has(t))&&it(e,`has`,t),n}ownKeys(e){return it(e,`iterate`,x(e)?`length`:nt),Reflect.ownKeys(e)}},mt=class extends ft{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ht=new pt,gt=new mt,_t=new pt(!0),vt=e=>e,yt=e=>Reflect.getPrototypeOf(e);function bt(e,t,n=!1,r=!1){e=e.__v_raw;let i=N(e),a=N(t);n||(fe(t,a)&&it(i,`get`,t),it(i,`get`,a));let{has:o}=yt(i),s=r?vt:n?tn:en;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function xt(e,t=!1){let n=this.__v_raw,r=N(n),i=N(e);return t||(fe(e,i)&&it(r,`has`,e),it(r,`has`,i)),e===i?n.has(e):n.has(e)||n.has(i)}function St(e,t=!1){return e=e.__v_raw,!t&&it(N(e),`iterate`,nt),Reflect.get(e,`size`,e)}function Ct(e){e=N(e);let t=N(this);return yt(t).has.call(t,e)||(t.add(e),at(t,`add`,e,e)),this}function wt(e,t){t=N(t);let n=N(this),{has:r,get:i}=yt(n),a=r.call(n,e);a||(e=N(e),a=r.call(n,e));let o=i.call(n,e);return n.set(e,t),a?fe(t,o)&&at(n,`set`,e,t,o):at(n,`add`,e,t),this}function Tt(e){let t=N(this),{has:n,get:r}=yt(t),i=n.call(t,e);i||(e=N(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&at(t,`delete`,e,void 0,a),o}function Et(){let e=N(this),t=e.size!==0,n=e.clear();return t&&at(e,`clear`,void 0,void 0,void 0),n}function Dt(e,t){return function(n,r){let i=this,a=i.__v_raw,o=N(a),s=t?vt:e?tn:en;return!e&&it(o,`iterate`,nt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}}function Ot(e,t,n){return function(...r){let i=this.__v_raw,a=N(i),o=S(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?vt:t?tn:en;return!t&&it(a,`iterate`,c?rt:nt),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function At(){let e={get(e){return bt(this,e)},get size(){return St(this)},has:xt,add:Ct,set:wt,delete:Tt,clear:Et,forEach:Dt(!1,!1)},t={get(e){return bt(this,e,!1,!0)},get size(){return St(this)},has:xt,add:Ct,set:wt,delete:Tt,clear:Et,forEach:Dt(!1,!0)},n={get(e){return bt(this,e,!0)},get size(){return St(this,!0)},has(e){return xt.call(this,e,!0)},add:kt(`add`),set:kt(`set`),delete:kt(`delete`),clear:kt(`clear`),forEach:Dt(!0,!1)},r={get(e){return bt(this,e,!0,!0)},get size(){return St(this,!0)},has(e){return xt.call(this,e,!0)},add:kt(`add`),set:kt(`set`),delete:kt(`delete`),clear:kt(`clear`),forEach:Dt(!0,!0)};return[`keys`,`values`,`entries`,Symbol.iterator].forEach(i=>
1{e[i]=Ot(i,!1,!1),n[i]=Ot(i,!0,!1),t[i]=Ot(i,!1,!0),r[i]=Ot(i,!0,!0)}),[e,n,t,r]}var[jt,Mt,Nt,Pt]=At();function Ft(e,t){let n=t?e?Pt:Nt:e?Mt:jt;return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(b(n,r)&&r in t?n:t,r,i)}var It={get:Ft(!1,!1)},Lt={get:Ft(!1,!0)},Rt={get:Ft(!0,!1)},zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,Ht=new WeakMap;function Ut(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Wt(e){return e.__v_skip||!Object.isExtensible(e)?0:Ut(ne(e))}function Gt(e){return Xt(e)?e:Jt(e,!1,ht,It,zt)}function Kt(e){return Jt(e,!1,_t,Lt,Bt)}function qt(e){return Jt(e,!0,gt,Rt,Vt)}function Jt(e,t,n,r,i){if(!O(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=i.get(e);if(a)return a;let o=Wt(e);if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Yt(e){return Xt(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Zt(e){return!!(e&&e.__v_isShallow)}function Qt(e){return e?!!e.__v_raw:!1}function N(e){let t=e&&e.__v_raw;return t?N(t):e}function $t(e){return Object.isExtensible(e)&&me(e,`__v_skip`,!0),e}var en=e=>O(e)?Gt(e):e,tn=e=>O(e)?qt(e):e,nn=class{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ze(()=>e(this._value),()=>on(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){let e=N(this);return(!e._cacheable||e.effect.dirty)&&fe(e._value,e._value=e.effect.run())&&on(e,4),an(e),e.effect._dirtyLevel>=2&&on(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function rn(e,t,n=!1){let r,i,a=T(e);return a?(r=e,i=p):(r=e.get,i=e.set),new nn(r,i,a||!i,n)}function an(e){var t;We&&Re&&(e=N(e),Ze(Re,(t=e.dep)==null?e.dep=et(()=>e.dep=void 0,e instanceof nn?e:void 0):t,void 0))}function on(e,t=4,n){e=N(e);let r=e.dep;r&&$e(r,t,void 0)}function P(e){return!!(e&&e.__v_isRef===!0)}function F(e){return sn(e,!1)}function sn(e,t){return P(e)?e:new cn(e,t)}var cn=class{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:N(e),this._value=t?e:en(e)}get value(){return an(this),this._value}set value(e){let t=this.__v_isShallow||Zt(e)||Xt(e);e=t?e:N(e),fe(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:en(e),on(this,4,e))}};function I(e){return P(e)?e.value:e}var ln={get:(e,t,n)=>I(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return P(i)&&!P(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function un(e){return Yt(e)?e:new Proxy(e,ln)}var dn=class{constructor(e){this.dep=void 0,this.__v_isRef=!0;let{get:t,set:n}=e(()=>an(this),()=>on(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}};function fn(e){return new dn(e)}function pn(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=_n(e,n);return t}var mn=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){let e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ot(N(this._object),this._key)}},hn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}};function gn(e,t,n){return P(e)?e:T(e)?new hn(e):O(e)&&arguments.length>1?_n(e,t,n):F(e)}function _n(e,t,n){let r=e[t];return P(r)?r:new mn(e,t,n)}function vn(e,t,n,r){try{return r?e(...r):e()}catch(e){bn(e,t,n)}}function yn(e,t,n,r){if(T(e)){let i=vn(e,t,n,r);return i&&ee(i)&&i.catch(e=>{bn(e,t,n)}),i}if(x(e)){let i=[];for(let a=0;a<e.length;a++)i.push(yn(e[a],t,n,r));return i}}function bn(e,t,n,r=!0){let i=t?t.vnode:null;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}let o=t.appContext.config.errorHandler;if(o){qe(),vn(o,null,10,[e,i,a]),Je();return}}xn(e,n,i,r)}function xn(e,t,n,r=!0){console.error(e)}
1var Sn=!1,Cn=!1,wn=[],Tn=0,En=[],Dn=null,On=0,kn=Promise.resolve(),An=null;function jn(e){let t=An||kn;return e?t.then(this?e.bind(this):e):t}function Mn(e){let t=Tn+1,n=wn.length;for(;t<n;){let r=t+n>>>1,i=wn[r],a=zn(i);a<e||a===e&&i.pre?t=r+1:n=r}return t}function Nn(e){(!wn.length||!wn.includes(e,Sn&&e.allowRecurse?Tn+1:Tn))&&(e.id==null?wn.push(e):wn.splice(Mn(e.id),0,e),Pn())}function Pn(){!Sn&&!Cn&&(Cn=!0,An=kn.then(Vn))}function Fn(e){let t=wn.indexOf(e);t>Tn&&wn.splice(t,1)}function In(e){x(e)?En.push(...e):(!Dn||!Dn.includes(e,e.allowRecurse?On+1:On))&&En.push(e),Pn()}function Ln(e,t,n=Sn?Tn+1:0){for(;n<wn.length;n++){let t=wn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;wn.splice(n,1),n--,t()}}}function Rn(e){if(En.length){let e=[...new Set(En)].sort((e,t)=>zn(e)-zn(t));if(En.length=0,Dn){Dn.push(...e);return}for(Dn=e,On=0;On<Dn.length;On++)Dn[On]();Dn=null,On=0}}var zn=e=>e.id==null?1/0:e.id,Bn=(e,t)=>{let n=zn(e)-zn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Vn(e){Cn=!1,Sn=!0,wn.sort(Bn);try{for(Tn=0;Tn<wn.length;Tn++){let e=wn[Tn];e&&e.active!==!1&&vn(e,null,14)}}finally{Tn=0,wn.length=0,Rn(e),Sn=!1,An=null,(wn.length||En.length)&&Vn(e)}}function Hn(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d,i=n,a=t.startsWith(`update:`),o=a&&t.slice(7);if(o&&o in r){let{number:e,trim:t}=r[`${o===`modelValue`?`model`:o}Modifiers`]||d;t&&(i=n.map(e=>E(e)?e.trim():e)),e&&(i=n.map(he))}let s,c=r[s=de(t)]||r[s=de(se(t))];!c&&a&&(c=r[s=de(le(t))]),c&&yn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,yn(l,e,6,i)}}function Un(e,t,n=!1){let r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!T(e)){let r=e=>{let n=Un(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(O(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),O(e)&&r.set(e,o),o)}function Wn(e,t){return!e||!h(t)?!1:(t=t.slice(2).replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,le(t))||b(e,t))}var Gn=null,Kn=null;function qn(e){let t=Gn;return Gn=e,Kn=e&&e.type.__scopeId||null,t}function L(e,t=Gn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&_a(-1);let i=qn(t),a;try{a=e(...n)}finally{qn(i),r._d&&_a(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,_=qn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ea(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;v=Ea(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:Yn(s)}}catch(t){pa.length=0,bn(t,e,1),v=K(da)}let b=v;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(g)&&(y=Xn(y,a)),b=Ta(b,y))}return n.dirs&&(b=Ta(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),v=b,qn(_),v}var Yn=e=>{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||(t={}))[n]=e[n]);return t},Xn=(e,t)=>{let n={};for(let r in e)(!g(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Zn(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Qn(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];
1if(o[n]!==r[n]&&!Wn(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Qn(r,o,l):!0:!!o;return!1}function Qn(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(t[a]!==e[a]&&!Wn(n,a))return!0}return!1}function $n({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}var er=`components`;function R(e,t){return rr(er,e,!0,t)||e}var tr=Symbol.for(`v-ndc`);function nr(e){return E(e)?rr(er,e,!1)||e:e||tr}function rr(e,t,n=!0,r=!1){let i=Gn||Pa;if(i){let n=i.type;if(e===er){let e=Za(n,!1);if(e&&(e===t||e===se(t)||e===ue(se(t))))return n}let a=ir(i[e]||n[e],t)||ir(i.appContext[e],t);return!a&&r?n:a}}function ir(e,t){return e&&(e[t]||e[se(t)]||e[ue(se(t))])}var ar=e=>e.__isSuspense;function or(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):In(e)}var sr=Symbol.for(`v-scx`),cr=()=>Ei(sr);function lr(e,t){return fr(e,null,{flush:`sync`})}var ur={};function dr(e,t,n){return fr(e,t,n)}function fr(e,t,{immediate:n,deep:r,flush:i,once:a,onTrack:o,onTrigger:s}=d){if(t&&a){let e=t;t=(...t)=>{e(...t),E()}}let c=Pa,l=e=>r===!0?e:hr(e,r===!1?1:void 0),u,f=!1,m=!1;if(P(e)?(u=()=>e.value,f=Zt(e)):Yt(e)?(u=()=>l(e),f=!0):x(e)?(m=!0,f=e.some(e=>Yt(e)||Zt(e)),u=()=>e.map(e=>{if(P(e))return e.value;if(Yt(e))return l(e);if(T(e))return vn(e,c,2)})):u=T(e)?t?()=>vn(e,c,2):()=>(h&&h(),yn(e,c,3,[g])):p,t&&r){let e=u;u=()=>hr(e())}let h,g=e=>{h=C.onStop=()=>{vn(e,c,4),h=C.onStop=void 0}},_;if(Va)if(g=p,t?n&&yn(t,c,3,[u(),m?[]:void 0,g]):u(),i===`sync`){let e=cr();_=e.__watcherHandles||(e.__watcherHandles=[])}else return p;let y=m?Array(e.length).fill(ur):ur,b=()=>{if(!(!C.active||!C.dirty))if(t){let e=C.run();(r||f||(m?e.some((e,t)=>fe(e,y[t])):fe(e,y)))&&(h&&h(),yn(t,c,3,[e,y===ur?void 0:m&&y[0]===ur?[]:y,g]),y=e)}else C.run()};b.allowRecurse=!!t;let S;i===`sync`?S=b:i===`post`?S=()=>ea(b,c&&c.suspense):(b.pre=!0,c&&(b.id=c.uid),S=()=>Nn(b));let C=new ze(u,p,S),w=Ie(),E=()=>{C.stop(),w&&v(w.effects,C)};return t?n?b():y=C.run():i===`post`?ea(C.run.bind(C),c&&c.suspense):C.run(),_&&_.push(E),E}function pr(e,t,n){let r=this.proxy,i=E(e)?e.includes(`.`)?mr(r,e):()=>r[e]:e.bind(r,r),a;T(t)?a=t:(a=t.handler,n=t);let o=Ra(this),s=fr(i,a.bind(r),n);return o(),s}function mr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function hr(e,t,n=0,r){if(!O(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),P(e))hr(e.value,t,n,r);else if(x(e))for(let i=0;i<e.length;i++)hr(e[i],t,n,r);else if(C(e)||S(e))e.forEach(e=>{hr(e,t,n,r)});else if(re(e))for(let i in e)hr(e[i],t,n,r);return e}function gr(e,t){if(Gn===null)return e;let n=Xa(Gn)||Gn.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,a,o,s=d]=t[e];i&&(T(i)&&(i={mounted:i,updated:i}),i.deep&&hr(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function _r(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(qe(),yn(c,n,8,[e.el,s,e,t]),Je())}}var vr=Symbol(`_leaveCb`),yr=Symbol(`_enterCb`);function br(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zr(()=>{e.isMounted=!0}),Hr(()=>{e.isUnmounting=!0}),e}var xr=[Function,Array],Sr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xr,onEnter:xr,onAfterEnter:xr,onEnterCancelled:xr,onBeforeLeave:xr,onLeave:xr,onAfterLeave:xr,onLeaveCancelled:xr,onBeforeAppear:xr,onAppear:xr,onAfterAppear:xr,onAppearCancelled:xr},Cr={name:`BaseTransition`,props:Sr,setup(e,{slots:t}){let n=Fa(),r=br();return()=>{let i=t.default&&kr(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(let e of i)if(e.type!==da){a=e;break}}let o=N(e),{mode:s}=o;if(r.isLeaving)return Er(a);let c=Dr(a);if(!c)return Er(a);let l=Tr(c,o,r,n);Or(c,l);let u=n.subTree,d=u&&Dr(u);if(d&&d.type!==da&&!ba(c,d)){let e=Tr(d,o,r,n);if(Or(d,e),s===`out-in`)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Er(a);
1s===`in-out`&&c.type!==da&&(e.delayLeave=(e,t,n)=>{let i=wr(r,d);i[String(d.key)]=d,e[vr]=()=>{t(),e[vr]=void 0,delete l.delayedLeave},l.delayedLeave=n})}return a}}};function wr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Tr(e,t,n,r){let{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:h,onAppear:g,onAfterAppear:_,onAppearCancelled:v}=t,y=String(e.key),b=wr(n,e),S=(e,t)=>{e&&yn(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:a,persisted:o,beforeEnter(t){let r=s;if(!n.isMounted)if(i)r=h||s;else return;t[vr]&&t[vr](!0);let a=b[y];a&&ba(e,a)&&a.el[vr]&&a.el[vr](),S(r,[t])},enter(e){let t=c,r=l,a=u;if(!n.isMounted)if(i)t=g||c,r=_||l,a=v||u;else return;let o=!1,s=e[yr]=t=>{o||(o=!0,S(t?a:r,[e]),w.delayedLeave&&w.delayedLeave(),e[yr]=void 0)};t?C(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[yr]&&t[yr](!0),n.isUnmounting)return r();S(d,[t]);let a=!1,o=t[vr]=n=>{a||(a=!0,r(),S(n?m:p,[t]),t[vr]=void 0,b[i]===e&&delete b[i])};b[i]=e,f?C(f,[t,o]):o()},clone(e){return Tr(e,t,n,r)}};return w}function Er(e){if(jr(e))return e=Ta(e),e.children=null,e}function Dr(e){if(!jr(e))return e;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&T(n.default))return n.default()}}function Or(e,t){e.shapeFlag&6&&e.component?Or(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function kr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===V?(o.patchFlag&128&&i++,r=r.concat(kr(o.children,t,s))):(t||o.type!==da)&&r.push(s==null?o:Ta(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function z(e,t){return T(e)?_({name:e.name},t,{setup:e}):e}var Ar=e=>!!e.type.__asyncLoader,jr=e=>e.type.__isKeepAlive;function Mr(e,t){Pr(e,`a`,t)}function Nr(e,t){Pr(e,`da`,t)}function Pr(e,t,n=Pa){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Ir(t,r,n),n){let e=n.parent;for(;e&&e.parent;)jr(e.parent.vnode)&&Fr(r,t,n,e),e=e.parent}}function Fr(e,t,n,r){let i=Ir(t,e,r,!0);Ur(()=>{v(r[t],i)},n)}function Ir(e,t,n=Pa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;qe();let i=Ra(n),a=yn(t,n,e,r);return i(),Je(),a});return r?i.unshift(a):i.push(a),a}}var Lr=e=>(t,n=Pa)=>(!Va||e===`sp`)&&Ir(e,(...e)=>t(...e),n),Rr=Lr(`bm`),zr=Lr(`m`),Br=Lr(`bu`),Vr=Lr(`u`),Hr=Lr(`bum`),Ur=Lr(`um`),Wr=Lr(`sp`),Gr=Lr(`rtg`),Kr=Lr(`rtc`);function qr(e,t=Pa){Ir(`ec`,e,t)}function Jr(e,t,n,r){let i,a=n&&n[r];if(x(e)||E(e)){i=Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(O(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function Yr(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(x(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function B(e,t,n={},r,i){if(Gn.isCE||Gn.parent&&Ar(Gn.parent)&&Gn.parent.isCE)return t!==`default`&&(n.name=t),K(`slot`,n,r&&r()
1);let a=e[t];a&&a._c&&(a._d=!1),H();let o=a&&Xr(a(n)),s=W(V,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+`-s`]),a&&a._c&&(a._d=!0),s}function Xr(e){return e.some(e=>ya(e)?!(e.type===da||e.type===V&&!Xr(e.children)):!0)?e:null}var Zr=e=>e?Ba(e)?Xa(e)||e.proxy:Zr(e.parent):null,Qr=_(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=>Zr(e.parent),$root:e=>Zr(e.root),$emit:e=>e.emit,$options:e=>di(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Nn(e.update)}),$nextTick:e=>e.n||(e.n=jn.bind(e.proxy)),$watch:e=>pr.bind(e)}),$r=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),ei={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e,l;if(t[0]!==`$`){let s=o[t];if(s!==void 0)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if($r(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if((l=e.propsOptions[0])&&b(l,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else oi&&(o[t]=0)}let u=Qr[t],f,p;if(u)return t===`$attrs`&&it(e.attrs,`get`,``),u(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==d&&b(n,t))return o[t]=4,n[t];if(p=c.config.globalProperties,b(p,t))return p[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return $r(i,t)?(i[t]=n,!0):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},o){let s;return!!n[o]||e!==d&&b(e,o)||$r(t,o)||(s=a[0])&&b(s,o)||b(r,o)||b(Qr,o)||b(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function ti(){return ni().slots}function ni(){let e=Fa();return e.setupContext||(e.setupContext=Ya(e))}function ri(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function ii(e,t){let n=ri(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?x(r)||T(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function ai(e,t){return!e||!t?e||t:x(e)&&x(t)?e.concat(t):_({},ri(e),ri(t))}var oi=!0;function si(e){let t=di(e),n=e.proxy,r=e.ctx;oi=!1,t.beforeCreate&&li(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:w,renderTriggered:E,errorCaptured:D,serverPrefetch:ee,expose:te,inheritAttrs:k,components:ne,directives:re,filters:ie}=t;if(l&&ci(l,r,null),o)for(let e in o){let t=o[e];T(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);O(t)&&(e.data=Gt(t))}if(oi=!0,a)for(let e in a){let t=a[e],i=Y({get:T(t)?t.bind(n,n):T(t.get)?t.get.bind(n,n):p,set:!T(t)&&T(t.set)?t.set.bind(n):p});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)ui(s[e],r,n,e);if(c){let e=T(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Ti(t,e[t])})}u&&li(u,e,`c`);function A(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A(Rr,d),A(zr,f),A(Br,m),A(Vr,h),A(Mr,g),A(Nr,_),A(qr,D),A(Kr,w),A(Gr,E),A(Hr,y),A(Ur,S),A(Wr,ee),x(te))if(te.length){let t=e.exposed||(e.exposed={});te.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});C&&e.render===p&&(e.render=C),k!=null&&(e.inheritAttrs=k),ne&&(e.components=ne),re&&(e.directives=re)}function ci(e,t,n=p){x(e)&&(e=gi(e));for(let n in e){let r=e[n],i;i=O(r)?`default`in r?Ei(r.from||n,r.default,!0):Ei(r.from||n):Ei(r),P(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function li(e,t,n){yn(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ui(e,t,n,r){let i=r.includes(`.`)?mr(n,r):()=>n[r];if(E(e)){let n=t[e];T(n)&&dr(i,n)}else if(T(e))dr(i,e.bind(n));
1else if(O(e))if(x(e))e.forEach(e=>ui(e,t,n,r));else{let r=T(e.handler)?e.handler.bind(n):t[e.handler];T(r)&&dr(i,r,e)}}function di(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>fi(c,e,o,!0)),fi(c,t,o)),O(t)&&a.set(t,c),c}function fi(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&fi(e,a,n,!0),i&&i.forEach(t=>fi(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=pi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var pi={data:mi,props:yi,emits:yi,methods:vi,computed:vi,beforeCreate:_i,created:_i,beforeMount:_i,mounted:_i,beforeUpdate:_i,updated:_i,beforeDestroy:_i,beforeUnmount:_i,destroyed:_i,unmounted:_i,activated:_i,deactivated:_i,errorCaptured:_i,serverPrefetch:_i,components:vi,directives:vi,watch:bi,provide:mi,inject:hi};function mi(e,t){return t?e?function(){return _(T(e)?e.call(this,this):e,T(t)?t.call(this,this):t)}:t:e}function hi(e,t){return vi(gi(e),gi(t))}function gi(e){if(x(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _i(e,t){return e?[...new Set([].concat(e,t))]:t}function vi(e,t){return e?_(Object.create(null),e,t):t}function yi(e,t){return e?x(e)&&x(t)?[...new Set([...e,...t])]:_(Object.create(null),ri(e),ri(t==null?{}:t)):t}function bi(e,t){if(!e)return t;if(!t)return e;let n=_(Object.create(null),e);for(let r in t)n[r]=_i(e[r],t[r]);return n}function xi(){return{app:null,config:{isNativeTag:m,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}}var Si=0;function Ci(e,t){return function(n,r=null){T(n)||(n=_({},n)),r!=null&&!O(r)&&(r=null);let i=xi(),a=new WeakSet,o=!1,s=i.app={_uid:Si++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:to,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&T(e.install)?(a.add(e),e.install(s,...t)):T(e)&&(a.add(e),e(s,...t))),s},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),s},component(e,t){return t?(i.components[e]=t,s):i.components[e]},directive(e,t){return t?(i.directives[e]=t,s):i.directives[e]},mount(a,c,l){if(!o){let u=K(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),c&&t?t(u,a):e(u,a,l),o=!0,s._container=a,a.__vue_app__=s,Xa(u.component)||u.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide(e,t){return i.provides[e]=t,s},runWithContext(e){let t=wi;wi=s;try{return e()}finally{wi=t}}};return s}}var wi=null;function Ti(e,t){if(Pa){let n=Pa.provides,r=Pa.parent&&Pa.parent.provides;r===n&&(n=Pa.provides=Object.create(r)),n[e]=t}}function Ei(e,t,n=!1){let r=Pa||Gn;if(r||wi){let i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:wi._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&T(t)?t.call(r&&r.proxy):t}}function Di(){return!!(Pa||Gn||wi)}var Oi={},ki=()=>Object.create(Oi),Ai=e=>Object.getPrototypeOf(e)===Oi;function ji(e,t,n,r=!1){let i={},a=ki();e.propsDefaults=Object.create(null),Ni(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Kt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Mi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=N(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Wn(e.emitsOptions,o))continue;let u=t[o];if(c)if(b(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=se(o);i[t]=Pi(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Ni(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!b(t,a)&&((r=le(a))===a||!b(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Pi(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!b(t,e))&&(delete a[e],l=!0)}l&&at(e.attrs,`set`,``)}function Ni(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(A(c))continue;let l=t[c],u;i&&b(i,u=se(c))?!a||!a.includes(u)?n[u]=l:(s||(s={}))[u]=l:Wn(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=N(n),r=s||d;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Pi(i,t,s,r[s],e,!b(r,s))}}return o}function Pi(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=b(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&T(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Ra(i);r=a[n]=e.call(null,t),o()}}else r=e}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===le(n))&&(r=!0))}return r}function Fi(e,t,n=!1){let r=t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!T(e)){let r=e=>{c=!0;let[n,r]=Fi(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return O(e)&&r.set(e,f),f;if(x(a))for(let e=0;e<a.length;e++){let t=se(a[e]);Ii(t)&&(o[t]=d)}else if(a)for(let e in a){let t=se(e);if(Ii(t)){let n=a[e],r=o[t]=x(n)||T(n)?{type:n}:_({},n);if(r){let e=zi(Boolean,r.type),n=zi(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||b(r,`default`))&&s.push(t)}}}let l=[o,s];return O(e)&&r.set(e,l),l}function Ii(e){return e[0]!==`$`&&!A(e)}function Li(e){return e===null?`null`:typeof e==`function`?e.name||``:typeof e==`object`&&e.constructor&&e.constructor.name||``}function Ri(e,t){return Li(e)===Li(t)}function zi(e,t){return x(t)?t.findIndex(t=>Ri(t,e)):T(t)&&Ri(t,e)?0:-1}var Bi=e=>e[0]===`_`||e===`$stable`,Vi=e=>x(e)?e.map(Ea):[Ea(e)],Hi=(e,t,n)=>{if(t._n)return t;let r=L((...e)=>Vi(t(...e)),n);return r._c=!1,r},Ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Bi(n))continue;let i=e[n];if(T(i))t[n]=Hi(n,i,r);else if(i!=null){let e=Vi(i);t[n]=()=>e}}},Wi=(e,t)=>{let n=Vi(t);e.slots.default=()=>n},Gi=(e,t)=>{let n=e.slots=ki();if(e.vnode.shapeFlag&32){let e=t._;e?(_(n,t),me(n,`_`,e)):Ui(t,n)}else t&&Wi(e,t)},Ki=(e,t,n)=>
1{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:(_(i,t),!n&&e===1&&delete i._):(a=!t.$stable,Ui(t,i)),o=t}else t&&(Wi(e,t),o={default:1});if(a)for(let e in i)!Bi(e)&&o[e]==null&&delete i[e]};function qi(e,t,n,r,i=!1){if(x(e)){e.forEach((e,a)=>qi(e,t&&(x(t)?t[a]:t),n,r,i));return}if(Ar(r)&&!i)return;let a=r.shapeFlag&4?Xa(r.component)||r.component.proxy:r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===d?s.refs={}:s.refs,f=s.setupState;if(l!=null&&l!==c&&(E(l)?(u[l]=null,b(f,l)&&(f[l]=null)):P(l)&&(l.value=null)),T(c))vn(c,s,12,[o,u]);else{let t=E(c),r=P(c);if(t||r){let s=()=>{if(e.f){let n=t?b(f,c)?f[c]:u[c]:c.value;i?x(n)&&v(n,a):x(n)?n.includes(a)||n.push(a):t?(u[c]=[a],b(f,c)&&(f[c]=u[c])):(c.value=[a],e.k&&(u[e.k]=c.value))}else t?(u[c]=o,b(f,c)&&(f[c]=o)):r&&(c.value=o,e.k&&(u[e.k]=o))};o?(s.id=-1,ea(s,n)):s()}}}var Ji=!1,Yi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Xi=e=>e.namespaceURI.includes(`MathML`),Zi=e=>{if(Yi(e))return`svg`;if(Xi(e))return`mathml`},Qi=e=>e.nodeType===8;function $i(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:s,insert:c,createComment:l}}=e,u=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),Rn(),t._vnode=e;return}Ji=!1,d(t.firstChild,e,null,null,null),Rn(),t._vnode=e,Ji&&console.error(`Hydration completed but contains mismatches.`)},d=(n,r,s,l,u,h=!1)=>{h=h||!!r.dynamicChildren;let b=Qi(n)&&n.data===`[`,x=()=>g(n,r,s,l,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:T}=r,E=n.nodeType;r.el=n,T===-2&&(h=!1,r.dynamicChildren=null);let D=null;switch(S){case ua:E===3?(n.data!==r.children&&(Ji=!0,n.data=r.children),D=a(n)):r.children===``?(c(r.el=i(``),o(n),n),D=n):D=x();break;case da:y(n)?(D=a(n),v(r.el=n.content.firstChild,n,s)):D=E!==8||b?x():a(n);break;case fa:if(b&&(n=a(n),E=n.nodeType),E===1||E===3){D=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=D.nodeType===1?D.outerHTML:D.data),t===r.staticCount-1&&(r.anchor=D),D=a(D);return b?a(D):D}else x();break;case V:D=b?m(n,r,s,l,u,h):x();break;default:if(w&1)D=(E!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():f(n,r,s,l,u,h);else if(w&6){r.slotScopeIds=u;let e=o(n);if(D=b?_(n):Qi(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,l,Zi(e),h),Ar(r)){let t;b?(t=K(V),t.anchor=D?D.previousSibling:e.lastChild):t=n.nodeType===3?q(``):K(`div`),t.el=n,r.component.subTree=t}}else w&64?D=E===8?r.type.hydrate(n,r,s,l,u,h,e,p):x():w&128&&(D=r.type.hydrate(n,r,s,l,Zi(o(n)),u,h,e,d))}return C!=null&&qi(C,null,l,r),D},f=(e,t,n,i,a,o)=>{o=o||!!t.dynamicChildren;let{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,g=c===`input`||c===`option`;if(g||u!==-1){f&&_r(t,null,n,`created`);let c=!1;if(y(e)){c=aa(i,m)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;c&&m.beforeEnter(r),v(r,e,n),t.el=e=r}if(d&16&&!(l&&(l.innerHTML||l.textContent))){let r=p(e.firstChild,t,e,n,i,a,o);for(;r;){Ji=!0;let e=r;r=r.nextSibling,s(e)}}else d&8&&e.textContent!==t.children&&(Ji=!0,e.textContent=t.children);if(l)if(g||!o||u&48)for(let t in l)(g&&(t.endsWith(`value`)||t===`indeterminate`)||h(t)&&!A(t)||t[0]===`.`)&&r(e,t,null,l[t],void 0,void 0,n);else l.onClick&&r(e,`onClick`,null,l.onClick,void 0,void 0,n);let _;(_=l&&l.onVnodeBeforeMount)&&Aa(_,n,t),f&&_r(t,null,n,`beforeMount`),((_=l&&l.onVnodeMounted)||f||c)&&or(()=>{_&&Aa(_,n,t),c&&m.enter(e),f&&_r(t,null,n,`mounted`)},i)}return e.nextSibling},p=(e,t,r,i,a,o,s)=>{s=s||!!t.dynamicChildren;let c=t.children,l=c.length;for(let t=0;t<l;t++){let l=s?c[t]:c[t]=Ea(c[t]);if(e)e=d(e,l,i,a,o,s);else if(l.type===ua&&!l.children)continue;else Ji=!0,n(null,l,r,null,i,a,Zi(r),o)}return e},m=(e,t,n,r,i,s)=>{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=o(e),f=p(a(e),t,d,n,r,i,s);return f&&Qi(f)&&f.data===`]`?a(t.anchor=f):(Ji=!0,c(t.anchor=l(`]`),d,f),f)},g=(e,t,r,i,c,l)=>{if(Ji=!0,t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)s(n);else break}}let u=a(e),d=o(e);return s(e),n(null,t,d,u,r,i,Zi(d),c),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Qi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e}
1,v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName.toLowerCase()===`template`;return[u,d]}var ea=or;function ta(e){return na(e,$i)}function na(e,t){let n=ve();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!ba(e,t)&&(r=_e(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case ua:y(e,t,n,r);break;case da:b(e,t,n,r);break;case fa:e==null&&x(t,n,r,o);break;case V:k(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ne(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,xe)}u!=null&&i&&qi(u,e&&e.ref,a,t||e,!t)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null?T(t,n,r,i,a,o,s,c):O(e,t,i,a,o,s,c)},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,ra(e,c),l,d),_&&_r(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let t in m)t!==`value`&&!A(t)&&a(f,t,null,m[t],c,e.children,i,s,ge);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Aa(p,i,e)}_&&_r(e,null,i,`beforeMount`);let v=aa(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&ea(()=>{p&&Aa(p,i,e),v&&g.enter(f),_&&_r(e,null,i,`mounted`)},s)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i&&t===i.subTree){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}},D=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?Da(e[l]):Ea(e[l]),t,n,r,i,a,o,s)},O=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&ia(n,!1),(g=h.onVnodeBeforeUpdate)&&Aa(g,n,t,e),p&&_r(t,e,n,`beforeUpdate`),n&&ia(n,!0),f?ee(e.dynamicChildren,f,c,n,r,ra(t,i),o):s||se(e,t,c,null,n,r,ra(t,i),o,!1),l>0){if(l&16)te(c,t,m,h,n,r,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let o=t.dynamicProps;for(let t=0;t<o.length;t++){let s=o[t],l=m[s],u=h[s];(u!==l||s===`value`)&&a(c,s,l,u,i,e.children,n,r,ge)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&f==null&&te(c,t,m,h,n,r,i);((g=h.onVnodeUpdated)||p)&&ea(()=>{g&&Aa(g,n,t,e),p&&_r(t,e,n,`updated`)},r)},ee=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===V||!ba(c,l)||c.shapeFlag&70)?m(c.el):n,null,r,i,a,o,!0)}},te=(e,t,n,r,i,o,s)=>{if(n!==r){if(n!==d)for(let c in n)!A(c)&&!(c in r)&&a(e,c,n[c],null,s,t.children,i,o,ge);for(let c in r){if(A(c))continue;let l=r[c],u=n[c];l!==u&&c!==`value`&&a(e,c,u,l,s,t.children,i,o,ge)}`value`in r&&a(e,`value`,n.value,r.value,s)}},k=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren?(ee(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&oa(e,t,!0)):se(e,t,n,f,a,o,c,l,u)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):ie(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Na(e,r,i);jr(e)&&(s.ctx.renderer=xe),Ha(s),s.asyncDep?(i&&i.registerDep(s,ae),e.el||b(null,s.subTree=K(da),t,n)):ae(s,e,t,n,i,a,o)},ie=(e,t,n)=>{let r=t.component=e.component;if(Zn(e,t,n))if(r.asyncDep&&!r.asyncResolved){oe(r,t,n);return}
1else r.next=t,Fn(r.update),r.effect.dirty=!0,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=ca(e);if(n){t&&(t.el=l.el,oe(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,d;ia(e,!1),t?(t.el=l.el,oe(e,t,o)):t=l,n&&pe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Aa(d,c,t,l),ia(e,!0);let f=Jn(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&$n(e,f.el),r&&ea(r,i),(d=t.props&&t.props.onVnodeUpdated)&&ea(()=>Aa(d,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d}=e,f=Ar(t);if(ia(e,!1),l&&pe(l),!f&&(o=c&&c.onVnodeBeforeMount)&&Aa(o,d,t),ia(e,!0),s&&Ce){let n=()=>{e.subTree=Jn(e),Ce(s,e.subTree,e,i,null)};f?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{let o=e.subTree=Jn(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&ea(u,i),!f&&(o=c&&c.onVnodeMounted)){let e=t;ea(()=>Aa(o,d,e),i)}(t.shapeFlag&256||d&&Ar(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ea(e.a,i),e.isMounted=!0,t=n=r=null}},c=e.effect=new ze(s,p,()=>Nn(l),e.scope),l=e.update=()=>{c.dirty&&c.run()};l.id=e.uid,ia(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Mi(e,t.props,r,n),Ki(e,t.children,n),qe(),Ln(e),Je()},se=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){le(l,f,n,r,i,a,o,s,c);return}else if(p&256){ce(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&ge(l,i,a),f!==l&&u(n,f)):d&16?m&16?le(l,f,n,r,i,a,o,s,c):ge(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},ce=(e,t,n,r,i,a,o,s,c)=>{e=e||f,t=t||f;let l=e.length,u=t.length,d=Math.min(l,u),p;for(p=0;p<d;p++){let r=t[p]=c?Da(t[p]):Ea(t[p]);v(e[p],r,n,null,i,a,o,s,c)}l>u?ge(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},le=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?Da(t[l]):Ea(t[l]);if(ba(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?Da(t[p]):Ea(t[p]);if(ba(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=e<u?t[e].el:r;for(;l<=p;)v(null,t[l]=c?Da(t[l]):Ea(t[l]),n,d,i,a,o,s,c),l++}}else if(l>p)for(;l<=d;)de(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?Da(t[l]):Ea(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=m;l<=d;l++){let r=e[l];if(y>=b){de(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&ba(r,t[_])){u=_;break}u===void 0?de(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?sa(C):f;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=e+1<u?t[e+1].el:r;C[l]===0?v(null,d,n,f,i,a,o,s,c):x&&(_<0||l!==w[_]?ue(d,n,f,2):_--)}}},ue=(e,t,n,i,a=null)=>{let{el:o,type:s,transition:c,children:l,shapeFlag:u}=e;if(u&6){ue(e.component.subTree,t,n,i);return}if(u&128){e.suspense.move(t,n,i);return}if(u&64){s.move(e,t,n,xe);return}if(s===V){r(o,t,n);for(let e=0;e<l.length;e++)ue(l[e],t,n,i);r(e.anchor,t,n);return}if(s===fa){S(e,t,n);return}if(i!==2&&u&1&&c)if(i===0)c.beforeEnter(o),r(o,t,n),ea(()=>c.enter(o),a);else{let{leave:e,delayLeave:i,afterLeave:a}=c,s=()=>r(o,t,n),l=()=>{e(o,()=>{s(),a&&a()})};i?i(o,s,l):l()}else r(o,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f}=e;if(s!=null&&qi(s,null,n,e,!0),u&256){t.ctx.deactivate(e);return}let p=u&1&&f,m=!Ar(e),h;if(m&&(h=o&&o.onVnodeBeforeUnmount)&&Aa(h,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}p&&_r(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,i,xe,r):l&&(a!==V||d>0&&d&64)?ge(l,t,n,!1,!0):(a===V&&d&384||!i&&u&16)&&ge(c,t,n),r&&fe(e)}(m&&(h=o&&o.onVnodeUnmounted)||p)&&ea(()=>{h&&Aa(h,t,e),p&&_r(e,null,t,`unmounted`)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===V){me(n,r);return}if(t===fa){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},he=(e,t,n)=>{let{bum:r,scope:i,update:a,subTree:o,um:s}=e;r&&pe(r),i.stop(),a&&(a.active=!1,de(o,e,t,n)),s&&ea(s,t),ea(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,t.deps===0&&t.resolve())},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)de(e[o],t,n,r,i)},_e=e=>e.shapeFlag&6?_e(e.component.subTree):e.shapeFlag&128?e.suspense.next():h(e.anchor||e.el),ye=!1,be=(e,t,n
1)=>{e==null?t._vnode&&de(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),ye||(ye=!0,Ln(),Rn(),ye=!1),t._vnode=e},xe={p:v,um:de,m:ue,r:fe,mt:re,mc:D,pc:se,pbc:ee,n:_e,o:e},Se,Ce;return t&&([Se,Ce]=t(xe)),{render:be,hydrate:Se,createApp:Ci(be,Se)}}function ra({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ia({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function oa(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Da(i[e]),a.el=t.el),n||oa(t,a)),a.type===ua&&(a.el=t.el)}}function sa(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function ca(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ca(t)}var la=e=>e.__isTeleport,V=Symbol.for(`v-fgt`),ua=Symbol.for(`v-txt`),da=Symbol.for(`v-cmt`),fa=Symbol.for(`v-stc`),pa=[],ma=null;function H(e=!1){pa.push(ma=e?null:[])}function ha(){pa.pop(),ma=pa[pa.length-1]||null}var ga=1;function _a(e){ga+=e}function va(e){return e.dynamicChildren=ga>0?ma||f:null,ha(),ga>0&&ma&&ma.push(e),e}function U(e,t,n,r,i,a){return va(G(e,t,n,r,i,a,!0))}function W(e,t,n,r,i){return va(K(e,t,n,r,i,!0))}function ya(e){return e?e.__v_isVNode===!0:!1}function ba(e,t){return e.type===t.type&&e.key===t.key}var xa=({key:e})=>e==null?null:e,Sa=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:E(e)||P(e)||T(e)?{i:Gn,r:e,k:t,f:!!n}:e);function G(e,t=null,n=null,r=0,i=null,a=e===V?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xa(t),ref:t&&Sa(t),scopeId:Kn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Gn};return s?(Oa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=E(n)?8:16),ga>0&&!o&&ma&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ma.push(c),c}var K=Ca;function Ca(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===tr)&&(e=da),ya(e)){let r=Ta(e,t,!0);return n&&Oa(r,n),ga>0&&!a&&ma&&(r.shapeFlag&6?ma[ma.indexOf(e)]=r:ma.push(r)),r.patchFlag|=-2,r}if(Qa(e)&&(e=e.__vccOpts),t){t=wa(t);let{class:e,style:n}=t;e&&!E(e)&&(t.class=j(e)),O(n)&&(Qt(n)&&!x(n)&&(n=_({},n)),t.style=ye(n))}let o=E(e)?1:ar(e)?128:la(e)?64:O(e)?4:T(e)?2:0;return G(e,t,n,r,i,o,a,!0)}function wa(e){return e?Qt(e)||Ai(e)?_({},e):e:null}function Ta(e,t,n=!1){let{props:r,ref:i,patchFlag:a,children:o}=e,s=t?ka(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&xa(s),ref:t&&t.ref?n&&i?x(i)?i.concat(Sa(t)):[i,Sa(t)]:Sa(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==V?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ta(e.ssContent),ssFallback:e.ssFallback&&Ta(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function q(e=` `,t=0){return K(ua,null,e,t)}function J(e=``,t=!1){return t?(H(),W(da,null,e)):K(da,null,e)}function Ea(e){return e==null||typeof e==`boolean`?K(da):x(e)?K(V,null,e.slice()):typeof e==`object`?Da(e):K(ua,null,String(e))}function Da(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ta(e)}function Oa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Oa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Ai(t)?t._ctx=Gn:r===3&&Gn&&(Gn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else T(t)?(t={default:t,_ctx:Gn},n=32):(t=String(t),r&64?(n=16,t=[q(t)]):n=8);e.children=t,e.shapeFlag|=n}function ka(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=j([t.class,r.class]));else if(e===`style`)t.style=ye([t.style,r.style]);else if(h(e)){let n=t[e],i=r[e];i&&n!==i&&!(x(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else e!==``&&(t[e]=r[e])}return t}function Aa(e,t,n,r=null){yn(e,t,7,[n,r])}var ja=xi(),Ma=0;function Na(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||ja,a={uid:Ma++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fi(r,i),emitsOptions:Un(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,attrsProxy:null,slotsProxy: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,
1sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Hn.bind(null,a),e.ce&&e.ce(a),a}var Pa=null,Fa=()=>Pa||Gn,Ia,La;{let e=ve(),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)}};Ia=t(`__VUE_INSTANCE_SETTERS__`,e=>Pa=e),La=t(`__VUE_SSR_SETTERS__`,e=>Va=e)}var Ra=e=>{let t=Pa;return Ia(e),e.scope.on(),()=>{e.scope.off(),Ia(t)}},za=()=>{Pa&&Pa.scope.off(),Ia(null)};function Ba(e){return e.vnode.shapeFlag&4}var Va=!1;function Ha(e,t=!1){t&&La(t);let{props:n,children:r}=e.vnode,i=Ba(e);ji(e,n,i,t),Gi(e,r);let a=i?Ua(e,t):void 0;return t&&La(!1),a}function Ua(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ei);let{setup:r}=n;if(r){let n=e.setupContext=r.length>1?Ya(e):null,i=Ra(e);qe();let a=vn(r,e,0,[e.props,n]);if(Je(),i(),ee(a)){if(a.then(za,za),t)return a.then(n=>{Wa(e,n,t)}).catch(t=>{bn(t,e,0)});e.asyncDep=a}else Wa(e,a,t)}else qa(e,t)}function Wa(e,t,n){T(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:O(t)&&(e.setupState=un(t)),qa(e,n)}var Ga,Ka;function qa(e,t,n){let r=e.type;if(!e.render){if(!t&&Ga&&!r.render){let t=r.template||di(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=Ga(t,_(_({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||p,Ka&&Ka(e)}{let t=Ra(e);qe();try{si(e)}finally{Je(),t()}}}var Ja={get(e,t){return it(e,`get`,``),e[t]}};function Ya(e){return{attrs:new Proxy(e.attrs,Ja),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Xa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(un($t(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qr)return Qr[n](e)},has(e,t){return t in e||t in Qr}}))}function Za(e,t=!0){return T(e)?e.displayName||e.name:e.name||t&&e.__name}function Qa(e){return T(e)&&`__vccOpts`in e}var Y=(e,t)=>rn(e,t,Va);function $a(e,t,n=d){let r=Fa(),i=se(t),a=le(t),o=fn((o,s)=>{let c;return lr(()=>{let n=e[t];fe(c,n)&&(c=n,s())}),{get(){return o(),n.get?n.get(c):c},set(e){let o=r.vnode.props;!(o&&(t in o||i in o||a in o)&&(`onUpdate:${t}`in o||`onUpdate:${i}`in o||`onUpdate:${a}`in o))&&fe(e,c)&&(c=e,s()),r.emit(`update:${t}`,n.set?n.set(e):e)}}}),s=t===`modelValue`?`modelModifiers`:`${t}Modifiers`;return o[Symbol.iterator]=()=>{let t=0;return{next(){return t<2?{value:t++?e[s]||{}:o,done:!1}:{done:!0}}}},o}function eo(e,t,n){let r=arguments.length;return r===2?O(t)&&!x(t)?ya(t)?K(e,null,[t]):K(e,t):K(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ya(n)&&(n=[n]),K(e,t,n
vendor: 4,631 bytes, line 1
1))}var to=`3.4.25`,no=`http://www.w3.org/2000/svg`,ro=`http://www.w3.org/1998/Math/MathML`,io=typeof document<`u`?document:null,ao=io&&io.createElement(`template`),oo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?io.createElementNS(no,e):t===`mathml`?io.createElementNS(ro,e):io.createElement(e,n?{is:n}:void 0);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>io.createTextNode(e),createComment:e=>io.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>io.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{ao.innerHTML=r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e;let i=ao.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},so=`transition`,co=`animation`,lo=Symbol(`_vtc`),uo=(e,{slots:t})=>eo(Cr,go(e),t);uo.displayName=`Transition`;var fo={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},po=uo.props=_({},Sr,fo),mo=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},ho=e=>e?x(e)?e.some(e=>e.length>1):e.length>1:!1;function go(e){let t={};for(let n in e)n in fo||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=_o(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n)=>{bo(e,t?u:s),bo(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,bo(e,d),bo(e,p),bo(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);mo(i,[t,o]),xo(()=>{bo(t,e?c:a),yo(t,e?u:s),ho(i)||Co(t,r,h,o)})};return _(t,{onBeforeEnter(e){mo(v,[e]),yo(e,a),yo(e,o)},onBeforeAppear(e){mo(C,[e]),yo(e,c),yo(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);yo(e,d),yo(e,f),Do(),xo(()=>{e._isLeaving&&(bo(e,d),yo(e,p),ho(x)||Co(e,r,g,n))}),mo(x,[e,n])},onEnterCancelled(e){E(e,!1),mo(b,[e])},onAppearCancelled(e){E(e,!0),mo(T,[e])},onLeaveCancelled(e){D(e),mo(S,[e])}})}function _o(e){if(e==null)return null;if(O(e))return[vo(e.enter),vo(e.leave)];{let t=vo(e);return[t,t]}}function vo(e){return ge(e)}function yo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[lo]||(e[lo]=new Set)).add(t)}function bo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[lo];n&&(n.delete(t),n.size||(e[lo]=void 0))}function xo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var So=0;function Co(e,t,n,r){let i=e._endId=++So,a=()=>{i===e._endId&&r()};if(n)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=wo(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function wo(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${so}Delay`),a=r(`${so}Duration`),o=To(i,a),s=r(`${co}Delay`),c=r(`${co}Duration`),l=To(s,c),u=null,d=0,f=0;t===so?o>0&&(u=so,d=o,f=a.length):t===co?l>0&&(u=co,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?so:co:null,f=u?u===so?a.length:c.length:0);let p=u===so&&/\b(transform|all)(,|$)/.test(r(`${so}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function To(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Eo(t)+Eo(e[n])))}function Eo(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Do(){return document.body.offsetHeight}function Oo(e,t,n){let r=e[lo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ko=Symbol(`_vod`),Ao=Symbol(`_vsh`),jo={beforeMount(e,{value:t},{transition:n}){e[ko]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Mo(e,t)}
1,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),Mo(e,!0),r.enter(e)):r.leave(e,()=>{Mo(e,!1)}):Mo(e,t))},beforeUnmount(e,{value:t}){Mo(e,t)}};function Mo(e,t){e.style.display=t?e[ko]:`none`,e[Ao]=!t}var No=Symbol(``),Po=/(^|;)\s*display\s*:/;function Fo(e,t,n){let r=e.style,i=E(n),a=!1;if(n&&!i){if(t)if(E(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]==null&&Lo(r,t,``)}else for(let e in t)n[e]==null&&Lo(r,e,``);for(let e in n)e===`display`&&(a=!0),Lo(r,e,n[e])}else if(i){if(t!==n){let e=r[No];e&&(n+=`;`+e),r.cssText=n,a=Po.test(n)}}else t&&e.removeAttribute(`style`);ko in e&&(e[ko]=a?r.display:``,e[Ao]&&(r.display=`none`))}var Io=/\s*!important$/;function Lo(e,t,n){if(x(n))n.forEach(n=>Lo(e,t,n));else if(n==null&&(n=``),t.startsWith(`--`))e.setProperty(t,n);else{let r=Bo(e,t);Io.test(n)?e.setProperty(le(r),n.replace(Io,``),`important`):e[r]=n}}var Ro=[`Webkit`,`Moz`,`ms`],zo={};function Bo(e,t){let n=zo[t];if(n)return n;let r=se(t);if(r!==`filter`&&r in e)return zo[t]=r;r=ue(r);for(let n=0;n<Ro.length;n++){let i=Ro[n]+r;if(i in e)return zo[t]=i}return t}var Vo=`http://www.w3.org/1999/xlink`;function Ho(e,t,n,r,i){if(r&&t.startsWith(`xlink:`))n==null?e.removeAttributeNS(Vo,t.slice(6,t.length)):e.setAttributeNS(Vo,t,n);else{let r=Te(t);n==null||r&&!Ee(n)?e.removeAttribute(t):e.setAttribute(t,r?``:n)}}function Uo(e,t,n,r,i,a,o){if(t===`innerHTML`||t===`textContent`){r&&o(r,i,a),e[t]=n==null?``:n;return}let s=e.tagName;if(t===`value`&&s!==`PROGRESS`&&!s.includes(`-`)){let r=s===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?``:n;(r!==i||!(`_value`in e))&&(e.value=i),n==null&&e.removeAttribute(t),e._value=n;return}let c=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ee(n):n==null&&r===`string`?(n=``,c=!0):r===`number`&&(n=0,c=!0)}try{e[t]=n}catch(e){}c&&e.removeAttribute(t)}function Wo(e,t,n,r){e.addEventListener(t,n,r)}function Go(e,t,n,r){e.removeEventListener(t,n,r)}var Ko=Symbol(`_vei`);function qo(e,t,n,r,i=null){let a=e[Ko]||(e[Ko]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Yo(t);r?Wo(e,n,a[t]=$o(r,i),s):o&&(Go(e,n,o,s),a[t]=void 0)}}var Jo=/(?:Once|Passive|Capture)$/;function Yo(e){let t;if(Jo.test(e)){t={};let n;for(;n=e.match(Jo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):le(e.slice(2)),t]}var Xo=0,Zo=Promise.resolve(),Qo=()=>Xo||(Zo.then(()=>Xo=0),Xo=Date.now());function $o(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;yn(es(e,n.value),t,5,[e])};return n.value=e,n.attached=Qo(),n}function es(e,t){if(x(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ns=(e,t,n,r,i,a,o,s,c)=>{let l=i===`svg`;t===`class`?Oo(e,r,l):t===`style`?Fo(e,n,r):h(t)?g(t)||qo(e,t,n,r,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):rs(e,t,r,l))?Uo(e,t,r,a,o,s,c):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ho(e,t,r,l))};function rs(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ts(t)&&T(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ts(t)&&E(n)?!1:t in e}var is=new WeakMap,as=new WeakMap,os=Symbol(`_moveCb`),ss=Symbol(`_enterCb`);({name:`TransitionGroup`,props:_({},po,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Fa(),r=br(),i,a;return Vr(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!ds(i[0].el,n.vnode.el,t))return;i.forEach(cs),i.forEach(ls);let r=i.filter(us);Do(),r.forEach(e=>{let n=e.el,r=n.style;yo(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[os]=e=>{e&&e.target!==n||(!e||/transform$/.test(e.propertyName))&&(n.removeEventListener(`transitionend`,i),n[os]=null,bo(n,t))};n.addEventListener(`transitionend`,i)})}),()=>{let o=N(e),s=go(o),c=o.tag||V;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&(i.push(t),Or(t,Tr(t,s,r,n)),is.set(t,t.el.getBoundingClientRect()))}a=t.default?kr(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Or(t,Tr(t,s,r,n))}return K(c,null,a)}}}).props;function cs(e){let t=e.el;t[os]&&t[os](),t[ss]&&t[ss]()}function ls(e){as.set(e,e.el.getBoundingClientRect())}function us(e){let t=is.get(e),n=as.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration=`0s`,e}}function ds(e,t,n){let r=e.cloneNode(),i=e[lo];
1i&&i.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`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=wo(r);return a.removeChild(r),o}var fs=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>pe(t,e):t};function ps(e){e.target.composing=!0}function ms(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var hs=Symbol(`_assign`),gs={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[hs]=fs(i);let a=r||i.props&&i.props.type===`number`;Wo(e,t?`change`:`input`,t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=he(r)),e[hs](r)}),n&&Wo(e,`change`,()=>{e.value=e.value.trim()}),t||(Wo(e,`compositionstart`,ps),Wo(e,`compositionend`,ms),Wo(e,`change`,ms))},mounted(e,{value:t}){e.value=t==null?``:t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e[hs]=fs(a),e.composing)return;let o=(i||e.type===`number`)&&!/^0\d/.test(e.value)?he(e.value):e.value,s=t==null?``:t;o!==s&&(document.activeElement===e&&e.type!==`range`&&(n||r&&e.value.trim()===s)||(e.value=s))}},_s={deep:!0,created(e,t,n){e[hs]=fs(n),Wo(e,`change`,()=>{let t=e._modelValue,n=Ss(e),r=e.checked,i=e[hs];if(x(t)){let e=ke(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Cs(e,r))})},mounted:vs,beforeUpdate(e,t,n){e[hs]=fs(n),vs(e,t,n)}};function vs(e,{value:t,oldValue:n},r){e._modelValue=t,x(t)?e.checked=ke(t,r.props.value)>-1:C(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Oe(t,Cs(e,!0)))}var ys={created(e,{value:t},n){e.checked=Oe(t,n.props.value),e[hs]=fs(n),Wo(e,`change`,()=>{e[hs](Ss(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[hs]=fs(r),t!==n&&(e.checked=Oe(t,r.props.value))}},bs={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=C(t);Wo(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?he(Ss(e)):Ss(e));e[hs](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,jn(()=>{e._assigning=!1})}),e[hs]=fs(r)},mounted(e,{value:t,modifiers:{number:n}}){xs(e,t)},beforeUpdate(e,t,n){e[hs]=fs(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||xs(e,t)}};function xs(e,t,n){let r=e.multiple,i=x(t);if(!(r&&!i&&!C(t))){for(let n=0,a=e.options.length;n<a;n++){let a=e.options[n],o=Ss(a);if(r)if(i){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=ke(t,o)>-1}else a.selected=t.has(o);else if(Oe(Ss(a),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ss(e){return`_value`in e?e._value:e.value}function Cs(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var ws={created(e,t,n){Es(e,t,n,null,`created`)},mounted(e,t,n){Es(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Es(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Es(e,t,n,r,`updated`)}};function Ts(e,t){switch(e){case`SELECT`:return bs;case`TEXTAREA`:return gs;default:switch(t){case`checkbox`:return _s;case`radio`:return ys;default:return gs}}}function Es(e,t,n,r,i){let a=Ts(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}var Ds=[`ctrl`,`shift`,`alt`,`meta`],Os={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Ds.some(n=>e[`${n}Key`]&&!t.includes(n))},ks=(e,t)=>{let n=e._withMods||(e._withMods={}),r=t.join(`.`);return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){let r=Os[t[e]];if(r&&r(n,t))return}return e(n,...r)})},As=_({patchProp:ns},oo),js,Ms=!1;function Ns(){return js=Ms?js:ta(As),Ms=!0,js}var Ps=(...e)=>{let t=Ns().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Is(e);if(t)return n(t,!0,Fs(t))},t};function Fs(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Is(e){return E(e)?document.querySelector(e):e}function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ls(e)}function Rs(e,t){if(Ls(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ls(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zs(e){var t=Rs(e,`string`);return Ls(t)==`symbol`?t:t+``}function Bs(e,t,n){return(t=zs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(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=arguments[t]==null?{}:arguments[t];
1t%2?Vs(Object(n),!0).forEach(function(t){Bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Hs={},Us=e=>{let t=F(!1);return{isFlashing:t,flash:async()=>{if(await jn(),typeof e!=`object`)return;let n=P(e)?e.value:e;!n||t.value===!0||(t.value=!0,n.classList.add(`flash`),await new Promise(e=>setTimeout(e,3e3)),n.classList.remove(`flash`),t.value=!1)}}},Ws=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Gs={},Ks={key:0,class:`d4-input-wrap`},qs={class:`d4-input-wrap__content`};function Js(e,t){return e.$slots.default?(H(),U(`div`,Ks,[G(`div`,qs,[B(e.$slots,`default`)])])):J(``,!0)}var Ys=Ws(Gs,[[`render`,Js]]),Xs=[`id`],Zs={key:0,class:`d4-fieldset__asterisk`,"aria-hidden":`true`},Qs={class:`d4-fieldset__content`},$s=z({__name:`D4Fieldset`,props:{id:{default:void 0},label:{default:void 0},labelLeft:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},asterisk:{type:Boolean,default:!1}},setup(e,{expose:t}){let n=e,r=Ei(`formIsWide`,F(!1)),i=F(void 0),{flash:a}=Us(i),o=Y(()=>n.id?n.id:`d4-field-${Math.floor(1e9*Math.random())}`);return t({inputId:o,flash:a}),(e,t)=>e.$slots.default?(H(),U(`fieldset`,{key:0,id:o.value,ref_key:`fieldsetEl`,ref:i,class:`d4-fieldset`},[G(`div`,{class:j([`d4-fieldset__wrap`,n.labelLeft===!0&&I(r)===!0?`d4-fieldset__wrap--labelLeft`:null])},[n.label?(H(),U(`div`,{key:0,class:j([`d4-fieldset__legendWrap`,n.labelLeft===!0&&I(r)===!0?`d4-fieldset__legendWrap--left`:`d4-fieldset__legendWrap--top`,n.hideLabel===!0?`sr-only`:null])},[G(`legend`,{class:j([`d4-fieldset__legend`,n.labelLeft===!0&&I(r)===!0?`d4-fieldset__legend--left`:`d4-fieldset__legend--top`,n.required===!0?`d4-fieldset__legend--required`:null,n.disabled===!0?`d4-fieldset__legend--disabled`:null])},[q(M(n.label),1),n.required===!0&&n.asterisk===!0?(H(),U(`span`,Zs,`\xA0*`)):J(``,!0)],2)],2)):J(``,!0),G(`div`,Qs,[K(Ys,null,{default:L(()=>[B(e.$slots,`default`)]),_:3})])],2)],8,Xs)):J(``,!0)}}),ec={class:void 0,width:void 0,noSpacing:!1,labelLeft:!1,hideLabel:!1,description:void 0,disabled:!1,required:!1,asterisk:!1,error:void 0},tc=X(X({},ec),{},{autofocus:!1,formatters:()=>[]}),nc=X(X({},tc),{},{autocomplete:`off`,placeholder:void 0,pattern:void 0,spellcheck:!1,icon:void 0}),rc=(e,t,n)=>{if(!e)throw Error(`You must pass component instance to useInput`);let r=Y(()=>e.props.id?e.props.id:`d4-field-${Math.floor(1e9*Math.random())}`),i=Y(()=>!!e.props.label||!!e.slots.label),a=Y(()=>!!e.props.description||!!e.slots.description),o=Y(()=>!!e.props.error),s=(t=!1)=>{!e.refs.inputEl||!(e.refs.inputEl instanceof HTMLElement)||e.refs.inputEl.focus({preventScroll:t})};return zr(async()=>{await jn(),e.props.autofocus&&s(!0),e.refs.inputEl&&(e.refs.inputEl.addEventListener(`input`,t=>{let n=t.target;if(n.setCustomValidity(``),typeof e.props.validate==`function`){let t=e.props.validate(n.value);t&&n.setCustomValidity(t)}n.checkValidity()}),e.refs.inputEl.addEventListener(`invalid`,t=>{let n=t.target,r=[`valueMissing`,`typeMismatch`,`patternMismatch`,`tooLong`,`tooShort`,`rangeUnderflow`,`rangeOverflow`,`stepMismatch`,`badInput`,`customError`].find(e=>n.validity[e]);if(!r){n.setCustomValidity(``);return}if(r===`customError`)return;let i=e.props.validityErrors[r]||``;n.setCustomValidity(i)}))}),{inputId:r,hasLabel:i,hasDescription:a,focusToInput:s,flash:()=>{e.refs.base&&e.refs.base.flash()},hasError:o,handleBlur:()=>{var r;if(!t||typeof t.value!=`string`)return;let i=(r=e.props.formatters)==null?[]:r,a=[...n==null?[]:n,...i];if(!a.length)return;let o=t.value;for(let e of a)o=e(o);o!==t.value&&(t.value=o)}}},ic=(e,t,n)=>{if(!e)throw Error(`You must pass component instance to useTextInput`);let{inputId:r,hasLabel:i,hasDescription:a,focusToInput:o,flash:s,hasError:c,handleBlur:l}=rc(e,t,n);return{inputId:r,hasLabel:i,hasDescription:a,inputPlaceholder:Y(()=>e.props.placeholder),inputPattern:Y(()=>e.props.pattern),focusToInput:o,flash:s,hasError:c,handleBlur:l}},ac=(e,t)=>{if(!e)throw Error(`You must pass component instance to useSelect`);if(!t)throw Error(`You must pass component modelValue to useSelect`);let{inputId:n,hasLabel:r,hasDescription:i,focusToInput:a,flash:o,hasError:s}=rc(e),c=()=>{let n=e.props.options;if(!n||!n.length){t.value=null;return}n.some(e=>e.id===t.value)||(t.value=n[0].id)};return dr(()=>t.value,c,{immediate:!0}),dr(()=>e.props.options,c,{deep:!0}),{inputId:n,hasLabel:r,hasDescription:i,focusToInput:a,flash:o,hasError:s}},oc=l(o((e=>{var t=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;e.validate=function(e){if(!e||e.length>254||!t.test(e))return!1;var n=e.split(`@`);return!(n[0].length>64||n[1].split(`.`).some(function(e){return e.length>63}))}}))(),1),sc=e=>oc.validate(e),cc=e=>(e=e==null?void 0:e.trim(),e?!!/^(0?[1-9]|[12]\d|3[01])\.(0?[1-9]|1[0-2])\.(\d{4})$/.test(e):!0),lc=e=>{if(e=e==null?void 0:e.trim(),!e)return!0;let[t,n,r]=e.split(`.`).map(Number),i=new Date(r,n-1,t);return!(i.getFullYear()!==r||i.getMonth()!==n-1||i.getDate()!==t)},uc=e=>e.trim();function dc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function fc(e,t){if(e==null)return{};var n,r,i=dc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var pc=[`eventFilter`],mc=[`throttle`,`trailing`,`leading`];function hc(e){return Ie()?(Le(e),!0):!1}function gc(e){return typeof e==`function`?e():I(e)}var _c=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var vc=()=>{};function yc(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var bc=e=>e();function xc(...e){let t=0,n,r=!0,i=vc,a,o,s,c,l;!P(e[0])&&typeof e[0]==`object`?{delay:o,trailing:s=!0,leading:c=!0,rejectOnCancel:l=!1}=e[0]:[o,s=!0,c=!0,l=!1]=e;let u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=vc)};return e=>{let d=gc(o),f=Date.now()-t,p=()=>a=e();return u(),d<=0?(t=Date.now(),p()):(f>d&&(c||!r)?(t=Date.now(),p()):s&&(a=new Promise((e,a)=>{i=l?a:e,n=setTimeout(()=>{t=Date.now(),r=!0,e(p()),u()},Math.max(0,d-f))})),!c&&!n&&(n=setTimeout(()=>
1r=!0,d)),r=!1,a)}}function Sc(e){return e||Fa()}function Cc(e,t,n={}){let{eventFilter:r=bc}=n,i=fc(n,pc);return dr(e,yc(r,t),i)}function wc(e,t=!0,n){Sc()?zr(e,n):t?e():jn(e)}function Tc(e,t,n={}){let{throttle:r=0,trailing:i=!0,leading:a=!0}=n;return Cc(e,t,X(X({},fc(n,mc)),{},{eventFilter:xc(r,i,a)}))}var Ec=[`window`];function Dc(e){var t;let n=gc(e);return(t=n==null?void 0:n.$el)==null?n:t}var Oc=_c?window:void 0;_c&&window.document,_c&&window.navigator,_c&&window.location;function kc(){let e=F(!1),t=Fa();return t&&zr(()=>{e.value=!0},t),e}function Ac(e){let t=kc();return Y(()=>(t.value,!!e()))}function jc(e,t,n={}){let{window:r=Oc}=n,i=fc(n,Ec),a,o=Ac(()=>r&&`ResizeObserver`in r),s=()=>{a&&(a.disconnect(),a=void 0)},c=dr(Y(()=>Array.isArray(e)?e.map(e=>Dc(e)):[Dc(e)]),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return hc(l),{isSupported:o,stop:l}}function Mc(e,t={width:0,height:0},n={}){let{window:r=Oc,box:i=`content-box`}=n,a=Y(()=>{var t,n;return(n=(t=Dc(e))==null?void 0:t.namespaceURI)==null?void 0:n.includes(`svg`)}),o=F(t.width),s=F(t.height),{stop:c}=jc(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=Dc(e);if(t){let e=r.getComputedStyle(t);o.value=Number.parseFloat(e.width),s.value=Number.parseFloat(e.height)}}else if(n){let e=Array.isArray(n)?n:[n];o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);wc(()=>{let n=Dc(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let l=dr(()=>Dc(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function u(){c(),l()}return{width:o,height:s,stop:u}}var Nc=[`for`],Pc={class:`d4-label__text`},Fc={key:0,class:`d4-label__asterisk`,"aria-hidden":`true`},Ic=z({__name:`D4Label`,props:{for:{},left:{type:Boolean,default:!1},noSpacing:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},asterisk:{type:Boolean,default:!1},indent:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t;return(e,t)=>e.$slots.default?(H(),U(`label`,{key:0,for:n.for,class:j([`d4-label`,n.left===!0?`d4-label--left`:null,n.noSpacing===!0?`d4-label--noSpacing`:null,n.disabled===!0?`d4-label--disabled`:null,n.required===!0?`d4-label--required`:null,n.indent===!0?`d4-label--indent`:null,n.hidden===!0?`sr-only`:null]),onClick:t[0]||(t[0]=e=>r(`click`,e))},[G(`div`,Pc,[B(e.$slots,`default`),e.required===!0&&e.asterisk===!0?(H(),U(`span`,Fc,`\xA0*`)):J(``,!0)])],10,Nc)):J(``,!0)}}),Lc={class:`d4-input-description__content`},Rc=z({__name:`D4InputDescription`,props:{noSpacing:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indent:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>e.$slots.default?(H(),U(`span`,{key:0,class:j([`d4-input-description`,t.noSpacing===!0?`d4-input-description--noSpacing`:null,t.disabled===!0?`d4-input-description--disabled`:null,t.indent===!0?`d4-input-description--indent`:null])},[G(`span`,Lc,[B(e.$slots,`default`)])],2)):J(``,!0)}}),zc={class:`d4-input-error__content`},Bc=z({__name:`D4InputError`,props:{noSpacing:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indent:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>e.$slots.default?(H(),U(`span`,{key:0,class:j([`d4-input-error`,t.noSpacing===!0?`d4-input-error--noSpacing`:null,t.disabled===!0?`d4-input-error--disabled`:null,t.indent===!0?`d4-input-error--indent`:null])},[G(`span`,zc,[B(e.$slots,`default`)])],2)):J(``,!0)}}),Vc={class:`d4-input-base__content`},Hc=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4InputBase`,props:ii({indent:{type:Boolean},id:{},class:{},label:{},labelLeft:{type:Boolean},hideLabel:{type:Boolean},description:{},width:{},noSpacing:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},asterisk:{type:Boolean},error:{}},X(X({},ec),{},{indent:!1})),setup(e,{expose:t}){let n=e,r=F(void 0),i=Ei(`formIsWide`,F(!1)),{hasLabel:a,hasDescription:o,hasError:s}=rc(Fa()),{flash:c}=Us(r);return t({flash:c}),(e,t)=>(H(),U(`div`,{ref_key:`baseEl`,ref:r,class:j([`d4-input-base`,n.class,n.disabled===!0?`d4-input-base--disabled`:null,n.noSpacing===!0?`d4-input-base--noSpacing`:null,n.labelLeft===!0&&I(i)===!0?`d4-input-base--labelLeft`:null,e.required===!0?`d4-input-base--required`:null,I(s)===!0?`d4-input-base--hasError`:null]),style:ye({width:n.width})},[I(a)===!0?(H(),W(Ic,{key:0,for:n.id,left:n.labelLeft&&I(i)===!0,disabled:n.disabled,indent:n.indent,required:n.required,hidden:n.hideLabel,asterisk:n.asterisk},{default:L(()=>[B(e.$slots,`label`,{},()=>[q(M(n.label),1)])]),_:3},8,[`for`,`left`,`disabled`,`indent`,`required`,`hidden`,`asterisk`])):J(``,!0),G(`div`,Vc,[B(e.$slots,`default`),I(o)===!0?(H(),W(Rc,{key:0,disabled:n.disabled,indent:n.indent},{default:L(()=>[B(e.$slots,`description`,{},()=>[q(M(n.description),1)])]),_:3},8,[`disabled`,`indent`])):J(``,!0),I(s)===!0?(H(),W(Bc,{key:1,disabled:n.disabled,indent:n.indent},{default:L(()=>[q(M(n.error),1)]),_:1},8,[`disabled`,`indent`])):J(``,!0),e.$slots.after?(H(),W(Ys,{key:2,class:j([`d4-input-base__after`,n.indent===!0?`d4-input-base__after--indent`:null])},{default:L(()=>[B(e.$slots,`after`)]),_:3},8,[`class`])):J(``,!0)])],6))}})),Uc={ban:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"/></svg>`,"arrow-right":`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
2  <path d="M1664 896v128q0 53-32.5 90.5t-84.5 37.5h-704l293 294q38 36 38 90t-38 90l-75 76q-37 37-90 37-52 0-91-37l-651-652q-37-37-37-90 0-52 37-91l651-650q38-38 91-38 52 0 90 38l75 74q38 38 38 91t-38 91l-293 293h704q52 0 84.5 37.5t32.5 90.5z" transform="rotate(180 896 896)" fill="#fff" />
3</svg>
4`,"arrow-left":`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
5  <path d="M1664 896v128q0 53-32.5 90.5t-84.5 37.5h-704l293 294q38 36 38 90t-38 90l-75 76q-37 37-90 37-52 0-91-37l-651-652q-37-37-37-90 0-52 37-91l651-650q38-38 91-38 52 0 90 38l75 74q38 38 38 91t-38 91l-293 293h704q52 0 84.5 37.5t32.5 90.5z"/>
6</svg>
7`,"calendar-alt":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"/></svg>`,"check-solid":`<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"></path></svg>`,"caret-right":`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
8  <path d="M1152 896q0 26-19 45l-448 448q-19 19-45 19t-45-19-19-45v-896q0-26 19-45t45-19 45 19l448 448q19 19 19 45z" fill="currentColor"/>
9</svg>
10`,error:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M248.747 204.705l6.588 112c.373 6.343 5.626 11.295 11.979 11.295h41.37a12 12 0 0 0 11.979-11.295l6.588-112c.405-6.893-5.075-12.705-11.979-12.705h-54.547c-6.903 0-12.383 5.812-11.978 12.705zM330 384c0 23.196-18.804 42-42 42s-42-18.804-42-42 18.804-42 42-42 42 18.804 42 42zm-.423-360.015c-18.433-31.951-64.687-32.009-83.154 0L6.477 440.013C-11.945 471.946 11.118 512 48.054 512H527.94c36.865 0 60.035-39.993 41.577-71.987L329.577 23.985zM53.191 455.002L282.803 57.008c2.309-4.002 8.085-4.002 10.394 0l229.612 397.993c2.308 4-.579 8.998-5.197 8.998H58.388c-4.617.001-7.504-4.997-5.197-8.997z"/></svg>`,"exclamation-solid":`<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="exclamation" class="svg-inline--fa fa-exclamation fa-w-6" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path fill="currentColor" d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"></path></svg>`,eye:`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
11  <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/>
12</svg>
13`,facebook:`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg" fill="#819798">
14  <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/>
15</svg>
16`,"eye-slash":`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
17  <path d="M555 1335l78-141q-87-63-136-159t-49-203q0-121 61-225-229 117-381 353 167 258 427 375zm389-759q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm363-191q0 7-1 9-106 189-316 567t-315 566l-49 89q-10 16-28 16-12 0-134-70-16-10-16-28 0-12 44-87-143-65-263.5-173t-208.5-245q-20-31-20-69t20-69q153-235 380-371t496-136q89 0 180 17l54-97q10-16 28-16 5 0 18 6t31 15.5 33 18.5 31.5 18.5 19.5 11.5q16 10 16 27zm37 447q0 139-79 253.5t-209 164.5l280-502q8 45 8 84zm448 128q0 35-20 69-39 64-109 145-150 172-347.5 267t-419.5 95l74-132q212-18 392.5-137t301.5-307q-115-179-282-294l63-112q95 64 182.5 153t144.5 184q20 34 20 69z"/>
18</svg>
19`,"info-solid":`<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="info" class="svg-inline--fa fa-info fa-w-6" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path fill="currentColor" d="M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"></path></svg>`,"instagram-brands":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
20  <path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/>
21</svg>
22`,linkedin:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
23  <path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"/>
24</svg>
25`,lock:`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
26  <path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/>
27</svg>
28`,"map-marker-alt":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"/></svg>`,map:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"/></svg>`,minus:`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
29  <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/>
30</svg>
31`,navigation:`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
32  <path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"/>
33</svg>
34`,news:`<svg width="2048" height="1792" viewBox="0 0 2048 1792" xmlns="http://www.w3.org/2000/svg">
35  <path d="M1024 512h-384v384h384v-384zm128 640v128h-640v-128h640zm0-768v
35640h-640v-640h640zm640 768v128h-512v-128h512zm0-256v128h-512v-128h512zm0-256v128h-512v-128h512zm0-256v128h-512v-128h512zm-1536 960v-960h-128v960q0 26 19 45t45 19 45-19 19-45zm1664 0v-1088h-1536v1088q0 33-11 64h1483q26 0 45-19t19-45zm128-1216v1216q0 80-56 136t-136 56h-1664q-80 0-136-56t-56-136v-1088h256v-128h1792z"/>
36</svg>
37`,"page-alt":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12.7 14.8"><path d="M12.1 3.1c.2.2.3.4.4.6s.2.5.2.7V14c0 .2-.1.4-.2.6-.2.2-.3.2-.6.2H.8c-.2 0-.4-.1-.6-.2-.1-.2-.2-.4-.2-.6V.8C0 .6.1.4.2.2.4.1.6 0 .8 0h7.4c.2 0 .5.1.7.2.3.1.5.2.6.4zm-3.6-2v3.1h3.1c-.1-.2-.1-.3-.2-.3L8.8 1.3c-.1-.1-.2-.1-.3-.2m3.1 12.7V5.3H8.2c-.2 0-.4-.1-.6-.2-.1-.2-.2-.4-.2-.6V1.1H1.1v12.7z"/></svg>
38`,page:`<svg width="18" height="16" viewBox="-1 0 17 15" xmlns="http://www.w3.org/2000/svg">
39  <path d="M2.97.53c.145-.145.342-.27.592-.374.25-.104.48-.156.688-.156h9c.208 0 .385.073.53.22.147.145.22.322.22.53v10.5c0 .208-.073.385-.22.53-.145.147-.322.22-.53.22H.75c-.208 0-.385-.073-.53-.22-.147-.145-.22-.322-.22-.53v-7c0-.208.052-.438.156-.688.104-.25.23-.447.375-.593L2.97.53zM1.06 4H4V1.062c-.15.053-.258.11-.32.172L1.234 3.68c-.062.062-.12.17-.172.32zM13 1H5v3.25c0 .208-.073.385-.22.53-.145.147-.322.22-.53.22H1v6h12V1z" fill-rule="nonzero"/>
40</svg>
41`,paperclip:`<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
42  <path fill="currentColor" d="M1596 1385q0 117-79 196t-196 79q-135 0-235-100l-777-776q-113-115-113-271 0-159 110-270t269-111q158 0 273 113l605 606q10 10 10 22 0 16-30.5 46.5t-46.5 30.5q-13 0-23-10l-606-607q-79-77-181-77-106 0-179 75t-73 181q0 105 76 181l776 777q63 63 145 63 64 0 106-42t42-106q0-82-63-145l-581-581q-26-24-60-24-29 0-48 19t-19 48q0 32 25 59l410 410q10 10 10 22 0 16-31 47t-47 31q-12 0-22-10l-410-410q-63-61-63-149 0-82 57-139t139-57q88 0 149 63l581 581q100 98 100 235z"/>
43</svg>
44`,plus:`<svg width="11" height="11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg">
45  <path d="M11 5.182v.636c0 .227-.08.42-.24.58-.158.16-.35.238-.578.238H6.636v3.546c0 .227-.08.42-.238.58-.16.158-.353.238-.58.238h-.636c-.227 0-.42-.08-.58-.24-.16-.158-.238-.35-.238-.578V6.636H.818c-.227 0-.42-.08-.58-.238C.08 6.238 0 6.045 0 5.818v-.636c0-.227.08-.42.24-.58.158-.16.35-.238.578-.238h3.546V.818c0-.227.08-.42.238-.58.16-.158.353-.238.58-.238h.636c.227 0 .42.08.58.24.16.158.238.35.238.578v3.546h3.546c.227 0 .42.08.58.238.158.16.238.353.238.58z" fill-rule="nonzero"/>
46</svg>
47`,"search-solid":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path></svg>
48`,"spinner-new":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16" xml:space="preserve"><path d="M8 2C4.7 2 2 4.7 2 8c0 1 .2 2 .7 2.8l-1.5 1.5C.5 11 0 9.6 0 8c0-4.4 3.6-8 8-8v2zm6 6c0-1-.2-2-.7-2.8l1.5-1.5C15.5 5 16 6.4 16 8c0 4.4-3.6 8-8 8v-2c3.3 0 6-2.7 6-6z"/></svg>
49`,tiktok:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
50  <path d="M448 209.91a210.06 210.06 0 0 1-122.77-39.25v178.72A162.55 162.55 0 1 1 185 188.31v89.89a74.62 74.62 0 1 0 52.23 71.18V0h88a121.18 121.18 0 0 0 1.86 22.17A122.18 122.18 0 0 0 381 102.39a121.43 121.43 0 0 0 67 20.14z"/>
51</svg>
52`,"times-solid":`<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="times" class="svg-inline--fa fa-times fa-w-11" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path fill="currentColor" d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"></path></svg>`,"triangle-exclamation":`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M320 64C334.7 64 348.2 72.1 355.2 85L571.2 485C577.9 497.4 577.6 512.4 570.4 524.5C563.2 536.6 550.1 544 536 544L104 544C89.9 544 76.8 536.6 69.6 524.5C62.4 512.4 62.1 497.4 68.8 485L284.8 85C291.8 72.1 305.3 64 320 64zM320 416C302.3 416 288 430.3 288 448C288 465.7 302.3 480 320 480C337.7 480 352 465.7 352 448C352 430.3 337.7 416 320 416zM320 224C301.8 224 287.3 239.5 288.6 257.7L296 361.7C296.9 374.2 307.4 384 319.9 384C332.5 384 342.9 374.3 343.8 361.7L351.2 257.7C352.5 239.5 338.1 224 319.8 224z"/></svg>
53`,"x-twitter":`<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewB
53ox="0 0 512 512" fill="#1E3050"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9L389.2 48zm-24.8 373.8h39.1L151.1 88h-42l255.3 333.8z"/></svg>
54`,youtube:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
55  <path d="M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"/>
56</svg>
57`},Wc=[`innerHTML`],Gc=z({__name:`D4Icon`,props:{name:{default:void 0},fill:{default:`currentColor`},size:{default:`16px`},rotate:{default:void 0}},setup(e){let t=e,n=Y(()=>{if(!t.name)return;if(!Uc[t.name]){console.warn(`Icon '${t.name}' not found`);return}let e=Object.entries({fill:`fill`,width:`size`,height:`size`}).map(([e,n])=>t[n]?`${e}: ${t[n]}`:``).filter(Boolean).join(`; `);return Uc[t.name].replace(/^<svg /,`<svg style="${e}" `)});return(e,r)=>t.name?(H(),U(`span`,ka({key:0,"aria-hidden":`true`,class:`icon`,innerHTML:n.value},typeof t.rotate==`number`?{style:{transform:`rotate(${t.rotate}deg)`}}:{}),null,16,Wc)):J(``,!0)}}),Kc={class:`d4-input__content`},qc=[`id`,`type`,`disabled`,`placeholder`,`pattern`,`autocomplete`,`spellcheck`,`required`],Jc=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4Input`,props:ai(ii({type:{},prefix:{},suffix:{},autocomplete:{},placeholder:{},pattern:{},spellcheck:{type:Boolean},icon:{},autofocus:{type:Boolean},validityErrors:{},validate:{type:Function},formatters:{},class:{},label:{},labelLeft:{type:Boolean},hideLabel:{type:Boolean},description:{},id:{},width:{},noSpacing:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},asterisk:{type:Boolean},error:{}},X(X({},nc),{},{validityErrors:()=>({}),type:`text`,prefix:void 0,suffix:void 0,icon:void 0})),{modelValue:{default:void 0},modelModifiers:{}}),emits:ai([`focus`,`blur`,`keydown`,`click`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=$a(e,`modelValue`),{inputId:o,hasLabel:s,hasDescription:c,inputPlaceholder:l,inputPattern:u,focusToInput:d,flash:f,hasError:p,handleBlur:m}=ic(Fa(),a,[uc]),h=F(void 0),g=F(void 0),{width:_}=Mc(g),v=F(!1),y=Y(()=>r.type===`password`?v.value===!0?`text`:`password`:r.type),b=Y(()=>r.prefix?r.prefix.length>=30?`…${r.prefix.slice(-28)}`:r.prefix:null),x=Y(()=>r.suffix?r.suffix.length>=30?`${r.suffix.slice(-28)}…`:r.suffix:null);return t({inputId:o,inputEl:h,focusToInput:d,flash:f,hasError:p}),(e,t)=>(H(),W(Hc,ka({ref:`base`},e.$props,{id:I(o),class:`d4-input`}),Yr({after:L(()=>[B(e.$slots,`default`)]),default:L(()=>[G(`div`,Kc,[b.value?(H(),U(`span`,{key:0,class:j([`d4-input__prefix`,r.disabled===!0?`d4-input__prefix--disabled`:null])},M(b.value),3)):J(``,!0),gr(G(`input`,ka({ref_key:`inputEl`,ref:h,class:[`d4-input__input`,b.value?null:`d4-input__input--radius-left`,x.value?null:`d4-input__input--radius-right`,r.icon?`d4-input__input--has-icon`:null]},e.$attrs,{"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),id:I(o),type:y.value,disabled:r.disabled,placeholder:I(l),pattern:I(u),autocomplete:r.autocomplete,spellcheck:r.spellcheck,required:r.required,style:{paddingRight:I(_)?`${I(_)+16}px`:void 0},onFocus:t[1]||(t[1]=e=>i(`focus`,e)),onBlur:t[2]||(t[2]=e=>{I(m)(),i(`blur`,e)}),onKeydown:t[3]||(t[3]=e=>i(`keydown`,e)),onClick:t[4]||(t[4]=e=>i(`click`,e))}),null,16,qc),[[ws,a.value]]),r.icon?(H(),W(Gc,{key:1,name:r.icon,size:`16px`,class:`d4-input__icon`},null,8,[`name`])):J(``,!0),e.$slots.embed||r.type===`password`?(H(),U(`div`,{key:2,class:`d4-input__embed`,ref_key:`embedEl`,ref:g},[r.type===`password`?(H(),U(`button`,{key:0,type:`button`,class:`d4-input__embedButton`,onClick:t[5]||(t[5]=e=>v.value=!v.value),tabindex:`-1`},[v.value===!1?(H(),W(Gc,{key:0,size:`16px`,name:`eye`})):(H(),W(Gc,{key:1,size:`16px`,name:`eye-slash`}))])):J(``,!0),B(e.$slots,`embed`)],512)):J(``,!0),x.value?(H(),U(`span`,{key:3,class:j([`d4-input__suffix`,r.disabled===!0?`d4-input__suffix--disabled`:null])},M(x.value),3)):J(``,!0)])]),_:2},[I(s)===!0?{name:`label`,fn:L(()=>[B(e.$slots,`label`,{},()=>[q(M(r.label),1)])]),key:`0`}:void 0,I(c)===!0?{name:`description`,fn:L(()=>[B(e.$slots,`description`,{},()=>[q(M(r.description),1)])]),key:`1`}:void 0]),1040,[`id`]))}})),Yc=new Map;function Xc(e){var t=Yc.get(e);t&&t.destroy()}function Zc(e){var t=Yc.get(e);
57t&&t.update()}var Qc=null;typeof window>`u`?((Qc=function(e){return e}).destroy=function(e){return e},Qc.update=function(e){return e}):((Qc=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&e.nodeName===`TEXTAREA`&&!Yc.has(e)){var t,n=null,r=window.getComputedStyle(e),i=(t=e.value,function(){o({testForHeightReduction:t===``||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),a=function(t){e.removeEventListener(`autosize:destroy`,a),e.removeEventListener(`autosize:update`,s),e.removeEventListener(`input`,i),window.removeEventListener(`resize`,s),Object.keys(t).forEach(function(n){return e.style[n]=t[n]}),Yc.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`,a),e.addEventListener(`autosize:update`,s),e.addEventListener(`input`,i),window.addEventListener(`resize`,s),e.style.overflowX=`hidden`,e.style.wordWrap=`break-word`,Yc.set(e,{destroy:a,update:s}),s()}function o(t){var i,a,s=t.restoreTextAlign,c=s===void 0?null:s,l=t.testForHeightReduction,u=l===void 0||l,d=r.overflowY;if(e.scrollHeight!==0&&(r.resize===`vertical`?e.style.resize=`none`:r.resize===`both`&&(e.style.resize=`horizontal`),u&&(i=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=``),a=r.boxSizing===`content-box`?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),r.maxHeight!==`none`&&a>parseFloat(r.maxHeight)?(r.overflowY===`hidden`&&(e.style.overflow=`scroll`),a=parseFloat(r.maxHeight)):r.overflowY!==`hidden`&&(e.style.overflow=`hidden`),e.style.height=a+`px`,c&&(e.style.textAlign=c),i&&i(),n!==a&&(e.dispatchEvent(new Event(`autosize:resized`,{bubbles:!0})),n=a),d!==r.overflow&&!c)){var f=r.textAlign;r.overflow===`hidden`&&(e.style.textAlign=f===`start`?`end`:`start`),o({restoreTextAlign:f,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Xc),e},Qc.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Zc),e});var $c=Qc,el=[`id`,`disabled`,`required`,`placeholder`,`rows`,`autocomplete`,`spellcheck`],tl=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4Textarea`,props:ai(ii({rows:{},autosize:{type:Boolean},code:{type:Boolean},autocomplete:{},placeholder:{},pattern:{},spellcheck:{type:Boolean},icon:{},autofocus:{type:Boolean},validityErrors:{},validate:{type:Function},formatters:{},class:{},label:{},labelLeft:{type:Boolean},hideLabel:{type:Boolean},description:{},id:{},width:{},noSpacing:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},asterisk:{type:Boolean},error:{}},X(X({},nc),{},{validityErrors:()=>({}),rows:3,autosize:!1,code:!1})),{modelValue:{default:void 0},modelModifiers:{}}),emits:ai([`focus`,`blur`,`keydown`,`click`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=$a(e,`modelValue`),{inputId:o,hasLabel:s,hasDescription:c,inputPlaceholder:l,focusToInput:u,flash:d,hasError:f,handleBlur:p}=ic(Fa(),a,[uc]),m=F(void 0);return zr(()=>{dr(()=>r.autosize,e=>{m.value&&(e===!0?$c(m.value):$c.destroy(m.value))},{immediate:!0})}),t({inputId:o,inputEl:m,focusToInput:u,flash:d,hasError:f}),(e,t)=>(H(),W(Hc,ka({ref:`base`},e.$props,{id:I(o),class:`d4-textarea`}),Yr({after:L(()=>[B(e.$slots,`default`)]),default:L(()=>[gr(G(`textarea`,ka({ref_key:`inputEl`,ref:m,class:[`d4-textarea__input`,r.code===!0?`d4-textarea__input--code`:null]},e.$attrs,{"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),id:I(o),disabled:e.disabled,required:e.required,placeholder:I(l),rows:r.rows,autocomplete:r.autocomplete,spellcheck:r.spellcheck,onFocus:t[1]||(t[1]=e=>i(`focus`,e)),onBlur:t[2]||(t[2]=e=>{I(p)(),i(`blur`,e)}),onKeydown:t[3]||(t[3]=e=>i(`keydown`,e)),onClick:t[4]||(t[4]=e=>i(`click`,e))}),null,16,el),[[gs,a.value]])]),_:2},[I(s)===!0?{name:`label`,fn:L(()=>[B(e.$slots,`label`,{},()=>[q(M(e.label),1)])]),key:`0`}:void 0,I(c)===!0?{name:`description`,fn:L(()=>[B(e.$slots,`description`,{},()=>[q(M(e.description),1)])]),key:`1`}:void 0]),1040,[`id`]))}})),nl=z({__name:`D4Form`,props:{siteForm:{type:Boolean,default:!1},responsive:{type:Boolean,default:!1},noSpacing:{type:Boolean,default:!1},contentClass:{default:void 0}},emits:[`submit`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=F(!1),o=F(void 0),{width:s,height:c}=Mc(o),l=F(!0);Ti(`formIsWide`,l);let u=()=>{!document||!s.value||(l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue(`--layout-font_size_text`))*10<s.value/3)};return t({focusToContent:()=>{o.value&&o.value.focus()},contentWidth:s,contentHeight:c}),zr(async()=>{r.responsive===!0&&(u(),await jn(),a.value=!0,Tc(()=>s.value,u,{throttle:500}))}),(e,t)=>e.$slots.default||e.$slots.before||e.$slots.after?(H(),U(`form`,{key:0,class:j([`d4-form`,e.
57noSpacing===!0?`d4-form--noSpacing`:null,l.value===!0?`d4-form--wide`:`d4-form--narrow`,e.siteForm===!0?`d4-form--site`:`d4-form--admin`,e.responsive===!0&&a.value===!1?`d4-form--hidden`:null]),onSubmit:t[0]||(t[0]=e=>i(`submit`,e))},[B(e.$slots,`before`),G(`div`,{class:j([`d4-form__content`,e.contentClass]),ref_key:`contentEl`,ref:o,tabindex:`-1`},[K(Ys,null,{default:L(()=>[B(e.$slots,`default`)]),_:3})],2),B(e.$slots,`after`)],34)):J(``,!0)}}),rl=[`id`,`disabled`,`value`],il={class:`d4-radio__boxWrap`},al=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4Radio`,props:ai(ii({value:{},autofocus:{type:Boolean},validityErrors:{},validate:{type:Function},formatters:{},class:{},label:{},labelLeft:{type:Boolean},hideLabel:{type:Boolean},description:{},id:{},width:{},noSpacing:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},asterisk:{type:Boolean},error:{}},X(X({},tc),{},{validityErrors:()=>({})})),{modelValue:X({type:[String,Number,Boolean]},{default:void 0}),modelModifiers:{}}),emits:ai([`focus`,`blur`,`keydown`,`click`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=$a(e,`modelValue`),{inputId:o,hasDescription:s,focusToInput:c,flash:l,hasError:u}=rc(Fa()),d=F(void 0),f=Y(()=>a.value===r.value);return t({inputId:o,inputEl:d,focusToInput:c,flash:l,hasError:u}),(e,t)=>(H(),W(Hc,ka({ref:`base`},e.$props,{id:I(o),label:void 0,description:void 0,class:`d4-radio`,indent:``}),{after:L(()=>[B(e.$slots,`default`)]),default:L(()=>[K(Ic,{for:I(o),class:`d4-radio__label`,disabled:r.disabled,indent:!r.hideLabel,"no-spacing":``},{default:L(()=>[gr(G(`input`,ka({ref_key:`inputEl`,ref:d,class:`d4-radio__input`},e.$attrs,{"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),type:`radio`,id:I(o),disabled:r.disabled,value:r.value,onFocus:t[1]||(t[1]=e=>i(`focus`,e)),onBlur:t[2]||(t[2]=e=>i(`blur`,e)),onKeydown:t[3]||(t[3]=e=>i(`keydown`,e)),onClick:t[4]||(t[4]=e=>i(`click`,e))}),null,16,rl),[[ys,a.value]]),G(`div`,il,[G(`span`,{class:j([`d4-radio__box`,f.value===!0?`d4-radio__box--checked`:null,r.disabled===!0?`d4-radio__box--disabled`:null])},[G(`span`,{class:j([`d4-radio__tick`,f.value===!0?`d4-radio__tick--checked`:null])},null,2)],2)]),G(`span`,{class:j([r.hideLabel===!0?`sr-only`:null])},[B(e.$slots,`label`,{},()=>[q(M(r.label),1)])],2)]),_:3},8,[`for`,`disabled`,`indent`]),I(s)===!0?(H(),W(Rc,{key:0,disabled:r.disabled,indent:``},{default:L(()=>[B(e.$slots,`description`,{},()=>[q(M(r.description),1)])]),_:3},8,[`disabled`])):J(``,!0)]),_:3},16,[`id`]))}})),ol=[`id`,`disabled`,`required`,`value`],sl={class:`d4-checkbox__boxWrap`},cl=[G(`path`,{d:`M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z`},null,-1)],ll=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4Checkbox`,props:ai(ii({value:{type:[String,Number,Boolean]},autofocus:{type:Boolean},validityErrors:{},validate:{type:Function},formatters:{},class:{},label:{},labelLeft:{type:Boolean},hideLabel:{type:Boolean},description:{},id:{},width:{},noSpacing:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},asterisk:{type:Boolean},error:{}},X(X({},tc),{},{validityErrors:()=>({}),value:void 0})),{modelValue:X({type:[Boolean,Array]},{default:void 0}),modelModifiers:{}}),emits:ai([`focus`,`blur`,`keydown`,`click`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=$a(e,`modelValue`),{inputId:o,hasDescription:s,focusToInput:c,flash:l,hasError:u}=rc(Fa()),d=F(void 0),f=Y(()=>Array.isArray(a.value)===!0&&r.value!==void 0?a.value.includes(r.value):!!a.value);return t({inputId:o,inputEl:d,focusToInput:c,flash:l,hasError:u}),(e,t)=>(H(),W(Hc,ka({ref:`base`},e.$props,{id:I(o),label:void 0,description:void 0,class:`d4-checkbox`,indent:``}),{after:L(()=>[B(e.$slots,`default`)]),default:L(()=>[K(Ic,{for:I(o),class:`d4-checkbox__label`,disabled:r.disabled,required:r.required,asterisk:r.asterisk,indent:!r.hideLabel,"no-spacing":``},{default:L(()=>[gr(G(`input`,ka({ref_key:`inputEl`,ref:d,class:`d4-checkbox__input`},e.$attrs,{"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),type:`checkbox`,id:I(o),disabled:r.disabled,required:r.required,value:r.value,onFocus:t[1]||(t[1]=e=>i(`focus`,e)),onBlur:t[2]||(t[2]=e=>i(`blur`,e)),onKeydown:t[3]||(t[3]=e=>i(`keydown`,e)),onClick:t[4]||(t[4]=e=>i(`click`,e))}),null,16,ol),[[_s,a.value]]),G(`div`,sl,[G(`span`,{class:j([`d4-checkbox__box`,f.value===!0?`d4-checkbox__box--checked`:null,r.disabled===!0?`d4-checkbox__box--disabled`:null])},[(H(),U(`svg`,{class:j([`d4-checkbox__tick`,f.value===!0?`d4-checkbox__tick--checked`:null]),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},cl,2))],2)]),G(`span`,{class:j([r.hideLabel===!0?`sr-only`:null])},[B(e.$slots,`label`,{},()=>[q(M(r.label),1)])],2)]),_:3},8,[`for`,`disabled`,`required`,`asterisk`,`indent`]),I(s)===!0?(H(),W(Rc,{key:0,disabled:r.disabled,indent:``},{default:L(()=>[B(e.$slots,`description`,{},()=>[q(M(r.description),1)])]),_:3},8,[`disabled`])):J(``,!0)]),_:3},16,[`id`]))}})),ul={class:`d4-select__content`},dl=[`id`,`disabled`,`required`],fl=[`value`,`disabled`],pl=G(`svg`,{class:`d4-select__icon`,viewBox:`0 0 24 24`,width:`24`,height:`24`,xmlns:`http://www.w3.org/2000/svg`},[G(`path`,{d:`M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z`}),G(`path`,{d:`M0-.75h24v24H0z`,fill:`none`})],-1),ml=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4Select`,props:ai(ii({options:{}
57,inputWidth:{},autofocus:{type:Boolean},validityErrors:{},validate:{type:Function},formatters:{},class:{},label:{},labelLeft:{type:Boolean},hideLabel:{type:Boolean},description:{},id:{},width:{},noSpacing:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},asterisk:{type:Boolean},error:{}},X(X({},tc),{},{validityErrors:()=>({}),options:()=>[],inputWidth:`100%`})),{modelValue:{default:void 0},modelModifiers:{}}),emits:ai([`focus`,`blur`,`keydown`,`click`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=$a(e,`modelValue`),{inputId:o,hasLabel:s,hasDescription:c,focusToInput:l,flash:u,hasError:d}=ac(Fa(),a),f=F(void 0);return t({inputId:o,inputEl:f,focusToInput:l,flash:u,hasError:d}),(e,t)=>(H(),W(Hc,ka({ref:`base`},e.$props,{id:I(o),class:`d4-select`}),Yr({after:L(()=>[B(e.$slots,`default`)]),default:L(()=>[G(`div`,ul,[G(`div`,{class:`d4-select__wrap`,style:ye({width:r.inputWidth})},[gr(G(`select`,ka({ref_key:`inputEl`,ref:f,class:`d4-select__input`},e.$attrs,{"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),id:I(o),disabled:r.disabled,required:r.required,onFocus:t[1]||(t[1]=e=>i(`focus`,e)),onBlur:t[2]||(t[2]=e=>i(`blur`,e)),onKeydown:t[3]||(t[3]=e=>i(`keydown`,e)),onClick:t[4]||(t[4]=e=>i(`click`,e))}),[(H(!0),U(V,null,Jr(r.options,e=>(H(),U(`option`,{key:`${e.id}-${e.label}`,value:e.id,disabled:e.disabled},M(e.label),9,fl))),128))],16,dl),[[bs,a.value]]),pl],4)])]),_:2},[I(s)===!0?{name:`label`,fn:L(()=>[B(e.$slots,`label`,{},()=>[q(M(r.label),1)])]),key:`0`}:void 0,I(c)===!0?{name:`description`,fn:L(()=>[B(e.$slots,`description`,{},()=>[q(M(r.description),1)])]),key:`1`}:void 0]),1040,[`id`]))}})),hl={nav_expand:`Näytä sivun {title} alasivut`,nav_unexpand:`Piilota sivun {title} alasivut`,nav_subpages_for_page:`Sivun {title} alasivut`,made_with_PRODUCT:`Tehty Yhdistysavaimella`,made_with_PRODUCT_link:`https://www.yhdistysavain.fi`,skip_to_content:`Siirry sivun sisältöön`,footer_link_title_privacypolicy:`Tietosuojaseloste`,footer_log_in:`Kirjaudu sivustolle`,thank_you:`Kiitos!`,HTML_general_cookie_text:`<p>Tällä sivustolla saatetaan käyttää evästeitä ja vastaavia tekniikoita (esim. localstorage) yhteen tai useampaan alla luetelluista tarkoituksista, sivuston asetuksista ja sivusta riippuen.</p>
58<p>Välttämättömät evästeet: käyttäjän kirjautuminen sivustolle, evästevalintojen muistaminen.</p>
59<p>Tilastointievästeet:
60  <a href="https://policies.google.com/technologies/types">Google Analytics</a>.
61</p>
62<p>Markkinointievästeet:
63  <a href="https://en-gb.facebook.com/policy/cookies/">Facebook-upotukset</a>,
64  <a href="https://policies.google.com/technologies/types">YouTube-videoupotukset</a>.
65</p>
66`,consent_title:`Tällä sivustolla käytetään evästeitä.`,consent_fieldset_legend:`Valitse käytettävät evästeet`,consent_checkbox_necessary:`Välttämättömät`,consent_checkbox_statistics:`Tilastointi`,consent_checkbox_marketing:`Markkinointi`,consent_button_allow_selected:`Salli vain valitut`,consent_button_allow_all:`Salli kaikki`,consent_read_more:`Lue lisää evästeistä`,consent_cookies_page_link_title:`Evästeet`,consent_cookies_page_title:`Tietoa evästeistä`,consent_edit_your_consent:`Muokkaa evästevalintojasi`,nav_menu:`Valikko`,nav_search_and_menu:`Haku ja valikko`,nav_search_placeholder:`Hae`,form_choose_file:`Valitse tiedosto`,form_uploading_file:`Ladataan tiedostoa...`,form_uploaded_file:`Ladattu tiedosto`,form_remove_file:`Poista tiedosto`,form_fill_the_form:`Täytä lomake ensin.`,form_wait_for_upload_to_finish:`Odota, että tiedosto on siirtynyt.`,form_unknown_error:`Tuntematon virhe`,form_check_required_fields:`Tarkista että olet täyttänyt pakolliset kentät`,form_choose:`Valitse…`,form_send_label:`Lähetä lomake`,form_thankyou_message:`Lomake lähetetty.`,form_submission_needs_js:`Kytke selaimesi asetuksista Javascript käyttöön, jotta voit lähettää tämän lomakkeen.`,form_attachment_too_big:`Virhe: liitteen maksimikoko on 30 Mt`,form_please_enter_spam_answer:`Ethän ole robotti? Kirjoita yhteenlaskun vastaus alle.`,form_spam_number_4:`neljä`,form_spam_number_2:`kaksi`,form_check_spam_answer:`Tarkista laskun vastaus.`,form_field_spam_addition:`Yhteenlasku`,form_email_hello:`Hei!`,form_email_your_data_title:`Lähettämäsi tiedot`,form_email_no_data_title:`Lomake vastaanotettu`,form_email_form_received:`Sivulta {url} lähettämäsi lomake on vastaanotettu.`,HTML_widget_facebook_load_error_consent_needed:`Facebook-sivun näyttäminen vaatii markkinointievästeiden hyväksymisen.`,HTML_widget_facebook_load_error_other_error:`Facebook-sivun näyttäminen ei onnistunut. Tarkista selaimen yksityisyysasetukset.`,HTML_widget_video_load_error_consent_needed:`YouTube-videon näyttäminen vaatii markkinointievästeiden hyväksymisen.`,HTML_widget_video_load_error_other_error:`YouTube-videon näyttäminen ei onnistunut. Tarkista selaimen yksityisyysasetukset.`,locale:`fi-FI`,date_format:`%-d.%-m.%Y`,date_range_separator:`–`,date_clock_separator:`klo`,weekday:{0:`sunnuntai`,1:`maanantai`,2:`tiistai`,3:`keskiviikko`,4:`torstai`,5:`perjantai`,6:`lauantai`,7:`sunnuntai`},weekday_short:{0:`su`,1:`ma`,2:`ti`,3:`ke`,4:`to`,5:`pe`,6:`la`,7:`su`},form_email:`Sähköposti`,form_post_error:{ANSWER_LIMIT_REACHED:`Lomaketta ei voida lähettää, koska lomakkeelle määritelty vastausmäärärajoitus on tullut täyteen.`,TEXT_MAX_LENGTH_EXCEEDED:`Tekstin maksimipituus on 32000 merkkiä. Kentän arvo on liian pitkä kentässä:`,RESCAL_RESERVATION_LIMIT_REACHED:`Varausmäärän raja on täynnä.`},back_to_frontpage:`Sivuston etusivulle`,pagination_left:{default:`Edelliset`,forum:`Uudempia`,news:`Uudempia`,events:`
66Edelliset`,events_past:`Uudempia`},pagination_page:`Sivu`,pagination_right:{default:`Seuraavat`,forum:`Vanhempia`,news:`Vanhempia`,events:`Seuraavat`,events_past:`Vanhempia`},pagination_page_selection:`Sivun valinta`,xitems_widget_more:{news:`Aiempia uutisia`,events:`Lisää tapahtumia`},xitems_no_items:{news:`Ei uutisia`,events:`Ei tulevia tapahtumia`,events_past:`Ei menneitä tapahtumia`},browse_past_events:`Selaa menneitä`,browse_upcoming_events:`Selaa tulevia`,browsing_past_events:`Olet selaamassa menneitä tapahtumia.`,browsing_past_event:`Tarkastelet mennyttä tapahtumaa.`,rss_feed:`RSS-syöte`,HTML_loginview_inline_logged_in_as:`Olet kirjautuneena tunnuksella <b>{loggedInAs}</b>. <a href="/">Siirry palvelun etusivulle</a> tai <a href="/@logout">kirjaudu ulos</a>.`,HTML_loginview_fullpage_logged_in_as:`Olet kirjautuneena tunnuksella <b>{loggedInAs}</b>. <a href="/@logout">Kirjaudu ulos</a>.`,loginview_page_title:{LV_LOGGED_IN_AS:``,LV_SHOW_FORM:`Kirjaudu sisään`,LV_ASK_EMAIL:`Palauta unohtunut salasana`,LV_RESETTING_PASSWORD:`Luo uusi salasana`,LV_RESET_CODE_REQUIRED:`Syötä nollauskoodi`,LV_TOTP_REQUIRED:`Syötä kirjautumiskoodi`,LV_SETUP_TOTP:`Ota kaksivaiheinen tunnistautuminen käyttöön`},loginview_insufficient_session:`Käyttäjätunnuksellasi ei ole pääsyä tälle sivulle.`,loginview_return:`Palaa takaisin`,HTML_loginview_osso_note:`<h2>Onko sinulla liiton jäsennumero?</h2> <p><a href="{ossoLoginLink}">Siirry tästä liiton kirjautumispalveluun »</a></p> <p>Jos käytössäsi on vain tälle sivustolle luotu tunnus, kirjaudu <a href="#" id="local-login">tästä</a>.</p>
67`,loginview_email:`Sähköpostiosoite`,loginview_password:`Salasana`,loginview_password_strength:`Salasanan vahvuus`,loginview_new_password_description:`Vähintään 10 merkkiä`,loginview_password_strengths:{0:`ei riittävä`,1:`melko heikko`,2:`ok`,3:`hyvä`,4:`erinomainen`},loginform_remember_me:`Muista minut`,loginview_login_error:{INVALID_TOTP:`Virheellinen kirjautumiskoodi.`,INVALID_RESET_CODE:`Virheellinen nollauskoodi.`,TRY_AGAIN_LATER:`Liian monta epäonnistunutta kirjautumisyritystä. Yritä tunnin päästä uudelleen.`,RESET_CODE_EXPIRED:`Nollauskoodi on vanhentunut. Ota yhteys asiakaspalveluun.`,INVALID_USERNAME_OR_PASSWORD:`Kirjautuminen epäonnistui. Tarkista sähköpostiosoite ja salasana.`,OSSO_USER_NOT_FOUND:`Tietojasi ei löytynyt. Jos olet juuri liittynyt, kokeile kirjautumista huomenna uudestaan.`},loginview_forgot_your_password:`Unohditko tai haluatko luoda salasanan?`,HTML_loginview_please_give_email:`<p>Anna se sähköpostiosoite, joka on tallennettu jäsentietoihisi. Saat sähköpostiisi viestin, jolla pääset asettamaan uuden salasanan.</p> <p>Tämän lomakkeen avulla saat luotua salasanan myös siinä tapauksessa, että jäsentiedoissasi ei ole vielä lainkaan salasanaa.</p>
68`,loginview_button_login:`Kirjaudu`,loginview_button_login_with_totp:`Jatka`,loginview_button_request_password:`Jatka`,loginview_button_reset_password:`Vaihda salasana`,HTML_loginview_enter_reset_code_and_password:`<p>Jos antamasi sähköpostiosoite <b>{email}</b> löytyi järjestelmästä, sinne on lähetetty 8-numeroinen koodi. Syötä koodi alle ja valitse uusi salasana. Tarkista myös roskapostikansio. Koodi on voimassa 30 minuuttia.</p>
69`,loginview_password_reset_code:`Sähköpostiisi lähetetty koodi`,loginview_password_reset_code_placeholder:`esim. 1234 5678`,loginview_reset_error:{INVALID_RESET_CODE:`Koodi on virheellinen. Tarkista sähköpostiisi lähetetty koodi ja yritä uudelleen.`,RESET_CODE_EXPIRED:`Koodi on vanhentunut tai sitä yritettiin liian monta kertaa. Palaa takaisin ja tilaa uusi koodi.`,TOO_MANY_RESET_REQUESTS:`Koodia on pyydetty liian monta kertaa. Yritä myöhemmin uudelleen.`},loginview_new_password:`Uusi salasana`,loginview_confirm_new_password:`Uusi salasana uudestaan`,loginview_unexpected_error:`Odottamaton virhe. Yritä myöhemmin uudelleen.`,loginview_password_not_strong_enough:`Salasanassa tulee olla vähintään kymmenen merkkiä.`,loginview_passwords_dont_match:`Tarkista, että annoit saman salasanan kaksi kertaa.`,loginview_password_changed:`Salasana vaihdettu.`,HTML_loginview_setup_totp:`<p>Ota kaksivaiheinen tunnistautuminen (2FA) käyttöön näin:</p> <ol>
70  <li>Asenna puhelimeesi 2FA-sovellus (esim. Google Authenticator).</li>
71  <li>Lisää tämä palvelu 2FA-sovellukseen kuvaamalla QR-koodi sovelluksessa.</li>
72  <li>Kirjoita sovelluksen antama kuusinumeroinen kirjautumiskoodi alla olevaan kenttään.</li>
73</ol>
74`,loginview_button_register_totp_device:`Ota 2FA käyttöön`,HTML_loginview_totp_required:`<p>Syötä 2FA-sovelluksesi antama kuusinumeroinen kirjautumiskoodi.</p>
75`,loginview_totp:`Kirjautumiskoodi`,HTML_loginview_reset_code_required:`<p>Syötä tekstiviestinä saamasi kuusinumeroinen nollauskoodi.</p>`,loginview_reset_code:`Nollauskoodi`,loginview_button_reset_mfa:`Jatka`,loginview_subject_email_reset_password:`Vaihda salasanasi sivustolla {domain}`,HTML_loginview_body_email_reset_password:`<h1>Hei!</h1> <p>Saat tämän viestin, sillä tunnuksellesi pyydettiin salasanan vaihtoa. Syötä tämä koodi salasanan vaihtolomakkeeseen:</p> <p style="font-size: 200%"><b>{code}</b></p> <p>Jos et pyytänyt salasanan vaihtoa, voit poistaa tämän viestin.</p>
76`,sitesearch_title:`Haku`,sitesearch_more_results:`Haku tuotti yhteensä {total} tulosta, mutta tässä näytetään ainoastaan {shown} ensimmäistä. Tarkenna hakua lisäämällä hakusanoja.
77`,sitesearch_index_not_available:`Haku ei onnistunut. Huomaathan, että hakuindeksi päivittyy vain kun sivusto on asetettu näkyväksi. Indeksi päivitetään kerran päivässä.`,sitesearch_no_results:`Haulla ei löytynyt sivuja tai tiedostoja.`,docs_email_approved_subject:`Asiakirja {docTitle} on allekirjoitettu`,HTML_docs_email_approved_body:`<p>Kaikki osapuolet ovat allekirjoittaneet asiakirjan <strong>{docTitle}</strong>.</p>
78<p><a href="{viewUrl}" style="font-size: 135%;">Lataa allekirjoitettu asiakirja tästä »</a></p>
79`,docs_email_rejected_subject:`Asiakirja {docTitle} on hylätty`,HTML_docs_email_rejected_body:`<p>Asiakirja {docTitle} on hylätty.</p>
80<p>{rejecterName}:<br><i>{HTML_rejectionReasonHtml}</i></p>
81`,docs_sms_body:`Asiakirja {docTitle} odottaa allekirjoitustasi sähköpostiosoitteessasi {email}
81.`,docs_email_bounced_subject:`Sähköposti ei tavoittanut vastaanottajaa`,docs_email_bounced_body:`Sähköpostiviesti vastaanottajalle {name} ({email}) ei mennyt perille. Asiakirja: {docTitle}.`,docs_email_name_mismatch_subject:`Allekirjoittajan nimi ei täsmää: {docTitle}`,docs_email_name_mismatch_body:`Allekirjoittajan vahvasta tunnistautumisesta saatu nimi ei täsmää kirjatun nimen kanssa. Tarkista tilanne ja hyväksy ero tai peruuta allekirjoitus. Asiakirja: {docTitle}.
82`,docs_email_bounced_link_text:`Selvitä lähetysongelma tästä »`,docs_email_name_mismatch_link_text:`Hyväksy tai peruuta allekirjoitus tästä »`,docs_email_reminder_subject:`Muistutus: asiakirja "{title}" odottaa allekirjoitustasi`,docs_email_reminder_notice:`Muistutus: asiakirja odottaa edelleen allekirjoitustasi.`,docs_sms_reminder_prefix:`Muistutus: `,docs_pdf_stamp:`Allekirjoitettu sähköisesti {date}`,docs_pdf_signatures_title:`Allekirjoitukset`,docs_pdf_col_signer:`Allekirjoittaja`,docs_pdf_col_time:`Aika`,docs_pdf_auth_method_label:`Tunnistautumistapa: {method}`,docs_pdf_method:{strong:`Vahva tunnistautuminen (Telia)`,email:`Sähköposti`},docs_pdf_footer:`Tämä asiakirja on allekirjoitettu sähköisesti ja suojattu digitaalisella allekirjoituksella {datetime}
83Yhdistysavain-sivustolla {siteHostname}.`,docs_pdf_learn_more:`Lue lisää: www.yhdistysavain.fi/allekirjoitus`,fourohfour_title:`Sivua ei löytynyt`,HTML_fourohfour_content:`Etsimääsi sivua ei löytynyt. Siirry <a href="/">etusivulle</a>.`,event_time:`Aika`,event_location:`Paikka`,event_address:`Osoite`,forum_subject:`Aihe`,forum_body:`Viesti`,forum_body_placeholder:`Kirjoita viestisi tähän...`,forum_save_edits:`Tallenna viesti`,forum_send_post:`Lähetä viesti`,forum_edit_post:`Muokkaa viestiä`,forum_reply_to_thread:`Osallistu keskusteluun`,forum_start_thread:`Aloita uusi keskustelu`,forum_unknown_error:`Tuntematon virhe`,forum_follow_this_forum:`Seuraa tätä keskustelupalstaa`,forum_no_threads:`Ei vielä yhtään keskustelua.`,forum_reply_count:{0:`ei vastauksia`,1:`yksi vastaus`,n:`{_n} vastausta`},forum_thread_not_found:`Keskusteluaihetta ei löydy tai se ei ole julkinen.`,forum_latest_reply:`viimeisimmän`,forum_one_reply:`kirjoittanut {author} {timestamp}`,forum_back_to_threads:`Aihelistaan`,forum_back_to_thread:`Takaisin aiheeseen`,forum_following_on:`Saat sähköpostiisi ({email}) tiedon aina kun joku lähettää viestin keskustelupalstalle.`,forum_following_off:`Uusia viestejä ei tästedes lähetetä tietoa sähköpostiisi.`,forum_edit_saved:`Muokkaukset tallennettu.`,forum_msg_sent:`Viestisi on lähetetty.`,forum_is_moderated:`Lähetetyt viestit näytetään vasta kun ylläpito on lukenut ja hyväksynyt ne.`,forum_is_locked:`Tämä aihe on lukittu eikä siihen voi vastata.`,forum_no_subject:`(ei aihetta)`,forum_msg_has_been_moderated:`Ylläpitäjä on muokannut tätä viestiä.`,forum_error_message:{FORUM_ALL_FIELDS_ARE_REQUIRED:`Kaikki kentät ovat pakollisia.`,FORUM_ANTI_SPAM_INCORRECT_ANSWER:`Tarkista laskun vastaus.`},forum_nickname:`Nimimerkki`,forum_nickname_lowercase:`nimimerkki`,forum_realname:`Nimi`,forum_new_post_email_subject:`Seuraamallesi keskustelupalstalle on lähetetty uusi viesti`,forum_new_post_email_body:`Voit lukea viestin osoitteessa`,forum_new_post_moderation_email_subject:`Uusi viesti odottaa hyväksyntää keskustelupalstalla`,forum_new_post_moderation_email_body:`Voit lukea ja käsitellä viestin osoitteessa`,forum_perlcms_email_info:`Tästä osiosta ei lähetetä sähköpostia, koska sivustolla on käytössä Classic-kotisivutyökalu.`,forum_history_preview_info:`Keskustelupalstan sisältö on tarkasteltavissa vasta palautuksen jälkeen.`,HTML_forum_unapproved_post:{new:`aloitti uuden keskustelun aiheella <i>{subject}</i>`,reply:`vastasi keskusteluun <a href="{threadLink}"><i>{subject}</i></a>`},forum_posts_waiting_for_approval:`Hyväksymistä odottavat viestit ({count})`,forum_moderate_post:{approve:`Hyväksy viesti`,block:`Poista viesti`,restore:`Palauta viesti`,restore_thread:`Palauta aihe`,edit:`Muokkaa viestiä`},forum_lock_thread:`Lukitse aihe`,forum_unlock_thread:`Avaa aihe`,forum_delete_thread:`Poista koko aihe`,go_to_page:`Siirry sivulle {url}`,open_image:`Avaa kuva`,open_image_with_description:`Avaa kuva "{description}"`,memberform_date_placeholder:`pp.kk.vvvv`,memberform_date_format_error:`Päivämäärän tulee olla muodossa pp.kk.vvvv`,memberform_date_error:`Virheellinen päivämäärä`,memberform_submit:`Lähetä jäsenhakemus`,memberform_default_thanks_msg:`Kiitos jäsenhakemuksestasi.`,memberform_confirm_email:`Vahvista sähköpostiosoite`,memberform_email_mismatch:`Sähköpostiosoitteet eivät täsmää.`,fmreg_validation_errors:{_validation_field_required:`Tämä kenttä ei voi olla tyhjä.`,_validation_invali
83d_email:`Sähköpostiosoite ei kelpaa.`,_validation_invalid_date:`Päivämäärä ei kelpaa (oikea muoto esim. 24.12.2014).`,_validation_invalid_date_pre_1901:`Vanhin tuettu päivämäärä on 1.1.1901`,_validation_integer_invalid:`Kokonaisluvun arvo ei kelpaa (oikea muoto esim. 42).`,_validation_invalid_decimal:`Desimaaliluku ei kelpaa (oikea muoto esim. 3,14).`,_validation_charfield_min_length:`Tämän kentän arvo on liian lyhyt.`,_validation_charfield_max_length:`Tämän kentän arvo on liian pitkä.`,_validation_anti_spam_failed:`Tarkista laskun vastaus.`},rescal_reservation_length:`Varauksen pituus`,rescal_minus:`lyhennä`,rescal_plus:`pidennä`,rescal_week:`viikko`,rescal_next_month:`Seuraava kuukausi`,rescal_previous_month:`Edellinen kuukausi`,rescal_reservation_dates:`Ajankohta`,rescal_reserve:`Tee varaus`,rescal_reservation_success:`Kiitos varauksesta!`,rescal_chosen_date_not_available:{1:`Valittu päivämäärä ei ole varattavissa.`,n:`Valittu päivämääräväli ei ole varattavissa.`},rescal_day_duration:{1:`{_n} päivä`,n:`{_n} päivää`},rescal_night_duration:{1:`{_n} yö`,n:`{_n} yötä`},rescal_reservation_details:`Varauksen tiedot`,rescal_form_your_name:`Nimesi`,rescal_booker_email_title:`Varauksesi: {resource}`,rescal_free_limit_warning:`Huom! Tämä on Yhdistysavaimen Free-versio, jossa varauskalenteria pääsee kokeilemaan, mutta kalenterissa voi olla maksimissaan kaksi varausta kerrallaan.`,HTML_rescal_booker_email_reservation_done:`<p>Hei!</p> <p>Sivulla {rescalUrl} tekemäsi varaus on otettu vastaan ja odottaa hyväksyntää.</p> <p>Varaus: {resource}, {dateSpan}</p>
84`,rescal_booker_email_your_data_title:`Antamasi tiedot`,rescal_reservation_created_at:`Varaus luotu`,rescal_widget_disabled:`Varauskalenteri on pois käytöstä.`,archive_widget_disabled_placeholder:`{widget} toimii vain online-versiossa.`,archive_extract_notice:`Arkistokopiota ei ole purettu, joten sivun ulkoasu ja kuvat puuttuvat. Napsauta zip-tiedostoa hiiren oikealla painikkeella, valitse ”Pura kaikki” ja avaa sivut vasta puretusta kansiosta.`,rescal_no_availability_from_here:`Tästä eteenpäin ei ole varattavissa olevia ajankohtia.`,rescal_no_availability_this_month:`Tässä kuussa ei ole varattavissa olevia ajankohtia.`,rescal_show_next_available:`Näytä seuraavat vapaat ajat`,rescal_no_availability_at_all:`Tässä kalenterissa ei ole varattavissa olevia ajankohtia.`},gl={nav_expand:`Visa undersidor för sidan {title}`,nav_unexpand:`Dölj undersidor för sidan {title}`,nav_subpages_for_page:`Undersidor för sidan {title}`,made_with_PRODUCT:`Körs på Yhdistysavain`,made_with_PRODUCT_link:`https://www.yhdistysavain.fi`,skip_to_content:`Hoppa till sidans innehåll`,footer_link_title_privacypolicy:`Integritetspolicy`,footer_log_in:`Logga in på webbplatsen`,thank_you:`Tack!`,HTML_general_cookie_text:`<h1>Information om kakor (cookies)</h1> <p>Den här webbplatsen använder eventuellt kakor och liknande tekniker (t.ex. lokal lagring) - beroende på webpplatsens inställningar och den nuvarande sidan - för ett eller flera av följande syften:</p>
85<p>Nödvändiga kakor: inlogging på webbplatsen, lagring av dina kakinställningar.</p>
86<p>Statistik / analys:
87  <a href="https://policies.google.com/technologies/types">Google Analytics</a>.
88</p>
89<p>Marknadsföring / sociala medier:
90  <a href="https://en-gb.facebook.com/policy/cookies/">Facebook inbäddningar</a>,
91  <a href="https://policies.google.com/technologies/types">YouTube videor</a>.
92</p>
93`,consent_title:`Vi använder kakor.`,consent_fieldset_legend:`Välj vilka kakor du accepterar`,consent_checkbox_necessary:`Nödvändiga`,consent_checkbox_statistics:`Statistik`,consent_checkbox_marketing:`Marknadsföring`,consent_button_allow_selected:`Spara mitt val`,consent_button_allow_all:`Godkänn alla`,consent_read_more:`Läs mer om kakor`,consent_cookies_page_link_title:`Kakor`,consent_cookies_page_title:`Om kakor`,consent_edit_your_consent:`Anpassa dina kakpreferenser`,nav_menu:`Meny`,nav_search_and_menu:`Sök och meny`,nav_search_placeholder:`Sök`,form_choose_file:`Välj fil`,form_uploading_file:`Filen laddas upp...`,form_uploaded_file:`Uppladdad fil`,form_remove_file:`Radera fil`,form_fill_the_form:`Vänligen fyll i formuläret först.`,form_wait_for_upload_to_finish:`Vänligen vänta på filöverföringen.`,form_unknown_error:`Okänd fel`,form_check_required_fields:`K
93ontrollera formulärfält`,form_choose:`Välj…`,form_send_label:`Skicka`,form_thankyou_message:`Formuläret har skickats.`,form_submission_needs_js:`Vänligen aktivera Javascript i din webbläsares inställningar för att kunna skicka formuläret.`,form_attachment_too_big:`Fel: maxstorleken för filer är 30 megabyte`,form_please_enter_spam_answer:`Du är nog inte en robot? Skriv svaret på uppgiften i fältet nedanför.`,form_spam_number_4:`fyra`,form_spam_number_2:`två`,form_check_spam_answer:`Kontrollera svaret.`,form_field_spam_addition:`Additionsuppgift`,form_email_hello:`Hej!`,form_email_your_data_title:`Din formulärpost`,form_email_no_data_title:`Din formulärpost`,form_email_form_received:`Vi fick din formulärpost på {url}`,HTML_widget_facebook_load_error_consent_needed:`Facebook-sidan kan inte visas. Vänligen kontrollera dina kakinställningar.`,HTML_widget_facebook_load_error_other_error:`Facebook-sidan kan inte visas. Vänligen kontrollera webbläsarens sekretessinställningar.`,HTML_widget_video_load_error_consent_needed:`YouTube-videon kan inte visas. Vänligen kontrollera dina kakinställningar.`,HTML_widget_video_load_error_other_error:`YouTube-videon kan inte visas. Vänligen kontrollera webbläsarens sekretessinställningar.`,locale:`sv-SE`,date_format:`%Y-%m-%d`,date_range_separator:` – `,date_clock_separator:`kl.`,weekday:{0:`Söndag`,1:`Måndag`,2:`Tisdag`,3:`Onsdag`,4:`Torsdag`,5:`Fredag`,6:`Lördag`,7:`Söndag`},weekday_short:{0:`sön`,1:`mån`,2:`tis`,3:`ons`,4:`tors`,5:`fre`,6:`lör`,7:`sön`},form_email:`E-post`,form_post_error:{ANSWER_LIMIT_REACHED:`Formuläret kan inte skickas. Det maximala antalet tillåtna svar har överskridits.`,TEXT_MAX_LENGTH_EXCEEDED:`Maximala längden för text är 32000 tecken. Värdet är för långt i fältet:`,RESCAL_RESERVATION_LIMIT_REACHED:`Gränsen för bokningar har uppnåtts.`},back_to_frontpage:`Tillbaka till framsida`,pagination_left:{default:`Föregående`,forum:`Nyare`,news:`Nyare`,events:`Föregående`,events_past:`Nyare`},pagination_page:`Sida`,pagination_right:{default:`Nästa`,forum:`Äldre`,news:`Äldre`,events:`Nästa`,events_past:`Äldre`},pagination_page_selection:`Välj sida`,xitems_widget_more:{news:`Tidigare nyheter`,events:`Fler evenemang`},xitems_no_items:{news:`Inga nyheter`,events:`Inga kommande evenemang`,events_past:`Inga tidigare evenemang`},browse_past_events:`Tidigare evenemang`,browse_upcoming_events:`Kommande evenemang`,browsing_past_events:`Du bläddrar i tidigare evenemang.`,browsing_past_event:`Du tittar på ett tidigare evenemang.`,rss_feed:`RSS-flöde`,HTML_loginview_inline_logged_in_as:`Du är inloggad med användarnamnet <b>{loggedInAs}</b>. <a href="/">Gå till hemsida</a> eller <a href="/@logout">logga ut</a>.`,HTML_loginview_fullpage_logged_in_as:`Du är inloggad med användarnamnet <b>{loggedInAs}</b>. <a href="/@logout">Logga ut</a>.`,loginview_page_title:{LV_LOGGED_IN_AS:``,LV_SHOW_FORM:`Inloggning`,LV_ASK_EMAIL:`Återställ ditt lösenord`,LV_RESETTING_PASSWORD:`Skapa nytt lösenord`,LV_RESET_CODE_REQUIRED:`Nollställ`,LV_TOTP_REQUIRED:`Inloggningskod`,LV_SETUP_TOTP:`Använd tvåfaktorautentisering`},loginview_insufficient_session:`Du har inte behörighet till denna sida.`,loginview_return:`Bakåt`,HTML_loginview_osso_note:`<h2>Har du fackligt medlemsnummer?</h2> <p><a href="{ossoLoginLink}">Logga in här»</a></p> <p>Annars, logga in <a href="#" id="local-login">här</a>.</p>
94`,loginview_email:`E-postadress`,loginview_password:`Lösenord`,loginview_password_strength:`Lösenordets styrka`,loginview_new_password_description:`Minst 10 tecken`,loginview_password_strengths:{0:`otillräcklig`,1:`ganska svag`,2:`ok`,3:`bra`,4:`utmärkt`},loginform_remember_me:`Kom ihåg mig`,loginview_login_error:{INVALID_TOTP:`Inkorrekt inloggningskod.`,INVALID_RESET_CODE:`Inkorrekt nollningskod.`,TRY_AGAIN_LATER:`För många misslyckade inloggningsförsök. Prova på nytt om en timme.`,RESET_CODE_EXPIRED:`Nollningskoden har upphört att gälla. Vänligen kontakta kundservice.`,INVALID_USERNAME_OR_PASSWORD:`Inloggningen misslyckades. Kontrollera e-postadress och lösenord.`,OSSO_USER_NOT_FOUND:`Personlig information kan inte hittas. Om du nyligen har anslutit dig, prova inloggning på nytt imorgon.`},loginview_forgot_your_password:`Glömt lösenord eller skapa ett lösenord?`,HTML_loginview_please_give_email:`<p>Ange din e-postadress nedan. Du får ett e-postmeddelande med en länk som möjliggör bytande av lösenord. Om du inte har något lösenord kan du skapa ditt l
94ösenord via meddelandets länk.</p>
95`,loginview_button_login:`Logga in`,loginview_button_login_with_totp:`Fortsätt`,loginview_button_request_password:`Fortsätt`,loginview_button_reset_password:`Byt lösenord`,HTML_loginview_enter_reset_code_and_password:`<p>Om e-postadressen <b>{email}</b> du angav finns i vårt system har en 8-siffrig kod skickats dit. Mata in koden nedan och välj ett nytt lösenord. Se även skräppostmappen. Koden är giltig i 30 minuter.</p>
96`,loginview_password_reset_code:`Koden som skickades till din e-post`,loginview_password_reset_code_placeholder:`t.ex. 1234 5678`,loginview_reset_error:{INVALID_RESET_CODE:`Koden är felaktig. Kontrollera koden som skickades till din e-post och försök igen.`,RESET_CODE_EXPIRED:`Koden har upphört att gälla eller har provats för många gånger. Gå tillbaka och beställ en ny kod.`,TOO_MANY_RESET_REQUESTS:`Koden har begärts för många gånger. Vänligen försök igen senare.`},loginview_new_password:`Nytt lösenord`,loginview_confirm_new_password:`Nya lösenord på nytt`,loginview_unexpected_error:`Oväntat fel. Vänligen försök igen senare.`,loginview_password_not_strong_enough:`Lösenordet måste innehålla minst tio tecken.`,loginview_passwords_dont_match:`Kontrollera att du gav samma lösenord två gånger.`,loginview_password_changed:`Lösenordet har bytts.`,HTML_loginview_setup_totp:`<p>Ta tvåfaktorautentisering i användning genom att skanna QR-koden till din 2FA app. Mata in den givna sexsiffriga koden i textfältet nedan.</p>`,loginview_button_register_totp_device:`Ta tvåfaktorautentisering i användning.`,HTML_loginview_totp_required:`<p>Mata in den sexsiffriga koden du fick från 2FA appen.<p>
97`,loginview_totp:`Inloggningskod`,HTML_loginview_reset_code_required:`<p>Mata in nollställningskoden som du fick som ett SMS-meddelande<p>`,loginview_reset_code:`Nollställningskod`,loginview_button_reset_mfa:`Fortsätt`,loginview_subject_email_reset_password:`Byt lösenord för {domain}`,HTML_loginview_body_email_reset_password:`<h1>Hej!</h1> <p>Någon begärde byte av lösenord för ditt användarnamn. Mata in denna kod i formuläret för byte av lösenord:</p> <p style="font-size: 200%"><b>{code}</b></p> <p>Om du inte har begärt byte av lösenord, kan du radera detta meddelande.</p>
98`,sitesearch_title:`Sök`,sitesearch_more_results:`Sökning visar totalt {total} resultat, men här visas endast de {shown} första. Specificera din sökning med alternativa sökord.
99`,sitesearch_index_not_available:`Sökning misslyckades. Märk att sökindex uppdateras endast en gång per dag, och endast då sidan visas.`,sitesearch_no_results:`Inga sidor eller filer kunde hittas med sökning.`,docs_email_approved_subject:`Dokumentet {docTitle} har undertecknats`,HTML_docs_email_approved_body:`<p>Alla parter har undertecknat dokumentet <strong>{docTitle}</strong>.</p>
100<p><a href="{viewUrl}" style="font-size: 135%;">Ladda ner det signerade dokumentet här »</a></p>
101`,docs_email_rejected_subject:`Dokumentet {docTitle} har avvisats`,HTML_docs_email_rejected_body:`<p>Dokumentet {docTitle} har avvisats.</p>
102<p>{rejecterName}:<br><i>{HTML_rejectionReasonHtml}</i></p>
103`,docs_sms_body:`Dokumentet {docTitle} väntar på din signatur i din e-post på {email}
103.`,docs_email_bounced_subject:`E-post kunde inte levereras`,docs_email_bounced_body:`E-postmeddelandet till {name} ({email}) kunde inte levereras. Dokument: {docTitle}.`,docs_email_name_mismatch_subject:`Undertecknarens namn stämmer inte: {docTitle}`,docs_email_name_mismatch_body:`Undertecknarens namn från stark autentisering stämmer inte överens med det registrerade namnet. Kontrollera situationen och godkänn skillnaden eller avbryt signeringen. Dokument: {docTitle}.
104`,docs_email_bounced_link_text:`Kontrollera leveransproblemet här »`,docs_email_name_mismatch_link_text:`Godkänn eller avbryt signeringen här »`,docs_email_reminder_subject:`Påminnelse: dokumentet "{title}" väntar på din signatur`,docs_email_reminder_notice:`Påminnelse: dokumentet väntar fortfarande på din signatur.`,docs_sms_reminder_prefix:`Påminnelse: `,docs_pdf_stamp:`Elektroniskt undertecknat {date}`,docs_pdf_signatures_title:`Underteckningar`,docs_pdf_col_signer:`Undertecknare`,docs_pdf_col_time:`Tid`,docs_pdf_auth_method_label:`Autentiseringsmetod: {method}`,docs_pdf_method:{strong:`Stark autentisering (Telia)`,email:`E-post`},docs_pdf_footer:`Detta dokument är elektroniskt undertecknat och skyddat med en digital signatur {datetime}
105på Yhdistysavain-webbplatsen {siteHostname}.`,docs_pdf_learn_more:`Läs mer: www.yhdistysavain.fi/allekirjoitus`,fourohfour_title:`Sidan kunde inte hittas`,HTML_fourohfour_content:`Vi kan inte hitta den sida du söker. Fortsätt till <a href="/">framsidan</a>.`,event_time:`Tid`,event_location:`Plats`,event_address:`Adress`,forum_subject:`Ämne`,forum_body:`Meddelande`,forum_body_placeholder:`Skriv ditt meddelande här...`,forum_save_edits:`Spara meddelande`,forum_send_post:`Skicka meddelande`,forum_edit_post:`Redigera meddelande`,forum_reply_to_thread:`Kommmentera denna tråd`,forum_start_thread:`Börja en ny tråd`,forum_unknown_error:`Okänt fel`,forum_follow_this_forum:`Följ detta forum`,forum_no_threads:`Inga trådar ännu.`,forum_reply_count:{0:`inga svar`,1:`ett svar`,n:`{_n} svar`},forum_thread_not_found:`Tråden hittades ej eller den är inte offentlig.`,forum_latest_reply:`senaste`,forum_one_reply:`skriven av {author} {timestamp}`,forum_back_to_threads:`Tillbaka till trådlista`,forum_back_to_thread:`Tillbaka till tråd`,forum_following_on:`Du får en notifikation till din e-post {email} varje gång någon skriver på diskussionforumet.`,forum_following_off:`Nya meddelanden skickas inte längre till din e-post.`,forum_edit_saved:`Sparat.`,forum_msg_sent:`Meddelande skickats.`,forum_is_moderated:`Skickade meddelanden visas först efter godkännande av administratören.`,forum_is_locked:`Denna tråd är låst och kan inte kommenteras.`,forum_no_subject:`(inget ämne)`,forum_msg_has_been_moderated:`Administratören har redigerat detta meddelande.`,forum_error_message:{FORUM_ALL_FIELDS_ARE_REQUIRED:`Alla fält är obligatorika`,FORUM_ANTI_SPAM_INCORRECT_ANSWER:`Kontrollera svaret.`},forum_nickname:`Smeknamn`,forum_nickname_lowercase:`smeknamn`,forum_realname:`Namn`,forum_new_post_email_subject:`Ett nytt meddelande har skickats till det forumet som du följer`,forum_new_post_email_body:`Du kan läsa meddelandet på adressen`,forum_new_post_moderation_email_subject:`Ett nytt meddelande väntar på godkännande på ett diskussionsforum`,forum_new_post_moderation_email_body:`Du kan läsa och moderera meddelandet på adressen`,forum_perlcms_email_info:`Ingen e-post skickas, eftersom sidan använder Classic-hemsideverktyg.`,forum_history_preview_info:`Ingen tillgänglig förhandsgranskning.`,HTML_forum_unapproved_post:{new:`började en ny tråd med rubriken <i>{subject}</i>`,reply:`svarade i tråden <a href="{threadLink}"><i>{subject}</i></a>`},forum_posts_waiting_for_approval:`({count}) meddelanden kräver godkännande`,forum_moderate_post:{approve:`Godkänn meddelande`,block:`Radera meddelande`,restore:`Återställ meddelande`,restore_thread:`Återställ tråd`,edit:`Redigera meddelande`},forum_lock_thread:`Lås denna tråd`,forum_unlock_thread:`Öppna tråd`,forum_delete_thread:`Ta bort tråd`,go_to_page:`Gå till sidan {url}`,open_image:`Öppna bild`,open_image_with_description:`Öppna bild "{description}"`,memberform_date_placeholder:`dd.mm.åååå`,memberform_date_format_error:`Datumet måste vara i formatet dd.mm.åååå`,memberform_date_error:`Ogiltigt datum`,memberform_submit:`Skicka medlemsansökan`,memberform_default_thanks_msg:`Tack för din medlemsansökan.`,memberform_confirm_email:`Bekräfta e-postadress`,memberform_email_mismatch:`E-postadresserna matchar inte.`,fmreg_validation_errors:{_validation_field_required:`Det här fältet kan inte vara tomt.`,_validation_invali
105d_email:`E-postadressen är ogiltig.`,_validation_invalid_date:`Ogiltigt datumsformat (korrekt format t.ex. 2014/12/24).`,_validation_invalid_date_pre_1901:`Äldsta datum som stöds är 1.1.1901.`,_validation_integer_invalid:`Ogiltigt heltal (korrekt format t.ex. 42).`,_validation_invalid_decimal:`Ogiltigt decimaltal (korrekt format t.ex. 3,14).`,_validation_charfield_min_length:`Det här fältets värde är för kort.`,_validation_charfield_max_length:`Det här fältets värde är för långt.`,_validation_anti_spam_failed:`Kontrollera svaret.`},rescal_reservation_length:`Bokningens längd`,rescal_minus:`minska`,rescal_plus:`öka`,rescal_week:`vecka`,rescal_next_month:`Nästa månad`,rescal_previous_month:`Föregående månad`,rescal_reservation_dates:`Bokningsdatum`,rescal_reserve:`Boka`,rescal_reservation_success:`Tack för din bokning!`,rescal_chosen_date_not_available:{1:`Det valda datumet är inte tillgängligt.`,n:`Det valda datumintervallet är inte tillgängligt.`},rescal_day_duration:{1:`{_n} dag`,n:`{_n} dagar`},rescal_night_duration:{1:`{_n} natt`,n:`{_n} nätter`},rescal_reservation_details:`Bokningsdetaljer`,rescal_form_your_name:`Ditt namn`,rescal_booker_email_title:`Dina bokning: {resource}`,rescal_free_limit_warning:`Obs! Detta är Yhdistysavains Free-version, där du kan prova bokningskalendern, men det kan finnas högst två bokningar åt gången i kalendern.`,HTML_rescal_booker_email_reservation_done:`<p>Hej!</p> <p>Din bokning gjord på {rescalUrl} har mottagits och väntar på godkännande.</p> <p>Bokning: {resource}, {dateSpan}</p>
106`,rescal_booker_email_your_data_title:`Dina uppgifter`,rescal_reservation_created_at:`Bokning skapad den`,rescal_widget_disabled:`Bokningskalender är inaktiverad.`,archive_widget_disabled_placeholder:`{widget} fungerar endast i onlineversionen.`,archive_extract_notice:`Arkivkopian har inte packats upp, så sidans utseende och bilder saknas. Högerklicka på zip-filen, välj ”Extrahera alla” och öppna sidorna först från den uppackade mappen.`,rescal_no_availability_from_here:`Det finns inga tillgängliga tider från denna punkt framåt.`,rescal_no_availability_this_month:`Det finns inga tillgängliga tider denna månad.`,rescal_show_next_available:`Visa nästa tillgängliga tider`,rescal_no_availability_at_all:`Det finns inga tillgängliga tider i denna kalender.`},_l={nav_expand:`Show subpages for page {title}`,nav_unexpand:`Hide subpages for page {title}`,nav_subpages_for_page:`Subpages for page {title}`,made_with_PRODUCT:`Powered by Yhdistysavain`,made_with_PRODUCT_link:`https://www.yhdistysavain.fi`,skip_to_content:`Skip to content`,footer_link_title_privacypolicy:`Privacy policy`,footer_log_in:`Log in to this website`,thank_you:`Thank you!`,HTML_general_cookie_text:`<h1>About cookies</h1> <p>This website possibly uses cookies and similar technology (e.g. localstorage) for one or more of the purposes listed below, depending on the site settings and current page.</p>
107<p>Required cookies: logging in to the website, remembering cookie consent choices.</p>
108<p>Statistics cookies:
109  <a href="https://policies.google.com/technologies/types">Google Analytics</a>.
110</p>
111<p>Marketing cookies:
112  <a href="https://en-gb.facebook.com/policy/cookies/">Facebook embeds</a>,
113  <a href="https://policies.google.com/technologies/types">YouTube videos</a>.
114</p>
115`,consent_title:`This website uses cookies.`,consent_fieldset_legend:`Choose cookies to accept`,consent_checkbox_necessary:`Necessary`,consent_checkbox_statistics:`Statistics`,consent_checkbox_marketing:`Marketing`,consent_button_allow_selected:`Allow only selected`,consent_button_allow_all:`Allow all`,consent_read_more:`Read more about cookies`,consent_cookies_page_link_title:`Cookies`,consent_cookies_page_title:`About cookies`,consent_edit_your_consent:`Edit your cookie consent choices`,nav_menu:`Menu`,nav_search_and_menu:`Search and menu`,nav_search_placeholder:`Search`,form_choose_file:`Select file`,form_uploading_file:`Uploading file...`,form_uploaded_file:`Uploaded file`,form_remove_file:`Remove file`,form_fill_the_form:`Please fill the form first.`,form_wait_for_upload_to_finish:`Please wait for the file transfer to finish.`,form_unknown_error:`Unknown error`,form_check_required_fields:`Please check that you have filled all the required fields`,form_choose:`Please choose…`,form_send_label:`Send`,form_thankyou_message:`Form successfully sent.`,form_submission_needs_js:`Please enable Javascript in your browser settings. Javascript is required for submitting this form.`,form_attachment_too_big:`Error: max size for attachments is 30 megabytes`,form_please_enter_spam_answer:`To prevent spamming please write the answer of the addition to the field below.`,form_spam_number_4:`four`,form_spam_number_2:`two`,form_check_spam_answer:`Please check the sum.`,form_field_spam_addition:`Addition`,form_email_hello:`Hello!`,form_email_your_data_title:`Information you sent`,form_email_no_data_title:`Form answer received`,form_email_form_received:`We received the information you sent via the form at {url}`,HTML_widget_facebook_load_error_consent_needed:`Unable to show Facebook page. Please check marketing cookie consent.`,HTML_widget_facebook_load_error_other_error:`Unable to show Facebook page. Please check your browser's privacy settings.`,HTML_widget_video_load_error_consent_needed:`Unable to show YouTube video. Please check marketing cookie consent.`,HTML_widget_video_load_error_other_error:`Unable to show YouTube video. Please check your browser's privacy settings.`,locale:`en-US`,date_format:`%h %-d, %Y`,date_range_separator:` to `,date_clock_separator:``,weekday:{0:`Sunday`,1:`Monday`,2:`Tuesday`,3:`Wednesday`,4:`Thursday`,5:`Frid
115ay`,6:`Saturday`,7:`Sunday`},weekday_short:{0:`Sun`,1:`Mon`,2:`Tue`,3:`Wed`,4:`Thu`,5:`Fri`,6:`Sat`,7:`Sun`},form_email:`Email`,form_post_error:{ANSWER_LIMIT_REACHED:`Unable to send the form since its answer limit has been reached.`,TEXT_MAX_LENGTH_EXCEEDED:`The maximum length for text is 32000 characters. The value is too long in the field:`,RESCAL_RESERVATION_LIMIT_REACHED:`Reservation limit has been reached.`},back_to_frontpage:`Back to the Front Page`,pagination_left:{default:`Previous`,forum:`Newer`,news:`Newer`,events:`Previous`,events_past:`Newer`},pagination_page:`Page`,pagination_right:{default:`Next`,forum:`Older`,news:`Older`,events:`Next`,events_past:`Older`},pagination_page_selection:`Choose page`,xitems_widget_more:{news:`Earlier news items`,events:`More events`},xitems_no_items:{news:`No news items`,events:`No upcoming events`,events_past:`No past events`},browse_past_events:`Past events`,browse_upcoming_events:`Upcoming events`,browsing_past_events:`You are browsing past events.`,browsing_past_event:`You are viewing a past event.`,rss_feed:`RSS feed`,HTML_loginview_inline_logged_in_as:`You are currently logged in as <b>{loggedInAs}</b>. <a href="/">Go to the front page</a> or <a href="/@logout">logout</a>.`,HTML_loginview_fullpage_logged_in_as:`You are currently logged in as <b>{loggedInAs}</b>. <a href="/@logout">Logout</a>.`,loginview_page_title:{LV_LOGGED_IN_AS:``,LV_SHOW_FORM:`Log in`,LV_ASK_EMAIL:`Reset your password`,LV_RESETTING_PASSWORD:`Choose a new password`,LV_RESET_CODE_REQUIRED:`Enter reset code`,LV_TOTP_REQUIRED:`Enter login code`,LV_SETUP_TOTP:`Enable two-factor authentication`},loginview_insufficient_session:`You do not have a permission to access this page.`,loginview_return:`Back`,HTML_loginview_osso_note:`<h2>Credentials from the union?</h2> <p><a href="{ossoLoginLink}">Log in here »</a></p> <p>Otherwise, log in with <a href="#" id="local-login">this form</a>.</p>
116`,loginview_email:`Email`,loginview_password:`Password`,loginview_password_strength:`Password strength`,loginview_new_password_description:`At least 10 characters`,loginview_password_strengths:{0:`insufficient`,1:`poor`,2:`ok`,3:`good`,4:`excellent`},loginform_remember_me:`Remember me`,loginview_login_error:{INVALID_TOTP:`Invalid code.`,INVALID_RESET_CODE:`Invalid reset code.`,TRY_AGAIN_LATER:`Too many failed login attempts. Please try again in an hour.`,RESET_CODE_EXPIRED:`Reset code has expired. Please contact customer support.`,INVALID_USERNAME_OR_PASSWORD:`Login failed. Please check the email address and password.`,OSSO_USER_NOT_FOUND:`Your data was not found. If you have just joined, try again tomorrow.`},loginview_forgot_your_password:`Need to reset or create a password?`,HTML_loginview_please_give_email:`<p>Please enter the email address that is saved in your data. You can use this form to set a password even if there is no former password set for your account.</p>
117`,loginview_button_login:`Log in`,loginview_button_login_with_totp:`Continue`,loginview_button_request_password:`Continue`,loginview_button_reset_password:`Change password`,HTML_loginview_enter_reset_code_and_password:`<p>If the email address <b>{email}</b> you entered exists in our system, an 8-digit code has been sent to it. Enter the code below and choose a new password. Please also check the spam folder. The code is valid for 30 minutes.</p>
118`,loginview_password_reset_code:`Code sent to your email`,loginview_password_reset_code_placeholder:`e.g. 1234 5678`,loginview_reset_error:{INVALID_RESET_CODE:`The code is incorrect. Please check the code sent to your email and try again.`,RESET_CODE_EXPIRED:`The code has expired or has been tried too many times. Go back and request a new code.`,TOO_MANY_RESET_REQUESTS:`The code has been requested too many times. Please try again later.`},loginview_new_password:`New password`,loginview_confirm_new_password:`Confirm new password`,loginview_unexpected_error:`Unexpected error. Please try again later.`,loginview_password_not_strong_enough:`The password is not strong enough.`,loginview_passwords_dont_match:`Please check that you entered the same password twice.`,loginview_password_changed:`Your password has been changed.`,HTML_loginview_setup_totp:`<p>Please enable two-factor authentication by scanning the QR code to your 2FA app. Then write the 
1186-digit code given by the app in the text field below.</p>`,loginview_button_register_totp_device:`Enable two-factor authentication`,HTML_loginview_totp_required:`<p>Please enter the 6-digit code given by the 2FA app on your device.</p>
119`,loginview_totp:`Code`,HTML_loginview_reset_code_required:`<p>Please input the reset code you have received as SMS message.</p>`,loginview_reset_code:`Reset code`,loginview_button_reset_mfa:`Continue`,loginview_subject_email_reset_password:`Change your password for {domain}`,HTML_loginview_body_email_reset_password:`<h1>Hello!</h1> <p>Someone requested a password reset for your account. Enter this code in the password reset form:</p> <p style="font-size: 200%"><b>{code}</b></p> <p>If you did not request the password reset, please delete this message.</p>
120`,sitesearch_title:`Search`,sitesearch_more_results:`Showing the first {shown} search results out of {total}. Please refine your search to narrow the result set.
121`,sitesearch_index_not_available:`Search failed. Please note that the search index is updates once per day, and only when the site is set visible.`,sitesearch_no_results:`No pages or files match the search terms.`,docs_email_approved_subject:`Document {docTitle} has been signed`,HTML_docs_email_approved_body:`<p>All parties have signed the document <strong>{docTitle}</strong>.</p>
122<p><a href="{viewUrl}" style="font-size: 135%;">Download signed document here »</a></p>
123`,docs_email_rejected_subject:`Document {docTitle} has been rejected`,HTML_docs_email_rejected_body:`<p>The document {docTitle} has been rejected.</p>
124<p>{rejecterName}:<br><i>{HTML_rejectionReasonHtml}</i></p>
125`,docs_sms_body:`Document {docTitle} is awaiting your signature in your email at {email}
125.`,docs_email_bounced_subject:`Email could not be delivered`,docs_email_bounced_body:`The email to {name} ({email}) could not be delivered. Document: {docTitle}.`,docs_email_name_mismatch_subject:`Signer name mismatch: {docTitle}`,docs_email_name_mismatch_body:`The signer's name from strong authentication does not match the recorded name. Please review the situation and acknowledge the difference or cancel the signing. Document: {docTitle}.
126`,docs_email_bounced_link_text:`Review the delivery problem here »`,docs_email_name_mismatch_link_text:`Acknowledge or cancel the signing here »`,docs_email_reminder_subject:`Reminder: the document "{title}" is awaiting your signature`,docs_email_reminder_notice:`Reminder: the document is still awaiting your signature.`,docs_sms_reminder_prefix:`Reminder: `,docs_pdf_stamp:`Digitally signed {date}`,docs_pdf_signatures_title:`Signatures`,docs_pdf_col_signer:`Signer`,docs_pdf_col_time:`Time`,docs_pdf_auth_method_label:`Authentication method: {method}`,docs_pdf_method:{strong:`Strong authentication (Telia)`,email:`Email`},docs_pdf_footer:`This document has been electronically signed and protected with a digital signature on {datetime}
127on the Yhdistysavain site {siteHostname}.`,docs_pdf_learn_more:`Learn more: www.yhdistysavain.fi/allekirjoitus`,fourohfour_title:`Page not found`,HTML_fourohfour_content:`We cannot find the page you are looking for. Go to <a href="/">front page</a>.`,event_time:`Time`,event_location:`Location`,event_address:`Address`,forum_subject:`Subject`,forum_body:`Message`,forum_body_placeholder:`Write your message here...`,forum_save_edits:`Save message`,forum_send_post:`Send message`,forum_edit_post:`Edit post`,forum_reply_to_thread:`Reply to this thread`,forum_start_thread:`Start a new thread`,forum_unknown_error:`Unknown error`,forum_follow_this_forum:`Follow this forum`,forum_no_threads:`No discussion threads yet.`,forum_reply_count:{0:`no replies`,1:`one reply`,n:`{_n} replies`},forum_thread_not_found:`Thread not found or it is not public.`,forum_latest_reply:`latest`,forum_one_reply:`by {author} {timestamp}`,forum_back_to_threads:`Back to list of threads`,forum_back_to_thread:`Back to thread`,forum_following_on:`You will receive a notification to {email} each time someone writes a post to the discussion forum.`,forum_following_off:`Notification email turned off.`,forum_edit_saved:`Saved.`,forum_msg_sent:`Sent.`,forum_is_moderated:`Sent posts will be shown only after approval by the moderator(s).`,forum_is_locked:`This thread is locked: it cannot be replied to.`,forum_no_subject:`(no subject)`,forum_msg_has_been_moderated:`Edited by the moderator.`,forum_error_message:{FORUM_ALL_FIELDS_ARE_REQUIRED:`All fields are required.`,FORUM_ANTI_SPAM_INCORRECT_ANSWER:`Please check the sum.`},forum_nickname:`Nickname`,forum_nickname_lowercase:`nickname`,forum_realname:`Name`,forum_new_post_email_subject:`A new post on a discussion forum you are following`,forum_new_post_email_body:`Read the post at`,forum_new_post_moderation_email_subject:`A new post is waiting for approval on a discussion forum`,forum_new_post_moderation_email_body:`Read and moderate the post at`,forum_perlcms_email_info:`No email is sent, since this site is using the Classic version.`,forum_history_preview_info:`Preview not available for forum contents.`,HTML_forum_unapproved_post:{new:`started a new thread with the subject <i>{subject}</i>`,reply:`replied to the thread <a href="{threadLink}"><i>{subject}</i></a>`},forum_posts_waiting_for_approval:`Posts waiting for approval ({count})`,forum_moderate_post:{approve:`Approve post`,block:`Block post`,restore:`Restore post`,restore_thread:`Restore thread`,edit:`Edit post`},forum_lock_thread:`Lock this thread`,forum_unlock_thread:`Unlock this thread`,forum_delete_thread:`Delete this thread`,go_to_page:`Go to page {url}`,open_image:`Open image`,open_image_with_description:`Open image "{description}"`,memberform_date_placeholder:`dd.mm.yyyy`,memberform_date_format_error:`Date must be in format dd.mm.yyyy`,memberform_date_error:`Invalid date`,memberform_submit:`Apply for membership`,memberform_default_thanks_msg:`Thank you for your membership application.`,memberform_confirm_email:`Confirm email address`,memberform_email_mismatch:`Email addresses do not match.`,fmreg_validation_errors:{_validation_field_required:`This field cannot be blank.`,_validation_invali
127d_email:`Invalid email address.`,_validation_invalid_date:`Invalid date value (valid example: 24/12/2014).`,_validation_invalid_date_pre_1901:`Oldest supported date is 1/1/1901.`,_validation_integer_invalid:`Invalid integer value (valid example: 42).`,_validation_invalid_decimal:`Invalid decimal value (valid example: 3.14).`,_validation_charfield_min_length:`Value for this field is too short.`,_validation_charfield_max_length:`Value for this field is too long.`,_validation_anti_spam_failed:`Please check the sum.`},rescal_reservation_length:`Reservation length`,rescal_minus:`shrink`,rescal_plus:`grow`,rescal_week:`week`,rescal_next_month:`Next month`,rescal_previous_month:`Previous month`,rescal_reservation_dates:`Reservation date`,rescal_reserve:`Make a reservation`,rescal_reservation_success:`Thank you for your reservation!`,rescal_chosen_date_not_available:{1:`The chosen date is not available.`,n:`The chosen date range is not available.`},rescal_day_duration:{1:`{_n} day`,n:`{_n} days`},rescal_night_duration:{1:`{_n} night`,n:`{_n} nights`},rescal_reservation_details:`Reservation details`,rescal_form_your_name:`Your name`,rescal_booker_email_title:`Your reservation: {resource}`,rescal_free_limit_warning:`Note! This is the Free version of Yhdistysavain, where you can try the reservation calendar, but there can be a maximum of two reservations at a time.`,HTML_rescal_booker_email_reservation_done:`<p>Hello!</p> <p>Your reservation made at {rescalUrl} has been received and is awaiting approval.</p> <p>Reservation: {resource}, {dateSpan}</p>
128`,rescal_booker_email_your_data_title:`Your details`,rescal_reservation_created_at:`Reservation created at`,rescal_widget_disabled:`Reservation calendar is disabled.`,archive_widget_disabled_placeholder:`{widget} only works in the online version.`,archive_extract_notice:`The archive has not been extracted, so the page styling and images are missing. Right-click the zip file, choose “Extract All”, and open the pages from the extracted folder instead.`,rescal_no_availability_from_here:`There are no available times from this point forward.`,rescal_no_availability_this_month:`There are no available times this month.`,rescal_show_next_available:`Show next available times`,rescal_no_availability_at_all:`There are no available times in this calendar.`},vl=l(o(((e,t)=>{var n=/["'&<>]/;t.exports=r;function r(e){var t=``+e,r=n.exec(t);if(!r)return t;var i,a=``,o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i=`&quot;`;break;case 38:i=`&amp;`;break;case 39:i=`&#39;`;break;case 60:i=`&lt;`;break;case 62:i=`&gt;`;break;default:continue}s!==o&&(a+=t.substring(s,o)),s=o+1,a+=i}return s===o?a:a+t.substring(s,o)}}))(),1);function yl(e,t,n,r){typeof n==`object`&&(r=n,n=void 0),r=r||{};function i(e,i){if(Object.prototype.hasOwnProperty.call(i,`_n`))if(typeof e==`object`){let t=i._n;return e[0]&&(t===0||typeof t!=`number`)?e[0]:e[1]&&t===1?e[1]:e.n}else throw`_n param given for non-n-type tag '${t}'`;else{if(typeof e==`object`)throw console.warn({tag:t,subTag:n,opts:r}),`no _n param given for n-type tag ${t}`;return e}}function a(e,n){return e.replace(/\{(\w+)(?:\|\|(.*?))?}/g,function(e,r,i){let a;return r in n&&(a=t.startsWith(`HTML_`)&&!r.startsWith(`HTML_`)?(0,vl.default)(n[r]):n[r]),a==null?i===void 0?e:i:a})}let o=Object.prototype.hasOwnProperty.call(e,t)?e[t]:t;if(n)if(typeof o==`object`){if(o=o[n],o===void 0)return console.warn(`subTag '${n}' not found for tag '${t}'`),t+`→`+n}else return console.error(`subTag requested for simple tag`,{tag:t,val:o,subTag:n}),t+`→`+n;return o=i(o,r),o=a(o,r),o}var bl=(e,t,...n)=>(0,vl.default)(yl(e,t,...n)),xl,Sl=e=>xl=e,Cl=Symbol();function wl(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Tl;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Tl||(Tl={}));var El=typeof window<`u`,Dl=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Ol(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function kl(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Pl(r.response,t,n
128)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Al(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function jl(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch(t){let n=document.createEvent(`MouseEvents`);n.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var Ml=typeof navigator==`object`?navigator:{userAgent:``},Nl=/Macintosh/.test(Ml.userAgent)&&/AppleWebKit/.test(Ml.userAgent)&&!/Safari/.test(Ml.userAgent),Pl=El?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Nl?Fl:`msSaveOrOpenBlob`in Ml?Il:Ll:()=>{};function Fl(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?jl(r):Al(r.href)?kl(e,t,n):(r.target=`_blank`,jl(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){jl(r)},0))}function Il(e,t=`download`,n){if(typeof e==`string`)if(Al(e))kl(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){jl(t)})}else navigator.msSaveOrOpenBlob(Ol(e,n),t)}function Ll(e,t,n,r){if(r=r||open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return kl(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Dl.HTMLElement))||`safari`in Dl,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Nl)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Rl}=Object,zl=()=>{};function Bl(e,t,n,r=zl){e.push(t);let i=()=>{let n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&Ie()&&Le(i),i}function Vl(e,...t){e.slice().forEach(e=>{e(...t)})}var Hl=e=>e();function Ul(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];wl(i)&&wl(r)&&e.hasOwnProperty(n)&&!P(r)&&!Yt(r)?e[n]=Ul(i,r):e[n]=r}return e}var Wl=Symbol();function Gl(e){return!wl(e)||!e.hasOwnProperty(Wl)}var{assign:Kl}=Object;function ql(e){return!!(P(e)&&e.effect)}function Jl(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),Kl(pn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=$t(Y(()=>{Sl(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=Yl(e,l,t,n,r,!0),c}function Yl(e,t,n={},r,i,a){let o,s=Kl({actions:{}},n),c={deep:!0},l,u,d=[],f=[],p=r.state.value[e];!a&&!p&&(r.state.value[e]={}),F({});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Tl.patchFunction,storeId:e,events:void 0}):(Ul(r.state.value[e],t),n={type:Tl.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();jn().then(()=>{m===i&&(l=!0)}),u=!0,Vl(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{Kl(e,t)})}:zl;function _(){o.stop(),d=[],f=[],r._s.delete(e)}function v(t,n){return function(){Sl(r);let i=Array.from(arguments),a=[],o=[];function s(e){a.push(e)}function c(e){o.push(e)}Vl(f,{args:i,name:t,store:y,after:s,onError:c});let l;try{l=n.apply(this&&this.$id===e?this:y,i)}catch(e){throw Vl(o,e),e}return l instanceof Promise?l.then(e=>(Vl(a,e),e)).catch(e=>(Vl(o,e),Promise.reject(e))):(Vl(a,l),l)}}let y=Gt({_p:r,$id:e,$onAction:Bl.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=Bl(d,t,n.detached,()=>a()),a=o.run(()=>dr(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Tl.direct,events:void 0},r)},Kl({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||Hl)(()=>r._e.run(()=>(o=Pe()).run(t)));for(let t in b){let n=b[t];P(n)&&!ql(n)||Yt(n)?a||(p&&Gl(n)&&(P(n)?n.value=p[t]:Ul(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(t,n),s.actions[t]=n)}return Kl(y,b),Kl(N(y),b),Object.defineProperty(y,`$state`,{get:()=>r.state.value[e],set:e=>{h(t=>{Kl(t,e)})}}
128),r._p.forEach(e=>{Kl(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function Xl(e,t,n){let r,i,a=typeof t==`function`;typeof e==`string`?(r=e,i=a?n:t):(i=e,r=e.id);function o(e,n){let o=Di();return e=e||(o?Ei(Cl,null):null),e&&Sl(e),e=xl,e._s.has(r)||(a?Yl(r,t,i,e):Jl(r,i,e)),e._s.get(r)}return o.$id=r,o}var Zl=`%[a-f0-9]{2}`,Ql=RegExp(`(`+Zl+`)|([^%]+?)`,`gi`),$l=RegExp(`(`+Zl+`)+`,`gi`);function eu(e,t){try{return[decodeURIComponent(e.join(``))]}catch(e){}if(e.length===1)return e;t=t||1;let n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],eu(n),eu(r))}function tu(e){try{return decodeURIComponent(e)}catch(t){let n=e.match(Ql)||[];for(let t=1;t<n.length;t++)e=eu(n,t).join(``),n=e.match(Ql)||[];return e}}function nu(e){let t={"%FE%FF":`��`,"%FF%FE":`��`},n=$l.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){let r=tu(n[0]);r!==n[0]&&(t[n[0]]=r)}n=$l.exec(e)}t[`%C2`]=`�`;let r=Object.keys(t);for(let n of r)e=e.replace(new RegExp(n,`g`),t[n]);return e}function ru(e){if(typeof e!=`string`)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch(t){return nu(e)}}function iu(e,t){if(!(typeof e==`string`&&typeof t==`string`))throw TypeError("Expected the arguments to be of type `string`");if(e===``||t===``)return[];let n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}function au(e,t){let n={};if(Array.isArray(t))for(let r of t){let t=Object.getOwnPropertyDescriptor(e,r);t!=null&&t.enumerable&&Object.defineProperty(n,r,t)}else for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){let a=e[r];t(r,a,e)&&Object.defineProperty(n,r,i)}}return n}var ou=s({exclude:()=>Tu,extract:()=>yu,parse:()=>bu,parseUrl:()=>Su,pick:()=>wu,stringify:()=>xu,stringifyUrl:()=>Cu}),su=e=>e==null,cu=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),lu=Symbol(`encodeFragmentIdentifier`);function uu(e){switch(e.arrayFormat){case`index`:return t=>(n,r)=>{let i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[pu(t,e),`[`,i,`]`].join(``)]:[...n,[pu(t,e),`[`,pu(i,e),`]=`,pu(r,e)].join(``)]};case`bracket`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[pu(t,e),`[]`].join(``)]:[...n,[pu(t,e),`[]=`,pu(r,e)].join(``)];case`colon-list-separator`:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,[pu(t,e),`:list=`].join(``)]:[...n,[pu(t,e),`:list=`,pu(r,e)].join(``)];case`comma`:case`separator`:case`bracket-separator`:{let t=e.arrayFormat===`bracket-separator`?`[]=`:`=`;return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===``?r:(i=i===null?``:i,r.length===0?[[pu(n,e),t,pu(i,e)].join(``)]:[[r,pu(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===``?n:r===null?[...n,pu(t,e)]:[...n,[pu(t,e),`=`,pu(r,e)].join(``)]}}function du(e){let t;switch(e.arrayFormat){case`index`:return(e,n,r)=>{if(t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,``),!t){r[e]=n;return}r[e]===void 0&&(r[e]={}),r[e][t[1]]=n};case`bracket`:return(e,n,r)=>{if(t=/(\[])$/.exec(e),e=e.replace(/\[]$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`colon-list-separator`:return(e,n,r)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,``),!t){r[e]=n;return}if(r[e]===void 0){r[e]=[n];return}r[e]=[...r[e],n]};case`comma`:case`separator`:return(t,n,r)=>{let i=typeof n==`string`&&n.includes(e.arrayFormatSeparator),a=typeof n==`string`&&!i&&mu(n,e).includes(e.arrayFormatSeparator);n=a?mu(n,e):n,r[t]=i||a?n.split(e.arrayFormatSeparator).map(t=>mu(t,e)):n===null?n:mu(n,e)};case`bracket-separator`:return(t,n,r)=>{let i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,``),!i){r[t]=n&&mu(n,e);return}let a=n===null?[]:n.split(e.arrayFormatSeparator).map(t=>mu(t,e));if(r[t]===void 0){r[t]=a;return}r[t]=[...r[t],...a]};default:return(e,t,n)=>{if(n[e]===void 0){n[e]=t;return}n[e]=[...[n[e]].flat(),t]}}}function fu(e){if(typeof e!=`string`||e.length!==1)throw TypeError(`arrayFormatSeparator must be single character string`)}function pu(e,t){return t.encode?t.strict?cu(e):encodeURIComponent(e):e}function mu(e,t){return t.decode?ru(e):e}function hu(e){return Array.isArray(e)?e.sort():typeof e==`object`?hu(Object.keys(e)).sort((e,t)=>
128Number(e)-Number(t)).map(t=>e[t]):e}function gu(e){let t=e.indexOf(`#`);return t!==-1&&(e=e.slice(0,t)),e}function _u(e){let t=``,n=e.indexOf(`#`);return n!==-1&&(t=e.slice(n)),t}function vu(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e==`string`&&e.trim()!==``?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()===`true`||e.toLowerCase()===`false`)&&(e=e.toLowerCase()===`true`),e}function yu(e){e=gu(e);let t=e.indexOf(`?`);return t===-1?``:e.slice(t+1)}function bu(e,t){t=X({decode:!0,sort:!0,arrayFormat:`none`,arrayFormatSeparator:`,`,parseNumbers:!1,parseBooleans:!1},t),fu(t.arrayFormatSeparator);let n=du(t),r=Object.create(null);if(typeof e!=`string`||(e=e.trim().replace(/^[?#&]/,``),!e))return r;for(let i of e.split(`&`)){if(i===``)continue;let e=t.decode?i.replaceAll(`+`,` `):i,[a,o]=iu(e,`=`);a===void 0&&(a=e),o=o===void 0?null:[`comma`,`separator`,`bracket-separator`].includes(t.arrayFormat)?o:mu(o,t),n(mu(a,t),o,r)}for(let[e,n]of Object.entries(r))if(typeof n==`object`&&n)for(let[e,r]of Object.entries(n))n[e]=vu(r,t);else r[e]=vu(n,t);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{let n=r[t];return e[t]=n&&typeof n==`object`&&!Array.isArray(n)?hu(n):n,e},Object.create(null))}function xu(e,t){if(!e)return``;t=X({encode:!0,strict:!0,arrayFormat:`none`,arrayFormatSeparator:`,`},t),fu(t.arrayFormatSeparator);let n=n=>t.skipNull&&su(e[n])||t.skipEmptyString&&e[n]===``,r=uu(t),i={};for(let[t,r]of Object.entries(e))n(t)||(i[t]=r);let a=Object.keys(i);return t.sort!==!1&&a.sort(t.sort),a.map(n=>{let i=e[n];return i===void 0?``:i===null?pu(n,t):Array.isArray(i)?i.length===0&&t.arrayFormat===`bracket-separator`?pu(n,t)+`[]`:i.reduce(r(n),[]).join(`&`):pu(n,t)+`=`+pu(i,t)}).filter(e=>e.length>0).join(`&`)}function Su(e,t){var n,r;t=X({decode:!0},t);let[i,a]=iu(e,`#`);return i===void 0&&(i=e),X({url:(n=i==null||(r=i.split(`?`))==null?void 0:r[0])==null?``:n,query:bu(yu(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:mu(a,t)}:{})}function Cu(e,t){t=X({encode:!0,strict:!0,[lu]:!0},t);let n=gu(e.url).split(`?`)[0]||``,r=xu(X(X({},bu(yu(e.url),{sort:!1})),e.query),t);r&&(r=`?${r}`);let i=_u(e.url);if(typeof e.fragmentIdentifier==`string`){let r=new URL(n);r.hash=e.fragmentIdentifier,i=t[lu]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${i}`}function wu(e,t,n){n=X({parseFragmentIdentifier:!0,[lu]:!1},n);let{url:r,query:i,fragmentIdentifier:a}=Su(e,n);return Cu({url:r,query:au(i,t),fragmentIdentifier:a},n)}function Tu(e,t,n){return wu(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var Eu=ou;function Du(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var Ou=Du(),ku={getSessionInfo:3e3,getRestrictionMetrics:3e3,getCustomerInfo:9e5,getAvailableThemes:6e4};Ou&&Ou.on(`d4jsonrpcResult`,({requestBody:e,result:t,expires:n})=>{try{window.top&&(window.top.D4JSONRPC_CACHE[e]={result:t,expires:n})}catch(e){}});async function Au(e,t={},n=``){let r=JSON.stringify({method:e,params:t});if(ku[e]){let e=window.top;e.D4JSONRPC_CACHE||(e.D4JSONRPC_CACHE={});let t=e.D4JSONRPC_CACHE[r];if(t)if(`result`in t){if(t.expires>+new Date)return t.result}else return await new Promise(e=>Ou.on(`d4jsonrpcResult`,t=>{t.requestBody===r&&e(t.result)}));e.D4JSONRPC_CACHE[r]={}}let i=await fetch(n+`/@rpc?`+e,{method:`post`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:r,credentials:n?`omit`:`include`}),a=await i.json();if(i.status!==200)if(a.error===`D4SessionError`){let e=window.top;throw document.cookie=`tryCmsVersion=; path=/`,e.location=`/@login?`+Eu.stringify({GOTO:e.location.pathname+e.location.search,Error:a.reason}),Error(`REDIRECTING_TO_LOGIN`)}else{console.warn(`d4rpc-client: error`,i);let e=Error();throw e.data=a,e}return ku[e]&&Ou.emit(`d4jsonrpcResult`,{requestBody:r,expires:+new Date+ku[e],result:a.result}),a.result}var ju=new Proxy({},{get(e,t){return(...e)=>Au(t,...e)}}),Mu=function*(e,{includeGrids:t=!1}={}){let n=t?`widgetOrGrid`:`widget`;for(let r of Object.keys(e).sort())for(let[i,a]of e[r].entries())if(a.type===`grid`){t&&(yield{zoneId:r,idxInZone:i,[n]:a,gridId:void 0});for(let[e,t]of a.cols.entries())for(let[o,s]of t.widgets.entries())yield{zoneId:r,idxInZone:i,idxInCol:o,[n]:s,gridId:a.id,colIdx:e}}else yield{zoneId:r,idxInZone:i,[n]:a,gridId:void 0}},Nu=function(e){return Mu(e,{includeGrids:!1})},Pu=function(e){return Mu(e,{includeGrids:!0})},Fu=function(e,t){let n=typeof t==`function`?t:e=>e.id===t;for(let t of Nu(e))if(n(t.widget))return t},Iu=function(e,t){let n=typeof t==`function`?t:e=>e.id===t;for(let t of Pu(e))if(n(t.widgetOrGrid))return t},Lu=function(e){for(let[t,n]of Object.entries(e)){let r=[];
128for(let e of n){if(e.type!==`grid`){r.push(e);continue}if(e.cols=e.cols.filter(e=>e.widgets.length>0),e.cols.length!==0){if(e.cols.length===1){r.push(...e.cols[0].widgets);continue}e.cols.map(e=>e.width).reduce((e,t)=>e+t,0)!==60&&e.cols.forEach(t=>t.width=60/e.cols.length),r.push(e)}}e[t]=r}},Ru=function(e){Lu(e),window.LAZYLOADER&&window.requestAnimationFrame(()=>{window.LAZYLOADER.update()})};function zu(e,t){let n=``;for(let r=e;r>0;--r)n+=t[Math.floor(Math.random()*t.length)];return n}function Bu(){return zu(20,`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`)}Du(),F({});var Vu=F([]);Y(()=>!!Vu.value.length),F([]);function Hu(){if(window.AdminApi)return window;if(window.parent.AdminApi)return window.parent;throw Error(`Cannot find admin window`)}function Uu(){let e=Hu().AdminApi;if(!e)throw Error(`Cannot find AdminApi from admin window`);return e}var Wu={};function Gu(e,t,n){return yl(Wu,e,t,n)}function Ku(e){return Uu().isDirtyFlagSet(e)}function qu(){alert(Gu(`site_editor_save_or_undo`))}var Ju=[`text`,`image`,`gallery`,`calltoaction`,`video`,`files`,`form`,`memberform`,`html`,`facebook`,`twitter`,`news`,`events`,`feedreader`,`forum`,`spacer`,`highlights`,`searchresults`,`rescal`,`cookiedetails`],Yu={text:{customToolbar:!0},image:{customToolbar:!0,storageType:`image`},gallery:{storageType:`gallery`},calltoaction:{},video:{},files:{},form:{customToolbar:!0},html:{},facebook:{},twitter:{addable:!1},news:{customToolbar:!0,initiallyDirty:!0,onePerPage:!0,isXWidget:!0,clonable:!1},events:{customToolbar:!0,initiallyDirty:!0,onePerPage:!0,isXWidget:!0,clonable:!1},feedreader:{},forum:{clonable:!1,initiallyDirty:!0},memberform:{customToolbar:!0,initiallyDirty:!0,onePerPage:!0},rescal:{onePerPage:!0},spacer:{initiallyDirty:!0},highlights:{},grid:{},searchresults:{addable:!1},cookiedetails:{addable:!1}};Ju.filter(e=>Yu[e].addable!==!1),Ju.filter(e=>Yu[e].isXWidget);var Xu={PUBLIC:`-1`,EVERYONE:`-2`,INSUFFICIENT_VERSION:`3`,MIGRATION_TASK:`4`,OPTINET_ADMIN:`1`,SITE_ADMIN:`5`,BOARD:`101465`,EDITORS_TEST_GROUP:`117725`},Zu={calltoaction:()=>({settings:{label:``,style:!1,expand:!1,center:!1,url:``,urlOpenInNewWindow:!1}}),events:()=>({settings:{numToShow:6,widgetVariant:`images`}}),facebook:()=>({settings:{facebookAccount:``,facebookNewPage:!1}}),feedreader:()=>({settings:{feedUrl:``,numToShow:5}}),files:()=>({files:[]}),form:()=>({fields:[],settings:{sendEmail:`group`,emailGroupNum:Number(Xu.SITE_ADMIN)}}),forum:()=>({settings:{moderation:!1}}),gallery:()=>({files:[],settings:{}}),html:()=>({htmlContent:``}),image:()=>({files:[],settings:{}}),memberform:()=>({settings:{thanksMsg:vd(`memberform_default_thanks_msg`),sendEmail:`admins`}}),news:()=>({settings:{numToShow:6,widgetVariant:`images`}}),rescal:()=>({settings:{resource:``,wizardMode:!0,mode:`MODE_DAYS`,seasons:[],minBookingLength:1,maxBookingLength:1,bookingDeadlineHours:24,thankYouMessage:vd(`rescal_reservation_success`),submitText:vd(`rescal_reserve`),afterSendAction:`SHOW_THANKYOU`,showAntiSpamQuestion:!1,sendEmail:`group`,emailGroupNum:Number(Xu.SITE_ADMIN),includeAnswerDataInEmail:!1,sendEmailToSender:!1,sendEmailToSenderText:``,sendEmailToSenderIncludeAnswerData:!1},fields:[{id:Bu(),type:`input`,label:vd(`rescal_form_your_name`),required:!0}]}),spacer:()=>({settings:{value:5,rule:!1}}),text:()=>({htmlContent:``}),video:()=>({settings:{youTubeVideoUrl:``}}),highlights:()=>({settings:{items:[],widgetVariant:`grid`}})},Qu=e=>{if(Zu[e])return Zu[e]();console.warn(`******* no widget initial data for type`,e)},$u=new Set([`10header`,`50main`,`75right`,`90footer`]),ed=l(o(((e,t)=>{function n(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");let{immediate:r}=typeof n==`boolean`?{immediate:n}:n,i,a,o,s,c;function l(){let n=Date.now()-s;if(n<t&&n>=0)o=setTimeout(l,t-n);else if(o=void 0,!r){let t=i,n=a;i=void 0,a=void 0,c=e.apply(t,n)}}let u=function(...n){if(i&&this!==i)throw Error(`Debounced method called with different contexts.`);i=this,a=n,s=Date.now();let u=r&&!o;if(o||(o=setTimeout(l,t)),u){let t=i,n=a;i=void 0,a=void 0,c=e.apply(t,n)}return c};return u.clear=()=>{o&&(clearTimeout(o),o=void 0)},u.flush=()=>
128{if(!o)return;let t=i,n=a;i=void 0,a=void 0,c=e.apply(t,n),clearTimeout(o),o=void 0},u}t.exports.debounce=n,t.exports=n}))(),1),td=(e,t)=>{if(typeof t==`string`){let e=t;t=t=>t.matches(e)}if(t(e))return e;if(e.parentNode&&e.parentNode.classList)return td(e.parentNode,t)},nd=class{dndOnDropPointsSorted({}){}dndOnBeforeDrop({}){}dndOnDragStart(){}dndOnBeginMoving(){}constructor(e){Bs(this,`dndGhostHtml`,`&nbsp;`),Bs(this,`classSuffix`,``),Bs(this,`catchFromLeftSide`,!1),Bs(this,`dndConfig`,void 0),Bs(this,`rootElement`,void 0),Bs(this,`dndIsMoving`,!1),Bs(this,`dndMovingElem`,void 0),Bs(this,`_activeDropPoint`,void 0),Bs(this,`_dropPointsContainer`,void 0),Bs(this,`_dragOverListener`,e=>{}),Bs(this,`_dropListener`,e=>{}),Bs(this,`userTag`,void 0),this.dndConfig=e,this.rootElement=e.rootElement||document.body,this.dndInitDragHandles(this.getHandlesAndContainers()),this.userTag=Gu}dndCreateDropPoint(e,t,n,r=void 0){return{dst:t,pos:n,className:[`drop-point`,`drop-point-${e}`,...t.isHere?[`here`]:[],...r?[r]:[]].join(` `)}}_class(e){return e+this.classSuffix}_setCurrentLocationClass(){this.dndMovingElem&&this.dndMovingElem.classList.add(`dnd-current-location`)}_unsetCurrentLocationClass(){var e;(e=document.querySelector(`.dnd-current-location`))==null||e.classList.remove(`dnd-current-location`)}_createDropElements({moveMode:e}){var t=this,n;let r=this.dndGetDropElements({moveMode:e}),i=document.documentElement.scrollTop||document.body.scrollTop||0;for(let e of r)e.pos.top+=i;if(this.dndConfig.dropPointContainerMountPoint){let e=this.dndConfig.dropPointContainerMountPoint.getBoundingClientRect();for(let t of r)t.pos.top-=e.top,t.pos.left-=e.left}this._activeDropPoint=null,(n=document.querySelector(`div.drop-point-container`))==null||n.remove(),this._dropPointsContainer=document.createElement(`div`),this._dropPointsContainer.className=`drop-point-container`;for(let e of r){let n=document.createElement(`div`);n.className=e.className;for(let[t,r]of Object.entries(e.pos))n.style[t]=`${r}px`;n.onclick=async n=>{var r;n.stopPropagation(),t.dndEndMoving(),await t.dndDoMove({dst:e.dst}),(r=t._dropPointsContainer)==null||r.remove()},e.elem=n,this._dropPointsContainer.appendChild(n)}(this.dndConfig.dropPointContainerMountPoint||document.body).appendChild(this._dropPointsContainer),this._dragOverListener=e=>{e.preventDefault();for(let e of r){var t;(t=e.elem)==null||t.classList.remove(`drop-point-active`)}let[n,i]=[e.pageX,e.pageY];if(this.dndConfig.dropPointContainerMountPoint){let e=this.dndConfig.dropPointContainerMountPoint.getBoundingClientRect();i-=e.top,n-=e.left}for(let e of r)if(e.pos.width>e.pos.height){let t=e.pos.top+e.pos.height/2;e.distance=Math.abs(i-t),(n<e.pos.left&&!this.catchFromLeftSide||n>e.pos.left+e.pos.width)&&(e.distance+=1e3)}else e.distance=Math.abs(n-e.pos.left),(i<e.pos.top||i>e.pos.top+e.pos.height)&&(e.distance+=1e3);let a=r.filter(e=>e.distance<100);a.sort((e,t)=>e.distance-t.distance),this.dndOnDropPointsSorted({hoverTarget:e.target,possibleDropPoints:a}),this._activeDropPoint=a[0],this._activeDropPoint&&(this._activeDropPoint.dst.isHere?this._setCurrentLocationClass():(this._unsetCurrentLocationClass(),this._activeDropPoint.elem.classList.add(`drop-point-active`)))},this._dropListener=async e=>{e.preventDefault(),t.dndEndMoving(),t.dndOnBeforeDrop({hoverTarget:e.target})!==!1&&/^\[/.test(e.dataTransfer.getData(`text/plain`))&&t._activeDropPoint&&!t._activeDropPoint.dst.isHere&&await t.dndDoMove({dst:t._activeDropPoint.dst,data:JSON.parse(e.dataTransfer.getData(`text/plain`))})},document.addEventListener(`dragover`,this._dragOverListener),document.addEventListener(`drop`,this._dropListener),document.addEventListener(`dragenter`,e=>{e.preventDefault()})}destroyDropPoints(){var e;(e=this._dropPointsContainer)==null||e.remove();let t=document.querySelector(`.`+this._class(`dnd-ghost-`));t&&t.parentNode&&t.parentNode.removeChild(t),document.removeEventListener(`dragover`,this._dragOverListener),document.removeEventListener(`drop`,this._dropListener)}dndInitDragHandles(e){var t=this;let n;for(let{containerElem:r,handleElem:i}of e)i.onclick=e=>this.dndBeginManualMoving(e),i.onmouseover=()=>r.setAttribute(`draggable`,!0),i.onmouseout=()=>{this.dndIsMoving||r.setAttribute(`draggable`,!1)},r.onmousedown=e=>{n=e.target},r.ondragstart=e=>{if(e.stopPropagation(),this.dndOnDragStart()===!1){e.preventDefault();return}i.contains(n)?(e.dataTransfer.setData(`text/plain`,JSON.stringify([`DRAG_EXISTING`])),e.dataTransfer.effectAllowed=`move`,this.dndMovingElem=r,this.onStart(e)):e.preventDefault()},r.ondragenter=e=>{e.preventDefault()},r.ondragover=e=>{e.preventDefault()},r.ondragend=async()=>{t.dndEndMoving(),await new Promise(e=>setTimeout(e,1)),t.dndInitDragHandles(e)}}async onStart(e){var t=this;if(e.dataTransfer.setDragImage){let n=document.createElement(`div`);n.style.position=`absolute`,n.className=t._class(`dnd-ghost-`),n.style.top=n.style.right=/Firefox/.test(navigator.userAgent)?`0px`:`-9999px`,n.innerHTML=t.dndGhostHtml,document.body.appendChild(n),e.dataTransfer.setDragImage(n,0,0)}await t.dndBeginMoving({moveMode:`DRAGGING`})}async setDndClass({moveMode:e}={moveMode:`DRAGGING`}){var t=this;Uu().getEventBus().emit(`WEBSITE_DND`,!0),document.documentElement.classList.add(`dnd-ongoing`,t._class(`dnd-ongoing-`)),e===`MANUAL`&&document.documentElement.classList.add(`dnd-ongoing-manual`),await new Promise(e=>setTimeout(e,1))}showCancelButton(){let e=document.createElement(`span`);e.classList.add(`d4-button__text`),e.textContent=this.userTag(`dnd_undo_move`);let t=document.createElement(`div`);t.classList.add(`d4-button__content`),t.appendChild(e);let n=document.createElement(`button`);n.classList.add(`d4-button`,`d4-button--context-admin`,`d4-button--spacing-normal`,`d4-button--size-normal`,`d4-button--color-red`,`cancel-dnd`),n.appendChild(t),document.body.appendChild(n),n.onmouseup=()=>this.dndEndMoving()}async dndBeginManualMoving(e){var t=this;let n=new Set(t.dndGetItemElems());t.dndMovingElem=td(e.target,e=>n.has(e)),await t.dndBeginMoving({moveMode:`MANUAL`})}async dndBeginMoving({moveMode:e=`DRAGGING`}){var t=this;t.dndIsMoving=!0,Array.from(document.querySelectorAll(`.dnd-moving-this`)).forEac
128h(e=>e.classList.remove(`dnd-moving-this`)),t.dndMovingElem&&t.dndMovingElem.classList.add(`dnd-moving-this`),await new Promise(e=>setTimeout(e,10)),t.dndOnBeginMoving(),window.DRAG_RESIZE_LISTENER=(0,ed.default)(()=>t._createDropElements({moveMode:e}),50),window.addEventListener(`resize`,window.DRAG_RESIZE_LISTENER),await t.setDndClass({moveMode:e}),t._createDropElements({moveMode:e}),e===`MANUAL`&&t.showCancelButton()}dndEndMoving(){var e;window.removeEventListener(`resize`,window.DRAG_RESIZE_LISTENER),this.dndGetItemElems().forEach(e=>e.removeAttribute(`draggable`)),Array.from(document.querySelectorAll(`.dnd-moving-this`)).forEach(e=>e.classList.remove(`dnd-moving-this`)),document.documentElement.classList.remove(`dnd-ongoing`,`dnd-ongoing-manual`,this._class(`dnd-ongoing-`)),(e=document.querySelector(`button.cancel-dnd`))==null||e.remove(),this.destroyDropPoints(),Uu().getEventBus().emit(`WEBSITE_DND`,!1),this.dndIsMoving=!1}getHandlesAndContainers(){return this.dndGetItemElems().map(e=>({containerElem:e,handleElem:e.querySelector(this.dndConfig.handleSelector)}))}dndGetItemElems(){return Array.from(this.rootElement.querySelectorAll(this.dndConfig.itemSelector))}dndGet(){return Array.from(document.querySelectorAll(this.dndConfig.handleSelector)).map(e=>({handleElem:e,containerElem:e.closest(this.dndConfig.itemSelector)}))}dndDoMove({dst:e}){let t=this.dndGetItemElems().indexOf(this.dndMovingElem),n=this.dndConfig.getItems();e.type===`LAST`&&(e.idx=n.length),n.splice(e.idx,0,n[t]),e.idx<t?n.splice(t+1,1):n.splice(t,1),this.dndConfig.doMove(n)}dndGetDropElements({}){let{margin:e=0,type:t=`horizontal`}=this.dndConfig.getOptions?this.dndConfig.getOptions():{},n=e/2+2,r=this.dndGetItemElems();if(!r.length)return[];let i=[],a=r.map(e=>({elem:e,rect:e.getBoundingClientRect()}));t===`vertical`&&(a.every(e=>e.rect.left===a[0].rect.left)||a.every(e=>e.rect.right===a[0].rect.right))&&(t=`horizontal`);let o=t===`horizontal`?e=>({width:e.height,height:e.width,top:e.left,left:e.top}):e=>e;a.forEach(e=>e.rect=o(e.rect));let s,c,l=e=>i.push(this.dndCreateDropPoint(t,e,o({left:s.left+s.width+n,top:s.top,width:3,height:s.height})));return a.forEach((e,r)=>{let{left:a,top:u,height:d}=e.rect;i.push(this.dndCreateDropPoint(t,{type:`BEFORE`,idx:r,isHere:this.dndMovingElem===c||this.dndMovingElem===e.elem},o({left:a-n,top:u,width:3,height:d}))),s&&s.top!==u&&l({type:`BEFORE`,idx:r,isHere:this.dndMovingElem===c||this.dndMovingElem===e.elem}),s=e.rect,c=e.elem}),l({type:`LAST`,isHere:this.dndMovingElem===c}),i}},rd=class e extends nd{constructor(e){super(e),Bs(this,`dndGhostHtml`,`<div class="ghost-toolbar"></div><div class="ghost-handle"></div><div class="ghost-widget"><div class="ghost-content"></div><div class="ghost-content"></div><div class="ghost-content"></div></div>`),Bs(this,`classSuffix`,`widget`),Bs(this,`store`,void 0),this.store=gd()}static updateGridLightbulbs(){for(let e of Object.values(gd().page.zones)){let t;for(let n of e)if(delete n.gridLightbulb,n.type===`grid`){let e=n.cols.map(e=>e.width).join(`,`);t===e&&(n.gridLightbulb=!0),t=e}else t=null}}static isFlattenedGrid(e){let t=e.querySelectorAll(`.col`);return t[0].offsetLeft===t[1].offsetLeft}flattenedGridAlert(t){var n;let r=(n=document.getElementById(`wc-${t}`))==null?void 0:n.closest(`.grid`);return r&&e.isFlattenedGrid(r)?(alert(this.userTag(`flattened_grids_alert`)),!0):!1}dndGetItemElems(){return Array.from(document.querySelectorAll(`.widget-container`))}getHandlesAndContainers(){var e;return[{containerElem:this.rootElement.closest(`.widget-container`),handleElem:(e=this.rootElement.closest(`.widget-container`))==null?void 0:e.querySelector(`.widget-drag-handle`)}]}async dndDoMove({dst:e,data:t}){var n=this;if(n.dndConfig.beforeMove&&await n.dndConfig.beforeMove(t),t&&t[0]===`DRAG_NEW`){let e=await n.store.addWidget({widgetData:{type:t[1]},dst:n._activeDropPoint.dst});await new Promise(e=>setTimeout(e,1)),n.store.START_EDITING_WIDGET(e)}else await n.store.MOVE_WIDGET(X({widgetId:n.dndConfig.widgetId},e));await jn(),window.LAZYLOADER&&window.LAZYLOADER.update()}dndGetDropElements({moveMode:e}){let t=[];for(let n of Array.from(document.querySelectorAll(`.zone`)))t.push(...this.dndGetDropElementDimensions(this._getDropPoints(n.dataset.zoneId),n,e));return t}_getDropPoints(e){let t=this.dndMovingElem?this.dndMovingElem.id.replace(/^wc-/,``):void 0,n=t?Fu(this.store.page.zones,t):{gridId:void 0,colIdx:void 0},r=[];function i(n,i={}){let a=null;for(let o of n)r.push(X({dstZoneId:e,beforeWidgetId:o.id,isHere:t===o.id||t===a,afterWidgetId:a},i)),a=o.id;r.push(X(X({dstZoneId:e,afterWidgetId:a},i),{},{isHere:t===a}))}let a=this.store.page.zones[e]||[];i(a);for(let o of a)if(o.type===`grid`){if(!o.cols)throw Error(`cols`);
128let t=n.gridId===o.id,a=n.gridId&&o.cols[n.colIdx]&&o.cols[n.colIdx].widgets.length>1;if(o.cols.length<3||t&&!a)for(let i=0;i<=o.cols.length;i++)r.push({dstZoneId:e,dstGridId:o.id,asNewColIdx:i,isHere:!a&&t&&(n.colIdx===i-1||n.colIdx===i)});for(let[e,{widgets:t}]of o.cols.entries())i(t,{colIdx:e,dstGridId:o.id})}else r.push({dstZoneId:e,gridifyWithWidgetId:o.id,asNewColIdx:0,isHere:o.id===t}),r.push({dstZoneId:e,gridifyWithWidgetId:o.id,asNewColIdx:1,isHere:o.id===t});return r}dndGetDropElementDimensions(t,n,r){let i=n.getBoundingClientRect(),a=({dst:e,top:t})=>{t-=14/1.8;let n=i.left-10,a=i.width+20;return e.beforeWidgetId||(t+=14/1.4),r===`MANUAL`&&(n-=10,a+=10),this.dndCreateDropPoint(`horizontal`,e,{left:n,top:t,width:a,height:3})},o=({dst:e,top:t,left:n,width:i})=>(t-=14/2,n+=0,i-=2,r===`MANUAL`&&(n+=12,i-=14),e.afterWidgetId?e.beforeWidgetId?t+=0:t+=4:t+=8,this.dndCreateDropPoint(`horizontal`,e,{left:n,top:t,width:i,height:3})),s=({dst:e,top:t,left:n,height:r})=>(n-=14/2,t+=10,r-=24,this.dndCreateDropPoint(`vertical`,e,{left:n,top:t,width:3,height:r})),c=e=>{let{left:t,top:n,width:r,height:i}=document.getElementById(`wc-${e}`).getBoundingClientRect();return{left:t,top:n,width:r,height:i}},l=e=>{let t=document.createElement(`div`);return t.className=e,t},u=l(`grid`);u.appendChild(l(`col`)),u.appendChild(l(`col`)),n.appendChild(u);let d=e.isFlattenedGrid(u);u.remove();let f=new Set;for(let t of Array.from(n.querySelectorAll(`.grid`)))e.isFlattenedGrid(t)?(t.classList.add(`grid--flattened`),f.add(t.id.replace(`wc-`,``))):t.classList.remove(`grid--flattened`);return t.map(e=>{if(e.dstGridId){if(f.has(e.dstGridId))return;if(e.beforeWidgetId){let t=c(e.beforeWidgetId);return o({dst:e,top:t.top,left:t.left,width:t.width})}else if(e.afterWidgetId){let t=c(e.afterWidgetId);return o({dst:e,top:t.top+t.height,left:t.left,width:t.width})}else if(`asNewColIdx`in e){let t=document.getElementById(`wc-${e.dstGridId}`),n=document.querySelectorAll(`#wc-${e.dstGridId} > div.col`),r;if(n[e.asNewColIdx])r=n[e.asNewColIdx].getBoundingClientRect().left,e.asNewColIdx;else{let t=n[e.asNewColIdx-1].getBoundingClientRect();r=t.left+t.width+4/5*14}let i=t.getBoundingClientRect().height;return s({dst:e,top:c(e.dstGridId).top,left:r,height:i})}}else if(e.gridifyWithWidgetId){if(d||!$u.has(n.dataset.zoneId))return null;{let t=c(e.gridifyWithWidgetId);return s({dst:e,left:t.left+e.asNewColIdx*(t.width+4/5*14),top:t.top,height:t.height})}}else if(e.beforeWidgetId)return a({dst:e,top:c(e.beforeWidgetId).top});else return a({dst:e,top:i.top+(t.length>1?i.height:0)})}).filter(e=>e)}dndOnDropPointsSorted({hoverTarget:t,possibleDropPoints:n}){t.closest(`.grid`)&&e.isFlattenedGrid(t.closest(`.grid`))&&(n.length=0)}dndOnBeforeDrop({hoverTarget:t}){if(t.matches(`.grid`)&&e.isFlattenedGrid(t))return alert(this.userTag(`flattened_grids_alert`)),!1}
128dndOnDragStart(){if(this.flattenedGridAlert(this.dndConfig.widgetId))return!1}},id=[`widgetId`],ad=1/0,od=0,sd=1/0,cd=0,ld=0,ud=0,dd=void 0,fd={news:!1,events:!1};function pd(e,t=()=>!0){return Array.from(Nu(e)).filter(({widget:e})=>t(e)).length}var md={setDirty(){let e=Uu();e&&e.setDirtyFlag(`PAGE_DIRTY`),this.pageDirty=!0},async savePage(e){var t=this;try{e=await Au(`savePage`,{page:e})}catch(e){var n,r;if(((n=e.data)==null?void 0:n.error)===`D4ValidationError`&&((r=e.data)==null||(r=r.reason)==null||(r=r[0])==null?void 0:r.code)===`CHECK_WIDGET_SETTINGS`){var i;alert(Gu(`page_save_error`,`CHECK_WIDGET_SETTINGS`)),t.START_EDITING_WIDGET(e.data.reason[0].widgetId),await new Promise(e=>setTimeout(e,1)),(i=document.getElementById(`wc-`+e.data.reason[0].widgetId))==null||i.scrollIntoView({behavior:`smooth`});return}else throw e}t.page.zones={},await new Promise(e=>setTimeout(e,1)),t.page.zones=e.zones,t.UNSET_DIRTY()},async initProductRestrictions(){dd||(dd=await Au(`getRestrictionMetrics`,{}),dd&&(ad=dd.widgets.max,od=dd.widgets.current-ld,sd=dd.rescalWidgets.max,cd=dd.rescalWidgets.current-ud,fd.news=dd.newsItems.current>=dd.newsItems.max,fd.events=dd.eventsItems.current>=dd.eventsItems.max))},async canAddWidget(e){var t=this;return await t.initProductRestrictions(),t.page.metadata.pageType!==`XItem`&&od+pd(t.page.zones)>=ad?(alert(Gu(`free_limit_widgets`,{max:ad})),!1):e===`rescal`&&cd+pd(t.page.zones,e=>e.type===`rescal`)>=sd?(alert(Gu(`max_rescal_widgets_reached`,{_n:sd})),!1):!0},async canAddXItem(e){return e?(await this.initProductRestrictions(),fd[e]?(alert(Gu(`free_limit_xitems`,e)),!1):!0):!1},async addWidget({widgetData:e,dst:t,makeDirty:n,isMove:r}){var i=this;if(!r&&!await i.canAddWidget(e.type))return;if(Yu[e.type].onePerPage&&Fu(i.page.zones,t=>t.type===e.type)){alert(Gu(`cant_add_another_of_type`,e.type));return}if(Yu[e.type].isXWidget&&!r){if(i.page.id!==1&&!i.page.immediateAttrs.area){alert(Gu(`cant_add_widget_here`,e.type));return}if(Ku(`PAGE_DIRTY`)){qu();return}}let a=Qu(e.type);if(a)return e=X(X({},a),{},{id:Bu()},e),i.ADD_WIDGET({dst:t,widgetData:e,makeDirty:n}),await new Promise(e=>setTimeout(e,10)),i.START_EDITING_WIDGET(e.id),await new Promise(e=>setTimeout(e,1)),Uu().getEventBus().emit(`SCROLL_WIDGET`,e.id),e.id},START_EDITING_WIDGET(e){this.editingWidgetId=e},STOP_EDITING_WIDGET(){this.editingWidgetId=void 0},ENABLE_EDIT_MODE(){ld=pd(this.page.zones),ud=pd(this.page.zones,e=>e.type===`rescal`),this.editMode=!0},DISABLE_EDIT_MODE(){this.editMode=!1,this.editingWidgetId=void 0},DELETE_WIDGET(e){this.setDirty(),this.removeWidget(e.id),this.editingWidgetId=void 0,Ru(this.page.zones)},UPDATE_WIDGET(e){var t,n;this.setDirty();let r=Iu(this.page.zones,e.id).widgetOrGrid;(((t=e.visibilityScheduling)==null?void 0:t.changeTo)===`WIDGET_HIDDEN`&&e.hidden||((n=e.visibilityScheduling)==null?void 0:n.changeTo)===`WIDGET_VISIBLE`&&!e.hidden)&&(e.visibilityScheduling=void 0);for(let t of Object.keys(e))r[t]=e[t]},ADD_WIDGET({widgetData:e,dst:t,makeDirty:n=!1}){(Yu[e.type].initiallyDirty||n)&&this.setDirty(),this.doAddWidget(e,t),rd.updateGridLightbulbs()},UNSET_DIRTY(){window.top.AdminApi&&window.top.AdminApi.unsetDirtyFlag(`PAGE_DIRTY`),this.pageDirty=!1},CLONE_WIDGET(e){let t=Fu(this.page.zones,e),n,r;t.gridId?(n=this.page.zones[t.zoneId][t.idxInZone].cols[t.colIdx].widgets,r=t.idxInCol):(n=this.page.zones[t.zoneId],r=t.idxInZone);let i=JSON.parse(JSON.stringify(t.widget));i.id=Bu(),n.splice(r+1,0,i),this.page.zones[t.zoneId]=JSON.parse(JSON.stringify(this.page.zones[t.zoneId])),this.setDirty()},async MOVE_WIDGET(e){var t=this;let{widgetId:n}=e,r=fc(e,id),{widget:i}=t.removeWidget(n);await t.addWidget({widgetData:i,dst:r,isMove:!0}),t.setDirty(),rd.updateGridLightbulbs()},doAddWidget(e,{dstZoneId:t,dstGridId:n,beforeWidgetId:r,colIdx:i,asNewColIdx:a,gridifyWithWidgetId:o}){function s(t){r?t.splice(t.findIndex(e=>e.id===r),0,e):t.push(e)}if(n){let r=this.page.zones[t].find(e=>e.id===n);a===void 0?s(r.cols[i].widgets):r.cols.splice(a,0,{widgets:[e],width:30})}else if(o){let n=Fu(this.page.zones,o);this.page.zones[t][n.idxInZone]={type:`grid`,id:Bu(),cols:a?[{width:30,widgets:[n.widget]},{width:30,widgets:[e]}]:[{width:30,widgets:[e]},{width:30,widgets:[n.widget]}]}}else this.page.zones[t]||(this.page.zones[t]=[]),s(this.page.zones[t]);Ru(this.page.zones)},removeWidget(e){let t=Fu(this.page.zones,e),n=t.gridId?this.page.zones[t.zoneId][t.idxInZone].cols[t.colIdx].widgets:this.page.zones[t.zoneId];return n.splice(n.findIndex(t=>t.id===e),1),t}},hd={generateEventContent:[1e3,1554989,1558286,1571783,1573153,1573827,1575378,1575888,1578060,1578835,1579284,1579469,1579479,1579485,1579818,1580522,1581896,1584820,1585744,1586623,1586994,1587335,1588016,1588051,1589147,1590309,1592787,1593910,1594737,1594846,1595968,1596005,1596496,1596607,1597321,1597412,1597466,1598167,1598726,1599020,1601509,1601704,1601904,1602467,1603255,1603438,1604369,1605079,1605334,1605437,1606375,1606458,1606728,1607770,1607901,1608379,1609252,1609461,1609763,1610029,1610339,1610728,1610783,1610993,1611041,1611085,1613949]},gd=Xl(`website`,{state:()=>({page:{},styles:{layout:``,settings:{},files:{}},session:{},site:{},editMode:!1,pageDirty:!1}),getters:{pageType:e=>e.page.type||`page`,isPageEmpty:e=>Object.values(e.page.zones).every(e=>e.length===0),isEditModeActive:e=>!!e.editMode,isAtLeastPlusVersion(e){var t;return[`Plus`,`Premium`].includes((t=e.session)==null||(t=t.site)==null?void 0:t.productVersion)},canGenerateContent:e=>e.page.metadata.XKind===`events`?![...Pu(e.page.zones)].some(e=>e.widgetOrGrid.type===`text`):!1,canInsertGeneratedContent(e){return!!this.isAtLeastPlusVersion||hd.generateEventContent.includes(e.site.id)}},actions:md}),_d={fi:hl,sv:gl,en:_l};function vd(e,t,n){return yl(_d[document.documentElement.lang||`fi`],e,t,n)}function yd(){return document.documentElement.lang}function bd(){let e=yd();
128return{contentTag:(t,n,r)=>yl(_d[e],t,n,r),contentTagHtml:(t,n,r)=>bl(_d[e],t,n,r)}}var xd=e=>{let t=F(!1),n=null;return{isBouncing:t,bounce:async()=>{if(await jn(),typeof e!=`object`)return;let r=P(e)?e.value:e;r&&(n&&(clearTimeout(n),r.classList.remove(`bounce`),r.offsetWidth),t.value=!0,r.classList.add(`bounce`),n=setTimeout(()=>{r.classList.remove(`bounce`),t.value=!1,n=null},1e3))}}},Sd=z({__name:`D4Badge`,props:{text:{},size:{default:`medium`},color:{},float:{type:Boolean,default:!1}},setup(e,{expose:t}){let n=F(void 0),{isBouncing:r,bounce:i}=xd(n),a=e;return t({isBouncing:r,bounce:i}),(e,t)=>a.text?(H(),U(`span`,{key:0,ref_key:`el`,ref:n,class:j([`d4-badge`,`d4-badge--size-${a.size}`,a.color?`d4-badge--color-${a.color}`:void 0,a.float?`d4-badge--float`:void 0])},M(a.text),3)):J(``,!0)}}),Cd={class:`d4-button__content`},wd={key:0,class:`d4-button__spinnerWrap`},Td=[G(`div`,{class:`d4-button__spinner`},null,-1)],Ed=z({__name:`D4Button`,props:{type:{default:`button`},text:{},hideText:{type:Boolean,default:!1},textCenter:{type:Boolean,default:!0},context:{default:`admin`},size:{default:`normal`},spacing:{default:`normal`},color:{default:`green`},outlined:{type:Boolean,default:!1},rounded:{type:Boolean},width:{default:void 0},transparent:{type:Boolean,default:!1},translucent:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},href:{default:void 0},hidden:{type:Boolean,default:!1},icon:{default:void 0},iconPosition:{default:`left`},iconProps:{default:()=>({})},plusBadge:{type:Boolean,default:!1}},emits:[`click`,`mouseover`,`mouseleave`],setup(e,{emit:t}){let n=Ei(`groupSize`,F(void 0)),r=e,i=t,a=e=>{if(r.disabled===!0||r.loading===!0)return e.preventDefault(),!1;i(`click`,e)};return(e,t)=>(H(),W(nr(r.href?`a`:`button`),{type:r.href?void 0:r.type,href:r.href,class:j([`d4-button`,`d4-button--spacing-${r.spacing}`,`d4-button--color-${r.color}`,`d4-button--icon-${r.iconPosition}`,`d4-button--context-${r.context}`,r.outlined===!0?`d4-button--outlined`:void 0,r.rounded===!0?`d4-button--rounded`:void 0,r.context===`admin`?`d4-button--size-${I(n)||r.size}`:void 0,r.hideText===!0?`d4-button--icon-only`:void 0,r.textCenter===!0?`d4-button--text-center`:void 0,r.transparent===!0?`d4-button--transparent`:void 0,r.translucent===!0?`d4-button--translucent`:void 0,r.hidden===!0?`d4-button--hidden`:void 0,r.disabled===!0||r.loading===!0?`d4-button--disabled`:void 0,r.loading===!0?`d4-button--loading`:void 0,r.plusBadge===!0?`d4-button--with-plus-badge`:void 0]),style:ye({width:r.width||void 0}),tabindex:r.hidden===!0?-1:void 0,"aria-disabled":r.disabled===!0||r.loading===!0,onClick:ks(a,[`stop`]),onMouseover:t[0]||(t[0]=e=>i(`mouseover`,e)),onMouseleave:t[1]||(t[1]=e=>i(`mouseleave`,e))},{default:L(()=>[G(`div`,Cd,[r.icon?(H(),W(Gc,ka({key:0},r.iconProps,{class:`d4-button__icon`,name:r.icon}),null,16,[`name`])):J(``,!0),G(`span`,{class:j([`d4-button__text`,r.hideText===!0?`sr-only`:void 0])},M(e.text||`\xA0`),3)]),r.loading===!0?(H(),U(`div`,wd,Td)):J(``,!0),r.plusBadge?(H(),W(Sd,{key:1,text:`Plus`,class:`d4-button__plusBadge`,size:`small`,float:``})):J(``,!0)]),_:1},40,[`type`,`href`,`class`,`style`,`tabindex`,`aria-disabled`]))}}),Dd={class:`d4-attachment__content`},Od={key:0,class:`d4-attachment__text`},kd={class:`sr-only`},Ad={class:`d4-attachment__text d4-attachment__text--filename`},jd={class:`d4-attachment__input`,"aria-hidden":`true`},Md=[`id`,`disabled`],Nd=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4Attachment`,props:ai(ii({siteId:{},binServer:{},autofocus:{type:Boolean},validityErrors:{},validate:{type:Function},formatters:{},class:{},label:{},labelLeft:{type:Boolean},hideLabel:{type:Boolean},description:{},id:{},width:{},noSpacing:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},asterisk:{type:Boolean},error:{}},X(X({},tc),{},{validityErrors:()=>({})})),{modelValue:{default:void 0},modelModifiers:{}}),emits:ai([`focus`,`blur`,`keydown`,`click`],[`update:modelValue`]),setup(e,{expose:t,emit:n}){let r=e,i=n,a=$a(e,`modelValue`),{inputId:o,hasLabel:s,hasDescription:c,focusToInput:l,flash:u,hasError:d}=rc(Fa()),{contentTag:f}=bd(),p=F(void 0),m=()=>{var e;(e=p.value)==null||e.click()},h=()=>{var e;if(!((e=p.value)!=null&&e.files))return;let t=new FormData;if(t.append(`site`,String(r.siteId)),p.value.files[0].size>30*1024*1024){alert(f(`form_attachment_too_big`)),p.value.value=``;return}t.append(`file`,p.value.files[0]);let n=new XMLHttpRequest;n.open(`POST`,`${r.binServer}/upload`),n.onload=()=>{n.status===200?a.value=JSON.parse(n.responseText):(alert(`error uploading file`),a.value=``)},n.send(t),a.value=`UPLOADING`},g=()=>{a.value=``};return t({inputId:o,inputEl:p,focusToInput:l,flash:u,hasError:d}),(e,t)=>(H(),W(Hc,ka({ref:`base`},e.$props,{id:I(o),class:`d4-attachment`}),Yr({after:L(()=>[B(e.$slots,`default`)]),default:L(()=>[G(`div`,Dd,[a.value?(H(),U(V,{key:0},[a.value===`UPLOADING`?(H(),U(`span`,Od,M(I(f)(`form_uploading_file`)),1)):typeof a.value==`object`?(H(),U(V,{key:1},[G(`span`,kd,M(I(f)(`form_uploaded_file`))+`:`,1),G(`span`,Ad,M(a.value.fileName),1),K(Ed,{context:`website`,color:`secondary`,text:I(f)(`form_remove_file`),onClick:g},null,8,[`text`])],64)):J(``,!0)],64)):(H(),U(V,{key:1},[K(Ed,{context:`website`,color:`secondary`,text:I(f)(`form_choose_file`),onClick:m}
128,null,8,[`text`]),G(`div`,jd,[G(`input`,ka({ref_key:`inputEl`,ref:p,class:`d4-attachment__input`},e.$attrs,{id:I(o),type:`file`,tabindex:`-1`,disabled:e.disabled,onChange:h,onFocus:t[0]||(t[0]=e=>i(`focus`,e)),onBlur:t[1]||(t[1]=e=>i(`blur`,e)),onKeydown:t[2]||(t[2]=e=>i(`keydown`,e)),onClick:t[3]||(t[3]=e=>i(`click`,e))}),null,16,Md)])],64))])]),_:2},[I(s)===!0?{name:`label`,fn:L(()=>[B(e.$slots,`label`,{},()=>[q(M(r.label),1)])]),key:`0`}:void 0,I(c)===!0?{name:`description`,fn:L(()=>[B(e.$slots,`description`,{},()=>[q(M(r.description),1)])]),key:`1`}:void 0]),1040,[`id`]))}})),Pd=z({__name:`D4FormContent`,props:{indent:{type:Boolean,default:!1},width:{default:void 0},alignSelf:{default:void 0}},setup(e){let t=e,n=Ei(`formIsWide`,F(!1));return(e,r)=>e.$slots.default?(H(),U(`div`,{key:0,class:j([`d4-form-content`,t.indent===!0&&I(n)===!0?`d4-form-content--indent`:null]),style:ye({width:t.width,alignSelf:t.alignSelf})},[B(e.$slots,`default`)],6)):J(``,!0)}}),Fd=()=>{let e=!1,t=e=>(e.preventDefault(),`Are you sure?`);return{confirmEnabled:e,setConfirmLeave:()=>{e||(e=!0,window.addEventListener(`beforeunload`,t))},unsetConfirmLeave:()=>{e&&(e=!1,window.removeEventListener(`beforeunload`,t))}}},Id=[`6`,`kuusi`,`six`,`sex`],Ld=`d4asv value`,Rd=e=>!e||typeof e!=`string`?!1:Id.includes(e.trim().toLowerCase()),zd=l(o(((e,t)=>{var n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,i,a={"\b":`\\b`,"	":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,'"':`\\"`,"\\":`\\\\`},o;function s(e){return n.lastIndex=0,n.test(e)?`"`+e.replace(n,function(e){var t=a[e];return typeof t==`string`?t:`\\u`+(`0000`+e.charCodeAt(0).toString(16)).slice(-4)})+`"`:`"`+e+`"`}function c(e,t){var n,a,l,u,d=r,f,p=t[e];switch(p&&typeof p==`object`&&typeof p.toJSON==`function`&&(p=p.toJSON(e)),typeof o==`function`&&(p=o.call(t,e,p)),typeof p){case`string`:return s(p);case`number`:return isFinite(p)?String(p):`null`;case`boolean`:case`null`:return String(p);case`object`:if(!p)return`null`;if(r+=i,f=[],Object.prototype.toString.apply(p)===`[object Array]`){for(u=p.length,n=0;n<u;n+=1)f[n]=c(n,p)||`null`;return l=f.length===0?`[]`:r?`[
129`+r+f.join(`,
130`+r)+`
131`+d+`]`:`[`+f.join(`,`)+`]`,r=d,l}if(o&&typeof o==`object`)for(u=o.length,n=0;n<u;n+=1)typeof o[n]==`string`&&(a=o[n],l=c(a,p),l&&f.push(s(a)+(r?`: `:`:`)+l));else{var m=Object.keys(p).sort();for(n in m)a=m[n],Object.prototype.hasOwnProperty.call(p,a)&&(l=c(a,p),l&&f.push(s(a)+(r?`: `:`:`)+l))}return l=f.length===0?`{}`:r?`{
132`+r+f.join(`,
133`+r)+`
134`+d+`}`:`{`+f.join(`,`)+`}`,r=d,l}}t.exports=function(e,t,n){var a;
134if(r=``,i=``,typeof n==`number`)for(a=0;a<n;a+=1)i+=` `;else typeof n==`string`&&(i=n);if(o=t,t&&typeof t!=`function`&&(typeof t!=`object`||typeof t.length!=`number`))throw Error(`JSON.stringify`);return c(``,{"":e})}}))(),1),Bd=[`innerHTML`],Vd={class:`widget-form__asv`,"aria-hidden":`true`},Hd=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4GenericForm`,props:ai({binServer:{default:``},siteId:{default:0},pageIsPublic:{type:Boolean,default:!1},loggedIn:{type:Boolean,default:!1},widgetId:{default:``},fields:{default:[]},submitText:{default:``},showAntiSpamQuestion:{type:Boolean,default:!1},doSubmit:{type:Function,default:async()=>({})}},{modelValue:{default:()=>({})},modelModifiers:{}}),emits:ai([`aftersubmit`],[`update:modelValue`]),setup(e,{emit:t}){let{setConfirmLeave:n,unsetConfirmLeave:r}=Fd(),{contentTag:i}=bd(),a=F(null),o=F(!1),s=F([]),c=e,l=t,u=F(``),d=F(!c.loggedIn),f=F(!1),p=$a(e,`modelValue`);for(let e of c.fields.filter(e=>!p.value[e.id]))e.type===`checkbox`&&(p.value[e.id]={});p.value.d4asv2=`Enter your name`,zr(async()=>{f.value=!!document.getElementById(`d4-preview`),u.value=(0,zd.default)(p.value),await jn();for(let e of Array.from(document.querySelectorAll(`.widget-form__asv input`)))e.setAttribute(`tabIndex`,`-1`);await jn(),dr(()=>p.value,()=>{n()},{deep:!0})});let m=async e=>{if(e.preventDefault(),(0,zd.default)(p.value)===u.value){alert(i(`form_fill_the_form`));return}if(c.fields.some(e=>e.type===`attachment`&&p.value[e.id]===`UPLOADING`)){alert(i(`form_wait_for_upload_to_finish`));return}if(c.showAntiSpamQuestion&&c.pageIsPublic&&(d.value||f.value)&&!Rd(a.value)){alert(i(`form_check_spam_answer`));return}if(!o.value){o.value=!0,p.value.d4asv2=null,p.value.d4asv3=Ld,p.value.antiSpamAnswer=a.value;let e;try{e=await c.doSubmit(p.value)}catch(e){alert(i(`form_unknown_error`)),console.warn(`error`,e.response),o.value=!1;return}if(e.error){let t=i(`form_post_error`,e.error);e.error===`TEXT_MAX_LENGTH_EXCEEDED`&&(t+=`
135
136`+e.error_field),alert(t)}else if(e.validationErrors){alert(i(`form_check_required_fields`));let t=e.validationErrors.reduce((e,{id:t})=>(e.push(`form-field-${c.widgetId}-${t}`),e),[]),n=s.value.filter(e=>t.includes(e.inputId));for(let e of n)e.flash();let r=n[0];r&&r.$el&&r.$el.scrollIntoView({behavior:`smooth`,block:`center`})}else r(),e.goto?location.href=e.goto:l(`aftersubmit`,e);o.value=!1}},h=[{id:`d4asv1`,required:!1,type:`input`},{id:`d4asv2`,required:!1,type:`input`},{id:`d4asv3`,required:!1,type:`input`}];return(e,t)=>(H(),W(nl,{method:`post`,"no-spacing":``,"site-form":``,responsive:``,onSubmit:m},{default:L(()=>[B(e.$slots,`before-fields`),(H(!0),U(V,null,Jr(c.fields,t=>(H(),U(V,null,[t.type===`input`||t.type===`email`?(H(),W(Jc,{id:`form-field-${c.widgetId}-${t.id}`,ref_for:!0,ref_key:`fieldComponents`,ref:s,key:`input-${t.id}`,modelValue:p.value[t.id],"onUpdate:modelValue":e=>p.value[t.id]=e,label:t.label,required:t.required,type:t.type===`input`?void 0:t.type,"label-left":``,asterisk:``},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`label`,`required`,`type`])):t.type===`textarea`?(H(),W(tl,{id:`form-field-${c.widgetId}-${t.id}`,ref_for:!0,ref_key:`fieldComponents`,ref:s,key:`textarea-${t.id}`,modelValue:p.value[t.id],"onUpdate:modelValue":e=>p.value[t.id]=e,label:t.label,required:t.required,"label-left":``,asterisk:``},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`label`,`required`])):t.type===`radio`&&t.options&&t.options.length?(H(),W($s,{id:`form-field-${c.widgetId}-${t.id}`,ref_for:!0,ref_key:`fieldComponents`,ref:s,key:`radioSet-${t.id}`,label:t.label,required:t.required,"label-left":``,asterisk:``},{default:L(()=>[(H(!0),U(V,null,Jr(t.options,e=>(H(),W(al,{id:`form-field-${c.widgetId}-${t.id}-${e.id}`,key:e.id,modelValue:p.value[t.id],"onUpdate:modelValue":e=>p.value[t.id]=e,label:e.label,value:e.id},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`label`,`value`]))),128))]),_:2},1032,[`id`,`label`,`required`])):t.type===`checkbox`&&t.options&&t.options.length?(H(),W($s,{id:`form-field-${c.widgetId}-${t.id}`,ref_for:!0,ref_key:`fieldComponents`,ref:s,key:`checkboxSet-${t.id}`,label:t.label,required:t.required&&t.options.length>1,"label-left":``,asterisk:``},{default:L(()=>[(H(!0),U(V,null,Jr(t.options,e=>(H(),W(ll,{id:`form-field-${c.widgetId}-${t.id}-${e.id}`,required:t.required&&t.options.length===1,asterisk:``,key:e.id,modelValue:p.value[t.id][e.id],"onUpdate:modelValue":n=>p.value[t.id][e.id]=n,label:e.label},null,8,[`id`,`required`,`modelValue`,`onUpdate:modelValue`,`label`]))),128))]),_:2},1032,[`id`,`label`,`required`])):t.type===`select`&&t.options&&t.options.length?(H(),W(ml,{id:`form-field-${c.widgetId}-${t.id}`,ref_for:!0,ref_key:`fieldComponents`,ref:s,key:`select-${t.id}`,modelValue:p.value[t.id],"onUpdate:modelValue":e=>p.value[t.id]=e,label:t.label,required:t.required,options:[{id:null,label:I(i)(`form_choose`)},...t.options],"label-left":``,asterisk:``},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`label`,`required`,`options`])):t.type===`attachment`?(H(),W(Nd,{id:`form-field-${c.widgetId}-${t.id}`,ref_for:!0,ref_key:`fieldComponents`,ref:s,key:`attachment-${t.id}`,modelValue:p.value[t.id],"onUpdate:modelValue":e=>p.value[t.id]=e,label:t.label,required:t.required,"bin-server":e.binServer,"site-id":e.siteId,"label-left":``,asterisk:``},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`label`,`required`,`bin-server`,`site-id`])):t.type===`descr`&&t.htmlContent?(H(),W(Pd,{key:`content-${t.id}`},{default:L(()=>[G(`div`,{innerHTML:t.htmlContent},null,8,Bd)]),_:2},1024)):J(``,!0)],64))),256)),G(`div`,Vd,[(H(),U(V,null,Jr(h,e=>K(Jc,{id:`form-field-${c.widgetId}-${e.id}`,key:e.id,label:e.id,modelValue:p.value[e.id],"onUpdate:modelValue":t=>p.value[e.id]=t},null,8,[`id`,`label`,`modelValue`,`onUpdate:modelValue`])),64))]),c.showAntiSpamQuestion&&c.pageIsPublic&&(d.value||f.value)?(H(),U(V,{key:0},[K(Pd,null,{default:L(()=>[G(`blockquote`,null,M(I(i)(`form_please_enter_spam_answer`)),1)]),_:1}),K(Jc,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),id:`form-field-${c.widgetId}-asv`,"label-left":``},{label:L(()=>[G(`strong`,null,M(I(i)(`form_spam_number_4`)),1),q(`\xA0+\xA0`),G(`strong`,null,M(I(i)(`form_spam_number_2`)),1),q(`\xA0= `)]),_:1},8,[`modelValue`,`id`])],64)):J(``,!0),c.fields.length?(H(),W(Pd,{key:1,indent:``},{default:L(()=>[K(Ed,{context:`website`,color:`primary`,type:`submit`,disabled:o.value,text:c.submitText},null,8,[`disabled`,`text`])]),_:1})):J(``,!0)]),_:3}))}})),Ud={props:{widget:{type:[Object],required:!0,default(){return{}}}}},Wd=[`id`];function Gd(e,t,n,r,i,a){return H(),U(`div`,{id:`widget-${n.widget.id}`,class:j([`widget`,`widget-${n.widget.type}`,n.widget.hidden===!0?`widget--hidden`:null])},[B(e.$slots,`default`)],10,Wd)}var Kd=Ws(Ud,[[`render`,Gd]]),qd={class:`d4-notification__content`,"data-nosnippet"
136:``},Jd=z({__name:`D4Notification`,props:{type:{default:`info`},animated:{type:Boolean,default:!1},scrollIntoView:{type:Boolean,default:!1},icon:{default:void 0},showIcon:{type:Boolean,default:!1}},setup(e,{expose:t}){let n=e,r=F(null),i=F(!1),a=Y(()=>{if(n.icon)return n.icon;if(n.showIcon!==!1)return{info:`info-solid`,success:`check-solid`,warning:`triangle-exclamation`,error:`ban`}[n.type]||void 0});return zr(()=>{if(n.scrollIntoView&&r.value){let e=r.value.getBoundingClientRect();e.top>=0&&e.bottom<=window.innerHeight||r.value.scrollIntoView({behavior:`smooth`,block:`center`})}}),t({shake:()=>{var e;(e=r.value)==null||e.addEventListener(`animationend`,()=>{i.value=!1}),i.value=!0}}),(e,t)=>e.$slots.default?(H(),U(`p`,{key:0,ref_key:`notification`,ref:r,class:j([`d4-notification`,`d4-notification--`+e.type,a.value?`d4-notification--has-icon`:null,e.animated===!0?`d4-notification--animated`:null,i.value===!0?`d4-notification--shake`:null])},[a.value?(H(),W(Gc,{key:0,name:a.value,class:`d4-notification__icon`,size:`1em`},null,8,[`name`])):J(``,!0),G(`span`,qd,[B(e.$slots,`default`)])],2)):J(``,!0)}}),Yd={class:`noindex`},Xd={key:0},Zd=[`innerHTML`],Qd=[`textContent`],$d=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4WidgetForm`,props:ii({answerLimitOnAndExceeded:{type:Boolean},pageIsPublic:{type:Boolean},loggedIn:{type:Boolean},binServer:{},siteId:{},widget:{}},X(X({},Hs),{},{answerLimitOnAndExceeded:!1,pageIsPublic:!1,loggedIn:!1,binServer:``,siteId:void 0})),setup(e){let t=F(!1),n=F(``),r=F({}),i=async e=>await new Promise((t,n)=>{let r=new XMLHttpRequest;r.open(`POST`,`/@form/post`),r.setRequestHeader(`Content-Type`,`application/json;charset=UTF-8`),r.send(JSON.stringify({widgetId:o.widget.id,data:e})),r.onload=function(){try{t(JSON.parse(r.response))}catch(e){console.warn(`Form submission failed`,e),n()}},r.onerror=function(){console.warn(`Form submission failed`,r.statusText),n()}}),a=e=>{t.value=!0,n.value=e.thankYouMessageHtml},o=e,{contentTag:s}=bd();return(e,c)=>(H(),W(Kd,{widget:o.widget},{default:L(()=>[G(`div`,null,[G(`noscript`,Yd,M(I(s)(`form_submission_needs_js`)),1),t.value?(H(),U(`div`,Xd,[K(Jd,{type:`success`,animated:``,"scroll-into-view":``},{default:L(()=>[G(`span`,{innerHTML:n.value},null,8,Zd)]),_:1})])):(H(),U(V,{key:1},[o.answerLimitOnAndExceeded?(H(),U(`blockquote`,{key:0,textContent:M(o.widget.settings.answerLimit.text)},null,8,Qd)):J(``,!0),!o.answerLimitOnAndExceeded||o.widget.settings.answerLimit.mode===`Soft`?(H(),W(Hd,{key:1,"page-is-public":o.pageIsPublic,"logged-in":o.loggedIn,"widget-id":o.widget.id,"show-anti-spam-question":o.widget.settings.showAntiSpamQuestion,"bin-server":o.binServer,"site-id":o.siteId,"submit-text":o.widget.settings.submitText,fields:o.widget.fields,"do-submit":i,onAftersubmit:a,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=e=>r.value=e)},null,8,[`page-is-public`,`logged-in`,`widget-id`,`show-anti-spam-question`,`bin-server`,`site-id`,`submit-text`,`fields`,`modelValue`])):J(``,!0)],64))])]),_:1},8,[`widget`]))}}));async function ef(e,t={}){let n=JSON.stringify({method:e,params:t}),r=await fetch(`/@rpc?`+e,{method:`post`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:n,credentials:`include`}),i=await r.json();if(r.status!==200)if(i.error===`D4SessionError`)document.cookie=`SID=; path=/`,top.location.href=`/@login?GOTO=`+encodeURIComponent(top.location.pathname+top.location.search)+(i.reason?`&Error=`+encodeURIComponent(i.reason):``);else{console.warn(`d4rpc-client: error`,r);let e=Error();throw e.data=i,e}return i.result}function tf(e){let{contentTag:t}=bd();return[new Date(e).toLocaleDateString(t(`locale`)),t(`date_clock_separator`),new Date(e).toLocaleTimeString(t(`locale`)).replace(/[:.]\d\d(?!\S)/,``)].join(` `)}var nf={class:`v-button-group__wrap`},rf={class:`v-button-group__content`},af=z({__name:`D4ButtonGroup`,props:{combined:{type:Boolean,default:!1},noSpacing:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},size:{default:`normal`},direction:{default:`horizontal`},align:{default:`start`},hidden:{type:Boolean}},emits:[`mouseover`,`mouseleave`],setup(e,{emit:t}){let n=e,r=t;return Ti(`groupSize`,gn(n.size)),(e,t)=>e.$slots.default?(H(),U(`div`,{key:0,class:j([`v-button-group`,`v-button-group--size-${n.size}`,`v-button-group--direction-${n.direction}`,`v-button-group--align-${n.align}`,n.combined===!0?`v-button-group--combined`:null,n.noSpacing===!0?`v-button-group--noSpacing`:null,n.noWrap===!0?`v-button-group--noWrap`:null,n.hidden===!0?`v-button-group--hidden`:null]),onMouseover:t[0]||(t[0]=e=>r(`mouseover`,e)),onMouseleave:t[1]||(t[1]=e=>r(`mouseleave`,e))},[G(`div`,nf,[G(`div`,rf,[B(e.$slots,`default`)])])],34)):J(``,!0)}}),of=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
136ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,sf=`ελ1υ2бг1ел3дети4ею2католик6ом3мÐ
136ºÐ´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`,cf=(e,t)=>{for(let n in t)e[n]=t[n];return e},lf=`numeric`,uf=`ascii`,df=`alpha`,ff=`asciinumeric`,pf=`alphanumeric`,mf=`domain`,hf=`emoji`,gf=`scheme`,_f=`slashscheme`,vf=`whitespace`;function yf(e,t){return e in t||(t[e]=[]),t[e]}function bf(e,t,n){t[lf]&&(t[ff]=!0,t[pf]=!0),t[uf]&&(t[ff]=!0,t[df]=!0),t[ff]&&(t[pf]=!0),t[df]&&(t[pf]=!0),t[pf]&&(t[mf]=!0),t[hf]&&(t[mf]=!0);for(let r in t){let t=yf(r,n);t.indexOf(e)<0&&t.push(e)}}function xf(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function Sf(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Sf.groups={},Sf.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||Sf.groups;let i;return t&&t.j?i=t:(i=new Sf(t),n&&r&&bf(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r=r||Sf.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new Sf,cf(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new Sf,a&&(r&&(o.t&&typeof o.t==`string`?bf(a,cf(xf(o.t,r),n),r):n&&bf(a,n,r)),o.t=a),i.j[e]=o,o}};var Z=(e,t,n,r,i)=>e.ta(t,n,r,i),Cf=(e,t,n,r,i)=>e.tr(t,n,r,i),wf=(e,t,n,r,i)=>e.ts(t,n,r,i),Q=(e,t,n,r,i)=>e.tt(t,n,r,i),Tf=`WORD`,Ef=`UWORD`,Df=`ASCIINUMERICAL`,Of=`ALPHANUMERICAL`,kf=`LOCALHOST`,Af=`TLD`,jf=`UTLD`,Mf=`SCHEME`,Nf=`SLASH_SCHEME`,Pf=`NUM`,Ff=`WS`,If=`NL`,Lf=`OPENBRACE`,Rf=`CLOSEBRACE`,zf=`OPENBRACKET`,Bf=`CLOSEBRACKET`,Vf=`OPENPAREN`,Hf=`CLOSEPAREN`,Uf=`OPENANGLEBRACKET`,Wf=`CLOSEANGLEBRACKET`,Gf=`FULLWIDTHLEFTPAREN`,Kf=`FULLWIDTHRIGHTPAREN`,qf=`LEFTCORNERBRACKET`,Jf=`RIGHTCORNERBRACKET`,Yf=`LEFTWHITECORNERBRACKET`,Xf=`RIGHTWHITECORNERBRACKET`,Zf=`FULLWIDTHLESSTHAN`,Qf=`FULLWIDTHGREATERTHAN`,$f=`AMPERSAND`,ep=`APOSTROPHE`,tp=`ASTERISK`,np=`AT`,rp=`BACKSLASH`,ip=`BACKTICK`,ap=`CARET`,op=`COLON`,sp=`COMMA`,cp=`DOLLAR`,lp=`DOT`,up=`EQUALS`,dp=`EXCLAMATION`,fp=`HYPHEN`,pp=`PERCENT`,mp=`PIPE`,hp=`PLUS`,gp=`POUND`,_p=`QUERY`,vp=`QUOTE`,yp=`FULLWIDTHMIDDLEDOT`,bp=`SEMI`,xp=`SLASH`,Sp=`TILDE`,Cp=`UNDERSCORE`,wp=`EMOJI`,Tp=`SYM`,Ep=Object.freeze({__proto__:null,WORD:Tf,UWORD:Ef,ASCIINUMERICAL:Df,ALPHANUMERICAL:Of,LOCALHOST:kf,TLD:Af,UTLD:jf,SCHEME:Mf,SLASH_SCHEME:Nf,NUM:Pf,WS:Ff,NL:If,OPENBRACE:Lf,CLOSEBRACE:Rf,OPENBRACKET:zf,CLOSEBRACKET:Bf,OPENPAREN:Vf,CLOSEPAREN:Hf,OPENANGLEBRACKET:Uf,CLOSEANGLEBRACKET:Wf,FULLWIDTHLEFTPAREN:Gf,FULLWIDTHRIGHTPAREN:Kf,LEFTCORNERBRACKET:qf,RIGHTCORNERBRACKET:Jf,LEFTWHITECORNERBRACKET:Yf,RIGHTWHITECORNERBRACKET:Xf,FULLWIDTHLESSTHAN:Zf,FULLWIDTHGREATERTHAN:Qf,AMPERSAND:$f,APOSTROPHE:ep,ASTERISK:tp,AT:np,BACKSLASH:rp,BACKTICK:ip,CARET:ap,COLON:op,COMMA:sp,DOLLAR:cp,DOT:lp,EQUALS:up,EXCLAMATION:dp,HYPHEN:fp,PERCENT:pp,PIPE:mp,PLUS:hp,POUND:gp,QUERY:_p,QUOTE:vp,FULLWIDTHMIDDLEDOT:yp,SEMI:bp,SLASH:xp,TILDE:Sp,UNDERSCORE:Cp,EMOJI:wp,SYM:Tp}),Dp=/[a-z]/,Op=RegExp(`\\p{L}`,`u`),kp=RegExp(`\\p{Emoji}`,`u`),Ap=/\d/,jp=/\s/,Mp=`\r`,Np=`
137`,Pp=`️`,Fp=`‍`,Ip=``,Lp=null,Rp=null;function zp(e=[]){let t={};Sf.groups=t;let n=new Sf;Lp==null&&(Lp=Up(of)),Rp==null&&(Rp=Up(sf)),Q(n,`'`,ep),Q(n,`{`,
vendor: 4,685 bytes, line 137
137Lf),Q(n,`}`,Rf),Q(n,`[`,zf),Q(n,`]`,Bf),Q(n,`(`,Vf),Q(n,`)`,Hf),Q(n,`<`,Uf),Q(n,`>`,Wf),Q(n,`(`,Gf),Q(n,`)`,Kf),Q(n,`「`,qf),Q(n,`」`,Jf),Q(n,`『`,Yf),Q(n,`』`,Xf),Q(n,`<`,Zf),Q(n,`>`,Qf),Q(n,`&`,$f),Q(n,`*`,tp),Q(n,`@`,np),Q(n,"`",ip),Q(n,`^`,ap),Q(n,`:`,op),Q(n,`,`,sp),Q(n,`$`,cp),Q(n,`.`,lp),Q(n,`=`,up),Q(n,`!`,dp),Q(n,`-`,fp),Q(n,`%`,pp),Q(n,`|`,mp),Q(n,`+`,hp),Q(n,`#`,gp),Q(n,`?`,_p),Q(n,`"`,vp),Q(n,`/`,xp),Q(n,`;`,bp),Q(n,`~`,Sp),Q(n,`_`,Cp),Q(n,`\\`,rp),Q(n,`・`,yp);let r=Cf(n,Ap,Pf,{[lf]:!0});Cf(r,Ap,r);let i=Cf(r,Dp,Df,{[ff]:!0}),a=Cf(r,Op,Of,{[pf]:!0}),o=Cf(n,Dp,Tf,{[uf]:!0});Cf(o,Ap,i),Cf(o,Dp,o),Cf(i,Ap,i),Cf(i,Dp,i);let s=Cf(n,Op,Ef,{[df]:!0});Cf(s,Dp),Cf(s,Ap,a),Cf(s,Op,s),Cf(a,Ap,a),Cf(a,Dp),Cf(a,Op,a);let c=Q(n,Np,If,{[vf]:!0}),l=Q(n,Mp,Ff,{[vf]:!0}),u=Cf(n,jp,Ff,{[vf]:!0});Q(n,Ip,u),Q(l,Np,c),Q(l,Ip,u),Cf(l,jp,u),Q(u,Mp),Q(u,Np),Cf(u,jp,u),Q(u,Ip,u);let d=Cf(n,kp,wp,{[hf]:!0});Q(d,`#`),Cf(d,kp,d),Q(d,Pp,d);let f=Q(d,Fp);Q(f,`#`),Cf(f,kp,d);let p=[[Dp,o],[Ap,i]],m=[[Dp,null],[Op,s],[Ap,a]];for(let e=0;e<Lp.length;e++)Hp(n,Lp[e],Af,Tf,p);for(let e=0;e<Rp.length;e++)Hp(n,Rp[e],jf,Ef,m);bf(Af,{tld:!0,ascii:!0},t),bf(jf,{utld:!0,alpha:!0},t),Hp(n,`file`,Mf,Tf,p),Hp(n,`mailto`,Mf,Tf,p),Hp(n,`http`,Nf,Tf,p),Hp(n,`https`,Nf,Tf,p),Hp(n,`ftp`,Nf,Tf,p),Hp(n,`ftps`,Nf,Tf,p),bf(Mf,{scheme:!0,ascii:!0},t),bf(Nf,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[gf]:!0}:{[_f]:!0};r.indexOf(`-`)>=0?i[mf]=!0:Dp.test(r)?Ap.test(r)?i[ff]=!0:i[uf]=!0:i[lf]=!0,wf(n,r,r,i)}return wf(n,`localhost`,kf,{ascii:!0}),n.jd=new Sf(Tp),{start:n,tokens:cf({groups:t},Ep)}}function Bp(e,t){let n=Vp(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function Vp(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function Hp(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new Sf(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new Sf(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function Up(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var Wp={defaultProtocol:`http`,events:null,format:Kp,formatHref:Kp,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Gp(e,t=null){let n=cf({},Wp);e&&(n=cf(n,e instanceof Gp?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}Gp.prototype={o:Wp,ignoreTags:[],defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:Wp[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function Kp(e){return e}function qp(e,t){this.t=`token`,this.v=e,this.tk=t}qp.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let 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=Wp.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){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&cf(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};
137function Jp(e,t){class n extends qp{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var Yp=Jp(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),Xp=Jp(`text`),Zp=Jp(`nl`),Qp=Jp(`url`,{isLink:!0,toHref(e=Wp.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==kf&&e[1].t===op}}),$p=e=>new Sf(e);function em({groups:e}){let t=e.domain.concat([$f,tp,np,rp,ip,ap,cp,up,fp,Pf,pp,mp,hp,gp,xp,Tp,Sp,Cp]),n=[op,sp,lp,dp,pp,_p,vp,bp,Uf,Wf,Lf,Rf,Bf,zf,Vf,Hf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf],r=[$f,ep,tp,rp,ip,ap,cp,up,fp,Lf,Rf,pp,mp,hp,gp,_p,xp,Tp,Sp,Cp],i=$p(),a=Q(i,Sp);Z(a,r,a),Z(a,e.domain,a);let o=$p(),s=$p(),c=$p();Z(i,e.domain,o),Z(i,e.scheme,s),Z(i,e.slashscheme,c),Z(o,r,a),Z(o,e.domain,o);let l=Q(o,np);Q(a,np,l),Q(s,np,l),Q(c,np,l);let u=Q(a,lp);Z(u,r,a),Z(u,e.domain,a);let d=$p();Z(l,e.domain,d),Z(d,e.domain,d);let f=Q(d,lp);Z(f,e.domain,d);let p=$p(Yp);Z(f,e.tld,p),Z(f,e.utld,p),Q(l,kf,p);let m=Q(d,fp);Q(m,fp,m),Z(m,e.domain,d),Z(p,e.domain,d),Q(p,lp,f),Q(p,fp,m),Z(Q(p,op),e.numeric,Yp);let h=Q(o,fp),g=Q(o,lp);Q(h,fp,h),Z(h,e.domain,o),Z(g,r,a),Z(g,e.domain,o);let _=$p(Qp);Z(g,e.tld,_),Z(g,e.utld,_),Z(_,e.domain,o),Z(_,r,a),Q(_,lp,g),Q(_,fp,h),Q(_,np,l);let v=Q(_,op),y=$p(Qp);Z(v,e.numeric,y);let b=$p(Qp),x=$p();Z(b,t,b),Z(b,n,x),Z(x,t,b),Z(x,n,x),Q(_,xp,b),Q(y,xp,b);let S=Q(s,op),C=Q(Q(Q(c,op),xp),xp);Z(s,e.domain,o),Q(s,lp,g),Q(s,fp,h),Z(c,e.domain,o),Q(c,lp,g),Q(c,fp,h),Z(S,e.domain,b),Q(S,xp,b),Q(S,_p,b),Z(C,e.domain,b),Z(C,t,b),Q(C,xp,b);let w=[[Lf,Rf],[zf,Bf],[Vf,Hf],[Uf,Wf],[Gf,Kf],[qf,Jf],[Yf,Xf],[Zf,Qf]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=Q(b,r);Q(x,r,a),Q(a,i,b);let o=$p(Qp);Z(a,t,o);let s=$p();Z(a,n),Z(o,t,o),Z(o,n,s),Z(s,t,o),Z(s,n,s),Q(o,i,b),Q(s,i,b)}return Q(i,kf,_),Q(i,If,Zp),{start:i,tokens:Ep}}function tm(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i<r;){let s=e,c=null,l=null,u=0,d=null,f=-1;for(;i<r&&!(c=s.go(n[i].t));)o.push(n[i++]);for(;i<r&&(l=c||s.go(n[i].t));)c=null,s=l,s.accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(nm(Xp,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(nm(e,t,r))}}return o.length>0&&a.push(nm(Xp,t,o)),a}function nm(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var rm={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function im(){rm.scanner=zp(rm.customSchemes);for(let e=0;e<rm.tokenQueue.length;e++)rm.tokenQueue[e][1]({scanner:rm.scanner});rm.parser=em(rm.scanner.tokens);for(let e=0;e<rm.pluginQueue.length;e++)rm.pluginQueue[e][1]({scanner:rm.scanner,parser:rm.parser});return rm.initialized=!0,rm}function am(e){return rm.initialized||im(),tm(rm.parser.start,e,Bp(rm.scanner.start,e))}am.scan=Bp;function om(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function sm(e){return e.replace(/"/g,`&quot;`)}function cm(e){let t=[];for(let n in e){let r=e[n]+``;t.push(`${n}="${sm(r)}"`)}return t.join(` `)}function lm(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${cm(n)}>${om(r)}</${t}>`}function um(e,t){t===void 0&&(t={}),t=new Gp(t,lm);let n=am(e),r=[];for(let e=0;e<n.length;e++){let i=n[e];i.t===`nl`&&t.get(`nl2br`)?r.push(`<br>
138`):!i.isLink||!t.check(i)?r.push(om(i.toString())):r.push(t.render(i))}return r.join(``)}String.prototype.linkify||Object.defineProperty(String.prototype,`linkify`,{writable:!1,value:function(e){return um(this,e)}});function dm(e){if(e!==void 0)return um(e,{target:(e,t)=>t===`url`?`_blank`:``})}var fm={inheritAttrs:!1,props:[`post`,`threadId`,`widgetId`,`hasModerationGrants`],components:{D4ButtonGroup:af,D4Button:Ed},data(){return X({linkify:dm,formatLocalDatetime:tf,isSiteAdmin:!1},bd())},methods:{async setPostStatus(e){var t=this;await ef(`setForumPostVisibility`,{widgetId:t.widgetId,postId:t.post.id,status:e}),t.post.status=e},async setThreadLockStatus(e){var t=this;await ef(`setForumThreadLocked`,{widgetId:t.widgetId,threadId:t.threadId,locked:e}),t.post.isThreadLocked=e},editPost(){location.href=`#forum/${this.widgetId}/${this.threadId}/${this.post.id}/edit`}}},pm={class:`forum-post__footer`},mm={class:`forum-post__details`},hm={class:`forum-post__author`},gm={class:`forum-post__timestamp`},_m={key:0,class:`forum-post__moderated`},vm={class:`forum-post__controls`},ym=[`innerHTML`];function bm(e,t,n,r,i,a){let o=R(`D4Button`),s=R(`D4ButtonGroup`);return H(),U(`li`,{class:j([`forum-post`,{"forum-post--blocked":n.post.status===`deleted`},{"forum-post--unapproved":n.post.status===`unapproved`}
138])},[G(`div`,pm,[G(`div`,mm,[B(e.$slots,`details`),e.$slots.details?J(``,!0):(H(),U(V,{key:0},[G(`span`,hm,M(n.post.author)+`\xA0`,1),G(`span`,gm,M(i.formatLocalDatetime(n.post.submitTimestamp)),1),n.post.latestModeratorEditTimestamp?(H(),U(`span`,_m,` (`+M(e.contentTag(`forum_msg_has_been_moderated`))+`) `,1)):J(``,!0)],64))]),G(`div`,vm,[n.hasModerationGrants?(H(),W(s,{key:0,size:`x-small`},{default:L(()=>[n.post.status===`deleted`?J(``,!0):(H(),W(o,{key:0,text:e.contentTag(`forum_moderate_post`,`edit`),onClick:a.editPost},null,8,[`text`,`onClick`])),n.post.isFirstPost&&n.post.status===`public`?(H(),U(V,{key:1},[n.post.isThreadLocked?(H(),W(o,{key:0,text:e.contentTag(`forum_unlock_thread`),onClick:t[0]||(t[0]=e=>a.setThreadLockStatus(0))},null,8,[`text`])):(H(),W(o,{key:1,color:`red`,text:e.contentTag(`forum_lock_thread`),onClick:t[1]||(t[1]=e=>a.setThreadLockStatus(1))},null,8,[`text`]))],64)):J(``,!0),n.post.status===`unapproved`?(H(),W(o,{key:2,text:e.contentTag(`forum_moderate_post`,`approve`),onClick:t[2]||(t[2]=e=>a.setPostStatus(`public`))},null,8,[`text`])):J(``,!0),(n.post.isFirstPost||n.post.status===`public`)&&n.post.status!==`deleted`?(H(),W(o,{key:3,color:`red`,text:n.post.isFirstPost?e.contentTag(`forum_delete_thread`):e.contentTag(`forum_moderate_post`,`block`),onClick:t[3]||(t[3]=e=>a.setPostStatus(`deleted`))},null,8,[`text`])):J(``,!0),n.post.status===`deleted`?(H(),W(o,{key:4,text:n.post.isFirstPost?e.contentTag(`forum_moderate_post`,`restore_thread`):e.contentTag(`forum_moderate_post`,`restore`),onClick:t[4]||(t[4]=e=>a.setPostStatus(`public`))},null,8,[`text`])):J(``,!0)]),_:1})):J(``,!0),B(e.$slots,`controls`)])]),G(`div`,{class:`forum-post__body`,innerHTML:i.linkify(n.post.body)},null,8,ym)],2)}var xm=Ws(fm,[[`render`,bm]]),Sm=z({__name:`D4Col`,props:{width:{default:void 0},fill:{type:Boolean,default:!1},noSpacing:{type:Boolean,default:!1},noSpacingX:{type:Boolean,default:!1},noSpacingY:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>e.$slots.default?(H(),U(`div`,{key:0,class:j([`v-col`,t.fill===!0?`v-col--fill`:null,t.width?`v-col--hasWidth`:null,t.noSpacing===!0?`v-col--noSpacing`:null,t.noSpacingX===!0?`v-col--noSpacingX`:null,t.noSpacingY===!0?`v-col--noSpacingY`:null]),style:ye({flexBasis:t.width})},[B(e.$slots,`default`)],6)):J(``,!0)}}),Cm={key:0,class:`v-row`},wm={components:{D4Button:Ed,D4Col:Sm,D4Row:z({__name:`D4Row`,props:{direction:{default:`horizontal`},wrap:{type:Boolean,default:!1},noSpacing:{type:Boolean,default:!1},noSpacingX:{type:Boolean,default:!1},noSpacingY:{type:Boolean,default:!1},alignItems:{default:`flex-start`},justifyContent:{default:`flex-start`}},setup(e){let t=e;return(e,n)=>e.$slots.default?(H(),U(`div`,Cm,[G(`div`,{class:j([`v-row__wrap`,`v-row__wrap--${t.direction}`,t.wrap===!0?`v-row__wrap--wrap`:`v-row__wrap--no-wrap`,t.noSpacing===!0?`v-row__wrap--noSpacing`:null,t.noSpacingX===!0?`v-row__wrap--noSpacingX`:null,t.noSpacingY===!0?`v-row__wrap--noSpacingY`:null]),style:ye({alignItems:t.alignItems,justifyContent:t.justifyContent})},[B(e.$slots,`default`)],6)])):J(``,!0)}}),D4Select:ml},props:[`leftUrl`,`rightUrl`,`paginationPages`,`paginationPageOptions`,`paginationType`],data:()=>X(X({},bd()),{},{ready:!1,currentPage:null}),methods:{selectPage(e){this.ready!==!1&&this.$emit(`selectPage`,e.target.value)}},mounted(){this.currentPage=this.paginationPages?this.paginationPages.currentPage:1,this.$nextTick(()=>{this.ready=!0})}};function Tm(e,t,n,r,i,a){let o=R(`D4Button`),s=R(`D4Col`),c=R(`D4Select`),l=R(`D4Row`);return H(),W(l,{class:`d4-pagination-controls`,"justify-content":`center`,"align-items":`center`,wrap:``},{default:L(()=>[K(s,null,{default:L(()=>[K(o,{id:`d4-pagination-left`,context:`website`,color:`primary`,href:n.leftUrl,disabled:!n.leftUrl,text:e.contentTag(`pagination_left`,n.paginationType),icon:`arrow-left`},null,8,[`href`,`disabled`,`text`])]),_:1}),K(s,null,{default:L(()=>[n.paginationPages?(H(),W(c,{key:0,id:`d4-pagination-select`,options:n.paginationPageOptions,modelValue:e.currentPage,"onUpdate:modelValue":t[0]||(t[0]=t=>e.currentPage=t),label:e.contentTag(`pagination_page_selection`),"hide-label":``,onInput:a.selectPage,"no-spacing":``},null,8,[`options`,`modelValue`,`label`,`onInput`])):J(``,!0)]),_:1}),K(s,null,{default:L(()=>[K(o,{id:`d4-pagination-right`,context:`website`,color:`primary`,href:n.r
138ightUrl,disabled:!n.rightUrl,text:e.contentTag(`pagination_right`,n.paginationType),icon:`arrow-right`,"icon-position":`right`},null,8,[`href`,`disabled`,`text`])]),_:1})]),_:1})}var Em=Ws(wm,[[`render`,Tm]]),Dm={components:{D4Icon:Gc},props:{centered:{type:Boolean,default:function(){return!1}},fill:{type:String,default:function(){return`#31364A`}},size:{type:String,default:function(){return`13px`}},overlay:{type:[Boolean],required:!1,default(){return!1}}}};function Om(e,t,n,r,i,a){let o=R(`D4Icon`);return H(),U(`div`,{class:j([`spinnerWrap`,[n.centered===!0?`spinnerWrap--centered`:null,n.overlay===!0?`spinnerWrap--overlay`:null]])},[K(o,{class:`spinner`,name:`spinner-new`,fill:n.fill,size:n.size},null,8,[`fill`,`size`])],2)}var km=Ws(Dm,[[`render`,Om]]),Am={inheritAttrs:!1,props:[`navTo`,`widgetId`,`hasModerationGrants`,`currentPage`,`settings`],components:{D4Button:Ed,D4ButtonGroup:af,D4Checkbox:ll,D4ForumPost:xm,D4PaginationControls:Em,D4Spinner:km},data(){return X(X({},bd()),{},{threads:null,formatLocalDatetime:tf,following:{enabled:!1},emailAddress:null,isCustomerSupport:null,numPages:1,pageReady:!1,unapprovedPosts:[],showPerlCmsWarning:!1,isHistoryPreview:!1})},computed:{leftUrl(){if(this.currentPage>1)return`#forum/${this.widgetId}?p=${this.currentPage-1}`},rightUrl(){if(this.currentPage<this.numPages)return`#forum/${this.widgetId}?p=${this.currentPage+1}`}},watch:{currentPage(){this.loadData()}},methods:{getThreadLink(e){return`#forum/${this.widgetId}/${e.threadId}`},getNewPostLink(){return`#forum/${this.widgetId}/new`},async changeFollowStatus(){var e=this;if(e.isCustomerSupport){alert(`Admin-kirjautunut ei voi seurata keskustelupalstoja.`),e.following.enabled=!1;return}await ef(`setForumFollow`,{widgetId:e.widgetId,follow:e.following.enabled}),alert(e.following.enabled?e.contentTag(`forum_following_on`,{email:e.emailAddress}):e.contentTag(`forum_following_off`))},async loadData(){var e=this;let t;try{t=await ef(`getForumThreads`,{widgetId:e.widgetId,pageNumber:e.currentPage})}catch(t){if(location.search.startsWith(`?preview=`)){e.isHistoryPreview=!0;return}}e.numPages=t.numPages,e.threads=t.threads,e.following.enabled=t.isFollowing,e.hasModerationGrants&&(t=await ef(`getUnapprovedPosts`,{widgetId:e.widgetId}),e.unapprovedPosts=t.posts),e.$refs.scroller instanceof HTMLElement&&e.$refs.scroller.getBoundingClientRect().top<0&&e.$refs.scroller.scrollIntoView()},async setPostStatus(e,t){var n=this;if(await ef(`setForumPostVisibility`,{widgetId:n.widgetId,postId:e,status:t}),t===`public`)await n.loadData();else for(let r of n.unapprovedPosts)e===r.id&&(r.status=t)}},async mounted(){var e=this;await e.loadData();let t=await ef(`getSessionStatus`);t.loggedIn&&(t=await ef(`getSessionInfo`),sc(t.username)&&(e.emailAddress=t.username,e.isCustomerSupport=t.isCustomerSupport),t.site.liveCmsVersion===`perl
138cms`&&(e.showPerlCmsWarning=!0)),e.pageReady=!0}},jm={class:`forum-threads`},Mm={ref:`scroller`,class:`forum-actionBar`},Nm={class:`forum-actionBar__left`},Pm={class:`forum-actionBar__right`},Fm={key:0,class:`forum-note`},Im={key:1,class:`forum-note forum-note-big`},Lm={key:2,class:`forum-postList`},Rm={class:`forum-post__author`},zm=[`innerHTML`],Bm=[`innerHTML`],Vm={class:`forum-post__timestamp`},Hm={key:3,class:`forum-threadList`},Um={class:`forum-threadList__subject`},Wm=[`href`],Gm={class:`forum-threadList__details`},Km={class:`forum-threadList__author`},qm={class:`forum-threadList__timestamp`},Jm={class:`forum-threadList__replyCount`},Ym={key:0,class:`forum-threadList__latestReply`},Xm={key:5};function Zm(e,t,n,r,i,a){let o=R(`D4Button`),s=R(`D4Checkbox`),c=R(`D4ButtonGroup`),l=R(`D4ForumPost`),u=R(`D4Spinner`),d=R(`D4PaginationControls`);return H(),U(`div`,jm,[G(`div`,Mm,[G(`div`,Nm,[K(o,{context:`website`,color:`primary`,text:e.contentTag(`forum_start_thread`),href:a.getNewPostLink()},null,8,[`text`,`href`])]),G(`div`,Pm,[i.emailAddress?(H(),W(s,{key:0,id:`follow-${n.widgetId}`,modelValue:i.following.enabled,"onUpdate:modelValue":t[0]||(t[0]=e=>i.following.enabled=e),value:!0,label:e.contentTag(`forum_follow_this_forum`),onChange:a.changeFollowStatus},null,8,[`id`,`modelValue`,`label`,`onChange`])):J(``,!0)])],512),i.showPerlCmsWarning?(H(),U(`div`,Fm,[G(`span`,null,M(e.contentTag(`forum_perlcms_email_info`)),1)])):J(``,!0),i.isHistoryPreview?(H(),U(`div`,Im,[G(`span`,null,M(e.contentTag(`forum_history_preview_info`)),1)])):J(``,!0),i.unapprovedPosts.length?(H(),U(`ul`,Lm,[G(`h2`,null,M(e.contentTag(`forum_posts_waiting_for_approval`,{count:i.unapprovedPosts.length})),1),(H(!0),U(V,null,Jr(i.unapprovedPosts,t=>(H(),W(l,{key:t.id,post:t,class:j([`forum-post`,{"forum-post--blocked":t.status===`deleted`},{"forum-post--unapproved":t.status===`unapproved`}])},{details:L(()=>[G(`span`,Rm,M(t.author),1),t.isFirstPost?(H(),U(`span`,{key:0,innerHTML:e.contentTag(`HTML_forum_unapproved_post`,`new`,{subject:t.subject})},null,8,zm)):(H(),U(`span`,{key:1,class:`forum-post__timestamp`,innerHTML:e.contentTag(`HTML_forum_unapproved_post`,`reply`,{subject:t.subject,threadLink:a.getThreadLink(t)})},null,8,Bm)),G(`span`,Vm,` (`+M(i.formatLocalDatetime(t.submitTimestamp))+`)`,1)]),controls:L(()=>[K(c,{size:`x-small`},{default:L(()=>[K(o,{text:e.contentTag(`forum_moderate_post`,`approve`),onClick:e=>a.setPostStatus(t.id,`public`)},null,8,[`text`,`onClick`]),t.status===`unapproved`?(H(),W(o,{key:0,color:`red`,text:e.contentTag(`forum_moderate_post`,`block`),onClick:e=>a.setPostStatus(t.id,`deleted`)},null,8,[`text`,`onClick`])):J(``,!0)]),_:2},1024)]),_:2},1032,[`post`,`class`]))),128))])):J(``,!0),i.threads?(H(),U(`ul`,Hm,[(H(!0),U(V,null,Jr(i.threads,t=>(H(),U(`li`,{key:t.threadId,class:`forum-threadList__item`},[G(`h4`,Um,[G(`a`,{href:a.getThreadLink(t)},M(t.subject||e.contentTag(`forum_no_subject`)),9,Wm)]),G(`div`,Gm,[G(`p`,null,[G(`span`,Km,M(t.firstAuthorName)+`\xA0`,1),G(`span`,qm,M(i.formatLocalDatetime(t.submitTimestamp)),1)]),G(`p`,null,[G(`span`,Jm,M(e.contentTag(`forum_reply_count`,{_n:t.threadReplyCount})),1),t.threadReplyCount?(H(),U(`span`,Ym,[q(` – `),t.threadReplyCount>1?(H(),U(V,{key:0},[q(M(e.contentTag(`forum_latest_reply`)),1)],64)):J(``,!0),q(` `+M(e.contentTag(`forum_one_reply`,{author:t.threadLatestReplyAuthorName,timestamp:i.formatLocalDatetime(t.threadLatestReplyTimestamp)})),1)])):J(``,!0)])]),J(``,!0)]))),128))])):i.isHistoryPreview?J(``,!0):(H(),W(u,{key:4,centered:!0,size:`20px`})),i.threads&&i.threads.length===0?(H(),U(`span`,Xm,M(e.contentTag(`forum_no_threads`)),1)):J(``,!0),K(d,{leftUrl:a.leftUrl,rightUrl:a.rightUrl,paginationType:`forum`},null,8,[`leftUrl`,`rightUrl`])])}var Qm=Ws(Am,[[`render`,Zm]]),$m={inheritAttrs:!1,props:[`threadId`,`widgetId`,`postId`,`hasModerationGrants`,`settings`,`pageIsPublic`],components:{D4Form:nl,D4FormContent:Pd,D4Input:Jc,D4Textarea:tl,D4Button:Ed},setup(){return{spamAnswer:F(null),previewMode:F(!1)}},computed:{showModerationNotice(){return this.settings.moderation&&!this.hasModerationGrants}},data(){let e=bd();return X(X({},e),{},{formLoaded:!1,formData:{nickname:void 0,subject:void 0,body:``},pageTitle:this.postId?e.contentTag(`forum_edit_post`):this.threadId?e.contentTag(`forum_reply_to_thread`):e.contentTag(`forum_start_thread`),publicUser:!1,fullname:``,sending:!1})},async mounted(){var e=this;let t=await ef(`getSessionStatus`);if(e.previewMode=!!document.getElementById(`d4-preview`),t.loggedIn){e.publicUser=!1;let t=await ef(`getSessionInfo`);e.fullname=t.fullname||t.username.replace(/@.*/,``)}else e.publicUser=!0;if(!e.publicUser&&e.postId){let t=(await ef(`getForumPostForEditing`,{widgetId:e.widgetId,postId:e.postId})).post;e.formData.subject=t.subject,e.formData.body=t.body}e.formLoaded=!0},methods:{async post(){var e=this;if((e.publicUser||e.previewMode&&e.pageIsPublic)&&!Rd(e.spamAnswer)){alert(e.contentTag(`form_check_spam_answer`));return}e.sending=!0;try{e.postId?await ef(`updateForumPost`,{widgetId:e.widgetId,postId:e.postId,subject:e.formData.subject,body:e.formData.body}):await ef(`createForumPost`,{threadId:e.threadId,widgetId:e.widgetId,nickname:e.formData.nickname,subject:e.formData.subject,body:e.formData.body,antiSpamAnswer:e.spamAnswer})}catch(t){alert(t.data&&t.data.reason?e.contentTag(`forum_error_message`,t.data.reason):e.contentTag(`forum_unknown_error`));return}
138finally{e.sending=!1}e.$emit(`notify`,{title:e.postId?e.contentTag(`forum_edit_saved`):e.contentTag(`forum_msg_sent`),text:e.showModerationNotice?e.contentTag(`forum_is_moderated`):null}),location.href=`#`}}},eh={class:`forum-actionBar`},th={class:`muted`};function nh(e,t,n,r,i,a){let o=R(`D4Button`),s=R(`D4Input`),c=R(`D4Textarea`),l=R(`D4FormContent`),u=R(`D4Form`);return H(),U(`div`,null,[G(`div`,eh,[n.threadId?n.postId?(H(),W(o,{key:1,context:`website`,color:`primary`,href:`#forum/${n.widgetId}/${n.threadId}`,icon:`arrow-left`,text:e.contentTag(`forum_back_to_thread`)},null,8,[`href`,`text`])):J(``,!0):(H(),W(o,{key:0,context:`website`,color:`primary`,href:`#`,icon:`arrow-left`,text:e.contentTag(`forum_back_to_threads`)},null,8,[`text`]))]),G(`h2`,null,M(i.pageTitle),1),gr(K(u,{ref:`forumForm`,action:``,onSubmit:ks(a.post,[`prevent`])},{default:L(()=>[i.publicUser?(H(),W(s,{key:0,modelValue:i.formData.nickname,"onUpdate:modelValue":t[0]||(t[0]=e=>i.formData.nickname=e),label:e.contentTag(`forum_nickname`),maxlength:30},null,8,[`modelValue`,`label`])):(H(),W(s,{key:1,modelValue:i.fullname,"onUpdate:modelValue":t[1]||(t[1]=e=>i.fullname=e),label:e.contentTag(`forum_realname`),disabled:``},null,8,[`modelValue`,`label`])),!n.threadId||n.postId?(H(),W(s,{key:2,modelValue:i.formData.subject,"onUpdate:modelValue":t[2]||(t[2]=e=>i.formData.subject=e),label:e.contentTag(`forum_subject`),maxlength:200,disabled:n.postId&&n.postId!==n.threadId},null,8,[`modelValue`,`label`,`disabled`])):J(``,!0),K(c,{modelValue:i.formData.body,"onUpdate:modelValue":t[3]||(t[3]=e=>i.formData.body=e),label:e.contentTag(`forum_body`),placeholder:e.contentTag(`forum_body_placeholder`),rows:`3`,autosize:``},null,8,[`modelValue`,`label`,`placeholder`]),i.publicUser||r.previewMode&&n.pageIsPublic?(H(),U(V,{key:3},[K(l,null,{default:L(()=>[G(`blockquote`,null,M(e.contentTag(`form_please_enter_spam_answer`)),1)]),_:1}),K(s,{modelValue:r.spamAnswer,"onUpdate:modelValue":t[4]||(t[4]=e=>r.spamAnswer=e),id:`form-field-${n.widgetId}-asv`,"label-left":``},{label:L(()=>[G(`strong`,null,M(e.contentTag(`form_spam_number_4`)),1),q(`\xA0+\xA0`),G(`strong`,null,M(e.contentTag(`form_spam_number_2`)),1),q(`\xA0= `)]),_:1},8,[`modelValue`,`id`])],64)):J(``,!0),K(l,null,{default:L(()=>[K(o,{type:`submit`,context:`website`,color:`primary`,text:n.postId?e.contentTag(`forum_save_edits`):e.contentTag(`forum_send_post`),disabled:i.sending},null,8,[`text`,`disabled`])]),_:1}),a.showModerationNotice?(H(),W(l,{key:4},{default:L(()=>[G(`span`,th,M(e.contentTag(`forum_is_moderated`)),1)]),_:1})):J(``,!0)]),_:1},8,[`onSubmit`]),[[jo,i.formLoaded]])])}var rh=Ws($m,[[`render`,nh]]),ih={inheritAttrs:!1,props:[`threadId`,`widgetId`,`hasModerationGrants`,`settings`,`latestCurrentPage`],components:{D4ForumPost:xm,D4ForumWritePost:rh,D4Notification:Jd,D4Spinner:km,D4Button:Ed},data(){return X(X({},bd()),{},{thread:void 0,threadNotFound:!1})},computed:{head(){return this.thread.posts[0]}},async mounted(){var e=this;e.thread=await ef(`getForumThread`,{widgetId:e.widgetId,threadId:e.threadId}),e.thread.posts.length===0&&(e.thread=void 0,e.threadNotFound=!0)},methods:{getBackLink(){return this.latestCurrentPage?`#forum/${this.widgetId}?p=${this.latestCurrentPage}`:`#`},onNotify(e){this.$emit(`notify`,e)}}},ah={key:0},oh={ref:`scroller`,class:`forum-actionBar`},sh={class:`forum-actionBar__left`},ch={class:`forum-postList`};function lh(e,t,n,r,i,a){let o=R(`D4Button`),s=R(`D4ForumPost`),c=R(`D4Notification`),l=R(`D4ForumWritePost`),u=R(`D4Spinner`);return i.thread?(H(),U(`div`,ah,[G(`div`,oh,[G(`div`,sh,[K(o,{context:`website`,color:`primary`,href:a.getBackLink(),icon:`arrow-left`,text:e.contentTag(`forum_back_to_threads`)},null,8,[`href`,`text`])])],512),G(`h2`,null,M(a.head.subject||e.contentTag(`forum_no_subject`)),1),G(`ul`,ch,[(H(!0),U(V,null,Jr(i.thread.posts,e=>(H(),W(s,{post:e,threadId:n.threadId,widgetId:n.widgetId,hasModerationGrants:n.hasModerationGrants,key:e.id},null,8,[`post`,`threadId`,`widgetId`,`hasModerationGrants`]))),128))]),i.thread.posts[0].isThreadLocked?(H(),W(c,{key:0,t
138ype:`warning`},{default:L(()=>[q(M(e.contentTag(`forum_is_locked`)),1)]),_:1})):(H(),W(l,{key:1,threadId:n.threadId,widgetId:n.widgetId,settings:n.settings,hasModerationGrants:n.hasModerationGrants,onNotify:a.onNotify},null,8,[`threadId`,`widgetId`,`settings`,`hasModerationGrants`,`onNotify`]))])):i.threadNotFound?(H(),W(c,{key:1,type:`warning`},{default:L(()=>[q(M(e.contentTag(`forum_thread_not_found`)),1)]),_:1})):(H(),W(u,{key:2,centered:!0,size:`20px`}))}var uh=Ws(ih,[[`render`,lh]]),dh={key:0},fh=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4WidgetForum`,props:ii({hasModerationGrants:{type:Boolean},pageIsPublic:{type:Boolean},widget:{}},Hs),setup(e){let t=e,n=F(null),r=F(void 0),i=F(void 0),a=F(null),o=e=>{e.value=e},s=()=>{if(/^#forum\/(\w{20})\/(.*)$/.test(location.hash)){if(i.value=void 0,RegExp.$1===t.widget.id){let e=RegExp.$2;/^(\d+)$/.test(e)?c(`THREAD`,{threadId:+RegExp.$1}):/^new$/.test(e)?c(`WRITEPOST`):/(\d+)\/(\d+)\/edit$/.test(e)&&c(`WRITEPOST`,{threadId:+RegExp.$1,postId:+RegExp.$2})}}else if(/^#forum\/\w{20}\?p=(\d+)$/.test(location.hash)){let e=+RegExp.$1;a.value=e,i.value=void 0,c(`THREADLIST`,{currentPage:e})}else c(`THREADLIST`,{currentPage:1})},c=(e,t)=>{n.value=e,r.value=t};return zr(()=>{window.addEventListener(`hashchange`,s),s()}),Hr(()=>{window.removeEventListener(`hashchange`,s)}),(e,s)=>(H(),W(Kd,{widget:t.widget},{default:L(()=>[G(`div`,null,[i.value?(H(),W(Jd,{key:0,animated:``},{default:L(()=>[G(`p`,null,[G(`b`,null,M(i.value.title),1)]),i.value.text?(H(),U(`p`,dh,M(i.value.text),1)):J(``,!0)]),_:1})):J(``,!0),n.value===`THREADLIST`?(H(),W(Qm,ka({key:1,widgetId:t.widget.id},r.value,{hasModerationGrants:e.hasModerationGrants,settings:t.widget.settings}),null,16,[`widgetId`,`hasModerationGrants`,`settings`])):J(``,!0),n.value===`THREAD`?(H(),W(uh,ka({key:2},r.value,{widgetId:t.widget.id,hasModerationGrants:e.hasModerationGrants,settings:t.widget.settings,latestCurrentPage:a.value,onNotify:o}),null,16,[`widgetId`,`hasModerationGrants`,`settings`,`latestCurrentPage`])):J(``,!0),n.value===`WRITEPOST`?(H(),W(rh,ka({key:3},r.value,{widgetId:t.widget.id,hasModerationGrants:e.hasModerationGrants,settings:t.widget.settings,pageIsPublic:t.pageIsPublic,onNotify:o}),null,16,[`widgetId`,`hasModerationGrants`,`settings`,`pageIsPublic`])):J(``,!0)])]),_:1},8,[`widget`]))}})),ph=Date.now()-365*86400*1e3,mh={necessary:!1,statistics:!1,marketing:!1,timestamp:0};function hh(){let e=_h();if(!e)return mh;let t=+(e.dataset.cookiedetailstimestamp||1);if(localStorage.getItem(`d4-consent`)){let e=JSON.parse(localStorage.getItem(`d4-consent`));if(e.timestamp>=t||!e.statistics&&!e.marketing)return e.timestamp<ph?X(X({},e),{},{timestamp:0,necessary:!1}):e}return mh}function gh(){let e=hh();bh(e).length&&(e.necessary||vh(!1));let t=document.getElementById(`d4-show-consent-banner`);t&&(t.onclick=e=>{e.preventDefault(),vh(!0)})}function _h(){return document.getElementById(`d4-consent-banner`)}function vh(e,t=!1){let n=hh(),r=_h();if(!r)return;t&&r.focus(),window!==top&&(r.className+=` inside-iframe`);let i=r.querySelector(`.selected-button`),a=r.querySelector(`.all-button`),o=r.querySelector(`input[type=checkbox].statistics-checkbox`),s=r.querySelector(`input[type=checkbox].marketing-checkbox`);if(!(a&&i&&o&&s)){console.warn(`some banner elements not found`);return}o.checked=n.statistics,s.checked=n.marketing;let c=()=>r.style.display=`none`,l=async()=>{let e=[`SID`,`editMode`];for(let t of document.cookie.split(`;`)){let n=t.replace(/=.*/,``);e.includes(n)||(document.cookie=`${n}=;path=/;expires=Thu, 01 Jan 1970 00:00:00 GMT"`)}localStorage.clear(),sessionStorage.clear();let t={necessary:!0,statistics:o.checked,marketing:s.checked,timestamp:Date.now()};c(),bh(t),await yh(t)};i.onclick=async e=>{e.preventDefault(),await l()},a.onclick=async e=>{o.checked=!0,s.checked=!0,e.preventDefault(),await l()},e&&r.style.display===`block`?(r.classList.add(`d4-consent-banner__bounce`),window.setTimeout(()=>r.classList.remove(`d4-consent-banner__bounce`),1e3)):r.style.display=`block`}async function yh(e){let t=document.createEvent(`CustomEvent`);t.initCustomEvent(`d4consentchange`,!0,!0,{consent:e}),document.dispatchEvent(t),localStorage.setItem(`d4-consent`,JSON.stringify(e)),await new Promise((t,n)=>{let r=new XMLHttpRequest;r.onreadystatechange=()=>{r.readyState===4&&(r.status===204?t(r.responseText):n(r))},r.open(`GET`,`https://dw3531ifnf.execute-api.eu-north-1.amazonaws.com/default/logConsent?`+Eu.stringify(e),!0),r.send(null)})}function bh(e){let t=Array.from(document.querySelectorAll(`script[data-cookieconsent], iframe[data-cookieconsent], img[data-cookieconsent]`)).filter(e=>e.dataset.cookieconsent!==`ignore`);for(let n=0;n<t.length;n++){let r=t[n];e[r.dataset.cookieconsent]?e.timestamp&&xh(r):e[r.dataset.cookieconsent]===void 0&&console.warn(`Invalid data-cookieconsent value '${r.dataset.cookieconsent}', not enabling`,r)}return t}function xh(e){e.nodeName===`SCRIPT`?(e.removeAttribute(`data-cookieconsent`),Sh(e)):(e.nodeName===`IFRAME`||e.nodeName===`IMG`)&&Ch(e)}function Sh(e){let t=e.parentElement,n=document.createElement(`script`),r=e.attributes;for(let e=0;e<r.length;e++){let t=r[e];n.setAttribute(t.name,t.value)}n.type=`text/javascript`;for(let t of[`innerText`,`text`,`onload`,`onerror`])n[t]=e[t];e.dataset.src&&(n.src=e.dataset.src,n.removeAttribute(`data-src`)),t.insertBefore(n,e),t.removeChild(e)}function Ch(e){e.dataset.src&&(e.src=e.dataset.src)}var wh={class:`d4-widget-content-error__content`},Th={class:`d4-widget-content-error__text`},Eh=z({__name:`D4WidgetContentError`,props:{delayed:{type:Boolean,default:!1}},setup(e){let t=e,n=ti();return(e,r)=>I(n).default?(H(),U(`div`,{key:0,class:j([`d4-widget-content-error`,t.delayed?`d4-widget-content-error--delayed`:void 0,`noindex`])},[G(`div`,wh,[K(Gc,{class:`d4-widget-content-error__icon`,name:`error`,size:`64px`}),G(`p`,Th,[B(e.$slots,`default`)])])],2)):J(``,!0)}});function Dh(e,t){return t?{"data-src":e,"data-cookieconsent":`marketing`}:{src:e}}function Oh(){return`consentbannerenabled`in document.documentElement.dataset}var kh=[`data-src`,`width`,`height`],Ah=[`src`,`width`,`height`],jh=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4WidgetFacebook`,props:ii({widget:{}},Hs),setup(e){let t=e,{contentTag:n}=bd(),r=F(void 0),i=F(void 0),a=F(!1),o=F(!1),{width:s}=Mc(i);dr(()=>s.value,async()=>{await jn(),bh(hh())});let c=Y(()=>Math.floor(1.4*s.value)),l=Y(()=>{let e=`https://www.facebook.com/${t.widget.settings.facebookAccount.replace(/[^\w.-]/gi,``)}`,n=Math.floor(s.value),r=Math.floor(c.value);return t.widget.settings.facebookNewPage?`https://www.facebook.com/plugins/page.php?`+Eu.stringify({href:e,width:n,height:r,tabs:`timeline`,small_header:`false`,adapt_container_width:`true`,hide_cover:`false`}):`https://www.facebook.com/plugins/likebox.php?`+Eu.stringify({href:e,width:n,height:r,show_faces:`false`,stream
138:`true`})});return zr(async()=>{await jn(),a.value=!0,await jn(),gh(),o.value=Oh()&&!hh().marketing,document.addEventListener(`d4consentchange`,e=>{o.value=!e.detail.consent.marketing})}),(e,u)=>a.value?(H(),W(Kd,{key:0,widget:t.widget,ref_key:`widgetComponent`,ref:r},{default:L(()=>[G(`div`,{ref_key:`wrapEl`,ref:i,class:`facebook-wrapper`,style:ye({height:`${c.value}px`})},[o.value?(H(),W(Eh,{key:0},{default:L(()=>[B(e.$slots,`error-consent`,{},()=>[q(M(I(n)(`HTML_widget_facebook_load_error_consent_needed`))+` `,1),G(`a`,{role:`button`,tabindex:`0`,onClick:u[0]||(u[0]=e=>I(vh)(!0,!0))},M(I(n)(`consent_edit_your_consent`)),1),q(`. `)])]),_:3})):J(``,!0),gr(G(`div`,{style:ye({height:`${c.value}px`})},[K(Eh,{delayed:``},{default:L(()=>[B(e.$slots,`error`,{},()=>[q(M(I(n)(`HTML_widget_facebook_load_error_other_error`)),1)])]),_:3}),I(Oh)()?(H(),U(`iframe`,{key:0,"data-src":l.value,"data-cookieconsent":`marketing`,width:I(s),height:c.value,scrolling:`no`,frameborder:`0`,allowTransparency:`true`},null,8,kh)):(H(),U(`iframe`,{key:1,src:l.value,width:I(s),height:c.value,scrolling:`no`,frameborder:`0`,allowTransparency:`true`},null,8,Ah))],4),[[jo,!o.value]])],4)]),_:3},8,[`widget`])):J(``,!0)}})),Mh={props:{radius:{type:Number,default:50},progress:{type:Number,default:void 0},stroke:{type:Number,default:8},center:{type:Boolean,default:!1}},data(){let e=this.radius-this.stroke*2;return{normalizedRadius:e,circumference:e*2*Math.PI}},computed:{strokeDashoffset(){return this.progress===100?150:this.circumference-(this.progress||0)/100*this.circumference}}},Nh=[`height`,`width`],Ph=[`stroke-dasharray`,`stroke-width`,`r`,`cx`,`cy`];function Fh(e,t,n,r,i,a){return gr((H(),U(`div`,{class:j([`progress-ring`,n.center?`progress-ring-center`:``])},[(H(),U(`svg`,{class:j(n.progress===100?[`progress-ring-spinning`]:[`progress-ring-working`]),height:n.radius*2,width:n.radius*2},[G(`circle`,{fill:`transparent`,"stroke-dasharray":i.circumference+` `+i.circumference,style:ye({strokeDashoffset:a.strokeDashoffset}),"stroke-width":n.stroke,r:i.normalizedRadius,cx:n.radius,cy:n.radius},null,12,Ph)],10,Nh))],2)),[[jo,n.progress]])}var Ih=Ws(Mh,[[`render`,Fh]]),Lh={class:`widget-memberform__heading`},Rh={class:`widget-form__asv`,"aria-hidden":`true`},zh=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4WidgetMemberform`,props:ii({widget:{}},Hs),setup(e){let t=e,{contentTag:n}=bd(),r=F(!0),i=F(!1),a=F(!1),o=F([]),s=F({}),c=F({}),l=F([]),u=F(void 0),d=F(null),f=[{id:`d4asv1`,required:!1,type:`input`},{id:`d4asv2`,required:!1,type:`input`},{id:`d4asv3`,required:!1,type:`input`}],{confirmEnabled:p,setConfirmLeave:m,unsetConfirmLeave:h}=Fd();s.value.d4asv2=`Enter your name`,zr(async()=>{await jn();for(let e of Array.from(document.querySelectorAll(`.widget-form__asv input`)))e.setAttribute(`tabIndex`,`-1`);o.value=(await Au(`getRegFields`,{})||[]).map(e=>{var t;return(t=e.options)!=null&&t.length&&(e._parsedOptions=[{id:``,label:n(`form_choose`)},...e.options.map(e=>({id:e.value,label:e.label}))]),e}),r.value=!1,await jn(),dr(()=>s.value,e=>{p!==!0&&(Object.keys(e).filter(t=>!!e[t]).every(e=>e===`email`||e===`email_confirm`)||m())},{deep:!0})});let g=async()=>{var e,r;if(a.value===!0)return;if(!Rd(d.value)){var o;c.value={general:n(`form_check_spam_answer`)},await jn(),(o=u.value)==null||o.$el.scrollIntoView({behavior:`smooth`,block:`center`});return}let f=(e=s.value.email)==null?void 0:e.trim(),p=(r=s.value.email_confirm)==null?void 0:r.trim();if((f||p)&&f!==p){c.value={email_confirm:n(`memberform_email_mismatch`)},await jn();let e=l.value.find(e=>e.inputId===`form-field-${t.widget.id}-email_confirm`);e&&(e.flash(),e.$el.scrollIntoView({behavior:`smooth`,block:`center`}));return}i.value=!0,s.value.d4asv2=null,s.value.d4asv3=Ld,s.value.antiSpamAnswer=d.value;try{let e=Object.fromEntries(Object.entries(s.value).filter(([e])=>e!==`email_confirm`)),r=await fetch(`/r/api/1/members/apply`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(X({active:!0,_applied_from_token_num:t.widget.id},e))}),i=await r.json();if(c.value={},!r.ok){if(i.error){c.value=Object.entries(i.error).reduce((e,[t,r])=>{r=r.filter(e=>!!e);let i=t===`_general`?`general`:t;return e[i]=r.map(e=>n(`fmreg_validation_errors`,e)).join(` `),e},{});for(let e of Object.keys(c.value)){let n=l.value.find(n=>n.inputId===`form-field-${t.widget.id}-${e}`);n&&n.flash()}
138if(await jn(),u.value)u.value.$el.scrollIntoView({behavior:`smooth`,block:`center`});else{let e=l.value.find(e=>e.hasError===!0);e&&e.$el.scrollIntoView({behavior:`smooth`,block:`center`})}}return}h(),a.value=!0}catch(e){console.error(e)}finally{i.value=!1}};return(e,p)=>(H(),W(Kd,{widget:t.widget},{default:L(()=>[r.value?(H(),W(Ih,{key:0,center:!0,progress:100})):a.value?(H(),W(Jd,{key:1,type:`success`,animated:``},{default:L(()=>[q(M(t.widget.settings.thanksMsg||I(n)(`thank_you`)),1)]),_:1})):o.value.length?(H(),W(nl,{key:2,method:`post`,"no-spacing":``,"site-form":``,responsive:``,onSubmit:ks(g,[`prevent`])},{default:L(()=>[c.value.general?(H(),W(Pd,{key:0},{default:L(()=>[K(Jd,{ref_key:`generalErrorEl`,ref:u,type:`error`},{default:L(()=>[q(M(c.value.general),1)]),_:1},512)]),_:1})):J(``,!0),(H(!0),U(V,null,Jr(o.value,e=>(H(),U(V,{key:e.id},[e.type===`text`?(H(),W(Jc,{key:0,modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,label:e.label,description:e.help,error:c.value[e.name],required:e.visibility===`3`,"label-left":``,asterisk:``},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`error`,`required`])):e.type===`email`?(H(),U(V,{key:1},[K(Jc,{modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,type:`email`,label:e.label,description:e.help,error:c.value[e.name],required:e.visibility===`3`,"label-left":``,asterisk:``},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`error`,`required`]),e.name===`email`?(H(),W(Jc,{key:0,modelValue:s.value.email_confirm,"onUpdate:modelValue":p[0]||(p[0]=e=>s.value.email_confirm=e),id:`form-field-${t.widget.id}-email_confirm`,ref_for:!0,ref_key:`fieldComponents`,ref:l,type:`email`,label:I(n)(`memberform_confirm_email`),error:c.value.email_confirm,required:e.visibility===`3`,"label-left":``,asterisk:``},null,8,[`modelValue`,`id`,`label`,`error`,`required`])):J(``,!0)],64)):e.type===`date`?(H(),W(Jc,{key:2,modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,label:e.label,description:e.help,error:c.value[e.name],required:e.visibility===`3`,"label-left":``,asterisk:``,placeholder:I(n)(`memberform_date_placeholder`),validate:e=>{if(!I(cc)(e))return I(n)(`memberform_date_format_error`);if(!I(lc)(e))return I(n)(`memberform_date_error`)}},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`error`,`required`,`placeholder`,`validate`])):e.type===`integer`?(H(),W(Jc,{key:3,modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,type:`text`,label:e.label,description:e.help,error:c.value[e.name],pattern:`\\d+`,required:e.visibility===`3`,"label-left":``,asterisk:``,"validity-errors":{patternMismatch:I(n)(`fmreg_validation_errors`,`_validation_integer_invalid`)}},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`error`,`required`,`validity-errors`])):e.type===`decimal`?(H(),W(Jc,{key:4,modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,type:`text`,label:e.label,description:e.help,error:c.value[e.name],pattern:`^\\d+([.,]\\d+)?`,required:e.visibility===`3`,"label-left":``,asterisk:``,"validity-errors":{patternMismatch:I(n)(`fmreg_validation_errors`,`_validation_invalid_decimal`)}},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`error`,`required`,`validity-errors`])):e.type===`textarea`?(H(),W(tl,{key:5,modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,label:e.label,description:e.help,error:c.value[e.name],required:e.visibility===`3`,"label-left":``,asterisk:``,autosize:``},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`error`,`required`])):e.type===`checkbox`?(H(),W(ll,{key:6,modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,label:e.label,description:e.help,error:c.value[e.name],required:e.visibility===`3`,"label-left":``,asterisk:``},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`error`,`required`])):e.type===`dropdown`?(H(),W(ml,{key:7,modelValue:s.value[e.name],"onUpdate:modelValue":t=>s.value[e.name]=t,id:`form-field-${t.widget.id}-${e.name}`,ref_for:!0,ref_key:`fieldComponents`,ref:l,label:e.label,description:e.help,options:e._parsedOptions,error:c.value[e.name],required:e.visibility===`3`,"label-left":``,asterisk:``},null,8,[`modelValue`,`onUpdate:modelValue`,`id`,`label`,`description`,`options`,`error`,`required`])):e.type===`heading`&&e.label?(H(),W(Pd,{key:8,class:`widget-memberform__headingWrap`},{default:L(()=>[G(`h2`,Lh,M(e.label),1)]),_:2},1024)):J(``,!0)],64))),128)),G(`div`,Rh,[(H(),U(V,null,Jr(f,e=>K(Jc,{id:`form-field-${t.widget.id}-${e.id}`,key:e.id,label:e.id,modelValue:s.value[e.id],"onUpdate:modelValue":t=>s.value[e.id]=t},null,8,[`id`,`label`,`modelValue`,`onUpdate:modelValue`])),64))]),K(Pd,null,{default:L(()=>[G(`blockquote`,null,M(I(n)(`form_please_enter_spam_answer`)),1)]),_:1}),K(Jc,{modelValue:d.value,"onUpdate:modelValue":p[1]||(p[1]=e=>d.value=e),id:`form-field-${t.widget.id}-asv`,"label-left":``},{label:L(()=>[G(`strong`,null,M(I(n)(`form_spam_number_4`)),1),q(`\xA0+\xA0`),G(`strong`,null,M(I(n)(`form_spam_number_2`)),1),q(`\xA0= `)]),_:1},8,[`modelValue`,`id`]),o.value.length?(H(),W(Pd,{key:1,indent:``},{default:L(()=>[K(Ed,{context:`website`,color:`primary`,type:`submit`,loading:i.value,text:I(n)(`memberform_submit`)},null,8,[`loading`,`text`])]),_:1})):J(``,!0)]),_:1})):J(``,!0)]),_:1},8,[`widget`]))}})),Bh=l(o(((e,t)=>{var n=/^(?:(?:https?:)?\/\/)?(?:www\.)?(?:m\.)?(?:youtu(?:be)?\.com\/(?:v\/|embed\/|watch(?:\/|\?v=))|youtu\.be\/)((?:\w|-){11}
138)(?:\S+)?$/;t.exports={valid:function(e){return!!String(e).match(n)},extractId:function(e){var t=n.exec(e);return t?t[1]:!1},regex:n}}))(),1),Vh={class:`widget-video__video`},Hh=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4WidgetVideo`,props:ii({disabled:{type:Boolean},widget:{}},X(X({},Hs),{},{disabled:!1})),emits:[`disabledClick`],setup(e,{emit:t}){let n=e,r=t,i=F(!1),{contentTag:a}=bd(),o=F(!1),s=Y(()=>Bh.default.extractId(n.widget.settings.youTubeVideoUrl.replace(`/shorts/`,`/watch?v=`)));return zr(async()=>{await jn(),i.value=!0,await jn(),gh(),o.value=Oh()&&!hh().marketing,document.addEventListener(`d4consentchange`,e=>{o.value=!e.detail.consent.marketing})}),(e,t)=>i.value?(H(),W(Kd,{key:0,widget:n.widget,class:j([n.disabled?`widget-video--disabled`:void 0])},{default:L(()=>[o.value?(H(),W(Eh,{key:0},{default:L(()=>[B(e.$slots,`error-consent`,{},()=>[q(M(I(a)(`HTML_widget_video_load_error_consent_needed`))+` `,1),G(`a`,{role:`button`,tabindex:`0`,onClick:t[0]||(t[0]=e=>I(vh)(!0,!0))},M(I(a)(`consent_edit_your_consent`)),1),q(`. `)])]),_:3})):J(``,!0),gr(G(`div`,null,[K(Eh,{delayed:``},{default:L(()=>[B(e.$slots,`error`,{},()=>[q(M(I(a)(`HTML_widget_video_load_error_other_error`)),1)])]),_:3}),G(`div`,Vh,[G(`iframe`,ka(I(Dh)(`https://www.youtube.com/embed/${s.value}`,I(Oh)()),{style:{border:`none`},allowfullscreen:``}),null,16)]),n.disabled?(H(),U(`div`,{key:0,class:`widget-video__mask`,onClick:t[1]||(t[1]=e=>r(`disabledClick`,e))})):J(``,!0)],512),[[jo,!o.value]])]),_:3},8,[`widget`,`class`])):J(``,!0)}})),Uh=o(((e,t)=>{(function(e){typeof t==`object`&&t.exports?t.exports=e():typeof define==`function`?define(e):this.tz=e()})(function(){function e(e,t,n){var r,i=t.day[1];do r=new Date(Date.UTC(n,t.month,Math.abs(i++)));while(t.day[0]<7&&r.getUTCDay()!=t.day[0]);return r={clock:t.clock,sort:r.getTime(),rule:t,save:t.save*6e4,offset:e.offset},r[r.clock]=r.sort+t.time*6e4,r.posix?r.wallclock=r[r.clock]+(e.offset+t.saved):r.posix=r[r.clock]-(e.offset+t.saved),r}function t(t,n,r){var i,a,o,s,c=t[t.zone],l=[],u,d,f,p=new Date(r).getUTCFullYear(),m=1;for(i=1,a=c.length;i<a&&!(c[i][n]<=r);i++);if(o=c[i],o.rules){for(d=t[o.rules],f=p+1;f>=p-m;--f)for(i=0,a=d.length;i<a;i++)d[i].from<=f&&f<=d[i].to?l.push(e(o,d[i],f)):d[i].to<f&&m==1&&(m=f-d[i].to);for(l.sort(function(e,t){return e.sort-t.sort}),i=0,a=l.length;i<a;i++)r>=l[i][n]&&l[i][l[i].clock]>o[l[i].clock]&&(s=l[i])}return s&&((u=/^(.*)\/(.*)$/.exec(o.format))?s.abbrev=u[s.save?2:1]:s.abbrev=o.format.replace(/%s/,s.rule.letter)),s||o}function n(e,n){return e.zone==`UTC`?n:(e.entry=t(e,`posix`,n),n+e.entry.offset+e.entry.save)}function r(e,n){if(e.zone==`UTC`)return n;var r,i;return e.entry=r=t(e,`wallclock`,n),i=n-r.wallclock,0<i&&i<r.save?null:n-r.offset-r.save}function i(e,t,i){var a=+(i[1]+1),o=i[2]*a,c=s.indexOf(i[3].toLowerCase()),u;if(c>9)t+=o*l[c-10];else{if(u=new Date(n(e,t)),c<7)for(;o;)u.setUTCDate(u.getUTCDate()+a),u.getUTCDay()==c&&(o-=a);else c==7?u.setUTCFullYear(u.getUTCFullYear()+o):c==8?u.setUTCMonth(u.getUTCMonth()+o):u.setUTCDate(u.getUTCDate()+o);(t=r(e,u.getTime()))==null&&(t=r(e,u.getTime()+864e5*a)-864e5*a)}return t}function a(e){if(!e.length)return`1.0.23`;var t=Object.create(this),a=[],o,s,l,u,d;for(o=0;o<e.length;o++)if(u=e[o],Array.isArray(u))!o&&!isNaN(u[1])?d=u:u.splice.apply(e,[o--,1].concat(u));else if(isNaN(u)){if(l=typeof u,l==`string`)~u.indexOf(`%`)?t.format=u:!o&&u==`*`?d=u:!o&&(l=/^(\d{4})-(\d{2})-(\d{2})(?:[T\s](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|(([+-])(\d{2}(:\d{2}){0,2})))?)?$/.exec(u))?(d=[],d.push.apply(d,l.slice(1,8)),l[9]?(d.push(l[10]+1),d.push.apply(d,l[11].split(/:/))):l[8]&&d.push(1)):/^\w{2,3}_\w{2}$/.test(u)?t.locale=u:(l=c.exec(u))?a.push(l):t.zone=u;else if(l==`function`){if(l=u.call(t))return l}else if(/^\w{2,3}_\w{2}$/.test(u.name))t[u.name]=u;else if(u.zones){for(l in u.zones)t[l]=u.zones[l];for(l in u.rules)t[l]=u.rules[l]}}else o||(d=u);if(t[t.locale]||delete t.locale,t[t.zone]||delete t.zone,d!=null){if(d==`*`)d=t.clock();else if(Array.isArray(d)){for(l=[],s=!d[7],o=0;o<11;o++)l[o]=+(d[o]||0);--l[1],d=Date.UTC.apply(Date.UTC,l)+-l[7]*(l[8]*36e5+l[9]*6e4+l[10]*1e3)}else d=Math.floor(d);if(!isNaN(d)){if(s&&(d=r(t,d)),d==null)return d;for(o=0,s=a.length;o<s;o++)d=i(t,d,a[o]);return t.format?(l=new Date(n(t,d)),t.format.replace(/%([-0_^]?)(:{0,3})(\d*)(.)/g,function(e,n,r,i,a){var o,s=`0`,c;if(o=t[a]){for(e=String(o.call(t,l,d,n,r.length)),(n||o.style)==`_`&&(s=` `),
138c=n==`-`?0:o.pad||0;e.length<c;)e=s+e;for(c=n==`-`?0:i||o.pad;e.length<c;)e=s+e;a==`N`&&c<e.length&&(e=e.slice(0,c)),n==`^`&&(e=e.toUpperCase())}return e})):d}}return function(){return t.convert(arguments)}}var o={clock:function(){return+new Date},zone:`UTC`,entry:{abbrev:`UTC`,offset:0,save:0},UTC:1,z:function(e,t,n,r){var i=this.entry.offset+this.entry.save,a=Math.abs(i/1e3),o=[],s=3600,c,l;for(c=0;c<3;c++)o.push((`0`+Math.floor(a/s)).slice(-2)),a%=s,s/=60;return n==`^`&&!i?`Z`:(n==`^`&&(r=3),r==3?(l=o.join(`:`),l=l.replace(/:00$/,``),n!=`^`&&(l=l.replace(/:00$/,``))):r?(l=o.slice(0,r+1).join(`:`),n==`^`&&(l=l.replace(/:00$/,``))):l=o.slice(0,2).join(``),l=(i<0?`-`:`+`)+l,l=l.replace(/([-+])(0)/,{_:` $1`,"-":`$1`}[n]||`$1$2`),l)},"%":function(e){return`%`},n:function(e){return`
139`},t:function(e){return`	`},U:function(e){return u(e,0)},W:function(e){return u(e,1)},V:function(e){return d(e)[0]},G:function(e){return d(e)[1]},g:function(e){return d(e)[1]%100},j:function(e){return Math.floor((e.getTime()-Date.UTC(e.getUTCFullYear(),0))/864e5)+1},s:function(e){return Math.floor(e.getTime()/1e3)},C:function(e){return Math.floor(e.getUTCFullYear()/100)},N:function(e){return e.getTime()%1e3*1e6},m:function(e){return e.getUTCMonth()+1},Y:function(e){return e.getUTCFullYear()},y:function(e){return e.getUTCFullYear()%100},H:function(e){return e.getUTCHours()},M:function(e){return e.getUTCMinutes()},S:function(e){return e.getUTCSeconds()},e:function(e){return e.getUTCDate()},d:function(e){return e.getUTCDate()},u:function(e){return e.getUTCDay()||7},w:function(e){return e.getUTCDay()},l:function(e){return e.getUTCHours()%12||12},I:function(e){return e.getUTCHours()%12||12},k:function(e){return e.getUTCHours()},Z:function(e){return this.entry.abbrev},a:function(e){return this[this.locale].day.abbrev[e.getUTCDay()]},A:function(e){return this[this.locale].day.full[e.getUTCDay()]},h:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},b:function(e){return this[this.locale].month.abbrev[e.getUTCMonth()]},B:function(e){return this[this.locale].month.full[e.getUTCMonth()]},P:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)].toLowerCase()},p:function(e){return this[this.locale].meridiem[Math.floor(e.getUTCHours()/12)]},R:function(e,t){return this.convert([t,`%H:%M`])},T:function(e,t){return this.convert([t,`%H:%M:%S`])},D:function(e,t){return this.convert([t,`%m/%d/%y`])},F:function(e,t){return this.convert([t,`%Y-%m-%d`])},x:function(e,t){return this.convert([t,this[this.locale].date])},r:function(e,t){return this.convert([t,this[this.locale].time12||`%I:%M:%S`])},X:function(e,t){return this.convert([t,this[this.locale].time24])},c:function(e,t){return this.convert([t,this[this.locale].dateTime])},convert:a,locale:`en_US`,en_US:{date:`%m/%d/%Y`,time24:`%I:%M:%S %p`,time12:`%I:%M:%S %p`,dateTime:`%a %d %b %Y %I:%M:%S %p %Z`,meridiem:[`AM`,`PM`],month:{abbrev:`Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec`.split(`|`),full:`January|February|March|April|May|June|July|August|September|October|November|December`.split(`|`)},day:{abbrev:`Sun|Mon|Tue|Wed|Thu|Fri|Sat`.split(`|`),full:`Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday`.split(`|`)}}},s=`Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|year|month|day|hour|minute|second|millisecond`,c=RegExp(`^\\s*([+-])(\\d+)\\s+(`+s+`)s?\\s*$`,`i`),l=[36e5,6e4,1e3,1];s=s.toLowerCase().split(`|`),`delmHMSUWVgCIky`.replace(/./g,function(e){o[e].pad=2}),o.N.pad=9,o.j.pad=3,o.k.style=`_`,o.l.style=`_`,o.e.style=`_`;function u(e,t){var n,r=new Date(Date.UTC(e.getUTCFullYear(),0)),i;return n=Math.floor((e.getTime()-r.getTime())/864e5),r.getUTCDay()==t?i=0:(i=7-r.getUTCDay()+t,i==8&&(i=1)),n>=i?Math.floor((n-i)/7)+1:0}function d(e){var t,n=e.getUTCFullYear(),r;return t=new Date(Date.UTC(n,0)).getUTCDay(),r=u(e,1)+(t>1&&t<=4?1:0),r?r==53&&!(t==4||t==3&&new Date(n,1,29).getDate()==29)?[1,e.getUTCFullYear()+1]:[r,e.getUTCFullYear()]:(n=e.getUTCFullYear()-1,t=new Date(Date.UTC(n,0)).getUTCDay(),r=t==4||t==3&&new Date(n,1,29).getDate()==29?53:52,[r,e.getUTCFullYear()-1])}return function(){return o.convert(arguments)}})})),Wh=o(((e,t)=>
139{t.exports={zones:{"Europe/Helsinki":[`z`,{wallclock:4102272e5,format:`EE%sT`,abbrev:`EET`,offset:72e5,posix:41022e7,save:0,rules:`EU`},{wallclock:-15359328e5,format:`EE%sT`,abbrev:`EET`,offset:72e5,posix:-1535938789e3,save:0,rules:`Finland`},{wallclock:-28902528e5,format:`HMT`,abbrev:`HMT`,offset:5989e3,posix:-2890258789e3,save:0},{wallclock:-17976931348623157e292,format:`LMT`,abbrev:`LMT`,offset:5989e3,posix:-17976931348623157e292,save:0}]},rules:{EU:[{from:1981,to:17976931348623157e292,month:2,day:[0,-31],time:60,clock:`posix`,save:60,letter:`S`,saved:0},{from:1996,to:17976931348623157e292,month:9,day:[0,-31],time:60,clock:`posix`,save:0,letter:``,saved:36e5},{from:1985,to:1995,month:8,day:[0,-30],time:60,clock:`posix`,save:0,letter:``,saved:36e5},{from:1984,to:1984,month:8,day:[0,-30],time:60,clock:`posix`,save:0,letter:``,saved:36e5},{from:1982,to:1983,month:8,day:[0,-30],time:60,clock:`posix`,save:0,letter:``,saved:36e5},{from:1981,to:1981,month:8,day:[0,-30],time:60,clock:`posix`,save:0,letter:``,saved:36e5},{from:1977,to:1980,month:3,day:[0,1],time:60,clock:`posix`,save:60,letter:`S`,saved:0},{from:1979,to:1980,month:8,day:[0,-30],time:60,clock:`posix`,save:0,letter:``,saved:36e5},{from:1978,to:1978,month:9,day:[7,1],time:60,clock:`posix`,save:0,letter:``,saved:36e5},{from:1977,to:1977,month:8,day:[0,-30],time:60,clock:`posix`,save:0,letter:``,saved:36e5}],Finland:[{from:1981,to:1982,month:2,day:[0,-31],time:120,clock:`wallclock`,save:60,letter:`S`,saved:0},{from:1981,to:1982,month:8,day:[0,-30],time:180,clock:`wallclock`,save:0,letter:``,saved:36e5},{from:1942,to:1942,month:3,day:[7,2],time:1440,clock:`wallclock`,save:60,letter:`S`,saved:0},{from:1942,to:1942,month:9,day:[7,4],time:60,clock:`wallclock`,save:0,letter:``,saved:36e5}]}}})),Gh=l(Uh(),1),Kh=l(Wh(),1);(0,Gh.default)(Kh.default);function qh(e){return e<10?`0`+e:e}function Jh(e){return e.getFullYear()+`-`+qh(e.getMonth()+1)+`-`+qh(e.getDate())}function Yh(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-n);let r=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-r.getTime())/864e5+1)/7)}function Xh(e,t){let n=new Date(e);return n.setUTCDate(n.getUTCDate()+t),n.toISOString().slice(0,10)}function Zh(e,t,n=0){let r=new Date(e),i=new Date(t);n!==0&&i.setUTCDate(i.getUTCDate()+n);let a=[];for(let e=new Date(r);e<=i;e.setUTCDate(e.getUTCDate()+1))a.push(e.toISOString().slice(0,10));return a}function Qh(e,t=`fi-FI`){let n=t===`en-US`?{month:`numeric`,day:`numeric`,year:`numeric`}:{};return new Date(e).toLocaleDateString(t,n)}function $h(e,t=`fi-FI`){let n=t===`en-US`?{month:`numeric`,day:`numeric`,year:`numeric`}:{};return new Date(e).toLocaleDateString(t,n)}var eg=new Date,tg=eg.getTimezoneOffset()*6e4;new Date(eg.getTime()-tg).toISOString().substring(0,10);var ng={key:0,class:`rescal-date-selector__length-controls`},rg={class:`rescal-date-selector__duration-text`},ig={key:1},ag=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4RescalDateSelector`,props:ai({widgetSettings:{},adminMode:{type:Boolean},error:{},availableDates:{default:()=>new Set}},{startDate:{default:``},startDateModifiers:{},endDate:{default:``},endDateModifiers:{}}),emits:[`update:startDate`,`update:endDate`],setup(e){let{contentTag:t}=bd(),n=e,r=$a(e,`startDate`),i=$a(e,`endDate`),a=Y(()=>Zh(r.value,i.value).length-(n.widgetSettings.mode===`MODE_NIGHTS`?1:0)),o=Y(()=>n.adminMode||n.widgetSettings.maxBookingLength>n.widgetSettings.minBookingLength),s=Y(()=>n.adminMode||n.widgetSettings.maxBookingLength>1),c=Y(()=>{let e=t(`locale`);return`${Qh(r.value,e)}${r.value===i.value?``:`—${Qh(i.value,e)}`}`}),l=Y(()=>n.widgetSettings.mode===`MODE_NIGHTS`?t(`rescal_night_duration`,{_n:a.value}):n.widgetSettings.mode===`MODE_DAYS`&&n.widgetSettings.maxBookingLength>1?t(`rescal_day_duration`,{_n:a.value}):``),u=Y(()=>{if(a.value>=n.widgetSettings.maxBookingLength&&!n.adminMode)return!1;if(n.adminMode)return!0;let e=Xh(i.value,1),t=Zh(r.value,e);return(n.widgetSettings.mode===`MODE_NIGHTS`?t.slice(0,-1):t).every(e=>n.availableDates.has(e))}),d=e=>{if(n.adminMode){i.value=Xh(i.value,e);return}let a=Xh(i.value,e),o=Zh(r.value,a),s=n.widgetSettings.mode===`MODE_NIGHTS`?o.slice(0,-1):o;if(!s.every(e=>n.availableDates.has(e))){alert(t(`rescal_chosen_date_not_available`,{_n:s.length}));return}i.value=a};return(e,i)=>(H(),U(V,null,[K($s,{label:I(t)(`rescal_reservation_dates`),"label-left":``},{default:L(()=>
139[n.adminMode?(H(),W(Jc,{key:0,type:`date`,modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=e=>r.value=e)},null,8,[`modelValue`])):J(``,!0),K(Pd,null,{default:L(()=>[G(`span`,null,M(c.value),1)]),_:1})]),_:1},8,[`label`]),s.value?(H(),W($s,{key:0,label:I(t)(`rescal_reservation_length`),"label-left":``},{default:L(()=>[K(Pd,null,{default:L(()=>[o.value?(H(),U(`div`,ng,[G(`div`,null,[K(Ed,{class:`widget-rescal__button`,text:I(t)(`rescal_minus`),"hide-text":``,rounded:``,context:n.adminMode?`admin`:`website`,icon:`minus`,color:`primary`,disabled:e.adminMode?a.value<=1:a.value<=n.widgetSettings.minBookingLength,onClick:i[1]||(i[1]=e=>d(-1))},null,8,[`text`,`context`,`disabled`])]),G(`span`,rg,M(l.value),1),G(`div`,null,[K(Ed,{class:`widget-rescal__button`,text:I(t)(`rescal_plus`),"hide-text":``,rounded:``,context:n.adminMode?`admin`:`website`,icon:`plus`,color:`primary`,disabled:!u.value,onClick:i[2]||(i[2]=e=>d(1))},null,8,[`text`,`context`,`disabled`])])])):(H(),U(`div`,ig,M(l.value),1)),n.error?(H(),W(Bc,{key:2},{default:L(()=>[q(M(n.error),1)]),_:1})):J(``,!0),B(e.$slots,`adminwarnings`,{selectedBookingLength:a.value})]),_:3})]),_:3},8,[`label`])):J(``,!0)],64))}})),og={key:0},sg=[`innerHTML`],cg={key:1,class:`widget-rescal__wrap`},lg={class:`widget-rescal__header`},ug={key:0,class:`h3 widget-rescal__title`},dg={class:`widget-rescal__navigation noindex`},fg={class:`widget-rescal__current-month`},pg={class:`widget-rescal__calendar-container noindex`},mg={key:0,class:`widget-rescal__no-availability-overlay`},hg={class:`calendar-table`},gg=[`aria-label`],_g={class:`calendar-table__body`},vg=[`onMouseover`],yg=G(`svg`,{class:`calendar-table__day-background`,viewBox:`0 0 1 1`,preserveAspectRatio:`none`},[G(`polygon`,{points:`1,1 0,1 0,0, 1,0`,fill:`var(--day-rect-color)`}),G(`polygon`,{points:`0,0 1,0 0,1`,fill:`var(--morning-triangle-color)`}),G(`polygon`,{points:`1,1 0,1 1,0`,fill:`var(--evening-triangle-color)`})],-1),bg=[`aria-label`,`aria-disabled`,`onClick`],xg=[`aria-label`],Sg={class:`calendar-table__day-button-text`},Cg=[`onMouseover`,`onMouseout`,`onClick`],wg={key:3,class:`widget-rescal__form`},Tg=z(X(X({},{inheritAttrs:!1}),{},{__name:`D4WidgetRescal`,props:ii({widget:{},isNewWidget:{type:Boolean},pageIsPublic:{type:Boolean},binServer:{},siteId:{},adminMode:{type:Boolean},reservationsForMonthCalendar:{},onClickDateMessage:{}},X(X({},Hs),{},{pageIsPublic:!1,binServer:``,siteId:void 0,adminMode:!1,reservationsForMonthCalendar:()=>({}),onClickDateMessage:``})),emits:[`clickReservation`],setup(e,{emit:t}){let n=t,r=e;dr(()=>r.reservationsForMonthCalendar,(e,t)=>{Object.keys(t).length&&te()});let{contentTag:i}=bd(),a=F(``),o=F(new Set),s=F(!1),c=F(!1),l=F(!1),u=F(!1),d=F(new Date),f=F(null),p=F(``),m=F(``),h=F({}),g=()=>ju.rescalReserve({widgetId:r.widget.id,startDate:p.value,endDate:m.value,formData:h.value}),_=e=>{e.afterSendRedirect?window.location.href=e.afterSendRedirect:a.value=e.thankYouMessageHtml||i(`rescal_reservation_success`)},v=e=>{if(r.onClickDateMessage){alert(r.onClickDateMessage);return}if(!o.value.has(e)){alert(i(`rescal_chosen_date_not_available`,{_n:p.value===m.value}));return}let t=r.widget.settings.minBookingLength||1;if(r.widget.settings.mode===`MODE_DAYS`)for(let n=0;n<t;n++){let r=Xh(e,n);if(!o.value.has(r)){alert(i(`rescal_chosen_date_not_available`,{_n:t}));return}}else for(let n=0;n<t;n++){let r=Xh(e,n);if(!o.value.has(r)){alert(i(`rescal_chosen_date_not_available`,{_n:t}));return}}let n=!!p.value;p.value=e,m.value=Xh(e,r.widget.settings.mode===`MODE_DAYS`?r.widget.settings.minBookingLength-1:r.widget.settings.minBookingLength),k.value={},n||jn(()=>{f.value&&f.value.$el.scrollIntoView({behavior:`smooth`})})},y=e=>e.toLocaleDateString(i(`locale`),{month:`long`,year:`numeric`}),b=Y(()=>{if(r.adminMode){let e=Object.keys(r.reservationsForMonthCalendar),t=new Date,n=new Date(t.getFullYear(),t.getMonth(),1).getTime(),i=e.map(e=>new Date(e).getTime()),a=new Date(Math.min(...i,n)),o=d.value.getFullYear(),s=d.value.getMonth();return o<a.getFullYear()||o===a.getFullYear()&&s<=a.getMonth()}let e=new Date,t=d.value.getFullYear(),n=d.value.getMonth();return t<e.getFullYear()||t===e.getFullYear()&&n<=e.getMonth()}),x=Y(()=>{if(r.adminMode){let e=Object.keys(r.reservationsForMonthCalendar),t=r.widget.settings.seasons.map(e=>new Date(new Date(e.end).getFullYear(),new Date(e.end).getMonth()+1,
1391).getTime()),n=e.map(e=>new Date(e).getTime()),i=new Date(Math.max(...n,...t)),a=d.value.getFullYear(),o=d.value.getMonth();return a>i.getFullYear()||a===i.getFullYear()&&o>=i.getMonth()}return S.value===`from_here`||S.value===`at_all`}),S=Y(()=>{if(!s.value)return`none`;if(o.value.size===0)return`at_all`;let e=d.value.getFullYear(),t=d.value.getMonth(),n=!1,r=!1;for(let i of o.value){let a=new Date(i),o=a.getFullYear(),s=a.getMonth();o===e&&s===t?n=!0:(o>e||o===e&&s>t)&&(r=!0)}return n?`none`:r?`this_month`:`from_here`}),C=()=>{let e=d.value.getFullYear(),t=d.value.getMonth();for(let n of o.value){let r=new Date(n),i=r.getFullYear(),a=r.getMonth();if(i>e||i===e&&a>t){d.value=new Date(i,a,1);return}}},w=()=>{b.value||(d.value=new Date(d.value.getFullYear(),d.value.getMonth()-1,1))},T=()=>{d.value=new Date(d.value.getFullYear(),d.value.getMonth()+1,1)},E=e=>o.value.has(Jh(e)),D=Y(()=>{if(!p.value||!m.value)return!0;let e=Zh(p.value,m.value);return r.widget.settings.mode===`MODE_NIGHTS`&&e.pop(),e.every(e=>o.value.has(e))}),O=e=>{if(!p.value||!m.value)return{};if(r.widget.settings.mode===`MODE_DAYS`)return{"calendar-table__day--day-selected":p.value<=e&&e<=m.value};{let t=Xh(m.value,-1),n=p.value<=e&&e<=t,r=p.value<e&&e<=m.value;return n&&r?{"calendar-table__day--day-selected":!0}:{"calendar-table__day--evening-selected":n,"calendar-table__day--morning-selected":r}}},ee=Y(()=>{let e=d.value.getFullYear(),t=d.value.getMonth(),n=new Date,i=new Date(e,t,1),a=new Date(e,t+1,0),o=i.getDay();o=o===0?6:o-1;let s=[],c=[],l=null,u=(e,t)=>{c.length===0&&(l=t);let i=t.toDateString()===n.toDateString(),a=(()=>{if(r.widget.settings.mode===`MODE_DAYS`)return E(t)?`full`:`none`;{let e=E(new Date(t.getFullYear(),t.getMonth(),t.getDate()-1)),n=E(t);return e&&n?`full`:e?`morning`:n?`evening`:`none`}})();c.push({dayOfMonth:t.getDate(),isoDate:Jh(t),isCurrentMonth:e,isToday:i,availabilityShape:a})};for(let n=o-1;n>=0;n--)u(!1,new Date(e,t,-n));for(let n=1;n<=a.getDate();n++)u(!0,new Date(e,t,n)),c.length===7&&(s.push({days:[...c],weekKey:`week-${s.length}`,weekNumber:Yh(l)}),c=[],l=null);if(c.length>0){let n=1;for(;c.length<7;)u(!1,new Date(e,t+1,n)),n++;s.push({days:[...c],weekKey:`week-${s.length}`,weekNumber:Yh(l)})}return s}),te=async()=>{let e=await ju.getRescalAvailableDates({widgetId:r.widget.id});o.value=new Set(e.dates),c.value=e.reservationLimitReached,l.value=e.widgetLimitExceeded,u.value=e.showFreeVersionNote,s.value=!0};zr(async()=>{r.isNewWidget||await te()});let k=F({}),ne=e=>{if(k.value={},!o.value.has(e.isoDate))return;let t=r.widget.settings.minBookingLength||1;if(r.widget.settings.mode===`MODE_DAYS`)for(let n=0;n<t;n++){let t=Xh(e.isoDate,n);if(!(p.value&&m.value&&p.value<=t&&t<=m.value)){let e=o.value.has(t);k.value[t]=[e?`calendar-table__day--day-hovered`:`calendar-table__day--day-hovered-unavailable`]}}else{let n=m.value?Xh(m.value,-1):null;for(let r=0;r<t;r++){let t=Xh(e.isoDate,r),i=Xh(t,1),a=p.value&&n&&p.value<=t&&t<=n,s=p.value&&m.value&&p.value<i&&i<=m.value;if(!a){let e=o.value.has(t)?`calendar-table__day--evening-hovered`:`calendar-table__day--evening-hovered-unavailable`;k.value[t]||(k.value[t]=[]),k.value[t].push(e)}if(!s){let e=o.value.has(t)?`calendar-table__day--morning-hovered`:`calendar-table__day--morning-hovered-unavailable`;k.value[i]||(k.value[i]=[]),k.value[i].push(e)}}}},re=()=>{k.value={}},ie=e=>{if(r.reservationsForMonthCalendar)for(let t of Object.values(r.reservationsForMonthCalendar))t.isHovered=t.reservationId===e},A=e=>{if(r.reservationsForMonthCalendar)for(let t of Object.values(r.reservationsForMonthCalendar))t.reservationId===e&&(t.isHovered=!1)};return(e,t)=>(H(),W(Kd,{widget:r.widget},{default:L(()=>[a.value?(H(),U(`div`,og,[K(Jd,{type:`success`,animated:``,"scroll-into-view":``},{default:L(()=>[G(`span`,{innerHTML:a.value},null,8,sg)]),_:1})])):r.widget.settings.wizardMode?J(``,!0):(H(),U(`div`,cg,[u.value?(H(),W(Jd,{key:0},{default:L(()=>[q(M(I(i)(`rescal_free_limit_warning`)),1)]),_:1})):J(``,!0),e.adminMode?(H(),U(V,{key:1},[c.value?(H(),W(Jd,{key:0},{default:L(()=>[q(M(e.userTag(`rescal_reservation_limit_reached`)),1)]),_:1})):l.value?(H(),W(Jd,{key:1},{default:L(()=>[q(M(e.userTag(`rescal_widget_limit_exceeded`)),1)]),_:1})):J(``,!0)],64)):(H(),U(V,{key:2},[l.value?(H(),W(Jd,{key:0},{default:L(()=>[q(M(I(i)(`rescal_widget_disabled`)),1)]),_:1})):J(``,!0)],64)),G(`div`,lg,[r.widget.settings.resource?(H(),U(`h2`,ug,M(r.widget.settings.resource),1)):J(``,!0),G(`div`,dg,[K(Ed,{class:`widget-rescal__button`,text:I(i)(`rescal_previous_month`),"hide-text":``,rounded:``,icon:`arrow-left`,color:`primary`,disabled:b.value,onClick:w},null,8,[`text`,`disabled`]),G(`span`,fg,M(y(d.value)),1),K(Ed,{class:`widget-rescal__button`,text:I(i)(`rescal_next_month`),"hide-text":``,rounded:``,icon:`arrow-right`,color:`primary`,disabled:x.value,onClick:T},null,8,[`text`,`disabled`])])]),G(`div`,pg,[S.value===`none`?J(``,!0):(H(),U(`div`,mg,[S.value===`at_all`?(H(),U(V,{key:0},[q(M(I(i)(`rescal_no_availability_at_all`)),1)],64)):S.value===`this_month`?(H(),U(V,{key:1},[q(M(I(i)(`rescal_no_availability_this_month`))+` `,1),G(`button`,{type:`button`,class:`widget-rescal__show-next-available`,onClick:C},M(I(i)(`rescal_show_next_available`)),1)],64)):(H(),U(V,{key:2},[q(M(I(i)(`rescal_no_availability_from_here`)),1)],64))])),G(`table`,hg,[G(`thead`,null,[G(`tr`,null,[(H(),U(V,null,Jr(7,e=>G(`th`,{key:e,class:`calendar-table__header`,scope:`col`,"aria-label":I(i)(`weekday`,e)},M(I(i)(`weekday_short`,e)),9,gg)),64))])]),G(`tbody`,_g,[(H(!0),U(V,null,Jr(ee.value,a=>(H(),U(`tr`,{key:a.weekKey},[(H(!0),U(V,null,Jr(a.days,(s,c)=>{var l;return H(),U(`td`,{key:s.isoDate,class:j(X(X({"calendar-table__day":!0,"calendar-table__day--other-month":!s.isCurrentMonth,"calendar-table__day--today":s.isToday,[`calendar-table__day--availability-${s.availabilityShape}`]:!0}
139,O(s.isoDate)),((l=k.value[s.isoDate])==null?void 0:l.reduce((e,t)=>X(X({},e),{},{[t]:!0}),{}))||{})),onMouseover:e=>ne(s),onMouseout:t[0]||(t[0]=e=>re())},[yg,G(`button`,{class:`calendar-table__day-button`,type:`button`,"aria-label":`${I(i)(`weekday`,c+1)} ${I($h)(s.isoDate)}`,"aria-disabled":!o.value.has(s.isoDate),onClick:e=>v(s.isoDate)},[c===0?(H(),U(`span`,{key:0,class:`calendar-table__week-number`,"aria-label":`${I(i)(`rescal_week`)} ${a.weekNumber}`},M(a.weekNumber),9,xg)):J(``,!0),G(`span`,Sg,M(s.dayOfMonth),1)],8,bg),e.reservationsForMonthCalendar[s.isoDate]?(H(),U(`div`,{key:0,class:j([`calendar-table__reservation-teaser`,{"calendar-table__reservation-teaser--is-start":e.reservationsForMonthCalendar[s.isoDate].isStart,"calendar-table__reservation-teaser--is-end":e.reservationsForMonthCalendar[s.isoDate].isEnd,"calendar-table__reservation-teaser--is-night-start":r.widget.settings.mode===`MODE_NIGHTS`&&e.reservationsForMonthCalendar[s.isoDate].isStart,"calendar-table__reservation-teaser--status-pending":e.reservationsForMonthCalendar[s.isoDate].status===`RESCAL_PENDING`,"calendar-table__reservation-teaser--status-confirmed":e.reservationsForMonthCalendar[s.isoDate].status===`RESCAL_CONFIRMED`,"calendar-table__reservation-teaser--is-hovered":e.reservationsForMonthCalendar[s.isoDate].isHovered}]),onMouseover:t=>ie(e.reservationsForMonthCalendar[s.isoDate].reservationId),onMouseout:t=>A(e.reservationsForMonthCalendar[s.isoDate].reservationId),onClick:t=>n(`clickReservation`,e.reservationsForMonthCalendar[s.isoDate].reservationId),style:ye({width:`calc(100 * ${e.reservationsForMonthCalendar[s.isoDate].blockLength}% + ${e.reservationsForMonthCalendar[s.isoDate].blockLength-1.5}px`})},M(e.reservationsForMonthCalendar[s.isoDate].formTextTeaser),47,Cg)):J(``,!0)],42,vg)}),128))]))),128))])])]),p.value?(H(),U(`div`,wg,[G(`h3`,null,M(I(i)(`rescal_reservation_details`)),1),K(Hd,{ref_key:`rescalReservationForm`,ref:f,"do-submit":g,"page-is-public":r.pageIsPublic,"widget-id":r.widget.id,"bin-server":r.binServer,"site-id":r.siteId,fields:r.widget.fields,"show-anti-spam-question":r.widget.settings.showAntiSpamQuestion,"submit-text":r.widget.settings.submitText||I(i)(`rescal_reserve`),modelValue:h.value,"onUpdate:modelValue":t[3]||(t[3]=e=>h.value=e),onAftersubmit:_},{"before-fields":L(()=>[K(ag,{"widget-settings":r.widget.settings,"available-dates":o.value,"start-date":p.value,"onUpdate:startDate":t[1]||(t[1]=e=>p.value=e),"end-date":m.value,"onUpdate:endDate":t[2]||(t[2]=e=>m.value=e),error:D.value?void 0:I(i)(`rescal_chosen_date_not_available`,{_n:p.value===m.value&&r.widget.settings.mode===`MODE_DAYS`?1:2})},null,8,[`widget-settings`,`available-dates`,`start-date`,`end-date`,`error`])]),_:1},8,[`page-is-public`,`widget-id`,`bin-server`,`site-id`,`fields`,`show-anti-spam-question`,`submit-text`,`modelValue`])])):J(``,!0)]))]),_:1},8,[`widget`]))}}));function Eg(e,t){let{url:n,query:r}=Eu.parseUrl(e);n===``&&(n=`./`),r=X(X({},r),t);let i=!1;`past`in r&&(i=!0,delete r.past);let a=Eu.stringify(r);return i&&(a=`past`+(a?`&`+a:``)),n+(a?`?`+a:``)}var Dg={components:{D4PaginationControls:Em},data(){return X({paginationCopy:X({},this.pagination)},bd())},props:[`pagination`],methods:{pageUrl(e){let t={p:e>1?e:void 0};return this.pagination.type===`events_past`&&(t.past=``),Eg(``,t)},jumpToPage(e){location.href=this.pageUrl(e)}},computed:{paginationPageOptions(){return Array.from({length:this.pagination.pageCount},(e,t)=>t+1).map(e=>({label:this.contentTag(`pagination_page`)+` `+e+` / `+this.pagination.pageCount,id:e}))},leftUrl(){return this.pagination.currentPage>1?this.pageUrl(this.pagination.currentPage-1):void 0},rightUrl(){return this.pagination.currentPage<this.pagination.pageCount?this.pageUrl(this.pagination.currentPage+1):void 0}}};function Og(e,t,n,r,i,a){let o=R(`D4PaginationControls`);return a.paginationPageOptions.length>1?(H(),W(o,{key:0,leftUrl:a.leftUrl,rightUrl:a.rightUrl,paginationPages:i.paginationCopy,paginationPageOptions:a.paginationPageOptions,paginationType:n.pagination.type,onSelectPage:a.jumpToPage},null,8,[`leftUrl`,`rightUrl`,`paginationPages`,`paginationPageOptions`,`paginationType`,`onSelectPage`])):J(``,!0)}var kg=Ws(Dg,[[`render`,Og]]),Ag={props:[`latLng`,`title`],async mounted(){for(var e=this;!window.L;)await new Promise(e=>setTimeout(e,50));let t=window.L,n=t.map(`mapid`).setView(e.latLng,13);t.tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,{attribution:`Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>`,maxZoom:18}).addTo(n),t.marker(e.latLng).addTo(n)}},jg={class:`d4-map-embed`},Mg=[G(`div`,{id:`mapid`,class:`d4-map-embed__map`},null,-1)];function Ng(e,t,n,r,i,a){return H(),U(`div`,jg,Mg)}
139var Pg=Ws(Ag,[[`render`,Ng]]),Fg=o(((e,t)=>{(function(n,r){if(typeof define==`function`&&define.amd)define(`GLightbox`,[`module`],r);else if(e!==void 0)r(t);else{var i={exports:{}};r(i),n.GLightbox=i.exports}})(e,function(e){var t=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),i=r!==null||document.createTouch!==void 0||`ontouchstart`in window||`onmsgesturechange`in window||navigator.msMaxTouchPoints,a=document.getElementsByTagName(`html`)[0],o=function(){var e=void 0,t=document.createElement(`fakeelement`),n={transition:`transitionend`,OTransition:`oTransitionEnd`,MozTransition:`transitionend`,WebkitTransition:`webkitTransitionEnd`};for(e in n)if(t.style[e]!==void 0)return n[e]}(),s=function(){var e=void 0,t=document.createElement(`fakeelement`),n={animation:`animationend`,OAnimation:`oAnimationEnd`,MozAnimation:`animationend`,WebkitAnimation:`webkitAnimationEnd`};for(e in n)if(t.style[e]!==void 0)return n[e]}(),c=Date.now(),l=[],u={},d={selector:`glightbox`,skin:`clean`,closeButton:!0,startAt:0,autoplayVideos:!0,descPosition:`bottom`,width:900,height:506,videosWidth:960,videosHeight:540,beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,onOpen:null,onClose:null,loopAtEnd:!1,touchNavigation:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,jwplayer:{api:null,licenseKey:null,params:{width:`100%`,aspectratio:`16:9`,stretching:`uniform`}},vimeo:{api:`https://player.vimeo.com/api/player.js`,params:{api:1,title:0,byline:0,portrait:0}},youtube:{api:`https://www.youtube.com/iframe_api`,params:{enablejsapi:1,showinfo:0}},openEffect:`zoomIn`,closeEffect:`zoomOut`,slideEffect:`slide`,moreText:`See more`,moreLength:60,lightboxHtml:``,cssEfects:{fade:{in:`fadeIn`,out:`fadeOut`},zoom:{in:`zoomIn`,out:`zoomOut`},slide:{in:`slideInRight`,out:`slideOutLeft`},slide_back:{in:`slideInLeft`,out:`slideOutRight`}}};d.slideHtml=`<div class="gslide">         <div class="gslide-inner-content">            <div class="ginner-container">               <div class="gslide-media">               </div>               <div class="gslide-description">                    <div class="gdesc-inner">                        <h4 class="gslide-title"></h4>                        <div class="gslide-desc"></div>                    </div>               </div>            </div>         </div>       </div>`;function f(){var e={},t=!1,n=0,r=arguments.length;Object.prototype.toString.call(arguments[0])===`[object Boolean]`&&(t=arguments[0],n++);for(var i=function(n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t&&Object.prototype.toString.call(n[r])===`[object Object]`?e[r]=f(!0,e[r],n[r]):e[r]=n[r])};n<r;n++)i(arguments[n]);return e}d.lightboxHtml=`<div id="glightbox-body" class="glightbox-container">            <div class="gloader visible"></div>            <div class="goverlay"></div>            <div class="gcontainer">               <div id="glightbox-slider" class="gslider"></div>               <a class="gnext"></a>               <a class="gprev"></a>               <a class="gclose"></a>            </div>   </div>`;var p={isFunction:function(e){return typeof e==`function`},isString:function(e){return typeof e==`string`},isNode:function(e){return!(!e||!e.nodeType||e.nodeType!=1)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e&&e.length&&isFinite(e.length)},isObject:function(e){return(e===void 0?`undefined`:n(e))===`object`&&e!=null&&!p.isFunction(e)&&!p.isArray(e)},isNil:function(e){return e==null},has:function(e,t){return e!==null&&hasOwnProperty.call(e,t)},size:function(e){if(p.isObject(e)){if(e.keys)return e.keys().length;var t=0;for(var n in e)p.has(e,n)&&t++;return t}return e.length},isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)}};function m(e,t){if((p.isNode(e)||e===window||e===document)&&(e=[e]),p.isArrayLike(e)||p.isObject(e)||(e=[e]),p.size(e)!=0){if(p.isArrayLike(e)&&!p.isObject(e))for(var n=e.length,r=0;r<n&&!1!==t.call(e[r],e[r],r,e);r++);else if(p.isObject(e)){for(var i in e)if(p.has(e,i)&&!1===t.call(e[i],e[i],i,e))break}}}function h(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=e[c]=e[c]||[],i={all:r,evt:null,found:null};return t&&n&&p.size(r)>0&&m(r,function(e,r){if(e.eventName==t&&e.fn.toString()==n.toString())return i.found=!0,i.evt=r,!1}),i}function g(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.onElement,r=t.withCallback,i=t.avoidDuplicate,a=i===void 0||i,o=t.once,s=o!==void 0&&o,c=t.useCapture,l=c!==void 0&&c,u=arguments[2],d=n||[];function f(e){p.isFunction(r)&&r.call(u,e,this),s&&f.destroy()}return p.isString(d)&&(d=document.querySelectorAll(d)),f.destroy=function(){m(d,function(t){var n=h(t,e,f);n.found&&n.all.splice(n.evt,1),t.removeEventListener&&t.removeEventListener(e,f,l)})},m(d,function(t){var n=h(t,e,f);(t.addEventListener&&a&&!n.found||!a)&&(t.addEventListener(e,f,l),n.all.push({eventName:e,fn:f}))}),f}function _(e,t){y(e,t)||(e.classList?e.classList.add(t):e.className+=` `+t)}function v(e,t){var n=t.split(` `);n.length>1?m(n,function(t){v(e,t)}):e.classList?e.classList.remove(t):e.className=e.className.replace(t,``)}function y(e,t){return e.classList?e.classList.contains(t):RegExp(`(^| )`+t+`( |$)`,`gi`).test(e.className)}function b(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(!e||t===``)return!1;if(t==`none`)return p.isFunction(n)&&n(),!1;var r=t.split(` `);m(r,function(t){_(e,`g`+t)}),g(s,{onElement:e,avoidDuplicate:!1,once:!0,withCallback:function(e,t){m(r,function(e){v(t,`g`+e)}),p.isFunction(n)&&n()}})}function x(e){var t=document.createDocumentFragment(),n=document.createElement(`div`);for(n.innerHTML=e;n.firstChild;)t.appendChild(n.firstChild);return t}function S(e,t){for(;e!==document.body;)if(typeof(e=e.parentElement).matches==`function`?e.matches(t):e.msMatchesSelector(t))return e}function C(e){e.style.display=`block`}function w(e){e.style.display=`none`}var T=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments[1],n={href:``,title:``,type:``,description:``,descPosition:`bottom`,effect:``,node:e};if(p.isObject(e)&&!p.isNode(e))return f(n,e);var r=``,i=e.getAttribute(`data-glightbox`),a=e.nodeName.toLowerCase();if(a===`a`&&(r=e.href),a===`img`&&(r=e.src),n.href=r,m(n,function(r,i){p.has(t,i)&&(n[i]=t[i]);var a=e.dataset[i];p.isNil(a)||(n[i]=a)}),n.type||(n.type=ne(r)),p.isNil(i)){if(a==`a`){var o=e.title;p.isNil(o)||o===``||(n.title=o)}if(a==`img`){var s=e.alt;p.isNil(s)||s===``||(n.title=s)}var c=e.getAttribute(`data-description`);p.isNil(c)||c===``||(n.description=c)}else{var l=[];m(n,function(e,t){l.push(`;\\s?`+t)}),l=l.join(`\\s?:|`),i.trim()!==``&&m(n,function(e,t){var r=i,a=RegExp(`s?`+t+`s?:s?(.*?)(`+l+`s?:|$)`),o=r.match(a);o&&o.length&&o[1]&&(n[t]=o[1].trim().replace(/;\s*$/,``))})}var u=e.querySelector(`.glightbox-desc`);u&&(n.description=u.innerHTML);var d=n.type==`video`?t.videosWidth:t.width,h=n.type==`video`?t.videosHeight:t.height;return n.width=p.has(n,`width`)?n.width:d,n.height=p.has(n,`height`)?n.height:h,n},E=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(y(e,`loaded`))return!1;p.isFunction(this.settings.beforeSlideLoad)&&this.settings.beforeSlideLoad(e,n);var a=n.type,o=n.descPosition,s=e.querySelector(`.gslide-media`),c=e.querySelector(`.gslide-title`),d=e.querySelector(`.gslide-desc`),m=e.querySelector(`.gdesc-inner`),h=i;
139if(p.isFunction(this.settings.afterSlideLoad)&&(h=function(){p.isFunction(i)&&i(),t.settings.afterSlideLoad(e,n)}),n.title==``&&n.description==``?m&&m.parentNode.removeChild(m):(c&&n.title!==``?c.innerHTML=n.title:c.parentNode.removeChild(c),d&&n.description!==``?r&&this.settings.moreLength>0?(n.smallDescription=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:50,n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=n;if((e=e.trim()).length<=t)return e;var i=e.substr(0,t-1);return r?i+`... <a href="#" class="desc-more">`+n+`</a>`:i}(n.description,this.settings.moreLength,this.settings.moreText),d.innerHTML=n.smallDescription,function e(t,n){var r=t.querySelector(`.desc-more`);if(!r)return!1;g(`click`,{onElement:r,withCallback:function(t,r){t.preventDefault();var i=document.body,a=S(r,`.gslide-desc`);if(!a)return!1;a.innerHTML=n.description,_(i,`gdesc-open`);var o=g(`click`,{onElement:[i,S(a,`.gslide-description`)],withCallback:function(t,r){t.target.nodeName.toLowerCase()!==`a`&&(v(i,`gdesc-open`),_(i,`gdesc-closed`),a.innerHTML=n.smallDescription,e(a,n),setTimeout(function(){v(i,`gdesc-closed`)},400),o.destroy())}})}})}.apply(this,[d,n])):d.innerHTML=n.description:d.parentNode.removeChild(d),_(s.parentNode,`desc-`+o),_(m.parentNode,`description-`+o)),_(s,`gslide-`+a),_(e,`loaded`),a===`video`)return s.innerHTML=`<div class="gvideo-wrapper"></div>`,void function(e,t,n){var i=this,a=`gvideo`+t.index,o=e.querySelector(`.gvideo-wrapper`),s=t.href,c=location.protocol.replace(`:`,``);if(c==`file`&&(c=`http`),s.match(/vimeo\.com\/([0-9]*)/)){var d=/vimeo.*\/(\d+)/i.exec(s),m=k(this.settings.vimeo.params),h=c+`://player.vimeo.com/video/`+d[1]+`?`+m;O(this.settings.vimeo.api),o.parentNode.style.maxWidth=t.width+`px`,o.style.width=t.width+`px`,o.style.maxHeight=t.height+`px`;var g=D({url:h,callback:function(){te(function(){return typeof Vimeo<`u`},function(){u[a]=new Vimeo.Player(g),p.isFunction(n)&&n()})},allow:`autoplay; fullscreen`,appendTo:o});g.id=a,g.className=`vimeo-video gvideo`,this.settings.autoplayVideos&&!r&&(g.className+=` wait-autoplay`)}if(s.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||s.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)){var v=k(f(this.settings.youtube.params,{playerapiid:a})),y=function(e){var t=``;return t=(e=e.replace(/(>|<)/gi,``).split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]===void 0?e:(t=e[2].split(/[^0-9a-z_\-]/i))[0],t}(s),b=c+`://www.youtube.com/embed/`+y+`?`+v;O(this.settings.youtube.api),o.parentNode.style.maxWidth=t.width+`px`,o.style.width=t.width+`px`,o.style.maxHeight=t.height+`px`;var S=D({url:b,callback:function(){!p.isNil(YT)&&YT.loaded?u[a]=new YT.Player(S):l.push(S),p.isFunction(n)&&n()},allow:`autoplay; fullscreen`,appendTo:o});S.id=a,S.className=`youtube-video gvideo`,this.settings.autoplayVideos&&!r&&(S.className+=` wait-autoplay`)}if(s.match(/\.(mp4|ogg|webm)$/)!==null){var C=`<video id="`+a+`" `;C+=`style="background:#000; width: `+t.width+`px; height: `+t.height+`px;" `,C+=`preload="metadata" `,C+=`x-webkit-airplay="allow" `,C+=`webkit-playsinline="" `,C+=`controls `,C+=`class="gvideo">`;var w=s.toLowerCase().split(`.`).pop(),T={mp4:``,ogg:``,webm:``};for(var E in T[w]=s,T)if(T.hasOwnProperty(E)){var ee=T[E];t.hasOwnProperty(E)&&(ee=t[E]),ee!==``&&(C+=`<source src="`+ee+`" type="video/`+E+`">`)}var ne=x(C+=`</video>`);o.appendChild(ne);var re=document.getElementById(a);if(this.settings.jwplayer!==null&&this.settings.jwplayer.api!==null){this.settings.jwplayer;var ie=this.settings.jwplayer.api;if(!ie)return console.warn(`Missing jwplayer api file`),p.isFunction(n)&&n(),!1;O(ie,function(){var e=f(i.settings.jwplayer.params,{width:t.width+`px`,height:t.height+`px`,file:s});jwplayer.key=i.settings.jwplayer.licenseKey;var r=jwplayer(a);r.setup(e),u[a]=r,r.on(`ready`,function(){_(re=o.querySelector(`.jw-video`),`gvideo`),re.id=a,p.isFunction(n)&&n()})})}else _(re,`html5-video`),u[a]=re,p.isFunction(n)&&n()}}.apply(this,[e,n,h]);if(a===`external`){var b=D({url:n.href,width:n.width,height:n.height,callback:h});s.parentNode.style.maxWidth=n.width+`px`,s.appendChild(b);return}if(a!==`inline`){if(a===`image`){var C=new Image;C.addEventListener(`load`,function(){p.isFunction(h)&&h()},!1),C.src=n.href,s.appendChild(C);return}p.isFunction(h)&&h()}else (function(e,t,n){var r=e.querySelector(`.gslide-media`),i=t.href.split(`#`).pop().trim(),a=document.getElementById(i);if(!a)return!1;var o=a.cloneNode(!0);o.style.height=t.height+`px`,o.style.maxWidth=t.width+`px`,_(o,`ginlined-content`),r.appendChild(o),p.isFunction(n)&&n()}).apply(this,[e,n,h])};
139function D(e){var t=e.url,n=e.width,i=e.height,a=e.allow,o=e.callback,s=e.appendTo,c=document.createElement(`iframe`),l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return c.className=`vimeo-video gvideo`,c.src=t,i&&(c.style.height=r&&l<767?``:i+`px`),n&&(c.style.width=n+`px`),a&&c.setAttribute(`allow`,a),c.onload=function(){_(c,`iframe-ready`),p.isFunction(o)&&o()},s&&s.appendChild(c),c}function O(e,t){if(p.isNil(e))console.error(`Inject videos api error`);else{var n=document.querySelectorAll(`script[src="`+e+`"]`);if(p.isNil(n)||n.length==0){var r=document.createElement(`script`);return r.type=`text/javascript`,r.src=e,r.onload=function(){p.isFunction(t)&&t()},document.body.appendChild(r),!1}p.isFunction(t)&&t()}}function ee(){for(var e=0;e<l.length;e++){var t=l[e],n=new YT.Player(t);u[t.id]=n}}function te(e,t,n,r){if(e())t();else{n||(n=100);var i=void 0,a=setInterval(function(){e()&&(clearInterval(a),i&&clearTimeout(i),t())},n);r&&(i=setTimeout(function(){clearInterval(a)},r))}}function k(e){var t=``,n=0;return m(e,function(e,r){n>0&&(t+=`&amp;`),t+=r+`=`+e,n+=1}),t}window.onYouTubeIframeAPIReady===void 0?window.onYouTubeIframeAPIReady=ee:window.onYouTubeIframeAPIReady=function(){window.onYouTubeIframeAPIReady(),ee()};var ne=function(e){var t=e;return(e=e.toLowerCase()).match(/\.(jpeg|jpg|gif|png|apn|webp|svg)$/)===null?e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||e.match(/\.(mp4|ogg|webm)$/)!==null?`video`:e.indexOf(`#`)>-1&&t.split(`#`).pop().trim()!==``?`inline`:e.includes(`gajax=true`)?`ajax`:`external`:`image`};function re(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;if(t==``)return e.style.webkitTransform=``,e.style.MozTransform=``,e.style.msTransform=``,e.style.OTransform=``,e.style.transform=``,!1;e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t,e.style.transform=t}function ie(e){var t=e.querySelector(`.gslide-media`),n=e.querySelector(`.gslide-description`);_(t,`greset`),re(t,`translate3d(0, 0, 0)`),g(o,{onElement:t,once:!0,withCallback:function(e,n){v(t,`greset`)}}),t.style.opacity=``,n&&(n.style.opacity=``)}var A=function(){function e(t){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.settings=f(d,t||{}),this.effectsClasses=this.getAnimationClasses()}return t(e,[{key:`init`,value:function(){var e=this;this.baseEvents=g(`click`,{onElement:`.`+this.settings.selector,withCallback:function(t,n){t.preventDefault(),e.open(n)}})}},{key:`open`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(this.elements=this.getElements(e),this.elements.length==0)return!1;this.activeSlide=null,this.prevActiveSlideIndex=null,this.prevActiveSlide=null;var t=this.settings.startAt;e&&(t=this.elements.indexOf(e))<0&&(t=0),this.build(),b(this.overlay,this.settings.openEffect==`none`?`none`:this.settings.cssEfects.fade.in);var n=document.body;if(n.style.width=n.offsetWidth+`px`,_(n,`glightbox-open`),_(a,`glightbox-open`),r&&(_(a,`glightbox-mobile`),this.settings.slideEffect=`slide`),this.showSlide(t,!0),this.elements.length==1?(w(this.prevButton),w(this.nextButton)):(C(this.prevButton),C(this.nextButton)),this.lightboxOpen=!0,p.isFunction(this.settings.onOpen)&&this.settings.onOpen(),r&&i&&this.settings.touchNavigation)return function(){var e=this;if(this.events.hasOwnProperty(`touchStart`))return!1;var t=void 0,n=void 0,r=void 0,i=!1,a=!1,o=!1,s=!1,c={},l={},u=(this.slidesContainer,null),d=0,f=0,p=null,m=null,h=null,b=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,x=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,document.body);this.events.doctouchmove=g(`touchmove`,{onElement:document,withCallback:function(e,t){if(y(x,`gdesc-open`))return e.preventDefault(),!1},useCapture:{passive:!1}}),this.events.touchStart=g(`touchstart`,{onElement:x,withCallback:function(t,n){if(!y(x,`gdesc-open`)){var r=t.target;do{if(y(r,`gslide-description`))return;r=r.parentElement}while(r);_(x,`touching`),u=e.getActiveSlide(),p=u.querySelector(`.gslide-image`),m=u.querySelector(`.gslide-media`),h=u.querySelector(`.gslide-description`),e.index,l=t.targetTouches[0],c.pageX=t.targetTouches[0].pageX,c.pageY=t.targetTouches[0].pageY,d=t.targetTouches[0].clientX,f=t.targetTouches[0].clientY}}}),this.events.gestureStart=g(`gesturestart`,{onElement:x,withCallback:function(e,t){p&&(e.preventDefault(),o=!0)}}),this.events.gestureChange=g(`gesturechange`,{onElement:x,withCallback:function(e,t){e.preventDefault(),re(p,`scale(`+e.scale+`)`)}}),this.events.gesturEend=g(`gestureend`,{onElement:x,withCallback:function(e,t){o=!1,e.scale<1?(s=!1,re(p,`scale(1)`)):s=!0}}),this.events.touchMove=g(`touchmove`,{onElement:x,withCallback:function(p,g){if(y(x,`touching`)&&!(y(x,`gdesc-open`)||o||s)){p.preventDefault(),l=p.targetTouches[0];var _=u.querySelector(`.gslide-inner-content`).offsetHeight,v=u.querySelector(`.gslide-inner-content`).offsetWidth,S=p.targetTouches[0].clientX,C=p.targetTouches[0].clientY,w=d-S,T=f-C;if(Math.abs(w)>Math.abs(T)?(i=!1,a=!0):(a=!1,i=!0),i){if(n=l.pageY-c.pageY,Math.abs(n)>=0||i){var E=.75-Math.abs(n)/_;m.style.opacity=E,h&&(h.style.opacity=E),re(m,`translate3d(0, `+n+`px, 0)`)}}else if(t=l.pageX-c.pageX,r=100*t/b,a){if(e.index+1==e.elements.length&&t<-60||e.index-1<0&&t>60)return ie(u),!1;var D=.75-Math.abs(t)/v;m.style.opacity=D,h&&(h.style.opacity=D),re(m,`translate3d(`+r+`%, 0, 0)`)}}},useCapture:{passive:!1}}),this.events.touchEnd=g(`touchend`,{onElement:x,withCallback:function(o,s){n=l.pageY-c.pageY,t=l.pageX-c.pageX,r=100*t/b,v(x,`touching`);var d=u.querySelector(`.gslide-inner-content`).offsetHeight,f=u.querySelector(`.gslide-inner-content`).offsetWidth;if(i){var p=d/2;i=!1,Math.abs(n)>=p?e.close():ie(u);return}if(a){a=!1;var m=`prev`,h=!0;if(t<0&&(m=`next`,t=Math.abs(t)),m==`prev`&&e.index-1<0&&(h=!1),m==`next`&&e.index+1>=e.elements.length&&(h=!1),h&&t>=f/2-90)return void(m==`next`?e.nextSlide():e.prevSlide());ie(u)}}})}.apply(this),!1;this.settings.keyboardNavigation&&function(){var e=this;if(this.events.hasOwnProperty(`keyboard`))return!1;this.events.keyboard=g(`keydown`,{onElement:window,withCallback:function(t,n){var r=(t=t||window.event).keyCode;r==39&&e.nextSlide(),r==37&&e.prevSlide(),r==27&&e.close()}})}.apply(this)}},{key:`showSlide`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];C(this.loader),this.index=t;var r=this.slidesContainer.querySelector(`.current`);r&&v(r,`current`),this.slideAnimateOut();var i=this.slidesContainer.querySelectorAll(`.gslide`)[t];if(C(this.slidesContainer),y(i,`loaded`))this.slideAnimateIn(i,n),w(this.loader);else{C(this.loader);var a=T(this.elements[t],this.settings);a.index=t,E.apply(this,[i,a,function(){w(e.loader),e.slideAnimateIn(i,n)}])}this.preloadSlide(t+1),this.preloadSlide(t-1),v(this.nextButton,`disabled`),v(this.prevButton,`disabled`),t===0?_(this.prevButton,`disabled`):t===this.elements.length-1&&!0!==this.settings.loopAtEnd&&_(this.nextButton,`disabled`),this.activeSlide=i}},{key:`preloadSlide`,value:function(e){var t=this;if(e<0||e>this.elements.length||p.isNil(this.elements[e]))return!1;var n=this.slidesContainer.querySelectorAll(`.gslide`)[e];if(y(n,`loaded`))return!1;var r=T(this.elements[e],this.settings);r.index=e;var i=r.sourcetype;i==`video`||i==`external`?setTimeout(function(){E.apply(t,[n,r])},200):E.apply(this,[n,r])}},{key:`prevSlide`,value:function(){var e=this.index-1;if(e<0)return!1;this.goToSlide(e)}},{key:`nextSlide`,value:function(){var e=this.index+1;if(e>this.elements.length)return!1;this.goToSlide(e)}},{key:`goToSlide`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0];e>-1&&(this.prevActiveSlide=this.activeSlide,this.prevActiveSlideIndex=this.index,e<this.elements.length?this.showSlide(e):!0===this.settings.loopAtEnd&&(e=0,this.showSlide(e)))}},{key:`slideAnimateIn`,value:function(e,t){var n=this,i=e.querySelector(`.gslide-media`),a=e.querySelector(`.gslide-description`),o={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide},s={index:this.index,slide:this.activeSlide};if(i.offsetWidth>0&&a&&(w(a),e.querySelector(`.ginner-container`).style.maxWidth=i.offsetWidth+`px`,a.style.display=``),v(e,this.effectsClasses),t)b(e,this.settings.openEffect,function(){!r&&n.settings.autoplayVideos&&n.playSlideVideo(e),p.isFunction(n.settings.afterSlideChange)&&n.settings.afterSlideChange.apply(n,[o,s])});else{var c=this.settings.slideEffect,l=c===`none`?c:this.settings.cssEfects[c].in;this.prevActiveSlideIndex>this.index&&this.settings.slideEffect==`slide`&&(l=this.settings.cssEfects.slide_back.in),b(e,l,function(){!r&&n.settings.autoplayVideos&&n.playSlideVideo(e),p.isFunction(n.settings.afterSlideChange)&&n.settings.afterSlideChange.apply(n,[o,s])})}_(e,`current`)}},{key:`slideAnimateOut`,value:function(){if(!this.prevActiveSlide)return!1;var e=this.prevActiveSlide;v(e,this.effectsClasses),_(e,`prev`);var t=this.settings.slideEffect,n=t===`none`?t:this.settings.cssEfects[t].out;this.stopSlideVideo(e),p.isFunction(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide},{index:this.index,slide:this.activeSlide}]),this.prevActiveSlideIndex>this.index&&this.settings.slideEffect==`slide`&&(n=this.settings.cssEfects.slide_back.out),b(e,n,function(){var t=e.querySelector(`.gslide-media`),n=e.querySelector(`.gslide-description`);
139t.style.transform=``,v(t,`greset`),t.style.opacity=``,n&&(n.style.opacity=``),v(e,`prev`)})}},{key:`stopSlideVideo`,value:function(e){p.isNumber(e)&&(e=this.slidesContainer.querySelectorAll(`.gslide`)[e]);var t=e?e.querySelector(`.gvideo`):null;if(!t)return!1;var n=t.id;if(u&&u.hasOwnProperty(n)){var r=u[n];y(t,`vimeo-video`)&&r.pause(),y(t,`youtube-video`)&&r.pauseVideo(),y(t,`jw-video`)&&r.pause(!0),y(t,`html5-video`)&&r.pause()}}},{key:`playSlideVideo`,value:function(e){p.isNumber(e)&&(e=this.slidesContainer.querySelectorAll(`.gslide`)[e]);var t=e.querySelector(`.gvideo`);if(!t)return!1;var n=t.id;return u&&(p.has(u,n)||y(t,`wait-autoplay`))?(te(function(){return y(t,`iframe-ready`)&&p.has(u,n)},function(){var e=u[n];y(t,`vimeo-video`)&&te(function(){return e.play},function(){e.play()}),y(t,`youtube-video`)&&te(function(){return e.playVideo},function(){e.playVideo()}),y(t,`jw-video`)&&te(function(){return e.play},function(){e.play()}),y(t,`html5-video`)&&e.play(),setTimeout(function(){v(t,`wait-autoplay`)},300)},50,4e3),!1):void 0}},{key:`setElements`,value:function(e){this.settings.elements=e}},{key:`getElements`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(this.elements=[],!p.isNil(this.settings.elements)&&p.isArray(this.settings.elements))return this.settings.elements;var t=!1;if(e!==null){var n=e.getAttribute(`data-gallery`);n&&n!==``&&(t=document.querySelectorAll(`[data-gallery="`+n+`"]`))}return t==0&&(t=document.querySelectorAll(`.`+this.settings.selector)),t=Array.prototype.slice.call(t)}},{key:`getActiveSlide`,value:function(){return this.slidesContainer.querySelectorAll(`.gslide`)[this.index]}},{key:`getActiveSlideIndex`,value:function(){return this.index}},{key:`getAnimationClasses`,value:function(){var e=[];for(var t in this.settings.cssEfects)if(this.settings.cssEfects.hasOwnProperty(t)){var n=this.settings.cssEfects[t];e.push(`g`+n.in),e.push(`g`+n.out)}return e.join(` `)}},{key:`build`,value:function(){var e=this;if(this.built)return!1;var t=x(this.settings.lightboxHtml);document.body.appendChild(t);var n=document.getElementById(`glightbox-body`);this.modal=n;var r=n.querySelector(`.gclose`);this.prevButton=n.querySelector(`.gprev`),this.nextButton=n.querySelector(`.gnext`),this.overlay=n.querySelector(`.goverlay`),this.loader=n.querySelector(`.gloader`),this.slidesContainer=document.getElementById(`glightbox-slider`),this.events={},_(this.modal,`glightbox-`+this.settings.skin),this.settings.closeButton&&r&&(this.events.close=g(`click`,{onElement:r,withCallback:function(t,n){t.preventDefault(),e.close()}})),r&&!this.settings.closeButton&&r.parentNode.removeChild(r),this.nextButton&&(this.events.next=g(`click`,{onElement:this.nextButton,withCallback:function(t,n){t.preventDefault(),e.nextSlide()}})),this.prevButton&&(this.events.prev=g(`click`,{onElement:this.prevButton,withCallback:function(t,n){t.preventDefault(),e.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=g(`click`,{onElement:n,withCallback:function(t,n){S(t.target,`.ginner-container`)||y(t.target,`gnext`)||y(t.target,`gprev`)||e.close()}})),m(this.elements,function(){var t=x(e.settings.slideHtml);e.slidesContainer.appendChild(t)}),i&&_(a,`glightbox-touch`),this.built=!0}},{key:`reload`,value:function(){this.init()}},{key:`close`,value:function(){var e=this;if(this.closing)return!1;this.closing=!0,this.stopSlideVideo(this.activeSlide),_(this.modal,`glightbox-closing`),b(this.overlay,this.settings.openEffect==`none`?`none`:this.settings.cssEfects.fade.out),b(this.activeSlide,this.settings.closeEffect,function(){if(e.activeSlide=null,e.prevActiveSlideIndex=null,e.prevActiveSlide=null,e.built=!1,e.events)for(var t in e.events)e.events.hasOwnProperty(t)&&e.events[t].destroy();var n=document.body;v(n,`glightbox-open`),v(a,`glightbox-open`),v(n,`touching`),v(n,`gdesc-open`),n.style.width=``,e.modal.parentNode.removeChild(e.modal),p.isFunction(e.settings.onClose)&&e.settings.onClose(),e.closing=null})}},{key:`destroy`,value:function(){this.close(),this.baseEvents.destroy()}}]),e}();e.exports=function(){var e=new A(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{});return e.init(),e}}
139)})),Ig=o(((e,t)=>{var n=t.exports=function(e){this.top=e.top,this.left=e.left,this.width=e.width,this.spacing=e.spacing,this.targetRowHeight=e.targetRowHeight,this.targetRowHeightTolerance=e.targetRowHeightTolerance,this.minAspectRatio=this.width/e.targetRowHeight*(1-e.targetRowHeightTolerance),this.maxAspectRatio=this.width/e.targetRowHeight*(1+e.targetRowHeightTolerance),this.edgeCaseMinRowHeight=e.edgeCaseMinRowHeight,this.edgeCaseMaxRowHeight=e.edgeCaseMaxRowHeight,this.widowLayoutStyle=e.widowLayoutStyle,this.isBreakoutRow=e.isBreakoutRow,this.items=[],this.height=0};n.prototype={addItem:function(e){var t=this.items.concat(e),n=this.width-(t.length-1)*this.spacing,r=t.reduce(function(e,t){return e+t.aspectRatio},0),i=n/this.targetRowHeight,a,o,s;return this.isBreakoutRow&&this.items.length===0&&e.aspectRatio>=1?(this.items.push(e),this.completeLayout(n/e.aspectRatio,`justify`),!0):r<this.minAspectRatio?(this.items.push(Object.assign({},e)),!0):r>this.maxAspectRatio?this.items.length===0?(this.items.push(Object.assign({},e)),this.completeLayout(n/r,`justify`),!0):(a=this.width-(this.items.length-1)*this.spacing,o=this.items.reduce(function(e,t){return e+t.aspectRatio},0),s=a/this.targetRowHeight,Math.abs(r-i)>Math.abs(o-s)?(this.completeLayout(a/o,`justify`),!1):(this.items.push(Object.assign({},e)),this.completeLayout(n/r,`justify`),!0)):(this.items.push(Object.assign({},e)),this.completeLayout(n/r,`justify`),!0)},isLayoutComplete:function(){return this.height>0},completeLayout:function(e,t){var n=this.left,r=this.width-(this.items.length-1)*this.spacing,i,a,o,s,c,l;(t===void 0||[`justify`,`center`,`left`].indexOf(t)<0)&&(t=`left`),a=Math.max(this.edgeCaseMinRowHeight,Math.min(e,this.edgeCaseMaxRowHeight)),e===a?(this.height=e,i=1):(this.height=a,i=r/a/(r/e)),this.items.forEach(function(e){e.top=this.top,e.width=e.aspectRatio*this.height*i,e.height=this.height,e.left=n,n+=e.width+this.spacing},this),t===`justify`?(n-=this.spacing+this.left,o=(n-this.width)/this.items.length,s=this.items.map(function(e,t){return Math.round((t+1)*o)}),this.items.length===1?(c=this.items[0],c.width-=Math.round(o)):this.items.forEach(function(e,t){t>0?(e.left-=s[t-1],e.width-=s[t]-s[t-1]):e.width-=s[t]})):t===`center`&&(l=(this.width-n)/2,this.items.forEach(function(e){e.left+=l+this.spacing},this))},forceComplete:function(e,t){typeof t==`number`?this.completeLayout(t,this.widowLayoutStyle):this.completeLayout(this.targetRowHeight,this.widowLayoutStyle)},getItems:function(){return this.items}}})),Lg=l(o(((e,t)=>{var n=Ig();function r(e,t){var r;return e.fullWidthBreakoutRowCadence!==!1&&(t._rows.length+1)%e.fullWidthBreakoutRowCadence===0&&(r=!0),new n({top:t._containerHeight,left:e.containerPadding.left,width:e.containerWidth-e.containerPadding.left-e.containerPadding.right,spacing:e.boxSpacing.horizontal,targetRowHeight:e.targetRowHeight,targetRowHeightTolerance:e.targetRowHeightTolerance,edgeCaseMinRowHeight:e.edgeCaseMinRowHeight,edgeCaseMaxRowHeight:e.edgeCaseMaxRowHeight,rightToLeft:!1,isBreakoutRow:r,widowLayoutStyle:e.widowLayoutStyle})}function i(e,t,n){return t._rows.push(n),t._layoutItems=t._layoutItems.concat(n.getItems()),t._containerHeight+=n.height+e.boxSpacing.vertical,n.items}function a(e,t,n){var a=[],o,s,c;return e.forceAspectRatio&&n.forEach(function(t){t.forcedAspectRatio=!0,t.aspectRatio=e.forceAspectRatio}),n.some(function(n,c){if(isNaN(n.aspectRatio))throw Error(`Item `+c+` has an invalid aspect ratio`);if(s||(s=r(e,t)),o=s.addItem(n),s.isLayoutComplete()){if(a=a.concat(i(e,t,s)),t._rows.length>=e.maxNumRows)return s=null,!0;if(s=r(e,t),!o&&(o=s.addItem(n),s.isLayoutComplete())){if(a=a.concat(i(e,t,s)),t._rows.length>=e.maxNumRows)return s=null,!0;s=r(e,t)}}}),s&&s.getItems().length&&e.showWidows&&(t._rows.length?(c=t._rows[t._rows.length-1].isBreakoutRow?t._rows[t._rows.length-1].targetRowHeight:t._rows[t._rows.length-1].height,s.forceComplete(!1,c)):s.forceComplete(!1),a=a.concat(i(e,t,s)),e._widowCount=s.getItems().length),t._containerHeight-=e.boxSpacing.vertical,t._containerHeight+=e.containerPadding.bottom,{containerHeight:t._containerHeight,widowCount:e._widowCount,boxes:t._layoutItems}}t.exports=function(e,t){var n={},r={},i={containerWidth:1060,containerPadding:10,boxSpacing:10,targetRowHeight:320,targetRowHeightTolerance:.25,maxNumRows:1/0,forceAspectRatio:!1,showWidows:!0,fullWidthBreakoutRowCadence:!1,widowLayoutStyle:`left`},o={},s={};return t=t||{},n=Object.assign(i,t),n.edgeCaseMinRowHeight=n.edgeCaseMinRowHeight===void 0?.5*n.targetRowHeight:n.edgeCaseMinRowHeight,n.edgeCaseMaxRowHeight=n.edgeCaseMaxRowHeight===void 0?2*n.targetRowHeight:n.edgeCaseMaxRowHeight,o.top=isNaN(parseFloat(n.containerPadding.top))?n.containerPadding:n.containerPadding.top,o.right=isNaN(parseFloat(n.containerPadding.right))?n.containerPadding:n.containerPadding.right,o.bottom=isNaN(parseFloat(n.containerPadding.bottom))?n.containerPadding:n.containerPadding.bottom,o.left=isNaN(parseFloat(n.containerPadding.left))?n.containerPadding:n.containerPadding.left,s.horizontal=isNaN(parseFloat(n.boxSpacing.horizontal))?n.boxSpacing:n.boxSpacing.horizontal,s.vertical=isNaN(parseFloat(n.boxSpacing.vertical))?n.boxSpacing:n.boxSpacing.vertical,n.containerPadding=o,n.boxSpacing=s,r._layoutItems=[],r._awakeItems=[],r._inViewportItems=[],r._leadingOrphans=[],r._trailingOrphans=[],r._containerHeight=n.containerPadding.top,r._rows=[],r._orphans=[],n._widowCount=0,a(n,r,e.map(function(e){return e.width&&e.height?{aspectRatio:e.width/e.height}:{aspectRatio:e}}))}}))(),1),Rg=l(Fg(),1),zg=`position:absolute;
139left:0;top:-100%;width:100%;height:1px;margin:1px 0 0;border:none;opacity:0;pointer-events:none;`;function Bg(e,t){Array.from(e.querySelectorAll(`iframe.width-observer`)).forEach(e=>e.remove());let n=document.createElement(`iframe`);return n.style.cssText=zg,n.className=`width-observer`,n.setAttribute(`tabindex`,`-1`),n.setAttribute(`aria-hidden`,`true`),n.onload=()=>{n.contentWindow.onresize=()=>{t(e)}},e.appendChild(n),n}function Vg(e,t=!0){if(!e)return;let n=e.querySelector(`.widget-spacing-helper`),{containerHeight:r,boxes:i}=(0,Lg.default)(JSON.parse(e.getAttribute(`data-aspect-ratios`)),{containerWidth:e.offsetWidth,containerPadding:0,boxSpacing:n.offsetWidth,targetRowHeight:270,edgeCaseMinRowHeight:20,edgeCaseMaxRowHeight:800});if(e.style.height=r+`px`,e.style.position=`relative`,[].forEach.call(e.querySelectorAll(`.gallery-item`),(e,t)=>{e.style.position=`absolute`;for(let n of[`top`,`left`,`width`,`height`])e.style[n]=i[t][n]+`px`}),t){let t=(0,ed.default)(()=>{document.querySelector(`html.dnd-colresizer`)?t():(Vg(e,!1),window.LAZYLOADER&&window.LAZYLOADER.update())},100);Bg(e,t),top!==self&&Bg(n,t)}}var Hg=()=>{document.querySelectorAll(`.d4-image-lightbox`).forEach(e=>{let t=e,n=new Rg.default({elements:[{href:t.href,type:`image`,description:t.getAttribute(`data-description`)||``}],openEffect:`none`,closeEffect:`none`});t.addEventListener(`click`,e=>{e.preventDefault(),n.open()})}),[].forEach.call(document.querySelectorAll(`.d4-gallery`),e=>{var t;Vg(e),window.LAZYLOADER&&window.LAZYLOADER.update(),new Rg.default({selector:`zone #`+((t=e.parentElement)==null?void 0:t.id)+` a`,openEffect:`none`,closeEffect:`none`,moreLength:0})})};function Ug(){if(/\bq=([^&]+)/.test(location.search)){let e=decodeURIComponent(RegExp.$1).replace(/\+/g,` `);for(let t of document.querySelectorAll(`.d4-theme-search__input`))t.setAttribute(`value`,e)}}function Wg(){let e=document.querySelectorAll(`.skip-link:not([data-skip-link])`);if(e.length){let t=e=>{let t=e.target;t.getAttribute(`data-tabindex`)&&(t.removeAttribute(`tabindex`),t.removeAttribute(`data-tabindex`))};Array.from(e).forEach(e=>{e.setAttribute(`data-skip-link`,`true`),e.addEventListener(`click`,e=>{let n=document.getElementById(e.target.href.split(`#`)[1]);n&&n.getAttribute(`tabindex`)!==`-1`&&(e.preventDefault(),n.setAttribute(`tabindex`,`-1`),n.setAttribute(`data-tabindex`,`true`),n.addEventListener(`blur`,t),n.addEventListener(`focusout`,t),n.focus())})})}}function Gg(){(`ontouchstart`in window||window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture||window.DocumentTouch&&document instanceof DocumentTouch)&&document.documentElement.classList.add(`touch`)}var Kg=class e{constructor(e){this.compare=e,this.heapArray=[],this._limit=0}static getChildrenIndexOf(e){return[2*e+1,2*e+2]}static getParentIndexOf(e){if(e<=0)return-1;let t=e%2?1:2;return Math.floor((e-t)/2)}push(e){return this._sortNodeUp(this.heapArray.push(e)-1),!0}length(){return this.heapArray.length}peek(){return this.heapArray[0]}pop(){let e=this.heapArray.pop();return this.length()>0&&e!==void 0?this.replace(e):e}replace(e){let t=this.heapArray[0];return this.heapArray[0]=e,this._sortNodeDown(0),t}size(){return this.length()}_moveNode(e,t){[this.heapArray[e],this.heapArray[t]]=[this.heapArray[t],this.heapArray[e]]}_sortNodeDown(t){let n=t<this.heapArray.length-1,r=this.heapArray[t],i=(e,t)=>(this.heapArray.length>t&&this.compare(this.heapArray[t],this.heapArray[e])<0&&(e=t),e);for(;n;){let a=e.getChildrenIndexOf(t),o=a.reduce(i,a[0]),s=this.heapArray[o];s!==void 0&&this.compare(r,s)>0?(this._moveNode(t,o),t=o):n=!1}}_sortNodeUp(t){let n=t>0;for(;n;){let r=e.getParentIndexOf(t);r>=0&&this.compare(this.heapArray[r],this.heapArray[t])>0?(this._moveNode(t,r),t=r):n=!1}}};function qg(e,t){return e.prio-t.prio||e.counter-t.counter}var Jg=class{constructor(e,t){this.maxConcurrent=e||1,this.minCycle=t||0,this.queueRunning=new Map,this.queueWaiting=new Kg(qg),this.lastRun=0,this.nextTimer=null,this.counter=0}tryRun(){for(;this.queueWaiting.size()>0&&this.queueRunning.size<this.maxConcurrent;){if(Date.now()-this.lastRun<this.minCycle)return void(this.nextTimer===null&&(this.nextTimer=new Promise((e=>setTimeout((()=>{this.nextTimer=null,this.tryRun(),e()}),this.minCycle-Date.now()+this.lastRun)))));let e=this.queueWaiting.pop();if(e!==void 0){let t,n={wait:new Promise((e=>{t=e})),signal:t},r={hash:e.hash,prio:e.prio,finish:n};if(this.queueRunning.has(e.hash))throw Error(`async-await-queue: duplicate hash `+e.hash);this.queueRunning.set(e.hash,r),this.lastRun=Date.now(),e.start.signal()}}}end(e){let t=this.queueRunning.get(e);if(t===void 0)throw Error(`async-await-queue: queue desync for `+e);this.queueRunning.delete(e),t.finish.signal(),this.tryRun()}async wait(e,t){var n=this;let r=t==null?0:t,i,a=new Promise((e=>{i=e})),o={hash:e,prio:r,start:{signal:i,wait:a},counter:n.counter++};n.queueWaiting.push(o),n.tryRun(),await a,n.lastRun=Date.now()}run(e,t){let n=t==null?0:t,r=Symbol();return this.wait(r,n).then(e).finally((()=>{this.end(r)}))}stat(){return{running:this.queueRunning.size,waiting:this.queueWaiting.size(),last:this.lastRun}}async flush(e){for(var t=this;t.queueRunning.size>0||t.queueWaiting.size()>0;){let n=t.queueWaiting.peek();if(n&&await n.start.wait,e!==void 0&&t.queueWaiting.size()<e)return;t.queueRunning.size>0&&await t.queueRunning.values().next().value.finish.wait}}};function Yg(e,t,n){var r,i,a;t===void 0&&(t=50),n===void 0&&(n={});var o=(r=n.isImmediate)!=null&&r,s=(i=n.callback)!=null&&i,c=n.maxWait,l=Date.now(),u=[];function d(){if(c!==void 0){var e=Date.now()-l;if(e+t>=c)return c-e}return t}var f=function(){var t=[].slice.call(arguments),n=this;return new Promise(function(r,i){var c=o&&a===void 0;if(a!==void 0&&clearTimeout(a),a=setTimeout(function(){if(a=void 0,l=Date.now(),!o){var r=e.apply(n,t);s&&s(r),u.forEach(function(e){return(0,e.resolve)(r)}),u=[]}},d()),c){var f=e.apply(n,t);return s&&s(f),r(f)}u.push({resolve:r,reject:i})})};return f.cancel=function(e){a!==void 0&&clearTimeout(a),u.forEach(function(t){return(0,t.reject)(e)}),u=[]},f}
139var Xg=[`input:not([inert])`,`select:not([inert])`,`textarea:not([inert])`,`a[href]:not([inert])`,`button:not([inert])`,`[tabindex]:not(slot):not([inert])`,`audio[controls]:not([inert])`,`video[controls]:not([inert])`,`[contenteditable]:not([contenteditable="false"]):not([inert])`,`details>summary:first-of-type:not([inert])`,`details:not([inert])`],Zg=Xg.join(`,`),Qg=typeof Element>`u`,$g=Qg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,e_=!Qg&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},t_=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)==null?void 0:r.call(t,`inert`);return i===``||i===`true`||n&&t&&e(t.parentNode)},n_=function(e){var t,n=e==null||(t=e.getAttribute)==null?void 0:t.call(e,`contenteditable`);return n===``||n===`true`},r_=function(e,t,n){if(t_(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Zg));return t&&$g.call(e,Zg)&&r.unshift(e),r=r.filter(n),r},i_=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!t_(o,!1))if(o.tagName===`SLOT`){var s=o.assignedElements(),c=e(s.length?s:o.children,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:o,candidates:c})}else{$g.call(o,Zg)&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var l=o.shadowRoot||typeof r.getShadowRoot==`function`&&r.getShadowRoot(o),u=!t_(l,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(l&&u){var d=e(l===!0?o.children:l.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:o,candidates:d})}else a.unshift.apply(a,o.children)}}return i},a_=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},o_=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||n_(e))&&!a_(e)?0:e.tabIndex},s_=function(e,t){var n=o_(e);return n<0&&t&&!a_(e)?0:n},c_=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},l_=function(e){return e.tagName===`INPUT`},u_=function(e){return l_(e)&&e.type===`hidden`},d_=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},f_=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},p_=function(e){if(!e.name)return!0;var t=e.form||e_(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=f_(r,e.form);return!i||i===e},m_=function(e){return l_(e)&&e.type===`radio`},h_=function(e){return m_(e)&&!p_(e)},g_=function(e){var t,n=e&&e_(e),r=(t=n)==null?void 0:t.host,i=!1;if(n&&n!==e){var a,o,s;for(i=!!((a=r)!=null&&(o=a.ownerDocument)!=null&&o.contains(r)||e!=null&&(s=e.ownerDocument)!=null&&s.contains(e));!i&&r;){var c,l,u;n=e_(r),r=(c=n)==null?void 0:c.host,i=!!((l=r)!=null&&(u=l.ownerDocument)!=null&&u.contains(r))}}return i},__=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},v_=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility===`hidden`)return!0;var i=$g.call(e,`details>summary:first-of-type`)?e.parentElement:e;if($g.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=e_(e);
139if(o&&!o.shadowRoot&&r(o)===!0)return __(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(g_(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return __(e);return!1},y_=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return $g.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},b_=function(e,t){return!(t.disabled||t_(t)||u_(t)||v_(t,e)||d_(t)||y_(t))},x_=function(e,t){return!(h_(t)||o_(t)<0||!b_(e,t))},S_=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},C_=function e(t){var n=[],r=[];return t.forEach(function(t,i){var a=!!t.scopeParent,o=a?t.scopeParent:t,s=s_(o,a),c=a?e(t.candidates):o;s===0?a?n.push.apply(n,c):n.push(o):r.push({documentOrder:i,tabIndex:s,item:t,isScope:a,content:c})}),r.sort(c_).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},w_=function(e,t){return t=t||{},C_(t.getShadowRoot?i_([e],t.includeContainer,{filter:x_.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:S_}):r_(e,t.includeContainer,x_.bind(null,t)))},T_=function(e,t){return t=t||{},t.getShadowRoot?i_([e],t.includeContainer,{filter:b_.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r_(e,t.includeContainer,b_.bind(null,t))},E_=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return $g.call(e,Zg)===!1?!1:x_(t,e)},D_=Xg.concat(`iframe`).join(`,`),O_=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return $g.call(e,D_)===!1?!1:b_(t,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 A_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?k_(Object(n),!0).forEach(function(t){j_(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 j_(e,t,n){return t=N_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M_(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function N_(e){var t=M_(e,`string`);return typeof t==`symbol`?t:String(t)}var P_={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},F_=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},I_=function(e){return(e==null?void 0:e.key)===`Escape`||(e==null?void 0:e.key)===`Esc`||(e==null?void 0:e.keyCode)===27},L_=function(e){return(e==null?void 0:e.key)===`Tab`||(e==null?void 0:e.keyCode)===9},R_=function(e){return L_(e)&&!e.shiftKey},z_=function(e){return L_(e)&&e.shiftKey},B_=function(e){return setTimeout(e,0)},V_=function(e,t){var n=-1;return e.every(function(e,r){return t(e)?(n=r,!1):!0}),n},H_=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},U_=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},W_=[],G_=function(e,t){var n=(t==null?void 0:t.document)||document,r=(t==null?void 0:t.trapStack)||W_,i=A_({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:R_,isKeyBackward:z_},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof(t==null?void 0:t.composedPath)==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(n==null?void 0:n.includes(r))||i.find(function(t){return t===e})})},l=function(e){var t=i[e];if(typeof t==`function`){var r=[...arguments].slice(1);t=t.apply(void 0,r)}if(t===!0&&(t=void 0),!t){if(t===void 0||t===!1)return t;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var a=t;if(typeof t==`string`&&(a=n.querySelector(t),!a))throw Error(`\`${e}\` as selector refers to no known node`);return a},u=function(){var e=l(`initialFocus`);if(e===!1)return!1;if(e===void 0||!O_(e,i.tabbableOptions))if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=w_(e,i.tabbableOptions),n=T_(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return E_(e)}),s=n.slice().reverse().find(function(e){return E_(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return o_(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return E_(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return E_(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},f=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&n.shadowRoot.activeElement!==null?e(n.shadowRoot):n},p=function e(t){if(t!==!1&&t!==f(document)){if(!t||!t.focus){e(u());return}t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,F_(t)&&t.select()}},m=function(e){var t=l(`setReturnFocus`,e);return t||(t===!1?!1:e)},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r===void 0?!1:r;t=t||U_(n),d();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=V_(a.tabbableGroups,function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||O_(t,i.tabbableOptions)&&!E_(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=o_(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else L_(n)||(s=f.nextTabbableNode(t,!1))}else{var g=V_(a.tabbableGroups,function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(f.container===t||O_(t,i.tabbableOptions)&&!E_(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=o_(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else L_(n)||(s=f.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(U_(e),e)>
139=0)){if(H_(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}H_(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=U_(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode)if(o_(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var d=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<l.length&&(r=l[d+1],o=!1):d-1>=0&&(r=l[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return o_(e)>0})})||(o=!1);else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(L_(e)&&e.preventDefault(),p(n))},y=function(e){if(I_(e)&&H_(i.escapeDeactivates,e)!==!1){e.preventDefault(),o.deactivate();return}(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){c(U_(e),e)>=0||H_(i.clickOutsideDeactivates,e)||H_(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},x=function(){if(a.active)return P_.activateTrap(r,o),a.delayInitialFocusTimer=i.delayInitialFocus?B_(function(){p(u())}):p(u()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,b,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),o},S=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,b,!0),n.removeEventListener(`keydown`,y,!0),o},C=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}):void 0,w=function(){C&&(C.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){C.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),r=s(e,`onPostActivate`),i=s(e,`checkCanFocusTrap`);i||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=n.activeElement,t==null||t();var o=function(){i&&d(),x(),w(),r==null||r()};return i?(i(a.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!a.active)return this;var t=A_({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,S(),a.active=!1,a.paused=!1,w(),P_.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`returnFocus`,`returnFocusOnDeactivate`);n==null||n();var d=function(){B_(function(){u&&p(m(a.nodeFocusedBeforeActivation)),c==null||c()})};return u&&l?(l(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(a.paused||!a.active)return this;var t=s(e,`onPause`),n=s(e,`onPostPause`);return a.paused=!0,t==null||t(),S(),w(),n==null||n(),this},unpause:function(e){if(!a.paused||!a.active)return this;var t=s(e,`onUnpause`),n=s(e,`onPostUnpause`);return a.paused=!1,t==null||t(),d(),x(),w(),n==null||n(),this},updateContainerElements:function(e){return a.containers=[].concat(e).filter(
139Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),a.active&&d(),w(),this}},o.updateContainerElements(e),o},K_=Object.defineProperty,q_=Object.getOwnPropertySymbols,J_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable,X_=(e,t,n)=>t in e?K_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z_=(e,t)=>{for(var n in t||(t={}))J_.call(t,n)&&X_(e,n,t[n]);if(q_)for(var n of q_(t))Y_.call(t,n)&&X_(e,n,t[n]);return e},$=(e,t,n)=>(X_(e,typeof t==`symbol`?t:t+``,n),n),Q_=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),$_=(e,t=document,n=!1)=>e?e instanceof Element?e:typeof e==`string`?n?t.querySelector(`:scope > ${e}`):t.querySelector(e):null:null,ev=(e=100)=>new Promise(t=>e?setTimeout(t,e):t()),tv=()=>typeof window>`u`?null:(document.documentElement.style.setProperty(`--dvh`,`${window.innerHeight*.01}px`),window.innerHeight*.01),nv=class extends Error{constructor(e){super(e),this.name=`Bartender error`}},rv=class{constructor(e,t=!0){$(this,`_name`,``),$(this,`_enabled`,!0),$(this,`el`),this.el=document.createElement(`div`),this.el.classList.add(`bartender__overlay`);try{this.name=e}catch(t){throw t instanceof DOMException?new nv(`Name '${e}' is not valid HTML class name`):new nv(t)}this.enabled=t}destroy(){return this.el.remove(),this}get name(){return this._name}set name(e){this.el.classList.remove(`bartender__overlay--${this._name}`),this.el.classList.add(`bartender__overlay--${e}`),this._name=e}get enabled(){return this._enabled}set enabled(e){e===!0?this.el.classList.remove(`bartender__overlay--transparent`):this.el.classList.add(`bartender__overlay--transparent`),this._enabled=e}show(){return this.el.classList.add(`bartender__overlay--visible`),this}hide(){return this.el.classList.remove(`bartender__overlay--visible`),this}},iv=class{constructor(e,t={}){$(this,`debug`,!1),$(this,`initialized`,!1),$(this,`overlayObj`),$(this,`_name`,``),$(this,`el`),$(this,`_position`,`left`),$(this,`_mode`,`float`),$(this,`_overlay`,!0),$(this,`_permanent`,!1),$(this,`_scrollTop`,!0),$(this,`_focusTrap`,!1),$(this,`isOpened`,!1),$(this,`trap`);var n,r,i,a,o,s;if(!e)throw new nv(`Bar name is required`);this.overlayObj=new rv(e,this.overlay),this.name=e;let c=$_(t.el||null);if(!c)throw new nv(`Content element for bar '${this.name}' is required`);this.el=c,this.el.classList.add(`bartender__bar`,`bartender__bar--closed`),this.el.setAttribute(`tabindex`,`-1`),this.el.setAttribute(`aria-hidden`,`true`),this.position=(n=t.position)==null?this._position:n,this.mode=(r=t.mode)==null?this._mode:r,this.overlay=(i=t.overlay)==null?this._overlay:i,this.permanent=(a=t.permanent)==null?this._permanent:a,this.scrollTop=(o=t.scrollTop)==null?this._scrollTop:o,this.focusTrap=(s=t.focusTrap)==null?this.focusTrap:s,this.trap=G_(this.el,{initialFocus:this.el,fallbackFocus:()=>this.el,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0,returnFocusOnDeactivate:!1,preventScroll:!0}),this.initialized=!0}destroy(){return this.trap&&this.trap.deactivate(),this.overlayObj.destroy(),this.el.classList.remove(`bartender__bar`,`bartender__bar--${this.position}`),this}get name(){return this._name}set name(e){this._name=e,this.overlayObj.name=e,this.initialized!==!1&&(this.el.dispatchEvent(new CustomEvent(`bartender-bar-updated`,{bubbles:!0,detail:{bar:this,property:`name`,value:e}})),this.debug&&console.debug(`Updated bar name`,this))}get position(){return this._position}set position(e){if(!e)throw new nv(`Position is required for bar '${this.name}'`);let t=[`left`,`right`,`top`,`bottom`];if(!t.includes(e))throw new nv(`Invalid position '${e}' for bar '${this.name}'. Use one of the following: ${t.join(`, `)}.`);this.el.classList.add(`bartender-disable-transition`),this.el.classList.remove(`bartender__bar--${this._position}`),this.el.classList.add(`bartender__bar--${e}`),this._position=e,setTimeout(()=>{this.el.classList.remove(`bartender-disable-transition`)}),this.initialized!==!1&&(this.el.dispatchEvent(new CustomEvent(`bartender-bar-updated`,{bubbles:!0,detail:{bar:this,property:`position`,value:e}}
139)),this.debug&&console.debug(`Updated bar position`,this))}get mode(){return this._mode}set mode(e){if(!e)throw new nv(`Mode is required for bar '${this.name}'`);let t=[`float`,`push`,`reveal`];if(!t.includes(e))throw new nv(`Invalid mode '${e}' for bar '${this.name}'. Use one of the following: ${t.join(`, `)}.`);this.el.classList.add(`bartender-disable-transition`),this.el.classList.remove(`bartender__bar--${this._mode}`),this.el.classList.add(`bartender__bar--${e}`),this._mode=e,setTimeout(()=>{this.el.classList.remove(`bartender-disable-transition`)}),this.initialized!==!1&&(this.el.dispatchEvent(new CustomEvent(`bartender-bar-updated`,{bubbles:!0,detail:{bar:this,property:`mode`,value:this._mode}})),this.debug&&console.debug(`Updated bar mode`,this))}get overlay(){return this._overlay}set overlay(e){this._overlay=e,this.overlayObj.enabled=e,this.initialized!==!1&&(this.el.dispatchEvent(new CustomEvent(`bartender-bar-updated`,{bubbles:!0,detail:{bar:this,property:`overlay`,value:e}})),this.debug&&console.debug(`Updated bar overlay`,this,this.overlayObj))}get permanent(){return this._permanent}set permanent(e){this._permanent=e,this.initialized!==!1&&(this.el.dispatchEvent(new CustomEvent(`bartender-bar-updated`,{bubbles:!0,detail:{bar:this,property:`permanent`,value:e}})),this.debug&&console.debug(`Updated bar permanence`,this))}get scrollTop(){return this._scrollTop}set scrollTop(e){this._scrollTop=e,this.initialized!==!1&&(this.el.dispatchEvent(new CustomEvent(`bartender-bar-updated`,{bubbles:!0,detail:{bar:this,property:`scrollTop`,value:e}})),this.debug&&console.debug(`Updated bar scrollTop`,this))}get focusTrap(){return this._focusTrap}set focusTrap(e){if(this._focusTrap=e,this.initialized!==!1&&(this.el.dispatchEvent(new CustomEvent(`bartender-bar-updated`,{bubbles:!0,detail:{bar:this,property:`focusTrap`,value:e}})),this.debug&&console.debug(`Updated bar focusTrap`,this),this.isOpened!==!1)){if
139(e===!0){this.trap.activate();return}this.trap.deactivate()}}isOpen(){return this.isOpened}getTransitionDuration(){if(!this.el)return 0;let e=window.getComputedStyle(this.el).getPropertyValue(`transition-duration`)||`0s`;return parseFloat(e)*1e3}open(){return Q_(this,null,function*(){return this.debug&&console.debug(`Opening bar`,this),this.el.dispatchEvent(new CustomEvent(`bartender-bar-before-open`,{bubbles:!0,detail:{bar:this}})),this.scrollTop===!0&&this.el.scrollTo(0,0),this.el.classList.remove(`bartender__bar--closed`),this.el.classList.add(`bartender__bar--open`),this.el.setAttribute(`aria-hidden`,`false`),this.el.focus(),this.overlayObj.show(),this.isOpened=!0,this.focusTrap===!0&&this.trap.activate(),yield ev(this.getTransitionDuration()),this.el.dispatchEvent(new CustomEvent(`bartender-bar-after-open`,{bubbles:!0,detail:{bar:this}})),this.debug&&console.debug(`Finished opening bar`,this),Promise.resolve(this)})}close(){return Q_(this,null,function*(){return this.debug&&console.debug(`Closing bar`,this),this.el.dispatchEvent(new CustomEvent(`bartender-bar-before-close`,{bubbles:!0,detail:{bar:this}})),this.el.classList.remove(`bartender__bar--open`),this.el.setAttribute(`aria-hidden`,`true`),this.overlayObj.hide(),this.isOpened=!1,this.trap&&this.trap.deactivate(),yield ev(this.getTransitionDuration()),this.el.classList.add(`bartender__bar--closed`),this.el.dispatchEvent(new CustomEvent(`bartender-bar-after-close`,{bubbles:!0,detail:{bar:this}})),this.debug&&console.debug(`Finished closing bar`,this),Promise.resolve(this)})}getPushStyles(){return!this.position||!this.el?{transform:``,transitionDuration:``,transitionTimingFunction:``}:{transform:{left:`translateX(${this.el.offsetWidth}px)`,right:`translateX(-${this.el.offsetWidth}px)`,top:`translateY(${this.el.offsetHeight}px)`,bottom:`translateY(-${this.el.offsetHeight}px)`}[this.position]||``,transitionDuration:window.getComputedStyle(this.el).getPropertyValue(`transition-duration`)||``,transitionTimingFunction:window.getComputedStyle(this.el).getPropertyValue(`transition-timing-function`)||``}}},av=class{constructor(e,t={}){$(this,`el`),$(this,`bars`),$(this,`modes`),$(this,`positions`),$(this,`isPushed`,!1);let n=$_(e||null);if(!n)throw new nv(`Element is required for push element`);this.el=n,this.bars=t.bars||[],this.modes=t.modes||[],this.positions=t.positions||[]}push(e,t){return this.bars.length&&!this.bars.includes(e)||this.modes.length&&!this.modes.includes(e.mode)||this.positions.length&&!this.positions.includes(e.position)?(this.el.style.transform=``,this.el.style.transitionTimingFunction=``,this.el.style.transitionDuration=``,this.isPushed=!1,this):(this.el.style.transform=t.transform,this.el.style.transitionTimingFunction=t.transitionTimingFunction,this.el.style.transitionDuration=t.transitionDuration,this.isPushed=!0,this)}pull(e){return this.isPushed===!1?this:(this.el.style.transform=`translateX(0) translateY(0)`,this.el.style.transitionTimingFunction=e.transitionTimingFunction,this.el.style.transitionDuration=e.transitionDuration,this.isPushed=!1,this)}},ov=class{constructor(e={},t={}){$(this,`_debug`,!1),$(this,`el`),$(this,`contentEl`),$(this,`switchTimeout`,150),$(this,`bars`,[]),$(this,`barDefaultOptions`,{el:null,position:`left`,mode:`float`,overlay:!0,permanent:!1,scrollTop:!0,focusTrap:!1}),$(this,`returnFocus`,null),$(this,`pushableElements`,[]),$(this,`queue`),$(this,`resizeDebounce`),$(this,`onBarUpdateHandler`),$(this,`onKeydownHandler`),$(this,`onResizeHandler`);var n,r;tv(),document.addEventListener(`DOMContentLoaded`,()=>{tv()}),this.debug=(n=e.debug)==null?this._debug:n,this.switchTimeout=(r=e.switchTimeout)==null?this.switchTimeout:r,this.barDefaultOptions=Z_(Z_({},this.barDefaultOptions),t);let i=$_(e.el||`.bartender`);if(!i)throw new nv(`Main element is required`);this.el=i,this.el.classList.add(`bartender`);let a=$_(e.contentEl||`.bartender__content`);if(!a)throw new nv(`Content element is required`);if(a.parentElement!==this.el)throw new nv(`Content element must be a direct child of the main element`);this.contentEl=a,this.contentEl.classList.add(`bartender__content`),this.contentEl.setAttribute(`tabindex`,`-1`),this.addPushElement(this.contentEl,{modes:[`push`,`reveal`]}),this.queue=new Jg(1),this.resizeDebounce=Yg(()=>
139{tv(),this.pushElements(this.getOpenBar())},100),this.onBarUpdateHandler=this.onBarUpdate.bind(this),window.addEventListener(`bartender-bar-updated`,this.onBarUpdateHandler),this.onKeydownHandler=this.onKeydown.bind(this),window.addEventListener(`keydown`,this.onKeydownHandler),this.onResizeHandler=this.onResize.bind(this),window.addEventListener(`resize`,this.onResizeHandler),this.el.classList.add(`bartender--ready`),this.el.dispatchEvent(new CustomEvent(`bartender-init`,{bubbles:!0,detail:{bartender:this}})),this.debug&&console.debug(`Bartender initialized`,this)}get debug(){return this._debug}set debug(e){this._debug=e;for(let t of this.bars)t.debug=e}destroy(){return Q_(this,null,function*(){yield this.close();let e=this.bars.reduce((e,t)=>(e.push(t.name),e),[]);for(let t of e)this.getBar(t)&&(yield this.removeBar(t));return this.el.classList.remove(`bartender`,`bartender--ready`),this.contentEl.classList.remove(`bartender__content`),window.removeEventListener(`bartender-bar-updated`,this.onBarUpdateHandler),window.removeEventListener(`keydown`,this.onKeydownHandler),window.removeEventListener(`resize`,this.onResizeHandler),this.el.dispatchEvent(new CustomEvent(`bartender-destroyed`,{bubbles:!0,detail:{bartender:this}})),this.debug&&console.debug(`Bartender destroyed`,this),Promise.resolve(this)})}getBar(e){return this.bars.find(t=>t.name===e)||null}getOpenBar(){return this.bars.find(e=>e.isOpen()===!0)||null}addBar(e,t={}){if(!e||typeof e!=`string`)throw new nv(`Bar name is required`);if(this.getBar(e))throw new nv(`Bar with name '${e}' is already defined`);let n=new iv(e,Z_(Z_({},this.barDefaultOptions),t));if(n.debug=this.debug,this.bars.some(e=>e.el===n.el))throw new nv(`Element of bar '${n.name}' is already being used for another bar`);if(n.el.parentElement!==this.el)throw new nv(`Element of bar '${n.name}' must be a direct child of the Bartender main element`);return this.el.appendChild(n.overlayObj.el),n.overlayObj.el.addEventListener(`click`,()=>{n.permanent!==!0&&this.close()}),this.addPushElement(n.overlayObj.el,{bars:[n]}),this.bars.push(n),this.el.dispatchEvent(new CustomEvent(`bartender-bar-added`,{bubbles:!0,detail:{bar:n}})),this.debug&&console.debug(`Added a new bar`,n),n}removeBar(e){return Q_(this,null,function*(){if(!e||typeof e!=`string`)throw new nv(`Bar name is required`);let t=this.getBar(e);if(!t)throw new nv(`Bar with name '${e}' was not found`);
139this.getOpenBar()===t&&this.close(),this.removePushElement(t.overlayObj.el),t.destroy();let n=this.bars.findIndex(t=>t.name===e);return this.bars.splice(n,1),this.el.dispatchEvent(new CustomEvent(`bartender-bar-removed`,{bubbles:!0,detail:{name:e}})),this.debug&&console.debug(`Removed bar '${e}'`),Promise.resolve(this)})}openBar(e){return Q_(this,null,function*(){let t=this.getBar(e);if(!t)throw new nv(`Unknown bar '${e}'`);if(t.isOpen()===!0)return Promise.resolve(t);let n=this.getOpenBar();return n&&(yield this.closeBar(n.name,!0),yield ev(this.switchTimeout)),this.el.classList.add(`bartender--open`),this.contentEl.setAttribute(`aria-hidden`,`true`),this.pushElements(t),t.open()})}open(e,t){return Q_(this,null,function*(){let n=Symbol();return yield this.queue.wait(n),this.returnFocus=t,this.openBar(e).finally(()=>{this.queue.end(n)})})}closeBar(e,t=!1){return Q_(this,null,function*(){let n=e?this.getBar(e):this.getOpenBar();return!n||!n.isOpen()?Promise.resolve(null):(this.pullElements(n),yield n.close(),t===!1&&(this.el.classList.remove(`bartender--open`),this.contentEl.setAttribute(`aria-hidden`,`false`)),Promise.resolve(n))})}close(e){return Q_(this,null,function*(){let t=Symbol();return yield this.queue.wait(t),this.closeBar(e).finally(()=>{if(this.queue.end(t),this.returnFocus){this.returnFocus.focus(),this.returnFocus=null;return}this.contentEl.focus()})})}toggle(e,t){return Q_(this,null,function*(){let n=this.getBar(e);if(!n)throw new nv(`Unknown bar '${e}'`);return n.isOpen()===!0?this.close():this.open(e,t)})}addPushElement(e,t={}){if(this.pushableElements.some(t=>t.el===e))throw new nv(`This element is already defined as pushable element.`);let n=new av(e,t);return this.pushableElements.push(n),this.debug&&console.debug(`Added a new pushable element`,n),n}removePushElement(e){let t=this.pushableElements.findIndex(t=>t.el===e);if(t===-1)throw new nv(`Pushable element was not found`);return this.debug&&console.debug(`Removed pushable element`,this.pushableElements[t]),this.pushableElements.splice(t,1),this.pushableElements}pushElements(e){if(!e||!this.pushableElements.length)return this.pushableElements;let t=e.getPushStyles();for(let n of this.pushableElements)n.push(e,t);return this.pushableElements}pullElements(e){if(!e||!this.pushableElements.length)return this.pushableElements;let t=e.getPushStyles();for(let e of this.pushableElements)e.pull(t);return this.pushableElements}
139onBarUpdate(){this.pushElements(this.getOpenBar())}onKeydown(e){if(e.key===`Escape`){let e=this.getOpenBar();if(!e||e.permanent===!0)return;this.close()}}onResize(){this.resizeDebounce()}},sv=e=>{let t=e.nextElementSibling,n=e.parentElement;if(!(!t||!n)){if(e.classList.contains(`navExpand--active`)){e.classList.remove(`navExpand--active`),e.setAttribute(`aria-label`,e.getAttribute(`data-text-expand`)),e.setAttribute(`aria-expanded`,`false`),n.classList.remove(`d4-mobile-nav__item--open`),t.setAttribute(`aria-hidden`,`true`),t.classList.add(`d4-mobile-nav__list--hidden`);return}e.classList.add(`navExpand--active`),e.setAttribute(`aria-label`,e.getAttribute(`data-text-unexpand`)),e.setAttribute(`aria-expanded`,`true`),n.classList.add(`d4-mobile-nav__item--open`),t.removeAttribute(`aria-hidden`),t.classList.remove(`d4-mobile-nav__list--hidden`),t.focus()}},cv=()=>{let e=document.querySelectorAll(`.navExpand`);if(e.length)for(let t of e)t.addEventListener(`click`,()=>sv(t)),t.parentElement.classList.contains(`d4-mobile-nav__item--parent`)||sv(t)},lv,uv=()=>{let e=new ov({debug:!1},{mode:`float`,focusTrap:!0}),t=document.querySelector(`.bartender__bar--top`);t&&e.addBar(`top`,{el:t,position:`top`,overlay:!1});let n=document.querySelector(`.bartender__bar--left`);n&&e.addBar(`left`,{el:n,position:`left`,overlay:!0});let r=document.querySelectorAll(`[data-bartender-toggle]`);for(let t of r)t.addEventListener(`click`,()=>{let n=t.getAttribute(`data-bartender-toggle`);n&&e.toggle(n)});let i=0;return window.addEventListener(`bartender-bar-before-open`,()=>{document.body.style.overflow=`hidden`,i=window.scrollY}),window.addEventListener(`bartender-bar-before-close`,()=>{document.body.style.overflow=``}),window.addEventListener(`bartender-bar-after-close`,async()=>{await new Promise(e=>window.requestAnimationFrame(e)),window.scrollTo(0,i)}),e},dv=(0,ed.default)(function(){let e=document.querySelector(`.d4-mobile-bar`),t=document.querySelector(`#d4-preview`),n=document.querySelector(`#userbar`);document.documentElement.style.setProperty(`--mobile-bar-height`,e?`${e.offsetHeight}px`:`0px`),document.documentElement.style.setProperty(`--preview-bar-height`,t?`${t.offsetHeight}px`:`0px`),document.documentElement.style.setProperty(`--user-bar-height`,n?`${n.offsetHeight}px`:`0px`)},300),fv=()=>{if(`CSSContainerRule`in window)return;let e=document.querySelectorAll(`.widget-highlights:not([data-highlights-init="true"])`);for(let t of e){t.setAttribute(`data-highlights-init`,`true`);let e=e=>{let n=e.clientWidth>=1e3?`lg`:e.clientWidth>=800?`md`:e.clientWidth>=400?`sm`:`xs`;t.setAttribute(`data-size`,n)};e(t),Bg(t,e)}};function pv(){lv=uv();let e=document.querySelector(`.d4-mobile-bar`),t=(0,ed.default)(function(){lv&&lv.bars.some(e=>e.isOpened)&&!e.offsetParent&&lv.close()},300);window.addEventListener(`resize`,t),window.addEventListener(`resize`,dv),cv(),fv();let n=document.querySelectorAll(`.d4-sticky`),r=(0,ed.default)(function(){for(let e of n){let t=parseFloat(window.getComputedStyle(e).top||`0`),n=e.offsetHeight+t;e.style.position=window.innerHeight>=n?`sticky`:`relative`}},300);window.addEventListener(`resize`,r),window.addEventListener(`load`,()=>window.dispatchEvent(new Event(`resize`)))}var mv=l(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).LazyLoad=r()})(e,(function(){let e=typeof window<`u`,t=e&&!(`onscroll`in window)||typeof navigator<`u`&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=e&&window.devicePixelRatio>1,r={elements_selector:`.lazy`,container:t||e?document:null,threshold:300,thresholds:null,data_src:`src`,data_srcset:`srcset`,data_sizes:`sizes`,data_bg:`bg`,data_bg_hidpi:`bg-hidpi`,data_bg_multi:`bg-multi`,data_bg_multi_hidpi:`bg-multi-hidpi`,data_bg_set:`bg-set`,data_poster:`poster`,class_applied:`applied`,class_loading:`loading`,class_loaded:`loaded`,class_error:`error`,class_entered:`entered`,class_exited:`exited`,unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},i=e=>Object.assign({},r,e),a=function(e,t){let n,r=`LazyLoad::Initialized`,i=new e(t);try{n=new CustomEvent(r,{detail:{instance:i}})}catch(e){n=document.createEvent(`CustomEvent`),n.initCustomEvent(r,!1,!1,{instance:i})}window.dispatchEvent(n)},o=`srcset`,s=`sizes`,c=`poster`,l=`llOriginalAttrs`,u=`data`,d=`loading`,f
139=`loaded`,p=`applied`,m=`error`,h=`native`,g=`data-`,_=`ll-status`,v=(e,t)=>e.getAttribute(g+t),y=e=>v(e,_),b=(e,t)=>((e,t,n)=>{let r=g+t;n===null?e.removeAttribute(r):e.setAttribute(r,n)})(e,_,t),x=e=>b(e,null),S=e=>y(e)===null,C=e=>y(e)===h,w=[d,f,p,m],T=(e,t,n,r)=>{e&&typeof e==`function`&&(r===void 0?n===void 0?e(t):e(t,n):e(t,n,r))},E=(t,n)=>{e&&n!==``&&t.classList.add(n)},D=(t,n)=>{e&&n!==``&&t.classList.remove(n)},O=e=>e.llTempImage,ee=(e,t)=>{if(!t)return;let n=t._observer;n&&n.unobserve(e)},te=(e,t)=>{e&&(e.loadingCount+=t)},k=(e,t)=>{e&&(e.toLoadCount=t)},ne=e=>{let t=[];for(let n,r=0;n=e.children[r];r+=1)n.tagName===`SOURCE`&&t.push(n);return t},re=(e,t)=>{let n=e.parentNode;n&&n.tagName===`PICTURE`&&ne(n).forEach(t)},ie=(e,t)=>{ne(e).forEach(t)},A=[`src`],ae=[`src`,c],oe=[`src`,o,s],se=[u],ce=e=>!!e[l],le=e=>e[l],ue=e=>delete e[l],de=(e,t)=>{if(ce(e))return;let n={};t.forEach((t=>{n[t]=e.getAttribute(t)})),e[l]=n},fe=(e,t)=>{if(!ce(e))return;let n=le(e);t.forEach((t=>{((e,t,n)=>{n?e.setAttribute(t,n):e.removeAttribute(t)})(e,t,n[t])}))},pe=(e,t,n)=>{E(e,t.class_applied),b(e,p),n&&(t.unobserve_completed&&ee(e,t),T(t.callback_applied,e,n))},me=(e,t,n)=>{E(e,t.class_loading),b(e,d),n&&(te(n,1),T(t.callback_loading,e,n))},he=(e,t,n)=>{n&&e.setAttribute(t,n)},ge=(e,t)=>{he(e,s,v(e,t.data_sizes)),he(e,o,v(e,t.data_srcset)),he(e,`src`,v(e,t.data_src))},_e={IMG:(e,t)=>{re(e,(e=>{de(e,oe),ge(e,t)})),de(e,oe),ge(e,t)},IFRAME:(e,t)=>{de(e,A),he(e,`src`,v(e,t.data_src))},VIDEO:(e,t)=>{ie(e,(e=>{de(e,A),he(e,`src`,v(e,t.data_src))})),de(e,ae),he(e,c,v(e,t.data_poster)),he(e,`src`,v(e,t.data_src)),e.load()},OBJECT:(e,t)=>{de(e,se),he(e,u,v(e,t.data_src))}},ve=[`IMG`,`IFRAME`,`VIDEO`,`OBJECT`],ye=(e,t)=>{!t||(e=>e.loadingCount>0)(t)||(e=>e.toLoadCount>0)(t)||T(e.callback_finish,t)},be=(e,t,n)=>{e.addEventListener(t,n),e.llEvLisnrs[t]=n},xe=(e,t,n)=>{e.removeEventListener(t,n)},Se=e=>!!e.llEvLisnrs,Ce=e=>{if(!Se(e))return;let t=e.llEvLisnrs;for(let n in t){let r=t[n];xe(e,n,r)}delete e.llEvLisnrs},j=(e,t,n)=>{(e=>{delete e.llTempImage})(e),te(n,-1),(e=>{e&&--e.toLoadCount})(n),D(e,t.class_loading),t.unobserve_completed&&ee(e,n)},we=(e,t,n)=>{let r=O(e)||e;Se(r)||((e,t,n)=>{Se(e)||(e.llEvLisnrs={}),be(e,e.tagName===`VIDEO`?`loadeddata`:`load`,t),be(e,`error`,n)})(r,(i=>{((e,t,n,r)=>{let i=C(t);j(t,n,r),E(t,n.class_loaded),b(t,f),T(n.callback_loaded,t,r),i||ye(n,r)})(0,e,t,n),Ce(r)}),(i=>{((e,t,n,r)=>{let i=C(t);j(t,n,r),E(t,n.class_error),b(t,m),T(n.callback_error,t,r),n.restore_on_error&&fe(t,oe),i||ye(n,r)})(0,e,t,n),Ce(r)}))},Te=(e,t,r)=>{(e=>ve.indexOf(e.tagName)>-1)(e)?((e,t,n)=>{we(e,t,n),((e,t,n)=>{let r=_e[e.tagName];r&&(r(e,t),me(e,t,n))})(e,t,n)})(e,t,r):((e,t,r)=>{(e=>{e.llTempImage=document.createElement(`IMG`)})(e),we(e,t,r),(e=>{ce(e)||(e[l]={backgroundImage:e.style.backgroundImage})})(e),((e,t,r)=>{let i=v(e,t.data_bg),a=v(e,t.data_bg_hidpi),o=n&&a?a:i;o&&(e.style.backgroundImage=`url("${o}")`,O(e).setAttribute(`src`,o),me(e,t,r))})(e,t,r),((e,t,r)=>{let i=v(e,t.data_bg_multi),a=v(e,t.data_bg_multi_hidpi),o=n&&a?a:i;o&&(e.style.backgroundImage=o,pe(e,t,r))})(e,t,r),((e,t,n)=>{let r=v(e,t.data_bg_set);if(!r)return;let i=r.split(`|`).map((e=>`image-set(${e})`));e.style.backgroundImage=i.join(),pe(e,t,n)})(e,t,r)})(e,t,r)},Ee=e=>{e.removeAttribute(`src`),e.removeAttribute(o),e.removeAttribute(s)},De=e=>{re(e,(e=>{fe(e,oe)})),fe(e,oe)},Oe={IMG:De,IFRAME:e=>{fe(e,A)},VIDEO:e=>{ie(e,(e=>{fe(e,A)})),fe(e,ae),e.load()},OBJECT:e=>{fe(e,se)}},ke=(e,t)=>{(e=>{let t=Oe[e.tagName];t?t(e):(e=>{if(!ce(e))return;let t=le(e);e.style.backgroundImage=t.backgroundImage})(e)})(e),((e,t)=>{S(e)||C(e)||(D(e,t.class_entered),D(e,t.class_exited),D(e,t.class_applied),D(e,t.class_loading),D(e,t.class_loaded),D(e,t.class_error))})(e,t),x(e),ue(e)},M=[`IMG`,`IFRAME`,`VIDEO`],Ae=e=>e.use_native&&`loading`in HTMLImageElement.prototype,je=(e,t,n)=>{e.forEach((e=>(e=>e.isIntersecting||e.intersectionRatio>0)(e)?((e,t,n,r)=>{let i=(e=>w.indexOf(y(e))>=0)(e);b(e,`entered`),E(e,n.class_entered),D(e,n.class_exited),((e,t,n)=>{t.unobserve_entered&&ee(e,n)})(e,n,r),T(n.callback_enter,e,t,r),i||Te(e,n,r)})(e.target,e,t,n):((e,t,n,r)=>{S(e)||(E(e,n.class_exited),((e,t,n,r)=>{n.cancel_on_exit&&(e=>y(e)===d)(e)&&e.tagName===`IMG`&&(Ce(e),(e=>{re(e,(e=>{Ee(e)})),Ee(e)})(e),De(e),D(e,n.class_loading),te(r,-1),x(e),T(n.callback_cancel,e,t,r))})(e,t,n,r),T(n.callback_exit,e,t,r))})(e.target,e,t,n)))},Me=e=>Array.prototype.slice.call(e),Ne=e=>e.container.querySelectorAll(e.elements_selector),Pe=e=>(e=>y(e)===m)(e),Fe=(e,t)=>
139(e=>Me(e).filter(S))(e||Ne(t)),Ie=function(t,n){let r=i(t);this._settings=r,this.loadingCount=0,((e,t)=>{Ae(e)||(t._observer=new IntersectionObserver((n=>{je(n,e,t)}),(e=>({root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+`px`}))(e)))})(r,this),((t,n)=>{e&&(n._onlineHandler=()=>{((e,t)=>{var n;(n=Ne(e),Me(n).filter(Pe)).forEach((t=>{D(t,e.class_error),x(t)})),t.update()})(t,n)},window.addEventListener(`online`,n._onlineHandler))})(r,this),this.update(n)};return Ie.prototype={update:function(e){let n=this._settings,r=Fe(e,n);var i,a;k(this,r.length),t?this.loadAll(r):Ae(n)?((e,t,n)=>{e.forEach((e=>{M.indexOf(e.tagName)!==-1&&((e,t,n)=>{e.setAttribute(`loading`,`lazy`),we(e,t,n),((e,t)=>{let n=_e[e.tagName];n&&n(e,t)})(e,t),b(e,h)})(e,t,n)})),k(n,0)})(r,n,this):(a=r,(e=>{e.disconnect()})(i=this._observer),((e,t)=>{t.forEach((t=>{e.observe(t)}))})(i,a))},destroy:function(){this._observer&&this._observer.disconnect(),e&&window.removeEventListener(`online`,this._onlineHandler),Ne(this._settings).forEach((e=>{ue(e)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){let t=this._settings;Fe(e,t).forEach((e=>{ee(e,this),Te(e,t,this)}))},restoreAll:function(){let e=this._settings;Ne(e).forEach((t=>{ke(t,e)}))}},Ie.load=(e,t)=>{Te(e,i(t))},Ie.resetStatus=e=>{x(e)},e&&((e,t)=>{if(t)if(t.length)for(let n,r=0;n=t[r];r+=1)a(e,n);else a(e,t)})(Ie,window.lazyLoadOptions),Ie}))}))(),1),hv=/\beditMode=1/.test(document.cookie);if(!/^d4_preview_window/.test(window.name)){let e=window.top;if(e!==self){let t;try{t=!!e.AdminApi}catch(e){}t&&hv?(e.history.pushState({},document.title,Eg(location.pathname+location.search,{PreviewTheme:void 0,TS:void 0})),e.AdminApi.navigate(location.pathname===`/@cookies`?`/website/cookiesettings`:`/website/structure`),e.AdminApi.setActivePage(location.href,+document.body.dataset.stylesPageId)):e.location.replace(String(location))}}var gv={WidgetForm:$d,WidgetForum:fh,Pagination:kg,WidgetFacebook:jh,WidgetMemberform:zh,WidgetVideo:Hh,WidgetRescal:Tg,MapEmbed:Pg};for(let e of window.__INITIAL_STATE__)(()=>{let t=document.getElementById(e.targetId);if(!t){console.warn(`hydration target not found`,e);return}e.instance=Ps(gv[e.component],e.propsData),e.instance.mount(t)})();window.LAZYLOADER=new mv.default({elements_selector:`img:not([data-cookieconsent]):not([fetchpriority])`}),Hg(),Ug(),Wg(),Gg(),document.addEventListener(`DOMContentLoaded`,gh),pv();})();

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.