[\\s\\S]*?","gi");do t=e,e=e.replace(r,"");while(e!==t);return e.replace(/e.minDistanceForSwipe?!0:!1:"x"===e.validAxis&&(t=n>e.minDistanceForSwipe?!0:!1),{isHorizontal:n>r?!0:!1,isConsideredSwipe:t}}function attach(e,t,n,r){var o=getEventNames()[t.toLowerCase()]||t;e.addEventListener(o,n,_buildNativeListenerOptions(r))}function detach(e,t,n,r){var o=getEventNames()[t.toLowerCase()]||t;e.removeEventListener(o,n,_buildNativeListenerOptions(r))}function once(e,t,n,r){attach(e,t,function o(){detach(e,t,o,r),n.apply(this,arguments)},r)}function trigger(e,t,n,r){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r);var i="on"+ucfirst(t);return"function"==typeof e[i]&&e[i](),e.dispatchEvent(o)}function fakeclick(e,t){t=t||window;var n=t.document.createElement("a");n.cssText="visibility: hidden",n.addEventListener("click",function(t){e(),t.preventDefault(),t.stopPropagation(),n.parentNode.removeChild(n)},!0),t.document.body.appendChild(n);var r=document.createEvent("MouseEvents");r.initEvent("click",!0,!0),n.dispatchEvent(r)}function fakeClickAhrefBlank(e,t,n){t=t||noop,n=n||window;var r=n.document.createElement("a");r.style.cssText="visibility: hidden",r.setAttribute("href",e),r.setAttribute("target","_blank"),r.addEventListener("click",function(e){e.stopPropagation(),t(),r.parentNode.removeChild(r)},!0),n.document.body.appendChild(r);var o=n.document.createEvent("MouseEvents");o.initEvent("click",!0,!0),r.dispatchEvent(o)}function noop(){}function nullai(e,t){t()}function retTrue(){return!0}function retFalse(){return!1}function offset(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:t.top+(o.pageYOffset||r.scrollTop)-(r.clientTop||0),left:t.left+(o.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}}function addCssRule(e,t,n){var r=document.createElement("style");r.textContent=e+" {"+t+"}",n?n.document.getElementsByTagName("head")[0].appendChild(r):document.getElementsByTagName("head")[0].appendChild(r)}function redrawAndroidIframe(){var e=document.createElement("style");document.body.appendChild(e),document.body.removeChild(e)}function parseQuery(e){var t={};return e=e.replace(/\&$/,"").replace(/\+/g,"%20"),e.split("&").forEach(function(e){var n=e.split("=").map(decodeURIComponent);t[n[0]]=n[1]}),t}function buildQuery(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function postBlob(e,t){var n=new XMLHttpRequest;n.open("POST",creative.apiUrl+"blobs?base64=1"),n.setRequestHeader("Content-Type","application/octet-stream"),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText,n.status)},n.send(e)}function tmpl(e,t){function n(e){return" p.push('"+e.replace(/'/g,"\\'").split(/\r?\n/g).join("\\n');\n p.push('")+"');\n"}if(!e)return"";var r;if(-1==e.indexOf("<%"))r=function(){return e};else{var o=e.split(/<%\s*|\s*%>/g),i="var p = []; with(o) {\n",a=!1;o.forEach(function(e){a?i+="="==e[0]?" p.push("+e.replace(/^=\s*|\s*$/g,"")+");\n":" "+e+"\n":e&&(i+=n(e)),a=!a}),i+='} return p.join("");';try{r=new Function("o",i)}catch(c){var u=new Error("Cannot parse template! (see `template` property)");throw u.template=i,u}}return t?r(t):r}function flash(){var e=document.createElement("div");e.style.background="white",e.style.opacity=.005,e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.width="100%",e.style.height="100%",e.style.zIndex=2147483647,document.body.appendChild(e),setTimeout(function(){e.parentNode.removeChild(e)},0)}function crc32(e){"use strict";var t=-1,n=0,r=[0,-227835133,-516198153,324072436,-946170081,904991772,648144872,-724933397,-1965467441,2024987596,1809983544,-1719030981,1296289744,-1087877933,-1401372889,1578318884,274646895,-499825556,-244992104,51262619,-675000208,632279923,922689671,-996891772,-1702387808,1760304291,2075979607,-1982370732,1562183871,-1351185476,-1138329528,1313733451,549293790,-757723683,-1048117719,871202090,-416867903,357341890,102525238,-193467851,-1436232175,1477399826,1264559846,-1187764763,1845379342,-1617575411,-1933233671,2125378298,820201905,-1031222606,-774358714,598981189,-143008082,85089709,373468761,-467063462,-1170599554,1213305469,1526817161,-1452612982,2107672161,-1882520222,-1667500394,1861252501,1098587580,-1290756417,-1606390453,1378610760,-2032039261,1955203488,1742404180,-1783531177,-878557837,969524848,714683780,-655182201,205050476,-28094097,-318528869,526918040,1361435347,-1555146288,-1340167644,1114974503,-1765847604,1691668175,2005155131,-2047885768,-604208612,697762079,986182379,-928222744,476452099,-301099520,-44210700,255256311,1640403810,-1817374623,-2130844779,1922457750,-1503918979,1412925310,1197962378,-1257441399,-350237779,427051182,170179418,-129025959,746937522,-554770511,-843174843,1070968646,1905808397,-2081171698,-1868356358,1657317369,-1241332974,1147748369,1463399397,-1521340186,-79622974,153784257,444234805,-401473738,1021025245,-827320098,-572462294,797665321,-2097792136,1889384571,1674398607,-1851340660,1164749927,-1224265884,-1537745776,1446797203,137323447,-96149324,-384560320,461344835,-810158936,1037989803,781091935,-588970148,-1834419177,1623424788,1939049696,-2114449437,1429367560,-1487280117,-1274471425,1180866812,410100952,-367384613,-112536529,186734380,-538233913,763408580,1053836080,-860110797,-1572096602,1344288421,1131464017,-1323612590,1708204729,-1749376582,-2065018290,1988219213,680717673,-621187478,-911630946,1002577565,-284657034,493091189,238226049,-61306494,-1307217207,1082061258,1395524158,-1589280451,1972364758,-2015074603,-1800104671,1725896226,952904198,-894981883,-638100751,731699698,-11092711,222117402,510512622,-335130899,-1014159676,837199303,582374963,-790768336,68661723,-159632680,-450051796,390545967,1230274059,-1153434360,-1469116676,1510247935,-1899042540,2091215383,1878366691,-1650582816,-741088853,565732008,854102364,-1065151905,340358836,-433916489,-177076669,119113024,1493875044,-1419691417,-1204696685,1247431312,-1634718085,1828433272,2141937292,-1916740209,-483350502,291187481,34330861,-262120466,615137029,-691946490,-980332558,939183345,1776939221,-1685949482,-1999470558,2058945313,-1368168502,1545135305,1330124605,-1121741762,-210866315,17165430,307568514,-532767615,888469610,-962626711,-707819363,665062302,2042050490,-1948470087,-1735637171,1793573966,-1104306011,1279665062,1595330642,-1384295599];for(n=0;n>>8^r[255&(t^e.charCodeAt(n))];return(-1^t)>>>0}function isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}function isDefAndNotNull(e){return null!=e}function updateQueryStringParameter(e,t,n){t=encodeURIComponent(t),n=encodeURIComponent(n);var r=new RegExp("([?|&])"+t+"=.*?(&|$)","i");return separator=-1!==e.indexOf("?")?"&":"?",e.match(r)?e.replace(r,"$1"+t+"="+n+"$2"):e+separator+t+"="+n}function fetchShortenedUrl(e,t,n){function r(t,n){i[e].forEach(function(e){e[t](n)}),delete i[e]}n=n||noop;var o=!1,i=fetchShortenedUrl.inProgress,a=fetchShortenedUrl.cache,c="http"==e.slice(0,4),u=new RegExp("^(https?://)?(www.)?("+fetchShortenedUrl.invalidDomains.map(function(e){return e.replace(/[^a-zA-Z]/g,"\\$&")}).join("|")+")(/|\\?)").test(e);if(!c||u)return void n();if(a[e])return void defer(function(){t(a[e])},0,"fetchShortenedUrl defer success callback");if(i[e]||(i[e]=[],o=!0),i[e].push({success:t,error:n}),o){var s=creative.runtimeParams.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl,d=s+"/services/shortener",f={longUrl:e},p=btoa(to_utf8(e));p=p.replace(/\//g,"$").replace(/\+/g,"_").replace(/=/g,"");var l={cbName:"shortener_"+p};loadJSONP(d+"?"+buildQuery(f),l,function(t){a[e]=t.id,r("success",t.id)},function(){r("error")})}}function isMediaPlaying(e){try{return e.currentTime>0&&!e.paused&&!e.ended}catch(t){return!1}}function merge(){var e,t,n={};for(t=0;tt?0:1}function pulse(e,t,n){return step(e,n)-step(t,n)}function smoothstep(e,t,n){var r=clamp(0,1,(n-e)/(t-e));return r*r*r*((6*r-15)*r+10)}function bump(e,t,n){var r=clamp(0,1,(n-e)/(t-e));return(Math.cos(Math.PI*r)+1)/2}function getWindowNesting(e){var t={iframe:e!==e.top,friendlyIframe:!1,iabFriendlyIframe:!1,hostileIframe:!1,iframeDepth:0};if(t.iframe){var n=e;try{for(t.friendlyIframe=!!e.top.location.href,t.iabFriendlyIframe=t.friendlyIframe&&"undefined"!=typeof e.inDapIF&&e.inDapIF;"undefined"!=typeof n.parent.location.href&&n.parent.document!==n.document;)n=n.parent,t.iframeDepth++;"undefined"==typeof e.top.document&&(t.hostileIframe=!0)}catch(r){t.hostileIframe=!0}}return t}function isFetchSupported(){return!!(window.fetch&&window.URL&&URL.createObjectURL)}function isBeaconSupported(){return!(!window.navigator||!window.navigator.sendBeacon)}function isNativeImplementation(e){return"function"==typeof e&&e.toString().indexOf("[native code]")>-1}!function(e){if(!this.defer){try{for(;"undefined"!=typeof e.parent.location.href&&e.parent.document!==e.document;)e=e.parent}catch(t){}var n=function(){function t(){return 9007199254740991===s?0:++s}var n,r,o,i,a=e,c="function"==typeof a.setImmediate;if(a.MutationObserver)return function(e){n=document.createElement("div"),new MutationObserver(function(){e(),n=null}).observe(n,{attributes:!0}),n.setAttribute("i","1")};if(!c&&a.postMessage&&!a.importScripts&&a.addEventListener){var u="com.setImmediate"+Math.random(),s=0;i={};var d=function(e){if(e.source===a&&0===e.data.indexOf(u)){var t=e.data.split(":")[1];i[t](),delete i[t]}};return a.addEventListener("message",d,!1),function(e){var n=t();i[n]=e,a.postMessage(u+":"+n,"*")}}return!c&&a.document&&"onreadystatechange"in document.createElement("script")?function(e){r=document.createElement("script"),r.onreadystatechange=function(){r.onreadystatechange=null,r.parentNode.removeChild(r),r=null,e()},document.body.appendChild(r)}:(o=c&&setImmediate||setTimeout,function(e){o(e)})}();this.defer=function(t,r,o,i){var a,c=0|r;if(o){var u;"undefined"!=typeof defer.perf?u=defer.perf:"undefined"!=typeof creative?u=creative.perf:"undefined"!=typeof perf&&(u=perf),u&&(u._stopTrackingDefers||(a=u.start("defer",{deferId:o,delay:c})))}if(t){var s=function(){a&&a.end(),t()};i?n(s):e.setTimeout(s,c)}}}}(window),Function.prototype.bind||Object.defineProperty(Function.prototype,"bind",{value:function(e){var t=this;return function(){return t.apply(e,arguments)}}}),function(e){e.getEventNames=function(){var t={};return"WebKitAnimationEvent"in e&&(t.animationstart="webkitAnimationStart",t.animationiteration="webkitAnimationIteration",t.animationend="webkitAnimationEnd"),"WebKitTransitionEvent"in e&&(t.transitionend="webkitTransitionEnd"),t}}(window),_isListenerOptionSupported.opts={};var getTimestamp=function(){return void 0===window.performance||void 0===window.performance.now?Date.now:window.performance.now.bind(window.performance)}();Date.now||(Date.now=function(){return+new Date}),Array.prototype.waitForEach||Object.defineProperty(Array.prototype,"waitForEach",{value:function(e,t,n){var r=this.length;r?this.forEach(function(o,i,a){var c=!1;e.call(n,o,function(){if(c)throw"Called `done` multiple times for element "+i;c=!0,--r||t()},i,a)},n):t()}}),function(e){e.loadJS=function(t,n,r,o){var i=e.loadJS.externals,a={success:n||noop,error:r||noop};if(!/^[A-Za-z0-9]*:\/\/|^\/\//.test(t)){var c=creative.hostedFiles.filter(function(e){return e.filepath===t})[0];if("undefined"==typeof c)return console.warn('Hosted file "'+t+'" was not found.'),void a.error();if(c.loaded!==!1)return console.warn('Hosted file "'+t+'" is already loaded.'),void setTimeout(a.success,0);c.loaded=!0,t=creative.cachedApiUrl+"hostedFiles/"+creative.id+"/"+creative.version+"/"+t}if(t in i&&!o)i[t].loaded?setTimeout(a.success,0):i[t].cbs.push(a);else{i[t]={cbs:[a]};var u=document.createElement("script");u.type="text/javascript",u.onload=function(){i[t].loaded=!0,i[t].cbs.forEach(function(e){e.success()}),i[t].cbs=[]},u.onerror=function(){i[t].cbs.forEach(function(e){e.error()}),i[t].cbs=[],delete i[t]},u.src=t,e.loadJS.appendToRoot(u)}},e.loadJS.externals={},e.loadJS.appendToRoot=function(e){return document.querySelector("head").appendChild(e)},e.loadJSONP=function(t,n,r,o){"function"==typeof n&&(o=r,r=n,n={});var i=n.cbName||"__jsonp"+randInt();t+=(-1==t.indexOf("?")?"?":"&")+(n.paramName||"jsonp")+"="+i,e[i]=function(t){r(t),delete e[i]},loadJS(t,noop,o,!0)}}(window),"undefined"==typeof Function.prototype.name&&!function(){var e=/^function\s+(\w+?)\s*?\(/;Object.defineProperty(Function.prototype,"name",{get:function(){var t=this.constructor.prototype.toString.call(this);return e.test(t)?t.match(e)[1]:""}})}(),fetchShortenedUrl.cache={},fetchShortenedUrl.inProgress={},fetchShortenedUrl.invalidDomains=["db.tt","lnkd.in","t.co","youtu.be","goo.gl","adf.ly","bit.do","bit.ly","fur.ly","ht.ly","is.gd","ow.ly","tr.im","tiny.cc","tinyurl.com"];;
function CPoint(t,i){this.x=1*t||0,this.y=1*i||0}function CRect(t,i,e,o){this.left=1*t||0,this.top=1*i||0,this.width=1*e||0,this.height=1*o||0}CPoint.offset=function(t){var i=offset(t);return new CPoint(i.left,i.top)},CPoint.convertPointFromNodeToPage=function(t,i){if(!t||"undefined"!=typeof t.x)return null;var e=CPoint.offset(t);return new CPoint((i?i.x:0)+(e?e.x:0),(i?i.y:0)+(e?e.y:0))},CPoint.convertPointFromPageToNode=function(t,i){if(!t||"undefined"!=typeof t.x)return null;var e=CPoint.offset(t);return new CPoint((i?i.x:0)-(e?e.x:0),(i?i.y:0)-(e?e.y:0))},CPoint.sample=function(t,i,e){for(var o=Math.floor(Math.sqrt(t.width*i/t.height)),n=Math.floor(Math.sqrt(t.height*i/t.width)),h=t.width/o,r=t.height/n,s=0;n>s;s++)for(var f=0;o>f;f++)e((f+.5)*h+t.left,(s+.5)*r+t.top)},CPoint.epsilon=function(t,i,e){return Math.abs(t-i)h||0>r?CRect.ZERO:new CRect(i,e,h,r)},CRect.prototype.copyFrom=function(t){this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height},CRect.prototype.relativeTo=function(t){return new CRect(this.left-t.left,this.top-t.top,this.width,this.height)},CRect.prototype.contains=function(t){return t instanceof CPoint?t.x>=this.left&&t.x<=this.right&&t.y>=this.top&&t.y<=this.bottom:t instanceof CRect?t.left>=this.left&&t.right<=this.right&&t.top>=this.top&&t.bottom<=this.bottom:void 0},CRect.prototype.map=function(t,i){var e=i.width/t.width,o=i.height/t.height;return new CRect((this.left-t.left)*e+i.left,(this.top-t.top)*o+i.top,this.width*e,this.height*o)},CRect.prototype.equals=function(t){return t&&this.left==t.left&&this.top==t.top&&this.right==t.right&&this.bottom==t.bottom},CRect.prototype.toString=function(){return"CRect: "+JSON.stringify(this)};;
function Logger(e){if(!(this instanceof Logger))return new Logger(e);e=e||"";var n=noop;(Logger.enabledNames.indexOf(e)>=0||Logger.enabledNames.indexOf("all")>=0)&&(n=function(){var e=[].slice.apply(arguments);e.unshift(Logger._ts()+" ["+Logger.sessionId+(this.name?" "+this.name:"")+"]"),console.log.apply(console,e)}),this.name=e,this.log=n,this.warn=n,this.debug=n,this.error=n}Logger._ts=function(){function e(e,n){for(e+="";e.lengthn[t])return 1}return 0}var i,o,s;if(!e)return!0;if(0===n.length)o=null,s=null;else if(1===n.length)o=n[0],s=n[0];else{if(2!==n.length)throw"Invalid number of arguments";o=n[0],s=n[1]}for(e=e.split(".").map(t),o=o?o.split(".").map(t):[],s=s?s.split(".").map(t):[],i=Math.max(o.length,s.length)-e.length;i>=0;i--)e.push(0);return!(-1===r(e,o)||1===r(e,s))}function a(e,n){if(-1===e.indexOf("Playstation")){var t=e.match(/\bSilk\/([0-9._-]+)\b/);t&&(n.browserName="Amazon Silk",n.browserVersion=t[1])}n.browserName&&n.browserVersion&&(0===n.browserName.indexOf("Chrome")&&s(n.browserVersion,["28",null])||0===n.browserName.indexOf("Opera")&&s(n.browserVersion,["15",null]))&&(n.browserRenderingEngine="Blink"),n.browserRenderingEngineVersion||(n.browserRenderingEngineVersion=function(){var n;return(n=e.match(/Trident\/([0-9.]+)/))?n[1]:(n=e.match(/Presto\/([0-9.]+)/))?n[1]:(n=e.match(/AppleWebKit\/*([0-9.]+)/i))?n[1]:(n=e.match(/Gecko\/*([0-9.]+)/),n?n[1]:"")}())}t.prototype.android=function(){return"Android"===this.name&&s(this.version,arguments)},t.prototype.osx=function(){return"OSX"===this.name&&s(this.version,arguments)},t.prototype.ios=function(){return"IOS"===this.name&&s(this.version,arguments)},t.prototype.windows=function(){return"Windows"===this.name&&s(this.version,arguments)},t.prototype.windowsPhone=function(){return"WindowsPhone"===this.name&&s(this.version,arguments)},t.prototype.linux=function(){return"Linux"===this.name},r.prototype.safari=function(){return"Safari"===this.name&&s(this.version,arguments)},r.prototype.chrome=function(){return 0===this.name.indexOf("Chrome")&&s(this.version,arguments)},r.prototype.ie=function(){return 0===this.name.indexOf("Internet Explorer")&&s(this.version,arguments)},r.prototype.android=function(){return"Android Browser"===this.name&&s(this.version,arguments)},r.prototype.samsung=function(){return"Samsung Browser"===this.name&&s(this.version,arguments)},r.prototype.opera=function(){return 0===this.name.indexOf("Opera")&&s(this.version,arguments)},r.prototype.silk=function(){return"Amazon Silk"===this.name&&s(this.version,arguments)},r.prototype.firefox=function(){return"Firefox"===this.name&&s(this.version,arguments)},r.prototype.edge=function(){return"Edge"===this.name&&s(this.version,arguments)},r.prototype.webView=function(){var n=null,t="iP"===(e.navigator.platform||"").substr(0,2);if(t){var r=this.userAgent,i=-1!==r.indexOf("Safari")&&-1!==r.indexOf("Version"),o=!/constructor/i.test(e.HTMLElement);i&&!e.navigator.standalone?n="iOS Safari or Safari Controller":(o||e.indexedDB)&&e.statusbar.visible?(e.webkit&&e.webkit.messageHandlers||o||e.indexedDB)&&(n="WKWebView"):n="UIWebView"}return n},i.prototype.webkit=function(){return"WebKit"===this.name&&s(this.version,arguments)},i.prototype.gecko=function(){return"Gecko"===this.name&&s(this.version,arguments)},i.prototype.trident=function(){return"Trident"===this.name&&s(this.version,arguments)},i.prototype.presto=function(){return"Presto"===this.name&&s(this.version,arguments)},i.prototype.blink=function(){return"Blink"===this.name&&s(this.version,arguments)},o.prototype.phone=function(){return"Phone"===this.hardwareType},o.prototype.tablet=function(){return"Tablet"===this.hardwareType},o.prototype.desktop=function(){return"Desktop"===this.hardwareType},o.prototype.mobileDevice=function(){return this.mobile===!0},e.CeltraDeviceInfo.create=function(t,r){return t=t||e.navigator.userAgent||"",r=r||{},a(t,r),new n(r,t)}}(window);;
window.deviceInfo=CeltraDeviceInfo.create(window.navigator.userAgent,window.celtraDeviceInfoRuntimeParams);;
!function(e){function n(){var e=p().match(/iP(ad|hone|od).*OS ([0-9_]+)/);return!!e&&s(e[2].replace(/_/g,"."),arguments)}function t(){var e=p().match(/Android ([0-9.]+)/),n=p().match(/Windows Phone/);return!n&&!!e&&s(e[1],arguments)}function r(){var e=p().match(/Windows Phone ([0-9.]+)/);return!!e&&s(e[1],arguments)}function i(){var e=p().match(/AppleWebKit\/*([0-9.]+)/i);return!!e&&s(e[1],arguments)}function a(){var e=p().match(/Gecko\/*([0-9.]+)/i);return!!e&&s(e[1],arguments)}function o(){var e=p().match(/MSIE ([0-9]{1,}[.0-9]{0,})|Trident.* rv:([0-9]{1,}[.0-9]{0,})/i);return!!e&&s(e[1]||e[2],arguments)}function u(){var e=p().match(/Silk\/([0-9.]+)/);return!!e&&s(e[1],arguments)}function f(){var e=p().toLowerCase();return/kftt|kfot|kfjwi|kfjwa|kfso|kfth|kfapwi|kfthwi|kfsowi|kfthwa|kfapwa|kfap|sd4930ur/.test(e)?s("2",arguments):!1}function d(){return"undefined"!=typeof offsetWidthOverride?offsetWidthOverride:(document.body.offsetWidth,Math.min(innerWidth,innerHeight))}function c(){return/iPad/.test(p())||d()>550}function m(){return!(t()||n()||r())}function s(e,n){function t(e){return parseInt(e.replace(/\D/g,""),10)}function r(e,n){for(var t=0;tn[t])return 1}return 0}var i,a,o;if(!e)return!0;if(0===n.length)a=null,o=null;else if(1===n.length)a=n[0],o=n[0];else{if(2!==n.length)throw"Invalid number of arguments";a=n[0],o=n[1]}e=e.split(".").map(t),a=a?a.split(".").map(t):[],o=o?o.split(".").map(t):[];for(var i=v.max(a.length,o.length)-e.length;i>=0;i--)e.push(0);return!(-1===r(e,a)||1===r(e,o))}function h(){return v.top!==e}function l(){if(!(n()||window.chrome&&"Google Inc."===window.navigator.vendor))return!1;var e;return e=p().match(n()?/CriOS\/([0-9]+.)/:/Chrome\/([0-9]+.)/),!!e&&s(e[1],arguments)}function g(){var e="(-webkit-min-device-pixel-ratio: 1.5),(min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-resolution: 1.5dppx)";return window.devicePixelRatio>1||window.matchMedia&&window.matchMedia(e).matches}e.celtra=e.celtra||{};var w={};w.ios=n,w.android=t,w.webkit=i,w.windowsPhone=r,w.gecko=a,w.windows=o,w.kindleSilk=u,w.kindle=f,w.iframe=h,w.desktop=m,w.tablet=c,w.chromeBased=l,w.isHighDensityDisplay=g,extend(e.celtra,w),delete w.webkit,extend(e,w);var v={max:e.Math.max,min:e.Math.min,userAgent:e.navigator.userAgent,top:e.top},p=function(){return"undefined"!=typeof e.userAgentOverride?e.userAgentOverride:v.userAgent}}(window);;
!function(e){function t(){var t=e;try{for(;"undefined"!=typeof t.parent.location.href&&t.parent.document!==t.document;)t=t.parent}catch(n){}return t}function n(){return s.getComputedStyle(s.document.body,null)}function i(e,t,n){if(!e)throw new Error("No element specified!");if(a(t)){if(!(t in e.style)&&i.BREAK_ON_ERROR)throw new Error("Invalid CSS attribute "+t);if("undefined"==typeof n)return e.style[t];e.style[t]=n}else{if(-1==w.indexOf(t)&&o(t),"undefined"==typeof n)return e.style[y[t]];e.style[y[t]]=n}}function r(e,t){if(!e)throw new Error("No element specified!");var n=e.ownerDocument.defaultView.getComputedStyle(e,null);if(R&&v.indexOf(t)>-1&&(t="webkit"+u(t)),!n||"none"==n.display||!f())return null;if(!(t in n)&&i.BREAK_ON_ERROR)throw new Error("Invalid CSS attribute "+t);return a(t)?n[t]:(-1==w.indexOf(t)&&o(t),n[y[t]])}function o(e){S=S||n();var t=E+u(e);if(R&&v.indexOf(e)>-1)y[e]=t;else if(S&&e in S)y[e]=e;else if(S&&t in S)y[e]=t;else if(!S&&deviceInfo.browser.firefox)y[e]=e;else if(i.BREAK_ON_ERROR)throw new Error("Invalid CSS attribute "+e+' or iframe still display "none" in FF');w.push(e)}function a(e){return p.test(e)}function f(){if(e===s)return!0;var t=e.frameElement.ownerDocument.defaultView.getComputedStyle(e.frameElement,null);return t&&"none"!=t.display}function u(e){return e+="",e?e[0].toUpperCase()+e.slice(1):""}var l=e.navigator.userAgent,s=t(),c=/rv:.*Gecko\//.test(l),d=/MSIE|Trident\//.test(l),m=/WebKit/.test(l),p=/^-?([mM]oz|[wW]eb[kK]it|[mM]s)-?/,y={},w=[],E=function(){return m?"webkit":d?"ms":c?"Moz":""}(),R=function(){var e=l.match(/AppleWebKit\/(\d+)/);return e&&~~e[1]<540}(),v=["transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","perspective","perspective-origin"],S=n();i.BREAK_ON_ERROR=!1,e.celtra=e.celtra||{},e.celtra.styler={css:i,computedCSS:r,isWebkit:m,isGecko:c,isIE:d},e.css=i,e.computedCSS=r}(window);;
var Freezer={};Freezer.unfreeze=function(n,e,o){function t(n,e,o,t,a){ActionInvocationSimulator.isDryRun()?ActionInvocationSimulator.needsDryRun(n.internalId)&&(ActionInvocationSimulator.logActionDryRun(n.internalId,n.method,e.localId),e[n.method+"ActionDryRun"]?e[n.method+"ActionDryRun"](o,t,a):a()):e[n.method+"Action"](o,t,a)}function a(n){if(n instanceof Array)return n.map(a);if(n instanceof Object){var o;if("ActionInvocation"===n.clazz){n.internalId=++c;var s=l;o=function(e,a){if(!e)throw"Cannot execute an action without a context.";a||(a=noop);var i=o.isStatic;if("undefined"==typeof i&&(i=!o.instance),o.disabled)return void a();if(i){if(o.instance)throw"ActionInvocation for a static method must not have an instance assigned.";if("function"!=typeof o.actionClazz[o.method+"Action"])throw"Clazz "+o.actionClazz+' does not define the static action "'+o.method+'".';var r=extend({},o.args,{triggerId:s,caller:n});t(o,o.actionClazz,e,r,a)}else if(o.instance){if(!(o.instance instanceof o.actionClazz))throw"Instance "+o.instance+" is not an instance of clazz "+o.actionClazz;if("function"!=typeof o.instance[o.method+"Action"])throw"Instance of clazz "+o.actionClazz+' does not define the instance action "'+o.method+'".';var r=extend({},o.args,{triggerId:s,caller:n});t(o,o.instance,e,r,a)}else ActionInvocationSimulator.isDryRun()?a():defer(a,0,"Freezer.unfreeze defer c")}}else if(n.clazz){var f=e[n.clazz];if(!f)throw new Error("Unsupported clazz: "+n.clazz);o=Object.create(f.prototype)}else o={},n.onFire&&(l=n.type);for(var d in n)n.hasOwnProperty(d)&&"clazz"!==d&&(o[d]=a(n[d]));i.push(o),o.localId&&(r[o.localId]&&console.error("Duplicate localId: "+o.localId),r[o.localId]=o);for(var d in o)if("clazz"===d.slice(-5).toLowerCase()){var z=o[d];if(!z)continue;e[z]?o[d]=e[z]:console.error("Unsupported clazz: "+o.clazz)}return o}return n}var i=[],r={},c=0,l=null,s=a(n);i.forEach(function(n){for(var e in n)if("LocalId"===e.slice(-7)){var o=n[e];if(o instanceof Function)continue;var t;null===o?t=null:(t=r[o],t||console.error("Invalid localId reference: "+o)),n[e.slice(0,-7)]=t,delete n[e]}else if("LocalIds"===e.slice(-8)){for(var a=[],i=0;in-c;if(!i){var o=r._downloadQueue[t];o.requested||(o.requested=!0,e.push(t),o.secure&&(a=!0))}}e.length&&(Logger("batcher").log(e.length+" new batchable URLs requested during last runloop iteration ("+(a?"at least one secure":"none secure")+"):\n - "+e.join("\n - ")),r._loadBatch(a,e,function(e){for(var a in e){var t=e[a];t===!1&&(t=(r._downloadQueue[a].secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+a),r._cache[a]=t,r._downloadQueue[a].callbacks.forEach(function(e){e(t)}),delete r._downloadQueue[a]}}))},0,"Batcher.getDataUri downloadQueue",useAsap())):defer(function(){a(e)},0,"Batcher.getDataUri url not batchable",useAsap())},Batcher.prototype._generateBatchUrl=function(e,a){var r=(e?creative.cachedApiUrl:creative.insecureCachedApiUrl)+"batch?urls="+a.sort().map(encodeURIComponent).join(",");return r},Batcher.prototype._loadBatch=function(e,a,r){function t(e){var a,r=5381;for(a=0;al+i*l||r>d+c*d)&&(L.addPoint(t,n,o/1e3,u(document.elementFromPoint(t,n))),E=o,j=0)}}function r(e){var t=Date.now();I=D.setTimeout(function(){i(e,t)},200)}function i(e,t){w&&(w=!1,t||(t=Date.now()),L.addPoint(T,C,t/1e3,u(document.elementFromPoint(T,C))),h.track(L),b?(p.removeEventListener("touchmove",o,f),p.removeEventListener("touchend",i,f)):(p.removeEventListener("mousemove",o,f),p.removeEventListener("mouseup",i,f)),p.removeEventListener("mouseout",r,f))}function c(e,t){var n=null,a=null,o=null,r=!1;return t instanceof Screen?(n=t,a=null,o=n.parentUnitVariant,r=!0):"undefined"!=typeof ScreenObject&&t instanceof ScreenObject?(n=t.parentScreen,a=t,o=n.parentUnitVariant,r=!0):"undefined"!=typeof CreativeUnitVariant&&t instanceof CreativeUnitVariant&&(n=null,a=null,o=t,r=!0),r?extend({unitName:o?o.parentUnit.name:n.parentUnit.name,unitVariantLocalId:o?o.localId:null,screenLocalId:n?n.localId:null,screenTitle:n?n.title:null,screenIsMaster:n?n.isMasterScreen():null,objectLocalId:a?a.localId:null,objectName:a?a.name:null,objectClazz:a?a.constructor.name:null,initiationTimestamp:new Date/1e3},e):e}function u(e){function t(e){for(var o in e)if(e.hasOwnProperty(o)){if(e[o].name&&e[o].name==a)return e[o];if(e[o].localId&&e[o].localId==n)return e[o];var r;if(e[o].variants?r=t(e[o].variants):e[o].screens?r=t(e[o].screens):e[o].objects?r=t(e[o].objects):e[o].content&&e[o].content.objects?r=t(e[o].content.objects):e[o].component&&(r=e[o].component),r)return r}}if(!e)return null;for(var n,a,o=e;;){if(o.id&&0==o.id.indexOf("celtra-")){a=o.id.replace("celtra-",""),0==o.id.indexOf("celtra-object-")&&(n=o.id.replace("celtra-object-",""));var r=t(g);if(r)return"undefined"!=typeof CreativeUnit&&r instanceof CreativeUnit?r.currentScreen:r}if(!o.parentNode)break;o=o.parentNode}return null}var l=15,d=100,s=3e3,m=40,f={capture:!0,passive:!0},p=e,v=t,h=t.adapter.trackingCenter,g=t.units,w=!1,I=null,b=!0,L={},j=0,M=null,E=Date.now(),T=0,y=0,C=0,U=0,D=e.ownerDocument.defaultView||e.ownerDocument.parentWindow;attach(p,"touchstart",n,f),attach(p,"mousedown",n,f)};
function Tapper(e,t){function a(e){for(var t=e,a=null;1!=t.nodeType;)t=t.parentNode;for(;t&&1==t.nodeType&&t.tagName;){var n=t.tagName.toLowerCase();if(hasClass(t,"touchable")||"a"===n&&t.href||"button"===n||"img"===n||"input"===n&&t.type&&"button"===t.type.toLowerCase()){a=t;break}t=t.parentNode}return a}function n(e,t){var a=e.ownerDocument.createEvent("MouseEvents");a.initEvent("tap",!0,!0),t.dispatchEvent(a)}var o="undefined"!=typeof creative&&creative.adapter||adapter,c=o.useImprovedTapDetection?10:20,r=o.useImprovedTapDetection?200:400;t=t||o.useNativeClickForTapDetection,t&&(attach(e,"click",function(t){var o=a(t.target);o&&n(e,o)},!0),o.useNativeClickForTapDetection)||attach(e,"touchstart",function(i){var u=a(i.target);if(u){var h=!1;if(celtra.iframe()){var s=function(){var e=o.getTopWindow();return[e.scrollX,e.scrollY,e.innerWidth,e.innerHeight]},d=s();h=!0}var v=i.targetTouches[0].clientX-c,l=i.targetTouches[0].clientX+c,f=i.targetTouches[0].clientY-c,p=i.targetTouches[0].clientY+c;addClass(u,"touched");var g=!1,T=!1,m=!1,C=!1,D=new Date,w=function(e){if(!g&&!T){var t=e.targetTouches[0].clientX,a=e.targetTouches[0].clientY;g=h&&d.toString()!=s().toString(),T=!(t>=v&&l>=t&&a>=f&&p>=a),T||g?removeClass(u,"touched"):addClass(u,"touched")}},y=function(){if(!C&&(C=!0,detach(e,"touchmove",w,!1),detach(e,"touchend",arguments.callee,!1),hasClass(u,"touched"))){var a=new Date-D>r&&!deviceInfo.deviceType.desktop();if(removeClass(u,"touched"),T||g||m||a)return;t||n(e,u)}},N=function(){detach(e,"touchend",N,!0),nextFrame(function(){m=!0,y()})};attach(e,"touchcancel",function(e){removeClass(u,"touched"),y(e)},!1),attach(e,"touchmove",w,!1),attach(e,"touchend",y,!1),attach(e,"touchend",N,!0)}},!0)};
function TouchEventSimulator(t){this.el=t,this.doc=t.ownerDocument?t.ownerDocument:t,this.win=this.doc.defaultView,this.touch=null,this._initialised=!1,this._firstEventFired=!1,this.handleFirstEvent=this.handleFirstEvent.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this),this.handlePointerMove=this.handlePointerMove.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handlePointerCancel=this.handlePointerCancel.bind(this),this.captureBubbleEvents=this.captureBubbleEvents.bind(this)}TouchEventSimulator.mode=null,TouchEventSimulator.prototype.start=function(){return this._initialised?void("function"==typeof Logger&&Logger("TouchEventSimulator").warn("Touch event simulator already initialised!")):("function"==typeof Logger&&Logger("TouchEventSimulator").log("Enabling touch event simulation"),this.doc.defaultView.msPointerEnabled?this.startPointers():this.startMouse(),this.el.addEventListener("touchstart",this.captureBubbleEvents,!1),this.el.addEventListener("touchmove",this.captureBubbleEvents,!1),this.el.addEventListener("touchend",this.captureBubbleEvents,!1),this.el.addEventListener("touchcancel",this.captureBubbleEvents,!1),void this.el.addEventListener("tap",this.captureBubbleEvents,!1))},TouchEventSimulator.prototype.stop=function(){return this._initialised?("function"==typeof Logger&&Logger("TouchEventSimulator").log("Disabling touch event simulation"),this.win&&this.win.msPointerEnabled?this.stopPointers():this.stopMouse(),this.el.removeEventListener("touchstart",this.captureBubbleEvents,!1),this.el.removeEventListener("touchmove",this.captureBubbleEvents,!1),this.el.removeEventListener("touchend",this.captureBubbleEvents,!1),this.el.removeEventListener("touchcancel",this.captureBubbleEvents,!1),void this.el.removeEventListener("tap",this.captureBubbleEvents,!1)):void("function"==typeof Logger&&Logger("TouchEventSimulator").warn("Touch event simulator not running!"))},TouchEventSimulator.prototype.captureBubbleEvents=function(t){t.stopPropagation(),t.preventDefault()},TouchEventSimulator.prototype.startMouse=function(){this.el.addEventListener("mousedown",this.handleMouseDown,!0),this.el.addEventListener("mousemove",this.handleMouseMove,!0),this.el.addEventListener("mouseup",this.handleMouseUp,!0),this.el.addEventListener("mouseout",this.handleMouseOut,!0),this.el.addEventListener("dragstart",this.handleDragStart,!0),this._initialised=!0},TouchEventSimulator.prototype.stopMouse=function(){this.el.removeEventListener("mousedown",this.handleMouseDown,!0),this.el.removeEventListener("mousemove",this.handleMouseMove,!0),this.el.removeEventListener("mouseup",this.handleMouseUp,!0),this.el.removeEventListener("mouseout",this.handleMouseOut,!0),this.el.removeEventListener("dragstart",this.handleDragStart,!0),this._initialised=!1},TouchEventSimulator.prototype.startPointers=function(){this.el.addEventListener("MSPointerDown",this.handlePointerDown,!0),this.el.addEventListener("MSPointerMove",this.handlePointerMove,!0),this.el.addEventListener("MSPointerUp",this.handlePointerUp,!0),this.el.addEventListener("MSPointerCancel",this.handlePointerCancel,!0),this._initialised=!0},TouchEventSimulator.prototype.stopPointers=function(){this.el.removeEventListener("MSPointerDown",this.handlePointerDown,!0),this.el.removeEventListener("MSPointerMove",this.handlePointerMove,!0),this.el.removeEventListener("MSPointerUp",this.handlePointerUp,!0),this.el.removeEventListener("MSPointerCancel",this.handlePointerCancel,!0),this._initialised=!1},TouchEventSimulator.prototype.init=function(){this.doc.defaultView.navigator.msPointerEnabled?this.start():(this.el.addEventListener("touchstart",this.handleFirstEvent,!0),this.el.addEventListener("mousedown",this.handleFirstEvent,!0))},TouchEventSimulator.prototype.updateTouchCoordinates=function(t){this.touch.screenX=t.screenX,this.touch.screenY=t.screenY,this.touch.pageX=t.pageX,this.touch.pageY=t.pageY,this.touch.clientX=t.clientX,this.touch.clientY=t.clientY},TouchEventSimulator.prototype.ignorables=["select","input","textarea"],TouchEventSimulator.prototype.isFormElement=function(t){return this.ignorables.indexOf(t.nodeName.toLowerCase())>-1},TouchEventSimulator.prototype.isIgnorable=function(t){for(var e=t;e&&e instanceof HTMLElement;e=e.parentNode)if(hasClass(e,"ignore-toucheventsimulator"))return!0;return!1},TouchEventSimulator.prototype.handleFirstEvent=function(t){this._firstEventFired||(this._firstEventFired=!0,this.el.removeEventListener("touchstart",this.handleFirstEvent,!0),this.el.removeEventListener("mousedown",this.handleFirstEvent,!0),"touch"!=TouchEventSimulator.mode&&"mousedown"==t.type?(TouchEventSimulator.mode="mouse",this.start(),this.handleMouseDown(t)):TouchEventSimulator.mode="touch")},TouchEventSimulator.prototype.handleMouseDown=function(t){0!=t.button||this.isIgnorable(t.target)||(this.touch={identifier:0,target:t.target},this.updateTouchCoordinates(t),t.stopPropagation(),this.isFormElement(t.target)||t.preventDefault(),this.fireTouchEvent("touchstart",t))},TouchEventSimulator.prototype.handleMouseMove=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),t.stopPropagation(),t.preventDefault(),this.fireTouchEvent("touchmove",t))},TouchEventSimulator.prototype.handleMouseUp=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),t.stopPropagation(),t.preventDefault(),this.fireTouchEvent("touchend",t),this.touch=null)},TouchEventSimulator.prototype.handleMouseOut=function(t){this.touch&&0==t.button&&(t.clientX<0||t.clientX>this.win.innerWidth||t.clientY<0||t.clientY>this.win.innerHeight)&&this.cancelInteraction()},TouchEventSimulator.prototype.handleDragStart=function(t){return t.preventDefault(),!1},TouchEventSimulator.prototype.handlePointerDown=function(t){0==t.button&&(this.touch={identifier:0,target:t.target},this.updateTouchCoordinates(t),this.fireTouchEvent("touchstart",t))},TouchEventSimulator.prototype.handlePointerMove=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),this.fireTouchEvent("touchmove",t))},TouchEventSimulator.prototype.handlePointerUp=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),this.fireTouchEvent("touchend",t))},TouchEventSimulator.prototype.handlePointerCancel=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),this.fireTouchEvent("touchcancel",t),this.touch=null)},TouchEventSimulator.prototype.fireTouchEvent=function(t,e){var n=this.doc.createEvent("HTMLEvents");n.initEvent(t,!0,!0),"touchend"==t||"touchcancel"==t?(n.touches=n.targetTouches=[],n.changedTouches=[this.touch]):n.touches=n.targetTouches=n.changedTouches=[this.touch],e.target.dispatchEvent(n)},TouchEventSimulator.prototype.cancelInteraction=function(){this.touch&&(this.fireTouchEvent("touchcancel",this.touch),this.touch=null)};;
function SwipeListener(e){function t(e,t){return Math.abs(e)>Math.abs(t)?e>0?"east":"west":t>0?"south":"north"}function n(){r.removeEventListener("touchmove",a),r.removeEventListener("touchend",o)}function a(e){if(e.touches.length>1)n();else{var a=e.changedTouches[0].pageX-s,o=e.changedTouches[0].pageY-c;if(u=Math.max(Math.abs(a),Math.abs(o)),u>Math.min(50,v))if(null===i)i=t(a,o);else{var h=t(a,o);i!=h&&n()}}}function o(){n(),u>=v&&d(i,u)}function h(e){creative.adapter.useNativeClickForTapDetection||e.preventDefault(),1==e.touches.length&&(s=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY,i=null,r.addEventListener("touchmove",a,!1),r.addEventListener("touchend",o,!1))}var s,c,i,u,r=e.target,d=e.swipe,v=e.minLength||50;window.addEventListener("touchstart",noop,!1),r.addEventListener("touchstart",h,!1)};
function PlaceboBar(e,t,a,i){var n=!1,r=document.createElement("div");r.className="celtra-placebobar",r.style.cssText="position: absolute; bottom: 60px; left: 0; right: 0; margin: auto; z-index: 20; width: 215px; height: 8px;";var l=document.createElement("img");l.src=creative.resourceUrl+"runner/clazzes/CreativeUnit/loading-back.png",l.style.position="absolute",l.style.width="100%",l.style.height="100%",r.appendChild(l);var o=document.createElement("div");o.style.position="absolute",o.style.top="2px",o.style.bottom="2px",o.style.left="3px",o.style.right="3px",r.appendChild(o);var s=document.createElement("div");return s.style.background="url("+creative.resourceUrl+"runner/clazzes/CreativeUnit/loading-over.png) "+i+" repeat-x",s.style.position="absolute",s.style.width="0",s.style.height="100%",o.appendChild(s),r.start=function(){function i(){if(r.parentNode){var n=Math.min((new Date-l)/e,t);s.style.width=100*n+"%",t>n&&setTimeout(i,2*a*Math.random())}}if(!n){n=!0;var l=new Date;setTimeout(i,0)}},r};
var EventEmitter={emit:function(t){var e=this._listeners;if(e&&e[t]){var n=[].slice.call(arguments,1);e[t].forEach(function(t){t.apply(window,n)})}},emits:function(){var t=arguments;return function(){this.emit.apply(this,t)}.bind(this)},addListener:function(t,e){var n=this._listeners;n||(n=this._listeners={}),n[t]||(n[t]=[]),n[t].push(e)},removeListener:function(t,e){var n=this._listeners;n&&n[t]&&(n[t]=n[t].filter(function(t){return t!==e}))},once:function(t,e){var n=this;n.on(t,function i(){n.off(t,i),e.apply(this,arguments)})},onAll:function(t,e){t.split(" ").waitForEach(function(t,e){this.once(t,e)},e,this)}};EventEmitter.on=EventEmitter.addListener,EventEmitter.off=EventEmitter.removeListener,EventEmitter.addEventListener=EventEmitter.addListener,EventEmitter.removeEventListener=EventEmitter.removeListener;;
function InViewObject(t,e){this.view=t,this.inViewParent=e,this._init()}extend(InViewObject.prototype,EventEmitter),InViewObject.prototype._init=function(){this.rectInView=CRect.ZERO,this.areaInViewRatio=0,this.active=!1,this._maxPossibleDimensions={width:0,height:0,area:0},this.computeRectInView=this.computeRectInView.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this)},InViewObject.prototype.getNode=function(){return this.view.getNode()},InViewObject.prototype.getParentMaxPossDims=function(){return this.inViewParent?this.inViewParent.getMaxPossibleDimensions():this.adapter.getViewportRect()},InViewObject.prototype.computeRectInView=function(){var t=this.inViewParent.getRectInView(),e=this.getBoundingClientRect(),i=t.intersect(e),n=!1;this.rectInView.equals(i)||(this.rectInView=i,n=!0),this._computeMaxPossibleDimensions(e,this.getParentMaxPossDims());var s=this._maxPossibleDimensions.area>0?i.area/this._maxPossibleDimensions.area:0,o=!1;s!==this.areaInViewRatio&&(this.areaInViewRatio=s,o=!0),n&&(this.emit("rectInViewChanged",i),Logger("InViewObject").debug(this.view.toString()+", rectInViewChanged: "+this.rectInView.toString())),o&&(this.emit("areaInViewRatioChanged",s),Logger("InViewObject").debug(this.view.toString()+", areaInViewRatioChanged: "+s))},InViewObject.prototype.getBoundingClientRect=function(){var t=this.getNode();return t?CRect.adopt(t.getBoundingClientRect()):CRect.ZERO},InViewObject.prototype.getMaxPossibleDimensions=function(){return this._maxPossibleDimensions},InViewObject.prototype._computeMaxPossibleDimensions=function(t,e){this._maxPossibleDimensions.width=Math.min(e.width,t.width),this._maxPossibleDimensions.height=Math.min(e.height,t.height),this._maxPossibleDimensions.area=this._maxPossibleDimensions.width*this._maxPossibleDimensions.height},InViewObject.prototype.getRectInView=function(){return this.rectInView},InViewObject.prototype.getAreaInViewRatio=function(){return this.areaInViewRatio},InViewObject.prototype.start=function(){this.active||(this._start(),this.active=!0,this.computeRectInView())},InViewObject.prototype._start=function(){this.inViewParent.on("rectInViewChanged",this.computeRectInView),this.inViewParent.on("areaInViewRatioChanged",this.computeRectInView)},InViewObject.prototype.stop=function(){this.active&&(this.computeRectInView(),this._stop(),this.active=!1)},InViewObject.prototype._stop=function(){this.inViewParent.off("rectInViewChanged",this.computeRectInView),this.inViewParent.off("areaInViewRatioChanged",this.computeRectInView)};;
function TaskScheduler(){this.hub=extend({},EventEmitter)}TaskScheduler.prototype.when=function(){var t,e=this;return t=Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments),{run:function(n){t.waitForEach(function(t,n){e.hub.once(t,n)},n)}}},TaskScheduler.prototype.notify=function(t){this.paused||this.hub.emit(t)},TaskScheduler.prototype.notifies=function(t){return function(){this.notify(t)}.bind(this)},TaskScheduler.prototype.pause=function(){this._paused=!0};;
function DryRunResultSet(t){this._actions=t}DryRunResultSet.prototype.contains=function(t,n){return this._actions.some(function(e){var o=t==e.method,u=!n||n==e.instance;return o&&u})},DryRunResultSet.prototype.getAll=function(){return this._actions},DryRunResultSet.prototype.concat=function(t){return new DryRunResultSet(this._actions.concat(t.getAll()))};;
var ActionInvocationSimulator={_dryRun:!1,_dryRunActions:[],_dryRunExecutedActionsLocalIds:[],beginDryRun:function(){this._dryRun=!0,this._dryRunActions=[],this._dryRunExecutedActionsLocalIds=[]},endDryRun:function(){var n=this._dryRunActions;return this._dryRun=!1,this._dryRunActions=[],this._dryRunExecutedActionsLocalIds=[],new DryRunResultSet(n)},isDryRun:function(){return this._dryRun},needsDryRun:function(n){return!this._dryRunExecutedActionsLocalIds[n]},logActionDryRun:function(n,t,u){this._dryRunExecutedActionsLocalIds[n]=!0,this._dryRunActions.push({method:t,instance:u})}};;
var TriggerHost={_getTriggers:function(r,i){return i||(i=retTrue),this.triggers.filter(function(t){return t.type==r&&i(t.parameters,t)})},_fireArrayOfTriggers:function(r,i,t){var e=this;i||(i=noop),t||(t=new ActionContext(e)),r.waitForEach(function(r,i){r.onFire?r.onFire(t,i):i()},i)},hasTriggers:function(r,i){return this._getTriggers(r,i).length>0},fireTriggersDryRun:function(r,i,t,e){var n;try{ActionInvocationSimulator.beginDryRun(),this.fireTriggers(r,i,t,e)}finally{n=ActionInvocationSimulator.endDryRun()}return n},fireTriggers:function(r,i,t,e){var n=this._getTriggers(r,i);this._fireArrayOfTriggers(n,t,e)},fireSortedTriggers:function(r,i,t,e,n){var g=this._getTriggers(r,i),n=n||null;this._fireArrayOfTriggers(g.sort(n),t,e)},triggerAction:function(r,i,t){this.fireTriggers(i.eventName,null,t,r)},triggerByLocalIdAction:function(r,i,t){var e=i.event?[i.event]:[];this._fireArrayOfTriggers(e,t,r)},triggerByLocalIdActionDryRun:function(r,i,t){this.triggerByLocalIdAction(r,i,t)}};;
var SceneHost={_initImmediatelyPlayedScenes:function(){if(this.immediatelyPlayedScenes){var e=[];if(this instanceof Screen){e=this.immediatelyPlayedScenes.appear.scenes;var i=!this.appearedAtLeastOnce;i&&(e=e.concat(this.immediatelyPlayedScenes.firstAppear.scenes))}else e=this.immediatelyPlayedScenes.conditionMet.scenes;e.forEach(function(e){e.renderFirstFrame()})}}};;
function ActionContext(e,t){if(this._id=randInt(),this.initiator=e,this.initiationTimestamp=new Date/1e3,"object"==typeof t?(this.consideredUserInitiatedByBrowser=!!t.consideredUserInitiatedByBrowser,this.certainlyNotCausedByUserBehavior=!!t.certainlyNotCausedByUserBehavior):(this.consideredUserInitiatedByBrowser=!!t,this.certainlyNotCausedByUserBehavior=!1),this.inUserInitiatedIteration=this.consideredUserInitiatedByBrowser,this.consideredUserInitiatedByBrowser&&this.certainlyNotCausedByUserBehavior)throw new Error("Unable to create an ActionContext where both consideredUserInitiatedByBrowser and certainlyNotCausedByUserBehavior are true!");if(e instanceof Screen)this.screen=e,this.screenObject=null,this.unitVariant=this.screen.parentUnitVariant;else if(e instanceof ScreenObject)this.screen=e.parentScreen,this.screenObject=e,this.unitVariant=this.screen.parentUnitVariant;else{if(!("undefined"!=typeof CreativeUnitVariant&&e instanceof CreativeUnitVariant))throw new Error("Initiator ("+e+") is not a Screen or a ScreenObject. Analytics would be confused.");this.screen=null,this.screenObject=null,this.unitVariant=e}if(this.inUserInitiatedIteration){var i=function(){this.inUserInitiatedIteration=!1}.bind(this);defer(i),nextFrame(i)}if(this.trackUserInteraction=this.trackUserInteraction.bind(this),this._isAttributable=!!this.screen&&this._isScreenReadyForEventAttribution(),this.screen&&!this.screen.parentUnit.name)throw new Error("Parent unit missing name.")}ActionContext.prototype._isScreenReadyForEventAttribution=function(){return this.screen.isMasterScreen()?this.screen.parentContainer.screens.some(function(e){return e.appearedAtLeastOnce&&e.isNormalScreen()}):this.screen.appearedAtLeastOnce},ActionContext.prototype.extendEvent=function(e){return extend({unitName:this.unitVariant?this.unitVariant.parentUnit.name:this.screen.parentUnit.name,unitVariantLocalId:this.unitVariant?this.unitVariant.localId:null,screenLocalId:this.screen?this.screen.localId:null,screenTitle:this.screen?this.screen.title:null,screenIsMaster:this.screen?this.screen.isMasterScreen():null,objectLocalId:this.screenObject?this.screenObject.localId:null,objectName:this.screenObject?this.screenObject.name:null,objectClazz:this.screenObject?this.screenObject.constructor.name:null,initiationTimestamp:this.initiationTimestamp},e)},ActionContext.prototype.track=function(e,t){this.screen&&!this._isAttributable&&console.warn('Event "'+e.name+'" appears to be initiated before a screen was ever shown and will be ignored.'),creative.track(this.extendEvent(e),t)},ActionContext.prototype.trackUserInteraction=function(){if(creative.getUserInteracted())creative.interactionTrackingTimeout||(this.track({name:"interaction"}),creative.interactionTrackingTimeout=setTimeout(function(){creative.interactionTrackingTimeout=null},1e3));else{if(creative.runtimeParams.userInteracted=1,creative.experiments.get("TrackViewableAreaChange")){var e=creative.adapter;e.canMeasureViewportPlacementGeometry&&"function"==typeof e.trackViewableAreaRatio&&e.trackViewableAreaRatio()}this.track({name:"firstInteraction"})}defer(creative.trackingCenter.batchFlush),creative.userInteracted(this)},ActionContext.prototype.trackClickThrough=function(e){e||(e=noop),creative.runtimeParams.clickedThrough?setTimeout(e,0):(creative.runtimeParams.clickedThrough=1,this.track({name:"firstClickThrough"},e)),defer(creative.trackingCenter.batchFlush),creative.clickedThrough(this)};;
function VideoContext(t,e,i){VideoContext.uberConstructor.call(this,t instanceof ActionContext?t.initiator:t,t&&t.userInitiated),this.file=e,this.url=e.getUrl(),this.label=i,this.source=null}inherit(VideoContext,ActionContext),VideoContext._eventNames=["videoDurationUpdate","videoPlayAttempted","videoPlayedSegment","videoStart","videoFirstQuartile","videoMidpoint","videoThirdQuartile","videoComplete"],VideoContext.prototype.registerSource=function(t){if(!t)throw"Not a valid source of video events.";this.source=t,VideoContext._eventNames.forEach(function(t){this.source.on(t,function(e){this.handleEvent(t,e)}.bind(this))}.bind(this))},VideoContext.prototype.handleEvent=function(t,e){this.track(extend(JSON.parse(JSON.stringify(e||{})),{name:t}))},VideoContext.prototype.track=function(t){if("videoPlayAttempted"==t.name){var e=this.file.url?"URL":"File";extend(t,{sourceType:e,source:"URL"==e?this.file.url:this.file.blobHash,label:this.label})}VideoContext.uber.track.call(this,t)};;
function ShakeListener(){this.shakeThreshold=1.5,this.canListen=!0,this.slidingWindow=5,this.signals=[],this.handleMotion=this.handleMotion.bind(this),this.topWindow=creative.adapter.getTopWindow()}extend(ShakeListener.prototype,EventEmitter),ShakeListener.prototype.start=function(){this.canListen=!0,creative.deviceMotionListenerAdded||(creative.deviceMotionListenerAdded=!0,this.topWindow.addEventListener("devicemotion",this.handleMotion))},ShakeListener.prototype.stop=function(){this.canListen=!1,creative.deviceMotionListenerAdded&&(creative.deviceMotionListenerAdded=!1,this.topWindow.removeEventListener("devicemotion",this.handleMotion))},ShakeListener.prototype.handleMotion=function(i){if(this.canListen){this.signals.push(i.accelerationIncludingGravity),this.signals.length>this.slidingWindow&&this.signals.shift();var e=this.signals.reduce(function(i,e){return{x:i.x+e.x,y:i.y+e.y,z:i.z+e.z}}),t={x:e.x/this.signals.length,y:e.y/this.signals.length,z:e.z/this.signals.length};if(this.prevSignal){var s=null,n=Math.abs(t.x-this.prevSignal.x),h=Math.abs(t.y-this.prevSignal.y),a=Math.abs(t.z-this.prevSignal.z);if(90===Math.abs(creative.adapter.orientation)){var o=h;h=n,n=o}n>h&&n>a&&n>this.shakeThreshold?s="x":h>n&&h>a&&h>this.shakeThreshold?s="y":a>n&&a>h&&a>this.shakeThreshold&&(s="z"),(n>this.shakeThreshold||h>this.shakeThreshold||a>this.shakeThreshold)&&this.emit("shake",s)}this.prevSignal=t}};;
!function(){"use strict";function t(t){for(var e in t)this[e]=t[e]}var e=function(t){var e="undefined"!=typeof FontFace,i=/iP(?:ad|hone|od).*OS ([0-9_]+)/.exec(t),n=!!i&&parseInt(i[1],10)>=10,o=/^(?!.*(?:Android|Chrome)).*Version\/(\d+(?:\.\d+)*).*?Safari/.exec(t);if(o||n)return!1;var s=/Gecko.*Firefox\/(\d+)/.exec(t);return s?e&&parseInt(s[1],10)>46:e}(window.navigator.userAgent);t.prototype.getId=function(){return this.typefaceId||this.id},t.prototype.getSubsetString=function(){return this.subset},t.prototype.getUnicodeRange=function(){return this.unicodes},t.prototype.getBrowserCompatibleFontFamily=function(){var t=this.supportsStretch()&&this.stretch?this.family+" "+this.stretch:this.family;if(t.length>25){for(var e,i=5381,n=0,o=t.length;o>n;n++)e=t.charCodeAt(n),i=(i<<5)+i+e;return i.toString()}return t},t.prototype.setBaseUrl=function(t){this.baseUrl=t},t.prototype.isCustom=function(){return"custom"===this.provider},t.prototype.isGoogle=function(){return"google"===this.provider},t.prototype.isMonotype=function(){return"monotype"===this.provider},t.prototype.isSystem=function(){return"system"===this.provider},t.prototype.hasSubsetStringDefined=function(){var t=this.getSubsetString();return"string"==typeof t&&t.length>0},t.prototype.hasUnicodeRangeDefined=function(){var t=this.getUnicodeRange();return"string"==typeof t&&t.length>0},t.prototype.needsLoading=function(){return this.isMonotype()||this.isGoogle()||this.isCustom()},t.prototype.supportsStretch=function(){return this.isMonotype()||this.isCustom()},t.prototype.getCssProperties=function(){return{"font-family":this.needsLoading()?'"'+this.getBrowserCompatibleFontFamily()+'", Helvetica, sans-serif':this.getBrowserCompatibleFontFamily(),"font-style":this.style,"font-weight":this.weight}},t.prototype.getFileUrl=function(t){if("undefined"!=typeof this.files&&"undefined"!=typeof this.files[t]){var e=this.getId();if("string"!=typeof e)return this.baseUrl+this.files[t]+"."+t;var i=this.files[t]&&this.files[t].name||"webfont",n=this.baseUrl+e+"/"+encodeURIComponent(i)+"."+t;return this.hasSubsetStringDefined()&&(n+="?subset="+encodeURIComponent(this.getSubsetString())),n}},t.prototype.getStyleForVariation=function(){var t=/normal|italic|oblique/i.exec(this.style);return"undefined"!=typeof t?t[0]:void 0},t.prototype.getWeightForVariation=function(){var t=/normal|bold|([1-9])00/i.exec(this.weight);return"undefined"!=typeof t?t[0]:void 0},t.prototype.generateFontFace=function(){var t="",e=this.getFileUrl("ttf"),i=this.getFileUrl("woff");return this.style&&this.weight&&(e||i)&&(t="@font-face {",t+='font-family: "'+this.getBrowserCompatibleFontFamily()+'";',t+="font-style: "+this.style+";",t+="font-weight: "+this.weight+";",t+="src:",i&&(t+='url("'+i+'") format("woff")'),e&&i&&(t+=","),e&&(t+='url("'+e+'") format("truetype")'),t+=";",this.hasUnicodeRangeDefined()&&(t+="unicode-range: "+this.getUnicodeRange()+";"),t+="}"),t},t.prototype.loadStyle=function(t){t=t||function(){};var i=this.getBrowserCompatibleFontFamily(),n=function(e){t(e||"Failed to load font files.")},o=function(){if(e){var o="300px",s=this.style+" "+this.weight+" "+o+' "'+i+'"',r=this.hasUnicodeRangeDefined()&&this.hasSubsetStringDefined()?this.getSubsetString():" ";document.fonts.load(s,r).then(function(e){1===e.length?t():n()},function(){n()})}else{if("undefined"==typeof FontLoader)return void n("Font Loader is not initialized.");FontLoader.watch(i,this.style,this.weight,t,n,this.getSubsetString())}}.bind(this);if(this.isCustom()||this.isMonotype()){var s="font-style-manager",r=document.getElementById(s);r||(r=document.createElement("style"),r.id=s,document.getElementsByTagName("head")[0].appendChild(r));var a=this.generateFontFace();if(!a)return void n("Unable to define style for font without specifying files, style and weight.");var f=[].slice.apply(r.sheet.cssRules).some(function(t){var e=t.style.getPropertyValue("font-family").replace(/^['"](.+)['"]$/,"$1");return e==this.getBrowserCompatibleFontFamily()&&t.style.getPropertyValue("font-style")==this.style&&t.style.getPropertyValue("font-weight")==this.weight}.bind(this));f||r.sheet.insertRule(a,r.sheet.cssRules.length),o()}else if(this.isGoogle()){var h=("https:"===document.location.protocol?"https":"http")+"://fonts.googleapis.com/css",l=i.replace(/ /g,"+"),u=this.variation;if(!u){var d="",p="",g=this.getWeightForVariation();if("undefined"!=typeof g){p=g,"normal"==p?p=400:"bold"==p&&(p=700);var c=this.getStyleForVariation();"undefined"!=typeof c&&"italic"==c&&(d=c)}u=p+d}u&&(l+=":"+u);var y=h+"?family="+l;this.hasSubsetStringDefined()&&(y+="&text="+encodeURIComponent(this.getSubsetString()));var m=[].slice.apply(document.getElementsByTagName("link")).filter(function(t){return t.href===y})[0];if(m||(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("media","all"),m.setAttribute("href",y)),e){var v=function(){m._finished=!0,o()};m._finished?o():(m.addEventListener("load",v),m.addEventListener("error",v))}else"undefined"!=typeof defer?defer(o,0,"FontBase.loadStyle defer watchFont"):setTimeout(o,0);m.parentNode||document.getElementsByTagName("head")[0].appendChild(m)}else this.isSystem()?t():n("Invalid or unsupported provider.")},Object.defineProperty(t,"useCSSFontLoadingAPI",{value:e}),window.FontBase=t}();;
var ScreenTransition={replace:function(t,e,r,s,i,a){r.style.opacity=0,r.style.display="block",s.style.display="block",e.style.display="none",nextFrame(function(){r.style.opacity=1,t.style.opacity=0,nextFrame(function(){t.style.display="none",nextFrame(a||noop)})})},fade:function(t,e,r,s,i,a){function n(){celtra.styler.css(r,"transition",""),celtra.styler.css(t,"transition",""),t.style.display="none",nextFrame(a||noop)}r.style.opacity=0,r.style.display="block",s.style.display="block",e.style.display="none",once(t,"transitionend",n),nextFrame(function(){celtra.styler.css(t,"transition","opacity "+i.duration+"ms ease-out"),celtra.styler.css(r,"transition","opacity "+i.duration+"ms ease-out"),nextFrame(function(){r.style.opacity=1,t.style.opacity=0})})},slide:function(t,e,r,s,i,a){var n={transition:"all "+i.duration+"ms ease-out"};switch(i.direction||"west"){case"north":n.startingFrom="translateY(0)",n.endingFrom="translateY("+-i.unitSize.height+"px)",n.startingTo="translateY("+i.unitSize.height+"px)",n.endingTo="translateY(0)";break;case"south":n.startingFrom="translateY(0)",n.endingFrom="translateY("+i.unitSize.height+"px)",n.startingTo="translateY("+-i.unitSize.height+"px)",n.endingTo="translateY(0)";break;case"east":n.startingFrom="translateX(0)",n.endingFrom="translateX("+i.unitSize.width+"px)",n.startingTo="translateX("+-i.unitSize.width+"px)",n.endingTo="translateX(0)";break;case"west":n.startingFrom="translateX(0)",n.endingFrom="translateX("+-i.unitSize.width+"px)",n.startingTo="translateX("+i.unitSize.width+"px)",n.endingTo="translateX(0)"}n.startingFromOpacity=1,n.startingToOpacity=0,n.endingFromOpacity=0,n.endingToOpacity=1,this._runTransition(t,e,r,s,n,i.duration,a)},flip:function(t,e,r,s,i,a){var n={transition:"all "+i.duration+"ms ease-out"},o="perspective("+2*i.unitSize.width+"px) ";switch(i.direction||"west"){case"north":n.startingFrom=o+"rotateX(0)",n.endingFrom=o+"rotateX(180deg)",n.startingTo=o+"rotateX(-180deg)",n.endingTo=o+"rotateX(0)";break;case"south":n.startingFrom=o+"rotateX(0)",n.endingFrom=o+"rotateX(-180deg)",n.startingTo=o+"rotateX(180deg)",n.endingTo=o+"rotateX(0)";break;case"east":n.startingFrom=o+"rotateY(0)",n.endingFrom=o+"rotateY(180deg)",n.startingTo=o+"rotateY(-180deg)",n.endingTo=o+"rotateY(0)";break;case"west":n.startingFrom=o+"rotateY(0)",n.endingFrom=o+"rotateY(-180deg)",n.startingTo=o+"rotateY(180deg)",n.endingTo=o+"rotateY(0)"}celtra.styler.css(t.parentNode,"transformStyle","preserve-3d"),celtra.styler.css(t,"backfaceVisibility","hidden"),celtra.styler.css(e,"backfaceVisibility","hidden"),celtra.styler.css(r,"backfaceVisibility","hidden"),celtra.styler.css(s,"backfaceVisibility","hidden"),celtra.styler.css(t,"transformOrigin","50% 50% 0"),celtra.styler.css(e,"transformOrigin","50% 50% 0"),celtra.styler.css(r,"transformOrigin","50% 50% 0"),celtra.styler.css(s,"transformOrigin","50% 50% 0"),this._runTransition(t,e,r,s,n,i.duration,function(){celtra.styler.css(t.parentNode,"transformStyle",""),celtra.styler.css(t,"backfaceVisibility",""),celtra.styler.css(e,"backfaceVisibility",""),celtra.styler.css(r,"backfaceVisibility",""),celtra.styler.css(s,"backfaceVisibility",""),celtra.styler.css(t,"transform",""),celtra.styler.css(e,"transform",""),celtra.styler.css(r,"transform",""),celtra.styler.css(s,"transform",""),celtra.styler.css(t,"transformOrigin",""),celtra.styler.css(e,"transformOrigin",""),celtra.styler.css(r,"transformOrigin",""),celtra.styler.css(s,"transformOrigin",""),nextFrame(a||noop)})},cube:function(t,e,r,s,i,a){var n={transition:"all "+i.duration+"ms ease-out"},o="perspective("+2*i.unitSize.width+"px) ";switch(i.direction||"west"){case"north":n.startingFrom=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(0) ",n.endingFrom=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(90deg) ",n.startingTo=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(-90deg)",n.endingTo=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(0) ";break;case"south":n.startingFrom=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(0) ",n.endingFrom=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(-90deg)",n.startingTo=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(90deg) ",n.endingTo=o+"translateZ("+-i.unitSize.height/2+"px) rotateX(0) ";break;case"east":n.startingFrom=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(0) ",n.endingFrom=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(90deg) ",n.startingTo=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(-90deg)",n.endingTo=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(0) ";break;case"west":n.startingFrom=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(0) ",n.endingFrom=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(-90deg)",n.startingTo=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(90deg) ",n.endingTo=o+"translateZ("+-i.unitSize.width/2+"px) rotateY(0) "}var l=t.style.overflow,c=e.style.overflow,y=r.style.overflow,d=s.style.overflow;switch(celtra.styler.css(t.parentNode,"transformStyle","preserve-3d"),t.style.overflow=e.style.overflow="hidden",r.style.overflow=s.style.overflow="hidden",t.style.backfaceVisibility=e.style.backfaceVisibility="hidden",r.style.backfaceVisibility=s.style.backfaceVisibility="hidden",i.direction||"west"){case"north":case"south":celtra.styler.css(t,"transformOrigin","50% 50% "+-i.unitSize.height/2+"px"),celtra.styler.css(e,"transformOrigin","50% 50% "+-i.unitSize.height/2+"px"),celtra.styler.css(r,"transformOrigin","50% 50% "+-i.unitSize.height/2+"px"),celtra.styler.css(s,"transformOrigin","50% 50% "+-i.unitSize.height/2+"px");break;case"east":case"west":celtra.styler.css(t,"transformOrigin","50% 50% "+-i.unitSize.width/2+"px"),celtra.styler.css(e,"transformOrigin","50% 50% "+-i.unitSize.width/2+"px"),celtra.styler.css(r,"transformOrigin","50% 50% "+-i.unitSize.width/2+"px"),celtra.styler.css(s,"transformOrigin","50% 50% "+-i.unitSize.width/2+"px")}this._runTransition(t,e,r,s,n,i.duration,function(){celtra.styler.css(t.parentNode,"transformStyle",""),t.style.overflow=l,e.style.overflow=c,r.style.overflow=y,s.style.overflow=d,celtra.styler.css(t,"transformOrigin",""),celtra.styler.css(e,"transformOrigin",""),celtra.styler.css(r,"transformOrigin",""),celtra.styler.css(s,"transformOrigin",""),celtra.styler.css(t,"backfaceVisibility",""),celtra.styler.css(e,"backfaceVisibility",""),celtra.styler.css(r,"backfaceVisibility",""),celtra.styler.css(s,"backfaceVisibility",""),nextFrame(a||noop)})},_runTransition:function(t,e,r,s,i,a,n){function o(){celtra.styler.css(r,"transition",""),celtra.styler.css(s,"transition",""),celtra.styler.css(t,"transition",""),celtra.styler.css(e,"transition",""),celtra.styler.css(r,"transform",""),celtra.styler.css(s,"transform",""),celtra.styler.css(t,"transform",""),celtra.styler.css(e,"transform",""),t.style.display=e.style.display="none",t.style.opacity=e.style.opacity=r.style.opacity=s.style.opacity="",nextFrame(n||noop)}celtra.styler.css(t,"transform",i.startingFrom),celtra.styler.css(e,"transform",i.startingFrom),celtra.styler.css(r,"transform",i.startingTo),celtra.styler.css(s,"transform",i.startingTo),t.style.opacity=e.style.opacity="undefined"==typeof i.startingFromOpacity?1:i.startingFromOpacity,r.style.opacity=s.style.opacity="undefined"==typeof i.startingToOpacity?1:i.startingToOpacity,r.style.display=s.style.display="block";var l=this._runOnce(o);once(r,"transitionend",l),setTimeout(function(){celtra.styler.css(r,"transition",i.transition),celtra.styler.css(t,"transition",i.transition),celtra.styler.css(s,"transition",i.transition),celtra.styler.css(e,"transition",i.transition),nextFrame(function(){celtra.styler.css(t,"transform",i.endingFrom),celtra.styler.css(e,"transform",i.endingFrom),celtra.styler.css(r,"transform",i.endingTo),celtra.styler.css(s,"transform",i.endingTo),t.style.opacity=e.style.opacity="undefined"==typeof i.endingFromOpacity?1:i.endingFromOpacity,r.style.opacity=s.style.opacity="undefined"==typeof i.endingToOpacity?1:i.endingToOpacity}),setTimeout(l,a+50)},20)},run:function(t,e,r,s,i){var a=this._getSupportedAnimation(i.animation||"replace");if(!(a in this))throw new Error("The transition function does not exist!");this[a].apply(this,arguments)},_getSupportedAnimation:function(t){return!android("4")||window.navigator.userAgent.match(/Chrome.*(Mobile)? Safari/)||"cube"!==t&&"flip"!==t?t:"fade"},_runOnce:function(t){var e=!1;return function(){return e?void 0:(e=!0,t())}}};;
function AdViewableTimeObserver(e){this._tracker=e,this._readyToShow=!1,this._adapter}function AdViewableInViewObjectObserver(){AdViewableInViewObjectObserver.uberConstructor.apply(this,arguments),this._inViewObjects=[],this._viewableInViewObjects=[]}function AdViewableUnitObserver(){AdViewableUnitObserver.uberConstructor.apply(this,arguments),this._units=[],this._viewableUnits=[],this._containerIsViewable=!1}AdViewableTimeObserver.prototype.readyToShow=function(){throw new Error("AdViewableInViewObjectObserver.readyToShow not implemented!")},AdViewableTimeObserver.prototype.registerUnit=function(){throw new Error("AdViewableInViewObjectObserver.registerUnit not implemented!")},AdViewableTimeObserver.prototype.registerAdapter=function(){throw new Error("AdViewableTimeObserver.registerAdapter not implemented!")},AdViewableTimeObserver.prototype.stop=function(){this._tracker.stop()},inherit(AdViewableInViewObjectObserver,AdViewableTimeObserver),AdViewableInViewObjectObserver.prototype.registerAdapter=function(e){this._adapter=e;var t=this._tracker;e.mediaState.on("videoStarted",function(){this._tryStartTracker()}.bind(this)),e.mediaState.on("videoStopped",function(){0===this._viewableInViewObjects.length&&t.stop()}.bind(this))},AdViewableInViewObjectObserver.prototype.readyToShow=function(){this._readyToShow=!0,this._tryStartTracker()},AdViewableInViewObjectObserver.prototype.registerUnit=function(e){var t=e.inView,i=this._inViewObjects,r=this._viewableInViewObjects,a=this._tracker;if(-1===i.indexOf(t)){i.push(t);var n=-1!==r.indexOf(t);!n&&t.getAreaInViewRatio()>0&&r.push(t),this._tryStartTracker(),t.on("areaInViewRatioChanged",function(e){var i=r.indexOf(t),n=-1!==i;!n&&e>0?(r.push(t),this._tryStartTracker()):0===e&&n&&(r.splice(i,1),0===r.length&&a.stop())}.bind(this))}},AdViewableInViewObjectObserver.prototype._tryStartTracker=function(){var e=this._adapter,t=e&&e.mediaState.playingVideo;return this._readyToShow&&(this._viewableInViewObjects.length>0||t)?(this._tracker.start(),!0):!1},inherit(AdViewableUnitObserver,AdViewableTimeObserver),AdViewableUnitObserver.prototype.registerAdapter=function(e){this._adapter=e,this._containerIsViewable=e.containerIsViewable;var t=this._tracker;e.on("containerViewableChange",function(e){this._containerIsViewable=e,e?this._tryStartTracker():t.stop()}.bind(this)),e.mediaState.on("videoStarted",function(){this._tryStartTracker()}.bind(this)),e.mediaState.on("videoStopped",function(){this._adapter.containerIsViewable&&0!==this._viewableUnits.length||t.stop()}.bind(this))},AdViewableUnitObserver.prototype.readyToShow=function(){this._readyToShow=!0,this._tryStartTracker()},AdViewableUnitObserver.prototype.registerUnit=function(e){if(!this._adapter)throw new Error("adapter was not registered yet!");var t=this._units,i=this._viewableUnits,r=this._tracker;-1===t.indexOf(e)&&(t.push(e),-1===i.indexOf(e)&&e._visible&&(i.push(e),this._tryStartTracker()),e.on("appeared",function(){-1===i.indexOf(e)&&(i.push(e),this._tryStartTracker())}.bind(this)),e.on("disappeared",function(){var t=i.indexOf(e);-1!==t&&(i.splice(t,1),0===i.length&&r.stop())}.bind(this)))},AdViewableUnitObserver.prototype._tryStartTracker=function(){var e=this._adapter;return e&&(e.containerIsViewable||e.mediaState.playingVideo)&&this._readyToShow&&this._viewableUnits.length>0?(this._tracker.start(),!0):!1};;
function AdViewableTimeTracker(i,e,t,n){this._trackingCenter=i,this._raf=e,this._win=t,this._intervals=n||{3e3:1e3,1e4:2e3,63e3:3e3},this._isRunning=!1,this._viewableMilliseconds=0,this._fromTime=0,this._pendingPingTimeoutId,this._pendingPingRafId,this._maxRafLatency=500}AdViewableTimeTracker.eventName="viewableTime",AdViewableTimeTracker.TrackingData=function(i,e){return i>e&&(e=i),{name:AdViewableTimeTracker.eventName,from:i/1e3,to:e/1e3}},AdViewableTimeTracker.prototype.start=function(){this._isRunning||(this._isRunning=!0,this._fromTime=Date.now(),0===this._viewableMilliseconds?this._initPing():this._setNextPing())},AdViewableTimeTracker.prototype.stop=function(){if(this._clearPendingPing(),this._isRunning&&-1!==this._getPingInterval()){var i=Date.now(),e=i-this._fromTime;this._viewableMilliseconds+=e;var t=new AdViewableTimeTracker.TrackingData(this._fromTime,i);this._track(t)}this._isRunning=!1},AdViewableTimeTracker.prototype._initPing=function(){var i=this._fromTime,e=this._getPingInterval(),t=new AdViewableTimeTracker.TrackingData(this._fromTime,i);this._pendingPingRafId=this._raf.nextFrame(function(){this._track(t),this._setFromTimeForNextPing(i,e),this._setNextPing()}.bind(this))},AdViewableTimeTracker.prototype._setNextPing=function(){function i(){if(this._isRunning){var i=Date.now();this._viewableMilliseconds+=e,this._normalizeFromTime(i,e),this._pendingPingRafId=this._raf.nextFrame(function(){var t=new AdViewableTimeTracker.TrackingData(this._fromTime,i);this._track(t),this._setFromTimeForNextPing(i,e),this._setNextPing()}.bind(this))}}this._clearPendingPing();var e=this._getPingInterval();this._isRunning&&-1!==e&&(this._pendingPingTimeoutId=this._win.setTimeout(i.bind(this),e))},AdViewableTimeTracker.prototype._normalizeFromTime=function(i,e){var t=i-this._fromTime,n=e+this._maxRafLatency;t>n&&(this._fromTime=i)},AdViewableTimeTracker.prototype._setFromTimeForNextPing=function(i,e){var t=Date.now(),n=t-i,r=n>e;this._fromTime=r?t:i},AdViewableTimeTracker.prototype._getPingInterval=function(){var i=this._viewableMilliseconds,e=this._intervals,t=Object.keys(this._intervals),n=1*t[t.length-1],r=-1;return t.some(function(t){return 1*t>i?(r=e[t],i+r>n&&(r=-1),!0):!1}),r},AdViewableTimeTracker.prototype._clearPendingPing=function(){this._raf.cancelFrame(this._pendingPingRafId),this._win.clearTimeout(this._pendingPingTimeoutId)},AdViewableTimeTracker.prototype._track=function(i){this._trackingCenter.track(i)};;
!function(t){function i(){this.playingVideo=!1}var e=i.prototype;extend(e,EventEmitter),e.stopVideo=function(){this.playingVideo=!1,this.emit("videoStopped")},e.startVideo=function(){this.playingVideo=!0,this.emit("videoStarted")},t.MediaState=i}(window);;
function StateObject(t){Object.defineProperties(this,{values:{enumerable:!1,configurable:!1,writable:!0,value:{}},_isDirty:{enumerable:!1,configurable:!1,writable:!0,value:!1}}),Object.keys(t).forEach(function(e){this.registerValue(e,t[e])},this)}extend(StateObject.prototype,EventEmitter),StateObject.prototype.registerValue=function(t,e){this.values[t]={dirty:!1,value:e},Object.defineProperty(this,t,{get:function(){return this.values[t].value},set:function(e){var i=this.values[t],r=i.value;e!=r&&(i.dirty=!0,i.value=e,this._isDirty=!0,this.emit("change:"+t,e,r))},enumerable:!0})},StateObject.prototype.markClean=function(t){var e=!1;Object.keys(this.values).forEach(function(i){t&&i!==t||(this[i].dirty=!1),e=e||this[i].dirty},this.values),this._isDirty=e},StateObject.prototype.getDirtyValues=function(){for(var t={},e=Object.keys(this.values),i=0;i1&&(t=Array.prototype.slice.apply(arguments));for(var e=0;e=this._targetTime?(this.pause(),this.value=this._targetValue,defer(this._callback||noop),this._startValue=null,this._startTime=null,this._targetValue=null,this._targetTime=null,this._callback=null):this.value=Math.pow(t/this._targetTime,this.options.exp)*i+this._startValue};;
function ThresholdObserver(e){this.threshold=e,this._value=null}extend(ThresholdObserver.prototype,EventEmitter),Object.defineProperty(ThresholdObserver.prototype,"value",{get:function(){return this._value},set:function(e){if(null!==this._value&&this._value!==e){var t=this._value-this.threshold,h=e-this.threshold;0>=t*h&&(0>t?this.emit("up"):0>h&&this.emit("down"))}this._value=e}});;
function BaseCreativeUnit(){}inherit(BaseCreativeUnit,View),BaseCreativeUnit.IGNORABLES=["INPUT","SELECT","TEXTAREA","BUTTON"],BaseCreativeUnit.prototype.awake=function(){BaseCreativeUnit.uber.awake.call(this),this._availableSize={width:0,height:0},this._isRendering=!1,this._engagementTracker=null,this._rxState=null,this._rxStateCopies=[]},BaseCreativeUnit.prototype.createNode=function(){Logger("unit").log("Starting to load "+this),this.on("loaded",creative.adapter.perf.start("CreativeUnit.load").end),creative.experiments.get("TrackingLoadingTimes")&&this.once("_firstScreenLoaded",function(){var e=Date.now()-1e3*creative.runtimeParams.payloadJsClientTimestamp;if(3e4>e){var t={unitName:this.name};creative.aggregatorTracking.trackAggregator("unitLoadTime",e,t),creative.aggregatorTracking.trackAggregator("unitLoadSuccesses",t)}}.bind(this)),creative.adapter.on("mediaStopRequested",function(e){this.emit("mediaStopRequested",e)}.bind(this)),this.unitDiv=BaseCreativeUnit.uber.createNode.call(this);var e="only"==(creative.experiments.get("ExtendedEngagement")||{}).chosenVariant;return e&&(this._engagementTracker=new EngagementTracker(this.unitDiv,creative)),Tapper(this.unitDiv,this.useClickForTap),attach(this.unitDiv,"touchstart",this._handleTouchStart.bind(this)),attach(this.unitDiv,"touchmove",this._handleTouchMove.bind(this)),this.unitDiv},BaseCreativeUnit.prototype.setAvailableSize=function(e,t){var r=this._availableSize.width!=e||this._availableSize.height!=t;return this._availableSize.width=e,this._availableSize.height=t,r},BaseCreativeUnit.prototype.getAvailableSize=function(){return{width:this._availableSize.width,height:this._availableSize.height}},BaseCreativeUnit.prototype.enterRenderTree=function(){throw new Error("Not implemented")},BaseCreativeUnit.prototype.exitRenderTree=function(){throw new Error("Not implemented")},BaseCreativeUnit.prototype.finishedLoading=function(){BaseCreativeUnit.uber.finishedLoading.call(this),Logger("unit").log("Finished loading "+this)},BaseCreativeUnit.prototype._handleTouchStart=function(e){if(!this.swipeable&&!creative.adapter.useNativeClickForTapDetection){for(var t=e.target;1!=t.nodeType;)t=t.parentNode;var r=function(){for(;t!==this.unitDiv;){if(t.className&&hasClass(t,"map-container"))return!0;t=t.parentNode}return!1}.bind(this);-1!=BaseCreativeUnit.IGNORABLES.indexOf(t.nodeName)||r()||e.preventDefault()}},BaseCreativeUnit.prototype._handleTouchMove=function(e){this.swipeable||e.preventDefault()},BaseCreativeUnit.prototype.createRxState=function(){this._rxState=this._generateNewRxStateObject()},BaseCreativeUnit.prototype._generateNewRxStateObject=function(){return new StateObject({left:null,top:null,right:null,bottom:null,width:null,height:null,vw:null,vh:null,x:null,y:null,pageYOffset:null})},BaseCreativeUnit.prototype.updateRxState=function(e){if(this._rxState){var t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;this._rxState.left=~~t.left,this._rxState.top=~~t.top,this._rxState.right=~~t.right,this._rxState.bottom=~~t.bottom,this._rxState.width=~~t.width,this._rxState.height=~~t.height,this._rxState.vw=r.innerWidth,this._rxState.vh=r.innerHeight,this._rxState.pageYOffset=r.pageYOffset,this._rxState.x=~~(t.left+t.width/2-r.innerWidth/2),this._rxState.y=~~(t.top+t.height/2-r.innerHeight/2),this._rxStateCopies.forEach(function(e){e.copyFrom(this._rxState)}.bind(this))}},BaseCreativeUnit.prototype.getRxStateObject=function(){if(this._rxState){var e=this._generateNewRxStateObject();return e.copyFrom(this._rxState),this._rxStateCopies.push(e),e}},BaseCreativeUnit.prototype.goToScreenAction=function(){throw new Error("Not implemented")},BaseCreativeUnit.prototype.alertAction=function(e,t,r){this.alert({message:t.text},r)},BaseCreativeUnit.prototype.checkOrientationAction=function(e,t,r){var a,i=creative.adapter.orientation;0===i||180===i?a=t.onPortrait:(-90==i||90==i)&&(a=t.onLandscape),a?a(e,r):r()},BaseCreativeUnit.prototype.checkOrientationActionDryRun=BaseCreativeUnit.prototype.checkOrientationAction,BaseCreativeUnit.prototype._processURLParams=function(e){return"string"!=typeof e?e:creative.macros(e)},BaseCreativeUnit.prototype._addUrlAppendage=function(e){if(creative.urlOpenedUrlAppendage){var t=this.size.width+"x"+this.size.height,r=function(e){return e.indexOf("?")>=0};return e+(r(e)?"&":"?")+creative.urlOpenedUrlAppendage.replace(new RegExp("{celtraFirstUnitSize}","ig"),t)}return e},BaseCreativeUnit.prototype.openClickThroughDestinationAction=function(e,t,r){var a=creative.clickThroughDestinationUrl,i=creative.shouldClickThroughToNewWindow(e),n=!1,o=2e3,s="clickThroughDestinationOpened",c=function(){n||(n=!0,creative.adapter.openPotentialUniversalOrAppLink(this._processURLParams(a),i))}.bind(this);if(a){var l=function(e){return e.indexOf("itunes.apple.com/us/app/")>0},d=function(e){return 0===e.indexOf("market://details?id=")};creative.adapter._stopAllMedia(),l(a)||d(a)?(e.track({name:s,appUri:a}),e.trackClickThrough(),creative.adapter.trackingCenter.flush(),creative.adapter.getApp(this._processURLParams(a))):(a=this._addUrlAppendage(a),e.track({name:s,url:a}),e.trackClickThrough(),!creative.adapter.canOpenUrlInSameWindow||i?(creative.adapter.trackingCenter.flush(),c()):(creative.adapter.trackingCenter.flush(c),defer(c,o)))}e.screen&&creative.adapter.sendToEventMonitor(s,t.triggerId,e.screen.name,a||""),r()},BaseCreativeUnit.prototype.goToURLAction=function(e,t,r){var a=creative.urlOpenedOverrideUrls&&creative.urlOpenedOverrideUrls[t.reportLabel]||t.url,i=creative.shouldClickThroughToNewWindow(e),n=!1,o=2e3,s=function(){n||(n=!0,creative.adapter.openBrowser(this._processURLParams(a),i))}.bind(this),c=(creative.experiments.get("OpenBrowserRefactor")||{}).chosenVariant,l=(creative.experiments.get("WindowOpenWithDelay")||{}).chosenVariant,d=function(t,r,a,i){if(c){var n={name:"_openBrowserRefactor",experiment:c,branch:t,logic:r,environment:a};i&&(n.redirect=i),e.track(n)}},p=function(e){if(c){var t=creative.adapter.trackingCenter,r=t._createTrackingEvent({name:"redirectTrackingExperiment"});r.redirect=e,t._pendingPixels.push(t._getTrackerUrl(r))}},u=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};if(!a)return r();a=this._addUrlAppendage(a);var h="urlOpened",v={delay:[0,100,500][u(0,2)],step:u(1,3),randId:randInt()};if(creative.adapter._stopAllMedia(),e.track({name:h,url:a,label:t.reportLabel}),e.trackClickThrough(),deviceInfo.browser.ie()||deviceInfo.browser.edge())!creative.adapter.canOpenUrlInSameWindow||i?(d("new-window","flush-and-open","desktop-windows",v),p(v),creative.adapter.trackingCenter.flush(),s()):(d("same-window","flush-then-open","desktop-windows",v),p(v),creative.adapter.trackingCenter.flush(s),defer(s,o));else if("on"==c)!creative.adapter.canOpenUrlInSameWindow||i?(d("new-window","flush-and-open","all-except-desktop-windows",v),p(v),creative.adapter.trackingCenter.flush(),s()):(d("same-window","flush-then-open","all-except-desktop-windows",v),p(v),creative.adapter.trackingCenter.flush(s),defer(s,o));else if(!creative.adapter.canOpenUrlInSameWindow||i){d("new-window","wrap+open","all-except-desktop-windows"),l&&creative.aggregatorTracking.trackAggregator("windowOpenWithDelay",1,{delay:l}),c&&e.track({name:"_openBrowserRefactorFlushVsWrap",trackingWith:"wrap"});var f=creative.wrapRedirectPageUrl(this._processURLParams(a));c&&(e.track({name:"_openBrowserRefactorFlushVsWrap",trackingWith:"flush"}),creative.adapter.trackingCenter.flush()),"control"===l||"undefined"==typeof l?creative.adapter.openBrowser(f,i):setTimeout(function(){creative.adapter.openBrowser(f,i)},"noDelay"===l?0:250)}else d("same-window","wrap+open","all-except-desktop-windows"),creative.adapter.openBrowser(creative.wrapRedirectPageUrl(this._processURLParams(a)),i);creative.adapter.sendToEventMonitor(h,t.triggerId,e.screen.name,a,t.reportLabel),r()},BaseCreativeUnit.prototype.facebookURLAction=function(e,t,r){if(!t.url)return r();creative.adapter._stopAllMedia(),e.track({name:"facebookShareAttempt",url:t.url,label:t.reportLabel}),e.trackClickThrough();var a="http://m.facebook.com/sharer.php?u="+encodeURIComponent(t.url);creative.adapter.openBrowser(creative.wrapRedirectPageUrl(a),creative.shouldClickThroughToNewWindow(e)),r()},BaseCreativeUnit.prototype.callURLAction=function(e,t,r){if(!t.url)return r();var a=this._processURLParams(t.url),i=new Image;i.onload=i.onerror=function(){r()},i.src=a},BaseCreativeUnit.prototype.displayImageAction=function(e,t,r){if(!t.file)return r();var a=function(e,a){var i=document.createElement("div");i.className="celtra-display-image-overlay touchable",i.style.backgroundImage="url("+t.file.getUrl()+")",this.unitDiv.appendChild(i),(e>this.size.width||a>this.size.height)&&(i.style.backgroundSize="contain"),t.color&&(i.style.backgroundColor=t.color),attach(i,"tap",function(){i.parentNode.removeChild(i),r()},!1);var n=document.createElement("div");n.className="celtra-back-button touchable "+this.alignBackButtonHorizontal,i.appendChild(n)}.bind(this);if(t.file.meta)a(t.file.meta.width,t.file.meta.height);else{var i=new Image;i.onload=function(){a(this.width,this.height)},i.onerror=function(){return console.error("Couldn't display image: "+t.file.getUrl()),r()},i.src=t.file.getUrl()}},BaseCreativeUnit.prototype.saveImageAction=function(e,t,r){function a(a,n){var o=a.getOriginalUrl(),c=a.name,l=a.blobHash;if(i(l),creative.adapter.canSaveImage())creative.adapter.trackingCenter.flush(function(){var a="shared.png";"undefined"!=typeof c?a=c:"string"==typeof n&&n.trim().length>0&&(a=n.trim()+".png"),creative.adapter.saveImage(o,a,r);var i=n||c;creative.adapter.sendToEventMonitor(s,t.triggerId,e.screen.name,i,t.reportLabel)});else{var d=new SaveImageDialog(creative.adapter,creative.resourceUrl,o);d.show(r)}}function i(r){e.track({name:s,blobHash:r,label:t.reportLabel}),e.trackClickThrough()}function n(){creative.adapter.createPlacements({preloader:{attachment:"body",positioning:"screen",type:"layer"}},function(){var e=creative.adapter.placements.preloader;e.setZIndex("max"),e.setSize("100%","100%"),e.setPosition(0,0);var t=e.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=creative.resourceUrl+"runner/clazzes/PostBlobPreloader.css",e.getContainer().appendChild(t);var r=e.createElement("div");addClass(r,"celtra-preloader-container");var a=e.createElement("div");addClass(a,"celtra-preloader-image"),a.style.backgroundImage="url("+creative.resourceUrl+"runner/clazzes/CreativeUnit/preloader.png)",r.appendChild(a),e.populate(r,function(){e.show()})})}function o(){creative.adapter.destroyPlacement("preloader")}var s="imageSaveAttempted";if(t.imageOrigin=t.imageOrigin?t.imageOrigin:"asset","component"==t.imageOrigin&&t.component)if(t.component.file)a(t.component.file,t.component.name);else{var c=t.component.getField();if(null===c)return void r();if(-1===creative.runtimeParams.enabledServices.indexOf("contentSharing"))return void this.alertAction(e,{text:"This feature is not available in your region"},r);var l=c.url,d=l.split(",")[1];n(),postBlob(d,function(e,i){if(o(),i>=200&&300>i){var n=JSON.parse(e),s=creative.cachedApiUrl+"blobs/"+n.hash+"/shared.png",c=new File(s);a(c,t.component.name)}else r()})}else"asset"==t.imageOrigin&&t.file?a(t.file):r()},BaseCreativeUnit.prototype.playSoundAction=function(e,t,r){if(!t.file)return r();var a=new Audio(t.file.getUrl());attach(a,"ended",function(){r()},!1),a.play()},BaseCreativeUnit.prototype.playVideoInPlayerAction=function(e,t,r){if(!t.file)return r();var a=creative.adapter.useFSVP,i=new VideoContext(e,t.file,t.reportLabel);i.track({engineType:"html5",name:"videoPlayAttempted",trackable:a,filename:t.file.name,userInitiated:e.consideredUserInitiatedByBrowser,startMuted:!1,videoPlayerMode:"fullscreen",videoPreset:null}),creative.adapter.playVideoInPlayer(i,function(a){var i=(a?t.onSuccess:t.onFailure)||nullai;i(e,r)})},BaseCreativeUnit.prototype.playVideoInPlayerActionDryRun=function(e,t,r){return t.file?((t.onSuccess||nullai)(e,noop),(t.onFailure||nullai)(e,noop),void r()):r()},BaseCreativeUnit.prototype.playVideoFromURLAction=function(e,t,r){if(!t.url)return r();var a=creative.adapter.useFSVP;creative.adapter._stopAllMedia(),videoContext=new VideoContext(e,new File(t.url),t.reportLabel),videoContext.track({engineType:"html5",name:"videoPlayAttempted",trackable:a,filename:null,userInitiated:e.consideredUserInitiatedByBrowser,startMuted:!1,videoPlayerMode:"fullscreen",videoPreset:null}),creative.adapter.playVideoInPlayer(videoContext,function(a){var i=(a?t.onSuccess:t.onFailure)||nullai;i(e,r)})},BaseCreativeUnit.prototype.playVideoFromURLActionDryRun=function(e,t,r){return t.url?((t.onSuccess||nullai)(e,noop),(t.onFailure||nullai)(e,noop),void r()):r()},BaseCreativeUnit.prototype.vibrateAction=function(e,t,r){r()},BaseCreativeUnit.prototype.getAppAction=function(e,t,r){var a=function(e){return new RegExp("(^http(s)?://)|(^market://)","i").test(e)},i=function(){return new RegExp("^\\d+$").test(t.appStoreUrl)?"http://itunes.apple.com/us/app/keynote/id"+t.appStoreUrl:(a(t.appStoreUrl)?"":"http://")+t.appStoreUrl},n=function(){return a(t.androidMarketAppId)?t.androidMarketAppId:"market://details?id="+t.androidMarketAppId};creative.adapter._stopAllMedia();var o;if(creative.storeOpenedOverrideUrls[t.reportLabel]?o=creative.storeOpenedOverrideUrls[t.reportLabel]:ios()&&t.appStoreUrl?o=i():android()&&t.androidMarketAppId?o=n():desktop()&&(t.appStoreUrl||t.androidMarketAppId)&&(o="app://"+encodeURIComponent(t.reportLabel)),o){var s=!ios("9",null),c="storeOpened",l=2,d=function(){creative.adapter.getApp(this._processURLParams(o))}.bind(this),p=function(){if(!--l&&s){d();var r={};t.appStoreUrl&&(r.appStoreUrl=i()),t.androidMarketAppId&&(r.androidMarketAppId=n()),creative.adapter.sendToEventMonitor(c,t.triggerId,e.screen.name,r,t.reportLabel)}}.bind(this);e.track({name:c,appUri:o,label:t.reportLabel},p),e.trackClickThrough(p),s||setTimeout(d,0)}r()},BaseCreativeUnit.prototype.callPhoneAction=function(e,t,r){if(!t.number)return r();creative.adapter._stopAllMedia();var a="phoneCalled",i=deviceInfo.os.ios()&&deviceInfo.browser.safari(),n=function(){creative.adapter.callPhone(t.number),creative.adapter.sendToEventMonitor(a,t.triggerId,e.screen.name,t.number,t.reportLabel)};e.track({name:a,number:t.number,label:t.reportLabel}),e.trackClickThrough(),i?(creative.adapter.trackingCenter.flush(),defer(n)):creative.adapter.trackingCenter.flush(n),r()},BaseCreativeUnit.prototype.answerSurveyQuestion=function(e,t,r){var a=["answerIds","questionId","surveyId"],i=/[0-9a-f]{8}/;a.forEach(function(e){if("answerIds"==e){if(!(t.answerIds instanceof Array))throw new Error("args.answerIds must be an array");t.answerIds.forEach(function(e){if(!i.test(e))throw new Error("args.answerIds must contain Ids that have hexadecimal formatted string containing 8 characters")})}else if(!i.test(t[e]))throw new Error("args."+e+" must be hexadecimal formatted string containing 8 characters")}),e.track({name:"surveyQuestionAnswered",answerIds:t.answerIds,questionId:t.questionId,surveyId:t.surveyId}),r()},BaseCreativeUnit.prototype.saveTheDateAction=function(e,t,r){function a(e){var r;return t.allDay?(r=new CDate,r.value=e.getFullYear()+"-"+zeroPad(e.getMonth()+1)+"-"+zeroPad(e.getDate())):(e="my"===t.timezone?e.getUTCFullYear()+"-"+zeroPad(e.getUTCMonth()+1)+"-"+zeroPad(e.getUTCDate())+" "+zeroPad(e.getUTCHours())+":"+zeroPad(e.getUTCMinutes())+":"+zeroPad(e.getUTCSeconds()):e.getFullYear()+"-"+zeroPad(e.getMonth()+1)+"-"+zeroPad(e.getDate())+" "+zeroPad(e.getHours())+":"+zeroPad(e.getMinutes())+":"+zeroPad(e.getSeconds()),r=new CDateTime,r.value=e,r.tz=t.timezone),r}return t.eventName&&t.location&&t.start?(t.end=t.end||new Date(t.start.getTime()+36e5),t.timezone=t.timezone||"my",t.end0?t[0]:null};;
!function(e){"use strict";var r={};r.toString=function(){return"[Clazz CustomAudiences]"};var t=function(e,r,t,n){function i(r,t){var i=new XMLHttpRequest;i.open(e,u+s+"/"+encodeURIComponent(r)+"/"+encodeURIComponent(t)+"?"+creative.authTokenUrlParam),i.send(n)}if(-1===["PUT","DELETE"].indexOf(e))throw new Error("Unsupported request method: "+e);if("undefined"==typeof creative.runtimeParams.customAudiences[r])throw new Error('Custom audience "'+r+'" is not used by the creative.');creative.runtimeParams.customAudiences[r]={userExists:t,userData:n};var u=creative.secure?creative.customAudiencesUrl:creative.insecureCustomAudiencesUrl,s="/audiences/"+r,o=creative.userIdentifiers;for(var a in o)for(var c in o[a])i(a,o[a][c])};r.addUser=function(e,r){creative.runtimeParams.userOptOut||t("PUT",e,!0,r)},r.removeUser=function(e){creative.runtimeParams.userOptOut||t("DELETE",e,!1)},e.CustomAudiences=r}(window);;
!function(e){"use strict";var t={ambience:"Ambience",animatey:"Animatey",abtest:"Best",basket:"Basket",button:"Button",canvas:"Canvas",celebration:"Celebration",checkbox:"CheckBox",feedbasedchoice:"ChoiceFeed",countdown:"Countdown",draggy:"Draggy",dropdown:"Dropdown",dynamiccontent:"DynamicContent",facebookshare:"FacebookShareButton",fallback:"Fallback",frame:"Frame",flippy:"Flippy",grid:"Grid",group:"Group",gyro:"Gyro",hotspot:"Hotspot",input:"Input",lighttable:"LightTable",map:"Map",transitions:"Transitions",mastervideo:"MasterVideo",nearby:"Nearby",painty:"Painty",pannable:"Pannable",particles:"Particle",picture:"Picture",puzzle:"Puzzle",quiz:"Quiz",shapey:"Shapey",smoke:"Smoke",stack:"Stack",stopwatch:"Stopwatch",locatorclassic:"StoreLocator2",locator:"StoreLocator3",swipeygallery:"Swipey",swipeygroup:"SwipeyGroup",takephoto:"TakePhotoButton",texty:"Texty",twitterfeed:"TwitterFeed",twittershare:"TwitterShareButton",inlinevideo:"Video","360view":"View360","360video":"Video360","360°video":"Video360",weather:"Weather",whatsappshare:"WhatsAppShareButton",wipeable:"Wipeable",youtube:"Youtube",scene:"Scene",brandtracksurvey:"BrandTrackSurvey",brandtrackquestion:"BrandTrackQuestion",customcode:"CustomCode",videoasset:"VideoAsset"},n=function(e){return e=e.toLowerCase().replace(/\W+/g,""),e in t?t[e]:""},o={findAll:function(e){function t(i){i.forEach(function(i){("undefined"==typeof e||i.name==e)&&o.push(i),i.getActiveContainers().forEach(function(e){t(e.objects),n(e.scenes)})})}function n(t){t&&t.forEach(function(t){("undefined"==typeof e||t.name==e)&&o.push(t)})}var o=[];return"Screen"==this.constructor.name?(t(this.objects),n(this.scenes)):"function"==typeof this.getActiveContainers&&this.getActiveContainers().forEach(function(e){t(e.objects),n(e.scenes)}),o},findByType:function(e){function t(a){a.forEach(function(a){a.constructor.name==n(e)&&i.push(a),a.getActiveContainers().forEach(function(e){t(e.objects),o(e.scenes)})})}function o(t){t&&t.forEach(function(t){t.constructor.name==n(e)&&i.push(t)})}var i=[];return"undefined"==typeof e?i:("Screen"==this.constructor.name?(t(this.objects),o(this.scenes)):"function"==typeof this.getActiveContainers&&this.getActiveContainers().forEach(function(e){t(e.objects),o(e.scenes)}),i)},find:function(e){var t=this.findAll(e);return t.length>0?t[0]:null}};e.DiscoverableTrait=o}(window);;
var SaveImageDialog=function(t,i,e){this.adapter=t,this.resourceUrl=i,this.imageUrl=e,this.containerMinMargin=5,this.containerMinWidth=190,this.imageContainerTotalHMargin=40,this.imageContainerTotalVMargin=140,this.instructionOneLineWidth=250,this.instructionTwoLinesWidth=145,this._handleImageLoaded=this._handleImageLoaded.bind(this),this._resize=this._resize.bind(this)};SaveImageDialog.prototype.show=function(t){this.adapter.createPlacements({saveImageAction:{attachment:"body",positioning:"screen",type:"layer"}},function(){this.placement=this.adapter.placements.saveImageAction,this.placement.setZIndex("max"),this.placement.setSize("100%","100%"),this.placement.setPosition(0,0),this.saveImageActionStyle=this.placement.createElement("link"),this.saveImageActionStyle.rel="stylesheet",this.saveImageActionStyle.type="text/css",this.saveImageActionStyle.href=this.resourceUrl+"runner/SaveImageDialog.css",this.placement.getContainer().appendChild(this.saveImageActionStyle),this.overlay=this.placement.createElement("div"),this.overlay.style.display="none",this.overlay.className="celtra-save-image-action-overlay",this.preloaderImage=this.placement.createElement("div"),this.preloaderImage.className="celtra-save-image-action-preloader-image",this.preloaderImage.style.backgroundImage="url("+this.resourceUrl+"runner/clazzes/CreativeUnit/preloader.png)",this.container=this.placement.createElement("div"),this.container.className="celtra-save-image-action-container",this.backButton=this.placement.createElement("div"),this.backButton.style.backgroundImage="url("+this.resourceUrl+"runner/clazzes/CreativeUnit/save-image-close-button.png)",this.backButton.className="celtra-save-image-action-back-button",this.title=this.placement.createElement("div"),this.title.innerHTML="Save Image",this.title.className="celtra-save-image-action-title",this.titleLine1=this.placement.createElement("div"),this.titleLine1.className="celtra-save-image-action-title-line-1",this.titleLine2=this.placement.createElement("div"),this.titleLine2.className="celtra-save-image-action-title-line-2",this.imageContainer=this.placement.createElement("div"),this.imageContainer.className="celtra-save-image-action-image-container",this.image=this.placement.createElement("img"),this.instruction=this.placement.createElement("div"),this.instruction.style.backgroundImage="url("+this.resourceUrl+"runner/clazzes/CreativeUnit/hold-to-save-icon.png)",this.instruction.style.backgroundSize="21px 40px",this.instruction.innerHTML="Tap & hold to save the image to your device.",this.instruction.className="celtra-save-image-action-instruction",this.image.onload=this._handleImageLoaded,this.image.src=this.imageUrl,this.container.appendChild(this.title),this.container.appendChild(this.titleLine1),this.container.appendChild(this.titleLine2),this.imageContainer.appendChild(this.image),this.container.appendChild(this.imageContainer),this.container.appendChild(this.instruction),this.container.appendChild(this.backButton),this.overlay.appendChild(this.preloaderImage),attach(this.backButton,"touchend",function(){this.adapter.destroyPlacement("saveImageAction"),t()}.bind(this)),this.placement.populate(this.overlay,function(){this.placement.show()}.bind(this))}.bind(this))},SaveImageDialog.prototype._handleImageLoaded=function(){this._resize(),this.overlay.removeChild(this.preloaderImage),this.overlay.appendChild(this.container),this.placement.on("resized",this._resize)},SaveImageDialog.prototype._resize=function(){var t,i,e=this.placement.getViewportGeometry(),a=e.width-2*this.containerMinMargin,n=e.height-2*this.containerMinMargin,s=a-this.imageContainerTotalHMargin,h=n-this.imageContainerTotalVMargin,r=s/h,l=this.image.naturalWidth/this.image.naturalHeight,o=this.image.naturalWidth>s,c=this.image.naturalHeight>h,g=this.containerMinMargin,m=this.containerMinMargin,d=0,p=0;if(o&&c){var u;t=s,i=h,l>r?(u=l/r*100,this.image.style.width=u+"%",this.image.style.height="100%",d=-(u-100)/2):(u=r/l*100,this.image.style.width="100%",this.image.style.height=u+"%",p=-((u-100)/2)*(i/t))}else if(o){var y=this.image.naturalWidth/s*100;d=-(y-100)/2,t=s,i=this.image.naturalHeight,this.image.style.width=y+"%",this.image.style.height="100%",m=(e.height-i-this.imageContainerTotalVMargin)/2}else if(c){var v=this.image.naturalHeight/h*100,C=-(v-100)/2;t=this.image.naturalWidth,i=h,p=C*(i/t),this.image.style.width="100%",this.image.style.height=v+"%",g=(e.width-t-this.imageContainerTotalHMargin)/2}else t=this.image.naturalWidth,i=this.image.naturalHeight,this.image.style.width="100%",this.image.style.height="100%",g=(e.width-t-this.imageContainerTotalHMargin)/2,m=(e.height-i-this.imageContainerTotalVMargin)/2;var I=t+this.imageContainerTotalHMargin,M=t+this.imageContainerTotalHMargin-this.containerMinWidth;if(0>M){var T=M/2;g+=T,this.imageContainer.style.left=19-T+"px",this.imageContainer.style.right=19-T+"px",I-=M}this.container.style.left=g+"px",this.container.style.right=g+"px",this.container.style.top=m+"px",this.container.style.bottom=m+"px",this.image.style.marginLeft=d+"%",this.image.style.marginTop=p+"%",I0?"-":"+")+a(r)+":"+a(n-60*r)}function a(e){return("0"+e).slice(-2)}var r="https://calendar.google.com/calendar/"+(desktop()?"render?":"gp#~calendar:view=e&")+"action=TEMPLATE",o={dates:t(e,"start")+"/"+t(e,"end"),location:e.location,text:e.eventName,details:e.notes};return r+"&"+buildQuery(o)},toString:function(){return"[Clazz CCalendar]"}};;
function CDate(){}CDate.toString=function(){return"[Clazz CDate]"},CDate.prototype.toString=function(){return"[CDate "+this.localId+"]"},CDate.prototype.getLocalStartDate=function(){var t=this._getParts();return new Date(t[1],t[2]-1,t[3],0,0,0)},CDate.prototype.getLocalEndDate=function(){var t=this._getParts();return new Date(t[1],t[2]-1,t[3]+1,0,0,0)},CDate.prototype.getDate=function(){return this.getLocalStartDate()},CDate.prototype._getParts=function(){return this.value.match(/^(....)-(..)-(..)$/).map(function(t){return parseInt(t,10)})};;
function CDateTime(){}CDateTime.toString=function(){return"[Clazz CDateTime]"},CDateTime.prototype.toString=function(){return"[CDateTime "+this.localId+"]"},CDateTime.prototype.getDate=function(){var t=this.value.match(/^(....)-(..)-(..) (..):(..):(..)$/).map(function(t){return parseInt(t,10)});switch(this.tz){case"my":case"utc":return new Date(Date.UTC(t[1],t[2]-1,t[3],t[4],t[5],t[6]));case"user":return new Date(t[1],t[2]-1,t[3],t[4],t[5],t[6]);default:Creative._throw("Invalid CDateTime timezone: "+this.tz)}};;
var Twitter={};Twitter.showUserAction=function(e,t,r){if(!t.screenName)return void r();var a="twitterProfileOpened";creative.adapter._stopAllMedia(),e.track({name:a,screenName:t.screenName,label:t.reportLabel}),e.trackClickThrough();var i=desktop()?"www":"mobile",o="http://"+i+".twitter.com/"+t.screenName;creative.adapter.openBrowser(creative.wrapRedirectPageUrl(o),creative.shouldClickThroughToNewWindow(e)),creative.adapter.sendToEventMonitor(a,t.triggerId,e.screen.name,"@"+t.screenName,t.reportLabel),r()},Twitter.tweetAction=function(e,t,r){if(!t.text)return void r();e.track({name:"tweetPageOpened",tweet:t.text,tweetVia:t.via,label:t.reportLabel}),e.trackClickThrough();var a="http://twitter.com/intent/tweet?text="+encodeURIComponent(t.text);t.via&&(a+="&via="+encodeURIComponent(t.via)),creative.adapter.openBrowser(creative.wrapRedirectPageUrl(creative.apiUrl+"redirect?url="+encodeURIComponent(a)+"&type=js"),creative.shouldClickThroughToNewWindow(e)),r()};;
!function(t){"use strict";var e={stringPatternAngle:"(?:[+-]?\\d*\\.?\\d+)(?:deg|grad|rad|turn)",stringPatternColor:"(?:#(?:[A-Fa-f0-9]{3,6})|(?:(?:rgb|hsl)a?)\\(\\s*(?:\\d+(?:\\%)?\\s*,\\s*){2,3}(?:(?:\\d+\\.)?\\d+)\\s*\\))",stringPatternSideCorner:"top|bottom|left|right",stringPatternValue:"(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?",patternHex:/^(#|)([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,matchHexHash:1,matchHexColor:2,patternRgb:/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i,matchRgbRed:1,matchRgbGreen:2,matchRgbBlue:3,patternRgba:/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*((?:\d\.)?\d\d?)\s*\)$/i,matchRgbaRed:1,matchRgbaGreen:2,matchRgbaBlue:3,matchRgbaAlpha:4,patternGradient:/^\-?(moz|webkit|o|ms|)(?:(?:-|)(?:repeating-|)(linear|radial|))-gradient\((.*?)\)(?:;|)$/i,matchGradientPrefix:1,matchGradientType:2,matchGradientValues:3,generatedGradientSyntax:null,matchGradientSyntaxLine:1,matchGradientSyntaxAngle:2,matchGradientSyntaxSideCorner:3,matchGradientSyntaxStopList:4,buildGradientSyntax:function(){var t=["(?:to\\s+)?((?:",e.stringPatternSideCorner,")\\s*(?:",e.stringPatternSideCorner,")?)"].join(""),a=["(",e.stringPatternAngle,")"].join(""),n=["(",a,"|",t,")"].join(""),r=[e.stringPatternColor,"\\s*(?:",e.stringPatternValue,")?"].join(""),i=["(?:",r,"\\s*,\\s*)*",r].join(""),o=["^\\s*",n,"\\s*,\\s*(",i,")\\s*$"].join("");return e.generatedGradientSyntax=new RegExp(o,"i"),e.generatedGradientSyntax},generatedRadialGradientSyntax:null,matchRadialGradientSyntaxEllipse:1,matchRadialGradientSyntaxWidth:2,matchRadialGradientSyntaxHeight:3,matchRadialGradientSyntaxXPosition:4,matchRadialGradientSyntaxYPosition:5,matchRadialGradientSyntaxStopList:6,buildRadialGradientSyntax:function(){var t=["(ellipse)?\\s*","(",e.stringPatternValue,")\\s+","(",e.stringPatternValue,")\\s+at\\s+","(",e.stringPatternValue,")\\s+","(",e.stringPatternValue,")"].join(""),a=[e.stringPatternColor,"\\s*(?:",e.stringPatternValue,")?"].join(""),n=["(?:",a,"\\s*,\\s*)*",a].join(""),r=["^\\s*",t,"\\s*,\\s*(",n,")\\s*$"].join("");return e.generatedRadialGradientSyntax=new RegExp(r,"i"),e.generatedRadialGradientSyntax},generatedGradientStopList:null,matchGradientStopListColor:1,matchGradientStopListPosition:2,buildGradientStopList:function(){var t=["\\s*(",e.stringPatternColor,")","(?:\\s+","(",e.stringPatternValue,"))?","(?:\\s*,\\s*)?"].join("");return e.generatedGradientStopList=new RegExp(t,"gi"),e.generatedGradientStopList},gradientOldSideCorner:{"to top":"left bottom, left top","to left":"right top, left top","to bottom":"left top, left bottom","to right":"left top, right top","to top right":"left bottom, right top","to top left":"right bottom, left top","to bottom right":"left top, right bottom","to bottom left":"right top, left bottom"},gradientPrefixedSideCorner:{"to top":"bottom","to left":"right","to bottom":"top","to right":"left","to top right":"bottom left","to top left":"bottom right","to bottom right":"top left","to bottom left":"top right"}};Object.defineProperties(e,{patternGradientSyntax:{get:function(){return null===e.generatedGradientSyntax?e.buildGradientSyntax():e.generatedGradientSyntax}},patternRadialGradientSyntax:{get:function(){return null===e.generatedRadialGradientSyntax?e.buildRadialGradientSyntax():e.generatedRadialGradientSyntax}},patternGradientStopList:{get:function(){return null===e.generatedGradientStopList?e.buildGradientStopList():e.generatedGradientStopList}}}),e.convertAngleToSideCorner=function(t,e){/\-?(moz|webkit|o|ms)/.test(e)&&(t=90-t);var a=(t+360)%360,n="to top";return a>347||14>a?n="to top":a>=14&&75>=a?n="to top right":a>75&&105>a?n="to right":a>=105&&167>=a?n="to bottom right":a>167&&194>a?n="to bottom":a>=194&&255>=a?n="to bottom left":a>255&&285>a?n="to left":a>=285&&347>=a&&(n="to left top"),n},e.convertSideCornerToAngle=function(t,e){var a=0;switch(t){case"bottom":case"to top":a=0;break;case"left":case"to right":a=90;break;case"right":case"to left":a=270;break;case"top":case"to bottom":a=180;break;case"to bottom right":case"to right bottom":a=167;break;case"to bottom left":case"to left bottom":a=194;break;case"to top right":case"to right top":a=14;break;case"to top left":case"to left top":a=347;break;case"bottom right":case"right bottom":a=285;break;case"bottom left":case"left bottom":a=75;break;case"top right":case"right top":a=255;break;case"top left":case"left top":a=105}return/\-?(moz|webkit|o|ms)/.test(e)&&(a=90-a),(a+360)%360},e.isHex=function(t){return e.patternHex.test(t)},e.isRgb=function(t){return e.patternRgb.test(t)},e.isRgba=function(t){return e.patternRgba.test(t)},e.isGradient=function(t){return e.patternGradient.test(t)},e.parseColorStopList=function(t){for(var a,n=e.patternGradientStopList.exec(t),r=[];null!==n;)a={color:n[e.matchGradientStopListColor]},n[e.matchGradientStopListPosition]&&(a.position=n[e.matchGradientStopListPosition]),r.push(a),n=e.patternGradientStopList.exec(t);return r},e.parseGradient=function(t){var a=null,n=e.patternGradient.exec(t);if(null!==n){a={original:n[0],oldSyntax:!n[e.matchGradientType],prefix:n[e.matchGradientPrefix],type:n[e.matchGradientType],colorStopList:[]};var r=e.patternGradientSyntax.exec(n[e.matchGradientValues]);null!==r&&(r[e.matchGradientSyntaxLine]&&(a.line=r[e.matchGradientSyntaxLine]),r[e.matchGradientSyntaxAngle]&&(a.angle=r[e.matchGradientSyntaxAngle]),r[e.matchGradientSyntaxSideCorner]&&(a.sideCorner=r[e.matchGradientSyntaxSideCorner]),a.colorStopList=e.parseColorStopList(r[e.matchGradientSyntaxStopList]));var i=e.patternRadialGradientSyntax.exec(n[e.matchGradientValues]);null!==i&&(a.radialGradientEllipse=i[e.matchRadialGradientSyntaxEllipse],i[e.matchRadialGradientSyntaxWidth]&&(a.radialGradientWidth=i[e.matchRadialGradientSyntaxWidth]),i[e.matchRadialGradientSyntaxHeight]&&(a.radialGradientHeight=i[e.matchRadialGradientSyntaxHeight]),i[e.matchRadialGradientSyntaxXPosition]&&(a.radialGradientXPosition=i[e.matchRadialGradientSyntaxXPosition]),i[e.matchRadialGradientSyntaxYPosition]&&(a.radialGradientYPosition=i[e.matchRadialGradientSyntaxYPosition]),a.colorStopList=e.parseColorStopList(i[e.matchRadialGradientSyntaxStopList]))}return a},e.createGradient=function(t){var a={backgroundColor:null,webkitGradient:null,mozLinearGradient:null,msLinearGradient:null,oLinearGradient:null,webkitLinearGradient:null,linearGradient:null,radialGradient:null},n=e.parseGradient(t);if(n.oldSyntax)throw new Error('[Not supported] Can not create gradient from old "webkit-gradient" syntax.');for(var r="",i="",o=n.colorStopList.length,d=0;o>d;d++){var l=n.colorStopList[d];if(l.color){if(0!==d?(r+=", ",i+=", "):a.backgroundColor=l.color,r+=l.color,i+="color-stop(",l.position)r+=" "+l.position,i+=l.position;else{var s=100/(o-1)*d;i+=s+"%"}i+=", "+l.color+")"}}if("linear"===n.type){var g=0;"undefined"!=typeof n.angle?g=parseInt(n.angle,10):"undefined"!=typeof n.sideCorner&&(g=e.convertSideCornerToAngle(n.line,n.prefix));var c=g;/\-?(moz|webkit|o|ms)/.test(n.prefix)?g=90-c:c=90-g;var p=e.convertAngleToSideCorner(g),G=e.gradientOldSideCorner[p];a.webkitGradient="-webkit-gradient(linear, "+G+", "+i+")",a.mozLinearGradient="-moz-linear-gradient("+c+"deg, "+r+")",a.msLinearGradient="-ms-linear-gradient("+c+"deg, "+r+")",a.oLinearGradient="-o-linear-gradient("+c+"deg, "+r+")",a.webkitLinearGradient="-webkit-linear-gradient("+c+"deg, "+r+")",a.linearGradient="linear-gradient("+g+"deg, "+r+")"}else if("radial"===n.type){var m=parseInt(n.radialGradientWidth,10),h=parseInt(n.radialGradientHeight,10),S=parseInt(n.radialGradientXPosition,10),u=parseInt(n.radialGradientYPosition,10),f=m+"% "+h+"%",b=S+"% "+u+"% ",x=f+" at "+b;a.radialGradient="radial-gradient("+x+", "+r+")"}return a},e.createGradientStyle=function(t){var a=e.createGradient(t),n="";for(var r in a){var i=a[r];null!==i&&e.isGradient(i)&&(n+="background-image: "+i+"; ")}return n},t.Color=e}(window),"undefined"!=typeof module&&"undefined"!=typeof module.exports&&(module.exports=window.Color);;
!function(){"use strict";var t={updateTextStyle:function(){},initializeFont:function(){this.font.setBaseUrl((creative.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+"fonts/"),this.incrementLoadingCount(),this.loadFont(deferred(this.decrementLoadingCount.bind(this),0,"TextStyleIntegrator.initializeFont deferred loadFont callback")),this.updateTextStyle()},getFontSize:function(){return this.fontSize},getLineSpacing:function(){return this.lineSpacing},getLetterSpacing:function(){return this.letterSpacing},getTextShadowOffset:function(){var t={x:0,y:0};if("undefined"!=typeof this.textShadow&&this.textShadow){var e=this.textShadowAngle*(Math.PI/180);t.x=Math.round(this.textShadowDistance*Math.cos(e)),t.y=Math.round(this.textShadowDistance*Math.sin(e))}return t},getTextShadowBlur:function(){return android("2")&&this.textShadowBlur<1?1:this.textShadowBlur},applyTextStyle:function(t){var e=this.font.getCssProperties(),i={fontFamily:e["font-family"],fontStyle:e["font-style"],fontWeight:e["font-weight"],color:this.textColor,direction:"",letterSpacing:"",textAlign:"",textDecoration:"",textShadow:""};if("undefined"!=typeof this.textDirection&&(i.direction=this.textDirection),"undefined"!=typeof this.textAlign&&(i.textAlign=this.textAlign),"undefined"!=typeof this.textDecoration&&(i.textDecoration=this.textDecoration),"undefined"!=typeof this.letterSpacing&&(i.letterSpacing=this.getLetterSpacing()+"px"),"undefined"!=typeof this.textShadow&&this.textShadow){var n=this.getTextShadowOffset();i.textShadow=n.x+"px "+n.y+"px "+this.getTextShadowBlur()+"px "+this.textShadowColor}extend(t,i)},applyTextSize:function(t){var e=this.getFontSize();this.scaleFont&&this.scaleBaseWidth>0&&"undefined"!=typeof this.scaleBaseHeight&&this.scaleBaseHeight>0?e=Math.min(e/(this.scaleBaseWidth/this.size.width),e/(this.scaleBaseHeight/this.size.height)):this.scaleFont&&this.scaleBaseWidth>0&&(e/=this.scaleBaseWidth/this.size.width);var i={fontSize:e+"px",lineHeight:"",paddingLeft:"",paddingRight:""};if("undefined"!=typeof this.lineSpacing&&(i.lineHeight=Math.max(1,this.getLineSpacing()+e)+"px"),"undefined"!=typeof this.scaleFont&&this.scaleFont){var n=this.getNaturalSize(),o=this.scaleBaseWidth/this.scaleBaseHeight,a=o*n.height,r=n.width-a;if(r>0)switch(this.textAlign){case"center":i.paddingRight=Math.round(r/2)+"px",i.paddingLeft=Math.round(r/2)+"px";break;case"right":i.paddingLeft=Math.round(r)+"px";break;default:i.paddingRight=Math.round(r)+"px"}}extend(t,i)},getFontLoader:function(t){t=t||noop,!this.font.needsLoading()||FontBase.useCSSFontLoadingAPI||"undefined"!=typeof FontLoader?t():loadJS(creative.resourceUrl+"runner-min/FontLoader.js",t)},loadFont:function(t){t=t||noop;var e={fontFamily:this.font.family,fontProvider:this.font.provider,fontStretch:this.font.stretch||"",fontStyle:this.font.style,fontWeight:this.font.weight,fontTtfUrl:this.font.getFileUrl("ttf")||"",fontWoffUrl:this.font.getFileUrl("woff")||""},i=creative.perf.start("TextStyleIntegrator.loadFont",e);this.getFontLoader(function(){var n=creative.perf.start("TextStyleIntegrator.loadStyle",e);this.font.loadStyle(function(o){e.errorMessage=o||"",n.end(),i.end(),!o&&this.font.isMonotype()&&this.trackMonotypeUsage(),t(o)}.bind(this))}.bind(this))},setFont:function(t){var e=["provider","family","style","weight","stretch","variation","files","baseUrl"],i={};e.forEach(function(e){this.font.localId&&(i[e]="files"===e?{}:this.font[e]),"undefined"!=typeof t[e]&&(i[e]=t[e])}.bind(this)),-1===["custom","google","web"].indexOf(i.provider)&&(i.provider="custom"),this.font.localId?("custom"===i.provider&&i.family===this.font.family&&(i.family=this.font.family+" (custom)"),this.font=new FontBase(i)):extend(this.font,i),creative.track({name:"retiredFeatureUsed",featureType:"apifunction",featureName:"TextStyleIntegrator.setFont"})},trackMonotypeUsage:function(){creative.runtimeParams.monotypeProjectId&&!creative.runtimeParams.monotypeUsageReported&&(creative.runtimeParams.monotypeUsageReported=1,creative.aggregatorTracking.trackAggregator("monotypeUsageReported",{monotypeProjectId:creative.runtimeParams.monotypeProjectId,creativeId:creative.id}))}};window.TextStyleIntegrator=t}();;
!function(e){var o=Date.now||function(){return+new Date},t=60,_=1e3,i={},l=1;e.core?core.effect||(core.effect={}):e.core={effect:{}},core.effect.Animate={requestAnimationFrame:function(){var o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,t=!!o;if(o&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(o.toString())&&(t=!1),t)return function(e,t){o(e,t)};var _=60,i={},l=0,n=1,r=null,a=+new Date;return function(e){var o=n++;return i[o]=e,l++,null===r&&(r=setInterval(function(){var e=+new Date,o=i;i={},l=0;for(var t in o)o.hasOwnProperty(t)&&(o[t](e),a=e);e-a>2500&&(clearInterval(r),r=null)},1e3/_)),o}}(),stop:function(e){var o=null!=i[e];return o&&(i[e]=null),o},isRunning:function(e){return null!=i[e]},start:function(e,n,r,a,c,s){var p=o(),h=p,f=0,m=0,u=l++;if(s||(s=document.body),u%20===0){var g={};for(var v in i)g[v]=!0;i=g}var d=function(l){var g=l!==!0,v=o();if(!i[u]||n&&!n(u))return i[u]=null,void(r&&r(t-m/((v-p)/_),u,!1));if(g)for(var T=Math.round((v-h)/(_/t))-1,S=0;S1&&(f=1));var L=c?c(f):f;e(L,v,g)!==!1&&1!==f||!g?g&&(h=v,core.effect.Animate.requestAnimationFrame(d,s)):(i[u]=null,r&&r(t-m/((v-p)/_),u,1===f||null==a))};return i[u]=!0,core.effect.Animate.requestAnimationFrame(d,s),u}}}(window);var ZyngaScroller;!function(){var e=function(){};ZyngaScroller=function(o,t){this.__callback=o,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:e,penetrationDeceleration:.03,penetrationAcceleration:.08};for(var _ in t)this.options[_]=t[_]};var o=function(e){return Math.pow(e-1,3)+1},t=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},_={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshDeactivate:null,__refreshStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,o,t,_){var i=this;e===+e&&(i.__clientWidth=e),o===+o&&(i.__clientHeight=o),t===+t&&(i.__contentWidth=t),_===+_&&(i.__contentHeight=_),i.__computeScrollMax(),i.scrollTo(i.__scrollLeft,i.__scrollTop,!0)},setPosition:function(e,o){var t=this;t.__clientLeft=e||0,t.__clientTop=o||0},setSnapSize:function(e,o){var t=this;t.__snapWidth=e,t.__snapHeight=o},activatePullToRefresh:function(e,o,t,_){var i=this;i.__refreshHeight=e,i.__refreshActivate=o,i.__refreshDeactivate=t,i.__refreshStart=_},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&this.__refreshStart()},finishPullToRefresh:function(){var e=this;e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)},getValues:function(){var e=this;return{left:e.__scrollLeft,top:e.__scrollTop,zoom:e.__zoomLevel}},getScrollMax:function(){var e=this;return{left:e.__maxScrollLeft,top:e.__maxScrollTop}},zoomTo:function(e,o,t,_,i){var l=this;if(!l.options.zooming)throw new Error("Zooming is not enabled!");i&&(l.__zoomComplete=i),l.__isDecelerating&&(core.effect.Animate.stop(l.__isDecelerating),l.__isDecelerating=!1);var n=l.__zoomLevel;null==t&&(t=l.__clientWidth/2),null==_&&(_=l.__clientHeight/2),e=Math.max(Math.min(e,l.options.maxZoom),l.options.minZoom),l.__computeScrollMax(e);var r=(t+l.__scrollLeft)*e/n-t,a=(_+l.__scrollTop)*e/n-_;r>l.__maxScrollLeft?r=l.__maxScrollLeft:0>r&&(r=0),a>l.__maxScrollTop?a=l.__maxScrollTop:0>a&&(a=0),l.__publish(r,a,e,o)},zoomBy:function(e,o,t,_,i){var l=this;l.zoomTo(l.__zoomLevel*e,o,t,_,i)},scrollTo:function(e,o,t,_){var i=this;if(i.__isDecelerating&&(core.effect.Animate.stop(i.__isDecelerating),i.__isDecelerating=!1),null!=_&&_!==i.__zoomLevel){if(!i.options.zooming)throw new Error("Zooming is not enabled!");e*=_,o*=_,i.__computeScrollMax(_)}else _=i.__zoomLevel;i.options.scrollingX?i.options.paging?e=Math.round(e/i.__clientWidth)*i.__clientWidth:i.options.snapping&&(e=Math.round(e/i.__snapWidth)*i.__snapWidth):e=i.__scrollLeft,i.options.scrollingY?i.options.paging?o=Math.round(o/i.__clientHeight)*i.__clientHeight:i.options.snapping&&(o=Math.round(o/i.__snapHeight)*i.__snapHeight):o=i.__scrollTop,e=Math.max(Math.min(i.__maxScrollLeft,e),0),o=Math.max(Math.min(i.__maxScrollTop,o),0),e===i.__scrollLeft&&o===i.__scrollTop&&(t=!1),i.__publish(e,o,_,t)},scrollBy:function(e,o,t){var _=this,i=_.__isAnimating?_.__scheduledLeft:_.__scrollLeft,l=_.__isAnimating?_.__scheduledTop:_.__scrollTop;_.scrollTo(i+(e||0),l+(o||0),t)},doMouseZoom:function(e,o,t,_){var i=this,l=e>0?.97:1.03;return i.zoomTo(i.__zoomLevel*l,!1,t-i.__clientLeft,_-i.__clientTop)},doTouchStart:function(e,o){if(null==e.length)throw new Error("Invalid touch list: "+e);if(o instanceof Date&&(o=o.valueOf()),"number"!=typeof o)throw new Error("Invalid timestamp value: "+o);var t=this;t.__interruptedAnimation=!0,t.__isDecelerating&&(core.effect.Animate.stop(t.__isDecelerating),t.__isDecelerating=!1,t.__interruptedAnimation=!0),t.__isAnimating&&(core.effect.Animate.stop(t.__isAnimating),t.__isAnimating=!1,t.__interruptedAnimation=!0);var _,i,l=1===e.length;l?(_=e[0].pageX,i=e[0].pageY):(_=Math.abs(e[0].pageX+e[1].pageX)/2,i=Math.abs(e[0].pageY+e[1].pageY)/2),t.__initialTouchLeft=_,t.__initialTouchTop=i,t.__zoomLevelStart=t.__zoomLevel,t.__lastTouchLeft=_,t.__lastTouchTop=i,t.__lastTouchMove=o,t.__lastScale=1,t.__enableScrollX=!l&&t.options.scrollingX,t.__enableScrollY=!l&&t.options.scrollingY,t.__isTracking=!0,t.__didDecelerationComplete=!1,t.__isDragging=!l,t.__isSingleTouch=l,t.__positions=[]},doTouchMove:function(e,o,t){if(null==e.length)throw new Error("Invalid touch list: "+e);if(o instanceof Date&&(o=o.valueOf()),"number"!=typeof o)throw new Error("Invalid timestamp value: "+o);var _=this;if(_.__isTracking){var i,l;2===e.length?(i=Math.abs(e[0].pageX+e[1].pageX)/2,l=Math.abs(e[0].pageY+e[1].pageY)/2):(i=e[0].pageX,l=e[0].pageY);var n=_.__positions;if(_.__isDragging){var r=i-_.__lastTouchLeft,a=l-_.__lastTouchTop,c=_.__scrollLeft,s=_.__scrollTop,p=_.__zoomLevel;if(null!=t&&_.options.zooming){var h=p;if(p=p/_.__lastScale*t,p=Math.max(Math.min(p,_.options.maxZoom),_.options.minZoom),h!==p){var f=i-_.__clientLeft,m=l-_.__clientTop;c=(f+c)*p/h-f,s=(m+s)*p/h-m,_.__computeScrollMax(p)}}if(_.__enableScrollX){c-=r*this.options.speedMultiplier;var u=_.__maxScrollLeft;(c>u||0>c)&&(_.options.bouncing?c+=r/2*this.options.speedMultiplier:c=c>u?u:0)}if(_.__enableScrollY){s-=a*this.options.speedMultiplier;var g=_.__maxScrollTop;(s>g||0>s)&&(_.options.bouncing?(s+=a/2*this.options.speedMultiplier,_.__enableScrollX||null==_.__refreshHeight||(!_.__refreshActive&&s<=-_.__refreshHeight?(_.__refreshActive=!0,_.__refreshActivate&&_.__refreshActivate()):_.__refreshActive&&s>-_.__refreshHeight&&(_.__refreshActive=!1,_.__refreshDeactivate&&_.__refreshDeactivate()))):s=s>g?g:0)}n.length>60&&n.splice(0,30),n.push(c,s,o),_.__publish(c,s,p)}else{var v=_.options.locking?3:0,d=5,T=Math.abs(i-_.__initialTouchLeft),S=Math.abs(l-_.__initialTouchTop);_.__enableScrollX=_.options.scrollingX&&T>=v,_.__enableScrollY=_.options.scrollingY&&S>=v,n.push(_.__scrollLeft,_.__scrollTop,o),_.__isDragging=(_.__enableScrollX||_.__enableScrollY)&&(T>=d||S>=d),_.__isDragging&&(_.__interruptedAnimation=!1)}_.__lastTouchLeft=i,_.__lastTouchTop=l,_.__lastTouchMove=o,_.__lastScale=t}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);var o=this;if(o.__isTracking){if(o.__isTracking=!1,o.__isDragging)if(o.__isDragging=!1,o.__isSingleTouch&&o.options.animating&&e-o.__lastTouchMove<=100){for(var t=o.__positions,_=t.length-1,i=_,l=_;l>0&&t[l]>o.__lastTouchMove-100;l-=3)i=l;if(i!==_){var n=t[_]-t[i],r=o.__scrollLeft-t[i-2],a=o.__scrollTop-t[i-1];o.__decelerationVelocityX=r/n*(1e3/60),o.__decelerationVelocityY=a/n*(1e3/60);var c=o.options.paging||o.options.snapping?4:1;(Math.abs(o.__decelerationVelocityX)>c||Math.abs(o.__decelerationVelocityY)>c)&&(o.__refreshActive||o.__startDeceleration(e))}else o.options.scrollingComplete()}else e-o.__lastTouchMove>100&&o.options.scrollingComplete();o.__isDecelerating||(o.__refreshActive&&o.__refreshStart?(o.__publish(o.__scrollLeft,-o.__refreshHeight,o.__zoomLevel,!0),o.__refreshStart&&o.__refreshStart()):((o.__interruptedAnimation||o.__isDragging)&&o.options.scrollingComplete(),o.scrollTo(o.__scrollLeft,o.__scrollTop,!0,o.__zoomLevel),o.__refreshActive&&(o.__refreshActive=!1,o.__refreshDeactivate&&o.__refreshDeactivate()))),o.__positions.length=0}},__publish:function(e,_,i,l){var n=this,r=n.__isAnimating;if(r&&(core.effect.Animate.stop(r),n.__isAnimating=!1),l&&n.options.animating){n.__scheduledLeft=e,n.__scheduledTop=_,n.__scheduledZoom=i;var a=n.__scrollLeft,c=n.__scrollTop,s=n.__zoomLevel,p=e-a,h=_-c,f=i-s,m=function(e,o,t){t&&(n.__scrollLeft=a+p*e,n.__scrollTop=c+h*e,n.__zoomLevel=s+f*e,n.__callback&&n.__callback(n.__scrollLeft,n.__scrollTop,n.__zoomLevel))},u=function(e){return n.__isAnimating===e},g=function(e,o,t){o===n.__isAnimating&&(n.__isAnimating=!1),(n.__didDecelerationComplete||t)&&n.options.scrollingComplete(),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))};n.__isAnimating=core.effect.Animate.start(m,u,g,n.options.animationDuration,r?o:t)}else n.__scheduledLeft=n.__scrollLeft=e,n.__scheduledTop=n.__scrollTop=_,n.__scheduledZoom=n.__zoomLevel=i,n.__callback&&n.__callback(e,_,i),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))},__computeScrollMax:function(e){var o=this;null==e&&(e=o.__zoomLevel),o.__maxScrollLeft=Math.max(o.__contentWidth*e-o.__clientWidth,0),o.__maxScrollTop=Math.max(o.__contentHeight*e-o.__clientHeight,0)},__startDeceleration:function(){var e=this;if(e.options.paging){var o=Math.max(Math.min(e.__scrollLeft,e.__maxScrollLeft),0),t=Math.max(Math.min(e.__scrollTop,e.__maxScrollTop),0),_=e.__clientWidth,i=e.__clientHeight;e.__minDecelerationScrollLeft=Math.floor(o/_)*_,e.__minDecelerationScrollTop=Math.floor(t/i)*i,e.__maxDecelerationScrollLeft=Math.ceil(o/_)*_,e.__maxDecelerationScrollTop=Math.ceil(t/i)*i}else e.__minDecelerationScrollLeft=0,e.__minDecelerationScrollTop=0,e.__maxDecelerationScrollLeft=e.__maxScrollLeft,e.__maxDecelerationScrollTop=e.__maxScrollTop;var l=function(o,t,_){e.__stepThroughDeceleration(_)},n=e.options.snapping?4:.1,r=function(){var o=Math.abs(e.__decelerationVelocityX)>=n||Math.abs(e.__decelerationVelocityY)>=n;return o||(e.__didDecelerationComplete=!0),o},a=function(){e.__isDecelerating=!1,e.__didDecelerationComplete&&e.options.scrollingComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,e.options.snapping)};e.__isDecelerating=core.effect.Animate.start(l,r,a)},__stepThroughDeceleration:function(e){var o=this,t=o.__scrollLeft+o.__decelerationVelocityX,_=o.__scrollTop+o.__decelerationVelocityY;if(!o.options.bouncing){var i=Math.max(Math.min(o.__maxDecelerationScrollLeft,t),o.__minDecelerationScrollLeft);i!==t&&(t=i,o.__decelerationVelocityX=0);var l=Math.max(Math.min(o.__maxDecelerationScrollTop,_),o.__minDecelerationScrollTop);l!==_&&(_=l,o.__decelerationVelocityY=0)}if(e?o.__publish(t,_,o.__zoomLevel):(o.__scrollLeft=t,o.__scrollTop=_),!o.options.paging){var n=.95;o.__decelerationVelocityX*=n,o.__decelerationVelocityY*=n}if(o.options.bouncing){var r=0,a=0,c=o.options.penetrationDeceleration,s=o.options.penetrationAcceleration;to.__maxDecelerationScrollLeft&&(r=o.__maxDecelerationScrollLeft-t),_o.__maxDecelerationScrollTop&&(a=o.__maxDecelerationScrollTop-_),0!==r&&(r*o.__decelerationVelocityX<=0?o.__decelerationVelocityX+=r*c:o.__decelerationVelocityX=r*s),0!==a&&(a*o.__decelerationVelocityY<=0?o.__decelerationVelocityY+=a*c:o.__decelerationVelocityY=a*s)}}};for(var i in _)ZyngaScroller.prototype[i]=_[i]}();;
function Scroller(t,i,o){this.container=t,this.list=i,this.options=o||{},this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handleScroll=this._handleScroll.bind(this),this.silentScrolling=!1,this.zyngaScroller=new ZyngaScroller(this._handleScroll,{scrollingX:"vertical"===this.options.direction?!1:!0,scrollingY:"horizontal"===this.options.direction?!1:!0,bouncing:!!this.options.bouncing,animating:!!this.options.animating,locking:!!this.options.locking,snapping:!!this.options.snapping,animationDuration:"undefined"!=typeof this.options.animationDuration?this.options.animationDuration:250,scrollingComplete:deferred(this.emits("scrollingEnd"))}),this.setEasing("undefined"==typeof this.options.easing?!0:this.options.easing),this.redraw()}extend(Scroller.prototype,EventEmitter),Scroller._owner="celtra",Scroller.prototype._handleScroll=function(t,i){t=isNaN(t)?0:t,i=isNaN(i)?0:i;var o=this.getMaxScroll();this.currentPosition={left:t,top:i,leftPercent:o.left?t/o.left:0,topPercent:o.top?i/o.top:0},celtra.styler.css(this.list,"transform",ScreenObject.supports3d?"translate3d("+-t+"px, "+-i+"px, 0)":"translate("+-t+"px, "+-i+"px)"),this.scrollbars&&(this.currentPosition.sbTop=this.currentPosition.top/(this.list.size.height-this.container.size.height)*(this.container.size.height-parseInt(this.scrollbars.verticalStyle.height,10)),this.currentPosition.sbLeft=this.currentPosition.left/(this.list.size.width-this.container.size.width)*(this.container.size.width-parseInt(this.scrollbars.horizontalStyle.width,10)),this.currentPosition.sbTopPercent=this.currentPosition.sbTop/(this.container.size.height-parseInt(this.scrollbars.verticalStyle.height,10)),this.currentPosition.sbLeftPercent=this.currentPosition.sbLeft/(this.container.size.width-parseInt(this.scrollbars.horizontalStyle.width,10)),this._renderScrollbars(this.currentPosition.sbLeft,this.currentPosition.sbTop)),this.silentScrolling||this.emit("scrolling",this.currentPosition)},Scroller.prototype._handleTouchStart=function(t){this.zyngaScroller.doTouchStart(t.touches,t.timeStamp),this.emit("scrollingStart")},Scroller.prototype._handleTouchMove=function(t){this.zyngaScroller.doTouchMove(t.touches,t.timeStamp)},Scroller.prototype._handleTouchEnd=function(t){this.zyngaScroller.doTouchEnd(t.timeStamp)},Scroller.prototype._createScrollbars=function(){var t=document.createElement("div");addClass(t,"celtra-vertical-scrollbar "+this.options.scrollbarPosition||"none"),this.container.appendChild(t);var i=document.createElement("div");t.appendChild(i),t.style.height=Math.round(this.container.size.height/this.list.size.height*this.container.size.height)+"px",t.style.backgroundColor=this.options.scrollbarColor,t.style.display=this.list.size.height<=this.container.size.height?"none":"block";var o=document.createElement("div");addClass(o,"celtra-horizontal-scrollbar "+this.options.scrollbarPosition||"none"),this.container.appendChild(o);var e=document.createElement("div");o.appendChild(e),o.style.width=Math.round(this.container.size.width/this.list.size.width*this.container.size.width)+"px",o.style.backgroundColor=this.options.scrollbarColor,o.style.display=this.list.size.width<=this.container.size.width?"none":"block",this.scrollbars={vertical:t,horizontal:o,verticalStyle:t.style,horizontalStyle:o.style}},Scroller.prototype.scrollTo=function(t,i,o,e,s,n){this._scroll("scrollTo",{left:t,top:i,animate:o,duration:e,easing:s,callback:n})},Scroller.prototype.scrollBy=function(t,i,o,e,s,n){this._scroll("scrollBy",{left:t,top:i,animate:o,duration:e,easing:s,callback:n})},Scroller.prototype._scroll=function(t,i){i.animate&&("number"==typeof i.duration?this._setAnimationDuration(i.duration):"boolean"==typeof i.duration&&(i.easing=i.duration),"boolean"==typeof i.easing&&this.setEasing(i.easing)),this.once("scrollingEnd",function(){"function"==typeof i.callback&&i.callback()}),this.zyngaScroller[t](i.left,i.top,i.animate),this.emit("scrollingStart")},Scroller.prototype.getMaxScroll=function(){return{left:this.zyngaScroller.__maxScrollLeft,top:this.zyngaScroller.__maxScrollTop}},Scroller.prototype.getCurrentScroll=function(){return this.currentPosition},Scroller.prototype._setAnimationDuration=function(t){this.zyngaScroller.options.animationDuration=t},Scroller.prototype.setEasing=function(t){this.options.easing=t,this.zyngaScroller.__publish=function(i,o,e,s){var n=this,r=function(t){return Math.pow(t-1,3)+1},l=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},a=n.__isAnimating;if(a&&(core.effect.Animate.stop(a),n.__isAnimating=!1),s&&n.options.animating){n.__scheduledLeft=i,n.__scheduledTop=o,n.__scheduledZoom=e;var h=n.__scrollLeft,c=n.__scrollTop,p=n.__zoomLevel,d=i-h,u=o-c,_=e-p,g=function(t,i,o){o&&(n.__scrollLeft=h+d*t,n.__scrollTop=c+u*t,n.__zoomLevel=p+_*t,n.__callback&&n.__callback(n.__scrollLeft,n.__scrollTop,n.__zoomLevel))},S=function(t){return n.__isAnimating===t},z=function(t,i,o){i===n.__isAnimating&&(n.__isAnimating=!1),(n.__didDecelerationComplete||o)&&n.options.scrollingComplete(),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))};n.__isAnimating=t?core.effect.Animate.start(g,S,z,n.options.animationDuration,a?r:l):core.effect.Animate.start(g,S,z,n.options.animationDuration)}else n.__scheduledLeft=n.__scrollLeft=i,n.__scheduledTop=n.__scrollTop=o,n.__scheduledZoom=n.__zoomLevel=e,n.__callback&&n.__callback(i,o,e),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))}},Scroller.prototype.redraw=function(){this.container.size={width:this.container.offsetWidth,height:this.container.offsetHeight},this.list.size={width:this.list.offsetWidth,height:this.list.offsetHeight},this.zyngaScroller.setDimensions(this.container.size.width,this.container.size.height,this.list.size.width,this.list.size.height),this.options.snapping&&this._setSnapSize(this.container.size.width,this.container.size.height);var t=this.getMaxScroll();this.zyngaScroller.scrollTo(t.left*this.currentPosition.leftPercent,t.top*this.currentPosition.topPercent,!1),this.scrollbars?(this.scrollbars.verticalStyle.height=Math.round(this.container.size.height/this.list.size.height*this.container.size.height)+"px",this.scrollbars.horizontalStyle.width=Math.round(this.container.size.width/this.list.size.width*this.container.size.width)+"px",this.currentPosition.sbTop=(this.container.size.height-parseInt(this.scrollbars.verticalStyle.height,10))*this.currentPosition.sbTopPercent,this.currentPosition.sbLeft=(this.container.size.width-parseInt(this.scrollbars.horizontalStyle.width,10))*this.currentPosition.sbLeftPercent,this._renderScrollbars(this.currentPosition.sbLeft,this.currentPosition.sbTop)):("outer"===this.options.scrollbarPosition||"inner"===this.options.scrollbarPosition)&&this._createScrollbars()},Scroller.prototype._renderScrollbars=function(t,i){ScreenObject.allowPositioningAndSizingUsingTransforms?(celtra.styler.css(this.scrollbars.vertical,"transform",ScreenObject.supports3d?"translate3d(0, "+i+"px, 0)":"translate(0, "+i+"px)"),celtra.styler.css(this.scrollbars.horizontal,"transform",ScreenObject.supports3d?"translate3d("+t+"px, 0, 0)":"translate("+t+"px, 0)")):(this.scrollbars.verticalStyle.top=i+"px",this.scrollbars.horizontalStyle.left=t+"px"),this.container.size.height>=this.list.size.height?(this.scrollbars.verticalStyle.display="none",removeClass(this.container,"vertical-scrollbar")):(this.scrollbars.verticalStyle.display="block",addClass(this.container,"vertical-scrollbar")),this.container.size.width>=this.list.size.width?(this.scrollbars.horizontalStyle.display="none",removeClass(this.container,"horizontal-scrollbar")):(this.scrollbars.horizontalStyle.display="block",addClass(this.container,"horizontal-scrollbar"))},Scroller.prototype._setSnapSize=function(t,i){this.zyngaScroller.setSnapSize(t,i)};;
!function(){var t=1,e=4,i=[void 0,null,0,1],s=[100,300,6e3],n=function(e){this._video=e,this._lastObservedDuration=null,this._lastObservedPosition=null,this._intervalId=null,this._firstSegmentEmitted=!1,this._running=!1,this._currentTime=0,this._playedSegmentsCount=0,this.stop=this.stop.bind(this),this.stopAndReset=this.stopAndReset.bind(this),this.start=this.start.bind(this),this.tick=this.tick.bind(this),this.flush=this.flush.bind(this),this.reemitQuartileEvent=function(t){this.emit(t.name,t),this._playedSegmentComputationUnit.flush()}.bind(this),this.trackDurationChange=this.trackDurationChange.bind(this),this.stitchAndTrackVideoPlayedSegment=this.stitchAndTrackVideoPlayedSegment.bind(this),this._viewDirectionsObserver="function"==typeof ViewDirectionsObserver&&this._video instanceof VideoPlayer360?new ViewDirectionsObserver(e,this.getCurrentTime.bind(this)):null,this._playedSegmentComputationUnit=new PlayedSegmentComputationUnit(t,this.stitchAndTrackVideoPlayedSegment),this._lastVideoPlayedSegment={from:0,to:0},this._serverReportedDuration=e.serverReportedDuration,e.serverReportedDuration?(defer(function(){this.emit("videoDurationUpdate",{duration:e.serverReportedDuration})}.bind(this)),this.checkDuration=!1):(this.checkDuration=!0,e.on("durationchange",this.trackDurationChange)),e.on("pause",this.stop),e.on("timeupdate",this.start),e.on("ended",this.stopAndReset),e.on("repeat",this.stopAndReset),e.on("playing",this.start),e.on("seeked",this.start),r().on("mediaStopRequested",this.stop),e.on("muted",this.flush),e.on("unmuted",this.flush),e.on("enterfullscreen",this.flush),e.on("exitfullscreen",this.flush);for(var i in e.QUARTILE_EVENTS)e.on(i,this.reemitQuartileEvent)};extend(n.prototype,EventEmitter);var r=function(){return"undefined"!=typeof creative?creative.adapter:adapter};n.prototype.stitchAndTrackVideoPlayedSegment=function(t){var e={from:this._lastVideoPlayedSegment.to,to:t.to};this.trackVideoPlayedSegment(e)},n.prototype.trackVideoPlayedSegment=function(t){if(this._lastVideoPlayedSegment=t,!(this._serverReportedDuration&&t.from>=this._serverReportedDuration)){var e=!this._serverReportedDuration||t.tothis._currentTime&&(this._currentTime=this._video.currentTime),this._currentTime},n.prototype.start=function(){this._running||(this._running=!0,this._viewDirectionsObserver&&this._viewDirectionsObserver.start(),r().mediaState.startVideo(),this._firstSegmentEmitted||(this._currentTime=this.getCurrentTime()+.01,this.trackVideoPlayedSegment({from:0,to:this.getCurrentTime()}),this._firstSegmentEmitted=!0),this._playedSegmentComputationUnit.init(this.getCurrentTime()),clearInterval(this._intervalId),this._intervalId=setInterval(this.tick,1e3/e))},n.prototype.stopAndReset=function(){this.stop(!0),this._playedSegmentComputationUnit&&(this._playedSegmentComputationUnit.reset(),this._currentTime=0,this._firstSegmentEmitted=!1,this._viewDirectionsObserver&&this._viewDirectionsObserver.reset())},n.prototype.flush=function(){this._playedSegmentComputationUnit&&this._playedSegmentComputationUnit.flush()},n.prototype.stop=function(t){(this._running||t)&&(this._running&&(r().mediaState.stopVideo(),this._running=!1,clearInterval(this._intervalId)),this._viewDirectionsObserver&&this._viewDirectionsObserver.stop(),this._playedSegmentComputationUnit.addEvent(this.getCurrentTime()),this._playedSegmentComputationUnit.flush(t))},n.prototype.trackDurationChange=function(){if(this.checkDuration){var t=this._video.duration,e=-1!==i.indexOf(t),n=-1!==s.indexOf(t),r=t!==this._lastObservedDuration;e||n||!r||(this._serverReportedDuration=t,this.emit("videoDurationUpdate",{duration:t}),this._lastObservedDuration=t)}},n.prototype.tick=function(){this.trackDurationChange();var t=this.getCurrentTime(),e=Date.now()-(this._lastTickTime||Date.now());t==this._lastObservedPosition&&e>1e3&&this.stop(),this._playedSegmentComputationUnit.addEvent(t),this._lastObservedPosition=t,this._lastTickTime=Date.now()},n.prototype.destroy=function(){var t=this._video;this.stop(),t.off("pause",this.stop),t.off("ended",this.stopAndReset),t.off("playing",this.start),t.off("timeupdate",this.start),t.off("durationchange",this.tick),t.off("muted",this.flush),t.off("unmuted",this.flush),t.off("enterfullscreen",this.flush),t.off("exitfullscreen",this.flush),t.off("durationchange",this.trackDurationChange);for(var e in t.QUARTILE_EVENTS)t.off(e,this.reemitQuartileEvent);r().off("mediaStopRequested",this.stop),this._playedSegmentComputationUnit.flush()},this.VideoEventsAdapter=n}();;
!function(){function n(n){if(n.serverReportedDuration)return n.serverReportedDuration;var r=-1!==t.indexOf(n.duration);return r?null:n.duration}var t=[void 0,null,0,1],r={videoStart:function(n,t,r){return t>Math.min(1,.25*r)},videoFirstQuartile:function(n,t,r){var e=.25*r;return e>n&&t>=e},videoMidpoint:function(n,t,r){var e=.5*r;return e>n&&t>=e},videoThirdQuartile:function(n,t,r){var e=.75*r;return e>n&&t>=e},videoComplete:function(n,t,r){return t>Math.max(.75*r,r-2)}};window.QuartileEventsEmitter=function(t){t.QUARTILE_EVENTS=r;var e={};Object.keys(r).forEach(function(n){e[n]=r[n]});var i=null,u=function(){var t;t=null===i?this.currentTime:null!==i&&this.currentTime>i?this.currentTime:i;var r=n(this);if(null!==r&&null!==i&&t&&1>t-i){i>0&&1>i&&(i=0);for(var u in e)e[u](i,t,r)&&(this.emit(u,{name:u,label:this.componentName}),delete e[u])}i=t}.bind(t);return t.on("timeupdate",u),t.on("destroy",function(){t.off("timeupdate",u)}),t}}();;
!function(){{var t={};new Image}t.ZINDEX_MAX=2147483647,t.LANDSCAPE=1,t.PORTRAIT=2,t.ENDED=0,t.PLAYING=1,t.PAUSED=2,t.BUFFERING=3,t.VIDEO_CUED=5,t.UNSTARTED=6,t.SEEKING=7,t.STATE={0:"ENDED",1:"PLAYING",2:"PAUSED",3:"BUFFERING",5:"VIDEO_CUED",6:"UNSTARTED",7:"SEEKING"},t.TRUTHY_REGEX=/^(yes|true|1)$/i,t.isTruthy=function(e){return t.TRUTHY_REGEX.test(e)},t.isTouchDevice=!!("ontouchstart"in window),t.validFor=function(t,e,n){var r=Date.now()+e;return function(){Date.now()<=r&&t.apply(n||null,arguments)}},t.exists=function(t,e){return-1!==t.indexOf(e)},t.lastCall=0,t.deduplicate=function(e,n,r){return function(){Date.now()-t.lastCall>n&&(e.apply(r,arguments),t.lastCall=Date.now())}},t.isFunction=function(t){return"function"==typeof t},t.constantly=function(t){return function(){return t}},t.hash=function(){for(var t=Array.prototype.slice.apply(arguments),e=0,n=0;nn&&(n="0"+n),10>r&&(r="0"+r),n+":"+r},t.fitComponent=function(t,e,n,r,i){var o,a,l,s,c=1-n/r*(e/t)>0,u=!!i;return(u?!c:c)?(o=n,a=Math.ceil(e*(n/t)),l=0,s=r-a):(a=r,o=Math.ceil(t*(r/e)),l=n-o,s=0),{width:Math.ceil(o),height:Math.ceil(a),marginHorizontal:l>>1,marginVertical:s>>1}},t.removeUnits=function(t){return parseInt(t.replace(/[a-z]+/,""))},t.capitaliseFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.createHandlerName=function(e,n){return n=n||"on",n+t.capitaliseFirstLetter(e)},t.forEach=function(t,e,n){for(var r in t)e.call(n,t[r],r,t)},t.changeStyle=function(t,e,n){for(var r,i=0;i0&&"/"==o[o.length-1];var a=0===i?o.replace(/\/$/,""):o.replace(/^\//,"").replace(/\/$/,"");a&&e.push(a)}return e.join("/")+(r?"/":"")+(n?"?"+n:"")},t.xBindFactory=function(t){return function(e){var n=e.getAttribute("x-bind");n&&(t[n]=e,e.removeAttribute("x-bind"))}},t.createDom=function(t,e,n,r){function i(t){for(var e=t.children||[],n=0;ne?e+.1:e-.1;return t.volume=n,t.volume===n}),t.isTouchDevice=!!("ontouchstart"in window),t.isTopNode=function(t){return"BODY"===t.tagName||"viewport"===t.id||"celtra-modal"===t.id},t.orientationLockHandler=function(t,e){var n=t.getControlsElement(),r=t.getWrapperElement();r&&(e?(t.__playAfterRotate=t.isState(CeltraPlayerUtils.PLAYING)?!0:!1,t.pause(),n&&(n.style.display="none"),r.style.zIndex=-1):(n&&(n.style.display=""),t.__playAfterRotate&&t.play(),r.style.zIndex=CeltraPlayerUtils.ZINDEX_MAX))},t.construct=function(t,e){function n(){return t.apply(this,e)}return n.prototype=t.prototype,new n},t.getUrl=function(e){var n=!!creative.runtimeParams.secure,r=(n?e:"insecure"+t.capitaliseFirstLetter(e))+"Url",i="undefined"!=typeof creative?creative[r]:urls[r];if(i)return i;throw"Undefined url key "+r},t.ifDefined=function(t,e){return"undefined"!=typeof t?t:e},t.base64ToArrayBuffer=function(t){for(var e=window.atob(t),n=e.length,r=new Uint8Array(n),i=0;n>i;i++){var o=e.charCodeAt(i);r[i]=o}return r.buffer}}(),function(){this.StatefulEventEmitter={changeState:function(t){var e=this._state;this._state!=t&&(this._state=t,this.emit("statechange",t,e))},getState:function(){return this._state},isState:function(){var t=Array.prototype.slice.apply(arguments);return-1!==t.indexOf(this._state)}},extend(this.StatefulEventEmitter,EventEmitter)}(),function(){function t(t,o,a){this.intervalId=null,this.containerEl=null,this.externalResize=noop,this.lastWidth=0,this.lastHeight=0,this.lastScrollX=0,this.lastScrollY=0,this.doc=t.ownerDocument,this.win="defaultView"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.initialHostOffset={left:this.win.pageXOffset||document.documentElement.scrollLeft,top:this.win.pageYOffset||document.documentElement.scrollTop},this.containerEl=t;var l=this.containerEl.style;l.position=a?"fixed":"absolute",l.zIndex=CeltraPlayerUtils.ZINDEX_MAX-1,l.width="100%",l.height="100%",l.left="0px",l.top="0px",o||(l.background="#000"),this.containerEl.addEventListener("touchmove",r),this.containerEl.addEventListener("touchstart",r),this.win.document.body.appendChild(this.containerEl),this.resize=n.bind(this),this.tick=e.bind(this),this.intervalId=setInterval(this.tick,i),new Tapper(t)}function e(){window===("undefined"==typeof adapter?creative.adapter:adapter).getTopWindow()&&(this.containerEl.style.width="100%",this.containerEl.style.height="100%");var t=Math.max(this.win.document.documentElement.clientWidth,this.win.innerWidth||0),e=Math.max(this.win.document.documentElement.clientHeight,this.win.innerHeight||0);(this.lastWidth!==t||this.lastHeight!==e||ios("7")&&o)&&(this.lastWidth=t,this.lastHeight=e,defer(this.resize))}function n(){var t=this.containerEl.style;t.width=this.lastWidth+"px",t.height=this.lastHeight+"px",t.zIndex=CeltraPlayerUtils.ZINDEX_MAX,this.emit("resize",{width:this.lastWidth,height:this.lastHeight,scrollX:this.lastScrollX,scrollY:this.lastScrollY})}function r(t){var e=void 0!=typeof adapter?adapter:creative.adapter;"touchstart"==t.type&&e.useNativeClickForTapDetection||t.preventDefault(),t.stopPropagation()}var i=60,o=-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("CriOS");extend(t.prototype,EventEmitter),t.prototype.getElement=function(){return this.containerEl},t.prototype.destroy=function(){this.containerEl&&(this.containerEl.removeEventListener("touchmove",r),this.containerEl.removeEventListener("touchstart",r),clearInterval(this.intervalId),this.containerEl.innerHTML="")},window.FullScreenHandler=t}();;
!function(){var t=.4,i=function(t,i){this.maxPlayingSegmentLength=t,this.callback=i,this.reset()};i.prototype.init=function(t){this._startPlayingPosition=t,this._lastPlayingPosition=t},i.prototype.addEvent=function(t){t>this._lastPlayingPosition&&(this._lastPlayingPosition=t);var i=this._lastPlayingPosition-this._startPlayingPosition,n=i>=this.maxPlayingSegmentLength;n&&this.flush()},i.prototype.flush=function(i){if(null!=this._startPlayingPosition){var n=this._startPlayingPosition,s=this._lastPlayingPosition;(i||s-n>t)&&s>n&&(this.callback({from:n,to:s}),this._startPlayingPosition=this._lastPlayingPosition)}},i.prototype.reset=function(){this._startPlayingPosition=null,this._lastPlayingPosition=null},window.PlayedSegmentComputationUnit=i}();;
!function(t){function i(t){this._player=t,this._startClock=this._startClock.bind(this),this._stopClock=this._stopClock.bind(this),this.update=this.update.bind(this),this._duration=t.getDuration(),this._completionMarker=Math.max(0,this._duration-i.COMPLETION_WINDOW_LENGTH),this._uniqueSecondsPlayedList=[],this._timeUpdateIntervalId=0,this._last=this._initState(),this._quartileDurations={start:0,firstQuartile:.25*this._duration,midpoint:.5*this._duration,thirdQuartile:.75*this._duration,complete:this._completionMarker},t.addEventListener("timeupdate",this.update),t.addEventListener("playing",this._startClock),t.addEventListener("ended",this._stopClock)}extend(i.prototype,EventEmitter),i.COMPLETION_WINDOW_LENGTH=.5,i.MAX_INTERPOLATION_GAP=5,i.prototype._initState=function(){return{playingSecond:0,inCompletionWindow:!1}},i.prototype._startClock=function(){this._timeUpdateIntervalId||(this._timeUpdateIntervalId=setInterval(this.update.bind(this),250),this.update())},i.prototype._stopClock=function(){this._timeUpdateIntervalId&&clearInterval(this._timeUpdateIntervalId),this._timeUpdateIntervalId=0},i.prototype.update=function(t){var t=(Date.now(),t||this._player.getCurrentTime());if(t>=0){t>this._duration&&(t=this._duration);var e=t>=this._completionMarker;if(this._last.inCompletionWindow&&e)return;this._last.inCompletionWindow&&!e&&(this._last=this._initState());var n=Math.floor(t)+1;if(this._last.playingSecond!=n){var a;if(a=this._last.playingSecond>n?0:this._last.playingSecond,n>a+1)for(var s=Math.max(n-i.MAX_INTERPOLATION_GAP,a+1),o=s;n>o;o++)this._markAndEmitSecondPlayed(o,t);this._markAndEmitSecondPlayed(n,t)}var r=this._uniqueSecondsPlayedList.length-1+(t-Math.floor(t));this._markAndEmitQuartilesForDuration(r),this._last.playingSecond=n,this._last.inCompletionWindow=e}},i.prototype._markAndEmitSecondPlayed=function(t,i){var e=-1==this._uniqueSecondsPlayedList.indexOf(t);e?(this._uniqueSecondsPlayedList.push(t),this.emit("secondPlayed",t,i)):this.emit("secondReplayed",t,i)},i.prototype._markAndEmitQuartilesForDuration=function(t){for(var i in this._quartileDurations)t>=this._quartileDurations[i]&&(delete this._quartileDurations[i],this.emit(i,t))},t.PlaybackTrackingEventsEmitter=i}(this);;
!function(t){function i(t,i,e){this._context=i,this._prefix=e||"video",["start","firstQuartile","midpoint","thirdQuartile","complete"].forEach(function(i){t.on(i,function(t){this._context.track({name:this._prefix+ucfirst(i),position:t}),"start"===i&&creative.trackCreativeRenderedOnVideoStart()}.bind(this))},this),["secondPlayed","secondReplayed"].forEach(function(i){t.on(i,function(t,e){this._context.track({name:this._prefix+ucfirst(i),second:t,position:e})}.bind(this))},this)}extend(i.prototype,EventEmitter),i.prototype.changeContext=function(t){this._context=t},t.PlaybackTrackingEventsRecorder=i}(this);;
!function(){var A=[".video-player-wrapper {"," position: absolute;"," width: 100%;"," height: 100%;"," background: #000;"," top: 0;"," left: 0;"," overflow: hidden;","}",".video-player-engine {"," position: absolute;"," width: 100%;"," height: 100%;"," min-height: 100%;"," top: 0;"," left: 0;"," margin: 0;"," padding: 0;"," overflow: hidden;","}",".video-player-engine video,",".video-player-engine .canvasContainer","{"," position: relative;"," width: 100%;"," height: 100%;"," min-height: 100%;"," background: #000;"," top: 0;"," left: 0;","}",".video-player-poster {"," position: absolute;"," background-color: #000000;"," background-size: contain;"," background-repeat: no-repeat no-repeat;"," background-position: center center;","}",".video-player-fitting-crop .video-player-poster {"," background-size: cover;","}",".video-player-engine canvas {"," position: relative;"," width: 100%;"," background: #000;"," top: 0;"," left: 0;","}",".video-player-engine canvas {"," image-rendering: optimizeSpeed;"," image-rendering: -moz-crisp-edges;"," -ms-interpolation-mode: nearest-neighbor;"," image-rendering: optimize-contrast;"," image-rendering: -webkit-pixelated;"," image-rendering: crisp-edges;"," image-rendering: -webkit-optimize-speed;"," image-rendering: -webkit-optimize-contrast;","}",".video-controls-container {"," position: absolute;"," width: 100%;"," height: 100%;"," top: 0;"," left: 0;"," font-size: 14px;","}",".video-basic-controls-wrapper {"," position: absolute;"," width: 100%;"," height: 100%;","}",".video-controls-slider-container {"," position: absolute;"," width: 100%;"," height: 8px;"," bottom: -1px;"," left:0;"," background: #111;","}",".video-controls-progress-bar {"," opacity: 0.3;","}",".video-controls-progress-bar,",".video-controls-time-bar {"," position: absolute;"," width: 0;"," top: 0;"," left: 0;"," height: 100%;","}","@-webkit-keyframes video-player-spin{"," 0% { -webkit-transform: rotate(0deg); }"," 100% { -webkit-transform: rotate(359deg); }","}","@-moz-keyframes video-player-spin{"," 0% { -moz-transform: rotate(0deg); }"," 100% { -moz-transform: rotate(359deg); }","}","@keyframes video-player-spin{"," 0% { transform: rotate(0deg); }"," 100% { transform: rotate(359deg); }","}",".video-player-spinner-big,",".video-player-spinner-small {"," display: block;"," position: absolute;"," top: 50%;"," left: 50%;"," -webkit-animation: video-player-spin 1.5s infinite linear;"," animation: video-player-spin 1.5s infinite linear;","}",".video-player-spinner-big {"," width: 35px;"," height: 35px;"," margin-top: -17px;"," margin-left: -17px;",' background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAQAAAC00HvSAAADTklEQVR4AZWVTWgcZRyHn/c/7zubbDbJJsTEioiIH7EGq6EIRqwWqbRClXrx4E0QxYt3b4qK9qgoePDmwRYVS6xFW7Ueeqj0kqIVQYwljTVt0o/dZD9n3r/zshGSGpOd54GZ0+9h/qcxbMh03PfK4LPl8cFy0SJsialxIyfHRz+6Y6pkDR0xXWQ8azlaGvt0fF9sMsiTsazh2933fzEyKICu2+bKfP/izg96IlDA6JXmhdPVY81T6Xk2wAuCz1zFTNOh+PKD71sRMIZqY3aa59iERYtktvDrMm735LGCNQaE38/O7WGRzRBCJljrhCyB0l2HXKSgxpw7zt4xNmcBZNUSlU4XGPl4aEhRVc595fd6tvKm8LAEY4qrR0V3T87YyGDMn2d4mC6ZL9JDmEm6gBcYPhiJqlJdnt8/T7dSQ0JEhQEQ4m2Ph4jq3GdDi0N0Lw21arHSL0jP84WCZlQqV1+6Sh5ZRoix9PiiLe1TBbj0w4gnJ4v1qBeQqN8W79HQYeU78tPAIqBFWxwNFbR1mvy0iMEY+qyNvRK4SH68cQAGiaz64MTCBHndkRhngr3SbnYyM6Mz5NYah81EWnXN8D66OSKvxBrjMpH6X+ozNd4Rk1dKxgW1KbVfskpGYapAXqNRXGakdal/o1kHX95VJq/RbcYFWZLGkVY1fE+hvPT6Enmc2y5lnIk0TS8LraXjeM0ceqY6UKVrrbsvRHD+gvViqbyTtvDex4PD7w3Tre4xUzYOhyS/JUiCP3/pkPd49eVH2m+36cbqLrcdR2Rs8qutWcRiqbxRm9c0HDZywLxp2MrGE/FDxoo1VivJTEKCmSYQPXDrJ+LIQppeO3n9NZb5P+LC0+5eEm2Tar12mCvr/lPxU9veNRIy6luXK0f4kA1I9hR2Sp9PSLJIo/4lsxAwR/kX++TYWyZWT6qZrb9rp9pnkj/8dSqUon5zi73TTUhJs4QGV+qfh8h/MmAmRg7GYyGiXpPMlLbP3rS1Y6oJLU3Upxebh1lYs/yataQ9pVcH9hsJqdVMmHYS7ZAm0Ubjx9YJEtZgprmRaKz3hb5HpTeESHyIZYFOIq00f2qe4BqBTTMdrJuKJ+3t0bAUsH7FV5KFZLb9c3oWzwb8AzjvQbz9lli3AAAAAElFTkSuQmCC");',"}",".video-player-spinner-small {"," width: 18px;"," height: 18px;"," margin-top: -9px;"," margin-left: -9px;",' background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAABeElEQVR4AXXSv2sTYRjA8e89997lcuR60eJQUdpFQQoqdHRWhAoddPBPcHRwE8TZxcXJf0BEsIjuQUQQtZMOpREM9RKL1RrqJbkf771nEGnKJf1+hmd5eKaHSe/vtzf30k63Q9X/8XZte6f8V/QrokopILq9/CB0+nnUip/l7zioUJgxrBbu6rnnodvp9G6wwaG04AEJRvAWHjXcr+3tC3pDcxhmzGcOpH7rxOm9uHfN3repIkMkwJPguljfXwVbAdOaBm3V7VD8pVE2fDpkNhJcQqXqOi+2OKrxJRxVFkXB0Ql1tKS/QZaE2fAkQGS4KbZ3xWM2+xRzpDJYz5Pw6mBxwLQ/vlq2XLMj6ZP9T7VjzYfGN1Qo97IslD9NV8j6d0e7wUrzsSwKExyv3XTOl1n2AWO1AHdt/p4Kkm/xy/xN2cMwb591Lkqj+JGs0wbrNQCy0rjjnQHdN7EZkYOJs8/ZC7pwsASgVp1L6qRVK9NiV3/RHyc/8RftSMiO8WZLaAAAAABJRU5ErkJggg==");',"}",".video-controls-hiddable,",".video-controls-unhiddable {"," width: 100%;"," height: 100%;","}",".video-basic-controls-wrapper .center-button {"," position: absolute;"," width: 4em;"," height: 4em;"," border-top-left-radius: 2em;"," border-top-right-radius: 2em;"," border-bottom-left-radius: 2em;"," border-bottom-right-radius: 2em;"," background: #111;"," margin: auto;"," top: 0;"," left: 0;"," bottom: 0;"," right: 0;"," text-align: center;"," cursor: pointer;"," opacity: 0.8;"," z-index: 1;","}",".center-button div {"," position: relative;"," width: 100%;"," color: white;"," font-size: 2em;"," top: 0.5em;","}",".center-button .celtra-icon-play { left: 0.1em;}",".center-button .celtra-icon-replay { top: 0.62em; left:0.05em}",".video-basic-controls-wrapper .custom-button {"," position: absolute;"," height: 100%;"," width: 100%;"," top: 0;"," left: 0;"," cursor: pointer;"," opacity: 0.8;","}",".custom-button img {"," margin: auto;"," position: absolute;"," top: 0;"," right: 0;"," bottom: 0;"," left: 0;","}",".video-controls-button {"," position: absolute;"," cursor: pointer;"," font-size: 1.5em;"," color: white;"," width: 2.5em;"," height: 2.5em;","}",".video-controls-desktop .video-controls-button div {"," margin-top: -0.5em;","}",".ie-click-event {"," background-color: rgba(255,255,255,0);","}",".video-controls-button-shadow {"," text-shadow: 1px 1px 3px #000;","}",".video-controls-button-top-right {"," right: 0;"," top: 0;","}",".video-controls-desktop .video-controls-button-top-right {"," margin-right: 0.5em;"," margin-top: 0.5em;"," width: 1.5em;"," height: 1.5em;","}",".video-controls-button-bottom-right {"," right: 0;"," bottom: 0;","}",".video-controls-desktop .video-controls-button-bottom-right {"," margin-right: 0.5em;"," margin-bottom: 0.75em;"," width: 1.5em;"," height: 1.5em;","}",".video-controls-button div {"," position: absolute;"," height: 50%;"," width: 100%;"," left: 0;"," text-align: center;"," top: 50%;"," margin-top: -0.75em;"," vertical-align: middle;","}",".video-controls-button .celtra-icon-close {"," font-size: 0.7em;"," left: 0.07412em;","}",".video-controls-button .celtra-icon-enter-full-screen,",".video-controls-button .celtra-icon-exit-full-screen {"," left: 0.09em;","}",".video-controls-pending {"," animation: video-controls-pending 1s infinite linear;","}","@-webkit-keyframes video-controls-pending {"," 0% { opacity: 1 }"," 50% { opacity: 0 }"," 100% { opacity: 1 }","}","@keyframes video-controls-pending {"," 0% { opacity: 1 }"," 50% { opacity: 0 }"," 100% { opacity: 1 }","}","@font-face {",' font-family: "celtraicons";',' src:url("data:application/font-woff;base64,d09GRk9UVE8AAAqEAAoAAAAACjwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA9AAABq8AAAavkHaHf09TLzIAAAekAAAAYAAAAGAIIvzDY21hcAAACAQAAABMAAAATBpVzGRnYXNwAAAIUAAAAAgAAAAIAAAAEGhlYWQAAAhYAAAANgAAADb/fCRYaGhlYQAACJAAAAAkAAAAJAPjAfJobXR4AAAItAAAAEgAAABIHLIB9G1heHAAAAj8AAAABgAAAAYAElAAbmFtZQAACQQAAAFdAAABXWEQuipwb3N0AAAKZAAAACAAAAAgAAMAAAEABAQAAQEBDGNlbHRyYWljb25zAAECAAEAOvgcAvgbA/gYBB4KABlT/4uLHgoAGVP/i4sMB4pq+JX4dAUdAAAA0A8dAAAA1REdAAAACR0AAAamEgATAQEMFxkbHiMoLTI3PEFGS1BVWl9kY2VsdHJhaWNvbnNjZWx0cmFpY29uc3UwdTF1MjB1RTYwMHVFNjAxdUU2MDJ1RTYwM3VFNjA0dUU2MDV1RTYwNnVFNjA3dUU2MDh1RTYwOXVFNjBBdUU2MEJ1RTYwQ3VFNjBEAAACAYkAEAASAgABAAQABwAKAA0ASwCpAPUCGAJDAs0DBQPvA/sEHgRFBG0E2wWp/JQO/JQO/JQO+5QOi/dUFYs/rUbAXAi1uwVjrnK/i8SL9eHh9YvAi7t2rmgIQ0P3VIuL91RAQAVduUuoRIv7IYv7B/sHi/shCA6L9+kVi/tP9wiK9yD7G4v4Yvsg+x4F93qoFWRkBaZ0nGqLZYtlempwdAiyZAWvrKK6i8CLwHS6Z6wI19cVZWUFuWCoTotIi0huTl1gCLFlBcO/rtaL3YvdaNVTwAgOPPdt+HQVRYtNamNXCF65i/se9x6LUcQFqra8p8SL54vWQIsuiy9AQC+LPItJwXnVCFmLBZ0m5D71i/cLi+3ti/cLi/cMKez7C4sIDvhf95UVg4uDh4WFhYWHg4uDi4KPg5GFkYWTiJOLlIuTjpGRkZGOk4uUi5OIk4WRhZGDj4KLCEveFfutiwWIi4iJiImIiIqIi4gIi/thBYuIjIiOiI6JjomOiwj3rYsFj4uOjY2Njo6MjouOCIv3YQWLjoqOiI6JjYiNh4sI++c+FYeLiYmLhwiLSwWLho2Jj4uQi42Ni5AIi8sFi4+JjYaLCIX3BxX4LYsFmYuXhpWBloGQf4t9CIv7YQWLfYZ/gIGBgX+GfYsI/C2LBX2Lf5CBlYGVhpeLmQiL92EFi5mQl5WVlZWXkJmLCPcO+zsVi3OVdZx8CJmaBX6Wg5yLnYutp6esi5yLm4SWgAh0dMiLi8hzcwV9mnaUdItei2dmi14IDvgl9/EVd5/7EfsR+xH3EXd39xH7EfsR+xGfd/cR9xH3EfsRn5/7EfcRBQ74lfgVFXiCd4Z1iKGYnKCTo3Z/dYJzh3ifb5hti1GLXFyLUYuDjIKMhDSPPrVXy4J7hXmLeAiLZp5rp3h6jHuQfZKLi4uLi4qLWK9hu4GCiYKJgYuEi4WMhIyZYbJtuYpnb116WosIg4uCjIOMum3CecaL91aL9Pc1i/cfi4+LkIuPoJqdnZmhCA73t2sVi/ef0IuV2zyLi74Fi6KRm62LCLWLi9MFhIxyjW2LTothZotGCItQRouLO9CLi/uf3osFDveznxWLlIiShJGFkoSOgouCi4OIhYSFhYiEi4KLgo6EkYSRhZOIlIuUi5KOkZGSko6Si5QI3ssVi/etBYuPio6IjYmOiIyHiwj7YYsFiIuIioiIiYmKiIuHCIv7rQWLh4yIjYmOiI6KjosI92GLBY+LjoyNjo6NjI6Ljwg+9+cVi4+JjYeLCEuLBYaLiYmLh4uHjYiQiwjLiwWPi42Oi48I9weRFYv8LQWLfYZ/gYGBgX+GfYsI+2GLBX2Lf5CBlYGVhpeLmQiL+C0Fi5mQl5WVlpWWkJmLCPdhiwWZi5eGlYGVgZB/i30IDtlqFYv4lfgI+5EFDqL4dBX3R4uL/JX7R4uL+JUF97aLFfdHi4v8lftHi4v4lQUO5/fAFVpZ91mMivdXW1s53SgpBfeY+04VjPtXvLzdOe3uOd27uwUO90v4HhW8u/tWi4v7Vbu63Drt7QX3Z/vHFYr3VVtaOt0pKdw6XFsFDvhSyhWotJy+i8KL1WzOWLoIaWkFtWSlVYtOi2F/ZXZrCGiuBZeikqWLp4u6drZrqQhoaAWjdppti2mLfYd9hn8IO9mL90kyMfsg9yFvb/h4/HmoqEjOBfw494QVi/s984r3E/sOi/ca+zL3MgUO+I/QFYuLi4uLiwj7L/cv9y/3LwWLi4uLi4uNjYyNjI2NkYqRhpAIQtQFhpCFjIWJiYqJiomJi4uLi4uLCPsv+y/7L/cvBYuLi4uLi4mNiYyJjIWNhYqGhghCQgWGhoqFjYWMiYyJjYmLi4uLi4sI9y/7L/sv+y8Fi4uLi4uLiYmKiYqJiYWMhZCGCNRCBZCGkYqRjY2MjYyNjYuLi4uLiwj3L/cv9y/7LwWLi4uLi4uNiY2KjYqRiZGMkJAI1NQFkJCMkYmRio2KjYmNCA74lBT4lBWLDAoAAAMCAAGQAAUAAAFMAWYAAABHAUwBZgAAAPUAGQCEAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA5g0B4P/g/+AB4AAgAAAAAQAAAAAAAAAAAAAAIAAAAAAAAgAAAAMAAAAUAAMAAQAAABQABAA4AAAACgAIAAIAAgABACDmDf/9//8AAAAAACDmAP/9//8AAf/jGgQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAABAAAXLCAzXw889QALAgAAAAAAzy5xzgAAAADPLnHO////3wIBAeAAAAAIAAIAAAAAAAAAAQAAAeD/4AAAAgD/////AgEAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAABAAAAAgAAAAIAAAABsQAAAgD//wIAAG8CAAAAAgAAiwIAAGUCAABOAgAAFwIAAAoCAAAmAgAAAAIAAAEAAFAAABIAAAAAAA4ArgABAAAAAAABABYAAAABAAAAAAACAA4AYwABAAAAAAADABYALAABAAAAAAAEABYAcQABAAAAAAAFABYAFgABAAAAAAAGAAsAQgABAAAAAAAKACgAhwADAAEECQABABYAAAADAAEECQACAA4AYwADAAEECQADABYALAADAAEECQAEABYAcQADAAEECQAFABYAFgADAAEECQAGABYATQADAAEECQAKACgAhwBjAGUAbAB0AHIAYQBpAGMAbwBuAHMAVgBlAHIAcwBpAG8AbgAgADEALgAwAGMAZQBsAHQAcgBhAGkAYwBvAG4Ac2NlbHRyYWljb25zAGMAZQBsAHQAcgBhAGkAYwBvAG4AcwBSAGUAZwB1AGwAYQByAGMAZQBsAHQAcgBhAGkAYwBvAG4AcwBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4AAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="),',' url("data:font/truetype;base64,AAEAAAALAIAAAwAwT1MvMggi/MMAAAC8AAAAYGNtYXAaVcxkAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5ZtKQLWwAAAFwAAAJfGhlYWT/fCRYAAAK7AAAADZoaGVhA+MB8gAACyQAAAAkaG10eByyAfQAAAtIAAAASGxvY2EUzhFSAAALkAAAACZtYXhwABgAwAAAC7gAAAAgbmFtZWEQuioAAAvYAAABXXBvc3QAAwAAAAANOAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADmDQHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIOYN//3//wAAAAAAIOYA//3//wAB/+MaBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAACAAHAACMAADcUHgIXNy4DNTQ+AjMyHgIXBzM1By4DIyIOAhUADBcgFCoPGBEJHjRGKBQmIh8NSMBLESkuMhs1XUYowB02MSoSMA0gJSgWKEY0HggOFQ1IwEsRHBQKKEZdNQADAAAAEgIBAeAABQAcADMAABMVHwERBzcHHgMVFA4CBxc+AzU0LgInNwceAxUUDgIHFz4DNTQuAicAdIyM5icKEQsGBgsRCicNFhAICBAWDUwmERwTCwsTHBEmFSEYDQ0YIRUBVbsBhwHOih0nCBUYGw4OGxgVCCcNHSIlFBQlIh0NTCYQJyswGRkwKycQJhQvNTofHzo1LxQAAAABAAAALgGyAeAALQAAEyIOAgcnFTMnPgMzMh4CFRQOAiMiLgInIx4DMzI+AjU0LgIj2RoxLCYPLYo6DB0jKBUiPS4aGi49Ih41Kx4HMgcmOUcoLU86IyM6Ty0B4AwWHxQuijkQGhMKGy09IyI9LhoTIi8cJkEvHCM6Ty0tTzsiAAX//wBHAf8BegAoAFUAbACZAL0AAAEiDgIHDgMVFB4CFx4DMzI+Ajc+AzU0LgInLgMjJyEiDgIHDgMdARQeAhceAzMhMj4CNT4CND0BPAEuASc0LgIjBSIOAh0BFB4CMzI+Aj0BNC4CIychMh4CFx4DHQEUDgIHDgMjISIuAicuAz0BND4CNz4DMxcUHgIXNy4DNTQ+AjMyHgIXBzM1By4DIyIOAhUBywMGBgUCAgQCAgICBAICBQYGAwQGBgUCAgQCAQECBAICBQYGBED+5wEDAgIBAQEBAQEBAQEBAgIDAQEZAgICAwECAQECAQMCAgL+rQEDAQEBAQMBAgICAQECAgIGAZkGCQkJAwQGBAICBAYEAwkJCQb+ZwUKCQgEBAUEAgIEBQQECAkKBXoDCAoGDgUIBQMKEBcMBwwLCgQXPRgFDQ8QCREdFwwBAQICAwMCBQYGAwQGBgUCAgQCAQECBAICBQYGBAMGBgUCAwMCAlMBAQEBAQICAwHNAQMCAgEBAQEBAQEBAQECAgMBzQEDAgIBAQEBAU0BAQMBQAICAgEBAgICQAEDAQFzAgQFBAQICQoFzQUKCQgEBAUEAgIEBQQECAkKBc0FCgkIBAQFBAKnCREQDgUPBAsLDQcNFhEKAwUGBBc9GAYJBgMNFh4RAAAAAQBvAE8BkQFxAAsAAAEnBycHFwcXNxc3JwGRFH19FH19FH19FH0BXRR9fRR9fRR9fRR9AAEAAAARAgEBsgBpAAABDgMjPgM3DgMjLgMHJg4CFRwBHgEVLgMnDgMVFB4CFwYuAic0FDQUNRQeAhciBiIGJwYmBiYHHgM3DgMHJgYmBiceAxc+AzUwPAI1PgM3AgEHDw8QCAgPCwoDCBAREQkHEhMWCxYmHRABASA+NzATBAUEAgcMEgoGDQwLBQwXHxIDBwcHBAIFBQUDBRQZHxIOHiEjEwMGBwYDESYpKxZJb0wnCA4NDAYBgQMGAwQEDQ4SCAMJBgYGDgcGAQESGycVBAUHBQQCEB4mGQcMDg0IDRoWFAYBAwMFAgEBAQIBFCEdEQUCAgEBAgECAQ8bEg0BCxANBQEBAQIBAg0QDQYBATZXaTYFAgQBBwsPDgkAAQCL/+ABdQHgABwAAAURMzcjNTQ+AjsBNSIuAiMiDgIdASMVMxEzASNFCk8DCQ8NKgMLERQLFyYbD0VFUyABC1AzCQ4LBUgBAQEOGycaO1D+9QAABABl/+EBmAHgACgAVQBsAJkAACU0LgInLgMjIg4CBw4DFRQeAhceAzMyPgI3PgM1NxE0LgInLgIiKwEqAQ4BBw4CFBURHAEeARceAjI7AToBPgE3PgM1AzQuAisBIg4CFRQeAjsBMj4CNTcRFA4CBw4DKwEiLgInLgM1ETQ+Ajc+AzsBMh4CFx4DFQEfAQMDAwIFBgYDBAYFBgICBAIBAQIEAgIGBQYEAwYGBQIDAwMBUwEBAQEBAgIDAc0BAgMCAQEBAQEBAQECAwIBzQEDAgIBAQEBAU0BAQMBQAICAgEBAgICQAEDAQFzAgMGBAQICQoFzQUKCQgEAwYEAgIEBgMECAkKBc0FCgkIBAQGAwIUAwYGBQIDAwMBAQMDAwIFBgYDAwcFBQMCBAIBAQIEAgMFBQcDQAEZAgICAgEBAgEBAgEBAgICAv7nAQMCAgEBAgEBAgEBAgIDAQFTAQMBAQEBAwECAgIBAQICAgb+ZwUKCQgEBAYDAgIDBgQECAkKBQGZBQoJCAQEBgQBAQQGBAQICQoFAAAAAQBO/98BwgHgAAIAABcRBU4BdCECAf0AAgAX/98B7AHgAAQACQAAEzMTIxMhMwMjAxeyAbQBASG0AbIBAeD9/wIB/f8CAQAAAgAK/+AB9AHgAAYADQAAEwczJwcnBwUXNxc3JzdcMcUBMFJjAQQBMVJiUjABLDHEMVNjucQyU2RRMQAAAgAmAAUB3AG6AAYADQAAEzcHFTcXNxMnBycHFwe3McIwUWLTATBRYlEvAYoxAcAuUGH+zsAwUWFSLwAAAgAA/98CAQHgADMAOQAAJT4DNTQuAicHHgMVFA4CByc+AzU0LgInBx4DFRQOAgcnNQcnBwE3JyUVHwE1JwG+CxEMBgsVHxMiDxoRCgUIDAgjBAcFAwcOFAwjCQ4LBQEDAwJQWYwcAeQdQ/5caH+ePxAiJiYWGzUvLBAhECEoKxcPHxsbCyIKERQTDBAjHhsLIgkSFxcNBQsJCgRNtluOHf4cHETvqAJ5hZ8AAAEAAf/hAf8B3wCEAAAlOAMxJzc4AzE+AzU2NC4BLwEuAiIHIg4CBzgDMQcnOAMxLgMjJiIOAQ8BDgIUFxQeAhc4AzEXBzgDMQ4DFQYUHgEfAR4CMjcyPgI3OAMxNxc4AzEeAzMWMj4BPwE+AjQnNC4CJwH7m5sBAQEBAQECAkkCBAQFAgEBAgEBm5sBAQIBAQIFBAQCSQICAQEBAQEBm5sBAQEBAQECAkkCBAQFAgEBAgEBm5sBAQIBAQIFBAQCSQICAQEBAQEBRZubAQECAQECBQQEAkkCAgEBAQEBAZubAQEBAQEBAgJJAgQEBQIBAQIBAZubAQECAQECBQQEAkkCAgEBAQEBAZubAQEBAQEBAgJJAgQEBQIBAQIBAQAAAAEAAAABAAAoDgB8Xw889QALAgAAAAAAzy5xzgAAAADPLnHO////3wIBAeAAAAAIAAIAAAAAAAAAAQAAAeD/4AAAAgD/////AgEAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAABAAAAAgAAAAIAAAABsQAAAgD//wIAAG8CAAAAAgAAiwIAAGUCAABOAgAAFwIAAAoCAAAmAgAAAAIAAAEAAAAAAAoAFAAeAFIAoADgAdoB9AKCAqwDeAOEA5wDugPYBC4EvgAAAAEAAAASAL4ABQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAWAAAAAQAAAAAAAgAOAGMAAQAAAAAAAwAWACwAAQAAAAAABAAWAHEAAQAAAAAABQAWABYAAQAAAAAABgALAEIAAQAAAAAACgAoAIcAAwABBAkAAQAWAAAAAwABBAkAAgAOAGMAAwABBAkAAwAWACwAAwABBAkABAAWAHEAAwABBAkABQAWABYAAwABBAkABgAWAE0AAwABBAkACgAoAIcAYwBlAGwAdAByAGEAaQBjAG8AbgBzAFYAZQByAHMAaQBvAG4AIAAxAC4AMABjAGUAbAB0AHIAYQBpAGMAbwBuAHNjZWx0cmFpY29ucwBjAGUAbAB0AHIAYQBpAGMAbwBuAHMAUgBlAGcAdQBsAGEAcgBjAGUAbAB0AHIAYQBpAGMAbwBuAHMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=");'," font-weight: normal;"," font-style: normal;","}",'[class^="celtra-icon-"], [class*=" celtra-icon-"] {',' font-family: "celtraicons";'," speak: none;"," font-style: normal;"," font-weight: normal;"," font-variant: normal;"," text-transform: none;"," line-height: 1;"," -webkit-font-smoothing: antialiased;"," -moz-osx-font-smoothing: grayscale;","}",'.celtra-icon-redo:before { content: "\\e600"; }','.celtra-icon-close:before { content: "\\e60d"; }','.celtra-icon-go-landscape:before { content: "\\e603"; }','.celtra-icon-twitter:before { content: "\\e605"; }','.celtra-icon-facebook:before { content: "\\e606"; }','.celtra-icon-phone:before { content: "\\e607"; }','.celtra-icon-play:before { content: "\\e608"; }','.celtra-icon-pause:before { content: "\\e609"; }','.celtra-icon-exit-full-screen:before { content: "\\e60a"; }','.celtra-icon-enter-full-screen:before { content: "\\e60b"; }','.celtra-icon-unmute:before { content: "\\e60c"; }','.celtra-icon-mute:before { content: "\\e601"; }','.celtra-icon-replay:before { content: "\\e602"; }','.celtra-icon-close2:before { content: "\\e604"; }',".spinner .center-button {"," display: none;","}",".web-audio .celtra-icon-mute, .web-audio .celtra-icon-unmute { color: red; }",""].join("\n");this.VideoPlayerCss=A}();;
!function(){var e={supportsHtml5Video:!0,allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,isHighDensityDisplay:celtra.isHighDensityDisplay(),startMuted:!1,preload:!1,from:null,to:null,blobHash:null,customUrlParameters:{},hasAudio:!0,hasVideo:!0,forceMPEG1Video:!1,forceMPEG4Video:!1,thumbnailMode:!1},r=CeltraPlayerUtils.composeUrl,i=CeltraPlayerUtils.filterObject,t=(CeltraPlayerUtils.isTruthy,CeltraPlayerUtils.getUrl),o=/Safari\/\d+/.test(navigator.userAgent)&&celtra.ios(),a=/SamsungBrowser\/\d+/.test(navigator.userAgent)&&celtra.android(),n=o&&celtra.ios("10",null)&&!celtra.chromeBased()||!o&&celtra.ios("10",null)&&!(celtra.tablet()&&celtra.ios())||celtra.ios("10",null)&&celtra.chromeBased("65",null)||celtra.android()&&celtra.chromeBased("53",null)&&!a||deviceInfo&&deviceInfo.os.android()&&deviceInfo.browser.chrome("53",null),s=celtra.desktop()||n||CeltraPlayerUtils.canManipulateVolume();VideoEngineProvider={};var l=function(r,i){var t=merge(e,i);t.preload&&!deviceInfo.deviceType.desktop()&&(r=!1),t.audioCanAutoplay||r||deviceInfo.deviceType.desktop()||t.isMasterVideo||(t.startMuted=!0),"1"==t.campaignExplorer&&(t.startMuted=!0);var o=d(r,n,t);return"jsVideo"==o?merge(c(t),{inUserInitiatedThread:r,startMuted:t.startMuted}):merge(u(t,r),{inUserInitiatedThread:r,startMuted:t.startMuted})},d=function(e,r,i){if(i.forceMPEG1Video)return"jsVideo";if(i.forceMPEG4Video||r)return"html5";if(i.isTeaser)return"jsVideo";var t=!e&&i.mediaPlaybackRequiresUserAction||!i.allowsInlineMediaPlayback||!i.supportsHtml5Video;return!t||i.thumbnailMode||i.disableJsPlayer?"html5":"jsVideo"},c=function(e){var r=celtra.tablet()&&celtra.ios(),i=e.isTeaser?"mpeg1TeaserVideo":celtra.android("4.0")&&celtra.webkit("534.30")?"mpeg1HQVideo":r&&e.isHighDensityDisplay?"mpeg1SHQVideo":r?"mpeg1HQVideo":"oggHQVideo";r&&("mpeg1SHQVideo"===i||"mpeg1HQVideo"===i)&&e.selectOGVPlayer&&(i="oggHQVideo"),celtra.ios()&&creative&&"CrossScreenMiniscroller"==creative.constructor.name&&(i="mpeg1HQVideo");var t=/(?:mpeg|ogg)(?=[^\/?]+)/.exec(i),o=t&&"ogg"===t[0]?"ogv":"mpeg1";return{clazz:"JsVideoEngine",preset:i,engineType:o,file:"video.avi",doAVSync:e.hasAudio&&!e.isTeaser,isTeaser:e.isTeaser,preload:e.preload,options:{}}},u=function(e,r){var i=e.isMasterVideo,t=celtra.gecko()&&celtra.desktop()&&!e.isSnapchatFormat?{prefix:"webm",extension:"webm"}:{prefix:"mpeg4",extension:"mp4"},o="HQ";i?o=celtra.desktop()&&!e.capStreamAtHQPlus?"HD":celtra.gecko()?"HQ":"HQPlus":e.isSnapchatFormat?o="HQPlus":celtra.desktop()||e.isVideo360?o=celtra.gecko()?"HQ":"HQPlus":(celtra.tablet()||n)&&(o="HQ");var a=t.prefix+o,l=!celtra.desktop()&&e.hasAudio&&!e.isTeaser&&!s&&V()&&!i,d=!celtra.desktop()&&e.isVideo360&&r&&!e.startMuted,c=e.isVideo360&&celtra.ios(null,"10");return{clazz:c?"CrossOriginHtml5VideoEngine":"Html5VideoEngine",preset:a,engineType:"html5",file:"video."+t.extension,doAVSync:l||d,isTeaser:e.isTeaser,preload:e.preload,crossOrigin:!0,options:{}}},p=function(e,i){var o=("Html5VideoEngine"==e.clazz||"CrossOriginHtml5VideoEngine"==e.clazz)&&(e.doAVSync||e.isTeaser);return r(t("cachedApi"),"videoStream",i.blobHash,e.preset,e.file,f(e.preset,o,i))};AudioEngineProvider={};var m=function(e){if(!e.doAVSync)return null;var r=V()?"WebAudioEngine":"Html5AudioEngine";return{clazz:r,preload:e.preload}},g=function(e){var i={preset:"aacAudio",file:"audio.m4v"};return r(t("cachedApi"),"videoStream",e.blobHash,i.preset,i.file,e?v(i.preset,e):{})},f=function(e,r,t){return i(merge({from:t.from,to:t.to,muted:r?"1":null,transform:"VideoStream",celtraCacheBust:P(e)},t.customUrlParameters))},v=function(e,r){return i(merge({from:r.from,to:r.to,transfom:"VideoStream",celtraCacheBust:P(e)},r.customUrlParameters))},V=function(){return"undefined"!=typeof AudioContext||"undefined"!=typeof webkitAudioContext},P=function(e){if("undefined"!=typeof creative){var r=creative.videoStreamAlgoVersions[e];return creative.version+(r?"-"+r:"")}return null};VideoEngineProvider.createVideoEngineSpec=l,VideoEngineProvider.createVideoUrl=p,window.VideoEngineProvider=VideoEngineProvider,AudioEngineProvider.createAudioEngineSpec=m,AudioEngineProvider.createAudioUrl=g,window.AudioEngineProvider=AudioEngineProvider}();;
!function(e){var t=function(e,t,n,s,o){this._containerEl=e,this._opts=merge({},i,o),this._videoEngine=null,this._videoEngineSpecProvider=t,this.isUserGazing=s,this._doc=e.ownerDocument,this._win=this._doc.defaultView,this._initialized=!1,this._firstPlay=!0,this.silentPauseActive=!1,this._engineType=null,this._videoPreset=null,this._muted=!0,n&&(this._controlsController=n(this,this._opts),this._controlsController&&this._controlsController.on("userInteraction",this.emit.bind(this,"userInteraction"))),this._aspectRatio=this._opts.videoWidth/this._opts.videoHeight,this.isFullScreen=!this.playsInline(),this.isDesktop=this._opts.isDesktop,this.anchoringPoint=this._opts.anchoringPoint,this.buffered=0,this._state=null,this._posterShown=!0,this._seeked=!1,this._repeated=0,this.playSucceeded=!1,this._playingEmitted=!1,this._firstRenderEmitted=!1,this._timeUpdateCounter=0,this._lastTimeUpdateEmitted=0,this.play=this.play.bind(this),this.silentPlay=this.silentPlay.bind(this),this.pause=this.pause.bind(this),this.silentPause=this.silentPause.bind(this),this.mute=this.mute.bind(this),this.unMute=this.unMute.bind(this),this.redraw=this.redraw.bind(this),this.enterFullScreen=this.enterFullScreen.bind(this),this.exitFullScreen=this.exitFullScreen.bind(this),this.destroy=this.destroy.bind(this),this._onFullscreenChange=this._onFullscreenChange.bind(this),this._init(),this.changeState(CeltraPlayerUtils.UNSTARTED),this._fullScreenAncestors=[]};extend(t.prototype,StatefulEventEmitter),Object.defineProperty(t.prototype,"paused",{get:function(){return this._videoEngine&&this._videoEngine.paused}}),Object.defineProperty(t.prototype,"componentName",{get:function(){return this._opts.componentName}}),Object.defineProperty(t.prototype,"duration",{get:function(){return this.serverReportedDuration?this.serverReportedDuration:this._videoEngine&&this._videoEngine.duration||0}}),Object.defineProperty(t.prototype,"serverReportedDuration",{get:function(){return this._opts.duration}}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this._videoEngine&&this._videoEngine.getCurrentTime()||0},set:function(e){this._videoEngine&&this._videoEngine.setCurrentTime(e)}}),Object.defineProperty(t.prototype,"reportsSeeking",{get:function(){return!(!this._videoEngine||!this._videoEngine.reportsSeeking)}}),Object.defineProperty(t.prototype,"muted",{get:function(){return this._muted}}),Object.defineProperty(t.prototype,"fullscreen",{get:function(){return this.isFullScreen}}),Object.defineProperty(t.prototype,"engineType",{get:function(){return this._engineType}}),Object.defineProperty(t.prototype,"videoPreset",{get:function(){return this._videoPreset}}),Object.defineProperty(t.prototype,"engineInitialized",{get:function(){return this._initialized}}),Object.defineProperty(t.prototype,"ended",{get:function(){return this.isState(CeltraPlayerUtils.ENDED)}});var i={canShowSpinner:!0,closeFSOnEnd:!1,fitting:"fit",fullscreenMode:"both",pauseOnEnd:!1,playFrom:null,playTo:null,poster:"data:image/gif;base64,"+CeltraPlayerUtils.EMPTY_PIXEL,repeatTimes:0,videoWidth:160,videoHeight:100},n={loadedmetadata:"onLoadedMetaData",durationchange:"onDurationChange",progress:"onProgress",timeupdate:["onTimeUpdate","onTimeUpdateRepeat"],canplay:"onCanPlay",play:"onPlay",playing:"onPlaying",pause:"onPause",autoplayrejected:"onAutoplayRejected",forcemuted:"onForceMuted",ended:"onEnded",buffering:"onBuffering",endbuffering:"onEndBuffering",muted:"onMuted",unmuted:"onUnMuted",seeking:"onSeeking",seeked:"onSeeked",exitfullscreen:"onExitFullScreen",webkitendfullscreen:"onExitFullScreen",error:"onError",canunmute:"onCanUnMute",custominfo:"onCustomInfo",playersourceloading:"onPlayerSourceLoading",volumechange:"onVolumeChange"};t.DOM=['"],t.prototype._init=function(){if(CeltraPlayerUtils.createDom(this._doc,t.DOM,this._opts,CeltraPlayerUtils.xBindFactory(this)),CeltraPlayerUtils.insertStyleTag("celtra-video-player-style",VideoPlayerCss,this._doc),this._controlsController&&(this._controlsEl=this._controlsController.render(this._doc),this._controlsWrapperEl.appendChild(this._controlsEl)),this._containerEl.appendChild(this._wrapperEl),this._posterShow(),this._controlsController&&this._controlsController.adjustSizes(this._containerEl.clientHeight),this._opts.preload){var e=this.createSpecs(!1,this._opts.startMuted);this.initialize(e)}this.dtCanFullscreen=this.isDesktop&&this._toggleDesktopFSStateHandlers("add")},t.prototype.setDimensions=function(e,t){this.width=e,this.height=t,this.redraw(),this.emit("rendered")},t.prototype.getVideoElement=function(){return this._videoEngine},t.prototype.getControlsElement=function(){return this._controlsEl},t.prototype.getWrapperElement=function(){return this._wrapperEl},t.prototype._posterHide=function(){this._posterShown&&(this._posterShown=!1,this._posterEl.style.display="none")},t.prototype._posterShow=function(){this._posterShown||(this._posterShown=!0,this._posterEl.style.display="")},extend(t.prototype,{onLoadedMetaData:function(){this.redraw(),this.emit("canunmute")},onCanPlay:function(){this.emit("canplay")},onDurationChange:function(){this.emit("durationchange")},onBuffering:function(){this.changeState(CeltraPlayerUtils.BUFFERING),this.emit("buffering")},onEndBuffering:function(){this.emit("endbuffering")},onPlayerSourceLoading:function(e){(this._opts.autoplay||e)&&this.emit("playersourceloading")},onMuted:function(){this._muted=!0,this.emit("muted")},onUnMuted:function(){this._muted=!1,this.emit("unmuted")},onVolumeChange:function(e){this._muted=0==e,this.emit(this._muted?"muted":"unmuted"),this.emit("volumechange",e)},onProgress:function(){this.buffered="object"==typeof this._videoEngine.buffered&&this._videoEngine.buffered.length>0?this._videoEngine.buffered.end(0):this._videoEngine.buffered,this.emit("progress",this.buffered/(this.duration||1))},onTimeUpdate:function(){!this._playingEmitted&&this._timeUpdateCounter>2&&this.buffered>0&&(this._playingEmitted=!0,this.onEndBuffering(),this.changeState(CeltraPlayerUtils.PLAYING),this.emit("playing")),this._timeUpdateCounter+=1;var e=Date.now();this._timeUpdateCounter>3&&e-this._lastTimeUpdateEmitted>70&&(this._lastTimeUpdateEmitted=e,this._posterHide(),this._firstRenderEmitted||(this.emit("firstRender"),this._firstRenderEmitted=!0),this.emit("timeupdate",this._videoEngine.getCurrentTime()))},onTimeUpdateRepeat:function(e){this._opts.playTo&&e>=this._opts.playTo&&(this._hasToBeRepeated()?this._doRepeat():(this.pause(),this._doEnd()))},onPlay:function(){this.emit("play")},onPlaying:function(){this.emit("playing"),this.changeState(CeltraPlayerUtils.PLAYING),this.playSucceeded=!0,this.redraw()},onPause:function(){this.changeState(CeltraPlayerUtils.PAUSED),this.emit("pause")},onAutoplayRejected:function(){this.emit("autoplayrejected")},onForceMuted:function(){this.emit("forcemuted")},onExitFullScreen:function(){this.exitFullScreen()},onEnded:function(){this._playingEmitted=!1,this._hasToBeRepeated()?this._doRepeat():this._doEnd()},getContainerDimensions:function(){if(this.isFullScreen){var e=this.dtCanFullscreen?this._wrapperEl:this._wrapperEl.parentNode;return{width:e.clientWidth,height:e.clientHeight}}return{width:this.width,height:this.height}},redraw:function(){var e="fit"!==this._opts.fitting,t=this._aspectRatio,i=this.getContainerDimensions(),n=CeltraPlayerUtils.fitComponent(100*t,100,i.width,i.height,e);switch(this.anchoringPoint){case"top":n.marginVertical=0;break;case"bottom":n.marginVertical=Math.ceil(i.height-n.height)}var s=function(e){e.width=n.width+"px",e.height=n.height+"px",e.minHeight=n.height+"px",e.left=n.marginHorizontal+"px",e.top=n.marginVertical+"px"},o=function(e){e.width=i.width+"px",e.height=i.height+"px",e.minHeight=i.height+"px",e.left=0,e.top=0};e?(s(this._engineContainerEl.style),s(this._posterEl.style),o(this._controlsWrapperEl.style)):(s(this._engineContainerEl.style),s(this._posterEl.style),s(this._controlsWrapperEl.style))},onSeeking:function(){this.emit("seeking")},onSeeked:function(){if(this._seeked){switch(this._seeked=!1,this._stateBeforeSeek){case CeltraPlayerUtils.PLAYING:this.play();break;case CeltraPlayerUtils.PAUSED:this.silentPause()}this._stateBeforeSeek=void 0}this.emit("seeked")},onError:function(){this.emit("error")},onCanUnMute:function(){this.emit("canunmute")},onCustomInfo:function(e){this.emit("custominfo",e)}}),extend(t.prototype,{getState:function(){return this._state},mute:function(){this._videoEngine&&"function"==typeof this._videoEngine.mute&&this._videoEngine.mute(),this.onMuted()},unMute:function(){this._videoEngine&&"function"==typeof this._videoEngine.unMute&&this._videoEngine.unMute(),this.onUnMuted()},silentPlay:function(){this._videoEngine.play()},createSpecs:function(e,t){var i=this._videoEngineSpecProvider(e,t);i=merge(i,{options:this._opts});var n=AudioEngineProvider.createAudioEngineSpec(i),s=i.videoUrl?i.videoUrl:VideoEngineProvider.createVideoUrl(i,this._opts.videoStream),o=n?AudioEngineProvider.createAudioUrl(this._opts.videoStream):null;return{videoEngineSpec:i,videoUrl:s,audioEngineSpec:n,audioUrl:o}},initialize:function(e){this._createEngines(e),CeltraPlayerUtils.isNode(this._engineEl)&&!this._engineEl.parentNode&&this._engineContainerEl.appendChild(this._engineEl),e.videoEngineSpec.options.videoElement&&(this._wrapperEl.style.background="transparent"),CeltraPlayerUtils.attachHandlers(this,this._videoEngine,n),void 0!==e.videoEngineSpec.startMuted&&(e.videoEngineSpec.startMuted?this.mute():this.unMute()),this._initialized=!0},play:function(e){return null==this._videoEngine?void Logger("VideoPlayer").log("Video not initialized!"):(this.isState(CeltraPlayerUtils.UNSTARTED,CeltraPlayerUtils.ENDED)&&this.changeState(CeltraPlayerUtils.BUFFERING),this._firstPlay&&!e&&this.unMute(),this._firstPlay=!1,this._videoEngine.play(),void this.emit("userplayed"))},_createEngines:function(e){if(null===this._videoEngine){if(this._engineType=e.videoEngineSpec.engineType,this._videoPreset=e.videoEngineSpec.preset,"JsVideoEngine"==e.videoEngineSpec.clazz?this._videoEngine=new JsVideoEngine(e.videoUrl,this._engineType,e.videoEngineSpec):"Html5VideoEngine"==e.videoEngineSpec.clazz&&(this._videoEngine=Html5VideoEngine(e.videoUrl,e.videoEngineSpec)),null!==e.audioEngineSpec){var t=null,i=null;"WebAudioEngine"==e.audioEngineSpec.clazz?(t=WebAudioEngine(e.audioUrl,e.audioEngineSpec.preload),i=Object.create(AVSyncWebAudio).init(this,t,e.videoEngineSpec.startMuted)):"Html5AudioEngine"==e.audioEngineSpec.clazz&&(t=Html5AudioEngine(e.audioUrl,e.audioEngineSpec.preload),i=Object.create(AVSyncAudio).init(this,t,e.videoEngineSpec.startMuted))}this._engineEl=this._videoEngine.render(this._doc,{playsInline:this.playsInline()})}},silentPause:function(){this._videoEngine.pause()},pause:function(){this._videoEngine&&this._videoEngine.pause(),this.emit("userpaused"),this._playingEmitted=!1},close:function(){this.playsInline()?this.exitFullScreen():this.emit("close")},replay:function(){this.emit("replayed"),this.setCurrentTime(0),this._playingEmitted=!1,this.play()},reset:function(){this._videoEngine.pause(),this._videoEngine.reset(),this._posterShow(),this._controlsController&&this._controlsController.reset(),this._timeUpdateCounter=0,this._playingEmitted=!1},enterFullScreen:function(){if(this._videoEngine){if(this._containerElzIndex=this._containerEl.style.zIndex,this.dtCanFullscreen){var e=this._wrapperEl,t=(e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen).bind(e);t()}else{this.isFullScreen=!0;var i=this._wrapperEl;for(!this.isState(CeltraPlayerUtils.PAUSED);i&&!i.getAttribute("class").includes("celtra-base-creative-unit");)i=i.parentNode;i.insertBefore(this._wrapperEl,i.firstChild),this._wrapperEl.style.zIndex=CeltraPlayerUtils.ZINDEX_MAX,this.redraw(),this.silentPauseActive=!0,defer(function(){this.silentPauseActive=!1}.bind(this),500),this._initialized&&this._videoEngine.pause()}this._initialized&&this._videoEngine.play(),this.emit("enterfullscreen")}},exitFullScreen:function(){if(this.dtCanFullscreen){var e=document,t=(e.exitFullscreen||e.webkitExitFullscreen||e.mozCancelFullScreen||e.msExitFullscreen).bind(e);t()}else{this.isFullScreen=!1;{!this.isState(CeltraPlayerUtils.PAUSED,CeltraPlayerUtils.ENDED)}this._wrapperEl.style.zIndex="",this._containerEl.style.zIndex=this._containerElzIndex,this._containerEl.appendChild(this._wrapperEl),this.silentPauseActive=!0,defer(function(){this.silentPauseActive=!1}.bind(this),500),this.once("pause",CeltraPlayerUtils.validFor(function(){this.play(),this._muted||defer(this.unMute.bind(this),100)}.bind(this),500))}this.redraw(),this.emit("exitfullscreen")},hide:function(){this._wrapperEl&&(this._wrapperEl.style.display="none")},show:function(){this._wrapperEl&&(this._wrapperEl.style.display="")},destroy:function(){this._videoEngine&&(this._videoEngine.pause(),this._videoEngine.destroy(),this._controlsController&&this._controlsController.destroy());var e=function(){CeltraPlayerUtils&&this._wrapperEl&&CeltraPlayerUtils.removeElements(this._wrapperEl),this._toggleDesktopFSStateHandlers("remove"),this._wrapperEl=null}.bind(this);"undefined"!=typeof TouchEventSimulator?defer(e,100):e(),this.emit("destroy")},getDuration:function(){return this.duration},getCurrentTime:function(){return this._videoEngine?this._videoEngine.getCurrentTime():null},setCurrentTime:function(e){this._videoEngine&&this._videoEngine.setCurrentTime(e)},seekTo:function(e){this.emit("seekto",e),this._seeked||(this._stateBeforeSeek=this.getState(),this.getState()===CeltraPlayerUtils.PLAYING&&this.pause()),this._seeked=!0,this._videoEngine.seekToRatio(e)}}),t.prototype._hasToBeRepeated=function(){return this._repeatede?this._videoControls.addClass("spinner","video-player-spinner-small"):this._videoControls.addClass("spinner","video-player-spinner-big")},reset:function(){this._controlsInitiallyDisabled=!1,this._videoControls.hide("pause","replay"),this._videoControls.show("play"),this._spinnerHide(),defer(function(){this._videoControls.hide("duringPlaySet")}.bind(this),500)},destroy:function(){this._videoControls.destroy()},handleUserInteraction:function(e,i){switch(e){case"vidWrapper":this._changeVisibilityTimed(!0),this._makeControlsDisapear();break;case"wrapper":if(this._videoPlayer._spinnerShown)return void this._changeVisibilityTimed(!0);!this.isVisible||this._videoPlayer.ended||this._spinnerShown||i?this._changeVisibilityTimed(!0):this._videoPlayer.paused?(this._videoPlayer.play(),this.emit("userInteraction",{isUserEngaged:!0})):(this._videoPlayer.pause(),this.emit("userInteraction")),this._makeControlsDisapear();break;case"mute":this._videoPlayer.mute(),this._videoControls.pendingStateOn("mute"),this._makeControlsDisapear(),this.emit("userInteraction");break;case"unMute":this._videoPlayer.unMute(),this._videoControls.pendingStateOn("unMute"),this._makeControlsDisapear(),this.emit("userInteraction",{isUserEngaged:!0});break;case"enterFullScreen":this._videoPlayer.enterFullScreen(),this._makeControlsDisapear(),this.emit("userInteraction",{isUserEngaged:!0});break;case"exitFullScreen":this._videoPlayer.exitFullScreen(),this._makeControlsDisapear(),this.emit("userInteraction");break;case"pause":if(this._controlsInitiallyDisabled)return;this._videoPlayer.pause(),this.emit("userInteraction");break;case"play":if(this._controlsInitiallyDisabled)return;this.emit("userInteraction",{isUserEngaged:!0}),this.emit("playButtonPressed");break;case"replay":this._changeVisibilityTimed(!1),this._videoPlayer.replay(),this.emit("userInteraction",{isUserEngaged:!0});break;case"close":this._videoPlayer.close(),this.emit("userInteraction")}},onVPPlayerSourceLoading:function(){this._spinnerShow()},onVPCanUnmute:function(){},onVPMuted:function(){this._isMuted=!0,this._videoControls.hide("mute"),this._videoControls.show("unMute"),this._videoControls.pendingStateOff("unMute"),this._videoControls.pendingStateOff("mute")},onVPUnmuted:function(){this._isMuted=!1,this._videoControls.hide("unMute"),this._videoControls.show("mute"),this._videoControls.pendingStateOff("unMute"),this._videoControls.pendingStateOff("mute")},onVPPlay:function(){this._videoControls.hideAndShowWrapper(),this._isFirstPlay&&(this._isFirstPlay=!1,this._controlsInitiallyDisabled=!0,this._spinnerShow()),this._changeVisibility(!0),this._videoControls.hide("play")},onVPPlaying:function(){var e=this._opts.autohideTime;this._videoControls.hide("play","pause","replay"),e&&this._changeVisibilityTimed(!1,1e3*e)},onVPPause:function(){this._changeVisibilityTimed(!0),this._spinnerShown||this._videoControls.show("play")},onVPAutoplayRejected:function(){this.reset()},onVPForceMuted:function(){this.onVPMuted()},onVPBuffering:function(){this._spinnerShow(),this._videoControls.hide("play")},onVPEnded:function(){this._changeVisibilityTimed(!1),this._videoControls.hide("play","pause"),this._opts.pauseOnEnd||this._videoControls.show("replay")},onVPProgress:function(e){this._progressRatio=e,this._videoControls.setProgressBarWidth(e)},onVPTimeupdate:function(e){var i=this._videoPlayer.duration,t=i&&e/i||0;this._videoControls.setTimeBarWidth(t),this._controlsInitiallyDisabled&&(this._controlsInitiallyDisabled=!1),this._videoPlayer.paused||(this._videoControls.hide("play"),this._videoControls.hide("pause"),this._videoControls.hide("replay")),this._spinnerHide()},onVPEnterFullscreen:function(){this._videoControls.hideAndShowWrapper(),this._videoControls.hide("enterFullScreen"),this._videoControls.show("exitFullScreen"),this._makeControlsDisapear()},onVPOrientationChange:function(){this._opts.fullscreenLandscapeButtonsHack&&this._videoControls.orientationChange(function(e){this._elements.close.style.bottom=this._elements.exitFullScreen.style.bottom=this._elements.mute.style.bottom=this._elements.unMute.style.bottom=e===CeltraPlayerUtils.LANDSCAPE&&this._videoPlayer.isFullScreen?"26px":""})},onVPExitFullscreen:function(){this._videoControls.hideAndShowWrapper(),this._videoControls.hide("exitFullScreen"),this._videoControls.show("enterFullScreen"),this._makeControlsDisapear()},onVPSeekto:function(e){this._videoControls.setTimeBarWidth(e)},_changeVisibility:function(e){return this._opts.controlsHidden?(this.isVisible=!0,void this._videoControls.hide("duringPlaySet")):void(e?(this._videoControls.show("duringPlaySet"),this._videoPlayer.isDesktop&&this._cursorHidden&&(this._videoControls.showCursor(this._videoPlayer.getWrapperElement()),this._cursorHidden=!1),this.isVisible=!0):(this._videoControls.hide("duringPlaySet"),this._videoPlayer.isDesktop&&this._videoPlayer.isFullScreen&&(this._videoControls.hideCursor(this._videoPlayer.getWrapperElement()),this._cursorHidden=!0),this.isVisible=!1,this._videoPlayer.isDesktop&&(this._videoControls.hasMouseMoved=!0)))},_changeVisibilityTimed:function(e,i){clearTimeout(this._changeVisibilityTimeout),i?this._changeVisibilityTimeout=setTimeout(this._changeVisibility.bind(this,e),i):this._changeVisibility(e)},_makeControlsDisapear:function(){var e=this._opts.autohideTime;e&&this._changeVisibilityTimed(!1,1e3*e)},_spinnerHide:function(){this._spinnerShown&&(this._spinnerShown=!1,this._videoControls.hide("spinner"))},_spinnerShow:function(){!this._spinnerShown&&this._opts.canShowSpinner&&(this._spinnerShown=!0,defer(function(){this._spinnerShown&&(this._videoControls.hide("play"),this._videoControls.show("spinner"))}.bind(this),300))}}),this.BasicVideoControlsController=e}();;
!function(){var t="50px",e=function(t){this._container=null,this._userInteractionHandler=t,this.onTapHandler=CeltraPlayerUtils.deduplicate(this.onTapHandler,400,this),this.hasMouseMoved=!1};extend(e.prototype,EventEmitter),e.TEMPLATE=['','
','
','
','
','
','
','
","
",'
","
"],extend(e.prototype,{render:function(i,n){var o=n.isMasterVideo?[]:["play","replay"];if(!this._container){var a={};CeltraPlayerUtils.createDom(i,e.TEMPLATE,{desktop:windows("10")?"video-controls-desktop ie-click-event":desktop()?"video-controls-desktop":""},this._getWrapper(a)),this._container=a.wrapper,n.isMasterVideo&&this.hide("outOfPlaySet"),this._container.querySelector("[data-bind=progressBar]").style.backgroundColor=n.progressbarColour,this._container.querySelector("[data-bind=timeBar]").style.backgroundColor=n.progressbarColour;var r="undefined"!=typeof creative?creative:window.creative;if(r){var s="MRAIDAdapter"===r.adapter.constructor.name;"crop"===n.fitting&&s&&(this._container.querySelector("[data-bind=exitFullScreen]").style.top=t)}o.forEach(function(t){if(n[t]){var e=n[t],i=this._getElements(t)[0];removeClass(i,"center-button"),addClass(i,"custom-button"),i.innerHTML=''}}.bind(this)),this._container.addEventListener("tap",this.onTapHandler)}return this._container},show:function(){CeltraPlayerUtils.show.apply(null,this._getElements.apply(this,arguments))},hide:function(){CeltraPlayerUtils.hide.apply(null,this._getElements.apply(this,arguments))},showCursor:function(t){CeltraPlayerUtils.showCursor([t])},hideCursor:function(t){CeltraPlayerUtils.hideCursor([t])},setProgressBarWidth:function(t){t=Math.min(t,1),this._container&&this._container.querySelector("[data-bind=progressBar]")&&(this._container.querySelector("[data-bind=progressBar]").style.width=100*t+"%")},setTimeBarWidth:function(t){t=Math.min(t,1),this._container&&this._container.querySelector("[data-bind=timeBar]")&&(this._container.querySelector("[data-bind=timeBar]").style.width=100*t+"%")},hideAndShowWrapper:function(){this.hide("wrapper"),defer(function(){this.show("wrapper")}.bind(this))},disableMuteUnmuteControls:function(){this._getElements("mute")[0].innerHTML="",this._getElements("unMute")[0].innerHTML=""},pendingStateOn:function(t){addClass(this._getElements(t)[0],"video-controls-pending")},pendingStateOff:function(t){this._container&&removeClass(this._getElements(t)[0],"video-controls-pending")},addClass:function(t,e){var i=this._getElements(t)[0];i&&addClass(i,e)},removeClass:function(t,e){var i=this._getElements(t)[0];i&&removeClass(i,e)},orientationChange:function(t){t()},onTapHandler:function(t){t.stopPropagation();var e=t.target.getAttribute("data-bind");e&&this._userInteractionHandler(e)},setDTMouseMoveHandler:function(t){t.addEventListener("mousemove",function(e){e.stopPropagation();var i=e.target,n=i!==t?i.getAttribute("data-bind"):"vidWrapper";this.hasMouseMoved?this.hasMouseMoved=!1:("wrapper"===n||"vidWrapper"===n)&&this._userInteractionHandler(n,!0)}.bind(this))},_getWrapper:function(t){return function(e){var i=e.getAttribute("data-bind");i&&(t[i]=e)}},_getElements:function(){if(this._container){for(var t=[],e=null,i=0;i','','Powered by Celtra
','",""],t.prototype.render=function(s,e){if(!this._container){this.elements={},CeltraPlayerUtils.createDom(s,t.TEMPLATE,{desktop:celtra.windows("10")?"video-controls-desktop ie-click-event":celtra.desktop()?"video-controls-desktop":""},this._getWrapper(this.elements)),this._container=this.elements.wrapper,e.enableVerticalVideoUIOffset&&addClass(this._container,"vertical-UI-offset"),e.radarBoxToEdge&&(addClass(this.elements.inner_top_left_box,"align_to_left"),addClass(this.elements.top_left_box,"disable")),e.soundBoxToEdge&&(addClass(this.elements.inner_bottom_right_box,"align_to_right"),addClass(this.elements.bottom_right_box,"disable")),"dark"===e.uiTheme&&addClass(this._container,"dark-theme");var i=["custom_play","custom_replay"];i.forEach(function(t){if(e.customIcons&&e.customIcons[t]){var s=e.customIcons[t],i=this._getElements(t)[0];addClass(i,"custom-button"),i.innerHTML=''}}.bind(this)),this._container.addEventListener("tap",this.onTapHandler)}return this._container},t.prototype.setRadarInitialLongitude=function(t){this.elements.radar_longitude.style.transform="translate3d(-50%, -50%, 0) rotate("+(90+t)+"deg)"},t.prototype.setRadarOrientation=function(t){this.elements.radar_orientation.style.transform="translate3d(-50%, -50%, 0) rotate("+t+"deg)"},t.prototype._removeAnimationClasses=function(){removeClass(this.elements.play,"hide"),removeClass(this.elements.spinner,"hide")},t.prototype.switchToInFullscreenMode=function(){this._removeAnimationClasses(),removeClass(this.elements.topright_arrow,"toprightANIMA"),removeClass(this.elements.botleft_arrow,"botleftANIMA"),addClass(this.elements.topright_arrow,"toprightANIMAout"),addClass(this.elements.botleft_arrow,"botleftANIMAout")},t.prototype.switchToInlineMode=function(){this._removeAnimationClasses(),removeClass(this.elements.topright_arrow,"toprightANIMAout"),removeClass(this.elements.botleft_arrow,"botleftANIMAout"),addClass(this.elements.topright_arrow,"toprightANIMA"),addClass(this.elements.botleft_arrow,"botleftANIMA")},t.prototype.showMuteButton=function(){removeClass(this.elements.mute_icon,"switch_on"),removeClass(this.elements.mute_icon,"switch_off"),removeClass(this.elements.unmute_icon,"switch_on"),removeClass(this.elements.unmute_icon,"switch_off"),addClass(this.elements.mute_icon,"switch_on"),addClass(this.elements.unmute_icon,"switch_off")},t.prototype.showUnmuteButton=function(){removeClass(this.elements.mute_icon,"switch_on"),removeClass(this.elements.mute_icon,"switch_off"),removeClass(this.elements.unmute_icon,"switch_on"),removeClass(this.elements.unmute_icon,"switch_off"),addClass(this.elements.mute_icon,"switch_off"),addClass(this.elements.unmute_icon,"switch_on")},t.prototype.startCountdown=function(t,s){this._countdown||(this._countdown=CountdownProvider.create(!0,this.elements.countdown,t,"countdown",{countdownType:"normal",bgCircleColor:"dark"===s?"rgba(255,255,255,1)":"rgba(0,0,0,.4)",barColor:"dark"===s?"rgba(0,0,0,.4)":"rgba(255,255,255,1)"}),this._countdown.show())},t.prototype.updateCountdown=function(t){this._countdown&&this._countdown.setCurrentTime(t)},t.prototype.show=function(){for(var t,s=this._getElements.apply(this,arguments),e=0;e=this.fileLength-1||this._getChunkLength(this._requestNumber)>0&&(this._loading=!0,this._requestBytes(this._getChunkLength(this._requestNumber),this._onLoad),this._requestNumber++)},e.prototype._requestBytes=function(e){var t=this.nextFrom,n=this.fileLength?Math.min(this.nextFrom+e,this.fileLength):this.nextFrom+e,i=this._xhr=new XMLHttpRequest;this.corsLengthHack&&(this.from=t,this.to=n),i.open("GET",this._src,!0),this.skipInternalCacheHack&&i.setRequestHeader("Cache-control","no-cache"),i.setRequestHeader("Range","bytes="+(t||0)+"-"+(n||"")),i.responseType="arraybuffer",i.onload=this._onLoad.bind(this),this.nextFrom=n,i.send(),this._lastRequestTime=Date.now()},e.prototype._onLoad=function(e){this._loading=!1,this._xhr=null;var t=e.target;if(t.status>=200&&t.status<400){var n=this._getContentRangeParts(t),i=t.response;this.fileLength=n.fileLength,this.emit("data",{data:new Uint8Array(i,0,Math.min(n.receivedTo,n.fileLength)-n.receivedFrom),receivedFrom:n.receivedFrom,receivedTo:n.receivedTo,fileLength:n.fileLength}),n.receivedTo>=n.fileLength-1?this.emit("loadend"):this.load()}else this.emit("error",t.status)},e.prototype._getContentRangeParts=function(e){if(this.corsLengthHack)return contentLength=e.getResponseHeader("Content-Type").split(";")[1],{receivedFrom:this.from,receivedTo:this.to,fileLength:parseInt(contentLength,10)};var t=e.getResponseHeader("Content-Range"),n=/(\d+)-(\d+)\/(\d+)$/.exec(t);return{receivedFrom:parseInt(n[1],10),receivedTo:parseInt(n[2],10),fileLength:parseInt(n[3],10)}},e.prototype.destroy=function(){clearTimeout(this._requestByteHandle),this._xhr&&this._xhr.abort(),this._xhr=null},window.NetStream=e}();;
!function(){var t=function(t,e){this._opts=e||{},this.buffer={writePos:0,bytes:null},this.fileLength=0,this.receivedTo=0,this.doneBuffering=!1,this.onLoad=this.onLoad.bind(this),t&&(t.on("data",this.onLoad),t.on("loadend",function(){this._opts.onLoadend&&this._opts.onLoadend(),this.doneBuffering=!0,this.emit("loadend")}.bind(this)))};extend(t.prototype,EventEmitter),t.prototype.onLoad=function(t){if(this.fileLength=t.fileLength,this.receivedTo=t.receivedTo,!this.buffer.bytes){var e=new Uint8Array(t.fileLength);this.buffer.bytes=e.subarray(0),this.buffer.writePos=0}this.buffer.bytes.set(t.data,this.buffer.writePos),this.buffer.writePos+=t.data.byteLength,this.emit("data",t)},t.prototype.getAllData=function(){this.receivedTo>0&&this.emit("data",{data:this.buffer.bytes,fileLength:this.fileLength,receivedFrom:0,receivedTo:this.receivedTo})},window.Accumulator=t}();;
!function(){function e(e,t,n){e.setAttribute("x-celtra-media",""),n.playsInline&&(e.setAttribute("webkit-playsinline",""),e.setAttribute("playsinline",""),n.startMuted&&(e.muted=!0)),n.crossOrigin&&(e.crossOrigin="anonymous"),e.src=t,e.preload=n.preload?"auto":"none"}var t=function(t,n){var r={playsInline:!1,maxTimeupdatesPerSecond:15},i=merge({},r,n.options);i.startMuted=!!n.startMuted,i.crossOrigin=!!n.crossOrigin;var o=!1,u=i.videoElement,a=!!u,d=a?u:document.createElement("video");e(d,t,i);var s={};extend(s,EventEmitter),s.startMuted=i.startMuted;for(var c=function(e){s.emit(e.type,e)}.bind(this),l=["loadedmetadata","durationchange","progress","canplay","play","playing","pause","ended","buffering","endbuffering","muted","unmuted","seeking","seeked","exitfullscreen","webkitendfullscreen","error","canunmute","custominfo","playersourceloading"],m=l.length-1;m>=0;m--)d.addEventListener(l[m],c);var f=d.volume,g=function(){f!==d.volume&&(f=d.volume,s.emit("volumechange",f))},p=0,v=0,y=function(){var e=s.currentTime,t=v%Math.round(60/i.maxTimeupdatesPerSecond)===0;t&&s.isPlaying&e!==p&&(p=e,s.emit("timeupdate",e)),v++};Ticker.frame(g),Ticker.frame(y),d.addEventListener("playing",function k(){o=!0,d.muted=s.startMuted,d.removeEventListener("playing",k)},!1),Object.defineProperties(s,{currentTime:{get:function(){return this.getCurrentTime()},set:function(e){this.setCurrentTime(e)}},reportsSeeking:{get:function(){return!!d.reportsSeeking}},buffered:{get:function(){return d.buffered}},duration:{get:function(){return d.duration}},muted:{get:function(){return d.muted},set:function(e){d.muted=e}},isPlaying:{get:function(){return!(!(this.getCurrentTime()>0)||d.paused||d.ended)}},paused:{get:function(){return d.paused}}}),a||(d.videoWidth=i.videoWidth,d.videoHeight=i.videoHeight),s.continuePlaying=function(){d.play()}.bind(this),s.render=function(){!a&&android("4.0","4.2")&&(d.style.height="auto",d.style.minHeight="auto");try{d.load()}catch(e){}return d};var h=d.play?d.play.bind(d):noop,b=d.pause?d.pause.bind(d):noop,E=!0,T=function(){var e=h();void 0!==e&&e["catch"](function(e){s.emit("autoplayrejected"),"NotAllowedError"===e.name?(Logger("Html5VideoEngine").error("Video Engine - NotAllowedError : ",e),s.startMuted=!0,d.muted=!0,s.emit("forcemuted"),E&&(E=!1,T())):"AbortError"===e.name&&Logger("Html5VideoEngine").error("Video Engine - AbortError : ",e)})};return s.mute=function(){o?d.muted=!0:s.startMuted=!0},s.unMute=function(){o?d.muted=!1:s.startMuted=!1},s.setCurrentTime=function(e){s.isReady()&&(d.currentTime=e)},s.getCurrentTime=function(){return s.isReady()&&d.currentTime>0?d.currentTime:0},s.isReady=function(){return d&&0!==d.readyState},s.play=function(){celtra.webkit("534.30")||celtra.webkit("537.36")||fakeclick(function(){T()}.bind(this)),defer(function(){T()}.bind(this)),CeltraPlayerUtils.isNode(d)&&d.addEventListener("progress",d.continuePlaying)},s.pause=function(){CeltraPlayerUtils.isNode(d)&&d.removeEventListener("progress",d.continuePlaying,{},{}),b()},s.destroy=function(){b();for(var e=l.length-1;e>=0;e--)d.removeEventListener(l[e],c);a||CeltraPlayerUtils.removeElements(d),Ticker.removeFrame(g),Ticker.removeFrame(y)},s};this.Html5VideoEngine=t}();;
!function(e){function t(e,t,s){return Object.create(i).init(e,t,!!s)}var i=Object.create(EventEmitter),s=window.AudioContext||window.webkitAudioContext,o=null,n=!1,u=!1;extend(i,{init:function(e,t,i){return this._sourceNode=null,this._buffer=null,this._bufferSilence=null,this._encodedBuffer=null,this._emitTimeUpdateInterval=null,this._sourceUrl=e,this._paused=!0,this._pausedAt=0,this._timeDiff=0,this._loadStatus="unstarted",this.loop=!!i,t&&this.load(),this},load:function(){if("unstarted"===this._loadStatus){this._loadStatus="pending";var e=new XMLHttpRequest;e.open("GET",this._sourceUrl,!0),e.responseType="arraybuffer",e.onload=function(){this._encodedBuffer=e.response,o&&this._decodeAudioData()}.bind(this),e.send()}},unlock:function(){n||(this._iosHack(),this._createAudioContext(),this._createNodeAndPlayFrom(this._bufferSilence,0,this.loop))},playAudio:function(e){this._iosHack(),this._createAudioContext(),this.load();var e=null==e?this._pausedAt:e;this.pause(),this._timeDiff=o.currentTime-e,this._paused=!this._buffer,this._createNodeAndPlayFrom(this._buffer||this._bufferSilence,e,this.loop),this._emitTimeUpdate(),n||setTimeout(function(){if(this._sourceNode){var e=this._sourceNode.playbackState===this._sourceNode.PLAYING_STATE,t=this._sourceNode.playbackState===this._sourceNode.FINISHED_STATE,i=e||t;n=n||!!this._buffer&&i}}.bind(this),0)},pause:function(){clearInterval(this._emitTimeUpdateInterval),this._pausedAt=this.currentTime,this._paused=!0,this._clearSourceNode()},destroy:function(){this.pause(),"function"==typeof o.close&&o.close(),this._sourceNode=null,this._buffer=null,this._bufferSilence=null,this._encodedBuffer=null},_iosHack:function(){ios()&&!u&&(this._createAudioContext(),this._createNodeAndPlayFrom(this._bufferSilence,0,this.loop),"function"==typeof o.close&&(o.close(),o=null),this._createAudioContext(),u=!0)},_createAudioContext:function(){o||(o=new s,this._bufferSilence=o.createBuffer(1,1,o.sampleRate),this._encodedBuffer&&!this._buffer&&this._decodeAudioData())},_createNodeAndPlayFrom:function(e,t,i){this._clearSourceNode(),this._sourceNode=o.createBufferSource(),this._sourceNode.connect(o.destination),this._sourceNode.buffer=e,this._sourceNode.loop=i,"function"==typeof this._sourceNode.noteGrainOn?this._sourceNode.noteGrainOn(0,t,e.duration-t):"function"==typeof this._sourceNode.start?this._sourceNode.start(0,t):this._sourceNode.noteOn(0,t)},_clearSourceNode:function(){if(this._sourceNode){try{"function"==typeof this._sourceNode.stop?this._sourceNode.stop(0):this._sourceNode.noteOff(0)}catch(e){}this._sourceNode.disconnect(),this._sourceNode=null}},_emitTimeUpdate:function(){this.paused||this._buffer&&this.currentTime>=this._buffer.duration?clearInterval(this._emitTimeUpdateInterval):this._emitTimeUpdateInterval=setInterval(this.emit.bind(this,"timeupdate"),250)},_decodeAudioData:function(){o.decodeAudioData(this._encodedBuffer,function(e){this._buffer=e,this._loadStatus="loaded",this.emit("canplay"),this.emit("canplaythrough")}.bind(this))}}),Object.defineProperties(i,{paused:{get:function(){return this._paused}},ended:{get:function(){return!1}},ready:{get:function(){return"loaded"===this._loadStatus}},playedBefore:{get:function(){return n}},currentTime:{get:function(){return this._paused?this._pausedAt:o.currentTime-this._timeDiff},set:function(e){this._pausedAt=e,"loaded"!==this._loadStatus||this._paused||(this.pause(),this.playAudio(e))}}}),e.WebAudioEngine=t}(this);;
!function(){var e=.3,n=function(n,t){if("undefined"==typeof Audio)return null;var r=new Audio;r.isUnlocked=!1,t?(r.preload="auto",r.src=n,r.start=noop):(r.preload="none",r.start=function(){r.src=n,r.start=noop}),r.ready=!1;var o=function(){r.ready=!0},i=function(){r.buffered/r.duration>e&&o()};return r.addEventListener("canplay",o),r.addEventListener("canplaythrough",o),r.addEventListener("progress",i),r.unlock=noop,r.on=r.addEventListener,r.off=r.removeEventListener,r.playedBefore=!1,r.unlock=function(){this.isUnlocked||this.playedBefore||(fakeclick(function(){celtra.webkit("537.36")&&r.play(),r.pause()}),this.isUnlocked=!0)},r.playFrom=function(e){r.start(),r.ready&&(fakeclick(function(){r.play()}),void 0!==e&&(r.currentTime=e,r.playedBefore=!0))},r.destroy=function(){this.pause(),this.src=null,r.removeEventListener("progress",i),r.removeEventListener("canplay",o),r.removeEventListener("canplaythrough",o)},r.setAttribute("x-celtra-media",""),r};this.Html5AudioEngine=n}();;
!function(){var e={netStreamOpts:{},preload:!1},t={loadmetadata:"onLoadMetaData",durationchange:"onDurationChange",progress:"onProgress",buffering:"onBuffering",endbuffering:"onEndBuffering",canplay:"onCanPlay",play:"onPlay",playing:"onPlaying",pause:"onPause",seeking:"onSeeking",seeked:"onSeeked",ended:"onEnded",custominfo:"onCustomInfo",timeupdate:"onTimeUpdate"},i=function(t,i,n){this._opts=merge(e,n.options),this._opts._isTeaser=n.isTeaser||!1,this._srcProvider=t,this._engineType=i,this._isReady=!1,this._listenersAttached=!1,this._playAttempted=!1,this._pausedBeforePlayAttempted=!1,creative.waitingOnPlayerSource=!!creative.waitingOnPlayerSource,this.onResourceLoad=null,this.reset(),this.duration=0,this.buffered=0,this._canSync=!0,this._preload=this._opts.preload};extend(i.prototype,StatefulEventEmitter),i.prototype.reportsSeeking=!0,Object.defineProperty(i.prototype,"paused",{get:function(){return!(!this._decoder||!this._decoder.paused)}}),Object.defineProperty(i.prototype,"duration",{get:function(){return this._decoder&&this._decoder.duration||0}}),Object.defineProperty(i.prototype,"currentTime",{get:function(){return this._decoder&&this._decoder.currentTime||0},set:function(e){this._decoder&&this._decoder.setCurrentTime(e)}});var n=i.prototype;i.SOUND_UNINITIALIZED=0,i.SOUND_PLAYING=1,i.SOUND_PAUSED=2,i.SOUND_ENDED=3,i.SOUND_ERROR=4,n.render=function(e){return this.div||(this.div=e.createElement("div"),this.div.className="canvasContainer"),this._createEngines(),this.div},n._createAvailableEngine=function(){this.emit("playersourceloading"),this._netStream||(this._netStream=new NetStream(this._srcProvider,function(e){return this._playAttempted?393216:0==e?262144:0}.bind(this),this._opts.netStreamOpts),this._accumulator=new Accumulator(this._netStream,this._opts),this._preload&&this._netStream.load());var e=creative.resourceUrl+("ogv"===this._engineType?"runner-min/FullscreenVideoPlayer/OgvPlayer.js":"runner-min/FullscreenVideoPlayer/Mpeg1Player.js"),t="ogv"==this._engineType&&"function"==typeof OgvDecoder&&"function"==typeof OgvContainerDecoder?!0:"mpeg1"==this._engineType&&"function"==typeof Mpeg1Decoder&&"function"==typeof ContainerDecoder?!0:!1;t?(this._containerDecoder="ogv"==this._engineType?new OgvContainerDecoder(this._accumulator,this._opts):new ContainerDecoder(this._accumulator),this._decoder="ogv"==this._engineType?new OgvDecoder(this._containerDecoder,this.div):new Mpeg1Decoder(this._containerDecoder,this.div,this._opts),this.attachListeners(),this.onResourceLoad&&this.onResourceLoad()):creative.waitingOnPlayerSource||(creative.waitingOnPlayerSource=!0,loadJS(e,function(){creative.waitingOnPlayerSource=!1,this._pausedBeforePlayAttempted||this._createAvailableEngine()}.bind(this)))},n._createEngines=function(){this._decoder||(this._pausedBeforePlayAttempted=!1,this._createAvailableEngine())},n._startPlaying=function(){this._playAttempted||(this._playAttempted=!0),this._netStream.load(),this.emit("userplayed"),this._decoder.play()},n._processListeners=function(e,t){CeltraPlayerUtils.forEach(e,function(e,i){t(e,this[i].bind(this))},this)},n.attachListeners=function(){if(!this._listenersAttached){var e=this._decoder.addListener.bind(this._decoder);this._processListeners(t,e),this._listenersAttached=!0}},n.removeListeners=function(){if(this._listenersAttached){var e=this._decoder.removeListener.bind(this._decoder);this._processListeners(t,e),this._listenersAttached=!1}},n.onLoadMetaData=function(){this.emit("loadmetadata")},n.onDurationChange=function(){this._isReady=!0,this.emit("durationchange")},n.onProgress=function(){this.buffered=this._decoder.buffered,this.emit("progress")},n.onBuffering=function(){this.emit("buffering")},n.onEndBuffering=function(){this.emit("endbuffering")},n.onCanPlay=function(){this.emit("canplay")},n.onPlay=function(){this.emit("play")},n.onPlaying=function(){this.emit("playing")},n.onPause=function(){this.emit("pause")},n.onSeeking=function(){this.emit("seeking")},n.onSeeked=function(){this.emit("seeked")},n.onEnded=function(){this.emit("ended")},n.onCustomInfo=function(e){this.emit("custominfo",e)},n.onTimeUpdate=function(){this.emit("timeupdate",this.currentTime)},n.onBeforeResize=function(e){this._decoder&&this._decoder.isState(CeltraPlayerUtils.PLAYING)&&(this._decoder.pause(),defer(function(){this._decoder&&this._decoder.play()}.bind(this),1500)),e(!0)},n.destroy=function(){this._netStream&&this._netStream.destroy(),this._netStream=null,this._containerDecoder&&this._containerDecoder.destroy(),this._containerDecoder=null,this.removeListeners(),this._decoder&&this._decoder.destroy(),this._decoder=null},n.play=function(){creative.waitingOnPlayerSource&&this.emit("playersourceloading",!0),this.onResourceLoad=this._startPlaying,this._createEngines(),this._decoder&&this._startPlaying()},n.pause=function(){this._decoder?this._decoder.pause():this._pausedBeforePlayAttempted=!0},n.getVideoWidth=function(){return this._decoder?this._decoder.width:0/0},n.getVideoHeight=function(){return this._decoder?this._decoder.height:0/0},n.getCurrentTime=function(){return this.currentTime},n.setCurrentTime=function(e){this.currentTime=e},n.seekToRatio=function(e){e=Math.min(this.buffered/this.duration-.1,e),e=Math.min(.95,Math.max(0,e)),this._decoder.seekTo(e)},n.reset=function(){this._decoder&&this._decoder.reset(),this.currentTime=0,this._playAttempted=!1},n.isReady=function(){return this._isReady},n.getFPS=function(){return this._decoder.getFPS()},window.JsVideoEngine=i}();;
!function(){var i=120,t=.6,e=1,s=3e3,o=2,d={init:function(i,t,e){this.onPause=this.onPause.bind(this),this.onEnded=this.onEnded.bind(this),this.onPlay=this.onPlay.bind(this),this.onReplayed=this.onReplayed.bind(this),this.onMuted=this.onMuted.bind(this),this.onUnMuted=this.onUnMuted.bind(this),this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onFirstPlay=this.onFirstPlay.bind(this),this.destroy=this.destroy.bind(this),this.video=i,this.audio=t,this.muted=e,this._lastSyncTime=0,this.video.once("destroy",this.destroy),this.video.once("userplayed",this.onFirstPlay),this.video.on("muted",this.onMuted),this.video.on("unmuted",this.onUnMuted),this.video.on("replayed",this.onReplayed)},attach:function(){this.video.on("pause",this.onPause),this.video.on("ended",this.onEnded),this.video.on("userpaused",this.onPause),this.video.on("seeking",this.onPause),this.video.on("play",this.onPlay),this.video.on("playing",this.onPlay),this.video.on("seeked",this.onPlay),this.video.on("timeupdate",this.onTimeUpdate)},destroy:function(){this.audio.pause(),this.video.off("userplayed",this.onFirstPlayed),this.video.off("userpaused",this.onPause),this.video.off("pause",this.onPause),this.video.off("seeking",this.onPause),this.video.off("ended",this.onEnded),this.video.off("play",this.onPlay),this.video.off("playing",this.onPlay),this.video.off("seeked",this.onPlay),this.video.off("muted",this.onMuted),this.video.off("unmuted",this.onUnMuted),this.video.off("timeupdate",this.onTimeUpdate),this.video.off("replayed",this.onReplayed)},onFirstPlay:function(){if(this.video.off("userplayed",this.onFirstPlay),this.audio.start(),this.muted||this.audio.ready)fakeclick(function(){this.audio.load()}.bind(this)),this.attach();else{var t=!1,e=!1,s=celtra.webkit("534.30"),o=function(){var d=isMediaPlaying(this.video),n=isMediaPlaying(this.audio);if(n&&d||n&&e||d&&t||t&&e||this.audio.ready){this.attach(),this.video.silentPlay();try{this.video.currentTime=this.audio.currentTime}catch(h){}}else d&&!n&&(this.video.silentPause(),e=!0),!n||d||s||(this.audio.pause(),t=!0),defer(o.bind(this),i)}.bind(this);s?this.audio.playFrom():fakeclick(function(){this.audio.load()}.bind(this)),defer(o,500)}},onPause:function(){this.audio.pause()},onEnded:function(){this.audio.pause(),this.audio.ready&&(this.audio.currentTime=0)},onPlay:function(){this.muted||this.audio.playFrom()},onReplayed:function(){this.muted||(this.audio.playFrom(0),this._lastSyncTime=Date.now())},onMuted:function(){this.muted=!0,this.audio.pause()},onUnMuted:function(){this.muted=!1,isMediaPlaying(this.video)&&this.audio.ready?this.audio.playFrom(this.video.currentTime):this.audio.unlock()},onTimeUpdate:function(){var i=isMediaPlaying(this.audio);if(!(!i&&this.audio.playedBefore||this.muted)){if(this.audio.paused&&!this.muted&&!this.video.paused)return void this.audio.playFrom(this.video.currentTime);var d=this.video.currentTime-this.audio.currentTime,n=Math.abs(d);if(!(t>n||this.video.currentTimed&&o>n)try{this.video.currentTime=this.audio.currentTime}catch(h){}else try{this.audio.currentTime=this.video.currentTime+t/2}catch(h){}}}};this.AVSyncAudio=d}();;
!function(){var i=.6,t=1,e=3e3,s=2,o={init:function(i,t,e){this.onPause=this.onPause.bind(this),this.onEnded=this.onEnded.bind(this),this.onMuted=this.onMuted.bind(this),this.onUnMuted=this.onUnMuted.bind(this),this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onFirstPlay=this.onFirstPlay.bind(this),this.destroy=this.destroy.bind(this),this.video=i,this.audio=t,this.muted=e,this._lastSyncTime=0,i.once("destroy",this.destroy),i.once("userplayed",this.onFirstPlay),this.video.on("muted",this.onMuted),this.video.on("unmuted",this.onUnMuted)},attach:function(){this.video.on("pause",this.onPause),this.video.on("ended",this.onEnded),this.video.on("userpaused",this.onPause),this.video.on("seeking",this.onPause),this.video.on("timeupdate",this.onTimeUpdate)},destroy:function(){this.audio.pause(),this.video.off("userplayed",this.onFirstPlayed),this.video.off("pause",this.onPause),this.video.off("userpaused",this.onPause),this.video.off("seeking",this.onPause),this.video.off("ended",this.onEnded),this.video.off("muted",this.onMuted),this.video.off("unmuted",this.onUnMuted),this.video.off("timeupdate",this.onTimeUpdate)},onFirstPlay:function(){this.video.off("userplayed",this.onFirstPlay);var i=!0,t=this.video,e=celtra.webkit("534.30"),s=function(){i&&!e&&t.silentPause()};this.muted||this.audio.ready?(this.audio.load(),this.attach()):(this.video.once("canplay",s),this.video.once("playing",s),this.video.once("timeupdate",s),this.audio.once("canplaythrough",function(){i=!1,this.video.off("canplay",s),this.video.off("playing",s),this.video.off("timeupdate",s),isMediaPlaying(this.video)||this.video.silentPlay(),!isMediaPlaying(this.audio)&&android()&&this.audio.playAudio(),this.attach()}.bind(this)),this.audio.load())},onPause:function(){this.audio.pause()},onEnded:function(){this.audio.pause(),this.audio.currentTime=0},onMuted:function(){this.muted=!0,this.audio.pause()},onUnMuted:function(){this.muted=!1,isMediaPlaying(this.video)?this.audio.playAudio(this.video.currentTime):this.audio.unlock()},onTimeUpdate:function(){if(!this.muted){if(this.audio.paused&&!this.video.paused)return void this.audio.playAudio(this.video.currentTime);var o=this.video.currentTime-this.audio.currentTime,d=Math.abs(o);if(!(i>d||this.video.currentTimeo&&s>d)try{this.video.currentTime=this.audio.currentTime}catch(n){}else try{this.audio.currentTime=this.video.currentTime}catch(n){}}}};this.AVSyncWebAudio=o}();;
var CuePointObserver={init:function(t){return this._video=t,this._VIDEO_START_TIME=-1,this._attached=!1,this._lastTriggeredTime=this._VIDEO_START_TIME,this._observeCuePoints=this._observeCuePoints.bind(this),this._observe=this._observe.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this},_observe:function(t){if(t.time<=this._lastTriggeredTime)return!1;if(this._video.newVideoTrackingExperiment){if(!this._customTriggers){var i=this._video.getDuration();this._customTriggers=[{name:"exp_videoStart_CuePoint",time:0},{name:"exp_videoFirstQuartile_CuePoint",time:.25*i},{name:"exp_videoMidpoint_CuePoint",time:.5*i},{name:"exp_videoThirdQuartile_CuePoint",time:.75*i},{name:"exp_videoComplete_CuePoint",time:i-.5}]}var e=this._video._player.getCurrentTime();this._customTriggers.length>0&&e>=this._customTriggers[0].time&&this._video._videoContext&&(this._video._videoContext.track({name:this._customTriggers[0].name,position:e}),this._customTriggers.splice(0,1))}var s=this._video._player.getCurrentTime()>=t.time;return s&&(this._lastTriggeredTime=t.time),s},_observeCuePoints:function(){this._video._player&&this._video.fireTriggers("videoCuepoint",this._observe)},attach:function(){this._attached||(this._attached=!0,Ticker.frame(this._observeCuePoints,"update"))},detach:function(){this._attached&&(this._attached=!1,Ticker.removeFrame(this._observeCuePoints,"update"))},start:function(){this.attach()},stop:function(t){this.detach(),t&&(this._lastTriggeredTime=this._VIDEO_START_TIME)}};;
!function(t){function e(t,e,s,n,r){return t?Object.create(i).init(e,s,n,r):{show:noop,hide:noop,setCurrentTime:noop,destroy:noop}}var i={name:"Countdown",init:function(t,e,i,s){if(this._duration=e,this._displayTime=null,this._mode=i,this._opts=s||{},this._countdownType=s.countdownType,-1===["kinetic","countdown"].indexOf(this._mode))throw this._mode+" is not available as a mode for Countdown component!";"kinetic"===this._mode&&(this._duration=.95*this._duration);var n="undefined"==typeof InstaAdUtility?celtra.isHighDensityDisplay():InstaAdUtility.isHighDensityDisplay,r=celtra.desktop()&&!n,a=celtra.desktop()&&n,h=celtra.desktop()&&celtra.gecko();switch(this._retinaFactor=r?1:a||h?2:4,this._countdownType){case"small":this._fontSize=0,this._size=26*this._retinaFactor,this._barWidth=2*this._retinaFactor;break;case"normal":this._fontSize=13*this._retinaFactor,this._size=32*this._retinaFactor,this._barWidth=2*this._retinaFactor;break;case"big":this._fontSize=14*this._retinaFactor,this._size=40*this._retinaFactor,this._barWidth=2.5*this._retinaFactor}return this._halfSize=this._size/2,this._barColor=this._opts.barColor||"rgba(255, 255, 255, 1)",this._bgCircleColor=this._opts.bgCircleColor||"rgba(0, 0, 0, 0.08)",this._circ=2*Math.PI,this._quart=Math.PI/2,this._radius=.5*this._size,this._radiusCountdown=.5*(this._size-4*this._barWidth),this._barPercentage=0,this._kineticBarSpeed=.01,this._introTransitionEnabled=this._opts.introTransitionEnabled||!1,this._opacity=null,this.node=t.appendChild(this._createCountdown()),this._offscreenCanvas=document.createElement("canvas"),this._offscreenContext=this._offscreenCanvas.getContext("2d"),this._state=new StateObject({show:null}),this._time=new StateObject({currentTime:0}),this._update=this._update.bind(this),this._render=this._render.bind(this),Ticker.frame(this._update,"update"),Ticker.frame(this._render,"render"),this.setCurrentTime(0),this},destroy:function(){Ticker.removeFrame(this._update,"update"),Ticker.removeFrame(this._render,"render"),this._offscreenCanvas=null,this._offscreenContext=null,this._prebufferedBg=null},_createCountdown:function(){var t=document.createElement("div"),e=document.createElement("canvas"),i=document.createElement("div");this._text=document.createElement("div"),this._ctx=e.getContext("2d"),addClass(t,"celtra-countdown"),this._opts.cssClass&&addClass(t,this._opts.cssClass),"kinetic"===this._mode&&addClass(t,"quick-transition"),addClass(e,"celtra-countdown-canvas"),addClass(i,"celtra-countdown-text-wrapper"),i.style.fontSize=this._fontSize+"px",e.setAttribute("width",this._size+"px"),e.setAttribute("height",this._size+"px"),t.appendChild(e),i.style.color=this._barColor,i.style.width=this._size+"px",i.style.height=this._size+"px";var s="scale("+1/this._retinaFactor+")";return t.style.transform=s,t.style.webkitTransform=s,t.appendChild(i),i.appendChild(this._text),t},show:function(){this._state.show=!0},hide:function(){this._state.show=!1},_update:function(){if(this._barPercentage=this._time.currentTime/this._duration,this._state.show&&this._time.isDirty()){this._time.markClean(),this._offscreenContext.clearRect(0,0,this._size,this._size),this._prebufferedBg||(this._offscreenContext.beginPath(),this._offscreenContext.arc(this._halfSize,this._halfSize,this._radius,0,this._circ),this._offscreenContext.fillStyle=this._bgCircleColor,this._offscreenContext.fill(),this._offscreenContext.beginPath(),this._offscreenContext.strokeStyle=this._barColor,this._offscreenContext.lineCap="square",this._offscreenContext.closePath(),this._offscreenContext.fill(),this._offscreenContext.lineWidth=this._barWidth,this._prebufferedBg=this._offscreenContext.getImageData(0,0,this._size,this._size));var t=-this._quart,e=this._circ*(1-this._barPercentage)-this._quart;0===this._barPercentage?(t=0,e=0):this._barPercentage>=1&&(t=0,e=2*Math.PI),this._offscreenContext.putImageData(this._prebufferedBg,0,0),this._offscreenContext.beginPath(),t!==e&&this._offscreenContext.arc(this._halfSize,this._halfSize,this._radiusCountdown,t,e,!0),this._offscreenContext.stroke()}},_render:function(){if(this._introTransitionEnabled&&this._opacity&&this._state.show&&(this.node.style.opacity=this._opacity+.2),this._state.isDirty()&&(this._state.show?(removeClass(this.node,"celtra-hide"),this._introTransitionEnabled||addClass(this.node,"celtra-show")):(this._introTransitionEnabled&&this._opacity&&(this.node.style.opacity=0,this._introTransitionEnabled=!1),removeClass(this.node,"celtra-show"),addClass(this.node,"celtra-hide")),this._state.markClean()),this._state.show&&(this._ctx.clearRect(0,0,this._size,this._size),this._ctx.drawImage(this._offscreenCanvas,0,0),"countdown"===this._mode)){var t=Math.round(this._time.currentTime/1e3);this._displayTime!==t&&(this._displayTime=t,this._text.innerText=this._displayTime)}},setOpacity:function(t){this._opacity=t},setCurrentTime:function(t){if("countdown"===this._mode){if(t=this._duration-t,this._duration<=0)return;150>t&&(t=0),this._time.currentTime=t}"kinetic"===this._mode&&(this._time.currentTime=t)}};t.CountdownProvider={create:e}}(this);;
function Paginator(i){if(i=i||{},"object"!=typeof i.container)throw"Paginator is missing container.";if("object"!=typeof i.containerSize)throw"Paginator is missing container size object.";if("string"!=typeof i.position)throw"Paginator is missing position.";if("number"!=typeof i.itemsCount)throw"Paginator is missing itemsCount.";extend(this,i),this._isVisible=this.position&&"hidden"!==this.position,this._hasItems=!!this.itemsCount,this._list=null,this._largePaginationThreshold=350,this._dotSizes={smallSize:9,smallActive:2,largeSize:12,largeActive:4}}Paginator.prototype.buildPagination=function(){if(this._isVisible&&this._hasItems){this._list=document.createElement("ul"),addClass(this._list,"pagination "+this.position);for(var i=0;ithis._largePaginationThreshold&&i.height>this._largePaginationThreshold?"large":"small",s=this.itemsCount*this._dotSizes[t+"Size"]+this._dotSizes[t+"Active"];switch(addClass(this._list,t),this.position){default:case"bottom":case"top":this._list.style.left=(i.width-s)/2+"px";break;case"right":case"left":this._list.style.top=(i.height-s)/2+"px"}this._list.style.display="block"}},Paginator.prototype.setActivePaginationItem=function(i){this._isVisible&&this._hasItems&&Array.prototype.slice.call(this._list.getElementsByTagName("li")).forEach(function(t,s){removeClass(t,"active"),s===i&&addClass(t,"active")},this)};;
function Creative(e,t,r,n,i,a,o,s,u,c,d,m,l){if(e instanceof Creative)throw"This JSON has already been unfreezed. We do it inline, to improve performance. Duplicate it yourself before unfreezing, if you need to use it again.";var p=l.start("Creative.new"),v=extend({adapter:a,runtimeParams:t||{},urlOpenedOverrideUrls:s,urlOpenedUrlAppendage:d,clickThroughDestinationUrl:m,storeOpenedOverrideUrls:u,macros:c},o);if("InstaAdHtml"!==e.clazz){var f=l.start("Creative.unfreeze");e=Freezer.unfreeze(e,window,v),f.end()}return e.instantiation=randInt(),e.batcher=new Batcher,e.trackingCenter=r,e.universalInteractionId="",e.aggregatorTracking=n,e.experiments=i,e.perf=l,e.platformAdvId=t.platformAdvId,e.platformAdvIdTrackingLimited=t.platformAdvIdTrackingLimited,"InstaAdHtml"===e.clazz&&(e.adapter=a,e.runtimeParams=t||{},e.urlOpenedOverrideUrls=s,e.urlOpenedUrlAppendage=d,e.clickThroughDestinationUrl=m,e.storeOpenedOverrideUrls=u,e.macros=c,extend(this,e),e=this),"undefined"!=typeof a&&null!==a&&(a.openBrowserSameWindowInHostileIFrame=function(e){window.top.location.href=e}),p.end(),e}Creative.toString=function(){return"[Clazz Creative]"},Creative.prototype.toString=function(){return"[Creative "+this.name+"]"},window.creative=null,extend(Creative.prototype,EventEmitter),Creative.init=function(e,t,r,n,i,a,o,s,u,c,d,m,l){if(window.creative)throw"creative is a singleton and was already initialized.";Logger.initFromRuntimeParams(t),window.creative=new Creative(e,t,r,n,i,a,o,s,u,c,d,m,l)},Creative.prototype.userInteracted=function(e){this.emit("interaction",e)},Creative.prototype.clickedThrough=function(e){this.emit("clickThrough",e)},Creative.prototype._getRuntimeParamsWithPrefix=function(e){var t={};for(var r in this.runtimeParams)0===r.indexOf(e)&&(t[r.slice(e.length)]=this.runtimeParams[r]);return t},Object.defineProperties(Creative.prototype,{sessionId:{enumerable:!0,get:function(){return this.runtimeParams.sessionId}},placementId:{enumerable:!0,get:function(){return this.runtimeParams.placementId||null}},folderId:{enumerable:!0,get:function(){return this.runtimeParams.folderId}},supplierId:{enumerable:!0,get:function(){return this.runtimeParams.supplierId||null}},dataURIsEnabled:{enumerable:!1,get:function(){return 1==this.runtimeParams.dataURIsEnabled||"treatment"===(this.experiments.get("UseDataURIsGlobally")||{}).chosenVariant}},secure:{enumerable:!0,get:function(){return 1==this.runtimeParams.secure}},userParams:{enumerable:!0,get:function(){return this._getRuntimeParamsWithPrefix("user.")}},userIdentifiers:{enumerable:!0,get:function(){return this.runtimeParams.userIdentifiers}},authTokenUrlParam:{enumerable:!1,get:function(){return"authBasis="+creative.runtimeParams.authBasis+"&authToken="+creative.runtimeParams.authToken}},customAudiences:{enumerable:!0,get:function(){return function(e){if(!creative.runtimeParams.customAudiences[e])throw new Error('Custom audience "'+e+'" is not used by the creative.');return{userExists:creative.runtimeParams.customAudiences[e].userExists,userData:creative.runtimeParams.customAudiences[e].userData,addUser:function(t){return CustomAudiences.addUser(e,t)},removeUser:function(){return CustomAudiences.removeUser(e)}}}}},acceptLanguage:{enumerable:!0,get:function(){return this.runtimeParams.acceptLanguage}}}),Creative.prototype.awake=function(){function e(r,n,i,a){r.forEach(function(r){r.parentUnit=a,r.parentScreen=i,r.parentContainer=n;var o=r.getNestedContainers();o.forEach(function(n){n.parentUnit=a,n.parentScreen=i,n.parentObject=r,e(n.objects,n,i,a),n.scenes&&t(n.scenes,n,i,a)})})}function t(e,t,r,n){e.forEach(function(e){e.parentUnit=n,e.parentScreen=r,e.parentContainer=t})}var r=this;for(var n in r.units){var i=r.units[n];i.name=n;var a=[];i.variants?i.variants.forEach(function(e){a=a.concat(e.master,e.screens)}):(a=[i.master].concat(i.screens),i.loadingScreen&&(a=[i.loadingScreen].concat(a))),a.forEach(function(r){r.parentUnit=i,e(r.objects,r,r,i),r.scenes&&t(r.scenes,r,r,i)})}},Creative.prototype.track=function(e,t){var r="only"==(creative.experiments.get("ExtendedEngagement")||{}).chosenVariant;r&&["firstInteraction","interaction","endCardInteraction","unitCollapsed","creativeDismissed","clickThroughDestinationOpened","firstClickThrough","itemSwiped"].indexOf(e.name)>=0&&(e=extend(e,{universalInteractionId:this.universalInteractionId})),this.trackingCenter.track(e,t)},Creative.prototype.setUniversalInteractionId=function(e){this.universalInteractionId=e},Creative.prototype.wrapRedirectPageUrl=function(e,t){return this.trackingCenter.wrapRedirectPageUrl(e,t)},Object.defineProperty(Creative.prototype,"sdk",{get:function(){return this.adapter},enumerable:!0}),Creative._throw=function(e){throw e},Creative.prototype.getUserInteracted=function(){return 1==this.runtimeParams.userInteracted},Creative.prototype.trackCreativeRendered=function(){creative.adapter.notifycreativeRendered(),this._getCreativeRendered()||(this.track({name:"creativeRendered"}),this.runtimeParams.creativeRendered=1,defer(this.trackingCenter.batchFlush))},Creative.prototype.checkAndTrackFeedValueMissing=function(e,t){var r=this.runtimeParams.dynamicContent[t];null==t||r||e.track({name:"userError",userErrorId:"feedValueMissing"})},Creative.prototype._getCreativeRendered=function(){return 1===this.runtimeParams.creativeRendered},Creative.prototype.trackCreativeRenderedOnScreenShow=Creative.prototype.trackCreativeRendered,Creative.prototype.trackCreativeRenderedOnVideoStart=noop,Creative.trackCustomEventAction=function(e,t,r){var n="custom";e.track({name:n,label:t.name}),creative.adapter.sendToEventMonitor(n,t.triggerId,e.screen.name,null,t.name),r&&r()},Creative.prototype.trackCreativeLoaded=function(e){this.track({name:"creativeLoaded",viewability00Measurable:e.observingViewability("00"),viewability501Measurable:e.observingViewability("501"),viewableTimeMeasurable:e.observingViewableTime(),cdnVariant:this.runtimeParams.variantChoices.CdnTiming||"none"}),defer(this.trackingCenter.batchFlush),this.perf._stopTrackingDefers=!0,this.perf.mark("creativeLoaded")},Creative.prototype.createUserLocation=function(e){return"undefined"!=typeof UserLocation?new UserLocation({lat:this.runtimeParams.gpsLat,lng:this.runtimeParams.gpsLng},e):void 0},Creative.prototype.getPageUrl=function(e){return(this.secure?this.creativeUrl:this.insecureCreativeUrl)+e+"?base64json="+encodeURIComponent(btoa(to_utf8(JSON.stringify(this.runtimeParams))))},Creative.prototype.shouldClickThroughToNewWindow=function(e){var t,r="Desktop"==creative.intendedDeviceType;t=["same","new"].indexOf(this.runtimeParams.preferredClickThroughWindow)>=0?this.runtimeParams.preferredClickThroughWindow:r?"new":"same";var n=e&&e.inUserInitiatedIteration;return"new"==t&&(n||r)},Creative.prototype.getFeedFields=function(){return this.runtimeParams.customFeedFields.map(function(e){var t=this.runtimeParams.dynamicContent["CustomFeedField/"+e.id];return{id:e.id,feedId:e.feedId,name:e.name,values:[t].filter(function(e){return null!==e})}}.bind(this))},Creative.prototype.getFeedFieldByName=function(e){for(var t,r=this.getFeedFields(),n=0;n=0;i--)r=function(n,t){return function(){t(e,n)}}(r,n.actions[i]);r()},Kernel.runInSequenceActionDryRun=Kernel.runInSequenceAction,Kernel.runNTimesAction=function(e,n){n.caller.hasOwnProperty("executionsLeft")||(n.caller.executionsLeft=n.repeat),n.caller.executionsLeft>0&&(n.caller.executionsLeft--,(n.action||nullai)(e))},Kernel.runNTimesActionDryRun=function(e,n,t){(n.action||nullai)(e,t)},Kernel.loopAction=function(e,n,t){function r(){return 0==i?t():(-1!=i&&i--,void(n.action||nullai)(e,"thumb"===creative.runtimeParams.purpose?t:r))}var i=n.repeat;r()},Kernel.loopActionDryRun=function(e,n,t){(n.action||nullai)(e,t)},Kernel.sleepAction=function(e,n,t){setTimeout(t,n.duration)},Kernel.executeJavascriptAction=function(e,n,t){try{var r=e.initiator,i=e.screen.parentUnit,c=e.screen,a=new Function("ctx","c","unit","screen","variant",n.script.code),o=!1,u=i.getVariantForScreen?i.getVariantForScreen(c):void 0;null!==n.script.code.match(/http:/)&&this._track("executeJavascriptAction.code");var l=function(){o?console.warn('Multiple calls made to "c()" from "'+e.initiator.fieldName+'" Execute JS Action'):(t(),o=!0)}.bind(this);a.call(r,e,l,i,c,u)}catch(s){console.error(s.message+"\n"+s.stack)}},Kernel.randomAction=function(e,n,t){var r=0;if(n.outcomes.forEach(function(e){r+=e.weight}),!r)return t();for(var i=Math.random()*r,c=0;ci)return(a.action||nullai)(e,t)}},Kernel.randomActionDryRun=function(e,n,t){n.outcomes.forEach(function(n){(n.action||nullai)(e)}),t()},Kernel.bestAction=function(e,n,t){var r=creative.experiments.get("Best",[creative.id,n.experimentName]);r.trackExposure();var i=n.outcomes.filter(function(e){return e.experimentVariant==r.chosenVariant})[0],c=i?i:n.outcomes[0];(c.action||nullai)(e,t)},Kernel.bestActionDryRun=function(e,n,t){var r=creative.experiments.get("Best",[creative.id,n.experimentName]),i=n.outcomes.filter(function(e){return e.experimentVariant==r.chosenVariant})[0],c=i?i:n.outcomes[0];(c.action||nullai)(e,t)},Kernel.trackBestVariantSuccessAction=function(e,n,t){var r=creative.experiments.get("Best",[creative.id,n.experimentName]);r.trackSuccess(),creative.adapter.sendToEventMonitor("trackBestVariantSuccess",n.triggerId,e.screen.name,r.chosenVariant,""),t()},Kernel._track=function(e){this._privateApiTracked=this._privateApiTracked||{},this._privateApiTracked[e]||(this._privateApiTracked[e]=!0,creative.track({name:"retiredFeatureUsed",featureType:"loadingInsecureContent",featureName:e}))};;
;
function Scene(){}Scene.instances=[],Scene.prototype.awake=function(){this._framesPerSecond=20,this._framesPerPixel=.1,this._durationInFrames=0,this._durationInMilliseconds=0,this._durationInPixels=0,this._claimedObjects=[],this._keyframeAnimations=Object.create(null),this._rawInitialValues=[],this._initSceneOnRenderApiCall=!0,this._suspended=!1,this.fallbackFrameShown=!1,this.forceFallbackFrame=!1,this.intersection="undefined"!=typeof this.intersection?this.intersection:50,this._appearedBefore=!1,this._calculateDurations=this._calculateDurations.bind(this),this._buildKeyframeAnimations=this._buildKeyframeAnimations.bind(this),this._removeAnimatedClass=this._removeAnimatedClass.bind(this),this._renderAtProgress=this._renderAtProgress.bind(this),this._initPlayer(),this.parentContainer.on("appeared",this._appear.bind(this)),this.parentContainer.on("disappeared",this._dissapear.bind(this)),this.parentContainer.on("resize",this._calculateDurations),this.parentContainer.on("resize",this._buildKeyframeAnimations),this.parentContainer.on("resize",this._renderAtProgress),this.parentUnit.on("layoutChanged",this._calculateDurations),this.parentUnit.on("layoutChanged",this._buildKeyframeAnimations),this.parentUnit.on("layoutChanged",this._renderAtProgress),Scene.instances.push(this)},Scene._sizeProperties=["width","height"],Scene._positionProperties={horizontal:["left","hcenter","right"],vertical:["top","vcenter","bottom"]},Object.defineProperty(Scene.prototype,"paused",{get:function(){return this._player.paused}}),Scene.prototype._initPlayer=function(){var e=window[this.type.charAt(0).toUpperCase()+this.type.slice(1)+"ScenePlayer"];this._player=new e(this),this._player.on("stop",this._resetRawInitialValues.bind(this)),this._player.on("end",this._updateRawFinalValuesForAllLayouts.bind(this)),this._player.on("pause",this._removeAnimatedClass),this._player.on("stop",this._removeAnimatedClass)},Scene.prototype._removeAnimatedClass=function(){for(var e in this._claimedObjects)removeClass(this._claimedObjects[e].node,"animated")},Scene.prototype._getMaxFrameNumber=function(){var e=0;for(var t in this.objects){var i=this.objects[t],a=this.parentUnit.layoutCurrentIndex;for(var n in i.layoutSpecificValues[a]){var s=i.layoutSpecificValues[a][n];e=Math.max(e,s.frame)}}return e},Scene.prototype._calculateDurations=function(){this._durationInFrames=this._getMaxFrameNumber(),this._durationInMilliseconds=this._durationInFrames/this._framesPerSecond*1e3,this._durationInPixels=this._durationInFrames/this._framesPerPixel},Scene.prototype._captureRawInitialValues=function(e){this._rawInitialValues[e.localId]=[];for(var t=this.parentScreen.parentContainer.layouts.length,i=0;t>i;i++){var a=e.layoutSpecificValues[i];this._rawInitialValues[e.localId][i]=extend({rotation:a.rotation,opacity:a.opacity,hidden:a.hidden},a.position,a.size)}},Scene.prototype._calculateFinalValuesForObject=function(e){var t=[];for(var i in this.objects){var a=this.objects[i];if(a.target.localId==e.localId)for(var n in a.layoutSpecificValues){t[n]=Object.create(null);for(var s in a.layoutSpecificValues[n]){var r=a.layoutSpecificValues[n][s];for(var o in r.properties)null!==r.properties[o].value&&(t[n][o]=r.properties[o].value)}}}return t},Scene.prototype._updateRawFinalValuesForAllLayouts=function(){if("reverse"!==this.onEnd)for(var e in this._claimedObjects)for(var t=this._claimedObjects[e],i=this._calculateFinalValuesForObject(t),a=this.parentScreen.parentContainer.layouts.length,n=0;a>n;n++){var s=t.layoutSpecificValues[n],r=i[n];Scene._updateLayoutWithValues(s,r)}},Scene.prototype._buildKeyframeAnimations=function(){this._keyframeAnimations=Object.create(null);for(var e=this.parentUnit.layoutCurrentIndex,t=0;t0&&this._suspended?this._playSceneOrDisplayFallbackFrame():0!==e||this._player.paused||this._suspendScene()},Scene.prototype._handleContainerViewableChange=function(e){e&&this._suspended?this._playSceneOrDisplayFallbackFrame():e||this._player.paused||this._suspendScene()},Scene.prototype.getDuration=function(){return{frames:this._durationInFrames,pixels:this._durationInPixels,milliseconds:this._durationInMilliseconds}},Scene.prototype.updateObjects=function(e){for(var t in this._claimedObjects){var i=this._claimedObjects[t];if(i.node){if(i.isAnimated){var a=this._keyframeAnimations[i.localId],n=e>=a.startKeyframe,s=e<=a.endKeyframe||!a.firstFrameAnimated,r=n&&s||this.fallbackFrameShown;if(r)a.firstFrameAnimated=!0,hasClass(i.node,"animated")||addClass(i.node,"animated");else{if(!hasClass(i.node,"animated"))continue;removeClass(i.node,"animated")}}var o=this._keyframeAnimations[i.localId].animation.getValuesAt(e);Scene._updateLayoutWithValues(i.layoutCurrent,o),i._keyframeStyle=i._calculateNewStyleAttributes()}}},Scene.prototype.renderObjects=function(){for(var e in this._claimedObjects){var t=this._claimedObjects[e];t.node&&(t._applyStyles(t.node,t._keyframeStyle),t.redrawLayout())}},Scene.prototype.claimObject=function(e){if(-1===this._claimedObjects.indexOf(e)){for(var t=0;t0,s="reverse"==this.onEnd&&!isNaN(this.onEndReverseCount)&&this.onEndReverseCount>0,r=this.onEndWaitForCount&&(n||s);a||r?(this._player.once("stop",i),this._playSceneOrDisplayFallbackFrame()):(this._playSceneOrDisplayFallbackFrame(),i())},Scene.prototype.pauseSceneAction=function(e,t,i){"time"===this.type&&(this._pauseScene(),i())},Scene.prototype.stopSceneAction=function(e,t,i){"time"===this.type&&(this._stopScene(),i())},Scene.prototype.resetAction=function(e,t,i){this._player&&this._player.destroy(),this._initPlayer(),this._suspended=!1,i()},Scene._extractPropertyValues=function(e){var t=Object.create(null);for(var i in e)t[i]={value:e[i].value,timingFunction:Scene._getTimingFunctionByName(e[i].timingFunction)};return t},Scene._keyframeWithUnitsToKeyframePx=function(e,t){for(var i=0;i-1&&(s=s/100*t[a]),e[a].value=s)}}for(var r in Scene._positionProperties)for(var o="horizontal"==r?"width":"height",l=Scene._positionProperties[r],c=0;c-1&&(u=u/100*t[o]),e[h].value=u)}}},Scene._getTimingFunctionByName=function(e){return e?KeyframeAnimation.Timing[camelize(e)]:null},Scene._fillInInitialAndDynamicKeyframeValues=function(e,t,i){e[0]||(e[0]=Object.create(null));for(var a in t)!e[0][a]&&i.indexOf(a)>-1&&(e[0][a]={value:t[a],timingFunction:Scene._getTimingFunctionByName("none")});for(var n in e)for(var s in e[n])e[n][s]&&null===e[n][s].value&&(e[n][s].value=t[s])},Scene._ensureSizeOrPositionValueHasUnits=function(e){return e=String(e),e.indexOf("%")>-1||e.indexOf("px")>-1?e:e+"px"},Scene._updateLayoutWithValues=function(e,t){var i=extend({},e.position),a=!1;for(var n in Scene._positionProperties)for(var s=Scene._positionProperties[n],r=0;r0}}),View.prototype.createNode=function(){this.on("loaded",creative.perf.start("View.load",{clazz:this.constructor.name,name:this.name}).end);var e=document.createElement("div");"undefined"!=typeof creative&&creative.adapter&&creative.adapter.useNativeClickForTapDetection&&(e.style.touchAction="manipulation"),this.localId&&(e.id="celtra-object-"+this.localId);for(var t=this.constructor;t;t=t.uber?t.uber.constructor:void 0)e.className+=" celtra"+t.name.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});return e},View.prototype.getNode=function(e){return this.loaded?e&&defer(e,0,"View.getNode defer finishedLoadingCallback",useAsap()):(e&&this._waitingForLoadCallbacks.push(e),this.node||(this.incrementLoadingCount(),this.node=this.createNode(),defer(this.decrementLoadingCount,0,"View.getNode defer decrementLoadingCount",useAsap()))),this.node},Object.defineProperty(View.prototype,"isAppearing",{get:function(){return this._isAppearing}}),Object.defineProperty(View.prototype,"hasAppearedAtLeastOnce",{get:function(){return this._hasAppearedAtLeastOnce}}),View.prototype.appear=function(){var e="View APPEAR called on "+this.constructor.name+" "+this.localId+" (name="+this.name+")";this.parentContainer&&(e+=" from "+this.parentContainer.constructor.name+" "+this.parentContainer.localId+" (name="+this.parentContainer.name+")"),Logger("events.appear").log(e),this.hidden?this._shouldAppear=!0:this.isAppearing||(this._appear(),this._isAppearing=!0,this._hasAppearedAtLeastOnce=!0,this.emit("appeared"))},View.prototype.disappear=function(){var e="View DISAPPEAR called on "+this.constructor.name+" "+this.localId+" (name="+this.name+")";this.parentContainer&&(e+=" from "+this.parentContainer.constructor.name+" "+this.parentContainer.localId+" (name="+this.parentContainer.name+")"),Logger("events.appear").log(e),this.isAppearing&&(this._disappear(),this._isAppearing=!1,this._shouldAppear=!1,this.emit("disappeared"))},View.prototype.reset=function(){this.isAppearing&&(this._shouldAppear=this.hidden,this._isAppearing=!this.hidden)},View.prototype._appear=function(){},View.prototype._disappear=function(){},View.prototype.appearNestedObjects=function(){this.objects.forEach(function(e){e.appear()},this)},View.prototype.disappearNestedObjects=function(){this.objects.forEach(function(e){e.disappear()},this)},View.prototype._trackViewShown=function(e){var t={name:"viewShown",viewName:this.name,clazz:this.constructor.name};new ActionContext(this,!1).track(extend(t,e))};;
BaseCreativeUnit.prototype.alert=function(e,t){var a=this.size.width,r=this.size.height,l=e.boxWidth||320,n=e.boxHeight||160;e.message=removeHtmlTags(e.message),a>=l&&r>=n?this.showModalDialogInPlacement("alert",e,t):(alert(e.message),t())},BaseCreativeUnit.prototype.prompt=function(e,t){var a=this.size.width,r=this.size.height,l=e.boxWidth||320,n=e.boxHeight||190;if(a>=l&&r>=n)this.showModalDialogInPlacement("prompt",e,t);else{var i=prompt(removeHtmlTags(e.message));t(i)}},BaseCreativeUnit.prototype._getUniqueId=function(){var e=new Date,t=e.getTime()+Math.random();return t},BaseCreativeUnit.prototype.showModalDialogInPlacement=function(e,t,a){var r=this._getUniqueId(),l={};l[r]={attachment:"body",positioning:"screen",type:"layer"},creative.adapter.createPlacements(l,function(){function l(e){13==e.keyCode&&(creative.adapter.destroyPlacement(r),o=null,a(C.value))}function n(e){e.preventDefault(),e.stopPropagation()}function i(t){t.preventDefault(),t.stopPropagation(),creative.adapter.destroyPlacement(r),o=null,"prompt"==e?a(C.value):a()}function s(e){e.preventDefault(),e.stopPropagation(),creative.adapter.destroyPlacement(r),o=null,a(null)}if(window){var o=creative.adapter.placements[r];o.setZIndex("max"),o.setSize("100%","100%"),o.setPosition(0,0);var d=o.createElement("link");d.rel="stylesheet",d.type="text/css",d.href=creative.resourceUrl+"runner-min/clazzes/ModalDialogs-Overlay.css",o.getContainer().appendChild(d);var c=o.createElement("div");addClass(c,"celtra-alert"),c.style.display="none";var p=o.createElement("div");addClass(p,"celtra-alert-dark-overlay"),c.appendChild(p),this.preventScroll(c);var h=o.createElement("div");if(addClass(h,"celtra-alert-box"),t.title&&""!=t.title){var m=o.createElement("h1");addClass(m,"celtra-alert-title"),m.innerHTML=t.title,h.appendChild(m)}if(t.title&&""!=t.title&&t.message&&""!=t.message){var v=o.createElement("hr");addClass(v,"celtra-alert-dark-line"),h.appendChild(v);var u=o.createElement("hr");addClass(u,"celtra-alert-light-line"),h.appendChild(u)}if(t.message&&""!=t.message){var g=o.createElement("div");addClass(g,"celtra-alert-message"),g.innerHTML=t.message,h.appendChild(g)}if("prompt"==e){var C=o.createElement("input");addClass(C,"celtra-alert-input"),C.value=t.defaultValue||"",h.appendChild(C),attach(C,"keypress",l)}var f=o.createElement("div");if(addClass(f,"celtra-alert-ok"),f.innerHTML="OK",h.appendChild(f),this.preventScroll(h),once(f,"touchend",i,!1),"prompt"==e&&t.showCancel){addClass(f,"with-cancel");var y=o.createElement("div");addClass(y,"celtra-alert-cancel"),y.innerHTML="CANCEL",h.appendChild(y),attach(f,"touchstart",n,!1),once(y,"touchend",s,!1)}c.appendChild(h),o.populate(c,function(){o.show();var e=setInterval(function(){"absolute"===celtra.styler.computedCSS(h,"position")&&(computedBoxHeight=parseInt(celtra.styler.computedCSS(h,"height"),10)+parseInt(celtra.styler.computedCSS(h,"paddingTop"),10)+parseInt(celtra.styler.computedCSS(h,"paddingBottom"),10),h.style.marginTop=-computedBoxHeight/2+"px",h.style.opacity=1,clearInterval(e),e=null)},100)})}}.bind(this))},BaseCreativeUnit.prototype.preventScroll=function(e){var t=["mousewheel","touchmove"];t.forEach(function(t){attach(e,t,function(e){e.preventDefault()},!1)})};;
function CreativeUnit(){}inherit(CreativeUnit,BaseCreativeUnit),CreativeUnit.IGNORABLES=BaseCreativeUnit.IGNORABLES,CreativeUnit.DEBUG_EXTRA_PHASE_DELAY=0,CreativeUnit.toString=function(){return"[Clazz CreativeUnit]"},CreativeUnit.prototype.toString=function(){return"[CreativeUnit "+this.name+" ("+this.localId+")]"},Object.defineProperty(CreativeUnit.prototype,"size",{get:function(){var t=this.getAvailableSize();return this.layoutCurrent||this._updateActiveLayout(this._getOrientation(),t.width,t.height),"responsive"===this.sizing?{width:t.width,height:t.height}:{width:this.layoutCurrent.unitSize.width,height:this.layoutCurrent.unitSize.height}},set:function(){}}),Object.defineProperty(CreativeUnit.prototype,"unitAlignment",{get:function(){return"undefined"==typeof this.layoutCurrent.unitAlignment?{}:this.layoutCurrent.unitAlignment}}),Object.defineProperty(CreativeUnit.prototype,"layoutCurrent",{get:function(){return this.layouts[this.layoutCurrentIndex]}}),Object.defineProperty(CreativeUnit.prototype,"hasOverflow",{get:function(){return this.screens.concat([this.master]).filter(function(t){return t.showOverflow}).length>0}}),Object.defineProperty(CreativeUnit.prototype,"hasScreens",{get:function(){return this.screens.length>0}}),CreativeUnit.prototype._getDestinationScreen=function(){var t=this.hasScreens?this.screens[0]:this.master;if("modal"==this.name&&"undefined"!=typeof creative.runtimeParams.goToPageAfterExpand){var e=creative.runtimeParams.goToPageAfterExpand;if("string"!=typeof e)throw new TypeError("Only string type is allowed to reference destination screen!");var i=this.screens.filter(function(t){return t.title===e});i.length>0&&(t=i[0])}return t},CreativeUnit.prototype.awake=function(){var t=this;CreativeUnit.uber.awake.call(this),this.currentScreen=null,this.visibleScreen=null,this._masterShown=!1,this.overflowsY=!1,this.layoutCurrentIndex=null,this.screens.forEach(function(t){t.objects.forEach(function(t){t.zIndex+=ScreenObject._zIndexOffset})}),"undefined"==typeof this.backgroundColor&&(this.backgroundColor="#000000"),"undefined"==typeof this.usePlaceboBar&&(this.usePlaceboBar=!1),"undefined"==typeof this.showCloseButton&&(this.showCloseButton=!1),"undefined"==typeof this.alignBackButtonHorizontal&&(this.alignBackButtonHorizontal="left"),this.on("_firstScreenLoaded",function(){t.placeboBar&&(t.placeboBar.parentNode.removeChild(t.placeboBar),t.placeboBar=null),this._setVisibleScreen(this._getDestinationScreen())}.bind(this)),this.onAll("_firstScreenLoaded _unitFirstShown",function(){this.goToScreen(this._getDestinationScreen())}.bind(this)),this.triggerOrientationChange=this.triggerOrientationChange.bind(this),this.updateWindowMetrics=this.updateWindowMetrics.bind(this),this.hacks.triggerBlurWhenTappingOutsideOfInputs=ios()},CreativeUnit.prototype.setAvailableSize=function(t,e){var i=CreativeUnit.uber.setAvailableSize.apply(this,arguments),n=this._getOrientation(),o=this.layouts[this.layoutCurrentIndex];this._updateActiveLayout(n,t,e),this.updateWindowMetrics(n,t,e);var r=this._previousOrientation&&n!=this._previousOrientation,s=o&&o.orientation!=this.layoutCurrent.orientation;(r||s)&&this.triggerOrientationChange(),this._previousOrientation=n,(i||s)&&this.emit("resize")},CreativeUnit.prototype._getOrientation=function(){return creative.adapter.orientation%180===0?"portrait":"landscape"},CreativeUnit.prototype._updateActiveLayout=function(t,e,i){{var n=this.layouts.slice(),o=this.layoutCurrentIndex;this.layouts[o]||null}n.forEach(function(n){n.sortIndex=0,"independent"==n.orientation?n.sortIndex+=1:n.orientation!=t&&(n.sortIndex+=4e3),n.minSize.width>e&&(n.sortIndex+=2e3),n.minSize.height>i&&(n.sortIndex+=2e3),n.sortIndex+=Math.abs(n.minSize.width-e)+Math.abs(n.minSize.height-i)}),n.sort(function(t,e){return t.sortIndex-e.sortIndex}),this.layoutCurrentIndex=this.layouts.indexOf(n[0]),o!=this.layoutCurrentIndex&&this.emit("layoutChanged")},CreativeUnit.prototype.enterRenderTree=function(){if(!this._isRendering){this._isRendering=!0;var t=this.getAvailableSize();this.updateWindowMetrics(this._getOrientation(),t.width,t.height),this.master&&(this.master.loaded?defer(this.master.enterRenderTree.bind(this.master),void 0,void 0,useAsap()):this.once("_firstScreenLoaded",this.master.enterRenderTree.bind(this.master))),this.visibleScreen&&defer(this.visibleScreen.enterRenderTree.bind(this.visibleScreen),void 0,void 0,useAsap()),this.hacks.triggerBlurWhenTappingOutsideOfInputs&&(attach(this.node,"touchstart",function(t){-1==["INPUT","TEXTAREA","SELECT"].indexOf(t.target.nodeName)&&null!=this.lastInputElementFocused&&this.lastInputElementFocused.blur()}.bind(this),!0),attach(this.node,"focus",function(t){["INPUT","TEXTAREA","SELECT"].indexOf(t.target.nodeName)>-1&&(this.lastInputElementFocused=t.target)}.bind(this),!0),attach(this.node,"blur",function(t){["INPUT","TEXTAREA","SELECT"].indexOf(t.target.nodeName)>-1&&(this.lastInputElementFocused=null)}.bind(this),!0))}},CreativeUnit.prototype.exitRenderTree=function(){this._isRendering&&(this._isRendering=!1,this.master&&this.master.exitRenderTree(),this.visibleScreen&&this.visibleScreen.exitRenderTree())},CreativeUnit.prototype._appear=function(){this.loaded||Creative._throw("Cannot show the unit before it has finished loading."),this.isAppearing&&Creative._throw("The unit is already appearing."),this.node.parentNode||Creative._throw("Creative unit must be added to DOM before show() is called. Animations will start on show()."),Logger("unit").log("Showing "+this),this.inView&&(this.inView.start(),this.currentScreen&&this.currentScreen.inView&&this.currentScreen.inView.start()),this.hasAppearedAtLeastOnce||(this.placeboBar&&this.placeboBar.start(),this._orientationLockIsOn?this._emitUnitFirstShownAfterOrientationPrompt=!0:this.emit("_unitFirstShown"))},CreativeUnit.prototype._disappear=function(){this.isAppearing||Creative._throw("The unit is not appearing, can not disappear."),Logger("unit").log("Hiding "+this),this.inView&&this.inView.stop()},CreativeUnit.prototype.createNode=function(){var t=this.unitDiv=CreativeUnit.uber.createNode.call(this);if(t.id="celtra-"+this.name.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}),Color.isGradient(this.backgroundColor)?addCssRule("#"+t.id,Color.createGradientStyle(this.backgroundColor)):t.style.backgroundColor=this.backgroundColor,t.style.overflow=this.master.showOverflow?"visible":"hidden",this.screenContainer=document.createElement("div"),this.screenContainer.className="celtra-screen-container",this.screenContainer.style.position="absolute",t.appendChild(this.screenContainer),this.screenHolder=document.createElement("div"),this.screenHolder.className="celtra-screen-holder",this.screenHolder.style.width="100%",this.screenHolder.style.height="100%",this.screenContainer.appendChild(this.screenHolder),t.style.position="absolute",this.usePlaceboBar){var e=this.loadingScreen&&this.loadingScreen.loaderColor||"white";this.placeboBar=new PlaceboBar(5e3,.9,200,e),this.screenContainer.appendChild(this.placeboBar)}if(this.showCloseButton){if(this.closeAction||Creative._throw("Close button requested, but no close action defined?"),this.closeButtonType&&"text"===this.closeButtonType){var i=document.createElement("div");i.className="celtra-close-button touchable celtra-close-button-text",i.textContent=this.closeButtonText,i.style.color=this.closeButtonTextColor,this.unitDiv.appendChild(i)}else{var i=document.createElement("img"),n=document.createElement("img");this.closeButtonUp?(this.closeButtonDown||(this.closeButtonDown=this.closeButtonUp),this.closeButtonWidth&&this.closeButtonHeight&&(i.style.width=n.style.width=this.closeButtonWidth+"px",i.style.height=n.style.height=this.closeButtonHeight+"px")):(this.closeButtonUp=new File("runner/clazzes/CreativeUnit/close-up.svg"),this.closeButtonDown=new File("runner/clazzes/CreativeUnit/close-down.svg")),i.className="celtra-close-button touchable celtra-close-button-up",this._preloadImage(this.closeButtonUp,{force:!1},function(t,e){i.src=e}),n.className="celtra-close-button celtra-close-button-down",this._preloadImage(this.closeButtonDown,{force:!1},function(t,e){n.src=e}),this.closeButtonImage=i,this.closeButtonImagePressed=n,this.unitDiv.appendChild(this.closeButtonImage),this.unitDiv.appendChild(this.closeButtonImagePressed)}attach(i,"tap",function(){var t=this.currentScreen||this.visibleScreen;this.closeAction(t?new ActionContext(t,!0):null,{},noop)}.bind(this),!1)}var o=[];o.push({name:"loading",fun:function(t){if(this.loadingScreen){var e=creative.perf.start("CreativeUnit.loadingScreen");this.loadingScreen.getNode(function(){defer(function(){e.end(),this._setVisibleScreen(this.loadingScreen),t(!0)}.bind(this),CreativeUnit.DEBUG_EXTRA_PHASE_DELAY,"CreativeUnit.createNode defer loading phase completion",useAsap())}.bind(this))}else t(!1)}.bind(this)}),o.push({name:"interactive",fun:function(t){var e=creative.perf.start("CreativeUnit.firstScreenLoaded"),i=this.hasScreens?2:1,n=function(){--i||defer(function(){e.end(),defer(this.emits("_firstScreenLoaded"),0,"CreativeUnit.createNode emit _firstScreenLoaded",useAsap()),t(!0)}.bind(this),CreativeUnit.DEBUG_EXTRA_PHASE_DELAY,"CreativeUnit.createNode defer onScreenLoaded",useAsap())}.bind(this);this.hasScreens&&this._getDestinationScreen().getNode(n),this.master.getNode(n)}.bind(this)}),this.incrementLoadingCount();var r=!1,s=function(){r||Creative._throw("Unit still not ready to show after last phase?!")};return o.reverse().forEach(function(t){var e=s;s=function(){Logger("unit").log("Phase '"+t.name+"' started."),t.fun(function(i){Logger("unit").log("Phase '"+t.name+"' finished, "+(i?"DID":"DID NOT")+" draw something."),i&&(r||(r=!0,this.decrementLoadingCount())),e()}.bind(this))}.bind(this)}.bind(this)),s(),t},CreativeUnit.prototype._repositionCloseButton=function(t){function e(t,e,i){function n(t){return{left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}var o=n(i),r=n(e),s=n(t);s.left=r.left+r.width-s.width,s.top=r.top;var a=o.left<=s.left&&s.left+s.width-1-1,r=!1,a=!1,s=500;return n?(clearTimeout(i.shakeTimeout),i.shakeStartTime||(i.shakeStartTime=new Date),r=t.duration&&(new Date).getTime()-i.shakeStartTime.getTime()>=t.duration,i.shakeTimeout=setTimeout(function(){delete i.shakeStartTime,i.triggered=!1},s),r&&!i.triggered&&(a=!0,i.triggered=!0),a):!1},null,t)}},Screen.prototype.enterRenderTree=function(){this._isRendering||(this._isRendering=!0,this.emit("enteredRenderTree"))},Screen.prototype.exitRenderTree=function(){this._isRendering&&(this._isRendering=!1,this.emit("exitedRenderTree"))},Screen.prototype._updateSize=function(){this.emit("resize")},Screen.prototype.finishedLoading=function(){Screen.uber.finishedLoading.call(this),Logger("unit").log("Finished loading "+this)},Screen.prototype.triggerBeforeAppear=function(e){var t=new ActionContext(this,{certainlyNotCausedByUserBehavior:!!this.parentUnit.firstAppearWithoutUserInteraction&&!this.appearedAtLeastOnce&&(this.isFirstScreen()||this.isMasterScreen())});this.fireTriggers("beforeAppear",null,e,t)},Screen.prototype.triggerOrientationChange=function(e){this.fireTriggers("orientationChange",null,e)},Screen.prototype.getMaxZIndex=function(){var e=0;return this.objects.forEach(function(t){t.zIndex>e&&(e=t.zIndex)}),e},Screen.prototype.inViewTriggerSetup=function(){var e=!1;this.triggers.forEach(function(t){("enterView"===t.type||"leaveView"===t.type)&&(e=!0,this.inViewAreaRatio=0)},this),e&&this.inView.on("areaInViewRatioChanged",this.triggerInView.bind(this))},Screen.prototype.triggerInView=function(e){var t=new ActionContext(this),i="enterView",n=this.inViewAreaRatio,r=e,a=function(e,t){return e.parameters.area-t.parameters.area};e=n&&r>=t},null,t,a),this._getTriggers(i,function(e){var t=e.area/100;return t>=n&&r>=t}),this.inViewAreaRatio=e},Screen.prototype.getActionsExecutedOnAppear=function(){var e=!this.appearedAtLeastOnce,t=new ActionContext(this,{certainlyNotCausedByUserBehavior:!!this.parentUnit.firstAppearWithoutUserInteraction&&e&&(this.isFirstScreen()||this.isMasterScreen())}),i=this.fireTriggersDryRun("beforeAppear",null,noop,t);return e&&(i=i.concat(this.fireTriggersDryRun("firstAppear",null,noop,t))),i.concat(this.fireTriggersDryRun("appear",null,noop,t))},Screen.prototype.resetAction=function(e,t,i){var n=this.findAll(),r=n.length;r?n.forEach(function(n){n.resetAction(e,t,function(){--r||i()})}):i()},Screen.prototype.shuffleAction=function(e,t,i){function n(e){for(var t,i,n=e.length;0!==n;)i=Math.floor(Math.random()*n),n-=1,t=e[n],e[n]=e[i],e[i]=t;return e}var r=n(t.objects.map(function(e){return JSON.parse(JSON.stringify(e.layoutSpecificValues))}));t.objects.forEach(function(e,t){e.layoutSpecificValues.forEach(function(e,i){e.position=r[t][i].position}),e._refreshDisplayState()}),i&&i()},Screen.prototype._trackViewShown=function(){Screen.uber._trackViewShown.call(this,{isMasterScreen:this.isMasterScreen(),isLoadingScreen:this.isLoadingScreen()})};;
function NestedContainer(){}inherit(NestedContainer,ScreenObjectContainer),extend(NestedContainer.prototype,TriggerHost),NestedContainer.toString=function(){return"[Clazz NestedContainer]"},NestedContainer.prototype.toString=function(){return"[NestedContainer "+this.localId+"]"},NestedContainer.prototype.createNode=function(){var e=NestedContainer.uber.createNode.call(this);return this.node=e,this._updateSize=this._updateSize.bind(this),this.enterRenderTree=this.enterRenderTree.bind(this),this.exitRenderTree=this.exitRenderTree.bind(this),this.parentObject.on("enteredRenderTree",this.enterRenderTree),this.parentObject.on("exitedRenderTree",this.exitRenderTree),this.objects.forEach(function(t){this.incrementLoadingCount(),e.appendChild(t.getNode(this.decrementLoadingCount))}.bind(this)),0===this.objects.length&&(e.className+=" empty"),this.parentObject.parentContainer.on("resize",this._updateSize),e},NestedContainer.prototype.redrawLayout=function(){this.node.style.width=this.layoutCurrent.size.width,this.node.style.height=this.layoutCurrent.size.height,this.node.style.position="relative",this.node.style.overflow="hidden"},NestedContainer.prototype._updateSize=function(){this.redrawLayout(),this.emit("resize")},NestedContainer.prototype.enterRenderTree=function(){this.emit("enteredRenderTree"),this._updateSize()},NestedContainer.prototype.exitRenderTree=function(){this.emit("exitedRenderTree")},NestedContainer.prototype.onFocus=function(e){this.hasTriggers("itemFocus")&&this.fireTriggers("itemFocus",null,e,new ActionContext(this.parentObject))},NestedContainer.prototype.onBlur=function(e){this.hasTriggers("itemBlur")&&this.fireTriggers("itemBlur",null,e,new ActionContext(this.parentObject))},Object.defineProperty(NestedContainer.prototype,"layoutCurrent",{get:function(){return this.layoutSpecificValues[this.parentUnit.layoutCurrentIndex]}}),Object.defineProperties(NestedContainer.prototype,{size:{get:function(){var e,t=this.layoutCurrent.size,i=parseFloat(t.width),n=parseFloat(t.height);return t.width.toString().indexOf("%")>-1&&(e=this.parentObject.getNaturalSize(),i=e.width*i/100),t.height.toString().indexOf("%")>-1&&(e||(e=this.parentObject.getNaturalSize()),n=e.height*n/100),{width:Math.round(i),height:Math.round(n)}}}});;
function ScreenObject(){}inherit(ScreenObject,View),extend(ScreenObject.prototype,TriggerHost),extend(ScreenObject.prototype,DiscoverableTrait),ScreenObject.requiresRedrawToTriggerAnimationEvents=android("4.0"),ScreenObject.redrawTriggerInterval=60,ScreenObject.toString=function(){return"[Clazz ScreenObject]"},ScreenObject.prototype.toString=function(){return"[ScreenObject "+this.localId+" (name="+this.name+")]"},ScreenObject.allowPositioningAndSizingUsingTransforms=!android("2.2","2.3")||celtra.iframe(),ScreenObject._zIndexOffset=1e4,ScreenObject._resettableProperties=["position","size","rotation","zIndex","opacity","hidden"],ScreenObject._3dTransformBlacklisted=function(t){return/Silk\/\d|Kindle Fire| KFTT | KFOT | KFJWI | KFJWA |\bGT-P3100\b| HTC[ _]One[ _]S /.test(t)||/\bGT-I9300\b/.test(t)&&android("4.0")}(navigator.userAgent),ScreenObject.supports3d=function(){var t="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MSCSSMatrix"in window||/Gecko\//.test(navigator.userAgent);return t&&!this._3dTransformBlacklisted}(),ScreenObject.requires3dTranslateForPositioning=/GT-I9500|GT-I9505|SM-N900|GT-P5210|SM-T520/.test(navigator.userAgent),ScreenObject.dummyImageSpacer=windows("10"),ScreenObject._toPositionPx=function(t,e,i){var n,r,s,o,a=i.width,c=i.height,h=e.width,u=e.height;return["left","right","hcenter"].forEach(function(e){e in t&&(n=e)}),["bottom","top","vcenter"].forEach(function(e){e in t&&(r=e)}),s=t[n],o=t[r],s=s.indexOf("%")>-1?a*parseFloat(s)/100:parseFloat(s),"hcenter"===n?s=(a-h)/2+s:"right"===n&&(s=a-(s+h)),o=o.indexOf("%")>-1?c*parseFloat(o)/100:parseFloat(o),"vcenter"===r?o=(c-u)/2+o:"bottom"===r&&(o=c-(o+u)),{x:ScreenObject._roundIfNeeded(s),y:ScreenObject._roundIfNeeded(o)}},ScreenObject._toSizePx=function(t,e){var i=parseFloat(t.width),n=parseFloat(t.height),r=e.width,s=e.height;return t.width.toString().indexOf("%")>-1&&(i=r*i/100),t.height.toString().indexOf("%")>-1&&(n=s*n/100),{width:ScreenObject._roundIfNeeded(i),height:ScreenObject._roundIfNeeded(n)}},ScreenObject._roundIfNeeded=function(t){return Math.round(t)},Object.defineProperty(ScreenObject.prototype,"layoutCurrent",{get:function(){return null==this.layoutCurrentIndex?this.layoutSpecificValues[0]:this.layoutSpecificValues[this.layoutCurrentIndex]},enumerable:!0,configurable:!1}),Object.defineProperty(ScreenObject.prototype,"layoutCurrentIndex",{get:function(){return this.parentUnit.layoutCurrentIndex},enumerable:!0,configurable:!1}),ScreenObject._Position=function(t,e){this._instance=t,this._position=e},Object.defineProperties(ScreenObject._Position.prototype,{x:{get:function(){return this._position.x},set:function(t){delete this._instance.layoutCurrent.right,delete this._instance.layoutCurrent.hcenter,this._instance.layoutCurrent.position.left=t+("number"==typeof t?"px":"")}},y:{get:function(){return this._position.y},set:function(t){delete this._instance.layoutCurrent.bottom,delete this._instance.layoutCurrent.vcenter,this._instance.layoutCurrent.position.top=t+("number"==typeof t?"px":"")}}}),ScreenObject._Size=function(t,e){this._instance=t,this._size=e},Object.defineProperties(ScreenObject._Size.prototype,{width:{get:function(){return this._size.width},set:function(t){this._instance.layoutCurrent.size.width=t+("number"==typeof t?"px":"")}},height:{get:function(){return this._size.height},set:function(t){this._instance.layoutCurrent.size.height=t+("number"==typeof t?"px":"")}}}),Object.defineProperties(ScreenObject.prototype,{position:{get:function(){var t=ScreenObject._toPositionPx(this.layoutCurrent.position,this.size,this.parentContainer.size);return new ScreenObject._Position(this,t)},set:function(t){delete this.layoutCurrent.position.right,delete this.layoutCurrent.position.hcenter,delete this.layoutCurrent.position.bottom,delete this.layoutCurrent.position.vcenter,this.layoutCurrent.position.left=t.left,this.layoutCurrent.position.top=t.top}},originalSize:{get:function(){var t=this.layoutCurrentIndex||0;return ScreenObject._toSizePx(JSON.parse(this.originalLayoutSpecificValues)[t].size,this.parentContainer.size)},set:function(){throw new Error("originalSize is not settable!")}},size:{get:function(){var t=ScreenObject._toSizePx(this.layoutCurrent.size,this.parentContainer.size);return new ScreenObject._Size(this,t)},set:function(t){this.layoutCurrent.size.width=t.width,this.layoutCurrent.size.height=t.height}},opacity:{get:function(){return this.layoutCurrent.opacity},set:function(t){this.layoutCurrent.opacity=t}},rotation:{get:function(){return this.layoutCurrent.rotation},set:function(t){this.layoutCurrent.rotation=t}},hidden:{get:function(){return this.layoutCurrent.hidden},set:function(t){this.layoutSpecificValues.forEach(function(e){e.hidden=t})}}}),ScreenObject.getCSSTranslate=function(t,e){return ScreenObject.requires3dTranslateForPositioning?"translate3d("+t+"px,"+e+"px, 0)":"translate("+t+"px,"+e+"px)"},ScreenObject.prototype._copyChosenExperimentProperties=function(t){var e,i,n=this.experimentSpecificValues[t];this.creativeOptimizationEnabled&&(i=creative.experiments.get(t,[creative.id,this.localId]),e=n.filter(function(t){return String(t.id)===i.chosenVariant}.bind(this))[0]),e||(e=n[0]);var r={};return deep(r,e),delete r.id,delete r.label,deep(this,r),i},ScreenObject.prototype._applyExperiments=function(){throw new Error("_applyExperiments not implemented")},ScreenObject.prototype.awake=function(){ScreenObject.uber.awake.call(this),this.originalLayoutSpecificValues=JSON.stringify(this.layoutSpecificValues),this.originalZIndex=this.zIndex,this.finishAnimation=this.finishAnimation.bind(this),this._refreshDisplayState=this._refreshDisplayState.bind(this)},ScreenObject.prototype.enterRenderTree=function(){this._isRendering||(this._isRendering=!0,this.emit("enteredRenderTree"))},ScreenObject.prototype.exitRenderTree=function(){this._isRendering&&(this._isRendering=!1,this._isInMouseOver&&trigger(this.node,"mouseout",!1),this.emit("exitedRenderTree"))},ScreenObject.prototype.react=function(t){var e=this.parentUnit.getRxStateObject(),i=function(){this._isRendering&&t.call(this,e)}.bind(this);null!==e&&(this._rxListeners.push(i),Ticker.frame(i,"render"))},ScreenObject.prototype.appearNestedObjects=function(){this.getNestedContainers().forEach(function(t){t.appear(),t.appearNestedObjects(t.objects)},this)},ScreenObject.prototype.disappearNestedObjects=function(){this.getNestedContainers().forEach(function(t){t.disappearNestedObjects(t.objects),t.disappear()},this)},ScreenObject.prototype.initTemplates=function(){var t=this.templates={},e=this.constructor.templates;if(e){for(var i in e)"string"==typeof e[i]&&(e[i]=tmpl(e[i]));extend(t,e)}},ScreenObject.prototype.tmpl=function(t,e,i){this.templates||this.initTemplates();var n=this.templates[t];return n?n.call(i||this,e):"Missing template: "+t},ScreenObject.prototype.template=function(t,e,i){var n,r=document.createElement("div");r.innerHTML=this.tmpl(t,e);var s=r.firstChild;if(i)for(;n=r.firstChild;)i.appendChild(n);return s},ScreenObject.prototype.ifNotClosing=function(t,e,i){var n=this.fireTriggersDryRun(t,null,noop,e)._actions,r=["dismiss","collapse"],s=!n.some(function(t){return r.indexOf(t.method)>-1});s&&i()},ScreenObject.prototype.createNode=function(){this.experimentSpecificValues&&this._applyExperiments(),this._isInMouseOver=!1;var t=this,e=ScreenObject.uber.createNode.call(t);e.style.position="absolute",this.hasTriggers("tap")&&(addClass(e,"touchable"),attach(e,"tap",function(){var e=new ActionContext(t,!0);t.ifNotClosing("tap",e,e.trackUserInteraction),t.fireTriggers("tap",null,null,e)},!1));var i="mouseOver",n=[];if(this.hasTriggers(i)){var r=this._getTriggers(i,null),s=[],o=noop;r.forEach(function(t){t.parameters&&t.parameters.delay&&s.indexOf(t.parameters.delay)<0&&s.push(t.parameters.delay)}),attach(e,"mouseover",function(){var e=new ActionContext(t,!0),r=function(n){return function(){t.fireTriggers(i,function(t){return t.delay==n},null,e)}};t._isInMouseOver=!0,s.forEach(function(t,e){o=r(t),n[e]=setTimeout(o,t)})},!1)}return attach(e,"mouseout",function(){var e=new ActionContext(t,!0);t._isInMouseOver=!1,n.forEach(clearTimeout),n=[],t.hasTriggers("mouseOut")&&t.fireTriggers("mouseOut",null,null,e)},!1),attach(e,"touchstart",function(){if(t.hasTriggers("touchstart")){var e=new ActionContext(t,!0);t.ifNotClosing("touchstart",e,e.trackUserInteraction),t.fireTriggers("touchstart",null,null,e)}},!1),attach(e,"touchend",function(){if(t.hasTriggers("touchend")){var e=new ActionContext(t,!0);t.ifNotClosing("touchend",e,e.trackUserInteraction),t.fireTriggers("touchend",null,null,e)}},!1),this.hasTriggers("swipe")&&(attach(e,"touchstart",function(t){t.stopPropagation()}),new SwipeListener({target:e,swipe:function(e,i){var n=new ActionContext(t,!0);t.fireTriggers("swipe",function(r){var s=e==r.direction&&i>=r.length;return s&&t.ifNotClosing("swipe",n,n.trackUserInteraction),s},null,n)}})),attach(e,"transitionend",function(t){t.stopPropagation()},!1),this.parentContainer.on("resize",this._refreshDisplayState),this.parentContainer.on("enteredRenderTree",function(){this.hidden||this.enterRenderTree()}.bind(this)),this.parentContainer.on("exitedRenderTree",function(){this.hidden||this.exitRenderTree()}.bind(this)),this.layoutPrevious=this.layoutCurrent,this.parentUnit.on("layoutChanged",this.handleLayoutChanged.bind(this)),this._applyStyles(e,this._calculateNewStyleAttributes()),this.positionUsingTransforms()||deviceInfo.browser.safari("9.0.0",null)||(e.style.outline="1px solid transparent"),this._rxListeners=[],e},ScreenObject.prototype.positionUsingTransforms=retFalse,ScreenObject.prototype.sizeUsingTransforms=retFalse,ScreenObject.prototype.isValid=retTrue,ScreenObject.prototype.getNaturalSize=function(){return this.originalSize},ScreenObject.prototype._calculateNewStyleAttributes=function(){var t={transform:"",transformOrigin:"50% 50%"},e=this.getNaturalSize(),i=this.position.x,n=this.position.y;if(this.sizeUsingTransforms()&&(i+=ScreenObject._roundIfNeeded((this.size.width-e.width)/2),n+=ScreenObject._roundIfNeeded((this.size.height-e.height)/2)),this.positionUsingTransforms()?(t.left="0",t.top="0",(i||n)&&(t.transform+=ScreenObject.getCSSTranslate(i,n))):(t.left=i+"px",t.top=n+"px"),(this.isAnimated||0!=this.rotation)&&(t.transform+=" rotate("+this.rotation+"deg) "),this.sizeUsingTransforms()){t.width=e.width+"px",t.height=e.height+"px";var r=this.size.width/e.width,s=this.size.height/e.height;t.transform+=" scale("+r+", "+s+")"}else t.width=this.size.width+"px",t.height=this.size.height+"px";return t.zIndex=this.zIndex,t.opacity=this.opacity,t.display=this.hidden?"none":"block",t},ScreenObject.prototype._applyStyles=function(t,e){e&&Object.keys(e).forEach(function(i){celtra.styler.css(t,i,e[i])})},ScreenObject.prototype._refreshDisplayState=function(){if(this.node){var t=this._calculateNewStyleAttributes(),e=!1;for(var i in t){var n=String(t[i]).replace(/^\s*|\s*$/g,""),r=celtra.styler.css(this.node,i),s=null;celtra.styler.css(this.node,i)!==n&&(s=n,r!=s&&"zIndex"!=i&&"display"!=i&&(e=!0))}return this._applyStyles(this.node,t),this.redrawLayout(),e}},ScreenObject.prototype.finishAnimation=function(){this.node&&void 0!==celtra.styler.css(this.node,"transitionDuration")&&(celtra.styler.css(this.node,"transitionDuration","1ms"),this.node.offsetWidth,celtra.styler.css(this.node,"transitionDuration",""))},ScreenObject.prototype.handleLayoutChanged=function(){var t=function(){this.layoutPrevious.hidden&&!this.layoutCurrent.hidden?this.enterRenderTreeAndAppear(!0):!this.layoutPrevious.hidden&&this.layoutCurrent.hidden&&this.parentContainer._isRendering&&this.exitRenderTree(),this.layoutPrevious=this.layoutCurrent}.bind(this);ios()?defer(t):t(),this.finishAnimation(),this._refreshDisplayState()},ScreenObject.prototype.redrawLayout=function(){},ScreenObject.prototype.setPosition=function(t,e){this.position={left:t+"px",top:e+"px"},this._refreshDisplayState()},ScreenObject.prototype.getPosition=function(){return{x:this.position.x,y:this.position.y}},ScreenObject.prototype.setSize=function(t,e){this.size.width=t,this.size.height=e,this._refreshDisplayState()},ScreenObject.prototype.getSize=function(){return{width:this.size.width,height:this.size.height}},ScreenObject.prototype.setOpacity=function(t){this.opacity=t,this._refreshDisplayState()},ScreenObject.prototype.getOpacity=function(){return this.opacity},ScreenObject.prototype.animateAction=function(t,e,i){function n(t){return!isNaN(parseFloat(t))&&isFinite(t)}function r(t){var e={position:{},size:{width:null,height:null},zIndex:null,opacity:null,rotation:null};return deep(e,t),e}function s(t,e){var i=e.size,n=t.size;null==i.width&&(i.width=n.width),null==i.height&&(i.height=n.height),t.size=i;var r=t.position,s=e.position,o=null,a=null,c=null,h=null;["left","right","hcenter"].forEach(function(t){t in r&&(o=t),t in s&&(c=t)}),["bottom","top","vcenter"].forEach(function(t){t in r&&(a=t),t in s&&(h=t)}),c&&null!==s[c]&&(delete r[o],r[c]=s[c]),h&&null!==s[h]&&(delete r[a],r[h]=s[h]),null!=e.rotation&&(t.rotation=e.rotation),null!=e.opacity&&(t.opacity=e.opacity),null!=e.zIndex&&(t.zIndex=e.zIndex)}i=i||noop,this.isAnimated=!0;var o="undefined"!=typeof e.duration?e.duration:1e3,a=e.timingFunction||"linear";if(e.layoutSpecificValues)e.layoutSpecificValues.forEach(function(t,e){this.layoutSpecificValues[e]&&s(this.layoutSpecificValues[e],r(t))}.bind(this));else{var c=r(e.properties);null!=c.position.x&&(c.position.left=c.position.x+"px"),null!=c.position.y&&(c.position.top=c.position.y+"px"),null!=c.zIndex&&(c.zIndex=c.zIndex+ScreenObject._zIndexOffset,this.zIndex=c.zIndex),null!=c.size.width&&n(c.size.width)&&(c.size.width+="px"),null!=c.size.height&&n(c.size.height)&&(c.size.height+="px"),s(this.layoutCurrent,c)}var h=this.node;celtra.styler.css(h,"transition",""),celtra.styler.css(h,"transitionProperty","all"),celtra.styler.css(h,"transitionDuration",o+"ms"),celtra.styler.css(h,"transitionTimingFunction",a);var u=this._refreshDisplayState();if(o>0&&u){var l=!1,p=function(){l||(l=!0,i())};ScreenObject.requiresRedrawToTriggerAnimationEvents&&!function(){var t=Date.now(),e=t+(Number(o)||0),i=function(){flash(),Date.now()0?o:0;setTimeout(i,d)}},ScreenObject.prototype.enterRenderTreeAndAppear=function(t){t&&this.parentScreen._isRendering&&this.enterRenderTree(),t&&!this.isAppearing&&this._shouldAppear&&this.appear()},ScreenObject.prototype.scaleAction=function(t,e,i){var n=e.useOriginalSize?this.originalSize:this.size,r=e.scale/100,s={width:n.width*r,height:n.height*r},o={x:this.position.x+this.size.width/2-s.width/2,y:this.position.y+this.size.height/2-s.height/2};this.animateAction(t,{properties:{position:o,size:s},duration:e.duration,timingFunction:e.timingFunction},i)},ScreenObject.prototype.showAction=function(t,e,i){var n=this.hidden;this.hidden=!1,this.node.style.display="block",this.enterRenderTreeAndAppear(n),this.node.offsetWidth,nextFrame(i)},ScreenObject.prototype.hideAction=function(t,e,i){var n=this.hidden;this.hidden=!0,this.node.style.display="none",!n&&this.parentScreen._isRendering&&(this.isAppearing&&(this.disappear(),this._shouldAppear=!0),this.exitRenderTree()),setTimeout(i,0)},ScreenObject.prototype.isHidden=function(){return this.hidden},ScreenObject.prototype.resetAction=function(t,e,i){this.layoutSpecificValues=JSON.parse(this.originalLayoutSpecificValues),this.reset(),this.zIndex=this.originalZIndex,this.finishAnimation(),this._refreshDisplayState(),defer(i)},ScreenObject.prototype.addStyle=function(t){var e="#celtra-object-"+this.localId,i=this.node,n=/^:(link|visited|active|hover|focus|first-child|nth-child|nth-last-child|nth-of-type|first-of-type|last-of-type|empty|target|checked|enabled|disabled)/,r=/,\s*/g;this.styleNode||(this.styleNode=document.createElement("style"),i||(i=document.getElementsByTagName("head")[0]),i.appendChild(this.styleNode));var s=[];for(var o in t)s.push({selector:o.split(r).map(function(t){return e+(n.test(t)?"":" ")+t}).join(","),attributes:t[o]});var a=this._styleSheetTemplate({rules:s});this.styleNode.textContent+=a},ScreenObject.prototype._styleSheetTemplate=tmpl("<% for (var i = 0; i < rules.length; i++) { %><%= rules[i].selector %> { <%= rules[i].attributes %> }\n<% } %>"),ScreenObject.prototype.css=function(t,e){"undefined"==typeof e&&(e=t,t=this.getNode()),Object.keys(e).forEach(function(i){celtra.styler.css(t,i,e[i])})},ScreenObject.prototype.getNestedContainers=function(){return[]},ScreenObject.prototype.getActiveContainers=function(){return this.getNestedContainers()};;
function Hotspot(){}inherit(Hotspot,ScreenObject),Hotspot.toString=function(){return"[Clazz Hotspot]"},Hotspot.prototype.toString=function(){return"[Hotspot "+this.localId+"]"},Hotspot.prototype.createNode=function(){var t=Hotspot.uber.createNode.call(this);return addClass(t,"touchable"),attach(t,"tap",this.handleTap),t},Hotspot.prototype.handleTap=function(t){t.stopPropagation()};;
function Group(){}inherit(Group,ScreenObject),Group.toString=function(){return"[Clazz Group]"},Group.prototype.toString=function(){return"[Group "+this.localId+"]"},Group.prototype.createNode=function(){var t=Group.uber.createNode.call(this);return this.incrementLoadingCount(),t.appendChild(this.content.getNode(this.decrementLoadingCount)),t},Group.prototype.getNestedContainers=function(){return[this.content]},Group.prototype.positionUsingTransforms=ios("8")?retFalse:retTrue,Group.prototype.sizeUsingTransforms=retTrue,Group.prototype.getNaturalSize=function(){return this.originalSize},Group.prototype._appear=function(){this.appearNestedObjects()},Group.prototype._disappear=function(){this.disappearNestedObjects()};var ObjectGroup=Group;;
function Picture(){}inherit(Picture,ScreenObject),Picture.toString=function(){return"[Clazz Picture]"},Picture.prototype.toString=function(){return"[Picture "+this.localId+"]"},Picture.prototype.createNode=function(){var e=new File("runner/image-placeholder.png");e.meta={height:28,width:28},this.file||(this.file=e);var i={};this._useDynamicImage="feed"===this.assetSource&&null!=this.feedFieldKey&&"string"==typeof creative.runtimeParams.dynamicContent[this.feedFieldKey],"feed"===this.assetSource&&creative.checkAndTrackFeedValueMissing(new ActionContext(this),this.feedFieldKey),this._useDynamicImage&&(this.file=new File,this.file.url=creative.runtimeParams.dynamicContent[this.feedFieldKey],this.file.meta=ScreenObject._toSizePx(this.layoutCurrent.size,this.parentContainer.size),i.force=!1);var t=Picture.uber.createNode.call(this);return this.file===e?(("feed"!=this.assetSource||"feed"===this.assetSource&&null===this.feedFieldKey)&&(addClass(t,"empty"),this._preloadImage(new File("runner/image-placeholder.png"),{force:!1},function(e,i){t.style.backgroundImage="url("+i+")"})),t):(this._preloadImage(this.file,i,this._handlePreloadedImage.bind(this,t)),t)},Picture.prototype._handlePreloadedImage=function(e,i){this._useDynamicImage&&(this.file.meta={height:i.naturalHeight,width:i.naturalWidth});var t="",r="",s="no-repeat";this.imagePosition&&(t=this.imagePosition.replace("-"," "));var a=this.sizeUsingTransforms()?this.getNaturalSize():this.size,n=this.fittingSize;switch("fitUpToOriginal"===this.fittingSize&&(n=a.widthl&&"fit"==this.fittingSize||l>n&&"fill"==this.fittingSize,i=l>n&&"fit"==this.fittingSize||n>l&&"fill"==this.fittingSize,t=s,r=a,e?r=s/h*o:i&&(t=a/o*h),t>c&&(r*=c/t,t=c),r>c&&(t*=c/r,r=c),{width:t,height:r})},Picture.prototype.getImageUrl=function(){return this.file?this.file.getUrl():void 0};;
function Texty(){}inherit(Texty,ScreenObject),extend(Texty.prototype,TextStyleIntegrator),Texty.toString=function(){return"[Clazz Texty]"},Texty.prototype.toString=function(){return"[Texty "+this.localId+"]"},Texty.prototype.awake=function(){Texty.uber.awake.call(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this)},Texty.prototype.createNode=function(){var t=Texty.uber.createNode.call(this);if(this.scroller=null,this._autoscrolling=!1,this._listeningForTouches=!1,this._textToSet=!1,this._sanitizeText=!0,this._fontScaleFactor=1,this._lineHeightRatio=1,this._letterSpacingRatio=1,this._responsiveFontSize=this._getNaturalFontSize(),this.dynamicContentEnabled){creative.checkAndTrackFeedValueMissing(new ActionContext(this),this.feedFieldKey);var e="";null!=this.feedFieldKey&&"string"==typeof creative.runtimeParams.dynamicContent[this.feedFieldKey]&&(e=creative.runtimeParams.dynamicContent[this.feedFieldKey]),this.text=e}return this._initialText=this.text,this._initialScaleFont=this.scaleFont,this._scrollContainer=document.createElement("div"),this._scrollContainer.className="scroll-container",this._textContainer=document.createElement("div"),this._textContainerClone=document.createElement("div"),this._textContainerClone.style.display="none",this._textContainerResponsive=document.createElement("div"),this._textContainerResponsive.style.visibility="hidden",(deviceInfo.browser.chrome(null,"48")||"Samsung Browser"===deviceInfo.browser.name)&&(this._textContainer.style.textRendering="geometricPrecision",this._textContainerClone.style.textRendering="geometricPrecision",this._textContainerResponsive.style.textRendering="geometricPrecision"),this.scrollable&&(this.scroller=new Scroller(t,this._textContainer,{direction:"vertical",animating:!0,easing:!0,locking:!1,scrollbarPosition:this.scrollbarPosition,scrollbarColor:this.scrollbarColor})),this.initializeFont(),this._scrollContainer.appendChild(this._textContainer),this._scrollContainer.appendChild(this._textContainerClone),this._scrollContainer.appendChild(this._textContainerResponsive),t.appendChild(this._scrollContainer),this._startListeningForTouches(),t},Texty.prototype._appear=function(){this._handleSizeUpdate()},Texty.prototype.redrawLayout=function(){this._handleSizeUpdate()},Texty.prototype._handleSizeUpdate=function(){this._applyTextSize(),this._updateText()},Texty.prototype._applyTextSize=function(){this.responsiveFont||(this.applyTextSize(this._textContainer.style),this.applyTextSize(this._textContainerClone.style)),this._alignText()},Texty.prototype._alignText=function(){var t=this._getDefaultPadding(),e=t,i=t,n=parseInt(this._textContainer.style.paddingLeft,10),o=parseInt(this._textContainer.style.paddingRight,10);if("undefined"!=typeof this.scaleFont&&this.scaleFont&&("right"!=this.textAlign||isNaN(n)?"left"!=this.textAlign||isNaN(o)||(i=o-t):e=n-t),[this._textContainer,this._textContainerClone].forEach(function(n){n.style.paddingBottom=t+"px",n.style.paddingLeft=Math.max(e,t)+"px",n.style.paddingRight=Math.max(i,t)+"px"}),this.scrollable||this._scrollContainer.offsetHeight<=this._textContainer.offsetHeight||"undefined"==typeof this.textAlignVertical)return void(this._textContainer.style.paddingTop=t+"px");this._textContainerClone.style.display="inline",this._textContainerClone.style.paddingTop=0,this._textContainerClone.style.height=0;var s=this.scrollable?0:Number(this.textAlignVertical),h=this.getNaturalSize().height,a=0===s?0:this._textContainerClone.scrollHeight,r=Math.max(0,(h-a)*s/100),l=0;r=isNaN(r)?0:r,l=s>50&&h>a?-t:50==s&&h>a?t/2:t,this._textContainer.style.marginTop=r+l+"px",this._textContainer.style.paddingTop="0px",this._textContainerClone.style.display="none"},Texty.prototype._getContentSizeOfResponsiveContainer=function(){var t=this._textContainerResponsive.getBoundingClientRect(),e=this._textContainerResponsive.scrollHeight+(parseInt(t.height)-t.height),i=this._textContainerResponsive.scrollWidth+(parseInt(t.width)-t.width);return{width:i,height:e}},Texty.prototype._applyAdjustedFontSizeStyle=function(t){var e=this._responsiveFontSize*this._fontScaleFactor;t.style.fontSize=e+"px",t.style.lineHeight=Math.max(1,e*this._lineHeightRatio)+"px",t.style.letterSpacing=Math.max(0,e*this._letterSpacingRatio)+"px"},Texty.prototype._adjustFontSize=function(){if(this.responsiveFont&&!hasClass(this.node,"animated")){var t=.5,e=this.getFontSize(),i=this._getNaturalFontSize(),n=Math.max(Math.round(i*t),1);this._fontScaleFactor=e/i;var o=1/this._fontScaleFactor;this._responsiveFontSize=i;var s=Math.max(1,this.getLineSpacing()+e);this._lineHeightRatio=s/e,this._letterSpacingRatio=this.getLetterSpacing()/e;var h=this.getNaturalSize();this._applyAdjustedFontSizeStyle(this._textContainerResponsive);for(var a=this._getContentSizeOfResponsiveContainer();this._responsiveFontSize>n&&(a.height>h.height||a.width>h.width);)this._responsiveFontSize-=o,this._applyAdjustedFontSizeStyle(this._textContainerResponsive),a=this._getContentSizeOfResponsiveContainer();this._applyAdjustedFontSizeStyle(this._textContainer),this._applyAdjustedFontSizeStyle(this._textContainerClone)}},Texty.prototype.updateTextStyle=function(){this.applyTextStyle(this._textContainer.style),this.applyTextStyle(this._textContainerClone.style),this.applyTextStyle(this._textContainerResponsive.style),this._textContainer.style.whiteSpace="pre-wrap",this._textContainerClone.style.whiteSpace="pre-wrap",this._textContainerResponsive.style.whiteSpace="pre-wrap"},Texty.prototype._updateText=function(){var t=this._sanitizeText?htmlentitize(this.text.toString()):this.text;this._textContainer.innerHTML=t,this._textContainerClone.innerHTML=t,this._textContainerResponsive.innerHTML=t,this._adjustFontSize(),this._alignText(),this.scrollable&&(this.scroller.redraw(),this.scroller.scrollTo(0,0,!1),this.autoscrollEnabled&&(this._resetAutoScroll(),this._createAutoScroll()))},Texty.prototype._createAutoScroll=function(){var t=this.scroller.getMaxScroll();defer(function(){this.scroller.scrollTo(t.left,t.top,!0,this.autoscrollDuration,!0,function(){"return"===this.autoscrollConclusion?this.scroller.scrollTo(0,0,!0,this.autoscrollDuration,!0):"loop"===this.autoscrollConclusion&&(this._autoscrolling=!0,e())}.bind(this))}.bind(this),this.autoscrollDelay);var e=function(){this._autoscrolling&&this.scroller.scrollTo(0,0,!0,this.autoscrollDuration,!0,function(){this.scroller.scrollTo(t.left,t.top,!0,this.autoscrollDuration,!0,e)}.bind(this))}.bind(this)},Texty.prototype._resetAutoScroll=function(){this._autoscrolling=!1},Texty.prototype._handleTouchStart=function(t){t.preventDefault(),new ActionContext(this,!0).trackUserInteraction(),this.scrollable&&(this._resetAutoScroll(),t.stopPropagation(),this.scroller._handleTouchStart(t),attach(this.parentUnit.node,"touchmove",this._handleTouchMove),attach(this.parentUnit.node,"touchend",this._handleTouchEnd),attach(this.parentUnit.node,"touchcancel",this._handleTouchCancel))},Texty.prototype._handleTouchMove=function(t){t.preventDefault(),this.scroller._handleTouchMove(t)},Texty.prototype._handleTouchEnd=function(t){t.preventDefault(),this.scroller._handleTouchEnd(t),detach(this.parentUnit.node,"touchmove",this._handleTouchMove),detach(this.parentUnit.node,"touchend",this._handleTouchEnd),detach(this.parentUnit.node,"touchcancel",this._handleTouchCancel)},Texty.prototype._handleTouchCancel=function(t){this._handleTouchEnd(t)},Texty.prototype.positionUsingTransforms=retTrue,Texty.prototype.sizeUsingTransforms=retTrue,Texty.prototype.getNaturalSize=function(){return this.originalSize},Texty.prototype._getNaturalFontSize=function(){return this.fontSize},Texty.prototype._getDefaultPadding=function(){return this.usePadding?2:0},Texty.prototype._startListeningForTouches=function(){this.scrollable&&!this._listeningForTouches&&(attach(this._textContainer,"touchstart",this._handleTouchStart),this._listeningForTouches=!0)},Texty.prototype._stopListeningForTouches=function(){this._listeningForTouches&&(detach(this._textContainer,"touchstart",this._handleTouchStart),this._listeningForTouches=!1)},Texty.prototype._setText=function(t){this._sanitizeText=!1,this.text=t,this.scaleFont&&(this.scaleFont=!1),this.hidden?this._textToSet=!0:(this._updateText(),this._applyTextSize())},Texty.prototype.showAction=function(t,e,i){Texty.uber.showAction.call(this,t,e,function(){this._startListeningForTouches(),this._textToSet&&(this._textToSet=!1,this._updateText()),i()}.bind(this))},Texty.prototype.hideAction=function(t,e,i){Texty.uber.hideAction.call(this,t,e,function(){this._stopListeningForTouches(),i()}.bind(this))},Texty.prototype.resetAction=function(t,e,i){this._textToSet=!1,this._sanitizeText=!0,Texty.uber.resetAction.call(this,t,e,function(){this.hidden||this._startListeningForTouches(),this.text=this._initialText,this.scaleFont=this._initialScaleFont,this._handleSizeUpdate(),i()}.bind(this))},Texty.prototype.setTextAction=function(t,e,i){this._setText(e.text),i()};;
function Shapey(){}inherit(Shapey,ScreenObject),Shapey.toString=function(){return"[Clazz Shapey]"},Shapey.prototype.toString=function(){return"[Shapey "+this.localId+"]"},Object.defineProperties(Shapey.prototype,{_borderRoundness:{get:function(){var e=0,t=0,a=0,r=this._defaultValues.roundness;if("number"==typeof this.roundness&&(r=this.roundness),r>0){var s=Math.min(this.getNaturalSize().height,this.getNaturalSize().width),o=s/2,i=Math.max(this.getNaturalSize().height,this.getNaturalSize().width),h=i/2;if(50>r){var d=r/50;e=o*d}else{var p=(r-50)/50,n=(h-o)*p,u=o+n;t=this.getNaturalSize().width==s?o:u,a=this.getNaturalSize().height==s?o:u}}return this.shadow&&ios("8")&&window.devicePixelRatio>=3&&(1>e&&(e=1),1>t&&(t=1),1>a&&(a=1)),50>r?e+"px":t+"px "+a+"px"}}}),Shapey.prototype.awake=function(){Shapey.uber.awake.call(this),this._defaultValues={backgroundColor:"#365c99",borderColor:"#000000",borderWidth:5,roundness:0,shadowAngle:0,shadowBlur:10,shadowColor:"rgba(0,0,0,0.5)",shadowDistance:0}},Shapey.prototype.createNode=function(){var e=Shapey.uber.createNode.call(this);if(this._privateApiTracked={},e.className+=" touchable",this._shapey=document.createElement("div"),this.backgroundColor)if(Color.isGradient(this.backgroundColor)){var t=Color.createGradientStyle(this.backgroundColor);this.addStyle({".gradient-shapey":t}),addClass(this._shapey,"gradient-shapey")}else this._shapey.style.backgroundColor=this.backgroundColor;if(this.border){var a="undefined"!=typeof this.borderColor?this.borderColor:this._defaultValues.borderColor,r="number"==typeof this.borderWidth?this.borderWidth:this._defaultValues.borderWidth;this._shapey.style.borderColor=a,this._shapey.style.borderStyle="solid",this._shapey.style.borderWidth=r+"px"}if(this.shadow){var s=("number"==typeof this.shadowAngle?this.shadowAngle:this._defaultValues.shadowAngle)*(Math.PI/180),o="number"==typeof this.shadowBlur?this.shadowBlur:this._defaultValues.shadowBlur,i="undefined"!=typeof this.shadowColor?this.shadowColor:this._defaultValues.shadowColor,h="number"==typeof this.shadowDistance?this.shadowDistance:this._defaultValues.shadowDistance,d=Math.round(h*Math.cos(s)),p=Math.round(h*Math.sin(s));celtra.styler.css(this._shapey,"boxShadow",d+"px "+p+"px "+o+"px "+i)}return e.appendChild(this._shapey),e},Shapey.prototype.redrawLayout=function(){if(this._shapey){var e=this._borderRoundness;parseInt(e,10)>0&&(this._shapey.style.borderTopLeftRadius=e,this._shapey.style.borderTopRightRadius=e,this._shapey.style.borderBottomLeftRadius=e,this._shapey.style.borderBottomRightRadius=e)}},Shapey.prototype._track=function(e){this._privateApiTracked[e]||(this._privateApiTracked[e]=!0,creative.track({name:"retiredFeatureUsed",featureType:"apifunction",featureName:e}))},Shapey.deprecatedPropertiesArray=["borderRoundness","shapey","defaultValues"],Shapey.deprecatedPropertiesObject={},Shapey.deprecatedPropertiesArray.forEach(function(e){Shapey.deprecatedPropertiesObject[e]={get:function(){return this._track("Shapey."+e+".getter"),this["_"+e]},set:function(t){this._track("Shapey."+e+".setter"),this["_"+e]=t}}}),Object.defineProperties(Shapey.prototype,Shapey.deprecatedPropertiesObject);;
function File(t){this.url=t}File.toString=function(){return"[Clazz File]"},File.prototype.toString=function(){return"[File "+this.localId+"("+this.name+"/"+this.url+")]"},File.prototype.getOriginalUrl=function(){if(this.url){if(-1!==this.url.indexOf("://"))return this.url;if("/"===this.url[0])throw"An absolute path as URL?";return creative.resourceUrl+this.url}if(this.blobHash)return(creative.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+"blobs/"+this.blobHash+"/"+encodeURIComponent(this.name);throw"Neither url nor blobHash set?"},File.prototype.getUrl=function(){var t=this.getOriginalUrl(),i=String(this.name).match(/\.(gif|png|jpe?g)$/i);return this.blobHash&&i&&(t+="?transform=crush",this.quality>-1&&(t+="&quality="+this.quality),this.optimizedWidth>0&&this.optimizedHeight>0&&(t+="&resize="+this.optimizedWidth+"x"+this.optimizedHeight)),t},File.prototype.getDataUri=function(t,i){t instanceof Function&&(i=t,t={});var e=this,r=this.getUrl();"undefined"!=typeof this.dataUri?defer(function(){i(e.dataUri)},0,"File.getDataUri defer callback, has dataUri"):creative.dataURIsEnabled||t.force?creative.batcher.getDataUri(r,i):defer(function(){i(r)},0,"File.getDataUri defer callback, url")},Object.defineProperty(File.prototype,"width",{get:function(){return this.retina?Math.round(this.meta.width/2):this.meta.width}}),Object.defineProperty(File.prototype,"height",{get:function(){return this.retina?Math.round(this.meta.height/2):this.meta.height}});;
function Font(){}inherit(Font,FontBase),Font.toString=function(){return"[Clazz Font]"},Font.prototype.toString=function(){return"[Font "+this.localId+"]"},Font.prototype.hasFeedFields=function(){return this.feedFields instanceof Array},Font.prototype.getSubsetString=function(){var t=Font.uber.getSubsetString.apply(this);if(!this.hasFeedFields())return t;if("string"==typeof this.extendedSubsetString)return this.extendedSubsetString;var e=t||"";return this.feedFields.forEach(function(t){var n=creative.runtimeParams.dynamicContent[t];"string"==typeof n&&(e+=n)}),this.extendedSubsetString=e.replace(/[\r\n\t\f\v]/g,"").split("").filter(function(t,e,n){return n.indexOf(t)===e}).sort().join(""),this.extendedSubsetString},Font.prototype.getUnicodeRange=function(){return this.hasFeedFields()?"":Font.uber.getUnicodeRange.apply(this)};;
function GalleryGroup(){}inherit(GalleryGroup,ScreenObject),GalleryGroup.toString=function(){return"[Clazz GalleryGroup]"},GalleryGroup.prototype.toString=function(){return"[GalleryGroup "+this.localId+"]"},GalleryGroup.prototype.createNode=function(){var t=GalleryGroup.uber.createNode.call(this);return this.defaultImage||(this.defaultImage=new File("runner/loading.png"),this.defaultImage.meta={width:1280,height:1280}),this._loadedResources={},t},GalleryGroup.prototype._appear=function(){this.autoAnimate&&!this.autoAnimationTimeout&&this.startAutoAnimate()},GalleryGroup.prototype._disappear=function(){this._stopAutoAnimate(),this.disappearNestedObjects()},GalleryGroup.prototype.nextItem=function(t){this.goToItem(this.getFocusedIndex()+1,t)},GalleryGroup.prototype.previousItem=function(t){this.goToItem(this.getFocusedIndex()-1,t)},GalleryGroup.prototype.previousAction=function(t,e,o){this.previousItem(o)},GalleryGroup.prototype.nextAction=function(t,e,o){this.nextItem(o)},GalleryGroup.prototype.goToItemAction=function(t,e,o){this.goToItem(e.item-1,o)},GalleryGroup.prototype.startIndex=0,GalleryGroup.prototype.allowAutoAnimate=retTrue,GalleryGroup.prototype.resetAllowAutoAnimate=noop,GalleryGroup.prototype.getItem=function(t){return this.content[t%this.getItemsLength()]},GalleryGroup.prototype.getItemsLength=function(){return this.content.length},GalleryGroup.prototype.startAutoAnimateAction=function(t,e,o){this.resetAllowAutoAnimate(),this.autoAnimationTimeout||this.startAutoAnimate(),o()},GalleryGroup.prototype._autoAnimateCancelledInTransition=!1,GalleryGroup.prototype.startAutoAnimate=function(){this._autoAnimateCancelledInTransition=!1;var t=this._animateCallback;if(!t){var e,o,n=this,i=!0,a=n.getItemsLength()-1,r="north"==n.autoAnimateDirection||"west"==n.autoAnimateDirection?"nextItem":"previousItem";t=function(){return n._autoAnimateCancelledInTransition?void(n._autoAnimateCancelledInTransition=!1):void(n.autoAnimationTimeout=setTimeout(u,n.autoAnimatePause))};var u=function(){function u(i){l!==a||"west"!=n.autoAnimateDirection&&"north"!=n.autoAnimateDirection?0!==l||"east"!=n.autoAnimateDirection&&"south"!=n.autoAnimateDirection||(n.goToItem(a,t),i&&(o=!1,e=!1)):(n.goToItem(0,t),i&&(o=!1,e=!1))}if(n.autoAnimationTimeout=null,!n.allowAutoAnimate())return void(n.autoAnimateUserInteraction?n.disableAutoAnimate():t());var l=n.getFocusedIndex();if(i)"repeat"===n.autoAnimateConclusion&&n.cyclic||u(!0),i=!1;else if(l===a||0===l)switch(n.autoAnimateConclusion){case"stop":if(o)return void n.disableAutoAnimate();break;case"reverse":e&&(r="previousItem"==r?"nextItem":"previousItem");break;case"repeat":n.cyclic||u(!1)}(0!==l&&"previousItem"===r||l!==a&&"nextItem"===r||n.cyclic&&"repeat"===n.autoAnimateConclusion)&&(n[r](t),e=!0,o=!0)};n._animateCallback=t}t()},GalleryGroup.prototype._stopAutoAnimate=function(){var t=this.autoAnimationTimeout;t?(clearTimeout(t),delete this.autoAnimationTimeout):this._autoAnimateCancelledInTransition=!0,delete this._animateCallback},GalleryGroup.prototype.stopAutoAnimateAction=function(t,e,o){this._stopAutoAnimate(),o()},GalleryGroup.prototype.disableAutoAnimate=function(){this._stopAutoAnimate()},GalleryGroup.prototype.resetAction=function(t,e,o){GalleryGroup.uber.resetAction.call(this,t,e,function(){this._stopAutoAnimate(),this.autoAnimate&&this.startAutoAnimate(),o()}.bind(this))},GalleryGroup.prototype._handleAllowTouches=function(t){for(var e=0;et||t>=this.getItemsLength()))return 0;var o=t-this.getFocusedIndex(),n=this.getItemsLength();return e&&Math.abs(o)>=n/2&&(o+=0>o?n:-n),o},GalleryGroup.prototype._preloadContainers=function(t,e){var o=t.length;t.forEach(function(t){t.getNode(function(){--o||e()})})},GalleryGroup.prototype.getDefaultImageSrc=function(){return this.defaultImageNode.src};;
function SwipeyGroup(){}inherit(SwipeyGroup,GalleryGroup),SwipeyGroup.toString=function(){return"[Clazz SwipeyGroup]"},SwipeyGroup.prototype.toString=function(){return"[SwipeyGroup "+this.localId+"]"},SwipeyGroup.prototype.awake=function(){SwipeyGroup.uber.awake.call(this),this._animationLength=200,this._minimumDistanceForMovedState=5,this._rubberBandQuotient=4,this._swipeThreshold=.2,this.startIndex=this.startIndex-1,this._state=new StateObject({itemIndex:this.startIndex,moved:!1,position:0,touchPosition:0}),this._animator=new EasingAnimation(this._state,"position",{exp:EasingAnimation.presets.easeIn}),this._actionContextOfFirstTouchStart=null,this._autoAnimateDisabledByUserTouch=!1,this._autoAnimateHaltedByUserTouch=!1,this._contentListItems=[],this._currentTouchIdentifier=null,this._cycleSize=0,this._drawOffset=0,this._firstTouchStart=null,this._allowHorizontalSwipe=!0,this._horizontalSwipeInProgress=!1,this._itemSize=0,this._lastFocusedVirtualIndex=null,this._initialJumpToItemFinished=!1,this._touchHandlersAttached=!1,this._cyclic=this.cyclic&&this.content.length>2,this._draw=this._draw.bind(this),this._handleStateIndexChange=this._handleStateIndexChange.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this.on("appeared",function(){new ActionContext(this).track({name:"itemFocused",item:this._state.itemIndex+1}),this._triggerOnFocus()}.bind(this))},SwipeyGroup.prototype.createNode=function(){var t=SwipeyGroup.uber.createNode.call(this);return this._privateApiTracked={},this._preloadInitialContainers(),this._init(t),t},SwipeyGroup.prototype._preloadInitialContainers=function(){var t,e,i=[];this._cyclic?(e=this._wrapAround(this.startIndex-1,this.content.length),t=this._wrapAround(this.startIndex+1,this.content.length)):(this.startIndex0&&(e=this.startIndex-1));var n=function(t){var e=this.content[t];e&&i.push(e)}.bind(this);n(e),n(this.startIndex),n(t),this.incrementLoadingCount(),this._preloadContainers(i,this.decrementLoadingCount.bind(this))},SwipeyGroup.prototype._init=function(t){this._ul=document.createElement("ul"),addClass(this._ul,"swipey"),this._ul.style.display="none",this.content.forEach(function(t,e){var i=document.createElement("li");if(i.appendChild(t.getNode()),this._cyclic){var n=this._wrapAround(e-this.startIndex+1,this.content.length);this._contentListItems[n]=i}else this._contentListItems.push(i);addClass(i,"touchable"),this._ul.appendChild(i)}.bind(this)),this._drawOffset=this._cyclic?this.startIndex-1:0;var e=this.autoAnimate&&this.autoAnimatePreventUserInteraction;e||attach(this._ul,"touchstart",this._handleTouchStart),this._state.on("change:itemIndex",function(t){Ticker.frame(this._draw,"next"),this._handleStateIndexChange(t)}.bind(this)),t.appendChild(this._ul),this._state.on("change:position",function(){this._initialJumpToItemFinished&&Ticker.frame(this._draw,"next")}.bind(this)),this.pagination&&"hidden"!==this.pagination&&(this._paginator=new Paginator({container:t,containerSize:this.size,position:this.pagination,itemsCount:this.content.length}),this._paginator.buildPagination())},SwipeyGroup.prototype._appear=function(){SwipeyGroup.uber._appear.call(this),this._ul.style.display="block",this._checkInitialJump(),this.content.forEach(function(t){t.emit("resize")})},SwipeyGroup.prototype._checkInitialJump=function(){this._initialJumpToItemFinished||isNaN(this._getFocusedVirtualIndex())||(this._lastFocusedVirtualIndex=this._getFocusedVirtualIndex(),this._cyclic||this.jumpToItem(this.startIndex),this._initialJumpToItemFinished=!0)},SwipeyGroup.prototype.redrawLayout=function(){this._ul.style.display=this.hidden?"none":"block",this._checkInitialJump(),this.vertical=this.layoutSpecificValues[this.parentUnit.layoutCurrentIndex].vertical,this._itemSize=(this.vertical?this.size.height:this.size.width)+this.cellspacing,this._cycleSize=this._itemSize*this.content.length,this._state.position=this._getPositionForCentered(this._getItemCenter(this._state.itemIndex)),this.vertical?addClass(this._ul,"vertical"):removeClass(this._ul,"vertical"),this._paginator&&this._paginator.redrawPagination(this.size),this._draw()},SwipeyGroup.prototype._handleStateIndexChange=function(){var t=this.getFocusedIndex();this._lastFocusedIndex!=t&&new ActionContext(this).track({name:"itemFocused",item:this._state.itemIndex+1}),this._triggerOnBlur(),this._triggerOnFocus()},SwipeyGroup.prototype._draw=function(){function t(t,e,i){var n=ScreenObject.supports3d?"translate3d("+e+"px, "+i+"px, 0)":"translate("+e+"px, "+i+"px)";celtra.styler.css(t,"transform",n)}this._calculateCyclicDrawOffset(),this._contentListItems.forEach(function(e,i){var n={x:0,y:0},o=-this._state.position+(i+this._drawOffset)*this._itemSize;n[this.vertical?"y":"x"]=o,t(e,Math.round(n.x),Math.round(n.y))}.bind(this)),this._paginator&&this._paginator.setActivePaginationItem(this.getFocusedIndex())},SwipeyGroup.prototype._calculateCyclicDrawOffset=function(){if(this._cyclic&&null!=this._lastFocusedVirtualIndex&&this._lastFocusedVirtualIndex!==this._getFocusedVirtualIndex()){var t=this._getFocusedVirtualIndex()-this._lastFocusedVirtualIndex;this._drawOffset+=t,this._lastFocusedVirtualIndex=this._getFocusedVirtualIndex();for(var e=0;e0?this._contentListItems.push(this._contentListItems.shift()):0>t&&this._contentListItems.unshift(this._contentListItems.pop())}},SwipeyGroup.prototype._snap=function(){var t=this._getFocusedVirtualIndex();this._cyclic||(t=clamp(0,this.content.length-1,t));var e=this._cyclic?t+this.startIndex:t;e%=this.content.length,0>e&&(e+=this.content.length);var i=this._getPositionForCentered(this._getItemCenter(t));this._animateTo(i)},SwipeyGroup.prototype._animateTo=function(t,e){this._animator.animateTo(t,this._animationLength,function(){this._state.itemIndex=this._getIndexOfCenteredItem(),this._handleAllowTouches(this.content),"function"==typeof e&&e()}.bind(this))},SwipeyGroup.prototype._mapPositionToVirtualIndex=function(t){for(var e=this.content.length,i=0,n=Math.floor(t/this._cycleSize)*e,o=Math.floor(t/this._cycleSize)*this._cycleSize;o+this._itemSize<=t;)o+=this._itemSize,i++;return n+i},SwipeyGroup.prototype._mapIndexToPosition=function(t){for(var e=Math.floor(t/this.content.length)*this.content.length,i=Math.floor(t/this.content.length)*this._cycleSize,n=0;t>e+n;)i+=this._itemSize,n++;return i},SwipeyGroup.prototype._getViewportTreshold=function(){return this._state.position+this._itemSize*("back"===this._swipeDirection?this._swipeThreshold:1-this._swipeThreshold)},SwipeyGroup.prototype._getFocusedVirtualIndex=function(){return this._mapPositionToVirtualIndex(this._getViewportTreshold())},SwipeyGroup.prototype.getFocusedIndex=function(){return this._state.itemIndex},SwipeyGroup.prototype._getIndexOfCenteredItem=function(){return this._wrapAround(this._getFocusedVirtualIndex(),this.content.length)},SwipeyGroup.prototype._getItemCenter=function(t){return this._mapIndexToPosition(t)+this._itemSize/2},SwipeyGroup.prototype._getNearestIndex=function(t){if(this._cyclic){var e=this._wrapAround(this._state.itemIndex,this.content.length),i=t-e,n=t-(e+this.content.length);return Math.abs(i)<=Math.abs(n)?this._getFocusedVirtualIndex()+i:this._getFocusedVirtualIndex()+n}return clamp(0,this.content.length-1,t)},SwipeyGroup.prototype._getPositionForCentered=function(t){return t-this._itemSize/2},SwipeyGroup.prototype._wrapAround=function(t,e){return(t%e+e)%e},SwipeyGroup.prototype.goToItem=function(t,e){var i=this._getNearestIndex(t),n=this._getPositionForCentered(this._getItemCenter(i));this._animateTo(n,e)},SwipeyGroup.prototype.jumpToItem=function(t){this._state.itemIndex=this._wrapAround(t,this.content.length),this._state.position=this._getPositionForCentered(this._getItemCenter(this._state.itemIndex)),this._handleAllowTouches(this.content)},SwipeyGroup.prototype._normalizeEvent=function(t){var e=function(t,e){var i,n;for(i=0;ithis._getPositionForCentered(this._getItemCenter(this.content.length-1));e.position+=this._cyclic||!a&&!c?r:r/this._rubberBandQuotient,e.moved=!0,e.touchPosition=s}var u=h-s;this._swipeDirection=u>0?"forth":"back",this._calculateCyclicDrawOffset()}},SwipeyGroup.prototype._handleTouchEnd=function(t){t.stopPropagation(),this._allowHorizontalSwipe=!0,this._horizontalSwipeInProgress=!1,this._currentTouchIdentifier==t.changedTouches[0].identifier&&(this._currentTouchIdentifier=t.touches[0]?t.touches[0].identifier:null);var e=this._state,i=this._normalizeEvent(t),n=this.vertical?i.y:i.x;if(0===t.touches.length){this._touchHandlersAttached=!1,detach(this.parentUnit.node,"touchmove",this._handleTouchMove),detach(this.parentUnit.node,"touchend",this._handleTouchEnd),detach(this.parentUnit.node,"touchcancel",this._handleTouchCancel),this._animator.running||this._snap();var o={firstTouch:this._firstTouchStart,lastTouch:i,minDistanceForSwipe:this._swipeThreshold*this._itemSize,validAxis:this.vertical?"y":"x"},s=_analyzeTouch(o);s.isConsideredSwipe&&this._actionContextOfFirstTouchStart.trackUserInteraction(),this._actionContextOfFirstTouchStart=null,this._autoAnimateHaltedByUserTouch=!1}else e.touchPosition=n},SwipeyGroup.prototype._handleTouchCancel=function(t){this._handleTouchEnd(t)},SwipeyGroup.prototype.resetAction=function(t,e,i){SwipeyGroup.uber.resetAction.call(this,t,e,function(){this.jumpToItem(this.startIndex),this._autoAnimateDisabledByUserTouch=!1,i()}.bind(this))},SwipeyGroup.prototype.getField=function(){return{type:"string",value:this.content?this.content[this.getFocusedIndex()].name:""}},SwipeyGroup.prototype.allowAutoAnimate=function(){return!this._autoAnimateDisabledByUserTouch&&!this._autoAnimateHaltedByUserTouch},SwipeyGroup.prototype.resetAllowAutoAnimate=function(){this._autoAnimateDisabledByUserTouch=!1},SwipeyGroup.prototype.getNestedContainers=function(){return this.content},SwipeyGroup.prototype.positionUsingTransforms=retTrue,SwipeyGroup.prototype.sizeUsingTransforms=retTrue,SwipeyGroup.prototype.getNaturalSize=function(){return{width:this.originalSize.width,height:this.originalSize.height}},SwipeyGroup.prototype._track=function(t){this._privateApiTracked[t]||(this._privateApiTracked[t]=!0,creative.track({name:"retiredFeatureUsed",featureType:"apifunction",featureName:t}))},SwipeyGroup.prototype.getFocusedVirtualIndex=function(){this._track("SwipeyGroup.getFocusedVirtualIndex"),this._getFocusedVirtualIndex()},SwipeyGroup.prototype.getPositionForCentered=function(t){this._track("SwipeyGroup.getPositionForCentered"),this._getPositionForCentered(t)},SwipeyGroup.prototype.getItemCenter=function(t){this._track("SwipeyGroup.getItemCenter"),this._getItemCenter(t)},SwipeyGroup.prototype.getIndexOfCenteredItem=function(){this._track("SwipeyGroup.getIndexOfCenteredItem"),this._getIndexOfCenteredItem()},SwipeyGroup.prototype.getViewportTreshold=function(){this._track("SwipeyGroup.getViewportTreshold"),this._getViewportTreshold()},SwipeyGroup.prototype.getNearestIndex=function(t){this._track("SwipeyGroup.getNearestIndex"),this._getNearestIndex(t)};;
function Video(){}var composeUrl=CeltraPlayerUtils.composeUrl,isTruthy=CeltraPlayerUtils.isTruthy,getUrl=CeltraPlayerUtils.getUrl,ifDefined=CeltraPlayerUtils.ifDefined,minVideoSize={width:50,height:50};inherit(Video,ScreenObject),Video.toString=function(){return"[Clazz Video]"},Video.prototype.toString=function(){return"[Video "+this.localId+"]"},Video.prototype.transcodingGroup="inline",Video.TRANSCODING_IN_PROGRESS="We’re processing this video. After a few moments, please refresh your browser.",Video.TRANSCODING_ERROR="Transcoding failed. Try uploading a different video or contact support.",Video.AUTOPLAY_REJECTED="Please enable Allow All Auto-Play in your Safari Preferences to preview this creative.",Video.SIZE_PROPERTY_STEP_MULTIPLIER=100,Video.prototype.awake=function(){Video.uber.awake.call(this),this._player=null,this._spec=null,this.posterImageSource=null,this.posterDisabled=!1,this._externalEngineProvided=null,this._customUrlParameters={},this._inViewAreaRatio=0,this._delayVideoAutoplay=!0,this._viewabilityStartTriggerRatio=.05,this._viewabilityPauseTriggerRatio=.05,this.isTeaser="teaser"===this.purpose,this.fullscreenMode=this.fullscreenButton?"both":"disabled",this.isConsideredInView=!1,this.isUserEngaged=!1,this._handleAreaInViewRatioChanged=this._handleAreaInViewRatioChanged.bind(this),this._handleContainerViewableChange=this._handleContainerViewableChange.bind(this),this._handleStopRequest=this._handleStopRequest.bind(this)},Video.prototype.redrawLayout=function(){this._player&&this._player.setDimensions(this._round(this.size.width),this._round(this.size.height))},Video.prototype.createNode=function(){var e="feed"===this.assetSource&&null!=this.feedFieldKey,t="string"==typeof creative.runtimeParams.dynamicContent[this.feedFieldKey]&&"object"==typeof creative.runtimeParams.dynamicContentMetaData[this.feedFieldKey]&&null!==creative.runtimeParams.dynamicContentMetaData[this.feedFieldKey];e&&(creative.checkAndTrackFeedValueMissing(new ActionContext(this),this.feedFieldKey),this.video=new File,this.video.blobHash=creative.runtimeParams.dynamicContent[this.feedFieldKey],this.video.meta=t?creative.runtimeParams.dynamicContentMetaData[this.feedFieldKey]:{hasAudio:!0});var i=Video.uber.createNode.call(this);if(this.newVideoTrackingExperiment=!!creative.experiments.get("NewVideoTracking"),this._isSnapchatFormat=!!creative.constructor.name.match(/^Snapchat.*/),this._isDesktop=desktop()&&"Desktop"===creative.intendedDeviceType,this.posterDisabled=this.posterDisabled||isTruthy(creative.runtimeParams.disablePoster),this._initializeCustomStartStopRatios(),this.on("enteredRenderTree",function(){void 0!==this.video&&null!==this.video&&(creative.adapter.checkVideoTranscodeStatus&&this._isVideoTranscoding(),this._createPlayer())}.bind(this)),this.on("exitedRenderTree",this._exitedRenderTree.bind(this)),this._hasPosterImage()&&!this.posterDisabled)if("responsive"!=this.parentUnit.sizing||this._isSnapchatFormat){var n=this._getPosterUrl();n&&this._preloadImage(new File(n),{crossOrigin:"anonymous",force:!0},function(e){this.posterImageSource=e}.bind(this))}else this.parentScreen.on("appeared",function(){(new Image).src=this._getPosterUrl()}.bind(this));return addClass(i,"touchable"),attach(i,"tap",this.handleTap),creative.adapter.on("stateChange",function(e){this._player&&("dismissed"==e&&this.emit("ended"),"default"==e&&this.isTeaser&&this.playAction(new ActionContext(this,!1)))}.bind(this)),creative.adapter.on("orientationchange",function(){this._player&&this._player.redraw(),setTimeout(function(){this._player&&this._player.redraw()}.bind(this),800)}.bind(this)),creative.adapter.on("resize",function(){this._player&&this._player.redraw()}.bind(this)),i},Object.defineProperty(Video.prototype,"isTrackable",{get:function(){return!0}}),Video.prototype._leaveView=function(){var e=this._player&&this._player.isState(CeltraPlayerUtils.PLAYING),t=this._player&&this._player.isState(CeltraPlayerUtils.BUFFERING);this.playWhenInView=e||t||this.playWhenInView,(e||t)&&this._player.pause()},Video.prototype._comeInView=function(){this._player&&this.playWhenInView&&(this._player.play(),this.playWhenInView=!1)},Video.prototype._applyExperiments=function(){this._experimentVideoPosterImage=this._copyChosenExperimentProperties("VideoPosterImage")},Video.prototype._initializeCustomStartStopRatios=function(){var e=parseFloat(creative.runtimeParams.viewabilityStartTriggerRatio),t=parseFloat(creative.runtimeParams.viewabilityPauseTriggerRatio),i=parseFloat(this.viewabilityStartTriggerRatio)/100,n=parseFloat(this.viewabilityPauseTriggerRatio)/100,s=null,a=null;e>=0&&1>=e&&t>=0&&1>=t?(s=e,a=t):i>=0&&1>=i&&n>=0&&1>=n&&(s=i,a=n),s&&1>=s&&s>=0&&(s>=.95&&(s=.95),this._viewabilityStartTriggerRatio=s),a&&1>=a&&a>=0&&(a>=.95&&(a=.95),this._viewabilityPauseTriggerRatio=a)},Video.prototype._getVideoControlsController=function(e){if(this.isTeaser||e.campaignExplorer)return null;var t=isTruthy(creative.runtimeParams.enableVerticalVideoUIOffset),i=function(e){return new VideoControls(e)};return function(e,n){var s="never"===this.controlsMode,a=new VideoControlsController(e,i,extend({autohideTime:"hide"===this.controlsMode?3:0,showPlayIconAsFallback:!0,playIconEnabled:!this.autoplay,hasTapTriggers:this.hasTriggers("tap"),tapCallback:function(){var e=new ActionContext(this,!0);this.ifNotClosing("tap",e,e.trackUserInteraction),this.fireTriggers("tap",null,null,e)}.bind(this),loaderIconEnabled:!0,countdownIconEnabled:this.countdown&&!s,resumeIconEnabled:void 0===this.resumeButton||this.resumeButton,replayIconEnabled:!0,fullscreenIconEnabled:"both"===this.fullscreenMode&&!s,soundIconEnabled:this.video.meta.hasAudio&&!s,customIcons:{custom_play:this.playIcon?this.playIcon:null,custom_replay:this.replayIcon?this.replayIcon:null},vignetteEnabled:!1,celtraSignatureEnabled:!1,introAnimationEnabled:!1,radarIconEnabled:!1,enableVerticalVideoUIOffset:t},n));return a.on("playButtonPressed",function(){this.playAction(new ActionContext(this,{consideredUserInitiatedByBrowser:!0}))}.bind(this)),a}.bind(this)},Video.prototype._showFullscreenButton=function(){return desktop()?!0:ifDefined(this.parentUnit.fillsContainer,!1)},Video.prototype._getPosterUrl=function(){if(this.posterImage)return this.posterImage.getUrl();if(this.posterImageSource)return this.posterImageSource.src;if(this.video.blobHash){var e={width:this.size.width,height:this.size.height},t=this.size.width/this.size.height>1,i=Math.ceil(e[t?"height":"width"]/Video.SIZE_PROPERTY_STEP_MULTIPLIER)*Video.SIZE_PROPERTY_STEP_MULTIPLIER;return e={width:t?null:i,height:t?i:null},null!==e.width&&(e.width=e.width>=minVideoSize.width?e.width:minVideoSize.width),null!==e.height&&(e.height=e.height>=minVideoSize.height?e.height:minVideoSize.height),composeUrl(getUrl("cachedApi"),"videoThumb/",this.video.blobHash,{transform:"thumbnail",width:e.width,height:e.height,position:ifDefined(this.posterImageGenerateAt,null)})}return null},Video.prototype._createWarningMessage=function(){var e=function(e){var t=e.getContext("2d"),i=["#ffffff","#ffff00","#00ffff","#00ff00","#ff00ff","#ff0000","#0000ff"],n=i.slice().reverse(),s=.5,a=1-s,r=creative.adapter.getViewportRect();e.height=r.height,e.width=r.width;var o=Math.ceil(s*r.height),h=Math.ceil(a*r.height),d=Math.ceil(r.width/i.length);i.forEach(function(e,i){t.fillStyle=e,t.fillRect(d*i,0,d,o)}),n.forEach(function(e,i){t.fillStyle=e,t.fillRect(d*i,o,d,h)}),t.fillStyle="rgba(0,0,0,0.6)",t.fillRect(0,0,r.width,r.height)};if(!this._overlay){this._overlay=document.createElement("div"),this._overlay.style.display="none",this._overlay.className="warning-wrapper";var t=document.createElement("canvas");t.className="warning-canvas",e(t),this._overlay.appendChild(t);var i=document.createElement("div");i.className="warning-message-container",this._warningTriangle=document.createElement("div"),this._warningTriangle.className="warning-triangle",this._warningHourglass=document.createElement("div"),this._warningHourglass.className="warning-hourglass",this._warningMessage=document.createElement("div"),this._warningMessage.className="warning-message",i.appendChild(this._warningTriangle),i.appendChild(this._warningHourglass),i.appendChild(this._warningMessage),this._overlay.appendChild(i),this.node.appendChild(this._overlay)}},Video.prototype.showWarningMessage=function(e){this._transcodingMsgShown||(this._transcodingMsgShown=!0,this._createWarningMessage(),removeClass(this._warningHourglass,"show"),removeClass(this._warningTriangle,"show"),"TRANSCODING_IN_PROGRESS"===e?(this._overlay.style.display="table",this._warningMessage.innerText=Video.TRANSCODING_IN_PROGRESS,addClass(this._warningHourglass,"show")):"TRANSCODING_ERROR"===e?(this._overlay.style.display="table",this._warningMessage.innerText=Video.TRANSCODING_ERROR,addClass(this._warningTriangle,"show")):"AUTOPLAY_REJECTED"===e&&(this._overlay.style.display="table",this._warningMessage.innerText=Video.AUTOPLAY_REJECTED,addClass(this._warningTriangle,"show")))},Video.prototype._isVideoTranscoding=function(){if(this._isRendering){var e=composeUrl(creative.secure?creative.apiUrl:creative.insecureApiUrl,"videoStream/status/",this.video.blobHash);loadJSONP(e,function(e){var t=!1,i=!1,n=function(){this._player.pause(),this._player.hide()}.bind(this),s=e[this.transcodingGroup];if(isDefAndNotNull(s))if(i=s.hasTranscodingError,desktop()){var a=gecko()&&!this._isSnapchatFormat?"webmHQBlobHash":"mpeg4HQPlusBlobHash";t=isDefAndNotNull(s[a])}else t=s.isFullyTranscoded;i?(n(),this.showWarningMessage("TRANSCODING_ERROR")):t||(n(),this.showWarningMessage("TRANSCODING_IN_PROGRESS"))}.bind(this))}},Video.prototype._appear=function(){this._experimentVideoPosterImage&&this._experimentVideoPosterImage.trackExposure(),creative.adapter.canMeasureViewportPlacementGeometry?(this._inViewAreaRatio=this.parentUnit.inView.areaInViewRatio,this.isConsideredInView=!0,this._inViewAreaRatio>=this._viewabilityStartTriggerRatio&&(this._delayVideoAutoplay=!1),this.parentUnit.inView.on("areaInViewRatioChanged",this._handleAreaInViewRatioChanged)):creative.adapter.containerViewabilityObserver&&(this.isConsideredInView=creative.adapter.containerViewabilityObserver.isViewable,this.isConsideredInView&&(this._delayVideoAutoplay=!1),creative.adapter.on("containerViewableChange",this._handleContainerViewableChange)),this.video&&(this.autoplay||this.isTeaser)&&!this._delayVideoAutoplay&&(this.playAction(new ActionContext(this,!1)),this.isTeaser&&this.on("enteredRenderTree",function(){defer(this.playAction(new ActionContext(this,!1)))}.bind(this)))},Video.prototype._handleAreaInViewRatioChanged=function(e){this._player&&this._player.fullscreen&&this._isDesktop?(e=1,this.isConsideredInView=!0):this._inViewAreaRatio>=e&&e<=this._viewabilityPauseTriggerRatio?(this.isConsideredInView=!1,this._leaveView()):this._inViewAreaRatio=this._viewabilityStartTriggerRatio&&(this.isConsideredInView=!0,this._playActionCalled?this._comeInView():this.video&&this.autoplay&&this.playAction(new ActionContext(this,!1)),this.playWhenInView=!1),this._inViewAreaRatio=e},Video.prototype._handleContainerViewableChange=function(e){this.isConsideredInView!==e&&(this.isConsideredInView=e,e?this._comeInView():this._leaveView())},Video.prototype._videoEngineOptionsProvider=function(){var e=creative.adapter.getVideoCapabilities();return delete e.videoElement,merge(e,{hasAudio:this.video.meta.hasAudio,isTeaser:this.isTeaser,forceMPEG1Video:isTruthy(creative.runtimeParams.forceMPEG1Video),forceMPEG4Video:isTruthy(creative.runtimeParams.forceMPEG4Video),selectOGVPlayer:isTruthy(creative.runtimeParams.selectOGVPlayer),campaignExplorer:isTruthy(creative.runtimeParams.campaignExplorer),thumbnailMode:"thumb"===creative.runtimeParams.purpose,isSnapchatFormat:this._isSnapchatFormat})},Video.prototype._getVideoOptions=function(){return{preload:this.preload||this.isTeaser,pauseOnEnd:this.pauseOnEnd,playsInline:!0,componentName:this.name,canShowSpinner:!this.isTeaser,fullscreenMode:this._showFullscreenButton()?this.fullscreenMode:"disabled",repeatTimes:this.indefinitely||this.loop?2147483647:this.repeatTimes,closeFSOnEnd:this.closeOnEnd,fitting:this.fitting,videoWidth:this.video.meta.width,videoHeight:this.video.meta.height,anchoringPoint:this.parentUnit.anchoringPoint,duration:parseFloat(this.video.meta.duration),hasAudio:this.video.meta.hasAudio,startMuted:this.muted,videoStream:{blobHash:this.video.blobHash,from:this.isTeaser?0:null,to:this.isTeaser?5:null,customUrlParameters:this._customUrlParameters},isDesktop:this._isDesktop,mpeg1VideoHas1pxBlackBorderOnRight:creative.adapter.mpeg1VideoHas1pxBlackBorderOnRight}},Video.prototype._createPlayer=function(){if(!this._player&&this.video){var e=this._videoEngineOptionsProvider();this._externalEngineProvided=!!e.videoElement;var t=merge(this._getVideoOptions(),{videoElement:e.videoElement});this.posterDisabled?t.poster=null:(this.posterImageGenerate||isDefAndNotNull(this.posterImage))&&(t.poster=this._getPosterUrl());var i=function(i,n){return VideoEngineProvider.createVideoEngineSpec(i,extend(e,{startMuted:n,preload:t.preload}))}.bind(this),n=function(){return this.isUserEngaged&&creative.adapter.viewabilityMeasurable.viewable00&&this.isConsideredInView}.bind(this);if(this._player=new VideoPlayer(this.getNode(),i,this._getVideoControlsController(e),n,t),!this.isTeaser&&"MasterVideo"!==this.constructor.name){this._player=QuartileEventsEmitter(this._player);for(var s in this._player.QUARTILE_EVENTS)this._player.on(s,function(e){this.emit(e.name,e)}.bind(this))}this._player.setDimensions(this._round(this.size.width),this._round(this.size.height)),this._attachListeners(),this._orientationLockHandler=CeltraPlayerUtils.orientationLockHandler.bind(null,this._player),this.parentUnit.addListener("orientationLockChanged",this._orientationLockHandler)}},Video.prototype._attachListeners=function(){if(this._player){if(this.newVideoTrackingExperiment){var e={isAnimated:!1,isCustom:!1,localId:null,onFire:null,parameters:{name:"exp_trigger_CuePoint",time:this.getDuration()+1},type:"videoCuepoint"};this.triggers.push(e)}var t=function(){this._cuePointObserver||(this._cuePointObserver=Object.create(CuePointObserver).init(this)),defer(this._cuePointObserver.start)}.bind(this);this._player.on("muted",function(){this._videoContext&&this._videoContext.track({name:"videoMuted"}),this.fireTriggers("videoMute"),this.emit("muted")}.bind(this)),this._player.on("unmuted",function(){this._videoContext&&this._videoContext.track({name:"videoUnmuted"}),this.fireTriggers("videoUnMute"),this.emit("unmuted")}.bind(this)),this._player.on("volumechange",function(e){this.emit("volumechange",e)}.bind(this)),this._player.on("play",function(){t(),this.emit("play")}.bind(this)),this._player.on("playing",function(){t(),this.fireTriggers("videoPlaying"),this.emit("playing")}.bind(this)),this._player.on("enterfullscreen",function(){this.fireTriggers("videoEnterFullScreen"),this.emit("enterfullscreen")}.bind(this)),this._player.on("custominfo",function(e){new ActionContext(this,!1).track(e)}.bind(this)),this._player.on("exitfullscreen",function(){this.fireTriggers("videoExitFullScreen"),this.emit("exitfullscreen")}.bind(this)),this._player.on("autoplayrejected",function(){this.emit("autoplayrejected")}.bind(this)),this._player.on("ended",function(){this._cuePointObserver&&this._cuePointObserver.stop(!0),this.fireTriggers("videoComplete"),this.emit("ended")}.bind(this)),this._player.on("pause",function(){this._cuePointObserver&&this._cuePointObserver.stop(),this._videoContext&&this._videoContext.track({name:"videoPause"}),this._player&&!this._player.silentPauseActive&&this.fireTriggers("videoPause"),this._player&&this.emit("pause",this._player.getCurrentTime())}.bind(this)),this._player.on("repeat",function(){this._cuePointObserver&&this._cuePointObserver.stop(!0),this.fireTriggers("videoComplete"),this.emit("repeat")}.bind(this)),this._player.on("timeupdate",function(){if(this._player){var e=this._player.getCurrentTime(),t=this._previousTime||0;t!==e&&this.emit("timeupdate",e)}}.bind(this)),this._player.on("durationchange",function(){this._player&&this.emit("durationchange",this._player.getDuration())}.bind(this)),this._player.on("userInteraction",function(e){void 0!==e&&void 0!==e.isUserEngaged&&(this.isUserEngaged=e.isUserEngaged)}.bind(this))}},Video.prototype._getRealState=function(e,t,i){var n,s;return e.videoEngineSpec.preload&&!desktop()?(n=!t&&i?!1:!0,s=i):(n=e.videoEngineSpec.startMuted,s=e.videoEngineSpec.inUserInitiatedThread),{startMuted:n,inUserInitiatedThread:s}},Video.prototype._trackViewShown=function(e,t){var e=this.appliedState?this.appliedState.inUserInitiatedThread:void 0,t=this.appliedState?this.appliedState.startMuted:void 0;if(!this.isTeaser){for(var i=this.parentScreen,n=this;n.parentContainer.parentObject;){if("undefined"!=typeof DynamicContent&&n.parentContainer.parentObject instanceof DynamicContent){i=n.parentContainer;break}n=n.parentContainer.parentObject}var s=i.getActionsExecutedOnAppear(),a=s.contains("play",this.localId);new ActionContext(this,!1).track({name:"viewShown",viewName:this.name,clazz:this.constructor.name,filename:this.video&&this.video.name||null,label:this.name,source:this.video&&this.video.blobHash||null,sourceType:"File",userInitiated:void 0!==e?e:a?!1:!this.autoplay,startMuted:void 0!==t?t:this.muted,videoPlayerMode:"inline",viewabilityStartTriggerRatio:this._viewabilityStartTriggerRatio,viewabilityPauseTriggerRatio:this._viewabilityPauseTriggerRatio,duration:this.getDuration()})}this._trackViewShown=noop},Video.prototype._emitVideoPlayAttempted=function(e,t,i,n){this._videoContext&&this._videoContext.track(this._getVideoPlayAttemptedEvent(e,t,i,n)),this._emitVideoPlayAttempted=noop},Video.prototype._getVideoPlayAttemptedEvent=function(e,t,i,n){var s={name:"videoPlayAttempted",filename:this.video.name,trackable:!0,userInitiated:e,autoReplay:!!this.loop,startMuted:t,videoPlayerMode:"inline",engineType:i,videoPreset:n};return s},Video.prototype._exitedRenderTree=function(){this.parentUnit.inView&&this.parentUnit.inView.off("areaInViewRatioChanged",this._handleAreaInViewRatioChanged),creative.adapter&&creative.adapter.off("containerViewableChange",this._handleContainerViewableChange),this._destroyPlayer()},Video.prototype._destroyPlayer=function(){this._cuePointObserver&&(this._cuePointObserver.detach(),this._cuePointObserver=null),this._playActionCalled=!1,this._delayVideoAutoplay=!0,this._player&&(this._player.destroy(),this._player=null,this.parentUnit.off("mediaStopRequested",this._handleStopRequest),this.parentUnit.removeListener("orientationLockChanged",this._orientationLockHandler),this._orientationLockHandler=null,this._videoContext=null,this._trackingEventsEmitter=null,this._trackingEventsRecorder=null),this._videoEventsAdapter&&(this._videoEventsAdapter&&this._videoEventsAdapter.destroy(),this._videoEventsAdapter=null)},Video.prototype._createVideoContext=function(){this.isTeaser||!this._player||this._videoContext||(this._videoContext=new VideoContext(this,this.video,this.name),this._videoEventsAdapter=new VideoEventsAdapter(this._player),this._videoContext.registerSource(this._videoEventsAdapter),this._player.on("userInteraction",this._videoContext.trackUserInteraction.bind(this._videoContext)),this.newVideoTrackingExperiment&&(this._trackingEventsEmitter=new PlaybackTrackingEventsEmitter(this._player),this._trackingEventsRecorder=new PlaybackTrackingEventsRecorder(this._trackingEventsEmitter,this._videoContext,"exp_video")))},Video.prototype._round=function(e){return Math.round(e)},Video.prototype._hasPosterImage=function(){return this.video&&!this.isTeaser&&(this.posterImageGenerate||isDefAndNotNull(this.posterImage))},Video.prototype.handleTap=function(e){e.stopPropagation()},Video.prototype.positionUsingTransforms=retFalse,Video.prototype.sizeUsingTransforms=retFalse,Video.prototype.getNaturalSize=function(){return this.originalSize},Video.prototype.getDuration=function(){var e=0/0;try{e=parseFloat(this.video.meta.duration)}catch(t){}return isNaN(e)?this._player?this._player.duration:0:e},Video.prototype.getCurrentTime=function(){return this._player?this._player.getCurrentTime():0},Video.prototype.setCurrentTime=function(e){return this._player?this._player.setCurrentTime(e):0},Video.prototype.playAction=function(e,t,i){if(!this._player)return void(i||noop)();e||(console.warn("Context object has to be passed when calling playAction."),e=new ActionContext(this,{consideredUserInitiatedByBrowser:!1})),this._createPlayer(),this._createVideoContext(),this.isUserEngaged=e.inUserInitiatedIteration,creative.adapter._stopAllMedia("toPlayVideo");var n=t&&void 0!==t.startMuted?t.startMuted:this.muted;t&&"touchstart"===t.triggerId&&creative.adapter.muteSoundIfVideoStartedOnTouchStartEvent&&(n=!0),this._spec||(this._spec=this._player.createSpecs(e.inUserInitiatedIteration,n)),this._player.engineInitialized||this._player.initialize(this._spec),this.appliedState=this._getRealState(this._spec,n,e.inUserInitiatedIteration),this._player.play(this.appliedState.startMuted),this.appliedState.inUserInitiatedThread&&this._videoContext.trackUserInteraction(),this._emitVideoPlayAttempted(e.consideredUserInitiatedByBrowser,this.appliedState.startMuted,this._spec.videoEngineSpec.engineType,this._spec.videoEngineSpec.preset),this._playActionCalled=!0,this.parentUnit.off("mediaStopRequested",this._handleStopRequest),this.parentUnit.on("mediaStopRequested",this._handleStopRequest),(i||noop)()},Video.prototype._handleStopRequest=function(e){"toPlayVideo"===e?(this._player.pause(),this.playWhenInView=!1):this._leaveView()},Video.prototype.pauseAction=function(e,t,i){this._player&&this._player.isState(CeltraPlayerUtils.PLAYING)&&this._player.pause(),(i||noop)()},Video.prototype.rewindAction=function(e,t,i){this._player&&this._player.replay(),(i||noop)()},Video.prototype.resetAction=function(e,t,i){this._destroyPlayer(),this._createPlayer(),this._emitVideoPlayAttempted=Video.prototype._emitVideoPlayAttempted.bind(this),(i||noop)()},Video.prototype.muteAction=function(e,t,i){this._player&&this._player.mute(),this.muted=!0,(i||noop)()},Video.prototype.unMuteAction=function(e,t,i){this._player&&this._player.unMute(),this.muted=!1,(i||noop)()},Video.prototype.enterFullScreenAction=function(e,t,i){this._player&&this._player.enterFullScreen(),(i||noop)()},Video.prototype.exitFullScreenAction=function(e,t,i){this._player&&this._player.exitFullScreen(),(i||noop)()},Video.prototype.setCustomUrlParameter=function(e,t){this._customUrlParameters[e]=t};;
function Button(){}inherit(Button,ScreenObject),extend(Button.prototype,TextStyleIntegrator),Button.toString=function(){return"[Clazz Button]"},Button.prototype.toString=function(){return"[Button "+this.localId+"]"},Object.defineProperties(Button.prototype,{_borderRoundness:{get:function(){var t=0,e=0,o=0,r=0;if(this.border&&"number"==typeof this.borderRadius)t=this.borderRadius;else if(this.border!==!1||this.roundness){if("number"==typeof this.roundness&&(r=this.roundness),r>0){var n=Math.min(this.getNaturalSize().height,this.getNaturalSize().width),s=n/2,i=Math.max(this.getNaturalSize().height,this.getNaturalSize().width),a=i/2;if(50>r){var d=r/50;t=s*d}else{var h=(r-50)/50,u=(a-s)*h,l=s+u;e=this.getNaturalSize().width==n?s:l,o=this.getNaturalSize().height==n?s:l}}}else r=0;return this.shadow&&ios("8")&&window.devicePixelRatio>=3&&(1>t&&(t=1),1>e&&(e=1),1>o&&(o=1)),50>r?t+"px":e+"px "+o+"px"}}}),Button.prototype.getBorderWidth=function(){return this.borderWidth},Button.prototype.getShadowDistance=function(){return this.shadowDistance},Button.prototype.getShadowBlur=function(){return this.shadowBlur},Button.prototype.awake=function(){Button.uber.awake.call(this),this._defaultValues={backgroundUpImage:"runner/clazzes/Button/button.png",backgroundDownImage:"runner/clazzes/Button/button-down.png"},this._handleTap=this._handleTap.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this)},Button.prototype.createNode=function(){var t=Button.uber.createNode.call(this),e=creative.runtimeParams.overrides||creative.runtimeParams,o=e.deviceInfo&&e.deviceInfo.deviceType.toLowerCase();return this._hoverEnabled=("Desktop"===creative.intendedDeviceType||"Any"===creative.intendedDeviceType)&&"desktop"===o,this._privateApiTracked={},this._backgroundElement=null,this._foregroundElement=null,this._textBorder=0,this._cssRules={},this._useBackgroundImage="image"===this.background,this._useForegroundImage="image"===(this._useBackgroundImage?this.foregroundForImage:this.foregroundForCss),addClass(t,"touchable"),this._createBackground(t),this._createForeground(t),this.addStyle(this._cssRules),attach(t,"tap",this._handleTap),attach(t,"touchstart",this._handleTouchStart),t},Button.prototype._appear=function(){this._experimentButtonStyle&&this._experimentButtonStyle.trackExposure()},Button.prototype._createBackground=function(t){if(this._backgroundElement=document.createElement("div"),addClass(this._backgroundElement,"background"),this._useBackgroundImage){var e=!1,o="normal",r="focus",n="pressed",s=function(t,e){addClass(e,t),this._backgroundElement.appendChild(e)}.bind(this);this.backgroundUpImage?this._preloadImage(this.backgroundUpImage,function(t){s(o,t)}):(e=!0,this._preloadImage(new File(this._defaultValues.backgroundUpImage),{force:!1},function(t){s(o,t)})),this._hoverEnabled&&this.backgroundHoverImage&&this._preloadImage(this.backgroundHoverImage,function(t){s(r,t)}),this.backgroundDownImage?this._preloadImage(this.backgroundDownImage,function(t){s(n,t)}):e&&this._preloadImage(new File(this._defaultValues.backgroundDownImage),{force:!1},function(t){s(n,t)}),this._cssRules[".background ."+o]="display: block;",this._cssRules[".background ."+r]="display: none;",this._cssRules[".background ."+n]="display: none;",this._hoverEnabled&&this.backgroundHoverImage&&(this._cssRules[":hover .background ."+o]="display: none;",this._cssRules[":hover .background ."+r]="display: block;",this._cssRules[":hover .background ."+n]="display: none;"),(this.backgroundDownImage||e)&&(this._cssRules[".background.down ."+o]="display: none;",this._cssRules[".background.down ."+r]="display: none;",this._cssRules[".background.down ."+n]="display: block;")}else{if(this.backgroundColor){var i="";if(Color.isGradient(this.backgroundColorUp)?(i+=Color.createGradientStyle(this.backgroundColorUp),i+="background-color: transparent;"):(i+="background-image: none; ",i+="background-color: "+this.backgroundColorUp+";"),this._cssRules[".background"]=i,this._hoverEnabled&&this.backgroundColorHover){var a="";Color.isGradient(this.backgroundColorHover)?(a+=Color.createGradientStyle(this.backgroundColorHover),a+="background-color: transparent;"):(a+="background-image: none; ",a+="background-color: "+this.backgroundColorHover+";"),this._cssRules[":hover .background"]=a}var d="";Color.isGradient(this.backgroundColorDown)?(d+=Color.createGradientStyle(this.backgroundColorDown),d+="background-color: transparent;"):(d+="background-image: none; ",d+="background-color: "+this.backgroundColorDown+";"),this._cssRules[".background.down"]=d}if(this.border&&(this._backgroundElement.style.borderColor=this.borderColor,this._backgroundElement.style.borderWidth=this.getBorderWidth()+"px"),this.shadow){var h=this.shadowAngle%90===0?-.3:0,u=this.shadowAngle*(Math.PI/180),l=Math.round(this.getShadowDistance()*Math.cos(u)),c=Math.round(this.getShadowDistance()*Math.sin(u));celtra.styler.css(this._backgroundElement,"boxShadow",l+"px "+c+"px "+this.getShadowBlur()+"px "+h+"px "+this.shadowColor)}}t.appendChild(this._backgroundElement)},Button.prototype._createForeground=function(t){var e=this.callToActionText.trim().length>0;if(this._foregroundElement=document.createElement("div"),addClass(this._foregroundElement,"foreground"),!this._useBackgroundImage&&this.border?(this._foregroundElement.style.borderWidth=this.getBorderWidth()+"px",this._textBorder=this.getBorderWidth()):this._textBorder=0,this._useForegroundImage){this._foregroundElement.className+=this.foregroundStretchImage?" image-stretch":" image-fit";var o="normal",r="focus",n="pressed",s=function(t,e){var o=document.createElement("div");addClass(o,t),o.style.backgroundImage="url("+e.src+")",this._foregroundElement.appendChild(o)}.bind(this);this.foregroundUpImage&&this._preloadImage(this.foregroundUpImage,function(t){s(o,t)}),this._hoverEnabled&&this.foregroundHoverImage&&this._preloadImage(this.foregroundHoverImage,function(t){s(r,t)}),this.foregroundDownImage&&this._preloadImage(this.foregroundDownImage,function(t){s(n,t)}),this._cssRules[".foreground ."+o]="display: block;",this._cssRules[".foreground ."+r]="display: none;",this._cssRules[".foreground ."+n]="display: none;",this._hoverEnabled&&this.foregroundHoverImage&&(this._cssRules[":hover .foreground ."+o]="display: none;",this._cssRules[":hover .foreground ."+r]="display: block;",this._cssRules[":hover .foreground ."+n]="display: none;"),this.foregroundDownImage&&(this._cssRules[".foreground.down ."+o]="display: none;",this._cssRules[".foreground.down ."+r]="display: none;",this._cssRules[".foreground.down ."+n]="display: block;")}else e&&(this._foregroundElement.className+=" call-to-action",this._foregroundElement.textContent=this.callToActionText,this.initializeFont(),this._cssRules[".foreground"]="color: "+this.textColor+";",this._hoverEnabled&&this.textColorHover&&(this._cssRules[":hover .foreground"]="color: "+this.textColorHover+";"),this._cssRules[".foreground.down"]="color: "+this.textColorDown+";");t.appendChild(this._foregroundElement)},Button.prototype.redrawLayout=function(){if(!this._useBackgroundImage){var t=this._borderRoundness;parseInt(t,10)>0&&(this._backgroundElement&&(this._backgroundElement.style.borderTopLeftRadius=t,this._backgroundElement.style.borderTopRightRadius=t,this._backgroundElement.style.borderBottomLeftRadius=t,this._backgroundElement.style.borderBottomRightRadius=t),this._foregroundElement&&(this._foregroundElement.style.borderTopLeftRadius=t,this._foregroundElement.style.borderTopRightRadius=t,this._foregroundElement.style.borderBottomLeftRadius=t,this._foregroundElement.style.borderBottomRightRadius=t))}var e=this.callToActionText.trim().length>0;if(!this._useForegroundImage&&e){this.applyTextSize(this._foregroundElement.style);var o;if("undefined"!=typeof this.lineSpacing){o=parseInt(this._foregroundElement.style.lineHeight,10);var r=this.callToActionText.split(/\n/).length,n=o*r,s=this.sizeUsingTransforms()?this.getNaturalSize():this.size,i=(s.height-n)/2,a=i-this._textBorder;this._foregroundElement.style.paddingTop=a+"px"}else o=this.size.height-2*this._textBorder,this._foregroundElement.style.lineHeight=o+"px"}},Button.prototype.updateTextStyle=function(){var t=this.callToActionText.trim().length>0;!this._useForegroundImage&&t&&(this.applyTextStyle(this._foregroundElement.style),this._foregroundElement.style.color="")},Button.prototype._handleTap=function(t){t.stopPropagation()},Button.prototype._handleTouchStart=function(){addClass(this._backgroundElement,"down"),addClass(this._foregroundElement,"down"),attach(this.parentUnit.node,"touchend",this._handleTouchEnd),this._experimentButtonStyle&&this._experimentButtonStyle.trackSuccess()},Button.prototype._handleTouchEnd=function(){removeClass(this._backgroundElement,"down"),removeClass(this._foregroundElement,"down"),detach(this.parentUnit.node,"touchend",this._handleTouchEnd)},Button.prototype._applyExperiments=function(){this._experimentButtonStyle=this._copyChosenExperimentProperties("ButtonStyle")};;
var Form={};Form.toString=function(){return"[Clazz Form]"},Form.submitAction=function(e,i,t){this.submitInProgress||(this.submitInProgress=!0,this.hasFailureCallback=i.onFailure?!1:!0,e.track({name:"formSubmissionAttempted",label:i.reportLabel}),Form.validateAction(e,{formElements:i.formElements,onSuccess:function(e,t){var r;if("table"==i.submitTarget&&i.tableId)r=creative.apiUrl+"formTables/"+i.tableId+"/rows";else{if("url"!=i.submitTarget||!i.url)return(i.onFailure||nullai)(e,t);r=i.url}var a={fields:{}};i.formElements.forEach(function(e){a.fields[e.fieldName]=e.getField()});var n=new XMLHttpRequest;n.open("POST",r),n.setRequestHeader("Content-Type","application/json; charset=utf-8"),n.onreadystatechange=function(){if(4===n.readyState){var r=200<=n.status&&n.status<300;r&&e.track({name:"formSubmissionSucceeded",label:i.reportLabel});var a=r?i.onSuccess:i.onFailure;(a||nullai)(e,t),this.submitInProgress=!1}}.bind(this),n.send(JSON.stringify(a))}.bind(this),onFailure:function(e,t){(i.onFailure||nullai)(e,t),this.submitInProgress=!1}.bind(this)},t))},Form.validateAction=function(e,i,t){function r(){u=[];for(var e in creative.units){var i=creative.units[e];if(i.isAppearing){var t=i.currentScreen,r=t.node.querySelectorAll("input, textarea");if(r)for(var a=0;a-1?t.push("center"):t.unshift("center"));var e,i,n=this.file.width/this.file.height,h=this.sizeUsingTransforms()?this.getNaturalSize():this.size,o=h.width/h.height,r=this.fittingSize;"fitUpToOriginal"===this.fittingSize&&(r=h.widtho?(e=h.width,i=this.file.height*(h.width/this.file.width)):(e=this.file.width*(h.height/this.file.height),i=h.height):"fill"===r&&(n>o?(e=this.file.width*(h.height/this.file.height),i=h.height):(e=h.width,i=this.file.height*(h.width/this.file.width)));var s,a;if("repeat"===r)s={left:0,center:Math.round((h.width*this._patternPixelRatio-e)/2),right:h.width*this._patternPixelRatio-e},a={top:0,center:Math.round((h.height*this._patternPixelRatio-i)/2),bottom:h.height*this._patternPixelRatio-i},this._imageElementsCtx.canvas.width=h.width*this._patternPixelRatio,this._imageElementsCtx.canvas.height=h.height*this._patternPixelRatio,this._imageElement.style.width=h.width+"px",this._imageElement.style.height=h.height+"px",this._imageElementsCtx.save(),this._imageElementsCtx.fillStyle=this._pattern,this._imageElementsCtx.translate(s[t[0]],a[t[1]]),this._imageElementsCtx.fillRect(-s[t[0]],-a[t[1]],h.width*this._patternPixelRatio,h.height*this._patternPixelRatio),this._imageElementsCtx.restore();else{s={left:"left: 0px;",center:"left: "+Math.round((h.width-e)/2)+"px;",right:"right: 0px;"},a={top:"top: 0px;",center:"top: "+Math.round((h.height-i)/2)+"px;",bottom:"bottom: 0px;"};var p=s[t[0]]+" "+a[t[1]]+" ",g="width: "+e+"px; height: "+i+"px; ",l="";this._imageElement.style.cssText="position: absolute; "+p+g+l}}},Picture.prototype._handlePreloadedImage=function(t,e){(this._useDynamicImage||"repeat"===this.fittingSize)&&(this.file.meta={height:e.naturalHeight,width:e.naturalWidth}),"repeat"===this.fittingSize?(this._imageElement=document.createElement("canvas"),this._imageElementsCtx=this._imageElement.getContext("2d"),this._pattern=this._imageElementsCtx.createPattern(e,"repeat"),this._patternPixelRatio=e.naturalWidth/this.file.width):this._imageElement=e,this._drawImage(),t.appendChild(this._imageElement)}}var m=Screen.prototype.resetAction;Screen.prototype.resetAction=function(t){Scene.instances.forEach(function(e){e.parentScreen===this&&e.resetAction(t,{},noop)}.bind(this)),m.apply(this,arguments)},ScreenObject._roundIfNeeded=function(t){return t},"undefined"!=typeof Texty&&(Texty.prototype.getNaturalSize=p(Texty.prototype.getNaturalSize,t),Texty.prototype.getFontSize=p(Texty.prototype.getFontSize,e),Texty.prototype.getLineSpacing=p(Texty.prototype.getLineSpacing,i),Texty.prototype.getLetterSpacing=p(Texty.prototype.getLetterSpacing,n),Texty.prototype.getTextShadowBlur=p(Texty.prototype.getTextShadowBlur,s),Texty.prototype.getTextShadowOffset=p(Texty.prototype.getTextShadowOffset,a)),"undefined"!=typeof Button&&(Button.prototype.getNaturalSize=p(Button.prototype.getNaturalSize,t),Button.prototype.getFontSize=p(Button.prototype.getFontSize,e),Button.prototype.getLineSpacing=p(Button.prototype.getLineSpacing,i),Button.prototype.getLetterSpacing=p(Button.prototype.getLetterSpacing,n),Button.prototype.getBorderWidth=p(Button.prototype.getBorderWidth,h),Button.prototype.getShadowDistance=p(Button.prototype.getShadowDistance,o),Button.prototype.getShadowBlur=p(Button.prototype.getShadowBlur,r),Button.prototype.getTextShadowBlur=p(Button.prototype.getTextShadowBlur,s),Button.prototype.getTextShadowOffset=p(Button.prototype.getTextShadowOffset,a))}();;
!function(n){function e(n,u,a){this._propertyTweens={},a=a||e.getUsedProperties(n);var o=r(n);for(var s in a){var f=a[s],c=i(f,o);this._propertyTweens[f]=new t(c,u)}}function t(n,t){this._keyframes=n,this._defaultTimingFunction=t||e.Timing.linear,this._tweenable=a(this._keyframes),u(this._keyframes)}function r(n){var e=[];for(var t in n){var r=parseFloat(t);e[Math.round(r*m)]=n[t]}return e}function i(n,e){var t,r={};for(var i in e)if(n in e[i]){"undefined"==typeof r[i]&&(r[i]={});var u=e[i][n];u instanceof Object?("undefined"!=typeof u.value&&null!==u.value&&(t=u.value,r[i].value=u.value),u.timingFunction&&(r[i].timingFunction=u.timingFunction)):(t=u,r[i].value=u,e[i].timingFunction&&(r[i].timingFunction=e[i].timingFunction))}return"undefined"==typeof r[O]&&(r[O]={value:t}),r}function u(n){if(!(y in n))throw new Error("Missing initial keyframe!");if(!(O in n))throw new Error("Missing final keyframe!")}function a(n){for(var e in n)return"number"==typeof n[e].value}function o(n,e,t,r){var i=.001,u=3*n,a=3*(t-n)-u,o=1-u-a,s=3*e,f=3*(r-e)-s,c=1-s-f,v=function(n){return((o*n+a)*n+u)*n},l=function(n){return((c*n+f)*n+s)*n},p=function(n){return(3*o*n+2*a)*n+u},h=function(n){var e,t,r,u,a,o;for(r=n,o=0;8>o;o++){if(u=v(r)-n,Math.abs(u)r)return e;if(r>t)return t;for(;t>e;){if(u=v(r),Math.abs(u-n)u?e=r:t=r,r=.5*(t-e)+e}return r};return function(n){return l(h(n))}}function s(n){return Math.pow(n,2)}function f(n){return Math.pow(n,3)}function c(n){return Math.pow(n,4)}function v(n){return Math.pow(n,5)}function l(n){return 1-Math.cos(n*Math.PI*.5)}function p(n){return Math.pow(2,10*(n-1))}function h(n){return 1-Math.sqrt(1-n*n)}var m=1e5,y=0*m,O=100*m;e.prototype.getValuesAt=function(n){var e={};for(var t in this._propertyTweens)e[t]=this._propertyTweens[t].getValueAt(n);return e},e.getUsedProperties=function(n){var e={};for(var t in n)for(var r in n[t])"timingFunction"!=r&&(e[r]=!0);return Object.keys(e)},t.prototype.getValueAt=function(n){n=Math.round(n*m);var e,t;for(var r in this._keyframes)r==n?(e={position:r,values:this._keyframes[r]},t={position:r,values:this._keyframes[r]}):n>r?e={position:r,values:this._keyframes[r]}:r>n&&!t&&(t={position:r,values:this._keyframes[r]});if(!this._tweenable)return e.values.value;var i=t.position-e.position,u=n-e.position,a=0==i?0:u/i,o=e.values.timingFunction||this._defaultTimingFunction;a=o(a);var s=t.values.value-e.values.value,f=s*a;return e.values.value+f},e.Timing={none:function(){return 0},linear:function(n){return n},easeIn:o(.42,0,1,1),easeOut:o(0,0,.58,1),easeInOut:o(.42,0,.58,1),easeInQuad:s,easeOutQuad:function(n){return 1-s(1-n)},easeInOutQuad:function(n){return.5>n?.5*s(2*n):1-.5*s(2*(1-n))},easeInCubic:f,easeOutCubic:function(n){return 1-f(1-n)},easeInOutCubic:function(n){return.5>n?.5*f(2*n)/2:1-.5*f(2*(1-n))},easeInQuart:c,easeOutQuart:function(n){return 1-c(1-n)},easeInOutQuart:function(n){return.5>n?.5*c(2*n):1-.5*c(2*(1-n))},easeInQuint:v,easeOutQuint:function(n){return 1-v(1-n)},easeInOutQuint:function(n){return.5>n?.5*v(2*n):1-.5*v(2*(1-n))},easeInSine:l,easeOutSine:function(n){return 1-l(1-n)},easeInOutSine:function(n){return.5*l(2*n)},easeInExpo:p,easeOutExpo:function(n){return 1-p(1-n)},easeInOutExpo:function(n){return.5>n?.5*p(2*n):1-.5*p(2*(1-n))},easeInCirc:h,easeOutCirc:function(n){return 1-h(1-n)},easeInOutCirc:function(n){return.5>n?.5*h(2*n):1-.5*h(2*(1-n))},easeInBack:o(.6,-.28,.735,.045),easeOutBack:o(.175,.885,.32,1.275),easeInOutBack:o(.68,-.55,.265,1.55),cubicBezier:o},n.KeyframeAnimation=e}(this);;
function BaseScenePlayer(e){this._scene=e,this._state=new StateObject({progress:-1,loopCount:0}),this._update=this._update.bind(this),this._render=this._render.bind(this),this._end=this._end.bind(this),this.paused=!0,this.ended=!1,this.supportsAutoplay=!1,this.supportsFallback=!0}extend(BaseScenePlayer.prototype,EventEmitter),Object.defineProperty(BaseScenePlayer.prototype,"progress",{get:function(){return-1!==this._state.progress?this._state.progress:this.ended?100:0}}),BaseScenePlayer.prototype._update=function(){this._state.isDirty("progress")&&(this._scene.updateObjects(this._state.progress),this.emit("progress",this._state.progress))},BaseScenePlayer.prototype._render=function(){this._state.isDirty("progress")&&(this._scene.renderObjects(),this._state.markClean("progress"))},BaseScenePlayer.prototype._cancel=function(){Ticker.removeFrame(this._update,"update"),Ticker.removeFrame(this._render,"render"),Ticker.removeFrame(this._end,"next"),this.paused=!0},BaseScenePlayer.prototype._end=function(){this.stop(),this.emit("end")},BaseScenePlayer.prototype._stop=noop,BaseScenePlayer.prototype._pause=noop,BaseScenePlayer.prototype._play=function(){return!0},BaseScenePlayer.prototype.play=function(){this._cancel(),this._play()&&(this.paused=!1,Ticker.frame(this._update,"update"),Ticker.frame(this._render,"render"),this.emit("play"))},BaseScenePlayer.prototype.displayFallbackFrame=function(e){this._scene.updateObjects(Math.max(0,Math.min(e,100))),this._scene.renderObjects(),this._state.progress=e,this._state.markClean()},BaseScenePlayer.prototype.pause=function(){this.silentPause(),this.emit("pause")},BaseScenePlayer.prototype.silentPause=function(){this.ended=100===this._state.progress,(0===this._state.progress||100===this._state.progress)&&(this._state.progress=-1),this._cancel(),this._pause()},BaseScenePlayer.prototype.stop=function(){this.silentPause(),this._stop(),this.emit("stop")},BaseScenePlayer.prototype.destroy=function(){this._cancel()};;
function TimeScenePlayer(e){TimeScenePlayer.uberConstructor.call(this,e),this._state.registerValue("elapsedTime",null),this._state.registerValue("startTime",null),this._state.registerValue("lastUpdateTime",null),this.supportsFallback=!1}inherit(TimeScenePlayer,BaseScenePlayer),Object.defineProperty(TimeScenePlayer.prototype,"_loopEnded",{get:function(){return"stop"===this._scene.onEnd&&this._state.progress>=100||"repeat"===this._scene.onEnd&&this._scene.onEndRepeatCount&&this._state.loopCount>=this._scene.onEndRepeatCount||"reverse"===this._scene.onEnd&&this._scene.onEndReverseCount&&this._state.loopCount>=2*this._scene.onEndReverseCount}}),TimeScenePlayer.prototype._update=function(e){var t=this._scene.getDuration().milliseconds;this._state.startTime=this._state.startTime||e,this._state.lastUpdateTime&&(this._state.startTime-=this._state.lastUpdateTime,this._state.lastUpdateTime=null),this._state.elapsedTime=e-this._state.startTime,this._state.loopCount=Math.floor(t>0?this._state.elapsedTime/t:1);var s,i=100*(t>0?this._state.elapsedTime/t:1),a=i%100;s="repeat"===this._scene.onEnd?this._loopEnded?100:a:"reverse"===this._scene.onEnd?this._loopEnded?0:this._state.loopCount%2?100-a:a:i,this._state.progress=Math.max(0,Math.min(s,100)),TimeScenePlayer.uber._update.apply(this,arguments),this._loopEnded&&Ticker.frame(this._end,"next")},TimeScenePlayer.prototype._pause=function(){this._state.lastUpdateTime||(this._state.lastUpdateTime=this._state.elapsedTime),this._state.elapsedTime=null,this._state.startTime=null},TimeScenePlayer.prototype._stop=function(){this._state.lastUpdateTime=null};;
[\\\\s\\\\S]*?\",\"gi\");do t=e,e=e.replace(r,\"\");while(e!==t);return e.replace(/e.minDistanceForSwipe?!0:!1:\"x\"===e.validAxis&&(t=n>e.minDistanceForSwipe?!0:!1),{isHorizontal:n>r?!0:!1,isConsideredSwipe:t}}function attach(e,t,n,r){var o=getEventNames()[t.toLowerCase()]||t;e.addEventListener(o,n,_buildNativeListenerOptions(r))}function detach(e,t,n,r){var o=getEventNames()[t.toLowerCase()]||t;e.removeEventListener(o,n,_buildNativeListenerOptions(r))}function once(e,t,n,r){attach(e,t,function o(){detach(e,t,o,r),n.apply(this,arguments)},r)}function trigger(e,t,n,r){var o=document.createEvent(\"HTMLEvents\");o.initEvent(t,n,r);var i=\"on\"+ucfirst(t);return\"function\"==typeof e[i]&&e[i](),e.dispatchEvent(o)}function fakeclick(e,t){t=t||window;var n=t.document.createElement(\"a\");n.cssText=\"visibility: hidden\",n.addEventListener(\"click\",function(t){e(),t.preventDefault(),t.stopPropagation(),n.parentNode.removeChild(n)},!0),t.document.body.appendChild(n);var r=document.createEvent(\"MouseEvents\");r.initEvent(\"click\",!0,!0),n.dispatchEvent(r)}function fakeClickAhrefBlank(e,t,n){t=t||noop,n=n||window;var r=n.document.createElement(\"a\");r.style.cssText=\"visibility: hidden\",r.setAttribute(\"href\",e),r.setAttribute(\"target\",\"_blank\"),r.addEventListener(\"click\",function(e){e.stopPropagation(),t(),r.parentNode.removeChild(r)},!0),n.document.body.appendChild(r);var o=n.document.createEvent(\"MouseEvents\");o.initEvent(\"click\",!0,!0),r.dispatchEvent(o)}function noop(){}function nullai(e,t){t()}function retTrue(){return!0}function retFalse(){return!1}function offset(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:t.top+(o.pageYOffset||r.scrollTop)-(r.clientTop||0),left:t.left+(o.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}}function addCssRule(e,t,n){var r=document.createElement(\"style\");r.textContent=e+\" {\"+t+\"}\",n?n.document.getElementsByTagName(\"head\")[0].appendChild(r):document.getElementsByTagName(\"head\")[0].appendChild(r)}function redrawAndroidIframe(){var e=document.createElement(\"style\");document.body.appendChild(e),document.body.removeChild(e)}function parseQuery(e){var t={};return e=e.replace(/\\&$/,\"\").replace(/\\+/g,\"%20\"),e.split(\"&\").forEach(function(e){var n=e.split(\"=\").map(decodeURIComponent);t[n[0]]=n[1]}),t}function buildQuery(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+\"=\"+encodeURIComponent(e[n]));return t.join(\"&\")}function postBlob(e,t){var n=new XMLHttpRequest;n.open(\"POST\",creative.apiUrl+\"blobs?base64=1\"),n.setRequestHeader(\"Content-Type\",\"application/octet-stream\"),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText,n.status)},n.send(e)}function tmpl(e,t){function n(e){return\" p.push('\"+e.replace(/'/g,\"\\\\'\").split(/\\r?\\n/g).join(\"\\\\n');\\n p.push('\")+\"');\\n\"}if(!e)return\"\";var r;if(-1==e.indexOf(\"<%\"))r=function(){return e};else{var o=e.split(/<%\\s*|\\s*%>/g),i=\"var p = []; with(o) {\\n\",a=!1;o.forEach(function(e){a?i+=\"=\"==e[0]?\" p.push(\"+e.replace(/^=\\s*|\\s*$/g,\"\")+\");\\n\":\" \"+e+\"\\n\":e&&(i+=n(e)),a=!a}),i+='} return p.join(\"\");';try{r=new Function(\"o\",i)}catch(c){var u=new Error(\"Cannot parse template! (see `template` property)\");throw u.template=i,u}}return t?r(t):r}function flash(){var e=document.createElement(\"div\");e.style.background=\"white\",e.style.opacity=.005,e.style.position=\"absolute\",e.style.top=0,e.style.left=0,e.style.width=\"100%\",e.style.height=\"100%\",e.style.zIndex=2147483647,document.body.appendChild(e),setTimeout(function(){e.parentNode.removeChild(e)},0)}function crc32(e){\"use strict\";var t=-1,n=0,r=[0,-227835133,-516198153,324072436,-946170081,904991772,648144872,-724933397,-1965467441,2024987596,1809983544,-1719030981,1296289744,-1087877933,-1401372889,1578318884,274646895,-499825556,-244992104,51262619,-675000208,632279923,922689671,-996891772,-1702387808,1760304291,2075979607,-1982370732,1562183871,-1351185476,-1138329528,1313733451,549293790,-757723683,-1048117719,871202090,-416867903,357341890,102525238,-193467851,-1436232175,1477399826,1264559846,-1187764763,1845379342,-1617575411,-1933233671,2125378298,820201905,-1031222606,-774358714,598981189,-143008082,85089709,373468761,-467063462,-1170599554,1213305469,1526817161,-1452612982,2107672161,-1882520222,-1667500394,1861252501,1098587580,-1290756417,-1606390453,1378610760,-2032039261,1955203488,1742404180,-1783531177,-878557837,969524848,714683780,-655182201,205050476,-28094097,-318528869,526918040,1361435347,-1555146288,-1340167644,1114974503,-1765847604,1691668175,2005155131,-2047885768,-604208612,697762079,986182379,-928222744,476452099,-301099520,-44210700,255256311,1640403810,-1817374623,-2130844779,1922457750,-1503918979,1412925310,1197962378,-1257441399,-350237779,427051182,170179418,-129025959,746937522,-554770511,-843174843,1070968646,1905808397,-2081171698,-1868356358,1657317369,-1241332974,1147748369,1463399397,-1521340186,-79622974,153784257,444234805,-401473738,1021025245,-827320098,-572462294,797665321,-2097792136,1889384571,1674398607,-1851340660,1164749927,-1224265884,-1537745776,1446797203,137323447,-96149324,-384560320,461344835,-810158936,1037989803,781091935,-588970148,-1834419177,1623424788,1939049696,-2114449437,1429367560,-1487280117,-1274471425,1180866812,410100952,-367384613,-112536529,186734380,-538233913,763408580,1053836080,-860110797,-1572096602,1344288421,1131464017,-1323612590,1708204729,-1749376582,-2065018290,1988219213,680717673,-621187478,-911630946,1002577565,-284657034,493091189,238226049,-61306494,-1307217207,1082061258,1395524158,-1589280451,1972364758,-2015074603,-1800104671,1725896226,952904198,-894981883,-638100751,731699698,-11092711,222117402,510512622,-335130899,-1014159676,837199303,582374963,-790768336,68661723,-159632680,-450051796,390545967,1230274059,-1153434360,-1469116676,1510247935,-1899042540,2091215383,1878366691,-1650582816,-741088853,565732008,854102364,-1065151905,340358836,-433916489,-177076669,119113024,1493875044,-1419691417,-1204696685,1247431312,-1634718085,1828433272,2141937292,-1916740209,-483350502,291187481,34330861,-262120466,615137029,-691946490,-980332558,939183345,1776939221,-1685949482,-1999470558,2058945313,-1368168502,1545135305,1330124605,-1121741762,-210866315,17165430,307568514,-532767615,888469610,-962626711,-707819363,665062302,2042050490,-1948470087,-1735637171,1793573966,-1104306011,1279665062,1595330642,-1384295599];for(n=0;n>>8^r[255&(t^e.charCodeAt(n))];return(-1^t)>>>0}function isArray(e){return\"[object Array]\"===Object.prototype.toString.call(e)}function isDefAndNotNull(e){return null!=e}function updateQueryStringParameter(e,t,n){t=encodeURIComponent(t),n=encodeURIComponent(n);var r=new RegExp(\"([?|&])\"+t+\"=.*?(&|$)\",\"i\");return separator=-1!==e.indexOf(\"?\")?\"&\":\"?\",e.match(r)?e.replace(r,\"$1\"+t+\"=\"+n+\"$2\"):e+separator+t+\"=\"+n}function fetchShortenedUrl(e,t,n){function r(t,n){i[e].forEach(function(e){e[t](n)}),delete i[e]}n=n||noop;var o=!1,i=fetchShortenedUrl.inProgress,a=fetchShortenedUrl.cache,c=\"http\"==e.slice(0,4),u=new RegExp(\"^(https?://)?(www.)?(\"+fetchShortenedUrl.invalidDomains.map(function(e){return e.replace(/[^a-zA-Z]/g,\"\\\\$&\")}).join(\"|\")+\")(/|\\\\?)\").test(e);if(!c||u)return void n();if(a[e])return void defer(function(){t(a[e])},0,\"fetchShortenedUrl defer success callback\");if(i[e]||(i[e]=[],o=!0),i[e].push({success:t,error:n}),o){var s=creative.runtimeParams.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl,d=s+\"/services/shortener\",f={longUrl:e},p=btoa(to_utf8(e));p=p.replace(/\\//g,\"$\").replace(/\\+/g,\"_\").replace(/=/g,\"\");var l={cbName:\"shortener_\"+p};loadJSONP(d+\"?\"+buildQuery(f),l,function(t){a[e]=t.id,r(\"success\",t.id)},function(){r(\"error\")})}}function isMediaPlaying(e){try{return e.currentTime>0&&!e.paused&&!e.ended}catch(t){return!1}}function merge(){var e,t,n={};for(t=0;tt?0:1}function pulse(e,t,n){return step(e,n)-step(t,n)}function smoothstep(e,t,n){var r=clamp(0,1,(n-e)/(t-e));return r*r*r*((6*r-15)*r+10)}function bump(e,t,n){var r=clamp(0,1,(n-e)/(t-e));return(Math.cos(Math.PI*r)+1)/2}function getWindowNesting(e){var t={iframe:e!==e.top,friendlyIframe:!1,iabFriendlyIframe:!1,hostileIframe:!1,iframeDepth:0};if(t.iframe){var n=e;try{for(t.friendlyIframe=!!e.top.location.href,t.iabFriendlyIframe=t.friendlyIframe&&\"undefined\"!=typeof e.inDapIF&&e.inDapIF;\"undefined\"!=typeof n.parent.location.href&&n.parent.document!==n.document;)n=n.parent,t.iframeDepth++;\"undefined\"==typeof e.top.document&&(t.hostileIframe=!0)}catch(r){t.hostileIframe=!0}}return t}function isFetchSupported(){return!!(window.fetch&&window.URL&&URL.createObjectURL)}function isBeaconSupported(){return!(!window.navigator||!window.navigator.sendBeacon)}function isNativeImplementation(e){return\"function\"==typeof e&&e.toString().indexOf(\"[native code]\")>-1}!function(e){if(!this.defer){try{for(;\"undefined\"!=typeof e.parent.location.href&&e.parent.document!==e.document;)e=e.parent}catch(t){}var n=function(){function t(){return 9007199254740991===s?0:++s}var n,r,o,i,a=e,c=\"function\"==typeof a.setImmediate;if(a.MutationObserver)return function(e){n=document.createElement(\"div\"),new MutationObserver(function(){e(),n=null}).observe(n,{attributes:!0}),n.setAttribute(\"i\",\"1\")};if(!c&&a.postMessage&&!a.importScripts&&a.addEventListener){var u=\"com.setImmediate\"+Math.random(),s=0;i={};var d=function(e){if(e.source===a&&0===e.data.indexOf(u)){var t=e.data.split(\":\")[1];i[t](),delete i[t]}};return a.addEventListener(\"message\",d,!1),function(e){var n=t();i[n]=e,a.postMessage(u+\":\"+n,\"*\")}}return!c&&a.document&&\"onreadystatechange\"in document.createElement(\"script\")?function(e){r=document.createElement(\"script\"),r.onreadystatechange=function(){r.onreadystatechange=null,r.parentNode.removeChild(r),r=null,e()},document.body.appendChild(r)}:(o=c&&setImmediate||setTimeout,function(e){o(e)})}();this.defer=function(t,r,o,i){var a,c=0|r;if(o){var u;\"undefined\"!=typeof defer.perf?u=defer.perf:\"undefined\"!=typeof creative?u=creative.perf:\"undefined\"!=typeof perf&&(u=perf),u&&(u._stopTrackingDefers||(a=u.start(\"defer\",{deferId:o,delay:c})))}if(t){var s=function(){a&&a.end(),t()};i?n(s):e.setTimeout(s,c)}}}}(window),Function.prototype.bind||Object.defineProperty(Function.prototype,\"bind\",{value:function(e){var t=this;return function(){return t.apply(e,arguments)}}}),function(e){e.getEventNames=function(){var t={};return\"WebKitAnimationEvent\"in e&&(t.animationstart=\"webkitAnimationStart\",t.animationiteration=\"webkitAnimationIteration\",t.animationend=\"webkitAnimationEnd\"),\"WebKitTransitionEvent\"in e&&(t.transitionend=\"webkitTransitionEnd\"),t}}(window),_isListenerOptionSupported.opts={};var getTimestamp=function(){return void 0===window.performance||void 0===window.performance.now?Date.now:window.performance.now.bind(window.performance)}();Date.now||(Date.now=function(){return+new Date}),Array.prototype.waitForEach||Object.defineProperty(Array.prototype,\"waitForEach\",{value:function(e,t,n){var r=this.length;r?this.forEach(function(o,i,a){var c=!1;e.call(n,o,function(){if(c)throw\"Called `done` multiple times for element \"+i;c=!0,--r||t()},i,a)},n):t()}}),function(e){e.loadJS=function(t,n,r,o){var i=e.loadJS.externals,a={success:n||noop,error:r||noop};if(!/^[A-Za-z0-9]*:\\/\\/|^\\/\\//.test(t)){var c=creative.hostedFiles.filter(function(e){return e.filepath===t})[0];if(\"undefined\"==typeof c)return console.warn('Hosted file \"'+t+'\" was not found.'),void a.error();if(c.loaded!==!1)return console.warn('Hosted file \"'+t+'\" is already loaded.'),void setTimeout(a.success,0);c.loaded=!0,t=creative.cachedApiUrl+\"hostedFiles/\"+creative.id+\"/\"+creative.version+\"/\"+t}if(t in i&&!o)i[t].loaded?setTimeout(a.success,0):i[t].cbs.push(a);else{i[t]={cbs:[a]};var u=document.createElement(\"script\");u.type=\"text/javascript\",u.onload=function(){i[t].loaded=!0,i[t].cbs.forEach(function(e){e.success()}),i[t].cbs=[]},u.onerror=function(){i[t].cbs.forEach(function(e){e.error()}),i[t].cbs=[],delete i[t]},u.src=t,e.loadJS.appendToRoot(u)}},e.loadJS.externals={},e.loadJS.appendToRoot=function(e){return document.querySelector(\"head\").appendChild(e)},e.loadJSONP=function(t,n,r,o){\"function\"==typeof n&&(o=r,r=n,n={});var i=n.cbName||\"__jsonp\"+randInt();t+=(-1==t.indexOf(\"?\")?\"?\":\"&\")+(n.paramName||\"jsonp\")+\"=\"+i,e[i]=function(t){r(t),delete e[i]},loadJS(t,noop,o,!0)}}(window),\"undefined\"==typeof Function.prototype.name&&!function(){var e=/^function\\s+(\\w+?)\\s*?\\(/;Object.defineProperty(Function.prototype,\"name\",{get:function(){var t=this.constructor.prototype.toString.call(this);return e.test(t)?t.match(e)[1]:\"\"}})}(),fetchShortenedUrl.cache={},fetchShortenedUrl.inProgress={},fetchShortenedUrl.invalidDomains=[\"db.tt\",\"lnkd.in\",\"t.co\",\"youtu.be\",\"goo.gl\",\"adf.ly\",\"bit.do\",\"bit.ly\",\"fur.ly\",\"ht.ly\",\"is.gd\",\"ow.ly\",\"tr.im\",\"tiny.cc\",\"tinyurl.com\"];;\nfunction CPoint(t,i){this.x=1*t||0,this.y=1*i||0}function CRect(t,i,e,o){this.left=1*t||0,this.top=1*i||0,this.width=1*e||0,this.height=1*o||0}CPoint.offset=function(t){var i=offset(t);return new CPoint(i.left,i.top)},CPoint.convertPointFromNodeToPage=function(t,i){if(!t||\"undefined\"!=typeof t.x)return null;var e=CPoint.offset(t);return new CPoint((i?i.x:0)+(e?e.x:0),(i?i.y:0)+(e?e.y:0))},CPoint.convertPointFromPageToNode=function(t,i){if(!t||\"undefined\"!=typeof t.x)return null;var e=CPoint.offset(t);return new CPoint((i?i.x:0)-(e?e.x:0),(i?i.y:0)-(e?e.y:0))},CPoint.sample=function(t,i,e){for(var o=Math.floor(Math.sqrt(t.width*i/t.height)),n=Math.floor(Math.sqrt(t.height*i/t.width)),h=t.width/o,r=t.height/n,s=0;n>s;s++)for(var f=0;o>f;f++)e((f+.5)*h+t.left,(s+.5)*r+t.top)},CPoint.epsilon=function(t,i,e){return Math.abs(t-i)h||0>r?CRect.ZERO:new CRect(i,e,h,r)},CRect.prototype.copyFrom=function(t){this.left=t.left,this.top=t.top,this.width=t.width,this.height=t.height},CRect.prototype.relativeTo=function(t){return new CRect(this.left-t.left,this.top-t.top,this.width,this.height)},CRect.prototype.contains=function(t){return t instanceof CPoint?t.x>=this.left&&t.x<=this.right&&t.y>=this.top&&t.y<=this.bottom:t instanceof CRect?t.left>=this.left&&t.right<=this.right&&t.top>=this.top&&t.bottom<=this.bottom:void 0},CRect.prototype.map=function(t,i){var e=i.width/t.width,o=i.height/t.height;return new CRect((this.left-t.left)*e+i.left,(this.top-t.top)*o+i.top,this.width*e,this.height*o)},CRect.prototype.equals=function(t){return t&&this.left==t.left&&this.top==t.top&&this.right==t.right&&this.bottom==t.bottom},CRect.prototype.toString=function(){return\"CRect: \"+JSON.stringify(this)};;\nfunction Logger(e){if(!(this instanceof Logger))return new Logger(e);e=e||\"\";var n=noop;(Logger.enabledNames.indexOf(e)>=0||Logger.enabledNames.indexOf(\"all\")>=0)&&(n=function(){var e=[].slice.apply(arguments);e.unshift(Logger._ts()+\" [\"+Logger.sessionId+(this.name?\" \"+this.name:\"\")+\"]\"),console.log.apply(console,e)}),this.name=e,this.log=n,this.warn=n,this.debug=n,this.error=n}Logger._ts=function(){function e(e,n){for(e+=\"\";e.lengthn[t])return 1}return 0}var i,o,s;if(!e)return!0;if(0===n.length)o=null,s=null;else if(1===n.length)o=n[0],s=n[0];else{if(2!==n.length)throw\"Invalid number of arguments\";o=n[0],s=n[1]}for(e=e.split(\".\").map(t),o=o?o.split(\".\").map(t):[],s=s?s.split(\".\").map(t):[],i=Math.max(o.length,s.length)-e.length;i>=0;i--)e.push(0);return!(-1===r(e,o)||1===r(e,s))}function a(e,n){if(-1===e.indexOf(\"Playstation\")){var t=e.match(/\\bSilk\\/([0-9._-]+)\\b/);t&&(n.browserName=\"Amazon Silk\",n.browserVersion=t[1])}n.browserName&&n.browserVersion&&(0===n.browserName.indexOf(\"Chrome\")&&s(n.browserVersion,[\"28\",null])||0===n.browserName.indexOf(\"Opera\")&&s(n.browserVersion,[\"15\",null]))&&(n.browserRenderingEngine=\"Blink\"),n.browserRenderingEngineVersion||(n.browserRenderingEngineVersion=function(){var n;return(n=e.match(/Trident\\/([0-9.]+)/))?n[1]:(n=e.match(/Presto\\/([0-9.]+)/))?n[1]:(n=e.match(/AppleWebKit\\/*([0-9.]+)/i))?n[1]:(n=e.match(/Gecko\\/*([0-9.]+)/),n?n[1]:\"\")}())}t.prototype.android=function(){return\"Android\"===this.name&&s(this.version,arguments)},t.prototype.osx=function(){return\"OSX\"===this.name&&s(this.version,arguments)},t.prototype.ios=function(){return\"IOS\"===this.name&&s(this.version,arguments)},t.prototype.windows=function(){return\"Windows\"===this.name&&s(this.version,arguments)},t.prototype.windowsPhone=function(){return\"WindowsPhone\"===this.name&&s(this.version,arguments)},t.prototype.linux=function(){return\"Linux\"===this.name},r.prototype.safari=function(){return\"Safari\"===this.name&&s(this.version,arguments)},r.prototype.chrome=function(){return 0===this.name.indexOf(\"Chrome\")&&s(this.version,arguments)},r.prototype.ie=function(){return 0===this.name.indexOf(\"Internet Explorer\")&&s(this.version,arguments)},r.prototype.android=function(){return\"Android Browser\"===this.name&&s(this.version,arguments)},r.prototype.samsung=function(){return\"Samsung Browser\"===this.name&&s(this.version,arguments)},r.prototype.opera=function(){return 0===this.name.indexOf(\"Opera\")&&s(this.version,arguments)},r.prototype.silk=function(){return\"Amazon Silk\"===this.name&&s(this.version,arguments)},r.prototype.firefox=function(){return\"Firefox\"===this.name&&s(this.version,arguments)},r.prototype.edge=function(){return\"Edge\"===this.name&&s(this.version,arguments)},r.prototype.webView=function(){var n=null,t=\"iP\"===(e.navigator.platform||\"\").substr(0,2);if(t){var r=this.userAgent,i=-1!==r.indexOf(\"Safari\")&&-1!==r.indexOf(\"Version\"),o=!/constructor/i.test(e.HTMLElement);i&&!e.navigator.standalone?n=\"iOS Safari or Safari Controller\":(o||e.indexedDB)&&e.statusbar.visible?(e.webkit&&e.webkit.messageHandlers||o||e.indexedDB)&&(n=\"WKWebView\"):n=\"UIWebView\"}return n},i.prototype.webkit=function(){return\"WebKit\"===this.name&&s(this.version,arguments)},i.prototype.gecko=function(){return\"Gecko\"===this.name&&s(this.version,arguments)},i.prototype.trident=function(){return\"Trident\"===this.name&&s(this.version,arguments)},i.prototype.presto=function(){return\"Presto\"===this.name&&s(this.version,arguments)},i.prototype.blink=function(){return\"Blink\"===this.name&&s(this.version,arguments)},o.prototype.phone=function(){return\"Phone\"===this.hardwareType},o.prototype.tablet=function(){return\"Tablet\"===this.hardwareType},o.prototype.desktop=function(){return\"Desktop\"===this.hardwareType},o.prototype.mobileDevice=function(){return this.mobile===!0},e.CeltraDeviceInfo.create=function(t,r){return t=t||e.navigator.userAgent||\"\",r=r||{},a(t,r),new n(r,t)}}(window);;\nwindow.deviceInfo=CeltraDeviceInfo.create(window.navigator.userAgent,window.celtraDeviceInfoRuntimeParams);;\n!function(e){function n(){var e=p().match(/iP(ad|hone|od).*OS ([0-9_]+)/);return!!e&&s(e[2].replace(/_/g,\".\"),arguments)}function t(){var e=p().match(/Android ([0-9.]+)/),n=p().match(/Windows Phone/);return!n&&!!e&&s(e[1],arguments)}function r(){var e=p().match(/Windows Phone ([0-9.]+)/);return!!e&&s(e[1],arguments)}function i(){var e=p().match(/AppleWebKit\\/*([0-9.]+)/i);return!!e&&s(e[1],arguments)}function a(){var e=p().match(/Gecko\\/*([0-9.]+)/i);return!!e&&s(e[1],arguments)}function o(){var e=p().match(/MSIE ([0-9]{1,}[.0-9]{0,})|Trident.* rv:([0-9]{1,}[.0-9]{0,})/i);return!!e&&s(e[1]||e[2],arguments)}function u(){var e=p().match(/Silk\\/([0-9.]+)/);return!!e&&s(e[1],arguments)}function f(){var e=p().toLowerCase();return/kftt|kfot|kfjwi|kfjwa|kfso|kfth|kfapwi|kfthwi|kfsowi|kfthwa|kfapwa|kfap|sd4930ur/.test(e)?s(\"2\",arguments):!1}function d(){return\"undefined\"!=typeof offsetWidthOverride?offsetWidthOverride:(document.body.offsetWidth,Math.min(innerWidth,innerHeight))}function c(){return/iPad/.test(p())||d()>550}function m(){return!(t()||n()||r())}function s(e,n){function t(e){return parseInt(e.replace(/\\D/g,\"\"),10)}function r(e,n){for(var t=0;tn[t])return 1}return 0}var i,a,o;if(!e)return!0;if(0===n.length)a=null,o=null;else if(1===n.length)a=n[0],o=n[0];else{if(2!==n.length)throw\"Invalid number of arguments\";a=n[0],o=n[1]}e=e.split(\".\").map(t),a=a?a.split(\".\").map(t):[],o=o?o.split(\".\").map(t):[];for(var i=v.max(a.length,o.length)-e.length;i>=0;i--)e.push(0);return!(-1===r(e,a)||1===r(e,o))}function h(){return v.top!==e}function l(){if(!(n()||window.chrome&&\"Google Inc.\"===window.navigator.vendor))return!1;var e;return e=p().match(n()?/CriOS\\/([0-9]+.)/:/Chrome\\/([0-9]+.)/),!!e&&s(e[1],arguments)}function g(){var e=\"(-webkit-min-device-pixel-ratio: 1.5),(min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),(min-resolution: 1.5dppx)\";return window.devicePixelRatio>1||window.matchMedia&&window.matchMedia(e).matches}e.celtra=e.celtra||{};var w={};w.ios=n,w.android=t,w.webkit=i,w.windowsPhone=r,w.gecko=a,w.windows=o,w.kindleSilk=u,w.kindle=f,w.iframe=h,w.desktop=m,w.tablet=c,w.chromeBased=l,w.isHighDensityDisplay=g,extend(e.celtra,w),delete w.webkit,extend(e,w);var v={max:e.Math.max,min:e.Math.min,userAgent:e.navigator.userAgent,top:e.top},p=function(){return\"undefined\"!=typeof e.userAgentOverride?e.userAgentOverride:v.userAgent}}(window);;\n!function(e){function t(){var t=e;try{for(;\"undefined\"!=typeof t.parent.location.href&&t.parent.document!==t.document;)t=t.parent}catch(n){}return t}function n(){return s.getComputedStyle(s.document.body,null)}function i(e,t,n){if(!e)throw new Error(\"No element specified!\");if(a(t)){if(!(t in e.style)&&i.BREAK_ON_ERROR)throw new Error(\"Invalid CSS attribute \"+t);if(\"undefined\"==typeof n)return e.style[t];e.style[t]=n}else{if(-1==w.indexOf(t)&&o(t),\"undefined\"==typeof n)return e.style[y[t]];e.style[y[t]]=n}}function r(e,t){if(!e)throw new Error(\"No element specified!\");var n=e.ownerDocument.defaultView.getComputedStyle(e,null);if(R&&v.indexOf(t)>-1&&(t=\"webkit\"+u(t)),!n||\"none\"==n.display||!f())return null;if(!(t in n)&&i.BREAK_ON_ERROR)throw new Error(\"Invalid CSS attribute \"+t);return a(t)?n[t]:(-1==w.indexOf(t)&&o(t),n[y[t]])}function o(e){S=S||n();var t=E+u(e);if(R&&v.indexOf(e)>-1)y[e]=t;else if(S&&e in S)y[e]=e;else if(S&&t in S)y[e]=t;else if(!S&&deviceInfo.browser.firefox)y[e]=e;else if(i.BREAK_ON_ERROR)throw new Error(\"Invalid CSS attribute \"+e+' or iframe still display \"none\" in FF');w.push(e)}function a(e){return p.test(e)}function f(){if(e===s)return!0;var t=e.frameElement.ownerDocument.defaultView.getComputedStyle(e.frameElement,null);return t&&\"none\"!=t.display}function u(e){return e+=\"\",e?e[0].toUpperCase()+e.slice(1):\"\"}var l=e.navigator.userAgent,s=t(),c=/rv:.*Gecko\\//.test(l),d=/MSIE|Trident\\//.test(l),m=/WebKit/.test(l),p=/^-?([mM]oz|[wW]eb[kK]it|[mM]s)-?/,y={},w=[],E=function(){return m?\"webkit\":d?\"ms\":c?\"Moz\":\"\"}(),R=function(){var e=l.match(/AppleWebKit\\/(\\d+)/);return e&&~~e[1]<540}(),v=[\"transform\",\"transform-origin\",\"transform-style\",\"transition\",\"transition-delay\",\"transition-duration\",\"transition-property\",\"transition-timing-function\",\"animation\",\"animation-delay\",\"animation-direction\",\"animation-duration\",\"animation-fill-mode\",\"animation-iteration-count\",\"animation-name\",\"animation-play-state\",\"animation-timing-function\",\"appearance\",\"backface-visibility\",\"perspective\",\"perspective-origin\"],S=n();i.BREAK_ON_ERROR=!1,e.celtra=e.celtra||{},e.celtra.styler={css:i,computedCSS:r,isWebkit:m,isGecko:c,isIE:d},e.css=i,e.computedCSS=r}(window);;\nvar Freezer={};Freezer.unfreeze=function(n,e,o){function t(n,e,o,t,a){ActionInvocationSimulator.isDryRun()?ActionInvocationSimulator.needsDryRun(n.internalId)&&(ActionInvocationSimulator.logActionDryRun(n.internalId,n.method,e.localId),e[n.method+\"ActionDryRun\"]?e[n.method+\"ActionDryRun\"](o,t,a):a()):e[n.method+\"Action\"](o,t,a)}function a(n){if(n instanceof Array)return n.map(a);if(n instanceof Object){var o;if(\"ActionInvocation\"===n.clazz){n.internalId=++c;var s=l;o=function(e,a){if(!e)throw\"Cannot execute an action without a context.\";a||(a=noop);var i=o.isStatic;if(\"undefined\"==typeof i&&(i=!o.instance),o.disabled)return void a();if(i){if(o.instance)throw\"ActionInvocation for a static method must not have an instance assigned.\";if(\"function\"!=typeof o.actionClazz[o.method+\"Action\"])throw\"Clazz \"+o.actionClazz+' does not define the static action \"'+o.method+'\".';var r=extend({},o.args,{triggerId:s,caller:n});t(o,o.actionClazz,e,r,a)}else if(o.instance){if(!(o.instance instanceof o.actionClazz))throw\"Instance \"+o.instance+\" is not an instance of clazz \"+o.actionClazz;if(\"function\"!=typeof o.instance[o.method+\"Action\"])throw\"Instance of clazz \"+o.actionClazz+' does not define the instance action \"'+o.method+'\".';var r=extend({},o.args,{triggerId:s,caller:n});t(o,o.instance,e,r,a)}else ActionInvocationSimulator.isDryRun()?a():defer(a,0,\"Freezer.unfreeze defer c\")}}else if(n.clazz){var f=e[n.clazz];if(!f)throw new Error(\"Unsupported clazz: \"+n.clazz);o=Object.create(f.prototype)}else o={},n.onFire&&(l=n.type);for(var d in n)n.hasOwnProperty(d)&&\"clazz\"!==d&&(o[d]=a(n[d]));i.push(o),o.localId&&(r[o.localId]&&console.error(\"Duplicate localId: \"+o.localId),r[o.localId]=o);for(var d in o)if(\"clazz\"===d.slice(-5).toLowerCase()){var z=o[d];if(!z)continue;e[z]?o[d]=e[z]:console.error(\"Unsupported clazz: \"+o.clazz)}return o}return n}var i=[],r={},c=0,l=null,s=a(n);i.forEach(function(n){for(var e in n)if(\"LocalId\"===e.slice(-7)){var o=n[e];if(o instanceof Function)continue;var t;null===o?t=null:(t=r[o],t||console.error(\"Invalid localId reference: \"+o)),n[e.slice(0,-7)]=t,delete n[e]}else if(\"LocalIds\"===e.slice(-8)){for(var a=[],i=0;in-c;if(!i){var o=r._downloadQueue[t];o.requested||(o.requested=!0,e.push(t),o.secure&&(a=!0))}}e.length&&(Logger(\"batcher\").log(e.length+\" new batchable URLs requested during last runloop iteration (\"+(a?\"at least one secure\":\"none secure\")+\"):\\n - \"+e.join(\"\\n - \")),r._loadBatch(a,e,function(e){for(var a in e){var t=e[a];t===!1&&(t=(r._downloadQueue[a].secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+a),r._cache[a]=t,r._downloadQueue[a].callbacks.forEach(function(e){e(t)}),delete r._downloadQueue[a]}}))},0,\"Batcher.getDataUri downloadQueue\",useAsap())):defer(function(){a(e)},0,\"Batcher.getDataUri url not batchable\",useAsap())},Batcher.prototype._generateBatchUrl=function(e,a){var r=(e?creative.cachedApiUrl:creative.insecureCachedApiUrl)+\"batch?urls=\"+a.sort().map(encodeURIComponent).join(\",\");return r},Batcher.prototype._loadBatch=function(e,a,r){function t(e){var a,r=5381;for(a=0;al+i*l||r>d+c*d)&&(L.addPoint(t,n,o/1e3,u(document.elementFromPoint(t,n))),E=o,j=0)}}function r(e){var t=Date.now();I=D.setTimeout(function(){i(e,t)},200)}function i(e,t){w&&(w=!1,t||(t=Date.now()),L.addPoint(T,C,t/1e3,u(document.elementFromPoint(T,C))),h.track(L),b?(p.removeEventListener(\"touchmove\",o,f),p.removeEventListener(\"touchend\",i,f)):(p.removeEventListener(\"mousemove\",o,f),p.removeEventListener(\"mouseup\",i,f)),p.removeEventListener(\"mouseout\",r,f))}function c(e,t){var n=null,a=null,o=null,r=!1;return t instanceof Screen?(n=t,a=null,o=n.parentUnitVariant,r=!0):\"undefined\"!=typeof ScreenObject&&t instanceof ScreenObject?(n=t.parentScreen,a=t,o=n.parentUnitVariant,r=!0):\"undefined\"!=typeof CreativeUnitVariant&&t instanceof CreativeUnitVariant&&(n=null,a=null,o=t,r=!0),r?extend({unitName:o?o.parentUnit.name:n.parentUnit.name,unitVariantLocalId:o?o.localId:null,screenLocalId:n?n.localId:null,screenTitle:n?n.title:null,screenIsMaster:n?n.isMasterScreen():null,objectLocalId:a?a.localId:null,objectName:a?a.name:null,objectClazz:a?a.constructor.name:null,initiationTimestamp:new Date/1e3},e):e}function u(e){function t(e){for(var o in e)if(e.hasOwnProperty(o)){if(e[o].name&&e[o].name==a)return e[o];if(e[o].localId&&e[o].localId==n)return e[o];var r;if(e[o].variants?r=t(e[o].variants):e[o].screens?r=t(e[o].screens):e[o].objects?r=t(e[o].objects):e[o].content&&e[o].content.objects?r=t(e[o].content.objects):e[o].component&&(r=e[o].component),r)return r}}if(!e)return null;for(var n,a,o=e;;){if(o.id&&0==o.id.indexOf(\"celtra-\")){a=o.id.replace(\"celtra-\",\"\"),0==o.id.indexOf(\"celtra-object-\")&&(n=o.id.replace(\"celtra-object-\",\"\"));var r=t(g);if(r)return\"undefined\"!=typeof CreativeUnit&&r instanceof CreativeUnit?r.currentScreen:r}if(!o.parentNode)break;o=o.parentNode}return null}var l=15,d=100,s=3e3,m=40,f={capture:!0,passive:!0},p=e,v=t,h=t.adapter.trackingCenter,g=t.units,w=!1,I=null,b=!0,L={},j=0,M=null,E=Date.now(),T=0,y=0,C=0,U=0,D=e.ownerDocument.defaultView||e.ownerDocument.parentWindow;attach(p,\"touchstart\",n,f),attach(p,\"mousedown\",n,f)};\nfunction Tapper(e,t){function a(e){for(var t=e,a=null;1!=t.nodeType;)t=t.parentNode;for(;t&&1==t.nodeType&&t.tagName;){var n=t.tagName.toLowerCase();if(hasClass(t,\"touchable\")||\"a\"===n&&t.href||\"button\"===n||\"img\"===n||\"input\"===n&&t.type&&\"button\"===t.type.toLowerCase()){a=t;break}t=t.parentNode}return a}function n(e,t){var a=e.ownerDocument.createEvent(\"MouseEvents\");a.initEvent(\"tap\",!0,!0),t.dispatchEvent(a)}var o=\"undefined\"!=typeof creative&&creative.adapter||adapter,c=o.useImprovedTapDetection?10:20,r=o.useImprovedTapDetection?200:400;t=t||o.useNativeClickForTapDetection,t&&(attach(e,\"click\",function(t){var o=a(t.target);o&&n(e,o)},!0),o.useNativeClickForTapDetection)||attach(e,\"touchstart\",function(i){var u=a(i.target);if(u){var h=!1;if(celtra.iframe()){var s=function(){var e=o.getTopWindow();return[e.scrollX,e.scrollY,e.innerWidth,e.innerHeight]},d=s();h=!0}var v=i.targetTouches[0].clientX-c,l=i.targetTouches[0].clientX+c,f=i.targetTouches[0].clientY-c,p=i.targetTouches[0].clientY+c;addClass(u,\"touched\");var g=!1,T=!1,m=!1,C=!1,D=new Date,w=function(e){if(!g&&!T){var t=e.targetTouches[0].clientX,a=e.targetTouches[0].clientY;g=h&&d.toString()!=s().toString(),T=!(t>=v&&l>=t&&a>=f&&p>=a),T||g?removeClass(u,\"touched\"):addClass(u,\"touched\")}},y=function(){if(!C&&(C=!0,detach(e,\"touchmove\",w,!1),detach(e,\"touchend\",arguments.callee,!1),hasClass(u,\"touched\"))){var a=new Date-D>r&&!deviceInfo.deviceType.desktop();if(removeClass(u,\"touched\"),T||g||m||a)return;t||n(e,u)}},N=function(){detach(e,\"touchend\",N,!0),nextFrame(function(){m=!0,y()})};attach(e,\"touchcancel\",function(e){removeClass(u,\"touched\"),y(e)},!1),attach(e,\"touchmove\",w,!1),attach(e,\"touchend\",y,!1),attach(e,\"touchend\",N,!0)}},!0)};\nfunction TouchEventSimulator(t){this.el=t,this.doc=t.ownerDocument?t.ownerDocument:t,this.win=this.doc.defaultView,this.touch=null,this._initialised=!1,this._firstEventFired=!1,this.handleFirstEvent=this.handleFirstEvent.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this),this.handlePointerMove=this.handlePointerMove.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handlePointerCancel=this.handlePointerCancel.bind(this),this.captureBubbleEvents=this.captureBubbleEvents.bind(this)}TouchEventSimulator.mode=null,TouchEventSimulator.prototype.start=function(){return this._initialised?void(\"function\"==typeof Logger&&Logger(\"TouchEventSimulator\").warn(\"Touch event simulator already initialised!\")):(\"function\"==typeof Logger&&Logger(\"TouchEventSimulator\").log(\"Enabling touch event simulation\"),this.doc.defaultView.msPointerEnabled?this.startPointers():this.startMouse(),this.el.addEventListener(\"touchstart\",this.captureBubbleEvents,!1),this.el.addEventListener(\"touchmove\",this.captureBubbleEvents,!1),this.el.addEventListener(\"touchend\",this.captureBubbleEvents,!1),this.el.addEventListener(\"touchcancel\",this.captureBubbleEvents,!1),void this.el.addEventListener(\"tap\",this.captureBubbleEvents,!1))},TouchEventSimulator.prototype.stop=function(){return this._initialised?(\"function\"==typeof Logger&&Logger(\"TouchEventSimulator\").log(\"Disabling touch event simulation\"),this.win&&this.win.msPointerEnabled?this.stopPointers():this.stopMouse(),this.el.removeEventListener(\"touchstart\",this.captureBubbleEvents,!1),this.el.removeEventListener(\"touchmove\",this.captureBubbleEvents,!1),this.el.removeEventListener(\"touchend\",this.captureBubbleEvents,!1),this.el.removeEventListener(\"touchcancel\",this.captureBubbleEvents,!1),void this.el.removeEventListener(\"tap\",this.captureBubbleEvents,!1)):void(\"function\"==typeof Logger&&Logger(\"TouchEventSimulator\").warn(\"Touch event simulator not running!\"))},TouchEventSimulator.prototype.captureBubbleEvents=function(t){t.stopPropagation(),t.preventDefault()},TouchEventSimulator.prototype.startMouse=function(){this.el.addEventListener(\"mousedown\",this.handleMouseDown,!0),this.el.addEventListener(\"mousemove\",this.handleMouseMove,!0),this.el.addEventListener(\"mouseup\",this.handleMouseUp,!0),this.el.addEventListener(\"mouseout\",this.handleMouseOut,!0),this.el.addEventListener(\"dragstart\",this.handleDragStart,!0),this._initialised=!0},TouchEventSimulator.prototype.stopMouse=function(){this.el.removeEventListener(\"mousedown\",this.handleMouseDown,!0),this.el.removeEventListener(\"mousemove\",this.handleMouseMove,!0),this.el.removeEventListener(\"mouseup\",this.handleMouseUp,!0),this.el.removeEventListener(\"mouseout\",this.handleMouseOut,!0),this.el.removeEventListener(\"dragstart\",this.handleDragStart,!0),this._initialised=!1},TouchEventSimulator.prototype.startPointers=function(){this.el.addEventListener(\"MSPointerDown\",this.handlePointerDown,!0),this.el.addEventListener(\"MSPointerMove\",this.handlePointerMove,!0),this.el.addEventListener(\"MSPointerUp\",this.handlePointerUp,!0),this.el.addEventListener(\"MSPointerCancel\",this.handlePointerCancel,!0),this._initialised=!0},TouchEventSimulator.prototype.stopPointers=function(){this.el.removeEventListener(\"MSPointerDown\",this.handlePointerDown,!0),this.el.removeEventListener(\"MSPointerMove\",this.handlePointerMove,!0),this.el.removeEventListener(\"MSPointerUp\",this.handlePointerUp,!0),this.el.removeEventListener(\"MSPointerCancel\",this.handlePointerCancel,!0),this._initialised=!1},TouchEventSimulator.prototype.init=function(){this.doc.defaultView.navigator.msPointerEnabled?this.start():(this.el.addEventListener(\"touchstart\",this.handleFirstEvent,!0),this.el.addEventListener(\"mousedown\",this.handleFirstEvent,!0))},TouchEventSimulator.prototype.updateTouchCoordinates=function(t){this.touch.screenX=t.screenX,this.touch.screenY=t.screenY,this.touch.pageX=t.pageX,this.touch.pageY=t.pageY,this.touch.clientX=t.clientX,this.touch.clientY=t.clientY},TouchEventSimulator.prototype.ignorables=[\"select\",\"input\",\"textarea\"],TouchEventSimulator.prototype.isFormElement=function(t){return this.ignorables.indexOf(t.nodeName.toLowerCase())>-1},TouchEventSimulator.prototype.isIgnorable=function(t){for(var e=t;e&&e instanceof HTMLElement;e=e.parentNode)if(hasClass(e,\"ignore-toucheventsimulator\"))return!0;return!1},TouchEventSimulator.prototype.handleFirstEvent=function(t){this._firstEventFired||(this._firstEventFired=!0,this.el.removeEventListener(\"touchstart\",this.handleFirstEvent,!0),this.el.removeEventListener(\"mousedown\",this.handleFirstEvent,!0),\"touch\"!=TouchEventSimulator.mode&&\"mousedown\"==t.type?(TouchEventSimulator.mode=\"mouse\",this.start(),this.handleMouseDown(t)):TouchEventSimulator.mode=\"touch\")},TouchEventSimulator.prototype.handleMouseDown=function(t){0!=t.button||this.isIgnorable(t.target)||(this.touch={identifier:0,target:t.target},this.updateTouchCoordinates(t),t.stopPropagation(),this.isFormElement(t.target)||t.preventDefault(),this.fireTouchEvent(\"touchstart\",t))},TouchEventSimulator.prototype.handleMouseMove=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),t.stopPropagation(),t.preventDefault(),this.fireTouchEvent(\"touchmove\",t))},TouchEventSimulator.prototype.handleMouseUp=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),t.stopPropagation(),t.preventDefault(),this.fireTouchEvent(\"touchend\",t),this.touch=null)},TouchEventSimulator.prototype.handleMouseOut=function(t){this.touch&&0==t.button&&(t.clientX<0||t.clientX>this.win.innerWidth||t.clientY<0||t.clientY>this.win.innerHeight)&&this.cancelInteraction()},TouchEventSimulator.prototype.handleDragStart=function(t){return t.preventDefault(),!1},TouchEventSimulator.prototype.handlePointerDown=function(t){0==t.button&&(this.touch={identifier:0,target:t.target},this.updateTouchCoordinates(t),this.fireTouchEvent(\"touchstart\",t))},TouchEventSimulator.prototype.handlePointerMove=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),this.fireTouchEvent(\"touchmove\",t))},TouchEventSimulator.prototype.handlePointerUp=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),this.fireTouchEvent(\"touchend\",t))},TouchEventSimulator.prototype.handlePointerCancel=function(t){this.touch&&0==t.button&&(this.updateTouchCoordinates(t),this.fireTouchEvent(\"touchcancel\",t),this.touch=null)},TouchEventSimulator.prototype.fireTouchEvent=function(t,e){var n=this.doc.createEvent(\"HTMLEvents\");n.initEvent(t,!0,!0),\"touchend\"==t||\"touchcancel\"==t?(n.touches=n.targetTouches=[],n.changedTouches=[this.touch]):n.touches=n.targetTouches=n.changedTouches=[this.touch],e.target.dispatchEvent(n)},TouchEventSimulator.prototype.cancelInteraction=function(){this.touch&&(this.fireTouchEvent(\"touchcancel\",this.touch),this.touch=null)};;\nfunction SwipeListener(e){function t(e,t){return Math.abs(e)>Math.abs(t)?e>0?\"east\":\"west\":t>0?\"south\":\"north\"}function n(){r.removeEventListener(\"touchmove\",a),r.removeEventListener(\"touchend\",o)}function a(e){if(e.touches.length>1)n();else{var a=e.changedTouches[0].pageX-s,o=e.changedTouches[0].pageY-c;if(u=Math.max(Math.abs(a),Math.abs(o)),u>Math.min(50,v))if(null===i)i=t(a,o);else{var h=t(a,o);i!=h&&n()}}}function o(){n(),u>=v&&d(i,u)}function h(e){creative.adapter.useNativeClickForTapDetection||e.preventDefault(),1==e.touches.length&&(s=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY,i=null,r.addEventListener(\"touchmove\",a,!1),r.addEventListener(\"touchend\",o,!1))}var s,c,i,u,r=e.target,d=e.swipe,v=e.minLength||50;window.addEventListener(\"touchstart\",noop,!1),r.addEventListener(\"touchstart\",h,!1)};\nfunction PlaceboBar(e,t,a,i){var n=!1,r=document.createElement(\"div\");r.className=\"celtra-placebobar\",r.style.cssText=\"position: absolute; bottom: 60px; left: 0; right: 0; margin: auto; z-index: 20; width: 215px; height: 8px;\";var l=document.createElement(\"img\");l.src=creative.resourceUrl+\"runner/clazzes/CreativeUnit/loading-back.png\",l.style.position=\"absolute\",l.style.width=\"100%\",l.style.height=\"100%\",r.appendChild(l);var o=document.createElement(\"div\");o.style.position=\"absolute\",o.style.top=\"2px\",o.style.bottom=\"2px\",o.style.left=\"3px\",o.style.right=\"3px\",r.appendChild(o);var s=document.createElement(\"div\");return s.style.background=\"url(\"+creative.resourceUrl+\"runner/clazzes/CreativeUnit/loading-over.png) \"+i+\" repeat-x\",s.style.position=\"absolute\",s.style.width=\"0\",s.style.height=\"100%\",o.appendChild(s),r.start=function(){function i(){if(r.parentNode){var n=Math.min((new Date-l)/e,t);s.style.width=100*n+\"%\",t>n&&setTimeout(i,2*a*Math.random())}}if(!n){n=!0;var l=new Date;setTimeout(i,0)}},r};\nvar EventEmitter={emit:function(t){var e=this._listeners;if(e&&e[t]){var n=[].slice.call(arguments,1);e[t].forEach(function(t){t.apply(window,n)})}},emits:function(){var t=arguments;return function(){this.emit.apply(this,t)}.bind(this)},addListener:function(t,e){var n=this._listeners;n||(n=this._listeners={}),n[t]||(n[t]=[]),n[t].push(e)},removeListener:function(t,e){var n=this._listeners;n&&n[t]&&(n[t]=n[t].filter(function(t){return t!==e}))},once:function(t,e){var n=this;n.on(t,function i(){n.off(t,i),e.apply(this,arguments)})},onAll:function(t,e){t.split(\" \").waitForEach(function(t,e){this.once(t,e)},e,this)}};EventEmitter.on=EventEmitter.addListener,EventEmitter.off=EventEmitter.removeListener,EventEmitter.addEventListener=EventEmitter.addListener,EventEmitter.removeEventListener=EventEmitter.removeListener;;\nfunction InViewObject(t,e){this.view=t,this.inViewParent=e,this._init()}extend(InViewObject.prototype,EventEmitter),InViewObject.prototype._init=function(){this.rectInView=CRect.ZERO,this.areaInViewRatio=0,this.active=!1,this._maxPossibleDimensions={width:0,height:0,area:0},this.computeRectInView=this.computeRectInView.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this)},InViewObject.prototype.getNode=function(){return this.view.getNode()},InViewObject.prototype.getParentMaxPossDims=function(){return this.inViewParent?this.inViewParent.getMaxPossibleDimensions():this.adapter.getViewportRect()},InViewObject.prototype.computeRectInView=function(){var t=this.inViewParent.getRectInView(),e=this.getBoundingClientRect(),i=t.intersect(e),n=!1;this.rectInView.equals(i)||(this.rectInView=i,n=!0),this._computeMaxPossibleDimensions(e,this.getParentMaxPossDims());var s=this._maxPossibleDimensions.area>0?i.area/this._maxPossibleDimensions.area:0,o=!1;s!==this.areaInViewRatio&&(this.areaInViewRatio=s,o=!0),n&&(this.emit(\"rectInViewChanged\",i),Logger(\"InViewObject\").debug(this.view.toString()+\", rectInViewChanged: \"+this.rectInView.toString())),o&&(this.emit(\"areaInViewRatioChanged\",s),Logger(\"InViewObject\").debug(this.view.toString()+\", areaInViewRatioChanged: \"+s))},InViewObject.prototype.getBoundingClientRect=function(){var t=this.getNode();return t?CRect.adopt(t.getBoundingClientRect()):CRect.ZERO},InViewObject.prototype.getMaxPossibleDimensions=function(){return this._maxPossibleDimensions},InViewObject.prototype._computeMaxPossibleDimensions=function(t,e){this._maxPossibleDimensions.width=Math.min(e.width,t.width),this._maxPossibleDimensions.height=Math.min(e.height,t.height),this._maxPossibleDimensions.area=this._maxPossibleDimensions.width*this._maxPossibleDimensions.height},InViewObject.prototype.getRectInView=function(){return this.rectInView},InViewObject.prototype.getAreaInViewRatio=function(){return this.areaInViewRatio},InViewObject.prototype.start=function(){this.active||(this._start(),this.active=!0,this.computeRectInView())},InViewObject.prototype._start=function(){this.inViewParent.on(\"rectInViewChanged\",this.computeRectInView),this.inViewParent.on(\"areaInViewRatioChanged\",this.computeRectInView)},InViewObject.prototype.stop=function(){this.active&&(this.computeRectInView(),this._stop(),this.active=!1)},InViewObject.prototype._stop=function(){this.inViewParent.off(\"rectInViewChanged\",this.computeRectInView),this.inViewParent.off(\"areaInViewRatioChanged\",this.computeRectInView)};;\nfunction TaskScheduler(){this.hub=extend({},EventEmitter)}TaskScheduler.prototype.when=function(){var t,e=this;return t=Array.isArray(arguments[0])?arguments[0]:Array.prototype.slice.call(arguments),{run:function(n){t.waitForEach(function(t,n){e.hub.once(t,n)},n)}}},TaskScheduler.prototype.notify=function(t){this.paused||this.hub.emit(t)},TaskScheduler.prototype.notifies=function(t){return function(){this.notify(t)}.bind(this)},TaskScheduler.prototype.pause=function(){this._paused=!0};;\nfunction DryRunResultSet(t){this._actions=t}DryRunResultSet.prototype.contains=function(t,n){return this._actions.some(function(e){var o=t==e.method,u=!n||n==e.instance;return o&&u})},DryRunResultSet.prototype.getAll=function(){return this._actions},DryRunResultSet.prototype.concat=function(t){return new DryRunResultSet(this._actions.concat(t.getAll()))};;\nvar ActionInvocationSimulator={_dryRun:!1,_dryRunActions:[],_dryRunExecutedActionsLocalIds:[],beginDryRun:function(){this._dryRun=!0,this._dryRunActions=[],this._dryRunExecutedActionsLocalIds=[]},endDryRun:function(){var n=this._dryRunActions;return this._dryRun=!1,this._dryRunActions=[],this._dryRunExecutedActionsLocalIds=[],new DryRunResultSet(n)},isDryRun:function(){return this._dryRun},needsDryRun:function(n){return!this._dryRunExecutedActionsLocalIds[n]},logActionDryRun:function(n,t,u){this._dryRunExecutedActionsLocalIds[n]=!0,this._dryRunActions.push({method:t,instance:u})}};;\nvar TriggerHost={_getTriggers:function(r,i){return i||(i=retTrue),this.triggers.filter(function(t){return t.type==r&&i(t.parameters,t)})},_fireArrayOfTriggers:function(r,i,t){var e=this;i||(i=noop),t||(t=new ActionContext(e)),r.waitForEach(function(r,i){r.onFire?r.onFire(t,i):i()},i)},hasTriggers:function(r,i){return this._getTriggers(r,i).length>0},fireTriggersDryRun:function(r,i,t,e){var n;try{ActionInvocationSimulator.beginDryRun(),this.fireTriggers(r,i,t,e)}finally{n=ActionInvocationSimulator.endDryRun()}return n},fireTriggers:function(r,i,t,e){var n=this._getTriggers(r,i);this._fireArrayOfTriggers(n,t,e)},fireSortedTriggers:function(r,i,t,e,n){var g=this._getTriggers(r,i),n=n||null;this._fireArrayOfTriggers(g.sort(n),t,e)},triggerAction:function(r,i,t){this.fireTriggers(i.eventName,null,t,r)},triggerByLocalIdAction:function(r,i,t){var e=i.event?[i.event]:[];this._fireArrayOfTriggers(e,t,r)},triggerByLocalIdActionDryRun:function(r,i,t){this.triggerByLocalIdAction(r,i,t)}};;\nvar SceneHost={_initImmediatelyPlayedScenes:function(){if(this.immediatelyPlayedScenes){var e=[];if(this instanceof Screen){e=this.immediatelyPlayedScenes.appear.scenes;var i=!this.appearedAtLeastOnce;i&&(e=e.concat(this.immediatelyPlayedScenes.firstAppear.scenes))}else e=this.immediatelyPlayedScenes.conditionMet.scenes;e.forEach(function(e){e.renderFirstFrame()})}}};;\nfunction ActionContext(e,t){if(this._id=randInt(),this.initiator=e,this.initiationTimestamp=new Date/1e3,\"object\"==typeof t?(this.consideredUserInitiatedByBrowser=!!t.consideredUserInitiatedByBrowser,this.certainlyNotCausedByUserBehavior=!!t.certainlyNotCausedByUserBehavior):(this.consideredUserInitiatedByBrowser=!!t,this.certainlyNotCausedByUserBehavior=!1),this.inUserInitiatedIteration=this.consideredUserInitiatedByBrowser,this.consideredUserInitiatedByBrowser&&this.certainlyNotCausedByUserBehavior)throw new Error(\"Unable to create an ActionContext where both consideredUserInitiatedByBrowser and certainlyNotCausedByUserBehavior are true!\");if(e instanceof Screen)this.screen=e,this.screenObject=null,this.unitVariant=this.screen.parentUnitVariant;else if(e instanceof ScreenObject)this.screen=e.parentScreen,this.screenObject=e,this.unitVariant=this.screen.parentUnitVariant;else{if(!(\"undefined\"!=typeof CreativeUnitVariant&&e instanceof CreativeUnitVariant))throw new Error(\"Initiator (\"+e+\") is not a Screen or a ScreenObject. Analytics would be confused.\");this.screen=null,this.screenObject=null,this.unitVariant=e}if(this.inUserInitiatedIteration){var i=function(){this.inUserInitiatedIteration=!1}.bind(this);defer(i),nextFrame(i)}if(this.trackUserInteraction=this.trackUserInteraction.bind(this),this._isAttributable=!!this.screen&&this._isScreenReadyForEventAttribution(),this.screen&&!this.screen.parentUnit.name)throw new Error(\"Parent unit missing name.\")}ActionContext.prototype._isScreenReadyForEventAttribution=function(){return this.screen.isMasterScreen()?this.screen.parentContainer.screens.some(function(e){return e.appearedAtLeastOnce&&e.isNormalScreen()}):this.screen.appearedAtLeastOnce},ActionContext.prototype.extendEvent=function(e){return extend({unitName:this.unitVariant?this.unitVariant.parentUnit.name:this.screen.parentUnit.name,unitVariantLocalId:this.unitVariant?this.unitVariant.localId:null,screenLocalId:this.screen?this.screen.localId:null,screenTitle:this.screen?this.screen.title:null,screenIsMaster:this.screen?this.screen.isMasterScreen():null,objectLocalId:this.screenObject?this.screenObject.localId:null,objectName:this.screenObject?this.screenObject.name:null,objectClazz:this.screenObject?this.screenObject.constructor.name:null,initiationTimestamp:this.initiationTimestamp},e)},ActionContext.prototype.track=function(e,t){this.screen&&!this._isAttributable&&console.warn('Event \"'+e.name+'\" appears to be initiated before a screen was ever shown and will be ignored.'),creative.track(this.extendEvent(e),t)},ActionContext.prototype.trackUserInteraction=function(){if(creative.getUserInteracted())creative.interactionTrackingTimeout||(this.track({name:\"interaction\"}),creative.interactionTrackingTimeout=setTimeout(function(){creative.interactionTrackingTimeout=null},1e3));else{if(creative.runtimeParams.userInteracted=1,creative.experiments.get(\"TrackViewableAreaChange\")){var e=creative.adapter;e.canMeasureViewportPlacementGeometry&&\"function\"==typeof e.trackViewableAreaRatio&&e.trackViewableAreaRatio()}this.track({name:\"firstInteraction\"})}defer(creative.trackingCenter.batchFlush),creative.userInteracted(this)},ActionContext.prototype.trackClickThrough=function(e){e||(e=noop),creative.runtimeParams.clickedThrough?setTimeout(e,0):(creative.runtimeParams.clickedThrough=1,this.track({name:\"firstClickThrough\"},e)),defer(creative.trackingCenter.batchFlush),creative.clickedThrough(this)};;\nfunction VideoContext(t,e,i){VideoContext.uberConstructor.call(this,t instanceof ActionContext?t.initiator:t,t&&t.userInitiated),this.file=e,this.url=e.getUrl(),this.label=i,this.source=null}inherit(VideoContext,ActionContext),VideoContext._eventNames=[\"videoDurationUpdate\",\"videoPlayAttempted\",\"videoPlayedSegment\",\"videoStart\",\"videoFirstQuartile\",\"videoMidpoint\",\"videoThirdQuartile\",\"videoComplete\"],VideoContext.prototype.registerSource=function(t){if(!t)throw\"Not a valid source of video events.\";this.source=t,VideoContext._eventNames.forEach(function(t){this.source.on(t,function(e){this.handleEvent(t,e)}.bind(this))}.bind(this))},VideoContext.prototype.handleEvent=function(t,e){this.track(extend(JSON.parse(JSON.stringify(e||{})),{name:t}))},VideoContext.prototype.track=function(t){if(\"videoPlayAttempted\"==t.name){var e=this.file.url?\"URL\":\"File\";extend(t,{sourceType:e,source:\"URL\"==e?this.file.url:this.file.blobHash,label:this.label})}VideoContext.uber.track.call(this,t)};;\nfunction ShakeListener(){this.shakeThreshold=1.5,this.canListen=!0,this.slidingWindow=5,this.signals=[],this.handleMotion=this.handleMotion.bind(this),this.topWindow=creative.adapter.getTopWindow()}extend(ShakeListener.prototype,EventEmitter),ShakeListener.prototype.start=function(){this.canListen=!0,creative.deviceMotionListenerAdded||(creative.deviceMotionListenerAdded=!0,this.topWindow.addEventListener(\"devicemotion\",this.handleMotion))},ShakeListener.prototype.stop=function(){this.canListen=!1,creative.deviceMotionListenerAdded&&(creative.deviceMotionListenerAdded=!1,this.topWindow.removeEventListener(\"devicemotion\",this.handleMotion))},ShakeListener.prototype.handleMotion=function(i){if(this.canListen){this.signals.push(i.accelerationIncludingGravity),this.signals.length>this.slidingWindow&&this.signals.shift();var e=this.signals.reduce(function(i,e){return{x:i.x+e.x,y:i.y+e.y,z:i.z+e.z}}),t={x:e.x/this.signals.length,y:e.y/this.signals.length,z:e.z/this.signals.length};if(this.prevSignal){var s=null,n=Math.abs(t.x-this.prevSignal.x),h=Math.abs(t.y-this.prevSignal.y),a=Math.abs(t.z-this.prevSignal.z);if(90===Math.abs(creative.adapter.orientation)){var o=h;h=n,n=o}n>h&&n>a&&n>this.shakeThreshold?s=\"x\":h>n&&h>a&&h>this.shakeThreshold?s=\"y\":a>n&&a>h&&a>this.shakeThreshold&&(s=\"z\"),(n>this.shakeThreshold||h>this.shakeThreshold||a>this.shakeThreshold)&&this.emit(\"shake\",s)}this.prevSignal=t}};;\n!function(){\"use strict\";function t(t){for(var e in t)this[e]=t[e]}var e=function(t){var e=\"undefined\"!=typeof FontFace,i=/iP(?:ad|hone|od).*OS ([0-9_]+)/.exec(t),n=!!i&&parseInt(i[1],10)>=10,o=/^(?!.*(?:Android|Chrome)).*Version\\/(\\d+(?:\\.\\d+)*).*?Safari/.exec(t);if(o||n)return!1;var s=/Gecko.*Firefox\\/(\\d+)/.exec(t);return s?e&&parseInt(s[1],10)>46:e}(window.navigator.userAgent);t.prototype.getId=function(){return this.typefaceId||this.id},t.prototype.getSubsetString=function(){return this.subset},t.prototype.getUnicodeRange=function(){return this.unicodes},t.prototype.getBrowserCompatibleFontFamily=function(){var t=this.supportsStretch()&&this.stretch?this.family+\" \"+this.stretch:this.family;if(t.length>25){for(var e,i=5381,n=0,o=t.length;o>n;n++)e=t.charCodeAt(n),i=(i<<5)+i+e;return i.toString()}return t},t.prototype.setBaseUrl=function(t){this.baseUrl=t},t.prototype.isCustom=function(){return\"custom\"===this.provider},t.prototype.isGoogle=function(){return\"google\"===this.provider},t.prototype.isMonotype=function(){return\"monotype\"===this.provider},t.prototype.isSystem=function(){return\"system\"===this.provider},t.prototype.hasSubsetStringDefined=function(){var t=this.getSubsetString();return\"string\"==typeof t&&t.length>0},t.prototype.hasUnicodeRangeDefined=function(){var t=this.getUnicodeRange();return\"string\"==typeof t&&t.length>0},t.prototype.needsLoading=function(){return this.isMonotype()||this.isGoogle()||this.isCustom()},t.prototype.supportsStretch=function(){return this.isMonotype()||this.isCustom()},t.prototype.getCssProperties=function(){return{\"font-family\":this.needsLoading()?'\"'+this.getBrowserCompatibleFontFamily()+'\", Helvetica, sans-serif':this.getBrowserCompatibleFontFamily(),\"font-style\":this.style,\"font-weight\":this.weight}},t.prototype.getFileUrl=function(t){if(\"undefined\"!=typeof this.files&&\"undefined\"!=typeof this.files[t]){var e=this.getId();if(\"string\"!=typeof e)return this.baseUrl+this.files[t]+\".\"+t;var i=this.files[t]&&this.files[t].name||\"webfont\",n=this.baseUrl+e+\"/\"+encodeURIComponent(i)+\".\"+t;return this.hasSubsetStringDefined()&&(n+=\"?subset=\"+encodeURIComponent(this.getSubsetString())),n}},t.prototype.getStyleForVariation=function(){var t=/normal|italic|oblique/i.exec(this.style);return\"undefined\"!=typeof t?t[0]:void 0},t.prototype.getWeightForVariation=function(){var t=/normal|bold|([1-9])00/i.exec(this.weight);return\"undefined\"!=typeof t?t[0]:void 0},t.prototype.generateFontFace=function(){var t=\"\",e=this.getFileUrl(\"ttf\"),i=this.getFileUrl(\"woff\");return this.style&&this.weight&&(e||i)&&(t=\"@font-face {\",t+='font-family: \"'+this.getBrowserCompatibleFontFamily()+'\";',t+=\"font-style: \"+this.style+\";\",t+=\"font-weight: \"+this.weight+\";\",t+=\"src:\",i&&(t+='url(\"'+i+'\") format(\"woff\")'),e&&i&&(t+=\",\"),e&&(t+='url(\"'+e+'\") format(\"truetype\")'),t+=\";\",this.hasUnicodeRangeDefined()&&(t+=\"unicode-range: \"+this.getUnicodeRange()+\";\"),t+=\"}\"),t},t.prototype.loadStyle=function(t){t=t||function(){};var i=this.getBrowserCompatibleFontFamily(),n=function(e){t(e||\"Failed to load font files.\")},o=function(){if(e){var o=\"300px\",s=this.style+\" \"+this.weight+\" \"+o+' \"'+i+'\"',r=this.hasUnicodeRangeDefined()&&this.hasSubsetStringDefined()?this.getSubsetString():\" \";document.fonts.load(s,r).then(function(e){1===e.length?t():n()},function(){n()})}else{if(\"undefined\"==typeof FontLoader)return void n(\"Font Loader is not initialized.\");FontLoader.watch(i,this.style,this.weight,t,n,this.getSubsetString())}}.bind(this);if(this.isCustom()||this.isMonotype()){var s=\"font-style-manager\",r=document.getElementById(s);r||(r=document.createElement(\"style\"),r.id=s,document.getElementsByTagName(\"head\")[0].appendChild(r));var a=this.generateFontFace();if(!a)return void n(\"Unable to define style for font without specifying files, style and weight.\");var f=[].slice.apply(r.sheet.cssRules).some(function(t){var e=t.style.getPropertyValue(\"font-family\").replace(/^['\"](.+)['\"]$/,\"$1\");return e==this.getBrowserCompatibleFontFamily()&&t.style.getPropertyValue(\"font-style\")==this.style&&t.style.getPropertyValue(\"font-weight\")==this.weight}.bind(this));f||r.sheet.insertRule(a,r.sheet.cssRules.length),o()}else if(this.isGoogle()){var h=(\"https:\"===document.location.protocol?\"https\":\"http\")+\"://fonts.googleapis.com/css\",l=i.replace(/ /g,\"+\"),u=this.variation;if(!u){var d=\"\",p=\"\",g=this.getWeightForVariation();if(\"undefined\"!=typeof g){p=g,\"normal\"==p?p=400:\"bold\"==p&&(p=700);var c=this.getStyleForVariation();\"undefined\"!=typeof c&&\"italic\"==c&&(d=c)}u=p+d}u&&(l+=\":\"+u);var y=h+\"?family=\"+l;this.hasSubsetStringDefined()&&(y+=\"&text=\"+encodeURIComponent(this.getSubsetString()));var m=[].slice.apply(document.getElementsByTagName(\"link\")).filter(function(t){return t.href===y})[0];if(m||(m=document.createElement(\"link\"),m.setAttribute(\"rel\",\"stylesheet\"),m.setAttribute(\"media\",\"all\"),m.setAttribute(\"href\",y)),e){var v=function(){m._finished=!0,o()};m._finished?o():(m.addEventListener(\"load\",v),m.addEventListener(\"error\",v))}else\"undefined\"!=typeof defer?defer(o,0,\"FontBase.loadStyle defer watchFont\"):setTimeout(o,0);m.parentNode||document.getElementsByTagName(\"head\")[0].appendChild(m)}else this.isSystem()?t():n(\"Invalid or unsupported provider.\")},Object.defineProperty(t,\"useCSSFontLoadingAPI\",{value:e}),window.FontBase=t}();;\nvar ScreenTransition={replace:function(t,e,r,s,i,a){r.style.opacity=0,r.style.display=\"block\",s.style.display=\"block\",e.style.display=\"none\",nextFrame(function(){r.style.opacity=1,t.style.opacity=0,nextFrame(function(){t.style.display=\"none\",nextFrame(a||noop)})})},fade:function(t,e,r,s,i,a){function n(){celtra.styler.css(r,\"transition\",\"\"),celtra.styler.css(t,\"transition\",\"\"),t.style.display=\"none\",nextFrame(a||noop)}r.style.opacity=0,r.style.display=\"block\",s.style.display=\"block\",e.style.display=\"none\",once(t,\"transitionend\",n),nextFrame(function(){celtra.styler.css(t,\"transition\",\"opacity \"+i.duration+\"ms ease-out\"),celtra.styler.css(r,\"transition\",\"opacity \"+i.duration+\"ms ease-out\"),nextFrame(function(){r.style.opacity=1,t.style.opacity=0})})},slide:function(t,e,r,s,i,a){var n={transition:\"all \"+i.duration+\"ms ease-out\"};switch(i.direction||\"west\"){case\"north\":n.startingFrom=\"translateY(0)\",n.endingFrom=\"translateY(\"+-i.unitSize.height+\"px)\",n.startingTo=\"translateY(\"+i.unitSize.height+\"px)\",n.endingTo=\"translateY(0)\";break;case\"south\":n.startingFrom=\"translateY(0)\",n.endingFrom=\"translateY(\"+i.unitSize.height+\"px)\",n.startingTo=\"translateY(\"+-i.unitSize.height+\"px)\",n.endingTo=\"translateY(0)\";break;case\"east\":n.startingFrom=\"translateX(0)\",n.endingFrom=\"translateX(\"+i.unitSize.width+\"px)\",n.startingTo=\"translateX(\"+-i.unitSize.width+\"px)\",n.endingTo=\"translateX(0)\";break;case\"west\":n.startingFrom=\"translateX(0)\",n.endingFrom=\"translateX(\"+-i.unitSize.width+\"px)\",n.startingTo=\"translateX(\"+i.unitSize.width+\"px)\",n.endingTo=\"translateX(0)\"}n.startingFromOpacity=1,n.startingToOpacity=0,n.endingFromOpacity=0,n.endingToOpacity=1,this._runTransition(t,e,r,s,n,i.duration,a)},flip:function(t,e,r,s,i,a){var n={transition:\"all \"+i.duration+\"ms ease-out\"},o=\"perspective(\"+2*i.unitSize.width+\"px) \";switch(i.direction||\"west\"){case\"north\":n.startingFrom=o+\"rotateX(0)\",n.endingFrom=o+\"rotateX(180deg)\",n.startingTo=o+\"rotateX(-180deg)\",n.endingTo=o+\"rotateX(0)\";break;case\"south\":n.startingFrom=o+\"rotateX(0)\",n.endingFrom=o+\"rotateX(-180deg)\",n.startingTo=o+\"rotateX(180deg)\",n.endingTo=o+\"rotateX(0)\";break;case\"east\":n.startingFrom=o+\"rotateY(0)\",n.endingFrom=o+\"rotateY(180deg)\",n.startingTo=o+\"rotateY(-180deg)\",n.endingTo=o+\"rotateY(0)\";break;case\"west\":n.startingFrom=o+\"rotateY(0)\",n.endingFrom=o+\"rotateY(-180deg)\",n.startingTo=o+\"rotateY(180deg)\",n.endingTo=o+\"rotateY(0)\"}celtra.styler.css(t.parentNode,\"transformStyle\",\"preserve-3d\"),celtra.styler.css(t,\"backfaceVisibility\",\"hidden\"),celtra.styler.css(e,\"backfaceVisibility\",\"hidden\"),celtra.styler.css(r,\"backfaceVisibility\",\"hidden\"),celtra.styler.css(s,\"backfaceVisibility\",\"hidden\"),celtra.styler.css(t,\"transformOrigin\",\"50% 50% 0\"),celtra.styler.css(e,\"transformOrigin\",\"50% 50% 0\"),celtra.styler.css(r,\"transformOrigin\",\"50% 50% 0\"),celtra.styler.css(s,\"transformOrigin\",\"50% 50% 0\"),this._runTransition(t,e,r,s,n,i.duration,function(){celtra.styler.css(t.parentNode,\"transformStyle\",\"\"),celtra.styler.css(t,\"backfaceVisibility\",\"\"),celtra.styler.css(e,\"backfaceVisibility\",\"\"),celtra.styler.css(r,\"backfaceVisibility\",\"\"),celtra.styler.css(s,\"backfaceVisibility\",\"\"),celtra.styler.css(t,\"transform\",\"\"),celtra.styler.css(e,\"transform\",\"\"),celtra.styler.css(r,\"transform\",\"\"),celtra.styler.css(s,\"transform\",\"\"),celtra.styler.css(t,\"transformOrigin\",\"\"),celtra.styler.css(e,\"transformOrigin\",\"\"),celtra.styler.css(r,\"transformOrigin\",\"\"),celtra.styler.css(s,\"transformOrigin\",\"\"),nextFrame(a||noop)})},cube:function(t,e,r,s,i,a){var n={transition:\"all \"+i.duration+\"ms ease-out\"},o=\"perspective(\"+2*i.unitSize.width+\"px) \";switch(i.direction||\"west\"){case\"north\":n.startingFrom=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(0) \",n.endingFrom=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(90deg) \",n.startingTo=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(-90deg)\",n.endingTo=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(0) \";break;case\"south\":n.startingFrom=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(0) \",n.endingFrom=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(-90deg)\",n.startingTo=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(90deg) \",n.endingTo=o+\"translateZ(\"+-i.unitSize.height/2+\"px) rotateX(0) \";break;case\"east\":n.startingFrom=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(0) \",n.endingFrom=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(90deg) \",n.startingTo=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(-90deg)\",n.endingTo=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(0) \";break;case\"west\":n.startingFrom=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(0) \",n.endingFrom=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(-90deg)\",n.startingTo=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(90deg) \",n.endingTo=o+\"translateZ(\"+-i.unitSize.width/2+\"px) rotateY(0) \"}var l=t.style.overflow,c=e.style.overflow,y=r.style.overflow,d=s.style.overflow;switch(celtra.styler.css(t.parentNode,\"transformStyle\",\"preserve-3d\"),t.style.overflow=e.style.overflow=\"hidden\",r.style.overflow=s.style.overflow=\"hidden\",t.style.backfaceVisibility=e.style.backfaceVisibility=\"hidden\",r.style.backfaceVisibility=s.style.backfaceVisibility=\"hidden\",i.direction||\"west\"){case\"north\":case\"south\":celtra.styler.css(t,\"transformOrigin\",\"50% 50% \"+-i.unitSize.height/2+\"px\"),celtra.styler.css(e,\"transformOrigin\",\"50% 50% \"+-i.unitSize.height/2+\"px\"),celtra.styler.css(r,\"transformOrigin\",\"50% 50% \"+-i.unitSize.height/2+\"px\"),celtra.styler.css(s,\"transformOrigin\",\"50% 50% \"+-i.unitSize.height/2+\"px\");break;case\"east\":case\"west\":celtra.styler.css(t,\"transformOrigin\",\"50% 50% \"+-i.unitSize.width/2+\"px\"),celtra.styler.css(e,\"transformOrigin\",\"50% 50% \"+-i.unitSize.width/2+\"px\"),celtra.styler.css(r,\"transformOrigin\",\"50% 50% \"+-i.unitSize.width/2+\"px\"),celtra.styler.css(s,\"transformOrigin\",\"50% 50% \"+-i.unitSize.width/2+\"px\")}this._runTransition(t,e,r,s,n,i.duration,function(){celtra.styler.css(t.parentNode,\"transformStyle\",\"\"),t.style.overflow=l,e.style.overflow=c,r.style.overflow=y,s.style.overflow=d,celtra.styler.css(t,\"transformOrigin\",\"\"),celtra.styler.css(e,\"transformOrigin\",\"\"),celtra.styler.css(r,\"transformOrigin\",\"\"),celtra.styler.css(s,\"transformOrigin\",\"\"),celtra.styler.css(t,\"backfaceVisibility\",\"\"),celtra.styler.css(e,\"backfaceVisibility\",\"\"),celtra.styler.css(r,\"backfaceVisibility\",\"\"),celtra.styler.css(s,\"backfaceVisibility\",\"\"),nextFrame(a||noop)})},_runTransition:function(t,e,r,s,i,a,n){function o(){celtra.styler.css(r,\"transition\",\"\"),celtra.styler.css(s,\"transition\",\"\"),celtra.styler.css(t,\"transition\",\"\"),celtra.styler.css(e,\"transition\",\"\"),celtra.styler.css(r,\"transform\",\"\"),celtra.styler.css(s,\"transform\",\"\"),celtra.styler.css(t,\"transform\",\"\"),celtra.styler.css(e,\"transform\",\"\"),t.style.display=e.style.display=\"none\",t.style.opacity=e.style.opacity=r.style.opacity=s.style.opacity=\"\",nextFrame(n||noop)}celtra.styler.css(t,\"transform\",i.startingFrom),celtra.styler.css(e,\"transform\",i.startingFrom),celtra.styler.css(r,\"transform\",i.startingTo),celtra.styler.css(s,\"transform\",i.startingTo),t.style.opacity=e.style.opacity=\"undefined\"==typeof i.startingFromOpacity?1:i.startingFromOpacity,r.style.opacity=s.style.opacity=\"undefined\"==typeof i.startingToOpacity?1:i.startingToOpacity,r.style.display=s.style.display=\"block\";var l=this._runOnce(o);once(r,\"transitionend\",l),setTimeout(function(){celtra.styler.css(r,\"transition\",i.transition),celtra.styler.css(t,\"transition\",i.transition),celtra.styler.css(s,\"transition\",i.transition),celtra.styler.css(e,\"transition\",i.transition),nextFrame(function(){celtra.styler.css(t,\"transform\",i.endingFrom),celtra.styler.css(e,\"transform\",i.endingFrom),celtra.styler.css(r,\"transform\",i.endingTo),celtra.styler.css(s,\"transform\",i.endingTo),t.style.opacity=e.style.opacity=\"undefined\"==typeof i.endingFromOpacity?1:i.endingFromOpacity,r.style.opacity=s.style.opacity=\"undefined\"==typeof i.endingToOpacity?1:i.endingToOpacity}),setTimeout(l,a+50)},20)},run:function(t,e,r,s,i){var a=this._getSupportedAnimation(i.animation||\"replace\");if(!(a in this))throw new Error(\"The transition function does not exist!\");this[a].apply(this,arguments)},_getSupportedAnimation:function(t){return!android(\"4\")||window.navigator.userAgent.match(/Chrome.*(Mobile)? Safari/)||\"cube\"!==t&&\"flip\"!==t?t:\"fade\"},_runOnce:function(t){var e=!1;return function(){return e?void 0:(e=!0,t())}}};;\nfunction AdViewableTimeObserver(e){this._tracker=e,this._readyToShow=!1,this._adapter}function AdViewableInViewObjectObserver(){AdViewableInViewObjectObserver.uberConstructor.apply(this,arguments),this._inViewObjects=[],this._viewableInViewObjects=[]}function AdViewableUnitObserver(){AdViewableUnitObserver.uberConstructor.apply(this,arguments),this._units=[],this._viewableUnits=[],this._containerIsViewable=!1}AdViewableTimeObserver.prototype.readyToShow=function(){throw new Error(\"AdViewableInViewObjectObserver.readyToShow not implemented!\")},AdViewableTimeObserver.prototype.registerUnit=function(){throw new Error(\"AdViewableInViewObjectObserver.registerUnit not implemented!\")},AdViewableTimeObserver.prototype.registerAdapter=function(){throw new Error(\"AdViewableTimeObserver.registerAdapter not implemented!\")},AdViewableTimeObserver.prototype.stop=function(){this._tracker.stop()},inherit(AdViewableInViewObjectObserver,AdViewableTimeObserver),AdViewableInViewObjectObserver.prototype.registerAdapter=function(e){this._adapter=e;var t=this._tracker;e.mediaState.on(\"videoStarted\",function(){this._tryStartTracker()}.bind(this)),e.mediaState.on(\"videoStopped\",function(){0===this._viewableInViewObjects.length&&t.stop()}.bind(this))},AdViewableInViewObjectObserver.prototype.readyToShow=function(){this._readyToShow=!0,this._tryStartTracker()},AdViewableInViewObjectObserver.prototype.registerUnit=function(e){var t=e.inView,i=this._inViewObjects,r=this._viewableInViewObjects,a=this._tracker;if(-1===i.indexOf(t)){i.push(t);var n=-1!==r.indexOf(t);!n&&t.getAreaInViewRatio()>0&&r.push(t),this._tryStartTracker(),t.on(\"areaInViewRatioChanged\",function(e){var i=r.indexOf(t),n=-1!==i;!n&&e>0?(r.push(t),this._tryStartTracker()):0===e&&n&&(r.splice(i,1),0===r.length&&a.stop())}.bind(this))}},AdViewableInViewObjectObserver.prototype._tryStartTracker=function(){var e=this._adapter,t=e&&e.mediaState.playingVideo;return this._readyToShow&&(this._viewableInViewObjects.length>0||t)?(this._tracker.start(),!0):!1},inherit(AdViewableUnitObserver,AdViewableTimeObserver),AdViewableUnitObserver.prototype.registerAdapter=function(e){this._adapter=e,this._containerIsViewable=e.containerIsViewable;var t=this._tracker;e.on(\"containerViewableChange\",function(e){this._containerIsViewable=e,e?this._tryStartTracker():t.stop()}.bind(this)),e.mediaState.on(\"videoStarted\",function(){this._tryStartTracker()}.bind(this)),e.mediaState.on(\"videoStopped\",function(){this._adapter.containerIsViewable&&0!==this._viewableUnits.length||t.stop()}.bind(this))},AdViewableUnitObserver.prototype.readyToShow=function(){this._readyToShow=!0,this._tryStartTracker()},AdViewableUnitObserver.prototype.registerUnit=function(e){if(!this._adapter)throw new Error(\"adapter was not registered yet!\");var t=this._units,i=this._viewableUnits,r=this._tracker;-1===t.indexOf(e)&&(t.push(e),-1===i.indexOf(e)&&e._visible&&(i.push(e),this._tryStartTracker()),e.on(\"appeared\",function(){-1===i.indexOf(e)&&(i.push(e),this._tryStartTracker())}.bind(this)),e.on(\"disappeared\",function(){var t=i.indexOf(e);-1!==t&&(i.splice(t,1),0===i.length&&r.stop())}.bind(this)))},AdViewableUnitObserver.prototype._tryStartTracker=function(){var e=this._adapter;return e&&(e.containerIsViewable||e.mediaState.playingVideo)&&this._readyToShow&&this._viewableUnits.length>0?(this._tracker.start(),!0):!1};;\nfunction AdViewableTimeTracker(i,e,t,n){this._trackingCenter=i,this._raf=e,this._win=t,this._intervals=n||{3e3:1e3,1e4:2e3,63e3:3e3},this._isRunning=!1,this._viewableMilliseconds=0,this._fromTime=0,this._pendingPingTimeoutId,this._pendingPingRafId,this._maxRafLatency=500}AdViewableTimeTracker.eventName=\"viewableTime\",AdViewableTimeTracker.TrackingData=function(i,e){return i>e&&(e=i),{name:AdViewableTimeTracker.eventName,from:i/1e3,to:e/1e3}},AdViewableTimeTracker.prototype.start=function(){this._isRunning||(this._isRunning=!0,this._fromTime=Date.now(),0===this._viewableMilliseconds?this._initPing():this._setNextPing())},AdViewableTimeTracker.prototype.stop=function(){if(this._clearPendingPing(),this._isRunning&&-1!==this._getPingInterval()){var i=Date.now(),e=i-this._fromTime;this._viewableMilliseconds+=e;var t=new AdViewableTimeTracker.TrackingData(this._fromTime,i);this._track(t)}this._isRunning=!1},AdViewableTimeTracker.prototype._initPing=function(){var i=this._fromTime,e=this._getPingInterval(),t=new AdViewableTimeTracker.TrackingData(this._fromTime,i);this._pendingPingRafId=this._raf.nextFrame(function(){this._track(t),this._setFromTimeForNextPing(i,e),this._setNextPing()}.bind(this))},AdViewableTimeTracker.prototype._setNextPing=function(){function i(){if(this._isRunning){var i=Date.now();this._viewableMilliseconds+=e,this._normalizeFromTime(i,e),this._pendingPingRafId=this._raf.nextFrame(function(){var t=new AdViewableTimeTracker.TrackingData(this._fromTime,i);this._track(t),this._setFromTimeForNextPing(i,e),this._setNextPing()}.bind(this))}}this._clearPendingPing();var e=this._getPingInterval();this._isRunning&&-1!==e&&(this._pendingPingTimeoutId=this._win.setTimeout(i.bind(this),e))},AdViewableTimeTracker.prototype._normalizeFromTime=function(i,e){var t=i-this._fromTime,n=e+this._maxRafLatency;t>n&&(this._fromTime=i)},AdViewableTimeTracker.prototype._setFromTimeForNextPing=function(i,e){var t=Date.now(),n=t-i,r=n>e;this._fromTime=r?t:i},AdViewableTimeTracker.prototype._getPingInterval=function(){var i=this._viewableMilliseconds,e=this._intervals,t=Object.keys(this._intervals),n=1*t[t.length-1],r=-1;return t.some(function(t){return 1*t>i?(r=e[t],i+r>n&&(r=-1),!0):!1}),r},AdViewableTimeTracker.prototype._clearPendingPing=function(){this._raf.cancelFrame(this._pendingPingRafId),this._win.clearTimeout(this._pendingPingTimeoutId)},AdViewableTimeTracker.prototype._track=function(i){this._trackingCenter.track(i)};;\n!function(t){function i(){this.playingVideo=!1}var e=i.prototype;extend(e,EventEmitter),e.stopVideo=function(){this.playingVideo=!1,this.emit(\"videoStopped\")},e.startVideo=function(){this.playingVideo=!0,this.emit(\"videoStarted\")},t.MediaState=i}(window);;\nfunction StateObject(t){Object.defineProperties(this,{values:{enumerable:!1,configurable:!1,writable:!0,value:{}},_isDirty:{enumerable:!1,configurable:!1,writable:!0,value:!1}}),Object.keys(t).forEach(function(e){this.registerValue(e,t[e])},this)}extend(StateObject.prototype,EventEmitter),StateObject.prototype.registerValue=function(t,e){this.values[t]={dirty:!1,value:e},Object.defineProperty(this,t,{get:function(){return this.values[t].value},set:function(e){var i=this.values[t],r=i.value;e!=r&&(i.dirty=!0,i.value=e,this._isDirty=!0,this.emit(\"change:\"+t,e,r))},enumerable:!0})},StateObject.prototype.markClean=function(t){var e=!1;Object.keys(this.values).forEach(function(i){t&&i!==t||(this[i].dirty=!1),e=e||this[i].dirty},this.values),this._isDirty=e},StateObject.prototype.getDirtyValues=function(){for(var t={},e=Object.keys(this.values),i=0;i1&&(t=Array.prototype.slice.apply(arguments));for(var e=0;e=this._targetTime?(this.pause(),this.value=this._targetValue,defer(this._callback||noop),this._startValue=null,this._startTime=null,this._targetValue=null,this._targetTime=null,this._callback=null):this.value=Math.pow(t/this._targetTime,this.options.exp)*i+this._startValue};;\nfunction ThresholdObserver(e){this.threshold=e,this._value=null}extend(ThresholdObserver.prototype,EventEmitter),Object.defineProperty(ThresholdObserver.prototype,\"value\",{get:function(){return this._value},set:function(e){if(null!==this._value&&this._value!==e){var t=this._value-this.threshold,h=e-this.threshold;0>=t*h&&(0>t?this.emit(\"up\"):0>h&&this.emit(\"down\"))}this._value=e}});;\nfunction BaseCreativeUnit(){}inherit(BaseCreativeUnit,View),BaseCreativeUnit.IGNORABLES=[\"INPUT\",\"SELECT\",\"TEXTAREA\",\"BUTTON\"],BaseCreativeUnit.prototype.awake=function(){BaseCreativeUnit.uber.awake.call(this),this._availableSize={width:0,height:0},this._isRendering=!1,this._engagementTracker=null,this._rxState=null,this._rxStateCopies=[]},BaseCreativeUnit.prototype.createNode=function(){Logger(\"unit\").log(\"Starting to load \"+this),this.on(\"loaded\",creative.adapter.perf.start(\"CreativeUnit.load\").end),creative.experiments.get(\"TrackingLoadingTimes\")&&this.once(\"_firstScreenLoaded\",function(){var e=Date.now()-1e3*creative.runtimeParams.payloadJsClientTimestamp;if(3e4>e){var t={unitName:this.name};creative.aggregatorTracking.trackAggregator(\"unitLoadTime\",e,t),creative.aggregatorTracking.trackAggregator(\"unitLoadSuccesses\",t)}}.bind(this)),creative.adapter.on(\"mediaStopRequested\",function(e){this.emit(\"mediaStopRequested\",e)}.bind(this)),this.unitDiv=BaseCreativeUnit.uber.createNode.call(this);var e=\"only\"==(creative.experiments.get(\"ExtendedEngagement\")||{}).chosenVariant;return e&&(this._engagementTracker=new EngagementTracker(this.unitDiv,creative)),Tapper(this.unitDiv,this.useClickForTap),attach(this.unitDiv,\"touchstart\",this._handleTouchStart.bind(this)),attach(this.unitDiv,\"touchmove\",this._handleTouchMove.bind(this)),this.unitDiv},BaseCreativeUnit.prototype.setAvailableSize=function(e,t){var r=this._availableSize.width!=e||this._availableSize.height!=t;return this._availableSize.width=e,this._availableSize.height=t,r},BaseCreativeUnit.prototype.getAvailableSize=function(){return{width:this._availableSize.width,height:this._availableSize.height}},BaseCreativeUnit.prototype.enterRenderTree=function(){throw new Error(\"Not implemented\")},BaseCreativeUnit.prototype.exitRenderTree=function(){throw new Error(\"Not implemented\")},BaseCreativeUnit.prototype.finishedLoading=function(){BaseCreativeUnit.uber.finishedLoading.call(this),Logger(\"unit\").log(\"Finished loading \"+this)},BaseCreativeUnit.prototype._handleTouchStart=function(e){if(!this.swipeable&&!creative.adapter.useNativeClickForTapDetection){for(var t=e.target;1!=t.nodeType;)t=t.parentNode;var r=function(){for(;t!==this.unitDiv;){if(t.className&&hasClass(t,\"map-container\"))return!0;t=t.parentNode}return!1}.bind(this);-1!=BaseCreativeUnit.IGNORABLES.indexOf(t.nodeName)||r()||e.preventDefault()}},BaseCreativeUnit.prototype._handleTouchMove=function(e){this.swipeable||e.preventDefault()},BaseCreativeUnit.prototype.createRxState=function(){this._rxState=this._generateNewRxStateObject()},BaseCreativeUnit.prototype._generateNewRxStateObject=function(){return new StateObject({left:null,top:null,right:null,bottom:null,width:null,height:null,vw:null,vh:null,x:null,y:null,pageYOffset:null})},BaseCreativeUnit.prototype.updateRxState=function(e){if(this._rxState){var t=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;this._rxState.left=~~t.left,this._rxState.top=~~t.top,this._rxState.right=~~t.right,this._rxState.bottom=~~t.bottom,this._rxState.width=~~t.width,this._rxState.height=~~t.height,this._rxState.vw=r.innerWidth,this._rxState.vh=r.innerHeight,this._rxState.pageYOffset=r.pageYOffset,this._rxState.x=~~(t.left+t.width/2-r.innerWidth/2),this._rxState.y=~~(t.top+t.height/2-r.innerHeight/2),this._rxStateCopies.forEach(function(e){e.copyFrom(this._rxState)}.bind(this))}},BaseCreativeUnit.prototype.getRxStateObject=function(){if(this._rxState){var e=this._generateNewRxStateObject();return e.copyFrom(this._rxState),this._rxStateCopies.push(e),e}},BaseCreativeUnit.prototype.goToScreenAction=function(){throw new Error(\"Not implemented\")},BaseCreativeUnit.prototype.alertAction=function(e,t,r){this.alert({message:t.text},r)},BaseCreativeUnit.prototype.checkOrientationAction=function(e,t,r){var a,i=creative.adapter.orientation;0===i||180===i?a=t.onPortrait:(-90==i||90==i)&&(a=t.onLandscape),a?a(e,r):r()},BaseCreativeUnit.prototype.checkOrientationActionDryRun=BaseCreativeUnit.prototype.checkOrientationAction,BaseCreativeUnit.prototype._processURLParams=function(e){return\"string\"!=typeof e?e:creative.macros(e)},BaseCreativeUnit.prototype._addUrlAppendage=function(e){if(creative.urlOpenedUrlAppendage){var t=this.size.width+\"x\"+this.size.height,r=function(e){return e.indexOf(\"?\")>=0};return e+(r(e)?\"&\":\"?\")+creative.urlOpenedUrlAppendage.replace(new RegExp(\"{celtraFirstUnitSize}\",\"ig\"),t)}return e},BaseCreativeUnit.prototype.openClickThroughDestinationAction=function(e,t,r){var a=creative.clickThroughDestinationUrl,i=creative.shouldClickThroughToNewWindow(e),n=!1,o=2e3,s=\"clickThroughDestinationOpened\",c=function(){n||(n=!0,creative.adapter.openPotentialUniversalOrAppLink(this._processURLParams(a),i))}.bind(this);if(a){var l=function(e){return e.indexOf(\"itunes.apple.com/us/app/\")>0},d=function(e){return 0===e.indexOf(\"market://details?id=\")};creative.adapter._stopAllMedia(),l(a)||d(a)?(e.track({name:s,appUri:a}),e.trackClickThrough(),creative.adapter.trackingCenter.flush(),creative.adapter.getApp(this._processURLParams(a))):(a=this._addUrlAppendage(a),e.track({name:s,url:a}),e.trackClickThrough(),!creative.adapter.canOpenUrlInSameWindow||i?(creative.adapter.trackingCenter.flush(),c()):(creative.adapter.trackingCenter.flush(c),defer(c,o)))}e.screen&&creative.adapter.sendToEventMonitor(s,t.triggerId,e.screen.name,a||\"\"),r()},BaseCreativeUnit.prototype.goToURLAction=function(e,t,r){var a=creative.urlOpenedOverrideUrls&&creative.urlOpenedOverrideUrls[t.reportLabel]||t.url,i=creative.shouldClickThroughToNewWindow(e),n=!1,o=2e3,s=function(){n||(n=!0,creative.adapter.openBrowser(this._processURLParams(a),i))}.bind(this),c=(creative.experiments.get(\"OpenBrowserRefactor\")||{}).chosenVariant,l=(creative.experiments.get(\"WindowOpenWithDelay\")||{}).chosenVariant,d=function(t,r,a,i){if(c){var n={name:\"_openBrowserRefactor\",experiment:c,branch:t,logic:r,environment:a};i&&(n.redirect=i),e.track(n)}},p=function(e){if(c){var t=creative.adapter.trackingCenter,r=t._createTrackingEvent({name:\"redirectTrackingExperiment\"});r.redirect=e,t._pendingPixels.push(t._getTrackerUrl(r))}},u=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};if(!a)return r();a=this._addUrlAppendage(a);var h=\"urlOpened\",v={delay:[0,100,500][u(0,2)],step:u(1,3),randId:randInt()};if(creative.adapter._stopAllMedia(),e.track({name:h,url:a,label:t.reportLabel}),e.trackClickThrough(),deviceInfo.browser.ie()||deviceInfo.browser.edge())!creative.adapter.canOpenUrlInSameWindow||i?(d(\"new-window\",\"flush-and-open\",\"desktop-windows\",v),p(v),creative.adapter.trackingCenter.flush(),s()):(d(\"same-window\",\"flush-then-open\",\"desktop-windows\",v),p(v),creative.adapter.trackingCenter.flush(s),defer(s,o));else if(\"on\"==c)!creative.adapter.canOpenUrlInSameWindow||i?(d(\"new-window\",\"flush-and-open\",\"all-except-desktop-windows\",v),p(v),creative.adapter.trackingCenter.flush(),s()):(d(\"same-window\",\"flush-then-open\",\"all-except-desktop-windows\",v),p(v),creative.adapter.trackingCenter.flush(s),defer(s,o));else if(!creative.adapter.canOpenUrlInSameWindow||i){d(\"new-window\",\"wrap+open\",\"all-except-desktop-windows\"),l&&creative.aggregatorTracking.trackAggregator(\"windowOpenWithDelay\",1,{delay:l}),c&&e.track({name:\"_openBrowserRefactorFlushVsWrap\",trackingWith:\"wrap\"});var f=creative.wrapRedirectPageUrl(this._processURLParams(a));c&&(e.track({name:\"_openBrowserRefactorFlushVsWrap\",trackingWith:\"flush\"}),creative.adapter.trackingCenter.flush()),\"control\"===l||\"undefined\"==typeof l?creative.adapter.openBrowser(f,i):setTimeout(function(){creative.adapter.openBrowser(f,i)},\"noDelay\"===l?0:250)}else d(\"same-window\",\"wrap+open\",\"all-except-desktop-windows\"),creative.adapter.openBrowser(creative.wrapRedirectPageUrl(this._processURLParams(a)),i);creative.adapter.sendToEventMonitor(h,t.triggerId,e.screen.name,a,t.reportLabel),r()},BaseCreativeUnit.prototype.facebookURLAction=function(e,t,r){if(!t.url)return r();creative.adapter._stopAllMedia(),e.track({name:\"facebookShareAttempt\",url:t.url,label:t.reportLabel}),e.trackClickThrough();var a=\"http://m.facebook.com/sharer.php?u=\"+encodeURIComponent(t.url);creative.adapter.openBrowser(creative.wrapRedirectPageUrl(a),creative.shouldClickThroughToNewWindow(e)),r()},BaseCreativeUnit.prototype.callURLAction=function(e,t,r){if(!t.url)return r();var a=this._processURLParams(t.url),i=new Image;i.onload=i.onerror=function(){r()},i.src=a},BaseCreativeUnit.prototype.displayImageAction=function(e,t,r){if(!t.file)return r();var a=function(e,a){var i=document.createElement(\"div\");i.className=\"celtra-display-image-overlay touchable\",i.style.backgroundImage=\"url(\"+t.file.getUrl()+\")\",this.unitDiv.appendChild(i),(e>this.size.width||a>this.size.height)&&(i.style.backgroundSize=\"contain\"),t.color&&(i.style.backgroundColor=t.color),attach(i,\"tap\",function(){i.parentNode.removeChild(i),r()},!1);var n=document.createElement(\"div\");n.className=\"celtra-back-button touchable \"+this.alignBackButtonHorizontal,i.appendChild(n)}.bind(this);if(t.file.meta)a(t.file.meta.width,t.file.meta.height);else{var i=new Image;i.onload=function(){a(this.width,this.height)},i.onerror=function(){return console.error(\"Couldn't display image: \"+t.file.getUrl()),r()},i.src=t.file.getUrl()}},BaseCreativeUnit.prototype.saveImageAction=function(e,t,r){function a(a,n){var o=a.getOriginalUrl(),c=a.name,l=a.blobHash;if(i(l),creative.adapter.canSaveImage())creative.adapter.trackingCenter.flush(function(){var a=\"shared.png\";\"undefined\"!=typeof c?a=c:\"string\"==typeof n&&n.trim().length>0&&(a=n.trim()+\".png\"),creative.adapter.saveImage(o,a,r);var i=n||c;creative.adapter.sendToEventMonitor(s,t.triggerId,e.screen.name,i,t.reportLabel)});else{var d=new SaveImageDialog(creative.adapter,creative.resourceUrl,o);d.show(r)}}function i(r){e.track({name:s,blobHash:r,label:t.reportLabel}),e.trackClickThrough()}function n(){creative.adapter.createPlacements({preloader:{attachment:\"body\",positioning:\"screen\",type:\"layer\"}},function(){var e=creative.adapter.placements.preloader;e.setZIndex(\"max\"),e.setSize(\"100%\",\"100%\"),e.setPosition(0,0);var t=e.createElement(\"link\");t.rel=\"stylesheet\",t.type=\"text/css\",t.href=creative.resourceUrl+\"runner/clazzes/PostBlobPreloader.css\",e.getContainer().appendChild(t);var r=e.createElement(\"div\");addClass(r,\"celtra-preloader-container\");var a=e.createElement(\"div\");addClass(a,\"celtra-preloader-image\"),a.style.backgroundImage=\"url(\"+creative.resourceUrl+\"runner/clazzes/CreativeUnit/preloader.png)\",r.appendChild(a),e.populate(r,function(){e.show()})})}function o(){creative.adapter.destroyPlacement(\"preloader\")}var s=\"imageSaveAttempted\";if(t.imageOrigin=t.imageOrigin?t.imageOrigin:\"asset\",\"component\"==t.imageOrigin&&t.component)if(t.component.file)a(t.component.file,t.component.name);else{var c=t.component.getField();if(null===c)return void r();if(-1===creative.runtimeParams.enabledServices.indexOf(\"contentSharing\"))return void this.alertAction(e,{text:\"This feature is not available in your region\"},r);var l=c.url,d=l.split(\",\")[1];n(),postBlob(d,function(e,i){if(o(),i>=200&&300>i){var n=JSON.parse(e),s=creative.cachedApiUrl+\"blobs/\"+n.hash+\"/shared.png\",c=new File(s);a(c,t.component.name)}else r()})}else\"asset\"==t.imageOrigin&&t.file?a(t.file):r()},BaseCreativeUnit.prototype.playSoundAction=function(e,t,r){if(!t.file)return r();var a=new Audio(t.file.getUrl());attach(a,\"ended\",function(){r()},!1),a.play()},BaseCreativeUnit.prototype.playVideoInPlayerAction=function(e,t,r){if(!t.file)return r();var a=creative.adapter.useFSVP,i=new VideoContext(e,t.file,t.reportLabel);i.track({engineType:\"html5\",name:\"videoPlayAttempted\",trackable:a,filename:t.file.name,userInitiated:e.consideredUserInitiatedByBrowser,startMuted:!1,videoPlayerMode:\"fullscreen\",videoPreset:null}),creative.adapter.playVideoInPlayer(i,function(a){var i=(a?t.onSuccess:t.onFailure)||nullai;i(e,r)})},BaseCreativeUnit.prototype.playVideoInPlayerActionDryRun=function(e,t,r){return t.file?((t.onSuccess||nullai)(e,noop),(t.onFailure||nullai)(e,noop),void r()):r()},BaseCreativeUnit.prototype.playVideoFromURLAction=function(e,t,r){if(!t.url)return r();var a=creative.adapter.useFSVP;creative.adapter._stopAllMedia(),videoContext=new VideoContext(e,new File(t.url),t.reportLabel),videoContext.track({engineType:\"html5\",name:\"videoPlayAttempted\",trackable:a,filename:null,userInitiated:e.consideredUserInitiatedByBrowser,startMuted:!1,videoPlayerMode:\"fullscreen\",videoPreset:null}),creative.adapter.playVideoInPlayer(videoContext,function(a){var i=(a?t.onSuccess:t.onFailure)||nullai;i(e,r)})},BaseCreativeUnit.prototype.playVideoFromURLActionDryRun=function(e,t,r){return t.url?((t.onSuccess||nullai)(e,noop),(t.onFailure||nullai)(e,noop),void r()):r()},BaseCreativeUnit.prototype.vibrateAction=function(e,t,r){r()},BaseCreativeUnit.prototype.getAppAction=function(e,t,r){var a=function(e){return new RegExp(\"(^http(s)?://)|(^market://)\",\"i\").test(e)},i=function(){return new RegExp(\"^\\\\d+$\").test(t.appStoreUrl)?\"http://itunes.apple.com/us/app/keynote/id\"+t.appStoreUrl:(a(t.appStoreUrl)?\"\":\"http://\")+t.appStoreUrl},n=function(){return a(t.androidMarketAppId)?t.androidMarketAppId:\"market://details?id=\"+t.androidMarketAppId};creative.adapter._stopAllMedia();var o;if(creative.storeOpenedOverrideUrls[t.reportLabel]?o=creative.storeOpenedOverrideUrls[t.reportLabel]:ios()&&t.appStoreUrl?o=i():android()&&t.androidMarketAppId?o=n():desktop()&&(t.appStoreUrl||t.androidMarketAppId)&&(o=\"app://\"+encodeURIComponent(t.reportLabel)),o){var s=!ios(\"9\",null),c=\"storeOpened\",l=2,d=function(){creative.adapter.getApp(this._processURLParams(o))}.bind(this),p=function(){if(!--l&&s){d();var r={};t.appStoreUrl&&(r.appStoreUrl=i()),t.androidMarketAppId&&(r.androidMarketAppId=n()),creative.adapter.sendToEventMonitor(c,t.triggerId,e.screen.name,r,t.reportLabel)}}.bind(this);e.track({name:c,appUri:o,label:t.reportLabel},p),e.trackClickThrough(p),s||setTimeout(d,0)}r()},BaseCreativeUnit.prototype.callPhoneAction=function(e,t,r){if(!t.number)return r();creative.adapter._stopAllMedia();var a=\"phoneCalled\",i=deviceInfo.os.ios()&&deviceInfo.browser.safari(),n=function(){creative.adapter.callPhone(t.number),creative.adapter.sendToEventMonitor(a,t.triggerId,e.screen.name,t.number,t.reportLabel)};e.track({name:a,number:t.number,label:t.reportLabel}),e.trackClickThrough(),i?(creative.adapter.trackingCenter.flush(),defer(n)):creative.adapter.trackingCenter.flush(n),r()},BaseCreativeUnit.prototype.answerSurveyQuestion=function(e,t,r){var a=[\"answerIds\",\"questionId\",\"surveyId\"],i=/[0-9a-f]{8}/;a.forEach(function(e){if(\"answerIds\"==e){if(!(t.answerIds instanceof Array))throw new Error(\"args.answerIds must be an array\");t.answerIds.forEach(function(e){if(!i.test(e))throw new Error(\"args.answerIds must contain Ids that have hexadecimal formatted string containing 8 characters\")})}else if(!i.test(t[e]))throw new Error(\"args.\"+e+\" must be hexadecimal formatted string containing 8 characters\")}),e.track({name:\"surveyQuestionAnswered\",answerIds:t.answerIds,questionId:t.questionId,surveyId:t.surveyId}),r()},BaseCreativeUnit.prototype.saveTheDateAction=function(e,t,r){function a(e){var r;return t.allDay?(r=new CDate,r.value=e.getFullYear()+\"-\"+zeroPad(e.getMonth()+1)+\"-\"+zeroPad(e.getDate())):(e=\"my\"===t.timezone?e.getUTCFullYear()+\"-\"+zeroPad(e.getUTCMonth()+1)+\"-\"+zeroPad(e.getUTCDate())+\" \"+zeroPad(e.getUTCHours())+\":\"+zeroPad(e.getUTCMinutes())+\":\"+zeroPad(e.getUTCSeconds()):e.getFullYear()+\"-\"+zeroPad(e.getMonth()+1)+\"-\"+zeroPad(e.getDate())+\" \"+zeroPad(e.getHours())+\":\"+zeroPad(e.getMinutes())+\":\"+zeroPad(e.getSeconds()),r=new CDateTime,r.value=e,r.tz=t.timezone),r}return t.eventName&&t.location&&t.start?(t.end=t.end||new Date(t.start.getTime()+36e5),t.timezone=t.timezone||\"my\",t.end0?t[0]:null};;\n!function(e){\"use strict\";var r={};r.toString=function(){return\"[Clazz CustomAudiences]\"};var t=function(e,r,t,n){function i(r,t){var i=new XMLHttpRequest;i.open(e,u+s+\"/\"+encodeURIComponent(r)+\"/\"+encodeURIComponent(t)+\"?\"+creative.authTokenUrlParam),i.send(n)}if(-1===[\"PUT\",\"DELETE\"].indexOf(e))throw new Error(\"Unsupported request method: \"+e);if(\"undefined\"==typeof creative.runtimeParams.customAudiences[r])throw new Error('Custom audience \"'+r+'\" is not used by the creative.');creative.runtimeParams.customAudiences[r]={userExists:t,userData:n};var u=creative.secure?creative.customAudiencesUrl:creative.insecureCustomAudiencesUrl,s=\"/audiences/\"+r,o=creative.userIdentifiers;for(var a in o)for(var c in o[a])i(a,o[a][c])};r.addUser=function(e,r){creative.runtimeParams.userOptOut||t(\"PUT\",e,!0,r)},r.removeUser=function(e){creative.runtimeParams.userOptOut||t(\"DELETE\",e,!1)},e.CustomAudiences=r}(window);;\n!function(e){\"use strict\";var t={ambience:\"Ambience\",animatey:\"Animatey\",abtest:\"Best\",basket:\"Basket\",button:\"Button\",canvas:\"Canvas\",celebration:\"Celebration\",checkbox:\"CheckBox\",feedbasedchoice:\"ChoiceFeed\",countdown:\"Countdown\",draggy:\"Draggy\",dropdown:\"Dropdown\",dynamiccontent:\"DynamicContent\",facebookshare:\"FacebookShareButton\",fallback:\"Fallback\",frame:\"Frame\",flippy:\"Flippy\",grid:\"Grid\",group:\"Group\",gyro:\"Gyro\",hotspot:\"Hotspot\",input:\"Input\",lighttable:\"LightTable\",map:\"Map\",transitions:\"Transitions\",mastervideo:\"MasterVideo\",nearby:\"Nearby\",painty:\"Painty\",pannable:\"Pannable\",particles:\"Particle\",picture:\"Picture\",puzzle:\"Puzzle\",quiz:\"Quiz\",shapey:\"Shapey\",smoke:\"Smoke\",stack:\"Stack\",stopwatch:\"Stopwatch\",locatorclassic:\"StoreLocator2\",locator:\"StoreLocator3\",swipeygallery:\"Swipey\",swipeygroup:\"SwipeyGroup\",takephoto:\"TakePhotoButton\",texty:\"Texty\",twitterfeed:\"TwitterFeed\",twittershare:\"TwitterShareButton\",inlinevideo:\"Video\",\"360view\":\"View360\",\"360video\":\"Video360\",\"360\u00b0video\":\"Video360\",weather:\"Weather\",whatsappshare:\"WhatsAppShareButton\",wipeable:\"Wipeable\",youtube:\"Youtube\",scene:\"Scene\",brandtracksurvey:\"BrandTrackSurvey\",brandtrackquestion:\"BrandTrackQuestion\",customcode:\"CustomCode\",videoasset:\"VideoAsset\"},n=function(e){return e=e.toLowerCase().replace(/\\W+/g,\"\"),e in t?t[e]:\"\"},o={findAll:function(e){function t(i){i.forEach(function(i){(\"undefined\"==typeof e||i.name==e)&&o.push(i),i.getActiveContainers().forEach(function(e){t(e.objects),n(e.scenes)})})}function n(t){t&&t.forEach(function(t){(\"undefined\"==typeof e||t.name==e)&&o.push(t)})}var o=[];return\"Screen\"==this.constructor.name?(t(this.objects),n(this.scenes)):\"function\"==typeof this.getActiveContainers&&this.getActiveContainers().forEach(function(e){t(e.objects),n(e.scenes)}),o},findByType:function(e){function t(a){a.forEach(function(a){a.constructor.name==n(e)&&i.push(a),a.getActiveContainers().forEach(function(e){t(e.objects),o(e.scenes)})})}function o(t){t&&t.forEach(function(t){t.constructor.name==n(e)&&i.push(t)})}var i=[];return\"undefined\"==typeof e?i:(\"Screen\"==this.constructor.name?(t(this.objects),o(this.scenes)):\"function\"==typeof this.getActiveContainers&&this.getActiveContainers().forEach(function(e){t(e.objects),o(e.scenes)}),i)},find:function(e){var t=this.findAll(e);return t.length>0?t[0]:null}};e.DiscoverableTrait=o}(window);;\nvar SaveImageDialog=function(t,i,e){this.adapter=t,this.resourceUrl=i,this.imageUrl=e,this.containerMinMargin=5,this.containerMinWidth=190,this.imageContainerTotalHMargin=40,this.imageContainerTotalVMargin=140,this.instructionOneLineWidth=250,this.instructionTwoLinesWidth=145,this._handleImageLoaded=this._handleImageLoaded.bind(this),this._resize=this._resize.bind(this)};SaveImageDialog.prototype.show=function(t){this.adapter.createPlacements({saveImageAction:{attachment:\"body\",positioning:\"screen\",type:\"layer\"}},function(){this.placement=this.adapter.placements.saveImageAction,this.placement.setZIndex(\"max\"),this.placement.setSize(\"100%\",\"100%\"),this.placement.setPosition(0,0),this.saveImageActionStyle=this.placement.createElement(\"link\"),this.saveImageActionStyle.rel=\"stylesheet\",this.saveImageActionStyle.type=\"text/css\",this.saveImageActionStyle.href=this.resourceUrl+\"runner/SaveImageDialog.css\",this.placement.getContainer().appendChild(this.saveImageActionStyle),this.overlay=this.placement.createElement(\"div\"),this.overlay.style.display=\"none\",this.overlay.className=\"celtra-save-image-action-overlay\",this.preloaderImage=this.placement.createElement(\"div\"),this.preloaderImage.className=\"celtra-save-image-action-preloader-image\",this.preloaderImage.style.backgroundImage=\"url(\"+this.resourceUrl+\"runner/clazzes/CreativeUnit/preloader.png)\",this.container=this.placement.createElement(\"div\"),this.container.className=\"celtra-save-image-action-container\",this.backButton=this.placement.createElement(\"div\"),this.backButton.style.backgroundImage=\"url(\"+this.resourceUrl+\"runner/clazzes/CreativeUnit/save-image-close-button.png)\",this.backButton.className=\"celtra-save-image-action-back-button\",this.title=this.placement.createElement(\"div\"),this.title.innerHTML=\"Save Image\",this.title.className=\"celtra-save-image-action-title\",this.titleLine1=this.placement.createElement(\"div\"),this.titleLine1.className=\"celtra-save-image-action-title-line-1\",this.titleLine2=this.placement.createElement(\"div\"),this.titleLine2.className=\"celtra-save-image-action-title-line-2\",this.imageContainer=this.placement.createElement(\"div\"),this.imageContainer.className=\"celtra-save-image-action-image-container\",this.image=this.placement.createElement(\"img\"),this.instruction=this.placement.createElement(\"div\"),this.instruction.style.backgroundImage=\"url(\"+this.resourceUrl+\"runner/clazzes/CreativeUnit/hold-to-save-icon.png)\",this.instruction.style.backgroundSize=\"21px 40px\",this.instruction.innerHTML=\"Tap & hold to save the image to your device.\",this.instruction.className=\"celtra-save-image-action-instruction\",this.image.onload=this._handleImageLoaded,this.image.src=this.imageUrl,this.container.appendChild(this.title),this.container.appendChild(this.titleLine1),this.container.appendChild(this.titleLine2),this.imageContainer.appendChild(this.image),this.container.appendChild(this.imageContainer),this.container.appendChild(this.instruction),this.container.appendChild(this.backButton),this.overlay.appendChild(this.preloaderImage),attach(this.backButton,\"touchend\",function(){this.adapter.destroyPlacement(\"saveImageAction\"),t()}.bind(this)),this.placement.populate(this.overlay,function(){this.placement.show()}.bind(this))}.bind(this))},SaveImageDialog.prototype._handleImageLoaded=function(){this._resize(),this.overlay.removeChild(this.preloaderImage),this.overlay.appendChild(this.container),this.placement.on(\"resized\",this._resize)},SaveImageDialog.prototype._resize=function(){var t,i,e=this.placement.getViewportGeometry(),a=e.width-2*this.containerMinMargin,n=e.height-2*this.containerMinMargin,s=a-this.imageContainerTotalHMargin,h=n-this.imageContainerTotalVMargin,r=s/h,l=this.image.naturalWidth/this.image.naturalHeight,o=this.image.naturalWidth>s,c=this.image.naturalHeight>h,g=this.containerMinMargin,m=this.containerMinMargin,d=0,p=0;if(o&&c){var u;t=s,i=h,l>r?(u=l/r*100,this.image.style.width=u+\"%\",this.image.style.height=\"100%\",d=-(u-100)/2):(u=r/l*100,this.image.style.width=\"100%\",this.image.style.height=u+\"%\",p=-((u-100)/2)*(i/t))}else if(o){var y=this.image.naturalWidth/s*100;d=-(y-100)/2,t=s,i=this.image.naturalHeight,this.image.style.width=y+\"%\",this.image.style.height=\"100%\",m=(e.height-i-this.imageContainerTotalVMargin)/2}else if(c){var v=this.image.naturalHeight/h*100,C=-(v-100)/2;t=this.image.naturalWidth,i=h,p=C*(i/t),this.image.style.width=\"100%\",this.image.style.height=v+\"%\",g=(e.width-t-this.imageContainerTotalHMargin)/2}else t=this.image.naturalWidth,i=this.image.naturalHeight,this.image.style.width=\"100%\",this.image.style.height=\"100%\",g=(e.width-t-this.imageContainerTotalHMargin)/2,m=(e.height-i-this.imageContainerTotalVMargin)/2;var I=t+this.imageContainerTotalHMargin,M=t+this.imageContainerTotalHMargin-this.containerMinWidth;if(0>M){var T=M/2;g+=T,this.imageContainer.style.left=19-T+\"px\",this.imageContainer.style.right=19-T+\"px\",I-=M}this.container.style.left=g+\"px\",this.container.style.right=g+\"px\",this.container.style.top=m+\"px\",this.container.style.bottom=m+\"px\",this.image.style.marginLeft=d+\"%\",this.image.style.marginTop=p+\"%\",I0?\"-\":\"+\")+a(r)+\":\"+a(n-60*r)}function a(e){return(\"0\"+e).slice(-2)}var r=\"https://calendar.google.com/calendar/\"+(desktop()?\"render?\":\"gp#~calendar:view=e&\")+\"action=TEMPLATE\",o={dates:t(e,\"start\")+\"/\"+t(e,\"end\"),location:e.location,text:e.eventName,details:e.notes};return r+\"&\"+buildQuery(o)},toString:function(){return\"[Clazz CCalendar]\"}};;\nfunction CDate(){}CDate.toString=function(){return\"[Clazz CDate]\"},CDate.prototype.toString=function(){return\"[CDate \"+this.localId+\"]\"},CDate.prototype.getLocalStartDate=function(){var t=this._getParts();return new Date(t[1],t[2]-1,t[3],0,0,0)},CDate.prototype.getLocalEndDate=function(){var t=this._getParts();return new Date(t[1],t[2]-1,t[3]+1,0,0,0)},CDate.prototype.getDate=function(){return this.getLocalStartDate()},CDate.prototype._getParts=function(){return this.value.match(/^(....)-(..)-(..)$/).map(function(t){return parseInt(t,10)})};;\nfunction CDateTime(){}CDateTime.toString=function(){return\"[Clazz CDateTime]\"},CDateTime.prototype.toString=function(){return\"[CDateTime \"+this.localId+\"]\"},CDateTime.prototype.getDate=function(){var t=this.value.match(/^(....)-(..)-(..) (..):(..):(..)$/).map(function(t){return parseInt(t,10)});switch(this.tz){case\"my\":case\"utc\":return new Date(Date.UTC(t[1],t[2]-1,t[3],t[4],t[5],t[6]));case\"user\":return new Date(t[1],t[2]-1,t[3],t[4],t[5],t[6]);default:Creative._throw(\"Invalid CDateTime timezone: \"+this.tz)}};;\nvar Twitter={};Twitter.showUserAction=function(e,t,r){if(!t.screenName)return void r();var a=\"twitterProfileOpened\";creative.adapter._stopAllMedia(),e.track({name:a,screenName:t.screenName,label:t.reportLabel}),e.trackClickThrough();var i=desktop()?\"www\":\"mobile\",o=\"http://\"+i+\".twitter.com/\"+t.screenName;creative.adapter.openBrowser(creative.wrapRedirectPageUrl(o),creative.shouldClickThroughToNewWindow(e)),creative.adapter.sendToEventMonitor(a,t.triggerId,e.screen.name,\"@\"+t.screenName,t.reportLabel),r()},Twitter.tweetAction=function(e,t,r){if(!t.text)return void r();e.track({name:\"tweetPageOpened\",tweet:t.text,tweetVia:t.via,label:t.reportLabel}),e.trackClickThrough();var a=\"http://twitter.com/intent/tweet?text=\"+encodeURIComponent(t.text);t.via&&(a+=\"&via=\"+encodeURIComponent(t.via)),creative.adapter.openBrowser(creative.wrapRedirectPageUrl(creative.apiUrl+\"redirect?url=\"+encodeURIComponent(a)+\"&type=js\"),creative.shouldClickThroughToNewWindow(e)),r()};;\n!function(t){\"use strict\";var e={stringPatternAngle:\"(?:[+-]?\\\\d*\\\\.?\\\\d+)(?:deg|grad|rad|turn)\",stringPatternColor:\"(?:#(?:[A-Fa-f0-9]{3,6})|(?:(?:rgb|hsl)a?)\\\\(\\\\s*(?:\\\\d+(?:\\\\%)?\\\\s*,\\\\s*){2,3}(?:(?:\\\\d+\\\\.)?\\\\d+)\\\\s*\\\\))\",stringPatternSideCorner:\"top|bottom|left|right\",stringPatternValue:\"(?:[+-]?\\\\d*\\\\.?\\\\d+)(?:%|[a-z]+)?\",patternHex:/^(#|)([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,matchHexHash:1,matchHexColor:2,patternRgb:/^rgb\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)$/i,matchRgbRed:1,matchRgbGreen:2,matchRgbBlue:3,patternRgba:/^rgba\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*((?:\\d\\.)?\\d\\d?)\\s*\\)$/i,matchRgbaRed:1,matchRgbaGreen:2,matchRgbaBlue:3,matchRgbaAlpha:4,patternGradient:/^\\-?(moz|webkit|o|ms|)(?:(?:-|)(?:repeating-|)(linear|radial|))-gradient\\((.*?)\\)(?:;|)$/i,matchGradientPrefix:1,matchGradientType:2,matchGradientValues:3,generatedGradientSyntax:null,matchGradientSyntaxLine:1,matchGradientSyntaxAngle:2,matchGradientSyntaxSideCorner:3,matchGradientSyntaxStopList:4,buildGradientSyntax:function(){var t=[\"(?:to\\\\s+)?((?:\",e.stringPatternSideCorner,\")\\\\s*(?:\",e.stringPatternSideCorner,\")?)\"].join(\"\"),a=[\"(\",e.stringPatternAngle,\")\"].join(\"\"),n=[\"(\",a,\"|\",t,\")\"].join(\"\"),r=[e.stringPatternColor,\"\\\\s*(?:\",e.stringPatternValue,\")?\"].join(\"\"),i=[\"(?:\",r,\"\\\\s*,\\\\s*)*\",r].join(\"\"),o=[\"^\\\\s*\",n,\"\\\\s*,\\\\s*(\",i,\")\\\\s*$\"].join(\"\");return e.generatedGradientSyntax=new RegExp(o,\"i\"),e.generatedGradientSyntax},generatedRadialGradientSyntax:null,matchRadialGradientSyntaxEllipse:1,matchRadialGradientSyntaxWidth:2,matchRadialGradientSyntaxHeight:3,matchRadialGradientSyntaxXPosition:4,matchRadialGradientSyntaxYPosition:5,matchRadialGradientSyntaxStopList:6,buildRadialGradientSyntax:function(){var t=[\"(ellipse)?\\\\s*\",\"(\",e.stringPatternValue,\")\\\\s+\",\"(\",e.stringPatternValue,\")\\\\s+at\\\\s+\",\"(\",e.stringPatternValue,\")\\\\s+\",\"(\",e.stringPatternValue,\")\"].join(\"\"),a=[e.stringPatternColor,\"\\\\s*(?:\",e.stringPatternValue,\")?\"].join(\"\"),n=[\"(?:\",a,\"\\\\s*,\\\\s*)*\",a].join(\"\"),r=[\"^\\\\s*\",t,\"\\\\s*,\\\\s*(\",n,\")\\\\s*$\"].join(\"\");return e.generatedRadialGradientSyntax=new RegExp(r,\"i\"),e.generatedRadialGradientSyntax},generatedGradientStopList:null,matchGradientStopListColor:1,matchGradientStopListPosition:2,buildGradientStopList:function(){var t=[\"\\\\s*(\",e.stringPatternColor,\")\",\"(?:\\\\s+\",\"(\",e.stringPatternValue,\"))?\",\"(?:\\\\s*,\\\\s*)?\"].join(\"\");return e.generatedGradientStopList=new RegExp(t,\"gi\"),e.generatedGradientStopList},gradientOldSideCorner:{\"to top\":\"left bottom, left top\",\"to left\":\"right top, left top\",\"to bottom\":\"left top, left bottom\",\"to right\":\"left top, right top\",\"to top right\":\"left bottom, right top\",\"to top left\":\"right bottom, left top\",\"to bottom right\":\"left top, right bottom\",\"to bottom left\":\"right top, left bottom\"},gradientPrefixedSideCorner:{\"to top\":\"bottom\",\"to left\":\"right\",\"to bottom\":\"top\",\"to right\":\"left\",\"to top right\":\"bottom left\",\"to top left\":\"bottom right\",\"to bottom right\":\"top left\",\"to bottom left\":\"top right\"}};Object.defineProperties(e,{patternGradientSyntax:{get:function(){return null===e.generatedGradientSyntax?e.buildGradientSyntax():e.generatedGradientSyntax}},patternRadialGradientSyntax:{get:function(){return null===e.generatedRadialGradientSyntax?e.buildRadialGradientSyntax():e.generatedRadialGradientSyntax}},patternGradientStopList:{get:function(){return null===e.generatedGradientStopList?e.buildGradientStopList():e.generatedGradientStopList}}}),e.convertAngleToSideCorner=function(t,e){/\\-?(moz|webkit|o|ms)/.test(e)&&(t=90-t);var a=(t+360)%360,n=\"to top\";return a>347||14>a?n=\"to top\":a>=14&&75>=a?n=\"to top right\":a>75&&105>a?n=\"to right\":a>=105&&167>=a?n=\"to bottom right\":a>167&&194>a?n=\"to bottom\":a>=194&&255>=a?n=\"to bottom left\":a>255&&285>a?n=\"to left\":a>=285&&347>=a&&(n=\"to left top\"),n},e.convertSideCornerToAngle=function(t,e){var a=0;switch(t){case\"bottom\":case\"to top\":a=0;break;case\"left\":case\"to right\":a=90;break;case\"right\":case\"to left\":a=270;break;case\"top\":case\"to bottom\":a=180;break;case\"to bottom right\":case\"to right bottom\":a=167;break;case\"to bottom left\":case\"to left bottom\":a=194;break;case\"to top right\":case\"to right top\":a=14;break;case\"to top left\":case\"to left top\":a=347;break;case\"bottom right\":case\"right bottom\":a=285;break;case\"bottom left\":case\"left bottom\":a=75;break;case\"top right\":case\"right top\":a=255;break;case\"top left\":case\"left top\":a=105}return/\\-?(moz|webkit|o|ms)/.test(e)&&(a=90-a),(a+360)%360},e.isHex=function(t){return e.patternHex.test(t)},e.isRgb=function(t){return e.patternRgb.test(t)},e.isRgba=function(t){return e.patternRgba.test(t)},e.isGradient=function(t){return e.patternGradient.test(t)},e.parseColorStopList=function(t){for(var a,n=e.patternGradientStopList.exec(t),r=[];null!==n;)a={color:n[e.matchGradientStopListColor]},n[e.matchGradientStopListPosition]&&(a.position=n[e.matchGradientStopListPosition]),r.push(a),n=e.patternGradientStopList.exec(t);return r},e.parseGradient=function(t){var a=null,n=e.patternGradient.exec(t);if(null!==n){a={original:n[0],oldSyntax:!n[e.matchGradientType],prefix:n[e.matchGradientPrefix],type:n[e.matchGradientType],colorStopList:[]};var r=e.patternGradientSyntax.exec(n[e.matchGradientValues]);null!==r&&(r[e.matchGradientSyntaxLine]&&(a.line=r[e.matchGradientSyntaxLine]),r[e.matchGradientSyntaxAngle]&&(a.angle=r[e.matchGradientSyntaxAngle]),r[e.matchGradientSyntaxSideCorner]&&(a.sideCorner=r[e.matchGradientSyntaxSideCorner]),a.colorStopList=e.parseColorStopList(r[e.matchGradientSyntaxStopList]));var i=e.patternRadialGradientSyntax.exec(n[e.matchGradientValues]);null!==i&&(a.radialGradientEllipse=i[e.matchRadialGradientSyntaxEllipse],i[e.matchRadialGradientSyntaxWidth]&&(a.radialGradientWidth=i[e.matchRadialGradientSyntaxWidth]),i[e.matchRadialGradientSyntaxHeight]&&(a.radialGradientHeight=i[e.matchRadialGradientSyntaxHeight]),i[e.matchRadialGradientSyntaxXPosition]&&(a.radialGradientXPosition=i[e.matchRadialGradientSyntaxXPosition]),i[e.matchRadialGradientSyntaxYPosition]&&(a.radialGradientYPosition=i[e.matchRadialGradientSyntaxYPosition]),a.colorStopList=e.parseColorStopList(i[e.matchRadialGradientSyntaxStopList]))}return a},e.createGradient=function(t){var a={backgroundColor:null,webkitGradient:null,mozLinearGradient:null,msLinearGradient:null,oLinearGradient:null,webkitLinearGradient:null,linearGradient:null,radialGradient:null},n=e.parseGradient(t);if(n.oldSyntax)throw new Error('[Not supported] Can not create gradient from old \"webkit-gradient\" syntax.');for(var r=\"\",i=\"\",o=n.colorStopList.length,d=0;o>d;d++){var l=n.colorStopList[d];if(l.color){if(0!==d?(r+=\", \",i+=\", \"):a.backgroundColor=l.color,r+=l.color,i+=\"color-stop(\",l.position)r+=\" \"+l.position,i+=l.position;else{var s=100/(o-1)*d;i+=s+\"%\"}i+=\", \"+l.color+\")\"}}if(\"linear\"===n.type){var g=0;\"undefined\"!=typeof n.angle?g=parseInt(n.angle,10):\"undefined\"!=typeof n.sideCorner&&(g=e.convertSideCornerToAngle(n.line,n.prefix));var c=g;/\\-?(moz|webkit|o|ms)/.test(n.prefix)?g=90-c:c=90-g;var p=e.convertAngleToSideCorner(g),G=e.gradientOldSideCorner[p];a.webkitGradient=\"-webkit-gradient(linear, \"+G+\", \"+i+\")\",a.mozLinearGradient=\"-moz-linear-gradient(\"+c+\"deg, \"+r+\")\",a.msLinearGradient=\"-ms-linear-gradient(\"+c+\"deg, \"+r+\")\",a.oLinearGradient=\"-o-linear-gradient(\"+c+\"deg, \"+r+\")\",a.webkitLinearGradient=\"-webkit-linear-gradient(\"+c+\"deg, \"+r+\")\",a.linearGradient=\"linear-gradient(\"+g+\"deg, \"+r+\")\"}else if(\"radial\"===n.type){var m=parseInt(n.radialGradientWidth,10),h=parseInt(n.radialGradientHeight,10),S=parseInt(n.radialGradientXPosition,10),u=parseInt(n.radialGradientYPosition,10),f=m+\"% \"+h+\"%\",b=S+\"% \"+u+\"% \",x=f+\" at \"+b;a.radialGradient=\"radial-gradient(\"+x+\", \"+r+\")\"}return a},e.createGradientStyle=function(t){var a=e.createGradient(t),n=\"\";for(var r in a){var i=a[r];null!==i&&e.isGradient(i)&&(n+=\"background-image: \"+i+\"; \")}return n},t.Color=e}(window),\"undefined\"!=typeof module&&\"undefined\"!=typeof module.exports&&(module.exports=window.Color);;\n!function(){\"use strict\";var t={updateTextStyle:function(){},initializeFont:function(){this.font.setBaseUrl((creative.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+\"fonts/\"),this.incrementLoadingCount(),this.loadFont(deferred(this.decrementLoadingCount.bind(this),0,\"TextStyleIntegrator.initializeFont deferred loadFont callback\")),this.updateTextStyle()},getFontSize:function(){return this.fontSize},getLineSpacing:function(){return this.lineSpacing},getLetterSpacing:function(){return this.letterSpacing},getTextShadowOffset:function(){var t={x:0,y:0};if(\"undefined\"!=typeof this.textShadow&&this.textShadow){var e=this.textShadowAngle*(Math.PI/180);t.x=Math.round(this.textShadowDistance*Math.cos(e)),t.y=Math.round(this.textShadowDistance*Math.sin(e))}return t},getTextShadowBlur:function(){return android(\"2\")&&this.textShadowBlur<1?1:this.textShadowBlur},applyTextStyle:function(t){var e=this.font.getCssProperties(),i={fontFamily:e[\"font-family\"],fontStyle:e[\"font-style\"],fontWeight:e[\"font-weight\"],color:this.textColor,direction:\"\",letterSpacing:\"\",textAlign:\"\",textDecoration:\"\",textShadow:\"\"};if(\"undefined\"!=typeof this.textDirection&&(i.direction=this.textDirection),\"undefined\"!=typeof this.textAlign&&(i.textAlign=this.textAlign),\"undefined\"!=typeof this.textDecoration&&(i.textDecoration=this.textDecoration),\"undefined\"!=typeof this.letterSpacing&&(i.letterSpacing=this.getLetterSpacing()+\"px\"),\"undefined\"!=typeof this.textShadow&&this.textShadow){var n=this.getTextShadowOffset();i.textShadow=n.x+\"px \"+n.y+\"px \"+this.getTextShadowBlur()+\"px \"+this.textShadowColor}extend(t,i)},applyTextSize:function(t){var e=this.getFontSize();this.scaleFont&&this.scaleBaseWidth>0&&\"undefined\"!=typeof this.scaleBaseHeight&&this.scaleBaseHeight>0?e=Math.min(e/(this.scaleBaseWidth/this.size.width),e/(this.scaleBaseHeight/this.size.height)):this.scaleFont&&this.scaleBaseWidth>0&&(e/=this.scaleBaseWidth/this.size.width);var i={fontSize:e+\"px\",lineHeight:\"\",paddingLeft:\"\",paddingRight:\"\"};if(\"undefined\"!=typeof this.lineSpacing&&(i.lineHeight=Math.max(1,this.getLineSpacing()+e)+\"px\"),\"undefined\"!=typeof this.scaleFont&&this.scaleFont){var n=this.getNaturalSize(),o=this.scaleBaseWidth/this.scaleBaseHeight,a=o*n.height,r=n.width-a;if(r>0)switch(this.textAlign){case\"center\":i.paddingRight=Math.round(r/2)+\"px\",i.paddingLeft=Math.round(r/2)+\"px\";break;case\"right\":i.paddingLeft=Math.round(r)+\"px\";break;default:i.paddingRight=Math.round(r)+\"px\"}}extend(t,i)},getFontLoader:function(t){t=t||noop,!this.font.needsLoading()||FontBase.useCSSFontLoadingAPI||\"undefined\"!=typeof FontLoader?t():loadJS(creative.resourceUrl+\"runner-min/FontLoader.js\",t)},loadFont:function(t){t=t||noop;var e={fontFamily:this.font.family,fontProvider:this.font.provider,fontStretch:this.font.stretch||\"\",fontStyle:this.font.style,fontWeight:this.font.weight,fontTtfUrl:this.font.getFileUrl(\"ttf\")||\"\",fontWoffUrl:this.font.getFileUrl(\"woff\")||\"\"},i=creative.perf.start(\"TextStyleIntegrator.loadFont\",e);this.getFontLoader(function(){var n=creative.perf.start(\"TextStyleIntegrator.loadStyle\",e);this.font.loadStyle(function(o){e.errorMessage=o||\"\",n.end(),i.end(),!o&&this.font.isMonotype()&&this.trackMonotypeUsage(),t(o)}.bind(this))}.bind(this))},setFont:function(t){var e=[\"provider\",\"family\",\"style\",\"weight\",\"stretch\",\"variation\",\"files\",\"baseUrl\"],i={};e.forEach(function(e){this.font.localId&&(i[e]=\"files\"===e?{}:this.font[e]),\"undefined\"!=typeof t[e]&&(i[e]=t[e])}.bind(this)),-1===[\"custom\",\"google\",\"web\"].indexOf(i.provider)&&(i.provider=\"custom\"),this.font.localId?(\"custom\"===i.provider&&i.family===this.font.family&&(i.family=this.font.family+\" (custom)\"),this.font=new FontBase(i)):extend(this.font,i),creative.track({name:\"retiredFeatureUsed\",featureType:\"apifunction\",featureName:\"TextStyleIntegrator.setFont\"})},trackMonotypeUsage:function(){creative.runtimeParams.monotypeProjectId&&!creative.runtimeParams.monotypeUsageReported&&(creative.runtimeParams.monotypeUsageReported=1,creative.aggregatorTracking.trackAggregator(\"monotypeUsageReported\",{monotypeProjectId:creative.runtimeParams.monotypeProjectId,creativeId:creative.id}))}};window.TextStyleIntegrator=t}();;\n!function(e){var o=Date.now||function(){return+new Date},t=60,_=1e3,i={},l=1;e.core?core.effect||(core.effect={}):e.core={effect:{}},core.effect.Animate={requestAnimationFrame:function(){var o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,t=!!o;if(o&&!/requestAnimationFrame\\(\\)\\s*\\{\\s*\\[native code\\]\\s*\\}/i.test(o.toString())&&(t=!1),t)return function(e,t){o(e,t)};var _=60,i={},l=0,n=1,r=null,a=+new Date;return function(e){var o=n++;return i[o]=e,l++,null===r&&(r=setInterval(function(){var e=+new Date,o=i;i={},l=0;for(var t in o)o.hasOwnProperty(t)&&(o[t](e),a=e);e-a>2500&&(clearInterval(r),r=null)},1e3/_)),o}}(),stop:function(e){var o=null!=i[e];return o&&(i[e]=null),o},isRunning:function(e){return null!=i[e]},start:function(e,n,r,a,c,s){var p=o(),h=p,f=0,m=0,u=l++;if(s||(s=document.body),u%20===0){var g={};for(var v in i)g[v]=!0;i=g}var d=function(l){var g=l!==!0,v=o();if(!i[u]||n&&!n(u))return i[u]=null,void(r&&r(t-m/((v-p)/_),u,!1));if(g)for(var T=Math.round((v-h)/(_/t))-1,S=0;S1&&(f=1));var L=c?c(f):f;e(L,v,g)!==!1&&1!==f||!g?g&&(h=v,core.effect.Animate.requestAnimationFrame(d,s)):(i[u]=null,r&&r(t-m/((v-p)/_),u,1===f||null==a))};return i[u]=!0,core.effect.Animate.requestAnimationFrame(d,s),u}}}(window);var ZyngaScroller;!function(){var e=function(){};ZyngaScroller=function(o,t){this.__callback=o,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:e,penetrationDeceleration:.03,penetrationAcceleration:.08};for(var _ in t)this.options[_]=t[_]};var o=function(e){return Math.pow(e-1,3)+1},t=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},_={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshDeactivate:null,__refreshStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,o,t,_){var i=this;e===+e&&(i.__clientWidth=e),o===+o&&(i.__clientHeight=o),t===+t&&(i.__contentWidth=t),_===+_&&(i.__contentHeight=_),i.__computeScrollMax(),i.scrollTo(i.__scrollLeft,i.__scrollTop,!0)},setPosition:function(e,o){var t=this;t.__clientLeft=e||0,t.__clientTop=o||0},setSnapSize:function(e,o){var t=this;t.__snapWidth=e,t.__snapHeight=o},activatePullToRefresh:function(e,o,t,_){var i=this;i.__refreshHeight=e,i.__refreshActivate=o,i.__refreshDeactivate=t,i.__refreshStart=_},triggerPullToRefresh:function(){this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&this.__refreshStart()},finishPullToRefresh:function(){var e=this;e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)},getValues:function(){var e=this;return{left:e.__scrollLeft,top:e.__scrollTop,zoom:e.__zoomLevel}},getScrollMax:function(){var e=this;return{left:e.__maxScrollLeft,top:e.__maxScrollTop}},zoomTo:function(e,o,t,_,i){var l=this;if(!l.options.zooming)throw new Error(\"Zooming is not enabled!\");i&&(l.__zoomComplete=i),l.__isDecelerating&&(core.effect.Animate.stop(l.__isDecelerating),l.__isDecelerating=!1);var n=l.__zoomLevel;null==t&&(t=l.__clientWidth/2),null==_&&(_=l.__clientHeight/2),e=Math.max(Math.min(e,l.options.maxZoom),l.options.minZoom),l.__computeScrollMax(e);var r=(t+l.__scrollLeft)*e/n-t,a=(_+l.__scrollTop)*e/n-_;r>l.__maxScrollLeft?r=l.__maxScrollLeft:0>r&&(r=0),a>l.__maxScrollTop?a=l.__maxScrollTop:0>a&&(a=0),l.__publish(r,a,e,o)},zoomBy:function(e,o,t,_,i){var l=this;l.zoomTo(l.__zoomLevel*e,o,t,_,i)},scrollTo:function(e,o,t,_){var i=this;if(i.__isDecelerating&&(core.effect.Animate.stop(i.__isDecelerating),i.__isDecelerating=!1),null!=_&&_!==i.__zoomLevel){if(!i.options.zooming)throw new Error(\"Zooming is not enabled!\");e*=_,o*=_,i.__computeScrollMax(_)}else _=i.__zoomLevel;i.options.scrollingX?i.options.paging?e=Math.round(e/i.__clientWidth)*i.__clientWidth:i.options.snapping&&(e=Math.round(e/i.__snapWidth)*i.__snapWidth):e=i.__scrollLeft,i.options.scrollingY?i.options.paging?o=Math.round(o/i.__clientHeight)*i.__clientHeight:i.options.snapping&&(o=Math.round(o/i.__snapHeight)*i.__snapHeight):o=i.__scrollTop,e=Math.max(Math.min(i.__maxScrollLeft,e),0),o=Math.max(Math.min(i.__maxScrollTop,o),0),e===i.__scrollLeft&&o===i.__scrollTop&&(t=!1),i.__publish(e,o,_,t)},scrollBy:function(e,o,t){var _=this,i=_.__isAnimating?_.__scheduledLeft:_.__scrollLeft,l=_.__isAnimating?_.__scheduledTop:_.__scrollTop;_.scrollTo(i+(e||0),l+(o||0),t)},doMouseZoom:function(e,o,t,_){var i=this,l=e>0?.97:1.03;return i.zoomTo(i.__zoomLevel*l,!1,t-i.__clientLeft,_-i.__clientTop)},doTouchStart:function(e,o){if(null==e.length)throw new Error(\"Invalid touch list: \"+e);if(o instanceof Date&&(o=o.valueOf()),\"number\"!=typeof o)throw new Error(\"Invalid timestamp value: \"+o);var t=this;t.__interruptedAnimation=!0,t.__isDecelerating&&(core.effect.Animate.stop(t.__isDecelerating),t.__isDecelerating=!1,t.__interruptedAnimation=!0),t.__isAnimating&&(core.effect.Animate.stop(t.__isAnimating),t.__isAnimating=!1,t.__interruptedAnimation=!0);var _,i,l=1===e.length;l?(_=e[0].pageX,i=e[0].pageY):(_=Math.abs(e[0].pageX+e[1].pageX)/2,i=Math.abs(e[0].pageY+e[1].pageY)/2),t.__initialTouchLeft=_,t.__initialTouchTop=i,t.__zoomLevelStart=t.__zoomLevel,t.__lastTouchLeft=_,t.__lastTouchTop=i,t.__lastTouchMove=o,t.__lastScale=1,t.__enableScrollX=!l&&t.options.scrollingX,t.__enableScrollY=!l&&t.options.scrollingY,t.__isTracking=!0,t.__didDecelerationComplete=!1,t.__isDragging=!l,t.__isSingleTouch=l,t.__positions=[]},doTouchMove:function(e,o,t){if(null==e.length)throw new Error(\"Invalid touch list: \"+e);if(o instanceof Date&&(o=o.valueOf()),\"number\"!=typeof o)throw new Error(\"Invalid timestamp value: \"+o);var _=this;if(_.__isTracking){var i,l;2===e.length?(i=Math.abs(e[0].pageX+e[1].pageX)/2,l=Math.abs(e[0].pageY+e[1].pageY)/2):(i=e[0].pageX,l=e[0].pageY);var n=_.__positions;if(_.__isDragging){var r=i-_.__lastTouchLeft,a=l-_.__lastTouchTop,c=_.__scrollLeft,s=_.__scrollTop,p=_.__zoomLevel;if(null!=t&&_.options.zooming){var h=p;if(p=p/_.__lastScale*t,p=Math.max(Math.min(p,_.options.maxZoom),_.options.minZoom),h!==p){var f=i-_.__clientLeft,m=l-_.__clientTop;c=(f+c)*p/h-f,s=(m+s)*p/h-m,_.__computeScrollMax(p)}}if(_.__enableScrollX){c-=r*this.options.speedMultiplier;var u=_.__maxScrollLeft;(c>u||0>c)&&(_.options.bouncing?c+=r/2*this.options.speedMultiplier:c=c>u?u:0)}if(_.__enableScrollY){s-=a*this.options.speedMultiplier;var g=_.__maxScrollTop;(s>g||0>s)&&(_.options.bouncing?(s+=a/2*this.options.speedMultiplier,_.__enableScrollX||null==_.__refreshHeight||(!_.__refreshActive&&s<=-_.__refreshHeight?(_.__refreshActive=!0,_.__refreshActivate&&_.__refreshActivate()):_.__refreshActive&&s>-_.__refreshHeight&&(_.__refreshActive=!1,_.__refreshDeactivate&&_.__refreshDeactivate()))):s=s>g?g:0)}n.length>60&&n.splice(0,30),n.push(c,s,o),_.__publish(c,s,p)}else{var v=_.options.locking?3:0,d=5,T=Math.abs(i-_.__initialTouchLeft),S=Math.abs(l-_.__initialTouchTop);_.__enableScrollX=_.options.scrollingX&&T>=v,_.__enableScrollY=_.options.scrollingY&&S>=v,n.push(_.__scrollLeft,_.__scrollTop,o),_.__isDragging=(_.__enableScrollX||_.__enableScrollY)&&(T>=d||S>=d),_.__isDragging&&(_.__interruptedAnimation=!1)}_.__lastTouchLeft=i,_.__lastTouchTop=l,_.__lastTouchMove=o,_.__lastScale=t}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),\"number\"!=typeof e)throw new Error(\"Invalid timestamp value: \"+e);var o=this;if(o.__isTracking){if(o.__isTracking=!1,o.__isDragging)if(o.__isDragging=!1,o.__isSingleTouch&&o.options.animating&&e-o.__lastTouchMove<=100){for(var t=o.__positions,_=t.length-1,i=_,l=_;l>0&&t[l]>o.__lastTouchMove-100;l-=3)i=l;if(i!==_){var n=t[_]-t[i],r=o.__scrollLeft-t[i-2],a=o.__scrollTop-t[i-1];o.__decelerationVelocityX=r/n*(1e3/60),o.__decelerationVelocityY=a/n*(1e3/60);var c=o.options.paging||o.options.snapping?4:1;(Math.abs(o.__decelerationVelocityX)>c||Math.abs(o.__decelerationVelocityY)>c)&&(o.__refreshActive||o.__startDeceleration(e))}else o.options.scrollingComplete()}else e-o.__lastTouchMove>100&&o.options.scrollingComplete();o.__isDecelerating||(o.__refreshActive&&o.__refreshStart?(o.__publish(o.__scrollLeft,-o.__refreshHeight,o.__zoomLevel,!0),o.__refreshStart&&o.__refreshStart()):((o.__interruptedAnimation||o.__isDragging)&&o.options.scrollingComplete(),o.scrollTo(o.__scrollLeft,o.__scrollTop,!0,o.__zoomLevel),o.__refreshActive&&(o.__refreshActive=!1,o.__refreshDeactivate&&o.__refreshDeactivate()))),o.__positions.length=0}},__publish:function(e,_,i,l){var n=this,r=n.__isAnimating;if(r&&(core.effect.Animate.stop(r),n.__isAnimating=!1),l&&n.options.animating){n.__scheduledLeft=e,n.__scheduledTop=_,n.__scheduledZoom=i;var a=n.__scrollLeft,c=n.__scrollTop,s=n.__zoomLevel,p=e-a,h=_-c,f=i-s,m=function(e,o,t){t&&(n.__scrollLeft=a+p*e,n.__scrollTop=c+h*e,n.__zoomLevel=s+f*e,n.__callback&&n.__callback(n.__scrollLeft,n.__scrollTop,n.__zoomLevel))},u=function(e){return n.__isAnimating===e},g=function(e,o,t){o===n.__isAnimating&&(n.__isAnimating=!1),(n.__didDecelerationComplete||t)&&n.options.scrollingComplete(),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))};n.__isAnimating=core.effect.Animate.start(m,u,g,n.options.animationDuration,r?o:t)}else n.__scheduledLeft=n.__scrollLeft=e,n.__scheduledTop=n.__scrollTop=_,n.__scheduledZoom=n.__zoomLevel=i,n.__callback&&n.__callback(e,_,i),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))},__computeScrollMax:function(e){var o=this;null==e&&(e=o.__zoomLevel),o.__maxScrollLeft=Math.max(o.__contentWidth*e-o.__clientWidth,0),o.__maxScrollTop=Math.max(o.__contentHeight*e-o.__clientHeight,0)},__startDeceleration:function(){var e=this;if(e.options.paging){var o=Math.max(Math.min(e.__scrollLeft,e.__maxScrollLeft),0),t=Math.max(Math.min(e.__scrollTop,e.__maxScrollTop),0),_=e.__clientWidth,i=e.__clientHeight;e.__minDecelerationScrollLeft=Math.floor(o/_)*_,e.__minDecelerationScrollTop=Math.floor(t/i)*i,e.__maxDecelerationScrollLeft=Math.ceil(o/_)*_,e.__maxDecelerationScrollTop=Math.ceil(t/i)*i}else e.__minDecelerationScrollLeft=0,e.__minDecelerationScrollTop=0,e.__maxDecelerationScrollLeft=e.__maxScrollLeft,e.__maxDecelerationScrollTop=e.__maxScrollTop;var l=function(o,t,_){e.__stepThroughDeceleration(_)},n=e.options.snapping?4:.1,r=function(){var o=Math.abs(e.__decelerationVelocityX)>=n||Math.abs(e.__decelerationVelocityY)>=n;return o||(e.__didDecelerationComplete=!0),o},a=function(){e.__isDecelerating=!1,e.__didDecelerationComplete&&e.options.scrollingComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,e.options.snapping)};e.__isDecelerating=core.effect.Animate.start(l,r,a)},__stepThroughDeceleration:function(e){var o=this,t=o.__scrollLeft+o.__decelerationVelocityX,_=o.__scrollTop+o.__decelerationVelocityY;if(!o.options.bouncing){var i=Math.max(Math.min(o.__maxDecelerationScrollLeft,t),o.__minDecelerationScrollLeft);i!==t&&(t=i,o.__decelerationVelocityX=0);var l=Math.max(Math.min(o.__maxDecelerationScrollTop,_),o.__minDecelerationScrollTop);l!==_&&(_=l,o.__decelerationVelocityY=0)}if(e?o.__publish(t,_,o.__zoomLevel):(o.__scrollLeft=t,o.__scrollTop=_),!o.options.paging){var n=.95;o.__decelerationVelocityX*=n,o.__decelerationVelocityY*=n}if(o.options.bouncing){var r=0,a=0,c=o.options.penetrationDeceleration,s=o.options.penetrationAcceleration;to.__maxDecelerationScrollLeft&&(r=o.__maxDecelerationScrollLeft-t),_o.__maxDecelerationScrollTop&&(a=o.__maxDecelerationScrollTop-_),0!==r&&(r*o.__decelerationVelocityX<=0?o.__decelerationVelocityX+=r*c:o.__decelerationVelocityX=r*s),0!==a&&(a*o.__decelerationVelocityY<=0?o.__decelerationVelocityY+=a*c:o.__decelerationVelocityY=a*s)}}};for(var i in _)ZyngaScroller.prototype[i]=_[i]}();;\nfunction Scroller(t,i,o){this.container=t,this.list=i,this.options=o||{},this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handleScroll=this._handleScroll.bind(this),this.silentScrolling=!1,this.zyngaScroller=new ZyngaScroller(this._handleScroll,{scrollingX:\"vertical\"===this.options.direction?!1:!0,scrollingY:\"horizontal\"===this.options.direction?!1:!0,bouncing:!!this.options.bouncing,animating:!!this.options.animating,locking:!!this.options.locking,snapping:!!this.options.snapping,animationDuration:\"undefined\"!=typeof this.options.animationDuration?this.options.animationDuration:250,scrollingComplete:deferred(this.emits(\"scrollingEnd\"))}),this.setEasing(\"undefined\"==typeof this.options.easing?!0:this.options.easing),this.redraw()}extend(Scroller.prototype,EventEmitter),Scroller._owner=\"celtra\",Scroller.prototype._handleScroll=function(t,i){t=isNaN(t)?0:t,i=isNaN(i)?0:i;var o=this.getMaxScroll();this.currentPosition={left:t,top:i,leftPercent:o.left?t/o.left:0,topPercent:o.top?i/o.top:0},celtra.styler.css(this.list,\"transform\",ScreenObject.supports3d?\"translate3d(\"+-t+\"px, \"+-i+\"px, 0)\":\"translate(\"+-t+\"px, \"+-i+\"px)\"),this.scrollbars&&(this.currentPosition.sbTop=this.currentPosition.top/(this.list.size.height-this.container.size.height)*(this.container.size.height-parseInt(this.scrollbars.verticalStyle.height,10)),this.currentPosition.sbLeft=this.currentPosition.left/(this.list.size.width-this.container.size.width)*(this.container.size.width-parseInt(this.scrollbars.horizontalStyle.width,10)),this.currentPosition.sbTopPercent=this.currentPosition.sbTop/(this.container.size.height-parseInt(this.scrollbars.verticalStyle.height,10)),this.currentPosition.sbLeftPercent=this.currentPosition.sbLeft/(this.container.size.width-parseInt(this.scrollbars.horizontalStyle.width,10)),this._renderScrollbars(this.currentPosition.sbLeft,this.currentPosition.sbTop)),this.silentScrolling||this.emit(\"scrolling\",this.currentPosition)},Scroller.prototype._handleTouchStart=function(t){this.zyngaScroller.doTouchStart(t.touches,t.timeStamp),this.emit(\"scrollingStart\")},Scroller.prototype._handleTouchMove=function(t){this.zyngaScroller.doTouchMove(t.touches,t.timeStamp)},Scroller.prototype._handleTouchEnd=function(t){this.zyngaScroller.doTouchEnd(t.timeStamp)},Scroller.prototype._createScrollbars=function(){var t=document.createElement(\"div\");addClass(t,\"celtra-vertical-scrollbar \"+this.options.scrollbarPosition||\"none\"),this.container.appendChild(t);var i=document.createElement(\"div\");t.appendChild(i),t.style.height=Math.round(this.container.size.height/this.list.size.height*this.container.size.height)+\"px\",t.style.backgroundColor=this.options.scrollbarColor,t.style.display=this.list.size.height<=this.container.size.height?\"none\":\"block\";var o=document.createElement(\"div\");addClass(o,\"celtra-horizontal-scrollbar \"+this.options.scrollbarPosition||\"none\"),this.container.appendChild(o);var e=document.createElement(\"div\");o.appendChild(e),o.style.width=Math.round(this.container.size.width/this.list.size.width*this.container.size.width)+\"px\",o.style.backgroundColor=this.options.scrollbarColor,o.style.display=this.list.size.width<=this.container.size.width?\"none\":\"block\",this.scrollbars={vertical:t,horizontal:o,verticalStyle:t.style,horizontalStyle:o.style}},Scroller.prototype.scrollTo=function(t,i,o,e,s,n){this._scroll(\"scrollTo\",{left:t,top:i,animate:o,duration:e,easing:s,callback:n})},Scroller.prototype.scrollBy=function(t,i,o,e,s,n){this._scroll(\"scrollBy\",{left:t,top:i,animate:o,duration:e,easing:s,callback:n})},Scroller.prototype._scroll=function(t,i){i.animate&&(\"number\"==typeof i.duration?this._setAnimationDuration(i.duration):\"boolean\"==typeof i.duration&&(i.easing=i.duration),\"boolean\"==typeof i.easing&&this.setEasing(i.easing)),this.once(\"scrollingEnd\",function(){\"function\"==typeof i.callback&&i.callback()}),this.zyngaScroller[t](i.left,i.top,i.animate),this.emit(\"scrollingStart\")},Scroller.prototype.getMaxScroll=function(){return{left:this.zyngaScroller.__maxScrollLeft,top:this.zyngaScroller.__maxScrollTop}},Scroller.prototype.getCurrentScroll=function(){return this.currentPosition},Scroller.prototype._setAnimationDuration=function(t){this.zyngaScroller.options.animationDuration=t},Scroller.prototype.setEasing=function(t){this.options.easing=t,this.zyngaScroller.__publish=function(i,o,e,s){var n=this,r=function(t){return Math.pow(t-1,3)+1},l=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},a=n.__isAnimating;if(a&&(core.effect.Animate.stop(a),n.__isAnimating=!1),s&&n.options.animating){n.__scheduledLeft=i,n.__scheduledTop=o,n.__scheduledZoom=e;var h=n.__scrollLeft,c=n.__scrollTop,p=n.__zoomLevel,d=i-h,u=o-c,_=e-p,g=function(t,i,o){o&&(n.__scrollLeft=h+d*t,n.__scrollTop=c+u*t,n.__zoomLevel=p+_*t,n.__callback&&n.__callback(n.__scrollLeft,n.__scrollTop,n.__zoomLevel))},S=function(t){return n.__isAnimating===t},z=function(t,i,o){i===n.__isAnimating&&(n.__isAnimating=!1),(n.__didDecelerationComplete||o)&&n.options.scrollingComplete(),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))};n.__isAnimating=t?core.effect.Animate.start(g,S,z,n.options.animationDuration,a?r:l):core.effect.Animate.start(g,S,z,n.options.animationDuration)}else n.__scheduledLeft=n.__scrollLeft=i,n.__scheduledTop=n.__scrollTop=o,n.__scheduledZoom=n.__zoomLevel=e,n.__callback&&n.__callback(i,o,e),n.options.zooming&&(n.__computeScrollMax(),n.__zoomComplete&&(n.__zoomComplete(),n.__zoomComplete=null))}},Scroller.prototype.redraw=function(){this.container.size={width:this.container.offsetWidth,height:this.container.offsetHeight},this.list.size={width:this.list.offsetWidth,height:this.list.offsetHeight},this.zyngaScroller.setDimensions(this.container.size.width,this.container.size.height,this.list.size.width,this.list.size.height),this.options.snapping&&this._setSnapSize(this.container.size.width,this.container.size.height);var t=this.getMaxScroll();this.zyngaScroller.scrollTo(t.left*this.currentPosition.leftPercent,t.top*this.currentPosition.topPercent,!1),this.scrollbars?(this.scrollbars.verticalStyle.height=Math.round(this.container.size.height/this.list.size.height*this.container.size.height)+\"px\",this.scrollbars.horizontalStyle.width=Math.round(this.container.size.width/this.list.size.width*this.container.size.width)+\"px\",this.currentPosition.sbTop=(this.container.size.height-parseInt(this.scrollbars.verticalStyle.height,10))*this.currentPosition.sbTopPercent,this.currentPosition.sbLeft=(this.container.size.width-parseInt(this.scrollbars.horizontalStyle.width,10))*this.currentPosition.sbLeftPercent,this._renderScrollbars(this.currentPosition.sbLeft,this.currentPosition.sbTop)):(\"outer\"===this.options.scrollbarPosition||\"inner\"===this.options.scrollbarPosition)&&this._createScrollbars()},Scroller.prototype._renderScrollbars=function(t,i){ScreenObject.allowPositioningAndSizingUsingTransforms?(celtra.styler.css(this.scrollbars.vertical,\"transform\",ScreenObject.supports3d?\"translate3d(0, \"+i+\"px, 0)\":\"translate(0, \"+i+\"px)\"),celtra.styler.css(this.scrollbars.horizontal,\"transform\",ScreenObject.supports3d?\"translate3d(\"+t+\"px, 0, 0)\":\"translate(\"+t+\"px, 0)\")):(this.scrollbars.verticalStyle.top=i+\"px\",this.scrollbars.horizontalStyle.left=t+\"px\"),this.container.size.height>=this.list.size.height?(this.scrollbars.verticalStyle.display=\"none\",removeClass(this.container,\"vertical-scrollbar\")):(this.scrollbars.verticalStyle.display=\"block\",addClass(this.container,\"vertical-scrollbar\")),this.container.size.width>=this.list.size.width?(this.scrollbars.horizontalStyle.display=\"none\",removeClass(this.container,\"horizontal-scrollbar\")):(this.scrollbars.horizontalStyle.display=\"block\",addClass(this.container,\"horizontal-scrollbar\"))},Scroller.prototype._setSnapSize=function(t,i){this.zyngaScroller.setSnapSize(t,i)};;\n!function(){var t=1,e=4,i=[void 0,null,0,1],s=[100,300,6e3],n=function(e){this._video=e,this._lastObservedDuration=null,this._lastObservedPosition=null,this._intervalId=null,this._firstSegmentEmitted=!1,this._running=!1,this._currentTime=0,this._playedSegmentsCount=0,this.stop=this.stop.bind(this),this.stopAndReset=this.stopAndReset.bind(this),this.start=this.start.bind(this),this.tick=this.tick.bind(this),this.flush=this.flush.bind(this),this.reemitQuartileEvent=function(t){this.emit(t.name,t),this._playedSegmentComputationUnit.flush()}.bind(this),this.trackDurationChange=this.trackDurationChange.bind(this),this.stitchAndTrackVideoPlayedSegment=this.stitchAndTrackVideoPlayedSegment.bind(this),this._viewDirectionsObserver=\"function\"==typeof ViewDirectionsObserver&&this._video instanceof VideoPlayer360?new ViewDirectionsObserver(e,this.getCurrentTime.bind(this)):null,this._playedSegmentComputationUnit=new PlayedSegmentComputationUnit(t,this.stitchAndTrackVideoPlayedSegment),this._lastVideoPlayedSegment={from:0,to:0},this._serverReportedDuration=e.serverReportedDuration,e.serverReportedDuration?(defer(function(){this.emit(\"videoDurationUpdate\",{duration:e.serverReportedDuration})}.bind(this)),this.checkDuration=!1):(this.checkDuration=!0,e.on(\"durationchange\",this.trackDurationChange)),e.on(\"pause\",this.stop),e.on(\"timeupdate\",this.start),e.on(\"ended\",this.stopAndReset),e.on(\"repeat\",this.stopAndReset),e.on(\"playing\",this.start),e.on(\"seeked\",this.start),r().on(\"mediaStopRequested\",this.stop),e.on(\"muted\",this.flush),e.on(\"unmuted\",this.flush),e.on(\"enterfullscreen\",this.flush),e.on(\"exitfullscreen\",this.flush);for(var i in e.QUARTILE_EVENTS)e.on(i,this.reemitQuartileEvent)};extend(n.prototype,EventEmitter);var r=function(){return\"undefined\"!=typeof creative?creative.adapter:adapter};n.prototype.stitchAndTrackVideoPlayedSegment=function(t){var e={from:this._lastVideoPlayedSegment.to,to:t.to};this.trackVideoPlayedSegment(e)},n.prototype.trackVideoPlayedSegment=function(t){if(this._lastVideoPlayedSegment=t,!(this._serverReportedDuration&&t.from>=this._serverReportedDuration)){var e=!this._serverReportedDuration||t.tothis._currentTime&&(this._currentTime=this._video.currentTime),this._currentTime},n.prototype.start=function(){this._running||(this._running=!0,this._viewDirectionsObserver&&this._viewDirectionsObserver.start(),r().mediaState.startVideo(),this._firstSegmentEmitted||(this._currentTime=this.getCurrentTime()+.01,this.trackVideoPlayedSegment({from:0,to:this.getCurrentTime()}),this._firstSegmentEmitted=!0),this._playedSegmentComputationUnit.init(this.getCurrentTime()),clearInterval(this._intervalId),this._intervalId=setInterval(this.tick,1e3/e))},n.prototype.stopAndReset=function(){this.stop(!0),this._playedSegmentComputationUnit&&(this._playedSegmentComputationUnit.reset(),this._currentTime=0,this._firstSegmentEmitted=!1,this._viewDirectionsObserver&&this._viewDirectionsObserver.reset())},n.prototype.flush=function(){this._playedSegmentComputationUnit&&this._playedSegmentComputationUnit.flush()},n.prototype.stop=function(t){(this._running||t)&&(this._running&&(r().mediaState.stopVideo(),this._running=!1,clearInterval(this._intervalId)),this._viewDirectionsObserver&&this._viewDirectionsObserver.stop(),this._playedSegmentComputationUnit.addEvent(this.getCurrentTime()),this._playedSegmentComputationUnit.flush(t))},n.prototype.trackDurationChange=function(){if(this.checkDuration){var t=this._video.duration,e=-1!==i.indexOf(t),n=-1!==s.indexOf(t),r=t!==this._lastObservedDuration;e||n||!r||(this._serverReportedDuration=t,this.emit(\"videoDurationUpdate\",{duration:t}),this._lastObservedDuration=t)}},n.prototype.tick=function(){this.trackDurationChange();var t=this.getCurrentTime(),e=Date.now()-(this._lastTickTime||Date.now());t==this._lastObservedPosition&&e>1e3&&this.stop(),this._playedSegmentComputationUnit.addEvent(t),this._lastObservedPosition=t,this._lastTickTime=Date.now()},n.prototype.destroy=function(){var t=this._video;this.stop(),t.off(\"pause\",this.stop),t.off(\"ended\",this.stopAndReset),t.off(\"playing\",this.start),t.off(\"timeupdate\",this.start),t.off(\"durationchange\",this.tick),t.off(\"muted\",this.flush),t.off(\"unmuted\",this.flush),t.off(\"enterfullscreen\",this.flush),t.off(\"exitfullscreen\",this.flush),t.off(\"durationchange\",this.trackDurationChange);for(var e in t.QUARTILE_EVENTS)t.off(e,this.reemitQuartileEvent);r().off(\"mediaStopRequested\",this.stop),this._playedSegmentComputationUnit.flush()},this.VideoEventsAdapter=n}();;\n!function(){function n(n){if(n.serverReportedDuration)return n.serverReportedDuration;var r=-1!==t.indexOf(n.duration);return r?null:n.duration}var t=[void 0,null,0,1],r={videoStart:function(n,t,r){return t>Math.min(1,.25*r)},videoFirstQuartile:function(n,t,r){var e=.25*r;return e>n&&t>=e},videoMidpoint:function(n,t,r){var e=.5*r;return e>n&&t>=e},videoThirdQuartile:function(n,t,r){var e=.75*r;return e>n&&t>=e},videoComplete:function(n,t,r){return t>Math.max(.75*r,r-2)}};window.QuartileEventsEmitter=function(t){t.QUARTILE_EVENTS=r;var e={};Object.keys(r).forEach(function(n){e[n]=r[n]});var i=null,u=function(){var t;t=null===i?this.currentTime:null!==i&&this.currentTime>i?this.currentTime:i;var r=n(this);if(null!==r&&null!==i&&t&&1>t-i){i>0&&1>i&&(i=0);for(var u in e)e[u](i,t,r)&&(this.emit(u,{name:u,label:this.componentName}),delete e[u])}i=t}.bind(t);return t.on(\"timeupdate\",u),t.on(\"destroy\",function(){t.off(\"timeupdate\",u)}),t}}();;\n!function(){{var t={};new Image}t.ZINDEX_MAX=2147483647,t.LANDSCAPE=1,t.PORTRAIT=2,t.ENDED=0,t.PLAYING=1,t.PAUSED=2,t.BUFFERING=3,t.VIDEO_CUED=5,t.UNSTARTED=6,t.SEEKING=7,t.STATE={0:\"ENDED\",1:\"PLAYING\",2:\"PAUSED\",3:\"BUFFERING\",5:\"VIDEO_CUED\",6:\"UNSTARTED\",7:\"SEEKING\"},t.TRUTHY_REGEX=/^(yes|true|1)$/i,t.isTruthy=function(e){return t.TRUTHY_REGEX.test(e)},t.isTouchDevice=!!(\"ontouchstart\"in window),t.validFor=function(t,e,n){var r=Date.now()+e;return function(){Date.now()<=r&&t.apply(n||null,arguments)}},t.exists=function(t,e){return-1!==t.indexOf(e)},t.lastCall=0,t.deduplicate=function(e,n,r){return function(){Date.now()-t.lastCall>n&&(e.apply(r,arguments),t.lastCall=Date.now())}},t.isFunction=function(t){return\"function\"==typeof t},t.constantly=function(t){return function(){return t}},t.hash=function(){for(var t=Array.prototype.slice.apply(arguments),e=0,n=0;nn&&(n=\"0\"+n),10>r&&(r=\"0\"+r),n+\":\"+r},t.fitComponent=function(t,e,n,r,i){var o,a,l,s,c=1-n/r*(e/t)>0,u=!!i;return(u?!c:c)?(o=n,a=Math.ceil(e*(n/t)),l=0,s=r-a):(a=r,o=Math.ceil(t*(r/e)),l=n-o,s=0),{width:Math.ceil(o),height:Math.ceil(a),marginHorizontal:l>>1,marginVertical:s>>1}},t.removeUnits=function(t){return parseInt(t.replace(/[a-z]+/,\"\"))},t.capitaliseFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.createHandlerName=function(e,n){return n=n||\"on\",n+t.capitaliseFirstLetter(e)},t.forEach=function(t,e,n){for(var r in t)e.call(n,t[r],r,t)},t.changeStyle=function(t,e,n){for(var r,i=0;i0&&\"/\"==o[o.length-1];var a=0===i?o.replace(/\\/$/,\"\"):o.replace(/^\\//,\"\").replace(/\\/$/,\"\");a&&e.push(a)}return e.join(\"/\")+(r?\"/\":\"\")+(n?\"?\"+n:\"\")},t.xBindFactory=function(t){return function(e){var n=e.getAttribute(\"x-bind\");n&&(t[n]=e,e.removeAttribute(\"x-bind\"))}},t.createDom=function(t,e,n,r){function i(t){for(var e=t.children||[],n=0;ne?e+.1:e-.1;return t.volume=n,t.volume===n}),t.isTouchDevice=!!(\"ontouchstart\"in window),t.isTopNode=function(t){return\"BODY\"===t.tagName||\"viewport\"===t.id||\"celtra-modal\"===t.id},t.orientationLockHandler=function(t,e){var n=t.getControlsElement(),r=t.getWrapperElement();r&&(e?(t.__playAfterRotate=t.isState(CeltraPlayerUtils.PLAYING)?!0:!1,t.pause(),n&&(n.style.display=\"none\"),r.style.zIndex=-1):(n&&(n.style.display=\"\"),t.__playAfterRotate&&t.play(),r.style.zIndex=CeltraPlayerUtils.ZINDEX_MAX))},t.construct=function(t,e){function n(){return t.apply(this,e)}return n.prototype=t.prototype,new n},t.getUrl=function(e){var n=!!creative.runtimeParams.secure,r=(n?e:\"insecure\"+t.capitaliseFirstLetter(e))+\"Url\",i=\"undefined\"!=typeof creative?creative[r]:urls[r];if(i)return i;throw\"Undefined url key \"+r},t.ifDefined=function(t,e){return\"undefined\"!=typeof t?t:e},t.base64ToArrayBuffer=function(t){for(var e=window.atob(t),n=e.length,r=new Uint8Array(n),i=0;n>i;i++){var o=e.charCodeAt(i);r[i]=o}return r.buffer}}(),function(){this.StatefulEventEmitter={changeState:function(t){var e=this._state;this._state!=t&&(this._state=t,this.emit(\"statechange\",t,e))},getState:function(){return this._state},isState:function(){var t=Array.prototype.slice.apply(arguments);return-1!==t.indexOf(this._state)}},extend(this.StatefulEventEmitter,EventEmitter)}(),function(){function t(t,o,a){this.intervalId=null,this.containerEl=null,this.externalResize=noop,this.lastWidth=0,this.lastHeight=0,this.lastScrollX=0,this.lastScrollY=0,this.doc=t.ownerDocument,this.win=\"defaultView\"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.initialHostOffset={left:this.win.pageXOffset||document.documentElement.scrollLeft,top:this.win.pageYOffset||document.documentElement.scrollTop},this.containerEl=t;var l=this.containerEl.style;l.position=a?\"fixed\":\"absolute\",l.zIndex=CeltraPlayerUtils.ZINDEX_MAX-1,l.width=\"100%\",l.height=\"100%\",l.left=\"0px\",l.top=\"0px\",o||(l.background=\"#000\"),this.containerEl.addEventListener(\"touchmove\",r),this.containerEl.addEventListener(\"touchstart\",r),this.win.document.body.appendChild(this.containerEl),this.resize=n.bind(this),this.tick=e.bind(this),this.intervalId=setInterval(this.tick,i),new Tapper(t)}function e(){window===(\"undefined\"==typeof adapter?creative.adapter:adapter).getTopWindow()&&(this.containerEl.style.width=\"100%\",this.containerEl.style.height=\"100%\");var t=Math.max(this.win.document.documentElement.clientWidth,this.win.innerWidth||0),e=Math.max(this.win.document.documentElement.clientHeight,this.win.innerHeight||0);(this.lastWidth!==t||this.lastHeight!==e||ios(\"7\")&&o)&&(this.lastWidth=t,this.lastHeight=e,defer(this.resize))}function n(){var t=this.containerEl.style;t.width=this.lastWidth+\"px\",t.height=this.lastHeight+\"px\",t.zIndex=CeltraPlayerUtils.ZINDEX_MAX,this.emit(\"resize\",{width:this.lastWidth,height:this.lastHeight,scrollX:this.lastScrollX,scrollY:this.lastScrollY})}function r(t){var e=void 0!=typeof adapter?adapter:creative.adapter;\"touchstart\"==t.type&&e.useNativeClickForTapDetection||t.preventDefault(),t.stopPropagation()}var i=60,o=-1!==navigator.userAgent.indexOf(\"Safari\")&&-1===navigator.userAgent.indexOf(\"CriOS\");extend(t.prototype,EventEmitter),t.prototype.getElement=function(){return this.containerEl},t.prototype.destroy=function(){this.containerEl&&(this.containerEl.removeEventListener(\"touchmove\",r),this.containerEl.removeEventListener(\"touchstart\",r),clearInterval(this.intervalId),this.containerEl.innerHTML=\"\")},window.FullScreenHandler=t}();;\n!function(){var t=.4,i=function(t,i){this.maxPlayingSegmentLength=t,this.callback=i,this.reset()};i.prototype.init=function(t){this._startPlayingPosition=t,this._lastPlayingPosition=t},i.prototype.addEvent=function(t){t>this._lastPlayingPosition&&(this._lastPlayingPosition=t);var i=this._lastPlayingPosition-this._startPlayingPosition,n=i>=this.maxPlayingSegmentLength;n&&this.flush()},i.prototype.flush=function(i){if(null!=this._startPlayingPosition){var n=this._startPlayingPosition,s=this._lastPlayingPosition;(i||s-n>t)&&s>n&&(this.callback({from:n,to:s}),this._startPlayingPosition=this._lastPlayingPosition)}},i.prototype.reset=function(){this._startPlayingPosition=null,this._lastPlayingPosition=null},window.PlayedSegmentComputationUnit=i}();;\n!function(t){function i(t){this._player=t,this._startClock=this._startClock.bind(this),this._stopClock=this._stopClock.bind(this),this.update=this.update.bind(this),this._duration=t.getDuration(),this._completionMarker=Math.max(0,this._duration-i.COMPLETION_WINDOW_LENGTH),this._uniqueSecondsPlayedList=[],this._timeUpdateIntervalId=0,this._last=this._initState(),this._quartileDurations={start:0,firstQuartile:.25*this._duration,midpoint:.5*this._duration,thirdQuartile:.75*this._duration,complete:this._completionMarker},t.addEventListener(\"timeupdate\",this.update),t.addEventListener(\"playing\",this._startClock),t.addEventListener(\"ended\",this._stopClock)}extend(i.prototype,EventEmitter),i.COMPLETION_WINDOW_LENGTH=.5,i.MAX_INTERPOLATION_GAP=5,i.prototype._initState=function(){return{playingSecond:0,inCompletionWindow:!1}},i.prototype._startClock=function(){this._timeUpdateIntervalId||(this._timeUpdateIntervalId=setInterval(this.update.bind(this),250),this.update())},i.prototype._stopClock=function(){this._timeUpdateIntervalId&&clearInterval(this._timeUpdateIntervalId),this._timeUpdateIntervalId=0},i.prototype.update=function(t){var t=(Date.now(),t||this._player.getCurrentTime());if(t>=0){t>this._duration&&(t=this._duration);var e=t>=this._completionMarker;if(this._last.inCompletionWindow&&e)return;this._last.inCompletionWindow&&!e&&(this._last=this._initState());var n=Math.floor(t)+1;if(this._last.playingSecond!=n){var a;if(a=this._last.playingSecond>n?0:this._last.playingSecond,n>a+1)for(var s=Math.max(n-i.MAX_INTERPOLATION_GAP,a+1),o=s;n>o;o++)this._markAndEmitSecondPlayed(o,t);this._markAndEmitSecondPlayed(n,t)}var r=this._uniqueSecondsPlayedList.length-1+(t-Math.floor(t));this._markAndEmitQuartilesForDuration(r),this._last.playingSecond=n,this._last.inCompletionWindow=e}},i.prototype._markAndEmitSecondPlayed=function(t,i){var e=-1==this._uniqueSecondsPlayedList.indexOf(t);e?(this._uniqueSecondsPlayedList.push(t),this.emit(\"secondPlayed\",t,i)):this.emit(\"secondReplayed\",t,i)},i.prototype._markAndEmitQuartilesForDuration=function(t){for(var i in this._quartileDurations)t>=this._quartileDurations[i]&&(delete this._quartileDurations[i],this.emit(i,t))},t.PlaybackTrackingEventsEmitter=i}(this);;\n!function(t){function i(t,i,e){this._context=i,this._prefix=e||\"video\",[\"start\",\"firstQuartile\",\"midpoint\",\"thirdQuartile\",\"complete\"].forEach(function(i){t.on(i,function(t){this._context.track({name:this._prefix+ucfirst(i),position:t}),\"start\"===i&&creative.trackCreativeRenderedOnVideoStart()}.bind(this))},this),[\"secondPlayed\",\"secondReplayed\"].forEach(function(i){t.on(i,function(t,e){this._context.track({name:this._prefix+ucfirst(i),second:t,position:e})}.bind(this))},this)}extend(i.prototype,EventEmitter),i.prototype.changeContext=function(t){this._context=t},t.PlaybackTrackingEventsRecorder=i}(this);;\n!function(){var A=[\".video-player-wrapper {\",\" position: absolute;\",\" width: 100%;\",\" height: 100%;\",\" background: #000;\",\" top: 0;\",\" left: 0;\",\" overflow: hidden;\",\"}\",\".video-player-engine {\",\" position: absolute;\",\" width: 100%;\",\" height: 100%;\",\" min-height: 100%;\",\" top: 0;\",\" left: 0;\",\" margin: 0;\",\" padding: 0;\",\" overflow: hidden;\",\"}\",\".video-player-engine video,\",\".video-player-engine .canvasContainer\",\"{\",\" position: relative;\",\" width: 100%;\",\" height: 100%;\",\" min-height: 100%;\",\" background: #000;\",\" top: 0;\",\" left: 0;\",\"}\",\".video-player-poster {\",\" position: absolute;\",\" background-color: #000000;\",\" background-size: contain;\",\" background-repeat: no-repeat no-repeat;\",\" background-position: center center;\",\"}\",\".video-player-fitting-crop .video-player-poster {\",\" background-size: cover;\",\"}\",\".video-player-engine canvas {\",\" position: relative;\",\" width: 100%;\",\" background: #000;\",\" top: 0;\",\" left: 0;\",\"}\",\".video-player-engine canvas {\",\" image-rendering: optimizeSpeed;\",\" image-rendering: -moz-crisp-edges;\",\" -ms-interpolation-mode: nearest-neighbor;\",\" image-rendering: optimize-contrast;\",\" image-rendering: -webkit-pixelated;\",\" image-rendering: crisp-edges;\",\" image-rendering: -webkit-optimize-speed;\",\" image-rendering: -webkit-optimize-contrast;\",\"}\",\".video-controls-container {\",\" position: absolute;\",\" width: 100%;\",\" height: 100%;\",\" top: 0;\",\" left: 0;\",\" font-size: 14px;\",\"}\",\".video-basic-controls-wrapper {\",\" position: absolute;\",\" width: 100%;\",\" height: 100%;\",\"}\",\".video-controls-slider-container {\",\" position: absolute;\",\" width: 100%;\",\" height: 8px;\",\" bottom: -1px;\",\" left:0;\",\" background: #111;\",\"}\",\".video-controls-progress-bar {\",\" opacity: 0.3;\",\"}\",\".video-controls-progress-bar,\",\".video-controls-time-bar {\",\" position: absolute;\",\" width: 0;\",\" top: 0;\",\" left: 0;\",\" height: 100%;\",\"}\",\"@-webkit-keyframes video-player-spin{\",\" 0% { -webkit-transform: rotate(0deg); }\",\" 100% { -webkit-transform: rotate(359deg); }\",\"}\",\"@-moz-keyframes video-player-spin{\",\" 0% { -moz-transform: rotate(0deg); }\",\" 100% { -moz-transform: rotate(359deg); }\",\"}\",\"@keyframes video-player-spin{\",\" 0% { transform: rotate(0deg); }\",\" 100% { transform: rotate(359deg); }\",\"}\",\".video-player-spinner-big,\",\".video-player-spinner-small {\",\" display: block;\",\" position: absolute;\",\" top: 50%;\",\" left: 50%;\",\" -webkit-animation: video-player-spin 1.5s infinite linear;\",\" animation: video-player-spin 1.5s infinite linear;\",\"}\",\".video-player-spinner-big {\",\" width: 35px;\",\" height: 35px;\",\" margin-top: -17px;\",\" margin-left: -17px;\",' background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAQAAAC00HvSAAADTklEQVR4AZWVTWgcZRyHn/c/7zubbDbJJsTEioiIH7EGq6EIRqwWqbRClXrx4E0QxYt3b4qK9qgoePDmwRYVS6xFW7Ueeqj0kqIVQYwljTVt0o/dZD9n3r/zshGSGpOd54GZ0+9h/qcxbMh03PfK4LPl8cFy0SJsialxIyfHRz+6Y6pkDR0xXWQ8azlaGvt0fF9sMsiTsazh2933fzEyKICu2+bKfP/izg96IlDA6JXmhdPVY81T6Xk2wAuCz1zFTNOh+PKD71sRMIZqY3aa59iERYtktvDrMm735LGCNQaE38/O7WGRzRBCJljrhCyB0l2HXKSgxpw7zt4xNmcBZNUSlU4XGPl4aEhRVc595fd6tvKm8LAEY4qrR0V3T87YyGDMn2d4mC6ZL9JDmEm6gBcYPhiJqlJdnt8/T7dSQ0JEhQEQ4m2Ph4jq3GdDi0N0Lw21arHSL0jP84WCZlQqV1+6Sh5ZRoix9PiiLe1TBbj0w4gnJ4v1qBeQqN8W79HQYeU78tPAIqBFWxwNFbR1mvy0iMEY+qyNvRK4SH68cQAGiaz64MTCBHndkRhngr3SbnYyM6Mz5NYah81EWnXN8D66OSKvxBrjMpH6X+ozNd4Rk1dKxgW1KbVfskpGYapAXqNRXGakdal/o1kHX95VJq/RbcYFWZLGkVY1fE+hvPT6Enmc2y5lnIk0TS8LraXjeM0ceqY6UKVrrbsvRHD+gvViqbyTtvDex4PD7w3Tre4xUzYOhyS/JUiCP3/pkPd49eVH2m+36cbqLrcdR2Rs8qutWcRiqbxRm9c0HDZywLxp2MrGE/FDxoo1VivJTEKCmSYQPXDrJ+LIQppeO3n9NZb5P+LC0+5eEm2Tar12mCvr/lPxU9veNRIy6luXK0f4kA1I9hR2Sp9PSLJIo/4lsxAwR/kX++TYWyZWT6qZrb9rp9pnkj/8dSqUon5zi73TTUhJs4QGV+qfh8h/MmAmRg7GYyGiXpPMlLbP3rS1Y6oJLU3Upxebh1lYs/yataQ9pVcH9hsJqdVMmHYS7ZAm0Ubjx9YJEtZgprmRaKz3hb5HpTeESHyIZYFOIq00f2qe4BqBTTMdrJuKJ+3t0bAUsH7FV5KFZLb9c3oWzwb8AzjvQbz9lli3AAAAAElFTkSuQmCC\");',\"}\",\".video-player-spinner-small {\",\" width: 18px;\",\" height: 18px;\",\" margin-top: -9px;\",\" margin-left: -9px;\",' background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAABeElEQVR4AXXSv2sTYRjA8e89997lcuR60eJQUdpFQQoqdHRWhAoddPBPcHRwE8TZxcXJf0BEsIjuQUQQtZMOpREM9RKL1RrqJbkf771nEGnKJf1+hmd5eKaHSe/vtzf30k63Q9X/8XZte6f8V/QrokopILq9/CB0+nnUip/l7zioUJgxrBbu6rnnodvp9G6wwaG04AEJRvAWHjXcr+3tC3pDcxhmzGcOpH7rxOm9uHfN3repIkMkwJPguljfXwVbAdOaBm3V7VD8pVE2fDpkNhJcQqXqOi+2OKrxJRxVFkXB0Ql1tKS/QZaE2fAkQGS4KbZ3xWM2+xRzpDJYz5Pw6mBxwLQ/vlq2XLMj6ZP9T7VjzYfGN1Qo97IslD9NV8j6d0e7wUrzsSwKExyv3XTOl1n2AWO1AHdt/p4Kkm/xy/xN2cMwb591Lkqj+JGs0wbrNQCy0rjjnQHdN7EZkYOJs8/ZC7pwsASgVp1L6qRVK9NiV3/RHyc/8RftSMiO8WZLaAAAAABJRU5ErkJggg==\");',\"}\",\".video-controls-hiddable,\",\".video-controls-unhiddable {\",\" width: 100%;\",\" height: 100%;\",\"}\",\".video-basic-controls-wrapper .center-button {\",\" position: absolute;\",\" width: 4em;\",\" height: 4em;\",\" border-top-left-radius: 2em;\",\" border-top-right-radius: 2em;\",\" border-bottom-left-radius: 2em;\",\" border-bottom-right-radius: 2em;\",\" background: #111;\",\" margin: auto;\",\" top: 0;\",\" left: 0;\",\" bottom: 0;\",\" right: 0;\",\" text-align: center;\",\" cursor: pointer;\",\" opacity: 0.8;\",\" z-index: 1;\",\"}\",\".center-button div {\",\" position: relative;\",\" width: 100%;\",\" color: white;\",\" font-size: 2em;\",\" top: 0.5em;\",\"}\",\".center-button .celtra-icon-play { left: 0.1em;}\",\".center-button .celtra-icon-replay { top: 0.62em; left:0.05em}\",\".video-basic-controls-wrapper .custom-button {\",\" position: absolute;\",\" height: 100%;\",\" width: 100%;\",\" top: 0;\",\" left: 0;\",\" cursor: pointer;\",\" opacity: 0.8;\",\"}\",\".custom-button img {\",\" margin: auto;\",\" position: absolute;\",\" top: 0;\",\" right: 0;\",\" bottom: 0;\",\" left: 0;\",\"}\",\".video-controls-button {\",\" position: absolute;\",\" cursor: pointer;\",\" font-size: 1.5em;\",\" color: white;\",\" width: 2.5em;\",\" height: 2.5em;\",\"}\",\".video-controls-desktop .video-controls-button div {\",\" margin-top: -0.5em;\",\"}\",\".ie-click-event {\",\" background-color: rgba(255,255,255,0);\",\"}\",\".video-controls-button-shadow {\",\" text-shadow: 1px 1px 3px #000;\",\"}\",\".video-controls-button-top-right {\",\" right: 0;\",\" top: 0;\",\"}\",\".video-controls-desktop .video-controls-button-top-right {\",\" margin-right: 0.5em;\",\" margin-top: 0.5em;\",\" width: 1.5em;\",\" height: 1.5em;\",\"}\",\".video-controls-button-bottom-right {\",\" right: 0;\",\" bottom: 0;\",\"}\",\".video-controls-desktop .video-controls-button-bottom-right {\",\" margin-right: 0.5em;\",\" margin-bottom: 0.75em;\",\" width: 1.5em;\",\" height: 1.5em;\",\"}\",\".video-controls-button div {\",\" position: absolute;\",\" height: 50%;\",\" width: 100%;\",\" left: 0;\",\" text-align: center;\",\" top: 50%;\",\" margin-top: -0.75em;\",\" vertical-align: middle;\",\"}\",\".video-controls-button .celtra-icon-close {\",\" font-size: 0.7em;\",\" left: 0.07412em;\",\"}\",\".video-controls-button .celtra-icon-enter-full-screen,\",\".video-controls-button .celtra-icon-exit-full-screen {\",\" left: 0.09em;\",\"}\",\".video-controls-pending {\",\" animation: video-controls-pending 1s infinite linear;\",\"}\",\"@-webkit-keyframes video-controls-pending {\",\" 0% { opacity: 1 }\",\" 50% { opacity: 0 }\",\" 100% { opacity: 1 }\",\"}\",\"@keyframes video-controls-pending {\",\" 0% { opacity: 1 }\",\" 50% { opacity: 0 }\",\" 100% { opacity: 1 }\",\"}\",\"@font-face {\",' font-family: \"celtraicons\";',' src:url(\"data:application/font-woff;base64,d09GRk9UVE8AAAqEAAoAAAAACjwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA9AAABq8AAAavkHaHf09TLzIAAAekAAAAYAAAAGAIIvzDY21hcAAACAQAAABMAAAATBpVzGRnYXNwAAAIUAAAAAgAAAAIAAAAEGhlYWQAAAhYAAAANgAAADb/fCRYaGhlYQAACJAAAAAkAAAAJAPjAfJobXR4AAAItAAAAEgAAABIHLIB9G1heHAAAAj8AAAABgAAAAYAElAAbmFtZQAACQQAAAFdAAABXWEQuipwb3N0AAAKZAAAACAAAAAgAAMAAAEABAQAAQEBDGNlbHRyYWljb25zAAECAAEAOvgcAvgbA/gYBB4KABlT/4uLHgoAGVP/i4sMB4pq+JX4dAUdAAAA0A8dAAAA1REdAAAACR0AAAamEgATAQEMFxkbHiMoLTI3PEFGS1BVWl9kY2VsdHJhaWNvbnNjZWx0cmFpY29uc3UwdTF1MjB1RTYwMHVFNjAxdUU2MDJ1RTYwM3VFNjA0dUU2MDV1RTYwNnVFNjA3dUU2MDh1RTYwOXVFNjBBdUU2MEJ1RTYwQ3VFNjBEAAACAYkAEAASAgABAAQABwAKAA0ASwCpAPUCGAJDAs0DBQPvA/sEHgRFBG0E2wWp/JQO/JQO/JQO+5QOi/dUFYs/rUbAXAi1uwVjrnK/i8SL9eHh9YvAi7t2rmgIQ0P3VIuL91RAQAVduUuoRIv7IYv7B/sHi/shCA6L9+kVi/tP9wiK9yD7G4v4Yvsg+x4F93qoFWRkBaZ0nGqLZYtlempwdAiyZAWvrKK6i8CLwHS6Z6wI19cVZWUFuWCoTotIi0huTl1gCLFlBcO/rtaL3YvdaNVTwAgOPPdt+HQVRYtNamNXCF65i/se9x6LUcQFqra8p8SL54vWQIsuiy9AQC+LPItJwXnVCFmLBZ0m5D71i/cLi+3ti/cLi/cMKez7C4sIDvhf95UVg4uDh4WFhYWHg4uDi4KPg5GFkYWTiJOLlIuTjpGRkZGOk4uUi5OIk4WRhZGDj4KLCEveFfutiwWIi4iJiImIiIqIi4gIi/thBYuIjIiOiI6JjomOiwj3rYsFj4uOjY2Njo6MjouOCIv3YQWLjoqOiI6JjYiNh4sI++c+FYeLiYmLhwiLSwWLho2Jj4uQi42Ni5AIi8sFi4+JjYaLCIX3BxX4LYsFmYuXhpWBloGQf4t9CIv7YQWLfYZ/gIGBgX+GfYsI/C2LBX2Lf5CBlYGVhpeLmQiL92EFi5mQl5WVlZWXkJmLCPcO+zsVi3OVdZx8CJmaBX6Wg5yLnYutp6esi5yLm4SWgAh0dMiLi8hzcwV9mnaUdItei2dmi14IDvgl9/EVd5/7EfsR+xH3EXd39xH7EfsR+xGfd/cR9xH3EfsRn5/7EfcRBQ74lfgVFXiCd4Z1iKGYnKCTo3Z/dYJzh3ifb5hti1GLXFyLUYuDjIKMhDSPPrVXy4J7hXmLeAiLZp5rp3h6jHuQfZKLi4uLi4qLWK9hu4GCiYKJgYuEi4WMhIyZYbJtuYpnb116WosIg4uCjIOMum3CecaL91aL9Pc1i/cfi4+LkIuPoJqdnZmhCA73t2sVi/ef0IuV2zyLi74Fi6KRm62LCLWLi9MFhIxyjW2LTothZotGCItQRouLO9CLi/uf3osFDveznxWLlIiShJGFkoSOgouCi4OIhYSFhYiEi4KLgo6EkYSRhZOIlIuUi5KOkZGSko6Si5QI3ssVi/etBYuPio6IjYmOiIyHiwj7YYsFiIuIioiIiYmKiIuHCIv7rQWLh4yIjYmOiI6KjosI92GLBY+LjoyNjo6NjI6Ljwg+9+cVi4+JjYeLCEuLBYaLiYmLh4uHjYiQiwjLiwWPi42Oi48I9weRFYv8LQWLfYZ/gYGBgX+GfYsI+2GLBX2Lf5CBlYGVhpeLmQiL+C0Fi5mQl5WVlpWWkJmLCPdhiwWZi5eGlYGVgZB/i30IDtlqFYv4lfgI+5EFDqL4dBX3R4uL/JX7R4uL+JUF97aLFfdHi4v8lftHi4v4lQUO5/fAFVpZ91mMivdXW1s53SgpBfeY+04VjPtXvLzdOe3uOd27uwUO90v4HhW8u/tWi4v7Vbu63Drt7QX3Z/vHFYr3VVtaOt0pKdw6XFsFDvhSyhWotJy+i8KL1WzOWLoIaWkFtWSlVYtOi2F/ZXZrCGiuBZeikqWLp4u6drZrqQhoaAWjdppti2mLfYd9hn8IO9mL90kyMfsg9yFvb/h4/HmoqEjOBfw494QVi/s984r3E/sOi/ca+zL3MgUO+I/QFYuLi4uLiwj7L/cv9y/3LwWLi4uLi4uNjYyNjI2NkYqRhpAIQtQFhpCFjIWJiYqJiomJi4uLi4uLCPsv+y/7L/cvBYuLi4uLi4mNiYyJjIWNhYqGhghCQgWGhoqFjYWMiYyJjYmLi4uLi4sI9y/7L/sv+y8Fi4uLi4uLiYmKiYqJiYWMhZCGCNRCBZCGkYqRjY2MjYyNjYuLi4uLiwj3L/cv9y/7LwWLi4uLi4uNiY2KjYqRiZGMkJAI1NQFkJCMkYmRio2KjYmNCA74lBT4lBWLDAoAAAMCAAGQAAUAAAFMAWYAAABHAUwBZgAAAPUAGQCEAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA5g0B4P/g/+AB4AAgAAAAAQAAAAAAAAAAAAAAIAAAAAAAAgAAAAMAAAAUAAMAAQAAABQABAA4AAAACgAIAAIAAgABACDmDf/9//8AAAAAACDmAP/9//8AAf/jGgQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAABAAAXLCAzXw889QALAgAAAAAAzy5xzgAAAADPLnHO////3wIBAeAAAAAIAAIAAAAAAAAAAQAAAeD/4AAAAgD/////AgEAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAABAAAAAgAAAAIAAAABsQAAAgD//wIAAG8CAAAAAgAAiwIAAGUCAABOAgAAFwIAAAoCAAAmAgAAAAIAAAEAAFAAABIAAAAAAA4ArgABAAAAAAABABYAAAABAAAAAAACAA4AYwABAAAAAAADABYALAABAAAAAAAEABYAcQABAAAAAAAFABYAFgABAAAAAAAGAAsAQgABAAAAAAAKACgAhwADAAEECQABABYAAAADAAEECQACAA4AYwADAAEECQADABYALAADAAEECQAEABYAcQADAAEECQAFABYAFgADAAEECQAGABYATQADAAEECQAKACgAhwBjAGUAbAB0AHIAYQBpAGMAbwBuAHMAVgBlAHIAcwBpAG8AbgAgADEALgAwAGMAZQBsAHQAcgBhAGkAYwBvAG4Ac2NlbHRyYWljb25zAGMAZQBsAHQAcgBhAGkAYwBvAG4AcwBSAGUAZwB1AGwAYQByAGMAZQBsAHQAcgBhAGkAYwBvAG4AcwBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4AAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==\"),',' url(\"data:font/truetype;base64,AAEAAAALAIAAAwAwT1MvMggi/MMAAAC8AAAAYGNtYXAaVcxkAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5ZtKQLWwAAAFwAAAJfGhlYWT/fCRYAAAK7AAAADZoaGVhA+MB8gAACyQAAAAkaG10eByyAfQAAAtIAAAASGxvY2EUzhFSAAALkAAAACZtYXhwABgAwAAAC7gAAAAgbmFtZWEQuioAAAvYAAABXXBvc3QAAwAAAAANOAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADmDQHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIOYN//3//wAAAAAAIOYA//3//wAB/+MaBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAACAAHAACMAADcUHgIXNy4DNTQ+AjMyHgIXBzM1By4DIyIOAhUADBcgFCoPGBEJHjRGKBQmIh8NSMBLESkuMhs1XUYowB02MSoSMA0gJSgWKEY0HggOFQ1IwEsRHBQKKEZdNQADAAAAEgIBAeAABQAcADMAABMVHwERBzcHHgMVFA4CBxc+AzU0LgInNwceAxUUDgIHFz4DNTQuAicAdIyM5icKEQsGBgsRCicNFhAICBAWDUwmERwTCwsTHBEmFSEYDQ0YIRUBVbsBhwHOih0nCBUYGw4OGxgVCCcNHSIlFBQlIh0NTCYQJyswGRkwKycQJhQvNTofHzo1LxQAAAABAAAALgGyAeAALQAAEyIOAgcnFTMnPgMzMh4CFRQOAiMiLgInIx4DMzI+AjU0LgIj2RoxLCYPLYo6DB0jKBUiPS4aGi49Ih41Kx4HMgcmOUcoLU86IyM6Ty0B4AwWHxQuijkQGhMKGy09IyI9LhoTIi8cJkEvHCM6Ty0tTzsiAAX//wBHAf8BegAoAFUAbACZAL0AAAEiDgIHDgMVFB4CFx4DMzI+Ajc+AzU0LgInLgMjJyEiDgIHDgMdARQeAhceAzMhMj4CNT4CND0BPAEuASc0LgIjBSIOAh0BFB4CMzI+Aj0BNC4CIychMh4CFx4DHQEUDgIHDgMjISIuAicuAz0BND4CNz4DMxcUHgIXNy4DNTQ+AjMyHgIXBzM1By4DIyIOAhUBywMGBgUCAgQCAgICBAICBQYGAwQGBgUCAgQCAQECBAICBQYGBED+5wEDAgIBAQEBAQEBAQEBAgIDAQEZAgICAwECAQECAQMCAgL+rQEDAQEBAQMBAgICAQECAgIGAZkGCQkJAwQGBAICBAYEAwkJCQb+ZwUKCQgEBAUEAgIEBQQECAkKBXoDCAoGDgUIBQMKEBcMBwwLCgQXPRgFDQ8QCREdFwwBAQICAwMCBQYGAwQGBgUCAgQCAQECBAICBQYGBAMGBgUCAwMCAlMBAQEBAQICAwHNAQMCAgEBAQEBAQEBAQECAgMBzQEDAgIBAQEBAU0BAQMBQAICAgEBAgICQAEDAQFzAgQFBAQICQoFzQUKCQgEBAUEAgIEBQQECAkKBc0FCgkIBAQFBAKnCREQDgUPBAsLDQcNFhEKAwUGBBc9GAYJBgMNFh4RAAAAAQBvAE8BkQFxAAsAAAEnBycHFwcXNxc3JwGRFH19FH19FH19FH0BXRR9fRR9fRR9fRR9AAEAAAARAgEBsgBpAAABDgMjPgM3DgMjLgMHJg4CFRwBHgEVLgMnDgMVFB4CFwYuAic0FDQUNRQeAhciBiIGJwYmBiYHHgM3DgMHJgYmBiceAxc+AzUwPAI1PgM3AgEHDw8QCAgPCwoDCBAREQkHEhMWCxYmHRABASA+NzATBAUEAgcMEgoGDQwLBQwXHxIDBwcHBAIFBQUDBRQZHxIOHiEjEwMGBwYDESYpKxZJb0wnCA4NDAYBgQMGAwQEDQ4SCAMJBgYGDgcGAQESGycVBAUHBQQCEB4mGQcMDg0IDRoWFAYBAwMFAgEBAQIBFCEdEQUCAgEBAgECAQ8bEg0BCxANBQEBAQIBAg0QDQYBATZXaTYFAgQBBwsPDgkAAQCL/+ABdQHgABwAAAURMzcjNTQ+AjsBNSIuAiMiDgIdASMVMxEzASNFCk8DCQ8NKgMLERQLFyYbD0VFUyABC1AzCQ4LBUgBAQEOGycaO1D+9QAABABl/+EBmAHgACgAVQBsAJkAACU0LgInLgMjIg4CBw4DFRQeAhceAzMyPgI3PgM1NxE0LgInLgIiKwEqAQ4BBw4CFBURHAEeARceAjI7AToBPgE3PgM1AzQuAisBIg4CFRQeAjsBMj4CNTcRFA4CBw4DKwEiLgInLgM1ETQ+Ajc+AzsBMh4CFx4DFQEfAQMDAwIFBgYDBAYFBgICBAIBAQIEAgIGBQYEAwYGBQIDAwMBUwEBAQEBAgIDAc0BAgMCAQEBAQEBAQECAwIBzQEDAgIBAQEBAU0BAQMBQAICAgEBAgICQAEDAQFzAgMGBAQICQoFzQUKCQgEAwYEAgIEBgMECAkKBc0FCgkIBAQGAwIUAwYGBQIDAwMBAQMDAwIFBgYDAwcFBQMCBAIBAQIEAgMFBQcDQAEZAgICAgEBAgEBAgEBAgICAv7nAQMCAgEBAgEBAgEBAgIDAQFTAQMBAQEBAwECAgIBAQICAgb+ZwUKCQgEBAYDAgIDBgQECAkKBQGZBQoJCAQEBgQBAQQGBAQICQoFAAAAAQBO/98BwgHgAAIAABcRBU4BdCECAf0AAgAX/98B7AHgAAQACQAAEzMTIxMhMwMjAxeyAbQBASG0AbIBAeD9/wIB/f8CAQAAAgAK/+AB9AHgAAYADQAAEwczJwcnBwUXNxc3JzdcMcUBMFJjAQQBMVJiUjABLDHEMVNjucQyU2RRMQAAAgAmAAUB3AG6AAYADQAAEzcHFTcXNxMnBycHFwe3McIwUWLTATBRYlEvAYoxAcAuUGH+zsAwUWFSLwAAAgAA/98CAQHgADMAOQAAJT4DNTQuAicHHgMVFA4CByc+AzU0LgInBx4DFRQOAgcnNQcnBwE3JyUVHwE1JwG+CxEMBgsVHxMiDxoRCgUIDAgjBAcFAwcOFAwjCQ4LBQEDAwJQWYwcAeQdQ/5caH+ePxAiJiYWGzUvLBAhECEoKxcPHxsbCyIKERQTDBAjHhsLIgkSFxcNBQsJCgRNtluOHf4cHETvqAJ5hZ8AAAEAAf/hAf8B3wCEAAAlOAMxJzc4AzE+AzU2NC4BLwEuAiIHIg4CBzgDMQcnOAMxLgMjJiIOAQ8BDgIUFxQeAhc4AzEXBzgDMQ4DFQYUHgEfAR4CMjcyPgI3OAMxNxc4AzEeAzMWMj4BPwE+AjQnNC4CJwH7m5sBAQEBAQECAkkCBAQFAgEBAgEBm5sBAQIBAQIFBAQCSQICAQEBAQEBm5sBAQEBAQECAkkCBAQFAgEBAgEBm5sBAQIBAQIFBAQCSQICAQEBAQEBRZubAQECAQECBQQEAkkCAgEBAQEBAZubAQEBAQEBAgJJAgQEBQIBAQIBAZubAQECAQECBQQEAkkCAgEBAQEBAZubAQEBAQEBAgJJAgQEBQIBAQIBAQAAAAEAAAABAAAoDgB8Xw889QALAgAAAAAAzy5xzgAAAADPLnHO////3wIBAeAAAAAIAAIAAAAAAAAAAQAAAeD/4AAAAgD/////AgEAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAABAAAAAgAAAAIAAAABsQAAAgD//wIAAG8CAAAAAgAAiwIAAGUCAABOAgAAFwIAAAoCAAAmAgAAAAIAAAEAAAAAAAoAFAAeAFIAoADgAdoB9AKCAqwDeAOEA5wDugPYBC4EvgAAAAEAAAASAL4ABQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAWAAAAAQAAAAAAAgAOAGMAAQAAAAAAAwAWACwAAQAAAAAABAAWAHEAAQAAAAAABQAWABYAAQAAAAAABgALAEIAAQAAAAAACgAoAIcAAwABBAkAAQAWAAAAAwABBAkAAgAOAGMAAwABBAkAAwAWACwAAwABBAkABAAWAHEAAwABBAkABQAWABYAAwABBAkABgAWAE0AAwABBAkACgAoAIcAYwBlAGwAdAByAGEAaQBjAG8AbgBzAFYAZQByAHMAaQBvAG4AIAAxAC4AMABjAGUAbAB0AHIAYQBpAGMAbwBuAHNjZWx0cmFpY29ucwBjAGUAbAB0AHIAYQBpAGMAbwBuAHMAUgBlAGcAdQBsAGEAcgBjAGUAbAB0AHIAYQBpAGMAbwBuAHMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\");',\" font-weight: normal;\",\" font-style: normal;\",\"}\",'[class^=\"celtra-icon-\"], [class*=\" celtra-icon-\"] {',' font-family: \"celtraicons\";',\" speak: none;\",\" font-style: normal;\",\" font-weight: normal;\",\" font-variant: normal;\",\" text-transform: none;\",\" line-height: 1;\",\" -webkit-font-smoothing: antialiased;\",\" -moz-osx-font-smoothing: grayscale;\",\"}\",'.celtra-icon-redo:before { content: \"\\\\e600\"; }','.celtra-icon-close:before { content: \"\\\\e60d\"; }','.celtra-icon-go-landscape:before { content: \"\\\\e603\"; }','.celtra-icon-twitter:before { content: \"\\\\e605\"; }','.celtra-icon-facebook:before { content: \"\\\\e606\"; }','.celtra-icon-phone:before { content: \"\\\\e607\"; }','.celtra-icon-play:before { content: \"\\\\e608\"; }','.celtra-icon-pause:before { content: \"\\\\e609\"; }','.celtra-icon-exit-full-screen:before { content: \"\\\\e60a\"; }','.celtra-icon-enter-full-screen:before { content: \"\\\\e60b\"; }','.celtra-icon-unmute:before { content: \"\\\\e60c\"; }','.celtra-icon-mute:before { content: \"\\\\e601\"; }','.celtra-icon-replay:before { content: \"\\\\e602\"; }','.celtra-icon-close2:before { content: \"\\\\e604\"; }',\".spinner .center-button {\",\" display: none;\",\"}\",\".web-audio .celtra-icon-mute, .web-audio .celtra-icon-unmute { color: red; }\",\"\"].join(\"\\n\");this.VideoPlayerCss=A}();;\n!function(){var e={supportsHtml5Video:!0,allowsInlineMediaPlayback:!0,mediaPlaybackRequiresUserAction:!1,isHighDensityDisplay:celtra.isHighDensityDisplay(),startMuted:!1,preload:!1,from:null,to:null,blobHash:null,customUrlParameters:{},hasAudio:!0,hasVideo:!0,forceMPEG1Video:!1,forceMPEG4Video:!1,thumbnailMode:!1},r=CeltraPlayerUtils.composeUrl,i=CeltraPlayerUtils.filterObject,t=(CeltraPlayerUtils.isTruthy,CeltraPlayerUtils.getUrl),o=/Safari\\/\\d+/.test(navigator.userAgent)&&celtra.ios(),a=/SamsungBrowser\\/\\d+/.test(navigator.userAgent)&&celtra.android(),n=o&&celtra.ios(\"10\",null)&&!celtra.chromeBased()||!o&&celtra.ios(\"10\",null)&&!(celtra.tablet()&&celtra.ios())||celtra.ios(\"10\",null)&&celtra.chromeBased(\"65\",null)||celtra.android()&&celtra.chromeBased(\"53\",null)&&!a||deviceInfo&&deviceInfo.os.android()&&deviceInfo.browser.chrome(\"53\",null),s=celtra.desktop()||n||CeltraPlayerUtils.canManipulateVolume();VideoEngineProvider={};var l=function(r,i){var t=merge(e,i);t.preload&&!deviceInfo.deviceType.desktop()&&(r=!1),t.audioCanAutoplay||r||deviceInfo.deviceType.desktop()||t.isMasterVideo||(t.startMuted=!0),\"1\"==t.campaignExplorer&&(t.startMuted=!0);var o=d(r,n,t);return\"jsVideo\"==o?merge(c(t),{inUserInitiatedThread:r,startMuted:t.startMuted}):merge(u(t,r),{inUserInitiatedThread:r,startMuted:t.startMuted})},d=function(e,r,i){if(i.forceMPEG1Video)return\"jsVideo\";if(i.forceMPEG4Video||r)return\"html5\";if(i.isTeaser)return\"jsVideo\";var t=!e&&i.mediaPlaybackRequiresUserAction||!i.allowsInlineMediaPlayback||!i.supportsHtml5Video;return!t||i.thumbnailMode||i.disableJsPlayer?\"html5\":\"jsVideo\"},c=function(e){var r=celtra.tablet()&&celtra.ios(),i=e.isTeaser?\"mpeg1TeaserVideo\":celtra.android(\"4.0\")&&celtra.webkit(\"534.30\")?\"mpeg1HQVideo\":r&&e.isHighDensityDisplay?\"mpeg1SHQVideo\":r?\"mpeg1HQVideo\":\"oggHQVideo\";r&&(\"mpeg1SHQVideo\"===i||\"mpeg1HQVideo\"===i)&&e.selectOGVPlayer&&(i=\"oggHQVideo\"),celtra.ios()&&creative&&\"CrossScreenMiniscroller\"==creative.constructor.name&&(i=\"mpeg1HQVideo\");var t=/(?:mpeg|ogg)(?=[^\\/?]+)/.exec(i),o=t&&\"ogg\"===t[0]?\"ogv\":\"mpeg1\";return{clazz:\"JsVideoEngine\",preset:i,engineType:o,file:\"video.avi\",doAVSync:e.hasAudio&&!e.isTeaser,isTeaser:e.isTeaser,preload:e.preload,options:{}}},u=function(e,r){var i=e.isMasterVideo,t=celtra.gecko()&&celtra.desktop()&&!e.isSnapchatFormat?{prefix:\"webm\",extension:\"webm\"}:{prefix:\"mpeg4\",extension:\"mp4\"},o=\"HQ\";i?o=celtra.desktop()&&!e.capStreamAtHQPlus?\"HD\":celtra.gecko()?\"HQ\":\"HQPlus\":e.isSnapchatFormat?o=\"HQPlus\":celtra.desktop()||e.isVideo360?o=celtra.gecko()?\"HQ\":\"HQPlus\":(celtra.tablet()||n)&&(o=\"HQ\");var a=t.prefix+o,l=!celtra.desktop()&&e.hasAudio&&!e.isTeaser&&!s&&V()&&!i,d=!celtra.desktop()&&e.isVideo360&&r&&!e.startMuted,c=e.isVideo360&&celtra.ios(null,\"10\");return{clazz:c?\"CrossOriginHtml5VideoEngine\":\"Html5VideoEngine\",preset:a,engineType:\"html5\",file:\"video.\"+t.extension,doAVSync:l||d,isTeaser:e.isTeaser,preload:e.preload,crossOrigin:!0,options:{}}},p=function(e,i){var o=(\"Html5VideoEngine\"==e.clazz||\"CrossOriginHtml5VideoEngine\"==e.clazz)&&(e.doAVSync||e.isTeaser);return r(t(\"cachedApi\"),\"videoStream\",i.blobHash,e.preset,e.file,f(e.preset,o,i))};AudioEngineProvider={};var m=function(e){if(!e.doAVSync)return null;var r=V()?\"WebAudioEngine\":\"Html5AudioEngine\";return{clazz:r,preload:e.preload}},g=function(e){var i={preset:\"aacAudio\",file:\"audio.m4v\"};return r(t(\"cachedApi\"),\"videoStream\",e.blobHash,i.preset,i.file,e?v(i.preset,e):{})},f=function(e,r,t){return i(merge({from:t.from,to:t.to,muted:r?\"1\":null,transform:\"VideoStream\",celtraCacheBust:P(e)},t.customUrlParameters))},v=function(e,r){return i(merge({from:r.from,to:r.to,transfom:\"VideoStream\",celtraCacheBust:P(e)},r.customUrlParameters))},V=function(){return\"undefined\"!=typeof AudioContext||\"undefined\"!=typeof webkitAudioContext},P=function(e){if(\"undefined\"!=typeof creative){var r=creative.videoStreamAlgoVersions[e];return creative.version+(r?\"-\"+r:\"\")}return null};VideoEngineProvider.createVideoEngineSpec=l,VideoEngineProvider.createVideoUrl=p,window.VideoEngineProvider=VideoEngineProvider,AudioEngineProvider.createAudioEngineSpec=m,AudioEngineProvider.createAudioUrl=g,window.AudioEngineProvider=AudioEngineProvider}();;\n!function(e){var t=function(e,t,n,s,o){this._containerEl=e,this._opts=merge({},i,o),this._videoEngine=null,this._videoEngineSpecProvider=t,this.isUserGazing=s,this._doc=e.ownerDocument,this._win=this._doc.defaultView,this._initialized=!1,this._firstPlay=!0,this.silentPauseActive=!1,this._engineType=null,this._videoPreset=null,this._muted=!0,n&&(this._controlsController=n(this,this._opts),this._controlsController&&this._controlsController.on(\"userInteraction\",this.emit.bind(this,\"userInteraction\"))),this._aspectRatio=this._opts.videoWidth/this._opts.videoHeight,this.isFullScreen=!this.playsInline(),this.isDesktop=this._opts.isDesktop,this.anchoringPoint=this._opts.anchoringPoint,this.buffered=0,this._state=null,this._posterShown=!0,this._seeked=!1,this._repeated=0,this.playSucceeded=!1,this._playingEmitted=!1,this._firstRenderEmitted=!1,this._timeUpdateCounter=0,this._lastTimeUpdateEmitted=0,this.play=this.play.bind(this),this.silentPlay=this.silentPlay.bind(this),this.pause=this.pause.bind(this),this.silentPause=this.silentPause.bind(this),this.mute=this.mute.bind(this),this.unMute=this.unMute.bind(this),this.redraw=this.redraw.bind(this),this.enterFullScreen=this.enterFullScreen.bind(this),this.exitFullScreen=this.exitFullScreen.bind(this),this.destroy=this.destroy.bind(this),this._onFullscreenChange=this._onFullscreenChange.bind(this),this._init(),this.changeState(CeltraPlayerUtils.UNSTARTED),this._fullScreenAncestors=[]};extend(t.prototype,StatefulEventEmitter),Object.defineProperty(t.prototype,\"paused\",{get:function(){return this._videoEngine&&this._videoEngine.paused}}),Object.defineProperty(t.prototype,\"componentName\",{get:function(){return this._opts.componentName}}),Object.defineProperty(t.prototype,\"duration\",{get:function(){return this.serverReportedDuration?this.serverReportedDuration:this._videoEngine&&this._videoEngine.duration||0}}),Object.defineProperty(t.prototype,\"serverReportedDuration\",{get:function(){return this._opts.duration}}),Object.defineProperty(t.prototype,\"currentTime\",{get:function(){return this._videoEngine&&this._videoEngine.getCurrentTime()||0},set:function(e){this._videoEngine&&this._videoEngine.setCurrentTime(e)}}),Object.defineProperty(t.prototype,\"reportsSeeking\",{get:function(){return!(!this._videoEngine||!this._videoEngine.reportsSeeking)}}),Object.defineProperty(t.prototype,\"muted\",{get:function(){return this._muted}}),Object.defineProperty(t.prototype,\"fullscreen\",{get:function(){return this.isFullScreen}}),Object.defineProperty(t.prototype,\"engineType\",{get:function(){return this._engineType}}),Object.defineProperty(t.prototype,\"videoPreset\",{get:function(){return this._videoPreset}}),Object.defineProperty(t.prototype,\"engineInitialized\",{get:function(){return this._initialized}}),Object.defineProperty(t.prototype,\"ended\",{get:function(){return this.isState(CeltraPlayerUtils.ENDED)}});var i={canShowSpinner:!0,closeFSOnEnd:!1,fitting:\"fit\",fullscreenMode:\"both\",pauseOnEnd:!1,playFrom:null,playTo:null,poster:\"data:image/gif;base64,\"+CeltraPlayerUtils.EMPTY_PIXEL,repeatTimes:0,videoWidth:160,videoHeight:100},n={loadedmetadata:\"onLoadedMetaData\",durationchange:\"onDurationChange\",progress:\"onProgress\",timeupdate:[\"onTimeUpdate\",\"onTimeUpdateRepeat\"],canplay:\"onCanPlay\",play:\"onPlay\",playing:\"onPlaying\",pause:\"onPause\",autoplayrejected:\"onAutoplayRejected\",forcemuted:\"onForceMuted\",ended:\"onEnded\",buffering:\"onBuffering\",endbuffering:\"onEndBuffering\",muted:\"onMuted\",unmuted:\"onUnMuted\",seeking:\"onSeeking\",seeked:\"onSeeked\",exitfullscreen:\"onExitFullScreen\",webkitendfullscreen:\"onExitFullScreen\",error:\"onError\",canunmute:\"onCanUnMute\",custominfo:\"onCustomInfo\",playersourceloading:\"onPlayerSourceLoading\",volumechange:\"onVolumeChange\"};t.DOM=['\"],t.prototype._init=function(){if(CeltraPlayerUtils.createDom(this._doc,t.DOM,this._opts,CeltraPlayerUtils.xBindFactory(this)),CeltraPlayerUtils.insertStyleTag(\"celtra-video-player-style\",VideoPlayerCss,this._doc),this._controlsController&&(this._controlsEl=this._controlsController.render(this._doc),this._controlsWrapperEl.appendChild(this._controlsEl)),this._containerEl.appendChild(this._wrapperEl),this._posterShow(),this._controlsController&&this._controlsController.adjustSizes(this._containerEl.clientHeight),this._opts.preload){var e=this.createSpecs(!1,this._opts.startMuted);this.initialize(e)}this.dtCanFullscreen=this.isDesktop&&this._toggleDesktopFSStateHandlers(\"add\")},t.prototype.setDimensions=function(e,t){this.width=e,this.height=t,this.redraw(),this.emit(\"rendered\")},t.prototype.getVideoElement=function(){return this._videoEngine},t.prototype.getControlsElement=function(){return this._controlsEl},t.prototype.getWrapperElement=function(){return this._wrapperEl},t.prototype._posterHide=function(){this._posterShown&&(this._posterShown=!1,this._posterEl.style.display=\"none\")},t.prototype._posterShow=function(){this._posterShown||(this._posterShown=!0,this._posterEl.style.display=\"\")},extend(t.prototype,{onLoadedMetaData:function(){this.redraw(),this.emit(\"canunmute\")},onCanPlay:function(){this.emit(\"canplay\")},onDurationChange:function(){this.emit(\"durationchange\")},onBuffering:function(){this.changeState(CeltraPlayerUtils.BUFFERING),this.emit(\"buffering\")},onEndBuffering:function(){this.emit(\"endbuffering\")},onPlayerSourceLoading:function(e){(this._opts.autoplay||e)&&this.emit(\"playersourceloading\")},onMuted:function(){this._muted=!0,this.emit(\"muted\")},onUnMuted:function(){this._muted=!1,this.emit(\"unmuted\")},onVolumeChange:function(e){this._muted=0==e,this.emit(this._muted?\"muted\":\"unmuted\"),this.emit(\"volumechange\",e)},onProgress:function(){this.buffered=\"object\"==typeof this._videoEngine.buffered&&this._videoEngine.buffered.length>0?this._videoEngine.buffered.end(0):this._videoEngine.buffered,this.emit(\"progress\",this.buffered/(this.duration||1))},onTimeUpdate:function(){!this._playingEmitted&&this._timeUpdateCounter>2&&this.buffered>0&&(this._playingEmitted=!0,this.onEndBuffering(),this.changeState(CeltraPlayerUtils.PLAYING),this.emit(\"playing\")),this._timeUpdateCounter+=1;var e=Date.now();this._timeUpdateCounter>3&&e-this._lastTimeUpdateEmitted>70&&(this._lastTimeUpdateEmitted=e,this._posterHide(),this._firstRenderEmitted||(this.emit(\"firstRender\"),this._firstRenderEmitted=!0),this.emit(\"timeupdate\",this._videoEngine.getCurrentTime()))},onTimeUpdateRepeat:function(e){this._opts.playTo&&e>=this._opts.playTo&&(this._hasToBeRepeated()?this._doRepeat():(this.pause(),this._doEnd()))},onPlay:function(){this.emit(\"play\")},onPlaying:function(){this.emit(\"playing\"),this.changeState(CeltraPlayerUtils.PLAYING),this.playSucceeded=!0,this.redraw()},onPause:function(){this.changeState(CeltraPlayerUtils.PAUSED),this.emit(\"pause\")},onAutoplayRejected:function(){this.emit(\"autoplayrejected\")},onForceMuted:function(){this.emit(\"forcemuted\")},onExitFullScreen:function(){this.exitFullScreen()},onEnded:function(){this._playingEmitted=!1,this._hasToBeRepeated()?this._doRepeat():this._doEnd()},getContainerDimensions:function(){if(this.isFullScreen){var e=this.dtCanFullscreen?this._wrapperEl:this._wrapperEl.parentNode;return{width:e.clientWidth,height:e.clientHeight}}return{width:this.width,height:this.height}},redraw:function(){var e=\"fit\"!==this._opts.fitting,t=this._aspectRatio,i=this.getContainerDimensions(),n=CeltraPlayerUtils.fitComponent(100*t,100,i.width,i.height,e);switch(this.anchoringPoint){case\"top\":n.marginVertical=0;break;case\"bottom\":n.marginVertical=Math.ceil(i.height-n.height)}var s=function(e){e.width=n.width+\"px\",e.height=n.height+\"px\",e.minHeight=n.height+\"px\",e.left=n.marginHorizontal+\"px\",e.top=n.marginVertical+\"px\"},o=function(e){e.width=i.width+\"px\",e.height=i.height+\"px\",e.minHeight=i.height+\"px\",e.left=0,e.top=0};e?(s(this._engineContainerEl.style),s(this._posterEl.style),o(this._controlsWrapperEl.style)):(s(this._engineContainerEl.style),s(this._posterEl.style),s(this._controlsWrapperEl.style))},onSeeking:function(){this.emit(\"seeking\")},onSeeked:function(){if(this._seeked){switch(this._seeked=!1,this._stateBeforeSeek){case CeltraPlayerUtils.PLAYING:this.play();break;case CeltraPlayerUtils.PAUSED:this.silentPause()}this._stateBeforeSeek=void 0}this.emit(\"seeked\")},onError:function(){this.emit(\"error\")},onCanUnMute:function(){this.emit(\"canunmute\")},onCustomInfo:function(e){this.emit(\"custominfo\",e)}}),extend(t.prototype,{getState:function(){return this._state},mute:function(){this._videoEngine&&\"function\"==typeof this._videoEngine.mute&&this._videoEngine.mute(),this.onMuted()},unMute:function(){this._videoEngine&&\"function\"==typeof this._videoEngine.unMute&&this._videoEngine.unMute(),this.onUnMuted()},silentPlay:function(){this._videoEngine.play()},createSpecs:function(e,t){var i=this._videoEngineSpecProvider(e,t);i=merge(i,{options:this._opts});var n=AudioEngineProvider.createAudioEngineSpec(i),s=i.videoUrl?i.videoUrl:VideoEngineProvider.createVideoUrl(i,this._opts.videoStream),o=n?AudioEngineProvider.createAudioUrl(this._opts.videoStream):null;return{videoEngineSpec:i,videoUrl:s,audioEngineSpec:n,audioUrl:o}},initialize:function(e){this._createEngines(e),CeltraPlayerUtils.isNode(this._engineEl)&&!this._engineEl.parentNode&&this._engineContainerEl.appendChild(this._engineEl),e.videoEngineSpec.options.videoElement&&(this._wrapperEl.style.background=\"transparent\"),CeltraPlayerUtils.attachHandlers(this,this._videoEngine,n),void 0!==e.videoEngineSpec.startMuted&&(e.videoEngineSpec.startMuted?this.mute():this.unMute()),this._initialized=!0},play:function(e){return null==this._videoEngine?void Logger(\"VideoPlayer\").log(\"Video not initialized!\"):(this.isState(CeltraPlayerUtils.UNSTARTED,CeltraPlayerUtils.ENDED)&&this.changeState(CeltraPlayerUtils.BUFFERING),this._firstPlay&&!e&&this.unMute(),this._firstPlay=!1,this._videoEngine.play(),void this.emit(\"userplayed\"))},_createEngines:function(e){if(null===this._videoEngine){if(this._engineType=e.videoEngineSpec.engineType,this._videoPreset=e.videoEngineSpec.preset,\"JsVideoEngine\"==e.videoEngineSpec.clazz?this._videoEngine=new JsVideoEngine(e.videoUrl,this._engineType,e.videoEngineSpec):\"Html5VideoEngine\"==e.videoEngineSpec.clazz&&(this._videoEngine=Html5VideoEngine(e.videoUrl,e.videoEngineSpec)),null!==e.audioEngineSpec){var t=null,i=null;\"WebAudioEngine\"==e.audioEngineSpec.clazz?(t=WebAudioEngine(e.audioUrl,e.audioEngineSpec.preload),i=Object.create(AVSyncWebAudio).init(this,t,e.videoEngineSpec.startMuted)):\"Html5AudioEngine\"==e.audioEngineSpec.clazz&&(t=Html5AudioEngine(e.audioUrl,e.audioEngineSpec.preload),i=Object.create(AVSyncAudio).init(this,t,e.videoEngineSpec.startMuted))}this._engineEl=this._videoEngine.render(this._doc,{playsInline:this.playsInline()})}},silentPause:function(){this._videoEngine.pause()},pause:function(){this._videoEngine&&this._videoEngine.pause(),this.emit(\"userpaused\"),this._playingEmitted=!1},close:function(){this.playsInline()?this.exitFullScreen():this.emit(\"close\")},replay:function(){this.emit(\"replayed\"),this.setCurrentTime(0),this._playingEmitted=!1,this.play()},reset:function(){this._videoEngine.pause(),this._videoEngine.reset(),this._posterShow(),this._controlsController&&this._controlsController.reset(),this._timeUpdateCounter=0,this._playingEmitted=!1},enterFullScreen:function(){if(this._videoEngine){if(this._containerElzIndex=this._containerEl.style.zIndex,this.dtCanFullscreen){var e=this._wrapperEl,t=(e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen).bind(e);t()}else{this.isFullScreen=!0;var i=this._wrapperEl;for(!this.isState(CeltraPlayerUtils.PAUSED);i&&!i.getAttribute(\"class\").includes(\"celtra-base-creative-unit\");)i=i.parentNode;i.insertBefore(this._wrapperEl,i.firstChild),this._wrapperEl.style.zIndex=CeltraPlayerUtils.ZINDEX_MAX,this.redraw(),this.silentPauseActive=!0,defer(function(){this.silentPauseActive=!1}.bind(this),500),this._initialized&&this._videoEngine.pause()}this._initialized&&this._videoEngine.play(),this.emit(\"enterfullscreen\")}},exitFullScreen:function(){if(this.dtCanFullscreen){var e=document,t=(e.exitFullscreen||e.webkitExitFullscreen||e.mozCancelFullScreen||e.msExitFullscreen).bind(e);t()}else{this.isFullScreen=!1;{!this.isState(CeltraPlayerUtils.PAUSED,CeltraPlayerUtils.ENDED)}this._wrapperEl.style.zIndex=\"\",this._containerEl.style.zIndex=this._containerElzIndex,this._containerEl.appendChild(this._wrapperEl),this.silentPauseActive=!0,defer(function(){this.silentPauseActive=!1}.bind(this),500),this.once(\"pause\",CeltraPlayerUtils.validFor(function(){this.play(),this._muted||defer(this.unMute.bind(this),100)}.bind(this),500))}this.redraw(),this.emit(\"exitfullscreen\")},hide:function(){this._wrapperEl&&(this._wrapperEl.style.display=\"none\")},show:function(){this._wrapperEl&&(this._wrapperEl.style.display=\"\")},destroy:function(){this._videoEngine&&(this._videoEngine.pause(),this._videoEngine.destroy(),this._controlsController&&this._controlsController.destroy());var e=function(){CeltraPlayerUtils&&this._wrapperEl&&CeltraPlayerUtils.removeElements(this._wrapperEl),this._toggleDesktopFSStateHandlers(\"remove\"),this._wrapperEl=null}.bind(this);\"undefined\"!=typeof TouchEventSimulator?defer(e,100):e(),this.emit(\"destroy\")},getDuration:function(){return this.duration},getCurrentTime:function(){return this._videoEngine?this._videoEngine.getCurrentTime():null},setCurrentTime:function(e){this._videoEngine&&this._videoEngine.setCurrentTime(e)},seekTo:function(e){this.emit(\"seekto\",e),this._seeked||(this._stateBeforeSeek=this.getState(),this.getState()===CeltraPlayerUtils.PLAYING&&this.pause()),this._seeked=!0,this._videoEngine.seekToRatio(e)}}),t.prototype._hasToBeRepeated=function(){return this._repeatede?this._videoControls.addClass(\"spinner\",\"video-player-spinner-small\"):this._videoControls.addClass(\"spinner\",\"video-player-spinner-big\")},reset:function(){this._controlsInitiallyDisabled=!1,this._videoControls.hide(\"pause\",\"replay\"),this._videoControls.show(\"play\"),this._spinnerHide(),defer(function(){this._videoControls.hide(\"duringPlaySet\")}.bind(this),500)},destroy:function(){this._videoControls.destroy()},handleUserInteraction:function(e,i){switch(e){case\"vidWrapper\":this._changeVisibilityTimed(!0),this._makeControlsDisapear();break;case\"wrapper\":if(this._videoPlayer._spinnerShown)return void this._changeVisibilityTimed(!0);!this.isVisible||this._videoPlayer.ended||this._spinnerShown||i?this._changeVisibilityTimed(!0):this._videoPlayer.paused?(this._videoPlayer.play(),this.emit(\"userInteraction\",{isUserEngaged:!0})):(this._videoPlayer.pause(),this.emit(\"userInteraction\")),this._makeControlsDisapear();break;case\"mute\":this._videoPlayer.mute(),this._videoControls.pendingStateOn(\"mute\"),this._makeControlsDisapear(),this.emit(\"userInteraction\");break;case\"unMute\":this._videoPlayer.unMute(),this._videoControls.pendingStateOn(\"unMute\"),this._makeControlsDisapear(),this.emit(\"userInteraction\",{isUserEngaged:!0});break;case\"enterFullScreen\":this._videoPlayer.enterFullScreen(),this._makeControlsDisapear(),this.emit(\"userInteraction\",{isUserEngaged:!0});break;case\"exitFullScreen\":this._videoPlayer.exitFullScreen(),this._makeControlsDisapear(),this.emit(\"userInteraction\");break;case\"pause\":if(this._controlsInitiallyDisabled)return;this._videoPlayer.pause(),this.emit(\"userInteraction\");break;case\"play\":if(this._controlsInitiallyDisabled)return;this.emit(\"userInteraction\",{isUserEngaged:!0}),this.emit(\"playButtonPressed\");break;case\"replay\":this._changeVisibilityTimed(!1),this._videoPlayer.replay(),this.emit(\"userInteraction\",{isUserEngaged:!0});break;case\"close\":this._videoPlayer.close(),this.emit(\"userInteraction\")}},onVPPlayerSourceLoading:function(){this._spinnerShow()},onVPCanUnmute:function(){},onVPMuted:function(){this._isMuted=!0,this._videoControls.hide(\"mute\"),this._videoControls.show(\"unMute\"),this._videoControls.pendingStateOff(\"unMute\"),this._videoControls.pendingStateOff(\"mute\")},onVPUnmuted:function(){this._isMuted=!1,this._videoControls.hide(\"unMute\"),this._videoControls.show(\"mute\"),this._videoControls.pendingStateOff(\"unMute\"),this._videoControls.pendingStateOff(\"mute\")},onVPPlay:function(){this._videoControls.hideAndShowWrapper(),this._isFirstPlay&&(this._isFirstPlay=!1,this._controlsInitiallyDisabled=!0,this._spinnerShow()),this._changeVisibility(!0),this._videoControls.hide(\"play\")},onVPPlaying:function(){var e=this._opts.autohideTime;this._videoControls.hide(\"play\",\"pause\",\"replay\"),e&&this._changeVisibilityTimed(!1,1e3*e)},onVPPause:function(){this._changeVisibilityTimed(!0),this._spinnerShown||this._videoControls.show(\"play\")},onVPAutoplayRejected:function(){this.reset()},onVPForceMuted:function(){this.onVPMuted()},onVPBuffering:function(){this._spinnerShow(),this._videoControls.hide(\"play\")},onVPEnded:function(){this._changeVisibilityTimed(!1),this._videoControls.hide(\"play\",\"pause\"),this._opts.pauseOnEnd||this._videoControls.show(\"replay\")},onVPProgress:function(e){this._progressRatio=e,this._videoControls.setProgressBarWidth(e)},onVPTimeupdate:function(e){var i=this._videoPlayer.duration,t=i&&e/i||0;this._videoControls.setTimeBarWidth(t),this._controlsInitiallyDisabled&&(this._controlsInitiallyDisabled=!1),this._videoPlayer.paused||(this._videoControls.hide(\"play\"),this._videoControls.hide(\"pause\"),this._videoControls.hide(\"replay\")),this._spinnerHide()},onVPEnterFullscreen:function(){this._videoControls.hideAndShowWrapper(),this._videoControls.hide(\"enterFullScreen\"),this._videoControls.show(\"exitFullScreen\"),this._makeControlsDisapear()},onVPOrientationChange:function(){this._opts.fullscreenLandscapeButtonsHack&&this._videoControls.orientationChange(function(e){this._elements.close.style.bottom=this._elements.exitFullScreen.style.bottom=this._elements.mute.style.bottom=this._elements.unMute.style.bottom=e===CeltraPlayerUtils.LANDSCAPE&&this._videoPlayer.isFullScreen?\"26px\":\"\"})},onVPExitFullscreen:function(){this._videoControls.hideAndShowWrapper(),this._videoControls.hide(\"exitFullScreen\"),this._videoControls.show(\"enterFullScreen\"),this._makeControlsDisapear()},onVPSeekto:function(e){this._videoControls.setTimeBarWidth(e)},_changeVisibility:function(e){return this._opts.controlsHidden?(this.isVisible=!0,void this._videoControls.hide(\"duringPlaySet\")):void(e?(this._videoControls.show(\"duringPlaySet\"),this._videoPlayer.isDesktop&&this._cursorHidden&&(this._videoControls.showCursor(this._videoPlayer.getWrapperElement()),this._cursorHidden=!1),this.isVisible=!0):(this._videoControls.hide(\"duringPlaySet\"),this._videoPlayer.isDesktop&&this._videoPlayer.isFullScreen&&(this._videoControls.hideCursor(this._videoPlayer.getWrapperElement()),this._cursorHidden=!0),this.isVisible=!1,this._videoPlayer.isDesktop&&(this._videoControls.hasMouseMoved=!0)))},_changeVisibilityTimed:function(e,i){clearTimeout(this._changeVisibilityTimeout),i?this._changeVisibilityTimeout=setTimeout(this._changeVisibility.bind(this,e),i):this._changeVisibility(e)},_makeControlsDisapear:function(){var e=this._opts.autohideTime;e&&this._changeVisibilityTimed(!1,1e3*e)},_spinnerHide:function(){this._spinnerShown&&(this._spinnerShown=!1,this._videoControls.hide(\"spinner\"))},_spinnerShow:function(){!this._spinnerShown&&this._opts.canShowSpinner&&(this._spinnerShown=!0,defer(function(){this._spinnerShown&&(this._videoControls.hide(\"play\"),this._videoControls.show(\"spinner\"))}.bind(this),300))}}),this.BasicVideoControlsController=e}();;\n!function(){var t=\"50px\",e=function(t){this._container=null,this._userInteractionHandler=t,this.onTapHandler=CeltraPlayerUtils.deduplicate(this.onTapHandler,400,this),this.hasMouseMoved=!1};extend(e.prototype,EventEmitter),e.TEMPLATE=[' touchable\" data-bind=\"wrapper\">','
','
','
','
','
','
','
\",\"
\",'
\",\"
\"],extend(e.prototype,{render:function(i,n){var o=n.isMasterVideo?[]:[\"play\",\"replay\"];if(!this._container){var a={};CeltraPlayerUtils.createDom(i,e.TEMPLATE,{desktop:windows(\"10\")?\"video-controls-desktop ie-click-event\":desktop()?\"video-controls-desktop\":\"\"},this._getWrapper(a)),this._container=a.wrapper,n.isMasterVideo&&this.hide(\"outOfPlaySet\"),this._container.querySelector(\"[data-bind=progressBar]\").style.backgroundColor=n.progressbarColour,this._container.querySelector(\"[data-bind=timeBar]\").style.backgroundColor=n.progressbarColour;var r=\"undefined\"!=typeof creative?creative:window.creative;if(r){var s=\"MRAIDAdapter\"===r.adapter.constructor.name;\"crop\"===n.fitting&&s&&(this._container.querySelector(\"[data-bind=exitFullScreen]\").style.top=t)}o.forEach(function(t){if(n[t]){var e=n[t],i=this._getElements(t)[0];removeClass(i,\"center-button\"),addClass(i,\"custom-button\"),i.innerHTML=''}}.bind(this)),this._container.addEventListener(\"tap\",this.onTapHandler)}return this._container},show:function(){CeltraPlayerUtils.show.apply(null,this._getElements.apply(this,arguments))},hide:function(){CeltraPlayerUtils.hide.apply(null,this._getElements.apply(this,arguments))},showCursor:function(t){CeltraPlayerUtils.showCursor([t])},hideCursor:function(t){CeltraPlayerUtils.hideCursor([t])},setProgressBarWidth:function(t){t=Math.min(t,1),this._container&&this._container.querySelector(\"[data-bind=progressBar]\")&&(this._container.querySelector(\"[data-bind=progressBar]\").style.width=100*t+\"%\")},setTimeBarWidth:function(t){t=Math.min(t,1),this._container&&this._container.querySelector(\"[data-bind=timeBar]\")&&(this._container.querySelector(\"[data-bind=timeBar]\").style.width=100*t+\"%\")},hideAndShowWrapper:function(){this.hide(\"wrapper\"),defer(function(){this.show(\"wrapper\")}.bind(this))},disableMuteUnmuteControls:function(){this._getElements(\"mute\")[0].innerHTML=\"\",this._getElements(\"unMute\")[0].innerHTML=\"\"},pendingStateOn:function(t){addClass(this._getElements(t)[0],\"video-controls-pending\")},pendingStateOff:function(t){this._container&&removeClass(this._getElements(t)[0],\"video-controls-pending\")},addClass:function(t,e){var i=this._getElements(t)[0];i&&addClass(i,e)},removeClass:function(t,e){var i=this._getElements(t)[0];i&&removeClass(i,e)},orientationChange:function(t){t()},onTapHandler:function(t){t.stopPropagation();var e=t.target.getAttribute(\"data-bind\");e&&this._userInteractionHandler(e)},setDTMouseMoveHandler:function(t){t.addEventListener(\"mousemove\",function(e){e.stopPropagation();var i=e.target,n=i!==t?i.getAttribute(\"data-bind\"):\"vidWrapper\";this.hasMouseMoved?this.hasMouseMoved=!1:(\"wrapper\"===n||\"vidWrapper\"===n)&&this._userInteractionHandler(n,!0)}.bind(this))},_getWrapper:function(t){return function(e){var i=e.getAttribute(\"data-bind\");i&&(t[i]=e)}},_getElements:function(){if(this._container){for(var t=[],e=null,i=0;i touchable\" data-bind=\"wrapper\">','','Powered by Celtra
','','
\",'
\",'
\",'
\",'
\",'
\",\"
\",\"\"],t.prototype.render=function(s,e){if(!this._container){this.elements={},CeltraPlayerUtils.createDom(s,t.TEMPLATE,{desktop:celtra.windows(\"10\")?\"video-controls-desktop ie-click-event\":celtra.desktop()?\"video-controls-desktop\":\"\"},this._getWrapper(this.elements)),this._container=this.elements.wrapper,e.enableVerticalVideoUIOffset&&addClass(this._container,\"vertical-UI-offset\"),e.radarBoxToEdge&&(addClass(this.elements.inner_top_left_box,\"align_to_left\"),addClass(this.elements.top_left_box,\"disable\")),e.soundBoxToEdge&&(addClass(this.elements.inner_bottom_right_box,\"align_to_right\"),addClass(this.elements.bottom_right_box,\"disable\")),\"dark\"===e.uiTheme&&addClass(this._container,\"dark-theme\");var i=[\"custom_play\",\"custom_replay\"];i.forEach(function(t){if(e.customIcons&&e.customIcons[t]){var s=e.customIcons[t],i=this._getElements(t)[0];addClass(i,\"custom-button\"),i.innerHTML=''}}.bind(this)),this._container.addEventListener(\"tap\",this.onTapHandler)}return this._container},t.prototype.setRadarInitialLongitude=function(t){this.elements.radar_longitude.style.transform=\"translate3d(-50%, -50%, 0) rotate(\"+(90+t)+\"deg)\"},t.prototype.setRadarOrientation=function(t){this.elements.radar_orientation.style.transform=\"translate3d(-50%, -50%, 0) rotate(\"+t+\"deg)\"},t.prototype._removeAnimationClasses=function(){removeClass(this.elements.play,\"hide\"),removeClass(this.elements.spinner,\"hide\")},t.prototype.switchToInFullscreenMode=function(){this._removeAnimationClasses(),removeClass(this.elements.topright_arrow,\"toprightANIMA\"),removeClass(this.elements.botleft_arrow,\"botleftANIMA\"),addClass(this.elements.topright_arrow,\"toprightANIMAout\"),addClass(this.elements.botleft_arrow,\"botleftANIMAout\")},t.prototype.switchToInlineMode=function(){this._removeAnimationClasses(),removeClass(this.elements.topright_arrow,\"toprightANIMAout\"),removeClass(this.elements.botleft_arrow,\"botleftANIMAout\"),addClass(this.elements.topright_arrow,\"toprightANIMA\"),addClass(this.elements.botleft_arrow,\"botleftANIMA\")},t.prototype.showMuteButton=function(){removeClass(this.elements.mute_icon,\"switch_on\"),removeClass(this.elements.mute_icon,\"switch_off\"),removeClass(this.elements.unmute_icon,\"switch_on\"),removeClass(this.elements.unmute_icon,\"switch_off\"),addClass(this.elements.mute_icon,\"switch_on\"),addClass(this.elements.unmute_icon,\"switch_off\")},t.prototype.showUnmuteButton=function(){removeClass(this.elements.mute_icon,\"switch_on\"),removeClass(this.elements.mute_icon,\"switch_off\"),removeClass(this.elements.unmute_icon,\"switch_on\"),removeClass(this.elements.unmute_icon,\"switch_off\"),addClass(this.elements.mute_icon,\"switch_off\"),addClass(this.elements.unmute_icon,\"switch_on\")},t.prototype.startCountdown=function(t,s){this._countdown||(this._countdown=CountdownProvider.create(!0,this.elements.countdown,t,\"countdown\",{countdownType:\"normal\",bgCircleColor:\"dark\"===s?\"rgba(255,255,255,1)\":\"rgba(0,0,0,.4)\",barColor:\"dark\"===s?\"rgba(0,0,0,.4)\":\"rgba(255,255,255,1)\"}),this._countdown.show())},t.prototype.updateCountdown=function(t){this._countdown&&this._countdown.setCurrentTime(t)},t.prototype.show=function(){for(var t,s=this._getElements.apply(this,arguments),e=0;e=this.fileLength-1||this._getChunkLength(this._requestNumber)>0&&(this._loading=!0,this._requestBytes(this._getChunkLength(this._requestNumber),this._onLoad),this._requestNumber++)},e.prototype._requestBytes=function(e){var t=this.nextFrom,n=this.fileLength?Math.min(this.nextFrom+e,this.fileLength):this.nextFrom+e,i=this._xhr=new XMLHttpRequest;this.corsLengthHack&&(this.from=t,this.to=n),i.open(\"GET\",this._src,!0),this.skipInternalCacheHack&&i.setRequestHeader(\"Cache-control\",\"no-cache\"),i.setRequestHeader(\"Range\",\"bytes=\"+(t||0)+\"-\"+(n||\"\")),i.responseType=\"arraybuffer\",i.onload=this._onLoad.bind(this),this.nextFrom=n,i.send(),this._lastRequestTime=Date.now()},e.prototype._onLoad=function(e){this._loading=!1,this._xhr=null;var t=e.target;if(t.status>=200&&t.status<400){var n=this._getContentRangeParts(t),i=t.response;this.fileLength=n.fileLength,this.emit(\"data\",{data:new Uint8Array(i,0,Math.min(n.receivedTo,n.fileLength)-n.receivedFrom),receivedFrom:n.receivedFrom,receivedTo:n.receivedTo,fileLength:n.fileLength}),n.receivedTo>=n.fileLength-1?this.emit(\"loadend\"):this.load()}else this.emit(\"error\",t.status)},e.prototype._getContentRangeParts=function(e){if(this.corsLengthHack)return contentLength=e.getResponseHeader(\"Content-Type\").split(\";\")[1],{receivedFrom:this.from,receivedTo:this.to,fileLength:parseInt(contentLength,10)};var t=e.getResponseHeader(\"Content-Range\"),n=/(\\d+)-(\\d+)\\/(\\d+)$/.exec(t);return{receivedFrom:parseInt(n[1],10),receivedTo:parseInt(n[2],10),fileLength:parseInt(n[3],10)}},e.prototype.destroy=function(){clearTimeout(this._requestByteHandle),this._xhr&&this._xhr.abort(),this._xhr=null},window.NetStream=e}();;\n!function(){var t=function(t,e){this._opts=e||{},this.buffer={writePos:0,bytes:null},this.fileLength=0,this.receivedTo=0,this.doneBuffering=!1,this.onLoad=this.onLoad.bind(this),t&&(t.on(\"data\",this.onLoad),t.on(\"loadend\",function(){this._opts.onLoadend&&this._opts.onLoadend(),this.doneBuffering=!0,this.emit(\"loadend\")}.bind(this)))};extend(t.prototype,EventEmitter),t.prototype.onLoad=function(t){if(this.fileLength=t.fileLength,this.receivedTo=t.receivedTo,!this.buffer.bytes){var e=new Uint8Array(t.fileLength);this.buffer.bytes=e.subarray(0),this.buffer.writePos=0}this.buffer.bytes.set(t.data,this.buffer.writePos),this.buffer.writePos+=t.data.byteLength,this.emit(\"data\",t)},t.prototype.getAllData=function(){this.receivedTo>0&&this.emit(\"data\",{data:this.buffer.bytes,fileLength:this.fileLength,receivedFrom:0,receivedTo:this.receivedTo})},window.Accumulator=t}();;\n!function(){function e(e,t,n){e.setAttribute(\"x-celtra-media\",\"\"),n.playsInline&&(e.setAttribute(\"webkit-playsinline\",\"\"),e.setAttribute(\"playsinline\",\"\"),n.startMuted&&(e.muted=!0)),n.crossOrigin&&(e.crossOrigin=\"anonymous\"),e.src=t,e.preload=n.preload?\"auto\":\"none\"}var t=function(t,n){var r={playsInline:!1,maxTimeupdatesPerSecond:15},i=merge({},r,n.options);i.startMuted=!!n.startMuted,i.crossOrigin=!!n.crossOrigin;var o=!1,u=i.videoElement,a=!!u,d=a?u:document.createElement(\"video\");e(d,t,i);var s={};extend(s,EventEmitter),s.startMuted=i.startMuted;for(var c=function(e){s.emit(e.type,e)}.bind(this),l=[\"loadedmetadata\",\"durationchange\",\"progress\",\"canplay\",\"play\",\"playing\",\"pause\",\"ended\",\"buffering\",\"endbuffering\",\"muted\",\"unmuted\",\"seeking\",\"seeked\",\"exitfullscreen\",\"webkitendfullscreen\",\"error\",\"canunmute\",\"custominfo\",\"playersourceloading\"],m=l.length-1;m>=0;m--)d.addEventListener(l[m],c);var f=d.volume,g=function(){f!==d.volume&&(f=d.volume,s.emit(\"volumechange\",f))},p=0,v=0,y=function(){var e=s.currentTime,t=v%Math.round(60/i.maxTimeupdatesPerSecond)===0;t&&s.isPlaying&e!==p&&(p=e,s.emit(\"timeupdate\",e)),v++};Ticker.frame(g),Ticker.frame(y),d.addEventListener(\"playing\",function k(){o=!0,d.muted=s.startMuted,d.removeEventListener(\"playing\",k)},!1),Object.defineProperties(s,{currentTime:{get:function(){return this.getCurrentTime()},set:function(e){this.setCurrentTime(e)}},reportsSeeking:{get:function(){return!!d.reportsSeeking}},buffered:{get:function(){return d.buffered}},duration:{get:function(){return d.duration}},muted:{get:function(){return d.muted},set:function(e){d.muted=e}},isPlaying:{get:function(){return!(!(this.getCurrentTime()>0)||d.paused||d.ended)}},paused:{get:function(){return d.paused}}}),a||(d.videoWidth=i.videoWidth,d.videoHeight=i.videoHeight),s.continuePlaying=function(){d.play()}.bind(this),s.render=function(){!a&&android(\"4.0\",\"4.2\")&&(d.style.height=\"auto\",d.style.minHeight=\"auto\");try{d.load()}catch(e){}return d};var h=d.play?d.play.bind(d):noop,b=d.pause?d.pause.bind(d):noop,E=!0,T=function(){var e=h();void 0!==e&&e[\"catch\"](function(e){s.emit(\"autoplayrejected\"),\"NotAllowedError\"===e.name?(Logger(\"Html5VideoEngine\").error(\"Video Engine - NotAllowedError : \",e),s.startMuted=!0,d.muted=!0,s.emit(\"forcemuted\"),E&&(E=!1,T())):\"AbortError\"===e.name&&Logger(\"Html5VideoEngine\").error(\"Video Engine - AbortError : \",e)})};return s.mute=function(){o?d.muted=!0:s.startMuted=!0},s.unMute=function(){o?d.muted=!1:s.startMuted=!1},s.setCurrentTime=function(e){s.isReady()&&(d.currentTime=e)},s.getCurrentTime=function(){return s.isReady()&&d.currentTime>0?d.currentTime:0},s.isReady=function(){return d&&0!==d.readyState},s.play=function(){celtra.webkit(\"534.30\")||celtra.webkit(\"537.36\")||fakeclick(function(){T()}.bind(this)),defer(function(){T()}.bind(this)),CeltraPlayerUtils.isNode(d)&&d.addEventListener(\"progress\",d.continuePlaying)},s.pause=function(){CeltraPlayerUtils.isNode(d)&&d.removeEventListener(\"progress\",d.continuePlaying,{},{}),b()},s.destroy=function(){b();for(var e=l.length-1;e>=0;e--)d.removeEventListener(l[e],c);a||CeltraPlayerUtils.removeElements(d),Ticker.removeFrame(g),Ticker.removeFrame(y)},s};this.Html5VideoEngine=t}();;\n!function(e){function t(e,t,s){return Object.create(i).init(e,t,!!s)}var i=Object.create(EventEmitter),s=window.AudioContext||window.webkitAudioContext,o=null,n=!1,u=!1;extend(i,{init:function(e,t,i){return this._sourceNode=null,this._buffer=null,this._bufferSilence=null,this._encodedBuffer=null,this._emitTimeUpdateInterval=null,this._sourceUrl=e,this._paused=!0,this._pausedAt=0,this._timeDiff=0,this._loadStatus=\"unstarted\",this.loop=!!i,t&&this.load(),this},load:function(){if(\"unstarted\"===this._loadStatus){this._loadStatus=\"pending\";var e=new XMLHttpRequest;e.open(\"GET\",this._sourceUrl,!0),e.responseType=\"arraybuffer\",e.onload=function(){this._encodedBuffer=e.response,o&&this._decodeAudioData()}.bind(this),e.send()}},unlock:function(){n||(this._iosHack(),this._createAudioContext(),this._createNodeAndPlayFrom(this._bufferSilence,0,this.loop))},playAudio:function(e){this._iosHack(),this._createAudioContext(),this.load();var e=null==e?this._pausedAt:e;this.pause(),this._timeDiff=o.currentTime-e,this._paused=!this._buffer,this._createNodeAndPlayFrom(this._buffer||this._bufferSilence,e,this.loop),this._emitTimeUpdate(),n||setTimeout(function(){if(this._sourceNode){var e=this._sourceNode.playbackState===this._sourceNode.PLAYING_STATE,t=this._sourceNode.playbackState===this._sourceNode.FINISHED_STATE,i=e||t;n=n||!!this._buffer&&i}}.bind(this),0)},pause:function(){clearInterval(this._emitTimeUpdateInterval),this._pausedAt=this.currentTime,this._paused=!0,this._clearSourceNode()},destroy:function(){this.pause(),\"function\"==typeof o.close&&o.close(),this._sourceNode=null,this._buffer=null,this._bufferSilence=null,this._encodedBuffer=null},_iosHack:function(){ios()&&!u&&(this._createAudioContext(),this._createNodeAndPlayFrom(this._bufferSilence,0,this.loop),\"function\"==typeof o.close&&(o.close(),o=null),this._createAudioContext(),u=!0)},_createAudioContext:function(){o||(o=new s,this._bufferSilence=o.createBuffer(1,1,o.sampleRate),this._encodedBuffer&&!this._buffer&&this._decodeAudioData())},_createNodeAndPlayFrom:function(e,t,i){this._clearSourceNode(),this._sourceNode=o.createBufferSource(),this._sourceNode.connect(o.destination),this._sourceNode.buffer=e,this._sourceNode.loop=i,\"function\"==typeof this._sourceNode.noteGrainOn?this._sourceNode.noteGrainOn(0,t,e.duration-t):\"function\"==typeof this._sourceNode.start?this._sourceNode.start(0,t):this._sourceNode.noteOn(0,t)},_clearSourceNode:function(){if(this._sourceNode){try{\"function\"==typeof this._sourceNode.stop?this._sourceNode.stop(0):this._sourceNode.noteOff(0)}catch(e){}this._sourceNode.disconnect(),this._sourceNode=null}},_emitTimeUpdate:function(){this.paused||this._buffer&&this.currentTime>=this._buffer.duration?clearInterval(this._emitTimeUpdateInterval):this._emitTimeUpdateInterval=setInterval(this.emit.bind(this,\"timeupdate\"),250)},_decodeAudioData:function(){o.decodeAudioData(this._encodedBuffer,function(e){this._buffer=e,this._loadStatus=\"loaded\",this.emit(\"canplay\"),this.emit(\"canplaythrough\")}.bind(this))}}),Object.defineProperties(i,{paused:{get:function(){return this._paused}},ended:{get:function(){return!1}},ready:{get:function(){return\"loaded\"===this._loadStatus}},playedBefore:{get:function(){return n}},currentTime:{get:function(){return this._paused?this._pausedAt:o.currentTime-this._timeDiff},set:function(e){this._pausedAt=e,\"loaded\"!==this._loadStatus||this._paused||(this.pause(),this.playAudio(e))}}}),e.WebAudioEngine=t}(this);;\n!function(){var e=.3,n=function(n,t){if(\"undefined\"==typeof Audio)return null;var r=new Audio;r.isUnlocked=!1,t?(r.preload=\"auto\",r.src=n,r.start=noop):(r.preload=\"none\",r.start=function(){r.src=n,r.start=noop}),r.ready=!1;var o=function(){r.ready=!0},i=function(){r.buffered/r.duration>e&&o()};return r.addEventListener(\"canplay\",o),r.addEventListener(\"canplaythrough\",o),r.addEventListener(\"progress\",i),r.unlock=noop,r.on=r.addEventListener,r.off=r.removeEventListener,r.playedBefore=!1,r.unlock=function(){this.isUnlocked||this.playedBefore||(fakeclick(function(){celtra.webkit(\"537.36\")&&r.play(),r.pause()}),this.isUnlocked=!0)},r.playFrom=function(e){r.start(),r.ready&&(fakeclick(function(){r.play()}),void 0!==e&&(r.currentTime=e,r.playedBefore=!0))},r.destroy=function(){this.pause(),this.src=null,r.removeEventListener(\"progress\",i),r.removeEventListener(\"canplay\",o),r.removeEventListener(\"canplaythrough\",o)},r.setAttribute(\"x-celtra-media\",\"\"),r};this.Html5AudioEngine=n}();;\n!function(){var e={netStreamOpts:{},preload:!1},t={loadmetadata:\"onLoadMetaData\",durationchange:\"onDurationChange\",progress:\"onProgress\",buffering:\"onBuffering\",endbuffering:\"onEndBuffering\",canplay:\"onCanPlay\",play:\"onPlay\",playing:\"onPlaying\",pause:\"onPause\",seeking:\"onSeeking\",seeked:\"onSeeked\",ended:\"onEnded\",custominfo:\"onCustomInfo\",timeupdate:\"onTimeUpdate\"},i=function(t,i,n){this._opts=merge(e,n.options),this._opts._isTeaser=n.isTeaser||!1,this._srcProvider=t,this._engineType=i,this._isReady=!1,this._listenersAttached=!1,this._playAttempted=!1,this._pausedBeforePlayAttempted=!1,creative.waitingOnPlayerSource=!!creative.waitingOnPlayerSource,this.onResourceLoad=null,this.reset(),this.duration=0,this.buffered=0,this._canSync=!0,this._preload=this._opts.preload};extend(i.prototype,StatefulEventEmitter),i.prototype.reportsSeeking=!0,Object.defineProperty(i.prototype,\"paused\",{get:function(){return!(!this._decoder||!this._decoder.paused)}}),Object.defineProperty(i.prototype,\"duration\",{get:function(){return this._decoder&&this._decoder.duration||0}}),Object.defineProperty(i.prototype,\"currentTime\",{get:function(){return this._decoder&&this._decoder.currentTime||0},set:function(e){this._decoder&&this._decoder.setCurrentTime(e)}});var n=i.prototype;i.SOUND_UNINITIALIZED=0,i.SOUND_PLAYING=1,i.SOUND_PAUSED=2,i.SOUND_ENDED=3,i.SOUND_ERROR=4,n.render=function(e){return this.div||(this.div=e.createElement(\"div\"),this.div.className=\"canvasContainer\"),this._createEngines(),this.div},n._createAvailableEngine=function(){this.emit(\"playersourceloading\"),this._netStream||(this._netStream=new NetStream(this._srcProvider,function(e){return this._playAttempted?393216:0==e?262144:0}.bind(this),this._opts.netStreamOpts),this._accumulator=new Accumulator(this._netStream,this._opts),this._preload&&this._netStream.load());var e=creative.resourceUrl+(\"ogv\"===this._engineType?\"runner-min/FullscreenVideoPlayer/OgvPlayer.js\":\"runner-min/FullscreenVideoPlayer/Mpeg1Player.js\"),t=\"ogv\"==this._engineType&&\"function\"==typeof OgvDecoder&&\"function\"==typeof OgvContainerDecoder?!0:\"mpeg1\"==this._engineType&&\"function\"==typeof Mpeg1Decoder&&\"function\"==typeof ContainerDecoder?!0:!1;t?(this._containerDecoder=\"ogv\"==this._engineType?new OgvContainerDecoder(this._accumulator,this._opts):new ContainerDecoder(this._accumulator),this._decoder=\"ogv\"==this._engineType?new OgvDecoder(this._containerDecoder,this.div):new Mpeg1Decoder(this._containerDecoder,this.div,this._opts),this.attachListeners(),this.onResourceLoad&&this.onResourceLoad()):creative.waitingOnPlayerSource||(creative.waitingOnPlayerSource=!0,loadJS(e,function(){creative.waitingOnPlayerSource=!1,this._pausedBeforePlayAttempted||this._createAvailableEngine()}.bind(this)))},n._createEngines=function(){this._decoder||(this._pausedBeforePlayAttempted=!1,this._createAvailableEngine())},n._startPlaying=function(){this._playAttempted||(this._playAttempted=!0),this._netStream.load(),this.emit(\"userplayed\"),this._decoder.play()},n._processListeners=function(e,t){CeltraPlayerUtils.forEach(e,function(e,i){t(e,this[i].bind(this))},this)},n.attachListeners=function(){if(!this._listenersAttached){var e=this._decoder.addListener.bind(this._decoder);this._processListeners(t,e),this._listenersAttached=!0}},n.removeListeners=function(){if(this._listenersAttached){var e=this._decoder.removeListener.bind(this._decoder);this._processListeners(t,e),this._listenersAttached=!1}},n.onLoadMetaData=function(){this.emit(\"loadmetadata\")},n.onDurationChange=function(){this._isReady=!0,this.emit(\"durationchange\")},n.onProgress=function(){this.buffered=this._decoder.buffered,this.emit(\"progress\")},n.onBuffering=function(){this.emit(\"buffering\")},n.onEndBuffering=function(){this.emit(\"endbuffering\")},n.onCanPlay=function(){this.emit(\"canplay\")},n.onPlay=function(){this.emit(\"play\")},n.onPlaying=function(){this.emit(\"playing\")},n.onPause=function(){this.emit(\"pause\")},n.onSeeking=function(){this.emit(\"seeking\")},n.onSeeked=function(){this.emit(\"seeked\")},n.onEnded=function(){this.emit(\"ended\")},n.onCustomInfo=function(e){this.emit(\"custominfo\",e)},n.onTimeUpdate=function(){this.emit(\"timeupdate\",this.currentTime)},n.onBeforeResize=function(e){this._decoder&&this._decoder.isState(CeltraPlayerUtils.PLAYING)&&(this._decoder.pause(),defer(function(){this._decoder&&this._decoder.play()}.bind(this),1500)),e(!0)},n.destroy=function(){this._netStream&&this._netStream.destroy(),this._netStream=null,this._containerDecoder&&this._containerDecoder.destroy(),this._containerDecoder=null,this.removeListeners(),this._decoder&&this._decoder.destroy(),this._decoder=null},n.play=function(){creative.waitingOnPlayerSource&&this.emit(\"playersourceloading\",!0),this.onResourceLoad=this._startPlaying,this._createEngines(),this._decoder&&this._startPlaying()},n.pause=function(){this._decoder?this._decoder.pause():this._pausedBeforePlayAttempted=!0},n.getVideoWidth=function(){return this._decoder?this._decoder.width:0/0},n.getVideoHeight=function(){return this._decoder?this._decoder.height:0/0},n.getCurrentTime=function(){return this.currentTime},n.setCurrentTime=function(e){this.currentTime=e},n.seekToRatio=function(e){e=Math.min(this.buffered/this.duration-.1,e),e=Math.min(.95,Math.max(0,e)),this._decoder.seekTo(e)},n.reset=function(){this._decoder&&this._decoder.reset(),this.currentTime=0,this._playAttempted=!1},n.isReady=function(){return this._isReady},n.getFPS=function(){return this._decoder.getFPS()},window.JsVideoEngine=i}();;\n!function(){var i=120,t=.6,e=1,s=3e3,o=2,d={init:function(i,t,e){this.onPause=this.onPause.bind(this),this.onEnded=this.onEnded.bind(this),this.onPlay=this.onPlay.bind(this),this.onReplayed=this.onReplayed.bind(this),this.onMuted=this.onMuted.bind(this),this.onUnMuted=this.onUnMuted.bind(this),this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onFirstPlay=this.onFirstPlay.bind(this),this.destroy=this.destroy.bind(this),this.video=i,this.audio=t,this.muted=e,this._lastSyncTime=0,this.video.once(\"destroy\",this.destroy),this.video.once(\"userplayed\",this.onFirstPlay),this.video.on(\"muted\",this.onMuted),this.video.on(\"unmuted\",this.onUnMuted),this.video.on(\"replayed\",this.onReplayed)},attach:function(){this.video.on(\"pause\",this.onPause),this.video.on(\"ended\",this.onEnded),this.video.on(\"userpaused\",this.onPause),this.video.on(\"seeking\",this.onPause),this.video.on(\"play\",this.onPlay),this.video.on(\"playing\",this.onPlay),this.video.on(\"seeked\",this.onPlay),this.video.on(\"timeupdate\",this.onTimeUpdate)},destroy:function(){this.audio.pause(),this.video.off(\"userplayed\",this.onFirstPlayed),this.video.off(\"userpaused\",this.onPause),this.video.off(\"pause\",this.onPause),this.video.off(\"seeking\",this.onPause),this.video.off(\"ended\",this.onEnded),this.video.off(\"play\",this.onPlay),this.video.off(\"playing\",this.onPlay),this.video.off(\"seeked\",this.onPlay),this.video.off(\"muted\",this.onMuted),this.video.off(\"unmuted\",this.onUnMuted),this.video.off(\"timeupdate\",this.onTimeUpdate),this.video.off(\"replayed\",this.onReplayed)},onFirstPlay:function(){if(this.video.off(\"userplayed\",this.onFirstPlay),this.audio.start(),this.muted||this.audio.ready)fakeclick(function(){this.audio.load()}.bind(this)),this.attach();else{var t=!1,e=!1,s=celtra.webkit(\"534.30\"),o=function(){var d=isMediaPlaying(this.video),n=isMediaPlaying(this.audio);if(n&&d||n&&e||d&&t||t&&e||this.audio.ready){this.attach(),this.video.silentPlay();try{this.video.currentTime=this.audio.currentTime}catch(h){}}else d&&!n&&(this.video.silentPause(),e=!0),!n||d||s||(this.audio.pause(),t=!0),defer(o.bind(this),i)}.bind(this);s?this.audio.playFrom():fakeclick(function(){this.audio.load()}.bind(this)),defer(o,500)}},onPause:function(){this.audio.pause()},onEnded:function(){this.audio.pause(),this.audio.ready&&(this.audio.currentTime=0)},onPlay:function(){this.muted||this.audio.playFrom()},onReplayed:function(){this.muted||(this.audio.playFrom(0),this._lastSyncTime=Date.now())},onMuted:function(){this.muted=!0,this.audio.pause()},onUnMuted:function(){this.muted=!1,isMediaPlaying(this.video)&&this.audio.ready?this.audio.playFrom(this.video.currentTime):this.audio.unlock()},onTimeUpdate:function(){var i=isMediaPlaying(this.audio);if(!(!i&&this.audio.playedBefore||this.muted)){if(this.audio.paused&&!this.muted&&!this.video.paused)return void this.audio.playFrom(this.video.currentTime);var d=this.video.currentTime-this.audio.currentTime,n=Math.abs(d);if(!(t>n||this.video.currentTimed&&o>n)try{this.video.currentTime=this.audio.currentTime}catch(h){}else try{this.audio.currentTime=this.video.currentTime+t/2}catch(h){}}}};this.AVSyncAudio=d}();;\n!function(){var i=.6,t=1,e=3e3,s=2,o={init:function(i,t,e){this.onPause=this.onPause.bind(this),this.onEnded=this.onEnded.bind(this),this.onMuted=this.onMuted.bind(this),this.onUnMuted=this.onUnMuted.bind(this),this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onFirstPlay=this.onFirstPlay.bind(this),this.destroy=this.destroy.bind(this),this.video=i,this.audio=t,this.muted=e,this._lastSyncTime=0,i.once(\"destroy\",this.destroy),i.once(\"userplayed\",this.onFirstPlay),this.video.on(\"muted\",this.onMuted),this.video.on(\"unmuted\",this.onUnMuted)},attach:function(){this.video.on(\"pause\",this.onPause),this.video.on(\"ended\",this.onEnded),this.video.on(\"userpaused\",this.onPause),this.video.on(\"seeking\",this.onPause),this.video.on(\"timeupdate\",this.onTimeUpdate)},destroy:function(){this.audio.pause(),this.video.off(\"userplayed\",this.onFirstPlayed),this.video.off(\"pause\",this.onPause),this.video.off(\"userpaused\",this.onPause),this.video.off(\"seeking\",this.onPause),this.video.off(\"ended\",this.onEnded),this.video.off(\"muted\",this.onMuted),this.video.off(\"unmuted\",this.onUnMuted),this.video.off(\"timeupdate\",this.onTimeUpdate)},onFirstPlay:function(){this.video.off(\"userplayed\",this.onFirstPlay);var i=!0,t=this.video,e=celtra.webkit(\"534.30\"),s=function(){i&&!e&&t.silentPause()};this.muted||this.audio.ready?(this.audio.load(),this.attach()):(this.video.once(\"canplay\",s),this.video.once(\"playing\",s),this.video.once(\"timeupdate\",s),this.audio.once(\"canplaythrough\",function(){i=!1,this.video.off(\"canplay\",s),this.video.off(\"playing\",s),this.video.off(\"timeupdate\",s),isMediaPlaying(this.video)||this.video.silentPlay(),!isMediaPlaying(this.audio)&&android()&&this.audio.playAudio(),this.attach()}.bind(this)),this.audio.load())},onPause:function(){this.audio.pause()},onEnded:function(){this.audio.pause(),this.audio.currentTime=0},onMuted:function(){this.muted=!0,this.audio.pause()},onUnMuted:function(){this.muted=!1,isMediaPlaying(this.video)?this.audio.playAudio(this.video.currentTime):this.audio.unlock()},onTimeUpdate:function(){if(!this.muted){if(this.audio.paused&&!this.video.paused)return void this.audio.playAudio(this.video.currentTime);var o=this.video.currentTime-this.audio.currentTime,d=Math.abs(o);if(!(i>d||this.video.currentTimeo&&s>d)try{this.video.currentTime=this.audio.currentTime}catch(n){}else try{this.audio.currentTime=this.video.currentTime}catch(n){}}}};this.AVSyncWebAudio=o}();;\nvar CuePointObserver={init:function(t){return this._video=t,this._VIDEO_START_TIME=-1,this._attached=!1,this._lastTriggeredTime=this._VIDEO_START_TIME,this._observeCuePoints=this._observeCuePoints.bind(this),this._observe=this._observe.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this},_observe:function(t){if(t.time<=this._lastTriggeredTime)return!1;if(this._video.newVideoTrackingExperiment){if(!this._customTriggers){var i=this._video.getDuration();this._customTriggers=[{name:\"exp_videoStart_CuePoint\",time:0},{name:\"exp_videoFirstQuartile_CuePoint\",time:.25*i},{name:\"exp_videoMidpoint_CuePoint\",time:.5*i},{name:\"exp_videoThirdQuartile_CuePoint\",time:.75*i},{name:\"exp_videoComplete_CuePoint\",time:i-.5}]}var e=this._video._player.getCurrentTime();this._customTriggers.length>0&&e>=this._customTriggers[0].time&&this._video._videoContext&&(this._video._videoContext.track({name:this._customTriggers[0].name,position:e}),this._customTriggers.splice(0,1))}var s=this._video._player.getCurrentTime()>=t.time;return s&&(this._lastTriggeredTime=t.time),s},_observeCuePoints:function(){this._video._player&&this._video.fireTriggers(\"videoCuepoint\",this._observe)},attach:function(){this._attached||(this._attached=!0,Ticker.frame(this._observeCuePoints,\"update\"))},detach:function(){this._attached&&(this._attached=!1,Ticker.removeFrame(this._observeCuePoints,\"update\"))},start:function(){this.attach()},stop:function(t){this.detach(),t&&(this._lastTriggeredTime=this._VIDEO_START_TIME)}};;\n!function(t){function e(t,e,s,n,r){return t?Object.create(i).init(e,s,n,r):{show:noop,hide:noop,setCurrentTime:noop,destroy:noop}}var i={name:\"Countdown\",init:function(t,e,i,s){if(this._duration=e,this._displayTime=null,this._mode=i,this._opts=s||{},this._countdownType=s.countdownType,-1===[\"kinetic\",\"countdown\"].indexOf(this._mode))throw this._mode+\" is not available as a mode for Countdown component!\";\"kinetic\"===this._mode&&(this._duration=.95*this._duration);var n=\"undefined\"==typeof InstaAdUtility?celtra.isHighDensityDisplay():InstaAdUtility.isHighDensityDisplay,r=celtra.desktop()&&!n,a=celtra.desktop()&&n,h=celtra.desktop()&&celtra.gecko();switch(this._retinaFactor=r?1:a||h?2:4,this._countdownType){case\"small\":this._fontSize=0,this._size=26*this._retinaFactor,this._barWidth=2*this._retinaFactor;break;case\"normal\":this._fontSize=13*this._retinaFactor,this._size=32*this._retinaFactor,this._barWidth=2*this._retinaFactor;break;case\"big\":this._fontSize=14*this._retinaFactor,this._size=40*this._retinaFactor,this._barWidth=2.5*this._retinaFactor}return this._halfSize=this._size/2,this._barColor=this._opts.barColor||\"rgba(255, 255, 255, 1)\",this._bgCircleColor=this._opts.bgCircleColor||\"rgba(0, 0, 0, 0.08)\",this._circ=2*Math.PI,this._quart=Math.PI/2,this._radius=.5*this._size,this._radiusCountdown=.5*(this._size-4*this._barWidth),this._barPercentage=0,this._kineticBarSpeed=.01,this._introTransitionEnabled=this._opts.introTransitionEnabled||!1,this._opacity=null,this.node=t.appendChild(this._createCountdown()),this._offscreenCanvas=document.createElement(\"canvas\"),this._offscreenContext=this._offscreenCanvas.getContext(\"2d\"),this._state=new StateObject({show:null}),this._time=new StateObject({currentTime:0}),this._update=this._update.bind(this),this._render=this._render.bind(this),Ticker.frame(this._update,\"update\"),Ticker.frame(this._render,\"render\"),this.setCurrentTime(0),this},destroy:function(){Ticker.removeFrame(this._update,\"update\"),Ticker.removeFrame(this._render,\"render\"),this._offscreenCanvas=null,this._offscreenContext=null,this._prebufferedBg=null},_createCountdown:function(){var t=document.createElement(\"div\"),e=document.createElement(\"canvas\"),i=document.createElement(\"div\");this._text=document.createElement(\"div\"),this._ctx=e.getContext(\"2d\"),addClass(t,\"celtra-countdown\"),this._opts.cssClass&&addClass(t,this._opts.cssClass),\"kinetic\"===this._mode&&addClass(t,\"quick-transition\"),addClass(e,\"celtra-countdown-canvas\"),addClass(i,\"celtra-countdown-text-wrapper\"),i.style.fontSize=this._fontSize+\"px\",e.setAttribute(\"width\",this._size+\"px\"),e.setAttribute(\"height\",this._size+\"px\"),t.appendChild(e),i.style.color=this._barColor,i.style.width=this._size+\"px\",i.style.height=this._size+\"px\";var s=\"scale(\"+1/this._retinaFactor+\")\";return t.style.transform=s,t.style.webkitTransform=s,t.appendChild(i),i.appendChild(this._text),t},show:function(){this._state.show=!0},hide:function(){this._state.show=!1},_update:function(){if(this._barPercentage=this._time.currentTime/this._duration,this._state.show&&this._time.isDirty()){this._time.markClean(),this._offscreenContext.clearRect(0,0,this._size,this._size),this._prebufferedBg||(this._offscreenContext.beginPath(),this._offscreenContext.arc(this._halfSize,this._halfSize,this._radius,0,this._circ),this._offscreenContext.fillStyle=this._bgCircleColor,this._offscreenContext.fill(),this._offscreenContext.beginPath(),this._offscreenContext.strokeStyle=this._barColor,this._offscreenContext.lineCap=\"square\",this._offscreenContext.closePath(),this._offscreenContext.fill(),this._offscreenContext.lineWidth=this._barWidth,this._prebufferedBg=this._offscreenContext.getImageData(0,0,this._size,this._size));var t=-this._quart,e=this._circ*(1-this._barPercentage)-this._quart;0===this._barPercentage?(t=0,e=0):this._barPercentage>=1&&(t=0,e=2*Math.PI),this._offscreenContext.putImageData(this._prebufferedBg,0,0),this._offscreenContext.beginPath(),t!==e&&this._offscreenContext.arc(this._halfSize,this._halfSize,this._radiusCountdown,t,e,!0),this._offscreenContext.stroke()}},_render:function(){if(this._introTransitionEnabled&&this._opacity&&this._state.show&&(this.node.style.opacity=this._opacity+.2),this._state.isDirty()&&(this._state.show?(removeClass(this.node,\"celtra-hide\"),this._introTransitionEnabled||addClass(this.node,\"celtra-show\")):(this._introTransitionEnabled&&this._opacity&&(this.node.style.opacity=0,this._introTransitionEnabled=!1),removeClass(this.node,\"celtra-show\"),addClass(this.node,\"celtra-hide\")),this._state.markClean()),this._state.show&&(this._ctx.clearRect(0,0,this._size,this._size),this._ctx.drawImage(this._offscreenCanvas,0,0),\"countdown\"===this._mode)){var t=Math.round(this._time.currentTime/1e3);this._displayTime!==t&&(this._displayTime=t,this._text.innerText=this._displayTime)}},setOpacity:function(t){this._opacity=t},setCurrentTime:function(t){if(\"countdown\"===this._mode){if(t=this._duration-t,this._duration<=0)return;150>t&&(t=0),this._time.currentTime=t}\"kinetic\"===this._mode&&(this._time.currentTime=t)}};t.CountdownProvider={create:e}}(this);;\nfunction Paginator(i){if(i=i||{},\"object\"!=typeof i.container)throw\"Paginator is missing container.\";if(\"object\"!=typeof i.containerSize)throw\"Paginator is missing container size object.\";if(\"string\"!=typeof i.position)throw\"Paginator is missing position.\";if(\"number\"!=typeof i.itemsCount)throw\"Paginator is missing itemsCount.\";extend(this,i),this._isVisible=this.position&&\"hidden\"!==this.position,this._hasItems=!!this.itemsCount,this._list=null,this._largePaginationThreshold=350,this._dotSizes={smallSize:9,smallActive:2,largeSize:12,largeActive:4}}Paginator.prototype.buildPagination=function(){if(this._isVisible&&this._hasItems){this._list=document.createElement(\"ul\"),addClass(this._list,\"pagination \"+this.position);for(var i=0;ithis._largePaginationThreshold&&i.height>this._largePaginationThreshold?\"large\":\"small\",s=this.itemsCount*this._dotSizes[t+\"Size\"]+this._dotSizes[t+\"Active\"];switch(addClass(this._list,t),this.position){default:case\"bottom\":case\"top\":this._list.style.left=(i.width-s)/2+\"px\";break;case\"right\":case\"left\":this._list.style.top=(i.height-s)/2+\"px\"}this._list.style.display=\"block\"}},Paginator.prototype.setActivePaginationItem=function(i){this._isVisible&&this._hasItems&&Array.prototype.slice.call(this._list.getElementsByTagName(\"li\")).forEach(function(t,s){removeClass(t,\"active\"),s===i&&addClass(t,\"active\")},this)};;\nfunction Creative(e,t,r,n,i,a,o,s,u,c,d,m,l){if(e instanceof Creative)throw\"This JSON has already been unfreezed. We do it inline, to improve performance. Duplicate it yourself before unfreezing, if you need to use it again.\";var p=l.start(\"Creative.new\"),v=extend({adapter:a,runtimeParams:t||{},urlOpenedOverrideUrls:s,urlOpenedUrlAppendage:d,clickThroughDestinationUrl:m,storeOpenedOverrideUrls:u,macros:c},o);if(\"InstaAdHtml\"!==e.clazz){var f=l.start(\"Creative.unfreeze\");e=Freezer.unfreeze(e,window,v),f.end()}return e.instantiation=randInt(),e.batcher=new Batcher,e.trackingCenter=r,e.universalInteractionId=\"\",e.aggregatorTracking=n,e.experiments=i,e.perf=l,e.platformAdvId=t.platformAdvId,e.platformAdvIdTrackingLimited=t.platformAdvIdTrackingLimited,\"InstaAdHtml\"===e.clazz&&(e.adapter=a,e.runtimeParams=t||{},e.urlOpenedOverrideUrls=s,e.urlOpenedUrlAppendage=d,e.clickThroughDestinationUrl=m,e.storeOpenedOverrideUrls=u,e.macros=c,extend(this,e),e=this),\"undefined\"!=typeof a&&null!==a&&(a.openBrowserSameWindowInHostileIFrame=function(e){window.top.location.href=e}),p.end(),e}Creative.toString=function(){return\"[Clazz Creative]\"},Creative.prototype.toString=function(){return\"[Creative \"+this.name+\"]\"},window.creative=null,extend(Creative.prototype,EventEmitter),Creative.init=function(e,t,r,n,i,a,o,s,u,c,d,m,l){if(window.creative)throw\"creative is a singleton and was already initialized.\";Logger.initFromRuntimeParams(t),window.creative=new Creative(e,t,r,n,i,a,o,s,u,c,d,m,l)},Creative.prototype.userInteracted=function(e){this.emit(\"interaction\",e)},Creative.prototype.clickedThrough=function(e){this.emit(\"clickThrough\",e)},Creative.prototype._getRuntimeParamsWithPrefix=function(e){var t={};for(var r in this.runtimeParams)0===r.indexOf(e)&&(t[r.slice(e.length)]=this.runtimeParams[r]);return t},Object.defineProperties(Creative.prototype,{sessionId:{enumerable:!0,get:function(){return this.runtimeParams.sessionId}},placementId:{enumerable:!0,get:function(){return this.runtimeParams.placementId||null}},folderId:{enumerable:!0,get:function(){return this.runtimeParams.folderId}},supplierId:{enumerable:!0,get:function(){return this.runtimeParams.supplierId||null}},dataURIsEnabled:{enumerable:!1,get:function(){return 1==this.runtimeParams.dataURIsEnabled||\"treatment\"===(this.experiments.get(\"UseDataURIsGlobally\")||{}).chosenVariant}},secure:{enumerable:!0,get:function(){return 1==this.runtimeParams.secure}},userParams:{enumerable:!0,get:function(){return this._getRuntimeParamsWithPrefix(\"user.\")}},userIdentifiers:{enumerable:!0,get:function(){return this.runtimeParams.userIdentifiers}},authTokenUrlParam:{enumerable:!1,get:function(){return\"authBasis=\"+creative.runtimeParams.authBasis+\"&authToken=\"+creative.runtimeParams.authToken}},customAudiences:{enumerable:!0,get:function(){return function(e){if(!creative.runtimeParams.customAudiences[e])throw new Error('Custom audience \"'+e+'\" is not used by the creative.');return{userExists:creative.runtimeParams.customAudiences[e].userExists,userData:creative.runtimeParams.customAudiences[e].userData,addUser:function(t){return CustomAudiences.addUser(e,t)},removeUser:function(){return CustomAudiences.removeUser(e)}}}}},acceptLanguage:{enumerable:!0,get:function(){return this.runtimeParams.acceptLanguage}}}),Creative.prototype.awake=function(){function e(r,n,i,a){r.forEach(function(r){r.parentUnit=a,r.parentScreen=i,r.parentContainer=n;var o=r.getNestedContainers();o.forEach(function(n){n.parentUnit=a,n.parentScreen=i,n.parentObject=r,e(n.objects,n,i,a),n.scenes&&t(n.scenes,n,i,a)})})}function t(e,t,r,n){e.forEach(function(e){e.parentUnit=n,e.parentScreen=r,e.parentContainer=t})}var r=this;for(var n in r.units){var i=r.units[n];i.name=n;var a=[];i.variants?i.variants.forEach(function(e){a=a.concat(e.master,e.screens)}):(a=[i.master].concat(i.screens),i.loadingScreen&&(a=[i.loadingScreen].concat(a))),a.forEach(function(r){r.parentUnit=i,e(r.objects,r,r,i),r.scenes&&t(r.scenes,r,r,i)})}},Creative.prototype.track=function(e,t){var r=\"only\"==(creative.experiments.get(\"ExtendedEngagement\")||{}).chosenVariant;r&&[\"firstInteraction\",\"interaction\",\"endCardInteraction\",\"unitCollapsed\",\"creativeDismissed\",\"clickThroughDestinationOpened\",\"firstClickThrough\",\"itemSwiped\"].indexOf(e.name)>=0&&(e=extend(e,{universalInteractionId:this.universalInteractionId})),this.trackingCenter.track(e,t)},Creative.prototype.setUniversalInteractionId=function(e){this.universalInteractionId=e},Creative.prototype.wrapRedirectPageUrl=function(e,t){return this.trackingCenter.wrapRedirectPageUrl(e,t)},Object.defineProperty(Creative.prototype,\"sdk\",{get:function(){return this.adapter},enumerable:!0}),Creative._throw=function(e){throw e},Creative.prototype.getUserInteracted=function(){return 1==this.runtimeParams.userInteracted},Creative.prototype.trackCreativeRendered=function(){creative.adapter.notifycreativeRendered(),this._getCreativeRendered()||(this.track({name:\"creativeRendered\"}),this.runtimeParams.creativeRendered=1,defer(this.trackingCenter.batchFlush))},Creative.prototype.checkAndTrackFeedValueMissing=function(e,t){var r=this.runtimeParams.dynamicContent[t];null==t||r||e.track({name:\"userError\",userErrorId:\"feedValueMissing\"})},Creative.prototype._getCreativeRendered=function(){return 1===this.runtimeParams.creativeRendered},Creative.prototype.trackCreativeRenderedOnScreenShow=Creative.prototype.trackCreativeRendered,Creative.prototype.trackCreativeRenderedOnVideoStart=noop,Creative.trackCustomEventAction=function(e,t,r){var n=\"custom\";e.track({name:n,label:t.name}),creative.adapter.sendToEventMonitor(n,t.triggerId,e.screen.name,null,t.name),r&&r()},Creative.prototype.trackCreativeLoaded=function(e){this.track({name:\"creativeLoaded\",viewability00Measurable:e.observingViewability(\"00\"),viewability501Measurable:e.observingViewability(\"501\"),viewableTimeMeasurable:e.observingViewableTime(),cdnVariant:this.runtimeParams.variantChoices.CdnTiming||\"none\"}),defer(this.trackingCenter.batchFlush),this.perf._stopTrackingDefers=!0,this.perf.mark(\"creativeLoaded\")},Creative.prototype.createUserLocation=function(e){return\"undefined\"!=typeof UserLocation?new UserLocation({lat:this.runtimeParams.gpsLat,lng:this.runtimeParams.gpsLng},e):void 0},Creative.prototype.getPageUrl=function(e){return(this.secure?this.creativeUrl:this.insecureCreativeUrl)+e+\"?base64json=\"+encodeURIComponent(btoa(to_utf8(JSON.stringify(this.runtimeParams))))},Creative.prototype.shouldClickThroughToNewWindow=function(e){var t,r=\"Desktop\"==creative.intendedDeviceType;t=[\"same\",\"new\"].indexOf(this.runtimeParams.preferredClickThroughWindow)>=0?this.runtimeParams.preferredClickThroughWindow:r?\"new\":\"same\";var n=e&&e.inUserInitiatedIteration;return\"new\"==t&&(n||r)},Creative.prototype.getFeedFields=function(){return this.runtimeParams.customFeedFields.map(function(e){var t=this.runtimeParams.dynamicContent[\"CustomFeedField/\"+e.id];return{id:e.id,feedId:e.feedId,name:e.name,values:[t].filter(function(e){return null!==e})}}.bind(this))},Creative.prototype.getFeedFieldByName=function(e){for(var t,r=this.getFeedFields(),n=0;n=0;i--)r=function(n,t){return function(){t(e,n)}}(r,n.actions[i]);r()},Kernel.runInSequenceActionDryRun=Kernel.runInSequenceAction,Kernel.runNTimesAction=function(e,n){n.caller.hasOwnProperty(\"executionsLeft\")||(n.caller.executionsLeft=n.repeat),n.caller.executionsLeft>0&&(n.caller.executionsLeft--,(n.action||nullai)(e))},Kernel.runNTimesActionDryRun=function(e,n,t){(n.action||nullai)(e,t)},Kernel.loopAction=function(e,n,t){function r(){return 0==i?t():(-1!=i&&i--,void(n.action||nullai)(e,\"thumb\"===creative.runtimeParams.purpose?t:r))}var i=n.repeat;r()},Kernel.loopActionDryRun=function(e,n,t){(n.action||nullai)(e,t)},Kernel.sleepAction=function(e,n,t){setTimeout(t,n.duration)},Kernel.executeJavascriptAction=function(e,n,t){try{var r=e.initiator,i=e.screen.parentUnit,c=e.screen,a=new Function(\"ctx\",\"c\",\"unit\",\"screen\",\"variant\",n.script.code),o=!1,u=i.getVariantForScreen?i.getVariantForScreen(c):void 0;null!==n.script.code.match(/http:/)&&this._track(\"executeJavascriptAction.code\");var l=function(){o?console.warn('Multiple calls made to \"c()\" from \"'+e.initiator.fieldName+'\" Execute JS Action'):(t(),o=!0)}.bind(this);a.call(r,e,l,i,c,u)}catch(s){console.error(s.message+\"\\n\"+s.stack)}},Kernel.randomAction=function(e,n,t){var r=0;if(n.outcomes.forEach(function(e){r+=e.weight}),!r)return t();for(var i=Math.random()*r,c=0;ci)return(a.action||nullai)(e,t)}},Kernel.randomActionDryRun=function(e,n,t){n.outcomes.forEach(function(n){(n.action||nullai)(e)}),t()},Kernel.bestAction=function(e,n,t){var r=creative.experiments.get(\"Best\",[creative.id,n.experimentName]);r.trackExposure();var i=n.outcomes.filter(function(e){return e.experimentVariant==r.chosenVariant})[0],c=i?i:n.outcomes[0];(c.action||nullai)(e,t)},Kernel.bestActionDryRun=function(e,n,t){var r=creative.experiments.get(\"Best\",[creative.id,n.experimentName]),i=n.outcomes.filter(function(e){return e.experimentVariant==r.chosenVariant})[0],c=i?i:n.outcomes[0];(c.action||nullai)(e,t)},Kernel.trackBestVariantSuccessAction=function(e,n,t){var r=creative.experiments.get(\"Best\",[creative.id,n.experimentName]);r.trackSuccess(),creative.adapter.sendToEventMonitor(\"trackBestVariantSuccess\",n.triggerId,e.screen.name,r.chosenVariant,\"\"),t()},Kernel._track=function(e){this._privateApiTracked=this._privateApiTracked||{},this._privateApiTracked[e]||(this._privateApiTracked[e]=!0,creative.track({name:\"retiredFeatureUsed\",featureType:\"loadingInsecureContent\",featureName:e}))};;\n;\nfunction Scene(){}Scene.instances=[],Scene.prototype.awake=function(){this._framesPerSecond=20,this._framesPerPixel=.1,this._durationInFrames=0,this._durationInMilliseconds=0,this._durationInPixels=0,this._claimedObjects=[],this._keyframeAnimations=Object.create(null),this._rawInitialValues=[],this._initSceneOnRenderApiCall=!0,this._suspended=!1,this.fallbackFrameShown=!1,this.forceFallbackFrame=!1,this.intersection=\"undefined\"!=typeof this.intersection?this.intersection:50,this._appearedBefore=!1,this._calculateDurations=this._calculateDurations.bind(this),this._buildKeyframeAnimations=this._buildKeyframeAnimations.bind(this),this._removeAnimatedClass=this._removeAnimatedClass.bind(this),this._renderAtProgress=this._renderAtProgress.bind(this),this._initPlayer(),this.parentContainer.on(\"appeared\",this._appear.bind(this)),this.parentContainer.on(\"disappeared\",this._dissapear.bind(this)),this.parentContainer.on(\"resize\",this._calculateDurations),this.parentContainer.on(\"resize\",this._buildKeyframeAnimations),this.parentContainer.on(\"resize\",this._renderAtProgress),this.parentUnit.on(\"layoutChanged\",this._calculateDurations),this.parentUnit.on(\"layoutChanged\",this._buildKeyframeAnimations),this.parentUnit.on(\"layoutChanged\",this._renderAtProgress),Scene.instances.push(this)},Scene._sizeProperties=[\"width\",\"height\"],Scene._positionProperties={horizontal:[\"left\",\"hcenter\",\"right\"],vertical:[\"top\",\"vcenter\",\"bottom\"]},Object.defineProperty(Scene.prototype,\"paused\",{get:function(){return this._player.paused}}),Scene.prototype._initPlayer=function(){var e=window[this.type.charAt(0).toUpperCase()+this.type.slice(1)+\"ScenePlayer\"];this._player=new e(this),this._player.on(\"stop\",this._resetRawInitialValues.bind(this)),this._player.on(\"end\",this._updateRawFinalValuesForAllLayouts.bind(this)),this._player.on(\"pause\",this._removeAnimatedClass),this._player.on(\"stop\",this._removeAnimatedClass)},Scene.prototype._removeAnimatedClass=function(){for(var e in this._claimedObjects)removeClass(this._claimedObjects[e].node,\"animated\")},Scene.prototype._getMaxFrameNumber=function(){var e=0;for(var t in this.objects){var i=this.objects[t],a=this.parentUnit.layoutCurrentIndex;for(var n in i.layoutSpecificValues[a]){var s=i.layoutSpecificValues[a][n];e=Math.max(e,s.frame)}}return e},Scene.prototype._calculateDurations=function(){this._durationInFrames=this._getMaxFrameNumber(),this._durationInMilliseconds=this._durationInFrames/this._framesPerSecond*1e3,this._durationInPixels=this._durationInFrames/this._framesPerPixel},Scene.prototype._captureRawInitialValues=function(e){this._rawInitialValues[e.localId]=[];for(var t=this.parentScreen.parentContainer.layouts.length,i=0;t>i;i++){var a=e.layoutSpecificValues[i];this._rawInitialValues[e.localId][i]=extend({rotation:a.rotation,opacity:a.opacity,hidden:a.hidden},a.position,a.size)}},Scene.prototype._calculateFinalValuesForObject=function(e){var t=[];for(var i in this.objects){var a=this.objects[i];if(a.target.localId==e.localId)for(var n in a.layoutSpecificValues){t[n]=Object.create(null);for(var s in a.layoutSpecificValues[n]){var r=a.layoutSpecificValues[n][s];for(var o in r.properties)null!==r.properties[o].value&&(t[n][o]=r.properties[o].value)}}}return t},Scene.prototype._updateRawFinalValuesForAllLayouts=function(){if(\"reverse\"!==this.onEnd)for(var e in this._claimedObjects)for(var t=this._claimedObjects[e],i=this._calculateFinalValuesForObject(t),a=this.parentScreen.parentContainer.layouts.length,n=0;a>n;n++){var s=t.layoutSpecificValues[n],r=i[n];Scene._updateLayoutWithValues(s,r)}},Scene.prototype._buildKeyframeAnimations=function(){this._keyframeAnimations=Object.create(null);for(var e=this.parentUnit.layoutCurrentIndex,t=0;t0&&this._suspended?this._playSceneOrDisplayFallbackFrame():0!==e||this._player.paused||this._suspendScene()},Scene.prototype._handleContainerViewableChange=function(e){e&&this._suspended?this._playSceneOrDisplayFallbackFrame():e||this._player.paused||this._suspendScene()},Scene.prototype.getDuration=function(){return{frames:this._durationInFrames,pixels:this._durationInPixels,milliseconds:this._durationInMilliseconds}},Scene.prototype.updateObjects=function(e){for(var t in this._claimedObjects){var i=this._claimedObjects[t];if(i.node){if(i.isAnimated){var a=this._keyframeAnimations[i.localId],n=e>=a.startKeyframe,s=e<=a.endKeyframe||!a.firstFrameAnimated,r=n&&s||this.fallbackFrameShown;if(r)a.firstFrameAnimated=!0,hasClass(i.node,\"animated\")||addClass(i.node,\"animated\");else{if(!hasClass(i.node,\"animated\"))continue;removeClass(i.node,\"animated\")}}var o=this._keyframeAnimations[i.localId].animation.getValuesAt(e);Scene._updateLayoutWithValues(i.layoutCurrent,o),i._keyframeStyle=i._calculateNewStyleAttributes()}}},Scene.prototype.renderObjects=function(){for(var e in this._claimedObjects){var t=this._claimedObjects[e];t.node&&(t._applyStyles(t.node,t._keyframeStyle),t.redrawLayout())}},Scene.prototype.claimObject=function(e){if(-1===this._claimedObjects.indexOf(e)){for(var t=0;t0,s=\"reverse\"==this.onEnd&&!isNaN(this.onEndReverseCount)&&this.onEndReverseCount>0,r=this.onEndWaitForCount&&(n||s);a||r?(this._player.once(\"stop\",i),this._playSceneOrDisplayFallbackFrame()):(this._playSceneOrDisplayFallbackFrame(),i())},Scene.prototype.pauseSceneAction=function(e,t,i){\"time\"===this.type&&(this._pauseScene(),i())},Scene.prototype.stopSceneAction=function(e,t,i){\"time\"===this.type&&(this._stopScene(),i())},Scene.prototype.resetAction=function(e,t,i){this._player&&this._player.destroy(),this._initPlayer(),this._suspended=!1,i()},Scene._extractPropertyValues=function(e){var t=Object.create(null);for(var i in e)t[i]={value:e[i].value,timingFunction:Scene._getTimingFunctionByName(e[i].timingFunction)};return t},Scene._keyframeWithUnitsToKeyframePx=function(e,t){for(var i=0;i-1&&(s=s/100*t[a]),e[a].value=s)}}for(var r in Scene._positionProperties)for(var o=\"horizontal\"==r?\"width\":\"height\",l=Scene._positionProperties[r],c=0;c-1&&(u=u/100*t[o]),e[h].value=u)}}},Scene._getTimingFunctionByName=function(e){return e?KeyframeAnimation.Timing[camelize(e)]:null},Scene._fillInInitialAndDynamicKeyframeValues=function(e,t,i){e[0]||(e[0]=Object.create(null));for(var a in t)!e[0][a]&&i.indexOf(a)>-1&&(e[0][a]={value:t[a],timingFunction:Scene._getTimingFunctionByName(\"none\")});for(var n in e)for(var s in e[n])e[n][s]&&null===e[n][s].value&&(e[n][s].value=t[s])},Scene._ensureSizeOrPositionValueHasUnits=function(e){return e=String(e),e.indexOf(\"%\")>-1||e.indexOf(\"px\")>-1?e:e+\"px\"},Scene._updateLayoutWithValues=function(e,t){var i=extend({},e.position),a=!1;for(var n in Scene._positionProperties)for(var s=Scene._positionProperties[n],r=0;r0}}),View.prototype.createNode=function(){this.on(\"loaded\",creative.perf.start(\"View.load\",{clazz:this.constructor.name,name:this.name}).end);var e=document.createElement(\"div\");\"undefined\"!=typeof creative&&creative.adapter&&creative.adapter.useNativeClickForTapDetection&&(e.style.touchAction=\"manipulation\"),this.localId&&(e.id=\"celtra-object-\"+this.localId);for(var t=this.constructor;t;t=t.uber?t.uber.constructor:void 0)e.className+=\" celtra\"+t.name.replace(/[A-Z]/g,function(e){return\"-\"+e.toLowerCase()});return e},View.prototype.getNode=function(e){return this.loaded?e&&defer(e,0,\"View.getNode defer finishedLoadingCallback\",useAsap()):(e&&this._waitingForLoadCallbacks.push(e),this.node||(this.incrementLoadingCount(),this.node=this.createNode(),defer(this.decrementLoadingCount,0,\"View.getNode defer decrementLoadingCount\",useAsap()))),this.node},Object.defineProperty(View.prototype,\"isAppearing\",{get:function(){return this._isAppearing}}),Object.defineProperty(View.prototype,\"hasAppearedAtLeastOnce\",{get:function(){return this._hasAppearedAtLeastOnce}}),View.prototype.appear=function(){var e=\"View APPEAR called on \"+this.constructor.name+\" \"+this.localId+\" (name=\"+this.name+\")\";this.parentContainer&&(e+=\" from \"+this.parentContainer.constructor.name+\" \"+this.parentContainer.localId+\" (name=\"+this.parentContainer.name+\")\"),Logger(\"events.appear\").log(e),this.hidden?this._shouldAppear=!0:this.isAppearing||(this._appear(),this._isAppearing=!0,this._hasAppearedAtLeastOnce=!0,this.emit(\"appeared\"))},View.prototype.disappear=function(){var e=\"View DISAPPEAR called on \"+this.constructor.name+\" \"+this.localId+\" (name=\"+this.name+\")\";this.parentContainer&&(e+=\" from \"+this.parentContainer.constructor.name+\" \"+this.parentContainer.localId+\" (name=\"+this.parentContainer.name+\")\"),Logger(\"events.appear\").log(e),this.isAppearing&&(this._disappear(),this._isAppearing=!1,this._shouldAppear=!1,this.emit(\"disappeared\"))},View.prototype.reset=function(){this.isAppearing&&(this._shouldAppear=this.hidden,this._isAppearing=!this.hidden)},View.prototype._appear=function(){},View.prototype._disappear=function(){},View.prototype.appearNestedObjects=function(){this.objects.forEach(function(e){e.appear()},this)},View.prototype.disappearNestedObjects=function(){this.objects.forEach(function(e){e.disappear()},this)},View.prototype._trackViewShown=function(e){var t={name:\"viewShown\",viewName:this.name,clazz:this.constructor.name};new ActionContext(this,!1).track(extend(t,e))};;\nBaseCreativeUnit.prototype.alert=function(e,t){var a=this.size.width,r=this.size.height,l=e.boxWidth||320,n=e.boxHeight||160;e.message=removeHtmlTags(e.message),a>=l&&r>=n?this.showModalDialogInPlacement(\"alert\",e,t):(alert(e.message),t())},BaseCreativeUnit.prototype.prompt=function(e,t){var a=this.size.width,r=this.size.height,l=e.boxWidth||320,n=e.boxHeight||190;if(a>=l&&r>=n)this.showModalDialogInPlacement(\"prompt\",e,t);else{var i=prompt(removeHtmlTags(e.message));t(i)}},BaseCreativeUnit.prototype._getUniqueId=function(){var e=new Date,t=e.getTime()+Math.random();return t},BaseCreativeUnit.prototype.showModalDialogInPlacement=function(e,t,a){var r=this._getUniqueId(),l={};l[r]={attachment:\"body\",positioning:\"screen\",type:\"layer\"},creative.adapter.createPlacements(l,function(){function l(e){13==e.keyCode&&(creative.adapter.destroyPlacement(r),o=null,a(C.value))}function n(e){e.preventDefault(),e.stopPropagation()}function i(t){t.preventDefault(),t.stopPropagation(),creative.adapter.destroyPlacement(r),o=null,\"prompt\"==e?a(C.value):a()}function s(e){e.preventDefault(),e.stopPropagation(),creative.adapter.destroyPlacement(r),o=null,a(null)}if(window){var o=creative.adapter.placements[r];o.setZIndex(\"max\"),o.setSize(\"100%\",\"100%\"),o.setPosition(0,0);var d=o.createElement(\"link\");d.rel=\"stylesheet\",d.type=\"text/css\",d.href=creative.resourceUrl+\"runner-min/clazzes/ModalDialogs-Overlay.css\",o.getContainer().appendChild(d);var c=o.createElement(\"div\");addClass(c,\"celtra-alert\"),c.style.display=\"none\";var p=o.createElement(\"div\");addClass(p,\"celtra-alert-dark-overlay\"),c.appendChild(p),this.preventScroll(c);var h=o.createElement(\"div\");if(addClass(h,\"celtra-alert-box\"),t.title&&\"\"!=t.title){var m=o.createElement(\"h1\");addClass(m,\"celtra-alert-title\"),m.innerHTML=t.title,h.appendChild(m)}if(t.title&&\"\"!=t.title&&t.message&&\"\"!=t.message){var v=o.createElement(\"hr\");addClass(v,\"celtra-alert-dark-line\"),h.appendChild(v);var u=o.createElement(\"hr\");addClass(u,\"celtra-alert-light-line\"),h.appendChild(u)}if(t.message&&\"\"!=t.message){var g=o.createElement(\"div\");addClass(g,\"celtra-alert-message\"),g.innerHTML=t.message,h.appendChild(g)}if(\"prompt\"==e){var C=o.createElement(\"input\");addClass(C,\"celtra-alert-input\"),C.value=t.defaultValue||\"\",h.appendChild(C),attach(C,\"keypress\",l)}var f=o.createElement(\"div\");if(addClass(f,\"celtra-alert-ok\"),f.innerHTML=\"OK\",h.appendChild(f),this.preventScroll(h),once(f,\"touchend\",i,!1),\"prompt\"==e&&t.showCancel){addClass(f,\"with-cancel\");var y=o.createElement(\"div\");addClass(y,\"celtra-alert-cancel\"),y.innerHTML=\"CANCEL\",h.appendChild(y),attach(f,\"touchstart\",n,!1),once(y,\"touchend\",s,!1)}c.appendChild(h),o.populate(c,function(){o.show();var e=setInterval(function(){\"absolute\"===celtra.styler.computedCSS(h,\"position\")&&(computedBoxHeight=parseInt(celtra.styler.computedCSS(h,\"height\"),10)+parseInt(celtra.styler.computedCSS(h,\"paddingTop\"),10)+parseInt(celtra.styler.computedCSS(h,\"paddingBottom\"),10),h.style.marginTop=-computedBoxHeight/2+\"px\",h.style.opacity=1,clearInterval(e),e=null)},100)})}}.bind(this))},BaseCreativeUnit.prototype.preventScroll=function(e){var t=[\"mousewheel\",\"touchmove\"];t.forEach(function(t){attach(e,t,function(e){e.preventDefault()},!1)})};;\nfunction CreativeUnit(){}inherit(CreativeUnit,BaseCreativeUnit),CreativeUnit.IGNORABLES=BaseCreativeUnit.IGNORABLES,CreativeUnit.DEBUG_EXTRA_PHASE_DELAY=0,CreativeUnit.toString=function(){return\"[Clazz CreativeUnit]\"},CreativeUnit.prototype.toString=function(){return\"[CreativeUnit \"+this.name+\" (\"+this.localId+\")]\"},Object.defineProperty(CreativeUnit.prototype,\"size\",{get:function(){var t=this.getAvailableSize();return this.layoutCurrent||this._updateActiveLayout(this._getOrientation(),t.width,t.height),\"responsive\"===this.sizing?{width:t.width,height:t.height}:{width:this.layoutCurrent.unitSize.width,height:this.layoutCurrent.unitSize.height}},set:function(){}}),Object.defineProperty(CreativeUnit.prototype,\"unitAlignment\",{get:function(){return\"undefined\"==typeof this.layoutCurrent.unitAlignment?{}:this.layoutCurrent.unitAlignment}}),Object.defineProperty(CreativeUnit.prototype,\"layoutCurrent\",{get:function(){return this.layouts[this.layoutCurrentIndex]}}),Object.defineProperty(CreativeUnit.prototype,\"hasOverflow\",{get:function(){return this.screens.concat([this.master]).filter(function(t){return t.showOverflow}).length>0}}),Object.defineProperty(CreativeUnit.prototype,\"hasScreens\",{get:function(){return this.screens.length>0}}),CreativeUnit.prototype._getDestinationScreen=function(){var t=this.hasScreens?this.screens[0]:this.master;if(\"modal\"==this.name&&\"undefined\"!=typeof creative.runtimeParams.goToPageAfterExpand){var e=creative.runtimeParams.goToPageAfterExpand;if(\"string\"!=typeof e)throw new TypeError(\"Only string type is allowed to reference destination screen!\");var i=this.screens.filter(function(t){return t.title===e});i.length>0&&(t=i[0])}return t},CreativeUnit.prototype.awake=function(){var t=this;CreativeUnit.uber.awake.call(this),this.currentScreen=null,this.visibleScreen=null,this._masterShown=!1,this.overflowsY=!1,this.layoutCurrentIndex=null,this.screens.forEach(function(t){t.objects.forEach(function(t){t.zIndex+=ScreenObject._zIndexOffset})}),\"undefined\"==typeof this.backgroundColor&&(this.backgroundColor=\"#000000\"),\"undefined\"==typeof this.usePlaceboBar&&(this.usePlaceboBar=!1),\"undefined\"==typeof this.showCloseButton&&(this.showCloseButton=!1),\"undefined\"==typeof this.alignBackButtonHorizontal&&(this.alignBackButtonHorizontal=\"left\"),this.on(\"_firstScreenLoaded\",function(){t.placeboBar&&(t.placeboBar.parentNode.removeChild(t.placeboBar),t.placeboBar=null),this._setVisibleScreen(this._getDestinationScreen())}.bind(this)),this.onAll(\"_firstScreenLoaded _unitFirstShown\",function(){this.goToScreen(this._getDestinationScreen())}.bind(this)),this.triggerOrientationChange=this.triggerOrientationChange.bind(this),this.updateWindowMetrics=this.updateWindowMetrics.bind(this),this.hacks.triggerBlurWhenTappingOutsideOfInputs=ios()},CreativeUnit.prototype.setAvailableSize=function(t,e){var i=CreativeUnit.uber.setAvailableSize.apply(this,arguments),n=this._getOrientation(),o=this.layouts[this.layoutCurrentIndex];this._updateActiveLayout(n,t,e),this.updateWindowMetrics(n,t,e);var r=this._previousOrientation&&n!=this._previousOrientation,s=o&&o.orientation!=this.layoutCurrent.orientation;(r||s)&&this.triggerOrientationChange(),this._previousOrientation=n,(i||s)&&this.emit(\"resize\")},CreativeUnit.prototype._getOrientation=function(){return creative.adapter.orientation%180===0?\"portrait\":\"landscape\"},CreativeUnit.prototype._updateActiveLayout=function(t,e,i){{var n=this.layouts.slice(),o=this.layoutCurrentIndex;this.layouts[o]||null}n.forEach(function(n){n.sortIndex=0,\"independent\"==n.orientation?n.sortIndex+=1:n.orientation!=t&&(n.sortIndex+=4e3),n.minSize.width>e&&(n.sortIndex+=2e3),n.minSize.height>i&&(n.sortIndex+=2e3),n.sortIndex+=Math.abs(n.minSize.width-e)+Math.abs(n.minSize.height-i)}),n.sort(function(t,e){return t.sortIndex-e.sortIndex}),this.layoutCurrentIndex=this.layouts.indexOf(n[0]),o!=this.layoutCurrentIndex&&this.emit(\"layoutChanged\")},CreativeUnit.prototype.enterRenderTree=function(){if(!this._isRendering){this._isRendering=!0;var t=this.getAvailableSize();this.updateWindowMetrics(this._getOrientation(),t.width,t.height),this.master&&(this.master.loaded?defer(this.master.enterRenderTree.bind(this.master),void 0,void 0,useAsap()):this.once(\"_firstScreenLoaded\",this.master.enterRenderTree.bind(this.master))),this.visibleScreen&&defer(this.visibleScreen.enterRenderTree.bind(this.visibleScreen),void 0,void 0,useAsap()),this.hacks.triggerBlurWhenTappingOutsideOfInputs&&(attach(this.node,\"touchstart\",function(t){-1==[\"INPUT\",\"TEXTAREA\",\"SELECT\"].indexOf(t.target.nodeName)&&null!=this.lastInputElementFocused&&this.lastInputElementFocused.blur()}.bind(this),!0),attach(this.node,\"focus\",function(t){[\"INPUT\",\"TEXTAREA\",\"SELECT\"].indexOf(t.target.nodeName)>-1&&(this.lastInputElementFocused=t.target)}.bind(this),!0),attach(this.node,\"blur\",function(t){[\"INPUT\",\"TEXTAREA\",\"SELECT\"].indexOf(t.target.nodeName)>-1&&(this.lastInputElementFocused=null)}.bind(this),!0))}},CreativeUnit.prototype.exitRenderTree=function(){this._isRendering&&(this._isRendering=!1,this.master&&this.master.exitRenderTree(),this.visibleScreen&&this.visibleScreen.exitRenderTree())},CreativeUnit.prototype._appear=function(){this.loaded||Creative._throw(\"Cannot show the unit before it has finished loading.\"),this.isAppearing&&Creative._throw(\"The unit is already appearing.\"),this.node.parentNode||Creative._throw(\"Creative unit must be added to DOM before show() is called. Animations will start on show().\"),Logger(\"unit\").log(\"Showing \"+this),this.inView&&(this.inView.start(),this.currentScreen&&this.currentScreen.inView&&this.currentScreen.inView.start()),this.hasAppearedAtLeastOnce||(this.placeboBar&&this.placeboBar.start(),this._orientationLockIsOn?this._emitUnitFirstShownAfterOrientationPrompt=!0:this.emit(\"_unitFirstShown\"))},CreativeUnit.prototype._disappear=function(){this.isAppearing||Creative._throw(\"The unit is not appearing, can not disappear.\"),Logger(\"unit\").log(\"Hiding \"+this),this.inView&&this.inView.stop()},CreativeUnit.prototype.createNode=function(){var t=this.unitDiv=CreativeUnit.uber.createNode.call(this);if(t.id=\"celtra-\"+this.name.replace(/[A-Z]/g,function(t){return\"-\"+t.toLowerCase()}),Color.isGradient(this.backgroundColor)?addCssRule(\"#\"+t.id,Color.createGradientStyle(this.backgroundColor)):t.style.backgroundColor=this.backgroundColor,t.style.overflow=this.master.showOverflow?\"visible\":\"hidden\",this.screenContainer=document.createElement(\"div\"),this.screenContainer.className=\"celtra-screen-container\",this.screenContainer.style.position=\"absolute\",t.appendChild(this.screenContainer),this.screenHolder=document.createElement(\"div\"),this.screenHolder.className=\"celtra-screen-holder\",this.screenHolder.style.width=\"100%\",this.screenHolder.style.height=\"100%\",this.screenContainer.appendChild(this.screenHolder),t.style.position=\"absolute\",this.usePlaceboBar){var e=this.loadingScreen&&this.loadingScreen.loaderColor||\"white\";this.placeboBar=new PlaceboBar(5e3,.9,200,e),this.screenContainer.appendChild(this.placeboBar)}if(this.showCloseButton){if(this.closeAction||Creative._throw(\"Close button requested, but no close action defined?\"),this.closeButtonType&&\"text\"===this.closeButtonType){var i=document.createElement(\"div\");i.className=\"celtra-close-button touchable celtra-close-button-text\",i.textContent=this.closeButtonText,i.style.color=this.closeButtonTextColor,this.unitDiv.appendChild(i)}else{var i=document.createElement(\"img\"),n=document.createElement(\"img\");this.closeButtonUp?(this.closeButtonDown||(this.closeButtonDown=this.closeButtonUp),this.closeButtonWidth&&this.closeButtonHeight&&(i.style.width=n.style.width=this.closeButtonWidth+\"px\",i.style.height=n.style.height=this.closeButtonHeight+\"px\")):(this.closeButtonUp=new File(\"runner/clazzes/CreativeUnit/close-up.svg\"),this.closeButtonDown=new File(\"runner/clazzes/CreativeUnit/close-down.svg\")),i.className=\"celtra-close-button touchable celtra-close-button-up\",this._preloadImage(this.closeButtonUp,{force:!1},function(t,e){i.src=e}),n.className=\"celtra-close-button celtra-close-button-down\",this._preloadImage(this.closeButtonDown,{force:!1},function(t,e){n.src=e}),this.closeButtonImage=i,this.closeButtonImagePressed=n,this.unitDiv.appendChild(this.closeButtonImage),this.unitDiv.appendChild(this.closeButtonImagePressed)}attach(i,\"tap\",function(){var t=this.currentScreen||this.visibleScreen;this.closeAction(t?new ActionContext(t,!0):null,{},noop)}.bind(this),!1)}var o=[];o.push({name:\"loading\",fun:function(t){if(this.loadingScreen){var e=creative.perf.start(\"CreativeUnit.loadingScreen\");this.loadingScreen.getNode(function(){defer(function(){e.end(),this._setVisibleScreen(this.loadingScreen),t(!0)}.bind(this),CreativeUnit.DEBUG_EXTRA_PHASE_DELAY,\"CreativeUnit.createNode defer loading phase completion\",useAsap())}.bind(this))}else t(!1)}.bind(this)}),o.push({name:\"interactive\",fun:function(t){var e=creative.perf.start(\"CreativeUnit.firstScreenLoaded\"),i=this.hasScreens?2:1,n=function(){--i||defer(function(){e.end(),defer(this.emits(\"_firstScreenLoaded\"),0,\"CreativeUnit.createNode emit _firstScreenLoaded\",useAsap()),t(!0)}.bind(this),CreativeUnit.DEBUG_EXTRA_PHASE_DELAY,\"CreativeUnit.createNode defer onScreenLoaded\",useAsap())}.bind(this);this.hasScreens&&this._getDestinationScreen().getNode(n),this.master.getNode(n)}.bind(this)}),this.incrementLoadingCount();var r=!1,s=function(){r||Creative._throw(\"Unit still not ready to show after last phase?!\")};return o.reverse().forEach(function(t){var e=s;s=function(){Logger(\"unit\").log(\"Phase '\"+t.name+\"' started.\"),t.fun(function(i){Logger(\"unit\").log(\"Phase '\"+t.name+\"' finished, \"+(i?\"DID\":\"DID NOT\")+\" draw something.\"),i&&(r||(r=!0,this.decrementLoadingCount())),e()}.bind(this))}.bind(this)}.bind(this)),s(),t},CreativeUnit.prototype._repositionCloseButton=function(t){function e(t,e,i){function n(t){return{left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}var o=n(i),r=n(e),s=n(t);s.left=r.left+r.width-s.width,s.top=r.top;var a=o.left<=s.left&&s.left+s.width-1-1,r=!1,a=!1,s=500;return n?(clearTimeout(i.shakeTimeout),i.shakeStartTime||(i.shakeStartTime=new Date),r=t.duration&&(new Date).getTime()-i.shakeStartTime.getTime()>=t.duration,i.shakeTimeout=setTimeout(function(){delete i.shakeStartTime,i.triggered=!1},s),r&&!i.triggered&&(a=!0,i.triggered=!0),a):!1},null,t)}},Screen.prototype.enterRenderTree=function(){this._isRendering||(this._isRendering=!0,this.emit(\"enteredRenderTree\"))},Screen.prototype.exitRenderTree=function(){this._isRendering&&(this._isRendering=!1,this.emit(\"exitedRenderTree\"))},Screen.prototype._updateSize=function(){this.emit(\"resize\")},Screen.prototype.finishedLoading=function(){Screen.uber.finishedLoading.call(this),Logger(\"unit\").log(\"Finished loading \"+this)},Screen.prototype.triggerBeforeAppear=function(e){var t=new ActionContext(this,{certainlyNotCausedByUserBehavior:!!this.parentUnit.firstAppearWithoutUserInteraction&&!this.appearedAtLeastOnce&&(this.isFirstScreen()||this.isMasterScreen())});this.fireTriggers(\"beforeAppear\",null,e,t)},Screen.prototype.triggerOrientationChange=function(e){this.fireTriggers(\"orientationChange\",null,e)},Screen.prototype.getMaxZIndex=function(){var e=0;return this.objects.forEach(function(t){t.zIndex>e&&(e=t.zIndex)}),e},Screen.prototype.inViewTriggerSetup=function(){var e=!1;this.triggers.forEach(function(t){(\"enterView\"===t.type||\"leaveView\"===t.type)&&(e=!0,this.inViewAreaRatio=0)},this),e&&this.inView.on(\"areaInViewRatioChanged\",this.triggerInView.bind(this))},Screen.prototype.triggerInView=function(e){var t=new ActionContext(this),i=\"enterView\",n=this.inViewAreaRatio,r=e,a=function(e,t){return e.parameters.area-t.parameters.area};e=n&&r>=t},null,t,a),this._getTriggers(i,function(e){var t=e.area/100;return t>=n&&r>=t}),this.inViewAreaRatio=e},Screen.prototype.getActionsExecutedOnAppear=function(){var e=!this.appearedAtLeastOnce,t=new ActionContext(this,{certainlyNotCausedByUserBehavior:!!this.parentUnit.firstAppearWithoutUserInteraction&&e&&(this.isFirstScreen()||this.isMasterScreen())}),i=this.fireTriggersDryRun(\"beforeAppear\",null,noop,t);return e&&(i=i.concat(this.fireTriggersDryRun(\"firstAppear\",null,noop,t))),i.concat(this.fireTriggersDryRun(\"appear\",null,noop,t))},Screen.prototype.resetAction=function(e,t,i){var n=this.findAll(),r=n.length;r?n.forEach(function(n){n.resetAction(e,t,function(){--r||i()})}):i()},Screen.prototype.shuffleAction=function(e,t,i){function n(e){for(var t,i,n=e.length;0!==n;)i=Math.floor(Math.random()*n),n-=1,t=e[n],e[n]=e[i],e[i]=t;return e}var r=n(t.objects.map(function(e){return JSON.parse(JSON.stringify(e.layoutSpecificValues))}));t.objects.forEach(function(e,t){e.layoutSpecificValues.forEach(function(e,i){e.position=r[t][i].position}),e._refreshDisplayState()}),i&&i()},Screen.prototype._trackViewShown=function(){Screen.uber._trackViewShown.call(this,{isMasterScreen:this.isMasterScreen(),isLoadingScreen:this.isLoadingScreen()})};;\nfunction NestedContainer(){}inherit(NestedContainer,ScreenObjectContainer),extend(NestedContainer.prototype,TriggerHost),NestedContainer.toString=function(){return\"[Clazz NestedContainer]\"},NestedContainer.prototype.toString=function(){return\"[NestedContainer \"+this.localId+\"]\"},NestedContainer.prototype.createNode=function(){var e=NestedContainer.uber.createNode.call(this);return this.node=e,this._updateSize=this._updateSize.bind(this),this.enterRenderTree=this.enterRenderTree.bind(this),this.exitRenderTree=this.exitRenderTree.bind(this),this.parentObject.on(\"enteredRenderTree\",this.enterRenderTree),this.parentObject.on(\"exitedRenderTree\",this.exitRenderTree),this.objects.forEach(function(t){this.incrementLoadingCount(),e.appendChild(t.getNode(this.decrementLoadingCount))}.bind(this)),0===this.objects.length&&(e.className+=\" empty\"),this.parentObject.parentContainer.on(\"resize\",this._updateSize),e},NestedContainer.prototype.redrawLayout=function(){this.node.style.width=this.layoutCurrent.size.width,this.node.style.height=this.layoutCurrent.size.height,this.node.style.position=\"relative\",this.node.style.overflow=\"hidden\"},NestedContainer.prototype._updateSize=function(){this.redrawLayout(),this.emit(\"resize\")},NestedContainer.prototype.enterRenderTree=function(){this.emit(\"enteredRenderTree\"),this._updateSize()},NestedContainer.prototype.exitRenderTree=function(){this.emit(\"exitedRenderTree\")},NestedContainer.prototype.onFocus=function(e){this.hasTriggers(\"itemFocus\")&&this.fireTriggers(\"itemFocus\",null,e,new ActionContext(this.parentObject))},NestedContainer.prototype.onBlur=function(e){this.hasTriggers(\"itemBlur\")&&this.fireTriggers(\"itemBlur\",null,e,new ActionContext(this.parentObject))},Object.defineProperty(NestedContainer.prototype,\"layoutCurrent\",{get:function(){return this.layoutSpecificValues[this.parentUnit.layoutCurrentIndex]}}),Object.defineProperties(NestedContainer.prototype,{size:{get:function(){var e,t=this.layoutCurrent.size,i=parseFloat(t.width),n=parseFloat(t.height);return t.width.toString().indexOf(\"%\")>-1&&(e=this.parentObject.getNaturalSize(),i=e.width*i/100),t.height.toString().indexOf(\"%\")>-1&&(e||(e=this.parentObject.getNaturalSize()),n=e.height*n/100),{width:Math.round(i),height:Math.round(n)}}}});;\nfunction ScreenObject(){}inherit(ScreenObject,View),extend(ScreenObject.prototype,TriggerHost),extend(ScreenObject.prototype,DiscoverableTrait),ScreenObject.requiresRedrawToTriggerAnimationEvents=android(\"4.0\"),ScreenObject.redrawTriggerInterval=60,ScreenObject.toString=function(){return\"[Clazz ScreenObject]\"},ScreenObject.prototype.toString=function(){return\"[ScreenObject \"+this.localId+\" (name=\"+this.name+\")]\"},ScreenObject.allowPositioningAndSizingUsingTransforms=!android(\"2.2\",\"2.3\")||celtra.iframe(),ScreenObject._zIndexOffset=1e4,ScreenObject._resettableProperties=[\"position\",\"size\",\"rotation\",\"zIndex\",\"opacity\",\"hidden\"],ScreenObject._3dTransformBlacklisted=function(t){return/Silk\\/\\d|Kindle Fire| KFTT | KFOT | KFJWI | KFJWA |\\bGT-P3100\\b| HTC[ _]One[ _]S /.test(t)||/\\bGT-I9300\\b/.test(t)&&android(\"4.0\")}(navigator.userAgent),ScreenObject.supports3d=function(){var t=\"WebKitCSSMatrix\"in window&&\"m11\"in new WebKitCSSMatrix||\"MSCSSMatrix\"in window||/Gecko\\//.test(navigator.userAgent);return t&&!this._3dTransformBlacklisted}(),ScreenObject.requires3dTranslateForPositioning=/GT-I9500|GT-I9505|SM-N900|GT-P5210|SM-T520/.test(navigator.userAgent),ScreenObject.dummyImageSpacer=windows(\"10\"),ScreenObject._toPositionPx=function(t,e,i){var n,r,s,o,a=i.width,c=i.height,h=e.width,u=e.height;return[\"left\",\"right\",\"hcenter\"].forEach(function(e){e in t&&(n=e)}),[\"bottom\",\"top\",\"vcenter\"].forEach(function(e){e in t&&(r=e)}),s=t[n],o=t[r],s=s.indexOf(\"%\")>-1?a*parseFloat(s)/100:parseFloat(s),\"hcenter\"===n?s=(a-h)/2+s:\"right\"===n&&(s=a-(s+h)),o=o.indexOf(\"%\")>-1?c*parseFloat(o)/100:parseFloat(o),\"vcenter\"===r?o=(c-u)/2+o:\"bottom\"===r&&(o=c-(o+u)),{x:ScreenObject._roundIfNeeded(s),y:ScreenObject._roundIfNeeded(o)}},ScreenObject._toSizePx=function(t,e){var i=parseFloat(t.width),n=parseFloat(t.height),r=e.width,s=e.height;return t.width.toString().indexOf(\"%\")>-1&&(i=r*i/100),t.height.toString().indexOf(\"%\")>-1&&(n=s*n/100),{width:ScreenObject._roundIfNeeded(i),height:ScreenObject._roundIfNeeded(n)}},ScreenObject._roundIfNeeded=function(t){return Math.round(t)},Object.defineProperty(ScreenObject.prototype,\"layoutCurrent\",{get:function(){return null==this.layoutCurrentIndex?this.layoutSpecificValues[0]:this.layoutSpecificValues[this.layoutCurrentIndex]},enumerable:!0,configurable:!1}),Object.defineProperty(ScreenObject.prototype,\"layoutCurrentIndex\",{get:function(){return this.parentUnit.layoutCurrentIndex},enumerable:!0,configurable:!1}),ScreenObject._Position=function(t,e){this._instance=t,this._position=e},Object.defineProperties(ScreenObject._Position.prototype,{x:{get:function(){return this._position.x},set:function(t){delete this._instance.layoutCurrent.right,delete this._instance.layoutCurrent.hcenter,this._instance.layoutCurrent.position.left=t+(\"number\"==typeof t?\"px\":\"\")}},y:{get:function(){return this._position.y},set:function(t){delete this._instance.layoutCurrent.bottom,delete this._instance.layoutCurrent.vcenter,this._instance.layoutCurrent.position.top=t+(\"number\"==typeof t?\"px\":\"\")}}}),ScreenObject._Size=function(t,e){this._instance=t,this._size=e},Object.defineProperties(ScreenObject._Size.prototype,{width:{get:function(){return this._size.width},set:function(t){this._instance.layoutCurrent.size.width=t+(\"number\"==typeof t?\"px\":\"\")}},height:{get:function(){return this._size.height},set:function(t){this._instance.layoutCurrent.size.height=t+(\"number\"==typeof t?\"px\":\"\")}}}),Object.defineProperties(ScreenObject.prototype,{position:{get:function(){var t=ScreenObject._toPositionPx(this.layoutCurrent.position,this.size,this.parentContainer.size);return new ScreenObject._Position(this,t)},set:function(t){delete this.layoutCurrent.position.right,delete this.layoutCurrent.position.hcenter,delete this.layoutCurrent.position.bottom,delete this.layoutCurrent.position.vcenter,this.layoutCurrent.position.left=t.left,this.layoutCurrent.position.top=t.top}},originalSize:{get:function(){var t=this.layoutCurrentIndex||0;return ScreenObject._toSizePx(JSON.parse(this.originalLayoutSpecificValues)[t].size,this.parentContainer.size)},set:function(){throw new Error(\"originalSize is not settable!\")}},size:{get:function(){var t=ScreenObject._toSizePx(this.layoutCurrent.size,this.parentContainer.size);return new ScreenObject._Size(this,t)},set:function(t){this.layoutCurrent.size.width=t.width,this.layoutCurrent.size.height=t.height}},opacity:{get:function(){return this.layoutCurrent.opacity},set:function(t){this.layoutCurrent.opacity=t}},rotation:{get:function(){return this.layoutCurrent.rotation},set:function(t){this.layoutCurrent.rotation=t}},hidden:{get:function(){return this.layoutCurrent.hidden},set:function(t){this.layoutSpecificValues.forEach(function(e){e.hidden=t})}}}),ScreenObject.getCSSTranslate=function(t,e){return ScreenObject.requires3dTranslateForPositioning?\"translate3d(\"+t+\"px,\"+e+\"px, 0)\":\"translate(\"+t+\"px,\"+e+\"px)\"},ScreenObject.prototype._copyChosenExperimentProperties=function(t){var e,i,n=this.experimentSpecificValues[t];this.creativeOptimizationEnabled&&(i=creative.experiments.get(t,[creative.id,this.localId]),e=n.filter(function(t){return String(t.id)===i.chosenVariant}.bind(this))[0]),e||(e=n[0]);var r={};return deep(r,e),delete r.id,delete r.label,deep(this,r),i},ScreenObject.prototype._applyExperiments=function(){throw new Error(\"_applyExperiments not implemented\")},ScreenObject.prototype.awake=function(){ScreenObject.uber.awake.call(this),this.originalLayoutSpecificValues=JSON.stringify(this.layoutSpecificValues),this.originalZIndex=this.zIndex,this.finishAnimation=this.finishAnimation.bind(this),this._refreshDisplayState=this._refreshDisplayState.bind(this)},ScreenObject.prototype.enterRenderTree=function(){this._isRendering||(this._isRendering=!0,this.emit(\"enteredRenderTree\"))},ScreenObject.prototype.exitRenderTree=function(){this._isRendering&&(this._isRendering=!1,this._isInMouseOver&&trigger(this.node,\"mouseout\",!1),this.emit(\"exitedRenderTree\"))},ScreenObject.prototype.react=function(t){var e=this.parentUnit.getRxStateObject(),i=function(){this._isRendering&&t.call(this,e)}.bind(this);null!==e&&(this._rxListeners.push(i),Ticker.frame(i,\"render\"))},ScreenObject.prototype.appearNestedObjects=function(){this.getNestedContainers().forEach(function(t){t.appear(),t.appearNestedObjects(t.objects)},this)},ScreenObject.prototype.disappearNestedObjects=function(){this.getNestedContainers().forEach(function(t){t.disappearNestedObjects(t.objects),t.disappear()},this)},ScreenObject.prototype.initTemplates=function(){var t=this.templates={},e=this.constructor.templates;if(e){for(var i in e)\"string\"==typeof e[i]&&(e[i]=tmpl(e[i]));extend(t,e)}},ScreenObject.prototype.tmpl=function(t,e,i){this.templates||this.initTemplates();var n=this.templates[t];return n?n.call(i||this,e):\"Missing template: \"+t},ScreenObject.prototype.template=function(t,e,i){var n,r=document.createElement(\"div\");r.innerHTML=this.tmpl(t,e);var s=r.firstChild;if(i)for(;n=r.firstChild;)i.appendChild(n);return s},ScreenObject.prototype.ifNotClosing=function(t,e,i){var n=this.fireTriggersDryRun(t,null,noop,e)._actions,r=[\"dismiss\",\"collapse\"],s=!n.some(function(t){return r.indexOf(t.method)>-1});s&&i()},ScreenObject.prototype.createNode=function(){this.experimentSpecificValues&&this._applyExperiments(),this._isInMouseOver=!1;var t=this,e=ScreenObject.uber.createNode.call(t);e.style.position=\"absolute\",this.hasTriggers(\"tap\")&&(addClass(e,\"touchable\"),attach(e,\"tap\",function(){var e=new ActionContext(t,!0);t.ifNotClosing(\"tap\",e,e.trackUserInteraction),t.fireTriggers(\"tap\",null,null,e)},!1));var i=\"mouseOver\",n=[];if(this.hasTriggers(i)){var r=this._getTriggers(i,null),s=[],o=noop;r.forEach(function(t){t.parameters&&t.parameters.delay&&s.indexOf(t.parameters.delay)<0&&s.push(t.parameters.delay)}),attach(e,\"mouseover\",function(){var e=new ActionContext(t,!0),r=function(n){return function(){t.fireTriggers(i,function(t){return t.delay==n},null,e)}};t._isInMouseOver=!0,s.forEach(function(t,e){o=r(t),n[e]=setTimeout(o,t)})},!1)}return attach(e,\"mouseout\",function(){var e=new ActionContext(t,!0);t._isInMouseOver=!1,n.forEach(clearTimeout),n=[],t.hasTriggers(\"mouseOut\")&&t.fireTriggers(\"mouseOut\",null,null,e)},!1),attach(e,\"touchstart\",function(){if(t.hasTriggers(\"touchstart\")){var e=new ActionContext(t,!0);t.ifNotClosing(\"touchstart\",e,e.trackUserInteraction),t.fireTriggers(\"touchstart\",null,null,e)}},!1),attach(e,\"touchend\",function(){if(t.hasTriggers(\"touchend\")){var e=new ActionContext(t,!0);t.ifNotClosing(\"touchend\",e,e.trackUserInteraction),t.fireTriggers(\"touchend\",null,null,e)}},!1),this.hasTriggers(\"swipe\")&&(attach(e,\"touchstart\",function(t){t.stopPropagation()}),new SwipeListener({target:e,swipe:function(e,i){var n=new ActionContext(t,!0);t.fireTriggers(\"swipe\",function(r){var s=e==r.direction&&i>=r.length;return s&&t.ifNotClosing(\"swipe\",n,n.trackUserInteraction),s},null,n)}})),attach(e,\"transitionend\",function(t){t.stopPropagation()},!1),this.parentContainer.on(\"resize\",this._refreshDisplayState),this.parentContainer.on(\"enteredRenderTree\",function(){this.hidden||this.enterRenderTree()}.bind(this)),this.parentContainer.on(\"exitedRenderTree\",function(){this.hidden||this.exitRenderTree()}.bind(this)),this.layoutPrevious=this.layoutCurrent,this.parentUnit.on(\"layoutChanged\",this.handleLayoutChanged.bind(this)),this._applyStyles(e,this._calculateNewStyleAttributes()),this.positionUsingTransforms()||deviceInfo.browser.safari(\"9.0.0\",null)||(e.style.outline=\"1px solid transparent\"),this._rxListeners=[],e},ScreenObject.prototype.positionUsingTransforms=retFalse,ScreenObject.prototype.sizeUsingTransforms=retFalse,ScreenObject.prototype.isValid=retTrue,ScreenObject.prototype.getNaturalSize=function(){return this.originalSize},ScreenObject.prototype._calculateNewStyleAttributes=function(){var t={transform:\"\",transformOrigin:\"50% 50%\"},e=this.getNaturalSize(),i=this.position.x,n=this.position.y;if(this.sizeUsingTransforms()&&(i+=ScreenObject._roundIfNeeded((this.size.width-e.width)/2),n+=ScreenObject._roundIfNeeded((this.size.height-e.height)/2)),this.positionUsingTransforms()?(t.left=\"0\",t.top=\"0\",(i||n)&&(t.transform+=ScreenObject.getCSSTranslate(i,n))):(t.left=i+\"px\",t.top=n+\"px\"),(this.isAnimated||0!=this.rotation)&&(t.transform+=\" rotate(\"+this.rotation+\"deg) \"),this.sizeUsingTransforms()){t.width=e.width+\"px\",t.height=e.height+\"px\";var r=this.size.width/e.width,s=this.size.height/e.height;t.transform+=\" scale(\"+r+\", \"+s+\")\"}else t.width=this.size.width+\"px\",t.height=this.size.height+\"px\";return t.zIndex=this.zIndex,t.opacity=this.opacity,t.display=this.hidden?\"none\":\"block\",t},ScreenObject.prototype._applyStyles=function(t,e){e&&Object.keys(e).forEach(function(i){celtra.styler.css(t,i,e[i])})},ScreenObject.prototype._refreshDisplayState=function(){if(this.node){var t=this._calculateNewStyleAttributes(),e=!1;for(var i in t){var n=String(t[i]).replace(/^\\s*|\\s*$/g,\"\"),r=celtra.styler.css(this.node,i),s=null;celtra.styler.css(this.node,i)!==n&&(s=n,r!=s&&\"zIndex\"!=i&&\"display\"!=i&&(e=!0))}return this._applyStyles(this.node,t),this.redrawLayout(),e}},ScreenObject.prototype.finishAnimation=function(){this.node&&void 0!==celtra.styler.css(this.node,\"transitionDuration\")&&(celtra.styler.css(this.node,\"transitionDuration\",\"1ms\"),this.node.offsetWidth,celtra.styler.css(this.node,\"transitionDuration\",\"\"))},ScreenObject.prototype.handleLayoutChanged=function(){var t=function(){this.layoutPrevious.hidden&&!this.layoutCurrent.hidden?this.enterRenderTreeAndAppear(!0):!this.layoutPrevious.hidden&&this.layoutCurrent.hidden&&this.parentContainer._isRendering&&this.exitRenderTree(),this.layoutPrevious=this.layoutCurrent}.bind(this);ios()?defer(t):t(),this.finishAnimation(),this._refreshDisplayState()},ScreenObject.prototype.redrawLayout=function(){},ScreenObject.prototype.setPosition=function(t,e){this.position={left:t+\"px\",top:e+\"px\"},this._refreshDisplayState()},ScreenObject.prototype.getPosition=function(){return{x:this.position.x,y:this.position.y}},ScreenObject.prototype.setSize=function(t,e){this.size.width=t,this.size.height=e,this._refreshDisplayState()},ScreenObject.prototype.getSize=function(){return{width:this.size.width,height:this.size.height}},ScreenObject.prototype.setOpacity=function(t){this.opacity=t,this._refreshDisplayState()},ScreenObject.prototype.getOpacity=function(){return this.opacity},ScreenObject.prototype.animateAction=function(t,e,i){function n(t){return!isNaN(parseFloat(t))&&isFinite(t)}function r(t){var e={position:{},size:{width:null,height:null},zIndex:null,opacity:null,rotation:null};return deep(e,t),e}function s(t,e){var i=e.size,n=t.size;null==i.width&&(i.width=n.width),null==i.height&&(i.height=n.height),t.size=i;var r=t.position,s=e.position,o=null,a=null,c=null,h=null;[\"left\",\"right\",\"hcenter\"].forEach(function(t){t in r&&(o=t),t in s&&(c=t)}),[\"bottom\",\"top\",\"vcenter\"].forEach(function(t){t in r&&(a=t),t in s&&(h=t)}),c&&null!==s[c]&&(delete r[o],r[c]=s[c]),h&&null!==s[h]&&(delete r[a],r[h]=s[h]),null!=e.rotation&&(t.rotation=e.rotation),null!=e.opacity&&(t.opacity=e.opacity),null!=e.zIndex&&(t.zIndex=e.zIndex)}i=i||noop,this.isAnimated=!0;var o=\"undefined\"!=typeof e.duration?e.duration:1e3,a=e.timingFunction||\"linear\";if(e.layoutSpecificValues)e.layoutSpecificValues.forEach(function(t,e){this.layoutSpecificValues[e]&&s(this.layoutSpecificValues[e],r(t))}.bind(this));else{var c=r(e.properties);null!=c.position.x&&(c.position.left=c.position.x+\"px\"),null!=c.position.y&&(c.position.top=c.position.y+\"px\"),null!=c.zIndex&&(c.zIndex=c.zIndex+ScreenObject._zIndexOffset,this.zIndex=c.zIndex),null!=c.size.width&&n(c.size.width)&&(c.size.width+=\"px\"),null!=c.size.height&&n(c.size.height)&&(c.size.height+=\"px\"),s(this.layoutCurrent,c)}var h=this.node;celtra.styler.css(h,\"transition\",\"\"),celtra.styler.css(h,\"transitionProperty\",\"all\"),celtra.styler.css(h,\"transitionDuration\",o+\"ms\"),celtra.styler.css(h,\"transitionTimingFunction\",a);var u=this._refreshDisplayState();if(o>0&&u){var l=!1,p=function(){l||(l=!0,i())};ScreenObject.requiresRedrawToTriggerAnimationEvents&&!function(){var t=Date.now(),e=t+(Number(o)||0),i=function(){flash(),Date.now()0?o:0;setTimeout(i,d)}},ScreenObject.prototype.enterRenderTreeAndAppear=function(t){t&&this.parentScreen._isRendering&&this.enterRenderTree(),t&&!this.isAppearing&&this._shouldAppear&&this.appear()},ScreenObject.prototype.scaleAction=function(t,e,i){var n=e.useOriginalSize?this.originalSize:this.size,r=e.scale/100,s={width:n.width*r,height:n.height*r},o={x:this.position.x+this.size.width/2-s.width/2,y:this.position.y+this.size.height/2-s.height/2};this.animateAction(t,{properties:{position:o,size:s},duration:e.duration,timingFunction:e.timingFunction},i)},ScreenObject.prototype.showAction=function(t,e,i){var n=this.hidden;this.hidden=!1,this.node.style.display=\"block\",this.enterRenderTreeAndAppear(n),this.node.offsetWidth,nextFrame(i)},ScreenObject.prototype.hideAction=function(t,e,i){var n=this.hidden;this.hidden=!0,this.node.style.display=\"none\",!n&&this.parentScreen._isRendering&&(this.isAppearing&&(this.disappear(),this._shouldAppear=!0),this.exitRenderTree()),setTimeout(i,0)},ScreenObject.prototype.isHidden=function(){return this.hidden},ScreenObject.prototype.resetAction=function(t,e,i){this.layoutSpecificValues=JSON.parse(this.originalLayoutSpecificValues),this.reset(),this.zIndex=this.originalZIndex,this.finishAnimation(),this._refreshDisplayState(),defer(i)},ScreenObject.prototype.addStyle=function(t){var e=\"#celtra-object-\"+this.localId,i=this.node,n=/^:(link|visited|active|hover|focus|first-child|nth-child|nth-last-child|nth-of-type|first-of-type|last-of-type|empty|target|checked|enabled|disabled)/,r=/,\\s*/g;this.styleNode||(this.styleNode=document.createElement(\"style\"),i||(i=document.getElementsByTagName(\"head\")[0]),i.appendChild(this.styleNode));var s=[];for(var o in t)s.push({selector:o.split(r).map(function(t){return e+(n.test(t)?\"\":\" \")+t}).join(\",\"),attributes:t[o]});var a=this._styleSheetTemplate({rules:s});this.styleNode.textContent+=a},ScreenObject.prototype._styleSheetTemplate=tmpl(\"<% for (var i = 0; i < rules.length; i++) { %><%= rules[i].selector %> { <%= rules[i].attributes %> }\\n<% } %>\"),ScreenObject.prototype.css=function(t,e){\"undefined\"==typeof e&&(e=t,t=this.getNode()),Object.keys(e).forEach(function(i){celtra.styler.css(t,i,e[i])})},ScreenObject.prototype.getNestedContainers=function(){return[]},ScreenObject.prototype.getActiveContainers=function(){return this.getNestedContainers()};;\nfunction Hotspot(){}inherit(Hotspot,ScreenObject),Hotspot.toString=function(){return\"[Clazz Hotspot]\"},Hotspot.prototype.toString=function(){return\"[Hotspot \"+this.localId+\"]\"},Hotspot.prototype.createNode=function(){var t=Hotspot.uber.createNode.call(this);return addClass(t,\"touchable\"),attach(t,\"tap\",this.handleTap),t},Hotspot.prototype.handleTap=function(t){t.stopPropagation()};;\nfunction Group(){}inherit(Group,ScreenObject),Group.toString=function(){return\"[Clazz Group]\"},Group.prototype.toString=function(){return\"[Group \"+this.localId+\"]\"},Group.prototype.createNode=function(){var t=Group.uber.createNode.call(this);return this.incrementLoadingCount(),t.appendChild(this.content.getNode(this.decrementLoadingCount)),t},Group.prototype.getNestedContainers=function(){return[this.content]},Group.prototype.positionUsingTransforms=ios(\"8\")?retFalse:retTrue,Group.prototype.sizeUsingTransforms=retTrue,Group.prototype.getNaturalSize=function(){return this.originalSize},Group.prototype._appear=function(){this.appearNestedObjects()},Group.prototype._disappear=function(){this.disappearNestedObjects()};var ObjectGroup=Group;;\nfunction Picture(){}inherit(Picture,ScreenObject),Picture.toString=function(){return\"[Clazz Picture]\"},Picture.prototype.toString=function(){return\"[Picture \"+this.localId+\"]\"},Picture.prototype.createNode=function(){var e=new File(\"runner/image-placeholder.png\");e.meta={height:28,width:28},this.file||(this.file=e);var i={};this._useDynamicImage=\"feed\"===this.assetSource&&null!=this.feedFieldKey&&\"string\"==typeof creative.runtimeParams.dynamicContent[this.feedFieldKey],\"feed\"===this.assetSource&&creative.checkAndTrackFeedValueMissing(new ActionContext(this),this.feedFieldKey),this._useDynamicImage&&(this.file=new File,this.file.url=creative.runtimeParams.dynamicContent[this.feedFieldKey],this.file.meta=ScreenObject._toSizePx(this.layoutCurrent.size,this.parentContainer.size),i.force=!1);var t=Picture.uber.createNode.call(this);return this.file===e?((\"feed\"!=this.assetSource||\"feed\"===this.assetSource&&null===this.feedFieldKey)&&(addClass(t,\"empty\"),this._preloadImage(new File(\"runner/image-placeholder.png\"),{force:!1},function(e,i){t.style.backgroundImage=\"url(\"+i+\")\"})),t):(this._preloadImage(this.file,i,this._handlePreloadedImage.bind(this,t)),t)},Picture.prototype._handlePreloadedImage=function(e,i){this._useDynamicImage&&(this.file.meta={height:i.naturalHeight,width:i.naturalWidth});var t=\"\",r=\"\",s=\"no-repeat\";this.imagePosition&&(t=this.imagePosition.replace(\"-\",\" \"));var a=this.sizeUsingTransforms()?this.getNaturalSize():this.size,n=this.fittingSize;switch(\"fitUpToOriginal\"===this.fittingSize&&(n=a.widthl&&\"fit\"==this.fittingSize||l>n&&\"fill\"==this.fittingSize,i=l>n&&\"fit\"==this.fittingSize||n>l&&\"fill\"==this.fittingSize,t=s,r=a,e?r=s/h*o:i&&(t=a/o*h),t>c&&(r*=c/t,t=c),r>c&&(t*=c/r,r=c),{width:t,height:r})},Picture.prototype.getImageUrl=function(){return this.file?this.file.getUrl():void 0};;\nfunction Texty(){}inherit(Texty,ScreenObject),extend(Texty.prototype,TextStyleIntegrator),Texty.toString=function(){return\"[Clazz Texty]\"},Texty.prototype.toString=function(){return\"[Texty \"+this.localId+\"]\"},Texty.prototype.awake=function(){Texty.uber.awake.call(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this)},Texty.prototype.createNode=function(){var t=Texty.uber.createNode.call(this);if(this.scroller=null,this._autoscrolling=!1,this._listeningForTouches=!1,this._textToSet=!1,this._sanitizeText=!0,this._fontScaleFactor=1,this._lineHeightRatio=1,this._letterSpacingRatio=1,this._responsiveFontSize=this._getNaturalFontSize(),this.dynamicContentEnabled){creative.checkAndTrackFeedValueMissing(new ActionContext(this),this.feedFieldKey);var e=\"\";null!=this.feedFieldKey&&\"string\"==typeof creative.runtimeParams.dynamicContent[this.feedFieldKey]&&(e=creative.runtimeParams.dynamicContent[this.feedFieldKey]),this.text=e}return this._initialText=this.text,this._initialScaleFont=this.scaleFont,this._scrollContainer=document.createElement(\"div\"),this._scrollContainer.className=\"scroll-container\",this._textContainer=document.createElement(\"div\"),this._textContainerClone=document.createElement(\"div\"),this._textContainerClone.style.display=\"none\",this._textContainerResponsive=document.createElement(\"div\"),this._textContainerResponsive.style.visibility=\"hidden\",(deviceInfo.browser.chrome(null,\"48\")||\"Samsung Browser\"===deviceInfo.browser.name)&&(this._textContainer.style.textRendering=\"geometricPrecision\",this._textContainerClone.style.textRendering=\"geometricPrecision\",this._textContainerResponsive.style.textRendering=\"geometricPrecision\"),this.scrollable&&(this.scroller=new Scroller(t,this._textContainer,{direction:\"vertical\",animating:!0,easing:!0,locking:!1,scrollbarPosition:this.scrollbarPosition,scrollbarColor:this.scrollbarColor})),this.initializeFont(),this._scrollContainer.appendChild(this._textContainer),this._scrollContainer.appendChild(this._textContainerClone),this._scrollContainer.appendChild(this._textContainerResponsive),t.appendChild(this._scrollContainer),this._startListeningForTouches(),t},Texty.prototype._appear=function(){this._handleSizeUpdate()},Texty.prototype.redrawLayout=function(){this._handleSizeUpdate()},Texty.prototype._handleSizeUpdate=function(){this._applyTextSize(),this._updateText()},Texty.prototype._applyTextSize=function(){this.responsiveFont||(this.applyTextSize(this._textContainer.style),this.applyTextSize(this._textContainerClone.style)),this._alignText()},Texty.prototype._alignText=function(){var t=this._getDefaultPadding(),e=t,i=t,n=parseInt(this._textContainer.style.paddingLeft,10),o=parseInt(this._textContainer.style.paddingRight,10);if(\"undefined\"!=typeof this.scaleFont&&this.scaleFont&&(\"right\"!=this.textAlign||isNaN(n)?\"left\"!=this.textAlign||isNaN(o)||(i=o-t):e=n-t),[this._textContainer,this._textContainerClone].forEach(function(n){n.style.paddingBottom=t+\"px\",n.style.paddingLeft=Math.max(e,t)+\"px\",n.style.paddingRight=Math.max(i,t)+\"px\"}),this.scrollable||this._scrollContainer.offsetHeight<=this._textContainer.offsetHeight||\"undefined\"==typeof this.textAlignVertical)return void(this._textContainer.style.paddingTop=t+\"px\");this._textContainerClone.style.display=\"inline\",this._textContainerClone.style.paddingTop=0,this._textContainerClone.style.height=0;var s=this.scrollable?0:Number(this.textAlignVertical),h=this.getNaturalSize().height,a=0===s?0:this._textContainerClone.scrollHeight,r=Math.max(0,(h-a)*s/100),l=0;r=isNaN(r)?0:r,l=s>50&&h>a?-t:50==s&&h>a?t/2:t,this._textContainer.style.marginTop=r+l+\"px\",this._textContainer.style.paddingTop=\"0px\",this._textContainerClone.style.display=\"none\"},Texty.prototype._getContentSizeOfResponsiveContainer=function(){var t=this._textContainerResponsive.getBoundingClientRect(),e=this._textContainerResponsive.scrollHeight+(parseInt(t.height)-t.height),i=this._textContainerResponsive.scrollWidth+(parseInt(t.width)-t.width);return{width:i,height:e}},Texty.prototype._applyAdjustedFontSizeStyle=function(t){var e=this._responsiveFontSize*this._fontScaleFactor;t.style.fontSize=e+\"px\",t.style.lineHeight=Math.max(1,e*this._lineHeightRatio)+\"px\",t.style.letterSpacing=Math.max(0,e*this._letterSpacingRatio)+\"px\"},Texty.prototype._adjustFontSize=function(){if(this.responsiveFont&&!hasClass(this.node,\"animated\")){var t=.5,e=this.getFontSize(),i=this._getNaturalFontSize(),n=Math.max(Math.round(i*t),1);this._fontScaleFactor=e/i;var o=1/this._fontScaleFactor;this._responsiveFontSize=i;var s=Math.max(1,this.getLineSpacing()+e);this._lineHeightRatio=s/e,this._letterSpacingRatio=this.getLetterSpacing()/e;var h=this.getNaturalSize();this._applyAdjustedFontSizeStyle(this._textContainerResponsive);for(var a=this._getContentSizeOfResponsiveContainer();this._responsiveFontSize>n&&(a.height>h.height||a.width>h.width);)this._responsiveFontSize-=o,this._applyAdjustedFontSizeStyle(this._textContainerResponsive),a=this._getContentSizeOfResponsiveContainer();this._applyAdjustedFontSizeStyle(this._textContainer),this._applyAdjustedFontSizeStyle(this._textContainerClone)}},Texty.prototype.updateTextStyle=function(){this.applyTextStyle(this._textContainer.style),this.applyTextStyle(this._textContainerClone.style),this.applyTextStyle(this._textContainerResponsive.style),this._textContainer.style.whiteSpace=\"pre-wrap\",this._textContainerClone.style.whiteSpace=\"pre-wrap\",this._textContainerResponsive.style.whiteSpace=\"pre-wrap\"},Texty.prototype._updateText=function(){var t=this._sanitizeText?htmlentitize(this.text.toString()):this.text;this._textContainer.innerHTML=t,this._textContainerClone.innerHTML=t,this._textContainerResponsive.innerHTML=t,this._adjustFontSize(),this._alignText(),this.scrollable&&(this.scroller.redraw(),this.scroller.scrollTo(0,0,!1),this.autoscrollEnabled&&(this._resetAutoScroll(),this._createAutoScroll()))},Texty.prototype._createAutoScroll=function(){var t=this.scroller.getMaxScroll();defer(function(){this.scroller.scrollTo(t.left,t.top,!0,this.autoscrollDuration,!0,function(){\"return\"===this.autoscrollConclusion?this.scroller.scrollTo(0,0,!0,this.autoscrollDuration,!0):\"loop\"===this.autoscrollConclusion&&(this._autoscrolling=!0,e())}.bind(this))}.bind(this),this.autoscrollDelay);var e=function(){this._autoscrolling&&this.scroller.scrollTo(0,0,!0,this.autoscrollDuration,!0,function(){this.scroller.scrollTo(t.left,t.top,!0,this.autoscrollDuration,!0,e)}.bind(this))}.bind(this)},Texty.prototype._resetAutoScroll=function(){this._autoscrolling=!1},Texty.prototype._handleTouchStart=function(t){t.preventDefault(),new ActionContext(this,!0).trackUserInteraction(),this.scrollable&&(this._resetAutoScroll(),t.stopPropagation(),this.scroller._handleTouchStart(t),attach(this.parentUnit.node,\"touchmove\",this._handleTouchMove),attach(this.parentUnit.node,\"touchend\",this._handleTouchEnd),attach(this.parentUnit.node,\"touchcancel\",this._handleTouchCancel))},Texty.prototype._handleTouchMove=function(t){t.preventDefault(),this.scroller._handleTouchMove(t)},Texty.prototype._handleTouchEnd=function(t){t.preventDefault(),this.scroller._handleTouchEnd(t),detach(this.parentUnit.node,\"touchmove\",this._handleTouchMove),detach(this.parentUnit.node,\"touchend\",this._handleTouchEnd),detach(this.parentUnit.node,\"touchcancel\",this._handleTouchCancel)},Texty.prototype._handleTouchCancel=function(t){this._handleTouchEnd(t)},Texty.prototype.positionUsingTransforms=retTrue,Texty.prototype.sizeUsingTransforms=retTrue,Texty.prototype.getNaturalSize=function(){return this.originalSize},Texty.prototype._getNaturalFontSize=function(){return this.fontSize},Texty.prototype._getDefaultPadding=function(){return this.usePadding?2:0},Texty.prototype._startListeningForTouches=function(){this.scrollable&&!this._listeningForTouches&&(attach(this._textContainer,\"touchstart\",this._handleTouchStart),this._listeningForTouches=!0)},Texty.prototype._stopListeningForTouches=function(){this._listeningForTouches&&(detach(this._textContainer,\"touchstart\",this._handleTouchStart),this._listeningForTouches=!1)},Texty.prototype._setText=function(t){this._sanitizeText=!1,this.text=t,this.scaleFont&&(this.scaleFont=!1),this.hidden?this._textToSet=!0:(this._updateText(),this._applyTextSize())},Texty.prototype.showAction=function(t,e,i){Texty.uber.showAction.call(this,t,e,function(){this._startListeningForTouches(),this._textToSet&&(this._textToSet=!1,this._updateText()),i()}.bind(this))},Texty.prototype.hideAction=function(t,e,i){Texty.uber.hideAction.call(this,t,e,function(){this._stopListeningForTouches(),i()}.bind(this))},Texty.prototype.resetAction=function(t,e,i){this._textToSet=!1,this._sanitizeText=!0,Texty.uber.resetAction.call(this,t,e,function(){this.hidden||this._startListeningForTouches(),this.text=this._initialText,this.scaleFont=this._initialScaleFont,this._handleSizeUpdate(),i()}.bind(this))},Texty.prototype.setTextAction=function(t,e,i){this._setText(e.text),i()};;\nfunction Shapey(){}inherit(Shapey,ScreenObject),Shapey.toString=function(){return\"[Clazz Shapey]\"},Shapey.prototype.toString=function(){return\"[Shapey \"+this.localId+\"]\"},Object.defineProperties(Shapey.prototype,{_borderRoundness:{get:function(){var e=0,t=0,a=0,r=this._defaultValues.roundness;if(\"number\"==typeof this.roundness&&(r=this.roundness),r>0){var s=Math.min(this.getNaturalSize().height,this.getNaturalSize().width),o=s/2,i=Math.max(this.getNaturalSize().height,this.getNaturalSize().width),h=i/2;if(50>r){var d=r/50;e=o*d}else{var p=(r-50)/50,n=(h-o)*p,u=o+n;t=this.getNaturalSize().width==s?o:u,a=this.getNaturalSize().height==s?o:u}}return this.shadow&&ios(\"8\")&&window.devicePixelRatio>=3&&(1>e&&(e=1),1>t&&(t=1),1>a&&(a=1)),50>r?e+\"px\":t+\"px \"+a+\"px\"}}}),Shapey.prototype.awake=function(){Shapey.uber.awake.call(this),this._defaultValues={backgroundColor:\"#365c99\",borderColor:\"#000000\",borderWidth:5,roundness:0,shadowAngle:0,shadowBlur:10,shadowColor:\"rgba(0,0,0,0.5)\",shadowDistance:0}},Shapey.prototype.createNode=function(){var e=Shapey.uber.createNode.call(this);if(this._privateApiTracked={},e.className+=\" touchable\",this._shapey=document.createElement(\"div\"),this.backgroundColor)if(Color.isGradient(this.backgroundColor)){var t=Color.createGradientStyle(this.backgroundColor);this.addStyle({\".gradient-shapey\":t}),addClass(this._shapey,\"gradient-shapey\")}else this._shapey.style.backgroundColor=this.backgroundColor;if(this.border){var a=\"undefined\"!=typeof this.borderColor?this.borderColor:this._defaultValues.borderColor,r=\"number\"==typeof this.borderWidth?this.borderWidth:this._defaultValues.borderWidth;this._shapey.style.borderColor=a,this._shapey.style.borderStyle=\"solid\",this._shapey.style.borderWidth=r+\"px\"}if(this.shadow){var s=(\"number\"==typeof this.shadowAngle?this.shadowAngle:this._defaultValues.shadowAngle)*(Math.PI/180),o=\"number\"==typeof this.shadowBlur?this.shadowBlur:this._defaultValues.shadowBlur,i=\"undefined\"!=typeof this.shadowColor?this.shadowColor:this._defaultValues.shadowColor,h=\"number\"==typeof this.shadowDistance?this.shadowDistance:this._defaultValues.shadowDistance,d=Math.round(h*Math.cos(s)),p=Math.round(h*Math.sin(s));celtra.styler.css(this._shapey,\"boxShadow\",d+\"px \"+p+\"px \"+o+\"px \"+i)}return e.appendChild(this._shapey),e},Shapey.prototype.redrawLayout=function(){if(this._shapey){var e=this._borderRoundness;parseInt(e,10)>0&&(this._shapey.style.borderTopLeftRadius=e,this._shapey.style.borderTopRightRadius=e,this._shapey.style.borderBottomLeftRadius=e,this._shapey.style.borderBottomRightRadius=e)}},Shapey.prototype._track=function(e){this._privateApiTracked[e]||(this._privateApiTracked[e]=!0,creative.track({name:\"retiredFeatureUsed\",featureType:\"apifunction\",featureName:e}))},Shapey.deprecatedPropertiesArray=[\"borderRoundness\",\"shapey\",\"defaultValues\"],Shapey.deprecatedPropertiesObject={},Shapey.deprecatedPropertiesArray.forEach(function(e){Shapey.deprecatedPropertiesObject[e]={get:function(){return this._track(\"Shapey.\"+e+\".getter\"),this[\"_\"+e]},set:function(t){this._track(\"Shapey.\"+e+\".setter\"),this[\"_\"+e]=t}}}),Object.defineProperties(Shapey.prototype,Shapey.deprecatedPropertiesObject);;\nfunction File(t){this.url=t}File.toString=function(){return\"[Clazz File]\"},File.prototype.toString=function(){return\"[File \"+this.localId+\"(\"+this.name+\"/\"+this.url+\")]\"},File.prototype.getOriginalUrl=function(){if(this.url){if(-1!==this.url.indexOf(\"://\"))return this.url;if(\"/\"===this.url[0])throw\"An absolute path as URL?\";return creative.resourceUrl+this.url}if(this.blobHash)return(creative.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+\"blobs/\"+this.blobHash+\"/\"+encodeURIComponent(this.name);throw\"Neither url nor blobHash set?\"},File.prototype.getUrl=function(){var t=this.getOriginalUrl(),i=String(this.name).match(/\\.(gif|png|jpe?g)$/i);return this.blobHash&&i&&(t+=\"?transform=crush\",this.quality>-1&&(t+=\"&quality=\"+this.quality),this.optimizedWidth>0&&this.optimizedHeight>0&&(t+=\"&resize=\"+this.optimizedWidth+\"x\"+this.optimizedHeight)),t},File.prototype.getDataUri=function(t,i){t instanceof Function&&(i=t,t={});var e=this,r=this.getUrl();\"undefined\"!=typeof this.dataUri?defer(function(){i(e.dataUri)},0,\"File.getDataUri defer callback, has dataUri\"):creative.dataURIsEnabled||t.force?creative.batcher.getDataUri(r,i):defer(function(){i(r)},0,\"File.getDataUri defer callback, url\")},Object.defineProperty(File.prototype,\"width\",{get:function(){return this.retina?Math.round(this.meta.width/2):this.meta.width}}),Object.defineProperty(File.prototype,\"height\",{get:function(){return this.retina?Math.round(this.meta.height/2):this.meta.height}});;\nfunction Font(){}inherit(Font,FontBase),Font.toString=function(){return\"[Clazz Font]\"},Font.prototype.toString=function(){return\"[Font \"+this.localId+\"]\"},Font.prototype.hasFeedFields=function(){return this.feedFields instanceof Array},Font.prototype.getSubsetString=function(){var t=Font.uber.getSubsetString.apply(this);if(!this.hasFeedFields())return t;if(\"string\"==typeof this.extendedSubsetString)return this.extendedSubsetString;var e=t||\"\";return this.feedFields.forEach(function(t){var n=creative.runtimeParams.dynamicContent[t];\"string\"==typeof n&&(e+=n)}),this.extendedSubsetString=e.replace(/[\\r\\n\\t\\f\\v]/g,\"\").split(\"\").filter(function(t,e,n){return n.indexOf(t)===e}).sort().join(\"\"),this.extendedSubsetString},Font.prototype.getUnicodeRange=function(){return this.hasFeedFields()?\"\":Font.uber.getUnicodeRange.apply(this)};;\nfunction GalleryGroup(){}inherit(GalleryGroup,ScreenObject),GalleryGroup.toString=function(){return\"[Clazz GalleryGroup]\"},GalleryGroup.prototype.toString=function(){return\"[GalleryGroup \"+this.localId+\"]\"},GalleryGroup.prototype.createNode=function(){var t=GalleryGroup.uber.createNode.call(this);return this.defaultImage||(this.defaultImage=new File(\"runner/loading.png\"),this.defaultImage.meta={width:1280,height:1280}),this._loadedResources={},t},GalleryGroup.prototype._appear=function(){this.autoAnimate&&!this.autoAnimationTimeout&&this.startAutoAnimate()},GalleryGroup.prototype._disappear=function(){this._stopAutoAnimate(),this.disappearNestedObjects()},GalleryGroup.prototype.nextItem=function(t){this.goToItem(this.getFocusedIndex()+1,t)},GalleryGroup.prototype.previousItem=function(t){this.goToItem(this.getFocusedIndex()-1,t)},GalleryGroup.prototype.previousAction=function(t,e,o){this.previousItem(o)},GalleryGroup.prototype.nextAction=function(t,e,o){this.nextItem(o)},GalleryGroup.prototype.goToItemAction=function(t,e,o){this.goToItem(e.item-1,o)},GalleryGroup.prototype.startIndex=0,GalleryGroup.prototype.allowAutoAnimate=retTrue,GalleryGroup.prototype.resetAllowAutoAnimate=noop,GalleryGroup.prototype.getItem=function(t){return this.content[t%this.getItemsLength()]},GalleryGroup.prototype.getItemsLength=function(){return this.content.length},GalleryGroup.prototype.startAutoAnimateAction=function(t,e,o){this.resetAllowAutoAnimate(),this.autoAnimationTimeout||this.startAutoAnimate(),o()},GalleryGroup.prototype._autoAnimateCancelledInTransition=!1,GalleryGroup.prototype.startAutoAnimate=function(){this._autoAnimateCancelledInTransition=!1;var t=this._animateCallback;if(!t){var e,o,n=this,i=!0,a=n.getItemsLength()-1,r=\"north\"==n.autoAnimateDirection||\"west\"==n.autoAnimateDirection?\"nextItem\":\"previousItem\";t=function(){return n._autoAnimateCancelledInTransition?void(n._autoAnimateCancelledInTransition=!1):void(n.autoAnimationTimeout=setTimeout(u,n.autoAnimatePause))};var u=function(){function u(i){l!==a||\"west\"!=n.autoAnimateDirection&&\"north\"!=n.autoAnimateDirection?0!==l||\"east\"!=n.autoAnimateDirection&&\"south\"!=n.autoAnimateDirection||(n.goToItem(a,t),i&&(o=!1,e=!1)):(n.goToItem(0,t),i&&(o=!1,e=!1))}if(n.autoAnimationTimeout=null,!n.allowAutoAnimate())return void(n.autoAnimateUserInteraction?n.disableAutoAnimate():t());var l=n.getFocusedIndex();if(i)\"repeat\"===n.autoAnimateConclusion&&n.cyclic||u(!0),i=!1;else if(l===a||0===l)switch(n.autoAnimateConclusion){case\"stop\":if(o)return void n.disableAutoAnimate();break;case\"reverse\":e&&(r=\"previousItem\"==r?\"nextItem\":\"previousItem\");break;case\"repeat\":n.cyclic||u(!1)}(0!==l&&\"previousItem\"===r||l!==a&&\"nextItem\"===r||n.cyclic&&\"repeat\"===n.autoAnimateConclusion)&&(n[r](t),e=!0,o=!0)};n._animateCallback=t}t()},GalleryGroup.prototype._stopAutoAnimate=function(){var t=this.autoAnimationTimeout;t?(clearTimeout(t),delete this.autoAnimationTimeout):this._autoAnimateCancelledInTransition=!0,delete this._animateCallback},GalleryGroup.prototype.stopAutoAnimateAction=function(t,e,o){this._stopAutoAnimate(),o()},GalleryGroup.prototype.disableAutoAnimate=function(){this._stopAutoAnimate()},GalleryGroup.prototype.resetAction=function(t,e,o){GalleryGroup.uber.resetAction.call(this,t,e,function(){this._stopAutoAnimate(),this.autoAnimate&&this.startAutoAnimate(),o()}.bind(this))},GalleryGroup.prototype._handleAllowTouches=function(t){for(var e=0;et||t>=this.getItemsLength()))return 0;var o=t-this.getFocusedIndex(),n=this.getItemsLength();return e&&Math.abs(o)>=n/2&&(o+=0>o?n:-n),o},GalleryGroup.prototype._preloadContainers=function(t,e){var o=t.length;t.forEach(function(t){t.getNode(function(){--o||e()})})},GalleryGroup.prototype.getDefaultImageSrc=function(){return this.defaultImageNode.src};;\nfunction SwipeyGroup(){}inherit(SwipeyGroup,GalleryGroup),SwipeyGroup.toString=function(){return\"[Clazz SwipeyGroup]\"},SwipeyGroup.prototype.toString=function(){return\"[SwipeyGroup \"+this.localId+\"]\"},SwipeyGroup.prototype.awake=function(){SwipeyGroup.uber.awake.call(this),this._animationLength=200,this._minimumDistanceForMovedState=5,this._rubberBandQuotient=4,this._swipeThreshold=.2,this.startIndex=this.startIndex-1,this._state=new StateObject({itemIndex:this.startIndex,moved:!1,position:0,touchPosition:0}),this._animator=new EasingAnimation(this._state,\"position\",{exp:EasingAnimation.presets.easeIn}),this._actionContextOfFirstTouchStart=null,this._autoAnimateDisabledByUserTouch=!1,this._autoAnimateHaltedByUserTouch=!1,this._contentListItems=[],this._currentTouchIdentifier=null,this._cycleSize=0,this._drawOffset=0,this._firstTouchStart=null,this._allowHorizontalSwipe=!0,this._horizontalSwipeInProgress=!1,this._itemSize=0,this._lastFocusedVirtualIndex=null,this._initialJumpToItemFinished=!1,this._touchHandlersAttached=!1,this._cyclic=this.cyclic&&this.content.length>2,this._draw=this._draw.bind(this),this._handleStateIndexChange=this._handleStateIndexChange.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this.on(\"appeared\",function(){new ActionContext(this).track({name:\"itemFocused\",item:this._state.itemIndex+1}),this._triggerOnFocus()}.bind(this))},SwipeyGroup.prototype.createNode=function(){var t=SwipeyGroup.uber.createNode.call(this);return this._privateApiTracked={},this._preloadInitialContainers(),this._init(t),t},SwipeyGroup.prototype._preloadInitialContainers=function(){var t,e,i=[];this._cyclic?(e=this._wrapAround(this.startIndex-1,this.content.length),t=this._wrapAround(this.startIndex+1,this.content.length)):(this.startIndex0&&(e=this.startIndex-1));var n=function(t){var e=this.content[t];e&&i.push(e)}.bind(this);n(e),n(this.startIndex),n(t),this.incrementLoadingCount(),this._preloadContainers(i,this.decrementLoadingCount.bind(this))},SwipeyGroup.prototype._init=function(t){this._ul=document.createElement(\"ul\"),addClass(this._ul,\"swipey\"),this._ul.style.display=\"none\",this.content.forEach(function(t,e){var i=document.createElement(\"li\");if(i.appendChild(t.getNode()),this._cyclic){var n=this._wrapAround(e-this.startIndex+1,this.content.length);this._contentListItems[n]=i}else this._contentListItems.push(i);addClass(i,\"touchable\"),this._ul.appendChild(i)}.bind(this)),this._drawOffset=this._cyclic?this.startIndex-1:0;var e=this.autoAnimate&&this.autoAnimatePreventUserInteraction;e||attach(this._ul,\"touchstart\",this._handleTouchStart),this._state.on(\"change:itemIndex\",function(t){Ticker.frame(this._draw,\"next\"),this._handleStateIndexChange(t)}.bind(this)),t.appendChild(this._ul),this._state.on(\"change:position\",function(){this._initialJumpToItemFinished&&Ticker.frame(this._draw,\"next\")}.bind(this)),this.pagination&&\"hidden\"!==this.pagination&&(this._paginator=new Paginator({container:t,containerSize:this.size,position:this.pagination,itemsCount:this.content.length}),this._paginator.buildPagination())},SwipeyGroup.prototype._appear=function(){SwipeyGroup.uber._appear.call(this),this._ul.style.display=\"block\",this._checkInitialJump(),this.content.forEach(function(t){t.emit(\"resize\")})},SwipeyGroup.prototype._checkInitialJump=function(){this._initialJumpToItemFinished||isNaN(this._getFocusedVirtualIndex())||(this._lastFocusedVirtualIndex=this._getFocusedVirtualIndex(),this._cyclic||this.jumpToItem(this.startIndex),this._initialJumpToItemFinished=!0)},SwipeyGroup.prototype.redrawLayout=function(){this._ul.style.display=this.hidden?\"none\":\"block\",this._checkInitialJump(),this.vertical=this.layoutSpecificValues[this.parentUnit.layoutCurrentIndex].vertical,this._itemSize=(this.vertical?this.size.height:this.size.width)+this.cellspacing,this._cycleSize=this._itemSize*this.content.length,this._state.position=this._getPositionForCentered(this._getItemCenter(this._state.itemIndex)),this.vertical?addClass(this._ul,\"vertical\"):removeClass(this._ul,\"vertical\"),this._paginator&&this._paginator.redrawPagination(this.size),this._draw()},SwipeyGroup.prototype._handleStateIndexChange=function(){var t=this.getFocusedIndex();this._lastFocusedIndex!=t&&new ActionContext(this).track({name:\"itemFocused\",item:this._state.itemIndex+1}),this._triggerOnBlur(),this._triggerOnFocus()},SwipeyGroup.prototype._draw=function(){function t(t,e,i){var n=ScreenObject.supports3d?\"translate3d(\"+e+\"px, \"+i+\"px, 0)\":\"translate(\"+e+\"px, \"+i+\"px)\";celtra.styler.css(t,\"transform\",n)}this._calculateCyclicDrawOffset(),this._contentListItems.forEach(function(e,i){var n={x:0,y:0},o=-this._state.position+(i+this._drawOffset)*this._itemSize;n[this.vertical?\"y\":\"x\"]=o,t(e,Math.round(n.x),Math.round(n.y))}.bind(this)),this._paginator&&this._paginator.setActivePaginationItem(this.getFocusedIndex())},SwipeyGroup.prototype._calculateCyclicDrawOffset=function(){if(this._cyclic&&null!=this._lastFocusedVirtualIndex&&this._lastFocusedVirtualIndex!==this._getFocusedVirtualIndex()){var t=this._getFocusedVirtualIndex()-this._lastFocusedVirtualIndex;this._drawOffset+=t,this._lastFocusedVirtualIndex=this._getFocusedVirtualIndex();for(var e=0;e0?this._contentListItems.push(this._contentListItems.shift()):0>t&&this._contentListItems.unshift(this._contentListItems.pop())}},SwipeyGroup.prototype._snap=function(){var t=this._getFocusedVirtualIndex();this._cyclic||(t=clamp(0,this.content.length-1,t));var e=this._cyclic?t+this.startIndex:t;e%=this.content.length,0>e&&(e+=this.content.length);var i=this._getPositionForCentered(this._getItemCenter(t));this._animateTo(i)},SwipeyGroup.prototype._animateTo=function(t,e){this._animator.animateTo(t,this._animationLength,function(){this._state.itemIndex=this._getIndexOfCenteredItem(),this._handleAllowTouches(this.content),\"function\"==typeof e&&e()}.bind(this))},SwipeyGroup.prototype._mapPositionToVirtualIndex=function(t){for(var e=this.content.length,i=0,n=Math.floor(t/this._cycleSize)*e,o=Math.floor(t/this._cycleSize)*this._cycleSize;o+this._itemSize<=t;)o+=this._itemSize,i++;return n+i},SwipeyGroup.prototype._mapIndexToPosition=function(t){for(var e=Math.floor(t/this.content.length)*this.content.length,i=Math.floor(t/this.content.length)*this._cycleSize,n=0;t>e+n;)i+=this._itemSize,n++;return i},SwipeyGroup.prototype._getViewportTreshold=function(){return this._state.position+this._itemSize*(\"back\"===this._swipeDirection?this._swipeThreshold:1-this._swipeThreshold)},SwipeyGroup.prototype._getFocusedVirtualIndex=function(){return this._mapPositionToVirtualIndex(this._getViewportTreshold())},SwipeyGroup.prototype.getFocusedIndex=function(){return this._state.itemIndex},SwipeyGroup.prototype._getIndexOfCenteredItem=function(){return this._wrapAround(this._getFocusedVirtualIndex(),this.content.length)},SwipeyGroup.prototype._getItemCenter=function(t){return this._mapIndexToPosition(t)+this._itemSize/2},SwipeyGroup.prototype._getNearestIndex=function(t){if(this._cyclic){var e=this._wrapAround(this._state.itemIndex,this.content.length),i=t-e,n=t-(e+this.content.length);return Math.abs(i)<=Math.abs(n)?this._getFocusedVirtualIndex()+i:this._getFocusedVirtualIndex()+n}return clamp(0,this.content.length-1,t)},SwipeyGroup.prototype._getPositionForCentered=function(t){return t-this._itemSize/2},SwipeyGroup.prototype._wrapAround=function(t,e){return(t%e+e)%e},SwipeyGroup.prototype.goToItem=function(t,e){var i=this._getNearestIndex(t),n=this._getPositionForCentered(this._getItemCenter(i));this._animateTo(n,e)},SwipeyGroup.prototype.jumpToItem=function(t){this._state.itemIndex=this._wrapAround(t,this.content.length),this._state.position=this._getPositionForCentered(this._getItemCenter(this._state.itemIndex)),this._handleAllowTouches(this.content)},SwipeyGroup.prototype._normalizeEvent=function(t){var e=function(t,e){var i,n;for(i=0;ithis._getPositionForCentered(this._getItemCenter(this.content.length-1));e.position+=this._cyclic||!a&&!c?r:r/this._rubberBandQuotient,e.moved=!0,e.touchPosition=s}var u=h-s;this._swipeDirection=u>0?\"forth\":\"back\",this._calculateCyclicDrawOffset()}},SwipeyGroup.prototype._handleTouchEnd=function(t){t.stopPropagation(),this._allowHorizontalSwipe=!0,this._horizontalSwipeInProgress=!1,this._currentTouchIdentifier==t.changedTouches[0].identifier&&(this._currentTouchIdentifier=t.touches[0]?t.touches[0].identifier:null);var e=this._state,i=this._normalizeEvent(t),n=this.vertical?i.y:i.x;if(0===t.touches.length){this._touchHandlersAttached=!1,detach(this.parentUnit.node,\"touchmove\",this._handleTouchMove),detach(this.parentUnit.node,\"touchend\",this._handleTouchEnd),detach(this.parentUnit.node,\"touchcancel\",this._handleTouchCancel),this._animator.running||this._snap();var o={firstTouch:this._firstTouchStart,lastTouch:i,minDistanceForSwipe:this._swipeThreshold*this._itemSize,validAxis:this.vertical?\"y\":\"x\"},s=_analyzeTouch(o);s.isConsideredSwipe&&this._actionContextOfFirstTouchStart.trackUserInteraction(),this._actionContextOfFirstTouchStart=null,this._autoAnimateHaltedByUserTouch=!1}else e.touchPosition=n},SwipeyGroup.prototype._handleTouchCancel=function(t){this._handleTouchEnd(t)},SwipeyGroup.prototype.resetAction=function(t,e,i){SwipeyGroup.uber.resetAction.call(this,t,e,function(){this.jumpToItem(this.startIndex),this._autoAnimateDisabledByUserTouch=!1,i()}.bind(this))},SwipeyGroup.prototype.getField=function(){return{type:\"string\",value:this.content?this.content[this.getFocusedIndex()].name:\"\"}},SwipeyGroup.prototype.allowAutoAnimate=function(){return!this._autoAnimateDisabledByUserTouch&&!this._autoAnimateHaltedByUserTouch},SwipeyGroup.prototype.resetAllowAutoAnimate=function(){this._autoAnimateDisabledByUserTouch=!1},SwipeyGroup.prototype.getNestedContainers=function(){return this.content},SwipeyGroup.prototype.positionUsingTransforms=retTrue,SwipeyGroup.prototype.sizeUsingTransforms=retTrue,SwipeyGroup.prototype.getNaturalSize=function(){return{width:this.originalSize.width,height:this.originalSize.height}},SwipeyGroup.prototype._track=function(t){this._privateApiTracked[t]||(this._privateApiTracked[t]=!0,creative.track({name:\"retiredFeatureUsed\",featureType:\"apifunction\",featureName:t}))},SwipeyGroup.prototype.getFocusedVirtualIndex=function(){this._track(\"SwipeyGroup.getFocusedVirtualIndex\"),this._getFocusedVirtualIndex()},SwipeyGroup.prototype.getPositionForCentered=function(t){this._track(\"SwipeyGroup.getPositionForCentered\"),this._getPositionForCentered(t)},SwipeyGroup.prototype.getItemCenter=function(t){this._track(\"SwipeyGroup.getItemCenter\"),this._getItemCenter(t)},SwipeyGroup.prototype.getIndexOfCenteredItem=function(){this._track(\"SwipeyGroup.getIndexOfCenteredItem\"),this._getIndexOfCenteredItem()},SwipeyGroup.prototype.getViewportTreshold=function(){this._track(\"SwipeyGroup.getViewportTreshold\"),this._getViewportTreshold()},SwipeyGroup.prototype.getNearestIndex=function(t){this._track(\"SwipeyGroup.getNearestIndex\"),this._getNearestIndex(t)};;\nfunction Video(){}var composeUrl=CeltraPlayerUtils.composeUrl,isTruthy=CeltraPlayerUtils.isTruthy,getUrl=CeltraPlayerUtils.getUrl,ifDefined=CeltraPlayerUtils.ifDefined,minVideoSize={width:50,height:50};inherit(Video,ScreenObject),Video.toString=function(){return\"[Clazz Video]\"},Video.prototype.toString=function(){return\"[Video \"+this.localId+\"]\"},Video.prototype.transcodingGroup=\"inline\",Video.TRANSCODING_IN_PROGRESS=\"We\u2019re processing this video. After a few moments, please refresh your browser.\",Video.TRANSCODING_ERROR=\"Transcoding failed. Try uploading a different video or contact support.\",Video.AUTOPLAY_REJECTED=\"Please enable Allow All Auto-Play in your Safari Preferences to preview this creative.\",Video.SIZE_PROPERTY_STEP_MULTIPLIER=100,Video.prototype.awake=function(){Video.uber.awake.call(this),this._player=null,this._spec=null,this.posterImageSource=null,this.posterDisabled=!1,this._externalEngineProvided=null,this._customUrlParameters={},this._inViewAreaRatio=0,this._delayVideoAutoplay=!0,this._viewabilityStartTriggerRatio=.05,this._viewabilityPauseTriggerRatio=.05,this.isTeaser=\"teaser\"===this.purpose,this.fullscreenMode=this.fullscreenButton?\"both\":\"disabled\",this.isConsideredInView=!1,this.isUserEngaged=!1,this._handleAreaInViewRatioChanged=this._handleAreaInViewRatioChanged.bind(this),this._handleContainerViewableChange=this._handleContainerViewableChange.bind(this),this._handleStopRequest=this._handleStopRequest.bind(this)},Video.prototype.redrawLayout=function(){this._player&&this._player.setDimensions(this._round(this.size.width),this._round(this.size.height))},Video.prototype.createNode=function(){var e=\"feed\"===this.assetSource&&null!=this.feedFieldKey,t=\"string\"==typeof creative.runtimeParams.dynamicContent[this.feedFieldKey]&&\"object\"==typeof creative.runtimeParams.dynamicContentMetaData[this.feedFieldKey]&&null!==creative.runtimeParams.dynamicContentMetaData[this.feedFieldKey];e&&(creative.checkAndTrackFeedValueMissing(new ActionContext(this),this.feedFieldKey),this.video=new File,this.video.blobHash=creative.runtimeParams.dynamicContent[this.feedFieldKey],this.video.meta=t?creative.runtimeParams.dynamicContentMetaData[this.feedFieldKey]:{hasAudio:!0});var i=Video.uber.createNode.call(this);if(this.newVideoTrackingExperiment=!!creative.experiments.get(\"NewVideoTracking\"),this._isSnapchatFormat=!!creative.constructor.name.match(/^Snapchat.*/),this._isDesktop=desktop()&&\"Desktop\"===creative.intendedDeviceType,this.posterDisabled=this.posterDisabled||isTruthy(creative.runtimeParams.disablePoster),this._initializeCustomStartStopRatios(),this.on(\"enteredRenderTree\",function(){void 0!==this.video&&null!==this.video&&(creative.adapter.checkVideoTranscodeStatus&&this._isVideoTranscoding(),this._createPlayer())}.bind(this)),this.on(\"exitedRenderTree\",this._exitedRenderTree.bind(this)),this._hasPosterImage()&&!this.posterDisabled)if(\"responsive\"!=this.parentUnit.sizing||this._isSnapchatFormat){var n=this._getPosterUrl();n&&this._preloadImage(new File(n),{crossOrigin:\"anonymous\",force:!0},function(e){this.posterImageSource=e}.bind(this))}else this.parentScreen.on(\"appeared\",function(){(new Image).src=this._getPosterUrl()}.bind(this));return addClass(i,\"touchable\"),attach(i,\"tap\",this.handleTap),creative.adapter.on(\"stateChange\",function(e){this._player&&(\"dismissed\"==e&&this.emit(\"ended\"),\"default\"==e&&this.isTeaser&&this.playAction(new ActionContext(this,!1)))}.bind(this)),creative.adapter.on(\"orientationchange\",function(){this._player&&this._player.redraw(),setTimeout(function(){this._player&&this._player.redraw()}.bind(this),800)}.bind(this)),creative.adapter.on(\"resize\",function(){this._player&&this._player.redraw()}.bind(this)),i},Object.defineProperty(Video.prototype,\"isTrackable\",{get:function(){return!0}}),Video.prototype._leaveView=function(){var e=this._player&&this._player.isState(CeltraPlayerUtils.PLAYING),t=this._player&&this._player.isState(CeltraPlayerUtils.BUFFERING);this.playWhenInView=e||t||this.playWhenInView,(e||t)&&this._player.pause()},Video.prototype._comeInView=function(){this._player&&this.playWhenInView&&(this._player.play(),this.playWhenInView=!1)},Video.prototype._applyExperiments=function(){this._experimentVideoPosterImage=this._copyChosenExperimentProperties(\"VideoPosterImage\")},Video.prototype._initializeCustomStartStopRatios=function(){var e=parseFloat(creative.runtimeParams.viewabilityStartTriggerRatio),t=parseFloat(creative.runtimeParams.viewabilityPauseTriggerRatio),i=parseFloat(this.viewabilityStartTriggerRatio)/100,n=parseFloat(this.viewabilityPauseTriggerRatio)/100,s=null,a=null;e>=0&&1>=e&&t>=0&&1>=t?(s=e,a=t):i>=0&&1>=i&&n>=0&&1>=n&&(s=i,a=n),s&&1>=s&&s>=0&&(s>=.95&&(s=.95),this._viewabilityStartTriggerRatio=s),a&&1>=a&&a>=0&&(a>=.95&&(a=.95),this._viewabilityPauseTriggerRatio=a)},Video.prototype._getVideoControlsController=function(e){if(this.isTeaser||e.campaignExplorer)return null;var t=isTruthy(creative.runtimeParams.enableVerticalVideoUIOffset),i=function(e){return new VideoControls(e)};return function(e,n){var s=\"never\"===this.controlsMode,a=new VideoControlsController(e,i,extend({autohideTime:\"hide\"===this.controlsMode?3:0,showPlayIconAsFallback:!0,playIconEnabled:!this.autoplay,hasTapTriggers:this.hasTriggers(\"tap\"),tapCallback:function(){var e=new ActionContext(this,!0);this.ifNotClosing(\"tap\",e,e.trackUserInteraction),this.fireTriggers(\"tap\",null,null,e)}.bind(this),loaderIconEnabled:!0,countdownIconEnabled:this.countdown&&!s,resumeIconEnabled:void 0===this.resumeButton||this.resumeButton,replayIconEnabled:!0,fullscreenIconEnabled:\"both\"===this.fullscreenMode&&!s,soundIconEnabled:this.video.meta.hasAudio&&!s,customIcons:{custom_play:this.playIcon?this.playIcon:null,custom_replay:this.replayIcon?this.replayIcon:null},vignetteEnabled:!1,celtraSignatureEnabled:!1,introAnimationEnabled:!1,radarIconEnabled:!1,enableVerticalVideoUIOffset:t},n));return a.on(\"playButtonPressed\",function(){this.playAction(new ActionContext(this,{consideredUserInitiatedByBrowser:!0}))}.bind(this)),a}.bind(this)},Video.prototype._showFullscreenButton=function(){return desktop()?!0:ifDefined(this.parentUnit.fillsContainer,!1)},Video.prototype._getPosterUrl=function(){if(this.posterImage)return this.posterImage.getUrl();if(this.posterImageSource)return this.posterImageSource.src;if(this.video.blobHash){var e={width:this.size.width,height:this.size.height},t=this.size.width/this.size.height>1,i=Math.ceil(e[t?\"height\":\"width\"]/Video.SIZE_PROPERTY_STEP_MULTIPLIER)*Video.SIZE_PROPERTY_STEP_MULTIPLIER;return e={width:t?null:i,height:t?i:null},null!==e.width&&(e.width=e.width>=minVideoSize.width?e.width:minVideoSize.width),null!==e.height&&(e.height=e.height>=minVideoSize.height?e.height:minVideoSize.height),composeUrl(getUrl(\"cachedApi\"),\"videoThumb/\",this.video.blobHash,{transform:\"thumbnail\",width:e.width,height:e.height,position:ifDefined(this.posterImageGenerateAt,null)})}return null},Video.prototype._createWarningMessage=function(){var e=function(e){var t=e.getContext(\"2d\"),i=[\"#ffffff\",\"#ffff00\",\"#00ffff\",\"#00ff00\",\"#ff00ff\",\"#ff0000\",\"#0000ff\"],n=i.slice().reverse(),s=.5,a=1-s,r=creative.adapter.getViewportRect();e.height=r.height,e.width=r.width;var o=Math.ceil(s*r.height),h=Math.ceil(a*r.height),d=Math.ceil(r.width/i.length);i.forEach(function(e,i){t.fillStyle=e,t.fillRect(d*i,0,d,o)}),n.forEach(function(e,i){t.fillStyle=e,t.fillRect(d*i,o,d,h)}),t.fillStyle=\"rgba(0,0,0,0.6)\",t.fillRect(0,0,r.width,r.height)};if(!this._overlay){this._overlay=document.createElement(\"div\"),this._overlay.style.display=\"none\",this._overlay.className=\"warning-wrapper\";var t=document.createElement(\"canvas\");t.className=\"warning-canvas\",e(t),this._overlay.appendChild(t);var i=document.createElement(\"div\");i.className=\"warning-message-container\",this._warningTriangle=document.createElement(\"div\"),this._warningTriangle.className=\"warning-triangle\",this._warningHourglass=document.createElement(\"div\"),this._warningHourglass.className=\"warning-hourglass\",this._warningMessage=document.createElement(\"div\"),this._warningMessage.className=\"warning-message\",i.appendChild(this._warningTriangle),i.appendChild(this._warningHourglass),i.appendChild(this._warningMessage),this._overlay.appendChild(i),this.node.appendChild(this._overlay)}},Video.prototype.showWarningMessage=function(e){this._transcodingMsgShown||(this._transcodingMsgShown=!0,this._createWarningMessage(),removeClass(this._warningHourglass,\"show\"),removeClass(this._warningTriangle,\"show\"),\"TRANSCODING_IN_PROGRESS\"===e?(this._overlay.style.display=\"table\",this._warningMessage.innerText=Video.TRANSCODING_IN_PROGRESS,addClass(this._warningHourglass,\"show\")):\"TRANSCODING_ERROR\"===e?(this._overlay.style.display=\"table\",this._warningMessage.innerText=Video.TRANSCODING_ERROR,addClass(this._warningTriangle,\"show\")):\"AUTOPLAY_REJECTED\"===e&&(this._overlay.style.display=\"table\",this._warningMessage.innerText=Video.AUTOPLAY_REJECTED,addClass(this._warningTriangle,\"show\")))},Video.prototype._isVideoTranscoding=function(){if(this._isRendering){var e=composeUrl(creative.secure?creative.apiUrl:creative.insecureApiUrl,\"videoStream/status/\",this.video.blobHash);loadJSONP(e,function(e){var t=!1,i=!1,n=function(){this._player.pause(),this._player.hide()}.bind(this),s=e[this.transcodingGroup];if(isDefAndNotNull(s))if(i=s.hasTranscodingError,desktop()){var a=gecko()&&!this._isSnapchatFormat?\"webmHQBlobHash\":\"mpeg4HQPlusBlobHash\";t=isDefAndNotNull(s[a])}else t=s.isFullyTranscoded;i?(n(),this.showWarningMessage(\"TRANSCODING_ERROR\")):t||(n(),this.showWarningMessage(\"TRANSCODING_IN_PROGRESS\"))}.bind(this))}},Video.prototype._appear=function(){this._experimentVideoPosterImage&&this._experimentVideoPosterImage.trackExposure(),creative.adapter.canMeasureViewportPlacementGeometry?(this._inViewAreaRatio=this.parentUnit.inView.areaInViewRatio,this.isConsideredInView=!0,this._inViewAreaRatio>=this._viewabilityStartTriggerRatio&&(this._delayVideoAutoplay=!1),this.parentUnit.inView.on(\"areaInViewRatioChanged\",this._handleAreaInViewRatioChanged)):creative.adapter.containerViewabilityObserver&&(this.isConsideredInView=creative.adapter.containerViewabilityObserver.isViewable,this.isConsideredInView&&(this._delayVideoAutoplay=!1),creative.adapter.on(\"containerViewableChange\",this._handleContainerViewableChange)),this.video&&(this.autoplay||this.isTeaser)&&!this._delayVideoAutoplay&&(this.playAction(new ActionContext(this,!1)),this.isTeaser&&this.on(\"enteredRenderTree\",function(){defer(this.playAction(new ActionContext(this,!1)))}.bind(this)))},Video.prototype._handleAreaInViewRatioChanged=function(e){this._player&&this._player.fullscreen&&this._isDesktop?(e=1,this.isConsideredInView=!0):this._inViewAreaRatio>=e&&e<=this._viewabilityPauseTriggerRatio?(this.isConsideredInView=!1,this._leaveView()):this._inViewAreaRatio=this._viewabilityStartTriggerRatio&&(this.isConsideredInView=!0,this._playActionCalled?this._comeInView():this.video&&this.autoplay&&this.playAction(new ActionContext(this,!1)),this.playWhenInView=!1),this._inViewAreaRatio=e},Video.prototype._handleContainerViewableChange=function(e){this.isConsideredInView!==e&&(this.isConsideredInView=e,e?this._comeInView():this._leaveView())},Video.prototype._videoEngineOptionsProvider=function(){var e=creative.adapter.getVideoCapabilities();return delete e.videoElement,merge(e,{hasAudio:this.video.meta.hasAudio,isTeaser:this.isTeaser,forceMPEG1Video:isTruthy(creative.runtimeParams.forceMPEG1Video),forceMPEG4Video:isTruthy(creative.runtimeParams.forceMPEG4Video),selectOGVPlayer:isTruthy(creative.runtimeParams.selectOGVPlayer),campaignExplorer:isTruthy(creative.runtimeParams.campaignExplorer),thumbnailMode:\"thumb\"===creative.runtimeParams.purpose,isSnapchatFormat:this._isSnapchatFormat})},Video.prototype._getVideoOptions=function(){return{preload:this.preload||this.isTeaser,pauseOnEnd:this.pauseOnEnd,playsInline:!0,componentName:this.name,canShowSpinner:!this.isTeaser,fullscreenMode:this._showFullscreenButton()?this.fullscreenMode:\"disabled\",repeatTimes:this.indefinitely||this.loop?2147483647:this.repeatTimes,closeFSOnEnd:this.closeOnEnd,fitting:this.fitting,videoWidth:this.video.meta.width,videoHeight:this.video.meta.height,anchoringPoint:this.parentUnit.anchoringPoint,duration:parseFloat(this.video.meta.duration),hasAudio:this.video.meta.hasAudio,startMuted:this.muted,videoStream:{blobHash:this.video.blobHash,from:this.isTeaser?0:null,to:this.isTeaser?5:null,customUrlParameters:this._customUrlParameters},isDesktop:this._isDesktop,mpeg1VideoHas1pxBlackBorderOnRight:creative.adapter.mpeg1VideoHas1pxBlackBorderOnRight}},Video.prototype._createPlayer=function(){if(!this._player&&this.video){var e=this._videoEngineOptionsProvider();this._externalEngineProvided=!!e.videoElement;var t=merge(this._getVideoOptions(),{videoElement:e.videoElement});this.posterDisabled?t.poster=null:(this.posterImageGenerate||isDefAndNotNull(this.posterImage))&&(t.poster=this._getPosterUrl());var i=function(i,n){return VideoEngineProvider.createVideoEngineSpec(i,extend(e,{startMuted:n,preload:t.preload}))}.bind(this),n=function(){return this.isUserEngaged&&creative.adapter.viewabilityMeasurable.viewable00&&this.isConsideredInView}.bind(this);if(this._player=new VideoPlayer(this.getNode(),i,this._getVideoControlsController(e),n,t),!this.isTeaser&&\"MasterVideo\"!==this.constructor.name){this._player=QuartileEventsEmitter(this._player);for(var s in this._player.QUARTILE_EVENTS)this._player.on(s,function(e){this.emit(e.name,e)}.bind(this))}this._player.setDimensions(this._round(this.size.width),this._round(this.size.height)),this._attachListeners(),this._orientationLockHandler=CeltraPlayerUtils.orientationLockHandler.bind(null,this._player),this.parentUnit.addListener(\"orientationLockChanged\",this._orientationLockHandler)}},Video.prototype._attachListeners=function(){if(this._player){if(this.newVideoTrackingExperiment){var e={isAnimated:!1,isCustom:!1,localId:null,onFire:null,parameters:{name:\"exp_trigger_CuePoint\",time:this.getDuration()+1},type:\"videoCuepoint\"};this.triggers.push(e)}var t=function(){this._cuePointObserver||(this._cuePointObserver=Object.create(CuePointObserver).init(this)),defer(this._cuePointObserver.start)}.bind(this);this._player.on(\"muted\",function(){this._videoContext&&this._videoContext.track({name:\"videoMuted\"}),this.fireTriggers(\"videoMute\"),this.emit(\"muted\")}.bind(this)),this._player.on(\"unmuted\",function(){this._videoContext&&this._videoContext.track({name:\"videoUnmuted\"}),this.fireTriggers(\"videoUnMute\"),this.emit(\"unmuted\")}.bind(this)),this._player.on(\"volumechange\",function(e){this.emit(\"volumechange\",e)}.bind(this)),this._player.on(\"play\",function(){t(),this.emit(\"play\")}.bind(this)),this._player.on(\"playing\",function(){t(),this.fireTriggers(\"videoPlaying\"),this.emit(\"playing\")}.bind(this)),this._player.on(\"enterfullscreen\",function(){this.fireTriggers(\"videoEnterFullScreen\"),this.emit(\"enterfullscreen\")}.bind(this)),this._player.on(\"custominfo\",function(e){new ActionContext(this,!1).track(e)}.bind(this)),this._player.on(\"exitfullscreen\",function(){this.fireTriggers(\"videoExitFullScreen\"),this.emit(\"exitfullscreen\")}.bind(this)),this._player.on(\"autoplayrejected\",function(){this.emit(\"autoplayrejected\")}.bind(this)),this._player.on(\"ended\",function(){this._cuePointObserver&&this._cuePointObserver.stop(!0),this.fireTriggers(\"videoComplete\"),this.emit(\"ended\")}.bind(this)),this._player.on(\"pause\",function(){this._cuePointObserver&&this._cuePointObserver.stop(),this._videoContext&&this._videoContext.track({name:\"videoPause\"}),this._player&&!this._player.silentPauseActive&&this.fireTriggers(\"videoPause\"),this._player&&this.emit(\"pause\",this._player.getCurrentTime())}.bind(this)),this._player.on(\"repeat\",function(){this._cuePointObserver&&this._cuePointObserver.stop(!0),this.fireTriggers(\"videoComplete\"),this.emit(\"repeat\")}.bind(this)),this._player.on(\"timeupdate\",function(){if(this._player){var e=this._player.getCurrentTime(),t=this._previousTime||0;t!==e&&this.emit(\"timeupdate\",e)}}.bind(this)),this._player.on(\"durationchange\",function(){this._player&&this.emit(\"durationchange\",this._player.getDuration())}.bind(this)),this._player.on(\"userInteraction\",function(e){void 0!==e&&void 0!==e.isUserEngaged&&(this.isUserEngaged=e.isUserEngaged)}.bind(this))}},Video.prototype._getRealState=function(e,t,i){var n,s;return e.videoEngineSpec.preload&&!desktop()?(n=!t&&i?!1:!0,s=i):(n=e.videoEngineSpec.startMuted,s=e.videoEngineSpec.inUserInitiatedThread),{startMuted:n,inUserInitiatedThread:s}},Video.prototype._trackViewShown=function(e,t){var e=this.appliedState?this.appliedState.inUserInitiatedThread:void 0,t=this.appliedState?this.appliedState.startMuted:void 0;if(!this.isTeaser){for(var i=this.parentScreen,n=this;n.parentContainer.parentObject;){if(\"undefined\"!=typeof DynamicContent&&n.parentContainer.parentObject instanceof DynamicContent){i=n.parentContainer;break}n=n.parentContainer.parentObject}var s=i.getActionsExecutedOnAppear(),a=s.contains(\"play\",this.localId);new ActionContext(this,!1).track({name:\"viewShown\",viewName:this.name,clazz:this.constructor.name,filename:this.video&&this.video.name||null,label:this.name,source:this.video&&this.video.blobHash||null,sourceType:\"File\",userInitiated:void 0!==e?e:a?!1:!this.autoplay,startMuted:void 0!==t?t:this.muted,videoPlayerMode:\"inline\",viewabilityStartTriggerRatio:this._viewabilityStartTriggerRatio,viewabilityPauseTriggerRatio:this._viewabilityPauseTriggerRatio,duration:this.getDuration()})}this._trackViewShown=noop},Video.prototype._emitVideoPlayAttempted=function(e,t,i,n){this._videoContext&&this._videoContext.track(this._getVideoPlayAttemptedEvent(e,t,i,n)),this._emitVideoPlayAttempted=noop},Video.prototype._getVideoPlayAttemptedEvent=function(e,t,i,n){var s={name:\"videoPlayAttempted\",filename:this.video.name,trackable:!0,userInitiated:e,autoReplay:!!this.loop,startMuted:t,videoPlayerMode:\"inline\",engineType:i,videoPreset:n};return s},Video.prototype._exitedRenderTree=function(){this.parentUnit.inView&&this.parentUnit.inView.off(\"areaInViewRatioChanged\",this._handleAreaInViewRatioChanged),creative.adapter&&creative.adapter.off(\"containerViewableChange\",this._handleContainerViewableChange),this._destroyPlayer()},Video.prototype._destroyPlayer=function(){this._cuePointObserver&&(this._cuePointObserver.detach(),this._cuePointObserver=null),this._playActionCalled=!1,this._delayVideoAutoplay=!0,this._player&&(this._player.destroy(),this._player=null,this.parentUnit.off(\"mediaStopRequested\",this._handleStopRequest),this.parentUnit.removeListener(\"orientationLockChanged\",this._orientationLockHandler),this._orientationLockHandler=null,this._videoContext=null,this._trackingEventsEmitter=null,this._trackingEventsRecorder=null),this._videoEventsAdapter&&(this._videoEventsAdapter&&this._videoEventsAdapter.destroy(),this._videoEventsAdapter=null)},Video.prototype._createVideoContext=function(){this.isTeaser||!this._player||this._videoContext||(this._videoContext=new VideoContext(this,this.video,this.name),this._videoEventsAdapter=new VideoEventsAdapter(this._player),this._videoContext.registerSource(this._videoEventsAdapter),this._player.on(\"userInteraction\",this._videoContext.trackUserInteraction.bind(this._videoContext)),this.newVideoTrackingExperiment&&(this._trackingEventsEmitter=new PlaybackTrackingEventsEmitter(this._player),this._trackingEventsRecorder=new PlaybackTrackingEventsRecorder(this._trackingEventsEmitter,this._videoContext,\"exp_video\")))},Video.prototype._round=function(e){return Math.round(e)},Video.prototype._hasPosterImage=function(){return this.video&&!this.isTeaser&&(this.posterImageGenerate||isDefAndNotNull(this.posterImage))},Video.prototype.handleTap=function(e){e.stopPropagation()},Video.prototype.positionUsingTransforms=retFalse,Video.prototype.sizeUsingTransforms=retFalse,Video.prototype.getNaturalSize=function(){return this.originalSize},Video.prototype.getDuration=function(){var e=0/0;try{e=parseFloat(this.video.meta.duration)}catch(t){}return isNaN(e)?this._player?this._player.duration:0:e},Video.prototype.getCurrentTime=function(){return this._player?this._player.getCurrentTime():0},Video.prototype.setCurrentTime=function(e){return this._player?this._player.setCurrentTime(e):0},Video.prototype.playAction=function(e,t,i){if(!this._player)return void(i||noop)();e||(console.warn(\"Context object has to be passed when calling playAction.\"),e=new ActionContext(this,{consideredUserInitiatedByBrowser:!1})),this._createPlayer(),this._createVideoContext(),this.isUserEngaged=e.inUserInitiatedIteration,creative.adapter._stopAllMedia(\"toPlayVideo\");var n=t&&void 0!==t.startMuted?t.startMuted:this.muted;t&&\"touchstart\"===t.triggerId&&creative.adapter.muteSoundIfVideoStartedOnTouchStartEvent&&(n=!0),this._spec||(this._spec=this._player.createSpecs(e.inUserInitiatedIteration,n)),this._player.engineInitialized||this._player.initialize(this._spec),this.appliedState=this._getRealState(this._spec,n,e.inUserInitiatedIteration),this._player.play(this.appliedState.startMuted),this.appliedState.inUserInitiatedThread&&this._videoContext.trackUserInteraction(),this._emitVideoPlayAttempted(e.consideredUserInitiatedByBrowser,this.appliedState.startMuted,this._spec.videoEngineSpec.engineType,this._spec.videoEngineSpec.preset),this._playActionCalled=!0,this.parentUnit.off(\"mediaStopRequested\",this._handleStopRequest),this.parentUnit.on(\"mediaStopRequested\",this._handleStopRequest),(i||noop)()},Video.prototype._handleStopRequest=function(e){\"toPlayVideo\"===e?(this._player.pause(),this.playWhenInView=!1):this._leaveView()},Video.prototype.pauseAction=function(e,t,i){this._player&&this._player.isState(CeltraPlayerUtils.PLAYING)&&this._player.pause(),(i||noop)()},Video.prototype.rewindAction=function(e,t,i){this._player&&this._player.replay(),(i||noop)()},Video.prototype.resetAction=function(e,t,i){this._destroyPlayer(),this._createPlayer(),this._emitVideoPlayAttempted=Video.prototype._emitVideoPlayAttempted.bind(this),(i||noop)()},Video.prototype.muteAction=function(e,t,i){this._player&&this._player.mute(),this.muted=!0,(i||noop)()},Video.prototype.unMuteAction=function(e,t,i){this._player&&this._player.unMute(),this.muted=!1,(i||noop)()},Video.prototype.enterFullScreenAction=function(e,t,i){this._player&&this._player.enterFullScreen(),(i||noop)()},Video.prototype.exitFullScreenAction=function(e,t,i){this._player&&this._player.exitFullScreen(),(i||noop)()},Video.prototype.setCustomUrlParameter=function(e,t){this._customUrlParameters[e]=t};;\nfunction Button(){}inherit(Button,ScreenObject),extend(Button.prototype,TextStyleIntegrator),Button.toString=function(){return\"[Clazz Button]\"},Button.prototype.toString=function(){return\"[Button \"+this.localId+\"]\"},Object.defineProperties(Button.prototype,{_borderRoundness:{get:function(){var t=0,e=0,o=0,r=0;if(this.border&&\"number\"==typeof this.borderRadius)t=this.borderRadius;else if(this.border!==!1||this.roundness){if(\"number\"==typeof this.roundness&&(r=this.roundness),r>0){var n=Math.min(this.getNaturalSize().height,this.getNaturalSize().width),s=n/2,i=Math.max(this.getNaturalSize().height,this.getNaturalSize().width),a=i/2;if(50>r){var d=r/50;t=s*d}else{var h=(r-50)/50,u=(a-s)*h,l=s+u;e=this.getNaturalSize().width==n?s:l,o=this.getNaturalSize().height==n?s:l}}}else r=0;return this.shadow&&ios(\"8\")&&window.devicePixelRatio>=3&&(1>t&&(t=1),1>e&&(e=1),1>o&&(o=1)),50>r?t+\"px\":e+\"px \"+o+\"px\"}}}),Button.prototype.getBorderWidth=function(){return this.borderWidth},Button.prototype.getShadowDistance=function(){return this.shadowDistance},Button.prototype.getShadowBlur=function(){return this.shadowBlur},Button.prototype.awake=function(){Button.uber.awake.call(this),this._defaultValues={backgroundUpImage:\"runner/clazzes/Button/button.png\",backgroundDownImage:\"runner/clazzes/Button/button-down.png\"},this._handleTap=this._handleTap.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this)},Button.prototype.createNode=function(){var t=Button.uber.createNode.call(this),e=creative.runtimeParams.overrides||creative.runtimeParams,o=e.deviceInfo&&e.deviceInfo.deviceType.toLowerCase();return this._hoverEnabled=(\"Desktop\"===creative.intendedDeviceType||\"Any\"===creative.intendedDeviceType)&&\"desktop\"===o,this._privateApiTracked={},this._backgroundElement=null,this._foregroundElement=null,this._textBorder=0,this._cssRules={},this._useBackgroundImage=\"image\"===this.background,this._useForegroundImage=\"image\"===(this._useBackgroundImage?this.foregroundForImage:this.foregroundForCss),addClass(t,\"touchable\"),this._createBackground(t),this._createForeground(t),this.addStyle(this._cssRules),attach(t,\"tap\",this._handleTap),attach(t,\"touchstart\",this._handleTouchStart),t},Button.prototype._appear=function(){this._experimentButtonStyle&&this._experimentButtonStyle.trackExposure()},Button.prototype._createBackground=function(t){if(this._backgroundElement=document.createElement(\"div\"),addClass(this._backgroundElement,\"background\"),this._useBackgroundImage){var e=!1,o=\"normal\",r=\"focus\",n=\"pressed\",s=function(t,e){addClass(e,t),this._backgroundElement.appendChild(e)}.bind(this);this.backgroundUpImage?this._preloadImage(this.backgroundUpImage,function(t){s(o,t)}):(e=!0,this._preloadImage(new File(this._defaultValues.backgroundUpImage),{force:!1},function(t){s(o,t)})),this._hoverEnabled&&this.backgroundHoverImage&&this._preloadImage(this.backgroundHoverImage,function(t){s(r,t)}),this.backgroundDownImage?this._preloadImage(this.backgroundDownImage,function(t){s(n,t)}):e&&this._preloadImage(new File(this._defaultValues.backgroundDownImage),{force:!1},function(t){s(n,t)}),this._cssRules[\".background .\"+o]=\"display: block;\",this._cssRules[\".background .\"+r]=\"display: none;\",this._cssRules[\".background .\"+n]=\"display: none;\",this._hoverEnabled&&this.backgroundHoverImage&&(this._cssRules[\":hover .background .\"+o]=\"display: none;\",this._cssRules[\":hover .background .\"+r]=\"display: block;\",this._cssRules[\":hover .background .\"+n]=\"display: none;\"),(this.backgroundDownImage||e)&&(this._cssRules[\".background.down .\"+o]=\"display: none;\",this._cssRules[\".background.down .\"+r]=\"display: none;\",this._cssRules[\".background.down .\"+n]=\"display: block;\")}else{if(this.backgroundColor){var i=\"\";if(Color.isGradient(this.backgroundColorUp)?(i+=Color.createGradientStyle(this.backgroundColorUp),i+=\"background-color: transparent;\"):(i+=\"background-image: none; \",i+=\"background-color: \"+this.backgroundColorUp+\";\"),this._cssRules[\".background\"]=i,this._hoverEnabled&&this.backgroundColorHover){var a=\"\";Color.isGradient(this.backgroundColorHover)?(a+=Color.createGradientStyle(this.backgroundColorHover),a+=\"background-color: transparent;\"):(a+=\"background-image: none; \",a+=\"background-color: \"+this.backgroundColorHover+\";\"),this._cssRules[\":hover .background\"]=a}var d=\"\";Color.isGradient(this.backgroundColorDown)?(d+=Color.createGradientStyle(this.backgroundColorDown),d+=\"background-color: transparent;\"):(d+=\"background-image: none; \",d+=\"background-color: \"+this.backgroundColorDown+\";\"),this._cssRules[\".background.down\"]=d}if(this.border&&(this._backgroundElement.style.borderColor=this.borderColor,this._backgroundElement.style.borderWidth=this.getBorderWidth()+\"px\"),this.shadow){var h=this.shadowAngle%90===0?-.3:0,u=this.shadowAngle*(Math.PI/180),l=Math.round(this.getShadowDistance()*Math.cos(u)),c=Math.round(this.getShadowDistance()*Math.sin(u));celtra.styler.css(this._backgroundElement,\"boxShadow\",l+\"px \"+c+\"px \"+this.getShadowBlur()+\"px \"+h+\"px \"+this.shadowColor)}}t.appendChild(this._backgroundElement)},Button.prototype._createForeground=function(t){var e=this.callToActionText.trim().length>0;if(this._foregroundElement=document.createElement(\"div\"),addClass(this._foregroundElement,\"foreground\"),!this._useBackgroundImage&&this.border?(this._foregroundElement.style.borderWidth=this.getBorderWidth()+\"px\",this._textBorder=this.getBorderWidth()):this._textBorder=0,this._useForegroundImage){this._foregroundElement.className+=this.foregroundStretchImage?\" image-stretch\":\" image-fit\";var o=\"normal\",r=\"focus\",n=\"pressed\",s=function(t,e){var o=document.createElement(\"div\");addClass(o,t),o.style.backgroundImage=\"url(\"+e.src+\")\",this._foregroundElement.appendChild(o)}.bind(this);this.foregroundUpImage&&this._preloadImage(this.foregroundUpImage,function(t){s(o,t)}),this._hoverEnabled&&this.foregroundHoverImage&&this._preloadImage(this.foregroundHoverImage,function(t){s(r,t)}),this.foregroundDownImage&&this._preloadImage(this.foregroundDownImage,function(t){s(n,t)}),this._cssRules[\".foreground .\"+o]=\"display: block;\",this._cssRules[\".foreground .\"+r]=\"display: none;\",this._cssRules[\".foreground .\"+n]=\"display: none;\",this._hoverEnabled&&this.foregroundHoverImage&&(this._cssRules[\":hover .foreground .\"+o]=\"display: none;\",this._cssRules[\":hover .foreground .\"+r]=\"display: block;\",this._cssRules[\":hover .foreground .\"+n]=\"display: none;\"),this.foregroundDownImage&&(this._cssRules[\".foreground.down .\"+o]=\"display: none;\",this._cssRules[\".foreground.down .\"+r]=\"display: none;\",this._cssRules[\".foreground.down .\"+n]=\"display: block;\")}else e&&(this._foregroundElement.className+=\" call-to-action\",this._foregroundElement.textContent=this.callToActionText,this.initializeFont(),this._cssRules[\".foreground\"]=\"color: \"+this.textColor+\";\",this._hoverEnabled&&this.textColorHover&&(this._cssRules[\":hover .foreground\"]=\"color: \"+this.textColorHover+\";\"),this._cssRules[\".foreground.down\"]=\"color: \"+this.textColorDown+\";\");t.appendChild(this._foregroundElement)},Button.prototype.redrawLayout=function(){if(!this._useBackgroundImage){var t=this._borderRoundness;parseInt(t,10)>0&&(this._backgroundElement&&(this._backgroundElement.style.borderTopLeftRadius=t,this._backgroundElement.style.borderTopRightRadius=t,this._backgroundElement.style.borderBottomLeftRadius=t,this._backgroundElement.style.borderBottomRightRadius=t),this._foregroundElement&&(this._foregroundElement.style.borderTopLeftRadius=t,this._foregroundElement.style.borderTopRightRadius=t,this._foregroundElement.style.borderBottomLeftRadius=t,this._foregroundElement.style.borderBottomRightRadius=t))}var e=this.callToActionText.trim().length>0;if(!this._useForegroundImage&&e){this.applyTextSize(this._foregroundElement.style);var o;if(\"undefined\"!=typeof this.lineSpacing){o=parseInt(this._foregroundElement.style.lineHeight,10);var r=this.callToActionText.split(/\\n/).length,n=o*r,s=this.sizeUsingTransforms()?this.getNaturalSize():this.size,i=(s.height-n)/2,a=i-this._textBorder;this._foregroundElement.style.paddingTop=a+\"px\"}else o=this.size.height-2*this._textBorder,this._foregroundElement.style.lineHeight=o+\"px\"}},Button.prototype.updateTextStyle=function(){var t=this.callToActionText.trim().length>0;!this._useForegroundImage&&t&&(this.applyTextStyle(this._foregroundElement.style),this._foregroundElement.style.color=\"\")},Button.prototype._handleTap=function(t){t.stopPropagation()},Button.prototype._handleTouchStart=function(){addClass(this._backgroundElement,\"down\"),addClass(this._foregroundElement,\"down\"),attach(this.parentUnit.node,\"touchend\",this._handleTouchEnd),this._experimentButtonStyle&&this._experimentButtonStyle.trackSuccess()},Button.prototype._handleTouchEnd=function(){removeClass(this._backgroundElement,\"down\"),removeClass(this._foregroundElement,\"down\"),detach(this.parentUnit.node,\"touchend\",this._handleTouchEnd)},Button.prototype._applyExperiments=function(){this._experimentButtonStyle=this._copyChosenExperimentProperties(\"ButtonStyle\")};;\nvar Form={};Form.toString=function(){return\"[Clazz Form]\"},Form.submitAction=function(e,i,t){this.submitInProgress||(this.submitInProgress=!0,this.hasFailureCallback=i.onFailure?!1:!0,e.track({name:\"formSubmissionAttempted\",label:i.reportLabel}),Form.validateAction(e,{formElements:i.formElements,onSuccess:function(e,t){var r;if(\"table\"==i.submitTarget&&i.tableId)r=creative.apiUrl+\"formTables/\"+i.tableId+\"/rows\";else{if(\"url\"!=i.submitTarget||!i.url)return(i.onFailure||nullai)(e,t);r=i.url}var a={fields:{}};i.formElements.forEach(function(e){a.fields[e.fieldName]=e.getField()});var n=new XMLHttpRequest;n.open(\"POST\",r),n.setRequestHeader(\"Content-Type\",\"application/json; charset=utf-8\"),n.onreadystatechange=function(){if(4===n.readyState){var r=200<=n.status&&n.status<300;r&&e.track({name:\"formSubmissionSucceeded\",label:i.reportLabel});var a=r?i.onSuccess:i.onFailure;(a||nullai)(e,t),this.submitInProgress=!1}}.bind(this),n.send(JSON.stringify(a))}.bind(this),onFailure:function(e,t){(i.onFailure||nullai)(e,t),this.submitInProgress=!1}.bind(this)},t))},Form.validateAction=function(e,i,t){function r(){u=[];for(var e in creative.units){var i=creative.units[e];if(i.isAppearing){var t=i.currentScreen,r=t.node.querySelectorAll(\"input, textarea\");if(r)for(var a=0;a-1?t.push(\"center\"):t.unshift(\"center\"));var e,i,n=this.file.width/this.file.height,h=this.sizeUsingTransforms()?this.getNaturalSize():this.size,o=h.width/h.height,r=this.fittingSize;\"fitUpToOriginal\"===this.fittingSize&&(r=h.widtho?(e=h.width,i=this.file.height*(h.width/this.file.width)):(e=this.file.width*(h.height/this.file.height),i=h.height):\"fill\"===r&&(n>o?(e=this.file.width*(h.height/this.file.height),i=h.height):(e=h.width,i=this.file.height*(h.width/this.file.width)));var s,a;if(\"repeat\"===r)s={left:0,center:Math.round((h.width*this._patternPixelRatio-e)/2),right:h.width*this._patternPixelRatio-e},a={top:0,center:Math.round((h.height*this._patternPixelRatio-i)/2),bottom:h.height*this._patternPixelRatio-i},this._imageElementsCtx.canvas.width=h.width*this._patternPixelRatio,this._imageElementsCtx.canvas.height=h.height*this._patternPixelRatio,this._imageElement.style.width=h.width+\"px\",this._imageElement.style.height=h.height+\"px\",this._imageElementsCtx.save(),this._imageElementsCtx.fillStyle=this._pattern,this._imageElementsCtx.translate(s[t[0]],a[t[1]]),this._imageElementsCtx.fillRect(-s[t[0]],-a[t[1]],h.width*this._patternPixelRatio,h.height*this._patternPixelRatio),this._imageElementsCtx.restore();else{s={left:\"left: 0px;\",center:\"left: \"+Math.round((h.width-e)/2)+\"px;\",right:\"right: 0px;\"},a={top:\"top: 0px;\",center:\"top: \"+Math.round((h.height-i)/2)+\"px;\",bottom:\"bottom: 0px;\"};var p=s[t[0]]+\" \"+a[t[1]]+\" \",g=\"width: \"+e+\"px; height: \"+i+\"px; \",l=\"\";this._imageElement.style.cssText=\"position: absolute; \"+p+g+l}}},Picture.prototype._handlePreloadedImage=function(t,e){(this._useDynamicImage||\"repeat\"===this.fittingSize)&&(this.file.meta={height:e.naturalHeight,width:e.naturalWidth}),\"repeat\"===this.fittingSize?(this._imageElement=document.createElement(\"canvas\"),this._imageElementsCtx=this._imageElement.getContext(\"2d\"),this._pattern=this._imageElementsCtx.createPattern(e,\"repeat\"),this._patternPixelRatio=e.naturalWidth/this.file.width):this._imageElement=e,this._drawImage(),t.appendChild(this._imageElement)}}var m=Screen.prototype.resetAction;Screen.prototype.resetAction=function(t){Scene.instances.forEach(function(e){e.parentScreen===this&&e.resetAction(t,{},noop)}.bind(this)),m.apply(this,arguments)},ScreenObject._roundIfNeeded=function(t){return t},\"undefined\"!=typeof Texty&&(Texty.prototype.getNaturalSize=p(Texty.prototype.getNaturalSize,t),Texty.prototype.getFontSize=p(Texty.prototype.getFontSize,e),Texty.prototype.getLineSpacing=p(Texty.prototype.getLineSpacing,i),Texty.prototype.getLetterSpacing=p(Texty.prototype.getLetterSpacing,n),Texty.prototype.getTextShadowBlur=p(Texty.prototype.getTextShadowBlur,s),Texty.prototype.getTextShadowOffset=p(Texty.prototype.getTextShadowOffset,a)),\"undefined\"!=typeof Button&&(Button.prototype.getNaturalSize=p(Button.prototype.getNaturalSize,t),Button.prototype.getFontSize=p(Button.prototype.getFontSize,e),Button.prototype.getLineSpacing=p(Button.prototype.getLineSpacing,i),Button.prototype.getLetterSpacing=p(Button.prototype.getLetterSpacing,n),Button.prototype.getBorderWidth=p(Button.prototype.getBorderWidth,h),Button.prototype.getShadowDistance=p(Button.prototype.getShadowDistance,o),Button.prototype.getShadowBlur=p(Button.prototype.getShadowBlur,r),Button.prototype.getTextShadowBlur=p(Button.prototype.getTextShadowBlur,s),Button.prototype.getTextShadowOffset=p(Button.prototype.getTextShadowOffset,a))}();;\n!function(n){function e(n,u,a){this._propertyTweens={},a=a||e.getUsedProperties(n);var o=r(n);for(var s in a){var f=a[s],c=i(f,o);this._propertyTweens[f]=new t(c,u)}}function t(n,t){this._keyframes=n,this._defaultTimingFunction=t||e.Timing.linear,this._tweenable=a(this._keyframes),u(this._keyframes)}function r(n){var e=[];for(var t in n){var r=parseFloat(t);e[Math.round(r*m)]=n[t]}return e}function i(n,e){var t,r={};for(var i in e)if(n in e[i]){\"undefined\"==typeof r[i]&&(r[i]={});var u=e[i][n];u instanceof Object?(\"undefined\"!=typeof u.value&&null!==u.value&&(t=u.value,r[i].value=u.value),u.timingFunction&&(r[i].timingFunction=u.timingFunction)):(t=u,r[i].value=u,e[i].timingFunction&&(r[i].timingFunction=e[i].timingFunction))}return\"undefined\"==typeof r[O]&&(r[O]={value:t}),r}function u(n){if(!(y in n))throw new Error(\"Missing initial keyframe!\");if(!(O in n))throw new Error(\"Missing final keyframe!\")}function a(n){for(var e in n)return\"number\"==typeof n[e].value}function o(n,e,t,r){var i=.001,u=3*n,a=3*(t-n)-u,o=1-u-a,s=3*e,f=3*(r-e)-s,c=1-s-f,v=function(n){return((o*n+a)*n+u)*n},l=function(n){return((c*n+f)*n+s)*n},p=function(n){return(3*o*n+2*a)*n+u},h=function(n){var e,t,r,u,a,o;for(r=n,o=0;8>o;o++){if(u=v(r)-n,Math.abs(u)r)return e;if(r>t)return t;for(;t>e;){if(u=v(r),Math.abs(u-n)u?e=r:t=r,r=.5*(t-e)+e}return r};return function(n){return l(h(n))}}function s(n){return Math.pow(n,2)}function f(n){return Math.pow(n,3)}function c(n){return Math.pow(n,4)}function v(n){return Math.pow(n,5)}function l(n){return 1-Math.cos(n*Math.PI*.5)}function p(n){return Math.pow(2,10*(n-1))}function h(n){return 1-Math.sqrt(1-n*n)}var m=1e5,y=0*m,O=100*m;e.prototype.getValuesAt=function(n){var e={};for(var t in this._propertyTweens)e[t]=this._propertyTweens[t].getValueAt(n);return e},e.getUsedProperties=function(n){var e={};for(var t in n)for(var r in n[t])\"timingFunction\"!=r&&(e[r]=!0);return Object.keys(e)},t.prototype.getValueAt=function(n){n=Math.round(n*m);var e,t;for(var r in this._keyframes)r==n?(e={position:r,values:this._keyframes[r]},t={position:r,values:this._keyframes[r]}):n>r?e={position:r,values:this._keyframes[r]}:r>n&&!t&&(t={position:r,values:this._keyframes[r]});if(!this._tweenable)return e.values.value;var i=t.position-e.position,u=n-e.position,a=0==i?0:u/i,o=e.values.timingFunction||this._defaultTimingFunction;a=o(a);var s=t.values.value-e.values.value,f=s*a;return e.values.value+f},e.Timing={none:function(){return 0},linear:function(n){return n},easeIn:o(.42,0,1,1),easeOut:o(0,0,.58,1),easeInOut:o(.42,0,.58,1),easeInQuad:s,easeOutQuad:function(n){return 1-s(1-n)},easeInOutQuad:function(n){return.5>n?.5*s(2*n):1-.5*s(2*(1-n))},easeInCubic:f,easeOutCubic:function(n){return 1-f(1-n)},easeInOutCubic:function(n){return.5>n?.5*f(2*n)/2:1-.5*f(2*(1-n))},easeInQuart:c,easeOutQuart:function(n){return 1-c(1-n)},easeInOutQuart:function(n){return.5>n?.5*c(2*n):1-.5*c(2*(1-n))},easeInQuint:v,easeOutQuint:function(n){return 1-v(1-n)},easeInOutQuint:function(n){return.5>n?.5*v(2*n):1-.5*v(2*(1-n))},easeInSine:l,easeOutSine:function(n){return 1-l(1-n)},easeInOutSine:function(n){return.5*l(2*n)},easeInExpo:p,easeOutExpo:function(n){return 1-p(1-n)},easeInOutExpo:function(n){return.5>n?.5*p(2*n):1-.5*p(2*(1-n))},easeInCirc:h,easeOutCirc:function(n){return 1-h(1-n)},easeInOutCirc:function(n){return.5>n?.5*h(2*n):1-.5*h(2*(1-n))},easeInBack:o(.6,-.28,.735,.045),easeOutBack:o(.175,.885,.32,1.275),easeInOutBack:o(.68,-.55,.265,1.55),cubicBezier:o},n.KeyframeAnimation=e}(this);;\nfunction BaseScenePlayer(e){this._scene=e,this._state=new StateObject({progress:-1,loopCount:0}),this._update=this._update.bind(this),this._render=this._render.bind(this),this._end=this._end.bind(this),this.paused=!0,this.ended=!1,this.supportsAutoplay=!1,this.supportsFallback=!0}extend(BaseScenePlayer.prototype,EventEmitter),Object.defineProperty(BaseScenePlayer.prototype,\"progress\",{get:function(){return-1!==this._state.progress?this._state.progress:this.ended?100:0}}),BaseScenePlayer.prototype._update=function(){this._state.isDirty(\"progress\")&&(this._scene.updateObjects(this._state.progress),this.emit(\"progress\",this._state.progress))},BaseScenePlayer.prototype._render=function(){this._state.isDirty(\"progress\")&&(this._scene.renderObjects(),this._state.markClean(\"progress\"))},BaseScenePlayer.prototype._cancel=function(){Ticker.removeFrame(this._update,\"update\"),Ticker.removeFrame(this._render,\"render\"),Ticker.removeFrame(this._end,\"next\"),this.paused=!0},BaseScenePlayer.prototype._end=function(){this.stop(),this.emit(\"end\")},BaseScenePlayer.prototype._stop=noop,BaseScenePlayer.prototype._pause=noop,BaseScenePlayer.prototype._play=function(){return!0},BaseScenePlayer.prototype.play=function(){this._cancel(),this._play()&&(this.paused=!1,Ticker.frame(this._update,\"update\"),Ticker.frame(this._render,\"render\"),this.emit(\"play\"))},BaseScenePlayer.prototype.displayFallbackFrame=function(e){this._scene.updateObjects(Math.max(0,Math.min(e,100))),this._scene.renderObjects(),this._state.progress=e,this._state.markClean()},BaseScenePlayer.prototype.pause=function(){this.silentPause(),this.emit(\"pause\")},BaseScenePlayer.prototype.silentPause=function(){this.ended=100===this._state.progress,(0===this._state.progress||100===this._state.progress)&&(this._state.progress=-1),this._cancel(),this._pause()},BaseScenePlayer.prototype.stop=function(){this.silentPause(),this._stop(),this.emit(\"stop\")},BaseScenePlayer.prototype.destroy=function(){this._cancel()};;\nfunction TimeScenePlayer(e){TimeScenePlayer.uberConstructor.call(this,e),this._state.registerValue(\"elapsedTime\",null),this._state.registerValue(\"startTime\",null),this._state.registerValue(\"lastUpdateTime\",null),this.supportsFallback=!1}inherit(TimeScenePlayer,BaseScenePlayer),Object.defineProperty(TimeScenePlayer.prototype,\"_loopEnded\",{get:function(){return\"stop\"===this._scene.onEnd&&this._state.progress>=100||\"repeat\"===this._scene.onEnd&&this._scene.onEndRepeatCount&&this._state.loopCount>=this._scene.onEndRepeatCount||\"reverse\"===this._scene.onEnd&&this._scene.onEndReverseCount&&this._state.loopCount>=2*this._scene.onEndReverseCount}}),TimeScenePlayer.prototype._update=function(e){var t=this._scene.getDuration().milliseconds;this._state.startTime=this._state.startTime||e,this._state.lastUpdateTime&&(this._state.startTime-=this._state.lastUpdateTime,this._state.lastUpdateTime=null),this._state.elapsedTime=e-this._state.startTime,this._state.loopCount=Math.floor(t>0?this._state.elapsedTime/t:1);var s,i=100*(t>0?this._state.elapsedTime/t:1),a=i%100;s=\"repeat\"===this._scene.onEnd?this._loopEnded?100:a:\"reverse\"===this._scene.onEnd?this._loopEnded?0:this._state.loopCount%2?100-a:a:i,this._state.progress=Math.max(0,Math.min(s,100)),TimeScenePlayer.uber._update.apply(this,arguments),this._loopEnded&&Ticker.frame(this._end,\"next\")},TimeScenePlayer.prototype._pause=function(){this._state.lastUpdateTime||(this._state.lastUpdateTime=this._state.elapsedTime),this._state.elapsedTime=null,this._state.startTime=null},TimeScenePlayer.prototype._stop=function(){this._state.lastUpdateTime=null};;\n";
head.appendChild(js);
// Run!
// Check for runtimeParams to prevent IE 10 from initializing the creative early when host page is refreshed
if (typeof runtimeParams === 'undefined') return;
Creative.init({"id":"9afa289b","clazz":"ExpandableBanner","intendedDeviceType":"Desktop","name":"Quest DDT 18147 1118","units":{"banner":{"localId":1,"clazz":"CreativeUnit","master":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":1203,"type":"firstAppear","onFire":null,"isCustom":false,"isAnimated":false}],"scenes":[],"showOverflow":false,"title":"Master","localId":2,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"border","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(210,210,210,0)","border":true,"borderWidth":2,"borderColor":"rgba(68,68,68,1)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":10165,"fieldName":"border","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"186px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"logo bg","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(238,238,238,1)","border":false,"borderWidth":1,"borderColor":"rgba(0,0,0,1)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":10972,"fieldName":"logo bg","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"290px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"ninjaBG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":34313,"fittingSize":"fill","imagePosition":"right-top","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":34030,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"122px","top":"12px"},"size":{"width":"46px","height":"70px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"kaceLogo","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":31857,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":34459,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"6px","top":"23px"},"size":{"width":"103px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"questLogo","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":7,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":31858,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":34469,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"169px","top":"0px"},"size":{"width":"559px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"bg","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(255,79,31,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":7810,"fieldName":"bg","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"111px","top":"17px"},"size":{"width":"1px","height":"60px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"divider copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":51342,"fieldName":"divider copy","isAnimated":false}],"clazz":"Screen","guidelines":[{"localId":8822,"orientation":"v","position":"-238px","isAnimated":false},{"localId":22724,"orientation":"v","position":"185px","isAnimated":false}],"isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[],"dynamicReachableScreenConditions":{}},"screens":[{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":663,"type":"appear","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":664,"disabled":false,"actionClazz":"Screen","instanceLocalId":"3","method":"reset","isStatic":false,"args":{"target":"3","actionClazz":"Screen"},"isAnimated":false},{"clazz":"ActionInvocation","localId":49548,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"sleep","isStatic":true,"args":{"duration":"500"},"isAnimated":false}]}},{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":49536,"disabled":false,"actionClazz":"Scene","instanceLocalId":"49508","method":"playScene","isStatic":false,"args":{"target":"49508"},"isAnimated":false}]}},{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":49537,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"sleep","isStatic":true,"args":{"duration":"100"},"isAnimated":false}]}},{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":49538,"disabled":false,"actionClazz":"Scene","instanceLocalId":"49514","method":"playScene","isStatic":false,"args":{"target":"49514"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"scenes":[{"clazz":"Scene","localId":49508,"name":"tabs","type":"time","duration":10,"onEnd":"stop","onEndRepeatCount":0,"onEndReverseCount":0,"onEndWaitForCount":true,"autoPlay":null,"intersection":null,"fallbackFrame":null,"initialScene":null,"framesPerSecond":20,"objects":[{"targetLocalId":40230,"layoutSpecificValues":[[{"frame":7,"properties":{"opacity":{"localId":49552,"value":null,"isAnimated":false}}},{"frame":13,"properties":{"opacity":{"localId":49553,"value":1,"isAnimated":false}}}]]},{"targetLocalId":41706,"layoutSpecificValues":[[{"frame":0,"properties":{"opacity":{"localId":49509,"value":null,"isAnimated":false}}},{"frame":15,"properties":{"opacity":{"localId":49510,"value":1,"isAnimated":false}}}]]},{"targetLocalId":41730,"layoutSpecificValues":[[{"frame":0,"properties":{"opacity":{"localId":49511,"value":null,"isAnimated":false}}},{"frame":10,"properties":{"opacity":{"localId":49512,"value":0,"isAnimated":false}}},{"frame":20,"properties":{"opacity":{"localId":49513,"value":1,"isAnimated":false}}}]]}],"isAnimated":false},{"clazz":"Scene","localId":49514,"name":"ninja","type":"time","duration":10,"onEnd":"stop","onEndRepeatCount":0,"onEndReverseCount":0,"onEndWaitForCount":true,"autoPlay":null,"intersection":null,"fallbackFrame":null,"initialScene":null,"framesPerSecond":20,"objects":[{"targetLocalId":33321,"layoutSpecificValues":[[{"frame":0,"properties":{"top":{"localId":51107,"value":"58px","isAnimated":false},"opacity":{"localId":51111,"value":0,"isAnimated":false}}},{"frame":10,"properties":{"top":{"localId":51108,"value":"-12px","isAnimated":false},"opacity":{"localId":51112,"value":1,"isAnimated":false}}}]]}],"isAnimated":false}],"showOverflow":false,"title":"Start","localId":3,"objects":[{"layoutSpecificValues":[{"position":{"left":"451px","top":"10px"},"size":{"width":"2px","height":"70px"},"rotation":0,"opacity":0,"hidden":false}],"triggers":[],"name":"divider","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":40230,"fieldName":"divider","isAnimated":true},{"layoutSpecificValues":[{"position":{"left":"187px","top":"0px"},"size":{"width":"266px","height":"100px"},"rotation":0,"opacity":0,"hidden":false}],"triggers":[],"name":"btn 1","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":true,"creativeOptimizationEnabled":false,"clazz":"Group","localId":41706,"fieldName":"btn 1","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":41707,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":41380,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41382,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB1"},"isAnimated":false},{"clazz":"ActionInvocation","localId":41383,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"executeJavascript","isStatic":true,"args":{"scriptLocalId":41381,"name":"ExecuteJS 59 copy"},"isAnimated":false}]}},{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41384,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":1,"method":"expand","isStatic":false,"args":{"animation":"expand","destinationPage":null},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":41605,"type":"mouseOver","parameters":{"delay":"0"},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41606,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41753","method":"show","isStatic":false,"args":{"target":"41753"},"isAnimated":false},{"clazz":"ActionInvocation","localId":41607,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41776","method":"hide","isStatic":false,"args":{"target":"41776"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":41608,"type":"mouseOut","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41609,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41753","method":"hide","isStatic":false,"args":{"target":"41753"},"isAnimated":false},{"clazz":"ActionInvocation","localId":41610,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41776","method":"show","isStatic":false,"args":{"target":"41776"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset1_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":14,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":41338,"fieldName":"EXPAND asset1_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"10px","top":"6px"},"size":{"width":"253px","height":"94px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":41753,"fieldName":"hover","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":41754,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":10,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Battling with endpoint growth, security and compliance? ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":41618,"fieldName":"title copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":9,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Travel the path to endpoint management enlightenment with Quest KACE.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":41617,"fieldName":"copy copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"229px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":41535,"fieldName":"hover_plus","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"10px","top":"6px"},"size":{"width":"253px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":11,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":41776,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":41777,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":13,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Battling with endpoint growth, security and compliance? ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":31879,"fieldName":"title","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"252px","height":"39px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":12,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Travel the path to endpoint management enlightenment with Quest KACE.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":31886,"fieldName":"copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"229px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":11,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":40246,"fieldName":"plus","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":true},{"layoutSpecificValues":[{"position":{"left":"463px","top":"-17px"},"size":{"width":"326px","height":"133px"},"rotation":0,"opacity":0,"hidden":false}],"triggers":[],"name":"btn 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":true,"creativeOptimizationEnabled":false,"clazz":"Group","localId":41730,"fieldName":"btn 2","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":41731,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"17px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":41400,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41431,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB2"},"isAnimated":false},{"clazz":"ActionInvocation","localId":41432,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"executeJavascript","isStatic":true,"args":{"scriptLocalId":41430,"name":"ExecuteJS 60 copy"},"isAnimated":false}]}},{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41433,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":1,"method":"expand","isStatic":false,"args":{"animation":"expand","destinationPage":null},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":41611,"type":"mouseOver","parameters":{"delay":"0"},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41612,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41910","method":"show","isStatic":false,"args":{"target":"41910"},"isAnimated":false},{"clazz":"ActionInvocation","localId":41613,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41937","method":"hide","isStatic":false,"args":{"target":"41937"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":41614,"type":"mouseOut","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":41615,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41910","method":"hide","isStatic":false,"args":{"target":"41910"},"isAnimated":false},{"clazz":"ActionInvocation","localId":41616,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"41937","method":"show","isStatic":false,"args":{"target":"41937"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset2_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":41404,"fieldName":"EXPAND asset2_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"1px","top":"23px"},"size":{"width":"235px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":41910,"fieldName":"hover","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":41911,"objects":[{"layoutSpecificValues":[{"position":{"left":"174px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":41550,"fieldName":"hover_plus","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"143px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how you can find IT serenity.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":41800,"fieldName":"copy copy 3","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"235px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Master endpoint challenges with Nick the IT Ninja","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":41801,"fieldName":"title copy 3","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"1px","top":"23px"},"size":{"width":"235px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":41937,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":41938,"objects":[{"layoutSpecificValues":[{"position":{"left":"174px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":40259,"fieldName":"plus","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"143px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how you can find IT serenity.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":31942,"fieldName":"copy copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"235px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Master endpoint challenges with Nick the IT Ninja","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":31931,"fieldName":"title copy","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":true},{"layoutSpecificValues":[{"position":{"left":"603px","top":"-12px"},"size":{"width":"187px","height":"144px"},"rotation":0,"opacity":0,"hidden":false}],"triggers":[],"name":"Ninja-Sitting_Laptop-RGB","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":50222,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":33321,"isAnimated":true}],"clazz":"Screen","guidelines":[{"localId":5251,"orientation":"h","position":"90px","isAnimated":false},{"localId":10321,"orientation":"v","position":"715px","isAnimated":false},{"localId":12133,"orientation":"h","position":"29px","isAnimated":false},{"localId":22372,"orientation":"h","position":"61px","isAnimated":false},{"localId":31777,"orientation":"v","position":"443px","isAnimated":false},{"localId":40196,"orientation":"v","position":"458px","isAnimated":false},{"localId":40197,"orientation":"v","position":"473px","isAnimated":false},{"localId":40198,"orientation":"v","position":"199px","isAnimated":false}],"isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[],"dynamicReachableScreenConditions":{}}],"backgroundColor":"rgba(255,255,255,1)","scale":1,"sizing":"fixed","layoutAspectRatiosLocked":{"independent":true},"layoutCustomUnitSizes":{"independent":true},"orientation":"independent","layouts":[{"orientation":"independent","minSize":{"width":0,"height":0},"unitSize":{"width":728,"height":90},"designTimeSize":{"width":728,"height":90},"unitAlignment":{"horizontal":"center","vertical":"center"}}],"layoutsLocked":{"portrait":true,"landscape":true,"independent":true},"isAnimated":false},"modal":{"localId":4,"clazz":"CreativeUnit","master":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"scenes":[],"showOverflow":false,"title":"Master","localId":5,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"90px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"BG Elements","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":9189,"fieldName":"BG Elements","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":9190,"objects":[{"layoutSpecificValues":[{"position":{"left":"142px","top":"5px"},"size":{"width":"587px","height":"195px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"white BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(255,255,255,1)","border":true,"borderWidth":0,"borderColor":"rgba(0,109,92,0)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":9194,"fieldName":"white BG","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"138px","top":"179px"},"size":{"width":"591px","height":"23px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"Indicator BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"linear-gradient(0deg, rgba(40,40,40,1) 0%,rgba(63,63,63,1) 100%)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":9456,"fieldName":"Indicator BG","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"expandBG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(255,255,255,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":10333,"fieldName":"expandBG","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"134px","height":"200px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"gray rule BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"linear-gradient(180deg, rgba(210,210,210,1) 0%,rgba(76,76,76,1) 99%)","border":true,"borderWidth":0,"borderColor":"rgba(0,109,92,0)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":9195,"fieldName":"gray rule BG","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"Screen","guidelines":[{"localId":6726,"orientation":"h","position":"90px","isAnimated":false},{"localId":14581,"orientation":"v","position":"11px","isAnimated":false},{"localId":14582,"orientation":"v","position":"153px","isAnimated":false},{"localId":16565,"orientation":"v","position":"365px","isAnimated":false}],"isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[],"dynamicReachableScreenConditions":{}},"screens":[{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":688,"type":"appear","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":689,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"executeJavascript","isStatic":true,"args":{"scriptLocalId":31621,"name":"ExecuteJS 56"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"scenes":[],"showOverflow":false,"title":"Start","localId":6,"objects":[],"clazz":"Screen","guidelines":[],"isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[],"dynamicReachableScreenConditions":{}},{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":211,"type":"appear","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":5394,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"executeJavascript","isStatic":true,"args":{"scriptLocalId":31622,"name":"ExecuteJS 57"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"scenes":[],"showOverflow":false,"title":"Asset1","localId":137,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"88px"},"size":{"width":"737px","height":"213px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"3 assets","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":7,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":32222,"fieldName":"3 assets","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":32223,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"10px"},"size":{"width":"728px","height":"205px"},"rotation":0,"opacity":1,"hidden":false,"vertical":true}],"triggers":[],"name":"Swipey Group ","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"cellspacing":10,"startIndex":1,"cyclic":true,"autoAnimate":true,"autoAnimatePause":5300,"autoAnimateDirection":"north","autoAnimateConclusion":"repeat","autoAnimateUserInteraction":true,"pagination":"hidden","autoAnimatePreventUserInteraction":false,"clazz":"SwipeyGroup","localId":32224,"fieldName":"Swipey Group ","content":[{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":32225,"type":"itemFocus","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47227,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"47150","method":"show","isStatic":false,"args":{"target":"47150"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":32227,"type":"itemBlur","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47228,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"47150","method":"hide","isStatic":false,"args":{"target":"47150"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Panel 1","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":32229,"objects":[{"layoutSpecificValues":[{"position":{"left":"558px","top":"134px"},"size":{"width":"122px","height":"34px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":32233,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":32234,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN1_UnifiedEndpointManagement_whitepaper"},"isAnimated":false},{"clazz":"ActionInvocation","localId":32235,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToURL","isStatic":false,"args":{"url":"https://www.cio.com/resources/180279/?brand_id=256","reportLabel":"CTA_DownloadBrief_UnifiedEndpointManagement"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"BTN","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"experimentSpecificValues":{"ButtonStyle":[{"id":"v1","label":"v1","fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"textColor":"#ffffff","textAlign":"center","textDecoration":"","letterSpacing":0,"lineSpacing":0,"background":"css","backgroundColor":true,"backgroundColorUp":"rgba(251,79,20,1)","backgroundColorDown":"rgba(191,51,3,1)","backgroundColorHover":"rgba(191,51,3,1)","border":false,"borderWidth":2,"borderColor":"rgba(251,79,20,1)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":5,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","foregroundForCss":"text","foregroundForImage":"image","callToActionText":"Download Brief >","textColorDown":"#ffffff","textColorHover":"#ffffff","foregroundStretchImage":false}]},"scaleBaseHeight":0,"buttonStyleLastVariantId":1,"clazz":"Button","localId":32236,"fieldName":"BTN","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":0.5,"hidden":false}],"triggers":[],"name":"panel BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":53658,"fittingSize":"fill","imagePosition":"bottom","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":32237,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"225px","top":"65px"},"size":{"width":"471px","height":"101px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"body copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":13,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":7,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how a unified endpoint management strategy makes it possible for you to proactively manage and secure your IT infrastructure while ensuring compliance. ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":36124,"fieldName":"body copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"222px","top":"29px"},"size":{"width":"476px","height":"48px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"header copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":24,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":6,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Quest Unified Endpoint Management ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":36125,"fieldName":"header copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"BG copy 6","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(0,0,0,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":52895,"fieldName":"BG copy 6","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":32238,"type":"itemFocus","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47229,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"47149","method":"show","isStatic":false,"args":{"target":"47149"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":32240,"type":"itemBlur","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47230,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"47149","method":"hide","isStatic":false,"args":{"target":"47149"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Panel 2","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":32242,"objects":[{"layoutSpecificValues":[{"position":{"left":"222px","top":"29px"},"size":{"width":"456px","height":"79px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"header ","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":24,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":6,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Unified Endpoint Management Report","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":32248,"fieldName":"header ","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"225px","top":"65px"},"size":{"width":"456px","height":"101px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"body ","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":13,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":7,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Find out about the endpoint management challenges that organizations are facing with the proliferation of endpoints, security threats and rising demands for compliance.\n","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":32249,"fieldName":"body ","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":0.5,"hidden":false}],"triggers":[],"name":"panel BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":53659,"fittingSize":"fill","imagePosition":"right-top","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":32250,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(0,0,0,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":32251,"fieldName":"BG","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"558px","top":"136px"},"size":{"width":"122px","height":"34px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":45831,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":45832,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN2_Endpoints&DigitalTransformation_report"},"isAnimated":false},{"clazz":"ActionInvocation","localId":45833,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToURL","isStatic":false,"args":{"url":"https://www.cio.com/resources/180268/?brand_id=256","reportLabel":"CTA_ViewReport_Endpoints&DigitalTransformation"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"BTN","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"experimentSpecificValues":{"ButtonStyle":[{"id":"v1","label":"v1","fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"textColor":"#ffffff","textAlign":"center","textDecoration":"","letterSpacing":0,"lineSpacing":0,"background":"css","backgroundColor":true,"backgroundColorUp":"rgba(251,79,20,1)","backgroundColorDown":"rgba(191,51,3,1)","backgroundColorHover":"rgba(191,51,3,1)","border":false,"borderWidth":2,"borderColor":"rgba(251,79,20,1)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":5,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","foregroundForCss":"text","foregroundForImage":"image","callToActionText":"View Report >","textColorDown":"#ffffff","textColorHover":"#ffffff","foregroundStretchImage":false}]},"scaleBaseHeight":0,"buttonStyleLastVariantId":1,"clazz":"Button","localId":45834,"fieldName":"BTN","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":32252,"type":"itemFocus","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47232,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"47145","method":"show","isStatic":false,"args":{"target":"47145"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":32254,"type":"itemBlur","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47231,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"47145","method":"hide","isStatic":false,"args":{"target":"47145"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Panel 3","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":32256,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(0,0,0,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":32265,"fieldName":"BG","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"200px"},"rotation":0,"opacity":0.8,"hidden":false}],"triggers":[],"name":"panel BG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":53660,"fittingSize":"fill","imagePosition":"left-bottom","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":32264,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"225px","top":"62px"},"size":{"width":"453px","height":"101px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"body copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":13,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":6,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Endpoint mobility has its ups and downs. While having a distributed workforce is a benefit to any organization, the security challenges that come with it can be very challenging. Find out more about the latest trends in unified endpoint management.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":36582,"fieldName":"body copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"222px","top":"24px"},"size":{"width":"416px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"header copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":24,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":6,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Facing the Endpoint Reality","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":36583,"fieldName":"header copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"558px","top":"134px"},"size":{"width":"122px","height":"34px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":46024,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":46025,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN3_FacingEndpointReality_infographic"},"isAnimated":false},{"clazz":"ActionInvocation","localId":46026,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToURL","isStatic":false,"args":{"url":"https://www.cio.com/resources/180280/?brand_id=256","reportLabel":"CTA_ViewInfographic_FacingEndpointReality"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"BTN","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":7,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"experimentSpecificValues":{"ButtonStyle":[{"id":"v1","label":"v1","fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"textColor":"#ffffff","textAlign":"center","textDecoration":"","letterSpacing":0,"lineSpacing":0,"background":"css","backgroundColor":true,"backgroundColorUp":"rgba(251,79,20,1)","backgroundColorDown":"rgba(191,51,3,1)","backgroundColorHover":"rgba(191,51,3,1)","border":false,"borderWidth":2,"borderColor":"rgba(251,79,20,1)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":5,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","foregroundForCss":"text","foregroundForImage":"image","callToActionText":"Get Infographic >","textColorDown":"#ffffff","textColorHover":"#ffffff","foregroundStretchImage":false}]},"scaleBaseHeight":0,"buttonStyleLastVariantId":1,"clazz":"Button","localId":46027,"fieldName":"BTN","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false}],"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"186px","height":"213px"},"rotation":0,"opacity":0.5,"hidden":false}],"triggers":[],"name":"introBG","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(78,80,84,1)","border":false,"borderWidth":0,"borderColor":"rgba(0,109,92,0)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":32296,"fieldName":"introBG","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"21px","top":"40px"},"size":{"width":"145px","height":"170px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"intro","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":39656,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(238,238,238,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":6,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Travel the path \nto endpoint management enlightenment \nwith Quest KACE.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":32295,"fieldName":"intro","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"295px","top":"188px"},"size":{"width":"140px","height":"24px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"indicator links","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":32322,"fieldName":"indicator links","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":32323,"objects":[{"layoutSpecificValues":[{"position":{"left":"78px","top":"0px"},"size":{"width":"14px","height":"15px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":32310,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":32311,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"goToItem","isStatic":false,"args":{"target":32224,"item":3},"isAnimated":false},{"clazz":"ActionInvocation","localId":32312,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"stopAutoAnimate","isStatic":false,"args":{"target":32224},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Hotspot Panel 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":true,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":32313,"fieldName":"Hotspot Panel 3","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"64px","top":"0px"},"size":{"width":"12px","height":"14px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":32314,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":32315,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"goToItem","isStatic":false,"args":{"target":32224,"item":2},"isAnimated":false},{"clazz":"ActionInvocation","localId":32316,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"stopAutoAnimate","isStatic":false,"args":{"target":32224},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Hotspot Panel 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":7,"hiddenInBuilder":true,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":32317,"fieldName":"Hotspot Panel 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"49px","top":"1px"},"size":{"width":"13px","height":"13px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":32318,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":32319,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"goToItem","isStatic":false,"args":{"target":32224,"item":1},"isAnimated":false},{"clazz":"ActionInvocation","localId":32320,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"stopAutoAnimate","isStatic":false,"args":{"target":32224},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Hotspot Panel 1","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":true,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":32321,"fieldName":"Hotspot Panel 1","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"51px","top":"2px"},"size":{"width":"38px","height":"10px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"indicator dots","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":46860,"fieldName":"indicator dots","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":46861,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"10px","height":"10px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"1","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":3,"borderColor":"rgba(255,79,31,1)","roundness":45,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":32340,"fieldName":"1","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"14px","top":"0px"},"size":{"width":"10px","height":"10px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":32336,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":32337,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"goToItem","isStatic":false,"args":{"target":32224,"item":2},"isAnimated":false},{"clazz":"ActionInvocation","localId":32338,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"stopAutoAnimate","isStatic":false,"args":{"target":32224},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":3,"borderColor":"rgba(255,79,31,1)","roundness":100,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":32339,"fieldName":"2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"28px","top":"0px"},"size":{"width":"10px","height":"10px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":32332,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":32333,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"goToItem","isStatic":false,"args":{"target":32224,"item":3},"isAnimated":false},{"clazz":"ActionInvocation","localId":32334,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"stopAutoAnimate","isStatic":false,"args":{"target":32224},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":3,"borderColor":"rgba(255,79,31,1)","roundness":100,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":32335,"fieldName":"3","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"28px","top":"0px"},"size":{"width":"10px","height":"10px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[{"localId":47142,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47143,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"goToItem","isStatic":false,"args":{"target":32224,"item":3},"isAnimated":false},{"clazz":"ActionInvocation","localId":47144,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"stopAutoAnimate","isStatic":false,"args":{"target":32224},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"3_hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(251,79,20,1)","border":false,"borderWidth":3,"borderColor":"rgba(255,79,31,1)","roundness":100,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":47145,"fieldName":"3_hover","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"14px","top":"0px"},"size":{"width":"10px","height":"10px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[{"localId":47146,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47147,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"goToItem","isStatic":false,"args":{"target":32224,"item":2},"isAnimated":false},{"clazz":"ActionInvocation","localId":47148,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":32224,"method":"stopAutoAnimate","isStatic":false,"args":{"target":32224},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"2_hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":7,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(251,79,20,1)","border":false,"borderWidth":3,"borderColor":"rgba(255,79,31,1)","roundness":100,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":47149,"fieldName":"2_hover","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"10px","height":"10px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"1_hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(251,79,20,1)","border":false,"borderWidth":3,"borderColor":"rgba(255,79,31,1)","roundness":45,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":47150,"fieldName":"1_hover","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"207px","top":"9px"},"size":{"width":"500px","height":"200px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"BG copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(51,51,51,0.9)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":36853,"fieldName":"BG copy 3","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"290px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"ninjaBg copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":34313,"fittingSize":"fill","imagePosition":"right-top","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":37082,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"186px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"logo bg copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(238,238,238,1)","border":false,"borderWidth":1,"borderColor":"rgba(0,0,0,1)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":40519,"fieldName":"logo bg copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"122px","top":"12px"},"size":{"width":"46px","height":"70px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"kaceLogo copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":9,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":31857,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":40520,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"6px","top":"23px"},"size":{"width":"103px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"questLogo copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":10,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":31858,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":40521,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"463px","top":"-17px"},"size":{"width":"326px","height":"133px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"btn 2 copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42551,"fieldName":"btn 2 copy","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42552,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"17px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":42553,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42554,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB2"},"isAnimated":false},{"clazz":"ActionInvocation","localId":42966,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToScreen","isStatic":false,"args":{"screenLocalId":"7317","animation":"fade","direction":null,"duration":300},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":42555,"type":"mouseOver","parameters":{"delay":"0"},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42556,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42563","method":"show","isStatic":false,"args":{"target":"42563"},"isAnimated":false},{"clazz":"ActionInvocation","localId":42557,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42568","method":"hide","isStatic":false,"args":{"target":"42568"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":42558,"type":"mouseOut","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42559,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42563","method":"hide","isStatic":false,"args":{"target":"42563"},"isAnimated":false},{"clazz":"ActionInvocation","localId":42560,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42568","method":"show","isStatic":false,"args":{"target":"42568"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset2_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":42561,"fieldName":"EXPAND asset2_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"155px","top":"0px"},"size":{"width":"171px","height":"133px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"Ninja-Sitting_Laptop-RGB","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":7,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":33307,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":42562,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"9px","top":"23px"},"size":{"width":"235px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42563,"fieldName":"hover","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42564,"objects":[{"layoutSpecificValues":[{"position":{"left":"174px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42565,"fieldName":"hover_plus","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"143px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how you can find IT serenity.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42566,"fieldName":"copy copy 3","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"235px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Master endpoint challenges with Nick the IT Ninja","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42567,"fieldName":"title copy 3","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"9px","top":"23px"},"size":{"width":"235px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42568,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42569,"objects":[{"layoutSpecificValues":[{"position":{"left":"174px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42570,"fieldName":"plus","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"143px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how you can find IT serenity.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42571,"fieldName":"copy copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"235px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Master endpoint challenges with Nick the IT Ninja","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42572,"fieldName":"title copy","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"187px","top":"0px"},"size":{"width":"266px","height":"100px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"btn 1 copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42573,"fieldName":"btn 1 copy","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42574,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":42575,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42576,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB1"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset1_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":14,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":42584,"fieldName":"EXPAND asset1_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"10px","top":"6px"},"size":{"width":"253px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":11,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42590,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42591,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Battling with endpoint growth, security and compliance? ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42587,"fieldName":"title copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Travel the path to endpoint management enlightenment with Quest KACE.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42588,"fieldName":"copy copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"229px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42589,"fieldName":"hover_plus","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"456px","top":"10px"},"size":{"width":"2px","height":"70px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"divider","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":43783,"fieldName":"divider","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"463px","top":"-17px"},"size":{"width":"326px","height":"133px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"btn 2 copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":11,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":47301,"fieldName":"btn 2 copy 2","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":47302,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"17px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":47303,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47304,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB2"},"isAnimated":false},{"clazz":"ActionInvocation","localId":47305,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToScreen","isStatic":false,"args":{"screenLocalId":"7317","animation":"fade","direction":null,"duration":300},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":47306,"type":"mouseOver","parameters":{"delay":"0"},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47307,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":47314,"method":"show","isStatic":false,"args":{"target":47314},"isAnimated":false},{"clazz":"ActionInvocation","localId":47308,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":47319,"method":"hide","isStatic":false,"args":{"target":47319},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":47309,"type":"mouseOut","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47310,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":47314,"method":"hide","isStatic":false,"args":{"target":47314},"isAnimated":false},{"clazz":"ActionInvocation","localId":47311,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":47319,"method":"show","isStatic":false,"args":{"target":47319},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset2_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":47312,"fieldName":"EXPAND asset2_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"140px","top":"5px"},"size":{"width":"187px","height":"144px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"Ninja-Sitting_Laptop-RGB","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":50222,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":47313,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"1px","top":"23px"},"size":{"width":"235px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":47314,"fieldName":"hover","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":47315,"objects":[{"layoutSpecificValues":[{"position":{"left":"174px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47316,"fieldName":"hover_plus","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"143px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how you can find IT serenity.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47317,"fieldName":"copy copy 3","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"235px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Master endpoint challenges with Nick the IT Ninja","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47318,"fieldName":"title copy 3","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"1px","top":"23px"},"size":{"width":"235px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":47319,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":47320,"objects":[{"layoutSpecificValues":[{"position":{"left":"174px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47321,"fieldName":"plus","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"143px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how you can find IT serenity.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47322,"fieldName":"copy copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"235px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Master endpoint challenges with Nick the IT Ninja","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47323,"fieldName":"title copy","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"187px","top":"0px"},"size":{"width":"266px","height":"100px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"btn 1 copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":12,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":47324,"fieldName":"btn 1 copy 2","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":47325,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":47326,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":47327,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB1"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset1_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":14,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":47328,"fieldName":"EXPAND asset1_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"10px","top":"6px"},"size":{"width":"253px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":11,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":47329,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":47330,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"37px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Battling with endpoint growth, security and compliance? ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47331,"fieldName":"title copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"229px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":47333,"fieldName":"hover_plus","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"451px","top":"10px"},"size":{"width":"2px","height":"70px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"divider copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":13,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":47334,"fieldName":"divider copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"706px","top":"-1px"},"size":{"width":"22px","height":"22px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":49670,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":49671,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToScreen","isStatic":false,"args":{"screenLocalId":"496","animation":null,"direction":null,"duration":null},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Close_celtra copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":14,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":482,"fittingSize":"stretch","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":49672,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"111px","top":"17px"},"size":{"width":"1px","height":"60px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"divider copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":15,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":51552,"fieldName":"divider copy 3","isAnimated":false}],"clazz":"Screen","guidelines":[{"localId":5954,"orientation":"v","position":"106px","isAnimated":false},{"localId":11864,"orientation":"v","position":"166px","isAnimated":false},{"localId":46095,"orientation":"h","position":"159px","isAnimated":false},{"localId":47238,"orientation":"h","position":"266px","isAnimated":false},{"localId":47239,"orientation":"h","position":"225px","isAnimated":false}],"isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[496,7317,7317],"dynamicReachableScreenConditions":{}},{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":7315,"type":"appear","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":7316,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"executeJavascript","isStatic":true,"args":{"scriptLocalId":31623,"name":"ExecuteJS 58"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"scenes":[],"showOverflow":false,"title":"Asset2","localId":7317,"objects":[{"layoutSpecificValues":[{"position":{"left":"706px","top":"-1px"},"size":{"width":"22px","height":"22px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":21359,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":21360,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToScreen","isStatic":false,"args":{"screenLocalId":"496","animation":null,"direction":null,"duration":null},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"Close_celtra ","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":14,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":482,"fittingSize":"stretch","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":21363,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"374px","top":"112px"},"size":{"width":"338px","height":"68px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"headline","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":5,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":24,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":6,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Find endpoint management enlightenment with KACE","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":32778,"fieldName":"headline","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"374px","top":"179px"},"size":{"width":"340px","height":"105px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"abstract","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":6,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":13,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":7,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how Quest KACE makes it possible for Nick the IT Ninja to master proliferating endpoints, security threats, and compliance issues. ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":32779,"fieldName":"abstract","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"375px","top":"90px"},"size":{"width":"336px","height":"200px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"BG copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(51,51,51,0.9)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":33002,"fieldName":"BG copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"4px","top":"95px"},"size":{"width":"338px","height":"191px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"Inline Video 66","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":7,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"videoLocalId":33071,"feedFieldKey":null,"assetSource":"file","experimentSpecificValues":{"VideoPosterImage":[{"id":"default","label":"Default","posterImageLocalId":34533,"posterImageGenerate":false,"posterImageGenerateAt":50}]},"purpose":"full","fitting":"crop","autoplay":false,"muted":false,"preload":false,"loop":false,"pauseOnEnd":false,"closeOnEnd":true,"indefinitely":false,"repeatTimes":0,"teaserPlayFrom":0,"teaserPlayTo":5,"controlsMode":"hide","countdown":true,"resumeButton":true,"fullscreenButton":true,"clazz":"Video","localId":33052,"fieldName":"Inline Video 66","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"728px","height":"290px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"ninjaBg","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":34313,"fittingSize":"fill","imagePosition":"right-top","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":34113,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"186px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"logo bg","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":8,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(238,238,238,1)","border":false,"borderWidth":1,"borderColor":"rgba(0,0,0,1)","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":40786,"fieldName":"logo bg","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"122px","top":"12px"},"size":{"width":"46px","height":"70px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"kaceLogo","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":9,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":31857,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":40787,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"6px","top":"23px"},"size":{"width":"103px","height":"40px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"questLogo","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":10,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":31858,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":40788,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"463px","top":"-17px"},"size":{"width":"326px","height":"133px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"btn 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":11,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42283,"fieldName":"btn 2","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42284,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"17px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":42285,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42286,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB2"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset2_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":true,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":42293,"fieldName":"EXPAND asset2_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"1px","top":"23px"},"size":{"width":"235px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42300,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42301,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"37px"},"size":{"width":"235px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Master endpoint challenges with Nick the IT Ninja","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42299,"fieldName":"title copy 3","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"143px","height":"40px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"copy copy 3","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Discover how you can find IT serenity.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42298,"fieldName":"copy copy 3","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"174px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(170,170,170,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42297,"fieldName":"hover_plus","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"155px","top":"0px"},"size":{"width":"171px","height":"133px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"Ninja-Sitting_Laptop-RGB","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":33307,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":42294,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"160px","top":"22px"},"size":{"width":"157px","height":"122px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"Ninja-Sitting_Laptop-RGB copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":50222,"fittingSize":"fit","imagePosition":"center","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":49186,"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"187px","top":"0px"},"size":{"width":"266px","height":"100px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"btn 1","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":12,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42305,"fieldName":"btn 1","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42306,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"266px","height":"90px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[{"localId":42307,"type":"tap","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42308,"disabled":false,"actionClazz":"Creative","instanceLocalId":null,"method":"trackCustomEvent","isStatic":true,"args":{"name":"BTN_EXPAND_TAB1"},"isAnimated":false},{"clazz":"ActionInvocation","localId":42443,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToScreen","isStatic":false,"args":{"screenLocalId":"137","animation":"fade","direction":null,"duration":300},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":42309,"type":"mouseOver","parameters":{"delay":"0"},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42310,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42316","method":"show","isStatic":false,"args":{"target":"42316"},"isAnimated":false},{"clazz":"ActionInvocation","localId":42311,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42321","method":"hide","isStatic":false,"args":{"target":"42321"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false},{"localId":42312,"type":"mouseOut","parameters":{},"onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":42313,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42316","method":"hide","isStatic":false,"args":{"target":"42316"},"isAnimated":false},{"clazz":"ActionInvocation","localId":42314,"disabled":false,"actionClazz":"ScreenObject","instanceLocalId":"42321","method":"show","isStatic":false,"args":{"target":"42321"},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"name":"EXPAND asset1_button","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":true,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Hotspot","localId":42315,"fieldName":"EXPAND asset1_button","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"10px","top":"6px"},"size":{"width":"253px","height":"94px"},"rotation":0,"opacity":1,"hidden":true}],"triggers":[],"name":"hover","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42316,"fieldName":"hover","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42317,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title copy 2","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Battling with endpoint growth, security and compliance? ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42318,"fieldName":"title copy 2","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Travel the path to endpoint management enlightenment with Quest KACE.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42319,"fieldName":"copy copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"229px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"hover_plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(89,121,153,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42320,"fieldName":"hover_plus","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"10px","top":"6px"},"size":{"width":"253px","height":"86px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"inView","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":2,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"clazz":"Group","localId":42321,"fieldName":"inView","content":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"name":"Container","layoutSpecificValues":[{"size":{"width":"100%","height":"100%"}}],"aspectRatioLocked":false,"localId":42322,"objects":[{"layoutSpecificValues":[{"position":{"left":"0px","top":"0px"},"size":{"width":"252px","height":"50px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"title","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Battling with endpoint growth, security and compliance? ","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42323,"fieldName":"title","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"44px"},"size":{"width":"252px","height":"39px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":12,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"Travel the path to endpoint management enlightenment with Quest KACE.","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42324,"fieldName":"copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"229px","top":"60px"},"size":{"width":"24px","height":"26px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"plus","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":1,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fontLocalId":31878,"fontSize":16,"scaleFont":false,"scaleBaseWidth":0,"scaleBaseHeight":0,"textColor":"rgba(255,255,255,1)","textAlign":"left","textDecoration":"","letterSpacing":0,"lineSpacing":3,"textShadow":false,"textShadowDistance":1,"textShadowBlur":0,"textShadowAngle":0,"textShadowColor":"#999999","text":"\u271a","responsiveFont":false,"feedFieldKey":null,"dynamicContentEnabled":false,"textAlignVertical":0,"scrollable":false,"scrollbarPosition":"","scrollbarColor":"#000000","autoscrollEnabled":false,"autoscrollDelay":1000,"autoscrollDuration":3000,"autoscrollConclusion":"","isLineWrapAuto":false,"usePadding":true,"clazz":"Texty","localId":42325,"fieldName":"plus","isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false}],"clazz":"NestedContainer","isAnimated":false},"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"451px","top":"10px"},"size":{"width":"2px","height":"70px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"divider copy","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":13,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":43985,"fieldName":"divider copy","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"100px"},"size":{"width":"728px","height":"178px"},"rotation":0,"opacity":0.5,"hidden":true}],"triggers":[],"name":"Shapey 82","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":4,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":49365,"fieldName":"Shapey 82","isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"0px","top":"100px"},"size":{"width":"728px","height":"178px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"Stock Background Image","aspectRatioLocked":true,"coordinatesCentered":false,"zIndex":3,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"fileLocalId":51154,"fittingSize":"fill","imagePosition":"right-top","feedFieldKey":null,"assetSource":"file","importedFromLayoutFile":false,"clazz":"Picture","localId":50460,"isAnimated":false},{"layoutSpecificValues":[{"position":{"left":"111px","top":"17px"},"size":{"width":"1px","height":"60px"},"rotation":0,"opacity":1,"hidden":false}],"triggers":[],"name":"divider copy 4","aspectRatioLocked":false,"coordinatesCentered":false,"zIndex":15,"hiddenInBuilder":false,"lockedInBuilder":false,"creativeOptimizationEnabled":false,"backgroundColor":"rgba(170,170,170,1)","border":false,"borderWidth":5,"borderColor":"#000000","roundness":0,"shadow":false,"shadowDistance":0,"shadowBlur":10,"shadowAngle":0,"shadowColor":"rgba(0,0,0,0.5)","clazz":"Shapey","localId":51665,"fieldName":"divider copy 4","isAnimated":false}],"clazz":"Screen","guidelines":[{"localId":7334,"orientation":"v","position":"221px","isAnimated":false},{"localId":9938,"orientation":"h","position":"227px","isAnimated":false},{"localId":9939,"orientation":"h","position":"156px","isAnimated":false},{"localId":13796,"orientation":"v","position":"689px","isAnimated":false},{"localId":15228,"orientation":"v","position":"-170px","isAnimated":false},{"localId":20064,"orientation":"v","position":"320px","isAnimated":false},{"localId":20065,"orientation":"v","position":"410px","isAnimated":false},{"localId":20066,"orientation":"v","position":"300px","isAnimated":false},{"localId":20067,"orientation":"v","position":"392px","isAnimated":false},{"localId":20068,"orientation":"v","position":"361px","isAnimated":false},{"localId":20069,"orientation":"v","position":"340px","isAnimated":false},{"localId":24674,"orientation":"h","position":"132px","isAnimated":false},{"localId":28311,"orientation":"v","position":"416px","isAnimated":false},{"localId":40817,"orientation":"h","position":"60px","isAnimated":false}],"isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[496,137],"dynamicReachableScreenConditions":{}},{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[{"localId":560,"type":"appear","onFire":{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInSequence","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":561,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"collapse","isStatic":false,"args":{},"isAnimated":false}]}},{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":562,"disabled":false,"actionClazz":"Kernel","instanceLocalId":null,"method":"sleep","isStatic":true,"args":{"duration":"1000"},"isAnimated":false}]}},{"clazz":"ActionInvocation","actionClazz":"Kernel","instanceLocalId":null,"method":"runInParallel","isStatic":true,"args":{"actions":[{"clazz":"ActionInvocation","localId":563,"disabled":false,"actionClazz":"CreativeUnit","instanceLocalId":4,"method":"goToScreen","isStatic":false,"args":{"screenLocalId":"6","animation":null,"direction":null,"duration":null},"isAnimated":false}]}}]}},"isCustom":false,"isAnimated":false}],"scenes":[],"showOverflow":false,"title":"collapsed page","localId":496,"objects":[],"clazz":"Screen","guidelines":[],"isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[6],"dynamicReachableScreenConditions":{}}],"backgroundColor":"rgba(255,255,255,0)","scale":1,"sizing":"fixed","layoutAspectRatiosLocked":{"independent":true},"layoutCustomUnitSizes":{"independent":true},"orientation":"independent","forceResponsivePositioningAndSizing":false,"layouts":[{"orientation":"independent","minSize":{"width":0,"height":0},"unitSize":{"width":728,"height":290},"designTimeSize":{"width":728,"height":290},"unitAlignment":{"horizontal":"center","vertical":"center"}}],"layoutsLocked":{"portrait":true,"landscape":true,"independent":true},"closeButtonType":"image","closeButtonUpLocalId":592,"closeButtonDownLocalId":592,"closeButtonWidth":1,"closeButtonHeight":1,"loadingScreen":{"hiddenInBuilder":false,"lockedInBuilder":false,"triggers":[],"scenes":[],"showOverflow":false,"title":"Loading","localId":21,"objects":[],"clazz":"Screen","guidelines":[],"loaderVisible":true,"loaderColor":"#cc00ff","isAnimated":false,"immediatelyPlayedScenes":{"appear":{"scenesLocalIds":[]},"firstAppear":{"scenesLocalIds":[]}},"reachableScreensLocalIds":[6]},"isAnimated":false}},"unitSizes":{"banner":{"width":728,"height":90},"modal":{"width":728,"height":290}},"files":[{"clazz":"File","retina":false,"localId":482,"name":"Close_celtra.png","blobHash":"045d1ae385f800e259b33213b86ce50f13efc860b1c2026f2251e6ec7b83bed3","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":1441,"isAsset":true,"meta":{"size":2292,"contentType":"image/png","width":31,"height":30}},{"clazz":"File","retina":false,"localId":592,"name":"1x1.png","blobHash":"15cdb7f99fb05aebc6e507e45b7d9226022fc54c036e2cbad402b750c40ccea2","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":68,"isAsset":true,"meta":{"size":930,"contentType":"image/png","width":1,"height":1}},{"clazz":"File","retina":false,"localId":31857,"name":"kaceLogo.svg","blobHash":"5116ab56732806b98117f70ec37a2fa66110fde9a689d001d1f349af329827d3","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":null,"isAsset":true,"meta":{"size":2653,"contentType":"image/svg+xml","width":79.2,"height":122.4}},{"clazz":"File","retina":false,"localId":31858,"name":"questLogo.svg","blobHash":"65a5d70c241d3206c1c662437790e829d542fc2bc52a7c1353b3573f5d3ada55","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":null,"isAsset":true,"meta":{"size":3384,"contentType":"image/svg+xml","width":144,"height":54}},{"clazz":"File","retina":false,"localId":33071,"name":"Nick IT Ninja - Short Video.3gp","blobHash":"a6bbad69246ff8354dee322bcd964ee06d53849c21f91fb6bea6316531e32e4c","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":null,"isAsset":true,"meta":{"size":2065576,"contentType":"video/3gpp","duration":40.933333,"hasAudio":true,"hasVideo":true,"container":{"duration":41.052878,"bitrate":402520,"size":2065576},"width":640,"height":480,"framerate":15,"bitrate":223952,"codec":"h264"}},{"clazz":"File","retina":false,"localId":33307,"name":"Ninja-Sitting_Laptop-RGB.svg","blobHash":"87b19885650b1b2b9726e23b994532fc686efe266cb079b3ce35cdbed2f79453","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":null,"isAsset":true,"meta":{"size":39191,"contentType":"image/svg+xml","width":792,"height":612}},{"clazz":"File","retina":false,"localId":34313,"name":"ninjaBG.svg","blobHash":"aea39e0816b90008190b1c9a508be1e343351f7a6d39fd44951bf9f5c729b2f2","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":null,"isAsset":true,"meta":{"size":7779,"contentType":"image/svg+xml","width":728,"height":290}},{"clazz":"File","retina":false,"localId":34533,"name":"vidStill.jpg","blobHash":"06d3b129741be170ad9363174e0440eb52e15b895b28c981971a77273d8535dc","quality":85,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":136402,"isAsset":true,"meta":{"size":624789,"contentType":"image/jpeg","width":1439,"height":811}},{"clazz":"File","retina":false,"localId":50222,"name":"Ninja-Sitting_Laptop_noSmoke-RGB.svg","blobHash":"2f0a184f841868ebd7f0df22dbb5df0f20b36a598de7a07ebd48f294b89af73a","quality":-1,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":null,"isAsset":true,"meta":{"size":39508,"contentType":"image/svg+xml","width":792,"height":612}},{"clazz":"File","retina":false,"localId":51154,"name":"Stock-Background-Image.jpg","blobHash":"02cccbb636869d77b511070db860740e6c09dbae4556854f1143ce90075c0961","quality":85,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":17983,"isAsset":true,"meta":{"size":22936,"contentType":"image/jpeg","width":728,"height":200}},{"clazz":"File","retina":false,"localId":53658,"name":"Slide 1.jpg","blobHash":"6b3ffacd3934adb3a3da00cb294e7dc423d77fe93883cd034a62eb4a4f79aeb5","quality":85,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":76150,"isAsset":true,"meta":{"size":1182374,"contentType":"image/jpeg","width":914,"height":739}},{"clazz":"File","retina":false,"localId":53659,"name":"Slide 2.jpg","blobHash":"c33ee71f2355c0bd12c0e9c7ea1a32254db03bad53635ecf9140cad8bea40abd","quality":85,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":147870,"isAsset":true,"meta":{"size":1674011,"contentType":"image/jpeg","width":1025,"height":721}},{"clazz":"File","retina":false,"localId":53660,"name":"Slide 3.jpg","blobHash":"45109d704255b94d12663674d2d551ff03f8280aafc4192365213f6ce3d687e6","quality":85,"autoResize":false,"optimizedWidth":null,"optimizedHeight":null,"optimizedSize":83160,"isAsset":true,"meta":{"size":2144012,"contentType":"image/jpeg","width":1582,"height":723}}],"fonts":[{"clazz":"Font","localId":31878,"typefaceId":"google_opensans400n","provider":"google","family":"Open Sans","name":"Normal","style":"normal","weight":400},{"clazz":"Font","localId":39656,"typefaceId":"google_opensans400i","provider":"google","family":"Open Sans","name":"Italic","style":"italic","weight":400}],"scripts":[{"localId":31621,"language":"javascript","lockedInBuilder":false,"code":"// Call 'c' when the action is considered \"completed\".\n// code starts here\nvar chosenScreenName = creative.runtimeParams.chosenScreen;\n//screen.find('Text1').setTextAction(ctx, {'chosenScreenName' }, c);\nvar chosenScreen = unit.find(chosenScreenName);\nunit.goToScreenAction(ctx, {screen: chosenScreen}, noop);\nc();\n// code ends here"},{"localId":31622,"language":"javascript","lockedInBuilder":false,"code":"// Call 'c' when the action is considered \"completed\".\nc();\n"},{"localId":31623,"language":"javascript","lockedInBuilder":false,"code":"// Call 'c' when the action is considered \"completed\".\nc();\n"},{"localId":41381,"language":"javascript","lockedInBuilder":false,"code":"// Call 'c' when the action is considered \"completed\".\n//var chosenScreen;\ncreative.runtimeParams.chosenScreen = \"Asset1\";\nc();"},{"localId":41430,"language":"javascript","lockedInBuilder":false,"code":"// Call 'c' when the action is considered \"completed\".\n//var chosenScreen;\ncreative.runtimeParams.chosenScreen = \"Asset2\";\nc();"}],"version":199,"hostedFiles":null,"googleMapsJavaScriptVersion":"3.33","shareFacebookAppId":"1764042083689024","videoStreamAlgoVersions":{"mpeg1TeaserVideo":3,"mpeg1HQVideo":3,"mpeg1SHQVideo":1,"mpeg1InstaVideo":1,"aacAudio":1,"mpeg4HQ":3,"mpeg4HQPlus":1,"mpeg4HD":1,"webmHQ":1,"webmHD":1,"mpeg4InstaVideo":2,"oggHQVideo":1,"vp9_1080p":1,"x264_1080p":1,"vp9_720p":1,"custom":1},"isMoatVideoEnabled":false,"firstAppStoreUrlForInmobi":null,"googleMapsStandardProjectApiKey":"AIzaSyAtkTvxwHfTZKBJVenTPdtVXd9EKqDjfqY"}, runtimeParams, trackingCenter, aggregatorTracking, experiments, adapter, urls, urlOpenedOverrideUrls, storeOpenedOverrideUrls, macros, urlOpenedUrlAppendage, clickThroughDestinationUrl, perf);
})();