[\\s\\S]*?","gi");(e=(t=e).replace(r,""))!==t;);return e.replace(/e.minDistanceForSwipe:"x"===e.validAxis&&(t=n>e.minDistanceForSwipe),{isHorizontal:r/g),o="var p = []; with(o) {\n",i=!1;r.forEach(function(e){i?"="==e[0]?o+=" p.push("+e.replace(/^=\s*|\s*$/g,"")+");\n":o+=" "+e+"\n":e&&(o+=" p.push('"+e.replace(/'/g,"\\'").split(/\r?\n/g).join("\\n');\n p.push('")+"');\n"),i=!i}),o+='} return p.join("");';try{n=new Function("o",o)}catch(e){r=new Error("Cannot parse template! (see `template` property)");throw r.template=o,r}}return t?n(t):n}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";for(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],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(r,e,t){t=t||noop;var n,o=!1,i=fetchShortenedUrl.inProgress,a=fetchShortenedUrl.cache;function c(t,n){i[r].forEach(function(e){e[t](n)}),delete i[r]}"http"==!r.slice(0,4)?t():a[r]?defer(function(){e(a[r])},0,"fetchShortenedUrl defer success callback"):(i[r]||(i[r]=[],o=!0),i[r].push({success:e,error:t}),o&&(t=(creative.runtimeParams.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+"shortenedUrls/",o={url:r,fields:"shortUrlKey"},n={cbName:"shortener_"+btoa(to_utf8(r)).replace(/\//g,"$").replace(/\+/g,"_").replace(/=/g,"")},loadJSONP(t+"?"+buildQuery(o),n,function(e){e=creative.shareUrl+e.shortUrlKey;c("success",a[r]=e)},function(){requestCreateShortenedUrl(r,c)})))}function requestCreateShortenedUrl(t,n){var e=(creative.runtimeParams.secure?creative.apiUrl:creative.insecureApiUrl)+"shortenedUrls/",r=fetchShortenedUrl.cache,o=new XMLHttpRequest;o.open("POST",e),o.setRequestHeader("Content-Type","application/json; charset=utf-8"),o.onreadystatechange=function(){var e;4===o.readyState&&(201===o.status?(e=JSON.parse(o.responseText),e=creative.shareUrl+e.shortUrlKey,r[t]=e,n("success",e)):n("error"))},o.send(JSON.stringify({url:t}))}function isMediaPlaying(e){try{return 0=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;(0<=Logger.enabledNames.indexOf(e)||0<=Logger.enabledNames.indexOf("all"))&&(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(){var e=new Date;function n(e,n){for(e+="";e.lengthn[t])return 1}return 0}return!(-1===s(e,r)||1===s(e,i))}t.prototype.android=function(){return"Android"===this.name&&h(this.version,arguments)},t.prototype.osx=function(){return"OSX"===this.name&&h(this.version,arguments)},t.prototype.ios=function(){return"IOS"===this.name&&h(this.version,arguments)},t.prototype.windows=function(){return"Windows"===this.name&&h(this.version,arguments)},t.prototype.windowsPhone=function(){return"WindowsPhone"===this.name&&h(this.version,arguments)},t.prototype.linux=function(){return"Linux"===this.name},r.prototype.safari=function(){return"Safari"===this.name&&h(this.version,arguments)},r.prototype.chrome=function(){return 0===this.name.indexOf("Chrom")&&h(this.version,arguments)},r.prototype.ie=function(){return 0===this.name.indexOf("Internet Explorer")&&h(this.version,arguments)},r.prototype.android=function(){return"Android Browser"===this.name&&h(this.version,arguments)},r.prototype.samsung=function(){return"Samsung Browser"===this.name&&h(this.version,arguments)},r.prototype.opera=function(){return 0===this.name.indexOf("Opera")&&h(this.version,arguments)},r.prototype.silk=function(){return"Amazon Silk"===this.name&&h(this.version,arguments)},r.prototype.firefox=function(){return 0===this.name.indexOf("Firefox")&&h(this.version,arguments)},r.prototype.edge=function(){return"Edge"===this.name&&h(this.version,arguments)},r.prototype.miui=function(){return"MIUI Browser"===this.name&&h(this.version,arguments)},r.prototype.webView=function(){var e,n,t=null;return"iP"===(o.navigator.platform||"").substr(0,2)?(e=-1!==(e=this.userAgent).indexOf("Safari")&&-1!==e.indexOf("Version"),n=!/constructor/i.test(o.HTMLElement),e&&!o.navigator.standalone?t="iOS Safari or Safari Controller":(n||o.indexedDB)&&o.statusbar.visible?(o.webkit&&o.webkit.messageHandlers||n||o.indexedDB)&&(t="WKWebView"):t="UIWebView"):/^.*\/\d\.\d \(.*wv\).*/.test(this.userAgent)&&(t="AndroidWebView"),t},r.prototype.facebookApp=function(){var e=this.userAgent;return-1t[n])return 1}return 0}return!(-1===a(e,i)||1===a(e,r))}}(window);;
!function(n){var e=n.navigator.userAgent,r=function(){var e=n;try{for(;void 0!==e.parent.location.href&&e.parent.document!==e.document;)e=e.parent}catch(e){}return e}(),t=/rv:.*Gecko\//.test(e),i=/MSIE|Trident\//.test(e),o=/WebKit/.test(e),a=/^-?([mM]oz|[wW]eb[kK]it|[mM]s)-?/,l={},s=[],f=o?"webkit":i?"ms":t?"Moz":"",u=(e=e.match(/AppleWebKit\/(\d+)/))&&~~e[1]<540,c=["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"],m=d();function d(){return r.getComputedStyle(r.document.body,null)}function p(e,t,i){if(!e)throw new Error("No element specified!");if(E(t)){if(!(t in e.style)&&p.BREAK_ON_ERROR)throw new Error("Invalid CSS attribute "+t);if(void 0===i)return e.style[t];e.style[t]=i}else{if(-1==s.indexOf(t)&&y(t),void 0===i)return e.style[l[t]];e.style[l[t]]=i}}function w(e,t){if(!e)throw new Error("No element specified!");var i,e=e.ownerDocument.defaultView.getComputedStyle(e,null);if(u&&-1=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(t){var a,n,c,h,e=t.target,o=t.swipeNodeGetter,i=t.swipe,u=t.minLength||50,r=Object.create(ClickPreventer).initClickPrevention(function(){return e});function s(t,e){return Math.abs(t)>Math.abs(e)?0Math.min(50,u)&&(null===c?c=s(e,t):(e=s(e,t),c!=e&&d())))}function g(t){d(),u<=h&&(i(c,h),r.attachClickPreventionHandler())}attach(window,"touchstart",noop,!1),attach(e,"touchstart",function(t){creative.adapter.useNativeClickForTapDetection||t.preventDefault(),1==t.touches.length&&(a=t.changedTouches[0].pageX,n=t.changedTouches[0].pageY,h=0,c=null,attach(o(),"touchmove",l,!1),attach(o(),"touchend",g,!1),r.detachClickPreventionHandler())},!1)};
var ClickPreventer={initClickPrevention:function(e){return this._getDefaultClickPreventionNode=e||function(){},this._clickPreventionNode=null,this._clickPreventionHandler=this._clickPreventionHandler.bind(this),this},attachClickPreventionHandler:function(e){creative.adapter.nativeClickEmittedOnSwipe&&!this._clickPreventionNode&&(this._clickPreventionNode=e||this._getDefaultClickPreventionNode(),attach(this._clickPreventionNode,"click",this._clickPreventionHandler,!0))},detachClickPreventionHandler:function(){creative.adapter.nativeClickEmittedOnSwipe&&this._clickPreventionNode&&(detach(this._clickPreventionNode,"click",this._clickPreventionHandler,!0),this._clickPreventionNode=null)},_clickPreventionHandler:function(e){e.stopPropagation(),this.detachClickPreventionHandler()}};;
function PlaceboBar(i,n,r,e){var t=!1,l=document.createElement("div"),a=(l.className="celtra-placebobar",l.style.cssText="position: absolute; bottom: 60px; left: 0; right: 0; margin: auto; z-index: 20; width: 215px; height: 8px;",document.createElement("img")),a=(a.src=creative.resourceUrl+"runner/clazzes/CreativeUnit/loading-back.png",a.style.position="absolute",a.style.width="100%",a.style.height="100%",l.appendChild(a),document.createElement("div")),o=(a.style.position="absolute",a.style.top="2px",a.style.bottom="2px",a.style.left="3px",a.style.right="3px",l.appendChild(a),document.createElement("div"));return o.style.background="url("+creative.resourceUrl+"runner/clazzes/CreativeUnit/loading-over.png) "+e+" repeat-x",o.style.position="absolute",o.style.width="0",o.style.height="100%",a.appendChild(o),l.start=function(){var a;t||(t=!0,a=new Date,setTimeout(function e(){if(!l.parentNode)return;var t=Math.min((new Date-a)/i,n);o.style.width=100*t+"%";tthis.slidingWindow&&this.signals.shift(),i={x:(i=this.signals.reduce(function(i,e){return{x:i.x+e.x,y:i.y+e.y,z:i.z+e.z}})).x/this.signals.length,y:i.y/this.signals.length,z:i.z/this.signals.length},this.prevSignal&&(e=null,h=Math.abs(i.x-this.prevSignal.x),s=Math.abs(i.y-this.prevSignal.y),t=Math.abs(i.z-this.prevSignal.z),90===Math.abs(creative.adapter.orientation)&&(n=s,s=h,h=n),sthis.shakeThreshold?e="x":hthis.shakeThreshold?e="y":hthis.shakeThreshold&&(e="z"),(h>this.shakeThreshold||s>this.shakeThreshold||t>this.shakeThreshold)&&this.emit("shake",e)),this.prevSignal=i)};;
!function(){"use strict";t=window.navigator.userAgent,e=window.navigator.vendor,i=!!document.fonts;var t,e,i,r=/Apple/.test(e)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(t))?i&&603=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(i/this._targetTime,this.options.exp)*e+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){var t,h;null!==this._value&&this._value!==e&&(t=this._value-this.threshold)*(h=e-this.threshold)<=0&&(t<0?this.emit("up"):h<0&&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(){return 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,t=Date.now()-1e3*creative.runtimeParams.payloadJsClientTimestamp;t<3e4&&(e={unitName:this.name},creative.aggregatorTracking.trackAggregator("unitLoadTime",t,e),creative.aggregatorTracking.trackAggregator("unitLoadSuccesses",e))}.bind(this)),creative.adapter.on("mediaStopRequested",function(e){this.emit("mediaStopRequested",e)}.bind(this)),this.unitDiv=BaseCreativeUnit.uber.createNode.call(this),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.getAccessibilityProperties=function(){throw new Error("Not implemented")},BaseCreativeUnit.prototype.openAccessibilityUrl=function(e){var t=new ActionContext(this.currentScreen);this.goToURLAction(t,{url:e,reportLabel:e},noop)},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){var t;this._rxState&&(e=getElementRectRelativeToTopViewport(e),t=creative.adapter.getTopWindow(),this._rxState.left=~~e.left,this._rxState.top=~~e.top,this._rxState.right=~~e.right,this._rxState.bottom=~~e.bottom,this._rxState.width=~~e.width,this._rxState.height=~~e.height,this._rxState.vw=t.innerWidth,this._rxState.vh=t.innerHeight,this._rxState.pageYOffset=t.pageYOffset,this._rxState.x=~~(e.left+e.width/2-t.innerWidth/2),this._rxState.y=~~(e.top+e.height/2-t.innerHeight/2),this._rxStateCopies.forEach(function(e){e.copyFrom(this._rxState)}.bind(this)))},BaseCreativeUnit.prototype.getRxStateObject=function(){var e;return this._rxState?((e=this._generateNewRxStateObject()).copyFrom(this._rxState),this._rxStateCopies.push(e),e):null},BaseCreativeUnit.prototype.goToScreenAction=function(e,t,r){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){var t;return creative.urlOpenedUrlAppendage?(t=this.size.width+"x"+this.size.height,e+(0<=e.indexOf("?")?"&":"?")+creative.urlOpenedUrlAppendage.replace(new RegExp("{celtraFirstUnitSize}","ig"),t)):e},BaseCreativeUnit.prototype.openBrowser=function(e,t,r,a){if(!t)return(r||noop)();creative.adapter.trackEventsAndOpenBrowser(this._processURLParams(t),creative.shouldClickThroughToNewWindow(e),r,a)},BaseCreativeUnit.prototype.openClickThroughDestinationAction=function(e,t,r){var a=creative.clickThroughDestinationUrl,i=creative.shouldClickThroughToNewWindow(e),n=!1,o="clickThroughDestinationOpened",s=function(){n||(n=!0,creative.adapter.openBrowser(this._processURLParams(a),i))}.bind(this);a&&-1==["http://","https://"].indexOf(a)?(creative.adapter._stopAllMedia(),0this.size.width||t>this.size.height)&&(r.style.backgroundSize="contain"),a.color&&(r.style.backgroundColor=a.color),attach(r,"tap",function(e){r.parentNode.removeChild(r),i()},!1),document.createElement("div"));e.className="celtra-back-button touchable "+this.alignBackButtonHorizontal,r.appendChild(e)}.bind(this);a.file.meta?r(a.file.meta.width,a.file.meta.height):((t=new Image).onload=function(){r(this.width,this.height)},t.onerror=function(e){return console.error("Couldn't display image: "+a.file.getUrl()),i()},t.src=a.file.getUrl())},BaseCreativeUnit.prototype.saveImageAction=function(i,n,o){var e,s="imageSaveAttempted";function r(e,t){var r=e.getOriginalUrl(),a=e.name,e=e.blobHash;i.track({name:s,blobHash:e,label:n.reportLabel}),i.trackClickThrough(),creative.adapter.canSaveImage()?creative.adapter.trackingCenter.flush(function(){var e="shared.png",e=(void 0!==a?e=a:"string"==typeof t&&0=t.end},e.isValidInput=function(t,n){if(null==t||null==n||"number"!=typeof t||"number"!=typeof n)throw new Error("Invalid input type!");if(t<0||n<0)throw new Error("Range border can not be negative!");if(n<=t)throw new Error("Start should be less than the end!")},e.compareRanges=function(t,n){return t.start-n.start},e.obtainValidRanges=function(t){t=e._filterValidRanges(t);return e._mapToRanges(t)},e._filterValidRanges=function(t){return t.filter(function(t){try{return e.isValidInput(t.start,t.end),!0}catch(t){return!1}})},e._mapToRanges=function(t){return t.map(function(t){return new e(t.start,t.end)})},t.TextRange=e,"undefined"!=typeof module&&null!==module&&(module.exports=e)}(window);;
"use strict";!function(){function e(e){this._ranges=e||[],this.getRanges=function(){return this._ranges},this.getRangeIndices=function(){return this.getRanges().map(function(e){return[e.start,e.end]})},this.addRange=function(n){var s=n.start,a=n.end,e=this.getRanges().filter(function(e){var t=e.doesRangeOverlap(n);return t&&(s=Math.min(s,e.start),a=Math.max(a,e.end)),!t});this.getRanges().length===e.length?this._ranges.push(n):(this._ranges=e,this._ranges.push(new TextRange(s,a))),this._ranges.sort(TextRange.compareRanges)},this.removeRange=function(n){var s=[],e=this.getRanges().filter(function(e){var t=e.doesRangeOverlap(n);return t&&(e=this._recreateAppliedRange(e,n),s=s.concat(e)),!t},this);this._ranges=e.concat(s),this._ranges.sort(TextRange.compareRanges)},this._recreateAppliedRange=function(e,t){var n=[];return t.start>e.start&&t.ende.start&&n.push(new TextRange(e.start,t.start)),n},this.setRanges=function(e){this.removeAllRanges(),e.forEach(function(e){this.addRange(e)},this)},this.removeAllRanges=function(){this._ranges=[]},this.apply=function(e){throw new Error("Unsupported")},this.isAppliedToRange=function(t){return this.getRanges().some(function(e){return e.isSuperRangeOf(t)})}}window.BaseTextStyle=e,"undefined"!=typeof module&&null!==module&&(module.exports=e)}();;
"use strict";!function(){function e(e){BaseTextStyle.call(this,e),this.apply=function(e){return e?''+e+"":""}}window.UnbreakableTextStyle=e,"undefined"!=typeof module&&null!==module&&(module.exports=e)}();;
"use strict";!function(e){function t(){}t.UNBREAKABLE_START="\\[",t.UNBREAKABLE_END="\\]",t.extractStyleFromText=function(e){return this.hasUnbreakableCharacters(e)?this._extract(e):this._formatResponse(e,null)},t.hasUnbreakableCharacters=function(e){return e&&-1",encoded:">"}],"undefined"!=typeof module&&void 0!==module.exports?module.exports=d:e.HtmlEntitizer=d}(this);;
"use strict";!function(n){var e=!0;function t(){}function r(n,t){var e,r,i,t=new TextStyleCompiler(t).compile();return 0===t.length?o(n):(i=function(n,t){return o(n.substring(0,t[0].range.start))}(e=n,r=t),r.forEach(function(n,t){i+=function(n,t){n=o(n.slice(t.range.start,t.range.end));return t.apply(n)}(e,n),t+1l.__maxScrollLeft?t=l.__maxScrollLeft:t<0&&(t=0),i>l.__maxScrollTop?i=l.__maxScrollTop:i<0&&(i=0),l.__publish(t,i,e,o)},zoomBy:function(e,o,t,_,i){this.zoomTo(this.__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,_){return this.zoomTo(this.__zoomLevel*(0-p.__refreshHeight&&(p.__refreshActive=!1,p.__refreshDeactivate&&p.__refreshDeactivate()))):n=ao.__lastTouchMove-100;r-=3)n=r;n!==l?(l=i[l]-i[n],_=o.__scrollLeft-i[n-2],t=o.__scrollTop-i[n-1],o.__decelerationVelocityX=_/l*(1e3/60),o.__decelerationVelocityY=t/l*(1e3/60),_=o.options.paging||o.options.snapping?4:1,(Math.abs(o.__decelerationVelocityX)>_||Math.abs(o.__decelerationVelocityY)>_)&&!o.__refreshActive&&o.__startDeceleration(e)):o.options.scrollingComplete()}else 100=n||Math.abs(l.__decelerationVelocityY)>=n;return e||(l.__didDecelerationComplete=!0),e},function(e,o,t){l.__isDecelerating=!1,l.__didDecelerationComplete&&l.options.scrollingComplete(),l.scrollTo(l.__scrollLeft,l.__scrollTop,l.options.snapping)})},__stepThroughDeceleration:function(e){var o,t,_,i=this,l=i.__scrollLeft+i.__decelerationVelocityX,n=i.__scrollTop+i.__decelerationVelocityY;i.options.bouncing||((o=Math.max(Math.min(i.__maxDecelerationScrollLeft,l),i.__minDecelerationScrollLeft))!==l&&(l=o,i.__decelerationVelocityX=0),(o=Math.max(Math.min(i.__maxDecelerationScrollTop,n),i.__minDecelerationScrollTop))!==n&&(n=o,i.__decelerationVelocityY=0)),e?i.__publish(l,n,i.__zoomLevel):(i.__scrollLeft=l,i.__scrollTop=n),i.options.paging||(i.__decelerationVelocityX*=.95,i.__decelerationVelocityY*=.95),i.options.bouncing&&(e=o=0,t=i.options.penetrationDeceleration,_=i.options.penetrationAcceleration,li.__maxDecelerationScrollLeft&&(o=i.__maxDecelerationScrollLeft-l),ni.__maxDecelerationScrollTop&&(e=i.__maxDecelerationScrollTop-n),0!==o&&(o*i.__decelerationVelocityX<=0?i.__decelerationVelocityX+=o*t:i.__decelerationVelocityX=o*_),0!==e&&(e*i.__decelerationVelocityY<=0?i.__decelerationVelocityY+=e*t:i.__decelerationVelocityY=e*_))}};for(e in o)ZyngaScroller.prototype[e]=o[e]}();;
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,scrollingY:"horizontal"!==this.options.direction,bouncing:!!this.options.bouncing,animating:!!this.options.animating,locking:!!this.options.locking,snapping:!!this.options.snapping,animationDuration:void 0!==this.options.animationDuration?this.options.animationDuration:250,scrollingComplete:deferred(this.emits("scrollingEnd"))}),this.setEasing(void 0===this.options.easing||this.options.easing),this.redraw()}extend(Scroller.prototype,EventEmitter),Object.defineProperty(Scroller.prototype,"isDragging",{get:function(){return this.zyngaScroller.getValues().isDragging}}),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"),i=(addClass(t,"celtra-vertical-scrollbar"),addClass(t,this.options.scrollbarPosition||"none"),this.container.appendChild(t),document.createElement("div")),i=(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",document.createElement("div")),o=(addClass(i,"celtra-horizontal-scrollbar"),addClass(i,this.options.scrollbarPosition||"none"),this.container.appendChild(i),document.createElement("div"));i.appendChild(o),i.style.width=Math.round(this.container.size.width/this.list.size.width*this.container.size.width)+"px",i.style.backgroundColor=this.options.scrollbarColor,i.style.display=this.list.size.width<=this.container.size.width?"none":"block",this.scrollbars={vertical:t,horizontal:i,verticalStyle:t.style,horizontalStyle:i.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(_){this.options.easing=_,this.zyngaScroller.__publish=function(t,i,o,e){var s,n,r,l,a,c,h,p,d=this,u=d.__isAnimating;u&&(core.effect.Animate.stop(u),d.__isAnimating=!1),e&&d.options.animating?(d.__scheduledLeft=t,d.__scheduledTop=i,d.__scheduledZoom=o,s=d.__scrollLeft,n=d.__scrollTop,r=d.__zoomLevel,l=t-s,a=i-n,c=o-r,e=function(t,i,o){o&&(d.__scrollLeft=s+l*t,d.__scrollTop=n+a*t,d.__zoomLevel=r+c*t,d.__callback&&d.__callback(d.__scrollLeft,d.__scrollTop,d.__zoomLevel))},h=function(t){return d.__isAnimating===t},p=function(t,i,o){i===d.__isAnimating&&(d.__isAnimating=!1),(d.__didDecelerationComplete||o)&&d.options.scrollingComplete(),d.options.zooming&&(d.__computeScrollMax(),d.__zoomComplete&&(d.__zoomComplete(),d.__zoomComplete=null))},d.__isAnimating=_?core.effect.Animate.start(e,h,p,d.options.animationDuration,u?function(t){return Math.pow(t-1,3)+1}:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)}):core.effect.Animate.start(e,h,p,d.options.animationDuration)):(d.__scheduledLeft=d.__scrollLeft=t,d.__scheduledTop=d.__scrollTop=i,d.__scheduledZoom=d.__zoomLevel=o,d.__callback&&d.__callback(t,i,o),d.options.zooming&&(d.__computeScrollMax(),d.__zoomComplete&&(d.__zoomComplete(),d.__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.scrollbars.verticalStyle.display="block",addClass))(this.container,"vertical-scrollbar"),(this.container.size.width>=this.list.size.width?(this.scrollbars.horizontalStyle.display="none",removeClass):(this.scrollbars.horizontalStyle.display="block",addClass))(this.container,"horizontal-scrollbar")},Scroller.prototype._setSnapSize=function(t,i){this.zyngaScroller.setSnapSize(t,i)};;
function Creative(e,t,r,n,i,a,o,s,u,c,d,m,p){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 f=p.start("Creative.new"),s=extend({adapter:a,runtimeParams:t||{},urlOpenedOverrideUrls:s,urlOpenedUrlAppendage:d,clickThroughDestinationUrl:m,storeOpenedOverrideUrls:u,macros:c},o),d=p.start("Creative.unfreeze");return e=Freezer.unfreeze(e,window,s),d.end(),e.instantiation=randInt(),e.batcher=new Batcher({protoLoading:a.protoLoading}),e.trackingCenter=r,e.universalInteractionId="",e.aggregatorTracking=n,e.experiments=i,e.perf=p,e.platformAdvId=t.platformAdvId,e.platformAdvIdTrackingLimited=t.platformAdvIdTrackingLimited,null!=a&&(a.openBrowserSameWindowInHostileIFrame=function(e){window.top.location.href=e}),f.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,p){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,p)},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,r={};for(t in this.runtimeParams)0===t.indexOf(e)&&(r[t.slice(e.length)]=this.runtimeParams[t]);return r},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}},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(t){if(creative.runtimeParams.customAudiences[t])return{userExists:creative.runtimeParams.customAudiences[t].userExists,userData:creative.runtimeParams.customAudiences[t].userData,addUser:function(e){return CustomAudiences.addUser(t,e)},removeUser:function(){return CustomAudiences.removeUser(t)}};throw new Error('Custom audience "'+t+'" is not used by the creative.')}}},acceptLanguage:{enumerable:!0,get:function(){return this.runtimeParams.acceptLanguage}}}),Creative.prototype.awake=function(){function o(e,t,r,n){e.forEach(function(e){e.parentUnit=n,e.parentScreen=r,e.parentContainer=t})}for(var e in this.units){var t=this.units[e],r=(t.name=e,[]);t.variants?t.variants.forEach(function(e){r=r.concat(e.master,e.screens),e.loadingScreen&&(r=[e.loadingScreen].concat(r))}):(r=[t.master].concat(t.screens),t.loadingScreen&&(r=[t.loadingScreen].concat(r))),r.forEach(function(e){e.parentUnit=t,function r(e,n,i,a){e.forEach(function(t){t.parentUnit=a,t.parentScreen=i,t.parentContainer=n,t.getNestedContainers().forEach(function(e){e.parentUnit=a,e.parentScreen=i,e.parentObject=t,r(e.objects,e,i,a),e.scenes&&o(e.scenes,e,i,a)})})}(e.objects,e,e,t),e.scenes&&o(e.scenes,e,e,t)})}},Creative.prototype.track=function(e,t){0<=["firstInteraction","interaction","endCardInteraction","unitCollapsed","creativeDismissed","clickThroughDestinationOpened","firstClickThrough","itemSwiped"].indexOf(e.name)&&(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._getCreativeRendered=function(){return 1===this.runtimeParams.creativeRendered},Creative.prototype.trackCreativeRenderedOnScreenShow=Creative.prototype.trackCreativeRendered,Creative.prototype.trackCreativeRenderedOnVideoStart=noop,Creative.trackCustomEventAction=function(e,t,r){e.track({name:"custom",label:t.name}),creative.adapter.sendToEventMonitor("custom",t.triggerId,e.screen.name,null,t.name,e.initiatedBeforeScreenShown()),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){if("undefined"!=typeof UserLocation)return new UserLocation({lat:this.runtimeParams.gpsLat,lng:this.runtimeParams.gpsLng},e)},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=0<=["same","new"].indexOf(this.runtimeParams.preferredClickThroughWindow)?this.runtimeParams.preferredClickThroughWindow:"new",e=(creative&&creative.adapter.nesting.hostileIframe&&(t="new"),e&&e.inUserInitiatedIteration),r=deviceInfo.os.android()&&deviceInfo.browser.facebookApp();return"new"==t&&e&&!r},Creative.prototype.getFeedFields=function(){return FeedData.getCustomFields()},Creative.prototype.getFeedFieldByName=function(e){return FeedData.getCustomFieldByName(e)},Creative.prototype.getAllFeedFieldsByName=function(t){return FeedData.getCustomFields().filter(function(e){return e.name===t})};;
function Banner(){}inherit(Banner,Creative),Banner.toString=function(){return"[Clazz Banner]"},Banner.prototype.toString=function(){return"[Banner "+this.name+"]"},Banner.prototype.awake=function(){Banner.uber.awake.apply(this,arguments),this.adapter.wrapRedirectPageUrl=this.wrapRedirectPageUrl.bind(this),this.units.banner.dismissAction=function(n,e,t){n.track({name:"creativeDismissed"}),creative.adapter.dismiss(t,e)}.bind(this),this.units.banner.trackCreativeDismissed=function(){new ActionContext(this.visibleScreen).track({name:"creativeDismissed"})},this.units.banner.userLocation=this.createUserLocation(!1)};;
var Kernel={toString:function(){return"[Clazz Kernel]"},runInParallelAction:function(t,e,n){e.actions.waitForEach(function(e,n){e(t,n)},n)}};Kernel.runInParallelActionDryRun=Kernel.runInParallelAction,Kernel.runInBackgroundAction=function(e,n,t){n.action&&n.action(e,noop),t()},Kernel.runInSequenceAction=function(t,e,n){for(var r=n,i=e.actions.length-1;0<=i;i--)r=function(e,n){return function(){n(t,e)}}(r,e.actions[i]);r()},Kernel.runInSequenceActionDryRun=Kernel.runInSequenceAction,Kernel.runNTimesAction=function(e,n,t){n.caller.hasOwnProperty("executionsLeft")||(n.caller.executionsLeft=n.repeat),0i&&(t.sortIndex+=2e3),t.minSize.height>n&&(t.sortIndex+=2e3),t.sortIndex+=Math.abs(t.minSize.width-i)+Math.abs(t.minSize.height-n)}),t.sort(function(t,e){return t.sortIndex-e.sortIndex}),this.layoutCurrentIndex=this.layouts.indexOf(t[0]),o!=this.layoutCurrentIndex&&this.emit("layoutChanged")},CreativeUnit.prototype.enterRenderTree=function(){var t;this._isRendering||(this._isRendering=!0,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){-1<["INPUT","TEXTAREA","SELECT"].indexOf(t.target.nodeName)&&(this.lastInputElementFocused=t.target)}.bind(this),!0),attach(this.node,"blur",function(t){-1<["INPUT","TEXTAREA","SELECT"].indexOf(t.target.nodeName)&&(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 i,n,t=this.unitDiv=CreativeUnit.uber.createNode.call(this),e=(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),this.borderColor&&0=e.duration,t.shakeTimeout=setTimeout(function(){delete t.shakeStartTime,t.triggered=!1},500),e&&!t.triggered&&(t.triggered=i=!0),i)}.bind(this),null,e))},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 t=0;return this.objects.forEach(function(e){e.zIndex>t&&(t=e.zIndex)}),t},Screen.prototype.inViewTriggerSetup=function(){var t=!1,i=creative&&creative.adapter&&creative.adapter.adBehavior.subpixelScrollable;this.triggers.forEach(function(e){i&&"enterView"===e.type&&e.parameters&&100==e.parameters.area&&(e.parameters.area=99.9),"enterView"!==e.type&&"leaveView"!==e.type||(t=!0,this.inViewAreaRatio=0)},this),t&&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=t.length;return t&&a.ifNotClosing("swipe",n,n.trackUserInteraction),t},null,n)}})),attach(i,"transitionend",function(t){t.stopPropagation()},!1),this.disableComponentRedrawOnEvent||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.disableComponentRedrawOnEvent||this.parentUnit.on("layoutChanged",this.handleLayoutChanged.bind(this)),this.initClickPrevention(function(){return this.node}.bind(this)),this._applyStyles(i,this._calculateNewStyleAttributes()),this.positionUsingTransforms()||deviceInfo.browser.safari("9.0.0",null)||(i.style.outline="1px solid transparent"),this._rxListeners=[],i},ScreenObject.prototype.positionUsingTransforms=retFalse,ScreenObject.prototype.sizeUsingTransforms=retFalse,ScreenObject.prototype.isValid=retTrue,ScreenObject.prototype.getNaturalSize=function(){return this.originalSize},ScreenObject.prototype._scaleNaturalSize=function(t,e){return t},ScreenObject.prototype._calculateNewStyleAttributes=function(){var t={transform:"",transformOrigin:"50% 50%"},e=this._scaleNaturalSize(this.getNaturalSize(),this.size),i=this.position.x,n=this.position.y;return 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",i=this.size.width/e.width,n=this.size.height/e.height,t.transform+=" scale("+i+", "+n+")"):(t.width=this.size.width+"px",t.height=this.size.height+"px"),t.zIndex=this.zIndex,t.opacity=this.opacity,this.hidden?t.display="none":t.display="block",t},ScreenObject.prototype._applyStyles=function(e,i){i&&Object.keys(i).forEach(function(t){celtra.styler.css(e,t,i[t])})},ScreenObject.prototype._refreshDisplayState=function(){if(this.node){var t,e=this._calculateNewStyleAttributes(),i=!1;for(t in e){var n=String(e[t]).replace(/^\s*|\s*$/g,""),r=celtra.styler.css(this.node,t);celtra.styler.css(this.node,t)!==n&&r!=n&&"zIndex"!=t&&"display"!=t&&(i=!0)}return this._applyStyles(this.node,e),this.redrawLayout(),i}},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.redrawSceneLayout=function(){this.redrawLayout()},ScreenObject.prototype._checkAndEnhanceParamsForFileLoading=function(t,e,i){t=ScreenObject.uber._checkAndEnhanceParamsForFileLoading.call(this,t,e,i);return t.settings.creativeUnitVariantId=this.parentScreen.parentContainer.localId,t},ScreenObject.prototype._preloadImage=function(t,e,i){e=this._checkAndEnhanceParamsForFileLoading(t,e,i);ScreenObject.uber._preloadImage.call(this,t,e.settings,e.callback)},ScreenObject.prototype._loadImage=function(t,e,i){e=this._checkAndEnhanceParamsForFileLoading(t,e,i);ScreenObject.uber._loadImage.call(this,t,e.settings,e.callback)},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){i=i||noop,this.isAnimated=!0;var n=void 0!==e.duration?e.duration:1e3,r=e.timingFunction||"linear";function o(t){return!isNaN(parseFloat(t))&&isFinite(t)}function s(t){var e={position:{},size:{width:null,height:null},zIndex:null,opacity:null,rotation:null};return deep(e,t),e}function a(t,e){var i=e.size,n=t.size,r=(null==i.width&&(i.width=n.width),null==i.height&&(i.height=n.height),t.size=i,t.position),o=e.position,s=null,a=null,c=null,h=null;["left","right","hcenter"].forEach(function(t){t in r&&(s=t),t in o&&(c=t)}),["bottom","top","vcenter"].forEach(function(t){t in r&&(a=t),t in o&&(h=t)}),c&&null!==o[c]&&(delete r[s],r[c]=o[c]),h&&null!==o[h]&&(delete r[a],r[h]=o[h]),null!=e.rotation&&(t.rotation=e.rotation),null!=e.opacity&&(t.opacity=e.opacity),null!=e.zIndex&&(t.zIndex=e.zIndex)}e.layoutSpecificValues?e.layoutSpecificValues.forEach(function(t,e){this.layoutSpecificValues[e]&&a(this.layoutSpecificValues[e],s(t))}.bind(this)):(null!=(e=s(e.properties)).position.x&&(e.position.left=e.position.x+"px"),null!=e.position.y&&(e.position.top=e.position.y+"px"),null!=e.zIndex&&(e.zIndex=e.zIndex+ScreenObject._zIndexOffset,this.zIndex=e.zIndex),null!=e.size.width&&o(e.size.width)&&(e.size.width+="px"),null!=e.size.height&&o(e.size.height)&&(e.size.height+="px"),a(this.layoutCurrent,e));var c,h,u,l=this.node,e=(celtra.styler.css(l,"transition",""),celtra.styler.css(l,"transitionProperty","all"),celtra.styler.css(l,"transitionDuration",n+"ms"),celtra.styler.css(l,"transitionTimingFunction",r),this._refreshDisplayState());function p(){flash(),Date.now()<%= rules[i].selector %> { <%= rules[i].attributes %> }\n<% } %>"),ScreenObject.prototype.css=function(e,i){void 0===i&&(i=e,e=this.getNode()),Object.keys(i).forEach(function(t){celtra.styler.css(e,t,i[t])})},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),extend(Group.prototype,StaticContentMixin),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.getFocusedContainer=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;Group.prototype.prepareFrame=function(){const t=this.hasBakingAnimatedClass(this.node),e=this._calculateNewStyleAttributes(),o=Promise.all(this.content.objects.map(function(t){return t.prepareFrame&&t.prepareFrame()}));return function(){this.setBakingAnimatedClass(this.node,t),this._applyStyles(this.node,e),o.then(function(t){t.forEach(function(t){t&&t()})})}.bind(this)};;
function Picture(){}inherit(Picture,ScreenObject),extend(Picture.prototype,FeedImageCreator),extend(Picture.prototype,StaticContentMixin),Picture.toString=function(){return"[Clazz Picture]"},Picture.prototype.toString=function(){return"[Picture "+this.localId+"]"},Picture.prototype.createNode=function(){"string"==typeof this.imageSourceFeedFieldKey&&(FeedData.checkAndTrackValue(this.imageSourceFeedFieldKey,this.imageSourceFeedRowIndex,this.constructor.name,"imageSourceFeedFieldKey"),this.file=this._createFeedImageFile("imageSource",this.imageSourceFeedRowIndex));var t=Picture.uber.createNode.call(this);return this.file===this.placeholderFile?"string"==typeof this.imageSourceFeedFieldKey||this._newFileWasSet||(addClass(t,"empty"),this._preloadImage(new File("runner/image-placeholder.png"),function(e,i){this._isSettingFileInProgress||(t.style.backgroundImage="url("+i+")")}.bind(this))):this.file&&this._preloadImage(this.file,{},function(e,i){this._newFileWasSet||this._handlePreloadedImage(t,e)}.bind(this)),t},Picture.prototype.awake=function(){Picture.uber.awake.call(this),this.placeholderFile=new File("runner/image-placeholder.png"),this.placeholderFile.meta={height:28,width:28},this.file||(this.file=this.placeholderFile),this._originalFile=this.file,this._newFileWasSet=!1},Picture.prototype._handlePreloadedImage=function(e,i){this.file.dynamic&&(this.file.meta={height:i.naturalHeight,width:i.naturalWidth});var t="",r="",s="no-repeat",a=(this.imagePosition&&(t=this.imagePosition.replace("-"," ")),this.sizeUsingTransforms()?this.getNaturalSize():this.size),n=this.fittingSize;switch(n="fitUpToOriginal"===this.fittingSize?a.widtho){n-=i,this._setPaddingRelativeToAlignment(n);break}}while(("all"===this._lineBreakOptimizationStrategy?this._getShortestLineLength(t):t[t.length-1].width)h.left?h.width=Math.max(a-h.left+o.width,h.width):(h.width=Math.max(h.left-a+h.width,h.width),h.left=Math.min(a,h.left)),h.text=h.text+e[n].innerText):0!==o.width&&0!==o.height&&i.push({width:o.width,height:o.height,left:a,top:s,text:e[n].innerText})}return i},Texty.prototype._encloseTextCharactersWithSpanElements=function(){if(!this._textCharactersEnclosedWithSpanElements){for(var t="",e=0;e"+t+""}).join(""):t+=i.outerHTML}for(;this._textContainer.firstChild;)this._textContainer.removeChild(this._textContainer.firstChild);this._textContainer.innerHTML=t,this._textCharactersEnclosedWithSpanElements=!0}},Texty.prototype._updateTextContent=function(){var t=this._applyStylesToText(this.text);this._textContainer.innerHTML=t,this._textContainerClone.innerHTML=t,this._textContainerResponsive.innerHTML=t,this._textCharactersEnclosedWithSpanElements=!1},Texty.prototype._applyStylesToText=function(t){var e=[],i=(this._shouldRenderSubTextStyles&&(e=this.subTextStyles.slice()),UnbreakableTextStyleConverter.hasUnbreakableCharacters(t));return this._processSpecialChars&&i&&(i=UnbreakableTextStyleConverter.extractStyleFromText(t),e.push(i.style),t=i.text),this._sanitizeText?TextStyleProcessor.processAndSanitize(t,e):TextStyleProcessor.processWithoutSanitization(t,e)},Texty.prototype._updateScrollbar=function(){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(),e=(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),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.toSizePx(this.fontSize,this.parentScreen.size.height)},Texty.prototype._getDefaultPadding=function(){return this.usePadding?2:0},Texty.prototype._getNaturalTextPaddingTop=function(){var t=TextStyleIntegrator.getTextPaddingTop.call(this);return"number"==typeof t?t:this._getDefaultPadding()},Texty.prototype._getNaturalTextPaddingRight=function(){var t=TextStyleIntegrator.getTextPaddingRight.call(this);return"number"==typeof t?t:this._getDefaultPadding()},Texty.prototype._getNaturalTextPaddingBottom=function(){var t=TextStyleIntegrator.getTextPaddingBottom.call(this);return"number"==typeof t?t:this._getDefaultPadding()},Texty.prototype._getNaturalTextPaddingLeft=function(){var t=TextStyleIntegrator.getTextPaddingLeft.call(this);return"number"==typeof t?t:this._getDefaultPadding()},Texty.prototype.getTextPaddingTop=function(){return this._getNaturalTextPaddingTop()},Texty.prototype.getTextPaddingRight=function(){return this._getNaturalTextPaddingRight()},Texty.prototype.getTextPaddingBottom=function(){return this._getNaturalTextPaddingBottom()},Texty.prototype.getTextPaddingLeft=function(){return this._getNaturalTextPaddingLeft()},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.text=String(t),this.loadFont(function(){this._shouldRenderSubTextStyles=!1,this._updateTextContent(),this.checkAndFixAutoWritingDirectionSupport(this._textContainer),this.checkAndFixAutoWritingDirectionSupport(this._textContainerClone),this.checkAndFixAutoWritingDirectionSupport(this._textContainerResponsive),this.scaleFont&&(this.scaleFont=!1),this.hidden||this._handleSizeUpdate(!0)}.bind(this))},Texty.prototype.showAction=function(t,e,i){Texty.uber.showAction.call(this,t,e,function(){this._startListeningForTouches(),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._sanitizeText=!0,this.resetFont(),Texty.uber.resetAction.call(this,t,e,function(){this.hidden||this._startListeningForTouches(),this.text=this._initialText,this._processSpecialChars=this._initialProcessSpecialChars,this._shouldRenderSubTextStyles=this._initialShouldRenderSubTextStyles,this._updateTextContent(),this.scaleFont=this._initialScaleFont,this.checkAndFixAutoWritingDirectionSupport(this._textContainer),this.checkAndFixAutoWritingDirectionSupport(this._textContainerClone),this.checkAndFixAutoWritingDirectionSupport(this._textContainerResponsive),this._handleSizeUpdate(!0),i()}.bind(this))},Texty.prototype.setTextAction=function(t,e,i){this._sanitizeText=!1,this._processSpecialChars=!1,this._setText(e.text),i()},Texty.prototype.getText=function(){var t=String(this.text);return this._processSpecialChars&&(t=t.replace(/\\(\]|\[)/g,"")),t=this._sanitizeText?htmlentitize(t):t},Texty.prototype.setAdaptToContentStrategy=function(t){-1<["both","vertical","horizontal","none"].indexOf(t)&&(this._adaptToContentStrategy=t)},Texty.prototype.setLineBreakOptimizationStrategy=function(t){-1<["all","last","none"].indexOf(t)&&(this._lineBreakOptimizationStrategy=t)},Texty.prototype.setShortestLineToLongestLineMinRatio=function(t){this._shortestLineToLongestLineMinRatio=t},Texty.prototype.setMaxPaddingToSizeRatio=function(t){this._maxPaddingToSizeRatio=t},Texty.prototype.prepareFrame=function(){const t=this.hasBakingAnimatedClass(this.node),e=this._calculateNewStyleAttributes();return function(){this.setBakingAnimatedClass(this.node,t),this._applyStyles(this.node,e),this._handleSizeUpdate(this._initialFrame),this._initialFrame=!1}.bind(this)},Texty.prototype.getFontScaleFactor=function(){return this._fontScaleFactor};;
function Frame(){}inherit(Frame,ScreenObject),Frame.toString=function(){return"[Clazz Frame]"},Frame.prototype.toString=function(){return"[Frame "+this.localId+"]"},Frame.prototype.createNode=function(){var e=Frame.uber.createNode.call(this);switch(e.style.overflow="hidden",this.elem=document.createElement(this.frameType),this.elem.style.cssText="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0",e.appendChild(this.elem),this.frameType){case"iframe":null!==this.sourceUrl.match(/http:/)&&this._track("Frame.iframeUrl"),this.elem.style.visibility="hidden",this.elem.src=this.sourceUrl,this.elem.setAttribute("frameborder",0),this.elem.setAttribute("scrolling","no"),this.elem.onload=function(){this.elem.style.visibility="visible"}.bind(this);break;case"img":null!==this.sourceUrl.match(/http:/)&&this._track("Frame.imageUrl"),this._preloadImage(new File(this.sourceUrl),function(e,t){this.elem.src=t}.bind(this))}return e},Frame.prototype._track=function(e){this._privateApiTracked=this._privateApiTracked||{},this._privateApiTracked[e]||(this._privateApiTracked[e]=!0,creative.track({name:"retiredFeatureUsed",featureType:"loadingInsecureContent",featureName:e}))};;
function TwitterFeed(){}inherit(TwitterFeed,ScreenObject),extend(TwitterFeed.prototype,EventEmitter),TwitterFeed.toString=function(){return"[Clazz TwitterFeed]"},TwitterFeed.prototype.toString=function(){return"[TwitterFeed "+this.localId+"]"},TwitterFeed.prototype.awake=function(){TwitterFeed.uber.awake.call(this),this.handleContentFetched=this.handleContentFetched.bind(this),this.handleOpenLink=this.handleOpenLink.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._touchStarted=!1,this._refreshUrl=null,this.setDimensions=this.setDimensions.bind(this),this.on("enteredRenderTree",this.redrawLayout.bind(this))},TwitterFeed.prototype.createNode=function(){var t=this.constructor.uber.createNode.call(this),e=(this.scrollContainer=document.createElement("div"),this.scrollContainer.className="scroller",t.appendChild(this.scrollContainer),addClass(t,"touchable"),attach(t,"tap",this.handleTap),attach(this.scrollContainer,"tap",this.handleOpenLink),this.refresh(),this.scroller=new Scroller(t,this.scrollContainer,{directions:"vertical",animating:!0,easing:!0,locking:!1,scrollbars:!1}),this.startListeningForTouches(),{".tweet":"font-family: "+this.textFont+"; color: "+this.textColor+"; ",".tweet .link":"font-family: "+this.linkFont+"; color: "+this.linkColor+"; ",".scroller":""});return"color"==this.backgroundType?Color.isGradient(this.backgroundColor)?(e[".tweet"]+="background-image:"+Color.createGradientStyle(this.backgroundColor)+"; ",e[".tweet"]+="background-color: transparent; "):(e[".tweet"]+="background-color:"+this.backgroundColor+"; ",e[".tweet"]+="background-image: none; "):this._preloadImage(this.backgroundImage,function(t,e){this.addStyle({".tweet":'background: url("'+e+'") center no-repeat; '})}.bind(this)),this.roundedCorners&&(e[".tweet"]+="border-radius: "+this.roundedCornersRadius+"px; "),this.shadow&&(e[".tweet"]+="box-shadow: 0 0 "+this.shadowSize+"px black; ",e[".tweet"]+="margin: "+this.shadowSize+"px; ",e[".tweet"]+="margin-bottom: "+(10'+t+""}).replace(/([#@])(\w+)/g,function(t,e,i){return"@"==e?''+t+"":''+t+""})},TwitterFeed.getRelativeTime=function(t){t=(new Date-t)/1e3;return t<10?"a few seconds ago":t<60?"half a minute ago":t<120?"a minute ago":t<1800?Math.floor(t/60)+" minutes ago":t<3600?"half an hour ago":t<7200?"an hour ago":t<86400?Math.floor(t/3600)+" hours ago":t<172800?"yesterday":Math.floor(t/86400)+" days ago"},TwitterFeed.buildSearchQuery=function(t){var e=(creative.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+"twitter/",i="";return t&&t.username?(e+="statuses/user_timeline?",i+=" screen_name="+encodeURIComponent(trim(t.username).replace(/^@/,""))):t&&t.keywords&&(e+="search/tweets?",i+="q="+encodeURIComponent(trim(t.keywords))),(i=trim(i))||(e+="statuses/user_timeline?",i+="screen_name=Celtra"),e+i},TwitterFeed.templates={tweet:'<% if(showAvatar) { %>

<% } %>
<%= name %> @<%= username %>
<%= linkedText %>
<%= TwitterFeed.getRelativeTime(timestamp) %> '},TwitterFeed.prototype.showAction=function(t,e,i){TwitterFeed.uber.showAction.call(this,t,e,function(){this.startListeningForTouches(),i()}.bind(this))},TwitterFeed.prototype.hideAction=function(t,e,i){TwitterFeed.uber.hideAction.call(this,t,e,function(){this.stopListeningForTouches(),i()}.bind(this))},TwitterFeed.prototype.resetAction=function(t,e,i){TwitterFeed.uber.resetAction.call(this,t,e,function(){this.hidden||this.startListeningForTouches(),i()}.bind(this))};;
function Shapey(){}inherit(Shapey,ScreenObject),extend(Shapey.prototype,StaticContentMixin),Shapey.toString=function(){return"[Clazz Shapey]"},Shapey.prototype.toString=function(){return"[Shapey "+this.localId+"]"},Object.defineProperties(Shapey.prototype,{_borderRoundness:{get:function(){var e,t,r,a=0,i=0,o=0,s=this._defaultValues.roundness;return 0<(s="number"==typeof this.roundness?this.roundness:s)&&(t=(e=Math.min(this.getNaturalSize().height,this.getNaturalSize().width))/2,r=Math.max(this.getNaturalSize().height,this.getNaturalSize().width),s<50?a=t*(s/50):(r=t+(r/2-t)*((s-50)/50),i=this.getNaturalSize().width==e?t:r,o=this.getNaturalSize().height==e?t:r)),this.shadow&&ios("8")&&3<=window.devicePixelRatio&&(a<1&&(a=1),i<1&&(i=1),o<1&&(o=1)),s<50?a+"px":i+"px "+o+"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,t,r,a,i=Shapey.uber.createNode.call(this),o=(this._privateApiTracked={},this._scalingWorkaroundSizeThreshold=5,this._scalingWorkaroundSizeMultiplier=20,this._scalingWorkaroundHorizontal=!1,this._scalingWorkaroundVertical=!1,addClass(i,"touchable"),this._shapey=document.createElement("div"),this._defaultValues.backgroundColor);return"string"==typeof this.backgroundColorFeedFieldKey?(FeedData.checkAndTrackValue(this.backgroundColorFeedFieldKey,this.backgroundColorFeedRowIndex,this.constructor.name,"backgroundColorFeedFieldKey"),o="string"==typeof(e=FeedData.getFieldValueByKey(this.backgroundColorFeedFieldKey,this.backgroundColorFeedRowIndex))&&FeedData.isCorrectFieldType(this.backgroundColorFeedFieldKey,this.constructor.name,"backgroundColorFeedFieldKey")?e:"transparent"):"string"==typeof this.backgroundColor&&(o=this.backgroundColor),Color.isGradient(o)?(e=Color.createGradientStyle(o),this.addStyle({".gradient-shapey":e}),addClass(this._shapey,"gradient-shapey")):this._shapey.style.backgroundColor=o,this.border&&(e=(void 0!==this.borderColor?this:this._defaultValues).borderColor,o=("number"==typeof this.borderWidth?this:this._defaultValues).borderWidth,this._shapey.style.borderColor=e,this._shapey.style.borderStyle="solid",this._shapey.style.borderWidth=o+"px",(deviceInfo.browser.chrome()||deviceInfo.browser.samsung())&&(o="1")===(o=Color.isRgba(e)?Color.patternRgba.exec(e)[Color.matchRgbaAlpha]:o)&&(this._shapey.style.backgroundClip="border-box")),this.shadow&&(e=("number"==typeof this.shadowAngle?this:this._defaultValues).shadowAngle*(Math.PI/180),o=("number"==typeof this.shadowBlur?this:this._defaultValues).shadowBlur,t=(void 0!==this.shadowColor?this:this._defaultValues).shadowColor,a=("number"==typeof this.shadowDistance?this:this._defaultValues).shadowDistance,r=Math.round(a*Math.cos(e)),a=Math.round(a*Math.sin(e)),celtra.styler.css(this._shapey,"boxShadow",r+"px "+a+"px "+o+"px "+t)),i.appendChild(this._shapey),i},Shapey.prototype.redrawLayout=function(){var e;this._shapey&&(e=this._borderRoundness,0[\\\\s\\\\S]*?\",\"gi\");(e=(t=e).replace(r,\"\"))!==t;);return e.replace(/e.minDistanceForSwipe:\"x\"===e.validAxis&&(t=n>e.minDistanceForSwipe),{isHorizontal:r/g),o=\"var p = []; with(o) {\\n\",i=!1;r.forEach(function(e){i?\"=\"==e[0]?o+=\" p.push(\"+e.replace(/^=\\s*|\\s*$/g,\"\")+\");\\n\":o+=\" \"+e+\"\\n\":e&&(o+=\" p.push('\"+e.replace(/'/g,\"\\\\'\").split(/\\r?\\n/g).join(\"\\\\n');\\n p.push('\")+\"');\\n\"),i=!i}),o+='} return p.join(\"\");';try{n=new Function(\"o\",o)}catch(e){r=new Error(\"Cannot parse template! (see `template` property)\");throw r.template=o,r}}return t?n(t):n}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\";for(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],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(r,e,t){t=t||noop;var n,o=!1,i=fetchShortenedUrl.inProgress,a=fetchShortenedUrl.cache;function c(t,n){i[r].forEach(function(e){e[t](n)}),delete i[r]}\"http\"==!r.slice(0,4)?t():a[r]?defer(function(){e(a[r])},0,\"fetchShortenedUrl defer success callback\"):(i[r]||(i[r]=[],o=!0),i[r].push({success:e,error:t}),o&&(t=(creative.runtimeParams.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+\"shortenedUrls/\",o={url:r,fields:\"shortUrlKey\"},n={cbName:\"shortener_\"+btoa(to_utf8(r)).replace(/\\//g,\"$\").replace(/\\+/g,\"_\").replace(/=/g,\"\")},loadJSONP(t+\"?\"+buildQuery(o),n,function(e){e=creative.shareUrl+e.shortUrlKey;c(\"success\",a[r]=e)},function(){requestCreateShortenedUrl(r,c)})))}function requestCreateShortenedUrl(t,n){var e=(creative.runtimeParams.secure?creative.apiUrl:creative.insecureApiUrl)+\"shortenedUrls/\",r=fetchShortenedUrl.cache,o=new XMLHttpRequest;o.open(\"POST\",e),o.setRequestHeader(\"Content-Type\",\"application/json; charset=utf-8\"),o.onreadystatechange=function(){var e;4===o.readyState&&(201===o.status?(e=JSON.parse(o.responseText),e=creative.shareUrl+e.shortUrlKey,r[t]=e,n(\"success\",e)):n(\"error\"))},o.send(JSON.stringify({url:t}))}function isMediaPlaying(e){try{return 0=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;(0<=Logger.enabledNames.indexOf(e)||0<=Logger.enabledNames.indexOf(\"all\"))&&(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(){var e=new Date;function n(e,n){for(e+=\"\";e.lengthn[t])return 1}return 0}return!(-1===s(e,r)||1===s(e,i))}t.prototype.android=function(){return\"Android\"===this.name&&h(this.version,arguments)},t.prototype.osx=function(){return\"OSX\"===this.name&&h(this.version,arguments)},t.prototype.ios=function(){return\"IOS\"===this.name&&h(this.version,arguments)},t.prototype.windows=function(){return\"Windows\"===this.name&&h(this.version,arguments)},t.prototype.windowsPhone=function(){return\"WindowsPhone\"===this.name&&h(this.version,arguments)},t.prototype.linux=function(){return\"Linux\"===this.name},r.prototype.safari=function(){return\"Safari\"===this.name&&h(this.version,arguments)},r.prototype.chrome=function(){return 0===this.name.indexOf(\"Chrom\")&&h(this.version,arguments)},r.prototype.ie=function(){return 0===this.name.indexOf(\"Internet Explorer\")&&h(this.version,arguments)},r.prototype.android=function(){return\"Android Browser\"===this.name&&h(this.version,arguments)},r.prototype.samsung=function(){return\"Samsung Browser\"===this.name&&h(this.version,arguments)},r.prototype.opera=function(){return 0===this.name.indexOf(\"Opera\")&&h(this.version,arguments)},r.prototype.silk=function(){return\"Amazon Silk\"===this.name&&h(this.version,arguments)},r.prototype.firefox=function(){return 0===this.name.indexOf(\"Firefox\")&&h(this.version,arguments)},r.prototype.edge=function(){return\"Edge\"===this.name&&h(this.version,arguments)},r.prototype.miui=function(){return\"MIUI Browser\"===this.name&&h(this.version,arguments)},r.prototype.webView=function(){var e,n,t=null;return\"iP\"===(o.navigator.platform||\"\").substr(0,2)?(e=-1!==(e=this.userAgent).indexOf(\"Safari\")&&-1!==e.indexOf(\"Version\"),n=!/constructor/i.test(o.HTMLElement),e&&!o.navigator.standalone?t=\"iOS Safari or Safari Controller\":(n||o.indexedDB)&&o.statusbar.visible?(o.webkit&&o.webkit.messageHandlers||n||o.indexedDB)&&(t=\"WKWebView\"):t=\"UIWebView\"):/^.*\\/\\d\\.\\d \\(.*wv\\).*/.test(this.userAgent)&&(t=\"AndroidWebView\"),t},r.prototype.facebookApp=function(){var e=this.userAgent;return-1t[n])return 1}return 0}return!(-1===a(e,i)||1===a(e,r))}}(window);;\n!function(n){var e=n.navigator.userAgent,r=function(){var e=n;try{for(;void 0!==e.parent.location.href&&e.parent.document!==e.document;)e=e.parent}catch(e){}return e}(),t=/rv:.*Gecko\\//.test(e),i=/MSIE|Trident\\//.test(e),o=/WebKit/.test(e),a=/^-?([mM]oz|[wW]eb[kK]it|[mM]s)-?/,l={},s=[],f=o?\"webkit\":i?\"ms\":t?\"Moz\":\"\",u=(e=e.match(/AppleWebKit\\/(\\d+)/))&&~~e[1]<540,c=[\"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\"],m=d();function d(){return r.getComputedStyle(r.document.body,null)}function p(e,t,i){if(!e)throw new Error(\"No element specified!\");if(E(t)){if(!(t in e.style)&&p.BREAK_ON_ERROR)throw new Error(\"Invalid CSS attribute \"+t);if(void 0===i)return e.style[t];e.style[t]=i}else{if(-1==s.indexOf(t)&&y(t),void 0===i)return e.style[l[t]];e.style[l[t]]=i}}function w(e,t){if(!e)throw new Error(\"No element specified!\");var i,e=e.ownerDocument.defaultView.getComputedStyle(e,null);if(u&&-1=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(t){var a,n,c,h,e=t.target,o=t.swipeNodeGetter,i=t.swipe,u=t.minLength||50,r=Object.create(ClickPreventer).initClickPrevention(function(){return e});function s(t,e){return Math.abs(t)>Math.abs(e)?0Math.min(50,u)&&(null===c?c=s(e,t):(e=s(e,t),c!=e&&d())))}function g(t){d(),u<=h&&(i(c,h),r.attachClickPreventionHandler())}attach(window,\"touchstart\",noop,!1),attach(e,\"touchstart\",function(t){creative.adapter.useNativeClickForTapDetection||t.preventDefault(),1==t.touches.length&&(a=t.changedTouches[0].pageX,n=t.changedTouches[0].pageY,h=0,c=null,attach(o(),\"touchmove\",l,!1),attach(o(),\"touchend\",g,!1),r.detachClickPreventionHandler())},!1)};\nvar ClickPreventer={initClickPrevention:function(e){return this._getDefaultClickPreventionNode=e||function(){},this._clickPreventionNode=null,this._clickPreventionHandler=this._clickPreventionHandler.bind(this),this},attachClickPreventionHandler:function(e){creative.adapter.nativeClickEmittedOnSwipe&&!this._clickPreventionNode&&(this._clickPreventionNode=e||this._getDefaultClickPreventionNode(),attach(this._clickPreventionNode,\"click\",this._clickPreventionHandler,!0))},detachClickPreventionHandler:function(){creative.adapter.nativeClickEmittedOnSwipe&&this._clickPreventionNode&&(detach(this._clickPreventionNode,\"click\",this._clickPreventionHandler,!0),this._clickPreventionNode=null)},_clickPreventionHandler:function(e){e.stopPropagation(),this.detachClickPreventionHandler()}};;\nfunction PlaceboBar(i,n,r,e){var t=!1,l=document.createElement(\"div\"),a=(l.className=\"celtra-placebobar\",l.style.cssText=\"position: absolute; bottom: 60px; left: 0; right: 0; margin: auto; z-index: 20; width: 215px; height: 8px;\",document.createElement(\"img\")),a=(a.src=creative.resourceUrl+\"runner/clazzes/CreativeUnit/loading-back.png\",a.style.position=\"absolute\",a.style.width=\"100%\",a.style.height=\"100%\",l.appendChild(a),document.createElement(\"div\")),o=(a.style.position=\"absolute\",a.style.top=\"2px\",a.style.bottom=\"2px\",a.style.left=\"3px\",a.style.right=\"3px\",l.appendChild(a),document.createElement(\"div\"));return o.style.background=\"url(\"+creative.resourceUrl+\"runner/clazzes/CreativeUnit/loading-over.png) \"+e+\" repeat-x\",o.style.position=\"absolute\",o.style.width=\"0\",o.style.height=\"100%\",a.appendChild(o),l.start=function(){var a;t||(t=!0,a=new Date,setTimeout(function e(){if(!l.parentNode)return;var t=Math.min((new Date-a)/i,n);o.style.width=100*t+\"%\";tthis.slidingWindow&&this.signals.shift(),i={x:(i=this.signals.reduce(function(i,e){return{x:i.x+e.x,y:i.y+e.y,z:i.z+e.z}})).x/this.signals.length,y:i.y/this.signals.length,z:i.z/this.signals.length},this.prevSignal&&(e=null,h=Math.abs(i.x-this.prevSignal.x),s=Math.abs(i.y-this.prevSignal.y),t=Math.abs(i.z-this.prevSignal.z),90===Math.abs(creative.adapter.orientation)&&(n=s,s=h,h=n),sthis.shakeThreshold?e=\"x\":hthis.shakeThreshold?e=\"y\":hthis.shakeThreshold&&(e=\"z\"),(h>this.shakeThreshold||s>this.shakeThreshold||t>this.shakeThreshold)&&this.emit(\"shake\",e)),this.prevSignal=i)};;\n!function(){\"use strict\";t=window.navigator.userAgent,e=window.navigator.vendor,i=!!document.fonts;var t,e,i,r=/Apple/.test(e)?(e=/AppleWebKit\\/([0-9]+)(?:\\.([0-9]+))(?:\\.([0-9]+))/.exec(t))?i&&603=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(i/this._targetTime,this.options.exp)*e+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){var t,h;null!==this._value&&this._value!==e&&(t=this._value-this.threshold)*(h=e-this.threshold)<=0&&(t<0?this.emit(\"up\"):h<0&&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(){return 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,t=Date.now()-1e3*creative.runtimeParams.payloadJsClientTimestamp;t<3e4&&(e={unitName:this.name},creative.aggregatorTracking.trackAggregator(\"unitLoadTime\",t,e),creative.aggregatorTracking.trackAggregator(\"unitLoadSuccesses\",e))}.bind(this)),creative.adapter.on(\"mediaStopRequested\",function(e){this.emit(\"mediaStopRequested\",e)}.bind(this)),this.unitDiv=BaseCreativeUnit.uber.createNode.call(this),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.getAccessibilityProperties=function(){throw new Error(\"Not implemented\")},BaseCreativeUnit.prototype.openAccessibilityUrl=function(e){var t=new ActionContext(this.currentScreen);this.goToURLAction(t,{url:e,reportLabel:e},noop)},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){var t;this._rxState&&(e=getElementRectRelativeToTopViewport(e),t=creative.adapter.getTopWindow(),this._rxState.left=~~e.left,this._rxState.top=~~e.top,this._rxState.right=~~e.right,this._rxState.bottom=~~e.bottom,this._rxState.width=~~e.width,this._rxState.height=~~e.height,this._rxState.vw=t.innerWidth,this._rxState.vh=t.innerHeight,this._rxState.pageYOffset=t.pageYOffset,this._rxState.x=~~(e.left+e.width/2-t.innerWidth/2),this._rxState.y=~~(e.top+e.height/2-t.innerHeight/2),this._rxStateCopies.forEach(function(e){e.copyFrom(this._rxState)}.bind(this)))},BaseCreativeUnit.prototype.getRxStateObject=function(){var e;return this._rxState?((e=this._generateNewRxStateObject()).copyFrom(this._rxState),this._rxStateCopies.push(e),e):null},BaseCreativeUnit.prototype.goToScreenAction=function(e,t,r){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){var t;return creative.urlOpenedUrlAppendage?(t=this.size.width+\"x\"+this.size.height,e+(0<=e.indexOf(\"?\")?\"&\":\"?\")+creative.urlOpenedUrlAppendage.replace(new RegExp(\"{celtraFirstUnitSize}\",\"ig\"),t)):e},BaseCreativeUnit.prototype.openBrowser=function(e,t,r,a){if(!t)return(r||noop)();creative.adapter.trackEventsAndOpenBrowser(this._processURLParams(t),creative.shouldClickThroughToNewWindow(e),r,a)},BaseCreativeUnit.prototype.openClickThroughDestinationAction=function(e,t,r){var a=creative.clickThroughDestinationUrl,i=creative.shouldClickThroughToNewWindow(e),n=!1,o=\"clickThroughDestinationOpened\",s=function(){n||(n=!0,creative.adapter.openBrowser(this._processURLParams(a),i))}.bind(this);a&&-1==[\"http://\",\"https://\"].indexOf(a)?(creative.adapter._stopAllMedia(),0this.size.width||t>this.size.height)&&(r.style.backgroundSize=\"contain\"),a.color&&(r.style.backgroundColor=a.color),attach(r,\"tap\",function(e){r.parentNode.removeChild(r),i()},!1),document.createElement(\"div\"));e.className=\"celtra-back-button touchable \"+this.alignBackButtonHorizontal,r.appendChild(e)}.bind(this);a.file.meta?r(a.file.meta.width,a.file.meta.height):((t=new Image).onload=function(){r(this.width,this.height)},t.onerror=function(e){return console.error(\"Couldn't display image: \"+a.file.getUrl()),i()},t.src=a.file.getUrl())},BaseCreativeUnit.prototype.saveImageAction=function(i,n,o){var e,s=\"imageSaveAttempted\";function r(e,t){var r=e.getOriginalUrl(),a=e.name,e=e.blobHash;i.track({name:s,blobHash:e,label:n.reportLabel}),i.trackClickThrough(),creative.adapter.canSaveImage()?creative.adapter.trackingCenter.flush(function(){var e=\"shared.png\",e=(void 0!==a?e=a:\"string\"==typeof t&&0=t.end},e.isValidInput=function(t,n){if(null==t||null==n||\"number\"!=typeof t||\"number\"!=typeof n)throw new Error(\"Invalid input type!\");if(t<0||n<0)throw new Error(\"Range border can not be negative!\");if(n<=t)throw new Error(\"Start should be less than the end!\")},e.compareRanges=function(t,n){return t.start-n.start},e.obtainValidRanges=function(t){t=e._filterValidRanges(t);return e._mapToRanges(t)},e._filterValidRanges=function(t){return t.filter(function(t){try{return e.isValidInput(t.start,t.end),!0}catch(t){return!1}})},e._mapToRanges=function(t){return t.map(function(t){return new e(t.start,t.end)})},t.TextRange=e,\"undefined\"!=typeof module&&null!==module&&(module.exports=e)}(window);;\n\"use strict\";!function(){function e(e){this._ranges=e||[],this.getRanges=function(){return this._ranges},this.getRangeIndices=function(){return this.getRanges().map(function(e){return[e.start,e.end]})},this.addRange=function(n){var s=n.start,a=n.end,e=this.getRanges().filter(function(e){var t=e.doesRangeOverlap(n);return t&&(s=Math.min(s,e.start),a=Math.max(a,e.end)),!t});this.getRanges().length===e.length?this._ranges.push(n):(this._ranges=e,this._ranges.push(new TextRange(s,a))),this._ranges.sort(TextRange.compareRanges)},this.removeRange=function(n){var s=[],e=this.getRanges().filter(function(e){var t=e.doesRangeOverlap(n);return t&&(e=this._recreateAppliedRange(e,n),s=s.concat(e)),!t},this);this._ranges=e.concat(s),this._ranges.sort(TextRange.compareRanges)},this._recreateAppliedRange=function(e,t){var n=[];return t.start>e.start&&t.ende.start&&n.push(new TextRange(e.start,t.start)),n},this.setRanges=function(e){this.removeAllRanges(),e.forEach(function(e){this.addRange(e)},this)},this.removeAllRanges=function(){this._ranges=[]},this.apply=function(e){throw new Error(\"Unsupported\")},this.isAppliedToRange=function(t){return this.getRanges().some(function(e){return e.isSuperRangeOf(t)})}}window.BaseTextStyle=e,\"undefined\"!=typeof module&&null!==module&&(module.exports=e)}();;\n\"use strict\";!function(){function e(e){BaseTextStyle.call(this,e),this.apply=function(e){return e?''+e+\"\":\"\"}}window.UnbreakableTextStyle=e,\"undefined\"!=typeof module&&null!==module&&(module.exports=e)}();;\n\"use strict\";!function(e){function t(){}t.UNBREAKABLE_START=\"\\\\[\",t.UNBREAKABLE_END=\"\\\\]\",t.extractStyleFromText=function(e){return this.hasUnbreakableCharacters(e)?this._extract(e):this._formatResponse(e,null)},t.hasUnbreakableCharacters=function(e){return e&&-1\",encoded:\">\"}],\"undefined\"!=typeof module&&void 0!==module.exports?module.exports=d:e.HtmlEntitizer=d}(this);;\n\"use strict\";!function(n){var e=!0;function t(){}function r(n,t){var e,r,i,t=new TextStyleCompiler(t).compile();return 0===t.length?o(n):(i=function(n,t){return o(n.substring(0,t[0].range.start))}(e=n,r=t),r.forEach(function(n,t){i+=function(n,t){n=o(n.slice(t.range.start,t.range.end));return t.apply(n)}(e,n),t+1l.__maxScrollLeft?t=l.__maxScrollLeft:t<0&&(t=0),i>l.__maxScrollTop?i=l.__maxScrollTop:i<0&&(i=0),l.__publish(t,i,e,o)},zoomBy:function(e,o,t,_,i){this.zoomTo(this.__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,_){return this.zoomTo(this.__zoomLevel*(0-p.__refreshHeight&&(p.__refreshActive=!1,p.__refreshDeactivate&&p.__refreshDeactivate()))):n=ao.__lastTouchMove-100;r-=3)n=r;n!==l?(l=i[l]-i[n],_=o.__scrollLeft-i[n-2],t=o.__scrollTop-i[n-1],o.__decelerationVelocityX=_/l*(1e3/60),o.__decelerationVelocityY=t/l*(1e3/60),_=o.options.paging||o.options.snapping?4:1,(Math.abs(o.__decelerationVelocityX)>_||Math.abs(o.__decelerationVelocityY)>_)&&!o.__refreshActive&&o.__startDeceleration(e)):o.options.scrollingComplete()}else 100=n||Math.abs(l.__decelerationVelocityY)>=n;return e||(l.__didDecelerationComplete=!0),e},function(e,o,t){l.__isDecelerating=!1,l.__didDecelerationComplete&&l.options.scrollingComplete(),l.scrollTo(l.__scrollLeft,l.__scrollTop,l.options.snapping)})},__stepThroughDeceleration:function(e){var o,t,_,i=this,l=i.__scrollLeft+i.__decelerationVelocityX,n=i.__scrollTop+i.__decelerationVelocityY;i.options.bouncing||((o=Math.max(Math.min(i.__maxDecelerationScrollLeft,l),i.__minDecelerationScrollLeft))!==l&&(l=o,i.__decelerationVelocityX=0),(o=Math.max(Math.min(i.__maxDecelerationScrollTop,n),i.__minDecelerationScrollTop))!==n&&(n=o,i.__decelerationVelocityY=0)),e?i.__publish(l,n,i.__zoomLevel):(i.__scrollLeft=l,i.__scrollTop=n),i.options.paging||(i.__decelerationVelocityX*=.95,i.__decelerationVelocityY*=.95),i.options.bouncing&&(e=o=0,t=i.options.penetrationDeceleration,_=i.options.penetrationAcceleration,li.__maxDecelerationScrollLeft&&(o=i.__maxDecelerationScrollLeft-l),ni.__maxDecelerationScrollTop&&(e=i.__maxDecelerationScrollTop-n),0!==o&&(o*i.__decelerationVelocityX<=0?i.__decelerationVelocityX+=o*t:i.__decelerationVelocityX=o*_),0!==e&&(e*i.__decelerationVelocityY<=0?i.__decelerationVelocityY+=e*t:i.__decelerationVelocityY=e*_))}};for(e in o)ZyngaScroller.prototype[e]=o[e]}();;\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,scrollingY:\"horizontal\"!==this.options.direction,bouncing:!!this.options.bouncing,animating:!!this.options.animating,locking:!!this.options.locking,snapping:!!this.options.snapping,animationDuration:void 0!==this.options.animationDuration?this.options.animationDuration:250,scrollingComplete:deferred(this.emits(\"scrollingEnd\"))}),this.setEasing(void 0===this.options.easing||this.options.easing),this.redraw()}extend(Scroller.prototype,EventEmitter),Object.defineProperty(Scroller.prototype,\"isDragging\",{get:function(){return this.zyngaScroller.getValues().isDragging}}),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\"),i=(addClass(t,\"celtra-vertical-scrollbar\"),addClass(t,this.options.scrollbarPosition||\"none\"),this.container.appendChild(t),document.createElement(\"div\")),i=(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\",document.createElement(\"div\")),o=(addClass(i,\"celtra-horizontal-scrollbar\"),addClass(i,this.options.scrollbarPosition||\"none\"),this.container.appendChild(i),document.createElement(\"div\"));i.appendChild(o),i.style.width=Math.round(this.container.size.width/this.list.size.width*this.container.size.width)+\"px\",i.style.backgroundColor=this.options.scrollbarColor,i.style.display=this.list.size.width<=this.container.size.width?\"none\":\"block\",this.scrollbars={vertical:t,horizontal:i,verticalStyle:t.style,horizontalStyle:i.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(_){this.options.easing=_,this.zyngaScroller.__publish=function(t,i,o,e){var s,n,r,l,a,c,h,p,d=this,u=d.__isAnimating;u&&(core.effect.Animate.stop(u),d.__isAnimating=!1),e&&d.options.animating?(d.__scheduledLeft=t,d.__scheduledTop=i,d.__scheduledZoom=o,s=d.__scrollLeft,n=d.__scrollTop,r=d.__zoomLevel,l=t-s,a=i-n,c=o-r,e=function(t,i,o){o&&(d.__scrollLeft=s+l*t,d.__scrollTop=n+a*t,d.__zoomLevel=r+c*t,d.__callback&&d.__callback(d.__scrollLeft,d.__scrollTop,d.__zoomLevel))},h=function(t){return d.__isAnimating===t},p=function(t,i,o){i===d.__isAnimating&&(d.__isAnimating=!1),(d.__didDecelerationComplete||o)&&d.options.scrollingComplete(),d.options.zooming&&(d.__computeScrollMax(),d.__zoomComplete&&(d.__zoomComplete(),d.__zoomComplete=null))},d.__isAnimating=_?core.effect.Animate.start(e,h,p,d.options.animationDuration,u?function(t){return Math.pow(t-1,3)+1}:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)}):core.effect.Animate.start(e,h,p,d.options.animationDuration)):(d.__scheduledLeft=d.__scrollLeft=t,d.__scheduledTop=d.__scrollTop=i,d.__scheduledZoom=d.__zoomLevel=o,d.__callback&&d.__callback(t,i,o),d.options.zooming&&(d.__computeScrollMax(),d.__zoomComplete&&(d.__zoomComplete(),d.__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.scrollbars.verticalStyle.display=\"block\",addClass))(this.container,\"vertical-scrollbar\"),(this.container.size.width>=this.list.size.width?(this.scrollbars.horizontalStyle.display=\"none\",removeClass):(this.scrollbars.horizontalStyle.display=\"block\",addClass))(this.container,\"horizontal-scrollbar\")},Scroller.prototype._setSnapSize=function(t,i){this.zyngaScroller.setSnapSize(t,i)};;\nfunction Creative(e,t,r,n,i,a,o,s,u,c,d,m,p){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 f=p.start(\"Creative.new\"),s=extend({adapter:a,runtimeParams:t||{},urlOpenedOverrideUrls:s,urlOpenedUrlAppendage:d,clickThroughDestinationUrl:m,storeOpenedOverrideUrls:u,macros:c},o),d=p.start(\"Creative.unfreeze\");return e=Freezer.unfreeze(e,window,s),d.end(),e.instantiation=randInt(),e.batcher=new Batcher({protoLoading:a.protoLoading}),e.trackingCenter=r,e.universalInteractionId=\"\",e.aggregatorTracking=n,e.experiments=i,e.perf=p,e.platformAdvId=t.platformAdvId,e.platformAdvIdTrackingLimited=t.platformAdvIdTrackingLimited,null!=a&&(a.openBrowserSameWindowInHostileIFrame=function(e){window.top.location.href=e}),f.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,p){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,p)},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,r={};for(t in this.runtimeParams)0===t.indexOf(e)&&(r[t.slice(e.length)]=this.runtimeParams[t]);return r},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}},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(t){if(creative.runtimeParams.customAudiences[t])return{userExists:creative.runtimeParams.customAudiences[t].userExists,userData:creative.runtimeParams.customAudiences[t].userData,addUser:function(e){return CustomAudiences.addUser(t,e)},removeUser:function(){return CustomAudiences.removeUser(t)}};throw new Error('Custom audience \"'+t+'\" is not used by the creative.')}}},acceptLanguage:{enumerable:!0,get:function(){return this.runtimeParams.acceptLanguage}}}),Creative.prototype.awake=function(){function o(e,t,r,n){e.forEach(function(e){e.parentUnit=n,e.parentScreen=r,e.parentContainer=t})}for(var e in this.units){var t=this.units[e],r=(t.name=e,[]);t.variants?t.variants.forEach(function(e){r=r.concat(e.master,e.screens),e.loadingScreen&&(r=[e.loadingScreen].concat(r))}):(r=[t.master].concat(t.screens),t.loadingScreen&&(r=[t.loadingScreen].concat(r))),r.forEach(function(e){e.parentUnit=t,function r(e,n,i,a){e.forEach(function(t){t.parentUnit=a,t.parentScreen=i,t.parentContainer=n,t.getNestedContainers().forEach(function(e){e.parentUnit=a,e.parentScreen=i,e.parentObject=t,r(e.objects,e,i,a),e.scenes&&o(e.scenes,e,i,a)})})}(e.objects,e,e,t),e.scenes&&o(e.scenes,e,e,t)})}},Creative.prototype.track=function(e,t){0<=[\"firstInteraction\",\"interaction\",\"endCardInteraction\",\"unitCollapsed\",\"creativeDismissed\",\"clickThroughDestinationOpened\",\"firstClickThrough\",\"itemSwiped\"].indexOf(e.name)&&(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._getCreativeRendered=function(){return 1===this.runtimeParams.creativeRendered},Creative.prototype.trackCreativeRenderedOnScreenShow=Creative.prototype.trackCreativeRendered,Creative.prototype.trackCreativeRenderedOnVideoStart=noop,Creative.trackCustomEventAction=function(e,t,r){e.track({name:\"custom\",label:t.name}),creative.adapter.sendToEventMonitor(\"custom\",t.triggerId,e.screen.name,null,t.name,e.initiatedBeforeScreenShown()),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){if(\"undefined\"!=typeof UserLocation)return new UserLocation({lat:this.runtimeParams.gpsLat,lng:this.runtimeParams.gpsLng},e)},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=0<=[\"same\",\"new\"].indexOf(this.runtimeParams.preferredClickThroughWindow)?this.runtimeParams.preferredClickThroughWindow:\"new\",e=(creative&&creative.adapter.nesting.hostileIframe&&(t=\"new\"),e&&e.inUserInitiatedIteration),r=deviceInfo.os.android()&&deviceInfo.browser.facebookApp();return\"new\"==t&&e&&!r},Creative.prototype.getFeedFields=function(){return FeedData.getCustomFields()},Creative.prototype.getFeedFieldByName=function(e){return FeedData.getCustomFieldByName(e)},Creative.prototype.getAllFeedFieldsByName=function(t){return FeedData.getCustomFields().filter(function(e){return e.name===t})};;\nfunction Banner(){}inherit(Banner,Creative),Banner.toString=function(){return\"[Clazz Banner]\"},Banner.prototype.toString=function(){return\"[Banner \"+this.name+\"]\"},Banner.prototype.awake=function(){Banner.uber.awake.apply(this,arguments),this.adapter.wrapRedirectPageUrl=this.wrapRedirectPageUrl.bind(this),this.units.banner.dismissAction=function(n,e,t){n.track({name:\"creativeDismissed\"}),creative.adapter.dismiss(t,e)}.bind(this),this.units.banner.trackCreativeDismissed=function(){new ActionContext(this.visibleScreen).track({name:\"creativeDismissed\"})},this.units.banner.userLocation=this.createUserLocation(!1)};;\nvar Kernel={toString:function(){return\"[Clazz Kernel]\"},runInParallelAction:function(t,e,n){e.actions.waitForEach(function(e,n){e(t,n)},n)}};Kernel.runInParallelActionDryRun=Kernel.runInParallelAction,Kernel.runInBackgroundAction=function(e,n,t){n.action&&n.action(e,noop),t()},Kernel.runInSequenceAction=function(t,e,n){for(var r=n,i=e.actions.length-1;0<=i;i--)r=function(e,n){return function(){n(t,e)}}(r,e.actions[i]);r()},Kernel.runInSequenceActionDryRun=Kernel.runInSequenceAction,Kernel.runNTimesAction=function(e,n,t){n.caller.hasOwnProperty(\"executionsLeft\")||(n.caller.executionsLeft=n.repeat),0i&&(t.sortIndex+=2e3),t.minSize.height>n&&(t.sortIndex+=2e3),t.sortIndex+=Math.abs(t.minSize.width-i)+Math.abs(t.minSize.height-n)}),t.sort(function(t,e){return t.sortIndex-e.sortIndex}),this.layoutCurrentIndex=this.layouts.indexOf(t[0]),o!=this.layoutCurrentIndex&&this.emit(\"layoutChanged\")},CreativeUnit.prototype.enterRenderTree=function(){var t;this._isRendering||(this._isRendering=!0,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){-1<[\"INPUT\",\"TEXTAREA\",\"SELECT\"].indexOf(t.target.nodeName)&&(this.lastInputElementFocused=t.target)}.bind(this),!0),attach(this.node,\"blur\",function(t){-1<[\"INPUT\",\"TEXTAREA\",\"SELECT\"].indexOf(t.target.nodeName)&&(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 i,n,t=this.unitDiv=CreativeUnit.uber.createNode.call(this),e=(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),this.borderColor&&0=e.duration,t.shakeTimeout=setTimeout(function(){delete t.shakeStartTime,t.triggered=!1},500),e&&!t.triggered&&(t.triggered=i=!0),i)}.bind(this),null,e))},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 t=0;return this.objects.forEach(function(e){e.zIndex>t&&(t=e.zIndex)}),t},Screen.prototype.inViewTriggerSetup=function(){var t=!1,i=creative&&creative.adapter&&creative.adapter.adBehavior.subpixelScrollable;this.triggers.forEach(function(e){i&&\"enterView\"===e.type&&e.parameters&&100==e.parameters.area&&(e.parameters.area=99.9),\"enterView\"!==e.type&&\"leaveView\"!==e.type||(t=!0,this.inViewAreaRatio=0)},this),t&&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=t.length;return t&&a.ifNotClosing(\"swipe\",n,n.trackUserInteraction),t},null,n)}})),attach(i,\"transitionend\",function(t){t.stopPropagation()},!1),this.disableComponentRedrawOnEvent||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.disableComponentRedrawOnEvent||this.parentUnit.on(\"layoutChanged\",this.handleLayoutChanged.bind(this)),this.initClickPrevention(function(){return this.node}.bind(this)),this._applyStyles(i,this._calculateNewStyleAttributes()),this.positionUsingTransforms()||deviceInfo.browser.safari(\"9.0.0\",null)||(i.style.outline=\"1px solid transparent\"),this._rxListeners=[],i},ScreenObject.prototype.positionUsingTransforms=retFalse,ScreenObject.prototype.sizeUsingTransforms=retFalse,ScreenObject.prototype.isValid=retTrue,ScreenObject.prototype.getNaturalSize=function(){return this.originalSize},ScreenObject.prototype._scaleNaturalSize=function(t,e){return t},ScreenObject.prototype._calculateNewStyleAttributes=function(){var t={transform:\"\",transformOrigin:\"50% 50%\"},e=this._scaleNaturalSize(this.getNaturalSize(),this.size),i=this.position.x,n=this.position.y;return 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\",i=this.size.width/e.width,n=this.size.height/e.height,t.transform+=\" scale(\"+i+\", \"+n+\")\"):(t.width=this.size.width+\"px\",t.height=this.size.height+\"px\"),t.zIndex=this.zIndex,t.opacity=this.opacity,this.hidden?t.display=\"none\":t.display=\"block\",t},ScreenObject.prototype._applyStyles=function(e,i){i&&Object.keys(i).forEach(function(t){celtra.styler.css(e,t,i[t])})},ScreenObject.prototype._refreshDisplayState=function(){if(this.node){var t,e=this._calculateNewStyleAttributes(),i=!1;for(t in e){var n=String(e[t]).replace(/^\\s*|\\s*$/g,\"\"),r=celtra.styler.css(this.node,t);celtra.styler.css(this.node,t)!==n&&r!=n&&\"zIndex\"!=t&&\"display\"!=t&&(i=!0)}return this._applyStyles(this.node,e),this.redrawLayout(),i}},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.redrawSceneLayout=function(){this.redrawLayout()},ScreenObject.prototype._checkAndEnhanceParamsForFileLoading=function(t,e,i){t=ScreenObject.uber._checkAndEnhanceParamsForFileLoading.call(this,t,e,i);return t.settings.creativeUnitVariantId=this.parentScreen.parentContainer.localId,t},ScreenObject.prototype._preloadImage=function(t,e,i){e=this._checkAndEnhanceParamsForFileLoading(t,e,i);ScreenObject.uber._preloadImage.call(this,t,e.settings,e.callback)},ScreenObject.prototype._loadImage=function(t,e,i){e=this._checkAndEnhanceParamsForFileLoading(t,e,i);ScreenObject.uber._loadImage.call(this,t,e.settings,e.callback)},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){i=i||noop,this.isAnimated=!0;var n=void 0!==e.duration?e.duration:1e3,r=e.timingFunction||\"linear\";function o(t){return!isNaN(parseFloat(t))&&isFinite(t)}function s(t){var e={position:{},size:{width:null,height:null},zIndex:null,opacity:null,rotation:null};return deep(e,t),e}function a(t,e){var i=e.size,n=t.size,r=(null==i.width&&(i.width=n.width),null==i.height&&(i.height=n.height),t.size=i,t.position),o=e.position,s=null,a=null,c=null,h=null;[\"left\",\"right\",\"hcenter\"].forEach(function(t){t in r&&(s=t),t in o&&(c=t)}),[\"bottom\",\"top\",\"vcenter\"].forEach(function(t){t in r&&(a=t),t in o&&(h=t)}),c&&null!==o[c]&&(delete r[s],r[c]=o[c]),h&&null!==o[h]&&(delete r[a],r[h]=o[h]),null!=e.rotation&&(t.rotation=e.rotation),null!=e.opacity&&(t.opacity=e.opacity),null!=e.zIndex&&(t.zIndex=e.zIndex)}e.layoutSpecificValues?e.layoutSpecificValues.forEach(function(t,e){this.layoutSpecificValues[e]&&a(this.layoutSpecificValues[e],s(t))}.bind(this)):(null!=(e=s(e.properties)).position.x&&(e.position.left=e.position.x+\"px\"),null!=e.position.y&&(e.position.top=e.position.y+\"px\"),null!=e.zIndex&&(e.zIndex=e.zIndex+ScreenObject._zIndexOffset,this.zIndex=e.zIndex),null!=e.size.width&&o(e.size.width)&&(e.size.width+=\"px\"),null!=e.size.height&&o(e.size.height)&&(e.size.height+=\"px\"),a(this.layoutCurrent,e));var c,h,u,l=this.node,e=(celtra.styler.css(l,\"transition\",\"\"),celtra.styler.css(l,\"transitionProperty\",\"all\"),celtra.styler.css(l,\"transitionDuration\",n+\"ms\"),celtra.styler.css(l,\"transitionTimingFunction\",r),this._refreshDisplayState());function p(){flash(),Date.now()<%= rules[i].selector %> { <%= rules[i].attributes %> }\\n<% } %>\"),ScreenObject.prototype.css=function(e,i){void 0===i&&(i=e,e=this.getNode()),Object.keys(i).forEach(function(t){celtra.styler.css(e,t,i[t])})},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),extend(Group.prototype,StaticContentMixin),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.getFocusedContainer=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;Group.prototype.prepareFrame=function(){const t=this.hasBakingAnimatedClass(this.node),e=this._calculateNewStyleAttributes(),o=Promise.all(this.content.objects.map(function(t){return t.prepareFrame&&t.prepareFrame()}));return function(){this.setBakingAnimatedClass(this.node,t),this._applyStyles(this.node,e),o.then(function(t){t.forEach(function(t){t&&t()})})}.bind(this)};;\nfunction Picture(){}inherit(Picture,ScreenObject),extend(Picture.prototype,FeedImageCreator),extend(Picture.prototype,StaticContentMixin),Picture.toString=function(){return\"[Clazz Picture]\"},Picture.prototype.toString=function(){return\"[Picture \"+this.localId+\"]\"},Picture.prototype.createNode=function(){\"string\"==typeof this.imageSourceFeedFieldKey&&(FeedData.checkAndTrackValue(this.imageSourceFeedFieldKey,this.imageSourceFeedRowIndex,this.constructor.name,\"imageSourceFeedFieldKey\"),this.file=this._createFeedImageFile(\"imageSource\",this.imageSourceFeedRowIndex));var t=Picture.uber.createNode.call(this);return this.file===this.placeholderFile?\"string\"==typeof this.imageSourceFeedFieldKey||this._newFileWasSet||(addClass(t,\"empty\"),this._preloadImage(new File(\"runner/image-placeholder.png\"),function(e,i){this._isSettingFileInProgress||(t.style.backgroundImage=\"url(\"+i+\")\")}.bind(this))):this.file&&this._preloadImage(this.file,{},function(e,i){this._newFileWasSet||this._handlePreloadedImage(t,e)}.bind(this)),t},Picture.prototype.awake=function(){Picture.uber.awake.call(this),this.placeholderFile=new File(\"runner/image-placeholder.png\"),this.placeholderFile.meta={height:28,width:28},this.file||(this.file=this.placeholderFile),this._originalFile=this.file,this._newFileWasSet=!1},Picture.prototype._handlePreloadedImage=function(e,i){this.file.dynamic&&(this.file.meta={height:i.naturalHeight,width:i.naturalWidth});var t=\"\",r=\"\",s=\"no-repeat\",a=(this.imagePosition&&(t=this.imagePosition.replace(\"-\",\" \")),this.sizeUsingTransforms()?this.getNaturalSize():this.size),n=this.fittingSize;switch(n=\"fitUpToOriginal\"===this.fittingSize?a.widtho){n-=i,this._setPaddingRelativeToAlignment(n);break}}while((\"all\"===this._lineBreakOptimizationStrategy?this._getShortestLineLength(t):t[t.length-1].width)h.left?h.width=Math.max(a-h.left+o.width,h.width):(h.width=Math.max(h.left-a+h.width,h.width),h.left=Math.min(a,h.left)),h.text=h.text+e[n].innerText):0!==o.width&&0!==o.height&&i.push({width:o.width,height:o.height,left:a,top:s,text:e[n].innerText})}return i},Texty.prototype._encloseTextCharactersWithSpanElements=function(){if(!this._textCharactersEnclosedWithSpanElements){for(var t=\"\",e=0;e\"+t+\"\"}).join(\"\"):t+=i.outerHTML}for(;this._textContainer.firstChild;)this._textContainer.removeChild(this._textContainer.firstChild);this._textContainer.innerHTML=t,this._textCharactersEnclosedWithSpanElements=!0}},Texty.prototype._updateTextContent=function(){var t=this._applyStylesToText(this.text);this._textContainer.innerHTML=t,this._textContainerClone.innerHTML=t,this._textContainerResponsive.innerHTML=t,this._textCharactersEnclosedWithSpanElements=!1},Texty.prototype._applyStylesToText=function(t){var e=[],i=(this._shouldRenderSubTextStyles&&(e=this.subTextStyles.slice()),UnbreakableTextStyleConverter.hasUnbreakableCharacters(t));return this._processSpecialChars&&i&&(i=UnbreakableTextStyleConverter.extractStyleFromText(t),e.push(i.style),t=i.text),this._sanitizeText?TextStyleProcessor.processAndSanitize(t,e):TextStyleProcessor.processWithoutSanitization(t,e)},Texty.prototype._updateScrollbar=function(){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(),e=(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),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.toSizePx(this.fontSize,this.parentScreen.size.height)},Texty.prototype._getDefaultPadding=function(){return this.usePadding?2:0},Texty.prototype._getNaturalTextPaddingTop=function(){var t=TextStyleIntegrator.getTextPaddingTop.call(this);return\"number\"==typeof t?t:this._getDefaultPadding()},Texty.prototype._getNaturalTextPaddingRight=function(){var t=TextStyleIntegrator.getTextPaddingRight.call(this);return\"number\"==typeof t?t:this._getDefaultPadding()},Texty.prototype._getNaturalTextPaddingBottom=function(){var t=TextStyleIntegrator.getTextPaddingBottom.call(this);return\"number\"==typeof t?t:this._getDefaultPadding()},Texty.prototype._getNaturalTextPaddingLeft=function(){var t=TextStyleIntegrator.getTextPaddingLeft.call(this);return\"number\"==typeof t?t:this._getDefaultPadding()},Texty.prototype.getTextPaddingTop=function(){return this._getNaturalTextPaddingTop()},Texty.prototype.getTextPaddingRight=function(){return this._getNaturalTextPaddingRight()},Texty.prototype.getTextPaddingBottom=function(){return this._getNaturalTextPaddingBottom()},Texty.prototype.getTextPaddingLeft=function(){return this._getNaturalTextPaddingLeft()},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.text=String(t),this.loadFont(function(){this._shouldRenderSubTextStyles=!1,this._updateTextContent(),this.checkAndFixAutoWritingDirectionSupport(this._textContainer),this.checkAndFixAutoWritingDirectionSupport(this._textContainerClone),this.checkAndFixAutoWritingDirectionSupport(this._textContainerResponsive),this.scaleFont&&(this.scaleFont=!1),this.hidden||this._handleSizeUpdate(!0)}.bind(this))},Texty.prototype.showAction=function(t,e,i){Texty.uber.showAction.call(this,t,e,function(){this._startListeningForTouches(),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._sanitizeText=!0,this.resetFont(),Texty.uber.resetAction.call(this,t,e,function(){this.hidden||this._startListeningForTouches(),this.text=this._initialText,this._processSpecialChars=this._initialProcessSpecialChars,this._shouldRenderSubTextStyles=this._initialShouldRenderSubTextStyles,this._updateTextContent(),this.scaleFont=this._initialScaleFont,this.checkAndFixAutoWritingDirectionSupport(this._textContainer),this.checkAndFixAutoWritingDirectionSupport(this._textContainerClone),this.checkAndFixAutoWritingDirectionSupport(this._textContainerResponsive),this._handleSizeUpdate(!0),i()}.bind(this))},Texty.prototype.setTextAction=function(t,e,i){this._sanitizeText=!1,this._processSpecialChars=!1,this._setText(e.text),i()},Texty.prototype.getText=function(){var t=String(this.text);return this._processSpecialChars&&(t=t.replace(/\\\\(\\]|\\[)/g,\"\")),t=this._sanitizeText?htmlentitize(t):t},Texty.prototype.setAdaptToContentStrategy=function(t){-1<[\"both\",\"vertical\",\"horizontal\",\"none\"].indexOf(t)&&(this._adaptToContentStrategy=t)},Texty.prototype.setLineBreakOptimizationStrategy=function(t){-1<[\"all\",\"last\",\"none\"].indexOf(t)&&(this._lineBreakOptimizationStrategy=t)},Texty.prototype.setShortestLineToLongestLineMinRatio=function(t){this._shortestLineToLongestLineMinRatio=t},Texty.prototype.setMaxPaddingToSizeRatio=function(t){this._maxPaddingToSizeRatio=t},Texty.prototype.prepareFrame=function(){const t=this.hasBakingAnimatedClass(this.node),e=this._calculateNewStyleAttributes();return function(){this.setBakingAnimatedClass(this.node,t),this._applyStyles(this.node,e),this._handleSizeUpdate(this._initialFrame),this._initialFrame=!1}.bind(this)},Texty.prototype.getFontScaleFactor=function(){return this._fontScaleFactor};;\nfunction Frame(){}inherit(Frame,ScreenObject),Frame.toString=function(){return\"[Clazz Frame]\"},Frame.prototype.toString=function(){return\"[Frame \"+this.localId+\"]\"},Frame.prototype.createNode=function(){var e=Frame.uber.createNode.call(this);switch(e.style.overflow=\"hidden\",this.elem=document.createElement(this.frameType),this.elem.style.cssText=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0\",e.appendChild(this.elem),this.frameType){case\"iframe\":null!==this.sourceUrl.match(/http:/)&&this._track(\"Frame.iframeUrl\"),this.elem.style.visibility=\"hidden\",this.elem.src=this.sourceUrl,this.elem.setAttribute(\"frameborder\",0),this.elem.setAttribute(\"scrolling\",\"no\"),this.elem.onload=function(){this.elem.style.visibility=\"visible\"}.bind(this);break;case\"img\":null!==this.sourceUrl.match(/http:/)&&this._track(\"Frame.imageUrl\"),this._preloadImage(new File(this.sourceUrl),function(e,t){this.elem.src=t}.bind(this))}return e},Frame.prototype._track=function(e){this._privateApiTracked=this._privateApiTracked||{},this._privateApiTracked[e]||(this._privateApiTracked[e]=!0,creative.track({name:\"retiredFeatureUsed\",featureType:\"loadingInsecureContent\",featureName:e}))};;\nfunction TwitterFeed(){}inherit(TwitterFeed,ScreenObject),extend(TwitterFeed.prototype,EventEmitter),TwitterFeed.toString=function(){return\"[Clazz TwitterFeed]\"},TwitterFeed.prototype.toString=function(){return\"[TwitterFeed \"+this.localId+\"]\"},TwitterFeed.prototype.awake=function(){TwitterFeed.uber.awake.call(this),this.handleContentFetched=this.handleContentFetched.bind(this),this.handleOpenLink=this.handleOpenLink.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._touchStarted=!1,this._refreshUrl=null,this.setDimensions=this.setDimensions.bind(this),this.on(\"enteredRenderTree\",this.redrawLayout.bind(this))},TwitterFeed.prototype.createNode=function(){var t=this.constructor.uber.createNode.call(this),e=(this.scrollContainer=document.createElement(\"div\"),this.scrollContainer.className=\"scroller\",t.appendChild(this.scrollContainer),addClass(t,\"touchable\"),attach(t,\"tap\",this.handleTap),attach(this.scrollContainer,\"tap\",this.handleOpenLink),this.refresh(),this.scroller=new Scroller(t,this.scrollContainer,{directions:\"vertical\",animating:!0,easing:!0,locking:!1,scrollbars:!1}),this.startListeningForTouches(),{\".tweet\":\"font-family: \"+this.textFont+\"; color: \"+this.textColor+\"; \",\".tweet .link\":\"font-family: \"+this.linkFont+\"; color: \"+this.linkColor+\"; \",\".scroller\":\"\"});return\"color\"==this.backgroundType?Color.isGradient(this.backgroundColor)?(e[\".tweet\"]+=\"background-image:\"+Color.createGradientStyle(this.backgroundColor)+\"; \",e[\".tweet\"]+=\"background-color: transparent; \"):(e[\".tweet\"]+=\"background-color:\"+this.backgroundColor+\"; \",e[\".tweet\"]+=\"background-image: none; \"):this._preloadImage(this.backgroundImage,function(t,e){this.addStyle({\".tweet\":'background: url(\"'+e+'\") center no-repeat; '})}.bind(this)),this.roundedCorners&&(e[\".tweet\"]+=\"border-radius: \"+this.roundedCornersRadius+\"px; \"),this.shadow&&(e[\".tweet\"]+=\"box-shadow: 0 0 \"+this.shadowSize+\"px black; \",e[\".tweet\"]+=\"margin: \"+this.shadowSize+\"px; \",e[\".tweet\"]+=\"margin-bottom: \"+(10'+t+\"\"}).replace(/([#@])(\\w+)/g,function(t,e,i){return\"@\"==e?''+t+\"\":''+t+\"\"})},TwitterFeed.getRelativeTime=function(t){t=(new Date-t)/1e3;return t<10?\"a few seconds ago\":t<60?\"half a minute ago\":t<120?\"a minute ago\":t<1800?Math.floor(t/60)+\" minutes ago\":t<3600?\"half an hour ago\":t<7200?\"an hour ago\":t<86400?Math.floor(t/3600)+\" hours ago\":t<172800?\"yesterday\":Math.floor(t/86400)+\" days ago\"},TwitterFeed.buildSearchQuery=function(t){var e=(creative.secure?creative.cachedApiUrl:creative.insecureCachedApiUrl)+\"twitter/\",i=\"\";return t&&t.username?(e+=\"statuses/user_timeline?\",i+=\" screen_name=\"+encodeURIComponent(trim(t.username).replace(/^@/,\"\"))):t&&t.keywords&&(e+=\"search/tweets?\",i+=\"q=\"+encodeURIComponent(trim(t.keywords))),(i=trim(i))||(e+=\"statuses/user_timeline?\",i+=\"screen_name=Celtra\"),e+i},TwitterFeed.templates={tweet:'<% if(showAvatar) { %>

\" class=\"profile\"/><% } %>
\" class=\"link user touchable\" target=\"_blank\"><%= name %> @<%= username %>
<%= linkedText %>
<%= TwitterFeed.getRelativeTime(timestamp) %> '},TwitterFeed.prototype.showAction=function(t,e,i){TwitterFeed.uber.showAction.call(this,t,e,function(){this.startListeningForTouches(),i()}.bind(this))},TwitterFeed.prototype.hideAction=function(t,e,i){TwitterFeed.uber.hideAction.call(this,t,e,function(){this.stopListeningForTouches(),i()}.bind(this))},TwitterFeed.prototype.resetAction=function(t,e,i){TwitterFeed.uber.resetAction.call(this,t,e,function(){this.hidden||this.startListeningForTouches(),i()}.bind(this))};;\nfunction Shapey(){}inherit(Shapey,ScreenObject),extend(Shapey.prototype,StaticContentMixin),Shapey.toString=function(){return\"[Clazz Shapey]\"},Shapey.prototype.toString=function(){return\"[Shapey \"+this.localId+\"]\"},Object.defineProperties(Shapey.prototype,{_borderRoundness:{get:function(){var e,t,r,a=0,i=0,o=0,s=this._defaultValues.roundness;return 0<(s=\"number\"==typeof this.roundness?this.roundness:s)&&(t=(e=Math.min(this.getNaturalSize().height,this.getNaturalSize().width))/2,r=Math.max(this.getNaturalSize().height,this.getNaturalSize().width),s<50?a=t*(s/50):(r=t+(r/2-t)*((s-50)/50),i=this.getNaturalSize().width==e?t:r,o=this.getNaturalSize().height==e?t:r)),this.shadow&&ios(\"8\")&&3<=window.devicePixelRatio&&(a<1&&(a=1),i<1&&(i=1),o<1&&(o=1)),s<50?a+\"px\":i+\"px \"+o+\"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,t,r,a,i=Shapey.uber.createNode.call(this),o=(this._privateApiTracked={},this._scalingWorkaroundSizeThreshold=5,this._scalingWorkaroundSizeMultiplier=20,this._scalingWorkaroundHorizontal=!1,this._scalingWorkaroundVertical=!1,addClass(i,\"touchable\"),this._shapey=document.createElement(\"div\"),this._defaultValues.backgroundColor);return\"string\"==typeof this.backgroundColorFeedFieldKey?(FeedData.checkAndTrackValue(this.backgroundColorFeedFieldKey,this.backgroundColorFeedRowIndex,this.constructor.name,\"backgroundColorFeedFieldKey\"),o=\"string\"==typeof(e=FeedData.getFieldValueByKey(this.backgroundColorFeedFieldKey,this.backgroundColorFeedRowIndex))&&FeedData.isCorrectFieldType(this.backgroundColorFeedFieldKey,this.constructor.name,\"backgroundColorFeedFieldKey\")?e:\"transparent\"):\"string\"==typeof this.backgroundColor&&(o=this.backgroundColor),Color.isGradient(o)?(e=Color.createGradientStyle(o),this.addStyle({\".gradient-shapey\":e}),addClass(this._shapey,\"gradient-shapey\")):this._shapey.style.backgroundColor=o,this.border&&(e=(void 0!==this.borderColor?this:this._defaultValues).borderColor,o=(\"number\"==typeof this.borderWidth?this:this._defaultValues).borderWidth,this._shapey.style.borderColor=e,this._shapey.style.borderStyle=\"solid\",this._shapey.style.borderWidth=o+\"px\",(deviceInfo.browser.chrome()||deviceInfo.browser.samsung())&&(o=\"1\")===(o=Color.isRgba(e)?Color.patternRgba.exec(e)[Color.matchRgbaAlpha]:o)&&(this._shapey.style.backgroundClip=\"border-box\")),this.shadow&&(e=(\"number\"==typeof this.shadowAngle?this:this._defaultValues).shadowAngle*(Math.PI/180),o=(\"number\"==typeof this.shadowBlur?this:this._defaultValues).shadowBlur,t=(void 0!==this.shadowColor?this:this._defaultValues).shadowColor,a=(\"number\"==typeof this.shadowDistance?this:this._defaultValues).shadowDistance,r=Math.round(a*Math.cos(e)),a=Math.round(a*Math.sin(e)),celtra.styler.css(this._shapey,\"boxShadow\",r+\"px \"+a+\"px \"+o+\"px \"+t)),i.appendChild(this._shapey),i},Shapey.prototype.redrawLayout=function(){var e;this._shapey&&(e=this._borderRoundness,0