\n \n \n \n `}(t,r))}`}async seek(t,e){const i=this.getMediaElement();if(!i)return;const s=this.globalToMediaTime(t);if(i.setAttribute("data-time",s),e)return void this.determineAndApplyPlayState(t,e);this.abortController.abort(),this.abortController=new AbortController;const{signal:n}=this.abortController;this.applyTransitions(this.getSceneTime());const a=this.endTime||s{this.svgElement.style.position="absolute",this.applyObjectFitAndPosition()}))}applyObjectFitAndPosition(){const t=this.svgElement;if(!t)return;const e=this.attributes.width,i=this.attributes.height;t.style.width=`${e}px`,t.style.height=`${i}px`,t.style.left="0",t.style.top="0"}create(t){return t?this.element=t:(this.element=document.createElement("div"),this.element.style.position="relative",this.element.style.overflow="hidden"),this.applyObjectFitAndPosition(),this.svgElement||this.load().then((()=>{this.svgElement.style.position="absolute",this.applyObjectFitAndPosition()})),this.applyStyle(!t),this.positionElement(),this.resizeElement(),this.element}positionElement(){super.positionElement(),this.applyObjectFitAndPosition()}resizeElement(){super.resizeElement(),this.applyObjectFitAndPosition()}applyFillStyle(){this.svgElement&&this.attributes.fill!==R&&(this.isSVGProcessed||this.attributes.fill===R||this.processSvgElement(),this.isGradient()?this.checkAndApplyGradient(this.attributes.fill):this.svgElement.setAttribute("fill",this.attributes.fill?this.attributes.fill:"none"))}applyStyle(t=!0){super.applyStyle(t),this.applyFillStyle(),this.applyObjectFitAndPosition()}processSvgElement(){this.svgElement&&(this.isSVGProcessed=!0,this.cleanSVG(),X.forEach((t=>{this.svgElement.querySelectorAll(t).forEach((t=>{t.setAttribute("fill","inherit")}))})))}cleanSVG(){this.svgElement&&(this.svgElement.removeAttribute("style"),this.svgElement.removeAttribute("class"),this.svgElement.querySelectorAll("*").forEach((t=>{t.removeAttribute("class"),t.removeAttribute("style"),"style"===t.tagName.toLowerCase()&&t.parentNode.removeChild(t)})))}load(){a("loading svg image");const{src:t}=this.attributes;return t?this.svgElement?Promise.resolve():h(t).then((t=>{this.svgElement||(this.element.innerHTML=t),this.applyFillStyle(),a("svg image loaded")})):Promise.reject(new Error(`No src attribute for layer ${this.uid}`))}forceRecreateSvgElement(t){return h(t).then((t=>{this.element.innerHTML=t,this.applyFillStyle()}))}isGradient(){return/^(linear-gradient)\(.*\)$/.test(this.attributes.fill)}checkAndApplyGradient(t){if(!this.svgElement)return;this.gradientId||(this.gradientId=`gradient-${Date.now()}`);const e=t.match(/(\d+)deg/),i=t.match(/rgba?\([^)]+\)\s*\d+%/g);if(!e||!i)return;const s=(parseInt(e[1],10)-90)*(Math.PI/180),n=`${Math.round(50+50*Math.sin(s))}%`,a=`${Math.round(50+50*Math.cos(s))}%`,r=`${Math.round(50-50*Math.sin(s))}%`,o=`${Math.round(50-50*Math.cos(s))}%`;let l=this.svgElement.querySelector(`#${this.gradientId}`);const c=this.svgElement.querySelector("defs")||this.svgElement.insertBefore(document.createElementNS("http://www.w3.org/2000/svg","defs"),this.svgElement.firstChild);l&&l.remove(),l=document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),l.setAttribute("id",this.gradientId),c.appendChild(l),l.setAttribute("x1",n),l.setAttribute("y1",a),l.setAttribute("x2",r),l.setAttribute("y2",o),i.forEach((t=>{const e=t.match(/(rgba?\([^)]+\))\s*(\d+)%/);if(!e)return;const i=e[1],s=e[2];if(!i||!s)return;const n=document.createElementNS("http://www.w3.org/2000/svg","stop");n.setAttribute("offset",`${s}%`),n.setAttribute("style",`stop-color:${i};`),l.appendChild(n)})),this.svgElement.setAttribute("fill",`url(#${this.gradientId})`)}}};class D{constructor(t,e){if(!V[t.type])throw new Error(`Unknown layer type ${t.type}`);return new V[t.type](t,e)}}class H{constructor({specification:t,loops:e,showBaseTransitionState:i,overrides:s,failSilently:n,maxDuration:a}){this.layerMap={},this.overrides=s,this.failSilently=n,this.maxDuration=a||30,this.update({specification:t,loops:e,showBaseTransitionState:i})}getLayerByUid(t){return this.specification.layers.find((e=>e.uid===t))}update({specification:t,loops:e,showBaseTransitionState:i}){this.specification=t,this.loops=e;const s=[];this.specification.layers.forEach((t=>{if(!1===t.visible||"group"===t.type)return;const{uid:e}=t;let n;this.layerMap.hasOwnProperty(e)?(n=this.layerMap[e],n.setSpecification(t)):(n=new D(Object.assign({},t,{failSilently:this.failSilently}),this.getSceneTime.bind(this)),n.scene=this,this.layerMap[e]=n),s.push(n),n.showBaseTransitionState=i,n.overrides=this.overrides}));for(const t in this.layerMap)this.layerMap.hasOwnProperty(t)&&(this.specification.layers.find((e=>e.uid===t&&!1!==e.visible))||(this.layerMap[t].dispose(),delete this.layerMap[t]));this.layers=s,this.duration=null,this.layers.forEach((t=>{this.duration=Math.max(this.duration,t.endTime)}))}create(t,e){this.sceneTime=0,this.layers.forEach((i=>{let s=null;if(e&&(s=t.querySelector(`[id="${i.uid}"]`)),!document.head.querySelector("#stq-capitalized-style")){const t=document.createElement("style");t.id="stq-capitalized-style",t.textContent=".stq-text-capitalized :first-child { text-transform: lowercase; } .stq-text-capitalized :first-child::first-letter { text-transform: uppercase; }",document.head.appendChild(t)}const n=s?i.create(s):i.create();i.calculateAndApplyVisibility(),s?!1===i.attributes.visible&&s.parentNode===t?t.removeChild(s):(t.appendChild(s),n.style.visibility=i.calculateVisibility()):!1!==i.attributes.visible&&t.appendChild(n),i.onAppend&&i.onAppend()}))}load(){a("Scene.load()");const t=Promise.all(this.layers.map((t=>t.load())));return a("Scene.load."),t}canSeek(t){const e=Math.floor(Math.min(this.maxDuration/this.duration,3));return t{const s=t.seek(this.sceneTime,e);s&&(a("Buffering layer",{layerId:t.uid,type:t.type}),i.push(s))})),i.length?Promise.all(i):null}play(){this.layers.forEach((t=>{t.play&&t.play()}))}pause(){this.layers.forEach((t=>{t.pause&&t.pause()}))}}function G(t){if("string"!=typeof t)return"";let e=t;return e=e.replace(/<|>|&/g,(t=>({"<":"&TEMP_LT",">":"&TEMP_GT","&":"&TEMP_AMP"}[t]))),e=function(t){return t.replace(/style="(.*?)"/g,(t=>t.replace(/;/g,"&SEMI_ESCAPE&")))}(e),e=e.split("\\;").join("&SEMI_ESCAPE&").split(";").join("\n").split("&SEMI_ESCAPE&").join(";"),e=e.replace(/\\\u061B/g,"&ARABIC_SEMI_ESCAPE&").replace(/\u061B/g,"\n").replace(/&ARABIC_SEMI_ESCAPE&/g,"\\u061B"),e=e.split("\n").map((t=>t.trim())).join("\n"),e=e.replace(/&TEMP_LT|&TEMP_GT|&TEMP_AMP/g,(t=>({"&TEMP_LT":"<","&TEMP_GT":">","&TEMP_AMP":"&"}[t]))),e}function N(t,e,i){t.attributes.src=i}const W={image:N,video:N,audio:N,fill:(t,e,i)=>{t.attributes.fill=i},text:(t,e,i)=>{t.attributes.text=`${e.prepend}${i}${e.append}`},dynamicFont:(t,e,i)=>{Object.assign(t.attributes,i)},visibility:(t,e,i)=>{t.attributes.visible=i}};let U=0;class J{constructor({blueprint:e,context:i,richTextStylingFonts:s={},reuseElements:n,keyboardEvents:a=!1,overrides:r,stageNodeId:o="stage"}){this.loadPromise=null,this.requestId=null,this.startTime=null,this.lastFrameTime=null,this.stopped=!1,this.blueprint=e,this.context=i,this.richTextStylingFonts=s,this.reuseElements=n,this.stage=document.getElementById(o),this.stage.style.width=t(this.blueprint.size.width),this.stage.style.height=t(this.blueprint.size.height),this.stage.style.position="relative",this.stage.style.overflow="hidden",this.stage.style.cursor="pointer",this.maxLoop=e.banner&&e.banner.loops?e.banner.loops:1,this.scene=new H({specification:e.scenes[0],loops:this.maxLoop,failSilently:e.failSilently,overrides:r,maxDuration:"banner"===e.mediaType?30:300}),this.duration=this.scene.duration,this.currentTime=0,this.sceneTime=0,a&&document.addEventListener("keydown",this.onKeydown.bind(this))}exit(){window.open(window.clickTag)}onKeydown(t){"."===t.key&&this.next(),","===t.key&&this.prev()," "===t.key&&(this.requestId?this.pause():this.play())}load({force:t}={}){return this.loadPromise&&!t||(this.loadPromise=new Promise((t=>{var e,i;this.blueprint.static||(e=this.blueprint,i=this.context,e.scenes.forEach((t=>{t.layers.forEach((t=>{Object.keys(t.dynamic).forEach((s=>{const n=t.dynamic[s];if("__laravel"!==s&&n.enabled){if(!W[s])throw new Error(`Unknown trait ${s}`);W[s](t,n,function(t,e,i,s){if((t.feature_flags||{}).multiConditionalDynamicVisibility&&"visibility"===s){const{conditionGroup:t}=e;if(!t||0===t.conditions.length)throw new Error(`conditionGroup ${JSON.stringify(t)} is missing`);return function(t,e){if(!t||!e)return!0;const{conditions:i,mode:s,type:n}=t;if(0===i.length||0===e.length)return!0;let a="and"===n,r=0;for(const t of i){const{parameter:i,type:s,values:o}=t,l=u(e,i);if(!l&&null!==l){r+=1;continue}const c="is"===s?o.includes(l):!o.includes(l);"and"!==n?"or"===n&&(a=a||c):a=a&&c}return r===i.length||("show"===s?a:!a)}(t,Object.keys(i).map((t=>({name:t,value:i[t]}))))}if(!(e.parameter in i))throw new Error(`Parameter ${e.parameter} is missing for ${s}`);const n=i[e.parameter],a=t.parameters.find((t=>t.name===e.parameter));if(!a)return n;if(!e.is_enum)return"text"===a.type?G(n):n;const r=a.values.find((t=>t.value===n));if(null!==n&&!r){if(t.failSilently)return null;const s=new Error(`Cannot find context value ${n} in parameter enum values`);throw s.context={context:i,dynamic:e,parameters:t.parameters,parameter:a,argument:n},s}if(!r)return null;let o=e.enum_mappings[r.value];return"text"===s&&(o=G(o)),o}(e,n,i,s))}}))}))}))),J.webSafeBlueprint(this.blueprint);const s=Object.entries(this.richTextStylingFonts).map((([t,e])=>{let i;return"string"==typeof e?i=e:({fontSrc:i}=e),l(t,"normal","normal",i)}));t(Promise.all(s).then((()=>(this.scene.create(this.stage,this.reuseElements),this.scene.load()))))}))),this.loadPromise}static webSafeBlueprint(t){const e=/\/v4\/open\/assets\/[0-9a-f]{32}/;for(const i of t.scenes)for(const t of i.layers)if("image"===t.type&&t.attributes.src&&t.attributes.src.match(e)){const e=new URL(t.attributes.src);e.searchParams.set("conversion","web-safe"),t.attributes.src=e.toString()}}static loadFallbackFont(t){const e=document.createElement("style");e.textContent=`\n @font-face {\n font-family: "Storyteq Fallback Font";\n font-weight: normal;\n font-style: normal;\n src: url("${t}");\n }\n `,document.head.appendChild(e)}checkGap(t){if(this.lastFrameTime){const e=t-this.lastFrameTime;e>.05&&a("Detected render gap",{frameTime:e,pageTime:t})}this.lastFrameTime=t}render(t){t/=1e3,this.checkGap(t);const e=t-this.startTime;if(!this.scene.canSeek(e))return a("Pausing due to playback end",{currentTime:e}),this.seek(this.duration-.001),this.pause(),this.stopped=!0,void a("Paused due to playback end");const i=this.seek(e,!0);i&&i.then?(a("Buffering"),i.then((()=>{a("Buffered"),this.frame()}))):this.frame()}seek(t,e){return this.currentTime=t,this.sceneTime=this.currentTime%this.duration,(Math.abs(this.sceneTime-U)>=1||U>this.sceneTime)&&(window.sendMessage({event:"seek",time:this.sceneTime}),U=this.sceneTime),this.scene.seek(t,e)}play(){this.requestId||(this.stopped&&(this.stopped=!1,this.currentTime=0,a("Replaying")),this.startTime=performance.now()/1e3-(this.currentTime||0%this.duration),window.sendMessage({event:"play",duration:this.duration,time:this.sceneTime}),this.frame(),a("Playing"))}frame(){this.requestId=requestAnimationFrame(this.render.bind(this))}next(){this.seek((this.getFrameNumber()+1)/this.blueprint.frame_rate)}prev(){this.seek((this.getFrameNumber()-1)/this.blueprint.frame_rate)}getFrameNumber(){return Math.floor((this.sceneTime*this.blueprint.frame_rate).toPrecision(12))}pause(){this.requestId&&(this.scene.pause(),window.sendMessage({event:"pause",time:this.sceneTime}),cancelAnimationFrame(this.requestId),this.requestId=null,this.lastFrameTime=null,this.startTime=null,a("Paused"))}setExit(...t){let e,i,s;switch(t.length){case 0:throw r("banner.setExit: Exit url is required");case 1:"function"==typeof t[0]?[s]=t:[i]=t,e="default";break;case 2:[e,i]=t;break;default:throw r("banner.setExit: Too many arguments",{args:t})}if(s)this.exit=s;else{if("string"!=typeof i)throw r(`banner.setExit: Exit url must be a string, ${i} given`,{url:i});window.clickTag=i}}setContext(...t){let e;switch(t.length){case 0:throw r("banner.setExit: Context is required");case 1:[e]=t;break;default:throw r("banner.setExit: Too many arguments",{args:t})}Object.keys(e).forEach((t=>{this.context[t]=e[t]}))}}const K=JSON.parse('{"static":true,"size":{"type":"mobile-banner","label":"320x50 - Mobile Banner","width":320,"guides":[],"height":50,"from_preset":"mobile_banner","source_size":"d9b4e900-3d85-4a7a-a9d2-dc84b7dd95af"},"frame_rate":25,"parameters":[{"name":"b23117e8-c360-4e44-8803-4a4df554eb55","type":"enum","label":"Logo","order":1,"value":"f6670f79-e86a-41b2-8d8a-3ca09766656f","active":true,"values":[{"label":"White","value":"8ffcc5b5-5bfd-45b7-9d7c-f49c1d8e2e64"},{"label":"Color","value":"50c5689c-92bc-4b2a-a238-36bd0a85617a"},{"label":"No logo","value":"f6670f79-e86a-41b2-8d8a-3ca09766656f"}],"required":true,"text_style_rules":{"strict_fonts":[]}},{"name":"background_color","type":"enum","label":"Background Color","order":2,"value":"085d2756-83c6-4fb6-8ba0-1ff6c57ac1f6","active":true,"values":[{"label":"Orange","value":"061a59bc-af96-408e-827c-8aac4f898cb8"},{"label":"Gradient","value":"92d25365-d057-4027-be2b-03282fc87c2a"},{"label":"Red","value":"4bf25950-44df-4e69-8665-1ee59e103dc3"},{"label":"Navy","value":"085d2756-83c6-4fb6-8ba0-1ff6c57ac1f6"}],"required":true,"input_type":null,"max_length":0},{"name":"gym_pass","type":"text","label":"Guest Pass","order":3,"value":"3 day guest pass","active":true,"values":[],"required":true,"input_type":null,"text_style_rules":{"strict_fonts":[],"supports_bold":false,"supports_fonts":false,"brand_font_sets":[],"supports_italic":false,"brand_color_sets":[],"cache_strict_fonts":[],"strict_fill_colors":[],"brand_fonts_enabled":false,"brand_colors_enabled":false,"strict_fonts_enabled":false,"supports_fill_colors":false,"cache_strict_fill_colors":[],"strict_fill_colors_enabled":false}},{"name":"select_image","type":"image","label":"Select Image #1","order":4,"value":"https://api.storyteq.com/v4/open/assets/1a36d68f4ec28d6b471421d8a03e8bbd","active":true,"values":[],"required":false,"input_type":null},{"name":"select_image_2","type":"image","label":"Select Image #2","order":5,"value":"https://api.storyteq.com/v4/open/assets/5a6fe3fab9bffdbd95b77e9c0fcd19dd","active":true,"values":[],"required":false,"input_type":null,"max_length":0},{"name":"club_name","type":"text","label":"Additional Information","order":6,"value":"","active":true,"values":[],"required":true,"assetName":"","input_type":null,"text_style_rules":{"strict_fonts":[],"supports_bold":false,"supports_fonts":false,"brand_font_sets":[],"supports_italic":false,"brand_color_sets":[],"cache_strict_fonts":[],"strict_fill_colors":[],"brand_fonts_enabled":false,"brand_colors_enabled":false,"strict_fonts_enabled":false,"supports_fill_colors":false,"cache_strict_fill_colors":[],"strict_fill_colors_enabled":false}},{"name":"aeb5c113-bb32-42d5-a7c8-709bd6a00409","type":"enum","label":"California Legal","active":true,"values":[{"label":"Off","value":"56975340-29a3-4d95-9136-0d7d02a2602d"},{"label":"On","value":"cfd9af20-ae89-4d48-b52b-fa09d7ad4afd"}],"required":true,"max_length":0}],"feature_flags":{"hayer":true,"multiConditionalDynamicVisibility":true},"scenes":[{"id":"d8c6aaf25ebc7062aee260b2ce80bc0f469ff3b4","layers":[{"uid":"146f5b12-3c88-4cf5-aed6-715f1831efcd","type":"image","start_time":0,"end_time":4,"attributes":{"src":"b2b56581a94b07160a25a86bf1766b9d.png","top":-2,"left":-4,"angle":0,"flipX":false,"flipY":false,"width":328,"height":54,"parent":"","anchorX":0,"anchorY":0,"opacity":1,"blendMode":"normal","fittingMode":"stretch","borderRadius":{"bl":0,"br":0,"tl":0,"tr":0},"contentAwarePositioning":{"focusArea":{"top":0,"left":0,"width":0,"height":0,"visible":false},"imageTransform":{"top":0,"left":0,"scale":1},"positioningMode":"BOUNDING_BOX_FILL"},"text":""},"transitions":[],"is_dynamic":true,"dynamic":{"image":{"enabled":false,"is_enum":false,"parameter":null,"enum_mappings":[],"previewing_value":null},"__laravel":"_","visibility":{"enabled":true,"is_enum":true,"parameter":"background_color","enum_mappings":{"061a59bc-af96-408e-827c-8aac4f898cb8":false,"92d25365-d057-4027-be2b-03282fc87c2a":true},"conditionGroup":{"mode":"show","type":"and","conditions":[{"type":"is","values":["92d25365-d057-4027-be2b-03282fc87c2a"],"parameter":"background_color"}]},"previewing_value":true}},"visible":true},{"uid":"f26b34b3-ee4d-414e-b2ff-e8c737c997ac","type":"image","start_time":0,"end_time":4,"attributes":{"src":"b167f979f8b835e5d8de124da3bfc75c.png","top":4,"left":4,"angle":0,"flipX":false,"flipY":false,"width":42,"height":42,"parent":"","anchorX":0,"anchorY":0,"opacity":1,"blendMode":"normal","fittingMode":"stretch","borderRadius":{"bl":0,"br":0,"tl":0,"tr":0},"contentAwarePositioning":{"focusArea":{"top":0,"left":0,"width":0,"height":0,"visible":false},"imageTransform":{"top":0,"left":0,"scale":1},"positioningMode":"BOUNDING_BOX_FILL"},"text":""},"transitions":[{"uid":"74f35609-b9b4-4f97-92cd-55daaa87d476","type":"slide-from","easing":"custom:linear","end_time":0.76,"attributes":{"slide-distance":100,"slide-direction":"top"},"start_time":0}],"is_dynamic":true,"dynamic":{"image":{"enabled":true,"is_enum":true,"parameter":"b23117e8-c360-4e44-8803-4a4df554eb55","enum_mappings":{"50c5689c-92bc-4b2a-a238-36bd0a85617a":"https://api.storyteq.com/v4/open/assets/8ccdaa97bfb42093ad5fd43e7b36b40a","8ffcc5b5-5bfd-45b7-9d7c-f49c1d8e2e64":"https://api.storyteq.com/v4/open/assets/a14bae8048fec7dc6ef0daa06327e600","f6670f79-e86a-41b2-8d8a-3ca09766656f":null},"previewing_value":"f6670f79-e86a-41b2-8d8a-3ca09766656f"},"__laravel":"_","visibility":{"enabled":false,"is_enum":true,"parameter":null,"enum_mappings":[],"conditionGroup":{"mode":"show","type":"and","conditions":[]},"previewing_value":null}},"visible":true},{"uid":"84614e67-269e-47b8-96e6-76a372e67fa5","type":"textbox","start_time":0,"end_time":4,"attributes":{"src":"e26de0d5e04ce5c4c96ba29e3dede9f3.ttf","top":5,"fill":"rgba(255,255,255,1.00)","left":54.50549450549448,"text":"Claim your FREE 1 Day Pass \\n","angle":0,"skewX":0,"skewY":0,"width":256.2637362637363,"height":27,"parent":"","stroke":"rgba(0,0,0,0)","anchorX":0,"anchorY":0,"opacity":1,"fontSize":"30","blendMode":"normal","fontStyle":"normal","textAlign":"center","fontFamily":"custom-Interstate__Bold","fontWeight":"normal","lineHeight":".9","shadowBlur":0,"charSpacing":0,"fittingMode":"fit","fontMetrics":{"ascender":80,"descender":20},"shadowColor":"rgba(0,0,0,0)","strokeWidth":0,"shadowOffsetX":0,"shadowOffsetY":0,"strokeLineCap":"butt","textDecoration":"none","strokeDashArray":[0,0],"textCapitalization":"uppercase","textBackgroundColor":null},"transitions":[{"uid":"c17c7e45-6da4-4a72-9f30-66fc44cac2a2","type":"fade-in","easing":"custom:linear","end_time":0.52,"attributes":{"opacity":0},"start_time":0}],"is_dynamic":true,"dynamic":{"fill":{"enabled":false,"is_enum":false,"parameter":null,"enum_mappings":[],"previewing_value":null},"text":{"append":"","enabled":true,"is_enum":false,"prepend":"","parameter":"gym_pass","enum_mappings":[],"previewing_value":"3-day guest pass"},"__laravel":"_","visibility":{"enabled":false,"is_enum":true,"parameter":null,"enum_mappings":[],"conditionGroup":{"mode":"show","type":"and","conditions":[]},"previewing_value":null},"dynamicFont":{"enabled":false,"is_enum":true,"parameter":null,"enum_mappings":[],"previewing_value":null}},"visible":true},{"uid":"9546b674-7d0c-4ff4-8da7-c26df558b21f","type":"textbox","start_time":0,"end_time":4,"attributes":{"src":"9432ba9cc7d7de6cbcbca752ce8c8c16.woff2","top":31,"fill":"rgba(255,255,255,1.00)","left":59,"text":"Cardio, weights and more! \\n","angle":0,"skewX":0,"skewY":0,"width":241.7582417582417,"height":10,"parent":"","stroke":"rgba(0,0,0,0)","anchorX":0,"anchorY":0,"opacity":1,"fontSize":"12","blendMode":"normal","fontStyle":"normal","textAlign":"center","fontFamily":"custom-Interstate__Regular","fontWeight":"normal","lineHeight":".9","shadowBlur":0,"charSpacing":0,"fittingMode":"fit","fontMetrics":{"ascender":80,"descender":20},"shadowColor":"rgba(0,0,0,0)","strokeWidth":0,"shadowOffsetX":0,"shadowOffsetY":0,"strokeLineCap":"butt","textDecoration":"none","strokeDashArray":[0,0],"textCapitalization":"uppercase","textBackgroundColor":null},"transitions":[{"uid":"5f3c2bc0-35f1-4aa7-9ffe-e63cb654594a","type":"fade-in","easing":"custom:linear","end_time":0.52,"attributes":{"opacity":0},"start_time":0}],"is_dynamic":true,"dynamic":{"fill":{"enabled":false,"is_enum":false,"parameter":null,"enum_mappings":[],"previewing_value":null},"text":{"append":"","enabled":true,"is_enum":false,"prepend":"","parameter":"club_name","enum_mappings":[],"previewing_value":"Crunch Fargo • CrunchFargo.com"},"__laravel":"_","visibility":{"enabled":false,"is_enum":true,"parameter":null,"enum_mappings":[],"conditionGroup":{"mode":"show","type":"and","conditions":[]},"previewing_value":null},"dynamicFont":{"enabled":false,"is_enum":true,"parameter":null,"enum_mappings":[],"previewing_value":null}},"visible":true}]}]}'),Q=JSON.parse('{"context_size":"71a710fc-adea-4262-a91a-1f614e76ee4a","context_exit_url":"https://www.crunch.com/","club_name":"Cardio, weights and more! ","gym_pass":"Claim your FREE 1 Day Pass ","select_image":"https://api.storyteq.com/v4/open/assets/0b23abbad413a454696470ae04656c96","select_image_2":"https://api.storyteq.com/v4/open/assets/2c42c288ede068c4fe20d5380267766a","background_color":"92d25365-d057-4027-be2b-03282fc87c2a","b23117e8-c360-4e44-8803-4a4df554eb55":"8ffcc5b5-5bfd-45b7-9d7c-f49c1d8e2e64","aeb5c113-bb32-42d5-a7c8-709bd6a00409":"56975340-29a3-4d95-9136-0d7d02a2602d","context_output_channel":"tradedesk"}');if(window.URLSearchParams){const t=new URLSearchParams(window.location.search);window.debug=t.get("debug"),window.seek=parseFloat(t.get("seek"))}const Z=new J({blueprint:K,context:Q,richTextStylingFonts:{},keyboardEvents:!0});function tt(){Z.exit(),Z.pause(),Z.seek(Z.duration-.001)}function et(){Z.stage.addEventListener("click",tt,!1),window.messageHandler=function(t){const e=t.data;switch(e.event){case"play":Z.play();break;case"pause":Z.pause();break;case"seek":if(null===e.time)return;Z.seek(e.time);break;case"loadFallbackFont":if(null===e.src)return;Z.loadFallbackFont(e.src)}},window.addEventListener("message",window.messageHandler,!1),Z.load().then((()=>{!function(){if(isFinite(window.seek))return Z.seek(window.seek),void a("Seeked");Z.play()}()}))}window.banner=Z,window.sendMessage=function(t){window.parent&&window.self!==window.top&&window.parent.postMessage(t,"*")},window.onload=function(){et()}})();