text: /*! UIkit 3.0.0-rc.19 | http://www.getuikit.com | (c) 2014 - 2018 YOOtheme | MIT License */
  
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):t.UIkit=e()}(this,function(){"use strict";function p(i,n){return function(t){var e=arguments.length;return e?1<e?i.apply(n,arguments):i.call(n,t):i.call(n)}}var e=Object.prototype,i=e.hasOwnProperty;function h(t,e){return i.call(t,e)}var n={},r=/([a-z\d])([A-Z])/g;function m(t){return t in n||(n[t]=t.replace(r,"$1-$2").toLowerCase()),n[t]}var o=/-(\w)/g;function g(t){return t.replace(o,s)}function s(t,e){return e?e.toUpperCase():""}function a(t){return t.length?s(0,t.charAt(0))+t.slice(1):""}var t=String.prototype,l=t.startsWith||function(t){return 0===this.lastIndexOf(t,0)};function v(t,e){return l.call(t,e)}var c=t.endsWith||function(t){return this.substr(-t.length)===t};function u(t,e){return c.call(t,e)}var d=function(t){return~this.indexOf(t)},f=t.includes||d,w=Array.prototype.includes||d;function b(t,e){return t&&(N(t)?f:w).call(t,e)}var y=Array.isArray;function x(t){return"function"==typeof t}function $(t){return null!==t&&"object"==typeof t}function I(t){return $(t)&&Object.getPrototypeOf(t)===e}function S(t){return $(t)&&t===t.window}function T(t){return $(t)&&9===t.nodeType}function k(t){return $(t)&&!!t.jquery}function E(t){return t instanceof Node||$(t)&&1<=t.nodeType}var C=e.toString;function A(t){return C.call(t).match(/^\[object (NodeList|HTMLCollection)\]$/)}function _(t){return"boolean"==typeof t}function N(t){return"string"==typeof t}function O(t){return"number"==typeof t}function M(t){return O(t)||N(t)&&!isNaN(t-parseFloat(t))}function B(t){return void 0===t}function D(t){return _(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function z(t){var e=Number(t);return!isNaN(e)&&e}function P(t){return parseFloat(t)||0}function H(t){return E(t)||S(t)||T(t)?t:A(t)||k(t)?t[0]:y(t)?H(t[0]):null}var L=Array.prototype;function j(t){return E(t)?[t]:A(t)?L.slice.call(t):y(t)?t.map(H).filter(Boolean):k(t)?t.toArray():[]}function W(t){return y(t)?t:N(t)?t.split(/,(?![^(]*\))/).map(function(t){return M(t)?z(t):D(t.trim())}):[t]}function F(t){return t?u(t,"ms")?P(t):1e3*P(t):0}function V(t,e,i){return t.replace(new RegExp(e+"|"+i,"mg"),function(t){return t===e?i:e})}var Y=Object.assign||function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];t=Object(t);for(var n=0;n<e.length;n++){var r=e[n];if(null!==r)for(var o in r)h(r,o)&&(t[o]=r[o])}return t};function R(t,e){for(var i in t)e.call(t[i],t[i],i)}function q(t,r){return t.sort(function(t,e){var i=t[r];void 0===i&&(i=0);var n=e[r];return void 0===n&&(n=0),n<i?1:i<n?-1:0})}function U(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.min(Math.max(z(t)||0,e),i)}function X(){}function K(t,e){return t.left<e.right&&t.right>e.left&&t.top<e.bottom&&t.bottom>e.top}function G(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}var J={ratio:function(t,e,i){var n,r="width"===e?"height":"width";return(n={})[r]=t[e]?Math.round(i*t[r]/t[e]):t[r],n[e]=i,n},contain:function(i,n){var r=this;return R(i=Y({},i),function(t,e){return i=i[e]>n[e]?r.ratio(i,e,n[e]):i}),i},cover:function(i,n){var r=this;return R(i=this.contain(i,n),function(t,e){return i=i[e]<n[e]?r.ratio(i,e,n[e]):i}),i}};function Z(t,e,i){if($(e))for(var n in e)Z(t,n,e[n]);else{if(B(i))return(t=H(t))&&t.getAttribute(e);j(t).forEach(function(t){x(i)&&(i=i.call(t,Z(t,e))),null===i?tt(t,e):t.setAttribute(e,i)})}}function Q(t,e){return j(t).some(function(t){return t.hasAttribute(e)})}function tt(t,e){t=j(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeAttribute(e)})})}function et(t,e){for(var i=0,n=[e,"data-"+e];i<n.length;i++)if(Q(t,n[i]))return Z(t,n[i])}function it(t,e){return H(t)||ot(t,rt(t,e))}function nt(t,e){var i=j(t);return i.length&&i||st(t,rt(t,e))}function rt(t,e){return void 0===e&&(e=document),ct(t)||T(e)?e:e.ownerDocument}function ot(t,e){return H(at(t,e,"querySelector"))}function st(t,e){return j(at(t,e,"querySelectorAll"))}function at(t,s,e){if(void 0===s&&(s=document),!t||!N(t))return null;var a;ct(t=t.replace(ht,"$1 *"))&&(a=[],t=t.split(",").map(function(t,e){var i=s;if("!"===(t=t.trim())[0]){var n=t.substr(1).trim().split(" ");i=mt(s.parentNode,n[0]),t=n.slice(1).join(" ").trim()}if("-"===t[0]){var r=t.substr(1).trim().split(" "),o=(i||s).previousElementSibling;i=ft(o,t.substr(1))?o:null,t=r.slice(1).join(" ")}return i?(i.id||(i.id="ui-"+Date.now()+e,a.push(function(){return tt(i,"id")})),"#"+wt(i.id)+" "+t):null}).filter(Boolean).join(","),s=document);try{return s[e](t)}catch(t){return null}finally{a&&a.forEach(function(t){return t()})}}var lt=/(^|,)\s*[!>+~-]/,ht=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g;function ct(t){return N(t)&&t.match(lt)}var ut=Element.prototype,dt=ut.matches||ut.webkitMatchesSelector||ut.msMatchesSelector;function ft(t,e){return j(t).some(function(t){return dt.call(t,e)})}var pt=ut.closest||function(t){var e=this;do{if(ft(e,t))return e;e=e.parentNode}while(e&&1===e.nodeType)};function mt(t,e){return v(e,">")&&(e=e.slice(1)),E(t)?t.parentNode&&pt.call(t,e):j(t).map(function(t){return t.parentNode&&pt.call(t,e)}).filter(Boolean)}function gt(t,e){for(var i=[],n=H(t).parentNode;n&&1===n.nodeType;)ft(n,e)&&i.push(n),n=n.parentNode;return i}var vt=window.CSS&&CSS.escape||function(t){return t.replace(/([^\x7f-\uFFFF\w-])/g,function(t){return"\\"+t})};function wt(t){return N(t)?vt.call(null,t):""}var bt={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function yt(t){return j(t).some(function(t){return bt[t.tagName.toLowerCase()]})}function xt(t){return j(t).some(function(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length})}var $t="input,select,textarea,button";function It(t){return j(t).some(function(t){return ft(t,$t)})}function St(t,e){return j(t).filter(function(t){return ft(t,e)})}function Tt(t,e){return N(e)?ft(t,e)||mt(t,e):t===e||(T(e)?e.documentElement:H(e)).contains(H(t))}function kt(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,n=Nt(t),r=n[0],o=n[1],s=n[2],a=n[3],l=n[4];return r=Bt(r),s&&(a=function(t,n,r){var o=this;return function(i){t.forEach(function(t){var e=">"===n[0]?st(n,t).reverse().filter(function(t){return Tt(i.target,t)})[0]:mt(i.target,n);e&&(i.delegate=t,i.current=e,r.call(o,i))})}}(r,s,a)),1<a.length&&(i=a,a=function(t){return y(t.detail)?i.apply(void 0,[t].concat(t.detail)):i(t)}),o.split(" ").forEach(function(e){return r.forEach(function(t){return t.addEventListener(e,a,l)})}),function(){return Et(r,o,a,l)}}function Et(t,e,i,n){void 0===n&&(n=!1),t=Bt(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeEventListener(e,i,n)})})}function Ct(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=Nt(t),n=i[0],r=i[1],o=i[2],s=i[3],a=i[4],l=i[5],h=kt(n,r,o,function(t){var e=!l||l(t);e&&(h(),s(t,e))},a);return h}function At(t,i,n){return Bt(t).reduce(function(t,e){return t&&e.dispatchEvent(_t(i,!0,!0,n))},!0)}function _t(t,e,i,n){if(void 0===e&&(e=!0),void 0===i&&(i=!1),N(t)){var r=document.createEvent("CustomEvent");r.initCustomEvent(t,e,i,n),t=r}return t}function Nt(t){return x(t[2])&&t.splice(2,0,!1),t}function Ot(t){return t&&"addEventListener"in t}function Mt(t){return Ot(t)?t:H(t)}function Bt(t){return y(t)?t.map(Mt).filter(Boolean):N(t)?st(t):Ot(t)?[t]:j(t)}function Dt(){var e=setTimeout(Ct(document,"click",function(t){t.preventDefault(),t.stopImmediatePropagation(),clearTimeout(e)},!0));At(document,"touchcancel")}var zt="Promise"in window?window.Promise:jt,Pt=function(){var i=this;this.promise=new zt(function(t,e){i.reject=e,i.resolve=t})},Ht=2,Lt="setImmediate"in window?setImmediate:setTimeout;function jt(t){this.state=Ht,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}jt.reject=function(i){return new jt(function(t,e){e(i)})},jt.resolve=function(i){return new jt(function(t,e){t(i)})},jt.all=function(s){return new jt(function(i,t){var n=[],r=0;function e(e){return function(t){n[e]=t,(r+=1)===s.length&&i(n)}}0===s.length&&i(n);for(var o=0;o<s.length;o+=1)jt.resolve(s[o]).then(e(o),t)})},jt.race=function(n){return new jt(function(t,e){for(var i=0;i<n.length;i+=1)jt.resolve(n[i]).then(t,e)})};var Wt=jt.prototype;function Ft(s,a){return new zt(function(t,e){var i=Y({data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:X,responseType:""},a);i.beforeSend(i);var n=i.xhr;for(var r in i)if(r in n)try{n[r]=i[r]}catch(t){}for(var o in n.open(i.method.toUpperCase(),s),i.headers)n.setRequestHeader(o,i.headers[o]);kt(n,"load",function(){0===n.status||200<=n.status&&n.status<300||304===n.status?t(n):e(Y(Error(n.statusText),{xhr:n,status:n.status}))}),kt(n,"error",function(){return e(Y(Error("Network Error"),{xhr:n}))}),kt(n,"timeout",function(){return e(Y(Error("Network Timeout"),{xhr:n}))}),n.send(i.data)})}function Vt(n,r,o){return new zt(function(t,e){var i=new Image;i.onerror=e,i.onload=function(){return t(i)},o&&(i.sizes=o),r&&(i.srcset=r),i.src=n})}Wt.resolve=function(t){var e=this;if(e.state===Ht){if(t===e)throw new TypeError("Promise settled with itself.");var i=!1;try{var n=t&&t.then;if(null!==t&&$(t)&&x(n))return void n.call(t,function(t){i||e.resolve(t),i=!0},function(t){i||e.reject(t),i=!0})}catch(t){return void(i||e.reject(t))}e.state=0,e.value=t,e.notify()}},Wt.reject=function(t){var e=this;if(e.state===Ht){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},Wt.notify=function(){var o=this;Lt(function(){if(o.state!==Ht)for(;o.deferred.length;){var t=o.deferred.shift(),e=t[0],i=t[1],n=t[2],r=t[3];try{0===o.state?x(e)?n(e.call(void 0,o.value)):n(o.value):1===o.state&&(x(i)?n(i.call(void 0,o.value)):r(o.value))}catch(t){r(t)}}})},Wt.then=function(i,n){var r=this;return new jt(function(t,e){r.deferred.push([i,n,t,e]),r.notify()})},Wt.catch=function(t){return this.then(void 0,t)};var Yt=/msie|trident/i.test(window.navigator.userAgent),Rt="rtl"===Z(document.documentElement,"dir"),qt="ontouchstart"in window,Ut=window.PointerEvent,Xt=qt||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints,Kt=Xt?"mousedown "+(qt?"touchstart":"pointerdown"):"mousedown",Gt=Xt?"mousemove "+(qt?"touchmove":"pointermove"):"mousemove",Jt=Xt?"mouseup "+(qt?"touchend":"pointerup"):"mouseup",Zt=Xt&&Ut?"pointerenter":"mouseenter",Qt=Xt&&Ut?"pointerleave":"mouseleave";function te(){return"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll}function ee(t){if(te())t();else var e=function(){i(),n(),t()},i=kt(document,"DOMContentLoaded",e),n=kt(window,"load",e)}function ie(t,e){return e?j(t).indexOf(H(e)):j((t=H(t))&&t.parentNode.children).indexOf(t)}function ne(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var r=(e=j(e)).length;return t=M(t)?z(t):"next"===t?i+1:"previous"===t?i-1:ie(e,t),n?U(t,0,r-1):(t%=r)<0?t+r:t}function re(t){return(t=we(t)).innerHTML="",t}function oe(t,e){return t=we(t),B(e)?t.innerHTML:se(t.hasChildNodes()?re(t):t,e)}function se(e,t){return e=we(e),he(t,function(t){return e.appendChild(t)})}function ae(e,t){return e=we(e),he(t,function(t){return e.parentNode.insertBefore(t,e)})}function le(e,t){return e=we(e),he(t,function(t){return e.nextSibling?ae(e.nextSibling,t):se(e.parentNode,t)})}function he(t,e){return(t=N(t)?ge(t):t)?"length"in t?j(t).map(e):e(t):null}function ce(t){j(t).map(function(t){return t.parentNode&&t.parentNode.removeChild(t)})}function ue(t,e){for(e=H(ae(t,e));e.firstChild;)e=e.firstChild;return se(e,t),e}function de(t,e){return j(j(t).map(function(t){return t.hasChildNodes?ue(j(t.childNodes),e):se(t,e)}))}function fe(t){j(t).map(function(t){return t.parentNode}).filter(function(t,e,i){return i.indexOf(t)===e}).forEach(function(t){ae(t,t.childNodes),ce(t)})}var pe=/^\s*<(\w+|!)[^>]*>/,me=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function ge(t){var e=me.exec(t);if(e)return document.createElement(e[1]);var i=document.createElement("div");return pe.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,1<i.childNodes.length?j(i.childNodes):i.firstChild}function ve(t,e){if(t&&1===t.nodeType)for(e(t),t=t.firstElementChild;t;)ve(t,e),t=t.nextElementSibling}function we(t,e){return N(t)?ye(t)?H(ge(t)):ot(t,e):H(t)}function be(t,e){return N(t)?ye(t)?j(ge(t)):st(t,e):j(t)}function ye(t){return"<"===t[0]||t.match(/^\s*</)}function xe(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];Ee(t,e,"add")}function $e(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];Ee(t,e,"remove")}function Ie(t,e){Z(t,"class",function(t){return(t||"").replace(new RegExp("\\b"+e+"\\b","g"),"")})}function Se(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];e[0]&&$e(t,e[0]),e[1]&&xe(t,e[1])}function Te(t,e){return j(t).some(function(t){return t.classList.contains(e)})}function ke(t){for(var n=[],e=arguments.length-1;0<e--;)n[e]=arguments[e+1];if(n.length){var r=N((n=Ce(n))[n.length-1])?[]:n.pop();n=n.filter(Boolean),j(t).forEach(function(t){for(var e=t.classList,i=0;i<n.length;i++)_e.Force?e.toggle.apply(e,[n[i]].concat(r)):e[(B(r)?!e.contains(n[i]):r)?"add":"remove"](n[i])})}}function Ee(t,i,n){(i=Ce(i).filter(Boolean)).length&&j(t).forEach(function(t){var e=t.classList;_e.Multiple?e[n].apply(e,i):i.forEach(function(t){return e[n](t)})})}function Ce(t){return t.reduce(function(t,e){return t.concat.call(t,N(e)&&b(e," ")?e.trim().split(" "):e)},[])}var Ae,_e={};(Ae=document.createElement("_").classList)&&(Ae.add("a","b"),Ae.toggle("c",!1),_e.Multiple=Ae.contains("b"),_e.Force=!Ae.contains("c"));var Ne={"animation-iteration-count":!(Ae=null),"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0};function Oe(t,e,r){return j(t).map(function(i){if(N(e)){if(e=He(e),B(r))return Be(i,e);r||0===r?i.style[e]=M(r)&&!Ne[e]?r+"px":r:i.style.removeProperty(e)}else{if(y(e)){var n=Me(i);return e.reduce(function(t,e){return t[e]=n[He(e)],t},{})}$(e)&&R(e,function(t,e){return Oe(i,e,t)})}return i})[0]}function Me(t,e){return(t=H(t)).ownerDocument.defaultView.getComputedStyle(t,e)}function Be(t,e,i){return Me(t,i)[e]}var De={};function ze(t){var e=document.documentElement;if(!Yt)return Me(e).getPropertyValue("--ui-"+t);if(!(t in De)){var i=se(e,document.createElement("div"));xe(i,"ui-"+t),De[t]=Be(i,"content",":before").replace(/^["'](.*)["']$/,"$1"),ce(i)}return De[t]}var Pe={};function He(t){var e=Pe[t];return e||(e=Pe[t]=function(t){if((t=m(t))in je)return t;var e,i=Le.length;for(;i--;)if((e="-"+Le[i]+"-"+t)in je)return e}(t)||t),e}var Le=["webkit","moz","ms"],je=document.createElement("_").style;function We(t,s,a,l){return void 0===a&&(a=400),void 0===l&&(l="linear"),zt.all(j(t).map(function(o){return new zt(function(i,n){for(var t in s){var e=Oe(o,t);""===e&&Oe(o,t,e)}var r=setTimeout(function(){return At(o,"transitionend")},a);Ct(o,"transitionend transitioncanceled",function(t){var e=t.type;clearTimeout(r),$e(o,"ui-transition"),Oe(o,{"transition-property":"","transition-duration":"","transition-timing-function":""}),"transitioncanceled"===e?n():i()},!1,function(t){var e=t.target;return o===e}),xe(o,"ui-transition"),Oe(o,Y({"transition-property":Object.keys(s).map(He).join(","),"transition-duration":a+"ms","transition-timing-function":l},s))})}))}var Fe={start:We,stop:function(t){return At(t,"transitionend"),zt.resolve()},cancel:function(t){At(t,"transitioncanceled")},inProgress:function(t){return Te(t,"ui-transition")}},Ve="ui-animation-",Ye="ui-cancel-animation";function Re(t,e,i,a,l){var h=arguments;return void 0===i&&(i=200),zt.all(j(t).map(function(s){return new zt(function(n,r){if(Te(s,Ye))requestAnimationFrame(function(){return zt.resolve().then(function(){return Re.apply(void 0,h).then(n,r)})});else{var t=e+" "+Ve+(l?"leave":"enter");v(e,Ve)&&(a&&(t+=" ui-transform-origin-"+a),l&&(t+=" "+Ve+"reverse")),o(),Ct(s,"animationend animationcancel",function(t){var e=t.type,i=!1;"animationcancel"===e?(r(),o()):(n(),zt.resolve().then(function(){i=!0,o()})),requestAnimationFrame(function(){i||(xe(s,Ye),requestAnimationFrame(function(){return $e(s,Ye)}))})},!1,function(t){var e=t.target;return s===e}),Oe(s,"animationDuration",i+"ms"),xe(s,t)}function o(){Oe(s,"animationDuration",""),Ie(s,Ve+"\\S*")}})}))}var qe=new RegExp(Ve+"(enter|leave)"),Ue={in:function(t,e,i,n){return Re(t,e,i,n,!1)},out:function(t,e,i,n){return Re(t,e,i,n,!0)},inProgress:function(t){return qe.test(Z(t,"class"))},cancel:function(t){At(t,"animationcancel")}},Xe={width:["x","left","right"],height:["y","top","bottom"]};function Ke(t,e,c,u,d,i,f,p){c=ri(c),u=ri(u);var m={element:c,target:u};if(!t||!e)return m;var g=Je(t),v=Je(e),w=v;return ni(w,c,g,-1),ni(w,u,v,1),d=oi(d,g.width,g.height),i=oi(i,v.width,v.height),d.x+=i.x,d.y+=i.y,w.left+=d.x,w.top+=d.y,p=Je(p||ui(t)),f&&R(Xe,function(t,n){var r=t[0],o=t[1],s=t[2];if(!0===f||b(f,r)){var e=c[r]===o?-g[n]:c[r]===s?g[n]:0,i=u[r]===o?v[n]:u[r]===s?-v[n]:0;if(w[o]<p[o]||w[o]+g[n]>p[s]){var a=g[n]/2,l="center"===u[r]?-v[n]/2:0;"center"===c[r]&&(h(a,l)||h(-a,-l))||h(e,i)}}function h(e,t){var i=w[o]+e+t-2*d[r];if(i>=p[o]&&i+g[n]<=p[s])return w[o]=i,["element","target"].forEach(function(t){m[t][r]=e?m[t][r]===Xe[n][1]?Xe[n][2]:Xe[n][1]:m[t][r]}),!0}}),Ge(t,w),m}function Ge(i,n){if(i=H(i),!n)return Je(i);var r=Ge(i),o=Oe(i,"position");["left","top"].forEach(function(t){if(t in n){var e=Oe(i,t);Oe(i,t,n[t]-r[t]+P("absolute"===o&&"auto"===e?Ze(i)[t]:e))}})}function Je(t){var e,i,n=ui(t=H(t)),r=n.pageYOffset,o=n.pageXOffset;if(S(t)){var s=t.innerHeight,a=t.innerWidth;return{top:r,left:o,height:s,width:a,bottom:r+s,right:o+a}}xt(t)||(e=Z(t,"style"),i=Z(t,"hidden"),Z(t,{style:(e||"")+";display:block !important;",hidden:null}));var l=t.getBoundingClientRect();return B(e)||Z(t,{style:e,hidden:i}),{height:l.height,width:l.width,top:l.top+r,left:l.left+o,bottom:l.bottom+r,right:l.right+o}}function Ze(n){var r=(n=H(n)).offsetParent||di(n).documentElement,o=Ge(r),t=["top","left"].reduce(function(t,e){var i=a(e);return t[e]-=o[e]+P(Oe(n,"margin"+i))+P(Oe(r,"border"+i+"Width")),t},Ge(n));return{top:t.top,left:t.left}}var Qe=ei("height"),ti=ei("width");function ei(n){var r=a(n);return function(t,e){if(t=H(t),B(e)){if(S(t))return t["inner"+r];if(T(t)){var i=t.documentElement;return Math.max(i["offset"+r],i["scroll"+r])}return(e="auto"===(e=Oe(t,n))?t["offset"+r]:P(e)||0)-ii(n,t)}Oe(t,n,e||0===e?+e+ii(n,t)+"px":"")}}function ii(t,i,e){return void 0===e&&(e="border-box"),Oe(i,"boxSizing")===e?Xe[t].slice(1).map(a).reduce(function(t,e){return t+P(Oe(i,"padding"+e))+P(Oe(i,"border"+e+"Width"))},0):0}function ni(o,s,a,l){R(Xe,function(t,e){var i=t[0],n=t[1],r=t[2];s[i]===r?o[n]+=a[e]*l:"center"===s[i]&&(o[n]+=a[e]*l/2)})}function ri(t){var e=/left|center|right/,i=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat(["center"]):i.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:i.test(t[1])?t[1]:"center"}}function oi(t,e,i){var n=(t||"").split(" "),r=n[0],o=n[1];return{x:r?P(r)*(u(r,"%")?e/100:1):0,y:o?P(o)*(u(o,"%")?i/100:1):0}}function si(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}}function ai(t,e,i,n){if(void 0===e&&(e=0),void 0===i&&(i=0),!xt(t))return!1;var r,o,s=ui(t=H(t));if(n)r=t.getBoundingClientRect(),o={top:-e,left:-i,bottom:e+Qe(s),right:i+ti(s)};else{var a=ci(t),l=a[0],h=a[1],c=s.pageYOffset,u=s.pageXOffset;r={top:l,left:h,bottom:l+t.offsetHeight,right:l+t.offsetWidth},o={top:c-e,left:u-i,bottom:c+e+Qe(s),right:u+i+ti(s)}}return K(r,o)||G({x:r.left,y:r.top},o)}function li(t,e){if(void 0===e&&(e=0),!xt(t))return 0;var i=ui(t=H(t)),n=di(t),r=t.offsetHeight+e,o=ci(t)[0],s=Qe(i),a=s+Math.min(0,o-s),l=Math.max(0,s-(Qe(n)+e-(o+r)));return U((a+i.pageYOffset-o)/((a+(r-(l<s?l:0)))/100)/100)}function hi(t,e){if(S(t=H(t))||T(t)){var i=ui(t);(0,i.scrollTo)(i.pageXOffset,e)}else t.scrollTop=e}function ci(t){var e=[0,0];do{if(e[0]+=t.offsetTop,e[1]+=t.offsetLeft,"fixed"===Oe(t,"position")){var i=ui(t);return e[0]+=i.pageYOffset,e[1]+=i.pageXOffset,e}}while(t=t.offsetParent);return e}function ui(t){return S(t)?t:di(t).defaultView}function di(t){return H(t).ownerDocument}var fi={reads:[],writes:[],read:function(t){return this.reads.push(t),pi(),t},write:function(t){return this.writes.push(t),pi(),t},clear:function(t){return gi(this.reads,t)||gi(this.writes,t)},flush:function(){mi(this.reads),mi(this.writes.splice(0,this.writes.length)),this.scheduled=!1,(this.reads.length||this.writes.length)&&pi()}};function pi(){fi.scheduled||(fi.scheduled=!0,requestAnimationFrame(fi.flush.bind(fi)))}function mi(t){for(var e;e=t.shift();)e()}function gi(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function vi(){}function wi(t,e){return(e.y-t.y)/(e.x-t.x)}vi.prototype={positions:[],position:null,init:function(){var n=this;this.positions=[],this.position=null;var r=!1;this.unbind=kt(document,"mousemove",function(i){r||(setTimeout(function(){var t=Date.now(),e=n.positions.length;e&&100<t-n.positions[e-1].time&&n.positions.splice(0,e),n.positions.push({time:t,x:i.pageX,y:i.pageY}),5<n.positions.length&&n.positions.shift(),r=!1},5),r=!0)})},cancel:function(){this.unbind&&this.unbind()},movesTo:function(t){if(this.positions.length<2)return!1;var e=Ge(t),i=this.positions[this.positions.length-1],n=this.positions[0];if(e.left<=i.x&&i.x<=e.right&&e.top<=i.y&&i.y<=e.bottom)return!1;var r=[[{x:e.left,y:e.top},{x:e.right,y:e.bottom}],[{x:e.right,y:e.top},{x:e.left,y:e.bottom}]];return e.right<=i.x||(e.left>=i.x?(r[0].reverse(),r[1].reverse()):e.bottom<=i.y?r[0].reverse():e.top>=i.y&&r[1].reverse()),!!r.reduce(function(t,e){return t+(wi(n,e[0])<wi(i,e[0])&&wi(n,e[1])>wi(i,e[1]))},0)}};var bi={};function yi(t,e,i){return bi.computed(x(t)?t.call(i,i):t,x(e)?e.call(i,i):e)}function xi(t,e){return t=t&&!y(t)?[t]:t,e?t?t.concat(e):y(e)?e:[e]:t}function $i(e,i,n){var r={};if(x(i)&&(i=i.options),i.extends&&(e=$i(e,i.extends,n)),i.mixins)for(var t=0,o=i.mixins.length;t<o;t++)e=$i(e,i.mixins[t],n);for(var s in e)l(s);for(var a in i)h(e,a)||l(a);function l(t){r[t]=(bi[t]||function(t,e){return B(e)?t:e})(e[t],i[t],n)}return r}function Ii(t,e){var i;void 0===e&&(e=[]);try{return t?v(t,"{")?JSON.parse(t):e.length&&!b(t,":")?((i={})[e[0]]=t,i):t.split(";").reduce(function(t,e){var i=e.split(/:(.*)/),n=i[0],r=i[1];return n&&!B(r)&&(t[n.trim()]=r.trim()),t},{}):{}}catch(t){return{}}}bi.events=bi.created=bi.beforeConnect=bi.connected=bi.beforeDisconnect=bi.disconnected=bi.destroy=xi,bi.args=function(t,e){return xi(e||t)},bi.update=function(t,e){return q(xi(t,x(e)?{read:e}:e),"order")},bi.props=function(t,e){return y(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),bi.methods(t,e)},bi.computed=bi.methods=function(t,e){return e?t?Y({},t,e):e:t},bi.data=function(e,i,t){return t?yi(e,i,t):i?e?function(t){return yi(e,i,t)}:i:e};var Si=0,Ti=function(t){this.id=++Si,this.el=H(t)};function ki(t,e){try{t.contentWindow.postMessage(JSON.stringify(Y({event:"command"},e)),"*")}catch(t){}}Ti.prototype.isVideo=function(){return this.isYoutube()||this.isVimeo()||this.isHTML5()},Ti.prototype.isHTML5=function(){return"VIDEO"===this.el.tagName},Ti.prototype.isIFrame=function(){return"IFRAME"===this.el.tagName},Ti.prototype.isYoutube=function(){return this.isIFrame()&&!!this.el.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)},Ti.prototype.isVimeo=function(){return this.isIFrame()&&!!this.el.src.match(/vimeo\.com\/video\/.*/)},Ti.prototype.enableApi=function(){var e=this;if(this.ready)return this.ready;var i,r=this.isYoutube(),o=this.isVimeo();return r||o?this.ready=new zt(function(t){var n;Ct(e.el,"load",function(){if(r){var t=function(){return ki(e.el,{event:"listening",id:e.id})};i=setInterval(t,100),t()}}),(n=function(t){return r&&t.id===e.id&&"onReady"===t.event||o&&Number(t.player_id)===e.id},new zt(function(i){Ct(window,"message",function(t,e){return i(e)},!1,function(t){var e=t.data;if(e&&N(e)){try{e=JSON.parse(e)}catch(t){return}return e&&n(e)}})})).then(function(){t(),i&&clearInterval(i)}),Z(e.el,"src",e.el.src+(b(e.el.src,"?")?"&":"?")+(r?"enablejsapi=1":"api=1&player_id="+e.id))}):zt.resolve()},Ti.prototype.play=function(){var t=this;if(this.isVideo())if(this.isIFrame())this.enableApi().then(function(){return ki(t.el,{func:"playVideo",method:"play"})});else if(this.isHTML5())try{var e=this.el.play();e&&e.catch(X)}catch(t){}},Ti.prototype.pause=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return ki(t.el,{func:"pauseVideo",method:"pause"})}):this.isHTML5()&&this.el.pause())},Ti.prototype.mute=function(){var t=this;this.isVideo()&&(this.isIFrame()?this.enableApi().then(function(){return ki(t.el,{func:"mute",method:"setVolume",value:0})}):this.isHTML5()&&(this.el.muted=!0,Z(this.el,"muted","")))};var Ei,Ci,Ai,_i,Ni={};function Oi(){Ei&&clearTimeout(Ei),Ci&&clearTimeout(Ci),Ai&&clearTimeout(Ai),Ei=Ci=Ai=null,Ni={}}ee(function(){kt(document,"click",function(){return _i=!0},!0),kt(document,Kt,function(t){var e=t.target,i=Di(t),n=i.x,r=i.y,o=Date.now(),s=zi(t.type);Ni.type&&Ni.type!==s||(Ni.el="tagName"in e?e:e.parentNode,Ei&&clearTimeout(Ei),Ni.x1=n,Ni.y1=r,Ni.last&&o-Ni.last<=250&&(Ni={}),Ni.type=s,Ni.last=o,_i=0<t.button)}),kt(document,Gt,function(t){if(!t.defaultPrevented){var e=Di(t),i=e.x,n=e.y;Ni.x2=i,Ni.y2=n}}),kt(document,Jt,function(t){var e=t.type,i=t.target;Ni.type===zi(e)&&(Ni.x2&&30<Math.abs(Ni.x1-Ni.x2)||Ni.y2&&30<Math.abs(Ni.y1-Ni.y2)?Ci=setTimeout(function(){var t,e,i,n,r;Ni.el&&(At(Ni.el,"swipe"),At(Ni.el,"swipe"+(e=(t=Ni).x1,i=t.x2,n=t.y1,r=t.y2,Math.abs(e-i)>=Math.abs(n-r)?0<e-i?"Left":"Right":0<n-r?"Up":"Down"))),Ni={}}):"last"in Ni?(Ai=setTimeout(function(){return At(Ni.el,"tap")}),Ni.el&&"mouseup"!==e&&Tt(i,Ni.el)&&(Ei=setTimeout(function(){Ei=null,Ni.el&&!_i&&At(Ni.el,"click"),Ni={}},350))):Ni={})}),kt(document,"touchcancel",Oi),kt(window,"scroll",Oi)});var Mi=!1;function Bi(t){return Mi||"touch"===t.pointerType}function Di(t){var e=t.touches,i=t.changedTouches,n=e&&e[0]||i&&i[0]||t;return{x:n.pageX,y:n.pageY}}function zi(t){return t.slice(0,5)}function Pi(t){return!(!v(t,"ui-")&&!v(t,"data-ui-"))&&g(t.replace("data-ui-","").replace("ui-",""))}kt(document,"touchstart",function(){return Mi=!0},!0),kt(document,"click",function(){Mi=!1}),kt(document,"touchcancel",function(){return Mi=!1},!0);var Hi,Li,ji,Wi,Fi=function(t){this._init(t)};Fi.util=Object.freeze({ajax:Ft,getImage:Vt,transition:We,Transition:Fe,animate:Re,Animation:Ue,attr:Z,hasAttr:Q,removeAttr:tt,data:et,addClass:xe,removeClass:$e,removeClasses:Ie,replaceClass:Se,hasClass:Te,toggleClass:ke,positionAt:Ke,offset:Ge,position:Ze,height:Qe,width:ti,boxModelAdjust:ii,flipPosition:si,isInView:ai,scrolledOver:li,scrollTop:hi,offsetPosition:ci,isReady:te,ready:ee,index:ie,getIndex:ne,empty:re,html:oe,prepend:function(e,t){return(e=we(e)).hasChildNodes()?he(t,function(t){return e.insertBefore(t,e.firstChild)}):se(e,t)},append:se,before:ae,after:le,remove:ce,wrapAll:ue,wrapInner:de,unwrap:fe,fragment:ge,apply:ve,$:we,$$:be,isIE:Yt,isRtl:Rt,hasTouch:Xt,pointerDown:Kt,pointerMove:Gt,pointerUp:Jt,pointerEnter:Zt,pointerLeave:Qt,on:kt,off:Et,once:Ct,trigger:At,createEvent:_t,toEventTargets:Bt,preventClick:Dt,fastdom:fi,isVoidElement:yt,isVisible:xt,selInput:$t,isInput:It,filter:St,within:Tt,bind:p,hasOwn:h,hyphenate:m,camelize:g,ucfirst:a,startsWith:v,endsWith:u,includes:b,isArray:y,isFunction:x,isObject:$,isPlainObject:I,isWindow:S,isDocument:T,isJQuery:k,isNode:E,isNodeCollection:A,isBoolean:_,isString:N,isNumber:O,isNumeric:M,isUndefined:B,toBoolean:D,toNumber:z,toFloat:P,toNode:H,toNodes:j,toList:W,toMs:F,swap:V,assign:Y,each:R,sortBy:q,clamp:U,noop:X,intersectRect:K,pointInRect:G,Dimensions:J,MouseTracker:vi,mergeOptions:$i,parseOptions:Ii,Player:Ti,Promise:zt,Deferred:Pt,query:it,queryAll:nt,find:ot,findAll:st,matches:ft,closest:mt,parents:gt,escape:wt,css:Oe,getStyles:Me,getStyle:Be,getCssVar:ze,propName:He,isTouch:Bi,getPos:Di}),Fi.data="__uikit__",Fi.prefix="ui-",Fi.options={},function(i){var e,n=i.data;function r(t,e){if(t)for(var i in t)t[i]._connected&&t[i]._callUpdate(e)}i.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},i.mixin=function(t,e){(e=(N(e)?i.component(e):e)||this).options=$i(e.options,t)},i.extend=function(t){t=t||{};var e=function(t){this._init(t)};return((e.prototype=Object.create(this.prototype)).constructor=e).options=$i(this.options,t),e.super=this,e.extend=this.extend,e},i.update=function(t,e){e=_t(e||"update"),function(t){for(var e=[];t&&t!==document.body&&t.parentNode;)t=t.parentNode,e.unshift(t);return e}(t=t?H(t):document.body).map(function(t){return r(t[n],e)}),ve(t,function(t){return r(t[n],e)})},Object.defineProperty(i,"container",{get:function(){return e||document.body},set:function(t){e=we(t)}})}(Fi),(Hi=Fi).prototype._callHook=function(t){var e=this,i=this.$options[t];i&&i.forEach(function(t){return t.call(e)})},Hi.prototype._callConnected=function(){this._connected||(this._data={},this._initProps(),this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initObserver(),this._callHook("connected"),this._callUpdate())},Hi.prototype._callDisconnected=function(){this._connected&&(this._callHook("beforeDisconnect"),this._observer&&(this._observer.disconnect(),this._observer=null),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1)},Hi.prototype._callUpdate=function(o){var s=this,a=(o=_t(o||"update")).type;b(["update","load","resize"],a)&&this._resetComputeds();var t=this.$options.update,e=this._frames,l=e.reads,h=e.writes;t&&t.forEach(function(t,e){var i=t.read,n=t.write,r=t.events;("update"===a||b(r,a))&&(i&&!b(fi.reads,l[e])&&(l[e]=fi.read(function(){var t=s._connected&&i.call(s,s._data,o);!1===t&&n?(fi.clear(h[e]),delete h[e]):I(t)&&Y(s._data,t),delete l[e]})),n&&!b(fi.writes,h[e])&&(h[e]=fi.write(function(){s._connected&&n.call(s,s._data,o),delete h[e]})))})},function(t){var e=0;function s(t,e){var i={},n=t.args;void 0===n&&(n=[]);var r=t.props;void 0===r&&(r={});var o=t.el;if(!r)return i;for(var s in r){var a=m(s),l=et(o,a);if(!B(l)){if(l=r[s]===Boolean&&""===l||d(r[s],l),"target"===a&&(!l||v(l,"_")))continue;i[s]=l}}var h=Ii(et(o,e),n);for(var c in h){var u=g(c);void 0!==r[u]&&(i[u]=d(r[u],h[c]))}return i}function i(n,r,o){Object.defineProperty(n,r,{enumerable:!0,get:function(){var t=n._computeds,e=n.$props,i=n.$el;return h(t,r)||(t[r]=o.call(n,e,i)),t[r]},set:function(t){n._computeds[r]=t}})}function f(e,i,n){I(i)||(i={name:n,handler:i});var r,o,t=i.name,s=i.el,a=i.handler,l=i.capture,h=i.passive,c=i.delegate,u=i.filter,d=i.self;s=x(s)?s.call(e):s||e.$el,y(s)?s.forEach(function(t){return f(e,Y({},i,{el:t}),n)}):!s||u&&!u.call(e)||(r=N(a)?e[a]:p(a,e),a=function(t){return y(t.detail)?r.apply(void 0,[t].concat(t.detail)):r(t)},d&&(o=a,a=function(t){if(t.target===t.currentTarget||t.target===t.current)return o.call(null,t)}),e._events.push(kt(s,t,c?N(c)?c:c.call(e):null,a,_(h)?{passive:h,capture:l}:l)))}function n(t,e){return t.every(function(t){return!t||!h(t,e)})}function d(t,e){return t===Boolean?D(e):t===Number?z(e):"list"===t?W(e):t?t(e):e}t.prototype._init=function(t){(t=t||{}).data=function(t,e){var i=t.data,n=(t.el,e.args),r=e.props;if(void 0===r&&(r={}),i=y(i)?n&&n.length?i.slice(0,n.length).reduce(function(t,e,i){return I(e)?Y(t,e):t[n[i]]=e,t},{}):void 0:i)for(var o in i)B(i[o])?delete i[o]:i[o]=r[o]?d(r[o],i[o]):i[o];return i}(t,this.constructor.options),this.$options=$i(this.constructor.options,t,this),this.$el=null,this.$props={},this._frames={reads:{},writes:{}},this._events=[],this._uid=e++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),t.el&&this.$mount(t.el)},t.prototype._initData=function(){var t=this.$options.data;for(var e in void 0===t&&(t={}),t)this.$props[e]=this[e]=t[e]},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=p(t[e],this)},t.prototype._initComputeds=function(){var t=this.$options.computed;if(this._resetComputeds(),t)for(var e in t)i(this,e,t[e])},t.prototype._resetComputeds=function(){this._computeds={}},t.prototype._initProps=function(t){var e;for(e in this._resetComputeds(),t=t||s(this.$options,this.$name))B(t[e])||(this.$props[e]=t[e]);var i=[this.$options.computed,this.$options.methods];for(e in this.$props)e in t&&n(i,e)&&(this[e]=this.$props[e])},t.prototype._initEvents=function(){var i=this,t=this.$options.events;t&&t.forEach(function(t){if(h(t,"handler"))f(i,t);else for(var e in t)f(i,t[e],e)})},t.prototype._unbindEvents=function(){this._events.forEach(function(t){return t()}),this._events=[]},t.prototype._initObserver=function(){var i=this,t=this.$options,n=t.attrs,e=t.props,r=t.el;if(!this._observer&&e&&!1!==n){n=y(n)?n:Object.keys(e),this._observer=new MutationObserver(function(){var e=s(i.$options,i.$name);n.some(function(t){return!B(e[t])&&e[t]!==i.$props[t]})&&i.$reset()});var o=n.map(function(t){return m(t)}).concat(this.$name);this._observer.observe(r,{attributes:!0,attributeFilter:o.concat(o.map(function(t){return"data-"+t}))})}}}(Fi),ji=(Li=Fi).data,Wi={},Li.component=function(s,t){if(!t)return I(Wi[s])&&(Wi[s]=Li.extend(Wi[s])),Wi[s];Li[s]=function(t,i){for(var e=arguments.length,n=Array(e);e--;)n[e]=arguments[e];var r=Li.component(s);return I(t)?new r({data:t}):r.options.functional?new r({data:[].concat(n)}):t&&t.nodeType?o(t):be(t).map(o)[0];function o(t){var e=Li.getComponent(t,s);if(e){if(!i)return e;e.$destroy()}return new r({el:t,data:i})}};var e=I(t)?Y({},t):t.options;if(e.name=s,e.install&&e.install(Li,e,s),Li._initialized&&!e.functional){var i=m(s);fi.read(function(){return Li[s]("[ui-"+i+"],[data-ui-"+i+"]")})}return Wi[s]=I(t)?e:t},Li.getComponents=function(t){return t&&t[ji]||{}},Li.getComponent=function(t,e){return Li.getComponents(t)[e]},Li.connect=function(t){if(t[ji])for(var e in t[ji])t[ji][e]._callConnected();for(var i=0;i<t.attributes.length;i++){var n=Pi(t.attributes[i].name);n&&n in Wi&&Li[n](t)}},Li.disconnect=function(t){for(var e in t[ji])t[ji][e]._callDisconnected()},function(n){var r=n.data;n.prototype.$mount=function(t){var e=this.$options.name;t[r]||(t[r]={}),t[r][e]||((t[r][e]=this).$el=this.$options.el=this.$options.el||t,Tt(t,document)&&this._callConnected())},n.prototype.$emit=function(t){this._callUpdate(t)},n.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},n.prototype.$destroy=function(t){void 0===t&&(t=!1);var e=this.$options,i=e.el,n=e.name;i&&this._callDisconnected(),this._callHook("destroy"),i&&i[r]&&(delete i[r][n],Object.keys(i[r]).length||delete i[r],t&&ce(this.$el))},n.prototype.$create=function(t,e,i){return n[t](e,i)},n.prototype.$update=n.update,n.prototype.$getComponent=n.getComponent;var e={};Object.defineProperties(n.prototype,{$container:Object.getOwnPropertyDescriptor(n,"container"),$name:{get:function(){var t=this.$options.name;return e[t]||(e[t]=n.prefix+m(t)),e[t]}}})}(Fi);var Vi={connected:function(){!Te(this.$el,this.$name)&&xe(this.$el,this.$name)}},Yi={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String,queued:Boolean},data:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",queued:!1,initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(t){return!!t.animation[0]},hasTransition:function(t){var e=t.animation;return this.hasAnimation&&!0===e[0]}},methods:{toggleElement:function(h,c,u){var d=this;return new zt(function(t){h=j(h);var e,i=function(t){return zt.all(t.map(function(t){return d._toggleElement(t,c,u)}))},n=h.filter(function(t){return d.isToggled(t)}),r=h.filter(function(t){return!b(n,t)});if(d.queued&&B(u)&&B(c)&&d.hasAnimation&&!(h.length<2)){var o=document.body,s=o.scrollTop,a=n[0],l=Ue.inProgress(a)&&Te(a,"ui-animation-leave")||Fe.inProgress(a)&&"0px"===a.style.height;e=i(n),l||(e=e.then(function(){var t=i(r);return o.scrollTop=s,t}))}else e=i(r.concat(n));e.then(t,X)})},toggleNow:function(e,i){var n=this;return new zt(function(t){return zt.all(j(e).map(function(t){return n._toggleElement(t,i,!1)})).then(t,X)})},isToggled:function(t){var e=j(t||this.$el);return this.cls?Te(e,this.cls.split(" ")[0]):!Q(e,"hidden")},updateAria:function(t){!1===this.cls&&Z(t,"aria-hidden",!this.isToggled(t))},_toggleElement:function(t,e,i){var n=this;if(e=_(e)?e:Ue.inProgress(t)?Te(t,"ui-animation-leave"):Fe.inProgress(t)?"0px"===t.style.height:!this.isToggled(t),!At(t,"before"+(e?"show":"hide"),[this]))return zt.reject();var r,o,s,a,l,h,c,u,d,f,p,m,g=(x(i)?i:!1!==i&&this.hasAnimation?this.hasTransition?(c=(h=this).isToggled,u=h.duration,d=h.initProps,f=h.hideProps,p=h.transition,m=h._toggle,function(t,e){var i=Fe.inProgress(t),n=t.hasChildNodes?P(Oe(t.firstElementChild,"marginTop"))+P(Oe(t.lastElementChild,"marginBottom")):0,r=xt(t)?Qe(t)+(i?0:n):0;Fe.cancel(t),c(t)||m(t,!0),Qe(t,""),fi.flush();var o=Qe(t)+(i?0:n);return Qe(t,r),(e?Fe.start(t,Y({},d,{overflow:"hidden",height:o}),Math.round(u*(1-r/o)),p):Fe.start(t,f,Math.round(u*(r/o)),p).then(function(){return m(t,!1)})).then(function(){return Oe(t,d)})}):(o=(r=this).animation,s=r.duration,a=r.origin,l=r._toggle,function(t,e){return Ue.cancel(t),e?(l(t,!0),Ue.in(t,o[0],s,a)):Ue.out(t,o[1]||o[0],s,a).then(function(){return l(t,!1)})}):this._toggle)(t,e);At(t,e?"show":"hide",[this]);var v=function(){At(t,e?"shown":"hidden",[n]),n.$update(t)};return g?g.then(v):zt.resolve(v())},_toggle:function(t,e){var i;t&&(this.cls?(i=b(this.cls," ")||Boolean(e)!==Te(t,this.cls))&&ke(t,this.cls,b(this.cls," ")?void 0:e):(i=Boolean(e)===Q(t,"hidden"))&&Z(t,"hidden",e?null:""),be("[autofocus]",t).some(function(t){return xt(t)&&(t.focus()||!0)}),this.updateAria(t),i&&this.$update(t))}}};var Ri={mixins:[Vi,Yi],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String},data:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"ui-open",toggle:"> .ui-accordion-title",content:"> .ui-accordion-content",transition:"ease"},computed:{items:function(t,e){return be(t.targets,e)}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(ie(be(this.targets+" "+this.$props.toggle,this.$el),t.current))}}],connected:function(){if(!1!==this.active){var t=this.items[Number(this.active)];t&&!Te(t,this.clsOpen)&&this.toggle(t,!1)}},update:function(){var e=this;this.items.forEach(function(t){return e._toggle(we(e.content,t),Te(t,e.clsOpen))});var t=!this.collapsible&&!Te(this.items,this.clsOpen)&&this.items[0];t&&this.toggle(t,!1)},methods:{toggle:function(r,o){var s=this,t=ne(r,this.items),a=St(this.items,"."+this.clsOpen);(r=this.items[t])&&[r].concat(!this.multiple&&!b(a,r)&&a||[]).forEach(function(t){var e=t===r,i=e&&!Te(t,s.clsOpen);if(i||!e||s.collapsible||!(a.length<2)){ke(t,s.clsOpen,i);var n=t._wrapper?t._wrapper.firstElementChild:we(s.content,t);t._wrapper||(t._wrapper=ue(n,"<div>"),Z(t._wrapper,"hidden",i?"":null)),s._toggle(n,!0),s.toggleElement(t._wrapper,i,o).then(function(){Te(t,s.clsOpen)===i&&(i||s._toggle(n,!1),t._wrapper=null,fe(n))})}})}}},qi={mixins:[Vi,Yi],args:"animation",props:{close:String},data:{animation:[!0],selClose:".ui-alert-close",duration:150,hideProps:Y({opacity:0},Yi.data.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.close()}}],methods:{close:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}};function Ui(o){ee(function(){o.update();var i=0,n=0;if(kt(window,"load resize",function(t){return o.update(null,t)}),kt(window,"scroll",function(t){var e=t.target;t.dir=i<=window.pageYOffset?"down":"up",t.pageYOffset=i=window.pageYOffset,o.update(1!==e.nodeType?document.body:e,t)},{passive:!0,capture:!0}),kt(document,"loadedmetadata load",function(t){var e=t.target;return o.update(e,"load")},!0),kt(document,"animationstart",function(t){var e=t.target;(Oe(e,"animationName")||"").match(/^ui-.*(left|right)/)&&(n++,Oe(document.body,"overflowX","hidden"),setTimeout(function(){--n||Oe(document.body,"overflowX","")},F(Oe(e,"animationDuration"))+100))},!0),Xt){var r="ui-hover";kt(document,"tap",function(t){var e=t.target;return be("."+r).forEach(function(t){return!Tt(e,t)&&$e(t,r)})}),Object.defineProperty(o,"hoverSelector",{set:function(t){kt(document,"tap",t,function(t){return xe(t.current,r)})}}),o.hoverSelector=".ui-animation-toggle, .ui-transition-toggle, [ui-hover]"}})}var Xi,Ki,Gi={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},computed:{inView:function(t){return"inview"===t.autoplay}},connected:function(){this.inView&&!Q(this.$el,"preload")&&(this.$el.preload="none"),this.player=new Ti(this.$el),this.automute&&this.player.mute()},update:{read:function(t,e){var i=e.type;return!(!this.player||!("scroll"!==i&&"resize"!==i||this.inView))&&{visible:xt(this.$el)&&"hidden"!==Oe(this.$el,"visibility"),inView:this.inView&&ai(this.$el)}},write:function(t){var e=t.visible,i=t.inView;!e||this.inView&&!i?this.player.pause():(!0===this.autoplay||this.inView&&i)&&this.player.play()},events:["load","resize","scroll"]}},Ji={mixins:[Vi,Gi],props:{width:Number,height:Number},data:{automute:!0},update:{read:function(){var t=this.$el;if(!xt(t))return!1;var e=t.parentNode;return{height:e.offsetHeight,width:e.offsetWidth}},write:function(t){var e=t.height,i=t.width,n=this.$el,r=this.width||n.naturalWidth||n.videoWidth||n.clientWidth,o=this.height||n.naturalHeight||n.videoHeight||n.clientHeight;r&&o&&Oe(n,J.cover({width:r,height:o},{width:i+(i%2?1:0),height:e+(e%2?1:0)}))},events:["load","resize"]}},Zi={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(Rt?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){var e=t.pos;return(e+(b(e,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,i){var n;Ie(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?"),Oe(t,{top:"",left:""});var r=this.offset,o=this.getAxis();r=M(r)?r:(n=we(r))?Ge(n)["x"===o?"left":"top"]-Ge(e)["x"===o?"right":"bottom"]:0;var s=Ke(t,e,"x"===o?si(this.dir)+" "+this.align:this.align+" "+si(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-r:r):" "+("top"===this.dir?-r:r),null,this.flip,i).target,a=s.x,l=s.y;this.dir="x"===o?a:l,this.align="x"===o?l:a,ke(t,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},Qi={mixins:[Zi,Yi],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:window,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,hoverIdle:200,animation:["ui-animation-fade"],cls:"ui-open"},computed:{boundary:function(t,e){return it(t.boundary,e)},clsDrop:function(t){return t.clsDrop||"ui-"+this.$options.name},clsPos:function(){return this.clsDrop}},created:function(){this.tracker=new vi},connected:function(){xe(this.$el,this.clsDrop);var t=this.$props.toggle;this.toggle=t&&this.$create("toggle",it(t,this.$el),{target:this.$el,mode:this.mode}),this.updateAria(this.$el)},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){if(!t.defaultPrevented){var e=t.target.hash;e||t.preventDefault(),e&&Tt(e,this.$el)||this.hide(!1)}}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e,!1)}},{name:Zt,filter:function(){return b(this.mode,"hover")},handler:function(t){Bi(t)||(Xi&&Xi!==this&&Xi.toggle&&b(Xi.toggle.mode,"hover")&&!Tt(t.target,Xi.toggle.$el)&&!G({x:t.pageX,y:t.pageY},Ge(Xi.$el))&&Xi.hide(!1),t.preventDefault(),this.show(this.toggle))}},{name:"toggleshow",handler:function(t,e){e&&!b(e.target,this.$el)||(t.preventDefault(),this.show(e||this.toggle))}},{name:"togglehide "+Qt,handler:function(t,e){Bi(t)||e&&!b(e.target,this.$el)||(t.preventDefault(),this.toggle&&b(this.toggle.mode,"hover")&&this.hide())}},{name:"beforeshow",self:!0,handler:function(){this.clearTimers(),Ue.cancel(this.$el),this.position()}},{name:"show",self:!0,handler:function(){this.tracker.init(),this.toggle&&(xe(this.toggle.$el,this.cls),Z(this.toggle.$el,"aria-expanded","true")),function(){if(Ki)return;Ki=!0,kt(document,"click",function(t){var e,i=t.target,n=t.defaultPrevented;if(!n)for(;Xi&&Xi!==e&&!Tt(i,Xi.$el)&&(!Xi.toggle||!Tt(i,Xi.toggle.$el));)(e=Xi).hide(!1)})}()}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){var e=t.target;this.$el===e?(Xi=this.isActive()?null:Xi,this.toggle&&($e(this.toggle.$el,this.cls),Z(this.toggle.$el,"aria-expanded","false"),this.toggle.$el.blur(),be("a, button",this.toggle.$el).forEach(function(t){return t.blur()})),this.tracker.cancel()):Xi=null===Xi&&Tt(e,this.$el)&&this.isToggled()?this:Xi}}],update:{write:function(){this.isToggled()&&!Ue.inProgress(this.$el)&&this.position()},events:["resize"]},methods:{show:function(e,i){var n=this;void 0===i&&(i=!0);var r=function(){return!n.isToggled()&&n.toggleElement(n.$el,!0)},t=function(){if(n.toggle=e||n.toggle,n.clearTimers(),!n.isActive())if(i&&Xi&&Xi!==n&&Xi.isDelaying)n.showTimer=setTimeout(n.show,10);else{if(n.isParentOf(Xi)){if(!Xi.hideTimer)return;Xi.hide(!1)}else if(Xi&&!n.isChildOf(Xi)&&!n.isParentOf(Xi))for(var t;Xi&&Xi!==t&&!n.isChildOf(Xi);)(t=Xi).hide(!1);i&&n.delayShow?n.showTimer=setTimeout(r,n.delayShow):r(),Xi=n}};e&&this.toggle&&e.$el!==this.toggle.$el?(Ct(this.$el,"hide",t),this.hide(!1)):t()},hide:function(t){var e=this;void 0===t&&(t=!0);var i=function(){return e.toggleNow(e.$el,!1)};this.clearTimers(),this.isDelaying=this.tracker.movesTo(this.$el),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,this.hoverIdle):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return Xi===this},isChildOf:function(t){return t&&t!==this&&Tt(this.$el,t.$el)},isParentOf:function(t){return t&&t!==this&&Tt(t.$el,this.$el)},position:function(){Ie(this.$el,this.clsDrop+"-(stack|boundary)"),Oe(this.$el,{top:"",left:"",display:"block"}),ke(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var t=Ge(this.boundary),e=this.boundaryAlign?t:Ge(this.toggle.$el);if("justify"===this.align){var i="y"===this.getAxis()?"width":"height";Oe(this.$el,i,e[i])}else this.$el.offsetWidth>Math.max(t.right-e.left,e.right-t.left)&&xe(this.$el,this.clsDrop+"-stack");this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.toggle.$el,this.boundary),Oe(this.$el,"display","")}}};var tn={extends:Qi},en={mixins:[Vi],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:function(t,e){return we($t,e)},state:function(){return this.input.nextElementSibling},target:function(t,e){var i=t.target;return i&&(!0===i&&this.input.parentNode===e&&this.input.nextElementSibling||it(i,e))}},update:function(){var t=this.target,e=this.input;if(t){var i,n=It(t)?"value":"textContent",r=t[n],o=e.files&&e.files[0]?e.files[0].name:ft(e,"select")&&(i=be("option",e).filter(function(t){return t.selected})[0])?i.textContent:e.value;r!==o&&(t[n]=o)}},events:[{name:"focusin focusout mouseenter mouseleave",delegate:$t,handler:function(t){var e=t.type;t.current===this.input&&ke(this.state,"ui-"+(b(e,"focus")?"focus":"hover"),b(["focusin","mouseenter"],e))}},{name:"change",handler:function(){this.$emit()}}]},nn={update:{read:function(t){var e=ai(this.$el);if(!e||t.isInView===e)return!1;t.isInView=e},write:function(){this.$el.src=this.$el.src},events:["scroll","load","resize"]}},rn={props:{margin:String,firstColumn:Boolean},data:{margin:"ui-margin-small-top",firstColumn:"ui-first-column"},update:{read:function(t){var e=this.$el.children;if(!e.length||!xt(this.$el))return t.rows=[[]];t.rows=on(e),t.stacks=!t.rows.some(function(t){return 1<t.length})},write:function(t){var n=this;t.rows.forEach(function(t,i){return t.forEach(function(t,e){ke(t,n.margin,0!==i),ke(t,n.firstColumn,0===e)})})},events:["load","resize"]}};function on(t){for(var e=[[]],i=0;i<t.length;i++){var n=t[i],r=sn(n);if(r.height)for(var o=e.length-1;0<=o;o--){var s=e[o];if(!s[0]){s.push(n);break}var a=void 0;if(a=s[0].offsetParent===n.offsetParent?sn(s[0]):(r=sn(n,!0),sn(s[0],!0)),r.top>=a.bottom-1){e.push([n]);break}if(r.bottom>a.top){if(r.left<a.left&&!Rt){s.unshift(n);break}s.push(n);break}if(0===o){e.unshift([n]);break}}}return e}function sn(t,e){var i;void 0===e&&(e=!1);var n=t.offsetTop,r=t.offsetLeft,o=t.offsetHeight;return e&&(n=(i=ci(t))[0],r=i[1]),{top:n,left:r,height:o,bottom:n+o}}var an={extends:rn,mixins:[Vi],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"ui-grid-margin",clsStack:"ui-grid-stack",masonry:!1,parallax:0},computed:{length:function(t,e){return e.children.length},parallax:function(t){var e=t.parallax;return e&&this.length?Math.abs(e):""}},connected:function(){this.masonry&&xe(this.$el,"ui-flex-top ui-flex-wrap-top")},update:[{read:function(t){var r=t.rows;(this.masonry||this.parallax)&&(r=r.map(function(t){return q(t,"offsetLeft")}));var e,i,n,o,s,a=r.some(function(t){return t.some(Fe.inProgress)}),l=!1,h="";if(this.masonry&&this.length){var c=0;l=r.reduce(function(i,t,n){return i[n]=t.map(function(t,e){return 0===n?0:P(i[n-1][e])+(c-P(r[n-1][e]&&r[n-1][e].offsetHeight))}),c=t.reduce(function(t,e){return Math.max(t,e.offsetHeight)},0),i},[]),s=r,h=Math.max.apply(Math,s.reduce(function(i,t){return t.forEach(function(t,e){return i[e]=(i[e]||0)+t.offsetHeight}),i},[]))+(e=this.$el,i=this.margin,n=j(e.children),P((o=n.filter(function(t){return Te(t,i)})[0])?Oe(o,"marginTop"):Oe(n[0],"paddingLeft"))*(r.length-1))}return{rows:r,translates:l,height:!a&&h}},write:function(t){var e=t.stacks,i=t.height;ke(this.$el,this.clsStack,e),Oe(this.$el,"paddingBottom",this.parallax),!1!==i&&Oe(this.$el,"height",i)},events:["load","resize"]},{read:function(t){var e=t.height;return{scrolled:!!this.parallax&&li(this.$el,e?e-Qe(this.$el):0)*this.parallax}},write:function(t){var e=t.rows,n=t.scrolled,r=t.translates;(!1!==n||r)&&e.forEach(function(t,i){return t.forEach(function(t,e){return Oe(t,"transform",n||r?"translateY("+((r&&-r[i][e])+(n?e%2?n:n/8:0))+"px)":"")})})},events:["scroll","load","resize"]}]};var ln=Yt?{data:{selMinHeight:!1,forceHeight:!1},computed:{elements:function(t,e){var i=t.selMinHeight;return i?be(i,e):[e]}},update:[{read:function(){Oe(this.elements,"height","")},order:-5,events:["load","resize"]},{write:function(){var i=this;this.elements.forEach(function(t){var e=P(Oe(t,"minHeight"));e&&(i.forceHeight||Math.round(e)>=Qe(t))&&Oe(t,"height",e)})},order:5,events:["load","resize"]}]}:{},hn={mixins:[ln],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0,forceHeight:!0},computed:{elements:function(t,e){return be(t.target,e)}},update:{read:function(){return{rows:(this.row?on(this.elements):[this.elements]).map(cn)}},write:function(t){t.rows.forEach(function(t){var i=t.heights;return t.elements.forEach(function(t,e){return Oe(t,"minHeight",i[e])})})},events:["load","resize"]}};function cn(t){var e;if(t.length<2)return{heights:[""],elements:t};var i=un(t),n=i.heights,r=i.max,o=t.some(function(t){return t.style.minHeight}),s=t.some(function(t,e){return!t.style.minHeight&&n[e]<r});return o&&s&&(Oe(t,"minHeight",""),e=un(t),n=e.heights,r=e.max),{heights:n=t.map(function(t,e){return n[e]===r&&P(t.style.minHeight).toFixed(2)!==r.toFixed(2)?"":r}),elements:t}}function un(t){var e=t.map(function(t){return Ge(t).height-ii("height",t,"content-box")});return{heights:e,max:Math.max.apply(null,e)}}var dn={mixins:[ln],props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},update:{read:function(){var t="",e=ii("height",this.$el,"content-box");if(this.expand)t=Qe(window)-(fn(document.documentElement)-fn(this.$el))-e||"";else{if(t="calc(100vh",this.offsetTop){var i=Ge(this.$el).top;t+=i<Qe(window)/2?" - "+i+"px":""}!0===this.offsetBottom?t+=" - "+fn(this.$el.nextElementSibling)+"px":M(this.offsetBottom)?t+=" - "+this.offsetBottom+"vh":this.offsetBottom&&u(this.offsetBottom,"px")?t+=" - "+P(this.offsetBottom)+"px":N(this.offsetBottom)&&(t+=" - "+fn(it(this.offsetBottom,this.$el))+"px"),t+=(e?" - "+e+"px":"")+")"}return{minHeight:t}},write:function(t){var e=t.minHeight;Oe(this.$el,{minHeight:e}),this.minHeight&&P(Oe(this.$el,"minHeight"))<this.minHeight&&Oe(this.$el,"minHeight",this.minHeight)},events:["load","resize"]}};function fn(t){return t&&t.offsetHeight||0}var pn={},mn={args:"src",props:{id:String,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String},data:{ratio:1,id:!1,exclude:["ratio","src","icon"],class:""},connected:function(){var t,a=this;if(this.class+=" ui-svg",!this.icon&&b(this.src,"#")){var e=this.src.split("#");1<e.length&&(t=e,this.src=t[0],this.icon=t[1])}this.svg=this.getSvg().then(function(t){var e;if(!(e=N(t)?(a.icon&&b(t,"<symbol")&&(t=function(t,e){if(!vn[t]){var i;for(vn[t]={};i=gn.exec(t);)vn[t][i[3]]='<svg xmlns="http://www.w3.org/2000/svg"'+i[1]+"svg>";gn.lastIndex=0}return vn[t][e]}(t,a.icon)||t),we(t.substr(t.indexOf("<svg")))):t.cloneNode(!0)))return zt.reject("SVG not found.");var i=Z(e,"viewBox");for(var n in i&&(i=i.split(" "),a.width=a.$props.width||i[2],a.height=a.$props.height||i[3]),a.width*=a.ratio,a.height*=a.ratio,a.$options.props)a[n]&&!b(a.exclude,n)&&Z(e,n,a[n]);a.id||tt(e,"id"),a.width&&!a.height&&tt(e,"height"),a.height&&!a.width&&tt(e,"width");var r=a.$el;if(yt(r)||"CANVAS"===r.tagName){Z(r,{hidden:!0,id:null});var o=r.nextElementSibling;o&&e.isEqualNode(o)?e=o:le(r,e)}else{var s=r.lastElementChild;s&&e.isEqualNode(s)?e=s:se(r,e)}return a.svgEl=e},X)},disconnected:function(){var e=this;yt(this.$el)&&Z(this.$el,{hidden:null,id:this.id||null}),this.svg&&this.svg.then(function(t){return(!e._connected||t!==e.svgEl)&&ce(t)},X),this.svg=this.svgEl=null},methods:{getSvg:function(){var i=this;return this.src?(pn[this.src]||(pn[this.src]=new zt(function(e,t){v(i.src,"data:")?e(decodeURIComponent(i.src.split(",")[1])):Ft(i.src).then(function(t){return e(t.response)},function(){return t("SVG not found.")})})),pn[this.src]):zt.reject()}}},gn=/<symbol(.*?id=(['"])(.*?)\2[^]*?<\/)symbol>/g,vn={};var wn={},bn={spinner:'<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>',totop:'<svg width="18" height="10" viewBox="0 0 18 10" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9 "/></svg>',marker:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="4" width="1" height="11"/><rect x="4" y="9" width="11" height="1"/></svg>',"close-icon":'<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><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>',"close-large":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><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>',"navbar-toggle-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect y="9" width="20" height="2"/><rect y="3" width="20" height="2"/><rect y="15" width="20" height="2"/></svg>',"overlay-icon":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><rect x="19" y="0" width="1" height="40"/><rect x="0" y="19" width="40" height="1"/></svg>',"pagination-next":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',"pagination-previous":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',"search-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><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>',"search-large":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><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>',"search-navbar":'<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><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>',"slidenav-next":'<svg width="14px" height="24px" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1 "/></svg>',"slidenav-next-large":'<svg width="25px" height="40px" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5 "/></svg>',"slidenav-previous":'<svg width="14px" height="24px" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23 "/></svg>',"slidenav-previous-large":'<svg width="25px" height="40px" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547 "/></svg>'},yn={install:function(r){r.icon.add=function(t,e){var i,n=N(t)?((i={})[t]=e,i):t;R(n,function(t,e){bn[e]=t,delete wn[e]}),r._initialized&&ve(document.body,function(t){return R(r.getComponents(t),function(t){return t.$options.isIcon&&t.icon in n&&t.$reset()})})}},attrs:["icon","ratio"],mixins:[Vi,mn],args:"icon",props:["icon"],data:{exclude:["id","style","class","src","icon","ratio"]},isIcon:!0,connected:function(){xe(this.$el,"ui-icon")},methods:{getSvg:function(){var t,e=function(t){if(!bn[t])return null;wn[t]||(wn[t]=we(bn[t].trim()));return wn[t]}((t=this.icon,Rt?V(V(t,"left","right"),"previous","next"):t));return e?zt.resolve(e):zt.reject("Icon not found.")}}},xn={extends:yn,data:function(t){return{icon:m(t.constructor.options.name)}}},$n={extends:xn,connected:function(){xe(this.$el,"ui-slidenav")},computed:{icon:function(t,e){var i=t.icon;return Te(e,"ui-slidenav-large")?i+"-large":i}}},In={extends:xn,computed:{icon:function(t,e){var i=t.icon;return Te(e,"ui-search-icon")&&gt(e,".ui-search-large").length?"search-large":gt(e,".ui-search-navbar").length?"search-navbar":i}}},Sn={extends:xn,computed:{icon:function(){return"close-"+(Te(this.$el,"ui-close-large")?"large":"icon")}}},Tn={extends:xn,connected:function(){var e=this;this.svg.then(function(t){return 1!==e.ratio&&Oe(we("circle",t),"strokeWidth",1/e.ratio)},X)}};var kn={props:{dataSrc:String,dataSrcset:Boolean,sizes:String,width:Number,height:Number,offsetTop:String,offsetLeft:String,target:String},data:{dataSrc:"",dataSrcset:!1,sizes:!1,width:!1,height:!1,offsetTop:"50vh",offsetLeft:0,target:!1},computed:{cacheKey:function(t){var e=t.dataSrc;return this.$name+"."+e},width:function(t){var e=t.width,i=t.dataWidth;return e||i},height:function(t){var e=t.height,i=t.dataHeight;return e||i},sizes:function(t){var e=t.sizes,i=t.dataSizes;return e||i},isImg:function(t,e){return Bn(e)},target:function(t){var e=t.target;return[this.$el].concat(nt(e,this.$el))},offsetTop:function(t){return Nn(t.offsetTop,"height")},offsetLeft:function(t){return Nn(t.offsetLeft,"width")}},connected:function(){zn[this.cacheKey]?En(this.$el,zn[this.cacheKey]||this.dataSrc,this.dataSrcset,this.sizes):this.isImg&&this.width&&this.height&&En(this.$el,function(t,e,i){var n;if(i){for(var r;r=Cn.exec(i);)if(!r[1]||window.matchMedia(r[1]).matches){o=r[2],r=v(o,"calc")?o.substring(5,o.length-1).replace(An,function(t){return Nn(t)}).replace(/ /g,"").match(_n).reduce(function(t,e){return t+ +e},0):o;break}Cn.lastIndex=0,n=J.ratio({width:t,height:e},"width",Nn(r||"100vw")),t=n.width,e=n.height}var o;return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+e+'"></svg>'}(this.width,this.height,this.sizes))},update:{read:function(t){var e=this,i=t.update,n=t.image;if(i){if(!n&&this.target.some(function(t){return ai(t,e.offsetTop,e.offsetLeft,!0)}))return{image:Vt(this.dataSrc,this.dataSrcset,this.sizes).then(function(t){return En(e.$el,Dn(t),t.srcset,t.sizes),zn[e.cacheKey]=Dn(t),t},X)};!this.isImg&&n&&n.then(function(t){return t&&En(e.$el,Dn(t))})}},write:function(t){if(!t.update)return this.$emit(),t.update=!0},events:["scroll","load","resize"]}};function En(t,e,i,n){if(Bn(t))n&&(t.sizes=n),i&&(t.srcset=i),e&&(t.src=e);else if(e){!b(t.style.backgroundImage,e)&&(Oe(t,"backgroundImage","url("+e+")"),At(t,_t("load",!1)))}}var Cn=/\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;var An=/\d+(?:\w+|%)/g,_n=/[+-]?(\d+)/g;function Nn(t,e,i){return void 0===e&&(e="width"),void 0===i&&(i=window),M(t)?+t:u(t,"vw")?Mn(i,"width",t):u(t,"vh")?Mn(i,"height",t):u(t,"%")?Mn(i,e,t):P(t)}var On={height:Qe,width:ti};function Mn(t,e,i){return On[e](t)*P(i)/100}function Bn(t){return"IMG"===t.tagName}function Dn(t){return t.currentSrc||t.src}var zn,Pn="__test__";try{(zn=window.sessionStorage||{})[Pn]=1,delete zn[Pn]}catch(t){zn={}}var Hn={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var t=function(t){if(N(t))if("@"===t[0]){var e="breakpoint-"+t.substr(1);t=P(ze(e))}else if(isNaN(t))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"}(this.media);return!t||window.matchMedia(t).matches}}};var Ln,jn,Wn={mixins:[Vi,Hn],props:{fill:String},data:{fill:"",clsWrapper:"ui-leader-fill",clsHide:"ui-leader-hide",attrFill:"data-fill"},computed:{fill:function(t){return t.fill||ze("leader-fill-content")}},connected:function(){var t;t=de(this.$el,'<span class="'+this.clsWrapper+'">'),this.wrapper=t[0]},disconnected:function(){fe(this.wrapper.childNodes)},update:{read:function(t){var e=t.changed,i=t.width,n=i;return{width:i=Math.floor(this.$el.offsetWidth/2),changed:e||n!==i,hide:!this.matchMedia}},write:function(t){ke(this.wrapper,this.clsHide,t.hide),t.changed&&(t.changed=!1,Z(this.wrapper,this.attrFill,new Array(t.width).join(this.fill)))},events:["load","resize"]}},Fn={props:{container:Boolean},data:{container:!0},computed:{container:function(t){var e=t.container;return!0===e&&this.$container||e&&we(e)}}},Vn={mixins:[Vi,Fn,Yi],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"ui-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(t,e){return we(t.selPanel,e)},transitionElement:function(){return this.panel},bgClose:function(t){return t.bgClose&&this.panel}},beforeDisconnect:function(){this.isToggled()&&this.toggleNow(this.$el,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(t){t.defaultPrevented||(t.preventDefault(),this.toggle())}},{name:"beforeshow",self:!0,handler:function(t){var e=Ln&&Ln!==this&&Ln;if(Ln=this,e){if(!this.stack)return e.hide().then(this.show),void t.preventDefault();this.prev=e}!function(){if(jn)return;jn=[kt(document,"click",function(t){var e=t.target,i=t.defaultPrevented;!Ln||!Ln.bgClose||i||Ln.overlay&&!Tt(e,Ln.$el)||Tt(e,Ln.panel)||Ln.hide()}),kt(document,"keydown",function(t){27===t.keyCode&&Ln&&Ln.escClose&&(t.preventDefault(),Ln.hide())})]}()}},{name:"beforehide",self:!0,handler:function(){(Ln=Ln&&Ln!==this&&Ln||this.prev)||(jn&&jn.forEach(function(t){return t()}),jn=null)}},{name:"show",self:!0,handler:function(){Te(document.documentElement,this.clsPage)||(this.scrollbarWidth=ti(window)-ti(document),Oe(document.body,"overflowY",this.scrollbarWidth&&this.overlay?"scroll":"")),xe(document.documentElement,this.clsPage)}},{name:"hidden",self:!0,handler:function(){for(var t,e=this.prev;e;){if(e.clsPage===this.clsPage){t=!0;break}e=e.prev}t||$e(document.documentElement,this.clsPage),!this.prev&&Oe(document.body,"overflowY","")}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){return this.isToggled()?zt.resolve():(this.container&&this.$el.parentNode!==this.container&&(se(this.container,this.$el),this._callConnected()),this.toggleElement(this.$el,!0,Yn(this)))},hide:function(){return this.isToggled()?this.toggleElement(this.$el,!1,Yn(this)):zt.resolve()},getActive:function(){return Ln}}};function Yn(t){var n=t.transitionElement,r=t._toggle;return function(e,i){return new zt(function(t){return requestAnimationFrame(function(){r(e,i),F(Oe(n,"transitionDuration"))?Ct(n,"transitionend",t,!1,function(t){return t.target===n}):t()})})}}var Rn={install:function(a){a.modal.dialog=function(t,e){var n=a.modal(' <div class="ui-modal"> <div class="ui-modal-dialog">'+t+"</div> </div> ",e);return n.show(),kt(n.$el,"hidden",function(t){var e=t.target,i=t.currentTarget;e===i&&n.$destroy(!0)}),n},a.modal.alert=function(e,i){return i=Y({bgClose:!1,escClose:!1,labels:a.modal.labels},i),new zt(function(t){return kt(a.modal.dialog(' <div class="ui-modal-body">'+(N(e)?e:oe(e))+'</div> <div class="ui-modal-footer ui-text-right"> <button class="ui-button ui-button-primary ui-modal-close" autofocus>'+i.labels.ok+"</button> </div> ",i).$el,"hide",t)})},a.modal.confirm=function(r,o){return o=Y({bgClose:!1,escClose:!0,labels:a.modal.labels},o),new zt(function(e,t){var i=a.modal.dialog(' <form> <div class="ui-modal-body">'+(N(r)?r:oe(r))+'</div> <div class="ui-modal-footer ui-text-right"> <button class="ui-button ui-button-default ui-modal-close" type="button">'+o.labels.cancel+'</button> <button class="ui-button ui-button-primary" autofocus>'+o.labels.ok+"</button> </div> </form> ",o),n=!1;kt(i.$el,"submit","form",function(t){t.preventDefault(),e(),n=!0,i.hide()}),kt(i.$el,"hide",function(){n||t()})})},a.modal.prompt=function(t,o,s){return s=Y({bgClose:!1,escClose:!0,labels:a.modal.labels},s),new zt(function(e){var i=a.modal.dialog(' <form class="ui-form-stacked"> <div class="ui-modal-body"> <label>'+(N(t)?t:oe(t))+'</label> <input class="ui-input" autofocus> </div> <div class="ui-modal-footer ui-text-right"> <button class="ui-button ui-button-default ui-modal-close" type="button">'+s.labels.cancel+'</button> <button class="ui-button ui-button-primary">'+s.labels.ok+"</button> </div> </form> ",s),n=we("input",i.$el);n.value=o;var r=!1;kt(i.$el,"submit","form",function(t){t.preventDefault(),e(n.value),r=!0,i.hide()}),kt(i.$el,"hide",function(){r||e(null)})})},a.modal.labels={ok:"Ok",cancel:"Cancel"}},mixins:[Vn],data:{clsPage:"ui-modal-page",selPanel:".ui-modal-dialog",selClose:".ui-modal-close, .ui-modal-close-default, .ui-modal-close-outside, .ui-modal-close-full"},events:[{name:"show",self:!0,handler:function(){Te(this.panel,"ui-margin-auto-vertical")?xe(this.$el,"ui-flex"):Oe(this.$el,"display","block"),Qe(this.$el)}},{name:"hidden",self:!0,handler:function(){Oe(this.$el,"display",""),$e(this.$el,"ui-flex")}}]};var qn,Un={extends:Ri,data:{targets:"> .ui-parent",toggle:"> a",content:"> ul"}},Xn={mixins:[Vi,ln],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:Boolean,duration:Number},data:{dropdown:".ui-navbar-nav > li",align:Rt?"right":"left",clsDrop:"ui-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200,forceHeight:!0,selMinHeight:".ui-navbar-nav > li > a, .ui-navbar-item, .ui-navbar-toggle"},computed:{boundary:function(t,e){var i=t.boundary,n=t.boundaryAlign;return!0===i||n?e:i},dropbarAnchor:function(t,e){return it(t.dropbarAnchor,e)},pos:function(t){return"bottom-"+t.align},dropdowns:function(t,e){return be(t.dropdown+" ."+t.clsDrop,e)}},beforeConnect:function(){var t=this.$props.dropbar;this.dropbar=t&&(it(t,this.$el)||we("+ .ui-navbar-dropbar",this.$el)||we("<div></div>")),this.dropbar&&(xe(this.dropbar,"ui-navbar-dropbar"),"slide"===this.dropbarMode&&xe(this.dropbar,"ui-navbar-dropbar-slide"))},disconnected:function(){this.dropbar&&ce(this.dropbar)},update:function(){var e=this;this.$create("drop",this.dropdowns.filter(function(t){return!e.getDropdown(t)}),Y({},this.$props,{boundary:this.boundary,pos:this.pos,offset:this.dropbar||this.offset}))},events:[{name:"mouseover",delegate:function(){return this.dropdown},handler:function(t){var e=t.current,i=this.getActive();i&&i.toggle&&!Tt(i.toggle.$el,e)&&!i.tracker.movesTo(i.$el)&&i.hide(!1)}},{name:"mouseleave",el:function(){return this.dropbar},handler:function(){var t=this.getActive();t&&!ft(this.dropbar,":hover")&&t.hide()}},{name:"beforeshow",capture:!0,filter:function(){return this.dropbar},handler:function(){this.dropbar.parentNode||le(this.dropbarAnchor||this.$el,this.dropbar)}},{name:"show",capture:!0,filter:function(){return this.dropbar},handler:function(t,e){var i=e.$el,n=e.dir;this.clsDrop&&xe(i,this.clsDrop+"-dropbar"),"bottom"===n&&this.transitionTo(i.offsetHeight+P(Oe(i,"marginTop"))+P(Oe(i,"marginBottom")),i)}},{name:"beforehide",filter:function(){return this.dropbar},handler:function(t,e){var i=e.$el,n=this.getActive();ft(this.dropbar,":hover")&&n&&n.$el===i&&t.preventDefault()}},{name:"hide",filter:function(){return this.dropbar},handler:function(t,e){var i=e.$el,n=this.getActive();(!n||n&&n.$el===i)&&this.transitionTo(0)}}],methods:{getActive:function(){var t=this.dropdowns.map(this.getDropdown).filter(function(t){return t&&t.isActive()})[0];return t&&b(t.mode,"hover")&&Tt(t.toggle.$el,this.$el)&&t},transitionTo:function(t,e){var i=this,n=this.dropbar,r=xt(n)?Qe(n):0;return Oe(e=r<t&&e,"clip","rect(0,"+e.offsetWidth+"px,"+r+"px,0)"),Qe(n,r),Fe.cancel([e,n]),zt.all([Fe.start(n,{height:t},this.duration),Fe.start(e,{clip:"rect(0,"+e.offsetWidth+"px,"+t+"px,0)"},this.duration)]).catch(X).then(function(){Oe(e,{clip:""}),i.$update(n)})},getDropdown:function(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")}}},Kn={mixins:[Vn],args:"mode",props:{content:String,mode:String,flip:Boolean,overlay:Boolean},data:{content:".ui-offcanvas-content",mode:"slide",flip:!1,overlay:!1,clsPage:"ui-offcanvas-page",clsContainer:"ui-offcanvas-container",selPanel:".ui-offcanvas-bar",clsFlip:"ui-offcanvas-flip",clsContent:"ui-offcanvas-content",clsContentAnimation:"ui-offcanvas-content-animation",clsSidebarAnimation:"ui-offcanvas-bar-animation",clsMode:"ui-offcanvas",clsOverlay:"ui-offcanvas-overlay",selClose:".ui-offcanvas-close"},computed:{content:function(t){return we(t.content)||document.body},clsFlip:function(t){var e=t.flip,i=t.clsFlip;return e?i:""},clsOverlay:function(t){var e=t.overlay,i=t.clsOverlay;return e?i:""},clsMode:function(t){var e=t.mode;return t.clsMode+"-"+e},clsSidebarAnimation:function(t){var e=t.mode,i=t.clsSidebarAnimation;return"none"===e||"reveal"===e?"":i},clsContentAnimation:function(t){var e=t.mode,i=t.clsContentAnimation;return"push"!==e&&"reveal"!==e?"":i},transitionElement:function(t){return"reveal"===t.mode?this.panel.parentNode:this.panel}},update:{write:function(){this.getActive()===this&&((this.overlay||this.clsContentAnimation)&&ti(this.content,ti(window)-this.scrollbarWidth),this.overlay&&(Qe(this.content,Qe(window)),qn&&(this.content.scrollTop=qn.y)))},events:["resize"]},events:[{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){var e=t.current;e.hash&&we(e.hash,this.content)&&(qn=null,this.hide())}},{name:"beforescroll",filter:function(){return this.overlay},handler:function(t,e,i){e&&i&&this.isToggled()&&we(i,this.content)&&(Ct(this.$el,"hidden",function(){return e.scrollTo(i)}),t.preventDefault())}},{name:"show",self:!0,handler:function(){qn=qn||{x:window.pageXOffset,y:window.pageYOffset},"reveal"!==this.mode||Te(this.panel,this.clsMode)||(ue(this.panel,"<div>"),xe(this.panel.parentNode,this.clsMode)),Oe(document.documentElement,"overflowY",(!this.clsContentAnimation||this.flip)&&this.scrollbarWidth&&this.overlay?"scroll":""),xe(document.body,this.clsContainer,this.clsFlip,this.clsOverlay),Qe(document.body),xe(this.content,this.clsContentAnimation),xe(this.panel,this.clsSidebarAnimation,"reveal"!==this.mode?this.clsMode:""),xe(this.$el,this.clsOverlay),Oe(this.$el,"display","block"),Qe(this.$el)}},{name:"hide",self:!0,handler:function(){$e(this.content,this.clsContentAnimation);var t=this.getActive();("none"===this.mode||t&&t!==this&&t!==this.prev)&&At(this.panel,"transitionend")}},{name:"hidden",self:!0,handler:function(){if("reveal"===this.mode&&fe(this.panel),this.overlay){if(!qn){var t=this.content,e=t.scrollLeft,i=t.scrollTop;qn={x:e,y:i}}}else qn={x:window.pageXOffset,y:window.pageYOffset};$e(this.panel,this.clsSidebarAnimation,this.clsMode),$e(this.$el,this.clsOverlay),Oe(this.$el,"display",""),$e(document.body,this.clsContainer,this.clsFlip,this.clsOverlay),document.body.scrollTop=qn.y,Oe(document.documentElement,"overflowY",""),ti(this.content,""),Qe(this.content,""),window.scroll(qn.x,qn.y),qn=null}},{name:"swipeLeft swipeRight",handler:function(t){this.isToggled()&&Bi(t)&&("swipeLeft"===t.type&&!this.flip||"swipeRight"===t.type&&this.flip)&&this.hide()}}]},Gn={mixins:[Vi],props:{selContainer:String,selContent:String},data:{selContainer:".ui-modal",selContent:".ui-modal-dialog"},computed:{container:function(t,e){return mt(e,t.selContainer)},content:function(t,e){return mt(e,t.selContent)}},connected:function(){Oe(this.$el,"minHeight",150)},update:{read:function(){return!(!this.content||!this.container)&&{current:P(Oe(this.$el,"maxHeight")),max:Math.max(150,Qe(this.container)-(Ge(this.content).height-Qe(this.$el)))}},write:function(t){var e=t.current,i=t.max;Oe(this.$el,"maxHeight",i),Math.round(e)!==Math.round(i)&&At(this.$el,"resize")},events:["load","resize"]}},Jn={props:["width","height"],connected:function(){xe(this.$el,"ui-responsive-width")},update:{read:function(){return!!(xt(this.$el)&&this.width&&this.height)&&{width:ti(this.$el.parentNode),height:this.height}},write:function(t){Qe(this.$el,J.contain({height:this.height,width:this.width},t).height)},events:["load","resize"]}},Zn={props:{duration:Number,offset:Number},data:{duration:1e3,offset:0},methods:{scrollTo:function(i){var n=this;i=i&&we(i)||document.body;var t=Qe(document),e=Qe(window),r=Ge(i).top-this.offset;if(t<r+e&&(r=t-e),At(this.$el,"beforescroll",[this,i])){var o=Date.now(),s=window.pageYOffset,a=function(){var t,e=s+(r-s)*(t=U((Date.now()-o)/n.duration),.5*(1-Math.cos(Math.PI*t)));hi(window,e),e!==r?requestAnimationFrame(a):At(n.$el,"scrolled",[n,i])};a()}}},events:{click:function(t){t.defaultPrevented||(t.preventDefault(),this.scrollTo(wt(decodeURIComponent(this.$el.hash)).substr(1)))}}};var Qn={args:"cls",props:{cls:"list",target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},data:function(){return{cls:[],target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"ui-scrollspy-inview"}},computed:{elements:function(t,e){var i=t.target;return i?be(i,e):[e]}},update:[{write:function(){this.hidden&&Oe(St(this.elements,":not(."+this.inViewClass+")"),"visibility","hidden")}},{read:function(r){var o=this;r.update&&this.elements.forEach(function(t,e){var i=r[e];if(!i||i.el!==t){var n=et(t,"ui-scrollspy-class");i={el:t,toggles:n&&n.split(",")||o.cls}}i.show=ai(t,o.offsetTop,o.offsetLeft),r[e]=i})},write:function(o){var s=this;if(!o.update)return this.$emit(),o.update=!0;this.elements.forEach(function(t,e){var i=o[e],n=i.toggles[e]||i.toggles[0];if(!i.show||i.inview||i.queued){if(!i.show&&(i.inview||i.queued)&&s.repeat){if(i.abort&&i.abort(),!i.inview)return;Oe(t,"visibility",s.hidden?"hidden":""),$e(t,s.inViewClass),ke(t,n),At(t,"outview"),s.$update(t),i.inview=!1}}else{var r=function(){Oe(t,"visibility",""),xe(t,s.inViewClass),ke(t,n),At(t,"inview"),s.$update(t),i.inview=!0,i.abort&&i.abort()};s.delay?(i.queued=!0,o.promise=(o.promise||zt.resolve()).then(function(){return!i.inview&&new zt(function(t){var e=setTimeout(function(){r(),t()},o.promise||1===s.elements.length?s.delay:0);i.abort=function(){clearTimeout(e),t(),i.queued=!1}})})):r()}})},events:["scroll","load","resize"]}]},tr={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"ui-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:function(t,e){return be('a[href^="#"]',e).filter(function(t){return t.hash})},elements:function(){return this.closest?mt(this.links,this.closest):this.links},targets:function(){return be(this.links.map(function(t){return t.hash}).join(","))}},update:[{read:function(){this.scroll&&this.$create("scroll",this.links,{offset:this.offset||0})}},{read:function(o){var s=this,a=window.pageYOffset+this.offset+1,l=Qe(document)-Qe(window)+this.offset;o.active=!1,this.targets.every(function(t,e){var i=Ge(t).top,n=e+1===s.targets.length;if(!s.overflow&&(0===e&&a<i||n&&i+t.offsetTop<a))return!1;if(!n&&Ge(s.targets[e+1]).top<=a)return!0;if(l<=a)for(var r=s.targets.length-1;e<r;r--)if(ai(s.targets[r])){t=s.targets[r];break}return!(o.active=we(St(s.links,'[href="#'+t.id+'"]')))})},write:function(t){var e=t.active;this.links.forEach(function(t){return t.blur()}),$e(this.elements,this.cls),e&&At(this.$el,"active",[e,xe(this.closest?mt(e,this.closest):e,this.cls)])},events:["scroll","load","resize"]}]},er={mixins:[Vi,Hn],props:{top:null,bottom:Boolean,offset:Number,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,widthElement:Boolean,showOnUp:Boolean,targetOffset:Number},data:{top:0,bottom:!1,offset:0,animation:"",clsActive:"ui-active",clsInactive:"",clsFixed:"ui-sticky-fixed",clsBelow:"ui-sticky-below",selTarget:"",widthElement:!1,showOnUp:!1,targetOffset:!1},computed:{selTarget:function(t,e){var i=t.selTarget;return i&&we(i,e)||e},widthElement:function(t,e){return it(t.widthElement,e)||this.placeholder}},connected:function(){this.placeholder=we("+ .ui-sticky-placeholder",this.$el)||we('<div class="ui-sticky-placeholder"></div>')},disconnected:function(){this.isActive&&(this.isActive=void 0,this.hide(),$e(this.selTarget,this.clsInactive)),ce(this.placeholder),this.placeholder=null,this.widthElement=null},events:[{name:"active",self:!0,handler:function(){Se(this.selTarget,this.clsInactive,this.clsActive)}},{name:"inactive",self:!0,handler:function(){Se(this.selTarget,this.clsActive,this.clsInactive)}},{name:"load hashchange popstate",el:window,handler:function(){var n=this;if(!1!==this.targetOffset&&location.hash&&0<window.pageYOffset){var r=we(location.hash);r&&fi.read(function(){var t=Ge(r).top,e=Ge(n.$el).top,i=n.$el.offsetHeight;n.isActive&&t<=e+i&&e<=t+r.offsetHeight&&hi(window,t-i-(M(n.targetOffset)?n.targetOffset:0)-n.offset)})}}}],update:[{read:function(t,e){var i=t.height,n=e.type;i=this.isActive&&"resize"!==n?i:this.$el.offsetHeight,this.topOffset=Ge(this.isActive?this.placeholder:this.$el).top,this.bottomOffset=this.topOffset+i;var r=ir("bottom",this);return this.top=Math.max(P(ir("top",this)),this.topOffset)-this.offset,this.bottom=r&&r-i,this.inactive=!this.matchMedia,{height:i,margins:Oe(this.$el,["marginTop","marginBottom","marginLeft","marginRight"])}},write:function(t){var e=t.height,i=t.margins,n=this.placeholder;Oe(n,Y({height:e},i)),Tt(n,document)||(le(this.$el,n),Z(n,"hidden","")),B(this.isActive)&&this.hide()},events:["load","resize"]},{read:function(t,e){var i=e.scrollY;return void 0===i&&(i=window.pageYOffset),this.width=(xt(this.widthElement)?this.widthElement:this.$el).offsetWidth,{scroll:this.scroll=i,visible:xt(this.$el)}},write:function(t,e){var i=this,n=t.visible,r=t.scroll;void 0===e&&(e={});var o=e.dir;if(!(r<0||!n||this.disabled||this.showOnUp&&!o))if(this.inactive||r<this.top||this.showOnUp&&(r<=this.top||"down"===o||"up"===o&&!this.isActive&&r<=this.bottomOffset)){if(!this.isActive)return;this.isActive=!1,this.animation&&r>this.topOffset?(Ue.cancel(this.$el),Ue.out(this.$el,this.animation).then(function(){return i.hide()},X)):this.hide()}else this.isActive?this.update():this.animation?(Ue.cancel(this.$el),this.show(),Ue.in(this.$el,this.animation).catch(X)):this.show()},events:["load","resize","scroll"]}],methods:{show:function(){this.isActive=!0,this.update(),Z(this.placeholder,"hidden",null)},hide:function(){this.isActive&&!Te(this.selTarget,this.clsActive)||At(this.$el,"inactive"),$e(this.$el,this.clsFixed,this.clsBelow),Oe(this.$el,{position:"",top:"",width:""}),Z(this.placeholder,"hidden","")},update:function(){var t=0!==this.top||this.scroll>this.top,e=Math.max(0,this.offset);this.bottom&&this.scroll>this.bottom-this.offset&&(e=this.bottom-this.scroll),Oe(this.$el,{position:"fixed",top:e+"px",width:this.width}),Te(this.selTarget,this.clsActive)?t||At(this.$el,"inactive"):t&&At(this.$el,"active"),ke(this.$el,this.clsBelow,this.scroll>this.bottomOffset),xe(this.$el,this.clsFixed)}}};function ir(t,e){var i=e.$props,n=e.$el,r=e[t+"Offset"],o=i[t];if(o){if(M(o))return r+P(o);if(N(o)&&o.match(/^-?\d+vh$/))return Qe(window)*P(o)/100;var s=!0===o?n.parentNode:it(o,n);return s?Ge(s).top+s.offsetHeight:void 0}}var nr,rr={mixins:[Yi],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},data:{connect:"~.ui-switcher",toggle:"> *",active:0,swiping:!0,cls:"ui-active",clsContainer:"ui-switcher",attrItem:"ui-switcher-item",queued:!0},computed:{connects:function(t,e){return nt(t.connect,e)},toggles:function(t,e){return be(t.toggle,e)}},events:[{name:"click",delegate:function(){return this.toggle+":not(.ui-disabled)"},handler:function(t){t.preventDefault(),this.show(t.current)}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.show(et(t.current,this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(t){Bi(t)&&(t.preventDefault(),window.getSelection().toString()||this.show("swipeLeft"===t.type?"next":"previous"))}}],update:function(){var e=this;this.connects.forEach(function(t){return e.updateAria(t.children)}),this.show(St(this.toggles,"."+this.cls)[0]||this.toggles[this.active]||this.toggles[0])},methods:{index:function(){return!!this.connects.length&&ie(St(this.connects[0].children,"."+this.cls)[0])},show:function(t){for(var e,i=this,n=this.toggles.length,r=this.index(),o=0<=r,s="previous"===t?-1:1,a=ne(t,this.toggles,r),l=0;l<n;l++,a=(a+s+n)%n)if(!ft(i.toggles[a],".ui-disabled, [disabled]")){e=i.toggles[a];break}!e||0<=r&&Te(e,this.cls)||r===a||($e(this.toggles,this.cls),Z(this.toggles,"aria-expanded",!1),xe(e,this.cls),Z(e,"aria-expanded",!0),this.connects.forEach(function(t){o?i.toggleElement([t.children[r],t.children[a]]):i.toggleNow(t.children[a])}))}}},or={mixins:[Vi],extends:rr,props:{media:Boolean},data:{media:960,attrItem:"ui-tab-item"},connected:function(){var t=Te(this.$el,"ui-tab-left")?"ui-tab-left":!!Te(this.$el,"ui-tab-right")&&"ui-tab-right";t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}},sr={mixins:[Hn,Yi],args:"target",props:{href:String,target:null,mode:"list"},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target:function(t,e){var i=t.href,n=t.target;return(n=nt(n||i,e)).length&&n||[e]}},events:[{name:Zt+" "+Qt,filter:function(){return b(this.mode,"hover")},handler:function(t){Bi(t)||this.toggle("toggle"+(t.type===Zt?"show":"hide"))}},{name:"click",filter:function(){return b(this.mode,"click")||Xt&&b(this.mode,"hover")},handler:function(t){var e;(Bi(t)||b(this.mode,"click"))&&((mt(t.target,'a[href="#"], button')||(e=mt(t.target,"a[href]"))&&(this.cls||!xt(this.target)||e.hash&&ft(this.target,e.hash)))&&Ct(document,"click",function(t){return t.preventDefault()}),this.toggle())}}],update:{write:function(){if(b(this.mode,"media")&&this.media){var t=this.isToggled(this.target);(this.matchMedia?!t:t)&&this.toggle()}},events:["load","resize"]},methods:{toggle:function(t){At(this.target,t||"toggle",[this])&&this.toggleElement(this.target)}}};Fi.version="3.0.0-rc.19",(nr=Fi).component("accordion",Ri),nr.component("alert",qi),nr.component("cover",Ji),nr.component("drop",Qi),nr.component("dropdown",tn),nr.component("formCustom",en),nr.component("gif",nn),nr.component("grid",an),nr.component("heightMatch",hn),nr.component("heightViewport",dn),nr.component("icon",yn),nr.component("img",kn),nr.component("leader",Wn),nr.component("margin",rn),nr.component("modal",Rn),nr.component("nav",Un),nr.component("navbar",Xn),nr.component("offcanvas",Kn),nr.component("overflowAuto",Gn),nr.component("responsive",Jn),nr.component("scroll",Zn),nr.component("scrollspy",Qn),nr.component("scrollspyNav",tr),nr.component("sticky",er),nr.component("svg",mn),nr.component("switcher",rr),nr.component("tab",or),nr.component("toggle",sr),nr.component("video",Gi),nr.component("close",Sn),nr.component("marker",xn),nr.component("navbarToggleIcon",xn),nr.component("overlayIcon",xn),nr.component("paginationNext",xn),nr.component("paginationPrevious",xn),nr.component("searchIcon",In),nr.component("slidenavNext",$n),nr.component("slidenavPrevious",$n),nr.component("spinner",Tn),nr.component("totop",xn),nr.use(Ui);var ar={mixins:[Vi],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".ui-countdown-%unit%"},computed:{date:function(t){var e=t.date;return Date.parse(e)},days:function(t,e){return we(t.clsWrapper.replace("%unit%","days"),e)},hours:function(t,e){return we(t.clsWrapper.replace("%unit%","hours"),e)},minutes:function(t,e){return we(t.clsWrapper.replace("%unit%","minutes"),e)},seconds:function(t,e){return we(t.clsWrapper.replace("%unit%","seconds"),e)},units:function(){var e=this;return["days","hours","minutes","seconds"].filter(function(t){return e[t]})}},connected:function(){this.start()},disconnected:function(){var e=this;this.stop(),this.units.forEach(function(t){return re(e[t])})},events:[{name:"visibilitychange",el:document,handler:function(){document.hidden?this.stop():this.start()}}],update:{write:function(){var t,e,n=this,r=(t=this.date,{total:e=t-Date.now(),seconds:e/1e3%60,minutes:e/1e3/60%60,hours:e/1e3/60/60%24,days:e/1e3/60/60/24});r.total<=0&&(this.stop(),r.days=r.hours=r.minutes=r.seconds=0),this.units.forEach(function(t){var e=String(Math.floor(r[t]));e=e.length<2?"0"+e:e;var i=n[t];i.textContent!==e&&((e=e.split("")).length!==i.children.length&&oe(i,e.map(function(){return"<span></span>"}).join("")),e.forEach(function(t,e){return i.children[e].textContent=t}))})}},methods:{start:function(){var t=this;this.stop(),this.date&&this.units.length&&(this.$emit(),this.timer=setInterval(function(){return t.$emit()},1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}};var lr,hr="ui-animation-target",cr={props:{animation:Number},data:{animation:150},computed:{target:function(){return this.$el}},methods:{animate:function(t){var n=this;lr||(lr=se(document.head,"<style>").sheet).insertRule("."+hr+" > * {\n                    margin-top: 0 !important;\n                    transform: none !important;\n                }",0);var r=j(this.target.children),o=r.map(function(t){return ur(t,!0)}),e=Qe(this.target),i=window.pageYOffset;t(),Fe.cancel(this.target),r.forEach(Fe.cancel),dr(this.target),this.$update(this.target),fi.flush();var s=Qe(this.target),a=(r=r.concat(j(this.target.children).filter(function(t){return!b(r,t)}))).map(function(t,e){return!!(t.parentNode&&e in o)&&(o[e]?xt(t)?fr(t):{opacity:0}:{opacity:xt(t)?1:0})});return o=a.map(function(t,e){var i=r[e].parentNode===n.target&&(o[e]||ur(r[e]));if(i)if(t){if(!("opacity"in t)){i.opacity%1?t.opacity=1:delete i.opacity}}else delete i.opacity;return i}),xe(this.target,hr),r.forEach(function(t,e){return o[e]&&Oe(t,o[e])}),Oe(this.target,"height",e),hi(window,i),zt.all(r.map(function(t,e){return o[e]&&a[e]?Fe.start(t,a[e],n.animation,"ease"):zt.resolve()}).concat(Fe.start(this.target,{height:s},this.animation,"ease"))).then(function(){r.forEach(function(t,e){return Oe(t,{display:0===a[e].opacity?"none":"",zIndex:""})}),dr(n.target),n.$update(n.target),fi.flush()},X)}}};function ur(t,e){var i=Oe(t,"zIndex");return!!xt(t)&&Y({display:"",opacity:e?Oe(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===i?ie(t):i},fr(t))}function dr(t){Oe(t.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",width:""}),$e(t,hr),Oe(t,"height","")}function fr(t){var e=t.getBoundingClientRect(),i=e.height,n=e.width,r=Ze(t),o=r.top,s=r.left;return{top:o+=P(Oe(t,"marginTop")),left:s,height:i,width:n}}var pr={mixins:[cr],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"ui-filter-control",cls:"ui-active",animation:250},computed:{toggles:function(t,e){t.attrItem;return be("["+this.attrItem+"],[data-"+this.attrItem+"]",e)},target:function(t,e){return we(t.target,e)}},events:[{name:"click",delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.apply(t.current)}}],connected:function(){var e=this;if(!1!==this.selActive){var i=be(this.selActive,this.$el);this.toggles.forEach(function(t){return ke(t,e.cls,b(i,t))})}},update:function(t){var e=t.toggles,i=t.children;vr(e,this.toggles,!1)&&vr(i,this.target.children,!1)||(t.toggles=this.toggles,t.children=this.target.children,this.setState(this.getState(),!1))},methods:{apply:function(t){this.setState(gr(t,this.attrItem,this.getState()))},getState:function(){var i=this;return this.toggles.filter(function(t){return Te(t,i.cls)}).reduce(function(t,e){return gr(e,i.attrItem,t)},{filter:{"":""},sort:[]})},setState:function(h,t){var c=this;void 0===t&&(t=!0),h=Y({filter:{"":""},sort:[]},h),At(this.$el,"beforeFilter",[this,h]);var u=j(this.target.children);this.toggles.forEach(function(t){return ke(t,c.cls,function(t,e,i){var n=i.filter,r=i.sort,o=r[0],s=r[1],a=mr(t,e),l=a.filter,h=a.group;void 0===h&&(h="");var c=a.sort,u=a.order;void 0===u&&(u="asc");return Boolean((l||B(c))&&h in n&&(l===n[h]||B(l)&&!n[h])||o&&c&&o===c&&s===u)}(t,c.attrItem,h))});var e=function(){var t,e,i=(t=h.filter,e="",R(t,function(t){return e+=t||""}),e);u.forEach(function(t){return Oe(t,"display",i&&!ft(t,i)?"none":"")});var n,r,o=h.sort,s=o[0],a=o[1];if(s){var l=(n=s,r=a,j(u).sort(function(t,e){return et(t,n).localeCompare(et(e,n),void 0,{numeric:!0})*("asc"===r||-1)}));vr(l,u)||l.forEach(function(t){return se(c.target,t)})}};t?this.animate(e).then(function(){return At(c.$el,"afterFilter",[c])}):(e(),At(this.$el,"afterFilter",[this]))}}};function mr(t,e){return Ii(et(t,e),["filter"])}function gr(t,s,a){return j(t).forEach(function(t){var e=mr(t,s),i=e.filter,n=e.group,r=e.sort,o=e.order;void 0===o&&(o="asc"),(i||B(r))&&(n?(delete a.filter[""],a.filter[n]=i):a.filter={"":i}),B(r)||(a.sort=[r,o])}),a}function vr(t,i,n){return void 0===n&&(n=!0),t=j(t),i=j(i),t.length===i.length&&t.every(function(t,e){return n?t===i[e]:~i.indexOf(t)})}var wr={slide:{show:function(t){return[{transform:yr(-100*t)},{transform:yr()}]},percent:function(t){return br(t)},translate:function(t,e){return[{transform:yr(-100*e*t)},{transform:yr(100*e*(1-t))}]}}};function br(t){return Math.abs(Oe(t,"transform").split(",")[4]/t.offsetWidth)||0}function yr(t,e){return void 0===t&&(t=0),void 0===e&&(e="%"),"translateX("+t+(t?e:"")+")"}function xr(t){return"scale3d("+t+", "+t+", 1)"}var $r=Y({},wr,{fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(t){return 1-Oe(t,"opacity")},translate:function(t){return[{opacity:1-t},{opacity:t}]}},scale:{show:function(){return[{opacity:0,transform:xr(.8)},{opacity:1,transform:xr(1)}]},percent:function(t){return 1-Oe(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:xr(1-.2*t)},{opacity:t,transform:xr(.8+.2*t)}]}}});function Ir(t,e,i){At(t,_t(e,!1,!1,i))}var Sr={mixins:[{props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected:function(){this.startAutoplay()},disconnected:function(){this.stopAutoplay()},events:[{name:"visibilitychange",el:document,handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:Kt,handler:"stopAutoplay"},{name:"mouseenter",filter:function(){return this.autoplay},handler:function(){this.isHovering=!0}},{name:"mouseleave",filter:function(){return this.autoplay},handler:function(){this.isHovering=!1}}],methods:{startAutoplay:function(){var t=this;this.stopAutoplay(),this.autoplay&&(this.interval=setInterval(function(){return!(t.isHovering&&t.pauseOnHover)&&!t.stack.length&&t.show("next")},this.autoplayInterval))},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{data:{threshold:10,preventCatch:!1},created:function(){var n=this;["start","move","end"].forEach(function(t){var i=n[t];n[t]=function(t){var e=Di(t).x*(Rt?-1:1);n.prevPos=e!==n.pos?n.pos:n.prevPos,n.pos=e,i(t)}})},events:[{name:Kt,delegate:function(){return this.slidesSelector},handler:function(t){var e;!Bi(t)&&(!(e=t.target).children.length&&e.childNodes.length)||0<t.button||this.length<2||this.preventCatch||this.start(t)}},{name:"touchmove",passive:!1,handler:"move",delegate:function(){return this.slidesSelector}},{name:"dragstart",handler:function(t){t.preventDefault()}}],methods:{start:function(){var t=this;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;var e=kt(document,Gt.replace(" touchmove",""),this.move,{passive:!1});this.unbindMove=function(){e(),t.unbindMove=null},kt(window,"scroll",this.unbindMove),kt(document,Jt,this.end,!0)},move:function(t){var e=this;if(this.unbindMove){var i=this.pos-this.drag;if(!(0===i||this.prevPos===this.pos||!this.dragging&&Math.abs(i)<this.threshold)){t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=i<0?1:-1;for(var n=this.slides,r=this.prevIndex,o=Math.abs(i),s=this.getIndex(r+this.dir,r),a=this._getDistance(r,s)||n[r].offsetWidth;s!==r&&a<o;)e.drag-=a*e.dir,r=s,o-=a,s=e.getIndex(r+e.dir,r),a=e._getDistance(r,s)||n[r].offsetWidth;this.percent=o/a;var l,h=n[r],c=n[s],u=this.index!==s,d=r===s;[this.index,this.prevIndex].filter(function(t){return!b([s,r],t)}).forEach(function(t){At(n[t],"itemhidden",[e]),d&&(l=!0,e.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||l)&&At(n[this.index],"itemshown",[this]),u&&(this.prevIndex=r,this.index=s,!d&&At(h,"beforeitemhide",[this]),At(c,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!d&&c),u&&(!d&&At(h,"itemhide",[this]),At(c,"itemshow",[this]))}}},end:function(){if(Et(window,"scroll",this.unbindMove),this.unbindMove&&this.unbindMove(),Et(document,Jt,this.end,!0),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{var t=(Rt?this.dir*(Rt?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(0<this.dir&&!t||this.dir<0&&t?"next":"previous",!0)}Dt()}this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(t,e){return we(t.selNav,e)},navItemSelector:function(t){var e=t.attrItem;return"["+e+"],[data-"+e+"]"},navItems:function(t,e){return be(this.navItemSelector,e)}},update:{write:function(){var i=this;this.nav&&this.length!==this.nav.children.length&&oe(this.nav,this.slides.map(function(t,e){return"<li "+i.attrItem+'="'+e+'"><a href="#"></a></li>'}).join("")),ke(be(this.navItemSelector,this.$el).concat(this.nav),"ui-hidden",!this.maxIndex),this.updateNav()},events:["load","resize"]},events:[{name:"click",delegate:function(){return this.navItemSelector},handler:function(t){t.preventDefault(),t.current.blur(),this.show(et(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var i=this,n=this.getValidIndex();this.navItems.forEach(function(t){var e=et(t,i.attrItem);ke(t,i.clsActive,z(e)===n),ke(t,"ui-invisible",i.finite&&("previous"===e&&0===n||"next"===e&&n>=i.maxIndex))})}}}],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:function(){return{easing:"ease",finite:!1,velocity:1,index:0,stack:[],percent:0,clsActive:"ui-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}},computed:{duration:function(t,e){var i=t.velocity;return Tr(e.offsetWidth/i)},length:function(){return this.slides.length},list:function(t,e){return we(t.selList,e)},maxIndex:function(){return this.length-1},slidesSelector:function(t){return t.selList+" > *"},slides:function(){return j(this.list.children)}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(t,e){var i=this;if(void 0===e&&(e=!1),!this.dragging&&this.length){var n=this.stack,r=e?0:n.length,o=function(){n.splice(r,1),n.length&&i.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&1<n.length)2===n.length&&this._transitioner.forward(Math.min(this.duration,200));else{var s=this.index,a=Te(this.slides,this.clsActive)&&this.slides[s],l=this.getIndex(t,this.index),h=this.slides[l];if(a!==h){var c,u;if(this.dir=(u=s,"next"===(c=t)?1:"previous"===c?-1:c<u?-1:1),this.prevIndex=s,this.index=l,a&&At(a,"beforeitemhide",[this]),!At(h,"beforeitemshow",[this,a]))return this.index=this.prevIndex,void o();var d=this._show(a,h,e).then(function(){return a&&At(a,"itemhidden",[i]),At(h,"itemshown",[i]),new zt(function(t){fi.write(function(){n.shift(),n.length?i.show(n.shift(),!0):i._transitioner=null,t()})})});return a&&At(a,"itemhide",[this]),At(h,"itemshow",[this]),d}o()}}},getIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.index),U(ne(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.prevIndex),this.getIndex(t,e)},_show:function(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,Y({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._transitioner.translate(1),zt.resolve();var n=this.stack.length;return this._transitioner[1<n?"forward":"show"](1<n?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_getDistance:function(t,e){return new this._getTransitioner(t,t!==e&&e).getDistance()},_translate:function(t,e,i){void 0===e&&(e=this.prevIndex),void 0===i&&(i=this.index);var n=this._getTransitioner(e!==i&&e,i);return n.translate(t),n},_getTransitioner:function(t,e,i,n){return void 0===t&&(t=this.prevIndex),void 0===e&&(e=this.index),void 0===i&&(i=this.dir||1),void 0===n&&(n=this.transitionOptions),new this.Transitioner(O(t)?this.slides[t]:t,O(e)?this.slides[e]:e,i*(Rt?-1:1),n)}}};function Tr(t){return.5*t+300}var kr={mixins:[Sr],props:{animation:String},data:{animation:"slide",clsActivated:"ui-transition-active",Animations:wr,Transitioner:function(o,s,a,t){var e=t.animation,l=t.easing,i=e.percent,n=e.translate,r=e.show;void 0===r&&(r=X);var h=r(a),c=new Pt;return{dir:a,show:function(t,e,i){var n=this;void 0===e&&(e=0);var r=i?"linear":l;return t-=Math.round(t*U(e,-1,1)),this.translate(e),Ir(s,"itemin",{percent:e,duration:t,timing:r,dir:a}),Ir(o,"itemout",{percent:1-e,duration:t,timing:r,dir:a}),zt.all([Fe.start(s,h[1],t,r),Fe.start(o,h[0],t,r)]).then(function(){n.reset(),c.resolve()},X),c.promise},stop:function(){return Fe.stop([s,o])},cancel:function(){Fe.cancel([s,o])},reset:function(){for(var t in h[0])Oe([s,o],t,"")},forward:function(t,e){return void 0===e&&(e=this.percent()),Fe.cancel([s,o]),this.show(t,e,!0)},translate:function(t){this.reset();var e=n(t,a);Oe(s,e[1]),Oe(o,e[0]),Ir(s,"itemtranslatein",{percent:t,dir:a}),Ir(o,"itemtranslateout",{percent:1-t,dir:a})},percent:function(){return i(o||s,s,a)},getDistance:function(){return o.offsetWidth}}}},computed:{animation:function(t){var e=t.animation,i=t.Animations;return Y(e in i?i[e]:i.slide,{name:e})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){var e=t.target;this.$update(e)},itemshow:function(){O(this.prevIndex)&&fi.flush()},beforeitemshow:function(t){xe(t.target,this.clsActive)},itemshown:function(t){xe(t.target,this.clsActivated)},itemhidden:function(t){$e(t.target,this.clsActive,this.clsActivated)}}},Er={mixins:[Fn,Vn,Yi,kr],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:function(){return{preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"ui-open",clsPage:"ui-lightbox-page",selList:".ui-lightbox-items",attrItem:"ui-lightbox-item",selClose:".ui-close-large",pauseOnHover:!1,velocity:2,Animations:$r,template:'<div class="ui-lightbox ui-overflow-hidden"> <ul class="ui-lightbox-items"></ul> <div class="ui-lightbox-toolbar ui-position-top ui-text-right ui-transition-slide-top ui-transition-opaque"> <button class="ui-lightbox-toolbar-icon ui-close-large" type="button" ui-close></button> </div> <a class="ui-lightbox-button ui-position-center-left ui-position-medium ui-transition-fade" href="#" ui-slidenav-previous ui-lightbox-item="previous"></a> <a class="ui-lightbox-button ui-position-center-right ui-position-medium ui-transition-fade" href="#" ui-slidenav-next ui-lightbox-item="next"></a> <div class="ui-lightbox-toolbar ui-lightbox-caption ui-position-bottom ui-text-center ui-transition-slide-bottom ui-transition-opaque"></div> </div>'}},created:function(){var t=this;this.$mount(se(this.container,this.template)),this.caption=we(".ui-lightbox-caption",this.$el),this.items.forEach(function(){return se(t.list,"<li></li>")})},events:[{name:Gt+" "+Kt+" keydown",handler:"showControls"},{name:"click",self:!0,delegate:function(){return this.slidesSelector},handler:function(t){t.preventDefault(),this.hide()}},{name:"shown",self:!0,handler:function(){this.startAutoplay(),this.showControls()}},{name:"hide",self:!0,handler:function(){this.stopAutoplay(),this.hideControls(),$e(this.slides,this.clsActive),Fe.stop(this.slides)}},{name:"keyup",el:document,handler:function(t){if(this.isToggled(this.$el))switch(t.keyCode){case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"beforeitemshow",handler:function(t){this.isToggled()||(this.preventCatch=!0,t.preventDefault(),this.toggleNow(this.$el,!0),this.animation=$r.scale,$e(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler:function(t){var e=ie(t.target),i=this.getItem(e).caption;Oe(this.caption,"display",i?"":"none"),oe(this.caption,i);for(var n=0;n<=this.preload;n++)this.loadItem(this.getIndex(e+n)),this.loadItem(this.getIndex(e-n))}},{name:"itemshown",handler:function(){this.preventCatch=!1}},{name:"itemload",handler:function(t,r){var o,s=this,e=r.source,i=r.type,n=r.alt;if(this.setItem(r,"<span ui-spinner></span>"),e)if("image"===i||e.match(/\.(jp(e)?g|png|gif|svg)($|\?)/i))Vt(e).then(function(t){return s.setItem(r,'<img width="'+t.width+'" height="'+t.height+'" src="'+e+'" alt="'+(n||"")+'">')},function(){return s.setError(r)});else if("video"===i||e.match(/\.(mp4|webm|ogv)($|\?)/i)){var a=we("<video controls playsinline"+(r.poster?' poster="'+r.poster+'"':"")+' ui-video="'+this.videoAutoplay+'"></video>');Z(a,"src",e),kt(a,"error",function(){return s.setError(r)}),kt(a,"loadedmetadata",function(){Z(a,{width:a.videoWidth,height:a.videoHeight}),s.setItem(r,a)})}else if("iframe"===i||e.match(/\.(html|php)($|\?)/i))this.setItem(r,'<iframe class="ui-lightbox-iframe" src="'+e+'" frameborder="0" allowfullscreen></iframe>');else if(o=e.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/watch\?v=([^&\s]+)/)||e.match(/()youtu\.be\/(.*)/)){var l=o[2],h=function(t,e){return void 0===t&&(t=640),void 0===e&&(e=450),s.setItem(r,Cr("https://www.youtube"+(o[1]||"")+".com/embed/"+l,t,e,s.videoAutoplay))};Vt("https://img.youtube.com/vi/"+l+"/maxresdefault.jpg").then(function(t){var e=t.width,i=t.height;120===e&&90===i?Vt("https://img.youtube.com/vi/"+l+"/0.jpg").then(function(t){var e=t.width,i=t.height;return h(e,i)},h):h(e,i)},h)}else(o=e.match(/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/))&&Ft("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(e),{responseType:"json",withCredentials:!1}).then(function(t){var e=t.response,i=e.height,n=e.width;return s.setItem(r,Cr("https://player.vimeo.com/video/"+o[2],n,i,s.videoAutoplay))},function(){return s.setError(r)})}}],methods:{loadItem:function(t){void 0===t&&(t=this.index);var e=this.getItem(t);e.content||At(this.$el,"itemload",[e])},getItem:function(t){return void 0===t&&(t=this.index),this.items[t]||{}},setItem:function(t,e){Y(t,{content:e});var i=oe(this.slides[this.items.indexOf(t)],e);At(this.$el,"itemloaded",[this,i]),this.$update(i)},setError:function(t){this.setItem(t,'<span ui-icon="icon: bolt; ratio: 2"></span>')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),xe(this.$el,"ui-active","ui-transition-active")},hideControls:function(){$e(this.$el,"ui-active","ui-transition-active")}}};function Cr(t,e,i,n){return'<iframe src="'+t+'" width="'+e+'" height="'+i+'" style="max-width: 100%; box-sizing: border-box;" frameborder="0" allowfullscreen ui-video="autoplay: '+n+'" ui-responsive></iframe>'}var Ar,_r={install:function(t,e){t.lightboxPanel||t.component("lightboxPanel",Er);Y(e.props,t.component("lightboxPanel").options.props)},props:{toggle:String},data:{toggle:"a"},computed:{toggles:function(t,e){return be(t.toggle,e)}},disconnected:function(){this._destroy()},events:[{name:"click",delegate:function(){return this.toggle+":not(.ui-disabled)"},handler:function(t){t.preventDefault(),t.current.blur(),this.show(ie(this.toggles,t.current))}}],update:function(t){var e,i;(t.toggles=this.panel&&t.toggles||this.toggles,this.panel&&(e=t.toggles,i=this.toggles,e.length!==i.length||!e.every(function(t,e){return t===i[e]})))&&(t.toggles=this.toggles,this._destroy(),this._init())},methods:{_init:function(){return this.panel=this.panel||this.$create("lightboxPanel",Y({},this.$props,{items:this.toggles.reduce(function(t,i){return t.push(["href","caption","type","poster","alt"].reduce(function(t,e){return t["href"===e?"source":e]=et(i,e),t},{})),t},[])}))},_destroy:function(){this.panel&&(this.panel.$destroy(!0),this.panel=null)},show:function(t){return this.panel||this._init(),this.panel.show(t)},hide:function(){return this.panel&&this.panel.hide()}}};var Nr={},Or={functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsClose:"ui-notification-close",clsMsg:"ui-notification-message"},install:function(r){r.notification.closeAll=function(i,n){ve(document.body,function(t){var e=r.getComponent(t,"notification");!e||i&&i!==e.group||e.close(n)})}},created:function(){Nr[this.pos]||(Nr[this.pos]=se(this.$container,'<div class="ui-notification ui-notification-'+this.pos+'"></div>'));var t=Oe(Nr[this.pos],"display","block");this.$mount(se(t,'<div class="'+this.clsMsg+(this.status?" "+this.clsMsg+"-"+this.status:"")+'"> <a href="#" class="'+this.clsClose+'" data-ui-close></a> <div>'+this.message+"</div> </div>"))},connected:function(){var t=this,e=P(Oe(this.$el,"marginBottom"));Fe.start(Oe(this.$el,{opacity:0,marginTop:-this.$el.offsetHeight,marginBottom:0}),{opacity:1,marginTop:0,marginBottom:e}).then(function(){t.timeout&&(t.timer=setTimeout(t.close,t.timeout))})},events:(Ar={click:function(t){mt(t.target,'a[href="#"]')&&t.preventDefault(),this.close()}},Ar[Zt]=function(){this.timer&&clearTimeout(this.timer)},Ar[Qt]=function(){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},Ar),methods:{close:function(t){var e=this,i=function(){At(e.$el,"close",[e]),ce(e.$el),Nr[e.pos].children.length||Oe(Nr[e.pos],"display","none")};this.timer&&clearTimeout(this.timer),t?i():Fe.start(this.$el,{opacity:0,marginTop:-this.$el.offsetHeight,marginBottom:0}).then(i)}}};var Mr=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity"],Br={mixins:[Hn],props:Mr.reduce(function(t,e){return t[e]="list",t},{}),data:Mr.reduce(function(t,e){return t[e]=void 0,t},{}),computed:{props:function(f,p){var m=this;return Mr.reduce(function(t,e){if(B(f[e]))return t;var i,n,r,o=e.match(/color/i),s=o||"opacity"===e,a=f[e].slice(0);s&&Oe(p,e,""),a.length<2&&a.unshift(("scale"===e?1:s?Oe(p,e):0)||0);var l=b(a.join(""),"%")?"%":"px";if(o){var h=p.style.color;a=a.map(function(t){return Oe(Oe(p,"color",t),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(function(t){return P(t)})}),p.style.color=h}else a=a.map(P);if(e.match(/^bg/))if(Oe(p,"background-position-"+e[2],""),n=Oe(p,"backgroundPosition").split(" ")["x"===e[2]?0:1],m.covers){var c=Math.min.apply(Math,a),u=Math.max.apply(Math,a),d=a.indexOf(c)<a.indexOf(u);r=u-c,a=a.map(function(t){return t-(d?c:u)}),i=(d?-r:0)+"px"}else i=n;return t[e]={steps:a,unit:l,pos:i,bgPos:n,diff:r},t},{})},bgProps:function(){var e=this;return["bgx","bgy"].filter(function(t){return t in e.props})},covers:function(t,e){return n=(i=e).style.backgroundSize,r="cover"===Oe(Oe(i,"backgroundSize",""),"backgroundSize"),i.style.backgroundSize=n,r;var i,n,r}},disconnected:function(){delete this._image},update:{read:function(t){var l=this;if(t.active=this.matchMedia,t.active){if(!t.image&&this.covers&&this.bgProps.length){var e=Oe(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(e){var i=new Image;i.src=e,(t.image=i).naturalWidth||(i.onload=function(){return l.$emit()})}}var n=t.image;if(n&&n.naturalWidth){var h={width:this.$el.offsetWidth,height:this.$el.offsetHeight},c={width:n.naturalWidth,height:n.naturalHeight},u=J.cover(c,h);this.bgProps.forEach(function(t){var e=l.props[t],i=e.diff,n=e.bgPos,r=e.steps,o="bgy"===t?"height":"width",s=u[o]-h[o];if(n.match(/%$|0px/)){if(s<i)h[o]=u[o]+i-s;else if(i<s){var a=parseFloat(n);a&&(l.props[t].steps=r.map(function(t){return t-(s-i)/(100/a)}))}u=J.cover(c,h)}}),t.dim=u}}},write:function(t){var e=t.dim;t.active?e&&Oe(this.$el,{backgroundSize:e.width+"px "+e.height+"px",backgroundRepeat:"no-repeat"}):Oe(this.$el,{backgroundSize:"",backgroundRepeat:""})},events:["load","resize"]},methods:{reset:function(){var i=this;R(this.getCss(0),function(t,e){return Oe(i.$el,e,"")})},getCss:function(p){var m=this.props,g=!1;return Object.keys(m).reduce(function(t,e){var i=m[e],n=i.steps,r=i.unit,o=i.pos,s=zr(n,p);switch(e){case"x":case"y":if(g)break;var a=["x","y"].map(function(t){return e===t?P(s).toFixed(0)+r:m[t]?zr(m[t].steps,p,0)+m[t].unit:0}),l=a[0],h=a[1];g=t.transform+=" translate3d("+l+", "+h+", 0)";break;case"rotate":t.transform+=" rotate("+s+"deg)";break;case"scale":t.transform+=" scale("+s+")";break;case"bgy":case"bgx":t["background-position-"+e[2]]="calc("+o+" + "+(s+r)+")";break;case"color":case"backgroundColor":case"borderColor":var c=Dr(n,p),u=c[0],d=c[1],f=c[2];t[e]="rgba("+u.map(function(t,e){return t+=f*(d[e]-t),3===e?P(t):parseInt(t,10)}).join(",")+")";break;case"blur":t.filter+=" blur("+s+"px)";break;case"hue":t.filter+=" hue-rotate("+s+"deg)";break;case"fopacity":t.filter+=" opacity("+s+"%)";break;case"grayscale":case"invert":case"saturate":case"sepia":t.filter+=" "+e+"("+s+"%)";break;default:t[e]=s}return t},{transform:"",filter:""})}}};function Dr(t,e){var i=t.length-1,n=Math.min(Math.floor(i*e),i-1),r=t.slice(n,n+2);return r.push(1===e?1:e%(1/i)*i),r}function zr(t,e,i){void 0===i&&(i=2);var n=Dr(t,e),r=n[0],o=n[1],s=n[2];return(O(r)?r+Math.abs(r-o)*s*(r<o?1:-1):+o).toFixed(i)}var Pr={mixins:[Br],props:{target:String,viewport:Number,easing:Number},data:{target:!1,viewport:1,easing:1},computed:{target:function(t,e){var i=t.target;return i&&it(i,e)||e}},update:{read:function(t,e){var i=t.percent,n=t.active;if("scroll"!==e.type&&(i=!1),n){var r,o,s=i;return r=li(this.target)/(this.viewport||1),o=this.easing,{percent:i=U(r*(1-(o-o*r))),style:s!==i&&this.getCss(i)}}},write:function(t){var e=t.style;t.active?e&&Oe(this.$el,e):this.reset()},events:["scroll","load","resize"]}};var Hr={update:{write:function(){if(!this.stack.length&&!this.dragging){var t=this.getValidIndex();delete this.index,$e(this.slides,this.clsActive,this.clsActivated),this.show(t)}},events:["load","resize"]}};function Lr(t,e,i){var n,r=Fr(t,e);return i?r-(n=t,Vr(e).width/2-Vr(n).width/2):Math.min(r,jr(e))}function jr(t){return Math.max(0,Wr(t)-Vr(t).width)}function Wr(t){return Rr(t).reduce(function(t,e){return Vr(e).width+t},0)}function Fr(t,e){return(Ze(t).left+(Rt?Vr(t).width-Vr(e).width:0))*(Rt?-1:1)}function Vr(t){return t.getBoundingClientRect()}function Yr(t,e,i){At(t,_t(e,!1,!1,i))}function Rr(t){return j(t.children)}var qr={mixins:[Vi,Sr,Hr],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"ui-slider-item",selList:".ui-slider-items",selNav:".ui-slider-nav",clsContainer:"ui-slider-container",Transitioner:function(r,n,o,t){var e=t.center,s=t.easing,a=t.list,l=new Pt,i=r?Lr(r,a,e):Lr(n,a,e)+Vr(n).width*o,h=n?Lr(n,a,e):i+Vr(r).width*o*(Rt?-1:1);return{dir:o,show:function(t,e,i){void 0===e&&(e=0);var n=i?"linear":s;return t-=Math.round(t*U(e,-1,1)),this.translate(e),r&&this.updateTranslates(),e=r?e:U(e,0,1),Yr(this.getItemIn(),"itemin",{percent:e,duration:t,timing:n,dir:o}),r&&Yr(this.getItemIn(!0),"itemout",{percent:1-e,duration:t,timing:n,dir:o}),Fe.start(a,{transform:yr(-h*(Rt?-1:1),"px")},t,n).then(l.resolve,X),l.promise},stop:function(){return Fe.stop(a)},cancel:function(){Fe.cancel(a)},reset:function(){Oe(a,"transform","")},forward:function(t,e){return void 0===e&&(e=this.percent()),Fe.cancel(a),this.show(t,e,!0)},translate:function(t){var e=this.getDistance()*o*(Rt?-1:1);Oe(a,"transform",yr(U(e-e*t-h,-Wr(a),Vr(a).width)*(Rt?-1:1),"px")),this.updateTranslates(),r&&(t=U(t,-1,1),Yr(this.getItemIn(),"itemtranslatein",{percent:t,dir:o}),Yr(this.getItemIn(!0),"itemtranslateout",{percent:1-t,dir:o}))},percent:function(){return Math.abs((Oe(a,"transform").split(",")[4]*(Rt?-1:1)+i)/(h-i))},getDistance:function(){return Math.abs(h-i)},getItemIn:function(t){void 0===t&&(t=!1);var e=this.getActives(),i=q(Rr(a),"offsetLeft"),n=ie(i,e[0<o*(t?-1:1)?e.length-1:0]);return~n&&i[n+(r&&!t?o:0)]},getActives:function(){var i=Lr(r||n,a,e);return q(Rr(a).filter(function(t){var e=Fr(t,a);return i<=e&&e+Vr(t).width<=Vr(a).width+i}),"offsetLeft")},updateTranslates:function(){var i=this.getActives();Rr(a).forEach(function(t){var e=b(i,t);Yr(t,"itemtranslate"+(e?"in":"out"),{percent:e?1:0,dir:t.offsetLeft<=n.offsetLeft?1:-1})})}}}},computed:{avgWidth:function(){return Wr(this.list)/this.length},finite:function(t){return t.finite||Wr(this.list)<Vr(this.list).width+Rr(this.list).reduce(function(t,e){return Math.max(t,Vr(e).width)},0)+this.center},maxIndex:function(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return this.sets[this.sets.length-1];Oe(this.slides,"order","");for(var t=jr(this.list),e=this.length;e--;)if(Fr(this.list.children[e],this.list)<t)return Math.min(e+1,this.length-1);return 0},sets:function(t){var o=this,e=t.sets,s=Vr(this.list).width/(this.center?2:1),a=0,l=s,h=0;return(e=e&&this.slides.reduce(function(t,e,i){var n=Vr(e).width;if(a<h+n&&(!o.center&&i>o.maxIndex&&(i=o.maxIndex),!b(t,i))){var r=o.slides[i+1];o.center&&r&&n<l-Vr(r).width/2?l-=n:(l=s,t.push(i),a=h+s+(o.center?n/2:0))}return h+=n,t},[]))&&e.length&&e},transitionOptions:function(){return{center:this.center,list:this.list}}},connected:function(){ke(this.$el,this.clsContainer,!we("."+this.clsContainer,this.$el))},update:{write:function(){var i=this;be("["+this.attrItem+"],[data-"+this.attrItem+"]",this.$el).forEach(function(t){var e=et(t,i.attrItem);i.maxIndex&&ke(t,"ui-hidden",M(e)&&(i.sets&&!b(i.sets,P(e))||e>i.maxIndex))})},events:["load","resize"]},events:{beforeitemshow:function(t){!this.dragging&&this.sets&&this.stack.length<2&&!b(this.sets,this.index)&&(this.index=this.getValidIndex());var e=Math.abs(this.index-this.prevIndex+(0<this.dir&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&1<e){for(var i=0;i<e;i++)this.stack.splice(1,0,0<this.dir?"next":"previous");t.preventDefault()}else this.duration=Tr(this.avgWidth/this.velocity)*(Vr(this.dir<0||!this.slides[this.prevIndex]?this.slides[this.index]:this.slides[this.prevIndex]).width/this.avgWidth),this.reorder()},itemshow:function(){!B(this.prevIndex)&&xe(this._getTransitioner().getItemIn(),this.clsActive)},itemshown:function(){var e=this,i=this._getTransitioner(this.index).getActives();this.slides.forEach(function(t){return ke(t,e.clsActive,b(i,t))}),(!this.sets||b(this.sets,P(this.index)))&&this.slides.forEach(function(t){return ke(t,e.clsActivated,b(i,t))})}},methods:{reorder:function(){var i=this;if(Oe(this.slides,"order",""),!this.finite){var n=0<this.dir&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach(function(t,e){return Oe(t,"order",0<i.dir&&e<n?1:i.dir<0&&e>=i.index?-1:"")}),this.center)for(var t=this.slides[n],e=Vr(this.list).width/2-Vr(t).width/2,r=0;0<e;){var o=i.getIndex(--r+n,n),s=i.slides[o];Oe(s,"order",n<o?-2:-1),e-=Vr(s).width}}},getValidIndex:function(t,e){var i;if(void 0===t&&(t=this.index),void 0===e&&(e=this.prevIndex),t=this.getIndex(t,e),!this.sets)return t;do{if(b(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t}}},Ur={mixins:[Br],data:{selItem:"!li"},computed:{item:function(t,e){return it(t.selItem,e)}},events:[{name:"itemshown",self:!0,el:function(){return this.item},handler:function(){Oe(this.$el,this.getCss(.5))}},{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(t){var e=t.type,i=t.detail,n=i.percent,r=i.duration,o=i.timing,s=i.dir;Fe.cancel(this.$el),Oe(this.$el,this.getCss(Kr(e,s,n))),Fe.start(this.$el,this.getCss(Xr(e)?.5:0<s?1:0),r,o).catch(X)}},{name:"transitioncanceled transitionend",self:!0,el:function(){return this.item},handler:function(){Fe.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:function(){return this.item},handler:function(t){var e=t.type,i=t.detail,n=i.percent,r=i.dir;Fe.cancel(this.$el),Oe(this.$el,this.getCss(Kr(e,r,n)))}}]};function Xr(t){return u(t,"in")}function Kr(t,e,i){return i/=2,Xr(t)?e<0?1-i:i:e<0?i:1-i}var Gr,Jr,Zr=Y({},wr,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(t){return 1-Oe(t,"opacity")},translate:function(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:xr(1.5),zIndex:0},{zIndex:-1}]},percent:function(t){return 1-Oe(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:xr(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show:function(t){return t<0?[{transform:yr(30),zIndex:-1},{transform:yr(),zIndex:0}]:[{transform:yr(-100),zIndex:0},{transform:yr(),zIndex:-1}]},percent:function(t,e,i){return i<0?1-br(e):br(t)},translate:function(t,e){return e<0?[{transform:yr(30*t),zIndex:-1},{transform:yr(-100*(1-t)),zIndex:0}]:[{transform:yr(100*-t),zIndex:0},{transform:yr(30*(1-t)),zIndex:-1}]}},push:{show:function(t){return t<0?[{transform:yr(100),zIndex:0},{transform:yr(),zIndex:-1}]:[{transform:yr(-30),zIndex:-1},{transform:yr(),zIndex:0}]},percent:function(t,e,i){return 0<i?1-br(e):br(t)},translate:function(t,e){return e<0?[{transform:yr(100*t),zIndex:0},{transform:yr(-30*(1-t)),zIndex:-1}]:[{transform:yr(-30*t),zIndex:-1},{transform:yr(100*(1-t)),zIndex:0}]}}}),Qr={mixins:[Vi,kr,Hr],props:{ratio:String,minHeight:Boolean,maxHeight:Boolean},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".ui-slideshow-items",attrItem:"ui-slideshow-item",selNav:".ui-slideshow-nav",Animations:Zr},update:{read:function(){var t=this.ratio.split(":").map(Number),e=t[0],i=t[1];return i=i*this.list.offsetWidth/e,this.minHeight&&(i=Math.max(this.minHeight,i)),this.maxHeight&&(i=Math.min(this.maxHeight,i)),{height:i-ii(this.list,"content-box")}},write:function(t){var e=t.height;Oe(this.list,"minHeight",e)},events:["load","resize"]}},to={mixins:[Vi,cr],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:"ui-sortable-item",clsPlaceholder:"ui-sortable-placeholder",clsDrag:"ui-sortable-drag",clsDragState:"ui-drag",clsBase:"ui-sortable",clsNoDrag:"ui-sortable-nodrag",clsEmpty:"ui-sortable-empty",clsCustom:"",handle:!1},created:function(){var o=this;["init","start","move","end"].forEach(function(t){var r=o[t];o[t]=function(t){o.scrollY=window.pageYOffset;var e=Di(t),i=e.x,n=e.y;o.pos={x:i,y:n},r(t)}})},events:(Gr={},Gr[Kt]="init",Gr),update:{write:function(){if(this.clsEmpty&&ke(this.$el,this.clsEmpty,!this.$el.children.length),Oe(this.handle?be(this.handle,this.$el):this.$el.children,"touchAction","none"),this.drag){Ge(this.drag,{top:this.pos.y+this.origin.top,left:this.pos.x+this.origin.left});var t,e=Ge(this.drag),i=e.top,n=i+e.height;0<i&&i<this.scrollY?t=this.scrollY-5:n<Qe(document)&&n>Qe(window)+this.scrollY&&(t=this.scrollY+5),t&&setTimeout(function(){return hi(window,t)},5)}}},methods:{init:function(t){var e=t.target,i=t.button,n=t.defaultPrevented,r=j(this.$el.children).filter(function(t){return Tt(e,t)})[0];!r||It(t.target)||this.handle&&!Tt(e,this.handle)||0<i||Tt(e,"."+this.clsNoDrag)||n||(t.preventDefault(),this.touched=[this],this.placeholder=r,this.origin=Y({target:e,index:ie(r)},this.pos),kt(document,Gt,this.move),kt(document,Jt,this.end),kt(window,"scroll",this.scroll),this.threshold||this.start(t))},start:function(t){this.drag=se(this.$container,this.placeholder.outerHTML.replace(/^<li/i,"<div").replace(/li>$/i,"div>")),Oe(this.drag,Y({boxSizing:"border-box",width:this.placeholder.offsetWidth,height:this.placeholder.offsetHeight},Oe(this.placeholder,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),Z(this.drag,"ui-no-boot",""),xe(this.drag,this.clsDrag,this.clsCustom),Qe(this.drag.firstElementChild,Qe(this.placeholder.firstElementChild));var e=Ge(this.placeholder),i=e.left,n=e.top;Y(this.origin,{left:i-this.pos.x,top:n-this.pos.y}),xe(this.placeholder,this.clsPlaceholder),xe(this.$el.children,this.clsItem),xe(document.documentElement,this.clsDragState),At(this.$el,"start",[this,this.placeholder]),this.move(t)},move:function(t){if(this.drag){this.$emit();var e="mousemove"===t.type?t.target:document.elementFromPoint(this.pos.x-window.pageXOffset,this.pos.y-window.pageYOffset),i=this.getSortable(e),n=this.getSortable(this.placeholder),r=i!==n;if(i&&!Tt(e,this.placeholder)&&(!r||i.group&&i.group===n.group)){if(e=i.$el===e.parentNode&&e||j(i.$el.children).filter(function(t){return Tt(e,t)})[0],r)n.remove(this.placeholder);else if(!e)return;i.insert(this.placeholder,e),b(this.touched,i)||this.touched.push(i)}}else(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},end:function(t){if(Et(document,Gt,this.move),Et(document,Jt,this.end),Et(window,"scroll",this.scroll),this.drag){Dt();var e=this.getSortable(this.placeholder);this===e?this.origin.index!==ie(this.placeholder)&&At(this.$el,"moved",[this,this.placeholder]):(At(e.$el,"added",[e,this.placeholder]),At(this.$el,"removed",[this,this.placeholder])),At(this.$el,"stop",[this,this.placeholder]),ce(this.drag),this.drag=null;var i=this.touched.map(function(t){return t.clsPlaceholder+" "+t.clsItem}).join(" ");this.touched.forEach(function(t){return $e(t.$el.children,i)}),$e(document.documentElement,this.clsDragState)}else"mouseup"!==t.type&&Tt(t.target,"a[href]")&&(location.href=mt(t.target,"a[href]").href)},scroll:function(){var t=window.pageYOffset;t!==this.scrollY&&(this.pos.y+=t-this.scrollY,this.scrollY=t,this.$emit())},insert:function(i,n){var r=this;xe(this.$el.children,this.clsItem);var t=function(){var t,e;n?!Tt(i,r.$el)||(e=n,(t=i).parentNode===e.parentNode&&ie(t)>ie(e))?ae(n,i):le(n,i):se(r.$el,i)};this.animation?this.animate(t):t()},remove:function(t){Tt(t,this.$el)&&(this.animation?this.animate(function(){return ce(t)}):ce(t))},getSortable:function(t){return t&&(this.$getComponent(t,"sortable")||this.getSortable(t.parentNode))}}};var eo=[],io={mixins:[Fn,Yi,Zi],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["ui-animation-scale-up"],duration:100,cls:"ui-active",clsPos:"ui-tooltip"},beforeConnect:function(){this._hasTitle=Q(this.$el,"title"),Z(this.$el,{title:"","aria-expanded":!1})},disconnected:function(){this.hide(),Z(this.$el,{title:this._hasTitle?this.title:null,"aria-expanded":null})},methods:{show:function(){var e=this;b(eo,this)||(eo.forEach(function(t){return t.hide()}),eo.push(this),this._unbind=kt(document,"click",function(t){return!Tt(t.target,e.$el)&&e.hide()}),clearTimeout(this.showTimer),this.showTimer=setTimeout(function(){e._show(),e.hideTimer=setInterval(function(){xt(e.$el)||e.hide()},150)},this.delay))},hide:function(){var t=eo.indexOf(this);!~t||ft(this.$el,"input")&&this.$el===document.activeElement||(eo.splice(t,1),clearTimeout(this.showTimer),clearInterval(this.hideTimer),Z(this.$el,"aria-expanded",!1),this.toggleElement(this.tooltip,!1),this.tooltip&&ce(this.tooltip),this.tooltip=!1,this._unbind())},_show:function(){this.tooltip=se(this.container,'<div class="'+this.clsPos+'" aria-expanded="true" aria-hidden> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),this.positionAt(this.tooltip,this.$el),this.origin="y"===this.getAxis()?si(this.dir)+"-"+this.align:this.align+"-"+si(this.dir),this.toggleElement(this.tooltip,!0)}},events:(Jr={},Jr["focus "+Zt+" "+Kt]=function(t){t.type===Kt&&Bi(t)||this.show()},Jr.blur="hide",Jr[Qt]=function(t){Bi(t)||this.hide()},Jr)},no={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"ui-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",multiple:!1,name:"files[]",params:{},type:"",url:"",abort:X,beforeAll:X,beforeSend:X,complete:X,completeAll:X,error:X,fail:X,load:X,loadEnd:X,loadStart:X,progress:X},events:{change:function(t){ft(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop:function(t){oo(t);var e=t.dataTransfer;e&&e.files&&($e(this.$el,this.clsDragover),this.upload(e.files))},dragenter:function(t){oo(t)},dragover:function(t){oo(t),xe(this.$el,this.clsDragover)},dragleave:function(t){oo(t),$e(this.$el,this.clsDragover)}},methods:{upload:function(t){var n=this;if(t.length){At(this.$el,"upload",[t]);for(var e=0;e<t.length;e++){if(n.maxSize&&1e3*n.maxSize<t[e].size)return void n.fail(n.msgInvalidSize.replace("%s",n.maxSize));if(n.allow&&!ro(n.allow,t[e].name))return void n.fail(n.msgInvalidName.replace("%s",n.allow));if(n.mime&&!ro(n.mime,t[e].type))return void n.fail(n.msgInvalidMime.replace("%s",n.mime))}this.multiple||(t=[t[0]]),this.beforeAll(this,t);var r=function(t,e){for(var i=[],n=0;n<t.length;n+=e){for(var r=[],o=0;o<e;o++)r.push(t[n+o]);i.push(r)}return i}(t,this.concurrent),o=function(t){var e=new FormData;for(var i in t.forEach(function(t){return e.append(n.name,t)}),n.params)e.append(i,n.params[i]);Ft(n.url,{data:e,method:n.method,responseType:n.type,beforeSend:function(t){var e=t.xhr;e.upload&&kt(e.upload,"progress",n.progress),["loadStart","load","loadEnd","abort"].forEach(function(t){return kt(e,t.toLowerCase(),n[t])}),n.beforeSend(t)}}).then(function(t){n.complete(t),r.length?o(r.shift()):n.completeAll(t)},function(t){return n.error(t)})};o(r.shift())}}}};function ro(t,e){return e.match(new RegExp("^"+t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function oo(t){t.preventDefault(),t.stopPropagation()}return Fi.component("countdown",ar),Fi.component("filter",pr),Fi.component("lightbox",_r),Fi.component("lightboxPanel",Er),Fi.component("notification",Or),Fi.component("parallax",Pr),Fi.component("slider",qr),Fi.component("sliderParallax",Ur),Fi.component("slideshow",Qr),Fi.component("slideshowParallax",Ur),Fi.component("sortable",to),Fi.component("tooltip",io),Fi.component("upload",no),function(o){var s=o.connect,a=o.disconnect;function t(){l(document.body,s),fi.flush(),new MutationObserver(function(t){return t.forEach(e)}).observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0}),o._initialized=!0}function e(t){var e=t.target;("attributes"!==t.type?function(t){for(var e=t.addedNodes,i=t.removedNodes,n=0;n<e.length;n++)l(e[n],s);for(var r=0;r<i.length;r++)l(i[r],a);return!0}(t):function(t){var e=t.target,i=t.attributeName;if("href"===i)return!0;var n=Pi(i);if(n&&n in o){if(Q(e,i))return o[n](e),!0;var r=o.getComponent(e,n);return r?(r.$destroy(),!0):void 0}}(t))&&o.update(e)}function l(t,e){if(1===t.nodeType&&!Q(t,"ui-no-boot"))for(e(t),t=t.firstElementChild;t;){var i=t.nextElementSibling;l(t,e),t=i}}"MutationObserver"in window&&(document.body?t():new MutationObserver(function(){document.body&&(this.disconnect(),t())}).observe(document,{childList:!0,subtree:!0}))}(Fi),Fi});