[w,p]
;(null==(f=i.midAnimation)?void 0:f.animateOnHover)||T.push(h),t.forEach((e=>{const t=s(`effAdvanced${e}${i.id}`);t&&T.push(t)})),function({elements:e,effInDuration:t,currentTimeouts:n,advanceTime:i}){const o=e.filter((e=>e&&null!==e));o.length&&(t-i>0?n.push(window.setTimeout((()=>{o.forEach((e=>{P(e)}))}),t-i)):o.forEach((e=>{P(e)})))}({elements:T,effInDuration:o,currentTimeouts:r,advanceTime:a})}))}r((function(){const{noAnimation:e}=l;if(e)return;const o=u.filter(n),r=u.filter(i);function d(e){k.clear(e)}let a;function c(e,t){if(!e||function(e){return e.classList.contains("hidden")}(e))return;const n=function(e){const t=e.match(/-?\d+(\.\d+)?(ms|s)/g);return t?t.map((e=>{const t=parseFloat(e),n=e.includes("ms")?t:1e3*t;return-1===n?0:n})):[]}(window.getComputedStyle(e).animationDelay).map((e=>e-t+"ms")).join(", ");e.style.setProperty("animation-delay",n),P(e,"paused"),"true"===(null==e?void 0:e.dataset.wordsAnimation)&&e.querySelectorAll(".word").forEach((e=>c(e,t)))}function f(e,n){e.forEach((e=>{const i=n-(e.from||0);c(s(`effIn${e.id}`),i),c(s(`effOut${e.id}`),i),c(s(`effMid${e.id}`),i),t.forEach((t=>{c(s(`effAdvanced${t}${e.id}`),i)}))}))}b("playSlide",(e=>{d(a);const{slideIndex:t,slide:n,currentLoopCount:i,advanceTime:s,advanceSoasTime:l}=e.detail;!function({slideIndex:e,loopCount:t,slide:n,advanceTime:i=0,advanceSoasTime:s=0}){(0===e||s)&&(d(-1),F({elements:r,currentTimeouts:k.get(-1),slides:o,advanceTime:s,loopCount:t}));let l=n.effInDuration;l&&0===e&&0===t&&(l=0),a=e,d(e),F({slide:n,slides:o,elements:n.elements,effInDuration:l,currentTimeouts:k.get(e),advanceTime:Math.abs(i),loopCount:t})}({slideIndex:t,loopCount:i,slide:n,advanceTime:s,advanceSoasTime:l})})),b("hideSlide",(({detail:{slideIndex:e,slide:t}})=>{d(e),t.elements.forEach((e=>{$({element:e})}))})),b("stopSlide",(({detail:{slide:e,slideIndex:t,currentLoopCount:n}})=>{d(t),d(-1),requestAnimationFrame((()=>{const t=0===n?e.duration:e.effInDuration+e.duration;if(c(s(`effIn${e.id}`),t),c(s(`effOut${e.id}`),t),f(e.elements,t),r.length){let t=0;for(const i of o){const r=0===o.indexOf(i)&&0===n?0:i.effInDuration;if(t+=i.duration+r,e===i)break}f(r,t)}}))}))}));const M=(...e)=>{const t=e.length>0&&void 0!==e[0]?e[0]:"clickTag",n=window.location.search.substring(1).split("".concat(t,"="));if(!n[1])return"";let i=n[1].replace(/&.+$/,"");try{i=decodeURIComponent(i)}catch(e){return""}return null==i.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,8}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g)?"":i};function q(e){let t=e.url||window.bannerURL,{target:n}=e;const i=String(t).indexOf("bsClickTAG");if("bsClickFunc"in window){if("function"!=typeof window.bsClickFunc)throw new Error('"bsClickFunc" is not a function');let n=t,i=null;return(String(t).indexOf("bsClickTAG")>=0||String(t).indexOf("clickTag")>=0)&&(n=window[t],i=t),n&&n.indexOf("bsClickTAG")>=0&&(n=void 0),window.bsClickFunc(n,e.target,i),!1}if(-1!==i||0===String(t).indexOf("clickTag")){const e=-1!==i?null==t?void 0:t.substr(i):t;t="function"==typeof window[e]?window[e]():window[e],t||-1===i||(t=M())}else{if(!t&&!1===window.goToURLWithoutBSURL)return!1;const e=M()||window.clickTag;e&&(t=void 0===window.clickTag&&t&&e!==t&&-1===e.indexOf(t)&&-1===e.indexOf(encodeURIComponent(t))?e+encodeURIComponent(t):e,window.urlTarget&&(n=window.urlTarget))}t=function(e){return e&&0!==String(e).length?e.includes("://")||e.includes("mailto:")||e.includes("tel:")?e:"http://"+e:""}(t),window.bsOpenURL(t,n)}var z=(e,t,n)=>new Promise(((i,o)=>{var r=e=>{try{d(n.next(e))}catch(e){o(e)}},s=e=>{try{d(n.throw(e))}catch(e){o(e)}},d=e=>e.done?i(e.value):Promise.resolve(e.value).then(r,s);d((n=n.apply(e,t)).next())}));function _(e){for(const t of e)if(!document.fonts.check(`24px ${t}`))return!1;return!0}const B={fonts:!0,document:!1};function G(){"complete"!==document.readyState?setTimeout(G,50):(B.document=!0,V())}let H=!1;function V(){return z(this,null,(function*(){if(!H&&B.fonts&&B.document){o(s("designContainer")).classList.remove("not-visible");const{fonts:e}=l;try{yield function(e){return new Promise((t=>{if(_(e))return void t(!0);const n=setInterval((()=>{_(e)&&(clearInterval(n),t(!0))}),5);setTimeout((()=>{clearInterval(n),t(!1)}),1e3)}))}(e||[])}catch(e){console.error("Fonts did not load in time")}C("designReady",new Event("designReady")),window.designReady=!0,H=!0}}))}r((function(){G();const e=M()||window.clickTag||window.bannerURL;if(e){const t=o(s("designContainer"));t.style.cursor="pointer",t.addEventListener("click",(()=>{q({url:e,target:window.urlTarget||"_blank"})}))}document.querySelectorAll(".text-content a").forEach((e=>{const t=e.getAttribute("href");(null==t?void 0:t.includes("mailto:"))||(null==t?void 0:t.includes("tel:"))||e.addEventListener("click",(n=>{t&&(q({target:e.getAttribute("target")||"_blank",url:t}),n.preventDefault(),n.stopPropagation())}))}))})),window.getClickTagValue=M,B.fonts=!1;const W=()=>{B.fonts=!0,V()};function Z(e,t){const n=window.innerWidth/e,i=window.innerHeight/t;return Math.min(n,i)}var N;r((()=>{l.hasFonts?document.fonts.ready.then(W):W()})),N=()=>{var e;const{width:t,height:n}=l,i=Z(t,n),o=null==(e=s("designContainer"))?void 0:e.style;if(!o)throw new Error("designContainer not found");i>0&&(o.transform=`scale(${Z(t,n)})`,o.transformOrigin="0 0 0"),window.addEventListener("resize",(()=>{o.transform=`scale(${Z(t,n)})`,o.transformOrigin="0 0 0"}))},window.addEventListener("load",N,undefined)}();
window.bsOpenURL = function (url, target) { if (url && url.length > 0) { window.open(url, target); } }
window.goToURLWithoutBSURL = false;
function parseAdTagExternalTrackingUrls(urls) {
for(var i = 0;i
This website uses cookies.