(()=>{var t={7954:(t,e,i)=>{var n=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt,h="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=h||l||Function("return this")(),d=Object.prototype.toString,u=Math.max,p=Math.min,f=function(){return c.Date.now()};function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var i=o.test(t);return i||r.test(t)?a(t.slice(2),i?2:8):s.test(t)?NaN:+t}t.exports=function(t,e,i){var n,s,o,r,a,h,l=0,c=!1,d=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var i=n,o=s;return n=s=void 0,l=e,r=t.apply(o,i)}function w(t){var i=t-h;return void 0===h||i>=e||i<0||d&&t-l>=o}function b(){var t=f();if(w(t))return _(t);a=setTimeout(b,function(t){var i=e-(t-h);return d?p(i,o-(t-l)):i}(t))}function _(t){return a=void 0,y&&n?v(t):(n=s=void 0,r)}function S(){var t=f(),i=w(t);if(n=arguments,s=this,h=t,i){if(void 0===a)return function(t){return l=t,a=setTimeout(b,e),c?v(t):r}(h);if(d)return a=setTimeout(b,e),v(h)}return void 0===a&&(a=setTimeout(b,e)),r}return e=g(e)||0,m(i)&&(c=!!i.leading,o=(d="maxWait"in i)?u(g(i.maxWait)||0,e):o,y="trailing"in i?!!i.trailing:y),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=h=s=a=void 0},S.flush=function(){return void 0===a?r:_(f())},S}},8264:function(t,e,i){!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),i=function(t){var i={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(i[Symbol.iterator]=function(){return i}),i},n=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},s=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set&&"function"==typeof e.prototype.entries}catch(t){return!1}})()||function(){var s=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof s){var i=this;t.forEach((function(t,e){i.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var n=0;ne[0]?1:0})),t._entries&&(t._entries={});for(var i=0;i1?s(n[1]):"")}})}(void 0!==i.g?i.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,i=function(e,i){"string"!=typeof e&&(e=String(e)),i&&"string"!=typeof i&&(i=String(i));var n,s=document;if(i&&(void 0===t.location||i!==t.location.href)){i=i.toLowerCase(),(n=(s=document.implementation.createHTMLDocument("")).createElement("base")).href=i,s.head.appendChild(n);try{if(0!==n.href.indexOf(i))throw new Error(n.href)}catch(t){throw new Error("URL unable to set base "+i+" due to "+t)}}var o=s.createElement("a");o.href=e,n&&(s.body.appendChild(o),o.href=o.href);var r=s.createElement("input");if(r.type="url",r.value=e,":"===o.protocol||!/:/.test(o.href)||!r.checkValidity()&&!i)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var a=new t.URLSearchParams(this.search),h=!0,l=!0,c=this;["append","delete","set"].forEach((function(t){var e=a[t];a[t]=function(){e.apply(a,arguments),h&&(l=!1,c.search=a.toString(),l=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var d=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==d&&(d=this.search,l&&(h=!1,this.searchParams._fromString(this.search),h=!0))}})},n=i.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(n,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),i.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},i.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=i}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(i){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==i.g?i.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},183:()=>{const t=e=>{const{target:i}=e;i.removeEventListener("animationend",t),setTimeout((()=>{i.classList.add("kubio-aos-hide-animation")}),50)},e=e=>{const i=new window.IntersectionObserver((e=>{e.forEach((e=>{const{target:n,isIntersecting:s}=e,o=n.getAttribute("data-kubio-aos")||"none";if(!s||"none"===o||n.getAttribute("data-kubio-aos-executed"))return;if(n.closest(".editor-styles-wrapper"))return void i.disconnect();n.setAttribute("data-kubio-aos-executed",!0),n.addEventListener("animationend",t),n.classList.add("force-hide");const r=Math.max(0,(t=>{const{getComputedStyle:e}=t.ownerDocument.defaultView,i=e(t).animationDelay;return i.includes("ms")?parseInt(i.replace("ms",""))||0:i.includes("s")?1e3*parseFloat(i.replace("s",""))||0:isNaN(parseFloat(i))?0:parseFloat(i)})(n));setTimeout((()=>{n.classList.remove("force-hide")}),r),setTimeout((()=>{n.classList.add("animated",o)}),50),i.disconnect()}))}),{threshold:.1});i.observe(e)};var i;i=()=>[...document.querySelectorAll("[data-kubio-aos]")].forEach(e),"loading"!==document.readyState?i():document.addEventListener?document.addEventListener("DOMContentLoaded",i):document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&i()}))},1164:()=>{!function(t,e,i){"use strict";let n;n=function(i,n){let s,o,r,a,h,l,c;return l=0,c=0,r=0,a={},h=[],o=0,s=function(t,e){for(r in this.options={speed:1,boost:0},e)this.options[r]=e[r];(this.options.speed<0||this.options.speed>1)&&(this.options.speed=1),t||(t="paraxify"),this.photos=t,a=this.options,h=[this.photos],this._init(this)},s.prototype={update(){for(c=e.innerHeight,r=0;r!!t.querySelector("body.block-editor-page"),_getScrollWrapper(){return this.isInEditor()?t.querySelector(".edit-site-visual-editor"):e},_initPhotos(){for(let t=0;t{this._initImageData(t)}),0)},_initImage(t,i){return""===t.bgSize||"auto"===t.bgSize?this.height{const t=this._initImage(n,i);n=t.main,i=t.actualHeight,s.onScrollFunction()}},_check(t){let i,n;n=h[t],n.ok=!0,n.bgSize=e.getComputedStyle(n,!1).backgroundSize,i=c,h[t].img.onload=()=>{const t=this._initImage(n,i);n=t.main,i=t.actualHeight}},_visible(t){const e=this._getOffsetTop(h[t]);return l+c>e&&le.pageYOffset+t.getBoundingClientRect().top,_animate(){let i,n;for(l=void 0!==e.pageYOffset?e.pageYOffset:(t.documentElement||t.body.parentNode||t.body).scrollTop,r=0;r{!function(t,e){t((function(){const t=document.querySelector("body");e.isCustomizerPreview()&&(t.classList.add("kubio-in-customizer"),window.wp.customize.bind("kubio-editor-preview-ready",(()=>{t.classList.add("kubio-in-customizer--loaded")}))),window.navigator.userAgent.indexOf("Edge")>-1&&t.classList.add("kubio--edge")}))}(jQuery,Colibri)},9068:()=>{let t=document.attachEvent,e=!1;function i(t){const e=t.__resizeTriggers__,i=e.firstElementChild,n=e.lastElementChild,s=i.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,s.style.width=i.offsetWidth+1+"px",s.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight}function n(t){const e=this;i(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=s((function(){(function(t){return t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height})(e)&&(e.__resizeLast__.width=e.offsetWidth,e.__resizeLast__.height=e.offsetHeight,e.__resizeListeners__.forEach((function(i){i.call(e,t)})))}))}if(!t){var s=function(){const t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)};return function(e){return t(e)}}(),o=function(){const t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout;return function(e){return t(e)}}(),r=!1,a="",h="animationstart",l="Webkit Moz O ms".split(" "),c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(r=!0),!1===r)for(let e=0;e div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),i.appendChild(n),e=!0}}(),s.__resizeLast__={},s.__resizeListeners__=[],(s.__resizeTriggers__=document.createElement("div")).className="resize-triggers",s.__resizeTriggers__.innerHTML='
',s.appendChild(s.__resizeTriggers__),i(s),s.addEventListener("scroll",n,{passive:!0}),h&&s.__resizeTriggers__.addEventListener(h,(function(t){t.animationName==d&&i(s)}))),s.__resizeListeners__.push(o))},window.removeResizeListener=function(e,i){if(t)e.detachEvent("onresize",i);else{if(!(e&&e.__resizeListeners__&&e.__resizeTriggers__))return;e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(i),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",n),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__))}}},9665:()=>{!function(t){function e(){try{var t,e;return window.isKubioBlockEditor||(null===(t=top)||void 0===t||null===(e=t.wp)||void 0===e?void 0:e.blockEditor)}catch(t){return!1}}"#page-top"===window.location.hash&&o("",5);const i={items:{},eachCategory(t){for(const e in this.items)this.items.hasOwnProperty(e)&&t(this.items[e])},addItem(t,e){this.items[t]||(this.items[t]=[]),this.items[t].push(e)},all(){let t=[];for(const e in this.items)this.items.hasOwnProperty(e)&&(t=t.concat(this.items[e]));return t}};let n=!1;function s(e){const i=isNaN(parseFloat(e.options.offset))?e.options.offset.call(e.target):e.options.offset;return e.target.offset().top-i-t("body").offset().top}function o(t,e){t===location.hash.replace("#","")||"page-top"===t&&""===location.hash.replace("#","")||setTimeout((function(){t=t?"page-top"===t?" ":"#"+t:" ",history&&history.replaceState&&history.replaceState({},"",t)}),e||100)}function r(e){if(n)return;n=!0;const i=s(e);t("html, body").animate({scrollTop:i},{easing:"linear",complete(){const i=s(e);t("html, body").animate({scrollTop:i},{easing:"linear",duration:100,complete(){n=!1,o(e.id,5)}})}})}function a(e){let i=(e.attr("href")||"").split("#").pop(),n=function(t){const e=jQuery(t)[0].href||"";let i="#";try{const t=new window.URL(e);i=[t.protocol,"//",t.host,t.pathname].join("")}catch(t){i=function(t){return t.split("?")[0].split("#")[0]}(e)}return i}(e),s=null,o=[location.protocol,"//",location.host,location.pathname].join("");if(n.length&&n!==o)return s;if(i.trim().length)try{s=t('[id="'+i+'"]')}catch(t){}return s&&s.length?s:null}function h(){i.eachCategory((function(t){const e=t.sort((function(t,e){return t.target.offset().top-e.target.offset().top})),i=e.filter((function(t){const e=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;return t.target.offset().top<=e+.5*window.innerHeight})).pop();e.forEach((function(t){i&&t.element.is(i.element)?(o(t.id,5),t.options.onChange.call(t.element)):t.options.onLeave.call(t.element)}))}))}function l(){const e=window.location.hash.replace("#",""),n=i.all().filter((function(t){return t.targetSel==='[id="'+decodeURIComponent(e).trim()+'"]'}));"complete"!==document.readyState&&"interactive"!==document.readyState&&t(window).on("load",(function(){n.length&&r(n[0]),h()}))}t.fn.smoothScrollAnchor=function(i){if(e())return;const n=t(this);i=jQuery.extend({offset(){const e=t(".h-navigation_sticky");return e.length?e[0].getBoundingClientRect().height:0}},i),n.each((function(){const e=t(this);if(!i.target&&!function(t,e){let{compareQuery:i=!1,compareHash:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||!e)return!0;let s=null,o=null;try{s=new URL(t),o=new URL(e)}catch(t){return!1}let r=s.origin===o.origin&&s.pathname===o.pathname;return i&&(r=r&&s.search===o.search),n&&(r=r&&s.hash===o.hash),r}(document.location.href,this.href))return;const n=i.target||a(e);if(n&&n.length&&!n.attr("skip-smooth-scroll")){const s=n.attr("id");let o=null;s&&(o='[id="'+s.trim()+'"]');const a={element:e,options:i,target:n,targetSel:i.targetSel||o,id:(n.attr("id")||"").trim()};e.off("click.smooth-scroll tap.smooth-scroll").on("click.smooth-scroll tap.smooth-scroll",(function(e){t(this).data("skip-smooth-scroll")||t(e.target).data("skip-smooth-scroll")||(e.preventDefault(),t(this).data("allow-propagation")||e.stopPropagation(),r(a),a.options.clickCallback&&a.options.clickCallback.call(this,e))}))}}))},t.fn.kubioScrollSpy=function(n){if(e())return;const s=t(this),o="spy-"+parseInt(Date.now()*Math.random());s.each((function(){const e=t(this),s=jQuery.extend({onChange(){},onLeave(){},clickCallback(){},smoothScrollAnchor:!1,offset:0},n);if(e.is("a")&&-1!==(e.attr("href")||"").indexOf("#")&&(e.attr("href")||"").replace("#","").length){const t=a(e);if(t&&!t.attr("skip-scroll-spy")){const r={element:e,options:s,target:t,targetSel:'[id="'+t.attr("id").trim()+'"]',id:t.attr("id").trim()};i.addItem(o,r),e.data("scrollSpy",r),n.smoothScrollAnchor&&e.smoothScrollAnchor(n)}}}))},e()||(window.addEventListener("scroll",h,{passive:!0}),t(window).on("smoothscroll.update",h),t(window).on("smoothscroll.update",l),t(l))}(jQuery)},6177:()=>{!function(t,e){const i="link",n=function(){this.namespace=i,this.defaults={href:"",target:"_self"},e.apply(this,arguments),this.start()};n.prototype={start(){const t=this;if(t.opts.href&&!t.opts["data-fancybox"]){t.$element.addClass("h-cursor-pointer");let e="mousedown";t.$element.hasClass("swiper-slide")&&(e="click"),t.$element.on(e,(function(e){const i=t.opts.target?t.opts.target:"_self";0===e.button?window.open(t.opts.href,i):1===e.button&&window.open(t.opts.href,"_blank")}))}},inside(){},outside(){}},n.inherits(e),e[i]=n,e.Plugin.create(i),e.Plugin.autoload(i)}(jQuery,Colibri)},9543:()=>{!function(t,e){const i="masonry",n=function(n,s){this.namespace=i,this.defaults={},e.apply(this,arguments),this.addResizeObserver(),this.bindedRestart=t.debounce(this.restart.bind(this),50),this.showMasonry()&&this.start()};function s(t,e){if(t[0].hasAttribute(e)&&"true"!==t.attr(e))return!0}n.prototype={start(){this.stop();let e=this.$element;this.$element.parent().length||this.stop(),this.settings.targetSelector&&(e=this.$element.find(this.settings.targetSelector).first()),this.$masonry=e,this.$masonry.masonry&&(this.$masonry.masonry({itemSelector:this.settings.itemSelector,columnWidth:this.settings.columnWidth,percentPosition:!0}),this.addEventListeners(),function(){const i=e.find("img");let n=0,s=0;function o(){if(n++,i.length===n)try{e.data().masonry.layout()}catch(t){console.error(t)}}i.each((function(){this.complete?(s++,o()):(t(this).on("load",o),t(this).on("error",o))})),i.length!==s&&"complete"===document.readyState&&setTimeout((function(){e.data().masonry.layout()}),10),t((function(){e.data().masonry.layout()}))}())},showMasonry(){return!s(this.$element,"data-show-masonry")&&!s(this.$element,"show-masonry")&&this.settings.enabled},stop(){this.removeEventListeners();try{this.$masonry.data().masonry&&this.$masonry.masonry("destroy")}catch(t){}},restart(){this.stop(),this.start()},addEventListeners(){this.addResizeListener(),this.$element.on("colibriContainerOpened",this.bindedRestart)},removeEventListeners(){this.removeResizeListener(),this.$element.off("colibriContainerOpened",this.bindedRestart)},addResizeListener(){this.resizeCount=0;try{this.resizeObserver.observe(this.$masonry.children().get(0))}catch(t){}},removeResizeListener(){var t;null==this||null===(t=this.resizeObserver)||void 0===t||t.disconnect()},addResizeObserver(){const t=this;this.resizeObserver=new ResizeObserver((e=>{0!==t.resizeCount?t.restart():t.resizeCount++}))},loadImages(){}},n.inherits(e),e[i]=n,e.Plugin.create(i),e.Plugin.autoload(i)}(jQuery,Colibri)},9633:()=>{var t;t=jQuery,Colibri,t((function(){const e=t(".kubio-language-switcher__flags"),i=e.find("li a");if(0===e.length)return;const n=t.throttle((t=>{e.hasClass("hover")?t.stopImmediatePropagation():(t.preventDefault(),t.stopImmediatePropagation(),e.addClass("hover"))}),500);t(window).on("tap",(()=>{e.hasClass("hover")&&e.removeClass("hover")})),i.on("tap",n)}))}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";i.r(n),i(8264);const t=function(){const t=jQuery;if("undefined"==typeof jQuery)throw new Error("Colibri requires jQuery");let e;!function(){const e=t.fn.jquery.split(".");if(1===e[0]&&e[1]<8)throw new Error("Colibri requires at least jQuery v1.8")}();const i="kubio",n=i+".",s=i+"-settings";var o;return Function.prototype.inherits=function(t){const e=function(){};e.prototype=t.prototype;const i=new e;for(const t in this.prototype)i[t]=this.prototype[t];this.prototype=i,this.prototype.super=t.prototype},e=function(e,i){i="object"==typeof i?i:{},this.$element=t(e);const o=this.$element.data();this.settings=this.$element.data(s)||{},this.opts=t.extend(!0,{},this.defaults,t.fn[n+this.namespace].options,o,this.settings,i),this.$target="string"==typeof this.opts.target?t(this.opts.target):null},e.getScrollingElement=function(){let t=window;return this.isBlockEditor()&&top===window&&(t=document.querySelector(".interface-interface-skeleton__content")),t},e.isCustomizerPreview=function(){return!!window.colibriCustomizerPreviewData},e.isBlockEditor=function(){var t,e;return!(null===(t=top)||void 0===t||null===(e=t.wp)||void 0===e||!e.blockEditor)},e.prototype={updateOpts(e){const i=this.$element.attr("data-"+s);i&&(this.settings=JSON.parse(i));const n=t.extend(!0,{},this.defaults,this.settings),o=e||{};this.opts=t.extend(!0,this.opts,n,o)},getInstance(){return this.$element.data("fn."+this.namespace)},hasTarget(){return!(null===this.$target)},callback(e){let i=[].slice.call(arguments).splice(1);return this.$element&&(i=this._fireCallback(t._data(this.$element[0],"events"),e,this.namespace,i)),this.$target&&(i=this._fireCallback(t._data(this.$target[0],"events"),e,this.namespace,i)),this.opts&&this.opts.callbacks&&"function"==typeof this.opts.callbacks[e]?this.opts.callbacks[e].apply(this,i):i},_fireCallback(t,e,i,n){let s;if(t&&void 0!==t[e]){const o=t[e].length;for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var s=arguments.length,o=new Array(s),r=0;r{t.apply(e,o)}),n)}}((()=>{e.Plugin.startAutoloadOnce()}),300),startAutoloadOnce(){const e=this,s=i+"-component";t("[data-"+s+"]:not([data-loaded]):not([data-disabled])").each((function(){const i=t(this),o=n+i.data(s);if(-1!==e.autoloadQueue.indexOf(o)){i.attr("data-loaded",!0);try{i[o]()}catch(t){console.error(t)}}}))},stopWatcher(){var t,e;null===(t=this.observer)||void 0===t||null===(e=t.disconnect)||void 0===e||e.call(t)},watch(){o.Plugin.startAutoloadOnce(),o.Plugin.startAutoload()},init(){window.isKubioBlockEditor&&!window.isInsideIframe||(t.isReady?o.Plugin.watch():t(document).ready(o.Plugin.watch))}},o.Plugin.init(),function(e){e.Animation=function(t,i,n){this.namespace="animation",this.defaults={},e.apply(this,arguments),this.effect=i,this.completeCallback=void 0!==n&&n,this.prefixes=["","-moz-","-o-animation-","-webkit-"],this.queue=[],this.start()},e.Animation.prototype={start(){this.isSlideEffect()&&this.setElementHeight(),this.addToQueue(),this.clean(),this.animate()},addToQueue(){this.queue.push(this.effect)},setElementHeight(){this.$element.height(this.$element.outerHeight())},removeElementHeight(){this.$element.css("height","")},isSlideEffect(){return"slideDown"===this.effect||"slideUp"===this.effect},isHideableEffect(){return-1!==t.inArray(this.effect,["fadeOut","slideUp","flipOut","zoomOut","slideOutUp","slideOutRight","slideOutLeft"])},isToggleEffect(){return"show"===this.effect||"hide"===this.effect},storeHideClasses(){this.$element.hasClass("hide-sm")?this.$element.data("hide-sm-class",!0):this.$element.hasClass("hide-md")&&this.$element.data("hide-md-class",!0)},revertHideClasses(){this.$element.data("hide-sm-class")?this.$element.addClass("hide-sm").removeData("hide-sm-class"):this.$element.data("hide-md-class")?this.$element.addClass("hide-md").removeData("hide-md-class"):this.$element.addClass("hide")},removeHideClass(){this.$element.data("hide-sm-class")?this.$element.removeClass("hide-sm"):this.$element.data("hide-md-class")?this.$element.removeClass("hide-md"):(this.$element.removeClass("hide"),this.$element.removeClass("force-hide"))},animate(){if(this.storeHideClasses(),this.isToggleEffect())return this.makeSimpleEffects();this.$element.addClass("kubio-animated"),this.$element.addClass(this.queue[0]),this.removeHideClass();const e=this.queue.length>1?null:this.completeCallback;this.complete("AnimationEnd",t.proxy(this.makeComplete,this),e)},makeSimpleEffects(){"show"===this.effect?this.removeHideClass():"hide"===this.effect&&this.revertHideClasses(),"function"==typeof this.completeCallback&&this.completeCallback(this)},makeComplete(){this.$element.hasClass(this.queue[0])&&(this.clean(),this.queue.shift(),this.queue.length&&this.animate())},complete(e,i,n){const s=e.split(" ").map((function(t){return t.toLowerCase()+" webkit"+t+" o"+t+" MS"+t}));this.$element.one(s.join(" "),t.proxy((function(){"function"==typeof i&&i(),this.isHideableEffect()&&this.revertHideClasses(),this.isSlideEffect()&&this.removeElementHeight(),"function"==typeof n&&n(this),this.$element.off(s.join(" "))}),this))},clean(){this.$element.removeClass("kubio-animated").removeClass(this.queue[0])}},e.Animation.inherits(e)}(e),function(){const i=n+"animation";t.fn[i]=function(i,n){const s="fn.animation";return this.each((function(){const o=t(this);o.data(s,{}),o.data(s,new e.Animation(this,i,n))}))},t.fn[i].options={},e.animate=function(t,e,n){return t[i](e,n),t}}(),function(e){e.Detect=function(){},e.Detect.prototype={isMobile:()=>/(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent),isDesktop:()=>!/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent),isMobileScreen:()=>t(window).width()<=768,isTabletScreen:()=>t(window).width()>=768&&t(window).width()<=1024,isDesktopScreen:()=>t(window).width()>1024}}(e),function(e){e.Utils=function(){},e.Utils.prototype={disableBodyScroll(){const e=t("html");let i=window.innerWidth;if(!i){const t=document.documentElement.getBoundingClientRect();i=t.right-Math.abs(t.left)}const n=document.body.clientWidth{e.forEach((e=>{t(e.intersectionRatio>0)}))}));return e.observe(this.get(0)),e}),i(9068),i(5425);class a{constructor(t,e){this.settings=e,this.element=t,this.isPlaying=!1,this.ready()}ready(){}play(){}pause(){}isPaused(){}setVideo(t){t.className="kubio-video-background-item",this.element.innerHTML="",this.element.appendChild(t),this.addResizeBind()}static test(){return!1}trigger(t){let e;"function"==typeof window.Event?e=new Event(t):(e=document.createEvent("Event"),e.initEvent(t,!0,!0)),this.element.dispatchEvent(e)}loaded(){this.trigger("video-bg-loaded")}addResizeBind(){this.trigger("video-bg-resize"),this.onResize((()=>{this.trigger("video-bg-resize")}))}onLoad(t){jQuery(this.element).on("video-bg-loaded",t)}onResize(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;t=jQuery.debounce(t,e),jQuery(window).resize(t),jQuery(window).on("orientationchange",t)}}const h=/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|&v(?:i)?=))([^#&?]*).*/,l={native:class extends a{constructor(t,e){return super(t,e),this}static test(t){return document.createElement("video").canPlayType(t.mimeType)}isPaused(){return this.video.paused}ready(){if(this.settings.poster&&(this.element.style.backgroundImage=`url("${this.settings.poster}")`),!this.settings.videoUrl)return;const t=document.createElement("video");t.id=this.settings.id||"",t.loop="loop",t.muted="muted",t.autoplay="autoplay",t.setAttribute("playsinline",!0),this.settings.width&&(t.width=this.settings.width),this.settings.height&&(t.height=this.settings.height),t.addEventListener("play",(()=>{this.trigger("play")})),t.addEventListener("pause",(()=>{this.trigger("pause")})),t.addEventListener("loadeddata",(()=>{this.loaded()})),this.video=t,this.setVideo(t),t.src=this.settings.videoUrl}pause(){this.video.pause()}stopVideo(){this.video.pause(),this.video.currentTime=0}play(){this.video.play()}},youtube:class extends a{constructor(t,e){return super(t,e),this}static test(t){return"video/x-youtube"===t.mimeType}ready(){if(this.settings.poster&&(this.element.style.backgroundImage=`url("${this.settings.poster}")`),"YT"in window)window.YT.ready((()=>{this.loadVideo()}));else{const t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",t.onload=()=>{window.YT.ready((()=>{this.loadVideo()}))},document.getElementsByTagName("head")[0].appendChild(t)}}getVideoID(){const t=this.settings.videoUrl.match(h);return t&&t.length>=2?t[1]:null}getYTOptions(){const t={videoId:this.getVideoID(),events:{onReady:t=>{const e=t.target;e.mute(),top.yt1=e,e.setPlaybackQuality("auto"),this.play(),this.loaded()},onStateChange:t=>{window.YT.PlayerState.PLAYING===t.data?this.trigger("play"):window.YT.PlayerState.PAUSED===t.data?this.trigger("pause"):window.YT.PlayerState.ENDED===t.data&&t.target.playVideo()},onError:t=>{this.player.getIframe().style.display="none"}},playerVars:{autoplay:1,controls:0,disablekb:1,fs:0,iv_load_policy:3,loop:1,modestbranding:1,playsinline:1,rel:0,showinfo:0,mute:1}};return this.settings.height?t.height=this.settings.height:t.height=1080,this.settings.width?t.width=this.settings.width:t.width=1920,t}loadVideo(){const t=document.createElement("div");window.YT,this.setVideo(t),this.player=new window.YT.Player(t,this.getYTOptions())}updateVideoSize(){if(!this.player)return;const t=jQuery(this.player.getIframe()),e=this.calcVideosSize();t.css(e),t.addClass("ready")}calcVideosSize(){const t=jQuery(this.element).outerWidth(),e=jQuery(this.element).outerHeight(),i="16:9".split(":"),n=i[0]/i[1],s=t/e>n;return{width:1*(s?t:e*n),height:1*(s?t/n:e)}}play(){this.player&&this.player.playVideo&&(this.isPlaying||(this.isPlaying=!0,this.player.playVideo()))}stopVideo(){this.player&&this.player.stopVideo&&this.isPlaying&&(this.isPlaying=!1,this.player.stopVideo())}pause(){this.player&&this.player.pauseVideo&&!this.isPlaying&&(this.isPlaying=!1,this.player.pauseVideo())}isPaused(){return YT.PlayerState.PAUSED===this.player.getPlayerState()}loaded(){this.updateVideoSize(),super.loaded()}addResizeBind(){this.onResize((()=>this.updateVideoSize()),50),super.addResizeBind()}}};class c{static componentName(){throw new TypeError("name getter should be implemented")}constructor(t,i){return this.$=jQuery,this.namespace=this.constructor.componentName(),this.utils=new e.Utils,this.detect=new e.Detect,this.init(),e.apply(this,arguments),this.start(),this.isCustomizerPreview()&&this.wpCustomize(wp.customize),this}init(){}isCustomizerPreview(){return e.isCustomizerPreview()}wpCustomize(t){}wpSettingBind(t,e){window.wp.customize(t,(function(t){t.bind(e)}))}updateData(t){this.opts=jQuery.extend({},this.opts,t),this.restart()}restart(){}start(){}}e.registerPlugin=function(t,i,n){"function"==typeof t.componentName&&(n=i,t=(i=t).componentName()),e[t]=i,e.Plugin.create(t),!1!==n&&e.Plugin.autoload(t)},e.registerPlugin(class extends c{static componentName(){return"video-background"}init(){this.videoData={},this.handler=!1,this.debouncedSetPosition=jQuery.debounce(this.updateVideoBackground.bind(this),100),this.resizeObserve=t=>{this.debouncedSetPosition()},this.resizeObserver=new window.ResizeObserver(this.resizeObserve)}generateVideo(){for(const t in l)if(l.hasOwnProperty(t)&&l[t].test(this.videoData)){this.$element.empty(),this.handler=new l[t](this.$element[0],this.videoData);break}this.handler&&(this.handler.onLoad((()=>{this.debouncedSetPosition(),this.handler.onResize((()=>this.debouncedSetPosition())),this.resizeObserver.observe(this.handler.element)})),window.hop&&(window.addResizeListener(this.$element.closest(".background-wrapper").parent()[0],this.debouncedSetPosition),this.debouncedSetPosition()))}stopVideo(){this.handler.stopVideo&&this.handler.stopVideo()}play(){this.handler.play&&this.handler.play()}updateVideoBackground(){this.handler.updateVideoSize&&this.handler.updateVideoSize(),this.setPosition()}setPosition(){if(this.handler.pause(),"none"===this.$element.children("iframe,video").eq(0).css("display"))return;const t=this.$element.children("iframe,video").eq(0),e=t.is("iframe")?50:this.opts.positionX,i=t.is("iframe")?50:this.opts.positionY,n=Math.max(t.width()-this.$element.width(),0)*parseFloat(e)/100,s=Math.max(t.height()-this.$element.height(),0)*parseFloat(i)/100;t.css({transform:`translate(-${n}px,-${s}px)`,"-webkit-transform":`translate(-${n}px,-${s}px)`}),this.$element.addClass("visible"),setTimeout((()=>{this.handler.play()}),100)}start(){this.videoData={mimeType:this.opts.mimeType,videoUrl:this.opts.video},"string"==typeof this.opts.poster&&(this.poster=this.opts.poster),this.generateVideo()}stop(){window.removeResizeListener(this.$element.closest(".background-wrapper").parent()[0],this.debouncedSetPosition)}restart(){this.stop(),this.start()}}),e.registerPlugin(class extends c{static componentName(){return"slideshow"}init(){this.currentIndex=0,this.interval=-1,this.debouncedRestart=r()((()=>{this.stop(),this.start()}),500)}addImageEffect(t,e){const i=this.opts.duration.replace("ms",""),n=this.opts.speed.replace("ms","");let s=parseInt(i)-parseInt(n);s<0&&(s=0),this.$(t).css({transition:`opacity ${n}ms ease ${s}ms`,zIndex:this.$images.length-e})}slideImage(){this.$images.eq(this.currentIndex).removeClass("current");const t=this.currentIndex+1===this.$images.length?0:this.currentIndex+1;this.$images.eq(t).addClass("current").removeClass("next"),this.currentIndex=t;const e=this.currentIndex+1===this.$images.length?0:this.currentIndex+1;this.$images.eq(e).addClass("next")}restart(){this.debouncedRestart()}start(){this.$images=this.$element.find(".slideshow-image"),this.$images.removeClass("current"),this.$images.length<=1||(this.$images.eq(0).addClass("current"),this.currentIndex=0,this.$images.each(((t,e)=>{this.addImageEffect(e,t)})),this.interval=setInterval((()=>{this.slideImage()}),parseInt(this.opts.duration)))}stop(){clearInterval(this.interval),this.$images.css({transition:"",opacity:""}),this.$images.removeClass("current next"),this.$images.eq(0).addClass("current"),this.currentIndex=0}}),i(1164),function(t,e){const i="parallax",n=function(t,n){this.namespace=i,this.defaults={},e.apply(this,arguments),this.start()};n.prototype={start(){if(this.isEnabled=this.opts.enabled,!this.isEnabled)return void this.stop();if(this.isiOS())return void this.$element.addClass("paraxify--ios");this.$element[0]&&(this.paraxify=paraxify(this.$element[0]));const e=this;this.firstRestart=!1,this.restartScriptDebounce=t.debounce((function(){!1!==e.firstRestart?e.restart():e.firstRestart=!0}),100),this._addEventListeners()},stop(){this._removeEventListener(),this.paraxify&&(this.paraxify.destroy(),this.paraxify=null)},isiOS:()=>(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream,restart(){this.stop(),this.start()},_addEventListeners(){window.addResizeListener(this.$element[0],this.restartScriptDebounce)},_removeEventListener(){window.removeResizeListener(this.$element[0],this.restartScriptDebounce)}},n.inherits(e),e[i]=n,e.Plugin.create(i),e.Plugin.autoload(i)}(jQuery,Colibri),i(6177),i(183),i(9633),i(9665),i(9543)})(),(window.kubio=window.kubio||{}).scripts=n})();