!function(e){woodmartThemeModule.woocommerceNotices=function(){woodmartThemeModule.$body.on("click",".woocommerce-error, .woocommerce-info, .woocommerce-message, div.wpcf7-response-output, #yith-wcwl-popup-message, .mc4wp-alert, .dokan-store-contact .alert-success, .yith_ywraq_add_item_product_message",function(){o(e(this))});var o=function(o){o.removeClass("shown-notice").addClass("hidden-notice")}},e(document).ready(function(){woodmartThemeModule.woocommerceNotices()})}(jQuery);
woodmartThemeModule.trackProductViewed=function(){var e,o,t,i;"visible"===document.visibilityState&&(e="woodmart_recently_viewed_products",o=document.querySelector(".single-product-page"))&&"undefined"!=typeof Cookies&&(o=o.id.replace("product-",""),t=(t=Cookies.get(e))?(-1!==(i=(t=t.split("|")).indexOf(o))&&t.splice(i,1),t.unshift(o),t.join("|")):o,Cookies.set(e,t,{expires:7,path:woodmart_settings.cookie_path,secure:woodmart_settings.cookie_secure_param}))},window.addEventListener("load",function(){woodmartThemeModule.trackProductViewed()});
(function(we,xe){typeof exports=="object"&&typeof module<"u"?module.exports=xe():typeof define=="function"&&define.amd?define("uikit",xe):(we=typeof globalThis<"u"?globalThis:we||self,we.bdtUIkit=xe())})(this,function(){"use strict";const{hasOwnProperty:we,toString:xe}=Object.prototype;function pt(t,e){return we.call(t,e)}const nr=/\B([A-Z])/g,Dt=ct(t=>t.replace(nr,"-$1").toLowerCase()),or=/-(\w)/g,$e=ct(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(or,(e,i)=>i.toUpperCase())),kt=ct(t=>t.charAt(0).toUpperCase()+t.slice(1));function gt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function Qt(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function v(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function wt(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:G,from:Zt}=Array,{assign:ft}=Object;function tt(t){return typeof t=="function"}function St(t){return t!==null&&typeof t=="object"}function te(t){return xe.call(t)==="[object Object]"}function Qe(t){return St(t)&&t===t.window}function ye(t){return Li(t)===9}function Ze(t){return Li(t)>=1}function ke(t){return Li(t)===1}function Li(t){return!Qe(t)&&St(t)&&t.nodeType}function ee(t){return typeof t=="boolean"}function z(t){return typeof t=="string"}function Se(t){return typeof t=="number"}function mt(t){return Se(t)||z(t)&&!isNaN(t-parseFloat(t))}function ti(t){return!(G(t)?t.length:St(t)&&Object.keys(t).length)}function X(t){return t===void 0}function Wi(t){return ee(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function xt(t){const e=Number(t);return isNaN(e)?!1:e}function k(t){return parseFloat(t)||0}function W(t){return t&&T(t)[0]}function T(t){return Ze(t)?[t]:Array.from(t||[]).filter(Ze)}function Mt(t){if(Qe(t))return t;t=W(t);const e=ye(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Ie(t,e){return t===e||St(t)&&St(e)&&Object.keys(t).length===Object.keys(e).length&&ie(t,(i,s)=>i===e[s])}function ji(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function Bt(t){return t[t.length-1]}function ie(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function js(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function Nt(t,e){return t.reduce((i,s)=>i+k(tt(e)?e(s):s[e]),0)}function Rs(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function Ri(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function Q(t,e=0,i=1){return Math.min(Math.max(xt(t)||0,e),i)}function A(){}function ei(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function ii(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function qi(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function qs(t,e){t={...t};for(const i in t)t=t[i]>e[i]?qi(t,i,e[i]):t;return t}function rr(t,e){t=qs(t,e);for(const i in t)t=t[i]<e[i]?qi(t,i,e[i]):t;return t}const Ui={ratio:qi,contain:qs,cover:rr};function nt(t,e,i=0,s=!1){e=T(e);const{length:n}=e;return n?(t=mt(t)?xt(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?n-1:e.indexOf(W(t)),s?Q(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function ct(t){const e=Object.create(null);return(i,...s)=>e[i]||(e[i]=t(i,...s))}function S(t,...e){for(const i of T(t)){const s=zt(e).filter(n=>!x(i,n));s.length&&i.classList.add(...s)}}function _(t,...e){for(const i of T(t)){const s=zt(e).filter(n=>x(i,n));s.length&&i.classList.remove(...s)}}function si(t,e,i){i=zt(i),e=zt(e).filter(s=>!v(i,s)),_(t,e),S(t,i)}function x(t,e){return[e]=zt(e),T(t).some(i=>i.classList.contains(e))}function j(t,e,i){const s=zt(e);X(i)||(i=!!i);for(const n of T(t))for(const o of s)n.classList.toggle(o,i)}function zt(t){return t?G(t)?t.map(zt).flat():String(t).split(" ").filter(Boolean):[]}function g(t,e,i){var s;if(St(e)){for(const n in e)g(t,n,e[n]);return}if(X(i))return(s=W(t))==null?void 0:s.getAttribute(e);for(const n of T(t))tt(i)&&(i=i.call(n,g(n,e))),i===null?Ee(n,e):n.setAttribute(e,i)}function It(t,e){return T(t).some(i=>i.hasAttribute(e))}function Ee(t,e){T(t).forEach(i=>i.removeAttribute(e))}function J(t,e){for(const i of[e,`data-${e}`])if(It(t,i))return g(t,i)}const Ft=typeof window<"u",U=Ft&&document.dir==="rtl",se=Ft&&"ontouchstart"in window,ne=Ft&&window.PointerEvent,ht=ne?"pointerdown":se?"touchstart":"mousedown",ni=ne?"pointermove":se?"touchmove":"mousemove",Et=ne?"pointerup":se?"touchend":"mouseup",Ht=ne?"pointerenter":se?"":"mouseenter",oe=ne?"pointerleave":se?"":"mouseleave",oi=ne?"pointercancel":"touchcancel",ar={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Vi(t){return T(t).some(e=>ar[e.tagName.toLowerCase()])}const lr=Ft&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function R(t){return T(t).some(e=>lr.call(e))}const Te="input,select,textarea,button";function ri(t){return T(t).some(e=>C(e,Te))}const Ce=`${Te},a[href],[tabindex]`;function ai(t){return C(t,Ce)}function D(t){var e;return(e=W(t))==null?void 0:e.parentElement}function Pe(t,e){return T(t).filter(i=>C(i,e))}function C(t,e){return T(t).some(i=>i.matches(e))}function _e(t,e){const i=[];for(;t=D(t);)(!e||C(t,e))&&i.push(t);return i}function M(t,e){t=W(t);const i=t?Zt(t.children):[];return e?Pe(i,e):i}function $t(t,e){return e?T(t).indexOf(W(e)):M(D(t)).indexOf(t)}function re(t){return t=W(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function Yi(t){if(re(t)){const{hash:e,ownerDocument:i}=W(t),s=decodeURIComponent(e).slice(1);return i.getElementById(s)||i.getElementsByName(s)[0]}}function Z(t,e){return Gi(t,Us(t,e))}function Ae(t,e){return Oe(t,Us(t,e))}function Gi(t,e){return W(Gs(t,W(e),"querySelector"))}function Oe(t,e){return T(Gs(t,W(e),"querySelectorAll"))}function Us(t,e=document){return z(t)&&Vs(t).isContextSelector||ye(e)?e:e.ownerDocument}const cr=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,hr=/(\([^)]*\)|[^,])+/g,Vs=ct(t=>{t=t.replace(cr,"$1 *");let e=!1;const i=[];for(let s of t.match(hr))s=s.trim(),e||(e=["!","+","~","-",">"].includes(s[0])),i.push(s);return{selector:i.join(","),selectors:i,isContextSelector:e}}),ur=/(\([^)]*\)|\S)*/,Ys=ct(t=>{t=t.slice(1).trim();const[e]=t.match(ur);return[e,t.slice(e.length+1)]});function Gs(t,e=document,i){if(!t||!z(t))return t;const s=Vs(t);if(!s.isContextSelector)return Xi(e,i,s.selector);t="";const n=s.selectors.length===1;for(let o of s.selectors){let r,a=e;if(o[0]==="!"&&([r,o]=Ys(o),a=e.parentElement.closest(r),!o&&n)||a&&o[0]==="-"&&([r,o]=Ys(o),a=a.previousElementSibling,a=C(a,r)?a:null,!o&&n))return a;if(a){if(n)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${$t(a)+1}) ${o}`,a=a.parentElement):o[0]===">"&&(o=`:scope ${o}`),Xi(a,i,o);t+=`${t?",":""}${fr(a)} ${o}`}}return ye(e)||(e=e.ownerDocument),Xi(e,i,t)}function Xi(t,e,i){try{return t[e](i)}catch{return null}}function fr(t){const e=[];for(;t.parentNode;){const i=g(t,"id");if(i){e.unshift(`#${Ji(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${$t(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Ji(t){return z(t)?CSS.escape(t):""}function $(...t){let[e,i,s,n,o=!1]=Ki(t);n.length>1&&(n=pr(n)),o!=null&&o.self&&(n=gr(n)),s&&(n=dr(s,n));for(const r of i)for(const a of e)a.addEventListener(r,n,o);return()=>Tt(e,i,n,o)}function Tt(...t){let[e,i,,s,n=!1]=Ki(t);for(const o of i)for(const r of e)r.removeEventListener(o,s,n)}function F(...t){const[e,i,s,n,o=!1,r]=Ki(t),a=$(e,i,s,l=>{const c=!r||r(l);c&&(a(),n(l,c))},o);return a}function b(t,e,i){return Qi(t).every(s=>s.dispatchEvent(ae(e,!0,!0,i)))}function ae(t,e=!0,i=!1,s){return z(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Ki(t){return t[0]=Qi(t[0]),z(t[1])&&(t[1]=t[1].split(" ")),tt(t[2])&&t.splice(2,0,!1),t}function dr(t,e){return i=>{const s=t[0]===">"?Oe(t,i.currentTarget).reverse().find(n=>n.contains(i.target)):i.target.closest(t);s&&(i.current=s,e.call(this,i),delete i.current)}}function pr(t){return e=>G(e.detail)?t(e,...e.detail):t(e)}function gr(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Xs(t){return t&&"addEventListener"in t}function mr(t){return Xs(t)?t:W(t)}function Qi(t){return G(t)?t.map(mr).filter(Boolean):z(t)?Oe(t):Xs(t)?[t]:T(t)}function dt(t){return t.pointerType==="touch"||!!t.touches}function yt(t){var e,i;const{clientX:s,clientY:n}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:s,y:n}}const vr={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function h(t,e,i,s){const n=T(t);for(const o of n)if(z(e)){if(e=li(e),X(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,mt(i)&&!vr[e]?`${i}px`:i||Se(i)?i:"",s)}else if(G(e)){const r={};for(const a of e)r[a]=h(o,a);return r}else if(St(e))for(const r in e)h(o,r,e[r],i);return n[0]}const li=ct(t=>{if(gt(t,"--"))return t;t=Dt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const s=`-${i}-${t}`;if(s in e)return s}}),Zi="bdt-transition",ts="transitionend",es="transitioncanceled";function br(t,e,i=400,s="linear"){return i=Math.round(i),Promise.all(T(t).map(n=>new Promise((o,r)=>{for(const l in e)h(n,l);const a=setTimeout(()=>b(n,ts),i);F(n,[ts,es],({type:l})=>{clearTimeout(a),_(n,Zi),h(n,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),l===es?r():o(n)},{self:!0}),S(n,Zi),h(n,{transitionProperty:Object.keys(e).map(li).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s,...e})})))}const B={start:br,async stop(t){b(t,ts),await Promise.resolve()},async cancel(t){b(t,es),await Promise.resolve()},inProgress(t){return x(t,Zi)}},De="bdt-animation",Js="animationend",ci="animationcanceled";function Ks(t,e,i=200,s,n){return Promise.all(T(t).map(o=>new Promise((r,a)=>{x(o,De)&&b(o,ci);const l=[e,De,`${De}-${n?"leave":"enter"}`,s&&`bdt-transform-origin-${s}`,n&&`${De}-reverse`],c=setTimeout(()=>b(o,Js),i);F(o,[Js,ci],({type:u})=>{clearTimeout(c),u===ci?a():r(o),h(o,"animationDuration",""),_(o,l)},{self:!0}),h(o,"animationDuration",`${i}ms`),S(o,l)})))}const Ct={in:Ks,out(t,e,i,s){return Ks(t,e,i,s,!0)},inProgress(t){return x(t,De)},cancel(t){b(t,ci)}};function wr(t){if(document.readyState!=="loading"){t();return}F(document,"DOMContentLoaded",t)}function H(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function Qs(t){return t=y(t),t.innerHTML="",t}function Pt(t,e){return X(e)?y(t).innerHTML:q(Qs(t),e)}const xr=fi("prepend"),q=fi("append"),hi=fi("before"),ui=fi("after");function fi(t){return function(e,i){var s;const n=T(z(i)?Lt(i):i);return(s=y(e))==null||s[t](...n),Zs(n)}}function ot(t){T(t).forEach(e=>e.remove())}function di(t,e){for(e=W(hi(t,e));e.firstElementChild;)e=e.firstElementChild;return q(e,t),e}function is(t,e){return T(T(t).map(i=>i.hasChildNodes()?di(Zt(i.childNodes),e):q(i,e)))}function Me(t){T(t).map(D).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const $r=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Lt(t){const e=$r.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Zs(i.content.childNodes)}function Zs(t){return t.length>1?t:t[0]}function _t(t,e){if(ke(t))for(e(t),t=t.firstElementChild;t;)_t(t,e),t=t.nextElementSibling}function y(t,e){return tn(t)?W(Lt(t)):Gi(t,e)}function N(t,e){return tn(t)?T(Lt(t)):Oe(t,e)}function tn(t){return z(t)&&gt(t.trim(),"<")}const Wt={width:["left","right"],height:["top","bottom"]};function m(t){const e=ke(t)?W(t).getBoundingClientRect():{height:et(t),width:pi(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function E(t,e){e&&h(t,{left:0,top:0});const i=m(t);if(t){const{scrollY:s,scrollX:n}=Mt(t),o={height:s,width:n};for(const r in Wt)for(const a of Wt[r])i[a]+=o[r]}if(!e)return i;for(const s of["left","top"])h(t,s,e[s]-i[s])}function ss(t){let{top:e,left:i}=E(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:o}=W(t);let r=o||n;for(;r&&(r===s||r===n)&&h(r,"position")==="static";)r=r.parentNode;if(ke(r)){const a=E(r);e-=a.top+k(h(r,"borderTopWidth")),i-=a.left+k(h(r,"borderLeftWidth"))}return{top:e-k(h(t,"marginTop")),left:i-k(h(t,"marginLeft"))}}function Be(t){t=W(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+k(h(t,"borderTopWidth")),e[1]+=t.offsetLeft+k(h(t,"borderLeftWidth")),h(t,"position")==="fixed"){const i=Mt(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const et=en("height"),pi=en("width");function en(t){const e=kt(t);return(i,s)=>{if(X(s)){if(Qe(i))return i[`inner${e}`];if(ye(i)){const n=i.documentElement;return Math.max(n[`offset${e}`],n[`scroll${e}`])}return i=W(i),s=h(i,t),s=s==="auto"?i[`offset${e}`]:k(s)||0,s-le(i,t)}else return h(i,t,!s&&s!==0?"":+s+le(i,t)+"px")}}function le(t,e,i="border-box"){return h(t,"boxSizing")===i?Nt(Wt[e].map(kt),s=>k(h(t,`padding${s}`))+k(h(t,`border${s}Width`))):0}function gi(t){for(const e in Wt)for(const i in Wt[e])if(Wt[e][i]===t)return Wt[e][1-i];return t}function Y(t,e="width",i=window,s=!1){return z(t)?Nt(kr(t),n=>{const o=Ir(n);return o?Er(o==="vh"?Tr():o==="vw"?pi(Mt(i)):s?i[`offset${kt(e)}`]:m(i)[e],n):n}):k(t)}const yr=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,kr=ct(t=>t.toString().replace(/\s/g,"").match(yr)||[]),Sr=/(?:v[hw]|%)$/,Ir=ct(t=>(t.match(Sr)||[])[0]);function Er(t,e){return t*k(e)/100}let Ne,ce;function Tr(){return Ne||(ce||(ce=y("<div>"),h(ce,{height:"100vh",position:"fixed"}),$(window,"resize",()=>Ne=null)),q(document.body,ce),Ne=ce.clientHeight,ot(ce),Ne)}const At={read:Cr,write:Pr,clear:_r,flush:sn},mi=[],vi=[];function Cr(t){return mi.push(t),os(),t}function Pr(t){return vi.push(t),os(),t}function _r(t){on(mi,t),on(vi,t)}let ns=!1;function sn(){nn(mi),nn(vi.splice(0)),ns=!1,(mi.length||vi.length)&&os()}function os(){ns||(ns=!0,queueMicrotask(sn))}function nn(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function on(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}class rn{init(){this.positions=[];let e;this.unbind=$(document,"mousemove",i=>e=yt(i)),this.interval=setInterval(()=>{e&&(this.positions.push(e),this.positions.length>5&&this.positions.shift())},50)}cancel(){var e;(e=this.unbind)==null||e.call(this),clearInterval(this.interval)}movesTo(e){if(!this.positions||this.positions.length<2)return!1;const i=m(e),{left:s,right:n,top:o,bottom:r}=i,[a]=this.positions,l=Bt(this.positions),c=[a,l];return ii(l,i)?!1:[[{x:s,y:o},{x:n,y:r}],[{x:s,y:r},{x:n,y:o}]].some(f=>{const d=Ar(c,f);return d&&ii(d,i)})}}function Ar([{x:t,y:e},{x:i,y:s}],[{x:n,y:o},{x:r,y:a}]){const l=(a-o)*(i-t)-(r-n)*(s-e);if(l===0)return!1;const c=((r-n)*(e-o)-(a-o)*(t-n))/l;return c<0?!1:{x:t+c*(i-t),y:e+c*(s-e)}}function an(t,e,i={},{intersecting:s=!0}={}){const n=new IntersectionObserver(s?(o,r)=>{o.some(a=>a.isIntersecting)&&e(o,r)}:e,i);for(const o of T(t))n.observe(o);return n}const Or=Ft&&window.ResizeObserver;function ze(t,e,i={box:"border-box"}){if(Or)return ln(ResizeObserver,t,e,i);const s=[$(window,"load resize",e),$(document,"loadedmetadata load",e,!0)];return{disconnect:()=>s.map(n=>n())}}function rs(t){return{disconnect:$([window,window.visualViewport],"resize",t)}}function as(t,e,i){return ln(MutationObserver,t,e,i)}function ln(t,e,i,s){const n=new t(i);for(const o of T(e))n.observe(o,s);return n}function ls(t){xi(t)&&cs(t,{func:"playVideo",method:"play"}),wi(t)&&t.play().catch(A)}function bi(t){xi(t)&&cs(t,{func:"pauseVideo",method:"pause"}),wi(t)&&t.pause()}function cn(t){xi(t)&&cs(t,{func:"mute",method:"setVolume",value:0}),wi(t)&&(t.muted=!0)}function hn(t){return wi(t)||xi(t)}function wi(t){return H(t,"video")}function xi(t){return H(t,"iframe")&&(un(t)||fn(t))}function un(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function fn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function cs(t,e){await Mr(t),dn(t,e)}function dn(t,e){t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}const hs="_ukPlayer";let Dr=0;function Mr(t){if(t[hs])return t[hs];const e=un(t),i=fn(t),s=++Dr;let n;return t[hs]=new Promise(o=>{e&&F(t,"load",()=>{const r=()=>dn(t,{event:"listening",id:s});n=setInterval(r,100),r()}),F(window,"message",o,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===s&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===s}catch{}}),t.src=`${t.src}${v(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(n))}function Br(t,e=0,i=0){return R(t)?ei(...Rt(t).map(s=>{const{top:n,left:o,bottom:r,right:a}=rt(s);return{top:n-e,left:o-i,bottom:r+e,right:a+i}}).concat(E(t))):!1}function pn(t,{offset:e=0}={}){const i=R(t)?jt(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:c,scrollHeight:u,offsetHeight:f}=a,d=rt(a),p=u-d.height,{height:w,top:I}=i[l-1]?rt(i[l-1]):E(t);let P=Math.ceil(I-d.top-e+c);return e>0&&f<w+e?P+=e:e=0,P>p?(e-=P-p,P=p):P<0&&(e-=P,P=0),()=>s(a,P-c,t,p).then(r)},()=>Promise.resolve())();function s(r,a,l,c){return new Promise(u=>{const f=r.scrollTop,d=n(Math.abs(a)),p=Date.now(),w=ds(r)===r,I=E(l).top+(w?0:f);let P=0,vt=15;(function ve(){const be=o(Q((Date.now()-p)/d));let bt=0;i[0]===r&&f+a<c&&(bt=E(l).top+(w?0:r.scrollTop)-I-m(us(l)).height),r.scrollTop=f+(a+bt)*be,be===1&&(P===bt||!vt--)?u():(P=bt,requestAnimationFrame(ve))})()})}function n(r){return 40*Math.pow(r,.375)}function o(r){return .5*(1-Math.cos(Math.PI*r))}}function $i(t,e=0,i=0){if(!R(t))return 0;const s=Ot(t,!0),{scrollHeight:n,scrollTop:o}=s,{height:r}=rt(s),a=n-r,l=Be(t)[0]-Be(s)[0],c=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return c<u?Q((o-c)/(u-c)):1}function jt(t,e=!1,i=[]){const s=ds(t);let n=_e(t).reverse();n=n.slice(n.indexOf(s)+1);const o=wt(n,r=>h(r,"position")==="fixed");return~o&&(n=n.slice(o)),[s].concat(n.filter(r=>h(r,"overflow").split(" ").some(a=>v(["auto","scroll",...i],a))&&(!e||r.scrollHeight>rt(r).height))).reverse()}function Ot(...t){return jt(...t)[0]}function Rt(t){return jt(t,!1,["hidden","clip"])}function rt(t){const e=Mt(t),i=ds(t),s=t.contains(i);if(s&&e.visualViewport){let{height:l,width:c,scale:u,pageTop:f,pageLeft:d}=e.visualViewport;return l=Math.round(l*u),c=Math.round(c*u),{height:l,width:c,top:f,left:d,bottom:f+l,right:d+c}}let n=E(s?e:t);if(h(t,"display")==="inline")return n;const{body:o,documentElement:r}=e.document,a=s?i===r||i.clientHeight<o.clientHeight?i:o:t;for(let[l,c,u,f]of[["width","x","left","right"],["height","y","top","bottom"]]){const d=n[l]%1;n[u]+=k(h(a,`border-${u}-width`)),n[l]=n[c]=a[`client${kt(l)}`]-(d?d<.5?-d:1-d:0),n[f]=n[l]+n[u]}return n}function us(t){const{left:e,width:i,top:s}=m(t);for(const n of s?[0,s]:[0]){let o;for(const r of Mt(t).document.elementsFromPoint(e+i/2,n))!r.contains(t)&&!x(r,"bdt-togglable-leave")&&(fs(r,"fixed")&&gn(_e(t).reverse().find(a=>!a.contains(r)&&!fs(a,"static")))<gn(r)||fs(r,"sticky")&&D(r).contains(t))&&(!o||m(o).height<m(r).height)&&(o=r);if(o)return o}}function gn(t){return k(h(t,"zIndex"))}function fs(t,e){return h(t,"position")===e}function ds(t){return Mt(t).document.scrollingElement}const at=[["width","x","left","right"],["height","y","top","bottom"]];function mn(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},G(e)||(e=[e,e]),E(t,vn(t,e,i))}function vn(t,e,i){const s=bn(t,e,i),{boundary:n,viewportOffset:o=0,placement:r}=i;let a=s;for(const[l,[c,,u,f]]of Object.entries(at)){const d=Nr(t,e[l],o,n,l);if(yi(s,d,l))continue;let p=0;if(r[l]==="flip"){const w=i.attach.target[l];if(w===f&&s[f]<=d[f]||w===u&&s[u]>=d[u])continue;p=Fr(t,e,i,l)[u]-s[u];const I=zr(t,e[l],o,l);if(!yi(ps(s,p,l),I,l)){if(yi(s,I,l))continue;if(i.recursion)return!1;const P=Hr(t,e,i);if(P&&yi(P,I,1-l))return P;continue}}else if(r[l]==="shift"){const w=E(e[l]),{offset:I}=i;p=Q(Q(s[u],d[u],d[f]-s[c]),w[u]-s[c]+I[l],w[f]-I[l])-s[u]}a=ps(a,p,l)}return a}function bn(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=E(t);for(const[r,[a,,l,c]]of Object.entries(at)){const u=s.target[r]===s.element[r]?rt(e[r]):E(e[r]);o=ps(o,u[l]-o[l]+wn(s.target[r],c,u[a])-wn(s.element[r],c,o[a])+ +n[r],r)}return o}function ps(t,e,i){const[,s,n,o]=at[i],r={...t};return r[n]=t[s]=t[n]+e,r[o]+=e,r}function wn(t,e,i){return t==="center"?i/2:t===e?i:0}function Nr(t,e,i,s,n){let o=$n(...xn(t,e).map(rt));return i&&(o[at[n][2]]+=i,o[at[n][3]]-=i),s&&(o=$n(o,E(G(s)?s[n]:s))),o}function zr(t,e,i,s){const[n,o,r,a]=at[s],[l]=xn(t,e),c=rt(l);return["auto","scroll"].includes(h(l,`overflow-${o}`))&&(c[r]-=l[`scroll${kt(r)}`],c[a]=c[r]+l[`scroll${kt(n)}`]),c[r]+=i,c[a]-=i,c}function xn(t,e){return Rt(e).filter(i=>i.contains(t))}function $n(...t){let e={};for(const i of t)for(const[,,s,n]of at)e[s]=Math.max(e[s]||0,i[s]),e[n]=Math.min(...[e[n],i[n]].filter(Boolean));return e}function yi(t,e,i){const[,,s,n]=at[i];return t[s]>=e[s]&&t[n]<=e[n]}function Fr(t,e,{offset:i,attach:s},n){return bn(t,e,{attach:{element:yn(s.element,n),target:yn(s.target,n)},offset:Lr(i,n)})}function Hr(t,e,i){return vn(t,e,{...i,attach:{element:i.attach.element.map(kn).reverse(),target:i.attach.target.map(kn).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function yn(t,e){const i=[...t],s=at[e].indexOf(t[e]);return~s&&(i[e]=at[e][1-s%2+2]),i}function kn(t){for(let e=0;e<at.length;e++){const i=at[e].indexOf(t);if(~i)return at[1-e][i%2+2]}}function Lr(t,e){return t=[...t],t[e]*=-1,t}var Wr=Object.freeze({__proto__:null,$:y,$$:N,Animation:Ct,Dimensions:Ui,MouseTracker:rn,Transition:B,addClass:S,after:ui,append:q,apply:_t,assign:ft,attr:g,before:hi,boxModelAdjust:le,camelize:$e,children:M,clamp:Q,createEvent:ae,css:h,data:J,dimensions:m,each:ie,empty:Qs,endsWith:Qt,escape:Ji,fastdom:At,filter:Pe,find:Gi,findAll:Oe,findIndex:wt,flipPosition:gi,fragment:Lt,getCoveringElement:us,getEventPos:yt,getIndex:nt,getTargetedElement:Yi,hasAttr:It,hasClass:x,hasOwn:pt,hasTouch:se,height:et,html:Pt,hyphenate:Dt,inBrowser:Ft,includes:v,index:$t,intersectRect:ei,isArray:G,isBoolean:ee,isDocument:ye,isElement:ke,isEmpty:ti,isEqual:Ie,isFocusable:ai,isFunction:tt,isInView:Br,isInput:ri,isNode:Ze,isNumber:Se,isNumeric:mt,isObject:St,isPlainObject:te,isRtl:U,isSameSiteAnchor:re,isString:z,isTag:H,isTouch:dt,isUndefined:X,isVideo:hn,isVisible:R,isVoidElement:Vi,isWindow:Qe,last:Bt,matches:C,memoize:ct,mute:cn,noop:A,observeIntersection:an,observeMutation:as,observeResize:ze,observeViewportResize:rs,off:Tt,offset:E,offsetPosition:Be,offsetViewport:rt,on:$,once:F,overflowParents:Rt,parent:D,parents:_e,pause:bi,pick:Ri,play:ls,pointInRect:ii,pointerCancel:oi,pointerDown:ht,pointerEnter:Ht,pointerLeave:oe,pointerMove:ni,pointerUp:Et,position:ss,positionAt:mn,prepend:xr,propName:li,query:Z,queryAll:Ae,ready:wr,remove:ot,removeAttr:Ee,removeClass:_,replaceClass:si,scrollIntoView:pn,scrollParent:Ot,scrollParents:jt,scrolledOver:$i,selFocusable:Ce,selInput:Te,sortBy:js,startsWith:gt,sumBy:Nt,swap:ji,toArray:Zt,toBoolean:Wi,toEventTargets:Qi,toFloat:k,toNode:W,toNodes:T,toNumber:xt,toPx:Y,toWindow:Mt,toggleClass:j,trigger:b,ucfirst:kt,uniqueBy:Rs,unwrap:Me,width:pi,wrapAll:di,wrapInner:is}),it={connected(){S(this.$el,this.$options.id)}};const jr=["days","hours","minutes","seconds"];var Rr={mixins:[it],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".bdt-countdown-%unit%",role:"timer"},connected(){g(this.$el,"role",this.role),this.date=k(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el:()=>document,handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(b(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),b(this.$el,"countdownstop"),this.timer=null)},update(){const t=qr(this.date);t.total||(this.stop(),this.end||(b(this.$el,"countdownend"),this.end=!0));for(const e of jr){const i=y(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let s=Math.trunc(t[e]).toString().padStart(2,"0");i.textContent!==s&&(s=s.split(""),s.length!==i.children.length&&Pt(i,s.map(()=>"<span></span>").join("")),s.forEach((n,o)=>i.children[o].textContent=n))}}}};function qr(t){const e=Math.max(0,t-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}const V={};V.events=V.watch=V.observe=V.created=V.beforeConnect=V.connected=V.beforeDisconnect=V.disconnected=V.destroy=gs,V.args=function(t,e){return e!==!1&&gs(e||t)},V.update=function(t,e){return js(gs(t,tt(e)?{read:e}:e),"order")},V.props=function(t,e){if(G(e)){const i={};for(const s of e)i[s]=String;e=i}return V.methods(t,e)},V.computed=V.methods=function(t,e){return e?t?{...t,...e}:e:t},V.i18n=V.data=function(t,e,i){return i?Sn(t,e,i):e?t?function(s){return Sn(t,e,s)}:e:t};function Sn(t,e,i){return V.computed(tt(t)?t.call(i,i):t,tt(e)?e.call(i,i):e)}function gs(t,e){return t=t&&!G(t)?[t]:t,e?t?t.concat(e):G(e)?e:[e]:t}function Ur(t,e){return X(e)?t:e}function Fe(t,e,i){const s={};if(tt(e)&&(e=e.options),e.extends&&(t=Fe(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=Fe(t,o,i);for(const o in t)n(o);for(const o in e)pt(t,o)||n(o);function n(o){s[o]=(V[o]||Ur)(t[o],e[o],i)}return s}function he(t,e=[]){try{return t?gt(t,"{")?JSON.parse(t):e.length&&!v(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,o]=s.split(/:(.*)/);return n&&!X(o)&&(i[n.trim()]=o.trim()),i},{}):{}}catch{return{}}}function ms(t,e){return t===Boolean?Wi(e):t===Number?xt(e):t==="list"?Yr(e):t===Object&&z(e)?he(e):t?t(e):e}const Vr=/,(?![^(]*\))/;function Yr(t){return G(t)?t:z(t)?t.split(Vr).map(e=>mt(e)?xt(e):Wi(e.trim())):[t]}function Gr(t){t._data={},t._updates=[...t.$options.update||[]]}function Xr(t,e){t._updates.unshift(e)}function Jr(t){t._data=null}function He(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,At.read(()=>{t._connected&&Kr(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function Kr(t,e){for(const{read:i,write:s,events:n=[]}of t._updates){if(!e.has("update")&&!n.some(r=>e.has(r)))continue;let o;i&&(o=i.call(t,t._data,e),o&&te(o)&&ft(t._data,o)),s&&o!==!1&&At.write(()=>{t._connected&&s.call(t,t._data,e)})}}function ut(t){return We(ze,t,"resize")}function ue(t){return We(an,t)}function ki(t){return We(as,t)}function Si(t={}){return ue({handler:function(e,i){const{targets:s=this.$el,preload:n=5}=t;for(const o of T(tt(s)?s(this):s))N('[loading="lazy"]',o).slice(0,n-1).forEach(r=>Ee(r,"loading"));for(const o of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(o)},...t})}function vs(t){return We((e,i)=>rs(i),t,"resize")}function Le(t){return We((e,i)=>({disconnect:$(Zr(e),"scroll",i,{passive:!0})}),t,"scroll")}function In(t){return{observe(e,i){return{observe:A,unobserve:A,disconnect:$(e,ht,i,{passive:!0})}},handler(e){if(!dt(e))return;const i=yt(e),s="tagName"in e.target?e.target:D(e.target);F(document,`${Et} ${oi} scroll`,n=>{const{x:o,y:r}=yt(n);(n.type!=="scroll"&&s&&o&&Math.abs(i.x-o)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{b(s,"swipe"),b(s,`swipe${Qr(i.x,i.y,o,r)}`)})})},...t}}function We(t,e,i){return{observe:t,handler(){He(this,i)},...e}}function Qr(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}function Zr(t){return T(t).map(e=>{const{ownerDocument:i}=e,s=Ot(e,!0);return s===i.scrollingElement?i:s})}var En={props:{margin:String,firstColumn:Boolean},data:{margin:"bdt-margin-small-top",firstColumn:"bdt-first-column"},observe:[ki({options:{childList:!0}}),ki({options:{attributes:!0,attributeFilter:["style"]},target:({$el:t})=>[t,...M(t)]}),ut({target:({$el:t})=>[t,...M(t)]})],update:{read(){return{rows:bs(M(this.$el))}},write({rows:t}){for(const e of t)for(const i of e)j(i,this.margin,t[0]!==e),j(i,this.firstColumn,e[U?e.length-1:0]===i)},events:["resize"]}};function bs(t){const e=[[]],i=t.some((s,n)=>n&&t[n-1].offsetParent!==s.offsetParent);for(const s of t){if(!R(s))continue;const n=ws(s,i);for(let o=e.length-1;o>=0;o--){const r=e[o];if(!r[0]){r.push(s);break}const a=ws(r[0],i);if(n.top>=a.bottom-1&&n.top!==a.top){e.push([s]);break}if(n.bottom-1>a.top||n.top===a.top){let l=r.length-1;for(;l>=0;l--){const c=ws(r[l],i);if(n.left>=c.left)break}r.splice(l+1,0,s);break}if(o===0){e.unshift([s]);break}}}return e}function ws(t,e=!1){let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:o}=t;return e&&([i,s]=Be(t)),{top:i,left:s,bottom:i+n,right:s+o}}async function ta(t,e,i){await xs();let s=M(e);const n=s.map(p=>Tn(p,!0)),o={...h(e,["height","padding"]),display:"block"},r=s.concat(e);await Promise.all(r.map(B.cancel)),h(r,"transitionProperty","none"),await t(),s=s.concat(M(e).filter(p=>!v(s,p))),await Promise.resolve(),h(r,"transitionProperty","");const a=g(e,"style"),l=h(e,["height","padding"]),[c,u]=ea(e,s,n),f=s.map(p=>({style:g(p,"style")}));s.forEach((p,w)=>u[w]&&h(p,u[w])),h(e,o),b(e,"scroll"),await xs();const d=s.map((p,w)=>D(p)===e&&B.start(p,c[w],i,"ease")).concat(B.start(e,l,i,"ease"));try{await Promise.all(d),s.forEach((p,w)=>{g(p,f[w]),D(p)===e&&h(p,"display",c[w].opacity===0?"none":"")}),g(e,"style",a)}catch{g(s,"style",""),ia(e,o)}}function Tn(t,e){const i=h(t,"zIndex");return R(t)?{display:"",opacity:e?h(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?$t(t):i,...Cn(t)}:!1}function ea(t,e,i){const s=e.map((o,r)=>D(o)&&r in i?i[r]?R(o)?Cn(o):{opacity:0}:{opacity:R(o)?1:0}:!1),n=s.map((o,r)=>{const a=D(e[r])===t&&(i[r]||Tn(e[r]));if(!a)return!1;if(!o)delete a.opacity;else if(!("opacity"in o)){const{opacity:l}=a;l%1?o.opacity=1:delete a.opacity}return a});return[s,n]}function ia(t,e){for(const i in e)h(t,i,"")}function Cn(t){const{height:e,width:i}=m(t);return{height:e,width:i,transform:"",...ss(t),...h(t,["marginTop","marginLeft"])}}function xs(){return new Promise(t=>requestAnimationFrame(t))}const $s="bdt-transition-leave",ys="bdt-transition-enter";function Pn(t,e,i,s=0){const n=Ii(e,!0),o={opacity:1},r={opacity:0},a=u=>()=>n===Ii(e)?u():Promise.reject(),l=a(async()=>{S(e,$s),await Promise.all(An(e).map((u,f)=>new Promise(d=>setTimeout(()=>B.start(u,r,i/2,"ease").then(d),f*s)))),_(e,$s)}),c=a(async()=>{const u=et(e);S(e,ys),t(),h(M(e),{opacity:0}),await xs();const f=M(e),d=et(e);h(e,"alignContent","flex-start"),et(e,u);const p=An(e);h(f,r);const w=p.map(async(I,P)=>{await sa(P*s),await B.start(I,o,i/2,"ease")});u!==d&&w.push(B.start(e,{height:d},i/2+p.length*s,"ease")),await Promise.all(w).then(()=>{_(e,ys),n===Ii(e)&&(h(e,{height:"",alignContent:""}),h(f,{opacity:""}),delete e.dataset.transition)})});return x(e,$s)?_n(e).then(c):x(e,ys)?_n(e).then(l).then(c):l().then(c)}function Ii(t,e){return e&&(t.dataset.transition=1+Ii(t)),xt(t.dataset.transition)||0}function _n(t){return Promise.all(M(t).filter(B.inProgress).map(e=>new Promise(i=>F(e,"transitionend transitioncanceled",i))))}function An(t){return bs(M(t)).flat().filter(R)}function sa(t){return new Promise(e=>setTimeout(e,t))}var On={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return(i==="fade"?Pn:i==="delayed-fade"?(...n)=>Pn(...n,40):i?ta:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(A)}}};const O={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var na={mixins:[On],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"bdt-filter-control",cls:"bdt-active",duration:250},computed:{children:({target:t},e)=>N(`${t} > *`,e),toggles:({attrItem:t},e)=>N(`[${t}],[data-${t}]`,e)},watch:{toggles(t){this.updateState();const e=N(this.selActive,this.$el);for(const i of t){this.selActive!==!1&&j(i,this.cls,v(e,i));const s=ca(i);H(s,"a")&&g(s,"role","button")}},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate:({attrItem:t})=>`[${t}],[data-${t}]`,handler(t){t.type==="keydown"&&t.keyCode!==O.SPACE||t.target.closest("a,button")&&(t.preventDefault(),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=Mn(t,this.attrItem,this.getState());oa(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>x(t,this.cls)).reduce((t,e)=>Mn(e,this.attrItem,t),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},b(this.$el,"beforeFilter",[this,t]);for(const i of this.toggles)j(i,this.cls,aa(i,this.attrItem,t));await Promise.all(N(this.target,this.$el).map(i=>{const s=()=>ra(t,i,M(i));return e?this.animate(s,i):s()})),b(this.$el,"afterFilter",[this])},updateState(){At.write(()=>this.setState(this.getState(),!1))}}};function Dn(t,e){return he(J(t,e),["filter"])}function oa(t,e){return["filter","sort"].every(i=>Ie(t[i],e[i]))}function ra(t,e,i){const s=Object.values(t.filter).join("");for(const r of i)h(r,"display",s&&!C(r,s)?"none":"");const[n,o]=t.sort;if(n){const r=la(i,n,o);Ie(r,i)||q(e,r)}}function Mn(t,e,i){const{filter:s,group:n,sort:o,order:r="asc"}=Dn(t,e);return(s||X(o))&&(n?s?(delete i.filter[""],i.filter[n]=s):(delete i.filter[n],(ti(i.filter)||""in i.filter)&&(i.filter={"":s||""})):i.filter={"":s||""}),X(o)||(i.sort=[o,r]),i}function aa(t,e,{filter:i={"":""},sort:[s,n]}){const{filter:o="",group:r="",sort:a,order:l="asc"}=Dn(t,e);return X(a)?r in i&&o===i[r]||!o&&r&&!(r in i)&&!i[""]:s===a&&n===l}function la(t,e,i){return[...t].sort((s,n)=>J(s,e).localeCompare(J(n,e),void 0,{numeric:!0})*(i==="asc"||-1))}function ca(t){return y("a,button",t)||t}let ks;function Bn(t){const e=$(t,"touchstart",s=>{if(s.targetTouches.length!==1||C(s.target,'input[type="range"'))return;let n=yt(s).y;const o=$(t,"touchmove",r=>{const a=yt(r).y;a!==n&&(n=a,jt(r.target).some(l=>{if(!t.contains(l))return!1;let{scrollHeight:c,clientHeight:u}=l;return u<c})||r.preventDefault())},{passive:!1});F(t,"scroll touchend touchcanel",o,{capture:!0})},{passive:!0});if(ks)return e;ks=!0;const{scrollingElement:i}=document;return h(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:pi(window)-i.clientWidth||""}),()=>{ks=!1,e(),h(i,{overflowY:"",touchAction:"",paddingRight:""})}}var je={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&y(t)}}},qt={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"bdt-togglable-enter",clsLeave:"bdt-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(e=>gt(t[0],e))},methods:{async toggleElement(t,e,i){try{return await Promise.all(T(t).map(s=>{const n=ee(e)?e:!this.isToggled(s);if(!b(s,`before${n?"show":"hide"}`,[this]))return Promise.reject();const o=(tt(i)?i:i===!1||!this.hasAnimation?ha:this.hasTransition?ua:fa)(s,n,this),r=n?this.clsEnter:this.clsLeave;S(s,r),b(s,n?"show":"hide",[this]);const a=()=>{_(s,r),b(s,n?"shown":"hidden",[this])};return o?o.then(a,()=>(_(s,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=W(t),x(t,this.clsEnter)?!0:x(t,this.clsLeave)?!1:this.cls?x(t,this.cls.split(" ")[0]):R(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=v(this.cls," ")||e!==x(t,this.cls),i&&j(t,this.cls,v(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),N("[autofocus]",t).some(s=>R(s)?s.focus()||!0:s.blur()),i&&b(t,"toggled",[e,this])}}};function ha(t,e,{_toggle:i}){return Ct.cancel(t),B.cancel(t),i(t,e)}async function ua(t,e,{animation:i,duration:s,velocity:n,transition:o,_toggle:r}){var a;const[l="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],u=[["left","right"],["top","bottom"]],f=u[v(u[0],c)?0:1],d=f[1]===c,w=["width","height"][u.indexOf(f)],I=`margin-${f[0]}`,P=`margin-${c}`;let vt=m(t)[w];const ve=B.inProgress(t);await B.cancel(t),e&&r(t,!0);const be=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",I,P].map(sr=>[sr,t.style[sr]])),bt=m(t),Ws=k(h(t,I)),tr=k(h(t,P)),Kt=bt[w]+tr;!ve&&!e&&(vt+=tr);const[Hi]=is(t,"<div>");h(Hi,{boxSizing:"border-box",height:bt.height,width:bt.width,...h(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",P])}),h(t,{padding:0,border:0,minWidth:0,minHeight:0,[P]:0,width:bt.width,height:bt.height,overflow:"hidden",[w]:vt});const er=vt/Kt;s=(n*Kt+s)*(e?1-er:er);const ir={[w]:e?Kt:0};d&&(h(t,I,Kt-vt+Ws),ir[I]=e?Ws:Kt+Ws),!d^l==="reveal"&&(h(Hi,I,-Kt+vt),B.start(Hi,{[I]:e?0:-Kt},s,o));try{await B.start(t,ir,s,o)}finally{h(t,be),Me(Hi.firstChild),e||r(t,!1)}}function fa(t,e,i){const{animation:s,duration:n,_toggle:o}=i;return e?(o(t,!0),Ct.in(t,s[0],n,i.origin)):Ct.out(t,s[1]||s[0],n,i.origin).then(()=>o(t,!1))}const st=[];var Ss={mixins:[it,je,qt],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"bdt-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},e)=>y(t,e),transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){g(this.panel||this.$el,"role",this.role),this.overlay&&g(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){v(st,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:t})=>`${t},a[href*="#"]`,handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&re(e)&&!this.$el.contains(y(s))?this.hide():C(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===v(st,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(v(st,this))return!1;!this.stack&&st.length?(Promise.all(st.map(e=>e.hide())).then(this.show),t.preventDefault()):st.push(this)}},{name:"show",self:!0,handler(){this.stack&&h(this.$el,"zIndex",k(h(this.$el,"zIndex"))+st.length);const t=[this.overlay&&pa(this),this.overlay&&Bn(this.$el),this.bgClose&&ga(this),this.escClose&&ma(this)];F(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),S(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){ai(this.$el)||g(this.$el,"tabindex","-1"),C(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){v(st,this)&&st.splice(st.indexOf(this),1),h(this.$el,"zIndex",""),st.some(t=>t.clsPage===this.clsPage)||_(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&D(this.$el)!==this.container?(q(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,Nn)},hide(){return this.toggleElement(this.$el,!1,Nn)}}};function Nn(t,e,{transitionElement:i,_toggle:s}){return new Promise((n,o)=>F(t,"show hide",()=>{var r;(r=t._reject)==null||r.call(t),t._reject=o,s(t,e);const a=F(i,"transitionstart",()=>{F(i,"transitionend transitioncancel",n,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),n()},da(h(i,"transitionDuration")))})).then(()=>delete t._reject)}function da(t){return t?Qt(t,"ms")?k(t):k(t)*1e3:0}function pa(t){return $(document,"focusin",e=>{Bt(st)===t&&!t.$el.contains(e.target)&&t.$el.focus()})}function ga(t){return $(document,ht,({target:e})=>{Bt(st)!==t||t.overlay&&!t.$el.contains(e)||t.panel.contains(e)||F(document,`${Et} ${oi} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===Et&&e===n&&t.hide()},!0)})}function ma(t){return $(document,"keydown",e=>{e.keyCode===27&&Bt(st)===t&&t.hide()})}var Is={slide:{show(t){return[{transform:L(t*-100)},{transform:L()}]},percent(t){return Re(t)},translate(t,e){return[{transform:L(e*-100*t)},{transform:L(e*100*(1-t))}]}}};function Re(t){return Math.abs(new DOMMatrix(h(t,"transform")).m41/t.offsetWidth)}function L(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function fe(t){return`scale3d(${t}, ${t}, 1)`}function va(t,e,i,{animation:s,easing:n}){const{percent:o,translate:r,show:a=A}=s,l=a(i),{promise:c,resolve:u}=zn();return{dir:i,show(f,d=0,p){const w=p?"linear":n;return f-=Math.round(f*Q(d,-1,1)),this.translate(d),Ut(e,"itemin",{percent:d,duration:f,timing:w,dir:i}),Ut(t,"itemout",{percent:1-d,duration:f,timing:w,dir:i}),Promise.all([B.start(e,l[1],f,w),B.start(t,l[0],f,w)]).then(()=>{this.reset(),u()},A),c},cancel(){return B.cancel([e,t])},reset(){for(const f in l[0])h([e,t],f,"")},async forward(f,d=this.percent()){return await this.cancel(),this.show(f,d,!0)},translate(f){this.reset();const d=r(f,i);h(e,d[1]),h(t,d[0]),Ut(e,"itemtranslatein",{percent:f,dir:i}),Ut(t,"itemtranslateout",{percent:1-f,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function Ut(t,e,i){b(t,ae(e,!1,!1,i))}function zn(){let t;return{promise:new Promise(e=>t=e),resolve:t}}var Ei={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,n;let o=0;return((n=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:n.replace(/%s/g,()=>e[o++]||""))||""}}},ba={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){g(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){g(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&C(this.$el,":focus-within")&&!C(this.$el,":focus")||this.pauseOnHover&&C(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const qe={passive:!1,capture:!0},Fn={passive:!0,capture:!0},wa="touchstart mousedown",Es="touchmove mousemove",Hn="touchend touchcancel mouseup click input scroll",Ln=t=>t.preventDefault();var xa={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=yt(i).x*(U?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:wa,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!dt(t)&&$a(t.target)||t.target.closest(Te)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:Es,el:({list:t})=>t,handler:A,...qe}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,$(document,Es,this.move,qe),$(document,Hn,this.end,Fn),h(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||$(this.list,"click",Ln,qe),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,n=Math.abs(e),o=this.getIndex(s+this.dir),r=Wn.call(this,s,o);for(;o!==s&&n>r;)this.drag-=r*this.dir,s=o,n-=r,o=this.getIndex(s+this.dir),r=Wn.call(this,s,o);this.percent=n/r;const a=i[s],l=i[o],c=this.index!==o,u=s===o;let f;for(const d of[this.index,this.prevIndex])v([o,s],d)||(b(i[d],"itemhidden",[this]),u&&(f=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||f)&&b(i[this.index],"itemshown",[this]),c&&(this.prevIndex=s,this.index=o,u||(b(a,"beforeitemhide",[this]),b(a,"itemhide",[this])),b(l,"beforeitemshow",[this]),b(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!u&&l)},end(){if(Tt(document,Es,this.move,qe),Tt(document,Hn,this.end,Fn),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(U?this.dir*(U?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>Tt(this.list,"click",Ln,qe)),h(this.list,{userSelect:""}),this.drag=this.percent=null}}};function Wn(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function $a(t){return h(t,"userSelect")!=="none"&&Zt(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}function ya(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,s]of Object.entries(e))jn(t,s,i);t._initial=!0}function jn(t,e,i){t._watches.push({name:i,...te(e)?e:{handler:e}})}function ka(t,e){for(const{name:i,handler:s,immediate:n=!0}of t._watches)(t._initial&&n||pt(e,i)&&!Ie(e[i],t[i]))&&s.call(t,t[i],e[i]);t._initial=!1}function Sa(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)qn(t,i,e[i])}const Rn={subtree:!0,childList:!0};function qn(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:n,$el:o}=t;if(!pt(s,e)&&(s[e]=(i.get||i).call(t,n,o),i.observe&&t._computedObserver)){const r=i.observe.call(t,n);t._computedObserver.observe(["~","+","-"].includes(r[0])?o.parentElement:o.getRootNode(),Rn)}return s[e]},set(s){const{_computed:n}=t;n[e]=i.set?i.set.call(t,s):s,X(n[e])&&delete n[e]}})}function Ia(t){t._hasComputed&&(Xr(t,{read:()=>ka(t,Un(t)),events:["resize","computed"]}),t._computedObserver=as(t.$el,()=>He(t,"computed"),Rn))}function Ea(t){var e;(e=t._computedObserver)==null||e.disconnect(),delete t._computedObserver,Un(t)}function Un(t){const e={...t._computed};return t._computed={},e}function Ta(t){t._events=[];for(const e of t.$options.events||[])if(pt(e,"handler"))Vn(t,e);else for(const i in e)Vn(t,e[i],i)}function Ca(t){t._events.forEach(e=>e()),delete t._events}function Vn(t,e,i){let{name:s,el:n,handler:o,capture:r,passive:a,delegate:l,filter:c,self:u}=te(e)?e:{name:i,handler:e};n=tt(n)?n.call(t,t):n||t.$el,!(!n||G(n)&&!n.length||c&&!c.call(t,t))&&t._events.push($(n,s,l?z(l)?l:l.call(t,t):null,z(o)?t[o]:o.bind(t),{passive:a,capture:r,self:u}))}function Pa(t){t._observers=[];for(const e of t.$options.observe||[])Aa(t,e)}function Yn(t,...e){t._observers.push(...e)}function _a(t){for(const e of t._observers)e.disconnect()}function Aa(t,e){let{observe:i,target:s=t.$el,handler:n,options:o,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._observers.length}`;tt(s)&&!pt(t,l)&&qn(t,l,()=>{const f=s.call(t,t);return G(f)?T(f):f}),n=z(n)?t[n]:n.bind(t),tt(o)&&(o=o.call(t,t));const c=pt(t,l)?t[l]:s,u=i(c,n,o,a);tt(s)&&G(t[l])&&jn(t,{handler:Oa(u,o),immediate:!1},l),Yn(t,u)}function Oa(t,e){return(i,s)=>{for(const n of s)v(i,n)||(t.unobserve?t.unobserve(n):t.observe&&t.disconnect());for(const n of i)(!v(s,n)||!t.unobserve)&&t.observe(n,e)}}function Da(t){const{$options:e,$props:i}=t,s=Gn(e);ft(i,s);const{computed:n,methods:o}=e;for(let r in i)r in s&&(!n||!pt(n,r))&&(!o||!pt(o,r))&&(t[r]=i[r])}function Gn(t){const e={},{args:i=[],props:s={},el:n,id:o}=t;if(!s)return e;for(const a in s){const l=Dt(a);let c=J(n,l);X(c)||(c=s[a]===Boolean&&c===""?!0:ms(s[a],c),!(l==="target"&&gt(c,"_"))&&(e[a]=c))}const r=he(J(n,o),i);for(const a in r){const l=$e(a);X(s[l])||(e[l]=ms(s[l],r[a]))}return e}const Ma=ct((t,e)=>{const i=Object.keys(e),s=i.concat(t).map(n=>[Dt(n),`data-${Dt(n)}`]).flat();return{attributes:i,filter:s}});function Ba(t){const{$options:e,$props:i}=t,{id:s,props:n,el:o}=e;if(!n)return;const{attributes:r,filter:a}=Ma(s,n),l=new MutationObserver(c=>{const u=Gn(e);c.some(({attributeName:f})=>{const d=f.replace("data-","");return(d===s?r:[$e(d),$e(f)]).some(p=>!X(u[p])&&u[p]!==i[p])})&&t.$reset()});l.observe(o,{attributes:!0,attributeFilter:a}),Yn(t,l)}function de(t,e){var i;(i=t.$options[e])==null||i.forEach(s=>s.call(t))}function Ts(t){t._connected||(Da(t),de(t,"beforeConnect"),t._connected=!0,Ta(t),Gr(t),ya(t),Pa(t),Ba(t),Ia(t),de(t,"connected"),He(t))}function Cs(t){t._connected&&(de(t,"beforeDisconnect"),Ca(t),Jr(t),_a(t),Ea(t),de(t,"disconnected"),t._connected=!1)}let Na=0;function Xn(t,e={}){e.data=Ha(e,t.constructor.options),t.$options=Fe(t.constructor.options,e,t),t.$props={},t._uid=Na++,za(t),Fa(t),Sa(t),de(t,"created"),e.el&&t.$mount(e.el)}function za(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}function Fa(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}function Ha({data:t={}},{args:e=[],props:i={}}){G(t)&&(t=t.slice(0,e.length).reduce((s,n,o)=>(te(n)?ft(s,n):s[e[o]]=n,s),{}));for(const s in t)X(t[s])?delete t[s]:i[s]&&(t[s]=ms(i[s],t[s]));return t}const lt=function(t){Xn(this,t)};lt.util=Wr,lt.options={},lt.version="3.21.7";const La="bdt-",Vt="__uikit__",pe={};function Jn(t,e){var i,s;const n=La+Dt(t);if(!e)return pe[n].options||(pe[n]=lt.extend(pe[n])),pe[n];t=$e(t),lt[t]=(r,a)=>Ue(t,r,a);const o=(i=e.options)!=null?i:{...e};return o.id=n,o.name=t,(s=o.install)==null||s.call(o,lt,o,t),lt._initialized&&!o.functional&&requestAnimationFrame(()=>Ue(t,`[${n}],[data-${n}]`)),pe[n]=o}function Ue(t,e,i,...s){const n=Jn(t);return n.options.functional?new n({data:te(e)?e:[e,i,...s]}):e?N(e).map(o)[0]:o();function o(r){const a=Ti(r,t);if(a)if(i)a.$destroy();else return a;return new n({el:r,data:i})}}function Ve(t){return(t==null?void 0:t[Vt])||{}}function Ti(t,e){return Ve(t)[e]}function Wa(t,e){t[Vt]||(t[Vt]={}),t[Vt][e.$options.name]=e}function ja(t,e){var i;(i=t[Vt])==null||delete i[e.$options.name],ti(t[Vt])&&delete t[Vt]}function Ra(t){t.component=Jn,t.getComponents=Ve,t.getComponent=Ti,t.update=Kn,t.use=function(i){if(!i.installed)return i.call(null,this),i.installed=!0,this},t.mixin=function(i,s){s=(z(s)?this.component(s):s)||this,s.options=Fe(s.options,i)},t.extend=function(i){i||(i={});const s=this,n=function(r){Xn(this,r)};return n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.options=Fe(s.options,i),n.super=s,n.extend=s.extend,n};let e;Object.defineProperty(t,"container",{get(){return e||document.body},set(i){e=y(i)}})}function Kn(t,e){t=t?W(t):document.body;for(const i of _e(t).reverse())Qn(i,e);_t(t,i=>Qn(i,e))}function Qn(t,e){const i=Ve(t);for(const s in i)He(i[s],e)}function qa(t){t.prototype.$mount=function(e){const i=this;Wa(e,i),i.$options.el=e,document.contains(e)&&Ts(i)},t.prototype.$destroy=function(e=!1){const i=this,{el:s}=i.$options;s&&Cs(i),de(i,"destroy"),ja(s,i),e&&ot(i.$el)},t.prototype.$create=Ue,t.prototype.$emit=function(e){He(this,e)},t.prototype.$update=function(e=this.$el,i){Kn(e,i)},t.prototype.$reset=function(){Cs(this),Ts(this)},t.prototype.$getComponent=Ti,Object.defineProperties(t.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(t,"container")})}let Ua=1;function Yt(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${Ua++}`}var Va={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>y(t,e),navChildren(){return M(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return N(this.selNavItem,e)}},watch:{nav(t,e){g(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){H(t,"ul")&&g(t,"role","presentation")},navChildren(t){g(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const i=J(e,this.attrItem),s=y("a,button",e)||e;let n,o=null;if(mt(i)){const r=xt(i),a=this.slides[r];a&&(a.id||(a.id=Yt(this,a)),o=a.id),n=this.t("slideX",k(i)+1),g(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=Yt(this,this.list)),o=this.list.id),n=this.t(i);g(s,{"aria-controls":o,"aria-label":g(s,"aria-label")||n})}},slides(t){t.forEach((e,i)=>g(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){g(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===O.SPACE)&&(t.preventDefault(),this.show(J(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,s=J(e,this.attrItem);if(!mt(s))return;let n=i===O.HOME?0:i===O.END?"last":i===O.LEFT?"previous":i===O.RIGHT?"next":-1;~n&&(t.preventDefault(),this.show(n))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=J(e,this.attrItem),s=y("a,button",e)||e;if(mt(i)){const o=xt(i)===t;j(e,this.clsActive,o),j(s,"bdt-disabled",this.parallax),g(s,{"aria-selected":o,tabindex:o&&!this.parallax?null:-1}),o&&s&&C(D(e),":focus-within")&&s.focus()}else j(e,"bdt-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const i=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast(s=>s.matches(`[${i}]`))||y(`<li ${i}><a href></a></li>`)}Ie(t,this.navChildren)||Pt(this.nav,t)}}};const Ya="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Ga="cubic-bezier(0.165, 0.84, 0.44, 1)";var Zn={mixins:[ba,xa,Va,Ei],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"bdt-active",clsActivated:"",clsEnter:"bdt-slide-enter",clsLeave:"bdt-slide-leave",clsSlideActive:"bdt-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){_(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>to(e.offsetWidth/t),list:({selList:t},e)=>y(t,e),maxIndex(){return this.length-1},slides(){return M(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){S(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){_(t,this.clsEnter)},itemhide({target:t}){S(t,this.clsLeave)},itemhidden({target:t}){_(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,n=e?0:s.length,o=()=>{s.splice(n,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const r=this.getIndex(this.index),a=x(this.slides,this.clsActive)&&this.slides[r],l=this.getIndex(t,this.index),c=this.slides[l];if(a===c){o();return}if(this.dir=Xa(t,r),this.prevIndex=r,this.index=l,a&&!b(a,"beforeitemhide",[this])||!b(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}const u=this._show(a,c,e).then(()=>{a&&b(a,"itemhidden",[this]),b(c,"itemshown",[this]),s.shift(),this._transitioner=null,s.length&&requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return a&&b(a,"itemhide",[this]),b(c,"itemshow",[this]),u},getIndex(t=this.index,e=this.index){return Q(nt(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?Ya:Ga:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(Se(t)?this.slides[t]:t,Se(e)?this.slides[e]:e,i*(U?-1:1),s)}}};function Xa(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function to(t){return .5*t+300}var eo={mixins:[Zn],props:{animation:String},data:{animation:"slide",clsActivated:"bdt-transition-active",Animations:Is,Transitioner:va},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:ut(),events:{beforeitemshow({target:t}){S(t,this.clsActive)},itemshown({target:t}){S(t,this.clsActivated)},itemhidden({target:t}){_(t,this.clsActive,this.clsActivated)}}},io={...Is,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:fe(1-.2)},{opacity:1,transform:fe(1)}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:fe(1-.2*t)},{opacity:t,transform:fe(1-.2+.2*t)}]}}},so={mixins:[Ss,eo],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"bdt-open",clsPage:"bdt-lightbox-page",selList:".bdt-lightbox-items",attrItem:"bdt-lightbox-item",selClose:".bdt-close-large",selCaption:".bdt-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:io,template:'<div class="bdt-lightbox bdt-overflow-hidden"> <div class="bdt-lightbox-items"></div> <div class="bdt-lightbox-toolbar bdt-position-top bdt-text-right bdt-transition-slide-top bdt-transition-opaque"> <button class="bdt-lightbox-toolbar-icon bdt-close-large" type="button" bdt-close></button> </div> <a class="bdt-lightbox-button bdt-position-center-left bdt-position-medium bdt-transition-fade" href bdt-slidenav-previous bdt-lightbox-item="previous"></a> <a class="bdt-lightbox-button bdt-position-center-right bdt-position-medium bdt-transition-fade" href bdt-slidenav-next bdt-lightbox-item="next"></a> <div class="bdt-lightbox-toolbar bdt-lightbox-caption bdt-position-bottom bdt-text-center bdt-transition-slide-bottom bdt-transition-opaque"></div> </div>'}),created(){const t=y(this.template),e=y(this.selList,t);this.items.forEach(()=>q(e,"<div>"));const i=y("[bdt-close]",t),s=this.t("close");i&&s&&(i.dataset.i18n=JSON.stringify({label:s})),this.$mount(q(this.container,t))},events:[{name:`${ni} ${ht} keydown`,handler:"showControls"},{name:"click",self:!0,delegate:({selList:t})=>`${t} > *`,handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:"showControls"},{name:"hide",self:!0,handler(){this.hideControls(),_(this.slides,this.clsActive),B.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===O.LEFT?e="previous":t===O.RIGHT?e="next":t===O.HOME?e=0:t===O.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=io.scale,_(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){Pt(y(this.selCaption,this.$el),this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:s,alt:n="",poster:o,attrs:r={}}=e;if(this.setItem(e,"<span bdt-spinner></span>"),!i)return;let a;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","bdt-responsive":"","bdt-video":`${this.videoAutoplay}`};if(s==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const c=Ye("img",{src:i,alt:n,...r});$(c,"load",()=>this.setItem(e,c)),$(c,"error",()=>this.setError(e))}else if(s==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=Ye("video",{src:i,poster:o,controls:"",playsinline:"","bdt-video":`${this.videoAutoplay}`,...r});$(c,"loadedmetadata",()=>this.setItem(e,c)),$(c,"error",()=>this.setError(e))}else if(s==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,Ye("iframe",{src:i,allowfullscreen:"",class:"bdt-lightbox-iframe",...r}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,Ye("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...l,...r}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:u}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,Ye("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:u,height:c,...l,...r}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||b(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[nt(t,this.slides)]},setItem(t,e){b(this.$el,"itemloaded",[this,Pt(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span bdt-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),S(this.$el,"bdt-active","bdt-transition-active")},hideControls(){_(this.$el,"bdt-active","bdt-transition-active")}}};function Ye(t,e){const i=Lt(`<${t}>`);return g(i,e),i}var Ja={install:Ka,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:t},e)=>N(t,e)},watch:{toggles(t){this.hide();for(const e of t)H(e,"a")&&g(e,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate:({toggle:t})=>`${t}:not(.bdt-disabled)`,handler(t){t.defaultPrevented||(t.preventDefault(),this.show(t.current))}},methods:{show(t){const e=Rs(this.toggles.map(no),"source");if(ke(t)){const{source:i}=no(t);t=wt(e,({source:s})=>i===s)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:e}),$(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(t)},hide(){var t;return(t=this.panel)==null?void 0:t.hide()}}};function Ka(t,e){t.lightboxPanel||t.component("lightboxPanel",so),ft(e.props,t.component("lightboxPanel").options.props)}function no(t){const e={};for(const i of["href","caption","type","poster","alt","attrs"])e[i==="href"?"source":i]=J(t,i);return e.attrs=he(e.attrs),e}var Qa={mixins:[je],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"bdt-notification",clsClose:"bdt-notification-close",clsMsg:"bdt-notification-message"},install:Za,computed:{marginProp:({pos:t})=>`margin-${t.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const t=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=y(`.${t}[${e}]`,this.container)||q(this.container,`<div class="${this.clsContainer} ${t}" ${e}></div>`);this.$mount(q(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-bdt-close></a> <div>${this.message}</div> </div>`))},async connected(){const t=k(h(this.$el,this.marginProp));await B.start(h(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[Ht](){this.timer&&clearTimeout(this.timer)},[oe](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){const e=i=>{const s=D(i);b(i,"close",[this]),ot(i),s!=null&&s.hasChildNodes()||ot(s)};this.timer&&clearTimeout(this.timer),t||await B.start(this.$el,this.startProps),e(this.$el)}}};function Za(t){t.notification.closeAll=function(e,i){_t(document.body,s=>{const n=t.getComponent(s,"notification");n&&(!e||e===n.group)&&n.close(i)})}}var Ci={props:{media:Boolean},data:{media:!1},connected(){const t=tl(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,b(this.$el,ae("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=$(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function tl(t,e){if(z(t)){if(gt(t,"@"))t=k(h(e,`--bdt-breakpoint-${t.slice(1)}`));else if(isNaN(t))return t}return t&&mt(t)?`(min-width: ${t}px)`:""}function oo(t){return R(t)?Math.ceil(Math.max(0,...N("[stroke]",t).map(e=>{var i;return((i=e.getTotalLength)==null?void 0:i.call(e))||0}))):0}const Pi={x:_i,y:_i,rotate:_i,scale:_i,color:Ps,backgroundColor:Ps,borderColor:Ps,blur:Gt,hue:Gt,fopacity:Gt,grayscale:Gt,invert:Gt,saturate:Gt,sepia:Gt,opacity:il,stroke:sl,bgx:lo,bgy:lo},{keys:ro}=Object;var ao={mixins:[Ci],props:po(ro(Pi),"list"),data:po(ro(Pi),void 0),computed:{props(t,e){const i={};for(const n in t)n in Pi&&!X(t[n])&&(i[n]=t[n].slice());const s={};for(const n in i)s[n]=Pi[n](n,e,i[n],i);return s}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))h(this.$el,t,"")},getCss(t){const e={};for(const i in this.props)this.props[i](e,Q(t));return e.willChange=Object.keys(e).map(li).join(","),e}}};function _i(t,e,i){let s=Oi(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",n;return t==="x"||t==="y"?(t=`translate${kt(t)}`,n=o=>k(k(o).toFixed(s==="px"?0:6))):t==="scale"&&(s="",n=o=>{var r;return Oi([o])?Y(o,"width",e,!0)/e[`offset${(r=o.endsWith)!=null&&r.call(o,"vh")?"Height":"Width"}`]:k(o)}),i.length===1&&i.unshift(t==="scale"?1:0),i=ge(i,n),(o,r)=>{o.transform=`${o.transform||""} ${t}(${Ge(i,r)}${s})`}}function Ps(t,e,i){return i.length===1&&i.unshift(Xe(e,t,"")),i=ge(i,s=>el(e,s)),(s,n)=>{const[o,r,a]=fo(i,n),l=o.map((c,u)=>(c+=a*(r[u]-c),u===3?k(c):parseInt(c,10))).join(",");s[t]=`rgba(${l})`}}function el(t,e){return Xe(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(k)}function Gt(t,e,i){i.length===1&&i.unshift(0);const s=Oi(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=ge(i),(n,o)=>{const r=Ge(i,o);n.filter=`${n.filter||""} ${t}(${r+s})`}}function il(t,e,i){return i.length===1&&i.unshift(Xe(e,t,"")),i=ge(i),(s,n)=>{s[t]=Ge(i,n)}}function sl(t,e,i){i.length===1&&i.unshift(0);const s=Oi(i),n=oo(e);return i=ge(i.reverse(),o=>(o=k(o),s==="%"?o*n/100:o)),i.some(([o])=>o)?(h(e,"strokeDasharray",n),(o,r)=>{o.strokeDashoffset=Ge(i,r)}):A}function lo(t,e,i,s){i.length===1&&i.unshift(0);const n=t==="bgy"?"height":"width";s[t]=ge(i,a=>Y(a,n,e));const o=["bgx","bgy"].filter(a=>a in s);if(o.length===2&&t==="bgx")return A;if(Xe(e,"backgroundSize","")==="cover")return nl(t,e,i,s);const r={};for(const a of o)r[a]=co(e,a);return ho(o,r,s)}function nl(t,e,i,s){const n=ol(e);if(!n.width)return A;const o={width:e.offsetWidth,height:e.offsetHeight},r=["bgx","bgy"].filter(u=>u in s),a={};for(const u of r){const f=s[u].map(([P])=>P),d=Math.min(...f),p=Math.max(...f),w=f.indexOf(d)<f.indexOf(p),I=p-d;a[u]=`${(w?-I:0)-(w?d:p)}px`,o[u==="bgy"?"height":"width"]+=I}const l=Ui.cover(n,o);for(const u of r){const f=u==="bgy"?"height":"width",d=l[f]-o[f];a[u]=`max(${co(e,u)},-${d}px) + ${a[u]}`}const c=ho(r,a,s);return(u,f)=>{c(u,f),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function co(t,e){return Xe(t,`background-position-${e.slice(-1)}`,"")}function ho(t,e,i){return function(s,n){for(const o of t){const r=Ge(i[o],n);s[`background-position-${o.slice(-1)}`]=`calc(${e[o]} + ${r}px)`}}}const uo={},Ai={};function ol(t){const e=h(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(Ai[e])return Ai[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!uo[e])?(F(i,"error load",()=>{Ai[e]=_s(i),b(t,ae("load",!1))}),uo[e]=!0,_s(i)):Ai[e]=_s(i)}function _s(t){return{width:t.naturalWidth,height:t.naturalHeight}}function ge(t,e=k){const i=[],{length:s}=t;let n=0;for(let o=0;o<s;o++){let[r,a]=z(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(r=e(r),a=a?k(a)/100:null,o===0?a===null?a=0:a&&i.push([r,0]):o===s-1&&(a===null?a=1:a!==1&&(i.push([r,a]),a=1)),i.push([r,a]),a===null)n++;else if(n){const l=i[o-n-1][1],c=(a-l)/(n+1);for(let u=n;u>0;u--)i[o-u][1]=l+c*(n-u+1);n=0}}return i}function fo(t,e){const i=wt(t.slice(1),([,s])=>e<=s)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function Ge(t,e){const[i,s,n]=fo(t,e);return i+Math.abs(i-s)*n*(i<s?1:-1)}const rl=/^-?\d+(?:\.\d+)?(\S+)?/;function Oi(t,e){var i;for(const s of t){const n=(i=s.match)==null?void 0:i.call(s,rl);if(n)return n[1]}return e}function Xe(t,e,i){const s=t.style[e],n=h(h(t,e,i),e);return t.style[e]=s,n}function po(t,e){return t.reduce((i,s)=>(i[s]=e,i),{})}function go(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var al={mixins:[ao],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:t},e)=>mo(t&&Z(t,e)||e),start({start:t}){return Y(t,"height",this.target,!0)},end({end:t,viewport:e}){return Y(t||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[vs(),Le({target:({target:t})=>t}),ut({target:({$el:t,target:e})=>[t,e,Ot(e,!0)]})],update:{read({percent:t},e){if(e.has("scroll")||(t=!1),!R(this.$el))return!1;if(!this.matchMedia)return;const i=t;return t=go($i(this.target,this.start,this.end),this.easing),{percent:t,style:i===t?!1:this.getCss(t)}},write({style:t}){if(!this.matchMedia){this.reset();return}t&&h(this.$el,t)},events:["scroll","resize"]}};function mo(t){return t?"offsetTop"in t?t:mo(D(t)):document.documentElement}var vo={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[ut({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),Le({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&Z(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=Y(this.parallaxStart,"height",t,!0),i=Y(this.parallaxEnd,"height",t,!0),s=go($i(t,e,i),this.parallaxEasing);return{parallax:this.getIndexAt(s)}},write({parallax:t}){const[e,i]=t,s=this.getValidIndex(e+Math.ceil(i)),n=this.slides[e],o=this.slides[s],{triggerShow:r,triggerShown:a,triggerHide:l,triggerHidden:c}=ll(this);if(~this.prevIndex)for(const f of new Set([this.index,this.prevIndex]))v([s,e],f)||(l(this.slides[f]),c(this.slides[f]));const u=this.prevIndex!==e||this.index!==s;this.dir=1,this.prevIndex=e,this.index=s,n!==o&&l(n),r(o),u&&a(n),this._translate(n===o?1:i,n,o)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ll(t){const{clsSlideActive:e,clsEnter:i,clsLeave:s}=t;return{triggerShow:n,triggerShown:o,triggerHide:r,triggerHidden:a};function n(l){x(l,s)&&(r(l),a(l)),x(l,e)||(b(l,"beforeitemshow",[t]),b(l,"itemshow",[t]))}function o(l){x(l,i)&&b(l,"itemshown",[t])}function r(l){x(l,e)||n(l),x(l,i)&&o(l),x(l,s)||(b(l,"beforeitemhide",[t]),b(l,"itemhide",[t]))}function a(l){x(l,s)&&b(l,"itemhidden",[t])}}var bo={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1)},events:["resize"]}},wo={observe:Si({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function cl(t,e,i,{center:s,easing:n,list:o}){const r=t?Je(t,o,s):Je(e,o,s)+m(e).width*i,a=e?Je(e,o,s):r+m(t).width*i*(U?-1:1),{promise:l,resolve:c}=zn();return{dir:i,show(u,f=0,d){const p=d?"linear":n;return u-=Math.round(u*Q(f,-1,1)),h(o,"transitionProperty","none"),this.translate(f),h(o,"transitionProperty",""),f=t?f:Q(f,0,1),Ut(this.getItemIn(),"itemin",{percent:f,duration:u,timing:p,dir:i}),t&&Ut(this.getItemIn(!0),"itemout",{percent:1-f,duration:u,timing:p,dir:i}),B.start(o,{transform:L(-a*(U?-1:1),"px")},u,p).then(c,A),l},cancel(){return B.cancel(o)},reset(){h(o,"transform","")},async forward(u,f=this.percent()){return await this.cancel(),this.show(u,f,!0)},translate(u){if(u===this.percent())return;const f=this.getDistance()*i*(U?-1:1);h(o,"transform",L(Q(-a+(f-f*u),-me(o),m(o).width)*(U?-1:1),"px"));const d=this.getActives(),p=this.getItemIn(),w=this.getItemIn(!0);u=t?Q(u,-1,1):0;for(const I of M(o)){const P=v(d,I),vt=I===p,ve=I===w,be=vt||!ve&&(P||i*(U?-1:1)===-1^Di(I,o)>Di(t||e));Ut(I,`itemtranslate${be?"in":"out"}`,{dir:i,percent:ve?1-u:vt?u:P?1:0})}},percent(){return Math.abs((new DOMMatrix(h(o,"transform")).m41*(U?-1:1)+r)/(a-r))},getDistance(){return Math.abs(a-r)},getItemIn(u=!1){let f=this.getActives(),d=$o(o,Je(e||t,o,s));if(u){const p=f;f=d,d=p}return d[wt(d,p=>!v(f,p))]},getActives(){return $o(o,Je(t||e,o,s))}}}function Je(t,e,i){const s=Di(t,e);return i?s-hl(t,e):Math.min(s,xo(e))}function xo(t){return Math.max(0,me(t)-m(t).width)}function me(t,e){return Nt(M(t).slice(0,e),i=>m(i).width)}function hl(t,e){return m(e).width/2-m(t).width/2}function Di(t,e){return t&&(ss(t).left+(U?m(t).width-m(e).width:0))*(U?-1:1)||0}function $o(t,e){e-=1;const i=m(t).width,s=e+i+2;return M(t).filter(n=>{const o=Di(n,t),r=o+Math.min(m(n).width,i);return o>=e&&r<=s})}var ul={mixins:[it,Zn,bo,vo,wo],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"bdt-slider-item",selList:".bdt-slider-items",selNav:".bdt-slider-nav",clsContainer:"bdt-slider-container",active:"all",Transitioner:cl},computed:{finite({finite:t}){return t||fl(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return Bt(this.sets);let t=0;const e=xo(this.list),i=wt(this.slides,s=>{if(t>=e)return!0;t+=m(s).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],s=m(this.list).width;for(let n=0;n<this.length;n++){const o=m(this.slides[n]).width;e+o>s&&(e=0),this.center?e<s/2&&e+o+m(this.slides[nt(n+1,this.slides)]).width/2>s/2&&(i.push(n),e=s/2-o/2):e===0&&i.push(Math.min(n,this.maxIndex)),e+=o}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return M(this.list).filter(R)}},connected(){j(this.$el,this.clsContainer,!y(`.${this.clsContainer}`,this.$el))},observe:ut({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=xt(J(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!v(this.sets,e))}this.reorder(),this.parallax||this._translate(1),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!v(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let n=0;n<e;n++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,s=me(this.list)/this.length;this.duration=to(s/this.velocity)*(m(this.slides[i]).width/s),this.reorder()},itemshow(){~this.prevIndex&&S(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){h(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((n,o)=>h(n,"order",this.dir>0&&o<t?1:this.dir<0&&o>=this.index?-1:"")),!this.center||!this.length)return;const e=this.slides[t];let i=m(this.list).width/2-m(e).width/2,s=0;for(;i>0;){const n=this.getIndex(--s+t,t),o=this.slides[n];h(o,"order",n>t?-2:-1),i-=m(o).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||v(this.sets,k(this.index))?this.clsActivated:""];for(const s of this.slides){const n=v(e,s);j(s,i,n),g(s,"aria-hidden",!n);for(const o of N(Ce,s))pt(o,"_tabindex")||(o._tabindex=g(o,"tabindex")),g(o,"tabindex",n?o._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(v(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=m(this.list),e=-t,i=t*2,s=m(this.slides[this.index]).width,n=this.center?t/2-s/2:0,o=new Set;for(const r of[-1,1]){let a=n+(r>0?s:0),l=0;do{const c=this.slides[this.getIndex(this.index+r+l++*r)];a+=m(c).width*r,o.add(c)}while(this.length>l&&a>e&&a<i)}return Array.from(o)},getIndexAt(t){let e=-1;const i=this.center?me(this.list)-(m(this.slides[0]).width/2+m(Bt(this.slides)).width/2):me(this.list,this.maxIndex);let s=t*i,n=0;do{const o=m(this.slides[++e]).width,r=this.center?o/2+m(this.slides[e+1]).width/2:o;n=s/r%1,s-=r}while(s>=0&&e<this.maxIndex);return[e,n]}}};function fl(t,e){if(!t||t.length<2)return!0;const{width:i}=m(t);if(!e)return Math.ceil(me(t))<Math.trunc(i+dl(t));const s=M(t),n=Math.trunc(i/2);for(const o in s){const r=s[o],a=m(r).width,l=new Set([r]);let c=0;for(const u of[-1,1]){let f=a/2,d=0;for(;f<n;){const p=s[nt(+o+u+d++*u,s)];if(l.has(p))return!0;f+=m(p).width,l.add(p)}c=Math.max(c,a/2+m(s[nt(+o+u,s)]).width/2-(f-n))}if(Math.trunc(c)>Nt(s.filter(u=>!l.has(u)),u=>m(u).width))return!0}return!1}function dl(t){return Math.max(0,...M(t).map(e=>m(e).width))}var yo={mixins:[ao],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:t})=>t,handler({type:t,detail:{percent:e,duration:i,timing:s,dir:n}}){At.read(()=>{if(!this.matchMedia)return;const o=this.getCss(So(t,n,e)),r=this.getCss(ko(t)?.5:n>0?1:0);At.write(()=>{h(this.$el,o),B.start(this.$el,r,i,s).catch(A)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:t})=>t,handler(){B.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:t})=>t,handler({type:t,detail:{percent:e,dir:i}}){At.read(()=>{if(!this.matchMedia){this.reset();return}const s=this.getCss(So(t,i,e));At.write(()=>h(this.$el,s))})}}]};function ko(t){return Qt(t,"in")}function So(t,e,i){return i/=2,ko(t)^e<0?i:1-i}var pl={...Is,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:fe(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:fe(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:L(30),zIndex:-1},{transform:L(),zIndex:0}]:[{transform:L(-100),zIndex:0},{transform:L(),zIndex:-1}]},percent(t,e,i){return i<0?1-Re(e):Re(t)},translate(t,e){return e<0?[{transform:L(30*t),zIndex:-1},{transform:L(-100*(1-t)),zIndex:0}]:[{transform:L(-t*100),zIndex:0},{transform:L(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:L(100),zIndex:0},{transform:L(),zIndex:-1}]:[{transform:L(-30),zIndex:-1},{transform:L(),zIndex:0}]},percent(t,e,i){return i>0?1-Re(e):Re(t)},translate(t,e){return e<0?[{transform:L(t*100),zIndex:0},{transform:L(-30*(1-t)),zIndex:-1}]:[{transform:L(-30*t),zIndex:-1},{transform:L(100*(1-t)),zIndex:0}]}}},gl={mixins:[it,eo,bo,vo,wo],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".bdt-slideshow-items",attrItem:"bdt-slideshow-item",selNav:".bdt-slideshow-nav",Animations:pl},watch:{list(t){h(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},ml={mixins:[it,On],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:"bdt-sortable-item",clsPlaceholder:"bdt-sortable-placeholder",clsDrag:"bdt-sortable-drag",clsDragState:"bdt-drag",clsBase:"bdt-sortable",clsNoDrag:"bdt-sortable-nodrag",clsEmpty:"bdt-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:ht,passive:!1,handler:"init"},computed:{target:(t,e)=>(e.tBodies||[e])[0],items(){return M(this.target)},isEmpty(){return!this.items.length},handles({handle:t},e){return t?N(t,e):this.items}},watch:{isEmpty(t){j(this.target,this.clsEmpty,t)},handles(t,e){h(e,{touchAction:"",userSelect:""}),h(t,{touchAction:"none",userSelect:"none"})}},update:{write(t){if(!this.drag||!D(this.placeholder))return;const{pos:{x:e,y:i},origin:{offsetTop:s,offsetLeft:n},placeholder:o}=this;h(this.drag,{top:i-s,left:e-n});const r=this.getSortable(document.elementFromPoint(e,i));if(!r)return;const{items:a}=r;if(a.some(B.inProgress))return;const l=xl(a,{x:e,y:i});if(a.length&&(!l||l===o))return;const c=this.getSortable(o),u=$l(r.target,l,o,e,i,r===c&&t.moved!==l);u!==!1&&(u&&o===u||(r!==c?(c.remove(o),t.moved=l):delete t.moved,r.insert(o,u),this.touched.add(r)))},events:["move"]},methods:{init(t){const{target:e,button:i,defaultPrevented:s}=t,[n]=this.items.filter(o=>o.contains(e));!n||s||i>0||ri(e)||e.closest(`.${this.clsNoDrag}`)||this.handle&&!e.closest(this.handle)||(t.preventDefault(),this.pos=yt(t),this.touched=new Set([this]),this.placeholder=n,this.origin={target:e,index:$t(n),...this.pos},$(document,ni,this.move),$(document,Et,this.end),this.threshold||this.start(t))},start(t){this.drag=wl(this.$container,this.placeholder);const{left:e,top:i}=m(this.placeholder);ft(this.origin,{offsetLeft:this.pos.x-e,offsetTop:this.pos.y-i}),S(this.drag,this.clsDrag,this.clsCustom),S(this.placeholder,this.clsPlaceholder),S(this.items,this.clsItem),S(document.documentElement,this.clsDragState),b(this.$el,"start",[this,this.placeholder]),vl(this.pos),this.move(t)},move:kl(function(t){ft(this.pos,yt(t)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t),this.$emit("move")}),end(){if(Tt(document,ni,this.move),Tt(document,Et,this.end),!this.drag)return;bl();const t=this.getSortable(this.placeholder);this===t?this.origin.index!==$t(this.placeholder)&&b(this.$el,"moved",[this,this.placeholder]):(b(t.$el,"added",[t,this.placeholder]),b(this.$el,"removed",[this,this.placeholder])),b(this.$el,"stop",[this,this.placeholder]),ot(this.drag),this.drag=null;for(const{clsPlaceholder:e,clsItem:i}of this.touched)for(const s of this.touched)_(s.items,e,i);this.touched=null,_(document.documentElement,this.clsDragState)},insert(t,e){S(this.items,this.clsItem),e&&e.previousElementSibling!==t?this.animate(()=>hi(e,t)):!e&&this.target.lastElementChild!==t&&this.animate(()=>q(this.target,t))},remove(t){this.target.contains(t)&&this.animate(()=>ot(t))},getSortable(t){do{const e=this.$getComponent(t,"sortable");if(e&&(e===this||this.group!==!1&&e.group===this.group))return e}while(t=D(t))}}};let Io;function vl(t){let e=Date.now();Io=setInterval(()=>{let{x:i,y:s}=t;s+=document.scrollingElement.scrollTop;const n=(Date.now()-e)*.3;e=Date.now(),jt(document.elementFromPoint(i,t.y)).reverse().some(o=>{let{scrollTop:r,scrollHeight:a}=o;const{top:l,bottom:c,height:u}=rt(o);if(l<s&&l+35>s)r-=n;else if(c>s&&c-35<s)r+=n;else return;if(r>0&&r<a-u)return o.scrollTop=r,!0})},15)}function bl(){clearInterval(Io)}function wl(t,e){let i;if(H(e,"li","tr")){i=y("<div>"),q(i,e.cloneNode(!0).children);for(const s of e.getAttributeNames())g(i,s,e.getAttribute(s))}else i=e.cloneNode(!0);return q(t,i),h(i,"margin","0","important"),h(i,{boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight,padding:h(e,"padding")}),et(i.firstElementChild,et(e.firstElementChild)),i}function xl(t,e){return t[wt(t,i=>ii(e,m(i)))]}function $l(t,e,i,s,n,o){if(!M(t).length)return;const r=m(e);if(!o)return yl(t,i)||n<r.top+r.height/2?e:e.nextElementSibling;const a=m(i),l=Eo([r.top,r.bottom],[a.top,a.bottom]),[c,u,f,d]=l?[s,"width","left","right"]:[n,"height","top","bottom"],p=a[u]<r[u]?r[u]-a[u]:0;return a[f]<r[f]?p&&c<r[f]+p?!1:e.nextElementSibling:p&&c>r[d]-p?!1:e}function yl(t,e){const i=M(t).length===1;i&&q(t,e);const s=M(t),n=s.some((o,r)=>{const a=m(o);return s.slice(r+1).some(l=>{const c=m(l);return!Eo([a.left,a.right],[c.left,c.right])})});return i&&ot(e),n}function Eo(t,e){return t[1]>e[0]&&e[1]>t[0]}function kl(t){let e;return function(...i){e||(e=!0,t.call(this,...i),requestAnimationFrame(()=>e=!1))}}var To={props:{pos:String,offset:Boolean,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${U?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=v(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let s=[this.getPositionOffset(t),this.getShiftOffset(t)];const n=[this.flip&&"flip",this.shift&&"shift"],o={element:[this.inset?this.dir:gi(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in o)o[l].reverse();s.reverse(),n.reverse()}const r=Co(t),a=m(t);h(t,{top:-a.height,left:-a.width}),mn(t,e,{attach:o,offset:s,boundary:i,placement:n,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t=this.$el){return Y(this.offset===!1?h(t,"--bdt-position-offset"):this.offset,this.axis==="x"?"width":"height",t)*(v(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t=this.$el){return this.align==="center"?0:Y(h(t,"--bdt-position-shift-offset"),this.axis==="y"?"width":"height",t)*(v(["left","top"],this.align)?1:-1)},getViewportOffset(t){return Y(h(t,"--bdt-position-viewport-offset"))}}};function Co(t){const e=Ot(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}var Sl={mixins:[je,qt,To],data:{pos:"top",animation:["bdt-animation-scale-up"],duration:100,cls:"bdt-active"},connected(){Il(this.$el)},disconnected(){this.hide()},methods:{show(){if(this.isToggled(this.tooltip||null))return;const{delay:t=0,title:e}=Tl(this.$options);if(!e)return;const i=g(this.$el,"title"),s=$(this.$el,["blur",oe],o=>!dt(o)&&this.hide());this.reset=()=>{g(this.$el,{title:i,"aria-describedby":null}),s()};const n=Yt(this);g(this.$el,{title:null,"aria-describedby":n}),clearTimeout(this.showTimer),this.showTimer=setTimeout(()=>this._show(e,n),t)},async hide(){var t;C(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),(t=this.reset)==null||t.call(this),ot(this.tooltip),this.tooltip=null)},async _show(t,e){this.tooltip=q(this.container,`<div id="${e}" class="bdt-${this.$options.name}" role="tooltip"> <div class="bdt-${this.$options.name}-inner">${t}</div> </div>`),$(this.tooltip,"toggled",(i,s)=>{if(!s)return;const n=()=>this.positionAt(this.tooltip,this.$el);n();const[o,r]=El(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${gi(o)}-${r}`:`${r}-${gi(o)}`;const a=[F(document,`keydown ${ht}`,this.hide,!1,l=>l.type===ht&&!this.$el.contains(l.target)||l.type==="keydown"&&l.keyCode===O.ESC),$([document,...Rt(this.$el)],"scroll",n,{passive:!0})];F(this.tooltip,"hide",()=>a.forEach(l=>l()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{[`focus ${Ht} ${ht}`](t){(!dt(t)||t.type===ht)&&this.show()}}};function Il(t){ai(t)||g(t,"tabindex","0")}function El(t,e,[i,s]){const n=E(t),o=E(e),r=[["left","right"],["top","bottom"]];for(const l of r){if(n[l[0]]>=o[l[1]]){i=l[1];break}if(n[l[1]]<=o[l[0]]){i=l[0];break}}return s=(v(r[0],i)?r[1]:r[0]).find(l=>n[l]===o[l])||"center",[i,s]}function Tl(t){const{el:e,id:i,data:s}=t;return["delay","title"].reduce((n,o)=>({[o]:J(e,o),...n}),{...he(J(e,i),["title"]),...s})}var Cl={mixins:[Ei],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"bdt-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:A,beforeAll:A,beforeSend:A,complete:A,completeAll:A,error:A,fail:A,load:A,loadEnd:A,loadStart:A,progress:A},events:{change(t){C(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop(t){Mi(t);const e=t.dataTransfer;e!=null&&e.files&&(_(this.$el,this.clsDragover),this.upload(e.files))},dragenter(t){Mi(t)},dragover(t){Mi(t),S(this.$el,this.clsDragover)},dragleave(t){Mi(t),_(this.$el,this.clsDragover)}},methods:{async upload(t){if(t=Zt(t),!t.length)return;b(this.$el,"upload",[t]);for(const s of t){if(this.maxSize&&this.maxSize*1e3<s.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!Po(this.allow,s.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!Po(this.mime,s.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(t=t.slice(0,1)),this.beforeAll(this,t);const e=Pl(t,this.concurrent),i=async s=>{const n=new FormData;s.forEach(o=>n.append(this.name,o));for(const o in this.params)n.append(o,this.params[o]);try{const o=await _l(this.url,{data:n,method:this.method,responseType:this.type,beforeSend:r=>{const{xhr:a}=r;$(a.upload,"progress",this.progress);for(const l of["loadStart","load","loadEnd","abort"])$(a,l.toLowerCase(),this[l]);return this.beforeSend(r)}});this.complete(o),e.length?await i(e.shift()):this.completeAll(o)}catch(o){this.error(o)}};await i(e.shift())}}};function Po(t,e){return e.match(new RegExp(`^${t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function Pl(t,e){const i=[];for(let s=0;s<t.length;s+=e)i.push(t.slice(s,s+e));return i}function Mi(t){t.preventDefault(),t.stopPropagation()}async function _l(t,e){const i={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:A,responseType:"",...e};return await i.beforeSend(i),Al(t,i)}function Al(t,e){return new Promise((i,s)=>{const{xhr:n}=e;for(const o in e)if(o in n)try{n[o]=e[o]}catch{}n.open(e.method.toUpperCase(),t);for(const o in e.headers)n.setRequestHeader(o,e.headers[o]);$(n,"load",()=>{n.status===0||n.status>=200&&n.status<300||n.status===304?i(n):s(ft(Error(n.statusText),{xhr:n,status:n.status}))}),$(n,"error",()=>s(ft(Error("Network Error"),{xhr:n}))),$(n,"timeout",()=>s(ft(Error("Network Timeout"),{xhr:n}))),n.send(e.data)})}var Ol=Object.freeze({__proto__:null,Countdown:Rr,Filter:na,Lightbox:Ja,LightboxPanel:so,Notification:Qa,Parallax:al,Slider:ul,SliderParallax:yo,Slideshow:gl,SlideshowParallax:yo,Sortable:ml,Tooltip:Sl,Upload:Cl});function Dl(t){Ft&&window.MutationObserver&&(document.body?requestAnimationFrame(()=>_o(t)):new MutationObserver((e,i)=>{document.body&&(_o(t),i.disconnect())}).observe(document.documentElement,{childList:!0}))}function _o(t){b(document,"uikit:init",t),document.body&&_t(document.body,Ao),new MutationObserver(e=>e.forEach(Ml)).observe(document,{subtree:!0,childList:!0}),new MutationObserver(e=>e.forEach(Bl)).observe(document,{subtree:!0,attributes:!0}),t._initialized=!0}function Ml({addedNodes:t,removedNodes:e}){for(const i of t)_t(i,Ao);for(const i of e)_t(i,Nl)}function Bl({target:t,attributeName:e}){var i;const s=Oo(e);s&&(It(t,e)?Ue(s,t):(i=Ti(t,s))==null||i.$destroy())}function Ao(t){const e=Ve(t);for(const i in e)Ts(e[i]);for(const i of t.getAttributeNames()){const s=Oo(i);s&&Ue(s,t)}}function Nl(t){const e=Ve(t);for(const i in e)Cs(e[i])}function Oo(t){gt(t,"data-")&&(t=t.slice(5));const e=pe[t];return e&&(e.options||e).name}Ra(lt),qa(lt);var Do={mixins:[it,qt],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"bdt-open",toggle:"> .bdt-accordion-title",content:"> .bdt-accordion-content",offset:0},computed:{items:({targets:t},e)=>N(t,e),toggles({toggle:t}){return this.items.map(e=>y(t,e))},contents({content:t}){return this.items.map(e=>{var i;return((i=e._wrapper)==null?void 0:i.firstElementChild)||y(t,e)})}},watch:{items(t,e){if(e||x(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const i=x(this.items.find(s=>s.contains(e)),this.clsOpen);Bi(e,!i)}this.$emit()}},observe:Si(),events:[{name:"click keydown",delegate:({targets:t,$props:e})=>`${t} ${e.toggle}`,async handler(t){var e;t.type==="keydown"&&t.keyCode!==O.SPACE||(t.preventDefault(),(e=this._off)==null||e.call(this),this._off=Fl(t.target),await this.toggle($t(this.toggles,t.current)),this._off())}},{name:"shown hidden",self:!0,delegate:({targets:t})=>t,handler(){this.$emit()}}],update(){const t=Pe(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],s=this.contents[e];if(!i||!s)continue;i.id=Yt(this,i),s.id=Yt(this,s);const n=v(t,this.items[e]);g(i,{role:H(i,"a")?"button":null,"aria-controls":s.id,"aria-expanded":n,"aria-disabled":!this.collapsible&&t.length<2&&n}),g(s,{role:"region","aria-labelledby":i.id}),H(s,"ul")&&g(M(s),"role","presentation")}},methods:{toggle(t,e){t=this.items[nt(t,this.items)];let i=[t];const s=Pe(this.items,`.${this.clsOpen}`);if(!this.multiple&&!v(s,i[0])&&(i=i.concat(s)),!(!this.collapsible&&s.length<2&&v(s,t)))return Promise.all(i.map(n=>this.toggleElement(n,!v(s,n),(o,r)=>{if(j(o,this.clsOpen,r),e===!1||!this.animation){Bi(y(this.content,o),!r);return}return zl(o,r,this)})))}}};function Bi(t,e){t&&(t.hidden=e)}async function zl(t,e,{content:i,duration:s,velocity:n,transition:o}){var r;i=((r=t._wrapper)==null?void 0:r.firstElementChild)||y(i,t),t._wrapper||(t._wrapper=di(i,"<div>"));const a=t._wrapper;h(a,"overflow","hidden");const l=k(h(a,"height"));await B.cancel(a),Bi(i,!1);const c=Nt(["marginTop","marginBottom"],f=>h(i,f))+m(i).height,u=l/c;s=(n*c+s)*(e?1-u:u),h(a,"height",l),await B.start(a,{height:e?c:0},s,o),Me(i),delete t._wrapper,e||Bi(i,!0)}function Fl(t){const e=Ot(t,!0);let i;return function s(){i=requestAnimationFrame(()=>{const{top:n}=m(t);n<0&&(e.scrollTop+=n),s()})}(),()=>requestAnimationFrame(()=>cancelAnimationFrame(i))}var Hl={mixins:[it,qt],args:"animation",props:{animation:Boolean,close:String},data:{animation:!0,selClose:".bdt-alert-close",duration:150},events:{name:"click",delegate:({selClose:t})=>t,handler(t){t.preventDefault(),this.close()}},methods:{async close(){await this.toggleElement(this.$el,!1,Ll),this.$destroy(!0)}}};function Ll(t,e,{duration:i,transition:s,velocity:n}){const o=k(h(t,"height"));return h(t,"height",o),B.start(t,{height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,opacity:0},n*o+i,s)}var Mo={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},beforeConnect(){this.autoplay==="inview"&&!It(this.$el,"preload")&&(this.$el.preload="none"),H(this.$el,"iframe")&&!It(this.$el,"allow")&&(this.$el.allow="autoplay"),this.autoplay==="hover"&&(H(this.$el,"video")?this.$el.tabindex=0:this.autoplay=!0),this.automute&&cn(this.$el)},events:[{name:`${Ht} focusin`,filter:({autoplay:t})=>v(t,"hover"),handler(t){!dt(t)||!Wl(this.$el)?ls(this.$el):bi(this.$el)}},{name:`${oe} focusout`,filter:({autoplay:t})=>v(t,"hover"),handler(t){dt(t)||bi(this.$el)}}],observe:[ue({filter:({$el:t,autoplay:e})=>e&&e!=="hover"&&hn(t),handler([{isIntersecting:t}]){document.fullscreenElement||(t?ls(this.$el):bi(this.$el))},args:{intersecting:!1},options:({$el:t,autoplay:e})=>({root:e==="inview"?null:D(t)})})]};function Wl(t){return!t.paused&&!t.ended}var jl={mixins:[Mo],props:{width:Number,height:Number},data:{automute:!0},created(){this.useObjectFit=H(this.$el,"img","video")},observe:ut({target:({$el:t})=>Bo(t)||D(t),filter:({useObjectFit:t})=>!t}),update:{read(){if(this.useObjectFit)return!1;const{ratio:t,cover:e}=Ui,{$el:i,width:s,height:n}=this;let o={width:s,height:n};if(!s||!n){const c={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};s?o=t(c,"width",s):n?o=t(c,"height",n):o=c}const{offsetHeight:r,offsetWidth:a}=Bo(i)||D(i),l=e(o,{width:a,height:r});return!l.width||!l.height?!1:l},write({height:t,width:e}){h(this.$el,{height:t,width:e})},events:["resize"]}};function Bo(t){for(;t=D(t);)if(h(t,"position")!=="static")return t}let K;var No={mixins:[je,To,qt],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryX:Boolean,boundaryY:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,stretch:Boolean,delayShow:Number,delayHide:Number,autoUpdate:Boolean,clsDrop:String,animateOut:Boolean,bgScroll:Boolean,closeOnScroll:Boolean},data:{mode:["click","hover"],toggle:"- *",boundary:!1,boundaryX:!1,boundaryY:!1,target:!1,targetX:!1,targetY:!1,stretch:!1,delayShow:0,delayHide:800,autoUpdate:!0,clsDrop:!1,animateOut:!1,bgScroll:!0,animation:["bdt-animation-fade"],cls:"bdt-open",container:!1,closeOnScroll:!1},computed:{boundary({boundary:t,boundaryX:e,boundaryY:i},s){return[Z(e||t,s)||window,Z(i||t,s)||window]},target({target:t,targetX:e,targetY:i},s){return e||(e=t||this.targetEl),i||(i=t||this.targetEl),[e===!0?window:Z(e,s),i===!0?window:Z(i,s)]}},created(){this.tracker=new rn},beforeConnect(){this.clsDrop=this.$props.clsDrop||this.$options.id},connected(){S(this.$el,"bdt-drop",this.clsDrop),this.toggle&&!this.targetEl&&(this.targetEl=ql(this)),this._style=Ri(this.$el.style,["width","height"])},disconnected(){this.isActive()&&(this.hide(!1),K=null),h(this.$el,this._style)},events:[{name:"click",delegate:()=>".bdt-drop-close",handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:()=>'a[href*="#"]',handler({defaultPrevented:t,current:e}){const{hash:i}=e;!t&&i&&re(e)&&!this.$el.contains(y(i))&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e==null?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e==null?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),C(this.$el,":focus,:hover")||this.hide()}},{name:`${Ht} focusin`,filter:({mode:t})=>v(t,"hover"),handler(t){dt(t)||this.clearTimers()}},{name:`${oe} focusout`,filter:({mode:t})=>v(t,"hover"),handler(t){!dt(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){K=this,this.tracker.init(),g(this.targetEl,"aria-expanded",!0);const t=[Ul(this),Vl(this),Gl(this),this.autoUpdate&&zo(this),this.closeOnScroll&&Yl(this)];F(this.$el,"hide",()=>t.forEach(e=>e&&e()),{self:!0}),this.bgScroll||F(this.$el,"hidden",Bn(this.$el),{self:!0})}},{name:"beforehide",self:!0,handler:"clearTimers"},{name:"hide",handler({target:t}){if(this.$el!==t){K=K===null&&this.$el.contains(t)&&this.isToggled()?this:K;return}K=this.isActive()?null:K,this.tracker.cancel(),g(this.targetEl,"aria-expanded",null)}}],update:{write(){this.isToggled()&&!x(this.$el,this.clsEnter)&&this.position()}},methods:{show(t=this.targetEl,e=!0){if(this.isToggled()&&t&&this.targetEl&&t!==this.targetEl&&this.hide(!1,!1),this.targetEl=t,this.clearTimers(),!this.isActive()){if(K){if(e&&K.isDelaying()){this.showTimer=setTimeout(()=>C(t,":hover")&&this.show(),10);return}let i;for(;K&&i!==K&&!K.$el.contains(this.$el);)i=K,K.hide(!1,!1)}this.container&&D(this.$el)!==this.container&&q(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t=!0,e=!0){const i=()=>this.toggleElement(this.$el,!1,this.animateOut&&e);this.clearTimers(),this.isDelayedHide=t,t&&this.isDelaying()?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null},isActive(){return K===this},isDelaying(){return[this.$el,...N(".bdt-drop",this.$el)].some(t=>this.tracker.movesTo(t))},position(){const t=Co(this.$el);_(this.$el,"bdt-drop-stack"),h(this.$el,this._style),this.$el.hidden=!0;const e=this.target.map(o=>Rl(this.$el,o)),i=this.getViewportOffset(this.$el),s=[[0,["x","width","left","right"]],[1,["y","height","top","bottom"]]];for(const[o,[r,a]]of s)this.axis!==r&&v([r,!0],this.stretch)&&h(this.$el,{[a]:Math.min(E(this.boundary[o])[a],e[o][a]-2*i),[`overflow-${r}`]:"auto"});const n=e[0].width-2*i;this.$el.hidden=!1,h(this.$el,"maxWidth",""),this.$el.offsetWidth>n&&S(this.$el,"bdt-drop-stack"),h(this.$el,"maxWidth",n),this.positionAt(this.$el,this.target,this.boundary);for(const[o,[r,a,l,c]]of s)if(this.axis===r&&v([r,!0],this.stretch)){const u=Math.abs(this.getPositionOffset()),f=E(this.target[o]),d=E(this.$el);h(this.$el,{[a]:(f[l]>d[l]?f[this.inset?c:l]-Math.max(E(this.boundary[o])[l],e[o][l]+i):Math.min(E(this.boundary[o])[c],e[o][c]-i)-f[this.inset?l:c])-u,[`overflow-${r}`]:"auto"}),this.positionAt(this.$el,this.target,this.boundary)}t()}}};function Rl(t,e){return rt(Rt(e).find(i=>i.contains(t)))}function ql(t){const{$el:e}=t.$create("toggle",Z(t.toggle,t.$el),{target:t.$el,mode:t.mode});return g(e,"aria-haspopup",!0),e}function Ul(t){const e=()=>t.$emit(),i=[rs(e),ze(Rt(t.$el).concat(t.target),e)];return()=>i.map(s=>s.disconnect())}function zo(t,e=()=>t.$emit()){return $([document,...Rt(t.$el)],"scroll",e,{passive:!0})}function Vl(t){return $(document,"keydown",e=>{e.keyCode===O.ESC&&t.hide(!1)})}function Yl(t){return zo(t,()=>t.hide(!1))}function Gl(t){return $(document,ht,({target:e})=>{t.$el.contains(e)||F(document,`${Et} ${oi} scroll`,({defaultPrevented:i,type:s,target:n})=>{var o;!i&&s===Et&&e===n&&!((o=t.targetEl)!=null&&o.contains(e))&&t.hide(!1)},!0)})}var Fo={mixins:[it,je],props:{align:String,clsDrop:String,boundary:Boolean,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number,mode:Boolean,offset:Boolean,stretch:Boolean,delayShow:Boolean,delayHide:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,animation:Boolean,animateOut:Boolean,closeOnScroll:Boolean},data:{align:U?"right":"left",clsDrop:"bdt-dropdown",clsDropbar:"bdt-dropnav-dropbar",boundary:!0,dropbar:!1,dropbarAnchor:!1,duration:200,container:!1,selNavItem:"> li > a, > ul > li > a"},computed:{dropbarAnchor:({dropbarAnchor:t},e)=>Z(t,e)||e,dropbar({dropbar:t}){return t?(t=this._dropbar||Z(t,this.$el)||y(`+ .${this.clsDropbar}`,this.$el),t||(this._dropbar=y("<div></div>"))):null},dropContainer(t,e){return this.container||e},dropdowns({clsDrop:t},e){var i;const s=N(`.${t}`,e);if(this.dropContainer!==e)for(const n of N(`.${t}`,this.dropContainer)){const o=(i=this.getDropdown(n))==null?void 0:i.targetEl;!v(s,n)&&o&&this.$el.contains(o)&&s.push(n)}return s},items({selNavItem:t},e){return N(t,e)}},watch:{dropbar(t){S(t,"bdt-dropbar","bdt-dropbar-top",this.clsDropbar,`bdt-${this.$options.name}-dropbar`)},dropdowns(){this.initializeDropdowns()}},connected(){this.initializeDropdowns()},disconnected(){ot(this._dropbar),delete this._dropbar},events:[{name:"mouseover focusin",delegate:({selNavItem:t})=>t,handler({current:t}){const e=this.getActive();e&&v(e.mode,"hover")&&e.targetEl&&!t.contains(e.targetEl)&&!e.isDelaying()&&e.hide(!1)}},{name:"keydown",self:!0,delegate:({selNavItem:t})=>t,handler(t){var e;const{current:i,keyCode:s}=t,n=this.getActive();s===O.DOWN&&(n==null?void 0:n.targetEl)===i&&(t.preventDefault(),(e=y(Ce,n.$el))==null||e.focus()),Ho(t,this.items,n)}},{name:"keydown",el:({dropContainer:t})=>t,delegate:({clsDrop:t})=>`.${t}`,handler(t){var e;const{current:i,keyCode:s,target:n}=t;if(ri(n)||!v(this.dropdowns,i))return;const o=this.getActive();let r=-1;if(s===O.HOME?r=0:s===O.END?r="last":s===O.UP?r="previous":s===O.DOWN?r="next":s===O.ESC&&((e=o.targetEl)==null||e.focus()),~r){t.preventDefault();const a=N(Ce,i);a[nt(r,a,wt(a,l=>C(l,":focus")))].focus()}Ho(t,this.items,o)}},{name:"mouseleave",el:({dropbar:t})=>t,filter:({dropbar:t})=>t,handler(){const t=this.getActive();t&&v(t.mode,"hover")&&!this.dropdowns.some(e=>C(e,":hover"))&&t.hide()}},{name:"beforeshow",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler({target:t}){this.isDropbarDrop(t)&&(this.dropbar.previousElementSibling!==this.dropbarAnchor&&ui(this.dropbarAnchor,this.dropbar),S(t,`${this.clsDrop}-dropbar`))}},{name:"show",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler({target:t}){if(!this.isDropbarDrop(t))return;const e=this.getDropdown(t),i=()=>{const s=Math.max(..._e(t,`.${this.clsDrop}`).concat(t).map(n=>E(n).bottom));E(this.dropbar,{left:E(this.dropbar).left,top:this.getDropbarOffset(e.getPositionOffset())}),this.transitionTo(s-E(this.dropbar).top+k(h(t,"marginBottom")),t)};this._observer=ze([e.$el,...e.target],i),i()}},{name:"beforehide",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler(t){const e=this.getActive();C(this.dropbar,":hover")&&e.$el===t.target&&this.isDropbarDrop(e.$el)&&v(e.mode,"hover")&&e.isDelayedHide&&!this.items.some(i=>e.targetEl!==i&&C(i,":focus"))&&t.preventDefault()}},{name:"hide",el:({dropContainer:t})=>t,filter:({dropbar:t})=>t,handler({target:t}){var e;if(!this.isDropbarDrop(t))return;(e=this._observer)==null||e.disconnect();const i=this.getActive();(!i||i.$el===t)&&this.transitionTo(0)}}],methods:{getActive(){var t;return v(this.dropdowns,(t=K)==null?void 0:t.$el)&&K},async transitionTo(t,e){const{dropbar:i}=this,s=et(i);if(e=s<t&&e,await B.cancel([e,i]),e){const n=E(e).top-E(i).top-s;n>0&&h(e,"transitionDelay",`${n/t*this.duration}ms`)}h(e,"clipPath",`polygon(0 0,100% 0,100% ${s}px,0 ${s}px)`),et(i,s),await Promise.all([B.start(i,{height:t},this.duration),B.start(e,{clipPath:`polygon(0 0,100% 0,100% ${t}px,0 ${t}px)`},this.duration).finally(()=>h(e,{clipPath:"",transitionDelay:""}))]).catch(A)},getDropdown(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")},isDropbarDrop(t){return v(this.dropdowns,t)&&x(t,this.clsDrop)},getDropbarOffset(t){const{$el:e,target:i,targetY:s}=this,{top:n,height:o}=E(Z(s||i||e,e));return n+o+t},initializeDropdowns(){this.$create("drop",this.dropdowns.filter(t=>!this.getDropdown(t)),{...this.$props,flip:!1,shift:!0,pos:`bottom-${this.align}`,boundary:this.boundary===!0?this.$el:this.boundary})}}};function Ho(t,e,i){var s,n,o;const{current:r,keyCode:a}=t;let l=-1;a===O.HOME?l=0:a===O.END?l="last":a===O.LEFT?l="previous":a===O.RIGHT?l="next":a===O.TAB&&((s=i.targetEl)==null||s.focus(),(n=i.hide)==null||n.call(i,!1)),~l&&(t.preventDefault(),(o=i.hide)==null||o.call(i,!1),e[nt(l,e,e.indexOf(i.targetEl||r))].focus())}var Xl={mixins:[it],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:(t,e)=>y(Te,e),state(){return this.input.nextElementSibling},target({target:t},e){return t&&(t===!0&&D(this.input)===e&&this.input.nextElementSibling||y(t,e))}},update(){var t;const{target:e,input:i}=this;if(!e)return;let s;const n=ri(e)?"value":"textContent",o=e[n],r=(t=i.files)!=null&&t[0]?i.files[0].name:C(i,"select")&&(s=N("option",i).filter(a=>a.selected)[0])?s.textContent:i.value;o!==r&&(e[n]=r)},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el:({$el:t})=>t.closest("form"),handler(){this.$emit()}}]},Jl={extends:En,mixins:[it],name:"grid",props:{masonry:Boolean,parallax:String,parallaxStart:String,parallaxEnd:String,parallaxJustify:Boolean},data:{margin:"bdt-grid-margin",clsStack:"bdt-grid-stack",masonry:!1,parallax:0,parallaxStart:0,parallaxEnd:0,parallaxJustify:!1},connected(){this.masonry&&S(this.$el,"bdt-flex-top","bdt-flex-wrap-top")},observe:Le({filter:({parallax:t,parallaxJustify:e})=>t||e}),update:[{write({rows:t}){j(this.$el,this.clsStack,!t.some(e=>e.length>1))},events:["resize"]},{read(t){const{rows:e}=t;let{masonry:i,parallax:s,parallaxJustify:n,margin:o}=this;if(s=Math.max(0,Y(s)),!(i||s||n)||Lo(e)||e[0].some((w,I)=>e.some(P=>P[I]&&P[I].offsetWidth!==w.offsetWidth)))return t.translates=t.scrollColumns=!1;let r=Ql(e,o),a,l;i?[a,l]=Kl(e,r,i==="next"):a=Zl(e);const c=a.map(w=>Nt(w,"offsetHeight")+r*(w.length-1)),u=Math.max(0,...c);let f,d,p;return(s||n)&&(f=c.map((w,I)=>n?u-w+s:s/(I%2||8)),n||(s=Math.max(...c.map((w,I)=>w+f[I]-u))),d=Y(this.parallaxStart,"height",this.$el,!0),p=Y(this.parallaxEnd,"height",this.$el,!0)),{columns:a,translates:l,scrollColumns:f,parallaxStart:d,parallaxEnd:p,padding:s,height:l?u:""}},write({height:t,padding:e}){h(this.$el,"paddingBottom",e||""),t!==!1&&h(this.$el,"height",t)},events:["resize"]},{read({rows:t,scrollColumns:e,parallaxStart:i,parallaxEnd:s}){return{scrolled:e&&!Lo(t)?$i(this.$el,i,s):!1}},write({columns:t,scrolled:e,scrollColumns:i,translates:s}){!e&&!s||t.forEach((n,o)=>n.forEach((r,a)=>{let[l,c]=s&&s[o][a]||[0,0];e&&(c+=e*i[o]),h(r,"transform",`translate(${l}px, ${c}px)`)}))},events:["scroll","resize"]}]};function Lo(t){return t.flat().some(e=>h(e,"position")==="absolute")}function Kl(t,e,i){const s=[],n=[],o=Array(t[0].length).fill(0);let r=0;for(let a of t){U&&(a=a.reverse());let l=0;for(const c in a){const{offsetWidth:u,offsetHeight:f}=a[c],d=i?c:o.indexOf(Math.min(...o));As(s,d,a[c]),As(n,d,[(d-c)*u*(U?-1:1),o[d]-r]),o[d]+=f+e,l=Math.max(l,f)}r+=l+e}return[s,n]}function Ql(t,e){const i=t.flat().find(s=>x(s,e));return k(i?h(i,"marginTop"):h(t[0][0],"paddingLeft"))}function Zl(t){const e=[];for(const i of t)for(const s in i)As(e,s,i[s]);return e}function As(t,e,i){t[e]||(t[e]=[]),t[e].push(i)}var tc={args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements:({target:t},e)=>N(t,e)},observe:ut({target:({$el:t,elements:e})=>e.reduce((i,s)=>i.concat(s,...s.children),[t])}),events:{name:"loadingdone",el:()=>document.fonts,handler(){this.$emit("resize")}},update:{read(){return{rows:(this.row?bs(this.elements):[this.elements]).map(ec)}},write({rows:t}){for(const{heights:e,elements:i}of t)i.forEach((s,n)=>h(s,"minHeight",e[n]))},events:["resize"]}};function ec(t){if(t.length<2)return{heights:[""],elements:t};let e=t.map(ic);const i=Math.max(...e);return{heights:t.map((s,n)=>e[n].toFixed(2)===i.toFixed(2)?"":i),elements:t}}function ic(t){const e=Ri(t.style,["display","minHeight"]);R(t)||h(t,"display","block","important"),h(t,"minHeight","");const i=m(t).height-le(t,"height","content-box");return h(t,e),i}var sc={args:"target",props:{target:String},data:{target:""},computed:{target:{get:({target:t},e)=>Z(t,e),observe:({target:t})=>t}},observe:ut({target:({target:t})=>t}),update:{read(){return this.target?{height:this.target.offsetHeight}:!1},write({height:t}){h(this.$el,{minHeight:t})},events:["resize"]}},nc={props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},observe:[vs({filter:({expand:t})=>t}),ut({target:({$el:t})=>jt(t)})],update:{read(){if(!R(this.$el))return!1;let t="";const e=le(this.$el,"height","content-box"),{body:i,scrollingElement:s}=document,n=Ot(this.$el),{height:o}=rt(n===i?s:n),r=s===n||i===n;if(t=`calc(${r?"100vh":`${o}px`}`,this.expand){const a=m(n).height-m(this.$el).height;t+=` - ${a}px`}else{if(this.offsetTop)if(r){const a=this.offsetTop===!0?this.$el:Z(this.offsetTop,this.$el),{top:l}=E(a);t+=l>0&&l<o/2?` - ${l}px`:""}else t+=` - ${le(n,"height",h(n,"boxSizing"))}px`;this.offsetBottom===!0?t+=` - ${m(this.$el.nextElementSibling).height}px`:mt(this.offsetBottom)?t+=` - ${this.offsetBottom}vh`:this.offsetBottom&&Qt(this.offsetBottom,"px")?t+=` - ${k(this.offsetBottom)}px`:z(this.offsetBottom)&&(t+=` - ${m(Z(this.offsetBottom,this.$el)).height}px`)}return t+=`${e?` - ${e}px`:""})`,{minHeight:t}},write({minHeight:t}){h(this.$el,"minHeight",`max(${this.minHeight||0}px, ${t})`)},events:["resize"]}},oc='<svg width="14" height="14" viewBox="0 0 14 14"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"/><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"/></svg>',rc='<svg width="20" height="20" viewBox="0 0 20 20"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"/><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"/></svg>',ac='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',lc='<svg width="20" height="20" viewBox="0 0 20 20"><rect width="1" height="11" x="9" y="4"/><rect width="11" height="1" x="4" y="9"/></svg>',cc='<svg width="14" height="14" viewBox="0 0 14 14"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 4 7 10 13 4"/></svg>',hc='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',uc='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',fc='<svg width="20" height="20" viewBox="0 0 20 20"><style>.bdt-navbar-toggle-icon svg&gt;[class*=&quot;line-&quot;]{transition:0.2s ease-in-out;transition-property:transform, opacity;transform-origin:center;opacity:1}.bdt-navbar-toggle-icon svg&gt;.line-3{opacity:0}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{opacity:1}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-2{transform:rotate(45deg)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{transform:rotate(-45deg)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1,.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{opacity:0}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1{transform:translateY(6px) scaleX(0)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{transform:translateY(-6px) scaleX(0)}</style><rect width="20" height="2" y="3" class="line-1"/><rect width="20" height="2" y="9" class="line-2"/><rect width="20" height="2" y="9" class="line-3"/><rect width="20" height="2" y="15" class="line-4"/></svg>',dc='<svg width="40" height="40" viewBox="0 0 40 40"><rect width="1" height="40" x="19" y="0"/><rect width="40" height="1" x="0" y="19"/></svg>',pc='<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',gc='<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',Wo='<svg width="20" height="20" viewBox="0 0 20 20"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"/><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"/></svg>',mc='<svg width="40" height="40" viewBox="0 0 40 40"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"/><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"/></svg>',vc='<svg width="24" height="24" viewBox="0 0 24 24"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',bc='<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5"/></svg>',wc='<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1"/></svg>',xc='<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547"/></svg>',$c='<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23"/></svg>',yc='<svg width="30" height="30" viewBox="0 0 30 30"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>',kc='<svg width="18" height="10" viewBox="0 0 18 10"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9"/></svg>',jo={args:"src",props:{width:Number,height:Number,ratio:Number},data:{ratio:1},connected(){this.svg=this.getSvg().then(t=>{if(!this._connected)return;const e=Sc(t,this.$el);return this.svgEl&&e!==this.svgEl&&ot(this.svgEl),Ic.call(this,e,t),this.svgEl=e},A)},disconnected(){this.svg.then(t=>{this._connected||(Vi(this.$el)&&(this.$el.hidden=!1),ot(t),this.svgEl=null)}),this.svg=null},methods:{async getSvg(){}}};function Sc(t,e){if(Vi(e)||H(e,"canvas")){e.hidden=!0;const s=e.nextElementSibling;return Ro(t,s)?s:ui(e,t)}const i=e.lastElementChild;return Ro(t,i)?i:q(e,t)}function Ro(t,e){return H(t,"svg")&&H(e,"svg")&&t.innerHTML===e.innerHTML}function Ic(t,e){const i=["width","height"];let s=i.map(o=>this[o]);s.some(o=>o)||(s=i.map(o=>g(e,o)));const n=g(e,"viewBox");n&&!s.some(o=>o)&&(s=n.split(" ").slice(2)),s.forEach((o,r)=>g(t,i[r],k(o)*this.ratio||null))}var Ec={mixins:[jo],args:"src",props:{src:String,icon:String,attributes:"list",strokeAnimation:Boolean},data:{strokeAnimation:!1},observe:[ki({async handler(){const t=await this.svg;t&&qo.call(this,t)},options:{attributes:!0,attributeFilter:["id","class","style"]}})],async connected(){v(this.src,"#")&&([this.src,this.icon]=this.src.split("#"));const t=await this.svg;t&&(qo.call(this,t),this.strokeAnimation&&_c(t))},methods:{async getSvg(){return H(this.$el,"img")&&!this.$el.complete&&this.$el.loading==="lazy"&&await new Promise(t=>F(this.$el,"load",t)),Cc(await Tc(this.src),this.icon)||Promise.reject("SVG not found.")}}};function qo(t){const{$el:e}=this;S(t,g(e,"class"),"bdt-svg");for(let i=0;i<e.style.length;i++){const s=e.style[i];h(t,s,h(e,s))}for(const i in this.attributes){const[s,n]=this.attributes[i].split(":",2);g(t,s,n)}this.$el.id||Ee(t,"id")}const Tc=ct(async t=>t?gt(t,"data:")?decodeURIComponent(t.split(",")[1]):(await fetch(t)).text():Promise.reject());function Cc(t,e){return e&&v(t,"<symbol")&&(t=Pc(t)[e]||t),Vo(t)}const Uo=/<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g,Pc=ct(function(t){const e={};Uo.lastIndex=0;let i;for(;i=Uo.exec(t);)e[i[3]]=`<svg ${i[1]}svg>`;return e});function _c(t){const e=oo(t);e&&h(t,"--bdt-animation-stroke",e)}function Vo(t){const e=document.createElement("template");return e.innerHTML=t,e.content.firstElementChild}const Ni={spinner:yc,totop:kc,marker:lc,"close-icon":oc,"close-large":rc,"drop-parent-icon":ac,"nav-parent-icon":hc,"nav-parent-icon-large":cc,"navbar-parent-icon":uc,"navbar-toggle-icon":fc,"overlay-icon":dc,"pagination-next":pc,"pagination-previous":gc,"search-icon":Wo,"search-medium":vc,"search-large":mc,"search-toggle-icon":Wo,"slidenav-next":wc,"slidenav-next-large":bc,"slidenav-previous":$c,"slidenav-previous-large":xc},Os={install:Lc,mixins:[jo],args:"icon",props:{icon:String},isIcon:!0,beforeConnect(){S(this.$el,"bdt-icon")},methods:{async getSvg(){const t=jc(this.icon);if(!t)throw"Icon not found.";return t}}},Xt={args:!1,extends:Os,data:t=>({icon:Dt(t.constructor.options.name)}),beforeConnect(){S(this.$el,this.$options.id)}},Ac={extends:Xt,beforeConnect(){const t=this.$props.icon;this.icon=this.$el.closest(".bdt-nav-primary")?`${t}-large`:t}},Oc={extends:Xt,mixins:[Ei],i18n:{toggle:"Open Search",submit:"Submit Search"},beforeConnect(){const t=x(this.$el,"bdt-search-toggle")||x(this.$el,"bdt-navbar-toggle");if(this.icon=t?"search-toggle-icon":x(this.$el,"bdt-search-icon")&&this.$el.closest(".bdt-search-large")?"search-large":this.$el.closest(".bdt-search-medium")?"search-medium":this.$props.icon,!It(this.$el,"aria-label"))if(t){const e=this.t("toggle");g(this.$el,"aria-label",e)}else{const e=this.$el.closest("a,button");if(e){const i=this.t("submit");g(e,"aria-label",i)}}}},Dc={extends:Xt,beforeConnect(){g(this.$el,"role","status")},methods:{async getSvg(){const t=await Os.methods.getSvg.call(this);return this.ratio!==1&&h(y("circle",t),"strokeWidth",1/this.ratio),t}}},Jt={extends:Xt,mixins:[Ei],beforeConnect(){const t=this.$el.closest("a,button");g(t,"role",this.role!==null&&H(t,"a")?"button":this.role);const e=this.t("label");e&&!It(t,"aria-label")&&g(t,"aria-label",e)}},Yo={extends:Jt,beforeConnect(){S(this.$el,"bdt-slidenav");const t=this.$props.icon;this.icon=x(this.$el,"bdt-slidenav-large")?`${t}-large`:t}},Mc={extends:Jt,i18n:{label:"Open menu"}},Bc={extends:Jt,i18n:{label:"Close"},beforeConnect(){this.icon=`close-${x(this.$el,"bdt-close-large")?"large":"icon"}`}},Nc={extends:Jt,i18n:{label:"Open"}},zc={extends:Jt,i18n:{label:"Back to top"}},Fc={extends:Jt,i18n:{label:"Next page"},data:{role:null}},Hc={extends:Jt,i18n:{label:"Previous page"},data:{role:null}},zi={};function Lc(t){t.icon.add=(e,i)=>{const s=z(e)?{[e]:i}:e;ie(s,(n,o)=>{Ni[o]=n,delete zi[o]}),t._initialized&&_t(document.body,n=>ie(t.getComponents(n),o=>{o.$options.isIcon&&o.icon in s&&o.$reset()}))}}const Wc={twitter:"x"};function jc(t){return t=Wc[t]||t,Ni[t]?(zi[t]||(zi[t]=Vo(Ni[Rc(t)]||Ni[t])),zi[t].cloneNode(!0)):null}function Rc(t){return U?ji(ji(t,"left","right"),"previous","next"):t}var qc={args:"dataSrc",props:{dataSrc:String,sources:String,margin:String,target:String,loading:String},data:{dataSrc:"",sources:!1,margin:"50%",target:!1,loading:"lazy"},connected(){this.loading!=="lazy"?this.load():Ms(this.$el)&&(this.$el.loading="lazy",Ds(this.$el))},disconnected(){this.img&&(this.img.onload=""),delete this.img},observe:ue({handler(t,e){this.load(),e.disconnect()},options:({margin:t})=>({rootMargin:t}),filter:({loading:t})=>t==="lazy",target:({$el:t,$props:e})=>e.target?[t,...Ae(e.target,t)]:t}),methods:{load(){if(this.img)return this.img;const t=Ms(this.$el)?this.$el:Vc(this.$el,this.dataSrc,this.sources);return Ee(t,"loading"),Ds(this.$el,t.currentSrc),this.img=t}}};function Ds(t,e){if(Ms(t)){const i=D(t);(H(i,"picture")?M(i):[t]).forEach(n=>Go(n,n))}else e&&!v(t.style.backgroundImage,e)&&(h(t,"backgroundImage",`url(${Ji(e)})`),b(t,ae("load",!1)))}const Uc=["data-src","data-srcset","sizes"];function Go(t,e){for(const i of Uc){const s=J(t,i);s&&g(e,i.replace(/^(data-)+/,""),s)}}function Vc(t,e,i){const s=new Image;return Yc(s,i),Go(t,s),s.onload=()=>{Ds(t,s.currentSrc)},g(s,"src",e),s}function Yc(t,e){if(e=Gc(e),e.length){const i=Lt("<picture>");for(const s of e){const n=Lt("<source>");g(n,s),q(i,n)}q(i,t)}}function Gc(t){if(!t)return[];if(gt(t,"["))try{t=JSON.parse(t)}catch{t=[]}else t=he(t);return G(t)||(t=[t]),t.filter(e=>!ti(e))}function Ms(t){return H(t,"img")}var Xc={props:{target:String,selActive:String},data:{target:!1,selActive:!1},computed:{target:({target:t},e)=>t?N(t,e):e},observe:[ue({handler(t){this.isIntersecting=t.some(({isIntersecting:e})=>e),this.$emit()},target:({target:t})=>t,args:{intersecting:!1}}),ki({target:({target:t})=>t,options:{attributes:!0,attributeFilter:["class"],attributeOldValue:!0}}),{target:({target:t})=>t,observe:(t,e)=>{const i=ze([...T(t),document.documentElement],e),s=[$(document,"scroll itemshown itemhidden",e,{passive:!0,capture:!0}),$(document,"show hide transitionstart",n=>(e(),i.observe(n.target))),$(document,"shown hidden transitionend transitioncancel",n=>(e(),i.unobserve(n.target)))];return{observe:i.observe.bind(i),unobserve:i.unobserve.bind(i),disconnect(){i.disconnect(),s.map(n=>n())}}},handler(){this.$emit()}}],update:{read(){if(!this.isIntersecting)return!1;for(const t of T(this.target)){let e=!this.selActive||C(t,this.selActive)?Jc(t):"";e!==!1&&si(t,"bdt-light bdt-dark",e)}}}};function Jc(t){const e=m(t),i=m(window);if(!ei(e,i))return!1;const{left:s,top:n,height:o,width:r}=e;let a;for(const l of[.25,.5,.75]){const c=t.ownerDocument.elementsFromPoint(Math.max(0,Math.min(s+r*l,i.width-1)),Math.max(0,Math.min(n+o/2,i.height-1)));for(const u of c){if(t.contains(u)||!Kc(u)||u.closest('[class*="-leave"]')&&c.some(d=>u!==d&&C(d,'[class*="-enter"]')))continue;const f=h(u,"--bdt-inverse");if(f){if(f===a)return`bdt-${f}`;a=f;break}}}return a?`bdt-${a}`:""}function Kc(t){if(h(t,"visibility")!=="visible")return!1;for(;t;){if(h(t,"opacity")==="0")return!1;t=D(t)}return!0}var Qc={mixins:[it,Ci],props:{fill:String},data:{fill:"",clsWrapper:"bdt-leader-fill",clsHide:"bdt-leader-hide",attrFill:"data-fill"},computed:{fill:({fill:t},e)=>t||h(e,"--bdt-leader-fill-content")},connected(){[this.wrapper]=is(this.$el,`<span class="${this.clsWrapper}">`)},disconnected(){Me(this.wrapper.childNodes)},observe:ut(),update:{read(){return{width:Math.trunc(this.$el.offsetWidth/2),fill:this.fill,hide:!this.matchMedia}},write({width:t,fill:e,hide:i}){j(this.wrapper,this.clsHide,i),g(this.wrapper,this.attrFill,new Array(t).join(e))},events:["resize"]}},Zc={install:th,mixins:[Ss],data:{clsPage:"bdt-modal-page",selPanel:".bdt-modal-dialog",selClose:'[class*="bdt-modal-close"]'},events:[{name:"fullscreenchange webkitendfullscreen",capture:!0,handler(t){H(t.target,"video")&&this.isToggled()&&!document.fullscreenElement&&this.hide()}},{name:"show",self:!0,handler(){x(this.panel,"bdt-margin-auto-vertical")?S(this.$el,"bdt-flex"):h(this.$el,"display","block"),et(this.$el)}},{name:"hidden",self:!0,handler(){h(this.$el,"display",""),_(this.$el,"bdt-flex")}}]};function th({modal:t}){t.dialog=function(i,s){const n=t(y(`<div><div class="bdt-modal-dialog">${i}</div></div>`),{stack:!0,role:"alertdialog",...s});return n.show(),$(n.$el,"hidden",async()=>{await Promise.resolve(),n.$destroy(!0)},{self:!0}),n},t.alert=function(i,s){return e(({i18n:n})=>`<div class="bdt-modal-body">${z(i)?i:Pt(i)}</div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-primary bdt-modal-close" autofocus>${n.ok}</button> </div>`,s)},t.confirm=function(i,s){return e(({i18n:n})=>`<form> <div class="bdt-modal-body">${z(i)?i:Pt(i)}</div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-default bdt-modal-close" type="button">${n.cancel}</button> <button class="bdt-button bdt-button-primary" autofocus>${n.ok}</button> </div> </form>`,s,()=>Promise.reject())},t.prompt=function(i,s,n){const o=e(({i18n:l})=>`<form class="bdt-form-stacked"> <div class="bdt-modal-body"> <label>${z(i)?i:Pt(i)}</label> <input class="bdt-input" autofocus> </div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-default bdt-modal-close" type="button">${l.cancel}</button> <button class="bdt-button bdt-button-primary">${l.ok}</button> </div> </form>`,n,()=>null,()=>a.value),{$el:r}=o.dialog,a=y("input",r);return a.value=s||"",$(r,"show",()=>a.select()),o},t.i18n={ok:"Ok",cancel:"Cancel"};function e(i,s,n=A,o=A){s={bgClose:!1,escClose:!0,...s,i18n:{...t.i18n,...s==null?void 0:s.i18n}};const r=t.dialog(i(s),s);return ft(new Promise(a=>{const l=$(r.$el,"hide",()=>a(n()));$(r.$el,"submit","form",c=>{c.preventDefault(),a(o(r)),l(),r.hide()})}),{dialog:r})}}var eh={extends:Do,data:{targets:"> .bdt-parent",toggle:"> a",content:"> ul"}};const Bs="bdt-navbar-transparent";var ih={extends:Fo,props:{dropbarTransparentMode:Boolean},data:{clsDrop:"bdt-navbar-dropdown",selNavItem:".bdt-navbar-nav > li > a,a.bdt-navbar-item,button.bdt-navbar-item,.bdt-navbar-item a,.bdt-navbar-item button,.bdt-navbar-toggle",dropbarTransparentMode:!1},computed:{navbarContainer:(t,e)=>e.closest(".bdt-navbar-container")},watch:{items(){const t=x(this.$el,"bdt-navbar-justify"),e=N(".bdt-navbar-nav, .bdt-navbar-left, .bdt-navbar-right",this.$el);for(const i of e){const s=t?N(".bdt-navbar-nav > li > a, .bdt-navbar-item, .bdt-navbar-toggle",i).length:"";h(i,"flexGrow",s)}}},events:[{name:"show",el:({dropContainer:t})=>t,handler({target:t}){this.getTransparentMode(t)==="remove"&&x(this.navbarContainer,Bs)&&(_(this.navbarContainer,Bs),this._transparent=!0)}},{name:"hide",el:({dropContainer:t})=>t,async handler(){await sh(),!this.getActive()&&this._transparent&&(S(this.navbarContainer,Bs),this._transparent=null)}}],methods:{getTransparentMode(t){if(!this.navbarContainer)return;if(this.dropbar&&this.isDropbarDrop(t))return this.dropbarTransparentMode;const e=this.getDropdown(t);if(e&&x(t,"bdt-dropbar"))return e.inset?"behind":"remove"},getDropbarOffset(t){const{top:e,height:i}=E(this.navbarContainer);return e+(this.dropbarTransparentMode==="behind"?0:i+t)}}};function sh(){return new Promise(t=>setTimeout(t))}var nh={mixins:[Ss],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean,swiping:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"bdt-offcanvas-page",clsContainer:"bdt-offcanvas-container",selPanel:".bdt-offcanvas-bar",clsFlip:"bdt-offcanvas-flip",clsContainerAnimation:"bdt-offcanvas-container-animation",clsSidebarAnimation:"bdt-offcanvas-bar-animation",clsMode:"bdt-offcanvas",clsOverlay:"bdt-offcanvas-overlay",selClose:".bdt-offcanvas-close",container:!1,swiping:!0},computed:{clsFlip:({flip:t,clsFlip:e})=>t?e:"",clsOverlay:({overlay:t,clsOverlay:e})=>t?e:"",clsMode:({mode:t,clsMode:e})=>`${e}-${t}`,clsSidebarAnimation:({mode:t,clsSidebarAnimation:e})=>t==="none"||t==="reveal"?"":e,clsContainerAnimation:({mode:t,clsContainerAnimation:e})=>t!=="push"&&t!=="reveal"?"":e,transitionElement({mode:t}){return t==="reveal"?D(this.panel):this.panel}},observe:In({filter:({swiping:t})=>t}),update:{read(){this.isToggled()&&!R(this.$el)&&this.hide()},events:["resize"]},events:[{name:"touchmove",self:!0,passive:!1,filter:({overlay:t})=>t,handler(t){t.cancelable&&t.preventDefault()}},{name:"show",self:!0,handler(){this.mode==="reveal"&&!x(D(this.panel),this.clsMode)&&(di(this.panel,"<div>"),S(D(this.panel),this.clsMode));const{body:t,scrollingElement:e}=document;S(t,this.clsContainer,this.clsFlip),h(t,"touch-action","pan-y pinch-zoom"),h(this.$el,"display","block"),h(this.panel,"maxWidth",e.clientWidth),S(this.$el,this.clsOverlay),S(this.panel,this.clsSidebarAnimation,this.mode==="reveal"?"":this.clsMode),et(t),S(t,this.clsContainerAnimation),this.clsContainerAnimation&&oh()}},{name:"hide",self:!0,handler(){_(document.body,this.clsContainerAnimation),h(document.body,"touch-action","")}},{name:"hidden",self:!0,handler(){this.clsContainerAnimation&&rh(),this.mode==="reveal"&&Me(this.panel),_(this.panel,this.clsSidebarAnimation,this.clsMode),_(this.$el,this.clsOverlay),h(this.$el,"display",""),h(this.panel,"maxWidth",""),_(document.body,this.clsContainer,this.clsFlip)}},{name:"swipeLeft swipeRight",handler(t){this.isToggled()&&Qt(t.type,"Left")^this.flip&&this.hide()}}]};function oh(){Xo().content+=",user-scalable=0"}function rh(){const t=Xo();t.content=t.content.replace(/,user-scalable=0$/,"")}function Xo(){return y('meta[name="viewport"]',document.head)||q(document.head,'<meta name="viewport">')}var ah={mixins:[it],props:{selContainer:String,selContent:String,minHeight:Number},data:{selContainer:".bdt-modal",selContent:".bdt-modal-dialog",minHeight:150},computed:{container:({selContainer:t},e)=>e.closest(t),content:({selContent:t},e)=>e.closest(t)},observe:ut({target:({container:t,content:e})=>[t,e]}),update:{read(){return!this.content||!this.container||!R(this.$el)?!1:{max:Math.max(this.minHeight,et(this.container)-(m(this.content).height-et(this.$el)))}},write({max:t}){h(this.$el,{minHeight:this.minHeight,maxHeight:t})},events:["resize"]}},lh={props:["width","height"],connected(){S(this.$el,"bdt-responsive-width"),h(this.$el,"aspectRatio",`${this.width}/${this.height}`)}},ch={props:{offset:Number},data:{offset:0},connected(){hh(this)},disconnected(){uh(this)},methods:{async scrollTo(t){t=t&&y(t)||document.body,b(this.$el,"beforescroll",[this,t])&&(await pn(t,{offset:this.offset}),b(this.$el,"scrolled",[this,t]))}}};const Ke=new Set;function hh(t){Ke.size||$(document,"click",Jo),Ke.add(t)}function uh(t){Ke.delete(t),Ke.size||Tt(document,"click",Jo)}function Jo(t){if(!t.defaultPrevented)for(const e of Ke)e.$el.contains(t.target)&&re(e.$el)&&(t.preventDefault(),window.location.href!==e.$el.href&&window.history.pushState({},"",e.$el.href),e.scrollTo(Yi(e.$el)))}const Ns="bdt-scrollspy-inview";var fh={args:"cls",props:{cls:String,target:String,hidden:Boolean,margin:String,repeat:Boolean,delay:Number},data:()=>({cls:"",target:!1,hidden:!0,margin:"-1px",repeat:!1,delay:0}),computed:{elements:({target:t},e)=>t?N(t,e):[e]},watch:{elements(t){this.hidden&&h(Pe(t,`:not(.${Ns})`),"opacity",0)}},connected(){this.elementData=new Map},disconnected(){for(const[t,e]of this.elementData.entries())_(t,Ns,(e==null?void 0:e.cls)||"");delete this.elementData},observe:ue({target:({elements:t})=>t,handler(t){const e=this.elementData;for(const{target:i,isIntersecting:s}of t){e.has(i)||e.set(i,{cls:J(i,"bdt-scrollspy-class")||this.cls});const n=e.get(i);!this.repeat&&n.show||(n.show=s)}this.$emit()},options:({margin:t})=>({rootMargin:t}),args:{intersecting:!1}}),update:[{write(t){for(const[e,i]of this.elementData.entries())i.show&&!i.inview&&!i.queued?(i.queued=!0,t.promise=(t.promise||Promise.resolve()).then(()=>new Promise(s=>setTimeout(s,this.delay))).then(()=>{this.toggle(e,!0),setTimeout(()=>{i.queued=!1,this.$emit()},300)})):!i.show&&i.inview&&!i.queued&&this.repeat&&this.toggle(e,!1)}}],methods:{toggle(t,e){var i,s;const n=(i=this.elementData)==null?void 0:i.get(t);if(!n)return;(s=n.off)==null||s.call(n),h(t,"opacity",!e&&this.hidden?0:""),j(t,Ns,e),j(t,n.cls);let o;if(o=n.cls.match(/\bbdt-animation-[\w-]+/g)){const r=()=>_(t,o);e?n.off=F(t,"animationcancel animationend",r,{self:!0}):r()}b(t,e?"inview":"outview"),n.inview=e}}},dh={props:{cls:String,closest:Boolean,scroll:Boolean,target:String,offset:Number},data:{cls:"bdt-active",closest:!1,scroll:!1,target:'a[href]:not([role="button"])',offset:0},computed:{links:({target:t},e)=>N(t,e).filter(i=>re(i)),elements({closest:t}){return this.links.map(e=>e.closest(t||"*"))}},watch:{links(t){this.scroll&&this.$create("scroll",t,{offset:this.offset})}},observe:[ue(),Le()],update:[{read(){const t=this.links.map(l=>Yi(l)||l.ownerDocument),{length:e}=t;if(!e||!R(this.$el))return!1;const i=Ot(t,!0),{scrollTop:s,scrollHeight:n}=i,o=rt(i),r=n-o.height;let a=!1;if(s>=r)a=e-1;else{const l=this.offset+m(us()).height+o.height*.1;for(let c=0;c<t.length&&!(E(t[c]).top-o.top-l>0);c++)a=+c}return{active:a}},write({active:t}){const e=t!==!1&&!x(this.elements[t],this.cls);this.links.forEach(i=>i.blur());for(let i=0;i<this.elements.length;i++)j(this.elements[i],this.cls,+i===t);e&&b(this.$el,"active",[t,this.elements[t]])},events:["scroll","resize"]}]},ph={mixins:[it,Ci],props:{position:String,top:null,bottom:null,start:null,end:null,offset:String,overflowFlip:Boolean,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,showOnUp:Boolean,targetOffset:Number},data:{position:"top",top:!1,bottom:!1,start:!1,end:!1,offset:0,overflowFlip:!1,animation:"",clsActive:"bdt-active",clsInactive:"",clsFixed:"bdt-sticky-fixed",clsBelow:"bdt-sticky-below",selTarget:"",showOnUp:!1,targetOffset:!1},computed:{target:({selTarget:t},e)=>t&&y(t,e)||e},connected(){this.start=Ko(this.start||this.top),this.end=Ko(this.end||this.bottom),this.placeholder=y("+ .bdt-sticky-placeholder",this.$el)||y('<div class="bdt-sticky-placeholder"></div>'),this.isFixed=!1,this.setActive(!1)},beforeDisconnect(){this.isFixed&&(this.hide(),_(this.target,this.clsInactive)),Qo(this.$el),ot(this.placeholder),this.placeholder=null},observe:[vs(),Le({target:()=>document.scrollingElement}),ut({target:({$el:t})=>[t,Fi(t),document.scrollingElement],handler(t){this.$emit(this._data.resized&&t.some(({target:e})=>e===Fi(this.$el))?"update":"resize"),this._data.resized=!0}})],events:[{name:"load hashchange popstate",el:()=>window,filter:({targetOffset:t})=>t!==!1,handler(){const{scrollingElement:t}=document;!location.hash||t.scrollTop===0||setTimeout(()=>{const e=E(y(location.hash)),i=E(this.$el);this.isFixed&&ei(e,i)&&(t.scrollTop=Math.ceil(e.top-i.height-Y(this.targetOffset,"height",this.placeholder)-Y(this.offset,"height",this.placeholder)))})}}],update:[{read({height:t,width:e,margin:i,sticky:s},n){if(this.inactive=!this.matchMedia||!R(this.$el)||!this.$el.offsetHeight,this.inactive)return;const o=this.isFixed&&n.has("update");o&&(Hs(this.target),this.hide()),this.active||({height:t,width:e}=m(this.$el),i=h(this.$el,"margin")),o&&this.show();const r=Y("100vh","height"),a=et(window),l=Math.max(0,document.scrollingElement.scrollHeight-r);let c=this.position;this.overflowFlip&&t>r&&(c=c==="top"?"bottom":"top");const u=this.isFixed?this.placeholder:this.$el;let f=Y(this.offset,"height",s?this.$el:u);c==="bottom"&&(t<a||this.overflowFlip)&&(f+=a-t);const d=this.overflowFlip?0:Math.max(0,t+f-r),p=E(u).top,w=m(this.$el).height,I=(this.start===!1?p:zs(this.start,this.$el,p))-f,P=this.end===!1?l:Math.min(l,zs(this.end,this.$el,p+t,!0)-w-f+d);return s=l&&!this.showOnUp&&I+f===p&&P===Math.min(l,zs(!0,this.$el,0,!0)-w-f+d)&&h(Fi(this.$el),"overflowY")==="visible",{start:I,end:P,offset:f,overflow:d,height:t,elHeight:w,width:e,margin:i,top:Be(u)[0],sticky:s,viewport:r,maxScrollHeight:l}},write({height:t,width:e,margin:i,offset:s,sticky:n}){if((this.inactive||n||!this.isFixed)&&Qo(this.$el),this.inactive)return;n&&(t=e=i=0,h(this.$el,{position:"sticky",top:s}));const{placeholder:o}=this;h(o,{height:t,width:e,margin:i}),(D(o)!==D(this.$el)||n^$t(o)<$t(this.$el))&&((n?hi:ui)(this.$el,o),o.hidden=!0)},events:["resize"]},{read({scroll:t=0,dir:e="down",overflow:i,overflowScroll:s=0,start:n,end:o,elHeight:r,height:a,sticky:l,maxScrollHeight:c}){const u=Math.min(document.scrollingElement.scrollTop,c),f=t<=u?"down":"up",d=this.isFixed?this.placeholder:this.$el;return{dir:f,prevDir:e,scroll:u,prevScroll:t,below:u>E(d).top+(l?Math.min(a,r):a),offsetParentTop:E(d.offsetParent).top,overflowScroll:Q(s+Q(u,n,o)-Q(t,n,o),0,i)}},write(t,e){const i=e.has("scroll"),{initTimestamp:s=0,dir:n,prevDir:o,scroll:r,prevScroll:a=0,top:l,start:c,below:u}=t;if(r<0||r===a&&i||this.showOnUp&&!i&&!this.isFixed)return;const f=Date.now();if((f-s>300||n!==o)&&(t.initScroll=r,t.initTimestamp=f),!(this.showOnUp&&!this.isFixed&&Math.abs(t.initScroll-r)<=30&&Math.abs(a-r)<=10))if(this.inactive||r<c||this.showOnUp&&(r<=c||n==="down"&&i||n==="up"&&!this.isFixed&&!u)){if(!this.isFixed){Ct.inProgress(this.$el)&&l>r&&(Ct.cancel(this.$el),this.hide());return}if(this.animation&&u){if(x(this.$el,"bdt-animation-leave"))return;Ct.out(this.$el,this.animation).then(()=>this.hide(),A)}else this.hide()}else this.isFixed?this.update():this.animation&&u?(this.show(),Ct.in(this.$el,this.animation).catch(A)):(Hs(this.target),this.show())},events:["resize","resizeViewport","scroll"]}],methods:{show(){this.isFixed=!0,this.update(),this.placeholder.hidden=!1},hide(){const{offset:t,sticky:e}=this._data;this.setActive(!1),_(this.$el,this.clsFixed,this.clsBelow),e?h(this.$el,"top",t):h(this.$el,{position:"",top:"",width:"",marginTop:""}),this.placeholder.hidden=!0,this.isFixed=!1},update(){let{width:t,scroll:e=0,overflow:i,overflowScroll:s=0,start:n,end:o,offset:r,offsetParentTop:a,sticky:l,below:c}=this._data;const u=n!==0||e>n;if(!l){let f="fixed";e>o&&(r+=o-a+s-i,f="absolute"),h(this.$el,{position:f,width:t,marginTop:0},"important")}h(this.$el,"top",r-s),this.setActive(u),j(this.$el,this.clsBelow,c),S(this.$el,this.clsFixed)},setActive(t){const e=this.active;this.active=t,t?(si(this.target,this.clsInactive,this.clsActive),e!==t&&b(this.$el,"active")):(si(this.target,this.clsActive,this.clsInactive),e!==t&&(Hs(this.target),b(this.$el,"inactive")))}}};function zs(t,e,i,s){if(!t)return 0;if(mt(t)||z(t)&&t.match(/^-?\d/))return i+Y(t,"height",e,!0);{const n=t===!0?Fi(e):Z(t,e);return E(n).bottom-(s&&(n!=null&&n.contains(e))?k(h(n,"paddingBottom")):0)}}function Ko(t){return t==="true"?!0:t==="false"?!1:t}function Qo(t){h(t,{position:"",top:"",marginTop:"",width:""})}const Fs="bdt-transition-disable";function Hs(t){x(t,Fs)||(S(t,Fs),requestAnimationFrame(()=>_(t,Fs)))}function Fi(t){for(;t=D(t);)if(R(t))return t}const Ls=".bdt-disabled *, .bdt-disabled, [disabled]";var Zo={mixins:[qt],args:"connect",props:{connect:String,toggle:String,itemNav:String,active:Number,followFocus:Boolean,swiping:Boolean},data:{connect:"~.bdt-switcher",toggle:"> * > :first-child",itemNav:!1,active:0,cls:"bdt-active",attrItem:"bdt-switcher-item",selVertical:".bdt-nav",followFocus:!1,swiping:!0},computed:{connects:{get:({connect:t},e)=>Ae(t,e),observe:({connect:t})=>t},connectChildren(){return this.connects.map(t=>M(t)).flat()},toggles:({toggle:t},e)=>N(t,e),children(t,e){return M(e).filter(i=>this.toggles.some(s=>i.contains(s)))}},watch:{connects(t){this.swiping&&h(t,"touchAction","pan-y pinch-zoom"),this.$emit()},connectChildren(){let t=Math.max(0,this.index());for(const e of this.connects)M(e).forEach((i,s)=>j(i,this.cls,s===t));this.$emit()},toggles(t){this.$emit();const e=this.index();this.show(~e?e:t[this.active]||t[0])}},connected(){g(this.$el,"role","tablist")},observe:[Si({targets:({connectChildren:t})=>t}),In({target:({connects:t})=>t,filter:({swiping:t})=>t})],events:[{name:"click keydown",delegate:({toggle:t})=>t,handler(t){!C(t.current,Ls)&&(t.type==="click"||t.keyCode===O.SPACE)&&(t.preventDefault(),this.show(t.current))}},{name:"keydown",delegate:({toggle:t})=>t,handler(t){const{current:e,keyCode:i}=t,s=C(this.$el,this.selVertical);let n=i===O.HOME?0:i===O.END?"last":i===O.LEFT&&!s||i===O.UP&&s?"previous":i===O.RIGHT&&!s||i===O.DOWN&&s?"next":-1;if(~n){t.preventDefault();const o=this.toggles.filter(a=>!C(a,Ls)),r=o[nt(n,o,o.indexOf(e))];r.focus(),this.followFocus&&this.show(r)}}},{name:"click",el:({$el:t,connects:e,itemNav:i})=>e.concat(i?Ae(i,t):[]),delegate:({attrItem:t})=>`[${t}],[data-${t}]`,handler(t){t.target.closest("a,button")&&(t.preventDefault(),this.show(J(t.current,this.attrItem)))}},{name:"swipeRight swipeLeft",filter:({swiping:t})=>t,el:({connects:t})=>t,handler({type:t}){this.show(Qt(t,"Left")?"next":"previous")}}],update(){var t;for(const e of this.connects)H(e,"ul")&&g(e,"role","presentation");g(M(this.$el),"role","presentation");for(const e in this.toggles){const i=this.toggles[e],s=(t=this.connects[0])==null?void 0:t.children[e];g(i,"role","tab"),s&&(i.id=Yt(this,i),s.id=Yt(this,s),g(i,"aria-controls",s.id),g(s,{role:"tabpanel","aria-labelledby":i.id}))}g(this.$el,"aria-orientation",C(this.$el,this.selVertical)?"vertical":null)},methods:{index(){return wt(this.children,t=>x(t,this.cls))},show(t){const e=this.toggles.filter(r=>!C(r,Ls)),i=this.index(),s=nt(!Ze(t)||v(e,t)?t:0,e,nt(this.toggles[i],e)),n=nt(e[s],this.toggles);this.children.forEach((r,a)=>{j(r,this.cls,n===a),g(this.toggles[a],{"aria-selected":n===a,tabindex:n===a?null:-1})});const o=i>=0&&i!==s;this.connects.forEach(async({children:r})=>{const a=Zt(r).filter((l,c)=>c!==n&&x(l,this.cls));await this.toggleElement(a,!1,o)&&await this.toggleElement(r[n],!0,o)})}}},gh={mixins:[it],extends:Zo,props:{media:Boolean},data:{media:960,attrItem:"bdt-tab-item",selVertical:".bdt-tab-left,.bdt-tab-right"},connected(){const t=x(this.$el,"bdt-tab-left")?"bdt-tab-left":x(this.$el,"bdt-tab-right")?"bdt-tab-right":!1;t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}};const mh=32;var vh={mixins:[Ci,qt],args:"target",props:{href:String,target:null,mode:"list",queued:Boolean},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target:{get:({target:t},e)=>(t=Ae(t||e.hash,e),t.length?t:[e]),observe:({target:t})=>t}},connected(){v(this.mode,"media")||(ai(this.$el)||g(this.$el,"tabindex","0"),!this.cls&&H(this.$el,"a")&&g(this.$el,"role","button"))},observe:Si({targets:({target:t})=>t}),events:[{name:ht,filter:({mode:t})=>v(t,"hover"),handler(t){this._preventClick=null,!(!dt(t)||ee(this._showState)||this.$el.disabled)&&(b(this.$el,"focus"),F(document,ht,()=>b(this.$el,"blur"),!0,e=>!this.$el.contains(e.target)),v(this.mode,"click")&&(this._preventClick=!0))}},{name:`mouseenter mouseleave ${Ht} ${oe} focus blur`,filter:({mode:t})=>v(t,"hover"),handler(t){if(dt(t)||this.$el.disabled)return;const e=v(["mouseenter",Ht,"focus"],t.type),i=this.isToggled(this.target);if(!e&&(!ee(this._showState)||t.type!=="blur"&&C(this.$el,":focus")||t.type==="blur"&&C(this.$el,":hover"))){i===this._showState&&(this._showState=null);return}e&&ee(this._showState)&&i!==this._showState||(this._showState=e?i:null,this.toggle(`toggle${e?"show":"hide"}`))}},{name:"keydown",filter:({$el:t,mode:e})=>v(e,"click")&&!H(t,"input"),handler(t){t.keyCode===mh&&(t.preventDefault(),this.$el.click())}},{name:"click",filter:({mode:t})=>["click","hover"].some(e=>v(t,e)),handler(t){let e;(this._preventClick||t.target.closest('a[href="#"], a[href=""]')||(e=t.target.closest("a[href]"))&&(!this.isToggled(this.target)||e.hash&&C(this.target,e.hash)))&&t.preventDefault(),!this._preventClick&&v(this.mode,"click")&&this.toggle()}},{name:"mediachange",filter:({mode:t})=>v(t,"media"),el:({target:t})=>t,handler(t,e){e.matches^this.isToggled(this.target)&&this.toggle()}}],methods:{async toggle(t){if(!b(this.target,t||"toggle",[this]))return;if(It(this.$el,"aria-expanded")&&g(this.$el,"aria-expanded",!this.isToggled(this.target)),!this.queued)return this.toggleElement(this.target);const e=this.target.filter(s=>x(s,this.clsLeave));if(e.length){for(const s of this.target){const n=v(e,s);this.toggleElement(s,n,n)}return}const i=this.target.filter(this.isToggled);await this.toggleElement(i,!1)&&await this.toggleElement(this.target.filter(s=>!v(i,s)),!0)}}},bh=Object.freeze({__proto__:null,Accordion:Do,Alert:Hl,Close:Bc,Cover:jl,Drop:No,DropParentIcon:Xt,Dropdown:No,Dropnav:Fo,FormCustom:Xl,Grid:Jl,HeightMatch:tc,HeightPlaceholder:sc,HeightViewport:nc,Icon:Os,Img:qc,Inverse:Xc,Leader:Qc,Margin:En,Marker:Nc,Modal:Zc,Nav:eh,NavParentIcon:Ac,Navbar:ih,NavbarParentIcon:Xt,NavbarToggleIcon:Mc,Offcanvas:nh,OverflowAuto:ah,OverlayIcon:Xt,PaginationNext:Fc,PaginationPrevious:Hc,Responsive:lh,Scroll:ch,Scrollspy:fh,ScrollspyNav:dh,SearchIcon:Oc,SlidenavNext:Yo,SlidenavPrevious:Yo,Spinner:Dc,Sticky:ph,Svg:Ec,Switcher:Zo,Tab:gh,Toggle:vh,Totop:zc,Video:Mo});return ie(bh,(t,e)=>lt.component(e,t)),Dl(lt),ie(Ol,(t,e)=>lt.component(e,t)),lt});
var debounce=function(func,wait,immediate){var timeout;return function(){var context=this,args=arguments;var callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(function(){timeout=null;if(!immediate){func.apply(context,args)}},wait);if(callNow)func.apply(context,args)}};function epObserveTarget(target,callback){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};options.rootMargin=options.rootMargin||"10% 0px 0px 0px";var observer=new IntersectionObserver(function(entries,observer){entries.forEach(function(entry){if(entry.isIntersecting){callback(entry);if(!options.loop)observer.unobserve(entry.target)}})},options);observer.observe(target)}
function EP_SAFE_HTML(input){const allowedTags={'img':['src','alt','title','width','height','style'],'a':['href','title','target','rel'],'p':['class','style','id'],'b':['class','style'],'i':['class','style'],'u':['class','style'],'strong':['class','style'],'em':['class','style'],'br':[],'hr':['class','style'],'ul':['class','style'],'ol':['class','style'],'li':['class','style'],'div':['class','style','id'],'span':['class','style','id'],'blockquote':['cite','class','style'],'code':['class','style'],'pre':['class','style'],'h1':['class','style','id'],'h2':['class','style','id'],'h3':['class','style','id'],'h4':['class','style','id'],'h5':['class','style','id'],'h6':['class','style','id'],'table':['class','style','id'],'thead':['class','style'],'tbody':['class','style'],'tfoot':['class','style'],'tr':['class','style'],'th':['class','style','scope'],'td':['class','style','colspan','rowspan'],};const tagPattern=/<\/?([a-zA-Z0-9]+)([^>]*)>/g;input=input.replace(tagPattern,(match,tagName,attributes)=>{tagName=tagName.toLowerCase();if(!allowedTags.hasOwnProperty(tagName)){return''}
const allowedAttributes=allowedTags[tagName];const filteredAttributes=attributes.replace(/([a-zA-Z0-9-]+)\s*=\s*("[^"]*"|'[^']*'|[^\s>]*)/g,(match,attrName,attrValue)=>{attrName=attrName.toLowerCase();if(!allowedAttributes.includes(attrName)||attrName.startsWith("on")||/^javascript:/i.test(attrValue)){return''}
return `${attrName}=${attrValue}`});return `<${tagName}${filteredAttributes}>`});return input}
function returnCurrencySymbol(currency=null){if(currency===null)return"";let currency_symbols={USD:"$",EUR:"€",CRC:"₡",GBP:"£",ILS:"₪",INR:"₹",JPY:"¥",KRW:"₩",NGN:"₦",PHP:"₱",PLN:"zł",PYG:"₲",THB:"฿",UAH:"₴",VND:"₫",};if(currency_symbols[currency]!==undefined){return currency_symbols[currency]}else{return""}}(function($){jQuery(document).ajaxComplete(function(event,request,settings){if(request.responseJSON&&typeof request.responseJSON.cart_hash!=="undefined"&&request.responseJSON.cart_hash){if(jQuery(".bdt-offcanvas").hasClass("__update_cart")){let id=jQuery(".bdt-offcanvas.__update_cart").attr("id");bdtUIkit.util.ready(function(){bdtUIkit.offcanvas("#"+id).show()})}}});jQuery(document).ready(function(){jQuery(".bdt-ss-link").on("click",function(){var $temp=jQuery("<input>");jQuery("body").append($temp);$temp.val(jQuery(this).data("url")).select();document.execCommand ("copy");$temp.remove();jQuery(this).find(".bdt-social-share-title").html(jQuery(this).data("copied"));setTimeout(()=>{jQuery(this).find(".bdt-social-share-title").html(jQuery(this).data("orginal"))},5000)});const element={"elementor-widget-bdt-post-grid-tab":{selectors:[".bdt-post-grid-desc-inner a",".bdt-post-grid-tab-readmore",],},"elementor-widget-bdt-post-grid":{selectors:[".bdt-post-grid-title a",".bdt-post-grid-readmore"],},"elementor-widget-bdt-post-card":{selectors:[".bdt-post-card-title a",".bdt-post-card-button"],},"elementor-widget-bdt-post-block":{selectors:[".bdt-post-block-title a",".bdt-post-block-read-more"],},"elementor-widget-bdt-post-block-modern":{selectors:[".bdt-post-block-modern-title a",".bdt-post-block-modern-read-more",],},"elementor-widget-bdt-post-gallery":{selectors:[".bdt-post-gallery-title-link",".bdt-gallery-item-link"],},"elementor-widget-bdt-post-list":{selectors:[".bdt-title a",".bdt-image a"],},"elementor-widget-bdt-post-slider":{selectors:[".bdt-post-slider-title-wrap a",".bdt-post-slider-button"],},};Object.keys(element).forEach(function(key){if(jQuery("."+key).length>0){if(jQuery("."+key).data("settings")!==undefined&&jQuery("."+key).data("settings").bdt_link_new_tab==="yes"){element[key].selectors.forEach(function(selector){jQuery(selector).attr("target","_blank")})}}});jQuery(".bdt-pass-input-wrapper").find("i").on("click",function(){if(jQuery(this).hasClass("fa-eye")){jQuery(this).toggleClass("fa-eye-slash")}
let input=jQuery(this).closest(".bdt-pass-input-wrapper").find("input");if(input.attr("type")=="password"){jQuery(input).attr("type","text")}else{jQuery(input).attr("type","password")}})})})(jQuery);(function($,elementor){"use strict";var widgetAccordion=function($scope,$){var $accrContainer=$scope.find(".bdt-ep-accordion-container"),$accordion=$accrContainer.find(".bdt-ep-accordion"),$activeItem=$accrContainer.find(".bdt-ep-accordion-item.bdt-open");if(!$accrContainer.length){return}
var $settings=$accordion.data("settings"),activeHash=$settings.activeHash,hashTopOffset=$settings.hashTopOffset,hashScrollspyTime=$settings.hashScrollspyTime,activeScrollspy=$settings.activeScrollspy,closeAllItemsOnMobile=$settings.closeAllItemsOnMobile;if(closeAllItemsOnMobile){if(isMobileDevice()){$activeItem.removeClass("bdt-open");$activeItem.find(".bdt-ep-accordion-content").prop("hidden",!0)}}
function isMobileDevice(){return window.matchMedia("(max-width: 767px)").matches}
if(activeScrollspy===null||typeof activeScrollspy==="undefined"){activeScrollspy="no"}
function hashHandler($accordion,hashScrollspyTime,hashTopOffset){if(window.location.hash){if($($accordion).find('[data-title="'+window.location.hash.substring(1)+'"]').length){var hashTarget=$('[data-title="'+window.location.hash.substring(1)+'"]').closest($accordion).attr("id");if(activeScrollspy=="yes"){$("html, body").animate({easing:"slow",scrollTop:$("#"+hashTarget).offset().top-hashTopOffset,},hashScrollspyTime,function(){}).promise().then(function(){bdtUIkit.accordion($accordion).toggle($('[data-title="'+window.location.hash.substring(1)+'"]').data("accordion-index"),!1)})}else{bdtUIkit.accordion($accordion).toggle($('[data-title="'+window.location.hash.substring(1)+'"]').data("accordion-index"),!0)}}}}
if(activeHash=="yes"){$(window).on("load",function(){if(activeScrollspy=="yes"){hashHandler($accordion,hashScrollspyTime,hashTopOffset)}else{bdtUIkit.accordion($accordion).toggle($('[data-title="'+window.location.hash.substring(1)+'"]').data("accordion-index"),!1)}});$($accordion).find(".bdt-ep-accordion-title").off("click").on("click",function(event){window.location.hash=$.trim($(this).attr("data-title"));hashHandler($accordion,(hashScrollspyTime=1000),hashTopOffset)});$(window).on("hashchange",function(e){hashHandler($accordion,(hashScrollspyTime=1000),hashTopOffset)})}};jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-accordion.default",widgetAccordion);elementorFrontend.hooks.addAction("frontend/element_ready/bdt-acf-accordion.default",widgetAccordion)})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';var widgetAvdGoogleMap=function($scope,$){var $advancedGoogleMap=$scope.find('.bdt-advanced-gmap'),$GmapWrapper=$scope.find('.bdt-advanced-map'),map_settings=$advancedGoogleMap.data('map_settings'),markers=$advancedGoogleMap.data('map_markers'),map_lists=$scope.find('ul.bdt-gmap-lists div.bdt-gmap-list-item'),map_search_form=$scope.find('.bdt-search'),map_search_text_box=$scope.find('.bdt-search-input'),map_form=$scope.find('.bdt-gmap-search-wrapper > form'),listMarker,markupPhone,markupWebsite,markupPlace,markerImage,markupTitle,markupContent;if(!$advancedGoogleMap.length){return}
window.addEventListener('load',function(){$GmapWrapper.removeAttr("style");var avdGoogleMap=new GMaps(map_settings);function createMarkerContent(marker,markerImage){listMarker=markerImage!==''?`<div class="bdt-map-tooltip-top-image"><img class="bdt-map-image" src="${markerImage}" alt="" /></div>`:"";markupWebsite=marker.website!==undefined?`<a href="${marker.website}">${marker.website}</a>`:'';markupPhone=marker.phone!==undefined?`<a href="tel:${marker.phone}">${marker.phone}</a>`:'';markupContent=marker.content!==undefined?`<span class="bdt-tooltip-content">${marker.content}</span><br>`:'';markupPlace=marker.place!==undefined?`<h5 class="bdt-tooltip-place">${marker.place}</h5>`:'';markupTitle=marker.title!==undefined?`<h4 class="bdt-tooltip-title">${marker.title}</h4>`:'';return `<div class="bdt-map-tooltip-view">
<div class="bdt-map-tooltip-view-inner">
${listMarker}
<div class="bdt-map-tooltip-bottom-footer">
${markupTitle}
${markupPlace}
${markupContent}
${markupWebsite}
${markupPhone}
</div>
</div>
</div>`}
for(var i in markers){markerImage=markers[i].image!==undefined?markers[i].image:"";avdGoogleMap.addMarker({lat:markers[i].lat,lng:markers[i].lng,title:markers[i].title,icon:markers[i].icon,infoWindow:{content:createMarkerContent(markers[i],markerImage)},})}
if($advancedGoogleMap.data('map_geocode')){$(map_form).submit(function(e){e.preventDefault();GMaps.geocode({address:$(this).find('.bdt-search-input').val().trim(),callback:function(results,status){if(status==='OK'){var latlng=results[0].geometry.location;avdGoogleMap.setCenter(latlng.lat(),latlng.lng());avdGoogleMap.addMarker({lat:latlng.lat(),lng:latlng.lng()})}}})})}
if($advancedGoogleMap.data('map_style')){avdGoogleMap.addStyle({styledMapName:'Custom Map',styles:$advancedGoogleMap.data('map_style'),mapTypeId:'map_style'});avdGoogleMap.setStyle('map_style')}
$(map_lists).bind("click",function(e){var mapList;var dataSettings=$(this).data("settings");mapList=new GMaps({el:dataSettings.el,lat:dataSettings.lat,lng:dataSettings.lng,title:dataSettings.title,zoom:map_settings.zoom,});markerImage=dataSettings.image!==undefined?dataSettings.image[0]:"";mapList.addMarker({lat:dataSettings.lat,lng:dataSettings.lng,title:dataSettings.title,icon:dataSettings.icon,infoWindow:{content:createMarkerContent(dataSettings,markerImage),},});if($advancedGoogleMap.data('map_style')){mapList.addStyle({styledMapName:'Custom Map',styles:$advancedGoogleMap.data('map_style'),mapTypeId:'map_style'});mapList.setStyle('map_style')}});$(map_search_form).submit(function(e){e.preventDefault();let searchValue=$(map_search_text_box).val().toLowerCase();$(map_lists).filter(function(){$(this).toggle($(this).text().toLowerCase().indexOf(searchValue)>-1)})});$(map_search_text_box).keyup(function(){let searchValue=$(this).val().toLowerCase();$(map_lists).filter(function(){$(this).toggle($(this).text().toLowerCase().indexOf(searchValue)>-1)})})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-advanced-gmap.default',widgetAvdGoogleMap)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetAdavancedHeading=function($scope,$){var $advHeading=$scope.find('.bdt-ep-advanced-heading'),$advMainHeadeingInner=$advHeading.find('.bdt-ep-advanced-heading-main-title-inner');if(!$advHeading.length){return}
var $settings=$advHeading.data('settings');if(typeof $settings.titleMultiColor!=="undefined"){if($settings.titleMultiColor!='yes'){return}
var word=$($advMainHeadeingInner).text();var words=word.split(" ");$($advMainHeadeingInner).html('');var i;for(i=0;i<words.length;++i){$($advMainHeadeingInner).append('<span>'+words[i]+'&nbsp;</span>')}
$($advMainHeadeingInner).find('span').each(function(){var randomColor=Math.floor(Math.random()*16777215).toString(16);$(this).css({'color':'#'+randomColor})})}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-advanced-heading.default',widgetAdavancedHeading)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetAdvancedIconBox=function($scope,$){var $avdDivider=$scope.find('.bdt-ep-advanced-icon-box'),divider=$($avdDivider).find('.bdt-ep-advanced-icon-box-separator-wrap > img');if(!$avdDivider.length&&!divider.length){return}
epObserveTarget($scope[0],function(){bdtUIkit.svg(divider,{strokeAnimation:!0})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-advanced-icon-box.default',widgetAdvancedIconBox)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetAdvancedImageGallery=function($scope,$){var $advancedImageGallery=$scope.find('.bdt-ep-advanced-image-gallery'),$settings=$advancedImageGallery.data('settings');if(!$advancedImageGallery.length){return}
if($settings.tiltShow==!0){var elements=document.querySelectorAll($settings.id+" [data-tilt]");VanillaTilt.init(elements)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-advanced-image-gallery.default',widgetAdvancedImageGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-advanced-image-gallery.bdt-carousel',widgetAdvancedImageGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-acf-gallery.default',widgetAdvancedImageGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-acf-gallery.bdt-carousel',widgetAdvancedImageGallery)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetAnimatedHeading=function($scope,$){var $heading=$scope.find('.bdt-heading > *'),$_heading=$scope.find('.bdt-heading'),$animatedHeading=$heading.find('.bdt-animated-heading'),$settings=$animatedHeading.data('settings');if(!$heading.length){return}
function kill(){var splitTextTimeline=gsap.timeline(),mySplitText=new SplitText($quote,{type:"chars, words, lines"});splitTextTimeline.clear().time(0);mySplitText.revert()}
if($settings.layout==='animated'){$_heading.css('display','block');epObserveTarget($heading[0],function(){$($animatedHeading).Morphext($settings)},{root:null,rootMargin:'0px',threshold:0.8})}else if($settings.layout==='typed'){epObserveTarget($heading[0],function(){var animateSelector=$($animatedHeading).attr('id');var typed=new Typed('#'+animateSelector,$settings)},{root:null,rootMargin:'0px',threshold:0.8})}else if($settings.layout==='split_text'){var $quote=$($heading);var splitTextTimeline=gsap.timeline(),mySplitText=new SplitText($quote,{type:"chars, words, lines"});gsap.set($quote,{perspective:$settings.anim_perspective});epObserveTarget($heading[0],function(){kill();mySplitText.split({type:'chars, words, lines'});var stringType='';if('lines'==$settings.animation_on){stringType=mySplitText.lines}else if('chars'==$settings.animation_on){stringType=mySplitText.chars}else{stringType=mySplitText.words}
splitTextTimeline.staggerFrom(stringType,0.5,{opacity:0,scale:$settings.anim_scale,y:$settings.anim_rotation_y,rotationX:$settings.anim_rotation_x,transformOrigin:$settings.anim_transform_origin,},$settings.anim_duration)},{root:null,rootMargin:'0px',})}
$($heading).animate({easing:'slow',opacity:1,},500)};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-animated-heading.default',widgetAnimatedHeading)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetChart=function($scope,$){var $chart=$scope.find('.bdt-chart'),$chart_canvas=$chart.find('> canvas'),settings=$chart.data('settings'),suffixprefix=$chart.data('suffixprefix');if(!$chart.length){return}
epObserveTarget($scope[0],function(){var $this=$($chart),ctx=$chart.find('> canvas')[0].getContext('2d'),myChart=null;if(myChart!=null){myChart.destroy()}
myChart=new Chart(ctx,settings);var thouSeparator=settings.valueSeparator,separatorSymbol=settings.separatorSymbol,xAxesSeparator=settings.xAxesSeparator,yAxesSeparator=settings.yAxesSeparator;var _k_formatter=(settings.kFormatter=='yes')?!0:!1;if(settings.type=='pie'||settings.type=='doughnut'){return}
var s_p_status=(typeof suffixprefix.suffix_prefix_status!=='undefined')?suffixprefix.suffix_prefix_status:'no',x_prefix=(typeof suffixprefix.x_custom_prefix!=='undefined')?suffixprefix.x_custom_prefix:'',x_suffix=(typeof suffixprefix.x_custom_suffix!=='undefined')?suffixprefix.x_custom_suffix:'',y_suffix=(typeof suffixprefix.y_custom_suffix!=='undefined')?suffixprefix.y_custom_suffix:'',y_prefix=(typeof suffixprefix.y_custom_prefix!=='undefined')?suffixprefix.y_custom_prefix:'';function addCommas(nStr,separatorSymbol,_k_formatter){nStr+='';var x=nStr.split('.');var x1=x[0];var x2=x.length>1?'.'+x[1]:'';var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+separatorSymbol+'$2')}
if(_k_formatter==!0){if(nStr>=1000000000){return(nStr/1000000000).toFixed(1).replace(/\.0$/,'')+'G'}
if(nStr>=1000000){return(nStr/1000000).toFixed(1).replace(/\.0$/,'')+'M'}
if(nStr>=1000){return(nStr/1000).toFixed(1).replace(/\.0$/,'')+'K'}
return nStr}else{return x1+x2}}
function updateChartSetting(chart,thouSeparator='no',separatorSymbol=','){if(suffixprefix.type=='horizontalBar'){chart.options.scales.x.ticks={callback:function(value,index){if(s_p_status=='yes'&&thouSeparator=='yes'&&yAxesSeparator=='yes'){return y_prefix+addCommas(value,separatorSymbol,_k_formatter)+y_suffix}else if(s_p_status=='no'&&thouSeparator=='yes'&&yAxesSeparator=='yes'){return addCommas(value,separatorSymbol,_k_formatter)}else{return y_prefix+value+y_suffix}}}}else if(suffixprefix.type=='bar'||suffixprefix.type=='line'||suffixprefix.type=='bubble'){chart.options.scales.y.ticks={callback:function(value,index){if(s_p_status=='yes'&&thouSeparator=='yes'&&yAxesSeparator=='yes'){return y_prefix+addCommas(value,separatorSymbol,_k_formatter)+y_suffix}else if(s_p_status=='no'&&thouSeparator=='yes'&&yAxesSeparator=='yes'){return addCommas(value,separatorSymbol,_k_formatter)}else{return y_prefix+value+y_suffix}}}}
chart.update()}
if(s_p_status=='yes'&&thouSeparator=='no'){updateChartSetting(myChart)}else if(s_p_status=='yes'&&thouSeparator=='yes'){updateChartSetting(myChart,thouSeparator,separatorSymbol)}else if(s_p_status=='no'&&thouSeparator=='yes'){updateChartSetting(myChart,thouSeparator,separatorSymbol)}else{}},{root:null,rootMargin:'0px',threshold:0.8})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-chart.default',widgetChart)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCarousel=function($scope,$){var $carousel=$scope.find('.bdt-ep-carousel');if(!$carousel.length){return}
var $carouselContainer=$carousel.find('.swiper-carousel'),$settings=$carousel.data('settings');const Swiper=elementorFrontend.utils.swiper;initSwiper();async function initSwiper(){var swiper=await new Swiper($carouselContainer,$settings);if($settings.pauseOnHover){$($carouselContainer).hover(function(){(this).swiper.autoplay.stop()},function(){(this).swiper.autoplay.start()})}}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-carousel.default',widgetCarousel);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-carousel.bdt-alice',widgetCarousel);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-carousel.bdt-vertical',widgetCarousel);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-carousel.bdt-ramble',widgetCarousel)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCircleMenu=function($scope,$){var $circleMenu=$scope.find('.bdt-circle-menu'),$settings=$circleMenu.data('settings');if(!$circleMenu.length){return}
$($circleMenu[0]).circleMenu({direction:$settings.direction,item_diameter:$settings.item_diameter,circle_radius:$settings.circle_radius,speed:$settings.speed,delay:$settings.delay,step_out:$settings.step_out,step_in:$settings.step_in,trigger:$settings.trigger,transition_function:$settings.transition_function});var $tooltip=$circleMenu.find('.bdt-tippy-tooltip'),widgetID=$scope.data('id');$tooltip.each(function(index){tippy(this,{allowHTML:!0,theme:'bdt-tippy-'+widgetID})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-circle-menu.default',widgetCircleMenu)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetContentSwitcher=function($scope,$){var $contentSwitcher=$scope.find('.bdt-content-switcher'),$settings=$contentSwitcher.data('settings');if(!$contentSwitcher.length){return}
if('button'!==$settings.switcherStyle){var $checkbox=$contentSwitcher.find('input[type="checkbox"]');var primarySwitcher=$contentSwitcher.find('.bdt-primary-switcher');var secondarySwitcher=$contentSwitcher.find('.bdt-secondary-switcher');var primaryIcon=$contentSwitcher.find('.bdt-primary-icon');var secondaryIcon=$contentSwitcher.find('.bdt-secondary-icon');var primaryText=$contentSwitcher.find('.bdt-primary-text');var secondaryText=$contentSwitcher.find('.bdt-secondary-text');var primaryContent=$contentSwitcher.find('.bdt-switcher-content.bdt-primary');var secondaryContent=$contentSwitcher.find('.bdt-switcher-content.bdt-secondary');$checkbox.on('change',function(){if(this.checked){primarySwitcher.removeClass('bdt-active');secondarySwitcher.addClass('bdt-active');primaryIcon.removeClass('bdt-active');secondaryIcon.addClass('bdt-active');primaryText.removeClass('bdt-active');secondaryText.addClass('bdt-active');primaryContent.removeClass('bdt-active');secondaryContent.addClass('bdt-active')}else{primarySwitcher.addClass('bdt-active');secondarySwitcher.removeClass('bdt-active');primaryIcon.addClass('bdt-active');secondaryIcon.removeClass('bdt-active');primaryText.addClass('bdt-active');secondaryText.removeClass('bdt-active');primaryContent.addClass('bdt-active');secondaryContent.removeClass('bdt-active')}})}
if('button'==$settings.switcherStyle){var $tab=$contentSwitcher.find('.bdt-content-switcher-tab');$tab.on('click',function(){var $this=$(this);var id=$this.attr('id');var $content=$contentSwitcher.find('.bdt-switcher-content[data-content-id="'+id+'"]');$this.siblings().removeClass('bdt-active');$this.addClass('bdt-active');$this.parent().next().children().removeClass('bdt-active');$content.addClass('bdt-active')})}}
jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-content-switcher.default',widgetContentSwitcher)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCookieConsent=function($scope,$){var $cookieConsent=$scope.find('.bdt-cookie-consent'),$settings=$cookieConsent.data('settings'),editMode=Boolean(elementorFrontend.isEditMode()),gtagSettings=$cookieConsent.data('gtag');if(!$cookieConsent.length||editMode){return}
window.cookieconsent.initialise($settings);$('.cc-compliance').append(`<button class="btn-denyCookie bdt-cc-close-btn cc-btn cc-dismiss">
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18 17.94 6M18 18 6.06 6"/>
</svg>
</button>`);$('.cc-btn.btn-denyCookie').on('click',function(){$('.bdt-cookie-consent').hide();document.cookie='element_pack_cookie_widget_gtag=denied; max-age='+60*60*24*7+'; path=/';return});if(document.cookie.indexOf('element_pack_cookie_widget_gtag=denied')!==-1){$('.bdt-cookie-consent').hide();return}
if(gtagSettings===undefined){return}
if(gtagSettings.gtag_enabled!==!0){return}
function consentGrantedAdStorage(args){gtag('consent','update',args)}
let gtagAttrObj={'ad_user_data':gtagSettings.ad_user_data,'ad_personalization':gtagSettings.ad_personalization,'ad_storage':gtagSettings.ad_storage,'analytics_storage':gtagSettings.analytics_storage,};$('.cc-btn.cc-dismiss').on('click',function(){consentGrantedAdStorage(gtagAttrObj)});$('.cc-btn.btn-denyCookie').on('click',function(){consentGrantedAdStorage({'ad_storage':'denied','analytics_storage':'denied'})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-cookie-consent.default',widgetCookieConsent)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCountdown=function($scope,$){var $countdown=$scope.find('.bdt-countdown-wrapper');if(!$countdown.length){return}
var $settings=$countdown.data('settings'),endTime=$settings.endTime,loopHours=$settings.loopHours,isLogged=$settings.isLogged;var countDownObj={setCookie:function(name,value,hours){var expires="";if(hours){var date=new Date();date.setTime(date.getTime()+(hours*60*60*1000));expires="; expires="+date.toUTCString()}
document.cookie=name+"="+(value||"")+expires+"; path=/"},getCookie:function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}
return null},randomIntFromInterval:function(min,max){return Math.floor(Math.random()*(max-min+1)+min)},getTimeSpan:function(date){var total=date-Date.now();return{total,seconds:total/1000%60,minutes:total/1000/60%60,hours:total/1000/60/60%24,days:total/1000/60/60/24}},showPost:function(endTime){jQuery.ajax({url:$settings.adminAjaxUrl,type:'post',data:{action:'element_pack_countdown_end',endTime:endTime,couponTrickyId:$settings.couponTrickyId},success:function(data){if(data=='ended'){if($settings.endActionType=='message'){jQuery($settings.msgId).css({'display':'block'});jQuery($settings.id+'-timer').css({'display':'none'})}
if($settings.endActionType=='url'&&$settings.redirectUrl){setInterval(function(){jQuery(location).attr('href',$settings.redirectUrl)},$settings.redirectDelay)}}},error:function(){console.log("Error")}})},couponCode:function(){jQuery.ajax({url:$settings.adminAjaxUrl,type:'post',data:{action:'element_pack_countdown_end',endTime:endTime,couponTrickyId:$settings.couponTrickyId},success:function(data){},error:function(){}})},triggerFire:function(){jQuery.ajax({url:$settings.adminAjaxUrl,type:'post',data:{action:'element_pack_countdown_end',endTime:endTime,couponTrickyId:$settings.couponTrickyId},success:function(data){if(data=='ended'){setTimeout(function(){if($settings.triggerId){document.getElementById($settings.triggerId).click()}},1500)}},error:function(){}})},clearInterVal:function(myInterVal){clearInterval(myInterVal)}};if(loopHours==!1){var countdown=bdtUIkit.countdown($($settings.id+'-timer'),{date:$settings.finalTime});var myInterVal=setInterval(function(){var seconds=countDownObj.getTimeSpan(countdown.date).seconds.toFixed(0);var finalSeconds=parseInt(seconds);if(finalSeconds<0){if(!jQuery('body').hasClass('elementor-editor-active')){jQuery($settings.id+'-msg').css({'display':'none'});if($settings.endActionType!='none'){countDownObj.showPost(endTime)}}
countDownObj.clearInterVal(myInterVal)}},1000);if($settings.endActionType=='coupon-code'){var myInterVal2=setInterval(function(){var seconds=countDownObj.getTimeSpan(countdown.date).seconds.toFixed(0);var finalSeconds=parseInt(seconds);if(finalSeconds<0){if(!jQuery('body').hasClass('elementor-editor-active')){if($settings.endActionType=='coupon-code'){countDownObj.couponCode(endTime)}}
countDownObj.clearInterVal(myInterVal2)}},1000)}
if($settings.triggerId!==!1){var myInterVal2=setInterval(function(){var seconds=countDownObj.getTimeSpan(countdown.date).seconds.toFixed(0);var finalSeconds=parseInt(seconds);if(finalSeconds<0){if(!jQuery('body').hasClass('elementor-editor-active')){countDownObj.triggerFire()}
countDownObj.clearInterVal(myInterVal2)}},1000)}}
if(loopHours!==!1){var now=new Date(),randMinute=countDownObj.randomIntFromInterval(6,14),hours=loopHours*60*60*1000-(randMinute*60*1000),timer=new Date(now.getTime()+hours),loopTime=timer.toISOString(),getCookieLoopTime=countDownObj.getCookie('bdtCountdownLoopTime');if((getCookieLoopTime==null||getCookieLoopTime=='undefined')&&isLogged===!1){countDownObj.setCookie('bdtCountdownLoopTime',loopTime,loopHours)}
var setLoopTimer;if(isLogged===!1){setLoopTimer=countDownObj.getCookie('bdtCountdownLoopTime')}else{setLoopTimer=loopTime}
$($settings.id+'-timer').attr('data-bdt-countdown','date: '+setLoopTimer);var countdown=bdtUIkit.countdown($($settings.id+'-timer'),{date:setLoopTimer});var countdownDate=countdown.date;setInterval(function(){var seconds=countDownObj.getTimeSpan(countdownDate).seconds.toFixed(0);var finalSeconds=parseInt(seconds);if(finalSeconds>0){if((getCookieLoopTime==null||getCookieLoopTime=='undefined')&&isLogged===!1){countDownObj.setCookie('bdtCountdownLoopTime',loopTime,loopHours);bdtUIkit.countdown($($settings.id+'-timer'),{date:setLoopTimer})}}},1000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-countdown.default',widgetCountdown);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-countdown.bdt-tiny-countdown',widgetCountdown)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetSimpleContactForm=function($scope,$){var $contactForm=$scope.find('.bdt-contact-form .without-recaptcha');var $inputFieldTel=$scope.find('.bdt-contact-form input[type="tel"]');$inputFieldTel.on('input',function(e){this.value=this.value.replace(/[^0-9\+]/g,'')});if(!$contactForm.length){return}
$contactForm.submit(function(e){sendContactForm($contactForm);return!1});return!1};function sendContactForm($contactForm){var langStr=window.ElementPackConfig.contact_form;$.ajax({url:$contactForm.attr('action'),type:'POST',data:$contactForm.serialize(),beforeSend:function(){bdtUIkit.notification({message:'<div bdt-spinner></div> '+langStr.sending_msg,timeout:!1,status:'primary'})},success:function(data){var redirectURL=$(data).data('redirect'),isExternal=$(data).data('external'),resetStatus=$(data).data('resetstatus');bdtUIkit.notification.closeAll();var notification=bdtUIkit.notification({message:data});if(redirectURL){if(redirectURL!='no'){bdtUIkit.util.on(document,'close',function(evt){if(evt.detail[0]===notification){window.open(redirectURL,isExternal)}})}}
localStorage.setItem("bdtCouponCode",$contactForm.attr('id'));if(resetStatus){if(resetStatus!=='no'){$contactForm[0].reset()}}}});return!1}
function elementPackGIC(){var langStr=window.ElementPackConfig.contact_form;return new Promise(function(resolve,reject){if(grecaptcha===undefined){bdtUIkit.notification({message:'<div bdt-spinner></div> '+langStr.captcha_nd,timeout:!1,status:'warning'});reject()}
var response=grecaptcha.getResponse();if(!response){bdtUIkit.notification({message:'<div bdt-spinner></div> '+langStr.captcha_nr,timeout:!1,status:'warning'});reject()}
var $contactForm=$('textarea.g-recaptcha-response').filter(function(){return $(this).val()===response}).closest('form.bdt-contact-form-form');var contactFormAction=$contactForm.attr('action');if(contactFormAction&&contactFormAction!==''){sendContactForm($contactForm)}else{}
grecaptcha.reset()})}
window.elementPackGICCB=elementPackGIC;jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-contact-form.default',widgetSimpleContactForm)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetComment=function($scope,$){var $comment=$scope.find('.bdt-comment-container'),$settings=$comment.data('settings');if(!$comment.length){return}
if($settings.layout==='disqus'){var disqus_config=function(){this.page.url=$settings.permalink;this.page.identifier=$comment};(function(){var d=document,s=d.createElement('script');s.src='//'+$settings.username+'.disqus.com/embed.js';s.setAttribute('data-timestamp',+new Date());(d.head||d.body).appendChild(s)})()}else if($settings.layout==='facebook'){(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return}
js=d.createElement(s);js.id=id;js.src='https://connect.facebook.net/en_US/sdk.js';fjs.parentNode.insertBefore(js,fjs)}(document,'script','facebook-jssdk'));window.fbAsyncInit=function(){FB.init({appId:$settings.app_id,autoLogAppEvents:!0,xfbml:!0,version:'v3.2'})}}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-comment.default',widgetComment)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCustomGallery=function($scope,$){var $customGallery=$scope.find('.bdt-custom-gallery'),$settings=$customGallery.data('settings');if(!$customGallery.length){return}
if($settings.tiltShow==!0){var elements=document.querySelectorAll($settings.id+" [data-tilt]");VanillaTilt.init(elements)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-custom-gallery.default',widgetCustomGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-custom-gallery.bdt-abetis',widgetCustomGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-custom-gallery.bdt-fedara',widgetCustomGallery)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCustomCarousel=function($scope,$){var $carousel=$scope.find('.bdt-ep-custom-carousel');if(!$carousel.length){return}
var $carouselContainer=$carousel.find('.swiper-carousel'),$settings=$carousel.data('settings');const Swiper=elementorFrontend.utils.swiper;initSwiper();async function initSwiper(){var swiper=await new Swiper($carouselContainer,$settings);if($settings.pauseOnHover){$($carouselContainer).hover(function(){(this).swiper.autoplay.stop()},function(){(this).swiper.autoplay.start()})}}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-custom-carousel.default',widgetCustomCarousel);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-custom-carousel.bdt-custom-content',widgetCustomCarousel)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $cryptoWidget=$scope.find('.bdt-ep-crypto-currency-card'),$settings=$cryptoWidget.data('settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$cryptoWidget.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.order){$options.order=$settings.order}
let currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:1,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){let itemData=$($cryptoWidget).find('.bdt-crypto-currency-card-item');let idPriceColumnArray=[];for(let i=0;i<itemData.length;i++){idPriceColumnArray.push({id:$(itemData[i]).data('id'),current_price:parseFloat($(itemData[i]).find('.bdt-price-text').text()),})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
if(changesIdArray.length!==0){changesIdArray.forEach(element=>{$($cryptoWidget).find('[data-id="'+element.id+'"]').addClass('data-changed');$($cryptoWidget).find('[data-id="'+element.id+'"]').find('.bdt-price-text').text(element.current_price);let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;$($cryptoWidget).find('[data-id="'+element.id+'"] .price-int').text(amount)})}
setTimeout(function(){$($cryptoWidget).find('.bdt-crypto-currency-card-item').removeClass('data-changed');return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
$.ajax({type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},success:function(result){$($cryptoWidget).empty();if(typeof result.data!=="undefined"&&result.data.length>0&&!0===result.apiErrors){let output=`<div class="bdt-alert-danger" bdt-alert>
<a class="bdt-alert-close" bdt-close></a>
<p>${result.data}</p>
</div>`;$($cryptoWidget).append(output);return}
var count=0;result.data.forEach(element=>{count++;if(count>1){return}
let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;let data=element.price_change_percentage_1h;let OneHourData=(Number(data)===data&&data%1!==0)?data.toFixed(2)+"%":data+"%";var img_html='';var name_html='';var symble_html='';var price_html='';var hourly_price_html='';var market_cap_rank_html='';var market_cap_html='';var total_volume_html='';var price_change_html='';if(!0==$settings.showCurrencyImage){img_html=`<div class="bdt-ep-currency-image">
<img src="${element.image}" alt="${element.id}">
</div>`}
if(!0==$settings.showCurrencyShortName){symble_html=`<div class="bdt-ep-currency-short-name">
<span>${element.symbol}</span>
</div>`}
if(!0==$settings.showCurrencyName){name_html=`<div class="bdt-crypto-name-wrap"><div class="bdt-ep-currency-name">
<span>${element.id}</span>
</div> ${symble_html}</div>`}
if(!0==$settings.showCurrencyChangePrice){hourly_price_html=`<div class="bdt-percentage" title="1 Hour Data Change">${OneHourData}</div>`}
if(!0==$settings.showCurrencyCurrentPrice){price_html=`<div class="bdt-width-1-1 bdt-width-1-2@s"><div class="bdt-ep-current-price">
<div class="bdt-price">${amount}</div>
${hourly_price_html}
</div></div>`}
if(!0==$settings.showMarketCapRank){market_cap_rank_html=`<div class="bdt-ep-ccc-atribute">
<span class="bdt-ep-item-text">Market Cap Rank: </span>
<span>#${element.market_cap_rank}</span>
</div>`}
if(!0==$settings.showMarketCap){market_cap_html=`<div class="bdt-ep-ccc-atribute">
<span class="bdt-ep-item-text">Market Cap: </span>
<span>${element.market_cap}</span>
</div>`}
if(!0==$settings.showTotalVolume){total_volume_html=`<div class="bdt-ep-ccc-atribute">
<span class="bdt-ep-item-text">Total Volume: </span>
<span>${element.total_volume}</span>
</div>`}
if(!0==$settings.showPriceChange){price_change_html=`<div class="bdt-ep-ccc-atribute">
<span class="bdt-ep-item-text">24H Change(%): </span>
<span>${element.price_change_percentage_24h}</span>
</div>`}
var output=`<div class="bdt-grid" bdt-grid data-id="${element.id}">
<div class="bdt-width-1-1 bdt-width-1-2@s">
<div class="bdt-ep-currency">
${img_html}
${name_html}
</div>
</div>
${price_html}
<div class="bdt-width-1-1 bdt-margin-small-top bdt-ep-ccc-atributes bdt-grid-margin bdt-first-column">
${market_cap_rank_html}
${market_cap_html}
${total_volume_html}
${price_change_html}
</div>
<span class="bdt-price-text bdt-hidden">${element.current_price}</span>
</div>`;$($cryptoWidget).append(output)})}});if(!0!==editMode){setTimeout(function(){getData()},5000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-card.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $cryptoWidget=$scope.find('.bdt-crypto-currency-table'),$settings=$cryptoWidget.data('settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$cryptoWidget.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.limit){$options.limit=$settings.limit}
if($settings.order){$options.order=$settings.order}
let table,currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){var tableData=table.rows().data();let idPriceColumnArray=[];for(let i=0;i<tableData.length;i++){idPriceColumnArray.push({id:tableData[i].id,current_price:tableData[i].current_price,})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
changesIdArray.filter(function(valueChangesArray,index){let foundindex=0;var filteredData=table.column(1).data().filter(function(value,index){if(value===valueChangesArray.id){foundindex=index;table.column(2).nodes().each(function(node,colIndex,dt){if(colIndex===index){table.cell(node).data(valueChangesArray.current_price);let nodes=table.column(2).nodes();$(nodes[index]).addClass("focus-item")}})}
return value===valueChangesArray.id?!0:!1})});setTimeout(function(){table.column(2).nodes().each(function(){$(this).removeClass("focus-item")});return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
table=$($settings.tableId).DataTable({language:window.ElementPackConfig.data_table.language,destroy:!0,processing:!0,serverSide:!1,searching:$settings.searching,ordering:$settings.ordering,paging:$settings.paging,info:$settings.info,pageLength:$settings.pageLength,ajax:{type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},},columns:[{data:"market_cap_rank"},{data:"id",render:function(data,type,row,meta){return('<div class="bdt-coin"><div class="bdt-coin-image"><img src="'+row.image+'" alt="'+row.id+'"></div><div class="bdt-coin-title"><div class="bdt-coin-name">'+row.id+'</div><div class="bdt-coin-symbol">'+row.symbol+"</div></div></div>")},},{data:"current_price",render:function(data,type,row,meta){let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let val=Number(data)===data&&data%1!==0?data.toFixed(2):data;return returnCurrencySymbol(upperCaseCurrncyCode)+val},},{data:"price_change_percentage_24h",render:function(data,type,row,meta){return Number(data)===data&&data%1!==0?data.toFixed(2)+"%":data+"%"},},{data:"market_cap",render:function(data,type,row,meta){let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let formatAmout=numFormatter(data);return returnCurrencySymbol(upperCaseCurrncyCode)+formatAmout},},{data:"total_volume",render:function(data,type,row,meta){let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let formatAmout=numFormatter(data);return returnCurrencySymbol(upperCaseCurrncyCode)+formatAmout},},{data:"circulating_supply",render:function(data,type,row,mata){let formatAmout=numFormatter(data);return formatAmout}},{data:"last_seven_days_changes",render:function(data,type,row,meta){return('<input type="hidden" class="hdnInputCanvas-'+row.id+'"  value="'+data+'"/>'+'<div class="chart-container" style="position: relative; height: 100%; width: 250px"><canvas id="canvas-'+row.id+'"></canvas></div>')},},],columnDefs:[{searchable:!1,orderable:!1,targets:[7],},],order:[[0,"asc"]],createdRow:function(row,data,index){let getCanvasElement=$("td",row).eq(7);let getHiddenData=$(getCanvasElement).find("input").val();let splitData=getHiddenData.split(",");if(splitData&&splitData.length>15){splitData=splitData.slice(0,14)}
const dom_canvas_element=$(getCanvasElement).find("canvas");const labels=[],dataPointvalue=[];splitData.forEach((element,index)=>{labels.push(index);dataPointvalue.push(Number(element))});const dataCharts={labels:labels,datasets:[{label:"",backgroundColor:"rgba(30,135,240,0.2)",borderColor:"#1e87f0",fill:!0,lineTension:0.4,pointStyle:'circle',pointBackgroundColor:"transparent",pointBorderWidth:0,borderWidth:2,data:dataPointvalue,},],};const config={type:"line",data:dataCharts,options:{responsive:!0,plugins:{legend:{display:!1,},tooltip:{enabled:!0,callbacks:{title:()=>''}}},scales:{x:{ticks:{display:!1,},grid:{display:!1,drawBorder:!1,drawOnChartArea:!1,drawTicks:!1,},},y:{ticks:{display:!1,},grid:{display:!1,drawBorder:!1,drawOnChartArea:!1,drawTicks:!1,},},},},};const chart=new Chart(dom_canvas_element,config);chart.canvas.parentNode.style.width="100%";chart.canvas.parentNode.style.height="60px";chart.canvas.style.width="100%";chart.canvas.style.height="60px"},});if(!0!==editMode){setTimeout(function(){getData()},5000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-table.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $cryptoWidget=$scope.find('.bdt-crypto-currency-grid'),$settings=$cryptoWidget.data('settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$cryptoWidget.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.limit){$options.limit=$settings.limit}
if($settings.order){$options.order=$settings.order}
let currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){let itemData=$($cryptoWidget).find('.bdt-crypto-currency-grid-item');let idPriceColumnArray=[];for(let i=0;i<itemData.length;i++){idPriceColumnArray.push({id:$(itemData[i]).data('id'),current_price:parseFloat($(itemData[i]).find('.bdt-price-text').text()),})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
if(changesIdArray.length!==0){changesIdArray.forEach(element=>{$($cryptoWidget).find('[data-id="'+element.id+'"]').addClass('data-changed');$($cryptoWidget).find('[data-id="'+element.id+'"]').find('.bdt-price-text').text(element.current_price);let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;$($cryptoWidget).find('[data-id="'+element.id+'"] .price-int').text(amount)})}
setTimeout(function(){$($cryptoWidget).find('.bdt-crypto-currency-grid-item').removeClass('data-changed');return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
$.ajax({type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},success:function(result){$($cryptoWidget).empty();if(typeof result.data!=="undefined"&&result.data.length>0&&!0===result.apiErrors){let output=`<div class="bdt-alert-danger" bdt-alert>
<a class="bdt-alert-close" bdt-close></a>
<p>${result.data}</p>
</div>`;$($cryptoWidget).append(output);return}
var count=0;result.data.forEach(element=>{count++;if(count>cryptoDataSettingsValue.limit){return}
let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;var img_html='';var name_html='';var symble_html='';var price_html='';var price_label_html='';if(!0==$settings.showCurrencyImage){img_html=`<div class="bdt-crypto-currency-grid-img">
<img src="${element.image}" alt="${element.id}">
</div>`}
if(!0==$settings.showCurrencyShortName){symble_html=`<span>(${element.symbol})</span>`}
if(!0==$settings.showCurrencyName){name_html=`<div class="bdt-crypto-currency-grid-title">
<h4>${element.id} ${symble_html}</h4>
</div>`}
if(!0==$settings.showCurrencyPriceLabel){price_label_html=`<div class="bdt-crypto-currency-grid-price-text">
<span>price</span>
</div>`}
if(!0==$settings.showCurrencyCurrentPrice){price_html=`${price_label_html}
<div class="bdt-crypto-currency-grid-price-nu">
<span class="price-int">${amount}</span>
</div>`}
var output=`<div class="bdt-crypto-currency-grid-item" data-id="${element.id}">
<div class="bdt-crypto-currency-grid-content">
<div class="bdt-crypto-currency-grid-bg">
<img src="${element.image}" alt="${element.id}">
</div>
<div class="bdt-crypto-currency-grid-head-content">
${img_html}
${name_html}
</div>
<div class="bdt-crypto-currency-grid-bottom-content">
${price_html}
</div>
</div>
<span class="bdt-price-text bdt-hidden">${element.current_price}</span>
</div>`;$($cryptoWidget).append(output)})}});if(!0!==editMode){setTimeout(function(){getData()},5000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-grid.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $carousel=$scope.find('.bdt-crypto-currency-carousel'),$cryptoWidget=$scope.find('.bdt-crypto-currency-carousel'),$settings=$cryptoWidget.data('crypto-settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$carousel.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.limit){$options.limit=$settings.limit}
if($settings.order){$options.order=$settings.order}
let currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){let itemData=$($cryptoWidget).find('.bdt-crypto-currency-carousel-item');let idPriceColumnArray=[];for(let i=0;i<itemData.length;i++){idPriceColumnArray.push({id:$(itemData[i]).data('id'),current_price:parseFloat($(itemData[i]).find('.bdt-price-text').text()),})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
if(changesIdArray.length!==0){changesIdArray.forEach(element=>{$($cryptoWidget).find('[data-id="'+element.id+'"]').addClass('data-changed');$($cryptoWidget).find('[data-id="'+element.id+'"]').find('.bdt-price-text').text(element.current_price);let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;$($cryptoWidget).find('[data-id="'+element.id+'"] .price-int').text(amount)})}
setTimeout(function(){$($cryptoWidget).find('.bdt-crypto-currency-carousel-item').removeClass('data-changed');return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
$.ajax({type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},success:function(result){$($cryptoWidget).find('.swiper-wrapper').empty();var count=0;result.data.forEach(element=>{count++;if(count>cryptoDataSettingsValue.limit){return}
let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;var img_html='';var name_html='';var symble_html='';var price_html='';var price_label_html='';if(!0==$settings.showCurrencyImage){img_html=`<div class="bdt-crypto-currency-carousel-img">
<img src="${element.image}" alt="${element.id}">
</div>`}
if(!0==$settings.showCurrencyShortName){symble_html=`<span>(${element.symbol})</span>`}
if(!0==$settings.showCurrencyName){name_html=`<div class="bdt-crypto-currency-carousel-title">
<h4>${element.id} ${symble_html}</h4>
</div>`}
if(!0==$settings.showCurrencyPriceLabel){price_label_html=`<div class="bdt-crypto-currency-carousel-price-text">
<span>price</span>
</div>`}
if(!0==$settings.showCurrencyCurrentPrice){price_html=`${price_label_html}
<div class="bdt-crypto-currency-carousel-price-nu">
<span class="price-int">${amount}</span>
</div>`}
var output=`<div class="swiper-slide"><div class="bdt-crypto-currency-carousel-item" data-id="${element.id}">
<div class="bdt-crypto-currency-carousel-content">
<div class="bdt-crypto-currency-carousel-bg">
<img src="${element.image}" alt="${element.id}">
</div>
<div class="bdt-crypto-currency-carousel-head-content">
${img_html}
${name_html}
</div>
<div class="bdt-crypto-currency-carousel-bottom-content">
${price_html}
</div>
</div>
<span class="bdt-price-text bdt-hidden">${element.current_price}</span>
</div></div>`;$($cryptoWidget).find('.swiper-wrapper').append(output);var $carouselContainer=$carousel.find('.swiper-carousel'),$carouselSettings=$carousel.data('settings');const Swiper=elementorFrontend.utils.swiper;initSwiper();async function initSwiper(){var swiper=await new Swiper($carouselContainer,$carouselSettings);if($carouselSettings.pauseOnHover){$($carouselContainer).hover(function(){(this).swiper.autoplay.stop()},function(){(this).swiper.autoplay.start()})}}})}});if(!0!==editMode){setTimeout(function(){getData()},5000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-carousel.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $cryptoWidget=$scope.find('.bdt-crypto-currency-ticker'),$settings=$cryptoWidget.data('settings'),$tickerSettings=$cryptoWidget.data('ticker-settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$cryptoWidget.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.limit){$options.limit=$settings.limit}
if($settings.order){$options.order=$settings.order}
let currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){let itemData=$($cryptoWidget).find('.bdt-crypto-currency-ticker-item');let idPriceColumnArray=[];for(let i=0;i<itemData.length;i++){idPriceColumnArray.push({id:$(itemData[i]).data('id'),current_price:parseFloat($(itemData[i]).find('.bdt-price-text').text()),})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
if(changesIdArray.length!==0){changesIdArray.forEach(element=>{$($cryptoWidget).find('[data-id="'+element.id+'"]').addClass('data-changed');$($cryptoWidget).find('[data-id="'+element.id+'"]').find('.bdt-price-text').text(element.current_price);let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;$($cryptoWidget).find('[data-id="'+element.id+'"] .price-int').text(amount)})}
setTimeout(function(){$($cryptoWidget).find('.bdt-crypto-currency-ticker-item').removeClass('data-changed');return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
$.ajax({type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},success:function(result){$($cryptoWidget).find('ul').empty();var count=0;result.data.forEach(element=>{count++;if(count>cryptoDataSettingsValue.limit){return}
let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;let data=element.price_change_percentage_1h;let OneHourData=(Number(data)===data&&data%1!==0)?data.toFixed(2)+"%":data+"%";var img_html='';var name_html='';var symble_html='';var price_html='';var price_change_percentage_1h_html='';if(!0==$settings.showCurrencyImage){img_html=`<div class="bdt-crypto-currency-ticker-img">
<img src="${element.image}" alt="${element.id}">
</div>`}
if(!0==$settings.showCurrencyShortName){symble_html=`<span>(${element.symbol})</span>`}
if(!0==$settings.showCurrencyName){name_html=`<h3 class="bdt-crypto-currency-ticker-title">
${element.id} ${symble_html}
</h3>`}
if(!0==$settings.showCurrencyCurrentPrice){price_html=`<span class="bdt-crypto-currency-ticker-price">${amount}</span>`}
if(!0==$settings.showPriceChangePercentage){price_change_percentage_1h_html=`<div class="bdt-crypto-currency-ticker-percentage">
<svg width="25" height="22" viewBox="0 0 20 20" fill="currentColor"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M6.646 11.646a.5.5 0 01.708 0L10 14.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z"
clip-rule="evenodd" />
<path fill-rule="evenodd"
d="M10 4.5a.5.5 0 01.5.5v9a.5.5 0 01-1 0V5a.5.5 0 01.5-.5z"
clip-rule="evenodd" />
</svg>
<span>${OneHourData}</span>
</div>`}
var output=`<li class="bdt-crypto-currency-ticker-item" data-id="${element.id}">
<div class="bdt-crypto-currency-ticker-inner-item">
${img_html}
<div class="bdt-crypto-currency-ticker-content">
${name_html}
${price_html}
${price_change_percentage_1h_html}
</div>
</div>
<span class="bdt-price-text bdt-hidden">${element.current_price}</span>
</li>`;$($cryptoWidget).find('ul').append(output)})}});if(!0!==editMode){setTimeout(function(){getData()},7000)}
$(document).ready(function(){setTimeout(function(){$($cryptoWidget).epNewsTicker($tickerSettings)},7000)})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-ticker.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $cryptoWidget=$scope.find('.bdt-crypto-currency-chart'),$settings=$cryptoWidget.data('settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$cryptoWidget.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.limit){$options.limit=$settings.limit}
if($settings.order){$options.order=$settings.order}
let currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){let itemData=$($cryptoWidget).find('.bdt-crypto-currency-chart-item');let idPriceColumnArray=[];for(let i=0;i<itemData.length;i++){idPriceColumnArray.push({id:$(itemData[i]).data('id'),current_price:parseFloat($(itemData[i]).find('.bdt-price-text').text()),})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
if(changesIdArray.length!==0){changesIdArray.forEach(element=>{$($cryptoWidget).find('[data-id="'+element.id+'"]').addClass('data-changed');$($cryptoWidget).find('[data-id="'+element.id+'"]').find('.bdt-price-text').text(element.current_price);let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;$($cryptoWidget).find('[data-id="'+element.id+'"] .price-int').text(amount)})}
setTimeout(function(){$($cryptoWidget).find('.bdt-crypto-currency-chart-item').removeClass('data-changed');return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
$.ajax({type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},success:function(result){$($cryptoWidget).empty();var count=0;result.data.forEach(element=>{count++;if(count>cryptoDataSettingsValue.limit){return}
let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;let data=element.price_change_percentage_1h;let OneHourData=(Number(data)===data&&data%1!==0)?data.toFixed(2)+"%":data+"%";var name_html='';var symble_html='';var price_html='';var price_change_percentage_1h_html='';if(!0==$settings.showCurrencyShortName){symble_html=`<span>(${element.symbol})</span>`}
if(!0==$settings.showCurrencyName){name_html=`<div class="bdt-crypto-currency-chart-title"><h4>${element.id} ${symble_html}</h4></div>`}
if(!0==$settings.showCurrencyCurrentPrice){price_html=`<div class="bdt-crypto-currency-chart-price-l">
<span class="price-int">${amount}</span>
</div>`}
if(!0==$settings.showPriceChangePercentage){price_change_percentage_1h_html=`<div class="bdt-crypto-currency-chart-change">
<span class="bdt-crypto-currency-chart-list-change up" title="1 Hour Data Change">${OneHourData}</span>
</div>`}
var output=`<div class="bdt-crypto-currency-chart-item" data-id="${element.id}">
<div class="bdt-crypto-currency-chart-head-content">
<div class="bdt-crypto-currency-chart-head-inner-content">
${name_html}
${price_change_percentage_1h_html}
</div>
<div class="bdt-crypto-currency-chart-bottom-inner-content">
${price_html}
</div>
</div>
<div class="bdt-crypto-currency-chart-chart">
<input type="hidden" class="hdnInputCanvas-${element.id}"  value="${element.last_seven_days_changes}"/><div class="chart-container" style="position: relative;"><canvas id="canvas-${element.id}"></canvas></div>
</div>
<span class="bdt-price-text bdt-hidden">${element.current_price}</span>
</div>`;$($cryptoWidget).append(output);let getCanvasElement=$($cryptoWidget).find('[data-id="'+element.id+'"]');let getHiddenData=$(getCanvasElement).find("input").val();let splitData=getHiddenData.split(",");if(splitData&&splitData.length>15){splitData=splitData.slice(0,14)}
const dom_canvas_element=$(getCanvasElement).find("canvas");const labels=[],dataPointvalue=[];splitData.forEach((element,index)=>{labels.push(index);dataPointvalue.push(Number(element))});const dataCharts={labels:labels,datasets:[{label:"",backgroundColor:"rgba(30,135,240,0.2)",borderColor:"#1e87f0",fill:!0,lineTension:0.4,pointStyle:'circle',pointBackgroundColor:"#1e87f0",pointBorderWidth:1,borderWidth:2,data:dataPointvalue,},],};const config={type:"line",data:dataCharts,options:{responsive:!0,plugins:{legend:{display:!1,},tooltip:{enabled:!0}},scales:{x:{ticks:{display:!1,},grid:{display:!1,drawBorder:!1,drawOnChartArea:!1,drawTicks:!1,},},y:{ticks:{display:!1,},grid:{display:!1,drawBorder:!1,drawOnChartArea:!1,drawTicks:!1,},},},},};const chart=new Chart(dom_canvas_element,config)})}});if(!0!==editMode){setTimeout(function(){getData()},5000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-chart.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $carousel=$scope.find('.bdt-crypto-currency-chart-carousel'),$cryptoWidget=$scope.find('.bdt-crypto-currency-chart-carousel'),$settings=$cryptoWidget.data('crypto-settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$carousel.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.limit){$options.limit=$settings.limit}
if($settings.order){$options.order=$settings.order}
let currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){let itemData=$($cryptoWidget).find('.bdt-crypto-currency-chart-carousel-item');let idPriceColumnArray=[];for(let i=0;i<itemData.length;i++){idPriceColumnArray.push({id:$(itemData[i]).data('id'),current_price:parseFloat($(itemData[i]).find('.bdt-price-text').text()),})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
if(changesIdArray.length!==0){changesIdArray.forEach(element=>{$($cryptoWidget).find('[data-id="'+element.id+'"]').addClass('data-changed');$($cryptoWidget).find('[data-id="'+element.id+'"]').find('.bdt-price-text').text(element.current_price);let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;$($cryptoWidget).find('[data-id="'+element.id+'"] .price-int').text(amount)})}
setTimeout(function(){$($cryptoWidget).find('.bdt-crypto-currency-chart-carousel-item').removeClass('data-changed');return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
$.ajax({type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},success:function(result){$($cryptoWidget).find('.swiper-wrapper').empty();var count=0;result.data.forEach(element=>{count++;if(count>cryptoDataSettingsValue.limit){return}
let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;let data=element.price_change_percentage_1h;let OneHourData=(Number(data)===data&&data%1!==0)?data.toFixed(2)+"%":data+"%";var name_html='';var symble_html='';var price_html='';var price_change_percentage_1h_html='';if(!0==$settings.showCurrencyShortName){symble_html=`<span>(${element.symbol})</span>`}
if(!0==$settings.showCurrencyName){name_html=`<div class="bdt-crypto-currency-chart-carousel-title"><h4>${element.id} ${symble_html}</h4></div>`}
if(!0==$settings.showCurrencyCurrentPrice){price_html=`<div class="bdt-crypto-currency-chart-carousel-price-l">
<span>${amount}</span>
</div>`}
if(!0==$settings.showPriceChangePercentage){price_change_percentage_1h_html=`<div class="bdt-crypto-currency-chart-carousel-change">
<span class="bdt-crypto-currency-chart-carousel-list-change up" title="1 Hour Data Change">${OneHourData}</span>
</div>`}
var output=`<div class="swiper-slide"><div class="bdt-crypto-currency-chart-carousel-item" data-id="${element.id}">
<div class="bdt-crypto-currency-chart-carousel-head-content">
<div class="bdt-crypto-currency-chart-carousel-head-inner-content">
${name_html}
${price_change_percentage_1h_html}
</div>
<div class="bdt-crypto-currency-chart-carousel-bottom-inner-content">
${price_html}
</div>
</div>
<div class="bdt-crypto-currency-chart-carousel-chart">
<input type="hidden" class="hdnInputCanvas-${element.id}"  value="${element.last_seven_days_changes}"/><div class="chart-container" style="position: relative;"><canvas id="canvas-${element.id}"></canvas></div>
</div>
<span class="bdt-price-text bdt-hidden">${element.current_price}</span>
</div></div>`;$($cryptoWidget).find('.swiper-wrapper').append(output);var $carouselContainer=$carousel.find('.swiper-carousel'),$carouselSettings=$carousel.data('settings');const Swiper=elementorFrontend.utils.swiper;initSwiper();async function initSwiper(){var swiper=await new Swiper($carouselContainer,$carouselSettings);if($carouselSettings.pauseOnHover){$($carouselContainer).hover(function(){(this).swiper.autoplay.stop()},function(){(this).swiper.autoplay.start()})}};let getCanvasElement=$($cryptoWidget).find('[data-id="'+element.id+'"]');let getHiddenData=$(getCanvasElement).find("input").val();let splitData=getHiddenData.split(",");if(splitData&&splitData.length>15){splitData=splitData.slice(0,14)}
const dom_canvas_element=$(getCanvasElement).find("canvas");const labels=[],dataPointvalue=[];splitData.forEach((element,index)=>{labels.push(index);dataPointvalue.push(Number(element))});const dataCharts={labels:labels,datasets:[{label:"",backgroundColor:"rgba(30,135,240,0.2)",borderColor:"#1e87f0",fill:!0,lineTension:0.4,pointStyle:'circle',pointBackgroundColor:"#1e87f0",pointBorderWidth:1,borderWidth:2,data:dataPointvalue,},],};const config={type:"line",data:dataCharts,options:{responsive:!0,plugins:{legend:{display:!1,},tooltip:{enabled:!0}},scales:{x:{ticks:{display:!1,},grid:{display:!1,drawBorder:!1,drawOnChartArea:!1,drawTicks:!1,},},y:{ticks:{display:!1,},grid:{display:!1,drawBorder:!1,drawOnChartArea:!1,drawTicks:!1,},},},},};const chart=new Chart(dom_canvas_element,config)})}});if(!0!==editMode){setTimeout(function(){getData()},5000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-chart-carousel.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetCrypto=function($scope,$){var $cryptoWidget=$scope.find('.bdt-crypto-currency-list'),$settings=$cryptoWidget.data('settings'),editMode=Boolean(elementorFrontend.isEditMode());if(!$cryptoWidget.length){return}
var $options={'currency':$settings.currency,'limit':100,'order':'market_cap_desc',};if($settings.currency){$options.currency=$settings.currency}
if($settings.limit){$options.limit=$settings.limit}
if($settings.order){$options.order=$settings.order}
let currency_selected,cryptoDataSettingsValue=$options;function getData(){$.ajax({type:"GET",url:ElementPackConfig.ajaxurl+'?action=ep_crypto_data',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},}).done(function(data){let itemData=$($cryptoWidget).find('.bdt-crypto-currency-list-item');let idPriceColumnArray=[];for(let i=0;i<itemData.length;i++){idPriceColumnArray.push({id:$(itemData[i]).data('id'),current_price:parseFloat($(itemData[i]).find('.bdt-price-text').text()),})}
let cryptDataParse=JSON.parse(data);let changesIdArray=[];for(let i=0;i<idPriceColumnArray.length;i++){$.map(cryptDataParse,function(elem,index){if(elem.id===idPriceColumnArray[i].id){if(elem.current_price!==idPriceColumnArray[i].current_price){changesIdArray.push({id:idPriceColumnArray[i].id,current_price:elem.current_price,old_price:idPriceColumnArray[i].current_price,})}}})}
if(changesIdArray.length!==0){changesIdArray.forEach(element=>{$($cryptoWidget).find('[data-id="'+element.id+'"]').addClass('data-changed');$($cryptoWidget).find('[data-id="'+element.id+'"]').find('.bdt-price-text').text(element.current_price);let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;$($cryptoWidget).find('[data-id="'+element.id+'"] .price-int').text(amount)})}
setTimeout(function(){$($cryptoWidget).find('.bdt-crypto-currency-list-item').removeClass('data-changed');return getData()},10000)})}
function numFormatter(num){if(num>999&&num<1000000){return(num/1000).toFixed(2)+'K'}else if(num>1000000000){return(num/1000000000).toFixed(2)+'B'}else if(num>1000000){return(num/1000000).toFixed(2)+'M'}else if(num<900){return num}}
if(cryptoDataSettingsValue!==undefined&&cryptoDataSettingsValue.currency!==undefined){currency_selected=cryptoDataSettingsValue.currency}else{currency_selected="usd"}
$.ajax({type:"GET",dataType:"json",url:ElementPackConfig.ajaxurl+'?action=ep_crypto',data:{currency:currency_selected,per_page:cryptoDataSettingsValue.limit,order:cryptoDataSettingsValue.order,ids:$settings.ids},success:function(result){$($cryptoWidget).empty();var count=0;result.data.forEach(element=>{count++;if(count>cryptoDataSettingsValue.limit){return}
let upperCaseCurrncyCode=currency_selected.toString().toUpperCase();let amount=returnCurrencySymbol(upperCaseCurrncyCode)+element.current_price;var img_html='';var name_html='';var symble_html='';var price_html='';if(!0==$settings.showCurrencyImage){img_html=`<div class="bdt-crypto-currency-list-img">
<img src="${element.image}" alt="${element.id}">
</div>`}
if(!0==$settings.showCurrencyShortName){symble_html=`<span>(${element.symbol})</span>`}
if(!0==$settings.showCurrencyName){name_html=`<div class="bdt-crypto-currency-list-title">
${element.id} ${symble_html}
</div>`}
if(!0==$settings.showCurrencyCurrentPrice){price_html=`<div class="bdt-crypto-currency-list-price">
<span>${amount}</span>
</div>`}
var output=`<div class="bdt-crypto-currency-list-item" data-id="${element.id}">
<div class="bdt-crypto-currency-list-content">
<div class="bdt-crypto-currency-list-inner">
${img_html}
${name_html}
</div>
${price_html}
</div>
<span class="bdt-price-text bdt-hidden">${element.current_price}</span>
</div>`;$($cryptoWidget).append(output)})}});if(!0!==editMode){setTimeout(function(){getData()},5000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-crypto-currency-list.default',widgetCrypto)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetHelpDesk=function($scope,$){var $helpdesk=$scope.find('.bdt-helpdesk'),$helpdeskTooltip=$helpdesk.find('.bdt-helpdesk-icons');if(!$helpdesk.length){return}
var $tooltip=$helpdeskTooltip.find('> .bdt-tippy-tooltip'),widgetID=$scope.data('id');$tooltip.each(function(index){tippy(this,{allowHTML:!0,theme:'bdt-tippy-'+widgetID})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-helpdesk.default',widgetHelpDesk)})}(jQuery,window.elementorFrontend));(function($,elementor){$(window).on("elementor/frontend/init",function(){const ModuleHandler=elementorModules.frontend.handlers.Base;class HorizontalScroller extends ModuleHandler{bindEvents(){this.run()}
getDefaultSettings(){return{allowHTML:!0,}}
settings(key){return this.getElementSettings(`horizontal_scroller_${key}`)}
sectionJoiner(){const widgetID=this.$element.data("id");const sectionList=this.settings("section_list");const widgetWrapper=`.elementor-element-${widgetID} .bdt-ep-hc-wrapper`;const sectionIds=sectionList.map((section)=>`#${section.horizontal_scroller_section_id}`).filter((id)=>document.querySelector(id));if(!sectionIds.length)return;const selectedElements=document.querySelectorAll(sectionIds.join(", "));$(widgetWrapper).append(selectedElements)}
horizontalScroller(){gsap.registerPlugin(ScrollTrigger,ScrollToPlugin);const widgetID=this.$element.data("id");const widgetWrapper=`.elementor-element-${widgetID} .bdt-ep-hc-wrapper`;const scroller=document.querySelector(widgetWrapper);const navLis=document.querySelectorAll(`${widgetWrapper} nav li`);let sections=gsap.utils.toArray(`${widgetWrapper} > .elementor-element`);if(!sections.length)return;const numSections=sections.length-1;const snapVal=1/numSections;const optionSnap=this.settings("auto_fill")?snapVal:!1;let lastIndex=0;const tween=gsap.to(sections,{xPercent:-100*numSections,ease:"none",scrollTrigger:{trigger:widgetWrapper,pin:!0,scrub:!0,snap:optionSnap,end:()=>`+=${scroller.scrollWidth - innerWidth}`,onUpdate:(self)=>{const newIndex=Math.round(self.progress/snapVal);if(this.settings("show_dots")&&newIndex!==lastIndex){navLis[lastIndex].classList.remove("is-active");navLis[newIndex].classList.add("is-active");lastIndex=newIndex}},},});navLis.forEach((anchor,i)=>{anchor.addEventListener("click",()=>{gsap.to(window,{scrollTo:{y:tween.scrollTrigger.start+i*innerWidth,autoKill:!1,},duration:1,})})})}
run(){if(elementorFrontend.isEditMode())return;const widgetID=this.$element.data("id");const widgetContainer=`.elementor-element-${widgetID}`;ScrollTrigger.matchMedia({"(min-width: 1024px)":()=>{$(widgetContainer).addClass("bdt-ep-hc-active");this.sectionJoiner();this.horizontalScroller()},"(max-width: 1023px)":()=>{$(widgetContainer).removeClass("bdt-ep-hc-active")},})}}
elementorFrontend.hooks.addAction("frontend/element_ready/bdt-horizontal-scroller.default",function($scope){elementorFrontend.elementsHandler.addHandler(HorizontalScroller,{$element:$scope,})})})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';var widgetIconNav=function($scope,$){var $iconnav=$scope.find('div.bdt-icon-nav'),$iconnavTooltip=$iconnav.find('.bdt-icon-nav');if(!$iconnav.length){return}
var $tooltip=$iconnavTooltip.find('> .bdt-tippy-tooltip'),widgetID=$scope.data('id');$tooltip.each(function(index){tippy(this,{allowHTML:!0,theme:'bdt-tippy-'+widgetID})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-iconnav.default',widgetIconNav)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetImageCompare=function($scope,$){var $image_compare_main=$scope.find('.bdt-image-compare');var $image_compare=$scope.find('.image-compare');if(!$image_compare.length){return}
var $settings=$image_compare.data('settings');var default_offset_pct=$settings.default_offset_pct,orientation=$settings.orientation,before_label=$settings.before_label,after_label=$settings.after_label,no_overlay=$settings.no_overlay,on_hover=$settings.on_hover,add_circle_blur=$settings.add_circle_blur,add_circle_shadow=$settings.add_circle_shadow,add_circle=$settings.add_circle,smoothing=$settings.smoothing,smoothing_amount=$settings.smoothing_amount,bar_color=$settings.bar_color,move_slider_on_hover=$settings.move_slider_on_hover;var viewers=document.querySelectorAll('#'+$settings.id);var options={controlColor:bar_color,controlShadow:add_circle_shadow,addCircle:add_circle,addCircleBlur:add_circle_blur,showLabels:no_overlay,labelOptions:{before:before_label,after:after_label,onHover:on_hover},smoothing:smoothing,smoothingAmount:smoothing_amount,hoverStart:move_slider_on_hover,verticalMode:orientation,startingPoint:default_offset_pct,fluidMode:!1};viewers.forEach(function(element){var view=new ImageCompare(element,options).mount()})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-image-compare.default',widgetImageCompare)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetImageMagnifier=function($scope,$){var $imageMagnifier=$scope.find('.bdt-image-magnifier'),settings=$imageMagnifier.data('settings'),magnifier=$imageMagnifier.find('> .bdt-image-magnifier-image');if(!$imageMagnifier.length){return}
$(magnifier).ImageZoom(settings)};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-image-magnifier.default',widgetImageMagnifier)})}(jQuery,window.elementorFrontend));(function($,elementor){$(window).on("elementor/frontend/init",function(){let ModuleHandler=elementorModules.frontend.handlers.Base,ListMarquee;ListMarquee=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{allowHTML:!0,}},onElementChange:debounce(function(prop){if(prop.indexOf("marquee_")!==-1){this.run()}},400),settings:function(key){return this.getElementSettings("marquee_"+key)},run:function(){let isElementorEditor=elementorFrontend.isEditMode();if(isElementorEditor){return}
const widgetID=this.$element.data("id");var self=this;var options=this.getDefaultSettings();var $container=this.$element.find(".bdt-marquee");if(!$container){return}
let advancedOptions=self.settings("advanced")==="yes"?!0:!1;if(advancedOptions){$("body").css("overflow-x","hidden")}
var widgetContainer=".elementor-element-"+widgetID;let boxes=gsap.utils.toArray(widgetContainer+" .marquee-content");const ensureFullWidth=(boxes)=>{let totalBoxWidth=boxes.reduce((total,box)=>total+box.offsetWidth,0);if(totalBoxWidth==0){return boxes}
let screenWidth=window.innerWidth;while(totalBoxWidth<screenWidth){boxes.forEach((box)=>{const clone=box.cloneNode(!0);box.parentNode.appendChild(clone)});boxes=gsap.utils.toArray(widgetContainer+" .marquee-content");totalBoxWidth=boxes.reduce((total,box)=>total+box.offsetWidth,0)}
return boxes};boxes=ensureFullWidth(boxes);let reversedDirection=self.settings("direction")==="right"?!0:!1,marqueeSpeed=self.settings("speed")?self.settings("speed")/100:1,isClickable=self.settings("clickable")==="yes"?!0:!1,isPauseOnHover=self.settings("pause_on_hover")==="yes"?!0:!1,isDraggable=self.settings("draggable")==="yes"?!0:!1,spacing=self.settings("spacing")?self.settings("spacing"):0,isLoop=self.settings("loop")==="yes"?!0:!1;let activeElement;const loop=self.horizontalLoop(boxes,{paused:!1,draggable:isDraggable,repeat:-1,speed:marqueeSpeed,paddingRight:spacing,reversed:reversedDirection,center:!0,reversedDirection:reversedDirection,onChange:(element,index)=>{activeElement&&activeElement.classList.remove("active");element.classList.add("active");activeElement=element},});if(isPauseOnHover){self.pauseOnHover(loop,boxes)}
if(isClickable){$(boxes).on("mouseleave",()=>{if(loop.reversed()){loop.play();loop.reverse()}else{loop.play();loop.reversed()}});boxes.forEach((box,i)=>{box.addEventListener("click",()=>{loop.toIndex(i,{duration:0.8,ease:"power1.inOut",})})})}},pauseOnHover:function(tween,boxes){$(boxes).on("mouseenter",()=>{tween.pause()});$(boxes).on("mouseleave",()=>{if(tween.reversed()){tween.play();tween.reverse()}else{tween.play();tween.reversed()}})},horizontalLoop:function(items,config,reverseDirection=!1){var self=this;items=gsap.utils.toArray(items);config=config||{};let onChange=config.onChange,lastIndex=0,tl=gsap.timeline({repeat:config.repeat,paused:config.paused,defaults:{ease:"none"},onReverseComplete:()=>tl.totalTime(tl.rawTime()+tl.duration()*100),}),length=items.length,startX=items[0].offsetLeft,times=[],widths=[],spaceBefore=[],xPercents=[],curIndex=0,center=config.center,pixelsPerSecond=(config.speed||1)*100,snap=config.snap===!1?(v)=>v:gsap.utils.snap(config.snap||1),timeOffset=0,container=center===!0?items[0].parentNode:gsap.utils.toArray(center)[0]||items[0].parentNode,totalWidth,getTotalWidth=()=>items[length-1].offsetLeft+(xPercents[length-1]/100)*widths[length-1]-startX+spaceBefore[0]+items[length-1].offsetWidth*gsap.getProperty(items[length-1],"scaleX")+(parseFloat(config.paddingRight)||0),populateWidths=()=>{let b1=container.getBoundingClientRect(),b2;items.forEach((el,i)=>{widths[i]=parseFloat(gsap.getProperty(el,"width","px"));xPercents[i]=snap((parseFloat(gsap.getProperty(el,"x","px"))/widths[i])*100+gsap.getProperty(el,"xPercent"));b2=el.getBoundingClientRect();spaceBefore[i]=b2.left-(i?b1.right:b1.left);b1=b2});gsap.set(items,{xPercent:(i)=>xPercents[i],});totalWidth=getTotalWidth()},timeWrap,populateOffsets=()=>{timeOffset=center?(tl.duration()*(container.offsetWidth/2))/totalWidth:0;center&&times.forEach((t,i)=>{times[i]=timeWrap(tl.labels["label"+i]+(tl.duration()*widths[i])/2/totalWidth-timeOffset)})},getClosest=(values,value,wrap)=>{let i=values.length,closest=1e10,index=0,d;while(i--){d=Math.abs(values[i]-value);if(d>wrap/2){d=wrap-d}
if(d<closest){closest=d;index=i}}
return index},populateTimeline=()=>{let i,item,curX,distanceToStart,distanceToLoop;tl.clear();for(i=0;i<length;i++){item=items[i];curX=(xPercents[i]/100)*widths[i];distanceToStart=item.offsetLeft+curX-startX+spaceBefore[0];distanceToLoop=distanceToStart+widths[i]*gsap.getProperty(item,"scaleX");tl.to(item,{xPercent:snap(((curX-distanceToLoop)/widths[i])*100),duration:distanceToLoop/pixelsPerSecond,},0).fromTo(item,{xPercent:snap(((curX-distanceToLoop+totalWidth)/widths[i])*100),},{xPercent:xPercents[i],duration:(curX-distanceToLoop+totalWidth-curX)/pixelsPerSecond,immediateRender:!1,},distanceToLoop/pixelsPerSecond).add("label"+i,distanceToStart/pixelsPerSecond);times[i]=distanceToStart/pixelsPerSecond}
timeWrap=gsap.utils.wrap(0,tl.duration())},refresh=(deep)=>{let progress=tl.progress();tl.progress(0,!0);populateWidths();deep&&populateTimeline();populateOffsets();deep&&tl.draggable?tl.time(times[curIndex],!0):tl.progress(progress,!0)},proxy;gsap.set(items,{x:0});populateWidths();populateTimeline();populateOffsets();window.addEventListener("resize",()=>refresh(!0));function toIndex(index,vars){vars=vars||{};if(reverseDirection){index=length-index}
Math.abs(index-curIndex)>length/2&&(index+=index>curIndex?-length:length);let newIndex=gsap.utils.wrap(0,length,index),time=times[newIndex];if(time>tl.time()!==index>curIndex){time+=tl.duration()*(index>curIndex?1:-1)}
if(time<0||time>tl.duration()){vars.modifiers={time:timeWrap}}
curIndex=newIndex;vars.overwrite=!0;gsap.killTweensOf(proxy);return tl.tweenTo(time,vars)}
tl.next=(vars)=>toIndex(curIndex+1,vars);tl.previous=(vars)=>toIndex(curIndex-1,vars);tl.current=()=>curIndex;tl.toIndex=(index,vars)=>toIndex(index,vars);tl.closestIndex=(setCurrent)=>{let index=getClosest(times,tl.time(),tl.duration());setCurrent&&(curIndex=index);return index};tl.times=times;tl.progress(1,!0).progress(0,!0);if(config.reversed){tl.vars.onReverseComplete();tl.reverse()}
if(config.draggable&&typeof Draggable==="function"){proxy=document.createElement("div");let wrap=gsap.utils.wrap(0,1),ratio,startProgress,draggable,dragSnap,align=()=>tl.progress(wrap(startProgress+(draggable.startX-draggable.x)*ratio)),syncIndex=()=>tl.closestIndex(!0);typeof InertiaPlugin==="undefined"&&console.warn("InertiaPlugin required for momentum-based scrolling and snapping. https://greensock.com/club");draggable=Draggable.create(proxy,{trigger:items[0].parentNode,type:"x",onPressInit(){gsap.killTweensOf(tl);startProgress=tl.progress();refresh();ratio=1/totalWidth;gsap.set(proxy,{x:startProgress/-ratio})},onDrag:align,onThrowUpdate:align,inertia:!0,snap:(value)=>{let time=-(value*ratio)*tl.duration(),wrappedTime=timeWrap(time),snapTime=times[getClosest(times,wrappedTime,tl.duration())],dif=snapTime-wrappedTime;Math.abs(dif)>tl.duration()/2&&(dif+=dif<0?tl.duration():-tl.duration());return(time+dif)/tl.duration()/-ratio},onRelease:syncIndex,onThrowComplete:syncIndex,})[0];tl.draggable=draggable}
tl.closestIndex(!0);onChange&&onChange(items[curIndex],curIndex);return tl},});elementorFrontend.hooks.addAction("frontend/element_ready/bdt-marquee.default",function($scope){elementorFrontend.elementsHandler.addHandler(ListMarquee,{$element:$scope,})})})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';var widgetModal=function($scope,$){var $modal=$scope.find('.bdt-modal');if(!$modal.length){return}
$.each($modal,function(index,val){var $this=$(this),$settings=$this.data('settings'),modalShowed=!1,modalID=$settings.id,displayTimes=$settings.displayTimes,scrollDirection=$settings.scrollDirection,scrollSelector=$settings.scrollSelector,scrollOffset=$settings.scrollOffset,splashInactivity=$settings.splashInactivity,closeBtnDelayShow=$settings.closeBtnDelayShow,delayTime=$settings.delayTime,splashDelay=$settings.splashDelay,widgetId=$settings.widgetId,layout=$settings.layout;var editMode=Boolean(elementorFrontend.isEditMode()),inactiveTime;var modal={setLocalize:function(){if($('body').hasClass('logged-in')||editMode){if($settings.cacheOnAdmin!==!0){localStorage.removeItem(widgetId+'_expiresIn');localStorage.removeItem(widgetId);return}}
this.clearLocalize();var widgetID=widgetId,localVal=0,hours=$settings.displayTimesExpire;var expires=(hours*60*60);var now=Date.now();var schedule=now+expires*1000;if(localStorage.getItem(widgetID)===null){localStorage.setItem(widgetID,localVal);localStorage.setItem(widgetID+'_expiresIn',schedule)}
if(localStorage.getItem(widgetID)!==null){var count=parseInt(localStorage.getItem(widgetID));count++;localStorage.setItem(widgetID,count)}},clearLocalize:function(){var localizeExpiry=parseInt(localStorage.getItem(widgetId+'_expiresIn'));var now=Date.now();var schedule=now;if(schedule>=localizeExpiry){localStorage.removeItem(widgetId+'_expiresIn');localStorage.removeItem(widgetId)}},modalFire:function(){if(layout=='splash'||layout=='exit'||layout=='on_scroll'){modal.setLocalize();var firedNotify=parseInt(localStorage.getItem(widgetId));if((displayTimes!==!1)&&(firedNotify>displayTimes)){return}}
bdtUIkit.modal($this).show()},closeBtnDelayShow:function(){var $modal=$('#'+modalID);$modal.find('#bdt-modal-close-button').hide(0);$modal.on("shown",function(){$('#bdt-modal-close-button').hide(0).fadeIn(delayTime)}).on("hide",function(){$modal.find('#bdt-modal-close-button').hide(0)})},customTrigger:function(){var init=this;$(modalID).on('click',function(event){event.preventDefault();init.modalFire()})},scrollDetect:function(fn){let last_scroll_position=0;let ticking=!1;window.addEventListener("scroll",function(){let prev_scroll_position=last_scroll_position;last_scroll_position=window.scrollY;if(!ticking){window.requestAnimationFrame(function(){fn(last_scroll_position,prev_scroll_position);ticking=!1});ticking=!0}})},modalFireOnSelector:function(){var init=this;if(scrollDirection){$(window).on('scroll',function(){var hT=$(scrollSelector).offset().top,hH=$(scrollSelector).outerHeight(),wH=$(window).height(),wS=$(this).scrollTop();var firedId=widgetId+'-fired';if(wS>(hT+hH-wH)){if(!$(scrollSelector).hasClass(firedId)){init.modalFire()}
$(scrollSelector).addClass(firedId)}})}},onScroll:function(){var init=this;this.scrollDetect((scrollPos,previousScrollPos)=>{var wintop=$(window).scrollTop(),docheight=$(document).height(),winheight=$(window).height();var scrolltrigger=scrollOffset/100;var firedId=widgetId+'-fired';if((previousScrollPos>scrollPos)&&scrollDirection=='up'){if(!$('body').hasClass(firedId)){init.modalFire();$('body').addClass(firedId)}}else if((previousScrollPos<scrollPos)&&scrollDirection=='down'&&previousScrollPos!==0){if((wintop/(docheight-winheight))>scrolltrigger){if(!$('body').hasClass(firedId)){init.modalFire();$('body').addClass(firedId)}}}else if((previousScrollPos<scrollPos)&&scrollDirection=='selector'&&previousScrollPos!==0){init.modalFireOnSelector()}})},exitPopup:function(){var init=this;document.addEventListener('mouseleave',function(event){if(event.clientY<=0||event.clientX<=0||(event.clientX>=window.innerWidth||event.clientY>=window.innerHeight)){if(!editMode){init.modalFire()}}})},resetTimer:function(){clearTimeout(inactiveTime);inactiveTime=setTimeout(this.modalFire,splashInactivity)},splashInactivity:function(){window.onload=this.resetTimer();window.onmousemove=this.resetTimer();window.onmousedown=this.resetTimer();window.ontouchstart=this.resetTimer();window.onclick=this.resetTimer();window.onkeydown=this.resetTimer();window.addEventListener('scroll',this.resetTimer(),!0)},splashTiming:function(){var init=this;setTimeout(function(){init.modalFire()},splashDelay)},splashInit:function(){if(!splashInactivity){this.splashTiming();return}
this.splashInactivity()},default:function(){$(modalID).on('click',function(event){event.preventDefault();this.modalFire()})},init:function(){var init=this;if(layout=='default'){init.default()}
if(layout=='splash'){init.splashInit()}
if(layout=='exit'){init.exitPopup()}
if(layout=='on_scroll'){init.onScroll()}
if(layout=='custom'){init.customTrigger()}
if(closeBtnDelayShow){init.closeBtnDelayShow()}}};modal.init();if($settings!==undefined&&editMode===!1&&$settings.custom_section!=!1){$($settings.modal_id).addClass('elementor elementor-'+$settings.pageID)
var $modalContent=$($settings.custom_section);var $modalBody=$($settings.modal_id).find('.bdt-modal-body');$($modalContent).appendTo($modalBody)}})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-modal.default',widgetModal)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetMailChimp=function($scope,$){var $mailChimp=$scope.find('.bdt-mailchimp');if(!$mailChimp.length){return}
var langStr=window.ElementPackConfig.mailchimp;$mailChimp.submit(function(){var mailchimpform=$(this);bdtUIkit.notification({message:'<span bdt-spinner></span> '+langStr.subscribing,timeout:!1,status:'primary'});$.ajax({url:mailchimpform.attr('action'),type:'POST',data:mailchimpform.serialize(),success:function(data){bdtUIkit.notification.closeAll();bdtUIkit.notification({message:data,status:'success'})}});return!1});return!1};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-mailchimp.default',widgetMailChimp)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetMarker=function($scope,$){var $marker=$scope.find('.bdt-marker-wrapper');if(!$marker.length){return}
var $tooltip=$marker.find('> .bdt-tippy-tooltip'),widgetID=$scope.data('id');$tooltip.each(function(index){tippy(this,{allowHTML:!0,theme:'bdt-tippy-'+widgetID,interactive:!0,})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-marker.default',widgetMarker)})}(jQuery,window.elementorFrontend));(function($){"use strict";$.epNewsTickerOld=function(element,options){var defaults={effect:'fade',direction:'ltr',autoPlay:!1,interval:4000,scrollSpeed:2,pauseOnHover:!1,position:'auto',zIndex:99999}
var ticker=this;ticker.settings={};ticker._element=$(element);ticker._label=ticker._element.children(".bdt-news-ticker-label"),ticker._news=ticker._element.children(".bdt-news-ticker-content"),ticker._ul=ticker._news.children("ul"),ticker._li=ticker._ul.children("li"),ticker._controls=ticker._element.children(".bdt-news-ticker-controls"),ticker._prev=ticker._controls.find(".bdt-news-ticker-prev").parent(),ticker._action=ticker._controls.find(".bdt-news-ticker-action").parent(),ticker._next=ticker._controls.find(".bdt-news-ticker-next").parent();ticker._pause=!1;ticker._controlsIsActive=!0;ticker._totalNews=ticker._ul.children("li").length;ticker._activeNews=0;ticker._interval=!1;ticker._frameId=null;var setContainerWidth=function(){if(ticker._label.length>0){if(ticker.settings.direction=='rtl')
ticker._news.css({"right":ticker._label.outerWidth()});else ticker._news.css({"left":ticker._label.outerWidth()})}
if(ticker._controls.length>0){var controlsWidth=ticker._controls.outerWidth();if(ticker.settings.direction=='rtl')
ticker._news.css({"left":controlsWidth});else ticker._news.css({"right":controlsWidth})}
if(ticker.settings.effect==='scroll'){var totalW=0;ticker._li.each(function(){totalW+=$(this).outerWidth()});totalW+=50;ticker._ul.css({'width':totalW})}}
var startScrollAnimationLTR=function(){var _ulPosition=parseFloat(ticker._ul.css('marginLeft'));_ulPosition-=ticker.settings.scrollSpeed/2;ticker._ul.css({'marginLeft':_ulPosition});if(_ulPosition<=-ticker._ul.find('li:first-child').outerWidth()){ticker._ul.find('li:first-child').insertAfter(ticker._ul.find('li:last-child'));ticker._ul.css({'marginLeft':0})}
if(ticker._pause===!1){ticker._frameId=requestAnimationFrame(startScrollAnimationLTR);(window.requestAnimationFrame&&ticker._frameId)||setTimeout(startScrollAnimationLTR,16)}}
var startScrollAnimationRTL=function(){var _ulPosition=parseFloat(ticker._ul.css('marginRight'));_ulPosition-=ticker.settings.scrollSpeed/2;ticker._ul.css({'marginRight':_ulPosition});if(_ulPosition<=-ticker._ul.find('li:first-child').outerWidth()){ticker._ul.find('li:first-child').insertAfter(ticker._ul.find('li:last-child'));ticker._ul.css({'marginRight':0})}
if(ticker._pause===!1)
ticker._frameId=requestAnimationFrame(startScrollAnimationRTL);(window.requestAnimationFrame&&ticker._frameId)||setTimeout(startScrollAnimationRTL,16)}
var scrollPlaying=function(){if(ticker.settings.direction==='rtl'){if(ticker._ul.width()>ticker._news.width())
startScrollAnimationRTL();else ticker._ul.css({'marginRight':0})}else if(ticker._ul.width()>ticker._news.width())
startScrollAnimationLTR();else ticker._ul.css({'marginLeft':0})}
var scrollGoNextLTR=function(){ticker._ul.stop().animate({marginLeft:-ticker._ul.find('li:first-child').outerWidth()},300,function(){ticker._ul.find('li:first-child').insertAfter(ticker._ul.find('li:last-child'));ticker._ul.css({'marginLeft':0});ticker._controlsIsActive=!0})}
var scrollGoNextRTL=function(){ticker._ul.stop().animate({marginRight:-ticker._ul.find('li:first-child').outerWidth()},300,function(){ticker._ul.find('li:first-child').insertAfter(ticker._ul.find('li:last-child'));ticker._ul.css({'marginRight':0});ticker._controlsIsActive=!0})}
var scrollGoPrevLTR=function(){var _ulPosition=parseInt(ticker._ul.css('marginLeft'),10);if(_ulPosition>=0){ticker._ul.css({'margin-left':-ticker._ul.find('li:last-child').outerWidth()});ticker._ul.find('li:last-child').insertBefore(ticker._ul.find('li:first-child'))}
ticker._ul.stop().animate({marginLeft:0},300,function(){ticker._controlsIsActive=!0})}
var scrollGoPrevRTL=function(){var _ulPosition=parseInt(ticker._ul.css('marginRight'),10);if(_ulPosition>=0){ticker._ul.css({'margin-right':-ticker._ul.find('li:last-child').outerWidth()});ticker._ul.find('li:last-child').insertBefore(ticker._ul.find('li:first-child'))}
ticker._ul.stop().animate({marginRight:0},300,function(){ticker._controlsIsActive=!0})}
var scrollNext=function(){if(ticker.settings.direction==='rtl')
scrollGoNextRTL();else scrollGoNextLTR()}
var scrollPrev=function(){if(ticker.settings.direction==='rtl')
scrollGoPrevRTL();else scrollGoPrevLTR()}
var effectTypography=function(){ticker._ul.find('li').hide();ticker._ul.find('li').eq(ticker._activeNews).width(30).show();ticker._ul.find('li').eq(ticker._activeNews).animate({width:'100%',opacity:1},1500)}
var effectFade=function(){ticker._ul.find('li').hide();ticker._ul.find('li').eq(ticker._activeNews).fadeIn()}
var effectSlideDown=function(){if(ticker._totalNews<=1){ticker._ul.find('li').animate({'top':30,'opacity':0},300,function(){$(this).css({'top':-30,'opacity':0,'display':'block'})
$(this).animate({'top':0,'opacity':1},300)})}else{ticker._ul.find('li:visible').animate({'top':30,'opacity':0},300,function(){$(this).hide()});ticker._ul.find('li').eq(ticker._activeNews).css({'top':-30,'opacity':0}).show();ticker._ul.find('li').eq(ticker._activeNews).animate({'top':0,'opacity':1},300)}}
var effectSlideUp=function(){if(ticker._totalNews<=1){ticker._ul.find('li').animate({'top':-30,'opacity':0},300,function(){$(this).css({'top':30,'opacity':0,'display':'block'})
$(this).animate({'top':0,'opacity':1},300)})}else{ticker._ul.find('li:visible').animate({'top':-30,'opacity':0},300,function(){$(this).hide()});ticker._ul.find('li').eq(ticker._activeNews).css({'top':30,'opacity':0}).show();ticker._ul.find('li').eq(ticker._activeNews).animate({'top':0,'opacity':1},300)}}
var effectSlideRight=function(){if(ticker._totalNews<=1){ticker._ul.find('li').animate({'left':'50%','opacity':0},300,function(){$(this).css({'left':-50,'opacity':0,'display':'block'})
$(this).animate({'left':0,'opacity':1},300)})}else{ticker._ul.find('li:visible').animate({'left':'50%','opacity':0},300,function(){$(this).hide()});ticker._ul.find('li').eq(ticker._activeNews).css({'left':-50,'opacity':0}).show();ticker._ul.find('li').eq(ticker._activeNews).animate({'left':0,'opacity':1},300)}}
var effectSlideLeft=function(){if(ticker._totalNews<=1){ticker._ul.find('li').animate({'left':'-50%','opacity':0},300,function(){$(this).css({'left':'50%','opacity':0,'display':'block'})
$(this).animate({'left':0,'opacity':1},300)})}else{ticker._ul.find('li:visible').animate({'left':'-50%','opacity':0},300,function(){$(this).hide()});ticker._ul.find('li').eq(ticker._activeNews).css({'left':'50%','opacity':0}).show();ticker._ul.find('li').eq(ticker._activeNews).animate({'left':0,'opacity':1},300)}}
var showThis=function(){ticker._controlsIsActive=!0;switch(ticker.settings.effect){case 'typography':effectTypography();break;case 'fade':effectFade();break;case 'slide-down':effectSlideDown();break;case 'slide-up':effectSlideUp();break;case 'slide-right':effectSlideRight();break;case 'slide-left':effectSlideLeft();break;default:ticker._ul.find('li').hide();ticker._ul.find('li').eq(ticker._activeNews).show()}}
var nextHandler=function(){switch(ticker.settings.effect){case 'scroll':scrollNext();break;default:ticker._activeNews++;if(ticker._activeNews>=ticker._totalNews)
ticker._activeNews=0;showThis()}}
var prevHandler=function(){switch(ticker.settings.effect){case 'scroll':scrollPrev();break;default:ticker._activeNews--;if(ticker._activeNews<0)
ticker._activeNews=ticker._totalNews-1;showThis()}}
var playHandler=function(){ticker._pause=!1;if(ticker.settings.autoPlay){switch(ticker.settings.effect){case 'scroll':scrollPlaying();break;default:ticker.pause();ticker._interval=setInterval(function(){ticker.next()},ticker.settings.interval)}}}
var resizeEvent=function(){if(ticker._element.width()<480){ticker._label.hide();if(ticker.settings.direction=='rtl')
ticker._news.css({"right":0});else ticker._news.css({"left":0})}else{ticker._label.show();if(ticker.settings.direction=='rtl')
ticker._news.css({"right":ticker._label.outerWidth()});else ticker._news.css({"left":ticker._label.outerWidth()})}}
ticker.init=function(){ticker.settings=$.extend({},defaults,options);ticker._element.addClass('bdt-effect-'+ticker.settings.effect+' bdt-direction-'+ticker.settings.direction);setContainerWidth();if(ticker.settings.effect!='scroll')
showThis();playHandler();if(!ticker.settings.autoPlay)
ticker._action.find('span').removeClass('bdt-news-ticker-pause').addClass('bdt-news-ticker-play');else ticker._action.find('span').removeClass('bdt-news-ticker-play').addClass('bdt-news-ticker-pause');ticker._element.on('mouseleave',function(e){var activePosition=$(document.elementFromPoint(e.clientX,e.clientY)).parents('.bdt-breaking-news')[0];if($(this)[0]===activePosition){return}
if(ticker.settings.pauseOnHover===!0){if(ticker.settings.autoPlay===!0)
ticker.play()}else{if(ticker.settings.autoPlay===!0&&ticker._pause===!0)
ticker.play()}});ticker._element.on('mouseenter',function(){if(ticker.settings.pauseOnHover===!0)
ticker.pause()});ticker._next.on('click',function(){if(ticker._controlsIsActive){ticker._controlsIsActive=!1;ticker.pause();ticker.next()}});ticker._prev.on('click',function(){if(ticker._controlsIsActive){ticker._controlsIsActive=!1;ticker.pause();ticker.prev()}});ticker._action.on('click',function(){if(ticker._controlsIsActive){if(ticker._action.find('span').hasClass('bdt-news-ticker-pause')){ticker._action.find('span').removeClass('bdt-news-ticker-pause').addClass('bdt-news-ticker-play');ticker.stop()}else{ticker.settings.autoPlay=!0;ticker._action.find('span').removeClass('bdt-news-ticker-play').addClass('bdt-news-ticker-pause')}}});resizeEvent();$(window).on('resize',function(){resizeEvent();ticker.pause();ticker.play()})}
ticker.pause=function(){ticker._pause=!0;clearInterval(ticker._interval);cancelAnimationFrame(ticker._frameId)}
ticker.stop=function(){ticker._pause=!0;ticker.settings.autoPlay=!1}
ticker.play=function(){playHandler()}
ticker.next=function(){nextHandler()}
ticker.prev=function(){prevHandler()}
ticker.init()}
$.fn.epNewsTickerOld=function(options){return this.each(function(){if(undefined==$(this).data('epNewsTickerOld')){var ticker=new $.epNewsTickerOld(this,options);$(this).data('epNewsTickerOld',ticker)}})}})(jQuery);(function($,elementor){'use strict';var widgetNewsTicker=function($scope,$){var $newsTicker=$scope.find('.bdt-news-ticker'),$settings=$newsTicker.data('settings');if(!$newsTicker.length){return}
$($newsTicker).epNewsTickerOld($settings)};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-news-ticker.default',widgetNewsTicker)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetOffcanvas=function($scope,$){var $offcanvas=$scope.find('.bdt-offcanvas');if(!$offcanvas.length){return}
$.each($offcanvas,function(index,val){var $this=$(this),$settings=$this.data('settings'),offcanvasID=$settings.id;if($(offcanvasID).length){$(offcanvasID).on('click',function(event){event.preventDefault();bdtUIkit.offcanvas($this).show()})}})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-offcanvas.default',widgetOffcanvas)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetOpenStreetMap=function($scope,$){var $openStreetMap=$scope.find('.bdt-open-street-map'),settings=$openStreetMap.data('settings'),markers=$openStreetMap.data('map_markers'),tileSource='';if(!$openStreetMap.length){return}
var avdOSMap=L.map($openStreetMap[0],{zoomControl:settings.zoomControl,scrollWheelZoom:!1}).setView([settings.lat,settings.lng],settings.zoom);if(settings.mapboxToken!==''){tileSource='https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token='+settings.mapboxToken;L.tileLayer(tileSource,{maxZoom:18,attribution:'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery &copy; <a href="https://www.mapbox.com/">Mapbox</a>',id:'mapbox/streets-v11',tileSize:512,zoomOffset:-1}).addTo(avdOSMap)}else{L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{maxZoom:18,attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(avdOSMap)}
for(var i in markers){if((markers[i].iconUrl)!=''&&typeof(markers[i].iconUrl)!=='undefined'){var LeafIcon=L.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[2,-41]}});var greenIcon=new LeafIcon({iconUrl:markers[i].iconUrl});L.marker([markers[i].lat,markers[i].lng],{icon:greenIcon}).bindPopup(markers[i].infoWindow).addTo(avdOSMap)}else{if((markers[i].lat)!=''&&typeof(markers[i].lat)!=='undefined'){L.marker([markers[i].lat,markers[i].lng]).bindPopup(markers[i].infoWindow).addTo(avdOSMap)}}}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-open-street-map.default',widgetOpenStreetMap)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetPriceTable=function($scope,$){var $priceTable=$scope.find('.bdt-price-table'),$featuresList=$priceTable.find('.bdt-price-table-feature-inner');if(!$priceTable.length){return}
var $tooltip=$featuresList.find('> .bdt-tippy-tooltip'),widgetID=$scope.data('id');$tooltip.each(function(index){tippy(this,{allowHTML:!0,theme:'bdt-tippy-'+widgetID})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-price-table.default',widgetPriceTable);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-price-table.bdt-partait',widgetPriceTable)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetPanelSlider=function($scope,$){var $slider=$scope.find('.bdt-panel-slider');if(!$slider.length){return}
var $sliderContainer=$slider.find('.swiper-carousel'),$settings=$slider.data('settings'),$widgetSettings=$slider.data('widget-settings');const Swiper=elementorFrontend.utils.swiper;initSwiper();async function initSwiper(){var swiper=await new Swiper($sliderContainer,$settings);if($settings.pauseOnHover){$($sliderContainer).hover(function(){(this).swiper.autoplay.stop()},function(){(this).swiper.autoplay.start()})}};if($widgetSettings.mouseInteractivity==!0){setTimeout(()=>{var data=$($widgetSettings.id).find('.bdt-panel-slide-item');$(data).each((index,element)=>{var scene=$(element).get(0);var parallaxInstance=new Parallax(scene,{selector:'.bdt-panel-slide-thumb',hoverOnly:!0,pointerEvents:!0})})},2000)}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-panel-slider.default',widgetPanelSlider);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-panel-slider.bdt-middle',widgetPanelSlider);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-panel-slider.always-visible',widgetPanelSlider)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetProgressPie=function($scope,$){var $progressPie=$scope.find('.bdt-progress-pie');if(!$progressPie.length){return}
epObserveTarget($scope[0],function(){var $this=$($progressPie);$this.asPieProgress({namespace:'pieProgress',classes:{svg:'bdt-progress-pie-svg',number:'bdt-progress-pie-number',content:'bdt-progress-pie-content'}});$this.asPieProgress('start')},{root:null,rootMargin:'0px',threshold:1})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-progress-pie.default',widgetProgressPie)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetPostGallery=function($scope,$){var $postGalleryWrapper=$scope.find('.bdt-post-gallery-wrapper'),$bdtPostGallery=$scope.find('.bdt-post-gallery'),$settings=$bdtPostGallery.data('settings'),$postFilter=$postGalleryWrapper.find('.bdt-ep-grid-filters-wrapper');if(!$postGalleryWrapper.length){return}
if($settings.tiltShow==!0){var elements=document.querySelectorAll($settings.id+" [data-tilt]");VanillaTilt.init(elements)}
if(!$postFilter.length){return}
var $settings=$postFilter.data('hash-settings');var activeHash=$settings.activeHash;var hashTopOffset=$settings.hashTopOffset;var hashScrollspyTime=$settings.hashScrollspyTime;function hashHandler($postFilter,hashScrollspyTime,hashTopOffset){if(window.location.hash){if($($postFilter).find('[data-bdt-filter-control="[data-filter*=\''+window.location.hash.substring(1)+'\']"]').length){var hashTarget=$('[data-bdt-filter-control="[data-filter*=\''+window.location.hash.substring(1)+'\']"]').closest($postFilter).attr('id');$('html, body').animate({easing:'slow',scrollTop:$('#'+hashTarget).offset().top-hashTopOffset},hashScrollspyTime,function(){}).promise().then(function(){bdtUIkit.filter($postGalleryWrapper,{target:$settings.id,selActive:document.querySelector('[data-bdt-filter-control="[data-filter*=\''+window.location.hash.substring(1)+'\']"]'),})})}}}
if($settings.activeHash==!0){$(window).on('load',function(){hashHandler($postFilter,hashScrollspyTime=1500,hashTopOffset)});$($postFilter).find('.bdt-ep-grid-filter').off('click').on('click',function(event){window.location.hash=$(this).find('a').text().replace(/\s+/g,'-').toLowerCase()})}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-post-gallery.default',widgetPostGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-post-gallery.bdt-abetis',widgetPostGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-post-gallery.bdt-fedara',widgetPostGallery);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-post-gallery.bdt-trosia',widgetPostGallery)})}(jQuery,window.elementorFrontend));(function($,elementor){"use strict";$(window).on("elementor/frontend/init",function(){var ModuleHandler=elementorModules.frontend.handlers.Base,PostGrid;PostGrid=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{}},onElementChange:debounce(function(prop){if(prop.indexOf("post_grid")!==-1){this.run()}},400),settings:function(key){return this.getElementSettings("post_grid_"+key)},run:function(){var options=this.getDefaultSettings();var content=this.settings("ajax_loadmore");var $container=this.$element.find(".bdt-post-grid");if(!$container.length){return}
if(content===undefined){return}
var settingsLoadmore=this.settings("show_loadmore");var settingsInfiniteScroll=this.settings("show_infinite_scroll");var loadButtonContainer=this.$element.find(".bdt-loadmore-container");var grid=$container.find(".bdt-grid");var loadButton=loadButtonContainer.find(".bdt-loadmore");var loading=!1;var settings=$container.data("settings");var readMore=$container.data("settings-button");var currentItemCount=settings.posts_per_page;var loadMorePosts=function(){var dataSettings={action:"ep_loadmore_posts",settings:settings,readMore:readMore,per_page:settings.ajax_item_load,offset:currentItemCount,paged:settings.paged,nonce:settings.nonce,};jQuery.ajax({url:window.ElementPackConfig.ajaxurl,type:"post",data:dataSettings,success:function(response){$(grid).append(response.markup);currentItemCount+=settings.ajax_item_load;settings.paged+=1;loading=!1;if(settingsLoadmore==="yes"){loadButton.html("Load More")}
if($(response.markup).length<settings.ajax_item_load){loadButton.hide();loadButtonContainer.hide()}},})};if(settingsLoadmore==="yes"){$(loadButton).on("click",function(){if(!loading){loading=!0;loadButton.html("loading...");loadMorePosts()}})}
if(settingsInfiniteScroll==="yes"){$(window).scroll(function(){if($(window).scrollTop()==$(document).height()-$(window).height()){$(loadButton).css("display","block");loadMorePosts()}else{return}})}},});elementorFrontend.hooks.addAction("frontend/element_ready/bdt-post-grid.default",function($scope){elementorFrontend.elementsHandler.addHandler(PostGrid,{$element:$scope,})})})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';var widgetPostGridTab=function($scope,$){var $postGridTab=$scope.find('.bdt-post-grid-tab'),gridTab=$postGridTab.find('.gridtab');if(!$postGridTab.length){return}
$(gridTab).gridtab($postGridTab.data('settings'))};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-post-grid-tab.default',widgetPostGridTab)})}(jQuery,window.elementorFrontend));(function($){var categoryCache={};$(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-post-list.default",function(scope){scope.find(".bdt-post-list-wrap").each(function(){var element=$(this)[0];if(element){var $settings_showHide=$(this).data("show-hide");var tabs=$(this).find(".bdt-option");var tabs_header=$(this).find(".bdt-post-list-header");var item_wrapper=$(this).find(".bdt-post-list");var loader=$(this).find("#bdt-loading-image");var settings=item_wrapper.data("settings");function loadCategoryData(slug){$(loader).show();if(categoryCache[slug]){item_wrapper.html(categoryCache[slug]);console.log("Using cached data for category:",slug);$(loader).hide()}else{$.ajax({url:ElementPackConfig.ajaxurl,data:{action:"bdt_post_list",settings:settings,post_type:settings["post-type"],showHide:$settings_showHide,category:slug,},type:"POST",dataType:"HTML",beforeSend:function(){$(loader).show()},success:function(response){categoryCache[slug]=response;item_wrapper.html(response)},error:function(response){console.log(response)},complete:function(){$(loader).hide()},})}}
tabs.on("click",function(e){var slug=$(this).data("slug");tabs_header.find(".bdt-filter-list").removeClass("bdt-active");$(this).parent().addClass("bdt-active");e.preventDefault();loadCategoryData(slug)})}})})})})(jQuery);(function($,elementor){'use strict';var widgetQRCode=function($scope,$){var $qrcode=$scope.find('.bdt-qrcode'),image=$scope.find('.bdt-qrcode-image');if(!$qrcode.length){return}
var settings=$qrcode.data('settings');settings.image=image[0];$($qrcode).qrcode(settings)};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-qrcode.default',widgetQRCode)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetSlider=function($scope,$){var $slider=$scope.find('.bdt-slider');if(!$slider.length){return}
var $sliderContainer=$slider.find('.swiper-carousel'),$settings=$slider.data('settings');const Swiper=elementorFrontend.utils.swiper;initSwiper();async function initSwiper(){var swiper=await new Swiper($sliderContainer,$settings);if($settings.pauseOnHover){$($sliderContainer).hover(function(){(this).swiper.autoplay.stop()},function(){(this).swiper.autoplay.start()})}}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-slider.default',widgetSlider);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-acf-slider.default',widgetSlider)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetSlideshow=function($scope,$){var $slideshow=$scope.find('.bdt-slideshow'),$thumbNav=$($slideshow).find('.bdt-thumbnav-wrapper > .bdt-thumbnav-scroller');if(!$slideshow.length){return}
$($thumbNav).mThumbnailScroller({axis:'yx',type:'hover-precise'})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-slideshow.default',widgetSlideshow)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetSlinkyVerticalMenu=function($scope,$){var $vrMenu=$scope.find('.bdt-slinky-vertical-menu');var $settings=$vrMenu.attr('id');if(!$vrMenu.length){return}
const slinky=$('#'+$settings).slinky()};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-slinky-vertical-menu.default',widgetSlinkyVerticalMenu)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetScrollNav=function($scope,$){var $scrollnav=$scope.find('.bdt-dotnav > li');if(!$scrollnav.length){return}
var $tooltip=$scrollnav.find('> .bdt-tippy-tooltip'),widgetID=$scope.data('id');$tooltip.each(function(index){tippy(this,{allowHTML:!0,theme:'bdt-tippy-'+widgetID})})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-scrollnav.default',widgetScrollNav)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var serachTimer;var widgetAjaxSearch=function($scope,$){var $searchContainer=$scope.find('.bdt-search-container'),$searchWidget=$scope.find('.bdt-ajax-search');$($scope).find('.bdt-navbar-dropdown-close').on('click',function(){bdtUIkit.drop($scope.find('.bdt-navbar-dropdown')).hide()});let $search;if(!$searchWidget.length){return}
var $resultHolder=$($searchWidget).find('.bdt-search-result'),$settings=$($searchWidget).data('settings'),$connectSettings=$($searchContainer).data('settings'),$target=$($searchWidget).attr('anchor-target');if('yes'===$target){$target='_blank'}else{$target='_self'}
clearTimeout(serachTimer);if($connectSettings&&$connectSettings.element_connect){$($connectSettings.element_selector).hide()}
$($searchWidget).on('keyup keypress',function(e){var keyCode=e.keyCode||e.which;if(keyCode===13){e.preventDefault();return!1}});$searchWidget.find('.bdt-search-input').keyup(function(){$search=$(this).val();serachTimer=setTimeout(function(){$($searchWidget).addClass('bdt-search-loading');jQuery.ajax({url:window.ElementPackConfig.ajaxurl,type:'post',data:{action:'element_pack_search',s:$search,settings:$settings,},success:function(response){var response=$.parseJSON(response);if(response.results.length>0){if($search.length>=3){var output=`<div class="bdt-search-result-inner">
<h3 class="bdt-search-result-header">${window.ElementPackConfig.search.search_result}<i class="ep-icon-close bdt-search-result-close-btn"></i></h3>
<ul class="bdt-list bdt-list-divider">`;for(let i=0;i<response.results.length;i++){const element=response.results[i];output+=`<li class="bdt-search-item" data-url="${element.url}">
<a href="${element.url}" target="${$target}">
<div class="bdt-search-title">${element.title}</div>
<div class="bdt-search-text">${element.text}</div>
</a>
</li>`}
output+=`</ul><a class="bdt-search-more">${window.ElementPackConfig.search.more_result}</a></div>`;$resultHolder.html(output);$resultHolder.show();$(".bdt-search-result-close-btn").on("click",function(e){$(".bdt-search-result").hide();$(".bdt-search-input").val("")});$($searchWidget).removeClass("bdt-search-loading");$(".bdt-search-more").on("click",function(event){event.preventDefault();$($searchWidget).submit()})}else{$resultHolder.hide()}}else{if($search.length>3){var not_found=`<div class="bdt-search-result-inner">
<h3 class="bdt-search-result-header">${window.ElementPackConfig.search.search_result}<i class="ep-icon-close bdt-search-result-close-btn"></i></h3>
<div class="bdt-search-text">${$search} ${window.ElementPackConfig.search.not_found}</div>
</div>`;$resultHolder.html(not_found);$resultHolder.show();$(".bdt-search-result-close-btn").on("click",function(e){$(".bdt-search-result").hide();$(".bdt-search-input").val("")});$($searchWidget).removeClass("bdt-search-loading");if($connectSettings&&$connectSettings.element_connect){$resultHolder.hide();setTimeout(function(){$($connectSettings.element_selector).show()},1500)}}else{$resultHolder.hide();$($searchWidget).removeClass("bdt-search-loading")}}}})},450)})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-search.default',widgetAjaxSearch)})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';var widgetScrollButton=function($scope,$){var $scrollButton=$scope.find('.bdt-scroll-button'),$selector=$scrollButton.data('selector'),$settings=$scrollButton.data('settings');if(!$scrollButton.length){return}
if($settings.HideOnBeforeScrolling==!0){$(window).scroll(function(){if($(window).scrollTop()>300){$scrollButton.css("opacity","1")}else{$scrollButton.css("opacity","0")}})}
$($scrollButton).on('click',function(event){event.preventDefault();bdtUIkit.scroll($scrollButton,$settings).scrollTo($($selector))})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-scroll-button.default',widgetScrollButton)})}(jQuery,window.elementorFrontend));(function($,elementor){$(window).on("elementor/frontend/init",function(){let ModuleHandler=elementorModules.frontend.handlers.Base,Stacker;Stacker=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{allowHTML:!0,}},settings:function(key){return this.getElementSettings("stacker_"+key)},sectionJoiner:function(){const widgetID=this.$element.data("id"),sectionId=[],sectionList=this.settings("section_list"),widgetContainer=".elementor-element-"+widgetID,widgetWrapper=widgetContainer+" .bdt-ep-stacker";sectionList.forEach((section)=>{sectionId.push("#"+section.stacker_section_id)});let haveIds=[];let elements;const topSection=document.querySelector(".elementor-top-section");const eConElements=document.getElementsByClassName("e-con");if(topSection){elements=document.querySelectorAll(".elementor-top-section")}
if(eConElements.length>0){elements=document.querySelectorAll(".elementor-element.e-con")}
elements.forEach((element)=>{var elementsWrapper=element.getAttribute("id");haveIds.push("#"+elementsWrapper)});function intersection(arr1,arr2){var temp=[];for(var i in arr1){var element=arr1[i];if(arr2.indexOf(element)>-1){temp.push(element)}}
return temp}
function multi_intersect(){var arrays=Array.prototype.slice.apply(arguments).slice(1);var temp=arguments[0];for(var i in arrays){temp=intersection(arrays[i],temp);if(temp==[]){break}}
return temp}
var ids=multi_intersect(haveIds,sectionId).toString();if(ids){var selectedIDs=document.querySelectorAll(ids);$(widgetWrapper).append(selectedIDs)}},StackerOpacity:function(){},StackerScript:function(){gsap.registerPlugin(ScrollTrigger);let cards;const widgetID=this.$element.data("id"),widgetContainer=".elementor-element-"+widgetID;let stickDistance=0;let opacityEnabled=this.settings("stacking_opacity")=='yes'?!0:!1;let stackingSpace=this.settings("stacking_space")?this.settings("stacking_space").size:40;let scrollerStart=this.settings("scroller_start")?this.settings("scroller_start").size+"%":"10%";cards=gsap.utils.toArray(widgetContainer+" .bdt-ep-stacker > .elementor-element");cards.forEach((card,i)=>{let lastCardST=ScrollTrigger.create({trigger:cards[cards.length-1],start:`top-=${0 * i} ${scrollerStart}`,});if(opacityEnabled){gsap.set(card,{opacity:0});gsap.from(card,{opacity:1,scrollTrigger:{trigger:card,scrub:!0,start:`top-=${stackingSpace * i} ${scrollerStart}`,end:()=>lastCardST.start+stickDistance,},ease:"none",})}
ScrollTrigger.create({trigger:card,start:`top-=${stackingSpace * i} ${scrollerStart}`,end:()=>lastCardST.start+stickDistance,endTrigger:cards[cards.length-1],pin:!0,pinSpacing:!1,ease:"none",toggleActions:"restart none none reverse",})})},run:function(){const widgetID=this.$element.data("id"),widgetContainer=".elementor-element-"+widgetID,widgetWrapper=widgetContainer+" .bdt-ep-stacker";var editMode=Boolean(elementorFrontend.isEditMode());if(editMode){$(widgetWrapper).append('<div class="bdt-alert-warning" bdt-alert><a class="bdt-alert-close" bdt-close></a><p>Stacker Widget Placed Here (Only Visible for Editor).</p></div>');return}
this.sectionJoiner();this.StackerScript()},});elementorFrontend.hooks.addAction("frontend/element_ready/bdt-stacker.default",function($scope){elementorFrontend.elementsHandler.addHandler(Stacker,{$element:$scope,})})})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';var sectionSwitcher=function($scope,$){var $switcher=$scope.find('.bdt-switchers'),$settings=$switcher.data('settings'),$activatorSettings=$switcher.data('activator'),$settingsLinkWidget=$switcher.data('bdt-link-widget'),editMode=Boolean(elementorFrontend.isEditMode());if($activatorSettings!==undefined){bdtUIkit.util.on($activatorSettings.switchA,"click",function(){bdtUIkit.switcher('#bdt-switcher-activator-'+$activatorSettings.id).show(0);bdtUIkit.switcher('#bdt-switcher-'+$activatorSettings.id).show(0)});bdtUIkit.util.on($activatorSettings.switchB,"click",function(){bdtUIkit.switcher('#bdt-switcher-activator-'+$activatorSettings.id).show(1);bdtUIkit.switcher('#bdt-switcher-'+$activatorSettings.id).show(1)})}
if($settings!==undefined&&editMode===!1){var $switchAContainer=$switcher.find('.bdt-switcher > div > div > .bdt-switcher-item-a'),$switchBContainer=$switcher.find('.bdt-switcher > div > div > .bdt-switcher-item-b'),$switcherContentA=$('.elementor').find('.elementor-element'+'#'+$settings['switch-a-content']),$switcherContentB=$('.elementor').find('.elementor-element'+'#'+$settings['switch-b-content']);if($settings.positionUnchanged!==!0){if($switchAContainer.length&&$switcherContentA.length){$($switcherContentA).appendTo($switchAContainer)}
if($switchBContainer.length&&$switcherContentB.length){$($switcherContentB).appendTo($switchBContainer)}}
if($settings.positionUnchanged==!0){$('#bdt-tabs-'+$settings.id).find('.bdt-switcher').remove();var $switcherContentAAA=$('#'+$settings['switch-a-content']);var $switcherContentBBB=$('#'+$settings['switch-b-content']);$('#'+$settings['switch-a-content']).parent().append(`<div id="bdt-switcher-${$settings.id}" class="bdt-switcher bdt-switcher-item-content" style="width:100%;"></div>`);$($switcherContentAAA).appendTo($('#bdt-switcher-'+$settings.id));$($switcherContentBBB).appendTo($('#bdt-switcher-'+$settings.id));var $activeA,$activeB='';if($settings.defaultActive=='a'){$activeA,$activeA='bdt-active'}else{$activeB='bdt-active'}
$('#'+$settings['switch-a-content']).wrapAll('<div class="bdt-switcher-item-content-inner '+$activeA+'"></div>');$('#'+$settings['switch-b-content']).wrapAll('<div class="bdt-switcher-item-content-inner '+$activeB+'"></div>')}}
if($settingsLinkWidget!==undefined&&editMode===!1){var $targetA=$($settingsLinkWidget.linkWidgetTargetA),$targetB=$($settingsLinkWidget.linkWidgetTargetB),$switcher='#bdt-switcher-'+$settingsLinkWidget.id;if($settingsLinkWidget.defaultActive=='a'){$targetA.css({'opacity':1,'display':'block'});$targetB.css({'opacity':0,'display':'none'})}else{$targetA.css({'opacity':0,'display':'none'});$targetB.css({'opacity':1,'display':'block'})}
$targetA.css({'grid-row-start':1,'grid-column-start':1});$targetB.css({'grid-row-start':1,'grid-column-start':1});$targetA.parent().css({'display':'grid'});bdtUIkit.util.on($switcher,'shown',function(e){var index=bdtUIkit.util.index(e.target)
if(index==0){$targetA.css({'opacity':1,'display':'block',});$targetB.css({'opacity':0,'display':'none',})}else{$targetB.css({'opacity':1,'display':'block',});$targetA.css({'opacity':0,'display':'none',})}})}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-switcher.default',sectionSwitcher)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetTabs=function($scope,$){const $tabsArea=$scope.find('.bdt-tabs-area'),$tabs=$tabsArea.find('.bdt-tabs'),$tab=$tabs.find('.bdt-tab'),editMode=Boolean(elementorFrontend.isEditMode());if(!$tabsArea.length){return}
const $settings=$tabs.data('settings'),animTime=$settings.hashScrollspyTime,customOffset=$settings.hashTopOffset,navStickyOffset=$settings.navStickyOffset;if(navStickyOffset=='undefined'){navStickyOffset=10}
$scope.find('.bdt-template-modal-iframe-edit-link').each(function(){var modal=$($(this).data('modal-element'));$(this).on('click',function(event){bdtUIkit.modal(modal).show()});modal.on('beforehide',function(){window.parent.location.reload()})});function hashHandler($tabs,$tab,animTime,customOffset){if(window.location.hash){if($($tabs).find('[data-title="'+window.location.hash.substring(1)+'"]').length){var hashTarget=$('[data-title="'+window.location.hash.substring(1)+'"]').closest($tabs).attr('id');$('html, body').animate({easing:'slow',scrollTop:$('#'+hashTarget).offset().top-customOffset},animTime,function(){}).promise().then(function(){bdtUIkit.tab($tab).show($('[data-title="'+window.location.hash.substring(1)+'"]').data('tab-index'))})}}}
if($settings.activeHash=='yes'&&$settings.status!='bdt-sticky-custom'){$(window).on('load',function(){hashHandler($tabs,$tab,animTime,customOffset)});$($tabs).find('.bdt-tabs-item-title').off('click').on('click',function(event){window.location.hash=($.trim($(this).attr('data-title')))});$(window).on('hashchange',function(e){hashHandler($tabs,$tab,animTime,customOffset)})}
function stickyHachChange($tabs,$tab,navStickyOffset){if($($tabs).find('[data-title="'+window.location.hash.substring(1)+'"]').length){var hashTarget=$('[data-title="'+window.location.hash.substring(1)+'"]').closest($tabs).attr('id');$('html, body').animate({easing:'slow',scrollTop:$('#'+hashTarget).offset().top-navStickyOffset},1000,function(){}).promise().then(function(){bdtUIkit.tab($tab).show($($tab).find('[data-title="'+window.location.hash.substring(1)+'"]').data('tab-index'))})}}
if($settings.status=='bdt-sticky-custom'){$($tabs).find('.bdt-tabs-item-title').bind().click('click',function(event){if($settings.activeHash=='yes'){window.location.hash=($.trim($(this).attr('data-title')))}else{$('html, body').animate({easing:'slow',scrollTop:$($tabs).offset().top-navStickyOffset},500,function(){})}});if($settings.activeHash=='yes'&&$settings.status=='bdt-sticky-custom'){$(window).on('load',function(){if(window.location.hash){stickyHachChange($tabs,$tab,navStickyOffset)}});$(window).on('hashchange',function(e){stickyHachChange($tabs,$tab,navStickyOffset)})}}
var $linkWidget=$settings.linkWidgetSettings,$activeItem=($settings.activeItem)-1;if($linkWidget!==undefined&&editMode===!1){$linkWidget.forEach(function(entry,index){if(index==0){$('#bdt-tab-content-'+$settings.linkWidgetId).parent().remove();$(entry).parent().wrapInner('<div class="bdt-switcher-wrapper" />');$(entry).parent().wrapInner('<div id="bdt-tab-content-'+$settings.linkWidgetId+'" class="bdt-switcher bdt-switcher-item-content" />');if($settings.activeItem==undefined){$(entry).addClass('bdt-active')}}
if($settings.activeItem!==undefined&&index==$activeItem){$(entry).addClass('bdt-active')}
$(entry).attr('data-content-id',"tab-"+(index+1))});$tab.find('a').on('click',function(){let index=$(this).data('tab-index');$('#bdt-tab-content-'+$settings.linkWidgetId+'>').removeClass('bdt-active');$('#bdt-tab-content-'+$settings.linkWidgetId+'>').eq(index).addClass('bdt-active')})}
if(typeof $settings.sectionBg!="undefined"){if(typeof $settings.sectionBgSelector=="undefined"){return}
var $id=(($settings.sectionBgSelector)+'-ep-dynamic').substring(1);if($(`#${$id}-wrapper`).length){$(`#${$id}-wrapper`).remove()}
var dynamicBG=`<div id="${$id}-wrapper"  style="position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; left: 0;" >`;$($settings.sectionBg).each(function(e){let newLine='<div class="bdt-hidden '+$id+' bdt-animation-'+$settings.sectionBgAnim+'" style=" width: 100%; height: 100%; transition: all .5s;">';newLine+='<img src="'+$settings.sectionBg[e]+'" style=" height: 100%; width: 100%; object-fit: cover;" >';newLine+='</div>';dynamicBG+=newLine});dynamicBG+=`</div>`;$($settings.sectionBgSelector).prepend(dynamicBG);var activeIndex=$tab.find('>.bdt-tabs-item.bdt-active').index();$(`.${$id}:eq('${activeIndex}')`).removeClass('bdt-hidden');$tabsArea.find('.bdt-tabs-item-title').on('click',function(){let $tabImg=$(this).data('tab-index');$('.'+$id+':eq('+$tabImg+')').siblings().addClass('bdt-hidden');$('.'+$id+':eq('+$tabImg+')').removeClass('bdt-hidden')})}
var $linkSection=$settings.linkSectionSettings;if($linkSection!==undefined&&editMode===!1){$linkSection.forEach(function(entry,index){let $tabContent=$('#bdt-tab-content-'+$settings.linkWidgetId),$section=$(entry);$tabContent.find('.bdt-tab-content-item'+':eq('+index+')').html($section)})}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-tabs.default',widgetTabs);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-acf-tabs.default',widgetTabs)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetTimeline=function($scope,$){var $timeline=$scope.find('.bdt-timeline-skin-olivier');if(!$timeline.length){return}
$($timeline).timeline({visibleItems:$timeline.data('visible_items'),})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-timeline.bdt-olivier',widgetTimeline)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetAdvancedCounter=function($scope,$){var $AdvancedCounter=$scope.find('.bdt-advanced-counter');if(!$AdvancedCounter.length){return}
epObserveTarget($scope[0],function(){var $settings=$($AdvancedCounter).data('settings');var options={startVal:$settings.countStart??0,numerals:$settings.language,decimalPlaces:$settings.decimalPlaces??0,duration:$settings.duration??0,useEasing:$settings.useEasing!==null,useGrouping:$settings.useGrouping!==null,separator:$settings.counterSeparator??'',decimal:$settings.decimalSymbol??'',prefix:$settings.counterPrefix??'',suffix:$settings.counterSuffix??'',};var demo=new CountUp($settings.id,$settings.countNumber??0,options);if(!demo.error){demo.start()}else{console.error(demo.error)}},{root:null,rootMargin:'0px',threshold:0.8})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-total-count.default',widgetAdvancedCounter)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetToggle=function($scope,$){var $toggleContainer=$scope.find('.bdt-show-hide-container');var $toggle=$toggleContainer.find('.bdt-show-hide');if(!$toggleContainer.length){return}
var $settings=$toggle.data('settings');var toggleId=$settings.id;var animTime=$settings.scrollspy_time;var scrollspy_top_offset=$settings.scrollspy_top_offset;var by_widget_selector_status=$settings.by_widget_selector_status;var toggle_initially_open=$settings.toggle_initially_open;var source_selector=$settings.source_selector;var widget_visibility=$settings.widget_visibility;var widget_visibility_tablet=$settings.widget_visibility_tablet;var widget_visibility_mobile=$settings.widget_visibility_mobile;var viewport_lg=$settings.viewport_lg;var viewport_md=$settings.viewport_md;var widget_visibility_filtered=widget_visibility;if($settings.widget_visibility=='undefined'||$settings.widget_visibility==null){widget_visibility_filtered=widget_visibility=0}
if($settings.widget_visibility_tablet=='undefined'||$settings.widget_visibility_tablet==null){widget_visibility_tablet=widget_visibility}
if($settings.widget_visibility_mobile=='undefined'||$settings.widget_visibility_mobile==null){widget_visibility_mobile=widget_visibility}
function widgetVsibleFiltered(){if((window.outerWidth)>(viewport_lg)){widget_visibility_filtered=widget_visibility}else if((window.outerWidth)>(viewport_md)){widget_visibility_filtered=widget_visibility_tablet}else{widget_visibility_filtered=widget_visibility_mobile}}
$(window).resize(function(){widgetVsibleFiltered()});function scrollspyHandler($toggle,toggleId,toggleBtn,animTime,scrollspy_top_offset){if($settings.status_scrollspy==='yes'&&by_widget_selector_status!=='yes'){if($($toggle).find('.bdt-show-hide-item')){if($settings.hash_location==='yes'){window.location.hash=($.trim(toggleId))}
var scrollspyWrapper=$('#bdt-show-hide-'+toggleId).find('.bdt-show-hide-item');$('html, body').animate({easing:'slow',scrollTop:$(scrollspyWrapper).offset().top-scrollspy_top_offset},animTime,function(){}).promise().then(function(){$(toggleBtn).siblings('.bdt-show-hide-content').slideToggle('slow',function(){$(toggleBtn).parent().toggleClass('bdt-open')})})}}else{if(by_widget_selector_status==='yes'){$(toggleBtn).parent().toggleClass('bdt-open');$(toggleBtn).siblings('.bdt-show-hide-content').slideToggle('slow',function(){})}else{$(toggleBtn).siblings('.bdt-show-hide-content').slideToggle('slow',function(){$(toggleBtn).parent().toggleClass('bdt-open')})}}}
$($toggle).find('.bdt-show-hide-title').off('click').on('click',function(event){var toggleBtn=$(this);scrollspyHandler($toggle,toggleId,toggleBtn,animTime,scrollspy_top_offset)});function hashHandler(){toggleId=window.location.hash.substring(1);var toggleBtn=$('#bdt-show-hide-'+toggleId).find('.bdt-show-hide-title');var scrollspyWrapper=$('#bdt-show-hide-'+toggleId).find('.bdt-show-hide-item');$('html, body').animate({easing:'slow',scrollTop:$(scrollspyWrapper).offset().top-scrollspy_top_offset},animTime,function(){}).promise().then(function(){$(toggleBtn).siblings('.bdt-show-hide-content').slideToggle('slow',function(){$(toggleBtn).parent().toggleClass('bdt-open')})})}
$(window).on('load',function(){if($($toggleContainer).find('#bdt-show-hide-'+window.location.hash.substring(1)).length!=0){if($settings.hash_location==='yes'){hashHandler()}}});function autoHeightAnimate(element,time){var curHeight=element.height(),autoHeight=element.css('height','auto').height();element.height(curHeight);element.stop().animate({height:autoHeight},time)}
function byWidgetHandler(){if($settings.status_scrollspy==='yes'){$('html, body').animate({easing:'slow',scrollTop:$(source_selector).offset().top-scrollspy_top_offset},animTime,function(){}).promise().then(function(){if($(source_selector).hasClass('bdt-fold-close')){$(source_selector).removeClass('bdt-fold-close toggle_initially_open').addClass('bdt-fold-open');autoHeightAnimate($(source_selector),500)}else{$(source_selector).css({'height':widget_visibility_filtered+'px'}).addClass('bdt-fold-close').removeClass('bdt-fold-open')}})}else{if($(source_selector).hasClass('bdt-fold-close')){$(source_selector).removeClass('bdt-fold-close toggle_initially_open').addClass('bdt-fold-open');autoHeightAnimate($(source_selector),500)}else{$(source_selector).css({'height':widget_visibility_filtered+'px','transition':'all 1s ease-in-out 0s'}).addClass('bdt-fold-close').removeClass('bdt-fold-open')}}}
if(by_widget_selector_status==='yes'){$($toggle).find('.bdt-show-hide-title').on('click',function(){byWidgetHandler()});if(toggle_initially_open==='yes'){$(source_selector).addClass('bdt-fold-toggle bdt-fold-open toggle_initially_open')}else{$(source_selector).addClass('bdt-fold-toggle bdt-fold-close toggle_initially_open')}
$(window).resize(function(){visibilityCalled()});visibilityCalled()}
function visibilityCalled(){if($(source_selector).hasClass('bdt-fold-close')){$(source_selector).css({'height':widget_visibility_filtered+'px'})}else{autoHeightAnimate($(source_selector),500)}}};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-toggle.default',widgetToggle)})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetTSProductViewer=function($scope,$){var $TSPV=$scope.find('.bdt-threesixty-product-viewer'),$settings=$TSPV.data('settings'),$container=$TSPV.find('> .bdt-tspv-container'),$fullScreenBtn=$TSPV.find('> .bdt-tspv-fb');if(!$TSPV.length){return}
if($settings.source_type==='remote'){$settings.source=SpriteSpin.sourceArray($settings.source,{frame:$settings.frame_limit,digits:$settings.image_digits})}
epObserveTarget($scope[0],function(){var $this=$($container);$this.spritespin($settings)});$($fullScreenBtn).click(function(e){e.preventDefault();$($container).spritespin('api').requestFullscreen()})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-threesixty-product-viewer.default',widgetTSProductViewer)})}(jQuery,window.elementorFrontend));(function($,elementor){"use strict";window.is_fb_loggedin=!1;window.is_google_loggedin=!1;var widgetUserLoginForm={loginFormSubmission:function(login_form){var redirect_url=login_form.find(".redirect_after_login").val();$.ajax({type:"POST",dataType:"json",url:element_pack_ajax_login_config.ajaxurl,data:login_form.serialize(),beforeSend:function(xhr){bdtUIkit.notification({message:"<div bdt-spinner></div> "+element_pack_ajax_login_config.loadingmessage,timeout:!1,})},success:function(data){var recaptcha_field=login_form.find(".element-pack-google-recaptcha");if(recaptcha_field.length>0){var recaptcha_id=recaptcha_field.attr("data-widgetid");grecaptcha.reset(recaptcha_id);grecaptcha.execute(recaptcha_id)}
if(data.loggedin==!0){bdtUIkit.notification.closeAll();bdtUIkit.notification({message:"<span bdt-icon='icon: check'></span> "+data.message,status:"primary",});document.location.href=redirect_url}else{bdtUIkit.notification.closeAll();bdtUIkit.notification({message:"<div class=\"bdt-flex\"><span bdt-icon='icon: warning'></span><span>"+data.message+"</span></div>",status:"warning",})}},error:function(data){bdtUIkit.notification.closeAll();bdtUIkit.notification({message:"<span bdt-icon='icon: warning'></span>"+element_pack_ajax_login_config.unknownerror,status:"warning",})},})},get_facebook_user_data:function(widget_wrapper){var redirect_url=widget_wrapper.find(".redirect_after_login").val();FB.api("/me",{fields:"id, name, first_name, last_name, email, link, gender, locale, picture",},function(response){var userID=FB.getAuthResponse()["userID"];var access_token=FB.getAuthResponse()["accessToken"];window.is_fb_loggedin=!0;var fb_data={id:response.id,name:response.name,first_name:response.first_name,last_name:response.last_name,email:response.email,link:response.link,};$.ajax({url:window.ElementPackConfig.ajaxurl,method:"post",data:{action:"element_pack_social_facebook_login",data:fb_data,method:"post",dataType:"json",userID:userID,security_string:access_token,lang:element_pack_ajax_login_config.language,},dataType:"json",beforeSend:function(xhr){bdtUIkit.notification({message:"<div bdt-spinner></div> "+element_pack_ajax_login_config.loadingmessage,timeout:!1,})},success:function(data){if(data.success===!0){if(undefined===redirect_url){location.reload()}else{window.location=redirect_url}}else{location.reload()}},complete:function(xhr,status){bdtUIkit.notification.closeAll()},})})},load_recaptcha:function(){var reCaptchaFields=$(".element-pack-google-recaptcha"),widgetID;if(reCaptchaFields.length>0){reCaptchaFields.each(function(){var self=$(this),attrWidget=self.attr("data-widgetid");if(typeof attrWidget!==typeof undefined&&attrWidget!==!1){return}else{widgetID=grecaptcha.render($(this).attr("id"),{sitekey:self.data("sitekey"),callback:function(response){if(response!==""){self.append(jQuery("<input>",{type:"hidden",value:response,class:"g-recaptcha-response",}))}},});self.attr("data-widgetid",widgetID)}})}},};window.onLoadElementPackLoginCaptcha=widgetUserLoginForm.load_recaptcha;var widgetUserLoginFormHandler=function($scope,$){var widget_wrapper=$scope.find(".bdt-user-login");var login_form=$scope.find("form.bdt-user-login-form");var recaptcha_field=$scope.find(".element-pack-google-recaptcha");var fb_button=widget_wrapper.find(".fb_btn_link");var google_button=widget_wrapper.find("#google_btn_link");var redirect_url=widget_wrapper.find(".redirect_after_login").val();if(login_form.length>0){login_form.on("submit",function(e){e.preventDefault();widgetUserLoginForm.loginFormSubmission(login_form)})}
if(elementorFrontend.isEditMode()&&undefined===recaptcha_field.attr("data-widgetid")){onLoadElementPackLoginCaptcha()}
if(recaptcha_field.length>0){grecaptcha.ready(function(){var recaptcha_id=recaptcha_field.attr("data-widgetid");grecaptcha.execute(recaptcha_id)})}
if(fb_button.length>0){fb_button.on("click",function(){if(!is_fb_loggedin){FB.login(function(response){if(response.authResponse){widgetUserLoginForm.get_facebook_user_data(widget_wrapper)}else{}},{scope:"email"})}})}
if(google_button.length>0){var client_id=google_button.data("clientid");gapi.load("auth2",function(){var auth2=gapi.auth2.init({client_id:client_id,cookiepolicy:"single_host_origin",});auth2.attachClickHandler("google_btn_link",{},function(googleUser){var profile=googleUser.getBasicProfile();var name=profile.getName();var email=profile.getEmail();if(window.is_google_loggedin){var id_token=googleUser.getAuthResponse().id_token;$.ajax({url:window.ElementPackConfig.ajaxurl,method:"post",data:{action:"element_pack_social_google_login",id_token:id_token,},dataType:"json",beforeSend:function(xhr){bdtUIkit.notification({message:"<div bdt-spinner></div> "+element_pack_ajax_login_config.loadingmessage,timeout:!1,})},success:function(data){if(data.success===!0){if(undefined===redirect_url){location.reload()}else{window.location=redirect_url}}},complete:function(xhr,status){bdtUIkit.notification.closeAll()},})}},function(error){})});google_button.on("click",function(){window.is_google_loggedin=!0})}};$(document).on("click",".bdt-user-login .bdt-toggle-pass-wrapper",function(){var input=$(this).prev("input");var icon=$(this).find("i");if("password"===input.attr("type")){icon.removeClass("ep-icon-eye-blocked").addClass("ep-icon-eye")}else{icon.removeClass("ep-icon-eye").addClass("ep-icon-eye-blocked")}});jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-user-login.default",widgetUserLoginFormHandler);elementorFrontend.hooks.addAction("frontend/element_ready/bdt-user-login.bdt-dropdown",widgetUserLoginFormHandler);elementorFrontend.hooks.addAction("frontend/element_ready/bdt-user-login.bdt-modal",widgetUserLoginFormHandler)})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';var widgetUserRegistrationForm={registraitonFormSubmit:function(_this,$scope){bdtUIkit.notification({message:'<div bdt-spinner></div>'+$(_this).find('.bdt_spinner_message').val(),timeout:!1});$(_this).find('button.bdt-button').attr("disabled",!0);var redirect_url=$(_this).find('.redirect_after_register').val();$.ajax({type:'POST',dataType:'json',url:element_pack_ajax_login_config.ajaxurl,data:{'action':'element_pack_ajax_register','first_name':$(_this).find('.first_name').val(),'last_name':$(_this).find('.last_name').val(),'email':$(_this).find('.user_email').val(),'password':$(_this).find('.user_password').val(),'is_password_required':$(_this).find('.is_password_required').val(),'g-recaptcha-response':$(_this).find('#g-recaptcha-response').val(),'widget_id':$scope.data('id'),'page_id':$(_this).find('.page_id').val(),'security':$(_this).find('#bdt-user-register-sc').val(),'lang':element_pack_ajax_login_config.language},success:function(data){var recaptcha_field=_this.find('.element-pack-google-recaptcha');if(recaptcha_field.length>0){var recaptcha_id=recaptcha_field.attr('data-widgetid');grecaptcha.reset(recaptcha_id);grecaptcha.execute(recaptcha_id)}
if(data.registered===!0){bdtUIkit.notification.closeAll();bdtUIkit.notification({message:'<div class="bdt-flex"><span bdt-icon=\'icon: info\'></span><span>'+data.message+'</span></div>',status:'primary'});if(redirect_url){document.location.href=redirect_url}}else{bdtUIkit.notification.closeAll();bdtUIkit.notification({message:'<div class="bdt-flex"><span bdt-icon=\'icon: warning\'></span><span>'+data.message+'</span></div>',status:'warning'})}
$(_this).find('button.bdt-button').attr("disabled",!1)},})},load_recaptcha:function(){var reCaptchaFields=$('.element-pack-google-recaptcha'),widgetID;if(reCaptchaFields.length>0){reCaptchaFields.each(function(){var self=$(this),attrWidget=self.attr('data-widgetid');if((typeof attrWidget!==typeof undefined&&attrWidget!==!1)){return}else{widgetID=grecaptcha.render($(this).attr('id'),{sitekey:self.data('sitekey'),callback:function(response){if(response!==''){self.append(jQuery('<input>',{type:'hidden',value:response,class:'g-recaptcha-response'}))}}});self.attr('data-widgetid',widgetID)}})}}}
window.onLoadElementPackRegisterCaptcha=widgetUserRegistrationForm.load_recaptcha;var widgetUserRegisterForm=function($scope,$){var register_form=$scope.find('.bdt-user-register-widget'),recaptcha_field=$scope.find('.element-pack-google-recaptcha'),$userRegister=$scope.find('.bdt-user-register');register_form.on('submit',function(e){e.preventDefault();widgetUserRegistrationForm.registraitonFormSubmit(register_form,$scope)});if(elementorFrontend.isEditMode()&&undefined===recaptcha_field.attr('data-widgetid')){onLoadElementPackRegisterCaptcha()}
if(recaptcha_field.length>0){grecaptcha.ready(function(){var recaptcha_id=recaptcha_field.attr('data-widgetid');grecaptcha.execute(recaptcha_id)})}
var $settings=$userRegister.data('settings');if(!$settings||typeof $settings.passStrength==="undefined"){return}
var percentage=0,$selector=$('#'+$settings.id),$progressBar=$('#'+$settings.id).find('.bdt-progress-bar');var passStrength={progress:function($value=0){if($value<=100){$($progressBar).css({'width':$value+'%'})}},formula:function(input,length){if(length<6){percentage=0;$($progressBar).css('background','#ff4d4d')}else if(length<8){percentage=10;$($progressBar).css('background','#ffff1a')}else if(input.match(/0|1|2|3|4|5|6|7|8|9/)==null&&input.match(/[A-Z]/)==null){percentage=40;$($progressBar).css('background','#ffc14d')}else{if(length<12){percentage=50;$($progressBar).css('background','#1aff1a')}else{percentage=60;$($progressBar).css('background','#1aff1a')}}
if((input.match(/[a-z]/)!=null)){percentage+=10}
if((input.match(/[A-Z]/)!=null)){percentage+=10}
if((input.match(/0|1|2|3|4|5|6|7|8|9/)!=null)){percentage+=10}
if((input.match(/\W/)!=null)&&(input.match(/\D/)!=null)){percentage+=10}
return percentage},forceStrongPass:function(result){if(result>=70){$($selector).find('.elementor-field-type-submit .bdt-button').prop('disabled',!1)}else{$($selector).find('.elementor-field-type-submit .bdt-button').prop('disabled',!0)}},init:function(){$scope.find('.user_password').keyup(function(){var input=$(this).val(),length=input.length;let result=passStrength.formula(input,length);passStrength.progress(result);if(typeof $settings.forceStrongPass!=='undefined'){passStrength.forceStrongPass(result)}});if(typeof $settings.forceStrongPass!=='undefined'){$($selector).find('.elementor-field-type-submit .bdt-button').prop('disabled',!0)}
$scope.find('.confirm_password').keyup(function(){let input=$(this).val(),length=input.length;let result=passStrength.formula(input,length);passStrength.progress(result);let pass=$scope.find('.user_password').val();if(input!==pass){$scope.find('.bdt-user-register-pass-res').removeClass('bdt-hidden');$($selector).find('.elementor-field-type-submit .bdt-button').prop('disabled',!0)}else{$scope.find('.bdt-user-register-pass-res').addClass('bdt-hidden');if(typeof $settings.forceStrongPass!=='undefined'){passStrength.forceStrongPass(result)}}})}}
passStrength.init()};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/bdt-user-register.default',widgetUserRegisterForm);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-user-register.bdt-dropdown',widgetUserRegisterForm);elementorFrontend.hooks.addAction('frontend/element_ready/bdt-user-register.bdt-modal',widgetUserRegisterForm)})}(jQuery,window.elementorFrontend));(function($,elementor){$(window).on("elementor/frontend/init",function(){var ModuleHandler=elementorModules.frontend.handlers.Base,AnimatedGradientBackground;AnimatedGradientBackground=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{allowHTML:!0,}},onElementChange:debounce(function(prop){if(prop.indexOf('element_pack_agbg_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings("element_pack_agbg_"+key)},parseColor:function(color){if(/^rgba?\((\d+),\s*(\d+),\s*(\d+),?\s*([\d.]*)\)$/.test(color)){const[_,r,g,b,a=1]=color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+),?\s*([\d.]*)\)$/);const alpha=parseFloat(a);if(alpha===1){return `#${((1 << 24) + (parseInt(r) << 16) + (parseInt(g) << 8) + parseInt(b)).toString(16).slice(1)}`}
return `rgba(${r}, ${g}, ${b}, .${a.toString().split('.')[1]||0})`}
if(/^#([A-Fa-f0-9]{8})$/.test(color)){const rgba=color.match(/[A-Fa-f0-9]{2}/g).map((hex)=>parseInt(hex,16));const alpha=parseFloat((rgba[3]/255).toFixed(2));if(alpha===1){return `#${color.slice(1, 7)}`}
return `rgba(${rgba[0]}, ${rgba[1]}, ${rgba[2]}, .${alpha.toString().split('.')[1]||0})`}
if(/^#([A-Fa-f0-9]{6})$/.test(color)){return color.toLowerCase()}
if(/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,?\s*([\d.]*)\)$/.test(color)){const[_,h,s,l,a=1]=color.match(/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,?\s*([\d.]*)\)$/);const alpha=parseFloat(a);if(alpha===1){return `hsl(${h}, ${s}%, ${l}%)`}
return `hsla(${h}, ${s}%, ${l}%, .${a.toString().split('.')[1]||0})`}
return color},run:function(){if(this.settings('show')!=='yes'){return}
const sectionID=this.$element.data("id");const widgetContainer=document.querySelector(".elementor-element-"+sectionID);const checkClass=$(widgetContainer).find(".bdt-animated-gradient-background");if($(checkClass).length<1){$(widgetContainer).prepend('<canvas id="canvas-basic-'+sectionID+'" class="bdt-animated-gradient-background"></canvas>')}
const gradientID=$(widgetContainer).find(".bdt-animated-gradient-background").attr("id");let color_list=this.settings("color_list");let colors=color_list.map((color)=>[this.parseColor(color.start_color),this.parseColor(color.end_color)]);var direction=(this.settings("direction")!==undefined)?this.settings('direction'):'diagonal';var transitionSpeed=(this.settings("transitionSpeed")!==undefined)?this.settings('transitionSpeed.size'):'5500';var granimInstance=new Granim({element:"#"+gradientID,direction:direction,isPausedWhenNotInView:!0,states:{"default-state":{gradients:colors,transitionSpeed:transitionSpeed,},},})},});elementorFrontend.hooks.addAction("frontend/element_ready/section",function($scope){elementorFrontend.elementsHandler.addHandler(AnimatedGradientBackground,{$element:$scope,})});elementorFrontend.hooks.addAction("frontend/element_ready/container",function($scope){elementorFrontend.elementsHandler.addHandler(AnimatedGradientBackground,{$element:$scope,})})})})(jQuery,window.elementorFrontend);(function($,elementor){$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){$scope.hasClass('elementor-element-edit-mode')&&$scope.addClass('bdt-background-overlay-yes')})})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,BackgroundParallax;BackgroundParallax=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{media:!1,easing:1,viewport:1,}},onElementChange:debounce(function(prop){if((prop.indexOf('section_parallax_')!==-1)||(prop.indexOf('ep_parallax_')!==-1)){this.run()}},400),settings:function(key){return this.getElementSettings(key)},run:function(){var options=this.getDefaultSettings(),ID=this.$element.data('id');if('yes'!==this.settings('section_parallax_on')){return}
let element=jQuery('.elementor-element-'+ID).get(0);if(this.settings('section_parallax_x_value.size')){options.bgx=this.settings('section_parallax_x_value.size')||0}
if(this.settings('section_parallax_value.size')){options.bgy=this.settings('section_parallax_value.size')||0}
if(this.settings('ep_parallax_bg_colors')){if(this.settings('ep_parallax_bg_border_color_start')||this.settings('ep_parallax_bg_border_color_end')){options.borderColor=[this.settings('ep_parallax_bg_border_color_start')||0,this.settings('ep_parallax_bg_border_color_end')||0]}}
if(this.settings('ep_parallax_bg_colors')){if(this.settings('ep_parallax_bg_color_start')||this.settings('ep_parallax_bg_color_end')){options.backgroundColor=[this.settings('ep_parallax_bg_color_start')||0,this.settings('ep_parallax_bg_color_end')||0]}}
if(this.settings('section_parallax_x_value')||this.settings('section_parallax_value')||this.settings('ep_parallax_bg_colors')){this.bgParallax=bdtUIkit.parallax(element,options)}}});elementorFrontend.hooks.addAction('frontend/element_ready/section',function($scope){elementorFrontend.elementsHandler.addHandler(BackgroundParallax,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/container',function($scope){elementorFrontend.elementsHandler.addHandler(BackgroundParallax,{$element:$scope})})})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function($){var ModuleHandler=elementorModules.frontend.handlers.Base,Confetti;Confetti=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{resize:!0,useWorker:!0,}},onElementChange:debounce(function(prop){if(prop.indexOf('ep_widget_cf_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('ep_widget_cf_'+key)},randomInRange:function(min,max){return Math.random()*(max-min)+min},run:function(){var options=this.getDefaultSettings(),$element=this.$element;if(this.settings('confetti')!=='yes'){return}
if(this.settings('z_index')){options.zIndex=this.settings('z_index')}
if(this.settings('particle_count.size')){options.particleCount=this.settings('particle_count.size')||100}
if(this.settings('start_velocity.size')){options.startVelocity=this.settings('start_velocity.size')||45}
if(this.settings('spread.size')){options.spread=this.settings('spread.size')||70}
if(this.settings('colors')){var colors=this.settings('colors');options.colors=colors.split(',')}
if(this.settings('shapes')){var shapes=this.settings('shapes');options.shapes=shapes.split(/,|\|/)}
if('emoji'==this.settings('shape_type')&&this.settings('shapes_emoji')){var shapes=this.settings('shapes_emoji');let __shapes=[];let shapesArray=shapes.split(/,|\|/);shapesArray.forEach(function(shape,i){__shapes[i]=confetti.shapeFromText({text:shape,})});options.shapes=__shapes}
if('svg'==this.settings('shape_type')&&this.settings('shapes_svg')){let shapes=this.settings('shapes_svg');let __path=[];let shapesArray=shapes.split('|');shapesArray.forEach(function(shape,i){__path[i]=confetti.shapeFromPath({path:shape,matrix:[0.03597122302158273,0,0,0.03597122302158273,-4.856115107913669,-5.071942446043165]})});options.shapes=__path}
if(this.settings('scalar.size')){options.scalar=this.settings('scalar.size')||1}
if(this.settings('origin')){if(this.settings('origin_x.size')||this.settings('origin_y.size')){options.origin={x:this.settings('origin_x.size')||0.5,y:this.settings('origin_y.size')||0.6}}}
if(this.settings('angle.size')){options.angle=this.settings('angle.size')||90}
var this_instance=this;var instanceConfetti={executeConfetti:function(){if(this_instance.settings('type')=='random'){options.angle=this_instance.randomInRange(55,this_instance.settings('angle.size')||90);options.spread=this_instance.randomInRange(50,this_instance.settings('spread.size')||70);options.particleCount=this_instance.randomInRange(55,this_instance.settings('particle_count.size')||100)}
if(this_instance.settings('type')=='fireworks'){var duration=this_instance.settings('fireworks_duration.size')||1500;var animationEnd=Date.now()+duration;var defaults={startVelocity:this_instance.settings('start_velocity.size')||30,spread:this_instance.settings('spread.size')||360,shapes:this_instance.settings('shapes')?shapes.split(','):['circle','circle','square'],ticks:60,zIndex:this_instance.settings('z_index')||0};var interval=setInterval(function(){var timeLeft=animationEnd-Date.now();if(timeLeft<=0){return clearInterval(interval)}
var particleCount=50*(timeLeft/duration);confetti(Object.assign({},defaults,{particleCount,origin:{x:this_instance.randomInRange(0.1,0.3),y:Math.random()-0.2}}));confetti(Object.assign({},defaults,{particleCount,origin:{x:this_instance.randomInRange(0.7,0.9),y:Math.random()-0.2}}))},250)}
if(this_instance.settings('type')=='school-pride'){var duration=this_instance.settings('fireworks_duration.size')||1500;var end=Date.now()+(duration);(function frame(){confetti({particleCount:this_instance.settings('particle_count.size')||2,angle:this_instance.settings('angle.size')||60,spread:this_instance.settings('spread.size')||55,shapes:this_instance.settings('shapes')?shapes.split(','):['circle','circle','square'],origin:{x:0},colors:colors.split(',')});confetti({particleCount:this_instance.settings('particle_count.size')||2,angle:(this_instance.settings('angle.size')||60)*2,spread:this_instance.settings('spread.size')||55,shapes:this_instance.settings('shapes')?shapes.split(','):['circle','circle','square'],origin:{x:1},colors:colors.split(',')});if(Date.now()<end){requestAnimationFrame(frame)}}())}
if(this_instance.settings('type')=='snow'){var duration=this_instance.settings('fireworks_duration.size')||1500;if('yes'==this_instance.settings('anim_infinite')&&!1==Boolean(elementorFrontend.isEditMode())){duration=24*60*60*1000}
var animationEnd=Date.now()+duration;var skew=1;(function frame(){var timeLeft=animationEnd-Date.now();var ticks=Math.max(200,500*(timeLeft/duration));skew=Math.max(0.8,skew-0.001);confetti({particleCount:this_instance.settings('particle_count.size')||1,startVelocity:this_instance.settings('start_velocity.size')||0,ticks:ticks,origin:{x:Math.random(),y:(Math.random()*skew)-0.2},colors:colors.split(','),shapes:this_instance.settings('shapes')?shapes.split(','):['circle'],gravity:this_instance.randomInRange(0.4,0.6),scalar:this_instance.randomInRange(0.4,1),drift:this_instance.randomInRange(-0.4,0.4)});if(timeLeft>0){requestAnimationFrame(frame)}}());setInterval(function(){},5000)}
if((this_instance.settings('type')=='basic')||(this_instance.settings('type')=='random')){this_instance.instance=confetti(options)}}};if(this.settings('confetti')=='yes'){if((this.settings('trigger_type')=='click')){jQuery(this.settings('trigger_selector')).on('click',function(){instanceConfetti.executeConfetti()})}else if(this.settings('trigger_type')=='mouseenter'){jQuery(this.settings('trigger_selector')).on('mouseenter',function(){instanceConfetti.executeConfetti()})}else if(this.settings('trigger_type')=='ajax-success'){jQuery(document).ajaxComplete(function(event,jqxhr,settings){instanceConfetti.executeConfetti()})}else if(this.settings('trigger_type')=='delay'){setTimeout(function(){instanceConfetti.executeConfetti()},this.settings('trigger_delay.size')?this.settings('trigger_delay.size'):1000)}else if(this.settings('trigger_type')=='onview'){epObserveTarget($element[0],function(){instanceConfetti.executeConfetti()})}else{instanceConfetti.executeConfetti()}}}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(Confetti,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/section',function($scope){elementorFrontend.elementsHandler.addHandler(Confetti,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/container',function($scope){elementorFrontend.elementsHandler.addHandler(Confetti,{$element:$scope})})})}(jQuery,window.elementorFrontend));(function($,elementor){$(window).on('elementor/frontend/init',function(){let ModuleHandler=elementorModules.frontend.handlers.Base,CursorEffect;CursorEffect=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{}},onElementChange:debounce(function(prop){if(prop.indexOf('element_pack_cursor_effects_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('element_pack_cursor_effects_'+key)},run:function(){if(this.settings('show')!=='yes'){return}
var options=this.getDefaultSettings(),widgetID=this.$element.data('id'),widgetContainer='.elementor-element-'+widgetID,$element=this.$element,cursorStyle=this.settings('style');const checkClass=$(widgetContainer).find(".bdt-cursor-effects");var source=this.settings('source');if($(checkClass).length<1){if(source==='image'){var image=this.settings('image_src.url');$(widgetContainer).append('<div class="bdt-cursor-effects"><div id="bdt-ep-cursor-ball-effects-'+widgetID+'" class="ep-cursor-ball"><img class="bdt-cursor-image"src="'+image+'"></div></div>')}else if(source==='icons'){var svg=this.settings('icons.value.url');var icons=this.settings('icons.value');if(svg!==undefined){$(widgetContainer).append('<div class="bdt-cursor-effects"><div id="bdt-ep-cursor-ball-effects-'+widgetID+'" class="ep-cursor-ball"><img class="bdt-cursor-image" src="'+svg+'"></img></div></div>')}else{$(widgetContainer).append('<div class="bdt-cursor-effects"><div id="bdt-ep-cursor-ball-effects-'+widgetID+'" class="ep-cursor-ball"><i class="'+icons+' bdt-cursor-icons"></i></div></div>')}}else if(source==='text'){var text=this.settings('text_label');$(widgetContainer).append('<div class="bdt-cursor-effects"><div id="bdt-ep-cursor-ball-effects-'+widgetID+'" class="ep-cursor-ball"><span class="bdt-cursor-text">'+text+'</span></div></div>')}else{$(widgetContainer).append('<div class="bdt-cursor-effects '+cursorStyle+'"><div id="bdt-ep-cursor-ball-effects-'+widgetID+'" class="ep-cursor-ball"></div><div id="bdt-ep-cursor-circle-effects-'+widgetID+'"  class="ep-cursor-circle"></div></div>')}}
const cursorBallID='#bdt-ep-cursor-ball-effects-'+this.$element.data('id');const cursorBall=document.querySelector(cursorBallID);options.models=widgetContainer+' .elementor-widget-container';options.speed=1;options.centerMouse=!0;new Cotton(cursorBall,options);if(source==='default'){const cursorCircleID='#bdt-ep-cursor-circle-effects-'+this.$element.data('id');const cursorCircle=document.querySelector(cursorCircleID);options.models=widgetContainer+' .elementor-widget-container';options.speed=this.settings('speed')?this.settings('speed.size'):0.725;options.centerMouse=!0;new Cotton(cursorCircle,options)}}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(CursorEffect,{$element:$scope})})})})(jQuery,window.elementorFrontend);(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,FloatingEffect;FloatingEffect=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{direction:'alternate',easing:'easeInOutSine',loop:!0}},settings:function(key){return this.getElementSettings('ep_floating_effects_'+key)},onElementChange:debounce(function(prop){if(prop.indexOf('ep_floating')!==-1){this.anime&&this.anime.restart();this.run()}},400),run:function(){var options=this.getDefaultSettings(),element=this.findElement('.elementor-widget-container').get(0);if(this.settings('translate_toggle')){if(this.settings('translate_x.sizes.from').length!==0||this.settings('translate_x.sizes.to').length!==0){options.translateX={value:[this.settings('translate_x.sizes.from')||0,this.settings('translate_x.sizes.to')||0],duration:this.settings('translate_duration.size'),delay:this.settings('translate_delay.size')||0}}
if(this.settings('translate_y.sizes.from').length!==0||this.settings('translate_y.sizes.to').length!==0){options.translateY={value:[this.settings('translate_y.sizes.from')||0,this.settings('translate_y.sizes.to')||0],duration:this.settings('translate_duration.size'),delay:this.settings('translate_delay.size')||0}}}
if(this.settings('rotate_toggle')){if(this.settings('rotate_infinite')!=='yes'){if(this.settings('rotate_x.sizes.from').length!==0||this.settings('rotate_x.sizes.to').length!==0){options.rotateX={value:[this.settings('rotate_x.sizes.from')||0,this.settings('rotate_x.sizes.to')||0],duration:this.settings('rotate_duration.size'),delay:this.settings('rotate_delay.size')||0}}
if(this.settings('rotate_y.sizes.from').length!==0||this.settings('rotate_y.sizes.to').length!==0){options.rotateY={value:[this.settings('rotate_y.sizes.from')||0,this.settings('rotate_y.sizes.to')||0],duration:this.settings('rotate_duration.size'),delay:this.settings('rotate_delay.size')||0}}
if(this.settings('rotate_z.sizes.from').length!==0||this.settings('rotate_z.sizes.to').length!==0){options.rotateZ={value:[this.settings('rotate_z.sizes.from')||0,this.settings('rotate_z.sizes.to')||0],duration:this.settings('rotate_duration.size'),delay:this.settings('rotate_delay.size')||0}}}}
if(this.settings('scale_toggle')){if(this.settings('scale_x.sizes.from').length!==0||this.settings('scale_x.sizes.to').length!==0){options.scaleX={value:[this.settings('scale_x.sizes.from')||0,this.settings('scale_x.sizes.to')||0],duration:this.settings('scale_duration.size'),delay:this.settings('scale_delay.size')||0}}
if(this.settings('scale_y.sizes.from').length!==0||this.settings('scale_y.sizes.to').length!==0){options.scaleY={value:[this.settings('scale_y.sizes.from')||0,this.settings('scale_y.sizes.to')||0],duration:this.settings('scale_duration.size'),delay:this.settings('scale_delay.size')||0}}}
if(this.settings('skew_toggle')){if(this.settings('skew_x.sizes.from').length!==0||this.settings('skew_x.sizes.to').length!==0){options.skewX={value:[this.settings('skew_x.sizes.from')||0,this.settings('skew_x.sizes.to')||0],duration:this.settings('skew_duration.size'),delay:this.settings('skew_delay.size')||0}}
if(this.settings('skew_y.sizes.from').length!==0||this.settings('skew_y.sizes.to').length!==0){options.skewY={value:[this.settings('skew_y.sizes.from')||0,this.settings('skew_y.sizes.to')||0],duration:this.settings('skew_duration.size'),delay:this.settings('skew_delay.size')||0}}}
if(this.settings('border_radius_toggle')){jQuery(element).css('overflow','hidden');if(this.settings('border_radius.sizes.from').length!==0||this.settings('border_radius.sizes.to').length!==0){options.borderRadius={value:[this.settings('border_radius.sizes.from')||0,this.settings('border_radius.sizes.to')||0],duration:this.settings('border_radius_duration.size'),delay:this.settings('border_radius_delay.size')||0}}}
if(this.settings('opacity_toggle')){if(this.settings('opacity_start.size').length!==0||this.settings('opacity_end.size').length!==0){options.opacity={value:[this.settings('opacity_start.size')||1,this.settings('opacity_end.size')||0],duration:this.settings('opacity_duration.size'),easing:'linear'}}}
if(this.settings('easing')){options.easing=this.settings('easing')}
if(this.settings('show')){options.targets=element;if(this.settings('translate_toggle')||this.settings('rotate_toggle')||this.settings('scale_toggle')||this.settings('skew_toggle')||this.settings('border_radius_toggle')||this.settings('opacity_toggle')){this.anime=window.anime&&window.anime(options)}}}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(FloatingEffect,{$element:$scope})})})}(jQuery,window.elementorFrontend));jQuery(document).ready(function(){var $el=jQuery('#ep-hash-link');if($el.length<=0){return}
var $settings=$el.data('settings'),selector=jQuery($settings.container).find($settings.selector);if(selector.length<=0){return}
jQuery(selector).addClass('ep-hash-link-inner-el');function ep_linker_builder(e){var specialChars="!@#$^&%*()+=-[]/{}|:<>?,.",rawText=e,text=rawText.replace(/\s+/g,"-").toLowerCase();text=text.replace(new RegExp("\\"+specialChars,"g"),"");return text}
jQuery(selector).each(function(e){var rawText=jQuery(this).text(),url=ep_linker_builder(rawText);jQuery(this).wrapAll('<a id="ep-hash-link-'+e+'" data-id="'+e+'" class="ep-hash-link" href="#'+e+"_"+url+'"/>')});if(window.location.hash){var hash=window.location.hash;hash=hash.slice(0,2);hash="ep-hash-link-"+hash.substring(1);jQuery("html, body").animate({scrollTop:jQuery("#"+hash).offset().top-150},1000)}});(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,ImagePrallaxEffects;ImagePrallaxEffects=ModuleHandler.extend({bindEvents:function(){this.run()},onElementChange:debounce(function(prop){if(prop.indexOf('element_pack_image_parallax_effects_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('element_pack_image_parallax_effects_'+key)},run:function(){var options=this.getDefaultSettings(),element=this.findElement('.elementor-section').get(0),widgetID=this.$element.data('id'),widgetContainer=$('.elementor-element-'+widgetID).find('.elementor-widget-container .elementor-image');var image=widgetContainer.find('img').attr('src');if('yes'===this.settings('enable')){var $content=`<div class="bdt-image-parallax-wrapper" bdt-parallax="bgy: -200" style="background-image: url(${image});"></div>`;$(widgetContainer).append($content)}else{return}}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(ImagePrallaxEffects,{$element:$scope})})})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,Notation;Notation=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{type:'underline',multiline:!0}},onElementChange:debounce(function(prop){if(prop.indexOf('ep_notation_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('ep_notation_'+key)},run:function(){if(this.settings('active')!='yes'){return}
var $element=this.$element,$widgetId='ep-'+this.getID(),$elementID=this.getID(),$globalthis=this;var $list=this.settings('list');var rtl=($("body").hasClass("rtl"))?!0:!1;$list.forEach(element=>{var
$selectElement='',bracketOn='',options=this.getDefaultSettings();if(element.ep_notation_select_type=='widget'){$($globalthis.findElement('.elementor-widget-container > :not(style)').get(0)).attr('data-notation',$widgetId);$selectElement='[data-notation="'+$widgetId+'"]'}
if(element.ep_notation_select_type=='custom'){var customSelector=element.ep_notation_custom_selector;if(element.ep_notation_custom_selector&&customSelector.length>1){$selectElement='[data-id="'+$elementID+'"] '+' '+customSelector}else{$selectElement='.-bdt-empty'}}
if(element.ep_notation_type=='bracket'){bracketOn=element.ep_notation_bracket_on;bracketOn=bracketOn.split(',');options.brackets=bracketOn}
if($selectElement.length>0){var n1=document.querySelector($selectElement);options.type=element.ep_notation_type;options.color=element.ep_notation_color||'#f23427';options.animationDuration=element.ep_notation_anim_duration.size||800;options.strokeWidth=element.ep_notation_stroke_width.size||1;options.rtl=rtl;if($($selectElement).length>0){epObserveTarget($element[0],function(){const t="http://www.w3.org/2000/svg";class e{constructor(t){this.seed=t}
next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}
function s(t,e,s,i,n){return{type:"path",ops:c(t,e,s,i,n)}}
function i(t,e,i){const n=(t||[]).length;if(n>2){const s=[];for(let e=0;e<n-1;e++)s.push(...c(t[e][0],t[e][1],t[e+1][0],t[e+1][1],i));return e&&s.push(...c(t[n-1][0],t[n-1][1],t[0][0],t[0][1],i)),{type:"path",ops:s}}
return 2===n?s(t[0][0],t[0][1],t[1][0],t[1][1],i):{type:"path",ops:[]}}
function n(t,e,s,n,o){return function(t,e){return i(t,!0,e)}([[t,e],[t+s,e],[t+s,e+n],[t,e+n]],o)}
function o(t,e,s,i,n){return function(t,e,s,i){const[n,o]=l(i.increment,t,e,i.rx,i.ry,1,i.increment*h(.1,h(.4,1,s),s),s);let r=f(n,null,s);if(!s.disableMultiStroke){const[n]=l(i.increment,t,e,i.rx,i.ry,1.5,0,s),o=f(n,null,s);r=r.concat(o)}
return{estimatedPoints:o,opset:{type:"path",ops:r}}}(t,e,n,function(t,e,s){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),n=Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*i),o=2*Math.PI/n;let r=Math.abs(t/2),h=Math.abs(e/2);const c=1-s.curveFitting;return r+=a(r*c,s),h+=a(h*c,s),{increment:o,rx:r,ry:h}}(s,i,n)).opset}
function r(t){return t.randomizer||(t.randomizer=new e(t.seed||0)),t.randomizer.next()}
function h(t,e,s,i=1){return s.roughness*i*(r(s)*(e-t)+t)}
function a(t,e,s=1){return h(-t,t,e,s)}
function c(t,e,s,i,n,o=!1){const r=o?n.disableMultiStrokeFill:n.disableMultiStroke,h=u(t,e,s,i,n,!0,!1);if(r)return h;const a=u(t,e,s,i,n,!0,!0);return h.concat(a)}
function u(t,e,s,i,n,o,h){const c=Math.pow(t-s,2)+Math.pow(e-i,2),u=Math.sqrt(c);let f=1;f=u<200?1:u>500?.4:-.0016668*u+1.233334;let l=n.maxRandomnessOffset||0;l*l*100>c&&(l=u/10);const g=l/2,d=.2+.2*r(n);let p=n.bowing*n.maxRandomnessOffset*(i-e)/200,_=n.bowing*n.maxRandomnessOffset*(t-s)/200;p=a(p,n,f),_=a(_,n,f);const m=[],w=()=>a(g,n,f),v=()=>a(l,n,f);return o&&(h?m.push({op:"move",data:[t+w(),e+w()]}):m.push({op:"move",data:[t+a(l,n,f),e+a(l,n,f)]})),h?m.push({op:"bcurveTo",data:[p+t+(s-t)*d+w(),_+e+(i-e)*d+w(),p+t+2*(s-t)*d+w(),_+e+2*(i-e)*d+w(),s+w(),i+w()]}):m.push({op:"bcurveTo",data:[p+t+(s-t)*d+v(),_+e+(i-e)*d+v(),p+t+2*(s-t)*d+v(),_+e+2*(i-e)*d+v(),s+v(),i+v()]}),m}
function f(t,e,s){const i=t.length,n=[];if(i>3){const o=[],r=1-s.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){const s=t[e];o[0]=[s[0],s[1]],o[1]=[s[0]+(r*t[e+1][0]-r*t[e-1][0])/6,s[1]+(r*t[e+1][1]-r*t[e-1][1])/6],o[2]=[t[e+1][0]+(r*t[e][0]-r*t[e+2][0])/6,t[e+1][1]+(r*t[e][1]-r*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}
if(e&&2===e.length){const t=s.maxRandomnessOffset;n.push({op:"lineTo",data:[e[0]+a(t,s),e[1]+a(t,s)]})}}else 3===i?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&n.push(...c(t[0][0],t[0][1],t[1][0],t[1][1],s));return n}
function l(t,e,s,i,n,o,r,h){const c=[],u=[],f=a(.5,h)-Math.PI/2;u.push([a(o,h)+e+.9*i*Math.cos(f-t),a(o,h)+s+.9*n*Math.sin(f-t)]);for(let r=f;r<2*Math.PI+f-.01;r+=t){const t=[a(o,h)+e+i*Math.cos(r),a(o,h)+s+n*Math.sin(r)];c.push(t),u.push(t)}
return u.push([a(o,h)+e+i*Math.cos(f+2*Math.PI+.5*r),a(o,h)+s+n*Math.sin(f+2*Math.PI+.5*r)]),u.push([a(o,h)+e+.98*i*Math.cos(f+r),a(o,h)+s+.98*n*Math.sin(f+r)]),u.push([a(o,h)+e+.9*i*Math.cos(f+.5*r),a(o,h)+s+.9*n*Math.sin(f+.5*r)]),[u,c]}
function g(t,e){return{maxRandomnessOffset:2,roughness:"highlight"===t?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,combineNestedSvgPaths:!1,disableMultiStroke:"double"!==t,disableMultiStrokeFill:!1,seed:e}}
function d(e,r,h,a,c,u){const f=[];let l=h.strokeWidth||2;const d=function(t){const e=t.padding;if(e||0===e){if("number"==typeof e)return[e,e,e,e];if(Array.isArray(e)){const t=e;if(t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}}
return[5,5,5,5]}(h),p=void 0===h.animate||!!h.animate,_=h.iterations||2,m=h.rtl?1:0,w=g("single",u);switch(h.type){case "underline":{const t=r.y+r.h+d[2];for(let e=m;e<_+m;e++)e%2?f.push(s(r.x+r.w,t,r.x,t,w)):f.push(s(r.x,t,r.x+r.w,t,w));break}
case "strike-through":{const t=r.y+r.h/2;for(let e=m;e<_+m;e++)e%2?f.push(s(r.x+r.w,t,r.x,t,w)):f.push(s(r.x,t,r.x+r.w,t,w));break}
case "box":{const t=r.x-d[3],e=r.y-d[0],s=r.w+(d[1]+d[3]),i=r.h+(d[0]+d[2]);for(let o=0;o<_;o++)f.push(n(t,e,s,i,w));break}
case "bracket":{const t=Array.isArray(h.brackets)?h.brackets:h.brackets?[h.brackets]:["right"],e=r.x-2*d[3],s=r.x+r.w+2*d[1],n=r.y-2*d[0],o=r.y+r.h+2*d[2];for(const h of t){let t;switch(h){case "bottom":t=[[e,r.y+r.h],[e,o],[s,o],[s,r.y+r.h]];break;case "top":t=[[e,r.y],[e,n],[s,n],[s,r.y]];break;case "left":t=[[r.x,n],[e,n],[e,o],[r.x,o]];break;case "right":t=[[r.x+r.w,n],[s,n],[s,o],[r.x+r.w,o]]}
t&&f.push(i(t,!1,w))}
break}
case "crossed-off":{const t=r.x,e=r.y,i=t+r.w,n=e+r.h;for(let o=m;o<_+m;o++)o%2?f.push(s(i,n,t,e,w)):f.push(s(t,e,i,n,w));for(let o=m;o<_+m;o++)o%2?f.push(s(t,n,i,e,w)):f.push(s(i,e,t,n,w));break}
case "circle":{const t=g("double",u),e=r.w+(d[1]+d[3]),s=r.h+(d[0]+d[2]),i=r.x-d[3]+e/2,n=r.y-d[0]+s/2,h=Math.floor(_/2),a=_-2*h;for(let r=0;r<h;r++)f.push(o(i,n,e,s,t));for(let t=0;t<a;t++)f.push(o(i,n,e,s,w));break}
case "highlight":{const t=g("highlight",u);l=.95*r.h;const e=r.y+r.h/2;for(let i=m;i<_+m;i++)i%2?f.push(s(r.x+r.w,e,r.x,e,t)):f.push(s(r.x,e,r.x+r.w,e,t));break}}
if(f.length){const s=function(t){const e=[];for(const s of t){let t="";for(const i of s.ops){const s=i.data;switch(i.op){case "move":t.trim()&&e.push(t.trim()),t=`M${s[0]} ${s[1]} `;break;case "bcurveTo":t+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case "lineTo":t+=`L${s[0]} ${s[1]} `}}
t.trim()&&e.push(t.trim())}
return e}(f),i=[],n=[];let o=0;const r=(t,e,s)=>t.setAttribute(e,s);for(const a of s){const s=document.createElementNS(t,"path");if(r(s,"d",a),r(s,"fill","none"),r(s,"stroke",h.color||"currentColor"),r(s,"stroke-width",""+l),p){const t=s.getTotalLength();i.push(t),o+=t}
e.appendChild(s),n.push(s)}
if(p){let t=0;for(let e=0;e<n.length;e++){const s=n[e],r=i[e],h=o?c*(r/o):0,u=a+t,f=s.style;f.strokeDashoffset=""+r,f.strokeDasharray=""+r,f.animation=`rough-notation-dash ${h}ms ease-out ${u}ms forwards`,t+=h}}}}
class p{constructor(t,e){this._state="unattached",this._resizing=!1,this._seed=Math.floor(Math.random()*2**31),this._lastSizes=[],this._animationDelay=0,this._resizeListener=()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()},400))},this._e=t,this._config=JSON.parse(JSON.stringify(e)),this.attach()}
get animate(){return this._config.animate}
set animate(t){this._config.animate=t}
get animationDuration(){return this._config.animationDuration}
set animationDuration(t){this._config.animationDuration=t}
get iterations(){return this._config.iterations}
set iterations(t){this._config.iterations=t}
get color(){return this._config.color}
set color(t){this._config.color!==t&&(this._config.color=t,this.refresh())}
get strokeWidth(){return this._config.strokeWidth}
set strokeWidth(t){this._config.strokeWidth!==t&&(this._config.strokeWidth=t,this.refresh())}
get padding(){return this._config.padding}
set padding(t){this._config.padding!==t&&(this._config.padding=t,this.refresh())}
attach(){if("unattached"===this._state&&this._e.parentElement){!function(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; }}",document.head.appendChild(t)}}();const e=this._svg=document.createElementNS(t,"svg");e.setAttribute("class","rough-annotation");const s=e.style;s.position="absolute",s.top="0",s.left="0",s.overflow="visible",s.pointerEvents="none",s.width="100px",s.height="100px";const i="highlight"===this._config.type;if(this._e.insertAdjacentElement(i?"beforebegin":"afterend",e),this._state="not-showing",i){const t=window.getComputedStyle(this._e).position;(!t||"static"===t)&&(this._e.style.position="relative")}
this.attachListeners()}}
detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}
attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver" in window&&(this._ro=new window.ResizeObserver(t=>{for(const e of t)e.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}
haveRectsChanged(){if(this._lastSizes.length){const t=this.rects();if(t.length!==this._lastSizes.length)return!0;for(let e=0;e<t.length;e++)
if(!this.isSameRect(t[e],this._lastSizes[e]))return!0}
return!1}
isSameRect(t,e){const s=(t,e)=>Math.round(t)===Math.round(e);return s(t.x,e.x)&&s(t.y,e.y)&&s(t.w,e.w)&&s(t.h,e.h)}
isShowing(){return"not-showing"!==this._state}
refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}
show(){switch(this._state){case "unattached":break;case "showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case "not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}
hide(){if(this._svg)
for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}
remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}
render(t,e){let s=this._config;e&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const i=this.rects();let n=0;i.forEach(t=>n+=t.w);const o=s.animationDuration||800;let r=0;for(let e=0;e<i.length;e++){const h=o*(i[e].w/n);d(t,i[e],s,r+this._animationDelay,h,this._seed),r+=h}
this._lastSizes=i,this._state="showing"}
rects(){const t=[];if(this._svg)
if(this._config.multiline){const e=this._e.getClientRects();for(let s=0;s<e.length;s++)t.push(this.svgRect(this._svg,e[s]));}else t.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return t}
svgRect(t,e){const s=t.getBoundingClientRect(),i=e;return{x:(i.x||i.left)-(s.x||s.left),y:(i.y||i.top)-(s.y||s.top),w:i.width,h:i.height}}}
function _(t,e){return new p(t,e)}
function m(t){let e=0;for(const s of t){const t=s;t._animationDelay=e;e+=0===t.animationDuration?0:t.animationDuration||800}
const s=[...t];return{show(){for(const t of s)t.show()},hide(){for(const t of s)t.hide()}}}
var a1=_(n1,options);a1.show()},{root:null,rootMargin:'0px',threshold:0.8})}}})}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(Notation,{$element:$scope})})})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,ScrollingEffect;ScrollingEffect=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{media:!1,easing:1,viewport:1,}},onElementChange:debounce(function(prop){if(prop.indexOf('ep_parallax_effects')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('ep_parallax_effects_'+key)},run:function(){var options=this.getDefaultSettings(),element=this.findElement('.elementor-widget-container').get(0);if(jQuery(this.$element).hasClass('elementor-section')){element=this.$element.get(0)}
if(this.settings('y')){if(this.settings('y_custom_show')){options.y=this.settings('y_custom_value')}else{if(this.settings('y_start.size')||this.settings('y_end.size')){options.y=[this.settings('y_start.size')||0,this.settings('y_end.size')||0]}}}
if(this.settings('x')){if(this.settings('x_custom_show')){options.x=this.settings('x_custom_value')}else{if(this.settings('x_start.size')||this.settings('x_end.size')){options.x=[this.settings('x_start.size'),this.settings('x_end.size')]}}}
if(this.settings('opacity_toggole')){if(this.settings('opacity_custom_show')){options.opacity=this.settings('opacity_custom_value')}else{if('htov'===this.settings('opacity')){options.opacity=[0,1]}else if('vtoh'===this.settings('opacity')){options.opacity=[1,0]}}}
if(this.settings('blur')){if(this.settings('blur_start.size')||this.settings('blur_end.size')){options.blur=[this.settings('blur_start.size')||0,this.settings('blur_end.size')||0]}}
if(this.settings('rotate')){if(this.settings('rotate_start.size')||this.settings('rotate_end.size')){options.rotate=[this.settings('rotate_start.size')||0,this.settings('rotate_end.size')||0]}}
if(this.settings('scale')){if(this.settings('scale_start.size')||this.settings('scale_end.size')){options.scale=[this.settings('scale_start.size')||1,this.settings('scale_end.size')||1]}}
if(this.settings('hue')){if(this.settings('hue_value.size')){options.hue=this.settings('hue_value.size')}}
if(this.settings('sepia')){if(this.settings('sepia_value.size')){options.sepia=this.settings('sepia_value.size')}}
if(this.settings('viewport')){if(this.settings('viewport_start')){options.start=this.settings('viewport_start')}}
if(this.settings('viewport')){if(this.settings('viewport_end')){options.end=this.settings('viewport_end')}}
if(this.settings('media_query')){if(this.settings('media_query')){options.media=this.settings('media_query')}}
if(this.settings('easing')){if(this.settings('easing_value.size')){options.easing=this.settings('easing_value.size')}}
if(this.settings('target')){if(this.settings('target')==='section'){options.target='.elementor-section.elementor-element-'+jQuery(element).closest('section').data('id')}}
if(this.settings('show')){if(this.settings('y')||this.settings('x')||this.settings('opacity')||this.settings('blur')||this.settings('rotate')||this.settings('scale')||this.settings('hue')||this.settings('sepia')||this.settings('viewport')||this.settings('media_query')||this.settings('easing')||this.settings('target')){bdtUIkit.parallax(element,options)}}}});elementorFrontend.hooks.addAction('frontend/element_ready/section',function($scope){elementorFrontend.elementsHandler.addHandler(ScrollingEffect,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(ScrollingEffect,{$element:$scope})})})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,Particles;Particles=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{allowHTML:!0,}},onElementChange:debounce(function(prop){if(prop.indexOf('section_particles')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('section_particles_'+key)},run:function(){var particleID='bdt-particle-container-'+this.$element.data('id'),widgetID=this.$element.data('id'),widgetContainer=$('.elementor-element-'+widgetID);this.particleID=particleID;var jsonData={'particles':{'number':{'value':80,'density':{'enable':!0,'value_area':800}},'color':{'value':'#ffffff'},'shape':{'type':'circle','stroke':{'width':0,'color':'#000000'},'polygon':{'nb_sides':5},'image':{'src':'','width':100,'height':100}},'opacity':{'value':0.5,'random':!1,'anim':{'enable':!1,'speed':1,'opacity_min':0.1,'sync':!1}},'size':{'value':3,'random':!0,'anim':{'enable':!1,'speed':40,'size_min':0.1,'sync':!1}},'line_linked':{'enable':!0,'distance':150,'color':'#ffffff','opacity':0.4,'width':1},'move':{'enable':!0,'speed':6,'direction':'none','random':!1,'straight':!1,'out_mode':'out','bounce':!1,'attract':{'enable':!1,'rotateX':600,'rotateY':1200}}},'interactivity':{'detect_on':'canvas','events':{'onhover':{'enable':!1,'mode':'repulse'},'onclick':{'enable':!0,'mode':'push'},'resize':!0},'modes':{'grab':{'distance':400,'line_linked':{'opacity':1}},'bubble':{'distance':400,'size':40,'duration':2,'opacity':8,'speed':3},'repulse':{'distance':200,'duration':0.4},'push':{'particles_nb':4},'remove':{'particles_nb':2}}},'retina_detect':!0};if(this.settings('js')&&this.settings('js').length!==0){jsonData=JSON.parse(this.settings('js'))}
if(this.settings('on')){if($('#'+particleID).length===0){$(widgetContainer).prepend('<div id="'+particleID+'" class="bdt-particle-container"></div>')}
particlesJS(particleID,jsonData)}}});elementorFrontend.hooks.addAction('frontend/element_ready/section',function($scope){elementorFrontend.elementsHandler.addHandler(Particles,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/container',function($scope){elementorFrontend.elementsHandler.addHandler(Particles,{$element:$scope})})})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,RevealFX;RevealFX=ModuleHandler.extend({bindEvents:function(){this.run()},settings:function(key){return this.getElementSettings('element_pack_reveal_effects_'+key)},run:function(){if('yes'!==this.settings('enable')){return}
var options=this.getDefaultSettings(),widgetID=this.$element.data('id'),widgetContainer=$('.elementor-element-'+widgetID);$(widgetContainer).attr('data-ep-reveal','ep-reveal-'+widgetID+'');const revealID='*[data-ep-reveal="ep-reveal-'+widgetID+'"]';const revealWrapper=document.querySelector(revealID);const revealFX=new RevealFx(revealWrapper,{revealSettings:{bgColors:this.settings('color')?[this.settings('color')]:['#333'],direction:this.settings('direction')?String(this.settings('direction')):String('c'),duration:this.settings('speed')?Number(this.settings('speed.size')*100):Number(500),easing:this.settings('easing')?String(this.settings('easing')):String('easeOutQuint'),onHalfway:function(contentEl,ngsrevealerEl){contentEl.style.opacity=1}}});var runReveal=function(){revealFX.reveal();this.destroy()};epObserveTarget(revealWrapper,function(){revealFX.reveal()},{root:null,rootMargin:'0px',threshold:0.8})}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(RevealFX,{$element:$scope})})})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';$(window).on('elementor/frontend/init',function($){var ModuleHandler=elementorModules.frontend.handlers.Base,ScrollFillEffect;ScrollFillEffect=ModuleHandler.extend({bindEvents:function(){this.run()},onElementChange:debounce(function(prop){if(prop.indexOf('ep_widget_sf_fx_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('ep_widget_sf_fx_'+key)},run:function(){var $element=this.$element;if(this.settings('enable')!=='yes'){return}
epObserveTarget($element[0],function(){var $selector=jQuery($element).find('.elementor-heading-title, .bdt-heading-tag span, .bdt-ep-advanced-heading-main-title-inner');gsap.to($selector,{scrollTrigger:{trigger:$selector,start:"bottom center+=50%",end:"bottom center",scrub:!0,},backgroundSize:'100% 200%',})},{root:null,rootMargin:'0px',threshold:0.8})}});elementorFrontend.hooks.addAction('frontend/element_ready/heading.default',function($scope){elementorFrontend.elementsHandler.addHandler(ScrollFillEffect,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/bdt-animated-heading.default',function($scope){elementorFrontend.elementsHandler.addHandler(ScrollFillEffect,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/bdt-advanced-heading.default',function($scope){elementorFrontend.elementsHandler.addHandler(ScrollFillEffect,{$element:$scope})})})}(jQuery,window.elementorFrontend));(function($,elementor){'use strict';var widgetSectionSticky=function($scope,$){var $section=$scope;jQuery($section).each(function(index){var $sticky=jQuery(this),$stickyFound=$sticky.find('.elementor-inner-section.bdt-sticky');if($stickyFound.length){jQuery($stickyFound).wrap('<div class="bdt-sticky-wrapper"></div>')}})};jQuery(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/section',widgetSectionSticky)})}(jQuery,window.elementorFrontend));(function($,elementor){$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,SoundEffects;SoundEffects=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{event:'hover',}},onElementChange:debounce(function(prop){if(prop.indexOf('ep_sound_effects_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('ep_sound_effects_'+key)},run:function(){if(this.settings('active')!='yes'){return}
var options=this.getDefaultSettings(),$element='',$widgetId='ep-sound-effects'+this.getID(),$widgetIdSelect='#'+$widgetId,$soundAudioSource,$soundAudioSourceMp3;$(this.findElement('.elementor-widget-container').get(0)).attr('id',$widgetId);if(this.settings('select_type')==='widget'){$element=$($widgetIdSelect)}else if(this.settings('select_type')==='anchor_tag'){$element=$($widgetIdSelect+' a')}else if(this.settings('select_type')==='custom'){if(this.settings('element_selector')){$element=$($widgetIdSelect).find(this.settings('element_selector'))}}else{}
if(this.settings('source')!=='hosted_url'){$soundAudioSource=this.settings('source_local_link')+this.settings('source')}else{if(this.settings('hosted_url.url')){$soundAudioSource=this.settings('hosted_url.url').replace(/\.[^/.]+$/,"");$soundAudioSourceMp3=this.settings('hosted_url_mp3.url').replace(/\.[^/.]+$/,"")}}
if(!$soundAudioSource){return}
if(!document.createElement('audio').canPlayType){console.error('Oh man 😩! \nYour browser doesn\'t support audio awesomeness.');return function(){}}
var audioPlayer=document.createElement('audio'),mp3Source=document.createElement('source'),oggSource=document.createElement('source'),eventsSet=!1;audioPlayer.setAttribute('preload',!0);mp3Source.setAttribute('type','audio/mpeg');oggSource.setAttribute('type','audio/ogg');audioPlayer.appendChild(mp3Source);audioPlayer.appendChild(oggSource);document.body.appendChild(audioPlayer);function playAudio(){var audioSrc=$soundAudioSource,soundMp3Link,soundOggLink;if(!audioSrc){return}
if($soundAudioSourceMp3){soundMp3Link=$soundAudioSourceMp3+'.mp3'}
soundOggLink=audioSrc+'.ogg';if(!eventsSet){eventsSet=!0;oggSource.addEventListener('error',function(){console.error('😶 D\'oh! The ogg file URL is wrong!')})}
if(soundMp3Link||soundOggLink){if($soundAudioSourceMp3){mp3Source.setAttribute('src',soundMp3Link)}
oggSource.setAttribute('src',soundOggLink);audioPlayer.load()}
audioPlayer.play()}
function stopAudio(){audioPlayer.pause();audioPlayer.currentTime=0}
var initScope=this;jQuery(document).ready(function(){if(initScope.settings('event')=='hover'){jQuery($element).on('mouseenter',function(){playAudio()});jQuery($element).on('mouseleave',function(){stopAudio()});jQuery($element).on('click',function(){stopAudio()});jQuery($element).on('touchstart',function(){playAudio()})}
if(initScope.settings('event')=='click'){$($element).on('click',function(){playAudio()})}})}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(SoundEffects,{$element:$scope})})})})(jQuery,window.elementorFrontend);(function($,elementor){$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,ThreedText;ThreedText=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{depth:'30px',layers:8,}},onElementChange:debounce(function(prop){if(prop.indexOf('ep_threed_text_')!==-1){this.run()}},400),settings:function(key){return this.getElementSettings('ep_threed_text_'+key)},run:function(){var options=this.getDefaultSettings(),$element=this.findElement('.elementor-heading-title, .bdt-main-heading-inner'),$widgetId='ep-'+this.getID(),$widgetIdSelect='#'+$widgetId;jQuery($element).attr('id',$widgetId);if(this.settings('depth.size')){options.depth=this.settings('depth.size')+this.settings('depth.unit')||'30px'}
if(this.settings('layers')){options.layers=this.settings('layers')||8}
if(this.settings('perspective.size')){options.perspective=this.settings('perspective.size')+'px'||'500px'}
if(this.settings('fade')){options.fade=!!this.settings('fade')}
if(this.settings('event')){options.event=this.settings('event')||'pointer'}
if(this.settings('event_rotation')&&this.settings('event')!='none'){options.eventRotation=this.settings('event_rotation.size')+'deg'||'35deg'}
if(this.settings('event_direction')&&this.settings('event')!='none'){options.eventDirection=this.settings('event_direction')||'default'}
if(this.settings('active')=='yes'){var $text=$($widgetIdSelect).html();$($widgetIdSelect).parent().append('<div class="ep-z-text-duplicate" style="display:none;">'+$text+'</div>');$text=$($widgetIdSelect).parent().find('.ep-z-text-duplicate:first').html();$($widgetIdSelect).find('.z-text').remove();var ztxt=new Ztextify($widgetIdSelect,options,$text)}
if(this.settings('depth_color')){var depthColor=this.settings('depth_color')||'#fafafa';$($widgetIdSelect).find('.z-layers .z-layer:not(:first-child)').css('color',depthColor)}}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(ThreedText,{$element:$scope})})})})(jQuery,window.elementorFrontend);(function($,elementor){$(window).on('elementor/frontend/init',function(){let ModuleHandler=elementorModules.frontend.handlers.Base,TileScroll;TileScroll=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{allowHTML:!0,}},settings:function(key){return this.getElementSettings('element_pack_tile_scroll_'+key)},run:function(){var tileScroll_ID='bdt-tile-scroll-container-'+this.$element.data('id'),widgetID=this.$element.data('id'),widgetContainer=$('.elementor-element-'+widgetID);if(this.settings('show')=='yes'){if($('#'+tileScroll_ID).length===0){let display=this.settings('display');var $content=`
<div id="${tileScroll_ID}" class="bdt-tile-scroll bdt-tile-scroll--${display}">
<div class="bdt-tile-scroll__wrap">`;this.settings('elements').forEach(element=>{let images=element.element_pack_tile_scroll_images;let x_start=element.element_pack_tile_scroll_x_start.size;let x_end=element.element_pack_tile_scroll_x_end.size;if(display==='horizontal'){var parallax='data-bdt-parallax="target: .elementor-element-'+widgetID+'; viewport: 1.1; x:'+x_start+','+x_end+'"'}else{var parallax='data-bdt-parallax="y:'+x_start+','+x_end+'"'}
$content+=`<div class="bdt-tile-scroll__line" ${parallax}>`;images.forEach(image=>{$content+=`<div class=" bdt-tile-scroll__line-img" style="background-image:url(${image.url})" loading="lazy"></div>`});$content+=`</div>`});$content+=`</div></div>`;$(widgetContainer).prepend($content)}}}});elementorFrontend.hooks.addAction('frontend/element_ready/section',function($scope){if(!$scope.hasClass("bdt-tile-scroll-yes")){return}
elementorFrontend.elementsHandler.addHandler(TileScroll,{$element:$scope})});elementorFrontend.hooks.addAction('frontend/element_ready/container',function($scope){if(!$scope.hasClass("bdt-tile-scroll-yes")){return}
elementorFrontend.elementsHandler.addHandler(TileScroll,{$element:$scope})})})})(jQuery,window.elementorFrontend);(function($,elementor){$(window).on('elementor/frontend/init',function(){var ModuleHandler=elementorModules.frontend.handlers.Base,Tooltip;Tooltip=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{allowHTML:!0,}},onElementChange:debounce(function(prop){if(prop.indexOf('element_pack_widget_')!==-1){this.instance.destroy();this.run()}},400),settings:function(key){return this.getElementSettings('element_pack_widget_'+key)},run:function(){var options=this.getDefaultSettings();var widgetID=this.$element.data('id');var widgetContainer=document.querySelector('.elementor-element-'+widgetID+' .elementor-widget-container');if(this.settings('tooltip_text')){options.content=EP_SAFE_HTML(this.settings('tooltip_text'))}
options.arrow=!!this.settings('tooltip_arrow');options.followCursor=!!this.settings('tooltip_follow_cursor');if(this.settings('tooltip_placement')){options.placement=this.settings('tooltip_placement')}
if(this.settings('tooltip_trigger')){if(this.settings('tooltip_custom_trigger')){options.triggerTarget=document.querySelector(this.settings('tooltip_custom_trigger'))}else{options.trigger=this.settings('tooltip_trigger')}}
if(this.settings('tooltip_animation')){if(this.settings('tooltip_animation')==='fill'){options.animateFill=!0}else{options.animation=this.settings('tooltip_animation')}}
if(this.settings('tooltip_x_offset.size')||this.settings('tooltip_y_offset.size')){options.offset=[this.settings('tooltip_x_offset.size')||0,this.settings('tooltip_y_offset.size')||0]}
if(this.settings('tooltip')){options.theme='bdt-tippy-'+widgetID;this.instance=tippy(widgetContainer,options)}}});elementorFrontend.hooks.addAction('frontend/element_ready/widget',function($scope){elementorFrontend.elementsHandler.addHandler(Tooltip,{$element:$scope})})})})(jQuery,window.elementorFrontend);jQuery(document).ready(function(){jQuery('body').on('click','.bdt-element-link',function(){var $el=jQuery(this),settings=$el.data('ep-wrapper-link'),data=settings,id='bdt-element-link-'+$el.data('id');if(jQuery('#'+id).length===0){jQuery('body').append(jQuery(document.createElement('a')).prop({target:data.is_external?'_blank':'_self',href:data.url,class:'bdt-hidden',id:id,rel:data.nofollow?'nofollow noreferer':''}))}
jQuery('#'+id)[0].click()})});(function($,elementor){"use strict";$(window).on("elementor/frontend/init",function(){var ModuleHandler=elementorModules.frontend.handlers.Base,WCProducts;WCProducts=ModuleHandler.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{}},onElementChange:debounce(function(prop){if(prop.indexOf("wc")!==-1){this.run()}},400),settings:function(key){return this.getElementSettings("wc_products_"+key)},run:function(){const options=this.getDefaultSettings(),content=this.settings("enable_ajax_loadmore"),container=this.$element.find(".bdt-wc-products");if(!container.length||content===undefined){return}
const settingsLoadmore=this.settings("show_loadmore"),settingsInfiniteScroll=this.settings("show_infinite_scroll"),loadButtonContainer=this.$element.find(".bdt-loadmore-container"),products=container.find(".bdt-wc-products-wrapper"),loadButton=loadButtonContainer.find(".bdt-loadmore");let loading=!1;const settings=container.data("settings");let currentItemCount=Number(settings.posts_per_page);const loadMorePosts=()=>{const dataSettings={action:"bdt_ep_wc_products_load_more",settings:settings,per_page:settings.ajax_item_load,offset:currentItemCount,nonce:settings.nonce,paged:settings.paged,};$.ajax({url:window.ElementPackConfig.ajaxurl,type:"post",data:dataSettings,success:(response)=>{$(products).append(response.markup);currentItemCount+=settings.ajax_item_load;settings.paged+=1;loading=!1;if(settingsLoadmore==="yes"){loadButton.html("Load More")}
if($(response.markup).length<settings.ajax_item_load){loadButton.hide();loadButtonContainer.hide()}},})};const handleButtonClick=()=>{if(!loading){loading=!0;loadButton.html("Loading...");loadMorePosts()}};if(settingsLoadmore==="yes"){$(loadButton).on("click",handleButtonClick)}
if(settingsInfiniteScroll==="yes"){$(window).scroll(()=>{if($(window).scrollTop()===$(document).height()-$(window).height()&&!loading){$(loadButton).css("display","block");loading=!0;loadMorePosts()}})}},});elementorFrontend.hooks.addAction("frontend/element_ready/bdt-wc-products.default",function($scope){elementorFrontend.elementsHandler.addHandler(WCProducts,{$element:$scope,})})})})(jQuery,window.elementorFrontend);
!function(f){woodmartThemeModule.headerBuilder=function(){var a,s,r=f(".whb-header"),t=f(".header-banner"),e=f(".whb-sticky-row"),l="",d=woodmartThemeModule.$window,h=!1,n=300,o="",w=r.hasClass("whb-hide-on-scroll");if(e.each(function(){var e=f(this);if(10<e[0].offsetHeight)return l=e,!1}),r.hasClass("whb-sticky-real")||r.hasClass("whb-scroll-slide")){var e=f("#wpadminbar"),i=r.find(".whb-main-header")[0].offsetHeight,e=0<e.length?e[0].offsetHeight:0;if(r.hasClass("whb-sticky-real")){if(0===l.length||l[0].offsetHeight<10||"undefined"!=typeof elementorFrontend&&elementorFrontend.isEditMode())return;r.addClass("whb-sticky-prepared"),n=Math.ceil(l.offset().top)-e}r.hasClass("whb-scroll-slide")&&(n=i+e)}function c(){r.hasClass("whb-boxed")&&(f(".wd-offsets-calculated .wd-dropdown-menu").attr("style",""),f(".wd-offsets-calculated").removeClass("wd-offsets-calculated"),woodmartThemeModule.$window.trigger("wdHeaderBuilderStickyChanged"))}r.hasClass("whb-sticky-clone")&&((s=[]).cloneClass=r.find(".whb-general-header").attr("class"),w&&(s.wrapperClasses="whb-hide-on-scroll"),f(".whb-clone").length&&f(".whb-clone").remove(),o=(o=(o=(o=(o=woodmart_settings.whb_header_clone).replace(/<%([^%>]+)?%>|{{([^{}]+)}}/g,function(e){e=e.slice(2,-2);return r.find(e).length?f("<div>").append(r.find(e).first().clone()).html():void 0!==s[e]?s[e]:""})).replace(/<link[^>]*>/g,"")).replace("whb-col-1","")).replace("dropdowns-loading",""),r.after(o),(r=r.parent().find(".whb-clone")).find(".whb-row").removeClass("whb-flex-equal-sides").addClass("whb-flex-flex-middle"),window.dispatchEvent(new CustomEvent("wdHeaderBuilderCloneCreated"))),d.on("scroll",function(){var e=n,s=woodmartThemeModule.$window.scrollTop(),l=woodmartThemeModule.$window.height(),d=woodmartThemeModule.$document.height(),o=(0<t.length&&woodmartThemeModule.$body.hasClass("header-banner-display")&&(e+=t[0].offsetHeight),(e=!f(".close-header-banner").length&&r.hasClass("whb-scroll-stick")?n:e)<s?h||(h=!0,r.addClass("whb-sticked"),c()):h&&(h=!1,r.removeClass("whb-sticked"),c()),100);r.hasClass("whb-scroll-stick")&&(o=500),w&&(0<a-s&&e<s?(r.addClass("whb-scroll-up"),r.removeClass("whb-scroll-down")):0<s-a&&s+l!==d&&e+o<s?(r.addClass("whb-scroll-down"),r.removeClass("whb-scroll-up")):s<=e?(r.removeClass("whb-scroll-down"),r.removeClass("whb-scroll-up")):d-5<=s+l&&(r.addClass("whb-scroll-up"),r.removeClass("whb-scroll-down"))),a=s}),woodmartThemeModule.$document.trigger("wdHeaderBuilderInited")},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.headerBuilder()})})}(jQuery);
!function(t){woodmartThemeModule.headerCategoriesMenu=function(){var e,n,o,d,a,s,i;1024<woodmartThemeModule.windowWidth||(e=t(".wd-header-cats"),n=e.find(".categories-menu-dropdown"),o=e.find(".menu-item-has-children"),e.find(".menu-opener"),d=200,o.find("> a").before('<span class="drop-category"></span>'),n.on("click",".drop-category",function(){var e=t(this),n=e.parent().find("> .wd-dropdown-menu, >.sub-sub-menu");n.hasClass("child-open")?(e.removeClass("act-icon"),n.slideUp(d).removeClass("child-open")):(e.addClass("act-icon"),n.slideDown(d).addClass("child-open"))}),e.on("click",".menu-opener",function(e){e.preventDefault(),(a()?i:s)()}),n.on("click","a",function(){i(),n.stop().attr("style","")}),a=function(){return n.hasClass("categories-opened")},s=function(){n.addClass("categories-opened").stop().slideDown(d)},i=function(){n.removeClass("categories-opened").stop().slideUp(d)})},t(document).ready(function(){woodmartThemeModule.headerCategoriesMenu()})}(jQuery);
!function(m){woodmartThemeModule.menuOffsets=function(){m(".wd-header-main-nav ul.menu > li, .wd-header-secondary-nav ul.menu > li, .widget_nav_mega_menu ul.menu:not(.wd-nav-vertical) > li, .wd-header-main-nav .wd-dropdown.wd-design-aside ul > li").each(function(){var e=m(this);function d(){e.hasClass("wd-offsets-calculated")||e.parents(".wd-design-aside").length||(e.find(" > .menu-item-has-children").each(function(){var e,d,s,o,n,a,t,w,i,l;e=m(this),w=e.find(" > .wd-dropdown-menu"),i=w.outerWidth(),l=w.offset(),w.attr("style",""),i&&l&&(w.hasClass("wd-design-full-width")||w.hasClass("wd-design-aside")?(s=woodmartThemeModule.$window.width(),woodmartThemeModule.$body.hasClass("rtl")?s<=(o=s-l.left-i)+i&&w.css({right:-(d=o+i-s)}):l.left+i>=s&&(d=l.left+i-s,w.css({left:-d}))):(w.hasClass("wd-design-sized")||w.hasClass("wd-design-full-height"))&&(s=woodmart_settings.site_width,o=(s=woodmartThemeModule.$window.width()<s||!s||e.parents(".whb-header").hasClass("whb-full-width")?woodmartThemeModule.$window.width():s)-l.left-i,e=15,n=(woodmartThemeModule.$window.width()-s)/2,t=m(".wd-sticky-nav"),woodmartThemeModule.$body.hasClass("wd-sticky-nav-enabled")&&t.length&&(e-=t.width()/2),woodmartThemeModule.$body.hasClass("rtl")?s<=(a=n+o)+i&&w.css({right:-(d=a+i-s)-e}):s<=(a=l.left-n)+i&&w.css({left:-(d=a+i-s)-e})))}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour"),e.addClass("wd-offsets-calculated"))}(e=e.hasClass("menu-item")?m(this).parent():e).on("mouseenter mousemove",function(){d()}),woodmartThemeModule.$window.on("wdHeaderBuilderStickyChanged",d),"yes"===woodmart_settings.clear_menu_offsets_on_resize&&setTimeout(function(){woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){e.removeClass("wd-offsets-calculated"),e.find(" > .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3)})},woodmartThemeModule.menuDropdownAside=function(){m(".wd-nav .wd-design-aside, .wd-header-cats.wd-open-dropdown .wd-nav").each(function(){var e,d=m(this).find(".menu-item");d.length&&((e=d.first()).hasClass("menu-item-has-children")||e.parents(".wd-sub-menu-wrapp").addClass("wd-empty-item"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"),d.on("mouseover",function(){var e=m(this),d=e.parents(".wd-sub-menu-wrapp");e.hasClass("wd-opened")||(e.hasClass("item-level-1")&&(e.hasClass("menu-item-has-children")?d.removeClass("wd-empty-item"):d.addClass("wd-empty-item")),e.siblings().removeClass("wd-opened").find(".wd-dropdown").removeClass("wd-opened"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"))}))})},window.addEventListener("wdEventStarted",function(){setTimeout(function(){woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()},100)}),window.addEventListener("wdUpdatedHeader",function(){m(".whb-header .wd-offsets-calculated").removeClass("wd-offsets-calculated"),m(".whb-header .menu-item.wd-opened, .whb-header .wd-dropdown.wd-opened").removeClass("wd-opened"),m(".whb-header .wd-dropdown-menu").attr("style",""),woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()})}(jQuery);
!function(t){woodmartThemeModule.menuSetUp=function(){var n=t(".wd-nav, .wd-header-cats, .wd-search-cat"),d="wd-opened";function e(){woodmartThemeModule.$window.width()<=1024?n.find(" > .menu-item-has-children.wd-event-hover").each(function(){t(this).data("original-event","hover").removeClass("wd-event-hover").addClass("wd-event-click")}):n.find(" > .wd-event-click").each(function(){var e=t(this);"hover"===e.data("original-event")&&e.removeClass("wd-event-click").addClass("wd-event-hover")})}t(".mobile-nav").find("ul.wd-nav-mobile").find(" > li").has(".wd-dropdown-menu").addClass("menu-item-has-children"),woodmartThemeModule.$document.on("click",".wd-nav .wd-event-click > a, .wd-header-cats.wd-event-click > span, .wd-search-cat-btn",function(e){e.preventDefault();e=t(this);e.parent().siblings().hasClass(d)&&e.parent().siblings().removeClass(d),e.parent().toggleClass(d)}),woodmartThemeModule.$document.on("click",function(e){e=e.target;!(0<t("."+d).length)||t(e).is(".wd-event-hover")||t(e).parents().is(".wd-event-hover")||t(e).parents().is("."+d)||t(e).is("."+d)||t(e).is(".wd-sticky-nav")||e.closest(".wd-cookies-popup")||e.closest(".wd-fb-holder")||0!==t(".mfp-ready").length||0!==t(".pswp--open").length||(n.find(".wd-event-click."+d).removeClass(d),n.hasClass("wd-event-click")&&n.removeClass(d),t(e).closest(".wd-with-overlay").length)||t(".wd-close-side").trigger("wdCloseSideAction",["hide","click"])}),"yes"===woodmart_settings.menu_item_hover_to_click_on_responsive&&(e(),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){e()},300)))},["wdEventStarted","wdUpdatedHeader"].forEach(e=>{window.addEventListener(e,function(){woodmartThemeModule.menuSetUp()})})}(jQuery);
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}(function(v){"use strict";var n={escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},s=27,i=9,o=13,a=38,l=39,r=40;function u(e,t){function n(){}var s=this,i={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:u.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:n,onSearchComplete:n,onSearchError:n,preserveInput:!1,containerClass:"wd-search-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?JSON.parse(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};s.element=e,s.el=v(e),s.suggestions=[],s.badQueries=[],s.selectedIndex=-1,s.currentValue=s.element.value,s.intervalId=0,s.cachedResponse={},s.onChangeInterval=null,s.onChange=null,s.isLocal=!1,s.suggestionsContainer=null,s.noSuggestionsContainer=null,s.options=v.extend({},i,t),s.classes={selected:"wd-active",suggestion:"wd-suggestion"},s.hint=null,s.hintValue="",s.selection=null,s.initialize(),s.setOptions(t)}u.utils=n,(v.Autocomplete=u).formatResult=function(e,t){t="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(t,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},u.prototype={killerFn:null,initialize:function(){var e,t=this,n="."+t.classes.suggestion,s=t.classes.selected,i=t.options,i=(t.element.setAttribute("autocomplete","off"),t.killerFn=function(e){0===v(e.target).closest("."+t.options.containerClass).length&&(t.killSuggestions(e),t.disableKillerFn())},t.noSuggestionsContainer=v('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=u.utils.createNode(i.containerClass),(e=v(t.suggestionsContainer)).appendTo(i.appendTo),"auto"!==i.width&&e.width(i.width),e.on("mouseover.autocomplete",n,function(e){if(v(this).hasClass("wd-not-found"))return e.preventDefault(),!1;t.activate(v(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.find("."+s).removeClass(s)}),e.on("click.autocomplete",n,function(e){if(v(this).hasClass("wd-not-found")||v(this).hasClass("wd-search-title"))return e.preventDefault(),!1;e=0<v(this).find("> a").length;t.select(v(this).data("index"),e)}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},v(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)}),t.el.parent().find(".wd-clear-search"));i&&i.on("click",function(e){t.onClearSearch(e)})},onClearSearch:function(e){var t=this;e.target.classList.contains("wd-clear-search")&&e.target.classList.add("wd-hide"),t.clear(),t.killSuggestions(e),t.el.trigger("focus")},onFocus:function(){var e=this;e.fixPosition(),0===e.options.minChars&&0===e.el.val().length&&e.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(e){var t=this,n=t.options;v.extend(n,e),t.isLocal=Array.isArray(n.lookup),t.isLocal&&(n.lookup=t.verifySuggestionsFormat(n.lookup)),n.orientation=t.validateOrientation(n.orientation,"bottom"),v(t.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearInterval(e.onChangeInterval),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e,t,n,s,i,o,a,l,r=this,u=v(r.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!r.options.forceFixPosition||(o=r.options.orientation,e=u.outerHeight(),t=r.el.outerHeight(),n={top:(l=r.el.offset()).top,left:l.left},"auto"===o&&(a=v(window).height(),s=-(i=v(window).scrollTop())+l.top-e,i=i+a-(l.top+t+e),o=Math.max(s,i)===s?"top":"bottom"),n.top+="top"===o?-e:t,c!==document.body&&(a=u.css("opacity"),r.visible||u.css("opacity",0).show(),l=u.offsetParent().offset(),n.top-=l.top,n.left-=l.left,r.visible||u.css("opacity",a).hide()),"auto"===r.options.width&&(n.width=r.el.outerWidth()-2+"px"),u.css(n))},enableKillerFn:function(){v(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){v(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(e){var t=this,n=v(e.target).hasClass("wd-clear-search");t.stopKillSuggestions(),t.intervalId=window.setInterval(function(){t.visible&&(t.el.val(t.currentValue),t.hide(!1,n)),t.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e=this.el.val().length,t=this.element.selectionStart;return"number"==typeof t?t===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==r||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case s:t.el.val(t.currentValue),t.hide();break;case l:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case i:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case o:if(-1===t.selectedIndex)return void t.hide(!0);t.select(t.selectedIndex,!0);break;case a:t.moveUp();break;case r:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case r:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),0<t.options.deferRequestBy?t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var e=this,t=e.options,n=e.el.val(),s=e.getQuery(n);e.selection&&e.currentValue!==s&&(e.selection=null,(t.onInvalidateSelection||v.noop).call(e.element)),clearInterval(e.onChangeInterval),e.currentValue=n,e.selectedIndex=-1,t.triggerSelectOnValidInput&&e.isExactMatch(s)?e.select(0):s.length<t.minChars?e.hide():e.getSuggestions(s)},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t=this.options.delimiter;return t?(t=e.split(t),null==(t=t[t.length-1])?"":"string"==typeof t?t.trim():(t+"").replace("/^[\\s\ufeff ]+|[\\s\ufeff ]+$/g","")):e},getSuggestionsLocal:function(t){var e=this.options,n=t.toLowerCase(),s=e.lookupFilter,i=parseInt(e.lookupLimit,10),e={suggestions:v.grep(e.lookup,function(e){return s(e,t,n)})};return i&&e.suggestions.length>i&&(e.suggestions=e.suggestions.slice(0,i)),e},getSuggestions:function(s){var e,t,n,i=this,o=i.options,a=o.serviceUrl;o.params[o.paramName]=s,e=o.ignoreParams?null:o.params,!1!==o.onSearchStart.call(i.element,o.params)&&("function"==typeof o.lookup?o.lookup(s,function(e){i.suggestions=e.suggestions,i.suggest(),o.onSearchComplete.call(i.element,s,e.suggestions)}):(n=i.isLocal?i.getSuggestionsLocal(s):("function"==typeof a&&(a=a.call(i.element,s)),t=a+"?"+v.param(e||{}),i.cachedResponse[t]))&&Array.isArray(n.suggestions)?(i.suggestions=n.suggestions,i.suggest(),o.onSearchComplete.call(i.element,s,n.suggestions)):i.isBadQuery(s)?o.onSearchComplete.call(i.element,s,[]):(i.abortAjax(),n={url:a,data:e,type:o.type,dataType:o.dataType},v.extend(n,o.ajaxSettings),i.currentRequest=v.ajax(n).done(function(e){i.currentRequest=null,e=o.transformResult(e,s),i.processResponse(e,s,t),o.onSearchComplete.call(i.element,s,e.suggestions)}).fail(function(e,t,n){o.onSearchError.call(i.element,s,e,t,n)})))},isBadQuery:function(e){if(this.options.preventBadQueries)for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(e=!1,t=!1){var n;e||(n=v((e=this).suggestionsContainer),"function"==typeof e.options.onHide&&e.visible&&e.options.onHide.call(e.element,n,t),e.visible=!1,e.selectedIndex=-1,clearInterval(e.onChangeInterval),v(e.suggestionsContainer).hide(),e.signalHint(null))},suggest:function(){var e,t,i,o,a,l,n,s,r,u,c,g,d,h,p,f;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(t=(e=this).options,i=t.groupBy,o=t.formatResult,a=e.getQuery(e.currentValue),l=e.classes.suggestion,n=e.classes.selected,s=v(e.suggestionsContainer),r=v(e.noSuggestionsContainer),u=t.beforeRender,c="",d=function(e,t){e=e.data[i];return g===e?"":'<div class="autocomplete-group"><strong>'+(g=e)+"</strong></div>"},t.triggerSelectOnValidInput&&e.isExactMatch(a)?e.select(0):(h=function(e,s=""){return v.each(e,function(e,t){i&&(s+=d(t,a,e));var n=l;t.item_classes&&(n+=" "+t.item_classes),s+='<div class="'+n+'" data-index="'+e+'">'+o(t,a)+"</div>"}),s},p=0,(f=e.suggestions.reduce((e,t)=>{var n=t.group||"default";e[n]||(e[n]={});e[n][p]=t;p++;return e},{}))?v.each(f,function(e,n){v.each(n,function(e,t){t&&t.divider&&(c+='<div class="wd-search-title title" data-index="'+e+'">'+t.divider+"</div>",delete n[e])}),c=h(n,c+='<div class="'+("wd-suggestions-group wd-type-"+e)+'">'),c+="</div>"}):c=h(e.suggestions),this.adjustContainerWidth(),r.detach(),s.html(c),"function"==typeof u&&u.call(e.element,s),e.fixPosition(),s.show(),t.autoSelectFirst&&(e.selectedIndex=0,s.scrollTop(0),s.children("."+l).first().addClass(n)),e.visible=!0,e.findBestHint()))},noSuggestions:function(){var e=v(this.suggestionsContainer),t=v(this.noSuggestionsContainer);this.adjustContainerWidth(),t.detach(),e.empty(),e.append(t),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var e=this.options,t=v(this.suggestionsContainer);"auto"===e.width&&(e=this.el.outerWidth()-2,t.width(0<e?e:300))},findBestHint:function(){var s=this.el.val().toLowerCase(),i=null;s&&(v.each(this.suggestions,function(e,t){var n=0===t.value.toLowerCase().indexOf(s);return n&&(i=t),!n}),this.signalHint(i))},signalHint:function(e){var t="",n=this;e&&(t=n.currentValue+e.value.substr(n.currentValue.length)),n.hintValue!==t&&(n.hintValue=t,n.hint=e,(this.options.onHint||v.noop)(t))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?v.map(e,function(e){return{value:e,data:null}}):e},validateOrientation:function(e,t){return e=v.trim(e||"").toLowerCase(),e=-1===v.inArray(e,["auto","bottom","top"])?t:e},processResponse:function(e,t,n){var s=this,i=s.options;e.suggestions=s.verifySuggestionsFormat(e.suggestions),i.noCache||(s.cachedResponse[n]=e,i.preventBadQueries&&0===e.suggestions.length&&s.badQueries.push(t)),t===s.getQuery(s.currentValue)&&(s.suggestions=e.suggestions,s.suggest())},activate:function(e){var t=this,n=t.classes.selected,s=v(t.suggestionsContainer),i=s.find(`.${t.classes.suggestion}[data-index="${e}"]`);return s.find("."+n).removeClass(n),t.selectedIndex=e,-1!==t.selectedIndex&&i?(v(i).addClass(n),i):null},selectHint:function(){var e=v.inArray(this.hint,this.suggestions);this.select(e)},select:function(e,t=!1){t||(this.hide(),this.onSelect(e))},moveUp:function(){var e=this;-1!==e.selectedIndex&&(0===e.selectedIndex?(v(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.val(e.currentValue),e.findBestHint()):e.adjustScroll(e.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t,n,s,i=this,o=i.activate(e);o&&(t=v(o).outerHeight(),o=o.offsetTop,s=(n=v(i.suggestionsContainer).scrollTop())+i.options.maxHeight-t,o<n?v(i.suggestionsContainer).scrollTop(o):s<o&&v(i.suggestionsContainer).scrollTop(o-i.options.maxHeight+t),i.options.preserveInput||i.el.val(i.getValue(i.suggestions[e].value)),i.signalHint(null))},onSelect:function(e){var t=this,n=t.options.onSelect,e=t.suggestions[e];t.currentValue=t.getValue(e.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.signalHint(null),t.suggestions=[],t.selection=e,"function"==typeof n&&n.call(t.element,e)},getValue:function(e){var t,n=this.options.delimiter;return!n||1===(n=(t=this.currentValue).split(n)).length?e:t.substr(0,t.length-n[n.length-1].length)+e},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),this.disableKillerFn(),v(window).off("resize.autocomplete",this.fixPositionCapture),v(this.suggestionsContainer).remove()}},v.fn.devbridgeAutocomplete=function(n,s){var i="autocomplete";return 0===arguments.length?this.first().data(i):this.each(function(){var e=v(this),t=e.data(i);"string"==typeof n?t&&"function"==typeof t[n]&&t[n](s):(t&&t.dispose&&t.dispose(),t=new u(this,n),e.data(i,t))})}});
!function(_){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.ajaxSearch()}),_.each(["frontend/element_ready/wd_search.default"],function(e,a){woodmartThemeModule.wdElementorAddAction(a,function(){woodmartThemeModule.ajaxSearch()})}),woodmartThemeModule.ajaxSearch=function(){void 0!==_.fn.devbridgeAutocomplete&&(_("form.woodmart-ajax-search").each(function(){var s=_(this),d=parseInt(s.data("count")),n=parseInt(s.data("thumbnail")),r=parseInt(s.data("symbols_count")),o=s.find('[name="product_cat"]'),e=s.parent(),l=s.data("post_type"),c=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search",i=parseInt(s.data("price")),u=s.data("sku"),h=s.parents(".wd-search-full-screen").length,w=s.parents(".wd-search-full-screen-2").length,p=s.parents(".wd-search-dropdown").length,m=e.find(`.wd-search-results${h||w?"":" > "}.wd-scroll-content`),f=e.find(".wd-search-results"),g=s.data("include_cat_search");function v(e){0!==s.parents(".wd-search-form.wd-display-form.wd-with-overlay").length&&_(".wd-close-side").trigger("wdCloseSideAction",["open"===e?"show":"hide","click"])}0<d&&(c+="&number="+d),c+="&post_type="+l,o.length&&""!==o.val()&&(c+="&product_cat="+o.val()),g&&"yes"===g&&(c+="&include_cat_search="+g),s.find('[type="text"]').on("focus keyup cat_selected",function(e){var a=_(this),t={action:"woodmart_ajax_search",number:0<d?d:void 0,post_type:l};if(a.hasClass("wd-search-inited")||(a.devbridgeAutocomplete({serviceUrl:c,appendTo:m,minChars:r,deferRequestBy:woodmart_settings.ajax_search_delay,onHide:function(e,a){w&&f.removeClass("wd-no-results");var t=(w?s.parent():s).parent(),d="function"==typeof woodmartThemeModule.beforeSearchcontent&&t.find(".wd-search-history, .wd-search-requests, .wd-search-area").length;a||d||v("close"),a||w||h?t.removeClass("wd-searched"):d||(t.find(".wd-search-results").removeClass("wd-opened"),setTimeout(function(){t.removeClass("wd-searched")},400))},onSearchStart:function(){s.addClass("wd-search-loading")},beforeRender:function(e){p||v("open"),_(e).find(".wd-not-found-msg").parent().addClass("wd-not-found");var a=0<_(e).find(".wd-suggestion:not(.wd-not-found)").length;(a=_(e).find('[class*="wd-type-"]')?a:2<e[0].childElementCount)&&(a=s.serializeArray(),a=s.attr("action")+"?"+_.param(a),_(e).append('<a class="wd-all-results" href="'+a+'">'+woodmart_settings.all_results+"</a>")),_(e).removeAttr("style")},onSelect:function(e){0<e.permalink.length&&(window.location.href=e.permalink),s.parent().find(".wd-search-results").removeClass("wd-opened")},onSearchComplete:function(){s.removeClass("wd-search-loading"),woodmartThemeModule.$document.trigger("wood-images-loaded")},formatResult:function(e,a){var a="("+(a="&"===a?"&#038;":a).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")",t="";return e.divider&&(t+=' <div class="suggestion-divider-title title">'+e.divider+"</div>"),n&&e.thumbnail&&(t+=' <div class="wd-suggestion-thumb">'+e.thumbnail+"</div>"),e.value&&(t=(t+=' <div class="wd-suggestion-content wd-set-mb reset-last-child">')+'<div class="wd-entities-title">'+e.value.replace(new RegExp(a,"gi"),"<strong>$1</strong>").replace(/&lt;(\/?strong)&gt;/g,"<$1>")+"</div>"),u&&e.sku&&(t+=' <p class="wd-suggestion-sku">'+e.sku+"</p>"),i&&e.price&&(t+=' <p class="price">'+e.price+"</p>"),e.value&&(t+=" </div>"),e.permalink&&(a="",e.value&&(a=`aria-label="${e.value.replace(/(<([^>]+)>)/gi,"")}"`),t+=` <a class="wd-fill" href="${e.permalink}" ${a}></a>`),e.products_not_found&&(t='<span class="wd-not-found-msg">'+e.value+"</span>"),w&&(e.no_results?f.addClass("wd-no-results"):f.removeClass("wd-no-results")),h||w||f.addClass("wd-opened"),(w?s.parent():s).parent().addClass("wd-searched"),t}}),a.addClass("wd-search-inited")),o.length&&"cat_selected"===e.type){""!==o.val()&&(t.product_cat=o.val());a=s.find('[type="text"]').devbridgeAutocomplete();let e=woodmart_settings.ajaxurl+"?"+new URLSearchParams(t).toString();g&&"yes"===g&&(e+="&include_cat_search="+g),a.setOptions({serviceUrl:e}),a.hide(),a.onValueChange()}}),woodmartThemeModule.$document.on("click",function(e){e=e.target;_(e).is(".wd-search-form")||_(e).parents().is(".wd-search-form")||_(e).is(".wd-search-full-screen")||_(e).parents().is(".wd-search-full-screen")||_(e).is(".wd-clear-search")||s.find('[type="text"]').devbridgeAutocomplete("hide")}),_(".wd-search-results > .wd-scroll-content").on("click",function(e){e.stopPropagation()})}),_(".wd-header-search.wd-display-dropdown > a").on("click",function(e){e.preventDefault()}))},_(document).ready(function(){woodmartThemeModule.ajaxSearch()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.ajaxSearch()})}(jQuery);
woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.clearSearch()}),jQuery.each(["frontend/element_ready/wd_search.default"],function(e,t){woodmartThemeModule.wdElementorAddAction(t,function(){woodmartThemeModule.clearSearch()})}),woodmartThemeModule.clearSearch=function(){function d(e,t){e.value.length?t.classList.remove("wd-hide"):t.classList.add("wd-hide")}document.querySelectorAll("form .wd-clear-search").forEach(function(r){var e=r.closest("form").querySelector("input");e&&(d(e,r),e.addEventListener("keyup",function(){d(e,r)})),r.addEventListener("click",function(e){e.preventDefault();var t,o,e=r.parentNode.querySelector("input"),e=(e.value="",d(e,r),e.closest(".wd-search-form.wd-display-form.wd-with-overlay")),e=e?e.querySelector(".wd-dropdown-results"):null;e&&(t=e.querySelector(".wd-search-history"),o=e.querySelector(".wd-search-requests"),e=e.querySelector(".wd-search-area"),t&&0!==t.childElementCount||o&&0!==o.childElementCount||e&&(0!==e.childElementCount||0!==e.textContent.length)||document.querySelectorAll(".wd-close-side").forEach(function(e){var t=new CustomEvent("wdCloseSideAction",{detail:["hide","click"]});e.dispatchEvent(t)}))})})},window.addEventListener("wdEventStarted",function(){woodmartThemeModule.clearSearch()});
!function(n){woodmartThemeModule.$document.on("wdReplaceMainGalleryNotQuickView wdShowVariationNotQuickView wdResetVariation",function(){setTimeout(function(){woodmartThemeModule.initZoom()},300)}),n.each(["frontend/element_ready/wd_single_product_gallery.default"],function(e,o){woodmartThemeModule.wdElementorAddAction(o,function(){woodmartThemeModule.initZoom()})}),woodmartThemeModule.initZoom=function(){var o=n(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)");if("yes"!==woodmart_settings.zoom_enable)return!1;var t={touch:!1},e=("ontouchstart"in window&&(t.on="click"),n(".woocommerce-product-gallery"));function i(e){e.find("img").data("large_image_width")>e.width()&&(e.trigger("zoom.destroy"),e.zoom(t))}e.hasClass("thumbs-position-bottom")||e.hasClass("thumbs-position-left")?(document.querySelector(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)").addEventListener("wdSlideChange",function(e){i(o.find(".wd-carousel-item").eq(e.target.swiper.activeIndex).find(".woocommerce-product-gallery__image"))}),i(o.find(".wd-carousel-item").eq(0).find(".woocommerce-product-gallery__image"))):o.find(".wd-carousel-item").each(function(){i(n(this).find(".woocommerce-product-gallery__image"))})},n(document).ready(function(){woodmartThemeModule.initZoom()})}(jQuery);
var wdSwiper=function(){"use strict";function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(t,a){void 0===t&&(t={}),void 0===a&&(a={});const s=["__proto__","constructor","prototype"];Object.keys(a).filter(e=>s.indexOf(e)<0).forEach(e=>{void 0===t[e]?t[e]=a[e]:r(a[e])&&r(t[e])&&0<Object.keys(a[e]).length&&i(t[e],a[e])})}const t={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function I(){var e="undefined"!=typeof document?document:{};return i(e,t),e}const T={document:t,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function x(){var e="undefined"!=typeof window?window:{};return i(e,T),e}function C(e){return(e=void 0===e?"":e).trim().split(" ").filter(e=>!!e.trim())}function M(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function m(){return Date.now()}function S(e,t){void 0===t&&(t="x");var a=x();let s,r,i;e=function(e){var t=x();let a;return a=(a=!(a=t.getComputedStyle?t.getComputedStyle(e,null):a)&&e.currentStyle?e.currentStyle:a)||e.style}(e);return a.WebKitCSSMatrix?(6<(r=e.transform||e.webkitTransform).split(",").length&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),i=new a.WebKitCSSMatrix("none"===r?"":r)):(i=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=i.toString().split(",")),"x"===t&&(r=a.WebKitCSSMatrix?i.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),(r="y"===t?a.WebKitCSSMatrix?i.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5]):r)||0}function o(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e){var t,a=Object(arguments.length<=0?void 0:e);const s=["__proto__","constructor","prototype"];for(let e=1;e<arguments.length;e+=1){var r=e<0||arguments.length<=e?void 0:arguments[e];if(null!=r&&(t=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)))){var i=Object.keys(Object(r)).filter(e=>s.indexOf(e)<0);for(let e=0,t=i.length;e<t;e+=1){var l=i[e],n=Object.getOwnPropertyDescriptor(r,l);void 0!==n&&n.enumerable&&(o(a[l])&&o(r[l])?r[l].__swiper__?a[l]=r[l]:u(a[l],r[l]):o(a[l])||!o(r[l])||(a[l]={},r[l].__swiper__)?a[l]=r[l]:u(a[l],r[l]))}}}return a}function j(e,t,a){e.style.setProperty(t,a)}function L(e){let{swiper:a,targetPosition:s,side:r}=e;const i=x(),l=-a.translate;let n=null,o;const d=a.params.speed,p=(a.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(a.cssModeFrameID),s>l?"next":"prev"),c=(e,t)=>{return"next"===p&&t<=e||"prev"===p&&e<=t},u=()=>{o=(new Date).getTime();null===n&&(n=o);var e=Math.max(Math.min((o-n)/d,1),0);e=.5-Math.cos(e*Math.PI)/2;let t=l+e*(s-l);c(t,s)&&(t=s);a.wrapperEl.scrollTo({[r]:t});if(c(t,s))return a.wrapperEl.style.overflow="hidden",a.wrapperEl.style.scrollSnapType="",setTimeout(()=>{a.wrapperEl.style.overflow="";a.wrapperEl.scrollTo({[r]:t})}),void i.cancelAnimationFrame(a.cssModeFrameID);a.cssModeFrameID=i.requestAnimationFrame(u)};u()}function v(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function W(e,t){void 0===t&&(t="");var a=x(),s=[...e.children];return a.HTMLSlotElement&&e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter(e=>e.matches(t)):s}function E(e,t){var a=x();let s=t.contains(e);return!s&&a.HTMLSlotElement&&t instanceof HTMLSlotElement&&(a=[...t.assignedElements()],s=(s=a.includes(e))||function(e,t){for(var a=[t];0<a.length;){var s=a.shift();if(e===s)return!0;a.push(...s.children,...s.shadowRoot?s.shadowRoot.children:[],...s.assignedElements?s.assignedElements():[])}}(e,t)),s}function D(e){try{console.warn(e)}catch(e){}}function P(e,t){void 0===t&&(t=[]);e=document.createElement(e);return e.classList.add(...Array.isArray(t)?t:C(t)),e}function $(e,t){return x().getComputedStyle(e,null).getPropertyValue(t)}function k(e){let t=e,a;if(t){for(a=0;null!==(t=t.previousSibling);)1===t.nodeType&&(a+=1);return a}}function p(e,t){var a=[];let s=e.parentElement;for(;s;)t&&!s.matches(t)||a.push(s),s=s.parentElement;return a}function l(a,s){s&&a.addEventListener("transitionend",function e(t){t.target===a&&(s.call(a,t),a.removeEventListener("transitionend",e))})}function X(e,t,a){var s=x();return a?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function A(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}let a;function c(){var e,t;return a=a||(e=x(),{smoothScroll:(t=I()).documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)})}let s;function d(e){return void 0===e&&(e={}),s=s||function(e){var e=(void 0===e?{}:e)["userAgent"],t=c(),a=(i=x()).navigator.platform,e=e||i.navigator.userAgent,s={ios:!1,android:!1},r=i.screen.width,i=i.screen.height,l=e.match(/(Android);?[\s\/]+([\d.]+)?/);let n=e.match(/(iPad).*OS\s([\d_]+)/);var o=e.match(/(iPod)(.*OS\s([\d_]+))?/),d=!n&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===a,a="MacIntel"===a;return!n&&a&&t.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(r+"x"+i)&&(n=(n=e.match(/(Version)\/([\d.]+)/))||[0,1,"13_0_0"]),l&&!p&&(s.os="android",s.android=!0),(n||d||o)&&(s.os="ios",s.ios=!0),s}(e)}let e;function G(){return e=e||function(){const t=x();var e=d();let a=!1;function s(){var e=t.navigator.userAgent.toLowerCase();return 0<=e.indexOf("safari")&&e.indexOf("chrome")<0&&e.indexOf("android")<0}s()&&(r=String(t.navigator.userAgent)).includes("Version/")&&([r,i]=r.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e)),a=r<16||16===r&&i<2);var r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),i=s(),e=i||r&&e.ios;return{isSafari:a||i,needPerspectiveFix:a,need3dFix:e,isWebView:r}}()}const B=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};const f=(e,t,a)=>{t&&!e.classList.contains(a)?e.classList.add(a):!t&&e.classList.contains(a)&&e.classList.remove(a)};const n=(t,e)=>{if(!t||t.destroyed||!t.params)return;const a=e.closest(t.isElement?"swiper-slide":"."+t.params.slideClass);if(a){let e=a.querySelector("."+t.params.lazyPreloaderClass);!e&&t.isElement&&(a.shadowRoot?e=a.shadowRoot.querySelector("."+t.params.lazyPreloaderClass):requestAnimationFrame(()=>{a.shadowRoot&&(e=a.shadowRoot.querySelector("."+t.params.lazyPreloaderClass))&&e.remove()})),e&&e.remove()}},h=(e,t)=>{if(!e.slides[t])return;e=e.slides[t].querySelector('[loading="lazy"]');e&&e.removeAttribute("loading")},g=a=>{if(!a||a.destroyed||!a.params)return;var t=a.params.lazyPreloadPrevNext;var s=a.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const r="auto"===a.params.slidesPerView?a.slidesPerViewDynamic():Math.ceil(a.params.slidesPerView);var i=a.activeIndex;if(a.params.grid&&1<a.params.grid.rows){const o=i,d=[o-t];return d.push(...Array.from({length:t}).map((e,t)=>{return o+r+t})),void a.slides.forEach((e,t)=>{d.includes(e.column)&&h(a,t)})}var l=i+r-1;if(a.params.rewind||a.params.loop)for(let e=i-t;e<=l+t;e+=1){var n=(e%s+s)%s;(n<i||l<n)&&h(a,n)}else for(let e=Math.max(i-t,0);e<=Math.min(l+t,s-1);e+=1)e!==i&&(e>l||e<i)&&h(a,e)};function _(e){var{swiper:e,runCallbacks:t,direction:a,step:s}=e,{activeIndex:r,previousIndex:i}=e;let l=a;l=l||(i<r?"next":r<i?"prev":"reset"),e.emit("transition"+s),t&&r!==i&&("reset"===l?e.emit("slideResetTransition"+s):(e.emit("slideChangeTransition"+s),"next"===l?e.emit("slideNextTransition"+s):e.emit("slidePrevTransition"+s)))}function F(s,e){return function e(t){var a;return t&&t!==I()&&t!==x()&&((a=(t=t.assignedSlot||t).closest(s))||t.getRootNode)?a||e(t.getRootNode().host):null}(e=void 0===e?this:e)}function N(e,t,a){var s=x(),e=e["params"],r=e.edgeSwipeDetection,e=e.edgeSwipeThreshold;return!r||!(a<=e||a>=s.innerWidth-e)||"prevent"===r&&(t.preventDefault(),1)}function V(){const e=this;var t,a,s,r,{params:i,el:l}=e;l&&0===l.offsetWidth||(i.breakpoints&&e.setBreakpoint(),{allowSlideNext:l,allowSlidePrev:t,snapGrid:a}=e,s=e.virtual&&e.params.virtual.enabled,e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),r=s&&i.loop,!("auto"===i.slidesPerView||1<i.slidesPerView)||!e.isEnd||e.isBeginning||e.params.centeredSlides||r?e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=t,e.allowSlideNext=l,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow())}const H=(e,t)=>{var a=I();var{params:s,el:r,wrapperEl:i,device:l}=e;var n=!!s.nested;var o="on"===t?"addEventListener":"removeEventListener";if(!r||"string"==typeof r)return;a[o]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:n});r[o]("touchstart",e.onTouchStart,{passive:!1});r[o]("pointerdown",e.onTouchStart,{passive:!1});a[o]("touchmove",e.onTouchMove,{passive:!1,capture:n});a[o]("pointermove",e.onTouchMove,{passive:!1,capture:n});a[o]("touchend",e.onTouchEnd,{passive:!0});a[o]("pointerup",e.onTouchEnd,{passive:!0});a[o]("pointercancel",e.onTouchEnd,{passive:!0});a[o]("touchcancel",e.onTouchEnd,{passive:!0});a[o]("pointerout",e.onTouchEnd,{passive:!0});a[o]("pointerleave",e.onTouchEnd,{passive:!0});a[o]("contextmenu",e.onTouchEnd,{passive:!0});(s.preventClicks||s.preventClicksPropagation)&&r[o]("click",e.onClick,!0);s.cssMode&&i[o]("scroll",e.onScroll);s.updateOnWindowResize?e[t](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",V,!0):e[t]("observerUpdate",V,!0);r[o]("load",e.onLoad,{capture:!0})};const R=(e,t)=>{return e.grid&&t.grid&&1<t.grid.rows};var q={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};const b={eventsEmitter:{on(e,t,a){const s=this;if(s.eventsListeners&&!s.destroyed&&"function"==typeof t){const r=a?"unshift":"push";e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]);s.eventsListeners[e][r](t)})}return s},once(s,r,e){const i=this;return!i.eventsListeners||i.destroyed||"function"!=typeof r?i:(l.__emitterProxy=r,i.on(s,l,e));function l(){i.off(s,l),l.__emitterProxy&&delete l.__emitterProxy;for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];r.apply(i,t)}},onAny(e,t){var a=this;return a.eventsListeners&&!a.destroyed&&"function"==typeof e&&(t=t?"unshift":"push",a.eventsAnyListeners.indexOf(e)<0)&&a.eventsAnyListeners[t](e),a},offAny(e){var t=this;return t.eventsListeners&&!t.destroyed&&t.eventsAnyListeners&&0<=(e=t.eventsAnyListeners.indexOf(e))&&t.eventsAnyListeners.splice(e,1),t},off(e,s){const r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&e.split(" ").forEach(a=>{void 0===s?r.eventsListeners[a]=[]:r.eventsListeners[a]&&r.eventsListeners[a].forEach((e,t)=>{(e===s||e.__emitterProxy&&e.__emitterProxy===s)&&r.eventsListeners[a].splice(t,1)})}),r},emit(){const r=this;if(r.eventsListeners&&!r.destroyed&&r.eventsListeners){let e,a,s;for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];s="string"==typeof i[0]||Array.isArray(i[0])?(e=i[0],a=i.slice(1,i.length),r):(e=i[0].events,a=i[0].data,i[0].context||r),a.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(t=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(e=>{e.apply(s,[t,...a])});r.eventsListeners&&r.eventsListeners[t]&&r.eventsListeners[t].forEach(e=>{e.apply(s,a)})})}return r}},update:{updateSize:function(){var e=this;let t,a;var s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,a=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===a&&e.isVertical()||(t=t-parseInt($(s,"padding-left")||0,10)-parseInt($(s,"padding-right")||0,10),a=a-parseInt($(s,"padding-top")||0,10)-parseInt($(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(a)&&(a=0),Object.assign(e,{width:t,height:a,size:e.isHorizontal()?t:a}))},updateSlides:function(){const s=this;function r(e,t){return parseFloat(e.getPropertyValue(s.getDirectionLabel(t))||0)}const i=s.params,{wrapperEl:e,slidesEl:a,size:l,rtlTranslate:t,wrongRTL:_}=s;var n=s.virtual&&i.virtual.enabled,o=(n?s.virtual:s).slides.length;const d=W(a,`.${s.params.slideClass}, swiper-slide`);var p=(n?s.virtual.slides:d).length;let c=[];const u=[];var m=[];let v=i.slidesOffsetBefore,f=("function"==typeof v&&(v=i.slidesOffsetBefore.call(s)),i.slidesOffsetAfter);"function"==typeof f&&(f=i.slidesOffsetAfter.call(s));var F=s.snapGrid.length,N=s.slidesGrid.length;let h=i.spaceBetween,g=-v,b=0,w=0;if(void 0!==l){"string"==typeof h&&0<=h.indexOf("%")?h=parseFloat(h.replace("%",""))/100*l:"string"==typeof h&&(h=parseFloat(h)),s.virtualSize=-h,d.forEach(e=>{t?e.style.marginLeft="":e.style.marginRight="";e.style.marginBottom="";e.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(j(e,"--swiper-centered-offset-before",""),j(e,"--swiper-centered-offset-after",""));var y=i.grid&&1<i.grid.rows&&s.grid;y?s.grid.initSlides(d):s.grid&&s.grid.unsetSlides();let a;var T,S,E,x,C,M,L,P,k,V="auto"===i.slidesPerView&&i.breakpoints&&0<Object.keys(i.breakpoints).filter(e=>{return void 0!==i.breakpoints[e].slidesPerView}).length;for(let t=0;t<p;t+=1){a=0;let e;d[t]&&(e=d[t]),y&&s.grid.updateSlide(t,e,d),d[t]&&"none"===$(e,"display")||("auto"===i.slidesPerView?(V&&(d[t].style[s.getDirectionLabel("width")]=""),P=getComputedStyle(e),T=e.style.transform,S=e.style.webkitTransform,T&&(e.style.transform="none"),S&&(e.style.webkitTransform="none"),a=i.roundLengths?s.isHorizontal()?X(e,"width",!0):X(e,"height",!0):(E=r(P,"width"),x=r(P,"padding-left"),C=r(P,"padding-right"),M=r(P,"margin-left"),L=r(P,"margin-right"),(P=P.getPropertyValue("box-sizing"))&&"border-box"===P?E+M+L:({clientWidth:P,offsetWidth:k}=e,E+x+C+M+L+(k-P))),T&&(e.style.transform=T),S&&(e.style.webkitTransform=S),i.roundLengths&&(a=Math.floor(a))):(a=(l-(i.slidesPerView-1)*h)/i.slidesPerView,i.roundLengths&&(a=Math.floor(a)),d[t]&&(d[t].style[s.getDirectionLabel("width")]=a+"px")),d[t]&&(d[t].swiperSlideSize=a),m.push(a),i.centeredSlides?(g=g+a/2+b/2+h,0===b&&0!==t&&(g=g-l/2-h),0===t&&(g=g-l/2-h),Math.abs(g)<.001&&(g=0),i.roundLengths&&(g=Math.floor(g)),w%i.slidesPerGroup==0&&c.push(g),u.push(g)):(i.roundLengths&&(g=Math.floor(g)),(w-Math.min(s.params.slidesPerGroupSkip,w))%s.params.slidesPerGroup==0&&c.push(g),u.push(g),g=g+a+h),s.virtualSize+=a+h,b=a,w+=1)}if(s.virtualSize=Math.max(s.virtualSize,l)+f,t&&_&&("slide"===i.effect||"coverflow"===i.effect)&&(e.style.width=s.virtualSize+h+"px"),i.setWrapperSize&&(e.style[s.getDirectionLabel("width")]=s.virtualSize+h+"px"),y&&s.grid.updateWrapperSize(a,c),!i.centeredSlides){var I=[];for(let t=0;t<c.length;t+=1){let e=c[t];i.roundLengths&&(e=Math.floor(e)),c[t]<=s.virtualSize-l&&I.push(e)}c=I,1<Math.floor(s.virtualSize-l)-Math.floor(c[c.length-1])&&c.push(s.virtualSize-l)}if(n&&i.loop){var A=m[0]+h;if(1<i.slidesPerGroup){var H=Math.ceil((s.virtual.slidesBefore+s.virtual.slidesAfter)/i.slidesPerGroup),R=A*i.slidesPerGroup;for(let e=0;e<H;e+=1)c.push(c[c.length-1]+R)}for(let e=0;e<s.virtual.slidesBefore+s.virtual.slidesAfter;e+=1)1===i.slidesPerGroup&&c.push(c[c.length-1]+A),u.push(u[u.length-1]+A),s.virtualSize+=A}if(0===c.length&&(c=[0]),0!==h){const z=s.isHorizontal()&&t?"marginLeft":s.getDirectionLabel("marginRight");d.filter((e,t)=>{if(!i.cssMode||i.loop)return!0;if(t===d.length-1)return!1;return!0}).forEach(e=>{e.style[z]=h+"px"})}if(i.centeredSlides&&i.centeredSlidesBounds){let t=0;m.forEach(e=>{t+=e+(h||0)});const D=(t-=h)>l?t-l:0;c=c.map(e=>{if(e<=0)return-v;if(e>D)return D+f;return e})}if(i.centerInsufficientSlides){let t=0;m.forEach(e=>{t+=e+(h||0)}),t-=h;var O=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(t+O<l){const G=(l-t-O)/2;c.forEach((e,t)=>{c[t]=e-G}),u.forEach((e,t)=>{u[t]=e+G})}}if(Object.assign(s,{slides:d,snapGrid:c,slidesGrid:u,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){j(e,"--swiper-centered-offset-before",-c[0]+"px"),j(e,"--swiper-centered-offset-after",s.size/2-m[m.length-1]/2+"px");const B=-s.snapGrid[0],q=-s.slidesGrid[0];s.snapGrid=s.snapGrid.map(e=>e+B),s.slidesGrid=s.slidesGrid.map(e=>e+q)}p!==o&&s.emit("slidesLengthChange"),c.length!==F&&(s.params.watchOverflow&&s.checkOverflow(),s.emit("snapGridLengthChange")),u.length!==N&&s.emit("slidesGridLengthChange"),i.watchSlidesProgress&&s.updateSlidesOffset(),s.emit("slidesUpdated"),n||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect||(O=i.containerModifierClass+"backface-hidden",o=s.el.classList.contains(O),p<=i.maxBackfaceHiddenSlides?o||s.el.classList.add(O):o&&s.el.classList.remove(O))}},updateAutoHeight:function(e){const t=this,a=[],s=t.virtual&&t.params.virtual.enabled;let r=0,i;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);var l,n=e=>{if(s)return t.slides[t.getSlideIndexByData(e)];return t.slides[e]};if("auto"!==t.params.slidesPerView&&1<t.params.slidesPerView)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{a.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){var o=t.activeIndex+i;if(o>t.slides.length&&!s)break;a.push(n(o))}else a.push(n(t.activeIndex));for(i=0;i<a.length;i+=1)void 0!==a[i]&&(l=a[i].offsetHeight,r=l>r?l:r);!r&&0!==r||(t.wrapperEl.style.height=r+"px")},updateSlidesOffset:function(){var t=this,a=t.slides,s=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let e=0;e<a.length;e+=1)a[e].swiperSlideOffset=(t.isHorizontal()?a[e].offsetLeft:a[e].offsetTop)-s-t.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var r=this,i=r.params,{slides:l,rtlTranslate:n,snapGrid:o}=r;if(0!==l.length){void 0===l[0].swiperSlideOffset&&r.updateSlidesOffset();let a=n?e:-e,s=(r.visibleSlidesIndexes=[],r.visibleSlides=[],i.spaceBetween);"string"==typeof s&&0<=s.indexOf("%")?s=parseFloat(s.replace("%",""))/100*r.size:"string"==typeof s&&(s=parseFloat(s));for(let t=0;t<l.length;t+=1){var d=l[t];let e=d.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(e-=l[0].swiperSlideOffset);var p=(a+(i.centeredSlides?r.minTranslate():0)-e)/(d.swiperSlideSize+s),c=(a-o[0]+(i.centeredSlides?r.minTranslate():0)-e)/(d.swiperSlideSize+s),u=-(a-e),m=u+r.slidesSizesGrid[t],v=0<=u&&u<=r.size-r.slidesSizesGrid[t],u=0<=u&&u<r.size-1||1<m&&m<=r.size||u<=0&&m>=r.size;u&&(r.visibleSlides.push(d),r.visibleSlidesIndexes.push(t)),B(d,u,i.slideVisibleClass),B(d,v,i.slideFullyVisibleClass),d.progress=n?-p:p,d.originalProgress=n?-c:c}}},updateProgress:function(e){var t=this,a=(void 0===e&&(a=t.rtlTranslate?-1:1,e=t&&t.translate&&t.translate*a||0),t.params),s=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:i,isEnd:l,progressLoop:n}=t;var o,d,p,c=i,u=l;0==s?(r=0,i=!0,l=!0):(r=(e-t.minTranslate())/s,s=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1,i=s||r<=0,l=o||1<=r,s&&(r=0),o&&(r=1)),a.loop&&(s=t.getSlideIndexByData(0),o=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[s],o=t.slidesGrid[o],d=t.slidesGrid[t.slidesGrid.length-1],p=Math.abs(e),1<(n=s<=p?(p-s)/d:(p+d-o)/d))&&--n,Object.assign(t,{progress:r,progressLoop:n,isBeginning:i,isEnd:l}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),i&&!c&&t.emit("reachBeginning toEdge"),l&&!u&&t.emit("reachEnd toEdge"),(c&&!i||u&&!l)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){var t=this;const{slides:e,params:a,slidesEl:s,activeIndex:r}=t;var i=t.virtual&&a.virtual.enabled,l=t.grid&&a.grid&&1<a.grid.rows,n=e=>{return W(s,`.${a.slideClass}${e}, swiper-slide`+e)[0]};let o,d,p;if(i)if(a.loop){let e=r-t.virtual.slidesBefore;(e=e<0?t.virtual.slides.length+e:e)>=t.virtual.slides.length&&(e-=t.virtual.slides.length),o=n(`[data-swiper-slide-index="${e}"]`)}else o=n(`[data-swiper-slide-index="${r}"]`);else l?(o=e.find(e=>e.column===r),p=e.find(e=>e.column===r+1),d=e.find(e=>e.column===r-1)):o=e[r];o&&!l&&(p=function(e,t){for(var a=[];e.nextElementSibling;){var s=e.nextElementSibling;(!t||s.matches(t))&&a.push(s),e=s}return a}(o,`.${a.slideClass}, swiper-slide`)[0],a.loop&&!p&&(p=e[0]),d=function(e,t){for(var a=[];e.previousElementSibling;){var s=e.previousElementSibling;(!t||s.matches(t))&&a.push(s),e=s}return a}(o,`.${a.slideClass}, swiper-slide`)[0],a.loop)&&0===!d&&(d=e[e.length-1]),e.forEach(e=>{f(e,e===o,a.slideActiveClass);f(e,e===p,a.slideNextClass);f(e,e===d,a.slidePrevClass)}),t.emitSlidesClasses()},updateActiveIndex:function(e){const a=this;var s=a.rtlTranslate?a.translate:-a.translate,{snapGrid:r,params:i,activeIndex:l,realIndex:n,snapIndex:o}=a;let d=e,p;if(e=e=>{let t=e-a.virtual.slidesBefore;t<0&&(t=a.virtual.slides.length+t);t>=a.virtual.slides.length&&(t-=a.virtual.slides.length);return t},void 0===d&&(d=function(e){var{slidesGrid:t,params:a}=e,s=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?r=e:s>=t[e]&&s<t[e+1]&&(r=e+1):s>=t[e]&&(r=e);return r=a.normalizeSlideIndex&&(r<0||void 0===r)?0:r}(a)),(p=0<=r.indexOf(s)?r.indexOf(s):(s=Math.min(i.slidesPerGroupSkip,d))+Math.floor((d-s)/i.slidesPerGroup))>=r.length&&(p=r.length-1),d!==l||a.params.loop)if(d===l&&a.params.loop&&a.virtual&&a.params.virtual.enabled)a.realIndex=e(d);else{s=a.grid&&i.grid&&1<i.grid.rows;let t;if(a.virtual&&i.virtual.enabled&&i.loop)t=e(d);else if(s){r=a.slides.find(e=>e.column===d);let e=parseInt(r.getAttribute("data-swiper-slide-index"),10);Number.isNaN(e)&&(e=Math.max(a.slides.indexOf(r),0)),t=Math.floor(e/i.grid.rows)}else t=a.slides[d]&&(e=a.slides[d].getAttribute("data-swiper-slide-index"),e)?parseInt(e,10):d;Object.assign(a,{previousSnapIndex:o,snapIndex:p,previousRealIndex:n,realIndex:t,previousIndex:l,activeIndex:d}),a.initialized&&g(a),a.emit("activeIndexChange"),a.emit("snapIndexChange"),(a.initialized||a.params.runCallbacksOnInit)&&(n!==t&&a.emit("realIndexChange"),a.emit("slideChange"))}else p!==o&&(a.snapIndex=p,a.emit("snapIndexChange"))},updateClickedSlide:function(e,t){var a=this;const s=a.params;let r=e.closest(`.${s.slideClass}, swiper-slide`),i=(!r&&a.isElement&&t&&1<t.length&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(r=e)}),!1),l;if(r)for(let e=0;e<a.slides.length;e+=1)if(a.slides[e]===r){i=!0,l=e;break}r&&i?(a.clickedSlide=r,a.virtual&&a.params.virtual.enabled?a.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):a.clickedIndex=l,s.slideToClickedSlide&&void 0!==a.clickedIndex&&a.clickedIndex!==a.activeIndex&&a.slideToClickedSlide()):(a.clickedSlide=void 0,a.clickedIndex=void 0)}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var{params:t,rtlTranslate:a,translate:s,wrapperEl:r}=this;if(t.virtualTranslate)return a?-s:s;if(t.cssMode)return s;let i=S(r,e);return i+=this.cssOverflowAdjustment(),(i=a?-i:i)||0},setTranslate:function(e,t){var a=this,{rtlTranslate:s,params:r,wrapperEl:i,progress:l}=a;let n=0,o=0;a.isHorizontal()?n=s?-e:e:o=e,r.roundLengths&&(n=Math.floor(n),o=Math.floor(o)),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?n:o,r.cssMode?i[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-n:-o:r.virtualTranslate||(a.isHorizontal()?n-=a.cssOverflowAdjustment():o-=a.cssOverflowAdjustment(),i.style.transform=`translate3d(${n}px, ${o}px, 0px)`);let d;s=a.maxTranslate()-a.minTranslate(),(d=0==s?0:(e-a.minTranslate())/s)!==l&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,a,s,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===a&&(a=!0),void 0===s&&(s=!0);const i=this;var{params:l,wrapperEl:n}=i;if(i.animating&&l.preventInteractionOnTransition)return!1;var o=i.minTranslate(),d=i.maxTranslate();let p;if(p=s&&o<e?o:s&&e<d?d:e,i.updateProgress(p),l.cssMode){o=i.isHorizontal();if(0===t)n[o?"scrollLeft":"scrollTop"]=-p;else{if(!i.support.smoothScroll)return L({swiper:i,targetPosition:-p,side:o?"left":"top"}),!0;n.scrollTo({[o?"left":"top"]:-p,behavior:"smooth"})}}else 0===t?(i.setTransition(0),i.setTranslate(p),a&&(i.emit("beforeTransitionStart",t,r),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(p),a&&(i.emit("beforeTransitionStart",t,r),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,i.animating=!1,a)&&i.emit("transitionEnd")}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd)));return!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=e+"ms",this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var a=this["params"];a.cssMode||(a.autoHeight&&this.updateAutoHeight(),_({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);var a=this["params"];this.animating=!1,a.cssMode||(this.setTransition(0),_({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,a,s,r){void 0===a&&(a=!0),"string"==typeof(e=void 0===e?0:e)&&(e=parseInt(e,10));const i=this;let l=e;l<0&&(l=0);const{params:n,snapGrid:o,slidesGrid:d,previousIndex:p,activeIndex:c,rtlTranslate:u,wrapperEl:m,enabled:v}=i;if(!v&&!s&&!r||i.destroyed||i.animating&&n.preventInteractionOnTransition)return!1;void 0===t&&(t=i.params.speed);let f=(e=Math.min(i.params.slidesPerGroupSkip,l))+Math.floor((l-e)/i.params.slidesPerGroup);var h=-o[f=f>=o.length?o.length-1:f];if(n.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){var g=-Math.floor(100*h),b=Math.floor(100*d[e]),w=Math.floor(100*d[e+1]);void 0!==d[e+1]?b<=g&&g<w-(w-b)/2?l=e:b<=g&&g<w&&(l=e+1):b<=g&&(l=e)}if(i.initialized&&l!==c){if(!i.allowSlideNext&&(u?h>i.translate&&h>i.minTranslate():h<i.translate&&h<i.minTranslate()))return!1;if(!i.allowSlidePrev&&h>i.translate&&h>i.maxTranslate()&&(c||0)!==l)return!1}l!==(p||0)&&a&&i.emit("beforeSlideChangeStart"),i.updateProgress(h);let y;if(y=l>c?"next":l<c?"prev":"reset",!((e=i.virtual&&i.params.virtual.enabled)&&r)&&(u&&-h===i.translate||!u&&h===i.translate))return i.updateActiveIndex(l),n.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==n.effect&&i.setTranslate(h),"reset"!==y&&(i.transitionStart(a,y),i.transitionEnd(a,y)),!1;if(n.cssMode){const S=i.isHorizontal(),E=u?h:-h;if(0===t)e&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),e&&!i._cssModeVirtualInitialSet&&0<i.params.initialSlide?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[S?"scrollLeft":"scrollTop"]=E})):m[S?"scrollLeft":"scrollTop"]=E,e&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="";i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return L({swiper:i,targetPosition:E,side:S?"left":"top"}),!0;m.scrollTo({[S?"left":"top"]:E,behavior:"smooth"})}}else{var T=G().isSafari;e&&!r&&T&&i.isElement&&i.virtual.update(!1,!1,l),i.setTransition(t),i.setTranslate(h),i.updateActiveIndex(l),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,s),i.transitionStart(a,y),0===t?i.transitionEnd(a,y):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(a,y))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd))}return!0},slideToLoop:function(r,e,t,i){void 0===t&&(t=!0),"string"==typeof(r=void 0===r?0:r)&&(r=parseInt(r,10));const l=this;if(!l.destroyed){void 0===e&&(e=l.params.speed);var n=l.grid&&l.params.grid&&1<l.params.grid.rows;let s=r;if(l.params.loop)if(l.virtual&&l.params.virtual.enabled)s+=l.virtual.slidesBefore;else{let e;if(n){const d=s*l.params.grid.rows;e=l.slides.find(e=>+e.getAttribute("data-swiper-slide-index")==d).column}else e=l.getSlideIndexByData(s);var r=n?Math.ceil(l.slides.length/l.params.grid.rows):l.slides.length,o=l.params["centeredSlides"];let t=l.params.slidesPerView,a=("auto"===t?t=l.slidesPerViewDynamic():(t=Math.ceil(parseFloat(l.params.slidesPerView,10)),o&&t%2==0&&(t+=1)),r-e<t);if(o&&(a=a||e<Math.ceil(t/2)),(a=i&&o&&"auto"!==l.params.slidesPerView&&!n?!1:a)&&(o=o?e<l.activeIndex?"prev":"next":e-l.activeIndex-1<l.params.slidesPerView?"next":"prev",l.loopFix({direction:o,slideTo:!0,activeSlideIndex:"next"==o?e+1:e-r+1,slideRealIndex:"next"==o?l.realIndex:void 0})),n){const p=s*l.params.grid.rows;s=l.slides.find(e=>+e.getAttribute("data-swiper-slide-index")==p).column}else s=l.getSlideIndexByData(s)}return requestAnimationFrame(()=>{l.slideTo(s,e,t,i)}),l}},slideNext:function(e,t,a){void 0===t&&(t=!0);const s=this;var{enabled:r,params:i,animating:l}=s;if(!r||s.destroyed)return s;void 0===e&&(e=s.params.speed);let n=i.slidesPerGroup;"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(n=Math.max(s.slidesPerViewDynamic("current",!0),1));const o=s.activeIndex<i.slidesPerGroupSkip?1:n;if(r=s.virtual&&i.virtual.enabled,i.loop){if(l&&!r&&i.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&i.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+o,e,t,a)}),!0}return i.rewind&&s.isEnd?s.slideTo(0,e,t,a):s.slideTo(s.activeIndex+o,e,t,a)},slidePrev:function(e,t,a){void 0===t&&(t=!0);const s=this;var{params:r,snapGrid:i,slidesGrid:l,rtlTranslate:n,enabled:o,animating:d}=s;if(!o||s.destroyed)return s;if(void 0===e&&(e=s.params.speed),o=s.virtual&&r.virtual.enabled,r.loop){if(d&&!o&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const c=p(n?s.translate:-s.translate);d=i.map(e=>p(e)),o=r.freeMode&&r.freeMode.enabled;let u=i[d.indexOf(c)-1];if(void 0===u&&(r.cssMode||o)){let a;i.forEach((e,t)=>{c>=e&&(a=t)}),void 0!==a&&(u=o?i[a]:i[0<a?a-1:a])}let m=0;return void 0!==u&&((m=l.indexOf(u))<0&&(m=s.activeIndex-1),"auto"===r.slidesPerView)&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0)),r.rewind&&s.isBeginning?(n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1,s.slideTo(n,e,t,a)):r.loop&&0===s.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{s.slideTo(m,e,t,a)}),!0):s.slideTo(m,e,t,a)},slideReset:function(e,t,a){if(void 0===t&&(t=!0),!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,a)},slideToClosest:function(t,a,s,r){void 0===a&&(a=!0),void 0===r&&(r=.5);var i=this;if(!i.destroyed){void 0===t&&(t=i.params.speed);let e=i.activeIndex;var l,n=Math.min(i.params.slidesPerGroupSkip,e),n=n+Math.floor((e-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;return o>=i.snapGrid[n]?(l=i.snapGrid[n],(i.snapGrid[n+1]-l)*r<o-l&&(e+=i.params.slidesPerGroup)):o-(l=i.snapGrid[n-1])<=(i.snapGrid[n]-l)*r&&(e-=i.params.slidesPerGroup),e=Math.max(e,0),e=Math.min(e,i.slidesGrid.length-1),i.slideTo(e,t,a,s)}},slideToClickedSlide:function(){const t=this;if(!t.destroyed){var a,{params:s,slidesEl:r}=t,i="auto"===s.slidesPerView?t.slidesPerViewDynamic():s.slidesPerView;let e=t.clickedIndex;var l=t.isElement?"swiper-slide":"."+s.slideClass;s.loop?t.animating||(a=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),s.centeredSlides?e<t.loopedSlides-i/2||e>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),e=t.getSlideIndex(W(r,l+`[data-swiper-slide-index="${a}"]`)[0]),M(()=>{t.slideTo(e)})):t.slideTo(e):e>t.slides.length-i?(t.loopFix(),e=t.getSlideIndex(W(r,l+`[data-swiper-slide-index="${a}"]`)[0]),M(()=>{t.slideTo(e)})):t.slideTo(e)):t.slideTo(e)}}},loop:{loopCreate:function(e,t){const s=this,{params:r,slidesEl:a}=s;var i,l,n,o,d;!r.loop||s.virtual&&s.params.virtual.enabled||(i=()=>{var e=W(a,`.${r.slideClass}, swiper-slide`);e.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},o=s.grid&&r.grid&&1<r.grid.rows,l=r.slidesPerGroup*(o?r.grid.rows:1),n=s.slides.length%l!=0,o=o&&s.slides.length%r.grid.rows!=0,d=t=>{for(let e=0;e<t;e+=1){var a=s.isElement?P("swiper-slide",[r.slideBlankClass]):P("div",[r.slideClass,r.slideBlankClass]);s.slidesEl.append(a)}},n?r.loopAddBlankSlides?(d(l-s.slides.length%l),s.recalcSlides(),s.updateSlides()):D("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):o&&(r.loopAddBlankSlides?(d(r.grid.rows-s.slides.length%r.grid.rows),s.recalcSlides(),s.updateSlides()):D("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),i(),s.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t}))},loopFix:function(i){let{slideRealIndex:l,slideTo:n=!0,direction:o,setTranslate:d,activeSlideIndex:p,initial:c,byController:u,byMousewheel:m}=void 0===i?{}:i;const v=this;if(v.params.loop){v.emit("beforeLoopFix");const{slides:M,allowSlidePrev:L,allowSlideNext:P,slidesEl:k,params:I}=v;var{centeredSlides:i,initialSlide:f}=I;if(v.allowSlidePrev=!0,v.allowSlideNext=!0,v.virtual&&I.virtual.enabled)n&&(I.centeredSlides||0!==v.snapIndex?I.centeredSlides&&v.snapIndex<I.slidesPerView?v.slideTo(v.virtual.slides.length+v.snapIndex,0,!1,!0):v.snapIndex===v.snapGrid.length-1&&v.slideTo(v.virtual.slidesBefore,0,!1,!0):v.slideTo(v.virtual.slides.length,0,!1,!0)),v.allowSlidePrev=L,v.allowSlideNext=P;else{let e=I.slidesPerView;"auto"===e?e=v.slidesPerViewDynamic():(e=Math.ceil(parseFloat(I.slidesPerView,10)),i&&e%2==0&&(e+=1));var h=I.slidesPerGroupAuto?e:I.slidesPerGroup;let t=h;t%h!=0&&(t+=h-t%h),t+=I.loopAdditionalSlides,v.loopedSlides=t;var g=v.grid&&I.grid&&1<I.grid.rows,b=(M.length<e+t||"cards"===v.params.effect&&M.length<e+2*t?D("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):g&&"row"===I.grid.fill&&D("Swiper Loop Warning: Loop mode is not compatible with grid.fill=`row`"),[]);const A=[];var w=g?Math.ceil(M.length/I.grid.rows):M.length,y=c&&w-f<e&&!i;let a=y?f:v.activeIndex;void 0===p?p=v.getSlideIndex(M.find(e=>e.classList.contains(I.slideActiveClass))):a=p;var T="next"===o||!o,S="prev"===o||!o;let s=0,r=0;var E=(g?M[p].column:p)+(i&&void 0===d?-e/2+.5:0);if(E<t){s=Math.max(t-E,h);for(let e=0;e<t-E;e+=1){var x=e-Math.floor(e/w)*w;if(g){var C=w-x-1;for(let e=M.length-1;0<=e;--e)M[e].column===C&&b.push(e)}else b.push(w-x-1)}}else if(E+e>w-t){r=Math.max(E-(w-2*t),h),y&&(r=Math.max(r,e-w+f+1));for(let e=0;e<r;e+=1){const O=e-Math.floor(e/w)*w;g?M.forEach((e,t)=>{e.column===O&&A.push(t)}):A.push(O)}}if(v.__preventObserver__=!0,requestAnimationFrame(()=>{v.__preventObserver__=!1}),"cards"===v.params.effect&&M.length<e+2*t&&(A.includes(p)&&A.splice(A.indexOf(p),1),b.includes(p))&&b.splice(b.indexOf(p),1),S&&b.forEach(e=>{M[e].swiperLoopMoveDOM=!0;k.prepend(M[e]);M[e].swiperLoopMoveDOM=!1}),T&&A.forEach(e=>{M[e].swiperLoopMoveDOM=!0;k.append(M[e]);M[e].swiperLoopMoveDOM=!1}),v.recalcSlides(),"auto"===I.slidesPerView?v.updateSlides():g&&(0<b.length&&S||0<A.length&&T)&&v.slides.forEach((e,t)=>{v.grid.updateSlide(t,e,v.slides)}),I.watchSlidesProgress&&v.updateSlidesOffset(),n&&(0<b.length&&S?void 0===l?(i=v.slidesGrid[a],h=v.slidesGrid[a+s]-i,m?v.setTranslate(v.translate-h):(v.slideTo(a+Math.ceil(s),0,!1,!0),d&&(v.touchEventsData.startTranslate=v.touchEventsData.startTranslate-h,v.touchEventsData.currentTranslate=v.touchEventsData.currentTranslate-h))):d&&(y=g?b.length/I.grid.rows:b.length,v.slideTo(v.activeIndex+y,0,!1,!0),v.touchEventsData.currentTranslate=v.translate):0<A.length&&T&&(void 0===l?(f=v.slidesGrid[a],S=v.slidesGrid[a-r]-f,m?v.setTranslate(v.translate-S):(v.slideTo(a-r,0,!1,!0),d&&(v.touchEventsData.startTranslate=v.touchEventsData.startTranslate-S,v.touchEventsData.currentTranslate=v.touchEventsData.currentTranslate-S))):(i=g?A.length/I.grid.rows:A.length,v.slideTo(v.activeIndex-i,0,!1,!0)))),v.allowSlidePrev=L,v.allowSlideNext=P,v.controller&&v.controller.control&&!u){const z={slideRealIndex:l,direction:o,setTranslate:d,activeSlideIndex:p,byController:!0};Array.isArray(v.controller.control)?v.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...z,slideTo:e.params.slidesPerView===I.slidesPerView&&n})}):v.controller.control instanceof v.constructor&&v.controller.control.params.loop&&v.controller.control.loopFix({...z,slideTo:v.controller.control.params.slidesPerView===I.slidesPerView&&n})}}v.emit("loopFix")}},loopDestroy:function(){var e=this;const{params:t,slidesEl:a}=e;if(t.loop&&a&&(!e.virtual||!e.params.virtual.enabled)){e.recalcSlides();const s=[];e.slides.forEach(e=>{var t=void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),s.forEach(e=>{a.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}}},grabCursor:{setGrabCursor:function(e){const t=this;var a;!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(a="container"===t.params.touchEventsTarget?t.el:t.wrapperEl,t.isElement&&(t.__preventObserver__=!0),a.style.cursor="move",a.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){var e=this,t=e["params"];e.onTouchStart=function(a){var s=this,r=I();let i=a;if(i.originalEvent&&(i=i.originalEvent),a=s.touchEventsData,"pointerdown"===i.type){if(null!==a.pointerId&&a.pointerId!==i.pointerId)return;a.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(a.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)N(s,i,i.targetTouches[0].pageX);else{var{params:l,touches:n,enabled:o}=s;if(o&&(l.simulateTouch||"mouse"!==i.pointerType)&&(!s.animating||!l.preventInteractionOnTransition)){!s.animating&&l.cssMode&&l.loop&&s.loopFix();let t=i.target;if(("wrapper"!==l.touchEventsTarget||E(t,s.wrapperEl))&&!("which"in i&&3===i.which||"button"in i&&0<i.button||a.isTouched&&a.isMoved)){var o=!!l.noSwipingClass&&""!==l.noSwipingClass,d=i.composedPath?i.composedPath():i.path,o=(o&&i.target&&i.target.shadowRoot&&d&&(t=d[0]),l.noSwipingSelector||"."+l.noSwipingClass),d=!(!i.target||!i.target.shadowRoot);if(l.noSwiping&&(d?F(o,t):t.closest(o)))s.allowClick=!0;else if(!l.swipeHandler||t.closest(l.swipeHandler)){n.currentX=i.pageX,n.currentY=i.pageY;d=n.currentX,o=n.currentY;if(N(s,i,d)){Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=d,n.startY=o,a.touchStartTime=m(),s.allowClick=!0,s.updateSize(),s.swipeDirection=void 0,0<l.threshold&&(a.allowThresholdMove=!1);let e=!0;t.matches(a.focusableElements)&&(e=!1,"SELECT"===t.nodeName)&&(a.isTouched=!1),r.activeElement&&r.activeElement.matches(a.focusableElements)&&r.activeElement!==t&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!t.matches(a.focusableElements))&&r.activeElement.blur();d=e&&s.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!d||t.isContentEditable||i.preventDefault(),l.freeMode&&l.freeMode.enabled&&s.freeMode&&s.animating&&!l.cssMode&&s.freeMode.onTouchStart(),s.emit("touchStart",i)}}}}}}.bind(e),e.onTouchMove=function(t){var r=I(),i=this;const l=i.touchEventsData;var{params:n,touches:o,rtlTranslate:d,enabled:p}=i;if(p&&(n.simulateTouch||"mouse"!==t.pointerType)){let s=t;if("pointermove"===(s=s.originalEvent?s.originalEvent:s).type){if(null!==l.touchId)return;if(s.pointerId!==l.pointerId)return}let e;if("touchmove"===s.type){if(!(e=[...s.changedTouches].find(e=>e.identifier===l.touchId))||e.identifier!==l.touchId)return}else e=s;if(l.isTouched){p=e.pageX,t=e.pageY;if(s.preventedByNestedSwiper)o.startX=p,o.startY=t;else if(i.allowTouchMove){if(n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(t<o.startY&&i.translate<=i.maxTranslate()||t>o.startY&&i.translate>=i.minTranslate())return l.isTouched=!1,void(l.isMoved=!1)}else{if(d&&(p>o.startX&&-i.translate<=i.maxTranslate()||p<o.startX&&-i.translate>=i.minTranslate()))return;if(!d&&(p<o.startX&&i.translate<=i.maxTranslate()||p>o.startX&&i.translate>=i.minTranslate()))return}if(r.activeElement&&r.activeElement.matches(l.focusableElements)&&r.activeElement!==s.target&&"mouse"!==s.pointerType&&r.activeElement.blur(),r.activeElement&&s.target===r.activeElement&&s.target.matches(l.focusableElements))l.isMoved=!0,i.allowClick=!1;else{l.allowTouchCallbacks&&i.emit("touchMove",s),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=p,o.currentY=t;var r=o.currentX-o.startX,c=o.currentY-o.startY;if(!(i.params.threshold&&Math.sqrt(r**2+c**2)<i.params.threshold))if(void 0===l.isScrolling&&(i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX?l.isScrolling=!1:25<=r*r+c*c&&(u=180*Math.atan2(Math.abs(c),Math.abs(r))/Math.PI,l.isScrolling=i.isHorizontal()?u>n.touchAngle:90-u>n.touchAngle)),l.isScrolling&&i.emit("touchMoveOpposite",s),void 0!==l.startMoving||o.currentX===o.startX&&o.currentY===o.startY||(l.startMoving=!0),l.isScrolling||"touchmove"===s.type&&l.preventTouchMoveFromPointerMove)l.isTouched=!1;else if(l.startMoving){i.allowClick=!1,!n.cssMode&&s.cancelable&&s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation();let a=i.isHorizontal()?r:c,e=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;n.oneWayMovement&&(a=Math.abs(a)*(d?1:-1),e=Math.abs(e)*(d?1:-1)),o.diff=a,a*=n.touchRatio,d&&(a=-a,e=-e);var u=i.touchesDirection,r=(i.swipeDirection=0<a?"prev":"next",i.touchesDirection=0<e?"prev":"next",i.params.loop&&!n.cssMode),c="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(l.isMoved||(r&&c&&i.loopFix({direction:i.swipeDirection}),l.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&(d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}}),i.wrapperEl.dispatchEvent(d)),l.allowMomentumBounce=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",s)),(new Date).getTime(),!1!==n._loopSwapReset&&l.isMoved&&l.allowThresholdMove&&u!==i.touchesDirection&&r&&c&&1<=Math.abs(a))Object.assign(o,{startX:p,startY:t,currentX:p,currentY:t,startTranslate:l.currentTranslate}),l.loopSwapReset=!0,l.startTranslate=l.currentTranslate;else{i.emit("sliderMove",s),l.isMoved=!0,l.currentTranslate=a+l.startTranslate;let e=!0,t=n.resistanceRatio;if(n.touchReleaseOnEdges&&(t=0),0<a?(r&&c&&l.allowThresholdMove&&l.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==n.slidesPerView&&2<=i.slides.length-n.slidesPerView?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),l.currentTranslate>i.minTranslate()&&(e=!1,n.resistance)&&(l.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+l.startTranslate+a)**t)):a<0&&(r&&c&&l.allowThresholdMove&&l.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==n.slidesPerView&&2<=i.slides.length-n.slidesPerView?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===n.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),l.currentTranslate<i.maxTranslate())&&(e=!1,n.resistance)&&(l.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-l.startTranslate-a)**t),e&&(s.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&l.currentTranslate<l.startTranslate&&(l.currentTranslate=l.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&l.currentTranslate>l.startTranslate&&(l.currentTranslate=l.startTranslate),i.allowSlidePrev||i.allowSlideNext||(l.currentTranslate=l.startTranslate),0<n.threshold){if(!(Math.abs(a)>n.threshold||l.allowThresholdMove))return void(l.currentTranslate=l.startTranslate);if(!l.allowThresholdMove)return l.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,l.currentTranslate=l.startTranslate,void(o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(l.currentTranslate),i.setTranslate(l.currentTranslate))}}}}else s.target.matches(l.focusableElements)||(i.allowClick=!1),l.isTouched&&(Object.assign(o,{startX:p,startY:t,currentX:p,currentY:t}),l.touchStartTime=m())}else l.startMoving&&l.isScrolling&&i.emit("touchMoveOpposite",s)}}.bind(e),e.onTouchEnd=function(e){const i=this,t=i.touchEventsData;let l=e,a;if("touchend"===(l=l.originalEvent?l.originalEvent:l).type||"touchcancel"===l.type){if(!(a=[...l.changedTouches].find(e=>e.identifier===t.touchId))||a.identifier!==t.touchId)return}else{if(null!==t.touchId)return;if(l.pointerId!==t.pointerId)return;a=l}if(!["pointercancel","pointerout","pointerleave","contextmenu"].includes(l.type)||["pointercancel","contextmenu"].includes(l.type)&&(i.browser.isSafari||i.browser.isWebView)){t.pointerId=null,t.touchId=null;var{params:n,touches:e,rtlTranslate:s,slidesGrid:o,enabled:r}=i;if(r&&(n.simulateTouch||"mouse"!==l.pointerType))if(t.allowTouchCallbacks&&i.emit("touchEnd",l),t.allowTouchCallbacks=!1,t.isTouched){n.grabCursor&&t.isMoved&&t.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);var r=m(),d=r-t.touchStartTime;if(i.allowClick&&(c=l.path||l.composedPath&&l.composedPath(),i.updateClickedSlide(c&&c[0]||l.target,c),i.emit("tap click",l),d<300)&&r-t.lastClickTime<300&&i.emit("doubleTap doubleClick",l),t.lastClickTime=m(),M(()=>{i.destroyed||(i.allowClick=!0)}),t.isTouched&&t.isMoved&&i.swipeDirection&&(0!==e.diff||t.loopSwapReset)&&(t.currentTranslate!==t.startTranslate||t.loopSwapReset)){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let r;if(r=n.followFinger?s?i.translate:-i.translate:-t.currentTranslate,!n.cssMode)if(n.freeMode&&n.freeMode.enabled)i.freeMode.onTouchEnd({currentPos:r});else{var p=r>=-i.maxTranslate()&&!i.params.loop;let t=0,a=i.slidesSizesGrid[0];for(let e=0;e<o.length;e+=e<n.slidesPerGroupSkip?1:n.slidesPerGroup){const u=e<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==o[e+u]?(p||r>=o[e]&&r<o[e+u])&&(t=e,a=o[e+u]-o[e]):(p||r>=o[e])&&(t=e,a=o[o.length-1]-o[o.length-2])}let e=null,s=null;n.rewind&&(i.isBeginning?s=n.virtual&&n.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(e=0));var c=(r-o[t])/a;const u=t<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;d>n.longSwipesMs?n.longSwipes?("next"===i.swipeDirection&&(c>=n.longSwipesRatio?i.slideTo(n.rewind&&i.isEnd?e:t+u):i.slideTo(t)),"prev"===i.swipeDirection&&(c>1-n.longSwipesRatio?i.slideTo(t+u):null!==s&&c<0&&Math.abs(c)>n.longSwipesRatio?i.slideTo(s):i.slideTo(t))):i.slideTo(i.activeIndex):n.shortSwipes?i.navigation&&(l.target===i.navigation.nextEl||l.target===i.navigation.prevEl)?l.target===i.navigation.nextEl?i.slideTo(t+u):i.slideTo(t):("next"===i.swipeDirection&&i.slideTo(null!==e?e:t+u),"prev"===i.swipeDirection&&i.slideTo(null!==s?s:t)):i.slideTo(i.activeIndex)}}else t.isTouched=!1,t.isMoved=!1,t.startMoving=!1}else t.isMoved&&n.grabCursor&&i.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1}}.bind(e),e.onDocumentTouchStart=function(){this.documentTouchHandlerProceeded||(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}.bind(e),t.cssMode&&(e.onScroll=function(){var t=this,{wrapperEl:a,rtlTranslate:s,enabled:r}=t;if(r){t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-a.scrollLeft:t.translate=-a.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let e;r=t.maxTranslate()-t.minTranslate();(e=0==r?0:(t.translate-t.minTranslate())/r)!==t.progress&&t.updateProgress(s?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}.bind(e)),e.onClick=function(e){var t=this;t.enabled&&!t.allowClick&&(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation)&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())}.bind(e),e.onLoad=function(e){var t=this;n(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}.bind(e),H(e,"on")},detachEvents:function(){H(this,"off")}},breakpoints:{setBreakpoint:function(){const s=this,{realIndex:e,initialized:t,params:r,el:a}=s;if((n=r.breakpoints)&&0!==Object.keys(n).length){var i=I(),l="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,i=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?s.el:i.querySelector(r.breakpointsBase),l=s.getBreakpoint(n,l,i);if(l&&s.currentBreakpoint!==l){const c=(l in n?n[l]:void 0)||s.originalParams;var i=R(s,r),n=R(s,c),o=s.params.grabCursor,d=c.grabCursor,p=r.enabled,i=(i&&!n?(a.classList.remove(r.containerModifierClass+"grid",r.containerModifierClass+"grid-column"),s.emitContainerClasses()):!i&&n&&(a.classList.add(r.containerModifierClass+"grid"),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===r.grid.fill)&&a.classList.add(r.containerModifierClass+"grid-column"),s.emitContainerClasses()),o&&!d?s.unsetGrabCursor():!o&&d&&s.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(e=>{if(void 0===c[e])return;var t=r[e]&&r[e].enabled;var a=c[e]&&c[e].enabled;t&&!a&&s[e].disable();!t&&a&&s[e].enable()}),c.direction&&c.direction!==r.direction),n=r.loop&&(c.slidesPerView!==r.slidesPerView||i),o=r.loop,d=(i&&t&&s.changeDirection(),u(s.params,c),s.params.enabled),i=s.params.loop;Object.assign(s,{allowTouchMove:s.params.allowTouchMove,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev}),p&&!d?s.disable():!p&&d&&s.enable(),s.currentBreakpoint=l,s.emit("_beforeBreakpoint",c),t&&(n?(s.loopDestroy(),s.loopCreate(e),s.updateSlides()):!o&&i?(s.loopCreate(e),s.updateSlides()):o&&!i&&s.loopDestroy()),s.emit("breakpoint",c)}}},getBreakpoint:function(e,a,s){if(void 0===a&&(a="window"),e&&("container"!==a||s)){let t=!1;var r=x();const o="window"===a?r.innerHeight:s.clientHeight;var i=Object.keys(e).map(e=>{{var t;if("string"==typeof e&&0===e.indexOf("@"))return t=parseFloat(e.substr(1)),{value:o*t,point:e}}return{value:e,point:e}});i.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<i.length;e+=1){var{point:l,value:n}=i[e];"window"===a?r.matchMedia(`(min-width: ${n}px)`).matches&&(t=l):n<=s.clientWidth&&(t=l)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e,t=this,{isLocked:a,params:s}=t,r=s["slidesOffsetBefore"];r?(e=t.slides.length-1,e=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*r,t.isLocked=t.size>e):t.isLocked=1===t.snapGrid.length,!0===s.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===s.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),a&&a!==t.isLocked&&(t.isEnd=!1),a!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var{classNames:e,params:t,rtl:a,el:s,device:r}=this,a=function(e,a){const s=[];return e.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(e=>{t[e]&&s.push(a+e)}):"string"==typeof t&&s.push(a+t)}),s}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:a},{grid:t.grid&&1<t.grid.rows},{"grid-column":t.grid&&1<t.grid.rows&&"column"===t.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){var{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},w={};class y{constructor(){let e,t;for(var a=arguments.length,s=new Array(a),r=0;r<a;r++)s[r]=arguments[r];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?t=s[0]:[e,t]=s,t=u({},t=t||{}),e&&!t.el&&(t.el=e);var i=I();if(t.el&&"string"==typeof t.el&&1<i.querySelectorAll(t.el).length){const o=[];return i.querySelectorAll(t.el).forEach(e=>{e=u({},t,{el:e});o.push(new y(e))}),o}const l=this,n=(l.__swiper__=!0,l.support=c(),l.device=d({userAgent:t.userAgent}),l.browser=G(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules),{});l.modules.forEach(e=>{e({params:t,swiper:l,extendParams:(s=t,r=n,function(e){void 0===e&&(e={});var t=Object.keys(e)[0],a=e[t];"object"==typeof a&&null!==a&&(!0===s[t]&&(s[t]={enabled:!0}),"navigation"===t&&s[t]&&s[t].enabled&&!s[t].prevEl&&!s[t].nextEl&&(s[t].auto=!0),0<=["pagination","scrollbar"].indexOf(t)&&s[t]&&s[t].enabled&&!s[t].el&&(s[t].auto=!0),t in s&&"enabled"in a)&&("object"!=typeof s[t]||"enabled"in s[t]||(s[t].enabled=!0),s[t]||(s[t]={enabled:!1})),u(r,e)}),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)});var s,r});i=u({},q,n);return l.params=u({},i,w,t),l.originalParams=u({},l.params),l.passedParams=u({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach(e=>{l.on(e,l.params.on[e])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===l.params.direction},isVertical(){return"vertical"===l.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){var{slidesEl:t,params:a}=this,t=k(W(t,`.${a.slideClass}, swiper-slide`)[0]);return k(e)-t}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(e=>+e.getAttribute("data-swiper-slide-index")===t))}recalcSlides(){var{slidesEl:e,params:t}=this;this.slides=W(e,`.${t.slideClass}, swiper-slide`)}enable(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){var a=this,s=(e=Math.min(Math.max(e,0),1),a.minTranslate()),r=a.maxTranslate();a.translateTo((r-s)*e+s,void 0===t?0:t),a.updateActiveIndex(),a.updateSlidesClasses()}emitContainerClasses(){const t=this;var e;t.params._emitClasses&&t.el&&(e=t.el.className.split(" ").filter(e=>{return 0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)}),t.emit("_containerClasses",e.join(" ")))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>{return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)}).join(" ")}emitSlidesClasses(){const a=this;if(a.params._emitClasses&&a.el){const s=[];a.slides.forEach(e=>{var t=a.getSlideClasses(e);s.push({slideEl:e,classNames:t});a.emit("_slideClass",e,t)}),a.emit("_slideClasses",s)}}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);var{params:a,slides:s,slidesGrid:r,slidesSizesGrid:i,size:l,activeIndex:n}=this;let o=1;if("number"==typeof a.slidesPerView)return a.slidesPerView;if(a.centeredSlides){let t=s[n]?Math.ceil(s[n].swiperSlideSize):0,a;for(let e=n+1;e<s.length;e+=1)s[e]&&!a&&(t+=Math.ceil(s[e].swiperSlideSize),o+=1,t>l)&&(a=!0);for(let e=n-1;0<=e;--e)s[e]&&!a&&(t+=s[e].swiperSlideSize,o+=1,t>l)&&(a=!0)}else if("current"===e)for(let e=n+1;e<s.length;e+=1)(t?r[e]+i[e]-r[n]<l:r[e]-r[n]<l)&&(o+=1);else for(let e=n-1;0<=e;--e)r[n]-r[e]<l&&(o+=1);return o}update(){const t=this;if(t&&!t.destroyed){var a,{snapGrid:s,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&n(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();let e;function i(){var e=t.rtlTranslate?-1*t.translate:t.translate,e=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}r.freeMode&&r.freeMode.enabled&&!r.cssMode?(i(),r.autoHeight&&t.updateAutoHeight()):(e=("auto"===r.slidesPerView||1<r.slidesPerView)&&t.isEnd&&!r.centeredSlides?(a=(t.virtual&&r.virtual.enabled?t.virtual:t).slides,t.slideTo(a.length-1,0,!1,!0)):t.slideTo(t.activeIndex,0,!1,!0))||i(),r.watchOverflow&&s!==t.snapGrid&&t.checkOverflow(),t.emit("update")}}changeDirection(t,e){void 0===e&&(e=!0);var a=this,s=a.params.direction;return(t=t||("horizontal"===s?"vertical":"horizontal"))===s||"horizontal"!==t&&"vertical"!==t||(a.el.classList.remove(""+a.params.containerModifierClass+s),a.el.classList.add(""+a.params.containerModifierClass+t),a.emitContainerClasses(),a.params.direction=t,a.slides.forEach(e=>{"vertical"===t?e.style.width="":e.style.height=""}),a.emit("changeDirection"),e&&a.update()),a}changeLanguageDirection(e){var t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.el.classList.remove(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(a){const s=this;if(!s.mounted){let e=a||s.params.el;if(!(e="string"==typeof e?document.querySelector(e):e))return!1;e.swiper=s,e.parentNode&&e.parentNode.host&&e.parentNode.host.nodeName===s.params.swiperElementNodeName.toUpperCase()&&(s.isElement=!0);const r=()=>{return"."+(s.params.wrapperClass||"").trim().split(" ").join(".")};let t=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector)return e.shadowRoot.querySelector(r());return W(e,r())[0]})();!t&&s.params.createElements&&(t=P("div",s.params.wrapperClass),e.append(t),W(e,"."+s.params.slideClass).forEach(e=>{t.append(e)})),Object.assign(s,{el:e,wrapperEl:t,slidesEl:s.isElement&&!e.parentNode.host.slideSlots?e.parentNode.host:t,hostEl:s.isElement?e.parentNode.host:e,mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===$(e,"direction"),rtlTranslate:"horizontal"===s.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===$(e,"direction")),wrongRTL:"-webkit-box"===$(t,"display")})}return!0}init(e){const t=this;return t.initialized||!1!==t.mount(e)&&(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents(),e=[...t.el.querySelectorAll('[loading="lazy"]')],t.isElement&&e.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),e.forEach(e=>{e.complete?n(t,e):e.addEventListener("load",e=>{n(t,e.target)})}),g(t),t.initialized=!0,g(t),t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const a=this,{params:s,el:r,wrapperEl:i,slides:l}=a;if(void 0!==a.params&&!a.destroyed){if(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),s.loop&&a.loopDestroy(),t&&(a.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),i&&i.removeAttribute("style"),l)&&l.length&&l.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass);e.removeAttribute("style");e.removeAttribute("data-swiper-slide-index")}),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(e=>{a.off(e)}),!1!==e){a.el&&"string"!=typeof a.el&&(a.el.swiper=null);{t=a;const n=t;Object.keys(n).forEach(e=>{try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}})}}a.destroyed=!0}return null}static extendDefaults(e){u(w,e)}static get extendedDefaults(){return w}static get defaults(){return q}static installModule(e){y.prototype.__modules__||(y.prototype.__modules__=[]);var t=y.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>y.installModule(e)):y.installModule(e),y}}function O(a,s,r,i){return a.params.createElements&&Object.keys(i).forEach(t=>{if(!r[t]&&!0===r.auto){let e=W(a.el,"."+i[t])[0];e||((e=P("div",i[t])).className=i[t],a.el.append(e)),r[t]=e,s[t]=e}}),r}function z(e){return"."+(e=void 0===e?"":e).trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}function Y(e){let{swiper:a,duration:t,transformElements:s,allSlides:r}=e;const i=a["activeIndex"];if(a.params.virtualTranslate&&0!==t){let t=!1,e;(e=r?s:s.filter(e=>{e=e.classList.contains("swiper-slide-transform")?(t=>{if(!t.parentElement)return a.slides.find(e=>e.shadowRoot&&e.shadowRoot===t.parentNode);return t.parentElement})(e):e;return a.getSlideIndex(e)===i})).forEach(e=>{l(e,()=>{if(t)return;if(!a||a.destroyed)return;t=!0;a.animating=!1;var e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});a.wrapperEl.dispatchEvent(e)})})}}return Object.keys(b).forEach(t=>{Object.keys(b[t]).forEach(e=>{y.prototype[e]=b[t][e]})}),y.use([function(e){let{swiper:i,on:t,emit:a}=e;const s=x();let r=null,l=null;const n=()=>{if(!i||i.destroyed||!i.initialized)return;a("beforeResize");a("resize")},o=()=>{if(!i||i.destroyed||!i.initialized)return;a("orientationchange")};t("init",()=>{if(i.params.resizeObserver&&void 0!==s.ResizeObserver)return i&&!i.destroyed&&i.initialized?void(r=new ResizeObserver(a=>{l=s.requestAnimationFrame(()=>{var{width:e,height:t}=i;let s=e;let r=t;a.forEach(e=>{var{contentBoxSize:e,contentRect:t,target:a}=e;if(a&&a!==i.el)return;s=t?t.width:(e[0]||e).inlineSize;r=t?t.height:(e[0]||e).blockSize});s===e&&r===t||n()})})).observe(i.el):void 0;s.addEventListener("resize",n);s.addEventListener("orientationchange",o)}),t("destroy",()=>{(()=>{l&&s.cancelAnimationFrame(l);r&&r.unobserve&&i.el&&(r.unobserve(i.el),r=null)})();s.removeEventListener("resize",n);s.removeEventListener("orientationchange",o)})},function(e){let{swiper:s,extendParams:t,on:a,emit:r}=e;function i(e,t){void 0===t&&(t={});var a=new(n.MutationObserver||n.WebkitMutationObserver)(e=>{if(s.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);function t(){r("observerUpdate",e[0])}n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,0)});a.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:s.isElement||(void 0===t.childList||t).childList,characterData:void 0===t.characterData||t.characterData}),l.push(a)}const l=[],n=x();t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",()=>{if(!s.params.observer)return;if(s.params.observeParents){var t=p(s.hostEl);for(let e=0;e<t.length;e+=1)i(t[e])}i(s.hostEl,{childList:s.params.observeSlideChildren});i(s.wrapperEl,{attributes:!1})}),a("destroy",()=>{l.forEach(e=>{e.disconnect()});l.splice(0,l.length)})}]),y.use([function(e){let{swiper:l,extendParams:t,on:a,emit:n}=e;function r(e){let t;return!(e&&"string"==typeof e&&l.isElement&&(t=l.el.querySelector(e)||l.hostEl.querySelector(e)))&&(e&&("string"==typeof e&&(t=[...document.querySelectorAll(e)]),l.params.uniqueNavElements&&"string"==typeof e&&t&&1<t.length&&1===l.el.querySelectorAll(e).length?t=l.el.querySelector(e):t&&1===t.length&&(t=t[0])),e)&&!t?e:t}function s(e,t){const a=l.params.navigation;(e=A(e)).forEach(e=>{e&&(e.classList[t?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=t),l.params.watchOverflow)&&l.enabled&&e.classList[l.isLocked?"add":"remove"](a.lockClass)})}function i(){var{nextEl:e,prevEl:t}=l.navigation;l.params.loop?(s(t,!1),s(e,!1)):(s(t,l.isBeginning&&!l.params.rewind),s(e,l.isEnd&&!l.params.rewind))}function o(e){e.preventDefault(),l.isBeginning&&!l.params.loop&&!l.params.rewind||(l.slidePrev(),n("navigationPrev"))}function d(e){e.preventDefault(),l.isEnd&&!l.params.loop&&!l.params.rewind||(l.slideNext(),n("navigationNext"))}function p(){const a=l.params.navigation;if(l.params.navigation=O(l,l.originalParams.navigation,l.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),a.nextEl||a.prevEl){var e=r(a.nextEl),t=r(a.prevEl);Object.assign(l.navigation,{nextEl:e,prevEl:t}),e=A(e),t=A(t);const s=(e,t)=>{e&&e.addEventListener("click","next"===t?d:o);!l.enabled&&e&&e.classList.add(...a.lockClass.split(" "))};e.forEach(e=>s(e,"next")),t.forEach(e=>s(e,"prev"))}}function c(){var{nextEl:e,prevEl:t}=l.navigation,e=A(e),t=A(t);const a=(e,t)=>{e.removeEventListener("click","next"===t?d:o);e.classList.remove(...l.params.navigation.disabledClass.split(" "))};e.forEach(e=>a(e,"next")),t.forEach(e=>a(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),l.navigation={nextEl:null,prevEl:null},a("init",()=>{(!1===l.params.navigation.enabled?u:(p(),i))()}),a("toEdge fromEdge lock unlock",()=>{i()}),a("destroy",()=>{c()}),a("enable disable",()=>{var{nextEl:e,prevEl:t}=l.navigation;e=A(e);t=A(t);if(l.enabled)return void i();[...e,...t].filter(e=>!!e).forEach(e=>e.classList.add(l.params.navigation.lockClass))}),a("click",(e,t)=>{let{nextEl:a,prevEl:s}=l.navigation;a=A(a);s=A(s);var r=t.target;let i=s.includes(r)||a.includes(r);l.isElement&&!i&&(t=t.path||t.composedPath&&t.composedPath())&&(i=t.find(e=>a.includes(e)||s.includes(e)));if(l.params.navigation.hideOnClick&&!i&&(!(l.pagination&&l.params.pagination&&l.params.pagination.clickable)||l.pagination.el!==r&&!l.pagination.el.contains(r))){let e;a.length?e=a[0].classList.contains(l.params.navigation.hiddenClass):s.length&&(e=s[0].classList.contains(l.params.navigation.hiddenClass)),!0===e?n("navigationShow"):n("navigationHide"),[...a,...s].filter(e=>!!e).forEach(e=>e.classList.toggle(l.params.navigation.hiddenClass))}});const u=()=>{l.el.classList.add(...l.params.navigation.navigationDisabledClass.split(" "));c()};Object.assign(l.navigation,{enable:()=>{l.el.classList.remove(...l.params.navigation.navigationDisabledClass.split(" "));p();i()},disable:u,update:i,init:p,destroy:c})},function(e){let{swiper:v,extendParams:t,on:a,emit:f}=e;e="swiper-pagination",t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:e+"-bullet",bulletActiveClass:e+"-bullet-active",modifierClass:e+"-",currentClass:e+"-current",totalClass:e+"-total",hiddenClass:e+"-hidden",progressbarFillClass:e+"-progressbar-fill",progressbarOppositeClass:e+"-progressbar-opposite",clickableClass:e+"-clickable",lockClass:e+"-lock",horizontalClass:e+"-horizontal",verticalClass:e+"-vertical",paginationDisabledClass:e+"-disabled"}}),v.pagination={el:null,bullets:[]};let h,g=0;function i(){return!v.params.pagination.el||!v.pagination.el||Array.isArray(v.pagination.el)&&0===v.pagination.el.length}function b(e,t){var a=v.params.pagination["bulletActiveClass"];(e=e&&e[`${"prev"===t?"previous":"next"}ElementSibling`])&&(e.classList.add(a+"-"+t),e=e[`${"prev"===t?"previous":"next"}ElementSibling`])&&e.classList.add(a+`-${t}-`+t)}function s(e){var t,a,s=e.target.closest(z(v.params.pagination.bulletClass));s&&(e.preventDefault(),e=k(s)*v.params.slidesPerGroup,v.params.loop?v.realIndex!==e&&(s=v.realIndex,t=e,a=v.slides.length,"next"===(a=(t%=a)===(s%=a)+1?"next":t===s-1?"previous":void 0)?v.slideNext():"previous"===a?v.slidePrev():v.slideToLoop(e)):v.slideTo(e))}function r(){var r=v.rtl;const l=v.params.pagination;if(!i()){var n=A(n=v.pagination.el);let i,t;var o=(v.virtual&&v.params.virtual.enabled?v.virtual:v).slides.length;const c=v.params.loop?Math.ceil(o/v.params.slidesPerGroup):v.snapGrid.length;if(v.params.loop?(t=v.previousRealIndex||0,i=1<v.params.slidesPerGroup?Math.floor(v.realIndex/v.params.slidesPerGroup):v.realIndex):void 0!==v.snapIndex?(i=v.snapIndex,t=v.previousSnapIndex):(t=v.previousIndex||0,i=v.activeIndex||0),"bullets"===l.type&&v.pagination.bullets&&0<v.pagination.bullets.length){var d=v.pagination.bullets;let a,s,e;if(l.dynamicBullets&&(h=X(d[0],v.isHorizontal()?"width":"height",!0),n.forEach(e=>{e.style[v.isHorizontal()?"width":"height"]=h*(l.dynamicMainBullets+4)+"px"}),1<l.dynamicMainBullets&&void 0!==t&&((g+=i-(t||0))>l.dynamicMainBullets-1?g=l.dynamicMainBullets-1:g<0&&(g=0)),a=Math.max(i-g,0),s=a+(Math.min(d.length,l.dynamicMainBullets)-1),e=(s+a)/2),d.forEach(e=>{var t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>""+l.bulletActiveClass+e)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),1<n.length)d.forEach(e=>{var t=k(e);t===i?e.classList.add(...l.bulletActiveClass.split(" ")):v.isElement&&e.setAttribute("part","bullet");l.dynamicBullets&&(t>=a&&t<=s&&e.classList.add(...(l.bulletActiveClass+"-main").split(" ")),t===a&&b(e,"prev"),t===s)&&b(e,"next")});else{o=d[i];if(o&&o.classList.add(...l.bulletActiveClass.split(" ")),v.isElement&&d.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),l.dynamicBullets){var o=d[a],p=d[s];for(let e=a;e<=s;e+=1)d[e]&&d[e].classList.add(...(l.bulletActiveClass+"-main").split(" "));b(o,"prev"),b(p,"next")}}if(l.dynamicBullets){o=Math.min(d.length,l.dynamicMainBullets+4);const u=(h*o-h)/2-e*h,m=r?"right":"left";d.forEach(e=>{e.style[v.isHorizontal()?m:"top"]=u+"px"})}}n.forEach((s,e)=>{"fraction"===l.type&&(s.querySelectorAll(z(l.currentClass)).forEach(e=>{e.textContent=l.formatFractionCurrent(i+1)}),s.querySelectorAll(z(l.totalClass)).forEach(e=>{e.textContent=l.formatFractionTotal(c)}));if("progressbar"===l.type){let e;e=l.progressbarOpposite?v.isHorizontal()?"vertical":"horizontal":v.isHorizontal()?"horizontal":"vertical";var r=(i+1)/c;let t=1,a=1;"horizontal"===e?t=r:a=r,s.querySelectorAll(z(l.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${t}) scaleY(${a})`;e.style.transitionDuration=v.params.speed+"ms"})}"custom"===l.type&&l.renderCustom?(s.innerHTML=l.renderCustom(v,i+1,c),0===e&&f("paginationRender",s)):(0===e&&f("paginationRender",s),f("paginationUpdate",s));v.params.watchOverflow&&v.enabled&&s.classList[v.isLocked?"add":"remove"](l.lockClass)})}}function l(){const s=v.params.pagination;if(!i()){var e=v.virtual&&v.params.virtual.enabled?v.virtual.slides.length:v.grid&&1<v.params.grid.rows?v.slides.length/Math.ceil(v.params.grid.rows):v.slides.length,t=A(t=v.pagination.el);let a="";if("bullets"===s.type){let t=v.params.loop?Math.ceil(e/v.params.slidesPerGroup):v.snapGrid.length;v.params.freeMode&&v.params.freeMode.enabled&&t>e&&(t=e);for(let e=0;e<t;e+=1)s.renderBullet?a+=s.renderBullet.call(v,e,s.bulletClass):a+=`<${s.bulletElement} ${v.isElement?'part="bullet"':""} class="${s.bulletClass}"></${s.bulletElement}>`}"fraction"===s.type&&(a=s.renderFraction?s.renderFraction.call(v,s.currentClass,s.totalClass):`<span class="${s.currentClass}"></span>`+" / "+`<span class="${s.totalClass}"></span>`),"progressbar"===s.type&&(a=s.renderProgressbar?s.renderProgressbar.call(v,s.progressbarFillClass):`<span class="${s.progressbarFillClass}"></span>`),v.pagination.bullets=[],t.forEach(e=>{"custom"!==s.type&&(e.innerHTML=a||"");"bullets"===s.type&&v.pagination.bullets.push(...e.querySelectorAll(z(s.bulletClass)))}),"custom"!==s.type&&f("paginationRender",t[0])}}function n(){v.params.pagination=O(v,v.originalParams.pagination,v.params.pagination,{el:"swiper-pagination"});const t=v.params.pagination;if(t.el){let e;(e=(e=(e="string"==typeof t.el&&v.isElement?v.el.querySelector(t.el):e)||"string"!=typeof t.el?e:[...document.querySelectorAll(t.el)])||t.el)&&0!==e.length&&(v.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&1<e.length&&1<(e=[...v.el.querySelectorAll(t.el)]).length&&(e=e.find(e=>{if(p(e,".swiper")[0]!==v.el)return!1;return!0})),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(v.pagination,{el:e}),(e=A(e)).forEach(e=>{"bullets"===t.type&&t.clickable&&e.classList.add(...(t.clickableClass||"").split(" "));e.classList.add(t.modifierClass+t.type);e.classList.add(v.isHorizontal()?t.horizontalClass:t.verticalClass);"bullets"===t.type&&t.dynamicBullets&&(e.classList.add(""+t.modifierClass+t.type+"-dynamic"),g=0,t.dynamicMainBullets<1)&&(t.dynamicMainBullets=1);"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass);t.clickable&&e.addEventListener("click",s);v.enabled||e.classList.add(t.lockClass)}))}}function o(){const t=v.params.pagination;var e;i()||((e=v.pagination.el)&&(e=A(e)).forEach(e=>{e.classList.remove(t.hiddenClass);e.classList.remove(t.modifierClass+t.type);e.classList.remove(v.isHorizontal()?t.horizontalClass:t.verticalClass);t.clickable&&(e.classList.remove(...(t.clickableClass||"").split(" ")),e.removeEventListener("click",s))}),v.pagination.bullets&&v.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" "))))}a("changeDirection",()=>{if(!v.pagination||!v.pagination.el)return;const t=v.params.pagination;var e=v.pagination["el"];e=A(e);e.forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass);e.classList.add(v.isHorizontal()?t.horizontalClass:t.verticalClass)})}),a("init",()=>{(!1===v.params.pagination.enabled?d:(n(),l(),r))()}),a("activeIndexChange",()=>{void 0===v.snapIndex&&r()}),a("snapIndexChange",()=>{r()}),a("snapGridLengthChange",()=>{l();r()}),a("destroy",()=>{o()}),a("enable disable",()=>{var e=v.pagination["el"];e&&(e=A(e)).forEach(e=>e.classList[v.enabled?"remove":"add"](v.params.pagination.lockClass))}),a("lock unlock",()=>{r()}),a("click",(e,t)=>{t=t.target;var a=A(v.pagination.el);v.params.pagination.el&&v.params.pagination.hideOnClick&&a&&0<a.length&&!t.classList.contains(v.params.pagination.bulletClass)&&(v.navigation&&(v.navigation.nextEl&&t===v.navigation.nextEl||v.navigation.prevEl&&t===v.navigation.prevEl)||(!0===a[0].classList.contains(v.params.pagination.hiddenClass)?f("paginationShow"):f("paginationHide"),a.forEach(e=>e.classList.toggle(v.params.pagination.hiddenClass))))});const d=()=>{v.el.classList.add(v.params.pagination.paginationDisabledClass);var e=v.pagination["el"];e&&(e=A(e)).forEach(e=>e.classList.add(v.params.pagination.paginationDisabledClass));o()};Object.assign(v.pagination,{enable:()=>{v.el.classList.remove(v.params.pagination.paginationDisabledClass);var e=v.pagination["el"];e&&(e=A(e)).forEach(e=>e.classList.remove(v.params.pagination.paginationDisabledClass));n();l();r()},disable:d,render:l,update:r,init:n,destroy:o})},function(e){let{swiper:o,extendParams:t,on:a,emit:i}=e;const l=I();let n=!1,d=null,p=null,c,u,m,s;function r(){if(o.params.scrollbar.el&&o.scrollbar.el){var{scrollbar:a,rtlTranslate:s}=o;const{dragEl:i,el:l}=a;var a=o.params.scrollbar,r=o.params.loop?o.progressLoop:o.progress;let e=u,t=(m-u)*r;s?0<(t=-t)?(e=u-t,t=0):-t+u>m&&(e=m+t):t<0?(e=u+t,t=0):t+u>m&&(e=m-t),o.isHorizontal()?(i.style.transform=`translate3d(${t}px, 0, 0)`,i.style.width=e+"px"):(i.style.transform=`translate3d(0px, ${t}px, 0)`,i.style.height=e+"px"),a.hide&&(clearTimeout(d),l.style.opacity=1,d=setTimeout(()=>{l.style.opacity=0;l.style.transitionDuration="400ms"},1e3))}}function v(){var e,t,a;o.params.scrollbar.el&&o.scrollbar.el&&(e=o["scrollbar"],{dragEl:t,el:a}=e,t.style.width="",t.style.height="",m=o.isHorizontal()?a.offsetWidth:a.offsetHeight,s=o.size/(o.virtualSize+o.params.slidesOffsetBefore-(o.params.centeredSlides?o.snapGrid[0]:0)),u="auto"===o.params.scrollbar.dragSize?m*s:parseInt(o.params.scrollbar.dragSize,10),o.isHorizontal()?t.style.width=u+"px":t.style.height=u+"px",1<=s?a.style.display="none":a.style.display="",o.params.scrollbar.hide&&(a.style.opacity=0),o.params.watchOverflow)&&o.enabled&&e.el.classList[o.isLocked?"add":"remove"](o.params.scrollbar.lockClass)}function f(e){return o.isHorizontal()?e.clientX:e.clientY}function h(e){var t,a,s,r,{scrollbar:i,rtlTranslate:l}=o,i=i["el"];let n;n=(f(e)-(e=i,i=x(),t=I(),a=e.getBoundingClientRect(),t=t.body,s=e.clientTop||t.clientTop||0,t=e.clientLeft||t.clientLeft||0,r=e===i?i.scrollY:e.scrollTop,i=e===i?i.scrollX:e.scrollLeft,{top:a.top+r-s,left:a.left+i-t}[o.isHorizontal()?"left":"top"])-(null!==c?c:u/2))/(m-u),n=Math.max(Math.min(n,1),0),l&&(n=1-n);e=o.minTranslate()+(o.maxTranslate()-o.minTranslate())*n;o.updateProgress(e),o.setTranslate(e),o.updateActiveIndex(),o.updateSlidesClasses()}function g(e){var t=o.params.scrollbar,{scrollbar:a,wrapperEl:s}=o,{el:a,dragEl:r}=a;n=!0,c=e.target===r?f(e)-e.target.getBoundingClientRect()[o.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.style.transitionDuration="100ms",r.style.transitionDuration="100ms",h(e),clearTimeout(p),a.style.transitionDuration="0ms",t.hide&&(a.style.opacity=1),o.params.cssMode&&(o.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",e)}function b(e){var{scrollbar:t,wrapperEl:a}=o,{el:t,dragEl:s}=t;n&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,h(e),a.style.transitionDuration="0ms",t.style.transitionDuration="0ms",s.style.transitionDuration="0ms",i("scrollbarDragMove",e))}function w(e){var t=o.params.scrollbar,{scrollbar:a,wrapperEl:s}=o;const r=a["el"];n&&(n=!1,o.params.cssMode&&(o.wrapperEl.style["scroll-snap-type"]="",s.style.transitionDuration=""),t.hide&&(clearTimeout(p),p=M(()=>{r.style.opacity=0;r.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",e),t.snapOnRelease)&&o.slideToClosest()}function y(e){var t,{scrollbar:a,params:s}=o,a=a.el;a&&(t=!!s.passiveListeners&&{passive:!1,capture:!1},s=!!s.passiveListeners&&{passive:!0,capture:!1},a=a)&&(a[a="on"===e?"addEventListener":"removeEventListener"]("pointerdown",g,t),l[a]("pointermove",b,t),l[a]("pointerup",w,s))}function T(){var{scrollbar:a,el:s}=o,r=(o.params.scrollbar=O(o,o.originalParams.scrollbar,o.params.scrollbar,{el:"swiper-scrollbar"}),o.params.scrollbar);if(r.el){let e;if((e="string"==typeof r.el&&o.isElement?o.el.querySelector(r.el):e)||"string"!=typeof r.el)e=e||r.el;else if(!(e=l.querySelectorAll(r.el)).length)return;(e=0<(e=o.params.uniqueNavElements&&"string"==typeof r.el&&1<e.length&&1===s.querySelectorAll(r.el).length?s.querySelector(r.el):e).length?e[0]:e).classList.add(o.isHorizontal()?r.horizontalClass:r.verticalClass);let t;!e||(t=e.querySelector(z(o.params.scrollbar.dragClass)))||(t=P("div",o.params.scrollbar.dragClass),e.append(t)),Object.assign(a,{el:e,dragEl:t}),r.draggable&&o.params.scrollbar.el&&o.scrollbar.el&&y("on"),e&&e.classList[o.enabled?"remove":"add"](...C(o.params.scrollbar.lockClass))}}function S(){var e=o.params.scrollbar,t=o.scrollbar.el;t&&t.classList.remove(...C(o.isHorizontal()?e.horizontalClass:e.verticalClass)),o.params.scrollbar.el&&o.scrollbar.el&&y("off")}t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),o.scrollbar={el:null,dragEl:null},a("changeDirection",()=>{if(!o.scrollbar||!o.scrollbar.el)return;const t=o.params.scrollbar;var e=o.scrollbar["el"];e=A(e);e.forEach(e=>{e.classList.remove(t.horizontalClass,t.verticalClass);e.classList.add(o.isHorizontal()?t.horizontalClass:t.verticalClass)})}),a("init",()=>{(!1===o.params.scrollbar.enabled?E:(T(),v(),r))()}),a("update resize observerUpdate lock unlock changeDirection",()=>{v()}),a("setTranslate",()=>{r()}),a("setTransition",(e,t)=>{t=t,o.params.scrollbar.el&&o.scrollbar.el&&(o.scrollbar.dragEl.style.transitionDuration=t+"ms")}),a("enable disable",()=>{var e=o.scrollbar["el"];e&&e.classList[o.enabled?"remove":"add"](...C(o.params.scrollbar.lockClass))}),a("destroy",()=>{S()});const E=()=>{o.el.classList.add(...C(o.params.scrollbar.scrollbarDisabledClass));o.scrollbar.el&&o.scrollbar.el.classList.add(...C(o.params.scrollbar.scrollbarDisabledClass));S()};Object.assign(o.scrollbar,{enable:()=>{o.el.classList.remove(...C(o.params.scrollbar.scrollbarDisabledClass));o.scrollbar.el&&o.scrollbar.el.classList.remove(...C(o.params.scrollbar.scrollbarDisabledClass));T();v();r()},disable:E,updateSize:v,setTranslate:r,init:T,destroy:S})},function(e){let{swiper:p,extendParams:t,on:a}=e;t({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",l=(e,t)=>{var a=p["rtl"];a=a?-1:1;var s=e.getAttribute("data-swiper-parallax")||"0";let r=e.getAttribute("data-swiper-parallax-x");let i=e.getAttribute("data-swiper-parallax-y");var l=e.getAttribute("data-swiper-parallax-scale");var n=e.getAttribute("data-swiper-parallax-opacity");var o=e.getAttribute("data-swiper-parallax-rotate");r||i?(r=r||"0",i=i||"0"):p.isHorizontal()?(r=s,i="0"):(i=s,r="0");r=0<=r.indexOf("%")?parseInt(r,10)*t*a+"%":r*t*a+"px";i=0<=i.indexOf("%")?parseInt(i,10)*t+"%":i*t+"px";null!=n&&(s=n-(n-1)*(1-Math.abs(t)),e.style.opacity=s);let d=`translate3d(${r}, ${i}, 0px)`;null!=l&&(a=l-(l-1)*(1-Math.abs(t)),d+=` scale(${a})`);o&&null!=o&&(d+=` rotate(${o*t*-1}deg)`);e.style.transform=d},s=()=>{const{el:e,slides:t,progress:s,snapGrid:r}=p;var a=W(e,i);p.isElement&&a.push(...W(p.hostEl,i));a.forEach(e=>{l(e,s)});t.forEach((e,t)=>{let a=e.progress;1<p.params.slidesPerGroup&&"auto"!==p.params.slidesPerView&&(a+=Math.ceil(t/2)-s*(r.length-1));a=Math.min(Math.max(a,-1),1);e.querySelectorAll(i+", [data-swiper-parallax-rotate]").forEach(e=>{l(e,a)})})};a("beforeInit",()=>{if(!p.params.parallax.enabled)return;p.params.watchSlidesProgress=!0;p.originalParams.watchSlidesProgress=!0}),a("init",()=>{if(!p.params.parallax.enabled)return;s()}),a("setTranslate",()=>{if(!p.params.parallax.enabled)return;s()}),a("setTransition",(e,t)=>{if(!p.params.parallax.enabled)return;!function(a){void 0===a&&(a=p.params.speed);var{el:e,hostEl:t}=p,e=[...e.querySelectorAll(i)];p.isElement&&e.push(...t.querySelectorAll(i)),e.forEach(e=>{let t=parseInt(e.getAttribute("data-swiper-parallax-duration"),10)||a;0===a&&(t=0);e.style.transitionDuration=t+"ms"})}(t)})},function(e){let{swiper:n,extendParams:t,on:a}=e;function o(e,t){const a=function(){let a,s,r;return(e,t)=>{s=-1;a=e.length;for(;1<a-s;)e[r=a+s>>1]<=t?s=r:a=r;return a}}();this.x=e,this.y=t,this.lastIndex=e.length-1;let s,r;return this.interpolate=function(e){return e?(r=a(this.x,e),s=r-1,(e-this.x[s])*(this.y[r]-this.y[s])/(this.x[r]-this.x[s])+this.y[s]):0},this}function s(){n.controller.control&&n.controller.spline&&(n.controller.spline=void 0,delete n.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),n.controller={control:void 0},a("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof n.params.controller.control||n.params.controller.control instanceof HTMLElement))return void("string"==typeof n.params.controller.control?[...document.querySelectorAll(n.params.controller.control)]:[n.params.controller.control]).forEach(t=>{n.controller.control||(n.controller.control=[]);if(t&&t.swiper)n.controller.control.push(t.swiper);else if(t){const a=n.params.eventsPrefix+"init",s=e=>{n.controller.control.push(e.detail[0]);n.update();t.removeEventListener(a,s)};t.addEventListener(a,s)}});n.controller.control=n.params.controller.control}),a("update",()=>{s()}),a("resize",()=>{s()}),a("observerUpdate",()=>{s()}),a("setTranslate",(e,t,a)=>{if(!n.controller.control||n.controller.control.destroyed)return;n.controller.setTranslate(t,a)}),a("setTransition",(e,t,a)=>{if(!n.controller.control||n.controller.control.destroyed)return;n.controller.setTransition(t,a)}),Object.assign(n.controller,{setTranslate:function(e,t){var a=n.controller.control;let s,r;var i=n.constructor;function l(e){var t,a;e.destroyed||(t=n.rtlTranslate?-n.translate:n.translate,"slide"===n.params.controller.by&&(a=e,n.controller.spline=n.params.loop?new o(n.slidesGrid,a.slidesGrid):new o(n.snapGrid,a.snapGrid),r=-n.controller.spline.interpolate(-t)),r&&"container"!==n.params.controller.by||(s=(e.maxTranslate()-e.minTranslate())/(n.maxTranslate()-n.minTranslate()),!Number.isNaN(s)&&Number.isFinite(s)||(s=1),r=(t-n.minTranslate())*s+e.minTranslate()),n.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,n),e.updateActiveIndex(),e.updateSlidesClasses())}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==t&&a[e]instanceof i&&l(a[e]);else a instanceof i&&t!==a&&l(a)},setTransition:function(t,e){var a=n.constructor;const s=n.controller.control;let r;function i(e){e.destroyed||(e.setTransition(t,n),0!==t&&(e.transitionStart(),e.params.autoHeight&&M(()=>{e.updateAutoHeight()}),l(e.wrapperEl,()=>{if(!s)return;e.transitionEnd()})))}if(Array.isArray(s))for(r=0;r<s.length;r+=1)s[r]!==e&&s[r]instanceof a&&i(s[r]);else s instanceof a&&e!==s&&i(s)}})},function(e){let{swiper:n,extendParams:t,on:a}=e,o=(t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),n.a11y={clicked:!1},null),r,i,l=(new Date).getTime();function s(e){var t=o;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function d(e){(e=A(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function p(e){(e=A(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function c(e,t){(e=A(e)).forEach(e=>{e.setAttribute("role",t)})}function u(e,t){(e=A(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function m(e,t){(e=A(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function v(e){(e=A(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function f(e){(e=A(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function h(e){var t,a;13!==e.keyCode&&32!==e.keyCode||(t=n.params.a11y,a=e.target,n.pagination&&n.pagination.el&&(a===n.pagination.el||n.pagination.el.contains(e.target))&&!e.target.matches(z(n.params.pagination.bulletClass)))||(n.navigation&&n.navigation.prevEl&&n.navigation.nextEl&&(e=A(n.navigation.prevEl),A(n.navigation.nextEl).includes(a)&&(n.isEnd&&!n.params.loop||n.slideNext(),n.isEnd?s(t.lastSlideMessage):s(t.nextSlideMessage)),e.includes(a))&&(n.isBeginning&&!n.params.loop||n.slidePrev(),n.isBeginning?s(t.firstSlideMessage):s(t.prevSlideMessage)),n.pagination&&a.matches(z(n.params.pagination.bulletClass))&&a.click())}function g(){return n.pagination&&n.pagination.bullets&&n.pagination.bullets.length}function b(){return g()&&n.params.pagination.clickable}const w=(e,t,a)=>{d(e);"BUTTON"!==e.tagName&&(c(e,"button"),e.addEventListener("keydown",h));m(e,a);a=e,s=t,(a=A(a)).forEach(e=>{e.setAttribute("aria-controls",s)});var s},y=e=>{i&&i!==e.target&&!i.contains(e.target)&&(r=!0);n.a11y.clicked=!0},T=()=>{r=!1;requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.destroyed||(n.a11y.clicked=!1)})})},S=e=>{l=(new Date).getTime()},E=e=>{if(n.a11y.clicked||!n.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const t=e.target.closest(`.${n.params.slideClass}, swiper-slide`);if(!t||!n.slides.includes(t))return;i=t;var a=n.slides.indexOf(t)===n.activeIndex;var s=n.params.watchSlidesProgress&&n.visibleSlides&&n.visibleSlides.includes(t);if(a||s)return;if(e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents)return;n.isHorizontal()?n.el.scrollLeft=0:n.el.scrollTop=0;requestAnimationFrame(()=>{if(r)return;n.params.loop?n.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")),0):n.slideTo(n.slides.indexOf(t),0);r=!1})},x=()=>{const a=n.params.a11y;a.itemRoleDescriptionMessage&&u(n.slides,a.itemRoleDescriptionMessage);a.slideRole&&c(n.slides,a.slideRole);const s=n.slides.length;a.slideLabelMessage&&n.slides.forEach((e,t)=>{t=n.params.loop?parseInt(e.getAttribute("data-swiper-slide-index"),10):t;t=a.slideLabelMessage.replace(/\{\{index\}\}/,t+1).replace(/\{\{slidesLength\}\}/,s);m(e,t)})},C=()=>{const t=n.params.a11y;n.el.append(o);var e=n.el;t.containerRoleDescriptionMessage&&u(e,t.containerRoleDescriptionMessage);t.containerMessage&&m(e,t.containerMessage);t.containerRole&&c(e,t.containerRole);e=n.wrapperEl;const a=t.id||e.getAttribute("id")||"swiper-wrapper-"+(s=16,"x".repeat(s=void 0===s?16:s).replace(/x/g,()=>Math.round(16*Math.random()).toString(16)));var s=n.params.autoplay&&n.params.autoplay.enabled?"off":"polite";l=e,r=a,(l=A(l)).forEach(e=>{e.setAttribute("id",r)});var r;l=e,i=s,(l=A(l)).forEach(e=>{e.setAttribute("aria-live",i)});var i;x();var{nextEl:e,prevEl:l}=n.navigation||{};e=A(e);l=A(l);e&&e.forEach(e=>w(e,a,t.nextSlideMessage));l&&l.forEach(e=>w(e,a,t.prevSlideMessage));b()&&A(n.pagination.el).forEach(e=>{e.addEventListener("keydown",h)});e=I();e.addEventListener("visibilitychange",S);n.el.addEventListener("focus",E,!0);n.el.addEventListener("focus",E,!0);n.el.addEventListener("pointerdown",y,!0);n.el.addEventListener("pointerup",T,!0)};a("beforeInit",()=>{o=P("span",n.params.a11y.notificationClass);o.setAttribute("aria-live","assertive");o.setAttribute("aria-atomic","true")}),a("afterInit",()=>{if(!n.params.a11y.enabled)return;C()}),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{if(!n.params.a11y.enabled)return;x()}),a("fromEdge toEdge afterInit lock unlock",()=>{if(!n.params.a11y.enabled)return;n.params.loop||n.params.rewind||!n.navigation||({nextEl:e,prevEl:t}=n.navigation,t&&(n.isBeginning?(v(t),p):(f(t),d))(t),e&&(n.isEnd?(v(e),p):(f(e),d))(e));var e,t}),a("paginationUpdate",()=>{if(!n.params.a11y.enabled)return;!function(){const t=n.params.a11y;g()&&n.pagination.bullets.forEach(e=>{n.params.pagination.clickable&&(d(e),n.params.pagination.renderBullet||(c(e,"button"),m(e,t.paginationBulletMessage.replace(/\{\{index\}\}/,k(e)+1))));e.matches(z(n.params.pagination.bulletActiveClass))?e.setAttribute("aria-current","true"):e.removeAttribute("aria-current")})}()}),a("destroy",()=>{if(!n.params.a11y.enabled)return;!function(){o&&o.remove();var{nextEl:e,prevEl:t}=n.navigation||{},e=A(e),t=A(t);e&&e.forEach(e=>e.removeEventListener("keydown",h)),t&&t.forEach(e=>e.removeEventListener("keydown",h)),b()&&A(n.pagination.el).forEach(e=>{e.removeEventListener("keydown",h)}),I().removeEventListener("visibilitychange",S),n.el&&"string"!=typeof n.el&&(n.el.removeEventListener("focus",E,!0),n.el.removeEventListener("pointerdown",y,!0),n.el.removeEventListener("pointerup",T,!0))}()})},function(e){let{swiper:i,extendParams:t,on:a,emit:l,params:s}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let n,o,d=s&&s.autoplay?s.autoplay.delay:3e3,p=s&&s.autoplay?s.autoplay.delay:3e3,c,u=(new Date).getTime(),r,m,v,f,h,g,b;function w(e){!i||i.destroyed||!i.wrapperEl||e.target!==i.wrapperEl||(i.wrapperEl.removeEventListener("transitionend",w),b)||e.detail&&e.detail.bySwiperTouchMove||M()}const y=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?r=!0:r&&(p=c,r=!1);var e=i.autoplay.paused?c:u+p-(new Date).getTime();i.autoplay.timeLeft=e;l("autoplayTimeLeft",e,e/d);o=requestAnimationFrame(()=>{y()})},T=()=>{let e;e=i.virtual&&i.params.virtual.enabled?i.slides.find(e=>e.classList.contains("swiper-slide-active")):i.slides[i.activeIndex];if(!e)return;var t=parseInt(e.getAttribute("data-swiper-autoplay"),10);return t},S=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(o);y();let t=void 0===e?i.params.autoplay.delay:e;d=i.params.autoplay.delay;p=i.params.autoplay.delay;var a=T();!Number.isNaN(a)&&0<a&&void 0===e&&(t=a,d=a,p=a);c=t;const s=i.params.speed;const r=()=>{if(!i||i.destroyed)return;i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(s,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,s,!0,!0),l("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(s,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,s,!0,!0),l("autoplay"));i.params.cssMode&&(u=(new Date).getTime(),requestAnimationFrame(()=>{S()}))};0<t?(clearTimeout(n),n=setTimeout(()=>{r()},t)):requestAnimationFrame(()=>{r()});return t},E=()=>{u=(new Date).getTime();i.autoplay.running=!0;S();l("autoplayStart")},x=()=>{i.autoplay.running=!1;clearTimeout(n);cancelAnimationFrame(o);l("autoplayStop")},C=(e,t)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(n);e||(g=!0);e=()=>{l("autoplayPause");i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",w):M()};i.autoplay.paused=!0;if(t)return h&&(c=i.params.autoplay.delay),h=!1,void e();t=c||i.params.autoplay.delay;c=t-((new Date).getTime()-u);if(i.isEnd&&c<0&&!i.params.loop)return;c<0&&(c=0);e()},M=()=>{if(i.isEnd&&c<0&&!i.params.loop||i.destroyed||!i.autoplay.running)return;u=(new Date).getTime();g?(g=!1,S(c)):S();i.autoplay.paused=!1;l("autoplayResume")},L=()=>{if(i.destroyed||!i.autoplay.running)return;var e=I();"hidden"===e.visibilityState&&(g=!0,C(!0));"visible"===e.visibilityState&&M()},P=e=>{if("mouse"!==e.pointerType)return;g=!0;b=!0;if(i.animating||i.autoplay.paused)return;C(!0)},k=e=>{if("mouse"!==e.pointerType)return;b=!1;i.autoplay.paused&&M()};a("init",()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",P),i.el.addEventListener("pointerleave",k)),I().addEventListener("visibilitychange",L),E())}),a("destroy",()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",P),i.el.removeEventListener("pointerleave",k));e=I(),e.removeEventListener("visibilitychange",L);var e;i.autoplay.running&&x()}),a("_freeModeStaticRelease",()=>{(v||g)&&M()}),a("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?x():C(!0,!0)}),a("beforeTransitionStart",(e,t,a)=>{if(i.destroyed||!i.autoplay.running)return;a||!i.params.autoplay.disableOnInteraction?C(!0,!0):x()}),a("sliderFirstMove",()=>{if(i.destroyed||!i.autoplay.running)return;if(i.params.autoplay.disableOnInteraction)return void x();m=!0;v=!1;g=!1;f=setTimeout(()=>{g=!0;v=!0;C(!0)},200)}),a("touchEnd",()=>{if(i.destroyed||!i.autoplay.running||!m)return;clearTimeout(f);clearTimeout(n);if(i.params.autoplay.disableOnInteraction)return v=!1,void(m=!1);v&&i.params.cssMode&&M();v=!1;m=!1}),a("slideChange",()=>{if(i.destroyed||!i.autoplay.running)return;h=!0}),Object.assign(i.autoplay,{start:E,stop:x,pause:C,resume:M})},function(e){let{swiper:p,extendParams:t,on:a}=e,s=(t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}}),!1),r=!1;function i(){var t=p.thumbs.swiper;if(t&&!t.destroyed){var a=t.clickedIndex,e=t.clickedSlide;if(!(e&&e.classList.contains(p.params.thumbs.slideThumbActiveClass)||null==a)){let e;e=t.params.loop?parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10):a,p.params.loop?p.slideToLoop(e):p.slideTo(e)}}}function l(){var e=p.params["thumbs"];if(s)return!1;s=!0;var t=p.constructor;if(e.swiper instanceof t){if(e.swiper.destroyed)return s=!1;p.thumbs.swiper=e.swiper,Object.assign(p.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(p.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),p.thumbs.swiper.update()}else o(e.swiper)&&(e=Object.assign({},e.swiper),Object.assign(e,{watchSlidesProgress:!0,slideToClickedSlide:!1}),p.thumbs.swiper=new t(e),r=!0);return p.thumbs.swiper.el.classList.add(p.params.thumbs.thumbsContainerClass),p.thumbs.swiper.on("tap",i),!0}function n(a){var s=p.thumbs.swiper;if(s&&!s.destroyed){var r="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let t=1;const d=p.params.thumbs.slideThumbActiveClass;if(1<p.params.slidesPerView&&!p.params.centeredSlides&&(t=p.params.slidesPerView),p.params.thumbs.multipleActiveThumbs||(t=1),t=Math.floor(t),s.slides.forEach(e=>e.classList.remove(d)),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<t;e+=1)W(s.slidesEl,`[data-swiper-slide-index="${p.realIndex+e}"]`).forEach(e=>{e.classList.add(d)});else for(let e=0;e<t;e+=1)s.slides[p.realIndex+e]&&s.slides[p.realIndex+e].classList.add(d);var i=p.params.thumbs.autoScrollOffset,l=i&&!s.params.loop;if(p.realIndex!==s.realIndex||l){var n,o=s.activeIndex;let e,t;t=s.params.loop?(n=s.slides.find(e=>e.getAttribute("data-swiper-slide-index")===""+p.realIndex),e=s.slides.indexOf(n),p.activeIndex>p.previousIndex?"next":"prev"):(e=p.realIndex)>p.previousIndex?"next":"prev",l&&(e+="next"===t?i:-1*i),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(e)<0&&(s.params.centeredSlides?e=e>o?e-Math.floor(r/2)+1:e+Math.floor(r/2)-1:e>o&&s.params.slidesPerGroup,s.slideTo(e,a?0:void 0))}}}p.thumbs={swiper:null},a("beforeInit",()=>{const r=p.params["thumbs"];if(!r||!r.swiper)return;if("string"==typeof r.swiper||r.swiper instanceof HTMLElement){const e=I(),t=()=>{const t="string"==typeof r.swiper?e.querySelector(r.swiper):r.swiper;if(t&&t.swiper)r.swiper=t.swiper,l(),n(!0);else if(t){const a=p.params.eventsPrefix+"init",s=e=>{r.swiper=e.detail[0];t.removeEventListener(a,s);l();n(!0);r.swiper.update();p.update()};t.addEventListener(a,s)}return t},a=()=>{if(p.destroyed)return;var e=t();e||requestAnimationFrame(a)};requestAnimationFrame(a)}else l(),n(!0)}),a("slideChange update resize observerUpdate",()=>{n()}),a("setTransition",(e,t)=>{var a=p.thumbs.swiper;if(!a||a.destroyed)return;a.setTransition(t)}),a("beforeDestroy",()=>{var e=p.thumbs.swiper;if(!e||e.destroyed)return;r&&e.destroy()}),Object.assign(p.thumbs,{init:l,update:n})},function(t){let{swiper:l,extendParams:e,on:a}=t;e({fadeEffect:{crossFade:!1}});{const{effect:s,swiper:r,on:i,setTranslate:n,setTransition:o,overwriteParams:d,perspective:p,recreateShadows:c,getEffectParams:u}=t={effect:"fade",swiper:l,on:a,setTranslate:()=>{var e=l["slides"];l.params.fadeEffect;for(let a=0;a<e.length;a+=1){var s=l.slides[a];let e=-s.swiperSlideOffset,t=(l.params.virtualTranslate||(e-=l.translate),0);l.isHorizontal()||(t=e,e=0);var r=l.params.fadeEffect.crossFade?Math.max(1-Math.abs(s.progress),0):1+Math.min(Math.max(s.progress,-1),0),s=(i=void 0,(i=v(s=s))!==s&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i);s.style.opacity=r,s.style.transform=`translate3d(${e}px, ${t}px, 0px)`}var i},setTransition:t=>{var e=l.slides.map(e=>v(e));e.forEach(e=>{e.style.transitionDuration=t+"ms"});Y({swiper:l,duration:t,transformElements:e,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!l.params.cssMode})};i("beforeInit",()=>{if(r.params.effect!==s)return;r.classNames.push(""+r.params.containerModifierClass+s);p&&p()&&r.classNames.push(r.params.containerModifierClass+"3d");var e=d?d():{};Object.assign(r.params,e);Object.assign(r.originalParams,e)}),i("setTranslate",()=>{if(r.params.effect!==s)return;n()}),i("setTransition",(e,t)=>{if(r.params.effect!==s)return;o(t)}),i("transitionEnd",()=>{if(r.params.effect!==s)return;c&&u&&u().slideShadows&&(r.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),c())});let e;i("virtualUpdate",()=>{if(r.params.effect!==s)return;r.slides.length||(e=!0);requestAnimationFrame(()=>{e&&r.slides&&r.slides.length&&(n(),e=!1)})})}}]),y}();
woodmartThemeModule.$document.on("wdInstagramAjaxSuccess wdLoadDropdownsSuccess wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdShopPageInit wdRecentlyViewedProductLoaded wdQuickViewOpen300",function(){woodmartThemeModule.carouselsInit()}),["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_products_brands.default","frontend/element_ready/wd_blog.default","frontend/element_ready/wd_portfolio.default","frontend/element_ready/wd_images_gallery.default","frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_banner_carousel.default","frontend/element_ready/wd_infobox_carousel.default","frontend/element_ready/wd_instagram.default","frontend/element_ready/wd_testimonials.default","frontend/element_ready/wd_nested_carousel.default","frontend/element_ready/wd_single_product_fbt_products.default","frontend/element_ready/wd_slider.default"].forEach(function(e){woodmartThemeModule.wdElementorAddAction(e,function(){woodmartThemeModule.carouselsInit()})}),woodmartThemeModule.carouselsInit=function(){if("undefined"==typeof wdSwiper)console.error("Swiper is not defined");else{document.querySelectorAll(".wd-carousel-container > .wd-carousel-inner > .wd-carousel:not(.scroll-init)").forEach(function(e){woodmartThemeModule.swiperInit(e)});const t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&((e=e.target)&&!e.classList.contains("wd-initialized")&&woodmartThemeModule.swiperInit(e),t.unobserve(e))})},{rootMargin:"200px 0px 200px 0px"});document.querySelectorAll(".wd-carousel-container > .wd-carousel-inner > .wd-carousel.scroll-init:not(.wd-initialized)").forEach(e=>{t.observe(e)}),window.addEventListener("popstate",function(){document.querySelectorAll(".wd-carousel.wd-initialized").forEach(function(e){void 0===e.swiper&&(e.classList.remove("wd-initialized"),woodmartThemeModule.swiperInit(e))})})}},woodmartThemeModule.swiperInit=function(d,e=!1){if("undefined"==typeof wdSwiper)console.error("Swiper is not defined");else if(!(d.closest(".woocommerce-product-gallery")&&!d.classList.contains("quick-view-gallery")||!e&&void 0!==d.dataset.sync_child_id&&document.querySelector(".wd-carousel[data-sync_parent_id="+d.dataset.sync_child_id+"]"))){var s,l,o,r,t,a,n=d.closest(".wd-carousel-container"),i=window.getComputedStyle(d);if(!(woodmartThemeModule.windowWidth<=1024&&n.classList.contains("wd-carousel-dis-mb")||d.classList.contains("wd-initialized")))return s=i.getPropertyValue("--wd-col"),e=woodmart_settings.carousel_breakpoints,l={},o=d.querySelectorAll(".wd-carousel-item").length,Object.entries(e).forEach(([e,t])=>{t=i.getPropertyValue("--wd-col-"+t);var a=void 0!==d.dataset.scroll_per_page&&"yes"===d.dataset.scroll_per_page;t=t||s;t&&(l[e]={slidesPerView:t||1},a=!("yes"===d.dataset.wrap&&2*parseInt(t,10)>o||"yes"===d.dataset.center_mode)&&a)&&t&&(l[e].slidesPerGroup=parseInt(t))}),e={slidesPerView:s,loop:"yes"===d.dataset.wrap&&(1===parseInt(s,10)||parseInt(s,10)+1<o),loopAddBlankSlides:!1,centeredSlides:"yes"===d.dataset.center_mode,autoHeight:"yes"===d.dataset.autoheight,grabCursor:!0,a11y:{enabled:!0,prevSlideMessage:woodmart_settings.swiper_prev_slide_msg,nextSlideMessage:woodmart_settings.swiper_next_slide_msg,firstSlideMessage:woodmart_settings.swiper_first_slide_msg,lastSlideMessage:woodmart_settings.swiper_last_slide_msg,paginationBulletMessage:woodmart_settings.swiper_pagination_bullet_msg,slideLabelMessage:woodmart_settings.swiper_slide_label_msg},breakpoints:l,watchSlidesProgress:!0,slideClass:"wd-carousel-item",slideActiveClass:"wd-active",slideVisibleClass:"wd-slide-visible",slideNextClass:"wd-slide-next",slidePrevClass:"wd-slide-prev",slideFullyVisibleClass:"wd-full-visible",slideBlankClass:"wd-slide-blank",lazyPreloaderClass:"wd-lazy-preloader",containerModifierClass:"wd-",wrapperClass:"wd-carousel-wrap",simulateTouch:!d.closest(".block-editor-block-list__layout"),on:{init:function(){setTimeout(function(){woodmartThemeModule.$document.trigger("wdSwiperCarouselInited")},100)},slideChange:function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}}},void 0!==d.dataset.effect&&(a=d.dataset.effect,"parallax"===(e.effect=a="distortion"===a?"fade":a))&&(e.parallax={enabled:!0},d.querySelectorAll(".wd-slide-bg").forEach(function(e){e.setAttribute("data-swiper-parallax","50%")})),void 0!==d.dataset.sliding_speed&&d.dataset.sliding_speed&&(e.speed=d.dataset.sliding_speed),(r=Array.prototype.filter.call(n.children,e=>e.classList.contains("wd-nav-pagin-wrap")).shift())&&(e.pagination={el:r.querySelector(".wd-nav-pagin"),dynamicBullets:r.classList.contains("wd-dynamic"),type:"bullets",clickable:!0,bulletClass:"wd-nav-pagin-item",bulletActiveClass:"wd-active",modifierClass:"wd-type-",lockClass:"wd-lock",currentClass:"wd-current",totalClass:"wd-total",hiddenClass:"wd-hidden",clickableClass:"wd-clickable",horizontalClass:"wd-horizontal",verticalClass:"wd-vertical",paginationDisabledClass:"wd-disabled",renderBullet:function(e,t){var a="";return'<li class="'+t+'" tabindex="0" aria-label="'+woodmart_settings.swiper_pagination_bullet_msg.replace("{{index}}",e+1)+'"><span>'+(a=r.classList.contains("wd-style-number-2")&&(a=e+1)<=9?"0"+a:a)+"</span></li>"}}),(a=Array.prototype.filter.call(n.querySelector(".wd-carousel-inner").children,e=>e.classList.contains("wd-nav-arrows")).shift())&&(e.navigation={nextEl:a.querySelector(".wd-btn-arrow.wd-next"),prevEl:a.querySelector(".wd-btn-arrow.wd-prev"),disabledClass:"wd-disabled",lockClass:"wd-lock",hiddenClass:"wd-hide"}),(t=Array.prototype.filter.call(n.children,e=>e.classList.contains("wd-nav-scroll")).shift())&&(e.scrollbar={el:t,lockClass:"wd-lock",dragClass:"wd-nav-scroll-drag",scrollbarDisabledClass:"wd-disabled",horizontalClass:"wd-horizontal",verticalClass:"wd-vertical",draggable:!0},e.on.scrollbarDragStart=function(){t.classList.add("wd-grabbing")},e.on.scrollbarDragEnd=function(){t.classList.remove("wd-grabbing")}),void 0!==d.dataset.autoplay&&"yes"===d.dataset.autoplay&&(e.autoplay={delay:d.dataset.speed||5e3,pauseOnMouseEnter:!0}),void 0!==d.dataset.sync_parent_id&&(a=document.querySelector(".wd-carousel[data-sync_child_id="+d.dataset.sync_parent_id+"]"))&&(window.getComputedStyle(a).getPropertyValue("--wd-col")===s?e.controller={control:woodmartThemeModule.swiperInit(a,!0)}:e.thumbs={swiper:woodmartThemeModule.swiperInit(a,!0),slideThumbActiveClass:"wd-thumb-active",thumbsContainerClass:"wd-thumbs"}),d.querySelectorAll("link").forEach(function(e){var t=e.cloneNode(!1);n.append(t),t.addEventListener("load",function(){setTimeout(function(){e.remove()},500)},!1)}),a=new wdSwiper(d,e),e.controller&&(a.controller.control.controller.control=a),n&&n.classList.contains("wd-slider")&&a.on("realIndexChange",function(e){setTimeout(function(){d.dispatchEvent(new CustomEvent("wdSlideChange",{detail:{activeIndex:e.realIndex}}))},100)}),a}},window.addEventListener("load",function(){woodmartThemeModule.carouselsInit()});
woodmartThemeModule.$document.on("wdReplaceMainGallery",function(){woodmartThemeModule.productImagesGallery(!0)}),["frontend/element_ready/wd_single_product_gallery.default"].forEach(function(e){woodmartThemeModule.wdElementorAddAction(e,function(e){woodmartThemeModule.productImagesGallery(),e.find(".woocommerce-product-gallery").css("opacity","1")})}),woodmartThemeModule.productImagesGallery=function(c=!1){document.querySelectorAll(".woocommerce-product-gallery").forEach(function(l){var e,t,s,i,o,a,d=l.querySelector(".wd-carousel-container"),r=l.querySelector(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)"),n=l.querySelector(".wd-gallery-thumb .wd-carousel");function w(){"undefined"==typeof wdSwiper?console.error("Swiper is not defined"):(n&&void 0!==n.swiper&&n.swiper.destroy(!0,!1),void 0!==r.swiper&&r.swiper.destroy(!0,!1),r.classList.add("wd-carousel"),woodmartThemeModule.$document.trigger("wood-images-loaded"),new wdSwiper(r,e))}r&&(s=(o=window.getComputedStyle(r)).getPropertyValue("--wd-col-lg")?o.getPropertyValue("--wd-col-lg"):o.getPropertyValue("--wd-col"),t=o.getPropertyValue("--wd-col-md")?o.getPropertyValue("--wd-col-md"):o.getPropertyValue("--wd-col"),o=o.getPropertyValue("--wd-col-sm")?o.getPropertyValue("--wd-col-sm"):o.getPropertyValue("--wd-col"),e={slidesPerView:s,loop:woodmart_settings.product_slider_autoplay,centeredSlides:"yes"===r.dataset.center_mode,autoHeight:"yes"===woodmart_settings.product_slider_auto_height,grabCursor:!0,a11y:{enabled:!0,prevSlideMessage:woodmart_settings.swiper_prev_slide_msg,nextSlideMessage:woodmart_settings.swiper_next_slide_msg,firstSlideMessage:woodmart_settings.swiper_first_slide_msg,lastSlideMessage:woodmart_settings.swiper_last_slide_msg,paginationBulletMessage:woodmart_settings.swiper_pagination_bullet_msg,slideLabelMessage:woodmart_settings.swiper_slide_label_msg},breakpoints:{1025:{slidesPerView:s,initialSlide:"yes"===r.dataset.center_mode&&s?1:0},768.98:{slidesPerView:t,initialSlide:"yes"===r.dataset.center_mode&&t?1:0},0:{slidesPerView:o,initialSlide:"yes"===r.dataset.center_mode&&o?1:0}},slideClass:"wd-carousel-item",slideActiveClass:"wd-active",slideVisibleClass:"wd-slide-visible",slideNextClass:"wd-slide-next",slidePrevClass:"wd-slide-prev",slideFullyVisibleClass:"wd-full-visible",slideBlankClass:"wd-slide-blank",lazyPreloaderClass:"wd-lazy-preloader",containerModifierClass:"wd-",wrapperClass:"wd-carousel-wrap",on:{slideChange:function(){r.dispatchEvent(new CustomEvent("wdSlideChange",{activeIndex:this.activeIndex})),woodmartThemeModule.$document.trigger("wood-images-loaded")}}},r.parentElement.querySelector(".wd-btn-arrow.wd-next")&&(e.navigation={nextEl:r.parentElement.querySelector(".wd-btn-arrow.wd-next"),prevEl:r.parentElement.querySelector(".wd-btn-arrow.wd-prev"),disabledClass:"wd-disabled",lockClass:"wd-lock",hiddenClass:"wd-hide"}),woodmart_settings.product_slider_autoplay&&(e.autoplay={delay:3e3,pauseOnMouseEnter:!0}),l.querySelector(".wd-nav-pagin")&&(e.pagination={el:l.querySelector(".wd-nav-pagin"),dynamicBullets:l.querySelector(".wd-nav-pagin-wrap").classList.contains("wd-dynamic"),type:"bullets",clickable:!0,bulletClass:"wd-nav-pagin-item",bulletActiveClass:"wd-active",modifierClass:"wd-type-",lockClass:"wd-lock",currentClass:"wd-current",totalClass:"wd-total",hiddenClass:"wd-hidden",clickableClass:"wd-clickable",horizontalClass:"wd-horizontal",verticalClass:"wd-vertical",paginationDisabledClass:"wd-disabled",renderBullet:function(e,t){var s="";return'<li class="'+t+'" tabindex="0" role="option" aria-label="'+woodmart_settings.swiper_pagination_bullet_msg.replace("{{index}}",e+1)+'"><span>'+(s=l.querySelector(".wd-nav-pagin-wrap").classList.contains("wd-style-number-2")&&(s=e+1)<=9?"0"+s:s)+"</span></li>"}}),n&&(s=l.querySelector(".wd-gallery-thumb"),t=l.classList.contains("thumbs-position-left")&&(1024<woodmartThemeModule.$body.width()||!l.classList.contains("wd-thumbs-wrap"))?"vertical":"horizontal",n.children.length)&&(c&&(a="",r.querySelectorAll(".woocommerce-product-gallery__image").forEach(function(e,t){var s=e.dataset.thumb,l=e.querySelector("a img"),i=l.getAttribute("alt"),o=l.getAttribute("title"),d="";!o&&e.querySelector("a picture")&&(o=e.querySelector("a picture").getAttribute("title")),e.querySelector(".wd-product-video")&&(d+=" wd-with-video"),a=a+'<div class="wd-carousel-item'+d+'"><img src="'+s+'"',i&&(a+=' alt="'+i+'"'),o&&(a+=' title="'+o+'"'),0===t&&(e=l.getAttribute("data-o_src"))&&(a+=' data-o_src="'+e+'"'),a+="/></div>"}),n.firstElementChild.innerHTML=a),"vertical"==t&&!window.getComputedStyle(l).getPropertyValue("--wd-thumbs-height")&&s.offsetHeight&&l.style.setProperty("--wd-thumbs-height",s.offsetHeight+"px"),s=(o=window.getComputedStyle(n)).getPropertyValue("--wd-col-lg")?o.getPropertyValue("--wd-col-lg"):2,i=o.getPropertyValue("--wd-col-md")?o.getPropertyValue("--wd-col-md"):2,o=o.getPropertyValue("--wd-col-sm")?o.getPropertyValue("--wd-col-sm"):2,e.thumbs={swiper:{el:n,slidesPerView:s,direction:t,autoHeight:"horizontal"==t&&"yes"===woodmart_settings.product_slider_auto_height,id:"wd-carousel-thumbnails",slideClass:"wd-carousel-item",slideActiveClass:"wd-active",slideVisibleClass:"wd-slide-visible",slideNextClass:"wd-slide-next",slidePrevClass:"wd-slide-prev",slideFullyVisibleClass:"wd-full-visible",slideBlankClass:"wd-slide-blank",lazyPreloaderClass:"wd-lazy-preloader",containerModifierClass:"wd-",wrapperClass:"wd-carousel-wrap",grabCursor:!0,a11y:{enabled:!0,prevSlideMessage:woodmart_settings.swiper_prev_slide_msg,nextSlideMessage:woodmart_settings.swiper_next_slide_msg,firstSlideMessage:woodmart_settings.swiper_first_slide_msg,lastSlideMessage:woodmart_settings.swiper_last_slide_msg,paginationBulletMessage:woodmart_settings.swiper_pagination_bullet_msg,slideLabelMessage:woodmart_settings.swiper_slide_label_msg},breakpoints:{1025:{slidesPerView:s},768.98:{slidesPerView:i},0:{slidesPerView:o}},navigation:{nextEl:n.nextElementSibling.querySelector(".wd-btn-arrow.wd-next"),prevEl:n.nextElementSibling.querySelector(".wd-btn-arrow.wd-prev"),disabledClass:"wd-disabled",lockClass:"wd-lock",hiddenClass:"wd-hide"},on:{slideChange:function(){woodmartThemeModule.$document.trigger("wood-images-loaded")},resize:function(e){l.classList.contains("thumbs-position-left")&&l.classList.contains("wd-thumbs-wrap")&&(1024<e.currentBreakpoint&&!e.isVertical()?e.changeDirection("vertical"):e.currentBreakpoint<=1024&&!e.isHorizontal()&&e.changeDirection("horizontal"))}}},slideThumbActiveClass:"wd-thumb-active",thumbsContainerClass:"wd-thumbs"}),l.classList.contains("thumbs-position-without")||l.classList.contains("thumbs-position-bottom")||l.classList.contains("thumbs-position-left")||(!d.classList.contains("wd-off-md")&&woodmartThemeModule.$window.width()<=1024&&768<woodmartThemeModule.$window.width()||!d.classList.contains("wd-off-sm")&&woodmartThemeModule.$window.width()<=768)&&(l.classList.contains("thumbs-grid-bottom_combined")||l.classList.contains("thumbs-grid-bottom_combined_2")||l.classList.contains("thumbs-grid-bottom_combined_3")||l.classList.contains("thumbs-grid-bottom_column")||l.classList.contains("thumbs-grid-bottom_grid")))&&("yes"===woodmart_settings.product_slider_auto_height?imagesLoaded(l,function(){w()}):w())})},woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.productImagesGallery()},300))}),window.addEventListener("load",function(){woodmartThemeModule.productImagesGallery()});
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(p,z,t,n){function e(){return{x:0,y:0}}function N(e,t){g.extend(w,t.publicMethods),Be.push(e)}function K(e){var t=L();return t-1<e?e-t:e<0?t+e:e}function a(e,t){return Ye[e]||(Ye[e]=[]),Ye[e].push(t)}function U(e,t,n,o){o===w.currItem.initialZoomLevel?n[e]=w.currItem.initialPosition[e]:(n[e]=je(e,o),n[e]>t.min[e]?n[e]=t.min[e]:n[e]<t.max[e]&&(n[e]=t.max[e]))}function B(e){var t="";v.escKey&&27===e.keyCode?t="close":v.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),!t||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,w[t]())}function H(e){e&&(_e||De||x||Ie)&&(e.preventDefault(),e.stopPropagation())}function W(){w.setScrollOffset(0,g.getScrollY())}function Y(e){var t;"mousedown"===e.type&&0<e.button||(jt?e.preventDefault():Te&&"mousedown"===e.type||(St(e,!0)&&e.preventDefault(),E("pointerDown"),pe&&((t=g.arraySearch(pt,e.pointerId,"id"))<0&&(t=pt.length),pt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=Zt(e)).length,u=null,rt(),s&&1!==e||(s=ke=!0,g.bind(window,Q,w),Ce=Re=Oe=Ie=Me=_e=Ee=De=!1,y=null,E("firstTouchStart",t),M(ze,b),Pe.x=Pe.y=0,M(A,t[0]),M(dt,A),mt.x=I.x*Ne,ft=[{x:A.x,y:A.y}],ve=we=D(),et(f,!0),It(),Tt()),!c&&1<e&&!x&&!Me&&(te=f,c=Ee=!(De=!1),Pe.y=Pe.x=0,M(ze,b),M(k,t[0]),M(ct,t[1]),Ft(k,ct,vt),wt.x=Math.abs(vt.x)-b.x,wt.y=Math.abs(vt.y)-b.y,Fe=Ct(k,ct))))}function G(e){var t;e.preventDefault(),pe&&-1<(t=g.arraySearch(pt,e.pointerId,"id"))&&((t=pt[t]).x=e.pageX,t.y=e.pageY),s&&(t=Zt(e),y||_e||c?u=t:R.x!==I.x*Ne?y="h":(e=Math.abs(t[0].x-A.x)-Math.abs(t[0].y-A.y),Math.abs(e)>=ut&&(y=0<e?"h":"v",u=t)))}function q(e){if(l.isOldAndroid){if(Te&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(Te),Te=setTimeout(function(){Te=0},600))}E("pointerUp"),St(e,!1)&&e.preventDefault(),pe&&-1<(a=g.arraySearch(pt,e.pointerId,"id"))&&(t=pt.splice(a,1)[0],!navigator.pointerEnabled&&(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type)||(t.type=e.pointerType||"mouse"));var t,n=(a=Zt(e)).length;if(2===(n="mouseup"===e.type?0:n))return!(u=null);1===n&&M(dt,a[0]),0!==n||y||x||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),E("touchRelease",e,t));var o,i,a=-1;if(0===n&&(s=!1,g.unbind(window,Q,w),It(),c?a=0:-1!==gt&&(a=D()-gt)),gt=1===n?D():-1,e=-1!==a&&a<150?"zoom":"swipe",c&&n<2&&(c=!1,1===n&&(e="zoomPointerUp"),E("zoomGestureEnded")),u=null,_e||De||x||Ie)if(rt(),(be=be||Nt()).calculateSwipeSpeed("x"),Ie)Ot()<v.verticalDragRange?w.close():(o=b.y,i=Ae,lt("verticalDrag",0,1,300,g.easing.cubic.out,function(e){b.y=(w.currItem.initialPosition.y-o)*e+o,_((1-i)*e+i),S()}),E("onVerticalDrag",1));else{if((Me||x)&&0===n){if(Ut(e,be))return;e="zoomPointerUp"}x||("swipe"!==e?Ht():!Me&&f>w.currItem.fitRatio&&Kt(be))}}var V,X,j,m,$,J,Q,ee,o,f,te,ne,oe,ie,ae,r,re,le,se,ue,ce,de,pe,i,me,fe,he,xe,ye,ge,l,we,ve,be,Ce,Ie,Te,s,Ee,De,_e,Se,Me,u,c,Fe,d,h,x,y,ke,Oe,Ae,Re,Le,g={features:null,bind:function(e,t,n,o){var i=(o?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[i](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){t=document.createElement(t||"div");return e&&(t.className=e),t},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){g.bind(e,t,n,!0)},removeClass:function(e,t){t=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(t," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){g.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(g.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var o=e.length;o--;)if(e[o][n]===t)return o;return-1},extend:function(e,t,n){for(var o in t)!t.hasOwnProperty(o)||n&&e.hasOwnProperty(o)||(e[o]=t[o])},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(g.features)return g.features;for(var e,t,n,o,i,a=g.createEl().style,r="",l={},s=(l.oldIE=document.all&&!document.addEventListener,l.touch="ontouchstart"in window,window.requestAnimationFrame&&(l.raf=window.requestAnimationFrame,l.caf=window.cancelAnimationFrame),l.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,l.pointerEvent||(e=navigator.userAgent,/iP(hone|od)/.test(navigator.platform)&&(t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<t.length&&1<=(t=parseInt(t[1],10))&&t<8&&(l.isOldIOSPhone=!0),t=(t=e.match(/Android\s([0-9\.]*)/))?t[1]:0,1<=(t=parseFloat(t))&&(t<4.4&&(l.isOldAndroid=!0),l.androidVersion=t),l.isMobileOpera=/opera mini|opera mobi/i.test(e)),["transform","perspective","animationName"]),u=["","webkit","Moz","ms","O"],c=0;c<4;c++){for(var r=u[c],d=0;d<3;d++)n=s[d],o=r+(r?n.charAt(0).toUpperCase()+n.slice(1):n),!l[n]&&o in a&&(l[n]=o);r&&!l.raf&&(r=r.toLowerCase(),l.raf=window[r+"RequestAnimationFrame"],l.raf)&&(l.caf=window[r+"CancelAnimationFrame"]||window[r+"CancelRequestAnimationFrame"])}return l.raf||(i=0,l.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),o=window.setTimeout(function(){e(t+n)},n);return i=t+n,o},l.caf=function(e){clearTimeout(e)}),l.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,g.features=l}},w=(g.detectFeatures(),g.features.oldIE&&(g.bind=function(e,t,n,o){t=t.split(" ");for(var i,a=(o?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(i=t[l])if("object"==typeof n&&n.handleEvent){if(o){if(!n["oldIE"+i])return!1}else n["oldIE"+i]=r;e[a]("on"+i,n["oldIE"+i])}else e[a]("on"+i,n)}),this),Ze=25,v={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"},Pe=(g.extend(v,n),e()),ze=e(),b=e(),C={},Ne=0,Ke={},I=e(),T=0,Ue=!0,Be=[],He={},We=!1,Ye={},E=function(e){var t=Ye[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<t.length;o++)t[o].apply(w,n)}},D=function(){return(new Date).getTime()},_=function(e){Ae=e,w.bg.style.opacity=e*v.bgOpacity},Ge=function(e,t,n,o,i){(!We||i&&i!==w.currItem)&&(o/=(i||w.currItem).fitRatio),e[de]=ne+t+"px, "+n+"px"+oe+" scale("+o+")"},S=function(e){h&&(e&&(f>w.currItem.fitRatio?We||(rn(w.currItem,!1,!0),We=!0):We&&(rn(w.currItem),We=!1)),Ge(h,b.x,b.y,f))},qe=function(e){e.container&&Ge(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ve=function(e,t){t[de]=ne+e+"px, 0px"+oe},Xe=function(e,t){var n;!v.loop&&t&&(t=m+(I.x*Ne-e)/I.x,n=Math.round(e-R.x),t<0&&0<n||t>=L()-1&&n<0)&&(e=R.x+n*v.mainScrollEndFriction),R.x=e,Ve(e,$)},je=function(e,t){var n=wt[e]-Ke[e];return ze[e]+Pe[e]+n-t/te*n},M=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},$e=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Je=null,Qe=function(){Je&&(g.unbind(document,"mousemove",Qe),g.addClass(p,"pswp--has_mouse"),v.mouseUsed=!0,E("mouseUsed")),Je=setTimeout(function(){Je=null},100)},et=function(e,t){e=on(w.currItem,C,e);return t&&(d=e),e},tt=function(e){return(e=e||w.currItem).initialZoomLevel},nt=function(e){return 0<(e=e||w.currItem).w?v.maxSpreadZoom:1},F={},ot=0,it=function(e){F[e]&&(F[e].raf&&fe(F[e].raf),ot--,delete F[e])},at=function(e){F[e]&&it(e),F[e]||(ot++,F[e]={})},rt=function(){for(var e in F)F.hasOwnProperty(e)&&it(e)},lt=function(e,t,n,o,i,a,r){function l(){F[e]&&(s=D()-u,o<=s?(it(e),a(n),r&&r()):(a((n-t)*i(s/o)+t),F[e].raf=me(l)))}var s,u=D();at(e);l()},n={shout:E,listen:a,viewportSize:C,options:v,isMainScrollAnimating:function(){return x},getZoomLevel:function(){return f},getCurrentIndex:function(){return m},isDragging:function(){return s},isZooming:function(){return c},setScrollOffset:function(e,t){Ke.x=e,ge=Ke.y=t,E("updateScrollOffset",Ke)},applyZoomPan:function(e,t,n,o){b.x=t,b.y=n,f=e,S(o)},init:function(){if(!V&&!X){w.framework=g,w.template=p,w.bg=g.getChildByClass(p,"pswp__bg"),he=p.className,V=!0,l=g.detectFeatures(),me=l.raf,fe=l.caf,de=l.transform,ye=l.oldIE,w.scrollWrap=g.getChildByClass(p,"pswp__scroll-wrap"),w.container=g.getChildByClass(w.scrollWrap,"pswp__container"),$=w.container.style,w.itemHolders=r=[{el:w.container.children[0],wrap:0,index:-1},{el:w.container.children[1],wrap:0,index:-1},{el:w.container.children[2],wrap:0,index:-1}],r[0].el.style.display=r[2].el.style.display="none",de?(t=l.perspective&&!i,ne="translate"+(t?"3d(":"("),oe=l.perspective?", 0px)":")"):(de="left",g.addClass(p,"pswp--ie"),Ve=function(e,t){t.left=e+"px"},qe=function(e){var t=1<e.fitRatio?1:e.fitRatio,n=e.container.style,o=t*e.w,t=t*e.h;n.width=o+"px",n.height=t+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},S=function(){var e,t,n,o;h&&(e=h,n=(o=1<(t=w.currItem).fitRatio?1:t.fitRatio)*t.w,o=o*t.h,e.width=n+"px",e.height=o+"px",e.left=b.x+"px",e.top=b.y+"px")}),o={resize:w.updateSize,scroll:W,keydown:B,click:H};var e,t=l.isOldIOSPhone||l.isOldAndroid||l.isMobileOpera;for(l.animationName&&l.transform&&!t||(v.showAnimationDuration=v.hideAnimationDuration=0),e=0;e<Be.length;e++)w["init"+Be[e]]();z&&(w.ui=new z(w,g)).init(),E("firstUpdate"),m=m||v.index||0,(isNaN(m)||m<0||m>=L())&&(m=0),w.currItem=$t(m),(l.isOldIOSPhone||l.isOldAndroid)&&(Ue=!1),p.setAttribute("aria-hidden","false"),v.modal&&(Ue?p.style.position="fixed":(p.style.position="absolute",p.style.top=g.getScrollY()+"px")),void 0===ge&&(E("initialLayout"),ge=xe=g.getScrollY());var n="pswp--open ";for(v.mainClass&&(n+=v.mainClass+" "),v.showHideOpacity&&(n+="pswp--animate_opacity "),n=(n=(n+=i?"pswp--touch":"pswp--notouch")+(l.animationName?" pswp--css_animation":""))+(l.svg?" pswp--svg":""),g.addClass(p,n),w.updateSize(),J=-1,T=null,e=0;e<3;e++)Ve((e+J)*I.x,r[e].el.style);ye||g.bind(w.scrollWrap,ee,w),a("initialZoomInEnd",function(){w.setContent(r[0],m-1),w.setContent(r[2],m+1),r[0].el.style.display=r[2].el.style.display="block",v.focus&&p.focus(),g.bind(document,"keydown",w),l.transform&&g.bind(w.scrollWrap,"click",w),v.mouseUsed||g.bind(document,"mousemove",Qe),g.bind(window,"resize scroll",w),E("bindEvents")}),w.setContent(r[1],m),w.updateCurrItem(),E("afterInit"),Ue||(ie=setInterval(function(){ot||s||c||f!==w.currItem.initialZoomLevel||w.updateSize()},1e3)),g.addClass(p,"pswp--visible")}},close:function(){V&&(X=!(V=!1),E("close"),g.unbind(window,"resize",w),g.unbind(window,"scroll",o.scroll),g.unbind(document,"keydown",w),g.unbind(document,"mousemove",Qe),l.transform&&g.unbind(w.scrollWrap,"click",w),s&&g.unbind(window,Q,w),E("unbindEvents"),Jt(w.currItem,null,!0,w.destroy))},destroy:function(){E("destroy"),qt&&clearTimeout(qt),p.setAttribute("aria-hidden","true"),p.className=he,ie&&clearInterval(ie),g.unbind(w.scrollWrap,ee,w),g.unbind(window,"scroll",w),It(),rt(),Ye=null},panTo:function(e,t,n){n||(e>d.min.x?e=d.min.x:e<d.max.x&&(e=d.max.x),t>d.min.y?t=d.min.y:t<d.max.y&&(t=d.max.y)),b.x=e,b.y=t,S()},handleEvent:function(e){e=e||window.event,o[e.type]&&o[e.type](e)},goTo:function(e){var t=(e=K(e))-m;T=t,m=e,w.currItem=$t(m),Ne-=t,Xe(I.x*Ne),rt(),x=!1,w.updateCurrItem()},next:function(){w.goTo(m+1)},prev:function(){w.goTo(m-1)},updateCurrZoomItem:function(e){var t;e&&E("beforeChange",0),h=r[1].el.children.length&&(t=r[1].el.children[0],g.hasClass(t,"pswp__zoom-wrap"))?t.style:null,d=w.currItem.bounds,te=f=w.currItem.initialZoomLevel,b.x=d.center.x,b.y=d.center.y,e&&E("afterChange")},invalidateCurrItems:function(){ae=!0;for(var e=0;e<3;e++)r[e].item&&(r[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==T){var t,n=Math.abs(T);if(!(e&&n<2)){w.currItem=$t(m),We=!1,E("beforeChange",T),3<=n&&(J+=T+(0<T?-3:3),n=3);for(var o=0;o<n;o++)0<T?(t=r.shift(),r[2]=t,Ve((++J+2)*I.x,t.el.style),w.setContent(t,m-n+o+1+1)):(t=r.pop(),r.unshift(t),Ve(--J*I.x,t.el.style),w.setContent(t,m+n-o-1-1));h&&1===Math.abs(T)&&(e=$t(re)).initialZoomLevel!==f&&(on(e,C),rn(e),qe(e)),T=0,w.updateCurrZoomItem(),re=m,E("afterChange")}}},updateSize:function(e){if(!Ue&&v.modal){var t=g.getScrollY();if(ge!==t&&(p.style.top=t+"px",ge=t),!e&&He.x===window.innerWidth&&He.y===window.innerHeight)return;He.x=window.innerWidth,He.y=window.innerHeight,p.style.height=He.y+"px"}if(C.x=w.scrollWrap.clientWidth,C.y=w.scrollWrap.clientHeight,W(),I.x=C.x+Math.round(C.x*v.spacing),I.y=C.y,Xe(I.x*Ne),E("beforeResize"),void 0!==J){for(var n,o,i,a=0;a<3;a++)n=r[a],Ve((a+J)*I.x,n.el.style),i=m+a-1,v.loop&&2<L()&&(i=K(i)),(o=$t(i))&&(ae||o.needsUpdate||!o.bounds)?(w.cleanSlide(o),w.setContent(n,i),1===a&&(w.currItem=o,w.updateCurrZoomItem(!0)),o.needsUpdate=!1):-1===n.index&&0<=i&&w.setContent(n,i),o&&o.container&&(on(o,C),rn(o),qe(o));ae=!1}te=f=w.currItem.initialZoomLevel,(d=w.currItem.bounds)&&(b.x=d.center.x,b.y=d.center.y,S(!0)),E("resize")},zoomTo:function(t,e,n,o,i){e&&(te=f,wt.x=Math.abs(e.x)-b.x,wt.y=Math.abs(e.y)-b.y,M(ze,b));function a(e){1===e?(f=t,b.x=r.x,b.y=r.y):(f=(t-l)*e+l,b.x=(r.x-s.x)*e+s.x,b.y=(r.y-s.y)*e+s.y),i&&i(e),S(1===e)}var e=et(t,!1),r={},l=(U("x",e,r,t),U("y",e,r,t),f),s={x:b.x,y:b.y};$e(r);n?lt("customZoomTo",0,1,n,o||g.easing.sine.inOut,a):a(1)}},st=30,ut=10,k={},ct={},O={},A={},dt={},pt=[],mt={},ft=[],ht={},xt=0,yt=e(),gt=0,R=e(),wt=e(),vt=e(),bt=function(e,t){return e.x===t.x&&e.y===t.y},Ct=function(e,t){return ht.x=Math.abs(e.x-t.x),ht.y=Math.abs(e.y-t.y),Math.sqrt(ht.x*ht.x+ht.y*ht.y)},It=function(){Se&&(fe(Se),Se=null)},Tt=function(){s&&(Se=me(Tt),zt())},Et=function(){return!("fit"===v.scaleMode&&f===w.currItem.initialZoomLevel)},Dt=function(e,t){return!(!e||e.className&&-1<e.className.indexOf("pswp__scroll-wrap"))&&(t(e)?e:Dt(e.parentNode,t))},_t={},St=function(e,t){return _t.prevent=!Dt(e.target,v.isClickableElement),E("preventDragEvent",e,t,_t),_t.prevent},Mt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Ft=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},kt=function(e,t,n){var o;50<e-ve&&((o=2<ft.length?ft.shift():{}).x=t,o.y=n,ft.push(o),ve=e)},Ot=function(){var e=b.y-w.currItem.initialPosition.y;return 1-Math.abs(e/(C.y/2))},At={},Rt={},Lt=[],Zt=function(e){for(;0<Lt.length;)Lt.pop();return pe?(Le=0,pt.forEach(function(e){0===Le?Lt[0]=e:1===Le&&(Lt[1]=e),Le++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(Lt[0]=Mt(e.touches[0],At),1<e.touches.length)&&(Lt[1]=Mt(e.touches[1],Rt)):(At.x=e.pageX,At.y=e.pageY,At.id="",Lt[0]=At),Lt},Pt=function(e,t){var n,o,i,a=b[e]+t[e],r=0<t[e],l=R.x+t.x,s=R.x-mt.x,u=a>d.min[e]||a<d.max[e]?v.panEndFriction:1,a=b[e]+t[e]*u;if((v.allowPanToNext||f===w.currItem.initialZoomLevel)&&(h?"h"!==y||"x"!==e||De||(r?(a>d.min[e]&&(u=v.panEndFriction,d.min[e],n=d.min[e]-ze[e]),(n<=0||s<0)&&1<L()?(i=l,s<0&&l>mt.x&&(i=mt.x)):d.min.x!==d.max.x&&(o=a)):(a<d.max[e]&&(u=v.panEndFriction,d.max[e],n=ze[e]-d.max[e]),(n<=0||0<s)&&1<L()?(i=l,0<s&&l<mt.x&&(i=mt.x)):d.min.x!==d.max.x&&(o=a))):i=l,"x"===e))return void 0!==i&&(Xe(i,!0),Me=i!==mt.x),d.min.x!==d.max.x&&(void 0!==o?b.x=o:Me||(b.x+=t.x*u)),void 0!==i;x||Me||f>w.currItem.fitRatio&&(b[e]+=t[e]*u)},zt=function(){if(u){var e,t,n,o,i,a=u.length;if(0!==a)if(M(k,u[0]),O.x=k.x-A.x,O.y=k.y-A.y,c&&1<a)A.x=k.x,A.y=k.y,!O.x&&!O.y&&bt(u[1],ct)||(M(ct,u[1]),De||(De=!0,E("zoomGestureStarted")),a=Ct(k,ct),(e=Bt(a))>w.currItem.initialZoomLevel+w.currItem.initialZoomLevel/15&&(Re=!0),t=1,n=tt(),o=nt(),e<n?v.pinchToClose&&!Re&&te<=w.currItem.initialZoomLevel?(_(i=1-(n-e)/(n/1.2)),E("onPinchClose",i),Oe=!0):e=n-(t=1<(t=(n-e)/n)?1:t)*(n/3):o<e&&(e=o+(t=1<(t=(e-o)/(6*n))?1:t)*n),t<0&&(t=0),Ft(k,ct,yt),Pe.x+=yt.x-vt.x,Pe.y+=yt.y-vt.y,M(vt,yt),b.x=je("x",e),b.y=je("y",e),Ce=f<e,f=e,S());else if(y&&(ke&&(ke=!1,Math.abs(O.x)>=ut&&(O.x-=u[0].x-dt.x),Math.abs(O.y)>=ut)&&(O.y-=u[0].y-dt.y),A.x=k.x,A.y=k.y,0!==O.x||0!==O.y)){if("v"===y&&v.closeOnVerticalDrag)if(!Et())return Pe.y+=O.y,b.y+=O.y,i=Ot(),Ie=!0,E("onVerticalDrag",i),_(i),void S();kt(D(),k.x,k.y),_e=!0,d=w.currItem.bounds,Pt("x",O)||(Pt("y",O),$e(b),S())}}},Nt=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=(1<ft.length?(t=D()-ve+50,ft[ft.length-2]):(t=D()-we,dt))[e],o.lastFlickOffset[e]=A[e]-n,o.lastFlickDist[e]=Math.abs(o.lastFlickOffset[e]),20<o.lastFlickDist[e]?o.lastFlickSpeed[e]=o.lastFlickOffset[e]/t:o.lastFlickSpeed[e]=0,Math.abs(o.lastFlickSpeed[e])<.1&&(o.lastFlickSpeed[e]=0),o.slowDownRatio[e]=.95,o.slowDownRatioReverse[e]=1-o.slowDownRatio[e],o.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){o.backAnimStarted[t]||(b[t]>d.min[t]?o.backAnimDestination[t]=d.min[t]:b[t]<d.max[t]&&(o.backAnimDestination[t]=d.max[t]),void 0!==o.backAnimDestination[t]&&(o.slowDownRatio[t]=.7,o.slowDownRatioReverse[t]=1-o.slowDownRatio[t],o.speedDecelerationRatioAbs[t]<.05)&&(o.lastFlickSpeed[t]=0,o.backAnimStarted[t]=!0,lt("bounceZoomPan"+t,b[t],o.backAnimDestination[t],e||300,g.easing.sine.out,function(e){b[t]=e,S()})))},calculateAnimOffset:function(e){o.backAnimStarted[e]||(o.speedDecelerationRatio[e]=o.speedDecelerationRatio[e]*(o.slowDownRatio[e]+o.slowDownRatioReverse[e]-o.slowDownRatioReverse[e]*o.timeDiff/10),o.speedDecelerationRatioAbs[e]=Math.abs(o.lastFlickSpeed[e]*o.speedDecelerationRatio[e]),o.distanceOffset[e]=o.lastFlickSpeed[e]*o.speedDecelerationRatio[e]*o.timeDiff,b[e]+=o.distanceOffset[e])},panAnimLoop:function(){F.zoomPan&&(F.zoomPan.raf=me(o.panAnimLoop),o.now=D(),o.timeDiff=o.now-o.lastNow,o.lastNow=o.now,o.calculateAnimOffset("x"),o.calculateAnimOffset("y"),S(),o.calculateOverBoundsAnimOffset("x"),o.calculateOverBoundsAnimOffset("y"),o.speedDecelerationRatioAbs.x<.05)&&o.speedDecelerationRatioAbs.y<.05&&(b.x=Math.round(b.x),b.y=Math.round(b.y),S(),it("zoomPan"))}};return o},Kt=function(e){if(e.calculateSwipeSpeed("y"),d=w.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;at("zoomPan"),e.lastNow=D(),e.panAnimLoop()},Ut=function(e,t){x||(xt=m),"swipe"===e&&(e=A.x-dt.x,a=t.lastFlickDist.x<10,st<e&&(a||20<t.lastFlickOffset.x)?o=-1:e<-st&&(a||t.lastFlickOffset.x<-20)&&(o=1)),o&&((m+=o)<0?(m=v.loop?L()-1:0,i=!0):m>=L()&&(m=v.loop?0:L()-1,i=!0),i&&!v.loop||(T+=o,Ne-=o,n=!0));var n,o,i,e=I.x*Ne,a=Math.abs(e-R.x),r=n||e>R.x==0<t.lastFlickSpeed.x?(r=0<Math.abs(t.lastFlickSpeed.x)?a/Math.abs(t.lastFlickSpeed.x):333,r=Math.min(r,400),Math.max(r,250)):333;return xt===m&&(n=!1),x=!0,E("mainScrollAnimStart"),lt("mainScroll",R.x,e,r,g.easing.cubic.out,Xe,function(){rt(),x=!1,xt=-1,!n&&xt===m||w.updateCurrItem(),E("mainScrollAnimComplete")}),n&&w.updateCurrItem(!0),n},Bt=function(e){return 1/Fe*e*te},Ht=function(){var e,t=f,n=tt(),o=nt(),i=(f<n?t=n:o<f&&(t=o),Ae);return Oe&&!Ce&&!Re&&f<n?w.close():(Oe&&(e=function(e){_((1-i)*e+i)}),w.zoomTo(t,0,200,g.easing.cubic.out,e)),!0};N("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,o,i){le=e+t,se=e+n,ue=e+o,ce=i?e+i:""}(pe=l.pointerEvent)&&l.touch&&(l.touch=!1),pe?navigator.pointerEnabled?e("pointer","down","move","up","cancel"):e("MSPointer","Down","Move","Up","Cancel"):l.touch?(e("touch","start","move","end","cancel"),i=!0):e("mouse","down","move","up"),Q=se+" "+ue+" "+ce,ee=le,pe&&!i&&(i=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),w.likelyTouchDevice=i,o[le]=Y,o[se]=G,o[ue]=q,ce&&(o[ce]=o[ue]),l.touch&&(ee+=" mousedown",Q+=" mousemove mouseup",o.mousedown=o[le],o.mousemove=o[se],o.mouseup=o[ue]),i||(v.allowPanToNext=!1)}}});function Wt(e){function t(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,n.onload=n.onerror=null,n=null}e.loading=!0,e.loaded=!1;var n=e.img=g.createEl("pswp__img","img");n.onload=t,n.onerror=function(){e.loadError=!0,t()},n.src=e.src}function Yt(e,t){return e.src&&e.loadError&&e.container&&(t&&(e.container.innerHTML=""),e.container.innerHTML=v.errorMsg.replace("%url%",e.src),1)}function Gt(){if(Qt.length){for(var e,t=0;t<Qt.length;t++)(e=Qt[t]).holder.index===e.index&&an(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);Qt=[]}}var qt,Vt,Xt,jt,$t,L,Jt=function(a,e,r,t){function l(){it("initialZoom"),r?(w.template.removeAttribute("style"),w.bg.removeAttribute("style")):(_(1),e&&(e.style.display="block"),g.addClass(p,"pswp--animated-in"),E("initialZoom"+(r?"OutEnd":"InEnd"))),t&&t(),jt=!1}qt&&clearTimeout(qt),Xt=jt=!0,a.initialLayout?(s=a.initialLayout,a.initialLayout=null):s=v.getThumbBoundsFn&&v.getThumbBoundsFn(m);var s,u,c,d=r?v.hideAnimationDuration:v.showAnimationDuration;d&&s&&void 0!==s.x?(u=j,c=!w.currItem.src||w.currItem.loadError||v.showHideOpacity,a.miniImg&&(a.miniImg.style.webkitBackfaceVisibility="hidden"),r||(f=s.w/a.w,b.x=s.x,b.y=s.y-xe,w[c?"template":"bg"].style.opacity=.001,S()),at("initialZoom"),r&&!u&&g.removeClass(p,"pswp--animated-in"),c&&(r?g[(u?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){g.addClass(p,"pswp--animate_opacity")},30)),qt=setTimeout(function(){var t,n,o,i,e;E("initialZoom"+(r?"Out":"In")),r?(t=s.w/a.w,n={x:b.x,y:b.y},o=f,i=Ae,e=function(e){1===e?(f=t,b.x=s.x,b.y=s.y-ge):(f=(t-o)*e+o,b.x=(s.x-n.x)*e+n.x,b.y=(s.y-ge-n.y)*e+n.y),S(),c?p.style.opacity=1-e:_(i-e*i)},u?lt("initialZoom",0,1,d,g.easing.cubic.out,e,l):(e(1),qt=setTimeout(l,d+20))):(f=a.initialZoomLevel,M(b,a.initialPosition),S(),_(1),c?p.style.opacity=1:_(1),qt=setTimeout(l,d+20))},r?25:90)):(E("initialZoom"+(r?"Out":"In")),f=a.initialZoomLevel,M(b,a.initialPosition),S(),p.style.opacity=r?0:1,_(1),d?setTimeout(function(){l()},d):l())},Z={},Qt=[],en={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Vt.length}},tn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},nn=function(e,t,n){var o=e.bounds;o.center.x=Math.round((Z.x-t)/2),o.center.y=Math.round((Z.y-n)/2)+e.vGap.top,o.max.x=t>Z.x?Math.round(Z.x-t):o.center.x,o.max.y=n>Z.y?Math.round(Z.y-n)+e.vGap.top:o.center.y,o.min.x=t>Z.x?0:o.center.x,o.min.y=n>Z.y?e.vGap.top:o.center.y},on=function(e,t,n){var o,i;return e.src&&!e.loadError?((o=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),E("parseVerticalMargin",e)),Z.x=t.x,Z.y=t.y-e.vGap.top-e.vGap.bottom,o&&(t=Z.x/e.w,i=Z.y/e.h,e.fitRatio=t<i?t:i,"orig"===(t=v.scaleMode)?n=1:"fit"===t&&(n=e.fitRatio),e.initialZoomLevel=n=1<n?1:n,e.bounds||(e.bounds=tn())),n?(nn(e,e.w*n,e.h*n),o&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0):(e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=tn(),e.initialPosition=e.bounds.center,e.bounds)},an=function(e,t,n,o,i,a){t.loadError||o&&(t.imageAppended=!0,rn(t,o),n.appendChild(o),a)&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500)},rn=function(e,t,n){var o;e.src&&(t=t||e.container.lastChild,o=n?e.w:Math.round(e.w*e.fitRatio),n=n?e.h:Math.round(e.h*e.fitRatio),e.placeholder&&!e.loaded&&(e.placeholder.style.width=o+"px",e.placeholder.style.height=n+"px"),t.style.width=o+"px",t.style.height=n+"px")};N("Controller",{publicMethods:{lazyLoadItem:function(e){e=K(e);var t=$t(e);t&&(!t.loaded&&!t.loading||ae)&&(E("gettingData",e,t),t.src)&&Wt(t)},initController:function(){g.extend(v,en,!0),w.items=Vt=t,$t=w.getItemAt,L=v.getNumItemsFn,v.loop,L()<3&&(v.loop=!1),a("beforeChange",function(e){for(var t=v.preload,n=null===e||0<=e,o=Math.min(t[0],L()),i=Math.min(t[1],L()),a=1;a<=(n?i:o);a++)w.lazyLoadItem(m+a);for(a=1;a<=(n?o:i);a++)w.lazyLoadItem(m-a)}),a("initialLayout",function(){w.currItem.initialLayout=v.getThumbBoundsFn&&v.getThumbBoundsFn(m)}),a("mainScrollAnimComplete",Gt),a("initialZoomInEnd",Gt),a("destroy",function(){for(var e,t=0;t<Vt.length;t++)(e=Vt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Qt=null})},getItemAt:function(e){return 0<=e&&void 0!==Vt[e]&&Vt[e]},allowProgressiveImg:function(){return v.forceProgressiveLoading||!i||v.mouseUsed||1200<screen.width},setContent:function(t,n){v.loop&&(n=K(n));var e,o,i,a=w.getItemAt(t.index),a=(a&&(a.container=null),w.getItemAt(n));a?(E("gettingData",n,a),t.index=n,o=(t.item=a).container=g.createEl("pswp__zoom-wrap"),!a.src&&a.html&&(a.html.tagName?o.appendChild(a.html):o.innerHTML=a.html),Yt(a),on(a,C),!a.src||a.loadError||a.loaded?a.src&&!a.loadError&&((e=g.createEl("pswp__img","img")).style.opacity=1,e.src=a.src,rn(a,e),an(n,a,o,e,!0)):(a.loadComplete=function(e){if(V){if(t&&t.index===n){if(Yt(e,!0))return e.loadComplete=e.img=null,on(e,C),qe(e),void(t.index===m&&w.updateCurrZoomItem());e.imageAppended?!jt&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):l.transform&&(x||jt)?Qt.push({item:e,baseDiv:o,img:e.img,index:n,holder:t,clearPlaceholder:!0}):an(n,e,o,e.img,x||jt,!0)}e.loadComplete=null,e.img=null,E("imageLoadComplete",n,e)}},g.features.transform&&(i="pswp__img pswp__img--placeholder",i+=a.msrc?"":" pswp__img--placeholder--blank",i=g.createEl(i,a.msrc?"img":""),a.msrc&&(i.src=a.msrc),rn(a,i),o.appendChild(i),a.placeholder=i),a.loading||Wt(a),w.allowProgressiveImg()&&(!Xt&&l.transform?Qt.push({item:a,baseDiv:o,img:a.img,index:n,holder:t}):an(n,a,o,a.img,!0,!0))),Xt||n!==m?qe(a):(h=o.style,Jt(a,e||a.img)),t.el.innerHTML="",t.el.appendChild(o)):t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function ln(e,t,n){var o=document.createEvent("CustomEvent"),t={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,t),e.target.dispatchEvent(o)}var sn,P,un={};N("Tap",{publicMethods:{initTap:function(){a("firstTouchStart",w.onTapStart),a("touchRelease",w.onTapRelease),a("destroy",function(){un={},sn=null})},onTapStart:function(e){1<e.length&&(clearTimeout(sn),sn=null)},onTapRelease:function(e,t){var n,o,i;!t||_e||Ee||ot||(n=t,sn&&(clearTimeout(sn),sn=null,o=n,i=un,Math.abs(o.x-i.x)<Ze)&&Math.abs(o.y-i.y)<Ze?E("doubleTap",n):"mouse"===t.type?ln(e,t,"mouse"):"BUTTON"===e.target.tagName.toUpperCase()||g.hasClass(e.target,"pswp__single-tap")?ln(e,t):(M(un,n),sn=setTimeout(function(){ln(e,t),sn=null},300)))}}}),N("DesktopZoom",{publicMethods:{initDesktopZoom:function(){ye||(i?a("mouseUsed",function(){w.setupDesktopZoom()}):w.setupDesktopZoom(!0))},setupDesktopZoom:function(e){P={};var t="wheel mousewheel DOMMouseScroll";a("bindEvents",function(){g.bind(p,t,w.handleMouseWheel)}),a("unbindEvents",function(){P&&g.unbind(p,t,w.handleMouseWheel)}),w.mouseZoomedIn=!1;function n(){w.mouseZoomedIn&&(g.removeClass(p,"pswp--zoomed-in"),w.mouseZoomedIn=!1),f<1?g.addClass(p,"pswp--zoom-allowed"):g.removeClass(p,"pswp--zoom-allowed"),i()}var o,i=function(){o&&(g.removeClass(p,"pswp--dragging"),o=!1)};a("resize",n),a("afterChange",n),a("pointerDown",function(){w.mouseZoomedIn&&(o=!0,g.addClass(p,"pswp--dragging"))}),a("pointerUp",i),e||n()},handleMouseWheel:function(e){if(f<=w.currItem.fitRatio)return v.modal&&(!v.closeOnScroll||ot||s?e.preventDefault():de&&2<Math.abs(e.deltaY)&&(j=!0,w.close())),!0;if(e.stopPropagation(),P.x=0,"deltaX"in e)1===e.deltaMode?(P.x=18*e.deltaX,P.y=18*e.deltaY):(P.x=e.deltaX,P.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(P.x=-.16*e.wheelDeltaX),e.wheelDeltaY?P.y=-.16*e.wheelDeltaY:P.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;P.y=e.detail}et(f,!0);var t=b.x-P.x,n=b.y-P.y;(v.modal||t<=d.min.x&&t>=d.max.x&&n<=d.min.y&&n>=d.max.y)&&e.preventDefault(),w.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:C.x/2+Ke.x,y:C.y/2+Ke.y};var t=v.getDoubleTapZoom(!0,w.currItem),n=f===t;w.mouseZoomedIn=!n,w.zoomTo(n?w.currItem.initialZoomLevel:t,e,333),g[(n?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}}),g.extend(w,n)}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(o,l){function e(e){if(D)return!0;e=e||window.event,E.timeToIdle&&E.mouseUsed&&!w&&s();for(var t,n,o=(e.target||e.srcElement).className,i=0;i<L.length;i++)(t=L[i]).onTap&&-1<o.indexOf("pswp__"+t.name)&&(t.onTap(),n=!0);n&&(e.stopPropagation&&e.stopPropagation(),D=!0,e=l.features.isOldAndroid?600:30,setTimeout(function(){D=!1},e))}function n(){var e=1===E.getNumItemsFn();e!==T&&(A(m,"ui--one-slide",e),T=e)}function r(){A(y,"share-modal--hidden",O)}function i(){if((O=!O)?(l.removeClass(y,"pswp__share-modal--fade-in"),setTimeout(function(){O&&r()},300)):(r(),setTimeout(function(){O||l.addClass(y,"pswp__share-modal--fade-in")},30)),!O){for(var e,t,n,o,i="",a=0;a<E.shareButtons.length;a++){e=E.shareButtons[a];t=E.getImageURLForShare(e);n=E.getPageURLForShare(e);o=E.getTextForShare(e);n=e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o));i+='<a href="'+n+'" target="_blank" '+'class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>";if(E.parseShareButtonOut)i=E.parseShareButtonOut(e,i)}y.children[0].innerHTML=i,y.children[0].onclick=z}}function a(e){for(var t=0;t<E.closeElClasses.length;t++)if(l.hasClass(e,"pswp__"+E.closeElClasses[t]))return!0}function s(){clearTimeout(S),R=0,w&&M.setIdle(!1)}function u(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(S),S=setTimeout(function(){M.setIdle(!0)},E.timeToIdleOutside))}function c(e){C!==e&&(A(b,"preloader--active",!e),C=e)}function d(e){var t,n=e.vGap;!o.likelyTouchDevice||E.mouseUsed||1200<screen.width?(t=E.barsSize,E.captionEl&&"auto"===t.bottom?(h||((h=l.createEl("pswp__caption pswp__caption--fake")).appendChild(l.createEl("pswp__caption__center")),m.insertBefore(h,f),l.addClass(m,"pswp__ui--fit")),E.addCaptionHTMLFn(e,h,!0)?(e=h.clientHeight,n.bottom=parseInt(e,10)||44):n.bottom=t.top):n.bottom="auto"===t.bottom?0:t.bottom,n.top=t.top):n.top=n.bottom=0}function Z(){function e(e){if(e)for(var t=e.length,n=0;n<t;n++){i=e[n],a=i.className;for(var o=0;o<L.length;o++)r=L[o],-1<a.indexOf("pswp__"+r.name)&&(E[r.option]?(l.removeClass(i,"pswp__element--disabled"),r.onInit&&r.onInit(i)):l.addClass(i,"pswp__element--disabled"))}}e(m.children);var i,a,r,t=l.getChildByClass(m,"pswp__top-bar");t&&e(t.children)}var p,m,f,h,t,x,y,g,w,v,b,C,I,T,E,D,_,S,M=this,F=!1,k=!0,O=!0,P={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://x.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return o.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return o.currItem.title||""},indexIndicatorSep:" / "},A=function(e,t,n){l[(n?"add":"remove")+"Class"](e,"pswp__"+t)},z=function(e){var t=(e=e||window.event).target||e.srcElement;if(o.shout("shareLinkClick",e,t),t.href){if(t.hasAttribute("download"))return!0;window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),O||i()}return!1},R=0,L=[{name:"caption",option:"captionEl",onInit:function(e){f=e}},{name:"share-modal",option:"shareEl",onInit:function(e){y=e},onTap:function(){i()}},{name:"button--share",option:"shareEl",onInit:function(e){x=e},onTap:function(){i()}},{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){t=e}},{name:"button--close",option:"closeEl",onTap:o.close},{name:"button--arrow--left",option:"arrowEl",onTap:o.prev},{name:"button--arrow--right",option:"arrowEl",onTap:o.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){p.isFullscreen()?p.exit():p.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){b=e}}];M.init=function(){var t;l.extend(o.options,P,!0),E=o.options,m=l.getChildByClass(o.scrollWrap,"pswp__ui"),(v=o.listen)("onVerticalDrag",function(e){k&&e<.95?M.hideControls():!k&&.95<=e&&M.showControls()}),v("onPinchClose",function(e){k&&e<.9?(M.hideControls(),t=!0):t&&!k&&.9<e&&M.showControls()}),v("zoomGestureEnded",function(){(t=!1)&&!k&&M.showControls()}),v("beforeChange",M.update),v("doubleTap",function(e){var t=o.currItem.initialZoomLevel;o.getZoomLevel()!==t?o.zoomTo(t,e,333):o.zoomTo(E.getDoubleTapZoom(!1,o.currItem),e,333)}),v("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.className&&-1<e.type.indexOf("mouse")&&(0<o.className.indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),v("bindEvents",function(){l.bind(m,"pswpTap click",e),l.bind(o.scrollWrap,"pswpTap",M.onGlobalTap),o.likelyTouchDevice||l.bind(o.scrollWrap,"mouseover",M.onMouseOver)}),v("unbindEvents",function(){O||i(),_&&clearInterval(_),l.unbind(document,"mouseout",u),l.unbind(document,"mousemove",s),l.unbind(m,"pswpTap click",e),l.unbind(o.scrollWrap,"pswpTap",M.onGlobalTap),l.unbind(o.scrollWrap,"mouseover",M.onMouseOver),p&&(l.unbind(document,p.eventK,M.updateFullscreen),p.isFullscreen()&&(E.hideAnimationDuration=0,p.exit()),p=null)}),v("destroy",function(){E.captionEl&&(h&&m.removeChild(h),l.removeClass(f,"pswp__caption--empty")),y&&(y.children[0].onclick=null),l.removeClass(m,"pswp__ui--over-close"),l.addClass(m,"pswp__ui--hidden"),M.setIdle(!1)}),E.showAnimationDuration||l.removeClass(m,"pswp__ui--hidden"),v("initialZoomIn",function(){E.showAnimationDuration&&l.removeClass(m,"pswp__ui--hidden")}),v("initialZoomOut",function(){l.addClass(m,"pswp__ui--hidden")}),v("parseVerticalMargin",d),Z(),E.shareEl&&x&&y&&(O=!0),n(),E.timeToIdle&&v("mouseUsed",function(){l.bind(document,"mousemove",s),l.bind(document,"mouseout",u),_=setInterval(function(){2===++R&&M.setIdle(!0)},E.timeToIdle/2)}),E.fullscreenEl&&((p=p||M.getFullscreenAPI())?(l.bind(document,p.eventK,M.updateFullscreen),M.updateFullscreen(),l.addClass(o.template,"pswp--supports-fs")):l.removeClass(o.template,"pswp--supports-fs")),E.preloaderEl&&(c(!0),v("beforeChange",function(){clearTimeout(I),I=setTimeout(function(){o.currItem&&o.currItem.loading?o.allowProgressiveImg()&&(!o.currItem.img||o.currItem.img.naturalWidth)||c(!1):c(!0)},E.loadingIndicatorDelay)}),v("imageLoadComplete",function(e,t){o.currItem===t&&c(!0)}))},M.setIdle=function(e){A(m,"ui--idle",w=e)},M.update=function(){F=!(!k||!o.currItem||(M.updateIndexIndicator(),E.captionEl&&(E.addCaptionHTMLFn(o.currItem,f),A(f,"caption--empty",!o.currItem.title)),0)),O||i(),n()},M.updateFullscreen=function(e){e&&setTimeout(function(){o.setScrollOffset(0,l.getScrollY())},50),l[(p.isFullscreen()?"add":"remove")+"Class"](o.template,"pswp--fs")},M.updateIndexIndicator=function(){E.counterEl&&(t.innerHTML=o.getCurrentIndex()+1+E.indexIndicatorSep+E.getNumItemsFn())},M.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;D||(e.detail&&"mouse"===e.detail.pointerType?a(t)?o.close():l.hasClass(t,"pswp__img")&&(1===o.getZoomLevel()&&o.getZoomLevel()<=o.currItem.fitRatio?E.clickToCloseNonZoomable&&o.close():o.toggleDesktopZoom(e.detail.releasePoint)):(E.tapToToggleControls&&(k?M.hideControls():M.showControls()),E.tapToClose&&(l.hasClass(t,"pswp__img")||a(t))&&o.close()))},M.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;A(m,"ui--over-close",a(e))},M.hideControls=function(){l.addClass(m,"pswp__ui--hidden"),k=!1},M.showControls=function(){k=!0,F||M.update(),l.removeClass(m,"pswp__ui--hidden")},M.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},M.getFullscreenAPI=function(){var e,t=document.documentElement,n="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(g=E.closeOnScroll,E.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return o.template[this.enterK]();o.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return E.closeOnScroll=g,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}});
!function(n){woodmartThemeModule.productImages=function(){var e=n(".woocommerce-product-gallery"),t=n(".woocommerce-product-gallery__wrapper"),a=".wd-show-product-gallery-wrap > a",o=(e.hasClass("image-action-popup")&&(a+=", .woocommerce-product-gallery__image > a"),e.on("click",".woocommerce-product-gallery__image > a",function(e){e.preventDefault()}),e.on("click",a,function(e){e.preventDefault();var t=n(this),t=(t.attr("href"),r());woodmartThemeModule.callPhotoSwipe(o(e),t)}),function(e){var t,a=0,e=n(e.currentTarget);return e.parents(".wd-carousel-item").length?a=e.parents(".wd-carousel-item").index():e.hasClass("woodmart-show-product-gallery")&&((t=e.parents(".woocommerce-product-gallery")).hasClass("thumbs-position-left")||t.hasClass("thumbs-position-bottom")||t.hasClass("thumbs-position-without"))&&(a=e.parents(".wd-gallery-images").find(".wd-carousel-item.wd-active").index()),a}),r=function(){var d=[];return t.find("figure a img").each(function(){var e,t=n(this),a=t.attr("data-large_image"),o=t.attr("data-large_image_width"),r=t.attr("data-large_image_height"),i=t.attr("data-caption");t.parents(".wd-carousel-item.wd-with-video").length?(-1!==(e=t.parents(".wd-with-video")[0].outerHTML).indexOf("wd-inited")&&(e=e.replace("wd-inited","wd-loaded").replace("wd-video-playing","")),d.push({html:e,mainElement:t.parents(".wd-with-video")})):d.push({src:a,w:o,h:r,title:"yes"===woodmart_settings.product_images_captions&&i})}),d}},n(document).ready(function(){woodmartThemeModule.productImages()})}(jQuery);
!function(l){woodmartThemeModule.callPhotoSwipe=function(e,t){woodmartThemeModule.$body.hasClass("rtl")&&(e=t.length-e-1,t=t.reverse());var e={index:e,shareButtons:[{id:"facebook",label:woodmart_settings.share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:woodmart_settings.tweet,url:"https://x.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:woodmart_settings.pin_it,url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:woodmart_settings.download_image,url:"{{raw_image_url}}",download:!0}],closeOnScroll:woodmart_settings.photoswipe_close_on_scroll,isClickableElement:function(e){return"A"===e.tagName||l(e).hasClass("wd-play-video")||l(e).hasClass("wd-product-video")},getDoubleTapZoom:function(e,t){return e||void 0!==t.html||t.initialZoomLevel<.7?1:1.33}},o=(woodmartThemeModule.$body.find(".pswp").remove(),woodmartThemeModule.$body.append(woodmart_settings.photoswipe_template),document.querySelectorAll(".pswp")[0]),o=new PhotoSwipe(o,PhotoSwipeUI_Default,t,e);woodmartThemeModule.$document.trigger("wdPhotoSwipeBeforeInited",o),o.init()}}(jQuery);
!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.8",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,i){return i=null==i?u.length-1:+i,function(){for(var n=Math.max(arguments.length-i,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+i];switch(i){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(i+1),r=0;r<i;r++)e[r]=arguments[r];return e[i]=t,u.apply(this,e)}}function i(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function o(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=o("String"),Y=o("Number"),Z=o("Date"),nn=o("RegExp"),tn=o("Error"),rn=o("Symbol"),en=o("ArrayBuffer"),a=o("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=o("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=o("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,c=U||o("Array");function v(n,t){return null!=n&&q.call(n,t)}var on=o("Arguments"),an=(!function(){on(arguments)||(on=function(n){return v(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var y=sn("byteLength"),pn=ln(y),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),d=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,i="constructor";for(v(n,i)&&!t.contains(i)&&t.push(i);r--;)(i=J[r])in n&&n[i]!==u[i]&&!t.contains(i)&&t.push(i)}function g(n){if(!i(n))return[];if(W)return W(n);var t,r=[];for(t in n)v(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=g(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;i<e;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0}function b(n){return n instanceof b?n:this instanceof b?void(this._wrapped=n):new b(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,y(n))}b.VERSION=n,b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function m(n){if(!i(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function mn(e){var u=d(e);return function(n){if(null==n)return!1;var t=m(n);if(d(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==wn||!p(n[jn])}}var jn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(jn,u),wn=t.concat(u),r=["add"].concat(t,jn,"has"),u=a?mn(U):o("Map"),t=a?mn(wn):o("WeakMap"),U=a?mn(r):o("Set"),a=o("WeakSet");function j(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function _n(n){for(var t={},r=g(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function An(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function xn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),i=u.length,o=0;o<i;o++){var a=u[o];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var Sn=xn(m),w=xn(g),On=xn(m,!0);function Mn(n){var t;return i(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function En(n){return c(n)?n:[n]}function _(n){return b.toPath(n)}function Bn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function Nn(n,t,r){n=Bn(n,_(t));return H(n)?r:n}function kn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function In(t){return t=_(t),function(n){return Bn(n,t)}}function x(u,i,n){if(void 0===i)return u;switch(null==n?3:n){case 1:return function(n){return u.call(i,n)};case 3:return function(n,t,r){return u.call(i,n,t,r)};case 4:return function(n,t,r,e){return u.call(i,n,t,r,e)}}return function(){return u.apply(i,arguments)}}function Tn(n,t,r){return null==n?kn:p(n)?x(n,t,r):(i(n)&&!c(n)?A:In)(n)}function Dn(n,t){return Tn(n,t,1/0)}function S(n,t,r){return b.iteratee!==Dn?b.iteratee(n,t):Tn(n,t,r)}function Rn(){}function Vn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}b.toPath=En,b.iteratee=Dn;var O=Date.now||function(){return(new Date).getTime()};function Fn(t){function r(n){return t[n]}var n="(?:"+g(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Pn=Fn(r),r=Fn(_n(r)),qn=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Un=/(.)^/,Wn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zn=/\\|'|\r|\n|\u2028|\u2029/g;function Ln(n){return"\\"+Wn[n]}var $n=/^\s*(\w|\$)+\s*$/;var Cn=0;function Kn(n,t,r,e,u){return e instanceof t?(e=Mn(n.prototype),i(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,i){function o(){for(var n=0,t=i.length,r=Array(t),e=0;e<t;e++)r[e]=i[e]===a?arguments[n++]:i[e];for(;n<arguments.length;)r.push(arguments[n++]);return Kn(u,o,this,this,r)}var a=M.placeholder;return o}),Jn=(M.placeholder=b,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Kn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(d);function B(n,t,r){t||0===t||(t=1/0);for(var e=[],u=0,i=0,o=d(n)||0,a=[];;){if(o<=i){if(a.length){var f=a.pop(),i=f.i,o=d(n=f.v);continue}break}f=n[i++];t<=a.length?e[u++]=f:E(f)&&(c(f)||an(f))?(a.push({i:i,v:n}),i=0,o=d(n=f)):r||(e[u++]=f)}return e}var Gn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Jn(n[e],n)}return n});var Hn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Qn=M(Hn,b,1);function Xn(n){return function(){return!n.apply(this,arguments)}}function Yn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var Zn=M(Yn,2);function nt(n,t,r){t=S(t,r);for(var e,u=g(n),i=0,o=u.length;i<o;i++)if(t(n[e=u[i]],e,n))return e}function tt(i){return function(n,t,r){t=S(t,r);for(var e=d(n),u=0<i?0:e-1;0<=u&&u<e;u+=i)if(t(n[u],u,n))return u;return-1}}var rt=tt(1),et=tt(-1);function ut(n,t,r,e){for(var u=(r=S(r,e,1))(t),i=0,o=d(n);i<o;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i}function it(i,o,a){return function(n,t,r){var e=0,u=d(n);if("number"==typeof r)0<i?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=o(f.call(n,e,u),fn))?r+e:-1;for(r=0<i?e:u-1;0<=r&&r<u;r+=i)if(n[r]===t)return r;return-1}}var ot=it(1,rt,ut),at=it(-1,et);function ft(n,t,r){t=(E(n)?rt:nt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,i=n.length;u<i;u++)t(n[u],u,n);else for(var e=g(n),u=0,i=e.length;u<i;u++)t(n[e[u]],e[u],n);return n}function k(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=Array(u),o=0;o<u;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i}function ct(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&g(n),i=(u||n).length,o=0<f?0:i-1;for(e||(r=n[u?u[o]:o],o+=f);0<=o&&o<i;o+=f){var a=u?u[o]:o;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var lt=ct(1),st=ct(-1);function I(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function pt(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1}function T(n,t,r,e){return E(n)||(n=j(n)),0<=ot(n,t,r="number"==typeof r&&!e?r:0)}var vt=l(function(n,r,e){var u,i;return p(r)?i=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),k(n,function(n){var t=i;if(!t){if(null==(n=u&&u.length?Bn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function yt(n,t){return k(n,In(t))}function dt(n,e,t){var r,u,i=-1/0,o=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&i<r&&(i=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(o<u||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i}var gt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function bt(n){return n?c(n)?f.call(n):X(n)?n.match(gt):E(n)?k(n,kn):j(n):[]}function mt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=bt(n),r=d(e),u=(t=Math.max(Math.min(t,r),0),r-1),i=0;i<t;i++){var o=Vn(i,u),a=e[i];e[i]=e[o],e[o]=a}return e.slice(0,t)}function D(i,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);i(u,n,t)}),u}}var jt=D(function(n,t,r){v(n,r)?n[r].push(t):n[r]=[t]}),wt=D(function(n,t,r){n[r]=t}),_t=D(function(n,t,r){v(n,r)?n[r]++:n[r]=1}),At=D(function(n,t,r){n[r?0:1].push(t)},!0);function xt(n,t,r){return t in r}var St=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=m(n)):(e=xt,t=B(t,!1,!1),n=Object(n));for(var u=0,i=t.length;u<i;u++){var o=t[u],a=n[o];e(a,o,n)&&(r[o]=a)}}return r}),Ot=l(function(n,r){var t,e=r[0];return p(e)?(e=Xn(e),1<r.length&&(t=r[1])):(r=k(B(r,!1,!1),String),e=function(n,t){return!T(r,t)}),St(n,e,t)});function Mt(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Et(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Mt(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Bt=l(function(n,t){return t=B(t,!0,!0),I(n,function(n){return!T(t,n)})}),Nt=l(function(n,t){return Bt(n,t)});function kt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],i=[],o=0,a=d(n);o<a;o++){var f=n[o],c=r?r(f,o,n):f;t&&!r?(o&&i===c||u.push(f),i=c):r?T(i,c)||(i.push(c),u.push(f)):T(u,f)||u.push(f)}return u}var It=l(function(n){return kt(B(n,!0,!0))});function Tt(n){for(var t=n&&dt(n,d).length||0,r=Array(t),e=0;e<t;e++)r[e]=yt(n,e);return r}var Dt=l(Tt);function Rt(n,t){return n._chain?b(t).chain():t}function Vt(r){return N(An(r),function(n){var t=b[n]=r[n];b.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Rt(this,t.apply(b,n))}}),b}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];b.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Rt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];b.prototype[n]=function(){var n=this._wrapped;return Rt(this,n=null!=n?t.apply(n,arguments):n)}});n=Vt({__proto__:null,VERSION:n,restArguments:l,isObject:i,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:c,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=d(n))&&(c(n)||X(n)||an(n))?0===t:0===d(g(n)))},isMatch:dn,isEqual:function(n,t){for(var r=[{a:n,b:t}],e=[],u=[];r.length;){var i=r.pop();if(!0===i)e.pop(),u.pop();else{if((n=i.a)===(t=i.b)){if(0!==n||1/n==1/t)continue;return!1}if(null==n||null==t)return!1;if(n!=n){if(t!=t)continue;return!1}i=typeof n;if("function"!=i&&"object"!=i&&"object"!=typeof t)return!1;n instanceof b&&(n=n._wrapped),t instanceof b&&(t=t._wrapped);i=s.call(n);if(i!==s.call(t))return!1;if(un&&"[object Object]"==i&&h(n)){if(!h(t))return!1;i=bn}switch(i){case"[object RegExp]":case"[object String]":if(""+n==""+t)continue;return!1;case"[object Number]":r.push({a:+n,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+n==+t)continue;return!1;case"[object Symbol]":if(F.valueOf.call(n)===F.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case bn:r.push({a:gn(n),b:gn(t)});continue}i="[object Array]"===i;if(!i&&vn(n)){if(y(n)!==y(t))return!1;if(n.buffer===t.buffer&&n.byteOffset===t.byteOffset)continue;i=!0}if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}for(var f=e.length;f--;)if(e[f]===n){if(u[f]===t)break;return!1}if(!(0<=f))if(e.push(n),u.push(t),r.push(!0),i){if((f=n.length)!==t.length)return!1;for(;f--;)r.push({a:n[f],b:t[f]})}else{var c,l=g(n),f=l.length;if(g(t).length!==f)return!1;for(;f--;){if(!v(t,c=l[f]))return!1;r.push({a:n[c],b:t[c]})}}}}return!0},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:g,allKeys:m,values:j,pairs:function(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:_n,functions:An,methods:An,extend:Sn,extendOwn:w,assign:w,defaults:On,create:function(n,t){return n=Mn(n),t&&w(n,t),n},clone:function(n){return i(n)?c(n)?n.slice():Sn({},n):n},tap:function(n,t){return t(n),n},get:Nn,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!v(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=g(n),u=e.length,i={},o=0;o<u;o++){var a=e[o];i[a]=t(n[a],a,n)}return i},identity:kn,constant:cn,noop:Rn,toPath:En,property:In,propertyOf:function(t){return null==t?Rn:function(n){return Nn(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Vn,now:O,escape:Pn,unescape:r,templateSettings:qn,template:function(i,n,t){n=On({},n=!n&&t?t:n,b.templateSettings);var r,t=RegExp([(n.escape||Un).source,(n.interpolate||Un).source,(n.evaluate||Un).source].join("|")+"|$","g"),o=0,a="__p+='";if(i.replace(t,function(n,t,r,e,u){return a+=i.slice(o,u).replace(zn,Ln),o=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!$n.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,b)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var i=null==n?void 0:n[t[u]];void 0===i&&(i=r,u=e),n=p(i)?i.call(n):i}return n},uniqueId:function(n){var t=++Cn+"";return n?n+t:t},chain:function(n){return(n=b(n))._chain=!0,n},iteratee:Dn,partial:M,bind:Jn,bindAll:Gn,memoize:function(e,u){function i(n){var t=i.cache,r=""+(u?u.apply(this,arguments):n);return v(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return i.cache={},i},delay:Hn,defer:Qn,throttle:function(r,e,u){function i(){l=!1===u.leading?0:O(),o=null,c=r.apply(a,f),o||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(o&&(clearTimeout(o),o=null),l=n,c=r.apply(a,f),o||(a=f=null)):o||!1===u.trailing||(o=setTimeout(i,t)),c}var o,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(o),l=0,o=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-o;n<r?i=setTimeout(u,r-n):(i=null,e||(f=t.apply(c,a)),i||(a=c=null))}var i,o,a,f,c,n=l(function(n){return c=this,a=n,o=O(),i||(i=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(i),i=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Xn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Yn,once:Zn,findKey:nt,findIndex:rt,findLastIndex:et,sortedIndex:ut,indexOf:ot,lastIndexOf:at,find:ft,detect:ft,findWhere:function(n,t){return ft(n,A(t))},each:N,forEach:N,map:k,collect:k,reduce:lt,foldl:lt,inject:lt,reduceRight:st,foldr:st,filter:I,select:I,reject:function(n,t,r){return I(n,Xn(S(t)),r)},every:pt,all:pt,some:ht,any:ht,contains:T,includes:T,include:T,invoke:vt,pluck:yt,where:function(n,t){return I(n,A(t))},max:dt,min:function(n,e,t){var r,u,i=1/0,o=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<i&&(i=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<o||u===1/0&&i===1/0)&&(i=n,o=u)});return i},shuffle:function(n){return mt(n,1/0)},sample:mt,sortBy:function(n,e,t){var u=0;return e=S(e,t),yt(k(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:jt,indexBy:wt,countBy:_t,partition:At,toArray:bt,size:function(n){return null==n?0:(E(n)?n:g(n)).length},pick:St,omit:Ot,first:Et,head:Et,take:Et,initial:Mt,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return I(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:Nt,uniq:kt,unique:kt,union:It,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=d(n);e<u;e++){var i=n[e];if(!T(t,i)){for(var o=1;o<r&&T(arguments[o],i);o++);o===r&&t.push(i)}}return t},difference:Bt,unzip:Tt,transpose:Tt,zip:Dt,object:function(n,t){for(var r={},e=0,u=d(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;i<e;i++,n+=r)u[i]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Vt,default:b});return n._=n});
!function(n){var s="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,e,i){s.Backbone=n(s,i,t,e)});else if("undefined"!=typeof exports){var t,e=require("underscore");try{t=require("jquery")}catch(t){}n(s,exports,e,t)}else s.Backbone=n(s,{},s._,s.jQuery||s.Zepto||s.ender||s.$)}(function(t,h,b,e){function a(t,e,i,n,s){var r,o=0;if(i&&"object"==typeof i){void 0!==n&&"context"in s&&void 0===s.context&&(s.context=n);for(r=b.keys(i);o<r.length;o++)e=a(t,e,r[o],i[r[o]],s)}else if(i&&l.test(i))for(r=i.split(l);o<r.length;o++)e=t(e,r[o],n,s);else e=t(e,i,n,s);return e}function x(t,e,i){i=Math.min(Math.max(i,0),t.length);for(var n=Array(t.length-i),s=e.length,r=0;r<n.length;r++)n[r]=t[r+i];for(r=0;r<s;r++)t[r+i]=e[r];for(r=0;r<n.length;r++)t[r+s+i]=n[r]}function s(i,n,t,s){b.each(t,function(t,e){n[e]&&(i.prototype[e]=function(n,t,s,r){switch(t){case 1:return function(){return n[s](this[r])};case 2:return function(t){return n[s](this[r],t)};case 3:return function(t,e){return n[s](this[r],T(t,this),e)};case 4:return function(t,e,i){return n[s](this[r],T(t,this),e,i)};default:return function(){var t=u.call(arguments);return t.unshift(this[r]),n[s].apply(n,t)}}}(n,t,e,s))})}var o,i=t.Backbone,u=Array.prototype.slice,e=(h.VERSION="1.6.1",h.$=e,h.noConflict=function(){return t.Backbone=i,this},h.emulateHTTP=!1,h.emulateJSON=!1,h.Events={}),l=/\s+/,n=(e.on=function(t,e,i){return this._events=a(n,this._events||{},t,e,{context:i,ctx:this,listening:o}),o&&(((this._listeners||(this._listeners={}))[o.id]=o).interop=!1),this},e.listenTo=function(t,e,i){if(t){var n=t._listenId||(t._listenId=b.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),r=o=s[n],s=(r||(this._listenId||(this._listenId=b.uniqueId("l")),r=o=s[n]=new g(this,t)),c(t,e,i,this));if(o=void 0,s)throw s;r.interop&&r.on(e,i)}return this},function(t,e,i,n){var s,r;return i&&(e=t[e]||(t[e]=[]),s=n.context,r=n.ctx,(n=n.listening)&&n.count++,e.push({callback:i,context:s,ctx:s||r,listening:n})),t}),c=function(t,e,i,n){try{t.on(e,i,n)}catch(t){return t}},r=(e.off=function(t,e,i){return this._events&&(this._events=a(r,this._events,t,e,{context:i,listeners:this._listeners})),this},e.stopListening=function(t,e,i){var n=this._listeningTo;if(n){for(var s=t?[t._listenId]:b.keys(n),r=0;r<s.length;r++){var o=n[s[r]];if(!o)break;o.obj.off(e,i,this),o.interop&&o.off(e,i)}b.isEmpty(n)&&(this._listeningTo=void 0)}return this},function(t,e,i,n){if(t){var s,r=n.context,o=n.listeners,h=0;if(e||r||i){for(s=e?[e]:b.keys(t);h<s.length;h++){var a=t[e=s[h]];if(!a)break;for(var u=[],l=0;l<a.length;l++){var c=a[l];i&&i!==c.callback&&i!==c.callback._callback||r&&r!==c.context?u.push(c):(c=c.listening)&&c.off(e,i)}u.length?t[e]=u:delete t[e]}return t}for(s=b.keys(o);h<s.length;h++)o[s[h]].cleanup()}}),d=(e.once=function(t,e,i){var n=a(d,{},t,e,this.off.bind(this));return this.on(n,e="string"==typeof t&&null==i?void 0:e,i)},e.listenToOnce=function(t,e,i){e=a(d,{},e,i,this.stopListening.bind(this,t));return this.listenTo(t,e)},function(t,e,i,n){var s;return i&&((s=t[e]=b.once(function(){n(e,s),i.apply(this,arguments)}))._callback=i),t}),f=(e.trigger=function(t){if(this._events){for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];a(f,this._events,t,void 0,i)}return this},function(t,e,i,n){var s,r;return t&&(s=t[e],r=t.all,s&&(r=r&&r.slice()),s&&p(s,n),r)&&p(r,[e].concat(n)),t}),p=function(t,e){var i,n=-1,s=t.length,r=e[0],o=e[1],h=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,o,h);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}},g=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0},v=(g.prototype.on=e.on,g.prototype.off=function(t,e){t=this.interop?(this._events=a(r,this._events,t,e,{context:void 0,listeners:void 0}),!this._events):(this.count--,0===this.count);t&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},e.bind=e.on,e.unbind=e.off,b.extend(h,e),h.Model=function(t,e){var i=t||{},n=(e=e||{},this.preinitialize.apply(this,arguments),this.cid=b.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(i=this.parse(i,e)||{}),b.result(this,"defaults")),i=b.defaults(b.extend({},n,i),n);this.set(i,e),this.changed={},this.initialize.apply(this,arguments)}),m=(b.extend(v.prototype,e,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return b.clone(this.attributes)},sync:function(){return h.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return b.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!b.iteratee(t,this)(this.attributes)},set:function(t,e,i){if(null!=t){var n;if("object"==typeof t?(n=t,i=e):(n={})[t]=e,!this._validate(n,i=i||{}))return!1;var s,r,o=i.unset,t=i.silent,h=[],a=this._changing,u=(this._changing=!0,a||(this._previousAttributes=b.clone(this.attributes),this.changed={}),this.attributes),l=this.changed,c=this._previousAttributes;for(s in n)e=n[s],b.isEqual(u[s],e)||h.push(s),b.isEqual(c[s],e)?delete l[s]:l[s]=e,o?delete u[s]:u[s]=e;if(this.idAttribute in n&&(r=this.id,this.id=this.get(this.idAttribute),this.id!==r)&&this.trigger("changeId",this,r,i),!t){h.length&&(this._pending=i);for(var d=0;d<h.length;d++)this.trigger("change:"+h[d],this,u[h[d]],i)}if(!a){if(!t)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);this._pending=!1,this._changing=!1}}return this},unset:function(t,e){return this.set(t,void 0,b.extend({},e,{unset:!0}))},clear:function(t){var e,i={};for(e in this.attributes)i[e]=void 0;return this.set(i,b.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!b.isEmpty(this.changed):b.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&b.clone(this.changed);var e,i,n=this._changing?this._previousAttributes:this.attributes,s={};for(i in t){var r=t[i];b.isEqual(n[i],r)||(s[i]=r,e=!0)}return!!e&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return b.clone(this._previousAttributes)},fetch:function(i){i=b.extend({parse:!0},i);var n=this,s=i.success;return i.success=function(t){var e=i.parse?n.parse(t,i):t;if(!n.set(e,i))return!1;s&&s.call(i.context,n,t,i),n.trigger("sync",n,t,i)},N(this,i),this.sync("read",this,i)},save:function(t,e,i){null==t||"object"==typeof t?(n=t,i=e):(n={})[t]=e;var n,s=(i=b.extend({validate:!0,parse:!0},i)).wait;if(n&&!s){if(!this.set(n,i))return!1}else if(!this._validate(n,i))return!1;var r=this,o=i.success,h=this.attributes,t=(i.success=function(t){r.attributes=h;var e=i.parse?r.parse(t,i):t;if((e=s?b.extend({},n,e):e)&&!r.set(e,i))return!1;o&&o.call(i.context,r,t,i),r.trigger("sync",r,t,i)},N(this,i),n&&s&&(this.attributes=b.extend({},h,n)),this.isNew()?"create":i.patch?"patch":"update"),e=("patch"!=t||i.attrs||(i.attrs=n),this.sync(t,this,i));return this.attributes=h,e},destroy:function(e){e=e?b.clone(e):{};function i(){n.stopListening(),n.trigger("destroy",n,n.collection,e)}var n=this,s=e.success,r=e.wait,t=!(e.success=function(t){r&&i(),s&&s.call(e.context,n,t,e),n.isNew()||n.trigger("sync",n,t,e)});return this.isNew()?b.defer(e.success):(N(this,e),t=this.sync("delete",this,e)),r||i(),t},url:function(){var t,e=b.result(this,"urlRoot")||b.result(this.collection,"url")||M();return this.isNew()?e:(t=this.get(this.idAttribute),e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t))},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},b.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=b.extend({},this.attributes,t);t=this.validationError=this.validate(t,e)||null;return!t||(this.trigger("invalid",this,t,b.extend(e,{validationError:t})),!1)}}),h.Collection=function(t,e){e=e||{},this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,b.extend({silent:!0},e))}),w={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},y=(b.extend(m.prototype,e,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return h.sync.apply(this,arguments)},add:function(t,e){return this.set(t,b.extend({merge:!1},e,_))},remove:function(t,e){e=b.extend({},e);var i=!b.isArray(t),t=(t=i?[t]:t.slice(),this._removeModels(t,e));return!e.silent&&t.length&&(e.changes={added:[],merged:[],removed:t},this.trigger("update",this,e)),i?t[0]:t},set:function(t,e){if(null!=t){(e=b.extend({},w,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);for(var i=!b.isArray(t),n=(t=i?[t]:t.slice(),e.at),s=((n=(n=null!=n?+n:n)>this.length?this.length:n)<0&&(n+=this.length+1),[]),r=[],o=[],h=[],a={},u=e.add,l=e.merge,c=e.remove,d=!1,f=this.comparator&&null==n&&!1!==e.sort,p=b.isString(this.comparator)?this.comparator:null,g=0;g<t.length;g++){var v,m=t[g],_=this.get(m);_?(l&&m!==_&&(v=this._isModel(m)?m.attributes:m,e.parse&&(v=_.parse(v,e)),_.set(v,e),o.push(_),f)&&!d&&(d=_.hasChanged(p)),a[_.cid]||(a[_.cid]=!0,s.push(_)),t[g]=_):u&&(m=t[g]=this._prepareModel(m,e))&&(r.push(m),this._addReference(m,e),a[m.cid]=!0,s.push(m))}if(c){for(g=0;g<this.length;g++)a[(m=this.models[g]).cid]||h.push(m);h.length&&this._removeModels(h,e)}var y=!1;if(s.length&&(!f&&u&&c)?(y=this.length!==s.length||b.some(this.models,function(t,e){return t!==s[e]}),this.models.length=0,x(this.models,s,0),this.length=this.models.length):r.length&&(f&&(d=!0),x(this.models,r,null==n?this.length:n),this.length=this.models.length),d&&this.sort({silent:!0}),!e.silent){for(g=0;g<r.length;g++)null!=n&&(e.index=n+g),(m=r[g]).trigger("add",m,this,e);(d||y)&&this.trigger("sort",this,e),(r.length||h.length||o.length)&&(e.changes={added:r,removed:h,merged:o},this.trigger("update",this,e))}return i?t[0]:t}},reset:function(t,e){e=e?b.clone(e):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],e);return e.previousModels=this.models,this._reset(),t=this.add(t,b.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,b.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,b.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return u.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t=t||{};var i=e.length;return b.isFunction(e)&&(e=e.bind(this)),1===i||b.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(i){var n=(i=b.extend({parse:!0},i)).success,s=this;return i.success=function(t){var e=i.reset?"reset":"set";s[e](t,i),n&&n.call(i.context,s,t,i),s.trigger("sync",s,t,i)},N(this,i),this.sync("read",this,i)},create:function(t,e){var n=(e=e?b.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;n||this.add(t,e);var s=this,r=e.success;return e.success=function(t,e,i){n&&(t.off("error",s._forwardPristineError,s),s.add(t,i)),r&&r.call(i.context,t,e,i)},n&&t.once("error",this._forwardPristineError,this),t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new E(this,S)},keys:function(){return new E(this,I)},entries:function(){return new E(this,k)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):(t=((e=e?b.clone(e):{}).collection=this).model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,t.validationError,e),!1):t},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s,r,o=this.get(t[n]);o&&(s=this.indexOf(o),this.models.splice(s,1),this.length--,delete this._byId[o.cid],null!=(r=this.modelId(o.attributes,o.idAttribute))&&delete this._byId[r],e.silent||(e.index=s,o.trigger("remove",o,this,e)),i.push(o),this._removeReference(o,e))}return 0<t.length&&!e.silent&&delete e.index,i},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes,t.idAttribute);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes,t.idAttribute);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;var s,r;"destroy"===t&&this.remove(e,n),"changeId"===t&&(s=this.modelId(e.previousAttributes(),e.idAttribute),r=this.modelId(e.attributes,e.idAttribute),null!=s&&delete this._byId[s],null!=r)&&(this._byId[r]=e)}this.trigger.apply(this,arguments)},_forwardPristineError:function(t,e,i){this.has(t)||this._onModelEvent("error",t,e,i)}}),"function"==typeof Symbol&&Symbol.iterator),E=(y&&(m.prototype[y]=m.prototype.values),function(t,e){this._collection=t,this._kind=e,this._index=0}),S=1,I=2,k=3,y=(y&&(E.prototype[y]=function(){return this}),E.prototype.next=function(){if(this._collection){var t,e;if(this._index<this._collection.length)return t=this._collection.at(this._index),this._index++,{value:this._kind===S?t:(e=this._collection.modelId(t.attributes,t.idAttribute),this._kind===I?e:[e,t]),done:!1};this._collection=void 0}return{value:void 0,done:!0}},h.View=function(t){this.cid=b.uniqueId("view"),this.preinitialize.apply(this,arguments),b.extend(this,b.pick(t,P)),this._ensureElement(),this.initialize.apply(this,arguments)}),A=/^(\S+)\s*(.*)$/,P=["model","collection","el","id","attributes","className","tagName","events"],T=(b.extend(y.prototype,e,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof h.$?t:h.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t=t||b.result(this,"events"))for(var e in this.undelegateEvents(),t){var i=t[e];(i=b.isFunction(i)?i:this[i])&&(e=e.match(A),this.delegate(e[1],e[2],i.bind(this)))}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){var t;this.el?this.setElement(b.result(this,"el")):(t=b.extend({},b.result(this,"attributes")),this.id&&(t.id=b.result(this,"id")),this.className&&(t.class=b.result(this,"className")),this.setElement(this._createElement(b.result(this,"tagName"))),this._setAttributes(t))},_setAttributes:function(t){this.$el.attr(t)}}),function(e,t){return b.isFunction(e)?e:b.isObject(e)&&!t._isModel(e)?H(e):b.isString(e)?function(t){return t.get(e)}:e}),H=function(t){var e=b.matches(t);return function(t){return e(t.attributes)}},$=(b.each([[m,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(t){var i=t[0],e=t[1],n=t[2];i.mixin=function(t){var e=b.reduce(b.functions(t),function(t,e){return t[e]=0,t},{});s(i,t,e,n)},s(i,b,e,n)}),h.sync=function(t,e,n){var i,s=$[t],r=(b.defaults(n=n||{},{emulateHTTP:h.emulateHTTP,emulateJSON:h.emulateJSON}),{type:s,dataType:"json"}),o=(n.url||(r.url=b.result(e,"url")||M()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),!n.emulateHTTP||"PUT"!==s&&"DELETE"!==s&&"PATCH"!==s||(r.type="POST",n.emulateJSON&&(r.data._method=s),i=n.beforeSend,n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),i)return i.apply(this,arguments)}),"GET"===r.type||n.emulateJSON||(r.processData=!1),n.error),t=(n.error=function(t,e,i){n.textStatus=e,n.errorThrown=i,o&&o.call(n.context,t,e,i)},n.xhr=h.ajax(b.extend(r,n)));return e.trigger("request",e,t,n),t},{create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"}),C=(h.ajax=function(){return h.$.ajax.apply(h.$,arguments)},h.Router=function(t){t=t||{},this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)}),j=/\((.*?)\)/g,O=/(\(\?)?:\w+/g,U=/\*\w+/g,z=/[\-{}\[\]+?.,\\\^$|#\s]/g,R=(b.extend(C.prototype,e,{preinitialize:function(){},initialize:function(){},route:function(e,i,n){b.isRegExp(e)||(e=this._routeToRegExp(e)),b.isFunction(i)&&(n=i,i=""),n=n||this[i];var s=this;return h.history.route(e,function(t){t=s._extractParameters(e,t);!1!==s.execute(n,t,i)&&(s.trigger.apply(s,["route:"+i].concat(t)),s.trigger("route",i,t),h.history.trigger("route",s,i,t))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,e){return h.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=b.result(this,"routes");for(var t,e=b.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(z,"\\$&").replace(j,"(?:$1)?").replace(O,function(t,e){return e?t:"([^/?]+)"}).replace(U,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return b.map(i,function(t,e){return e===i.length-1?t||null:t?decodeURIComponent(t):null})}}),h.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)}),q=/^[#\/]|\s+$/g,F=/^\/+|\/+$/g,B=/#.*$/,M=(R.started=!1,b.extend(R.prototype,e,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){t=(t||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return(t=null==t?this._usePushState||!this._wantsHashChange?this.getPath():this.getHash():t).replace(q,"")},start:function(t){if(R.started)throw new Error("Backbone.history has already been started");if(R.started=!0,this.options=b.extend({root:"/"},this.options,t),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||7<document.documentMode),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(F,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return t=this.root.slice(0,-1)||"/",this.location.replace(t+"#"+this.getPath()),!0;this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}this._hasHashChange||!this._wantsHashChange||this._usePushState||(this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1,(t=(t=document.body).insertBefore(this.iframe,t.firstChild).contentWindow).document.open(),t.document.close(),t.location.hash="#"+this.fragment);t=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?t("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),R.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if((e=e===this.fragment&&this.iframe?this.getHash(this.iframe.contentWindow):e)===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return this.matchRoot()&&(e=this.fragment=this.getFragment(e),b.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))||this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(t,e){if(!R.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root,i=(i=this._trailingSlash||""!==t&&"?"!==t.charAt(0)?i:i.slice(0,-1)||"/")+t,n=(t=t.replace(B,""),this.decodeFragment(t));if(this.fragment!==n){if(this.fragment=n,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)&&(n=this.iframe.contentWindow,e.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){i?(i=t.href.replace(/(javascript:|#).*$/,""),t.replace(i+"#"+e)):t.hash="#"+e}}),h.history=new R,v.extend=m.extend=C.extend=y.extend=R.extend=function(t,e){var i=this,n=t&&b.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)};return b.extend(n,i,e),n.prototype=b.create(i.prototype,t),(n.prototype.constructor=n).__super__=i.prototype,n},function(){throw new Error('A "url" property or function must be specified')}),N=function(e,i){var n=i.error;i.error=function(t){n&&n.call(i.context,e,t,i),e.trigger("error",e,t,i)}};return h._debug=function(){return{root:t,_:b}},h});
(function(t,e){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(i,n){return t.Marionette=t.Mn=e(t,i,n)});else if("undefined"!=typeof exports){var i=require("backbone"),n=require("underscore");module.exports=e(t,i,n)}else t.Marionette=t.Mn=e(t,t.Backbone,t._)})(this,function(t,e,i){"use strict";(function(t,e){var i=t.ChildViewContainer;return t.ChildViewContainer=function(t,e){var i=function(t){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),e.each(t,this.add,this)};e.extend(i.prototype,{add:function(t,e){var i=t.cid;return this._views[i]=t,t.model&&(this._indexByModel[t.model.cid]=i),e&&(this._indexByCustom[e]=i),this._updateLength(),this},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){var e=this._indexByModel[t];return this.findByCid(e)},findByCustom:function(t){var e=this._indexByCustom[t];return this.findByCid(e)},findByIndex:function(t){return e.values(this._views)[t]},findByCid:function(t){return this._views[t]},remove:function(t){var i=t.cid;return t.model&&delete this._indexByModel[t.model.cid],e.any(this._indexByCustom,function(t,e){return t===i?(delete this._indexByCustom[e],!0):void 0},this),delete this._views[i],this._updateLength(),this},call:function(t){this.apply(t,e.tail(arguments))},apply:function(t,i){e.each(this._views,function(n){e.isFunction(n[t])&&n[t].apply(n,i||[])})},_updateLength:function(){this.length=e.size(this._views)}});var n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce"];return e.each(n,function(t){i.prototype[t]=function(){var i=e.values(this._views),n=[i].concat(e.toArray(arguments));return e[t].apply(e,n)}}),i}(t,e),t.ChildViewContainer.VERSION="0.1.7",t.ChildViewContainer.noConflict=function(){return t.ChildViewContainer=i,this},t.ChildViewContainer})(e,i),function(t,e){var i=t.Wreqr,n=t.Wreqr={};return t.Wreqr.VERSION="1.3.3",t.Wreqr.noConflict=function(){return t.Wreqr=i,this},n.Handlers=function(t,e){var i=function(t){this.options=t,this._wreqrHandlers={},e.isFunction(this.initialize)&&this.initialize(t)};return i.extend=t.Model.extend,e.extend(i.prototype,t.Events,{setHandlers:function(t){e.each(t,function(t,i){var n=null;e.isObject(t)&&!e.isFunction(t)&&(n=t.context,t=t.callback),this.setHandler(i,t,n)},this)},setHandler:function(t,e,i){var n={callback:e,context:i};this._wreqrHandlers[t]=n,this.trigger("handler:add",t,e,i)},hasHandler:function(t){return!!this._wreqrHandlers[t]},getHandler:function(t){var e=this._wreqrHandlers[t];if(e)return function(){return e.callback.apply(e.context,arguments)}},removeHandler:function(t){delete this._wreqrHandlers[t]},removeAllHandlers:function(){this._wreqrHandlers={}}}),i}(t,e),n.CommandStorage=function(){var i=function(t){this.options=t,this._commands={},e.isFunction(this.initialize)&&this.initialize(t)};return e.extend(i.prototype,t.Events,{getCommands:function(t){var e=this._commands[t];return e||(e={command:t,instances:[]},this._commands[t]=e),e},addCommand:function(t,e){var i=this.getCommands(t);i.instances.push(e)},clearCommands:function(t){var e=this.getCommands(t);e.instances=[]}}),i}(),n.Commands=function(t,e){return t.Handlers.extend({storageType:t.CommandStorage,constructor:function(e){this.options=e||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this),t.Handlers.prototype.constructor.apply(this,arguments)},execute:function(t){t=arguments[0];var i=e.rest(arguments);this.hasHandler(t)?this.getHandler(t).apply(this,i):this.storage.addCommand (t,i)},_executeCommands:function(t,i,n){var r=this.storage.getCommands(t);e.each(r.instances,function(t){i.apply(n,t)}),this.storage.clearCommands(t)},_initializeStorage:function(t){var i,n=t.storageType||this.storageType;i=e.isFunction(n)?new n:n,this.storage=i}})}(n,e),n.RequestResponse=function(t,e){return t.Handlers.extend({request:function(t){return this.hasHandler(t)?this.getHandler(t).apply(this,e.rest(arguments)):void 0}})}(n,e),n.EventAggregator=function(t,e){var i=function(){};return i.extend=t.Model.extend,e.extend(i.prototype,t.Events),i}(t,e),n.Channel=function(){var i=function(e){this.vent=new t.Wreqr.EventAggregator,this.reqres=new t.Wreqr.RequestResponse,this.commands=new t.Wreqr.Commands,this.channelName=e};return e.extend(i.prototype,{reset:function(){return this.vent.off(),this.vent.stopListening(),this.reqres.removeAllHandlers(),this.commands.removeAllHandlers(),this},connectEvents:function(t,e){return this._connect("vent",t,e),this},connectCommands:function(t,e){return this._connect("commands",t,e),this},connectRequests:function(t,e){return this._connect("reqres",t,e),this},_connect:function(t,i,n){if(i){n=n||this;var r="vent"===t?"on":"setHandler";e.each(i,function(i,s){this[t][r](s,e.bind(i,n))},this)}}}),i}(n),n.radio=function(t,e){var i=function(){this._channels={},this.vent={},this.commands={},this.reqres={},this._proxyMethods()};e.extend(i.prototype,{channel:function(t){if(!t)throw Error("Channel must receive a name");return this._getChannel(t)},_getChannel:function(e){var i=this._channels[e];return i||(i=new t.Channel(e),this._channels[e]=i),i},_proxyMethods:function(){e.each(["vent","commands","reqres"],function(t){e.each(n[t],function(e){this[t][e]=r(this,t,e)},this)},this)}});var n={vent:["on","off","trigger","once","stopListening","listenTo","listenToOnce"],commands:["execute","setHandler","setHandlers","removeHandler","removeAllHandlers"],reqres:["request","setHandler","setHandlers","removeHandler","removeAllHandlers"]},r=function(t,i,n){return function(r){var s=t._getChannel(r)[i];return s[n].apply(s,e.rest(arguments))}};return new i}(n,e),t.Wreqr}(e,i);var n=t.Marionette,r=t.Mn,s=e.Marionette={};s.VERSION="2.4.2",s.noConflict=function(){return t.Marionette=n,t.Mn=r,this},e.Marionette=s,s.Deferred=e.$.Deferred,s.extend=e.Model.extend,s.isNodeAttached=function(t){return e.$.contains(document.documentElement,t)},s.mergeOptions=function(t,e){t&&i.extend(this,i.pick(t,e))},s.getOption=function(t,e){return t&&e?t.options&&void 0!==t.options[e]?t.options[e]:t[e]:void 0},s.proxyGetOption=function(t){return s.getOption(this,t)},s._getValue=function(t,e,n){return i.isFunction(t)&&(t=n?t.apply(e,n):t.call(e)),t},s.normalizeMethods=function(t){return i.reduce(t,function(t,e,n){return i.isFunction(e)||(e=this[e]),e&&(t[n]=e),t},{},this)},s.normalizeUIString=function(t,e){return t.replace(/@ui\.[a-zA-Z_$0-9]*/g,function(t){return e[t.slice(4)]})},s.normalizeUIKeys=function(t,e){return i.reduce(t,function(t,i,n){var r=s.normalizeUIString(n,e);return t[r]=i,t},{})},s.normalizeUIValues=function(t,e,n){return i.each(t,function(r,o){i.isString(r)?t[o]=s.normalizeUIString(r,e):i.isObject(r)&&i.isArray(n)&&(i.extend(r,s.normalizeUIValues(i.pick(r,n),e)),i.each(n,function(t){var n=r[t];i.isString(n)&&(r[t]=s.normalizeUIString(n,e))}))}),t},s.actAsCollection=function(t,e){var n=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];i.each(n,function(n){t[n]=function(){var t=i.values(i.result(this,e)),r=[t].concat(i.toArray(arguments));return i[n].apply(i,r)}})};var o=s.deprecate=function(t,e){i.isObject(t)&&(t=t.prev+" is going to be removed in the future. "+"Please use "+t.next+" instead."+(t.url?" See: "+t.url:"")),void 0!==e&&e||o._cache[t]||(o._warn("Deprecation warning: "+t),o._cache[t]=!0)};o._warn="undefined"!=typeof console&&(console.warn||console.log)||function(){},o._cache={},s._triggerMethod=function(){function t(t,e,i){return i.toUpperCase()}var e=/(^|:)(\w)/gi;return function(n,r,s){var o=3>arguments.length;o&&(s=r,r=s[0]);var h,a="on"+r.replace(e,t),d=n[a];return i.isFunction(d)&&(h=d.apply(n,o?i.rest(s):s)),i.isFunction(n.trigger)&&(o+s.length>1?n.trigger.apply(n,o?s:[r].concat(i.drop(s,0))):n.trigger(r)),h}}(),s.triggerMethod=function(){return s._triggerMethod(this,arguments)},s.triggerMethodOn=function(t){var e=i.isFunction(t.triggerMethod)?t.triggerMethod:s.triggerMethod;return e.apply(t,i.rest(arguments))},s.MonitorDOMRefresh=function(t){function e(){t._isShown=!0,r()}function n(){t._isRendered=!0,r()}function r(){t._isShown&&t._isRendered&&s.isNodeAttached(t.el)&&i.isFunction(t.triggerMethod)&&t.triggerMethod("dom:refresh")}t.on({show:e,render:n})},function(t){function e(e,n,r,s){var o=s.split(/\s+/);i.each(o,function(i){var s=e[i];if(!s)throw new t.Error('Method "'+i+'" was configured as an event handler, but does not exist.');e.listenTo(n,r,s)})}function n(t,e,i,n){t.listenTo(e,i,n)}function r(t,e,n,r){var s=r.split(/\s+/);i.each(s,function(i){var r=t[i];t.stopListening(e,n,r)})}function s(t,e,i,n){t.stopListening(e,i,n)}function o(e,n,r,s,o){if(n&&r){if(!i.isObject(r))throw new t.Error({message:"Bindings must be an object or function.",url:"marionette.functions.html#marionettebindentityevents"});r=t._getValue(r,e),i.each(r,function(t,r){i.isFunction(t)?s(e,n,r,t):o(e,n,r,t)})}}t.bindEntityEvents=function(t,i,r){o(t,i,r,n,e)},t.unbindEntityEvents=function(t,e,i){o(t,e,i,s,r)},t.proxyBindEntityEvents=function(e,i){return t.bindEntityEvents(this,e,i)},t.proxyUnbindEntityEvents=function(e,i){return t.unbindEntityEvents(this,e,i)}}(s);var h=["description","fileName","lineNumber","name","message","number"];return s.Error=s.extend.call(Error,{urlRoot:"http://marionettejs.com/docs/v"+s.VERSION+"/",constructor:function(t,e){i.isObject(t)?(e=t,t=e.message):e||(e={});var n=Error.call(this,t);i.extend(this,i.pick(n,h),i.pick(e,h)),this.captureStackTrace(),e.url&&(this.url=this.urlRoot+e.url)},captureStackTrace:function(){Error.captureStackTrace&&Error.captureStackTrace(this,s.Error)},toString:function(){return this.name+": "+this.message+(this.url?" See: "+this.url:"")}}),s.Error.extend=s.extend,s.Callbacks=function(){this._deferred=s.Deferred(),this._callbacks=[]},i.extend(s.Callbacks.prototype,{add:function(t,e){var n=i.result(this._deferred,"promise");this._callbacks.push({cb:t,ctx:e}),n.then(function(i){e&&(i.context=e),t.call(i.context,i.options)})},run:function(t,e){this._deferred.resolve({options:t,context:e})},reset:function(){var t=this._callbacks;this._deferred=s.Deferred(),this._callbacks=[],i.each(t,function(t){this.add(t.cb,t.ctx)},this)}}),s.Controller=function(t){this.options=t||{},i.isFunction(this.initialize)&&this.initialize(this.options)},s.Controller.extend=s.extend,i.extend(s.Controller.prototype,e.Events,{destroy:function(){return s._triggerMethod(this,"before:destroy",arguments),s._triggerMethod(this,"destroy",arguments),this.stopListening(),this.off(),this},triggerMethod:s.triggerMethod,mergeOptions:s.mergeOptions,getOption:s.proxyGetOption}),s.Object=function(t){this.options=i.extend({},i.result(this,"options"),t),this.initialize.apply(this,arguments)},s.Object.extend=s.extend,i.extend(s.Object.prototype,e.Events,{initialize:function(){},destroy:function(){return this.triggerMethod("before:destroy"),this.triggerMethod("destroy"),this.stopListening(),this},triggerMethod:s.triggerMethod,mergeOptions:s.mergeOptions,getOption:s.proxyGetOption,bindEntityEvents:s.proxyBindEntityEvents,unbindEntityEvents:s.proxyUnbindEntityEvents}),s.Region=s.Object.extend({constructor:function(t){if(this.options=t||{},this.el=this.getOption("el"),this.el=this.el instanceof e.$?this.el[0]:this.el,!this.el)throw new s.Error({name:"NoElError",message:'An "el" must be specified for a region.'});this.$el=this.getEl(this.el),s.Object.call(this,t)},show:function(t,e){if(this._ensureElement()){this._ensureViewIsIntact(t);var n=e||{},r=t!==this.currentView,o=!!n.preventDestroy,h=!!n.forceShow,a=!!this.currentView,d=r&&!o,l=r||h;if(a&&this.triggerMethod("before:swapOut",this.currentView,this,e),this.currentView&&delete this.currentView._parent,d?this.empty():a&&l&&this.currentView.off("destroy",this.empty,this),l){t.once("destroy",this.empty,this),t.render(),t._parent=this,a&&this.triggerMethod("before:swap",t,this,e),this.triggerMethod("before:show",t,this,e),s.triggerMethodOn(t,"before:show",t,this,e),a&&this.triggerMethod("swapOut",this.currentView,this,e);var c=s.isNodeAttached(this.el),u=[],g=i.extend({triggerBeforeAttach:this.triggerBeforeAttach,triggerAttach:this.triggerAttach},n);return c&&g.triggerBeforeAttach&&(u=this._displayedViews(t),this._triggerAttach(u,"before:")),this.attachHtml(t),this.currentView=t,c&&g.triggerAttach&&(u=this._displayedViews(t),this._triggerAttach(u)),a&&this.triggerMethod("swap",t,this,e),this.triggerMethod("show",t,this,e),s.triggerMethodOn(t,"show",t,this,e),this}return this}},triggerBeforeAttach:!0,triggerAttach:!0,_triggerAttach:function(t,e){var n=(e||"")+"attach";i.each(t,function(t){s.triggerMethodOn(t,n,t,this)},this)},_displayedViews:function(t){return i.union([t],i.result(t,"_getNestedViews")||[])},_ensureElement:function(){if(i.isObject(this.el)||(this.$el=this.getEl(this.el),this.el=this.$el[0]),!this.$el||0===this.$el.length){if(this.getOption("allowMissingEl"))return!1;throw new s.Error('An "el" '+this.$el.selector+" must exist in DOM")}return!0},_ensureViewIsIntact:function(t){if(!t)throw new s.Error({name:"ViewNotValid",message:"The view passed is undefined and therefore invalid. You must pass a view instance to show."});if(t.isDestroyed)throw new s.Error({name:"ViewDestroyedError",message:'View (cid: "'+t.cid+'") has already been destroyed and cannot be used.'})},getEl:function(t){return e.$(t,s._getValue(this.options.parentEl,this))},attachHtml:function(t){this.$el.contents().detach(),this.el.appendChild(t.el)},empty:function(t){var e=this.currentView,i=s._getValue(t,"preventDestroy",this);return e?(e.off("destroy",this.empty,this),this.triggerMethod("before:empty",e),i||this._destroyView(),this.triggerMethod("empty",e),delete this.currentView,i&&this.$el.contents().detach(),this):void 0},_destroyView:function(){var t=this.currentView;t.destroy&&!t.isDestroyed?t.destroy():t.remove&&(t.remove(),t.isDestroyed=!0)},attachView:function(t){return this.currentView=t,this},hasView:function(){return!!this.currentView},reset:function(){return this.empty(),this.$el&&(this.el=this.getOption('el')),delete this.$el,this}},{buildRegion:function(t,e){if(i.isString(t))return this._buildRegionFromSelector(t,e);if(t.selector||t.el||t.regionClass)return this._buildRegionFromObject(t,e);if(i.isFunction(t))return this._buildRegionFromRegionClass(t);throw new s.Error({message:"Improper region configuration type.",url:"marionette.region.html#region-configuration-types"})},_buildRegionFromSelector:function(t,e){return new e({el:t})},_buildRegionFromObject:function(t,e){var n=t.regionClass||e,r=i.omit(t,"selector","regionClass");return t.selector&&!r.el&&(r.el=t.selector),new n(r)},_buildRegionFromRegionClass:function(t){return new t}}),s.RegionManager=s.Controller.extend({constructor:function(t){this._regions={},this.length=0,s.Controller.call(this,t),this.addRegions(this.getOption("regions"))},addRegions:function(t,e){return t=s._getValue(t,this,arguments),i.reduce(t,function(t,n,r){return i.isString(n)&&(n={selector:n}),n.selector&&(n=i.defaults({},n,e)),t[r]=this.addRegion(r,n),t},{},this)},addRegion:function(t,e){var i;return i=e instanceof s.Region?e:s.Region.buildRegion(e,s.Region),this.triggerMethod("before:add:region",t,i),i._parent=this,this._store(t,i),this.triggerMethod("add:region",t,i),i},get:function(t){return this._regions[t]},getRegions:function(){return i.clone(this._regions)},removeRegion:function(t){var e=this._regions[t];return this._remove(t,e),e},removeRegions:function(){var t=this.getRegions();return i.each(this._regions,function(t,e){this._remove(e,t)},this),t},emptyRegions:function(){var t=this.getRegions();return i.invoke(t,"empty"),t},destroy:function(){return this.removeRegions(),s.Controller.prototype.destroy.apply(this,arguments)},_store:function(t,e){this._regions[t]||this.length++,this._regions[t]=e},_remove:function(t,e){this.triggerMethod("before:remove:region",t,e),e.empty(),e.stopListening(),delete e._parent,delete this._regions[t],this.length--,this.triggerMethod("remove:region",t,e)}}),s.actAsCollection(s.RegionManager.prototype,"_regions"),s.TemplateCache=function(t){this.templateId=t},i.extend(s.TemplateCache,{templateCaches:{},get:function(t,e){var i=this.templateCaches[t];return i||(i=new s.TemplateCache(t),this.templateCaches[t]=i),i.load(e)},clear:function(){var t,e=i.toArray(arguments),n=e.length;if(n>0)for(t=0;n>t;t++)delete this.templateCaches[e[t]];else this.templateCaches={}}}),i.extend(s.TemplateCache.prototype,{load:function(t){if(this.compiledTemplate)return this.compiledTemplate;var e=this.loadTemplate(this.templateId,t);return this.compiledTemplate=this.compileTemplate(e,t),this.compiledTemplate},loadTemplate:function(t){var i=e.$(t).html();if(!i||0===i.length)throw new s.Error({name:"NoTemplateError",message:'Could not find template: "'+t+'"'});return i},compileTemplate:function(t,e){return i.template(t,e)}}),s.Renderer={render:function(t,e){if(!t)throw new s.Error({name:"TemplateNotFoundError",message:"Cannot render the template since its false, null or undefined."});var n=i.isFunction(t)?t:s.TemplateCache.get(t);return n(e)}},s.View=e.View.extend({isDestroyed:!1,constructor:function(t){i.bindAll(this,"render"),t=s._getValue(t,this),this.options=i.extend({},i.result(this,"options"),t),this._behaviors=s.Behaviors(this),e.View.call(this,this.options),s.MonitorDOMRefresh(this)},getTemplate:function(){return this.getOption("template")},serializeModel:function(t){return t.toJSON.apply(t,i.rest(arguments))},mixinTemplateHelpers:function(t){t=t||{};var e=this.getOption("templateHelpers");return e=s._getValue(e,this),i.extend(t,e)},normalizeUIKeys:function(t){var e=i.result(this,"_uiBindings");return s.normalizeUIKeys(t,e||i.result(this,"ui"))},normalizeUIValues:function(t,e){var n=i.result(this,"ui"),r=i.result(this,"_uiBindings");return s.normalizeUIValues(t,r||n,e)},configureTriggers:function(){if(this.triggers){var t=this.normalizeUIKeys(i.result(this,"triggers"));return i.reduce(t,function(t,e,i){return t[i]=this._buildViewTrigger(e),t},{},this)}},delegateEvents:function(t){return this._delegateDOMEvents(t),this.bindEntityEvents(this.model,this.getOption("modelEvents")),this.bindEntityEvents(this.collection,this.getOption("collectionEvents")),i.each(this._behaviors,function(t){t.bindEntityEvents(this.model,t.getOption("modelEvents")),t.bindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_delegateDOMEvents:function(t){var n=s._getValue(t||this.events,this);n=this.normalizeUIKeys(n),i.isUndefined(t)&&(this.events=n);var r={},o=i.result(this,"behaviorEvents")||{},h=this.configureTriggers(),a=i.result(this,"behaviorTriggers")||{};i.extend(r,o,n,h,a),e.View.prototype.delegateEvents.call(this,r)},undelegateEvents:function(){return e.View.prototype.undelegateEvents.apply(this,arguments),this.unbindEntityEvents(this.model,this.getOption("modelEvents")),this.unbindEntityEvents(this.collection,this.getOption("collectionEvents")),i.each(this._behaviors,function(t){t.unbindEntityEvents(this.model,t.getOption("modelEvents")),t.unbindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_ensureViewIsIntact:function(){if(this.isDestroyed)throw new s.Error({name:"ViewDestroyedError",message:'View (cid: "'+this.cid+'") has already been destroyed and cannot be used.'})},destroy:function(){if(this.isDestroyed)return this;var t=i.toArray(arguments);return this.triggerMethod.apply(this,["before:destroy"].concat(t)),this.isDestroyed=!0,this.triggerMethod.apply(this,["destroy"].concat(t)),this.unbindUIElements(),this.isRendered=!1,this.remove(),i.invoke(this._behaviors,"destroy",t),this},bindUIElements:function(){this._bindUIElements(),i.invoke(this._behaviors,this._bindUIElements)},_bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var t=i.result(this,"_uiBindings");this.ui={},i.each(t,function(t,e){this.ui[e]=this.$(t)},this)}},unbindUIElements:function(){this._unbindUIElements(),i.invoke(this._behaviors,this._unbindUIElements)},_unbindUIElements:function(){this.ui&&this._uiBindings&&(i.each(this.ui,function(t,e){delete this.ui[e]},this),this.ui=this._uiBindings,delete this._uiBindings)},_buildViewTrigger:function(t){var e=i.isObject(t),n=i.defaults({},e?t:{},{preventDefault:!0,stopPropagation:!0}),r=e?n.event:t;return function(t){t&&(t.preventDefault&&n.preventDefault&&t.preventDefault(),t.stopPropagation&&n.stopPropagation&&t.stopPropagation());var e={view:this,model:this.model,collection:this.collection};this.triggerMethod(r,e)}},setElement:function(){var t=e.View.prototype.setElement.apply(this,arguments);return i.invoke(this._behaviors,"proxyViewProperties",this),t},triggerMethod:function(){var t=s._triggerMethod(this,arguments);return this._triggerEventOnBehaviors(arguments),this._triggerEventOnParentLayout(arguments[0],i.rest(arguments)),t},_triggerEventOnBehaviors:function(t){for(var e=s._triggerMethod,i=this._behaviors,n=0,r=i&&i.length;r>n;n++)e(i[n],t)},_triggerEventOnParentLayout:function(t,e){var n=this._parentLayoutView();if(n){var r=s.getOption(n,"childViewEventPrefix"),o=r+":"+t;s._triggerMethod(n,[o,this].concat(e));var h=s.getOption(n,"childEvents"),a=n.normalizeMethods(h);a&&i.isFunction(a[t])&&a[t].apply(n,[this].concat(e))}},_getImmediateChildren:function(){return[]},_getNestedViews:function(){var t=this._getImmediateChildren();return t.length?i.reduce(t,function(t,e){return e._getNestedViews?t.concat(e._getNestedViews()):t},t):t},_getAncestors:function(){for(var t=[],e=this._parent;e;)t.push(e),e=e._parent;return t},_parentLayoutView:function(){var t=this._getAncestors();return i.find(t,function(t){return t instanceof s.LayoutView})},normalizeMethods:s.normalizeMethods,mergeOptions:s.mergeOptions,getOption:s.proxyGetOption,bindEntityEvents:s.proxyBindEntityEvents,unbindEntityEvents:s.proxyUnbindEntityEvents}),s.ItemView=s.View.extend({constructor:function(){s.View.apply(this,arguments)},serializeData:function(){if(!this.model&&!this.collection)return{};var t=[this.model||this.collection];return arguments.length&&t.push.apply(t,arguments),this.model?this.serializeModel.apply(this,t):{items:this.serializeCollection.apply(this,t)}},serializeCollection:function(t){return t.toJSON.apply(t,i.rest(arguments))},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderTemplate(),this.isRendered=!0,this.bindUIElements(),this.triggerMethod("render",this),this},_renderTemplate:function(){var t=this.getTemplate();if(t!==!1){if(!t)throw new s.Error({name:"UndefinedTemplateError",message:"Cannot render the template since it is null or undefined."});var e=this.mixinTemplateHelpers(this.serializeData()),i=s.Renderer.render(t,e,this);return this.attachElContent(i),this}},attachElContent:function(t){return this.$el.html(t),this}}),s.CollectionView=s.View.extend({childViewEventPrefix:"childview",sort:!0,constructor:function(){this.once("render",this._initialEvents),this._initChildViewStorage(),s.View.apply(this,arguments),this.on({"before:show":this._onBeforeShowCalled,show:this._onShowCalled,"before:attach":this._onBeforeAttachCalled,attach:this._onAttachCalled}),this.initRenderBuffer()},initRenderBuffer:function(){this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){var t,e=this._isShown&&s.isNodeAttached(this.el);this.isBuffering=!1,this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"before:show"),e&&this._triggerBeforeAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"before:attach")),this.attachBuffer(this,this._createBuffer()),e&&this._triggerAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"attach")),this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"show"),this.initRenderBuffer()},_triggerMethodMany:function(t,e,n){var r=i.drop(arguments,3);i.each(t,function(t){s.triggerMethodOn.apply(t,[t,n,t,e].concat(r))})},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this.render),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},_onCollectionAdd:function(t,e,n){var r;if(r=void 0!==n.at?n.at:i.indexOf(this._filteredSortedModels(),t),this._shouldAddChild(t,r)){this.destroyEmptyView();var s=this.getChildView(t);this.addChild(t,s,r)}},_onCollectionRemove:function(t){var e=this.children.findByModel(t);this.removeChildView(e),this.checkEmpty()},_onBeforeShowCalled:function(){this._triggerBeforeAttach=this._triggerAttach=!1,this.children.each(function(t){s.triggerMethodOn(t,"before:show",t)})},_onShowCalled:function(){this.children.each(function(t){s.triggerMethodOn(t,"show",t)})},_onBeforeAttachCalled:function(){this._triggerBeforeAttach=!0},_onAttachCalled:function(){this._triggerAttach=!0},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderChildren(),this.isRendered=!0,this.triggerMethod("render",this),this},reorder:function(){var t=this.children,e=this._filteredSortedModels(),n=i.find(e,function(e){return!t.findByModel(e)});if(n)this.render();else{var r=i.map(e,function(e,i){var n=t.findByModel(e);return n._index=i,n.el});this.triggerMethod("before:reorder"),this._appendReorderedChildren(r),this.triggerMethod("reorder")}},resortView:function(){s.getOption(this,"reorderOnSort")?this.reorder():this.render()},_sortViews:function(){var t=this._filteredSortedModels(),e=i.find(t,function(t,e){var i=this.children.findByModel(t);return!i||i._index!==e},this);e&&this.resortView()},_emptyViewIndex:-1,_appendReorderedChildren:function(t){this.$el.append(t)},_renderChildren:function(){this.destroyEmptyView(),this.destroyChildren({checkEmpty:!1}),this.isEmpty(this.collection)?this.showEmptyView():(this.triggerMethod("before:render:collection",this),this.startBuffering(),this.showCollection(),this.endBuffering(),this.triggerMethod("render:collection",this),this.children.isEmpty()&&this.showEmptyView())},showCollection:function(){var t,e=this._filteredSortedModels();i.each(e,function(e,i){t=this.getChildView(e),this.addChild(e,t,i)},this)},_filteredSortedModels:function(){var t,e=this.getViewComparator();return t=e?i.isString(e)||1===e.length?this.collection.sortBy(e,this):i.clone(this.collection.models).sort(i.bind(e,this)):this.collection.models,this.getOption("filter")&&(t=i.filter(t,function(t,e){return this._shouldAddChild(t,e)},this)),t},showEmptyView:function(){var t=this.getEmptyView();if(t&&!this._showingEmptyView){this.triggerMethod("before:render:empty"),this._showingEmptyView=!0;var i=new e.Model;this.addEmptyView(i,t),this.triggerMethod("render:empty")}},destroyEmptyView:function(){this._showingEmptyView&&(this.triggerMethod("before:remove:empty"),this.destroyChildren(),delete this._showingEmptyView,this.triggerMethod("remove:empty"))},getEmptyView:function(){return this.getOption("emptyView")},addEmptyView:function(t,e){var n,r=this._isShown&&!this.isBuffering&&s.isNodeAttached(this.el),o=this.getOption("emptyViewOptions")||this.getOption("childViewOptions");i.isFunction(o)&&(o=o.call(this,t,this._emptyViewIndex));var h=this.buildChildView(t,e,o);h._parent=this,this.proxyChildEvents(h),this._isShown&&s.triggerMethodOn(h,"before:show",h),this.children.add(h),r&&this._triggerBeforeAttach&&(n=[h].concat(h._getNestedViews()),h.once("render",function(){this._triggerMethodMany(n,this,"before:attach")},this)),this.renderChildView(h,this._emptyViewIndex),r&&this._triggerAttach&&(n=[h].concat(h._getNestedViews()),this._triggerMethodMany(n,this,"attach")),this._isShown&&s.triggerMethodOn(h,"show",h)},getChildView:function(){var t=this.getOption("childView");if(!t)throw new s.Error({name:"NoChildViewError",message:'A "childView" must be specified'});return t},addChild:function(t,e,i){var n=this.getOption("childViewOptions");n=s._getValue(n,this,[t,i]);var r=this.buildChildView(t,e,n);return this._updateIndices(r,!0,i),this.triggerMethod("before:add:child",r),this._addChildView(r,i),this.triggerMethod("add:child",r),r._parent=this,r},_updateIndices:function(t,e,i){this.getOption("sort")&&(e&&(t._index=i),this.children.each(function(i){i._index>=t._index&&(i._index+=e?1:-1)}))},_addChildView:function(t,e){var i,n=this._isShown&&!this.isBuffering&&s.isNodeAttached(this.el);this.proxyChildEvents(t),this._isShown&&!this.isBuffering&&s.triggerMethodOn(t,"before:show",t),this.children.add(t),n&&this._triggerBeforeAttach&&(i=[t].concat(t._getNestedViews()),t.once("render",function(){this._triggerMethodMany(i,this,"before:attach")},this)),this.renderChildView(t,e),n&&this._triggerAttach&&(i=[t].concat(t._getNestedViews()),this._triggerMethodMany(i,this,"attach")),this._isShown&&!this.isBuffering&&s.triggerMethodOn(t,"show",t)},renderChildView:function(t,e){return t.render(),this.attachHtml(this,t,e),t},buildChildView:function(t,e,n){var r=i.extend({model:t},n);return new e(r)},removeChildView:function(t){return t&&(this.triggerMethod("before:remove:child",t),t.destroy?t.destroy():t.remove&&t.remove(),delete t._parent,this.stopListening(t),this.children.remove(t),this.triggerMethod("remove:child",t),this._updateIndices(t,!1)),t},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},attachBuffer:function(t,e){t.$el.append(e)},_createBuffer:function(){var t=document.createDocumentFragment();return i.each(this._bufferedChildren,function(e){t.appendChild(e.el)}),t},attachHtml:function(t,e,i){t.isBuffering?t._bufferedChildren.splice(i,0,e):t._insertBefore(e,i)||t._insertAfter(e)},_insertBefore:function(t,e){var i,n=this.getOption("sort")&&this.children.length-1>e;return n&&(i=this.children.find(function(t){return t._index===e+1})),i?(i.$el.before(t.el),!0):!1},_insertAfter:function(t){this.$el.append(t.el)},_initChildViewStorage:function(){this.children=new e.ChildViewContainer},destroy:function(){return this.isDestroyed?this:(this.triggerMethod("before:destroy:collection"),this.destroyChildren({checkEmpty:!1}),this.triggerMethod("destroy:collection"),s.View.prototype.destroy.apply(this,arguments))},destroyChildren:function(t){var e=t||{},n=!0,r=this.children.map(i.identity);return i.isUndefined(e.checkEmpty)||(n=e.checkEmpty),this.children.each(this.removeChildView,this),n&&this.checkEmpty(),r},_shouldAddChild:function(t,e){var n=this.getOption("filter");return!i.isFunction(n)||n.call(this,t,e,this.collection)},proxyChildEvents:function(t){var e=this.getOption("childViewEventPrefix");this.listenTo(t,"all",function(){var n=i.toArray(arguments),r=n[0],s=this.normalizeMethods(i.result(this,"childEvents"));n[0]=e+":"+r,n.splice(1,0,t),s!==void 0&&i.isFunction(s[r])&&s[r].apply(this,n.slice(1)),this.triggerMethod.apply(this,n)})},_getImmediateChildren:function(){return i.values(this.children._views)},getViewComparator:function(){return this.getOption("viewComparator")}}),s.CompositeView=s.CollectionView.extend({constructor:function(){s.CollectionView.apply(this,arguments)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this._renderChildren),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},getChildView:function(){var t=this.getOption("childView")||this.constructor;return t},serializeData:function(){var t={};return this.model&&(t=i.partial(this.serializeModel,this.model).apply(this,arguments)),t},render:function(){return this._ensureViewIsIntact(),this._isRendering=!0,this.resetChildViewContainer(),this.triggerMethod("before:render",this),this._renderTemplate(),this._renderChildren(),this._isRendering=!1,this.isRendered=!0,this.triggerMethod("render",this),this
},_renderChildren:function(){(this.isRendered||this._isRendering)&&s.CollectionView.prototype._renderChildren.call(this)},_renderTemplate:function(){var t={};t=this.serializeData(),t=this.mixinTemplateHelpers(t),this.triggerMethod("before:render:template");var e=this.getTemplate(),i=s.Renderer.render(e,t,this);this.attachElContent(i),this.bindUIElements(),this.triggerMethod("render:template")},attachElContent:function(t){return this.$el.html(t),this},attachBuffer:function(t,e){var i=this.getChildViewContainer(t);i.append(e)},_insertAfter:function(t){var e=this.getChildViewContainer(this,t);e.append(t.el)},_appendReorderedChildren:function(t){var e=this.getChildViewContainer(this);e.append(t)},getChildViewContainer:function(t){if(t.$childViewContainer)return t.$childViewContainer;var e,i=s.getOption(t,"childViewContainer");if(i){var n=s._getValue(i,t);if(e="@"===n.charAt(0)&&t.ui?t.ui[n.substr(4)]:t.$(n),0>=e.length)throw new s.Error({name:"ChildViewContainerMissingError",message:'The specified "childViewContainer" was not found: '+t.childViewContainer})}else e=t.$el;return t.$childViewContainer=e,e},resetChildViewContainer:function(){this.$childViewContainer&&(this.$childViewContainer=void 0)}}),s.LayoutView=s.ItemView.extend({regionClass:s.Region,options:{destroyImmediate:!1},childViewEventPrefix:"childview",constructor:function(t){t=t||{},this._firstRender=!0,this._initializeRegions(t),s.ItemView.call(this,t)},render:function(){return this._ensureViewIsIntact(),this._firstRender?this._firstRender=!1:this._reInitializeRegions(),s.ItemView.prototype.render.apply(this,arguments)},destroy:function(){return this.isDestroyed?this:(this.getOption("destroyImmediate")===!0&&this.$el.remove(),this.regionManager.destroy(),s.ItemView.prototype.destroy.apply(this,arguments))},showChildView:function(t,e){return this.getRegion(t).show(e)},getChildView:function(t){return this.getRegion(t).currentView},addRegion:function(t,e){var i={};return i[t]=e,this._buildRegions(i)[t]},addRegions:function(t){return this.regions=i.extend({},this.regions,t),this._buildRegions(t)},removeRegion:function(t){return delete this.regions[t],this.regionManager.removeRegion(t)},getRegion:function(t){return this.regionManager.get(t)},getRegions:function(){return this.regionManager.getRegions()},_buildRegions:function(t){var e={regionClass:this.getOption("regionClass"),parentEl:i.partial(i.result,this,"el")};return this.regionManager.addRegions(t,e)},_initializeRegions:function(t){var e;this._initRegionManager(),e=s._getValue(this.regions,this,[t])||{};var n=this.getOption.call(t,"regions");n=s._getValue(n,this,[t]),i.extend(e,n),e=this.normalizeUIValues(e,["selector","el"]),this.addRegions(e)},_reInitializeRegions:function(){this.regionManager.invoke("reset")},getRegionManager:function(){return new s.RegionManager},_initRegionManager:function(){this.regionManager=this.getRegionManager(),this.regionManager._parent=this,this.listenTo(this.regionManager,"before:add:region",function(t){this.triggerMethod("before:add:region",t)}),this.listenTo(this.regionManager,"add:region",function(t,e){this[t]=e,this.triggerMethod("add:region",t,e)}),this.listenTo(this.regionManager,"before:remove:region",function(t){this.triggerMethod("before:remove:region",t)}),this.listenTo(this.regionManager,"remove:region",function(t,e){delete this[t],this.triggerMethod("remove:region",t,e)})},_getImmediateChildren:function(){return i.chain(this.regionManager.getRegions()).pluck("currentView").compact().value()}}),s.Behavior=s.Object.extend({constructor:function(t,e){this.view=e,this.defaults=i.result(this,"defaults")||{},this.options=i.extend({},this.defaults,t),this.ui=i.extend({},i.result(e,"ui"),i.result(this,"ui")),s.Object.apply(this,arguments)},$:function(){return this.view.$.apply(this.view,arguments)},destroy:function(){return this.stopListening(),this},proxyViewProperties:function(t){this.$el=t.$el,this.el=t.el}}),s.Behaviors=function(t,e){function i(t,n){return e.isObject(t.behaviors)?(n=i.parseBehaviors(t,n||e.result(t,"behaviors")),i.wrap(t,n,e.keys(o)),n):{}}function n(t,e){this._view=t,this._behaviors=e,this._triggers={}}function r(t){return t._uiBindings||t.ui}var s=/^(\S+)\s*(.*)$/,o={behaviorTriggers:function(t,e){var i=new n(this,e);return i.buildBehaviorTriggers()},behaviorEvents:function(i,n){var o={};return e.each(n,function(i,n){var h={},a=e.clone(e.result(i,"events"))||{};a=t.normalizeUIKeys(a,r(i));var d=0;e.each(a,function(t,r){var o=r.match(s),a=o[1]+"."+[this.cid,n,d++," "].join(""),l=o[2],c=a+l,u=e.isFunction(t)?t:i[t];h[c]=e.bind(u,i)},this),o=e.extend(o,h)},this),o}};return e.extend(i,{behaviorsLookup:function(){throw new t.Error({message:"You must define where your behaviors are stored.",url:"marionette.behaviors.html#behaviorslookup"})},getBehaviorClass:function(e,n){return e.behaviorClass?e.behaviorClass:t._getValue(i.behaviorsLookup,this,[e,n])[n]},parseBehaviors:function(t,n){return e.chain(n).map(function(n,r){var s=i.getBehaviorClass(n,r),o=new s(n,t),h=i.parseBehaviors(t,e.result(o,"behaviors"));return[o].concat(h)}).flatten().value()},wrap:function(t,i,n){e.each(n,function(n){t[n]=e.partial(o[n],t[n],i)})}}),e.extend(n.prototype,{buildBehaviorTriggers:function(){return e.each(this._behaviors,this._buildTriggerHandlersForBehavior,this),this._triggers},_buildTriggerHandlersForBehavior:function(i,n){var s=e.clone(e.result(i,"triggers"))||{};s=t.normalizeUIKeys(s,r(i)),e.each(s,e.bind(this._setHandlerForBehavior,this,i,n))},_setHandlerForBehavior:function(t,e,i,n){var r=n.replace(/^\S+/,function(t){return t+"."+"behaviortriggers"+e});this._triggers[r]=this._view._buildViewTrigger(i)}}),i}(s,i),s.AppRouter=e.Router.extend({constructor:function(t){this.options=t||{},e.Router.apply(this,arguments);var i=this.getOption("appRoutes"),n=this._getController();this.processAppRoutes(n,i),this.on("route",this._processOnRoute,this)},appRoute:function(t,e){var i=this._getController();this._addAppRoute(i,t,e)},_processOnRoute:function(t,e){if(i.isFunction(this.onRoute)){var n=i.invert(this.getOption("appRoutes"))[t];this.onRoute(t,n,e)}},processAppRoutes:function(t,e){if(e){var n=i.keys(e).reverse();i.each(n,function(i){this._addAppRoute(t,i,e[i])},this)}},_getController:function(){return this.getOption("controller")},_addAppRoute:function(t,e,n){var r=t[n];if(!r)throw new s.Error('Method "'+n+'" was not found on the controller');this.route(e,n,i.bind(r,t))},mergeOptions:s.mergeOptions,getOption:s.proxyGetOption,triggerMethod:s.triggerMethod,bindEntityEvents:s.proxyBindEntityEvents,unbindEntityEvents:s.proxyUnbindEntityEvents}),s.Application=s.Object.extend({constructor:function(t){this._initializeRegions(t),this._initCallbacks=new s.Callbacks,this.submodules={},i.extend(this,t),this._initChannel(),s.Object.call(this,t)},execute:function(){this.commands.execute.apply(this.commands,arguments)},request:function(){return this.reqres.request.apply(this.reqres,arguments)},addInitializer:function(t){this._initCallbacks.add(t)},start:function(t){this.triggerMethod("before:start",t),this._initCallbacks.run(t,this),this.triggerMethod("start",t)},addRegions:function(t){return this._regionManager.addRegions(t)},emptyRegions:function(){return this._regionManager.emptyRegions()},removeRegion:function(t){return this._regionManager.removeRegion(t)},getRegion:function(t){return this._regionManager.get(t)},getRegions:function(){return this._regionManager.getRegions()},module:function(t,e){var n=s.Module.getClass(e),r=i.toArray(arguments);return r.unshift(this),n.create.apply(n,r)},getRegionManager:function(){return new s.RegionManager},_initializeRegions:function(t){var e=i.isFunction(this.regions)?this.regions(t):this.regions||{};this._initRegionManager();var n=s.getOption(t,"regions");return i.isFunction(n)&&(n=n.call(this,t)),i.extend(e,n),this.addRegions(e),this},_initRegionManager:function(){this._regionManager=this.getRegionManager(),this._regionManager._parent=this,this.listenTo(this._regionManager,"before:add:region",function(){s._triggerMethod(this,"before:add:region",arguments)}),this.listenTo(this._regionManager,"add:region",function(t,e){this[t]=e,s._triggerMethod(this,"add:region",arguments)}),this.listenTo(this._regionManager,"before:remove:region",function(){s._triggerMethod(this,"before:remove:region",arguments)}),this.listenTo(this._regionManager,"remove:region",function(t){delete this[t],s._triggerMethod(this,"remove:region",arguments)})},_initChannel:function(){this.channelName=i.result(this,"channelName")||"global",this.channel=i.result(this,"channel")||e.Wreqr.radio.channel(this.channelName),this.vent=i.result(this,"vent")||this.channel.vent,this.commands=i.result(this,"commands")||this.channel.commands,this.reqres=i.result(this,"reqres")||this.channel.reqres}}),s.Module=function(t,e,n){this.moduleName=t,this.options=i.extend({},this.options,n),this.initialize=n.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=e,i.isFunction(this.initialize)&&this.initialize(t,e,this.options)},s.Module.extend=s.extend,i.extend(s.Module.prototype,e.Events,{startWithParent:!0,initialize:function(){},addInitializer:function(t){this._initializerCallbacks.add(t)},addFinalizer:function(t){this._finalizerCallbacks.add(t)},start:function(t){this._isInitialized||(i.each(this.submodules,function(e){e.startWithParent&&e.start(t)}),this.triggerMethod("before:start",t),this._initializerCallbacks.run(t,this),this._isInitialized=!0,this.triggerMethod("start",t))},stop:function(){this._isInitialized&&(this._isInitialized=!1,this.triggerMethod("before:stop"),i.invoke(this.submodules,"stop"),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),this.triggerMethod("stop"))},addDefinition:function(t,e){this._runModuleDefinition(t,e)},_runModuleDefinition:function(t,n){if(t){var r=i.flatten([this,this.app,e,s,e.$,i,n]);t.apply(this,r)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new s.Callbacks,this._finalizerCallbacks=new s.Callbacks},triggerMethod:s.triggerMethod}),i.extend(s.Module,{create:function(t,e,n){var r=t,s=i.drop(arguments,3);e=e.split(".");var o=e.length,h=[];return h[o-1]=n,i.each(e,function(e,i){var o=r;r=this._getModule(o,e,t,n),this._addModuleDefinition(o,r,h[i],s)},this),r},_getModule:function(t,e,n,r){var s=i.extend({},r),o=this.getClass(r),h=t[e];return h||(h=new o(e,n,s),t[e]=h,t.submodules[e]=h),h},getClass:function(t){var e=s.Module;return t?t.prototype instanceof e?t:t.moduleClass||e:e},_addModuleDefinition:function(t,e,i,n){var r=this._getDefine(i),s=this._getStartWithParent(i,e);r&&e.addDefinition(r,n),this._addStartWithParent(t,e,s)},_getStartWithParent:function(t,e){var n;return i.isFunction(t)&&t.prototype instanceof s.Module?(n=e.constructor.prototype.startWithParent,i.isUndefined(n)?!0:n):i.isObject(t)?(n=t.startWithParent,i.isUndefined(n)?!0:n):!0},_getDefine:function(t){return!i.isFunction(t)||t.prototype instanceof s.Module?i.isObject(t)?t.define:null:t},_addStartWithParent:function(t,e,i){e.startWithParent=e.startWithParent&&i,e.startWithParent&&!e.startWithParentIsConfigured&&(e.startWithParentIsConfigured=!0,t.addInitializer(function(t){e.startWithParent&&e.start(t)}))}}),s});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("underscore"),require("backbone")):"function"==typeof define&&define.amd?define(["underscore","backbone"],n):e.Backbone.Radio=n(e._,e.Backbone)}(this,function(e,n){"use strict";function t(e,n,t,r){var s=e[n];return t&&t!==s.callback&&t!==s.callback._callback||r&&r!==s.context?void 0:(delete e[n],!0)}function r(n,r,s,i){n||(n={});for(var a=r?[r]:e.keys(n),u=!1,o=0,c=a.length;c>o;o++)r=a[o],n[r]&&t(n,r,s,i)&&(u=!0);return u}function s(n){return c[n]||(c[n]=e.partial(u.log,n))}function i(n){return e.isFunction(n)?n:function(){return n}}var a=n.Radio,u=n.Radio={};u.VERSION="1.0.1",u.noConflict=function(){return n.Radio=a,this},u.DEBUG=!1,u._debugText=function(e,n,t){return e+(t?" on the "+t+" channel":"")+': "'+n+'"'},u.debugLog=function(e,n,t){u.DEBUG&&console&&console.warn&&console.warn(u._debugText(e,n,t))};var o=/\s+/;u._eventsApi=function(n,t,r,s){if(!r)return!1;var i={};if("object"==typeof r){for(var a in r){var u=n[t].apply(n,[a,r[a]].concat(s));o.test(a)?e.extend(i,u):i[a]=u}return i}if(o.test(r)){for(var c=r.split(o),l=0,h=c.length;h>l;l++)i[c[l]]=n[t].apply(n,[c[l]].concat(s));return i}return!1},u._callHandler=function(e,n,t){var r=t[0],s=t[1],i=t[2];switch(t.length){case 0:return e.call(n);case 1:return e.call(n,r);case 2:return e.call(n,r,s);case 3:return e.call(n,r,s,i);default:return e.apply(n,t)}};var c={};e.extend(u,{log:function(n,t){var r=e.rest(arguments,2);console.log("["+n+'] "'+t+'"',r)},tuneIn:function(e){var n=u.channel(e);return n._tunedIn=!0,n.on("all",s(e)),this},tuneOut:function(e){var n=u.channel(e);return n._tunedIn=!1,n.off("all",s(e)),delete c[e],this}}),u.Requests={request:function(n){var t=e.rest(arguments),r=u._eventsApi(this,"request",n,t);if(r)return r;var s=this.channelName,i=this._requests;if(s&&this._tunedIn&&u.log.apply(this,[s,n].concat(t)),i&&(i[n]||i["default"])){var a=i[n]||i["default"];return t=i[n]?t:arguments,u._callHandler(a.callback,a.context,t)}u.debugLog("An unhandled request was fired",n,s)},reply:function(e,n,t){return u._eventsApi(this,"reply",e,[n,t])?this:(this._requests||(this._requests={}),this._requests[e]&&u.debugLog("A request was overwritten",e,this.channelName),this._requests[e]={callback:i(n),context:t||this},this)},replyOnce:function(n,t,r){if(u._eventsApi(this,"replyOnce",n,[t,r]))return this;var s=this,a=e.once(function(){return s.stopReplying(n),i(t).apply(this,arguments)});return this.reply(n,a,r)},stopReplying:function(e,n,t){return u._eventsApi(this,"stopReplying",e)?this:(e||n||t?r(this._requests,e,n,t)||u.debugLog("Attempted to remove the unregistered request",e,this.channelName):delete this._requests,this)}},u._channels={},u.channel=function(e){if(!e)throw new Error("You must provide a name for the channel.");return u._channels[e]?u._channels[e]:u._channels[e]=new u.Channel(e)},u.Channel=function(e){this.channelName=e},e.extend(u.Channel.prototype,n.Events,u.Requests,{reset:function(){return this.off(),this.stopListening(),this.stopReplying(),this}});var l,h,f=[n.Events,u.Commands,u.Requests];e.each(f,function(n){e.each(n,function(n,t){u[t]=function(n){return h=e.rest(arguments),l=this.channel(n),l[t].apply(l,h)}})}),u.reset=function(n){var t=n?[this._channels[n]]:this._channels;e.invoke(t,"reset")};var p=u;return p});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Mexp=t()}(this,(function(){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.apply(this,arguments)}var t,n={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1};function a(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}!function(e){e[e.FUNCTION_WITH_ONE_ARG=0]="FUNCTION_WITH_ONE_ARG",e[e.NUMBER=1]="NUMBER",e[e.BINARY_OPERATOR_HIGH_PRECENDENCE=2]="BINARY_OPERATOR_HIGH_PRECENDENCE",e[e.CONSTANT=3]="CONSTANT",e[e.OPENING_PARENTHESIS=4]="OPENING_PARENTHESIS",e[e.CLOSING_PARENTHESIS=5]="CLOSING_PARENTHESIS",e[e.DECIMAL=6]="DECIMAL",e[e.POSTFIX_FUNCTION_WITH_ONE_ARG=7]="POSTFIX_FUNCTION_WITH_ONE_ARG",e[e.FUNCTION_WITH_N_ARGS=8]="FUNCTION_WITH_N_ARGS",e[e.BINARY_OPERATOR_LOW_PRECENDENCE=9]="BINARY_OPERATOR_LOW_PRECENDENCE",e[e.BINARY_OPERATOR_PERMUTATION=10]="BINARY_OPERATOR_PERMUTATION",e[e.COMMA=11]="COMMA",e[e.EVALUATED_FUNCTION=12]="EVALUATED_FUNCTION",e[e.EVALUATED_FUNCTION_PARAMETER=13]="EVALUATED_FUNCTION_PARAMETER",e[e.SPACE=14]="SPACE"}(t||(t={}));var o={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0},h={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0},r={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0},u={},s={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0},p={1:!0},i=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function l(e,t,n,a){for(var o=0;o<a;o++)if(e[n+o]!==t[o])return!1;return!0}function E(e){for(var a=0;a<e.length;a++){var o=e[a].token.length,h=-1;e[a].type===t.FUNCTION_WITH_N_ARGS&&void 0===e[a].numberOfArguments&&(e[a].numberOfArguments=2),i[o]=i[o]||[];for(var r=0;r<i[o].length;r++)if(e[a].token===i[o][r]){h=N(i[o][r],this.tokens);break}-1===h?(this.tokens.push(e[a]),e[a].precedence=n[e[a].type],i.length<=e[a].token.length&&(i[e[a].token.length]=[]),i[e[a].token.length].push(e[a].token)):(this.tokens[h]=e[a],e[a].precedence=n[e[a].type])}}function N(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}var v=function(e,n){var E,v={value:this.math.changeSign,type:t.FUNCTION_WITH_ONE_ARG,precedence:4,show:"-"},f={value:")",show:")",type:t.CLOSING_PARENTHESIS,precedence:0},y={value:"(",type:t.OPENING_PARENTHESIS,precedence:0,show:"("},A=[y],c=[],_=e,O=o,T=0,R=u,I="";void 0!==n&&this.addToken(n);var w=function(e,t){for(var n,a,o,h=[],r=t.length,u=0;u<r;u++)if(!(u<r-1&&" "===t[u]&&" "===t[u+1])){for(n="",a=t.length-u>i.length-2?i.length-1:t.length-u;a>0;a--)if(void 0!==i[a])for(o=0;o<i[a].length;o++)l(t,i[a][o],u,a)&&(n=i[a][o],o=i[a].length,a=0);if(u+=n.length-1,""===n)throw new Error("Can't understand after "+t.slice(u));h.push(e.tokens[N(n,e.tokens)])}return h}(this,_);for(E=0;E<w.length;E++){var P=w[E];if(14!==P.type){var m,M=P.token,g=P.type,C=P.value,d=P.precedence,k=P.show,S=A[A.length-1];for(m=c.length;m--&&0===c[m];)if(-1!==[t.FUNCTION_WITH_ONE_ARG,t.BINARY_OPERATOR_HIGH_PRECENDENCE,t.CONSTANT,t.OPENING_PARENTHESIS,t.CLOSING_PARENTHESIS,t.BINARY_OPERATOR_LOW_PRECENDENCE,t.BINARY_OPERATOR_PERMUTATION,t.COMMA,t.EVALUATED_FUNCTION,t.EVALUATED_FUNCTION_PARAMETER].indexOf(g)){if(!0!==O[g])throw new Error(M+" is not allowed after "+I);A.push(f),O=h,R=s,c.pop()}if(!0!==O[g])throw new Error(M+" is not allowed after "+I);!0===R[g]&&(g=t.BINARY_OPERATOR_HIGH_PRECENDENCE,C=this.math.mul,k="&times;",d=3,E-=1);var U={value:C,type:g,precedence:d,show:k,numberOfArguments:P.numberOfArguments};if(g===t.FUNCTION_WITH_ONE_ARG)O=o,R=u,a(c,1),A.push(U),w[E+1].type!==t.OPENING_PARENTHESIS&&(A.push(y),c.push(2));else if(g===t.NUMBER)S.type===t.NUMBER?(S.value+=C,a(c,1)):A.push(U),O=h,R=r;else if(g===t.BINARY_OPERATOR_HIGH_PRECENDENCE)O=o,R=u,a(c,2),A.push(U);else if(g===t.CONSTANT)A.push(U),O=h,R=s;else if(g===t.OPENING_PARENTHESIS)a(c,1),T++,O=o,R=u,A.push(U);else if(g===t.CLOSING_PARENTHESIS){if(!T)throw new Error("Closing parenthesis are more than opening one, wait What!!!");T--,O=h,R=s,A.push(U),a(c,1)}else if(g===t.DECIMAL){if(S.hasDec)throw new Error("Two decimals are not allowed in one number");S.type!==t.NUMBER&&(S={show:"0",value:0,type:t.NUMBER,precedence:0},A.push(S)),O=p,a(c,1),R=u,S.value+=C,S.hasDec=!0}else g===t.POSTFIX_FUNCTION_WITH_ONE_ARG&&(O=h,R=s,a(c,1),A.push(U));g===t.FUNCTION_WITH_N_ARGS?(O=o,R=u,a(c,P.numberOfArguments+2),A.push(U),w[E+1].type!==t.OPENING_PARENTHESIS&&(A.push(y),c.push(P.numberOfArguments+2))):g===t.BINARY_OPERATOR_LOW_PRECENDENCE?(S.type===t.BINARY_OPERATOR_LOW_PRECENDENCE?S.value===this.math.add?(S.value=C,S.show=k,a(c,1)):S.value===this.math.sub&&"-"===k&&(S.value=this.math.add,S.show="+",a(c,1)):S.type!==t.CLOSING_PARENTHESIS&&S.type!==t.POSTFIX_FUNCTION_WITH_ONE_ARG&&S.type!==t.NUMBER&&S.type!==t.CONSTANT&&S.type!==t.EVALUATED_FUNCTION_PARAMETER?"-"===M&&(O=o,R=u,a(c,1).push(2),A.push(v),A.push(y)):(A.push(U),a(c,2)),O=o,R=u):g===t.BINARY_OPERATOR_PERMUTATION?(O=o,R=u,a(c,2),A.push(U)):g===t.COMMA?(O=o,R=u,A.push(U)):g===t.EVALUATED_FUNCTION?(O=o,R=u,a(c,6),A.push(U),w[E+1].type!==t.OPENING_PARENTHESIS&&(A.push(y),c.push(6))):g===t.EVALUATED_FUNCTION_PARAMETER&&(O=h,R=s,A.push(U)),a(c,-1),I=M}else if(E>0&&E<w.length-1&&1===w[E+1].type&&(1===w[E-1].type||6===w[E-1].type))throw new Error("Unexpected Space")}for(m=c.length;m--;)A.push(f);if(!0!==O[5])throw new Error("complete the expression");for(;T--;)A.push(f);return A.push(f),A};function f(e){for(var t,n,a,o=[],h=-1,r=-1,u=[{value:"(",type:4,precedence:0,show:"("}],s=1;s<e.length;s++)if(1===e[s].type||3===e[s].type||13===e[s].type)1===e[s].type&&(e[s].value=Number(e[s].value)),o.push(e[s]);else if(4===e[s].type)u.push(e[s]);else if(5===e[s].type)for(;4!==(null==(p=n=u.pop())?void 0:p.type);){var p;n&&o.push(n)}else if(11===e[s].type){for(;4!==(null==(i=n=u.pop())?void 0:i.type);){var i;n&&o.push(n)}u.push(n)}else{r=(t=e[s]).precedence,h=(a=u[u.length-1]).precedence;var l="Math.pow"==a.value&&"Math.pow"==t.value;if(r>h)u.push(t);else{for(;h>=r&&!l||l&&r<h;)n=u.pop(),a=u[u.length-1],n&&o.push(n),h=a.precedence,l="Math.pow"==t.value&&"Math.pow"==a.value;u.push(t)}}return o}function y(e,t){(t=t||{}).PI=Math.PI,t.E=Math.E;for(var n,a,o,h=[],r=void 0!==t.n,u=0;u<e.length;u++)if(1===e[u].type)h.push({value:e[u].value,type:1});else if(3===e[u].type)h.push({value:t[e[u].value],type:1});else if(0===e[u].type){var s=h[h.length-1];Array.isArray(s)?s.push(e[u]):s.value=e[u].value(s.value)}else if(7===e[u].type){var p=h[h.length-1];Array.isArray(p)?p.push(e[u]):p.value=e[u].value(p.value)}else if(8===e[u].type){for(var i=[],l=0;l<e[u].numberOfArguments;l++){var E=h.pop();E&&i.push(E.value)}h.push({type:1,value:e[u].value.apply(e[u],i.reverse())})}else if(10===e[u].type)n=h.pop(),a=h.pop(),Array.isArray(a)?((a=a.concat(n)).push(e[u]),h.push(a)):Array.isArray(n)?(n.unshift(a),n.push(e[u]),h.push(n)):h.push({type:1,value:e[u].value(a.value,n.value)});else if(2===e[u].type||9===e[u].type)n=h.pop(),a=h.pop(),Array.isArray(a)?((a=a.concat(n)).push(e[u]),h.push(a)):Array.isArray(n)?(n.unshift(a),n.push(e[u]),h.push(n)):h.push({type:1,value:e[u].value(a.value,n.value)});else if(12===e[u].type){n=h.pop();var N=void 0;N=!Array.isArray(n)&&n?[n]:n||[],a=h.pop(),o=h.pop(),h.push({type:1,value:e[u].value(o.value,a.value,N)})}else 13===e[u].type&&(r?h.push({value:t[e[u].value],type:3}):h.push([e[u]]));if(h.length>1)throw new Error("Uncaught Syntax error");return parseFloat(h[0].value.toFixed(15))}var A=function(){function t(){var t;this.toPostfix=f,this.addToken=E,this.lex=v,this.postfixEval=y,this.math=(t=this,{isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var a=1,o=e-n,h=n;h<o&&(h=o,o=n);for(var r=h+1;r<=e;r++)a*=r;var u=t.math.fact(o);return"NaN"===u?"NaN":a/u},changeSign:function(e){return-e},cos:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!=0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,a=Math.floor(e)-Math.floor(t)+1;a<=Math.floor(e);a++)n*=a;return n},Pi:function(e,n,a){for(var o=1,h=e;h<=n;h++)o*=Number(t.postfixEval(a,{n:h}));return o},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,n,a){for(var o=0,h=e;h<=n;h++)o+=Number(t.postfixEval(a,{n:h}));return o},sin:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.tan(e)},tanh:function(e){return t.math.sinh(e)/t.math.cosh(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}}),this.tokens=function(t){return[{token:"sin",show:"sin",type:0,value:t.math.sin},{token:"cos",show:"cos",type:0,value:t.math.cos},{token:"tan",show:"tan",type:0,value:t.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:t.math.P},{token:"C",show:"C",type:10,value:t.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:t.math.asin},{token:"acos",show:"acos",type:0,value:t.math.acos},{token:"atan",show:"atan",type:0,value:t.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:t.math.cosh},{token:"acosh",show:"acosh",type:0,value:t.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:t.math.div},{token:"!",show:"!",type:7,value:t.math.fact},{token:"tanh",show:"tanh",type:0,value:t.math.tanh},{token:"atanh",show:"atanh",type:0,value:t.math.atanh},{token:"Mod",show:" Mod ",type:2,value:t.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:t.math.mul},{token:"sinh",show:"sinh",type:0,value:t.math.sinh},{token:"asinh",show:"asinh",type:0,value:t.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:t.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:t.math.add},{token:"-",show:"-",type:9,value:t.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:t.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:t.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:t.math.and}].map((function(t){return e({},t,{precedence:n[t.type]})}))}(this)}return t.prototype.eval=function(e,t,n){return this.postfixEval(this.toPostfix(this.lex(e,t)),n)},t}();return A.TOKEN_TYPES=t,A.tokenTypes=t,A}));
var nfRadio=Backbone.Radio;
nfRadio.channel('form').on('render:view', function(){
jQuery('.g-recaptcha').each(function(){
var callback=jQuery(this).data('callback');
var fieldID=jQuery(this).data('fieldid');
if(typeof window[ callback ]!=='function'){
window[ callback ]=function(response){
nfRadio.channel('recaptcha').request('update:response', response, fieldID);
};}});
jQuery('.cf-turnstile').each(function(){
var callback=jQuery(this).data('callback');
var fieldID=jQuery(this).data('fieldid');
if(typeof window[ callback ]!=='function'){
window[ callback ]=function(response){
nfRadio.channel('turnstile').request('update:response', response, fieldID);
};}});
});
var nfRecaptcha=Marionette.Object.extend({
initialize: function(){
if(0!=jQuery('.g-recaptcha').length){
this.renderCaptcha();
}
this.listenTo(nfRadio.channel('form'), 'render:view', this.renderCaptcha);
this.listenTo(nfRadio.channel('captcha'), 'reset', this.renderCaptcha);
},
renderCaptcha: function(){
jQuery('.g-recaptcha:empty').each(function(){
var opts={
fieldid: jQuery(this).data('fieldid'),
size: jQuery(this).data('size'),
theme: jQuery(this).data('theme'),
sitekey: jQuery(this).data('sitekey'),
callback: jQuery(this).data('callback')
};
var grecaptchaID=grecaptcha.render(jQuery(this)[0], opts);
if(opts.size==='invisible'){
try {
nf_reprocess_recaptcha(grecaptchaID);
setInterval(nf_reprocess_recaptcha, 110000, grecaptchaID);
} catch(e){
console.log('Notice: Error trying to execute grecaptcha.');
}}
});
}});
var nfRenderRecaptcha=function(){
new nfRecaptcha();
}
var nfTurnstile=Marionette.Object.extend({
initialize: function(){
if(0!=jQuery('.cf-turnstile').length){
this.renderTurnstile();
}
this.listenTo(nfRadio.channel('form'), 'render:view', this.renderTurnstile);
this.listenTo(nfRadio.channel('captcha'), 'reset', this.renderTurnstile);
},
renderTurnstile: function(){
if(typeof turnstile==='undefined'){
return;
}
jQuery('.cf-turnstile:empty').each(function(){
var opts={
'theme': jQuery(this).data('theme'),
'size': jQuery(this).data('size'),
'sitekey': jQuery(this).data('sitekey'),
'callback': jQuery(this).data('callback')
};
try {
turnstile.render(jQuery(this)[0], opts);
} catch(e){
}});
}});
var nfRenderTurnstile=function(){
new nfTurnstile();
}
if(typeof nf_reprocess_recaptcha==='undefined'){
var nf_reprocess_recaptcha=(grecaptchaID)=> {
grecaptcha.execute(grecaptchaID);
};}
const nf_check_recaptcha_consent=()=> {
let stored_responses=[], services=[];
if(!nf_check_data_for_recaptcha_consent()){
stored_responses.push(false);
services.push("missing_cookie");
}
const response={
"consent_state": stored_responses,
"services":services
};
nfFrontEnd.nf_consent_status_response=response;
let nf_consent_status_extra_check=new CustomEvent('nf_consent_status_check', {detail: response});
document.dispatchEvent(nf_consent_status_extra_check);
return nfFrontEnd.nf_consent_status_response;
}
const nf_check_data_for_recaptcha_consent=()=> {
return nf_get_cookie_by_name("_grecaptcha")!=="";
}
const nf_get_cookie_by_name=(cname)=> {
let name=cname + "=";
let decodedCookie=decodeURIComponent(document.cookie);
let ca=decodedCookie.split(';');
for(let i=0; i <ca.length; i++){
let c=ca[i];
while (c.charAt(0)==' '){
c=c.substring(1);
}
if(c.indexOf(name)==0){
return c.substring(name.length, c.length);
}}
return "";
}
const nf_reload_after_cookie_consent=(submitFieldID, layoutView)=> {
if(typeof submitFieldID!=="undefined"&&typeof layoutView!=="undefined"){
nfRadio.channel('fields').request("remove:error", submitFieldID, "recaptcha-v3-missing");
nfRadio.channel('fields').request("remove:error", submitFieldID, "recaptcha-v3-consent");
nfRadio.channel('form').trigger('render:view', layoutView);
}}
const nf_add_reCaptcha_aria=()=> {
const nf_act_on_inserted_node=(mutationList, observer)=> {
for (const mutation of mutationList){
if(mutation.type==='childList'&&mutation.target.className==="g-recaptcha"){
let nf_recaptchaTextarea=document.getElementById("g-recaptcha-response");
if(typeof nf_recaptchaTextarea!=="undefined"){
nf_recaptchaTextarea.setAttribute("aria-hidden", "true");
nf_recaptchaTextarea.setAttribute("aria-label", "Silent reCaptcha security check");
nf_recaptchaTextarea.setAttribute("aria-readonly", "true");
observer.disconnect();
}}
}
observer.disconnect();
};
const nf_forms_listed=document.querySelectorAll(".ninja-forms-form-wrap");
if(nf_forms_listed.length > 0){
let nf_recaptcha_observers=[];
nf_forms_listed.forEach((nf_form)=> {
nf_recaptcha_observers.push({"class": new MutationObserver(nf_act_on_inserted_node), "element": nf_form});
});
if(nf_recaptcha_observers.length > 0){
nf_recaptcha_observers.forEach((object)=> {
object.class.observe(object.element,
{ childList: true, subtree: true }
);
});
}}
}
const nf_remove_noscript_tags_as_needed=()=> {
const noscripts=document.getElementsByClassName('ninja-forms-noscript-message')
for (let i=0; i < noscripts.length; i++){
noscripts[i].parentNode.removeChild(noscripts[i])
}}
jQuery(document).on('nfFormReady', ()=> {
nf_remove_noscript_tags_as_needed();
nf_add_reCaptcha_aria();
});
!function(){var e,t,i;!function(n){var r,a,l,o,s={},d={},c={},f={},u=Object.prototype.hasOwnProperty,h=[].slice,m=/\.js$/;function g(e,t){return u.call(e,t)}function p(e,t){var i,n,r,a,l,o,s,d,f,u,h,g=t&&t.split("/"),p=c.map,v=p&&p["*"]||{};if(e){for(l=(e=e.split("/")).length-1,c.nodeIdCompat&&m.test(e[l])&&(e[l]=e[l].replace(m,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),f=0;f<e.length;f++)if("."===(h=e[f]))e.splice(f,1),f-=1;else if(".."===h){if(0===f||1===f&&".."===e[2]||".."===e[f-1])continue;f>0&&(e.splice(f-1,2),f-=2)}e=e.join("/")}if((g||v)&&p){for(f=(i=e.split("/")).length;f>0;f-=1){if(n=i.slice(0,f).join("/"),g)for(u=g.length;u>0;u-=1)if((r=p[g.slice(0,u).join("/")])&&(r=r[n])){a=r,o=f;break}if(a)break;!s&&v&&v[n]&&(s=v[n],d=f)}!a&&s&&(a=s,o=d),a&&(i.splice(0,o,a),e=i.join("/"))}return e}function v(e,t){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),a.apply(n,i.concat([e,t]))}}function y(e){return function(t){s[e]=t}}function b(e){if(g(d,e)){var t=d[e];delete d[e],f[e]=!0,r.apply(n,t)}if(!g(s,e)&&!g(f,e))throw new Error("No "+e);return s[e]}function R(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function _(e){return e?R(e):[]}function w(e){return function(){return c&&c.config&&c.config[e]||{}}}l=function(e,t){var i,n,r=R(e),a=r[0],l=t[1];return e=r[1],a&&(i=b(a=p(a,l))),a?e=i&&i.normalize?i.normalize(e,(n=l,function(e){return p(e,n)})):p(e,l):(a=(r=R(e=p(e,l)))[0],e=r[1],a&&(i=b(a))),{f:a?a+"!"+e:e,n:e,pr:a,p:i}},o={require:function(e){return v(e)},exports:function(e){var t=s[e];return void 0!==t?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:w(e)}}},r=function(e,t,i,r){var a,c,u,h,m,p,R,w=[],x=typeof i;if(p=_(r=r||e),"undefined"===x||"function"===x){for(t=!t.length&&i.length?["require","exports","module"]:t,m=0;m<t.length;m+=1)if("require"===(c=(h=l(t[m],p)).f))w[m]=o.require(e);else if("exports"===c)w[m]=o.exports(e),R=!0;else if("module"===c)a=w[m]=o.module(e);else if(g(s,c)||g(d,c)||g(f,c))w[m]=b(c);else{if(!h.p)throw new Error(e+" missing "+c);h.p.load(h.n,v(r,!0),y(c),{}),w[m]=s[c]}u=i?i.apply(s[e],w):void 0,e&&(a&&a.exports!==n&&a.exports!==s[e]?s[e]=a.exports:u===n&&R||(s[e]=u))}else e&&(s[e]=i)},e=t=a=function(e,t,i,s,d){if("string"==typeof e)return o[e]?o[e](t):b(l(e,_(t)).f);if(!e.splice){if((c=e).deps&&a(c.deps,c.callback),!t)return;t.splice?(e=t,t=i,i=null):e=n}return t=t||function(){},"function"==typeof i&&(i=s,s=d),s?r(n,e,t,i):setTimeout(function(){r(n,e,t,i)},4),a},a.config=function(e){return a(e)},e._defined=s,(i=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),g(s,e)||g(d,e)||(d[e]=[e,t,i])}).amd={jQuery:!0}}(),i("../../../node_modules/almond/almond",function(){}),i("models/fieldErrorModel",[],function(){return Backbone.Model.extend({})}),i("models/fieldErrorCollection",["models/fieldErrorModel"],function(e){return Backbone.Collection.extend({model:e})}),i("models/fieldModel",["models/fieldErrorCollection"],function(e){return Backbone.Model.extend({defaults:{placeholder:"",value:"",label_pos:"",classes:"ninja-forms-field",reRender:!1,mirror_field:!1,confirm_field:!1,clean:!0,disabled:"",visible:!0,invalid:!1},initialize:function(){var t=this.get("type");this.set("formID",this.collection.options.formModel.get("id")),this.listenTo(nfRadio.channel("form-"+this.get("formID")),"reset",this.resetModel),this.bind("change",this.changeModel,this),this.bind("change:value",this.changeValue,this),this.set("errors",new e),"listimage"===t&&(this.get=this.listimageGet,this.set=this.listimageSet),nfRadio.channel("fields").trigger("init:model",this),nfRadio.channel(this.get("type")).trigger("init:model",this),nfRadio.channel("fields-"+this.get("type")).trigger("init:model",this),void 0!==this.get("parentType")&&nfRadio.channel(this.get("parentType")).trigger("init:model",this),this.listenTo(nfRadio.channel("form-"+this.get("formID")),"loaded",this.formLoaded),this.listenTo(nfRadio.channel("form-"+this.get("formID")),"before:submit",this.beforeSubmit)},listimageGet:function(e){return"options"===e&&(e="image_options"),Backbone.Model.prototype.get.call(this,e)},listimageSet:function(e,t){return"options"===e&&(e="image_options"),Backbone.Model.prototype.set.call(this,e,t)},changeModel:function(){nfRadio.channel("field-"+this.get("id")).trigger("change:model",this),nfRadio.channel(this.get("type")).trigger("change:model",this),nfRadio.channel("fields").trigger("change:model",this)},changeValue:function(){nfRadio.channel("field-"+this.get("id")).trigger("change:modelValue",this),nfRadio.channel(this.get("type")).trigger("change:modelValue",this),nfRadio.channel("fields").trigger("change:modelValue",this)},addWrapperClass:function(e){this.set("addWrapperClass",e)},removeWrapperClass:function(e){this.set("removeWrapperClass",e)},setInvalid:function(e){this.set("invalid",e)},formLoaded:function(){nfRadio.channel("fields").trigger("formLoaded",this),nfRadio.channel("fields-"+this.get("type")).trigger("formLoaded",this)},beforeSubmit:function(e){nfRadio.channel(this.get("type")).trigger("before:submit",this),nfRadio.channel("fields").trigger("before:submit",this)},getValue:function(){return this.get("value")}})}),i("models/fieldCollection",["models/fieldModel"],function(e){var t=Backbone.Collection.extend({model:e,comparator:"order",initialize:function(e,t){this.options=t,this.on("reset",function(e){nfRadio.channel("fields").trigger("reset:collection",e)},this),nfRadio.channel("fields").reply("get:firstFieldByOrder",this.getFirstFieldByOrder)},validateFields:function(){_.each(this.models,function(e){if("repeater"===e.get("type")){const t=nfRadio.channel("field-repeater").request("get:repeaterFieldsModelsArrayByForm",e.get("formID"));_.each(t,function(e){e.set("clean",!1),nfRadio.channel("submit").trigger("validate:field",e)})}else e.set("clean",!1),nfRadio.channel("submit").trigger("validate:field",e)},this);var e=nfRadio.channel("form-"+this.models[0].get("formID")).request("get:form");_.size(e.get("fieldErrors"))>0&&nfRadio.channel("submit").request("focus:firstInvalidInput",Object.keys(e.get("fieldErrors")))},showFields:function(){this.invoke("set",{visible:!0}),this.invoke(function(){this.trigger("change:value",this)})},hideFields:function(){this.invoke("set",{visible:!1}),this.invoke(function(){this.trigger("change:value",this)})},getFirstFieldByOrder:function(e){let t=0;return _.each(e,function(e){const i=nfRadio.channel("fields").request("get:field",e).get("order");t=0===t||i<t?e:t}),t}});return t}),i("models/formErrorModel",[],function(){return Backbone.Model.extend({})}),i("models/formErrorCollection",["models/formErrorModel"],function(e){return Backbone.Collection.extend({model:e})}),i("models/formModel",["models/fieldCollection","models/formErrorCollection"],function(e,t){return Backbone.Model.extend({defaults:{beforeForm:"",afterForm:"",beforeFields:"",afterFields:"",wrapper_class:"",element_class:"",hp:"",fieldErrors:{},extra:{}},initialize:function(){this.set("fieldErrors",{}),this.set("extra",{}),_.each(this.get("settings"),function(e,t){this.set(t,e)},this),this.set("loadedFields",this.get("fields")),this.set("fields",new e(this.get("fields"),{formModel:this})),this.set("errors",new t),nfRadio.channel("form").trigger("before:filterData",this);var i=this.get("formContentData");i||(i=this.get("fieldContentsData"));var n=nfRadio.channel("formContent").request("get:loadFilters"),r=_.without(n,void 0);i=_.first(r)(i,this,this),this.set("formContentData",i),nfRadio.channel("forms").trigger("init:model",this),nfRadio.channel("form-"+this.get("id")).trigger("init:model",this),nfRadio.channel("form-"+this.get("id")).reply("get:fieldByKey",this.getFieldByKey,this),nfRadio.channel("form-"+this.get("id")).reply("add:error",this.addError,this),nfRadio.channel("form-"+this.get("id")).reply("remove:error",this.removeError,this),nfRadio.channel("form-"+this.get("id")).reply("get:extra",this.getExtra,this),nfRadio.channel("form-"+this.get("id")).reply("add:extra",this.addExtra,this),nfRadio.channel("form-"+this.get("id")).reply("remove:extra",this.removeExtra,this),nfRadio.channel("form-"+this.get("id")).reply("get:form",this.getForm,this),nfRadio.channel("form").trigger("loaded",this),nfRadio.channel("form").trigger("after:loaded",this),nfRadio.channel("form-"+this.get("id")).trigger("loaded",this)},getFieldByKey:function(e){return this.get("fields").findWhere({key:e})},addError:function(e,t){this.get("errors").add({id:e,msg:t}),nfRadio.channel("form-"+this.get("id")).trigger("add:error",this,e,t)},removeError:function(e){var t=this.get("errors"),i=t.get(e);t.remove(i),nfRadio.channel("form-"+this.get("id")).trigger("remove:error",this,e)},getExtra:function(e){var t=this.get("extra");return void 0===e?t:t[e]},addExtra:function(e,t){this.get("extra")[e]=t,nfRadio.channel("form-"+this.get("id")).trigger("add:extra",this,e,t)},removeExtra:function(e){delete this.get("extra")[e],nfRadio.channel("form-"+this.get("id")).trigger("remove:extra",this,e)},getForm:function(){return this}})}),i("models/formCollection",["models/formModel"],function(e){return Backbone.Collection.extend({model:e})}),i("controllers/formData",["models/formModel","models/formCollection","models/fieldCollection","models/formErrorCollection"],function(e,t,i,n){return Marionette.Object.extend({initialize:function(){this.collection=new t(nfForms),nfRadio.channel("forms").trigger("loaded",this.collection),nfRadio.channel("app").trigger("forms:loaded",this.collection),nfRadio.channel("app").reply("get:form",this.getForm,this),nfRadio.channel("app").reply("get:forms",this.getForms,this),nfRadio.channel("fields").reply("get:field",this.getField,this)},getForm:function(e){return this.collection.get(e)},getForms:function(){return this.collection},getField:function(e){var t=!1;return _.each(this.collection.models,function(i){t||(t=i.get("fields").get(e))}),void 0===t&&-1!==String(e).indexOf(".")&&(t=nfRadio.channel("field-repeater").request("get:repeaterFieldById",e)),t}})}),i("controllers/fieldError",["models/fieldErrorModel"],function(e){return Marionette.Object.extend({initialize:function(){nfRadio.channel("fields").reply("add:error",this.addError),nfRadio.channel("fields").reply("remove:error",this.removeError),nfRadio.channel("fields").reply("get:error",this.getError)},addError:function(e,t,i){var n=nfRadio.channel("fields").request("get:field",e);if(void 0!==n){var r=n.get("errors");r.add({id:t,msg:i}),n.set("errors",r),n.trigger("change:errors",n),n.set("clean",!1),nfRadio.channel("fields").trigger("add:error",n,t,i)}},removeError:function(e,t){var i=nfRadio.channel("fields").request("get:field",e);if(void 0!==i){var n=i.get("errors"),r=n.get(t);void 0!==r&&(n.remove(r),i.set("errors",n),i.trigger("change:errors",i),nfRadio.channel("fields").trigger("remove:error",i,t))}},getError:function(e,t){var i=nfRadio.channel("fields").request("get:field",e).get("errors").get(t);return"undefined"!=i&&i}})}),i("controllers/changeField",[],function(){return Marionette.Object.extend({initialize:function(){nfRadio.channel("nfAdmin").reply("change:field",this.changeField),this.listenTo(nfRadio.channel("fields"),"blur:field",this.blurField)},changeField:function(e,t){var i=nfRadio.channel(t.get("type")).request("before:updateField",e,t);i=void 0!==(i=void 0!==i?i:nfRadio.channel(t.get("parentType")).request("before:updateField",e,t))?i:jQuery(e).val(),t.set("isUpdated",!1),t.set("clean",!1),nfRadio.channel("field-"+t.get("id")).trigger("change:field",e,t),nfRadio.channel(t.get("type")).trigger("change:field",e,t),nfRadio.channel("fields").trigger("change:field",e,t),nfRadio.channel("nfAdmin").request("update:field",t,i),t.get("repeaterField")&&nfRadio.channel("field-repeater").trigger("set:value")},blurField:function(e,t){t.set("clean",!1)}})}),i("controllers/changeEmail",[],function(){var e=nfRadio.channel("email"),t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,i="invalid-email";return Marionette.Object.extend({initialize:function(){this.listenTo(e,"change:modelValue",this.onChangeModelValue),this.listenTo(e,"keyup:field",this.emailKeyup),this.listenTo(e,"blur:field",this.onBlurField)},onChangeModelValue:function(e){var t=e.get("value"),i=e.get("id");this.emailChange(t,i)},onBlurField:function(e,t){var i=jQuery(e).val(),n=t.get("id");this.emailChange(i,n)},emailChange:function(e,n){if(0<e.length)if(t.test(e))nfRadio.channel("fields").request("remove:error",n,i);else{var r=nfRadio.channel("fields").request("get:field",n),a=nfRadio.channel("app").request("get:form",r.get("formID"));nfRadio.channel("fields").request("add:error",n,i,a.get("settings").changeEmailErrorMsg)}else nfRadio.channel("fields").request("remove:error",n,i)},emailKeyup:function(e,n,r){if(9==r)return!1;var a=jQuery(e).val(),l=n.get("id");if(0==a.length)nfRadio.channel("fields").request("remove:error",l,i);else if(t.test(a)||n.get("clean"))t.test(a)&&(nfRadio.channel("fields").request("remove:error",l,i),n.addWrapperClass("nf-pass"),n.set("clean",!1));else{var o=nfRadio.channel("fields").request("get:field",l),s=nfRadio.channel("app").request("get:form",o.get("formID"));nfRadio.channel("fields").request("add:error",l,i,s.get("settings").changeEmailErrorMsg),n.removeWrapperClass("nf-pass")}}})}),i("controllers/changeDate",[],function(){var e=nfRadio.channel("date"),t="invalid-date";return Marionette.Object.extend({initialize:function(){this.listenTo(e,"change:modelValue",this.onChangeModelValue),this.listenTo(e,"keyup:field",this.dateKeyup),this.listenTo(e,"blur:field",this.onBlurField),this.listenTo(e,"change:extra",this.changeHoursMinutes,this)},onChangeModelValue:function(e){var t=moment.locale();moment.locale("ninja-forms"),this.dateChange(e),moment.locale(t)},onBlurField:function(e,t){var i=moment.locale();moment.locale("ninja-forms"),this.dateChange(t),moment.locale(i)},dateChange:function(e){var i=e.get("id"),n=e.get("value"),r=e.get("date_format");if("time_only"==e.get("date_mode"))return!1;if(0<n.length)if(this.isDateValid(n,r,i))nfRadio.channel("fields").request("remove:error",i,t);else{var a=nfRadio.channel("fields").request("get:field",i),l=nfRadio.channel("app").request("get:form",a.get("formID"));nfRadio.channel("fields").request("add:error",i,t,l.get("settings").changeDateErrorMsg)}else nfRadio.channel("fields").request("remove:error",i,t)},dateKeyup:function(e,i,n){if(9==n)return!1;var r=jQuery(e).val(),a=i.get("id"),l=i.get("date_format"),o=moment.locale();if(moment.locale("ninja-forms"),0==r.length)nfRadio.channel("fields").request("remove:error",a,t);else if(this.isDateValid(r,l,a)||i.get("clean"))this.isDateValid(r,l,a)&&(nfRadio.channel("fields").request("remove:error",a,t),i.addWrapperClass("nf-pass"),i.set("clean",!1));else{var s=nfRadio.channel("fields").request("get:field",a),d=nfRadio.channel("app").request("get:form",s.get("formID"));nfRadio.channel("fields").request("add:error",a,t,d.get("settings").changeDateErrorMsg),i.removeWrapperClass("nf-pass")}moment.locale(o)},changeHoursMinutes:function(e,t){let i=jQuery(e.target).closest(".nf-field-element"),n=jQuery(i).find(".hour").val(),r=jQuery(i).find(".minute").val(),a=jQuery(i).find(".ampm").val();if(t.set("selected_hour",n),t.set("selected_minute",r),t.set("selected_ampm",a),"time_only"===t.get("date_mode")){const e=void 0!==a?n+":"+r+" "+a:n+":"+r;t.set("value",e)}const l=t.get("id");"string"==typeof l&&-1!==l.search(".")&&nfRadio.channel("field-repeater").trigger("set:value")},isDateValid:function(e,t,i){if(null===document.querySelector("[name='nf-field-"+i+"']"))return!0;const n=document.querySelector("[name='nf-field-"+i+"']")._flatpickr.parseDate(e,t);if(!n)return!1;const r=n.getTime();if(isNaN(r))return!1;const a=new Date(r);return document.querySelector("[name='nf-field-"+i+"']")._flatpickr.formatDate(a,t)===e}})}),i("controllers/fieldCheckbox",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("checkbox"),"init:model",this.registerRenderClasses),nfRadio.channel("checkbox").reply("validate:required",this.validateRequired),nfRadio.channel("checkbox").reply("validate:modelData",this.validateModelData),nfRadio.channel("checkbox").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("checkbox").reply("get:calcValue",this.getCalcValue,this)},beforeUpdateField:function(e,t){if(jQuery(e).prop("checked")){var i=1;jQuery(e).addClass("nf-checked"),jQuery(e).closest(".field-wrap").find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label")}else{i=0;jQuery(e).removeClass("nf-checked"),jQuery(e).closest(".field-wrap").find('label[for="'+jQuery(e).prop("id")+'"]').removeClass("nf-checked-label")}return i},validateRequired:function(e,t){return e[0].checked},validateModelData:function(e){return 0!=e.get("value")},getCalcValue:function(e){return 1==e.get("value")?calcValue=e.get("checked_calc_value"):calcValue=e.get("unchecked_calc_value"),calcValue},registerRenderClasses:function(e){"checked"==e.get("default_value")?e.set("value",1):e.set("value",0),e.set("customClasses",this.customClasses),e.set("customLabelClasses",this.customLabelClasses),e.set("maybeChecked",this.maybeChecked)},customClasses:function(e){return 1==this.value||this.clean&&void 0!==this.default_value&&"checked"==this.default_value?e+=" nf-checked":e.replace("nf-checked",""),e},customLabelClasses:function(e){return 1==this.value||this.clean&&void 0!==this.default_value&&"checked"==this.default_value?e+=" nf-checked-label":e.replace("nf-checked-label",""),e},maybeChecked:function(){return 1==this.value||this.clean&&void 0!==this.default_value&&"checked"==this.default_value?" checked":""}})}),i("controllers/fieldCheckboxList",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("listcheckbox"),"init:model",this.register),this.listenTo(nfRadio.channel("terms"),"init:model",this.register),nfRadio.channel("listcheckbox").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("terms").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("listcheckbox").reply("get:calcValue",this.getCalcValue,this),nfRadio.channel("terms").reply("get:calcValue",this.getCalcValue,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherText",this.renderOtherText),e.set("selected",[]),0!=e.get("options").length){var t=_.filter(e.get("options"),function(e){return 1==e.selected});t=_.map(t,function(e){return e.value})}var i=e.get("value");void 0!==i&&Array.isArray(i)?e.set("value",i):void 0!==t&&e.set("value",t)},renderOptions:function(){var e="";if(""==this.value||Array.isArray(this.value)&&0<this.value.length||0<this.value.length)var t=!0;else t=!1;if(_.each(this.options,function(i,n){Array.isArray(this.value)&&(Array.isArray(this.value[0])&&-1!==_.indexOf(this.value[0],i.value)||_.indexOf(this.value,i.value))&&(t=!0),i.value==this.value&&(t=!0),void 0===i.visible&&(i.visible=!0),i.fieldID=this.id,i.classes=this.classes,i.index=n,i.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(i.label):i.label;var r=!1;Array.isArray(this.value)&&0<this.value.length?-1===_.indexOf(this.value[0].split(","),i.value)&&-1===_.indexOf(this.value,i.value)||(r=!0):_.isArray(this.value)||i.value!=this.value?1==i.selected&&this.clean&&void 0===this.value&&(r=!0):r=!0,i.selected=r,i.isSelected=r,i.required=this.required,i.maybeFilterHTML=this.maybeFilterHTML;var a=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listcheckbox-option");e+=a(i)},this),1==this.show_other){"nf-other"==this.value&&(t=!1);var i={fieldID:this.id,classes:this.classes,currentValue:this.value,renderOtherText:this.renderOtherText,valueFound:t},n=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listcheckbox-other");e+=n(i)}return e},renderOtherText:function(){if("nf-other"==this.currentValue||!this.valueFound){"nf-other"==this.currentValue&&(this.currentValue="");var e={fieldID:this.fieldID,classes:this.classes,currentValue:this.currentValue};return nfRadio.channel("app").request("get:template","#tmpl-nf-field-listcheckbox-other-text")(e)}},getCalcValue:function(e){var t=0,i=e.get("options");return 0!=i.length&&_.each(e.get("value"),function(e){var n=_.find(i,function(t){return t.value==e});t=Number(t)+Number(n.calc)}),t},beforeUpdateField:function(e,t){var i=t.get("value")||[];"string"==typeof i&&(i=[i]);var n=jQuery(e).val();if(jQuery(e).prop("checked"))i.push(n),jQuery(e).addClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label");else{jQuery(e).removeClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').removeClass("nf-checked-label");var r=i.indexOf(n);if(-1!=r)i.splice(r,1);else if(Array.isArray(i)){var a=void 0!==i[0]?i[0].split(","):[],l=a.indexOf(n);-1!==l&&a.splice(l,1),i=a.join(",")}}return _.clone(i)}})}),i("controllers/fieldImageList",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("listimage"),"init:model",this.register),nfRadio.channel("listimage").reply("before:updateField",this.beforeUpdateField,this),nfRadio.channel("listimage").reply("get:calcValue",this.getCalcValue,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherText",this.renderOtherText),e.set("selected",[]),0!=e.get("image_options").length){var t=_.filter(e.get("image_options"),function(e){return 1==e.selected});t=_.map(t,function(e){return e.value})}var i=e.get("value");void 0!==i&&Array.isArray(i)?e.set("value",i):void 0!==t&&e.set("value",t)},renderOptions:function(){var e="";if(""==this.value||Array.isArray(this.value)&&0<this.value.length||0<this.value.length)var t=!0;else t=!1;1===this.allow_multi_select?(this.old_classname="list-checkbox",this.image_type="checkbox"):this.image_type="radio","horizontal"===this.list_orientation?this.flex_direction="row":this.flex_direction="column";var i=this,n=parseInt(this.num_columns)||1,r=1,a=1;if(_.each(this.image_options,function(l,o){this.show_option_labels?l.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(l.label):l.label:l.label="",Array.isArray(this.value)&&(Array.isArray(this.value[0])&&-1!==_.indexOf(this.value[0],l.value)||_.indexOf(this.value,l.value))&&(t=!0),l.value==this.value&&(t=!0),void 0===l.visible&&(l.visible=!0),"horizontal"===i.list_orientation&&r<=n&&(l.styles="margin:auto;grid-column: "+r+"; grid-row="+a,r===n?(r=1,a+=1):r+=1),l.image_type=i.image_type,l.fieldID=this.id,l.classes=this.classes,l.index=o;var s=!1;Array.isArray(this.value)&&0<this.value.length?-1===_.indexOf(this.value[0].split(","),l.value)&&-1===_.indexOf(this.value,l.value)||(s=!0):(_.isArray(this.value)||l.value!=this.value)&&(1!=l.selected||!this.clean||void 0!==this.value&&""!==this.value)||(s=!0),l.selected=s,l.isSelected=s,l.required=this.required,l.maybeFilterHTML=this.maybeFilterHTML;var d=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listimage-option");e+=d(l)},this),1==this.show_other){"nf-other"==this.value&&(t=!1);var l={fieldID:this.id,classes:this.classes,value:this.value,currentValue:this.value,renderOtherText:this.renderOtherText,valueFound:t},o=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listimage-other");e+=o(l)}return e},renderOtherText:function(){if("nf-other"==this.currentValue||!this.valueFound){"nf-other"==this.currentValue&&(this.currentValue="");var e={fieldID:this.fieldID,classes:this.classes,currentValue:this.currentValue};return nfRadio.channel("app").request("get:template","#tmpl-nf-field-listimage-other-text")(e)}},getCalcValue:function(e){var t=0,i=e.get("options");if(0!=i.length)if(1==parseInt(e.get("allow_multi_select")))_.each(e.get("value"),function(e){var n=_.find(i,function(t){return t.value==e});t+=Number(n.calc)});else{var n=_.find(i,function(t){return e.get("value")==t.value});void 0!==n&&(t=n.calc)}return t},beforeUpdateField:function(e,t){if(1!==t.get("allow_multi_select")){var i=jQuery(e).val(),n=t.get("image_options");_.each(n,function(e,t){e.value===i?(e.isSelected=!0,e.selected=!0):(e.isSelected=!1,e.selected=!1),e.isSelected?(jQuery("#nf-field-"+e.fieldID+"-"+t).addClass("nf-checked"),jQuery("#nf-label-field-"+e.fieldID+"-"+t).addClass("nf-checked-label")):(e.selected=!1,jQuery("#nf-field-"+e.fieldID+"-"+t).removeClass("nf-checked"),jQuery("#nf-label-field-"+e.fieldID+"-"+t).removeClass("nf-checked-label"))})}else{"string"==typeof(i=t.get("value")||[])&&(i=[i]);var r=jQuery(e).val();if(jQuery(e).prop("checked"))i.push(r),jQuery(e).addClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label");else{jQuery(e).removeClass("nf-checked"),jQuery(e).parent().find('label[for="'+jQuery(e).prop("id")+'"]').removeClass("nf-checked-label");var a=i.indexOf(r);if(-1!=a)i.splice(a,1);else if(Array.isArray(i)){var l=i[0].split(","),o=l.indexOf(r);-1!==o&&l.splice(o,1),i=l.join(",")}}}return _.clone(i)}})}),i("controllers/fieldRadio",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("listradio"),"change:modelValue",this.changeModelValue),this.listenTo(nfRadio.channel("listradio"),"init:model",this.register),nfRadio.channel("listradio").reply("get:calcValue",this.getCalcValue,this),this.listenTo(nfRadio.channel("listradio"),"change:field",this.updateCheckedClass,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherText",this.renderOtherText),0!=e.get("options").length){var t=_.find(e.get("options"),function(e){return 1==e.selected});void 0!==t&&e.set("value",t.value)}},changeModelValue:function(e){1==e.get("show_other")&&e.trigger("reRender")},renderOptions:function(){var e="";if(""==this.value)var t=!0;else t=!1;if(_.each(this.options,function(i,n){i.value==this.value&&(t=!0),void 0===i.visible&&(i.visible=!0),i.selected=!1,i.fieldID=this.id,i.classes=this.classes,i.currentValue=this.value,i.index=n,i.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(i.label):i.label,i.required=this.required,this.clean&&1==this.selected||this.value==i.value?i.selected=!0:i.selected=!1,i.maybeFilterHTML=this.maybeFilterHTML;var r=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listradio-option");e+=r(i)},this),1==this.show_other){"nf-other"==this.value&&(t=!1);var i={fieldID:this.id,classes:this.classes,currentValue:this.value,renderOtherText:this.renderOtherText,valueFound:t},n=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listradio-other");e+=n(i)}return e},renderOtherText:function(){if("nf-other"==this.currentValue||!this.valueFound){"nf-other"==this.currentValue&&(this.currentValue="");var e={fieldID:this.fieldID,classes:this.classes,currentValue:this.currentValue};return nfRadio.channel("app").request("get:template","#tmpl-nf-field-listradio-other-text")(e)}},getCalcValue:function(e){var t=0;if(0!=e.get("options").length){var i=_.find(e.get("options"),function(t){return e.get("value")==t.value});void 0!==i&&(t=i.calc)}return t},updateCheckedClass:function(e,t){jQuery('[name="'+jQuery(e).attr("name")+'"]').removeClass("nf-checked"),jQuery(e).closest("ul").find("label").removeClass("nf-checked-label"),jQuery(e).addClass("nf-checked"),jQuery(e).closest("li").find('label[for="'+jQuery(e).prop("id")+'"]').addClass("nf-checked-label")}})}),i("controllers/fieldNumber",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("number"),"init:model",this.maybeMinDefault),this.listenTo(nfRadio.channel("number"),"keyup:field",this.validateEntry)},maybeMinDefault:function(e){if(""==e.get("value")&&""==e.get("placeholder")){var t=e.get("num_min");e.set("placeholder",t)}},validateEntry:function(e,t){var i=jQuery(e),n=i.val(),r=parseFloat(n),a=i.attr("min"),l=i.attr("max"),o=i.attr("step")?i.attr("step"):"1";if(a&&r<a){var s=nfRadio.channel("fields").request("get:field",t.get("id")),d=nfRadio.channel("app").request("get:form",s.get("formID"));nfRadio.channel("fields").request("add:error",t.get("id"),"number-min",d.get("settings").fieldNumberNumMinError)}else nfRadio.channel("fields").request("remove:error",t.get("id"),"number-min");if(l&&r>l){s=nfRadio.channel("fields").request("get:field",t.get("id")),d=nfRadio.channel("app").request("get:form",s.get("formID"));nfRadio.channel("fields").request("add:error",t.get("id"),"number-max",d.get("settings").fieldNumberNumMaxError)}else nfRadio.channel("fields").request("remove:error",t.get("id"),"number-max");let c=n.split(".");c=void 0!==c[1]?c[1].length:0;let f=o.split(".");f=void 0!==f[1]?f[1].length:0;let u=Math.pow(10,f);if(o&&n&&(c>f||0!==parseInt((u*r).toFixed())%parseInt((u*parseFloat(o)).toFixed()))){s=nfRadio.channel("fields").request("get:field",t.get("id")),d=nfRadio.channel("app").request("get:form",s.get("formID"));nfRadio.channel("fields").request("add:error",t.get("id"),"number-step",d.get("settings").fieldNumberIncrementBy+o)}else nfRadio.channel("fields").request("remove:error",t.get("id"),"number-step")}})}),i("controllers/mirrorField",[],function(){var e=nfRadio.channel("fields");return Marionette.Object.extend({listeningModel:"",initialize:function(){this.listenTo(e,"init:model",this.registerMirror)},registerMirror:function(e){if(e.get("mirror_field")){this.listeningModel=e;var t=e.get("mirror_field");this.listenTo(nfRadio.channel("field-"+t),"change:modelValue",this.changeValue)}},changeValue:function(e){this.listeningModel.set("value",e.get("value")),this.listeningModel.trigger("reRender")}})}),i("controllers/confirmField",[],function(){var e=nfRadio.channel("fields"),t="confirm-mismatch";return Marionette.Object.extend({initialize:function(){this.listenTo(e,"init:model",this.registerConfirm),this.listenTo(e,"keyup:field",this.confirmKeyup)},registerConfirm:function(e){e.get("confirm_field")&&this.listenTo(nfRadio.channel("form"),"loaded",function(t){this.registerConfirmListeners(e)})},registerConfirmListeners:function(e){var t=nfRadio.channel("form-"+e.get("formID")).request("get:fieldByKey",e.get("confirm_field"));void 0!==t&&(t.set("confirm_with",e.get("id")),this.listenTo(nfRadio.channel("field-"+t.get("id")),"change:modelValue",this.changeValue),this.listenTo(nfRadio.channel("field-"+e.get("id")),"change:modelValue",this.changeValue))},changeValue:function(i){if(void 0===i.get("confirm_with"))var n=i,r=nfRadio.channel("form-"+i.get("formID")).request("get:fieldByKey",n.get("confirm_field"));else r=i,n=e.request("get:field",r.get("confirm_with"));r.get("id");var a=n.get("id");if(""==n.get("value")||n.get("value")==r.get("value"))nfRadio.channel("fields").request("remove:error",a,t);else{var l=nfRadio.channel("fields").request("get:field",a),o=nfRadio.channel("app").request("get:form",l.get("formID"));nfRadio.channel("fields").request("add:error",a,t,o.get("settings").confirmFieldErrorMsg)}},confirmKeyup:function(e,i,n){var r=jQuery(e).val();if(i.get("confirm_field"))var a=i,l=i.get("id"),o=nfRadio.channel("form-"+i.get("formID")).request("get:fieldByKey",a.get("confirm_field")).get("value"),s=r;else if(i.get("confirm_with"))l=(a=nfRadio.channel("fields").request("get:field",i.get("confirm_with"))).get("id"),o=s=a.get("value");if(void 0!==a)if(""==s)nfRadio.channel("fields").request("remove:error",l,t);else if(r==o)nfRadio.channel("fields").request("remove:error",l,t);else{var d=nfRadio.channel("fields").request("get:field",l),c=nfRadio.channel("app").request("get:form",d.get("formID"));nfRadio.channel("fields").request("add:error",l,t,c.get("settings").confirmFieldErrorMsg)}}})}),i("controllers/updateFieldModel",[],function(){return Marionette.Object.extend({initialize:function(){nfRadio.channel("nfAdmin").reply("update:field",this.updateField)},updateField:function(e,t){e.get("isUpdated")||(e.set("value",t),e.set("isUpdated",!0),_.isArray(t)&&e.trigger("change:value",e))}})}),i("controllers/submitButton",["controllers/submitButton"],function(e){return Marionette.Object.extend({bound:{},initialize:function(){this.listenTo(nfRadio.channel("submit"),"init:model",this.registerHandlers)},registerHandlers:function(e){if(void 0!==this.bound[e.get("id")])return!1;this.listenTo(nfRadio.channel("field-"+e.get("id")),"click:field",this.click,this),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"before:submit",this.beforeSubmit,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"submit:failed",this.resetLabel,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"submit:response",this.resetLabel,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"enable:submit",this.maybeEnable,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"disable:submit",this.maybeDisable,e),e.listenTo(nfRadio.channel("form-"+e.get("formID")),"processingLabel",this.processingLabel,e),e.listenTo(nfRadio.channel("fields"),"add:error",this.maybeDisable,e),e.listenTo(nfRadio.channel("fields"),"remove:error",this.maybeEnable,e),this.bound[e.get("id")]=!0},click:function(e,t){var i=nfRadio.channel("app").request("get:form",t.get("formID"));_.size(i.get("fieldErrors"))>0&&nfRadio.channel("submit").request("focus:firstInvalidInput",Object.keys(i.get("fieldErrors"))),nfRadio.channel("form-"+t.get("formID")).request("submit",i)},beforeSubmit:function(){this.get("disabled")||(this.set("disabled",!0),nfRadio.channel("form-"+this.get("formID")).trigger("processingLabel",this))},maybeDisable:function(e){void 0!==e&&e.get("formID")!=this.get("formID")||(this.set("disabled",!0),this.trigger("reRender"))},maybeEnable:function(e){if(void 0!==e&&e.get("formID")!=this.get("formID"))return!1;var t=nfRadio.channel("app").request("get:form",this.get("formID"));0==_.size(t.get("fieldErrors"))&&(this.set("disabled",!1),this.trigger("reRender"))},processingLabel:function(){this.set("oldLabel",this.get("label")),this.set("label",this.get("processing_label")),this.set("disabled",!0),this.trigger("reRender")},resetLabel:function(e){void 0!==e.errors&&void 0!==e.errors.nonce&&_.size(e.errors.nonce)>0&&void 0!==e.errors.nonce.new_nonce&&void 0!==e.errors.nonce.nonce_ts||(void 0!==this.get("oldLabel")&&this.set("label",this.get("oldLabel")),this.set("disabled",!1),this.trigger("reRender"))}})}),i("controllers/submitDebug",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.submitDebug)},submitDebug:function(e,t,i,n){if(void 0!==e.debug){if(void 0!==e.debug.form){var r=document.createElement("span");_.each(e.debug.form,function(e,t){var i=document.createTextNode(e);r.appendChild(i),r.appendChild(document.createElement("br"))}),jQuery(".nf-debug-msg").html(r)}if(void 0!==e.debug.console){console.log("%c%s","","NINJA SUPPORT"),_.each(e.debug.console,function(e,t){console.log(e)}),console.log("%c%s","","END NINJA SUPPORT")}}}})}),i("controllers/getFormErrors",[],function(){nfRadio.channel("fields");return Marionette.Object.extend({initialize:function(e){nfRadio.channel("form").reply("get:errors",this.getFormErrors)},getFormErrors:function(e){var t=nfRadio.channel("app").request("get:form",e),i=!1;return t&&(0!==t.get("errors").length&&_.each(t.get("errors").models,function(e){(i=i||{})[e.get("id")]=e.get("msg")}),_.each(t.get("fields").models,function(e){"submit"!=e.get("type")&&e.get("errors").length>0&&((i=i||{})[e.get("id")]=e.get("errors"))})),i}})}),i("controllers/validateRequired",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"blur:field",this.validateRequired),this.listenTo(nfRadio.channel("fields"),"change:field",this.validateRequired),this.listenTo(nfRadio.channel("fields"),"keyup:field",this.validateKeyup),this.listenTo(nfRadio.channel("fields"),"change:modelValue",this.validateModelData),this.listenTo(nfRadio.channel("submit"),"validate:field",this.validateModelData)},validateKeyup:function(e,t,i){if(1!=t.get("required"))return!1;t.get("clean")||this.validateRequired(e,t)},validateRequired:function(e,t){if(1!=t.get("required")||!t.get("visible"))return!1;var i=jQuery(e).val(),n=nfRadio.channel(t.get("type")).request("validate:required",e,t),r=!0,a=this.getMask(t);if(a&&i===a&&(0<t.get("errors").length||!t.get("clean"))&&(r=!1),String(i).trim()||(r=!1),void 0!==n)var l=n;else l=r;this.maybeError(l,t)},getMask:function(e){var t=e.get("mask");if(void 0!==t){switch(t){case"":break;case"currency":t=nfi18n.currencySymbol;break;case"custom":t=e.get("custom_mask");default:t=(t=(t=t.replace(/9/g,"_")).replace(/a/g,"_")).replace(/\*/g,"_")}return t}},validateModelData:function(e){if(1!=e.get("required")||!e.get("visible")||e.get("clean"))return!1;if(e.get("errors").get("required-error"))return!1;currentValue=e.get("value");var t=!0;String(currentValue).trim()||(t=!1);var i=nfRadio.channel(e.get("type")).request("validate:modelData",e);if(void 0!==i)var n=i;else n=t;this.maybeError(n,e)},maybeError:function(e,t){if(e)nfRadio.channel("fields").request("remove:error",t.get("id"),"required-error");else{var i=nfRadio.channel("form-"+t.get("formID")).request("get:form");void 0!==i&&nfRadio.channel("fields").request("add:error",t.get("id"),"required-error",i.get("settings").validateRequiredField)}}})}),i("controllers/submitError",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.submitErrors),nfRadio.channel("submit").reply("focus:firstInvalidInput",this.focusFirstInvalidInput)},submitErrors:function(e,t,i,n){if(_.size(e.errors.nonce)>0&&void 0!==e.errors.nonce.new_nonce&&void 0!==e.errors.nonce.nonce_ts){nfFrontEnd.ajaxNonce=e.errors.nonce.new_nonce,nfFrontEnd.nonce_ts=e.errors.nonce.nonce_ts;var r=nfRadio.channel("app").request("get:form",n);nfRadio.channel("form-"+n).request("submit",r)}if(_.size(e.errors.fields)>0&&_.each(e.errors.fields,function(e,t){"object"==typeof e?nfRadio.channel("fields").request("add:error",t,e.slug,e.message):nfRadio.channel("fields").request("add:error",t,"required-error",e)}),_.size(e.errors.form)>0&&_.each(e.errors.form,function(e,t){nfRadio.channel("form-"+n).request("remove:error",t),nfRadio.channel("form-"+n).request("add:error",t,e)}),void 0!==e.errors.last&&void 0!==e.errors.last.message){var a="background: rgba(255, 207, 115, .5); color: #FFA700; display: block;";console.log("%c NINJA FORMS SUPPORT: SERVER ERROR",a),console.log(e.errors.last.message),console.log("%c END SERVER ERROR MESSAGE",a)}jQuery("#nf-form-"+n+"-cont .nf-field-container").show()},focusFirstInvalidInput:function(e){const t=nfRadio.channel("fields").request("get:firstFieldByOrder",e);null!==document.getElementById("nf-field-"+t)&&document.getElementById("nf-field-"+t).focus()}})}),i("controllers/actionRedirect",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.actionRedirect)},actionRedirect:function(e){void 0!==e.data.halt&&void 0!==e.data.halt.redirect&&""!=e.data.halt.redirect&&(window.location=e.data.halt.redirect),0==_.size(e.errors)&&void 0!==e.data.actions&&void 0!==e.data.actions.redirect&&""!=e.data.actions.redirect&&(window.location=e.data.actions.redirect)}})}),i("controllers/actionSuccess",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.actionSubmit)},actionSubmit:function(e){if(0==_.size(e.errors)&&void 0!==e.data.actions&&void 0!==e.data.actions.success_message&&""!=e.data.actions.success_message){var t=e.data.form_id,i=jQuery("#nf-form-"+t+"-cont .nf-response-msg");const o=e.data.actions.success_message.replace(/(<([^>]+)>)/gi,"");i.attr("tabindex","0"),i.attr("aria-live","assertive"),i.attr("aria-label",o),i.html(e.data.actions.success_message).show(),i.focus();var n=i.offset().top,r=i.offset().top+i.outerHeight(),a=jQuery(window).scrollTop()+jQuery(window).height(),l=jQuery(window).scrollTop();a>r&&l<n||jQuery("html, body").animate({scrollTop:i.offset().top-50},300)}}})}),i("controllers/fieldSelect",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"init:model",function(e){"list"==e.get("parentType")&&this.register(e)},this),nfRadio.channel("listselect").reply("get:calcValue",this.getCalcValue,this),nfRadio.channel("listmultiselect").reply("get:calcValue",this.getCalcValue,this)},register:function(e){if(e.set("renderOptions",this.renderOptions),e.set("renderOtherAttributes",this.renderOtherAttributes),0!=e.get("options").length){var t=e.get("value");if("listmultiselect"==e.get("type"))var i=_.filter(e.get("options"),function(e){return 1==e.selected}),n=i=_.map(i,function(e){return e.value});else if("listradio"!==e.get("type")){if(void 0===(i=_.find(e.get("options"),function(e){return 1==e.selected}))&&(i=_.first(e.get("options"))),void 0!==i&&void 0!==i.value)n=i.value;else if(void 0!==i)n=i.label}void 0!==t&&""!==t&&Array.isArray(t)?e.set("value",t):void 0!==i&&e.set("value",n)}},renderOptions:function(){var e="";return _.each(this.options,function(t){if(_.isArray(this.value)){if("listmultiselect"===this.type&&0<this.value.length&&-1!=_.indexOf(this.value[0].split(","),t.value))var i=!0;else if(-1!=_.indexOf(this.value,t.value))i=!0}else if(_.isArray(this.value)||t.value!=this.value)if(1==t.selected&&this.clean&&void 0===this.value)i=!0;else i=!1;else var i=!0;void 0===t.visible&&(t.visible=!0),t.selected=i,t.fieldID=this.id,t.classes=this.classes,t.currentValue=this.value,t.label=void 0!==nfFrontEnd.filter_esc_status&&"true"===nfFrontEnd.filter_esc_status?_.escape(t.label):t.label,t.maybeFilterHTML=this.maybeFilterHTML;var n=nfRadio.channel("app").request("get:template","#tmpl-nf-field-listselect-option");e+=n(t)},this),e},renderOtherAttributes:function(){var e="";"listmultiselect"==this.type&&(e=(e+=" multiple")+' size="'+(this.multi_size||5)+'"');return e},getCalcValue:function(e){var t=0,i=e.get("options");if(0!=i.length)if("listmultiselect"==e.get("type"))_.each(e.get("value"),function(e){var n=_.find(i,function(t){return t.value==e});t+=Number(n.calc)});else{var n=_.find(i,function(t){return e.get("value")==t.value});void 0===n&&(n=e.get("options")[0]),t=n.calc}return t}})}),i("controllers/coreSubmitResponse",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.actionSubmit)},actionSubmit:function(e){var t=nfRadio.channel("app").request("get:form",e.data.form_id);if(0!=_.size(e.errors))return!1;1==e.data.settings.clear_complete&&(t.get("fields").reset(t.get("loadedFields")),1!=e.data.settings.hide_complete&&nfRadio.channel("captcha").trigger("reset")),1==e.data.settings.hide_complete&&t.trigger("hide")}})}),i("controllers/fieldProduct",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("product"),"init:model",this.register),nfRadio.channel("product").reply("get:calcValue",this.getCalcValue,this)},register:function(e){e.set("renderProductQuantity",this.renderProductQuantity),e.set("renderProduct",this.renderProduct),e.set("renderOptions",this.renderOptions)},renderProduct:function(){switch(this.product_type){case"user":return nfRadio.channel("app").request("get:template","#tmpl-nf-field-textbox")(this);case"hidden":return nfRadio.channel("app").request("get:template","#tmpl-nf-field-hidden")(this);case"dropdown":return nfRadio.channel("app").request("get:template","#tmpl-nf-product-dropdown")(this);default:return nfRadio.channel("app").request("get:template","#tmpl-nf-product-single")(this)}},renderProductQuantity:function(){if(1==this.product_use_quantity)return nfRadio.channel("app").request("get:template","#tmpl-nf-product-quantity")(this)},renderOptions:function(){var e=this,t="";return _.each(this.options,function(i){if(1==i.selected)var n=!0;else n=!1;i.selected=n,i.fieldID=e.id,i.classes=e.classes,i.currentValue=e.value;var r=nfRadio.channel("app").request("get:template","#tmpl-nf-product-"+e.product_type+"-option");t+=r(i)}),t},getCalcValue:function(e){return e.get("product_price")*e.get("value")}})}),i("controllers/fieldTotal",[],function(){return Marionette.Object.extend({totalModel:{},productTotals:{},initialize:function(){this.listenTo(nfRadio.channel("total"),"init:model",this.register),this.listenTo(nfRadio.channel("shipping"),"init:model",this.registerShipping)},register:function(e){this.totalModel=e;var t=e.get("formID");this.listenTo(nfRadio.channel("form-"+t),"loaded",this.onFormLoaded),this.listenTo(nfRadio.channel("product"),"change:modelValue",this.onChangeProduct),this.listenTo(nfRadio.channel("quantity"),"change:modelValue",this.onChangeQuantity)},registerShipping:function(e){this.shippingCost=e.get("shipping_cost")},onFormLoaded:function(e){var t=e.get("fields").models,i={},n={};for(var r in t){var a=t[r],l=a.get("id");if("product"==a.get("type"))i[l]=a;else if("quantity"==a.get("type")){n[o=a.get("product_assignment")]=a}}for(var o in i){var s=i[o],d=Number(s.get("product_price"));n[o]?d*=n[o].get("value"):1==s.get("product_use_quantity")&&(d*=s.get("value")),this.productTotals[o]=d}this.updateTotal()},onChangeProduct:function(e){var t=e.get("id"),i=Number(e.get("product_price")),n=Number(e.get("value"))*i;this.productTotals[t]=n,this.updateTotal()},onChangeQuantity:function(e){var t=e.get("product_assignment"),i=nfRadio.channel("fields").request("get:field",t),n=Number(i.get("product_price")),r=Number(e.get("value"))*n;this.productTotals[t]=r,this.updateTotal()},updateTotal:function(){var e=0;for(var t in this.productTotals)e+=Number(this.productTotals[t]);e&&this.shippingCost&&(e+=Number(this.shippingCost)),this.totalModel.set("value",e.toFixed(2)),this.totalModel.trigger("reRender")}})}),i("controllers/fieldQuantity",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("quantity"),"init:model",this.registerQuantity)},registerQuantity:function(e){var t=e.get("product_assignment"),i=nfRadio.channel("fields").request("get:field",t);i&&i.set("product_use_quantity",0)}})}),i("models/calcModel",[],function(){return Backbone.Model.extend({initialize:function(){this.set("formID",this.collection.options.formModel.get("id")),this.set("fields",{}),nfRadio.channel("calc").trigger("init:model",this),this.on("change:value",this.changeValue,this)},changeField:function(e){nfRadio.channel("calc").trigger("change:field",this,e)},changeCalc:function(e){nfRadio.channel("calc").trigger("change:calc",this,e)},changeValue:function(){nfRadio.channel("calc").trigger("change:value",this)}})}),i("models/calcCollection",["models/calcModel"],function(e){return Backbone.Collection.extend({model:e,comparator:"order",initialize:function(e,t){this.options=t,_.each(e,function(e){void 0!==e.dec&&(""===e.dec.toString().trim()&&(e.dec=2),e.dec=parseInt(e.dec))}),nfRadio.channel("form-"+t.formModel.get("id")).reply("get:calc",this.getCalc,this)},getCalc:function(e){return this.findWhere({name:e})}})}),i("controllers/calculations",["models/calcCollection"],function(e){return Marionette.Object.extend({initialize:function(){this.calcs={},this.displayFields={},this.listenTo(nfRadio.channel("form"),"loaded",this.registerCalcs),this.listenTo(nfRadio.channel("fields"),"reset:collection",this.resetCalcs),this.listenTo(nfRadio.channel("calc"),"change:field",this.changeField),this.listenTo(nfRadio.channel("calc"),"change:calc",this.changeCalc);var e=this;_.each(nfFrontEnd.use_merge_tags.calculations,function(t){e.listenTo(nfRadio.channel("fields-"+t),"init:model",e.initDisplayField)}),this.listenTo(nfRadio.channel("calc"),"change:value",this.updateDisplayFields),this.init={}},resetCalcs:function(e){void 0!==e.options.formModel&&this.registerCalcs(e.options.formModel)},registerCalcs:function(t){var i=new e(t.get("settings").calculations,{formModel:t});this.calcs[t.get("id")]=i;var n=this;_.each(i.models,function(e){n.init[e.get("name")]=!0,n.setupCalc(e)})},setupCalc:function(e){var t=this,i=e.get("eq"),n=i,r=(e.get("name"),i.match(new RegExp(/{field:(.*?)}/g)));r&&(r=r.map(function(i){var r=i.replace(":calc}","").replace("}","").replace("{field:","");if(fieldModel=nfRadio.channel("form-"+e.get("formID")).request("get:fieldByKey",r),"undefined"!=typeof fieldModel){fieldModel.set("clean",!1),fieldModel.on("change:value",e.changeField,e);var a=t.getCalcValue(fieldModel);t.updateCalcFields(e,r,a),n=t.replaceKey("field",r,a,n)}}));var a=i.match(new RegExp(/{calc:(.*?)}/g));a&&(a=a.map(function(i){var r=i.replace("}","").replace("{calc:",""),a=e.collection.findWhere({name:r});if(void 0!==a){a.on("change:value",e.changeCalc,e);var l=a.get("value");n=t.replaceKey("calc",r,l,n)}})),n=(n=n.replace(/{([a-zA-Z0-9]|:|_|-)*}/g,0)).replace(/\r?\n|\r/g,"");try{this.debug("Calculation Decoder "+n+" -> "+this.localeDecodeEquation(n)+" (Setup)");const t=new Mexp;e.set("value",Number(t.eval(this.localeDecodeEquation(n))).toFixed(e.get("dec")))}catch(e){console.log(e)}"NaN"===e.get("value")&&e.set("value","0")},updateCalcFields:function(e,t,i){var n=e.get("fields");n[t]=i,e.set("fields",n)},getCalcValue:function(e){var t=nfRadio.channel(e.get("type")).request("get:calcValue",e),i=e.get("value");void 0!==t&&(t||0===t)&&(i=t);var n=new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point),a=n.numberDecoder(i),l=n.numberEncoder(i);return t=void 0!==a&&jQuery.isNumeric(a)?l:0,e.get("visible")||(t=0),t},replaceKey:function(e,t,i,n){n=n||calcModel.get("eq"),tag="{"+e+":"+t+"}";var r=new RegExp(tag,"g");calcTag="{"+e+":"+t+":calc}";var a=new RegExp(calcTag,"g");return n=(n=n.replace(r,i)).replace(a,i)},replaceAllKeys:function(e){var t=e.get("eq"),i=this;_.each(e.get("fields"),function(e,n){t=i.replaceKey("field",n,e,t)});var n=t.match(new RegExp(/{calc:(.*?)}/g));return n&&_.each(n,function(i){var n=i.replace("}","").replace("{calc:",""),r=e.collection.findWhere({name:n});if(void 0!==r){var a=new RegExp(i,"g");t=t.replace(a,r.get("value"))}}),t},changeField:function(e,t){var i=t.get("key"),n=this.getCalcValue(t);this.updateCalcFields(e,i,n);var r=this.replaceAllKeys(e);r=(r=r.replace(/{([a-zA-Z0-9]|:|_|-)*}/g,"0")).replace(/\r?\n|\r/g,"");try{this.debug("Calculation Decoder "+r+" -> "+this.localeDecodeEquation(r)+" (Change Field)");const t=new Mexp;e.set("value",Number(t.eval(this.localeDecodeEquation(r))).toFixed(e.get("dec")))}catch(e){this.debug()&&console.log(e)}"NaN"===e.get("value")&&e.set("value","0")},initDisplayField:function(e){if(e.get("default")&&"string"==typeof e.get("default")){var t=e.get("default").match(new RegExp(/{calc:(.*?)}/g));t&&_.each(t,function(t){t=t.replace("{calc:","").replace("}","").replace(":2",""),this.displayFields[t]=this.displayFields[t]||[],this.displayFields[t].push(e)},this)}},updateDisplayFields:function(e){var t=this;void 0!==this.displayFields[e.get("name")]&&_.each(this.displayFields[e.get("name")],function(i){var n="",r=(n="html"===i.get("type")?i.get("value"):i.get("default")).match(new RegExp(/<span data-key="calc:(.*?)<\/span>/g));_.each(r,function(e){var t="{"+e.replace('<span data-key="',"").replace(/">(.*?)<\/span>/,"")+"}";n=n.replace(e,t)});var a=n.match(new RegExp(/{calc:(.*?)}/g));_.each(a,function(e){var r=e.replace("}","").replace("{calc:","").replace(":2",""),a=t.calcs[i.get("formID")].findWhere({name:r}),l=new RegExp(e,"g"),o=a.get("value");void 0!==o&&(o=t.applyLocaleFormatting(o,a)),n="html"===i.get("type")?n.replace(l,'<span data-key="calc:'+r+'">'+o+"</span>"):n.replace(l,o)}),i.set("value",n),t.init[e.get("name")]||i.trigger("reRender"),t.init[e.get("name")]=!1})},getCalc:function(e,t){return this.calcs[t].findWhere({name:e})},changeCalc:function(e,t){var i=this.replaceAllKeys(e);i=(i=i.replace("[","").replace("]","")).replace(/\r?\n|\r/g,"");try{this.debug("Calculation Decoder "+i+" -> "+this.localeDecodeEquation(i)+" (Change Calc)");const t=new Mexp;e.set("value",Number(t.eval(this.localeDecodeEquation(i))).toFixed(e.get("dec")))}catch(e){console.log(e)}"NaN"===e.get("value")&&e.set("value","0")},applyLocaleFormatting:function(e,t){return new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point).numberEncoder(e,t.get("dec"))},localeDecodeEquation:function(e){var t="",i="",n=/[0-9.,]/,a=new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point);return(e=(e=e.replace(/\s/g,"")).replace(/&nbsp;/g,"")).split("").forEach(function(e){n.test(e)?i+=e:(0<i.length&&(t+=a.numberDecoder(i),i=""),t+=e)}),0<i.length&&(t+=a.numberDecoder(i)),t},debug:function(e){window.nfCalculationsDebug&&console.log(e)}})}),i("controllers/dateBackwardsCompat",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(Backbone.Radio.channel("pikaday-bc"),"init",this.dateBackwardsCompat)},dateBackwardsCompat:function(e,t){if(e.pikaday={},e.pikaday._o={},nfRadio.channel("pikaday").trigger("init",e,t),void 0!==e.pikaday._o.disableDayFn&&e.set("disable",[e.pikaday._o.disableDayFn]),void 0!==e.pikaday._o.i18n||void 0!==e.pikaday._o.firstDay){let t=e.config.locale;void 0!==e.pikaday._o.firstDay&&(t.firstDayOfWeek=e.pikaday._o.firstDay),void 0!==e.pikaday._o.i18n&&(void 0!==e.pikaday._o.i18n.weekdays&&(t.weekdays.longhand=e.pikaday._o.i18n.weekdays),void 0!==e.pikaday._o.i18n.weekdaysShort&&(t.weekdays.shorthand=e.pikaday._o.i18n.weekdaysShort),void 0!==e.pikaday._o.i18n.months&&jQuery(".flatpickr-monthDropdown-months > option").each(function(){this.text=e.pikaday._o.i18n.months[this.value]})),e.set("locale",t)}Object.keys(e.pikaday._o).length>0&&(console.log("%cDeprecated Ninja Forms Pikaday custom code detected.","color: Red; font-size: large"),console.log("You are using deprecated Ninja Forms Pikaday custom code. Support for this custom code will be removed in a future version of Ninja Forms. Please contact Ninja Forms support for more details."))}})}),i("controllers/fieldDate",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("date"),"init:model",this.initModel),this.listenTo(nfRadio.channel("date"),"render:view",this.initDatepicker),nfRadio.channel("date").reply("validate:required",this.validateRequired,this),nfRadio.channel("date").reply("validate:modelData",this.validateModelData,this),this.listenTo(nfRadio.channel("submit"),"validate:field",this.onSubmitValidateField),this.listenTo(nfRadio.channel("fields"),"add:error",this.addErrorStyling),this.listenTo(nfRadio.channel("fields"),"remove:error",this.removeErrorStyling),this.isSubmitting=!1,this.formListenersSet={}},onSubmitValidateField:function(e){if("date"===e.get("type")){var t=e.get("id");"string"==typeof t&&t.includes(".")}},addErrorStyling:function(e,t,i){if("date"===e.get("type")&&"date_only"!==e.get("date_mode")){var n=e.get("id"),r=(e.get("formID"),jQuery('[data-field-id="'+n+'"]'));if(0===r.length&&(r=jQuery('[data-id="'+n+'"]')),0===r.length){var a=e.get("key");r=jQuery('[data-field-key="'+a+'"]')}if(r.length>0){var l=r.find(".hour"),o=r.find(".minute");if(0===l.length){var s=r.closest(".nf-field");l=s.find(".hour"),o=s.find(".minute")}l.addClass("nf-error").css("border-color","#d9534f"),o.addClass("nf-error").css("border-color","#d9534f")}}},removeErrorStyling:function(e,t){if("date"===e.get("type")&&"date_only"!==e.get("date_mode")){var i=e.get("errors");if(!(i&&i.length>0)){var n=e.get("id"),r=(e.get("formID"),jQuery('[data-field-id="'+n+'"]'));if(0===r.length&&(r=jQuery('[data-id="'+n+'"]')),0===r.length){var a=e.get("key");r=jQuery('[data-field-key="'+a+'"]')}if(r.length>0){var l=r.find(".hour"),o=r.find(".minute");if(0===l.length){var s=r.closest(".nf-field");l=s.find(".hour"),o=s.find(".minute")}l.removeClass("nf-error").css("border-color",""),o.removeClass("nf-error").css("border-color","")}}}},beforeFormSubmit:function(e){this.isSubmitting=!0;var t=e.get("id"),i=nfRadio.channel("field-repeater").request("get:repeaterFieldsModelsArrayByForm",t);if(i&&i.length>0){var n=this;_.each(i,function(t){var i=t.get("id"),r=t.get("type"),a=1==t.get("required"),l=t.get("visible");if("date"===r&&a&&l){t.set("clean",!1);var o=n.validateModelData(t);if(void 0===o){var s=t.get("value");t.get("date_mode");o=s&&""!==String(s).trim()}if(o)nfRadio.channel("fields").request("remove:error",i,"required-error");else{var d=e.get("settings").validateRequiredField;nfRadio.channel("fields").request("add:error",i,"required-error",d)}}},this)}n=this;setTimeout(function(){n.isSubmitting=!1},100)},afterFormSubmit:function(){this.isSubmitting=!1},initModel:function(e){this.registerFunctions(e)},registerFunctions:function(e){e.set("renderHourOptions",this.renderHourOptions),e.set("renderMinuteOptions",this.renderMinuteOptions),e.set("maybeRenderAMPM",this.maybeRenderAMPM),e.set("customClasses",this.customClasses),e.getValue=this.getValue},renderHourOptions:function(){return this.hours_options},renderMinuteOptions:function(){return this.minutes_options},maybeRenderAMPM:function(){if(void 0!==this.hours_24&&1!=this.hours_24)return`<div style="float:left;" class="time-wrap"><select id="ampm-select" class="ampm extra" aria-label="am-pm-select" ${1==this.required?'aria-required="true" required':""}><option value="am">AM</option><option value="pm">PM</option></select></div>`},initDatepicker:function(e){e.model.set("el",e.el);var t=jQuery(e.el).find(".nf-element")[0],i=e.model.get("id");e.model.get("type"),"string"==typeof i&&i.includes(".");e.listenTo(nfRadio.channel("form-"+e.model.get("formID")),"before:submit",this.beforeSubmit,e);var n=e.model.get("formID");if(this.formListenersSet[n]||(this.listenTo(nfRadio.channel("form-"+n),"before:submit",this.beforeFormSubmit),this.listenTo(nfRadio.channel("form-"+n),"after:submit",this.afterFormSubmit),this.listenTo(nfRadio.channel("form-"+n),"submit:response",this.afterFormSubmit),this.formListenersSet[n]=!0),this.ensurePlaceholders(e),void 0!==e.model.get("date_mode")&&"time_only"==e.model.get("date_mode"))return jQuery(t).hide(),!1;var r=this.convertDateFormat(e.model.get("date_format"));e.model.set("date_format",r);var a={onReady:(e,i,n)=>{n.altInput.setAttribute("aria-labelledby",jQuery(t).attr("aria-labelledby")),n.altInput.setAttribute("aria-invalid",!1)},onDayCreate:(e,t,i,n)=>{if(n&&n.dateObj){const e=n.dateObj,t=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2);n.setAttribute("data-qa-date",t)}},dateFormat:r,altFormat:r,altInput:!0,ariaDateFormat:r,mode:"single",allowInput:!0,disableMobile:"true",minDate:this.getMinDate(e.model),maxDate:this.getMaxDate(e.model)};const l=this.checkCustomLocale();l&&(a.locale=l);let o=nfRadio.channel("flatpickr").request("filter:settings",a,e);void 0!==o&&(a=o);var s=e.model.get("value"),d=!1,c=null;_.isObject(s)&&s.date&&(c=s,e.model.set("value",s.date,{silent:!0}),jQuery(t).val(s.date),d=!0);var f=flatpickr(t,a);if(d){try{var u=new Date(c.date);f.setDate(u,!0)}catch(e){}e.model.set("value",c,{silent:!0})}1!=e.model.get("date_default")||e.model.get("value")||(f.defaultDate=new Date,f.setDate(f.defaultDate),e.model.set("value",flatpickr.formatDate(f.defaultDate,r),{silent:!0})),1==e.model.get("date_default")&&"string"==typeof e.model.get("id")&&e.model.get("id").includes(".")&&"object"==typeof e.model.get("value")&&this.isSameDay(e.model.get("value"),new Date)&&(f.defaultDate=new Date,f.setDate(f.defaultDate,!0),e.model.set("value",flatpickr.formatDate(f.defaultDate,r),{silent:!0})),nfRadio.channel("pikaday-bc").trigger("init",f,e.model,e),nfRadio.channel("flatpickr").trigger("init",f,e.model,e)},ensurePlaceholders:function(e){if("date_only"!==e.model.get("date_mode")){var t=e.model.get("id");"string"==typeof t&&t.includes(".");setTimeout(function(){var t=jQuery(e.el),i=t.find(".hour");if(i.length>0){var n=i.find("option:first");if(!(n.length>0&&""===n.val())){var r=e.model.get("value"),a=null;if(_.isObject(r)&&r.hour)a=r.hour;else if(_.isString(r)&&""!==r.trim()){(f=r.split(":")).length>0&&(a=f[0].trim())}i.find("option").removeAttr("selected"),i.prepend('<option value="" selected style="display:none;">Hour</option>'),a?i.val(a):i.val("")}i.off("change.nfDateValidation").on("change.nfDateValidation",function(){var i=t.find(".hour").val(),n=t.find(".minute").val(),r=t.find(".ampm").val(),a=e.model.get("value"),l={date:_.isObject(a)?a.date:a,hour:i,minute:n,ampm:r};e.model.set("value",l),e.model.trigger("change:value",e.model),nfRadio.channel("date").trigger("blur:field",e.el,e.model)})}var l=t.find(".minute");if(l.length>0){var o=l.find("option:first");if(o.length>0&&""===o.val()){r=e.model.get("value"),s=null;if(_.isObject(r)&&r.minute)s=r.minute;else if(_.isString(r)&&""!==r.trim()){if((f=r.split(":")).length>1)s=f[1].trim().split(" ")[0]}s?l.val(s):l.val("")}else{var r=e.model.get("value"),s=null;if(_.isObject(r)&&r.minute)s=r.minute;else if(_.isString(r)&&""!==r.trim()){if((f=r.split(":")).length>1)s=f[1].trim().split(" ")[0]}l.find("option").removeAttr("selected"),l.prepend('<option value="" selected style="display:none;">Minute</option>'),s?l.val(s):l.val("")}var d=t.find(".ampm");if(d.length>0){r=e.model.get("value");var c=null;if(_.isObject(r)&&r.ampm)c=r.ampm;else if(_.isString(r)&&""!==r.trim()){var f;(f=r.split(" ")).length>1&&(c=f[1].trim().toLowerCase())}c&&d.val(c)}l.off("change.nfDateValidation").on("change.nfDateValidation",function(){var i=t.find(".hour").val(),n=t.find(".minute").val(),r=t.find(".ampm").val(),a=e.model.get("value"),l={date:_.isObject(a)?a.date:a,hour:i,minute:n,ampm:r};e.model.set("value",l),e.model.trigger("change:value",e.model),nfRadio.channel("date").trigger("blur:field",e.el,e.model)})}},100)}},beforeSubmit:function(e){if(_.isObject(this.model.get("value"))){const e=this.el.querySelector("input[type='hidden']").value;this.model.set("value",e)}if(-1!==this.el.dataset.fieldId.search(".")&&(nfRadio.channel("field-repeater").trigger("set:value"),"time_only"===this.model.get("date_mode")))return;if("date_only"==this.model.get("date_mode"))return!1;let t=jQuery(this.el).find(".hour").val(),i=jQuery(this.el).find(".minute").val(),n=jQuery(this.el).find(".ampm").val(),r=this.model.get("value"),a=!1;a=_.isObject(r)?r.date:r,""===t&&(t=""),""===i&&(i="");let l={date:a,hour:t,minute:i,ampm:n};this.model.set("value",l)},getMinDate:function(e){let t=null;if(void 0!==e.get("year_range_start")){const i=e.get("year_range_start");i&&(t=flatpickr.formatDate(new Date(String(i)),e.get("date_format")))}return t},getMaxDate:function(e){let t=null;if(void 0!==e.get("year_range_end")){const i=e.get("year_range_end");i&&(t=flatpickr.formatDate(new Date(String(i)),e.get("date_format")))}return t},convertDateFormat:function(e){!e&&this.model&&(e=this.model.get("date_format")),e||(e="default");const t={"MM/DD/YYYY":"m/d/Y","MM-DD-YYYY":"m-d-Y","MM.DD.YYYY":"m.d.Y","DD/MM/YYYY":"d/m/Y","DD-MM-YYYY":"d-m-Y","DD.MM.YYYY":"d.m.Y","YYYY-MM-DD":"Y-m-d","YYYY/MM/DD":"Y/m/d","YYYY.MM.DD":"Y.m.d","dddd, MMMM D YYYY":"l, F d Y",default:nfi18n.dateFormat?nfi18n.dateFormat:"default"};return Object.keys(t).includes(e)?t[e]:e},customClasses:function(e){return"date_and_time"==this.date_mode&&(e+=" date-and-time"),e},checkCustomLocale:function(){let e={};return nfi18n&&((nfi18n.months||nfi18n.monthsShort)&&(e.months={},nfi18n.months&&(e.months.longhand=nfi18n.months),nfi18n.monthsShort&&(e.months.shorthand=nfi18n.monthsShort)),(nfi18n.weekdays||nfi18n.weekdaysShort)&&(e.weekdays={},nfi18n.weekdays&&(e.weekdays.longhand=nfi18n.weekdays),nfi18n.weekdaysShort&&(e.weekdays.shorthand=nfi18n.weekdaysShort)),nfi18n.startOfWeek&&(e.firstDayOfWeek=nfi18n.startOfWeek)),!_.isEmpty(e)&&e},getValue:function(){if("date_only"==this.get("date_mode"))return this.get("value");let e=this.get("el"),t=jQuery(e).find(".hour").val(),i=jQuery(e).find(".minute").val(),n=jQuery(e).find(".ampm").val(),r=this.get("value"),a=!1;a=_.isObject(r)?r.date:r;let l=t&&""!==t,o=i&&""!==i;if("time_only"==this.get("date_mode")){if(!l||!o)return"";let e=t+":"+i;return n&&(e+=" "+n),e}let s="";return void 0!==a&&a&&(s+=a),l&&o&&(s+=" "+t+":"+i,n&&(s+=" "+n)),s},isSameDay:function(e,t){const i=new Date(e),n=new Date(t);return i.setHours(0,0,0,0),n.setHours(0,0,0,0),i.getTime()===n.getTime()},validateRequired:function(e,t){var i=t.get("id"),n=("string"==typeof i&&i.includes("."),t.get("date_mode"));if("date_only"!==n){var r=jQuery(e).closest(".nf-field-container"),a=r.find(".hour").val(),l=r.find(".minute").val(),o=a&&""!==a,s=l&&""!==l;if("time_only"===n)return o&&s;var d=jQuery(e).val();if(!d||""===d.trim())return!1;if(o||s)return o&&s}},validateModelData:function(e){var t=e.get("id"),i=("string"==typeof t&&t.includes("."),e.get("date_mode"));if("date_only"!==i){var n=e.get("value");if("time_only"===i){if(_.isObject(n)){var r=n.hour&&""!==n.hour&&"null"!==n.hour,a=n.minute&&""!==n.minute&&"null"!==n.minute&&null!==n.minute;return!(!r&&!a)&&(!this.isSubmitting||r&&a)}if(!n||""===n.trim())return!1;var l=n.split(":"),o=l[0]?l[0].trim():"",s=l[1]?l[1].trim().split(" ")[0]:"",d=o&&""!==o&&"null"!==o&&!isNaN(parseInt(o)),c=s&&""!==s&&"null"!==s&&!isNaN(parseInt(s));return d&&c}if(_.isObject(n)){var f=n.date&&""!==n.date.trim();r=n.hour&&""!==n.hour&&"null"!==n.hour,a=n.minute&&""!==n.minute&&"null"!==n.minute&&null!==n.minute;return!!f&&(r||a?!this.isSubmitting||r&&a:!this.isSubmitting)}if(n&&""!==n.trim()){if(n.indexOf(":")>-1){var u=n.split(" "),h=u[0],m=u[1];if(!h||!m)return!1;var g=m.split(":"),p=(o=g[0],g[1]?g[1].split(" ")[0]:"");d=o&&""!==o&&"null"!==o&&!isNaN(parseInt(o)),c=p&&""!==p&&"null"!==p&&!isNaN(parseInt(p));return d&&c}return!this.isSubmitting}return!1}}})}),i("controllers/fieldRecaptcha",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("recaptcha"),"init:model",this.initRecaptcha),this.listenTo(nfRadio.channel("forms"),"submit:response",this.resetRecaptcha)},initRecaptcha:function(e){nfRadio.channel("recaptcha").reply("update:response",this.updateResponse,this,e.id)},updateResponse:function(e,t){var i=nfRadio.channel("fields").request("get:field",t);i.set("value",e),nfRadio.channel("fields").request("remove:error",i.get("id"),"required-error")},resetRecaptcha:function(){var e=0;jQuery(".g-recaptcha").each(function(){try{grecaptcha.reset(e)}catch(e){console.log("Notice: Error trying to reset grecaptcha.")}e++})}})}),i("controllers/fieldRecaptchaV3",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("recaptcha_v3"),"init:model",this.initRecaptcha)},initRecaptcha:function(e){const t=e.get("formID");this.processRecaptcha(t,e),setInterval(this.processRecaptcha,11e4,t,e)},processRecaptcha:function(e,t){try{nfRadio.channel("form-"+e).trigger("disable:submit",t),grecaptcha.ready(function(){grecaptcha.execute(t.get("site_key"),{action:"register"}).then(function(i){t.set("value",i),nfRadio.channel("form-"+e).trigger("enable:submit",t)})})}catch(e){jQuery(document).on("nfFormReady",e=>{let i,n=nf_check_recaptcha_consent();t.collection.models.forEach(e=>{"submit"===e.get("type")&&(i=e.get("id"))}),nfRadio.channel("fields").request("add:error",i,"recaptcha-v3-missing",t.collection.options.formModel.get("settings").recaptchaConsentMissing),this.nf_build_default_consent_action(t,n.services,i,e)})}},nf_build_default_consent_action:function(e,t,i,n){if(!(t.length<=1&&t.includes("missing_cookie")||t.length<=0)){let r=document.createElement("div");r.setAttribute("id","nf_recaptcha_consent_event"),r.innerText+=e.collection.options.formModel.get("settings").recaptchaConsentEvent;let a=new CustomEvent("nf_consent_link",{detail:{services:t,element:r,submitFieldID:i,layoutView:n}});document.dispatchEvent(a);const l=document.getElementsByClassName("nf-error-recaptcha-v3-missing");Array.prototype.slice.call(l).forEach(e=>{e.append(r)})}}})}),i("controllers/fieldTurnstile",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("turnstile"),"init:model",this.initTurnstile),this.listenTo(nfRadio.channel("forms"),"submit:response",this.resetTurnstile),this.setupTurnstileGlobals(),this.bindTurnstileEvents()},initTurnstile:function(e){nfRadio.channel("turnstile").reply("update:response",this.updateResponse,this,e.id)},updateResponse:function(e,t){var i=nfRadio.channel("fields").request("get:field",t);i.set("value",e),nfRadio.channel("fields").request("remove:error",i.get("id"),"required-error")},resetTurnstile:function(){var e=0;jQuery(".cf-turnstile, .nf-cf-turnstile").each(function(){try{turnstile.reset(e)}catch(e){}e++})},setupTurnstileGlobals:function(){window.nfTurnstileCallback=function(e){var t=null;if(jQuery(".cf-turnstile, .nf-cf-turnstile").each(function(){if(this.querySelector("iframe"))return t=this,!1}),t&&e){var i=jQuery(t).data("fieldid"),n=document.getElementById("nf-field-"+i);if(n&&(n.value=e,jQuery(n).trigger("change"),jQuery(n).closest(".field-wrap").removeClass("nf-error"),jQuery(n).closest(".field-wrap").find(".nf-error-msg").remove()),"undefined"!=typeof nfRadio&&nfRadio.channel)try{nfRadio.channel("turnstile").request("update:response",e,i)}catch(e){}}},window.nfRenderTurnstile=function(){"undefined"!=typeof turnstile?0!==jQuery(".cf-turnstile, .nf-cf-turnstile").length?jQuery(".cf-turnstile:empty, .nf-cf-turnstile:empty").each(function(){var e=this,t=jQuery(e).data("sitekey");jQuery(e).data("fieldid");if(t)try{turnstile.render(e,{sitekey:t,theme:jQuery(e).data("theme")||"auto",size:jQuery(e).data("size")||"normal",callback:function(t){var i=jQuery(e).data("fieldid"),n=document.getElementById("nf-field-"+i);if(n&&(n.value=t,jQuery(n).trigger("change"),jQuery(n).closest(".field-wrap").removeClass("nf-error"),jQuery(n).closest(".field-wrap").find(".nf-error-msg").remove()),"undefined"!=typeof nfRadio&&nfRadio.channel)try{nfRadio.channel("turnstile").request("update:response",t,i)}catch(e){}}})}catch(e){}}):setTimeout(function(){window.nfRenderTurnstile()},200):setTimeout(window.nfRenderTurnstile,100)}},bindTurnstileEvents:function(){if("function"==typeof window.nfRenderTurnstile&&window.nfRenderTurnstile(),jQuery(document).ready(function(){setTimeout(window.nfRenderTurnstile,100)}),jQuery(document).on("nfFormReady",function(){setTimeout(window.nfRenderTurnstile,100)}),"undefined"!=typeof nfRadio)try{nfRadio.channel("form").on("render:view",function(){setTimeout(window.nfRenderTurnstile,100)})}catch(e){}var e=0,t=setInterval(function(){++e>=10?clearInterval(t):jQuery(".cf-turnstile, .nf-cf-turnstile").length>0&&(window.nfRenderTurnstile(),clearInterval(t))},500)}})}),i("controllers/fieldHcaptcha",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("hcaptcha"),"init:model",this.initHcaptcha),this.listenTo(nfRadio.channel("forms"),"submit:response",this.resetHcaptcha),this.setupHcaptchaGlobals(),this.bindHcaptchaEvents()},initHcaptcha:function(e){nfRadio.channel("hcaptcha").reply("update:response",this.updateResponse,this,e.id)},updateResponse:function(e,t){var i=nfRadio.channel("fields").request("get:field",t);i.set("value",e),nfRadio.channel("fields").request("remove:error",i.get("id"),"required-error")},resetHcaptcha:function(){var e=0;jQuery(".h-captcha, .nf-h-captcha").each(function(){try{hcaptcha.reset(e)}catch(e){}e++})},setupHcaptchaGlobals:function(){window.nfHcaptchaCallback=function(e){var t=null;if(jQuery(".h-captcha, .nf-h-captcha").each(function(){if(this.querySelector("iframe"))return t=this,!1}),t&&e){var i=jQuery(t).data("fieldid"),n=document.getElementById("nf-field-"+i);if(n&&(n.value=e,jQuery(n).trigger("change"),jQuery(n).closest(".field-wrap").removeClass("nf-error"),jQuery(n).closest(".field-wrap").find(".nf-error-msg").remove()),"undefined"!=typeof nfRadio&&nfRadio.channel)try{nfRadio.channel("hcaptcha").request("update:response",e,i)}catch(e){}}},window.nfRenderHcaptcha=function(){"undefined"!=typeof hcaptcha?0!==jQuery(".h-captcha, .nf-h-captcha").length?jQuery(".h-captcha, .nf-h-captcha").each(function(){if(""===this.innerHTML.trim()){var e=this,t=jQuery(e).data("sitekey");jQuery(e).data("fieldid");if(t)try{hcaptcha.render(e,{sitekey:t,theme:jQuery(e).data("theme")||"light",size:jQuery(e).data("size")||"normal",callback:function(t){var i=jQuery(e).data("fieldid"),n=document.getElementById("nf-field-"+i);if(n&&(n.value=t,jQuery(n).trigger("change"),jQuery(n).closest(".field-wrap").removeClass("nf-error"),jQuery(n).closest(".field-wrap").find(".nf-error-msg").remove()),"undefined"!=typeof nfRadio&&nfRadio.channel)try{nfRadio.channel("hcaptcha").request("update:response",t,i)}catch(e){}}})}catch(e){console.error("hCaptcha render error:",e)}}}):setTimeout(function(){window.nfRenderHcaptcha()},200):setTimeout(window.nfRenderHcaptcha,100)}},bindHcaptchaEvents:function(){if("function"==typeof window.nfRenderHcaptcha&&window.nfRenderHcaptcha(),jQuery(document).ready(function(){setTimeout(window.nfRenderHcaptcha,100)}),jQuery(document).on("nfFormReady",function(){setTimeout(window.nfRenderHcaptcha,100)}),"undefined"!=typeof nfRadio)try{nfRadio.channel("form").on("render:view",function(){setTimeout(window.nfRenderHcaptcha,100)})}catch(e){}var e=0,t=setInterval(function(){++e>=10?clearInterval(t):jQuery(".h-captcha, .nf-h-captcha").length>0&&(window.nfRenderHcaptcha(),clearInterval(t))},500)}})}),i("controllers/fieldHTML",[],function(){return Marionette.Object.extend({htmlFields:[],trackedMergeTags:[],initialize:function(){this.listenTo(Backbone.Radio.channel("fields-html"),"init:model",this.setupFieldMergeTagTracking)},setupFieldMergeTagTracking:function(e){this.htmlFields.push(e);var t=e.get("formID"),i=this;this.listenTo(nfRadio.channel("form-"+t),"init:model",function(t){var n=e.get("default").match(new RegExp(/{field:(.*?)}/g));n&&(_.each(n,function(e){var n=e.replace("{field:","").replace("}",""),r=t.get("fields").findWhere({key:n});void 0!==r&&(this.trackedMergeTags.push(r),this.listenTo(nfRadio.channel("field-"+r.get("id")),"change:modelValue",this.updateFieldMergeTags),"repeater"===r.get("type")&&this.listenTo(nfRadio.channel("fields"),"change:modelValue",function(e){var t=e.get("key");t&&0===t.indexOf(n+"_")&&i.updateFieldMergeTags(r)}))},this),this.updateFieldMergeTags())},this)},updateFieldMergeTags:function(e){var t=this;_.each(this.htmlFields,function(e){var i=e.get("default")||"";if(/{field:(.*?)}/.test(i)){if(!e._nfFieldMergeBase){var n=(e.get("value")||i).replace(/<span data-key="field:(.*?)">([\s\S]*?)<\/span>/g,"{field:$1}");if((i.match(/{field:(.*?)}/g)||[]).every(function(e){return-1!==n.indexOf(e)}))e._nfFieldMergeBase=n;else{var r=i,a=i.match(/{querystring:(.*?)}/g)||[];_.each(a,function(e){var i=e.replace("{querystring:","").replace("}","");r=r.replace(e,t._getQueryStringValue(i))}),e._nfFieldMergeBase=r}}var l=e._nfFieldMergeBase;_.each(t.trackedMergeTags,function(e){var i="{field:"+e.get("key")+"}";let n;n="repeater"===e.get("type")?t.displayRepeaterData(e):"signature"===e.get("type")?t.displaySignatureData(e):"checkbox"===e.get("type")?1==e.getValue()||"on"==e.getValue()?e.get("checked_value")||"Checked":e.get("unchecked_value")||"Unchecked":e.getValue(),l=l.replace(i,n)}),e.set("value",l),e.trigger("reRender")}})},displayRepeaterData:function(e){var t=e.getValue();if(!t||"object"!=typeof t)return"";const i=Object.keys(t);let n="",r=[];return _.each(i,function(e){if(-1===r.indexOf(e)){const t=nfRadio.channel("fields").request("get:field",e);if(void 0!==t){if(-1===["submit","html","hidden","password","passwordconfirm","divider","hr","note","unknown","button","confirm","creditcard","creditcardcvc","creditcardexpiration","creditcardfullname","creditcardnumber","creditcardzip","recaptcha","recaptcha_v3"].indexOf(t.get("type"))&&t.getValue().toString().length>0){const i=Number(e.split("_").pop())+1;let a;a="signature"===t.get("type")?this.displaySignatureData(t):t.getValue(),n+="<p>"+t.get("label")+" "+i+":"+a+"</p>",r.push(e)}}}},this),n},displaySignatureData:function(e){var t,i=e.getValue();if(!i||""===i)return"";try{if("object"==typeof i)t=i;else{if("string"!=typeof i||"{"!==i.charAt(0))return i;t=JSON.parse(i)}}catch(e){return console.warn("Failed to parse signature data:",e),i}if(!t||!t.signature_type)return i;if("typed"===t.signature_type&&t.typed_name){var n=e.get("signature_font")||t.signature_font||"dancing-script";return'<div class="nf-signature-typed" style="font-family: '+this.getSignatureFontFamily(n)+'; font-size: 28px; color: #000000; padding: 10px 0;">'+_.escape(t.typed_name)+"</div>"}return"drawn"===t.signature_type&&t.signature_data&&0===t.signature_data.indexOf("data:image")?'<img class="nf-signature-drawn" src="'+_.escape(t.signature_data)+'" alt="Signature" style="max-width: 400px; height: auto; display: block;" />':""},getSignatureFontFamily:function(e){var t={"dancing-script":"'Dancing Script', cursive",satisfy:"'Satisfy', cursive",cursive:"cursive"};return t[e]||t["dancing-script"]},_getQueryStringValue:function(e){try{return new URLSearchParams(window.location.search).get(e)||""}catch(n){var t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=window.location.search.match(new RegExp("[?&]"+t+"=([^&]*)"));return i?decodeURIComponent(i[1].replace(/\+/g," ")):""}}})}),i("controllers/helpText",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("form"),"render:view",this.initHelpText),this.listenTo(nfRadio.channel("field-repeater"),"fieldset:added",this.initHelpText),nfRadio.channel("form").reply("init:help",this.initHelpText)},initHelpText:function(e){e&&!e.el&&"function"==typeof e.get&&"repeater"===e.get("type")&&(e.el="#nf-form-"+e.get("formID")+"-cont"),jQuery(e.el).find(".nf-help").each(function(e){var t=jQuery(this).jBox("Tooltip",{theme:"TooltipBorder",content:jQuery(this).data("text"),trigger:"mouseenter focus",closeOnMouseleave:!0,closeOnClick:!0});jQuery(this).on("keydown mouseleave",function(){t.close()})})}})}),i("controllers/fieldTextbox",[],function(){return Marionette.Object.extend({initialize:function(){nfRadio.channel("textbox").reply("get:calcValue",this.getCalcValue,this)},getCalcValue:function(e){if("currency"==e.get("mask")){var t=nfRadio.channel("app").request("get:form",e.get("formID")),i=void 0!==t?t.get("currencySymbol"):"",n=jQuery("<textarea />").html(i).text();return e.get("value").replace(n,"")}return e.get("value")}})}),i("controllers/fieldTextareaRTE",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("textarea"),"render:view",this.initTextareaRTEs),this.listenTo(nfRadio.channel("textarea"),"click:extra",this.clickExtra),this.meta_image_frame,this.currentContext={},this.quillInstances={},"undefined"!=typeof Quill&&this.patchTableRowCheckMerge()},patchTableRowCheckMerge:function(){var e=Quill.import("formats/table-row");if(e&&!e._nfCheckMergePatched){var t=e.prototype.checkMerge;e.prototype.checkMerge=function(){if(!this.children||!this.children.head)return!1;if("function"!=typeof this.children.head.formats)return!1;if(!this.children.tail||"function"!=typeof this.children.tail.formats)return!1;if(this.next&&this.next.children){if(this.next.children.head&&"function"!=typeof this.next.children.head.formats)return!1;if(this.next.children.tail&&"function"!=typeof this.next.children.tail.formats)return!1}return t.call(this)},e._nfCheckMergePatched=!0}},initTextareaRTEs:function(e){if(1!=e.model.get("textarea_rte"))return!1;var t=this,i=jQuery(e.el).find(".nf-element");i.hide();var n="quill-frontend-"+e.model.get("id")+"-"+Date.now(),r=jQuery('<div class="nf-quill-wrapper" style="clear: both;"></div>'),a=jQuery('<div id="'+n+'"></div>');r.append(a),i.after(r),requestAnimationFrame(function(){if(jQuery.contains(document,a[0])){var l=[[{header:[1,2,3,!1]}],["bold","italic","underline","clean"],[{list:"ordered"},{list:"bullet"}],[{align:["","center","right","justify"]}],["nf-link","nf-unlink"],[{table:"table"}],["nf-undo","nf-redo"]];1==e.model.get("textarea_media")&&0!=userSettings.uid&&l.push(["nf-media"]);var o=new Quill("#"+n,{theme:"snow",modules:{toolbar:{container:l,handlers:{"nf-link":function(){t.showLinkDialog(o,e)},"nf-unlink":function(){t.removeLink(o)},"nf-media":function(){t.openMediaManager(o,e)},"nf-undo":function(){o.history.undo()},"nf-redo":function(){o.history.redo()},table:function(){t.showTablePicker(o,e)}}},history:{delay:1e3,maxStack:50,userOnly:!0},table:!0},placeholder:e.model.get("placeholder")||""});o.clipboard.addMatcher("TABLE",function(e,i){var n=document.createElement("div");n.appendChild(e.cloneNode(!0));var r=t.normalizeTableHtml(n.innerHTML);return r!==n.innerHTML?(document.createElement("div").innerHTML=r,o.clipboard.convert({html:r})):i});var s=e.model.get("value")||"",d=t.hasLegacyTables(s),c=!0;o.root.innerHTML=t.normalizeTableHtml(s),d&&t.showLegacyTableNotice(e,r,o),t.quillInstances[n]={quill:o,model:e.model,view:e},t.addDashicons(e,r),o.on("text-change",function(t,n,r){if(c)c=!1;else{var a=o.root.innerHTML;e.model.set("value",a),i.val(a),i.trigger("change")}}),jQuery(o.root).on("contextmenu",function(e){t.showTableContextMenu(o,e)}),a.data("quill-instance",n)}})},addDashicons:function(e,t){var i=t.find(".ql-toolbar");i.find(".ql-bold").html('<span class="dashicons dashicons-editor-bold"></span>'),i.find(".ql-italic").html('<span class="dashicons dashicons-editor-italic"></span>'),i.find(".ql-underline").html('<span class="dashicons dashicons-editor-underline"></span>'),i.find('.ql-list[value="ordered"]').html('<span class="dashicons dashicons-editor-ol"></span>'),i.find('.ql-list[value="bullet"]').html('<span class="dashicons dashicons-editor-ul"></span>'),i.find(".ql-clean").html('<span class="dashicons dashicons-editor-removeformatting"></span>'),i.find("button.ql-nf-link").html('<span class="dashicons dashicons-admin-links"></span>'),i.find("button.ql-nf-unlink").html('<span class="dashicons dashicons-editor-unlink"></span>'),i.find("button.ql-nf-media").html('<span class="dashicons dashicons-admin-media"></span>'),i.find(".ql-table").html('<span class="dashicons dashicons-editor-table"></span>'),i.find("button.ql-nf-undo").html('<span class="dashicons dashicons-undo"></span>'),i.find("button.ql-nf-redo").html('<span class="dashicons dashicons-redo"></span>')},showLinkDialog:function(e,t){var i=e.getSelection(!0),n=i?e.getText(i.index,i.length):"",r=nfRadio.channel("app").request("get:template","#tmpl-nf-rte-link-dropdown")({}),a=jQuery(t.el).find(".ql-toolbar"),l=a.find(".nf-link-dropdown");if(l.length)l.remove();else{var o=jQuery('<div class="nf-link-dropdown" role="dialog"></div>').attr("aria-label",nfi18n.insertLink||"Insert Link").html(r);a.append(o),o.find(".link-text").val(n),o.find(".link-url").focus(),o.on("keydown",function(t){27===t.keyCode&&(t.preventDefault(),o.remove(),e.focus())}),o.find(".insert-link").on("click",function(){var t=o.find(".link-text").val(),n=o.find(".link-url").val(),r=o.find(".link-new-window").prop("checked");if(n){var a={link:n};r&&(a.target="_blank"),i&&i.length>0?e.formatText(i.index,i.length,a):t&&(e.insertText(i.index,t,a),e.setSelection(i.index+t.length))}o.remove()}),o.find(".cancel-link").on("click",function(){o.remove()}),this.currentContext={quill:e,range:i}}},removeLink:function(e){var t=e.getSelection();t&&e.formatText(t.index,t.length,{link:!1})},openMediaManager:function(e,t){var i=this,n=e.getSelection(!0);this.currentContext={quill:e,range:n},this.meta_image_frame||(this.meta_image_frame=wp.media.frames.meta_image_frame=wp.media({title:nfi18n.fieldTextareaRTESelectAFile,button:{text:"insert"}}),this.meta_image_frame.on("select",function(){var e=i.meta_image_frame.state().get("selection").first().toJSON();i.insertMedia(e)})),this.meta_image_frame.open()},insertMedia:function(e){var t=this.currentContext.quill,i=this.currentContext.range||t.getSelection(!0)||{index:0};if("image"==e.type)t.insertEmbed(i.index,"image",e.url),t.setSelection(i.index+1);else{var n=e.title||e.filename;t.insertText(i.index,n,{link:e.url}),t.setSelection(i.index+n.length)}},hasLegacyTables:function(e){if(-1===e.toLowerCase().indexOf("<table"))return!1;var t=document.createElement("div");if(t.innerHTML=e,t.querySelectorAll("th").length>0)return!0;for(var i=t.querySelectorAll("td"),n=0;n<i.length;n++)if(!i[n].hasAttribute("data-row"))return!0;return!1},showLegacyTableNotice:function(e,t,i){var n=t.find(".ql-toolbar"),r=jQuery(e.el).find(".nf-element"),a=jQuery('<div class="nf-legacy-table-notice" role="alert"></div>');a.append(jQuery('<span class="nf-legacy-table-text"></span>').text(nfi18n.tableLegacyNotice)),a.append(jQuery('<button type="button" class="nf-convert-table-btn"></button>').text(nfi18n.tableLegacyConvert)),a.append(jQuery('<button type="button" class="nf-dismiss-notice"></button>').attr("aria-label",nfi18n.dismiss||"Dismiss").html("&times;")),n.after(a),a.find(".nf-convert-table-btn").on("click",function(){var t=i.root.innerHTML;e.model.set("value",t),r.val(t),r.trigger("change"),a.slideUp(function(){a.remove()})}),a.find(".nf-dismiss-notice").on("click",function(){a.slideUp(function(){a.remove()})})},normalizeTableHtml:function(e){if(-1===e.toLowerCase().indexOf("<table"))return e;var t=document.createElement("div");t.innerHTML=e;for(var i=t.querySelectorAll("table, tbody, thead, tfoot, tr"),n=0;n<i.length;n++)for(var r=i[n],a=Array.prototype.slice.call(r.childNodes),l=0;l<a.length;l++){var o=a[l];3!==o.nodeType&&8!==o.nodeType||r.removeChild(o)}var s=t.querySelectorAll("table");for(n=0;n<s.length;n++){var d=(w=(b=s[n]).querySelector("tbody"))||b,c=[],f=Array.prototype.slice.call(d.children);for(l=0;l<f.length;l++)"TD"!==f[l].tagName&&"TH"!==f[l].tagName||c.push(f[l]);if(c.length>0){var u=document.createElement("tr"),h=c[0];d.insertBefore(u,h);for(l=0;l<c.length;l++)u.appendChild(c[l])}}var m=t.querySelectorAll("tr");for(n=0;n<m.length;n++){(u=m[n]).querySelector("td, th")||u.parentNode.removeChild(u)}var g=t.querySelectorAll("th");for(n=0;n<g.length;n++){var p=document.createElement("td");p.innerHTML=g[n].innerHTML;for(var v=0;v<g[n].attributes.length;v++)p.setAttribute(g[n].attributes[v].name,g[n].attributes[v].value);g[n].parentNode.replaceChild(p,g[n])}var y=t.querySelectorAll("thead, tfoot");for(n=0;n<y.length;n++){var b;(w=(b=y[n].parentNode).querySelector("tbody"))||(w=document.createElement("tbody"),b.appendChild(w));var R=y[n].querySelectorAll("tr"),_="THEAD"===y[n].tagName;for(l=0;l<R.length;l++)_?w.insertBefore(R[l],w.firstChild):w.appendChild(R[l]);y[n].parentNode.removeChild(y[n])}for(s=t.querySelectorAll("table"),n=0;n<s.length;n++)if(!s[n].querySelector("tbody")){for(var w=document.createElement("tbody"),x=(f=s[n].children,[]),F=0;F<f.length;F++)"TR"===f[F].tagName&&x.push(f[F]);for(F=0;F<x.length;F++)w.appendChild(x[F]);s[n].appendChild(w)}var k=t.querySelectorAll("caption, colgroup, col");for(n=0;n<k.length;n++)k[n].parentNode.removeChild(k[n]);var T=t.querySelectorAll("tr");for(n=0;n<T.length;n++){var C=T[n].querySelectorAll("td"),M=null,j=!1;for(l=0;l<C.length;l++)C[l].hasAttribute("data-row")?M=C[l].getAttribute("data-row"):j=!0;if(j){var q=M||"row-"+Math.random().toString(36).slice(2,6);for(l=0;l<C.length;l++)C[l].hasAttribute("data-row")||C[l].setAttribute("data-row",q)}}return t.innerHTML},showTablePicker:function(e,t){var i=e.getSelection(!0),n=jQuery(t.el).find(".ql-toolbar"),r=jQuery(".nf-table-picker"),a=n.find(".nf-table-picker").length>0;if(r.remove(),jQuery(document).off("mousedown.nfTablePicker keydown.nfTablePicker"),!a){for(var l=jQuery('<div class="nf-table-picker" role="dialog"></div>').attr("aria-label",nfi18n.tableInsertTable||"Insert Table"),o=jQuery('<div class="nf-table-grid" role="grid"></div>'),s=jQuery('<div class="nf-table-label" aria-live="polite">0 × 0</div>'),d="",c=1;c<=10;c++)for(var f=1;f<=10;f++){d+='<div class="nf-table-cell" role="gridcell" tabindex="'+(1===c&&1===f?"0":"-1")+'" data-row="'+c+'" data-col="'+f+'" aria-label="'+c+" × "+f+'"></div>'}o.html(d),l.append(o),l.append(s),n.append(l),o.find('.nf-table-cell[data-row="1"][data-col="1"]').focus();var u=o[0].querySelectorAll(".nf-table-cell");o.on("mouseover",".nf-table-cell",function(){var e=parseInt(this.dataset.row,10),t=parseInt(this.dataset.col,10);s.text(e+" × "+t);for(var i=0;i<u.length;i++){var n=parseInt(u[i].dataset.row,10),r=parseInt(u[i].dataset.col,10);u[i].classList.toggle("highlight",n<=e&&r<=t)}}),o.on("click",".nf-table-cell",function(){var t=parseInt(this.dataset.row,10),n=parseInt(this.dataset.col,10);e.focus(),i&&e.setSelection(i.index,0);var r=e.getModule("table");r&&r.insertTable(t,n),l.remove(),jQuery(document).off("mousedown.nfTablePicker keydown.nfTablePicker")}),o.on("keydown",".nf-table-cell",function(e){var t=jQuery(this),i=parseInt(t.data("row"),10),n=parseInt(t.data("col"),10),r=i,a=n;switch(e.keyCode){case 37:a=Math.max(1,n-1);break;case 38:r=Math.max(1,i-1);break;case 39:a=Math.min(10,n+1);break;case 40:r=Math.min(10,i+1);break;case 13:return void t.trigger("click");default:return}e.preventDefault();var l=o.find('.nf-table-cell[data-row="'+r+'"][data-col="'+a+'"]');l.length&&(t.attr("tabindex","-1"),l.attr("tabindex","0").focus(),l.trigger("mouseover"))}),setTimeout(function(){jQuery(document).on("mousedown.nfTablePicker",function(e){jQuery(e.target).closest(".nf-table-picker, .ql-table").length||(l.remove(),jQuery(document).off("mousedown.nfTablePicker keydown.nfTablePicker"))})},0),jQuery(document).on("keydown.nfTablePicker",function(t){27===t.keyCode&&(l.remove(),jQuery(document).off("mousedown.nfTablePicker keydown.nfTablePicker"),e.focus())})}},showTableContextMenu:function(e,t){if(jQuery(".nf-table-context-menu").remove(),jQuery(document).off("mousedown.nfTableContext"),jQuery(t.target).closest("td, th").length){var i=e.getModule("table");if(i){t.preventDefault();var n=[{label:nfi18n.tableInsertRowAbove,action:"insertRowAbove"},{label:nfi18n.tableInsertRowBelow,action:"insertRowBelow"},{separator:!0},{label:nfi18n.tableInsertColumnLeft,action:"insertColumnLeft"},{label:nfi18n.tableInsertColumnRight,action:"insertColumnRight"},{separator:!0},{label:nfi18n.tableDeleteRow,action:"deleteRow"},{label:nfi18n.tableDeleteColumn,action:"deleteColumn"},{label:nfi18n.tableDeleteTable,action:"deleteTable"}],r=jQuery('<div class="nf-table-context-menu" role="menu"></div>');n.forEach(function(t,n){if(t.separator)r.append(jQuery('<div class="nf-table-context-separator" role="separator"></div>'));else{var a=jQuery('<div class="nf-table-context-item" role="menuitem" tabindex="-1"></div>').text(t.label);a.on("click",function(){"function"==typeof i[t.action]&&i[t.action](),r.remove(),jQuery(document).off("mousedown.nfTableContext keydown.nfTableContext"),e.focus()}),r.append(a)}}),r.css({left:t.clientX+"px",top:t.clientY+"px"}),jQuery("body").append(r),r.find(".nf-table-context-item").first().focus(),jQuery(document).on("keydown.nfTableContext",function(t){var i=r.find(".nf-table-context-item"),n=r.find(".nf-table-context-item:focus"),a=i.index(n);switch(t.keyCode){case 40:t.preventDefault(),a=(a+1)%i.length,i.eq(a).focus();break;case 38:t.preventDefault(),a=(a-1+i.length)%i.length,i.eq(a).focus();break;case 13:t.preventDefault(),n.length&&n.trigger("click");break;case 27:t.preventDefault(),r.remove(),jQuery(document).off("mousedown.nfTableContext keydown.nfTableContext"),e.focus()}}),setTimeout(function(){jQuery(document).on("mousedown.nfTableContext",function(e){jQuery(e.target).closest(".nf-table-context-menu").length||(r.remove(),jQuery(document).off("mousedown.nfTableContext keydown.nfTableContext"))})},0)}}},clickExtra:function(e){var t=jQuery(e.target).parent().find(".link-text"),i=jQuery(e.target).parent().find(".link-url"),n=jQuery(e.target).parent().find(".link-new-window");if(jQuery(e.target).hasClass("insert-link")){var r=t.val(),a=i.val(),l=!!n.prop("checked");if(0!=r.length&&0!=a.length&&this.currentContext.quill){var o=this.currentContext.quill,s=this.currentContext.range||o.getSelection(!0)||{index:0},d={link:a};l&&(d.target="_blank"),o.insertText(s.index,r,d),o.setSelection(s.index+r.length)}}t.val(""),i.val(""),n.prop("checked",!1),jQuery(e.target).closest(".nf-link-dropdown").remove()}})}),i("controllers/fieldStarRating",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("starrating"),"init:model",this.register),this.listenTo(nfRadio.channel("starrating"),"render:view",this.initRating)},register:function(e){e.set("renderRatings",this.renderRatings)},initRating:function(e){jQuery(e.el).find(".starrating").rating()},renderRatings:function(){for(var e=document.createElement("span"),t=0;t<=this.number_of_stars-1;t++){var i=nfRadio.channel("app").request("get:template","#tmpl-nf-field-starrating-star"),n=t+1,r="";this.value==n&&(r="checked");var a=i({id:this.id,classes:this.classes,num:n,checked:r,required:this.required});e.appendChild(document.createRange().createContextualFragment(a))}return e.innerHTML}})}),i("controllers/fieldTerms",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("terms"),"init:model",this.register)},register:function(e){this.listenTo(nfRadio.channel("field-"+e.get("id")),"click:extra",this.clickExtra),this.listenTo(nfRadio.channel("field-"+e.get("id")),"keyup:field",this.keyUpExtra)},clickExtra:function(e,t){var i=jQuery(e.currentTarget).parent().find(".extra-value").val();this.addOption(t,i)},keyUpExtra:function(e,t,i){13==i&&this.addOption(t,e.val())},addOption:function(e,t){if(t){var i={label:t,value:t,selected:0};e.get("options").push(i),e.get("value").push(t),e.trigger("reRender")}}})}),i("controllers/formContentFilters",[],function(){return Marionette.Object.extend({initialize:function(){this.viewFilters=[],this.loadFilters=[],nfRadio.channel("formContent").reply("add:viewFilter",this.addViewFilter,this),nfRadio.channel("formContent").reply("add:loadFilter",this.addLoadFilter,this),nfRadio.channel("formContent").reply("get:viewFilters",this.getViewFilters,this),nfRadio.channel("formContent").reply("get:loadFilters",this.getLoadFilters,this),nfRadio.channel("fieldContents").reply("add:viewFilter",this.addViewFilter,this),nfRadio.channel("fieldContents").reply("add:loadFilter",this.addLoadFilter,this),nfRadio.channel("fieldContents").reply("get:viewFilters",this.getViewFilters,this),nfRadio.channel("fieldContents").reply("get:loadFilters",this.getLoadFilters,this)},addViewFilter:function(e,t){this.viewFilters[t]=e},getViewFilters:function(){return this.viewFilters},addLoadFilter:function(e,t){this.loadFilters[t]=e},getLoadFilters:function(){return this.loadFilters}})}),i("views/fieldItem",[],function(){return Marionette.ItemView.extend({tagName:"div",initialize:function(){this.listenTo(this.model,"reRender",this.render,this),this.listenTo(this.model,"change:addWrapperClass",this.addWrapperClass,this),this.listenTo(this.model,"change:removeWrapperClass",this.removeWrapperClass,this),this.listenTo(this.model,"change:invalid",this.toggleAriaInvalid,this),this.template="#tmpl-nf-field-"+this.model.get("wrap_template")},test:function(e){console.log("firing from trigger 1")},addWrapperClass:function(){var e=this.model.get("addWrapperClass");""!=e&&(jQuery(this.el).addClass(e),this.model.set("addWrapperClass",""))},removeWrapperClass:function(){var e=this.model.get("removeWrapperClass");""!=e&&(jQuery(this.el).removeClass(e),this.model.set("removeWrapperClass",""))},toggleAriaInvalid:function(){var e=this.model.get("invalid");jQuery("[aria-invalid]",this.el).attr("aria-invalid",JSON.stringify(e))},onRender:function(){if(this.$el=this.$el.children(),this.$el.unwrap(),this.setElement(this.$el),void 0!==this.model.get("mask")&&""!=String(this.model.get("mask")).trim()){if("custom"==this.model.get("mask"))var e=this.model.get("custom_mask");else e=this.model.get("mask");if(Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Number.isInteger(e)&&(e=e.toString()),"currency"==e){var t=nfRadio.channel("app").request("get:form",this.model.get("formID")),i=t.get("thousands_sep");"&nbsp;"!=i&&160!=i.charCodeAt(0)||(i=" ");var n=jQuery("<div/>").html(t.get("currencySymbol")).text(),r={digitGroupSeparator:i=jQuery("<div/>").html(i).text(),decimalCharacter:jQuery("<div/>").html(t.get("decimal_point")).text(),currencySymbol:n,modifyValueOnWheel:!1},a=jQuery(jQuery(this.el).find(".nf-element")[0]);new AutoNumeric(jQuery(this.el).find(".nf-element")[0],r);var l=this;a.on("change",function(e){l.model.set("value",e.target.value)})}else{var o=jQuery(this.el).find(".nf-element");10===(e.match(/9/g)||[]).length&&o.off("input.nfPhoneAutofill").on("input.nfPhoneAutofill",function(){var e=this.value.replace(/\D/g,"");11===e.length&&"1"===e.charAt(0)&&(this.value=e.substring(1))}),o.mask(e)}}nfRadio.channel(this.model.get("type")).trigger("render:view",this),nfRadio.channel("fields").trigger("render:view",this)},templateHelpers:function(){var e=this;return{renderElement:function(){this.clean&&!this.value&&0===this.default&&(this.value="0");var e=_.find(this.element_templates,function(e){if(0<jQuery("#tmpl-nf-field-"+e).length)return!0});return nfRadio.channel("app").request("get:template","#tmpl-nf-field-"+e)(this)},renderLabel:function(){return nfRadio.channel("app").request("get:template","#tmpl-nf-field-label")(this)},renderLabelClasses:function(){var e="";return void 0!==this.customLabelClasses&&(e=this.customLabelClasses(e)),e},renderPlaceholder:function(){var e=this.placeholder;return void 0!==this.customPlaceholder&&(e=this.customPlaceholder(e)),""!=String(e).trim()?'placeholder="'+_.escape(e)+'"':""},renderWrapClass:function(){var e="field-wrap "+this.type+"-wrap";return this.type!==this.parentType&&(e=e+" "+this.parentType+"-wrap"),void 0!==this.old_classname&&0<String(this.old_classname).trim().length&&(e+=" "+this.old_classname+"-wrap"),"undefined"!=typeof customWrapClass&&(e=customWrapClass(e)),e},renderClasses:function(){var e=this.classes;return this.error?e+=" nf-error":e=e.replace("nf-error",""),void 0!==this.element_class&&0<String(this.element_class).trim().length&&(e+=" "+this.element_class),void 0!==this.customClasses&&(e=this.customClasses(e)),e},maybeFilterHTML:function(){return void 0!==nfFrontEnd.filter_esc_status?nfFrontEnd.filter_esc_status:"false"},maybeDisabled:function(){return 1==this.disable_input?"disabled":""},maybeRequired:function(){return 1==this.required?'aria-required="true" required':""},maybeDisableAutocomplete:function(){if(1==this.disable_browser_autocomplete)return'autocomplete="off"';if(this.custom_autocomplete&&""!==this.custom_autocomplete.trim())return'autocomplete="'+this.custom_autocomplete.trim()+'"';return'autocomplete="'+this.translateAutoCompletionType(this.type)+'"'},translateAutoCompletionType:function(e){switch(e){case"address":return"street-address";case"address2":return"address-line2";case"city":return"address-level2";case"email":return"email";case"firstname":return"given-name";case"lastname":return"family-name";case"zip":return"postal-code";case"phone":return"tel";default:return"on"}},maybeInputLimit:function(){return"characters"==this.input_limit_type&&""!=String(this.input_limit).trim()?'maxlength="'+this.input_limit+'"':""},getHelpText:function(){return void 0!==this.help_text?this.help_text:""},maybeRenderHelp:function(){var e=document.createElement("p");e.innerHTML=this.help_text;var t=!1;if((0!=String(jQuery(e).text()).trim().length||0<jQuery(e).find("img").length)&&(t=!0),void 0!==this.help_text&&t){var i=document.createElement("span");i.classList.add("fa","fa-info-circle","nf-help"),i.setAttribute("data-text",this.getHelpText()),i.setAttribute("tabindex","0"),i.setAttribute("aria-describedby","hidden-help-text-"+this.id);var n=document.createElement("span");return n.textContent=this.help_text.replace(/<\/?[^>]+(>|$)/g,"").trim(),n.id="hidden-help-text-"+this.id,n.classList.add("nf-sr-only"),n.setAttribute("role","tooltip"),i.appendChild(n),i.outerHTML}return""},renderDescText:function(){if(void 0===this.desc_text)return"";var e,t,i,n,r=document.createElement("p");return r.innerHTML=this.desc_text,0==String(r.innerText).trim().length?"":(t=document.createTextNode(this.desc_text),(e=document.createElement("p")).appendChild(t),0!=String(jQuery(e).text()).trim().length?(i=document.createRange().createContextualFragment(this.desc_text),(n=document.createElement("div")).classList.add("nf-field-description"),n.setAttribute("aria-hidden","true"),n.setAttribute("id","nf-description-"+this.id),n.appendChild(i),n.outerHTML):"")},renderNumberDefault:function(){return this.clean?0===this.default||this.default?this.default:this.placeholder?"":this.value:this.value},renderCurrencyFormatting:function(t){var i=t.toString().replace(".","||").replace(/\B(?=(\d{3})+(?!\d))/g,nfi18n.thousands_sep).replace("||",nfi18n.decimal_point);return nfRadio.channel("app").request("get:form",e.model.get("formID")).get("settings").currency_symbol+i},maybeRenderTime:function(){return"time_only"==this.date_mode||"date_and_time"==this.date_mode}}},events:{"change .nf-element":"fieldChange","keyup .nf-element":"fieldKeyup","click .nf-element":"fieldClick","click .extra":"extraClick","change .extra":"extraChange","blur .nf-element":"fieldBlur"},fieldChange:function(e){var t=jQuery(e.currentTarget);if(!t.attr("data-react-managed"))nfRadio.channel("nfAdmin").request("change:field",t,this.model)},fieldKeyup:function(e){var t=jQuery(e.currentTarget),i=e.keyCode;nfRadio.channel("field-"+this.model.get("id")).trigger("keyup:field",t,this.model,i),nfRadio.channel(this.model.get("type")).trigger("keyup:field",t,this.model,i),nfRadio.channel("fields").trigger("keyup:field",t,this.model,i)},fieldClick:function(e){var t=jQuery(e.currentTarget);nfRadio.channel("field-"+this.model.get("id")).trigger("click:field",t,this.model),nfRadio.channel(this.model.get("type")).trigger("click:field",t,this.model),nfRadio.channel("fields").trigger("click:field",t,this.model)},extraClick:function(e){nfRadio.channel("field-"+this.model.get("id")).trigger("click:extra",e,this.model),nfRadio.channel(this.model.get("type")).trigger("click:extra",e,this.model),nfRadio.channel("fields").trigger("click:extra",e,this.model)},extraChange:function(e){nfRadio.channel("field-"+this.model.get("id")).trigger("change:extra",e,this.model),nfRadio.channel(this.model.get("type")).trigger("change:extra",e,this.model),nfRadio.channel("fields").trigger("change:extra",e,this.model)},fieldBlur:function(e){var t=jQuery(e.currentTarget);nfRadio.channel("field-"+this.model.get("id")).trigger("blur:field",t,this.model),nfRadio.channel(this.model.get("type")).trigger("blur:field",t,this.model),nfRadio.channel("fields").trigger("blur:field",t,this.model)},onAttach:function(){nfRadio.channel(this.model.get("type")).trigger("attach:view",this)}})}),i("views/beforeField",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-before"})}),i("views/fieldErrorItem",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-error",onRender:function(){this.$el=this.$el.children(),this.$el.unwrap(),this.setElement(this.$el)}})}),i("views/fieldErrorCollection",["views/fieldErrorItem"],function(e){return Marionette.CollectionView.extend({tagName:"nf-errors",childView:e,initialize:function(e){this.fieldModel=e.fieldModel},onRender:function(){0==this.fieldModel.get("errors").models.length?(this.fieldModel.removeWrapperClass("nf-error"),this.fieldModel.removeWrapperClass("nf-fail"),this.fieldModel.addWrapperClass("nf-pass"),this.fieldModel.setInvalid(!1)):(this.fieldModel.removeWrapperClass("nf-pass"),this.fieldModel.addWrapperClass("nf-fail"),this.fieldModel.addWrapperClass("nf-error"),this.fieldModel.setInvalid(!0))}})}),i("views/inputLimit",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-input-limit",initialize:function(){this.listenTo(nfRadio.channel("field-"+this.model.get("id")),"keyup:field",this.updateCount),this.count=this.model.get("input_limit"),this.render()},updateCount:function(e,t){var i=jQuery(e).val(),n=String(i).trim().replace(/\s+/gi," ").split(" "),r=n.length,a=i.length;if("characters"==this.model.get("input_limit_type")||"char"==this.model.get("input_limit_type"))jQuery(e).attr("maxlength",this.model.get("input_limit")),this.count=this.model.get("input_limit")-a;else{this.count=this.model.get("input_limit")-r;var l=this.model.get("input_limit");r>l&&jQuery(e).val(n.slice(0,l).join(" "))}this.render()},templateHelpers:function(){var e=this;return{currentCount:function(){return e.count}}}})}),i("views/afterField",["views/fieldErrorCollection","views/inputLimit"],function(e,t){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-field-after",initialize:function(){this.model.on("change:errors",this.changeError,this)},onRender:function(){var i=jQuery(this.el).children(".nf-error-wrap");if(this.errorCollectionView=new e({el:i,collection:this.model.get("errors"),fieldModel:this.model}),0<this.model.get("errors").length&&this.errorCollectionView.render(),void 0!==this.model.get("input_limit")&&""!=String(this.model.get("input_limit")).trim()){var n=jQuery(this.el).children(".nf-input-limit");this.inputLimitView=new t({el:n,model:this.model}),n.attr("aria-live","polite"),n.attr("role","status"),n.attr("aria-relevant","additions"),n.attr("aria-atomic",!0)}},changeError:function(){this.errorCollectionView.render()}})}),i("views/fieldRepeaterFieldLayout",["views/fieldItem","views/beforeField","views/afterField"],function(e,t,i){return Marionette.LayoutView.extend({tagName:"nf-field",regions:{beforeField:".nf-before-field",field:".nf-field",afterField:".nf-after-field"},initialize:function(){this.listenTo(this.model,"change:visible",this.render,this)},getTemplate:function(){return this.model.get("visible")?"#tmpl-nf-field-layout":"#tmpl-nf-empty"},onRender:function(){this.model.get("visible")&&(this.beforeField.show(new t({model:this.model})),this.field.show(new e({model:this.model})),this.afterField.show(new i({model:this.model})))},templateHelpers:function(){return{renderContainerClass:function(){var e=" label-"+this.label_pos+" ";return void 0!==this.desc_pos&&(e+="desc-"+this.desc_pos+" "),void 0!==this.container_class&&0<String(this.container_class).trim().length&&(e+=this.container_class+" "),this.type!==this.parentType&&(e+=" "+this.parentType+"-container"),e}}}})}),i("views/fieldRepeaterFieldCollection",["views/fieldRepeaterFieldLayout"],function(e){return Marionette.CollectionView.extend({tagName:"nf-fields-wrap",childView:e})}),i("views/fieldRepeaterSetLayout",["views/fieldRepeaterFieldCollection"],function(e){return Marionette.LayoutView.extend({tagName:"fieldset",template:"#tmpl-nf-field-repeater-set",regions:{fields:".nf-repeater-fieldset"},onRender:function(){this.fields.show(new e({collection:this.model.get("fields")}))},templateHelpers:function(){return{maybeFilterHTML:function(){return void 0!==nfFrontEnd.filter_esc_status?nfFrontEnd.filter_esc_status:"false"}}},events:{"click .nf-remove-fieldset":"removeSet"},removeSet:function(){nfRadio.channel("field-repeater").trigger("remove:fieldset",this.model)}})}),i("views/fieldRepeaterSetCollection",["views/fieldRepeaterSetLayout"],function(e){return Marionette.CollectionView.extend({tagName:"div",childView:e})}),i("views/fieldRepeaterLayout",["views/fieldRepeaterSetCollection"],function(e){return Marionette.LayoutView.extend({tagName:"div",template:"#tmpl-nf-field-repeater",regions:{sets:".nf-repeater-fieldsets"},initialize:function(){this.collection=this.model.get("sets"),this.listenTo(nfRadio.channel("field-repeater"),"rerender:fieldsets",this.render)},onRender:function(){this.sets.show(new e({collection:this.collection}))},templateHelpers:function(){return{maybeFilterHTML:function(){return void 0!==nfFrontEnd.filter_esc_status?nfFrontEnd.filter_esc_status:"false"},renderDescText:function(){if(void 0===this.desc_text)return"";var e,t,i,n,r=document.createElement("p");return r.innerHTML=this.desc_text,0==String(r.innerText).trim().length?"":(t=document.createTextNode(this.desc_text),(e=document.createElement("p")).appendChild(t),0!=String(jQuery(e).text()).trim().length?(i=document.createRange().createContextualFragment(this.desc_text),(n=document.createElement("div")).classList.add("nf-field-description"),n.appendChild(i),n.outerHTML):"")}}},events:{"click .nf-add-fieldset":"addSet"},addSet:function(){nfRadio.channel("field-repeater").trigger("add:fieldset",this.model.id)},beforeSubmit:function(){this.collection.beforeSubmit(this.model.get("sets"))}})}),i("views/fieldLayout",["views/fieldItem","views/beforeField","views/afterField","views/fieldRepeaterLayout"],function(e,t,i,n){return Marionette.LayoutView.extend({tagName:"nf-field",regions:{beforeField:".nf-before-field",field:".nf-field",afterField:".nf-after-field"},initialize:function(){this.listenTo(this.model,"change:visible",this.render,this)},getTemplate:function(){return this.model.get("visible")?"#tmpl-nf-field-layout":"#tmpl-nf-empty"},onRender:function(){this.model.get("visible")&&("repeater"==this.model.get("type")?this.field.show(new n({model:this.model})):(this.beforeField.show(new t({model:this.model})),this.field.show(new e({model:this.model})),this.afterField.show(new i({model:this.model}))))},templateHelpers:function(){return{renderContainerClass:function(){var e=" label-"+this.label_pos+" ";return void 0!==this.desc_pos&&(e+="desc-"+this.desc_pos+" "),void 0!==this.container_class&&0<String(this.container_class).trim().length&&(e+=this.container_class+" "),this.type!==this.parentType&&(e+=" "+this.parentType+"-container"),e}}}})}),i("controllers/loadViews",["views/fieldItem","views/fieldLayout"],function(e,t){return Marionette.Object.extend({initialize:function(){nfRadio.channel("views").reply("get:fieldItem",this.getFieldItem),nfRadio.channel("views").reply("get:fieldLayout",this.getFieldLayout)},getFieldItem:function(t){return e},getFieldLayout:function(){return t}})}),i("controllers/formErrors",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"add:error",this.addError),this.listenTo(nfRadio.channel("fields"),"remove:error",this.removeError),nfRadio.channel("form").reply("get:errors",this.getFormErrors)},addError:function(e,t,i){var n=nfRadio.channel("app").request("get:form",e.get("formID"));void 0===n.get("fieldErrors")[e.get("id")]&&(n.get("fieldErrors")[e.get("id")]={}),n.get("fieldErrors")[e.get("id")][t]=i,nfRadio.channel("form-"+e.get("formID")).request("add:error","field-errors",n.get("settings").formErrorsCorrectErrors)},removeError:function(e,t){var i=nfRadio.channel("app").request("get:form",e.get("formID"));i.get("fieldErrors")[e.get("id")]=_.omit(i.get("fieldErrors")[e.get("id")],t),0==_.size(i.get("fieldErrors")[e.get("id")])&&delete i.get("fieldErrors")[e.get("id")],0==_.size(i.get("fieldErrors"))&&nfRadio.channel("form-"+e.get("formID")).request("remove:error","field-errors")},getFormErrors:function(e){var t=nfRadio.channel("app").request("get:form",e),i=!1;return t&&0!==t.get("errors").length&&_.each(t.get("errors").models,function(e){(i=i||{})[e.get("id")]=e.get("msg")}),i}})}),i("controllers/submit",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"init:model",this.registerSubmitHandler)},registerSubmitHandler:function(e){nfRadio.channel("form-"+e.get("id")).reply("submit",this.submit)},submit:function(e){nfRadio.channel("forms").trigger("before:submit",e),nfRadio.channel("form-"+e.get("id")).trigger("before:submit",e);var t=nfRadio.channel("forms").request("maybe:validate",e);if(!1!==t&&(_.each(e.get("fields").models,function(e){e.set("clean",!1)}),e.get("formContentData").validateFields()),0==nfRadio.channel("form-"+e.get("id")).request("maybe:submit",e))return nfRadio.channel("forms").trigger("submit:cancel",e),void nfRadio.channel("form-"+e.get("id")).trigger("submit:cancel",e);if(!1!==t){var i=_.filter(e.get("errors").models,function(e){return"invalid_email"!=e.get("id")&&"email_not_sent"!=e.get("id")});if(0!=_.size(i))return nfRadio.channel("forms").trigger("submit:failed",e),nfRadio.channel("form-"+e.get("id")).trigger("submit:failed",e),!1}nfRadio.channel("forms").trigger("after:submitValidation",e),nfRadio.channel("form-"+e.get("id")).trigger("after:submitValidation",e);var n=e.get("id"),r={};_.each(e.get("fields").models,function(e){var t={value:e.get("value"),id:e.get("id")};r[e.get("id")]=nfRadio.channel(e.get("type")).request("get:submitData",t,e)||t});var a=e.get("extra"),l=e.get("settings");delete l.formContentData;var o=JSON.stringify({id:n,fields:r,settings:l,extra:a}),s={action:"nf_ajax_submit",security:nfFrontEnd.ajaxNonce,nonce_ts:nfFrontEnd.nonce_ts,formData:o};jQuery.ajax({url:nfFrontEnd.adminAjax,type:"POST",data:s,cache:!1,success:function(t,i,n){try{var r=t;nfRadio.channel("forms").trigger("submit:response",r,i,n,e.get("id")),nfRadio.channel("form-"+e.get("id")).trigger("submit:response",r,i,n),jQuery(document).trigger("nfFormSubmitResponse",{response:r,id:e.get("id")})}catch(e){console.log(e),console.log("Parse Error"),console.log(e)}},error:function(t,i,n){console.log("ERRORS: "+n),console.log(t);try{var r=jQuery.parseJSON(t.responseText);nfRadio.channel("forms").trigger("submit:response",r,i,t,e.get("id")),nfRadio.channel("form-"+e.get("id")).trigger("submit:response",r,i,t)}catch(i){console.log("Parse Error: "+t.responseText),nfRadio.channel("form-"+e.get("id")).request("add:error","parse-response-ERROR",n)}}})}})}),i("views/fieldCollection",["views/fieldLayout"],function(e){return Marionette.CollectionView.extend({tagName:"nf-fields-wrap",childView:e})}),i("controllers/defaultFilters",["views/fieldCollection","models/fieldCollection"],function(e,t){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("form"),"before:filterData",this.registerDefaultDataFilter)},registerDefaultDataFilter:function(e){nfRadio.channel("formContent").request("add:loadFilter",this.defaultFormContentLoad,10,this),nfRadio.channel("formContent").request("add:viewFilter",this.defaultFormContentView,10,this)},defaultFormContentLoad:function(e,i,n){var r=i.get("fields"),a=nfRadio.channel("formContent").request("get:loadFilters");if(1==_.without(a,void 0).length||void 0===e||!0==e instanceof Backbone.Collection)return i.get("fields");var l=_.map(e,function(e){return i.get("fields").findWhere({key:e})},this),o=new t(l);return r.on("reset",function(e){var t=[];o.each(function(i){"submit"!=i.get("type")?t.push(e.findWhere({key:i.get("key")})):t.push(i)}),o.options={formModel:i},o.reset(t)}),o},defaultFormContentView:function(){return e}})}),i("controllers/uniqueFieldError",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("fields"),"change:modelValue",this.removeError),this.listenTo(nfRadio.channel("fields"),"keyup:field",this.removeError),this.listenTo(nfRadio.channel("fields"),"blur:field",this.removeError)},removeError:function(e,t){t=t||e,nfRadio.channel("fields").request("remove:error",t.get("id"),"unique_field")}})});let n=[];i("models/fieldRepeaterSetModel",[],function(){return Backbone.Model.extend({initialize:function(e,t){this.repeaterFieldModel=t.repeaterFieldModel,this.set("label",this.repeaterFieldModel.get("label")),e&&t&&this.initAllRepeaterFieldsModels(e,t),nfRadio.channel("field-repeater").reply("get:repeaterFields",this.getRepeaterFields,this),nfRadio.channel("field-repeater").reply("get:repeaterFieldById",this.getRepeaterFieldById,this),nfRadio.channel("field-repeater").reply("get:repeaterModels",this.getAllRepeaterFieldsModels,this),nfRadio.channel("field-repeater").reply("get:repeaterFieldsetsByForm",this.getAllFieldsetsByForm,this),nfRadio.channel("field-repeater").reply("get:repeaterFieldsModelsArrayByForm",this.getAllFieldsModelsArrayByForm,this),this.listenTo(nfRadio.channel("field-repeater"),"set:repeaterModels",this.setAllRepeaterFieldsModels),this.listenTo(nfRadio.channel("field-repeater"),"set:value",this.setAllRepeatersValues)},setAllRepeaterFieldsModels:function(){this.set("repeaterFieldsetsModels",n),this.allRepeatersFieldsetsModels=n},initAllRepeaterFieldsModels:function(e,t){const i=t.repeaterFieldModel.get("formID"),r=t.repeaterFieldModel.get("id"),a=e.fields.models;let l=n.find(e=>e.id===r&&e.form===i);l?l.fields=l.fields.concat(a):n.push({form:i,id:r,fields:a}),this.setAllRepeaterFieldsModels()},getAllRepeaterFieldsModels:function(){return n},getAllFieldsetsByForm:function(e){const t=this.getAllRepeaterFieldsModels().filter(t=>t.form===e);return t},getAllFieldsModelsArrayByForm:function(e){const t=this.getAllFieldsetsByForm(e);let i=[];return t.map(e=>{i=i.concat(e.fields)}),i},getRepeaterFields:function(e){const t=this.getAllRepeaterFieldsModels();let i=t.find(t=>String(t.id)===String(e));return void 0===i&&(i=this.reverseResearchFieldsetModel(e,t)),i},reverseResearchFieldsetModel:function(e,t){let i;return _.each(t,function(t){_.each(t.fields,function(n){String(n.id).startsWith(e)&&(i=t)})}),i},getRepeaterFieldById:function(e){const t=String(e).split(".")[0],i=this.getRepeaterFields(t);if(void 0===i)return;return i.fields.find(t=>t.id===e)},setAllRepeatersValues:function(){const e=this.getAllRepeaterFieldsModels();e.length>0&&_.each(e,function(e){let t=e.fields,i=nfRadio.channel("fields").request("get:field",e.id);if(t.length>0){let e={};_.each(t,function(t){let i=t.get("value"),n=t.get("id");if(n.split("_").length>2){let t=n.split("_");t[1]=t[1].split(".")[1];let i=t[0]+"."+t[1]+"_"+t[2];delete e[n],n=i}e[n]={value:i,id:n},"date"!==t.get("type")||"string"!=typeof i||"date_and_time"!==t.get("date_mode")&&"time_only"!==t.get("date_mode")||(e[n].value={date:i,hour:t.attributes.selected_hour,minute:t.attributes.selected_minute,ampm:t.attributes.selected_ampm}),"file_upload"===t.get("type")&&t.get("value")&&(e[n].files=t.attributes.files)}),i.set("isUpdated",!1),nfRadio.channel("nfAdmin").request("update:field",i,e)}})}})}),i("models/fieldRepeaterSetCollection",["models/fieldRepeaterSetModel","models/fieldCollection"],function(e,t){return Backbone.Collection.extend({model:e,initialize:function(e,t){this.options=t,this.listenTo(nfRadio.channel("field-repeater"),"sort:fieldsets",this.sortIDs),this.listenTo(nfRadio.channel("field-repeater"),"remove:fieldset",this.removeSet),this.listenTo(nfRadio.channel("field-repeater"),"add:fieldset",this.addSet),nfRadio.channel("field-repeater").reply("get:fieldsets",this.getFieldSets,this)},addSet:function(e=!1){let i;if(e){const n=this.options.repeaterFieldModel.id===e&&this.options.repeaterFieldModel;if(i=n,n){let e=new t(this.options.templateFields,{formModel:this.options.formModel,repeaterFieldModel:n});this.add({fields:e},{repeaterFieldModel:n})}}this.sortIDs(),nfRadio.channel("field-repeater").trigger("fieldset:added",i)},removeSet:function(e){this.removeRequiredFieldsErrors(e);const t=e.repeaterFieldModel.get("formID"),i=e.repeaterFieldModel.get("id"),r=n.find(e=>e.id===i&&e.form===t);if(r){let t=[];_.each(r.fields,(i,n)=>{void 0!==i&&_.each(e.get("fields").models,n=>{const r=void 0!==i.id?i.id:i.get("id");n.id===r&&(delete e.repeaterFieldModel.get("value")[n.id],t.push(r))})}),r.fields=_.reject(r.fields,e=>void 0===e||!!t.includes(e.id)),nfRadio.channel("field-repeater").trigger("set:repeaterModels")}this.remove(e),e.destroy(),this.sortIDs(),nfRadio.channel("field-repeater").trigger("set:value")},removeRequiredFieldsErrors:function(e){let t=e.get("fields");_.each(t.models,function(e){nfRadio.channel("fields").request("remove:error",e.get("id"),"required-error")})},getFieldsets:function(){return this.models},checkTimeField:function(e){const t=e.get("id"),i=document.getElementById("hour-select-"+t),n=document.getElementById("minute-select-"+t),r=0===e.attributes.hours_24?"12":"00";if(!i||!n)return;n.value=void 0!==e.attributes.selected_minute?e.attributes.selected_minute:"00",i.value=void 0!==e.attributes.selected_hour?e.attributes.selected_hour:r;const a=document.getElementById("nf-field-"+t+"-wrap").querySelector("#ampm-select");a&&(a.value=void 0!==e.attributes.selected_ampm?e.attributes.selected_ampm:"am")},sortIDs:function(){const e=this.getFieldsets(),t=[];_.each(e,function(e,i){let n=e.get("fields");e.set("index",i+1),_.each(n.models,function(e){const n=String(e.id).split("_")[0],r=String(n).split(".").length>1&&String(n).split(".").pop();if(!r)return;const a=e.collection.options.repeaterFieldModel.id+"."+r+"_"+i;e.set("id",a);var l=e.get("originalKey")||e.get("key")||"";l&&!e.get("originalKey")&&e.set("originalKey",l,{silent:!0}),l&&e.set("key",l+"_"+i,{silent:!0}),"date"!==e.get("type")||"date_and_time"!==e.get("date_mode")&&"time_only"!==e.get("date_mode")||t.push(e)})}),nfRadio.channel("field-repeater").trigger("rerender:fieldsets"),t.forEach(e=>{this.checkTimeField(e)})}})}),i("controllers/fieldRepeater",["models/fieldRepeaterSetCollection","models/fieldCollection"],function(e,t){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("repeater"),"init:model",this.initRepeater)},initRepeater:function(i){if(void 0===i.collection.options.formModel)return!1;var n=i.get("fields");n&&n.length&&_.each(n,function(e){if(!e.key||""===String(e.key).trim()){var t=new Date;e.key=(e.type||"field")+"_"+t.valueOf()}});let r=new t(n,{formModel:i.collection.options.formModel,repeaterFieldModel:i});i.set("sets",new e([{fields:r}],{templateFields:i.get("fields"),formModel:i.collection.options.formModel,repeaterFieldModel:i})),nfRadio.channel("field-repeater").trigger("sort:fieldsets")}})}),i("controllers/actionGA",[],function(){return Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.actionSendGaEvent)},actionSendGaEvent:function(e){void 0!==e.data.actions&&void 0!==e.data.actions.googleanalytics&&e.data.actions.googleanalytics.forEach(t=>{const i=t.event_name;if(void 0!==i)if(void 0!==t.method_type&&"ga4"===t.method_type)if("function"==typeof gtag){const t={event_category:"form_submit",event_label:"ninja_forms_submit",form_id:e.data.form_id};gtag("event",i,t)}else"object"==typeof dataLayer?console.warn("gtag isn't defined. But GTM was detected, did you mean to use GTM in the action settings?"):console.warn("gtag isn't defined. Please make sure you have GA4 installed on your site.");else if(void 0!==t.method_type&&"gtm"===t.method_type)if("object"==typeof dataLayer){const t={event:i,event_category:"form_submit",event_label:"ninja_forms_submit",form_id:e.data.form_id};dataLayer.push(t)}else"function"==typeof gtag?console.warn("GTM isn't defined. But GA4 was detected, did you mean to use GA4 in the action settings?"):console.warn("GTM isn't defined. Please make sure you have GTM installed on your site.");else console.warn("GTM and gtag aren't defined. Please make sure you have GTM or GA4 installed on your site.");else console.warn("No event name defined in the GA4 action settings. Please define an event name.")})}})}),i("controllers/loadControllers",["controllers/formData","controllers/fieldError","controllers/changeField","controllers/changeEmail","controllers/changeDate","controllers/fieldCheckbox","controllers/fieldCheckboxList","controllers/fieldImageList","controllers/fieldRadio","controllers/fieldNumber","controllers/mirrorField","controllers/confirmField","controllers/updateFieldModel","controllers/submitButton","controllers/submitDebug","controllers/getFormErrors","controllers/validateRequired","controllers/submitError","controllers/actionRedirect","controllers/actionSuccess","controllers/fieldSelect","controllers/coreSubmitResponse","controllers/fieldProduct","controllers/fieldTotal","controllers/fieldQuantity","controllers/calculations","controllers/dateBackwardsCompat","controllers/fieldDate","controllers/fieldRecaptcha","controllers/fieldRecaptchaV3","controllers/fieldTurnstile","controllers/fieldHcaptcha","controllers/fieldHTML","controllers/helpText","controllers/fieldTextbox","controllers/fieldTextareaRTE","controllers/fieldStarRating","controllers/fieldTerms","controllers/formContentFilters","controllers/loadViews","controllers/formErrors","controllers/submit","controllers/defaultFilters","controllers/uniqueFieldError","controllers/fieldRepeater","controllers/actionGA"],function(e,t,i,n,r,a,l,o,s,d,c,f,u,h,m,g,p,v,y,b,R,_,w,x,F,k,T,C,M,j,q,D,E,Q,S,I,O,V,L,A,N,z,H,B,P,Y){return Marionette.Object.extend({initialize:function(){new A,new N,new z,new a,new l,new o,new s,new d,new R,new w,new x,new F,new M,new j,new q,new D,new E,new Q,new S,new I,new O,new V,new L,new B,new P,new t,new i,new n,new r,new c,new f,new u,new h,new m,new g,new p,new v,new y,new b,new Y,new _,new k,new H,new T,new C,new e}})}),i("views/beforeForm",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-before-form"})}),i("views/formErrorItem",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-form-error",onRender:function(){}})}),i("views/formErrorCollection",["views/formErrorItem"],function(e){return Marionette.CollectionView.extend({tagName:"nf-errors",childView:e})}),i("views/honeyPot",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-form-hp",events:{"keyup .nf-field-hp":"maybeError","change .nf-field-hp":"maybeError"},maybeError:function(e){if(0==jQuery(e.target).val().length)nfRadio.channel("form-"+this.model.get("id")).request("remove:error","honeyPot");else{var t=nfRadio.channel("app").request("get:form",this.model.get("id"));nfRadio.channel("form-"+this.model.get("id")).request("add:error","honeyPot",t.get("settings").honeypotHoneypotError)}}})}),i("views/afterFormContent",["views/formErrorCollection","views/honeyPot"],function(e,t){return Marionette.LayoutView.extend({tagName:"nf-section",template:"#tmpl-nf-after-fields",regions:{errors:".nf-form-errors",hp:".nf-form-hp"},onShow:function(){this.errors.show(new e({collection:this.model.get("errors")})),this.hp.show(new t({model:this.model}))}})}),i("views/beforeFormContent",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-before-fields",templateHelpers:function(){return{renderFieldsMarkedRequired:function(){return this.fields.filter({required:1}).length?this.fieldsMarkedRequired:""}}}})}),i("views/formLayout",["views/afterFormContent","views/beforeFormContent","models/fieldCollection"],function(e,t,i){return Marionette.LayoutView.extend({tagName:"nf-section",template:"#tmpl-nf-form-layout",regions:{beforeFormContent:".nf-before-form-content",formContent:".nf-form-content",afterFormContent:".nf-after-form-content"},initialize:function(){nfRadio.channel("form-"+this.model.get("id")).reply("get:el",this.getEl,this),this.listenTo(this.model,"hide",this.hide)},onRender:function(){this.$el=this.$el.children(),this.$el.unwrap(),this.setElement(this.$el)},onShow:function(){this.beforeFormContent.show(new t({model:this.model}));var i=this.model.get("formContentData"),n=nfRadio.channel("formContent").request("get:viewFilters"),r=_.without(n,void 0),a=_.first(r);formContentView=a();var l={data:i,formModel:this.model};!1!=i instanceof Backbone.Collection?l.collection=i:!1!=i instanceof Backbone.Model&&(l.model=i),this.formContent.show(new formContentView(l)),this.afterFormContent.show(new e({model:this.model}))},getEl:function(){return this.el},templateHelpers:function(){return{renderClasses:function(){return""}}},hide:function(){jQuery(this.el).hide()}})}),i("views/afterForm",[],function(){return Marionette.ItemView.extend({tagName:"nf-section",template:"#tmpl-nf-after-form"})}),i("views/mainLayout",["views/beforeForm","views/formLayout","views/afterForm"],function(e,t,i){return Marionette.LayoutView.extend({template:"#tmpl-nf-layout",regions:{responseMsg:".nf-response-msg",beforeForm:".nf-before-form",formLayout:".nf-form-layout",afterForm:".nf-after-form"},initialize:function(){this.$el=jQuery("#nf-form-"+this.model.id+"-cont"),this.el="#nf-form-"+this.model.id+"-cont",this.render(),this.beforeForm.show(new e({model:this.model})),this.formLayout.show(new t({model:this.model,fieldCollection:this.options.fieldCollection})),this.afterForm.show(new i({model:this.model})),this.listenTo(this.model,"hide",this.hide)},hide:function(){jQuery(this.el).find(".nf-form-title").hide()}})});var r=function(e,t,i){void 0!==e&&0<e.length?this.locale=e.split("_").join("-"):this.locale="en-US",this.thousands_sep=t||",",this.decimal_sep=i||".",this.uniqueElememts=function(e,t,i){return i.indexOf(e)===t},this.numberDecoder=function(e){var t="",i=!1;"-"===(e=e.toString()).charAt(0)&&(i=!0,e=e.replace("-",""));var n=(e=(e=e.replace(/\s/g,"")).replace(/&nbsp;/g,"")).split("").filter(function(e){return!e.match(/[0-9]/)}),r=n.filter(this.uniqueElememts);switch(r.length){case 0:t=e;break;case 1:var a="";if(1==n.length)separator=n.pop(),a=3==e.split(separator).pop().length&&separator==this.thousands_sep?"":".";else separator=r.pop();t=e.split(separator).join(a);break;case 2:var l,o=r[0];l="."===o?new RegExp("[.]","g"):new RegExp(o,"g"),t=e.replace(l,"");var s,d=r[1];s="."===d?new RegExp("[.]","g"):new RegExp(d,"g"),t=t.replace(s,".");break;default:return"NaN"}return i&&(t="-"+t),this.debug("Number Decoder "+e+" -> "+t),t},this.numberEncoder=function(e,t){e=this.numberDecoder(e);var i=void 0!==t?{minimumFractionDigits:t,maximumFractionDigits:t}:{maximumFractionDigits:20};return Intl.NumberFormat(this.locale,i).format(e)},this.debug=function(e){window.nfLocaleConverterDebug&&console.log(e)}};i("../nfLocaleConverter",function(){}),void 0!==nfInlineVars.nfForms&&(window.nfForms=nfInlineVars.nfForms),function(e){var t=e.fn.val;e.fn.val=function(){var i;arguments.length>0&&(i=t.apply(this,[]));var n=t.apply(this,arguments);return arguments.length>0&&i!=t.apply(this,[])&&e(this).hasClass("nf-element")&&!e(this).attr("data-react-managed")&&e(this).change(),n}}(jQuery),document.addEventListener("DOMContentLoaded",function(){t(["models/formCollection","models/formModel","models/fieldCollection","controllers/loadControllers","views/mainLayout","../nfLocaleConverter"],function(e,t,i,n,a){if("undefined"!=typeof nfForms){var l=Marionette.Application.extend({forms:{},initialize:function(e){var t=this;Marionette.Renderer.render=function(e,i){return(e=t.template(e))(i)},this.urlParameters=_.object(_.compact(_.map(location.search.slice(1).split("&"),function(e){if(e)return e.split("=")}))),void 0!==this.urlParameters.nf_resume&&this.listenTo(nfRadio.channel("form-"+this.urlParameters.nf_resume),"loaded",this.restart),nfRadio.channel("app").reply("locale:decodeNumber",this.decodeNumber),nfRadio.channel("app").reply("locale:encodeNumber",this.encodeNumber);new n;nfRadio.channel("app").trigger("after:loadControllers"),nfRadio.channel("app").reply("get:template",this.template)},onStart:function(){var e=nfRadio.channel("app").request("get:forms");_.each(e.models,function(e,t){var i=new a({model:e,fieldCollection:e.get("fields")});nfRadio.channel("form").trigger("render:view",i),jQuery(document).trigger("nfFormReady",i)})},restart:function(e){if(void 0!==this.urlParameters.nf_resume){var t={action:"nf_ajax_submit",security:nfFrontEnd.ajaxNonce,nf_resume:this.urlParameters};nfRadio.channel("form-"+e.get("id")).trigger("disable:submit"),nfRadio.channel("form-"+e.get("id")).trigger("processingLabel"),this.listenTo(nfRadio.channel("form"),"render:view",function(){jQuery("#nf-form-"+e.get("id")+"-cont .nf-field-container:not(.submit-container)").hide()}),jQuery.ajax({url:nfFrontEnd.adminAjax,type:"POST",data:t,cache:!1,success:function(t,i,n){try{var r=t;nfRadio.channel("forms").trigger("submit:response",r,i,n,e.get("id")),nfRadio.channel("form-"+e.get("id")).trigger("submit:response",r,i,n)}catch(e){console.log("Parse Error")}},error:function(e,t,i){console.log("ERRORS: "+t),nfRadio.channel("forms").trigger("submit:response","error",t,e,i)}})}},template:function(e){return e.startsWith("script")||(e="script"+e),_.template(jQuery(e).html(),{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"})},encodeNumber:function(e){return new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point).numberEncoder(e)},decodeNumber:function(e){return new r(nfi18n.siteLocale,nfi18n.thousands_sep,nfi18n.decimal_point).numberDecoder(e)}});(new l).start()}else jQuery(".nf-form-cont").empty()})}),i("main",function(){})}();
!function(t){woodmartThemeModule.woocommerceComments=function(){var o=window.location.hash,e=window.location.href;!document.querySelector(".wd-hidden-tab-title")&&(0<=o.toLowerCase().indexOf("comment-")||"#reviews"===o||"#tab-reviews"===o||0<e.indexOf("comment-page-")||0<e.indexOf("cpage=")||"#tab-wd_additional_tab"===o||"#tab-wd_custom_tab"===o)&&(setTimeout(function(){window.scrollTo(0,0)},1),t(".single-product-page").hasClass("reviews-location-separate")&&("#reviews"===o||"#tab-reviews"===o||0<=o.toLowerCase().indexOf("comment-")||0<e.indexOf("comment-page-")||0<e.indexOf("cpage="))&&woodmartThemeModule.$body.find(".wc-tabs, ul.tabs").first().find("li:first a").click(),setTimeout(function(){var e;0<t(o).length&&((e=t(".woocommerce-tabs a[href="+o+"]")).length&&e.trigger("click"),setTimeout(function(){t("html, body").stop().animate({scrollTop:t(o).offset().top-woodmart_settings.ajax_scroll_offset},400)},400))},10)),t(".wd-builder-on .woocommerce-review-link").on("click",function(){var e=t(".wd-single-tabs .wd-accordion:not(.tabs-layout-accordion) .wd-accordion-title.tab-title-reviews");e.length&&(e.trigger("click"),setTimeout(function(){t("html, body").stop().animate({scrollTop:e.offset().top-woodmart_settings.ajax_scroll_offset},400)},400))})},t(document).ready(function(){woodmartThemeModule.woocommerceComments()})}(jQuery);
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(c){function e(){}function p(e,t){m.ev.on(n+e+b,t)}function d(e,t,n,o){var i=document.createElement("div");return i.className="mfp-"+e,n&&(i.innerHTML=n),o?t&&t.appendChild(i):(i=c(i),t&&i.appendTo(t)),i}function u(e,t){m.ev.triggerHandler(n+e,t),m.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),m.st.callbacks[e])&&m.st.callbacks[e].apply(m,Array.isArray(t)?t:[t])}function f(e){return e===j&&m.currTemplate.closeBtn||(m.currTemplate.closeBtn=c(m.st.closeMarkup.replace("%title%",m.st.tClose)),j=e),m.currTemplate.closeBtn}function a(){c.magnificPopup.instance||((m=new e).init(),c.magnificPopup.instance=m)}function L(){v&&(l.after(v.addClass(s)).detach(),v=null)}function i(){t&&c(document.body).removeClass(t)}function F(){i(),m.req&&m.req.abort()}var m,o,g,r,h,j,s,l,v,t,w="Close",N="BeforeClose",C="MarkupParse",y="Open",W="Change",n="mfp",b="."+n,I="mfp-ready",R="mfp-removing",x="mfp-prevent-close",k=!!window.jQuery,T=c(window),S=(c.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isIE7=-1!==e.indexOf("MSIE 7."),m.isIE8=-1!==e.indexOf("MSIE 8."),m.isLowIE=m.isIE7||m.isIE8,m.isAndroid=/android/gi.test(e),m.isIOS=/iphone|ipad|ipod/gi.test(e),m.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=c(document),m.popupsCache={}},open:function(e){if(!1===e.isObj){m.items=e.items.toArray(),m.index=0;for(var t,n=e.items,o=0;o<n.length;o++)if((t=(t=n[o]).parsed?t.el[0]:t)===e.el[0]){m.index=o;break}}else m.items=Array.isArray(e.items)?e.items:[e.items],m.index=e.index||0;if(!m.isOpen){m.types=[],h=" wd-scroll",e.mainEl&&e.mainEl.length?m.ev=e.mainEl.eq(0):m.ev=g,e.key?(m.popupsCache[e.key]||(m.popupsCache[e.key]={}),m.currTemplate=m.popupsCache[e.key]):m.currTemplate={},m.st=c.extend(!0,{},c.magnificPopup.defaults,e),m.fixedContentPos="auto"===m.st.fixedContentPos?!m.probablyMobile:m.st.fixedContentPos,m.st.modal&&(m.st.closeOnContentClick=!1,m.st.closeOnBgClick=!1,m.st.showCloseBtn=!1,m.st.enableEscapeKey=!1),m.bgOverlay||(m.bgOverlay=d("bg").on("click"+b,function(){m.close()}),m.wrap=d("wrap").attr("tabindex",-1).on("click"+b,function(e){m._checkIfClose(e.target)&&m.close()}).on("click"+b,".wd-popup-close",function(e){m.close(),e.preventDefault()}),m.container=d("container",m.wrap)),m.contentContainer=d("content"),m.st.preloader&&(m.preloader=d("preloader",m.container,m.st.tLoading));var i=c.magnificPopup.modules;for(o=0;o<i.length;o++){var a=(a=i[o]).charAt(0).toUpperCase()+a.slice(1);m["init"+a].call(m)}u("BeforeOpen"),m.st.showCloseBtn&&(m.st.closeBtnInside?(p(C,function(e,t,n,o){n.close_replaceWith=f(o.type)}),h+=" mfp-close-btn-in"):m.wrap.prepend(f())),m.st.alignTop&&(h+=" mfp-align-top"),m.fixedContentPos||m.wrap.css({top:T.scrollTop(),position:"absolute"}),!1!==m.st.fixedBgPos&&("auto"!==m.st.fixedBgPos||m.fixedContentPos)||m.bgOverlay.css({height:g.height(),position:"absolute"}),m.st.enableEscapeKey&&g.on("keyup"+b,function(e){27===e.keyCode&&m.close()}),T.on("resize"+b,function(){m.updateSize()}),m.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&m.wrap.addClass(h);var r=m.wH=T.height(),s={},l=(m.fixedContentPos&&m._hasScrollBar(r)&&(l=m._getScrollbarSize())&&(s.marginRight=l),m.fixedContentPos&&(m.isIE7?c("body, html").css("overflow","hidden"):s.overflow="hidden"),m.st.mainClass);return m.isIE7&&(l+=" mfp-ie7"),l&&m._addClassToMFP(l),m.updateItemHTML(),u("BuildControls"),c("html").css(s),m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||c(document.body)),m._lastFocusedEl=document.activeElement,setTimeout(function(){m.content?(m._addClassToMFP(I),m._setFocus()):m.bgOverlay.addClass(I),g.on("focusin"+b,m._onFocusIn)},16),setTimeout(function(){m.wrap.find(".wd-popup").length&&m.wrap.find(".wd-popup-wrap").addClass("wd-in wd-animated")},16),m.isOpen=!0,m.updateSize(r),u(y),e}m.updateItemHTML()},close:function(){m.isOpen&&(u(N),m.isOpen=!1,m.st.removalDelay&&!m.isLowIE&&m.supportsTransition?(m._addClassToMFP(R),m.wrap.find(".wd-popup").length&&(m.wrap.find(".wd-popup-wrap").removeClass("wd-in"),m.wrap.find(".wd-popup-wrap").addClass("wd-out")),setTimeout(function(){m.wrap.find(".wd-popup").length&&setTimeout(function(){m.wrap.find(".wd-popup-wrap").removeClass("wd-out")}),m._close()},m.st.removalDelay)):m._close())},_close:function(){u(w);var e=R+" "+I+" ";m.bgOverlay.detach(),m.wrap.detach(),m.container.empty(),m.st.mainClass&&(e+=m.st.mainClass+" "),m._removeClassFromMFP(e),m.fixedContentPos&&(e={marginRight:""},m.isIE7?c("body, html").css("overflow",""):e.overflow="",c("html").css(e)),g.off("keyup.mfp focusin"+b),m.ev.off(b),m.wrap.attr("class","mfp-wrap").removeAttr("style"),m.bgOverlay.attr("class","mfp-bg"),m.container.attr("class","mfp-container"),!m.st.showCloseBtn||m.st.closeBtnInside&&!0!==m.currTemplate[m.currItem.type]||m.currTemplate.closeBtn&&m.currTemplate.closeBtn.detach(),m.currItem=null,m.content=null,m.currTemplate=null,m.prevHeight=0,u("AfterClose")},updateSize:function(e){var t;m.isIOS?(t=document.documentElement.clientWidth/window.innerWidth,t=window.innerHeight*t,m.wrap.css("height",t),m.wH=t):m.wH=e||T.height(),m.fixedContentPos||m.wrap.css("height",m.wH),u("Resize")},updateItemHTML:function(){var e=m.items[m.index],t=(m.contentContainer.detach(),m.content&&m.content.detach(),(e=e.parsed?e:m.parseEl(m.index)).type),n=(u("BeforeChange",[m.currItem?m.currItem.type:"",t]),m.currItem=e,m.currTemplate[t]||(n=!!m.st[t]&&m.st[t].markup,u("FirstMarkupParse",n),m.currTemplate[t]=!n||c(n)),r&&r!==e.type&&m.container.removeClass("mfp-"+r+"-holder"),m["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,m.currTemplate[t]));m.appendContent(n,t),e.preloaded=!0,u(W,e),r=e.type,m.container.prepend(m.contentContainer),u("AfterChange")},appendContent:function(e,t){if((m.content=e)?m.st.showCloseBtn&&m.st.closeBtnInside&&!0===m.currTemplate[t]?m.contentContainer.find(".mfp-close, .wd-popup-close").length||m.contentContainer.prepend(f()):m.content=e:m.content="",u("BeforeAppend"),m.container.addClass("mfp-"+t+"-holder"),e){var n,o,t=e.hasClass("wd-popup")?e:e.find(".wd-popup");if(t.length)return n=c('<div class="wd-popup-wrap wd-animation wd-transform wd-animation-ready"></div>'),t.hasClass("wd-popup-builder")||t.hasClass("wd-promo-popup")||n.addClass("wd-animation-default"),(o=m.contentContainer.find(".wd-popup-close")).length||(o=e.find(".wd-popup-close")),m.contentContainer.empty(),o.length&&n.append(o),n.append(e),m.content=t,void m.contentContainer.append(n)}m.contentContainer.append(m.content)},parseEl:function(e){var t,n=m.items[e];if((n=n.tagName?{el:c(n)}:(t=n.type,{data:n,src:n.src})).el){for(var o=m.types,i=0;i<o.length;i++)if(n.el.hasClass("mfp-"+o[i])){t=o[i];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||m.st.type||"inline",n.index=e,n.parsed=!0,m.items[e]=n,u("ElementParse",n),m.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,m._openClick(e,t,n)}var o="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(o).on(o,e)):(n.isObj=!1,n.delegate?t.off(o).on(o,n.delegate,e):(n.items=t).off(o).on(o,e))},_openClick:function(e,t,n){if((void 0!==n.midClick?n:c.magnificPopup.defaults).midClick||2!==e.which&&!e.ctrlKey&&!e.metaKey){var o=(void 0!==n.disableOn?n:c.magnificPopup.defaults).disableOn;if(o)if("function"==typeof o){if(!o.call(m))return!0}else if(T.width()<o)return!0;e.type&&(e.preventDefault(),m.isOpen)&&e.stopPropagation(),n.el=c(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),m.open(n)}},updateStatus:function(e,t){var n;m.preloader&&(o!==e&&m.container.removeClass("mfp-s-"+o),n={status:e,text:t=t||"loading"!==e?t:m.st.tLoading},u("UpdateStatus",n),e=n.status,m.preloader.html(t=n.text),m.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),m.container.addClass("mfp-s-"+e),o=e)},_checkIfClose:function(e){if(!c(e).hasClass(x)){var t=m.st.closeOnContentClick,n=m.st.closeOnBgClick;if(t&&n)return!0;if(!m.content||c(e).hasClass("mfp-close")||c(e).hasClass("wd-popup-close")||m.preloader&&e===m.preloader[0])return!0;if(e===m.content[0]||c.contains(m.content[0],e)){if(t)return!0}else if(n&&c.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){m.bgOverlay.addClass(e),m.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),m.wrap.removeClass(e)},_hasScrollBar:function(e){return(m.isIE7?g.height():document.body.scrollHeight)>(e||T.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).trigger("focus")},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!c.contains(m.wrap[0],e.target))return m._setFocus(),!1},_parseMarkup:function(i,e,t){var a;t.data&&(e=c.extend(t.data,e)),u(C,[i,e,t]),c.each(e,function(e,t){if(void 0===t||!1===t)return!0;var n,o;1<(a=e.split("_")).length?0<(n=i.find(b+"-"+a[0])).length&&("replaceWith"===(o=a[1])?n[0]!==t[0]&&n.replaceWith(t):"img"===o?n.is("img")?n.attr("src",t):n.replaceWith('<img src="'+t+'" class="'+n.attr("class")+'" />'):n.attr(a[1],t)):i.find(b+"-"+e).html(t)})},_getScrollbarSize:function(){var e;return void 0===m.scrollbarSize&&((e=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),m.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),m.scrollbarSize}},modules:[],open:function(e,t){return a(),(e=e?c.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(c.magnificPopup.defaults[e]=t.options),c.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},c.fn.magnificPopup=function(e){a();var t,n,o,i=c(this);return"string"==typeof e?"open"===e?(t=k?i.data("magnificPopup"):i[0].magnificPopup,n=parseInt(arguments[1],10)||0,o=t.items?t.items[n]:(o=i,(o=t.delegate?o.find(t.delegate):o).eq(n)),m._openClick({mfpEl:o},i,t)):m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1)):(e=c.extend(!0,{},e),k?i.data("magnificPopup",e):i[0].magnificPopup=e,m.addGroup(i,e)),i},"inline"),_=(c.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(S),p(w+"."+S,function(){L()})},getInline:function(e,t){var n,o,i;return L(),e.src?(n=m.st.inline,(o=c(e.src)).length?((i=o[0].parentNode)&&i.tagName&&(l||(s=n.hiddenClass,l=d(s),s="mfp-"+s),v=o.after(l).detach().removeClass(s)),m.updateStatus("ready")):(m.updateStatus("error",n.tNotFound),o=c("<div>")),e.inlineElement=o):(m.updateStatus("ready"),m._parseMarkup(t,{},e),t)}}}),"ajax");c.magnificPopup.registerModule(_,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){m.types.push(_),t=m.st.ajax.cursor,p(w+"."+_,F),p("BeforeChange."+_,F)},getAjax:function(o){t&&c(document.body).addClass(t),m.updateStatus("loading");var e=c.extend({url:o.src,success:function(e,t,n){e={data:e,xhr:n};u("ParseAjax",e),m.appendContent(c(e.data),_),o.finished=!0,i(),m._setFocus(),setTimeout(function(){m.wrap.addClass(I)},16),m.updateStatus("ready"),u("AjaxContentAdded")},error:function(){i(),o.finished=o.loadError=!0,m.updateStatus("error",m.st.ajax.tError.replace("%url%",o.src))}},m.st.ajax.settings);return m.req=c.ajax(e),""}}});var E;c.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image"),p(y+t,function(){"image"===m.currItem.type&&e.cursor&&c(document.body).addClass(e.cursor)}),p(w+t,function(){e.cursor&&c(document.body).removeClass(e.cursor),T.off("resize"+b)}),p("Resize"+t,m.resizeImage),m.isLowIE&&p("AfterChange",m.resizeImage)},resizeImage:function(){var e,t=m.currItem;t&&t.img&&m.st.image.verticalFit&&(e=0,m.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",m.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,E&&clearInterval(E),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden)&&(m.content&&m.content.removeClass("mfp-loading"),e.imgHidden=!1)},findImageSize:function(t){function n(e){E&&clearInterval(E),E=setInterval(function(){0<i.naturalWidth?m._onImageHasSize(t):(200<o&&clearInterval(E),3===++o?n(10):40===o?n(50):100===o&&n(500))},e)}var o=0,i=t.img[0];n(1)},getImage:function(e,t){function n(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,u("ImageLoadComplete")):++a<200?setTimeout(n,100):o())}function o(){e&&(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("error",r.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)}var i,a=0,r=m.st.image,s=t.find(".mfp-img");return s.length&&((i=document.createElement("img")).className="mfp-img",e.el&&e.el.find("img").length&&(i.alt=e.el.find("img").attr("alt")),e.img=c(i).on("load.mfploader",n).on("error.mfploader",o),i.src=e.src,s.is("img")&&(e.img=e.img.clone()),0<(i=e.img[0]).naturalWidth?e.hasSize=!0:i.width||(e.hasSize=!1)),m._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=m.st.image.titleSrc;if(t){if("function"==typeof t)return t.call(m,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),m.resizeImage(),e.hasSize?(E&&clearInterval(E),e.loadError?(t.addClass("mfp-loading"),m.updateStatus("error",r.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),m.updateStatus("ready"))):(m.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),m.findImageSize(e))),t}}});function P(e){var t;m.currTemplate[A]&&(t=m.currTemplate[A].find("iframe")).length&&(e||(t[0].src="//about:blank"),m.isIE8)&&t.css("display",e?"block":"none")}function z(e){var t=m.items.length;return t-1<e?e-t:e<0?t+e:e}function Z(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}c.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,t,n,o,i,a,r=m.st.zoom,s=".zoom";r.enabled&&m.supportsTransition&&(t=r.duration,n=function(e){var e=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),t="all "+r.duration/1e3+"s "+r.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=t,e.css(n),e},o=function(){m.content.css("visibility","visible")},p("BuildControls"+s,function(){m._allowZoom()&&(clearTimeout(i),m.content.css("visibility","hidden"),(e=m._getItemToZoom())?((a=n(e)).css(m._getOffset()),m.wrap.append(a),i=setTimeout(function(){a.css(m._getOffset(!0)),i=setTimeout(function(){o(),setTimeout(function(){a.remove(),e=a=null,u("ZoomAnimationEnded")},16)},t)},16)):o())}),p(N+s,function(){if(m._allowZoom()){if(clearTimeout(i),m.st.removalDelay=t,!e){if(!(e=m._getItemToZoom()))return;a=n(e)}a.css(m._getOffset(!0)),m.wrap.append(a),m.content.css("visibility","hidden"),setTimeout(function(){a.css(m._getOffset())},16)}}),p(w+s,function(){m._allowZoom()&&(o(),a&&a.remove(),e=null)}))},_allowZoom:function(){return"image"===m.currItem.type},_getItemToZoom:function(){return!!m.currItem.hasSize&&m.currItem.img},_getOffset:function(e){var e=e?m.currItem.img:m.st.zoom.opener(m.currItem.el||m.currItem),t=e.offset(),n=parseInt(e.css("padding-top"),10),o=parseInt(e.css("padding-bottom"),10),e=(t.top-=c(window).scrollTop()-n,{width:e.width(),height:(k?e.innerHeight():e[0].offsetHeight)-o-n});return(O=void 0===O?void 0!==document.createElement("p").style.MozTransform:O)?e["-moz-transform"]=e.transform="translate("+t.left+"px,"+t.top+"px)":(e.left=t.left,e.top=t.top),e}}});var O,M,B,A="iframe",H=(c.magnificPopup.registerModule(A,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(A),p("BeforeChange",function(e,t,n){t!==n&&(t===A?P():n===A&&P(!0))}),p(w+"."+A,function(){P()})},getIframe:function(e,t){var n=e.src,o=m.st.iframe,i=(c.each(o.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}),{});return o.srcAction&&(i[o.srcAction]=n),m._parseMarkup(t,i,e),m.updateStatus("ready"),t}}}),c.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var a=m.st.gallery,e=".mfp-gallery",o=Boolean(c.fn.mfpFastClick);if(m.direction=!0,!a||!a.enabled)return!1;h+=" mfp-gallery",p(y+e,function(){a.navigateByImgClick&&m.wrap.on("click"+e,".mfp-img",function(){if(1<m.items.length)return m.next(),!1}),g.on("keydown"+e,function(e){37===e.keyCode?m.prev():39===e.keyCode&&m.next()})}),p("UpdateStatus"+e,function(e,t){t.text&&(t.text=Z(t.text,m.currItem.index,m.items.length))}),p(C+e,function(e,t,n,o){var i=m.items.length;n.counter=1<i?Z(a.tCounter,o.index,i):""}),p("BuildControls"+e,function(){var e,t,n;1<m.items.length&&a.arrows&&!m.arrowLeft&&(t=a.arrowMarkup,e=m.arrowLeft=c(t.replace(/%title%/gi,a.tPrev).replace(/%dir%/gi,"left")).addClass(x),t=m.arrowRight=c(t.replace(/%title%/gi,a.tNext).replace(/%dir%/gi,"right")).addClass(x),e[n=o?"mfpFastClick":"click"](function(){m.prev()}),t[n](function(){m.next()}),m.isIE7&&(d("b",e[0],!1,!0),d("a",e[0],!1,!0),d("b",t[0],!1,!0),d("a",t[0],!1,!0)),m.container.append(e.add(t)))}),p(W+e,function(){m._preloadTimeout&&clearTimeout(m._preloadTimeout),m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages(),m._preloadTimeout=null},16)}),p(w+e,function(){g.off(e),m.wrap.off("click"+e),m.arrowLeft&&o&&m.arrowLeft.add(m.arrowRight).destroyMfpFastClick(),m.arrowRight=m.arrowLeft=null})},next:function(){m.direction=!0,m.index=z(m.index+1),m.updateItemHTML()},prev:function(){m.direction=!1,m.index=z(m.index-1),m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index,m.index=e,m.updateItemHTML()},preloadNearbyImages:function(){for(var e=m.st.gallery.preload,t=Math.min(e[0],m.items.length),n=Math.min(e[1],m.items.length),o=1;o<=(m.direction?n:t);o++)m._preloadItem(m.index+o);for(o=1;o<=(m.direction?t:n);o++)m._preloadItem(m.index-o)},_preloadItem:function(e){var t;e=z(e),m.items[e].preloaded||((t=m.items[e]).parsed||(t=m.parseEl(e)),u("LazyLoad",t),"image"===t.type&&(t.img=c('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,u("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0)}}}),"retina");function q(){T.off("touchmove"+B+" touchend"+B)}c.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){var n,o;1<window.devicePixelRatio&&(n=m.st.retina,o=n.ratio,1<(o=isNaN(o)?o():o))&&(p("ImageHasSize."+H,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),p("ElementParse."+H,function(e,t){t.src=n.replaceSrc(t,o)}))}}}),M="ontouchstart"in window,B=".mfpFastClick",c.fn.mfpFastClick=function(l){return c(this).each(function(){var t,n,o,i,a,r,s,e=c(this);M&&e.on("touchstart"+B,function(e){a=!1,s=1,r=(e.originalEvent||e).touches[0],o=r.clientX,i=r.clientY,T.on("touchmove"+B,function(e){r=(e.originalEvent||e).touches,s=r.length,r=r[0],(10<Math.abs(r.clientX-o)||10<Math.abs(r.clientY-i))&&(a=!0,q())}).on("touchend"+B,function(e){q(),a||1<s||(t=!0,e.preventDefault(),clearTimeout(n),n=setTimeout(function(){t=!1},1e3),l())})}),e.on("click"+B,function(){t||l()})})},c.fn.destroyMfpFastClick=function(){c(this).off("touchstart"+B+" click"+B),M&&T.off("touchmove"+B+" touchend"+B)},a()});
!function(j){j.fn.justifiedGallery=function(c){var p={sizeRangeSuffixes:{lt100:"",lt240:"",lt320:"",lt500:"",lt640:"",lt1024:""},rowHeight:120,maxRowHeight:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.75,fixedHeight:!1,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!1,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:100,randomize:!1};function f(t,e,i,n){var a,s,o=t.match(n.settings.extension),o=null!=o?o[0]:"",t=t.replace(n.settings.extension,"");return a=function(t,e){var i,n,a=!1;for(i in e.settings.sizeRangeSuffixes)if(0===e.settings.sizeRangeSuffixes[i].length)a=!0;else if(n=e.settings.sizeRangeSuffixes[i],-1!==t.indexOf(n,t.length-n.length))return e.settings.sizeRangeSuffixes[i];if(a)return"";throw"unknown suffix for "+t}(s=t,n),t=s.substring(0,s.length-a.length),t+=(s=n,((n=(a=i)<(n=e)?n:a)<=100?s.settings.sizeRangeSuffixes.lt100:n<=240?s.settings.sizeRangeSuffixes.lt240:n<=320?s.settings.sizeRangeSuffixes.lt320:n<=500?s.settings.sizeRangeSuffixes.lt500:n<=640?s.settings.sizeRangeSuffixes.lt640:s.settings.sizeRangeSuffixes.lt1024)+o)}function u(t){var e=j(t.currentTarget).find(".caption");t.data.settings.cssAnimation?e.addClass("caption-visible").removeClass("caption-hidden"):e.stop().fadeTo(t.data.settings.captionSettings.animationDuration,t.data.settings.captionSettings.visibleOpacity)}function h(t){var e=j(t.currentTarget).find(".caption");t.data.settings.cssAnimation?e.removeClass("caption-visible").removeClass("caption-hidden"):e.stop().fadeTo(t.data.settings.captionSettings.animationDuration,t.data.settings.captionSettings.nonVisibleOpacity)}function m(t,e,i){i.settings.cssAnimation?(t.addClass("entry-visible"),e()):t.stop().fadeTo(i.settings.imagesAnimationDuration,1,e)}function w(t){var e=t.find("> img");return e=0===e.length?t.find("> a > img"):e}function b(t){t.lastAnalyzedIndex=-1,t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0,t.offY=t.border}function d(t,e){var i,n,a=t.settings,s=t.border,o=function(t,e){var i,n,a,s,o,r=t.settings,g=!0,l=0,d=t.galleryWidth-2*t.border-(t.buildingRow.entriesBuff.length-1)*r.margins,f=d/t.buildingRow.aspectRatio,u=t.buildingRow.width/d>r.justifyThreshold;if(e&&"hide"===r.lastRow&&!u){for(i=0;i<t.buildingRow.entriesBuff.length;i++)n=t.buildingRow.entriesBuff[i],r.cssAnimation?n.removeClass("entry-visible"):n.stop().fadeTo(0,0);return-1}for(e&&!u&&"nojustify"===r.lastRow&&(g=!1),i=0;i<t.buildingRow.entriesBuff.length;i++)o=(a=w(t.buildingRow.entriesBuff[i])).data("jg.imgw")/a.data("jg.imgh"),o=g?(s=i===t.buildingRow.entriesBuff.length-1?d:f*o,f):(s=r.rowHeight*o,r.rowHeight),d-=Math.round(s),a.data("jg.jimgw",Math.round(s)),a.data("jg.jimgh",Math.ceil(o)),(0===i||o<l)&&(l=o);return{minHeight:l=r.fixedHeight&&l>r.rowHeight?r.rowHeight:l,justify:g}}(t,e),r=o.minHeight;if(e&&"hide"===a.lastRow&&-1===r)t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0;else{0<a.maxRowHeight&&a.maxRowHeight<r?r=a.maxRowHeight:0===a.maxRowHeight&&1.5*a.rowHeight<r&&(r=1.5*a.rowHeight);for(var g=0;g<t.buildingRow.entriesBuff.length;g++)n=w(i=t.buildingRow.entriesBuff[g]),function(t,e,i,n,a,s,o){var r=w(t),g=(r.css("width",n),r.css("height",a),r.css("margin-left",-n/2),r.css("margin-top",-a/2),t.width(n),t.height(s),t.css("top",i),t.css("left",e),r.attr("src")),l=f(g,n,a,o);function d(){g!==l&&r.attr("src",l)}r.one("error",function(){r.attr("src",r.data("jg.originalSrc"))}),"skipped"===r.data("jg.loaded")?R(g,function(){m(t,d,o),r.data("jg.loaded",!0)}):m(t,d,o),s=t.data("jg.captionMouseEvents"),!0===o.settings.captions?(0===(i=t.find(".caption")).length&&void 0!==(e=void 0===(e=r.attr("alt"))?t.attr("title"):e)&&(i=j('<div class="caption">'+e+"</div>"),t.append(i)),0!==i.length&&(o.settings.cssAnimation||i.stop().fadeTo(o.settings.imagesAnimationDuration,o.settings.captionSettings.nonVisibleOpacity),void 0===s)&&(t.on("mouseenter",void 0,o,(s={mouseenter:u,mouseleave:h}).mouseenter),t.on("mouseleave",void 0,o,s.mouseleave),t.data("jg.captionMouseEvents",s))):void 0!==s&&(t.off("mouseenter",void 0,o,s.mouseenter),t.off("mouseleave",void 0,o,s.mouseleave),t.removeData("jg.captionMouseEvents"))}(i,s,t.offY,n.data("jg.jimgw"),n.data("jg.jimgh"),r,t),s+=n.data("jg.jimgw")+a.margins;t.$gallery.height(t.offY+r+t.border+(t.spinner.active?t.spinner.$el.innerHeight():0)),(!e||r<=t.settings.rowHeight&&o.justify)&&(t.offY+=r+t.settings.margins,t.buildingRow.entriesBuff=[],t.buildingRow.aspectRatio=0,t.buildingRow.width=0,t.$gallery.trigger("jg.rowflush"))}}function v(t){t.yield.flushed=0,null!==t.imgAnalyzerTimeout&&clearTimeout(t.imgAnalyzerTimeout)}function y(t,e){v(t),t.imgAnalyzerTimeout=setTimeout(function(){i(t,e)},.001),i(t,e)}function i(t,e){for(var i,n=t.settings,a=t.lastAnalyzedIndex+1;a<t.entries.length;a++){var s=j(t.entries[a]),o=w(s);if(!0===o.data("jg.loaded")||"skipped"===o.data("jg.loaded")){var r=a>=t.entries.length-1,g=t.galleryWidth-2*t.border-(t.buildingRow.entriesBuff.length-1)*n.margins,l=o.data("jg.imgw")/o.data("jg.imgh");if(g/(t.buildingRow.aspectRatio+l)<n.rowHeight&&(d(t,r),++t.yield.flushed>=t.yield.every))return void y(t,e);t.buildingRow.entriesBuff.push(s),t.buildingRow.aspectRatio+=l,t.buildingRow.width+=l*n.rowHeight,t.lastAnalyzedIndex=a}else if("error"!==o.data("jg.loaded"))return}0<t.buildingRow.entriesBuff.length&&d(t,!0),t.spinner.active&&(t.spinner.active=!1,t.$gallery.height(t.$gallery.height()-t.spinner.$el.innerHeight()),t.spinner.$el.detach(),i=t.spinner,clearInterval(i.intervalId),i.intervalId=null),v(t),e?t.$gallery.trigger("jg.resize"):t.$gallery.trigger("jg.complete")}function R(t,e,i){var n,a;(e||i)&&(n=new Image,a=j(n),e&&a.one("load",function(){a.off("load error"),e(n)}),i&&a.one("error",function(){a.off("load error"),i(n)}),n.src=t)}return this.each(function(t,e){var i,o,r,n,g=j(e);if(g.addClass("justified-gallery"),void 0===(l=g.data("jg.context"))){if(null!=c&&"object"!=typeof c)throw"The argument must be an object";var e=j('<div class="spinner"><span></span><span></span><span></span></div>'),a=j.extend({},p,c),s=0<=a.border?a.border:a.margins,l={settings:a,imgAnalyzerTimeout:null,entries:null,buildingRow:{entriesBuff:[],width:0,aspectRatio:0},lastAnalyzedIndex:-1,yield:{every:2,flushed:0},border:s,offY:s,spinner:{active:!1,phase:0,timeslot:150,$el:e,$points:e.find("span"),intervalId:null},checkWidthIntervalId:null,galleryWidth:g.width(),$gallery:g};g.data("jg.context",l)}else if("norewind"===c)for(var d=0;d<l.buildingRow.entriesBuff.length;d++)i=l.buildingRow.entriesBuff[d],l.settings.cssAnimation?i.removeClass("entry-visible"):i.stop().fadeTo(0,0);else l.settings=j.extend({},l.settings,c),l.border=0<=l.settings.border?l.settings.border:l.settings.margins,b(l);var f=l.settings;function u(t){if("string"!=typeof f.sizeRangeSuffixes[t])throw"sizeRangeSuffixes."+t+" must be a string"}function h(t,e){if("string"==typeof t[e]){if(t[e]=parseFloat(t[e],10),isNaN(t[e]))throw"invalid number for "+e}else{if("number"!=typeof t[e])throw e+" must be a number";if(isNaN(t[e]))throw"invalid number for "+e}}if("object"!=typeof f.sizeRangeSuffixes)throw"sizeRangeSuffixes must be defined and must be an object";if(u("lt100"),u("lt240"),u("lt320"),u("lt500"),u("lt640"),u("lt1024"),h(f,"rowHeight"),h(f,"maxRowHeight"),0<f.maxRowHeight&&f.maxRowHeight<f.rowHeight&&(f.maxRowHeight=f.rowHeight),h(f,"margins"),h(f,"border"),"nojustify"!==f.lastRow&&"justify"!==f.lastRow&&"hide"!==f.lastRow)throw'lastRow must be "nojustify", "justify" or "hide"';if(h(f,"justifyThreshold"),f.justifyThreshold<0||1<f.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!=typeof f.cssAnimation)throw"cssAnimation must be a boolean";if(h(f.captionSettings,"animationDuration"),h(f,"imagesAnimationDuration"),h(f.captionSettings,"visibleOpacity"),f.captionSettings.visibleOpacity<0||1<f.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(h(f.captionSettings,"nonVisibleOpacity"),f.captionSettings.visibleOpacity<0||1<f.captionSettings.visibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if("boolean"!=typeof f.fixedHeight)throw"fixedHeight must be a boolean";if("boolean"!=typeof f.captions)throw"captions must be a boolean";if(h(f,"refreshTime"),"boolean"!=typeof f.randomize)throw"randomize must be a boolean";l.entries=g.find("> a, > div:not(.spinner)").toArray(),0!==l.entries.length&&(l.settings.randomize&&(l.entries.sort(function(){return 2*Math.random()-1}),j.each(l.entries,function(){j(this).appendTo(g)})),r=o=!1,j.each(l.entries,function(t,e){var i,e=j(e),n=w(e);if(e.addClass("jg-entry"),!0!==n.data("jg.loaded")&&"skipped"!==n.data("jg.loaded")){null!==l.settings.rel&&e.attr("rel",l.settings.rel),null!==l.settings.target&&e.attr("target",l.settings.target);var e=void 0!==n.data("safe-src")?n.data("safe-src"):n.attr("src"),a=(n.data("jg.originalSrc",e),n.attr("src",e),parseInt(n.attr("width"),10)),s=parseInt(n.attr("height"),10);if(!0!==l.settings.waitThumbnailsLoad&&!isNaN(a)&&!isNaN(s))return n.data("jg.imgw",a),n.data("jg.imgh",s),n.data("jg.loaded","skipped"),y(l,!(r=!0)),!0;n.data("jg.loaded",!1),!(o=!0)===l.spinner.active&&(l.spinner.active=!0,g.append(l.spinner.$el),g.height(l.offY+l.spinner.$el.innerHeight()),i=l.spinner,clearInterval(i.intervalId),i.intervalId=setInterval(function(){i.phase<i.$points.length?i.$points.eq(i.phase).fadeTo(i.timeslot,1):i.$points.eq(i.phase-i.$points.length).fadeTo(i.timeslot,0),i.phase=(i.phase+1)%(2*i.$points.length)},i.timeslot)),R(e,function(t){n.data("jg.imgw",t.width),n.data("jg.imgh",t.height),n.data("jg.loaded",!0),y(l,!1)},function(){n.data("jg.loaded","error"),y(l,!1)})}}),o||r||y(l,!1),(n=l).checkWidthIntervalId=setInterval(function(){var t=parseInt(n.$gallery.width(),10);n.galleryWidth!==t&&(n.galleryWidth=t,b(n),y(n,!0))},n.settings.refreshTime))})}}(jQuery);
!function(i){woodmartThemeModule.$document.on("wdPortfolioLoadMoreLoaded",function(){woodmartThemeModule.mfpPopup()}),woodmartThemeModule.mfpPopup=function(){if(void 0!==i.fn.magnificPopup)i(".gallery").off("click").on("click","a:not([data-elementor-open-lightbox]), a[data-elementor-open-lightbox=no]",function(o){o.preventDefault(),setTimeout(()=>{i.magnificPopup?.instance?.isOpen&&(i.magnificPopup.instance.st.removalDelay=0,i.magnificPopup.close());var o=i(this);var e=o.closest(".gallery");e=e.find("a:not([data-elementor-open-lightbox]), a[data-elementor-open-lightbox=no]");o=e.index(o);const a=[];e.each(function(){a.push({src:i(this).attr("href")})});i.magnificPopup.open({items:a,type:"image",removalDelay:600,closeMarkup:woodmart_settings.close_markup,tLoading:woodmart_settings.loading,fixedContentPos:!0,callbacks:{beforeOpen:function(){this.wrap.addClass("wd-popup-gallery-wrap")},change:function(){setTimeout(()=>{this.wrap.find(".wd-popup-wrap").addClass("wd-in wd-animated")},16)}},image:{verticalFit:!0,markup:'<div class="mfp-figure wd-popup wd-popup-gallery">'+woodmart_settings.close_markup+'<figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>'},gallery:{enabled:!0,navigateByImgClick:!0}},o)})})},i(document).ready(function(){woodmartThemeModule.mfpPopup()})}(jQuery);
!function(t){woodmartThemeModule.$document.on("wdShopPageInit wdUpdateWishlist wdArrowsLoadProducts wdLoadMoreLoadProducts wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdArrowsLoadProducts wdBackHistory wdRecentlyViewedProductLoaded",function(){woodmartThemeModule.productHover()}),woodmartThemeModule.wcTabsHoverFix=function(){t(".wc-tabs > li").on("click",function(){woodmartThemeModule.productHover()})},woodmartThemeModule.$document.on("wdProductMoreDescriptionOpen",function(o,e){woodmartThemeModule.productHoverRecalc(e)}),t.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(o,e){woodmartThemeModule.wdElementorAddAction(e,function(){woodmartThemeModule.productHover()})}),woodmartThemeModule.productHoverRecalc=function(o){var e;o.hasClass("wd-fade-off")||(e=o.find(".fade-in-block").outerHeight(),o.find(".content-product-imagin").css({marginBottom:-e}),o.addClass("hover-ready"))},woodmartThemeModule.productHover=function(){var o=t(".wd-hover-with-fade"),e=o.closest(".wd-carousel");function d(o){var e,d;o.data("column_width")||(e=o.outerWidth(),d=o.data("columns"),o.data("column_width",e/d))}woodmartThemeModule.windowWidth<=1024&&(0<e.length&&o.hasClass("wd-hover-fw-button")&&o.addClass("wd-fade-off"),o.on("click",function(o){var e=t(this),d="state-hover";e.hasClass(d)||e.hasClass("wd-fade-off")||"no"!==woodmart_settings.base_hover_mobile_click||(o.preventDefault(),t("."+d).removeClass(d),e.addClass(d))}),woodmartThemeModule.$document.on("click touchstart",function(o){0===t(o.target).closest(".state-hover").length&&t(".state-hover").removeClass("state-hover")})),o.on("mouseenter mousemove touchstart",function(){var o=t(this),e=o.find(".wd-more-desc");e.hasClass("wd-height-calculated")||(o.imagesLoaded(function(){woodmartThemeModule.productHoverRecalc(o)}),e.addClass("wd-height-calculated"))}),t(".wd-products").on("mouseenter mousemove touchstart",function(){d(t(this))}),o.on("mouseenter mousemove touchstart",function(){var o,e;woodmart_settings.hover_width_small&&!(o=t(this)).hasClass("wd-hover-fw-button")&&(d(o.parent(".wd-products")),e=o.parent(".wd-products").data("column_width"))&&(e<255||woodmartThemeModule.windowWidth<=1024?(o.find(".wd-add-btn").parent().addClass("wd-add-small-btn"),o.find(".wd-add-btn").removeClass("wd-add-btn-replace").addClass("wd-action-btn wd-style-icon wd-add-cart-icon")):(woodmartThemeModule.$body.hasClass("catalog-mode-on")||woodmartThemeModule.$body.hasClass("login-see-prices"))&&o.find(".wd-bottom-actions .wd-action-btn").removeClass("wd-style-icon").addClass("wd-style-text"),woodmartThemeModule.$document.trigger("wdProductBaseHoverIconsResize"))})},t(document).ready(function(){woodmartThemeModule.productHover(),woodmartThemeModule.wcTabsHoverFix()})}(jQuery);
!function(r){woodmartThemeModule.$document.on("wdShopPageInit wdLoadMoreLoadProducts wdArrowsLoadProducts wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdUpdateWishlist wdRecentlyViewedProductLoaded",function(){woodmartThemeModule.productMoreDescription()}),r.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(e,d){woodmartThemeModule.wdElementorAddAction(d,function(){woodmartThemeModule.productMoreDescription()})}),woodmartThemeModule.productMoreDescription=function(){r(".wd-hover-with-fade, .wd-image-hotspot.hotspot-type-product, .wd-spot:has(.wd-spot-product)").on("mouseenter touchstart",function(){var e,d=r(this).find(".wd-more-desc"),o=d.find(".wd-more-desc-inner"),t=d.find(".wd-more-desc-btn");d.hasClass("wd-more-desc-calculated")||(e=d.outerHeight(),30<(o=o.outerHeight()-e)?t.addClass("wd-shown"):0<o&&d.css("max-height",e+o),d.addClass("wd-more-desc-calculated"))}),woodmartThemeModule.$body.on("click",".wd-more-desc-btn",function(e){e.preventDefault();e=r(this);e.parent().addClass("wd-more-desc-full"),woodmartThemeModule.$document.trigger("wdProductMoreDescriptionOpen",[e.parents(".wd-hover-with-fade")])})},r(document).ready(function(){woodmartThemeModule.productMoreDescription()})}(jQuery);
!function(d){woodmartThemeModule.$document.on("wdBackHistory wdProductsTabsLoaded wdSearchFullScreenContentLoaded wdActionAfterAddToCart wdShopPageInit wdArrowsLoadProducts wdLoadMoreLoadProducts wdUpdateWishlist wdQuickViewOpen wdQuickShopSuccess wdProductBaseHoverIconsResize wdRecentlyViewedProductLoaded updated_checkout updated_cart_totals",function(){woodmartThemeModule.btnsToolTips()}),woodmartThemeModule.$document.on("wdUpdateTooltip",function(t,e){woodmartThemeModule.updateTooltip(e)}),d.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default","frontend/element_ready/wd_single_product_nav.default","frontend/element_ready/wd_single_product_size_guide_button.default","frontend/element_ready/wd_single_product_compare_button.default","frontend/element_ready/wd_single_product_wishlist_button.default"],function(t,e){woodmartThemeModule.wdElementorAddAction(e,function(){woodmartThemeModule.btnsToolTips()})}),woodmartThemeModule.btnsToolTips=function(){function e(t,e){!t.hasClass("wd-hint")&&!t.closest(".wd-review-likes").length&&woodmartThemeModule.windowWidth<=1024||t.hasClass("wd-tooltip-inited")||t.hasClass("wd-with-html")||(t.tooltip({animation:!1,container:"body",trigger:"hover",boundary:"window",placement:e,title:function(){var t=d(this);return 0<t.find(".added_to_cart").length||0<t.find(".add_to_cart_button").length?t.find(".add_to_cart_button").text():0<t.find(".wd-swatch-text").length?t.find(".wd-swatch-text").text():t.closest(".wd-review-likes").length?woodmart_settings.review_likes_tooltip:t.text()}}),t.tooltip("show"),t.addClass("wd-tooltip-inited"))}d(woodmart_settings.tooltip_top_selector).on("mouseenter",function(){e(d(this),"top")}),document.querySelectorAll(woodmart_settings.tooltip_top_selector).forEach(t=>{t.addEventListener("touchstart",function(t){e(d(this),"top")},{passive:!0})}),d(woodmart_settings.tooltip_left_selector).on("mouseenter",function(){e(d(this),woodmartThemeModule.$body.hasClass("rtl")?"right":"left")}),document.querySelectorAll(woodmart_settings.tooltip_left_selector).forEach(t=>{t.addEventListener("touchstart",function(t){e(d(this),woodmartThemeModule.$body.hasClass("rtl")?"right":"left")},{passive:!0})}),d(".wd-tooltip.wd-with-html").each(function(){var e,o=d(this);o.on("mouseenter touchstart",{passive:!0},function(){var t;d(this).hasClass("wd-tooltip-inited")||((t=o).tooltip({animation:!1,container:"body",trigger:"manual",boundary:"window",placement:"top",sanitize:!1,html:!0,title:function(){return d(this).html()}}),t.addClass("wd-tooltip-inited")),o.tooltip("show"),d("#"+o.attr("aria-describedby")).on("mouseenter touchstart",{passive:!0},function(){clearTimeout(e)}).on("mouseleave touchend",{passive:!0},function(){clearTimeout(e),e=setTimeout(function(){o.tooltip("hide")},100)})}),o.on("mouseleave touchend",{passive:!0},function(){clearTimeout(e),e=setTimeout(function(){o.tooltip("hide"),d("#"+o.attr("aria-describedby")).off("mouseenter mouseleave touchstart touchend")},100)})})},woodmartThemeModule.updateTooltip=function(t){t=d(t);t.hasClass("wd-tooltip-inited")||(t=t.parent(".wd-tooltip-inited")),woodmartThemeModule.windowWidth<=1024||!t.hasClass("wd-tooltip-inited")||void 0===d.fn.tooltip||!t.is(":hover")||t.tooltip("show")},d(document).ready(function(){woodmartThemeModule.btnsToolTips()})}(jQuery);
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(u){"use strict";var o=["sanitize","whiteList","sanitizeFn"],d=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},m=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,g=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function n(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;for(var i=document.implementation.createHTMLDocument("sanitization"),o=(i.body.innerHTML=t,u.map(e,function(t,e){return e})),n=u(i.body).find("*"),s=0,r=n.length;s<r;s++){var p=n[s],a=p.nodeName.toLowerCase();if(-1===u.inArray(a,o))p.parentNode.removeChild(p);else for(var l=u.map(p.attributes,function(t){return t}),h=[].concat(e["*"]||[],e[a]||[]),f=0,c=l.length;f<c;f++)!function(t,e){var i=t.nodeName.toLowerCase();if(-1!==u.inArray(i,e))return-1===u.inArray(i,d)||Boolean(t.nodeValue.match(m)||t.nodeValue.match(g));for(var o=u(e).filter(function(t,e){return e instanceof RegExp}),n=0,s=o.length;n<s;n++)if(i.match(o[n]))return 1}(l[f],h)&&p.removeAttribute(l[f].nodeName)}return i.body.innerHTML}function a(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},a.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=u(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&u(document).find(u.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s,r=o[n];"click"==r?this.$element.on("click."+this.type,this.options.selector,u.proxy(this.toggle,this)):"manual"!=r&&(s="hover"==r?"mouseleave":"focusout",this.$element.on(("hover"==r?"mouseenter":"focusin")+"."+this.type,this.options.selector,u.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,u.proxy(this.leave,this)))}this.options.selector?this._options=u.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},a.prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.getOptions=function(t){var e,i=this.$element.data();for(e in i)i.hasOwnProperty(e)&&-1!==u.inArray(e,o)&&delete i[e];return(t=u.extend({},this.getDefaults(),i,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},a.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&u.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},a.prototype.enter=function(t){var e=t instanceof this.constructor?t:u(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t instanceof u.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},a.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},a.prototype.leave=function(t){var e=t instanceof this.constructor?t:u(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t instanceof u.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},a.prototype.show=function(){var e,t,i,o,n,s,r,p=u.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(p),n=u.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!p.isDefaultPrevented())&&n&&(p=(e=this).tip(),n=this.getUID(this.type),this.setContent(),p.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&p.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,p[0],this.$element[0]):this.options.placement,(r=(t=/\s?auto?\s?/i).test(n))&&(n=n.replace(t,"")||"top"),p.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?p.appendTo(u(document).find(this.options.container)):p.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=p[0].offsetWidth,o=p[0].offsetHeight,r&&(r=n,s=this.getPosition(this.$viewport),n="bottom"==n&&t.bottom+o>s.bottom?"top":"top"==n&&t.top-o<s.top?"bottom":"right"==n&&t.right+i>s.width?"left":"left"==n&&t.left-i<s.left?"right":n,p.removeClass(r).addClass(n)),s=this.getCalculatedOffset(n,t,i,o),this.applyPlacement(s,n),r=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},u.support.transition&&this.$tip.hasClass("fade")?p.one("bsTransitionEnd",r).emulateTransitionEnd(a.TRANSITION_DURATION):r())},a.prototype.applyPlacement=function(t,e){var i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10),s=(isNaN(s)&&(s=0),isNaN(r)&&(r=0),t.top+=s,t.left+=r,u.offset.setOffset(i[0],u.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in"),i[0].offsetWidth),r=i[0].offsetHeight,p=("top"==e&&r!=n&&(t.top=t.top+n-r),this.getViewportAdjustedDelta(e,t,s,r)),e=(p.left?t.left+=p.left:t.top+=p.top,/top|bottom/.test(e)),o=e?2*p.left-o+s:2*p.top-n+r,s=e?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(o,i[0][s],e)},a.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},a.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},a.prototype.hide=function(t){var e=this,i=u(this.$tip),o=u.Event("hide.bs."+this.type);function n(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),u.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",n).emulateTransitionEnd(a.TRANSITION_DURATION):n(),this.hoverState=null,this},a.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},a.prototype.hasContent=function(){return this.getTitle()},a.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,o=e.getBoundingClientRect(),e=(null==o.width&&(o=u.extend({},o,{width:o.right-o.left,height:o.bottom-o.top})),window.SVGElement&&e instanceof window.SVGElement),e=i?{top:0,left:0}:e?null:t.offset(),t={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},i=i?{width:u(window).width(),height:u(window).height()}:null;return u.extend({},o,t,i,e)},a.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},a.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n,s,r={top:0,left:0};return this.$viewport&&(n=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport),/right|left/.test(t)?(t=e.top-n-s.scroll,o=e.top+n-s.scroll+o,t<s.top?r.top=s.top-t:o>s.top+s.height&&(r.top=s.top+s.height-o)):(t=e.left-n,o=e.left+n+i,t<s.left?r.left=s.left-t:o>s.right&&(r.left=s.left+s.width-o))),r},a.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},a.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},a.prototype.tip=function(){if(this.$tip||(this.$tip=u(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},a.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},a.prototype.enable=function(){this.enabled=!0},a.prototype.disable=function(){this.enabled=!1},a.prototype.toggleEnabled=function(){this.enabled=!this.enabled},a.prototype.toggle=function(t){var e=this;t&&!(e=u(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},a.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},a.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=u.fn.tooltip;u.fn.tooltip=function(o){return this.each(function(){var t=u(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new a(this,i)),"string"==typeof o&&e[o]())})},u.fn.tooltip.Constructor=a,u.fn.tooltip.noConflict=function(){return u.fn.tooltip=e,this}}(jQuery),function(n){"use strict";function s(t,e){this.init("popover",t,e)}if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.4.1",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t,e=this.tip(),i=this.getTitle(),o=this.getContent();this.options.html?(t=typeof o,this.options.sanitize&&(i=this.sanitizeHtml(i),"string"==t)&&(o=this.sanitizeHtml(o)),e.find(".popover-title").html(i),e.find(".popover-content").children().detach().end()["string"==t?"html":"append"](o)):(e.find(".popover-title").text(i),e.find(".popover-content").children().detach().end().text(o)),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery);
!function(l){woodmartThemeModule.scrollTop=function(){var o=l(".scrollToTop");woodmartThemeModule.$window.on("scroll",function(){100<l(this).scrollTop()?o.addClass("button-show"):o.removeClass("button-show")}),o.on("click",function(){return l("html, body").animate({scrollTop:0},800),!1})},l(document).ready(function(){woodmartThemeModule.scrollTop()})}(jQuery);
function openMobileNavEvent(e){e.preventDefault();e=document.querySelector(".wd-side-hidden-nav");e.classList.contains("wd-opened")?woodmartThemeModule.closeMobileNavigation():(this.parentNode.classList.add("wd-opened"),woodmartThemeModule.openMobileNavigation(e))}woodmartThemeModule.$document.on("wdCloseMobileMenu wdPjaxStart",function(){woodmartThemeModule.closeMobileNavigation()}),woodmartThemeModule.mobileNavigationClickAction=function(e){e&&e.addEventListener("click",function(e){var o=e.target.closest(".wd-nav");if(o){var t,n,i,d,a=o.classList.contains("wd-layout-dropdown"),l=o.classList.contains("wd-layout-drilldown"),o=o.classList.contains("wd-drilldown-slide"),s=e.target.closest(".wd-nav-mob-tab li"),r=e.target.closest(".menu-item-has-children > a"),c=e.target.closest(".menu-item-has-children > .wd-nav-opener"),u=e.target.closest(".mobile-nav"),m="arrow";if(this.classList.contains("wd-opener-item")&&(m="item"),woodmartThemeModule.$document.trigger("wood-images-loaded"),s){if(e.preventDefault(),s.classList.contains("wd-active"))return;var w=s.dataset.menu,v=null!==u&&u.querySelector(".wd-active");v&&v.classList.remove("wd-active"),s.classList.add("wd-active"),null!==u&&(u.querySelectorAll(".wd-nav-mobile").forEach(function(e){e.classList.remove("wd-active")}),void 0!==w)&&u.querySelectorAll(`.mobile-${w}-menu`).forEach(function(e){e.classList.add("wd-active")})}a?("item"===m&&(r||c)||"arrow"===m&&c)&&(e.preventDefault(),t=("item"===m&&r||c).parentNode,v=(n=Array.from(t.children)).find(function(e){return e.classList.contains("wd-nav-opener")}),s=n.filter(function(e){return"UL"===e.tagName||e.classList.contains("wd-sub-menu")}),t.classList.contains("opener-page")?(t.classList.remove("opener-page"),0!==s.length&&s.forEach(function(e){woodmartThemeModule.slideUp(e,200)}),[".wd-dropdown-menu .container > ul",".wd-dropdown-menu > ul"].forEach(function(e){e=t.querySelectorAll(e);0!==e.length&&e.forEach(function(e){woodmartThemeModule.slideUp(e,200)})}),void 0!==v&&v.classList.remove("wd-active")):(t.classList.add("opener-page"),0!==s.length&&s.forEach(function(e){woodmartThemeModule.slideDown(e,200)}),[".wd-dropdown-menu .container > ul",".wd-dropdown-menu > ul"].forEach(function(e){e=t.querySelectorAll(e);0!==e.length&&e.forEach(function(e){woodmartThemeModule.slideDown(e,200)})}),void 0!==v&&v.classList.add("wd-active"))):l&&(w=e.target.closest(".menu-item-has-children .wd-drilldown-back a"),a=e.target.closest(".menu-item-has-children .wd-drilldown-back .wd-nav-opener"),("item"===m&&(r||c)||"arrow"===m&&c)&&(d=(t=("item"===m&&r||c).parentNode).closest("ul"),void 0!==(i=(n=Array.from(t.children)).find(function(e){return e.classList.contains("wd-sub-menu")||e.classList.contains("sub-sub-menu")})))&&(e.preventDefault(),t.setAttribute("aria-expanded",!0),d.classList.add("wd-drilldown-hide"),d.classList.remove("wd-drilldown-show"),i.classList.add("wd-drilldown-show"),i.setAttribute("aria-expanded",!1),v=(v=(v=(s=i.querySelector(".wd-drilldown-back a")).textContent).replaceAll("\t","")).replaceAll("\n",""),t.classList.contains("item-level-0")?(l=null)!==(l=null!==u?u.querySelector(".wd-nav-mob-tab li.wd-active .nav-link-text"):l)?(m=(m=(m=l.textContent).replaceAll("\t","")).replaceAll("\n",""),!v.includes(m)&&0<m.length&&(s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to.replace("%s",m))):t.classList.contains("cat-item")?s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to_categories:v.includes(woodmart_settings.mobile_navigation_drilldown_back_to_main_menu)||(s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to_main_menu):(r="",r=(null!==(c=d.closest("li").querySelector(".woodmart-nav-link")).querySelector(".nav-link-text")?c.querySelector(".nav-link-text"):null!==c.querySelector("span")?c.querySelector("span"):c).textContent,!v.includes(r)&&0<r.length&&(s.textContent=woodmart_settings.mobile_navigation_drilldown_back_to.replace("%s",r))),o)&&(this.querySelector("ul.wd-active").style.height=i.offsetHeight+"px"),w||a)&&(e.preventDefault(),d=(t=(w||a).closest(".menu-item")).closest("ul"),i=(n=Array.from(t.children)).find(function(e){return e.classList.contains("wd-sub-menu")||e.classList.contains("sub-sub-menu")}),t.setAttribute("aria-expanded",!1),t.classList.contains("item-level-0")||d.classList.add("wd-drilldown-show"),d.classList.remove("wd-drilldown-hide"),i.classList.remove("wd-drilldown-show"),i.setAttribute("aria-expanded",!0),o)&&(t.classList.contains("item-level-0")?this.querySelector("ul.wd-active").style.height="":this.querySelector("ul.wd-active").style.height=d.offsetHeight+"px")}})},woodmartThemeModule.mobileNavigationAddOpeners=function(e){e.forEach(function(e){var o;e.querySelector(":scope > .wd-nav-opener")||e.closest(".widget_nav_mega_menu")||((o=document.createElement("span")).classList.add("wd-nav-opener"),e.appendChild(o))})},woodmartThemeModule.mobileNavigationCloseSideWidgets=function(e){e&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()})})},woodmartThemeModule.openMobileNavigation=function(e){var o=document.querySelector(".wd-close-side");e&&(e.classList.add("wd-opened"),jQuery(e).trigger("wdOpenSide")),o&&o.classList.add("wd-close-side-opened"),woodmartThemeModule.$document.trigger("wood-images-loaded")},woodmartThemeModule.closeMobileNavigation=function(){var e=document.querySelector(".wd-header-mobile-nav.wd-opened"),o=document.querySelector(".mobile-nav.wd-opened"),t=document.querySelector(".wd-close-side.wd-close-side-opened"),n=document.querySelector(".mobile-nav .searchform input[type=text]");e&&e.classList.remove("wd-opened"),o&&(o.classList.remove("wd-opened"),jQuery(o).trigger("wdCloseSide")),o&&t&&t.classList.remove("wd-close-side-opened"),n&&n.blur()},woodmartThemeModule.mobileNavigation=function(){var e=document.querySelectorAll(".wd-side-hidden-nav .wd-nav-mobile .menu-item-has-children"),o=document.querySelectorAll(".wd-side-hidden-nav"),t=document.querySelector(".wd-close-side"),n=document.querySelectorAll(".mobile-nav .login-side-opener, .mobile-nav .close-side-widget");woodmartThemeModule.mobileNavigationAddOpeners(e),o.forEach(function(e){woodmartThemeModule.mobileNavigationClickAction(e)}),document.querySelectorAll(".wd-header-mobile-nav > a").forEach(function(e){e.addEventListener("click",openMobileNavEvent)}),t&&(t.addEventListener("click",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()}),t.addEventListener("touchstart",function(e){e.preventDefault(),woodmartThemeModule.closeMobileNavigation()},{passive:!1})),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&document.querySelector(".wd-side-hidden-nav").classList.contains("wd-opened")&&woodmartThemeModule.closeMobileNavigation()}),woodmartThemeModule.mobileNavigationCloseSideWidgets(n)},window.addEventListener("load",function(){woodmartThemeModule.mobileNavigation()}),window.addEventListener("wdUpdatedHeader",function(){woodmartThemeModule.mobileNavigation()}),window.addEventListener("wdHeaderBuilderCloneCreated",function(){var e=document.querySelector(".whb-clone .wd-header-mobile-nav > a");e&&e.addEventListener("click",openMobileNavEvent)});
!function(o){woodmartThemeModule.stickySocialButtons=function(){o(".wd-sticky-social").addClass("wd-loaded")},o(document).ready(function(){woodmartThemeModule.stickySocialButtons()})}(jQuery);
!function(r){woodmartThemeModule.$document.on("wdPjaxStart wdBackHistory wdShopPageInit",function(){woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.hiddenSidebar()}),woodmartThemeModule.hiddenSidebar=function(){var e=woodmartThemeModule.$body.hasClass("rtl")?"right":"left",d=r(".wd-content-layout"),o=woodmartThemeModule.windowWidth,a=("undefined"!=typeof elementor&&elementor.hasOwnProperty("$preview")&&elementor.$preview.width()&&(o=elementor.$preview.width()),(d.hasClass("wd-sidebar-hidden-lg")&&1024<o||d.hasClass("wd-sidebar-hidden-md-sm")&&o<=1024&&768<o||d.hasClass("wd-sidebar-hidden-sm")&&o<=768)&&(r(".wd-sidebar").addClass("wd-side-hidden wd-"+e+" wd-scroll"),r(".wd-sidebar .widget-area").addClass("wd-scroll-content")),woodmartThemeModule.$body.off("click",".wd-show-sidebar-btn, .wd-sidebar-opener, .wd-toolbar-sidebar").on("click",".wd-show-sidebar-btn, .wd-sidebar-opener, .wd-toolbar-sidebar",function(e){e.preventDefault();var e=r(".wd-show-sidebar-btn, .wd-sidebar-opener"),d=r(".wd-sidebar");d.length&&(d.hasClass("wd-opened")?(e.removeClass("wd-opened"),woodmartThemeModule.hideShopSidebar()):(r(this).addClass("wd-opened"),a()))}),woodmartThemeModule.$body.on("click touchstart",".wd-close-side",function(){woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$body.on("click",".close-side-widget",function(e){e.preventDefault(),woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&woodmartThemeModule.hideShopSidebar()}),function(){var e=r(".wd-sidebar");e.addClass("wd-opened"),e.trigger("wdOpenSide"),r(".wd-close-side").addClass("wd-close-side-opened")});woodmartThemeModule.$document.trigger("wdHiddenSidebarsInited")},woodmartThemeModule.hideShopSidebar=function(){var e=r(".wd-sidebar");e.hasClass("wd-opened")&&(e.trigger("wdCloseSide"),e.removeClass("wd-opened"),r(".wd-close-side").removeClass("wd-close-side-opened"),r(".wd-show-sidebar-btn, .wd-sidebar-opener, .wd-toolbar-sidebar").removeClass("wd-opened"))},r(document).ready(function(){woodmartThemeModule.hiddenSidebar()})}(jQuery);
!function(n){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.stickySidebarBtn()}),woodmartThemeModule.stickySidebarBtn=function(){var o,e=n(".wd-show-sidebar-btn,.wd-off-canvas-btn"),d=n(".wd-sidebar-opener.wd-show-on-scroll");d.length<=0||e.length<=0||((o=function(){e.offset().top+e.outerHeight()<woodmartThemeModule.$window.scrollTop()?d.addClass("wd-shown"):d.removeClass("wd-shown")})(),woodmartThemeModule.$window.on("scroll",o),woodmartThemeModule.$window.on("resize",o))},n(document).ready(function(){woodmartThemeModule.stickySidebarBtn()})}(jQuery);