window.ftUtils=window.ftUtils||{},window.ftUtils.common={$:function(e){var t=this,i=e;return"string"==typeof(e=e||t.markup.div.id)&&(i=t.w.document.getElementById(e)),new t.$Base({o:t,y:i})},$Base:function(t){var i=this;i.$=!0,i.o=t.o,t.y=t.y||{},i.target=t.y.$?t.y.target:t.y,i.style=t.y.style||{},i.parent=function(){return i.target.parentNode&&i.target.parentNode!==t.o.w.document?t.o.$(i.target.parentNode):i},i.hash=function(){return 1},i.alignTo=function(e){return e.$&&e.target&&(e=e.target),t.y.style.left=t.o.$(e).x()+"px",t.y.style.top=t.o.$(e).y()+"px",i},i.x=function(){return t.o.getAbsLeft(i.target)},i.y=function(){return t.o.getAbsTop(i.target)},i.getStyle=function(e){var t=window.getComputedStyle(i.target,"");if(null==t)return t;try{return t[e]}catch(e){return"auto"}}},addEventListener:function(e,t){var i=this;void 0===i.eventListeners[e]&&(i.eventListeners[e]=[]),"function"==typeof t&&i.eventListeners[e].unshift(t),("adonpage"===e&&i.adDisplayed||"adready"===e&&i.adReady)&&t.call(i)},addExtraValuesToParams:function(){function e(e,t){var i={};n.params.split("&").forEach(function(e){e=e.split("=");i[e[0]]=e[1]}),t&&!1===i.hasOwnProperty(e)&&(t=~t.indexOf("&")?encodeURIComponent(t):t,n.params+="&"+e+"="+t)}var n=this,a=JSON.parse("[]");e("ftExpTrack",(e=>{var t=window[e+"_"+n.placement.id],i=a.length;if(!t)for(t="";i--;)if(window[e+"_"+a[i]]){t=window[e+"_"+a[i]];break}return t})("ftExpTrack")),e("click",n.click)},addFrequencySignalling:function(){var i=this;if(!i.campaign.hasOwnProperty("frequencySignal")||!i.campaign.frequencySignal)return!1;i.impressions=(i.impressions||[]).map(function(e){return i.convertUrlProtocol(e)});var e=[],t=i.decode("%5C"),n=function(e){var t=1e3*m;return new Date(Math.floor(1e3*e/t)*t+1e3*a)},a=function(){var e=parseInt(window["ftTimeZone_"+i.placement.id]||0,10),t=Math.floor(e/100);return 3600*t+60*Math.floor(e-100*t)},r=(i.campaign.frequencySignal.impressionType||""||"").replace(RegExp("[^"+t+"w]"),""),o=parseInt(i.campaign.frequencySignal.impressionThreshold||"",10),s=Number(i.campaign.frequencySignal.periodUnits||""),c=0,d=window["ftSegmentList_"+i.placement.id]||{},l=parseInt(window["ftTimestamp_"+i.placement.id],10),p=l,m="2"==i.campaign.frequencySignal.period?3600:86400,u=n(l);if(!isNaN(o)&&!isNaN(s)&&r){for(var f=r,h=f+"vp",g=d.length;g--;)if(d[g].m==h){var w=d[g].s.match(RegExp("^"+f+"("+t+"d+)_("+t+"d+)"))||["","",""],v=parseInt(w[1],10),w=parseInt(w[2],10);isNaN(v)&&(c=v),isNaN(w)&&(p=w);break}if(((e,t,i)=>((e=n(e)).setSeconds(e.getSeconds()+t*i),e))(p,s,m)<=u&&(p=l,c=0),o<=(c+=1))for(g=i.campaign.frequencySignal.frequencyPixels.length;g--;)e.push(i.campaign.frequencySignal.frequencyPixels[g].url);e.push(i.campaign.servedByDomain+"/segment/modify/"+f+c+"_"+p+";;pixel/?name=impCount&valuePairs="+h+"&cb=[RANDOM]"),e.forEach(function(e){(new Image).src=i.replaceMacros(e)})}},addFtrack:function(){var s=this,e=s.campaign.advertiser&&s.campaign.advertiser.attributionTrigger||"";if(!!window.document.querySelector('script[data-d9-placement-id="'+s.placement.id+'"]')||!s.campaign.shouldFtrackRun||![1,2].includes(e)||2===e&&!s.is("mobile"))return!1;function t(){var t={D9v:{TAG:"1",CampID:"3175",CCampID:s.campaign.id},D9r:{DeviceID:!0,SingleDeviceID:!0}};s.ftId&&(t.D9v.EnvID=encodeURIComponent(s.ftId)),s.ftImpId&&(t.D9v.ImpID=s.ftImpId,window.ft_d9LinkID&&!1!==window.ft_d9LinkID||(window.ft_d9LinkID=s.ftImpId)),window.ft_d9LinkID&&(t.D9v.LinkID=window.ft_d9LinkID),["gdpr","gdpr_consent","gdpr_pd","us_privacy"].forEach(function(e){"string"==typeof s[e]&&""!==s[e]&&(t.D9v[e]=s[e])}),i(t,function(e,t){var i=s.campaign.servedByDomain,n=[],a="",r="";(t=t||{}).d9ID&&n.push("d9:"+t.d9ID),t.d9sID&&n.push("d9s:"+t.d9sID),0{var t,e=a.divholder||a.markup.div.id;try{t=r.document.getElementById(e)}catch(e){t=null}return t})(),s="https://cdn.flashtalking.com/oba/icon/",c=s+"iconc.png?EDAA_icon=y",d="en",l=72,p="";o&&"Ad Choices"===a.campaign.obaData.notification&&"1"===a.qs("ftOBA",0)&&(t=function(){for(var e=(navigator.language||navigator.userLanguage).toLowerCase().substr(0,2),t=[{c:"bg",w:89},{c:"cs",w:84},{c:"da",w:81},{c:"de",w:93},{c:"el",w:105},{c:"en",w:72},{c:"es",w:99},{c:"fi",w:73},{c:"fr",w:86},{c:"it",w:62},{c:"nl",w:102},{c:"pl",w:69},{c:"ro",w:53},{c:"sk",w:72},{c:"sv",w:72}],i=t.length;i--;)if(e==t[i].c){d=t[i].c,l=t[i].w;break}p=s+"icone_"+d+".png?EDAA_icon=y"},i=function(){function e(e){return e=(e=a.secure?e.replace(/\bhttp:\/\/(cdn(?=\.flash)|video(?=\.flash)|stat(?=\.flash)|a(?=\.flash))/,"https://secure"):e).replace(/http:/g,"https:")}c=e(c),p=e(p)},n=function(){t(),i();var e=r.document.createElement("div");e.id="ftAdChoices_"+a.placement.id,icon1=r.document.createElement("img"),icon2=r.document.createElement("img"),link=r.document.createElement("a"),icon1.src=c,icon1.id="button",icon1.style.cssText="border:0; width:19px; height:15px;",icon2.style.cssText="border:0; display:none; width:"+l+"px; height:15px;",icon2.id="expButton",e.style.cssText="position:absolute; top:1px; right:2px",e.style.zIndex=o.style.zIndex||"999999",e.appendChild(link),link.appendChild(icon1),link.appendChild(icon2),o.appendChild(e),o.style.position||(o.style.position="relative"),o.style.width||(o.style.width=a.creative.width+"px"),o.style.height||(o.style.height=a.creative.height+"px"),e.onmouseover=function(){icon1.style.display="none",icon2.src=p,icon2.style.display="inline"},e.onmouseout=function(){icon2.style.display="none",icon1.style.display="inline"},"Pop-up Window"===a.campaign.obaData.adChoices.method?(link.onclick=function(){window.open(a.campaign.obaData.adChoices.url,"adchoicesinterstitial","height="+(a.campaign.obaData.adChoices.height||360)+",width="+(a.campaign.obaData.adChoices.width||512)+",position=0, directories=0, menubar=0")},link.style.cursor="hand"):(link.target="_blank",link.href=a.campaign.obaData.adChoices.url),a.shiftObaIcon=function(e,t){var i=this.w.document.querySelector("#ftAdChoices_"+this.placement.id);"expand"===e&&(t.fullscreen?i.style.position="fixed":(i.style.right=this.creative.width-t.width+t.indentAcross+2+"px",i.style.top=-t.indentDown+"px")),"contract"===e&&(i.style.position="absolute",i.style.right="2px",i.style.top="1px")},a.dispatchEvent("obaEnd")},null!=o?n():(e=a.swf||a.markup.iframe.src?"adonpage":"backup",a.addEventListener(e,function(){function t(){var e;e=a.divholder||a.markup.div.id,null!=(o=r.document.getElementById(e))?n():setTimeout(t,200)}t()})))},addVClick:function(e){var t=this,i=t.decode(t.qs("click","")),n=t.encodeClickCount,a=t.hasOwnProperty("setCreativeProperty");if(n&&i)for(a&&t.setCreativeProperty("ftEscapeMod",""+n);n--;)e=encodeURIComponent(e);else i&&t.inApp&&(/^mopubnativebrowser:\/\//.test(i)?(e=encodeURIComponent(encodeURIComponent(e)),a&&t.setCreativeProperty("ftEscapeMod",2)):(e=encodeURIComponent(e),a&&t.setCreativeProperty("ftEscapeMod",1)));return i+e},api:{_BRIDGE:null,_STATE:"loading",_LISTENERQUEUE:[],_EVENTS:{},_call:function(e){return this._BRIDGE[e]||this.fallbackAPI[e]||function(){}},addEventListener:function(t,e){var i=this;null===i._BRIDGE||"loading"===i.getState()&&"ready"!==t?i._LISTENERQUEUE.push([t,e]):(void 0===i._EVENTS[t]&&(i._EVENTS[t]=[],i._call("addEventListener").call(i._BRIDGE,t,function(){var e=[t].concat([].slice.call(arguments,0));i.dispatchEvent.apply(i,e)})),"function"==typeof e&&i._EVENTS[t].push(e))},close:function(){this._call("close").apply(this._BRIDGE,arguments)},dispatchEvent:function(){var e=arguments[0],t=[].slice.call(arguments,1);if(void 0!==this._EVENTS[e])for(var i=0;iscreen.width/window.devicePixelRatio&&(e.width/=window.devicePixelRatio,e.height/=window.devicePixelRatio),n=void 0===e.useCustomClose||e.useCustomClose,i={width:Math.floor(e.width),height:Math.floor(e.height),useCustomClose:n},r||(i.allowOrientationChange=void 0===e.allowOrientationChange||e.allowOrientationChange,i.forceOrientation=void 0!==e.forceOrientation?e.forceOrientation:"none"),a._call("setExpandProperties").call(a._BRIDGE,i),a._call("useCustomClose").call(a._BRIDGE,n),a._call("expand").call(a._BRIDGE,t);else{for(var o in r=a.getMaxSize(),e.indentAcross=e.widthwindow.innerWidth?0:90:t),t},getState:function(){return this._STATE},isViewable:function(){return!0},open:function(e){window.open(e,"_blank")},request:function(e){(new Image).src=e},setExpandProperties:function(e){this._EXPANDPROPERTIES=e}},getExpandProperties:function(){return this._call("getExpandProperties").call(this._BRIDGE)},getMaxSize:function(){var e,t=this,i=t.ajs;return/^2/.test(t.getVersion())||!i.inApp?((e=t.fallbackAPI.getMaxSize()).width&&void 0===window.MMJS||(e=t._call("getMaxSize").apply(t._BRIDGE,arguments)).width||(e=i.api.fallbackAPI.getMaxSize()),i.is("android")&&/mydas\.mobi/.test(location.href)&&(e.width=e.width*=2*window.devicePixelRatio,e.height=e.height*=2*window.devicePixelRatio)):((e=t.getExpandProperties()).width||(e=i.api.fallbackAPI.getMaxSize()),i.is("mobile")&&(i.api.getOrientation()%180!=0&&-1!==i.api.getOrientation()&&e.widthe.height)&&(t=e.width,e.width=e.height,e.height=t)),e},getOrientation:function(e,t){var i,n=this;if(n._BRIDGE.hasOwnProperty("getOrientation"))try{i=n._call("getOrientation").call(n._BRIDGE)}catch(e){}else try{i=n.fallbackAPI.getOrientation.call(n._BRIDGE)}catch(e){}return i=n.fallbackAPI&&n.fallbackAPI._FT&&n.fallbackAPI._FT.goneFullscreen&&e?i%180==0?t(+t[i]||0))return 1;if((+e[i]||0)<(+t[i]||0))return-1}return 0},configMerge:function(e){var t,i=this;for(t in i.v="1.8.3",i.markup={div:{id:"",style:{}},anchor:{href:"",title:"Click to learn more",id:"",target:"_blank",style:{}},image:{src:"",id:"",alt:"Click Here",style:{border:0}},iframe:{src:"",id:"",name:"",width:"",height:"",frameBorder:0,margin:0,allowTransparency:"true",webkitallowfullscreen:"",mozallowfullscreen:"",allowfullscreen:"",style:{}}},i.isWhat(),i.adDisplayed=!1,i.cachedEvents=i.cachedEvents||[],i.customPos=!1,i.customPosFunc=function(){},i.eventListeners={},i.lockableOrientation=!(!window.screen||!(screen.mozLockOrientation||screen.msLockOrientation||screen.lockOrientation||screen.orientation&&screen.orientation.lock)),i.pageVisible="maybe",i.w=window,e)i[t]=e[t];switch(i.placement=i.placement||{},i.partnerTagEncoded=i.partnerTagEncoded||null,i.partnerTag=i.partnerTag||{markup:null,macros:[]},""===i.partnerTag.markup&&(i.partnerTag={markup:null,macros:[]}),i.creative=i.creative||{creativeLibrary:{}},i.campaignSite=i.campaignSite||{site:{}},i.campaign=i.campaign||{},i.placement.id=""+i.placement.id,i.creative.blockBrowsers=i.creative.blockBrowsers||[],Array.isArray(i.creative.blockBrowsers)||(i.creative.blockBrowsers=i.creative.blockBrowsers.split(",")),i.creative.creativeLibrary.id=""+(i.creative.creativeLibrary.id||""),i.campaign.id=""+(i.campaign.id||""),i.creative.id=""+(i.creative.id||""),i.ftCdnUrl="https://cdn.flashtalking.com",i.creative.baseAssetUrl=i.creative.baseAssetUrl||""+i.ftCdnUrl,i.markup.div.id=i.divID||i.markup.div.id,i.markup.anchor.href=i.convertUrlProtocol(i.altImageUrl||i.altImgHref||i.markup.anchor.href),i.markup.anchor.id=i.altImgID||i.markup.anchor.id,i.markup.anchor.target=i.altImgTarget||i.markup.anchor.target,i.markup.image.src=i.convertUrlProtocol(i.altimg||i.markup.image.src),i.markup.image.id=i.altImgID||i.markup.image.id,i.markup.image.alt=i.alttext||i.markup.image.alt,i.markup.iframe.src=i.convertUrlProtocol(i.creative.baseAsset.host+i.creative.baseAsset.path+i.creative.baseAsset.file),i.markup.iframe.id=i.frameID||"ftframe"+i.placement.id,i.gdpr=window["ftImp"+i.placement.id]&&window["ftImp"+i.placement.id].gdpr||"",i.gdpr_consent=window["ftImp"+i.placement.id]&&window["ftImp"+i.placement.id].gdpr_consent||"",i.gdpr_pd=window["ftImp"+i.placement.id]&&window["ftImp"+i.placement.id].gdpr_pd||"",i.us_privacy=window["ftImp"+i.placement.id]&&window["ftImp"+i.placement.id].us_privacy||"",i.api=i.api||{},i.api.fallbackAPI=i.api.fallbackAPI||{},i.api.ajs=i.api.fallbackAPI.ajs=this,i.creative.adType=(i.creative.adType||"").toLowerCase(),i.markup.anchor.id="ftalt"+i.placement.id,i.confID=window["ftConfID_"+i.placement.id]||"0",i.campaign.shouldFtrackRun=!(!i.campaign||!i.campaign.isMobileEnhanced),i.campaign.isMobileEnhanced=i.is.mobile&&i.campaign.isMobileEnhanced,i.markup.div.id="ftdiv"+i.placement.id,i.encodeClickCount=parseInt(i.encodeClickCount,10)||0,i.ftId=window["ftId_"+i.placement.id]||"",i.ftImpId=window["ftImp"+i.placement.id]&&window["ftImp"+i.placement.id].impID||"",i.ftReturn=window["ftKeyword_"+i.placement.id]||"",i.keyword=window["ftKeyword_"+i.placement.id]||"",i.params=window["ftParams_"+i.placement.id]||"",i.click=i.getClickString(),i.addExtraValuesToParams(),i.scriptLocation=document.getElementById("ftscript_m"+i.placement.id),"head"===i.scriptLocation.parentNode.tagName.toLowerCase()&&document.body.appendChild(i.scriptLocation),i.secure=!!("https:"===location.protocol||document.getElementById("ftscript_m"+i.placement.id)&&/^https:/.test(document.getElementById("ftscript_m"+i.placement.id).src)||window.qs&&"function"==typeof qs.get&&/^https:/.test(qs.get("ifsrc",""))),i.mii=function(){return 99999;[%IMPRESSIONID%]/?cachebuster=[RANDOM]"},creativePropertiesList:{},cssPrefix:(e=>{var e=Object.keys(e).filter(function(e){return!/[0-9]+/.test(e)}).map(function(e){var t="";return t=null!==e.match(/^-?(moz|webkit|ms)-?/i)?e.match(/^-?(moz|webkit|ms)-?/i)[1]:t}).filter(function(e){return""!==e}),t="";return e.includes("ms")?t="-ms-":e.includes("moz")?t="-moz-":e.includes("webkit")&&(t="-webkit-"),t})(window.getComputedStyle(document.documentElement,"")),decode:function(t){var i=t;try{i=decodeURIComponent(t)}catch(e){i=unescape(t)}return i},dispatchEvent:function(e,t){var i=this;if("html_standard"===i.creative.adType&&"backup"===e&&(e="adonpage"),i.eventListeners.hasOwnProperty(e))for(var n=i.eventListeners[e].length;n--;)i.eventListeners[e][n].call(i,t);"adonpage"!==e&&"backup"!==e||(i.adDisplayed=!0)},getAbsLeft:function(e){return e.getBoundingClientRect().left+(null!=window.scrollX?window.scrollX:null!=window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft)},getAbsTop:function(e){return e.getBoundingClientRect().top+(null!=window.scrollY?window.scrollY:null!=window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop)},getBackup:function(e,t){var i,n=this;return n.supportedBrowser()&&"html_standard"===n.creative.adType?(n.markup.iframe.scrolling="no",i=n.makeElement("iframe")):("basic"===e?(n.backupShown=!0,n.fullClick=""+n.markup.anchor.href,n.api.bridge!==n.api.fallbackAPI&&(n.markup.anchor.target="_self",n.markup.anchor.href="javascript:void(0);")):(n.backupDisplayed=!0,n.markup.image.src=n.insertParam(n.markup.image.src,{param:"ft_creative",value:n.creative.id}),n.markup.image.src=n.insertParam(n.markup.image.src,{param:"ft_configuration",value:window["ftConfID_"+n.placement.id]}),n.markup.image.src+="?"+n.random(),n.markup.image.style.border="0px"),n.markup.anchor.id=n.markup.anchor.id||n.imgID,n.markup.anchor.style.display="inline-block",n.markup.image.id=""+n.markup.anchor.id,n.markup.image.style.width=n.creative.width+"px",n.markup.image.style.height=n.creative.height+"px",n.makeElement("anchor"),n.makeElement("image"),(i=n.makeElement("anchor")).appendChild(n.makeElement("image"))),t?(t.appendChild(i),t):i},getBannerConfig:function(t,e){e=e||window["ftCreativeId_"+t];var i=new XMLHttpRequest,e="https://agen-assets.ftstatic.com/display/"+t+"/"+e+".json",n=this;i.responseType="json",i.open("GET",e),i.send(),i.onreadystatechange=function(){if(4===i.readyState)switch(i.status){case 200:n.configMerge(i.response);break;case 404:n.getBannerConfigFail("file not found",t,"file not found");break;default:n.getBannerConfigFail("ARMADA ERROR",t,"Something went wrong, Armada GEN returned a status of "+i.status)}},i.addEventListener("error",function(e){n.getBannerConfigFail("error",t,e)}),i.addEventListener("abort",function(e){n.getBannerConfigFail("abort",t,e)}),i.addEventListener("timeout",function(e){n.getBannerConfigFail("timeout",t,e)})},getBannerConfigFail:function(e,t,i){console.log("FAILED TO LOAD PLACEMENT INFORMATION")},getClickString:function(){var e="";return window["ftClick_"+this.placement.id]&&(e=window["ftClick_"+this.placement.id]),e=-1",e.code)),!1===e.asImage?((t=document.createElement("script")).setAttribute("src",i),window.document.body.appendChild(t)):(new Image).src=i,n.firedImpressions[e.code]=n.placement.id)},getAdVisiblePercentage:function(e,t){var i,n,a,r,o,t={left:t.scrollLeft,right:t.scrollLeft+t.width,top:t.scrollTop,bottom:t.scrollTop+t.height},e={left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height};return t=t,r=((e=e).right-e.left)*(e.bottom-e.top),o=0,a=e,(n=t).top>a.bottom||n.left>a.right||n.right=t.impressionViewableThreshold?(t.isPlacementVisible=!0,t.dispatchEvent("visibleAd",!0)):!1===e&&t.dispatchEvent("visibleAd",!1))},isPageVisible:function(e){return"yes"===e||this.waitingForInvalidToTurnValid||"no"!==e&&(!0===this.isPlacementXdom||!0===this.ios)},impressionWatcher:function(){var e=this,t=e.getNow(),i=t-e.impressionTimeOfLastCheck-e.backgroundTimeSinceLastCheck,n=e.getPercentOfPlacementVisible(),a=e.getReadableVisibility(n);250e.lastVisibility&&(e.lastVisibility=a),n>=e.impressionViewableThreshold?e.viewableImpressionTime+=i:e.viewableImpressionTime=0,1e3<=e.viewableImpressionTime&&((e.window||window).viewableImpFired=!0,e.validateRenderFor("viewable")),e.validateRenderFor("rendered"),e.impressionTimeOfLastCheck=t,e.backgroundTimeSinceLastCheck=0,e.previousVisibility=n),!e.placementWrapper.parentNode||e.hasApi&&(e.hasApi,e.viewableImpression)||!e.isWindowActive||setTimeout(function(){e.impressionWatcher()},e.pollingCycle)},validateRenderFor:function(e){var t=this,i=t.getPlacementsParentDetails();switch(e){case"rendered":1"!==n&&"<"!==n&&!i)return!1},isWhat:function(){function e(e){return(RegExp(e+"[/ ](\\d+(?:[\\._]\\d+)*)").exec(n)||[""]).pop().replace(/_/g,".")||!1}var t,i=(()=>{var e,t="",i=window.getComputedStyle(document.documentElement,"");for(e in i)t+=e+i[e];var n=(t.match(/-(moz|webkit|ms)-/)||""===i.OLink&&["","o"])[1];return"WebKit|Moz|MS|O".match(new RegExp("("+n+")","i"))[1]})(),n=navigator.userAgent,a=navigator.platform,r=(window.matchMedia||window.msMatchMedia)("(pointer:coarse)").matches,o="iP"===a.slice(0,2)&&e("OS"),s=~n.search(/ Edge?\//i)&&e("Edge?"),c=!!window.StyleMedia,d=/Android/i.test(a)&&r&&/WebKit/i.test(i),l=!(!~n.indexOf("; U;")&&!~n.indexOf("Verson"))&&d,p=0!==(!l&&s),m=(e("ChriOS"),!!window.chrome&&/WebKit/i.test(i)),u=("opera"in window||"opr"in window)&&/WebKit/i.test(i),f={mobile:r,android:d,ios:o,windows:e("Windows(?: NT| Phone(?: OS)?)?"),mac:!/like Mac OS/.test(n)&&e("Mac OS X"),linux:"Linux"===a.slice(0,5)&&!d,chromeOS:e("CrOS \\w+"),aosp:l,chrome:!l&&!s&&m&&e("Chrome"),edge:(p||c)&&s,firefox:("sidebar"in window||"MozAppearance"in document.documentElement.style||/Moz/i.test(i))&&e("Firefox"),safari:(o&&"boolean"==typeof window.navigator.standalone||/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&safari.pushNotification).toString())&&e("Version"),webkit:/WebKit/i.test(i),blink:(m||u)&&"CSS"in window,kindleFire:e("Silk"),opera:u,operaMini:window.operamini&&"[object OperaMini]"===Object.prototype.toString.call(window.operamini)};for(t in f[navigator.platform.toLowerCase()]=!0,f)this.is[t]=f[t]},listen:function(e,t,i){return this.cachedEvents=this.cachedEvents||[],this.cachedEvents.push([e,t,i]),e.addEventListener(t,i,!1),function(e,t,i){e.addEventListener(t,i,!1)}},macSaf:function(){return this.is.mac&&this.is.safari&&!this.is.chrome},makeElement:function(e){var t,i,n=this;switch(e){case"anchor":t=document.createElement("a");break;case"image":t=document.createElement("img");break;case"iframe":n.markup.iframe.width=n.creative.width,n.markup.iframe.height=n.creative.height,t=document.createElement("iframe");break;default:t=document.createElement(e),n.markup[e]=n.markup[e]||{}}for(i in n.markup[e])if("style"===i)for(var a in n.markup[e].style)t.style[a]=n.markup[e].style[a];else t.setAttribute(i,n.markup[e][i]);return t},applySearchParameterMapToString:function(t){var i=this,e=[{param:"ft_custom",value:window["ftCustom_"+i.placement.id]||""},{param:"ft_section",value:window["ftSection_"+i.placement.id]||""},{param:"ft_id",value:i.ftId||""},{param:"ft_impID",value:i.ftImpId||""},{param:"ft_agentEnv",value:i.qs("ft_agentEnv")&&"0"!==i.qs("ft_agentEnv")?i.qs("ft_agentEnv"):""},{param:"ft_partnerid",value:i.qs("ft_partnerid")&&"0"!==i.qs("ft_partnerid").length?i.qs("ft_partnerid"):""},{param:"ft_partnerimpid",value:i.qs("ft_partnerimpid")&&"0"!==i.qs("ft_partnerimpid").length?i.qs("ft_partnerimpid"):""},{param:"gdpr",value:i.gdpr},{param:"gdpr_consent",value:i.gdpr_consent},{param:"gdpr_pd",value:i.gdpr_pd},{param:"us_privacy",value:i.us_privacy},{param:"ft_c1",value:i.qs("ft_c1")&&"0"!==i.qs("ft_c1").length?i.qs("ft_c1"):""},{param:"ft_c2",value:i.qs("ft_c2")&&"0"!==i.qs("ft_c2").length?i.qs("ft_c2"):""},{param:"ft_c3",value:i.qs("ft_c3")&&"0"!==i.qs("ft_c3").length?i.qs("ft_c3"):""},{param:"plid",value:i.qs("plid")&&"0"!==i.qs("plid").length?i.qs("plid"):""},{param:"plid2",value:i.qs("plid2")&&"0"!==i.qs("plid2").length?i.qs("plid2"):""},{param:"plid3",value:i.qs("plid3")&&"0"!==i.qs("plid3").length?i.qs("plid3"):""},{param:"plid4",value:i.qs("plid4")&&"0"!==i.qs("plid4").length?i.qs("plid4"):""},{param:"fts",value:i.qs("fts")&&"0"!==i.qs("fts").length?i.qs("fts"):""},{param:"fl",value:i.qs("fl")&&"0"!==i.qs("fl").length?i.qs("fl"):""},{param:"oob",value:i.qs("oob")&&"0"!==i.qs("oob").length?i.qs("oob"):""},{param:"ft_mcid",value:i.qs("ft_mcid")&&"0"!==i.qs("ft_mcid").length?i.qs("ft_mcid"):""},{param:"rc",value:i.qs("rc")&&"0"!==i.qs("rc").length?i.qs("rc"):""},{param:"ft_pid",value:i.qs("ft_pid")&&0"fullTracker"===e.name)[0].value))}),c.partnerTag.macros.forEach(function(e){for(var t,i,n="[%"+e.name+"%]",a=s.split(n).length-1,r=(s.indexOf(n),""),o=0;o","var ftUtil = {","init: function init(){","this.cacheOpen();","this.redefineOpen();","},","cacheOpen: function cacheOpen(){","this.classicWindowOpen = window.open;","},","redefineOpen: function redefineOpen(){","window.open = function(){","ftUtil.classicWindowOpen.apply(window, [('"+a+'\' || arguments[0]), (arguments[1] || "_blank")]);',"}","}","};","ftUtil.init();","<\/script>"].join(""),r].join(""),o.contentWindow.document.open(),o.contentWindow.document.write(s),o.contentWindow.document.close()),1{if("basic"!==e)return(t.api.fallbackAPI.ft=t).api._BRIDGE=t.api.bridge=t.api._BRIDGE||window.mraid||window.ormma||t.api.fallbackAPI,t.api.getState()})();if("basic"===e&&(t.api._BRIDGE=t.api.bridge=window.ormma||window.mraid||t.api.fallbackAPI),t.inApp=t.api._BRIDGE!==t.api.fallbackAPI,t.inApp?("basic"===e?t.removeMargin(!0):t.noBreakout=!0,t.setupViewport()):t.safeFrame&&"complex"===e?t.setSFEnvironment():t.api.fallbackAPI._STATE="default","complex"===e)return(t.api.fallbackAPI._FT=t).api.fallbackAPI._STATE="default",i},setupLoadListener:function(){var e=this;e.w.addEventListener(e.advload?"DOMContentLoaded":"load",function(){e.dispatchEvent("load")},!1)},setupPageVisibility:function(){var n,t,i,a,r,o=this,s=!0,c="hidden",d=function(e){var e=(e||w.event).type,t={focus:"yes",blur:"maybe",focusin:"yes",focusout:"maybe"},i="yes";p[c]?i="no":t.hasOwnProperty(e)&&(i=t[e]),o.pageVisible!==i&&(o.pageVisible=i,o.dispatchEvent("visibilitychange",i),o.dispatchToCreative)&&o.dispatchToCreative("visibilitychange",i),n!==("no"!==i)&&(n=s="no"!==i,o.dispatchEvent("viewableChange",n),o.api&&o.api.dispatchEvent("viewableChange",n),s)&&(clearTimeout(a),a=setTimeout(l,100))},l=function(){var e={};s&&void 0!==p.hasFocus&&((i=p.hasFocus()||o.w.document.hasFocus())!==t&&(t=i,e.type=i?"focus":"blur",d(e)),clearTimeout(a),a=setTimeout(l,100))},p=(r=o.w,o.mayExpand?e("top")===window.top?e("top"):e("parent"):o.w!==window.top&&e("top"),r.document);function e(e){try{r="string"==typeof o.w[e].document.body.style.cssText&&o.w[e]}catch(e){r=o.w}}c in p?o.listen(p,"visibilitychange",d):"mozHidden"in p?(c="mozHidden",o.listen(p,"mozvisibilitychange",d)):"webkitHidden"in p&&(c="webkitHidden",o.listen(p,"webkitvisibilitychange",d)),o.addEventListener("adonpage",function(){clearTimeout(a),a=setTimeout(l,100),o.pageVisible="maybe",p[c]?o.pageVisible="no":p.hasFocus&&(p.hasFocus()||o.w.document.hasFocus())&&(o.pageVisible="yes")}),o.pageVisible="maybe",p[c]?o.pageVisible="no":p.hasFocus&&p.hasFocus()&&(o.pageVisible="yes")},setupQS:function(e){var t,i=this,e=e.split("&"),n={};return e.forEach(function(e){(t=e.split("="))[1]=t.slice(1).join("="),n[i.decode(t[0])]=i.decode(t[1])}),window.qs&&window.qs.get||function(e,t){return n[e]||t}},setupResizeListener:function(){var e=this;e.listen(e.w,"resize",function(){e.dispatchEvent("resize")})},setupViewport:function(){var e=this.w||window,t=e.document.querySelector("head");e.document.querySelector('meta[name="viewport"]')||(t||(t=e.document.createElement("head"),e.document.body.parentElement.insertBefore(t,e.document.body)),(e=e.document.createElement("meta")).name="viewport",e.content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1",t.insertBefore(e,t.children[0]))},supportedBrowser:function(){var e,t,i,n=this,a=n.creative.blockBrowsers.length,r=/\D+/,o=/\d+/;if(void 0===document.querySelector||void 0===window.postMessage||n.isForceBackup)return!1;for(;a--;)if(e=n.creative.blockBrowsers[a].toLowerCase(),t=i=t=void 0,t=r.exec(e.substr(0,e.indexOf("-")))||r.exec(e),i=o.test(e)?parseInt(o.exec(e),10):Math.pow(2,32),e=0n.impressionViewableThreshold),undetectable:!1===e,percentInView:!1===e?NaN:e,shouldPlay:!1===e||e>=n.impressionViewableThreshold};e!==i&&n.dispatchToCreative("visibilityupdate",t),i=e})},addAPICreativeProperties:function(e){var t=this;t.setCreativeProperty("state",e?t.api.getState():"loading"),t.setCreativeProperty("isViewable",!!e&&t.api.isViewable()),t.mayExpand?(t.setCreativeProperty("orientation",(e?t.api:t.api.fallbackAPI).getOrientation()),t.setCreativeProperty("maxWidth",e?t.api.getMaxSize().width:window["ftImp"+t.placement.id]&&window["ftImp"+t.placement.id].wurfl?window["ftImp"+t.placement.id].wurfl.maxWidth:window.innerWidth),t.setCreativeProperty("maxHeight",e?t.api.getMaxSize().height:window["ftImp"+t.placement.id]&&window["ftImp"+t.placement.id].wurfl?window["ftImp"+t.placement.id].wurfl.maxHeight:window.innerHeight)):(t.setCreativeProperty("orientation",0),t.setCreativeProperty("maxWidth",t.creative.width),t.setCreativeProperty("maxHeight",t.creative.height))},addAPIListeners:function(){function t(){i.api._ORIENTATION!==i.api.getOrientation()&&(i.sendOrientation(),i.is.ios)&&i.dispatchToCreative("maxsizechange",i.getSizeAndScale()),i.inApp||(i.goneFullscreen&&i.fullPageResize(i.getSizeAndScale()),i.is.ios)||i.dispatchToCreative("maxsizechange",i.getSizeAndScale())}var i=this,e=i.w,n="orientationchange",a=[];i.api.addEventListener("stateChange",function(e){i.dispatchToCreative("statechange",e),"default"===e&&/(resized|expanded)/.test(i.api._STATE)&&(i.contract(),i.compareVersions(i.ftVersion,"2.6"))&&i.dispatchToCreative("contract"),i.api._STATE=e}),i.is.ios&&!1===i.inApp&&window.matchMedia?(window.addEventListener("pageshow",t),window.matchMedia("(orientation:portrait)").addListener(function(){setTimeout(t)})):(i.is.mobile||i.is.ios||i.is.android)&&(i.w.ScreenOrientation?(e=i.w.screen.orientation,n="change"):i.w.screen.msOrientation?(e=i.w,n="orientationchange"):i.w.screen.mozOrientation&&(e=i.w.screen,n="mozorientationchange"),i.listen(e,n,function(){function e(e){e&&"resize"!==e.type||t(),i.w.removeEventListener("resize",i.checkOrientation,!1),clearTimeout(a.shift())}i.listen(i.w,"resize",e,!0),a.push(setTimeout(e,30))},!1)),i.listen(i.w,"resize",t,!0),/^2/.test(i.api.getVersion())&&i.api.addEventListener("sizeChange",function(e,t){e.width&&(t=e.height,e=e.width),i.dispatchToCreative("maxsizechange",i.getSizeAndScale(e,t)),i.sendOrientation(e,t)}),i.api.addEventListener("viewableChange",function(e){i.dispatchToCreative("viewablechange",e)})},addListeners:function(){var t=this;t.interactionManager(),t.politeLoadSetup(),t.adVisibilityListener(),t.touchAbsorber(t.absorbSwipes),t.subloadSetup(),t.addEventListener("expand",function(e){t.ftVersion&&0<=t.compareVersions(t.ftVersion,"2.6")&&t.dispatchToCreative("expand",e)}),t.addEventListener("contract",function(){t.ftVersion&&0<=t.compareVersions(t.ftVersion,"2.6")&&t.dispatchToCreative("contract")})},allowFullscreen:function(e){try{var t=(e||window).frameElement;t.setAttribute("webkitallowfullscreen",""),t.setAttribute("mozallowfullscreen",""),t.setAttribute("allowfullscreen","")}catch(e){}},breakout:function(){var e=this,t=e.parseURL(document.referrer),i=t.host,n="?ifsrc=";if(e.iframe&&i!==location.host&&""!==i){if(!(-1t.height?t=i:a.inApp&&!i&&(t.width=Math.floor(t.width/e),t.height=Math.floor(t.height/e),t.scale=a.api.fallbackAPI.getMaxSize().width/t.width),a.goneFullscreen&&(a.setScroll(),(n={width:t.width/t.scale+"px",height:t.height/t.scale+"px",left:-r.x()+"px",top:-r.y()+"px",position:"absolute","z-index":a.zIndex,scale:t.scale,"transform-origin":"0 0"}).transform="scale("+t.scale+")",o.style.cssText=a.expandCss(n))},/rubicon/i.test(a.parseURL(location.host).domain)?350:25)},getCreativeProperties:function(){var e,t="",i="";for(e in this.creativePropertiesList)t+=i+e+"="+encodeURIComponent(this.creativePropertiesList[e]),i="&";return t},getFSElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},getQsVarsAsSearchParams:function(){var t,i,n="";return(this.qsVars||[]).forEach(function(e){t=e[0]||null,i=window[e[1]]||null,e.length<3?n+="&"+t+"="+encodeURIComponent(i||""):i&&i[e[2]]&&(n+="&"+t+"="+encodeURIComponent(i[e[2]]))}),n},getSizeAndScale:function(e,t){var i=this,n=i.api.getMaxSize(),a=i.api.getOrientation(e,t),r=document.documentElement.clientWidth,o=document.documentElement.clientHeight,s=i.w.screen.orientation;return n.width=e||n.width,n.height=t||n.height,n.orientation=270===a?90:a,n.scale=n.scale&&!i.lockableOrientation&&"none"!==i.forceOrientation?n.scale:1,n.angle=s?s.angle:a,n.type=s?s.type:(e||n.width)>(t||n.height)?"landscape":"portrait",i.is.android&&n.width>=(a%180==0?Math.min(r,o===i.creative.height?r+1:o):Math.max(r,o))*window.devicePixelRatio&&(n.height/=window.devicePixelRatio,n.width/=window.devicePixelRatio),n},html_communication:function(){window.ftSharedObject=window.ftSharedObject||{ads:{},add:function(e,t){function i(e,t){e.adReady?e.send(e.adWindow,{method:"communicate",msg:{name:t,type:"register"}}):e.addEventListener("adready",function(){i(e,t)})}for(var n in this.ads)i(this.ads[n],e),i(t,n);this.ads[e]=t},send:function(e,t,i){void 0!==this.ads[e]&&(e=this.ads[e]).send(e.adWindow,{method:"communicate",msg:{msg:t,name:i,type:"talk"}})}};try{window.parent.ftSharedObject=window.ftSharedObject}catch(e){}return window.ftSharedObject},init:function(){function e(){t.displayAd(n)}var t=this,i=(t.hasOwnProperty("campaign")&&t.campaign.hasOwnProperty("isAdVisibility")&&(t.adVis=t.adVis?1:0),t.absorbSwipes="true"===t.absorbSwipes,t.creative&&t.creative.apiVersion&&"string"==typeof t.creative.apiVersion&&(t.creative.apiVersion=(i=(t.creative.apiVersion||"").split("."),{major:parseInt(i[0],10)||0,minor:parseInt(i[1],10)||0,patch:parseInt(i[2],10)||0})),t.append=!(!window["ftImp"+t.placement.id]||1!==parseInt(window["ftImp"+t.placement.id].jsAppend,10)),t.creative.blockBrowsers=t.creative.blockBrowsers||[],"string"==typeof t.creative.blockBrowsers&&(t.creative.blockBrowsers=t.creative.blockBrowsers.split(",")),t.clicks={},t.event={INTERACTION:"18",INTERACTION_TIME:"19",EXPAND:"20",EXPAND_TIME:"30",CLICKMAP:"95",VIDEO:{init:"1",replay:"2",starts:"3","25%":"4","50%":"5","75%":"6","100%":"7",unmute:"38"},extra:{}},t.expID="ftexpframe"+t.placement.id,t.hasOwnProperty("isForceBackup")&&(t.isForceBackup="true"===t.isForceBackup),t.ajsToCreativePropertiesList=[["adVis","adVis"],["divID","markup.div.id"],["ftfuncid","placement.id"],["creativeID","creative.id"],["cID","creative.creativeLibrary.id"],["ftPlacementID","placement.id"],["aID","aID"],["pID","placement.id"],["ftSetFileSize","setFileSize"],["ftStatBaseURL","statBaseURL"],["ftMVT","creative.isInstantAd"],["ftServeDom","ftCdnUrl"],["serveDom","ftCdnUrl"],["ftSegment","segment"],["ftSegmentList","segmentList"],["ftLinkMode","linkMode"],["ftLinkID","linkID"],["ftPL","isPoliteLoad"],["ftStreamMode","streamMode"],["ftReturn","ftReturn"],["guid","GUID"],["ftBrowserInfo","is"],["clicks","clicks"],["impressionID","ftImpId"],["ftServedStump","stump"],["siteID","siteID"],["clickEvents","landingPageEventRedirects"],["campaignName","campaign.name"],["siteName","campaignSite.site.name"],["placementName","placement.name"],["creativeName","creative.name"],["clientID","campaign.advertiser.id"],["campaignID","campaign.id"],["siteID","campaignSite.site.id"]],t.windowToCreativePropertiesList=[["ftGUID","ftGUID_"],["ftConfID","ftConfID_"],["ftKeyword","ftKeyword_"],["ftSegment","ftSegment_"],["ftGeoCountry","ftGeoC2_"],["ftGeoState","ftGeoState_"],["ftGeoCity","ftGeoCity_"],["ftGeoISP","ftISP_"],["ftGeoSpeed","ftSpeed_"],["ftDMA","ftDMA_"],["ftLong","ftLong_"],["ftLat","ftLat_"],["ftPostal","ftPostal_"]],t.GUID=window["ftGUID_"+t.placement.id]||"99999999999",t.imp=window["ftImp"+t.placement.id],t.mayExpand=t.creative.expandedHeight>t.creative.height||t.creative.expandedWidth>t.creative.width||!1,t.phID="ftpos"+t.placement.id,t.qsVars=[["ftguid","ftGUID_"+t.placement.id],["ftcfid","ftConfID_"+t.placement.id],["fttime","ftTimestamp_"+t.placement.id],["ftsection","ftSection_"+t.placement.id],["ftcustom","ftCustom_"+t.placement.id],["ft_id","ftId_"+t.placement.id],["ftimpid","ftImp"+t.placement.id,"impID"],["gdpr","ftImp[%pID%]","gdpr"],["gdpr_consent","ftImp[%pID%]","gdpr_consent"],["gdpr_pd","ftImp[%pID%]","gdpr_pd"],["us_privacy","ftImp[%pID%]","us_privacy"]],t.safeFrame=window.$sf&&window.$sf.ext||!1,t.segment=window["ftSegment_"+t.placement.id]||"",t.attachtobody=t.attachtobody||null,t.baggyFrameLimit=t.baggyFrameLimit||null,t.politeLoad=t.isPoliteLoad||t.politeLoad||null,t.hasOwnProperty("tracking3rdParty")?(t.tracking3rdParty.videoQuartiles&&null!==t.tracking3rdParty.videoQuartiles&&"object"!=typeof t.tracking3rdParty.videoQuartiles&&(t.tracking3rdParty.videoQuartiles=JSON.parse(t.tracking3rdParty.videoQuartiles.replace(/^(\[%\w+%])?$/,"{}"))),t.tracking3rdParty.userEngagement&&(t.tracking3rdParty.userEngagement=t.tracking3rdParty.userEngagement.replace(/^\[%\w+%\]$/,""))):t.tracking3rdParty={videoQuartiles:{},userEngagement:""},t.ext=t.ext||"gif",t.markup.image.src=t.campaign.servedByDomain+"/imp/3/"+t.campaign.id+";"+t.placement.id+";204;"+t.ext+";"+t.campaignSite.site.id+";"+t.placement.id+"/?",t.jsurl="https://ajs-assets.ftstatic.com/ftUtils.js?placementId="+t.placement.id+"&creativeId="+t.creative.id,t.noBreakout=t.ftifroverride||t.noBreakout||null,t.segmentList=(window["ftSegmentList_"+t.placement.id]||[]).slice(0),t.creative.hasOwnProperty("version")&&(t.creativePropertiesList.creativeVersion=t.creative.version),t.forceBackup=t.isForceBackup,t.fVarList=t.creativePropertiesList,t.apiVersion=t.creative.apiVersion,t.flashVarHolder=t.ajsToCreativePropertiesList,t.gFlashVarList=t.windowToCreativePropertiesList,t.flashVar=t.setCreativeProperty,t.mvt=t.creative.isInstantAd,t.ftlocal=t.ftlocal||"flashtalking/ftlocal.html",t.zIndex=t.zIndex||77e3,t.qs=t.setupQS(t.params),t.addFrequencySignalling(),t.addFtrack(),t.processMutations(),t.landingPageEventRedirects=(t.landingPageEventRedirects||[]).map(function(e){return t.replaceMacros(t.appendLandingPageSuffix(e))}),t.receiveMethod.placement=t.receiveMethod.placement||{},t.receiveMethod.placement.id=""+t.placement.id,(window.innerWidth||document.documentElement.offsetWidth)>=t.creative.width+t.baggyFrameLimit&&(window.innerHeight||document.documentElement.offsetHeight)>=t.creative.height+t.baggyFrameLimit),n=t.supportedBrowser(),a=t.setAPI("complex");if(t.setup(t.placement.id,"complex"),t.onAPIReady(a),t.addAPICreativeProperties(a),t.removeMargin(t.inApp||t.w!==window.top&&!i),t.requestAllImpressions(),t.dispatchEvent("start"),n){if(t.adId=t.markup.iframe.id,t.mayExpand&&t.shouldBreakout&&t.shouldBreakout(i))return;t.messageListen()}else t.adId=t.markup.anchor.id;t.setupPageVisibility(),"loading"===t.api.getState()&&t.append?t.api.addEventListener("ready",e):e()},interactionManager:function(){var t,i=this,n=10,a=6e3,r=0,o=i.is.mobile,e=i.tracking3rdParty.userEngagement,s=!0;function c(){i.dispatchEvent("interaction"),o&&i.mayExpand&&!/^(?:expanded|resized)$/i.test(i.api.getState())||(r=new Date,s&&(t=setTimeout(function(){i.fireEvent(i.event.INTERACTION),e&&i.api.request(i.replaceMacros(e)),s=!1},1e3))),i.send(i.adWindow,{method:"dispatch",msg:"rollover"})}function d(){t&&(clearTimeout(t),t=null);var e=new Date,e=Math.floor((e.getTime()-(r?r.getTime():0))/100);n<=e&&0
'),e.w.document.close(),e.scriptLocation=e.w.document.getElementById("ref"),e.addEventListener("end",function(){e._expand=e.expand,e._contract=e.contract,e.expand=function(){e._expand.apply(e,arguments),e.adDiv.style.position="absolute",e.adDiv.style.right=e.adDiv.style.top=0,i.style.width=e.adFrame.style.width,i.style.height=e.adFrame.style.height},e.contract=function(){e._contract.apply(e,arguments),i.style.cssText=n}}),window.DARLA&&(e.secure=!0)},setScroll:function(e){var t=this;!0===e?(t.w.scrollTo(t.scrollXVal||0,t.scrollYVal||0),t.scrollXVal=-1,t.scrollYVal=-1):(t.scrollXVal=t.scrollXVal<0?t.w.pageXOffset:t.scrollXVal,t.scrollYVal=t.scrollYVal<0?t.w.pageYOffset:t.scrollYVal,!1!==t.to00&&t.w.scrollTo(0,0))},setup:function(){var i=this,n=this.placement.id,e=!!i.safeFrame||-1===i.creative.adType.indexOf("expand")&&!i.mayExpand;i.html_communication(),i.confID=window["ftConfID_"+n]=window["ftConfID_"+n]||i.qs("ftcfid","0"),i.GUID=window["ftGUID_"+n]=window["ftGUID_"+n]||i.qs("ftguid","99999999999999"),i.timestamp=window["ftTimestamp_"+n]=window["ftTimestamp_"+n]||i.qs("fttime","99999999999999"),i.custom=window["ftCustom_"+n]=window["ftCustom_"+n]||i.qs("ftcustom",""),i.section=window["ftSection_"+n]=window["ftSection_"+n]||i.qs("ftsection",""),i.ftId=window["ftId_"+n]=window["ftId_"+n]||i.qs("ft_id",""),i.ftImpId=window["ftImp"+n]&&window["ftImp"+n].impID||i.qs("ftimpid",""),i.ftImpId&&window["ftImp"+n]&&!window["ftImp"+n].impID&&(window["ftImp"+n].impID=i.ftImpId),window["ftImp"+n]&&["gdpr","gdpr_consent","gdpr_pd","us_privacy"].forEach(function(e){var t=window["ftImp"+n][e]||i.qs(e,"");t&&!window["ftImp"+n].hasOwnProperty(e)&&(window["ftImp"+n][e]=t)}),i.noBreakout=e||i.noBreakout,i.attachtobody=!e&&i.attachtobody,i.setupClickTags(),i.setupCreativeProperties(),i.safeFrame&&"function"==typeof i.safeFrame.register&&i.safeFrame.register(i.creative.width,i.creative.height)},setupClickTags:function(){var i=this;i.clickTags=i.clickTags.map(function(e){return i.convertUrlProtocol(e)}),i.clicks=i.clicks||{},i.modifyClicks().forEach(function(e,t){i.clicks["clickTag"+(t+1)]=e}),i.clicks.clickTag=""+i.clicks.clickTag1,i.storeCreativeProperty("clicks",i.clicks)},setupCreativeProperties:function(){function i(e,t){return e.split(".").reduce(function(e,t){return e.hasOwnProperty(t)&&e[t]},n)}var n=this;n.ajsToCreativePropertiesList.forEach(function(e){var t=-1{try{return!parent.document}catch(e){return!0}})();return t.w===top||t.noBreakout||e||(t.iframe=!0,t.w=t.w.parent,!(i=n?t.breakout():i)&&t.addAPICreativeProperties&&t.addAPICreativeProperties()),i},storeCreativeProperty:function(){var t,n=this,e=0===arguments.length,i=arguments[0]||null,a=arguments[1]||null;if(e)return n.getCreativeProperties();a?(Array.isArray(i)&&(i=i.toString()),n.setCreativeProperty(i,a)):(t=[],-1{var l,p,e,t,i,m=document.currentScript||document.querySelector('script[src*="ftUtils.js"]'),n={},a=m&&null!==m.getAttribute("src")&&m.src.split("?")[1];a&&(a.split("&").map(function(e){return e.split("=")}).forEach(function(e){n[e[0]]=e[1]}),t=n["creative-id"]||n.creativeId||!1,i={VPAID:{adTimer:void 0,adSlot:void 0,videoSlot:void 0,vidNeedsPlay:void 0,isInteracting:void 0,isPaused:void 0,isLinear:void 0,slotWidth:void 0,slotHeight:void 0,linearVids:{},__listeners:{},__properties:{adLinear:!1,adWidth:0,adHeight:0,adExpanded:0,adSkippableState:!0,adRemainingTime:0,adDuration:0,adCurrentTime:0,adVolume:1,adCompanions:[],adIcons:!1,scale:1,video:""},getAdCompanions:function(){return this.__properties.adCompanions},getAdVolume:function(){return this.__properties.adVolume},getAdExpanded:function(){return this.__properties.adExpanded},getAdLinear:function(){return this.__properties.adLinear},getAdIcons:function(){return this.__properties.adIcons},getAdSkippableState:function(){return this.__properties.adSkippableState},getAdDuration:function(){return this.__properties.adDuration},startAd:function(){this.myFTCall("VPAID_startAd")},pauseAd:function(){this.myFTCall("VPAID_pauseAd")},resumeAd:function(){this.myFTCall("VPAID_resumeAd")},expandAd:function(){this.myFTCall("VPAID_expandAd")},collapseAd:function(){this.myFTCall("VPAID_collapseAd")},getAdHeight:function(){return Math.round(this.__properties.adHeight*this.__properties.scale)},getAdWidth:function(){return Math.round(this.__properties.adWidth*this.__properties.scale)},getAdRemainingTime:function(){return null!=this.adTimer||this.isPaused?this.__properties.adRemainingTime:-2},initAd:function(e,t,i,n,a,r){var o,s,c=this,d=a.AdParameters||a||{};if("string"==typeof d&&(d=JSON.parse(d)),o=d.hasOwnProperty("json")&&d.json){for(s in"string"==typeof o&&(o=JSON.parse(o)),p=o.placement.id,m.setAttribute("id","ftscript_m"+p),m.setAttribute("name","ftscript_m"+p),o.ftifroverride=!0,o.noBreakout=!0,o.secure=!0,l.configMerge(o),["jsurl","serveDOM","statBaseURL"].forEach(function(e){l[e]&&(l[e]=l[e].replace(/\[%FT_PROTOCOL%\]/,"https"))}),!0===o.jsVPaid.isRemoveMargin&&(document.body.style.margin=0),l.receiveMethod.VPAIDAction=function(e){if(e.method&&"function"==typeof c[e.method])return c[e.method](e.payload);if(e.set)for(var t in e.set)c.__properties.hasOwnProperty(t)&&(c.__properties[t]=e.set[t]);c.dispatchEvent(e.event,e.payload)},l.addEventListener("expand",function(e){c.__properties.adExpanded||(c.interactionStart(),c.__properties.adExpanded=1,c.__properties.adWidth=e.width,c.__properties.adHeight=e.height,c.setPosition(),c.dispatchEvent("AdExpandedChange"))}),l.addEventListener("contract",function(){c.__properties.adExpanded&&(c.__properties.adExpanded=0,c.__properties.adWidth=o.creative.width,c.__properties.adHeight=o.creative.height,c.setPosition(),c.dispatchEvent("AdExpandedChange"),c.interactionEnd())}),l.addEventListener("adonpage",function(){c.isLinear||c.dispatchEvent("AdImpression")}),l.addEventListener("clickthrough",function(e){c.dispatchEvent("AdClickThru",[e.url,void 0,!1])}),l.addEventListener("interaction",function(){c.dispatchEvent("AdInteraction")}),c.adSlot=r.slot,c.slotWidth=e,c.slotHeight=t,c._videoSlot=c.videoSlot=r.videoSlot,c.setTracking(c.videoSlot),l.setCreativeProperty("initialVideo",o.jsVPaid.videoNumber),l.setCreativeProperty("isVPAID",!0),d.ft&&(l.secure=l.secure||"https"===d.ft.protocol,d.ft.segmentList=new Function("return "+d.ft.segmentList.replace(/\[%FT_SEGMENTLIST%\]/,"")+";")(),["params","GUID","confID","keyword","segment","segmentList","timestamp","GeoC2","GeoState","GeoCity","ISP","Speed","DMA","Long","Lat","Postal","MobileCarrier"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1);l[e]=window["ft"+t+"_"+p]=d.ft[e]}),l.imp=l.imp=window["ftImp"+p]=d.ftImp,l.imp&&(l.gdpr=l.imp.gdpr||"",l.gdpr_consent=l.imp.gdpr_consent||"",l.gdpr_pd=l.imp.gdpr_pd||"",l.us_privacy=l.imp.us_privacy||""),window["ftCustom_"+p]=d.ft.custom,window["ftSection_"+p]=d.ft.section,window["ftRuleMatch_"+p]=d.ft.ruleMatch,d)&&d.hasOwnProperty("ft")&&d.ft.hasOwnProperty("custom")&&l.setCreativeProperty("dvMacro",d.ft.custom),d.VPAIDProperties)c.__properties[s]=d.VPAIDProperties[s];for(s in l.jsVPaid.upscale="true"===l.jsVPaid.upscale?"zoom":l.jsVPaid.upscale,d.placementData)/^ft/.test(s)&&(window[s]=d.placementData[s]);c.__properties.adDuration=(a=c.__properties.adDuration,/:/.test(a)?(e=a.split(/[:\.]/),Date.UTC(1970,0,1,e[0],e[1],e[2],e[3]||0)/1e3):parseFloat(a)),c.__properties.adRemainingTime=c.__properties.adDuration,c.isLinear=c.__properties.adLinear,l.scriptLocation=document.createElement("div"),l.scriptLocation.style.display="none",c.adSlot.appendChild(l.scriptLocation),l.w=c.adSlot.ownerDocument.defaultView,document.body.style.margin=0,l.append=l.jsAppend=1,l.init2(),c.setPosition(),l.adDiv.addEventListener("mouseenter",function(){c.isLinear||c.stopTimer()}),l.adDiv.addEventListener("mouseleave",function(){c.startTimer()})}},handshakeVersion:function(e){return"2.0"},subscribe:function(e,t,i){this.__listeners[t]=this.__listeners[t]||[],this.__listeners[t].push({callback:e,context:i})},unsubscribe:function(t,e){this.__listeners[e]=(this.__listeners[e]||[]).filter(function(e){return e!==t})},dispatchEvent:function(e,i){var n=this;"AdStarted"===e&&(n.__properties.adStartedSent=!0,n.isLinear)&&n.dispatchEvent("AdImpression"),~["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdPaused","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdPlaying","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdSkippableStateChange"].indexOf(e)&&("AdStarted"===e||"AdPlaying"===e?(n.isPaused=!1,n.startTimer()):"AdPaused"===e&&(n.isPaused=!0,n.stopTimer()),"[object Array]"!==Object.prototype.toString.call(i)&&(i=[i]),(n.__listeners[e]||[]).forEach(function(e){var t=void 0!==e.context?e.context:n;e.callback.apply(t,i)}))},setAdVolume:function(e){this.myFTCall("VPAID_setAdVolume",e=e<0?0:1=t.duration*n[e].factor&&(l.trackerManager({type:"video",id:1,duration:Math.floor(t.duration),event:n[e].event}),i.linearVids[t.src]+=1)})},setupVideoPlayer:function(e){var t=".",i=this,n="";if(-1