"use strict";var __extends=(this&&this.__extends)||(function(){var aa=Object.setPrototypeOf||({__proto__:[]}
instanceof Array&&function(d,b){d.__proto__=b;})||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return function(d,b){aa(d,b);function __(){this.constructor=d;}
d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());};})();var __assign=(this&&this.__assign)||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}
return t;};var NativeBase=(function(){function NativeBase(){return this;}
NativeBase.prototype.addEvent=function(ba,ca,da){if(ba.addEventListener){ba.addEventListener(ca,da,false);}
else if(ba.attachEvent){ba.attachEvent('on'+ca,da);}};NativeBase.prototype.makeNativeElemCli=function(ea){var fa;if(ea&&typeof ea.imp!=='undefined'&&typeof ea.cl!=='undefined'&&ea.cl.length>0){for(var _i=0,_a=Object.keys(ea.imp);_i<_a.length;_i++){var ga=_a[_i];var ha=document.createElement('img');ha.style.height='0px';ha.style.display='none';ha.src=ea.imp[ga];document.body.insertBefore(ha,document.body.firstChild);}
fa=ea.cl;}
else if(ea&&typeof ea.ext_h!=='undefined'&&typeof ea.ext_cl_js!=='undefined'&&typeof ea.ext_imp_js!=='undefined'){var ia=document.createElement('iframe');ia.style.height='0px';ia.style.display='none';document.body.insertBefore(ia,document.body.firstChild);var ja=ia.contentWindow.document;ja.open();ja.write("<html><body><script>window.addEventListener('message',function(ev){eval(ev.data)},false)</script>");ja.write(ea.ext_h);ja.write('<script>'+ea.ext_imp_js+'</script></body></html>');ja.close();var ka='AdstirNT'+Math.round(Math.random()*10000000000)+'A'+Math.round(Math.random()*10000000000);fa='javascript:'+ka+'()';window[ka]=function(){ia.contentWindow.postMessage(ea.ext_cl_js,'*');};}
return fa;};NativeBase.prototype.replaceTemplateText=function(la,ma,na){la=encodeURIComponent(la);var oa;var pa=la.match(/%25%25AD_UNIT_LOOP_START_([0-9]*)%25%25([\s\S]|.*?)%25%25AD_UNIT_LOOP_END%25%25/);if(pa&&pa[1]&&pa[2]){var qa=pa[1];oa=pa[2];this.loopCnt=na.length>Number(qa)?Number(qa):na.length;}
else{oa=la;this.loopCnt=1;}
var ra='';for(var i=0;i<this.loopCnt;i++){var sa=na[i];sa.clickUrl=this.makeNativeElemCli(sa);var ta=decodeURIComponent(oa);ta=ta.replace(/%%OPTOUT_ICON_RIGHT%%/g,ma.replace(/LEFT_RIGHT_CSS/g,'left: auto; right: 0px; direction: ltr;text-align: right;').replace(/LEFT_RIGHT/g,'right'));ta=ta.replace(/%%OPTOUT_ICON_LEFT%%/g,ma.replace(/LEFT_RIGHT_CSS/g,'right: auto; left: 0px; direction: rtl;text-align: left;').replace(/LEFT_RIGHT/g,'left'));ta=ta.replace(/%%ICON%%/g,typeof sa.icon!=='undefined'?''+sa.icon:'');ta=ta.replace(/%%IMAGE%%/g,typeof sa.image!=='undefined'?''+sa.image:'');ta=ta.replace(/%%TITLE%%/g,typeof sa.title!=='undefined'?''+sa.title:'');ta=ta.replace(/%%DESCRIPTION%%/g,typeof sa.description!=='undefined'?''+sa.description:'');ta=ta.replace(/%%CTA%%/g,typeof sa.cta!=='undefined'?''+sa.cta:'');ta=ta.replace(/%%CLICK_URL%%/g,typeof sa.clickUrl!=='undefined'?''+sa.clickUrl:'');ta=ta.replace(/%%RATING%%/g,typeof sa.rating!=='undefined'?''+sa.rating:'');ta=ta.replace(/%%LANDING_PAGE_URL%%/g,typeof sa.landingPageUrl!=='undefined'?''+sa.landingPageUrl:'');ta=ta.replace(/%%ADVERTISER%%/g,typeof sa.advertiser!=='undefined'?''+sa.advertiser:'');ta=ta.replace(/%%OPTOUT_URL%%/g,sa.optoutUrl);ta=encodeURIComponent(ta);ra+=ta;}
la=(pa&&pa[1]&&pa[2])?la.replace(pa[0],ra):ra;la=decodeURIComponent(la);return la;};return NativeBase;}());var AdstirIvw;(function(va){function measureVimp(wa,xa){var ya='data-adstir-inview-beacon-exec';var za=function(){if(wa.hasAttribute(ya)){return;}
xa();wa.setAttribute(ya,'1');};if(!("IntersectionObserver" in window)){setTimeout(function(){za();},1000);return;}
var Aa=0.5;var Ba=0;var Ca=new IntersectionObserver(function(Da,ob){var Ea=Da[0];if(Ea!=null&&Ea.intersectionRatio>=Aa){if(Ba===0){Ba=setTimeout(function(){za();ob.disconnect();},1000);}}
else if(Ba!==0){clearTimeout(Ba);Ba=0;}},{threshold:Aa});Ca.observe(wa);}
va.measureVimp=measureVimp;function sendIvw(Fa){Fa.forEach(function(Ga){var Ha=document.createElement("div");Ha.setAttribute("style","width:0px !important;height:0px !important;background:url('"+Ga+"')");document.body.insertBefore(Ha,document.body.firstChild);});}
va.sendIvw=sendIvw;})(AdstirIvw||(AdstirIvw={}));var MakeNativeElem=(function(Ia){__extends(MakeNativeElem,Ia);function MakeNativeElem(Ja,Ka,La){var Ma=Ia.call(this)||this;Ma.init=function(){Ma.inviewClassName='adstir_inview_'+Math.floor(Math.random()*100000000).toString()+'A'+Math.floor(Math.random()*100000000).toString();Ma.global=window;if(!(Ma.adtag.crtv instanceof Array)){Ma.adtag.crtv=[Ma.adtag.crtv];}
return Ma;};Ma.makeElem=function(){Ma.makeNativeElemCallback(Ma.adtag,Ma.options);if(Ma.adtag.adtype==='native_html'){var Na='adstir_native_html_callback_'+Math.round(Math.random()*10000000000);Ma.adtag.html=Ma.adtag.html.replace(/<<<NATIVE_HTML_CALLBACK>>>/g,Na);if(Ma.options.native_html){Ma.adtag.html=Ma.adtag.html.replace(/<<<NATIVE_HTML_TEMPLATE>>>/g,'decodeURIComponent("'+encodeURIComponent(Ma.options.native_html)+'")');}
window[Na]=function(Oa){if(Oa){Oa.optoutUrl=Oa.optoutUrl!=null&&Oa.optoutUrl!==''?''+Oa.optoutUrl:'https://ad-stir.com/sp/optout.html';Oa=[Oa];this.options.native_callback({inviewDetectionIdentifier:this.inviewClassName,native_callbacks:Oa,record_viewable:null});}};document.write(Ma.adtag.html);}
else if(Ma.adtag.crtv){var Pa=function(){for(var _i=0,_a=Object.keys(Ma.adtag.crtv);_i<_a.length;_i++){var Qa=_a[_i];for(var _b=0,_c=Object.keys(Ma.adtag.crtv[Qa].ivw);_b<_c.length;_b++){var Ra=_c[_b];var Sa=document.createElement('img');Sa.style.height='0px';Sa.style.display='none';Sa.src=Ma.adtag.crtv[Qa].ivw[Ra];document.body.insertBefore(Sa,document.body.firstChild);}}};var Ta=[];for(var _i=0,_a=Object.keys(Ma.adtag.crtv);_i<_a.length;_i++){var Ua=_a[_i];Ma.adtag.crtv[Ua].optout=Ma.adtag.crtv[Ua].optout!=null&&Ma.adtag.crtv[Ua].optout!==''?''+Ma.adtag.crtv[Ua].optout:'https://ad-stir.com/sp/optout.html';Ta.push({advertiser:Ma.adtag.crtv[Ua].adv,cl:Ma.adtag.crtv[Ua].cl,cta:Ma.adtag.crtv[Ua].cta,description:Ma.adtag.crtv[Ua].desc,ext_cl_js:Ma.adtag.crtv[Ua].ext_cl_js,ext_h:Ma.adtag.crtv[Ua].ext_h,ext_imp_js:Ma.adtag.crtv[Ua].ext_imp_js,icon:Ma.adtag.crtv[Ua].icon,image:Ma.adtag.crtv[Ua].img,imp:Ma.adtag.crtv[Ua].imp,ivw:Ma.adtag.crtv[Ua].ivw,jsv:Ma.adtag.crtv[Ua].jsv,landingPageUrl:Ma.adtag.crtv[Ua].lp,optoutUrl:Ma.adtag.crtv[Ua].optout,rating:Ma.adtag.crtv[Ua].rate,title:Ma.adtag.crtv[Ua].title});}
Ma.options.native_callback({inviewDetectionIdentifier:Ma.inviewClassName,native_callbacks:Ta,record_viewable:function(){Pa();}});}
return Ma;};Ma.adtag=Ja;Ma.options=Ka;Ma.inviewRecursiveCheckFlag=La;return Ma;}
MakeNativeElem.prototype.makeNativeElemCallback=function(Va,Wa){var Xa=this;if(typeof Wa.native_callback==='undefined'&&!Wa.async){Wa.native_callback=function(Ya){var Za=Wa.native_html;var $a='<div style="display: block; line-height: 1; position: relative; margin: 0; padding: 0;">\n<div style="display: block; line-height: 1; position: absolute; margin: 0; padding: 0; z-index: 1; LEFT_RIGHT_CSS ">\n<a style="display:none;line-height:1;margin:0;padding:0;position:static;width:16px;overflow:hidden;-webkit-transition:width 0.5s linear 0s;transition:width 0.5s linear 0s;direction:inherit;text-align:inherit;" href="%%OPTOUT_URL%%"><img style="height:16px;width:85px;position:static;" src="https://js.ad-stir.com/optout/i2LEFT_RIGHT.png"></a>\n<img onclick="(function(tg){var wat=tg.parentNode.getElementsByTagName(\'a\')[0];wat.style.display=\'block\';tg.style.display=\'none\';setTimeout(function(){wat.style.width=\'85px\';},100);setTimeout(function(){wat.style.width=\'16px\';},6000);setTimeout(function(){tg.style.display=\'inline\';wat.style.display=\'none\';},6550);})(this);" style="height:16px;width:16px;margin:0;padding:0;position:static;" src="https://js.ad-stir.com/optout/i1.png">\n</div>\n</div>\n';Za=Xa.replaceTemplateText(Za,$a,Ya.native_callbacks);for(var i=0;i<Xa.loopCnt;i++){var ab=Ya.native_callbacks[i];Xa.makeNativeElemInview(Ya.inviewDetectionIdentifier,i,ab,Wa);}
if(Za.indexOf('%%INVIEW_DETECTION_IDENTIFIER%%')!==-1){Za=Za.replace(/%%INVIEW_DETECTION_IDENTIFIER%%/g,Ya.inviewDetectionIdentifier);document.write(Za);}
else{Xa.inviewRecursiveCheckFlag=true;var el=document.createElement('div');el.innerHTML=Za;var bb=el.children;var db=0;for(var _i=0,_a=Object.keys(bb);_i<_a.length;_i++){var eb=_a[_i];var c=bb[eb];if(typeof c.nodeName==='undefined'||'STYLE'===c.nodeName){continue;}
c.className=c.className+' '+Ya.inviewDetectionIdentifier;c.setAttribute('data-adstir-inview-item-index',String(db));db++;}
document.write(el.innerHTML);}};}};MakeNativeElem.prototype.makeNativeElemInview=function(fb,gb,hb,ib){var jb=this;var kb=hb;if(kb&&kb.ivw&&typeof kb.ivw==='object'&&kb.ivw.length>0&&!ib.use_sdk_ivw){var lb=function(mb){var el=mb;var nb=mb.children;if(typeof nb!=='undefined'){for(var _i=0,_a=Object.keys(nb);_i<_a.length;_i++){var pb=_a[_i];var qb=lb(nb[pb]);if(qb.offsetHeight*qb.offsetWidth>el.offsetHeight*el.offsetWidth){el=qb;}}}
return el;};var rb=function(sb){var tb=document.getElementsByClassName(fb);if(tb.length===0){return undefined;}
var ub;for(var _i=0,_a=Object.keys(tb);_i<_a.length;_i++){var vb=_a[_i];var e=(jb.inviewRecursiveCheckFlag)?lb(tb[vb]):tb[vb];if(typeof e.nodeName==='undefined'){continue;}
var wb=e.getAttribute('data-adstir-inview-item-index');if(typeof wb==='undefined'||sb!==Number(wb)){continue;}
ub=tb[vb];if(ub.offsetHeight*ub.offsetWidth<e.offsetHeight*e.offsetWidth){ub=e;}}
return ub;};var xb=function(lc){if(lc<20){lc++;var el=rb(gb);if(typeof el!=='undefined'&&el.offsetHeight*el.offsetWidth!==0){AdstirIvw.measureVimp(el,function(){AdstirIvw.sendIvw(kb.ivw);});}
else{setTimeout(function(){xb(lc);},500);}}};this.addEvent(window,"DOMContentLoaded",function(){xb(0);});}};return MakeNativeElem;}(NativeBase));var AdstirSwipe=(function(){function AdstirSwipe(yb,zb,Ab,Bb){if(Bb===void 0){Bb=null;}
var Cb=this;this.touchstartFunc=function(e){Cb.startY=e.touches[0].pageY;};this.touchmoveFunc=function(e){e.preventDefault();Cb.endY=e.touches[0].pageY;};this.touchendFunc=function(e){if(Cb.tgtDiv.style.top!=="0px"){if(Cb.endY!==0){Cb.tgtDivChild.style.transformOrigin="50% 100%";Cb.tgtDivChild.style.webkitTransformOrigin="50% 100%";Cb.tgtDivChild.style.left='0px';Cb.tgtDivChild.style.width=Cb.adWidth+'px';Cb.tgtDivChild.style.transition="1s";if(Cb.isExpanded&&Cb.endY-Cb.startY>0){Cb.tgtDivChild.style.transform="scale("+1/Cb.zv+")";Cb.tgtDivChild.style.webkitTransform="scale("+1/Cb.zv+")";Cb.isExpanded=false;var Db=document.getElementById(AdstirSwipe.closeButtonId);if(Db){Db.style.display="block";}
var Eb=document.getElementById(AdstirSwipe.lowerArrowIconId);if(Eb){Eb.style.display="none";}
var Fb=document.getElementById(AdstirSwipe.upperArrowIconId);if(Fb){Fb.style.display="block";}
var Gb=document.getElementById(AdstirSwipe.textMsgId);if(Gb){Gb.style.display="block";}}
else if(!Cb.isExpanded&&Cb.endY-Cb.startY<0){Cb.tgtDivChild.style.transform="scale("+Cb.zv+")";Cb.tgtDivChild.style.webkitTransform="scale("+Cb.zv+")";Cb.isExpanded=true;var Hb=document.getElementById(AdstirSwipe.closeButtonId);if(Hb){Hb.style.display="none";}
var Eb=document.getElementById(AdstirSwipe.lowerArrowIconId);if(Eb){Eb.style.display="block";}
var Fb=document.getElementById(AdstirSwipe.upperArrowIconId);if(Fb){Fb.style.display="none";}
var Gb=document.getElementById(AdstirSwipe.textMsgId);if(Gb){Gb.style.display="none";}}}}};this.topExpand=function(){Cb.tgtDivChild.style.transform="scale("+Cb.zv+")";Cb.tgtDivChild.style.webkitTransform="scale("+Cb.zv+")";Cb.tgtDivChild.style.transition="";Cb.isExpanded=true;var Ib=document.getElementById(AdstirSwipe.closeButtonId);if(Ib){Ib.style.display="none";}
var Jb=document.getElementById(AdstirSwipe.lowerArrowIconId);if(Jb){Jb.style.display="block";}
var Kb=document.getElementById(AdstirSwipe.upperArrowIconId);if(Kb){Kb.style.display="none";}
var Lb=document.getElementById(AdstirSwipe.textMsgId);if(Lb){Lb.style.display="none";}};this.startY=0;this.endY=0;this.tgtDiv=zb;this.tgtDivChild=Ab;this.isExpanded=true;if(Bb===null){this.adWidth=this.getAdWidth(zb);}
else{this.adWidth=Bb;}
this.zv=this.getZoom(yb);var Mb=new MutationObserver(function(Nb){Nb.forEach(function(Ob){if(Ob.type==="attributes"&&Ob.attributeName==="style"){if(Cb.tgtDiv.style.top==="0px"){Cb.tgtDivChild.style.transformOrigin="50% 0%";Cb.tgtDivChild.style.webkitTransformOrigin="50% 0%";Cb.topExpand();}
else if(Cb.tgtDiv.style.bottom==="0px"){Cb.tgtDivChild.style.transformOrigin="50% 100%";Cb.tgtDivChild.style.webkitTransformOrigin="50% 100%";}}});});var Pb={attributes:true,attributeFilter:["style"]};Mb.observe(this.tgtDiv,Pb);}
AdstirSwipe.prototype.getAdWidth=function(Qb){var Rb=0;var Sb=0;var Tb=0;var Ub=Qb.getElementsByTagName('a');for(var i=0;i<Ub.length;i++){var Vb=parseFloat(Ub[i].style.width);if(Vb>Rb)Rb=Vb;}
var Wb=Qb.getElementsByTagName('iframe');for(var i=0;i<Wb.length;i++){Vb=parseFloat(Wb[i].style.width);if(Vb>Sb)Sb=Vb;}
var Xb=Qb.getElementsByTagName('img');for(var i=0;i<Xb.length;i++){Vb=parseFloat(Xb[i].style.width);if(Vb>Tb)Tb=Vb;}
var Yb=Rb;if(Yb<Sb)Yb=Sb;if(Yb<Tb)Yb=Tb;if(Yb<=320)Yb=320;return Yb;};AdstirSwipe.prototype.getZoom=function(Zb){var z=Zb.innerWidth/this.adWidth;if(Zb.innerHeight<Zb.innerWidth){var sh=screen.height,sw=screen.width;z*=(sh<sw?sh / sw : sw / sh);}
return z;};AdstirSwipe.generateLowerArrowIcon=function($b,ac){var bc=document.createElement("div");bc.id=AdstirSwipe.lowerArrowIconId;bc.setAttribute("style","position:absolute;width:"+$b+"px;height:0;top:0;display:block;pointer-events:none;");var cc=document.createElement("div");cc.setAttribute("style","width:25px;height:12.5px;position:absolute;top:0px;right:"+ac+"px;opacity:0.5;background-color:gray;");var dc=document.createElement("img");dc.src="https://js.ad-stir.com/network/lower_arrow.svg";cc.appendChild(dc);bc.appendChild(cc);return bc;};AdstirSwipe.generateUpperArrowIcon=function(ec,fc){var gc=document.createElement("div");gc.id=AdstirSwipe.upperArrowIconId;gc.setAttribute("style","position:absolute;width:"+ec+"px;height:0;top:0;display:block;pointer-events:none;");var hc=document.createElement("div");hc.setAttribute("style","width:25px;height:12.5px;position:absolute;top:0px;right:"+fc+"px;opacity:0.5;background-color:gray;");var ic=document.createElement("img");ic.src="https://js.ad-stir.com/network/upper_arrow.svg";hc.appendChild(ic);gc.appendChild(hc);return gc;};AdstirSwipe.generateCloseButton=function(jc,kc){var mc=document.createElement("div");mc.id=AdstirSwipe.closeButtonId;mc.setAttribute("style","position:absolute;width:"+jc+"px;height:0;top:0;display:none;");var nc=document.createElement("img");nc.src="https://js.ad-stir.com/network/close.png";nc.setAttribute("style","width:16px;height:16px;position:absolute;top:0px;");nc.style.right="-16px";mc.appendChild(nc);nc.addEventListener("click",kc,false);return mc;};AdstirSwipe.generateTextMsg=function(oc){var pc=document.createElement("div");var qc=AdstirSwipe.textMsgId;pc.id=qc;pc.setAttribute("style","position:absolute;width:"+oc+"px;height:0;top:0;display:none;");var rc=document.createElement("div");rc.setAttribute("style","height:16px;position:absolute;top:-16px;right:0;font-size:16px;line-height:16px;test-align:right;background-color:gray;");rc.innerHTML="スワイプで拡大";pc.appendChild(rc);return pc;};AdstirSwipe.closeButtonId="adstir_swipe_ov_close_btn";AdstirSwipe.lowerArrowIconId="adstir_swipe_ov_lower_arrow_icon";AdstirSwipe.upperArrowIconId="adstir_swipe_ov_upper_arrow_icon";AdstirSwipe.textMsgId="adstir_swipe_ov_text_message";return AdstirSwipe;}());var MakeNativeBannerElem=(function(sc){__extends(MakeNativeBannerElem,sc);function MakeNativeBannerElem(tc,uc){var vc=sc.call(this)||this;vc.init=function(){var wc=window;vc.ifid="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);if(!(vc.adtag.crtv instanceof Array)){vc.adtag.crtv=[vc.adtag.crtv];}
vc.createNativeHtml=vc.makeNativeBannerElemCallback();return vc;};vc.makeElem=function(){var xc=[];for(var _i=0,_a=Object.keys(vc.adtag.crtv);_i<_a.length;_i++){var yc=_a[_i];vc.adtag.crtv[yc].optout=(vc.adtag.crtv[yc].optout!=null&&vc.adtag.crtv[yc].optout!==""?""+vc.adtag.crtv[yc].optout:"https://ad-stir.com/sp/optout.html");xc.push({advertiser:vc.adtag.crtv[yc].adv,cl:vc.adtag.crtv[yc].cl,cta:vc.adtag.crtv[yc].cta,description:vc.adtag.crtv[yc].desc,ext_cl_js:vc.adtag.crtv[yc].ext_cl_js,ext_h:vc.adtag.crtv[yc].ext_h,ext_imp_js:vc.adtag.crtv[yc].ext_imp_js,icon:vc.adtag.crtv[yc].icon,image:vc.adtag.crtv[yc].img,imp:vc.adtag.crtv[yc].imp,ivw:vc.adtag.crtv[yc].ivw,jsv:vc.adtag.crtv[yc].jsv,landingPageUrl:vc.adtag.crtv[yc].lp,optoutUrl:vc.adtag.crtv[yc].optout,rating:vc.adtag.crtv[yc].rate,title:vc.adtag.crtv[yc].title});}
if(vc.adtag.crtv){vc.adtag.html=vc.createNativeHtml(xc);}
else if(vc.adtag.html){var zc="adstir_native_html_callback_"+Math.round(Math.random()*10000000000);vc.adtag.html=vc.adtag.html.replace(/<<<NATIVE_HTML_CALLBACK>>>/g,zc);if(vc.options.native_html){vc.options.native_html="<style>body { margin: 0; }</style>"+vc.options.native_html;vc.adtag.html=vc.adtag.html.replace(/<<<NATIVE_HTML_TEMPLATE>>>/g,"decodeURIComponent(\""+encodeURIComponent(vc.options.native_html)+"\")");vc.adtag.html=vc.adtag.html.replace(/<<<NATIVE_HTML_TEMPLATE_UNESC>>>/g,vc.options.native_html);}
if(vc.adtag.inview&&typeof vc.adtag.inview==='object'&&vc.adtag.inview.length>0){vc.makeInview(vc.adtag.inview);}}
vc.adtag.html=(vc.adtag.nntmpl_disp_w&&vc.adtag.nntmpl_disp_h)?"<iframe id=\""+vc.ifid+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+vc.adtag.nntmpl_disp_h+";width:"+vc.adtag.nntmpl_disp_w+";border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+vc.ifid+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(vc.adtag.html))+"));doc.close();})();</script>":"<iframe id=\""+vc.ifid+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+vc.adtag.h+"px;width:"+vc.adtag.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+vc.ifid+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(vc.adtag.html))+"));doc.close();})();</script>";return vc;};vc.adtag=tc;vc.options=uc;return vc;}
MakeNativeBannerElem.prototype.getIfid=function(){return this.ifid;};MakeNativeBannerElem.prototype.makeNativeBannerElemCallback=function(){var Ac=this;return function(Bc){var Cc=window;var Dc="<!DOCTYPE html><html><head><style>body { margin: 0; }</style></head><body>"+Ac.options.native_html;var Ec="<div style=\"display: block; line-height: 1; position: relative; margin: 0; padding: 0;\">\n<div style=\"display: block; line-height: 1; position: absolute; margin: 0; padding: 0; z-index: 1; LEFT_RIGHT_CSS \">\n<a style=\"display:none;line-height:1;margin:0;padding:0;position:static;width:16px;overflow:hidden;-webkit-transition:width 0.5s linear 0s;transition:width 0.5s linear 0s;direction:inherit;text-align:inherit;\" href=\"%%OPTOUT_URL%%\"><img style=\"height:16px;width:85px;position:static;\" src=\"https://js.ad-stir.com/optout/i2LEFT_RIGHT.png\"></a>\n<img onclick=\"(function(tg){var wat=tg.parentNode.getElementsByTagName('a')[0];wat.style.display='block';tg.style.display='none';setTimeout(function(){wat.style.width='85px';},100);setTimeout(function(){wat.style.width='16px';},6000);setTimeout(function(){tg.style.display='inline';wat.style.display='none';},6550);})(this);\" style=\"height:16px;width:16px;margin:0;padding:0;position:static;\" src=\"https://js.ad-stir.com/optout/i1.png\">\n</div>\n</div>\n";Dc=Ac.replaceTemplateText(Dc,Ec,Bc);var Fc=[];for(var i=0;i<Ac.loopCnt;i++){var Gc=Bc[i];if(Gc.ivw&&typeof Gc.ivw==='object'&&Gc.ivw.length>0&&!Ac.options.use_sdk_ivw){Fc=Fc.concat(Gc.ivw);}}
if(Fc){Ac.makeInview(Fc);}
Dc=Dc+'</body></html>';return Dc;};};MakeNativeBannerElem.prototype.makeInview=function(Hc){var Ic=this;var Jc=window;this.addEvent(Jc,"DOMContentLoaded",function(){var Kc=document.getElementById(Ic.ifid);if(Kc){if(Kc.contentWindow&&Kc.contentWindow.document&&Kc.contentWindow.document.readyState==="complete"){setTimeout(function(){AdstirIvw.measureVimp(Kc,function(){AdstirIvw.sendIvw(Hc);});},0);}
else{Ic.addEvent(Kc,"load",function(){AdstirIvw.measureVimp(Kc,function(){AdstirIvw.sendIvw(Hc);});});}
if(Ic.adtag.float===10039||Ic.adtag.float===10040){var Lc=window.parent;var Mc=Lc.document.getElementById("adstir_float");if(Mc){var Nc=Mc.parentNode;var Oc=new AdstirSwipe(Lc,Nc,Mc);if(Kc.contentDocument){Kc.contentDocument.addEventListener("touchstart",Oc.touchstartFunc);Kc.contentDocument.addEventListener("touchmove",Oc.touchmoveFunc,{passive:false});Kc.contentDocument.addEventListener("touchend",Oc.touchendFunc);}}}}});};return MakeNativeBannerElem;}(NativeBase));var AdstirSchain;(function(Pc){function isSupplyChain(Qc){if(typeof Qc!=="object"||Qc===null){return false;}
if(Qc.ver!=="1.0"){return false;}
if(Qc.complete!==1&&Qc.complete!==0){return false;}
if(!Array.isArray(Qc.nodes)){return false;}
return Qc.nodes.every(isSupplyChainNode);}
Pc.isSupplyChain=isSupplyChain;function isSupplyChainNode(Rc){if(typeof Rc!=="object"||Rc===null){return false;}
if(typeof Rc.asi!=="string"){return false;}
if(typeof Rc.sid!=="string"){return false;}
if(typeof Rc.rid!=="undefined"&&typeof Rc.rid!=="string"){return false;}
if(Rc.hp!==1){return false;}
if(typeof Rc.name!=="undefined"&&typeof Rc.name!=="string"){return false;}
if(typeof Rc.domain!=="undefined"&&typeof Rc.domain!=="string"){return false;}
if(typeof Rc.ext!=="undefined"&&(Rc.ext===null||typeof Rc.ext!=="object")){return false;}
return true;}
function serializeSchain(Sc){function escapeValue(Tc){var Uc=[];for(var _i=1;_i<arguments.length;_i++){Uc[_i-1]=arguments[_i];}
return Tc.reduce(function(Vc,Wc,i){var Xc=String(typeof Uc[i-1]!=="undefined"?Uc[i-1]:"");try{return Vc+fixedEncodeURIComponent(Xc)+Wc;}
catch(e){throw e;}},"");}
var Yc=Sc.nodes.map(function(n){return(_a=["",",",",",",",",",",",""],_a.raw=["",",",",",",",",",",",""],escapeValue(_a,n.asi,n.sid,n.hp,n.rid,n.name,n.domain));var _a;}).join("!");return Sc.ver+","+Sc.complete+"!"+Yc;}
Pc.serializeSchain=serializeSchain;function deserializeSchain(Zc){var _a=Zc.split("!"),verAndComplete=_a[0],serializedNodes=_a.slice(1);if(serializedNodes.length<1){throw new Error("no nodes found.");}
var _b=verAndComplete.split(",",2),ver=_b[0],_c=_b[1],rawComplete=_c===void 0?"":_c;if(ver!=="1.0"){throw new Error("unsupported ver: "+ver);}
var $c=parseInt(rawComplete);if($c!==1&&$c!==0){throw new Error("complete is neither 1 nor 0: "+rawComplete);}
var bd=serializedNodes.map(function(sn){try{return deserializeSchainNode(sn);}
catch(e){throw e;}});return{ver:ver,complete:$c,nodes:bd};}
Pc.deserializeSchain=deserializeSchain;function deserializeSchainNode(cd){var _a=cd.split(","),_b=_a[0],rawAsi=_b===void 0?"":_b,_c=_a[1],rawSid=_c===void 0?"":_c,_d=_a[2],rawHp=_d===void 0?"":_d,_e=_a[3],rawRid=_e===void 0?"":_e,_f=_a[4],rawName=_f===void 0?"":_f,_g=_a[5],rawDomain=_g===void 0?"":_g;if(rawAsi===""||rawSid===""||rawHp===""){throw new Error("missing required node parameter");}
var hp=parseInt(rawHp);if(hp!==1){throw new Error("node.hp is not 1: "+rawHp);}
var _h=[rawAsi,rawSid,rawRid,rawName,rawDomain].map(function(s){try{return decodeURIComponent(s);}
catch(e){throw e;}}),asi=_h[0],sid=_h[1],rid=_h[2],name=_h[3],domain=_h[4];return __assign({asi:asi,sid:sid,hp:hp},dropEmptyStringProperties({rid:rid,name:name,domain:domain}));}
function dropEmptyStringProperties(o){var dd=["rid","name","domain"];var fd={};return dd.reduce(function(gd,hd){var v=o[hd];if(v!==""){gd[hd]=v;}
return gd;},fd);}
function fixedEncodeURIComponent(jd){try{return encodeURIComponent(jd).replace(/[!'()*]/g,function(c){return "%"+c.charCodeAt(0).toString(16);});}
catch(e){throw e;}}})(AdstirSchain||(AdstirSchain={}));var AdstirNext=(function(){function AdstirNext(kd){var ld=this;this.timeout=10000;this.inview_recursive_check_flag=false;this.URL={adtag:"//ad.ad-stir.com/ad",float:"//js.ad-stir.com/js/adstir_float_%%NUMBER%%.js?ver=6",ileffect:"//js.ad-stir.com/js/adstir_inline_effect_%%NUMBER%%.js",magnify:"//js.ad-stir.com/js/adstir_magnify.js",nativeTemplate:"//cdnn.ad-stir.com/native/template/",nativeNetworkTemplate:"//cdnn.ad-stir.com/network/template/",secureFrameHtml:"//tpf.adstirservice.com/secureframe/v1/container.html",optoutIframe:"//js.ad-stir.com/js/load_adstir_optout.html",topicsIframe:"//js.ad-stir.com/js/tpcs.html",vp:"//js.ad-stir.com/js/vp/"};this.is_storage_available=null;this.uach_key="adstir_uach";var md=window;var nd=void 0;if(parseFloat(kd.ver)>=5.0){}
else if(parseFloat(kd.ver)>=4.0){kd.center=true;}
else if(parseFloat(kd.ver)>=3.0){kd.center=true;}
else{return;}
this.tid="AdstirTID"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);if(kd.type===nd){kd.type="html";}
if(navigator.userAgentData&&typeof navigator.userAgentData.getHighEntropyValues==="function"&&md.adstir_sua==null){var od=function(pd,qd){return{brand:pd,version:qd.split(".")};};var rd=function(sd){return{browsers:sd.fullVersionList.map(function(_a){var td=_a.brand,version=_a.version;return od(td,version);}),platform:od(sd.platform,sd.platformVersion),mobile:sd.mobile?1:0,architecture:sd.architecture,bitness:sd.bitness,model:sd.model,source:2};};var ud=["model","mobile","bitness","platform","platformVersion","fullVersionList","architecture",];var vd=function(wd){return ud.reduce(function(xd,yd){return __assign({},xd,(_a={},_a[yd]=wd[yd],_a));var _a;},{});};try{if(this.isStorageAvailable()){var zd=window.localStorage.getItem(this.uach_key);if(zd!=null){md.adstir_sua=rd(vd(JSON.parse(zd)));}}}
catch(e){}
navigator.userAgentData.getHighEntropyValues(ud).then(function(Ad){var Bd=vd(Ad);md.adstir_sua=rd(Bd);if(ld.isStorageAvailable()){window.localStorage.setItem(ld.uach_key,JSON.stringify(Ad));}})["catch"](function(e){console.error(e);});}
kd.org_type=kd.type;if(kd.type==="side"){if(window.top!=window.self){kd.org_type="html";}
kd.type="html";}
if(kd.type==="interstitial"){var ua=navigator.userAgent;if(/Android 2/.test(ua))return;if(kd.frequency!=nd&&kd.frequency<Math.random())return;}
if(kd.type==="interstitialpc"){var ua=navigator.userAgent;if(!(ua.indexOf('iPhone')>0||ua.indexOf('iPad')>0||ua.indexOf('Android')>0))return;if(!(/iPhone OS ([5-9]|10)/.test(ua)||/iPad; CPU OS ([5-9]|10)/.test(ua)||/Android ([4-9])/.test(ua)))return;var iw=window.innerWidth;var ih=window.innerHeight;var zv=((iw / 350) > (ih / 300)?(ih / 300) : (iw / 350));if(zv<1)return;if(kd.frequency!=nd&&kd.frequency<Math.random())return;}
if(kd.reload_parameter!==nd&&typeof kd.reload_parameter==='string'){var _a=kd.reload_parameter.split("!"),reload_parameter=_a[0],delete_log_network=_a[1];var Cd=reload_parameter.split("|");var Dd=Cd[0];var Ed=Cd[1];var Fd=Cd[2];var Gd=Dd.split(",");if(Fd!==nd){kd.force_group=Fd;}
kd.exclude_network=Cd[0];if(delete_log_network!=null){kd.delete_log_network=delete_log_network;}
else{kd.delete_log_network=Ed+','+Gd[Gd.length-1];}}
if(kd.type==="native"){this.URL.adtag="//ad.ad-stir.com/nad";}
if(kd.type==="recommend"){kd.type="html";this.URL.adtag="//ad.ad-stir.com/rad";}
if(kd.type==="video"){var ua=navigator.userAgent;if(!(ua.indexOf('iPhone')>0||ua.indexOf('iPad')>0||ua.indexOf('iPod')>0||ua.indexOf('Android')>0))return;if(kd.floating==true&&!(window.top==window.self&&kd.iframe==nd)){return;}
if(!kd.floating&&!(window.top==window.self&&kd.iframe==nd)){if(!(((/iPhone OS (9|1[0-9])/.test(ua)||/iPad; CPU OS (9|1[0-9])/.test(ua))&&/Safari\//.test(ua))||parseInt(ua.slice(ua.indexOf('Chrome/')+7,ua.indexOf('Chrome/')+10))>=51)){return;}}
this.URL.adtag="//ad.ad-stir.com/vad";kd.type="html";}
if(kd.type==="wipe"){if(!(window.top==window.self)){return;}
if(md.adstir_wipead_e||document.getElementById("adstir_wipead")!=null){return;}
this.URL.adtag="//ad.ad-stir.com/wad";if(kd.frequency!=nd&&kd.frequency<=Math.random())return;var Hd=function(Id){window.removeEventListener("touchstart",Hd);if(!kd.wipead_vars)kd.wipead_vars={};var Jd=Id.changedTouches[0];kd.wipead_vars['touchPosition']=Jd.pageX;var Kd=document.getElementById("adstir_wipead");if(Kd!=null){var Ld=JSON.stringify(kd.wipead_vars);Kd.setAttribute("data-set-wipead",Ld);}};window.addEventListener("touchstart",Hd,{passive:false});kd.type="html";kd.floating=true;}
if(kd.debug!==nd){if(kd.debug.url!==nd){for(var Md in kd.debug.url)this.URL[Md]=kd.debug.url[Md];}}
if(typeof document.browsingTopics=="function"&&md.adstir_topics==null){try{if(this.isStorageAvailable()){var Nd=window.localStorage.getItem("adstir_topics");if(Nd!=null){md.adstir_topics=JSON.parse(Nd);}}}
catch(e){}
var Od=new URL("https:"+this.URL.topicsIframe);var Pd=Math.random().toString(32).substring(2);var Qd=function(Rd){if(Rd.origin===Od.origin&&Rd.data.id==Pd){window.removeEventListener("message",Qd);var Sd=Rd.data.v;if(Array.isArray(Sd)&&Sd.length>0){md.adstir_topics=Sd;if(ld.isStorageAvailable()){try{window.localStorage.setItem("adstir_topics",JSON.stringify(Sd));}
catch(e){console.error(e);}}}}};window.addEventListener("message",Qd);var Td=document.createElement("iframe");Td.src=Od.href;Td.style.display="none";Td.onload=function(){if(Td.contentWindow){Td.contentWindow.postMessage({id:Pd},Od.origin);}};if(document.body!=null){document.body.appendChild(Td);}
else{document.addEventListener("DOMContentLoaded",function(){if(document.body!=null){document.body.appendChild(Td);}});}}
var Ud=this.getLocation();var Vd="https:";kd.secure=true;this.URL.adtag="https:"+this.URL.adtag;this.URL.float=Vd+this.URL.float;this.URL.magnify=Vd+this.URL.magnify;this.URL.ileffect=Vd+this.URL.ileffect;this.URL.secureFrameHtml=Vd+this.URL.secureFrameHtml;if(kd.origin===nd&&Ud!==nd){var Wd=Ud.href;if(Wd.length>500)Wd=Wd.substring(0,500);if(Wd.substring(0,4)==='http')kd.origin=Wd;}
var Xd=false;this.addEvent(md,"load",function(){Xd=true;});var Yd;if(kd.iframe||kd.async){Yd=this.makeAsync();}
else{Yd=this.makeSync();}
if(kd.type==="html"){Yd.prewrite(kd);}
Yd.connect(kd,this.URL.adtag,this.getParam(kd),function(Zd){if(Zd!==nd&&(Zd.html!==""||Zd.crtv!==nd||(Zd.med&&ld.arrayContains(kd.supported_functions,"awakeNative")))){if(typeof Zd.html=="string"){Zd.html=Zd.html.replace(/%%TID%%/g,ld.tid);Zd.html=Zd.html.replace(/%%NCK%%/g,kd.floating?"1":"0");}
var $d=Zd.rattr;if($d!=null){var ae=$d.window;if(ae!=null){kd.flags={};for(var Md in ae){kd.flags[Md]=Number(ae[Md]);if(isNaN(kd.flags[Md]))kd.flags[Md]=0;}}
var be=$d.adstir_vars;if(be!=null){var ce=be.line_vars;if(ce){if(!kd.line_vars)kd.line_vars={};for(var Md in ce){kd.line_vars[Md]=ce[Md];}}
var de=be.down_vars;if(de!=null){if(!kd.down_vars)kd.down_vars={};for(var Md in de){kd.down_vars[Md]=de[Md];}}
var ee=be.expand_vars;if(ee!=null){if(!kd.expand_vars)kd.expand_vars={};for(var Md in ee){kd.expand_vars[Md]=ee[Md];}}
var fe=be.close_vars;if(fe!=null){if(!kd.close_vars)kd.close_vars={};for(var Md in fe){kd.close_vars[Md]=fe[Md];}}
var ge=be.shake_vars;if(ge!=null){if(!kd.shake_vars)kd.shake_vars={};for(var Md in ge){kd.shake_vars[Md]=ge[Md];}}
var he=be.commons;if(he!=null){if(!kd.commons)kd.commons={};for(var Md in he){kd.commons[Md]=he[Md];}}
var ie=be.instl_vars;if(ie!=null){if(!kd.instl_vars)kd.instl_vars={};for(var Md in ie){kd.instl_vars[Md]=ie[Md];}}
var je=be.wipead_vars;if(je!=null){if(!kd.wipead_vars)kd.wipead_vars={};for(var ke in je){kd.wipead_vars[ke]=je[ke];}}
var le=be.vp_vars;if(le!=null){kd.vp_vars=__assign({},(kd.vp_vars||{}),le);}}}
if(kd.debug&&Zd.adtype!=="iframe"&&Zd.html)Zd.html='<span class="debug">'+Zd.id+'</span>'+Zd.html;if(kd.use_sdk_ivw&&Zd.inview&&typeof Zd.inview==='object'&&Zd.inview.length>0){var me;var ne=function(e){var oe=e.ratio;if(oe>=0.5){if(me)return;me=setTimeout(function(){for(var i=0;i<Zd.inview.length;i++){var pe=document.createElement("div");pe.setAttribute("style","width:0px !important");pe.setAttribute("style","height:0px !important");pe.style.background="url("+Zd.inview[i]+")";document.body.insertBefore(pe,document.body.firstChild);};window.removeEventListener('changeInViewRatio',ne);},1000);}
else{if(me)clearTimeout(me);me=nd;}};window.addEventListener('changeInViewRatio',ne);}
if(kd.type==="html"){if(kd.org_type==="side"){Zd.magnify=0;Zd.ileffect=null;}
if(Zd.adtype==="vast"){ld.processVASTRes(Zd,kd);}
if(Zd.adtype==="native_banner"){var qe=new MakeNativeBannerElem(Zd,kd);qe.init().makeElem();var re=qe.getIfid();if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,re,true);}}
if(Zd.adtype=="iframe"){var se="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var te=document.createElement("iframe");var ve=Zd.html.split("<!-- %%ADSTIRCONTENTSEP%% -->");if(ve.length===3){var we={};try{we=JSON.parse(ve[1]);}
catch(e){}
if(Array.isArray(we.ads)){var xe="adstirIFREF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var ye="<script>function adstirDisplayNextAd(){ window.parent."+xe+"(); }</script>";var ze=function(Ae){return Ae.replace("<!-- %%ADSTIR_VARS%% -->","<script>var adstir_vars = JSON.parse(decodeURIComponent(\""+encodeURIComponent(JSON.stringify(kd))+"\"));</script>").replace("<!-- %%NEXT_AD_FUNC%% -->",ye);};var Be=we.ads;window[xe]=function(){if(Be.length>0){var ad=ze(Be.shift().html);var i=document.querySelector("iframe#"+se);if(i===null){return;}
var Ce=i.contentDocument;Ce.open();Ce.write(ad);Ce.close();}};Zd.html=ze(Be.shift().html).replace("<!-- %%BEACONS_BEFORE%% -->",ve[0]).replace("<!-- %%BEACONS_AFTER%% -->",ve[2]);}}
if(Zd.secure_frame&&te.sandbox instanceof DOMTokenList){Zd.html+="<script>(function(){"+"var afd = "+JSON.stringify(Zd.afd)+";"+"window.document.body.addEventListener('click', () => {"+"for (var i = 0; i < afd.length; i++) {"+"var script = document.createElement('script');"+"script.text = afd[i];"+"window.document.body.appendChild(script);"+"}"+"}, false);"+"})();</script>";var De=JSON.stringify(ld.URL.secureFrameHtml+"#"+encodeURIComponent(Zd.html));Zd.html="<iframe sandbox=\"allow-forms allow-popups allow-scripts allow-top-navigation-by-user-activation allow-popups-to-escape-sandbox allow-same-origin\" id=\""+se+"\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\" src="+De+"></iframe>";}
else{if(Zd.friendly_iframe)Zd.html='<script>inDapIF=true;</script>'+Zd.html;Zd.html="<iframe id=\""+se+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+se+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent("<!doctype html><html><head></head><body>"+Zd.html+"</body></html>"))+"));doc.close();})();</script>";if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,se,true);}}
if(Zd.float===10039||Zd.float===10040){ld.addEvent(md,"load",function(){var Ee=document.getElementById("adstir_float");if(Ee){var Fe=Ee.parentNode;var Ge=new AdstirSwipe(window,Fe,Ee);var He=document.getElementById(se);if(He.contentDocument){He.contentDocument.addEventListener("touchstart",Ge.touchstartFunc);He.contentDocument.addEventListener("touchmove",Ge.touchmoveFunc,{passive:false});He.contentDocument.addEventListener("touchend",Ge.touchendFunc);}}});}}
if(Zd.med&&ld.arrayContains(kd.supported_functions,"awakeNative")){var Ie=Zd.med;Ie.fallback=Zd.html;Zd.ck=false;ld.sendMessage("awakeNative",[ld.makeReload(Zd,kd),Ie]);}
else if(Zd.skadn&&ld.arrayContains(kd.supported_functions,"loadStore")){ld.sendMessage("loadStore",Zd.skadn);Yd.write(Zd,kd);}
else{Yd.write(Zd,kd);}}
if(kd.type==="interstitial"&&Zd.id==1131){var Je="as-y-"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);Zd.html="<span id=\""+Je+"\" style=\"display:inline!important;\">"+Zd.html+"</span>";if(typeof Zd.rdr==="string"&&Zd.rdr.indexOf("/rdr")>=0){var Ke=Zd.rdr.replace("/rdr","/ivw");Zd.render=Array.isArray(Zd.render)?Zd.render:[];Zd.inview=Array.isArray(Zd.inview)?Zd.inview:[];Zd.render.push(Zd.rdr);Zd.inview.push(Ke);}
if(Array.isArray(Zd.render)){Zd.render.forEach(function(Le){Zd.html+='<div style="width:0px !important; height:0px !important; background:url('+Le+')"></div>';});}
document.write(Zd.html);window.addEventListener("DOMContentLoaded",function(){var Me=document.getElementById(Je);if(Me==null){return;}
var Ne=0;var Oe=function(){if(Ne>5){return;}
Ne++;var Pe=Me.querySelectorAll("a");if(Pe.length<=0){window.setTimeout(Oe,200);return;}
window.setTimeout(function(){if(Me.querySelectorAll("a").length>0&&Array.isArray(Zd.inview)){Zd.inview.forEach(function(Ke){var Qe=document.createElement("div");Qe.setAttribute("style","width:0px!important;height:0px!important;");Qe.style.background="url('"+Ke+"')";document.body.insertBefore(Qe,document.body.firstChild);});}},1000);if(Array.isArray(Zd.afd)){for(var i=0;i<Pe.length;i++){Pe[i].addEventListener("click",function(){if(Array.isArray(Zd.afd)){Zd.afd.forEach(function(Re){var Se=document.createElement("script");Se.textContent=Re;document.body.appendChild(Se);});}});}}};Oe();});ld.InterstitialLastViewTime(Math.floor(Date.now()/1000));}
else if(kd.type==="interstitial"){var Te=ld.getInstlCloseBtnParameters(Zd,kd);if(Zd.adtype==="vast"){ld.processVASTRes(Zd,kd);}
if(Zd.adtype==="native_banner"){var qe=new MakeNativeBannerElem(Zd,kd);qe.init().makeElem();var Ue=qe.getIfid();if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,Ue,true);}}
if(Zd.id===1126){Zd.magnify=0;kd.instl_vars.loadingIconDuration=-1;try{var Ve=ld.getWindowParams();if(Ve.screenWidth!==nd&&Ve.screenHeight!==nd){Zd.w=Ve.screenWidth;Zd.h=Ve.screenHeight;}}
catch(e){}}
if(Zd.adtype=="iframe"){var se="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);Zd.html="<iframe id=\""+se+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+se+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(Zd.html))+"));doc.close();})();</script>";if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,se,true);}}
var We="adstir_web_inter";var Xe="adstir-instl-close-"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);md.adstir_instl_close_button_id=Xe;var Ye="adstir-instl-noscroll";var Ze=document.createElement("style");Ze.textContent="."+Ye+" { position: fixed; width: 100%; -webkit-overflow-scrolling: auto !important; }";document.head.appendChild(Ze);var $e="adstir-instl-hide";var af=document.createElement("style");af.textContent="."+$e+" { opacity:0 !important; }";document.head.appendChild(af);var bf=function(){var cf=document.body;var df=document.getElementById(Xe);cf.classList.add(Ye);df.style.setProperty("pointer-events","auto","important");df.addEventListener("click",function(){cf.classList.remove(Ye);var ef=document.getElementById(We);ef.style.display="none";if(af.parentNode){af.parentNode.removeChild(af);}});};var ff=kd.instl_vars&&kd.instl_vars.cntds==="5";var gf=function(hf){var jf=5;var kf=document.getElementById(hf);var lf=document.getElementById(Xe);if(kf==null){lf.style.display="inline-block";return;}
var mf=function(nf){kf.textContent=""+nf;};var of=setInterval(function(){jf--;if(jf<=0){if(of){clearInterval(of);of=null;}
kf.style.display="none";lf.style.display="inline-block";return;}
mf(jf);},1000);mf(jf);};var pf=(Zd.id===1087);var qf=(Zd.w===300&&Zd.h===600);var rf=(Zd.w===400&&Zd.h===600);var sf=(Zd.w===300&&Zd.h===500);if(pf||qf||rf||sf){Zd.magnify=0;kd.center=false;if(pf){Zd.ck=false;kd.js_check=false;}
else{var tf=document.createElement("style");tf.textContent=".adstir_web_inter__close-button-area__btn__img { --adstir-close-button-size: "+Te.buttonsize+"px; }";document.head.appendChild(tf);if(qf){var uf=document.createElement("link");uf.rel="stylesheet";uf.href="https://js.ad-stir.com/network/instl/instl_300x600.css";document.head.appendChild(uf);}
else if(rf){var uf=document.createElement("link");uf.rel="stylesheet";uf.href="https://js.ad-stir.com/network/instl/instl_400x600.css";document.head.appendChild(uf);}
else if(sf){var uf=document.createElement("link");uf.rel="stylesheet";uf.href="https://js.ad-stir.com/network/instl/instl_300x500.css";document.head.appendChild(uf);}}
if(ff){kd.instl_vars.loadingIconDuration=-1;var vf="adstir-instl-cntw-"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var wf=Te.tmaxwidth;var xf=16;var yf=16;var zf=10;var Af=zf*2+xf;var Bf="広告を閉じる";document.write("<div id=\""+We+"\">\n  <div class=\"adstir_web_inter__flex-wrapper\">\n    <div class=\"adstir_web_inter__flex-container\">\n      <div id=\"adstir_web_inter_close_button\" class=\"adstir_web_inter__close-button-area\" style=\"text-align:right;max-width:"+wf+"px; width:100%;\">\n        <button id=\""+Xe+"\" class=\"adstir_web_inter__close-button-area__btn\" style=\"display:none;\">\n          <span style=\"display:inline-block;box-sizing:border-box;height:"+Af+"px;font-size:"+xf+"px;line-height:1;padding:"+zf+"px "+yf+"px;color:#ccc;background-color:rgba(51,51,51,0.8);font-family:sans-serif;border:1px solid #ccc;\">"+Bf+"</span>\n        </button>\n        <span id=\""+vf+"\" style=\"display:inline-block;box-sizing:border-box;height:"+Af+"px;font-size:"+xf+"px;line-height:1;padding:"+zf+"px "+yf+"px;color:#ccc;background-color:rgba(51,51,51,0.8);font-family:sans-serif;border:1px solid #ccc;\"></span>\n      </div>\n      <div class=\"adstir_web_inter__ad-area\">");Yd.write(Zd,kd);document.write("\n      </div>\n    </div>\n  </div>\n</div>");gf(vf);}
else{document.write("<div id=\""+We+"\">\n  <div class=\"adstir_web_inter__flex-wrapper\">\n    <div class=\"adstir_web_inter__flex-container\">\n      <div id=\"adstir_web_inter_close_button\" class=\"adstir_web_inter__close-button-area\" style=\"text-align:"+Te.textalign+"; max-width:"+Te.tmaxwidth+"px; width:100%;\">\n        <button id=\""+Xe+"\" class=\"adstir_web_inter__close-button-area__btn\">\n          <img class=\"adstir_web_inter__close-button-area__btn__img\" src=\"https://js.ad-stir.com/network/close_bright."+(ld.supportsSVG()?"svg":"png")+"\" alt=\"close\" />\n        </button>\n      </div>\n      <div class=\"adstir_web_inter__ad-area\">");Yd.write(Zd,kd);document.write("\n      </div>\n    </div>\n  </div>\n</div>");}}
else if(ff){kd.instl_vars.loadingIconDuration=-1;var vf="adstir-instl-cntw-"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var wf=Te.tmaxwidth;var xf=16;var yf=16;var zf=10;var Af=zf*2+xf;var Bf="広告を閉じる";var Cf=Zd.id==1126;document.write("<div id=\""+We+"\" style=\"z-index:2147483647;position:fixed;background-color:rgba(40,40,40,0.9);height:100%;top:0px;width:100%;left:0px;margin:0;padding:0;\">"+'<div style="display:inline-block;width:0;height:100%;vertical-align:middle;"></div>'+("<div style=\"margin-top:"+(Cf?0:Af)+"px;position:relative;display:inline-block;width:100%;text-align:center;vertical-align:middle;\">")+("<div id=\"adstir_web_inter_close_button\" style=\"position:absolute;z-index:1000;width:100%;max-width:"+wf+"px;height:"+Af+"px;text-align:right;left:0;right:0;top:"+(Cf?0:Af*-1)+"px;margin:0 auto;padding:0;line-height:0;\">")+("<span id=\""+Xe+"\" style=\"display:none;box-sizing:border-box;height:"+Af+"px;font-size:"+xf+"px;line-height:1;padding:"+zf+"px "+yf+"px;color:#ccc;background-color:rgba(51,51,51,0.8);font-family:sans-serif;border:"+(Cf?"none":"1px solid #ccc")+";\">"+Bf+"</span>")+("<span id=\""+vf+"\" style=\"display:inline-block;box-sizing:border-box;height:"+Af+"px;font-size:"+xf+"px;line-height:1;padding:"+zf+"px "+yf+"px;color:#ccc;background-color:rgba(51,51,51,0.8);font-family:sans-serif;border:"+(Cf?"none":"1px solid #ccc")+";\"></span>")+'</div>');Yd.write(Zd,kd);document.write("</div></div>");gf(vf);}
else{var Df=function(t){document.write(t);};Df("<div id=\""+We+"\" style=\"z-index:2147483647;position:fixed;background-color:rgba(40,40,40,0.9);height:100%;top:0px;width:100%;left:0px;margin:0;padding:0;\">");Df('<div style="display:inline-block;width:0;height:100%;vertical-align:middle;"></div>');Df('<div style="position:relative;display:inline-block;width:100%;text-align:center;vertical-align:middle;">');Df('<div id="adstir_web_inter_close_button" style="position:absolute;z-index:1000;width:100%;max-width:'+Te.tmaxwidth+'px;height:'+Te.buttonsize+'px;text-align:'+Te.textalign+';left:'+Te.tside*-1+'px;right:'+Te.tside+'px;top:'+Te.ttop+'px;margin:0 auto;padding:0 0 0 '+Te.instlclosebuttonpx+'px;line-height:0;"><img style="width:'+Te.buttonsize+'px;height:'+Te.buttonsize+'px;" id="'+Xe+'" src="'+Te.timgsrc+'" /></div>');Yd.write(Zd,kd);Df('</div>');Df('</div>');}
bf();ld.InterstitialLastViewTime(Math.floor(Date.now()/1000));}
if(kd.type==="interstitialpc"){if(Zd.adtype=="iframe"){var se="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);Zd.html="<iframe id=\""+se+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+se+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(Zd.html))+"));doc.close();})();</script>";if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,se,true);}}
var Df=function(t){document.write(t);};Df('<div id="adstir_web_inter" style="z-index:100000001;position:absolute;background-color:rgba(40,40,40,0.95);height:0;width:0;top:0px;left:0px;overflow:hidden;">');Df('<img id="adstir_web_interi" style="z-index:100000004;position:absolute;top:8%;right:0%;width:0;height:0;" onclick="document.getElementById(\'adstir_web_inter\').style.display=\'none\'" src="https://js.ad-stir.com/network/close.png" />');Df('<div style="display:inline-block;width:0;height:100%;vertical-align:middle;"></div>');Df('<div style="z-index:100000003;display:inline-block;width:100%;text-align:center;vertical-align:middle;"><div id="adstir_web_inter3" style="display:inline-block;box-sizing:border-box;line-height:100%;text-align:left;overflow:hidden;"><div id="adstir_web_inter4" style="display:inline-block;">');Yd.write(Zd,kd);Df('</div></div>');Df('</div>');Df("<script>\n(function(){\nvar aE = function(target,event,callback){\n\tif(target.addEventListener){\n\t\ttarget.addEventListener(event,callback,false);\n\t}else if(target.attachEvent){\n\t\ttarget.attachEvent(\"on\" + event,callback);\n\t}\n};\nvar stop = function(){return window.scrollY || document.documentElement.scrollTop || document.body.scrollTop};\nvar slef = function(){return window.scrollX || document.documentElement.scrollLeft || document.body.scrollLeft;};\nvar wi = document.getElementById(\"adstir_web_inter\");\nvar wii = document.getElementById(\"adstir_web_interi\");\nvar wi3 = document.getElementById(\"adstir_web_inter3\");\nvar wi4 = document.getElementById(\"adstir_web_inter4\");\nvar magnify = function(){\n\tvar iw = window.innerWidth;\n\tvar ih = window.innerHeight;\n\tvar zv = ((iw/350)>(ih/300)?(ih/300):(iw/350));\n\twi.style.top=stop()+\"px\";\n\twi.style.left=slef()+\"px\";\n\twi.style.height=(ih*1.15)+\"px\";\n\twi.style.width=iw+\"px\";\n\twii.style.width=zv*50+\"px\";\n\twii.style.height=zv*50+\"px\";\n\twi4.style.transformOrigin = \"0% 0%\";\n\twi4.style.webkitTransformOrigin = \"0% 0%\";\n\twi4.style.mozTransformOrigin = \"0% 0%\";\n\twi4.style.transform = \"scale(\" + zv + \")\";\n\twi4.style.webkitTransform = \"scale(\" + zv + \")\";\n\twi4.style.mozTransform = \"scale(\" + zv + \")\";\n\tvar checkTransform = (function (){\n\tvar css = getComputedStyle(wi4, \"\");\n\tvar list = [css.transform,css.webkitTransform,css.WebkitTransform,css.mozTransform,css.MozTransform];\n\tfor (var i = 0; i < list.length ; i++){\n\tif(list[i] && list[i].indexOf(\"scale\") >= 0) return true;\n\tif(list[i] && list[i].indexOf(\"matrix\") >= 0) return true;\n\t}\n\treturn false;\n\t})();\n\n\twi3.style.height = zv * 250 + \"px\";\n\twi3.style.width = zv * 300 + \"px\";\n}\nvar stp = function(e){if(document.getElementById('adstir_web_inter').style.display!=='none'){if(e.preventDefault)e.preventDefault();e.returnValue=false;}};\ndocument.getElementById('adstir_web_inter').style.display='block';\nmagnify();\naE(window, \"scroll\", magnify);\naE(window, \"resize\", magnify);\naE(window, \"orientationchange\", magnify);\naE(wi, \"DOMMouseScroll\", stp);\naE(wi, \"mousewheel\", stp);\naE(wi, \"touchmove\", stp);\naE(wi, \"gesturestart\", stp);\n})()\n</script>\n");}
if(kd.type==="native"){var Ef=new MakeNativeElem(Zd,kd,ld.inview_recursive_check_flag);Ef.init().makeElem();}
var Ff=kd.fill_callback;if(typeof Ff==="function"){Ff();}
if(kd.floating)Yd.overlay(Zd,kd);var Gf=function(){if(kd.floating_pc)Yd.overlayPC(Zd,kd);if(!kd.floating)Yd.loadedEnd(Zd,kd);};if(Xd){Gf();}
else{ld.addEvent(md,"load",Gf);}
ld.appendBypassAoneSyncTag();}
else{var Hf=kd.nofill_callback;if(typeof Hf==="function"){Hf();}}});}
AdstirNext.prototype.sendMessage=function(If,Jf){var Kf=window;if(Kf.adstir_mraid_connector){Kf.adstir_mraid_connector.sendMessage(If,Jf);}};AdstirNext.prototype.getLocation=function(){var Lf=window;var Mf=undefined;try{var Nf=Lf;while(Nf.parent&&Nf.parent!==Nf){Nf=Nf.parent;if(Nf.location.protocol){Mf=Nf.location;}
else{break;}}}
catch(e){}
if(Mf===undefined)Mf=Lf.location;return Mf;};AdstirNext.prototype.getLocale=function(){var Of=void 0;var Pf="en";var Qf=window.navigator;if(Qf.userLanguage!==Of){Pf=Qf.userLanguage;}
else if(Qf.browserLanguage!==Of){Pf=Qf.browserLanguage;}
else if(Qf.systemLanguage!==Of){Pf=Qf.systemLanguage;}
else if(Qf.language!==Of){var Rf=Qf.language;if(Rf==="en"){var Sf=(function(){var ua=Qf.userAgent;if(ua===Of)return null;var Tf=ua.indexOf("(");var Uf=ua.indexOf(")");if(Tf===-1||Uf===-1)return null;var Vf=ua.substring(Tf+1,Uf).split(";");if(Vf.length<4)return null;var Wf=Vf[3].replace(/(^\s+)|(\s+$)/g,"");if(Wf.length===2||(Wf.length===5&&Wf.charAt(2)==="-")){return Wf;}
return null;})();Pf=(Sf||Rf);}
else{Pf=Rf;}}
if(Pf.length===2){return Pf;}
else if(Pf.length===5&&Pf.charAt(2)==="-"){return Pf.substring(0,2);}
else{return Pf;}};AdstirNext.prototype.getOrigin=function(){var Xf;var Yf=true;try{if(window.top.location.href!==undefined){Xf=window.top.location.href;}
else{var Zf=window.top;var $f=window;while($f.parent){if($f.parent.location.href!==undefined){$f=$f.parent;continue;}
break;}
Xf=$f.document.referrer;if($f.parent!=Zf){Yf=false;}}}
catch(e1){var Zf=window.top;var $f=window;try{while($f.parent){var ag=$f.parent.location.href;$f=$f.parent;}}
catch(e){Xf=$f.document.referrer;if($f.parent!=Zf){Yf=false;}}}
if(!Xf){var bg=window.location.ancestorOrigins;if(bg&&bg.length>0){Xf=bg[bg.length-1];}}
return{url:Xf,isTop:Yf};};AdstirNext.prototype.getReferrer=function(){var cg=void 0;try{if(window!==window.parent){if(window.$sf!==cg){return cg;}
else{return window.top.document.referrer;}}
else{return document.referrer;}}
catch(e){return cg;}};AdstirNext.prototype.getParam=function(dg){var eg=void 0;var fg={};fg.app_id=dg.app_id;fg.ad_spot_no=dg.ad_spot;fg.locale=(dg.debug&&dg.debug.locale&&this.getLocale()=="en"?dg.debug.locale:this.getLocale());fg.ut=+(new Date())+Math.round(Math.random()*100);fg.topframe=((window.top==window.self&&dg.iframe==eg)?"1":"0");fg.platform=dg.platform;if(dg.platform!==eg)fg.platform=dg.platform;if(dg.uid!==eg)fg.uid=dg.uid;if(dg.id!==eg)fg.id=dg.id;if(dg.origin!==eg)fg.origin=dg.origin;if(dg.interval!==eg)fg.interval=dg.interval;if(dg.click_url!==eg)fg.click_url=dg.click_url;if(dg.floating)fg.floating="1";if(dg.iframe!==eg)fg.iframe="1";if(dg.disable_mf===true)fg.disable_mf="1";if(dg.async!==eg&&dg.async)fg.async="1";if(dg.sdk_vendor!==eg&&dg.sdk_version!==eg){fg.sdk_vendor=dg.sdk_vendor;fg.sdk_version=dg.sdk_version;if(dg.mraid_type!==eg){fg.mraid_type=dg.mraid_type;fg.mraid_sdk_vendor=dg.sdk_vendor;fg.mraid_sdk_version=dg.sdk_version;}}
if(dg.force_group!==eg)fg.force_group=dg.force_group;if(dg.force_network!==eg)fg.force_network=dg.force_network;if(dg.exclude_network!==eg)fg.exclude_network=dg.exclude_network;if(dg.delete_log_network!==eg)fg.delete_log_network=dg.delete_log_network;if(dg.video_support!==eg)fg.video_support=dg.video_support;if(dg.ifv!==eg)fg.ifv=dg.ifv;if(dg.attributes!==eg&&dg.attributes.osv!==eg)fg.osv=dg.attributes.osv;if(dg.attributes!==eg&&dg.attributes.model!==eg)fg.model=dg.attributes.model;if(dg.attributes!==eg&&dg.attributes.mnc!==eg)fg.mnc=dg.attributes.mnc;if(dg.attributes!==eg&&dg.attributes.mcc!==eg)fg.mcc=dg.attributes.mcc;if(dg.attributes!==eg&&dg.attributes.connt!==eg)fg.connt=dg.attributes.connt;if(dg.os_version!==eg)fg.osv=dg.os_version;try{if(window.adstir_sua!==void 0)fg.sua=JSON.stringify(window.adstir_sua);}
catch(e){}
try{var gg=window.adstir_topics;if(Array.isArray(gg)&&gg.length>0){var hg=function(ig){return ig.map(function(jg){return{topic:jg.topic,version:jg.version};});};fg.tpcs=JSON.stringify(hg(gg));}}
catch(e){}
try{var kg=window.top.location.href;}
catch(e){fg.cof="1";}
if(dg.use_sdk_ivw)fg.use_sdk_ivw="1";if(dg.use_api_only)fg.use_api_only="1";if(dg.force_layer==="tl"&&dg.force_group===eg)fg.force_group=1;if(dg.force_layer==="ul"&&dg.exclude_network===eg)fg.exclude_network="27,61";if(dg.instl)fg.instl="1";if(dg.fs)fg.fs="1";if(dg.orientation!==eg)fg.orientation=dg.orientation;if(dg.type==="interstitial"){fg.pos=1;}
if(dg.floating===true){fg.pos=1;}
if(dg.initiator==="hbov"){var lg=false;try{if(window.top.location.href){lg=true;}}
catch(e){}
if(lg){fg.pos=1;fg.topframe=1;}}
if(dg.type==="native"){if(typeof(dg.native_callback)==="function")fg.nacb="1";else if(typeof(dg.native_html)==="string")fg.naht="1";else fg.nocb="1";}
if(dg.native_vars!==eg){var mg=function(ng,og){return(ng?ng:og);};var nv=dg.native_vars;if(nv.sponsoredText!==eg)fg.native_pr_text=nv.sponsoredText;if(nv.title!==eg)fg.native_title_l=mg(nv.title.length,10000);if(nv.description!==eg)fg.native_desc_l=mg(nv.description.length,10000);if(nv.cta!==eg)fg.native_cta_l=mg(nv.cta.length,10000);if(nv.image!==eg&&nv.image===true)fg.native_img=1;if(nv.icon!==eg&&nv.icon===true)fg.native_icon=1;if(nv.rating!==eg&&nv.rating===true)fg.native_rate=1;if(nv.landingPageUrl!==eg&&nv.landingPageUrl===true)fg.native_lp=1;}
if(dg.secure)fg.secure="1";try{var pg=this.getWindowParams();if(pg.screenWidth!==eg)fg.sw=pg.screenWidth;if(pg.screenHeight!==eg)fg.sh=pg.screenHeight;if(pg.pixelRatio!==eg)fg.dpr=pg.pixelRatio;}
catch(e){}
if((dg.dnt!==eg&&dg.dnt)||(dg.lmt!==eg&&dg.lmt))fg.lmt="1";if(dg.att_as!==eg)fg.att_as=dg.att_as;var qg=(dg.floating&&this.isLandscape())?"1":"0";if(dg.org_type==="video"){if(window.top!=window.self){qg="1";}}
fg.novideo=qg;if(dg.platform!=="webview"){var rg=this.getOrigin();fg.topurl=rg.isTop?1:0;fg.origin=rg.url;}
if(dg.page!==eg){if(/https?:\/\/[\w/:%#\$&\?\(\)~\.=\+\-]+/.test(dg.page)){fg.page=dg.page;}}
if(dg.sknid!==eg){fg.sknid=dg.sknid;if(dg.skversion!==eg){fg.skversion=dg.skversion;}}
var sg=this.isStorageAvailable();var tg=this.getAdstirMediaUid(sg);if(tg!==null){fg.adstir_media_uid=tg;}
var ug=this.getHainaFrequency(sg);if(ug!==null){fg.haina_fq=ug;}
fg.adstir_optout=this.getAdstirOptout(sg);if(this.supportsVAST(dg)){fg.c_vp=1;}
if(typeof dg.schain_serialized==="string"&&dg.schain_serialized!==""){try{var vg=AdstirSchain.deserializeSchain(dg.schain_serialized);fg.sco=AdstirSchain.serializeSchain(vg);}
catch(e){if(dg.debug){console.error(e);}}}
else if(AdstirSchain.isSupplyChain(dg.schain)){try{fg.sco=AdstirSchain.serializeSchain(dg.schain);}
catch(e){if(dg.debug){console.error(e);}}}
return fg;};AdstirNext.prototype.makeSync=function(){var wg=this;var xg=window;var yg="AdstirCB"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var zg=false;var Ag=0;var Bg=[];var Cg="adstir-ad-slot-"+(Math.floor(Math.random()*100000000)).toString()+'A'+(Math.floor(Math.random()*100000000)).toString();var Dg=function(Eg,Fg,Gg){var Hg=Array.isArray(Eg.ileffect)&&Eg.ileffect.some(function(Ig){return Ig=="ifb"||Ig=="ifbm";})&&(window.top!=window.self);if(Fg.type==="html"&&(Eg.adtype==="html"||Eg.adtype==="iframe"||Eg.adtype==="vast")&&(Eg.w===400&&Eg.h===600&&!Hg)&&window.innerWidth<Eg.w){Eg.magnify=1;}
else if(Hg){Eg.magnify=0;}
var Jg=Fg.center;var Kg=Eg.magnify>=1||Fg.force_magnify;var Lg=Array.isArray(Eg.ileffect)&&Eg.ileffect.some(function(Mg){return Mg=="close";});if(Lg&&(window.top!=window.self)){Kg=false;}
var Jg=Fg.center||Kg;var Ng=(Eg.ileffect&&typeof(Eg.ileffect.length)==="number"?true:false);var Og=(Eg.afd!==undefined&&typeof Eg.afd==='object'&&Eg.afd.length>0);if(Kg){var t='';t=t+'<div style="text-align:center;"><div class="adstir_magnify" style="box-sizing:border-box;line-height:100%;text-align:left;"><div style="display:inline-block;">';t=t+Gg;t=t+'</div></div></div>';wg.addJS(wg.URL.magnify);Gg=t;}
if(typeof Eg.rdr==="string"&&Eg.rdr.indexOf("/rdr")>=0){var Pg=Eg.rdr.replace("/rdr","/ivw");Eg.render=Array.isArray(Eg.render)?Eg.render:[];Eg.inview=Array.isArray(Eg.inview)?Eg.inview:[];Eg.render.push(Eg.rdr);Eg.inview.push(Pg);}
if(Eg.render&&typeof Eg.render==='object'&&Eg.render.length>0){for(var i=0;i<Eg.render.length;i++){Gg+='<div style="width:0px !important; height:0px !important; background:url('+Eg.render[i]+')"></div>';};}
if(Eg.adtype!=="native_banner"&&Eg.inview&&typeof Eg.inview==='object'&&Eg.inview.length>0){var Qg="adstir_inview_"+(Math.floor(Math.random()*100000000)).toString()+'A'+(Math.floor(Math.random()*100000000)).toString();if(Og&&Eg.adtype&&Eg.adtype!=="iframe"){Gg='<div id="'+Qg+'" '+'class="'+Cg+'" '+(Kg?'':'style="display:inline-block;vertical-align:bottom;"')+'>'+Gg+'</div>';}
else{Gg='<div id="'+Qg+'" '+(Kg?'':'style="display:inline-block;vertical-align:bottom;"')+'>'+Gg+'</div>';}
if(!Fg.use_sdk_ivw){wg.addEvent(xg,"DOMContentLoaded",function(){if(Fg.instl_vars&&Fg.instl_vars.loadingIconDuration&&parseInt(Fg.instl_vars.loadingIconDuration)>=100&&parseInt(Fg.instl_vars.loadingIconDuration)<=1000){var Rg=document.getElementById('adstir_instl_loading_container');var Sg=new MutationObserver(function(Tg,ob){Tg.forEach(function(Ug){if(Ug.type==="attributes"&&Ug.attributeName==="style"){var Vg=document.getElementById(Qg);if(Vg){AdstirIvw.measureVimp(Vg,function(){AdstirIvw.sendIvw(Eg.inview);});}}});ob.disconnect();});var Wg={attributes:true,attributeFilter:["style"]};if(Rg){Sg.observe(Rg,Wg);}}
else{var Xg=document.getElementById(Qg);if(Xg){AdstirIvw.measureVimp(Xg,function(){AdstirIvw.sendIvw(Eg.inview);});}}});}
if(Og&&Eg.adtype&&Eg.adtype!=="iframe"&&Eg.adtype!=="native_banner"){wg.attachAfdClickEvent(Eg.afd,Cg,false);}}
if(Ng){var Yg=Eg.ileffect.indexOf("fadein");var Zg=Eg.ileffect.indexOf("scrollsticky");if(Yg!==-1&&Zg!==-1&&Yg>Zg){Eg.ileffect[Zg]="fadein";Eg.ileffect[Yg]="scrollsticky";}
for(var ei=0;ei<Eg.ileffect.length;ei++){var $g=Eg.ileffect[ei];var ah="";if(Eg.rattr&&Eg.rattr.ileffect_param){ah="AdstirILeffectParam"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);window[ah]=Eg.rattr.ileffect_param;}
var bh="";if($g==="wipead"||$g==="wipead2"){if(Kg||Eg.ileffect.length>1||xg.adstir_wipead_e||document.getElementById("adstir_wipead")!=null){continue;}
xg.adstir_wipead_e=true;bh=' style="visibility: hidden;"';}
else if($g==="scrollsticky"){var ua=navigator.userAgent;var ch=ua.match(/Chrome\/(\d+)\./);if(!(/Android/.test(ua)&&ch&&ch.length===2&&parseInt(ch[1])>=74)||Kg){continue;}}
var dh='';if($g==="ifbm"){$g="ifb";dh=' data-ifbm="1"';}
if($g==="ifb"&&Lg){continue;}
if($g==="close"){if(Eg.magnify===1){dh=' data-ilcm="1"';}
Eg.magnify=0;}
var eh=" data-w=\""+Eg.w+"px\"";var fh=" data-h=\""+Eg.h+"px\"";if(Eg.id===1087){eh=' data-w="300px"';fh=' data-h="600px"';}
if(Eg.nntmpl_disp_w){eh=" data-w=\""+Eg.nntmpl_disp_w+"\"";}
if(Eg.nntmpl_disp_h){fh=" data-h=\""+Eg.nntmpl_disp_h+"\"";}
var gh="AdstirILEffect"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var t="";t=t+'<div id="'+gh+'" class="adstir_inline_effect_'+$g+'" data-adstir-inline-effect="'+ah+'"'+bh+eh+fh+dh+'>';if($g==="scrollsticky"){t=t+'<div style="position:relative;height:'+Eg.h+'px;">';t=t+'<div id="adstir_scroll_sticky" style="position:absolute;inset:0;clip-path:inset(0px);">';if(!Kg&&Jg){t=t+'<div id="adstir_scroll_sticky_pos" style="margin:0;padding:0;left:0;right:0;">';}
else{t=t+'<div id="adstir_scroll_sticky_pos" style="margin:0;padding:0;">';}
t=t+Gg;t=t+'</div></div></div></div>';}
else{t=t+'<div>';t=t+Gg;t=t+'</div></div>';}
Gg=t;var hh=wg.URL.ileffect.replace(/%%NUMBER%%/,$g+"");var jh=document.createElement("script");jh.src=hh;if($g==="scroll2"||$g==="scroll4"){if(!window['AdstirILEffectTargets']){window['AdstirILEffectTargets']=[];}
window['AdstirILEffectTargets'].push({k:gh,v:false,m:Fg.app_id});jh.defer=true;}
if($g==="scrollgroup1"||$g==="scrollgroup2"||$g==="scrollgroup3"){if(!window['AdstirILEffectTargetGroups']){window['AdstirILEffectTargetGroups']=[];}
window['AdstirILEffectTargetGroups'].push({k:gh,v:false,m:Fg.app_id,e:$g});jh.defer=true;}
document.head.appendChild(jh);}}
if(!Kg&&Jg){var t="";t=t+'<div style="line-height:100%;text-align:center;">';t=t+Gg;t=t+'</div>';Gg=t;}
return Gg;};var kh=function(lh,mh){var nh=(mh.sdk_vendor==="adstir"&&mh.sdk_version?parseInt(mh.sdk_version):0);return lh.ck&&nh>=20000;};var oh=function(ph,qh,rh){if(rh===void 0){rh={};}
if(Ag!=0){clearTimeout(Ag);Ag=0;}
wg.rmJsCk();if(kh(ph,qh)){wg.sendMessage("reload",[wg.makeReload(ph,qh,rh)]);return;}
var th=document.getElementById(yg+"DELETE");if(th==null){return;}
var id=ph.id;var uh=ph.gid;var vh=ph.fgid;xg.adstir_wipead_e=false;var wh=function(xh){if(xh==undefined)return;if(xh.w==undefined||xh.h==undefined){return;}
if(xh.id===1126){xh.magnify=0;try{var yh=wg.getWindowParams();if(yh.screenWidth!==undefined&&yh.screenHeight!==undefined){xh.w=yh.screenWidth;xh.h=yh.screenHeight;}}
catch(e){}}
var zh=xh.w+'px';var Ah=xh.h+'px';if(typeof xh.html=="string"){xh.html=xh.html.replace(/%%TID%%/g,wg.tid);xh.html=xh.html.replace(/%%NCK%%/g,qh.floating?"1":"0");}
if(qh.in_own_if){var p=window.frameElement;if(p!==null){p.style.width=xh.w+"px";p.style.height=xh.h+"px";if(xh.adtype==="native_banner"){if(xh.nntmpl_disp_w){p.style.width=xh.nntmpl_disp_w;}
if(xh.nntmpl_disp_h){p.style.height=xh.nntmpl_disp_h;}}}}
var Bh=""+xh.w;var Ch=null;if(xh.adtype==="native_banner"){if(xh.nntmpl_disp_w&&xh.nntmpl_disp_h){zh=xh.nntmpl_disp_w;Ah=xh.nntmpl_disp_h;Bh='device-width';if(xh.nntmpl_disp_w.indexOf("px")!==-1){var Dh=xh.nntmpl_disp_w.replace("px","");if(!isNaN(parseInt(Dh))){Bh=Dh;}}}
var Eh=new MakeNativeBannerElem(xh,qh);Eh.init().makeElem();var Fh=Eh.getIfid();if(xh.afd!==undefined&&typeof xh.afd==='object'&&xh.afd.length>0){Ch=function(Gh){var Hh=Gh.contentDocument||Gh.contentWindow.document;if(!Hh){return;}
var Ih=Hh.getElementById(Fh);if(Ih==null){return;}
wg.addEvent(Ih,"load",function(){wg.addEvent(Ih.contentWindow.document.body,"click",function(){for(var i=0;i<xh.afd.length;i++){var Jh=document.createElement("script");Jh.text=xh.afd[i];Ih.contentWindow.document.body.appendChild(Jh);}});});};}}
if(xg.adstir_instl_close_button_id){var Kh=document.getElementById(xg.adstir_instl_close_button_id);if(Kh){var Lh=Kh.parentElement;var Mh=Lh.getAttribute("style");if(Mh){var Nh="left";var Oh=Mh.match(/text-align:(.*?);/);if(Oh&&Oh.length>1){Nh=Oh[1];}
if(xh.rattr&&xh.rattr.adstir_vars&&xh.rattr.adstir_vars.instl_vars){if(!qh.instl_vars)qh.instl_vars={};for(var Ph in xh.rattr.adstir_vars.instl_vars){qh.instl_vars[Ph]=xh.rattr.adstir_vars.instl_vars[Ph];}}
var Qh=wg.getInstlCloseBtnParameters(xh,qh);Mh=Mh.replace(/max-width:.*?px;/,"max-width:"+Qh.tmaxwidth.toString()+"px;");Mh=Mh.replace(/text-align:.*?;/,"text-align:"+Qh.textalign+";");Mh=Mh.replace(/height:.*?px;/,"height:"+Qh.buttonsize.toString()+"px;");Mh=Mh.replace(/padding:0 0 0 .*?px;/,"padding:0 0 0 "+Qh.instlclosebuttonpx.toString()+"px;");Mh=Mh.replace(/left:.*?px;/,"left:"+(Qh.tside*-1).toString()+"px;");Mh=Mh.replace(/right:.*?px;/,"right:"+Qh.tside.toString()+"px;");Mh=Mh.replace(/top:.*?px;/,"top:"+Qh.ttop.toString()+"px;");Lh.setAttribute("style",Mh);Kh.setAttribute("style","width:"+Qh.buttonsize+"px;height:"+Qh.buttonsize+"px;");Kh.setAttribute("src",Qh.timgsrc);}}}
while(th.childNodes.length>0)th.removeChild(th.childNodes[0]);var Rh=xg.document.createElement("div");var Sh='<span id="'+yg+'RE" style="width:'+zh+';height:'+Ah+';display:inline-block;vertical-align:bottom;">';Rh.id=yg+"DELETE";Rh.innerHTML=Dg(xh,qh,Sh);th.parentNode.insertBefore(Rh,th);th.parentNode.removeChild(th);setTimeout(function(){var Th=document.getElementById(yg+"RE");if(xh.adtype==="vast"){wg.processVASTResAfterCK(xh,qh,Th);return;}
var Uh=xg.document.createElement("iframe");Uh.srcdoc="<html/>";Uh.style.height=Ah;Uh.style.width=zh;Uh.style.border="none";Uh.style.verticalAlign="bottom";Uh.scrolling="no";Uh.setAttribute("frameBorder","0");Uh.setAttribute("allowTransparency","true");Th.appendChild(Uh);if(xh.secure_frame&&Uh.sandbox instanceof DOMTokenList){Uh.setAttribute("sandbox","allow-forms allow-popups allow-scripts allow-top-navigation-by-user-activation allow-popups-to-escape-sandbox allow-same-origin");Uh.src=wg.URL.secureFrameHtml+"#"+encodeURIComponent(xh.html);}
else{var d=Uh.contentWindow.document;if(xh.ck&&!kh(xh,qh)){Ag=setTimeout(function(){if(d.defaultView!=null&&d.documentElement.getBoundingClientRect().height<30){oh(xh,qh);}},4000);wg.addJsCk(function(rh){oh(xh,qh,rh);});}
d.open();var Vh='<!doctype html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width='+Bh+',initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"></head><style>html{background-color:transparent;margin:0;padding:0;}body{background-color:transparent;margin:0;padding:0;}</style><body>'+(xh.friendly_iframe?'<script>inDapIF=true;</script>':'')+xh.html+'</body></html>';d.write(Vh);d.close();if(Ch!=null){Ch(Uh);}}},10);};xg[yg]=function(Wh){if(typeof(Wh)!=="undefined"&&Wh.adtype==="native_banner"){var Xh=document.createElement("iframe");Xh.width="0";Xh.height="0";Xh.style.display="none";document.body.appendChild(Xh);Xh.contentWindow["adstir_network_templates"]=function(Yh){qh.native_html=Yh;wh(Wh);};var s=document.createElement("script");s.src="https:"+wg.URL.nativeNetworkTemplate+Wh.nntmplid+".js";Xh.contentWindow.document.body.appendChild(s);}
else{wh(Wh);}};var Zh=wg.getParam(qh);Zh.iframe='1';Zh.topframe='0';Zh.callback=yg;Zh.force_group=vh;Bg.push(id);Zh.exclude_network=Bg.join(",");Zh.delete_log_network=typeof rh.dln=="string"?rh.dln:uh+','+id;var $h=wg.makeUrl(wg.URL.adtag,Zh);var ai=document.createElement("script");ai.src=$h;document.body.appendChild(ai);};var bi=document.createElement("div");bi.id=this.tid;bi.style.setProperty("display","none","important");(document.body||document.head||document.documentElement).appendChild(bi);return{prewrite:function(ci){},connect:function(di,fi,gi,hi){if(typeof di.exclude_network=="string"){Bg=di.exclude_network.split(",");}
if(di.type=="interstitial"){Bg.push(1087);di.disable_mf=true;}
var ii=function(ji){if(ji!=null){wg.addJsCk(function(ki){zg=true;oh(ji,di,ki);});}
if(typeof(ji)!=="undefined"&&di.in_own_if){var p=window.frameElement;if(p!==null){p.style.width=ji.w+"px";p.style.height=ji.h+"px";if(ji.adtype==="native_banner"){if(ji.nntmpl_disp_w){p.style.width=ji.nntmpl_disp_w;}
if(ji.nntmpl_disp_h){p.style.height=ji.nntmpl_disp_h;}}}}
if(typeof(ji)!=="undefined"&&typeof(ji.ntempid)==="number"){xg.adstir_native_templates=function(li){di.native_html=li;hi(ji);};document.write("<script src=\"https:"+wg.URL.nativeTemplate+ji.ntempid+".js"+"\"></script>");}
else if(typeof(ji)!=="undefined"&&ji.adtype==="native_banner"){if(typeof(ji.nntmplid)!=="undefined"&&ji.nntmplid.length>0){xg.adstir_network_templates=function(mi){di.native_html=mi;hi(ji);};document.write("<script src=\"https:"+wg.URL.nativeNetworkTemplate+ji.nntmplid+".js"+"\"></script>");}}
else{hi(ji);}};if(AdstirNext.RTUS){var ni="adstir_crid";xg.AdstirCallbackCRTID=function(oi){if(oi.status==="OK"){document.cookie=ni+'='+encodeURIComponent(oi.userid)+';'+'max-age='+60*15;}};var st=document.cookie.indexOf(ni+"=");if(st!=-1){st=st+ni.length+1;var ed=document.cookie.indexOf(";",st);if(ed==-1)ed=document.cookie.length;gi.crtid=decodeURIComponent(document.cookie.substring(st,ed));}
var pi="https://rtus-js.ad-stir.com/js/rtus.js?rtuscb=AdstirCallbackCRTID";var qi=AdstirNext.structScriptTag(pi);if(qi instanceof HTMLScriptElement){qi.async=true;document.getElementsByTagName("head")[0].appendChild(qi);}}
if(di.type==="interstitial"){gi.instl_first_view=wg.InterstitialIsFirstView()?'1':'0';gi.instl_mismatch_referrer=wg.InterstitialIsMismatchReferrer()?'1':'0';gi.instl_access_count=wg.InterstitialAccessCount();gi.instl_last_view_time=wg.InterstitialLastViewTime();}
gi.media_fq_count=wg.MediaAccessCount();wg.MediaLastViewTime(Math.floor(Date.now()/1000));var ri=wg.processIMUID();if(ri!==null)gi.imuid=ri;gi.callback=yg;xg[gi.callback]=ii;if(typeof di.intercept_req==="function"){di.intercept_req(wg.makeUrl(fi,gi));}
else{document.write("<script src=\""+wg.makeUrl(fi,gi)+"\"></script>");}},write:function(si,ti){var ui=si.float>=1||ti.force_floating;var vi=si.magnify>=1||ti.force_magnify;var wi=ti.center||vi;var xi=(ti.sdk_vendor==="adstir"&&ti.sdk_version?parseInt(ti.sdk_version):0);var yi=si.w;var zi=si.h;var Ai=si.ck;var Bi=si.html;var Ci=(si.afd!==undefined&&typeof si.afd==='object'&&si.afd.length>0);if(!ui&&!ti.floating){if(ti.js_check!=false&&xi<20000&&Ai){var t='<span style="width:'+yi+'px;height:'+zi+'px;display:inline-block;vertical-align:text-bottom;text-align:left;overflow:hidden;">';t=t+'<span id="'+yg+'" style="display:inline-block;vertical-align:bottom;">';t=t+Bi;t=t+'</span>';t=t+'</span>';Bi=t;}
Bi=Dg(si,ti,Bi);if(ti.js_check!=false&&xi<20000&&Ai){t='<'+(wi?'div style="display:block"':'span style="display:inline-block"')+' id="'+yg+'DELETE">';t=t+Bi;t=t+'</'+(wi?"div":'span')+'>';Bi=t;}}
if(ui){var Di=ti.org_type==='wipe'?"adstir_wipead":"adstir_float";var t="";t=t+'<div style="text-align:left;"><div style="position:absolute;top:-10000px;">';t=t+'<div '+(Ci?'class="'+Cg+'" ':'')+'style="line-height:100%;'+(wi?'text-align:center;':'')+((si.nntmpl_disp_w&&si.nntmpl_disp_h)?'width:'+si.nntmpl_disp_w+';':'')+'" id="'+Di+'">';t=t+Bi;t=t+'</div>';t=t+'</div></div>';Bi=t;if(Ci&&si.adtype&&si.adtype!=="iframe"&&si.adtype!=="native_banner"){wg.attachAfdClickEvent(si.afd,Cg,false);}}
if(ti.instl_vars&&ti.instl_vars.loadingIconDuration){var Ei=parseInt(ti.instl_vars.loadingIconDuration);if(Ei>=100&&Ei<=1000){Bi='<img id="adstir_instl_loading_gif" style="position:fixed; top:50%; left:50%" src="https://js.ad-stir.com/network/loading.gif"><div id="adstir_instl_loading_container" style="visibility: hidden;">'+Bi+'</div>';window.addEventListener("DOMContentLoaded",function(){var Fi=document.getElementById("adstir_web_inter_close_button");if(Fi!=null){var Gi=Fi.clientHeight;var Hi="adstir_instl_loading_close_button";var Ii=document.createElement("style");Ii.textContent="."+Hi+" { position: fixed !important; top: calc(50% - "+Gi+"px) !important; }";document.head.appendChild(Ii);Fi.classList.add(Hi);}
setTimeout(function(){var Ji=document.getElementById("adstir_instl_loading_gif");if(Ji!=null){Ji.style.display="none";}
var Ki=document.getElementById("adstir_instl_loading_container");if(Ki!=null){Ki.style.visibility="visible";}
var Fi=document.getElementById("adstir_web_inter_close_button");if(Fi!=null){Fi.classList.remove("adstir_instl_loading_close_button");}},Ei);});}}
if(ti.org_type==="side"&&typeof ti.side_id==="string"){var Li=document.getElementById(ti.side_id);if(Li!=null){Li.setAttribute("style","display:block;position:fixed;transition:1s ease;transition-property:top,left,right,opacity,display,transform;transition-behavior:allow-discrete;z-index:2147483647;");var Mi=Li.style;var Ni=Li.dataset.pagetopClass||"";var Oi=function(){if(Ni!==""){if(window.scrollY==0){Li.classList.add(Ni);}
else{Li.classList.remove(Ni);}}};window.addEventListener("scroll",Oi);window.addEventListener("resize",Oi);Oi();document.write(Bi);var Pi=document.createElement("button");Pi.setAttribute("style","box-sizing:border-box;background-color:#fff;border:1px solid #666;border-top:none;box-shadow:1px 2px 3px #aaa;border-radius:0 0 7px 7px;padding:0;width:50px;height:22px;line-height:1;");Pi.innerHTML='<svg style="height:100%;vertical-align:bottom;" viewbox="0 0 50 50"><g stroke="#666" stroke-width="5"><line x1="5" y1="5" x2="45" y2="45"/><line x1="5" y1="45" x2="45" y2="5"/></g></svg>';Pi.addEventListener("click",function(){window.removeEventListener("scroll",Oi);window.removeEventListener("resize",Oi);Mi.transform="translateY(-100px)";Mi.opacity="0";Mi.display="none";});var Qi=document.createElement("div");Qi.setAttribute("style","text-align:center");Qi.appendChild(Pi);Li.appendChild(Qi);return;}}
document.write(Bi);},overlay:function(Ri,Si){var Ti=void 0;var Ui=Ri.float>=1||Si.force_floating;if(Ui){var Vi=function(){if(Si.org_type==='wipe'){var Wi=document.getElementById("adstir_wipead");if(Si.wipead_vars!==Ti){var Xi=JSON.stringify(Si.wipead_vars);Wi.setAttribute("data-set-wipead",Xi);}}
else{xg.adstir_float=document.getElementById("adstir_float");if(Si.flags!==Ti){var Yi=JSON.stringify(Si.flags);xg.adstir_float.setAttribute("data-flags",Yi);}
if(Si.line_vars!==Ti){var Yi=JSON.stringify(Si.line_vars);xg.adstir_float.setAttribute("data-set",Yi);}
if(Si.down_vars!==Ti){var Yi=JSON.stringify(Si.down_vars);xg.adstir_float.setAttribute("data-set2",Yi);}
if(Si.expand_vars!==Ti){var Yi=JSON.stringify(Si.expand_vars);xg.adstir_float.setAttribute("data-set3",Yi);}
if(Si.close_vars!==Ti){var Zi=JSON.stringify(Si.close_vars);xg.adstir_float.setAttribute("data-set-close",Zi);}
if(Si.shake_vars!==Ti){var $i=JSON.stringify(Si.shake_vars);xg.adstir_float.setAttribute("data-set-shake",$i);}
if(Si.commons!==Ti){var Yi=JSON.stringify(Si.commons);xg.adstir_float.setAttribute("data-set-commons",Yi);}}};var aj=wg.URL.float.replace(/%%NUMBER%%/,Ri.float+"");if((document.getElementById("adstir_float")&&aj.indexOf("_10")>0)||(document.getElementById("adstir_wipead")&&aj.indexOf("_11")>0)){Vi();wg.writeJS(aj);}
else{if(document.readyState==="complete"){Vi();wg.addJS(aj);}
else{wg.addEvent(window,"load",function(){Vi();wg.addJS(aj);});}}
if(Si.floating==true&&Ri.overlay_refresh_limit!==Ti&&Ri.overlay_refresh_time!==Ti){wg.overlayRefresh(Ri,Si,yg,0,function(bj){if(bj==Ti)return;var cj=Si.org_type==='wipe'?document.getElementById("adstir_wipead"):document.getElementById("adstir_float");var Ui=bj.float>=1||Si.force_floating===true;var dj=bj.magnify>=1||Si.force_magnify===true;var ej=Si.center!==false||dj;var fj=bj.ck;var gj=0,iframeHeight=0;var hj='<iframe id="'+yg+'" srcdoc="<html/>" allowtransparency="true" '+'scrolling="no" style="border:none;vertical-align:bottom; '+'width:'+bj.w+'px; height:'+bj.h+'px;" frameborder="0"></iframe>';var ij=Si.org_type==='wipe'?"adstir_wipead":"adstir_float";var t="";t=t+'<div style="position:absolute;top:-10000px;">';t=t+'<div style="line-height:100%; text-align:center;"'+'id="'+ij+'">';t=t+hj;t=t+'</div></div>';hj=t;var jj=cj.parentNode;jj.outerHTML=hj;var kj=document.getElementById(yg);var lj=kj.contentWindow.document;var mj='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width='+bj.w+',initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"></head>'+'<style>html{background-color:transparent;margin:0;padding:0;}body{background-color:transparent;margin:0;padding:0;} '+'.debug{position:absolute;top:0;left:0;background-color:#8888;padding:2px;color:#FFF;display:inline-block;}</style><body>'+bj.html+'</body></html>';lj.open();lj.write(mj);lj.close();if(Si.org_type==='wipe'){var nj=document.getElementById("adstir_wipead");if(Si.wipead_vars!==Ti){var oj=JSON.stringify(Si.wipead_vars);nj.setAttribute("data-set-wipead",oj);}}
else{xg.adstir_float=document.getElementById("adstir_float");if(Si.flags!==Ti){var pj=JSON.stringify(Si.flags);xg.adstir_float.setAttribute("data-flags",pj);}
if(Si.line_vars!==Ti){var pj=JSON.stringify(Si.line_vars);xg.adstir_float.setAttribute("data-set",pj);}
if(Si.down_vars!==Ti){var pj=JSON.stringify(Si.down_vars);xg.adstir_float.setAttribute("data-set2",pj);}
if(Si.expand_vars!==Ti){var pj=JSON.stringify(Si.expand_vars);xg.adstir_float.setAttribute("data-set3",pj);}
if(Si.close_vars!==Ti){var qj=JSON.stringify(Si.close_vars);xg.adstir_float.setAttribute("data-set-close",qj);}
if(Si.shake_vars!==Ti){var rj=JSON.stringify(Si.shake_vars);xg.adstir_float.setAttribute("data-set-shake",rj);}
if(Si.commons!==Ti){var pj=JSON.stringify(Si.commons);xg.adstir_float.setAttribute("data-set-commons",pj);}}
var sj=document.createElement("script");sj.src=wg.URL.float.replace(/%%NUMBER%%/,(bj.float<=1?"1":bj.float+""));document.body.appendChild(sj);});}}},overlayPC:function(tj,uj){},loadedEnd:function(vj,wj){var xj;var id=vj.id;var yj=vj.gid;xg.setTimeout(function(){var zj=document.createElement("div");zj.style.position="absolute";zj.style.top="0px";zj.style.left="0px";zj.style.height="3px";zj.style.width="3px";zj.style.background="black";zj.style.opacity="0.05";document.body.appendChild(zj);window.setTimeout(function(){document.body.removeChild(zj);},1000);},1000);var Aj=4000;if(yj!=xj&&yj==3){Aj=2500;}
if(!zg){Ag=xg.setTimeout(function(){if(id!=xj&&yj!=xj&&wj.floating!=true){var Bj=document.getElementById(yg);if(kh(vj,wj)){var Cj=(function(){var d=document.documentElement.scrollHeight;return d;})();if(Cj<30){oh(vj,wj);}}
else if(Bj){var Dj=(function(){if(Bj&&Bj.getBoundingClientRect)return Bj.getBoundingClientRect().height;return 1000000;})();if(Dj<30){oh(vj,wj);}}}},Aj);}}};};AdstirNext.prototype.makeAsync=function(){var Ej=this;var Fj=window;var Gj="AdstirCB"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var Hj=0;var Ij=0;var Jj=false;var Kj=false;return{prewrite:function(Lj){Hj=Lj.iframe.width;Ij=Lj.iframe.height;Jj=Lj.center;Kj=Lj.floating;var Mj='<iframe id="'+Gj+'" allowtransparency="true" scrolling="no" style="height:'+Ij+'px;width:'+Hj+'px;border:none;vertical-align:bottom;" frameborder="0"></iframe>';if(Jj||Kj){var Nj=Lj.org_type==='wipe'?"adstir_wipead":"adstir_float";var t="";t=t+'<div'+(Kj?' style="text-align:left;"':'')+'>';t=t+'<div'+(Kj?' style="position:absolute;top:-10000px;"':'')+'>';t=t+'<div style="line-height:100%;'+(Jj?'text-align:center;':'')+'"'+(Kj?' id="'+Nj+'"':'')+'>';t=t+Mj;t=t+'</div></div></div>';Mj=t;}
Fj.document.write(Mj);},connect:function(Oj,Pj,Qj,Rj){Qj.callback="AdstirCB"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);Fj[Qj.callback]=Rj;Ej.addJS(Ej.makeUrl(Pj,Qj));},write:function(Sj,Tj){var Uj=Fj.document.getElementById(Gj);var d=Uj.contentWindow.document;d.open();d.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width='+Hj+',initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"></head><style>html{background-color:transparent;margin:0;padding:0;}body{background-color:transparent;margin:0;padding:0;}</style><body>'+Sj.html+"</body></html>");d.close();},overlay:function(Vj,Wj){var Xj=void 0;if(Wj.org_type==='wipead'){var Yj=document.getElementById("adstir_wipead");if(Wj.wipead_vars!==Xj){var Zj=JSON.stringify(Wj.wipead_vars);Yj.setAttribute("data-set-wipead",Zj);}}
else{Fj.adstir_float=document.getElementById("adstir_float");if(Wj.flags!==Xj){var $j=JSON.stringify(Wj.flags);Fj.adstir_float.setAttribute("data-flags",$j);}
if(Wj.line_vars!==Xj){var $j=JSON.stringify(Wj.line_vars);Fj.adstir_float.setAttribute("data-set",$j);}
if(Wj.down_vars!==Xj){var $j=JSON.stringify(Wj.down_vars);Fj.adstir_float.setAttribute("data-set2",$j);}
if(Wj.expand_vars!==Xj){var $j=JSON.stringify(Wj.expand_vars);Fj.adstir_float.setAttribute("data-set3",$j);}
if(Wj.close_vars!==Xj){var ak=JSON.stringify(Wj.close_vars);Fj.adstir_float.setAttribute("data-set-close",ak);}
if(Wj.shake_vars!==Xj){var bk=JSON.stringify(Wj.shake_vars);Fj.adstir_float.setAttribute("data-set-shake",bk);}
if(Wj.commons!==Xj){var $j=JSON.stringify(Wj.commons);Fj.adstir_float.setAttribute("data-set-commons",$j);}}
var dk=document.createElement("script");dk.src=Ej.URL.float.replace(/%%NUMBER%%/,(Vj.float<=1?"1":Vj.float+""));document.body.appendChild(dk);},overlayPC:function(ek,fk){},loadedEnd:function(gk,hk){}};};AdstirNext.prototype.makeUrl=function(ik,jk){var kk;var lk=ik;var mk=true;for(var nk in jk){var ok=jk[nk];if(ok!==kk){if(mk){lk+="?";mk=false;}
else{lk+="&";}
lk+=encodeURIComponent(nk)+"="+encodeURIComponent(ok);}}
return lk;};AdstirNext.prototype.makeReload=function(pk,qk,rk){if(rk===void 0){rk={};}
var sk=qk.reload_parameter;if(typeof sk==='string'){var tk=sk.split("|");if(pk.fgid===undefined){sk=tk[0]+","+pk.id+"|"+pk.gid;}
else{sk=tk[0]+","+pk.id+"|"+pk.gid+"|"+pk.fgid;}}
else{if(pk.fgid===undefined){sk=pk.id+"|"+pk.gid;}
else{sk=pk.id+"|"+pk.gid+"|"+pk.fgid;}}
if(typeof rk.dln=="string"){sk=sk+"!"+rk.dln;}
return sk;};AdstirNext.prototype.addEvent=function(uk,vk,wk){if(uk.addEventListener){uk.addEventListener(vk,wk,false);}
else if(uk.attachEvent){uk.attachEvent("on"+vk,wk);}};AdstirNext.prototype.addJS=function(xk){var yk=document;var zk=yk.createElement("script");zk.async=true;zk.src=xk;var Ak=yk.getElementsByTagName("script")[0];Ak.parentNode.insertBefore(zk,Ak);};AdstirNext.prototype.writeJS=function(Bk){document.write('<script src="'+Bk+'"></script>');};AdstirNext.prototype.arrayContains=function(Ck,Dk){if(Ck&&Dk){for(var i=0;i<Ck.length;i++){if(Ck[i]==Dk)return true;}}
return false;};AdstirNext.prototype.attachAfdClickEvent=function(Ek,Fk,Gk){var Hk=this;if(Gk){this.addEvent(window,"DOMContentLoaded",function(){var Ik=document.getElementById(Fk);if(!Ik)return;Hk.addEvent(Ik,"load",function(){Hk.addEvent(Ik.contentWindow.document.body,"click",function(){for(var i=0;i<Ek.length;i++){var Jk=document.createElement("script");Jk.text=Ek[i];Ik.contentWindow.document.body.appendChild(Jk);}});});});}
else{this.addEvent(window,"DOMContentLoaded",function(){var Kk=document.querySelector("."+Fk);Hk.addEvent(Kk,"click",function(){for(var i=0;i<Ek.length;i++){var Lk=document.createElement("script");Lk.text=Ek[i];document.body.appendChild(Lk);}});});}};AdstirNext.loadJS=function(Mk){document.addEventListener("DOMContentLoaded",function(){var Nk=document.getElementsByTagName("script");for(var i=0;i<Nk.length;i++){var Ok=Nk[i];if(Ok.src&&Ok.src===Mk){return;}}
var Pk=document.createElement("script");Pk.type="text/javascript";Pk.charset="utf-8";Pk.src=Mk;document.body.appendChild(Pk);},false);};AdstirNext.structScriptTag=function(Qk){var Rk=document.getElementsByTagName("script");for(var i=0;i<Rk.length;i++){var Sk=Rk[i];if(Sk.src&&Sk.src===Qk){return;}}
var Tk=document.createElement("script");Tk.type="text/javascript";Tk.charset="utf-8";Tk.src=Qk;return Tk;};AdstirNext.prototype.appendJS=function(Uk,Vk){if(Uk){var Wk=AdstirNext.structScriptTag(Vk);if(Wk instanceof HTMLScriptElement){document.body.appendChild(Wk);}}
else{document.write('<script src="'+Vk+'"></script>');}};AdstirNext.prototype.getWindowParams=function(){return{screenWidth:window.screen.width||undefined,screenHeight:window.screen.height||undefined,pixelRatio:window.devicePixelRatio||undefined};};AdstirNext.prototype.supportsSVG=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");};AdstirNext.prototype.isLandscape=function(){return window.innerWidth>window.innerHeight;};AdstirNext.prototype.overlayRefresh=function(Xk,Yk,Zk,$k,al){var bl=this;var dl=window;if(Xk.overlay_refresh_limit>$k){setTimeout(function(){dl[Zk]=al;var fl=bl.getParam(Yk);fl.iframe='1';fl.topframe='0';fl.callback=Zk;fl.oref='1';var gl=bl.makeUrl(bl.URL.adtag,fl);if(Yk.debug){console.log("Refresh. Reload.");console.log(gl);}
var hl=document.createElement("script");hl.src=gl;document.body.appendChild(hl);bl.overlayRefresh(Xk,Yk,Zk,$k+1,al);},Xk.overlay_refresh_time*1000);}};AdstirNext.prototype.isStorageAvailable=function(){if(this.is_storage_available===null){try{var il=window.localStorage;var jl='__storage_test__';il.setItem(jl,jl);il.removeItem(jl);this.is_storage_available=true;return true;}
catch(e){this.is_storage_available=false;return false;}}
else{return this.is_storage_available;}};AdstirNext.prototype.processIMUID=function(){if(this.isStorageAvailable()){var kl=null;var ll='adstir_im_uid';kl=window.localStorage.getItem(ll);var ml="https://dmp.im-apps.net/sdk/im-uid.js";var nl=AdstirNext.structScriptTag(ml);if(nl instanceof HTMLScriptElement){nl.async=true;document.getElementsByTagName("head")[0].appendChild(nl);}
window.IMUIDRequest=window.IMUIDRequest||[];window.IMUIDRequest.push({customerId:1007220,callback:function(ol){if(ol.uid){window.localStorage.setItem(ll,ol.uid);}},callbackTimeout:1000});return kl;}
return null;};AdstirNext.prototype.InterstitialIsFirstView=function(){if(this.isStorageAvailable()){var pl=this.getReferrer();var ql=this.getOrigin();try{var rl=new URL(pl);var sl=new URL(ql.url);if(rl.host!==sl.host){return true;}
else{return false;}}
catch(e){var tl='adstir_instl_first_view_time';var ul=window.localStorage.getItem(tl);var vl=Math.floor(Date.now()/1000);if(ul!==null&&(vl-parseInt(ul))>(60*60*24)){window.localStorage.removeItem(tl);ul=null;}
if(ul===null){window.localStorage.setItem(tl,String(vl));return true;}}}
return false;};AdstirNext.prototype.InterstitialIsMismatchReferrer=function(){var wl=this.getReferrer();var xl=this.getOrigin();var yl='';var zl='';try{var Al=new URL(wl);yl=Al.host;}
catch(e){}
try{var Bl=new URL(xl.url);zl=Bl.host;}
catch(e){}
if(yl===''&&zl===''){return true;}
if(yl!==zl){return true;}
else{return false;}};AdstirNext.prototype.MediaAccessCount=function(){if(this.isStorageAvailable()){var Cl=this.MediaLastViewTime();var Dl='adstir_fq_count';var El=window.localStorage.getItem(Dl);var Fl=1;if(Math.floor(Date.now()/1000)-Cl>86400){Fl=1;}
else if(El!==null){Fl=parseInt(El)+1;}
window.localStorage.setItem(Dl,String(Fl));return Fl;}
return 1;};AdstirNext.prototype.MediaLastViewTime=function(Gl){var Hl=void 0;if(this.isStorageAvailable()){var Il='adstir_fq_last_time';if(Gl!==Hl){window.localStorage.setItem(Il,String(Gl));}
var Jl=window.localStorage.getItem(Il);if(Jl===null)return 0;return parseInt(Jl);}
return 0;};AdstirNext.prototype.InterstitialAccessCount=function(){if(this.isStorageAvailable()){var Kl=this.InterstitialLastViewTime();if(Kl===0){return 0;}
var Ll="adstir_instl_access_count";var Ml=window.localStorage.getItem(Ll);var Nl=1;if(Ml!==null){Nl=parseInt(Ml)+1;}
window.localStorage.setItem(Ll,String(Nl));return Nl;}
return 0;};AdstirNext.prototype.InterstitialLastViewTime=function(Ol){var Pl=void 0;if(this.isStorageAvailable()){var Ql="adstir_instl_last_view_time";if(Ol!==Pl){window.localStorage.setItem(Ql,String(Ol));}
var Rl=window.localStorage.getItem(Ql);if(Rl===null)return 0;return parseInt(Rl);}
return 0;};AdstirNext.prototype.getAdstirMediaUid=function(Sl){if(Sl){var Tl='adstir_media_uid';var Ul=window.localStorage.getItem(Tl);if(Ul===null){Ul=this.generateUuid();window.localStorage.setItem(Tl,Ul);}
return Ul;}
return null;};AdstirNext.prototype.generateUuid=function(){var Vl="",i,random;for(i=0;i<32;i++){random=Math.random()*16|0;if(i==8||i==12||i==16||i==20){Vl+="-";}
Vl+=(i==12?4:(i==16?(random&3|8):random)).toString(16);}
return Vl;};AdstirNext.prototype.getHainaFrequency=function(Wl){if(Wl){var Xl='haina_fq';return window.localStorage.getItem(Xl);}
return null;};AdstirNext.prototype.getAdstirOptout=function(Yl){var Zl="1";if(Yl){Zl=window.localStorage.getItem("adstir_optout");if(Zl===null){Zl="1";}}
return Zl;};AdstirNext.prototype.setAdstirOptout=function($l){var am=this;if($l){this.addEvent(window,"message",function(bm){var cm=new URL("https:"+am.URL.optoutIframe);if(bm.origin===cm.origin){if(bm.data&&(bm.data==='0'||bm.data==='1')){window.localStorage.setItem("adstir_optout",bm.data);}}});}};AdstirNext.prototype.loadAdstirOptout=function(){if(this.isStorageAvailable()){var dm=window.location.href;var em="https:"+this.URL.optoutIframe+'?url='+dm;document.write('<iframe src="'+em+'" style="display:none;"></iframe>');}};AdstirNext.prototype.supportsVAST=function(fm){if(!('Promise' in window)){return false;}
if(fm.platform&&fm.platform==='webview'){if(!fm.use_sdk_ivw){return false;}}
else if(!('IntersectionObserver' in window)){return false;}
return true;};AdstirNext.prototype.processVASTRes=function(gm,hm){if(!this.supportsVAST(hm)){return;}
var id="adstirVP"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);gm.html="<div id=\""+id+"\" style=\"text-align: center;\"></div>";if(Array.isArray(gm.crtv)&&Array.isArray(gm.crtv[0].ue)&&typeof gm.crtv[0].ue[0]==="string"){gm.html+="<div style=\"width:0px !important; height:0px !important; background:url('"+gm.crtv[0].ue[0].replace("/v/ue","/v/rv")+"')\"></div>";}
this.callVASTPlayer(gm,hm,id);};AdstirNext.prototype.processVASTResAfterCK=function(im,jm,km){if(!this.supportsVAST(jm)){return;}
var id="adstirVP"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var lm="<div id=\""+id+"\" style=\"text-align: center;\"></div>";if(Array.isArray(im.crtv)&&Array.isArray(im.crtv[0].ue)&&typeof im.crtv[0].ue[0]==="string"){lm+="<div style=\"width:0px !important; height:0px !important; background:url('"+im.crtv[0].ue[0].replace("/v/ue","/v/rv")+"')\"></div>";}
km.insertAdjacentHTML("afterbegin",lm);this.callVASTPlayer(im,jm,id);};AdstirNext.prototype.callVASTPlayer=function(mm,nm,id){var om=this;var pm=(mm.vp||{}).id||"";if(pm===""){return;}
var qm=__assign({},((mm.vp||{}).opts||{}),((nm.vp_vars||{})[pm]||{}));var rm=__assign({afd:mm.afd||null,sdkIvw:!!nm.use_sdk_ivw,spaceW:mm.w,spaceH:mm.h},qm);function loadScriptOnce(sm,cb){var s=document.querySelector("script[src=\""+sm+"\"][data-loadstate]");if(s!=null){if(s.dataset.loadstate=="loaded"){setTimeout(cb,0);}
else{s.addEventListener("load",cb);}}
else{var tm=document.createElement("script");tm.src=sm;tm.dataset.loadstate="loading";tm.addEventListener("load",function(){tm.dataset.loadstate="loaded";cb();});document.head.appendChild(tm);}}
if(nm.initiator==="hbov"&&(pm=="2"||pm=="4")){mm.ck=false;loadScriptOnce(this.URL.vp+"pbvp.js",function(){window.AdstirPbVAST.start(""+pm,mm.crtv,rm);});return;}
loadScriptOnce(this.URL.vp+"adstir-vastlib.js",function(){loadScriptOnce(om.URL.vp+"adstir-vastp."+pm+".js",function(){var um=document.getElementById(id);if(um===null){return;}
window.AdstirVASTPlayer[pm].start(um,mm.crtv,rm).then(function(vm){if(!vm){um.parentNode.removeChild(um);}})["catch"](function(_e){console.error(_e);um.parentNode.removeChild(um);});});});};AdstirNext.prototype.getInstlCloseBtnParameters=function(wm,xm){var ym=44;if(xm.instl_vars&&xm.instl_vars.instl_close_button_size){var zm=parseInt(xm.instl_vars.instl_close_button_size);ym=zm;}
var Am=(wm.magnify>=1||xm.force_magnify)?wm.w*2:wm.w;var Bm=this.isLandscape()?0:-1*ym;var Cm=16;var Dm=0;var Em=this.isLandscape()?"close":"close_bright";if(ym>Cm){Dm=this.isLandscape()?ym:0;Em="close_bright";}
if(wm.id===1126){Bm=0;Dm=0;Em="close_circle";try{var Fm=this.getWindowParams();if(Fm.screenWidth!==undefined){Am=Fm.screenWidth;}}
catch(e){}}
var Gm=this.supportsSVG()?"https://js.ad-stir.com/network/"+Em+".svg":"https://js.ad-stir.com/network/"+Em+".png";var Hm=1;if(xm.instl_vars){Hm=parseInt(xm.instl_vars.buttonAlignType)||1;if(Hm===4){var Im=[1,2];Hm=Im[Math.floor(Math.random()*Im.length)];}
else if(Hm===5){var Im=[1,2,3];if(this.isLandscape()&&ym>Cm){Im=[1,2];}
Hm=Im[Math.floor(Math.random()*Im.length)];}
else if(Hm===3){if(this.isLandscape()&&ym>Cm){Hm=1;}}}
var Jm;switch(Hm){case 1:Jm="left";break;case 2:Jm="right";break;case 3:Jm="center";break;default:Jm="left";}
if(Hm===2&&this.isLandscape()&&ym>Cm){Dm*=-1;}
var Km=0;if(navigator.userAgent.indexOf('iPhone')>0&&(wm.magnify>=1||xm.force_magnify)&&!this.isLandscape()&&Hm===1){Km=10;}
return{textalign:Jm,tmaxwidth:Am,instlclosebuttonpx:Km,buttonsize:ym,ttop:Bm,tside:Dm,timgsrc:Gm};};AdstirNext.prototype.appendBypassAoneSyncTag=function(){var Lm=document.createElement("img");Lm.src="https://bypass.ad-stir.com/map";Lm.height=1;Lm.width=1;Lm.style.display="none";Lm.alt="map";document.body.appendChild(Lm);};AdstirNext.prototype.getEvm=function(){if(typeof this.tid!="string"||this.tid==""){return null;}
return document.getElementById(this.tid);};AdstirNext.prototype.addJsCk=function(cb){var Mm=this;var Nm="jsck";var Om=this.getEvm();if(Om!=null){this.jsCkF=function(e){Om.removeEventListener(Nm,Mm.jsCkF);cb((e.detail||{}));};Om.addEventListener(Nm,this.jsCkF);}};AdstirNext.prototype.rmJsCk=function(){var Pm="jsck";var Qm=this.getEvm();if(Qm!=null&&this.jsCkF!=null){Qm.removeEventListener(Pm,this.jsCkF);}};AdstirNext.RTUS=false;return AdstirNext;}());(function(){var Rm=window;if(Rm.adstir_vars.platform!=="webview"){var ua=navigator.userAgent;if(ua.indexOf('iPhone')>0||ua.indexOf('iPad')>0){AdstirNext.RTUS=true;}}
new AdstirNext(Rm.adstir_vars);Rm.adstir_vars=void 0;})();