!function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.A??={},SR7.F??={},SR7.D??={},void 0!==SR7.A.polyfold)return;let t={pI:t=>parseInt(t),pID:t=>parseInt(t)/100,pF:t=>parseFloat(t),s:t=>String(t),b:t=>"on"===t||!0===t||1===t||"off"!==t&&!1!==t&&0!==t&&t,k:t=>t};SR7.A.polyfold={style:".rs-addon-polyfold {position: absolute;left: 0;width: 100%;height: auto;z-index: 1099;pointer-events: none;}.rs-addon-polyfold div {position: absolute;border-style: solid;box-sizing: content-box}.rs-addon-poly-nav-level {z-index: 999}.rs-addon-poly-static-level {z-index: 99}.rs-addon-polyfold:not(.rs-addon-poly-center) div:first-child {left: 0}.rs-addon-polyfold:not(.rs-addon-poly-center) div:last-child {right: 0}.rs-addon-poly-center div:first-child {right: 50%}.rs-addon-poly-center div:last-child {left: 50%}.rs-addon-polyfold:not(.rs-addon-poly-t), .rs-addon-polyfold:not(.rs-addon-poly-t) div {bottom: 0}.rs-addon-poly-t {top: 0}.rs-addon-poly-t div {top: 0}",getLayerBasics:(t={},e)=>({u:"compare"==e?void 0:t.u??t.enable??!1}),getModuleBasics:(e={},s)=>{let o="migrate"==s,i="normalize"==s,l={u:"compare"==s?void 0:e.u??e.enable??!0};e.t=e.t??e.top??{},e.b=e.b??e.bottom??{};for(let s of["t","b"])l[s[0]]={u:e[s[0]]?.u??e[s]?.enabled??!1,pos:s,a:e[s[0]]?.a??e[s]?.animated??!1,c:e[s[0]]?.c??(o?_tpt.gradient.convert(e[s]?.color??"#ffffff",!0):"#ffffff"),e:e[s[0]]?.e??e[s]?.ease??"ease-in-out",h:t[i?"pI":"k"](e[s[0]]?.h??e[s]?.height??100),mobile:e[s[0]]?.mobile??e[s]?.hideOnMobile??!1,i:e[s[0]]?.i??e[s]?.inverted??!1,left:t[i?"pI":"k"](e[s[0]]?.left??e[s]?.leftWidth??50),right:t[i?"pI":"k"](e[s[0]]?.right??e[s]?.rightWidth??50),neg:e[s[0]]?.neg??e[s]?.negative??!1,place:t[i?"pI":"k"](e[s[0]]?.placement??e[s]?.placement??1),point:e[s[0]]?.point??e[s]?.point??"sides",range:e[s[0]]?.range??e[s]?.range??"slider",resp:e[s[0]]?.responsive??e[s]?.responsive??!0,sc:e[s[0]]?.scroll??e[s]?.scroll??!0,t:e[s[0]]?.time??e[s]?.time??.3},i&&(l[s[0]].right*=.01,l[s[0]].left*=.01);return l},getLayerWraps:(t,e)=>{const s=SR7.M[t];if(""+(s.settings?.addOns?.polyfold?.u??!1)!="false"&&void 0!==e.addOns.polyfold&&"slidebg"!=e.subtype)return{wrap:{use:!0,class:"sr-wb-wrap"},innerWrap:{use:!0,class:"sr-wb-inner"}}},init:t=>{void 0===SR7.A.polyfoldcss&&(_tpt.injectCssJs(SR7.A.polyfold.style,void 0,void 0,"polyfold_global_styles"),SR7.A.polyfoldcss=!0);let e=SR7.M[t];SR7.M[t].c.moduleListeners??={},SR7.M[t].c.moduleListeners.polyfold??={},_tpt.scrollObserver.observe(SR7.M[t].c.module),SR7.F.module.listeners.init(t),_tpt.scrollObserver.observe(SR7.M[t].c.module),SR7.F.module.listeners.init(t),SR7.A.polyfold.listeners.init(t),e.addOns??={},e.addOns.polyfold??={},e.addOns.polyfold.settings=SR7.A.polyfold.getModuleBasics(e.settings.addOns.polyfold,"normalize");for(let o of["t","b"])e.addOns.polyfold.settings?.[o[0]]?.u&&(e.addOns.polyfold[o]=new s(t,e.addOns.polyfold.settings[o[0]]))},listeners:{init:t=>{let e=SR7.A.polyfold;e.listenersAdded?.[t]||(SR7.M[t].c.moduleListeners.polyfold.scroll??=SR7.F.module.listeners.reg(t,"scroll",(function(t){SR7.A.polyfold.scrolled(t)})),e.listenersAdded??={},e.listenersAdded[t]=!0)}},scrolled:t=>{for(let e of["t","b"])SR7.M[t].addOns.polyfold[e]&&SR7.M[t].addOns.polyfold[e].draw()}};let e={base:"rs-addon-polyfold",top:"rs-addon-poly-t",bottom:"rs-addon-poly-b",center:"rs-addon-poly-center",navLevel:"rs-addon-poly-nav-level",staticLevel:"rs-addon-poly-static-level"};function s(t,e){return this.id=t,this.settings=e,this.calc=!1,this.init(),this}s.prototype={init:function(){let t=SR7.M[this.id],s=this.settings,o=document.createElement("div"),i=document.createDocumentFragment();this.left=document.createElement("div"),this.right=document.createElement("div");let l=e[s.pos],d=e.base+" "+e[s.pos]+(s.place>1?" "+(2==s.place?e.navLevel:e.staticLevel):"");s.a&&_tpt.injectCssJs("#"+t.c.module.id+"_wrapper ."+l+" div {transition: border-width "+s.t+"s "+s.e+";}",void 0,void 0,this.id+"_"+s.pos+"_polyfold_styles"),"center"===s.point&&(d+=" "+e.center),i.appendChild(this.left),i.appendChild(this.right),o.className=d,o.appendChild(i),this.colors(),this.draw(),this.draw(),this.draw(),t.c.content.appendChild(o)},colors:function(){let t,e,s=this.settings,o="string"==typeof s.c?s.c:s.c.string;s.neg?(t="t"==s.pos?"transparent "+o+" transparent transparent":"transparent transparent "+o+" transparent",e=("t"==s.pos?o+" ":"")+"transparent transparent transparent "+("t"!==s.pos?o:"")):(t=("t"==s.pos?o+" ":"")+"transparent transparent transparent "+("t"!==s.pos?o:""),e="t"==s.pos?"transparent "+o+" transparent transparent":"transparent transparent "+o+" transparent"),this.left.style.borderColor=t,this.right.style.borderColor=e},draw:function(){let t,e,s,o=SR7.M[this.id],i=this.settings;if(this.drawHeight=this.range?o.dims.module.h:_tpt.winH,this.polyHeight=Math.min(this.responsive?Math.round(i.height*(o.dims.module.w/o.dims.CFC.w)):i.h,o.dims.module.h),i.sc){if(!(o.dims.moduleRect.top+window.pageYOffset<_tpt.winH+window.pageYOffset&&o.dims.moduleRect.bottom>0))return 1;{let e=this.left.getBoundingClientRect().top;if("t"!==i.pos)t=!1!==this.calc?i.i?o.dims.moduleRect.bottom:o.dims.moduleRect.bottom-this.calc:e,this.calc=i.i?this.polyHeight-this.polyHeight*((this.drawHeight-t)/this.drawHeight):this.polyHeight*((this.drawHeight-t)/this.drawHeight);else{var l=this.range?_tpt.winH-o.dims.module.h:0;t=!1!==this.calc?i.i?o.dims.moduleRect.top:parseInt(o.dims.moduleRect.top)+parseInt(this.calc):e,this.calc=i.i?this.polyHeight-this.polyHeight*((t-l)/this.drawHeight):this.polyHeight*((t-l)/this.drawHeight)}this.calc=Math.floor(Math.min(Math.max(this.calc,0),this.polyHeight))}}else this.calc=this.polyHeight;if(i.neg?"t"!==i.pos?(e="0 0 "+this.calc+"px "+Math.round(o.dims.module.w*i.left)+"px",s=this.calc+"px 0 0 "+Math.round(o.dims.module.w*i.right)+"px"):(e="0 "+Math.round(o.dims.module.w*i.left)+"px "+this.calc+"px 0",s=this.calc+"px "+Math.round(o.dims.module.w*i.right)+"px 0 0"):"t"!==i.pos?(e=this.calc+"px 0 0 "+Math.round(o.dims.module.w*i.left)+"px",s="0 0 "+this.calc+"px "+Math.round(o.dims.module.w*i.right)+"px"):(e=this.calc+"px "+Math.round(o.dims.module.w*i.left)+"px 0 0",s="0 "+Math.round(o.dims.module.w*i.right)+"px "+this.calc+"px 0"),this.left.style.borderWidth=e,this.right.style.borderWidth=s,i.sc)return t}},_tpt.R??={},_tpt.R.polyfold=_tpt.extend?_tpt.extend(_tpt.R.polyfold,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("SR7TypeWriterReady"))}();