Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/media/quixnxt/js/
Upload File :
Current File : /home/smartconb/www/armencom33/media/quixnxt/js/qxkit.js

/*! qxUIkit 3.16.19 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(ve,we){typeof exports=="object"&&typeof module<"u"?module.exports=we():typeof define=="function"&&define.amd?define("uikit",we):(ve=typeof globalThis<"u"?globalThis:ve||self,ve.qxUIkit=we())})(this,function(){"use strict";const{hasOwnProperty:ve,toString:we}=Object.prototype;function vt(t,e){return ve.call(t,e)}const Ho=/\B([A-Z])/g,Jt=dt(t=>t.replace(Ho,"-$1").toLowerCase()),Lo=/-(\w)/g,be=dt(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(Lo,(e,i)=>i.toUpperCase())),Tt=dt(t=>t.charAt(0).toUpperCase()+t.slice(1));function ot(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function Kt(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function m(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function xt(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:Q,from:Zt}=Array,{assign:wt}=Object;function it(t){return typeof t=="function"}function Et(t){return t!==null&&typeof t=="object"}function yt(t){return we.call(t)==="[object Object]"}function Qt(t){return Et(t)&&t===t.window}function Ue(t){return Bi(t)===9}function Ve(t){return Bi(t)>=1}function te(t){return Bi(t)===1}function Bi(t){return!Qt(t)&&Et(t)&&t.nodeType}function Mi(t){return typeof t=="boolean"}function B(t){return typeof t=="string"}function Ye(t){return typeof t=="number"}function bt(t){return Ye(t)||B(t)&&!isNaN(t-parseFloat(t))}function $e(t){return!(Q(t)?t.length:Et(t)&&Object.keys(t).length)}function X(t){return t===void 0}function Ni(t){return Mi(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function kt(t){const e=Number(t);return isNaN(e)?!1:e}function $(t){return parseFloat(t)||0}function H(t){return k(t)[0]}function k(t){return Ve(t)?[t]:Array.from(t||[]).filter(Ve)}function ee(t){if(Qt(t))return t;t=H(t);const e=Ue(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Xe(t,e){return t===e||Et(t)&&Et(e)&&Object.keys(t).length===Object.keys(e).length&&St(t,(i,s)=>i===e[s])}function _i(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function ie(t){return t[t.length-1]}function St(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Ge(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function Dt(t,e){return t.reduce((i,s)=>i+$(it(e)?e(s):s[e]),0)}function As(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function zi(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function Z(t,e=0,i=1){return Math.min(Math.max(kt(t)||0,e),i)}function S(){}function Fi(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function Je(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Hi(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function Os(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Hi(t,i,e[i]):t;return t}function Wo(t,e){t=Os(t,e);for(const i in t)t=t[i]<e[i]?Hi(t,i,e[i]):t;return t}const Ke={ratio:Hi,contain:Os,cover:Wo};function rt(t,e,i=0,s=!1){e=k(e);const{length:n}=e;return n?(t=bt(t)?kt(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?n-1:e.indexOf(H(t)),s?Z(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function dt(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}function p(t,e,i){var s;if(Et(e)){for(const n in e)p(t,n,e[n]);return}if(X(i))return(s=H(t))==null?void 0:s.getAttribute(e);for(const n of k(t))it(i)&&(i=i.call(n,p(n,e))),i===null?xe(n,e):n.setAttribute(e,i)}function $t(t,e){return k(t).some(i=>i.hasAttribute(e))}function xe(t,e){k(t).forEach(i=>i.removeAttribute(e))}function tt(t,e){for(const i of[e,`data-${e}`])if($t(t,i))return p(t,i)}const Ro={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Li(t){return k(t).some(e=>Ro[e.tagName.toLowerCase()])}function j(t){return k(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const ye="input,select,textarea,button";function Wi(t){return k(t).some(e=>T(e,ye))}const ke=`${ye},a[href],[tabindex]`;function Ze(t){return T(t,ke)}function D(t){var e;return(e=H(t))==null?void 0:e.parentElement}function Se(t,e){return k(t).filter(i=>T(i,e))}function T(t,e){return k(t).some(i=>i.matches(e))}function U(t,e){return te(t)?t.closest(ot(e,">")?e.slice(1):e):k(t).map(i=>U(i,e)).filter(Boolean)}function M(t,e){return B(e)?!!U(t,e):H(e).contains(H(t))}function se(t,e){const i=[];for(;t=D(t);)(!e||T(t,e))&&i.push(t);return i}function E(t,e){t=H(t);const i=t?Zt(t.children):[];return e?Se(i,e):i}function ne(t,e){return e?k(t).indexOf(H(e)):E(D(t)).indexOf(t)}function oe(t){return t=H(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function Ri(t){if(oe(t)){t=H(t);const e=decodeURIComponent(t.hash).substring(1);return document.getElementById(e)||document.getElementsByName(e)[0]}}function at(t,e){return ji(t,Bs(t,e))}function Ie(t,e){return Ce(t,Bs(t,e))}function ji(t,e){return H(Ms(t,H(e),"querySelector"))}function Ce(t,e){return k(Ms(t,H(e),"querySelectorAll"))}const jo=/(^|[^\\],)\s*[!>+~-]/,Ds=dt(t=>t.match(jo));function Bs(t,e=document){return B(t)&&Ds(t)||Ue(e)?e:e.ownerDocument}const qo=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Uo=dt(t=>t.replace(qo,"$1 *"));function Ms(t,e=document,i){if(!t||!B(t))return t;if(t=Uo(t),Ds(t)){const s=Yo(t);t="";for(let n of s){let o=e;if(n[0]==="!"){const r=n.substr(1).trim().split(" ");if(o=U(D(e),r[0]),n=r.slice(1).join(" ").trim(),!n.length&&s.length===1)return o}if(n[0]==="-"){const r=n.substr(1).trim().split(" "),a=(o||e).previousElementSibling;o=T(a,n.substr(1))?a:null,n=r.slice(1).join(" ")}o&&(t+=`${t?",":""}${Xo(o)} ${n}`)}e=document}try{return e[i](t)}catch{return null}}const Vo=/.*?[^\\](?:,|$)/g,Yo=dt(t=>t.match(Vo).map(e=>e.replace(/,$/,"").trim()));function Xo(t){const e=[];for(;t.parentNode;){const i=p(t,"id");if(i){e.unshift(`#${qi(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${ne(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function qi(t){return B(t)?CSS.escape(t):""}function x(...t){let[e,i,s,n,o=!1]=Ui(t);n.length>1&&(n=Jo(n)),o!=null&&o.self&&(n=Ko(n)),s&&(n=Go(s,n));for(const r of i)for(const a of e)a.addEventListener(r,n,o);return()=>Bt(e,i,n,o)}function Bt(...t){let[e,i,,s,n=!1]=Ui(t);for(const o of i)for(const r of e)r.removeEventListener(o,s,n)}function R(...t){const[e,i,s,n,o=!1,r]=Ui(t),a=x(e,i,s,l=>{const c=!r||r(l);c&&(a(),n(l,c))},o);return a}function v(t,e,i){return Vi(t).every(s=>s.dispatchEvent(Mt(e,!0,!0,i)))}function Mt(t,e=!0,i=!1,s){return B(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Ui(t){return t[0]=Vi(t[0]),B(t[1])&&(t[1]=t[1].split(" ")),it(t[2])&&t.splice(2,0,!1),t}function Go(t,e){return i=>{const s=t[0]===">"?Ce(t,i.currentTarget).reverse().filter(n=>M(i.target,n))[0]:U(i.target,t);s&&(i.current=s,e.call(this,i),delete i.current)}}function Jo(t){return e=>Q(e.detail)?t(e,...e.detail):t(e)}function Ko(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Ns(t){return t&&"addEventListener"in t}function Zo(t){return Ns(t)?t:H(t)}function Vi(t){return Q(t)?t.map(Zo).filter(Boolean):B(t)?Ce(t):Ns(t)?[t]:k(t)}function It(t){return t.pointerType==="touch"||!!t.touches}function re(t){var s,n;const{clientX:e,clientY:i}=((s=t.touches)==null?void 0:s[0])||((n=t.changedTouches)==null?void 0:n[0])||t;return{x:e,y:i}}const Qo={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function h(t,e,i,s){const n=k(t);for(const o of n)if(B(e)){if(e=Qe(e),X(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,bt(i)&&!Qo[e]?`${i}px`:i||Ye(i)?i:"",s)}else if(Q(e)){const r={};for(const a of e)r[a]=h(o,a);return r}else Et(e)&&(s=i,St(e,(r,a)=>h(o,a,r,s)));return n[0]}const Qe=dt(t=>tr(t));function tr(t){if(ot(t,"--"))return t;t=Jt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const s=`-${i}-${t}`;if(s in e)return s}}function y(t,...e){_s(t,e,"add")}function N(t,...e){_s(t,e,"remove")}function Yi(t,e){p(t,"class",i=>(i||"").replace(new RegExp(`\\b${e}\\b\\s?`,"g"),""))}function Xi(t,...e){e[0]&&N(t,e[0]),e[1]&&y(t,e[1])}function A(t,e){return[e]=Gi(e),!!e&&k(t).some(i=>i.classList.contains(e))}function q(t,e,i){const s=Gi(e);X(i)||(i=!!i);for(const n of k(t))for(const o of s)n.classList.toggle(o,i)}function _s(t,e,i){e=e.reduce((s,n)=>s.concat(Gi(n)),[]);for(const s of k(t))s.classList[i](...e)}function Gi(t){return String(t).split(/[ ,]/).filter(Boolean)}function er(t,e,i=400,s="linear"){return i=Math.round(i),Promise.all(k(t).map(n=>new Promise((o,r)=>{for(const l in e){const c=h(n,l);c===""&&h(n,l,c)}const a=setTimeout(()=>v(n,"transitionend"),i);R(n,"transitionend transitioncanceled",({type:l})=>{clearTimeout(a),N(n,"qx-transition"),h(n,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),l==="transitioncanceled"?r():o(n)},{self:!0}),y(n,"qx-transition"),h(n,{transitionProperty:Object.keys(e).map(Qe).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s,...e})})))}const P={start:er,async stop(t){v(t,"transitionend"),await Promise.resolve()},async cancel(t){v(t,"transitioncanceled"),await Promise.resolve()},inProgress(t){return A(t,"qx-transition")}},Te="qx-animation-";function zs(t,e,i=200,s,n){return Promise.all(k(t).map(o=>new Promise((r,a)=>{v(o,"animationcanceled");const l=setTimeout(()=>v(o,"animationend"),i);R(o,"animationend animationcanceled",({type:c})=>{clearTimeout(l),c==="animationcanceled"?a():r(o),h(o,"animationDuration",""),Yi(o,`${Te}\\S*`)},{self:!0}),h(o,"animationDuration",`${i}ms`),y(o,e,Te+(n?"leave":"enter")),ot(e,Te)&&(s&&y(o,`qx-transform-origin-${s}`),n&&y(o,`${Te}reverse`))})))}const ir=new RegExp(`${Te}(enter|leave)`),gt={in:zs,out(t,e,i,s){return zs(t,e,i,s,!0)},inProgress(t){return ir.test(p(t,"class"))},cancel(t){v(t,"animationcanceled")}};function sr(t){if(document.readyState!=="loading"){t();return}R(document,"DOMContentLoaded",t)}function G(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function Ji(t){return t=w(t),t.innerHTML="",t}function Nt(t,e){return X(e)?w(t).innerHTML:L(Ji(t),e)}const nr=ii("prepend"),L=ii("append"),ti=ii("before"),ei=ii("after");function ii(t){return function(e,i){var n;const s=k(B(i)?_t(i):i);return(n=w(e))==null||n[t](...s),Fs(s)}}function lt(t){k(t).forEach(e=>e.remove())}function si(t,e){for(e=H(ti(t,e));e.firstChild;)e=e.firstChild;return L(e,t),e}function Ki(t,e){return k(k(t).map(i=>i.hasChildNodes()?si(Zt(i.childNodes),e):L(i,e)))}function Ee(t){k(t).map(D).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const or=/^\s*<(\w+|!)[^>]*>/,rr=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function _t(t){const e=rr.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("div");return or.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,Fs(i.childNodes)}function Fs(t){return t.length>1?t:t[0]}function Ct(t,e){if(te(t))for(e(t),t=t.firstElementChild;t;){const i=t.nextElementSibling;Ct(t,e),t=i}}function w(t,e){return Hs(t)?H(_t(t)):ji(t,e)}function _(t,e){return Hs(t)?k(_t(t)):Ce(t,e)}function Hs(t){return B(t)&&ot(t.trim(),"<")}const zt={width:["left","right"],height:["top","bottom"]};function b(t){const e=te(t)?H(t).getBoundingClientRect():{height:et(t),width:Pe(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function O(t,e){const i=b(t);if(t){const{scrollY:n,scrollX:o}=ee(t),r={height:n,width:o};for(const a in zt)for(const l of zt[a])i[l]+=r[a]}if(!e)return i;const s=h(t,"position");St(h(t,["left","top"]),(n,o)=>h(t,o,e[o]-i[o]+$(s==="absolute"&&n==="auto"?ni(t)[o]:n)))}function ni(t){let{top:e,left:i}=O(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:o}=H(t);let r=o||n;for(;r&&(r===s||r===n)&&h(r,"position")==="static";)r=r.parentNode;if(te(r)){const a=O(r);e-=a.top+$(h(r,"borderTopWidth")),i-=a.left+$(h(r,"borderLeftWidth"))}return{top:e-$(h(t,"marginTop")),left:i-$(h(t,"marginLeft"))}}function Ft(t){t=H(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+$(h(t,"borderTopWidth")),e[1]+=t.offsetLeft+$(h(t,"borderLeftWidth")),h(t,"position")==="fixed"){const i=ee(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const et=Ls("height"),Pe=Ls("width");function Ls(t){const e=Tt(t);return(i,s)=>{if(X(s)){if(Qt(i))return i[`inner${e}`];if(Ue(i)){const n=i.documentElement;return Math.max(n[`offset${e}`],n[`scroll${e}`])}return i=H(i),s=h(i,t),s=s==="auto"?i[`offset${e}`]:$(s)||0,s-ae(i,t)}else return h(i,t,!s&&s!==0?"":+s+ae(i,t)+"px")}}function ae(t,e,i="border-box"){return h(t,"boxSizing")===i?Dt(zt[e].map(Tt),s=>$(h(t,`padding${s}`))+$(h(t,`border${s}Width`))):0}function oi(t){for(const e in zt)for(const i in zt[e])if(zt[e][i]===t)return zt[e][1-i];return t}function ht(t,e="width",i=window,s=!1){return B(t)?Dt(lr(t),n=>{const o=cr(n);return o?ur(o==="vh"?fr():o==="vw"?Pe(ee(i)):s?i[`offset${Tt(e)}`]:b(i)[e],n):n}):$(t)}const ar=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,lr=dt(t=>t.toString().replace(/\s/g,"").match(ar)||[]),hr=/(?:v[hw]|%)$/,cr=dt(t=>(t.match(hr)||[])[0]);function ur(t,e){return t*$(e)/100}let Ae,le;function fr(){return Ae||(le||(le=w("<div>"),h(le,{height:"100vh",position:"fixed"}),x(window,"resize",()=>Ae=null)),L(document.body,le),Ae=le.clientHeight,lt(le),Ae)}const Ht=typeof window<"u",J=Ht&&document.dir==="rtl",Lt=Ht&&"ontouchstart"in window,he=Ht&&window.PointerEvent,mt=he?"pointerdown":Lt?"touchstart":"mousedown",ri=he?"pointermove":Lt?"touchmove":"mousemove",Pt=he?"pointerup":Lt?"touchend":"mouseup",Wt=he?"pointerenter":Lt?"":"mouseenter",ce=he?"pointerleave":Lt?"":"mouseleave",ai=he?"pointercancel":"touchcancel",K={reads:[],writes:[],read(t){return this.reads.push(t),Qi(),t},write(t){return this.writes.push(t),Qi(),t},clear(t){Rs(this.reads,t),Rs(this.writes,t)},flush:Zi};function Zi(t){Ws(K.reads),Ws(K.writes.splice(0)),K.scheduled=!1,(K.reads.length||K.writes.length)&&Qi(t+1)}const dr=4;function Qi(t){K.scheduled||(K.scheduled=!0,t&&t<dr?Promise.resolve().then(()=>Zi(t)):requestAnimationFrame(()=>Zi(1)))}function Ws(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function Rs(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}function ts(){}ts.prototype={positions:[],init(){this.positions=[];let t;this.unbind=x(document,"mousemove",e=>t=re(e)),this.interval=setInterval(()=>{t&&(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:i,right:s,top:n,bottom:o}=e,[r]=this.positions,a=ie(this.positions),l=[r,a];return Je(a,e)?!1:[[{x:i,y:n},{x:s,y:o}],[{x:i,y:o},{x:s,y:n}]].some(u=>{const f=pr(l,u);return f&&Je(f,e)})}};function pr([{x:t,y:e},{x:i,y:s}],[{x:n,y:o},{x:r,y:a}]){const l=(a-o)*(i-t)-(r-n)*(s-e);if(l===0)return!1;const c=((r-n)*(e-o)-(a-o)*(t-n))/l;return c<0?!1:{x:t+c*(i-t),y:e+c*(s-e)}}function js(t,e,i={},{intersecting:s=!0}={}){const n=new IntersectionObserver(s?(o,r)=>{o.some(a=>a.isIntersecting)&&e(o,r)}:e,i);for(const o of k(t))n.observe(o);return n}const gr=Ht&&window.ResizeObserver;function li(t,e,i={box:"border-box"}){if(gr)return Us(ResizeObserver,t,e,i);const s=[x(window,"load resize",e),x(document,"loadedmetadata load",e,!0)];return{disconnect:()=>s.map(n=>n())}}function es(t){return{disconnect:x([window,window.visualViewport],"resize",t)}}function qs(t,e,i){return Us(MutationObserver,t,e,i)}function Us(t,e,i,s){const n=new t(i);for(const o of k(e))n.observe(o,s);return n}function Vs(t){if(ci(t)&&is(t,{func:"playVideo",method:"play"}),hi(t))try{t.play().catch(S)}catch{}}function Ys(t){ci(t)&&is(t,{func:"pauseVideo",method:"pause"}),hi(t)&&t.pause()}function Xs(t){ci(t)&&is(t,{func:"mute",method:"setVolume",value:0}),hi(t)&&(t.muted=!0)}function Gs(t){return hi(t)||ci(t)}function hi(t){return G(t,"video")}function ci(t){return G(t,"iframe")&&(Js(t)||Ks(t))}function Js(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Ks(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function is(t,e){await vr(t),Zs(t,e)}function Zs(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const ss="_ukPlayer";let mr=0;function vr(t){if(t[ss])return t[ss];const e=Js(t),i=Ks(t),s=++mr;let n;return t[ss]=new Promise(o=>{e&&R(t,"load",()=>{const r=()=>Zs(t,{event:"listening",id:s});n=setInterval(r,100),r()}),R(window,"message",o,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===s&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===s}catch{}}),t.src=`${t.src}${m(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(n))}function ns(t,e=0,i=0){return j(t)?Fi(...Rt(t).map(s=>{const{top:n,left:o,bottom:r,right:a}=ct(s);return{top:n-e,left:o-i,bottom:r+e,right:a+i}}).concat(O(t))):!1}function Qs(t,{offset:e=0}={}){const i=j(t)?ue(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:c,scrollHeight:u,offsetHeight:f}=a,d=ct(a),g=u-d.height,{height:C,top:F}=i[l-1]?ct(i[l-1]):O(t);let z=Math.ceil(F-d.top-e+c);return e>0&&f<C+e?z+=e:e=0,z>g?(e-=z-g,z=g):z<0&&(e-=z,z=0),()=>s(a,z-c).then(r)},()=>Promise.resolve())();function s(r,a){return new Promise(l=>{const c=r.scrollTop,u=n(Math.abs(a)),f=Date.now();(function d(){const g=o(Z((Date.now()-f)/u));r.scrollTop=c+a*g,g===1?l():requestAnimationFrame(d)})()})}function n(r){return 40*Math.pow(r,.375)}function o(r){return .5*(1-Math.cos(Math.PI*r))}}function os(t,e=0,i=0){if(!j(t))return 0;const s=At(t,!0),{scrollHeight:n,scrollTop:o}=s,{height:r}=ct(s),a=n-r,l=Ft(t)[0]-Ft(s)[0],c=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return Z((o-c)/(u-c))}function ue(t,e=!1,i=[]){const s=tn(t);let n=se(t).reverse();n=n.slice(n.indexOf(s)+1);const o=xt(n,r=>h(r,"position")==="fixed");return~o&&(n=n.slice(o)),[s].concat(n.filter(r=>h(r,"overflow").split(" ").some(a=>m(["auto","scroll",...i],a))&&(!e||r.scrollHeight>ct(r).height))).reverse()}function At(...t){return ue(...t)[0]}function Rt(t){return ue(t,!1,["hidden","clip"])}function ct(t){const e=ee(t),{visualViewport:i,document:{documentElement:s}}=e;let n=t===tn(t)?e:t;if(Qt(n)&&i){let{height:r,width:a,scale:l,pageTop:c,pageLeft:u}=i;return r=Math.round(r*l),a=Math.round(a*l),{height:r,width:a,top:c,left:u,bottom:c+r,right:u+a}}let o=O(n);if(h(n,"display")==="inline")return o;for(let[r,a,l,c]of[["width","x","left","right"],["height","y","top","bottom"]]){Qt(n)?n=s:o[l]+=$(h(n,`border-${l}-width`));const u=o[r]%1;o[r]=o[a]=n[`client${Tt(r)}`]-(u?u<.5?-u:1-u:0),o[c]=o[r]+o[l]}return o}function tn(t){return ee(t).document.scrollingElement}const ut=[["width","x","left","right"],["height","y","top","bottom"]];function en(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},Q(e)||(e=[e,e]),O(t,sn(t,e,i))}function sn(t,e,i){const s=nn(t,e,i),{boundary:n,viewportOffset:o=0,placement:r}=i;let a=s;for(const[l,[c,,u,f]]of Object.entries(ut)){const d=wr(t,e[l],o,n,l);if(ui(s,d,l))continue;let g=0;if(r[l]==="flip"){const C=i.attach.target[l];if(C===f&&s[f]<=d[f]||C===u&&s[u]>=d[u])continue;g=$r(t,e,i,l)[u]-s[u];const F=br(t,e[l],o,l);if(!ui(rs(s,g,l),F,l)){if(ui(s,F,l))continue;if(i.recursion)return!1;const z=xr(t,e,i);if(z&&ui(z,F,1-l))return z;continue}}else if(r[l]==="shift"){const C=O(e[l]),{offset:F}=i;g=Z(Z(s[u],d[u],d[f]-s[c]),C[u]-s[c]+F[l],C[f]-F[l])-s[u]}a=rs(a,g,l)}return a}function nn(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=O(t);for(const[r,[a,,l,c]]of Object.entries(ut)){const u=s.target[r]===s.element[r]?ct(e[r]):O(e[r]);o=rs(o,u[l]-o[l]+on(s.target[r],c,u[a])-on(s.element[r],c,o[a])+ +n[r],r)}return o}function rs(t,e,i){const[,s,n,o]=ut[i],r={...t};return r[n]=t[s]=t[n]+e,r[o]+=e,r}function on(t,e,i){return t==="center"?i/2:t===e?i:0}function wr(t,e,i,s,n){let o=an(...rn(t,e).map(ct));return i&&(o[ut[n][2]]+=i,o[ut[n][3]]-=i),s&&(o=an(o,O(Q(s)?s[n]:s))),o}function br(t,e,i,s){const[n,o,r,a]=ut[s],[l]=rn(t,e),c=ct(l);return["auto","scroll"].includes(h(l,`overflow-${o}`))&&(c[r]-=l[`scroll${Tt(r)}`],c[a]=c[r]+l[`scroll${Tt(n)}`]),c[r]+=i,c[a]-=i,c}function rn(t,e){return Rt(e).filter(i=>M(t,i))}function an(...t){let e={};for(const i of t)for(const[,,s,n]of ut)e[s]=Math.max(e[s]||0,i[s]),e[n]=Math.min(...[e[n],i[n]].filter(Boolean));return e}function ui(t,e,i){const[,,s,n]=ut[i];return t[s]>=e[s]&&t[n]<=e[n]}function $r(t,e,{offset:i,attach:s},n){return nn(t,e,{attach:{element:ln(s.element,n),target:ln(s.target,n)},offset:yr(i,n)})}function xr(t,e,i){return sn(t,e,{...i,attach:{element:i.attach.element.map(hn).reverse(),target:i.attach.target.map(hn).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function ln(t,e){const i=[...t],s=ut[e].indexOf(t[e]);return~s&&(i[e]=ut[e][1-s%2+2]),i}function hn(t){for(let e=0;e<ut.length;e++){const i=ut[e].indexOf(t);if(~i)return ut[1-e][i%2+2]}}function yr(t,e){return t=[...t],t[e]*=-1,t}var kr=Object.freeze({__proto__:null,$:w,$$:_,Animation:gt,Dimensions:Ke,MouseTracker:ts,Transition:P,addClass:y,after:ei,append:L,apply:Ct,assign:wt,attr:p,before:ti,boxModelAdjust:ae,camelize:be,children:E,clamp:Z,closest:U,createEvent:Mt,css:h,data:tt,dimensions:b,each:St,empty:Ji,endsWith:Kt,escape:qi,fastdom:K,filter:Se,find:ji,findAll:Ce,findIndex:xt,flipPosition:oi,fragment:_t,getEventPos:re,getIndex:rt,getTargetedElement:Ri,hasAttr:$t,hasClass:A,hasOwn:vt,hasTouch:Lt,height:et,html:Nt,hyphenate:Jt,inBrowser:Ht,includes:m,index:ne,intersectRect:Fi,isArray:Q,isBoolean:Mi,isDocument:Ue,isElement:te,isEmpty:$e,isEqual:Xe,isFocusable:Ze,isFunction:it,isInView:ns,isInput:Wi,isNode:Ve,isNumber:Ye,isNumeric:bt,isObject:Et,isPlainObject:yt,isRtl:J,isSameSiteAnchor:oe,isString:B,isTag:G,isTouch:It,isUndefined:X,isVideo:Gs,isVisible:j,isVoidElement:Li,isWindow:Qt,last:ie,matches:T,memoize:dt,mute:Xs,noop:S,observeIntersection:js,observeMutation:qs,observeResize:li,observeViewportResize:es,off:Bt,offset:O,offsetPosition:Ft,offsetViewport:ct,on:x,once:R,overflowParents:Rt,parent:D,parents:se,pause:Ys,pick:zi,play:Vs,pointInRect:Je,pointerCancel:ai,pointerDown:mt,pointerEnter:Wt,pointerLeave:ce,pointerMove:ri,pointerUp:Pt,position:ni,positionAt:en,prepend:nr,propName:Qe,query:at,queryAll:Ie,ready:sr,remove:lt,removeAttr:xe,removeClass:N,removeClasses:Yi,replaceClass:Xi,scrollIntoView:Qs,scrollParent:At,scrollParents:ue,scrolledOver:os,selFocusable:ke,selInput:ye,sortBy:Ge,startsWith:ot,sumBy:Dt,swap:_i,toArray:Zt,toBoolean:Ni,toEventTargets:Vi,toFloat:$,toNode:H,toNodes:k,toNumber:kt,toPx:ht,toWindow:ee,toggleClass:q,trigger:v,ucfirst:Tt,uniqueBy:As,unwrap:Ee,width:Pe,within:M,wrapAll:si,wrapInner:Ki});function Sr(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,s]of Object.entries(e))cn(t,s,i);t._initial=!0}function cn(t,e,i){t._watches.push({name:i,...yt(e)?e:{handler:e}})}function Ir(t,e){for(const{name:i,handler:s,immediate:n=!0}of t._watches)(t._initial&&n||vt(e,i)&&!Xe(e[i],t[i]))&&s.call(t,t[i],e[i]);t._initial=!1}function Cr(t){t._data={},t._updates=[...t.$options.update||[]]}function Tr(t,e){t._updates.unshift(e)}function Er(t){delete t._data}function fi(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,K.read(()=>{t._connected&&Pr(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function Pr(t,e){for(const{read:i,write:s,events:n=[]}of t._updates){if(!e.has("update")&&!n.some(r=>e.has(r)))continue;let o;i&&(o=i.call(t,t._data,e),o&&yt(o)&&wt(t._data,o)),s&&o!==!1&&K.write(()=>{t._connected&&s.call(t,t._data,e)})}}function Ar(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)un(t,i,e[i])}function un(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:n,$el:o}=t;return vt(s,e)||(s[e]=(i.get||i).call(t,n,o)),s[e]},set(s){const{_computed:n}=t;n[e]=i.set?i.set.call(t,s):s,X(n[e])&&delete n[e]}})}function Or(t){t._hasComputed&&(Tr(t,{read:()=>Ir(t,fn(t)),events:["resize","computed"]}),Br(),fe.add(t))}function Dr(t){fe==null||fe.delete(t),fn(t)}function fn(t){const e={...t._computed};return t._computed={},e}let as,fe;function Br(){as||(fe=new Set,as=new MutationObserver(()=>{for(const t of fe)fi(t,"computed")}),as.observe(document,{childList:!0,subtree:!0}))}function Mr(t){t._events=[];for(const e of t.$options.events||[])if(vt(e,"handler"))ls(t,e);else for(const i in e)ls(t,e[i],i)}function Nr(t){t._events.forEach(e=>e()),delete t._events}function ls(t,e,i){let{name:s,el:n,handler:o,capture:r,passive:a,delegate:l,filter:c,self:u}=yt(e)?e:{name:i,handler:e};if(n=it(n)?n.call(t,t):n||t.$el,Q(n)){n.forEach(f=>ls(t,{...e,el:f},i));return}!n||c&&!c.call(t)||t._events.push(x(n,s,l?B(l)?l:l.call(t,t):null,B(o)?t[o]:o.bind(t),{passive:a,capture:r,self:u}))}function _r(t){t._observers=[];for(const e of t.$options.observe||[])if(vt(e,"handler"))pn(t,e);else for(const i of e)pn(t,i)}function dn(t,...e){t._observers.push(...e)}function zr(t){for(const e of t._observers)e.disconnect()}function pn(t,e){let{observe:i,target:s=t.$el,handler:n,options:o,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._observers.length}`;it(s)&&!vt(t,l)&&un(t,l,()=>s.call(t,t)),n=B(n)?t[n]:n.bind(t),it(o)&&(o=o.call(t,t));const c=vt(t,l)?t[l]:s,u=i(c,n,o,a);it(s)&&Q(t[l])&&u.unobserve&&cn(t,{handler:Fr(u),immediate:!1},l),dn(t,u)}function Fr(t){return(e,i)=>{for(const s of i)!m(e,s)&&t.unobserve(s);for(const s of e)!m(i,s)&&t.observe(s)}}const V={};V.events=V.watch=V.observe=V.created=V.beforeConnect=V.connected=V.beforeDisconnect=V.disconnected=V.destroy=hs,V.args=function(t,e){return e!==!1&&hs(e||t)},V.update=function(t,e){return Ge(hs(t,it(e)?{read:e}:e),"order")},V.props=function(t,e){if(Q(e)){const i={};for(const s of e)i[s]=String;e=i}return V.methods(t,e)},V.computed=V.methods=function(t,e){return e?t?{...t,...e}:e:t},V.i18n=V.data=function(t,e,i){return i?gn(t,e,i):e?t?function(s){return gn(t,e,s)}:e:t};function gn(t,e,i){return V.computed(it(t)?t.call(i,i):t,it(e)?e.call(i,i):e)}function hs(t,e){return t=t&&!Q(t)?[t]:t,e?t?t.concat(e):Q(e)?e:[e]:t}function Hr(t,e){return X(e)?t:e}function Oe(t,e,i){const s={};if(it(e)&&(e=e.options),e.extends&&(t=Oe(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=Oe(t,o,i);for(const o in t)n(o);for(const o in e)vt(t,o)||n(o);function n(o){s[o]=(V[o]||Hr)(t[o],e[o],i)}return s}function De(t,e=[]){try{return t?ot(t,"{")?JSON.parse(t):e.length&&!m(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,o]=s.split(/:(.*)/);return n&&!X(o)&&(i[n.trim()]=o.trim()),i},{}):{}}catch{return{}}}function cs(t,e){return t===Boolean?Ni(e):t===Number?kt(e):t==="list"?Lr(e):t===Object&&B(e)?De(e):t?t(e):e}function Lr(t){return Q(t)?t:B(t)?t.split(/,(?![^(]*\))/).map(e=>bt(e)?kt(e):Ni(e.trim())):[t]}function Wr(t){const e=mn(t.$options);for(let s in e)X(e[s])||(t.$props[s]=e[s]);const i=[t.$options.computed,t.$options.methods];for(let s in t.$props)s in e&&Rr(i,s)&&(t[s]=t.$props[s])}function mn(t){const e={},{args:i=[],props:s={},el:n,id:o}=t;if(!s)return e;for(const a in s){const l=Jt(a);let c=tt(n,l);X(c)||(c=s[a]===Boolean&&c===""?!0:cs(s[a],c),!(l==="target"&&ot(c,"_"))&&(e[a]=c))}const r=De(tt(n,o),i);for(const a in r){const l=be(a);X(s[l])||(e[l]=cs(s[l],r[a]))}return e}function Rr(t,e){return t.every(i=>!i||!vt(i,e))}function jr(t){const{$options:e,$props:i}=t,{id:s,props:n,el:o}=e;if(!n)return;const r=Object.keys(n),a=r.map(c=>Jt(c)).concat(s),l=new MutationObserver(c=>{const u=mn(e);c.some(({attributeName:f})=>{const d=f.replace("data-","");return(d===s?r:[be(d),be(f)]).some(g=>!X(u[g])&&u[g]!==i[g])})&&t.$reset()});l.observe(o,{attributes:!0,attributeFilter:a.concat(a.map(c=>`data-${c}`))}),dn(t,l)}function de(t,e){var i;(i=t.$options[e])==null||i.forEach(s=>s.call(t))}function us(t){t._connected||(Wr(t),de(t,"beforeConnect"),t._connected=!0,Mr(t),Cr(t),Sr(t),_r(t),jr(t),Or(t),de(t,"connected"),fi(t))}function fs(t){t._connected&&(de(t,"beforeDisconnect"),Nr(t),Er(t),zr(t),Dr(t),de(t,"disconnected"),t._connected=!1)}let qr=0;function vn(t,e={}){e.data=Yr(e,t.constructor.options),t.$options=Oe(t.constructor.options,e,t),t.$props={},t._uid=qr++,Ur(t),Vr(t),Ar(t),de(t,"created"),e.el&&t.$mount(e.el)}function Ur(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}function Vr(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}function Yr({data:t={}},{args:e=[],props:i={}}){Q(t)&&(t=t.slice(0,e.length).reduce((s,n,o)=>(yt(n)?wt(s,n):s[e[o]]=n,s),{}));for(const s in t)X(t[s])?delete t[s]:i[s]&&(t[s]=cs(i[s],t[s]));return t}const ft=function(t){vn(this,t)};ft.util=kr,ft.options={},ft.version="3.16.19";const Xr="qx-",jt="__uikit__",pe={};function wn(t,e){var n;const i=Xr+Jt(t);if(!e)return yt(pe[i])&&(pe[i]=ft.extend(pe[i])),pe[i];t=be(t),ft[t]=(o,r)=>Be(t,o,r);const s=yt(e)?{...e}:e.options;return s.id=i,s.name=t,(n=s.install)==null||n.call(s,ft,s,t),ft._initialized&&!s.functional&&requestAnimationFrame(()=>Be(t,`[${i}],[data-${i}]`)),pe[i]=s}function Be(t,e,i,...s){const n=wn(t);return n.options.functional?new n({data:yt(e)?e:[e,i,...s]}):e?_(e).map(o)[0]:o();function o(r){const a=di(r,t);if(a)if(i)a.$destroy();else return a;return new n({el:r,data:i})}}function qt(t){return(t==null?void 0:t[jt])||{}}function di(t,e){return qt(t)[e]}function Gr(t,e){t[jt]||(t[jt]={}),t[jt][e.$options.name]=e}function Jr(t,e){var i;(i=t[jt])==null||delete i[e.$options.name],$e(t[jt])||delete t[jt]}function Kr(t){t.component=wn,t.getComponents=qt,t.getComponent=di,t.update=bn,t.use=function(i){if(!i.installed)return i.call(null,this),i.installed=!0,this},t.mixin=function(i,s){s=(B(s)?this.component(s):s)||this,s.options=Oe(s.options,i)},t.extend=function(i){i||(i={});const s=this,n=function(r){vn(this,r)};return n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.options=Oe(s.options,i),n.super=s,n.extend=s.extend,n};let e;Object.defineProperty(t,"container",{get(){return e||document.body},set(i){e=w(i)}})}function bn(t,e){t=t?H(t):document.body;for(const i of se(t).reverse())$n(i,e);Ct(t,i=>$n(i,e))}function $n(t,e){const i=qt(t);for(const s in i)fi(i[s],e)}function Zr(t){t.prototype.$mount=function(e){const i=this;Gr(e,i),i.$options.el=e,M(e,document)&&us(i)},t.prototype.$destroy=function(e=!1){const i=this,{el:s}=i.$options;s&&fs(i),de(i,"destroy"),Jr(s,i),e&&lt(i.$el)},t.prototype.$create=Be,t.prototype.$emit=function(e){fi(this,e)},t.prototype.$update=function(e=this.$el,i){bn(e,i)},t.prototype.$reset=function(){fs(this),us(this)},t.prototype.$getComponent=di,Object.defineProperties(t.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(t,"container")})}function Ot(t,e=t.$el,i=""){if(e.id)return e.id;let s=`${t.$options.id}-${t._uid}${i}`;return w(`#${s}`)&&(s=Ot(t,e,`${i}-2`)),s}Kr(ft),Zr(ft);function Qr(t){Ht&&window.MutationObserver&&(document.body?requestAnimationFrame(()=>xn(t)):new MutationObserver((e,i)=>{document.body&&(xn(t),i.disconnect())}).observe(document.documentElement,{childList:!0}))}function xn(t){v(document,"uikit:init",t),document.body&&Ct(document.body,yn),new MutationObserver(e=>e.forEach(ta)).observe(document,{childList:!0,subtree:!0}),new MutationObserver(e=>e.forEach(ea)).observe(document,{attributes:!0,subtree:!0}),t._initialized=!0}function ta({addedNodes:t,removedNodes:e}){for(const i of t)Ct(i,yn);for(const i of e)Ct(i,ia)}function ea({target:t,attributeName:e}){var s;const i=kn(e);if(i){if($t(t,e)){Be(i,t);return}(s=di(t,i))==null||s.$destroy()}}function yn(t){const e=qt(t);for(const i in qt(t))us(e[i]);for(const i of t.getAttributeNames()){const s=kn(i);s&&Be(s,t)}}function ia(t){const e=qt(t);for(const i in qt(t))fs(e[i])}function kn(t){ot(t,"data-")&&(t=t.slice(5));const e=pe[t];return e&&(yt(e)?e:e.options).name}var st={connected(){y(this.$el,this.$options.id)}},Ut={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"qx-togglabe-enter",clsLeave:"qx-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["slide","reveal"].some(e=>ot(t[0],e))}},methods:{async toggleElement(t,e,i){try{return await Promise.all(k(t).map(s=>{const n=Mi(e)?e:!this.isToggled(s);if(!v(s,`before${n?"show":"hide"}`,[this]))return Promise.reject();const o=(it(i)?i:i===!1||!this.hasAnimation?sa:this.hasTransition?na:oa)(s,n,this),r=n?this.clsEnter:this.clsLeave;y(s,r),v(s,n?"show":"hide",[this]);const a=()=>{N(s,r),v(s,n?"shown":"hidden",[this])};return o?o.then(a,()=>(N(s,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=H(t),A(t,this.clsEnter)?!0:A(t,this.clsLeave)?!1:this.cls?A(t,this.cls.split(" ")[0]):j(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=m(this.cls," ")||e!==A(t,this.cls),i&&q(t,this.cls,m(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),_("[autofocus]",t).some(s=>j(s)?s.focus()||!0:s.blur()),i&&v(t,"toggled",[e,this])}}};function sa(t,e,{_toggle:i}){return gt.cancel(t),P.cancel(t),i(t,e)}async function na(t,e,{animation:i,duration:s,velocity:n,transition:o,_toggle:r}){var zo;const[a="reveal",l="top"]=((zo=i[0])==null?void 0:zo.split("-"))||[],c=[["left","right"],["top","bottom"]],u=c[m(c[0],l)?0:1],f=u[1]===l,g=["width","height"][c.indexOf(u)],C=`margin-${u[0]}`,F=`margin-${l}`;let z=b(t)[g];const Oi=P.inProgress(t);await P.cancel(t),e&&r(t,!0);const Es=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",C,F].map(Fo=>[Fo,t.style[Fo]])),qe=b(t),Ps=$(h(t,C)),Mo=$(h(t,F)),Gt=qe[g]+Mo;!Oi&&!e&&(z+=Mo);const[Di]=Ki(t,"<div>");h(Di,{boxSizing:"border-box",height:qe.height,width:qe.width,...h(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",F])}),h(t,{padding:0,border:0,minWidth:0,minHeight:0,[F]:0,width:qe.width,height:qe.height,overflow:"hidden",[g]:z});const No=z/Gt;s=(n*Gt+s)*(e?1-No:No);const _o={[g]:e?Gt:0};f&&(h(t,C,Gt-z+Ps),_o[C]=e?Ps:Gt+Ps),!f^a==="reveal"&&(h(Di,C,-Gt+z),P.start(Di,{[C]:e?0:-Gt},s,o));try{await P.start(t,_o,s,o)}finally{h(t,Es),Ee(Di.firstChild),e||r(t,!1)}}function oa(t,e,i){gt.cancel(t);const{animation:s,duration:n,_toggle:o}=i;return e?(o(t,!0),gt.in(t,s[0],n,i.origin)):gt.out(t,s[1]||s[0],n,i.origin).then(()=>o(t,!1))}const I={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function pt(t){return _e(li,t,"resize")}function Me(t){return _e(js,t)}function Sn(t){return _e(qs,t)}function Ne(t={}){return Me({handler:function(e,i){const{targets:s=this.$el,preload:n=5}=t;for(const o of k(it(s)?s(this):s))_('[loading="lazy"]',o).slice(0,n-1).forEach(r=>xe(r,"loading"));for(const o of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(o)},...t})}function In(){return _e((t,e)=>es(e))}function pi(t){return _e((e,i)=>({disconnect:x(e,"scroll",i,{passive:!0,capture:!0})}),{target:()=>document,...t},"scroll")}function Cn(t){return{observe(e,i){return{observe:S,unobserve:S,disconnect:x(e,mt,i,{passive:!0})}},handler(e){if(!It(e))return;const i=re(e),s="tagName"in e.target?e.target:D(e.target);R(document,`${Pt} ${ai} scroll`,n=>{const{x:o,y:r}=re(n);(n.type!=="scroll"&&s&&o&&Math.abs(i.x-o)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{v(s,"swipe"),v(s,`swipe${ra(i.x,i.y,o,r)}`)})})},...t}}function _e(t,e,i){return{observe:t,handler(){this.$emit(i)},...e}}function ra(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}var Tn={mixins:[st,Ut],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"qx-open",toggle:"> .qx-accordion-title",content:"> .qx-accordion-content",offset:0},computed:{items({targets:t},e){return _(t,e)},toggles({toggle:t}){return this.items.map(e=>w(t,e))},contents({content:t}){return this.items.map(e=>{var i;return((i=e._wrapper)==null?void 0:i.firstElementChild)||w(t,e)})}},watch:{items(t,e){if(e||A(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const i=A(this.items.find(s=>M(e,s)),this.clsOpen);gi(e,!i)}this.$emit()}},observe:Ne(),events:[{name:"click keydown",delegate(){return`${this.targets} ${this.$props.toggle}`},async handler(t){var e;t.type==="keydown"&&t.keyCode!==I.SPACE||(t.preventDefault(),(e=this._off)==null||e.call(this),this._off=la(t.target),await this.toggle(ne(this.toggles,t.current)),this._off())}},{name:"shown hidden",self:!0,delegate(){return this.targets},handler(){this.$emit()}}],update(){const t=Se(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],s=this.contents[e];if(!i||!s)continue;i.id=Ot(this,i,`-title-${e}`),s.id=Ot(this,s,`-content-${e}`);const n=m(t,this.items[e]);p(i,{role:G(i,"a")?"button":null,"aria-controls":s.id,"aria-expanded":n,"aria-disabled":!this.collapsible&&t.length<2&&n}),p(s,{role:"region","aria-labelledby":i.id}),G(s,"ul")&&p(E(s),"role","presentation")}},methods:{toggle(t,e){t=this.items[rt(t,this.items)];let i=[t];const s=Se(this.items,`.${this.clsOpen}`);if(!this.multiple&&!m(s,i[0])&&(i=i.concat(s)),!(!this.collapsible&&s.length<2&&m(s,t)))return Promise.all(i.map(n=>this.toggleElement(n,!m(s,n),(o,r)=>{if(q(o,this.clsOpen,r),e===!1||!this.animation){gi(w(this.content,o),!r);return}return aa(o,r,this)})))}}};function gi(t,e){t&&(t.hidden=e)}async function aa(t,e,{content:i,duration:s,velocity:n,transition:o}){var u;i=((u=t._wrapper)==null?void 0:u.firstElementChild)||w(i,t),t._wrapper||(t._wrapper=si(i,"<div>"));const r=t._wrapper;h(r,"overflow","hidden");const a=$(h(r,"height"));await P.cancel(r),gi(i,!1);const l=Dt(["marginTop","marginBottom"],f=>h(i,f))+b(i).height,c=a/l;s=(n*l+s)*(e?1-c:c),h(r,"height",a),await P.start(r,{height:e?l:0},s,o),Ee(i),delete t._wrapper,e||gi(i,!0)}function la(t){const e=At(t,!0);let i;return function s(){i=requestAnimationFrame(()=>{const{top:n}=t.getBoundingClientRect();n<0&&(e.scrollTop+=n),s()})}(),()=>requestAnimationFrame(()=>cancelAnimationFrame(i))}var ha={mixins:[st,Ut],args:"animation",props:{animation:Boolean,close:String},data:{animation:!0,selClose:".qx-alert-close",duration:150},events:{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.close()}},methods:{async close(){await this.toggleElement(this.$el,!1,ca),this.$destroy(!0)}}};function ca(t,e,{duration:i,transition:s,velocity:n}){const o=$(h(t,"height"));return h(t,"height",o),P.start(t,{height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,opacity:0},n*o+i,s)}var En={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},connected(){this.inView=this.autoplay==="inview",this.inView&&!$t(this.$el,"preload")&&(this.$el.preload="none"),G(this.$el,"iframe")&&!$t(this.$el,"allow")&&(this.$el.allow="autoplay"),this.automute&&Xs(this.$el)},observe:[Me({args:{intersecting:!1}}),pt()],update:{read({visible:t}){return Gs(this.$el)?{prev:t,visible:j(this.$el),inView:this.inView&&ns(this.$el)}:!1},write({prev:t,visible:e,inView:i}){!e||this.inView&&!i?Ys(this.$el):(this.autoplay===!0&&!t||i)&&Vs(this.$el)},events:["resize"]}},ua={mixins:[En],props:{width:Number,height:Number},data:{automute:!0},events:{"load loadedmetadata"(){this.$emit("resize")}},observe:pt({target:({$el:t})=>[Pn(t)||D(t)]}),update:{read(){const{ratio:t,cover:e}=Ke,{$el:i,width:s,height:n}=this;let o={width:s,height:n};if(!s||!n){const c={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};s?o=t(c,"width",s):n?o=t(c,"height",n):o=c}const{offsetHeight:r,offsetWidth:a}=Pn(i)||D(i),l=e(o,{width:a+(a%2?1:0),height:r+(r%2?1:0)});return!l.width||!l.height?!1:l},write({height:t,width:e}){h(this.$el,{height:t,width:e})},events:["resize"]}};function Pn(t){for(;t=D(t);)if(h(t,"position")!=="static")return t}var An={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${J?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=m(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let s=[this.getPositionOffset(t),this.getShiftOffset(t)];const n=[this.flip&&"flip",this.shift&&"shift"],o={element:[this.inset?this.dir:oi(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in o)o[l].reverse();s.reverse(),n.reverse()}const r=fa(t),a=b(t);h(t,{top:-a.height,left:-a.width}),en(t,e,{attach:o,offset:s,boundary:i,placement:n,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t){return ht(this.offset===!1?h(t,"--qx-position-offset"):this.offset,this.axis==="x"?"width":"height",t)*(m(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t){return this.align==="center"?0:ht(h(t,"--qx-position-shift-offset"),this.axis==="y"?"width":"height",t)*(m(["left","top"],this.align)?1:-1)},getViewportOffset(t){return ht(h(t,"--qx-position-viewport-offset"))}}};function fa(t){const e=At(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}var ze={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&w(t)}}};let ds;function On(t){const e=x(t,"touchmove",s=>{if(s.targetTouches.length!==1||T(s.target,'input[type="range"'))return;let{scrollHeight:n,clientHeight:o}=At(s.target);o>=n&&s.cancelable&&s.preventDefault()},{passive:!1});if(ds)return e;ds=!0;const{scrollingElement:i}=document;return h(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:Pe(window)-i.clientWidth||""}),()=>{ds=!1,e(),h(i,{overflowY:"",touchAction:"",paddingRight:""})}}let Y;var Dn={mixins:[ze,An,Ut],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryX:Boolean,boundaryY:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,stretch:Boolean,delayShow:Number,delayHide:Number,autoUpdate:Boolean,clsDrop:String,animateOut:Boolean,bgScroll:Boolean},data:{mode:["click","hover"],toggle:"- *",boundary:!1,boundaryX:!1,boundaryY:!1,target:!1,targetX:!1,targetY:!1,stretch:!1,delayShow:0,delayHide:800,autoUpdate:!0,clsDrop:!1,animateOut:!1,bgScroll:!0,animation:["qx-animation-fade"],cls:"qx-open",container:!1},computed:{boundary({boundary:t,boundaryX:e,boundaryY:i},s){return[at(e||t,s)||window,at(i||t,s)||window]},target({target:t,targetX:e,targetY:i},s){return e||(e=t||this.targetEl),i||(i=t||this.targetEl),[e===!0?window:at(e,s),i===!0?window:at(i,s)]}},created(){this.tracker=new ts},beforeConnect(){this.clsDrop=this.$props.clsDrop||`qx-${this.$options.name}`},connected(){y(this.$el,"qx-drop",this.clsDrop),this.toggle&&!this.targetEl&&(this.targetEl=ga(this)),this._style=zi(this.$el.style,["width","height"])},disconnected(){this.isActive()&&(this.hide(!1),Y=null),h(this.$el,this._style)},observe:Ne({target:({toggle:t,$el:e})=>at(t,e),targets:({$el:t})=>t}),events:[{name:"click",delegate(){return".qx-drop-close"},handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate(){return'a[href*="#"]'},handler({defaultPrevented:t,current:e}){const{hash:i}=e;!t&&i&&oe(e)&&!M(i,this.$el)&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e==null?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e==null?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),T(this.$el,":focus,:hover")||this.hide()}},{name:`${Wt} focusin`,filter(){return m(this.mode,"hover")},handler(t){It(t)||this.clearTimers()}},{name:`${ce} focusout`,filter(){return m(this.mode,"hover")},handler(t){!It(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){p(this.targetEl,"aria-expanded",e?!0:null),e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){Y=this,this.tracker.init();const t=[ma(this),wa(this),ba(this),this.autoUpdate&&va(this),!this.bgScroll&&On(this.$el)];R(this.$el,"hide",()=>t.forEach(e=>e&&e()),{self:!0})}},{name:"beforehide",self:!0,handler(){this.clearTimers()}},{name:"hide",handler({target:t}){if(this.$el!==t){Y=Y===null&&M(t,this.$el)&&this.isToggled()?this:Y;return}Y=this.isActive()?null:Y,this.tracker.cancel()}}],update:{write(){this.isToggled()&&!A(this.$el,this.clsEnter)&&this.position()}},methods:{show(t=this.targetEl,e=!0){if(this.isToggled()&&t&&this.targetEl&&t!==this.targetEl&&this.hide(!1,!1),this.targetEl=t,this.clearTimers(),!this.isActive()){if(Y){if(e&&Y.isDelaying){this.showTimer=setTimeout(()=>T(t,":hover")&&this.show(),10);return}let i;for(;Y&&i!==Y&&!M(this.$el,Y.$el);)i=Y,Y.hide(!1,!1)}this.container&&D(this.$el)!==this.container&&L(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t=!0,e=!0){const i=()=>this.toggleElement(this.$el,!1,this.animateOut&&e);this.clearTimers(),this.isDelaying=da(this.$el).some(s=>this.tracker.movesTo(s)),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive(){return Y===this},position(){N(this.$el,"qx-drop-stack"),h(this.$el,this._style),this.$el.hidden=!0;const t=this.target.map(n=>pa(this.$el,n)),e=this.getViewportOffset(this.$el),i=[[0,["x","width","left","right"]],[1,["y","height","top","bottom"]]];for(const[n,[o,r]]of i)this.axis!==o&&m([o,!0],this.stretch)&&h(this.$el,{[r]:Math.min(O(this.boundary[n])[r],t[n][r]-2*e),[`overflow-${o}`]:"auto"});const s=t[0].width-2*e;this.$el.hidden=!1,h(this.$el,"maxWidth",""),this.$el.offsetWidth>s&&y(this.$el,"qx-drop-stack"),h(this.$el,"maxWidth",s),this.positionAt(this.$el,this.target,this.boundary);for(const[n,[o,r,a,l]]of i)if(this.axis===o&&m([o,!0],this.stretch)){const c=Math.abs(this.getPositionOffset(this.$el)),u=O(this.target[n]),f=O(this.$el);h(this.$el,{[r]:(u[a]>f[a]?u[this.inset?l:a]-Math.max(O(this.boundary[n])[a],t[n][a]+e):Math.min(O(this.boundary[n])[l],t[n][l]-e)-u[this.inset?a:l])-c,[`overflow-${o}`]:"auto"}),this.positionAt(this.$el,this.target,this.boundary)}}}};function da(t){const e=[];return Ct(t,i=>h(i,"position")!=="static"&&e.push(i)),e}function pa(t,e){return ct(Rt(e).find(i=>M(t,i)))}function ga(t){const{$el:e}=t.$create("toggle",at(t.toggle,t.$el),{target:t.$el,mode:t.mode});return p(e,"aria-haspopup",!0),e}function ma(t){const e=()=>t.$emit(),i=[es(e),li(Rt(t.$el).concat(t.target),e)];return()=>i.map(s=>s.disconnect())}function va(t){return x([document,...Rt(t.$el)],"scroll",()=>t.$emit(),{passive:!0})}function wa(t){return x(document,"keydown",e=>{e.keyCode===I.ESC&&t.hide(!1)})}function ba(t){return x(document,mt,({target:e})=>{M(e,t.$el)||R(document,`${Pt} ${ai} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===Pt&&e===n&&!(t.targetEl&&M(e,t.targetEl))&&t.hide(!1)},!0)})}var Bn={mixins:[st,ze],props:{align:String,clsDrop:String,boundary:Boolean,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number,mode:Boolean,offset:Boolean,stretch:Boolean,delayShow:Boolean,delayHide:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,animation:Boolean,animateOut:Boolean},data:{align:J?"right":"left",clsDrop:"qx-dropdown",clsDropbar:"qx-dropnav-dropbar",boundary:!0,dropbar:!1,dropbarAnchor:!1,duration:200,container:!1,selNavItem:"> li > a, > ul > li > a"},computed:{dropbarAnchor({dropbarAnchor:t},e){return at(t,e)||e},dropbar({dropbar:t}){return t?(t=this._dropbar||at(t,this.$el)||w(`+ .${this.clsDropbar}`,this.$el),t||(this._dropbar=w("<div></div>"))):null},dropContainer(t,e){return this.container||e},dropdowns({clsDrop:t},e){var s;const i=_(`.${t}`,e);if(this.dropContainer!==e)for(const n of _(`.${t}`,this.dropContainer)){const o=(s=this.getDropdown(n))==null?void 0:s.targetEl;!m(i,n)&&o&&M(o,this.$el)&&i.push(n)}return i},items({selNavItem:t},e){return _(t,e)}},watch:{dropbar(t){y(t,"qx-dropbar","qx-dropbar-top",this.clsDropbar,`qx-${this.$options.name}-dropbar`)},dropdowns(t){this.$create("drop",t.filter(e=>!this.getDropdown(e)),{...this.$props,flip:!1,shift:!0,pos:`bottom-${this.align}`,boundary:this.boundary===!0?this.$el:this.boundary})}},disconnected(){lt(this._dropbar),delete this._dropbar},events:[{name:"mouseover focusin",delegate(){return this.selNavItem},handler({current:t}){const e=this.getActive();e&&m(e.mode,"hover")&&e.targetEl&&!M(e.targetEl,t)&&!e.isDelaying&&e.hide(!1)}},{name:"keydown",self:!0,delegate(){return this.selNavItem},handler(t){var n;const{current:e,keyCode:i}=t,s=this.getActive();i===I.DOWN&&(s==null?void 0:s.targetEl)===e&&(t.preventDefault(),(n=w(ke,s.$el))==null||n.focus()),Mn(t,this.items,s)}},{name:"keydown",el(){return this.dropContainer},delegate(){return`.${this.clsDrop}`},handler(t){var o;const{current:e,keyCode:i}=t;if(!m(this.dropdowns,e))return;const s=this.getActive();let n=-1;if(i===I.HOME?n=0:i===I.END?n="last":i===I.UP?n="previous":i===I.DOWN?n="next":i===I.ESC&&((o=s.targetEl)==null||o.focus()),~n){t.preventDefault();const r=_(ke,e);r[rt(n,r,xt(r,a=>T(a,":focus")))].focus()}Mn(t,this.items,s)}},{name:"mouseleave",el(){return this.dropbar},filter(){return this.dropbar},handler(){const t=this.getActive();t&&m(t.mode,"hover")&&!this.dropdowns.some(e=>T(e,":hover"))&&t.hide()}},{name:"beforeshow",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){this.isDropbarDrop(t)&&(this.dropbar.previousElementSibling!==this.dropbarAnchor&&ei(this.dropbarAnchor,this.dropbar),y(t,`${this.clsDrop}-dropbar`))}},{name:"show",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){if(!this.isDropbarDrop(t))return;const e=this.getDropdown(t),i=()=>{const s=se(t,`.${this.clsDrop}`).concat(t).map(a=>O(a)),n=Math.min(...s.map(({top:a})=>a)),o=Math.max(...s.map(({bottom:a})=>a)),r=O(this.dropbar);h(this.dropbar,"top",this.dropbar.offsetTop-(r.top-n)),this.transitionTo(o-n+$(h(t,"marginBottom")),t)};this._observer=li([e.$el,...e.target],i),i()}},{name:"beforehide",el(){return this.dropContainer},filter(){return this.dropbar},handler(t){const e=this.getActive();T(this.dropbar,":hover")&&e.$el===t.target&&!this.items.some(i=>e.targetEl!==i&&T(i,":focus"))&&t.preventDefault()}},{name:"hide",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){var i;if(!this.isDropbarDrop(t))return;(i=this._observer)==null||i.disconnect();const e=this.getActive();(!e||e.$el===t)&&this.transitionTo(0)}}],methods:{getActive(){return m(this.dropdowns,Y==null?void 0:Y.$el)&&Y},async transitionTo(t,e){const{dropbar:i}=this,s=et(i);e=s<t&&e,await P.cancel([e,i]),h(e,"clipPath",`polygon(0 0,100% 0,100% ${s}px,0 ${s}px)`),et(i,s),await Promise.all([P.start(i,{height:t},this.duration),P.start(e,{clipPath:`polygon(0 0,100% 0,100% ${t}px,0 ${t}px)`},this.duration).finally(()=>h(e,{clipPath:""}))]).catch(S)},getDropdown(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")},isDropbarDrop(t){return this.getDropdown(t)&&A(t,this.clsDrop)}}};function Mn(t,e,i){var r,a,l;const{current:s,keyCode:n}=t;let o=-1;n===I.HOME?o=0:n===I.END?o="last":n===I.LEFT?o="previous":n===I.RIGHT?o="next":n===I.TAB&&((r=i.targetEl)==null||r.focus(),(a=i.hide)==null||a.call(i,!1)),~o&&(t.preventDefault(),(l=i.hide)==null||l.call(i,!1),e[rt(o,e,e.indexOf(i.targetEl||s))].focus())}var $a={mixins:[st],args:"target",props:{target:Boolean},data:{target:!1},computed:{input(t,e){return w(ye,e)},state(){return this.input.nextElementSibling},target({target:t},e){return t&&(t===!0&&D(this.input)===e&&this.input.nextElementSibling||w(t,e))}},update(){var r;const{target:t,input:e}=this;if(!t)return;let i;const s=Wi(t)?"value":"textContent",n=t[s],o=(r=e.files)!=null&&r[0]?e.files[0].name:T(e,"select")&&(i=_("option",e).filter(a=>a.selected)[0])?i.textContent:e.value;n!==o&&(t[s]=o)},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el(){return U(this.$el,"form")},handler(){this.$emit()}}]},Nn={props:{margin:String,firstColumn:Boolean},data:{margin:"qx-margin-small-top",firstColumn:"qx-first-column"},observe:[Sn({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),pt({target:({$el:t})=>[t,...E(t)]})],update:{read(){const t=ps(this.$el.children);return{rows:t,columns:xa(t)}},write({columns:t,rows:e}){for(const i of e)for(const s of i)q(s,this.margin,e[0]!==i),q(s,this.firstColumn,t[0].includes(s))},events:["resize"]}};function ps(t){return _n(t,"top","bottom")}function xa(t){const e=[];for(const i of t){const s=_n(i,"left","right");for(let n=0;n<s.length;n++)e[n]=e[n]?e[n].concat(s[n]):s[n]}return J?e.reverse():e}function _n(t,e,i){const s=[[]];for(const n of t){if(!j(n))continue;let o=mi(n);for(let r=s.length-1;r>=0;r--){const a=s[r];if(!a[0]){a.push(n);break}let l;if(a[0].offsetParent===n.offsetParent?l=mi(a[0]):(o=mi(n,!0),l=mi(a[0],!0)),o[e]>=l[i]-1&&o[e]!==l[e]){s.push([n]);break}if(o[i]-1>l[e]||o[e]===l[e]){a.push(n);break}if(r===0){s.unshift([n]);break}}}return s}function mi(t,e=!1){let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:o}=t;return e&&([i,s]=Ft(t)),{top:i,left:s,bottom:i+n,right:s+o}}var ya={extends:Nn,mixins:[st],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"qx-grid-margin",clsStack:"qx-grid-stack",masonry:!1,parallax:0},connected(){this.masonry&&y(this.$el,"qx-flex-top qx-flex-wrap-top")},observe:pi({filter:({parallax:t})=>t}),update:[{write({columns:t}){q(this.$el,this.clsStack,t.length<2)},events:["resize"]},{read(t){let{columns:e,rows:i}=t;if(!e.length||!this.masonry&&!this.parallax||zn(this.$el))return t.translates=!1,!1;let s=!1;const n=E(this.$el),o=e.map(c=>Dt(c,"offsetHeight")),r=Sa(n,this.margin)*(i.length-1),a=Math.max(...o)+r;this.masonry&&(e=e.map(c=>Ge(c,"offsetTop")),s=ka(i,e));let l=Math.abs(this.parallax);return l&&(l=o.reduce((c,u,f)=>Math.max(c,u+r+(f%2?l:l/8)-a),0)),{padding:l,columns:e,translates:s,height:s?a:""}},write({height:t,padding:e}){h(this.$el,"paddingBottom",e||""),t!==!1&&h(this.$el,"height",t)},events:["resize"]},{read(){return this.parallax&&zn(this.$el)?!1:{scrolled:this.parallax?os(this.$el)*Math.abs(this.parallax):!1}},write({columns:t,scrolled:e,translates:i}){e===!1&&!i||t.forEach((s,n)=>s.forEach((o,r)=>h(o,"transform",!e&&!i?"":`translateY(${(i&&-i[n][r])+(e?n%2?e:e/8:0)}px)`)))},events:["scroll","resize"]}]};function zn(t){return E(t).some(e=>h(e,"position")==="absolute")}function ka(t,e){const i=t.map(s=>Math.max(...s.map(n=>n.offsetHeight)));return e.map(s=>{let n=0;return s.map((o,r)=>n+=r?i[r-1]-s[r-1].offsetHeight:0)})}function Sa(t,e){const[i]=t.filter(s=>A(s,e));return $(i?h(i,"marginTop"):h(t[0],"paddingLeft"))}var Ia={args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements({target:t},e){return _(t,e)}},observe:pt({target:({$el:t,elements:e})=>[t,...e]}),update:{read(){return{rows:(this.row?ps(this.elements):[this.elements]).map(Ca)}},write({rows:t}){for(const{heights:e,elements:i}of t)i.forEach((s,n)=>h(s,"minHeight",e[n]))},events:["resize"]}};function Ca(t){if(t.length<2)return{heights:[""],elements:t};let e=t.map(Ta);const i=Math.max(...e);return{heights:t.map((s,n)=>e[n].toFixed(2)===i.toFixed(2)?"":i),elements:t}}function Ta(t){const e=zi(t.style,["display","minHeight"]);j(t)||h(t,"display","block","important"),h(t,"minHeight","");const i=b(t).height-ae(t,"height","content-box");return h(t,e),i}var Ea={props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},observe:pt({target:({$el:t})=>[t,...ue(t)]}),update:{read({minHeight:t}){if(!j(this.$el))return!1;let e="";const i=ae(this.$el,"height","content-box"),{body:s,scrollingElement:n}=document,o=At(this.$el),{height:r}=ct(o===s?n:o);if(this.expand)e=Math.max(r-(b(o).height-b(this.$el).height)-i,0);else{const a=n===o||s===o;if(e=`calc(${a?"100vh":`${r}px`}`,this.offsetTop)if(a){const l=Ft(this.$el)[0]-Ft(o)[0];e+=l>0&&l<r/2?` - ${l}px`:""}else e+=` - ${h(o,"paddingTop")}`;this.offsetBottom===!0?e+=` - ${b(this.$el.nextElementSibling).height}px`:bt(this.offsetBottom)?e+=` - ${this.offsetBottom}vh`:this.offsetBottom&&Kt(this.offsetBottom,"px")?e+=` - ${$(this.offsetBottom)}px`:B(this.offsetBottom)&&(e+=` - ${b(at(this.offsetBottom,this.$el)).height}px`),e+=`${i?` - ${i}px`:""})`}return{minHeight:e,prev:t}},write({minHeight:t}){h(this.$el,{minHeight:t}),this.minHeight&&$(h(this.$el,"minHeight"))<this.minHeight&&h(this.$el,"minHeight",this.minHeight)},events:["resize"]}},Fn={args:"src",props:{width:Number,height:Number,ratio:Number},data:{ratio:1},connected(){this.svg=this.getSvg().then(t=>{if(!this._connected)return;const e=Pa(t,this.$el);return this.svgEl&&e!==this.svgEl&&lt(this.svgEl),Aa.call(this,e,t),this.svgEl=e},S)},disconnected(){this.svg.then(t=>{this._connected||(Li(this.$el)&&(this.$el.hidden=!1),lt(t),this.svgEl=null)}),this.svg=null},methods:{async getSvg(){}}};function Pa(t,e){if(Li(e)||G(e,"canvas")){e.hidden=!0;const s=e.nextElementSibling;return Hn(t,s)?s:ei(e,t)}const i=e.lastElementChild;return Hn(t,i)?i:L(e,t)}function Hn(t,e){return G(t,"svg")&&G(e,"svg")&&t.innerHTML===e.innerHTML}function Aa(t,e){const i=["width","height"];let s=i.map(o=>this[o]);s.some(o=>o)||(s=i.map(o=>p(e,o)));const n=p(e,"viewBox");n&&!s.some(o=>o)&&(s=n.split(" ").slice(2)),s.forEach((o,r)=>p(t,i[r],$(o)*this.ratio||null))}var vi={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var s,n,o;let i=0;return((o=((s=this.i18n)==null?void 0:s[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[i++]||""))||""}}},Oa='<svg width="14" height="14" viewBox="0 0 14 14"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"/><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"/></svg>',Da='<svg width="20" height="20" viewBox="0 0 20 20"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"/><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"/></svg>',Ba='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',Ma='<svg width="20" height="20" viewBox="0 0 20 20"><rect x="9" y="4" width="1" height="11"/><rect x="4" y="9" width="11" height="1"/></svg>',Na='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',_a='<svg width="14" height="14" viewBox="0 0 14 14"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 4 7 10 13 4"/></svg>',za='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',Fa='<svg width="20" height="20" viewBox="0 0 20 20"><style>.qx-navbar-toggle-animate svg&gt;[class*=&quot;line-&quot;]{transition:0.2s ease-in-out;transition-property:transform, opacity;transform-origin:center;opacity:1}.qx-navbar-toggle svg&gt;.line-3{opacity:0}.qx-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{opacity:1}.qx-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-2{transform:rotate(45deg)}.qx-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{transform:rotate(-45deg)}.qx-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1,.qx-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{opacity:0}.qx-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1{transform:translateY(6px) scaleX(0)}.qx-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{transform:translateY(-6px) scaleX(0)}</style><rect class="line-1" y="3" width="20" height="2"/><rect class="line-2" y="9" width="20" height="2"/><rect class="line-3" y="9" width="20" height="2"/><rect class="line-4" y="15" width="20" height="2"/></svg>',Ha='<svg width="40" height="40" viewBox="0 0 40 40"><rect x="19" y="0" width="1" height="40"/><rect x="0" y="19" width="40" height="1"/></svg>',La='<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',Wa='<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',Ra='<svg width="20" height="20" viewBox="0 0 20 20"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"/><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"/></svg>',ja='<svg width="40" height="40" viewBox="0 0 40 40"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"/><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"/></svg>',qa='<svg width="24" height="24" viewBox="0 0 24 24"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',Ua='<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1"/></svg>',Va='<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5"/></svg>',Ya='<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23"/></svg>',Xa='<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547"/></svg>',Ga='<svg width="30" height="30" viewBox="0 0 30 30"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>',Ja='<svg width="18" height="10" viewBox="0 0 18 10"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9"/></svg>';const wi={spinner:Ga,totop:Ja,marker:Ma,"close-icon":Oa,"close-large":Da,"drop-parent-icon":Ba,"nav-parent-icon":Na,"nav-parent-icon-large":_a,"navbar-parent-icon":za,"navbar-toggle-icon":Fa,"overlay-icon":Ha,"pagination-next":La,"pagination-previous":Wa,"search-icon":Ra,"search-large":ja,"search-navbar":qa,"slidenav-next":Ua,"slidenav-next-large":Va,"slidenav-previous":Ya,"slidenav-previous-large":Xa},gs={install:rl,mixins:[Fn],args:"icon",props:{icon:String},isIcon:!0,beforeConnect(){y(this.$el,"qx-icon")},methods:{async getSvg(){const t=al(this.icon);if(!t)throw"Icon not found.";return t}}},Vt={args:!1,extends:gs,data:t=>({icon:Jt(t.constructor.options.name)}),beforeConnect(){y(this.$el,this.$options.id)}},Ka={extends:Vt,beforeConnect(){const t=this.$props.icon;this.icon=U(this.$el,".qx-nav-primary")?`${t}-large`:t}},Za={extends:Vt,mixins:[vi],i18n:{toggle:"Open Search",submit:"Submit Search"},beforeConnect(){if(this.icon=A(this.$el,"qx-search-icon")&&se(this.$el,".qx-search-large").length?"search-large":se(this.$el,".qx-search-navbar").length?"search-navbar":this.$props.icon,!$t(this.$el,"aria-label"))if(A(this.$el,"qx-search-toggle")||A(this.$el,"qx-navbar-toggle")){const t=this.t("toggle");p(this.$el,"aria-label",t)}else{const t=U(this.$el,"a,button");if(t){const e=this.t("submit");p(t,"aria-label",e)}}}},Qa={extends:Vt,beforeConnect(){p(this.$el,"role","status")},methods:{async getSvg(){const t=await gs.methods.getSvg.call(this);return this.ratio!==1&&h(w("circle",t),"strokeWidth",1/this.ratio),t}}},Yt={extends:Vt,mixins:[vi],beforeConnect(){const t=U(this.$el,"a,button");p(t,"role",this.role!==null&&G(t,"a")?"button":this.role);const e=this.t("label");e&&!$t(t,"aria-label")&&p(t,"aria-label",e)}},Ln={extends:Yt,beforeConnect(){y(this.$el,"qx-slidenav");const t=this.$props.icon;this.icon=A(this.$el,"qx-slidenav-large")?`${t}-large`:t}},tl={extends:Yt,i18n:{label:"Open menu"}},el={extends:Yt,i18n:{label:"Close"},beforeConnect(){this.icon=`close-${A(this.$el,"qx-close-large")?"large":"icon"}`}},il={extends:Yt,i18n:{label:"Open"}},sl={extends:Yt,i18n:{label:"Back to top"}},nl={extends:Yt,i18n:{label:"Next page"},data:{role:null}},ol={extends:Yt,i18n:{label:"Previous page"},data:{role:null}},bi={};function rl(t){t.icon.add=(e,i)=>{const s=B(e)?{[e]:i}:e;St(s,(n,o)=>{wi[o]=n,delete bi[o]}),t._initialized&&Ct(document.body,n=>St(t.getComponents(n),o=>{o.$options.isIcon&&o.icon in s&&o.$reset()}))}}function al(t){return wi[t]?(bi[t]||(bi[t]=w((wi[ll(t)]||wi[t]).trim())),bi[t].cloneNode(!0)):null}function ll(t){return J?_i(_i(t,"left","right"),"previous","next"):t}const hl=Ht&&"loading"in HTMLImageElement.prototype;var cl={args:"dataSrc",props:{dataSrc:String,sources:String,margin:String,target:String,loading:String},data:{dataSrc:"",sources:!1,margin:"50%",target:!1,loading:"lazy"},connected(){if(this.loading!=="lazy"){this.load();return}hl&&$i(this.$el)&&(this.$el.loading="lazy",ms(this.$el)),gl(this.$el)},disconnected(){this.img&&(this.img.onload=""),delete this.img},observe:Me({target:({$el:t,$props:e})=>[t,...Ie(e.target,t)],handler(t,e){this.load(),e.disconnect()},options:({margin:t})=>({rootMargin:t}),filter:({loading:t})=>t==="lazy"}),methods:{load(){if(this.img)return this.img;const t=$i(this.$el)?this.$el:fl(this.$el,this.dataSrc,this.sources);return xe(t,"loading"),ms(this.$el,t.currentSrc),this.img=t}}};function ms(t,e){if($i(t)){const i=D(t);(G(i,"picture")?E(i):[t]).forEach(n=>Wn(n,n))}else e&&!m(t.style.backgroundImage,e)&&(h(t,"backgroundImage",`url(${qi(e)})`),v(t,Mt("load",!1)))}const ul=["data-src","data-srcset","sizes"];function Wn(t,e){for(const i of ul){const s=tt(t,i);s&&p(e,i.replace(/^(data-)+/,""),s)}}function fl(t,e,i){const s=new Image;return dl(s,i),Wn(t,s),s.onload=()=>{ms(t,s.currentSrc)},p(s,"src",e),s}function dl(t,e){if(e=pl(e),e.length){const i=_t("<picture>");for(const s of e){const n=_t("<source>");p(n,s),L(i,n)}L(i,t)}}function pl(t){if(!t)return[];if(ot(t,"["))try{t=JSON.parse(t)}catch{t=[]}else t=De(t);return Q(t)||(t=[t]),t.filter(e=>!$e(e))}function gl(t){$i(t)&&!$t(t,"src")&&p(t,"src",'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>')}function $i(t){return G(t,"img")}var xi={props:{media:Boolean},data:{media:!1},connected(){const t=ml(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,v(this.$el,Mt("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=x(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function ml(t,e){if(B(t)){if(ot(t,"@"))t=$(h(e,`--qx-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&bt(t)?`(min-width: ${t}px)`:""}var vl={mixins:[st,xi],props:{fill:String},data:{fill:"",clsWrapper:"qx-leader-fill",clsHide:"qx-leader-hide",attrFill:"data-fill"},computed:{fill({fill:t}){return t||h(this.$el,"--qx-leader-fill-content")}},connected(){[this.wrapper]=Ki(this.$el,`<span class="${this.clsWrapper}">`)},disconnected(){Ee(this.wrapper.childNodes)},observe:pt(),update:{read(){return{width:Math.trunc(this.$el.offsetWidth/2),fill:this.fill,hide:!this.matchMedia}},write({width:t,fill:e,hide:i}){q(this.wrapper,this.clsHide,i),p(this.wrapper,this.attrFill,new Array(t).join(e))},events:["resize"]}};const nt=[];var vs={mixins:[st,ze,Ut],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"qx-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:t},e){return w(t,e)},transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){p(this.panel||this.$el,"role",this.role),this.overlay&&p(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){m(nt,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&oe(e)&&!M(s,this.$el)&&w(s,document.body)?this.hide():T(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===m(nt,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(m(nt,this))return!1;!this.stack&&nt.length?(Promise.all(nt.map(e=>e.hide())).then(this.show),t.preventDefault()):nt.push(this)}},{name:"show",self:!0,handler(){this.stack&&h(this.$el,"zIndex",$(h(this.$el,"zIndex"))+nt.length);const t=[this.overlay&&bl(this),this.overlay&&On(this.$el),this.bgClose&&$l(this),this.escClose&&xl(this)];R(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),y(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){Ze(this.$el)||p(this.$el,"tabindex","-1"),T(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){m(nt,this)&&nt.splice(nt.indexOf(this),1),h(this.$el,"zIndex",""),nt.some(t=>t.clsPage===this.clsPage)||N(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&D(this.$el)!==this.container?(L(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,Rn)},hide(){return this.toggleElement(this.$el,!1,Rn)}}};function Rn(t,e,{transitionElement:i,_toggle:s}){return new Promise((n,o)=>R(t,"show hide",()=>{var l;(l=t._reject)==null||l.call(t),t._reject=o,s(t,e);const r=R(i,"transitionstart",()=>{R(i,"transitionend transitioncancel",n,{self:!0}),clearTimeout(a)},{self:!0}),a=setTimeout(()=>{r(),n()},wl(h(i,"transitionDuration")))})).then(()=>delete t._reject)}function wl(t){return t?Kt(t,"ms")?$(t):$(t)*1e3:0}function bl(t){return x(document,"focusin",e=>{ie(nt)===t&&!M(e.target,t.$el)&&t.$el.focus()})}function $l(t){return x(document,mt,({target:e})=>{ie(nt)!==t||t.overlay&&!M(e,t.$el)||M(e,t.panel)||R(document,`${Pt} ${ai} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===Pt&&e===n&&t.hide()},!0)})}function xl(t){return x(document,"keydown",e=>{e.keyCode===27&&ie(nt)===t&&t.hide()})}var yl={install:kl,mixins:[vs],data:{clsPage:"qx-modal-page",selPanel:".qx-modal-dialog",selClose:".qx-modal-close, .qx-modal-close-default, .qx-modal-close-outside, .qx-modal-close-full"},events:[{name:"show",self:!0,handler(){A(this.panel,"qx-margin-auto-vertical")?y(this.$el,"qx-flex"):h(this.$el,"display","block"),et(this.$el)}},{name:"hidden",self:!0,handler(){h(this.$el,"display",""),N(this.$el,"qx-flex")}}]};function kl({modal:t}){t.dialog=function(i,s){const n=t(`<div class="qx-modal"> <div class="qx-modal-dialog">${i}</div> </div>`,{stack:!0,role:"alertdialog",...s});return n.show(),x(n.$el,"hidden",async()=>{await Promise.resolve(),n.$destroy(!0)},{self:!0}),n},t.alert=function(i,s){return e(({i18n:n})=>`<div class="qx-modal-body">${B(i)?i:Nt(i)}</div> <div class="qx-modal-footer qx-text-right"> <button class="qx-button qx-button-primary qx-modal-close" autofocus>${n.ok}</button> </div>`,s)},t.confirm=function(i,s){return e(({i18n:n})=>`<form> <div class="qx-modal-body">${B(i)?i:Nt(i)}</div> <div class="qx-modal-footer qx-text-right"> <button class="qx-button qx-button-default qx-modal-close" type="button">${n.cancel}</button> <button class="qx-button qx-button-primary" autofocus>${n.ok}</button> </div> </form>`,s,()=>Promise.reject())},t.prompt=function(i,s,n){const o=e(({i18n:l})=>`<form class="qx-form-stacked"> <div class="qx-modal-body"> <label>${B(i)?i:Nt(i)}</label> <input class="qx-input" value="${s||""}" autofocus> </div> <div class="qx-modal-footer qx-text-right"> <button class="qx-button qx-button-default qx-modal-close" type="button">${l.cancel}</button> <button class="qx-button qx-button-primary">${l.ok}</button> </div> </form>`,n,()=>null,()=>a.value),{$el:r}=o.dialog,a=w("input",r);return x(r,"show",()=>a.select()),o},t.i18n={ok:"Ok",cancel:"Cancel"};function e(i,s,n=S,o=S){s={bgClose:!1,escClose:!0,...s,i18n:{...t.i18n,...s==null?void 0:s.i18n}};const r=t.dialog(i(s),s);return wt(new Promise(a=>{const l=x(r.$el,"hide",()=>a(n()));x(r.$el,"submit","form",c=>{c.preventDefault(),a(o(r)),l(),r.hide()})}),{dialog:r})}}var Sl={extends:Tn,data:{targets:"> .qx-parent",toggle:"> a",content:"> ul"}},Il={extends:Bn,data:{clsDrop:"qx-navbar-dropdown",selNavItem:".qx-navbar-nav > li > a,a.qx-navbar-item,button.qx-navbar-item,.qx-navbar-item a,.qx-navbar-item button,.qx-navbar-toggle"},watch:{items(){const t=A(this.$el,"qx-navbar-justify");for(const e of _(".qx-navbar-nav, .qx-navbar-left, .qx-navbar-right",this.$el))h(e,"flexGrow",t?_(".qx-navbar-nav > li > a, .qx-navbar-item, .qx-navbar-toggle",e).length:"")}}},Cl={mixins:[vs],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean,swiping:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"qx-offcanvas-page",clsContainer:"qx-offcanvas-container",selPanel:".qx-offcanvas-bar",clsFlip:"qx-offcanvas-flip",clsContainerAnimation:"qx-offcanvas-container-animation",clsSidebarAnimation:"qx-offcanvas-bar-animation",clsMode:"qx-offcanvas",clsOverlay:"qx-offcanvas-overlay",selClose:".qx-offcanvas-close",container:!1,swiping:!0},computed:{clsFlip({flip:t,clsFlip:e}){return t?e:""},clsOverlay({overlay:t,clsOverlay:e}){return t?e:""},clsMode({mode:t,clsMode:e}){return`${e}-${t}`},clsSidebarAnimation({mode:t,clsSidebarAnimation:e}){return t==="none"||t==="reveal"?"":e},clsContainerAnimation({mode:t,clsContainerAnimation:e}){return t!=="push"&&t!=="reveal"?"":e},transitionElement({mode:t}){return t==="reveal"?D(this.panel):this.panel}},observe:Cn({filter:({swiping:t})=>t}),update:{read(){this.isToggled()&&!j(this.$el)&&this.hide()},events:["resize"]},events:[{name:"touchmove",self:!0,passive:!1,filter(){return this.overlay},handler(t){t.cancelable&&t.preventDefault()}},{name:"show",self:!0,handler(){this.mode==="reveal"&&!A(D(this.panel),this.clsMode)&&(si(this.panel,"<div>"),y(D(this.panel),this.clsMode));const{body:t,scrollingElement:e}=document;y(t,this.clsContainer,this.clsFlip),h(t,"touch-action","pan-y pinch-zoom"),h(this.$el,"display","block"),h(this.panel,"maxWidth",e.clientWidth),y(this.$el,this.clsOverlay),y(this.panel,this.clsSidebarAnimation,this.mode==="reveal"?"":this.clsMode),et(t),y(t,this.clsContainerAnimation),this.clsContainerAnimation&&Tl()}},{name:"hide",self:!0,handler(){N(document.body,this.clsContainerAnimation),h(document.body,"touch-action","")}},{name:"hidden",self:!0,handler(){this.clsContainerAnimation&&El(),this.mode==="reveal"&&Ee(this.panel),N(this.panel,this.clsSidebarAnimation,this.clsMode),N(this.$el,this.clsOverlay),h(this.$el,"display",""),h(this.panel,"maxWidth",""),N(document.body,this.clsContainer,this.clsFlip)}},{name:"swipeLeft swipeRight",handler(t){this.isToggled()&&Kt(t.type,"Left")^this.flip&&this.hide()}}]};function Tl(){jn().content+=",user-scalable=0"}function El(){const t=jn();t.content=t.content.replace(/,user-scalable=0$/,"")}function jn(){return w('meta[name="viewport"]',document.head)||L(document.head,'<meta name="viewport">')}var Pl={mixins:[st],props:{selContainer:String,selContent:String,minHeight:Number},data:{selContainer:".qx-modal",selContent:".qx-modal-dialog",minHeight:150},computed:{container({selContainer:t},e){return U(e,t)},content({selContent:t},e){return U(e,t)}},observe:pt({target:({container:t,content:e})=>[t,e]}),update:{read(){return!this.content||!this.container||!j(this.$el)?!1:{max:Math.max(this.minHeight,et(this.container)-(b(this.content).height-et(this.$el)))}},write({max:t}){h(this.$el,{minHeight:this.minHeight,maxHeight:t})},events:["resize"]}},Al={props:["width","height"],connected(){y(this.$el,"qx-responsive-width")},observe:pt({target:({$el:t})=>[t,D(t)]}),update:{read(){return j(this.$el)&&this.width&&this.height?{width:Pe(D(this.$el)),height:this.height}:!1},write(t){et(this.$el,Ke.contain({height:this.height,width:this.width},t).height)},events:["resize"]}},Ol={props:{offset:Number},data:{offset:0},connected(){Dl(this)},disconnected(){Bl(this)},methods:{async scrollTo(t){t=t&&w(t)||document.body,v(this.$el,"beforescroll",[this,t])&&(await Qs(t,{offset:this.offset}),v(this.$el,"scrolled",[this,t]))}}};const Fe=new Set;function Dl(t){Fe.size||x(document,"click",qn),Fe.add(t)}function Bl(t){Fe.delete(t),Fe.size||Bt(document,"click",qn)}function qn(t){if(!t.defaultPrevented)for(const e of Fe)M(t.target,e.$el)&&oe(e.$el)&&(t.preventDefault(),window.location.href!==e.$el.href&&window.history.pushState({},"",e.$el.href),e.scrollTo(Ri(e.$el)))}var Ml={args:"cls",props:{cls:String,target:String,hidden:Boolean,margin:String,repeat:Boolean,delay:Number},data:()=>({cls:"",target:!1,hidden:!0,margin:"-1px",repeat:!1,delay:0,inViewClass:"qx-scrollspy-inview"}),computed:{elements({target:t},e){return t?_(t,e):[e]}},watch:{elements(t){this.hidden&&h(Se(t,`:not(.${this.inViewClass})`),"opacity",0)}},connected(){this.elementData=new Map},disconnected(){for(const[t,e]of this.elementData.entries())N(t,this.inViewClass,(e==null?void 0:e.cls)||"");delete this.elementData},observe:Me({target:({elements:t})=>t,handler(t){const e=this.elementData;for(const{target:i,isIntersecting:s}of t){e.has(i)||e.set(i,{cls:tt(i,"qx-scrollspy-class")||this.cls});const n=e.get(i);!this.repeat&&n.show||(n.show=s)}this.$emit()},options:t=>({rootMargin:t.margin}),args:{intersecting:!1}}),update:[{write(t){for(const[e,i]of this.elementData.entries())i.show&&!i.inview&&!i.queued?(i.queued=!0,t.promise=(t.promise||Promise.resolve()).then(()=>new Promise(s=>setTimeout(s,this.delay))).then(()=>{this.toggle(e,!0),setTimeout(()=>{i.queued=!1,this.$emit()},300)})):!i.show&&i.inview&&!i.queued&&this.repeat&&this.toggle(e,!1)}}],methods:{toggle(t,e){var s;const i=this.elementData.get(t);if(i){if((s=i.off)==null||s.call(i),h(t,"opacity",!e&&this.hidden?0:""),q(t,this.inViewClass,e),q(t,i.cls),/\bqx-animation-/.test(i.cls)){const n=()=>Yi(t,"qx-animation-[\\w-]+");e?i.off=R(t,"animationcancel animationend",n):n()}v(t,e?"inview":"outview"),i.inview=e,this.$update(t)}}}},Nl={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"qx-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links(t,e){return _('a[href*="#"]',e).filter(i=>i.hash&&oe(i))},elements({closest:t}){return U(this.links,t||"*")}},watch:{links(t){this.scroll&&this.$create("scroll",t,{offset:this.offset||0})}},observe:[Me(),pi()],update:[{read(){const t=this.links.map(Ri).filter(Boolean),{length:e}=t;if(!e||!j(this.$el))return!1;const i=At(t,!0),{scrollTop:s,scrollHeight:n}=i,o=ct(i),r=n-o.height;let a=!1;if(s===r)a=e-1;else{for(let l=0;l<t.length&&!(O(t[l]).top-o.top-this.offset>0);l++)a=+l;a===!1&&this.overflow&&(a=0)}return{active:a}},write({active:t}){const e=t!==!1&&!A(this.elements[t],this.cls);this.links.forEach(i=>i.blur());for(let i=0;i<this.elements.length;i++)q(this.elements[i],this.cls,+i===t);e&&v(this.$el,"active",[t,this.elements[t]])},events:["scroll","resize"]}]},_l={mixins:[st,xi],props:{position:String,top:null,bottom:null,start:null,end:null,offset:String,overflowFlip:Boolean,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,showOnUp:Boolean,targetOffset:Number},data:{position:"top",top:!1,bottom:!1,start:!1,end:!1,offset:0,overflowFlip:!1,animation:"",clsActive:"qx-active",clsInactive:"",clsFixed:"qx-sticky-fixed",clsBelow:"qx-sticky-below",selTarget:"",showOnUp:!1,targetOffset:!1},computed:{selTarget({selTarget:t},e){return t&&w(t,e)||e}},connected(){this.start=Un(this.start||this.top),this.end=Un(this.end||this.bottom),this.placeholder=w("+ .qx-sticky-placeholder",this.$el)||w('<div class="qx-sticky-placeholder"></div>'),this.isFixed=!1,this.setActive(!1)},disconnected(){this.isFixed&&(this.hide(),N(this.selTarget,this.clsInactive)),Vn(this.$el),lt(this.placeholder),this.placeholder=null},observe:[pt({target:({$el:t})=>[t,document.scrollingElement]}),In(),pi()],events:[{name:"load hashchange popstate",el(){return window},filter(){return this.targetOffset!==!1},handler(){const{scrollingElement:t}=document;!location.hash||t.scrollTop===0||setTimeout(()=>{const e=O(w(location.hash)),i=O(this.$el);this.isFixed&&Fi(e,i)&&(t.scrollTop=e.top-i.height-ht(this.targetOffset,"height",this.placeholder)-ht(this.offset,"height",this.placeholder))})}},{name:"transitionstart",capture:!0,handler(){this.transitionInProgress=R(this.$el,"transitionend transitioncancel",()=>this.transitionInProgress=null)}}],update:[{read({height:t,width:e,margin:i,sticky:s}){if(this.inactive=!this.matchMedia||!j(this.$el),this.inactive)return;const n=this.isFixed&&!this.transitionInProgress;n&&(Yn(this.selTarget),this.hide()),this.active||({height:t,width:e}=O(this.$el),i=h(this.$el,"margin")),n&&this.show();const o=ht("100vh","height"),r=et(window),a=document.scrollingElement.scrollHeight-o;let l=this.position;this.overflowFlip&&t>o&&(l=l==="top"?"bottom":"top");const c=this.isFixed?this.placeholder:this.$el;let u=ht(this.offset,"height",s?this.$el:c);l==="bottom"&&(t<r||this.overflowFlip)&&(u+=r-t);const f=this.overflowFlip?0:Math.max(0,t+u-o),d=O(c).top,g=O(this.$el).height,C=(this.start===!1?d:ws(this.start,this.$el,d))-u,F=this.end===!1?a:Math.min(a,ws(this.end,this.$el,d+t,!0)-g-u+f);return s=a&&!this.showOnUp&&C+u===d&&F===Math.min(a,ws("!*",this.$el,0,!0)-g-u+f)&&h(D(this.$el),"overflowY")==="visible",{start:C,end:F,offset:u,overflow:f,topOffset:d,height:t,elHeight:g,width:e,margin:i,top:Ft(c)[0],sticky:s}},write({height:t,width:e,margin:i,offset:s,sticky:n}){if((this.inactive||n||!this.isFixed)&&Vn(this.$el),this.inactive)return;n&&(t=e=i=0,h(this.$el,{position:"sticky",top:s}));const{placeholder:o}=this;h(o,{height:t,width:e,margin:i}),M(o,document)||(o.hidden=!0),(n?ti:ei)(this.$el,o)},events:["resize"]},{read({scroll:t=0,dir:e="down",overflow:i,overflowScroll:s=0,start:n,end:o}){const r=document.scrollingElement.scrollTop;return{dir:t<=r?"down":"up",prevDir:e,scroll:r,prevScroll:t,offsetParentTop:O((this.isFixed?this.placeholder:this.$el).offsetParent).top,overflowScroll:Z(s+Z(r,n,o)-Z(t,n,o),0,i)}},write(t,e){const i=e.has("scroll"),{initTimestamp:s=0,dir:n,prevDir:o,scroll:r,prevScroll:a=0,top:l,start:c,topOffset:u,height:f}=t;if(r<0||r===a&&i||this.showOnUp&&!i&&!this.isFixed)return;const d=Date.now();if((d-s>300||n!==o)&&(t.initScroll=r,t.initTimestamp=d),!(this.showOnUp&&!this.isFixed&&Math.abs(t.initScroll-r)<=30&&Math.abs(a-r)<=10))if(this.inactive||r<c||this.showOnUp&&(r<=c||n==="down"&&i||n==="up"&&!this.isFixed&&r<=u+f)){if(!this.isFixed){gt.inProgress(this.$el)&&l>r&&(gt.cancel(this.$el),this.hide());return}this.animation&&r>u?(gt.cancel(this.$el),gt.out(this.$el,this.animation).then(()=>this.hide(),S)):this.hide()}else this.isFixed?this.update():this.animation&&r>u?(gt.cancel(this.$el),this.show(),gt.in(this.$el,this.animation).catch(S)):(Yn(this.selTarget),this.show())},events:["resize","resizeViewport","scroll"]}],methods:{show(){this.isFixed=!0,this.update(),this.placeholder.hidden=!1},hide(){const{offset:t,sticky:e}=this._data;this.setActive(!1),N(this.$el,this.clsFixed,this.clsBelow),e?h(this.$el,"top",t):h(this.$el,{position:"",top:"",width:"",marginTop:""}),this.placeholder.hidden=!0,this.isFixed=!1},update(){let{width:t,scroll:e=0,overflow:i,overflowScroll:s=0,start:n,end:o,offset:r,topOffset:a,height:l,elHeight:c,offsetParentTop:u,sticky:f}=this._data;const d=n!==0||e>n;if(!f){let g="fixed";e>o&&(r+=o-u,g="absolute"),h(this.$el,{position:g,width:t,marginTop:0},"important")}i&&(r-=s),h(this.$el,"top",r),this.setActive(d),q(this.$el,this.clsBelow,e>a+(f?Math.min(l,c):l)),y(this.$el,this.clsFixed)},setActive(t){const e=this.active;this.active=t,t?(Xi(this.selTarget,this.clsInactive,this.clsActive),e!==t&&v(this.$el,"active")):(Xi(this.selTarget,this.clsActive,this.clsInactive),e!==t&&v(this.$el,"inactive"))}}};function ws(t,e,i,s){if(!t)return 0;if(bt(t)||B(t)&&t.match(/^-?\d/))return i+ht(t,"height",e,!0);{const n=t===!0?D(e):at(t,e);return O(n).bottom-(s&&n&&M(e,n)?$(h(n,"paddingBottom")):0)}}function Un(t){return t==="true"?!0:t==="false"?!1:t}function Vn(t){h(t,{position:"",top:"",marginTop:"",width:""})}function Yn(t){h(t,"transition","0s"),requestAnimationFrame(()=>h(t,"transition",""))}function Xn(t){return Math.ceil(Math.max(0,..._("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}var zl={mixins:[Fn],args:"src",props:{src:String,icon:String,attributes:"list",strokeAnimation:Boolean},data:{strokeAnimation:!1},observe:[Sn({async handler(){const t=await this.svg;t&&Gn.call(this,t)},options:{attributes:!0,attributeFilter:["id","class","style"]}})],async connected(){m(this.src,"#")&&([this.src,this.icon]=this.src.split("#"));const t=await this.svg;t&&(Gn.call(this,t),this.strokeAnimation&&Wl(t))},methods:{async getSvg(){return G(this.$el,"img")&&!this.$el.complete&&this.$el.loading==="lazy"?new Promise(t=>R(this.$el,"load",()=>t(this.getSvg()))):Hl(await Fl(this.src),this.icon)||Promise.reject("SVG not found.")}}};function Gn(t){const{$el:e}=this;y(t,p(e,"class"),"qx-svg");for(let i=0;i<e.style.length;i++){const s=e.style[i];h(t,s,h(e,s))}for(const i in this.attributes){const[s,n]=this.attributes[i].split(":",2);p(t,s,n)}this.$el.id||xe(t,"id")}const Fl=dt(async t=>t?ot(t,"data:")?decodeURIComponent(t.split(",")[1]):(await fetch(t)).text():Promise.reject());function Hl(t,e){return e&&m(t,"<symbol")&&(t=Ll(t)[e]||t),t=w(t.substr(t.indexOf("<svg"))),(t==null?void 0:t.hasChildNodes())&&t}const Jn=/<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g,Ll=dt(function(t){const e={};Jn.lastIndex=0;let i;for(;i=Jn.exec(t);)e[i[3]]=`<svg ${i[1]}svg>`;return e});function Wl(t){const e=Xn(t);e&&h(t,"--qx-animation-stroke",e)}const bs=".qx-disabled *, .qx-disabled, [disabled]";var Kn={mixins:[Ut],args:"connect",props:{connect:String,toggle:String,itemNav:String,active:Number,followFocus:Boolean,swiping:Boolean},data:{connect:"~.qx-switcher",toggle:"> * > :first-child",itemNav:!1,active:0,cls:"qx-active",attrItem:"qx-switcher-item",selVertical:".qx-nav",followFocus:!1,swiping:!0},computed:{connects({connect:t},e){return Ie(t,e)},connectChildren(){return this.connects.map(t=>E(t)).flat()},toggles({toggle:t},e){return _(t,e)},children(){return E(this.$el).filter(t=>this.toggles.some(e=>M(e,t)))}},watch:{connects(t){this.swiping&&h(t,"touchAction","pan-y pinch-zoom"),this.$emit()},connectChildren(){let t=Math.max(0,this.index());for(const e of this.connects)E(e).forEach((i,s)=>q(i,this.cls,s===t));this.$emit()},toggles(t){this.$emit();const e=this.index();this.show(~e?e:t[this.active]||t[0])}},connected(){p(this.$el,"role","tablist")},observe:[Ne({targets:({connectChildren:t})=>t}),Cn({target:({connects:t})=>t,filter:({swiping:t})=>t})],events:[{name:"click keydown",delegate(){return this.toggle},handler(t){!T(t.current,bs)&&(t.type==="click"||t.keyCode===I.SPACE)&&(t.preventDefault(),this.show(t.current))}},{name:"keydown",delegate(){return this.toggle},handler(t){const{current:e,keyCode:i}=t,s=T(this.$el,this.selVertical);let n=i===I.HOME?0:i===I.END?"last":i===I.LEFT&&!s||i===I.UP&&s?"previous":i===I.RIGHT&&!s||i===I.DOWN&&s?"next":-1;if(~n){t.preventDefault();const o=this.toggles.filter(a=>!T(a,bs)),r=o[rt(n,o,o.indexOf(e))];r.focus(),this.followFocus&&this.show(r)}}},{name:"click",el(){return this.connects.concat(this.itemNav?Ie(this.itemNav,this.$el):[])},delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){U(t.target,"a,button")&&(t.preventDefault(),this.show(tt(t.current,this.attrItem)))}},{name:"swipeRight swipeLeft",filter(){return this.swiping},el(){return this.connects},handler({type:t}){this.show(Kt(t,"Left")?"next":"previous")}}],update(){var t;p(this.connects,"role","presentation"),p(E(this.$el),"role","presentation");for(const e in this.toggles){const i=this.toggles[e],s=(t=this.connects[0])==null?void 0:t.children[e];p(i,"role","tab"),s&&(i.id=Ot(this,i,`-tab-${e}`),s.id=Ot(this,s,`-tabpanel-${e}`),p(i,"aria-controls",s.id),p(s,{role:"tabpanel","aria-labelledby":i.id}))}p(this.$el,"aria-orientation",T(this.$el,this.selVertical)?"vertical":null)},methods:{index(){return xt(this.children,t=>A(t,this.cls))},show(t){const e=this.toggles.filter(r=>!T(r,bs)),i=this.index(),s=rt(!Ve(t)||m(e,t)?t:0,e,rt(this.toggles[i],e)),n=rt(e[s],this.toggles);this.children.forEach((r,a)=>{q(r,this.cls,n===a),p(this.toggles[a],{"aria-selected":n===a,tabindex:n===a?null:-1})});const o=i>=0&&i!==s;this.connects.forEach(async({children:r})=>{const a=Zt(r).filter((l,c)=>c!==n&&A(l,this.cls));await this.toggleElement(a,!1,o),await this.toggleElement(r[n],!0,o)})}}},Rl={mixins:[st],extends:Kn,props:{media:Boolean},data:{media:960,attrItem:"qx-tab-item",selVertical:".qx-tab-left,.qx-tab-right"},connected(){const t=A(this.$el,"qx-tab-left")?"qx-tab-left":A(this.$el,"qx-tab-right")?"qx-tab-right":!1;t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}};const jl=32;var ql={mixins:[xi,Ut],args:"target",props:{href:String,target:null,mode:"list",queued:Boolean},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target({target:t},e){return t=Ie(t||e.hash,e),t.length&&t||[e]}},connected(){m(this.mode,"media")||(Ze(this.$el)||p(this.$el,"tabindex","0"),!this.cls&&G(this.$el,"a")&&p(this.$el,"role","button"))},observe:Ne({target:({target:t})=>t}),events:[{name:mt,filter(){return m(this.mode,"hover")},handler(t){this._preventClick=null,!(!It(t)||this._showState||this.$el.disabled)&&(v(this.$el,"focus"),R(document,mt,()=>v(this.$el,"blur"),!0,e=>!M(e.target,this.$el)),m(this.mode,"click")&&(this._preventClick=!0))}},{name:`${Wt} ${ce} focus blur`,filter(){return m(this.mode,"hover")},handler(t){if(It(t)||this.$el.disabled)return;const e=m([Wt,"focus"],t.type),i=this.isToggled(this.target);if(!(!e&&(t.type===ce&&T(this.$el,":focus")||t.type==="blur"&&T(this.$el,":hover")))){if(this._showState&&e&&i!==this._showState){e||(this._showState=null);return}this._showState=e?i:null,this.toggle(`toggle${e?"show":"hide"}`)}}},{name:"keydown",filter(){return m(this.mode,"click")&&!G(this.$el,"input")},handler(t){t.keyCode===jl&&(t.preventDefault(),this.$el.click())}},{name:"click",filter(){return["click","hover"].some(t=>m(this.mode,t))},handler(t){let e;(this._preventClick||U(t.target,'a[href="#"], a[href=""]')||(e=U(t.target,"a[href]"))&&(!this.isToggled(this.target)||e.hash&&T(this.target,e.hash)))&&t.preventDefault(),!this._preventClick&&m(this.mode,"click")&&this.toggle()}},{name:"mediachange",filter(){return m(this.mode,"media")},el(){return this.target},handler(t,e){e.matches^this.isToggled(this.target)&&this.toggle()}}],methods:{async toggle(t){if(!v(this.target,t||"toggle",[this]))return;if($t(this.$el,"aria-expanded")&&p(this.$el,"aria-expanded",!this.isToggled(this.target)),!this.queued)return this.toggleElement(this.target);const e=this.target.filter(s=>A(s,this.clsLeave));if(e.length){for(const s of this.target){const n=m(e,s);this.toggleElement(s,n,n)}return}const i=this.target.filter(this.isToggled);await this.toggleElement(i,!1)&&await this.toggleElement(this.target.filter(s=>!m(i,s)),!0)}}},Ul=Object.freeze({__proto__:null,Accordion:Tn,Alert:ha,Close:el,Cover:ua,Drop:Dn,DropParentIcon:Vt,Dropdown:Dn,Dropnav:Bn,FormCustom:$a,Grid:ya,HeightMatch:Ia,HeightViewport:Ea,Icon:gs,Img:cl,Leader:vl,Margin:Nn,Marker:il,Modal:yl,Nav:Sl,NavParentIcon:Ka,Navbar:Il,NavbarParentIcon:Vt,NavbarToggleIcon:tl,Offcanvas:Cl,OverflowAuto:Pl,OverlayIcon:Vt,PaginationNext:nl,PaginationPrevious:ol,Responsive:Al,Scroll:Ol,Scrollspy:Ml,ScrollspyNav:Nl,SearchIcon:Za,SlidenavNext:Ln,SlidenavPrevious:Ln,Spinner:Qa,Sticky:_l,Svg:zl,Switcher:Kn,Tab:Rl,Toggle:ql,Totop:sl,Video:En});St(Ul,(t,e)=>ft.component(e,t)),Qr(ft);const Vl=["days","hours","minutes","seconds"];var Yl={mixins:[st],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".qx-countdown-%unit%",role:"timer"},connected(){p(this.$el,"role",this.role),this.date=$(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el(){return document},handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(v(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),v(this.$el,"countdownstop"),this.timer=null)},update(){const t=Xl(this.date);t.total||(this.stop(),this.end||(v(this.$el,"countdownend"),this.end=!0));for(const e of Vl){const i=w(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let s=String(Math.trunc(t[e]));s=s.length<2?`0${s}`:s,i.textContent!==s&&(s=s.split(""),s.length!==i.children.length&&Nt(i,s.map(()=>"<span></span>").join("")),s.forEach((n,o)=>i.children[o].textContent=n))}}}};function Xl(t){const e=Math.max(0,t-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}const $s="qx-transition-leave",xs="qx-transition-enter";function Zn(t,e,i,s=0){const n=yi(e,!0),o={opacity:1},r={opacity:0},a=u=>()=>n===yi(e)?u():Promise.reject(),l=a(async()=>{y(e,$s),await Promise.all(to(e).map((u,f)=>new Promise(d=>setTimeout(()=>P.start(u,r,i/2,"ease").then(d),f*s)))),N(e,$s)}),c=a(async()=>{const u=et(e);y(e,xs),t(),h(E(e),{opacity:0}),await Gl();const f=E(e),d=et(e);h(e,"alignContent","flex-start"),et(e,u);const g=to(e);h(f,r);const C=g.map(async(F,z)=>{await Jl(z*s),await P.start(F,o,i/2,"ease")});u!==d&&C.push(P.start(e,{height:d},i/2+g.length*s,"ease")),await Promise.all(C).then(()=>{N(e,xs),n===yi(e)&&(h(e,{height:"",alignContent:""}),h(f,{opacity:""}),delete e.dataset.transition)})});return A(e,$s)?Qn(e).then(c):A(e,xs)?Qn(e).then(l).then(c):l().then(c)}function yi(t,e){return e&&(t.dataset.transition=1+yi(t)),kt(t.dataset.transition)||0}function Qn(t){return Promise.all(E(t).filter(P.inProgress).map(e=>new Promise(i=>R(e,"transitionend transitioncanceled",i))))}function to(t){return ps(E(t)).reduce((e,i)=>e.concat(Ge(i.filter(s=>ns(s)),"offsetLeft")),[])}function Gl(){return new Promise(t=>requestAnimationFrame(t))}function Jl(t){return new Promise(e=>setTimeout(e,t))}async function Kl(t,e,i){await so();let s=E(e);const n=s.map(d=>eo(d,!0)),o={...h(e,["height","padding"]),display:"block"};await Promise.all(s.concat(e).map(P.cancel)),t(),s=s.concat(E(e).filter(d=>!m(s,d))),await Promise.resolve(),K.flush();const r=p(e,"style"),a=h(e,["height","padding"]),[l,c]=Zl(e,s,n),u=s.map(d=>({style:p(d,"style")}));s.forEach((d,g)=>c[g]&&h(d,c[g])),h(e,o),v(e,"scroll"),K.flush(),await so();const f=s.map((d,g)=>D(d)===e&&P.start(d,l[g],i,"ease")).concat(P.start(e,a,i,"ease"));try{await Promise.all(f),s.forEach((d,g)=>{p(d,u[g]),D(d)===e&&h(d,"display",l[g].opacity===0?"none":"")}),p(e,"style",r)}catch{p(s,"style",""),Ql(e,o)}}function eo(t,e){const i=h(t,"zIndex");return j(t)?{display:"",opacity:e?h(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?ne(t):i,...io(t)}:!1}function Zl(t,e,i){const s=e.map((o,r)=>D(o)&&r in i?i[r]?j(o)?io(o):{opacity:0}:{opacity:j(o)?1:0}:!1),n=s.map((o,r)=>{const a=D(e[r])===t&&(i[r]||eo(e[r]));if(!a)return!1;if(!o)delete a.opacity;else if(!("opacity"in o)){const{opacity:l}=a;l%1?o.opacity=1:delete a.opacity}return a});return[s,n]}function Ql(t,e){for(const i in e)h(t,i,"")}function io(t){const{height:e,width:i}=O(t);return{height:e,width:i,transform:"",...ni(t),...h(t,["marginTop","marginLeft"])}}function so(){return new Promise(t=>requestAnimationFrame(t))}var no={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return(i==="fade"?Zn:i==="delayed-fade"?(...n)=>Zn(...n,40):i?Kl:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(S)}}},th={mixins:[no],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"qx-filter-control",cls:"qx-active",duration:250},computed:{toggles({attrItem:t},e){return _(`[${t}],[data-${t}]`,e)},children({target:t},e){return _(`${t} > *`,e)}},watch:{toggles(t){this.updateState();const e=_(this.selActive,this.$el);for(const i of t){this.selActive!==!1&&q(i,this.cls,m(e,i));const s=rh(i);G(s,"a")&&p(s,"role","button")}},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){t.type==="keydown"&&t.keyCode!==I.SPACE||U(t.target,"a,button")&&(t.preventDefault(),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=ro(t,this.attrItem,this.getState());eh(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>A(t,this.cls)).reduce((t,e)=>ro(e,this.attrItem,t),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},v(this.$el,"beforeFilter",[this,t]);for(const i of this.toggles)q(i,this.cls,sh(i,this.attrItem,t));await Promise.all(_(this.target,this.$el).map(i=>{const s=()=>{ih(t,i,E(i)),this.$update(this.$el)};return e?this.animate(s,i):s()})),v(this.$el,"afterFilter",[this])},updateState(){K.write(()=>this.setState(this.getState(),!1))}}};function oo(t,e){return De(tt(t,e),["filter"])}function eh(t,e){return["filter","sort"].every(i=>Xe(t[i],e[i]))}function ih(t,e,i){const s=nh(t);i.forEach(r=>h(r,"display",s&&!T(r,s)?"none":""));const[n,o]=t.sort;if(n){const r=oh(i,n,o);Xe(r,i)||L(e,r)}}function ro(t,e,i){const{filter:s,group:n,sort:o,order:r="asc"}=oo(t,e);return(s||X(o))&&(n?s?(delete i.filter[""],i.filter[n]=s):(delete i.filter[n],($e(i.filter)||""in i.filter)&&(i.filter={"":s||""})):i.filter={"":s||""}),X(o)||(i.sort=[o,r]),i}function sh(t,e,{filter:i={"":""},sort:[s,n]}){const{filter:o="",group:r="",sort:a,order:l="asc"}=oo(t,e);return X(a)?r in i&&o===i[r]||!o&&r&&!(r in i)&&!i[""]:s===a&&n===l}function nh({filter:t}){let e="";return St(t,i=>e+=i||""),e}function oh(t,e,i){return[...t].sort((s,n)=>tt(s,e).localeCompare(tt(n,e),void 0,{numeric:!0})*(i==="asc"||-1))}function rh(t){return w("a,button",t)||t}var ys={slide:{show(t){return[{transform:W(t*-100)},{transform:W()}]},percent(t){return He(t)},translate(t,e){return[{transform:W(e*-100*t)},{transform:W(e*100*(1-t))}]}}};function He(t){return Math.abs(h(t,"transform").split(",")[4]/t.offsetWidth)||0}function W(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function ge(t){return`scale3d(${t}, ${t}, 1)`}var ao={...ys,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:ge(1-.2)},{opacity:1,transform:ge(1)}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:ge(1-.2*t)},{opacity:t,transform:ge(1-.2+.2*t)}]}}};function ah(t,e,i,{animation:s,easing:n}){const{percent:o,translate:r,show:a=S}=s,l=a(i);let c;return{dir:i,show(u,f=0,d){const g=d?"linear":n;return u-=Math.round(u*Z(f,-1,1)),this.translate(f),ki(e,"itemin",{percent:f,duration:u,timing:g,dir:i}),ki(t,"itemout",{percent:1-f,duration:u,timing:g,dir:i}),new Promise(C=>{c||(c=C),Promise.all([P.start(e,l[1],u,g),P.start(t,l[0],u,g)]).then(()=>{this.reset(),c()},S)})},cancel(){return P.cancel([e,t])},reset(){for(const u in l[0])h([e,t],u,"")},async forward(u,f=this.percent()){return await this.cancel(),this.show(u,f,!0)},translate(u){this.reset();const f=r(u,i);h(e,f[1]),h(t,f[0]),ki(e,"itemtranslatein",{percent:u,dir:i}),ki(t,"itemtranslateout",{percent:1-u,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function ki(t,e,i){v(t,Mt(e,!1,!1,i))}var lh={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav({selNav:t},e){return w(t,e)},navChildren(){return E(this.nav)},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems(t,e){return _(this.selNavItem,e)}},watch:{nav(t,e){p(t,"role","tablist"),e&&this.$emit()},list(t){p(t,"role","presentation")},navChildren(t){p(t,"role","presentation")},navItems(t){for(const e of t){const i=tt(e,this.attrItem),s=w("a,button",e)||e;let n,o=null;if(bt(i)){const r=kt(i),a=this.slides[r];a&&(a.id||(a.id=Ot(this,a,`-item-${i}`)),o=a.id),n=this.t("slideX",$(i)+1),p(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=Ot(this,this.list,"-items")),o=this.list.id),n=this.t(i);p(s,{"aria-controls":o,"aria-label":p(s,"aria-label")||n})}},slides(t){t.forEach((e,i)=>p(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){Ji(this.nav);for(let i=0;i<t;i++)L(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){p(this.$el,{role:this.role,ariaRoleDescription:"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){U(t.target,"a,button")&&(t.type==="click"||t.keyCode===I.SPACE)&&(t.preventDefault(),this.show(tt(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:i}=t,s=tt(e,this.attrItem);if(!bt(s))return;let n=i===I.HOME?0:i===I.END?"last":i===I.LEFT?"previous":i===I.RIGHT?"next":-1;~n&&(t.preventDefault(),this.show(n))}}],methods:{updateNav(){const t=this.getValidIndex();let e,i;for(const s of this.navItems){const n=tt(s,this.attrItem),o=w("a,button",s)||s;if(bt(n)){const a=kt(n)===t;q(s,this.clsActive,a),p(o,{"aria-selected":a,tabindex:a?null:-1}),a&&(i=o),e||(e=T(o,":focus"))}else q(s,"qx-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex));e&&i&&i.focus()}}}};const ks={passive:!1,capture:!0},lo={passive:!0,capture:!0},hh="touchstart mousedown",Ss="touchmove mousemove",ho="touchend touchcancel mouseup click input scroll";var ch={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=re(i).x*(J?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:hh,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!It(t)&&uh(t.target)||U(t.target,ye)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:Ss,el(){return this.list},handler:S,...ks}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,x(document,Ss,this.move,ks),x(document,ho,this.end,lo),h(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;h(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,n=Math.abs(e),o=this.getIndex(s+this.dir),r=this._getDistance(s,o);for(;o!==s&&n>r;)this.drag-=r*this.dir,s=o,n-=r,o=this.getIndex(s+this.dir),r=this._getDistance(s,o);this.percent=n/r;const a=i[s],l=i[o],c=this.index!==o,u=s===o;let f;for(const d of[this.index,this.prevIndex])m([o,s],d)||(v(i[d],"itemhidden",[this]),u&&(f=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||f)&&v(i[this.index],"itemshown",[this]),c&&(this.prevIndex=s,this.index=o,!u&&v(a,"beforeitemhide",[this]),v(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!u&&l),c&&(!u&&v(a,"itemhide",[this]),v(l,"itemshow",[this]))},end(){if(Bt(document,Ss,this.move,ks),Bt(document,ho,this.end,lo),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(J?this.dir*(J?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}h(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}}};function uh(t){return h(t,"userSelect")!=="none"&&Zt(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var fh={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){p(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){p(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&T(this.$el,":focus-within")||this.pauseOnHover&&T(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}},co={mixins:[fh,ch,lh,vi],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"qx-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){N(this.slides,this.clsActive)},computed:{duration({velocity:t},e){return uo(e.offsetWidth/t)},list({selList:t},e){return w(t,e)},maxIndex(){return this.length-1},slides(){return E(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:pt(),methods:{show(t,e=!1){var u;if(this.dragging||!this.length)return;const{stack:i}=this,s=e?0:i.length,n=()=>{i.splice(s,1),i.length&&this.show(i.shift(),!0)};if(i[e?"unshift":"push"](t),!e&&i.length>1){i.length===2&&((u=this._transitioner)==null||u.forward(Math.min(this.duration,200)));return}const o=this.getIndex(this.index),r=A(this.slides,this.clsActive)&&this.slides[o],a=this.getIndex(t,this.index),l=this.slides[a];if(r===l){n();return}if(this.dir=dh(t,o),this.prevIndex=o,this.index=a,r&&!v(r,"beforeitemhide",[this])||!v(l,"beforeitemshow",[this,r])){this.index=this.prevIndex,n();return}const c=this._show(r,l,e).then(()=>{r&&v(r,"itemhidden",[this]),v(l,"itemshown",[this]),i.shift(),this._transitioner=null,requestAnimationFrame(()=>i.length&&this.show(i.shift(),!0))});return r&&v(r,"itemhide",[this]),v(l,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return Z(rt(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(this.slides[t]||t,this.slides[e]||e,i*(J?-1:1),s)}}};function dh(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function uo(t){return .5*t+300}var fo={mixins:[co],props:{animation:String},data:{animation:"slide",clsActivated:"qx-transition-active",Animations:ys,Transitioner:ah},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){y(t,this.clsActive)},itemshown({target:t}){y(t,this.clsActivated)},itemhidden({target:t}){N(t,this.clsActive,this.clsActivated)}}},po={mixins:[vs,fo],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"qx-open",clsPage:"qx-lightbox-page",selList:".qx-lightbox-items",attrItem:"qx-lightbox-item",selClose:".qx-close-large",selCaption:".qx-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:ao,template:'<div class="qx-lightbox qx-overflow-hidden"> <ul class="qx-lightbox-items"></ul> <div class="qx-lightbox-toolbar qx-position-top qx-text-right qx-transition-slide-top qx-transition-opaque"> <button class="qx-lightbox-toolbar-icon qx-close-large" type="button" qx-close></button> </div> <a class="qx-lightbox-button qx-position-center-left qx-position-medium qx-transition-fade" href qx-slidenav-previous qx-lightbox-item="previous"></a> <a class="qx-lightbox-button qx-position-center-right qx-position-medium qx-transition-fade" href qx-slidenav-next qx-lightbox-item="next"></a> <div class="qx-lightbox-toolbar qx-lightbox-caption qx-position-bottom qx-text-center qx-transition-slide-bottom qx-transition-opaque"></div> </div>'}),created(){const t=w(this.template),e=w(this.selList,t);this.items.forEach(()=>L(e,"<li>"));const i=w("[qx-close]",t),s=this.t("close");i&&s&&(i.dataset.i18n=JSON.stringify({label:s})),this.$mount(L(this.container,t))},computed:{caption({selCaption:t},e){return w(t,e)}},events:[{name:`${ri} ${mt} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),N(this.slides,this.clsActive),P.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===I.LEFT?e="previous":t===I.RIGHT?e="next":t===I.HOME?e=0:t===I.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=ao.scale,N(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){Nt(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:s,alt:n="",poster:o,attrs:r={}}=e;if(this.setItem(e,"<span qx-spinner></span>"),!i)return;let a;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","qx-responsive":"","qx-video":`${this.videoAutoplay}`};if(s==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const c=Le("img",{src:i,alt:n,...r});x(c,"load",()=>this.setItem(e,c)),x(c,"error",()=>this.setError(e))}else if(s==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=Le("video",{src:i,poster:o,controls:"",playsinline:"","qx-video":`${this.videoAutoplay}`,...r});x(c,"loadedmetadata",()=>this.setItem(e,c)),x(c,"error",()=>this.setError(e))}else if(s==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,Le("iframe",{src:i,allowfullscreen:"",class:"qx-lightbox-iframe",...r}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,Le("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...l,...r}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:u}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,Le("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:u,height:c,...l,...r}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||v(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[rt(t,this.slides)]},setItem(t,e){v(this.$el,"itemloaded",[this,Nt(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span qx-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),y(this.$el,"qx-active","qx-transition-active")},hideControls(){N(this.$el,"qx-active","qx-transition-active")}}};function Le(t,e){const i=_t(`<${t}>`);return p(i,e),i}var ph={install:gh,props:{toggle:String},data:{toggle:"a"},computed:{toggles({toggle:t},e){return _(t,e)}},watch:{toggles(t){this.hide();for(const e of t)G(e,"a")&&p(e,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate(){return`${this.toggle}:not(.qx-disabled)`},handler(t){t.preventDefault(),this.show(t.current)}},methods:{show(t){const e=As(this.toggles.map(go),"source");if(te(t)){const{source:i}=go(t);t=xt(e,({source:s})=>i===s)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:e}),x(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(t)},hide(){var t;return(t=this.panel)==null?void 0:t.hide()}}};function gh(t,e){t.lightboxPanel||t.component("lightboxPanel",po),wt(e.props,t.component("lightboxPanel").options.props)}function go(t){const e={};for(const i of["href","caption","type","poster","alt","attrs"])e[i==="href"?"source":i]=tt(t,i);return e.attrs=De(e.attrs),e}var mh={mixins:[ze],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsContainer:"qx-notification",clsClose:"qx-notification-close",clsMsg:"qx-notification-message"},install:vh,computed:{marginProp({pos:t}){return`margin${ot(t,"top")?"Top":"Bottom"}`},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const t=w(`.${this.clsContainer}-${this.pos}`,this.container)||L(this.container,`<div class="${this.clsContainer} ${this.clsContainer}-${this.pos}" style="display: block"></div>`);this.$mount(L(t,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-qx-close></a> <div>${this.message}</div> </div>`))},async connected(){const t=$(h(this.$el,this.marginProp));await P.start(h(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){U(t.target,'a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[Wt](){this.timer&&clearTimeout(this.timer)},[ce](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){const e=i=>{const s=D(i);v(i,"close",[this]),lt(i),s!=null&&s.hasChildNodes()||lt(s)};this.timer&&clearTimeout(this.timer),t||await P.start(this.$el,this.startProps),e(this.$el)}}};function vh(t){t.notification.closeAll=function(e,i){Ct(document.body,s=>{const n=t.getComponent(s,"notification");n&&(!e||e===n.group)&&n.close(i)})}}const Si={x:Ii,y:Ii,rotate:Ii,scale:Ii,color:Is,backgroundColor:Is,borderColor:Is,blur:Xt,hue:Xt,fopacity:Xt,grayscale:Xt,invert:Xt,saturate:Xt,sepia:Xt,opacity:bh,stroke:$h,bgx:wo,bgy:wo},{keys:mo}=Object;var vo={mixins:[xi],props:yo(mo(Si),"list"),data:yo(mo(Si),void 0),computed:{props(t,e){const i={};for(const n in t)n in Si&&!X(t[n])&&(i[n]=t[n].slice());const s={};for(const n in i)s[n]=Si[n](n,e,i[n],i);return s}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))h(this.$el,t,"")},getCss(t){const e={transform:"",filter:""};for(const i in this.props)this.props[i](e,Z(t));return e.willChange=Object.keys(e).filter(i=>e[i]!=="").map(Qe).join(","),e}}};function Ii(t,e,i){let s=Ti(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",n;return t==="x"||t==="y"?(t=`translate${Tt(t)}`,n=o=>$($(o).toFixed(s==="px"?0:6))):t==="scale"&&(s="",n=o=>Ti([o])?ht(o,"width",e,!0)/e.offsetWidth:o),i.length===1&&i.unshift(t==="scale"?1:0),i=me(i,n),(o,r)=>{o.transform+=` ${t}(${We(i,r)}${s})`}}function Is(t,e,i){return i.length===1&&i.unshift(Re(e,t,"")),i=me(i,s=>wh(e,s)),(s,n)=>{const[o,r,a]=xo(i,n),l=o.map((c,u)=>(c+=a*(r[u]-c),u===3?$(c):parseInt(c,10))).join(",");s[t]=`rgba(${l})`}}function wh(t,e){return Re(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map($)}function Xt(t,e,i){i.length===1&&i.unshift(0);const s=Ti(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=me(i),(n,o)=>{const r=We(i,o);n.filter+=` ${t}(${r+s})`}}function bh(t,e,i){return i.length===1&&i.unshift(Re(e,t,"")),i=me(i),(s,n)=>{s[t]=We(i,n)}}function $h(t,e,i){i.length===1&&i.unshift(0);const s=Ti(i),n=Xn(e);return i=me(i.reverse(),o=>(o=$(o),s==="%"?o*n/100:o)),i.some(([o])=>o)?(h(e,"strokeDasharray",n),(o,r)=>{o.strokeDashoffset=We(i,r)}):S}function wo(t,e,i,s){i.length===1&&i.unshift(0);const n=t==="bgy"?"height":"width";s[t]=me(i,a=>ht(a,n,e));const o=["bgx","bgy"].filter(a=>a in s);if(o.length===2&&t==="bgx")return S;if(Re(e,"backgroundSize","")==="cover")return xh(t,e,i,s);const r={};for(const a of o)r[a]=bo(e,a);return $o(o,r,s)}function xh(t,e,i,s){const n=yh(e);if(!n.width)return S;const o={width:e.offsetWidth,height:e.offsetHeight},r=["bgx","bgy"].filter(u=>u in s),a={};for(const u of r){const f=s[u].map(([z])=>z),d=Math.min(...f),g=Math.max(...f),C=f.indexOf(d)<f.indexOf(g),F=g-d;a[u]=`${(C?-F:0)-(C?d:g)}px`,o[u==="bgy"?"height":"width"]+=F}const l=Ke.cover(n,o);for(const u of r){const f=u==="bgy"?"height":"width",d=l[f]-o[f];a[u]=`max(${bo(e,u)},-${d}px) + ${a[u]}`}const c=$o(r,a,s);return(u,f)=>{c(u,f),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function bo(t,e){return Re(t,`background-position-${e.substr(-1)}`,"")}function $o(t,e,i){return function(s,n){for(const o of t){const r=We(i[o],n);s[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${r}px)`}}}const Ci={};function yh(t){const e=h(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(Ci[e])return Ci[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{Ci[e]=Cs(i),v(t,Mt("load",!1))},Cs(i)):Ci[e]=Cs(i)}function Cs(t){return{width:t.naturalWidth,height:t.naturalHeight}}function me(t,e=$){const i=[],{length:s}=t;let n=0;for(let o=0;o<s;o++){let[r,a]=B(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(r=e(r),a=a?$(a)/100:null,o===0?a===null?a=0:a&&i.push([r,0]):o===s-1&&(a===null?a=1:a!==1&&(i.push([r,a]),a=1)),i.push([r,a]),a===null)n++;else if(n){const l=i[o-n-1][1],c=(a-l)/(n+1);for(let u=n;u>0;u--)i[o-u][1]=l+c*(n-u+1);n=0}}return i}function xo(t,e){const i=xt(t.slice(1),([,s])=>e<=s)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function We(t,e){const[i,s,n]=xo(t,e);return Ye(i)?i+Math.abs(i-s)*n*(i<s?1:-1):+s}const kh=/^-?\d+(\S+)?/;function Ti(t,e){var i;for(const s of t){const n=(i=s.match)==null?void 0:i.call(s,kh);if(n)return n[1]}return e}function Re(t,e,i){const s=t.style[e],n=h(h(t,e,i),e);return t.style[e]=s,n}function yo(t,e){return t.reduce((i,s)=>(i[s]=e,i),{})}var Sh={mixins:[vo],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target({target:t},e){return ko(t&&at(t,e)||e)},start({start:t}){return ht(t,"height",this.target,!0)},end({end:t,viewport:e}){return ht(t||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[pt({target:({$el:t,target:e})=>[t,e,At(e,!0)]}),pi(),In()],update:{read({percent:t},e){if(e.has("scroll")||(t=!1),!j(this.$el))return!1;if(!this.matchMedia)return;const i=t;return t=Ih(os(this.target,this.start,this.end),this.easing),{percent:t,style:i===t?!1:this.getCss(t)}},write({style:t}){if(!this.matchMedia){this.reset();return}t&&h(this.$el,t)},events:["scroll","resize"]}};function Ih(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}function ko(t){return t?"offsetTop"in t?t:ko(D(t)):document.documentElement}var So={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},Io={observe:Ne({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})};function Ch(t,e,i,{center:s,easing:n,list:o}){const r=t?je(t,o,s):je(e,o,s)+b(e).width*i,a=e?je(e,o,s):r+b(t).width*i*(J?-1:1);let l;return{dir:i,show(c,u=0,f){const d=f?"linear":n;return c-=Math.round(c*Z(u,-1,1)),this.translate(u),u=t?u:Z(u,0,1),Ts(this.getItemIn(),"itemin",{percent:u,duration:c,timing:d,dir:i}),t&&Ts(this.getItemIn(!0),"itemout",{percent:1-u,duration:c,timing:d,dir:i}),new Promise(g=>{l||(l=g),P.start(o,{transform:W(-a*(J?-1:1),"px")},c,d).then(l,S)})},cancel(){return P.cancel(o)},reset(){h(o,"transform","")},async forward(c,u=this.percent()){return await this.cancel(),this.show(c,u,!0)},translate(c){const u=this.getDistance()*i*(J?-1:1);h(o,"transform",W(Z(-a+(u-u*c),-Ei(o),b(o).width)*(J?-1:1),"px"));const f=this.getActives(),d=this.getItemIn(),g=this.getItemIn(!0);c=t?Z(c,-1,1):0;for(const C of E(o)){const F=m(f,C),z=C===d,Oi=C===g,Es=z||!Oi&&(F||i*(J?-1:1)===-1^Pi(C,o)>Pi(t||e));Ts(C,`itemtranslate${Es?"in":"out"}`,{dir:i,percent:Oi?1-c:z?c:F?1:0})}},percent(){return Math.abs((h(o,"transform").split(",")[4]*(J?-1:1)+r)/(a-r))},getDistance(){return Math.abs(a-r)},getItemIn(c=!1){let u=this.getActives(),f=To(o,je(e||t,o,s));if(c){const d=u;u=f,f=d}return f[xt(f,d=>!m(u,d))]},getActives(){return To(o,je(t||e,o,s))}}}function je(t,e,i){const s=Pi(t,e);return i?s-Th(t,e):Math.min(s,Co(e))}function Co(t){return Math.max(0,Ei(t)-b(t).width)}function Ei(t){return Dt(E(t),e=>b(e).width)}function Th(t,e){return b(e).width/2-b(t).width/2}function Pi(t,e){return t&&(ni(t).left+(J?b(t).width-b(e).width:0))*(J?-1:1)||0}function To(t,e){e-=1;const i=b(t).width,s=e+i+2;return E(t).filter(n=>{const o=Pi(n,t),r=o+Math.min(b(n).width,i);return o>=e&&r<=s})}function Ts(t,e,i){v(t,Mt(e,!1,!1,i))}var Eh={mixins:[st,co,So,Io],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"qx-slider-item",selList:".qx-slider-items",selNav:".qx-slider-nav",clsContainer:"qx-slider-container",Transitioner:Ch},computed:{avgWidth(){return Ei(this.list)/this.length},finite({finite:t}){return t||Ph(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return ie(this.sets);let t=0;const e=Co(this.list),i=xt(this.slides,s=>{if(t>=e)return!0;t+=b(s).width});return~i?i:this.length-1},sets({sets:t}){if(!t)return;let e=0;const i=[],s=b(this.list).width;for(let n=0;n<this.length;n++){const o=b(this.slides[n]).width;e+o>s&&(e=0),this.center?e<s/2&&e+o+b(rt(+n+1,this.slides)).width/2>s/2&&(i.push(+n),e=s/2-o/2):e===0&&i.push(Math.min(+n,this.maxIndex)),e+=o}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return E(this.list).filter(j)}},connected(){q(this.$el,this.clsContainer,!w(`.${this.clsContainer}`,this.$el))},observe:pt({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=kt(tt(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!m(this.sets,e))}this.length&&!this.dragging&&!this.stack.length&&(this.reorder(),this._translate(1)),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!m(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let s=0;s<e;s++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=uo(this.avgWidth/this.velocity)*(b(this.slides[i]).width/this.avgWidth),this.reorder()},itemshow(){~this.prevIndex&&y(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){h(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((n,o)=>h(n,"order",this.dir>0&&o<t?1:this.dir<0&&o>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=b(this.list).width/2-b(e).width/2,s=0;for(;i>0;){const n=this.getIndex(--s+t,t),o=this.slides[n];h(o,"order",n>t?-2:-1),i-=b(o).width}},updateActiveClasses(){const t=this._getTransitioner(this.index).getActives(),e=[this.clsActive,(!this.sets||m(this.sets,$(this.index)))&&this.clsActivated||""];for(const i of this.slides){const s=m(t,i);q(i,e,s),p(i,"aria-hidden",!s);for(const n of _(ke,i))vt(n,"_tabindex")||(n._tabindex=p(n,"tabindex")),p(n,"tabindex",s?n._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(m(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=b(this.list),e=-t,i=t*2,s=b(this.slides[this.index]).width,n=this.center?t/2-s/2:0,o=new Set;for(const r of[-1,1]){let a=n+(r>0?s:0),l=0;do{const c=this.slides[this.getIndex(this.index+r+l++*r)];a+=b(c).width*r,o.add(c)}while(this.length>l&&a>e&&a<i)}return Array.from(o)}}};function Ph(t,e){if(!t||t.length<2)return!0;const{width:i}=b(t);if(!e)return Math.ceil(Ei(t))<Math.trunc(i+Ah(t));const s=E(t),n=Math.trunc(i/2);for(const o in s){const r=s[o],a=b(r).width,l=new Set([r]);let c=0;for(const u of[-1,1]){let f=a/2,d=0;for(;f<n;){const g=s[rt(+o+u+d++*u,s)];if(l.has(g))return!0;f+=b(g).width,l.add(g)}c=Math.max(c,a/2+b(s[rt(+o+u,s)]).width/2-(f-n))}if(c>Dt(s.filter(u=>!l.has(u)),u=>b(u).width))return!0}return!1}function Ah(t){return Math.max(0,...E(t).map(e=>b(e).width))}var Eo={mixins:[vo],data:{selItem:"!li"},beforeConnect(){this.item=at(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,duration:i,timing:s,dir:n}}){K.read(()=>{if(!this.matchMedia)return;const o=this.getCss(Ao(t,n,e)),r=this.getCss(Po(t)?.5:n>0?1:0);K.write(()=>{h(this.$el,o),P.start(this.$el,r,i,s).catch(S)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){P.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,dir:i}}){K.read(()=>{if(!this.matchMedia){this.reset();return}const s=this.getCss(Ao(t,i,e));K.write(()=>h(this.$el,s))})}}]};function Po(t){return Kt(t,"in")}function Ao(t,e,i){return i/=2,Po(t)^e<0?i:1-i}var Oh={...ys,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:ge(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:ge(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:W(30),zIndex:-1},{transform:W(),zIndex:0}]:[{transform:W(-100),zIndex:0},{transform:W(),zIndex:-1}]},percent(t,e,i){return i<0?1-He(e):He(t)},translate(t,e){return e<0?[{transform:W(30*t),zIndex:-1},{transform:W(-100*(1-t)),zIndex:0}]:[{transform:W(-t*100),zIndex:0},{transform:W(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:W(100),zIndex:0},{transform:W(),zIndex:-1}]:[{transform:W(-30),zIndex:-1},{transform:W(),zIndex:0}]},percent(t,e,i){return i>0?1-He(e):He(t)},translate(t,e){return e<0?[{transform:W(t*100),zIndex:0},{transform:W(-30*(1-t)),zIndex:-1}]:[{transform:W(-30*t),zIndex:-1},{transform:W(100*(1-t)),zIndex:0}]}}},Dh={mixins:[st,fo,So,Io],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".qx-slideshow-items",attrItem:"qx-slideshow-item",selNav:".qx-slideshow-nav",Animations:Oh},update:{read(){if(!this.list)return!1;let[t,e]=this.ratio.split(":").map(Number);return e=e*this.list.offsetWidth/t||0,this.minHeight&&(e=Math.max(this.minHeight,e)),this.maxHeight&&(e=Math.min(this.maxHeight,e)),{height:e-ae(this.list,"height","content-box")}},write({height:t}){t>0&&h(this.list,"minHeight",t)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},Bh={mixins:[st,no],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"qx-sortable-item",clsPlaceholder:"qx-sortable-placeholder",clsDrag:"qx-sortable-drag",clsDragState:"qx-drag",clsBase:"qx-sortable",clsNoDrag:"qx-sortable-nodrag",clsEmpty:"qx-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const t of["init","start","move","end"]){const e=this[t];this[t]=i=>{wt(this.pos,re(i)),e(i)}}},events:{name:mt,passive:!1,handler:"init"},computed:{target(){return(this.$el.tBodies||[this.$el])[0]},items(){return E(this.target)},isEmpty(){return $e(this.items)},handles({handle:t},e){return t?_(t,e):this.items}},watch:{isEmpty(t){q(this.target,this.clsEmpty,t)},handles(t,e){h(e,{touchAction:"",userSelect:""}),h(t,{touchAction:Lt?"none":"",userSelect:"none"})}},update:{write(t){if(!this.drag||!D(this.placeholder))return;const{pos:{x:e,y:i},origin:{offsetTop:s,offsetLeft:n},placeholder:o}=this;h(this.drag,{top:i-s,left:e-n});const r=this.getSortable(document.elementFromPoint(e,i));if(!r)return;const{items:a}=r;if(a.some(P.inProgress))return;const l=zh(a,{x:e,y:i});if(a.length&&(!l||l===o))return;const c=this.getSortable(o),u=Fh(r.target,l,o,e,i,r===c&&t.moved!==l);u!==!1&&(u&&o===u||(r!==c?(c.remove(o),t.moved=l):delete t.moved,r.insert(o,u),this.touched.add(r)))},events:["move"]},methods:{init(t){const{target:e,button:i,defaultPrevented:s}=t,[n]=this.items.filter(o=>M(e,o));!n||s||i>0||Wi(e)||M(e,`.${this.clsNoDrag}`)||this.handle&&!M(e,this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=n,this.origin={target:e,index:ne(n),...this.pos},x(document,ri,this.move),x(document,Pt,this.end),this.threshold||this.start(t))},start(t){this.drag=_h(this.$container,this.placeholder);const{left:e,top:i}=this.placeholder.getBoundingClientRect();wt(this.origin,{offsetLeft:this.pos.x-e,offsetTop:this.pos.y-i}),y(this.drag,this.clsDrag,this.clsCustom),y(this.placeholder,this.clsPlaceholder),y(this.items,this.clsItem),y(document.documentElement,this.clsDragState),v(this.$el,"start",[this,this.placeholder]),Mh(this.pos),this.move(t)},move(t){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},end(){if(Bt(document,ri,this.move),Bt(document,Pt,this.end),!this.drag)return;Nh();const t=this.getSortable(this.placeholder);this===t?this.origin.index!==ne(this.placeholder)&&v(this.$el,"moved",[this,this.placeholder]):(v(t.$el,"added",[t,this.placeholder]),v(this.$el,"removed",[this,this.placeholder])),v(this.$el,"stop",[this,this.placeholder]),lt(this.drag),this.drag=null;for(const{clsPlaceholder:e,clsItem:i}of this.touched)for(const s of this.touched)N(s.items,e,i);this.touched=null,N(document.documentElement,this.clsDragState)},insert(t,e){y(this.items,this.clsItem);const i=()=>e?ti(e,t):L(this.target,t);this.animate(i)},remove(t){M(t,this.target)&&this.animate(()=>lt(t))},getSortable(t){do{const e=this.$getComponent(t,"sortable");if(e&&(e===this||this.group!==!1&&e.group===this.group))return e}while(t=D(t))}}};let Oo;function Mh(t){let e=Date.now();Oo=setInterval(()=>{let{x:i,y:s}=t;s+=document.scrollingElement.scrollTop;const n=(Date.now()-e)*.3;e=Date.now(),ue(document.elementFromPoint(i,t.y)).reverse().some(o=>{let{scrollTop:r,scrollHeight:a}=o;const{top:l,bottom:c,height:u}=ct(o);if(l<s&&l+35>s)r-=n;else if(c>s&&c-35<s)r+=n;else return;if(r>0&&r<a-u)return o.scrollTop=r,!0})},15)}function Nh(){clearInterval(Oo)}function _h(t,e){let i;if(G(e,"li","tr")){i=w("<div>"),L(i,e.cloneNode(!0).children);for(const s of e.getAttributeNames())p(i,s,e.getAttribute(s))}else i=e.cloneNode(!0);return L(t,i),h(i,"margin","0","important"),h(i,{boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight,padding:h(e,"padding")}),et(i.firstElementChild,et(e.firstElementChild)),i}function zh(t,e){return t[xt(t,i=>Je(e,i.getBoundingClientRect()))]}function Fh(t,e,i,s,n,o){if(!E(t).length)return;const r=e.getBoundingClientRect();if(!o)return Hh(t,i)||n<r.top+r.height/2?e:e.nextElementSibling;const a=i.getBoundingClientRect(),l=Do([r.top,r.bottom],[a.top,a.bottom]),[c,u,f,d]=l?[s,"width","left","right"]:[n,"height","top","bottom"],g=a[u]<r[u]?r[u]-a[u]:0;return a[f]<r[f]?g&&c<r[f]+g?!1:e.nextElementSibling:g&&c>r[d]-g?!1:e}function Hh(t,e){const i=E(t).length===1;i&&L(t,e);const s=E(t),n=s.some((o,r)=>{const a=o.getBoundingClientRect();return s.slice(r+1).some(l=>{const c=l.getBoundingClientRect();return!Do([a.left,a.right],[c.left,c.right])})});return i&&lt(e),n}function Do(t,e){return t[1]>e[0]&&e[1]>t[0]}var Lh={mixins:[ze,Ut,An],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["qx-animation-scale-up"],duration:100,cls:"qx-active"},beforeConnect(){this.id=Ot(this,{}),this._hasTitle=$t(this.$el,"title"),p(this.$el,{title:"","aria-describedby":this.id}),Wh(this.$el)},disconnected(){this.hide(),p(this.$el,"title")||p(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){T(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),lt(this.tooltip),this.tooltip=null)},async _show(){this.tooltip=L(this.container,`<div id="${this.id}" class="qx-${this.$options.name}" role=""> <div class="qx-${this.$options.name}-inner">${this.title}</div> </div>`),x(this.tooltip,"toggled",(t,e)=>{if(!e)return;const i=()=>this.positionAt(this.tooltip,this.$el);i();const[s,n]=Rh(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${oi(s)}-${n}`:`${n}-${oi(s)}`;const o=[R(document,`keydown ${mt}`,this.hide,!1,r=>r.type===mt&&!M(r.target,this.$el)||r.type==="keydown"&&r.keyCode===I.ESC),x([document,...Rt(this.$el)],"scroll",i,{passive:!0})];R(this.tooltip,"hide",()=>o.forEach(r=>r()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{focus:"show",blur:"hide",[`${Wt} ${ce}`](t){It(t)||this[t.type===Wt?"show":"hide"]()},[mt](t){It(t)&&this.show()}}};function Wh(t){Ze(t)||p(t,"tabindex","0")}function Rh(t,e,[i,s]){const n=O(t),o=O(e),r=[["left","right"],["top","bottom"]];for(const l of r){if(n[l[0]]>=o[l[1]]){i=l[1];break}if(n[l[1]]<=o[l[0]]){i=l[0];break}}const a=m(r[0],i)?r[1]:r[0];return n[a[0]]===o[a[0]]?s=a[0]:n[a[1]]===o[a[1]]?s=a[1]:s="center",[i,s]}var jh={mixins:[vi],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"qx-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:S,beforeAll:S,beforeSend:S,complete:S,completeAll:S,error:S,fail:S,load:S,loadEnd:S,loadStart:S,progress:S},events:{change(t){T(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop(t){Ai(t);const e=t.dataTransfer;e!=null&&e.files&&(N(this.$el,this.clsDragover),this.upload(e.files))},dragenter(t){Ai(t)},dragover(t){Ai(t),y(this.$el,this.clsDragover)},dragleave(t){Ai(t),N(this.$el,this.clsDragover)}},methods:{async upload(t){if(t=Zt(t),!t.length)return;v(this.$el,"upload",[t]);for(const s of t){if(this.maxSize&&this.maxSize*1e3<s.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!Bo(this.allow,s.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!Bo(this.mime,s.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(t=t.slice(0,1)),this.beforeAll(this,t);const e=qh(t,this.concurrent),i=async s=>{const n=new FormData;s.forEach(o=>n.append(this.name,o));for(const o in this.params)n.append(o,this.params[o]);try{const o=await Uh(this.url,{data:n,method:this.method,responseType:this.type,beforeSend:r=>{const{xhr:a}=r;x(a.upload,"progress",this.progress);for(const l of["loadStart","load","loadEnd","abort"])x(a,l.toLowerCase(),this[l]);return this.beforeSend(r)}});this.complete(o),e.length?await i(e.shift()):this.completeAll(o)}catch(o){this.error(o)}};await i(e.shift())}}};function Bo(t,e){return e.match(new RegExp(`^${t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function qh(t,e){const i=[];for(let s=0;s<t.length;s+=e)i.push(t.slice(s,s+e));return i}function Ai(t){t.preventDefault(),t.stopPropagation()}function Uh(t,e){const i={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:S,responseType:"",...e};return Promise.resolve().then(()=>i.beforeSend(i)).then(()=>Vh(t,i))}function Vh(t,e){return new Promise((i,s)=>{const{xhr:n}=e;for(const o in e)if(o in n)try{n[o]=e[o]}catch{}n.open(e.method.toUpperCase(),t);for(const o in e.headers)n.setRequestHeader(o,e.headers[o]);x(n,"load",()=>{n.status===0||n.status>=200&&n.status<300||n.status===304?i(n):s(wt(Error(n.statusText),{xhr:n,status:n.status}))}),x(n,"error",()=>s(wt(Error("Network Error"),{xhr:n}))),x(n,"timeout",()=>s(wt(Error("Network Timeout"),{xhr:n}))),n.send(e.data)})}var Yh=Object.freeze({__proto__:null,Countdown:Yl,Filter:th,Lightbox:ph,LightboxPanel:po,Notification:mh,Parallax:Sh,Slider:Eh,SliderParallax:Eo,Slideshow:Dh,SlideshowParallax:Eo,Sortable:Bh,Tooltip:Lh,Upload:jh});return St(Yh,(t,e)=>ft.component(e,t)),ft});