1!function(){"use strict";window._tpt??={},_tpt.R??={},_tpt.__bundled??={},_tpt.__bundled.sr7=!0,_tpt.R.sr7??={},_tpt.R.sr7.status=2,_tpt.R.transitions??={},_tpt.R.transitions.status=2,_tpt.R.animate??={},_tpt.R.animate.status=2,_tpt.R.canvas??={},_tpt.R.canvas.status=2,_tpt.R.srtools??={},_tpt.R.srtools.status=2,_tpt.R.defaults??={},_tpt.R.defaults.status=2,_tpt.R.draw??={},_tpt.R.draw.status=2,_tpt.R.layerix??={},_tpt.R.layerix.status=2,_tpt.R.layer??={},_tpt.R.layer.status=2,_tpt.R.media??={},_tpt.R.media.status=2,_tpt.R.modifiers??={},_tpt.R.modifiers.status=2,_tpt.R.navigation??={},_tpt.R.navigation.status=2,_tpt.R.slide??={},_tpt.R.slide.status=2,_tpt.R.carousel??={},_tpt.R.carousel.status=2,_tpt.R.module??={},_tpt.R.module.status=2}(), 2/*! 3ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ 4â â 5â PLUGIN: SLIDER REVOLUTION 7.0 â 6â MODULE: MAIN PAGE MODULE â 7â VERSION: 1.0.0 â 8â DATE: 2023-01-03 â 9â AUTHOR: Krisztian H. & Sahil P. â 10â COMPANY: ThemePunch OHG. â 11â â 12â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ⣠13â â 14â UPDATES & DOCS: https://www.themepunch.com/support-center â 15â GET LICENSE: https://www.themepunch.com/links/slider_revolution_wordpre â 16â ss_regular_license â 17â â 18â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ⣠19â â 20â LICENSE: â 21â Copyright (c) 2023, ThemePunch. All rights reserved. â 22â This work is subject to the terms at: â 23â https://www.themepunch.com/links/slider_revolution_wordpress_regular_licen â 24â se (Regular / Extended) â 25â â 26ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ 27*/ 28function(){"use strict";window.SR7??={},window._tpt??={},SR7.F??={},SR7.G??={},SR7.G.breakPoints??=[1240,1024,778,480],SR7.F.reInit??=[],SR7.F.reInit.push(()=>{SR7.E.elementorBackend&&_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw","save","csssr7"]).then(()=>{SR7.F.module.collect("init")})}),SR7.F.reInit.push(()=>{window.vc_iframe&&"true"===new URLSearchParams(window.location.search).get("vc_editable")&&setTimeout(()=>SR7.F.module.collect("init"),300)}),SR7.F.init=function(e){if(void 0===_tpt.removeEmptyTags)return setTimeout(SR7.F.init,49);if(SR7.initialised){for(const e of SR7.F.reInit)e();return}const t=document.getElementsByClassName("rs-p-wp-fix");
28Array.from(t).forEach(e=>{null!==e.parentNode&&void 0!==e.parentNode&&(_tpt.removeEmptyTags(e.querySelectorAll("span")),_tpt.removeEmptyTags(e.parentNode.querySelectorAll('p:not([role="status"])')))});let s=!0;for(let e in SR7.PMH){if(!_tpt.hop(SR7.PMH,e))continue;s=!0===SR7.PMH[e].state,SR7.PMH[e].cn>99&&SR7.PMH[e].fn()}if(s&&(SR7.devMode||2===_tpt.R?.module?.status)){SR7.initialised=!0,_tpt.regResource({id:"DOM"});for(let e of SR7.E.modules)SR7.E.resources[e]??=SR7.E.plugin_url+"core/public/js/"+e+".js";for(let e of SR7.E.libs)SR7.E.resources[e]??=SR7.E.plugin_url+"core/public/js/libs/"+e.toLowerCase()+".js";for(let e of SR7.E.css)SR7.E.resources[e]??=SR7.E.plugin_url+"core/public/css/"+e.replace("css","sr7.")+".css";SR7.E.resources.csssr7=SR7.E.plugin_url+"core/public/css/sr7.css";for(let e in SR7.E.resources)_tpt.hop(SR7.E.resources,e)&&("css"==SR7.E.resources[e].split("?")[0].slice(-3)?_tpt.regResource({id:e,css:SR7.E.resources[e]}):_tpt.regResource({id:e,url:SR7.E.resources[e]}));2!==_tpt.R?.csssr7?.status&&"1"===getComputedStyle(document.body).getPropertyValue("--sr-7-css-loaded")&&(_tpt.R.csssr7={status:2}),_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw","save","csssr7"]).then(()=>{SR7.F.module.collect("init")})}else setTimeout(SR7.F.init,19)},SR7.F.regAddonResources=e=>{for(let t in e)if(_tpt.hop(e,t)){let s=t.replace("revslider-","").replace("-addon","");SR7.E.resources[s]=e[t],"css"==SR7.E.resources[s].split("?")[0].slice(-3)?_tpt.regResource({id:s,css:SR7.E.resources[t]}):_tpt.regResource({id:s,url:SR7.E.resources[t]})}},SR7.F.reinit=()=>{if(SR7.initialised){try{if(SR7.F.module.wheelModules&&(window.removeEventListener("wheel",SR7.F.module.listeners.wheel,{passive:!1}),SR7.F.module.wheelModules=void 0),_tpt.event?.keyboardTargets&&(_tpt.event.keyboardTargets={}),_tpt.resizeObserver?.removeAll?.(),_tpt.scrollObserver&&(_tpt.scrollObserver.entries=[]),_tpt.orientationObserver&&(_tpt.orientationObserver.targets={}),_tpt.focusObserver&&(_tpt.focusObserver.targets={}),_tpt.gsap?.killTweensOf){const e=document.getElementsByTagName("sr7-module");for(let t=0;t<e.length;t++)_tpt.gsap.killTweensOf(e[t])}const e=document.querySelectorAll("style.sr7-inline-css");for(let t=0;t<e.length;t++)e[t].remove()}catch(e){console.warn("SR7.F.reinit teardown skipped a step:",e)}_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw","save","csssr7"]).then(()=>{SR7.F.module.collect("ajax")})}else SR7.F.init()},window.revslider_ajax_reinit=SR7.F.reinit,SR7.F.modal={_openStack:[],_fadeOutByAlias:{},_escHandler:e=>{"Escape"===e.key&&SR7.F.modal._openStack.length&&SR7.F.modal.close()},_bindEsc:()=>{SR7.F.modal._escBound||(SR7.F.modal._escBound=!0,document.addEventListener("keydown",SR7.F.modal._escHandler))},_top:()=>SR7.F.modal._openStack.length?SR7.F.modal._openStack[SR7.F.modal._openStack.length-1]:void 0,_removeFromStack:e=>{const t=SR7.F.modal._openStack,s=t.lastIndexOf(e);s>=0&&t.splice(s,1)},_anyNeedsUnderlay:()=>{const e=SR7.F.modal._openStack;for(let t=e.length-1;t>=0;t--){const s=e[t],i=SR7.F.modal.modals?.[s];if(i&&"transparent"!==i.bg)return!0}return!1},_topNeedsUnderlay:()=>{const e=SR7.F.modal._openStack;for(let t=e.length-1;t>=0;t--){const s=e[t],i=SR7.F.modal.modals?.[s];if(i&&"transparent"!==i.bg)return s}},_syncStackPointerEvents:()=>{const e=SR7.F.modal._top();for(const t of SR7.F.modal._openStack){const s=SR7.F.modal.modals?.[t]?.id??SR7.F.module.getIdByAlias(t),i=s?SR7.M?.[s]?.c?.module:void 0;i?.style&&(i.style.pointerEvents=t===e?"":"none")}},register:e=>{let{alias:t,id:s,speed:i,bg:a,pS:r,h:n,v:o}=e;if(s??=SR7.F.module.getIdByAlias(t),void 0!==s&&void 0!==SR7.M[s]&&SR7.M?.[s]?.c?.module?.dataset?.modal){let e=_tpt.strSetToObj(SR7.M?.[s]?.c?.module?.dataset?.modal??"");void 0!==e.bg&&(a=e.bg),void 0!==e.sp&&(i=parseInt(e.sp)/1e3)}SR7.F.modal.modals??={},SR7.F.modal.modals[t]={id:s,alias:t,speed:i,bg:a,pS:r,h:n,v:o},SR7.M[s]&&(SR7.M[s].modalRegistered=!0)},build:()=>{document.querySelector("sr7-modals")||(SR7.F.modal.wrap=document.createElement("sr7-modals"),SR7.F.modal.wrap.innerHTML="<sr7-modal-underlay></sr7-modal-underlay>",SR7.F.modal.cover=SR7.F.modal.wrap.getElementsByTagName("sr7-modal-underlay")[0],SR7.F.modal.cover.style.opacity=0,SR7.F.modal.cover.style.zIndex=0,document.body.appendChild(SR7.F.modal.wrap),SR7.F.modal.wrap.addEventListener("click",e=>{"SR7-MODAL-UNDERLAY"!=e.target.tagName&&"SR7-MODALS"!=e.target.tagName||SR7.F.modal.close()}))},updatePos:()=>{let e=SR7.F.module.getIdByAlias(SR7.F.modal.requested),t=SR7.M?.[e]??void 0,s=SR7.F.modal.modals[SR7.F.modal.requested],i=t?.c?.module?.style??void 0;if(null==i)return;i.display="block",i.opacity=1,i.pointerEvents="",i.position="absolute";let a=SR7.gV?.({v:t.settings.size.width,id:e,u:0})??t.settings.size.width[0]??"100%";i.width="center"!==s.h?"auto":t.settings.size.fullWidth?"100%":a+"px",i.left="center"!=s.h||t.settings.size.fullWidth?"right"!==s.h?"0px":"auto":"50%",i.right="right"==s.h?"0px":"auto";let r="center"!=s.h||t.settings.size.fullWidth?"0px":"-50%";if(t.dims.module.h<_tpt.winH)return i.transform="middle"==s.v?"translate("+r+", -50%)":"translate("+r+", 0px)",void("center"!=s.h||t.settings.size.fullWidth?i.inset="middle"==s.v?"50% 0px auto":"top"==s.v?"0px 0px auto 0px":"auto 0px 0px 0px":i.inset="middle"==s.v?"50% 50% auto 50%":"top"==s.v?"0px 50% auto 50%":"auto 50% 0px 50%");i.top="0px",i.transform="translate("+r+", 0px)"},underlay:(e,t)=>{const s=t??SR7.F.modal._topNeedsUnderlay()??SR7.F.modal.requested;let i=SR7.M?.[SR7.F.module.getIdByAlias(s)]??void 0,a=SR7.F.modal?.modals?.[s],r=i?.c?.module??void 0,n=SR7.F.modal.wrap.style,o=document.body.style;if("show"==e)return SR7.F.modal.cover.style.backgroundColor=a?.bg,SR7.F.modal.cover.style.pointerEvents="transparent"==a?.bg?"none":"auto",SR7.F.modal.fadeOutAnimation&&SR7.F.modal.fadeOutAnimation.isActive()&&SR7.F.modal.fadeOutAnimation.kill(),n.display="block",n.position=SR7.F.modal?.sbt?"absolute":"fixed",n.top=0,n.left=0,n.width="100%",n.height=SR7.F.modal?.sbt?i.dims.moduleRect.height+"px":"100%",
28n.pointerEvents="transparent"==a.bg?"100%"==n.height||n.height>_tpt.winH?"auto":"none":"auto",n.zIndex=999999,SR7.F.modal.lastDocStyle={width:document.body.style.width,height:document.body.style.height,overflow:document.body.style.overflow,sx:window.scrollX,sy:window.scrollY},o.width="100%",o.height="100%",a?.pS||(o.overflow=SR7.F.modal?.sbt?"hidden scroll":"hidden"),SR7.F.modal.updatePos(),SR7.F.modal.requested=SR7.F.modal._top(),void _tpt.gsap.to(SR7.F.modal.cover,a?.speed??.3,{opacity:1,ease:"power3.out"});SR7.F.modal._anyNeedsUnderlay()?SR7.F.modal.requested=SR7.F.modal._top():SR7.F.modal.fadeOutAnimation=_tpt.gsap.to(r?[r,SR7.F.modal.cover]:SR7.F.modal.cover,a?.speed??.3,{opacity:0,ease:"power3.out",onComplete:function(){SR7.F.modal.sbt=!1,n.display="none",r&&(r.style.display="none"),o.height=SR7.F.modal.lastDocStyle.height,o.overflow=SR7.F.modal.lastDocStyle.overflow,o.width=SR7.F.modal.lastDocStyle.width,window.scrollTo(SR7.F.modal.lastDocStyle.sx,SR7.F.modal.lastDocStyle.sy)}})},create:(e,t,s)=>{null==t&&((t=document.createElement("sr7-module")).innerHTML="<sr7-adjuster></sr7-adjuster><sr7-content></sr7-content>"),t.id=s,t.dataset.alias??=e.alias??e.settings?.alias??"",t.dataset.id=e.id,SR7.M??={},SR7.M[s]??={};let i=SR7.M[s];return i.settings??={size:{}},i.c??={},i.c.module??=t,i.c.content??=t.getElementsByTagName("sr7-content")[0],i.c.adjuster??=t.getElementsByTagName("sr7-adjuster")[0],i.dims??={},i.dims.content??={},i.dims.CFC??={},i.dims.module??={},i.states??={inViewPort:!0},i.useAsModal=!0,SR7.F.modal.wrap.appendChild(t),SR7.JSON??={},SR7.JSON[t.id]=e,SR7.F.module.register(t,t.id,!1),t},updateContainers:(e,t)=>{let s=SR7.M[e];s.c??={},s.c.module??=t,s.c.content??=t.getElementsByTagName("sr7-content")[0],s.c.adjuster??=t.getElementsByTagName("sr7-adjuster")[0]},loaded:(e,t,s,i)=>{SR7.F.modal.updateContainers(e,SR7.M[e].c.module),SR7.M[e].useAsModal=!0,SR7.M[e].modalRegistered=!1,SR7.M[e].states??={},SR7.M[e].states.inViewPort=!0;const a=function(t){t.id==e&&SR7.M[t.id]?.settings?.sbt?.use&&(window.dispatchEvent(new Event("resize")),document.removeEventListener("sr.slide.changeRequest",a))};document.addEventListener("sr.slide.changeRequest",a),_tpt.event.trigger("dom","sr.module.loaded",{result:i,id:e,slide:String(t).replace("#","")}),_tpt.event.trigger("dom","sr.modal.loaded",{id:e,alias:s}),_tpt.event.trigger("dom","sr.modal.open",{id:e,alias:s,slide:t}),SR7.F.modal.requested=SR7.F.modal._top()??SR7.F.modal.requested,SR7.F.modal._syncStackPointerEvents()},load:(e,t,s)=>{let i=SR7.F.module?.getIdByAlias?.(e),a=e;void 0===SR7?.JSON?.[i]&&void 0===SR7.JSON?.[e]?_tpt.restAPI({action:"slider.get.full_object",version:7,id:s??i,alias:e,forcealias:null==i,callBack:e=>{if("object"!=typeof e)try{e=JSON.parse(e)}catch{e=_tpt.fixResponse(e)}let{success:r,alias:n}=e;if(null==n&&(n=e?.settings?.alias??a),r){SR7.F.regAddonResources(e.addOns??{});let s=SR7.M?.[i]??SR7.F?.module?.get(SR7.F.module.getIdByAlias(n??a));i??=s?.id??"SR7_"+e.id+"_"+(SR7.F?.module?.getNextSuffx?.(e.id)??1),s=SR7.F.modal.create(e,s?.c?.module,i),SR7.F.modal.requested=n??e.settings?.alias??SR7.F.modal.requested,requestAnimationFrame(function(){SR7.F.modal.loaded(i,t,a,e)})}else s?console.log(n+" Could not be Loaded from DB"):SR7.F.modal.load(a,t,SR7.M[i]?.c?.module?.dataset?.id??void 0)}}):(SR7.F.modal.wrap.appendChild(SR7.M[i].c.module),SR7.F.modal.loaded(i,t,e,SR7.JSON[i]))},open:(e,t=0)=>{null!=e&&_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw"]).then(()=>{let s=SR7.F?.module?.getIdByAlias(e);if(!SR7?.M?.[s]?.c?.module||SR7.M?.[s]?.useAsModal||SR7.M?.[s].c.module?.dataset?.modal){if(SR7.F.modal.build(),SR7.F.modal._removeFromStack(e),SR7.F.modal._openStack.push(e),SR7.F.modal._bindEsc(),SR7.F.modal.requested=SR7.F.modal._top(),SR7.F.modal.visible=!0,!(SR7.M?.[s]&&SR7.M[s].slides&&SR7.F.modal.modals?.[e]&&SR7.M[s]?.settings))return SR7.F.modal.load(e,t);{SR7.F.modal.wrap.appendChild(SR7.M[s].c.module),SR7.M[s].useAsModal=!0,SR7.F.modal._fadeOutByAlias?.[e]?.kill?.(),SR7.F.modal._fadeOutByAlias&&delete SR7.F.modal._fadeOutByAlias[e];const i=SR7.M[s]?.c?.module;i?.style&&(_tpt.gsap?.killTweensOf?.(i),i.style.display="block",i.style.opacity="1",i.style.pointerEvents=""),SR7.F.modal.underlay("show"),_tpt.gsap.set(SR7.F.modal.wrap,{scrollTop:0}),_tpt.event.trigger("dom","sr.modal.open",{id:s,alias:e,slide:t}),SR7.M[s].states??={},SR7.M[s].states.inViewPort=!0,SR7.F.isCarousel(s)||(SR7.M[s].current={id:-1,slide:-1,index:-1},SR7.M[s].next={id:-1,slide:-1,index:-1}),SR7.M[s].states??={},SR7.M[s].states.sceneInProgress=!1,clearTimeout(SR7.M[s].states.waitingForNextCallTimer),delete SR7.M[s].states.waitingForNextCallTimer,delete SR7.M[s].states.waitingForNextCall,SR7.F.resetGlobalLayers(s);try{for(const e of["psin","psout","bg"])SR7.FX?.destroy?.("bgfx:"+s,e)}catch(e){}SR7.M[s]?.c&&delete SR7.M[s].c.leavingBG,SR7.F.requestSlide({id:s,slide:t}),SR7.F.modal._syncStackPointerEvents(),SR7.M?.[s]?.settings?.sbt?.use&&window.dispatchEvent(new Event("resize"))}}else console.warn("Attempt to open a Slider Module ("+e+") as a Modal detected.\n\nPlease note:\n- You cannot use a Slider Module as a Modal on the same page where the Module is already added as a non-Modal element.\n- To use the Slider Module as a Modal:\n A) Ensure it is not already present on the page as a non-Modal element allowing the Slider Module to be loaded on demand as a Modal.\n B) (OR) Modify the Page Module Settings to set 'Pop
28Up' to true.")})},close:e=>{const t="current"==e||"_self"==e?SR7.F.modal._top():e??SR7.F.modal._top();if("all"===t){const e=SR7.F.modal._openStack.slice();for(let t=e.length-1;t>=0;t--){const s=e[t];s&&"allmodal"!==s&&SR7.F.modal.close(s)}return SR7.F.modal._openStack.length=0,SR7.F.modal.requested=void 0,SR7.F.modal.visible=!1,void(SR7.F.modal.wrap&&SR7.F.modal.underlay("hide"))}if(!t)return;const s=SR7.F.modal.modals?.[t]?.id??SR7.F.module.getIdByAlias(t),i=s?SR7.M?.[s]??void 0:void 0,a=SR7.F.modal.modals?.[t],r=a?.speed??.3;if(SR7.F.modal._removeFromStack(t),SR7.F.modal.requested=SR7.F.modal._top(),SR7.F.modal.visible=SR7.F.modal._openStack.length>0,s&&i?.c?.module){"carousel"!==i.settings?.type&&SR7.F.closeSlide(s);const e=i.c.module;SR7.F.modal._fadeOutByAlias?.[t]?.isActive?.()&&SR7.F.modal._fadeOutByAlias[t].kill(),e?.style&&(e.style.display="block",e.style.pointerEvents="none"),SR7.F.modal._fadeOutByAlias[t]=_tpt.gsap.to(e,{duration:r,opacity:0,ease:"power3.out",onComplete:()=>{SR7.F.modal._openStack.includes(t)||e?.style&&(e.style.display="none",e.style.pointerEvents="none")}})}if(_tpt?.event&&_tpt.event.trigger("dom","sr.modal.close",{id:s,alias:t}),SR7.F.modal._anyNeedsUnderlay()){const e=SR7.F.modal._topNeedsUnderlay();return e&&SR7?.F?.modal&&(SR7.F.modal.underlay("show",e),SR7.F.modal.updatePos()),void SR7.F.modal._syncStackPointerEvents()}SR7.F.modal.wrap&&SR7.F.modal.underlay("hide")},trigger:(e,t,s)=>{if(null==s)return!1;let i=_tpt.strSetToObj(s);if(null==i)return!1;void 0!==i.sp&&(i.sp=parseInt(i.sp)/1e3);let a=!0;if(void 0!==i.co?a=""+_tpt.cookie.get(t.dataset.alias+"_modal_one_time")!="true":"true"==_tpt.cookie.get(t.dataset.alias+"_modal_one_time")&&_tpt.cookie.set(t.dataset.alias+"_modal_one_time",!1,10),a&&(SR7.F.modal.modals??={},SR7.F.modal.modals[e]={alias:e,speed:i.sp,bg:i.bg,pS:i.pS,v:i.v,h:i.h},void 0!==i.t&&(void 0!==i.co&&_tpt.cookie.set(t.dataset.alias+"_modal_one_time",!0,i.co),setTimeout(function(){SR7.F.modal.open(e)},parseInt(i.t))),void 0===i.so&&void 0===i.s||(_tpt.scrollObserver.observe(window),window.observSR7Globals??={},i.so=void 0!==i.s?i.s:i.so,window.observSR7Globals[e]={params:{alias:e,element:i.so.includes("#")?document.querySelector(i.so)??void 0:void 0,co:i.co,offset:parseInt(i.so??0)},callback:e=>{let{alias:s,element:i,offset:a,co:r}=e;null!=window.observSR7Globals[s]&&(void 0!==i?i.getBoundingClientRect().top<=_tpt.winH/2:a<=_tpt.scrollObserver.y)&&(void 0!==r&&_tpt.cookie.set(t.dataset.alias+"_modal_one_time",!0,r),SR7.F.modal.open(s),delete window.observSR7Globals[s])}},_tpt.scrollObserver.run(window))),void 0!==i.e&&document.addEventListener(i.e,function(t){SR7.F.modal.open(e,parseInt(t?.detail?.slide||1)-1)}),"t"==i.ha&&void 0!==t){const s="#"+t.dataset.alias,i=()=>{window.location.hash===s&&SR7.F.modal.open(e)};window.location.hash===s&&setTimeout(function(){SR7.F.modal.open(e)},500),window.addEventListener("hashchange",i),SR7.F.modal._hashClickListeners??={},SR7.F.modal._hashClickListeners[s]||(SR7.F.modal._hashClickListeners[s]=!0,document.addEventListener("click",function(e){const t=e.target?.closest?.("a[href]");if(!t)return;const a=t.getAttribute("href");a&&"#"===a.charAt(0)&&a===s&&setTimeout(i,0)},!0))}return!0}};class e{constructor(e){return this.element=document.getElementById(e),this}bind(e,t){return this.element.addEventListener(e,t),this}unbind(e,t){return this.element.removeEventListener(e,t),this}on(e,t){return this.element.addEventListener(e,t),this}off(e,t){return this.element.removeEventListener(e,t),this}one(e,t){const s=i=>{t(i),this.element.removeEventListener(e,s)};return this.element.addEventListener(e,s),this}find(e){return Array.from(this.element.querySelectorAll(e))}wrap(){console.log("jQuery is not supported")}revgetparallaxproc(){return SR7.M[this.element.id].scrollProc}revaddcallback(e){SR7.M[this.element.id].c.callBacks??=[],SR7.M[this.element.id].c.callBacks.push(e)}getRSVersion(){return SR7.E?.revision??"7.0.0"}scroll(e,t=400,s="power3.out"){SR7.F.scrollToId({id:this.element.id,offset:e,action:"scrollunder",anchor:this.element.id,speed:t,ease:s})}
28redraw(){SR7.F.updateModuleDims(this.element.id,!0,!0)}removeSlide(e){let t=SR7.M[this.element.id].slideOrder.indexOf(e),s=this.element.id;SR7.M[s].slideOrder.splice(t,1),SR7.M[s].slides[e]?.slide?.slideshow?.hfn||SR7.M[s].navLen--,SR7.M[s].len--,SR7.M[s].current.id==e&&SR7.F.requestSlide({id:s,slide:"+1"}),SR7.M[s].c.slides[e].remove(),delete SR7.M[s].slides[e],delete SR7.M[s].c.slides[e];for(let t of["bullets","thumbs","tabs"])if(SR7.M[s].c.nav?.[t]?.elements){let i=0;for(let a of SR7.M[s].c.nav[t].elements){if(a.dataset.key==e){a.remove();break}i++}SR7.M[s].c.nav[t].elements.splice(i,1)}SR7.F.navigation.update(s)}modal(){}start(){SR7.F.runModule(this.element.id)}playScene(e,t){let{skey:s,id:i,lkey:a}=SR7.F.getLayer(e),r=SR7.M?.[i]?.slides?.[s]?.layers?.[a].tl?.[t];return!!r&&(SR7.F.animateLayers({id:i,skey:s,layers:[a],scene:t,caller:"action"}),{id:i,skey:s,layers:[a],scene:t,caller:"action"})}goToFrame(e){if(null!=e&&null!=e.layerid&&null!=e.frame)return this.playScene(e.layerid,e.frame)}pause(){SR7.slideShow.pause(this.element.id)}forcedPause(){SR7.slideShow.pause(this.element.id,!0)}resume(){SR7.slideShow.resume(this.element.id)}nextSlide(){SR7.F.requestSlide({id:this.element.id,slide:"+1"})}prevSlide(){SR7.F.requestSlide({id:this.element.id,slide:"-1"})}currentSlide(){let e=SR7.M[this.element.id];return{index:e.slideOrder.indexOf(e.current.id),key:e.current.id,order:e.slideOrder.indexOf(e.current.id)+1}}maxSlide(){return SR7.M[this.element.id].len}lastSlide(){return SR7.M[this.element.id].navLen}showSlide(e){let t=SR7.M[this.element.id];SR7.F.requestSlide({id:this.element.id,slide:"first"==e?"#"+t.slideOrder[0]:"last"==e?"#"+t.slideOrder[t.len-1]:"random"==e?Math.round(Math.random()*t.len+1):"#"+(Array.isArray(e)?e[0]:e)})}kill(){SR7.slideShow.pause(this.element.id),_tpt.event.rmAll(this.element),SR7.M[this.element.id].c.module.remove()}}SR7.revapi=e,e.init=function(t){let s=(SR7.M[t].c.module.dataset.id??SR7.M[t].settings.dbid)||(t.includes("SR7_")?t.split("_")[1]:t);return window["revapi"+s]=new e(t),window["revapi"+s].id=t,window["revapi"+s]},SR7.shouldBeInited&&SR7.F.init(),_tpt.R??={},_tpt.R.sr7=_tpt.extend?_tpt.extend(_tpt.R.sr7,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},SR7.F.hideLeavingSlide=function(e,t){if(null==e||null==t||-1==t)return;const s=SR7.M[e];SR7.F.isCarousel(e)||s.slides?.[t]?.slide?.global||SR7.F.sbt?.storyMode?.(e)||this.lastSkey!=t&&(this.lastSkey=t,s.c.slides[t].style.display="none",s.c.slides[t].style.visibilty="hidden",s.c.slides[t].style.pointerEvents="none",s.zOrder={})},SR7.F.slideDelayFinished=e=>{if("fake"!=e){if(!SR7.E.backend){const t=SR7.F.fx?.visibleSlideKeys?.(e)??SR7.M[e].current?.id;
28SR7.F.fx?.collect?.(e,t);const s=new Set(Array.isArray(t)?t.map(String):[String(t)]),i=SR7.M[e]?.prev?.id;void 0!==i&&-1!==i&&s.add(String(i));const a=SR7.M[e]?.c?.tl;for(const t in a){if(s.has(String(t))||SR7.M[e]?.slides?.[t]?.slide?.global)continue;const i=a[t];for(const e in i){const t=i[e];t&&"object"==typeof t&&(t.TL?.pause?.(),t.BGTL?.pause?.(),t.PAN?.pause?.(),t.loops?.pause?.())}}}clearTimeout(SR7.M[e].states.waitingForNextCallTimer),delete SR7.M[e].states.waitingForNextCallTimer,SR7.M[e].states.sceneInProgress&&(SR7.M[e].states.sceneInProgress=!1,SR7.M[e].states.waitingForNextCall&&setTimeout(()=>{SR7.M[e]?.states?.waitingForNextCall&&SR7.F.requestSlide(SR7.M[e].states.waitingForNextCall)},100))}},SR7.F.getRandomSlidetransition=(e,t=0)=>{if(t>10)return null;const s=Object.keys(e).filter(e=>"in"!==e&&"out"!==e&&"icon"!==e);if(0===s.length)return null;const i=e[s[Math.floor(Math.random()*s.length)]];return i.title?i:i.title||"object"!=typeof i?SR7.F.getRandomSlidetransition(e,t+1):SR7.F.getRandomSlidetransition(i,t+1)},SR7.F.animateBG=function(e){const{timeline:t,scene:s,id:i,c:a,layer:c}=e,m=SR7.M[i];r(s,a,SR7.F.sbt?.storyMode?.(i)),n(a);let f=o(m,t);f.d=parseInt(f.d),f=l(f,s,SR7.F.sbt?.storyMode?.(i)?{store:(m.sbt??={}).__bgPick??={},key:a.skey+":"+s}:void 0),f=d(f,s);
28let S=a.temp=p(a,f,s,i,m);return"SR7-PREVIEW-BG"==a.el.tagName&&a._three&&(S.three=a._three),u(S,f,s,m),h(s,f,S,a,m,i),f="double"==f.p?SR7.D.transitions.slidingoverlay.updateAnim(f,S):f,f[s].e??=f.e??"power2.inOut",S.fdf=S.col*S.row<2&&(parseInt(f.out?.col)||1)*(parseInt(f.out?.row)||1)<2||null==f.dir?"start":f.dir,f.d3=g(f.d3,S.d,S.sdir),"in"===s&&SR7.E.backend&&_tpt.gsap.set([a.el,a.mask,a.canvas.canvas],{x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0}),SR7.D.transitions.buildTimeline(i,a,S,f,c),S.TL};const e=e=>void 0===e||0===e||"0"===e||"0%"===e||"0px"===e,t=t=>!t||e(t.x)&&e(t.y)&&(void 0===t.sx||1===parseFloat(t.sx))&&(void 0===t.sy||1===parseFloat(t.sy))&&e(t.r),s=e=>{const t=String(e??"").match(/^(none|linear|power[0-4]|sine|expo|circ|back|bounce)(?:\.(in|out|inOut))?$/);return t?"none"===t[1]||"linear"===t[1]||"power0"===t[1]?0:10*{power1:1,power2:2,power3:3,power4:4,sine:5,expo:6,circ:7,back:8,bounce:9}[t[1]]+{in:0,out:1,inOut:2}[t[2]??"out"]:11},i=(e,t,s,i,a,r,n)=>{if(a||t<=1)return 0;let o=Math.max(1,Math.abs(parseFloat(s)||1),Math.abs(parseFloat(i)||1));return r&&(o*=1.5),Math.max(0,Math.min(t-1,n,Math.floor(e*t+o/2+.5-1e-4)))},a=(e,t,s,a,r,n,o,l)=>Math.max(i(Math.abs(e[0]),r,t,s,a,o,l),i(Math.abs(e[1]),n,t,s,a,o,l));SR7.D.transitions={...SR7.D.transitions,buildTimeline:(e,t,s,i,a)=>{if(null!=i.tr&&SR7.D.transitions[i.tr]?.buildTimeline)s.TL=SR7.D.transitions[i.tr].buildTimeline(e,t,s,i,a),SR7.D.transitions?.[i.tr]?.extendTimeLine&&s.TL.add(SR7.D.transitions[i.tr].extendTimeLine(s,i,t),0);else{if(!((SR7.D.transitions.bgPerSlide??!0)&&SR7.D.transitions._isPerSlideBG(e,t,s,i)?SR7.D.transitions.perSlideBG(e,t,s,i):SR7.D.transitions.tryWebGLTransition(e,t,s,i))){"in"===s.scene&&t.canvas?.canvas&&(t.canvas.canvas.style.visibility="visible",t.canvas.canvas.style.opacity=1,SR7.F.bgThaw?.(t.canvas)),"in"===s.scene&&SR7.D.transitions.bgOwn(e,null);const a="out"===s.scene?s.d/1e3+("nodelay"===s.fdf?0:s.sd||0):.001;s.TL.to({p:0},a,{p:1,ease:"none"},"out"===s.scene?i.out?.outdelay??0:0)}}s.TL.eventCallback("onStart",async function(e){e.c.slideBGAnimating=!0,e.c.TSS=Date.now(),"in"===e.scene&&"fake"!==e.id?await SR7.F.triggerLayerEvent(e,"enterstage"):"out"===e.scene&&"fake"!==e.id&&await SR7.F.triggerLayerEvent(e,"leavestage"),"fake"!==e.id&&SR7.F.animEvents.frameStarted(e),SR7.D.transitions.default.start(e.c,e.id,e.scene)},[{c:t,caller:"animateBG",frame:0,pE:i[s.scene].pE,scene:s.scene,layer:a,id:s.id}]),"SR7-PREVIEW-BG"==t.el.tagName||(s.TL.eventCallback("onComplete",e=>SR7.D.transitions.handleCallback(e,s),[{c:t,caller:"animateBG",frame:0,scene:s.scene,layer:a,id:s.id}]),s.TL.eventCallback("onInterrupt",e=>SR7.D.transitions.handleCallback(e,s,"onInterrupt",!0),[{c:t,caller:"animateBG",frame:0,scene:s.scene,layer:a,id:s.id}]))},handleCallback:async(e,t,s="onComplete",i=!1)=>{let a=Date.now(),r=a-(e.c?.TSS??a-50)<20?5:0;r||SR7.D.transitions.default.complete(e.c,e.id,e.scene,i),e.c.slideBGAnimating=!1,setTimeout(()=>{if("html5"===e.c.media?.player.options.type){const t="out"!==e.scene||SR7.E.backend?null:SR7.FX.live?.["bgfx:"+e.id+":bg"];t&&t._xfActive?(t._leaveVidC=e.c,t._xfRepaint=!0):e.c.media.stopCanvas()}e.interrupt=i,SR7.F.animEvents.framesCompleted(e),r&&SR7.D.transitions.default.complete(e.c,e.id,e.scene,i),t[`${s}Callback`]&&t[`${s}Callback`](t,e.c,e.id),SR7.E.backend||e.c.skey!=SR7.M[e.id].current.id||SR7.F.slideDelayFinished(e.id)},r)},_clampGrid:(e,t,s,i)=>[Math.max(1,Math.min(Math.max(1,parseInt(e)||1),Math.max(1,Math.floor(Math.max(1,s)/3)))),Math.max(1,Math.min(Math.max(1,parseInt(t)||1),Math.max(1,Math.floor(Math.max(1,i)/3))))],fxReuse:(e,t,s,i,a,r,n)=>{let o=SR7.FX.live?.[e+":"+t];if(!o)return null;if(o.w===s&&o.h===i||SR7.FX.resize(o,s,i),o._sig!==a){if(n&&"raw"===o.backend&&!r)try{if(SR7.FX.rebuild(o,n),o.passes?.length)return o._sig=a,o}catch(e){}try{r?.(o)}catch(e){}try{SR7.FX.destroy(e,t)}catch(e){}return null}return o},bgMaxR:1,bgDefines:e=>{const t={LEAN:1};if(e.grid&&(t.GRID=1),e.gridN){t.GRID=1,t.GRIDN=1;const s=SR7.D.transitions.bgMaxR??5;t.GRIDRX=Math.max(0,Math.min(s,e.gridRX??s)),t.GRIDRY=Math.max(0,Math.min(s,e.gridRY??s))}if(e.varying&&e.varying.length){t.VAR=1;for(const s of e.varying)t["VS"+s]=1}
28if(e.ease){for(const s of e.ease)t["EF"+s]=1;const s=[...e.ease];1===s.length&&s[0]>=1&&s[0]<=4&&(t.POWEXP=s[0]+1+".0")}return e.varTex&&(t.VARTEX=1),e.stagRandom?t.SF_RANDOM=1:0===e.stagFrom?t.SF_START=1:1===e.stagFrom?t.SF_END=1:2===e.stagFrom?t.SF_MID=1:3===e.stagFrom&&(t.SF_EDGES=1),e.rotates||(t.NOROT=1),e.mb&&(t.MB=1,t.MBTAPS=Math.max(1,Math.min(16,e.mbTaps??16))),e.thru&&(t.THRU=1),e.filter&&(t.FILTER=1),e.discBlur&&(t.FILTER=1,t.FBLUR=1,t.FBTAPS=Math.max(1,Math.min(24,e.fbTaps??24))),e.double&&(t.DOUBLE=1),t},fxTex:(e,t,s)=>{const i=e.texFromCanvas(t,s);return i&&(i._allocW=t.width,i._allocH=t.height),i},comingUniforms:(e,t,i={})=>{let{cols:a=1,rows:r=1,colsO:n=1,rowsO:o=1,sd:l=0,fdf:d,d:c=1e3,sdir:p=1,cvW:u=1,cvH:h=1,thru:g=!1,frameE:m}=i;[a,r]=SR7.D.transitions._clampGrid(a,r,u,h),[n,o]=SR7.D.transitions._clampGrid(n,o,u,h),i.cols=a,i.rows=r,i.colsO=n,i.rowsO=o;const f=(e,t)=>{const s=parseFloat(SR7.F.getSpecialValue(e,0,p));return isNaN(s)?t:s};e.inOff&&(e.inOff.value=[(SR7.F.getOffset(t.x,t.m?u/a:u,p,0)||0)/u,-(SR7.F.getOffset(t.y,t.m?h/r:h,p,0)||0)/h]),e.inScale&&(e.inScale.value=[void 0!==t.sx?f(t.sx,1):1,void 0!==t.sy?f(t.sy,1):1]),e.inOp&&(e.inOp.value=f(t.o,1)),e.inRot&&(e.inRot.value=-Math.PI/180*f(t.r,0)),e.aspect&&(e.aspect.value=h?u/h:1),e.grid&&(e.grid.value=[a,r]);const S=(a>1||r>1||n>1||o>1)&&"nodelay"!==d&&l||0;e.stagger&&(e.stagger.value=S?Math.max(0,Math.min(.9,S/Math.max(c/1e3+S,1e-4))):0);const y="oppslidebased"==d?1==p?"end":"start":"slidebased"==d?1==p?"start":"end":d;return e.staggerFrom&&(e.staggerFrom.value={start:0,end:1,center:2,edges:3,random:4}[y]??0),e.easeId&&(e.easeId.value=S||g?s(t.e||(g?"power2.inOut":m)||"power2.inOut"):0),S},leavingUniforms:(e,t,s={})=>{const{colsO:i=1,rowsO:a=1,sdir:r=1,cvW:n=1,cvH:o=1}=s,l=(e,t)=>{const s=parseFloat(SR7.F.getSpecialValue(e,0,r));return isNaN(s)?t:s};e.outOff&&(e.outOff.value=[(SR7.F.getOffset(t.x,t.m?n/i:n,r,0)||0)/n,-(SR7.F.getOffset(t.y,t.m?o/a:o,r,0)||0)/o]),e.outScale&&(e.outScale.value=[void 0!==t.sx?l(t.sx,1):1,void 0!==t.sy?l(t.sy,1):1]),e.outOp&&(e.outOp.value=l(t.o,1)),e.outRot&&(e.outRot.value=-Math.PI/180*l(t.r,0))},_easeSet:e=>{const t=new Set;for(const i of e){if(!i)continue;const e=s(i);e>=9.5&&t.add(Math.floor(e/10+.001))}return t},_varSlots:(e,t={},s={})=>{const{cols:i=1,rows:a=1,colsO:r=1,rowsO:n=1,sdir:o=1,cvW:l=1,cvH:d=1}=s,c=e=>"string"==typeof e&&(-1!==e.indexOf("[")||-1!==e.indexOf("{")),p=e=>{const t=parseFloat(SR7.F.getSpecialValue(e,0,o));return isNaN(t)?1:t},u=[[e.x,0,t=>(SR7.F.getOffset(t,e.m?l/i:l,o,0)||0)/l],[e.y,1,t=>-(SR7.F.getOffset(t,e.m?d/a:d,o,0)||0)/d],[e.r,2,e=>-Math.PI/180*(parseFloat(SR7.F.getSpecialValue(e,0,o))||0)],[e.sx,3,p],[e.sy,4,p],[t.x,5,e=>(SR7.F.getOffset(e,t.m?l/r:l,o,0)||0)/l],[t.y,6,e=>-(SR7.F.getOffset(e,t.m?d/n:d,o,0)||0)/d],[t.r,7,e=>-Math.PI/180*(parseFloat(SR7.F.getSpecialValue(e,0,o))||0)],[t.sx,8,p],[t.sy,9,p]],h=[];for(const[e,t,s]of u){if(!c(e))continue;const i=-1!==e.indexOf("["),a=e.replace(/^[^\[{]*[\[{]/,"").replace(/[\]}][^\]}]*$/,"").split(",").map(e=>s(e.trim()));a.length&&!a.some(e=>!isFinite(e))&&h.push({slot:t,list:a,isArr:i,max:Math.max(...a.map(Math.abs))})}return h},boxVariation:(e,t,s,i={},a={})=>{const r={};if(!e.varM||!e.varR)return r;const n=t._varM??=new Float32Array(30),o=t._varR??=new Float32Array(20);n.fill(0);let l=0,d=null;for(const{slot:e,list:t,isArr:c,max:p}of SR7.D.transitions._varSlots(s,i,a)){if(c){let s=Math.min(...t),i=Math.max(...t);if(i-s<1e-9&&(i=s+1e-9),l+t.length>64)continue;d??=new Uint8ClampedArray(256);for(let e=0;e<t.length;e++){const a=Math.round((t[e]-s)/(i-s)*65535),r=4*(l+e);d[r]=a>>8,d[r+1]=255&a,d[r+3]=255}n[3*e]=2,n[3*e+1]=l,n[3*e+2]=t.length,l+=t.length}else n[3*e]=1;o[2*e]=t[0],o[2*e+1]=c?Math.max(...t):t[1]??t[0],c&&(o[2*e]=Math.min(...t)),r[e]=p}if(e.varM.value=n,e.varR.value=o,e.varSeed&&(e.varSeed.value=100*Math.random()),d&&e.varTex){const s=t._varCv??=(()=>{const e=document.createElement("canvas");return e.width=64,e.height=1,e})();s.getContext("2d").putImageData(new ImageData(d,64,1),0,0),t._varTexObj?t._varTexObj.needsUpdate=!0:t._varTexObj=t.texFromCanvas(s),e.varTex.value=t._varTexObj}return r},bgRadius:(e,t={},s={})=>{const{cols:a=1,rows:r=1,colsO:n=1,rowsO:o=1,sdir:l=1,cvW:d=1,cvH:c=1}=s,p={};for(const i of SR7.D.transitions._varSlots(e,t,s))p[i.slot]=i.max;const u=(e,t)=>
28{const s=parseFloat(SR7.F.getSpecialValue(e,0,l));return isNaN(s)?t:s},h=(e,t,s,i)=>Math.abs((SR7.F.getOffset(e,t?s/i:s,l,0)||0)/s),g=SR7.D.transitions.bgMaxR??5,m=(e,t,s,a,r,n)=>i(e,t,s,a,r,n,g),f=void 0!==p[2]||0!==u(e.r,0),S=void 0!==p[7]||0!==u(t.r,0),y=m(p[0]??h(e.x,e.m,d,a),a,p[3]??e.sx,p[4]??e.sy,!!e.m,f),v=m(p[1]??h(e.y,e.m,c,r),r,p[3]??e.sx,p[4]??e.sy,!!e.m,f),R=m(p[5]??h(t.x,t.m,d,n),n,p[8]??t.sx,p[9]??t.sy,!!t.m,S),b=m(p[6]??h(t.y,t.m,c,o),o,p[8]??t.sx,p[9]??t.sy,!!t.m,S),w=Math.max(y,R),x=Math.max(v,b);return{x:w,y:x,max:Math.max(w,x),in:Math.max(y,v)}},boxNeighbourRadius:(e,t,s={},i={},r={})=>{const{cols:n=1,rows:o=1,colsO:l=1,rowsO:d=1,sdir:c=1}=r,p=(e,t)=>{const s=parseFloat(SR7.F.getSpecialValue(e,0,c));return isNaN(s)?t:s},u=r.maxR??5,h=a([i[0]??Math.abs(e.inOff.value[0]),i[1]??Math.abs(e.inOff.value[1])],i[3]??t.sx,i[4]??t.sy,!!t.m,n,o,void 0!==i[2]||0!==p(t.r,0),u),g=a([i[5]??Math.abs(e.outOff?.value?.[0]||0),i[6]??Math.abs(e.outOff?.value?.[1]||0)],i[8]??s.sx,i[9]??s.sy,!!s.m,l,d,void 0!==i[7]||0!==p(s.r,0),u),m=u;return(h>m||g>m)&&(SR7.D.transitions.logBG??SR7.devMode)&&console.log("%c[SR7 BG] neighbour radius clamped "+m+"<-"+Math.max(h,g)+" (far cells are transparent for this scale-up+fade preset)","color:#4aa8ff"),e.inR&&(e.inR.value=Math.min(h,m)),e.outR&&(e.outR.value=Math.min(g,m)),e.fltBlurTaps&&(e.fltBlurTaps.value=h>.5?8:24),h},mbVarCost:4,mbTapsFor:(e,t=0)=>{const s=SR7.D.transitions.mbTaps??12;if(!(e>.5))return s;const i=(2*e+1)*(2*e+1),a=1+(t||0)/(SR7.D.transitions.mbVarCost??4);return Math.max(1,Math.min(s,Math.floor((SR7.D.transitions.mbBudget??48)/(i*a))))},mbSetup:(e,t,s)=>{e._mb=t,e._mbGain=t?Math.min(100,Math.max(0,parseFloat(s)||0))/100*(SR7.D.transitions.mbGain??6):0},mbShutter:(e,t)=>{const s=Math.abs(t-(e._mbPrev??t));return e._mbPrev=t,e._mb?Math.min(SR7.D.transitions.mbMax??.3,(e._mbGain??0)*s):0},fltSetup:(e,t,s,i,a,r)=>{const n=r&&s.filter?.u&&void 0!==e.flt?1:0;return e.flt&&(e.flt.value=n),t._flt=n,t._fltAmt=n?1:0,n&&SR7.D.transitions.setFilterUniforms(e,s.filter,SR7.M[i]?.dims?.module?.h||a),n},fltTween:(e,t,s)=>{e._flt&&(e._fltAmt=1,t.TL.to(e,.5*t.d/1e3,{_fltAmt:0,ease:s.filter.e},.5*t.d/1e3))},setFilterUniforms:(e,t,s)=>{e.fltGray.value=(parseFloat(t.g)||0)/100,e.fltBright.value=void 0!==t.h?(parseFloat(t.h)||100)/100:1,e.fltSepia.value=(parseFloat(t.s)||0)/100,e.fltContrast.value=void 0!==t.c?(parseFloat(t.c)||100)/100:1,e.fltInvert.value=(parseFloat(t.i)||0)/100,e.fltSat.value=void 0!==t.sa?(parseFloat(t.sa)||100)/100:1,e.fltBlur&&(e.fltBlur.value=2*(parseFloat(t.b)||0)/s)},comingBlock:(e,t,i,a,r,n={})=>{const o=SR7.D.transitions.comingUniforms(e,i,r);e.gridOut&&(e.gridOut.value=n.grid||[r.colsO,r.rowsO]),e.easeIdOut&&(e.easeIdOut.value=(o||r.thru)&&n.ease?s(n.ease):0);const l=SR7.D.transitions.boxVariation(e,t,i,a,r),d=SR7.D.transitions.boxNeighbourRadius(e,i,a,l,r);return SR7.D.transitions.mbSetup(t,n.mb,n.mo),e.mbTaps&&(e.mbTaps.value=SR7.D.transitions.mbTapsFor(d,Object.keys(l).length)),[o,d]},_PP:{film:{type:"film",set:{noise:80,scanlines:82,size:256,mono:0},w:["noise","scanlines"],t:{m:"tail"}},glitches:{type:"glitch",set:{intensity:68,frequency:3,constant:0},w:["intensity"]},glitch2:{type:"vhs",set:{amount:100},dur:"interval",w:["amount"]},blur:{type:"motionblur",set:{amount:70,angle:"auto",ramp:1},w:["amount"]},bokeh:{type:"defocus",set:{amount:30},w:["amount"],t:{m:"tail"}},vignette:{type:"vignette",set:{amount:55,size:52,softness:50},w:["amount"],t:{m:"tail"}},grain:{type:"grain",set:{amount:45,speed:50,color:0,exposure:0},w:["amount"],t:{r:20}},chromatic:{type:"chromatic",set:{amount:35,mode:"radial",angle:0,mix:100},w:["mix"],t:{s:30,r:50}},halftone:{type:"halftone",set:{size:8,style:"dots",softness:50,angle:0,mix:100},w:["mix"],t:{s:30,r:50}},posterize:{type:"posterize",set:{levels:6,mix:100},w:["mix"],t:{s:30,r:50}},pixelate:{type:"pixelate",set:{size:14,mix:100},w:["mix"],t:{s:30,r:50}},dither:{type:"dither",set:{levels:3,scale:1,mix:100},w:["mix"],t:{s:30,r:50}}},_PPLEG:{film:{ppfn:"noise",ppfs:"scanlines",ppfh:"size",ppfbw:"mono"},bokeh:{ppbk:"amount"}},ppAngle:e=>
28{const t=parseFloat(e?.x)||0,s=parseFloat(e?.y)||0;return t||s?180*Math.atan2(s,t)/Math.PI:0},ppEnv:(e,t,s)=>{const i={...s?.t||{},...e?.ppt||{}},a=(parseFloat(i.s)||0)/100,r=(parseFloat(i.e??100)||0)/100;if(!(r>a)||t<=a||t>=r)return 0;const n=(t-a)/(r-a);if("tail"===i.m){const e=(1-n)/(Math.max(1,Math.min(90,parseFloat(i.r)||25))/100);return e>=1?1:e*e*(3-2*e)}if("resolve"===i.m||"build"===i.m){const e=n*n*(3-2*n);return"build"===i.m?e:1-e}const o=Math.max(0,Math.min(50,parseFloat(i.r)||0))/100*(r-a);if(o<=0)return 1;const l=Math.min(t-a,r-t)/o;return l>=.999?1:l*l*(3-2*l)},ppLive:(e,t)=>{const s=e?.pp??e?.tpack?.pp,i=s&&"none"!==s?SR7.D.transitions._PP[s]:null;if(!i)return;const a=SR7.D.transitions.ppEnv(e,t,i);if(a<=0)return{post:{on:!1}};if(a>=1||!i.w)return{post:{on:!0}};const r=SR7.D.transitions.bgPost(e).postSettings||{},n={on:!0};for(const e of i.w)n[e]=(parseFloat(r[e])||0)*a;return{post:n}},bgPost:(e,t)=>{const s=e?.pp??e?.tpack?.pp,i=s&&"none"!==s?SR7.D.transitions._PP[s]:null;if(!i)return{};const a={...i.set},r=e.ppset?.[s];if(i.dur&&(a[i.dur]=Math.max(.1,(parseInt(e.d)||1500)/1e3)),void 0===e.pp){const t=SR7.D.transitions._PPLEG[s],i=e.tpack;if(t&&i)for(const e in t){const s="ppfbw"===e?_tpt.tf(i[e])?100:0:parseFloat(i[e]);void 0===i[e]||isNaN(s)||(a[t[e]]=s)}}for(const e in r){const t=parseFloat(r[e]);isNaN(t)||(a[e]=t)}return"auto"===a.angle&&(a.angle=t??0),{post:i.type,postSettings:a}},fxTime:e=>(e._fxT0??=Date.now(),(Date.now()-e._fxT0)/1e3),bgStack:(e,t={})=>{const s=t.uses?SR7.D.transitions.bgDefines(t.uses):null,i=s&&Object.keys(s).length?"|"+Object.keys(s).sort().map(e=>1===s[e]&&0!==e.indexOf("GRIDR")&&e.indexOf("TAPS")<0?e:e+"="+s[e]).join(","):"",a=[];if(t.twoPass){const t={...s,COMINGONLY:1};delete t.FILTER,delete t.FBLUR,delete t.FBTAPS,a.push({id:"xf",type:e,u:!0,defines:t}),a.push({id:"xf2",type:e,u:!0,defines:{...s,COMINGSRC:1}})}else a.push({id:t.id||"xf",type:e,u:!0,defines:i?s:void 0,settings:t.settings});return t.overLeaving&&a.push({id:"ol",type:"overleaving",u:!0,settings:{}}),t.post&&a.push({id:"post",type:t.post,u:!0,settings:t.postSettings||{}}),[a,e+(t.twoPass?"+xf2":"")+(t.overLeaving?"|ol":"")+(t.post?"|"+t.post:"")+i]},uSplit:(e,t)=>{const s={};for(const i of[e,t])for(const a in i){if(s[a])continue;const i=e[a],r=t[a];s[a]={get value(){return(i||r).value},set value(e){i&&(i.value=e),r&&(r.value=e)}}}return s},shownBG:(e,t)=>{const s=SR7.FX?.live;if(!s)return null;let i=null;for(const a of["bgfx:"+e+":bg",e+":tpbg","bgfx:"+e+":psin","bgfx:"+e+":psout"]){const e=s[a];if(e?.canvas&&!e._xfStale&&"hidden"!==e.canvas.style?.visibility&&e.canvas.width){if(null==t||null==e._own||String(e._own).split(":")[0]===String(t))return e;i??=e}}return i},bgRefresh:(e,t,s)=>{const i=SR7.FX?.live;if(i){if(!s){let a=null;for(const r of["bgfx:"+e+":bg",e+":tpbg","bgfx:"+e+":psin","bgfx:"+e+":psout"]){const e=i[r];if(e?.canvas&&"hidden"!==e.canvas.style?.visibility&&e.canvas.width){if(String(e._own??"").split(":")[0]===String(t)){s=e;break}a??=e}}s??=a}if(s)try{String(s._own??"").split(":")[0]===String(t)?(s._src&&(s._src.needsUpdate=!0),s._reup?.(),s._reupload?.("_xfTo","src2")):(s._storyLeave&&(s._storyLeave.needsUpdate=!0),s._reupload?.("_xfFrom","src1")),(s._render??s._xfRender)?.(!1)}catch(e){}}},bgOwn:(e,t)=>{const s={bg:SR7.FX?.live?.["bgfx:"+e+":bg"],tpbg:SR7.FX?.live?.[e+":tpbg"]};for(const e in s){const i=s[e];if(i&&(i._xfStale=e!==t,i._xfStale))try{i._xfShown=!1,i.canvas&&(i.canvas.style.visibility="hidden")}catch(e){}}},hostOverlay:(e,t,s,i)=>{t&&e.parentNode!==t&&t.appendChild(e),e.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;z-index:"+s+";pointer-events:none;display:block;visibility:"+i+";"},blendCover:(e,t)=>{if("fake"===e||SR7.E.backend)return!1;if(!Object.values(SR7.M[e]?.slides?.[t.skey]?.layers||{}).some(e=>"normal"!==(e?.blend??"normal")))return!1;const s=SR7.M[e]?.c?.slides?.[t.skey],i=s?[...s.querySelectorAll('[style*="mix-blend-mode"]')].filter(e=>e.style.mixBlendMode&&"normal"!==e.style.mixBlendMode):[];return!i.length||i.some(e=>{for(let t=e.parentElement;t&&t!==s;t=t.parentElement){const e=getComputedStyle(t);if("static"!==e.position&&"auto"!==e.zIndex||"isolate"===e.isolation)return!1}return!0})},finishBG:(e,t)=>
28{e._xfActive=!1;const s=e._leaveVidC,i=s?.media;if(i&&String(s.skey)!==String(SR7.M[t]?.current?.id))try{i.stopCanvas(),i.pause(),i.player?.options?.rewind&&i.rewind()}catch(e){}e._leaveVidC=null},_isPerSlideBG:(e,t,s,i)=>{if(SR7.E.backend||"fake"===e)return!1;if(i.d3&&i.d3.f&&"none"!==i.d3.f)return!1;if("dark"===i.p||"light"===i.p||"transparent"===i.p||"double"===i.p)return!1;if(Object.values(SR7.M[e]?.slides?.[t.skey]?.layers||{}).some(e=>"normal"!==(e?.blend??"normal")))return!1;const a=e=>0!=(e?.x??0)||0!=(e?.y??0)||1!=(e?.sx??1)||1!=(e?.sy??1)||(parseInt(e?.col)||1)>1||(parseInt(e?.row)||1)>1||0!=(e?.r??0);return a(i.in)||a(i.out)},perSlideBG:(e,s,i,a)=>{const r=i.scene,n=s.canvas?.canvas;if(!(n&&n.width&&n.height&&SR7.FX?.create&&SR7.PASS?.crossfade))return!1;const o="in"===r?a.in||{}:a.out||{},l=i.sdir??1,d=Math.min(1,Math.max(.4,SR7.perf?.bgScale??1)),c=Math.max(1,Math.round(n.width*d)),p=Math.max(1,Math.round(n.height*d)),u="bgfx:"+e,h="in"===r?"psin":"psout",g=_tpt.tf(a.in?.mou)&&(parseFloat(a.in?.mo)||0)>0,m=Math.max(1,parseInt(o.col)||1),f=Math.max(1,parseInt(o.row)||1),[S,y]=SR7.D.transitions._clampGrid(m,f,n.width,n.height),v={cols:S,rows:y,colsO:1,rowsO:1,sdir:l,cvW:n.width,cvH:n.height},R=SR7.D.transitions.bgRadius(o,{},v),b=SR7.D.transitions._varSlots(o,{},v),w=b.map(e=>e.slot),[x,_]=SR7.D.transitions.bgStack("crossfade",{...SR7.D.transitions.bgPost(a,SR7.D.transitions.ppAngle(o)),uses:{grid:S>1||y>1,gridN:(S>1||y>1)&&!o.m&&R.max>0,gridRX:R.x,gridRY:R.y,varying:w,mb:g,mbTaps:SR7.D.transitions.mbTapsFor(R.in,w?.length||0),fbTaps:R.in>.5?8:24,ease:SR7.D.transitions._easeSet([o.e||a.e||"power2.inOut"]),stagRandom:"random"===i.fdf,stagFrom:{start:0,end:1,center:2,edges:3}["oppslidebased"===i.fdf?1===l?"end":"start":"slidebased"===i.fdf?1===l?"start":"end":i.fdf],varTex:b.some(e=>e.isArr),rotates:0!==(parseFloat(o.r)||0)||-1!==w.indexOf(2),filter:"in"===r&&!!a.filter?.u,discBlur:"in"===r&&!!a.filter?.u&&(parseFloat(a.filter.b)||0)>0}});let F=SR7.D.transitions.fxReuse(u,h,c,p,_,null,x);if(!F){if(F=SR7.FX.create(u,h,x,{w:c,h:p}),!F)return!1;F._sig=_,F._tex=SR7.D.transitions.fxTex(F,s.bgOutput?.canvas||n),F._reup=()=>{const e=F._tex,t=e?.image;if(e&&t)if(e._allocW!==t.width||e._allocH!==t.height){try{e.dispose()}catch(e){}const s=SR7.D.transitions.fxTex(F,t);F._tex=s;const i=F.passes[0]?.uniforms;i&&(i.src1.value=s,i.src2.value=s)}else e.needsUpdate=!0},F._render=()=>{const e=F._fxC?.bgOutput?.canvas;e&&F._tex&&F._tex.image!==e&&(F._tex.image=e),(F._live||e)&&F._reup();const t=F.passes?.[0]?.uniforms;t&&(F._flt&&t.fltAmt&&(t.fltAmt.value=F._fltAmt??0),t.mbAmt&&(t.mbAmt.value=SR7.D.transitions.mbShutter(F,F._p))),SR7.FX.render(F,{progress:F._p,time:SR7.D.transitions.fxTime(F),fxLive:SR7.D.transitions.ppLive(a,F._p)},F._tex)}}const k=F.passes?.[0]?.uniforms;if(!k||!k.src2){try{SR7.FX.destroy(u,h)}catch(e){}return!1}F._fxC=s;const M=s.bgOutput?.canvas||n;F._tex.image!==M&&(F._tex.image=M),F._reup(),k.src1.value=F._tex,k.src2.value=F._tex,k.hasLeaving&&(k.hasLeaving.value=0),k.alphaMode&&(k.alphaMode.value=1),k.comingTop&&(k.comingTop.value=1),k.through&&(k.through.value=0),k.dbl&&(k.dbl.value=0);const C=SR7.D.transitions.fltSetup(k,F,a,e,n.height,"in"===r),[E,O]=SR7.D.transitions.comingBlock(k,F,o,{},{cols:S,rows:y,colsO:1,rowsO:1,sd:i.sd,fdf:i.fdf,d:i.d,sdir:l,cvW:n.width,cvH:n.height,thru:!1,frameE:a.e,maxR:SR7.D.transitions.bgMaxR??5},{grid:[S,y],mb:g,mo:a.in?.mo}),A=SR7.M[e]?.c?.pans;F._live="html5"===s.media?.player?.options?.type||!!A&&(A[s.skey]?.length||0)>0,F._xfActive=!0;const L=t(a.in)&&(void 0===a.in?.o||parseFloat(a.in.o)>=1);(SR7.M[e].zOrder??={})._perSlide=!0,SR7.M[e].zOrder.psReveal="outin"===a.o||L&&!t(a.out),SR7.F.sbt?.storyMode?.(e)&&(((SR7.M[e].sbt??={}).__bgRec??={})[s.skey+":"+r]={use:SR7.M[e].zOrder.use,psReveal:SR7.M[e].zOrder.psReveal,d:i.d});const T=F.canvas,I=SR7.F.sbt?.storyMode?.(e);SR7.D.transitions.hostOverlay(T,s.el,2,I?"hidden":"visible"),!I&&s.canvas?.canvas&&(s.canvas.canvas.style.visibility="hidden"),F._p="in"===r?0:1,F._mbPrev=F._p,F._own=s.skey+":"+r,F._render();const D=e=>{const t=parseFloat(String(e??"").replace(/[()%\s]/g,""));return isNaN(t)?0:t},z=(e,t)=>Math.abs(e)>
28.5&&Math.abs(e+t)<Math.max(1,.15*Math.abs(e)),P=z(D(a.in?.x),D(a.out?.x))||z(D(a.in?.y),D(a.out?.y)),H=E?"none":(P&&"in"!==r?a.in?.e:o.e)||a.e||"power2.inOut";return i.TL.to(F,i.d/1e3+E,{_p:"in"===r?1:0,startAt:{_p:F._p},immediateRender:!0,ease:H,onUpdate:F._render,onComplete:()=>{SR7.F.sbt?.storyMode?.(e)||(T.style.visibility="hidden",s.canvas?.canvas&&(s.canvas.canvas.style.visibility="visible"),SR7.D.transitions.finishBG(F,e))}}),SR7.D.transitions.fltTween(F,i,a),SR7.D.transitions.lastBG={engine:"perslide",note:_+" "+r+(g?" mb":"")+(C?" flt":"")+(O>.5?" scatter":""),skey:s?.skey},(SR7.D.transitions.logBG??SR7.devMode)&&console.log("%c[SR7 BG] PERSLIDE "+_+"%c "+r+(g?" mb":"")+(C?" flt":"")+" · slide "+(s?.skey??"?"),"color:#9b59b6;font-weight:bold","color:inherit"),!0},tryWebGLTransition:(e,i,a,r)=>{if("in"!==a.scene)return!1;const n=!(!r.d3||!r.d3.f||"none"===r.d3.f),o=(e,t)=>{SR7.D.transitions.lastBG={engine:e,note:t,skey:i?.skey,is3D:n},(SR7.D.transitions.logBG??SR7.devMode)&&console.log("%c[SR7 BG] "+e.toUpperCase()+"%c "+t+" · slide "+(i?.skey??"?"),"color:"+("webgl"===e?"#2ecc71":"#e67e22")+";font-weight:bold","color:inherit")};if(!SR7.FX?.create||!SR7.PASS?.crossfade||n&&(!SR7.PASS?.d3trans||!window.THREE)){if(!SR7.D.transitions._fxLoading){SR7.D.transitions._fxLoading=!0;try{_tpt.checkResources(n?["THREE","WEBGL","EFFECTS"]:["WEBGL","EFFECTS"]).then(()=>{SR7.D.transitions._fxLoading=!1},()=>{SR7.D.transitions._fxLoading=!1})}catch(e){SR7.D.transitions._fxLoading=!1}}return o("canvas",n&&!window.THREE?"waiting for THREE to load (first 3D nav) â next 3D transition is WebGL":"engine still loading (first transition on this page) â next transition is WebGL"),!1}const l=r.in||{},d=r.out||{};if(void 0===window.THREE&&!SR7.D.transitions._threeKick){const t=SR7.M[e];if(t._has3D??=Object.values(t?.slides||{}).some(e=>{const t=e?.layers;if(!t)return!1;for(const e in t){const s=t[e]?.tl?.in?.bg?.all?.[1];if(s?.d3?.f&&"none"!==s.d3.f)return!0}return!1}),t._has3D){SR7.D.transitions._threeKick=!0;try{_tpt.checkResources(["THREE","WEBGL","EFFECTS"]).catch(()=>{})}catch(e){}}}const c=a.sdir??1,p=(e,t)=>{const s=parseFloat(SR7.F.getSpecialValue(e,0,c));return isNaN(s)?t:s},u=p(l.o,1),h=p(d.o,1),g=t(l)&&u>=1,m=t(d)&&h>=1;if(g&&m)return o("canvas","no animation (identity frame, e.g. No Transition) â instant cut"),!1;SR7.D.transitions.lastBG={engine:"canvas",note:"gate/bail (unclassified)",skey:i?.skey,is3D:n};const f=i.canvas?.canvas,S=SR7.M[e]?.c?.leavingBG?.canvas?.canvas;if(!f||!f.width||!f.height)return o("canvas","coming BG canvas not ready (no pixels yet)"),!1;let y=null;const v=SR7.M[e]?.c?.leavingBG;if(null!=v?.skey){const t=SR7.M[e]?.slides?.[v.skey]?.layers||{};for(const e in t)if("slidebg"===t[e]?.subtype){y=t[e]?.tl?.out?.bg?.all?.[1];break}}const R=y?.out,b=0!=(l.x??0)||0!=(l.y??0)||1!=(l.sx??1)||1!=(l.sy??1)||1!=(l.o??1),w=1==(d.o??1)&&0==(d.x??0)&&0==(d.y??0)&&1==(d.sx??1)&&1==(d.sy??1),x=!n&&!!S&&b&&w&&"dark"!==r.p&&"light"!==r.p&&"transparent"!==r.p&&!(r.addOns&&Object.keys(r.addOns).length)&&(!y||0==(R?.x??0)&&0==(R?.y??0)&&1==(R?.sx??1)&&1==(R?.sy??1)&&(parseInt(R?.col)||1)<=1&&(parseInt(R?.row)||1)<=1&&!(R?.d3?.f&&"none"!==R.d3.f)),_=S||f,F="bgfx:"+e,k="bg",M=Math.min(1,Math.max(.4,SR7.perf?.bgScale??1)),C=Math.max(1,Math.round(f.width*M)),E=Math.max(1,Math.round(f.height*M)),O=!n&&_tpt.tf(l.mou)&&(parseFloat(l.mo)||0)>0,A=!!r.filter?.u&&(parseFloat(r.filter.b)||0)>0,L=(a.col||1)>1||(a.row||1)>1,T=(parseInt(d.col)||1)>1||(parseInt(d.row)||1)>1,I=!("dark"!==r.p&&"light"!==r.p&&"transparent"!==r.p||!S&&!SR7.E.backend),D="double"===r.p||"slidingoverlay"===r.tr,[z,P]=SR7.D.transitions._clampGrid(a.col||1,a.row||1,f.width,f.height),[H,B]=SR7.D.transitions._clampGrid(Math.max(1,parseInt(d.col)||1),Math.max(1,parseInt(d.row)||1),f.width,f.height),N={cols:z,rows:P,colsO:H,rowsO:B,sdir:c,cvW:f.width,cvH:f.height},V=n?{x:0,y:0,max:0}:SR7.D.transitions.bgRadius(l,d,N),W=n?[]:SR7.D.transitions._varSlots(l,d,N),X=n?null:W.map(e=>e.slot),Y=!n&&!D&&A&&L&&!l.m&&V.in>.5,j=SR7.D.transitions.bgPost(r,SR7.D.transitions.ppAngle(l)),[G,q]=n?SR7.D.transitions.bgStack("d3trans",{id:"d3",...j}):SR7.D.transitions.bgStack("crossfade",{...j,twoPass:Y,uses:{double:D,grid:L||T,gridN:(L&&!l.m||T&&!d.m)&&V.max>0,gridRX:V.x,gridRY:V.y,varying:X,mb:O,mbTaps:SR7.D.transitions.mbTapsFor(V.in,X?.length||0),fbTaps:Y?24:V.in>.5?8:24,ease:SR7.D.transitions._easeSet([l.e||(I?"power2.inOut":r.e)||"power2.inOut",d.e||(I?"power2.inOut":r.e)||"power2.inOut",..."outin"===r.o&&T?[l.e||r.e||"power2.out",SR7.D.transitions.outinOutEase??"power2.in"]:[]]),stagRandom:"random"===a.fdf,stagFrom:{start:0,end:1,center:2,edges:3}["oppslidebased"===a.fdf?1===c?"end":"start":"slidebased"===a.fdf?1===c?"start":"end":a.fdf],varTex:W.some(e=>e.isArr),rotates:0!==(parseFloat(l.r)||0)||0!==(parseFloat(d.r)||0)||-1!==X.indexOf(2)||-1!==X.indexOf(7),thru:I,filter:!!r.filter?.u,discBlur:A}});let U=SR7.D.transitions.fxReuse(F,k,C,E,q,null,G);
28if(!U){if(U=SR7.FX.create(F,k,G,{w:C,h:E}),!U)return o("canvas","WebGL broker refused (GL context limit?)"),!1;U._sig=q;const t=U.passes[0]?.uniforms;if(!(Y?t?.src2&&U.passes[1]?.uniforms?.src1:t?.src1)){try{SR7.FX.destroy(F,k)}catch(e){}return o("canvas","WebGL pass init failed (source uniform missing)"),!1}U._xfFrom=SR7.D.transitions.fxTex(U,_),U._xfTo=SR7.D.transitions.fxTex(U,f),U._xfP=0,U._xfEnter=()=>{SR7.F.sbt?.storyMode?.(e)||(U.canvas.style.visibility="visible"),U._xfShown=!0},U._xfExit=()=>{U.canvas.style.visibility="hidden",U._xfShown=!1},U._reupload=(e,t)=>{const s=U[e],i=s&&s.image;if(s&&i)if(s._allocW!==i.width||s._allocH!==i.height){try{s.dispose()}catch(e){}const a=SR7.D.transitions.fxTex(U,i);U[e]=a;const r=U._u;r&&r[t]&&(r[t].value=a),(SR7.D.transitions.logBG??SR7.devMode)&&console.log("%c[SR7 BG] per-frame BG realloc "+e+" -> "+i.width+"x"+i.height+" (canvas resized mid-transition)","color:#4aa8ff")}else s.needsUpdate=!0},U._xfRender=e=>{if(!e&&!U._xfShown){if(U._xfEnter(),U._d3Leave){try{if(U._d3Leave.fake){const e=U._d3Leave.lc;e?.el&&(e.el.style.visibility="hidden")}else SR7.F.hideLeavingSlide(U._d3Leave.id,U._d3Leave.skey)}catch(e){}U._d3Leave=null}if(U._d3HideLeaveCv){try{U._d3HideLeaveCv.style.visibility="hidden",U._d3HideLeaveCv.style.opacity=0}catch(e){}U._d3HideLeaveCv=null}}if(!U._xfShown)return;const t=U._fxC?.bgOutput?.canvas;t&&U._xfTo&&(U._xfTo.image!==t&&(U._xfTo.image=t),U._reupload("_xfTo","src2")),(U._xfRepaint||U._lfxLive)&&U._reupload("_xfFrom","src1"),U._xfRepaint&&!t&&U._reupload("_xfTo","src2"),U._flt&&(U._u.fltAmt.value=U._fltAmt??0),U._mb&&(U._u.mbAmt.value=SR7.D.transitions.mbShutter(U,U._xfP)),SR7.FX.render(U,{progress:U._xfP,time:SR7.D.transitions.fxTime(U),fxLive:SR7.D.transitions.ppLive(r,U._xfP)})},U._xfHide=()=>{if("fake"===e||SR7.F.sbt?.storyMode?.(e)||U._xfExit(),U._frozenPan){try{U._frozenPan.resume()}catch(e){}U._frozenPan=null}SR7.D.transitions.finishBG(U,e)}}const Z=Y&&U.passes[1]?SR7.D.transitions.uSplit(U.passes[0].uniforms,U.passes[1].uniforms):U.passes[0].uniforms;U._u=Z,SR7.D.transitions.bgOwn(e,"bg");const $=(e,t)=>{if(e&&t&&(e._allocW!==t.width||e._allocH!==t.height)){(SR7.D.transitions.logBG??SR7.devMode)&&console.log("%c[SR7 BG] BG texture realloc "+(e._allocW??"?")+"x"+(e._allocH??"?")+" -> "+t.width+"x"+t.height+" (dodging the glCopySubTexture overflow)","color:#4aa8ff");try{e.dispose()}catch(e){}return SR7.D.transitions.fxTex(U,t)}return e&&(e.image=t,e.needsUpdate=!0),e},J=SR7.M[e]?.c?.leavingBG?.bgOutput,K=J?.canvas;U._fxC=i,U._own=i.skey+":in",U._lfxLive=!(!K||!J.live),U._xfFrom=$(U._xfFrom,K||_),Z.src1.value=U._xfFrom,U._xfTo=$(U._xfTo,i.bgOutput?.canvas||f),Z.src2.value=U._xfTo;const Q=SR7.M[e]?.c?.pans,ee=e=>"html5"===e?.media?.player?.options?.type,te=SR7.M[e]?.c?.leavingBG;U._xfRepaint=!Q||((Q[i.skey]?.length||0)>0||(Q[SR7.M[e]?.prev?.id]?.length||0)>0||ee(i)||ee(te));const se=SR7.perf?.bgCost?SR7.perf.bgCost((f.width||0)*(f.height||0),S?(S.width||0)*(S.height||0):0,U._xfRepaint,(parseInt(l.col)||1)*(parseInt(l.row)||1)):0;if(SR7.perf?.bgLevers?SR7.perf.bgLevers(se).freeze:SR7.perf?.bgFreeze){U._xfRepaint=!1;const t=SR7.M[e]?.c?.tl?.[i.skey]?.in?.PAN;t&&"function"==typeof t.pause&&!t.paused()&&(t.pause(),U._frozenPan=t)}if(U._leaveVidC&&U._leaveVidC!==te&&U._leaveVidC!==i)try{U._leaveVidC.media?.stopCanvas()}catch(e){}if(U._leaveVidC=null,U._xfActive=!1,ee(i)){const e=i.media?.player;try{"false"!==String(e?.options?.autoPlay)&&i.media.play?.()}catch(e){}}U._d3Leave=null,U._d3HideLeaveCv=null;let ie=0,ae=0;if(D){const e=void 0!==l.gxs?"x":"y",t=("x"===e?parseFloat(l.x):parseFloat(l.y))>=0?1:-1;Z.dbl&&(Z.dbl.value=1),Z.inOff.value="x"===e?[t,0]:[0,-t],Z.hasLeaving&&(Z.hasLeaving.value=S&&!x?1:0),Z.alphaMode&&(Z.alphaMode.value=!S||x?1:0),U._flt=0,SR7.D.transitions.mbSetup(U,!1,0)}else if(n){SR7.D.transitions.mbSetup(U,O,l.mo);const t=SR7.M[e]?.dims?.module?.h||f.height,s=f.height/t,i=Math.max(1,parseInt(l.col)||1),n=Math.max(1,parseInt(l.row)||1),o=i>1&&n>1&&i<=12&&n<=12,d=i>1||n>1;if(Z.d3mode.value=d?4:{cube:0,incube:1,fly:2,turn:3}[r.d3.f]??0,Z.d3cols&&(Z.d3cols.value=o?i:d?Math.max(i,n):1),Z.d3rows&&(Z.d3rows.value=o?n:1),Z.d3srow&&(Z.d3srow.value=n>i?1:0),Z.d3rm&&(Z.d3rm.value="rubik"===r.d3.rm?1:"drop"===r.d3.rm?2:0),d){ie=("nodelay"!==a.fdf?a.sd:0)||0,Z.d3stag&&(Z.d3stag.value=ie?Math.max(0,Math.min(.9,ie/(a.d/1e3+ie))):0);const e="oppslidebased"==a.fdf?1==c?"end":"start":"slidebased"==a.fdf?1==c?"start":"end":a.fdf;Z.d3from&&(Z.d3from.value={start:0,end:1,center:2,edges:3,random:4}[e]??0)}
28Z.d3axis.value="vertical"===r.d3.d?1:0,Z.d3sdir.value=void 0===r.d3.rd||"auto"===r.d3.rd?c:(parseInt(r.d3.rd)||1)>=0?1:-1,Z.d3persp.value=1500*s,Z.d3tilt.value=!1===r.d3.t||!SR7.E.backend&&!a.notFirstIn?0:parseFloat(r.d3.t)||0,Z.d3z.value=(parseFloat(r.d3.z)||300)*s,Z.d3fz.value=void 0===r.d3.fz?20*Math.random()-10:parseInt(r.d3.fz),Z.d3fdi.value=void 0===r.d3.fdi?1.5:parseFloat(r.d3.fdi),Z.d3fdo.value=void 0===r.d3.fdo?2:parseFloat(r.d3.fdo),Z.d3ease.value=r.d3.e||"power2.inOut",Z.d3inO&&(Z.d3inO.value=u),Z.d3boxE&&(Z.d3boxE.value=l.e||r.e||"power2.inOut"),Z.d3hasL&&(Z.d3hasL.value=S?1:0),U._flt=0,U._d3Leave="fake"===e?{fake:!0,lc:SR7.M[e]?.c?.leavingBG}:!SR7.E.backend&&S?{id:e,skey:SR7.M[e]?.c?.leavingBG?.skey}:null}else{let t=a.col||1,i=a.row||1,n=Math.max(1,parseInt(d.col)||1),o=Math.max(1,parseInt(d.row)||1);[t,i]=SR7.D.transitions._clampGrid(t,i,f.width,f.height),[n,o]=SR7.D.transitions._clampGrid(n,o,f.width,f.height),SR7.D.transitions.leavingUniforms(Z,d,{colsO:n,rowsO:o,sdir:c,cvW:f.width,cvH:f.height}),Z.comingTop.value="outin"===r.o||g?0:1,Z.through&&(Z.through.value=I?1:0),Z.throughColor&&(Z.throughColor.value="light"===r.p?[1,1,1]:[0,0,0]),Z.hasLeaving&&(Z.hasLeaving.value=S&&!x?1:0),Z.alphaMode&&(Z.alphaMode.value="transparent"!==r.p&&(S&&!x||I)?0:1),SR7.D.transitions.fltSetup(Z,U,r,e,f.height,!0),ie=SR7.D.transitions.comingBlock(Z,U,l,d,{cols:t,rows:i,colsO:n,rowsO:o,sd:a.sd,fdf:a.fdf,d:a.d,sdir:c,cvW:f.width,cvH:f.height,thru:I,frameE:r.e,maxR:SR7.D.transitions.bgMaxR??5},{ease:d.e||(I?"power2.inOut":r.e)||"power2.inOut",mb:O,mo:l.mo})[0],"outin"===r.o&&(n>1||o>1)&&(ie=(SR7.D.transitions.outinStag??.35)*(a.d/1e3),Z.stagger&&(Z.stagger.value=Math.max(0,Math.min(.9,ie/Math.max(a.d/1e3+ie,1e-4)))),Z.staggerFrom&&(Z.staggerFrom.value=0),Z.easeIdOut&&(Z.easeIdOut.value=s(SR7.D.transitions.outinOutEase??"power2.in")),Z.easeId&&(Z.easeId.value=s(l.e||r.e||"power2.out"))),ae=0,Z.thruIn&&(Z.thruIn.value=0)}const re=U.canvas,ne=SR7.D.transitions.blendCover(e,i),oe=n&&"fake"!==e&&!SR7.E.backend&&!ne&&S&&(SR7.D.transitions.bg3DLayerParity??1)?SR7.M[e]?.c?.content:null,le="fake"!==e&&!SR7.E.backend&&!!SR7.M[e]?.c?._bgHostSelf?.[i.skey],de="fake"===e||n||SR7.E.backend||ne||le||"out"!==(SR7.M[e]?.zOrder?.use??"out")?null:SR7.M[e]?.c?.leavingBG?.el,ce=oe||de||i.el||f.parentNode;SR7.D.transitions.hostOverlay(re,ce,oe?1:2,"hidden"),de&&ce===de&&SR7.F.swapSlidezIndex(e,void 0,!0),oe&&(U._d3Leave=null,U._d3HideLeaveCv=SR7.M[e]?.c?.leavingBG?.canvas?.canvas||null),U._xfShown=!1,_tpt.gsap.killTweensOf(U),U._xfP=0,U._mbPrev=0,U._xfRender(!0);const pe=n||I?"none":l.e||r.e||"power2.inOut";return a.TL.to(U,a.d/1e3+ie+ae,{_xfP:1,ease:ie||ae?"none":pe,onUpdate:U._xfRender,onComplete:U._xfHide}),SR7.D.transitions.fltTween(U,a,r),U._xfActive=!0,SR7.F.sbt?.storyMode?.(e)&&(((SR7.M[e].sbt??={}).__bgRec??={})[i.skey+":in"]={use:x?"in":"out",psReveal:!1,d:a.d}),o("webgl",q),!0},runBGPass:(e,t,s,i,a,r={},n={})=>{if("in"!==s.scene){const e=_tpt.gsap.timeline();return e.to({p:0},s.d/1e3,{p:1,ease:"none"},0),e}const o=(e,s)=>{SR7.D.transitions.lastBG={engine:e?"addon-pass":"legacy",note:a+" â "+s,skey:t?.skey}};if(!SR7.FX?.create||!SR7.PASS?.[a])return o(!1,"engine/pass not registered yet"),null;const l=t.canvas?.canvas;if(!l||!l.width||!l.height)return o(!1,"coming BG canvas not ready"),null;const d=_tpt.dpr||1,c=Math.max(1,Math.round(l.width/d)),p=Math.max(1,Math.round(l.height/d)),u=e,h="tpbg",[g,m]=SR7.D.transitions.bgStack(a,{id:"tp",settings:r,overLeaving:n.overLeaving,post:n.postPass,postSettings:n.postSettings});let f=SR7.D.transitions.fxReuse(u,h,c,p,m);if(!f){if(f=SR7.FX.create(u,h,g,{w:c,h:p}),!f)return o(!1,"WebGL broker refused (budget?)"),null;f._sig=m,f._src=SR7.D.transitions.fxTex(f,l,"repeat"),f._render=t=>{const s=f._fxC?.bgOutput?.canvas;if(s&&f._src?.image!==s){try{f._src?.dispose()}catch(e){}f._src=SR7.D.transitions.fxTex(f,s,"repeat")}if((f._repaint||s)&&f._src){const e=f._src.image;if(f._src._allocW!==e.width||f._src._allocH!==e.height){try{f._src.dispose()}catch(e){}f._src=SR7.D.transitions.fxTex(f,e,"repeat")}else f._src.needsUpdate=!0}t||"visible"===f.canvas.style.visibility||SR7.F.sbt?.storyMode?.(e)||(f.canvas.style.visibility="visible"),SR7.FX.render(f,{id:e,lid:h,progress:f._p??0,time:SR7.D.transitions.fxTime(f),fxLive:SR7.D.transitions.ppLive(i,f._p??0),fx:f._storyLeave?{leav
28ing:f._storyLeave}:void 0},f._src)},f._hide=()=>{"fake"===e||SR7.F.sbt?.storyMode?.(e)||(f.canvas.style.visibility="hidden")}}if(f.passes[0]?.item&&(f.passes[0].item.settings=r),n.postSettings){const e=f.passes.find(e=>"post"===e.item?.id);e?.item&&(e.item.settings=n.postSettings)}const S=SR7.M[e]?.c?.pans;if(f._repaint=!S||((S[t.skey]?.length||0)>0||"html5"===t.media?.player?.options?.type),f._fxC=t,f._own=t.skey+":in",SR7.F.sbt?.storyMode?.(e)){f._skey=t.skey;const s=SR7.M[e]?.c?.leavingBG,i=s?.bgOutput?.canvas??s?.canvas?.canvas;try{f._storyLeave?.dispose?.()}catch(e){}f._storyLeave=i?f.texFromCanvas(i,"repeat"):null}SR7.D.transitions.bgOwn(e,"tpbg");{const e=t.bgOutput?.canvas||l;if(f._src&&f._src.image!==e){try{f._src.dispose()}catch(e){}f._src=SR7.D.transitions.fxTex(f,e,"repeat")}}const y=SR7.M[e]?.c?.leavingBG?.canvas?.canvas;if(n.assets){f._assetTex??={};for(const e in n.assets){const t=n.assets[e];if(!t)continue;if(f._assetTex[e]?._el!==t){try{f._assetTex[e]?.dispose?.()}catch(e){}f._assetTex[e]=f.texFromCanvas(t),f._assetTex[e]._el=t}const s=f.passes[0]?.uniforms?.[e];s&&(s.value=f._assetTex[e])}}const v=SR7.D.transitions.blendCover(e,t),R=f.canvas,b="fake"===e||SR7.E.backend||v?null:SR7.M[e]?.c?.leavingBG?.el,w=b||t.el||l.parentNode;SR7.D.transitions.hostOverlay(R,w,2,"hidden"),f._leaveBase=b&&w===b?y:null,f._leaveBase&&(f._leaveBase.style.visibility="visible"),_tpt.gsap.killTweensOf(f),f._p=0,f._render(!0),y&&!SR7.F.sbt?.storyMode?.(e)&&(f.canvas.style.visibility="visible");const x=_tpt.gsap.timeline();return x.to(f,n.dur??s.d/1e3,{_p:1,ease:n.ease||"none",onUpdate:f._render,onComplete:f._hide},n.delay??0),o(!0,"running"),x},setDimensions:(e,t)=>{const s=e.canvas?.width??0,i=e.canvas?.height??0;let a="random"==t.col?Math.round(10*Math.random()+3):Math.max(1,Math.min(t.col??1,s-10)),r="random"==t.row?Math.round(10*Math.random()+3):Math.max(1,Math.min(t.row??1,i-10));return r=Math.ceil(i/Math.ceil(i/r))||1,{col:a,row:r,width:s,height:i}},default:{start:(e,t,s)=>{const i=SR7.M[t];"fake"!==t&&(i.c.slideBGStates[e.skey]="animating"),null==e.mod&&(e.el.style.opacity=1);const a=SR7.F.sbt?.storyMode?.(t);a||!e.slideBGAnimating||"out"===s&&"in"===i.zOrder?.use||(e.canvas.canvas.style.visibility="hidden",e.canvas.canvas.style.opacity=0),e.el.style.visibility="visible",!a&&"out"===s&&"out"==i.zOrder.use&&i.zOrder.managed?"fake"==t||SR7.E.backend?e.mask?e.mask.style.zIndex=e.tpack?0:3:e.el.style.zIndex=e.tpack?0:3:i.zOrder._perSlide?SR7.F.swapSlidezIndex(t,i.zOrder.psReveal?i.prev?.id:void 0):SR7.D.transitions.bgLayerParity??1?SR7.F.swapSlidezIndex(t):SR7.F.swapSlidezIndex(t,e.skey):"out"===s&&SR7.E.backend&&(e.el.style.zIndex=0),"fake"===t||SR7.E.backend&&"out"===s||"out"===s&&SR7.F.sbt?.storyMode?.(t)||SR7.F.manageLayerListeners(e,i.slides[e.skey].layers[e.lkey],"in"===s)},complete:(e,t,s,i)=>{const a=SR7.M[t];if(null==e.mod&&(e.el.style.opacity=1),e.canvas?.canvas&&!SR7.F.sbt?.storyMode?.(t)&&(SR7.E.backend&&"out"===s||(e.canvas.canvas.style.visibility="visible"),e.canvas.canvas.style.opacity=1,SR7.F.bgThaw?.(e.canvas)),"in"===s&&!SR7.E.backend&&e.bgOutput?.canvas&&(e.bgOutput.canvas.style.visibility="visible"),"fake"!==t&&(a.c.slideBGStates[e.skey]=s),!SR7.E.backend)if(i||SR7.E.backend){if(i&&!SR7.E.backend&&"out"===s&&"fake"!==t&&String(e.skey)!==String(a.current?.id)&&String(e.skey)!==String(a.prev?.id)&&!a.slides?.[e.skey]?.slide?.global&&!SR7.F.isCarousel(t)){const t=a.c.slides?.[e.skey];t&&(t.style.display="none",t.style.pointerEvents="none")}}else a.zOrder.managed&&a.zOrder.use==s&&SR7.F.swapSlidezIndex(t),"out"===s&&SR7.F.hideLeavingSlide(t,e.skey)}},slidingoverlay:{getBasic:function(e){return{attr:["x","y"],[e]:"in"===e?{m:!0,o:-1,_xy:20,_gxys:10,_gxye:-10,zIndex:20,e:"power1.inOut"}:{m:!0,reversed:!1,_xy:-100,o:0,zIndex:10,e:"power1.inOut"}}},updateAnim:function(e,t){e.in.x=String(e.in.x??0).replace("px","%"),e.in.y=String(e.in.y??0).replace("px","%");var s=void 0!==e.in.x&&"0"!==e.in.x&&"0%"!==e.in.x&&"0px"!==e.in.x?"x":"y";e.in["g"+s+"s"]=SR7.F.getOffset(e.in[s],e.in._gxys,t.sdir,1)+"%",e.in["g"+s+"e"]=SR7.F.getOffset(e.in[s],e.in._gxye,t.sdir,1)+"%","out"===t.scene?e.out[s]=SR7.F.getOffset(e.in[s],e.out._xy,t.sdir,1)+"%":e.in[s]=SR7.F.getOffset(e.in[s],e.in._xy,t.sdir,1)+"%";var i=parseInt(e.in[s])>=0;return e.in.d="x"===s?i?"left":"right":i?"up":"down",e}}};const r=(e,t,s)=>{!s&&"in"===e&&t?.canvas?.canvas&&(t.canvas.canvas.style.visibility="hidden"),t?.canvas?.canvas&&(t.canvas.canvas.style.background="transparent"),s||SR7.F.bgFreeze?.(t?.canvas)},n=e=>e.media&&"html5"===e.media.player.options.type&&e.media.startCanvas(e.canvas),o=(e,t)=>{if(-1==e.prev.index&&e.settings?.fs?.as)return _tpt.extend({},e.settings?.fs?.a);const s=t?.in?.bg?.all?.[1]??t?.in?.bg?.all?.[0];return s?_tpt.extend({},s):{d:1e3,e:"power2.inOut",tr:"basic",o:"inout"}},l=(e,t,s)=>{if("in"!==t||null==e.rnd||0==_tpt.tf(e.rnd)||null==SR7.E.transtable)return e;const i=s?s.store[s.key]??=SR7.F.getRandomSlidetransition(SR7.E.transtable):SR7.F.getRandomSlidetransition(SR7.E.transtable);return i?SR7.D.getBGAnim(i):e},d=(e,t)=>(Array.isArray(e.addOns)&&0===e.addOns.length&&(e.addOns={}),SR7.D.transitions?.[e.tr]?.getBasic&&(e=_tpt.extend(SR7.D.transitions[e.tr].getBasic(t),e)),"double"==e.p&&(e=_tpt.extend(SR7.D.transitions.slidingoverlay.getBasic(t),e)),e[t]??={},e),c=e=>"default"==e.d||"d"==e.d?1e3:"random"==e.d?Math.round(1e3*Math.random()+300):_tpt.defNum(e.d,1e3),p=(e,t,s,i,a)=>({...SR7.D.transitions.setDimensions(e,t[s]),id:i,scene:s,TL:_tpt.gsap.timeline(),sdir:SR7.E.backend||SR7.F.sbt?.storyMode?.(i)?1:a.lastChangeDir,d:c(t),sd:parseFloat(t.sd||75)/1e3,delay:0}),u=(e,t,s,i)=>{!SR7.E.backend&&-1===i.prev.index||"in"!==s||void 0===t.p||"none"===t.p||"double"===t.p||(e.delay=e.d/2e3)},h=(e,t,s,i,a)=>{s.notFirstIn=-1!=a.prev.index,"out"===e?a.zOrder={cache:{skey:i.skey,ms:s.d,animated:1!=(t[e].o??1)||0!=(t[e].x??0)||0!=(t[e].y??0)}}:!SR7.E.backend&&-1===a.prev.id||null!=a.zOrder?.cache&&("forceinout"===t.o||"outin"!=t.o&&!a.zOrder?.cache?.animated)?!SR7.E.backend&&-1===a.prev.id||0!==s.delay||"forceinout"===t.o||(a.zOrder??={},a.zOrder.use="in"):(a.zOrder??={},a.zOrder.managed="0"==t?.out?.o||"outin"==t.o||0!==s.delay||1===(t[e].o??1)&&0===(t[e].x??0)&&0===(t[e].y??0),a.zOrder.use=0!==s.delay?"out":0==(t[e].x??0)&&0==(t[e].y??0)||0!=(t.out?.x??0)||0!=(t.out?.y??0)||1!=(t.out?.sx??1)||1!=(t.out?.sy??1)?(a.zOrder?.cache?.ms??1e3)<(s.d??1e3)?"in":"out":"in")},g=(e,t,s)=>null==e?void 0:{...e,dur:.001*t,fd:7e-4*t,md:15e-5*t,sdir:s??1,t:void 0!==e.t&&0!==e.t&&e.t,su:_tpt.tf(e.su),smi:_tpt.tf(e.su)?parseFloat(e?.smi||0):void 0,sl:_tpt.tf(e.su)?parseFloat(e?.sl||1):void 0,sma:_tpt.tf(e.su)?parseFloat(e?.sma||.5):void 0,sc:_tpt.tf(e.su)?_tpt.gsap.utils.splitColor(e?.sc??"0,0,0").join(","):void 0};_tpt.R??={},_tpt.R.transitions=_tpt.extend?_tpt.extend(_tpt.R.transitions,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={};const e={rX:"rotationX",rY:"rotationY",rZ:"rotationZ",sX:"scaleX",sY:"scaleY",skX:"skewX",skY:"skewY",o:"opacity",c:"color",bgcol:"bgcol"},t=(e={})=>{const{layer:t,vars:s}=e;if(!t?.addOns||!s||!SR7.A)return;const i=[];for(let e in t.addOns){if(!_tpt.hop(t.addOns,e)||!t.addOns[e]?.u)continue;const s=SR7.A?.[e]?.onAnimUpdate;"function"==typeof s&&i.push({slug:e,fn:s})}if(!i.length)return;const a=s.onUpdate;
28s.onUpdate=function(){a?.apply(this,arguments),i.forEach(({fn:t})=>t({...e,vars:s,tween:this}))}},s=(e,t)=>{if(!e||!t)return;const s=t.data?.id;if(s)for(const i of e.getChildren(!1))if(i!==t&&i.data?.id===s)try{i.kill()}catch(e){}const i=0===e.duration()||e.progress()>=1;if(e.add(t,0),i&&!e.data?.story)try{e.play(0)}catch(e){}},i=(e,t=120)=>new Promise(s=>{let i=0;const a=()=>e?.width>0&&e?.height>0,r=()=>a()?s(!0):++i>=t?s(!1):void requestAnimationFrame(r);if(a())return s(!0);requestAnimationFrame(r)});if(void 0!==SR7.F.animateLayers)return;SR7.F.animateLayers=async function(e){let{id:t,skey:a,layers:r,scene:n,caller:o,update:l,subcaller:d,timeto:c,reset:p,ffw:u}=e;const h=SR7.M[t],g=h.slides?.[a]?.slide?.global;n??="in",r??=h.c.PO[a],h.c.tl=h.c.tl??{},h.c.tl[a]??={};const m=h.c.tl[a][n]?.TL?.data?.bt,f=void 0!==m&&performance.now()-m<100,S="action"===o||"parent"===o,y=!SR7.E.backend&&g&&h.c.tl[a]?.[n]&&!(S&&"in"!==n&&"out"!==n);if("update"!==o&&!f&&(!e.edited||SR7.E.backend&&void 0===h.c.tl[a]?.[n])&&!y){const e=h.c.tl[a][n];if(e)try{e.TL?.kill?.(),e.BGTL?.kill?.(),e.PAN?.kill?.(),e.loops?.kill?.()}catch(e){}const s=!g&&"out"===n&&!0===SR7.F.sbt?.storyMode?.(t);h.c.tl[a][n]={TL:_tpt.gsap.timeline({paused:s,data:{id:a+"_"+n,bt:performance.now()}}),BGTL:_tpt.gsap.timeline({data:{id:"bgtl_"+a+"_"+n}}),PAN:_tpt.gsap.timeline({data:{id:"pan_"+a+"_"+n,story:!g&&!0===SR7.F.sbt?.storyMode?.(t)}})}}if(SR7.E.backend||"action"!==o&&"update"!==o&&!g&&"action"!==d&&(!SR7.F.isCarousel(t)||"all"!==h.settings.carousel.showAllLayers))for(let e in h.c.tl[a])_tpt.hop(h.c.tl[a],e)&&e!==n&&(h.c.tl[a][e]?.TL?.pause(),h.c.tl[a][e].loops&&h.c.tl[a][e]?.loops?.pause());let v=n;for(let m of r){let{layer:r,c:f}=SR7.F.getLayer({id:t,skey:a,lkey:m});if(void 0===f||SR7.F.isCarousel(t)&&"update"===o&&("all"===h.settings.carousel.showAllLayers||r.viOC))continue;if(g&&!SR7.E.backend){if("out"===n&&!f.animState?.scene)continue;if(f.animState?.scene==n&&!S)continue;const e=Math.max(0,SR7.M[t].current.index)+1;if(f.gpos=r.scSkip?.has(e)?"out":_tpt.inRange(e,r.sStart,r.scEnd),"in"===n&&"out"===f.gpos)continue;if("action"!==o&&"parent"!==o&&"out"===n&&"in"===f.gpos)continue;if("action"!==o&&"parent"!==o&&"in"===f.gpos&&"in"===n&&("in"===(f.animState?.scene??"")||"default"!==(f?.animState?.caller??"default")))continue;if("action"===o&&"out"!==n&&"in"!==n&&"out"===(f.animState?.scene??""))continue}if("action"===o&&f?.animState?.scene&&f?.tl?.[f?.animState?.scene]&&f.tl[f.animState.scene].TL&&f.tl[f.animState.scene].TL.pause(),p&&"parent"===o&&"action"===d&&"in"===n)for(let e in f.tl)if(_tpt.hop(f.tl,e)&&e!==n&&(!g||"w"!=String(r.tl?.in?.content?.all?.[0]?.t??"")[0]))for(let t in f.tl[e])_tpt.hop(f.tl[e],t)&&f.tl[e][t]?.pause(0);f.el.classList.remove("sr7-fx-hidden");let y=SR7.E.backend?SR7.editor.scene.getRefScene(m,a):n;f.useFXC="in"===y&&"c"===r?.tl?.in?.content?.all?.[1]?.fx?.[0]||"out"===y&&"c"===r?.tl?.out?.content?.all?.[0]?.fx?.[0],f.fxitl&&f.fxitl.pause(0).render(),f.fxotl&&f.fxotl.pause(1).render(),f.fxc&&(f.fxc.style.visibility="hidden"),f.useFXC||(f.fxitl=void 0,f.fxotl=void 0);let v="in"===n&&SR7.F.inActionEnv(t,a,m);if("action"!==o&&"parent"!==o&&v)v&&null==f.animState?.scene&&_tpt.gsap.set(f.el,{opacity:0});else{if("action"===o&&"container"===r.type&&("in"===n||"out"===n||"in"===y||"out"===y)){let e=SR7.F.triggeredChildren(t,a,m),s=SR7.F.getLayer({id:t,skey:a,lkey:m})?.c;null!=p&&1!=p&&!0===s.animState.everCalled||await SR7.F.animateLayers({id:t,skey:a,reset:p,layers:e,scene:n,caller:"parent",subcaller:o}),s.animState.everCalled=!0}if(r?.tl?.[n]||"out"===n&&"slidebg"===r.subtype){let d=void 0!==l&&f.tl?.[n]?.[l]?.progress?f.tl[n][l].progress():0;if(f.sbt=(h.settings?.sbt?.use??!1)&&"in"===n&&((r.sbt?.u??!1)||SR7.F.sbt?.storyMode?.(t)&&!g),!SR7.E.backend&&g&&S&&("in"===n||"out"===n)&&f.tl?.[n]?.TL)try{f.tl[n].TL.kill()}catch(e){}"slidebg"===f.subtype&&f?.canvas?.canvas&&0==f.canvas.canvas.width&&await i(f.canvas.canvas);let{tl:y,loops:v,pan:R}=await SR7.F.processTimeLine({sbt:f.sbt,id:t,c:f,layer:r,reset:p,timeline:r.tl,scene:n,skey:a,lkey:m,caller:o,update:l,reanimateBG:e.reanimateBG,ignoreBG:e.ignoreBG});if(u&&void 0!==c)return y.time(c);if(void 0!==l&&0!==d&&y.progress(d),f.sbt&&!SR7.E.backend&&y.pause(),SR7.E.backend&&"in"===n&&"slidebg"===r.subtype)h.c.tl[a][n].BGTL.add(y,0),s(h.c.tl[a][n].PAN,R);else if(SR7.E.backend||!g||!S||"in"!==n&&"out"!==n){if(h.c.tl[a][n].TL.add(y,0),R&&s(h.c.tl[a][n].PAN,R),"slidebg"!==r.subtype){const e=r?.tl?.[n]?.base,s="in"===n&&!(!r?.tl||!Object.keys(r.tl).some(e=>{if("in"===e||"out"===e)return!1;const t=r.tl[e];return"in"===t||"in"===t?.base}))&&!S;if("in"!==n&&"in"!==e||s||!r.reveal?.u){if(s&&f._revealTween){try{f._revealTween.kill?.()}catch(e){}f._revealTween=null;
28try{SR7.A?.[r.reveal?.slug??"transitionpack"]?.onReveal?.({id:t,skey:a,lkey:m,c:f,layer:r,p:1})}catch(e){}}}else{const e=SR7.A?.[r.reveal.slug??"transitionpack"];if(e?.onReveal){const s={p:0},i={id:t,skey:a,lkey:m,c:f,layer:r};try{e.onReveal({...i,p:0})}catch(e){}f._revealTween=_tpt.gsap.fromTo(s,{p:0},{p:1,duration:(f._revealEntryDur||1500)/1e3,ease:r.reveal.ease||"none",onUpdate:()=>{try{e.onReveal({...i,p:s.p})}catch(e){}},onComplete:()=>{try{e.onReveal({...i,p:1})}catch(e){}}}),h.c.tl[a][n].TL.add(f._revealTween,f._revealEntryStart||0)}}if(("out"===n||"out"===e)&&r.revealout?.u){const e=SR7.A?.[r.revealout.slug??"transitionpack"];if(e?.onRevealOut){const s={p:0},i={id:t,skey:a,lkey:m,c:f,layer:r};try{e.onRevealOut({...i,p:0})}catch(e){}f._revealOutTween=_tpt.gsap.fromTo(s,{p:0},{p:1,duration:(f._revealExitDur||1e3)/1e3,ease:r.revealout.ease||"none",onUpdate:()=>{try{e.onRevealOut({...i,p:s.p})}catch(e){}},onComplete:()=>{try{e.onRevealOut({...i,p:1})}catch(e){}}}),h.c.tl[a][n].TL.add(f._revealOutTween,f._revealExitStart||0)}}}if(!SR7.E.backend&&(f.dOverlay||f.canvas&&f.canvas.overlay)){let e=f.dOverlay??f.canvas.overlay;_tpt.gsap.killTweensOf(e),"in"===n&&(_tpt.gsap.set(e,{opacity:0}),h.c.tl[a][n].TL.to(e,{opacity:1,duration:.5,ease:"power2.out"},0)),"out"===n&&h.c.tl[a][n].TL.to(e,{opacity:0,duration:.5,ease:"power2.in"},0)}}else{if(R)try{R.play(0)}catch(e){}y.play(0)}if("update"!==o&&void 0!==v&&(h.c.tl[a][n].loops??=_tpt.gsap.timeline(),h.c.tl[a][n].loops.add(v,0)),f.sbt){h.sbt??={},h.sbt[a]??={};let e=!1;if(r.addOns)for(let t in r.addOns)if(r.addOns[t]?.u&&"function"==typeof SR7.A?.[t]?.onTimelineRender){e=!0;break}h.sbt[a][m]={tl:y,so:r.mod?.s?.so??0,sync:e},SR7.E.backend||_tpt.gsap.to(y,{duration:.01,time:_tpt.gsap.utils.clamp(0,y.duration(),SR7.F.sbt.localTime(t,a)),onUpdate:e?()=>SR7.F.syncSBTAddOns?.(t,a,m,y):void 0}),v&&(h.sbt[a][m+"_loop"]??={},h.sbt[a][m+"_loop"]={tl:v})}}}}"update"!==o&&(n=v,g&&!SR7.E.backend||h.c.tl[a][n].TL.eventCallback("onComplete",F.sceneCompleted,[{id:t,scene:n,caller:o,skey:a}]),g&&!SR7.E.backend||h.c.tl[a][n].TL.eventCallback("onStart",F.sceneStarted,[{id:t,scene:n,caller:o,skey:a}]),SR7.E.backend&&await _tpt.gsap.delayedCall(.029,()=>{}))};const a=(e,t,s,i,a,r,n)=>{const o=SR7.M[e],l=o.slides?.[t]?.layers??{};if(void 0!==i.animState?.scene||a&&!o.slides?.[t]?.slide?.global||SR7.F.startOnAction?.(e,t,s))return!1;for(let i=String(l[s]?.pid??-1);"-1"!==i&&l[i];i=String(l[i].pid??-1)){if(n.has(i))return!1;if(r.has(i)||!l[i].tl?.in)continue;const s=SR7.F.getLayer({id:e,skey:t,lkey:i}).c?.animState?.scene;if(void 0===s||"out"===s)return!1}return!0};SR7.F.replayEmpty=e=>{e&&!e.getChildren(!0,!0,!1).length&&(e.kill(),e.data?.done?.())},SR7.F.replay=async(e,t,i,r="in",n=!1)=>{if(SR7.E.backend)return;const o=SR7.M[e],l=SR7.F.sbt?.storyMode?.(e),d=[],c=new Set,p=new Set,u=_tpt.gsap.timeline({paused:!0,data:{id:t+"_replay_"+r}}),h="in"===r?1:0,g=new Set((i??[]).map(String)),m=new Set,f=o.slides?.[t]?.layers??{},S=e=>{let t=0;for(let s=String(f[e]?.pid??-1);"-1"!==s&&f[s];s=String(f[s].pid??-1))t++;return t};let y;for(let f of[...i??[]].sort((e,t)=>S(e)-S(t))){const{layer:i,c:S}=SR7.F.getLayer({id:e,skey:t,lkey:f}),v=l?o.sbt?.[t]?.[f]:void 0,R=S?.replay?.[r];if("in"!==r&&R&&!R.data?.settled&&R.isActive()){p.add(R.data.promise),m.add(String(f));continue}const b="in"===r?"in"===S?.animState?.scene||n&&void 0!==S&&a(e,t,f,S,l,g,m):"out"!==(S?.animState?.scene??"out")&&!v;if(!i?.tl?.[r]||!S?.el||S.sbt&&!v||!b){m.add(String(f));continue}if(v&&(String(o.sbt.__segs?.[o.sbt.__focus]?.skey)!==String(t)||v.tl.time()<=(v.so??0))){m.add(String(f));continue}v&&(v.replay?.kill(),_tpt.gsap.killTweensOf(v.tl),v.tl.kill());for(let e in S.tl?.[r]??{})if(_tpt.hop(S.tl[r],e))try{S.tl[r][e]?.kill?.()}catch(e){}S.tl[r]={},S.replay?.[r]&&S.replay[r]!==u&&c.add(S.replay[r]),"in"===r&&S.splitText&&(S.splitText=void 0);const{tl:w,loops:x,pan:_}=await SR7.F.processTimeLine({id:e,c:S,layer:i,timeline:i.tl,scene:r,skey:t,lkey:f,caller:"replay",sbt:!!v||void 0});if((S.replay??={})[r]=u,v){v.tl=w.pause(0),v.replay=u,v.replayTime=SR7.F.sbt.localTime(e,t),d.push(v);const i=_tpt.gsap.utils.clamp(v.so??0,w.duration(),v.replayTime);u.to(w,{time:i,duration:i,ease:"none",onUpdate:v.sync?()=>SR7.F.syncSBTAddOns(e,t,f,w):void 0},0),x&&(o.sbt[t][f+"_loop"]={tl:x.pause(0)}),_&&s(o.c.tl[t].in.PAN,_)}else u.add(w,0),x&&u.add(x,0),_&&u.add(_,0);const F=parseInt(i.tl[r].content?.all?.[h]?.t);y=Math.min(y??1/0,isNaN(F)?0:F)}for(const e of c)SR7.F.replayEmpty(e);
28if(void 0===y)return u.kill(),p.size?Promise.all([...p]).then(e=>e[e.length-1]):void 0;const v=new Promise(s=>{u.data.done=()=>{u.data.settled=!0,(()=>{for(const s of d)s.replay===u&&(delete s.replay,delete s.replayTime,s.tl.pause(_tpt.gsap.utils.clamp(s.so??0,s.tl.duration(),SR7.F.sbt.localTime(e,t))))})(),s(u)}});return u.data.promise=v,u.eventCallback("onComplete",u.data.done),u.eventCallback("onInterrupt",u.data.done),u.play(y/1e3),p.size?Promise.all([v,...p]).then(()=>u):v},SR7.F.replayIn=(e,t,s)=>SR7.F.replay(e,t,s,"in"),SR7.F.processTimeLine=async function(s){const{timeline:i,scene:a,id:r,layer:n,c:o,caller:l,update:d,skey:c,reset:p,sbt:u}=s;let R="in"===n?.tl?.[a]?.base?"in":"out"===n?.tl?.[a]?.base?"out":a;const k=i[a],M=_tpt.gsap.timeline({data:{id:c+"_"+o.lkey+"_"+a}});let C,E;o.tl[a]??={};let O=!1;"in"===R&&(o._revealEntryDur=0,o._revealEntryStart=null),"out"===R&&(o._revealExitDur=0,o._revealExitStart=null),void 0!==o.mod&&(o.mod.animElem=o.mod.mask?o.el:o.parallax?o.parallax:o.loop?o.loop:o.mask?o.mask:"column"===o.subtype?o.con:o.el);let A=o.loop?"target":o.mask?"mask":"content",L="content";if("text"!==n.type&&"button"!==n.type||(L=b(n,o,a,k),"content"===L||o.splitText&&o.splitText[L]&&0!==o.splitText[L].length||(L="content"),w(n,o,a,L,r)),void 0!==k)for(let s of SR7.D.TLTargetsProcess){if("pan"===s&&SR7.F.pan.offHere(r))continue;if(SR7.E.backend){let e="words"===s||"lines"===s||"chars"===s?o.splitText?.[s]:"loop"===s?o.loop:"mask"===s?"column"===o.subtype?[o.mask,o.colbgMask]:o.mask:"row"===o.subtype&&(o.mask||o.loop||"clip"===s&&o.con)?o.con:"column"===o.subtype&&(o.mask||o.loop)?[o.con,o.colbg]:o.el;"filter"===s&&k.filter?.d?_tpt.gsap.set(e,{filter:"none"}):"pan"===s&&k.pan?.d&&SR7.M[r].c?.pans?.[o.skey]&&(SR7.M[r].c.pans[o.skey]=SR7.M[r].c.pans[o.skey].filter(e=>e!==o.lkey),_tpt.gsap.set(o.canvas.pan,{x:0,y:0,scale:1,rZ:0}),delete o.canvas.pan),null==k[s]&&("chars"!==s&&"words"!==s&&"lines"!==s||o.splitText&&o.splitText[s]&&_tpt.gsap.set(o.splitText[s],{clearProps:"all"}),"mask"===s&&o.mask&&(o.mask.style.visibility="visible",o.mask.style.overflow="visible",o.el.classList.remove("sr7-fx-hidden")))}if(null==k[s]&&("effects"!==s||!_tpt.tf(n.surface?.u)&&!SR7.FX?.live?.[`${r}:${o.lkey}`]?.passes?.some(e=>e.def?.layerStyle)))continue;if(void 0!==d&&s!==d)continue;if("effects"===s){const e={id:r,c:o,layer:n,scene:a};SR7.F.fx?.ensureEngine?.(e)&&SR7.F.fx.timeline(e);continue}if("parent"===l&&o.targetRepeat?.[s])continue;o.cache.tl??={},o.cache.tl[s]??="filter"===s?{}:SR7.F.getEmptyAnimObj(1);const i=_tpt.gsap.timeline();i.data={id:r,skey:c,lkey:o.lkey,target:s,scene:a,caller:l,reset:p,sbt:u};const b=void 0!==o.mod&&(!o.parallax||o.mod.mask)&&(o.mod.animElem!==o.el&&"mask"===s||o.mod.animElem==o.el&&"content"===s),w=!!_tpt.motionPath;if(SR7.E.backend&&SR7.F.resetOrigins(o,n),/*!SR7.E.backend &&*/!k[s].d){for(let d in k[s]){if(!_tpt.hop(k[s],d))continue;if(-1!==SR7.D.excludeParts.indexOf(d))continue;let p="filter"===s?["filter"]:"all"==d?SR7.D.animAttr.filter(function(e){return!_tpt.hop(k[s],e)&&!_tpt.hop(k[s],SR7.D.animAttrTrans[e])}):"scale"==d?["scaleX","scaleY","skewX","skewY","sX","sY"]:"motionpath"==d?["x","y","z"]:[e[d]||d],M=SR7.F.usePerspective(k[s][d],SR7.M[r].settings.general,k?.content?.pers??"600px");(k.pan||k.filter||k.loop)&&s==A&&(M??=k?.content?.pers??"600px");for(let e in k[s][d]){if(!SR7.E.backend&&"out"===a&&!o.animState?.scene)continue;if("in"===a&&("action"===l||"parent"===l)&&o.animState?.scene&&"out"!=o.animState.scene&&0==e)continue;if("in"===R&&"action"!=l&&"w"==(""+k[s][d][0].t)[0]&&(!SR7.E.backend||e>0))continue;"in"===R&&0==e&&SR7.F.modify.process(r,"scroll",o.lkey);const C=k[s].d?{e:k?.content?.[d]?.[e]?.e??k?.content?.all?.[e]?.e??"none",d:k?.content?.[d]?.[e]?.d??k?.content?.all?.[e]?.d??k?.[s]?.[d]?.[e]?.d,o:1,x:0,y:0,sX:1,sY:1,rX:0,rY:0,rZ:0,oflow:"visible"}:k[s][d][e],E=SR7.D.splits.indexOf(s)>=0;if(E&&SR7.E.backend&&"true"==String(k[s].d))continue;0==e&&"in"===R&&null!=k[s][d][1]?.t&&parseInt(C?.t)>parseInt(k[s][d][1].t)&&(C.t=k[s].d?k.content?.[d]?.[1]?.t??k.content?.all?.[1]?.t??k[s][d][1].t:k[s][d][1].t),!E||o.splitText&&!SR7.D.splits.some(e=>!String(o.splitText.vars?.type??"").includes(e)&&Object.values(n.tl).some(t=>void 0!==t?.[e]))||(o.splitText?.revert?.(),o.splitText=SR7.F.splitText(n,o));let A={ease:"content"!==s?k[s].ex?C.e:k.content?.all?.[e]?.e??C.e:C.e,duration:C.d/1e3,id:o.el.id+"_"+a+"_"+s+"_"+e,immediateRender:"in"===R&&0==e};if("in"===R&&"content"===s&&""+e=="1"&&(o._revealEntryDur=Math.max(o._revealEntryDur||0,parseInt(C.d)||0)),"out"===R&&"content"===s&&(o._revealExitDur=Math.max(o._revealExitDur||0,parseInt(C.d)||0)),("in"!==R||""+e!="0")&&E){let t=C.delay?.01*C.delay:C.sd?.001*C.sd:.05;A.stagger="center"===C.dir||"edges"===C.dir?SR7.F.offsetStagger({each:t,offset:.5*t,from:C.dir}):SR7.F.offsetStagger({each:t,from:"start"!==C.dir&&"end"!==C.dir||-1!=SR7.dirVal(r,SR7.gV({v:1==e?k[s].all[0].x:C.x,id:r,s:"scale"})).d?C.dir??"start":"start"===C.dir?"end":"end"===C.dir?"start":C.dir??"start"})}let T="words"!==s&&"lines"!==s&&"chars"!==s||!E?"loop"===s?o.loop:"content"===s&&"image"===o.subtype&&o.colbg?[o.el,o.colbg]:"mask"===s?"column"===o.subtype?[o.mask,o.colbgMask]:o.mask:"row"===o.subtype&&(o.mask||o.loop||"clip"===s&&o.con)?o.con:"column"===o.subtype&&(o.mask||o.loop)?[o.con,o.colbg]:o.el:o.splitText[s],I=parseInt(String(C.t).replace("w",""))/1e3||0;if("in"===R&&"content"===s&&""+e=="1"&&(o._revealEntryStart=null==o._revealEntryStart?I:Math.min(o._revealEntryStart,I)),"out"===R&&"content"===s&&(o._revealExitStart=null==o._revealExitStart?I:Math.min(o._revealExitStart,I)),0==e&&String(C.t).includes("w")&&I>parseInt(k[s][d]?.[1]?.t)/1e3&&(I=parseInt(k[s][d]?.[1]?.t)/1e3),"loop"===s||"chars"===s||"words"===s||"lines"===s&&o.splitText&&o.splitText[s]){let e=k[s]?.orig?(k[s]?.orig?.x??"50%")+" "+(k[s]?.orig?.y??"50%")+" "+(_tpt.unitize(k[s]?.orig?.z)??"50%"):void 0;if(o.fake&&"out"===a)for(let t of o.splitText[s])_tpt.gsap.set(t,{transformOrigin:e,immediateRender:!0});e&&(A.transformOrigin=e)}if("loop"===s&&(C.fu||C.bu||"filter"==d)||"filter"==s||E){if(o.filters??={},(C.fu||void 0!==(o.filters?.simple?.used??void 0))&&("filter"===s&&o.mod?.scroll?.uf&&(o.filters.simple=SR7.F.getFilterStyle(o.mod.scroll,"",o.filters?.simple?.used??void 0)),o.filters.simple=SR7.F.getFilterStyle(C.fu?C:{b:0,r:100,g:0},"",o.filters?.simple?.used??void 0),A.filter=o.filters.simple.filter),(!E&&C.bu||"loop"!==s&&void 0!==(o.filters?.backdrop?.used??void 0))&&(o.filters.backdrop=SR7.F.getFilterStyle(C.bu?C:{b:0,r:100,g:0,s:0,i:0},"b",o.filters?.backdrop?.used??void 0),A.backdropFilter=o.filters.backdrop.filter,M=A.transformPerspective??=k?.content?.pers??"600px"),!E&&null==A.filter&&null==A.backdropFilter){i.add(_tpt.gsap.to(T,{}),I);continue}"filter"===s&&o.mod?.scroll?.uf&&(T=o.mask?o.mask:o.el,A=SR7.F.modify.get(r,T,A,o,a,e,s,"f
28ilter"))}if("clip"==s){if(S(C.c))continue;A["clip-path"]=A["-webkit-clip-path"]=SR7.F.clipEffect(k[s].orig,k[s].type,C.c,C.cb),o.clipPath=!0}else if("pan"===s&&void 0!==n.bg.image){const t=SR7.F.pan.getStep({canvas:o.canvas,x:parseInt(k.pan.all[e].x??0),y:parseInt(k.pan.all[e].y),scale:parseInt(k.pan.all[e].sX)/100,rotate:parseInt(k.pan.all[e].rZ),anchorX:void 0!==k.pan.all[e].anchorX?parseInt(k.pan.all[e].anchorX)/100:void 0,anchorY:void 0!==k.pan.all[e].anchorY?parseInt(k.pan.all[e].anchorY)/100:void 0,cover:_tpt.tf(k.pan.cover),pos:n.bg.image.pos});void 0!==t&&(A.x=t.x,A.y=t.y,A.scale=t.scale,A.rZ=t.rZ,void 0!==t.anchorX&&(A.anchorX=t.anchorX),void 0!==t.anchorY&&(A.anchorY=t.anchorY),0==e&&(o.canvas.pfrom={x:A.x,y:A.y,rZ:A.rZ,scale:A.scale},o.canvas.pan={x:A.x,y:A.y,rZ:A.rZ,scale:A.scale},void 0!==t.anchorX&&(o.canvas.pfrom.anchorX=o.canvas.pan.anchorX=t.anchorX),void 0!==t.anchorY&&(o.canvas.pfrom.anchorY=o.canvas.pan.anchorY=t.anchorY)),e>0&&o.canvas._panPrev&&(A.startAt={...o.canvas._panPrev},A.immediateRender=!0),o.canvas._panPrev={x:A.x,y:A.y,rZ:A.rZ,scale:A.scale},void 0!==A.anchorX&&(o.canvas._panPrev.anchorX=A.anchorX),void 0!==A.anchorY&&(o.canvas._panPrev.anchorY=A.anchorY),T=o.canvas.pan,SR7.M[r].c.pans??={},SR7.M[r].c.pans[o.skey]??=[],SR7.M[r].c.pans[o.skey].includes(o.lkey)||SR7.M[r].c.pans[o.skey].push(o.lkey))}else if("filter"!==s){if("p"!==C.mpt||null==C.path||""==C.path){E&&"chars"===s&&void 0!==C.gap&&void 0===C.x&&(C.x=0);const t=!E&&e>0&&C.arc&&w?parseFloat(C.arc):0;if(0!==t&&(void 0!==C.x||void 0!==C.y)&&p.includes("x")&&p.includes("y")){const i=g(m(r,C,E,o,a,s,"x",n.fluid?.tr)),l=g(m(r,C,E,o,a,s,"y",n.fluid?.tr)),c=k[s].d?null:k[s][d][parseInt(e)-1],p=void 0!==c?.x?g(m(r,c,E,o,a,s,"x",n.fluid?.tr)):parseFloat(_tpt.gsap.getProperty(T,"x"))||0,u=void 0!==c?.y?g(m(r,c,E,o,a,s,"y",n.fluid?.tr)):parseFloat(_tpt.gsap.getProperty(T,"y"))||0,h=i-p,f=l-u,S=Math.sqrt(h*h+f*f);if(S>.5){const e=t*S*.45,s=.5*(p+i)+-f/S*e,a=.5*(u+l)+h/S*e;A.motionPath={path:`M ${p.toFixed(3)} ${u.toFixed(3)} Q ${s.toFixed(3)} ${a.toFixed(3)} ${i.toFixed(3)} ${l.toFixed(3)}`},A.x=i,A.y=l}else void 0!==C.x&&(A.x=m(r,C,E,o,a,s,"x",n.fluid?.tr)),void 0!==C.y&&(A.y=m(r,C,E,o,a,s,"y",n.fluid?.tr))}else p.includes("x")&&void 0!==C.x&&(A.x=m(r,C,E,o,a,s,"x",n.fluid?.tr)),p.includes("y")&&void 0!==C.y&&(A.y=m(r,C,E,o,a,s,"y",n.fluid?.tr));if(E&&"chars"===s&&void 0!==C.gap){const e=A.x;A.x=t=>(("function"==typeof e?e(t):void 0!==e?e:0)||0)+v(r,o,C.gap,t)}}else{let e=_tpt.scalePath(C.path,SR7.M[r].MP);A.motionPath={path:e,fromCurrent:!0,offsetX:SR7.gV({v:C.x??0,id:r}),offsetY:SR7.gV({v:C.y??0,id:r}),autoRotate:C.aR??!1,alignOrigin:[.5,.5]},0==A.motionPath.offsetX&&delete A.motionPath.offsetX,0==A.motionPath.offsetY&&delete A.motionPath.offsetY}if(b&&(A.tx=g(A.x),A.ty=g(A.y),p.push("tx"),p.push("ty"),A=SR7.F.modify.get(r,T,A,o,a,e,s,"xy")),p.includes("z")&&void 0!==C.z?A.z=m(r,C,E,o,a,s,"z",n.fluid?.tr):delete A.z,"lines"===s&&void 0!==C.oflow&&(A.overflow=C.oflow),"mask"===s?(A.overflow=C.oflow??(0==e&&null==k[s][d][1]?.oflow||(1==e&&null==k[s][d][0]?.oflow?"visible":"hidden")),void 0!==n.tr&&(A.rotationX=()=>n.tr?.rX??0,A.rotationY=()=>n.tr?.rY??0,A.rotationZ=()=>n.tr?.rZ??0),o.mod?.scroll?.utr&&(A=SR7.F.modify.get(r,T,A,o,a,e,s,"transform"))):(p.includes("rotationX")&&(void 0!==C.rX||"in"===R&&0==e)&&(A.rotationX=f(r,E?C.rX??0:SR7.F.getSpecialValue(C.rX??0,0,SR7.M[r].lastChangeDir??1),E)),p.includes("rotationY")&&(void 0!==C.rY||"in"===R&&0==e)&&(A.rotationY=f(r,E?C.rY??0:SR7.F.getSpecialValue(C.rY??0,0,SR7.M[r].lastChangeDir??1),E)),p.includes("rotationZ")&&(void 0!==C.rZ||"in"===R&&0==e)&&(A.rotationZ=f(r,E?C.rZ??0:SR7.F.getSpecialValue(C.rZ??0,0,SR7.M[r].lastChangeDir??1),E))),_tpt.isSafari11||_tpt.isIOS||void 0===o.ptype||void 0===o.borderW&&void 0===o.borderH||(A.force3D=!0),(void 0!==M||"mask"===s&&(o.mod?.scroll?.utr||o.mod?.mouse?.d3))&&_tpt.gsap.set(T,{transformPerspective:M??600,immediateRender:!0}),(p.includes("scaleX")||p.includes("scaleY")||p.includes("skewX")||p.includes("skewY"))&&(E?(A.scaleX=_(r,y(C.sX??C.scaleX),"scale",y(C.skY||C.skewY)),A.scaleY=_(r,y(C.sY??C.scaleY),"scale",y(C.skY||C.skewY)),A.skewX=_(r,y(C.skX||C.skewX),"skew"),A.skewY=_(r,y(C.skY||C.skewY),"skew")):A=x(A,{sX:C.sX??o.cache.tl[s].scaleX,sY:C.sY??o.cache.tl[s].scaleY,skX:C.skX??o.cache.tl[s].skewX,skY:C.skY??o.cache.tl[s].skewY,dir:SR7.M[r].lastChangeDir??1}),"sX"!=d&&"scaleX"!=d||delete A.scaleY,"sY"!=d&&"scaleY"!=d||delete A.scaleX,p.includes("scaleX")||delete A.scaleX,p.includes("scaleY")||delete A.scaleY,p.includes("skewX")||delete A.skewX,p.includes("skewY")||delete A.skewY),p.includes("opacity")){let t="content"===s&&(o.mod?.scroll?.uf??!1)&&(o.mod?.scroll?.f??0)>0;A[t?"tf":"opacity"]="mask"===s&&n.tr?n.tr.o:E&&"in"===R&&0==e&&S(C.o)?k?.content?.all?.[0]?.o??1:C.o,t&&(A=SR7.F.modify.get(r,T,A,o,a,e,s,"opacity"))}if(("content"===s||E&&"all"==d)&&k?.content?.all){if(o.cache??={},o.cache.color??={},"content"===s){const t=k.content.all?.[e];o.cache.shadow??={};for(const[i,l,d,c,p]of[["tsh","tshU",!1,"textShadow","tShdw"],["bsh","bshU",!0,"boxShadow","bShdw"]]){const u=_tpt.tf(t?.[l]);if(!u&&"idle"===(o.cache.shadow[i]??"idle"))continue;const h=n[p],g=Math.max(_tpt.tf(h?.use??!1)?h.set?.length??0:0,u?t[i]?.set?.length??0:o.cache.shadow[i+"N"]??0),m=u?{use:!0,set:t[i]?.set}:h;A[c]=SR7.F.shadowCSS(r,n,m,d,g),o.cache.shadow[i+"N"]=u?g:0,o.cache.shadow[i]=u?a+"."+s+".all."+e:"idle",o.cache.shadow[i+"V"]=u?m:void 0}}let t=_tpt.tf(k.content.all?.[e]?.bgU);if(!E&&(t||"idle"!==(o?.cache?.color?.bgfrom??"idle"))){let i=t?k.content.all[e]?.bgcol:n.bg.color;const{gradient:r,bg:l}=SR7.F.getBGAnimColor(i,o?.cache?.color?.bg??n.bg.color);
28if(r){const e=l?.to??"transparent",t=n?.bg?.image?.src??"";if(""!==t&&"false"!==String(n?.bg?.image?.u??!0)){const s="url('"+_tpt.urlProtocol(String(t).replaceAll("â¯","%e2%80%af"))+"')";A.backgroundImage=s+","+e}else A.backgroundImage=e}else A.backgroundColor=l?.to??"transparent";o.cache.color.bg=l?.to??"transparent",o.cache.color.bgfrom=t?a+"."+s+".all."+e:"idle"}if("text"===n.type||"button"===n.type){if("content"===L&&"content"===s||"content"!==L&&s===L||"content"===L&&"content"!==s){const t=k?.[s]?.all?.[e]??k?.content?.all?.[e];let i=_tpt.tf(t?.cU);if(i||"idle"!==(o?.cache?.color?.from??"idle")){let l=t?.col;if(i?void 0!==l&&(A.color=l):A.color=()=>SR7.gV({v:n.color,id:r}),i)"string"==typeof A.color?o.cache.color._curVisual=A.color:"string"==typeof l&&(o.cache.color._curVisual=l);else try{o.cache.color._curVisual=SR7.gV({v:n.color,id:r})}catch{}o.cache.color.c=A.color,o.cache.color.from=i?a+"."+s+".all."+e:"idle",SR7.E.backend&&(o.cache.color.c__=o.cache.color.c,o.cache.color.from__=o.cache.color.from)}}}}A.display=(e,t)=>"row"===e.subtype&&t.con&&t.mask?t.conDisplay:"chars"===s||"words"===s?"inline-block":"column"===e.subtype&&(t.mask||t.loop)&&"table-cell"==t.display?"block":t.display,o.mask&&"column"===o.subtype&&T==o.mask&&"table-cell"==A.display&&(A.display="block"),A.visibility="loop"===s?()=>o.visibility:E&&"in"===a?"inherit":"in"===R&&0==e?u||"container"===n.type?"visible":"hidden":"in"===R&&1==e&&SR7.M[r].sbt&&SR7.M[r].settings.migrated&&"hidden"===(o.par?.el?.style?.visibility??"visible")&&S(o.visibility)?"visible":()=>o.visibility,0==e&&"in"===R&&"action"!==l&&"parent"!==l&&(A.x=S(h(A.x))?0:A.x,A.y=S(h(A.y))?0:A.y,A.z=S(h(A.z))?0:A.z),"mask"===s&&(o.cache.tl[s].overflow=A.overflow),SR7.E.backend&&(o.editVals??={},o.editVals.to={visibility:h(A.visibility),opacity:A.opacity,display:A.display});for(let e of p){const t=h(A[e]);!S(t)&&null!=t||void 0===o.cache.tl?.[s]?.[e]?"scaleX"===e&&A.skewX?o.cache.tl[s][e]=C.sX??o.cache.tl[s].scaleX:"scaleY"===e&&A.skewY?o.cache.tl[s][e]=C.sY??o.cache.tl[s].scaleY:o.cache.tl[s][e]=A[e]:A[e]=o.cache.tl[s][e],S(A[e])&&"visibility"!==e&&delete A[e]}}null!=n.ojsv||SR7.E.backend||("in"===R&&1==e&&(o.tl.inFrameShift=I),"action"===l&&"in"===R&&e>0&&(I-=o.tl.inFrameShift)),void 0!==o.fxc&&"content"===s&&"c"==(C.fx??"")[0]&&(i.add(SR7.F.getFXCoverAnim(o,C,a,e),I),SR7.E.backend||"out"===a||o.el.classList.add("sr7-fx-hidden")),!o.backFace&&("clip"===s||"function"==typeof A.rotationX&&Math.abs(A.rotationX?.())>90||Math.abs(A.rotationX)>90||"function"==typeof A.rotationY&&Math.abs(A.rotationY?.())>90||Math.abs(A.rotationY)>90||o.filters?.backdrop?.used&&_tpt.is_mozilla)&&(o.backFace=!0,o.el.style.backfaceVisibility="visible","clip"===s&&o.el.classList.add("sr7-withclip")),O=!0;let D="d"==C.pE||null==C.pE?n.pE||"d":C.pE,z=s+"_"+d;if(void 0!==C.rep||1==(o.repeat?.[z]?.state??0))void 0!==C.rep&&("s"!==C.rep.s&&"se"!==C.rep.s||(o.targetRepeat??={},o.targetRepeat[s]=!0,o.repeat??={},o.repeat[s+"_"+e+"_"+d]?.tl?.kill(),o.repeat[z]={state:1,at:I,tl:_tpt.gsap.timeline()},o.repeat[z].tl.eventCallback("onStart",F.frameRepeatStart,[{id:r,skey:c,c:o,scene:a,layer:n,target:s,caller:l,frame:e,framegroup:d,sbt:u,pE:D}]),i.add(o.repeat[z].tl,I),i.vars.at=I),"e"!==C.rep.s&&"se"!==C.rep.s||!o.repeat?.[z]?.tl||(o.repeat[z].state=2,o.repeat[z].c=C.rep.c,o.repeat[z].tl.repeat(C.rep.r??-1),o.repeat[z].tl.vars.repeatRefresh=C.rep.sh??!0,o.repeat[z].tl.yoyo(C.rep.y??!1))),o.repeat?.[z]?.tl&&(o.repeat[z].tl.to(T,A,I-o.repeat[z].at),o.repeat[z].c&&o.repeat[z].tl.eventCallback("onRepeat",F.frameRepeat,[{id:r,skey:c,c:o,scene:a,layer:n,target:s,caller:l,frame:e,framegroup:d,sbt:u,pE:D}]));else{if(n?.addOns){for(let t in n.addOns)_tpt.hop(n.addOns,t)&&n.addOns[t]?.u&&SR7.A?.[t]?.getAnimAttributes?.(r,n,A,C,{scene:a,target:s,framegroup:d,frame:e,targets:k});t({id:r,skey:c,lkey:o.lkey,scene:a,layer:n,c:o,target:s,framegroup:d,frame:C,vars:A})}if(0==e&&"in"===R)void 0!==A.opacity&&(A.opacity=parseFloat(A.opacity)),A.data=Object.assign(A.data||{},{lkey:o.lkey,target:s,framegroup:d,frame:e,alias:o.lkey+"_"+s+"_"+e+"_"+d,type:"tween"}),i.set(T,A,0),i.set(T,A,I),"content"===s&&k?.content?.all?.[0]?.dsvg&&o.svgPaths&&o.svgPaths.length>0&&i.set(o.svgPaths,{stroke:C.dsvgc,strokeWidth:parseFloat(k?.content?.all?.[0]?.dsvgw??.1)+"%",drawSVG:parseInt(C.dsvga)+"% "+parseInt(C.dsvgb)+"%"},0),o.animState.frame=0;else{void 0!==A.opacity&&(A.opacity=parseFloat(A.opacity));let t=!1;if(!o.fake&&"content"===s&&(0==A.opacity||null==A.opacity&&0==o.cache?.tl?.[s]?.opacity)&&"true"!==o.target?.dataset?.mouselistener){!!(o.listeners?.hover||o.listeners?.toggle||o.listeners?.action||o.listeners?.hasAny)||(A.pointerEvents="none",D="none",t=!0)}1==e&&"in"===R&&0==o.animState.frame&&0==A.duration&&(A.duration=.0075),A.data=Object.assign(A.data||{},{lkey:o.lkey,target:s,framegroup:d,frame:e,alias:o.lkey+"_"+s+"_"+e+"_"+d,type:"tween"});let c=_tpt.gsap.to(T,A);if(SR7.E.backend&&(o.editVals??={},o.editVals.to??={},o.editVals.to.scene=a),o.fake||(c.eventCallback("onStart",F.frameStarted,[{id:r,c:o,scene:a,layer:n,target:s,caller:l,frame:e,sbt:u,pE:D,noHit:t}
28]),u&&c.eventCallback("onUpdate",F.frameUpdated,[{id:r,c:o,scene:a,layer:n,target:s,caller:l,frame:e,sbt:u,pE:D}]),c.eventCallback("onComplete",F.framesCompleted,[{id:r,c:o,scene:a,layer:n,target:s,caller:l,frame:e,sbt:u,pE:D}])),i.add(c,I),"content"===s&&k?.content?.all?.[0]?.dsvg&&o.svgPaths&&o.svgPaths.length>0){let e=_tpt.gsap.to(o.svgPaths,{stroke:C.dsvgc,strokeWidth:parseFloat(k?.content?.all?.[0]?.dsvgw??.1)+"%",drawSVG:parseInt(C.dsvga)+"% "+parseInt(C.dsvgb)+"%",duration:A.duration,ease:A.ease,immediateRender:A.immediateRender});i.add(e,I)}}const p=SR7.M[r]?.current?.id;"pan"===s&&SR7.F.isCarousel(r)&&void 0!==p&&String(o.skey)!==String(p)&&(i.progress(0),i.paused(!0),requestAnimationFrame(()=>{i.render(0,!1,!0)}))}void 0!==A.modifiers&&(o.mod.coreTween??={},void 0!==A.modifiers.filter&&(o.mod.coreTween.filter??={},o.mod.coreTween.filter[a]=s),void 0!==A.modifiers.x&&(o.mod.coreTween.xy??={},o.mod.coreTween.xy[a]=s),void 0!==A.modifiers.opacity&&(o.mod.coreTween.opacity??={},o.mod.coreTween.opacity[a]=s))}i.eventCallback("onStart",F.layerStarted,[{id:r,c:o,scene:a,layer:n,target:s,caller:l,sbt:u,tl:i}]),i.eventCallback("onUpdate",F.layerUpdated,[{id:r,c:o,scene:a,layer:n,target:s,caller:l,sbt:u,tl:i}]),i.eventCallback("onComplete",F.layerCompleted,[{id:r,c:o,scene:a,layer:n,target:s,caller:l,sbt:u,tl:i}])}i.data={lkey:o.lkey,target:s,alias:o.lkey+"_"+s,type:"timeline"},o.targetRepeat?.[s]&&(E??=_tpt.gsap.timeline(),E.add(i,0)),"pan"===s||"pan"===s&&"update"==l||M.add(i,0),"pan"===s&&(C??=_tpt.gsap.timeline({data:{id:c+"_"+o.lkey+"_"+a+"_pan"}}),C.add(i,0)),i.data.alias=s,o.tl[a][s]=i,o.tl[a].TL=M}}if("carousel"===SR7.M[r].settings.type&&!SR7.E.backend||null!=d&&"bg"!=d)"carousel"!=SR7.M[r].settings.type||null!=d&&"bg"!=d||(o.target.style.visibility="visible");else{if(s.reanimateBG)SR7.F.animateBG(s);else if(s.ignoreBG)return{tl:M,loops:E};if("out"===a&&"slidebg"===n.subtype)SR7.E.backend||(SR7.M[r].c.leavingBG=o);else if(k.bg)if(o.el.style.display=o.display,o.el.style.visibility=o.visibility,O=!0,"slidebg"===n.subtype){if("in"!==a)return;if(void 0!==o.mod&&(o.mod.animElemXY??=o.mask?o.mask:o.el,_tpt.scrollObserver.run(SR7.M[r].c.module,!0),SR7.F.modify.process(r,"scroll")),SR7.E.backend&&void 0!==SR7.M[r].c.leavingBG&&"animation"==SR7.editing.modi)SR7.M[r].c.leavingBG.tl?.revert?.(),SR7.M[r].c.leavingBG.tl?.kill?.(),SR7.M[r].c.leavingBG.tl=SR7.F.animateBG({timeline:i,c:SR7.M[r].c.leavingBG,id:r,scene:"out"}),SR7.M[r].c.tl[c].in.BGTL.add(SR7.M[r].c.leavingBG.tl,0);else if(void 0!==SR7.M[r].c.leavingBG&&!SR7.E.backend){let e=SR7.M[r].c.leavingBG;const t=SR7.F.sbt?.storyMode?.(r),s=t?"out":a;t&&(e.tl[s]??={}),e.tl[s]&&(e.tl[s].bg&&e.tl[s].bg.kill(),SR7.M[r].c.tl[e.skey].out.TL.add(e.tl[s].bg=SR7.F.animateBG({timeline:i,c:e,id:r,scene:"out"}),0))}o.tl?.in?.bg&&o.tl.in.bg.kill(),M.add(o.tl.in.bg=SR7.F.animateBG(s),0),void 0!==SR7.M[r].c.leavingBG&&(!SR7.E.backend||"animation"==SR7.editing.modi)&&SR7.M[r].c.leavingBG.temp.TL.totalDuration()<o.temp.TL.totalDuration()&&SR7.M[r].c.leavingBG.temp.TL.duration(o.temp.TL.totalDuration())}else"in"!==a&&"out"!==a||(o.tl[a].bg&&o.tl[a].bg.kill(),M.add(o.tl[a].bg=SR7.F.animateBG(s),0))}O&&(o.animState.scene=a,c==SR7?.editing?.slide&&_tpt.ghostUpdate(19,o),o.animState.caller=l||"default");try{if(!SR7.E.backend&&"in"===a&&"progress"===n?.nF){const e=SR7.M[r];if(e){e.lNavs??={},e.lNavs.scrubTLs??=[];const t=o?.tl?.in?.TL||M;t&&(t.pause(0),t.timeScale(1),t.smoothChildTiming=!1,t.totalProgress(0,!1),e.lNavs.scrubTLs.includes(t)||e.lNavs.scrubTLs.push(t))}}}catch{}return{tl:M,loops:E,pan:C}},SR7.F.processHover=(e,t,s)=>{let{c:i,layer:a,id:r}=e;if(void 0!==(i?.cache?.hover??void 0)&&(i.cache?.hover?.requested??"none")==t)return;if(!SR7.F.sbt?.storyMode?.(r)&&(!i.animState.entered&&!SR7.E.backend||(i.animState?.runningFrames?.length??0)>0))return;if(a.hoverfx?.u){if("hover"!==t||!SR7.E.backend||["sr_layer_hover","sr_elements_"+a.hoverfx.slug].includes(SR7.editor?.elements?.panel?.lastPanelView)){const e=SR7.A?.[a.hoverfx.slug??"transitionpack"];if(e?.onHoverFX)try{e.onHoverFX({c:i,layer:a,id:r,skey:i.skey,lkey:i.lkey},t)}catch(e){}}if(!SR7.F.hoverOn(a))return void((i.cache.hover??={}).requested=t)}const n=SR7.F.hoverOn(a),o=SR7.F.hoverShadowOn(a);if(!n&&!o)return void((i.cache.hover??={}).requested=t);if(s=0==(s=(parseInt(a?.hov?.frame?.d,10)??300)/1e3)?.001:s,i.tl_hover&&i.tl_hover.progress&&i.tl_hover.progress()>0){if("idle"===t)return!0!==i.tl_hover.reversed()&&i.tl_hover.reverse(),void(i.cache.hover.requested=t);if("hover"===t)return 1==i.tl_hover.reversed()&&i.tl_hover.play(),void(i.cache.hover.requested=t)}i.cache.hover??={},i.cache.hover.requested=t,i.tl_hover=_tpt.gsap.timeline({data:{id:i.el.id+"_hover"}});
28const l=a.hov.frame,d=a.hov.radius,c="hover"===t?a.hov.zIndex:a.zIndex,p="hover"===t?a.hov.deco:a?.content?.deco,u="column"===a.subtype&&i.colbgMask?"colbgMask":"column"===a.subtype&&i.colbg?"colbg":"row"===a.subtype&&i.con?"con":"el",h="column"===a.subtype&&i.colbgMask?"colbgMask":"column"===a.subtype&&i.colbg?"colbg":"row"===a.subtype&&i.con?"con":"group"===a.subtype&&i.mask?"mask":"el";let g={ease:a.hov.frame.e,duration:s};void 0!==l.x&&(g.x=l.x),void 0!==l.y&&(g.y=l.y),void 0!==l.z&&(g.z=l.z),(void 0!==l.rX||void 0!==l.rotationX)&&(g.rotationX=l.rX??l.rotationX??0),(void 0!==l.rY||void 0!==l.rotationY)&&(g.rotationY=l.rY??l.rotationY??0),(void 0!==l.rZ||void 0!==l.rotationZ)&&(g.rotationZ=l.rZ??l.rotationZ??0),void 0!==c&&"auto"!==c&&(g.zIndex=c),"text"===a.type&&void 0!==p&&(g.textDecoration=p);let m=i.perspective=SR7.F.usePerspective(l,SR7.M[r].settings.general,600,!0);if(n&&void 0!==m&&i.tl_hover.set(i.el,{transformPerspective:m??600}),g=x(g,l),n&&i.svg&&!a.content?.oC&&void 0!==a.hov.svg&&(void 0!==a.hov.svg.c&&i.tl_hover.to(i.svgPaths.length>0?i.svgPaths:i.el,{ease:g.ease,duration:g.duration,fill:a.hov.svg.c},0),void 0!==a.hov?.svg?.stroke?.c&&"transparent"!==a.hov?.svg?.stroke?.c&&i.tl_hover.to(i.svg,{ease:g.ease,duration:g.duration,stroke:a.hov?.svg?.stroke.c,strokeWidth:parseInt(a.hov?.svg?.stroke.w)+"px",strokeDashoffset:a.hov?.svg?.stroke.o,strokeDasharray:a.hov?.svg?.stroke.d},0)),g.opacity=l.o??l.opacity,n&&a.hov.color?.bg)if(a.bg.image)g.backgroundColor="string"==typeof a.hov.color.bg?a.hov.color.bg:a.hov.color.bg.string;else{let{gradient:e,bg:t}=SR7.F.getBGAnimColor(a.hov.color.bg,i.cache?.color?.bg,a.hov.color.gAnim);void 0!==i.colbg?(e&&i.tl_hover.set(i.colbg,{background:t.from}),i.tl_hover.to(i.colbg,{ease:g.ease,duration:g.duration,["background"+(e?"":"Color")]:t.to},0)):t?.from&&-1!==t.from.indexOf("180deg")&&-1!==t.to.indexOf("180deg")&&2===t.from.split("deg").length&&2===t.to.split("deg").length&&(t.from=t.from.replace("180deg,",""),t.to=t.to.replace("180deg,","")),t?.from&&(e&&i.tl_hover.set(i.el,{background:t.from}),!e&&"transparent"==t.from&&i.tl_hover.set(i.el,{immediateRender:!0,backgroundColor:_tpt.gradient.transToColor(t.to)})),t?.to&&(g["background"+(e?"":"Color")]=t.to)}let f,y=i.mask?"column"===i.subtype?[i.mask,i.colbgMask]:i.mask:void 0,v="column"===i.subtype&&i.mask?[i.colbg,i.con]:"image"===i.subtype&&i.mask&&i.colbg?[i.el,i.colbg]:i.el;if(n&&a.hov.color.c!==(i.cache?.color?.c??void 0)&&(g.color=a.hov.color.c),JSON.stringify(a.hov.border)!==JSON.stringify(a.border??{})){const e=a.hov.border;f={duration:g.duration,ease:g.ease,borderColor:e.c??"transparent",borderStyle:null==e.s?"none":"string"==typeof e.s?e.s:SR7.gV({v:e.s??"none",id:r})};for(let t=0;t<4;t++)f[SR7.D.BWID[t]]=_tpt.unitize(SR7.gV({v:e?.w?.[SR7.D.DS[t]]??"0px",id:r,f:a.fluid?.tr,m:"round"}))}let R=y?void 0:f;if(JSON.stringify(a.hov.radius)!==JSON.stringify(a.radius??{})){f??={duration:g.duration,ease:g.ease},R??={duration:g.duration,ease:g.ease};for(let e=0;e<4;e++)f[SR7.D.BRAD[e]]=_tpt.unitize(d?.[SR7.D.DS[e]]??"0px"),R[SR7.D.BRAD[e]]=_tpt.unitize(d?.[SR7.D.DS[e]]??"0px")}for(const[e,t,s,n,o]of[["tShdw","tsh",!1,"textShadow",i.el],["bShdw","bsh",!0,"boxShadow",i[SR7.F.shadowTarget(i,a)]]]){if(!_tpt.tf(a.hov?.[e]?.use??!1)||null==o)continue;const l=i.cache?.shadow?.[t+"V"]??a[e],d=Math.max(a.hov[e].set?.length??0,_tpt.tf(l?.use??!1)?l.set?.length??0:0);i.tl_hover.set(o,{[n]:SR7.F.shadowCSS(r,a,l,s,d)},0),i.tl_hover.to(o,{ease:g.ease,duration:g.duration,[n]:SR7.F.shadowCSS(r,a,a.hov[e],s,d)},0)}if(n&&void 0!==f&&i.tl_hover.to(i[u],f,0),n&&void 0!==R&&y&&i.tl_hover.to(i[h],R,0),SR7.F.useFilter(a.hov.filter)||i.filters?.simple?.filter){let e=SR7.F.getFilterStyle(a.hov.filter,"",i.filters?.simple?.used??void 0),s=SR7.F.getFilterStyle(i.filters?.simple?.filter??"","",e.used);g.filter=e.filter,"hover"===t&&""!==g.filter&&_tpt.gsap.set(v,{filter:s.filter})}if("hover"===t)for(let e of SR7.D.animAttr)(S(g[e])||null==g[e]||g[e]==i.cache?.tl?.content?.[e])&&delete g[e];n&&i.tl_hover.to(v,g,0),y&&i.tl_hover.eventCallback("hover"===t?"onStart":"onComplete",e=>{_tpt.gsap.set(e.mask,{overflow:e.oflow})},[{mask:y,oflow:"hover"===t?a.hov?.m||void 0!==f&&"mask"==u?"hidden":"visible":i.cache?.tl?.mask?.overflow}]),i.tl_hover.eventCallback("onReverseComplete",e=>{e.cache=void 0,e.tl=void 0,e.mask&&_tpt.gsap.set(e.mask,{overflow:e.oflow})},[{cache:i.cache.hover,tl:i.tl_hover,mask:y,oflow:i.cache?.tl?.mask?.overflow}])};const r={color:"color",bgc:"backgroundColor",bgi:"backgroundImage",bc:"borderColor",bs:"borderStyle",bw:"borderWidth",rad:"borderRadius",tsh:"textShadow",bsh:"boxSh
28adow",deco:"textDecoration",z:"zIndex",tr:"translate",sc:"scale",rot:"rotate"},n={bs:1,deco:1,z:1},o=()=>{if(o.done)return;o.done=!0;const e=document.createElement("style");e.id="sr7-states",e.textContent=Object.entries(r).map(([e,t])=>`[data-srs~="${e}"]{${t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}:var(--srs-${e}) !important}`).join("\n"),document.head.appendChild(e)},l={tr:"0px 0px",sc:"1 1",rot:"0deg"},d=e=>{const t=String(e).trim().split(/\s+/);return[t[0],t[1]??t[0],t[2]??t[0],t[3]??t[1]??t[0]].join(" ")},c=(e,t,s)=>{if("color"===e||"bgc"===e||"bc"===e){const[e,i]=[t,s].map(e=>{const t=_tpt.gsap.utils.splitColor(e);return[t[0],t[1],t[2],t[3]??1]});return 0===e[3]&&0===i[3]||e.join()===i.join()}return"rad"===e||"bw"===e?d(t).split(" ").map(parseFloat).join()===d(s).split(" ").map(parseFloat).join():"deco"===e?String(t).split(" ")[0]===String(s).split(" ")[0]:String(t)===String(s)},p=(e,t,s)=>{const i=new Set((e.getAttribute("data-srs")??"").split(" ").filter(Boolean));s?i.add(t):i.delete(t),i.size?e.setAttribute("data-srs",[...i].join(" ")):e.removeAttribute("data-srs")},u=(e,t)=>{if("bgi"===t){const t=e.style.backgroundImage;return t.includes("gradient")?t:u(e,"bgc")}if(l[t])return e.style[r[t]]||l[t];let s=e.style[r[t]];if(!s){const i=e.getAttribute("data-srs");i&&e.removeAttribute("data-srs"),s=getComputedStyle(e)[r[t]],i&&e.setAttribute("data-srs",i)}return"rad"===t||"bw"===t?d(s):s};SR7.F.setState=(e,t,s,i)=>{const{c:a,layer:r,id:l}=e,d=r?.[t];if(!a?.el||!_tpt.tf(d?.u??!1)||"row"===r.subtype||"column"===r.subtype)return;s=!!s,o();const h=a.states??={on:{},own:{},tw:{}};if(!!h.on[t]===s)return;const g="toggle"!==d.mode&&d.grp?d.grp:void 0;if(void 0!==g){const e=SR7.M[l].c.stateGroups??={};s&&e[g]&&e[g].c!==a&&SR7.F.setState(e[g],t,!1),s?e[g]={c:a,layer:r,id:l}:e[g]?.c===a&&delete e[g]}h.on[t]=s,a.listeners?.sel&&a.el.setAttribute("aria-pressed",s),i??=parseInt(d.frame?.d??300,10)/1e3;const m=d.frame?.e??"power3.inOut",f=s?((e,t,s,i)=>{const a={},r=i.frame??{},n=(e,s,i=t.el)=>a[e]={el:i,v:String(s)},o=e=>"number"==typeof e||/^-?[\d.]+$/.test(String(e))?parseFloat(e)+"px":String(e);if(void 0!==i.color?.c&&i.color.c!==SR7.gV({v:s.color,id:e})&&n("color",i.color.c),void 0!==i.color?.bg&&JSON.stringify(i.color.bg)!==JSON.stringify(s.bg?.color??"transparent")){const e="object"==typeof i.color.bg?i.color.bg.string??_tpt.gradient.getString(i.color.bg):i.color.bg;n(e.includes("gradient")||u(t.el,"bgi").includes("gradient")?"bgi":"bgc",e)}if(JSON.stringify(i.border)!==JSON.stringify(s.border??{})){const t="string"==typeof i.border.s?i.border.s:SR7.gV({v:i.border.s??"none",id:e});n("bs",t),"none"!==t&&(n("bc",i.border.c??"transparent"),n("bw",SR7.D.DS.map(t=>_tpt.unitize(SR7.gV({v:i.border.w?.[t]??0,id:e,f:s.fluid?.tr,m:"round"}))).join(" ")))}JSON.stringify(i.radius)!==JSON.stringify(s.radius??{})&&n("rad",SR7.D.DS.map(e=>_tpt.unitize(i.radius?.[e]??0)).join(" "));for(const[a,r,o]of[["tShdw","tsh",!1],["bShdw","bsh",!0]]){if(!_tpt.tf(i[a]?.use??!1))continue;const l=Math.max(i[a].set?.length??0,_tpt.tf(s[a]?.use??!1)?s[a].set?.length??0:0);n(r,SR7.F.shadowCSS(e,s,i[a],o,l),o?t[SR7.F.shadowTarget(t,s)]??t.el:t.el)}return"text"===s.type&&void 0!==i.deco&&i.deco!==(s.content?.deco??"none")&&n("deco",i.deco),void 0!==i.zIndex&&"auto"!==i.zIndex&&n("z",i.zIndex),(parseFloat(r.x??0)||parseFloat(r.y??0)||parseFloat(r.z??0))&&n("tr",o(r.x??0)+" "+o(r.y??0)+(parseFloat(r.z??0)?" "+o(r.z):"")),1===parseFloat(r.sX??1)&&1===parseFloat(r.sY??1)||n("sc",parseFloat(r.sX??1)+" "+parseFloat(r.sY??1)),parseFloat(r.rZ??0)&&n("rot",parseFloat(r.rZ)+"deg"),a})(l,a,r,d):{};for(const e of new Set([...Object.keys(h.own),...Object.keys(f)])){const t=f[e]?.el??h.own[e],s=f[e]?.v;h.tw[e]?.kill();const a=h.own[e]?t.style.getPropertyValue("--srs-"+e):u(t,e);if(!h.own[e]&&c(e,a,s))continue;const r=()=>{p(t,e,!1),t.style.removeProperty("--srs-"+e),delete h.own[e]};if(h.own[e]||t.style.setProperty("--srs-"+e,a),h.own[e]=t,p(t,e,!0),n[e]&&void 0!==s&&t.style.setProperty("--srs-"+e,s),i<=0){void 0===s?r():t.style.setProperty("--srs-"+e,s);continue}
28const o="bgi"===e?SR7.F.getBGAnimColor(s??u(t,e),a,d.color?.gAnim).bg:void 0,l={p:0};h.tw[e]=_tpt.gsap.to(l,{p:1,duration:i,ease:m,onUpdate:()=>{n[e]||t.style.setProperty("--srs-"+e,o?_tpt.gsap.utils.interpolate(o.from,o.to,l.p):_tpt.gsap.utils.interpolate(a,s??u(t,e),l.p))},onComplete:()=>{delete h.tw[e],void 0===s?r():t.style.setProperty("--srs-"+e,s)}})}};const h=e=>"function"==typeof e?e():e,g=e=>parseFloat(h(e))||0,m=(e,t,s,i,a,r,n,o)=>s?s=>SR7.cVal(SR7.gV({v:t[n],id:e,s:"scale",f:o}),e,i,SR7.gV({v:t[n+"Re"],id:e}),t.off,n,i?.splitText?.[r]?.[s],a,s):()=>SR7.cVal(SR7.gV({v:t[n],id:e,s:"scale",f:o}),e,i,SR7.gV({v:t[n+"Re"],id:e}),t.off,n,!1,a),f=(e,t,s)=>s?s=>SR7.F.getOffset(t,void 0,SR7.M[e].lastChangeDir??1,s):()=>SR7.F.getOffset(t,void 0,void 0,0),S=e=>"inherit"==e||"Inherit"==e,y=e=>"inherit"==e?void 0:e,v=(e,t,s,i)=>{if(!t?.splitText?.chars)return 0;const a=t.splitText.chars.length;if(!a)return 0;let r=s;"string"==typeof r&&(r=parseFloat(String(r).replace("px",""))),r=isNaN(r)?0:r;const n=(a-1)/2;let o=1;try{o=SR7.dirVal(e,1).d}catch{o=1}return(i-n)*r*o},R=["chars","words","lines","content"],b=(e,t,s,i)=>"text"!==e?.type&&"button"!==e?.type?"content":i?!0!==e.tl?.[s]?.chars?.d&&e.tl?.[s]?.chars?.all?"chars":!0!==e.tl?.[s]?.words?.d&&e.tl?.[s]?.words?.all?"words":!0!==e.tl?.[s]?.lines?.d&&e.tl?.[s]?.lines?.all?"lines":"content":"content",w=(e,t,s,i,a)=>{if("text"!==e?.type||!t?.splitText)return;t.cache??={},t.cache.color??={},t.cache.color._ownerByScene??={};if(t.cache.color._ownerByScene[s]===i)return;if(!(t.splitText?.chars?.[0]||t.splitText?.words?.[0]||t.splitText?.lines?.[0]||t.el))return;let r=t.cache?.color?._curVisual;if(!r)try{r=SR7.gV({v:e.color,id:a})}catch{r=void 0}if(!r){let e=t.splitText?.chars?.[0]||t.splitText?.words?.[0]||t.splitText?.lines?.[0]||t.el;if(!e)return;try{r=getComputedStyle(e).color}catch{r=void 0}}if(!r)return;const n=((e,t)=>{if(e)return"content"===t?e.el:e.splitText?e.splitText[t]:void 0})(t,i);n&&_tpt.gsap.set(n,{color:r}),t.cache.color._curVisual=r,((e,t)=>{if(!e?.splitText||!t?.length)return;let s=[];for(let i of t){const t=e.splitText?.[i];t&&t.length&&s.push(...t)}s.length&&_tpt.gsap.set(s,{clearProps:"color"})})(t,(e=>{const t=R.indexOf(e);return t<=0?[]:R.slice(0,t)})(i)),t.cache.color._ownerByScene[s]=i},x=(e,t,s)=>{let i=y(t.sX??t.scaleX),a=y(t.sY??t.scaleY),r=String(t.skX??t.skewX).replace("(","").replace(")","").replace("px","").replace("deg",""),n=String(t.skY??t.skewY).replace("(","").replace(")","").replace("px","").replace("deg","");return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r=y(r)*("("==String(t.skX??t.skewX)[0]?null==s?1:s:1),n=y(n)*("("==String(t.skY??t.skewY)[0]?null==s?1:s:1),void 0===r&&void 0===n||(void 0!==r&&(a=parseFloat(a??1)*Math.cos((r=parseFloat(r))*_tpt.DEG2RAD)),void 0!==n&&(i=parseFloat(i??1)*Math.cos((n=parseFloat(n))*_tpt.DEG2RAD))),void 0===r&&void 0===n||(e.skewX=_tpt.unitize(r??0,"deg"),e.skewY=_tpt.unitize(n??0,"deg")),void 0===i&&void 0===a||(e.scaleX=i??1,e.scaleY=a??1),e.scaleY=isNaN(e.scaleY)?1:e.scaleY,e.scaleX=isNaN(e.scaleX)?1:e.scaleX,e},_=(e,t,s,i)=>a=>{let r=SR7.F.getOffset(t,void 0,SR7.M[e].lastChangeDir??1,a);if("skew"===s)return _tpt.unitize(r??0,"deg");let n=SR7.F.getOffset(i,void 0,SR7.M[e].lastChangeDir??1,a);return null==n?r:parseFloat(r??1)*Math.cos(parseFloat(n)*_tpt.DEG2RAD)};SR7.F.updateVisibility=e=>{"column"===e.subtype&&e.target.style.visibilty!==e.el.style.visibility&&(e.target.style.visibility=e.visibility),e.parallax&&e.parallax.style.visibility!==e.el.style.visibilty&&(e.parallax.style.visibility=e.visibility),e.mask&&e.mask.style.visibility!==e.el.style.visibilty&&(e.mask.style.visibility=e.visibility),e.loop&&e.loop.style.visibility!==e.el.style.visibilty&&(e.loop.style.visibility=e.visibility),e.addonWrap&&e.addonWrap.style.visibility!==e.el.style.visibilty&&(e.addonWrap.style.visibility=e.visibility)};const F={sceneStarted:e=>{let{id:t,skey:s,scene:i}=e;SR7.E.backend||"in"!==i||(SR7.M[t].states.sceneInProgress=!0),void 0!==SR7.M[t].c.pans&&SR7.F.pan.observe(t)},sceneUpdated:e=>{},sceneCompleted:function(e){let{id:t,skey:s,scene:i,caller:a}=e;SR7.E.backend||"out"!==i||"action"===a||"parent"===a||!0===SR7.M[t].zOrder.managed||SR7.F.hideLeavingSlide(t,s)},layerStarted:function(e){let{scene:t,c:s,sbt:i,id:a,layer:r}=e;"out"!==t&&(s.state="animated"),SR7.F.counter&&s&&r?.counter&&("out"===t?SR7.F.counter.stop(s,r):SR7.F.counter.start(a,s,r,t)),"in"===t&&s.repeat&&SR7.F.updateVisibility(s),SR7.E.backend||!i||SR7.M[a].sbt.__time||SR7.F.sbt.process(a)},layerUpdated:async function(e){let{id:t,scene:s,c:i,target:a,sbt:r}=e;r&&!SR7.M[t].sbt.done&&SR7.M[t].sbt?.[SR7.M[t].current.id]?.[i.lkey]&&!SR7.M[t].sbt[SR7.M[t].current.id][i.lkey].tl.paused()&&SR7.M[t].sbt[SR7.M[t].current.id][i.lkey].tl.time()>=SR7.M[t].sbt.__time&&SR7.M[t].sbt[SR7.M[t].current.id][i.lkey].tl.pause(),"in"===s&&"pan"===a&&i.canvas?.drawImg?.(),i.animState?.flagged&&0==i.animState?.frame&&"default"===i.animState?.caller&&"in"===i.animState?.scene||(i.animState.flagged=!0,i.announce?.update&&await SR7.F.triggerLayerEvent(e,"update"))},layerCompleted:function(e){let{id:t,scene:s,layer:i,c:a,target:r}=e;if(SR7.E.backend||"out"!==s||"content"!==r&&"loop"!==r||(SR7.F.sbt?.storyMode?.(t)||(SR7.F.manageLayerListeners(a,i,!1),a.state="removed"),void 0!==(a.cache?.hover?.requested??void 0)&&(a.cache.hover.requested="idle")),!SR7.E.backend&&"out"===s){for(let e in a.repeat)_tpt.hop(a.repeat,e)&&"cur"!==e&&a.repeat[e].tl.kill();SR7.F.sbt?.storyMode?.(t)||(a.el.style.pointerEvents="none",a[a.LME]?.style&&(a[a.LME].style.pointerEvents="none"),a[a.LME].style.visibility="hidden",a.el.style.visibility="hidden")}SR7.E.backend||SR7.F.sbt?.storyMode?.(t)||"content"!==r&&"loop"!==r||"out"!==s&&"out"!==i?.tl?.[s]?.base||(SR7.FX?.live?.[t+":"+a.lkey]?._skey??a.skey)!==a.skey||SR7.F.fx?.detach?.(t,a.lkey,!1),a.animState.runningFrames=[],delete a.animState.flagged},frameRepeatStart:async function(e){e.caller="repeat",e.animState={scene:e.scene,frame:1},await SR7.F.triggerLayerEvent(e,"framestarted")},frameRepeat:async function(e){let{id:t,c:s,scene:i,skey:a}=e,r=SR7.F.triggeredChildren(t,a,s.lkey);if(e.c.animState.frame=e.frame,"in"===i&&r&&r.length>0){let n=e.target+"_"+e.framegroup;await SR7.F.animateLayers({id:t,skey:a,layers:r,scene:i,caller:"parent",ffw:!0,timeto:s.repeat[n].at})}e.caller="repeat",e.animState={scene:e.scene,frame:1},await SR7.F.triggerLayerEvent(e,"framerepeated")},frameStarted:async function(e){let{id:t,c:s,scene:i,layer:a,target:r,frame:n,caller:o,pE:l,sbt:d,noHit:c}=e;n=parseInt(n),"content"===r&&s.target?.classList?.toggle?.("sr-force-nointeraction",!!c),"hover"==s.cache?.hover?.requested&&s.tl_hover&&(s.tl_hover.reverse(),s.cache.hover.requested="idle"),s.animState.frame=n,s.animState.scene=i,SR7.M[t].current.id==SR7?.editing?.slide&&_tpt.ghostUpdate(19,s),s.animState.entered="out"!==i&&s.animState.entered,s.animState??={runningFrames:[]},s.animState.runningFrames??=[];let p=i+"_"+r+"_"+n;-1==s.animState.runningFrames.indexOf(p)&&s.animState.runningFrames.push(p),"out"===i||"content"!==r&&"loop"!=r||("in"!=i||1!=n)&&0!=n||"update"===o&&null!=s.listeners.lastuse||SR7.F.manageLayerListeners(s,a,!0),s.el.style.pointerEvents="out"===i||"in"===i&&(0==n||1==n)?"none":s.listeners.hasAny?"auto":"n"==l?"none":"i"==l?"inherit":s.pE,s[s.LME]?.style&&(s[s.LME].style.pointerEvents=s.el.style.pointerEvents),SR7.F.updateVisibility(s),await k(s,t,n,i,o);let u="in"===i&&"update"!==o&&"enterstage"!==s.lastEventCalled&&(
28d&&!s.animState.stageState||1==n)?"enterstage":"out"===i&&"update"!==o?"leavestage":"framestarted";s.animState.stageState=!0,this._dur&&(e.duration=this._dur),this._start&&(e.start=this._start),this.vars?.ease&&(e.ease=this.vars.ease),await SR7.F.triggerLayerEvent(e,u)},frameUpdated:async function(e){let{scene:t,frame:s,pE:i,c:a,interrupt:r}=e;r||"in"!==t||1!=s||(a.el.style.pointerEvents=a.listeners.hasAny?"auto":"n"==i?"none":a.pE,a[a.LME]?.style&&(a[a.LME].style.pointerEvents=a.el.style.pointerEvents))},framesCompleted:async function(e){let{id:t,scene:s,frame:i,pE:a,c:r,caller:n,target:o,interrupt:l}=e;if("fake"==t)return;l||"in"!==s||1!=i||(r.el.style.pointerEvents=r.listeners.hasAny?"auto":"n"==a?"none":r.pE,r[r.LME]?.style&&(r[r.LME].style.pointerEvents=r.el.style.pointerEvents),r.listeners.hasAny&&r.target?.classList?.remove?.("sr-force-nointeraction"));const d=s+"_"+o+"_"+i;let c;if(r.animState??={runningFrames:[]},r.animState.runningFrames=(r.animState.runningFrames||[]).filter(e=>e!==d),l||"in"!==s||"animateBG"!==n||"slidebg"!==r.subtype?"out"===s&&"animateBG"===n&&"slidebg"===r.subtype?c="leftstage":(c=SR7.E.backend&&"in"===s&&1==r.animState.frame&&0==r.animState.runningFrames.length||1==r.animState.frame&&"update"!==n&&"in"===s&&0==r.animState.runningFrames.length?"enteredstage":"out"===s&&"update"!==n?"leftstage":"frameended",("enteredstage"==c||"out"!==s&&"frameended"==c)&&(r.animState.entered=!0)):(SR7.F.sbt?.storyMode?.(t)||SR7.F.triggerSlideEvent(t,"afterChange",["onafterswap","onchange"]),c="enteredstage"),c&&(r.animState.stageState="leftstage"!==c,await SR7.F.triggerLayerEvent(e,c)),_tpt.is_mozilla&&"row"===r.subtype){const e=getComputedStyle(r.el).transform;e&&"none"!==e&&"matrix(1, 0, 0, 1, 0, 0)"!==e||(r.el.style.transform="")}if(!l&&"in"===s&&"animateBG"===n&&r.media&&"slidebg"===r.subtype&&"html5"!==r.media.player.options.type)SR7.E.backend?SR7.editor.elements.video.readyToPlay(r.media.player):r.media.play(),SR7.M[t].globalMuted&&r.media.mute();else if("out"===s&&0==i&&r.media){let e=r.media.player.options;"1sttime"==e.autoPlay&&(e.autoPlay=!1),"no1sttime"==e.autoPlay&&(e.autoPlay=!0);const s=SR7.FX.live?.["bgfx:"+t+":bg"];if("html5"===e.type&&!SR7.E.backend&&s&&s._xfActive){s._leaveVidC=r,s._xfRepaint=!0;const e=r.media?.player;try{e&&!0!==e.toCanvas&&r.media.startCanvas&&r.media.startCanvas(r.canvas),"false"!==String(e?.options?.autoPlay)&&r.media.play?.()}catch(e){}}else r.media.pause(),e.rewind&&r.media.rewind()}"out"===s&&!SR7.F.sbt?.storyMode?.(t)&&r?.tl?.in?.pan&&String(r.skey)!==String(SR7.M[t]?.current?.id)&&r.tl.in.pan.pause()}},k=async function(e,t,s,i,a){if(e.media&&(1===s&&"in"===i||"animateBG"===a)&&("slidebg"!==e.subtype||SR7.E.backend||"carousel"!==SR7.M[t].settings.type)){let s=e.media.player.options;e.media.player.frameStart=(new Date).getTime();let r=SR7.M[t];if((e.skey==SR7.M[t].current.id||e.global&&"in"===e.gpos)&&"false"!==s.autoPlay&&!1!==s.autoPlay&&"no1sttime"!==s.autoPlay?("slidebg"!==e.subtype||"html5"===e.media.player.options.type?(SR7.E.backend?"animation"==SR7.editing.modi?e.media.pause():SR7.editor.elements.video.readyToPlay(e.media.player):e.media.play(),SR7.M[t].globalMuted&&e.media.mute()):SR7.E.backend&&"slidebg"===e.subtype&&("animation"==SR7.editing.modi?(e.media.pause(),e.media.rewind()):SR7.editor.elements.video.readyToPlay(e.media.player)),s.pauseTimer&&SR7.slideShow.pause(t)):SR7.F.isCarousel(t)&&"in"===i&&("all"===r.settings.carousel.showAllLayers||"individual"===r.settings.carousel.showAllLayers&&r.slides[e.skey].layers[e.lkey].viOC)&&(e.media.player.options.cOC&&"false"!==String(s.autoPlay)&&"no1sttime"!==s.autoPlay?(r.videoDontInterrupt??={},r.videoDontInterrupt[e.media.player.containerId]=!0,e.media.play()):(r.videoPlayInFocus??={},r.videoPlayInFocus[e.media.player.containerId]=e.media.player)),"out"===i&&"animateBG"===a){const i=SR7.E.backend||"html5"!==s.type?null:SR7.FX.live?.["bgfx:"+t+":bg"]||SR7.FX.live?.["bgfx:"+t+":psout"];if(i&&i._xfActive){i._leaveVidC=e,i._xfRepaint=!0,i._live=!0;const t=e.media?.player;try{t&&!0!==t.toCanvas&&e.media.startCanvas&&e.media.startCanvas(e.canvas),"false"!==String(t?.options?.autoPlay)&&e.media.play?.()}catch(e){}}else e.media.pause()}if(SR7.E.backend)return;s.nextSlide&&!e.media.hasEvent("finished")&&e.media.addEvent("finished",(e,t)=>
28{SR7.F.requestSlide({id:t.id,slide:SR7.F.getAutoSlideStep?.(t.id)??"+1"})},{id:t,c:e}),!s.stopAllMedia&&!s.pauseTimer||e.media.hasEvent("playing")||e.media.addEvent("playing",(t,i)=>{s.stopAllMedia&&!e.media.player.pauseRequested&&e.media.stopPlayingMedias(!1),s.pauseTimer&&SR7.slideShow.pause(i.id)},{id:t,c:e,o:s}),s.pauseTimer&&!e.media.hasEvent("paused")&&e.media.addEvent("paused",(e,t)=>{t.o.pauseTimer&&SR7.slideShow.resume(t.id)},{id:t,c:e,o:s})}};SR7.F.animEvents=F,setTimeout(()=>{if(void 0===SR7.D.transitions&&2!==_tpt.R?.transitions?.status)try{_tpt.checkResources(["transitions"])}catch(e){}},0),_tpt.R??={},_tpt.R.animate=_tpt.extend?_tpt.extend(_tpt.R.animate,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";window.SR7??={},window._tpt??={},SR7.F=SR7.F||{},void 0===SR7.F.dist&&(SR7.F.dist=function(e,t,s,i){return Math.sqrt(Math.pow(e-s,2)+Math.pow(t-i,2))},SR7.F.cSort=function(e,t){return e-t},SR7.F.roundRectPath=function(e,t,s,i,a,r){r=r>0?Math.max(0,Math.min(r,Math.min(i,a)/2)):0,e.beginPath(),e.roundRect?e.roundRect(t,s,i,a,r):(e.moveTo(t+r,s),e.arcTo(t+i,s,t+i,s+a,r),e.arcTo(t+i,s+a,t,s+a,r),e.arcTo(t,s+a,t,s,r),e.arcTo(t,s,t+i,s,r),e.closePath())},SR7.F.canvas=function(e){e.wrap&&(e.width=null==e.width||0==e.width?e.wrap.clientWidth:e.width,e.height=null==e.height||0==e.height?e.wrap.clientHeight:e.height);var t=e.canvas??document.createElement("canvas");if(this.ctx=t.getContext(e.ctx||"2d"),this.wrap=e.wrap,t.dataset.useFor=e.useFor??"","100%"==e.width?(t.width=this.width=1e3,t.style.width="100%"):(t.width=this.width=e.width*_tpt.dpr,t.style.width=e.width+"px"),"100%"==e.height?(t.height=this.height=1e3,t.style.height="100%"):(t.height=this.height=e.height*_tpt.dpr,t.style.height=e.height+"px"),void 0!==e.overlay){let t=e.wrap.getElementsByTagName("SR7-OVERLAY");Array.from(t).forEach(e=>e.remove()),SR7.F.addOverlay&&(this.overlay=SR7.F.addOverlay({...e.overlay,bf:e.overlay.bf??0},this.overlay)),this.overlay&&e.wrap.appendChild(this.overlay),t=e.wrap.getElementsByTagName("SR7-OVERLAY")}void 0!==e.wrap&&e.wrap.appendChild(t),e.position&&(t.style.position=e.position),"absolute"===e.position&&(t.style.top=0,t.style.left=0),this.color=e?.color??void 0,void 0!==e.size&&(this.size=e.size),void 0!==e.pos&&(this.pos=e.pos),void 0!==e.repeat&&(this.repeat=e.repeat),e.create&&void 0!==e.wrap&&(t.style.zIndex=1,t.style.position="absolute",t.style.top="0px",t.style.left="0px",this.wrap=e.wrap,e.wrap.children[0]?e.wrap.insertBefore(t,e.wrap.children[0]):e.wrap.appendChild(t)),this.canvas=t},SR7.F.canvas.prototype.drawSVGLayer=function(e,t,s,i=1){if(!e||!t||!s)return!1;const a=e.outerHTML+"|"+[t,s,i].join("|");if(this.svgKey===a)return this.svgReady===a;this.svgKey=a;const r=e.cloneNode(!0),n=[e,...e.querySelectorAll("*")],o=[r,...r.querySelectorAll("*")];for(let e=0;e<n.length;e++){const t=getComputedStyle(n[e]);for(const s of["fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","color"])o[e].style.setProperty(s,t.getPropertyValue(s).replace(/url\(["']?[^)#]*#([^)"']+)["']?\)/g,"url(#$1)"))}r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("width",t),r.setAttribute("height",s),r.style.width=t+"px",r.style.height=s+"px",r.style.visibility="visible";const l=new Image;return l.onload=()=>{this.svgKey===a&&(this.canvas.width=Math.ceil(t*i),this.canvas.height=Math.ceil(s*i),this.ctx.drawImage(l,0,0,this.canvas.width,this.canvas.height),this.svgReady=a,this.canvas.srV=(this.canvas.srV||0)+1)},l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(r)),!1},SR7.F.canvas.prototype.drawTextLayer=function(e,t,s,i=1,a){if(!e||!t||!s)return!1;const r=["display","font-family","font-size","font-weight","font-style","font-stretch","font-variant","font-kerning","font-feature-settings","font-variation-settings","line-height","letter-spacing","word-spacing","white-space","word-break","overflow-wrap","text-align","text-indent","text-transform","direction","padding-top","padding-right","padding-bottom","padding-left","box-sizing"],n=new WeakMap;let o=!1;const l=e=>{if(3===e.nodeType)return document.createTextNode(e.textContent);if(1!==e.nodeType||/^(SCRIPT|STYLE|CANVAS|IMG|VIDEO|IFRAME|OBJECT|SVG|SR7-FX-HITAREA)$/.test(e.tagName))return null;const t=getComputedStyle(e);
28if("none"===t.display)return null;const s=document.createElement("BR"===e.tagName?"br":"span");for(const e of r)s.style.setProperty(e,t.getPropertyValue(e));n.set(s,{color:t.color,stroke:t.webkitTextStrokeColor,strokeWidth:parseFloat(t.webkitTextStrokeWidth)||0}),o||=n.get(s).strokeWidth>0;for(const t of e.childNodes){const e=l(t);e&&s.appendChild(e)}return s},d=l(e);if(!d)return!1;void 0!==a&&(d.textContent=a,d.style.whiteSpace="pre-wrap"),Object.assign(d.style,{position:"fixed",left:"-100000px",top:"0px",display:"block",width:t+"px",height:s+"px",boxSizing:"border-box",margin:"0",opacity:"0",pointerEvents:"none",transform:"none",zIndex:"-1"}),d.setAttribute("aria-hidden","true"),document.body.appendChild(d);const c=this.textBoxes={words:[],lines:[],letters:[]},p="function"==typeof Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null,u=(e,t)=>{const s=Math.max(e.x+e.w,t.x+t.w);e.x=Math.min(e.x,t.x),e.w=s-e.x,e.h=Math.max(e.h,t.h)},h=this.canvas,g=this.ctx;h.width=this.width=Math.max(1,Math.ceil(t*i)),h.height=this.height=Math.max(1,Math.ceil(s*i)),g.setTransform(i,0,0,i,0,0),g.textBaseline="alphabetic",g.textAlign="left";let m=null;if(o){const e=this.glyphs??=document.createElement("canvas");e.width=h.width,e.height=h.height,m=e.getContext("2d"),m.setTransform(i,0,0,i,0,0),m.textBaseline="alphabetic",m.textAlign="left",m.fillStyle="#000"}else this.glyphs=null;try{const e=d.getBoundingClientRect(),t=document.createTreeWalker(d,NodeFilter.SHOW_TEXT),s=document.createRange();let i;for(;i=t.nextNode();){const t=getComputedStyle(i.parentElement),a=n.get(i.parentElement);g.font=`${t.fontStyle} ${t.fontWeight} ${t.fontSize} ${t.fontFamily}`,g.fontKerning=t.fontKerning,g.letterSpacing="normal"===t.letterSpacing?"0px":t.letterSpacing,g.wordSpacing="normal"===t.wordSpacing?"0px":t.wordSpacing,g.direction=t.direction,g.fillStyle=a.color,g.strokeStyle=a.stroke,g.lineWidth=2*a.strokeWidth;const r=g.measureText("Mg"),o=r.fontBoundingBoxAscent,l=r.fontBoundingBoxDescent;let d="",h=null,f=null;const S=()=>{if(!d||!h)return;const s=h.left-e.left,i=h.top-e.top+(h.height-o-l)/2+o;let r=d;"uppercase"===t.textTransform?r=r.toUpperCase():"lowercase"===t.textTransform&&(r=r.toLowerCase()),a.strokeWidth&&g.strokeText(r,s,i),g.fillText(r,s,i),m&&(m.font=g.font,m.fontKerning=g.fontKerning,m.letterSpacing=g.letterSpacing,m.wordSpacing=g.wordSpacing,m.direction=g.direction,m.fillText(r,s,i))},y=p?p.segment(i.textContent):Array.from(i.textContent,e=>({segment:e}));let v=0;for(const{segment:a}of y){const r=v+a.length;s.setStart(i,v),s.setEnd(i,r);const n=s.getBoundingClientRect();if(v=r,!n.width||!n.height)continue;const o={x:n.left-e.left,y:n.top-e.top,w:n.width,h:n.height};/\s/.test(a)||c.letters.push({...o});let l=c.lines[c.lines.length-1];!l||Math.abs(l.y-o.y)>1?(l={...o},c.lines.push(l),f=null):u(l,o),/\s/.test(a)?f=null:f?u(f,o):(f={...o},c.words.push(f)),h&&Math.abs(n.top-h.top)>1&&(S(),d="",h=null),h??=n,d+=/[\n\r\t]/.test(a)&&!t.whiteSpace.startsWith("pre")?" ":a}S()}return!0}finally{d.remove()}},SR7.F.canvas.prototype.updateDim=function(){this.wrap&&(this.canvas.width=this.width=this.wrap.clientWidth*_tpt.dpr,this.canvas.height=this.height=this.wrap.clientHeight*_tpt.dpr,this.canvas.style.width=this.wrap.clientWidth+"px",this.canvas.style.height=this.wrap.clientHeight+"px")},SR7.F.canvas.prototype._wm=function(e){if(!(SR7.E.backend||!this.canvas||!this.wrap||e&&this._wmOn))try{const e=this._wmMod||=this.wrap.closest("sr7-module"),t=e&&SR7.M[e.id]?.settings?.watermark;if(!t?.src)return;const s=(SR7.G.wm??={})[t.src]??=Object.assign(new Image,{crossOrigin:"anonymous",wait:new Set});if(s.src||(s.onload=()=>{s.ok=!0,s.wait.forEach(e=>e._wm()),s.wait.clear()},s.src=t.src),!s.ok)return void s.wait.add(this);const i=this.canvas.width,a=this.canvas.height;if(!i||!a||!s.naturalWidth)return;const r="SR7-BG"===this.wrap.tagName,n=r?null:this._wmC||=this.wrap.closest("sr7-slide")||e,o=r?i/_tpt.dpr:n.offsetWidth,l=r?a/_tpt.dpr:n.offsetHeight;if(!o||!l)return this._wmLater(n);const d=o*Math.min(1,Math.max(.02,parseFloat(t.w)||.14)),c=d*s.naturalHeight/s.naturalWi
28dth,p=.03*Math.min(o,l),u=String(t.pos??"br"),h="c"===u?(o-d)/2:u.includes("l")?p:o-d-p,g="c"===u?(l-c)/2:u.includes("t")?p:l-c-p;let m=0,f=0,S=_tpt.dpr,y=_tpt.dpr;if(!r){let e=this.canvas;for(;e&&e!==n;)m+=e.offsetLeft,f+=e.offsetTop,e=e.offsetParent;if(e!==n){const e=this.canvas.getBoundingClientRect(),t=n.getBoundingClientRect();m=e.left-t.left,f=e.top-t.top}const t=this.canvas.offsetWidth,s=this.canvas.offsetHeight,r=Math.min(h+d,m+t)-Math.max(h,m),o=Math.min(g+c,f+s)-Math.max(g,f);if(!t||!s||r<=0||o<=0||r*o<d*c*.5)return this._wmOn=!1,this._wmLater(n);S=i/t,y=a/s}this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.globalAlpha=Math.min(1,Math.max(0,parseFloat(t.op??.85))),this.ctx.drawImage(s,(h-m)*S,(g-f)*y,d*S,c*y),this.ctx.restore(),this._wmOn=!0,this._wmRO&&(this._wmRO.disconnect(),this._wmRO=null)}catch(e){}},SR7.F.canvas.prototype._wmLater=function(e){!this._wmRO&&window.ResizeObserver&&e&&(this._wmRO=new ResizeObserver(()=>this._wm(!0)),this._wmRO.observe(this.canvas),this._wmRO.observe(e))},SR7.F.canvas.prototype.checkPreDraw=function(){let e={pre:!0,core:!0,post:!0};if(void 0!==this.preDraw)for(let t of this.preDraw){if(!e.pre)break;e=t(this,e)||e}return this._drawState=e,e},SR7.F.canvas.prototype.checkPostDraw=function(e){if(e=e||this._drawState||{pre:!0,core:!0,post:!0},void 0!==this.afterDraw)for(let t of this.afterDraw){if(!e.post)break;e=t(this,e)||e}return this._drawState=e,e},SR7.F.canvas.prototype.drawImg=function(e,t=_tpt.dpr,s){if(!this?.image&&null==e)return;if(null==e&&"undefined"!=typeof ImageBitmap&&this.image instanceof ImageBitmap&&!this.image.width)return;this.canvas&&(this.canvas.srV=(this.canvas.srV||0)+1),this.cacheAltSrc=e,t>0||(t=_tpt.dpr||1);let i="high"==this.stretch&&this?.image?.naturalWidth?this?.image?.naturalWidth??0:this.wrap?.clientWidth||this.requestedWidth||this.image?.naturalWidth||0,a="high"==this.stretch&&this?.image?.naturalWidth?this?.image?.naturalHeight??0:this.wrap?.clientHeight||this.requestedHeight||this.image?.naturalHeight||0;var r,n,o,l;"high"==this.stretch&&1!==t&&(i=(this.wrap?.clientWidth||this.requestedWidth||this.image?.naturalWidth||0)*t,a=(this.wrap?.clientHeight||this.requestedHeight||this.image?.naturalHeight||0)*t),(s||this.cacheW!==i||this.cacheH!==a)&&(this.cacheW=i,this.cacheH=a,this.width=this.canvas.width=i*t,this.height=this.canvas.height=a*t,this.canvas.style.width=i+"px",this.canvas.style.height=a+"px",this.ctx.scale(t,t));var d=o=e?.videoWidth??this.image?.naturalWidth??this.width,c=l=e?.videoHeight??this.image?.naturalHeight??this.height,p=r=i,u=n=a,h=0,g=0,m=0,f=0,S=this.width/this.height,y=d/c;if(void 0!==this.pan){this.ctx.clearRect(m,f,p,u),this.ctx.save();const e=this.image.naturalWidth||this.image.videoWidth||this.image.width||d,t=this.image.naturalHeight||this.image.videoHeight||this.image.height||c;S<y?p=e*(u/t):u=t*(p/e);const s=this.fxPan?{scale:1,rZ:0,x:0,y:0,anchorX:.5,anchorY:.5}:this.pan,r=Math.cos(s.rZ)*s.scale,n=Math.sin(s.rZ)*s.scale,o=Math.sin(s.rZ)*-s.scale,l=Math.cos(s.rZ)*s.scale;if(void 0===s.anchorX&&void 0===s.anchorY)this.ctx.transform(r,n,o,l,s.x,s.y);else{const e=s.anchorX??.5,t=s.anchorY??.5,d=e*p,c=t*u,h=e*i+s.x,g=t*a+s.y;this.ctx.transform(r,n,o,l,h-(r*d+o*c),g-(n*d+l*c))}return this.ctx.drawImage(this.image,0,0,p,u),this.ctx.restore(),void this._wm()}let v=this.checkPreDraw();var R,b,w;v.core&&(this.repeat&&"no-repeat"!==this.repeat&&"cover"!==this.size&&(b=(R=this.pattern()).pox,w=R.poy),"cover"===this.size?(S>y?c=d/S:d=c*S,h=(o-d)*parseFloat(this.pos?.x??0)/100,g=(l-c)*parseFloat(this.pos?.y??0)/100):"auto"===this.size?(u=c,m=(r-(p=d))*parseFloat(this.pos?.x??0)/100,f=(n-u)*parseFloat(this.pos?.y??0)/100):String(this.size).includes("%")?(u=(p=i*parseFloat(this.size)/100)/d*c,m=(r-p)*parseFloat(this.pos?.x??0)/100,f=(n-u)*parseFloat(this.pos?.y??0)/100):(y>S?u=p/y:p=u*y,m=(r-p)*parseFloat(this.pos?.x??0)/100,f=(n-u)*parseFloat(this.pos?.y??0)/100),this.repeat&&"no-repeat"!==this.repeat&&"cover"!==this.size?(this.ctx.fillStyle=R.pattern,this.ctx.fillRect(0,0,r+b,n+w)):(this.ctx.clearRect(m,f,p,u),this.stretch?this.ctx.drawImage(e??this.image,0,0,this.image.width,this.image.height,m,f,p,u):this.ctx.drawImage(e??this.image,h,g,d,c,m,f,p,u)));v.post&&this.checkPostDraw(v),this._wm()},SR7.F.canvas.prototype.pattern=function(){var e,t,s=this.image.naturalWi
28dth,i=this.image.naturalHeight,a=this.wrap.clientWidth,r=this.wrap.clientHeight,n=s/i,o=s,l=i;(s>a||i>r)&&"auto"!==this.size&&!String(this.size).includes("%")?s>=i?(o=a,l=a/n):(l=r,o=r*n):String(this.size).includes("%")&&(o=o*parseFloat(this.size)/100,l=l*parseFloat(this.size)/100),this.pc??=document.createElement("canvas"),(t=this.pc).width=o,t.height=l,t.getContext("2d").drawImage(this.image,0,0,o,l);var d=(2*(Math.floor(Math.abs(a/t.width)/2)+1.5)*t.width-a)*parseFloat(this.pos.x)/100,c=(2*(Math.floor(Math.abs(r/t.height)/2)+1.5)*t.height-r)*parseFloat(this.pos.y)/100;return"repeat-x"===this.repeat?c=(t.height-r)*parseFloat(this.pos.y)/100:"repeat-y"===this.repeat&&(d=(t.width-a)*parseFloat(this.pos.x)/100),(e=this.ctx.createPattern(this.pc,this.repeat)).setTransform((new DOMMatrix).translate(-d,-c)),{pattern:e,pc:t,pox:d,poy:c}},SR7.F.canvas.prototype.drawColored=function(e,t){let s=this.checkPreDraw();if(s.core){if(this.width=this.canvas.width=e||this.wrap.clientWidth*_tpt.dpr,this.height=this.canvas.height=t||this.wrap.clientHeight*_tpt.dpr,0==this.width||0==this.height)return;this.canvas.style.width=this.wrap.clientWidth+"px",this.canvas.style.height=this.wrap.clientHeight+"px",this.fill()}s.post&&this.checkPostDraw(s)},SR7.F.canvas.prototype.fill=function(){if(this.ctx.fillStyle=this.fillColor(),this.ctx.fillRect(0,0,this.width,this.height),this.moving)return this._frozen&&SR7.F.bgFrozenPaint?.(this),void this._wm();"none"!==(this.mesh?.k??"none")?SR7.F.bgMeshPaint?.(this.ctx,this.width,this.height,this.mesh):(this.mesh?.gr??0)>0&&SR7.F.bgGrainPaint?.(this.ctx,this.width,this.height,this.mesh.gr),this._wm()},SR7.F.canvas.prototype.fillColor=function(e=this.width,t=this.height){if(this.color?.colors||(this.color=_tpt.gradient.process(this.color)),this.color&&"string"!=typeof this.color&&"solid"!==this?.color?.type){let i="radial"===this.color.type?this.getRadialGrad(e,t):this.getLinearGrad(e,t);for(var s in this.color.colors)i.addColorStop(this.color.colors[s].p/100,this.color.colors[s].rgba);return i}return"string"!=typeof this.color?this?.color?.string??"transparent":this.color},SR7.F.bgColorCSS=e=>"string"==typeof e?e:e?.string??(_tpt.gradient?.process?_tpt.gradient.process(e,!0)?.string:void 0)??"",SR7.F.canvas.prototype.getLinearGrad=function(e=this.width,t=this.height){return _tpt.gradient.getLinear(this.ctx,e,t,this.color.angle??180)},SR7.F.canvas.prototype.getRadialGrad=function(e=this.width,t=this.height){return this.ctx.createRadialGradient(e/2,t/2,0,e/2,t/2,Math.max(e,t)/2)},SR7.F.glassDisplace=(e,t)=>{const s="http://www.w3.org/2000/svg";let i=document.getElementById("sr7-glass-defs");i||(i=document.createElementNS(s,"svg"),i.setAttribute("id","sr7-glass-defs"),i.setAttribute("aria-hidden","true"),i.style.cssText="position:absolute;width:0;height:0;overflow:hidden;pointer-events:none",document.body.appendChild(i));let a="sr7gd_"+String(e).replace(/[^a-z0-9_]/gi,""),r=document.getElementById(a);if(!r){r=document.createElementNS(s,"filter"),r.setAttribute("id",a),r.setAttribute("x","-20%"),r.setAttribute("y","-20%"),r.setAttribute("width","140%"),r.setAttribute("height","140%");let e=document.createElementNS(s,"feTurbulence");e.setAttribute("type","fractalNoise"),e.setAttribute("baseFrequency","0.009 0.012"),e.setAttribute("numOctaves","2"),e.setAttribute("seed","42"),e.setAttribute("result","n");let t=document.createElementNS(s,"feGaussianBlur");t.setAttribute("in","n"),t.setAttribute("stdDeviation","1.4"),t.setAttribute("result","nb");let n=document.createElementNS(s,"feDisplacementMap");n.setAttribute("in","SourceGraphic"),n.setAttribute("in2","nb"),n.setAttribute("xChannelSelector","R"),n.setAttribute("yChannelSelector","G"),n.setAttribute("id",a+"_m"),r.appendChild(e),r.appendChild(t),r.appendChild(n),i.appendChild(r)}let n=document.getElementById(a+"_m");return n&&n.setAttribute("scale",t),"url(#"+a+")"},SR7.F.drawGlass=(e,t,s)=>{const i=e._glPerfKey??="glass:"+(SR7.F._perfSeq=(SR7.F._perfSeq||0)+1);if("custom"===t.subtype)return void SR7.perf?.unregister?.(i);let a=e.con??e.el;if(!t.glass||!t.glass.u){if(SR7.perf?.unregister?.(i),e.glassEl&&(e.glassEl.remove(),e.glassEl=void 0),e.glassFX){let s=e.glassHost??a;s.style.backdropFilter=s.style.webkitBackdropFilter=0!==(parseInt(t.bF)||0)?"blur("+t.bF+"px)":"",s.style.isolation="",e.glassFX=!1,e.glassHost=void 0}return}e.glassFX=!0,e.glassHost=a,a.style.isolation="isolate";let r=t.glass,n=parseFloat(r.blur);isNaN(n)&&(n=3);let o=parseFloat(r.intensity);o=isNaN(o)?1:Math.max(0,o/100);const l=()=>{const e=SR7.perf?.glass??1;a.style.backdropFilter=a.style.webkitBackdropFilter=(e>0?SR7.F.glassDisplace(s,90*o*e)+" ":"")+"blur("+(n*(e>0?e:.5)).toFixed(2)+"px)"};SR7.perf?.register?SR7.perf.register(i,{cost:2,priority:1,onTier:l}):l(),e.glassEl&&e.glassEl.parentNode===a||(e.glassEl&&e.glassEl.remove(),e.glassEl=document.createElement("sr7-glass"),a.insertBefore(e.glassEl,a.firstChild)),e.glassEl.style.backgroundImage="linear-gradient(135deg, rgba(255,255,255,"+.49*o+") 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(255,255,255,"+.175*o+") 100%)",e.glassEl.style.border="1px solid rgba(255,255,255,"+.44*o+")",e.glassEl.style.boxShadow="inset 0 1px 1px rgba(255,255,255,"+.72*o+"), inset 0 -2px 6px rgba(255,255,255,"+.24*o+"), inset 0 0 18px rgba(255,255,255,"+.08*o+")"},SR7.F.pblurBand={"to top":e=>"left:0;right:0;top:0;height:"+e+"%","to bottom":e=>"left:0;right:0;bottom:0;height:"+e+"%","to right":e=>"top:0;bottom:0;right:0;width:"+e+"%","to left":e=>"top:0;bottom:0;left:0;width:"+e+"%"},SR7.F.drawPBlur=(e,t)=>{let s=e.el,i=t.pblur;const a=e._pbPerfKey??="pblur:"+(SR7.F._perfSeq=(SR7.F._perfSeq||0)+1);if(!i||!i.u)return SR7.perf?.unregister?.(a),void(e.pblurEl&&(e.pblurEl.remove(),e.pblurEl=void 0));let r=i.dir||"to top",n=parseFloat(i.max);isNaN(n)&&(n=24);let o=parseFloat(i.fade);isNaN(o)&&(o=70),o=Math.max(1,Math.min(100,o));let l=(parseFloat(i.tint)||0)/100,d=null,c=getComputedStyle(s).backgroundImage;d=c&&"none"!==c?s:[...s.querySelectorAll("*")].find(e=>{let t=getComputedStyle(e).backgroundImage;
28return t&&"none"!==t&&t.indexOf("url(")>=0})||null;let p=d?getComputedStyle(d).backgroundImage:"none",u=p&&"none"!==p&&p.indexOf("url(")>=0?"content":"backdrop";e.pblurEl||(e.pblurEl=document.createElement("sr7-pblur"),s.appendChild(e.pblurEl));let h=e.pblurEl,g="content"===u?getComputedStyle(d):null;const m=()=>{const e=SR7.perf?.blurScale??1,t="backdrop"===u?SR7.perf?.pblur??1:1;if(t<=0)return h.innerHTML="",void(h.style.cssText="display:none");const s=n*e,i="backdrop"===u?Math.max(1,Math.round((SR7.perf?.pblurSteps??3)*t)):Math.max(3,Math.round(6*e)),a=100-o;h.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit;z-index:2",h.innerHTML="";for(let e=0;e<i;e++){let t=(e+1)/i,n=+(s*Math.pow(t,1.6)).toFixed(2),o=+(a+e/i*(100-a)).toFixed(1),l=Math.min(40,(100-a)/i*1.6+4),d=document.createElement("div");const c=100-o,m="backdrop"===u&&(SR7.perf?.pblurClip??!0)&&c>1&&c<99.5&&SR7.F.pblurBand[r];let f;m?(d.style.cssText="position:absolute;pointer-events:none;"+m(c.toFixed(2)),f="linear-gradient("+r+", rgba(0,0,0,0) 0%, rgba(0,0,0,1) "+Math.min(100,l/c*100).toFixed(1)+"%)"):(d.style.cssText="position:absolute;inset:0;pointer-events:none",f="linear-gradient("+r+", rgba(0,0,0,0) "+o+"%, rgba(0,0,0,1) "+(o+l)+"%)"),d.style.webkitMaskImage=d.style.maskImage=f,"content"===u?(d.style.backgroundImage=p,d.style.backgroundSize=g.backgroundSize,d.style.backgroundPosition=g.backgroundPosition,d.style.backgroundRepeat=g.backgroundRepeat,d.style.filter="blur("+n+"px)"):d.style.backdropFilter=d.style.webkitBackdropFilter="blur("+n+"px)",h.appendChild(d)}if(l>0){let e=document.createElement("div");e.style.cssText="position:absolute;inset:0;pointer-events:none",e.style.background="linear-gradient("+r+", rgba(255,255,255,0) "+a+"%, rgba(255,255,255,"+l+") 100%)",h.appendChild(e)}};SR7.perf?.register?SR7.perf.register(a,{cost:2,priority:1,onTier:m}):m()},_tpt.R=_tpt.R||{},_tpt.R.canvas=_tpt.extend?_tpt.extend(_tpt.R.canvas,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"})}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},SR7.F.getModuleSticky??=e=>e?"top"===e.sticky||"bottom"===e.sticky?e.sticky:!0===e.fixed||"top"===e.fixed?"top":"none":"none",SR7.F.isStickyTop??=e=>"top"===SR7.F.getModuleSticky(e?.settings),SR7.F.isStickyBottom??=e=>"bottom"===SR7.F.getModuleSticky(e?.settings),void 0!==SR7.gVal)return;function e(t,s,i,a){if(0===s.length)for(let e=0;e<i.length;e++)t[i[e]]=a[e];else{const r=s.shift();_tpt.hop(t,r)||(t[r]={}),e(t[r],s,i,a)}}function t(e){try{document.querySelector(e)}catch{return!1}return!0}function s(e,t){void 0!==t.hash&&history.pushState(null,null,t.hash),_tpt.isSafari11||(_tpt.gsap.set("html",{scrollBehavior:t.sbHtml}),_tpt.gsap.set("body",{scrollBehavior:t.sbBody})),SR7.M[e].c.scrollToObj=null}SR7.gVal=(e,t,s=1,i=!1,a,r,n,o,l)=>SR7.gV({v:e,id:t,u:s,f:i,m:a,a:r,debug:n,c:o,s:l}),SR7.gV=function(e){if(null==e?.v)return;let t,s,i=SR7.M[e.id],{v:a,u:r=1,f:n=!1,m:o,a:l,c:d=i.LEV,s:c}=e,p=6,u=1;if(Array.isArray(a)){p=0;let e=d;for(;!i.settings.uSize[e]&&e>0;)e--;i.settings.uSize[e]||0!=e||(e=1);let s=a[e];if("#a"==s||null==s||!0!==i.settings.uSize[e]&&!0!==l){let s,r;for(r=e;r>=p;r--)if(i.settings.uSize[r]&&"#a"!=a[r]&&void 0!==a[r]&&""!==a[r]&&null!==a[r]){s=r;break}if(null==s)for(r=e;r<=5;r++)if(i.settings.uSize[r]&&"#a"!=a[r]&&void 0!==a[r]&&""!==a[r]&&null!==a[r]){s=r;break}if(void 0!==s){if(0==p&&0==e&&"keep"!==c&&(u=parseFloat(i.settings.size.width[0])/parseFloat(i.settings.size.width[s])),"scale"==c)if(i.slideRatios){const e=_tpt.toPxH(i.settings.size.height[d]),t=_tpt.toPxH(i.settings.size.height[s]),a=!1!==i.slideRatios[i.current.id]?i.slideRatios[i.current.id]:parseFloat(i.settings.size.width[s])/t;u=e*a/(t*a)}else u=parseFloat(i.settings.size.width[d])/parseFloat(i.settings.size.width[s]);t=a[s]}}t??=s}else t=a;0!=i.LEV||i.settings.uSize[0]||(u=1);let h=_tpt.gsap.utils.getUnit(t);return(s=Number.isFinite(parseFloat(t)))&&!_tpt.relUnit(h)&&(1!==u&&(t=parseFloat(t)*u),1==n?(t=parseFloat(t)*(p>d&&(0!=d||i.settings.size.fullWidth&&!i.useHMP)?1:i.MP??1),"round"==o||"ceil"==o?t=Math[o](t):"floor"==o&&(t=t>0?Math.floor(t):Math.ceil(t))):("forceround"==o&&(t=Math.round(parseFloat(t))),"round"!=o&&"ceil"!=o&&"floor"!=o||(t=Math[o](parseFloat(t))))),s?0==r||null==r?parseFloat(t):parseFloat(t)+(1==r?h:r):t},SR7.F.imgSrc=(e,t)=>{if(!Array.isArray(t?.srcs))return t?.src;const s=SR7.gV({v:t.srcs,id:e,u:0,s:"keep"});return""===s||"#a"===s||"none"===s||null==s?t.src:s},SR7.F.imgPrimary=(e,t)=>{if(!Array.isArray(t))return t;const s=SR7.M?.[e]?.settings?.uSize;
28for(let e=0;e<5;e++)if((s?.[e]??1)&&""!==t[e]&&"#a"!==t[e]&&"none"!==t[e]&&null!=t[e])return t[e];return""},SR7.F.dropStaleSrcs=(e,t,s)=>{Array.isArray(t?.srcs)&&SR7.F.imgPrimary(e,t.srcs)!==s&&delete t.srcs},SR7.F.setImgSrc=(e,t,s)=>t?(SR7.F.dropStaleSrcs(e,t,s),t.src=s,t):t,SR7.F.modHeight=(e,t="scale",s=!1)=>Math.round(_tpt.toPxH(SR7.gV({v:SR7.M[e].settings.size.height,id:e,u:1,s:t,f:s,m:"round"}))),SR7.dirVal=function(e,t){let s=1;return(""+t).includes("(")&&(t=t.slice(1).slice(0,-1),s=SR7.M[e].lastChangeDir),{v:t,d:s}},SR7.F.getParOffsets=(e,t={})=>(t.width??=parseInt(e.cw),t.height??=parseInt(e.ch),t.left=(t.left??0)+parseInt(e?.left??0),t.top=(t.top??0)+parseInt(e?.top??0),void 0!==e.par&&(t=SR7.F.getParOffsets(e.par,t)),t),SR7.F.getParRowMP=e=>{let t={x:0,y:0};for(;e&&"SR7-SLIDE"!==e.tagName;)"SR7-ROW"===e.tagName&&(t.x+=parseFloat(e.style.paddingLeft||0),t.y+=parseFloat(e.style.paddingTop||0),t.x+=parseFloat(e.style.marginLeft||0),t.y+=parseFloat(e.style.marginTop||0)),e=e.parentElement;return t},SR7.F.getOffsetTop=e=>{let t=e.offsetTop,s=e.offsetParent;for(;null!==s;)t+=s.offsetTop,s=s.offsetParent;return t},SR7.cVal=function(e,t,s,i,a,r,n=!1,o,l){let d=(""+e).includes("%"),{v:c,d:p}=!1!==n?{v:SR7.F.getOffset(e,void 0,SR7.M[t].lastChangeDir,l),d:1}:SR7.dirVal(t,(""+e).includes("{")||(""+e).includes("[")?SR7.F.getOffset(e,void 0,SR7.M[t].lastChangeDir,0):e);p="in"!==o&&"out"!==o?1:p??1;let u=c;const h=SR7.D.DAIN.indexOf(c)>=0;if(h&&(c=c.slice(0,-2)),SR7.D.DA.indexOf(c)>=0){i??=null==s.ptype?1:"zone"===s.ptype?2:0,i=4==(i=!("zone"!==s.ptype&&null!=s.ptype||null!=i&&1!=i)?2:i)&&"column"===s.ptype?"100%"===s.par.w?2:1:i;let e="center"!==c&&"middle"!==c&&0==i?{left:0,top:0,width:"zone"===s.ptype?s.ciw:s.cw,height:s.ch}:SR7.F.getParOffsets(s),n=1==i||("center"==c||"middle"==c)&&0==i?s.par.el?SR7.F.getParOffsets(s.par):{width:s.par.cw,height:s.par.ch,left:s.par?.left??s.par?.x,top:s.par?.top??s.par?.y}:{width:SR7.M[t].dims.content.w,height:SR7.M[t].dims.content.h,left:SR7.M[t].dims.content.x,top:SR7.M[t].dims.content.y}
28,o="center"===c||"middle"===c||null!=a&&0!=a?{left:s.target.offsetLeft,top:s.target.offsetTop}:{left:0,top:0};if(e.width+=s.borderH??0,e.height+=s.borderV??0,"zone"===s.ptype&&(e.height+=(s.rpt??0)+(s.rpb??0),e.width+=(s.rpl??0)+(s.rpr??0)),!s.par.el&&SR7.M[t]?.c?.autoParents?.[s.skey]?.includes(s.lkey)&&SR7.M[t]?.firstRendering&&s.el.classList[1==SR7.M[t].firstRendering[s.skey]?"add":"remove"]("sr7-hiddenAutoContainer"),"center"==c||"middle"==c)n.top??=0,n.left??=0,u="y"==r?i<2?0-e.height/2+n.height/2-o.top:0-e.top-e.height/2+n.height/2:i<2?0-e.width/2+n.width/2-o.left+n.left:0-e.left-e.width/2+n.width/2;else{n.top??=0,n.left??=0;let a="left"==c||"right"==c?Math.abs(Math.round(parseFloat(s?.mod?.animElemXY?._gsap?.x??s?.mod?.animElem?._gsap?.x??0))):"bottom"==c||"top"==c?Math.abs(Math.round(parseFloat(s?.mod?.animElemXY?._gsap?.y??s?.mod?.animElem?._gsap?.y??0))):0;a+=0==a?0:10,(1==p&&"bottom"==c||-1==p&&"top"==c)&&(u=0==i?e.height:1==i?n.height-(e.top-n.top):SR7.M[t].dims.content.h-e.top),(1==p&&"top"==c||-1==p&&"bottom"==c)&&(u=0==i?0-e.height:1==i?0-(e.top-n.top+e.height):0-(e.top+e.height)),(1==p&&"right"==c||-1==p&&"left"==c)&&(u=0==i?e.width:1==i?(n.left??0)-e.left+n.width:"column"==s.par?.subtype?n.width-e.left:n.width-e.left+o.left-(n?.left??0)),(1==p&&"left"==c||-1==p&&"right"==c)&&(u=0==i?0-e.width:1==i?0-(e.left-(n.left??0)+("row"===s.subtype?SR7.M[t].dims.content.w:e.width)):0-(e.left+("row"===s.subtype?SR7.M[t].dims.content.w:e.width))),h&&0!==i&&(u=u>0?u-("y"==r?e.height:e.width):u+("y"==r?e.height:e.width)),u=u>0?u+a:u-a}return u}return d?(i??=null==s.ptype||""+s.ptype=="-1"||"zone"===s.ptype?0:1,null==i||0==i?u=p*parseInt(c)/100*("x"===r?"zone"===s.ptype?s.ciw:n?n.offsetWidth:0==s.cw?s.el?.offsetWidth??s.cw:s.cw:n?n.offsetHeight:0==s.ch?s.el?.offsetHeight??s.ch:s.ch):1==i?u=p*parseInt(c)/100*("x"===r?n?s.cw:s.par.cw:n?s.ch:s.par.ch):2==i&&(u=p*parseInt(c)/100*("x"===r?SR7.M[t].dims.content.cw:SR7.M[t].dims.content.ch)),u):c},SR7.F.getEmptyAnimObj=e=>1==e?{x:0,y:0,z:0,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,opacity:1}:{x:0,y:0,z:0,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,opacity:1,blur:0,graysacle:0,brightness:100},SR7.F.checkWrap=(e,t)=>{if(null==e)return!1;let s=!1;for(let i in e)s&&_tpt.hop(e,i)||(s=void 0!==e[i][t]&&!e[i][t]?.d);return s},SR7.F.hoverShadowOn=e=>_tpt.tf(e?.hov?.tShdw?.use??!1)||_tpt.tf(e?.hov?.bShdw?.use??!1),SR7.F.hoverOn=e=>!0===_tpt.tf(e?.hov?.u)&&!(_tpt.is_mobile&&!0===_tpt.tf(e?.hov?.dMo)),SR7.F.hasRotation=e=>null!=e&&(void 0!==e.rX&&"inherit"!==e.rX&&0!==parseInt(e.rX)||(void 0!==e.rY&&"inherit"!==e.rY&&0!==parseInt(e.rY)||void 0!==e.rZ&&"inherit"!==e.rZ&&0!==parseInt(e.rZ))),SR7.F.checkMargin=e=>{if(null==e)return!1;let t,s,i=!1;if(e)for(t of SR7.D.DS)if(!i)for(s=0;s<5;s++)i=i||0!==e?.[t]?.[s]&&void 0!==e?.[t]?.[s];return i},SR7.F.splitText=(e,t)=>
28{let s;for(let t in e.tl)for(let i of["words","lines","chars"])!_tpt.hop(e.tl,t)||null!=s&&s[i+"Class"]||void 0===(e.tl[t]?.[i]??void 0)||(s??={},s[i+"Class"]="sr7_splitted_"+i);return void 0!==s&&(s.wordsClass??="sr7_splitted_words_noanim",s.type=Object.keys(s).join(",").replaceAll("Class","")),null!=s&&new _tpt.SplitText(t.el,s)},_tpt.inRange=(e,t,s)=>e>=(t<s?t:s)&&e<=(t>s?t:s)?"in":"out",SR7.F.startOnAction=(e,t,s)=>"zone"!==SR7.M[e].slides[t].layers[s].type&&(void 0!==SR7.M[e].slides[t].layers[s].tl.in&&"w"==(""+(SR7.M[e].slides[t].layers[s].tl.in?.content?.all?.[0]?.t??""))[0]||0==SR7.M[e].slides[t].layers[s].tl.in?.content?.all?.length),SR7.F.triggeredChildren=(e,t,s,i=[])=>{let a=SR7.M[e].slides[t].layers;if("container"===a[s].type)for(let r in a){if(r==s||i.indexOf(r)>=0||!_tpt.hop(a,r))continue;let n=a[r];n.pid==s&&(i.push(r),"container"===n.type&&!0!==SR7.F.startOnAction(e,t,r)&&(i=SR7.F.triggeredChildren(e,t,r,i)))}return i},SR7.F.getColOrder=(e,t,s)=>{let i=[];for(let a in SR7.M[e].slides[t].layers)String(SR7.M[e].slides[t].layers[a].pid)==String(s)&&i.push({id:a,order:SR7.M[e].slides[t].layers[a].order});i.sort((e,t)=>e.order-t.order);for(let e=0;e<i.length;e++)i[e].idx=e;return i},SR7.F.inActionEnv=(e,t,s,i=!1)=>(null==e||null==s||null==t||(i=i||!SR7.E.backend&&SR7.F.startOnAction(e,t,s))||-1===SR7.M[e].slides[t].layers[s].pid||(i=SR7.F.inActionEnv(e,t,SR7.M[e].slides[t].layers[s].pid,i)),i),SR7.F.getOffset=(e,t,s,i)=>{let a=e;if("left"==e||"right"==e||"top"==e||"bottom"==e||SR7.D.DAIN.indexOf(e)>=0)return a;if(null==a)return;const r=(""+a).includes("%");return a=SR7.F.getSpecialValue(a,i,s),0==a||void 0===a?0:r?null==t?a:t*(parseFloat(a)/100):parseFloat(a)},SR7.F.getSpecialValue=(e,t,s=1,i)=>{let a=e;if(null==a||"inherit"==a||"Inherit"==a)return;if(parseFloat(a)==a)return parseFloat(a,0);let r=(""+a).includes("(");return(""+a).includes("{")?(r&&(a=a.replaceAll("(","").replaceAll(")","")),a=a.slice(1,-1).split(","),_tpt.gsap.utils.random(parseFloat(a[0]),parseFloat(a.length>1?a[1]:0-a[0]))):(""+a).includes("[")?(r&&(a=a.replaceAll("(","").replaceAll(")","")),a=_tpt.gsap.utils.wrap(a.slice(1,-1).split(","),t),r?parseFloat(a)*s+(i?"%":""):a):(r?parseFloat(a.slice(1,-1))*s:parseFloat(a))+(i?"%":"")},SR7.F.getSpikePath=(e={l:"none",lw:10,r:"none",rw:10},t=0)=>{const s=(e,s,i)=>SR7.F.isCornerSpike(e)?i?"calc(100% - "+t+"px)":t+"px":(i?100-parseFloat(s):parseFloat(s))+"%";return"polygon("+SR7.F.getClipPaths(e.l,0,s(e.l,e.lw))+","+SR7.F.getClipPaths(e.r,100,s(e.r,e.rw,!0),!0)+")"},SR7.F.isCornerSpike=e=>"ctop"===e||"cbottom"===e,SR7.F.hasCornerSpike=e=>(e?.use??!1)&&(SR7.F.isCornerSpike(e.l)||SR7.F.isCornerSpike(e.r)),SR7.F.usePerspective=function(e,t,s=600,i){let a;if(i)(_tpt.isSet(e.z)&&"0deg"!==e.z||_tpt.isSet(e.rX)&&"0deg"!==e.rX||_tpt.isSet(e.rY)&&"0deg"!==e.rY)&&(a=t.D3OU??1?"global"==t.perspectiveType?t.perspective??600:"isometric"==t.perspectiveType?"none":s:s);else for(let i in e)void 0===a&&_tpt.hop(e,i)&&(_tpt.isSet(e[i].z)&&"0deg"!==e[i].z||_tpt.isSet(e[i].rX)&&"0deg"!==e[i].rX||_tpt.isSet(e[i].rY)&&"0deg"!==e[i].rY)&&(a=t.D3OU??1?"global"==t.perspectiveType?t.perspective??600:"isometric"==t.perspectiveType?"none":s:s);return"none"==a?void 0:a},SR7.F.getClipPaths=(e,t,s,i)=>{var a;const r=e=>"number"==typeof e?e+"%":e;switch(t=r(t),s=r(s),e){case"none":a=t+" 100%,"+t+" 0%";break;case"ctop":case"top":a=s+" 100%,"+t+" 0%";break;case"middle":a=s+" 100%,"+t+" 50%,"+s+" 0%";break;case"cbottom":case"bottom":a=t+" 100%,"+s+" 0%";break;case"two":a=s+" 100%,"+t+" 75%,"+s+" 50%,"+t+" 25%,"+s+" 0%";break;case"three":a=t+" 100%,"+s+" 75%,"+t+" 50%,"+s+" 25%,"+t+" 0%";break;case"four":a=t+" 100%,"+s+" 87.5%,"+t+" 75%,"+s+" 62.5%,"+t+" 50%,"+s+" 37.5%,"+t+" 25%,"+s+" 12.5%,"+t+" 0%";break;case"five":a=t+" 100%,"+s+" 90%,"+t+" 80%,"+s+" 70%,"+t+" 60%,"+s+" 50%,"+t+" 40%,"+s+" 30%,"+t+" 20%,"+s+" 10%,"+t+" 0%"}if(i){var n=a.split(",");for(s in a="",n)_tpt.hop(n,s)&&(a+=n[n.length-1-s]+(s<n.length-1?",":""))}return a},SR7.F.clipEffect=(e,t,s,i=100)=>{t="r"==t||null==t,s=parseInt(s,0),i=100-parseInt(i,0);const a=Math.round(s/2);switch(e){case"invh":return"polygon(0% 0%, 0% 100%, "+s+"% 100%, "+s+"% 0%, 100% 0%, 100% 100%, "+i+"% 100%, "+i+"% 0%, 0% 0%)";case"invv":return"polygon(100% 0%, 0% 0%, 0% "+s+"%, 100% "+s+"%, 100% 100%, 0% 100%, 0% "+i+"%, 100% "+i+"%, 100% 0%)";case"cv":return t?"polygon("+(50-a)+"% 0%, "+(50+a)+"% 0%, "+(50+a)+"% 100%, "+(50-a)+"% 100%)":"circle("+s+"% at 50% 50%)";case"ch":case"cliph":return t?"polygon(0% "+(50-a)+"%, 0% "+(50+a)+"%, 100% "+(50+a)+"%, 100% "+(50-a)+"%)":"circle("+s+"% at 50% 50%)";case"l":return t?"polygon(0% 0%, "+s+"% 0%, "+s+"% 100%, 0% 100%)":"circle("+s+"% at 0% 50%)";case"r":return t?"polygon("+(100-s)+"% 0%, 100% 0%, 100% 100%, "+(100-s)+"% 100%)":"circle("+s+"% at 100% 50%)";case"t":return t?"polygon(0% 0%, 100% 0%, 100% "+s+"%, 0% "+s+"%)":"circle("+s+"% at 50% 0%)";case"b":return t?"polygon(0% 100%, 100% 100%, 100% "+(100-s)+"%, 0% "+(100-s)+"%)":"circle("+s+"% at 50% 100%)";case"lt":return t?"polygon(0% 0%,"+2*s+"% 0%, 0% "+2*s+"%)":"circle("+s+"% at 0% 0%)";case"lb":return t?"polygon(0% "+(100-2*s)+"%, 0% 100%,"+2*s+"% 100%)":"circle("+s+"% at 0% 100%)";case"rt":return t?"polygon("+(100-2*s)+"% 0%, 100% 0%, 100% "+2*s+"%)":"circle("+s+"% at 100% 0%)";case"rb":return t?"polygon("+(100-2*s)+"% 100%, 100% 100%, 100% "+(100-2*s)+"%)":"circle("+s+"% at 100% 100%)";case"clr":return t?"polygon(0% 0%, 0% "+s+"%, "+(100-s)+"% 100%, 100% 100%, 100% "+(100-s)+"%, "+s+"% 0%)":"circle("+s+"% at 50% 50%)";case"crl":return t?"polygon(0% "+(100-s)+"%, 0% 100%, "+s+"% 100%, 100% "+s+"%, 100% 0%, "+(100-s)+"% 0%)":"circle("+s+"% at 50% 50%)"}return""},SR7.F.getCSSTransform=(e={})=>{var t=[];let s=!1;const i=e=>"inherit"==e?void 0:e;let a,r;void 0!==(a=i(e.z))&&0!==a?(s=!0,t.push("translate3d("+_tpt.unitize(i(e.x)??0)+","+_tpt.unitize(i(e.y)??0)+","+_tpt.unitize(i(e.z)??0)+")")):void 0!==(a=i(e.x))&&void 0!==(r=i(e.y))&&t.pu
28sh("translate("+_tpt.unitize(a)+","+_tpt.unitize(r)+")"),void 0!==(a=i(e.rotate))||void 0!==(a=i(e.rotationZ))?t.push("rotate("+_tpt.unitize(a,"deg")+")"):void 0!==(a=i(e.rotationY))&&(s=!0,t.push("rotateY("+_tpt.unitize(a,"deg")+")")),void 0!==(a=i(e.rotationX))&&(s=!0,t.push("rotateX("+_tpt.unitize(a,"deg")+")")),a=i(e.scaleX),r=i(e.scaleY);let n=i(e.skewX),o=i(e.skewY);return void 0===n&&void 0===o||(void 0!==n&&(r=parseFloat(r??1)*Math.cos((n=parseFloat(n))*_tpt.DEG2RAD)),void 0!==o&&(a=parseFloat(a??1)*Math.cos((o=parseFloat(o))*_tpt.DEG2RAD))),void 0===n&&void 0===o||t.push("skew("+_tpt.unitize(n??0,"deg")+","+_tpt.unitize(o??0,"deg")+")"),void 0===a&&void 0===r||t.push("scale("+(a??1)+","+(r??1)+")"),s&&t.unshift("perspective("+_tpt.unitize(i(e.perspective)??600)+")"),t.join(" ")},SR7.F.offsetStagger=function(e){var t=_tpt.gsap.utils.distribute(e);return function(s,i,a){return t(s,i,a)+(s<=a.length/2?0:e.offset||0)}},SR7.F.useFilter=e=>void 0!==e&&(void 0!==e.r&&100!==parseInt(e.r)||void 0!==e.g&&0!==parseInt(e.g)||void 0!==e.b&&0!==parseInt(e.b)),SR7.F.getFilterStyle=(e,t,s={})=>{const i=Object.keys(SR7.D.dFV),a={...s},r=i.filter(i=>s[i]||"string"==typeof e&&e.includes(i)&&e.split(i+"(")[1].split(")")[0]!==parseInt(SR7.D.dFV[i])||void 0!==e[t+SR7.D.dFVC[i]]&&parseInt(e[t+SR7.D.dFVC[i]])!==parseInt(SR7.D.dFV[i])?(a[i]=!0,!0):(a[i]=!1,!1));if(0===r.length)return{filter:"none",changedFilters:a};let n=r.map(s=>`${s}(${"string"==typeof e&&e.includes(s)?parseInt(e.split(s+"(")[1].split(")")[0])||parseInt(SR7.D.dFV[s]):parseInt(e[t+SR7.D.dFVC[s]]||SR7.D.dFV[s])}${"blur"===s?"px":"%"})`).join(" ");const o={};return r.map(s=>{if(!a[s])return;const i="string"==typeof e&&e.includes(s)?parseInt(e.split(s+"(")[1].split(")")[0])||parseInt(SR7.D.dFV[s]):parseInt(e[t+SR7.D.dFVC[s]]||SR7.D.dFV[s]);o[s]=i}),{filter:n,filters:o,used:a}},SR7.F.getBGAnimColor=(e={type:"solid",orig:"transparent",string:"transparent"},t,s)=>{if(null==t)return{};let i="function"==typeof e?e():e,a="function"==typeof t?t():t,r="object"==typeof a?a?.string??_tpt.gradient.getString(a):a,n="object"==typeof i?i?.string??_tpt.gradient.getString(i):i,o=r.includes("gradient");return n.includes("gradient")||o?{gradient:!0,bg:_tpt.gradient.getSSGColors(r,n,s||"fading")}:{gradient:!1,bg:{to:n,from:r}}},SR7.F.cache=(t,s,i,a)=>{e(t,s.split("."),i,a)},SR7.F.getAccelerationPermission=()=>{DeviceMotionEvent.requestPermission().then(function(e){if("granted"==e)for(var t in SR7.M)_tpt.hop(SR7.M,t)&&(SR7.M[t].c.modulesNeedOrientationListener=!1,SR7.F.removeIOSPermissionWait(),SR7.F.addDeviceOrientationListener(t))})},SR7.F.addDeviceOrientationListener=e=>{const t=SR7.M[e],s=t.c.mod;window.addEventListener("deviceorientation",function(e){t.c.modulesNeedOrientationListener&&(t.c.modulesNeedOrientationListener=!1,SR7.F.removeIOSPermissionWait()),s.eventData=e})},SR7.F.removeIOSPermissionWait=()=>{document.querySelectorAll(".iospermaccwait").forEach(function(e){e.classList.add("permanenthidden")})},SR7.F.calculateVisiblePercentage=e=>{const t=window.pageYOffset||document.documentElement.scrollTop,s=Math.max(e.top+t,t),i=Math.min(e.bottom+t,t+_tpt.winH);if(i<=s)return 0;return(i-s)/e.height},SR7.F.scrollTo=(e,t,s=1,i="power2.out",a)=>{if(!SR7.M[e].useAsModal){let e={_y:window.pageYOffset!==document.documentElement.scrollTop?0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop:window.pageYOffset};return _tpt.gsap.fromTo(e,s,{_y:Math.max(document.body.scrollTop,document.documentElement.scrollTop),ease:i},{_y:t,onUpdate:function(){document.documentElement.scrollTop=e._y,document.body.scrollTop=e._y},onComplete:a})}},SR7.F.scrollToId=e=>{SR7.M[e.id].c.scrollToObj=e,_tpt.isSafari11||(SR7.M[e.id].c.scrollToObj.sbHtml=_tpt.gsap.getProperty("html","scrollBehavior"),SR7.M[e.id].c.scrollToObj.sbBody=_tpt.gsap.getProperty("body","scrollBehavior"),_tpt.gsap.set("html,body",{scrollBehavior:"auto"})),SR7.F.calcScrollToId(e.id)},SR7.F.getContsHeights=(e="",s=_tpt.winH)=>{if(""==e)return 0;const i=e.split(",");let a=0;return i.forEach(e=>{let i=_tpt.posToNum(e,s);
28if(i==e&&t(e)){document.querySelectorAll(e.trim()).forEach(e=>{a+=e.offsetHeight})}else a+=i}),a},SR7.F.disconnectFhoContainers=e=>{const t=SR7.M?.[e];t?.fhoRO&&(clearTimeout(t.fhoROTimer),t.fhoRO.disconnect(),delete t.fhoRO,delete t.fhoROTimer)},SR7.F.observeFhoContainers=e=>{const s=SR7.M?.[e];if(!s||SR7.E.backend||"undefined"==typeof ResizeObserver)return;if(SR7.F.disconnectFhoContainers(e),!_tpt.tf(s.settings?.size?.FHOU??!0)||!s.settings?.size?.fullHeight)return;const i=s.settings.size.fullHeightOffset||"";if(!i)return;const a=[],r=new Set;for(const e of i.split(",")){const i=e.trim();i&&(_tpt.posToNum(i,_tpt.winH??window.innerHeight)===i&&t(i)&&document.querySelectorAll(i).forEach(e=>{r.has(e)||s.c?.module?.contains?.(e)||(r.add(e),a.push(e))}))}if(!a.length)return;s.fhoRO=new ResizeObserver(()=>{clearTimeout(s.fhoROTimer),s.fhoROTimer=setTimeout(()=>{if(!SR7.M[e])return;(SR7.F.getContsHeights(i,SR7.M[e].dims?.module?.h)||0)!==(SR7.M[e].dims?.reduceHeight??0)&&SR7.F.updateModuleDims(e,!0,!0)},50)}),a.forEach(e=>s.fhoRO.observe(e)),!s._fhoFontsHooked&&document.fonts?.ready&&(s._fhoFontsHooked=!0,document.fonts.ready.then(()=>{SR7.M[e]&&(SR7.F.observeFhoContainers(e),SR7.F.updateModuleDims(e,!0,!0))}).catch(()=>{}))},SR7.F.calcScrollToId=e=>{const t=SR7.M[e],i=t.c.scrollToObj;var a=i.tween&&i.tween.progress?i.tween.progress():0;i.tween&&i.tween.kill&&i.tween.kill(),void 0!==i.startScrollPos&&null!==i.startScrollPos||(i.startScrollPos=t.useAsModal?SR7.F.modal.wrap.scrollTop:Math.max(document.body.scrollTop,document.documentElement.scrollTop));const r=void 0===i.anchor?t.dims.reduceHeight-(parseInt(i.offset,0)||0)||0:0-(parseInt(i.offset,0)||0),n=null==i.anchor?t.c.module:document.getElementById("#"==i.anchor[0]?i.anchor:i.anchor.replace("#",""))||document.getElementById("#"==i.anchor[0]?i.anchor:i.anchor.replace("#","").toUpperCase()),o={_y:t.useAsModal?SR7.F.modal.wrap.scrollTop:window.pageYOffset!==document.documentElement.scrollTop?0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop:window.pageYOffset},l=(null!=n?SR7.F.getOffsetTop(n):0)+(null==i.anchor?t.settings.tlScroll?.fixed?t.dims.module.h+t.fullScreenOffsetResult:void 0!==t.dims.sbt?t.dims.sbt:t.dims.content.h:0),d=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),c=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let p=Math.min(l-r,d-c-1);if(p<0)return s(e,i);i.tween=_tpt.gsap.fromTo(o,parseInt(i.speed)/1e3,{_y:i.startScrollPos},{_y:p,ease:i.ease,onUpdate:function(){t.useAsModal?SR7.F.modal.wrap.scrollTop=o._y:(document.documentElement.scrollTop=o._y,document.body.scrollTop=o._y)},onComplete:function(){s(e,i)}}),i.tween.progress(a)},SR7.F.getSiteMeta=e=>{if(!SR7.E?.backend){if(void 0===SR7.F._siteMetas){SR7.F._siteMetas={home_url:SR7.E?.php?.home_url??window.location.origin,current_page_link:SR7.E?.php?.current_page_link??window.location.href};for(let e of SR7.E?.basicMetas??[])SR7.F._siteMetas[e]??=SR7.E?.php?.[e]}return SR7.F._siteMetas[e]}},SR7.F.recordProviders??={},SR7.F.regRecord=(e,t)=>{SR7.F.recordProviders[e]=t},SR7.F.stageHiders??={},SR7.F.regStageHider=(e,t)=>{SR7.F.stageHiders[e]=t},SR7.F.stageHides=(e,t,s)=>{for(const i in SR7.F.stageHiders)if(!0===SR7.F.stageHiders[i](e,t,s))return!0;return!1},SR7.F.getRecord=(e,t,s)=>{for(let i of(SR7.F.addonOrder??Object.keys)(SR7.F.recordProviders)){const a=SR7.F.recordProviders[i](e,t,s);if(void 0!==a)return a}return e.stream?.[t-1]},SR7.F.listProviders??={},SR7.F.regList=(e,t)=>{SR7.F.listProviders[e]=Object.assign(SR7.F.listProviders[e]??{},t)},SR7.F.getList=(e,t,s,i)=>SR7.F.listProviders[t]?.get(e,s,i),SR7.F.getFeed=(e,t,s="src",a,r,n,o)=>{let l=SR7.F.getSiteMeta(s);if(void 0!==l)return l;let d=e.settings.source.type,c=SR7.F.getRecord(e,t,o);if(null==c)return;0==s.indexOf("event_")&&"event_id"!==s&&(s=(s=s.replace("event_location_","")).replace("event_",""));let p="featured_image_url_"==s.slice(0,19)?_tpt.urlProtocol(c.img_urls[s.replace("featured_image_url_","")]?.url??c.img_urls?.full?.url,!1)??"":("thumb"==s||"image"==s)&&"instagram"==d||"thumb"==s&&"facebook"==d?_tpt.urlProtocol(c.thumb??"","flickr"==d||"youtube"==d):"media"==s||("instagram"==d||"facebook"==d)&&("thumb"==s||"image"==s||"thumbnail"==s)||"image"==s&&"html5"!==d&&"youtube"!==d&&"vimeo"!==d?_tpt.urlProtocol(c.media??"","flickr"==d||"youtube"==d):"image"==s||"thumbnail"==s||"thumb"==s?_tpt.urlProtocol(c.thumb??"","flickr"==d||"youtube"==d):"meta"==s?i(c.meta,a)??"":"title"==s||"instagram"==d&&"content"==s?i(c.title,"title",a,r)??"":"content"==s||"youtube"==d&&"excerpt"==s||"woo"==d&&"excerpt"==s&&""==(c.excerpt??"")?i(c.content,"content",a,r)??"":"excerpt"!=s||"youtube"===d&&void 0===c.excerpt?"description"==s?i(c.description,"description",a,r):"wc_star_rating"==s?(c.wc_star_rating??"").replaceAll("rs-starring","sr-starring"):"catlistr"==s||"catlist_raw"==s||"catlistraw"==s?c.catlistraw??c.catlist_raw??c.catlistr??"":void 0!==c["event_location_"+s]?c["event_location_"+s]:void 0!==c["event_"+s]?c["event_"+s]:void 0!==c[s]?c[s]:"postid"==s||"event_id"==s?c.id??"":"link"==s?c.link??"":"author_name"==s?c.author??c.author_name??"":"author_avatar"==s?c.avatar??c.author_avatar??"":"author_website"==s?c.website??c.author_website??"":"author_postpage"==s?c.postpage??c.author_postpage??"":"date"==s||"date_published"==s?c.publish??"":"date_modified"==s?c.modified??"":"wc_categories"==s?c.catlist??"":"wc_tags"==s?c.taglist??"":"retweet_count"==s?c.retweet??"":"favorite_count"==s?c.favorite??"":"ncomments"==s||"num_comments"==s||"numcomments"==s?c.num_comments??c.numcomments??c.ncomments??"":void 0:i(c.excerpt,"excerpt",a,r)??"";return!1!==p&&null!==p||(p=""),p||""==p?p:n};let i=(e,t,s,i)=>null==s||null==i?e?.[t]??e:e?.[s]?.[i]??e?.[t]??e;SR7.F.getRTLMode=e=>{const t=SR7.M[e]?.settings?.nav?.rtl??"auto";return"on"===t||"off"!==t&&("rtl"===document.documentElement.dir||"rtl"===document.body.dir||"rtl"===getComputedStyle(document.body).direction)},SR7.F.limitMeta=(e,t,s)=>"words"===t?e.split(" ").slice(0,s).join(" "):"chars"===t?e.slice(0,s):e,SR7.F.updateDynamicMetas=(e,t,s,i)=>s&&"string"==typeof s?s.replace(/\{\{([^}]+)\}\}/g,function(s,a){let[r,n,o]=a.split(":"),l=SR7.F.getFeed(SR7.M[e],t,r,n,o,void 0,i);return l&&n&&(l=SR7.F.limitMeta(l,n,o)),!1!==l&&null!==l||(l=""),void 0===l?s:l}):s??"",SR7.F.decorateWooAddToCart=(e,t,s)=>{if(!e||!t)return!1;let i=s;try{i??=new URL(t,window.location.href).searchParams.get("add-to-cart")}catch(e){}return!!i&&(e.classList.add("add_to_cart_button","ajax_add_to_cart"),e.setAttribute("data-product_id",i),e.getAttribute("data-quantity")||e.setAttribute("data-quantity","1"),e.getAttribute("rel")||e.setAttribute("rel","nofollow"),e.setAttribute("role","button"),!0)},SR7.F.wooAjaxAddToCart=(e,t=1,s=0)=>
28{if(!e)return Promise.resolve("left");const i=window.wc_add_to_cart_params,a=i?.wc_ajax_url?.toString?.().replace("%%endpoint%%","add_to_cart"),r=s||e,n=()=>(window.location.href="?add-to-cart="+encodeURIComponent(r),"left");if(!a)return Promise.resolve(n());const o=new URLSearchParams({product_id:String(r),quantity:String(t||1)});return fetch(a,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:o}).then(e=>e.json()).then(e=>{if(!e)return n();if(e.error&&e.product_url)return window.location=e.product_url,"left";if("yes"===i.cart_redirect_after_add)return window.location=i.cart_url,"left";if(window.jQuery)window.jQuery(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,null]);else if(e.fragments)for(let t in e.fragments)_tpt.hop(e.fragments,t)&&document.querySelectorAll(t).forEach(s=>{const i=document.createElement("div");i.innerHTML=e.fragments[t];const a=i.firstElementChild;a&&s.parentNode&&s.parentNode.replaceChild(a,s)});return document.dispatchEvent(new CustomEvent("sr7:wc.added",{detail:{id:r,quantity:t,response:e}})),"added"}).catch(n)},SR7.I18N={lang:void 0,get:e=>(SR7.I18N.lang??=SR7.language??SR7.I18N.detect(e),SR7.language??=SR7.I18N.lang,SR7.I18N.lang),set:e=>{SR7.I18N.lang!==e&&(SR7.I18N.lang=SR7.language=e,_tpt.event?.trigger?.("dom","sr.i18n.language",{lang:e}),SR7.F.text?.refresh?.())},detect:(e=["en"])=>{let t;try{if(t=(document.documentElement?.lang??"").toLowerCase().split("-")[0],t&&e.includes(t))return t}catch(e){}try{const t=document.body?.className?.match(/lang-([a-z]+)/);if(t&&e.includes(t[1]))return t[1]}catch(e){}try{const s=document.cookie.match(/wp-wpml_current_language=([a-zA-Z-]+)/);if(s&&(t=s[1].toLowerCase().split("-")[0],e.includes(t)))return t}catch(e){}try{const t=window.location.pathname.split("/");if(t[1]&&e.includes(t[1].toLowerCase()))return t[1].toLowerCase()}catch(e){}try{if(t=(navigator.language||navigator.userLanguage||"en").toLowerCase().split("-")[0],e.includes(t))return t}catch(e){}return e[0]}},SR7.F.getCurSlideIndDigit=(e,t,s)=>{SR7.E.backend&&(t=parseInt(SR7.editing.slide));let i=SR7.M[e].slideOrder.indexOf(t);-1===i&&(i=SR7.M[e].slideOrder.indexOf(String(t)));var a=void 0!==t&&i+1||SR7.M[e].current.index+1;return s?a:(a<10&&SR7.M[e].len>9?"0":"")+a},SR7.F.getCurSlideTitle=(e,t)=>
28{let s=SR7.F.getCurSlideIndDigit(e,t,!0);return t=void 0!==t?t:SR7.M[e].slideOrder[s-1],SR7.M[e].slides[t]?.slide?.title??"Slide Title"},SR7.F.updateBasicMetas=(e,t,s)=>{if(null!=t){if(SR7.E.backend&&SR7.editor?.elements?.metas?.sets)for(let e of SR7.editor.elements.metas.sets)e.e&&(t.el.innerHTML=t.el.innerHTML.replace(e.v,e.e));return-1!==t.el.innerHTML.indexOf("{{total_slide_count}}")&&(t.el.innerHTML=t.el.innerHTML.replace("{{total_slide_count}}",SR7.M[e].len)),t.el.innerHTML.indexOf("{{slide_index}}")>=0&&(t.el.innerHTML=t.el.innerHTML.replace("{{slide_index}}",SR7.F.getCurSlideIndDigit(e))),t.el.innerHTML.indexOf("{{slide_title}}")>=0&&(SR7.M[e].slides[s].slide.global?(SR7.M[e].metas??={},SR7.M[e].metas.cst??=[],t.el.innerHTML=t.el.innerHTML.replace("{{slide_title}}","<cuslt>aa"+SR7.F.getCurSlideTitle(e,s)+"</cuslt>"),SR7.M[e].metas.cst.push(t.el.getElementsByTagName("CUSLT")[0])):t.el.innerHTML=t.el.innerHTML.replace("{{slide_title}}",SR7.F.getCurSlideTitle(e,s))),t.el.innerHTML.indexOf("{{current_slide_index}}")>=0&&(SR7.M[e].slides[s].slide.global?(SR7.M[e].metas??={},SR7.M[e].metas.csi??=[],t.el.innerHTML=t.el.innerHTML.replace("{{current_slide_index}}","<cusli>"+SR7.F.getCurSlideIndDigit(e)+"</cusli>"),SR7.M[e].metas.csi.push(t.el.getElementsByTagName("CUSLI")[0])):t.el.innerHTML=t.el.innerHTML.replace("{{current_slide_index}}",SR7.F.getCurSlideIndDigit(e,s))),!0}if(void 0!==SR7.M[e].metas&&void 0!==SR7.M[e].metas.csi)for(let t in SR7.M[e].metas.csi)SR7.M[e].metas.csi[t].innerHTML=SR7.F.getCurSlideIndDigit(e);if(void 0!==SR7.M[e].metas&&void 0!==SR7.M[e].metas.cst)for(let t in SR7.M[e].metas.cst)SR7.M[e].metas.cst[t].innerHTML=SR7.F.getCurSlideTitle(e)},_tpt.R??={},_tpt.R.srtools=_tpt.extend?_tpt.extend(_tpt.R.srtools,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={};const e=e=>Array.isArray(e)?e:["#a",e,"#a","#a","#a"];if(void 0!==SR7.D.contentOBJ)return;const t=(e,t)=>Array.isArray(e)?e.map(e=>_tpt.compareURL(t.old,e)?_tpt.pickSrc(t):e):_tpt.compareURL(t.old,e)?_tpt.pickSrc(t):e;SR7.F.regAddon=(e,t={})=>(SR7.A??={},void 0!==SR7.A[e]?SR7.A[e]:(t.prio??=50,SR7.A[e]=t,_tpt.event?.trigger?.("dom","sr.addon.ready",{slug:e}),t)),SR7.F.addonSchema={cast:(e,t)=>{if(null==e||null==t)return e;switch(t){case"bool":return"on"===e||!0===e||1===e||"true"===String(e)||"off"!==e&&!1!==e&&0!==e&&"false"!==String(e)&&e;case"int":return parseInt(e,10);case"float":return parseFloat(e);case"string":return String(e)}return e},apply:(e,t,s={},i)=>{const a=SR7.A?.[e]?.schema?.[t];return null==a?s:SR7.F.addonSchema.applyObj(a,s,i,!0)},applyObj:(e,t,s,i)=>{const a=SR7.F.addonSchema;let r={};for(let n in e){if(!_tpt.hop(e,n)||"_a"==n)continue;const o=e[n],l=Array.isArray(o);let d=t?.[n];for(let e of(l?o[1]:o._a)??[])d??=t?.[e];l?i&&"u"==n&&"compare"==s?r[n]=void 0:(null==d&&(d="object"==typeof o[0]&&null!==o[0]?JSON.parse(JSON.stringify(o[0])):o[0]),r[n]="normalize"==s?a.cast(d,o[2]):d):r[n]=a.applyObj(o,d,s,!1)}return r},isDefault:(e,t,s)=>{const i=SR7.A?.[e]?.schema?.[t];return null!=i&&null!=s&&SR7.F.addonSchema.isDefaultObj(i,s)},isDefaultObj:(e,t)=>{const s=SR7.F.addonSchema;for(let i in t){if(!_tpt.hop(t,i))continue;let a=_tpt.hop(e,i)&&"_a"!=i?i:Object.keys(e).find(t=>"_a"!=t&&((Array.isArray(e[t])?e[t][1]:e[t]._a)??[]).includes(i));if(null==a)return!1;const r=e[a];if(!Array.isArray(r)){if("object"!=typeof t[i]||null==t[i]||!s.isDefaultObj(r,t[i]))return!1;continue}const n=r[2]??("boolean"==typeof r[0]?"bool":"number"==typeof r[0]?"float":void 0),o=s.cast(t[i],n),l=s.cast(r[0],n);if("object"==typeof l?JSON.stringify(o)!==JSON.stringify(l):o!==l)return!1}return!0}},SR7.D.excludeParts=["alias","pers","d","a","orig","ex","type","base","cover"],SR7.D.streamTypes??=["flickr","facebook","instagram","twitter","vimeo","youtube","woo","post"],SR7.D.bgTypes??=["transparent","color","image","video"],SR7.D.BRAD=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],SR7.D.BWID=["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],SR7.D.DL=["Top","Right","Bottom","Left"],SR7.D.DLs=["top","right","bottom","left"],SR7.D.DS=["t","r","b","l"],SR7.D.DA=["bottom","top","left","right","center","middle"],SR7.D.DAIN=["bottomin","topin","leftin","rightin"],SR7.D.linktypes=["link","share_facebook","share_twitter","share_pinterest","share_linkedin","share_tumblr"],SR7.D.spacings=["margin","padding"],SR7.D.devices=["wdesktop","desktop","notebook","tablet","mobile"],SR7.D.olevels={largedesktop:0,desktop:1,notebook:2,tablet:3,mobile:4,nobreak:5},SR7.D.tagLib={text:"SR7-TXT",button:"SR7-BTN",row:"SR7-ROW",column:"SR7-COL",group:"SR7-GRP",shape:"SR7-SHP",custom:"SR7-SHP",image:"SR7-IMG",svg:"SR7-SVG",zone:"SR7-ZONE",linebreak:"SR7-LINEBRK"},SR7.D.dFV={blur:"0px",brightness:"100%",contrast:"100%",saturate:"100%",grayscale:"0%",sepia:"0%",invert:"0%"},SR7.D.dFVC={blur:"b",brightness:"r",contrast:"co",saturate:"sa",grayscale:"g",sepia:"s",invert:"i"},SR7.D.splits=["words","chars","lines"],SR7.D.TLTargets=["words","lines","chars","content","mask","filter","clip","loop","pan","effects"],SR7.D.TLTargetsProcess=["clip","mask","words","lines","chars","content","filter","loop","pan","effects"],SR7.D.animAttr=["x","y","z","opacity","scaleX","scaleY","skewX","skewY","rotate","rotationX","rotationY","rotationZ"],SR7.D.animAttrTrans={x:"x",y:"y",z:"z",opacity:"o",scaleX:"sX",scaleY:"sY",skewX:"skX",skewY:"skY",rotate:"rZ",rotationZ:"rZ",rotationX:"rX",rotationY:"rY"},SR7.D.subsets={"cyrillic-ext":{start:1120,end:1327},cyrillic:{start:1024,end:1279},"greek-ext":{start:7936,end:8191},greek:{start:880,end:1023},vietnamese:{start:258,end:423},"latin-ext":{start:256,end:591},latin:{start:0,end:255}},SR7.D.modulStreamOBJ={post:{excerptLimit:55,maxPosts:30,fetchType:"cat_tag",category:"",sortBy:"ID",types:"post",list:"",sortDirection:"DESC",subType:"post"},woo:{excerptLimit:55,maxProducts:30,featuredOnly:!1,inStockOnly:!1,category:"",sortBy:"ID",types:"product",sortDirection:"DESC",regPriceFrom:"",regPriceTo:"",salePriceFrom:"",salePriceTo:""},instagram:{count:8,hashTag:"",transient:1200,type:"user",userId:"",token_source:"account",connect_with:""},facebook:{album:"",appId:"",appSecret:"",count:8,transient:1200,typeSource:"timeline",token_source:"account",connect_with:"",page_id:""},flickr:{apiKey:"",count:8,galleryURL:"",groupURL:"",photoSet:"",transient:1200,type:"publicphotos",userURL:""},twitter:{accessSecret:"",accessToken:"",consumerKey:"",consumerSecret:"",count:8,excludeReplies:!1,imageOnly:!1,includeRetweets:!1,transient:1200,userId:""},vimeo:{albumId:"",channelName:"",count:8,transient:1200,groupName:"",typeSource:"user",userName:""},youtube:{api:"",channelId:"",count:8,playList:"",transient:1200,typeSource:"channel"}},SR7.D.fixSR6IDs=(e,t)=>{if(!SR7.E.v6v7ids)return e;return t?SR7.E.v6v7ids?.s?.[parseInt(e)||9999999]??e:SR7.E.v6v7ids?.n?.[parseInt(e)||9999999]??e}
28,SR7.D.contentOBJ=function(e,t){t=null==t?"color"===e?"#ffffff":{}:t,"image"===e&&Array.isArray(t.src)&&(t.srcs??=t.src,t.src=t.src.find(e=>""!==e&&"#a"!==e&&null!=e)??""),void 0!==t.sizeVal&&(t.size="percentage"==t.size?parseInt(t.sizeVal)+"%":"px"==t.size||"pixel"==t.size?parseInt(t.sizeVal)+"px":t.size);var s="image"===e?{u:t.u??(""!==(t.src??"")||!0===t.fromStream),ratio:t.ratio??1,src:t.src??"",...Array.isArray(t.srcs)?{srcs:t.srcs}:{},lib:t.lib??"",lib_id:t.lib_id??"",lib_size:t.lib_size??"full",fromStream:t.fromStream??!1,streamType:t.streamType??"gallery",pos:{x:t.pos?.x??"50%",y:t.pos?.y??"50%"},rx:null==t.rx?"repeat"==t.repeat||"repeat-x"==t.repeat:t.rx,ry:null==t.ry?"repeat"==t.repeat||"repeat-y"==t.repeat:t.ry,size:t.size??"cover",seo:t.seo??!1}:"color"===e?t:"text"===e?{text:t.text??"",ph:t.ph??"",deco:t.deco??"none",trans:t.trans??"none"}:"svg"===e?{oC:t.oC??!1,color:null==t.color?"#fff":Array.isArray(t.color)?t.color[1]:t.color,all:t.all??!1,image:{u:t.image?.u??!1,src:t.image?.src??"",pos:{x:t.image?.pos?.x??"50%",y:t.image?.pos?.y??"50%"},size:t.image?.size??"cover"},stroke:{c:t.stroke?.c??"transparent",d:t.stroke?.d??0,o:t.stroke?.o??0,w:t.stroke?.w??0},src:t.src??""}:"video"===e||"audio"===e?{src:t.src??"",crossOrigin:t.crossOrigin??!1,controls:t.controls??("audio"===e?"none":"xl"),autoPlay:t.autoPlay??!0,pauseOnSwap:t.pauseOnSwap??!1,pauseTimer:t.pauseTimer??!0,start:t.start??"00:00",end:t.end??"00:00",nextSlide:t.nextSlide??!0,stopAllMedia:t.stopAllMedia??!0,loop:t.loop??!0,preload:t.preload??"auto",preloadWait:t.preloadWait??"0",rewind:t.rewind??!0,volume:t.volume??"100"}:{};return"video"===e&&(s=_tpt.extend(s,{poster:{src:t.poster?.src??"",lib:t.poster?.lib??"",lib_id:t.poster?.lib_id??"",lib_size:t.poster?.lib_size??"",size:t.poster?.size??"cover",fromStream:t.poster?.fromStream??!1,showOnPause:t.poster?.showOnPause??!1,insteadVideo:t.poster?.insteadVideo??!1,noOnMobile:t.poster?.noOnMobile??!1},pauseOnSwap:t.pauseOnSwap??!1,afterTransition:t.afterTransition??!1,fromStream:t.fromStream??!1,streamType:t.streamType??"gallery",type:t.type??"html5",cover:t.cover??!0,noInteract:t.noInteract??!1,aFullScreen:t.aFullScreen??!0,args:t.args??"",fullWidth:t.fullWidth??!1,mute:t.mute??!0,ratio:t.ratio??"16:9",inline:t.inline??!0,animDur:t.animDur??500,speed:t.speed??1,cOC:t.cOC??!1}),SR7.E.backend&&(s._cacheVimeo=t._cacheVimeo??"",s._cacheHTML5=t._cacheHTML5??"",s._cacheYT=t._cacheYT??"")),!s.pos||"0%"===s.pos.x&&"50%"===s.pos.x&&"100%"===s.pos.x&&"0%"===s.pos.y&&"50%"===s.pos.y&&"100%"===s.pos.y||(s.pos.c=!0),"audio"===e&&"xl"==s.controls&&(s.controls="none"),s},SR7.D.convertBGPosObj=function(e,t="50%",s="50%"){var i={x:"50%",y:"50%"};if(null==e)return i;if("percentage"==e)return{x:parseInt(t)+"%",y:parseInt(s)+"%"};var a=(""+e).split(" ");return"center"==a[0]&&"center"==a[1]||("left"==a[0]&&(i.x="0%"),"right"==a[0]&&(i.x="100%"),"top"==a[1]&&(i.y="0%"),"bottom"==a[1]&&(i.y="100%")),i},SR7.D.carouselSettings=e=>{if(void 0===e)return{};let t=e?.showAllLayers??"false";return t="true"==String(t)?"all":t,{type:e.type??e.orientation??"h",align:e.align??("h"===(e.orientation??"h")?e.horizontal??"center":e.vertical??"center"),maxV:Math.max("3d"==e.spin?3:1,e.maxV??e.maxItems??3),justify:e.justify??!1,scale:e.scale??!1,minS:e.minS??e.scaleDown??50,vScale:e.vScale??e.varyScale??!1,oScale:e.oScale??e.offsetScale??!1,space:e.space??0,advtrans:e.advtrans??!1,rotation:e.rotation??!1,maxR:e.maxR??e.maxRotation??0,varR:e.varR??e.varyRotate??!1,opacity:e.opacity??e.fadeOut??!0,maxO:e.maxO??e.maxOpacity??100,varO:e.varO??e.varyFade??!1,spin:e.spin??"off",spinA:parseInt(e.spinA??e.spinAngle??0),snap:e.snap??!0,infinity:e.infinity??!1,aDir:e.aDir??"default",skewX:e.skewX??0,skewY:e.skewY??0,ease:e.ease??"power3.inOut",dur:e.dur??e.speed??800,overshoot:e.overshoot??!1,stretch:e?.stretch??!1,stretchV:e?.stretchV??!0,showAllLayers:t,jMWidth:e.jMWidth||(e?.justifyMaxWidth??!1),bR:e.bR??e?.borderRadius??0,pNV:e.pNV??e?.prevNextVis??"50px",pT:e.pT??e?.paddingTop??0,pB:e.pB??e?.paddingBottom??0,bShdw:e.bShdw??{use:!1,h:0,v:0,blur:0,spread:0,color:"rgba(0,0,0,0.5)"}}},SR7.D.moduleObj=function(e,s={},i){var a=SR7?.M?.[e]?.migrate?SR7?.migrate?.moduleObj?.(s)??{}:s;let r=","==(a.size?.fullHeightOffset??"")?"":a.size?.fullHeightOffset??"",n=a.size?.minHeight??[0,0,0,0,0],o=a.size?.maxHeight??[0,0,0,0,0],l=a.size?.maxWidth??!1;for(let e=0;e<5;e++)n[e]=parseInt(n[e])||0,o[e]=parseInt(o[e])||0;if(l=!isNaN(l)&&"none"!=l&&l,a?.size?.width&&a?.size?.height){a.uSize??=[!1,
28!0,!1,!1,!(!a.ojsv&&void 0===s?.size?.custom)&&(s?.size?.custom?.m??!0)];for(let e=0;e<5;e++)null==a.size.width[e]&&null==a.size.height[e]&&(a.uSize[e]=!1),a.size.width[e]??=null==a.size.width[e]?[1600,1240,1024,778,480][e]:a.size.width[e]??[1600,1240,1024,778,480][e],a.size.height[e]??=null==a.size.height[e]?"#a":a.size.height[e]??"#a";for(let e of["width","height"])a.size[e].some((e,t)=>a.uSize[t]&&Number.isFinite(parseFloat(e)))||(a.size[e][1]="width"==e?1240:900,a.uSize[1]=!0)}let d=String(a.size?.overflow??"false");d="true"==d||"forceTrue"==d||1==d?"true":"false";const c="top"===a.sticky||"bottom"===a.sticky?a.sticky:!0===a.fixed||"top"===a.fixed?"top":"none";a.vPort=Array.isArray(a.vPort)?a.vPort[0]:a.vPort??"-100px";var p={bulkPaths:a.bulkPaths??[],version:a.version,ojsv:a.ojsv,eVis:a.eVis??!1,eVisSlide:a.eVisSlide??"",id:a.id??"",migrated:a.migrated??!1,addOns:a.addOns??{},brand:a.brand,watermark:a.watermark,uSize:a.uSize??[!1,!0,!1,!1,!0],level:a.level??4,title:a.title??"",alias:a.alias??"",dbid:a.dbid??"",deepLinks:a.deepLinks,type:a.type??"standard",fonts:a.fonts??{},prem:a.prem??!1,qg:a.qg??!1,class:a.class??"",wClass:a.wClass??"",fixed:"top"===c,sticky:c,mobileURLJumpFix:a.mobileURLJumpFix??!0,wpml:a.wpml??!1,lazyLoad:a.lazyLoad??"none",uS:a.uS??!1,vPort:a.vPort??"-100px",acc:{use:a.acc?.use??!0,live:a.acc?.live??!1},fs:{as:a.fs?.as??!1,a:a.fs?.a??void 0},source:{type:a.source?.type??"gallery"},imgs:a.imgs??[],hasYT:a.hasYT??!1,size:{fullWidth:a.size?.fullWidth??!0,fullHeight:a.size?.fullHeight??!1,FHOU:a.size?.FHOU??(null==a.ojsv&&""!=r),fullHeightOffset:r,contentFH:a.size?.contentFH??!1,width:a.size?.width??[1600,1240,1024,778,480],height:a.size?.height??["#a",900,"#a","#a","#a"],cachedHeight:a.size?.cachedHeight??["#a",900,"#a","#a","#a"],MPOU:a.size?.MPOU??(null==a.ojsv&&("none"!==c||"false"!==d)),MMOU:a.size?.MMOU??(null==a.ojsv&&!(n==[0,0,0,0,0]&&o==[0,0,0,0,0]&&!l)),minHeight:n,maxHeight:o,maxWidth:l,upscaling:a.size?.upscaling??!1,respectRatio:a.size?.respectRatio??!1,keepBPHeight:a.size?.keepBPHeight??!1,keepFlow:a.size?.keepFlow??!1,overflow:d,stickyReserve:a.size?.stickyReserve??!1},snap:{adjust:a.snap?.adjust??"none",snap:a.snap?.snap??!1,helpLines:a.snap?.helpLines??!1,gap:a.snap?.gap??20},default:{LROU:a.default?.LROU??(null==a.ojsv&&!(a.default?.fluid?.tx&&a.default?.fluid?.tr&&!a.default?.fluid?.sp&&a.default?.fluid?.po)),fluid:{tx:a.default?.fluid?.tx??!0,tr:a.default?.fluid?.tr??!0,sp:a.default?.fluid?.sp??!1,po:a.default?.fluid?.po??a.default?.fluid?.sp??!0,alien:a.default?.fluid?.alien??!0},len:a.default?.len??9e3},codes:{css:a.codes?.css??"",js:a.codes?.js??""},carousel:SR7.D.carouselSettings(a.carousel),pLoader:{color:a.pLoader?.color??"#ffffff",type:a.pLoader?.type??"off"},slideshow:{naios:a.slideshow?.auto??!1,auto:a.slideshow?.auto??(SR7.E.backend?"notset":null==i||i>2),sOH:a.slideshow?.sOH??!1,pzOH:a.slideshow?.pzOH??!1,loop:a.slideshow?.loop??-1,stopAt:a.slideshow?.stopAt??-1,shuffle:a.slideshow?.shuffle??!1,initDelay:a.slideshow?.initDelay??0,waitApi:a.slideshow?.w
28aitApi??!1,firstSlide:a.slideshow?.firstSlide??"auto"},general:{D3OU:a.general?.D3OU??(null==a.ojsv&&!(!a.general?.perspective&&!a.general?.perspectiveType)),icache:a.general?.icache??"default",dpr:a.general?.dpr??"dpr",observeWrap:a.general?.observeWrap??!1,disableOnMobile:a.general?.disableOnMobile??!1,autoPlayVideoMobile:a.general?.autoPlayVideoMobile??!0,panDevices:a.general?.panDevices??(_tpt.tf(a.general?.disablePanMobile??!1)||_tpt.tf(a.general?.disablePanZoomMobile??!1)?"nomobile":""),perspective:a.general?.perspective??600,perspectiveType:a.general?.perspectiveType??"global",outputFilter:a.general?.outputFilter??"none"},browser:{nextOnFocus:a.browser?.nextOnFocus??!1,noFocusListener:a.browser?.noFocusListener??!1,freezeOnBlur:a.browser?.freezeOnBlur??!1,mISB:a.browser?.mISB??!1,useURLDeeplink:a.browser?.useURLDeeplink??!1},thumb:a.thumb,modal:{bC:a.modal?.bC??"",h:a.modal?.h??"center",v:a.modal?.v??"middle",cover:a.modal?.cover??!0,pS:a.modal?.pS??!1,bg:a.modal?.bg??"rgba(0,0,0,0.5)",sp:a.modal?.sp??1e3},shdw:a.shdw??!1,bg:{color:a.bg?.color??"transparent",image:SR7.D.contentOBJ("image",a.bg?.image??{})},mod:{use:a.mod?.use??!1,mouse:!(a.ojsv||!a.mod?.d3)||(a.mod?.mouse??("mouse"==a.mod?.t||"mousescroll"==a.mod?.t||"mousedrag"==a.mod?.t)),scroll:a.mod?.scroll??!((a?.ojsv||!a?.mod?.use)&&"scroll"!=a.mod?.t&&"mousescroll"!=a.mod?.t),drag:a.mod?.drag??"mousedrag"===a.mod?.t,dOM:a.mod?.dOM??!1,d3:a.mod?.d3??!1,d3z:a.mod?.d3z??65,d3d:a.mod?.d3d??15,d3s:a.mod?.d3s??3,d3e:a.mod?.d3e??"power3.out",om:a.mod?.om??1,sm:a.mod?.sm??1,dir:a.mod?.dir??"same"},rOFV:a.mod?.rOFV??!0,nav:{rtl:a.nav?.rtl??"auto",acc:{hidden:a.nav?.acc?.hidden??!1,pressed:a.nav?.acc?.pressed??"unset",next:a.nav?.acc?.next??"Next Slide",prev:a.nav?.acc?.prev??"Previous Slide",tab:a.nav?.acc?.tab??"Tab",thumb:a.nav?.acc?.thumb??"Thumbnail",bullet:a.nav?.acc?.bullet??"Bullet"},nd:a.nav?.nd??1e3,m:{use:a.nav?.m?.use??"off",r:a.nav?.m?.r??"default",t:a.nav?.m?.t??"html",st:a.nav?.m?.st??50,v:a.nav?.m?.v??50,cd:a.nav?.m?.cd??1500},s:{use:a.nav?.s?.use??!1,desk:a.nav?.s?.desk??!1,mobC:a.nav?.s?.mobC??!0,deskC:a.nav?.s?.deskC??!0,bV:a.nav?.s?.bV??!1,d:a.nav?.s?.d??"horizontal",t:a.nav?.s?.t??1},k:{use:a.nav?.k?.use??"off"},p:{w:a.nav?.p?.w??300,h:a.nav?.p?.h??200}}};p.size?.width&&(p.size.width=p.size.width.map((e,t)=>Number.isFinite(e)?e:"string"!=typeof e||"#a"!==e&&isNaN(parseInt(e))?[1600,1240,1024,778,480][t]??480:"#a"===e?e:parseInt(e))),p.size?.height&&(p.size.height=p.size.height.map(e=>Number.isFinite(e)||_tpt.vpHUnit(e)?e:"string"!=typeof e||"#a"!==e&&isNaN(parseInt(e))?"#a":"#a"===e?e:parseInt(e))),"#a"==p?.size?.height?.[1]&&(p.size.height[1]=900),!SR7.E.backend&&p.mod&&(p.mod.use=p.mod.mouse||p.mod.scroll||p.mod.d3||p.mod.drag),""!==p.bg.image.src&&"false"!==String(p.bg.image.u)&&(p.bg.image.u=!0),(SR7.E.backend||a.nav?.arrows?.set)&&(p.nav??={},p.nav.arrows??={set:a.nav?.arrows?.set??!1,def:a.nav?.arrows?.def??void 0,cst:a.nav?.arrows?.cst??void 0,key:a.nav?.arrows?.key??"",t:a.nav?.arrows?.t??1e3,m:a.nav?.arrows?.m??"hslide",css:a.nav?.arrows?.css??"",html:a.nav?.arrows?.html??"",ps:a.nav?.arrows?.ps??"default",on:a.nav?.arrows?.on??!0,step:Math.max(1,parseInt(a.nav?.arrows?.step??1)||1),s:parseInt(a.nav?.arrows?.s??1e3),dIn:a.nav?.arrows?.dIn??["#a",1e3,"#a","#a","#a"],dOut:a.nav?.arrows?.dOut??["#a",1200,"#a","#a","#a"],show:a.nav?.arrows?.show??[!0,!0,!0,!0,!0],l:{a:a.nav?.arrows?.l?.a??"slider",anim:a.nav?.arrows?.l?.anim??"fade",x:a.nav?.arrows?.l?.x??["#a",0,"#a","#a","#a"],y:a.nav?.arrows?.l?.y??["#a",0,"#a","#a","#a"],v:a.nav?.arrows?.l?.v??["#a","center","#a","#a","#a"],h:a.nav?.arrows?.l?.h??["#a","left","#a","#a","#a"]},r:{a:a.nav?.arrows?.r?.a??"slider",anim:a.nav?.arrows?.r?.anim??"fade",x:a.nav?.arrows?.r?.x??["#a",0,"#a","#a","#a"],y:a.nav?.arrows?.r?.y??["#a",0,"#a","#a","#a"],v:a.nav?.arrows?.r?.v??["#a","center","#a","#a","#a"],h:a.nav?.arrows?.r?.h??["#a","right","#a","#a","#a"]}},p.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0),(SR7.E.backend||a.nav?.bullets?.set)&&(p.nav??={},p.nav.bullets={set:a.nav?.bullets?.set??!1,def:a.nav?.bullets?.def??void 0,cst:a.nav?.bullets?.cst??void 0,key:a.nav?.bullets?.key??"",t:a.nav?.bullets?.t??3e3,css:a.nav?.bullets?.css??"",html:a.nav?.bullets?.html??"",on:a.nav?.bullets?.on??!0,d:a.nav?.bullets?.d??"horizontal",ps:a.nav?.bullets?.ps??"default",s:parseInt(a.nav?.bullets?.s??1e3),dIn:a.nav?.bullets?.dIn??["#a",1e3,"#a","#a","#a"],dOut:a.nav?.bullets?.dOut??["#a",1200,"#a","#a","#a"],show:a.nav?.bullets?.show??[!0,!0,!0,!0,!0],g:a.nav?.bullets?.g??5,a:a.nav?.bullets?.a??"slider",anim:a.nav?.bullets?.anim??"fade",x:a.nav?.bullets?.x??["#a",0,"#a","#a","#a"],y:a.nav?.bullets?.y??["#a",0,"#a","#a","#a"],v:a.nav?.bullets?.v??["#a","bottom","#a","#a","#a"],h:a.nav?.bullets?.h??["#a","center","#a","#a","#a"]},p.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0),(SR7.E.backend||a.nav?.scrubber?.set)&&(p.nav??={},p.nav.scrubber={set:a.nav?.scrubber?.set??!1,def:a.nav?.scrubber?.def??void 0,cst:a.nav?.scrubber?.cst??void 0,key:a.nav?.scrubber?.key??"",t:a.nav?.scrubber?.t??5e3,css:a.nav?.scrubber?.css??"",html:a.nav?.scrubber?.html??"",on:a.nav?.scrubber?.on??!0,d:a.nav?.scrubber?.d??"horizontal",ps:a.nav?.arrows?.ps??"default",s:parseInt(a.nav?.scrubber?.s??1e3),dIn:a.nav?.scrubber?.dIn??["#a",1e3,"#a","#a","#a"],dOut:a.nav?.scrubber?.dOut??["#a",1200,"#a","#a","#a"],ddim:a.nav?.scrubber?.ddim??{w:100,h:50},show:a.nav?.scrubber?.show??[!0,!0,!0,!0,!0],g:a.nav?.scrubber?.g??5,m:a.nav?.scrubber?.m??["#a",5,"#a","#a","#a"],a:a.nav?.scrubber?.a??"slider",anim:a.nav?.scrubber?.anim??"fade",x:a.nav?.scrubber?.x??["#a",0,"#a","#a","#a"],y:a.nav?.scrubber?.y??["#a",0,"#a","#a","#a"],v:a.nav?.scrubber?.v??["#a","bottom","#a","#a","#a"],h:a.nav?.scrubber?.h??["#a","center","#a","#a","#a"],io:a.nav?.scrubber?.io??"i",size:{w:a.nav?.scrubber?.size?.w??["#a",100,"#a","#a","#a"],h:a.nav?.scrubber?.size?.h??["#a",50,"#a","#a","#a"]},wr:{c:a.nav?.scrubber?.wr?.c??"transparent",p:a.nav?.scrubber?.wr?.p??["#a",5,"#a","#a","#a"],s:a.nav?.scrubber?.wr?.s??!1,mx:a.nav?.scrubber?.wr?.mx??["#a",0,"#a","#a","#a"],my:a.nav?.scrubber?.wr?.my??["#a",0,"#a","#a","#a"]}
28,ts:parseFloat(a.nav?.scrubber?.ts??100),hs:parseFloat(a.nav?.scrubber?.hs??100),ho:a.nav?.scrubber?.ho??!1,tn:a.nav?.scrubber?.tn??!0,hp:a.nav?.scrubber?.hp??!1,pa:a.nav?.scrubber?.pa??"left",sc:parseFloat(a.nav?.scrubber?.sc??100),f:a.nav?.scrubber?.f??!0,asc:a.nav?.scrubber?.asc??!1,tr:parseInt(a.nav?.scrubber?.tr??0),sp:a.nav?.scrubber?.sp??!1,ha:a.nav?.scrubber?.ha??!0,tp:a.nav?.scrubber?.tp??"dots",ms:parseFloat(a.nav?.scrubber?.ms??60),to:parseFloat(a.nav?.scrubber?.to??0),sk:parseFloat(a.nav?.scrubber?.sk??0),cor:a.nav?.scrubber?.cor??!1},p.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0);for(let e of["thumbs","tabs"])(SR7.E.backend||a.nav?.[e]?.set)&&(p.nav??={},p.nav[e]={set:a.nav?.[e]?.set??!1,def:a.nav?.[e]?.def??void 0,cst:a.nav?.[e]?.cst??void 0,key:a.nav?.[e]?.key??"",t:a.nav?.[e]?.t??("tabs"==e?4e3:2e3),css:a.nav?.[e]?.css??"",html:a.nav?.[e]?.html??"",on:a.nav?.[e]?.on??!0,d:a.nav?.[e]?.d??"horizontal",ps:a.nav?.arrows?.ps??"default",s:parseInt(a.nav?.[e]?.s??1e3),dIn:a.nav?.[e]?.dIn??["#a",1e3,"#a","#a","#a"],dOut:a.nav?.[e]?.dOut??["#a",1200,"#a","#a","#a"],ddim:a.nav?.[e]?.ddim??{w:100,h:50},io:a.nav?.[e]?.io??"i",show:a.nav?.[e]?.show??[!0,!0,!0,!0,!0],g:a.nav?.[e]?.g??5,a:a.nav?.[e]?.a??"slider",anim:a.nav?.[e]?.anim??"fade",x:a.nav?.[e]?.x??["#a",0,"#a","#a","#a"],y:a.nav?.[e]?.y??["#a",0,"#a","#a","#a"],v:a.nav?.[e]?.v??["#a","bottom","#a","#a","#a"],h:a.nav?.[e]?.h??["#a","center","#a","#a","#a"],m:a.nav?.[e]?.m??["#a",5,"#a","#a","#a"],size:{w:a.nav?.[e]?.size?.w??["#a",100,"#a","#a","#a"],h:a.nav?.[e]?.size?.h??["#a",50,"#a","#a","#a"],nw:a.nav?.[e]?.size?.nw??100,nh:a.nav?.[e]?.size?.nh??50,mw:a.nav?.[e]?.size?.mw??50,t:a.nav?.[e]?.size?.t??"0"},wr:{c:a.nav?.[e]?.wr?.c??"transparent",p:a.nav?.[e]?.wr?.p??["#a",5,"#a","#a","#a"],s:a.nav?.[e]?.wr?.s??!1,mx:a.nav?.[e]?.wr?.mx??["#a",0,"#a","#a","#a"],my:a.nav?.[e]?.wr?.my??["#a",0,"#a","#a","#a"]}},p.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0);(SR7.E.backend||"story"===a.type||a.sbt?.use)&&(p.sbt={use:"story"===a.type||(a.sbt?.use??!1),a:a.sbt?.a??"travel",f:a.sbt?.f??!1,fStart:parseInt(a.sbt?.fStart??2e3),fEnd:parseInt(a.sbt?.fEnd??4e3),layers:a.sbt?.layers??!1,e:a.sbt?.e??"none",s:(a.sbt?.s??500)*(null==a.ojsv&&(a.sbt?.s??500)<50?1e3:1),pull:a.sbt?.pull??!1,nL:a.sbt?.nL??!1,ow:a.sbt?.ow??!1,smooth:a.sbt?.smooth??("story"===a.type&&!window._tpt?.isAppleDevice),smoothAmt:a.sbt?.smoothAmt??.12,pace:parseFloat(a.sbt?.pace??1)||1,paceM:parseFloat(a.sbt?.paceM??1)||1,sm:Math.min(100,Math.max(0,parseInt(a.sbt?.sm??50))),intro:Math.max(0,parseInt(a.sbt?.intro??0)||0),introHold:a.sbt?.introHold??!0,fitH:a.sbt?.fitH??!0,catch:a.sbt?.catch??400}),(SR7.E.backend||a.pbar?.set)&&(p.pbar={set:a.pbar?.set??!1,a:a.pbar?.a??"slider",t:a.pbar?.t??"horizontal",s:a.pbar?.s??"5px",r:a.pbar?.r??10,v:a.pbar?.v??"bottom",h:a.pbar?.h??"left",x:a.pbar?.x??0,y:a.pbar?.y??0,c:a.pbar?.c??"rgba(255,255,255,0.5)",bg:a.pbar?.bg??"transparent",base:a.pbar?.base??"slide",g:a.pbar?.g??!1,gs:a.pbar?.gs??0,gc:a.pbar?.gc??"rgba(255,255,255,0.5)",rev:a.pbar?.rev??"reset",vis:a.pbar?.vis??[!0,!0,!0,!0,!0],elive:a.pbar?.elive??SR7.E.backend??!1}),(SR7.E.backend||"none"!==(a.bg?.overlay?.type??"none"))&&(p.bg.overlay={type:a.bg?.overlay?.type??"none",size:a.bg?.overlay?.size??1,cA:a.bg?.overlay?.cA??"transparent",cB:a.bg?.overlay?.cB??"#000000",bf:a.bg?.overlay?.bf??0,w:a.bg?.overlay?.w??50,d:a.bg?.overlay?.d??"v",a:a.bg?.overlay?.a??"none",ad:a.bg?.overlay?.ad??20,ax:a.bg?.overlay?.ax??"l",top:_tpt.tf(a.bg?.overlay?.top??!1)}),("none"!==(a.bg?.mesh?.k??"none")||(a.bg?.mesh?.gr??0)>0||"none"!==(a.bg?.mot?.a??"none")||"none"!==(a.bg?.overlay?.type??"none"))&&(SR7.R??={},SR7.R.bgpattern=!0),(SR7.E.backend||"none"!==(a.bg?.mesh?.k??"none")||(a.bg?.mesh?.gr??0)>0)&&(p.bg.mesh={k:a.bg?.mesh?.k??"none",ch:a.bg?.mesh?.ch??0,gr:a.bg?.mesh?.gr??0}),(SR7.E.backend||"none"!==(a.bg?.mot?.a??"none"))&&(p.bg.mot={a:a.bg?.mot?.a??"none",ad:a.bg?.mot?.ad??20,ax:a.bg?.mot?.ax??"l"});let u=!1;for(var h=0;h<5;h++)for(var g of["t","b","l","r"])for(var m of["p","m"])(SR7.E.backend||a.size?.[m]?.[g]?.[h])&&(p.size[m]??={})&&(p.size[m][g]??=Array(5))&&(p.size[m][g][h]??=parseInt(a.size?.[m]?.[g]?.[h]??0)),!SR7.E.backend&&a.size?.[m]?.[g]?.[h]&&(p.size[m]??={})&&(p.size[m][g]??=Array(5))&&(p.size[m][g][h]=parseInt(a?.size?.[m]?.[g]?.[h]??0)),u=u||"0"!==String(p.size?.[m]?.[g]?.[h]??0);if(p.size.MSOU=a.size?.MSOU??(null==a.ojsv&&u),SR7.M[e]?.imgList)for(let s in SR7.M[e].imgList){if(!_tpt.hop(SR7.M[e].imgList,s))continue;const i=SR7.M[e].imgList[s];
28p.bg?.image&&(p.bg.image.src=t(p.bg.image.src,i)),p.bg?.image?.srcs&&(p.bg.image.srcs=t(p.bg.image.srcs,i))}for(var f in a.source??={},SR7.D.streamTypes)void 0===a.source[SR7.D.streamTypes[f]]&&p.source.type!=SR7.D.streamTypes[f]||(p.source[SR7.D.streamTypes[f]]=_tpt.extend(SR7.D.modulStreamOBJ[SR7.D.streamTypes[f]],a.source[SR7.D.streamTypes[f]]));return p},SR7.D.hasActionLike=(e,t,s,i,a="a")=>{if(!SR7.M[e].slides[t].slide?.actions)return!1;const r=String(s),n=SR7.M[e].slides[t].slide?.actions.filter(e=>e.src?.some?.(e=>String(e)===r)&&e[a]==i);return n.length>0&&n[0]},SR7.D.slideObj=function(e,t,s){var i=SR7.M[e].migrate?SR7.migrate.slideObj(t):t??{};Array.isArray(i.addOns)&&(i.addOns=i.addOns.length>0?Object.fromEntries(i.addOns):{});var a=i.global?{ojsv:i.ojsv,asmig:i.asmig??!!i.ojsv,addOns:i.addOns??{},brand:i.brand,id:parseInt(i.id),title:i.title??"",parentId:i.parentID??i.parentId??null,language:i.language??"default",oflow:i.oflow??!1,global:!0,respVP:i.respVP??!0,pos:i.pos??"front",actions:i.actions??[],fullHeight:i.fullHeight??!1,imgs:i.imgs}:{ojsv:i.ojsv,asmig:i.asmig??!!i.ojsv,addOns:i.addOns??{},brand:i.brand,imgs:i.imgs,id:i.id,actions:i.actions??[],title:i.title??"",parentId:i.parentId??null,language:i.language??"default",order:i.order??s,thumb:{src:i.thumb?.src??"",srcId:i.thumb?.srcId??"",admin:i.thumb?.admin??"",adminId:i.thumb?.adminId??"",dimension:i.thumb?.dimension??"orig",default:i.thumb?.default??void 0},acc:{label:i.acc?.label??"auto",hidden:i.acc?.hidden??"auto",live:i.acc?.live??"auto",role:i.acc?.role??"group",roledep:i.acc?.roledep??"slide"},description:i.description??"",attr:{id:i.attr?.id??"",class:i.attr?.class??"",data:i.attr?.data??"",deepLink:i.attr?.deepLink??"",attr:i.attr?.attr??"",a:i.attr?.a??"",aO:i.attr?.aO??"",t:i.attr?.t??"",tO:i.attr?.tO??""},publish:{from:i.publish?.from??"",to:i.publish?.to??"",days:i.publish?.days??"",state:""==(i.publish?.state??"")?"published":i.publish?.state,sch:i.publish?.sch??!1},slideshow:{stop:i.slideshow?.stop??!1,len:i.slideshow?.len??"default",hal:i.slideshow?.hal??0,hom:i.slideshow?.hom??!1,hfn:i.slideshow?.hfn??!1},loop:{u:i.loop?.u??!1,r:i.loop?.r??-1,s:i.loop?.s??0,e:i.loop?.e??99999},states:{in:i.states?.in??[],out:i.states?.out??[]}};if(i.scenes=i.scenes?{...i.scenes}:{},a.scenes=i.scenes??(SR7.backend?{}:void 0),a.actions)try{for(let e in a.actions)_tpt.hop(a.actions,e)&&"callback"==a.actions[e]?.a&&Array.isArray(a.actions[e]?.target)&&(a.actions[e].target=a.actions[e].target[0])}catch(e){console.log("Error fixing Callback Targets during Migration",e)}if(i.nav){a.nav??={};for(let e of["tabs","thumbs","arrows","bullets"])(i.nav?.[e]||i.nav?.[e])&&(a.nav[e]=i.nav?.[e])}let r=SR7.E.backend;if(r||void 0!==i.params)for(var n in i.params)r=r||""!==i.params[n].v;return r&&(a.params=SR7.D.slideInfoParams(i.params)),{slide:a}},SR7.D.slideInfoParams=function(e){for(var t={},s=0;s<10;s++)""!==(e?.[s]?.v??"")&&(t[s]=void 0!==e&&void 0!==e[s]?{v:e[s].v??"",l:e[s].l??10}:{v:"",l:10});return t},SR7.D.slideTimelineObject=function(e){return{name:e?.name??"",repeat:e?.repeat??0,length:e?.length??0,triggeredBy:e?.triggeredBy??"",triggeredParam:e?.triggeredParam??""}};SR7.D.layerObjects=function(e){let t,{dLEN:s,id:i,slide:a,sid:r,msource:n,snow:o}=e,l={m:0,top:-1,middle:-1,bottom:-1},d=0,c=SR7.M[i]?.migrate&&SR7?.migrate?SR7.migrate.layerListUpdate({layers:a.layers,isStatic:a.global,snow:o,params:a.params,newIDs:l,msource:n,sid:r}):{},p={top:!1,middle:!1,bottom:!1};for(t in a.layers)if(_tpt.hop(a.layers,t)){if(c[l[t]||t]=SR7.D.layerObject({dLEN:s,id:i,obj:a.layers[t],layertype:null,newIDs:l,sid:r,msource:n,global:a.global}),!SR7.E.backend)continue;if(d=Math.max(d,c[l[t]||t].id),/*!slide.global && */"zone"===c[t].subtype){let e=c[t].pos.v[0];"mid"==e&&(e="middle",c[t].pos.v=["middle","middle","middle","middle","middle"],c[t].pos.pos="absolute"),p[e]=c[t].zIndex}}if(SR7.E.backend)for(let e in p)_tpt.hop(p,e)&&!p[e]&&(c[++d]=SR7.D.layerObject({dLEN:s,id:i,obj:{alias:e.toUpperCase()+" ROWS",type:"container",pos:{v:[e,e,e,e,e]},subtype:"zone",rTo:"slide",id:d,order:"top"==e?100:"middle"==e?!1!==p.bottom?parseInt(p.bottom+1)||0:4:!1!==p.middle&&parseInt(p.middle-1)||3,zIndex:"top"==e?100:"middle"==e?!1!==p.bottom?parseInt(p.bottom+1)||0:4:!1!==p.middle&&parseInt(p.middle-1)||3},layertype:null,newIDs:l,sid:r,msource:n,global:a.global}));return SR7.M[i].migrate&&(c=SR7.migrate.fixPos(c)),c};const s=e=>{const t={m:e?.m??!1,deco:e?.deco??"none",zIndex:e?.zIndex??"auto",color:{c:e?.color?.c??"#ffffff",bg:e?.color?.bg??"transparent",gAnim:e?.color?.gAnim??"fading"},border:{c:e?.border?.c??"transparent",s:e?.border?.s??"none",w:{t:e?.border?.w?.t??0,r:e?.border?.w?.r??0,b:e?.border?.w?.b??0,l:e?.border?.w?.l??0}},radius:{t:e?.radius?.t??0,r:e?.radius?.r??0,b:e?.radius?.b??0,l:e?.radius?.l??0},frame:{o:e?.frame?.o??1,oX:e?.frame?.oX??"50%",oY:e?.frame?.oY??"50%",oZ:e?.frame?.o
28Z??"50%",x:e?.frame?.x??0,y:e?.frame?.y??0,z:e?.frame?.z??0,rZ:e?.frame?.rZ??0,rX:e?.frame?.rX??0,rY:e?.frame?.rY??0,sX:e?.frame?.sX??1,sY:e?.frame?.sY??1,skX:e?.frame?.skX??0,skY:e?.frame?.skY??0,d:e?.frame?.d??300,e:e?.frame?.e??"power3.inOut"},filter:{g:e?.filter?.g??0,r:e?.filter?.r??100,b:e?.filter?.b??0},svg:{c:e?.svg?.c??"#ffffff",stroke:{c:e?.svg?.stroke?.c??"transparent",d:e?.svg?.stroke?.d??0,o:e?.svg?.stroke?.o??0,w:e?.svg?.stroke?.w??0}}};for(const s of["tShdw","bShdw"])(SR7.E.backend||e?.[s]?.use)&&(t[s]={use:e?.[s]?.use??!1,set:e?.[s]?.set??["tShdw"==s?{h:["#a",0,"#a","#a","#a"],v:["#a",4,"#a","#a","#a"],blur:["#a",8,"#a","#a","#a"],color:"rgba(0,0,0,0.35)"}:{h:["#a",0,"#a","#a","#a"],v:["#a",10,"#a","#a","#a"],blur:["#a",20,"#a","#a","#a"],spread:["#a",0,"#a","#a","#a"],color:"rgba(0,0,0,0.25)"}]});return t};SR7.D.layerObject=function(i){let{dLEN:a,id:r,obj:n,layertype:o="",newIDs:l,sid:d,msource:c,global:p,ISEMPTY:u,usedAddons:h,isSaving:g}=i;const m=u&&h;var f=r&&SR7.M[r].migrate?SR7.migrate.LayerObj({dLEN:a,o:n,newIDs:l,sid:d,msource:c,global:p}):n??{};let S;o=f.type??o;let y=f.subtype??"";"image"===o&&"100% 100%"==f.content?.size&&(f.content.size="cover"),SR7.E.backend&&!f.osjv&&f.runtime?.hidden&&(f.runtime.hidden=!1),f.alias=_tpt.stripHTML(f.alias??""),f.tag="a"===(f.tag??"sr7-layer")?"sr-layer":f.tag??"sr7-layer",f.addOns?.liquideffect&&(f.addOns.distortion=f.addOns.liquideffect,delete f.addOns.liquideffect);var v={ojsv:f.ojsv,addOns:f.addOns??{},brand:f.brand,reveal:f.reveal,revealout:f.revealout,hoverfx:f.hoverfx,tledit:f.tledit??("slidebg"===y?"presets":"advanced"),role:f.role??("slidebg"===y?"slide-background":"layer"),rTo:f.rTo??"",listen:f.listen,fluid:{tx:f.fluid?.tx??!1,tr:f.fluid?.tr??!1,sp:f.fluid?.sp??!1,po:f.fluid?.po??f.fluid?.sp??!1},ai:{desc:f.ai?.desc??"",role:f.ai?.role??"",weight:f.ai?.weight??"",edit:Array.isArray(f.ai?.edit)?f.ai.edit:[],txt:{min:f.ai?.txt?.min??0,max:f.ai?.txt?.max??0,wrap:f.ai?.txt?.wrap??!1},img:{w:f.ai?.img?.w??0,h:f.ai?.img?.h??0,alpha:f.ai?.img?.alpha??!1,fit:f.ai?.img?.fit??""},group:f.ai?.group??"",icol:f.ai?.icol??!1,icont:f.ai?.icont??!1,ibg:f.ai?.ibg??!1},id:f.id??"",alias:f.alias??"",type:"image"===o||"video"===o?"shape":o,subtype:"image"===o?"image":"video"===o||"video"===y?"video":f.subtype??"",content:"image"===o?{}:SR7.D.contentOBJ(o,f.content),nF:f.nF??void 0,mF:f.mF??"none",bF:f.bF??"0",blend:f.blend??"normal",surface:_tpt.tf(f.surface?.u)||SR7.E.backend?{u:_tpt.tf(f.surface?.u),preset:f.surface?.preset??"chrome",strength:f.surface?.strength??65,speed:f.surface?.speed??35,pointer:f.surface?.pointer??!0,bevel:f.surface?.bevel??("text"===o?0:45),detail:f.surface?.detail??"auto"}:void 0,glass:{u:f.glass?.u??!1,blur:f.glass?.blur??3,intensity:f.glass?.intensity??100},glow:_tpt.tf(f.glow?.u)||SR7.E.backend?{u:_tpt.tf(f.glow?.u)??!1,mode:f.glow?.mode??"aura",src:f.glow?.src??"pointer",color:f.glow?.color??"#00d4ff",size:f.glow?.size??55,intensity:f.glow?.intensity??70,soft:f.glow?.soft??18,width:f.glow?.width??2,lag:f.glow?.lag??25,dur:f.glow?.dur??2400,idle:f.glow?.idle??!0,fade:f.glow?.fade??400}:void 0,pblur:{u:f.pblur?.u??!1,dir:f.pblur?.dir??"to top",max:f.pblur?.max??24,fade:f.pblur?.fade??70,tint:f.pblur?.tint??0},tag:f.tag,href:"a"===f.tag||"sr7-layer"===f.tag?f.href??void 0:void 0,target:"a"===f.tag||"sr7-layer"===f.tag?Array.isArray(f.target)?f.target[0]:f.target??void 0:void 0,rel:"a"===f.tag||"sr7-layer"===f.tag?f.rel??void 0:void 0,libSrc:f.libSrc??"",runtime:f.runtime??{},lbreak:f.lbreak??["#a",!1,"#a","#a","#a"],ico:"text"!==o||100==(f.ico?.s??100)&&0==(f.ico?.g??0)&&!SR7.E.backend?void 0:{s:f.ico?.s??100,g:f.ico?.g??0},size:{w:f.size?.w??["#a","auto","#a","#a","#a"],h:f.size?.h??["#a","auto","#a","#a","#a"],mm:f.size?.mm??!SR7.M?.[r]?.settings?.ojsv,maxW:f.size?.maxW??["none","none","none","none","none"],maxH:f.size?.maxH??["none","none","none","none","none"],minW:f.size?.minW??["#a","auto","#a","#a","#a"],minH:f.size?.minH??["#a","auto","#a","#a","#a"],cMode:f.size?.cMode??"custom",sProp:f.size?.sProp??!1},pos:{x:f.pos?.x??["#a",0,"#a","#a","#a"],y:f.pos?.y??["#a",0,"#a","#a","#a"],h:f.pos?.h??["left","left","left","left","left"],v:f.pos?.v??["top","top","top","top","top"],pos:"row"===f.subtype||"column"===f.subtype?"relative":f.pos?.pos??void 0,float:f.pos?.float??["#a","none","#a","#a","#a"],clear:f.pos?.clear??["#a","none","#a","#a","#a"]},pid:Number(f.pid??-1),pE:f.pE??"auto",uS:f.uS??"default",zIndex:Number(f.zIndex??(null!=f.ojsv||SR7.E.backend?5:6)),order:f.order??5,style:f.style??"",display:f.display??["#a","block","#a","#a","#a"],vA:f.vA??"top",oflow:f.oflow??"visible",fHOF:f.fHOF??!1,cursor:f.cursor??"curs
28or",bg:{fS:f.bg?.fS??void 0,color:f.bg?.color??"transparent",fc:f.bg?.fc??!1,bClip:f.bg?.bClip??"none",tFCol:f.bg?.tFCol??"none",image:""!==(f.bg?.image?.src??"")||f.bg?.image?.fromStream?SR7.D.contentOBJ("image",f.bg?.image??{}):"image"===o?SR7.D.contentOBJ("image",f.content):SR7.E.backend?{u:!1}:void 0,video:""!==(f.bg?.video?.src??"")||f.bg?.video?.fromStream?SR7.D.contentOBJ("video",f.bg?.video??{}):"video"===o?SR7.D.contentOBJ("video",f.content):void 0},shape:"custom"===y?{kind:f.shape?.kind??"wave",seed:f.shape?.seed??8412,complexity:f.shape?.complexity??7,variation:f.shape?.variation??30,balance:f.shape?.balance??50,layers:f.shape?.layers??3,edge:f.shape?.edge??"smooth",position:f.shape?.position??"bottom",invert:f.shape?.invert??!1,fill:f.shape?.fill??"#1ca0fb",stroke:f.shape?.stroke??"#000000",strokeWidth:f.shape?.strokeWidth??0,svg:f.shape?.svg??"",anim:{type:f.shape?.anim?.type??"none",speed:f.shape?.anim?.speed??1,amount:f.shape?.anim?.amount??50,dir:f.shape?.anim?.dir??"left"},frames:f.shape?.frames??void 0}:void 0,counter:_tpt.tf(f.counter?.u)||SR7.E.backend?{u:_tpt.tf(f.counter?.u)??!1,b:f.counter?.b??!0,mode:f.counter?.mode??"count",tf:f.counter?.tf??"{d}d {hh}h {mm}m {ss}s",over:f.counter?.over??"stay",st:f.counter?.st??"anim",from:f.counter?.from??0,d:f.counter?.d??2e3,delay:f.counter?.delay??0,e:f.counter?.e??"power2.out",again:f.counter?.again??!0,dec:f.counter?.dec??"",ts:f.counter?.ts??"",ds:f.counter?.ds??"",pre:f.counter?.pre??"",suf:f.counter?.suf??"",comp:_tpt.tf(f.counter?.comp)??!1,roll:_tpt.tf(f.counter?.roll)??!1}:void 0,ix:f.ix?.type&&"none"!==f.ix.type?{type:f.ix.type,strength:f.ix?.strength??40,radius:f.ix?.radius??200,speed:f.ix?.speed??12,axis:f.ix?.axis??"both",returnEase:f.ix?.returnEase??"smooth",perspective:f.ix?.perspective??800,preset:SR7.E.backend?f.ix?.preset??void 0:void 0}:void 0,attr:{},acc:{hidden:f.acc?.hidden??"true",label:f.acc?.label??"",labeledby:f.acc?.labeledby??"",role:f.acc?.role??("image"===o?"img":"video"===o?"video":"button"===y||"button"===o?"button":"presentation"),haspopup:f.acc?.haspopup??"false"},tl:{}};if(Array.isArray(v.vA)&&(v.vA=v.vA[0]),"row"===v.subtype&&(v.uGap=f.uGap??!1,v.gaps=f.gaps??["#a","0","#a","#a","#a"]),void 0===v.runtime.hidden&&void 0===v.runtime.locked||(v.runtime.idle={hidden:v.runtime.hidden??!1,locked:v.runtime.locked??!1},delete v.runtime.hidden,delete v.runtime.locked),SR7.E.backend){"zone"!==y||u||(v.pos.pos="absolute"),""!==(v.bg?.image?.src??"")&&"false"!==String(v.bg.image.u)&&(v.bg.image.u=!0);let e=!1;for(let t=0;t<5;t++)e||(e="auto"!==v.size.minW[t]&&"#a"!==v.size.minW[t]&&"none"!==v.size.minW[t]||"auto"!==v.size.minH[t]&&"#a"!==v.size.minH[t]&&"none"!==v.size.minH[t]||"auto"!==v.size.maxW[t]&&"#a"!==v.size.maxW[t]&&"none"!==v.size.maxW[t]||"auto"!==v.size.maxH[t]&&"#a"!==v.size.maxH[t]&&"none"!==v.size.maxH[t]);if(v.size.mm=e,v?.pos?.v)for(let e in v.pos.v)v.pos.v[e]="center"==v.pos.v[e]?"middle":v.pos.v[e];for(let e of["x","y"]){let t=[v.pos[e][0],v.pos[e][1],"#a","#a","#a"];for(let s=2;s<5;s++){let i=SR7.gV({v:t,id:SR7.editing.module,m:"forceround",c:s,s:"scale"});v.pos[e][s]=i!==v.pos[e][s]?v.pos[e][s]:"#a",t[s]=v.pos[e][s]}}"string"==typeof v.display&&(v.display=_tpt.DNTMtoArr(v.display)),"image"===v.subtype&&"false"==String(v.bg?.image?.u)&&(v.subtype=""),v.rTo="group"==v.rTo?"cfc":v.rTo,g||(v.rTo="slidebg"===f.subtype?"slide":""==v.rTo?(f.subtype,"cfc"):v.rTo)}else v.rTo="slidebg"===v.subtype?"slide":v.rTo;if("slidebg"!==v.subtype&&"shape"===v.type&&(""==(v.bg?.video?.src??"")&&""!==(v.bg?.image?.src??"")&&(!v.subtype||"image"===v.subtype||"video"===v.subtype||v.subtype?.length<6)?v.subtype="image":"shape"===v.type&&""!==(v.bg?.video?.src??"")&&(!v.subtype||"image"===v.subtype||"video"===v.subtype||v.subtype?.length<6)&&(v.subtype="video"),"cover"!=v.size.cMode&&"cover-proportional"!=v.size.cMode||(v.size.cMode="custom",v.size.w=["#a","100%","#a","#a","#a"],v.size.h=["#a","100%","#a","#a","#a"])),"column"===v.subtype&&(v.size.col=f.size?.col??"1/3"),(SR7.E.backend||void 0!==f.vis)&&(v.vis=f.vis??[!0,!0,!0,!0,!0]),(SR7.E.backend||void 0!==f.viSH)&&(v.viSH=f.viSH??!1),(SR7.E.backend||void 0!==f.viOC)&&(v.viOC=f.viOC??!1),(SR7.E.backend||void 0!==f.publish)&&(v.publish=f.publish??{sch:!1,from:"",to:"",days:[],mode:"remove"}),"true"==String(v.viOC)&&(v.viSH=!1),SR7.E.backend&&"fullinset"!==v.size.cMo
28de){let e;for(e in v.pos.x)v.pos.x[e]="auto"==v.pos.x[e]?0:v.pos.x[e];for(e in v.pos.y)v.pos.y[e]="auto"==v.pos.y[e]?0:v.pos.y[e]}for(var R of(void 0!==f.break&&(v.break=f.break),void 0!==f.sStart&&(v.sStart=f.sStart),void 0!==f.sEnd&&(v.sEnd=f.sEnd),void 0!==f.sSkip&&(v.sSkip=f.sSkip),void 0!==f.sZ&&(v.sZ=f.sZ),p&&SR7.E.backend&&(v.sZ??="default"),["p","m"]))for(S of["t","b","l","r"]){let e=!1;for(var b=0;b<5;b++)(SR7.E.backend||f[R]?.[S])&&(v[R]??={})&&(v[R][S]??=Array(5))&&(v[R][S][b]=0==f[R]?.[S]?.[b]?0:f[R]?.[S]?.[b]||"#a"),"#a"!==(v?.[R]?.[S]?.[b]??"#a")&&(e=!0);e||!SR7.E.backend&&!f[R]?.[S]||(v[R][S][1]="#a"==v[R][S][1]||null==v[R][S][1]?0:v[R][S][1])}SR7.E.backend&&(void 0!==v.m&&(v.m.lock=f.m?.lock??!1),void 0!==v.p&&(v.p.lock=f.p?.lock??!1)),(SR7.E.backend||f.tr?.rX)&&(v.tr=v.tr||{})&&(v.tr.rX=f.tr?.rX||0),(SR7.E.backend||f.tr?.rY)&&(v.tr=v.tr||{})&&(v.tr.rY=f.tr?.rY||0),(SR7.E.backend||f.tr?.rZ)&&(v.tr=v.tr||{})&&(v.tr.rZ=f.tr?.rZ||0),(SR7.E.backend||f.tr?.o)&&(v.tr=v.tr||{})&&(v.tr.o=f.tr?.o||1),v.tr&&(v.tr.fix=f.tr?.fix||"d"),(SR7.E.backend||f.mod?.s?.u||f.mod?.s?.utr||f.mod?.s?.uf)&&(v.mod??={mask:f.mod?.mask??!1},v.mod.s={u:f.mod?.s?.u??!1,x:f.mod?.s?.x??0,y:f.mod?.s?.y??20,s:(f.mod?.s?.s??0)*(f.ojsv?1:1e3),e:f.mod?.s?.e??"power3.out",utr:f.mod?.s?.utr??!1,rX:f.mod?.s?.rX??0,rY:f.mod?.s?.rY??0,rZ:f.mod?.s?.rZ??0,sc:f.mod?.s?.sc??1,uf:f.mod?.s?.uf??!1,b:f.mod?.s?.b??0,g:f.mod?.s?.g??0,f:f.mod?.s?.f??1,d:f.mod?.s?.d??"b",t:f.mod?.s?.t??0,r:f.mod?.s?.r??100}),(SR7.E.backend||f.sbt?.u||f.mod?.s?.ut)&&(v.sbt={u:f.sbt?.u??f.mod?.s?.ut??!1,so:f.sbt?.so??f.mod?.s?.so??0}),(SR7.E.backend||f.mod?.m?.u||f.mod?.m?.aBG)&&(v.mod??={mask:f.mod?.mask??!1},v.mod.m={u:f.mod?.m?.u??!1,aBG:f.mod?.m?.aBG??!1,x:f.mod?.m?.x??20,y:f.mod?.m?.y??20,s:f.mod?.m?.s??0,e:f.mod?.m?.e??"power3.out",o:f.mod?.m?.o??"c"}),void 0!==f.px&&(v.px={...f.px}),void 0!==f.overlay&&void 0!==f?.bg&&(f.bg.overlay=f.overlay),(SR7.E.backend||"none"!==(f.bg?.overlay?.type??"none"))&&(v.bg.overlay={type:f.bg?.overlay?.type??"none",size:f.bg?.overlay?.size??1,cA:f.bg?.overlay?.cA??"transparent",cB:f.bg?.overlay?.cB??"#000000",bf:f.bg?.overlay?.bf??0,w:f.bg?.overlay?.w??50,d:f.bg?.overlay?.d??"v",a:f.bg?.overlay?.a??"none",ad:f.bg?.overlay?.ad??20,ax:f.bg?.overlay?.ax??"l"}),("none"!==(f.bg?.mesh?.k??"none")||(f.bg?.mesh?.gr??0)>0||"none"!==(f.bg?.mot?.a??"none")||"none"!==(f.bg?.overlay?.type??"none"))&&(SR7.R??={},SR7.R.bgpattern=!0),_tpt.tf(f.counter?.u)&&(SR7.R??={},SR7.R.counter=!0),_tpt.tf(f.surface?.u)&&(SR7.R??={},SR7.R.surface=!0),_tpt.tf(f.glow?.u)&&(SR7.R??={},SR7.R.glow=!0),(SR7.E.backend||"none"!==(f.bg?.mesh?.k??"none")||(f.bg?.mesh?.gr??0)>0)&&(v.bg.mesh={k:f.bg?.mesh?.k??"none",ch:f.bg?.mesh?.ch??0,gr:f.bg?.mesh?.gr??0}),(SR7.E.backend||"none"!==(f.bg?.mot?.a??"none"))&&(v.bg.mot={a:f.bg?.mot?.a??"none",ad:f.bg?.mot?.ad??20,ax:f.bg?.mot?.ax??"l"}),SR7.E.backend&&(v.size.oW=f.size?.oW||0),SR7.E.backend&&(v.size.oH=f.size?.oH||0),SR7.E.backend&&(v.size.aRatio=f.size?.aRatio||["#a","auto","#a","#a","#a"]),f.attr??={},(SR7.E.backend||""!==(f.attr?.a||""))&&(v.attr.a=f.attr?.a||""),(SR7.E.backend||""!==(f.attr?.aO||""))&&(v.attr.aO=f.attr?.aO||"ml"),(SR7.E.backend||""!==(f.attr?.id||""))&&(v.attr.id=f.attr?.id||""),(SR7.E.backend||""!==(f.attr?.class||""))&&(v.attr.class=f.attr?.class||""),(SR7.E.backend||""!==(f.attr?.rel||""))&&(v.attr.rel=f.attr?.rel||""),(SR7.E.backend||""!==(f.attr?.tabIndex??""))&&(v.attr.tabIndex=f.attr?.tabIndex??"auto"),(SR7.E.backend||""!==(f.attr?.t||""))&&(v.attr.t=f.attr?.t||""),(SR7.E.backend||""!==(f.attr?.tO||""))&&(v.attr.tO=f.attr?.tO||"ml"),(SR7.E.backend||""!==(f.attr?.wrapClass||""))&&(v.attr.wrapClass=f.attr?.wrapClass||""),(SR7.E.backend||""!==(f.attr?.wrapId||""))&&(v.attr.wrapId=f.attr?.wrapId||""),(SR7.E.backend||""!==(f.attr?.iClass||""))&&(v.attr.iClass=f.attr?.iClass||""),"media_library"==v.attr?.aO&&(v.attr.aO="ml"),"media_library"==v.attr?.tO&&(v.attr.tO="ml");let w=f.hov??={},x=_tpt.tf(w?.u??!1),_=_tpt.tf(w?.dMo??!1);"desktop"===x&&(x=!0,_=!0),(SR7.E.backend||!1!==x)&&(v.hov={u:x,dMo:_,wae:SR7.E.backend?w?.wae??(!0===x||void 0):void 0,...s(w)});const F=_tpt.tf(f.sel?.u??!1);if((SR7.E.backend||F)&&(v.sel={u:F,wae:SR7.E.backend?f.sel?.wae??(!0===F||void 0):void 0,grp:f.sel?.grp??"",mode:f.sel?.mode??"radio",init:_tpt.tf(f.sel?.init??!1),...s(f.sel)}),"text"===o||"container"===o){const e=f.tA??["#a","left","#a","#a","#a"],t=e=>"string"==typeof e?e.replace(/\s*!\s*important\s*$/i,"").trim():e;v.tA=Array.isArray(e)?e.map(t):t(e)}if("text"!==o&&"row"!=v.subType&&"column"!=v.subType||(v.ws=f.ws??("container"===v.type?["#a","normal","#a","#a","#a"]:["#a","full","#a","#a","#a"])),""===(f.codes?.css??"")&&""===(f.codes?.hovercss??"")||(v.codes={css:f.codes?.css??"",hovercss:f.codes?.hovercss??""}),(SR7.E.backend||f.sShdw?.use)&&(v.sShdw={use:f.sShdw?.use??!1,set:f.sShdw?.set??[{h:["#a",0,"#a","#a","#a"],v:["#a",6,"#a","#a","#a"],blur:["#a",12,"#a","#a","#a"],color:"rgba(0,0,0,0.35)"}]}),(SR7.E.backend||f.bShdw?.use)&&(v.bShdw={use:f.bShdw?.use??!1,on:"content",set:f.bShdw?.set??[{h:f.bShdw?.h??["#a",0,"#a","#a","#a"],v:f.bShdw?.v??["#a",10,"#a","#a","#a"],blur:f.bShdw?.blur??["#a",20,"#a","#a","#a"],spread:f.bShdw?.spread??["#a",0,"#a","#a","#a"],color:f.bShdw?.color??"rgba(0,0,0,0.25)"}]}),SR7.E.backend||void 0!==f.border&&void 0!==f.border.s){var k=SR7.E.backend;if(f.border??={},f.border.s??=["none","none","none","none","none"],!k)for(var M=0;M<5;M++)k=k||"none"!==f.border.s[M];for(S of(v.border={s:f.border.s,c:f.border?.c??"transparent"},SR7.D.DS))(SR7.E.backend||f.border?.w?.[S])&&(v.border.w=v.border.w||{})&&(v.border.w[S]=e(f.border?.w?.[S]||0))}if(SR7.E.backend||void 0!==f.radius)for(S of SR7.D.DS)(SR7.E.backend||f.radiu
28s?.[S])&&(v.radius??={})&&(v.radius[S]=f.radius?.[S]||0);if("text"==o){if((SR7.E.backend||f.tShdw?.use)&&(v.tShdw={use:f.tShdw?.use??!1,set:f.tShdw?.set??[{h:f.tShdw?.h??["#a",0,"#a","#a","#a"],v:f.tShdw?.v??["#a",10,"#a","#a","#a"],blur:f.tShdw?.blur??["#a",20,"#a","#a","#a"],color:f.tShdw?.color??"rgba(0,0,0,0.25)"}]}),(SR7.E.backend||f.tStroke?.use)&&(v.tStroke={use:f.tStroke?.use??!1,w:f.tStroke?.w??[1,1,1,1,1],c:f.tStroke?.c??"rgba(0,0,0,0.25)"}),v.color=f.color??["#a","#ffffff","#a","#a","#a"],v.font={family:String(f.font?.family??"Roboto").replaceAll("'",""),style:f.font?.style??!1,size:f.font?.size??["#a","20","#a","#a","#a"],weight:Array.isArray(f.font?.weight)?f.font?.weight[1]:f.font?.weight??400,ls:f.font?.ls??["#a","0","#a","#a","#a"]},(SR7.E.backend||1==(f.tog?.u??!1))&&(v.tog={t:f?.tog?.t??"",u:f?.tog?.u??!1,h:f?.tog?.h??!1,i:f?.tog?.i??!1}),v?.tog?.i&&v?.tog?.u&&""!==v?.tog?.t&&void 0!==v?.tog?.t){let e=v.content.text;v.content.text=v.tog.t,v.tog.t=e}v?.tog?.i&&delete v.tog.i,SR7.M[r].migrate&&SR7.D.collectModulFont(v.font,r,v.content.text)}if("text"!==o&&"container"!==o||(v.lh=f.lh??["#a","25","#a","#a","#a"]),"text"===o&&Array.isArray(v.lh)&&Array.isArray(v.font?.size)){const e=e=>"#a"!==e&&void 0!==e&&""!==e&&null!==e,t=(t,s)=>{for(let i=s;i>=0;i--)if(e(t[i]))return t[i];for(let i=s+1;i<t.length;i++)if(e(t[i]))return t[i]};v.lh=v.lh.map((e,s)=>{if(!/^\s*\d*\.?\d+\s*$/.test(String(e)))return e;const i=parseFloat(e),a=parseFloat(t(v.font.size,s));return i<5&&a>10?String(Math.round(i*a)):e})}(SR7.E.backend||f.spike?.use)&&(v.spike={use:f.spike?.use??!1,l:f.spike?.l??"none",r:f.spike?.r??"none",lw:f.spike?.lw??10,rw:f.spike?.rw??10});const C={};for(var E in f.tl)if(_tpt.hop(f.tl,E)&&"undefined"!=String(E))if(v.tl[E]??={},"in"!=f.tl[E]&&"out"!=f.tl[E])for(var O in f.tl[E])_tpt.hop(f.tl[E],O)&&(v.tl[E]??={},v.tl[E].alias=f.tl[E].alias??"","bg"==O&&"in"==E?v.tl.in.bg={ex:!0,all:[{},SR7.D.getBGAnim(f.tl.in.bg?.all?.[1]?f.tl.in.bg.all[1]:f.tl.in.bg)]}:"base"!==O&&(v.tl[E][O]=SR7.D.layerTLObject(f.tl[E][O],O,E,f.ojsv,void 0,o,v.role)),C[O]=!0);else v.tl[E]=f.tl[E];let A;for(let e in v.tl)if(_tpt.hop(v.tl,e)&&"undefined"!=e){if(null==f.ojsv&&v.tl[e]?.content?.all)for(let t in v.tl[e].content.all)("text"===v.type||"shape"===v.type&&"video"!==v.subtype&&"image"!==v.subtype)&&(v.tl[e].content.all[t].bgU=null==v.tl[e].content.all[t].bgU?!(null==v.tl[e]?.content?.all[t].bgcol||"inherit"==v.tl[e]?.content?.all[t].bgcol||"idle"==v.tl[e]?.content?.all[t].bgcol):v.tl[e].content.all[t].bgU),"text"==v.type&&(v.tl[e].content.all[t].cU=null==v.tl[e].content.all[t].cU?!(null==v.tl[e]?.content?.all[t].col||"inherit"==v.tl[e]?.content?.all[t].col||"idle"==v.tl[e]?.content?.all[t].col):v.tl[e].content.all[t].cU,"chars"!==A&&v.tl[e]?.chars?.all&&!0!==_tpt.tf(v.tl[e].chars?.d)&&(A="chars"),"chars"!==A&&"words"!==A&&v.tl[e]?.words?.all&&!0!==_tpt.tf(v.tl[e]?.words?.d)&&(A="words"),void 0!==A&&v.tl[e]?.lines?.all&&!0!==_tpt.tf(v.tl[e]?.lines?.d)&&(A="lines"));if("in"!=v.tl[e]&&"out"!=v.tl[e]){void 0!==v.tl?.in?.content?.all?.[1]?.t&&(parseInt(v.tl.in.content?.all?.[0]?.t)||0)>(parseInt(v.tl?.in?.content?.all?.[1]?.t)||0)&&(v.tl.in.content.all[0].t=v.tl.in.content.all[1].t);for(let t in C){if(!_tpt.hop(C,t)||"bg"==t||"pan"==t||"content"==t||"alias"==t||"base"==t||"undefined"==t)continue;let s=1;if(v.tl[e][t]??=SR7.D.layerTLObject({},t,e,f.ojsv,void 0,o,v.role),v.tl[e][t].all??=[],"words"!=t&&"chars"!=t&&"lines"!=t||(v.tl[e][t].ex=!0),v.tl[e]?.content?.all)for(let i in v.tl[e].content.all)if(null==v.tl[e][t].all[i]){if(void 0!==f.ojsv&&v.tl[e][t].ex&&0!==i)continue;v.tl[e][t].all[i]=SR7.D.getKeyFrame({t:v.tl[e].content?.all[i]?.t,d:v.tl[e].content?.all[i]?.d,e:v.tl[e].content?.all[i]?.e,f:v.tl[e].content?.all[s]?.f},t,i,e,f.ojsv,void 0,o,i,v.role)}}}}if(null==f.ojsv&&A)for(let e in v.tl)if(v.tl[e]?.content?.all)for(let t in v.tl[e].content.all)"text"===v.type&&v.tl[e].content.all[t].cU&&(v.tl[e][A].all[t].cU=!0,v.tl[e][A].all[t].col=v.tl[e].content.all[t].col,v.tl[e].content.all[t].cU=!1);if("slidebg"!==v.subtype||u||v.tl?.in?.bg?.all?.[1]||(v.tl??={},v.tl.in??={},v.tl.in.bg={ex:!0,all:[{},SR7.D.getBGAnim()]},v.tl.in.bg.all[1].in.o=0),"slidebg"!==v.subtype&&v.tl?.in?.bg&&!v.tl?.in?.content){v.tl.in.content=SR7.D.layerTLObject({},"content","in",f.ojsv,void 0,o,v.role),v.tl.out={content:SR7.D.layerTLObject({},"content","in",f.ojsv,void 0,o,v.role)},v.tl.in.content.all=[],v.tl.out.content.all=[];const e=v.tl.in.bg?.all;if(e)for(let t in e)v.tl.in.content.all[t]=SR7.D.getKeyFrame({t:v.tl.in?.bg.all[t]?.t,d:v.tl.in?.bg.all[t]?.d,e:v.tl.in?.bg.all[t]?.e,f:v.tl.in?.bg.all[t]?.f},"content",t,"in",f.ojsv,void 0,o,t,v.role);v.tl.out.content.all[0]=SR7.D.getKeyFrame({t:0,d:300,e:"none",f:0},"content",0,"out",f.ojsv,void 0,o,0,v.role),v.tl.out.content.all[0].o=0,v.tl.in.content.all[0]&&(v.tl.in.content.all[0].o=0),v.tl.in.content.all[1]&&(v.tl.in.content.all[1].o=1),delete v.tl.in.bg}if(!SR7.E.backend||null!=v.tl?.in?.mask&&"true"!=String(v.tl?.in?.mask?.d)||"c"!=v.tl?.in?.content?.all?.[1]?.fx?.[0]||(v.tl.in.mask=SR7.D.layerTLObject({ex:!1,all:v.tl.in.content.all},"mask")),!SR7.E.backend||null!=v.tl?.out?.mask&&"true"!=String(v.tl?.out?.mask?.d)||"c"!=v.tl?.out?.content?.all?.[0]?.fx?.[0]||(v.tl.out.mask=SR7.D.layerTLObject({ex:!1,all:v.tl.out.content.all},"mask")),SR7.E.backend&&!u&&"slidebg"!==v.subtype&&"zone"!==v.subtype&&(v.tl??={},void 0===v.tl.in&&(v.tl.in={content:SR7.D.layerTLObject({all:[{o:0,t:0,d:0,f:0},{o:1,t:300,d:300,f:300}]},void 0,"in",f.ojsv,void 0,o,v.role)}),null==v.tl.out&&(v.tl.out={content:SR7.D.layerTLObject({all:[{o:0,t:300,d:300,f:300}]},void 0,"out",f.ojsv,void 0,o,v.role)})),"text"===v.type&&(SR7.M[r].icons??={},void 0!==v.content.text&&((SR7.M[r].settings?.fonts?.FontAwesome||v.content.text.includes("<i")&&(v.content.text.includes('class="fa-')||v.content.text.includes("class='fa-")))&&(SR7.M[r].settings.fonts.FontAwesome=!0),(SR7.M[r].settings?.fonts?.PeIcon||v.content?.text?.includes("<i")&&(v?.content?.text?.includes?.('class="pe-7')||v?.content?.text?.includes?.("class='pe-7")))&&(SR7.M[r].settings.fonts.PeIcon=!0),(SR7.M[r].settings?.fonts?.Materialicons||v.content?.text?.includes("material-icons"))&&(SR7.M[r].settings.fonts.Materialicons=!0))),void 0!==SR7.M[r]&&void 0!==SR7.M[r].imgList)for(let e in SR7.M[r].imgList){if(!_tpt.hop(SR7.M[r].imgList,e))continue;const s=SR7.M[r].imgList[e];_tpt.compareURL(s.old,v.content?.src)&&(v.content.src=_tpt.pickSrc(s)),v.content?.image&&(v.content.image.src=t(v.content.image.src,s)),_tpt.compareURL(s.old,v.bg?.src)&&(v.bg.src=_tpt.pickSrc(s)),v.bg?.image&&(v.bg.image.src=t(v.bg.image.src,s)),v.bg?.image?.srcs&&(v.bg.image.srcs=t(v.bg.image.srcs,s)),_tpt.compareURL(s.old,v.bg?.video?.poster?.src)&&(v.bg.video.poster.src=_tpt.pickSrc(s))}if(("video"===v.subtype||v.bg.video||"audio"===v.type)&&(SR7.R??={},SR7.R.media=!0),"text"!==v.type&&"button"!==v.type||((v.attr?.iClass??"").includes("sr7-btn")||(v.attr?.iClass??"").includes("sr7-scroll-btn")||(v.attr?.iClass??"").includes("sr7-brg")||(v.text?.content??"").includes("sr7-btn")||(v.text?.content??"").includes("sr7-scroll-btn")||(v.text?.content??"").includes("sr7-brg"))&&(SR7.R??={},SR7.R.cssbtns=!0),"shape"===v.type&&(v.bg.type="image"===v.subtype?"image":"video"===v.subtype?"video":"audio"===v.type?"audio":"slidebg"===v.subtype?""!==(v.bg?.video?.src??"")?"video":""!==(v.bg?.image?.src??"")||v.bg?.image?.fromStream&&v.bg?.image?.u?"image":"color":"color"),m)for(let e of SR7.F.addonOrder(SR7.A))_tpt.hop(SR7.A,e)&&SR7.A[e]?.getLayerBasics&&h.includes(e)&&(v.addOns??={},v.addOns[e]=SR7.A[e].getLayerBasics({},"compare"));if(void 0!==SR7.M[r]&&void 0!==SR7.M[r].imgList)for(let e in SR7.M[r].imgList){if(!_tpt.hop(SR7.M[r].imgList,e))continue;const s=SR7.M[r].imgList[e];try{if(v?.addOns?.filmstrip?.src)for(let e in v.addOns.filmstrip.src)v.addOns.filmstrip.src[e].src=t(v.addOns.filmstrip.src[e].src,s)}catch{}v?.addOns?.paintbrush?.src&&_tpt.compareURL(s.old,v.addOns.paintbrush.src)&&(v.addOns.paintbrush.src=_tpt.pickSrc(s)),v?.addOns?.particlewave?.particle?.bg&&_tpt.compareURL(s.old,v.addOns.particlewave.particle.bg)&&(v.addOns.particlewave.particle.bg=_tpt.pickSrc(s)),v?.addOns?.particlewave?.particle?.particle&&_tpt.compareURL(s.old,v.addOns.particlewave.particle.particle)&&(v.addOns.particlewave.particle.particle=_tpt.pickSrc(s)),v?.addOns?.hovermorph?.parbackground&&"default"!==v?.addOns?.hovermorph?.parbackground&&_tpt.compareURL(s.old,v.addOns.hovermorph.parbackground)&&
28(v.addOns.hovermorph.parbackground=_tpt.pickSrc(s)),v?.addOns?.shapeburst?.parbackground&&"default"!==v?.addOns?.shapeburst?.parbackground&&_tpt.compareURL(s.old,v.addOns.shapeburst.parbackground)&&(v.addOns.shapeburst.parbackground=_tpt.pickSrc(s)),v?.addOns?.distortion?.map?.c&&_tpt.compareURL(s.old,v.addOns.distortion.map.c)&&(v.addOns.distortion.map.c=_tpt.pickSrc(s)),v?.addOns?.whiteboard?.write?.src&&_tpt.compareURL(s.old,v.addOns.whiteboard.write.src)&&(v.addOns.whiteboard.write.src=_tpt.pickSrc(s)),v?.addOns?.whiteboard?.move?.src&&_tpt.compareURL(s.old,v.addOns.whiteboard.move.src)&&(v.addOns.whiteboard.move.src=_tpt.pickSrc(s))}return v},SR7.D.registerModuleFonts=function(e){for(var t in SR7.M[e].settings.fonts)if(_tpt.hop(SR7.M[e].settings.fonts,t)){var s=SR7.M[e].settings.fonts[t];if(_tpt.R.fonts?.customs?.[t])_tpt.registerFont({family:_tpt.R.fonts.customs[t].family??s.name??_tpt.fontFamily(t,!0),url:_tpt.R.fonts.customs[t]});else if("FontAwesome"==t)_tpt.registerFont({family:"FontAwesome",url:SR7.E.plugin_url+"core/public/css/fonts/font-awesome/css/font-awesome.css"});else if("Materialicons"==t)_tpt.registerFont({family:"Materialicons",url:SR7.E.plugin_url+"core/public/css/fonts/material/material-icons.css"});else if("PeIcon"==t)_tpt.registerFont({family:"Pe-icon-7-stroke",url:SR7.E.plugin_url+"core/public/css/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css"});else if("RevIcon"==t)_tpt.registerFont({family:"revicons",url:SR7.E.plugin_url+"core/public/css/fonts/revicons/css/revicons.css"});else for(var i of["italic","normal"])if(null!=s[i])for(var a in s[i])_tpt.hop(s[i],a)&&"#a"!==a&&"auto"!==a&&_tpt.registerFont({family:s.name??_tpt.fontFamily(t,!0),url:s.url,italic:"italic"===i,weight:a})}},SR7.D.checkSubsets=function(e=""){const t={};for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);for(const e in SR7.D.subsets)i>=SR7.D.subsets[e].start&&i<=SR7.D.subsets[e].end&&(t[e]=!0)}return t},SR7.D.collectModulFont=function(e,t,s,i){if(SR7.global?.fonts?.list&&void 0===_tpt?.R?.fonts?.customs&&_tpt.fontFamily&&(_tpt.R??={},_tpt.R.fonts??={},_tpt.R.fonts.customs=SR7.global?.fonts?.list),null==SR7.M[t])return;SR7.M[t].settings.fonts??={};let a=_tpt.fontFamily(e.family);a=a.replace("''","'"),SR7.M[t].settings.fonts[a]??={name:e.family};let r=e.style?"italic":"normal";if(SR7.E.backend&&"italic"==r)if(_tpt.R.fontPool?.filter){let t=_tpt.R.fontPool.filter(t=>t.label==e.family)[0];r=t&&0==SR7.B.fontTypes.getFontAttributes(t).italic?"normal":"italic"}else SR7.M[t].settings.fonts[a].normal??={};SR7.M[t].settings.fonts[a][r]??={},SR7.M[t].settings.fonts[a].subset=SR7.D.checkSubsets(s);let n=a.replaceAll("'","");(_tpt.R.fonts?.customs?.length??0)>0&&_tpt.R.fonts.customs.filter(e=>e.family===n||String(e.family).replaceAll(" ","+")===n).length>0&&(SR7.M[t].settings.fonts[a].custom=!0,SR7.M[t].settings.fonts[a].url=_tpt.R.fonts.customs.filter(e=>e.family===n||String(e.family).replaceAll(" ","+")===n)[0].url),Array.isArray(e.weight)&&(e.weight=e.weight[1]),SR7.M[t].settings.fonts[a][r][e.weight]=!0,void 0!==i?.v&&i.v===e.family?SR7.M[t].settings.fonts[a].brand=i.i:SR7.M[t].settings.fonts[a].plain=!0,SR7.E.backend&&"italic"==r&&(SR7.M[t].settings.fonts[a].normal??={},SR7.M[t].settings.fonts[a].normal[e.weight]=!0)},SR7.D.collectModulFonts=function(e){for(var t in SR7.M[e].settings.fonts={},SR7.M[e].slides)if(_tpt.hop(SR7.M[e].slides,t))for(var s in SR7.M[e].slides[t].layers){for(var i of SR7.F.addonOrder(SR7.M[e].slides[t].layers[s].addOns)){if(!_tpt.hop(SR7.M[e].slides[t].layers[s].addOns,i)||void 0===SR7?.A?.[i]||!SR7?.A?.[i]?.getFonts)continue;let r=SR7.A[i].getFonts(SR7.M[e].slides[t].layers[s].addOns[i]);if(void 0!==r)for(var a in r)_tpt.hop(r,a)&&SR7.D.collectModulFont(r[a],e,r[a].content)}_tpt.hop(SR7.M[e].slides[t].layers,s)&&"text"===SR7.M[e].slides[t].layers[s].type&&SR7.D.collectModulFont(SR7.M[e].slides[t].layers[s].font,e,SR7.M[e].slides[t].layers[s].content.text,SR7.M[e].slides[t].layers[s].brand?.["font.family"])}for(let t in SR7.M[e].settings.fonts)SR7.M[e].settings.fonts[t]?.brand||delete SR7.M[e].settings.fonts[t]?.plain},SR7.D.layerTLObject=function(t={},s,i,a,r,n,o){var l="filter"==s||"mask"==s?{d:t?.d??!1,ex:t?.ex??!1}:"clip"==s?{orig:t?.orig??"l",type:t?.type??"r",ex:t?.ex??("loop"==s||"pan"==s||"chars"==s||"words"==s||"lines"==s),d:t?.d??!1}:{pers:t.pers??600,ex:t?.ex??("loop"==s||"pan"==s||"chars"==s||"words"==s||"lines"==s||"effects"==s),d:t?.d??!1,orig:{x:t?.orig?.x??"50%",y:t?.orig?.y??"50%",z:t?.orig?.z??"0"}};for(var d in t)if(_tpt.hop(t,d)&&!(SR7.D.excludeParts.indexOf(d)>=0)){l[d]=SR7.backend?Array(t[d].length):[];for(var c=0;c<t[d].length;c++)if(l[d].push(SR7.D.getKeyFrame(t[d][c],s,d,i,a,r,n,c,o)),"in"==i&&"mask"==s&&"all"==d&&0==c&&(null==l[d][c]?.x&&(l[d][c].x=e(0)),null==l[d][c]?.x&&(l[d][c].y=e(0))),SR7.E.backend&&("loop"==s||"content"==s||"mask"==s||"chars"==s||"words"==s||"lines"==s))for(let t in l[d][c])"x"!=t&&"y"!=t||(l[d][c][t]=e(l[d][c][t]))}if("pan"==s&&(l.cover=t?.cover??!1),"loop"==s){if(null==l.all&&("in"==i?l.all=[SR7.D.getKeyFrame({t:0,d:0},s,"all",i,void 0,r,n,void 0,o),SR7.D.getKeyFrame({t:300,d:300},s,"all",i,a,r,n,void 0,o)]:l.ex=!1),l.motionpath){for(let e in l.motionpath)l.all[e]&&l.motionpath[e]&&""!==(l.motionpath[e].path??"")&&(l.all[e].path=l.motionpath[e].path,l.all[e].mpt="p");delete l.motionpath}l.scaleX&&(l.sX=_tpt.extend([],l.scaleX),delete l.scaleX),l.scaleY&&(l.sY=_tpt.extend([],l.scaleY),delete l.scaleY),l.rotationX&&(l.rX=_tpt.extend([],l.rotationX),delete l.rotationX),l.rotationY&&(l.rY=_tpt.extend([],l.rotationY),delete l.rotationY),l.rotationZ&&(l.rZ=_tpt.extend([],l.rotationZ),delete l.rotationZ),l.skewX&&(l.skX=_tpt.extend([],l.skewX),delete l.skewX),l.skewY&&(l.skY=_tpt.extend([],l.skewY),delete l.skewY)}return l},SR7.D.getKeyFrame=function(e={},t="content",s="all",i,a,r,n,o,l){const d=null==a&&"out"==i?0:e?.t??300;var c={t:parseInt(d)<0?0:d,d:e?.d??300,f:e?.f??300,e:e?.e??"power3.inOut",a:e?.a??""};
28if(null!=e&&null!=e||(e={}),"all"!==s&&"mask"!==t&&"filter"!==t&&"clip"!==t&&(r=!1),"content"==t&&(c.pE=e?.pE??"d"),void 0!==e.addOns&&(c.addOns={},e?.addOns))for(var p in e?.addOns)_tpt.hop(e?.addOns,p)&&(c.addOns[p]=e.addOns[p]);if((null!=e.x||r)&&(c.x=e.x??0),(null!=e.y||r)&&(c.y=e.y??0),"loop"!==t&&(c.arc=e.arc??0),(null!=e[s]||r)&&(c[s]=e[s]),void 0!==e.rep&&(c.rep={s:e.rep.s,r:e.rep.r??-1,sh:e.rep.sh??!1,y:e.rep.y??!1,c:e.rep.c??!1}),"mask"!==t&&"filter"!==t&&"clip"!==t&&((null!=e.z||r)&&(c.z=e.z??0),(null!=e.sX||r)&&(c.sX=e.sX??1),(null!=e.sY||r)&&(c.sY=e.sY??1),(null!=e.skX||r)&&(c.skX=e.skX??0),(null!=e.skY||r)&&(c.skY=e.skY??0),(r||null!=e.o)&&(c.o=e?.o??1),(r||null!=e.rX)&&(c.rX=e.rX??0),(r||null!=e.rY)&&(c.rY=e.rY??0),(r||null!=e.rZ)&&(c.rZ=e.rZ??0),"pan"==t&&void 0!==e.anchorX&&(c.anchorX=e.anchorX),"pan"==t&&void 0!==e.anchorY&&(c.anchorY=e.anchorY),null!=e.fb&&(c.fb=e.fb),null!=e.fgs&&(c.fgs=e.fgs),null!=e.fbr&&(c.fbr=e.fbr),void 0!==e.bgU&&(c.bgU=e.bgU),void 0!==e.cU&&(c.cU=e.cU),void 0!==e.bgcol&&(c.bgcol=e.bgcol),void 0!==e.col&&(c.col=e.col),void 0!==e.tshU&&(c.tshU=e.tshU),void 0!==e.bshU&&(c.bshU=e.bshU),void 0!==e.tsh&&(c.tsh=e.tsh),void 0!==e.bsh&&(c.bsh=e.bsh)),"content"==t&&(c.fx=e.fx??"none",void 0!==e.goto&&(c.goto=e.goto),void 0!==e.fx&&(c.fxc=e.fxc??"#ffffff",c.fxe=e.fxe??c.e,c.fxs=e.fxs??c.t)),"mask"!=t&&"lines"!=t||void 0!==e.oflow&&(c.oflow=e.oflow),("filter"==t||"loop"==t&&"filter"===s)&&(null!=e.fu&&(c.fu=e.fu),c.fu&&(null!=e.b&&(c.b=e.b),null!=e.g&&(c.g=e.g),null!=e.r&&(c.r=e.r),null!=e.co&&(c.co=e.co),null!=e.sa&&(c.sa=e.sa)),null!=e.bu&&(c.bu=e.bu),void 0!==c.bu&&(null!=e.bb&&(c.bb=e.bb),null!=e.bg&&(c.bg=e.bg),null!=e.br&&(c.br=e.br),null!=e.bs&&(c.bs=e.bs),null!=e.bi&&(c.bi=e.bi)),void 0!==e.repeat&&(c.repeat=e.repeat)),"effects"==t)for(let t in e)_tpt.hop(e,t)&&"addOns"!=t&&"rep"!=t&&e[t]&&"object"==typeof e[t]&&!Array.isArray(e[t])&&(c[t]=_tpt.extend({},e[t]));if(SR7.D.splits.indexOf(t)>=0&&(void 0!==e.fu&&(c.fu=e.fu),e.fu&&(null!=e.b&&(c.b=e.b),null!=e.g&&(c.g=e.g),null!=e.r&&(c.r=e.r)),c.dir=e.dir??"start",c.sd=e.sd??10*(e.delay??5)),"chars"==t&&(c.gap=e.gap??0),"svg"==n&&"content"==t&&"all"===s&&(0==o&&(c.dsvg=e.dsvg??!1,c.dsvgw=e.dsvgw??1),c.dsvga=e.dsvga??0,c.dsvgb=e.dsvgb??(1==o&&"in"==i?100:0),c.dsvgc=e.dsvgc??"#fff"),"clip"==t&&(void 0!==e.c&&(c.c=e.c),void 0!==e.cb&&(c.cb=e.cb)),"filter"!==t&&"clip"!==t&&"loop"!==t&&(void 0!==e.xRe&&(c.xRe=parseInt(e.xRe)),void 0!==e.yRe&&(c.yRe=parseInt(e.yRe)),c.off=e.off??0),"loop"!=t||"all"!==s&&"motionpath"!==s||(c.aR=e?.aR??!1,c.mpt=e?.mpt??"d",(e.anchors||e.path)&&(c.path=e.path??(e.anchors?_tpt.motionPath.rawPathToString(_tpt.motionPath.arrayToRawPath(e.anchors,{curviness:parseInt(e.curv)||2,relative:!0,type:"thru"})):""))),"all"!=s||"glb"!=l&&"3dobject"!=l&&"light"!=l||(c.sZ=e.sZ??1,Array.isArray(e.z)||(c.z="string"==typeof e.z&&e.z.indexOf(",")>=0?e.z.split(",").map(function(e){return"#a"===e||""===e||isNaN(Number(e))?"#a":Number(e)}):["#a",e.z??0,"#a","#a","#a"])),"all"==s&&"light"==l){var u=function(e,t){return Array.isArray(e)?e:"string"==typeof e&&e.indexOf(",")>=0?e.split(",").map(function(e){return"#a"===e||""===e||isNaN(Number(e))?"#a":Number(e)}):["#a",null==e||null===e?t:e,"#a","#a","#a"]};
28c.tX=u(e.tX,0),c.tY=u(e.tY,0),c.tZ=u(e.tZ,0),c.lInt=u(e.lInt,1),c.lAng=u(e.lAng,35)}return"all"!=s||"glb"!=l&&"3dobject"!=l||(c.aClip=Array.isArray(e.aClip)?e.aClip:["#a",e.aClip??"inherit","#a","#a","#a"],c.aProg=Array.isArray(e.aProg)?e.aProg:["#a",e.aProg??0,"#a","#a","#a"]),"all"==s&&"3dworld"==l&&(c.fov=e.fov??["#a",45,"#a","#a","#a"],c.tX=e.tX??["#a",0,"#a","#a","#a"],c.tY=e.tY??["#a",0,"#a","#a","#a"],c.tZ=e.tZ??["#a",0,"#a","#a","#a"],c.cX=e.cX??["#a",0,"#a","#a","#a"],c.cY=e.cY??["#a",0,"#a","#a","#a"],c.cZ=e.cZ??["#a",500,"#a","#a","#a"],c.sX=[1,1,1,1,1],c.sY=[1,1,1,1,1],Array.isArray(c.fov)||(c.fov=["#a",c.fov??45,"#a","#a","#a"]),["cX","cY","cZ","tX","tY","tZ"].forEach(function(e){Array.isArray(c[e])||(c[e]=["#a",c[e]??0,"#a","#a","#a"])}),c.arcH=e.arcH??0,c.arcV=e.arcV??0,c.camRoll=e.camRoll??0,c.rZ=0),c},SR7.D.getBGAnim=function(e={}){null==e&&(e={});var t={};if("7.0"==e.v?((SR7.E.backend||void 0!==e.d)&&(t.d=parseInt(e.d??1e3)),(SR7.E.backend||void 0!==e.sd)&&(t.sd=e.sd??75),(SR7.E.backend||void 0!==e.tr)&&(t.tr=e.tr??"basic"),t.e=e.e??e?.in?.e??"power2.inOut",t.dir=e.dir??"default"):(t.addOns?.tpack?.ref&&(t.addOns.tpack.ref=100*parseFloat(t.addOns.tpack.ref||.3)),t.d=e?.ms??e?.speed??1e3,t.sd=parseInt(t.d)/parseInt(e?.d??15)*10,(SR7.E.backend||void 0!==e.e)&&(t.tr=e.e??"basic"),t.e=e?.in?.e??"power2.inOut",t.dir=e.f??"default"),void 0!==t.sd&&(t.sd=parseInt(t.sd)),t.t=0,t.rnd=e.preset||e.main?(e.preset??"").toLowerCase().startsWith("rnd")||(e.main??"").toLowerCase().includes("random"):"true"==String(e.random)||"true"==String(e.rnd),t.rnd||"true"==t.rnd)return t.rnd=!0,t.rndmain=e.rndmain??e.rndmain??"",t;t.temp={t:e?.temp?.t??e.title??"",p:e?.temp?.p??e.preset??"",m:e?.temp?.m??e.main??"",g:e?.temp?.g??e.group??""},t.addOns=e?.addOns??e.addOns??{},t.addOns?.tpack?.dbas&&(t.addOns.tpack.dir=null==t.addOns.tpack.dir||0==t.addOns.tpack.dir||1==t.addOns.tpack.dir?4:5,delete t.addOns.tpack.dbas),(SR7.E.backend||void 0!==e.o)&&(t.o=e.o??"inout"),(SR7.E.backend||void 0!==e.f)&&(t.f=e.f??"start"),(SR7.E.backend||void 0!==e.s)&&(t.s=e.s??1e3),(SR7.E.backend||void 0!==e.p)&&(t.p=e.p??"none"),"slidingoverlay"==t.tr&&(t.p="double",t.tr="basic"),(SR7.E.backend||void 0!==e.eng)&&(t.eng=e.eng??"animateCore"),(SR7.E.backend||void 0!==e.adpr)&&(t.adpr=e.adpr??!0),(SR7.E.backend||void 0!==e.d3)&&(e.d3??={},t.d3??={},(SR7.E.backend||void 0!==e.d3.f)&&(t.d3.f=e.d3.f??"none"),(SR7.E.backend||void 0!==e.d3.d)&&(t.d3.d=e.d3.d??"horizontal"),(SR7.E.backend||void 0!==e.d3.rm)&&(t.d3.rm=e.d3.rm??"board"),(SR7.E.backend||void 0!==e.d3.rd)&&(t.d3.rd=e.d3.rd??"auto"),(SR7.E.backend||void 0!==e.d3.z)&&(t.d3.z=e.d3.z??300),(SR7.E.backend||void 0!==e.d3.t)&&(t.d3.t=e.d3.t??0),(SR7.E.backend||void 0!==e.d3.c)&&(t.d3.c=e.d3.c??"#ccc"),(SR7.E.backend||void 0!==e.d3.e)&&(t.d3.e=e.d3.e??"power2.inOut"),(SR7.E.backend||void 0!==e.d3.fdi)&&(t.d3.fdi=e.d3.fdi??1.5),(SR7.E.backend||void 0!==e.d3.fdo)&&(t.d3.fdo=e.d3.fdo??2),(SR7.E.backend||void 0!==e.d3.fz)&&(t.d3.fz=e.d3.fz??0),(SR7.E.backend||void 0!==e.d3.su)&&(t.d3.su=e.d3.su??!1),(SR7.E.backend||void 0!==e.d3.smi)&&(t.d3.smi=e.d3.smi??0),(SR7.E.backend||void 0!==e.d3.sma)&&(t.d3.sma=e.d3.sma??.5),(SR7.E.backend||void 0!==e.d3.sc)&&(t.d3.sc=e.d3.sc??"#000"),(SR7.E.backend||void 0!==e.d3.sl)&&(t.d3.sl=e.d3.sl??1)),(SR7.E.backend||void 0!==e.filter)&&(e.filter??={},t.filter??={},(SR7.E.backend||void 0!==e.filter.u)&&(t.filter.u=e.filter.u??!1),(SR7.E.backend||void 0!==e.filter.e)&&(t.filter.e=e.filter.e??"default"),(SR7.E.backend||void 0!==e.filter.b)&&(t.filter.b=e.filter.b??0),(SR7.E.backend||void 0!==e.filter.g)&&(t.filter.g=e.filter.g??0),(SR7.E.backend||void 0!==e.filter.h)&&(t.filter.h=e.filter.h??100),(SR7.E.backend||void 0!==e.filter.s)&&(t.filter.s=e.filter.s??0),(SR7.E.backend||void 0!==e.filter.c)&&(t.filter.c=e.filter.c??100),(SR7.E.backend||void 0!==e.filter.i)&&(t.filter.i=e.filter.i??0),(SR7.E.backend||void 0!==e.filter.sa)&&(t.filter.sa=e.filter.sa??100)),void 0!==e.pp&&(t.pp=e.pp),void 0!==e.ppset&&(t.ppset=e.ppset),void 0!==e.ppt&&(t.ppt=e.ppt);for(let s of["in","out"])e[s]??={},"in"!=s&&"out"!=s||!SR7.E.backend&&void 0===e[s]||(t[s]??={},"in"==s?((SR7.E.backend||void 0!==e.in.mo)&&(t.in.mo=e.in.mo??80),(SR7.E.backend||void 0!==e.in.mou)&&(t.in.mou=e.in.mou??!1),(SR7.E.backend||void 0!==e.in.moo)&&(t.in.moo=e.in.moo??!1)):(SR7.E.backend||void 0!==e.out.a)&&(t.out.a=_tpt.tf(e[s].a??!0)),"out"==s&&!1!==_tpt.tf(e.out.a)?((SR7.E.backend||void 0!==e.in.o||void 0!==e.out.o)&&(t.out.o=e.out.o??(e.in.o??"slidingoverlay"==t.tr?0:1)),(SR7.E.backend||void 0!==e.in.x||void 0!==e.out.x)&&(t.out.x=e.out.x??i(e.in.x??0)),(SR7.E.backend||void 0!==e.in.y||void 0!==e.out.y)&&(t.out.y=e.out.y??i(e.in.y??0)),(SR7.E.backend||void 0!==e.in.r||void 0!==e.out.r)&&(t.out.r=e.out.r??e.in.r??0),(SR7.E.backend||void 0!==e.in.sx||void 0!==e.out.sx)&&(t.out.sx=e.out.sx??e.in.sx??1),(SR7.E.backend||void 0!==e.in.sy||void 0!==e.out.sy)&&(t.out.sy=e.out.sy??e.in.sy??1),(SR7.E.backend||void 0!==e.in.m||void 0!==e.out.m)&&(t.out.m=e.out.m??e.in.m??!1),SR7.E.backend&&(t.out.e=i(e.in.e??"power2.inOut")),(SR7.E.backend||void 0!==e.in.row)&&(t.out.row=e.in.row??1),(SR7.E.backend||void 0!==e.in.col)&&(t.out.col=e.in.col??1)):((SR7.E.backend||void 0!==e[s].o)&&(t[s].o=e[s].o??1),(SR7.E.backend||void 0!==e[s].x)&&(t[s].x=e[s].x??0),(SR7.E.backend||void 0!==e[s].y)&&(t[s].y=e[s].y??0),(SR7.E.backend||void 0!==e[s].r)&&(t[s].r
28=e[s].r??0),(SR7.E.backend||void 0!==e[s].sx)&&(t[s].sx=e[s].sx??1),(SR7.E.backend||void 0!==e[s].sy)&&(t[s].sy=e[s].sy??1),(SR7.E.backend||void 0!==e[s].m)&&(t[s].m=e[s].m??!1),"in"!==s&&(SR7.E.backend||void 0!==e[s].e)&&(t[s].e=e[s].e??"power2.inOut"),(SR7.E.backend||void 0!==e[s].row)&&(t[s].row=e[s].row??1),(SR7.E.backend||void 0!==e[s].col)&&(t[s].col=e[s].col??1)));return(SR7.E.backend||void 0!==e.addOns)&&(t.addOns=e.addOns??SR7.D.getBGAnim_Addons()),Array.isArray(t.addOns)&&0===t.addOns.length&&(delete t.addOns,t.addOns={}),t.v=e.v??"7.0",t.a=e.a??"BG Animation",t},SR7.D.getBGAnim_Addons=function(){return{}},SR7.D.reverseInBG=function(e){if(String(e).endsWith(".out"))return e.replace(/\.out$/,".in");if(String(e).endsWith(".in"))return e.replace(/\.in$/,".out");if(String(e).endsWith(".Out"))return e.replace(/\.Out$/,".In");if(String(e).endsWith(".In"))return e.replace(/\.In$/,".Out");if(String(e).endsWith("easeOut"))return e.replace(/\.out$/,"easeIn");if(String(e).endsWith("easeIn"))return e.replace(/\.in$/,"easeOut");if(String(e).includes("{"))return e;if(String(e).includes("[")){e=(e=e.replaceAll("[","").replaceAll("]","")).split(",");let t="[";return e.forEach(function(e){const s=(""+e).includes("%"),i=(""+e).includes("px");e.includes("(")?(e=e.replaceAll("(","").replaceAll(")",""),t+="("+-1*parseFloat(e)+(s?"%":i?"px":"")+")"):t+=-1*parseInt(e)+(s?"%":i?"px":""),t+=","}),t=t.slice(0,-1)+"]",t}let t=String(e).includes("(");if(t&&(e=e.replaceAll("(","").replaceAll(")","")),!isNaN(parseFloat(e))){const s=(""+e).includes("%"),i=(""+e).includes("px");e=parseFloat(e);let a=-parseFloat(e)+(s?"%":"")+(i?"px":"");return t?"("+a+")":a}return e};const i=SR7.D.reverseInBG;_tpt.R??={},_tpt.R.defaults=_tpt.extend?_tpt.extend(_tpt.R.defaults,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F=SR7.F||{},void 0!==SR7.F.drawBG)return;SR7.F._bgCanvasReq??=new WeakMap,SR7.F.requireBgCanvas=function(e,t,s=!0){if(!e)return!1;e.bg??={};let i=SR7.F._bgCanvasReq.get(e);i||(i={req:{},orig:e.bg.fc},SR7.F._bgCanvasReq.set(e,i)),s?i.req[t]=!0:delete i.req[t];const a=Object.keys(i.req).length>0;return e.bg.fc=!!a||i.orig,a},SR7.F.drawBG=function(e,t,s,i="canvas"){if(null==e||null==e)return{};let{c:a,layer:r,id:n}=SR7.F.getLayer?SR7.F.getLayer(e.id):{c:void 0,skey:void 0},o=null==t.image||"color"===t.type||"false"===String(t.image.u);s&&(e.style.background="",e.style.backgroundImage="",e.style.backgroundColor=""),(o||""==(t.image.src??""))&&(t.color??="#000000",o=!0),i="slidebg"===a?.subtype&&o?"canvas":i;const l=o?"":_tpt.urlProtocol(t.image.src);if(a?.canvas?._imageRequest&&(o||"canvas"!==i||a.canvas._imageRequest.src!==l)&&delete a.canvas._imageRequest,t.color)if("canvas"!==i||!o&&"slidebg"!==a.subtype){if("object"==typeof t.color&&(t.color=_tpt.gradient.process(t.color,!0)),s&&!a?.bgByCSS){let s=("object"==typeof t.color?t.color.string:t.color)+("none"!==(t.bClip??"none")?" "+t.bClip:"");"true"==String(e.dataset.needColorBg)&&(e.parentNode.getElementsByTagName("SR7-COL-BG")[0].style.background=s),e.style.background=s}}else"canvas"!=i||/*!SR7.E.backend ||*/"slidebg"===a.subtype&&!o||(null!=a&&null!=a.canvas||(a??={},a.canvas=new SR7.F.canvas({wrap:e,useFor:"BGContentColor",color:SR7.E.backend&&"string"==typeof t.color?_tpt.gradient.convert(t.color):t.color,ctx:"2d",overlay:t.overlay})),SR7.E.backend&&(a.canvas.color="string"==typeof t.color?_tpt.gradient.convert(t.color):t.color),a.canvas.mesh=t.mesh,a.canvas.moving="none"!==(t.mot?.a??"none"),a.canvas.drawColored());{const s=SR7.F.bgColorCSS(t.color),a="none"!==(t.mesh?.k??"none"),r=a?SR7.F.bgMeshCSS?.(t.mesh):s.includes("gradient")?s:void 0,n=a&&"canvas"!==i;SR7.F.bgColorEl?.(e,r,t.mot,n),SR7.F.bgGrainEl?.(e,"canvas"!==i||n||"none"!==(t.mot?.a??"none")?t.mesh?.gr:0)}var d;if(!o)if(t.image.repeat=_tpt.tf(t.image.rx)&&_tpt.tf(t.image.ry)?"repeat":_tpt.tf(t.image.rx)?"repeat-x":_tpt.tf(t.image.ry)?"repeat-y":"no-repeat","bg"===i)e.style.backgroundImage="url('"+_tpt.urlProtocol(t.image.src.replaceAll("â¯","%e2%80%af"))+"')"+(e.style.backgroundImage.indexOf("gradient")>=0?","+e.style.backgroundImage:""),_tpt.gsap.set(e,{backgroundSize:t.image.size,backgroundRepeat:t.image.repeat,backgroundPosition:parseInt(t?.image?.pos?.x??0)+"% "+parseInt(t?.image?.pos?.y??0)+"%"});else if("element"===i){var c=document.createElement("sr-container");e.insertBefore(c,e.children[0]),c.style.backgroundImage="url('"+_tpt.urlProtocol(t.image.src.replaceAll("â¯","%e2%80%af"))+"')"+ +(c.style.backgroundImage.indexOf("gradient")>=0?","+c.style.backgroundImage:""),_tpt.gsap.set(c,{width:"100%",height:"100%",position:"absolute",top:0,left:0,backgroundPosition:parseInt(t.image.pos.x)+"% "+parseInt(t.image.pos.y)+"%",backgroundSize:t.image.size,backgroundRepeat:t.image.repeat})}else if("canvas"===i&&""!==t.image.src)if(a?.canvas&&a.canvas.wrap!==e&&(a.canvas.wrap=e,e.prepe
28nd(a.canvas.canvas)),SR7.E.backend&&a.canvas&&(a.canvas.size=t.image.size,a.canvas.pos=t.image.pos,a.canvas.repeat=t.image.repeat),null==a||null==a.canvas||null==a.canvas.canvas||null==a.canvas.image||SR7.E.backend&&a.canvas.image.src!==l&&a.canvas.image._tptFallbackUrl!==l){a??={},a.canvas??=new SR7.F.canvas({wrap:e,useFor:"BGContentImage",ctx:"2d",create:!0,overlay:t.overlay,size:t.image.size,pos:t.image.pos,repeat:t.image.repeat});const s=a.canvas,i=s._imageRequest={src:l};s.ctx.clearRect(0,0,s.canvas.width,s.canvas.height);const o=SR7.FX?.live?.[n+":"+a.lkey];o?._fxContent&&(o.canvas.style.visibility="hidden",e.removeAttribute("data-sr-fx-active"),e.style.visibility=o._fxContentPrev||""),d=new Promise(o=>{_tpt.registerImage(t.image.src,1,function(t){requestAnimationFrame(function(){if(a.canvas!==s||s._imageRequest!==i||s.wrap!==e||null!=n&&SR7.F.getLayer(e.id)?.c!==a)o();else{delete s._imageRequest;try{if(a.canvas.image=t.image,"image"===r?.subtype&&t.image&&(a.imgWidth=t.width??t.image.naturalWidth??a.imgWidth,a.imgHeight=t.height??t.image.naturalHeight??a.imgHeight,a.imgWidth&&a.imgHeight&&(a.aspectRatio=a.imgWidth/a.imgHeight,SR7.F.positionLayer(e.id))),SR7.E.backend?a.canvas.drawImg(void 0,void 0,!0):a.canvas.drawImg(),"image"===r?.subtype&&null!=n&&null!=a.lkey&&(SR7.E.backend||SR7.FX?.live?.[n+":"+a.lkey])&&SR7.F.fx?.timeline){const e=SR7.FX?.live?.[n+":"+a.lkey]?._fxScene??(SR7.E.backend?SR7.editing?.scene:"in"),t=r.tl?.[e]?.effects?.all?.length?e:Object.keys(r.tl||{}).find(e=>r.tl[e]?.effects?.all?.length);(t||_tpt.tf(r.surface?.u))&&SR7.F.fx.timeline({id:n,c:a,layer:r,scene:t||e})}}catch(e){console.log(e)}o()}})},e.id+"_"+Math.round(1e5*Math.random()),void 0,t.image.crossOrigin)})}else SR7.E.backend?a.canvas.drawImg(void 0,void 0,!0):a.canvas.drawImg();return a?.canvas?.wrap===e&&(a.canvas.canvas.style.borderRadius="inherit"),{canvas:a?.canvas?.canvas??void 0,promise:d,c:a}},SR7.F.attrId=e=>""==e||null==e?void 0:e;const e=(e,t)=>{if(null==t||-1==t)return;const s=SR7.M[e]?.slides?.[t]?.layers,i=SR7.M[e]?.c?.PO?.[t],a=SR7.M[e]?.zones?.[t];return s&&i&&a?{L:s,PO:i,zones:a}:void 0},t=(e,t,s)=>{requestAnimationFrame(function(){SR7.F.getZoneHeights(e,t)!==s.cache&&SR7.F.updateModuleDims(e,!0)})};SR7.F.drawRawLayers=function(s,i,a){const r=e(s,i);if(!r)return;const{L:n,PO:o,zones:l}=r;l.cache=l.all;for(let e in o){if(!_tpt.hop(o,e))continue;const t=o[e];void 0!==n[t]&&SR7.F.drawRawLayer(SR7.F.attrId(n[t].attr?.id)??s+"-"+i+"-"+n[t].id,a,i)}t(s,i,l)};const s=(e,t,s)=>{const i=parseFloat(e),a="none"!==s?parseFloat(s):NaN,r="none"!==t?parseFloat(t):NaN;return isNaN(i)?e:!isNaN(a)&&i<a?s:!isNaN(r)&&i>r?t:e},i=(e,t,s,i,a,r)=>t!==(s=_tpt.divSize(SR7.gV({v:s,id:i,f:a,m:"round",s:"scale"})))?(r.style[e]=s&&"none"!==s?s:"",s):t,a=(e,t,i,a,r,n)=>String(e).includes("%")?s(parseFloat(n),a,r)*parseFloat(e)/100/t*i:isNaN(parseFloat(e))?"auto":s(parseFloat(e),a,r)/t*i;SR7.F.resetOrigins=function(e,t,s){return(SR7.E.backend||s)&&(e.transferOrigins={target:t.tl?.in?.content?.orig?(t.tl.in.content.orig.x??"50%")+" "+(t.tl.in.content.orig.y??"50%")+" "+(_tpt.unitize(t.tl.in.content.orig.z)??"50%"):void 0,loop:e.loop&&(t.tl?.in?.loop?.orig?(t.tl.in.loop.orig.x??"50%")+" "+(t.tl.in.loop.orig.y??"50%")+" "+(_tpt.unitize(t.tl.in.loop.orig.z)??"50%"):void 0)}),e.transferOrigins?.target&&e.el.style.transformOrigin!==e.transferOrigins.target&&(e.el.style.transformOrigin=e.transferOrigins.target.split(" ").slice(0,2).map(e=>e.includes("%")?e:e+"%").join(" ")),e.loop&&e.transferOrigins?.loop&&e.loop.style.transformOrigin!==e.transferOrigins.loop&&_tpt.gsap.set(e.loop,{transformOrigin:e.transferOrigins.loop}),e.transferOrigins},SR7.F.drawRawLayer=function(e,t,o,l){var{layer:d,el:c,c:p,id:u,skey:h,lkey:g}=SR7.F.getLayer(e);if(!p&&!d)return;if("hover"==p.cache?.hover?.requested)return;var m=SR7.M[u],f=[];let S,y;p.LME=p.addonWrap?"addonWrap":p.parallax?"parallax":p.loop?"loop":p.mask?"mask":"el",p.target??="column"!==d.subtype?p[p.LME]:c,SR7.E.backend&&(p.editVals??={},p.editVals={...p.editVals,con:{},el:{},row:{},column:{}});const v=Array.isArray(d?.bg?.image?.srcs),R=void 0!==p.bgImageSrc&&void 0!==d?.bg?.image,b=R?p.bgImageSrc:v?SR7.F.imgSrc(u,d.bg.image):d?.bg?.image?.src,w=v||R?{...d.bg,image:{...d.bg.image,src:b}}:d?.bg;p.useAsImage=(void 0===d.tl?.in?.pan||!0===d.tl.in.pan.d)&&("image"===d.subtype||"text"!==d.type&&"column"!==d.subtype&&"row"!==d.subtype&&"video"!==d.subtype&&"slidebg"!==d.subtype&&""!==b&&"false"!==String(d?.bg?.image?.u)&&b?.length>3),p.minMaxCon??="row"!==d.subtype&&"column"!==d.subtype||!p.con?p.target:p.con;const x=_tpt.tf(d.fluid?.tr??void 0);let _=_tpt.divSize(SR7.gV({v:d.size.w,id:u,f:x,m:"round",s:"scale"})),F=_tpt.divSize(SR7.gV({v:d.size.h,id:u,f:x,s:"scale"}));if(!SR7.E.backend||"group"!==p.subtype&&"column"!==p.subtype||p.skey!=SR7.editing.slide||(0==SR7.layer.getChildren(SR7.editing.slide,p.lkey).length?("auto"==_&&"auto"==F&&
28("group"===p.subtype&&(_="300px"),F="55px"),p.noChildren=!0):p.noChildren=!1),"auto"==_&&"auto"==F&&p.image)if(p.imgHeight&&p.imgWidth){F=p.imgHeight*m.MP,_=p.imgWidth*m.MP;let e=(p.par?.cw??0)-((p.par?._pLeft??0)+(p.par?._pRight??0)),t=(p.par?.ch??0)-((p.par?._pTop??0)+(p.par?._pBottom??0));_>e&&e>0?(_=e,F=p.imgHeight/p.imgWidth*_):F>t&&t>0&&(F=t,_=p.imgWidth/p.imgHeight*F)}else p.aspectRatio<1?(_="auto",F="100%"):(_="100%",F="auto");p.display=SR7.gV({v:d.display,id:u});let k=!("prepare"!==t&&"animated"===p.state&&"idle"!=(p.cache?.color?.from??"idle")||p.global&&"in"==p.gpos&&"idle"!==(p.cache?.color?.from??"idle")&&void 0!==(p.cache?.color?.c??void 0)),M=!("prepare"!==t&&"animated"===p.state||p.global&&"in"==p.gpos&&"idle"!==(p.cache?.color?.bgfrom??"idle")&&void 0!==(p.cache?.color?.bg??void 0));if(d.fluid.tx=_tpt.tf(d.fluid.tx),d.fluid.sp=_tpt.tf(d.fluid.sp),d.fluid.po=_tpt.tf(d.fluid.po),d.fluid.tr=_tpt.tf(d.fluid.tr),"text"===d.type){const e=d.font.family.replaceAll("'","");c.style.fontFamily=CSS.supports("font-family",e)?e:"'"+e+"'",("default"==d.uS&&m.settings.uS||"true"==String(d.uS))&&(c.style.userSelect="text"),"none"!==(d.bg.tFCol??"none")?c.style.webkitTextFillColor=d.bg.tFCol:SR7.E.backend&&(c.style.webkitTextFillColor=""),c.style.fontSize=_tpt.unitize(SR7.gV({v:d.font.size,id:u,f:d.fluid.tx,m:"round",s:"scale",a:!0})),c.style.fontWeight=d.font.weight,(k||SR7.E.backend||p.lastIdleColor!==SR7.gV({v:d.color,id:u}))&&(c.style.color=SR7.gV({v:d.color,id:u}),p.lastIdleColor=c.style.color,SR7.F.cache(p.cache,"color",["c","from"],[c.style.color,"idle"])),c.style.textTransform=d.content.trans,c.style.textDecoration=d.content.deco,c.style.letterSpacing=SR7.gV({v:d.font.ls,id:u,u:"px",f:d.fluid.tx,s:"scale"}),void 0!==d.tShdw&&d.tShdw.use?c.style.textShadow=SR7.F.shadowCSS(u,d,d.tShdw,!1):SR7.E.backend&&(c.style.textShadow="none"),void 0!==d.tStroke&&d.tStroke.use?c.style.webkitTextStroke=SR7.gV({v:d.tStroke.w,id:u,u:"px",f:d.fluid.tx})+" "+d.tStroke.c:SR7.E.backend&&(c.style.webkitTextStroke=""),p.metas??=SR7.F.updateBasicMetas(u,p,h),_tpt.tf(d.font.style)?c.style.fontStyle="italic":SR7.E.backend&&(c.style.fontStyle="normal"),p.fontStr=`${c.style.fontStyle} ${c.style.fontWeight} ${c.style.fontSize} '${c.style.fontFamily}'`,!0!==p.waitOnFont&&(p.waitOnFont=!0,p.timer=null==p.timer?_tpt.network?.getFallbackTimeout?.({base:325,max:5e3})??325:p.timer,f.push(_tpt.checkFontLoaded(c.style.fontFamily,c.style.fontWeight,c.style.fontStyle,p.timer)),c.innerHTML.includes('class="material-icons')&&f.push(_tpt.checkFontLoaded("Material Icons",c.style.fontWeight,c.style.fontStyle,375)),c.innerHTML.includes('<i class="fa-')&&f.push(_tpt.checkFontLoaded("FontAwesome",c.style.fontWeight,c.style.fontStyle,175)),c.innerHTML.includes('<i class="pe-7s-')&&f.push(_tpt.checkFontLoaded("Pe-icon-7-stroke",c.style.fontWeight,c.style.fontStyle,175)))}if("container"===d.type||"text"===d.type){c.style.lineHeight=_tpt.unitize(SR7.gV({v:d.lh,id:u,f:d.fluid.tx,m:"round",s:"scale"}));const e=SR7.gV({v:d.tA,id:u,u:0});c.style.textAlign=e;for(const t of p.splitText?.lines??[])t.style.textAlign=e;let t=SR7.gV({v:d.ws,id:u});if(t="full"===t?"normal":t,p.maw=i("maxWidth",p.maw,d.size.mm?d.size.maxW:"none",u,x,p.minMaxCon),t="normal"==t&&p.maw&&"none"!==p.maw?"normal":"normal"===t&&"auto"===_&&"justify"!==e&&("column"!==p.ptype&&"group"!==p.ptype||"relative"!==d.pos.pos)||"content"==t?"nowrap":t,void 0!==t&&(c.style.whiteSpace=t),"text"===d.type&&(c.style.overflowWrap="normal"===t&&String(d.content?.text).includes("{{")?"break-word":""),"text"===d.type){const e=(parseFloat(d.ico?.s)||100)/100,t=parseFloat(d.ico?.g)||0,s=1!==e||0!==t;c.classList.toggle("sr7-ico",s),s?c.style.setProperty("--sr7-ico-s",e):c.style.removeProperty("--sr7-ico-s"),t?c.style.setProperty("--sr7-ico-g",(t/(parseFloat(SR7.gV({v:d.font.size,id:u}))||20)/e).toFixed(3)+"em"):c.style.removeProperty("--sr7-ico-g"),t&&SR7.F.text.icons(c)}}let C,E=d.radius&&("video"===d.type||"video"===d.subtype);if(d.fHOF?(p[p.mask?"mask":"el"].style.overflow="hidden",p.oflow="hidden"):(void 0!==p.oflow||E)&&(p[p.mask?"mask":"el"].style.overflow=E||p.useAsImage&&d.image?.style?"hidden":d?.tl?.[p?.animState?.scene]?.mask?p.mask?"hidden":"visible":p.oflow),void 0!==d.bShdw&&d.bShdw.use?p[SR7.F.shadowTarget(p,d)].style.boxShadow=SR7.F.shadowCSS(u,d,d.bShdw,!0):SR7.E.backend&&(p[SR7.F.shadowTarget(p,d,!0)].style.boxShadow="none"),void 0!==d.bF&&(0!==parseInt(d.bF)||SR7.E.backend&&0!==(p.changedBF??0))&&(p.changedBF=parseInt(d.bF),p.el.style.backdropFilter=0==d.bF?"none":"blur("+d.bF+"px)"),(void 0!==d.glass||p.glassEl)&&SR7.F.drawGlass(p,d,u+"_"+(d.id??"x"),m?.LEV),(void 0!==d.pblur||p.pblurEl)&&SR7.F.drawPBlur(p,d),SR7.F.drawGlow&&(void 0!==d.glow||p.glowEl)&&SR7.F.drawGlow(p,d,u),"group"===d.subtype&&["navgroup","idle","active"].includes(d.nF)&&(c.style.lineHeight="0px"),"column"===d.subtype||"row"===d.subtype)for("column"===d.subtype?(d.break=parseInt(m.slides[h].layers[d.pid].break),!m.slides[h].layers[d.pid].uGap||!SR7.E.backend&&p.colOrder?SR7.E.backend?p.gap=-1:p.gap??=-1:(p.break=d.break,p.cols=SR7.F.getColOrder(u,h,d.pid),p.colOrder=p.c
28ols.find(e=>String(e.id)===String(d.id)).idx,p.uGap=parseInt(SR7.gV({v:m.slides[h].layers[d.pid].gaps,id:u,u:0,m:"round"}))||0,p.gap=_tpt.gapCalc(p.cols.length,p.uGap,p.colOrder)),"1/1"!==d.size.col&&(null==d.break||d.break>m.LEV)?(String(d.size.col).indexOf("/")>=0?(_=d.size.col.split("/"),_=100/parseInt(_[1])*_[0]+"%"):_=parseFloat(d.size.col)+"%",p.display="table-cell"):(_="100%",p.display="block")):p.con?(p.conDisplay=null==d.break||d.break>m.LEV?"table":"block","row"===d.subtype&&p.mask&&(_="100%")):(p.display=null==d.break||d.break>m.LEV?"table":"block",_="100%"),S=0;S<4;S++){let e="column"===d.subtype&&-1!==p.gap?d.break>m.LEV?1==S?p.gap.r:3==S?p.gap.l:0:2==S&&p.colOrder<p.cols.length-1?p.uGap:0:SR7.gV({v:d.m?.[SR7.D.DS[S]]??0,id:u,u:0,f:d.fluid.sp,m:"round"}),t=SR7.gV({v:d.p?.[SR7.D.DS[S]]??0,id:u,u:0,f:d.fluid.sp,m:"round"}),s=parseInt(e)+parseInt("row"!==d.subtype||1!=S&&3!=S||"slide"===d.rTo||SR7.F.isCarousel(u)&&!m.settings.carousel.stretch&&!m.slides[h].slide.global?0:p.con["margin"+SR7.D.DL[S]]=m.dims.CFC.x)+"px";p.el.style["padding"+SR7.D.DL[S]]=s,p["rp"+SR7.D.DS[S]]=parseInt(s),p[p.con?"con":"el"].style["padding"+SR7.D.DL[S]]=t+"px","container"===p.type&&(p["_p"+SR7.D.DL[S]]=parseInt(s)),p.colbg&&(p.colbg.style[SR7.D.DL[S].toLowerCase()]=s,p.colbgMask&&(p.colbgMask.style[SR7.D.DL[S].toLowerCase()]="0px")),p.editVals&&(p.editVals[d.subtype]["padding"+SR7.D.DL[S]]=t+"px",p.editVals[d.subtype]["margin"+SR7.D.DL[S]]=e+"px")}else{let e;for(y of SR7.D.spacings)if("absolute"!=d.pos.pos&&"fullinset"!=d.size.cMode||"margin"!=y)for(S=0;S<4;S++)p["padding"!==y?p.LME:"el"].style[y+SR7.D.DL[S]]=e=(void 0!==d[y[0]]&&void 0!==d[y[0]][SR7.D.DS[S]]?SR7.gV({v:d[y[0]][SR7.D.DS[S]],id:u,u:0,f:d.fluid.sp,m:"round",s:"padding"==y?"scale":"inherit"}):0)+"px","0px"!==e&&(C=!0),p.editVals&&(p.editVals.el[y+SR7.D.DL[S]]=e)}"absolute"==d.pos.pos&&"fullinset"==d.size.cMode?(p.target.style.width="auto",p.target.style.height="auto"):(p.imgtype=p.useAsImage?p.imgHeight>p.imgWidth?"portrait":p.imgHeight<p.imgWidth?"landscape":void 0:void 0,p.aspectRatio??=p.media&&p.media?.player?.aspectRatio?p.media.player.aspectRatio:p.canvas?.canvas?.image?p.canvas.canvas.naturalWidth/p.canvas.canvas.naturalHeight:void 0,p.mih=i("minHeight",p.mih,d.size.mm?d.size.minH:"none",u,x,p.minMaxCon),p.miw=i("minWidth",p.miw,d.size.mm?d.size.minW:"none",u,x,p.minMaxCon),p.mah=i("maxHeight",p.mah,d.size.mm?d.size.maxH:"none",u,x,p.minMaxCon),p.maw=i("maxWidth",p.maw,d.size.mm?d.size.maxW:"none",u,x,p.minMaxCon),p.w="auto"!==_?_:"shape"===d.type&&p.useAsImage&&p.imgHeight?((e,t)=>"auto"==t?s(e.imgWidth,e.maw,e.miw):a(t,e.imgHeight,e.imgWidth,e.mah,e.mih,e.par?.rch??e.par?.ch))(p,F):"absolute"==d.pos.pos&&"text"!==d.type&&"group"!==d.subtype?p.useAsImage?"landscape"===p.imgtype?"100%":"auto":"100%":"auto",p.h="fullheight"==d.size.cMode||"cover"==d.size.cMode||"cover-proportional"==d.size.cMode?"100%":"auto"==F&&"shape"===d.type&&p.useAsImage&&p.imgHeight?((e,t)=>"auto"==t?s(e.imgHeight,e.mah,e.mih):a(t,e.imgWidth,e.imgHeight,e.maw,e.miw,e.par?.rcw??e.par?.cw))(p,_):F,p.h="-1"==String(p.h)?"auto":p.h,p.target.style.width=-1==d.pid&&"slide"!==d.rTo?"auto"==p.w?"none"!=p.maw&&p.maw?p.maw:"auto":_tpt.posToNum(_tpt.unitize(p.w),m.dims.CFC?.[o]?.w??m.dims.CFC.w)+"px":_tpt.unitize(p.w),p.target.style.height=-1==d.pid&&"slide"==d.rTo&&"100%"==F&&SR7.F.isStickyTop(m)&&m.settings.size.fullHeight?_tpt.winH+"px":-1==d.pid&&"slide"!==d.rTo&&"auto"!==p.h?_tpt.posToNum(_tpt.unitize(p.h),m.dims.CFC.h)+"px":"auto"!==p.h&&-1==d.pid&&"slide"==d.rTo?_tpt.posToNum(_tpt.unitize(p.h),m.fHVCarousel?m.dims.CFC.h:m.dims.content.h)+"px":_tpt.unitize(p.h,"px"),p.mask&&(p.loop||p.parallax)&&"absolute"==p.target.style.position&&(p.mask.style.height="100%",p.mask.style.width="100%"),"bg"==p.imageType&&p.image?.style&&(p.image.style.backgroundSize=p.w+" "+p.h)),-1!==d.pid&&(p.target.style.cssFloat=SR7.gV({v:d.pos.float,id:u}),"none"!==p.target.style.cssFloat&&"group"===p.par?.subtype&&p.par.el.classList.add("sr7-clear"),p.target.style.clear=SR7.gV({v:d.pos.clear,id:u}));let O="column"===d.subtype&&p.colbgMask?"colbgMask":"column"===d.subtype&&p.colbg?"colbg":"row"===d.subtype&&p.con?"con":"el",A="column"===d.subtype&&p.colbgMask?"colbgMask":"column"===d.subtype&&p.colbg?"colbg":"row"===d.subtype&&p.con?"con":"group"===d.subtype&&p.mask?"mask":"el";if(d.border){for(p[O].style.borderStyle=SR7.gV({v:d.border.s,id:u}),S=0;S<4;S++)p[O].style[SR7.D.BWID[S]]=_tpt.unitize(SR7.gV({v:d.border?.w?.[SR7.D.DS[S]]??0,id:u,f:x,m:"round"}));if(p.borderH??=parseInt(p[O].style.borderLeftWidth)+parseInt(p[O].style.borderRightWidth),p.borderV??=parseInt(p[O].style.borderTopWidth)+parseInt(p[O].style.borderBottomWidth),p.editVals)for(S=0;S<4;S++)p.editVals["row"===p.subtype||"column"===p.subtype?p.subtype:"el"][SR7.D.BWID[S]]=p[O].style[SR7.D.BWID[S]]}if(SR7.E.backend||"prepare"===t){if("container"===d.type&&"auto"==p.target.style.height&&"done"!==(m.c?.autoParents?.[h]??!1)&&(m.c.autoParents??={},m.c.autoParents[h]??=[],-1==m.c.autoParents[h].indexOf(g)&&m.c.autoParents[h].push(g)),d.border&&(p[O].style.borderColor=d.border.c),p.target.style.zIndex="zone"===d.subtype?d.zIndex&&-1!==d.zIndex?parseInt(d.zIndex)+1:(m?.zoneIndexe
28s?.[d.id]??100)+1:parseInt(d.zIndex)+("slidebg"===d.subtype?0:1),d?.spike?.use?(p.el.style.clipPath=SR7.F.getSpikePath(d.spike),SR7.E.backend&&p.el.classList.add("sr--spikeclip")):SR7.E.backend&&""!==p.el.style.clipPath&&(p.el.style.clipPath="",p.el.classList.remove("sr--spikeclip")),("normal"!==(d.blend??"normal")||SR7.E.backend)&&(p.target.style.mixBlendMode=d.blend),void 0!==d.radius)for(S=0;S<4;S++)void 0!==d.radius[SR7.D.DS[S]]&&(p[A].style[SR7.D.BRAD[S]]=_tpt.unitize(d.radius[SR7.D.DS[S]]),p[O].style[SR7.D.BRAD[S]]=_tpt.unitize(d.radius[SR7.D.DS[S]]));if(p.target.style.position=d.pos.pos,void 0!==p.mask&&void 0!==d.tr&&"slidebg"!==d.subtype&&(p.mask.style.transform="perspective(600px) rotate("+_tpt.unitize(d.tr.rZ??0,"deg")+") rotateY("+_tpt.unitize(d.tr.rY??0,"deg")+") rotateX("+_tpt.unitize(d.tr.rX??0,"deg")+")",p.mask.style.opacity=d.tr.o??1),d.cursor&&(p.target.style.cursor=d.cursor),p.state??="prepared",p.addonWrap&&p.parallax&&(p.parallax.style.visibility="inherit",p.parallax.style.display="block"),(p.addonWrap||p.loop||p.parallax)&&p.mask&&(p.mask.style.visibility="inherit",p.mask.style.display="block"),p.addonWrap&&p.loop&&(p.loop.style.visibility="inherit",p.loop.style.display="block"),"container"===d.type||"text"===d.type||"relative"==d.pos.pos){let e="container"!==d.type&&-1!==d.pid&&"relative"==d.pos.pos;c.style.verticalAlign=e?p.mask&&"shape"===p.type?"top":"inherit":d.vA,p.parallax?p.parallax.style.verticalAlign=e&&"shape"===p.type?"inherit":c.style.verticalAlign:p.mask&&(p.mask.style.verticalAlign=e&&"shape"===p.type?"inherit":c.style.verticalAlign)}}SR7.F.resetOrigins(p,d);const L=_tpt.tf(d?.vis?.[m.LEV]??!0)&&!(SR7.E.backend&&SR7.E.stageRules&&SR7.F.stageHides(u,h,d));if(L||"relative"!=d.pos.pos&&"inline-block"!=p.display||(p.display="none"),p.visibility=L?-1!==d.pid&&"zone"!==p.ptype?"inherit":"visible":"hidden","update"!==t||"animated"!=p.state&&"zone"!==p.subtype||(p.target.style.visibility=p.visibility),p.target.style.display=p.display,"relative"==d.pos.pos&&"inline-block"==p.display)if(p.lbreakafter??=document.createElement("sr7-lb-after"),SR7.gV({v:d.lbreak,id:u})){const e=p.target.parentNode,t=p.target.nextSibling;e.insertBefore(p.lbreakafter,t)}else p.lbreakafter&&p.lbreakafter.remove();else p.lbreakafter&&p.lbreakafter.remove();"container"===d.type&&(_tpt.tf(SR7.gV({v:d.vis,id:u})??!0)?p.target.className.includes("sr-force-hidden")&&p.target.classList.remove("sr-force-hidden"):p.target.classList.add("sr-force-hidden")),"linebreak"===p.type&&(p.target.style.clear="both"),"prepare"===t&&"transparent"==(d?.bg?.color??"")&&d?.codes?.css&&(d.codes.css.includes("background")||d.codes.css.includes("background-color"))&&(p.bgByCSS=!0),"el"!==p.LME&&"column"!==d.subtype&&(c.style.width="absolute"==d.pos.pos&&"fullinset"==d.size.cMode&&p.mask||(""+p.target.style.width).includes("%")?"100%":p.target.style.width,c.style.height="absolute"==d.pos.pos&&("fullinset"==d.size.cMode||p.media&&("video"===p.type||"video"===p.subtype)&&"auto"==p.h)&&p.mask||(""+p.target.style.height).includes("%")?"100%":p.target.style.height,c.style.display="block",c.style.visibility="inherit",p.prepared?"animated"==p.state&&(p[p.LME].style.visibility=p.visibility):p[p.LME].style.visibility="hidden",p.conDisplay&&(p[p.LME].style.width="100%")),R&&(d={...d,bg:{...d.bg,image:{...d.bg.image,src:b}}});const T=!SR7.E.backend&&!SR7.F.layerVisible(u,h,d);if(p.useAsImage&&!T)if(null==p.image||SR7.E.backend||p.lastIMGSrc!==b)if(p.lastIMGSrc=b,d.bg?.image?.seo&&!_tpt.tf(d.surface?.u)||"fullinset"!=d.size.cMode&&!p.w)p.image="pending",p.imageType="img","relative"==d.pos.pos||"auto"==_&&"auto"==F?f.push(n({layer:d,el:c,c:p,id:u,skey:h,src:b})):n({layer:d,el:c,c:p,id:u,skey:h,src:b});else{p.image="done",p.imageType="bg";const e=_tpt.tf(d.surface?.u)||!(!d.tl||!Object.keys(d.tl).some(e=>d.tl[e]?.effects?.all?.length&&!0!==_tpt.tf(d.tl[e].effects.d))),t=!SR7.E.backend&&!!SR7.M[u]?.settings?.watermark;let s=SR7.F.drawBG(c,{image:w.image,color:d?.bg?.color,overlay:w.overlay},!0,d.tl&&d.tl.in&&d.tl.in.bg||_tpt.tf(d.bg.fc)||e||t?"canvas":"bg").promise;s&&f.push(s),C&&(p.bgClip="content-box"),"relative"==d.pos.pos||"auto"==_||"auto"==F?f.push(n({layer:d,el:c,c:p,id:u,skey:h,src:b},!1)):n({layer:d,el:c,c:p,id:u,skey:h,src:b},!1)}else if(d.tl&&d.tl.in&&d.tl.in.bg){let e=SR7.F.drawBG("row"===d.subtype&&p.con?p.con:"column"===d.subtype&&p.colbg?p.colbg:p.el,w,!0,"canvas").promise;f.push(e)}if(!p.useAsImage||"audio"===d.type)if("slidebg"!==d.subtype&&("video"===d.type||"audio"===d.type||""!==(d.bg?.video?.src??""))||"slidebg"===d.subtype&&"video"===d.bg.type){if(SR7.E.backend&&_tpt.checkResources(["mediacss"]),p.mediaSettings="video"!==d.type&&"audio"!==d.type||void 0===d.content?.src?d.bg.video:d.content,!p.mediaPosterAdded)if(""!==p.mediaSettings?.poster?.src)if(!p.mediaPoster||"video"!==d.type&&"video"!==d.subtype){if("audio"!==d.type){let e=SR7.F.drawBG(p.el,{image:{src:p.mediaSettings.poster.src,size:"cover",pos:{x:"50%",y:"50%"}}},!0,"canvas").promise;
28e&&f.push(e)}}else{let e=SR7.F.drawBG(p.mediaPoster,{image:{src:p.mediaSettings.poster.src,size:d?.bg?.video?.cover??1?"cover":"contain",pos:{x:"50%",y:"50%"}}},!0,"bg").promise;e&&f.push(e)}else if("slidebg"===p.subtype){let e=SR7.F.drawBG(p.mediaPoster?p.mediaPoster:p.el,{color:"transparent"},!0,"canvas").promise;e&&f.push(e)}p.mediaPosterAdded=!0,null!=p.media||l&&!SR7.E.backend?void 0===p.media||void 0===p.media.updateSize||l&&!SR7.E.backend||(p._mediaSizeAfterPos=!0):(_tpt.is_mobile&&!0===(p.mediaSettings.poster?.insteadVideo??!1)?p.mediaContainer.remove():(null==p.mediaContainer&&(p.mediaContainer??=_tpt.collector().add({tag:"sr7-media",class:"sr7-media",id:p.lid+("audio"===d.type?"_audio":"_video")}),c.appendChild(p.mediaContainer)),p.media=new SR7.videoPlayer(p.mediaContainer,p.el,_tpt.extend({type:"audio"===d.type?"audio":p.mediaSettings.type,subtype:d.subtype,width:c.style.width,height:c.style.height,inline:"slidebg"===d.subtype||p.mediaSettings.inline,target:p.target},p.mediaSettings)),void 0!==m.states.globalMute&&(p.media.player.options.mute="mute"==m.states.globalMute),m.globalMuted&&(p.media.player.options.mute=!0),f.push(p.media.add())),"relative"==d.pos.pos&&(p.mediaContainer.style.position="relative"))}else if(T&&(b??"").length>3&&"false"!==String(d.bg?.image?.u));else if(d.tl&&d.tl.in&&d.tl.in.bg||d.tl?.in?.pan&&!d?.tl?.in?.pan?.d){"slidebg"!==p.subtype||!m.settings?.bg?.overlay?.type||_tpt.tf(m.settings.bg.overlay.top)||d.bg.overlay?.type||(d.bg.overlay=m.settings.bg.overlay);let e=SR7.F.drawBG("row"===d.subtype&&p.con?p.con:"column"===d.subtype&&p.colbg?p.colbg:p.el,w,!0,"canvas").promise;e&&f.push(e)}else SR7.E.backend&&p.colbg&&"column"===d.subtype&&(p.el.style.background=""),f.push(SR7.F.drawBG("row"===d.subtype&&p.con?p.con:"column"===d.subtype&&p.colbg?p.colbg:p.el,w,M||SR7.E.backend||p.lastBGColor!==d.bg?.color,_tpt.tf(d.bg.fc)?"canvas":"bg").promise),null==d.bg.image&&M&&SR7.F.cache(p.cache,"color",["bg"],[d.bg.color]),p.lastBGColor=d.bg?.color;if(!p.dOverlay&&!p.canvas?.overlay&&SR7.F.addOverlay&&"none"!==(d.bg?.overlay?.type??"none")&&(p.mediaSettings||"shape"===d.type&&"slidebg"!==d.subtype&&"custom"!==d.subtype)&&(p.dOverlay=SR7.F.addOverlay(d.bg.overlay),p.el.appendChild(p.dOverlay)),"svg"===d.type&&p.svg?.style){const e=SR7.F.shadowCSS(u,d,d.sShdw,!1,0,!0);""!==e?p.svg.style.filter=e.split(/,(?![^(]*\))/).map(e=>"drop-shadow("+e+")").join(" "):p.svg.style.filter&&(p.svg.style.filter="")}"svg"===d.type&&null==p.svg&&(p.svg="loading",_tpt.getSVG(d.content.src,function(t){if(void 0!==t&&null!=t&&""!=t){if(c.innerHTML=t.innerHTML,p.svg=c.getElementsByTagName("svg")[0],p.svgLastSource=d.content.src,p.svg?.innerHTML){p.svg.innerHTML=p.svg.innerHTML.replaceAll("#SVGID_1_","#SVGID_1_"+p.el.id);let e=p.svg.getElementById("SVGID_1_");e&&(e.id="SVGID_1_"+p.el.id),r(p.svg)}SR7.F.positionLayer(e,o),SR7.F.drawSVG(u,d.content,p)}else p.svg="failed"}));for(let s of SR7.F.addonOrder(d.addOns))_tpt.hop(d.addOns,s)&&SR7.A?.[s]?.drawLayer&&SR7.A[s].drawLayer(e,t);if(SR7.F.positionLayer(e,o),"backupdate"===t&&SR7.F.surface?.draw({id:u,c:p,layer:d}),p._mediaSizeAfterPos&&p.media?.updateSize&&(p._mediaSizeAfterPos=!1,p.media.updateSize(c.style.width,c.style.height,p.mediaSettings?.cover??1?"cover":"contain")),p.prepared||(m.c.reposLayers??=[],m.c.reposLayers.push(e)),p.prepared="backupdate"===t||"group"!==d.subtype||!l,"update"===t&&"slidebg"!==p.subtype){const e=p.animState.scene,t=p.tl[e]?.TL;let s=t?.time?.();const i="out"===e&&SR7.F.sbt?.storyMode?.(u)&&!t?.data?.sbtArmed;void 0===s||i||t.invalidate().render(s,!0,!0)}return f};const r=e=>{const t="svg_"+Math.random().toString(36).substr(2,9)+"_";e.querySelectorAll("[id]").forEach(s=>{const i=s.id,a=t+i;s.id=a,e.querySelectorAll("*").forEach(e=>{["fill","stroke","clip-path","mask","filter","style"].forEach(t=>{if(e.hasAttribute(t)){const s=e.getAttribute(t);if(s?.includes(`url(#${i})`)){const r=s.replace(`url(#${i})`,`url(#${a})`);e.setAttribute(t,r)}}}),["xlink:href","href"].forEach(t=>{if(e.hasAttribute(t)){e.getAttribute(t)===`#${i}`&&e.setAttribute(t,`#${a}`)}})})})};SR7.F.makeSVGInnerIdsUnique=r,SR7.F.drawSVG=(e,t,s)=>{if(s.svg)if(s.svgPaths??=s.el.querySelectorAll(0==t.all?"path":"path, circle, ellipse, line, polygon, polyline, rect"),!0!==t.oC){let e=t.color;if(e&&"rgba(0,0,0,0)"!=e||(e="transparent"),t?.image?.u&&(t?.image?.src??"").length>5){const e=`sr7_pat_${t.__layerId||s.el.id}`;_tpt.createSVGPattern(s.svg,e,t.image),s.svgPaths.forEach(t=>{t.style.fill=`url(#${e})`})}else s.svgPaths.forEach(function(t){t.style.fill=e});0==s.svgPaths.length&&(s.el.style.fill=e),void 0!==t.stroke.c&&"transparent"!==t.stroke.c&&(s.svg.style.stroke=t.stroke.c,void 0!==t.stroke.w&&(s.svg.style.strokeWidth=parseFloat(t.stroke.w)+"px"),void 0!==t.stroke.o&&(s.svg.style.strokeDashoffset=t.stroke.o),void 0!==t.stroke.d&&(s.svg.style.strokeDasharray=t.stroke.d))}
28else if(SR7.E.backend)return s.svgPaths.forEach(e=>{e.style.fill="",e.style.stroke="",e.style.strokeWidth="",e.style.strokeDashoffset="",e.style.strokeDasharray=""}),s.svg.style.fill="",s.svg.style.stroke="",s.svg.style.strokeWidth="",s.svg.style.strokeDashoffset="",void(s.svg.style.strokeDasharray="")},SR7.F.reposLayers=e=>{if(void 0!==SR7.M[e].c.reposLayers&&SR7.M[e].c.reposLayers.length>0)for(let t of SR7.M[e].c.reposLayers)SR7.F.positionLayer(t);delete SR7.M[e].c.reposLayers,SR7.F.reposContainers(e,SR7.M[e].current.id)},SR7.F.reposContainers=(s,i)=>{const a=e(s,i);if(!a)return;const{L:r,PO:n,zones:o}=a;o.cache=o.all;let l=!1;for(let e in n){if(!_tpt.hop(n,e))continue;const t=n[e];if(void 0===r[t]||"zone"!==r[t].subtype)continue;const{c:a}=SR7.F.getLayer({lkey:t,skey:i,id:s});null!=a&&(a.el.offsetHeight!==a.ch&&void 0!==a.ch&&(l=!0,SR7.F.drawRawLayer(SR7.F.attrId(r[t].attr?.id)??s+"-"+i+"-"+r[t].id,"prepare",i)))}l&&t(s,i,o)},SR7.F.positionLayer=function(e,t){var{layer:s,c:i,id:a,skey:r}=e.layer&&e.c&&e.id&&e.skey?e:SR7.F.getLayer(e);if(null==i)return;t??=r;const n=SR7.M[a];if(i.par=-1!==s.pid?SR7.F.getLayer({id:a,skey:r,lkey:s.pid}).c:"slide"!==s.rTo&&"zone"!==s.subtype?n.dims.CFC?.[t]??n.dims.CFC:SR7.E.backend&&SR7.stage?.carousel?.isCarousel?.()&&"v"===n.settings.carousel?.type&&!n.slides[r].slide.global&&"slide"==s.rTo&&n.dims.CFC?.[t+"_full"]?n.dims.CFC[t+"_full"]:SR7.F.isCarousel(a)?"v"!==n.settings.carousel.type||n.slides[r].slide.global||"slide"!=s.rTo?n.dims.CFC?.[t+"_slide"]??n.dims.CFC?.[t]??n.dims.CFC:n.dims.CFC?.[t+"_full"]??n.dims.CFC:SR7.F.isStickyTop(n)&&n.settings.size.fullHeight&&"slide"==s.rTo?SR7.E.backend?{cw:SR7.stage.c.content.offsetWidth,ch:SR7.stage.c.content.offsetHeight}:{cw:_tpt.winW,ch:_tpt.winH}:n.dims.content,null==i.par)return;let o=i.aspectRatio??1.77777777,l="column"!==s.subtype&&"row"!==s.subtype||!i.con?i.el.offsetWidth-(s.subtype,0):i.con.offsetWidth,d=(i.image||i.media||i.canvas?.canvas&&i.aspectRatio)&&0!==i.cw&&"auto"==i.h?l/o:"column"!==s.subtype&&"row"!==s.subtype||!i.con?i.el.offsetHeight-(s.subtype,0):i.con.offsetHeight;SR7.F.hasCornerSpike(s.spike)&&(i.el.style.clipPath=SR7.F.getSpikePath(s.spike,d));let c=!!(0==l&&d>0&&i.image&&"bg"==i.imageType)&&d*o;if(c&&(l=c),"absolute"==s.pos.pos&&"fullinset"==s.size.cMode)i.top=i[i.LME].style.top=SR7.gV({v:s.m.t,id:a,u:0,f:s.fluid.po,m:"round"})+"px",i.bottom=i[i.LME].style.bottom=SR7.gV({v:s.m.b,id:a,u:0,f:s.fluid.po,m:"round"})+"px",i.left=i[i.LME].style.left=SR7.gV({v:s.m.l,id:a,u:0,f:s.fluid.po,m:"round"})+"px",i.right=i[i.LME].style.right=SR7.gV({v:s.m.r,id:a,u:0,f:s.fluid.po,m:"round"})+"px";else if("absolute"==s.pos.pos&&"row"!==s.subtype&&"column"!==s.subtype){void 0===i.par.el||null!=i.par.cw&&null!=i.par.ch||(i.par.cw=_tpt.posToNum(i.par.w,i.par.el.offsetWidth-("group"===i.ptype?i.par.borderH??i.par.borderH:0)),i.par.ch=_tpt.posToNum(i.par.h,i.par.el.offsetHeight-("group"===i.ptype?i.par.borderV??i.par.borderV:0))),i.par.cw??=i.par.w,i.par.ch??=i.par.h,i.cw="auto"==i.w?l:_tpt.posToNum(i.w,i.par.cw),i.cw=void 0!==i.maw&&"none"!==i.maw&&parseInt(i.maw)<i.cw?parseInt(i.maw):void 0!==i.miw&&"none"!==i.miw&&parseInt(i.miw)>i.cw?parseInt(i.miw):i.cw,i.ch="auto"==i.h?i.useAsImage&&"auto"==i.h&&void 0!==i.image?i.imgHeight*(i.cw/i.imgWidth):d:_tpt.posToNum(i.h,i.par.ch);let e=SR7.gV({v:s.pos.h,id:a}),t=SR7.gV({v:s.pos.v,id:a});i.ox=(i.ignoreParXY?0:i.par.x??0)+("left"==e?0:"right"==e?i.par.cw-i.cw:(i.par.cw-i.cw)/2),i.oy=(i.ignoreParXY?0:i.par.y??0)+("top"==t?0:"bottom"==t?i.par.ch-i.ch:(i.par.ch-i.ch)/2),-1==s.pid&&n.slides[r].slide.global&&n.settings.size.fullWidth&&n.settings.size.fullHeight&&SR7.F.isCarousel(a)&&"cfc"==s.rTo&&(i.ox+=n.dims.CFC.x),"group"!==s.subtype||"auto"!=i.w||"right"!=e||"slide"!=s.rTo&&void 0===i.par.el?(void 0!==i.right&&(i.right=i[i.LME].style.right="auto"),i.left=i[i.LME].style.left=i.ox+("right"==e?-1:1)*_tpt.posToNum(SR7.gV({v:s.pos.x,id:a,s:"scale"}),i.par.cw)*(s.fluid?.po?n.MP:1)+"px"):(i.right=i[i.LME].style.right=_tpt.posToNum(SR7.gV({v:s.pos.x,id:a,s:"scale"}),i.par.cw)*(s.fluid?.po?n.MP:1)+"px",i.left=i[i.LME].style.left="auto"),i.top=i[i.LME].style.top=i.oy+("bottom"==t?-1:1)*_tpt.posToNum(SR7.gV({v:s.pos.y,id:a,s:"scale"}),i.par.ch)*(s.fluid?.po?n.MP:1)+"px","bg"==i.imageType&&"shape"!==s.type&&"container"!==s.type&&(i.el.style.backgroundPosition=e+" "+t)}else i.left=i.el.offsetLeft,i.top=i.el.offsetTop;if(SR7.E.backend&&"relative"==s.pos.pos&&(i.top=i[i.LME].style.top=0,i.left=i[i.LME].style.left=0,i.bottom=i[i.LME].style.top="auto",i.right=i[i.LME].style.left="auto"),i.cPos={left:parseInt(i.left)||i.left,top:parseInt(i.top)||i.top},i.cw=l-("group"===i.subtype?i.borderH??0:0),i.ch=d-("group"===i.subtype?i.borderV??0:0),"container"===i.type&&(i.rcw=i.cw-((i._pLeft??0)+(i._pRight??0)+(i.borderH??0)),i.rch=i.
28ch-((i._pTop??0)+(i._pBottom??0)+(i.borderV??0))),(i.image||i.media||i.canvas?.canvas&&i.aspectRatio)&&0!==i.cw&&"auto"==i.h)i.target.style.height=i.cw/o+"px",(i.image||i.media||i.canvas?.canvas&&i.aspectRatio)&&(i.el.style.height=i.cw/o+"px"),i.canvas?.canvas&&i.aspectRatio&&(i.canvas.requestedWidth=i.cw,i.canvas.requestedHeight=i.cw/o);else if(i.canvas?.canvas&&"auto"!==i.h){const e=l||_tpt.posToNum(i.w,i.par.cw),t=d||_tpt.posToNum(i.h,i.par.ch);e>0&&t>0&&(i.canvas.requestedWidth=e,i.canvas.requestedHeight=t,i.canvas.image&&i.canvas.cacheW===(i.canvas.image.naturalWidth??0)&&Math.abs(i.canvas.cacheW-e)>1&&i.canvas.drawImg(i.canvas.cacheAltSrc))}i.image&&c&&(i.el.style.width=c+"px"),"column"!==s.subtype||0!==i.cw&&0!=i.ch||void 0===i.par?"row"===s.subtype&&(i.ciw="slide"!==s.rTo?n.dims.CFC?.[t]?.w??n.dims.CFC.w:i.cw):(i.cw=0==i.cw?_tpt.posToNum(i.w,i.par.cw):i.cw,i.ch=0==i.ch?_tpt.posToNum(i.h,i.par.ch):i.ch),t==SR7?.editing?.slide&&_tpt.ghostUpdate(19,i),0==i.ch&&"auto"==i.h&&"shape"===i.type&&i.global&&(!i.tryReposition||i.tryReposition<3)&&(i.tryReposition??=0,setTimeout(function(){SR7.F.positionLayer(e,t),i.tryReposition++},19))},SR7.F.shadowTarget=(e,t,s=!1)=>"row"===t.subtype?e.mask?"target":e.con?"con":"el":"column"===t.subtype?e.colbg?"colbg":"el":s?e.mask?"mask":"el":e.mask&&"hidden"==e.mask.style.overflow?"mask":"el",SR7.F.shadowCSS=(e,t,s,i,a=0,r=i)=>{const n=_tpt.tf(s?.use??!1)?s?.set??[]:[],o=Math.max(n.length,a);let l="";for(let s=0;s<o;s++){const a=n[s],o=s=>SR7.gV({v:s,id:e,u:"px",f:t.fluid.tx,s:r?"scale":void 0});l+=(0==l.length?"":",")+(void 0!==a?o(a.h)+" "+o(a.v)+" "+o(a.blur)+(i?" "+o(a.spread):"")+" "+a.color:"0px 0px 0px"+(i?" 0px":"")+" transparent")}return l};let n=(e,t)=>{let{el:s,c:i,src:a,layer:r,skey:n}=e;return new Promise(o=>a||r.bg?.image?.src?"none"==a||"none"==(r.bg?.image?.src??"")?o():void _tpt.registerImage(a||r.bg?.image?.src,0,function(a){if("error"==a.state)SR7.F.positionLayer(e,n),o();else{if(null==a.image)return void o();const r=s.id;if(a.image._tptUsedBy??={},i._imgCache??={},a.image._tptUsedBy[r])i.image=a.image._tptUsedBy[r];else if(0===Object.keys(a.image._tptUsedBy).length)a.image._tptUsedBy[r]=a.image,i.image=a.image;else{const e=a.image.cloneNode();a.image._tptUsedBy[r]=e,i.image=e}a.image.used=!0,i.imgWidth=a.width,i.imgHeight=a.height,i.aspectRatio=i.imgWidth/i.imgHeight,t?(s.appendChild(i.image),i.image.style.width="100%",i.image.style.height="auto",SR7.F.positionLayer(e,n)):SR7.F.positionLayer(e,n),i.bgClip&&(i.el.style.backgroundClip="content-box"),o()}},"load_img_in_layer_"+s.id+1e5*Math.random()):o())};_tpt.R=_tpt.R||{},_tpt.R.draw=_tpt.extend?_tpt.extend(_tpt.R.draw,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),window.SR7??={},window._tpt??={},SR7.F??={},SR7.E??={},SR7.F.layerIX??=function(){const e=new Map,t={x:0,y:0,inside:!1};let s=!1,i=0;const a=(e,t,s)=>e+(t-e)*s,r=e=>{t.x=e.clientX,t.y=e.clientY,t.inside=!0},n=()=>{t.inside=!1};function o(){e.size&&!s?(document.addEventListener("pointermove",r,{passive:!0}),window.addEventListener("blur",n),s=!0,i=requestAnimationFrame(p)):!e.size&&s&&(document.removeEventListener("pointermove",r),window.removeEventListener("blur",n),s=!1,i&&(cancelAnimationFrame(i),i=0))}const l={smooth:["power3.out",.5],back:["back.out(2)",.6],elastic:["elastic.out(1,0.35)",.95],bounce:["bounce.out",.8]};function d(e){const t=e.el.getBoundingClientRect();if(e.cx=t.left+t.width/2-(e.cur.x||0),e.cy=t.top+t.height/2-(e.cur.y||0),e.hw=t.width/2,e.hh=t.height/2,"tilt"===e.cfg.type){const t=e.el.parentElement;if(t){t.style.perspective=(e.cfg.perspective||800)+"px";const s=t.getBoundingClientRect();t.style.perspectiveOrigin=(e.cx-s.left).toFixed(0)+"px "+(e.cy-s.top).toFixed(0)+"px"}}}function c(e){const t=e.cur,s=e.el.style,i="tilt"===e.cfg.type;s.translate=Math.abs(t.x)<.01&&Math.abs(t.y)<.01?"":t.x.toFixed(2)+"px "+t.y.toFixed(2)+"px",s.scale=Math.abs(t.sx-1)<.001&&Math.abs(t.sy-1)<.001?"":t.sx.toFixed(4)+" "+t.sy.toFixed(4),s.rotate=Math.abs(t.ang)<.01?"":i?t.ax.toFixed(3)+" "+t.ay.toFixed(3)+" 0 "+t.ang.toFixed(2)+"deg":t.ang.toFixed(2)+"deg"}
28function p(){i=requestAnimationFrame(p),e.forEach(e=>{7&e.frame++||d(e);const s=e.cfg,i=e.cur,r=Math.min(1,(s.speed||12)/60);let n=!1,o=0,p=0,u=1,h=1,g=0,m=i.ax,f=i.ay;if(e.enabled&&t.inside){const i=t.x-e.cx,a=t.y-e.cy,r=Math.hypot(i,a),l=s.radius||200;if(r<l){n=!0;const t=1-r/l,d=s.strength||40,c=r?i/r:0,S=r?a/r:0,y=Math.min(1,(l-r)/(.3*l));switch(s.type){case"magnetic":o=i*(d/100)*y,p=a*(d/100)*y;break;case"attract":o=c*d*.7*t,p=S*d*.7*t;break;case"repel":o=-c*d*t,p=-S*d*t;break;case"squeeze":u=h=Math.max(.05,1-d/100*t);break;case"pop":u=h=1+d/100*t;break;case"stretch":{const t=d/100*1.2;u=1+Math.abs(i)/l*t*y,h=1+Math.abs(a)/l*t*y,o=Math.sign(i)*(u-1)*e.hw+i*(d/100)*.25*y,p=Math.sign(a)*(h-1)*e.hh+a*(d/100)*.25*y;break}case"tilt":{const e=r||1;m=-a/e,f=i/e,g=.6*d*t;break}case"rotate":g=i/l*d*.5*t}"x"===s.axis?p=0:"y"===s.axis&&(o=0)}}n?(e.returnTween&&(e.returnTween.kill(),e.returnTween=null),e.returning=!1,i.x=a(i.x,o,r),i.y=a(i.y,p,r),i.sx=a(i.sx,u,r),i.sy=a(i.sy,h,r),i.ang=a(i.ang,g,r),i.ax=m,i.ay=f,c(e)):e.returning||(Math.abs(i.x)>.1||Math.abs(i.y)>.1||Math.abs(i.sx-1)>.002||Math.abs(i.sy-1)>.002||Math.abs(i.ang)>.05)&&function(e){const t=e.cur,s=_tpt.gsap,i=l[e.cfg.returnEase];if(!i||!s)return t.x=t.y=t.ang=0,t.sx=t.sy=1,e.returning=!1,void c(e);e.returning=!0,e.returnTween=s.to(t,{x:0,y:0,sx:1,sy:1,ang:0,duration:i[1],ease:i[0],overwrite:!0,onUpdate:()=>c(e),onComplete:()=>{e.returning=!1,e.returnTween=null}})}(e)})}return{register(t,s,i,a){if(!t||!i||!i.type||"none"===i.type)return;if(SR7.E.backend&&!a)return;if("tilt"===i.type){const e=t.parentElement;e&&!e.style.perspective&&(e.style.perspective=(i.perspective||1e3)+"px")}const r=e.get(s);if(r&&r.el===t&&r.cfg.type===i.type)return void(r.cfg=i);this.unregister(s);const n={el:t,cfg:i,frame:0,enabled:!0,cur:{x:0,y:0,sx:1,sy:1,ang:0,ax:0,ay:0}};d(n),e.set(s,n),o()},unregister(t){const s=e.get(t);s&&(s.returnTween&&s.returnTween.kill(),s.el.style.translate="",s.el.style.scale="",s.el.style.rotate="",e.delete(t)),o()},clearAll(){Array.from(e.keys()).forEach(e=>this.unregister(e))},setState(t,s){const i=e.get(t);i&&(i.enabled=!!s)}}}(),_tpt.R??={},_tpt.R.layerix=_tpt.extend?_tpt.extend(_tpt.R.layerix,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"},function(){"use strict";window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},_tpt.idRegistry??={};const tags=["div","a","p","span","sr7-layer","h1","h2","h3","h4","h5","h6","ul","ol","li","label","img","video","audio","iframe","sr7-txt","sr7-video","sr7-audio","sr7-poster","sr7-img","sr7-shape","sr7-button","sr7-bg","sr7-col","sr7-col-bg","sr7-col-bg-mask","sr7-row","sr7-row-con","sr7-col-con","sr7-media","sr7-poster","sr7-ao","sr7-ao-in","sr7-px","sr7-mask","sr7-fxc","sr7-loop","sr7-3dwrap","sr7-3dwrap-bg","sr7-3dwrap-layers"],layerListen=(e,t,s)=>{const i=SR7.M[e].slides[t].slide.actions,a=String(s),r=[];for(let e in i){if(!_tpt.hop(i,e))continue;let t=i[e],s=t.src;if(!s)continue;let n=Array.isArray(s)?s:[s];for(let e=0;e<n.length;e++){let s=String(n[e]).includes(":")?n[e].split(":")[1]:n[e];s=String(s).trim(),s!=a||r.includes(t.evt)||r.push(t.evt)}}return r.length?r:void 0};if(void 0!==SR7.F.getLayer)return;SR7.F.restoreHits=e=>{if(e.target?.classList?.remove?.("sr-force-nointeraction"),!e.el?.style)return;const t="n"===e.pE||"none"===e.pE?"none":e.listeners?.hasAny?"auto":e.pE||"auto";e.el.style.pointerEvents=t,e[e.LME]?.style&&(e[e.LME].style.pointerEvents=t)},SR7.F.watchBox=(e,t,s)=>{if(!e?.el||"function"!=typeof ResizeObserver)return;const i=e._box??={fns:{}};if(i.fns[t]=s,i.fire||(i.fire=t=>{if(!e.el?.isConnected)return;const s=e.el.getBoundingClientRect();if(!(!t&&Math.abs(s.width-i.w)<.5&&Math.abs(s.height-i.h)<.5)){i.w=s.width,i.h=s.height;for(const t in i.fns)i.fns[t](e)}},i.win=_tpt.resizeObserver.observe(()=>i.fire(!0),60),SR7.E.backend&&document.addEventListener("sr7:stage.resize",i.stage=()=>i.fire(!0))),i.el===e.el&&i.ro)return;i.ro?.disconnect(),i.ro??=new ResizeObserver(()=>i.fire());const a=e.el.getBoundingClientRect();i.el=e.el,i.w=a.width,i.h=a.height,i.ro.observe(e.el)},SR7.F.unwatchBox=(e,t)=>{const s=e?._box;s&&(delete s.fns[t],Object.keys(s.fns).length||(s.ro?.disconnect(),null!=s.win&&_tpt.resizeObserver.remove(s.win),s.stage&&document.removeEventListener("sr7:stage.resize",s.stage),s.el=s.fire=s.win=s.stage=void 0))},SR7.F.getLKey=(e,t,s)=>SR7.F.attrId(SR7.M[e].slides?.[t]?.layers[s]?.attr?.id)?SR7.M[e].slides?.[t]?.layers[s]?.attr?.id:e+"-"+t+"-"+s,SR7.F.shapeGradFix=function(e){const t=e&&e.querySelector("svg");if(!t)return;t.querySelectorAll("linearGradient[id],radialGradient[id]").forEach(e
28=>{const s=e.id;if(!s||s.indexOf("__u")>=0)return;const i=s+"__u"+(SR7.F._gradSeq=(SR7.F._gradSeq||0)+1);t.querySelectorAll('[fill="url(#'+s+')"]').forEach(e=>e.setAttribute("fill","url(#"+i+")")),e.id=i})},SR7.F.shapeTileFix=function(e){if(!e||e.dataset.tile)return;const t="200%"===e.style.width,s="200%"===e.style.height;if(!t&&!s)return;const i=(e.getAttribute("viewBox")||"").trim().split(/[\s,]+/).map(Number);4!==i.length||i.some(isNaN)||(e.setAttribute("viewBox",i[0]+" "+i[1]+" "+(t?i[2]/2:i[2])+" "+(s?i[3]/2:i[3])),e.style.width="100%",e.style.height="100%",e.style.overflow="hidden",e.dataset.tile=t?"x":"y")},SR7.F.shapeAnim=function(e,t){if(!e)return;SR7.F.shapeGradFix(e),e._srShapeTweens&&(e._srShapeTweens.forEach(e=>{try{e.kill()}catch(e){}}),e._srShapeTweens=null);const s=_tpt.gsap,i=e.querySelector("svg"),a=t?.anim;if(i&&SR7.F.shapeTileFix(i),!i||!s)return;const r=i.querySelectorAll("path");if(r.forEach(e=>s.set(e,{clearProps:"transform"})),!a||!a.type||"none"===a.type)return s.set(i,{clearProps:"transform"}),void(e._srShapeTweens=null);const n=Math.max(.05,a.speed??1),o=Math.min(2,Math.max(0,(a.amount??50)/100)),l=[],d="left"===t?.position||"right"===t?.position,c=i.dataset.tile===(d?"y":"x");if("drift"===a.type&&c){const e=d?"y":"x",t=d?600:1e3,i=r.length-1,o="right"===a.dir?-t:0,c="right"===a.dir?0:-t;r.forEach((t,a)=>{const r=1+.35*(i-a);l.push(s.fromTo(t,{[e]:o},{[e]:c,duration:12*r/n,ease:"none",repeat:-1}))})}else if("spin"===a.type||"sway"===a.type||"pulse"===a.type||"orbit"===a.type){s.set(i,{transformOrigin:"50% 50%"});const e="right"===a.dir?1:-1;if("spin"===a.type)l.push(s.to(i,{rotation:360*e,duration:8/n,ease:"none",repeat:-1}));else if("sway"===a.type)s.set(i,{transformOrigin:"50% 0%"}),l.push(s.fromTo(i,{rotation:-14*o},{rotation:14*o,duration:2.4/n,ease:"sine.inOut",yoyo:!0,repeat:-1}));else if("pulse"===a.type)l.push(s.to(i,{scale:1+.22*o,duration:1.9/n,ease:"sine.inOut",yoyo:!0,repeat:-1}));else{const t=16*o,a={a:0};l.push(s.to(a,{a:2*Math.PI*e,duration:5/n,ease:"none",repeat:-1,onUpdate(){s.set(i,{x:Math.cos(a.a)*t,y:Math.sin(a.a)*t})}}))}}else if("cascade"===a.type&&r.length>1){const e=(i.getAttribute("viewBox")||"0 0 1000 600").split(/\s+/).map(Number),t=e[2]/2+" "+e[3]/2,a=2.6/n;r.forEach((e,i)=>{const n=s.fromTo(e,{scale:1-.05*o},{scale:1+.14*o,svgOrigin:t,duration:a,ease:"sine.inOut",yoyo:!0,repeat:-1});n.time(a*(i/r.length)),l.push(n)})}else if("float"===a.type||"drift"===a.type||"cascade"===a.type)s.set(i,{transformOrigin:"50% 50%"}),l.push(s.to(i,{y:14*o,scale:1+.05*o,rotation:3*o,duration:3/n,ease:"sine.inOut",yoyo:!0,repeat:-1}));else if("morph"===a.type){const e=t.frames;if(!e||e.length<2||!r.length)return;const i=[];r.forEach((t,s)=>{null!=e[0][s]&&i.push({pth:t,skel:e[0][s].replace(/-?\d*\.?\d+/g,"@"),nums:e.map(e=>(e[s].match(/-?\d*\.?\d+/g)||[]).map(Number))})});const a=e.length,o={t:0};l.push(s.to(o,{t:a,duration:3.5*a/n,ease:"none",repeat:-1,onUpdate(){const e=o.t%a,t=Math.floor(e),s=e-t,r=(t+1)%a;for(const e of i){const i=e.nums[t],a=e.nums[r];let n=0;e.pth.setAttribute("d",e.skel.replace(/@/g,()=>{const e=i[n]+(a[n]-i[n])*s;return n++,Math.round(100*e)/100}))}}}))}e._srShapeTweens=l},SR7.F.layerVisible=(e,t,s)=>{const i=SR7.M[e];let a=s,r=0;for(;a&&r++<25;){if(!_tpt.tf(a?.vis?.[i.LEV]??!0))return!1;if(-1===a.pid||void 0===a.pid)return!0;a=i.slides?.[t]?.layers?.[a.pid]}return!0},SR7.F.getLayer=function(e){if(!e)return{id:void 0,skey:void 0,el:void 0,lkey:void 0,layer:void 0};let t,s,i,a,r,n;const o=typeof e;if("object"!==o||void 0!==e.lid){e="object"==o?e.lid:e;for(const o in SR7.M)!t&&_tpt.hop(SR7.M,o)&&SR7.M[o]?.c?.layers&&SR7.lToK?.[e]&&SR7.M[o]?.c?.layers?.[SR7.lToK[e]]&&(n=SR7.M[o].c.layers[SR7.lToK[e]],t=n.el,a=n.skey,r=n.lkey,s=SR7.M[o].slides[a].layers[r],i=o)}else{const{id:o,skey:l,lkey:d}=e;s=SR7.M[o]?.slides?.[l]?.layers?.[d]??{},n=SR7.M[o]?.c.layers?.[SR7.lToK?.[SR7.F.attrId(s.attr?.id)??`${o}-${l}-${d}`]]??void 0,t=n?.el??void 0,a=l,r=d,i=o}return{id:i,skey:a,el:t,lkey:r,layer:s,c:n}},SR7.F.getAllChildren=(e,t,s,i=[])=>{const a=SR7.M[e].slides[t],{layers:r}=a;let n=Object.keys(r);for(let a of n){const n=r[a];String(n.pid)===String(s)&&(i.push(a),SR7.F.getAllChildren(e,t,a,i))}return i},SR7.F.buildLayerNavs=(e,t)=>{if(SR7.E.backend)return;const s=SR7.M[e];if(s.lNavs??={},null!=s.lNavs[t])return;s.lNavs[t]??={};const i=s.slides[t],{layers:a}=i;let r=Object.keys(a);for(let i of r){const r=a[i];"idle"!=r.nF&&"active"!=r.nF||("hero"!==s.settings.type&&(s.lNavs[t].originals??={},s.lNavs[t].originals[r.nF]??=[],s.lNavs[t].originals[r.nF].push({layer:_tpt.extend({},r),lkey:i,children:SR7.F.getAllChildren(e,t,i)})),delete a[i])}if(s.lNavs[t].originals){let i=0;for(let r=0;r<s.navLen;r++)for(let n of["active","idle"])if(s.lNavs[t].originals[n])for(let o=0;o<s.lNavs[t].originals[n].length;o++){let{lkey:l,children:d,layer:c}=s.lNavs[t].originals[n][o],p=l+"_"+s.navSlideOrder[r];s.lNavs[t][s.navSlideOrder[r]]??={},s.lNavs[t][s.navSlideOrder[r]][n]=p,"idle"===n&&s.slides[t].slide.actions.push({a:"callSlide",d:0,evt:"click",rd:0,src:[p],target:s.navSlideOrder[r]}),a[p]=_tpt.extend({},c),a[p].id=p,a[p].nSlide=s.navSlideOrder[r],a[p].order=i++;let u=s.slides[s.navSlideOrder[r]],h=SR7.F.getNavBG(e,s.navSlideOrder[r],u?.slide?.thumb);for(let i of d){let n=i+"_"+s.navSlideOrder[r];a[n]=_tpt.extend({},a[i]),a[n].pid=p,a[n].id=n,a[n]?.bg?.fS&&(a[n].bg=h,a[n].bg.image.pos={x:"50%",y:"50%"}),a[n]?.content?.text&&(a[n].content.text=a[n].content.text.replace("{{slide_index}}",SR7.F.getCurSlideIndDigit(e,s.navSlideOrder[r])).replace("{{slide_title}}",SR7.F.getCurSlideTitle(e,s.navSlideOrder[r]))),"progress"==a[n].nF&&(s.lNavs[t][s.navSlideOrder[r]].progress??=[],s.lNavs[t][s.navSlideOrder[r]].progress.push(n))}}}},SR7.F.getCarouselLayers=(e,t,s)=>{const i=SR7.M[e],a=[];if(-1!=t&&null!=i.slides[t]){for(let r in i.slides[t].layers){if(!_tpt.hop(i.slides[t].layers,r))continue;let n="slidebg"===i.slides[t].layers[r].subtype||i.slides[t].layers[r].viOC;if("visible"===s&&n||"outfocus"===s&&!n)a.push(r);else if("infocus"===s){let s=i.c.layers[SR7.lToK[`${e}-${t}-${r}`]];void 0!==s&&"in"!==(s.animState?.scene??"")&&a.push(r)}}return a}},SR7.F.getSlideBG=(e,t)=>
28{let s,i=SR7.M[e].slides[t]?.layers??void 0;if(null!=i){for(let e in i)!s&&_tpt.hop(i,e)&&"slidebg"===i[e].subtype&&(s=i[e]);return s}},SR7.F.resetGlobalLayers=function(e){const t=SR7.M[e];if(t?.slides)for(let s of t.staticSlides){if(!s||!t.slides[s])continue;const i=t.c?.tl?.[s],a=i?.in?.TL,r=!!(a&&(a.getChildren?.(!0)?.length??0)>0);for(let i in t.slides[s].layers){let{c:t}=SR7.F.getLayer({id:e,skey:s,lkey:i});t&&(delete t.gpos,delete t.lastEventCalled,delete t.state,t.cache?delete t.cache.hover:t.cache={},t.prepared=!1,SR7.F.restoreHits(t),t.el?.style&&(t.el.style.visibility="visible",t[t.LME]?.style&&(t[t.LME].style.visibility="visible")),r?t.animState={runningFrames:[],scene:"in",frame:0,caller:"default"}:(t.animState={runningFrames:[]},t.tl={}))}if(r)try{a.pause(0),a.progress(0,!1),a.play(0),i.in.loops?.restart?i.in.loops.restart(!0,!1):i.in.loops?.progress&&(i.in.loops.progress(0,!1),i.in.loops.play?.(0))}catch(e){}else if(i){for(const e in i){if(!_tpt.hop(i,e))continue;const t=i[e];try{t?.TL?.kill?.(),t?.BGTL?.kill?.(),t?.PAN?.kill?.(),t?.loops?.kill?.()}catch(e){}}delete t.c.tl[s]}}},SR7.F.layerAddonWraps=(e,t)=>{if(!t)return;let s;for(let i of SR7.F.addonOrder(t.addOns)){if(!_tpt.hop(t.addOns,i)||!SR7.A?.[i]?.getLayerWraps)continue;const a=SR7.A?.[i]?.getLayerWraps(e,t)??void 0;null!=a&&(s??={chain:[]},s.chain.push({slug:i,wrap:a.wrap?.use?a.wrap?.class??"":void 0,inner:a.innerWrap?.use?a.innerWrap?.class??"":void 0}))}return s},SR7.F.prepareLayerAddon=async(e,t,s,i,a)=>{if(null==SR7.A||!t)return;let r=[];for(let n of SR7.F.addonOrder(SR7.A)){if(!_tpt.hop(SR7.A,n)||!SR7.A?.[n]?.prepareLayer)continue;const o=await(SR7.A?.[n]?.prepareLayer(e,t,s,i,a))??void 0;null!=o&&(Array.isArray(o)?r.push(...o):r.push(o))}return r},SR7.F.text={stages:{token:{},translate:{}},order:["token","translate"],reg:(e,t,s)=>{(SR7.F.text.stages[t]??={})[e]=s},rm:e=>{for(let t in SR7.F.text.stages)delete SR7.F.text.stages[t][e]},compose:(e,t,s,i,a)=>{const r=SR7.M[e];a??=s.content?.text??"";let n=SR7.F.updateDynamicMetas(e,r.slides[t]?.slide?.order,a,{id:e,skey:t,lid:i,layer:s});for(let a of SR7.F.text.order)for(let o of SR7.F.addonOrder(SR7.F.text.stages[a])){const l=SR7.F.text.stages[a][o](n,{id:e,skey:t,lid:i,layer:s});null!=l&&((r.c.textLayers??={})[i]=t,n=l)}return n},apply:(e,t)=>{const{layer:s,c:i,skey:a}=SR7.F.getLayer(t);if(!s||!i?.el)return;let r=s.content?.text??"";String(i.el.className).includes("sr7-brg")||(r=_tpt.lineBreaks(r,SR7.gV({v:s.ws,id:e}))),SR7.F.text.render(e,t,s,i,SR7.F.text.compose(e,a,s,t,r)),s.ico?.g&&SR7.F.text.icons(i.el)},render:(e,t,s,i,a)=>{const r=SR7.F.addonSlotOwner(e,"layer-content",s.addOns);r&&SR7.A[r].renderText?SR7.A[r].renderText(e,t,a):SR7.F.counter?.owns(s)?SR7.F.counter.renderText(e,t,a):i.el.innerHTML!==a&&(i.el.innerHTML=a)},icons:e=>{const t=document.createRange();for(const s of e.querySelectorAll(".material-icons"))t.selectNodeContents(e),t.setEndBefore(s),s.classList.toggle("sr7-ico-a",""!==t.toString().trim()),t.selectNodeContents(e),t.setStartAfter(s),s.classList.toggle("sr7-ico-b",""!==t.toString().trim())},refresh:e=>{if(null==e){for(let e in SR7.M)_tpt.hop(SR7.M,e)&&SR7.F.text.refresh(e);return}const t=SR7.M[e]?.c?.textLayers??{};for(let s in t)_tpt.hop(t,s)&&SR7.F.text.apply(e,s)}},SR7.F.prepareLayerImage=(e,t,s,i)=>{if(!i)return;delete i.bgImageSrc;const a=SR7.M[e],r=s.bg?.image;if(!r)return;const n=a.slides[t]?.slide?.order;r.fromStream&&a.stream&&(r.crossOrigin="youtube"!==(SR7.M.settings?.source?.type??""),SR7.F.setImgSrc(e,r,SR7.F.getFeed(a,n,"image",void 0,void 0,r.src))),r.src?.includes("{{")&&(i.bgImageSrc=SR7.F.updateDynamicMetas(e,n,r.src,{id:e,skey:t,lid:s.id,layer:s}))},SR7.F.prepareLayer=async(e,t,s,i=[],a=!1,r=_tpt.collector(),n="",o=[],l,d)=>{let c=SR7.M[e],p=c.slides[t],u=p.layers[s];const h=(!u?.vis||u.vis?.[c.LEV])&&("c"==(u.tl?.in?.content?.all?.[1]?.fx??!1)[0]||"c"==(u.tl?.out?.content?.all?.[0]?.fx??!1)[0]);let g,m=e+"-"+t+"-"+u.id,f=0==String(u.attr?.id??"").length?m:u.attr.id;String(f).includes("_DBL_")&&(f=m),String(u.attr.id).includes("_DBL_")&&(u.attr.id=f);for(let i of SR7.D.linktypes)g||(g=SR7.D.hasActionLike(e,t,s,i));const S=`${_tpt.mText(u.attr?.class??"")} ${"row"===u.subtype&&"slide"!==u.rTo?"sr7-galign":""} ${u.attr?.iClass??""} ${"video"!==u.type&&"video"!==u.subtype||g||!u.content?.noInteract?"":"nointeraction"}`;let y,v,R=c.c.layers;if(R[f]&&"rebuild"!==d){let e=u.attr.id;f=u.attr.id+="_DBL_"+Math.round(9999*Math.random()),SR7.E.backend&&(u.attr.id=e)}"slidebg"===u.subtype&&(c.c.slideBGs[t]={lid:f,lkey:s}),"slidebg"===u.subtype&&c.migrate?(y=document.getElementById(e+"-"+t+"-slidebg"),null!==y&&(y.id=f)):y=document.getElementById(f),g=!1!==g&&"a"===g.ltype&&g;for(let i of SR7.D.linktypes)v||(v=SR7.D.hasActionLike(e,t,s,i));0==v&&"a"===u.tag&&(u.tag="sr7-layer",g=!1),void 0!==u.tag&&(u.tag=-1==tags.indexOf(u.tag)?"sr7-layer":u.tag);const b=g?"a":"slidebg"===u.subtype?"sr7-bg":"column"===u.subtype?"sr7-col":"sr7-layer"==u.tag||null==u.tag?SR7.D.tagLib[""!==u.subtype&&void 0!==u.subtype?u.subtype:u.type]??u.tag:u.tag;y&&y.tagName.toLowerCase()!==b.toLowerCase()&&(y.parentElement.removeChild(y),y=void 0),u.codes?.css&&(n+="#"+f+"{"+u.codes.css+"}"),"container"!==u.type&&y?(y.parentElement.removeChild(y),y.removeAttribute("rel"),y.className=_tpt.mText(y.className,S),r.fragment.appendChild(y),"text"===u.type&&c.fromStream&&null==y.getAttribute("srscsrc")&&(y.innerHTML=SR7.F.text.compose(e,t,u,f,_tpt.lineBreaks(u.content.text,SR7.gV({v:u.ws,id:e}))))):(y=r.add({tag:b,class:S,id:f}),"text"===u.type&&(S.includes("sr7-brg")||(u.content.text=_tpt.lineBreaks(u.content.text,SR7.gV({v:u.ws,id:e}))),y.innerHTML=SR7.F.text.compose(e,t,u,f))),"custom"===u.subtype&&""!==(u.shape?.svg??"")&&(y.innerHTML!==u.shape.svg&&(y.innerHTML=u.shape.svg),SR7.F.shapeAnim(y,u.shape)),u.ix?.type&&"none"!==u.ix.type&&(SR7.F.layerIX?SR7.F.layerIX.register(y,f,u.ix):_tpt.checkResources(["layerix"]).then(()=>SR7.F.layerIX?.register(y,f,u.ix)).catch(()=>{})),c.hasTouchSwipe&&(SR7.D.hasActionLike(e,t,s,"simulate")||SR7.D.hasActionLike(e,t,s,"click")||SR7.D.hasActionLike(e,t,s,"click","evt"))&&(y.dataset.clickable="true"),(SR7.D.hasActionLike(e,t,s,"mouseenter","evt")||SR7.D.hasActionLike(e,t,s,"mouseleave","evt")||SR7.D.hasActionLike(e,t,s,"click","evt"))&&(y.dataset.mouselistener="true"),g&&(SR7.F.layerHref(e,t,s,y,g),y.target=g.target??"_self","nofollow"==g.flw&&(y.rel="nofollow"),"_blank"==g.target&&(y.rel=(y.rel??"")+(y.rel.includes("noopener")?"":(void 0!==y.rel&&y.rel.length>0?" ":"")+"noopener"))),u.viSH&&(c.c.viSH??={},c.c.viSH.el??=[],c.c.viSH.el.push(f)),!y.className.includes("sr7-layer")&&y.classList.add("sr7-layer"),u.listen=layerListen(e,t,s),R[f]={el:y,lid:f,css:S,mid:e,skey:t,lkey:s,oflow:u.oflow,cache:{},tl:{},listeners:{hover:(SR7.F.hoverOn(u)||SR7.F.hoverShadowOn(u)||_tpt.tf(u.hoverfx?.u))&&"none"!==u.pE,action:void 0!==u.listen&&u.listen.length>0&&_tpt.tEvt(u.listen),sel:!SR7.E.backend&&_tpt.tf(u.sel?.u??!1)&&"none"!==u.pE,aCache:{}},type:u.type,subtype:u.subtype,animState:{runningFrames:[]},ignoreParXY:SR7.F.isCarousel(e)&&"v"===c.settings?.carousel?.type&&"slide"==u.rTo},SR7.lToK[m]=f,m!==f&&(SR7.lToK[f]=f),"row"===u.subtype&&(c.zoneIndexe
28s[u.pid]=null==c.zoneIndexes[u.pid]||c.zoneIndexes[u.pid]<u.zIndex?u.zIndex:c.zoneIndexes[u.pid]),u.pE=R[f].pE="default"==u.uS&&c.settings.uS||"true"==String(u.uS)?"auto":"none"==u.pE||"text"!==u.type&&SR7.F.isStickyTop(c)&&!R[f].listeners.hover&&!R[f].listeners.action&&!R[f].listeners.sel&&"auto"==u.pE?"none":u.pE,"none"==R[f].pE?y.style.pointerEvents="none":p?.slide?.global&&(R[f].listeners.hover||R[f].listeners.action||R[f].listeners.toggle||R[f].listeners.sel)&&(y.style.pointerEvents="auto");let w="image"==u.subtype||"image"==u.type||"slidebg"==u.subtype?getAltFromNoscriptSibling(y):null;c.settings?.acc?.use&&"false"==String(u?.acc?.hidden??"true")?(y.setAttribute("aria-hidden",!1),y.setAttribute("tabindex",0),"unset"!==String(u?.acc?.label).toLowerCase()&&String(u?.acc?.label).length>0?y.setAttribute("aria-label",u?.acc?.label):w&&""!==w&&y.setAttribute("aria-label",w),"unset"!==String(u?.acc?.role).toLowerCase()&&String(u?.acc?.role).length>0?y.setAttribute("role",u?.acc?.role):w&&""!==w&&y.setAttribute("role","img"),"unset"!==String(u?.acc?.haspopup).toLowerCase()&&String(u?.acc?.haspopup).length>0&&y.setAttribute("aria-haspopup",u?.acc?.haspopup),"unset"!==String(u?.acc?.labeledby).toLowerCase()&&String(u?.acc?.labeledby).length>0&&y.setAttribute("aria-labelledby",u?.acc?.labeledby)):w&&""!==w?(y.setAttribute("aria-hidden",!1),y.setAttribute("role","img"),y.setAttribute("aria-label",w)):y.setAttribute("aria-hidden",!0);const x=parseInt(u.attr?.tabIndex);isNaN(x)||0===x||y.setAttribute("tabindex",x);const _=_tpt.mText(y.getAttribute("rel")??"",u.attr?.rel??"");if(""!==_&&y.setAttribute("rel",[...new Set(_.split(/\s+/))].join(" ")),u.content?.fromStream&&c.stream&&(u.content.src=SR7.F.getFeed(c,p.slide.order,"media"),u.content.src&&-1===u.content.src.indexOf("video_dashinit.mp4")||(u.content.src=SR7.F.getFeed(c,p.slide.order,"thumb")),u.content.crossOrigin="youtube"!==(SR7.M.settings?.source?.type??""),u.content?.poster?.fromStream&&(u.content.poster.src=SR7.F.getFeed(c,p.slide.order,"thumb"))),SR7.F.prepareLayerImage(e,t,u,R[f]),u.bg?.video?.fromStream&&c.stream&&(u.bg.video.src=SR7.F.getFeed(c,p.slide.order,"media"),u.bg.video.poster.fromStream&&(u.bg.video.poster.src=SR7.F.getFeed(c,p.slide.order,"thumb"))),"video"!==u.type&&"audio"!==u.type&&(""===(u.bg?.video?.src??"")||"slidebg"===u.subtype&&"video"!==u.bg?.type)||(y.appendChild(R[f].mediaContainer=r.add({tag:"sr7-media",class:"sr7-media",id:f+("audio"===u.type?"_audio":"_video")})),"audio"===u.type||""===(u.bg?.video?.poster?.src??"")&&""===(u.content?.poster?.src??"")||y.appendChild(R[f].mediaPoster=r.add({tag:"sr7-poster",class:"sr7-poster sr7-"+(u.bg?.video?.type??"video")+"-poster",id:f+"_poster"}))),p.slide.global){R[f].global=!0,u.sStart=parseInt(u.sStart??1),u.sEnd??="last",u.scEnd=parseInt(u.sEnd??c.len)||c.len;const e=Array.isArray(u.sSkip)?u.sSkip:String(u.sSkip??"").split("#;#");u.scSkip=new Set(e.map(e=>parseInt(e)).filter(e=>!isNaN(e))),void 0!==u.sZ&&"default"!==u.sZ&&u.sZ!==p.slide.pos&&-1==u.pid&&o.push(f)}R[f].addOns=SR7.F.layerAddonWraps(e,u),R[f]._css=S;let F,k=await SR7.F.prepareLayerAddon(e,u,f,t,a);void 0!==k&&i.push(...k),!R[f].listeners.hover&&_tpt.tf(u.hoverfx?.u)&&"none"!==u.pE&&(R[f].listeners.hover=!0);let M=SR7.F.checkWrap(u.tl,"mask")||SR7.F.hoverOn(u)&&(u.hov?.m??!1)||SR7.F.hoverOn(u)&&_tpt.tf(u.hov?.m)&&SR7.F.hasRotation(u.hov?.frame);!M&&h&&(M=h,R[f].maskForFx=!0);let C=""!==(u?.attr?.wrapClass??"")||""!==(u?.attr?.wrapId??"")||"slidebg"===u.subtype;if("image"===u.subtype&&!C){for(let e=0;e<SR7.D.DL.length;e++)if(u.p?.[SR7.D.DS[e]])for(let t of u.p[SR7.D.DS[e]])y.dataset.needColorBg=y.dataset.needColorBg||parseInt(t)>0;C=C||"true"==String(y.dataset.needColorBg)}let E,O,A,L,T,I=SR7.F.checkWrap(u.tl,"loop");R[f].transferOrigins=SR7.F.resetOrigins(R[f],u,!0),R[f].mod=SR7.F.modify.prepare(u.mod,e),R[f].mod&&(c.c.mod??={},c.c.mod[t]??=[],c.c.mod[t].push(f),M=M||(u.mod?.mask??!1)),(void 0!==u.tr&&(void 0!==u.tr.rX&&0!==parseInt(u.tr.rX)||void 0!==u.tr.rY&&0!==parseInt(u.tr.rY)||void 0!==u.tr.rZ&&0!==parseInt(u.tr.rZ)||void 0!==u.tr.o&&1!==u.tr.o)||M||C)&&(E=R[f].mask=r.add({tag:"sr7-mask",class:u.attr.wrapClass??"",id:u.attr.wrapId??""}),M&&!R[f].maskForFx?R[f].oflow="hidden":C&&(R[f].oflow="visible"),M=!0,h&&(R[f].fxc=r.add({tag:"sr7-fxc"}),R[f].mask.append(R[f].fxc))),"true"==String(y.dataset.needColorBg)&&E.appendChild(R[f].colbg=r.add({tag:"sr7-col-bg",class:"sr7-img-col-bg"})),I&&(O=R[f].loop=r.add({tag:"sr7-loop"})),"container"===u.type?F=I||M||c.slides[t].layers[u.pid]?.uGap||SR7.F.checkMargin(u.m):"text"===u.type&&!1!==(u.tog?.u??!1)&&(R[f].listeners.toggle=!0,R[f].tog={state:!1,toggled:u.tog.i?u.content.text:_tpt.lineBreaks(u.tog.t,SR7.gV({v:u.ws,id:e}))},u.tog.i&&(y.innerHTML=_tpt.lineBreaks(u.tog.t,SR7.gV({v:u.ws,id:e}))));for(let e of R[f].addOns?.chain??[]){const t=void 0!==e.wrap?r.add({tag:"sr7-ao",class:e.wrap}):void 0,s=void 0!==e.inner?r.add({tag:"sr7-ao-in",class:e.inner}):void 0;t&&s&&t.appendChild(s),T&&T.appendChild(t??s),L??=t??s,T=s??t,R[f].addonWraps??={},R[f].addonWraps[e.slug]={wrap:t??s,inner:s}}R[f].addonWrap=L,R[f].addonInnerWrap=T!==L?T:void 0,T=R[f].addonInnerWrap;let D=(u?.mod?.s?.u||u?.mod?.m?.u)&&!u.mod.mask;if(D&&(A=R[f].parallax=r.add({tag:"sr7-px"})),"row"===u.subtype||"column"===u.subtype&&(D||I||M||F)){const e=R[f].con=r.add({tag:"sr7-"+("row"===u.subtype?"row":"col")+"-con"}),t=R[f].el;t.appendChild(L||(T||(D?A:I?O:M?E:e))),L&&!T&&L.appendChild(D?A:I?O:M?E:e),T&&T.appendChild(D?A:I?O:M?E:e),D&&A.appendChild(I?O:M?E:e),I&&O.appendChild(M?E:e),M&&E.appendChild(e),"column"===u.subtype&&(R[f].colbg=r.add({tag:"sr7-col-bg"}),M?(R[f].colbgMask=r.add({tag:"sr7-col-bg-mask"}),R[f].colbgMask.appendChild(R[f].colbg),D?A.appendChild(R[f].colbgMask):t.appendChild(R[f].colbgMask)):D?A.appendChild(R[f].colbg):t.appendChild(R[f].colbg))}else(L||D||I||M)&&(y.parentNode.insertBefore(L||(T||(D?A:I?O:E)),y),L&&!T&&L.appendChild(D?A:I?O:M?E:y),T&&T.appendChild(D?A:I?O:M?E:y),D&&A.appendChild(I?O:M?E:y),I&&O.appendChild(M?E:y),M&&E.appendChild(y));void 0!==b&&"SR7"!==b.slice(0,3)&&(y.dataset.type=u.type,void 0!==u.subtype&&""!==u.subtype&&(y.dataset.subtype=u.subtype));var z=SR7.F.drawRawLayer(f,"prepare",t,a);if(z.length>0)for(let e in z)_tpt.hop(z,e)&&void 0!==z[e]&&i.push(z[e]);return"zone"===u.subtype?(c.zones[t]??={},c.zones[t].zones??={},c.zones[t].zones[f]=0):"slidebg"===u.subtype&&c.settings.mod?.d3&&(l={el:R[f].parallax?R[f].parallax:R[f].loop?R[f].loop:R[f].mask?R[f].mask:R[f].el,use:u.mod?.m?.u??!1}),c.settings.mod?.d3&&u.mod?.m?.aBG&&(c.c.d3tobg??={},c.c.d3tobg[t]??=[],c.c.d3tobg[t].push(R[f])),"none"!==(u.mF??"none")&&(i.push(_tpt.checkResources(["cssfilters"])),y.classList.add(u.mF)),R[f].listeners.sel&&y.setAttribute("aria-pressed",!1),"none"==u.pE&&A&&(A.style.pointerEvents="none"),"none"==u.pE&&O&&(O.style.pointerEvents="none"),{globalLowLayers:o,buildLayers:r,promises:i,d3tobg:l,headerStyle:n}};const unhideFocusable=e=>{e?.querySelectorAll&&e.querySelectorAll('a[href], button, [tabindex]:not
28([tabindex="-1"])').forEach(t=>{let s=t;for(;s&&s!==e;)s.getAttribute&&"true"===s.getAttribute("aria-hidden")&&s.setAttribute("aria-hidden",!1),s=s.parentElement})};SR7.F.reAppendLayers=(e,t,s,i)=>new Promise(a=>{const r=SR7.M[e],n=r.slides[t],{layers:o}=n,l=r.c.layers;if(null==s||Array.isArray(s)||"object"==typeof s)s=SR7.F.setLayerProcOrder(e,t);else{let i=SR7.F.setLayerProcOrder(e,t),a=SR7.layer.getChildren(SR7.editing.slide,s,10);s=[s];for(let e of i)(a.indexOf(e)>=0||a.indexOf(String(e))>=0)&&s.push(e)}Array.isArray(s)||(s=[s]);for(let a in s){if(!_tpt.hop(s,a)||null==o[s[a]])continue;const n=o[s[a]].id,d="-1"===String(o[n].pid);if(d&&!i)continue;let c=l[SR7.F.getLKey(e,t,n)];const p=d?r.c.slides:l[SR7.F.getLKey(e,t,o[n].pid)];if(p[d?t:null==p.con?"el":"con"].appendChild("column"===o[n].subtype||"row"===o[n].subtype?c.el:c.addonWrap?c.addonWrap:c.parallax?c.parallax:c.loop?c.loop:c.mask?c.mask:c.el),d||(c.ptype=p.subtype),SR7.E.backend){let s=SR7.layer.getC(c.lkey);if(s&&s.layer)for(let i of SR7.F.addonOrderForLayer(e,s.layer))SR7.A?.[i]?.postProcessLayer&&SR7.A[i].postProcessLayer(e,s.layer,s.c,t)}}unhideFocusable(r.c?.slides?.[t]),a()});const outerNode=e=>"column"===e.subtype||"row"===e.subtype?e.el:e.addonWrap??e.parallax??e.loop??e.mask??e.el,dropColumnCaches=(e,t,s)=>{const i=SR7.M[e].slides[t].layers;for(const a in i){if(!_tpt.hop(i,a)||String(i[a].pid)!==String(s)||"column"!==i[a].subtype)continue;const r=SR7.F.getLayer({id:e,skey:t,lkey:a}).c;r&&(delete r.cols,delete r.colOrder,delete r.gap,delete r.uGap)}},subtreeInOrder=(e,t,s,i)=>{const a=new Set;for(const i of s??[]){a.add(String(i));for(const s of SR7.F.getAllChildren(e,t,i))a.add(String(s))}return i.filter(e=>a.has(String(e)))},builtIn=(e,t,s,i,a)=>{const r=SR7.M[e].slides[t].layers,n=[];for(const o of i){if(String(r[o]?.pid)!==String(s))continue;const i=SR7.F.getLayer({id:e,skey:t,lkey:o}).c,l=i&&outerNode(i);l?.parentNode===a&&n.push([o,l])}return n},nextBuilt=(e,t,s,i,a)=>{const r=builtIn(e,t,SR7.M[e].slides[t].layers[s]?.pid,i,a),n=i.findIndex(e=>String(e)===String(s));return r.find(([e])=>i.indexOf(e)>n)?.[1]??null},putInPlace=(e,t,s,i)=>{const a=SR7.F.getLayer({id:e,skey:t,lkey:s}).c,r=a&&outerNode(a),n=r?.parentNode;if(!n)return!1;const o=new Set(builtIn(e,t,SR7.M[e].slides[t].layers[s].pid,i,n).map(([,e])=>e)),l=nextBuilt(e,t,s,i,n);let d=r.nextSibling;for(;d&&!o.has(d);)d=d.nextSibling;return d!==l&&(n.insertBefore(r,l),!0)};SR7.F.addLayers=async(e,t,s)=>{const i=SR7.M[e],a=i?.slides?.[t];if(SR7.E.backend||!a||!i.layersPrepared?.[t])return[];const r=a.layers,n=i.c.layers,o=SR7.F.setLayerProcOrder(e,t),l=!a.slide.global&&!SR7.F.isCarousel(e)&&String(i.current?.id)!==String(t);let d,c=[],p=_tpt.collector(),u="",h=[];const g=[];for(const a of subtreeInOrder(e,t,s,o)){const s=r[a];if(!s||n[SR7.F.getLKey(e,t,a)])continue;const m="-1"===String(s.pid),f=m?void 0:n[SR7.F.getLKey(e,t,s.pid)];if(!m&&!f)continue;({globalLowLayers:h,buildLayers:p,promises:c,d3tobg:d,headerStyle:u}=await SR7.F.prepareLayer(e,t,a,c,l,p,u,h,d));const S=n[SR7.F.getLKey(e,t,a)];if(!S)continue;const y=m?h.includes(S.lid)?i.c.slides[t+"_2"]:i.c.d3?.[t]?.layers??i.c.slides[t]:f[f.con?"con":"el"];y.insertBefore(outerNode(S),nextBuilt(e,t,a,o,y)),m||(S.ptype=f.subtype),"column"===s.subtype&&dropColumnCaches(e,t,s.pid),g.push(a)}if(!g.length)return g;for(const s of g){const i=r[s],a=n[SR7.F.getLKey(e,t,s)];for(const s of SR7.F.addonOrderForLayer(e,i))SR7.A?.[s]?.postProcessLayer?.(e,i,a,t)}const m=document.getElementById(e+"_"+t+"_layerstyles");return""===u||(m?.innerHTML??"").includes(u)||_tpt.injectCssJs(u,void 0,void 0,e+"_"+t+"_layerstyles"),unhideFocusable(i.c?.slides?.[t]),await Promise.all(c),g},SR7.F.moveLayers=(e,t,s)=>{const i=SR7.M[e],a=i?.slides?.[t];if(SR7.E.backend||!a||!i.layersPrepared?.[t])return[];const r=a.layers,n=SR7.F.setLayerProcOrder(e,t),o=new Set((s??[]).map(String)),l=new Set,d=new Map;for(const s of n){const i=o.has(String(s))&&SR7.F.getLayer({id:e,skey:t,lkey:s}).c,a=i&&outerNode(i).parentNode;a&&d.set(a,String(r[s].pid))}for(const[s,i]of d){const a=builtIn(e,t,i,n,s),d=new Map(a.map(([,e],t)=>[e,t])),c=[...s.childNodes].filter(e=>d.has(e)).map(e=>a[d.get(e)]),p=a.length+1,u=([s])=>void 0===SR7.F.getLayer({id:e,skey:t,lkey:s}).c.animState?.scene?1:o.has(String(s))?p:p*p,h=[],g=[];
28c.forEach((e,t)=>{h[t]=u(e),g[t]=-1;for(let s=0;s<t;s++)d.get(c[s][1])<d.get(e[1])&&h[s]+u(e)>h[t]&&(h[t]=h[s]+u(e),g[t]=s)});const m=new Set;for(let e=h.indexOf(Math.max(...h));e>=0;e=g[e])m.add(c[e][1]);for(const[s,i]of[...a].reverse())!m.has(i)&&putInPlace(e,t,s,n)&&l.add(String(s));a.some(([e])=>l.has(String(e))&&"column"===r[e].subtype)&&dropColumnCaches(e,t,i)}return n.filter(e=>l.has(String(e)))};const takeDown=(e,t,s,i,a)=>{const r=SR7.M[e];for(const r of SR7.F.addonOrder(SR7.A))if(SR7.A[r]?.removeLayer)try{SR7.A[r].removeLayer(e,t,s,a,i)}catch(e){console.error("SR7: "+r+".removeLayer threw on "+s,e)}SR7.F.fx?.detach?.(e,s,!1),(a.counter||a.counterTween)&&SR7.F.counter?.stop?.(a,i),a.counterArm&&(a.el.removeEventListener(a.counterArm.ev,a.counterArm.fn),delete a.counterArm);for(const e in a.tl??{})if(_tpt.hop(a.tl,e))for(const t in a.tl[e]??{})if(_tpt.hop(a.tl[e],t))try{a.tl[e][t]?.kill?.()}catch(e){}a.tl={};for(const e in a.replay??{})SR7.F.replayEmpty?.(a.replay[e]);for(const e in a.repeat??{})if(_tpt.hop(a.repeat,e)&&"cur"!==e)try{a.repeat[e]?.tl?.kill?.()}catch(e){}for(const e in a.delayedAction??{})for(const t of a.delayedAction[e]??[])t?.kill?.();for(const e of[a.tl_hover,a._revealTween,a._revealOutTween,a.counterTween,a.fxitl,a.fxotl])try{e?.kill?.()}catch(e){}if(r.sbt?.[t])for(const e of[s,s+"_loop"]){try{r.sbt[t][e]?.replay?.kill?.(),r.sbt[t][e]?.tl?.kill?.()}catch(e){}delete r.sbt[t][e]}const n=outerNode(a);_tpt.gsap.killTweensOf([n,...n.querySelectorAll("*")]),SR7.F.manageLayerListeners(a,i,!1),_tpt.event.rmAll(a.el),SR7.F.layerIX?.unregister?.(a.lid);for(const e in a._box?.fns??{})SR7.F.unwatchBox(a,e);try{a.media?.remove?.()}catch(e){}delete r.c.textLayers?.[a.lid],r.c.viSH?.el&&(r.c.viSH.el=r.c.viSH.el.filter(e=>e!==a.lid)),r.c.mod?.[t]&&(r.c.mod[t]=r.c.mod[t].filter(e=>e!==a.lid)),r.c.d3tobg?.[t]&&(r.c.d3tobg[t]=r.c.d3tobg[t].filter(e=>e!==a)),r.zones?.[t]?.zones&&delete r.zones[t].zones[a.lid];for(const e in r.c.stateGroups??{})r.c.stateGroups[e]?.c===a&&delete r.c.stateGroups[e];r.c.slideBGs?.[t]?.lid===a.lid&&delete r.c.slideBGs[t],delete SR7.lToK[e+"-"+t+"-"+i.id],delete SR7.lToK[a.lid],n.remove(),delete r.c.layers[a.lid]};function openUrlOrScroll(e,t,s,i,a){if("#"==e?.link)return e.link;if(e?.link&&String(e.link).includes("{{")&&(i??=SR7.M[t]?.slides[SR7.M[t]?.current?.skey]?.slide?.order,e={...e,link:SR7.F.updateDynamicMetas(t,i,e.link,a)}),String(e.link).toLowerCase().includes("mailto:")||String(e.link).toLowerCase().includes("tel:"))return s?e.link:window.open(e.link,e.target);let r=new URL(window.location.href),n=r.hostname,o=r.pathname.endsWith("/")?r.pathname:r.pathname+"/",l="";switch(e.http){case"auto":default:l=window.location.protocol;break;case"keep":l="";break;case"http":l="http:";break;case"https":l="https:"}let d=e.link&&e.link.indexOf("://")>-1?e.link.split("://")[0]:"";e.link=e.link&&e.link.replace(d+"://","").replace(d+"//","").replace("//","");let c,p,u=e.link;""==u||null==u?u=void 0:u.startsWith("#")?u=window.location.href.split("#")[0]+u:u.startsWith("?")?u=window.location.href.split("#")[0].split("?")[0]+u:!u.startsWith("/")&&l?u=l+"//"+u:u.startsWith("/")||l?l&&(u=l+"//"+e.link):u="https://"+u;try{c="http:///"==u||"https:///"==u||null==u||""==u?new URL(window.location.href):u.startsWith("/")&&"/"!==u[2]?new URL(u,window.location.href):new URL(u)}catch(e){console.log(e)}try{p=null==c?"/":c.pathname.endsWith("/")?c.pathname:c.pathname+"/"}catch(e){console.log(e)}if(s||n!=c.hostname||o!=p){if(s)return c?.href;e.anchor&&(c.hash=e.anchor);const t=c.searchParams?.get?.("add-to-cart");if(t&&("_self"===e.target||!e.target)&&SR7.F.wooAjaxAddToCart)return void SR7.F.wooAjaxAddToCart(t);window.open(c.href,e.target)}else{const s=c.searchParams?.get?.("add-to-cart");if(s&&SR7.F.wooAjaxAddToCart)return void SR7.F.wooAjaxAddToCart(s);SR7.F.scrollToId({id:t,offset:e.offset??0,action:e.a,anchor:e.anchor,speed:e.s??1e3,ease:e.e})}}SR7.F.removeLayers=(e,t,s)=>{const i=SR7.M[e],a=i?.slides?.[t];if(SR7.E.backend||!a)return[];const r=a.layers,n=i.c.layers,o=subtreeInOrder(e,t,s,SR7.F.setLayerProcOrder(e,t)),l=new Set,d=new Set;for(const s of[...o].reverse()){const i=r[s];if(!i)continue;const a=n[SR7.F.getLKey(e,t,s)];a&&takeDown(e,t,s,i,a),"column"===i.subtype&&d.add(String(i.pid)),delete r[s],l.add(String(s))}if(!l.size)return[];for(const e of a.slide?.actions??[])Array.isArray(e.src)&&(e.src=e.src.filter(e=>
28!l.has(String(e))));SR7.F.setLayerProcOrder(e,t);for(const s of d)dropColumnCaches(e,t,s);return o.filter(e=>l.has(String(e)))},SR7.F.prepareLayers=async(e,t,s,i)=>{SR7.F.buildLayerNavs(e,t);const a=SR7.M[e],r=a.slides[t];if(a?.layersPrepared?.[t])return;let n,o=[],{layers:l}=r,d=_tpt.collector();for(const s of SR7.F.addonOrderForSlide?.(e,r.slide)??[])SR7.A?.[s]?.prepareSlideLayers?.(e,t);let c=SR7.F.setLayerProcOrder(e,t);a.hasTouchSwipe??=SR7.F.isCarousel(e)||_tpt.is_mobile&&"off"!==String(a.settings.nav?.s?.use)&&"false"!==String(a.settings.nav?.s?.use)||a.settings.nav?.s?.desk,a.c.layers??={},SR7.lToK??={},a.c.slideBGs??={};let p=a.c.layers,u="",h=[];a.zoneIndexes??={};for(let a in c)_tpt.hop(c,a)&&null!=l[c[a]]&&({globalLowLayers:h,buildLayers:d,promises:o,d3tobg:n,headerStyle:u}=await SR7.F.prepareLayer(e,t,c[a],o,s,d,u,h,n,i));if(await SR7.F.reAppendLayers(e,t,c),a.settings.mod?.d3){if(a.c.d3??={},a.c.d3[t]??={},a.c.d3[t].layers??=_tpt.addContainer({tag:"sr7-3dwrap",class:"sr7-3dwrap-layers"}),d.append(a.c.d3[t].layers),n){let e=_tpt.addContainer({tag:"sr7-3dwrap",class:"sr7-3dwrap-bg"+(n.use?"":"-no-3d")});if(e.appendChild(n.el),a.c.d3tobg?.[t]?.length>0)for(let s of a.c.d3tobg[t])e.appendChild(s.addonWrap?s.addonWrap:s.addonInnerWrap?s.addonInnerWrap:s.parallax?s.parallax:s.loop?s.loop:s.mask?s.mask:s.con?s.con:s.el);d.append(e),n.use&&(a.c.d3[t].bg=e),a.c.slides[t].appendChild(e)}a.c.slides[t].appendChild(a.c.d3[t].layers)}else d.append(a.c.slides[t]);for(let s in c){if(!_tpt.hop(c,s))continue;const i=c[s],a=l[i];if(null==a||null==p[SR7.F.getLKey(e,t,i)])continue;const r=SR7.F.attrId(a.attr?.id)??e+"-"+t+"-"+a.id;for(let s of SR7.F.addonOrderForLayer(e,a))SR7.A?.[s]?.postProcessLayer&&SR7.A[s].postProcessLayer(e,a,p[r],t)}if(a.layersPrepared??={},a.layersPrepared[t]=!0,r.slide.global)for(const e of h)a.c.slides[t+"_2"].appendChild("column"===p[e].subtype||"row"===p[e].subtype?p[e].el:p[e].addonWrap?p[e].addonWrap:p[e].parallax?p[e].parallax:p[e].loop?p[e].loop:p[e].mask?p[e].mask:p[e].el);return _tpt.injectCssJs(u,void 0,void 0,e+"_"+t+"_layerstyles"),_tpt.R.fonts&&!SR7.M[e].c.waitingOnFont&&(_tpt.waitFonts(_tpt.R.fonts.required,function(){SR7.F.updateModuleDims(e,!0,!0)},e),SR7.M[e].c.waitingOnFont=!0),Promise.all(o)},SR7.F.getSlideBGSource=(e,t)=>{const{bg:s}=SR7.M[e].slides[t].layers[SR7.M[e].c.slideBGs[t].lkey];return s?.image?.src??s?.video?.poster?.src??void 0},SR7.F.getNavBG=(e,t,s)=>{let i=s?.src??"",a=SR7.F.getSlideBG(e,t)?.bg;return i=""!=i||a?i:s?.admin??"",i=""==i||"#"==i[i.length-1]||i.includes("://server.local/")&&!window.location.hostname.startsWith("server.local")?a:{image:{src:i,size:"cover",repeat:"no-repeat",pos:{x:"center",y:"center"}}},i=0==(i?.image?.src??!1)?0==(i?.video?.poster?.src??!1)?i:{image:{src:i?.video.poster.src,size:"cover",repeat:"no-repeat",pos:{x:"center",y:"center"}}}:i,i=null==i?{image:{src:i,size:"cover",repeat:"no-repeat",pos:{x:"center",y:"center"}}}:i,SR7.E.backend||(i.slidebg=a),i},SR7.F.setLayerProcOrder=(e,t)=>{if(void 0===t||-1===t)return;const s=SR7.M[e];s.c.PO??={};const i=s.slides[t],{layers:a}=i,r=s.c.PO[t]=[],n={};Object.keys(a).forEach(e=>{const t=a[e],s=String(t.pid);n[s]||(n[s]=[]),n[s].push(t)});const o=e=>{const t=n[e]??[];t.sort((e,t)=>(void 0!==e.order?e.order:e.zIndex)-(void 0!==t.order?t.order:t.zIndex));for(const e of t)if(r.push(e.id),"container"===e.type&&n[e.id]){n[e.id].sort((e,t)=>{if("relative"===e.pos.pos&&"relative"!==t.pos.pos)return-1;if("relative"!==e.pos.pos&&"relative"===t.pos.pos)return 1;return(void 0!==e.order?e.order:e.zIndex)-(void 0!==t.order?t.order:t.zIndex)}),o(e.id)}};return o("-1"),r},SR7.F.layerListener=(e,t,s,i,a,r)=>{if(void 0!==s&&!1!==s){let s;for(let n of t)s=_tpt.tEvt(n),e.listeners[s]??=_tpt.event.listen(e.el,s,SR7.F.layerMouse,e,r),a&&(e.listeners.callbacks??={},e.listeners.callbacks[s]??={},e.listeners.callbacks[s][i]=a)}else{let s;for(let i of t)s=_tpt.tEvt(i),_tpt.event.rm(e.el,e.listeners[s]),delete e.listeners[s]}return _tpt.event.hasListener(e.el)},SR7.F.manageLayerListeners=(e,t,s,i,a,r)=>{e.listeners.lastuse=s,s&&!e.selInit&&!SR7.E.backend&&t?.sel?.init&&(e.selInit=!0,SR7.F.setState({c:e,layer:t,id:e.mid},"sel",!0,0)),e.listeners.hover&&(e.listeners.hasAny=SR7.F.layerListener(e,_tpt.is_mobile?["touchstart","touchend","touchmove"]:["mousemove","mouseleave","mouseenter"],s)),(e.listeners.toggle||e.listeners.sel)&&(e.listeners.hasAny=SR7.F.layerListener(e,["click"],s)),void 0!==t&&void 0!==e.listeners.action&&!1!==e.listeners.action&&(e.listeners.hasAny=SR7.F.layerListener(e,_tpt.tEvt(t.listen),s)),void 0!==i&&!1!==e.listeners[i]&&(e.listeners.hasAny=SR7.F.layerListener(e,a,s,i,r)),void 0===e.media||"slidebg"===e.subtype||t?.content?.noInteract||t.bg?.video?.noInteract||(e.media.player.options.controls??"").includes("s")&&!e.media.player.options.canHide||(e.listeners.hasAny=SR7.F.layerListener(e,["click"],s))},SR7.F.layerMouse=(e,t)=>{let s=_tpt.tEvt(e.type);
28if("mouseenter"===s||"touchstart"===s)t.listeners.hover&&SR7.F.processHover(SR7.F.getLayer(t.el.id),"hover");else if("mousemove"===s||"touchmove"===s)t.listeners.hover&&SR7.F.processHover(SR7.F.getLayer(t.el.id),"hover");else if("mouseleave"===s||"touchend"===s)t.listeners.hover&&SR7.F.processHover(SR7.F.getLayer(t.el.id),"idle");else if("click"===s){if(t.listeners.toggle&&SR7.F.toggleLayer(SR7.F.getLayer(t.el.id)),t.listeners.sel){const e=SR7.F.getLayer(t.el.id);t.states?.on?.sel&&"radio1"===e.layer.sel.mode||SR7.F.setState(e,"sel",!t.states?.on?.sel)}void 0===t.media||(t.media.player.options.controls??"").includes("s")&&!t.media.isHidden()||t.media.toggle()}if("touchend"===s){let t=e.touches[0]||e.changedTouches[0];e.target!==document.elementFromPoint(t.clientX,t.clientY)&&(s="mouseleave")}if(t.listeners.action&&t.listeners.action.indexOf(s)>=0&&SR7.F.processActions(s,t),t.listeners.callbacks?.[s])for(let i in t.listeners.callbacks[s])_tpt.hop(t.listeners.callbacks[s],i)&&t.listeners.callbacks[s][i](t.mid,e,t)},SR7.F.processActions=(e,t)=>{const{id:s,skey:i}=SR7.F.getLayer(t.el.id),a=String(t.lkey);let r=_tpt.tEvt(e);const n=_tpt.tEvt("mouseleave"===r||"touchend"===r?"mouseenter":"mouseenter"===r||"touchstart"===r?"mouseleave":"click");if(t.delayedAction??={},null!=SR7.M[s].slides[i].slide.actions){if(t.listeners.aCache[r]??=SR7.M[s].slides[i].slide.actions.filter(e=>e.src.some(e=>String(e)===a)&&_tpt.tEvt(e.evt)==r),t.delayedAction[n])for(let e of t.delayedAction[n])void 0!==e&&void 0!==e.kill&&e.kill();t.delayedAction[n]=[],t.delayedAction[r]=[];for(let e in t.listeners.aCache[r])if(_tpt.hop(t.listeners.aCache[r],e)){let a=t.listeners.aCache[r][e];if(!SR7.F.shouldUpdate(t,a.rd,a.a))continue;if(!t.animState?.stageState)continue;a.a.includes("mute")&&_tpt.isIOS?SR7.F.actionCall(s,i,a,t.el):t.delayedAction[r].push(_tpt.gsap.delayedCall(parseInt(a.d??0)/1e3,SR7.F.actionCall,[s,i,a,t.el]))}}},SR7.F.updateAllTogglePrgLayers=e=>{requestAnimationFrame(function(){let t=SR7.M[e];for(let s in t.slides)if(_tpt.hop(t.slides,s)&&null!=(t.slides?.[s]?.slide?.actions??void 0)&&0!=t.slides[s].slide.actions.length)for(let i of t.slides[s].slide.actions)if("togglePrg"==i.a)for(let a of i.src){let i=SR7.F.getLayer({skey:s,lkey:a,id:e});i.c&&i.layer&&SR7.F.toggleLayer(i,"paused"==(t.slideShow?.state??"playing"))}})},SR7.F.layerHref=(e,t,s,i,a)=>{const r=SR7.M[e],n=r?.slides?.[t],o=n?.layers?.[s];if(!i||!o)return;if(!a)for(let i of SR7.D.linktypes)a||(a=SR7.D.hasActionLike(e,t,s,i));if(!a)return;const l={id:e,skey:t,lid:o.id,lkey:s,layer:o},d=openUrlOrScroll(a,e,!0,n.slide.order,l);return void 0!==d&&(i.href=d),d&&(String(a.link).includes("wc_add_to_cart")||/[?&]add-to-cart=/.test(String(d)))&&SR7.F.decorateWooAddToCart?.(i,d,SR7.F.getFeed(r,n.slide.order,"postid",void 0,void 0,void 0,l)),d};const refUpdate=(e,t,s,i)=>"in"==SR7.M[e].slides[t].layers[s]?.tl?.[i]||"out"==SR7.M[e].slides[t].layers[s]?.tl?.[i]?SR7.M[e].slides[t].layers[s]?.tl?.[i]:i;function getAltFromNoscriptSibling(e){if(!e)return null;let t=[];if(e.parentElement)for(const s of e.parentElement.children)s!==e&&s.tagName&&"noscript"===s.tagName.toLowerCase()&&t.push(s);const s=e.getElementsByTagName("noscript");for(const e of s)t.push(e);for(const e of t){const t=(e.innerHTML||e.textContent||"").match(/<img[^>]*alt=["']([^"']*)["']/i);if(t&&t[1])return t[1]}return null}SR7.F.getScene=(e,t,s)=>SR7.M[e].slides[t].slide?.scenes[s]?.d,SR7.F.mediaTargets=(e,t,s)=>{const i=SR7.M[e],a=[];for(let r of t){let[t,n]=String(r).includes(":")?String(r).split(":"):[s,r];if("backgroundvideo"==n&&(n=SR7.F.getSlideBG(e,t)?.id),"firstvideo"==n&&(t=i.current.id,n=Object.values(i.slides[i.current.id].layers).find(e=>"video"==e.subtype)?.id,void 0===n))continue;const o=i.c.layers[SR7.lToK[e+"-"+t+"-"+n]]?.media;o&&a.push(o)}return a},SR7.F.actionCall=(id,skey,action,el)=>{const M=SR7.M[id],aOf=el?.id?SR7.F.getLayer(el.id):void 0,actx=void 0===aOf?.layer?void 0:{id:id,skey:aOf.skey??skey,lid:aOf.lkey,layer:aOf.layer,action:action.a};M.states.actions??={},M.states.debounceTimers??=new Map;const atList=null==action.target?[]:Array.isArray(action.target)?action.target:[action.target];switch(action.a){case"playScene":case"toggleScenes":{let e="glbl"==action.sid?M.staticSlides[0]:action.sid??skey,t="toggleScenes"===action.a?action.toggled?action.scm:action.scn:action.sc;String(skey).toLowerCase().includes("str")&&(e=String(skey).includes(e)?skey:String(skey).split("str")[0]+e);
28let s=M.slides[e]?.slide?.scenes?.[t]?.d;if("toggleScenes"===action.a&&(action.toggled=!action.toggled),s)for(let i of s)M.states.debounceTimers.has(e+"_"+i)&&clearTimeout(M.states.debounceTimers.get(e+"_"+i)),M.states.debounceTimers.set(e+"_"+i,setTimeout(()=>{M.states.actions[e]??={};let s="toggleScenes"!==action.a||SR7.F.shouldUpdate(M.states.actions[e],31,i),a=refUpdate(id,e,i,t);s&&SR7.F.animateLayers({id:id,skey:e,layers:[i],scene:a,reset:action.rec,caller:"action"}),M.states.debounceTimers.delete(e+"_"+i)},19));else{if(!atList.length)return;for(let e of atList){let[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e];M.states.debounceTimers.has(t+"_"+s)&&clearTimeout(M.states.debounceTimers.get(t+"_"+s)),M.states.debounceTimers.set(t+"_"+s,setTimeout(()=>{M.states.actions[skey]??={};let e="toggleScenes"!==action.a||SR7.F.shouldUpdate(M.states.actions[skey],31,s),i="toggleScenes"===action.a?(M.c.layers[SR7.lToK[id+"-"+t+"-"+s]]?.animState?.scene??"")==refUpdate(id,t,s,action.scn)?refUpdate(id,t,s,action.scm):refUpdate(id,t,s,action.scn):refUpdate(id,t,s,action.sc);e&&SR7.F.animateLayers({id:id,skey:t,layers:[s],scene:i,reset:action.rec,caller:"action"}),M.states.debounceTimers.delete(t+"_"+s)},19))}}break}case"callSlide":SR7.F.requestSlide({id:id,slide:"next"==action.target?"+1":"prev"==action.target?"-1":"first"==action.target?"#"+M.navSlideOrder[0]:"last"==action.target?"#"+M.navSlideOrder[M.len-1]:"random"==action.target?Math.round(Math.random()*M.navLen+1):"#"+(Array.isArray(action.target)?action.target[0]:action.target),at:action.at});break;case"pause":SR7.slideShow.pause(id);break;case"resume":SR7.slideShow.resume(id);break;case"togglePrg":SR7.slideShow["paused"==(M.slideShow?.state??"nothing")?"resume":"pause"](id);break;case"prev":SR7.F.requestSlide({id:id,slide:"-1"});break;case"next":SR7.F.requestSlide({id:id,slide:"+1"});break;case"toggleClass":for(let e of atList){let t=M.c.layers[SR7.lToK[id+"-"+skey+"-"+e]].el;t.classList[t.className.includes(action.class)?"remove":"add"](action.class)}break;case"simulate":if(SR7.M[id].c?.swipeAble&&SR7.M[id].c.swipeAble.length)for(let e of SR7.M[id].c.swipeAble)e.disable();for(let e of atList)M.c.layers[SR7.lToK[id+"-"+skey+"-"+e]??SR7.lToK[id+"-"+e]].el.dispatchEvent(new Event(action.typ,{bubbles:!0}));if(SR7.M[id].c?.swipeAble&&SR7.M[id].c.swipeAble.length)for(let e of SR7.M[id].c.swipeAble)e.enable();break;case"menu":case"share_facebook":case"share_twitter":case"share_pinterest":case"share_linkedin":case"link":("a"!==action.ltype||""!==action.anchor&&void 0!==action.anchor)&&openUrlOrScroll(action,id,!1,M.slides[skey]?.slide?.order,actx);break;case"wc_add_to_cart":{const e=M.slides[skey]?.slide?.order,t=SR7.F.getFeed(M,e,"postid",void 0,void 0,void 0,actx)||SR7.F.getFeed(M,e,"id",void 0,void 0,void 0,actx),s=SR7.F.getFeed(M,e,"variation_id",void 0,void 0,void 0,actx)||0,i=aOf?.c,a=i?.el??el;if("busy"===a?.dataset?.sr7wc)break;a?.dataset&&(a.dataset.sr7wc="busy"),Promise.resolve(SR7.F.wooAjaxAddToCart?.(t,action.qty??1,s)).then(e=>{if(!a?.dataset)return;if("added"!==e)return delete a.dataset.sr7wc;a.dataset.sr7wc="added";const t=action.added&&"text"===actx?.layer?.type&&!i?.splitText?a.innerHTML:null;null!==t&&(a.textContent=action.added),setTimeout(()=>{delete a.dataset.sr7wc,null!==t&&(a.innerHTML=t)},2200)})}break;case"callback":eval(action.target);break;case"scroll":SR7.F.scrollToId({id:id,offset:action.offset,action:action.a,anchor:action.target,speed:action.s??1e3,ease:action.e});break;case"scrollbelow":SR7.F.scrollToId({id:id,offset:action.offset,action:action.a,speed:action.s??1e3,ease:action.e});break;case"getAccelerationPermission":_tpt.getAccelerationPermission(id);break;case"open_modal":String(action.msl).includes("rs-")&&SR7?.D?.fixSR6IDs&&(action.msl="#"+SR7.D.fixSR6IDs(action.msl.replace("rs-",""))),SR7.F.modal.open(action.target,action.msl??0);break;case"close_modal":String(action.msl).includes("rs-")&&SR7?.D?.fixSR6IDs&&(action.msl="#"+SR7.D.fixSR6IDs(action.msl.replace("rs-",""))),SR7.F.modal.close(action.target,action.msl??0);break;case"mute_video":case"unmute_video":case"toggle_mute_video":for(let e of SR7.F.mediaTargets(id,atList,skey)){let t="audio"===e?.player?.options?.type;const s=e.player.player,i=e.player.muted??s?.muted??_tpt.tf(e.player.options?.mute??!1);let a="mute_video"==action.a?"mute":"unmute_video"==action.a||i||t&&(s?.paused??1)?"unmute":"mute";t&&"unmute"==a&&e.play(),s?e[a]():e.player.options.mute="mute"==a}break;case"toggle_global_mute_video":M.states.globalMute=M.states.globalMute&&"unmute"!=M.states.globalMute?"unmute":"mute",Object.values(M.c.layers).filter(e=>
28e.media).forEach(e=>{const t=e.media;t.isPlaying()?t[M.states.globalMute]():t.player.options.mute="mute"==M.states.globalMute});break;case"toggle_video":case"stop_video":case"start_video":for(let e of SR7.F.mediaTargets(id,atList,M.c.layers[SR7.lToK[el.id]]?.skey??skey)){let t=e.player.lastPlayerState;t="start_video"==action.a?"play":"stop_video"==action.a||1==t?"pause":"play",e[t]()}break;case"restart_video":for(let e of SR7.F.mediaTargets(id,atList,M.c.layers[SR7.lToK[el.id]]?.skey??skey))e.rewind(),e.play();break;case"seek_video":for(let e of SR7.F.mediaTargets(id,atList,M.c.layers[SR7.lToK[el.id]]?.skey??skey))e.seek(action.sec??0);break;case"set_volume":for(let e of SR7.F.mediaTargets(id,atList,M.c.layers[SR7.lToK[el.id]]?.skey??skey))e.setVolume(action.vol??100);break;case"counter_start":case"counter_reset":for(let e of atList){const[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e],i=M.c.layers[SR7.lToK[id+"-"+t+"-"+s]],a=M.slides?.[t]?.layers?.[s];i&&a&&("counter_reset"===action.a?SR7.F.counter?.stop?.(i,a,!0):(i.counterRan=!1,SR7.F.counter?.start?.(id,i,a,"in",!0)))}break;case"exitfullscreen":case"togglefullscreen":case"gofullscreen":SR7.F.module.fullScreen(id,"gofullscreen"==action.a||"togglefullscreen"==action.a&&!M.states.inFullscreen);break;default:for(let e of atList.length?atList:actx?[actx.skey+":"+actx.lid]:[]){e=""+e;let[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e];_tpt.event.trigger("dom","sr.layer.action",{id:id,action:action,scene:action.sc,skey:t,lkey:s,eventtype:action.a,source:actx})}}},SR7.F.shouldUpdate=(e,t=0,s)=>{if(!t||0==t)return!0;t=parseInt(t),e.timeStamps??={};const i=(new Date).getTime(),a=e.timeStamps[s]?i-e.timeStamps[s]:t+100;return a>t&&(e.timeStamps[s]=i),a>t},SR7.F.toggleLayer=(e,t)=>{let{c:s,skey:i}=e;if(null==s.tog)return;const a=SR7.F.fx?.contentChange?.(e);s.tog.default??=s.el.innerHTML,s.el.innerHTML=!0===t?s.tog.default:!1===t?s.tog.toggled:s.tog.state?s.tog.default:s.tog.toggled,s.tog.state=1==t||!1!==t&&!s.tog.state,SR7.F.positionLayer(e,i),a?.()},SR7.F.showHideLayersOnHover=(e,t)=>{let s="hide"==t||"mouseleave"===t.type?"add":"remove";SR7.M[e].c.viSH.el.forEach(t=>{SR7.M[e].c.layers[SR7.lToK[t]].el.classList[s]("sr7--hidden")})},_tpt.R??={},_tpt.R.layer=_tpt.extend?_tpt.extend(_tpt.R.layer,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},SR7.loadVideoAPI)return;SR7.cookieMediaAllowed=!0;const e=e=>new Promise((t,s)=>{const i={youtube:{globalObjectName:"YT",playerObjectName:"Player",scriptSrc:"https://www.youtube.com/iframe_api"},vimeo:{globalObjectName:"Vimeo",playerObjectName:"Player",scriptSrc:"https://player.vimeo.com/api/player.js"}}[e];if(!i)return void s(new Error('Invalid API name. Please use "youtube" or "vimeo"'));const a=()=>window[i.globalObjectName]&&window[i.globalObjectName][i.playerObjectName],r=Array.from(document.getElementsByTagName("script")).find(e=>e.src===i.scriptSrc);if(a())t();else{if(r){const e=setInterval(()=>{a()&&(t(),clearInterval(e))},50);return}{const r=document.createElement("script");r.src=i.scriptSrc,r.onload=()=>{const e=setInterval(()=>{a()&&(t(),clearInterval(e))},50)},r.onerror=()=>s(new Error(`Failed to load ${e} API`)),document.head.appendChild(r)}}});SR7.loadVideoAPI=async t=>{if("html5"!==t&&"audio"!==t)try{if("realcookiebanner"===SR7.G.gdprfilter){if(await async function(e){if(!window.consentApi)return!1;const t=()=>window.consentApi.consentSync(e);let s=t();if(s.consentGiven)return!0===s.cookie||!1!==s.cookie&&!0===s.cookieOptIn;const i=performance.now();for(;performance.now()-i<15e3;){let e=t();if(e.consentGiven)return!0===e.cookie||!1!==e.cookie&&!0===e.cookieOptIn;await _tpt.wait(20)}return!1}(t))return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (realcookiebanner)")}if("themepunch"===SR7.G.gdprfilter){if(await async function(){if(!window.TP_COOKIES_UI)return!1;let e=window.TP_COOKIES_UI.get("video");if("wait"!==e)return e;const t=performance.now();for(;performance.now()-t<15e3;){let e=window.TP_COOKIES_UI.get("video");if("wait"!==e)return e;await _tpt.wait(20)}return!1}())return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (themepunch)")}if("complianz"===SR7.G.gdprfilter){if(await async function(){if(!window.complianz)return!1;const e=()=>window.cmplz_get_banner_status(),t=e=>window.cmplz_accepted_categories().includes(e);if("dismissed"===e())return t(SR7.G.gdprcategory);const s=performance.now();for(;performance.now()-s<15e3;){if("dismissed"===e())return t(SR7.G.gdprcategory);await _tpt.wait(20)}return!1}())return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (complianz)")}if("cookienotice"===SR7.G.gdprfilter){if(await async function(){const e={functional:"1",personalised:"2",statistics:"3",marketing:"4"}[String(SR7.G.gdprcategory||"marketing").toLowerCase()]||"4";let t;try{t=JSON.parse(_tpt.cookie.get("hu-consent"))}catch{t=null}if(t?.consent)return!0===t.categories[e];const s=performance.now();for(;performance.now()-s<15e3;){try{t=JSON.parse(_tpt.cookie.get("hu-consent"))}catch{t=null}if(t?.consent)return!0===t.categories[e];await _tpt.wait(20)}return!1}())return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (cookienotice)")}if("cookieyes"===SR7.G.gdprfilter){if(await async function(){if(!window.getCkyConsent)return!1;const e={functional:["functional","necessary"],preferences:["functional"],statistics:["analytics","performance"],marketing:["advertisement"]}[String(SR7.G.gdprcategory||"marketing").toLowerCase()]||["advertisement"],t=t=>{if(!t)return!1;for(let s=0;s<e.length;s++)if(!0===t[e[s]])return!0;return!1};let s;try{s=window.getCkyConsent()}catch{s=null}if(s?.isUserActionCompleted)return t(s.categories);const i=performance.now();for(;performance.now()-i<15e3;){try{s=window.getCkyConsent()}catch{s=null}if(s?.isUserActionCompleted)return t(s.categories);await _tpt.wait(20)}return!1}())return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (cookieyes)")}if("gdprcc"===SR7.G.gdprfilter){if(await async function(){const e={functional:"strict",statistics:"performance",preferences:"preference",marketing:"advanced"}[String(SR7.G.gdprcategory||"marketing").toLowerCase()]||"advanced",t=()=>{let t;try{t=JSON.parse(_tpt.cookie.get("moove_gdpr_popup"))}catch{return null}return t?1===t[e]||"1"===t[e]||!0===t[e]||"true"===t[e]||!(e in t)&&null:null};let s=t();if(null!==s)return s;const i=performance.now();for(;performance.now()-i<15e3;)if(await _tpt.wait(20),s=t(),null!==s)return s;return!1}())return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (gdprcc)")}if("cookiebotcmp"===SR7.G.gdprfilter){if(await async function(){if(!window.Cookiebot)return!1;const e={functional:"necessary",preferences:"preferences",statistics:"statistics",marketing:"marketing"}[String(SR7.G.gdprcategory||"marketing").toLowerCase()]||"marketing",t=()=>{const t=window.Cookiebot&&window.Cookiebot.consent;return t?!0===t[e]:null};let s=t();if(!0===s)return!0;
28if(!1===s&&window.Cookiebot?.consent)return!1;const i=performance.now();for(;performance.now()-i<15e3;){if(s=t(),!0===s)return!0;if(!1===s&&window.Cookiebot?.consent)return!1;await _tpt.wait(20)}return!1}())return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (cookiebotcmp)")}if("borlabscookie"===SR7.G.gdprfilter){if(await async function(e){const t=window.BorlabsCookie;if(!t)return!1;const s=()=>{let s;try{s=t.Consents?.hasConsent?t.Consents.hasConsent(e):t.checkCookieConsent?.(e)}catch{s=null}if(!0===s)return!0;try{s=JSON.parse(_tpt.cookie.get("borlabs-cookie"))}catch{return null}return s?.consents?Object.values(s.consents).some(t=>Array.isArray(t)&&t.includes(e)):null};let i=s();if(null!==i)return i;const a=performance.now();for(;performance.now()-a<15e3;)if(await _tpt.wait(20),i=s(),null!==i)return i;return!1}(t))return void await e(t);throw SR7.cookieMediaAllowed=!1,new Error("Video API blocked by consent (borlabscookie)")}await e(t)}catch(e){throw void 0===SR7.cookieMediaAllowed&&(SR7.cookieMediaAllowed=!0),e}};class t{states={unstarted:-1,ended:0,playing:1,paused:2,buffering:3,cued:4};constructor(e,t,s){let{id:i,skey:a}=SR7.F.getLayer(t.id);this.el=t,this.id=i,this.skey=a,this.container=e,this.containerId=e.id,this.options=s,this.player=null,this.aspectRatio=_tpt.getRatio(this.options.ratio),this.options.loop=s.loop||!1,this.options.start=parseInt(this.convertSec(s.start)),this.options.end=parseInt(this.convertSec(s.end)),this.state=null,this.type=s.type,this.requestedAction=null,this.listeners={},this.options.canHide=!_tpt.is_mobile&&1==(this.options.poster?.showOnPause??void 0)||_tpt.is_mobile&&!0!==(this.options.poster?.noOnMobile??!1)&&1==(this.options.poster?.showOnPause??void 0)}convertSec(e){return""==e?0:null==e?-1:_tpt.isNumeric(e)?e:e.split(":").length>1?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e}async waitForContainer(e){let t=0;return new Promise((s,i)=>{let a=document.getElementById(e);if(a)return void s(a);const r=setInterval(()=>{let a=document.getElementById(e);a?(clearInterval(r),s(a)):t>=100&&(clearInterval(r),i(new Error("Container element not found within the timeout period."))),t+=19},19)})}showHide(){if(null==this.lastPlayerState)this.options.canHide?_tpt.gsap.set(this.container,{opacity:0,pointerEvents:"none"}):_tpt.tf(this.options.noInteract)&&_tpt.gsap.set(this.container,{pointerEvents:"none"}),this.hidden=!0;else if(this.lastPlayerState==this.states.playing){if(this.pauseBy=null,this.container.style.opacity<1){let e=(new Date).getTime()-(this.frameStart??0);_tpt.gsap.to(this.container,e<500?0:this.options.animDur/1e3,{opacity:1,pointerEvents:(this.options.controls??"").includes("s")?"auto":"none"}),this.hidden=!1}}else this.lastPlayerState!=this.states.paused&&this.lastPlayerState!=this.states.ended||this.options.canHide&&"scroll"!==this.pauseBy&&(_tpt.gsap.to(this.container,this.options.animDur/1e3,{opacity:0,pointerEvents:"none"}),this.hidden=!0);"none"==this.options.controls&&this.canvas&&(this.canvas.wrap.style.pointerEvents="none")}isHidden(){return this.hidden}isPlaying(){return this.lastPlayerState==this.states.playing}isReady(){return this.playerReady}toggle(){this.player&&(this.lastPlayerState==this.states.playing?this.pause():this.play())}hasEvent(e){return this.listeners[e]}removeEvent(e){this.listeners[e]&&delete this.listeners[e]}playingList(e,t){null!=t&&(SR7.M[t.id].videosPlaying??={},"add"===e?SR7.M[t.id].videosPlaying[t.containerId]=t:"remove"===e&&delete SR7.M[t.id].videosPlaying[t.containerId])}stopPlayingMedias(){if("false"==String(this?.options?.stopAllMedia))return;const e=SR7.M?.[this.id];if(e&&null!=e.videosPlaying)for(let t in e.videosPlaying)if(_tpt.hop(e.videosPlaying,t)&&t!==this.containerId&&e.videosPlaying[t]?.skey!==e.current?.id)try{e.videosPlaying[t].pause("auto")}catch(e){}}dispatch(e,t){if(!this.listeners)return;const s=this.listeners[e];s&&s.callback(t,s.params)}async ensureReadyAndExecute(e,t,s){this.requestedAction=t;let i=this.requestedAction;this.playerReady?this.readyEventWaitAdded&&this.removeEvent("ready"):await new Promise(e=>{this.readyEventWaitAdded=!0,this.readyListenerID=this.addEvent("ready",e)}),i===this.requestedAction&&e.call(this,s)}}class s extends t{async add(){try{await SR7.loadVideoAPI("youtube")}catch{console.log("YT API Blocked")}try{await this.waitForContainer(this.containerId)}catch(e){return void console.error(e)}const e=this.options.args??"",t=(t,s)=>{const i=e.match(new RegExp(`${t}=([\\w\\d]+)`,"i"));return i?i[1]:s},s={1080:"hd1080",720:"hd720",480:"large",360:"medium",240:"small",auto:"auto"}[t("vq","auto")]??"auto";let i={origin:window.location.origin,playsinline:_tpt.tf(this.options.inline)?1:0,enablejsapi:1,
28controls:(this.options.controls??"").includes("s")?1:0,fs:!1===this.options.aFullScreen?0:1,showinfo:t("showinfo",0),modestbranding:t("modestbranding",1),wmode:"opaque",mute:_tpt.tf(this.options.mute)?1:0,html5:1,start:this.options.start,end:this.options.end,loop:this.options.loop?1:0,rel:t("rel",0),disablekb:t("disablekb",0),cc_load_policy:t("cc_load_policy",0),iv_load_policy:t("iv_load_policy",3),color:e.includes("color=white")?"white":"red",vq:s};window.YT?.Player&&SR7.cookieMediaAllowed&&(_tpt.pleasewait?.hide?.(),this.player=new window.YT.Player(this.containerId,{host:SR7.E.ytnc?"https://www.youtube-nocookie.com":"https://www.youtube.com",height:_tpt.unitize(this.options.height,"px"),width:_tpt.unitize(this.options.width,"px"),videoId:this.options.src,playerVars:i,events:{onReady:e=>{this.playerReady=!0,this.player.setVolume(this.options.volume),this.updateSize(this.options.width,this.options.height),this.dispatch("ready",e),this.el.dispatchEvent(new CustomEvent("ready",{detail:{player:this}}))}}}),this.addEvent()),this.container=document.getElementById(this.containerId),this.container.style.borderRadius=this.container.parentElement.style?.borderRadius,this.muted=this.options.mute,this.showHide()}rewind(e){this.player&&this.player.seekTo&&(this.player.seekTo(this.options.start,!0),"pause"!=this.requestedAction&&"pause"!=e||this.pause())}seek(e){this.player?.seekTo&&this.player.seekTo(Math.max(0,parseFloat(e)||0),!0)}setVolume(e){this.player?.setVolume&&((e=Math.min(100,Math.max(0,parseFloat(e)||0)))>0&&this.muted&&this.unmute(),this.player.setVolume(e))}remove(){this.player&&(this.player.destroy(),this.player=null)}mute(){this.player&&this.player.mute&&(this.player.mute(),this.player.muted=this.muted=!0)}unmute(){this.player&&this.player.unMute&&(this.player.unMute(),this.player.muted=this.muted=!1)}async play(){this.player&&await this.ensureReadyAndExecute(async()=>{this.player.playVideo(),this.player.setPlaybackRate(parseFloat(this.options.speed)||1),this.player.setVolume(parseInt(this.options.volume)||100),await new Promise(e=>setTimeout(e,1e3)),1!==this.player.getPlayerState()&&(this.player.mute(),this.player.playVideo(),this.player.setPlaybackRate(parseFloat(this.options.speed)||1))},"play")}pause(e){this.player&&(this.pauseBy=e,this.ensureReadyAndExecute(()=>{this.player.pauseVideo()},"pause"))}updateSize(e,t){if(!this.container)return;const s=(e,t)=>{if(null==e||""===e||"auto"===e)return t;if("string"==typeof e&&!/^-?\d*\.?\d+(px)?$/.test(e.trim()))return t;const s=parseFloat(e);return Number.isFinite(s)&&s>0?s:t};let i=s(e,0)||s(this.el?.style?.width,0)||this.el?.clientWidth||0,a=s(t,0)||s(this.el?.style?.height,0)||this.el?.clientHeight||0;if(this.aspectRatio&&(i&&!a?a=i/this.aspectRatio:a&&!i&&(i=a*this.aspectRatio)),i&&a){if(_tpt.tf(this.options.cover)){if(!this.aspectRatio)return;this.aspectRatio<=i/a?(t=(e=i)/this.aspectRatio)<a&&(t=a):(e=(t=a)*this.aspectRatio)<i&&(e=i),void 0!==e&&0!==e&&e!==this.container.width&&(this.container.style.width=this.container.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.container.height&&(this.container.style.height=this.container.height=_tpt.unitize(t,"px")),t>a?this.container.style.transform="translateX(0px) translateY("+_tpt.unitize((a-t)/2,"px")+")":e>i?(this.container.style.transform="translateY(0px) translateX("+_tpt.unitize((i-e)/2,"px")+")",this.container.style.maxWidth="none"):this.container.style.transform="translateY(0px) translateX(0px)",this.el.style.overflow="hidden"}else t=a,void 0!==(e=i)&&0!==e&&e!==this.container.width&&(this.container.style.width=this.container.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.container.height&&(this.container.style.height=this.container.height=_tpt.unitize(t,"px"));if(this.player?.setSize&&e>0&&t>0)try{this.player.setSize(Math.round(e),Math.round(t))}catch(e){}}}addEvent(e,t,s){let i;if(!this.stateChangeListenerAdded){if(this.lastPlayerState=null,!this.player||!this.player.addEventListener||!SR7.cookieMediaAllowed)return;this.player.addEventListener("onError",e=>{console.group("SR7 YT Embedding Issue"),console.log(e),console.groupEnd("SR7 YT Embedding Issue")}),i=this.player.addEventListener("onStateChange",e=>{switch(0!==this.options.end&&this.player.getCurrentTime()>=this.options.end?e.data=this.states.ended:0!==this.options.start&&e.data==this.states.playing&&this.player.getCurrentTime()<this.options.start&&this.rewind(),"false"!==this.options.autoPlay&&!1!==this.options.autoPlay&&"no1sttime"!==this.options.autoPlay&&!this.muteFallBack&&"play"==this.requestedAction&&this.playerReady&&this.lastPlayerState===this.states.unstarted&&e.data!==this.states.playing?(this.player.mute(),this.player.playVideo(),this.muteFallBack=!0,this.requestedAction="play"):e.data===this.states.ended&&(this.options.loop?(this.rewind(),this.player.playVideo(),this.requestedAction="play"):(this.options.rewind&&this.rewind(),this.player.pauseVideo(),this.requestedAction="pause")),this.muted&&this.player.mute(),e.data){case this.states.paused:this.playingList("remove",this),this.dispatch("paused",e),this.state="paused",SR7.F.triggerMediaEvent(this,"update");break;case this.states.playing:this.stopPlayingMedias(),this.playingList("add",this),this.dispatch("playing",e),this.state="playing",SR7.F.triggerMediaEvent(this,"update");break;case this.states.ended:this.playingList("remove",this),-1!==this.lastPlayerState?(this.dispatch("finished",e),this.state="ended"):this.state="paused",SR7.F.triggerMediaEvent(this,"update")}!_tpt.isIOS||this.lastPlayerState!==this.states.playing||e.data!==this.states.paused||"play"!==this.requestedAction||null!=this.pauseBy&&"scroll"!==this.pauseBy||"visible"!==document.visibilityState||this.play(),this.lastPlayerState=e.data,this.showHide()}),this.stateChangeListenerAdded=!0}return void 0!==e&&(this.listeners[e]={callback:t,params:s}),i}}class i extends t{async add(){try{await SR7.loadVideoAPI("vimeo")}catch{console.log("Vimeo API Blocked")}this.options.args=this.options.args??"";try{await this.waitForContainer(this.containerId)}catch(e){return void console.error(e)}const e=(e,t=!0,s=!1)=>{const i=this.options.args.match(new RegExp(`${e}=(1|0|true|false)`,"i"));if(i){const e=i[1].toLowerCase();if("1"===e||"true"===e)return t;if("0"===e||"false"===e)return s}};let t={height:_tpt.unitize(this.options.height,"px"),width:_tpt.unitize(this.options.width,"px"),id:this.options.src,c
28ontrols:!!(this.options.controls??"").includes("s"),fullscreen:this.options.aFullScreen,autoplay:this.options.autoPlay,loop:this.options.loop,muted:this.options.mute,playsinline:this.options.inline,responsive:!1,title:e("title",!0,!1),byline:e("byline",!0,!1),portrait:e("portrait",!0,!1),transcript:e("transcript",!0,!1),dnt:e("dnt",!0,!1),pip:e("pip",!0,!1),badge:e("badge",!0,!1),speed:e("speed",!0,!1),transparent:e("transparent",!0,!1),color:this.options.args.match(/color=([0-9a-fA-F]{6})/)?.[1],background:this.options.args.match(/background=([0-9a-fA-F]{6})/)?.[1],text:this.options.args.match(/text=([0-9a-fA-F]{6})/)?.[1],quality:this.options.args.match(/quality=(1080p|720p|540p|360p|240p|auto)/)?.[1]};t=Object.fromEntries(Object.entries(t).filter(([,e])=>void 0!==e)),window.Vimeo?.Player&&SR7.cookieMediaAllowed&&(this.player=new window.Vimeo.Player(this.containerId,t),this.pauseRequested=!1,this.player.setCurrentTime(this.options.start),this.player.ready().then(()=>{this.iframe=this.container.getElementsByTagName("IFRAME"),null!==this.iframe&&(this.iframe=this.iframe[0]),this.playerReady=!0,this.iframe.style.borderRadius=this.iframe.parentElement.parentElement.style?.borderRadius,this.options.mute&&this.player.setVolume(0),this.dispatch("ready"),this.el.dispatchEvent(new CustomEvent("ready",{detail:{player:this}}));let e=()=>{this.updateSize(this.options.width,this.options.height),this.iframe.style.opacity=1};_tpt.tf(this.options.cover)?Promise.all([this.player.getVideoWidth(),this.player.getVideoHeight()]).then(([e,t])=>{e>0&&t>0&&(this.aspectRatio=e/t)}).catch(()=>{}).finally(e):e()})),this.muted=this.options.mute,this.addEvent(),this.showHide(),this.rewind("pause"),this.muteFallBack=!1}rewind(e){this.player&&(this.player.setCurrentTime(this.options.start),"pause"==e&&this.pause())}seek(e){this.player&&this.player.setCurrentTime(Math.max(0,parseFloat(e)||0)).catch(()=>{})}setVolume(e){this.player&&((e=Math.min(100,Math.max(0,parseFloat(e)||0)))>0&&this.muted&&(this.muted=!1,this.player.muted=!1),this.lastVolume=e/100,this.player.setVolume(e/100).catch(()=>{}))}remove(){this.player&&this.player.unload().then(()=>{this.player=null})}mute(){if(!this.player)return;let e=this,t=this.player;this.player.getVolume().then(function(s){e.player.muted=!0,e.lastVolume=0==s?1:s,t.setVolume(0),e.muted=!0}).catch(function(e){console.error("Error getting volume:",e)})}unmute(){if(!this.player)return;let e=this;e.lastVolume=null==e.lastVolume||0==e.lastVolume?1:e.lastVolume,this.player.setVolume(e.lastVolume).catch(function(e){console.error("Error setting volume:",e)}),e.muted=!1,e.player.muted=!1}updateSize(e,t){if(!this.player||!this.playerReady||!this.iframe)return;const s=(e,t)=>{if(null==e||""===e||"auto"===e)return t;if("string"==typeof e&&!/^-?\d*\.?\d+(px)?$/.test(e.trim()))return t;const s=parseFloat(e);return Number.isFinite(s)&&s>0?s:t};let i=s(e,0)||s(this.el?.style?.width,0)||this.el?.clientWidth||this.container?.clientWidth||0,a=s(t,0)||s(this.el?.style?.height,0)||this.el?.clientHeight||this.container?.clientHeight||0;if(this.aspectRatio&&(i&&!a?a=i/this.aspectRatio:a&&!i&&(i=a*this.aspectRatio)),i&&a)if(_tpt.tf(this.options.cover)){if(!this.aspectRatio)return;this.aspectRatio<=i/a?t=(e=i)/this.aspectRatio:e=(t=a)*this.aspectRatio,void 0!==e&&0!==e&&e!==this.iframe.width&&(this.iframe.style.width=this.iframe.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.iframe.height&&(this.iframe.style.height=this.iframe.height=_tpt.unitize(t,"px")),this.iframe.style.transform=t>a?"translateX(0px) translateY("+_tpt.unitize((a-t)/2,"px")+")":e>i?"translateY(0px) translateX("+_tpt.unitize((i-e)/2,"px")+")":"translateY(0px) translateX(0px)",this.el.style.overflow="hidden"}else t=a,void 0!==(e=i)&&0!==e&&e!==this.iframe.width&&(this.iframe.style.width=this.iframe.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.iframe.height&&(this.iframe.style.height=this.iframe.height=_tpt.unitize(t,"px"))}async play(){this.player&&(this.pauseRequested=!1,await this.ensureReadyAndExecute(async()=>{try{if(!_tpt.userInteracted&&this.options.autoPlay&&this.player.setVolume(0),await this.player.play(),this.pauseRequested)return void this.pause();this.lastPlayerState=this.states.playing}catch(e){if("NotAllowedError"===e.name)this.muteFallBack=!0,this.player.setVolume(0),"false"!==this.options.autoPlay&&!1!==this.options.autoPlay&&"no1sttime"!==this.options.autoPlay&&this.play();else if("AbortError"===e.name)console.log("Play was interrupted."),this.lastPlayerState=this.states.paused;else{if("PlayInterrupted"!==e.name)throw e;console.log("Play was interrupted by a pause request.")}}},"play"))}async pause(e){this.pauseRequested=!0,this.player&&(this.pauseBy=e,await this.ensureReadyAndExecute(async()=>{try{if(await this.player.getPaused())return;await this.player.pause(),this.lastPlayerState=this.states.paused}catch(e){if("NotAllowedError"===e.name)this.player.setVolume(0),this.pause();else{if("AbortError"!==e.name)throw e;console.log("Pause was interrupted."),this.lastPlayerState=this.states.paused}}},"pause"))}addEvent(e,t,s){let i;if(null!=this.player&&null!=this.player.on&&SR7.cookieMediaAllowed)return this.stateChangeListenerAdded||(this.lastPlayerState=null,this.player.on("play",()=>{this.lastPlayerState=this.states.playing,this.stopPlayingMedias(),this.playingList("add",this),this.dispatch("playing"),this.showHide(),this.state="playing",SR7.F.triggerMediaEvent(this,"update")}),this.player.on("pause",()=>{this.lastPlayerState=this.states.paused,this.playingList("remove",this),this.dispatch("paused"),this.showHide(),this.state="paused",SR7.F.triggerMediaEvent(this,"update")}),this.player.on("ended",()=>{this.lastPlayerState=this.states.ended,this.playingList("remove",this),this.dispatch("finished"),this.showHide(),this.state="finished",SR7.F.triggerMediaEvent(this,"update")}),i=this.player.on("timeupdate",e=>{0!==this.options.end&&e.seconds>=this.options.end?this.options.loop?(this.rewind(),this.play()):(this.options.rewind&&this.rewind(),this.pause(),this.dispatch("finished")):0!==this.options.start&&e.seconds<this.options.start&&this.rewind(),this.muted&&!this.isMuted&&(this.player.setVolume(0),this.isMuted=!0),this.dispatch("timeupdate",e),this.lastPlayerState=this.getState(),this.showHide()}),this.stateChangeListenerAdded=!0),void 0!==e&&(this.listeners[e]={callback:t,params:s}),i}}class a extends t{constructor(e,t,s){super(e,t,s),this.player=null}async add(){try{await this.waitForContainer(this.containerId)}catch(e){return void console.error(e)}const e=document.createElement("audio"===this.options.type?"audio":"video");e.setAttribute("id",this.containerId+"_html5"),e.className="sr7-html5-video";const t=_tpt.urlProtocol(this.options.src);"audio"!==this.options.type&&(()=>{try{return new URL(t,location.href).origin!==location.origin}catch(e){return!1}})()&&(e.crossOrigin="anonymous",e.addEventListener("error",()=>{e.crossOrigin&&(e.removeAttribute("crossorigin"),e.load(),e.currentTime=this.options.start??0,"pause"!==this.requestedAction&&e.play().catch(()=>{}))},{once:!0})),e.setAttribute("src",t),e.setAttribute("preload","metadata"),e.setAttribute("playsinline",""),e.playsInl
28ine=!0,(this.options.controls??"").includes("s")&&e.setAttribute("controls",""),"audio"===this.options.type&&void 0!==this.options.controls&&(this.options.controls=this.options.controls.replace("xl","")),("audio"===this.options.type&&""==this.options.controls||null==this.options.controls)&&this.el.classList.add("sr7-hidden-audio"),!1===this.options.aFullScreen&&e.setAttribute("controlsList","nofullscreen"),1==this.options.mute&&e.setAttribute("muted",""),1==this.options.loop&&e.setAttribute("loop",""),this.container.appendChild(e),this.player=e,this.container.style.width="100%",this.player.style.width="100%",this.container.style.height="auto"==this.options.target.style.height?"auto":"100%",this.player.style.height="auto"==this.options.target.style.height?"auto":"100%",this.player.style.borderRadius=this.container.parentElement.style?.borderRadius,this.playerReady=!0,this.options.volume=this.options.volume??1,this.options.volume=this.options.volume>1?this.options.volume/100:this.options.volume,this.player.volume=this.options.volume,this.dispatch("ready"),this.addEvent(),this.showHide(),this.updateSize(this.options.width,this.options.height,_tpt.tf(this.options.cover??!0)?"cover":"contain");const s=!1!==this.options.autoPlay&&"false"!==this.options.autoPlay&&"no1sttime"!==this.options.autoPlay;"carousel"===SR7.M[this.id].settings.type&&_tpt.isSafari11&&String(SR7.M[this.id].current.id)!==String(this.skey)&&(_tpt.gsap.fromTo(this.player,.3,{opacity:0,visibility:"hidden"},{opacity:1,visibility:"visible"}),this.player.play());const i=SR7.M[this.id]?.current?.id;s&&null!=i&&String(i)===String(this.skey)?(this.rewind(),this.play()):this.rewind("pause"),this.largeControls(),this.el.dispatchEvent(new CustomEvent("ready",{detail:{player:this}}))}rewind(e){this.player&&(this.player.currentTime=this.options.start,this.updateBackendSrc||"pause"!=this.requestedAction&&"pause"!=e||this.pause())}seek(e){if(this.player)try{this.player.currentTime=Math.max(0,parseFloat(e)||0)}catch(e){}}setVolume(e){this.player&&((e=Math.min(100,Math.max(0,parseFloat(e)||0)))>0&&this.player.muted&&(this.player.muted=!1,this.muted=!1),this.player.volume=e/100)}goto(e,t){if(this.player){let s=Math.round(10*e)/10;s!=this.lastRequestedTime&&requestAnimationFrame(()=>{try{this.player&&(this.player.currentTime=s)}catch{}this.lastRequestedTime=s,t&&this.canvas.drawImg(this.player)})}}drawCanvas(){!0===this.toCanvas&&null!=this.canvas&&(this.canvas.image&&this.canvas.drawImg(this.player),requestAnimationFrame(this.drawCanvas.bind(this)))}startCanvas(e){SR7.E.backend&&this.canvas||(this.hideCanvas&&(this.hideCanvas.kill(),this.hideCanvas=null),this.canvas=e,this.toCanvas=!0,this.drawCanvas(),this.container.style.visibility="hidden")}resumeCanvas(){this.toCanvas=!0,this.drawCanvas()}pauseCanvas(){this.toCanvas=!1}stopCanvas(){if(SR7.E.backend)return;let e="carousel"===SR7.M[this?.id]?.settings?.type&&_tpt.isSafari11&&String(SR7.M[this?.id]?.current?.id)!==String(this?.skey);this.hideCanvas=_tpt.gsap.fromTo(this.container,.3,{opacity:e?1:0,visibility:"hidden"},{opacity:1,visibility:"visible"}),this.hideCanvas.eventCallback("onComplete",e=>{e.toCanvas=!1,delete e.canvas,this.hideCanvas=null},[this]),this.container.style.visibility="visible"}largeControls(){if(null!=this.container?.parentNode&&("audio"===this.type||"html5"===this.type)&&(this.options.controls??"").includes("xl")&&!_tpt.tf(this.options.noInteract)){if(this.lrgbutton=this.lrgbutton??this?.container?.parentNode?.querySelector?.("SR7-LRG-CTRL")?.[0],null==this.lrgbutton){const e=_tpt.collector();this.lrgbutton=e.add({tag:"sr7-lrg-ctrl"}),this.lrgPlay=e.add({tag:"sr7-lrg-play"}),this.lrgPause=e.add({tag:"sr7-lrg-pause"}),this.lrgbutton.appendChild(this.lrgPlay),this.lrgbutton.appendChild(this.lrgPause),this.container.parentNode.appendChild(this.lrgbutton)}this.lastPlayerState==this.states.playing?(this.lrgbutton.classList.remove("playing"),this.lrgbutton.classList.add("paused")):(this.lrgbutton.classList.add("playing"),this.lrgbutton.classList.remove("paused"))}}getState(){return this.player?this.player.ended?this.states.ended:this.player.paused?this.states.paused:this.player.playing?this.states.playing:this.states.unstarted:null}remove(){this.player&&(this.player.pause(),this.player.src="",this.player.load(),this.player=null)}mute(){this.player&&(this.player.muted=!0,this.muted=!0)}unmute(){this.player&&(this.player.muted=!1,0==this.player.volume&&(this.player.volume=1),this.muted=!1)}async play(){this.player&&(((!_tpt.userInteracted||_tpt.is_mobile)&&this.options.autoPlay||this.options.mute)&&!1!==this.muted&&(this.player.muted=!0),await this.ensureReadyAndExecute(()=>{const e=this.player.play();void 0!==e&&e.catch(e=>{if("NotAllowedError"===e.name){this.player.muted=!0;const e=this.player.play();void 0!==e&&e.catch(()=>{})}})},"play"))}async pause(e){this.player&&(this.pauseBy=e,await this.ensureReadyAndExecute(()=>{this.player.pause()},"pause"))}
28updateSize(e,t,s){this.player&&(this.player.arCalculated||void 0===this.player.videoHeight||0===this.player.videoHeight||(this.aspectRatio=this.player.videoWidth/this.player.videoHeight,this.player.arCalculated=!0),"cover"!==s&&"contain"!==s||(this.player.style.objectFit=s),this.el.classList["auto"==this.el?.style?.height?"add":"remove"]("sr7_miah"))}addEvent(e,t,s){this.stateChangeListenerAdded||(this.lastPlayerState=null,this.player.addEventListener("play",e=>{this.lastPlayerState=this.states.playing,this.stopPlayingMedias(),this.playingList("add",this),this.dispatch("playing",e),this.showHide(),this.largeControls(),this.state="playing",SR7.F.triggerMediaEvent(this,"update")}),this.player.addEventListener("pause",e=>{this.lastPlayerState=this.states.paused,this.playingList("remove",this),this.dispatch("paused",e),this.showHide(),this.largeControls(),this.state="paused",SR7.F.triggerMediaEvent(this,"update")}),this.player.addEventListener("ended",e=>{this.lastPlayerState=this.states.ended,this.playingList("remove",this),this.dispatch("finished",e),this.showHide(),this.largeControls(),this.state="finished",SR7.F.triggerMediaEvent(this,"update")}),this.player.addEventListener("timeupdate",e=>{this.player.currentTime>=this.options.end&&0!==this.options.end?this.options.loop?(this.rewind(),this.play()):(this.options.rewind&&this.rewind(),this.pause(),this.dispatch("finished")):this.player.currentTime<this.options.start&&0!==this.options.start&&this.rewind(),this.muted&&(this.player.muted=!0),this.dispatch("timeupdate",e)}),this.stateChangeListenerAdded=!0),void 0!==e&&(this.listeners[e]={callback:t,params:s})}}SR7.videoPlayer=class{constructor(e,t,r){switch("slidebg"===r.subtype&&"html5"!==r.type&&(r.autoPlay=!1,""!==(r.poster?.src??"")&&(r.poster.showOnPause=!0)),r.type){case"youtube":this.player=new s(e,t,r);break;case"vimeo":this.player=new i(e,t,r);break;case"html5":case"audio":this.player=new a(e,t,r);break;default:throw new Error(`Invalid video type. Please use "youtube", "vimeo", or "html5". Received: ${r.type}`)}}add(){return this.player.add()}remove(){this.player.remove()}rewind(){this.player.rewind()}seek(e){this.player.seek?.(e)}setVolume(e){this.player.setVolume?.(e)}play(){let{c:e}=SR7.F.getLayer(this?.player?.el?.id);this.pauseBy=null,"slidebg"===e?.subtype&&String(SR7.M[e.mid].current.id)!==String(e.skey)||this.player.play()}pause(e){this.pauseBy=e,this.player.pause(e)}mute(){this.player.mute()}unmute(){this.player.unmute()}updateSize(e,t){this.player.updateSize(e,t)}isPlaying(){return this.player.isPlaying()}isHidden(){return this.player.isHidden()}update(e){return this.remove(),this.player.options=e,this.add()}hasEvent(e){return this.player.hasEvent(e)}addEvent(e,t,s){this.player.addEvent(e,t,s)}isReady(){return this.player.isReady()}toggle(){this.player.toggle()}stopPlayingMedias(){this.player.stopPlayingMedias()}goto(e,t){this.player.goto(e,t)}startCanvas(e){this.player.startCanvas&&this.player.startCanvas(e)}stopCanvas(){this.player.stopCanvas&&this.player.stopCanvas()}drawCanvas(){this.player.drawCanvas()&&this.player.drawCanvas()}},_tpt.R??={},_tpt.R.media=_tpt.extend?_tpt.extend(_tpt.R.media,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},void 0!==SR7.F.modify)return;SR7.F.getFXCoverAnim=(e,t,s,i)=>{let a=_tpt.gsap.timeline();e.fxitl=_tpt.gsap.timeline(),e.fxotl=_tpt.gsap.timeline();let r=n("in",t.fx,t.fxe,t.fxc),o=n("out",t.fx);if(e.fxitl.eventCallback("onStart",e=>{let t=SR7.E.backend?SR7.editor.scene.getRefScene(e.lkey):s;e.mask.style.overflow="hidden",SR7.E.backend&&e.el.classList["in"===t&&i<2&&("SR7-PREVIEW-SHAPE"==e.el.tagName||e.useFXC)?"add":"remove"]("sr7-fx-hidden")},[e,s,i]),e.fxitl.eventCallback("onComplete",e=>{let t=SR7.E.backend?SR7.editor.scene.getRefScene(e.lkey):s;e.maskForFx&&(e.mask.style.overflow="visible"),e.el.classList["in"===t&&i<2||"out"===t||!e.useFXC?"in"===t?"remove":"add":"in"===t?"add":"remove"]("sr7-fx-hidden")},[e,s,i]),SR7.E.backend&&"SR7-PREVIEW-SHAPE"!==e.el.tagName){const a=(a,r)=>
28{a.data={type:"FXCover",c:e,scene:s,frame:i},a.eventCallback("onUpdate",function(e){let s=SR7.editor.scene.getRefScene(e.lkey);e.fxc.style.transformOrigin=n(r,t.fx,t.fxe,t.fxc).transformOrigin,e.fxc.style.visibility=e.useFXC?"visible":"hidden",e.fxc.style.backgroundColor=t.fxc;let o=a.progress(),l="in"==r?"remove":"add",d="in"==r?"add":"remove",c=e.useFXC?("in"===s&&i<2||"out"===s)&&0!==o&&e.useFXC?"out"===s?l:d:"out"===s?d:l:"remove";e.el.classList[c]("sr7-fx-hidden")},[e,s,i])};a(e.fxitl,"in"),a(e.fxotl,"out")}return r.visibility="hidden",e.fxitl.add(_tpt.gsap.fromTo(e.fxc,t.fxs/2e3,r,{visibility:"visible",scaleX:1,scaleY:1}),0),e.fxotl.add(_tpt.gsap.fromTo(e.fxc,t.fxs/2e3,{scaleX:1,scaleY:1},o),0),a.add(e.fxitl,0),a.add(e.fxotl,t.fxs/2e3),a},SR7.F.pan={offHere:e=>{if(SR7.E.backend)return!1;const t=SR7.M?.[e]?.settings?.general?.panDevices??"";return""!==t&&"mobile"===t!==_tpt.is_mobile},fps:function(e){const t=SR7.F.pan;if(!(e=void 0===e?!t._fpsEl:!!e))return t._fpsRAF&&cancelAnimationFrame(t._fpsRAF),t._fpsEl?.remove(),t._fpsEl=t._fpsRAF=null,"FPS badge OFF";if(t._fpsEl)return"already on";const s=t._fpsEl=document.createElement("div");s.style.cssText="position:fixed;top:8px;right:8px;z-index:2147483647;background:rgba(0,0,0,.8);color:#3f6;font:12px/1.4 monospace;padding:6px 11px;border-radius:5px;pointer-events:none;white-space:pre;text-align:center;min-width:74px",(document.body||document.documentElement).appendChild(s);let i=0,a=performance.now(),r=999;const n=()=>{i++;const e=performance.now();if(e-a>=500){const t=Math.round(1e3*i/(e-a));t<r&&(r=t),s.textContent=`FPS ${t}\nmin ${r}`,s.style.color=t>=55?"#3f6":t>=40?"#fd3":"#f55",i=0,a=e}t._fpsRAF=requestAnimationFrame(n)};return t._fpsRAF=requestAnimationFrame(n),"FPS badge ON â SR7.F.pan.fps(false) to hide"},getBox:function(e,t,s){let i=e.width/_tpt.dpr,a=e.height/_tpt.dpr,r=a*t,n=i*t;if(null==e.image)return;i/a<e.image.width/e.image.height?n=e.image.width*(r/e.image.height):r=e.image.height*(n/e.image.width);let o={l:(0-("center"==s?.x?.5:"left"==s?.x?0:"right"==s?.x?1:parseInt(s?.x??0)/100||0))*Math.abs(i-n),t:(0-("center"==s?.y?.5:"top"==s?.y?0:"bottom"==s?.y?1:parseInt(s?.y??0)/100||0))*Math.abs(a-r),w:n,h:r};return o.r=o.l+n,o.b=o.t+r,o},getStep:function(e){const{canvas:t,x:s,y:i,scale:a,rotate:r,pos:n,anchorX:o,anchorY:l,cover:d}=e;let c=a;if(d&&r){const e=t.width/_tpt.dpr,s=t.height/_tpt.dpr,i=Math.PI/180*r,a=Math.abs(Math.cos(i)),n=Math.abs(Math.sin(i));c*=Math.max((e*a+s*n)/e,(e*n+s*a)/s)}const p=SR7.F.pan.getBox(t,c,n);if(null==p)return;const u={rZ:Math.PI/180*r,scale:c,w:p.w,h:p.h};if(void 0!==o||void 0!==l)u.x=parseFloat(s)||0,u.y=parseFloat(i)||0,u.anchorX=o??.5,u.anchorY=l??.5;else{u.x=parseFloat(s)+p.l,u.y=parseFloat(i)+p.t;const e=p.r-p.l,a=p.b-p.t;u.x=u.x>0?0:e+u.x<t.width/_tpt.dpr?t.width/_tpt.dpr-e:u.x,u.y=u.y>0?0:a+u.y<t.height/_tpt.dpr?t.height/_tpt.dpr-a:u.y}return u},observe:e=>{if(void 0!==SR7.M[e].c.pans.observing)return;let t=document.documentElement.clientHeight,s=document.documentElement.clientWidth;_tpt.resizeObserver.observe(e=>{const i=document.documentElement.clientHeight,a=document.documentElement.clientWidth;(!_tpt.is_mobile||Math.abs(t-i)>30||Math.abs(s-a)>0)&&SR7.F.pan.refresh(e,SR7.M[e].current.id),t=i,s=a},19,e),SR7.M[e].c.pans.observing=!0},refresh:(e,t,s,i=!0)=>new Promise(a=>{SR7.M[e].c.pans?.[t]?requestAnimationFrame(async function(){const r=i?SR7.M[e].c?.tl?.[t]?.in?.PAN:null;if(r)try{r.pause(0),r.getChildren(!0,!0,!0).forEach(e=>{try{e.kill()}catch(e){}}),r.clear()}catch(e){}for(let a of SR7.M[e].c.pans[t])if(i&&await SR7.F.animateLayers({id:e,skey:t,layers:[a],scene:"in",caller:"update",update:"pan"}),SR7.E.backend&&s){let e=SR7.layer.getC(a)?.c;e?.canvas?.canvas&&e.canvas.drawImg(void 0,void 0,!0)}if(r)try{r.data?.story?SR7.F.sbt.story.scrub(e,t,"in",SR7.F.sbt.localTime(e,t),0):r.play(0)}catch(e){}a()}):a()}),returnDuration:.8,returnEase:"power2.inOut",returnToOrigin:(e,t,s={})=>{const i=SR7.M[e]?.c?.layers;if(!i)return;const a=s.duration??SR7.F.pan.returnDuration,r=s.ease??SR7.F.pan.returnEase;for(let e in i){const s=i[e];if(!s||String(s.skey)!==String(t))continue;if(!s.canvas?.pan||!s.canvas.pfrom)continue;s.tl?.in?.pan?.pause?.();const n=s.canvas,o=n.pfrom;_tpt.gsap.killTweensOf(n.pan);const l={x:o.x,y:o.y,rZ:o.rZ,scale:o.scale,ease:r,onUpdate:()=>n.drawImg()};void 0!==o.anchorX&&(l.anchorX=o.anchorX),void 0!==o.anchorY&&(l.anchorY=o.anchorY),_tpt.gsap.to(n.pan,a,l)}}},document.addEventListener("sr.layer.action",e=>SR7.F.fx?.enter?.(e)),SR7.F.fx={contentChange:e=>{const t=SR7.FX?.live?.[`${e.id}:${e.c.lkey}`];if(!t?._fxContentEl)return;const s=t.passes.map(s=>
28s.def.contentChange?.(s,t,e)).filter(Boolean);return s.length?(t.canvas.remove(),t._fxHitArea?.remove(),()=>{e.c.el.appendChild(t.canvas);for(const e of s)e()}):void 0},_fxFit:(e,t,s)=>{if(!e||!t)return;if(e.style.position="absolute",e.style.zIndex="2",e.style.pointerEvents="none",s)return void Object.assign(e.style,{left:-s.pad+"px",top:-s.pad+"px",width:s.width+"px",height:s.height+"px"});const i=e.parentElement;i&&i.offsetHeight<1&&(t.offsetHeight||0)>0?(e.style.left=(t.offsetLeft||0)+"px",e.style.top=(t.offsetTop||0)+"px",e.style.width=t.offsetWidth+"px",e.style.height=t.offsetHeight+"px"):(e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%")},_drawCoverFit:(e,t,s,i)=>{const a=t.naturalWidth||t.videoWidth||t.width||0,r=t.naturalHeight||t.videoHeight||t.height||0;if(!(a&&r&&s&&i))return;e.width===s&&e.height===i||(e.width=s,e.height=i);const n=s/i;let o,l,d,c;a/r>n?(l=r,o=r*n,d=(a-o)/2,c=0):(o=a,l=a/n,d=0,c=(r-l)/2);try{e.getContext("2d").drawImage(t,d,c,o,l,0,0,s,i)}catch(e){}},_tainted:e=>{try{return e.getContext("2d").getImageData(0,0,1,1),!1}catch(e){return!0}},supportsLayer:(e,t)=>{const s=SR7.F.passDef(e),i="video"===t.type||"video"===t.bg?.type||"video"===t.subtype;return!!s&&(!s.source||s.source.includes(t.type)&&(!i||s.video&&"html5"===("video"===t.type?t.content:t.bg?.video)?.type))},layerSource:(e,t,s)=>{const i=t.map(e=>SR7.PASS?.[e.type]);if(!i.some(e=>e?.source?.includes(s?.type))||!e.el)return null;const a="text"===s.type,r=(e.svg instanceof SVGElement?e.svg:null)||"custom"===s.subtype&&e.el.querySelector("svg"),n=i.some(e=>e?.video)&&e.el.querySelector("video"),o=e.canvas?.canvas;if(i.some(e=>e?.video)&&("video"===s.type||"video"===s.bg?.type||"video"===s.subtype)&&!n)return null;if(n?n.readyState<2:!a&&!r&&(!o||!o.width||!o.height||e.canvas._imageRequest||("image"===s.subtype||"image"===s.type||s.bg?.image?.u)&&!e.canvas.image?.complete))return null;const l=e.el.offsetWidth||e.cw,d=e.el.offsetHeight||e.ch;if(!(l>0&&d>0))return null;const c=Math.ceil(Math.max(l,d)*Math.max(0,...i.map(e=>Number(e?.padding)||0))),p=Math.min(Math.max(_tpt.dpr||1,...i.map(e=>e?.sourceScale||1)),2,2048/Math.max(l+2*c,d+2*c)),u=e._fxContent??={paint:new SR7.F.canvas({width:1,height:1}),source:new SR7.F.canvas({width:1,height:1})};if(a&&!u.paint.drawTextLayer(e.el,l,d,p))return null;if(r&&!u.paint.drawSVGLayer(r,l,d,p))return null;const h=u.source.canvas,g=u.source.ctx,m=l+2*c,f=d+2*c;h.width=Math.ceil(m*p),h.height=Math.ceil(f*p);const S=getComputedStyle(e.el),y=(e,t)=>(parseFloat(e)||0)*(e.endsWith("%")?t/100:p),v=["TopLeft","TopRight","BottomRight","BottomLeft"].map(e=>{const[t,s=t]=S["border"+e+"Radius"].split(" ");return{x:y(t,l*p),y:y(s,d*p)}}),R=e=>{g.save(),v.some(e=>e.x>0&&e.y>0)&&(g.beginPath(),g.roundRect?g.roundRect(c*p,c*p,l*p,d*p,v):SR7.F.roundRectPath(g,c*p,c*p,l*p,d*p,Math.min(...v.map(e=>Math.min(e.x,e.y)))),g.clip()),g.drawImage(e,c*p,c*p,l*p,d*p),g.restore()};return u.video=n||null,u.repaint=n?()=>{n.readyState<2||(u.time=n.currentTime,u.paint.requestedWidth=l,u.paint.requestedHeight=d,u.paint.pos={x:"50%",y:"50%"},u.paint.size=_tpt.tf(("video"===s.type?s.content:s.bg?.video)?.cover??!0)?"cover":"contain",u.paint.drawImg(n,1),g.clearRect(0,0,h.width,h.height),R(u.paint.canvas))}:null,n?u.repaint():a||r?g.drawImage(u.paint.canvas,Math.round(c*p),Math.round(c*p)):R(o),u.box={w:l,h:d,pad:c,width:m,height:f,scale:p,textBoxes:a?u.paint.textBoxes:void 0},u.media=o,u.mediaVersion=o?.srV,u.svgKey=r?u.paint.svgReady:void 0,h.srV=(h.srV||0)+1,u},refreshSource:e=>{const{c:t,layer:s}=e._fxLayerSource??{},i=e._fxContent;if(!i||!t?.el?.isConnected)return;const a=t.el.offsetWidth,r=t.el.offsetHeight,n=t.canvas?.canvas;if(!a||!r||t.canvas?._imageRequest)return;const o=i.box.w!==a||i.box.h!==r;if(!(o||i.media!==n||i.mediaVersion!==n?.srV||i.svgKey&&i.svgKey!==i.paint.svgReady))return;o&&t.canvas?.image&&t.canvas.wrap===t.el&&t.canvas.drawImg(void 0,void 0,!0);const l=SR7.F.fx.layerSource(t,e.passes.map(e=>e.item),s);l&&SR7.F.fx.bindSource(e,l)},bindSource:(e,t)=>{const s=t.source.canvas,i=e.w!==s.width||e.h!==s.height;i&&SR7.FX.resize(e,s.width,s.height),(i||e._fxSrc.image!==s)&&(e._fxSrc.dispose(),e._fxSrc=e.texFromCanvas(s)),e._fxSrc.needsUpdate=!0,e._fxBox=t.box,e._fxContent=t,e._fxLive=!!t.video,SR7.F.fx._fxFit(e.canvas,s,t.box)},watchSource:(e,t)=>{e._fxResize?.disconnect(),e._fxResize??=new ResizeObserver(()=>{SR7.FX?.live?.[e.id+":"+e.lid]===e&&e._fxContentEl?.isConnected&&SR7.F.fx.render(e,e._fxCtx??{})}),e._fxResize.observe(t)},attach:(e,t,s,i={})=>
28{if(!SR7.FX?.create||!t)return null;const a=i.content??SR7.F.fx.layerSource(t,s,i.layer),r=a?.source.canvas??t.canvas?.canvas,n=t.image&&"IMG"===t.image.tagName?t.image:t.el?.querySelector?.("img,canvas,video")||null,o=r||n;if(!o)return null;const l="CANVAS"===o.tagName,d="VIDEO"===o.tagName,c=!l&&!d&&t.el&&t.el.offsetWidth>0&&t.el.offsetHeight>0&&getComputedStyle(t.el).backgroundSize.indexOf("cover")>=0,p=Math.max(1,c?t.el.offsetWidth:d?i.w||o.offsetWidth||t.el?.offsetWidth||o.videoWidth||1:i.w??o.naturalWidth??o.width??t.el?.offsetWidth??1),u=Math.max(1,c?t.el.offsetHeight:d?i.h||o.offsetHeight||t.el?.offsetHeight||o.videoHeight||1:i.h??o.naturalHeight??o.height??t.el?.offsetHeight??1),h=SR7.FX.create(e,t.lkey,s,{w:p,h:u});if(!h)return null;let g,m;if(h._skey=t.skey,l)g=h.texFromCanvas(o),m=!0;else{const s=document.createElement("canvas");if(s.width=p,s.height=u,d)h._fxVideo=o,SR7.F.fx._drawCoverFit(s,o,p,u);else if(c)SR7.F.fx._drawCoverFit(s,o,p,u);else try{s.getContext("2d").drawImage(o,0,0,p,u)}catch(e){}if(SR7.F.fx._tainted(s))return SR7.F.fx.detach(e,t.lkey),null;g=h.texFromCanvas(s),h._fxScratch=s,m=d}h._fxLayerSource={c:t,layer:i.layer},h._fxSrc=g,h._fxContent=a,h._fxLive=a?!!a.video:m;const f=h.canvas;return a?(h._fxBox=a.box,h._fxContentEl=t.el,h._fxContentPrev=t.visibility??t.el.style.visibility,t.el.appendChild(f),t.el.setAttribute("data-sr-fx-active",""),t.el.style.visibility="hidden",f.style.visibility=SR7.F.fx.onStage(t)?"visible":"hidden",h._fxGated=!SR7.F.fx.onStage(t),SR7.F.fx._fxFit(f,r,a.box),SR7.F.fx.watchSource(h,t.el),h):((r&&r.parentNode||t.el)?.appendChild(f),SR7.F.fx._fxFit(f,o),f.style.visibility="",r?(h._fxHide=r,h._fxHidePrev=r.style.visibility,r.style.visibility="hidden"):t.el&&(h._fxBgEl=t.el,h._fxBgPrev=t.el.style.backgroundImage,t.el.style.backgroundImage="none",n&&"IMG"===n.tagName&&n.parentNode&&(h._fxImg=n,h._fxImgPrev=n.style.visibility,n.style.visibility="hidden")),h)},render:(e,t={})=>{if(!e)return;if(e._fxContent&&e._fxLayerSource?.c?.canvas?._imageRequest)return;SR7.F.fx.refreshSource(e),e._fxT0??=Date.now(),t.time??=(Date.now()-e._fxT0)/1e3;const s=e._fxSrc?.image;if(e._fxContent?.repaint?.(),e._fxVideo&&e._fxScratch&&SR7.F.fx._drawCoverFit(e._fxScratch,e._fxVideo,e.w,e.h),e._fxSrc&&e._fxLive&&(!s||s.width===e.w&&s.height===e.h)&&(e._fxSrc.needsUpdate=!0),t.sourceRect=e._fxBox,t.sourceCanvas=e._fxSrc?.image,t.layerSource=e._fxLayerSource,e._fxCtx=t,SR7.FX.render(e,t,e._fxSrc),e._fxContentEl){const s=e.passes.every(e=>{const s=t.fxLive?.[e.item.id];if(!1===e.item.u||s&&"on"in s&&!_tpt.tf(s.on))return!0;if(e.def.isActive?.(e))return!1;const i=SR7.F.passDef(e.item.type);return i.neutral&&Object.entries(i.neutral).every(([t,a])=>+(s?.[t]??e.item.settings?.[t]??i.schema?.[t]?.default)===a)});if(s)e._fxHitArea?.remove();else{if(!e._fxHitArea){const t=e._fxHitArea=document.createElement("sr7-fx-hitarea");t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"absolute",inset:"0",display:"block",visibility:"visible"})}e._fxHitArea.parentElement!==e._fxContentEl&&e._fxContentEl.appendChild(e._fxHitArea)}e._fxContentEl.toggleAttribute("data-sr-fx-active",!s),e._fxContentEl.style.visibility=s?e._fxContentPrev||"":"hidden";const i=SR7.F.fx.onStage(e._fxLayerSource?.c);e.canvas.style.visibility=s||!i?"hidden":"visible",e._fxGated=!s&&!i}},onStage:e=>SR7.E.backend||!!e?.animState?.stageState,enter:e=>{if(!e?.c)return;const t=SR7.FX?.live?.[e.id+":"+e.c.lkey];t?._fxGated&&SR7.F.fx.onStage(e.c)&&t._fxContentEl?.isConnected&&SR7.F.fx.render(t,t._fxCtx??{})},detach:(e,t,s=!0,i)=>{const a=SR7.FX?.live?.[`${e}:${t}`];if(a){if(i){const e=a.passes.filter(e=>e.item.type!==i).map(e=>e.item);if(e.length===a.passes.length)return;if(e.length)return SR7.FX.rebuild(a,e),delete a._fxSig,void SR7.F.fx.render(a,a._fxCtx??{})}if(a._fxTick){try{_tpt.gsap.ticker.remove(a._fxTick)}catch(e){}a._fxTick=null}a._fxResize?.disconnect();try{a._fxTL?.kill?.()}catch(e){}try{a.canvas?.remove()}catch(e){}a._fxHitArea?.remove(),a._fxContentEl&&(a._fxContentEl.removeAttribute("data-sr-fx-active"),a._fxContentEl.style.visibility=s?a._fxContentPrev||"":"hidden"),a._fxHide&&(a._fxHide.style.visibility=a._fxHidePrev||""),a._fxBgEl&&(a._fxBgEl.style.backgroundImage=a._fxBgPrev||""),a._fxImg&&(a._fxImg.style.visibility=a._fxImgPrev||"");try{a._fxSrc?.dispose?.()}catch(e){}SR7.FX.destroy(e,t)}},collect:(e,t)=>
28{if(!SR7.FX?.live)return;const s=new Set((Array.isArray(t)?t:[t]).filter(e=>null!=e).map(String)),i=SR7.M[e];for(const t in SR7.FX.live){const a=SR7.FX.live[t];a&&a.id===e&&(null!=a._skey&&s.has(String(a._skey))||null!=a._skey&&i?.slides?.[a._skey]?.slide?.global||SR7.F.fx.detach(a.id,a.lid))}},restore:(e,t)=>{const s=SR7.M[e];if(!s?.c?.layers)return;const i=new Set((Array.isArray(t)?t:[t]).filter(e=>null!=e).map(String));for(const t in s.c.layers){const a=s.c.layers[t];if(!a||!i.has(String(a.skey))||SR7.FX?.live?.[`${e}:${a.lkey}`])continue;const r=s.slides?.[a.skey]?.layers?.[a.lkey],n=_tpt.tf(r?.surface?.u)?"in":["in","out"].find(e=>r?.tl?.[e]?.effects?.all?.length&&!0!==_tpt.tf(r.tl[e].effects.d));if(!n)continue;const o={id:e,c:a,layer:r,scene:n};SR7.F.fx.ensureEngine(o)&&SR7.F.fx.timeline(o)}},visibleSlideKeys:e=>{const t=SR7.M[e];if(!t)return null;const s=t.current?.id,i=(t.staticSlides||[]).filter(e=>e),a=e=>{const t=Array.isArray(e)?e.slice():null!=e?[e]:[];for(const e of i)t.map(String).includes(String(e))||t.push(e);return 1===t.length?t[0]:t};if(SR7.F.sbt?.storyMode?.(e))return a(SR7.F.sbt.story.window(e));if(!SR7.F.isCarousel?.(e))return a(s);const r=t.c?.module?.getBoundingClientRect?.();if(!r||!r.width)return a(s);const n=[];for(const e in t.c?.slides||{}){const s=t.c.slides[e]?.getBoundingClientRect?.();s&&s.width&&s.right>r.left&&s.left<r.right&&s.bottom>r.top&&s.top<r.bottom&&n.push(e)}return null==s||n.includes(String(s))||n.push(s),a(n.length?n:s)},park:e=>{if(SR7.FX?.live){SR7.F.fx.collect(e,SR7.F.fx.visibleSlideKeys(e));try{SR7.FX.destroy("bgfx:"+e,"bg")}catch(e){}}},rebindDOM:(e,t)=>{if(!e||!t)return;if(e._fxBox&&t._fxContent)return e._fxContentEl!==t.el&&(e._fxContentEl.removeAttribute("data-sr-fx-active"),e._fxContentEl.style.visibility=e._fxContentPrev||"",e._fxContentEl=t.el,e._fxContentPrev=t.visibility??t.el.style.visibility),t.el.appendChild(e.canvas),t.el.setAttribute("data-sr-fx-active",""),t.el.style.visibility="hidden",e.canvas.style.visibility="visible",SR7.F.fx._fxFit(e.canvas,t._fxContent.source.canvas,t._fxContent.box),void SR7.F.fx.watchSource(e,t.el);const s=t.canvas?.canvas,i=t.image&&"IMG"===t.image.tagName?t.image:t.el?.querySelector?.("img,canvas,video")||null,a=s||i;if(!a)return;if("CANVAS"===a.tagName)e._fxSrc.image=a,e._fxLive=!0;else if(e._fxScratch){try{e._fxScratch.getContext("2d").drawImage(a,0,0,e._fxScratch.width,e._fxScratch.height)}catch(e){}e._fxLive="VIDEO"===a.tagName}e._fxSrc.needsUpdate=!0;const r=e.canvas;(s&&s.parentNode||t.el)?.appendChild(r),SR7.F.fx._fxFit(r,a),r.style.visibility="",s?(e._fxHide=s,e._fxHidePrev=s.style.visibility,s.style.visibility="hidden"):t.el&&(e._fxBgEl=t.el,e._fxBgPrev=t.el.style.backgroundImage,t.el.style.backgroundImage="none",i&&"IMG"===i.tagName&&i.parentNode&&(e._fxImg=i,e._fxImgPrev=i.style.visibility,i.style.visibility="hidden"))},timelineDuration:e=>{const t=e.layer?.tl?.[e.scene]?.effects;if(!t?.all?.length||!0===_tpt.tf(t.d))return 0;let s=0,i=0;for(const a of t.all){s=Math.max(s,((parseInt(a.t)||0)+(parseInt(a.d)||0))/1e3);for(const t in a)_tpt.tf(a[t]?.on)&&(i=Math.max(i,SR7.PASS?.[t]?.timelineOffset?.(e)||0))}return s+i},timeline:e=>{const{id:t,c:s,layer:i,scene:a}=e;if(!SR7.FX?.create||!s)return;const r=i?.tl?.[a]?.effects,n=r?.all||[],o=Object.entries(SR7.PASS||{}).filter(([e,t])=>t.layerStyle&&_tpt.tf(i[t.layerStyle]?.u)&&SR7.F.fx.supportsLayer(e,i)).map(([e,t])=>({id:e,type:e,u:!0,settings:i[t.layerStyle]}));let l=null;n?.length&&SR7.F?.passList&&!0!==_tpt.tf(r.d)&&(l=SR7.F.passList().filter(e=>SR7.F.fx.supportsLayer(e.slug,i)&&!1!==SR7.F.passDef(e.slug).enabled?.(t,i)).filter(e=>n.some(t=>t?.[e.slug]&&!0===_tpt.tf(t[e.slug].on))).map(e=>({id:e.slug,type:e.slug,u:!0}))),l=[...o,...l||[]];const d=`${t}:${s.lkey}`;let c=SR7.FX.live?.[d];if(c&&null!=c._skey&&c._skey!==s.skey){const e=[SR7.F.fx.visibleSlideKeys(t)].flat().map(String);if(e.includes(String(c._skey))&&!e.includes(String(s.skey)))return;SR7.F.fx.detach(t,s.lkey),c=null}if(!l?.length)return void(c&&c._fxScene===a&&SR7.F.fx.detach(t,s.lkey));if(!n?.length&&!o.length)return;const p=SR7.F.fx.layerSource(s,l,i);if(!p&&l.some(e=>SR7.F.passDef(e.type).source))return void SR7.F.fx._retrySource(e);const u=!p&&s.canvas&&SR7.PASS?.kenburns&&i?.tl?.[a]?.pan&&!_tpt.tf(i.tl[a].pan.d)&&!SR7.F.pan.offHere(t);if(u&&(l=[{id:"kenburns",type:"kenburns",u:!0},...l]),s.canvas){const e=!!u;if(!!s.canvas.fxPan!==e){s.canvas.fxPan=e;try{s.canvas.drawImg?.(void 0,void 0,!0)}catch(e){}}}c&&!!c._fxBox!=!!p&&(SR7.F.fx.detach(t,s.lkey),c=null);const h=(u?l.slice(1):l).filter(e=>!SR7.PASS[e.type]?.layerStyle),g=l.map(e=>`${e.id}:${e.type}:${!1===e.u?0:1}`).join("|"),m=p?.source.canvas??s.canvas?.canvas;if(c&&p&&c._fxBox&&SR7.F.fx.bindSource(c,p),c&&!p&&m&&m.width&&m.height&&(c.w!==m.width||c.h!==m.height)&&(SR7.F.fx.detach(t,s.lkey),c=null),c)c._fxSig!==g&&SR7.FX.rebuild(c,l),(!c.canvas?.isConnected||p&&c._fxContentEl!==s.el)&&SR7.F.fx.rebindDOM(c,s);else{const a=p?.source.canvas||s.canvas?.canvas||(s.image&&"IMG"===s.image.tagName?s.image:s.el?.querySelector?.("img,canvas,video"));if(!a||"VIDEO"===a.tagName&&a.readyState<2)return void SR7.F.fx._retrySource(e);if(c=SR7.F.fx.attach(t,s,l,{content:p,layer:i}),!c)return}c._fxSig=g,c._fxLayerSource={c:s,layer:i},c._fxScene=a,c._skey=s.skey,c.canvas?.isConnected&&SR7.F.fx._fxFit(c.canvas,s.canvas?.canvas||("IMG"===s.image?.tagName?s.image:s.el?.querySelector?.("img,canvas,video")),c._fxBox),u&&c._fxSrc&&
28(c._fxSrc.needsUpdate=!0,c._fxLive=!1);const f={};for(const e of h)f[e.id]=SR7.F.passDefaults?.(e.type)||{};const S={};for(const t of h)S[t.id]=SR7.F.passDef(t.type).timelineOffset?.(e)||0;const y=(e,t)=>{const s=Object.assign({},f[t.id],e?.[t.id]);delete s.on;const i=SR7.PASS?.[t.type]?.schema||{},a={};for(const e in s)i[e]?.field||i[e]?.discrete||(a[t.id+"_"+e]=s[e]);return a},v={};for(const e of h)Object.assign(v,y(n[0],e));const R=()=>{const e={};for(const t of o)e[t.id]={...i[SR7.PASS[t.type].layerStyle],on:!0};for(const t in v){const s=t.indexOf("_");(e[t.slice(0,s)]??={})[t.slice(s+1)]=v[t]}const t=c._fxTL&&c._fxTL.time?c._fxTL.time():0;for(const s of h){const i=t-S[s.id];let a=!1;for(let e=0;e<n.length&&(parseInt(n[e].t)||0)/1e3<=i+1e-4;e++){const t=n[e]?.[s.id];a=!!t&&!0===_tpt.tf(t.on)}(e[s.id]??={}).on=a?1:0;const r=SR7.PASS?.[s.type]?.schema||{};for(const t in r){if(!r[t].field&&!r[t].discrete)continue;let a=r[t].default;for(let e=0;e<n.length&&(parseInt(n[e].t)||0)/1e3<=i+1e-4;e++){const i=n[e]?.[s.id];i&&void 0!==i[t]&&(a=i[t])}(e[s.id]??={})[t]=a}}const a=s.canvas?.fxPan&&s.canvas?.pan?{scale:s.canvas.pan.scale??1,rot:s.canvas.pan.rZ??0,offsetX:0,offsetY:0,anchorX:s.canvas.pan.anchorX??.5,anchorY:s.canvas.pan.anchorY??.5}:void 0;SR7.F.fx.render(c,{fxLive:e,kb:a})};R();try{c._fxTL?.kill?.()}catch(e){}const b=_tpt.gsap.timeline({data:{id:a+"_fx_"+s.lkey,type:"timeline"}});if(1===n.length){const e=(parseInt(n[0].d)||0)/1e3;e>0&&b.to(v,{duration:e+Math.max(0,...Object.values(S)),ease:"none",onUpdate:R},0)}else for(const e of h)for(let t=1;t<n.length;t++){const s=n[t];b.to(v,Object.assign(y(s,e),{duration:(parseInt(s.d)||0)/1e3,ease:s.e||"none",onUpdate:R}),(parseInt(s.t)||0)/1e3+S[e.id])}c._fxTL=b,c._fxRender=R;const w="out"===a||"out"===i?.tl?.[a]?.base;if(c._fxExit=!!w,!w||o.length||SR7.E.backend||SR7.F.sbt?.storyMode?.(t)||b.eventCallback("onComplete",()=>{SR7.FX.live?.[d]?._fxScene===a&&SR7.F.fx.detach(t,s.lkey,!1)}),SR7.E.backend)b.pause(),SR7.F.fx.editorRender({id:t,skey:s.skey,lkey:s.lkey,scene:a,c:s});else{const e=s.tl?.[a]?.TL,i=SR7.M[t]?.c?.tl?.[s.skey]?.[a]?.TL;e?e.add(b,0):i?i.add(b,0):b.play(0)}c._fxTick&&(_tpt.gsap.ticker.remove(c._fxTick),c._fxTick=null);const x=!SR7.E.backend&&i?.tl?.[a]?.pan&&!_tpt.tf(i.tl[a].pan.d),_=(l||[]).some(e=>SR7.PASS?.[e.type]?.continuous),F=()=>p?.video&&c._fxContentEl?.hasAttribute("data-sr-fx-active")&&(!p.video.paused||p.time!==p.video.currentTime),k=SR7.E.backend&&n?.length>1;if(x||_||k||p?.video){const e=SR7.E.backend?()=>{SR7.editor?.timeline?.c?.wrap?.classList?.contains("sr--tl--autoplaying")?SR7.F.fx.editorRender({id:t,skey:s.skey,lkey:s.lkey,scene:a}):(o.length||F())&&R()}:()=>{!1===SR7.M[t]?.states?.inViewPort||o.length&&!SR7.F.fx.onStage(s)||(x||_||F())&&(!o.length&&c._fxExit&&c._fxTL&&c._fxTL.progress()>=1||R())};_tpt.gsap.ticker.add(e),c._fxTick=e}},_retrySource:e=>{const{id:t,c:s}=e;if(!s||s._fxSrcTimer)return;let i=0;const a=()=>{if(SR7.FX.live?.[`${t}:${s.lkey}`])return void(s._fxSrcTimer=null);(s.canvas?.canvas||(s.image&&"IMG"===s.image.tagName?s.image:s.el?.querySelector?.("img,canvas,video,svg"))||"text"===e.layer?.type)&&SR7.F.fx.timeline(e),SR7.FX.live?.[`${t}:${s.lkey}`]||++i>30?s._fxSrcTimer=null:s._fxSrcTimer=setTimeout(a,100)};s._fxSrcTimer=setTimeout(a,100)},ensureEngine:e=>!(!SR7.FX?.create||_tpt.tf(e?.layer?.surface?.u)&&!SR7.PASS?.surface)||(e&&(SR7.F.fx._pending??=[]).push(e),SR7.F.fx._engineLoading||(SR7.F.fx._engineLoading=!0,_tpt.checkResources(["WEBGL","EFFECTS",..._tpt.tf(e?.layer?.surface?.u)?["surface"]:[]]).then(()=>{if(SR7.F.surface?.register(),SR7.F.fx._engineLoading=!1,SR7.E.backend)return void SR7.editor?.scene?.redraw?.();const e=SR7.F.fx._pending||[];SR7.F.fx._pending=[];for(const t of e)try{SR7.F.fx.ensureEngine(t)&&SR7.F.fx.timeline(t)}catch(e){}})),!1),editorRender:e=>{const{id:t,skey:s,lkey:i,scene:a}=e,r=SR7.FX?.live?.[`${t}:${i}`];if(!r?._fxTL||r._fxScene!==a)return;if(r._fxPreview){if(!SR7.editor?.timeline?.c?.wrap?.classList?.contains("sr--tl--autoplaying"))return;r._fxPreview=!1,r._fxTL.pause(),r._fxTL.eventCallback("onComplete",null)}const n=e.c??SR7.M[t]?.c?.layers?.[SR7.lToK?.[t+"-"+s+"-"+i]]??SR7.M[t]?.c?.layers?.[i],o=n?.tl?.[a]?.TL,l=SR7.M[t]?.c?.tl?.[s]?.[a]?.TL;"animation"!==SR7.editing?.modi||SR7.editing?.isidle?r._fxTL.progress(1,!0):r._fxTL.seek(l?.time()??o?.time()??0),r._fxRender?.()}},SR7.F.modify={prepare:e=>{if(null==e||"false"==String(e.s?.u??!1)&&"false"==String(e.s?.uf??!1)&&"false"==String(e.s?.utr??!1)&&"false"==String(e.m?.u??!1)&&"false"==String(e.m?.drag??!1))return;let t={mx:0,my:0,sx:0,sy:0,srx:0,sry:0,srz:0,ssc:1,sg:0,sb:0,sr:100,sf:100,mask:e.mask,mouse:e?.m??{},scroll:e?.s??{}};return t.scroll.rX&&(t.scroll.rX=parseInt(t.scroll.rX)),t.scroll.rY&&(t.scroll.rY=parseInt(t.scroll.rY)),t.scroll.rZ&&(t.scroll.rZ=parseInt(t.scroll.rZ)),"false"==String(e.s?.u??!1)&&(t.scroll.uf=!1,t.scroll.utr=!1),t},get:(r,n,o,l,d,c,p,u)=>{if(o.modifiers??={},"opacity"===u)o.modifiers.opacity=i(l),"in"===d&&0==c&&(l.mod.animElemOpacity=n,l.el.tf=o.tf);else if("xy"===u)"in"===d&&0==c&&(l.mod.animElemXY=n,n.tx=o.x?.()??0,n.ty=o.y?.()??0,n.tx="inherit"==n.tx?0:n.tx,n.ty="inherit"==n.ty?0:n.ty),o.modifiers.x=e(l,"x"),o.modifiers.y=e(l,"y");else if("filter"===u){l.mod.animElemFilter=n;const{blur:e,grayscale:t,brightness:s}=l.filters.simple.filters;l.filters.simple.used.blur&&(o.tb=e),l.filters.simple.used.grayscale&&(o.tg=t),l.filters.simple.used.brightness&&(o.tr=s),"in"===d&&0==c&&(n.tb=o.tb??0,n.tg=o.tg??0,n.tr=
28o.tr??100),o.modifiers.filter=a(l.filters.simple,l)}else"transform"===u&&(l.mod.animElemTransform=n,"in"===d&&0==c&&(n.rx=o.rotationX??0,n.ry=o.rotationY??0,n.rz=o.rotationZ??0),o.modifiers.rotationX=t(l,"x"),o.modifiers.rotationY=t(l,"y"),o.modifiers.rotation=t(l,"z"),o.modifiers.scaleX=s(l),o.modifiers.scaleY=s(l));return o},handleListeners:e=>{const t=SR7.M[e];if(!t.settings.mod?.use||null==t.c.mod||_tpt.is_mobile&&t.settings.mod?.dOM)return;let s=!1,i=!1;for(let e in t.c.mod[t.current.id]){if(s&&i)continue;const a=t.c.layers[SR7.lToK[t.c.mod[t.current.id][e]]];s=s||""+(a.mod.mouse?.u??!1)!="false",i=i||""+(a.mod.scroll?.u??!1)!="false"}for(let e in t.staticSlides)if(_tpt.hop(t.staticSlides,e)&&""!=t.staticSlides[e]&&(!s||!i))for(let a in t.c.mod[t.staticSlides[e]]){const r=t.c.layers[SR7.lToK[t.c.mod[t.staticSlides[e]][a]]];s=s||""+(r.mod.mouse?.u??!1)!="false",i=i||""+(r.mod.scroll?.u??!1)!="false"}if(s)SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.modify??={},SR7.M[e].c.moduleListeners.modify.enter??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart":"mouseenter",SR7.F.module.listeners.updateMouseCoordinates),SR7.M[e].c.moduleListeners.modify.coord??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchmove":"mousemove",SR7.F.module.listeners.updateMouseCoordinates),SR7.M[e].c.moduleListeners.modify.process??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchmove":"mousemove",function(e,t){SR7.F.modify.process(e,"mouse",void 0,t)}),_tpt.is_mobile&&(SR7.M[e].c.moduleListeners.modify.processTouch??=SR7.F.module.listeners.reg(e,"touchstart",function(e,t){SR7.F.modify.process(e,"touch",void 0,t)}));else for(let t of["enter","coord","process","processTouch"])SR7.M[e].c?.moduleListeners?.modify?.[t]&&(SR7.F.module.listeners.del(e,"enter"==t?_tpt.is_mobile?"touchstart":"mouseenter":_tpt.is_mobile?"touchmove":"mousemove",SR7.M[e].c.moduleListeners.modify[t]),delete SR7.M[e].c.moduleListeners.modify[t]);i?(SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.modify??={},SR7.M[e].c.moduleListeners.modify.scroll??=SR7.F.module.listeners.reg(e,"scroll",function(e){SR7.F.isCarousel(e)?SR7.F.modify.processAll(e,"scroll"):SR7.F.modify.process(e,"scroll")})):SR7.M[e].c?.moduleListeners?.modify?.scroll&&(SR7.F.module.listeners.del(e,"scroll",SR7.M[e].c.moduleListeners.modify.scroll),delete SR7.M[e].c.moduleListeners.modify.scroll)},processAll:(e,t)=>{for(let s in SR7.M[e].slideOrder)(SR7.M[e].slides[SR7.M[e].slideOrder[s]].slide.visible||SR7.M[e].slideOrder[s]==SR7.M[e].current.id)&&SR7.F.modify.process(e,t,void 0,void 0,SR7.M[e].slideOrder[s])},process:(e,t,s,i,a)=>{if(SR7.F.modify.pOS(e,t,s,a??SR7.M[e].current.id),SR7.M[e].staticSlides)for(let i of SR7.M[e].staticSlides)SR7.F.modify.pOS(e,t,s,i)},pOS:(e,t,s,i)=>{const a=SR7.M[e];if(!a.settings.mod?.use||null==a.c.mod||null==a.c.mod[i]||_tpt.is_mobile&&a.settings.mod?.dOM)return;const n=a.c.d3?.[i]&&(a.settings.mod?.d3??!1)&&(a.settings.mod?.mouse??!1);if(n){const t=Math.round((a.mouse?.cDY??0)*a.settings.mod.d3d/a.dims.module.h),s=-Math.round((a.mouse?.cDX??0)*a.settings.mod.d3d/a.dims.module.w),n=a.settings.mod.d3s>20?a.settings.mod.d3s/1e3:a.settings.mod.d3s;_tpt.gsap.to([a.c.d3[i].layers,a.c.d3[i].bg],n,{rotateX:t,rotateY:s,z:r(e,Math.abs(t)+Math.abs(s)/2),ease:a.settings.mod.d3e,overwrite:"auto"})}for(let r in a.c.mod[i]){if(void 0!==s&&s!==r)continue;const o=a.c.layers[SR7.lToK[a.c.mod[i][r]]];if(o.mod.use3d=n,("mouse"===t||"touch"===t)&&(a.settings.mod.drag||a.settings.mod.mouse)&&"false"!==String(o.mod.mouse?.u??!1)){let s,i;if(null==o.mod.animElemXY&&"slidebg"===o.subtype&&(o.mod.animElemXY=o.px?o.px:o.mask?o.mask:o.el),a.settings.mod.drag&&SR7.F.isCarousel(e)){let e=a.settings.mod.sm,t=a.settings.mod.om;"opposite"===a.settings.mod.dir&&(e=t,t=e),s=(a.c.carousel.src.lpX-(a.c.carousel.src.s.realDragging?a.c.carousel.src.pX:0))*Math.max(1,e)/10,i=(a.c.carousel.src.lpY-a.c.carousel.src.pY)*Math.max(1,t)/10,"same"===a.settings.mod.dir?"h"===a.settings.carousel.type?i=0:"v"===a.settings.carousel.type&&(s=0):"opposite"===a.settings.mod.dir&&("h"===a.settings.carousel.type?(i=s,s=0):"v"===a.settings.carousel.type&&(s=i,i=0))}else{let e="touch"===t?"F":"";
28s=(a.mouse[o.mod.mouse.o+"DX"+e]??0)*o.mod.mouse.x/(n?"slidebg"!==o.subtype?200:155:100),i=(a.mouse[o.mod.mouse.o+"DY"+e]??0)*o.mod.mouse.y/(n?"slidebg"!==o.subtype?200:80:100)}void 0!==o.mod.mouse.s&&(o.mod.tlM=_tpt.gsap.to(o.mod,0===o.mod.mouse.s?1e-4:o.mod.mouse.s,{mx:s,my:i,ease:o.mod.mouse.e,overwrite:"auto"}),o.mod.tlM.eventCallback("onUpdate",SR7.F.modify.tlupdate,[o,"xy"]))}if("scroll"===t&&a.settings.mod.scroll){let e={ease:"power3.out",overwrite:"auto"};if("false"!==(o.mod.scroll?.u??"false")&&(e.sx=Math.round(a.scrollProc*(-o.mod.scroll.x/100*a.dims.module.h)*10)/10||0,e.sy=Math.round(a.scrollProc*(-o.mod.scroll.y/100*a.dims.module.h)*10)/10||0),o.mod.scroll.uf||o.mod.scroll.utr){const t=o.mod.scroll.t/2;let s=a.scrollProc;s=s>t?Math.min(1,(s-t)/(1-t)):s<-t?Math.max(-1,(s+t)/(1-t)):0,o.mod.scroll.uf&&(null==o.mod.animElemFilter&&(o.mod.animElemFilter=o.mask?o.mask:o.el,o.filters??={},o.filters.simple=SR7.F.getFilterStyle(o.mod.scroll,"",o.filters?.simple?.used??void 0)),"inherit"!==o.mod.scroll.g&&(e.sg=0==o.mod.scroll.g?0:Math.round(Math.abs(s)*o.mod.scroll.g)),"inherit"!==o.mod.scroll.b&&(e.sb=0==o.mod.scroll.b?0:Math.round(Math.abs(s)*o.mod.scroll.b)),"inherit"!==o.mod.scroll.r&&(e.sr=100==o.mod.scroll.r?100:Math.round((1-Math.abs(s))*o.mod.scroll.r)),"inherit"!==o.mod.scroll.f&&(e.sf="off"==o.mod.scroll.f?100:1-Math.abs(s)-Math.abs(s)*((o.mod.scroll.f-100)/100))),o.mod.scroll.utr&&(e.srx=0==o.mod.scroll.rX?0:Math.round(s*o.mod.scroll.rX),e.sry=0==o.mod.scroll.rY?0:Math.round(s*o.mod.scroll.rY),e.srz=0==o.mod.scroll.rZ?0:Math.round(s*o.mod.scroll.rZ),e.ssc=1==o.mod.scroll.sc?1:1+Math.abs(s)*o.mod.scroll.sc)}o.mod.tlS=_tpt.gsap.to(o.mod,.001*o.mod.scroll.s||.001,e),o.mod.tlS.eventCallback("onUpdate",SR7.F.modify.tlupdate,[o,"xy,filter,opacity,rotate"])}}},tlupdate:(r,n)=>{if(n.includes("xy")&&!SR7.F.modify.isTweening(r,"xy")&&(r.mod.animElemXY||r.mod.animElem)&&_tpt.gsap.set(r.mod.animElemXY||r.mod.animElem,{x:e(r,"x")(),y:e(r,"y")()}),n.includes("rotate")&&r.mod.scroll?.utr&&_tpt.gsap.set(r.target,{rotationX:t(r,"x")(),rotationY:t(r,"y")(),rotationZ:t(r,"z")(),scaleX:s(r)(),scaleY:s(r)()}),n.includes("filter")&&r.mod.animElemFilter&&!SR7.F.modify.isTweening(r,"filter")){let e=void 0===r.filters?"":a(r.filters.simple,r)();_tpt.gsap.set(r.mod.animElemFilter,{filter:""===e?"none":e})}!n.includes("opacity")||"slidebg"!==r.subtype&&!r.mod.animElemOpacity||"slidebg"!==r.subtype&&SR7.F.modify.isTweening(r,"opacity")||_tpt.gsap.set(r.el,{opacity:"slidebg"===r.subtype?Math.min(1,parseFloat(r.mod.sf)||1):i(r)})},isTweening:(e,t)=>{let s=!1;if(null==(e.mod?.coreTween?.[t]??void 0))return!1;for(let i in e.mod.coreTween[t])!s&&_tpt.hop(e.mod.coreTween[t],i)&&(s=e.tl?.[i]?.[e.mod.coreTween[t][i]]?.isActive()??!1);return s}},SR7.F.sbt={sbtStory:!0,storyType:"story",storyWanted:e=>!0===SR7.F.sbt.sbtStory&&!SR7.E.backend&&SR7.M[e]?.settings?.type===SR7.F.sbt.storyType,storyMode:e=>!0===SR7.F.sbt.sbtStory&&void 0!==SR7.F.sbt.story&&!SR7.E.backend&&SR7.M[e]?.settings?.type===SR7.F.sbt.storyType&&(SR7.M[e]?.len??1)>1,oneWay:(e,t,s)=>{const i=SR7.M[e];return!i?.settings?.sbt?.ow||SR7.F.sbt.storyMode(e)?s:(i.sbt??={},i.sbt.__ow??={},i.sbt.__ow[t]=Math.max(i.sbt.__ow[t]??s,s))},localTime:(e,t)=>{const s=SR7.M[e];if(!SR7.F.sbt.storyMode(e))return s.sbt?.__time??0;const i=(s.sbt?.__segs??[]).find(e=>String(e.skey)===String(t));return Math.max(0,(s.sbt?.__time??0)-(i?.start??0)/1e3)},init:e=>{const t=SR7.M[e];t.c.moduleListeners??={},t.c.moduleListeners.sbt??={};const s=SR7.F.sbt.storyMode(e);s&&SR7.F.sbt.story.map(e),null==t.c.moduleListeners.sbt.scroll&&(t.c.moduleListeners.sbt.scroll=SR7.F.module.listeners.reg(e,"scroll",function(e){SR7.F.sbt.process(e,"scroll")},!0),SR7.F.sbt.process(e,"init"),requestAnimationFrame(()=>{_tpt.scrollObserver.process(t.c.module,!0)})),!t.settings.slideshow.auto&&t.settings.pbar?.set&&(t.useProgressBar=!0,SR7.slideShow.buildPBar(e)),s&&(SR7.F.updateModuleDims(e,!0),SR7.F.sbt.story.mount(e,0))},process:(e,t)=>{const s=SR7.M[e];if(!SR7.E.backend&&s.settings.sbt?.f){const t=s.dims.content.h<_tpt.winH,i=_tpt.winH-s.dims.content.h-parseInt(s.dims.reduceHeight??0),a=s.settings.sbt.a??"top";if(s.useAsModal&&(SR7.F.module.box(e),SR7.F.modal.sbt=!0,SR7.F.modal.underlay("show"),s.c.module.style.transform="none"),s.sbt.__runTime??=0,(s.dims.moduleRect.top<parseInt(s.dims.reduceHeight??0)||s.dims.moduleRect.top+s.dims.content.h<_tpt.winH&&"travel"==a||s.dims.moduleRect.top+s.dims.content.h<=_tpt.winH&&"bottom"==a)&&s.dims.moduleRect.bottom-s.dims.content.h-("bottom"==a?i:0)>(s.dims.content.h>_tpt.winH?i:0)&&s.dims.moduleRect.top<_tpt.winH){!0!==s.sbtFreeze&&(s.c.content.style.position="fixed",s.c.content.style.top=parseInt(s.dims.reduceHeight??0)+"px",s.settings.size.fullWidth&&(s.c.content.style.left="0px"),s.c.content.style.bottom="auto",s.sbtFreeze=!0);const e=s.dims.sbt-(s.dims.content.h+(t?-i:i));let r=t?"travel"==a?parseInt(s.dims.reduceHeight??0)+i+(s.dims.moduleRect.top-i)/e*i:"bottom"==a?_tpt.win
28H-s.dims.content.h-parseInt(s.dims.reduceHeight??0):0:0-s.dims.moduleRect.top/e*i;_tpt.gsap.set(s.c.content,{y:r}),s.sbt._mtop=s.dims.moduleRect.top}else!1!==s.sbtFreeze&&(s.c.content.style.position="absolute",s.sbtFreeze=!1,s.dims.moduleRect.top>=0?(s.c.content.style.top="0px",s.settings.size.fullWidth&&(s.c.content.style.left=s.dims.content.shiftx+s.dims.content.mwshiftx+"px"),s.c.content.style.bottom="auto",_tpt.gsap.set(s.c.content,{y:0})):(s.c.content.style.top="auto",s.c.content.style.bottom="0px",s.settings.size.fullWidth&&(s.c.content.style.left=s.dims.content.shiftx+s.dims.content.mwshiftx+"px"),_tpt.gsap.set(s.c.content,{y:"top"==a?parseInt(s.dims.reduceHeight??0):0})))}let i;if(s.settings.sbt?.f&&s.settings.sbt.nL?i=s.dims.moduleRect.top>=(s.dims.reduceHeight??0)&&s.dims.moduleRect.top<=_tpt.winH?s.sbt.__slen*(1-s.dims.moduleRect.top/_tpt.winH)/1e3:s.dims.moduleRect.top<=(s.dims.reduceHeight??0)&&s.dims.moduleRect.bottom>=s.dims.module.h?(s.sbt.__slen+s.sbt.__mlen*(Math.abs(s.dims.moduleRect.top)/(s.dims.moduleRect.height-s.dims.module.h)))/1e3:s.dims.moduleRect.top>_tpt.winH?0:(parseInt(s.settings.sbt.fEnd??0)+s.sbt.__elen*(1-s.dims.moduleRect.bottom/s.dims.content.h))/1e3:(s.sbt??={},s.sbt.__len??=SR7.slideShow.getLen(e),i=_tpt.gsap.utils.mapRange(1,-1,0,(s.sbt.__len??9e3)/1e3,s.scrollProcSA)),s.sbt.__time??=i,"scroll"===t){if(s.sbt.done=!0,s.sbt.__time=SR7.F.sbt.oneWay(e,"time",i),-1==(s.current?.id??-1))return;SR7.F.updateSBTTimes(e,s.sbt.__time),SR7.F.updatePBars(e,s.sbt.__time)}}},SR7.F.updateSBTTimes=function(e,t){const s=SR7.M[e];if(SR7.F.sbt.storyMode(e))return SR7.F.sbt.story.seek(e,1e3*t);const i=s.settings.sbt?.smooth?0:.001*s.settings.sbt.s;for(var a in s.sbt[s.current.id]){if(!_tpt.hop(s.sbt[s.current.id],a))continue;const r=s.sbt[s.current.id][a];r.tl.paused()||r.tl.pause(),_tpt.gsap.to(r.tl,{duration:i,time:_tpt.gsap.utils.clamp(r.so,r.tl.duration(),t),onUpdate:r.sync?()=>SR7.F.syncSBTAddOns(e,s.current.id,a,r.tl):void 0})}},SR7.F.syncSBTAddOns=function(e,t,s,i){if(!SR7.A)return;const{layer:a,c:r}=SR7.F.getLayer({id:e,skey:t,lkey:s})||{};if(a?.addOns)for(let n in a.addOns){if(!_tpt.hop(a.addOns,n)||!a.addOns[n]?.u)continue;const o=SR7.A?.[n]?.onTimelineRender;"function"==typeof o&&o({id:e,skey:t,lkey:s,scene:"in",layer:a,c:r,timeline:i})}},SR7.F.updatePBars=function(e,t){const s=SR7.M[e];if(!s.useProgressBar)return;const i=Math.max(0,(1e3*t-s.settings.sbt.fStart)/(s.settings.sbt.fEnd-s.settings.sbt.fStart));s.slideShow.tween.progress(i)};const e=(e,t)=>()=>parseFloat(e.mod.animElem["t"+t]??0)+(e.mod?.["m"+t]??0)+(e.mod?.["s"+t]??0)+"px",t=(e,t)=>()=>parseFloat(e.mod.animElem["r"+t]??0)+(e.mod?.["sr"+t]??0)+(e.mod?.["mr"+t]??0)+"deg",s=e=>()=>parseFloat(e.mod?.ssc??1),i=e=>()=>parseFloat(e.el.tf??0)*(e.mod?.sf??0),a=(e,t)=>()=>(e.used?.blur?"blur("+(parseInt(t.el.tb??0)+parseInt(t.mod?.sb??0))+"px) ":"")+(e.used?.grayscale?"grayscale("+(parseInt(t.el.tg??0)+parseInt(t.mod?.sg??0))+"%) ":"")+(e.used?.brightness?"brightness("+parseInt(t.el.tr??100)+"%)":""),r=(e,t)=>(s,i)=>parseInt(SR7.M[e].settings.mod.d3z??65)*(i.className.includes("-bg")?-t/5:1)+"px";let n=(e,t,s,i)=>{let a="in"==e?"cright"==t?{transformOrigin:"0% 50%",scaleX:0,scaleY:1}:"cleft"==t?{transformOrigin:"100% 50%",scaleX:0,scaleY:1}:"cbottom"===t?{transformOrigin:"50% 0%",scaleX:1,scaleY:0}:{transformOrigin:"50% 100%",scaleX:1,scaleY:0}:"cleft"===t?{transformOrigin:"0% 50%",scaleX:0,scaleY:1}:"cright"===t?{transformOrigin:"100% 50%",scaleX:0,scaleY:1}:"ctop"==t?{transformOrigin:"50% 0%",scaleX:1,scaleY:0}:{transformOrigin:"50% 100%",scaleX:1,scaleY:0};return a.ease=s,a.backgroundColor=i,a};_tpt.R??={},_tpt.R.modifiers=_tpt.extend?_tpt.extend(_tpt.R.modifiers,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},void 0!==SR7.F.navigation)return;const e=e=>"slide"===e||"grid"===e;SR7.F.navigation={init:e=>{SR7.F.navigation.create(e),r(e),_tpt.resizeObserver.observe(e=>{SR7.F.navigation.showHide(e)},19,e)},update:e=>{const t=SR7.M[e];t.c.nav&&"hero"!==t.settings.type&&(t.settings.nav?.arrows?.set&&h(e),t.settings.nav?.bullets?.set&&d(e),t.settings.nav?.tabs?.set&&c(e,"tabs"),t.settings.nav?.thumbs?.set&&c(e,"thumbs"),t.settings.nav?.scrubber?.set&&p(e,"scrubber"))},select:(e,t)=>
28{const s=SR7.M[e];if("hero"!==s.settings.type){for(let e of["bullets","tabs","thumbs","scrubber"]){let i=0;if(s.settings?.nav?.[e]?.set){let a=s.c?.nav?.[e]?.elements;if(a)for(let r of a)r.classList[r.dataset.key==t?"add":"remove"]("selected"),null!==r.getAttribute("aria-pressed")&&r.setAttribute("aria-pressed",r.dataset.key==t?"true":"false"),"scrubber"==e&&r.dataset.key==t&&s.c.nav?.scrubber?.srScrubber&&!s.c.nav.scrubber.srScrubber.dragging&&s.c.nav.scrubber.srScrubber.goTo(i),i++}}SR7.F.navigation.refreshContent(e)}},refreshContent:e=>{const t=SR7.M[e];if(!t.c?.nav||!t.settings?.nav||!t.settings.nav?.arrows?.set)return;let s=t.c.nav.arrows;for(let i of["left","right"]){let a=t.slides?.[t.slideOrder[SR7.F.requestSlide({id:e,slide:s[i].dataset.dir,force:!1,getter:!0})]]?.slide;a&&(S(s[i+"_dcs"],a),void 0!==s[i+"_img_live"]&&y(e,a,s[i+"_img_live"],s[i+"_img_tmp"],t.settings.nav.arrows.m??"hslide",i))}},remove:(e,t)=>{const s=SR7.M[e],i=s?.c?.nav,a=s?.settings?.nav;i&&a&&["bullets","tabs","thumbs"].forEach(e=>{if(!a[e]?.set)return;let s=i[e].elements.findIndex(e=>e.dataset.key==t);-1!==s&&(i[e].elements[s].remove(),i[e].elements.splice(s,1))})},showHide:(e,t,s)=>{s=s||"touchstart"==t||"mouseenter"===t;const a=SR7.M[e],r=a.c?.nav??!1;if(!r||!a.settings?.nav)return;let n=t;if(t=null==t?SR7.M[e].states.overModule?1:0:"mouseenter"===t||"touchstart"===t?1:0,r.dCalls)for(let e of r.dCalls)void 0!==e&&void 0!==e.kill&&e.kill();r.dCalls=[];let o=!1;["arrows","bullets","tabs","thumbs","scrubber"].forEach(l=>{if(!a.settings.nav?.[l]?.set)return;let d=a.settings.nav[l];SR7.E.backend&&(d.on=!0),t=d?.on?1:t,s=!d?.on&&s;let c="arrows"==l?[r[l].left,r[l].right]:r[l].wrap;if(0==(d?.show?.[a.LEV]??!0))_tpt.gsap.set(c,{display:"none"}),r[l+"visible"]=!1;else{if(0==r[l+"visible"]&&(null==n?_tpt.gsap.set(c,{display:"block",opacity:1}):_tpt.gsap.set(c,{display:"block"}),r[l+"visible"]=!0,o=!0),null==n)return;"arrows"==l?(1==t&&0==s&&!0!==r[l].animated&&(r.dCalls.push(i(e,0,r[l].left,0,d.l.anim,r[l].pos_left,!0)),r.dCalls.push(i(e,0,r[l].right,0,d.r.anim,r[l].pos_right,!0)),r[l].animated=!0),r.dCalls.push(i(e,d,r[l].left,t,d.l.anim,r[l].pos_left,s)),r.dCalls.push(i(e,d,r[l].right,t,d.r.anim,r[l].pos_right,s))):(1==t&&0==s&&!0!==r[l].animated&&(r.dCalls.push(i(e,0,r[l].wrap,0,d.anim,r[l].pos,!0)),r[l].animated=!0),r.dCalls.push(i(e,d,r[l].wrap,t,d.anim,r[l].pos,s)))}}),o&&requestAnimationFrame(function(){SR7.F.navigation.update(e)})},create:(e,i=["arrows","bullets","tabs","thumbs","scrubber"])=>{const r=SR7.M[e];for(let n of i)if(r.settings.nav?.[n]?.set){r.c.nav??={},r.c.nav[n]??={};let i=r.c.nav[n],o=r.settings.nav[n],d=_tpt.collector();if("arrows"==n)for(let t of["left","right"]){const s=SR7.F.isCarousel(e)?Math.max(1,parseInt(o.step??1)||1):1,n="left"==t?SR7.F.navDirFlipped(e)?"+"+s:"-"+s:SR7.F.navDirFlipped(e)?"-"+s:"+"+s,l=i[t]=d.add({tag:"sr7-arrow",datas:{dir:n},class:"sr7-"+t+"arrow sr7-arrows "+o.key});r.settings.acc?.use&&"true"!==String(r.settings.nav?.acc?.hidden)?(l.setAttribute("aria-label","+1"==n?r.settings.nav?.acc?.next??"Next":r.settings.nav?.acc?.prev??"Previous"),l.setAttribute("role","button"),l.setAttribute("tabindex",0)):l.setAttribute("aria-hidden",!0),l.innerHTML=m(o.html),i[t+"_dcs"]=l.getElementsByTagName("sr7-navdc"),o.html.includes("sr7-nav-img")&&(i[t+"_img"]=l.getElementsByClassName("sr7-nav-img"),i[t+"_img"]?.length?(i[t+"_img"]=i[t+"_img"][0],i[t+"_img_live"]=d.add({tag:"sr7-nav-img-live"}),i[t+"_img_tmp"]=d.add({tag:"sr7-nav-img-tmp"}),i[t+"_img"].appendChild(i[t+"_img_tmp"]),i[t+"_img"].appendChild(i[t+"_img_live"])):delete i[t+"_img"]),l.style.opacity=0,d.fragment.appendChild(i[t]),a(e,l,"arrow")}else if("bullets"==n){i.wrap=d.add({tag:"sr7-bullets",class:"sr7-bullets "+o.key+" sr7-nd"+SR7.gV({v:o.d,id:e,u:0})[0]+" sr7-nph"+SR7.gV({v:o.h,id:e,u:0})[0]+" sr7-npv"+SR7.gV({v:o.v,id:e,u:0})[0]}),i.wrap.style.opacity=0,d.fragment.appendChild(i.wrap),i.elements=[];let t=1;const s=SR7.F.navDirFlipped(e)?[...r.slideOrder].reverse():r.slideOrder;for(let n of s){if(!n||r.slides[n]?.slide?.slideshow?.hfn)continue;let s=d.add({tag:"sr7-bullet",class:"sr7-bullet",datas:{key:n}});r.settings.acc?.use&&"true"!==String(r.settings.nav?.acc?.hidden)?(s.setAttribute("aria-label",(r.settings.nav?.acc?.bullet??"Bullet")+" "+t),s.setAttribute("role","button"),s.setAttribute("tabindex",0),"unset"!==String(r.settings.nav?.acc?.pressed??"unset")&&s.setAttribute("aria-pressed","fal
28se")):s.setAttribute("aria-hidden",!0),t++,s.innerHTML=f(o.html,r.slides[n].slide);let l=s.getElementsByClassName("sr7-bullimg");l?.length&&y(e,r.slides[n].slide,l[0]),a(e,s),i.wrap.appendChild(s),i.elements.push(s)}}else if("tabs"==n||"thumbs"==n){const t="tabs"==n?"sr7-tab":"sr7-thumb";i.wrap=d.add({tag:"sr7-"+n,class:"sr7-"+n+" "+o.key+" sr7-nd"+SR7.gV({v:o.d,id:e,u:0})[0]+" sr7-nph"+SR7.gV({v:o.h,id:e,u:0})[0]+" sr7-npv"+SR7.gV({v:o.v,id:e,u:0})[0]}),i.mask=d.add({tag:"sr7-tt-mask",class:"sr7-"+n+"-mask"}),i.iwrap=d.add({tag:"sr7-"+n+"-wrap",class:"sr7-ntiw"}),i.wrap.appendChild(i.mask),i.mask.appendChild(i.iwrap),i.wrap.style.opacity=0,i.wrap.style.paddingTop=i.wrap.style.paddingBottom=i.wrap.style.paddingLeft=i.wrap.style.paddingRight=(SR7.gV({v:o.wr.p,id:e,u:0})??0)+"px",SR7.F.drawBG(i.wrap,{color:o.wr.c},!0,"bg"),i.elements=[];let s=1;const l=SR7.F.navDirFlipped(e)?[...r.slideOrder].reverse():r.slideOrder;for(let c of l){if(!c||r.slides[c]?.slide?.slideshow?.hfn)continue;let l=d.add({tag:t,class:t,datas:{key:c}});r.settings.acc?.use&&"true"!==String(r.settings.nav?.acc?.hidden)?(l.setAttribute("aria-label",(r.settings.nav?.acc?.[n]??n)+" "+s),l.setAttribute("role",r.settings.nav?.acc?.role??"button"),l.setAttribute("tabindex",0),"unset"!==String(r.settings.nav?.acc?.pressed??"unset")&&l.setAttribute("aria-pressed","false")):l.setAttribute("aria-hidden",!0),l.innerHTML=f(o.html,r.slides[c].slide),s++;let p=l.getElementsByClassName("tabs"==n?"sr7-tab-img":"sr7-thumb-img");p?.length&&y(e,r.slides[c].slide,p[0]),a(e,l),i.iwrap.appendChild(l),i.elements.push(l)}}else if("scrubber"==n){const a=SR7.gV({v:o.h,id:e,u:0}),l=SR7.gV({v:o.v,id:e,u:0}),c="horizontal"==SR7.gV({v:o.d,id:e,u:0});i.wrap=d.add({tag:"sr7-"+n,class:"sr7-"+n+" "+o.key+" sr7-nd"+SR7.gV({v:o.d,id:e,u:0})[0]+" sr7-nph"+SR7.gV({v:o.h,id:e,u:0})[0]+" sr7-npv"+SR7.gV({v:o.v,id:e,u:0})[0]}),i.iWrap=d.add({tag:"sr7-"+n+"-wrap",class:"sr7-"+n+"-wrap"}),i.handle=d.add({tag:"sr7-"+n+"-handle",class:"sr7-"+n+"-handle"}),i.svg=new s({id:e,tp:o.tp,d:c}),i.iWrap.appendChild(i.svg.svg),i.svg.svg.style.position="absolute",c&&o.ha&&(i.rightHandleArrow=d.add({tag:"sr7-"+n+"-hra",class:"sr7-"+n+"-hra sr7-"+n+"-ha"}),i.leftHandleArrow=d.add({tag:"sr7-"+n+"-hla",class:"sr7-"+n+"-hla sr7-"+n+"-ha"}),i.handle.appendChild(i.rightHandleArrow),i.handle.appendChild(i.leftHandleArrow)),i.wrap.appendChild(i.iWrap),i.iWrap.appendChild(i.handle),i.wrap.style.opacity=0,i.wrap.style.paddingTop=i.wrap.style.paddingBottom=i.wrap.style.paddingLeft=i.wrap.style.paddingRight=(SR7.gV({v:o.wr.p,id:e,u:0})??0)+"px",SR7.F.drawBG(i.wrap,{color:o.wr.c},!0,"bg"),i.elemsWrap=d.add({tag:"sr7-"+n+"-thumbwrap",class:"sr7-"+n+"-thumbwrap"}),i.elements=[];for(let t of r.slideOrder){if(!t||r.slides[t]?.slide?.slideshow?.hfn)continue;let s=d.add({tag:"sr7-"+n+"-thumb",class:"sr7-"+n+"-thumb",datas:{key:t}});if(s.innerHTML=f(o.html,r.slides[t].slide),o.tn){let i=s.getElementsByClassName("sr7-scrubber-img");i?.length&&y(e,r.slides[t].slide,i[0])}i.elemsWrap.appendChild(s),i.elements.push(s)}if(i.handle.appendChild(i.elemsWrap),d.fragment.appendChild(i.wrap),o.hp&&r.settings.slideshow.auto){const e="left"
28===o.pa&&c?"0% 50%":"left"!==o.pa||c?"center"===o.pa?"50% 50%":c?"100% 50%":"50% 100%":"50% 0%";i.progress=d.add({tag:"sr7-"+n+"-progress",class:"sr7-"+n+"-progress"}),i.handle.appendChild(i.progress),i.progTween=_tpt.gsap.fromTo(i.progress,{scaleX:c?0:1,scaleY:c?1:0,transformOrigin:e},{scaleX:1,scaleY:1}),i.progTween.pause()}if(i.hoverTween=_tpt.gsap.timeline(),100!=o.sc){const e=("left"===a?"0%":"center"===a?"50%":"100%")+" "+("top"===l?"0%":"center"===l?"50%":"100%");i.hoverTween.fromTo(i.iWrap,{transformOrigin:e,scaleX:c?1:o.sc/100,scaleY:c?o.sc/100:1},{duration:.2,scaleX:1,scaleY:1},0)}if(0!==o.to&&i.hoverTween.fromTo(i.elemsWrap,{opacity:0},{duration:.2,opacity:1},0),c&&o.ha){const e=t(o,!0,"left"),s=t(o,!0,"right");i.hoverTween.fromTo(i.leftHandleArrow,e.from,e.to,.2).fromTo(i.rightHandleArrow,s.from,s.to,.2)}i.hoverTween.pause()}l({css:o.css??"",key:o.key,within:r.c.module.id,id:e,cst:r.settings.nav[n].cst,def:r.settings.nav[n].def});for(let t in r.slides)void 0!==r.slides[t]?.slide?.nav?.[n]&&l({css:o.css??"",key:o.key,within:r.c.module.id,id:e,navkey:r.settings.nav[n].key,cst:r.settings.nav[n].cst,def:r.settings.nav[n].def,scst:r.slides[t].slide.nav[n],sid:t});d.append("o"==o.io?r.c.module:r.c.content)}o(e),requestAnimationFrame(function(){SR7.F.navigation.update(e),SR7.M[e].states.overModule??=SR7.M[e].c.module.matches(":hover"),SR7.M[e].states.overModule?SR7.F.navigation.showHide(e,"mouseenter"):SR7.F.navigation.showHide(e,"mouseleave",!0)})},reAddCSS:(e,t=["arrows","bullets","tabs","thumbs","scrubber"])=>{const s=SR7.M[e];for(let i of t)if(s.settings.nav?.[i]?.set){s.c.nav??={},s.c.nav[i]??={};let t=s.settings.nav[i];l({css:t.css??"",key:t.key,within:s.c.module.id,id:e,cst:s.settings.nav[i].cst,def:s.settings.nav[i].def});for(let a in s.slides)void 0!==s.slides[a]?.slide?.nav?.[i]&&l({css:t.css??"",key:t.key,within:s.c.module.id,id:e,navkey:s.settings.nav[i].key,cst:s.settings.nav[i].cst,def:s.settings.nav[i].def,scst:s.slides[a].slide.nav[i],sid:a})}}};const t=function(e,t,s){const i={scale:t?0:1,opacity:t?0:1,rotation:t?180:-180,x:t?"left"===s?e.tr:-e.tr:0},a={scale:t?1:0,opacity:t?1:0,rotation:0,x:t?0:"left"===s?e.tr:-e.tr};return e.asc||(delete i.scale,delete a.scale),e.sp||(delete i.rotation,delete a.rotation),0===e.tr&&(delete i.x,delete a.x),e.f||(delete i.opacity,delete a.opacity),a.duration=.2,{from:i,to:a}},s=function(e){const t="http://www.w3.org/2000/svg";this.s=e,this.svg=document.createElementNS(t,"svg"),this.svg.style.display="block",this.rect=document.createElementNS(t,"rect"),this.pattern=document.createElementNS(t,"pattern"),this.pattern.setAttributeNS(null,"patternUnits","userSpaceOnUse"),this.pattern.setAttributeNS(null,"id",this.s.id+"-pattern"),"dots"===e.tp?(this.circle=document.createElementNS(t,"circle"),this.circle.setAttributeNS(null,"class","pattern-color"),this.pattern.appendChild(this.circle)):"vlines"!==this.s.tp&&"hlines"!==this.s.tp||(this.circle=document.createElementNS(t,"rect"),this.circle.setAttributeNS(null,"class","pattern-color"),this.pattern.appendChild(this.circle)),this.svg.appendChild(this.pattern),this.svg.appendChild(this.rect),this.rect.setAttributeNS(null,"fill","url(#"+this.s.id+"-pattern")};s.prototype.resize=function(){if(this.s.d?(this.dw=this.w,this.dh=this.h):(this.dw=this.h,this.dh=this.w),this.svg.style.width=this.w+"px",this.svg.style.height=this.h+"px",this.rect.setAttributeNS(null,"width",this.w),this.rect.setAttributeNS(null,"height",this.h),this.pattern.setAttributeNS(null,"width",this.dh),this.pattern.setAttributeNS(null,"height",this.dh),"dots"===this.s.tp)this.circle.setAttributeNS(null,"cx",this.dh/2),this.circle.setAttributeNS(null,"cy",this.dh/2),this.circle.setAttributeNS(null,"r",1);else if("vlines"===this.s.tp||"hlines"===this.s.tp){var e="vlines"===this.s.tp?1:this.dh/4,t="vlines"===this.s.tp?this.dh/4:1;this.circle.setAttributeNS(null,"x",(this.dh-e)/2),this.circle.setAttributeNS(null,"y",(this.dh-t)/2),this.circle.setAttributeNS(null,"width",e),this.circle.setAttributeNS(null,"height",t)}};const i=(e,t,s,i,a,r,n)=>_tpt.gsap.delayedCall(n||SR7.E.backend?0:SR7.gV({v:t[1==i?"dIn":"dOut"],id:e,u:0})/1e3,function(e,t,s,i,a){void 0!==e.anim&&e.anim.kill();let r=Math.max(.01,1==i?t*(1-e.style.opacity):t*e.style.opacity),n=((e="fade",t=1,s={x:0,y:0})=>{let i=1==t?{opacity:1,pointerEvents:"auto",ease:"power3.inOut"}:{opacity:0,ease:"power3.inOut"};return"left"!=e&&"right"!=e||(i.x=1==t?s.x:"left"==e?s.x-50:"right"==e?s.x+50:s.x),"top"!=e&&"bottom"!=e||(i.y=1==t?s.y:"top"==e?s.y-50:"bottom"==e?s.y+50:s.y),"zoomin"==e?i.scaleX=i.scaleY=1==t?1:.5:"zoomout"==e&&(i.scaleX=i.scaleY=1==t?1:1.2),i})(s,i,a);i||(n.onCompleteParams=[e],n.onComplete=e=>{e.style.pointerEvents="none"}),e.anim=_tpt.gsap.to(e,r,n)},[s,t.s/1e3,a,i,r]),a=(e,t,s)=>
28{SR7.E.backend||(t.addEventListener(_tpt.is_mobile?"touchend":"click",function(){this.moved||(s?SR7.F.requestSlide({id:e,slide:this.dataset.dir}):SR7.F.requestSlide({id:e,slide:"#"+this.dataset.key})),_tpt.is_mobile&&requestAnimationFrame(function(){t.classList.remove("sr7-touchhover")})}),t.addEventListener("keydown",function(t){"Enter"!==t.key&&13!==t.keyCode||(t.preventDefault(),s?SR7.F.requestSlide({id:e,slide:this.dataset.dir}):SR7.F.requestSlide({id:e,slide:"#"+this.dataset.key}))}),_tpt.is_mobile&&t.addEventListener("touchmove",function(e){(Math.abs(e.touches[0].clientX-this.startX)>5||Math.abs(e.touches[0].clientY-this.startY)>5)&&(this.moved=!0)}))},r=e=>{const t=SR7.M[e];if(void 0===SR7.M[e].states.touchListener){t.settings?.nav?.scrubber?.set&&n(e),SR7.M[e].c.module.querySelectorAll(_tpt.is_mobile?".sr7-bullet, .sr7-tab, .sr7-thumb, .sr7-rightarrow, .sr7-leftarrow":".sr7-arrows, .sr7-bullets, .sr7-bullet, .sr7-tab, .sr7-thumb, .sr7-thumbs, .sr7-tabs, .sr7-rightarrow, .sr7-leftarrow").forEach(function(e){e.addEventListener(_tpt.is_mobile?"touchstart":"mouseenter",function(e){this.classList.add("sr7-touchhover"),_tpt.is_mobile&&(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY,this.moved=!1)}),e.addEventListener("mouseleave",function(){var e=this;requestAnimationFrame(function(){e.classList.remove("sr7-touchhover")})})}),SR7.M[e].states.touchListener=!0}},n=function(e){const t=SR7.M[e];let s=SR7.M[e].c.module.querySelector(100===t.settings.nav.scrubber.sc?".sr7-scrubber-handle":".sr7-scrubber");s.addEventListener(_tpt.is_mobile?"touchstart":"mouseenter",function(){this.classList.add("sr7-touchhover"),t.c.nav?.scrubber?.hoverTween&&t.c.nav.scrubber.hoverTween.play(),t.c.nav.scrubber.progTween?.progress&&t.c.nav.scrubber.progTween.progress(1),SR7.slideShow.pause(e)}),s.addEventListener(_tpt.is_mobile?"touchend":"mouseleave",function(){var s=this;requestAnimationFrame(function(){t.c.nav?.scrubber?.srScrubber?.dragging||(s.classList.remove("sr7-touchhover"),t.c.nav?.scrubber?.hoverTween&&(t.c.nav.scrubber.hoverTween.reverse(),SR7.slideShow.resume(e)))})})},o=e=>{void 0===SR7.M[e].states.navSHListener&&(SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart touchend":"mouseenter mouseleave",function(e,t){SR7.F.navigation.showHide(e,t.type)}),SR7.M[e].states.navSHListener=!0)},l=e=>{let{within:t,key:s,scst:i,sid:a,navkey:r}=e,n=new RegExp(`\\.(${s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}[^,{]*)(?=,|{)`,"g"),o=SR7.F.navCSS(e);_tpt.injectCssJs((SR7.E.backend?SR7.migrate.navPH(o):o).replace(n,SR7.E.backend?"sr-stage-content .$1":`#${t+(r&&a&&i?'[data-current="'+a+'"]':"")} .$1`),void 0,void 0,e.id+"_navigationstyles"+(e.sid?"_"+e.sid:""))};SR7.F.navCSS=e=>{let{css:t,cst:s={},def:i={},scst:a}=e,r=""+t;const n=r.match(/##(.*?)##/g);if(n)for(let e=0;e<n.length;e++){const t=n[e].slice(2,-2);a&&_tpt.hop(a,t)?r=r.replaceAll(n[e],a[t]):_tpt.hop(s,t)&&s[t+"-def"]?r=r.replaceAll(n[e],s[t]):_tpt.hop(i,t)&&(r=r.replaceAll(n[e],i[t].data))}return r};const d=e=>{const t=SR7.M[e],s=t.settings.nav.bullets,i=t.c.nav.bullets;if(!i.elements.length)return;const a={w:i.elements[0].offsetWidth,h:i.elements[0].offsetHeight},r={w:0,h:0},n="horizontal"==SR7.gV({v:s.d,id:e,u:0});for(let e of i.elements)e.style.top=n?"0px":r.h+"px",e.style.left=n?r.w+"px":"0px",r.w=n?r.w+a.w+(s.g??0):a.w,r.h=n?a.h:r.h+a.h+(s.g??0);r.w=r.w-(n?s.g??0:0),r.h=r.h-(n?0:s.g??0),i.wrap.style.width=r.w+"px",i.wrap.style.height=r.h+"px",i.pos=g(e,i.wrap,s,r,n)},c=(e,t)=>{const s=SR7.M[e],i=s.settings.nav[t];if(!s.c.nav||!s.c.nav[t])return;const a=s.c.nav[t];let r;if(0==i.size.t){let e=Math.max(0,Math.min(1,(_tpt.winW-480)/500)),t=Math.max(i.size.nw*e,i.size.mw);r={w:t,h:t/i.size.nw*i.size.nh}}else r={w:SR7.gV({v:i.size.w,id:e,u:0,a:!0}),h:SR7.gV({v:i.size.h,id:e,u:0})};const n={w:0,h:0},o={w:0,h:0},l=2*SR7.gV({v:i.wr.mx,id:e,u:0}),d=2*SR7.gV({v:i.wr.my,id:e,u:0}),c="horizontal"==SR7.gV({v:i.d,id:e,u:0}),p=SR7.gV({v:i.wr.p,id:e,u:0}),u="o"!=i.io||c?s.dims.content.h:s.dims.module.h,h={w:s.dims.content.w-2*p,h:u-2*p};let m=Math.min(SR7.gV({v:i.m,id:e,u:0}),s.len);
28m=Math.min(m,c?Math.ceil(s.dims.content.w/(r.w+i.g)):Math.round(u/(r.h+i.g)));let f=1;for(let e of a.elements)e.style.top=c?"0px":n.h+"px",e.style.width=r.w+"px",e.style.height=r.h+"px",f<=m&&(o.w=c?o.w+r.w+(f==m?0:i.g??0):r.w,o.h=c?r.h:o.h+r.h+(f==m?0:i.g??0)),f++;if(o.w+=c?0:l,o.h+=c?d:0,n.w=c?i.wr.s?h.w:Math.min(o.w,h.w):o.w,n.h=c?o.h:i.wr.s?h.h:Math.min(o.h,h.h),o.w=c?Math.min(n.w+l,r.w*m+(m-1)*(i.g??0)+l):o.w,o.h=c?o.h:Math.min(n.h+d,r.h*m+(m-1)*(i.g??0)+d),i.wr.s){let t=SR7.gV({v:i.h,id:e,u:0}),s=SR7.gV({v:i.v,id:e,u:0});a.mask.style.left=c?"left"==t?parseInt(SR7.gV({v:i.x,id:e,u:0}))+p+"px":"right"==t?"":"50%":"",a.mask.style.right=c&&"right"==t?parseInt(SR7.gV({v:i.y,id:e,u:0}))+p+"px":"",a.mask.style.top=c||"top"==s?p+"px":"bottom"==s?"":"50%",a.mask.style.bottom=c||"bottom"!=s?"":p+"px",a.mask.style.transform="translate("+(c&&"center"==t?"-50%":"0px")+","+(c||"center"!=s?"0px":"-50%")+")"}if(a.mask.style.width=o.w+"px",a.mask.style.height=o.h+"px",a.mask.style.padding=.5*d+"px "+.5*l+"px",a.wrap.style.width=n.w+"px",a.wrap.style.height=n.h+"px",a.pos=g(e,a.wrap,i,n,c,p),o.w-=l,o.h-=d,s.settings.nav?.[t]?.set&&s.c?.nav?.[t]?.srcr){var S=s.c.nav[t].srcr.s;let e=!S.everbuild;S.everbuild=!0,S.width!==r.w&&(S.width=r.w,e=!0),S.height!==r.h&&(S.height=r.h,e=!0),S.space!==i.g&&(S.space=i.g,e=!0),S.type!==(c?"h":"v")&&(S.type=c?"h":"v",e=!0),S.wrapWidth!==o.w&&(S.wrapWidth=o.w,e=!0),S.wrapHeight!==o.h&&(S.wrapHeight=o.h,e=!0),e&&s.c.nav[t].srcr.rebuild()}else s.settings.nav?.[t]?.set&&(s.c.nav[t].srcr=new window.srCarousel({trigger:s.c.nav[t].wrap,wrap:s.c.nav[t].iwrap,slides:s.c.nav[t].elements,width:r.w,height:r.h,space:i.g,maxV:s.navLen,infinity:!1,spin:"off",spinA:0,align:"left",type:c?"h":"v",sightSnap:!0,dur:.3,ignoreOpacity:!0,wrapWidth:o.w,wrapHeight:o.h}))},p=(e,t)=>{const s=SR7.M[e],i=s.settings.nav[t],a=s.c.nav[t],r={w:SR7.gV({v:i.size.w,id:e,u:0,a:!0}),h:SR7.gV({v:i.size.h,id:e,u:0})},n={w:400,h:50},o="horizontal"==SR7.gV({v:i.d,id:e,u:0}),l=SR7.gV({v:i.wr.p,id:e,u:0}),d=SR7.gV({v:i.h,id:e,u:0}),c=SR7.gV({v:i.v,id:e,u:0});let p=s.navLen,h=r.h*i.hs/100;if(!o){const e=r.w;r.w=r.h,r.h=e,h=r.w*i.hs/100}n.w=Math.min(s.dims.module.w,o?Math.max(s.dims.module.w*i.ms/100,r.w*p+(p-1)*(i.g??0)):r.w),n.h=Math.min(s.dims.module.h,o?r.h:Math.max(s.dims.module.h*i.ms/100,r.h*p+(p-1)*(i.g??0))),a.handle.style.width=r.w+"px",a.handle.style.height=r.h+"px",100!==i.hs&&o?(a.handle.style.height=h+"px",a.handle.style.top=-(h-r.h)/2+"px",i.ho&&a.hoverTween.fromTo(a.handle,{height:r.h,top:0},{top:"bottom"===c?(r.h-h)/2:0,height:h,duration:.2},0)):100!==i.hs&&(a.handle.style.width=h+"px",a.handle.style.left=-(h-r.h)/2+"px",i.ho&&a.hoverTween.fromTo(a.handle,{left:0,width:r.w},{left:"right"===d?(r.w-h)/2:0,width:h,duration:.2},0));for(let e=0;e<s.navLen;e++){var m=a.elements[e];m.style.width=o?"100%":100*i.ts/100+"%",m.style.height=o?100*i.ts/100+"%":"100%",m.style.position="absolute",m.style.display="block",_tpt.gsap.set(m,{xPercent:o?0:"left"===d?i.to:-i.to,yPercent:o?"top"===c?i.to:-i.to:0})}let f=n.w,S=n.h;n.w=o?i.wr.s?s.dims.module.w-2*l:Math.min(n.w,s.dims.module.w-2*l):r.w,n.h=o?r.h:i.wr.s?s.dims.module.h-2*l:Math.min(n.h,s.dims.module.h-2*l),a.wrap.style.width=a.iWrap.style.width=n.w+"px",a.wrap.style.height=a.iWrap.style.height=n.h+"px",a.svg&&(a.svg.w=n.w,a.svg.h=n.h,a.svg.resize()),i.wr.s&&(f=n.w,S=n.h),n.w+=2*l,n.h+=2*l,a.pos=g(e,a.wrap,i,n,o,l),s.settings.nav?.[t]?.set&&s.c?.nav?.[t]?.srScrubber?(a.srScrubber.s.d=o,a.srScrubber.s.ww=f,a.srScrubber.s.wh=S,a.srScrubber.s.w=r.w,a.srScrubber.s.h=r.h,a.srScrubber.s.padding=l,a.srScrubber.s.space=i.g,a.srScrubber.resize()):s.settings.nav?.[t]?.set&&(s.c.nav[t].srScrubber=new u({elems:a.elements,handle:a.handle,d:o,ww:f,wh:S,w:r.w,h:r.h,padding:l,space:i.g,sk:i.sk,cor:i.cor,changeSlide:function(t){("carousel"!==s.settings.type||s.settings.carousel.justify)&&SR7.F.requestSlide({id:e,slide:"#"+a.elements[t].dataset.key})},changeProgress:function(e,t){"carousel"===s.settings.type&&!s.settings.carousel.justify&&s.c.carousel?.src&&s.c.carousel.src.rebuild({p:e,targetIndex:t})},onInteract:function(){s.c.nav.scrubber.progTween?.progress&&s.c.nav.scrubber.progTween.progress(1)},onIdle:function(){SR7.slideShow.resume(e),a.wrap.classList.remove("sr7-touchhover"),s.c.nav.scrubber?.hoverTween&&s.c.nav.scrubber.hoverTween.reverse()}}))},u=function(e){this.s=e,this.setDefaults(),this.len=e.elems.length,this.dl=e.elems.length-1,this.hl=(this.s[this.wdim]-this.s[this.dim])/this.dl,this.updateScrubber=this.update.bind(this);const t=this;this.draggable=_tpt.draggable.create(e.handle,{type:e.d?"x":"y",inertia:!0,cursor:"grab",activeCursor:"grabbing",bounds:e.d?{minX:0,maxX:e.ww-e.w}:{minY:0,maxY:e.wh-e.h},throwResistance:1e4,edgeResistance:.8,minDuration:.1,maxDuration:1.5,onPress:function(){t.dragging=!0,e.onInteract&&e.onInteract()},onDrag:this.updateScrubber,onThrowUpdate:this.updateScrubber,onClick:function(){t.dragging=!1,e.onIdle&&e.onIdle()},onThrowComplete:function(){t.dragging=!1,e.onIdle&&e.onIdle()},snap:{[e.d?"x":"y"]:function(e){return Math.round(e/t.hl)*t.hl}},zIndexBoost:!1,allowContextMenu:!0})[0],this.clampIndex=_tpt.gsap.utils.clamp(0,this.len-1),this.lerpHandler=this.lerp.bind(this),this.v=this.lv=0};u.prototype.setDefaults=function(){this.s.d?(this.tr="x",this.dim="w",this.wdim="ww"):(this.tr="y",this.dim="h",this.wdim="wh")},u.prototype.resize=function(){this.hl=(this.s[this.wdim]-this.s[this.dim])/this.dl,this.draggable.applyBounds({minX:0,maxX:this.s[this.wdim]-this.s[this.dim],minY:0,maxY:this.s[this.wdim]-this.s[this.dim]}
28),_tpt.gsap.set(this.s.handle,{[this.tr]:this.hl*this.lastIndex})},u.prototype.update=function(){var e=this.hl;const t=this;let s=this.draggable[this.tr]/e,i=-this.draggable[this.tr]%e/e,a=this.clampIndex(Math.round(this.draggable[this.tr]/e));s<=-1?i=1:s>=this.len&&(i=-1),a!==this.lastIndex&&(_tpt.gsap.to(this.s.elems,{opacity:0}),_tpt.gsap.to(this.s.elems[a],{opacity:1}),t.s.cor&&t.draggable.isPressed||(this.lastIndex=a),this.s.changeSlide&&(this.scDelay&&this.scDelay.pause&&this.scDelay.pause(),this.scDelay=_tpt.gsap.delayedCall(.2,function(){t.s.cor&&t.draggable.isPressed||t.s.changeSlide(a)}))),this.v=this.draggable[this.tr],this.tick||0===this.s.sk||(this.tick=requestAnimationFrame(this.lerpHandler)),this.s.changeProgress&&this.s.changeProgress(i,this.clampIndex(Math.floor((this.draggable[this.tr]-this.draggable[this.tr]%e)/e)))},u.prototype.lerp=function(){this.tick=cancelAnimationFrame(this.tick),this.tick||(this.tick=requestAnimationFrame(this.lerpHandler));let e=this.v-this.lv;this.lv+=.2*e,_tpt.gsap.set(this.s.elems,{[this.s.d?"skewX":"skewY"]:this.s.sk*Math.max(-1,Math.min(1,e/100)),[this.tr]:-e/2})},u.prototype.rebuild=function(e){let{p:t,targetIndex:s}=e;this.lv=-t*this.hl+this.hl*s,_tpt.gsap.set(this.s.handle,{[this.tr]:-t*this.hl+this.hl*s})},u.prototype.goTo=function(e){const t=this;this.lv=this.hl*e,_tpt.gsap.to(this.s.handle,{[this.tr]:this.hl*e,onUpdate:function(){t.updateThumbs()}})},u.prototype.updateThumbs=function(){let e=parseFloat(this.s.handle._gsap[this.tr]),t=this.clampIndex(Math.round(e/this.hl));t!==this.lastIndex&&(_tpt.gsap.to(this.s.elems,{opacity:0}),_tpt.gsap.to(this.s.elems[t],{opacity:1}),this.lastIndex=t)};const h=e=>{const t=SR7.M[e];if(null!=t.c.nav)for(let s of["left","right"])t.c.nav.arrows["pos_"+s]=g(e,t.c.nav.arrows[s],t.settings.nav.arrows[s[0]],{w:t.c.nav.arrows[s].offsetWidth,h:t.c.nav.arrows[s].offsetHeight})},g=(t,s,i,a,r,n)=>{const o=SR7.M[t];let l="o"==i.io&&o.settings.size.fullWidth?o.dims?.moduleRect?.x??0:0,d=(o.dims.content.h-o.dims.CFC.h)/2,c={left:i.wr?.s&&r?"o"===i.io?-l:0:"left"==SR7.gV({v:i.h,id:t,u:0})?e(i.a)?parseInt(o.dims.CFC.x)+"px":0-l+"px":"right"==SR7.gV({v:i.h,id:t,u:0})?"auto":"50%",right:i.wr?.s&&r?0:"right"==SR7.gV({v:i.h,id:t,u:0})?e(i.a)?o.dims.content.w-(parseInt(o.dims.CFC.x)+parseInt(o.dims.CFC.w))+"px":0-l+"px":"auto",top:i.wr?.s&&!r?0:"top"==SR7.gV({v:i.v,id:t,u:0})?(e(i.a)?d:0)+"px":"bottom"==SR7.gV({v:i.v,id:t,u:0})?"auto":"50%",bottom:i.wr?.s&&!r?0:"bottom"==SR7.gV({v:i.v,id:t,u:0})?(e(i.a)?d:0)+"px":"auto",x:i.wr?.s&&r?0:"center"==SR7.gV({v:i.h,id:t,u:0})?parseInt(SR7.gV({v:i.x,id:t,u:0}))-a.w/2-(n??0):"right"==SR7.gV({v:i.h,id:t,u:0})?0-parseInt(SR7.gV({v:i.x,id:t,u:0})):parseInt(SR7.gV({v:i.x,id:t,u:0})),y:i.wr?.s&&!r?0:"center"==SR7.gV({v:i.v,id:t,u:0})?parseInt(SR7.gV({v:i.y,id:t,u:0}))-a.h/2-(n??0):"bottom"==SR7.gV({v:i.v,id:t,u:0})?0-parseInt(SR7.gV({v:i.y,id:t,u:0})):parseInt(SR7.gV({v:i.y,id:t,u:0}))};return _tpt.gsap.set(s,c),c},m=e=>{e=e.replaceAll("{{title}}",'<sr7-navdc data-type="title"></sr7-navdc>').replaceAll("{{description}}",'<sr7-navdc data-type="description"></sr7-navdc>');for(let t=0;t<10;t++)e=e.replaceAll("{{params"+t+"}}",'<sr7-navdc data-type="params" data-index="'+t+'" ></sr7-navdc>');return e},f=(e,t)=>{e=e.replaceAll("{{title}}",t.title).replaceAll("{{description}}",t.description);let s,i=new DOMParser;for(let a=1;a<=10;a++)s=i.parseFromString(t?.params?.[a-1]?.v??"","text/html"),e=e.replaceAll("{{param"+a+"}}",String(s.body.textContent||"").substr(0,parseInt(t.params?.[a-1]?.l??500)));return e},S=(e,t)=>{for(let s of e)s.textContent=void 0!==s.dataset.index?t.params?.[s.dataset.index]?.v??"":t?.[s.dataset.type]??""},y=(e,t,s,i,a,r)=>{let n=SR7.F.getNavBG(e,t.id,t?.thumb);if(n?.image?.src){if(SR7.M[e]?.imgList)try{for(let t in SR7.M[e].imgList){if(!_tpt.hop(SR7.M[e].imgList,t))continue;const s=SR7.M[e].imgList[t];_tpt.compareURL(s.old,n.image.src)&&(n.image.src=_tpt.pickSrc(s))}}catch(e){console.log("Error optimizing thumbnail",e)}_tpt.registerImage(n.image.src,0,function(e){if("error"==e.state)return console.log("Fall back to Slide Image instead of Thumbnail"),v(s,i,n.slidebg,a,r);v(s,i,n,a,r)},"load_nav_thumbnail_"+Math.round(1e4*Math.random()),void 0,"youtube"!==(SR7.M[e].settings?.source?.type??""))}else v(s,i,n,a,r)},v=(e,t,s,i="",a)=>{if(""===i)void 0!==e&&SR7.F.drawBG(e,s,void 0,"bg"),void 0!==t&&SR7.F.drawBG(t,s,void 0,"bg");else{if("simple"===i||"fade"===i)return void _tpt.gsap.fromTo(e,.4,{opacity:0}
28,{opacity:1,onStart:function(){SR7.F.drawBG(e,s,void 0,"bg")},onComplete:function(){SR7.F.drawBG(t,s,void 0,"bg")}});if("hslide"===i){let i=e.parentNode.style.overflow;e.parentNode.style.overflow="hidden",_tpt.gsap.fromTo(t,.4,{opacity:1,x:"0%"},{opacity:1,x:"left"==a?"100%":"-100%"}),_tpt.gsap.fromTo(e,.4,{opacity:1,x:"left"==a?"-100%":"100%"},{opacity:1,x:"0%",onStart:function(){t.style.opacity=1,SR7.F.drawBG(e,s,void 0,"bg")},onComplete:function(){t.style.opacity=0,SR7.F.drawBG(t,s,void 0,"bg"),e.parentNode.style.overflow=i}})}}};_tpt.R??={},_tpt.R.navigation=_tpt.extend?_tpt.extend(_tpt.R.navigation,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},void 0!==SR7.F.prepareSlides)return;const e=e=>"slide"===e||"grid"===e,t=(e,t,s,i)=>{const a=`${t}STR${s+1}`;e.slides[a]=_tpt.extend({},SR7.M[i].slides[t]),e.slides[a].slide.order=s+1,e.slides[a].slide.id=a},s=async(e,s,i)=>{if(null==s?.sourceSlideId||null==s?.sourceModuleId)return!1;let a,r=SR7.E?.v6v7ids?.n?.[s?.sourceSlideId];for(let e in SR7.JSON)if(!a&&String(SR7.JSON[e]?.id)===String(s?.sourceModuleId))if(SR7.JSON[e]?.slides?.[s?.sourceSlideId])a=e;else for(let t in SR7.JSON[e]?.slides)String(SR7.JSON[e]?.slides[t]?.slide?.id)===String(s?.sourceSlideId)||String(SR7.JSON[e]?.slides[t]?.id)===String(s?.sourceSlideId)?a=e:String(SR7.JSON[e]?.slides[t]?.slide?.id)!==String(r)&&String(SR7.JSON[e]?.slides[t]?.id)!==String(r)||(a=e,s.sourceSlideId=r);return void 0!==a&&void 0===SR7.M[a]&&(SR7.M[a]={},SR7.M[a].c={},await SR7.F.prepareModule({id:s?.sourceModuleId,result:SR7.JSON[a],onlyPrepare:!0})),void 0===a?(a=s?.sourceModuleId,await new Promise(n=>{_tpt.restAPI({action:"slider.get.full_object",version:s?.sourceModuleEngine??7,id:a,callBack:async o=>{try{o="object"!=typeof o?JSON.parse(o):o}catch{o=_tpt.fixResponse(o)}!1===o.success?n(!1):(SR7.F.regAddonResources(o.addOns??{}),SR7.JSON??={},SR7.JSON[a]=o,SR7.M[a]={},SR7.M[a].c={},await SR7.F.prepareModule({id:a,result:o,onlyPrepare:!0}),void 0===SR7.M[a].slides[s?.sourceSlideId]&&(null==r&&(r=o?.v6v7ids?.n?.[s?.sourceSlideId]),void 0!==r&&(s.sourceSlideId=r)),t(e,s?.sourceSlideId,i,a),n(!0))}})})):(t(e,s?.sourceSlideId,i,a),!0)},i=e=>{const i=SR7.M[e];return(e=>{const t=SR7.M[e];return new Promise(s=>{if(void 0!==t.stream&&Object.keys(t.stream).length>0)s();else{let i="wp-gallery"===t.settings.source.type?t.settings.source.sourceids:t.settings?.dbid??"";i=""==i?"SR7_"+(t.c?.module?.dataset?.id??e.replace("SR7_","").split("_")[0]):i,_tpt.restAPI({action:"slider.get.stream",id:i,query:t.settings.embed?.query,callBack:e=>{if("object"!=typeof e)try{e=JSON.parse(e)}catch{e=_tpt.fixResponse(e)}0==e.success?console.log("Feed could not be Loaded"):(delete e.success,t.stream=e.data),s()}})}})})(e).then(async()=>{const a=Object.entries(i.slides).filter(([e,{slide:t}])=>_tpt.hop(i.slides,e)&&!t.global);if(i.slideTMP=a.map(([e,{slide:t}])=>({key:e,order:t.order-1})),null==i.stream||0==Object.keys(i.stream).length){let t=i.settings.source.type.charAt(0).toUpperCase()+i.settings.source.type.slice(1);return void SR7.F.errorSlide({id:e,subtitle:t+" reports: Please check the settings"})}const r=Object.keys(i.stream).length;if(0==r)return;const{length:n}=i.slideTMP;let o=0;SR7.JSON??={};for(let a=0;a<r;a++){await s(i,i.stream[a],a)||t(i,i.slideTMP[o++%n].key,a,e)}for(let t of i.slideTMP){i.c.slides[t.key]&&i.c.slides[t.key].parentNode.removeChild(i.c.slides[t.key]);let s=document.getElementById(e+"-"+t.key);s&&s.parentNode.removeChild(s),delete i.slides[t.key]}i.fromStream=!0})};SR7.F.errorSlide=({id:e,title:t="There is nothing to show here!",subtitle:s="Instagram reports: Please check the settings",icon:i='<i class="fa-warning"></i>',bg:a="#ffffff"})=>{const r=SR7.M[e];r.migrate=void 0,r.settings.type="hero",r.settings.nav=void 0,r.slides={error:{slide:{id:"error",version:"7.0.0",order:1},layers:{1:{id:1,content:{text:s},pos:{y:["21px","21px","17px","12px","7px"],h:["center"],v:["middle"],pos:"absolute"},tl:{in:{content:{all:[{pE:"d",sX:.9,sY:.9,o:0},{t:370,d:850,f:850,pE:"d",sX:1,sY:1,o:1}]}},out:{content:{all:[{t:0,d:300,f:300,pE:"n",o:0}]}}},tA:["center"],color:["#000000"],font:{family:"'Arial, Helvetica, sans-serif'",size:["#a",20,16,12,7],weight:["200","200","200","200","200"],ls:[0,0,0,0,0]},lh:["#a",20,16,12,7],type:"text"},2:{id:2,content:{text:t},pos:{y:["-20px","-20px","-16px","-12px","-7px"],h:["center"],v:["middle"],pos:"absolute"},tl:{in:{content:{all:[{pE:"d",sX:.9,sY:.9,o:0},{t:200,d:1e3,f:1e3,pE:"d",sX:1,sY:1,o:1}]}},out:{content:{all:[{t:0,d:300,f:300,pE:"n",o:0}]}}},tA:["center"],color:["#000000"],font:{family:"'Arial, Helvetica, sans-serif'",size:["30px","30px","24px","18px","11px"],weight:["200","200","200","200","200"],ls:[0,0,0,0,0]},lh:["30px","30px","24px","18px","11px"],type:"text"},3:{id:3,content:{text:i},pos:{y:["-70px","-70px","-57px","-43px","-26px"],h:["center"],v:["middle"],pos:"absolute"},tl:{in:{content:{all:[{pE:"d",sX:.9,sY:.9,o:0},{t:0,d:1040,f:1040,pE:"d",sX:1,sY:1,o:1}]}},out:{content:{all:[{t:0,d:300,f:300,pE:"n",o:0}]}}},tA:["center"],color:["#000000"],font:{family:"'Arial, Helvetica, sans-serif'",size:["50px","50px","41px","31px","19px"],weight:[400,400,400,400,400],ls:[0,0,0,0,0]},lh:["50px","50px","41px","31px","19px"],type:"text"},4:{id:4,subtype:"slidebg",size:{cMode:"cover"},bg:{color:a},tl:{in:{bg:{ms:1e3,rnd:!1,temp:{t:"*opacity* Fade In",p:"fade",m:"basic",g:"fade"},in:{o:0},out:{a:!1}}}},type:"shape"}}}},r.slides.error=_tpt.extend(r.slides.error,SR7.D.slideObj(e,r.slides.error.slide,1)),r.slides.error.layers=_tpt.extend(r.slides.error.layers,SR7.D.layerObjects({id:e,slide:r.slides.error,sid:"error",msource:"gallery"}))};const a=(e,t)=>{const s=Number(e.slides[t]?.slide?.order);return isNaN(s)?Number.MAX_SAFE_INTEGER:s};SR7.F.prepareSlide=(e,t,s,i)=>{const a=SR7.M[e];a.zones[t]??={};let n=a.slides[t].slide?.attr?.id??"";if(a.slideIds??=[],""!=n&&(a.slideIds.includes(n)?(a.slides[t].slide.attr.id+="_DBL_"+Math.round(1e3*Math.random()),n=a.slides[t].slide.attr.id):a.slideIds.push(n)),n=""==n?e+"-"+t:n,a.c.slides[t]=document.getElementById(n),a.fromStream&&!a.slides[t].slide.global){a.slides[t].slide.title=SR7.F.getFeed(a,a.slides[t].slide.order,"title");const s=SR7.F.getFeed(a,a.slides[t].slide.order,"thumb",void 0,void 0,a.slides[t].slide.thumb?.default?.image?.src);s&&(a.slides[t].slide.thumb.src=s);for(let s=0;s<=10;s++)void 0!==(a.slides[t]?.slide?.params?.[s]??void 0)&&(a.slides[t].slide.params[s].v=SR7.F.updateDynamicMetas(e,a.slides[t].slide.order,a.slides[t].slide.params[s].v).trim().replaceAll("<br>","").replace(/ +/g," "))}for(let s=0;s<(a.slides[t].slide?.actions?.length??0);s++){const i=a.slides[t]?.slide?.actions?.[s];i?.link?.includes?.("{{")&&(a.slides[t].slide.actions[s]=_tpt.extend({},i),a.slides[t].slide.actions[s].link=SR7.F.updateDynamicMetas(e,a.slides[t].slide.order,i.link,{id:e,skey:t}))}null==a.c.slides[t]&&(s??=_tpt.collector(),a.c.slides[t]=s.add({tag:"sr7-slide",id:e+"-"+t,class:a.slides[t].slide.global?"sr7-staticslide":"",datas:{key:t}})),!a.slides[t].slide.global&&a.settings.acc?.use&&("unset"!==String(a.slides[t].slide.acc.label).toLowerCase()&&""!==String(a.slides[t].slide.acc.label).toLowerCase()&&a.c.slides[t].setAttribute("aria-label","auto"==String(a.slides[t].slide.acc.label).toLowerCase()?""==a.slides[t].slide.title?"Slide "+a.slides[t].slide.order:a.slides[t].slide.title:a.slides[t].slide.acc.label),a.c.slides[t].setAttribute("aria-hidden","false"==String(a.slides[t].slide.acc.hidden)?"false":"true"),"unset"!==String(a.slides[t].slide.acc.role).toLowerCase()&&(a.c.slides[t].setAttribute("aria-roledescription",a.slides[t].slide.acc.roledep??"slide"),a.c.slides[t].setAttribute("role",a.slides[t].slide.acc.role??"presentation")));for(let s of SR7.F.addonOrderForSlide?.(e,a.slides[t].slide)??SR7.F.addonOrder(a.slides[t].slide.addOns))SR7.A?.[s]?.prepareSlide&&SR7.A[s].prepareSlide(e,t);return a.slides[t].slide.global?(i+=(""==i?"":",")+t,a.c.slides[t].classList.add("sr7-staticslide"),a.c.slides[t].classList.add("back"==a.slides[t].slide.pos?"sr7-staticslide-low":"sr7-staticslide-high"),a.c.slides[t].style.pointerEvents="none",(a.staticDiffLayers||SR7.E.backend)&&
28(s??=_tpt.collector(),a.c.slides[t+"_2"]=s.add({tag:"sr7-slide",id:e+"-"+t+"_2",class:"sr7-staticslide "+("back"==a.slides[t].slide.pos?"sr7-staticslide-high":"sr7-staticslide-low"),datas:{key:t+"_2"}}),i+=(""==i?"":",")+t+"_2",a.slides[t+"_2"]={slide:{global:!0},layers:{}})):a.slideOrder.push(t),a.settings.mod.d3&&_tpt.gsap.set(a.c.slides[t],{perspective:1600,transformStyle:"preserve-3d"}),SR7.F.isCarousel(e)&&"v"===a.settings.carousel.type&&(a.c.slides[t].style.overflow="hidden"),r(a.slides[t].slide.actions),{missingSlides:s,staticSlides:i}},SR7.F.prepareSlides=async function(e){const t=SR7.M[e];t.slides??={},t.c.slides??={},t.zones??={};let s,r,n="";"gallery"!==t.settings.source.type&&""!==t.settings.source.type&&await i(e);const o=t.settings.embed?.order;if(o?.length){const e={};o.forEach((t,s)=>{e[t]=s+1});for(const s in t.slides){if(!_tpt.hop(t.slides,s)||t.slides[s].slide?.global)continue;const i=e[s]??e[t.slides[s].slide?.attr?.deepLink];void 0===i?delete t.slides[s]:t.slides[s].slide.order=i}}if("hero"===t.settings.type){t.slideOrder=[];let i=999999,a="";for(r in t.slides)_tpt.hop(t.slides,r)&&(void 0!==t.slides[r].slide.order&&i>t.slides[r].slide.order&&(i=t.slides[r].slide.order,a=r),t.slides[r].slide.global?({missingSlides:s,staticSlides:n}=SR7.F.prepareSlide(e,r,s,n)):""==a&&(a=r));({missingSlides:s,staticSlides:n}=SR7.F.prepareSlide(e,a,s,n))}else for(r in t.slideOrder=[],t.slides)_tpt.hop(t.slides,r)&&({missingSlides:s,staticSlides:n}=SR7.F.prepareSlide(e,r,s,n));s&&(t.c.adjuster??=t.c.module.getElementsByTagName("sr7-adjuster")[0],t.c.content??=t.c.module.getElementsByTagName("sr7-content")[0],t.c.carousel??=t.c.module.getElementsByTagName("sr7-carousel")[0],s.append(SR7.F.isCarousel(e)?t.c.carousel:t.c.content)),t.slideOrder.sort((e,s)=>a(t,e)-a(t,s)),t.slideOrder=t.slideOrder.filter(Boolean);const l=SR7.F.isCarousel(e)?t.c.carousel??=t.c.module.getElementsByTagName("sr7-carousel")[0]:t.c.content??=t.c.module.getElementsByTagName("sr7-content")[0];if(l){const e=l.querySelector(":scope > sr7-slide.sr7-staticslide");for(const s of t.slideOrder){const i=t.c.slides[s];i&&i.parentElement!==l&&t.c.module.contains(i)&&l.insertBefore(i,e)}}if(!SR7.E.backend&&_tpt.is_mobile){const e=t.slideOrder.filter(e=>!t.slides[e]?.slide?.slideshow?.hom);e.length&&(t.slideOrder=e)}if(t.initialSlideOrder=t.slideOrder.slice(),t.slideOrder=t.settings.slideshow.shuffle?_tpt.gsap.utils.shuffle(t.slideOrder):t.slideOrder,t.staticSlides=n.split(","),SR7.F.isCarousel(e))for(let e in t.staticSlides)_tpt.hop(t.staticSlides,e)&&t.staticSlides[e]&&t.slides[t.staticSlides[e]].slide.respVP&&t.c.content.appendChild(t.c.slides[t.staticSlides[e]]);t.prev??={},t.current??={},t.next??={};for(let e of["index","slide","id"])t.current[e]=t.prev[e]=t.next[e]=-1;for(var d in t.navSlideOrder=[],t.slideOrder)t.slides[t.slideOrder[d]]?.slide?.slideshow?.hfn||t.n
28avSlideOrder.push(t.slideOrder[d]);t.len=t.slideOrder.length,t.navLen=t.navSlideOrder.length};const r=e=>{if(null!=e)for(let t in e)if(_tpt.hop(e,t)&&"open_modal"==e[t].a){let s=e[t].target;if(SR7.F?.modal?.prepared?.[s])continue;SR7.F.modal.prepared??={},SR7.F.modal.prepared[s]=!0;let i=SR7.F.module.getIdByAlias(s);if(void 0!==i&&void 0!==SR7.M[i].c.module){let e=_tpt.strSetToObj(SR7.M?.[i]?.c?.module?.dataset?.modal??"");SR7.F.modal.register({id:i,alias:s,speed:parseInt(e.sp??1e3)/1e3,bg:e.bg??"transparent",pS:e.pS,v:e.v??"middle",h:e.h??"center"})}else _tpt.restAPI({action:"get_modal_settings",version:7,id:i,alias:s,forcealias:null==i,callBack:e=>{if("object"!=typeof e)try{e=JSON.parse(e)}catch{e=_tpt.fixResponse(e)}0==e.success?console.log(s+" Could not be Loaded from DB"):(e.sp=""==e.sp?"1000":e.sp,e.v6v7ids&&(SR7.E.v6v7ids=_tpt.extend(SR7.E.v6v7ids,e.v6v7ids)),e.trans&&(SR7.E.transtable=_tpt.extend(SR7.E.transtable,e.trans)),e.navs&&(SR7.NAV=_tpt.extend(SR7.NAV,e.navs)),SR7.F.modal.register({id:e.id,alias:s,speed:parseInt(e.sp??1e3)/1e3,bg:e.bg??"transpaent",pS:e.pS,v:e.v??"middle",h:e.h??"center"}))}})}};SR7.F.getSlideARatios=e=>{const t=SR7.M[e];if(void 0===t.slideRatios)for(let e in t.c.slides)if(_tpt.hop(t.slides,e))for(let s in t.slides[e].layers)t.slideRatios??={},_tpt.hop(t.slides[e].layers,s)&&"slidebg"===t.slides[e].layers[s].subtype&&(t.slideRatios[e]=""!=(t.slides[e].layers[s].bg?.image?.src??"")&&_tpt.getRatio((t.slides[e].layers[s].bg?.image?.ratio??void 0)||(t.slides[e].layers[s].bg?.video?.ratio??void 0)||1))};document.addEventListener("sr.slide.changeRequest",async function(e){const t=SR7.M[e.id];if(null==t||null==t||0==t.states.inViewPort){void 0!==t.c.module.observParams&&(t.c.module.observParams.callBack=function(t){_tpt.event.trigger("dom","sr.slide.changeRequest",{id:t.id,inlayers:e.inlayers,outlayers:e.outlayers})},t.c.module.observParams.runonce=!0,t.c.module.observParams.obj=t);let s=t.settings?.vPort??"100px";return s=Array.isArray(s)?s[0]:s,void _tpt.observeModule(t.c.module,s)}SR7.F.triggerSlideEvent(e.id,"beforeChange",["onbeforeswap"]),await SR7.F.drawSlide({id:e.id,slideid:t.next.id,type:"process",global:!0,render:!0,callback:e.callback,inlayers:e.inlayers,outlayers:e.outlayers})}),SR7.F.lcpStillDone=e=>{const t=SR7.M[e];t&&!1!==t.lcpStill&&(t.lcpStill=!1,t.c?.module&&(t.c.module.style.minHeight="0px"))},SR7.F.closeSlide=async e=>{const t=SR7.M[e];-1!=t.current.id&&(await SR7.F.animateLayers({id:e,skey:t.current.id,scene:"out"}),t.current={id:-1,slide:-1,index:-1})},SR7.F.checkSlideLayers=(e,t)=>n(e,t);const n=async(e,t)=>new Promise(s=>{Object.keys(SR7.M[e].slides[t]?.layers).length>0||SR7.M[e].slides[t]?.slide?.global||0==Object.keys(SR7.M[e].slides[t]?.slide).length?s():_tpt.restAPI({action:"slider.get.full_object",version:7,id:SR7.M[e].c.module.dataset.id??e,slideid:t,callBack:async t=>{if("object"!=typeof t)try{t=JSON.parse(t)}catch{t=_tpt.fixResponse(t)}if(t.success){for(let s in t.slides){let i=t.slides[s].slide.id;Object.keys(SR7.M[e].slides[i]?.layers).length>0||(SR7.M[e].slides[i].layers=_tpt.extend(SR7.M[e].slides[i].layers,SR7.D.layerObjects({id:e,slide:t.slides[s],sid:i,msource:SR7.M[e].settings.source?.type??"gallery"})))}await _tpt.checkResources(SR7.F.getRequiredResources(e)),s()}}})});let o;SR7.F.preLoadSiblings=(e,t)=>{let s=SR7.M[e],i=s.slideOrder[t];i&&("preparing"==s.prepareMap[i]||s.prepareMap[i]||(s.prepareMap[i]="preparing",n(e,i).then(async()=>{await SR7.F.prepareLayers(e,i,!0).then(()=>{s.prepareMap[i]=!0,SR7.D.registerModuleFonts(e),_tpt.loadFonts()})})))},SR7.F.drawSlide=async e=>{await n(e.id,e.slideid).then(async()=>{var t;0==SR7.M[e.id].c.content.offsetWidth&&await(t=SR7.M[e.id].c.content,new Promise(e=>{!function s(){t.offsetWidth>0?requestAnimationFrame(()=>e()):requestAnimationFrame(s)}()})),await SR7.F.drawSlideProc(e)})},SR7.F.drawSlideProc=async e=>{if(SR7.D?.transitions?._enginePromise&&await SR7.D.transitions._enginePromise,!window.THREE&&!SR7.E.backend&&SR7.D?.transitions){const t=SR7.M[e.id],s=e=>{if(e)for(const t in e){const s=e[t]?.tl?.in?.bg?.all?.[1];if(s?.d3?.f&&"none"!==s.d3.f)return!0}return!1};if(!SR7.D.transitions._threePromise&&t&&Object.values(t.slides||{}).some(e=>s(e?.layers)))try{SR7.D.transitions._threePromise=_tpt.checkResources(["THREE","WEBGL","EFFECTS"]).catch(()=>{})}catch(e){}SR7.D.transitions._threePromise&&s(t?.slides?.[e.slideid]?.layers
28)&&await SR7.D.transitions._threePromise}let{id:t,slideid:s,type:i,global:a,render:r,callback:n,inlayers:o,outlayers:l,keepSlideVisible:d}=e;const c=SR7.M[t];if(null!=SR7.M[t].slides[s]){if(SR7.preLoader.state(t)&&SR7.preLoader.state(t,c.c.slides[s])||SR7.preLoader.show(t,c.c.slides[s]),c.prepareMap??={},"preparing"==c.prepareMap[s])return setTimeout(async function(){await SR7.F.drawSlideProc(e)},19);if(null==c.prepareMap[s]&&(c.prepareMap[s]="preparing"),await SR7.F.prepareLayers(t,s),c.fpsChecked||(_tpt.measureAverageFrameRate(4e3,t).then(e=>{c.averageFPS=e.averageFPS,c.lowFrameRateCount=e.lowFrameRateCount,c.averageFPS<30&&_tpt.event.trigger("dom","sr7.lowfps",{id:t,fps:e.averageFPS})}),c.fpsChecked=!0),c.prepareMap[s]=!0,SR7.preLoader.hide(t),SR7.preLoader.hide(t,c.c.slides[s]),"process"===i){let e=c.navLen-1;const i=c.reqDir;if(delete c.reqDir,c.lastChangeDir=i??(void 0!==c.current.index&&-1!==c.current.index?c.current.index<c.next.index&&c.next.index!==e||c.current.index==e&&0==c.next.index?1:c.current.index>c.next.index||0==c.current.index&&c.next.index==e?-1:1:1),!0!==d&&-1!==c.current.id&&c.current.id!==c.next.id&&await SR7.F.animateLayers({id:t,skey:c.current.id,scene:"out",layers:l}),!0!==d){for(let e of["index","slide","id"])c.prev[e]=c.current[e],c.current[e]=c.next[e],c.next[e]=-1;if(!SR7.E.backend&&!SR7.F.isCarousel(t))for(const e in c.slides){if(String(e)===String(c.current.id)||String(e)===String(c.prev.id)||c.slides[e]?.slide?.global)continue;const t=c.c.slides?.[e];if(!t||"none"===t.style.display)continue;t.style.display="none",t.style.pointerEvents="none";const s=c.c.layers?.[c.c.slideBGs?.[e]?.lid]?.media;if("html5"===s?.player?.options?.type)try{s.pause()}catch(e){}}c.settings.acc?.use&&c.slides[c.current.id]?.slide?.acc?.label&&"auto"==String(c.slides[c.current.id]?.slide?.acc?.hidden).toLowerCase()&&(c.c.slides[c.current.id]?.setAttribute("aria-hidden","false"),c.c.slides[c.prev.id]?.contains(document.activeElement)&&document.activeElement.blur(),c.c.slides[c.prev.id]?.setAttribute("aria-hidden","true")),c.settings.acc?.live&&"unset"!==String(c.slides[c.current.id]?.slide?.acc?.live??"unset").toLowerCase()&&_tpt.acc.announcer.update({customText:c.slides[c.current.id]?.slide?.acc?.live??void 0,moduleName:c.settings.alias,slideIndex:c.current.index,totalSlides:c.navLen,slideTitle:c.slides[c.current.id]?.slide?.title??"Slide "+(c.current.index+1)})}for(let e of c.slides[c.current.id].slide.actions)"toggleScenes"==e.a&&(e.toggled=!1);for(let e in c.slides[c.current.id].slide.actions){if(!_tpt.hop(c.slides[c.current.id].slide.actions,e))continue;let t=c.slides[c.current.id].slide.actions[e];"playScene"!==t.a&&"toggleScene"!==t.a||(t.state="idle")}c.navLen>1&&c.slides[c.prev.id]?.slide.slideshow.hal&&((e,t)=>{const s=SR7.M[e];if(s.hideAfterLoop??={},s.hideAfterLoop[t]??=0,s.hideAfterLoop[t]++,s.hideAfterLoop[t]>=parseInt(s.slides[t].slide.slideshow.hal)){void 0!==SR7.F.navigation&&SR7.F.navigation.remove(e,t);let i=s.navSlideOrder.findIndex(e=>e==t);-1!==i&&s.navSlideOrder.splice(i,1),i=s.slideOrder.findIndex(e=>e==t),-1!==i&&s.slideOrder.splice(i,1),s.current.index=s.navSlideOrder.findIndex(e=>e==s.current.id)}})(t,c.prev.id),!0!==d&&SR7.F.navigation&&SR7.F.navigation.select(t,c.current.id),SR7.F.isStickyTop(c)||c.slides[s].slide.global||(c.c.slides[s].style.pointerEvents=c.settings.mod.d3?"none":"auto")}if(c.c.slides[s].style.visibility="visible",c.c.slides[s].style.display="block",_tpt.showShadow(t),SR7.F.sbt?.storyMode?.(t)&&SR7.F.sbt.story.paint(t,SR7.M[t].sbt?.__focus??0),a)for(let e in c.staticSlides)_tpt.hop(c.staticSlides,e)&&""!=c.staticSlides[e]&&await SR7.F.prepareLayers(t,c.staticSlides[e]).then(async()=>{c.c.slides[c.staticSlides[e]].style.display="block",c.c.slides[c.staticSlides[e]].style.visibility="visible",await SR7.F.drawRawLayers(t,c.staticSlides[e],"prepare"),await SR7.F.animateLayers({id:t,skey:c.staticSlides[e],scene:"out"}),await SR7.F.animateLayers({id:t,skey:c.staticSlides[e],scene:"in"})});if(!0!==d&&SR7.F.modify.handleListeners(t),SR7.F.updateBasicMetas(t),SR7.F.drawRawLayers(t,s,"prepare"),r&&"process"!==i&&SR7.F.isCarousel(t)&&String(s)===String(c.current.id)&&
28(r=!1),r&&(c.firstRendering??={},c.firstRendering[s]??=!0,SR7.F.animateLayers({id:t,skey:s,layers:o}),!1!==c.lcpStill&&requestAnimationFrame(()=>requestAnimationFrame(()=>SR7.F.lcpStillDone(t)))),SR7.F.isCarousel(t)){let i=c.c.layers?.[c.c.slideBGs[c.current.id]?.lid],a=c.c.layers?.[c.c.slideBGs[c.prev.id]?.lid];if(e.skipPan||(i?.tl?.in?.pan&&SR7.F.pan.refresh(t,c.current.id),SR7.F.pan.returnToOrigin(t,c.prev.id)),a?.media){let e=a.media.player.options;"1sttime"==e.autoPlay&&(e.autoPlay=!1),"no1sttime"==e.autoPlay&&(e.autoPlay=!0),a.media.pause(),e.rewind&&a.media.rewind()}for(let e in c.videosPlaying)_tpt.hop(c.videosPlaying,e)&&(c.videosPlaying[e].skey===c.current.id||c.videoDontInterrupt?.[e]||!1===c.videosPlaying[e].options.pauseOnSwap||c.videosPlaying[e].pause());if(s==c.current.id)for(let e in c.videoPlayInFocus){if(!_tpt.hop(c.videoPlayInFocus,e))continue;const t=c.videoPlayInFocus[e];t.skey==c.current.id&&"false"!==String(t.options.autoPlay)&&"no1sttime"!==t.options.autoPlay&&t.play(),"no1sttime"!==t.options.autoPlay&&"1sttime"!==t.options.autoPlay||(t.carouselFirstFocus?t.options.autoPlay="no1sttime"===t.options.autoPlay:t.carouselFirstFocus=!0)}i?.media&&i.media.play(),SR7.F.modify?.processAll&&SR7.F.modify.processAll(t,"scroll")}if(requestAnimationFrame(function(){!SR7.F.isCarousel(t)&&(c.zones[s]?.all||!c.zones[s]?.all&&c.dims.lastZoneDefined)&&(((c.zones[s]?.all??0
28)<(c.dims.lastZoneHeight??0)||(c.zones[s]?.all??0)>(c.dims.lastHeight??0))&&SR7.F.updateModuleDims(t,!0),c.dims.lastHeight=c.dims.content.h,c.dims.lastZoneHeight=c.zones[s].all),c.dims.lastZoneDefined=void 0!==c.zones[s]?.all,"all"!==c.settings.carousel.showAllLayers&&s!=SR7.M[t].current.id||SR7.F.reposLayers(t),SR7.M[t].c.autoParents?.[s]&&requestAnimationFrame(async function(){c.firstRendering[s]=!1;for(let e of SR7.M[t].c.autoParents[s])(SR7.F.isCarousel(t)&&"all"===c.settings.carousel.showAllLayers||"individual"===c.settings.carousel.showAllLayers&&SR7.M[t].slides[s].layers[e].viOC||s==SR7.M[t].current.id)&&await SR7.F.animateLayers({id:t,skey:s,layers:[e],scene:"in",caller:"update",update:"content"})})}),"process"===i&&(c.zOrder.managed||SR7.F.swapSlidezIndex(t),"hero"!==c.settings.type&&(c.len>1||"-1"===String(c.settings.slideshow.loop))&&SR7.slideShow.start(t),requestAnimationFrame(()=>{_tpt.scrollObserver.run(c.c.module)}),void 0!==c.c.viSH&&(c.c.viSH.me??=SR7.F.module.listeners.reg(t,_tpt.is_mobile?"touchstart":"mouseenter",SR7.F.showHideLayersOnHover),c.c.viSH.ml??=SR7.F.module.listeners.reg(t,_tpt.is_mobile?"touchend":"mouseleave",SR7.F.showHideLayersOnHover),c.states.overModule||SR7.F.showHideLayersOnHover(t,"hide"))),"function"==typeof n&&n(t),c.c.module.dataset.current=c.current.id,SR7.F.isCarousel(t)||requestAnimationFrame(()=>{SR7.F.preLoadSiblings(t,c.current.index+1,!0),SR7.F.preLoadSiblings(t,c.current.index-1>=0?c.current.index-1:c.navLen-1,!0)}),!0===c.settings.browser.useURLDeeplink){const e=c.navSlideOrder.indexOf(c.current.id),t=c.slides[c.current.id].slide.attr.deepLink||(e>=0?"slide"+(e+1):""),s=t&&"#"!==t[0]?"#"+t:t;s&&window.location.hash!==s&&(c.deepLinkWritten||""!==window.location.hash?window.location.hash=s:history.replaceState(null,"",window.location.pathname+window.location.search+s),c.deepLinkWritten=!0)}}},SR7.F.swapSlidezIndex=(e,t,s)=>{const i=SR7.M[e];if("carousel"===i.settings.type)return;if(SR7.F.sbt?.storyMode?.(e))return;for(let e in i.c.slides)_tpt.hop(i.c.slides,e)&&!i.slides[e].slide.global&&e!==t&&e!==i.current.id&&e!==i.prev.id&&(i.c.slides[e].style.zIndex=1);void 0!==t&&void 0!==i.c.slides[t]?(i.c.slides[t].style.zIndex=5,void 0!==i.c.slides[i.current.id]&&(i.c.slides[i.current.id].style.zIndex=2)):(void 0!==i.c.slides[i.current.id]&&(i.c.slides[i.current.id].style.zIndex=5),void 0!==i.c.slides[i.prev.id]&&(i.c.slides[i.prev.id].style.zIndex=2));let a=i.c.layers?.[i.c.slideBGs[i.current.id]?.lid],r=i.c?.tl?.[i.current.id]?.in?.PAN,n=r?.progress?.()??0;s||!a?.tl?.in?.pan||n>0&&n<1&&!1===r?.paused?.()||SR7.F.pan.refresh(e,i.current.id)},SR7.F.requestSlide=function(e){if(SR7.E.backend||null==e)return;let{id:t,slide:s,force:i=!1,getter:a,indicator:r,at:n}=e;var o=SR7.M[t];if(!SR7.F.isCarousel(t)&&parseInt(o.settings?.nav?.nd??0)>0&&o.states.sceneInProgress)return o.states.waitingForNextCall=e,void(o.states.waitingForNextCallTimer||(o.states.waitingForNextCallTimer=setTimeout(()=>{SR7.F.slideDelayFinished(t)},parseInt(o.settings.nav.nd))));delete o.states.waitingForNextCall,SR7.perf?.reprobe?.();let l=!0;if(void 0!==s){if(!a){const e=""+s;"+"!=e[0]&&"-"!=e[0]||(o.reqDir=parseInt(e)<0?-1:1)}if(s="#"==String(s)[0]&&-1==_tpt.findIndex(o.slideOrder,s.replace("#",""))?parseInt(s.replace("#",""))>50?0:s.replace("#",""):s,"#"!==String(s)[0]){const e=(("+"==(""+s)[0]||"-"==(""+s)[0])&&SR7.F.sbt?.storyMode?.(t)?SR7.F.sbt.story.navBase(t):null)??(-1!==o.next.index?o.next.index:o.current.index);let i=o.navSlideOrder.indexOf(o.slideOrder[e]);i=-1==i?o.navSlideOrder.indexOf(o.slideOrder[o.lastNavRequested]):i,s="#"+o.navSlideOrder[_tpt.gsap.utils.wrap(0,o.navLen,"+"==(""+s)[0]||"-"==(""+s)[0]?parseInt(i)+parseInt(s):parseInt(s))]}o.required="#undefined"==s?0:_tpt.findIndex(o.slideOrder,s.replace("#","")),l=-1!==o.navSlideOrder.indexOf(o.slideOrder[o.required]),l&&(o.lastNavRequested=o.required,o.navRequired=o.navSlideOrder.indexOf(o.slideOrder[o.required]))}if(a)return o.required;if(SR7.F.sbt?.storyMode?.(t)&&-1!==o.required&&-1!==o.current.id)return SR7.F.sbt.story.scrollTo(t,o.required,n),void(o.required=-1);if(!e.skipNav&&l&&(o.c.nav?.thumbs?.srcr&&o.c.nav.thumbs.srcr.goTo(o.navRequired??o.required),o.c.nav?.tabs?.srcr&&o.c.nav.tabs.srcr.goTo(o.navRequired??o.required)),SR7.F.isCarousel(t)&&"carousel"!==r)o.c.carousel?.src&&o.c.carousel.src.goTo(o.required);else{if(-1==o.next.index&&-1!==o.required)o.next.index=o.required,o.required=-1,o.next.id=o.slideOrder[o.next.index],o.next.slide=o.c.slides[o.next.id];else if(!i)return;if(o.slideShow?.pOS){o.slideShow.pOS=!1,o.settings.slideshow.auto=!0;const e=o.slideShow;void 0!==e&&void 0!==e.c&&(o.useProgressBar=!0,_tpt.gsap.to(e.c,.5,{opacity:1}))}if(o.current.id!=o.next.id||"-1"===String(o.settings.slideshow.loop))o.slideShow?.pOS&&(o.slideShow.pOS=!1,o.settings.slideshow.auto=!0),_tpt.event.trigger("dom","sr.slide.changeRequest",e);else for(let e of["index","slide","id"])o.next[e]=-1}},SR7.F.requestSlideFocus=(e,t)=>{const s=SR7.M[e];if(null==s)return;void 0!==s.current?.id&&String(s.current.id)!==String(t)&&SR7.F.pan.returnToOrigin(e,s.current.id);let i="all"==(s.settings?.carousel?.showAllLayers??!1);SR7.F.requestSlide({id:e,slide:"#"+t,indicator:SR7.F.moduleType(e),inlayers:i?[]:SR7.F.getCarouselLayers(e,t,"infocus"),outlayers:i?[]:SR7.F.getCarouselLayers(e,s.current.id,"outfocus"),skipNav:!0,render:!i})},SR7.F.redrawBG=async(e,t,s)=>{await SR7.F.drawSlide({id:e,slideid:t,skipPan:!0,type:"draw",global:!1,inlayers:SR7.F.getCarouselLayers(e,t,"visible"),render:s,callback:function(){SR7.F.isCarousel(e)&&SR7.F.showCarouselSlide(e,t)}})},SR7.F.nborSlide=(e,t)=>{const s=SR7.M[e];return s.current.index-1==t||s.current.index==t-1||0==s.current.index&&t==s.len-1||0==t&&s.current.index==s.len-1},SR7.slideShow={backend:(e,t)=>{SR7.E.backend&&(clearTimeout(o),o=setTimeout(()=>{SR7._pbar&&SR7._pbar.c.remove(),SR7._pbar=void 0,t&&(SR7._pbar=SR7.slideShow.build(SR7.editing.module),SR7._pbar.d=SR7.slideShow.getLen(SR7.editing.module),SR7._pbar.tween.duration(SR7._pbar.d/1e3),SR7._pbar.tween.progress(.2),SR7._pbar.tween.pause(),SR7._pbar.c.classList.add("sr--backend--pbar"))},150))},build:e=>{const t=SR7.M[e],s=t.settings.pbar,i=t.slideShow={t:0,d:0};return t.useProgressBar=void 0!==s&&s.set,void 0!==t.settings.slideshow.stopAt&&t.settings.slideshow.stopAt>
28=0&&(i.stopAt=parseInt(t.settings.slideshow.stopAt)),void 0!==t.settings.slideshow.loop&&t.settings.slideshow.loop>=0&&(i.loop=parseInt(t.settings.slideshow.loop)-1,i.stopAt=i.stopAt||t.navLen),(t.settings.slideshow.auto&&t.settings.slideshow.sOH||t.settings.slideshow.pzOH)&&(i.listenEnter=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart":"mouseenter",SR7.slideShow.pauseOnHover),i.listenLeave=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchend":"mouseleave",SR7.slideShow.resumeOnLeave)),null==i.loop&&i.stopAt>=0&&"-1"!==String(t.settings.slideshow.loop)&&(i.loop=0),t.useProgressBar?(SR7.slideShow.buildPBar(e,i),i):(i.tween=_tpt.gsap.fromTo(i,9,{t:0},{t:100,ease:"none"}),i.tween.eventCallback("onComplete",e=>{t.settings.slideshow.auto&&(SR7.F.requestSlide({id:e,slide:SR7.F.getAutoSlideStep(e)}),SR7.F.triggerSlideEvent(e,"ended"))},[e]),void i.tween.eventCallback("onUpdate",function(){t?.c?.nav?.scrubber?.progTween&&!t?.c?.nav?.scrubber?.srScrubber?.dragging&&t.c.nav.scrubber.progTween.progress(this.progress()),SR7.slideShow.syncScrubTLs(e)},[e]))},buildPBar:(e,t)=>{const s=SR7.M[e],i=s.settings.pbar;return t??=s.slideShow={t:0,d:0},t.c=_tpt.collector().add({tag:"canvas",class:"sr7-pbar",id:e+"-pbar"}),t.ctx=t.c.getContext("2d"),t.parts="slide"==i.base?1:s.navLen,t.gap=parseInt("slide"==i.base?0:i.g?i.gs:0),i.s=parseInt(i.s),s.c.content.appendChild(t.c),SR7.slideShow.resize(e),"cw"==i.t||"ccw"==i.t?t.r=parseInt(i.r):(t.totalSize="horizontal"===i.t?t.w:t.h,t.partSize=(t.totalSize-(t.parts-1)*t.gap)/t.parts,t._={w:parseInt("horizontal"==i.t?t.partSize:i.s),h:parseInt("horizontal"==i.t?i.s:t.partSize),x:0,y:0,gw:"horizontal"==i.t?t.gap:i.s,gh:"horizontal"==i.t?i.s:t.gap,k:"horizontal"==i.t?"x":"y"}),t.rtl="horizontal"==i.t?"right"==i.h:"vertical"==i.t&&"bottom"==i.v,t.tween=_tpt.gsap.fromTo(t,9,{t:0},{t:100,ease:"none"}),t.tween.pause(),t.tween.eventCallback("onUpdate",function(e){SR7.slideShow["cw"==i.t||"ccw"==i.t?"drawCircle":"drawBar"](e),SR7.slideShow.syncScrubTLs(e)},[e]),s.settings?.slideshow?.auto&&t.tween.eventCallback("onComplete",e=>{SR7.F.requestSlide({id:e,slide:SR7.F.getAutoSlideStep(e)}),SR7.F.triggerSlideEvent(e,"ended")},[e]),s.settings.pbar.s=parseInt(s.settings.pbar.s),_tpt.resizeObserver.observe(e=>{SR7.slideShow.resize(e)},19,e),t},fastForward:e=>{const t=SR7.M[e],s=t.settings.pbar,i=t.slideShow;i.FF={Sindex:i.Sindex,Reverse:t.current.index<i.Sindex,extra:0!=i.tween.progress()&&t.current.index<i.Sindex,t:100*i.tween.progress()||(i.Sindex<t.current.index?0:100)},i.tweenFF=_tpt.gsap.to(i,{duration:i.tween.progress()>0?(i.FF.Reverse?i.tween.progress():1-i.tween.progress())/10:.1,ease:"none"}),i.tween&&(i.tween.progress(0),i.tween.pause()),i.tweenFF.eventCallback("onUpdate",function(e){SR7.slideShow["cw"==s.t||"ccw"==s.t?"drawCircle":"drawBar"],SR7.slideShow.syncScrubTLs(e)},[e,!0]),i.tweenFF.eventCallback("onComplete",(e,t,s)=>{t.FF.Sindex<s.current.index?t.FF.Sindex++:t.FF.Sindex>s.current.index&&t.FF.Sindex--,t.FF.Reverse&&(t.tweenFF.invalidate(),t.FF.t=100),t.FF.Sindex!==s.current.index||t.FF.extra?t.tweenFF.play(0):SR7.slideShow.play(e),t.FF.extra=!1,t.tweenFF.duration(.1)},[e,i,t])},nullTimer:e=>{const t=SR7.M[e],s=t.slideShow;void 0!==s&&(s.pOS=SR7.M[e].slides[t.current.id]?.slide?.slideshow?.stop&&t.settings.slideshow.auto),t.settings.slideshow.auto=!1,t.settings.sbt?.use||(t.useProgressBar=!1,void 0!==s&&void 0!==s.c&&_tpt.gsap.to(s.c,.5,{opacity:0}))},pauseOnHover:(e,t)=>{SR7.M[e].slideShow.sOH=!0,SR7.slideShow.panOnHover(e,"pause"),SR7.slideShow.pause(e,t)},resumeOnLeave:e=>{SR7.M[e].slideShow.sOH=!1,SR7.slideShow.panOnHover(e,"resume"),SR7.slideShow.resume(e)},panOnHover:(e,t)=>{const s=SR7.M[e];if(!s.settings.slideshow?.pzOH||s.settings.sbt?.use)return;const i=s.c?.tl?.[s.current?.id];if(null!=i)for(let e in i){if(!_tpt.hop(i,e))continue;const s=i[e]?.PAN;null!=s&&("pause"==t?s.paused()||(s.__hoverHeld=!0,s.pause()):s.__hoverHeld&&(s.__hoverHeld=!1,s.play()))}},pause:(e,t)=>{null!=SR7.M[e].slideShow&&null!=SR7.M[e].slideShow.tween&&(!0===t&&(SR7.M[e].states.forcedPause=!0),SR7.M[e].slideShow.tween.pause(),SR7.M[e].slideShow.state="paused",SR7.F.updateAllTogglePrgLayers(e),SR7.F.triggerSlideEvent(e,"pause",["onpause"]))},resume:e=>{null!=SR7.M[e].slideShow&&null!=SR7.M[e].slideShow.tween&&(delete SR7.M[e].states.forcedPause,delete SR7.M[e].slideShow.state,SR7.M[e].slideShow.tween.play(),SR7.F.updateAllTogglePrgLayers(e),SR7.F.triggerSlideEvent(e,"resume",["onresume"]))},getLen:(e,t)=>{const s=SR7.M[e];return t??=s.current?.id??-1,parseInt("default"==(s.slides[t]?.slide?.slideshow?.len??"default")?
28s.settings.default.len??9e3:s.slides[t].slide.slideshow.len??9e3)},syncScrubTLs:(e,t)=>{if(SR7.E.backend)return;const s=SR7.M[e];if(!s||!s.slideShow)return;const i=s.slideShow,a="number"==typeof t?t/100:i?.tween?i.tween.progress():0;if(s.lNavs.scrubTLs&&Array.isArray(s.lNavs.scrubTLs))for(let e=0;e<s.lNavs.scrubTLs.length;e++){const t=s.lNavs.scrubTLs[e];t&&(t.paused(!0),t.totalProgress(a,!1))}},updateDynamicNavs:e=>{if(SR7.E.backend)return;const t=SR7.M[e];if(t.lNavs){t.lNavs.scrubTLs=[];let s=[t.current.id,t.staticSlides[0],t.staticSlides[1]];for(let i of s)if(void 0!==i&&t.lNavs?.[i]?.originals){for(let s of t.lNavs[i][t.current.id].progress){let a=SR7.F.getLayer({id:e,skey:i,lkey:s});const r=a?.c?.tl?.in?.TL;r&&(r.pause(0),r.timeScale(1),r.smoothChildTiming=!1,t.settings.slideshow.auto?(r.totalProgress(0,!1),t.lNavs.scrubTLs.push(r)):r.progress(1))}t.lNavs.dimAnim??={},t.lNavs.firstSetup??={};for(let s in t.slides[i]?.layers){if(!_tpt.hop(t.slides[i].layers,s))continue;let{layer:a,c:r}=SR7.F.getLayer({id:e,skey:i,lkey:s});const n=_tpt.tf(a.fluid?.tr??void 0);if("active"==a.nF)r.target.classList[a.nSlide!==t.current?.id?"add":"remove"]("sr7-layernav-hide"),-1==r.target.className.indexOf("sr7-layernav-hide")&&(t.lNavs.dimAnim[a.pid]??={},t.lNavs.dimAnim[a.pid].activeW=parseInt(_tpt.divSize(SR7.gV({v:a.size.w,id:e,f:n,m:"round",s:"scale"}))),0!=t.lNavs.dimAnim[a.pid].activeW&&null!=t.lNavs.dimAnim[a.pid].activeW&&null!=t.lNavs.dimAnim[a.pid].activeW||(t.lNavs.dimAnim[a.pid].activeW=Math.max(t.lNavs.dimAnim[a.pid].activeW||0,r.cw)),t.lNavs.dimAnim[a.pid].active={lkey:r.lkey,skey:r.skey,id:e});else if("idle"==a.nF){let s=-1!==r.target.className.indexOf("sr7-layernav-hide");r.target.classList[a.nSlide!==t.current?.id?"remove":"add"]("sr7-layernav-hide"),-1==r.target.className.indexOf("sr7-layernav-hide")&&(t.lNavs.dimAnim[a.pid]??={},t.lNavs.dimAnim[a.pid].idleW=parseInt(_tpt.divSize(SR7.gV({v:a.size.w,id:e,f:n,m:"round",s:"scale"}))),0!=t.lNavs.dimAnim[a.pid].idleW&&null!=t.lNavs.dimAnim[a.pid].idleW&&null!=t.lNavs.dimAnim[a.pid].idleW||(t.lNavs.dimAnim[a.pid].idleW=Math.max(t.lNavs.dimAnim[a.pid].idleW||0,r.cw)),t.lNavs.firstSetup[a.pid]&&s&&(t.lNavs.dimAnim[a.pid].inactive={lkey:r.lkey,skey:r.skey,id:e}))}}for(let e in t.lNavs.dimAnim){t.lNavs.firstSetup[e]=!0;let s=t.lNavs.dimAnim[e];if(s.active&&s.idleW){let e=SR7.F.getLayer({id:s.active.id,skey:s.active.skey,lkey:s.active.lkey}).c.target;_tpt.gsap.fromTo(e,.5,{width:s.idleW,ease:"linear.none"},{width:s.activeW,ease:"linear.none"})}if(s.inactive&&s.activeW){let e=SR7.F.getLayer({id:s.inactive.id,skey:s.inactive.skey,lkey:s.inactive.lkey}).c.target;_tpt.gsap.fromTo(e,.5,{width:s.activeW,ease:"linear.none"},{width:s.idleW,ease:"linear.none"})}}}SR7.slideShow.syncScrubTLs(e)}},start:e=>{const t=SR7.M[e];1!=t.navSlideOrder?.length||0!=(t.settings.slideshow?.naios??!1)||SR7.E.backend||(t.settings.slideshow.auto=!1);const s=t.settings.slideshow.auto?t.slideShow||SR7.slideShow.build(e):void 0;if(SR7.slideShow.updateDynamicNavs(e),!t.settings.slideshow.auto||SR7.M[e].slides[t.current.id]?.slide?.slideshow?.stop||void 0!==s&&0==s.loop&&s.stopAt-1==t.current.index)return SR7.slideShow.nullTimer(e),void _tpt.event.trigger("dom","sr.module.finished",{id:e});void 0!==s&&s.loop>=0&&t.current.index==t.len-1&&s.loop--,t.useProgressBar?(SR7.slideShow.resize(e),"animate"==t.settings.pbar.rev&&("paused"==SR7.M[e].slideShow.state||1!==s.tween.progress()&&0!==s.tween.progress()||t.current.index<s.Sindex||t.current.index>s.Sindex+1)?SR7.slideShow.fastForward(e):SR7.slideShow.play(e)):SR7.slideShow.play(e)},play:(e,t=0)=>{const s=SR7.M[e],i=s.slideShow;i.Sindex=s.current.index,i.d=SR7.slideShow.getLen(e),i.tween.duration(i.d/1e3),SR7.F.updateAllTogglePrgLayers(e),"paused"==SR7.M[e].slideShow.state?(i.tween.play(0),requestAnimationFrame(function(){i.tween.pause()})):i.tween.play(t)},resize:t=>{const s=SR7.M[t];if(!s.settings.slideshow.auto&&!s.settings.sbt?.use||!s.useProgressBar)return;const i=s.settings.pbar,a=s.slideShow;a.w=parseInt("horizontal"==i.t?e(i.a)?s.dims.CFC.w:s.dims.content.w:"vertical"==i.t?parseInt(i.s):2*parseInt(i.r)),a.h=parseInt("horizontal"==i.t?parseInt(i.s):"vertical"==i.t?e(i.a)?s.dims.CFC.h:s.dims.content.h:2*parseInt(i.r)),a.c.style.width=a.w+"px",a.c.style.height=a.h+"px",a.c.width=a.w*window.devicePixelRatio,a.c.height=a.h*window.devicePixelRatio,a.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),a.resized=!0,SR7.gV({v:i.vis,id:t})?(a.c.style.visibility="visible",a.c.style.top="vertical"!==i.t?"top"==i.v?parseInt(i.y??0)+(e(i.a)?s.dims.CFC.y:0)+"px":((e(i.a)?s.dims.CFC.y+s.dims.CFC.h:s.dims.content.h)-parseInt(i.y??0)-("cw"==i.t||"ccw"==i.t?2*parseInt(i.r):parseInt(i.s)))/("bottom"==i.v?1:2)+"px":e(i.a)?s.dims.CFC.y+"px":"0px",a.c.style.left=("horizontal"!==i.t?"left"==i.h?parseInt(i.x??0)+(e(i.a)?s.dims.CFC.x:0):((e(i.a)?s.dims.CFC.x+s.dims.CFC.w:s.dims.content.w)+("right"==i.h?-1:1)*parseInt(i.x??0)-("cw"==i.t||"ccw"==i.t?2*parseInt(i.r):parseInt(i.s)))/("right"==i.h?1:2):e(i.a)?s.dims.CFC.x:0)+"px","cw"!=i.t&&"ccw"!=i.t&&(a.totalSize="horizontal"===i.t?a.w:a.h,a.partSize=(a.totalSize-(a.parts-1)*a.gap)/a.parts,null!=a._&&(a._.w=parseInt("horizontal"==i.t?a.partSize:i.s),a._.h=parseInt("horizontal"==i.t?i.s:a.partSize),SR7.slideShow["cw"==i.t||"ccw"==i.t?"drawCircle":"drawBar"](t)))):a.c.style.visibility="hidden"},drawCircle:(e,t)=>
28{const s=SR7.M[e],i=s.slideShow;if(!t&&void 0!==i.tweenFF&&i.tweenFF.isActive())return;const a=s.settings.pbar,r=t?i.FF.Sindex:i.Sindex,n=(t?i.FF.t:i.t)/100;s?.c?.nav?.scrubber?.progTween&&!s?.c?.nav?.scrubber?.srScrubber?.dragging&&s.c.nav.scrubber.progTween.progress(n);let o="slide"==a.base?360*n:360/i.parts*n;"slide"!==a.base&&(o+=360/i.parts*r),"ccw"==a.t&&(o=360-o),i.r-parseInt(a.s)<=0&&(a.s=a.r/4),i.ctx.lineCap="round",i.ctx.clearRect(0,0,2*a.r,2*a.r),i.ctx.beginPath(),i.ctx.arc(i.r,i.r,a.r-a.s,Math.PI/180*270,Math.PI/180*630),i.ctx.strokeStyle=a.bg,i.ctx.lineWidth=a.s-1,i.ctx.stroke(),i.ctx.beginPath(),i.ctx.strokeStyle=a.c,i.ctx.lineWidth=a.s,i.ctx.arc(i.r,i.r,a.r-a.s,Math.PI/180*270,Math.PI/180*(270+o),"cw"!==a.t),i.ctx.stroke()},drawBar:(e,t)=>{const s=SR7.M[e],i=s.slideShow;if(!t&&void 0!==i.tweenFF&&i.tweenFF.isActive())return;const a=s.settings.pbar,r=t?i.FF.Sindex:i.Sindex;i.ctx.clearRect(0,0,i.c.width,i.c.height);const n=(t?i.FF.t:i.t)/100,o=i.partSize*n;s?.c?.nav?.scrubber?.progTween&&!s?.c?.nav?.scrubber?.srScrubber?.dragging&&s.c.nav.scrubber.progTween.progress(n),i._.pw="horizontal"==a.t?o:a.s,i._.ph="horizontal"==a.t?a.s:o;for(let e=0;e<i.parts;e++)i._[i._.k]=i.rtl?i.totalSize-(e+1)*(i.partSize+i.gap)+i.gap:e*(i.partSize+i.gap),i.ctx.fillStyle=e<r&&1!==i.parts||e===r&&100===i.t?a.c:a.bg,i.ctx.fillRect(i._.x,i._.y,i._.w,i._.h),e!==r&&1!=i.parts||(i._[i._.k]=i.rtl?i._[i._.k]+i.partSize-o:i._[i._.k],i.ctx.fillStyle=a.c,i.ctx.fillRect(i._.x,i._.y,i._.pw,i._.ph));if(i.gap>0){i.ctx.fillStyle=a.gc;for(let e=1;e<i.parts;e++)i._[i._.k]=i.rtl?i.totalSize-e*(i.partSize+i.gap):e*i.partSize+(e-1)*i.gap,"transparent"==a.gc?i.ctx.clearRect(i._.x,i._.y,i._.gw,i._.gh):i.ctx.fillRect(i._.x,i._.y,i._.gw,i._.gh)}}},_tpt.R??={},_tpt.R.slide=_tpt.extend?_tpt.extend(_tpt.R.slide,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F=SR7.F||{},void 0!==SR7.F.initCarousel)return;SR7.F.initCarousel=function(s,i){var a=SR7.M[s];if(!SR7.F.isCarousel(s))return;a.settings.size.fullWidth&&a.c?.module&&_tpt.gsap.set(a.c.module,{overflow:"hidden"}),void 0===a.c.carousel&&(a.c.carousel={});var r=a.c.carousel;r.slides=[];for(var n=0;n<a.len;n++)r.slides.push(a.c.slides[a.slideOrder[n]]);var o=SR7.F.setCarouselSlideDims(s),l={startIndex:"#"==String(i)[0]&&-1!==_tpt.findIndex(a.slideOrder,i.replace("#",""))?_tpt.findIndex(a.slideOrder,i.replace("#","")):i,mID:s,slides:r.slides,trigger:a.c.module,wrap:a.c.carousel,width:o.width,height:o.height,syncO:!0,length:SR7.slideShow.getLen(s),slideChange:function(e){SR7.F.requestSlideFocus(s,a.slideOrder[e])},snappingTo:function(e){a.c.nav?.thumbs?.srcr&&a.c.nav.thumbs.srcr.goTo(a.c.nav.thumbs.srcr.getRealIndex(a.c.nav.thumbs.srcr.wrapIndex(e))),a.c.nav?.tabs?.srcr&&a.c.nav.tabs.srcr.goTo(a.c.nav.tabs.srcr.getRealIndex(a.c.nav.tabs.srcr.wrapIndex(e)))},slideVisible:function(e,t){var i=r.slides[e].dataset.key;a.slides[i].slide.visible=!0,t&&a.checkCarouselDone&&SR7.F.redrawBG(s,i)},slideHidden:function(e){var t=r.slides[e].dataset.key;a.slides[t].slide.visible=!1},onInteract:function(){SR7.slideShow.pause(s)},onIdle:function(){SR7.M[s]?.slideShow?.sOH||SR7.slideShow.resume(s)},exclude:["SR7-THUMBS","SR7-TABS","SR7-SCRUBBER"],callRebuild:function(e,t){!a.c.nav?.scrubber?.srScrubber?.rebuild||a.c.nav.scrubber.srScrubber.dragging||a.settings.carousel.justify||a.c.nav.scrubber.srScrubber.rebuild({p:e,targetIndex:t})}};a.settings.mod.drag&&(l.mouseDrag=!0,l.processMod=function(){for(var e in a.slideOrder)a.slides[a.slideOrder[e]].slide.visible&&SR7.F.modify.pOS(s,"mouse",void 0,a.slideOrder[e])}),("false"==String(a.settings.nav?.s?.mobC)&&_tpt.is_mobile||"false"==String(a.settings.nav?.s?.deskC)&&!_tpt.is_mobile)&&(l.ignoreDrag=!0),l=_tpt.extend(l,a.settings.carousel,{length:SR7.slideShow.getLen(s)});const d=SR7.F.runCarouselHook("extendSettings",{id:s,M:a,settings:l});d?.handled&&d.value&&(l=d.value),l=e(l),r.src=new t(l),SR7.F.rebuildCarousel(s,!1,!0),_tpt.resizeObserver.observe(e=>{SR7.F.rebuildCarousel(e)},19,s)};let e=e=>(e.minS=parseFloat(e.minS??100)/100,e.maxR=parseFloat(e.maxR??0),e.maxO=parseFloat(e.maxO)/100,e.ease=e.ease.replace(".inOut",".out").replace(".in",".out"),e.dur=Math.min(parseInt(e.dur??800),e.length)/1e3,e);function t(e){this.proxy=document.createElement("div"),this.follower=document.createElement("div"),this.slides=e.slides,this.ignoreDrag=e.ignoreDrag,this.arr=[],this.s=e,this.len=e.slides.length,this.last=this.len-1,this.lerp=.1,this.pX=this.lpX=this.pY=this.lpY=0,this.setDefaults(),this.setType(),this.lastMouseEvent;var t=this;!0!==this.ignoreDrag&&(this.draggable=_tpt.draggable.create(this.proxy,{trigger:e.trigger,type:"h"===this.type?"x":"y",inertia:!0,cursor:"grab",activeCursor:"grabbing",throwResistance:this.s.snap?8e3:500,edgeResistance:.8,dragClickables:!1,minimumMovement:12,lockAxis:!0,allowNativeTouchScrolling:!0,clickableTest:e=>{if("true"==String(e?.dataset?.clickable))return!0},onPress:function(e){t.lastMouseEvent="press";if(t.onDragDone=!1,t.s.exclude)for(var s=0;s<t.s.exclude.length;
28s++)_tpt.closestNode(e.target,t.s.exclude[s])&&(this.endDrag(),t.dragging=!1,t.s.realDragging=!1);_tpt.gsap.to(t,{lerp:.1}),t.gStartX=this.pointerX,t.gStartY=this.pointerY,t.forceScroll=!1,t.gDecisionMade=!1,t.s.onInteract&&t.s.onInteract()},onClick:function(e){t.lastMouseEvent="click";const s=SR7.F.runCarouselHook("click",{carousel:t,s:t.s,event:e,draggable:this});if(!s?.handled&&_tpt.is_mobile&&("SR7-TABS"==this.vars.trigger.tagName||"SR7-THUMBS"==this.vars.trigger.tagName))for(var i=e.target;i&&i!==document;){if("SR7-TAB"===i.tagName||"SR7-THUMB"===i.tagName){i.click();break}i=i.parentNode}},onDragStart:function(){t.lpX=t.pX=this.pointerX,t.lpY=t.pY=this.pointerY,t.direction=this.getDirection(),t.tick||(t.tick=window.requestAnimationFrame(t.lerpHandler)),t.dragging=!0,t.s.lastDirection=this.getDirection(),t.s.realDragging=!0,t.s.dragTime=(new Date).getTime(),t.beforeDragFocused=t.focused},onDragEnd:function(){t.s.realDragging=!1,t.s.dragTimeDiff=(new Date).getTime()-t.s.dragTime,t.s.directionChanged=!1},onDrag:function(e){if(_tpt.is_mobile&&"h"===t.type&&!t.gDecisionMade){var s=Math.abs(this.pointerX-(t.gStartX??this.pointerX)),i=Math.abs(this.pointerY-(t.gStartY??this.pointerY));if(s+i>8){if(i>s+10)return t.forceScroll=!0,t.gDecisionMade=!0,t.dragging=!1,t.s.realDragging=!1,this.endDrag(),void(t.s.onIdle&&t.s.onIdle());t.gDecisionMade=!0}}if(!0!==t.forceScroll){if(t.lastMouseEvent="drag",0===e.pressure)return t.draggable.endDrag();t.onDragDone=!0,t.pX=this.pointerX,t.pY=this.pointerY,t.s.dragTimeDiff=(new Date).getTime()-t.s.dragTime,t.s.lastDirection!==this.getDirection()&&(t.s.directionChanged=!0),t.s.lastDirection=this.getDirection(),SR7.F.module.listeners.fire(t.s.trigger.id,{type:"dragmove",clientX:t.pX,clientY:t.pY})}},onRelease:function(){t.lastMouseEvent="release",t.forceScroll=!1,t.gDecisionMade=!1,t.dragging=!1,t.s.realDragging=!1,!t.onDragDone&&t.s.onIdle&&t.s.onIdle()},snap:{[this.tr]:e=>{let s=t.s.trigger.id;return(!this.forceScroll||!SR7.M[s])&&this.snap.bind(this)(e)}},zIndexBoost:!1,allowContextMenu:!0})[0]),_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:"+=0"}),this.lerpHandler=this.updateSlides.bind(this),this.tick=window.requestAnimationFrame(t.lerpHandler),this.rebuild({targetIndex:e.startIndex}),delete e.startIndex}SR7.F.hideCarouselSlides=function(e){const t=SR7.M[e],s=!0===SR7.F.runCarouselHook("hideSlides",{id:e,M:t})?.handled;for(var i=0;i<t.len;i++){let e=t.slideOrder[i];_tpt.gsap.set(t.c.slides[e],{opacity:s?1:0})}},SR7.F.showCarouselSlide=function(e,t){const s=SR7.M[e];for(var i=0;i<s.len;i++){let e,a=s.c.carousel.src.arr[i],r=a.elem.dataset.key;if(r!==t)continue;let n=s.settings.carousel.bShdw;void 0!==n&&n.use&&(e=parseInt(n.h??0)+"px "+parseInt(n.h??0)+"px "+parseInt(n.blur??0)+"px "+parseInt(n.spread??0)+"px "+n.color,s.c.carousel.style.overflow="visible"),requestAnimationFrame(function(){if(e&&_tpt.gsap.set(s.c.slides[r],{boxShadow:e}),s.c.carousel?.src?.s?.carouselExt?.type){_tpt.gsap.killTweensOf(a,"syncedO carouselXFade"),a.syncedO=1,a.carouselXFade=1,a.carouselXFadeDone=!0;const e=s.c.carousel;return void(e&&!0!==e.carouselXFadeDone&&(e.carouselXFadeDone=!0,_tpt.gsap.killTweensOf(e,"opacity"),_tpt.gsap.to(e,{opacity:1,duration:.85,ease:"power2.out",overwrite:"auto"})))}_tpt.gsap.to(a,{syncedO:1,duration:1,onUpdate:function(e,t){_tpt.gsap.set(s.c.slides[e],{opacity:void 0===t.opacity?t.syncedO:Math.min(t.syncedO,t.opacity)})},onUpdateParams:[r,a]})})}},SR7.F.rebuildCarousel=function(e,t=!0,s=!0){var i=SR7.M[e];if(i?.c?.carousel?.src){var a=i.c.carousel.src.s,r=SR7.F.setCarouselSlideDims(e);a.width=r.width,a.height=r.height||i.dims.content.h,i.settings.size.fullWidth&&i.c?.module&&_tpt.gsap.set(i.c.module,{overflow:"hidden"});var n=i.dims.module.w,o=i.dims.content.h,l=i.dims.content.h;a.justify||("h"===a.type&&(n=Math.min(n,a.width*a.maxV+a.space*Math.max(a.maxV-2,0))),"v"===a.type&&(o=Math.min(o,a.height*a.maxV+a.space*Math.max(a.maxV-2,0))||o));const t=SR7.F.getCarouselHookValue("extendWrapSize",{id:e,M:i,s:a,wrapW:n,wrapH:o,contentH:l},null);t&&"object"==typeof t&&(Number.isFinite(t.wrapWidth)&&(n=t.wrapWidth),Number.isFinite(t.wrapHeight)&&(o=t.wrapHeight),Number.isFinite(t.contentHeight)&&(l=t.contentHeight)),a.wrapWidth=n,a.wrapHeight=o,t&&Number.isFinite(t.contentHeight)&&t.contentHeight>0&&(i.dims.content.h=l,i.c?.module&&_tpt.gsap.set(i.c.module,i.settings.size.fullWidth?{height:i.dims.module.h}:{height:i.dims.module.h,overflow:"hidden"}
28)),_tpt.gsap.set(i.c.carousel,{width:n,height:o,left:"center"===a.align?(i.dims.module.w-n)/2-("left"!=(i.dims.outNav?.align??"left")||i.settings.size.fullWidth?0:(i.dims.outNav?.w??0)/2):"end"===a.align?i.dims.module.w-n:0,top:"center"===a.align?(l-o)/2:"end"===a.align?l-o:0}),s&&i.c.carousel.src.rebuild()}if(t)for(var d in i.slides)i.slides[d].slide.visible&&SR7.F.redrawBG(e,d)},SR7.F.carSlideChange=function(e){var t=SR7.M[e];SR7.F.isCarousel(e)&&(void 0!==t.c.carousel&&t.c.carousel.src.goTo(t.next.index))},SR7.F.setCarouselSlideDims=e=>{var t=SR7.M[e],s=[],i=[];if(t.settings.carousel.justify)for(var a in t.slides)t.slides[a].slide.global||(s.push(t.settings.carousel.jMWidth?Math.min(t.dims.CFC[a].w,t.dims.module.w):t.dims.CFC[a].w),i.push(t.settings.carousel.jMWidth?Math.min(t.dims.CFC[a].h,t.dims.content.h):t.dims.CFC[a].h));return{width:t.settings.carousel.justify?s:"v"===t.settings.carousel.type?t.settings.carousel.stretchV?t.dims.module.w:t.dims.CFC.w:t.settings.carousel.stretch?t.dims.module.w:t.dims.CFC.w,height:t.settings.carousel.justify?i:"v"===t.settings.carousel.type?t.dims.CFC.ch:t.dims.content.h}},window.srCarousel=t,t.prototype.setDefaults=function(){var e=this.s;this.s.wrap=this.s.wrap??this.s.trigger,this.s.trigger=this.s.trigger??this.s.wrap,void 0===this.wrapWPreset&&(this.wrapWPreset=void 0!==e.wrapWidth),void 0===this.wrapHPreset&&(this.wrapHPreset=void 0!==e.wrapHeight),this.s.wrapWidth=this.wrapWPreset?e.wrapWidth:this.s.wrap.offsetWidth,this.s.wrapHeight=this.wrapHPreset?e.wrapHeight:this.s.wrap.offsetHeight,this.s.type=this.t
28ype=e.type??"h",this.s.align=this.s.sightSnap?"left":this.s.align??"left",this.s.stretch=this.s.stretch??!1,this.s.stretchV=this.s.stretchV??!1,this.s.maxV=Math.max("3d"==this.s.spin?3:1,parseInt(this.s.maxV??3)),this.s.justify=this.s.justify??!1,this.s.minS=this.s.scale?this.s.minS??1:1,this.s.vScale=this.s.vScale??!1,this.s.oScale=this.s.oScale??!1,this.s.space=parseFloat(this.s.space??0),this.s.maxR=this.s.rotation?this.s.maxR??0:0,this.s.varR=this.s.varR??!1,this.s.maxO=this.s.opacity?1==this.s.maxV&&1!==this.s.maxO?0:this.s.opacity?this.s.maxO??1:1:1,this.s.varO=this.s.varO??!1,this.s.spin=this.s.spin??"off",this.s.spinA=parseInt(this.s.spinA??0),this.s.wrapPerspective=this.s.wrapPerspective??1200,this.s.snap=this.s.snap??!0,this.s.infinity=this.s.infinity??!0,this.s.skewX=parseFloat(this.s.skewX??0),this.s.skewY=parseFloat(this.s.skewY??0),this.s.dur=this.s.dur??.8,this.s[this.dim]&&this.s.space<-this.s[this.dim]?this.space=.8*this.s.space:this.space=this.s.space,this.s.align=this.s.align&&"center"!==this.s.align?"left"===this.s.align||"top"===this.s.align||"start"===this.s.align?"start":"end":"center",!0!==this.s.justify&&this.s.maxV>this.len&&(this.s.maxV=this.len%2?this.len:this.len+1)},t.prototype.setType=function(e){void 0===e&&(e=this.type),"h"===e?(this.tr="x",this.dim="width",this.wrapDim="wrapWidth"):(this.tr="y",this.dim="height",this.wrapDim="wrapHeight")},t.prototype.rebuild=function(e={}){var t,s=e.p??0;if(this.setDefaults(),e.type&&(this.type=e.type,this.setType()),this.draggable&&void 0!==this.totalWidth&&(this.totalWidth>this.s[this.wrapDim]?this.draggable.enable():this.draggable.disable()),_tpt.is_mobile&&_tpt.is_android&&this.draggable&&this.draggable.enabled()&&this.draggable.vars.trigger&&(this.draggable.vars.trigger.style.touchAction="y"===this.type?"pan-x":"pan-y"),_tpt.gsap.killTweensOf([this.proxy,this.follower],this.tr),void 0!==this.closest&&void 0===e.targetIndex||(this.closest=this.focused=e.targetIndex??0),this.lastFocused=this.focused,"center"===this.s.align||"end"===this.s.align?(this.offset=this.s[this.wrapDim]-(void 0===this.s[this.dim]?this.slides[0]["h"===this.type?"offsetWidth":"offsetHeight"]:"object"==typeof this.s[this.dim]?this.s[this.dim][0]:this.s[this.dim]),"center"===this.s.align&&(this.offset/=2)):this.offset=0,this.built){for(let e=0;e<this.len;e++)for(var i=0;i<this.len;i++)if(this.slides[e]===this.arr[i].elem){var a=this.arr[e];this.arr[e]=this.arr[i],this.arr[i]=a}}else for(let e=0;e<this.len;e++)this.arr.push({elem:this.slides[e],index:1,syncedO:this.s.syncO?0:void 0});if(this.positionSlides(this.focused,s),"off"!==this.s.spin){var r=this.arr[0][this.dim]/2;this.s.spinA=Math.max(Math.min(this.s.spinA,360/this.len),-360/this.len);var n=r/Math.sin(this.s.spinA/2*Math.PI/180);this.spinR=(Math.sqrt(n*n-r*r)+this.space)*Math.sign(this.s.spinA),"2d"===this.s.spin&&"h"===this.s.type?this.spinR+=(this.s.spinA<=0?0:1)*this.s.wrapHeight:"2d"===this.s.spin&&(this.spinR+=(this.s.spinA<=0?0:1)*this.s.wrapWidth)}(0===this.s.maxR&&"3d"!==this.s.spin||_tpt.gsap.set(this.s.slides[0].parentNode,{perspective:this.s.wrapPerspective}),this.s.infinity)||("center"===this.s.align?t=(this.s[this.wrapDim]-this.arr[this.last][this.dim])/2:"end"===this.s.align&&(t=this.s[this.wrapDim]-this.arr[this.last][this.dim]),this.s.sightSnap?this.minTr=this.s[this.wrapDim]-this.totalWidth+this.space:"start"===this.s.align?this.minTr=this.arr[this.last][this.dim]-this.totalWidth:this.minTr=this.s[this.wrapDim]-this.totalWidth-("end"===this.s.align?0:t),void 0===s&&(this.draggable.applyBounds({minX:this.minTr>=0?this.minTr:0,maxX:this.minTr>=0?this.s[this.wrapDim]:0}),this.draggable.update()),this.minTr>0?_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:this.proxyShift}):this.s.sightSnap&&(this.positionSlides(0,s),_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:0})));this.s.sightSnap||_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:-this.proxyShift}),this.s.bR&&_tpt.gsap.set(this.s.slides,{borderRadius:this.s.bR,overflow:"hidden"}),this.built=!0,this.setRange(),this.s.infinity&&this.swapSlides(),this.getClosest(),this.updateSlides(),this.s.infinity&&(this.swapSlides(),this.applyDE())},t.prototype.getSlideDim=function(e){var t=this.s[this.dim];return void 0===t?"h"===this.s.type?this.slides[e].offsetWidth:this.slides[e].offsetHeight:"object"==typeof t?t[e]:t},t.prototype.getEffectiveDim=function(e){return SR7.F.getCarouselHookValue("getEffectiveDim",{carousel:this,s:this.s,item:e,dim:e?.[this.dim],dimProp:this.dim},e?.[this.dim])},t.prototype.positionSlides=function(e,t){const s=SR7.F.runCarouselHook("positionSlides",{carousel:this,s:this.s,arr:this.arr,focused:e,p:t});if(s?.handled)return;var i=this.totalWidth=this.offset,a=(t??0)*(this.arr[e]?.width??0);i+=a;let r=this.s.wrapWidth;this.s.wrapHeight;for(var n=e;n<this.len;n++)for(var o=0;o<this.len;o++){if(this.slides[n]!==this.arr[o].elem)continue;this.arr[o][this.dim]=this.getSlideDim(n);let e="v"!==this.s.type||_tpt.tf(this.s.stretchV)?0:(r-this.s.width)/2;_tpt.gsap.set(this.slides[n],{[this.tr]:this.totalWidth,position:"absolute",left:0,top:0,x:e,y:0}),this.arr[o].pos=this.totalWidth+a,this.arr[o][this.tr]=this.totalWidth+a,_tpt.gsap.set(this.arr[o].elem,{[this.tr]:this.totalWidth+a}),this.totalWidth+=this.arr[o][this.dim]+(o===this.last?0:this.space)}this.proxyShift=0;for(let t=e-1;t>=0;t--)for(let e=0;e<this.len;e++){if(this.slides[t]!==this.arr[e].elem)continue;this.arr[e][this.dim]=this.getSlideDim(t);let s="v"!==this.s.type||_tpt.tf(this.s.stretchV)?0:(r-this.s.width)/2;_tpt.gsap.set(this.slides[t],{[this.tr]:i,position:"absolute",left:0,top:0,x:s,y:0}),i-=this.arr[e][this.dim]+this.space,this.arr[e].pos=i,this.arr[e][this.tr]=i,_tpt.gsap.set(this.arr[e].elem,{[this.tr]:i}),this.totalWidth+=this.arr[e][this.dim]+this.space,this.proxyShift+=this.arr[e][this.dim]+this.space}},t.prototype.updateSlides=function(){this.tick=window.requestAnimationFrame(this.lerpHandler);var e=parseFloat(this.proxy._gsap[this.tr]),t=parseFloat(this.follower._gsap[this.tr]),s=t+(e-t)*this.lerp,i=s-t;_tpt.gsap.set(this.follower,{[this.tr]:s}),this.s.mouseDrag&&(this.s.realDragging?this.lpX+=(this.pX-this.lpX)*this.lerp:this.lpX=2*(t-s),this.lpY+=(this.pY-this.lpY)*this.lerp,this.s.processMod&&this.s.processMod()),!this.dragging&&(!this.tween||!this.tween.isActive())&&!this.waitTweenInit&&Math.abs(t-e)<.03&&Math.abs(i)<.03&&(t=e,_tpt.gsap.set(this.follower,{[this.tr]:e}),i=0,this.tick=window.cancelAnimationFrame(this.tick)),this.dx=i;for(var a=0;a<this.arr.length;a++)this.arr[a][this.tr]+=i;0!==this.s.skewX&&_tpt.gsap.set(this.s.slides,{skewX:this.s.skewX*Math.max(-1,Math.min(1,i/100))}),0!==this.s.skewY&&_tpt.gsap.set(this.s.slides,{skewY:this.s.skewY*Math.max(-1,Math.min(1,i/100))}),this.getClosest(),this.s.infinity&&this.swapSlides(),this.applyDE()},t.prototype.applyDE=function(){this.lastSlideProgress??=1,this.tempAlign??=this.s.align;let e=this.offset;"v"!==this.s.type||this.s.infinity||this.s.justify||(e=this.offset+(this.s[this.wrapDim]-this.s[this.dim]-this.offset)*(1-this.lastSlideProgress));for(var t=0;t<this.len;t++){var s={},i=parseFloat(this.arr[t][this.tr])-e,a=this.arr[t].sign=0===Math.sign(i)?1:Math.sign(i);this.arr[t].p=Math.abs(i)/(this.arr[t][this.dim]+this.space);var r=this.arr[t].ap=this.arr[t].p,n=r;this?.s?.advtrans&&SR7.F.runCarouselHook("carouselBG",{id:this.s.mID,carousel:this,elem:this.arr[t].elem,ap:r}),"v"!==this.s.type||this.s.infinity||t!==this.last||(r<=("left"===this.dir?.9:.1)&&!this.vertAlignBottom?(_tpt.gsap.to(this,{lastSlideProgress:0,duration:.2}),this.vertAlignDefault=!1,this.vertAlignBottom=!0,this.tempAlign="end",this.setRange("end")):r>("left"===this.dir?.9:.1)&&!this.vertAlignDefault&&(_tpt.gsap.to(this,{lastSlideProgress:1,duration:.2}),this.vertAlignDefault=!0,this.vertAlignBottom=!1,this.tempAlign=this.s.align,this.setRange(this.s.align)));var o=this.arr[t].vp=this.arr[t].ap/Math.ceil(this.pDiv)*("center"===this.tempAlign?1:"start"===this.tempAlign?a:-a);if("off"!==this.s.spin){if(null==this.tr)continue;s[this.tr]=e,"2d"===this.s.spin?(s.rotation=this.s.spinA*r*("h"===this.s.type?a:-a),"h"===this.s.type?s.transformOrigin="center "+this.spinR+"px 0":s.transformOrigin=this.spinR+"px center 0"):("h"===this.s.type?s.rotationY=this.s.spinA*r*-a:s.rotationX=this.s.spinA*r*a,s.transformOrigin="center center "+this.spinR+"px")}else if(0===this.s.minS||this.s.justify){if(null==this.tr)continue;s[this.tr]=this.arr[t][this.tr]}else{r=Math.min(1,r);var l=1-(this.s.vScale?o:r)*(1-this.s.minS);l=Math.max(0,l);var d=this.s.oScale?this.arr[t].sign*(this.arr[t][this.dim]+this.space-(this.arr[t][this.dim]+this.space)*l)/2*this.arr[t].ap:this.arr[t].sign*(this.arr[t][this.dim]-this.arr[t][this.dim]*l)/2*this.arr[t].ap;s[this.tr]=this.arr[t][this.tr]-d,s.scale=l}this.s.syncO||(s.opacity=1),this.s.justify||(r=Math.min(1,r),0!==this.s.maxR&&"2d"!==this.s.spin&&"3d"!==this.s.spin&&(s.rotationY=this.s.maxR*(this.s.varR?o:r)*-a),s.opacity=1+(this.s.maxO-1)*(this.s.varO?o:r),o>this.edgeRatio?s.opacity=this.oRange(o):o<0?s.opacity=this.oRangeMin(o):1===this.s.maxO&&(s.opacity=1)),this.arr[t].op
28acity=s.opacity,this.s.syncO&&s.opacity>this.arr[t].syncedO&&(s.opacity=this.arr[t].syncedO),s.opacity<=0?(this.s.slideHidden&&(void 0===this.arr[t].visible||this.arr[t].visible)&&this.s.slideHidden(this.getRealIndex(t)),this.arr[t].visible=!1):(!this.s.slideVisible||!1!==this.arr[t].visible&&void 0!==this.arr[t].visible||this.s.slideVisible(this.getRealIndex(t),void 0!==this.arr[t].visible),this.arr[t].visible=!0),s.zIndex=100-5*Math.round(this.arr[t].ap),t===this.closest&&this.s.callRebuild&&this.s.callRebuild(this.arr[t].p*this.arr[t].sign,this.getRealIndex(t)),this.s.ignoreOpacity&&delete s.opacity,Number.isFinite(s[this.tr])||(s[this.tr]=Number.isFinite(this.arr[t][this.tr])?this.arr[t][this.tr]:0);const c=SR7.F.getCarouselHookValue("extendSlideStyles",{carousel:this,s:this.s,arr:this.arr,slide:this.arr[t],index:t,obj:s,ap:Number.isFinite(r)?r:0,rawAp:Number.isFinite(n)?n:0,vp:Number.isFinite(o)?o:0,sign:Number.isFinite(a)?a:0,distance:Number.isFinite(i)?i:0,tempOffset:Number.isFinite(e)?e:0,trackPos:Number.isFinite(s[this.tr])?s[this.tr]:0},null);c&&"object"==typeof c&&(s=_tpt.extend(s,c)),_tpt.gsap.set(this.arr[t].elem,s)}},t.prototype.getRealIndex=function(e){for(var t=0;t<this.len;t++)if(this.slides[t]===this.arr[e].elem)return t},t.prototype.getArrIndex=function(e){for(var t=0;t<this.len;t++)if(this.slides[e]===this.arr[t].elem)return t},t.prototype.setRange=function(e){e??=this.s.align,this.pDiv="center"===e?this.s.maxV/2:this.s.maxV,this.edgeRatio=Math.floor(this.pDiv-("center"===e?0:1))/Math.ceil(this.pDiv),1===this.s.maxV&&(this.edgeRatio=1),this.oEdge=1===this.s.maxO?1:this.s.varO?1+(this.s.maxO-1)*this.edgeRatio:this.s.maxO,this.oEdge=1===this.s.maxV?this.s.maxO:this.oEdge,this.oRange=this.s.maxV>1?_tpt.gsap.utils.mapRange(this.edgeRatio,1,this.oEdge,0):_tpt.gsap.utils.mapRange(1,1.1,this.oEdge,0),this.oRangeMin=_tpt.gsap.utils.mapRange(-1/this.s.maxV,-1.1/this.s.maxV,1,0),this.wrapIndex=this.s.infinity?_tpt.gsap.utils.wrap(0,this.len):_tpt.gsap.utils.clamp(0,this.len-1)},t.prototype.swapSlides=function(){const e=SR7.F.runCarouselHook("swapSlides",{carousel:this,s:this.s,arr:this.arr});if(!e?.handled)for(var t,s=!0;s;){let e=this.arr[0][this.tr]>=0||void 0!==this.arr[0].p&&this.arr[0].p<=this.s.maxV/2&&!(this.arr[this.last].p<=this.s.maxV/2)&&parseFloat(this.arr[this.last][this.tr])>=this.s[this.wrapDim],i=this.arr[this.last][this.tr]+this.arr[this.last][this.dim]<=this.s[this.wrapDim]||void 0!==this.arr[this.last].p&&this.arr[this.last].p<=this.s.maxV/2&&!(this.arr[0].p<=this.s.maxV/2)&&parseFloat(this.arr[0][this.tr])+this.arr[0][this.dim]<=0;if(e&&!i){this.arr[this.last][this.tr]=-this.arr[this.last][this.dim]+this.arr[0][this.tr]-this.space;let e=this.arr.pop();this.arr.unshift(e),e===t&&(s=!1),t=e}else if(i&&!e){this.arr[0][this.tr]=this.arr[this.last][this.tr]+this.arr[this.last][this.dim]+this.space;let e=this.arr.shift();this.arr.push(e),e===t&&(s=!1),t=e}else s=!1}},t.prototype.handleTweenComplete=function(){this.dragging=!1,this.s.onIdle&&this.s.onIdle(),this.waitingDragEnd&&(this.s.slideChange&&this.s.slideChange(this.focused),this.waitingDragEnd=!1),this.s.mID&&SR7.F.updateModuleDims(this.s.mID,"height")},t.prototype.snap=function(e){if(!0===this.forceScroll)return this.dragging=!1,this.s.realDragging=!1,this.s.onIdle&&this.s.onIdle(),"v"===this.s.type?this.draggable.endY:this.draggable.endX;if(this.s&&"h"===this.s.type&&this.draggable){var t=Math.abs(this.draggable.startX-this.draggable.endX||0),s=Math.abs(this.draggable.startY-this.draggable.endY||0);if(t<12||s>t+10)return this.draggable[this.tr]}const i=SR7.F.runCarouselHook("snap",{carousel:this,s:this.s,v:e});if(i?.handled)return i.value;_tpt.gsap.killTweensOf([this.proxy,this.follower],this.tr),this.tween&&this.tween.pause&&this.tween.pause();var a,r="v"===this.s.type?e-this.draggable.endY:e-this.draggable.endX;Math.abs(r)<3&&(r=0),this.s.snap&&(e=this.newPos(e)),r=this.draggable[this.tr]-e,this.s.infinity||"v"!==this.s.type?this.s.infinity||(e>=0?e=0:e<=this.minTr&&(e=this.minTr)):e<=this.s[this.wrapDim]-this.totalWidth?e=this.s[this.wrapDim]-this.totalWidth:e>=0&&(e=0);var n=this;if(this.s.overshoot){_tpt.gsap.to(this,{duration:this.s.snap?.3:.5,lerp:.8});var o=Math.min(0===this.draggable.deltaX?Math.abs(r)/20:Math.abs(this.draggable.deltaX)/2,this.s[this.wrapDim]/4)*Math.sign(r);a=Math.abs(o/100),a=Math.min(Math.max(a/10,.6*this.s.dur),this.s.dur),this.tween=_tpt.gsap.timeline({onComplete:function(){n.handleTweenComplete()}}
28),this.tween.to(this.proxy,{[this.tr]:e-o,duration:a,ease:"power2.out"}).to(this.proxy,{[this.tr]:e,duration:Math.min(2*a,.6),ease:this.s.ease},"overshoot").to(this,{duration:Math.min(2*a,.6),lerp:1},"overshoot")}else if(this.s.dragTimeDiff>130&&!this.s.directionChanged){let e=this.focused;if(this.focused==this.beforeDragFocused){let t="h"===this.s.type?this.draggable.startX-this.draggable.endX:this.draggable.startY-this.draggable.endY,s=Math.abs(t)/this.arr[this.focused].width;if(Math.abs(s)>.2&&Math.abs(this.draggable.startX-this.draggable.endX)>Math.abs(this.draggable.startY-this.draggable.endY)+10){e+=this.dist<0?1:-1,e>this.arr.length-1&&(e=this.s.infinity?0:this.arr.length-1),e<0&&(e=this.s.infinity?this.arr.length-1:0)}}n.dragging=!1,n.goTo(e,!0,this.focused!==this.beforeDragFocused)}else a=Math.abs(r/100),a=Math.min(Math.max(a/10,.6*this.s.dur),this.s.dur),this.tween&&this.tween.kill&&this.tween.kill(),this.tween=_tpt.gsap.timeline({onComplete:function(){n.handleTweenComplete()}}),this.tween.to(this.proxy,{[this.tr]:e,ease:this.s.ease,duration:a,onComplete:function(){n.dragging=!1,n.s.mID&&SR7.F.updateModuleDims(n.s.mID,"height")}},0),this.tween.to(this,{lerp:1,duration:a},0);return e},t.prototype.goTo=function(e,t,s){this.lastMouseEvent="goTo";const i=SR7.F.runCarouselHook("goTo",{carousel:this,s:this.s,index:e,force:t,slow:s});if(i?.handled)return;if(this.dragging&&!0!==t)return;this.lastRequestedIndex!==e&&_tpt.gsap.killTweensOf([this.proxy,this.follower],this.tr),this.waitTweenInit=!0;let a=parseFloat(this.proxy._gsap[this.tr]),r=this;this.getClosest();var n=this.newPos(a,e,this.getDir(this.focused,e),void 0,s);s&&(n+=parseFloat(this.follower._gsap[this.tr])-parseFloat(this.proxy._gsap[this.tr]));let o=this.s.dur+(this.steps>=2?(this.steps-1)*this.s.dur/10:0);r.s.slideChange&&r.s.slideChange(e),clearTimeout(this.tweenRequest),this.tweenRequest=setTimeout(()=>{this.lastRequestedIndex=e,this.tween=_tpt.gsap.timeline({onComplete:function(){r.s.onIdle&&r.s.onIdle(),r.s.mID&&SR7.F.updateModuleDims(r.s.mID,"height")},onStart:function(){r.waitTweenInit=!1}}).to(this.proxy,{[this.tr]:n,ease:this.s.ease,duration:o},0).to(this,{lerp:1,duration:o},0).to({},{duration:.3*o,onComplete:function(){}},0),this.tick||(this.tick=window.requestAnimationFrame(this.lerpHandler))},(this.s?.mID?SR7.slideShow.getLen(this.s.mID):9e3)/(1e3*this.s.dur)<1.2?0:50)},t.prototype.wheel=function(e,t,s){if(!e||!0===this.ignoreDrag)return!1;t&&"reverse"===t.r&&(e=-e);var i=e>0,a=!(!t||"infinity"!==String(t.use))&&this.s.infinity;if(!a){if(i&&this.focused>=this.last)return!1;if(!i&&this.focused<=0)return!1}return this.s.onInteract&&this.s.onInteract(),this.wheelIsNotched(s)?this.wheelStep(i,a):this.wheelDrag(e,a)},t.prototype.wheelIsNotched=function(e){if(!e)return!1;if(void 0!==e.deltaMode&&0!==e.deltaMode)return!0;var t=void 0!==e.wheelDeltaY?e.wheelDeltaY:e.wheelDelta;if(null!=t)return Math.abs(t)>=120&&Math.abs(t)%120==0;var s=Math.abs(e.deltaY||0);return s>=50&&s%1==0},t.prototype.wheelStep=function(e,t){var s=(new Date).getTime(),i=Math.max(120,1e3*this.s.dur*.35);if(this.wheelStepTime&&s-this.wheelStepTime<i)return!0;this.wheelStepTime=s;var a=this.focused+(e?1:-1);return a=t?this.wrapIndex(a):Math.max(0,Math.min(this.last,a)),this.goTo(a,!0),!0},t.prototype.wheelDrag=function(e,t){_tpt.gsap.killTweensOf([this.proxy,this.follower],this.tr),this.tween&&this.tween.pause&&this.tween.pause(),this.dragging=!0,this.lerp=.2,this.lastMouseEvent="wheel";var s=parseFloat(this.proxy._gsap[this.tr])-e*(this.s.wheelSpeed??1);this.s.infinity||(s>0?s*=.2:s<this.minTr&&(s=this.minTr+.2*(s-this.minTr))),_tpt.gsap.set(this.proxy,{[this.tr]:s}),this.tick||(this.tick=window.requestAnimationFrame(this.lerpHandler));var i=this;return clearTimeout(this.wheelSettle),this.wheelSettle=setTimeout(function(){i.dragging=!1,i.getClosest(),i.goTo(i.focused,!0)},130),!0},t.prototype.getDir=function(e,t){var s=t-e,i="right",a=0,r=0;if(this.s.infinity){for(var n=e;n!=t;)r+=1,n=++n>=this.len?0:n;for(n=e;n!=t;)a+=1,n=--n<0?this.last:n;i=r<=a?"left":"right"}else i=t-e>=0?"left":"right",r=Math.abs(t-e),0===s&&(i="right");return this.steps=r<=a?r:a,i},t.prototype.newPos=function(e,t,s,i){const a=SR7.F.runCarouselHook("newPos",{carousel:this,s:this.s,v:e,tIndex:t,dir:s,ignoreSnapTo:i});if(a?.handled)return a.value;this.getClosest(),void 0===s&&(s=this.draggable.getDirection()),s="v"===this.s.type&&s.includes("up")?"left":"v"===this.s.type&&s.includes("down")?"right":s.includes("left")?"left":"right",this.dir=s;let r=parseFloat(this.follower._gsap[this.tr])-parseFloat(this.arr[this.closest][this.tr]);if("center"!==this.s.align&&"end"!==this.s.align||(r+=this.offset),this.s.sightSnap&&void 0!==t)return this.checkSightSnap(t);if(this.focused===t)return parseFloat(this.proxy._gsap[this.tr])-(this.arr[this.getArrIndex(t)][this.tr]-this.offset);for(var n=this.closest,o=0;!(++o>100);){var l;if("right"===s?(l=this.wrapIndex(n),n--):l=this.wrapIndex(n+1),n=this.wrapIndex(n),void 0===t&&"press"===this.lastMouseEvent||("center"===this.s.align?r+=(this.arr[n][this.dim]+this.space+this.arr[l][this.dim]+this.space)/2*("left"===s?-1:1):"end"===this.s.align?r+=(this.arr[l][this.dim]+this.space)*("left"===s?-1:1):r+=(this.arr[n][this.dim]+this.space)*("left"===s?-1:1)),"left"===s&&void 0!==t&&(n=this.wrapIndex(n+1)),void 0===t&&("left"===s&&e>r||"right"===s&&e<r)||void 0!==n&&this.arr[n].elem===this.slides[t]){this.s.snappingTo&&void 0===t&&!0!==i&&("left"===s&&this.s.snappingTo(this.getRealIndex(this.wrapIndex(n+1))),"right"===s&&this.s.snappingTo(this.getRealIndex(this.wrapIndex(l-1))));break}"left"===s&&void 0===t&&n++}return e=r,this.s.infinity||"v"!==this.s.type||e<=this.s[this.wrapDim]-this.totalWidth&&(e=this.s[this.wrapDim]-this.totalWidth),e},t.prototype.checkSightSnap=function(e){const t=parseFloat(this.follower._gsap[this.tr])-this.arr[this.closest][this.tr],s=this.getArrIndex(e),i=this.wrapIndex(s-1),a=this.wrapIndex(s+1),r=this.arr[this.closest][this.tr],n=(this.arr[i][this.tr]+this.arr[i][this.dim])/this.arr[i][this.dim]>=.75,o=(this.s[this.wrapDim]-(this.arr[s][this.tr]+this.arr[a][this.dim]))/this.arr[a][this.dim]>=.75,l=this.arr[this.wrapIndex(s)][this.tr],d=this.arr[i][this.dim],c=this.s[this.wrapDim];return(c-this.space)/d<2&&!this.s.infinity?0===s?(this.lastAlign="left",this.lastTi=s,0):s==a||this.lastTi==s&&"left"==this.lastAlign||this.lastFocused>=s?(this.lastAlign="right",this.lastTi=s,c-(2*d+this.space)-(i*this.space+i*d)):this.lastTi==s&&"right"==this.lastAlign||this.lastFocused<s?(this.lastAlign="left",this.lastTi=s,0-(s*this.space+s*d)):void 0:n&&o?t:n?o?t:t+c-(l+this.arr[this.wrapIndex(s)][this.dim]+(s!==a||a!==this.last||this.s.infinity?this.arr[a][this.dim]+this.space:0))+r:t-l+(s!==i||0!==s||this.s.infinity?this.space+d:0)+r},t.prototype.getClosest=function(){const e=SR7.F.runCarouselHook("getClosest",{carousel:this,s:this.s,arr:this.arr});if(!e?.handled){var t=1/0,s=this;for(let e=0;e<this.arr.length;e++){var i;i="center"===this.s.align?(this.arr[e][this.tr]+this.arr[e][this.dim]/2-this.s[this.wrapDim]/2)%this.totalWidth:"end"===this.s.align?(this.arr[e][this.tr]+this.arr[e][this.dim]-this.s[this.wrapDim])%this.totalWidth:this.arr[e][this.tr]%this.totalWidth,Math.abs(i)<Math.abs(t)&&(t=i,this.closest=e,this.dist=i)}"center"===this.s.align?this.offset=(this.s[this.wrapDim]-this.arr[this.closest][this.dim])/2:"end"===this.s.align&&(this.offset=this.s[this.wrapDim]-this.arr[this.closest][this.dim]),this.lastFocused=this.focused;for(let e=0;e<this.len;e++)this.arr[this.closest].elem===this.s.slides[e]&&(this.focused=e);this.focused!==this.lastFocused&&(this.waitingDragEnd=!0,this.s.slideChange&&this.dragging&&(this.scDelay&&this.scDelay.pause&&this.scDelay.pause(),this.scDelay=_tpt.gsap.delayedCall(.2,function(){s.waitingDragEnd=!1,s.s.slideChange(s.focused)})))}},SR7.F.getCarouselExtensions=function(e){const t=[];if(!SR7.A)return t;const s=SR7.F.addonSlotOwner(e,"carousel-layout");for(const e of SR7.F.addonOrder(SR7.A)){const i=SR7.A[e]?.srCarExt;i&&(e!==s&&(SR7.A[e]?.caps??[]).includes("carousel-layout")||t.push(i))}return t},SR7.F.runCarouselHook=function(e,t){const s=SR7.F.getCarouselExtensions(t?.id??t?.carousel?.s?.mID);for(let i=0;i<s.length;i++){const a=s[i]?.[e];if("function"!=typeof a)continue;const r=a.call(s[i],t);
28if(r&&!0===r.handled)return r}return null},SR7.F.getCarouselHookValue=function(e,t,s){const i=SR7.F.getCarouselExtensions(t?.id??t?.carousel?.s?.mID);for(let s=0;s<i.length;s++){const a=i[s]?.[e];if("function"!=typeof a)continue;const r=a.call(i[s],t);if(r&&!0===r.handled)return r.value}return s},_tpt.R=_tpt.R||{},_tpt.R.carousel=_tpt.extend?_tpt.extend(_tpt.R.carousel,{status:2,version:"7.1.5"}):{status:2,version:"7.1.5"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},void 0!==SR7.F.module)return;document.addEventListener("sr.module.loaded",function(e){SR7.F.prepareModule(e)}),SR7.F.prepareModule=async e=>{let t,s,i=e.id,a=SR7.M[i];try{s="object"!=typeof e.result?JSON.parse(e.result):e.result}catch(e){s="object"!=typeof e.result?_tpt.fixResponse(e.result):e.result}null==s.settings&&(a.migrate=!0);let r=["defaults"];a.migrate&&(s.slider_params.title=s.title,s.slider_params.alias=s.alias,r.push("migration"),r=[...r,...SR7.F.preLoadAddonsToMigrate(s.slider_params?.addOns??{})]),await _tpt.checkResources(r),s?.slider_params&&(s.slider_params.dbid=s.id),a.migrate&&(SR7.migrate.collectNav(s.navs),SR7.migrate.collectTransition(s.trans));let n,o=s.slides?Object.keys(s.slides).length:0;if(a.settings=_tpt.extend(a.settings,SR7.D.moduleObj(i,s?.slider_params??s?.settings??{},o)),void 0!==a.cacheSize?.fullWidth&&(a.settings.size.fullWidth=a.cacheSize.fullWidth),void 0!==a.cacheSize?.fullHeight&&(a.settings.size.fullHeight=a.cacheSize.fullHeight),!0===_tpt.tf(a.settings?.general?.disableOnMobile)&&_tpt.is_mobile)return void(a.c?.module?.style&&(a.c.module.style.display="none"));e.onlyPrepare||SR7.preLoader.state(i)&&SR7.preLoader.state(i,a.c.module)||SR7.preLoader.show(i,a.c.module),void 0!==a.c?.module?.dataset?.source&&(a.settings.source??={},a.settings.source.type=a.c.module.dataset.source,a.settings.source.sourceids=a.c.module.dataset.sourceids),void 0===a.c?.module?.dataset?.order&&void 0===a.c?.module?.dataset?.query||(a.settings.embed={order:(a.c.module.dataset.order??"").split(",").filter(Boolean),query:a.c.module.dataset.query}),!e.onlyPrepare&&SR7.F.isCarousel(i)&&null==a.c.carousel&&(a.c.carousel=document.createElement("sr7-carousel"),a.c.content.appendChild(a.c.carousel)),a.slides??={};let l=s?.slides??{},d=1;for(t in l){n=a.migrate?SR7.D.fixSR6IDs(l[t].id):l[t].slide.id,a.slides[n]=_tpt.extend(a.slides[n],SR7.D.slideObj(i,a.migrate?l[t]:l[t].slide,d++));let e="default"==(a.slides[n]?.slide?.slideshow?.len??"default")?a.settings?.default?.len??9e3:a.slides[n]?.slide?.slideshow?.len??9e3;a.slides[n].layers=_tpt.extend(a.slides[n].layers,SR7.D.layerObjects({dLEN:e,id:i,slide:l[t],sid:n,msource:a.settings.source?.type??"gallery"})),a.migrate&&(a.slides[n].layers=SR7.migrate.fixParallax(a.slides[n].layers,s?.slider_params??s?.settings??{}))}for(n in a.migrate&&null!=s.static_slide&&void 0!==s.static_slide.id&&(n=SR7.D.fixSR6IDs(s.static_slide.id,!0),s.static_slide.global=!0,a.slides[n]=_tpt.extend(a.slides[n],SR7.D.slideObj(i,s.static_slide)),a.slides[n].layers=_tpt.extend(a.slides[n].layers,SR7.D.layerObjects({id:i,slide:s.static_slide,sid:n,msource:a.settings.source?.type??"gallery"})),a.migrate&&(a.slides[n].layers=SR7.migrate.fixParallax(a.slides[n].layers,s?.slider_params??s?.settings??{}))),a.staticDiffLayers=!1,a.slides)if(!a.staticDiffLayers&&a.slides[n].slide.global)for(let e in a.slides[n].layers)(!a.staticDiffLayers||_tpt.hop(a.slides[n].layers,e)&&void 0!==a.slides[n].layers[e].sZ&&"default"!==a.slides[n].layers[e].sZ&&a.slides[n].layers[e].sZ!==a.slides[n].slide.pos)&&(a.staticDiffLayers=!0);if(a.migrate){let e=SR7.D.fixSR6IDs(s.static_slide?.id??void 0,!0);for(let t in l)n=SR7.D.fixSR6IDs(l[t].id),a.slides[n].slide.actions=SR7.migrate.fixActions(i,n,e);e&&(a.slides[e].slide.actions=SR7.migrate.fixActions(i,e,e))}if(e.onlyPrepare)return;SR7.D.registerModuleFonts(i),_tpt.loadFonts(),a.c?.bgcanvas||_tpt.bgStyle(i),"true"==String(a.settings?.size?.overflow)&&a.c.module.classList.add("sr7-overflow-force"),a.fHVCarousel=a.settings.size.fullHeight&&SR7.F.isCarousel(i)&&"v"===a.settings.carousel.type;let c,p=["slide","layer","draw","animate","transitions","modifiers","srtools","csslp","carousel"];if((a.settings?.codes?.js??"").includes("jQuery")&&(console.info("%cDeprecation Notice:%cjQuery functions are deprecated and no longer supported in %cSlider Revolution 6.5+. \n%cPlease refer to our documentation for alternatives and further guidance: https://www.sliderrevolution.com/manual/","color: #ee4433; font-size: 12px; font-weight: bold;","color: #aaa; font-size: 12px; ","color: #ff9800; font-size: 12px;font-weight: bold;","color: #aaa; font-size: 12px; "),_tpt.regResource({id:"jQuery",url:"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"}),null==window.jQuery&&p.push("jQuery")),a.useAsModal&&!a.modalRegistered&&(SR7.F.modal.register({id:i,alias:a.alias,speed:parseInt(a.settings.modal?.sp??1e3)/1e3,bg:a.settings.modal?.bg??"transpaent",pS:a.settings.modal?.pS,v:a.settings.modal?.v??"middle",h:a.settings.modal?.h??"center"}),SR7.F.modal.underlay("show")),await _tpt.checkResources(p),a.migrate&&SR7.migrate.orderGroups(a),_tpt.injectCssJs(a.settings.codes?.css??"",a.settings.codes?.js??"",a.c.module,i+"_modulestyles"),SR7.F.updateModuleDims(i,!1),SR7.F.observeFhoContainers(i),_tpt.resizeObserver.observe(e=>{SR7.F.updateModuleDims(e,!0,!0)},19,i),_tpt.orientationObserver.observe(e=>{a.c.bgcanvas&&(a.c.bgcanvas.style.maxWidth="100%"),SR7.F.orientationChanged(e,3)},400,i),a.settings.wClass?.length>0&&a.c.module.parentNode.classList.add(a.settings.wClass),_tpt.is_mobile&&(_tpt.cacheRotation=window?.screen?.orientation?.angle,document.addEventListener("gesturestart",function(){_tpt.cachezoom=_tpt.getMobileZoom()}),document.addEventListener("gestureend",function(){a.c.bgcanvas&&(a.c.bgcanvas.style.maxWidth="100%"),SR7.F.orientationChanged(i,3)}
28,!1)),window.removeEventListener("resize",a.earlyResizerFunction),delete a.earlyResizerFunction,await _tpt.checkResources(SR7.F.getRequiredResources(i)),a.J&&(a.J.trigger("revolution.slide.onloaded"),a.J.trigger("sr.module.ready")),_tpt.event.trigger("dom","sr.module.ready",{id:i}),SR7.F.resolveActiveAddons(i),await SR7.F.prepareSlides(i),""!==window.location.hash)a.deepLinked=window.location.hash.replace("#",""),c=SR7.F.deepLinkSlide(i,a.deepLinked);else if(e?.slide&&a.navSlideOrder.includes(e.slide))c=a.navSlideOrder.indexOf(e.slide);else{const e=a.settings?.slideshow?.firstSlide??"auto";if("auto"!==e){const t=a.initialSlideOrder??a.slideOrder,s=t["lastslide"===e?t.length-1:parseInt(e)];c=void 0===s?void 0:"#"+s}}SR7.M[i].settings.slideshow?.waitApi||SR7.F.runModule(i,c),window.removeEventListener("hashchange",a.deepLinkListener),a.deepLinkListener=()=>{const e=SR7.F.deepLinkSlide(i,window.location.hash);if(void 0===e)return;const t=e.replace("#","");String(a.current?.id)!==t&&String(a.next?.id)!==t&&SR7.F.requestSlide({id:i,slide:e})},window.addEventListener("hashchange",a.deepLinkListener),a.earlyResizerFunction&&(window.removeEventListener("resize",a.earlyResizerFunction),delete a.earlyResizerFunction)},SR7.F.deepLinkSlide=(e,t)=>{const s=SR7.M[e],i=String(t??"").replace("#","");if(""!==i&&null!=s){for(let e in s.slides)if(_tpt.hop(s.slides,e)&&s.slides[e].slide?.attr?.deepLink==i)return"#"+e;if(i.toLowerCase().indexOf("slide")>=0){const e=parseInt(i.toLowerCase().replace("slide",""));if(s.navSlideOrder?.[e-1])return"#"+s.navSlideOrder[e-1]}}},SR7.F.orientationChanged=(e,t)=>{requestAnimationFrame(()=>{_tpt.cachezoom!=_tpt.getMobileZoom()&&window?.screen?.orientation?.angle===_tpt.cacheRotation||(document.documentElement.scrollLeft=0,document.body.scrollLeft=0,_tpt.cacheRotation=window?.screen?.orientation?.angle),_tpt.getWinDim(),SR7.F.updateModuleDims(e,!0,!0,!0),SR7.F.reposLayers(e),--t>0?SR7.F.orientationChanged(e,t):(SR7.F.updateModuleDims(e,!0,!0),SR7.M[e].c.bgcanvas&&(SR7.M[e].c.bgcanvas.style.maxWidth="none"))})},SR7.F.needsWebGLEngine=e=>{const t=SR7.M[e]?.slides;if(!t)return!1;for(const e in t){const s=t[e]?.layers;if(s)for(const e in s){const t=s[e],i=t?.tl;if(!i)continue;for(const e in i){const t=i[e]?.effects;if(t?.all?.length&&!0!==_tpt.tf(t.d))return!0}const a=i.in?.bg?.all?.[1];if(!a)continue;if(a.d3?.f&&"none"!==a.d3.f)return!0;if(a.addOns?.tpack?.ef)return!0;if(a.eng&&"animateCore"!==a.eng)return!0;if("double"===a.p||"dark"===a.p||"light"===a.p||"transparent"===a.p||"slidingoverlay"===a.tr)return!0;const r=e=>e&&(0!=(e.x??0)||0!=(e.y??0)||1!=(e.sx??1)||1!=(e.sy??1)||(parseInt(e.col)||1)>1||(parseInt(e.row)||1)>1||0!=(e.r??0)||1!=(e.o??1));if(r(a.in)||r(a.out))return!0}}return!1},SR7.F.runModule=(e,t)=>{if(!SR7.E.backend&&SR7.D?.transitions&&!SR7.D.transitions._enginePromise&&SR7.F.needsWebGLEngine(e)){const t=SR7.M[e]?.slides||{};let s=!1;for(const e in t){const i=t[e]?.layers;if(i)for(const e in i){const t=i[e]?.tl?.in?.bg?.all?.[1];if(t?.d3?.f&&"none"!==t.d3.f){s=!0;break}}if(s)break}try{SR7.D.transitions._enginePromise=_tpt.checkResources(s?["THREE","WEBGL","EFFECTS"]:["WEBGL","EFFECTS"]).then(()=>Promise.all((SR7.D.transitions._engineWarmers||[]).map(t=>{try{return Promise.race([Promise.resolve(t(e)),new Promise(e=>setTimeout(e,4e3))])}catch(e){return null}}))).catch(()=>{})}catch(e){}}SR7.F.updateModuleDims(e,!0,!0),SR7.F.observeFhoContainers(e),SR7.F.module.run(e,t),SR7.F.module.listeners.init(e),SR7.M[e].c.module.observParams.toggleCall=SR7.F.module.toggle,SR7.F.initCarousel(e,t),SR7.M[e].runModuleCalled=!0},SR7.F.triggerSlideEvent=(e,t="")=>{let s=SR7.M[e];_tpt.event.trigger("dom","sr.slide"+(""!==t?"."+t:""),{id:e,current:s.current,next:s.next,previous:s.prev}),_tpt.event.trigger(s.c.module,"sr.slide"+(""!==t?"."+t:""),{id:e,current:s.current,next:s.next,previous:s.prev})},SR7.F.triggerMediaEvent=(e,t)=>{_tpt.event.trigger("dom","sr.media."+t,{mediatype:e.type,player:e.player,options:e.options,layer:e.el,id:e.id,layerid:e.el.id,skey:e.skey,state:e.state})},SR7.F.focusBlurCheck=(e,t)=>{let s=SR7.M[t];"blur"==e?s.settings.browser.freezeOnBlur&&SR7.M[t].states.inViewPort&&(s.states??={},s.states.stateBeforeFL=s.slideShow?.state,"paused"!==s.slideShow?.state&&SR7.F.module.pause(t,"blur"),_tpt.event.trigger("dom","sr.slide.tabblured",{id:t})):"focus"==e&&s.settings.browser.freezeOnBlur&&SR7.M[t].states.inViewPort&&("paused"!==s.states?.stateBeforeFL&&SR7.F.module.resume(t,"focus"),s.states??={},s.states.stateBeforeFL=s.slideShow?.state,_tpt.event.trigger("dom","sr.slide.tabfocused",{id:t}))},SR7.F.triggerLayerEvent=async(e,t)=>{let s={id:e.id,eventtype:t,caller:e.caller,scene:e.animState?.scene??e.c.animState.scene,frame:e.animState?.frame??e.c.animState.frame,c:e.c,layer:e.c.el,layerid:e.c.el.id,layertype:e.layer?.type??"",layersettings:e.layer};e.action&&(s.action=e.action),e.ease&&(s.ease=e.ease),e.start&&(s.start=e.start),e.duration&&(s.duration=e.duration),e.c.lastEventCalled=t,"leavestage"!==t&&"leftstage"!==t||(e.c._storyEntered=!1),_tpt.event.trigger("dom","sr.layer.action",s),_tpt.event.trigger(SR7.M[e.id].c.module,"sr.layer.action",s)},SR7.F.migrateAddonKey=e=>"snow"!==e||!SR7.A?.particles&&void 0===SR7.E.resources?.particles?e:"particles",SR7.F.preLoadAddonsToMigrate=e=>{let t=[];if(void 0!==e)for(let s in e)_tpt.hop(e,s)&&0!=e[s]&&"false"!=String(e[s]?.enable??!1)&&(s=SR7.F.migrateAddonKey(s.replace("revslider-","").replace("-addon","")),void 0!==SR7.E.resources[s]&&t.push(s),void 0!==SR7.E.resources["css"+s]&&t.pu
28sh("css"+s));return t},SR7.F.addonListen=(e,t,s,i,a,r)=>{const n=SR7.M[e];if(null==n)return;const o=_tpt.event.listen(s,i,a,{id:e,slug:t},r);return n.c.addonListeners??=[],n.c.addonListeners.push({slug:t,container:s,ids:o}),o},SR7.F.tick={fns:{},add:(e,t,s,i={})=>{SR7.F.tick.fns[e+"_"+t]={id:e,fn:s,fps:i.fps??0,last:0},SR7.F.tick.running||(SR7.F.tick.running=!0,_tpt.gsap.ticker.add(SR7.F.tick.run))},rm:(e,t)=>{if(null==t)for(let t in SR7.F.tick.fns)_tpt.hop(SR7.F.tick.fns,t)&&SR7.F.tick.fns[t].id===e&&delete SR7.F.tick.fns[t];else delete SR7.F.tick.fns[e+"_"+t]},run:e=>{let t=!1;for(let s in SR7.F.tick.fns){if(!_tpt.hop(SR7.F.tick.fns,s))continue;const i=SR7.F.tick.fns[s];t=!0;const a=SR7.M?.[i.id];(SR7.E.backend||!a||a.states?.inViewPort)&&(i.fps>0&&e-i.last<1/i.fps||(i.last=e,i.fn(e)))}t||(_tpt.gsap.ticker.remove(SR7.F.tick.run),SR7.F.tick.running=!1)}},SR7.F.gesture={claim:(e,t,s,i,a={})=>{const r=SR7.M[e];if(null==r||!i)return;r.c.gestures??=[];for(let e of r.c.gestures)if(e.slug===t&&e.kind===s&&e.el===i)return e;const n={slug:t,kind:s,el:i};return void 0!==a.touchAction&&(n.taPrev=i.style.touchAction??"",i.style.touchAction=a.touchAction),r.c.gestures.push(n),n},release:(e,t,s,i)=>{const a=SR7.M[e]?.c?.gestures;if(a)for(let e=a.length-1;e>=0;e--)a[e].slug!==t||void 0!==s&&a[e].kind!==s||void 0!==i&&a[e].el!==i||(void 0!==a[e].taPrev&&(a[e].el.style.touchAction=a[e].taPrev),a.splice(e,1))},claimed:(e,t)=>{const s=SR7.M[e]?.c?.gestures;if(!s)return!1;const i=t?.target;for(let e of s)if("hover-fx"!=e.kind&&(e.el===i||i&&e.el?.contains?.(i)))return e;return!1}},SR7.F.addonOrder=(...e)=>{const t=e.length?e[0]??{}:SR7.A??{};let s=[];for(let e in t)_tpt.hop(t,e)&&s.push(e);return s.sort((e,t)=>(SR7.A?.[e]?.prio??50)-(SR7.A?.[t]?.prio??50)||(e<t?-1:1))},SR7.F.addonOrderForLayer=(e,t)=>{const s={...t?.addOns??{}},i=SR7.M[e]?.settings?.addOns;if(i)for(let e of SR7.F.addonOrder(i))_tpt.hop(i,e)&&!1!==i[e]&&!1!==i[e]?.u&&void 0===s[e]&&SR7.A?.[e]?.postProcessLayer&&SR7.A[e]?.schema?.layer&&(s[e]={});return SR7.F.addonOrder(s)},SR7.F.addonOrderForSlide=(e,t)=>{const s={...t?.addOns??{}},i=SR7.M[e]?.settings?.addOns;if(i)for(let e of SR7.F.addonOrder(i))_tpt.hop(i,e)&&!1!==i[e]&&!1!==i[e]?.u&&void 0===s[e]&&(SR7.A?.[e]?.prepareSlide||SR7.A?.[e]?.prepareSlideLayers)&&SR7.A[e]?.schema?.slide&&(s[e]={});return SR7.F.addonOrder(s)},SR7.F.addonSlotOwner=(e,t,s)=>{const i=SR7.M[e]?.settings?.addOns;for(let e of SR7.F.addonOrder(SR7.A))if((SR7.A[e]?.caps??[]).includes(t)&&!0===(i?.[e]?.u??!1)&&(void 0===s||!0===(s?.[e]?.u??s?.[e]?.enable??!1)))return e},SR7.F.carouselShrinkV=e=>{const t=SR7.M[e];if(!t?.settings?.carousel)return!1;if(!_tpt.tf(t.settings.carousel.stretchV))return!0;if("function"==typeof SR7.F.getCarouselHookValue)return!0===SR7.F.getCarouselHookValue("shrinkV",{id:e},!1);for(let t in SR7.A??{}){const s=SR7.A[t]?.srCarExt?.shrinkV;if("function"!=typeof s)continue;const i=s.call(SR7.A[t],{id:e});if(i&&!0===i.handled)return!0===i.value}return!1},SR7.F.addonActivators??={sharing:e=>Object.values(e.slides??{}).some(e=>(e.slide?.actions??[]).some(e=>String(e?.a).includes("share_")||"link"===e?.a&&void 0!==e?.shr))},SR7.F.resolveActiveAddons=e=>{const t=SR7.M[e];if(t){t.settings.addOns??={};for(let e in SR7.F.addonActivators)try{SR7.F.addonActivators[e](t)&&(t.settings.addOns[e]??={},t.settings.addOns[e].u??=!0)}catch(e){}}},SR7.F.reprocessAddonLayers=(e,t,s)=>{const i=SR7.M[e];if(!i||!SR7.A?.[t]?.postProcessLayer)return;s??=SR7.editing?.slide??Object.keys(i.slides??{})[0];const a=i.slides?.[s]?.layers??{};for(let i in a){if(!_tpt.hop(a,i))continue;const r=a[i],n=SR7.F.getLayer?.({id:e,skey:s,lkey:i})?.c;n?.el&&SR7.A[t].postProcessLayer(e,r,n,s)}},SR7.F.initAddons=e=>{const t=[],s=SR7.M[e];if(SR7.F.resolveActiveAddons(e),null!=s.settings.addOns){for(let i of SR7.F.addonOrder(s.settings.addOns))if(_tpt.hop(s.settings.addOns,i)&&SR7.A?.[i]?.init){let s=SR7.A[i].init(e);Array.isArray(s)?t.push(...s):s||t.push(s)}return t}},SR7.F.module={get:e=>{let t,s=document.getElementsByTagName("sr7-module");for(var i in s)""+(s[i].dataset?.id??"")!=e&&""+(s[i].dataset?.alias??"")!=e&&""+s[i].id!=e||(t=s[i]);return t},getNextSuffx:e=>{let t=1,s=SR7.M["SR7_"+e+"_"+t];for(;void 0!==s;)t++,s=SR7.M["SR7_"+e+"_"+t];return t},teardown:(e,t=!1)=>{const s=SR7.M?.[e];if(null!=s){SR7.F.disconnectFhoContainers(e);for(let t of SR7.F.addonOrder(s.settings?.addOns))SR7.A?.[t]?.destroy&&SR7.A[t].destroy(e);for(let e of s.c?.addonListeners??[])for(let t of e.ids)_tpt.event.rm(e.container,t);s.c&&(s.c.addonListeners=[]);for(let e of s.c?.gestures??[])void 0!==e.taPrev&&(e.el.style.touchAction=e.taPrev);s.c&&(s.c.gestures=[]),SR7.F.tick.rm(e),t||delete SR7.M[e]}},collect:e=>{if("init"!==e&&SR7.M)for(let e in SR7.M)_tpt.hop(SR7.M,e)&&SR7.F.module.teardown(e,!0);
28SR7.M="init"!==e?{}:SR7.M||{};let t=document.getElementsByTagName("sr7-module");if("init"!==e){for(let e in _tpt.viewPortObserverManager.observers)_tpt.viewPortObserverManager.observers[e]?.disconnect?.();_tpt.resizeObserver.removeAll()}for(var s in t)if(_tpt.hop(t,s))try{SR7.F.module.register(t[s],t[s].id,!SR7.F.modal.trigger(t[s].dataset?.alias??void 0,t[s],t[s].dataset?.modal??void 0)&&"viewport")}catch(e){console.error("SR7: Module Registration failed for",t[s]?.id,e)}_tpt.displayDeprecationWarnings&&_tpt.displayDeprecationWarnings(window.SR7?.E?.php)},register:(e,t,s="viewport")=>{const i=SR7.M[t]??={};i.c??={module:e},i.c.module??=document.querySelector('sr7-module[id="'+t+'"]'),i.c.adjuster??=i.c.module.getElementsByTagName("sr7-adjuster")[0],i.c.content??=i.c.module.getElementsByTagName("sr7-content")[0],i.c.carousel??=i.c.module.getElementsByTagName("sr7-carousel")[0],i.c.bgcanvas??=i.c.module.getElementsByTagName("sr7-module-bg")[0],i.states??={},i.c.slideBGStates??={},i.zOrder??={},i.alias=e.dataset.alias,i.dims??={},i.dims.CFC??={},i.dims.module??={},i.dims.content??={x:0,y:0},SR7.preLoader.state(t)&&SR7.preLoader.state(t,i.c.module)||SR7.preLoader.show(t,i.c.module),i.LEV=_tpt.getResponsiveLevel(SR7.G.breakPoints,t);const a=i.c.module.getElementsByTagName("image_lists");if(void 0!==a[0]){const e=a[0].getElementsByTagName("img");if(void 0!==e[0]){i.imgList=Array();for(let t in e)if(_tpt.hop(e,t)&&e[t].parentNode===a[0]){let s=e[t].dataset.src||e[t].getAttribute("src")||e[t].getAttribute("data -src"),a=e[t].dataset.src2||e[t].getAttribute("src2")||e[t].getAttribute("data -src2");s&&i.imgList.push({old:atob(e[t].dataset.dbsrc),n1:s,n2:a||s})}}}SR7.F.isStickyTop(i)||SR7.F.isStickyBottom(i)?(i.states.inViewPort=!0,SR7.F.module.init(i.c.module),i.c.module.observParams??={obj:i}):(i.c.module.observParams??="viewport"==s?{callBack:SR7.F.module.init,runonce:!0,obj:i}:{obj:i},i.c.module.observParams.obj=i,"viewport"==s&&(i.c.module.observParams.callBack??=SR7.F.module.init));let r=i.settings?.vPort??"-100px";r=Array.isArray(r)?r[0]:r,String(r).includes("',")&&(r=r.split("',")[0]),i.settings?.sbt?.use&&(r="-200px");const n=_tpt.toPxH(i.settings?.size?.height?.[i.LEV]);String(r).includes("px")&&parseInt(r)>n&&(r=n-10+"px"),_tpt.observeModule(i.c.module,r),SR7.revapi.init(e.id)},getIdByAlias:e=>{for(let t in SR7.M)if(_tpt.hop(SR7.M,t)&&(SR7.M[t].alias==e||(SR7.M[t]?.settings?.alias??"")==e))return t},init:(e,t)=>{const s=SR7.M[e.id];s?.states?.inited&&(!t||!0!==t&&e._srInited)||(e._srInited=!0,SR7.revapi.init(e.id),window.gM=s,s.alias=_tpt.gA(e,"alias",e.id),s.states.inited=!0,SR7.JSON??={},void 0!==SR7.JSON[e.id]?"string"==typeof SR7.JSON[e.id]&&".json"==SR7.JSON[e.id].slice(-5).toLowerCase()?_tpt.getJSON({url:SR7.JSON[e.id],callBack:t=>{if("object"!=typeof t)try{t=JSON.parse(t)}catch{t=_tpt.fixResponse(t)}_tpt.event.trigger("dom","sr.module.loaded",{result:t,id:e.id})}}):_tpt.event.trigger("dom","sr.module.loaded",{result:SR7.JSON[e.id],id:e.id}):_tpt.restAPI({action:"slider.get.full_object",version:7,id:s.c.module.dataset.id??e.id,callBack:t=>{if("object"!=typeof t)try{t=JSON.parse(t)}catch{t=_tpt.fixResponse(t)}0==t.success?console.log(s.alias+" Could not be Loaded from DB"):(SR7.F.regAddonResources(t.addOns??{}),SR7.JSON[e.id]=t,_tpt.event.trigger("dom","sr.module.loaded",{result:t,id:e.id}))}}))},run:(e,t)=>{const s=SR7.M[e];let i=SR7.F.initAddons(e);SR7.F.isCarousel(e)&&SR7.F.hideCarouselSlides(e),_tpt.checkResources(i).then(()=>{SR7.F.requestSlide({id:e,slide:t??0,callback:SR7.F.module.checkCarousel,indicator:SR7.F.moduleType(e)}),_tpt.getWinDim(),"hero"!==s.settings.type&&SR7.F.navigation&&SR7.F.navigation.init(e),!s.settings?.sbt?.use||!SR7.F.sbt?.storyMode?.(e)&&("hero"!=s.settings.type&&s.settings.slideshow.auto||1!==s.len)?s.settings.sbt&&(s.settings.sbt.use=!1):SR7.F.sbt.init(e),"off"!==String(s.settings.nav?.m?.use)&&"false"!==String(s.settings.nav?.m?.use)&&(SR7.F.module.wheelModules?-1===SR7.F.module.wheelModules.indexOf(e)&&SR7.F.module.wheelModules.push(e):(SR7.F.module.wheelModules=[e],window.addEventListener("wheel",SR7.F.module.listeners.wheel,{passive:!1}))),(SR7.E.backend||"carousel"!==s.settings.type)&&(s.settings.nav?.s?.desk||_tpt.is_mobile&&"off"!==String(s.settings.nav?.s?.use)&&"false"!==String(s.settings.nav?.s?.use))&&SR7.F.module.listeners.touchSwipe(e),"off"!==(s.settings.nav?.k?.use??"off")&&_tpt.keyBoard.reg(e,"navListener",SR7.F.module.listeners.keyboard,["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"])})},checkCarousel:async e=>{const t=SR7.M[e];if(SR7.F.isCarousel(e)){const s=[];for(let i in t.slides)_tpt.hop(t.slides,i)&&(_tpt.getWinDim(),s.push(new Promise(s=>{setTimeout(async()=>{const a=String(i)===String(t.current.id),r="all"===t.settings.carousel.showAllLayers;await SR7.F.redrawBG(e,i,!a&&!r),r&&setTimeout(()=>{SR7.F.drawSlide({id:e,slideid:i,keepSlideVisible:!0,type:"process",global:!0,render:!0,callback:()=>SR7.F.showCarouselSlide(e,i)})},0),s()},0)})));await Promise.all(s)}t.checkCarouselDone=!0},toggle:(e,t,s)=>{if(SR7.M[e].states.inViewPort)SR7.M[e].states?.forcedPause||SR7.F.module.resume(e,s),clearTimeout(SR7.M[e].states.fxParkTimer);else{SR7.F.module.pause(e,s);const t=()=>{const s=SR7.M[e];s&&!s.states.inViewPort&&(s.states.sceneInProgress?s.states.fxParkTimer=setTimeout(t,2e3):SR7.F.fx?.park?.(e))};clearTimeout(SR7.M[e].states.fxParkTimer),SR7.M[e].states.fxParkTimer=setTimeout(t,2e3)}for(let t of SR7.F.addonOrder(SR7.M[e].settings?.addOns))_tpt.hop(SR7.M[e].settings.addOns,t)&&SR7.A?.[t]?.toggle&&SR7.A[t].toggle(e,t)},pause:(e,t)=>{const s=SR7.M[e];
28if(null!=s.c.tl){SR7.slideShow.pause(e),s.c.tl.cachePlayed=[];for(let e in s.c.tl[s.current.id]){if(!_tpt.hop(s.c.tl[s.current.id],e)||null==s.c.tl[s.current.id][e])continue;let t=s.c.tl[s.current.id][e];for(let i in t)_tpt.hop(t,i)&&t[i].isActive()&&(s.c.tl.cachePlayed.push({scenes:e,tl:i}),t[i].pause())}if(["scroll","blur"].includes(t)&&!s.settings.browser.mISB){s.videosPlayingCache??={};for(let t in s.videosPlaying)_tpt.hop(s.videosPlaying,t)&&(SR7.F.isCarousel(e)&&s.videosPlaying[t]?.skey===s.current.id||(s.videosPlayingCache[t]=s.videosPlaying[t],s.videosPlaying[t].pause("scroll")))}}},resume:(e,t)=>{const s=SR7.M[e],i=s.c?.tl?.cachePlayed??void 0;if(SR7.slideShow.resume(e),i)for(let e in i)s.c.tl[s.current.id][i[e].scenes][i[e].tl].resume();if(["scroll","focus"].includes(t)&&!s.settings?.browser?.mISB)for(let t in s.videosPlayingCache)_tpt.hop(s.videosPlayingCache,t)&&(SR7.F.isCarousel(e)&&s.videosPlaying[t]?.skey===s.current.id||(s.videosPlayingCache[t].play(),delete s.videosPlayingCache[t]))},size:t=>{const s=SR7.M[t];e(t,s,"t"),e(t,s,"b");let i=SR7.F.isCarousel(t);if(s.c.module.style.height=(s.dims.sbt??s.dims.module.h)+"px",s.c.adjuster&&(s.c.adjuster.style.height=s.dims.module.h+"px"),SR7.E.backend||i||!s.settings.size.keepFlow||s.settings.size.fullWidth||(s.c.adjuster&&(s.c.adjuster.style.width=s.dims.content.w+"px"),s.c.module.classList.add("sr-keepflow-force")),s.c.content.style.height=s.dims.content.h+"px",s.c.content.style.width=s.dims.content.w+"px",SR7.E.backend||"function"!=typeof _tpt.updateStickyReserve||_tpt.updateStickyReserve(t,s.dims.module.h),!SR7.E.backend&&(s.c.content.style.left=1==s.sbtFreeze?"0px":s.dims.content.mwshiftx+s.dims.content.shiftx+"px"),null!=s.dims.sbt||SR7.E.backend||(s.c.content.style.top=s.dims.content.shifty+"px"),s.slideRatios&&!SR7.E.backend&&"v"!==(s.settings?.carousel?.type??""))for(let e in s.slideRatios)_tpt.hop(s.slideRatios,e)&&!s.slides[e].slide.global&&(s.c.slides[e].style.width=Math.ceil(s.settings.carousel.jMWidth?Math.min(s.dims.CFC[e].w,s.dims.module.w):s.dims.CFC[e].w)+"px");else if(i)for(let e in s.c.slides)s.slides[e].slide.global?s.slides[e].slide.fullHeight&&(s.c.slides[e].style.height=s.dims.module.h+"px",s.c.slides[e].style.top=0-(s.dims.carousel?.pT??0)+"px"):(s.c.slides[e].style.width=("v"===s.settings.carousel.type&&SR7.F.carouselShrinkV(t)?s.dims.CFC.w:"v"===s.settings.carousel.type||s.settings.carousel.stretch?s.dims.module.w:s.dims.CFC.w)+"px","v"===s.settings.carousel.type&&(s.c.slides[e].style.height=SR7.F.modHeight(t,"keep")+"px"));else SR7.stage?.carousel?.isCarousel?.()&&("v"===s.settings.carousel.type&&SR7.F.carouselShrinkV(t)?_tpt.gsap.set([SR7.stage.c.edit,s.c.content],{left:"50%",x:"-50%",width:s.dims.CFC.w}):SR7.stage.carousel.justify()||!SR7.stage.carousel.stretched()?(SR7.editing.justifyCarousel=!0,_tpt.gsap.set([SR7.stage.c.edit,s.c.content],{left:"50%",x:"-50%",width:s.dims.CFC.w})):SR7.editing.justifyCarousel&&(SR7.editing.justifyCarousel=!1,_tpt.gsap.set([SR7.stage.c.edit,s.c.content],{left:"0%",x:"0%",width:"100%"})))},box:e=>{SR7.M[e].dims.moduleRect=SR7.M[e].c.module.getBoundingClientRect()},fullScreen:(e,t)=>{requestAnimationFrame(function(){SR7.M[e].c.module.classList.add("sr--force--untouchable");const s=SR7.M[e];t&&!s.states.inFullscreen?s.c.module.classList.add("sr7-fullscreen"):!t&&s.states.inFullscreen&&s.c.module.classList.remove("sr7-fullscreen"),s.states.cachedFullheight??=s.settings.size.fullHeight,s.states.inFullscreen=t,s.settings.size.fullHeight=!!t||s.states.cachedFullheight,_tpt.resizeObserver.execute(),_tpt.scrollObserver.run(s.c.module),SR7.F.isCarousel(e)&&SR7.M[e]?.c?.pans&&setTimeout(()=>{for(let t in SR7.M[e].c.pans){let s=SR7.F.getSlideBG(e,t);s&&SR7.F.positionLayer(SR7.F.getLKey(e,t,s.id),t),"observing"!==t&&_tpt.hop(SR7.M[e].c.pans,t)&&SR7.F.pan.refresh(e,t,!0,!0)}SR7.F.rebuildCarousel(e,!0,!0),SR7.F.updateModuleDims(e,!0)},100)}),setTimeout(()=>{SR7.M[e].c.module.classList.remove("sr--force--untouchable")},100)},isFirstSlide:e=>0==SR7.M[e].current.index,isLastSlide:e=>SR7.M[e].current.index===(void 0!==SR7.M[e].navSlideOrder?SR7.M[e].navLen-1:SR7.M[e].len-1),listeners:{init:e=>{const t=SR7.M[e];(t.settings.mod?.use||t.settings.sbt?.use)&&_tpt.scrollObserver.observe(t.c.module),t.c.module.observParams.scrollCallback=e=>{t.settings.mod?.use&&SR7.F.callBackHandler(e,"parallax","start"),t.settings.sbt?.use&&SR7.F.callBackHandler(e,"sbt","start"),t.c?.moduleListeners?.scroll&&SR7.F.module.listeners.callBacks(e,t.c.moduleListeners.scroll)},t.settings?.browser?.freezeOnBlur&&_tpt.focusObserver.observe((e,t)=>{SR7.F.focusBlurCheck(e,t)},0,e)},callBacks:(e,t)=>{for(let s in t)_tpt.hop(t,s)&&t[s](e)},keyboard:(e,t)=>{const s=SR7.M[t.id];void 0!==s.states.navKeyDown&&(new Date).getTime()-s.states.navKeyDown<500||("horizontal"==s.settings.nav.k.use&&39==e.keyCode||"vertical"==s.settings.nav.k.use&&40==e.keyCode?SR7.F.requestSlide({id:t.
28id,slide:"+1"}):("horizontal"==s.settings.nav.k.use&&37==e.keyCode||"vertical"==s.settings.nav.k.use&&38==e.keyCode)&&SR7.F.requestSlide({id:t.id,slide:"-1"}),s.states.navKeyDown=(new Date).getTime())},mouse:(e,t)=>{const s=SR7.M[t.id];if("mouseenter"===e.type||"touchstart"===e.type?s.states.overModule=!0:"mouseleave"===e.type||"touchend"===e.type?s.states.overModule=!1:"mousemove"!==e.type&&"touchmove"!==e.type||(s.states.overModule=!0),s.c?.moduleListeners?.[e.type])for(let i in s.c.moduleListeners[e.type])_tpt.hop(s.c.moduleListeners[e.type],i)&&s.c.moduleListeners[e.type][i](t.id,e)},touchSwipe:e=>{let t={...SR7.M[e].settings.nav.s};t.t=parseInt(t.t??1),t.forceSwipe=!0===t.forceSwipe||"true"===t.forceSwipe||"on"===t.forceSwipe||1===t.forceSwipe,_tpt.is_touch??="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,_tpt.is_touch&&t.t>1?SR7.F.module.listeners.touchSwipeMulti(e,t):SR7.F.module.listeners.touchSwipeSimple(e,t)},touchSwipeMulti:(e,s)=>{let i=0,a=0,r=0,n=0,o=!1,l=!1;function d(){if(!o)return;let d;if(o=!1,d=Math.abs(n-a)>Math.abs(r-i)?n<a?"up":"down":r<i?"left":"right",l||"vertical"===s.d&&("up"===d&&SR7.F.module.isLastSlide(e)||"down"===d&&SR7.F.module.isFirstSlide(e)))return SR7.F.scrollTo(e,"up"===d?SR7.M[e].c.module.offsetTop+SR7.M[e].dims.module.h:document.documentElement.scrollTop-(window.innerHeight-SR7.M[e].c.module.getBoundingClientRect().top));"horizontal"===s.d&&"left"===d||"vertical"===s.d&&"up"===d?(t(e),SR7.F.requestSlide({id:e,slide:"+1"})):("horizontal"===s.d&&"right"===d||"vertical"===s.d&&"down"===d)&&(t(e),SR7.F.requestSlide({id:e,slide:"-1"}))}SR7.M[e].c.module.addEventListener("touchstart",function(t){if(null!==t.target.closest(".sr7-tabs, .sr7-thumbs")||!s.forceSwipe&&SR7.F.gesture.claimed(e,t))o=!1;else if(t.touches.length===s.t){const e=t.touches[0];i=e.pageX,a=e.pageY,o=!0,!_tpt.is_mobile&&s.bV&&t.preventDefault()}else o=!1},{passive:!1}),SR7.M[e].c.module.addEventListener("touchmove",function(t){if(!o||t.touches.length!==s.t)return void(o=!1);const d=t.touches[0];r=d.pageX,n=d.pageY;let c=Math.abs(n-a)>Math.abs(r-i)?"vertical":"horizontal";c===s.d&&(t.preventDefault(),l="vertical"===c&&(n<a&&SR7.F.module.isLastSlide(e)||n>a&&SR7.F.module.isFirstSlide(e)))},{passive:!1}),SR7.M[e].c.module.addEventListener("touchend",d,{passive:!1}),SR7.M[e].c.module.addEventListener("touchcancel",d,{passive:!1})},touchSwipeSimple:(e,s)=>{const i=t=>!!(t?.closest?.(".sr7-tabs, .sr7-thumbs")||!s.forceSwipe&&SR7.F.gesture.claimed(e,{target:t}));SR7.M[e].c.swipeProxy=document.createElement("div"),SR7.M[e].c.swipeAble=_tpt.draggable.create(SR7.M[e].c.swipeProxy,{trigger:SR7.M[e].c.module,type:"horizontal"===s.d?"x":"y",cursor:"pointer",lockAxis:!0,allowContextMenu:_tpt.is_mobile&&!s.bV,allowEventDefault:!s.bV,dragClickables:!1,clickableTest:e=>i(e)||!!e?.closest?.('a,button,input,textarea,select,[data-clickable="true"]'),onPress:function(t){if(i(t?.target)){const s=SR7.M[e].c.swipeAble[0];s.endDrag(t),s.disable(),document.addEventListener("pointerup",()=>s.enable(),{once:!0})}s.pressX=t.pageX,s.pressY=t.pageY},onDragStart:function(){s.forceScroll="up"===this.getDirection()&&SR7.F.module.isLastSlide(e)||"down"===this.getDirection()&&SR7.F.module.isFirstSlide(e)},onDrag:function(e){s.releaseX=e.pageX??s.releaseX??s.pressX,s.releaseY=e.pageY??s.releaseY??s.pressY},onDragEnd:function(){var i=this.getDirection(),a=SR7.F.getRTLMode(e);a&&"left"===i?i="right":a&&"right"===i&&(i="left");var r=Math.abs(s.releaseX-s.pressX);if(Math.abs(s.releaseY-s.pressY)>r){if("right"===i||"left"===i)return}else if("up"===i||"down"===i)return;return s.forceScroll||"vertical"==s.d&&"up"==i&&SR7.F.module.isLastSlide(e)||"vertical"==s.d&&"down"==i&&SR7.F.module.isFirstSlide(e)?SR7.F.scrollTo(e,"up"===i?SR7.M[e].c.module.offsetTop+SR7.M[e].dims.module.h:document.documentElement.scrollTop-(window.innerHeight-SR7.M[e].c.module.getBoundingClientRect().top)):(_tpt.is_mobile&&(SR7.M[e].settings.nav?.nd??0)>200&&(SR7.M[e].settings.nav.nd=50),"horizontal"==s.d&&"left"==i||"vertical"==s.d&&"up"==i?(t(e),SR7.F.requestSlide({id:e,slide:"+1"}),!1):"horizontal"==s.d&&"right"==i||"vertical"==s.d&&"down"==i?(t(e),SR7.F.requestSlide({id:e,slide:"-1"}),!1):void 0)}})},wheel:function(e){if(SR7.F.module.wheelModules??=[],!SR7.F.module.wheelModules.length)return;let t=document.elementFromPoint(e.x,e.y);for(let s of SR7.F.module.wheelModules){let i=SR7.M[s];if(!t.closest(`#${i.c.module.id}`))continue;let a=_tpt.normalizeWheel(e),r=i.settings.nav.m,n=r.v/100,o=window.pageYOffset||document.documentElement.scrollTop,l=SR7.F.module["reverse"==r.r?"isLastSlide":"isFirstSlide"](s),d=SR7.F.module["reverse"!==r.r?"isLastSlide":"isFirstSlide"](s);i.dims.moduleRect=SR7.M[s].c.module.getBoundingClientRect();let c=SR7.F.calculateVisiblePercentage(i.dims.moduleRect),p=a<0?-1:1,u=!1,h=!1;if(r.cd??=parseInt(r.cd??1500),!(n-c<=r.st/100)||c>=n||i.dims.moduleRect.top>=0&&-1===p||i.dims.moduleRect.top<=0&&1===p||(h=!0,i.mScrollTween||(i.mScrollTween=SR7.F.scrollTo(s,o+i.dims.moduleRect.top+(p*("reverse"==r.r?-1:1)==1?i.dims.moduleRect.height-_tpt.winH:0),_tpt.isWebkit?1:.7,"power2.out",function(){SR7.M[s].dims.moduleRect=SR7.M[s].c.module.getBoundingClientRect(),SR7.M[s].mScrollTween.kill(),delete SR7.M[s].mScrollTween}))),Math.abs(c-n)<.1||c>=n||Math.abs(c-n)>=.1&&c<n&&(p*("reverse"==r.r?-1:1)==1&&Math.abs(_tpt.winH-i.dims.moduleRect.top-i.dims.moduleRect.height)/i.dims.moduleRect.height<.1||p*("reverse"==r.r?-1:1)==-1&&Math.abs(i.dims.moduleRect.top)/i.dims.moduleRect.height<.1)){if(SR7.F.isCarousel(s)&&i.c.carousel?.src)return i.c.carousel.src.wheel(a,r,e)?(e.preventDefault(),!1):(i.mScrollTween&&(SR7.M[s].dims.moduleRect=SR7.M[s].c.module.getBoundingClientRect(),SR7.M[s].mScrollTween.kill(),delete SR7.M[s].mScrollTween),!0);let t="reverse"===r.r&&p<0||"reverse"!==r.r&&p>
280?"reverse"!==r.r?0:1:"reverse"!==r.r?1:0;return 0===t&&!d||1===t&&!l?(t=0==t?"reverse"==r.r?"-1":"+1":"reverse"==r.r?"+1":"-1",!0!==i.wheelAction&&(SR7.F.requestSlide({id:s,slide:t}),i.wheelAction=!0,setTimeout(function(){i.wheelAction=!1},r.cd))):!0!==i.wheelAction&&(u=!0),u?(i.mScrollTween&&(SR7.M[s].dims.moduleRect=SR7.M[s].c.module.getBoundingClientRect(),SR7.M[s].mScrollTween.kill(),delete SR7.M[s].mScrollTween),!0):(e.preventDefault(),!1)}h&&e.preventDefault()}},updateMouseCoordinates:(e,t)=>{const s=SR7.M[e];let i,a;if(t.type.includes("touch")){if(void 0===t.touches[0])return;i=t.touches[0].clientX,a=t.touches[0].clientY}else i=t.clientX,a=t.clientY;const r=void 0===s.mouse.enterX||void 0===s.mouse.enterY||"mouseenter"===t.type||"touchstart"===t.type;r&&SR7.F.module.box(e);const n=!SR7.E.backend&&s.settings.sbt?.use&&s.settings.sbt?.f?s.c.content.getBoundingClientRect():s.dims.moduleRect;r&&(s.mouse.enterX=i-n.left,s.mouse.enterY=a-n.top),"mousemove"!==t.type&&"touchmove"!==t.type&&"dragmove"!==t.type||(s.mouse.x=i,s.mouse.y=a,s.mouse.relX=i-("dragmove"===t.type||s.settings.size.fullWidth?0:n.left+s.dims.content.mwshiftx),s.mouse.relY=a-("dragmove"===t.type?_tpt.scrollObserver.y+n.top:n.top),s.mouse.eDX=s.mouse.enterX-s.mouse.relX,s.mouse.eDY=s.mouse.enterY-s.mouse.relY,s.mouse.cDX=s.dims.module.w/2-s.mouse.relX,s.mouse.cDY=s.dims.module.h/2-s.mouse.relY),"touchstart"!==t.type&&"touchend"!==t.type||(s.mouse.relX=i-(s.settings.size.fullWidth?0:n.left+s.dims.content.mwshiftx),s.mouse.relY=a-n.top,s.mouse.eDXF=s.mouse.cDXF=s.dims.module.w/2-s.mouse.relX,s.mouse.eDYF=s.mouse.cDYF=s.dims.module.h/2-s.mouse.relY)},reg:(e,t,s,i)=>{const a=SR7.M[e];a.mouse??={},t=t.split(" ");let r=Math.round(1e6*Math.random());for(let e in t)void 0!==(a.c.moduleListeners?.[t[e]]?.[r]??void 0)&&r++;for(let n in t)0==(a.c.moduleListeners?.[t[n]]??!1)&&_tpt.event.listen(a.c.module,t[n],SR7.F.module.listeners.mouse,{id:e},i),a.c.moduleListeners??={},a.c.moduleListeners[t[n]]??={},a.c.moduleListeners[t[n]][r]=s;return r},del:(e,t,s)=>{SR7.M[e]?.c?.moduleListeners?.[t]?.[s]&&delete SR7.M[e].c.moduleListeners[t][s]},fire:(e,t)=>
28{SR7.M[e]?.c?.module&&SR7.F.module.listeners.mouse(t,{id:e})}}},SR7.F.getRequiredResources=function(e){const t=Array(50),s=SR7.M[e];let i=0;if(SR7.R?.nav&&(t[i++]="navigation",t[i++]="cssnav"),t[i++]="media",t[i++]="cssmedia",SR7.R?.cssbtns&&(t[i++]="cssbtns"),SR7.R?.bgpattern&&(t[i++]="bgpattern"),SR7.R?.counter&&(t[i++]="counter"),SR7.R?.surface&&(t[i++]="surface"),SR7.R?.glow&&(t[i++]="glow"),SR7.F.sbt?.storyWanted?.(e)&&(t[i++]="story"),void 0!==s.settings.addOns)for(let e in s.settings.addOns)_tpt.hop(s.settings.addOns,e)&&0!=s.settings.addOns[e]&&(void 0!==SR7.E.resources[e]&&(t[i++]=e),void 0!==SR7.E.resources["css"+e]&&(t[i++]="css"+e));for(let e in SR7.E.gAddons)_tpt.hop(SR7.E.gAddons,e)&&(void 0!==SR7.E.resources[e]&&(t[i++]=e,s.settings.addOns??={},s.settings.addOns[e]={u:!0}),void 0!==SR7.E.resources["css"+e]&&(t[i++]="css"+e));return t},SR7.F.getNewId=async function(e,t,s){return new Promise((i,a)=>{"slide"===e&&void 0!==t?i(t):"module"===e&&void 0!==s?i(s):"slide"===e&&null==s?a(null):_tpt.ajax({action:"get_"+e+"id",data:{module:s},callBack:e=>i(e),errorHandler:e=>a(e)})})},SR7.F.getGlobalZoneHeights=e=>{SR7.M[e].zones??={},SR7.M[e].zones.globals??={},SR7.M[e].zones.globals.all=0;for(let t in SR7.M[e].staticSlides)_tpt.hop(SR7.M[e].staticSlides,t)&&(SR7.M[e].zones.globals.all=Math.max(SR7.M[e].zones.globals.all||0,SR7.F.getZoneHeights(e,SR7.M[e].staticSlides[t])||0));return SR7.M[e].zones.globals.all||0},SR7.F.getZoneHeights=function(e,t){let s=SR7.M[e];if((null!=t||null!=s.current)&&-1!=s.current.id&&(t??=s.current.id,s.zones[t]&&null!=s.zones[t].zones)){s.zones[t].all=0;for(let e in s.zones[t].zones)s.zones[t].zones[e]=s.c.layers[SR7.lToK[e]].el.offsetHeight,s.zones[t].all+=s.zones[t].zones[e];return s.zones[t].all}},SR7.F.getONavs=e=>{const t=SR7.M[e];t.dims.outNav={w:0,h:0,x:0,y:0,align:"left"};for(let s of["tabs","thumbs","scrubber"])if(t.settings.nav?.[s]?.set){let i=t.settings.nav?.[s];if("i"==i.io||0==(i?.show?.[t.LEV]??!0))continue;let a=2*SR7.gV({v:i.wr.p,id:e,u:0});"vertical"==SR7.gV({v:i.d,id:e,u:0})?(t.dims.outNav.w=Math.max(t.dims.outNav.w,SR7.gV({v:i.size.w,id:e,u:0,a:!0})+a),t.dims.outNav.x="left"==SR7.gV({v:i.h,id:e,u:0})?t.dims.outNav.w:-t.dims.outNav.w/2,t.dims.outNav.align="left"==SR7.gV({v:i.h,id:e,u:0})?"left":"right"):(t.dims.outNav.h=Math.max(t.dims.outNav.h,SR7.gV({v:i.size.h,id:e,u:0})+a),t.dims.outNav.y="top"==SR7.gV({v:i.v,id:e,u:0})?t.dims.outNav.h:0,t.dims.outNav.align="top"==SR7.gV({v:i.v,id:e,u:0})?"top":"bottom")}};const e=(e,t,s)=>{let i=SR7.gV({v:t.settings.size.m?.[s]??0,id:e,u:0});(t.dims.margins?.[s]??0)!==i&&(t.c.module.style["margin"+("t"==s?"Top":"Bottom")]=i+"px",t.dims.margins??={},t.dims.margins[s]=i),t.offsetPrepared&&t.c.bgcanvas&&(t.c.bgcanvas.style.visibility="visible",delete t.offsetPrepared)};function t(e){if(!_tpt.is_mobile)return;const t=SR7.M[e];t.settings.slideshow.auto&&t.settings.slideshow.sOH&&!0===t.slideShow.sOH&&setTimeout(()=>{SR7.slideShow.resumeOnLeave(e)},350)}SR7.F.updateModuleDims=function(e,t,s,i){return new Promise(a=>{null==_tpt.winWAll&&_tpt.getWinDim();let r=SR7.M[e],n=_tpt.tf(r.settings.size.MMOU??!0),o=_tpt.tf(r.settings.size.FHOU??!0),l=SR7.F.isCarousel(e);if(!r.c.module||!r.c.module.isConnected)return;if(SR7.E.backend&&r.c.module.offsetWidth<=0){if(r._dimsWaitTries=(r._dimsWaitTries||0)+1,r._dimsWaitTries<=60)return setTimeout(()=>{SR7.F.updateModuleDims(e,t,s,i)},100),a()}else r._dimsWaitTries=0;r.dims.module.w=l||!r.settings.size.keepFlow||r.settings.size.fullWidth?!SR7.E.backend&&r.settings.size.fullWidth?_tpt.winW:r.c.module.offsetWidth:Math.min(SR7.E.backend?r.c.module.offsetWidth:r.c.module.parentNode.offsetWidth,SR7.gV({v:r.settings.size.width,id:e,u:0,s:"keep",m:"round"}));const d=r.LEV;!SR7.E.backend&&(r.LEV=_tpt.getResponsiveLevel(SR7.G.breakPoints,e)),SR7.F.getONavs(e),r.dims.cache??=[],r.dims.cache.push({w:_tpt.winW,h:_tpt.winH}),r.dims.cache.length>10&&r.dims.cache.shift();let c=SR7.gV({v:r.settings.size.width,id:e,u:0,s:"scale",m:"round"}),p=SR7.F.modHeight(e);if(!r.settings.size.fullWidth&&0==r.dims.module.w&&0==r.dims.module.h){try{"flex"==getComputedStyle(r.c?.module?.parentNode?.parentNode)?.display&&(r.c.module.parentNode.style.width="100%"),r.dims.module.w=c,r.dims.module.h=p}catch{}console.log(r.alias," set to auto width but its parents element Dimension is 0px. Please check parrent element ! ")}r.dims.reduceHeight=r.settings.size.fullHeight&&!r.states?.inFullscreen&&SR7.F.getContsHeights(o?r.settings.size.fullHeightOffset:"",r.dims.module.h)||0,r.dims.padding={t:r.settings.size.MSOU??1?SR7.gV({v:r.settings.size.p?.t??0,id:e,u:0}):0,b:r.settings.size.MSOU??1?SR7.gV({v:r.settings.size.p?.b??0,id:e,u:0}):0,l:r.settings.size.MSOU??1?SR7.gV({v:r.settings.size.p?.l??0,id:e,u:0}):0,r:r.settings.size.MSOU??1?SR7.gV({v:r.settings.size.p?.r??0,id:e,u:0}):0},r.dims.CFC.w=Math.min(c,r.dims.module.w-r.dims.outNav.w)||0,r.MP=SR7.stage?.carousel?.isCarousel?.()||l&&r.settings.carousel.justify?1:!SR7.E.backend&&r.settings.size.upscaling?_tpt.winW/r.dims.CFC.w:Math.min(1,r.dims.CFC.w/c);const u=!SR7.E.backend&&(r.settings.sbt?.use??!1)&&r.settings.type===(SR7.F.sbt?.storyType??"story")&&(r.settings.sbt?.fitH??!0),h=(r.settings.sbt?.use??!1)&&!u,g=u&&_tpt.is_mobile&&r.settings.mobileURLJumpFix?_tpt.vpH("svh"):_tpt.winH;r.useHMP=(!h&&(r.settings.size.fullHeight||u)&&g<p||h&&_tpt.winW<c)&&r.LEV<3,r.useHMP?(h||(r.MP=Math.min(r.MP,Math.max(u?0:_tpt.is_mobile?320:640,g-r.dims.reduceHeight)/p)),r.dims.CFC.w=Math.min(c*r.MP,r.dims.module.w-r.dims.outNav.w)||0):r.useHMP=!0,r.dims.zones=Math.max(SR7.F.getGlobalZoneHeights(e)||0,SR7.F.getZoneHeights(e)||0);
28let m=n?SR7.gV({v:r.settings.size.minHeight,id:e,u:0}):0;m="none"==m?0:m;let f=_tpt.is_mobile&&r.settings.size.fullHeight&&_tpt.is_mobile&&r.settings.mobileURLJumpFix?Math.max(p,Math.max(r.dims.zones,_tpt.vpH("svh"))):r.settings.size.respectRatio?p/c*r.dims.module.w:n?SR7.gV({v:r.settings.size.maxHeight,id:e,u:0}):0;if(r.dims.module.h=Math.ceil(r.settings.size.respectRatio?p/c*r.dims.module.w:Math.max(r.dims.zones,Math.max(r.settings.size.fullHeight?_tpt.is_mobile&&r.settings.mobileURLJumpFix?_tpt.vpH("svh"):_tpt.winH:0,Math.max(p,m)*(r.settings.size.keepBPHeight?1:r.MP)))),SR7.E.backend&&r.settings.size.fullHeight&&r.dims.module.h<SR7.F.modHeight(e)+60&&(r.dims.module.h=SR7.F.modHeight(e)+60),f>0&&(r.dims.module.h=Math.min(f,r.dims.module.h)),r.useAsModal&&(r.dims.module.h<_tpt.winH?(r.c.module.style.inset="50% 0px auto",r.c.module.style.transform="translate(0px, -50%)"):(r.c.module.style.inset="auto",r.c.module.style.transform="translate(0px, 0px)")),l&&(r.dims.carousel={pT:parseInt(r.settings.carousel.pT??0)*r.MP,pB:parseInt(r.settings.carousel.pB??0)*r.MP},r.settings.size.fullHeight||"v"!==r.settings.carousel.type||(r.dims.module.pNV=_tpt.posToNum(r.settings.carousel.pNV,r.dims.module.h),r.dims.module.h+=r.dims.module.pNV)),r.dims.CFC.h=Math.max(r.dims.zones,Math.max(p,m)*(r.settings.size.keepBPHeight?1:r.MP)),SR7.E.backend&&r.settings.size.fullHeight){let e=0;r.dims.module.h=r.dims.module.w<778?Math.max(r.dims.CFC.h+e,Math.min(Math.max(1.3*r.dims.CFC.h,r.dims.module.w/9*16),_tpt.winH-180)):_tpt.winH-180>r.dims.CFC.h+e?_tpt.winH-180:r.dims.CFC.h+e}r.dims.module.h-=parseFloat(r.dims.reduceHeight),r.dims.content.h=r.dims.module.h,r.settings.size.fullWidth&&SR7.F.module.box(e);let S=SR7.E.backend?r.dims.module.w:(r.settings.size.fullWidth?_tpt.winWAll:r.dims.module.w)-(null==r.settings.size.p?0:r.dims.padding.l+r.dims.padding.r)-r.dims.outNav.w;if(r.dims.content.w=SR7.E.backend?Math.min(parseInt(_tpt.posToNum(!!n&&r.settings.size.maxWidth,r.dims.module.w))||r.dims.module.w,S):r.settings.size.fullWidth?S:Math.min(parseInt(_tpt.posToNum(!!n&&r.settings.size.maxWidth,_tpt.winWAll))||_tpt.winWAll,S),r.dims.content.mwshiftx=(S-r.dims.content.w)/2,r.dims.module.h+=parseFloat((null==r.settings.size.p?0:parseFloat(r.dims.padding.t)+parseFloat(r.dims.padding.b))+parseFloat(r.dims.outNav.h)+(l?parseFloat(r.dims.carousel.pT)+parseFloat(r.dims.carousel.pB):0)),r.dims.content.shiftx=r.dims.outNav.x<0?0-(r.settings.size.fullWidth?r.dims.moduleRect.left??0:0):r.settings.size.fullWidth?-(r.dims.moduleRect.left??0)+parseFloat(r.dims.padding.l)+parseFloat(r.dims.outNav.x):parseFloat(r.dims.padding.l)+parseFloat(r.dims.outNav.x),r.dims.content.shifty=parseFloat(r.dims.padding.t)+parseFloat(r.dims.outNav.y)+parseFloat(l?r.dims.carousel.pT:0),r.dims.CFC.x=Math.max(0,(r.dims.content.w-r.dims.CFC.w)/2),r.dims.CFC.y=Math.max(0,(r.dims.content.h-r.dims.CFC.h)/2),r.dims.content.cw=r.dims.content.w,r.dims.content.ch=r.dims.content.h,r.dims.CFC.cw=r.dims.CFC.w,r.dims.CFC.ch=r.dims.CFC.h,r.settings.sbt?.use&&(r.sbt??={},SR7.F.sbt?.storyMode?.(e)?SR7.F.sbt.story.map(e):(r.sbt.__len=SR7.slideShow?.getLen(e),r.sbt.__slen=parseInt(r.settings.sbt.fStart??0),r.sbt.__elen=(r.sbt.__len??9e3)-parseInt(r.settings.sbt.fEnd??r.sbt?.__len??9e3),r.sbt.__mlen=(r.sbt.__len??9e3)-(r.sbt.__slen+r.sbt.__elen),!SR7.E.backend&&r.settings.sbt?.f&&(r.dims.sbt=Math.max(2*r.dims.module.h,(r.sbt.__len??9e3)/3)))),l){r.dims.CFC.ch=r.dims.CFC.h="v"===r.settings.carousel.type?Math.min(r.dims.module.h,SR7.F.modHeight(e,"keep")):Math.min(r.dims.content.h,r.dims.module.h),r.settings.carousel.justify&&SR7.F.getSlideARatios(e);for(let t in r.c.slides)if(_tpt.hop(r.c.slides,t))if(r.dims.CFC[t]??={},r.dims.content[t]??={},r.dims.CFC[t].cw=r.dims.CFC[t].w=r.slides[t].slide.global?r.settings.carousel.justify?r.dims.content.w:r.dims.CFC.w:"v"===r.settings.carousel.type?r.dims.CFC.w:r.settings.carousel.justify?r.dims.module.h*r.slideRatios[t]||r.dims.CFC.w:r.settings.carousel.stretch?r.dims.module.w:r.dims.CFC.w,r.dims.CFC[t].cw=r.dims.CFC[t].w=Math.min(r.dims.CFC[t].cw,r.dims.module.w),r.dims.CFC[t].ch=r.dims.CFC[t].h=r.slides[t].slide.global?r.dims.CFC.h+(r.settings.carousel.justify?0:r.dims.carousel.pT+r.dims.carousel.pB):(r.slides[t].slide.fullHeight,r.dims.CFC.h),r.slides[t].slide.global&&!r.settings.carousel.justify&&(r.dims.CFC[t].x=r.dims.CFC.x,r.dims.CFC[t+"_slide"]??={},r.dims.CFC[t+"_slide"].cw=r.dims.CFC[t+"_slide"].w=r.dims.module.w,r.dims.CFC[t+"_slide"].ch=r.dims.CFC[t+"_slide"].h=r.dims.CFC[t].ch,r.dims.CFC[t+"_slide"].x=0),"v"===r.settings?.carousel?.type){r.dims.CFC[t].x=r.dims.CFC.x,r.dims.CFC[t].y=0;const s=SR7.F.carouselShrinkV(e);r.dims.CFC[t+"_full"]??={},r.dims.CFC[t+"_full"].cw=r.dims.CFC[t+"_full"].w=s?r.dims.CFC.w:r.dims.content.w,r.dims.CFC[t+"_full"].ch=r.dims.CFC[t+"_full"].h=r.dims.CFC[t].ch,r.dims.CFC[t+"_full"].x=s?r.dims.CFC.x:r.dims.content.x}else r.slides[t].slide.global&&r.settings.size.fullHeight&&(r.dims.CFC[t].x=0,r.dims.CFC[t].y=0)}else if(SR7.stage?.carousel?.isCarousel?.()&&(r.dims.CFC.ch=r.dims.CFC.h=r.dims.content.ch=r.dims.content.h=SR7.stage.carousel.getHeight(),r.dims.CFC.cw=r.dims.CFC.w=SR7.stage.carousel.getW
28idth("CFC"),r.dims.content.cw=r.dims.content.w=r.dims.module.w=SR7.stage.carousel.getWidth(),r.dims.CFC.x=(r.dims.content.cw-r.dims.CFC.w)/2,r.dims.CFC.y=0,r.dims.carousel={pT:parseInt(r.settings.carousel.pT??0)*r.MP,pB:parseInt(r.settings.carousel.pB??0)*r.MP},"v"===r.settings?.carousel?.type)){if(SR7.F.carouselShrinkV(e))for(let e in r.c.slides)_tpt.hop(r.c.slides,e)&&(r.dims.CFC[e+"_full"]??={},r.dims.CFC[e+"_full"].cw=r.dims.CFC[e+"_full"].w=r.dims.CFC.w,r.dims.CFC[e+"_full"].ch=r.dims.CFC[e+"_full"].h=r.dims.CFC.h,r.dims.CFC[e+"_full"].x=0,r.dims.CFC[e+"_full"].y=0)}return SR7.F.updateModuleBG(e),r.useAsModal&&SR7.F.modal.visible&&SR7.F.modal.requested==r.alias&&(SR7.F.modal.updatePos(),SR7.F?.modal?.sbt&&(SR7.F.modal.wrap.style.height=r.dims.moduleRect.height+"px")),SR7.E.backend&&SR7.global.breakPoints[r.LEV]==r.dims.module.w&&(r.settings.size.cachedHeight[r.LEV]=r.dims.module.h),t?_tpt.is_mobile&&r.dims.lastHeight&&r.dims.content.Ccw==r.dims.content.w&&r.dims.content.Cch==r.dims.content.h&&r.dims.CFC.Ccw==r.dims.CFC.w&&r.dims.CFC.Cch==r.dims.CFC.h?(_tpt.ghostUpdate(),a()):(r.dims.content.Ccw=r.dims.content.w,r.dims.content.Cch=r.dims.content.h,r.dims.CFC.Ccw=r.dims.CFC.w,r.dims.CFC.Cch=r.dims.CFC.h,i||cancelAnimationFrame(r.updateModuleDimsrAF),r.updateModuleDimsrAF=requestAnimationFrame(function(){if("hero"!==r.settings.type&&SR7.F?.navigation?.update&&SR7.F.navigation.update(e),SR7.F.module.size(e),-1==(r.current?.id??-1))return l&&r.dims.oldWinW!==_tpt.winW&&(requestAnimationFrame(()=>{SR7.F.rebuildCarousel(e,!1)}),r.dims.oldWinW=_tpt.winW),_tpt.ghostUpdate(),a();if(function(e){if(e.length<10)return!1;let t=e.slice(-10),s=[];for(let e=0;e<t.length;e++)s.some(s=>s.w===t[e].w&&s.h===t[e].h)||s.push(t[e]);return 2===s.length}(r.dims.cache)&&(_tpt.getWinDim(),!0!==s&&_tpt.winW>=r.dims.module.w))return _tpt.ghostUpdate(),a();_tpt.scrollObserver.run(r.c.module,!0),SR7.F.drawRawLayers(e,r.current.id,"update");const i=t=>{SR7.F.sbt?.storyMode?.(e)&&r.c.slides?.[t]&&"none"===getComputedStyle(r.c.slides[t]).display?(r.sbt.__redraw??={})[t]=!0:SR7.F.drawRawLayers(e,t,"update")};if(SR7.F.sbt?.storyMode?.(e))for(const e in r.sbt?.__mounted??{})!0===r.sbt.__mounted[e]&&String(e)!==String(r.current.id)&&i(e);for(let t in r.staticSlides)_tpt.hop(r.staticSlides,t)&&""!=r.staticSlides[t]&&SR7.F.drawRawLayers(e,r.staticSlides[t],"update");if(d!==r.LEV)for(let e in r.prepareMap)_tpt.hop(r.prepareMap,e)&&!0===r.prepareMap[e]&&e!=r.current.id&&i(e);SR7.F.sbt?.storyMode?.(e)&&SR7.F.sbt.story.paint(e,r.sbt?.__focus??0),l&&requestAnimationFrame(()=>{SR7.F.rebuildCarousel(e,"height"!==t,"height"!==t)}),_tpt.getWinDim(),r.dims.cache[r.dims.cache.length-1].w===_tpt.winW&&r.dims.cache[r.dims.cache.length-1].h===_tpt.winH||SR7.F.updateModuleDims(e,!0),_tpt.ghostUpdate()}),void a()):(_tpt.ghostUpdate(),a())})},SR7.F.updateModuleBG=function(e){const t=SR7.M[e];null==t.c.bgOverlay&&t.settings.bg?.overlay?.type&&"function"==typeof SR7.F.addOverlay&&(null==t.c.bgcanvas&&_tpt.bgStyle(e,void 0,!1,!0,!0),t.c.bgOverlay=SR7.F.addOverlay(t.settings.bg.overlay),t.c.bgcanvas.appendChild(t.c.bgOverlay));const s=t.settings.bg?.mesh,i=t.settings.bg?.mot;if(("none"!==(s?.k??"none")||(s?.gr??0)>0||"none"!==(i?.a??"none"))&&"function"==typeof SR7.F.bgColorEl&&(null==t.c.bgcanvas&&_tpt.bgStyle(e,void 0,!1,!0,!0),t.c.bgcanvas)){const e=SR7.F.bgColorCSS(t.settings.bg.color),a="none"!==(s?.k??"none")?SR7.F.bgMeshCSS?.(s):e.includes("gradient")?e:void 0;SR7.F.bgColorEl(t.c.bgcanvas,a,i,!0),SR7.F.bgGrainEl(t.c.bgcanvas,s?.gr)}if(null!=t.c.bgcanvas){if(t.c.bgcanvas.dataset.pos??=t.c.bgcanvas.closest("SR7-CONTENT")?"content":"module",SR7.E.backend&&(t.dims.moduleRect=t.c.module.getBoundingClientRect()),t.c.bgcanvas.style.width=SR7.E.backend?t.c.module.offsetWidth+"px":t.settings.size.fullWidth?_tpt.winW+"px":t.dims.content.w+(t.dims.outNav?.w??0)+"px",t.c.bgcanvas.style.height=SR7.E.backend?t.c.module.offsetHeight+"px":(!SR7.E.backend&&("carousel"===t.settings.type?parseInt(t.dims.module.h):parseInt(t.dims.content.h)+(parseInt(t.dims.padding.t??0)+parseInt(t.dims.padding.b??0))+parseInt(t.dims.outNav?.h??0)))+"px",t.c.bgcanvas.style.left=SR7.E.backend||t.settings.sbt?.use&&t.settings.sbt?.f||"content"==t.c.bgcanvas.dataset.pos?"0px":(t.settings.size.fullWidth?t.dims.content.mwshiftx+t.dims.content.shiftx:0)+(t.dims.padding?.l??0)-("left"==(t.dims.outNav?.align??"left")&&t.settings.size.fullWidth?t.dims.outNav?.w??0:0)+"px",t.settings.size.fullWidth||0===t.dims.padding.t||(t.c.bgcanvas.style.top=0-t.dims.padding.t+"px"),SR7.stage?.carousel?.isCarousel?.()){t.c.bgcanvas.style.top="v"!==t.settings.carousel.type?0-t.dims.carousel.pT+"px":"0px";const e=SR7.E.backend?t.c.module.offsetHeight:t.dims.moduleRect.height;t.c.bgcanvas.style.height="v"!==t.settings.carousel.type?e+t.dims.carousel.pB+t.dims.carousel.pT+"px":e+"px"}if(t.c.bgOverlay){const e=_tpt.tf(t.settings.bg.overlay?.top),s=t.c.bgOverlay,i=e?t.c.bgcanvas.parentNode:t.c.bgcanvas;i&&s.parentNode!==i&&i.appendChild(s);for(const i of["width","height","left","top"])s.style[i]=e?t.c.bgcanvas.style[i]:"";s.style.zIndex=e?SR7.E.backend?2:1001:"",s.style.pointerEvents=e?"none":""}}},SR7.F.callBackHandler=(e,t,s)=>{if(SR7.M[e].c.callBacks)for(let i of SR7.M[e].c.callBacks)i.inmodule==t&&i.atposition==s&&void 0!==i.callback&&i.callback.call()},_tpt.R??={},_tpt.R.module=_tpt.extend?_tpt.extend(_tpt.R.module,{status:2,version:"7.1.0"}):{status:2,version:"7.1.0"}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.