/*! * version: {"ads":"3.1.337 ver3","pwa":"3.1.337","core":"3.1.337","bundler":"3.1.337"} - env: prod - bundle date: 2026-08-09T15:23:43.962Z * */(()=>{"use strict";var __webpack_modules__={8(e,t,i){i.d(t,{A:()=>d});var s=i(335),n=i(284),a=i(456),o=i(101),r=i(862);class d{constructor(e){this.gpt=e,this.randomSuffix=1,this.divIdSuffix="-recovery",this.detectIds=["ats-insert_ads"],this.disconnectTime=3e5,this.delayTime=5e3,this.observers={},this.instances={},this.enableAdRecovery=!1,this.siteId=0,this.init=e=>{this.enableAdRecovery=e.enableAdRecovery,this.siteId=e.siteId},this.createFastlyLog=e=>{fetch(`https://anymind360.com/collect/ad_recovery?siteId=${this.siteId}&adUnitPath=${e}`,{headers:{"Content-Type":"text/plain"}}).then(()=>{s.vF.log("logged ad recovery")})},this.removeAd=(e,t)=>{for(;e.firstChild;)s.vF.log("remove nodes",e.firstChild),e.removeChild(e.firstChild);this.observers[t].forEach(e=>e.disconnect()),this.executeAd(t)},this.executeAd=e=>{const t=this.instances[e];let i;switch(t.adInstance.adType){case"skyscraper":i=new n.G(this.gpt,t.settings,e,this);break;case"insert_ads":i=new a.W(this.gpt,t.settings,e,this);break;case"overlay":i=new o.h(this.gpt,t.settings,e,this);break;case"parallax":i=new r.k(this.gpt,t.settings,e,this);break;default:i=null}i&&(t.adInstance.dispose(),i.execute(document,!0),this.createFastlyLog(t.settings.adUnitPath))},this.createAdObserver=(e,t)=>{if(!this.enableAdRecovery)return;const i=JSON.parse(JSON.stringify(e));i.divIDs=i.divIDs.map(e=>e.includes(this.divIdSuffix)?e.split(this.divIdSuffix)[0]+this.divIdSuffix+this.randomSuffix++:e+this.divIdSuffix+this.randomSuffix++),this.instances[t.instanceCount]={settings:i,adInstance:t}},this.shouldReplace=e=>"string"==typeof e&&!this.detectIds.some(t=>e.includes(t)),this.mutationCallback=(e,t)=>(i,s)=>{for(const n of i)if("childList"===n.type){const i=Array.from(n.addedNodes);if(i.length>0)for(const n of i){const i=n.id;if(this.shouldReplace(i))return this.removeAd(e,t),void s.disconnect()}}},this.mutationCallback1=(e,t)=>(i,s)=>{for(const n of i)if("childList"===n.type){const i=n.removedNodes,a=Array.from(i).some(t=>e===t),o=Array.from(n.addedNodes);a&&(o.forEach(e=>e.remove()),this.executeAd(t),s.disconnect())}},this.dispose=()=>{Object.keys(this.observers).forEach(e=>{this.observers[e].forEach(e=>e.disconnect())})},this.observe=(e,t)=>{this.enableAdRecovery&&setTimeout(()=>{const i={childList:!0,subtree:!0},n=new MutationObserver(this.mutationCallback(e,t));let a=null;e.parentNode&&(a=new MutationObserver(this.mutationCallback1(e,t))),n.observe(e,i),this.observers[t]=[],this.observers[t].push(n),a&&e.parentNode&&(a.observe(e.parentNode,i),this.observers[t].push(a)),s.vF.log("start observe node: ",e),setTimeout(()=>{n.disconnect(),a&&a.disconnect(),s.vF.log("disconnect from observation of node: ",e)},this.disconnectTime)},this.delayTime)}}}},139(e,t,i){i.d(t,{jC:()=>r,rG:()=>d});var s=i(939),n=i(335);const a=window.sas=window.sas||{};a.cmd=a.cmd||[];const o=e=>(...t)=>{a.cmd.push(()=>e(...t))};class r{constructor(){this.isCalled=!1,this.insertSasScript=e=>{(0,s.nL)(!0,`//ced.sascdn.com/tag/${e}/smart.js`)},this.setUpAndCall=(e,t,i)=>{this.isCalled||(this.isCalled=!0,a.setup({networkid:e,domain:"//www18.smartadserver.com",async:!0}),a.call("onecall",{siteId:t,pageId:i.pageId,formats:i.formats}))},this.render=e=>{n.vF.log("apm: render format id:",e),a.render(e)},this.setUpAndCall=o(this.setUpAndCall),this.render=o(this.render)}}r.sasDivIdPrefix="sas_";const d=new r},114(e,t,i){i.d(t,{m:()=>h});var s=i(335),n=i(939);const a=["interstitial","insert_ads","overlay","skyscraper","parallax","replace_ads","slider"],o=["interstitial","insert_ads","overlay","skyscraper","parallax","slider"],r=["overlay"],d=["insert_ads","skyscraper","parallax","replace_ads","slider"],l=["interstitial","overlay"];class h{constructor(e){this.originalConfig=e,this.siteSetting=this.originalConfig.siteSetting,this.configsForCurrentPage=[],this.apmConfig={pageId:null,formats:[]},this.gptOutOfPageSettings=[],this.separateRequestDivIds=[],this.prebidOnlySlotsDivIds=[],this.prebidOnlySlotsDivIdMap={},this.prebidAnalyticsConfig={adUnitIdPathMapping:{},amPrebidBidderMap:this.originalConfig.amPrebidBidderMap},this.gptSlotConfigsForSRA=[],this.gptSlotConfigs=[],this.referrerHistory=[],this.inIframe=()=>window!==window.parent,this.filterConfig=()=>{if(s.vF.log("device: ",this.userDeviceType),s.vF.log("url path: ",this.currentUrlPath),this.configsForCurrentPage.splice(0),this.apmConfig.pageId=null,this.apmConfig.formats.splice(0),this.gptOutOfPageSettings.splice(0),this.separateRequestDivIds.splice(0),this.prebidOnlySlotsDivIds.splice(0),this.gptSlotConfigsForSRA.splice(0),this.gptSlotConfigs.splice(0),this.prebidAnalyticsConfig.adUnitIdPathMapping={},this.prebidOnlySlotsDivIdMap={},this.originalConfig.configs.some(e=>e.enableReferrerTargeting&&e.enableKeepingReferrer&&e.domainList)){const e=(0,n.yz)(this.siteSetting.hostNames,location.hostname),t=(0,n.kU)(e,this.referrerHostName);this.referrerHistory.splice(0),this.referrerHistory.push(...(0,n.P7)(e,"ats_ads_referrer_history",this.referrerHostName,t))}const e=this.originalConfig.configs.filter(e=>!(r.some(t=>e.type===t)&&this.inIframe())&&(0,n.G)(e,this.currentUrlPath)&&(0,n.FC)(e.device,this.userDeviceType)&&(0,n.oj)(e,this.referrerHostName)&&(0,n.k3)(e,this.referrerHistory));for(const t of e){if(a.some(e=>t.type===e)){const{adUnitPath:e,divIDs:i}=t.settings;i.forEach(t=>{this.gptSlotConfigs.push({adUnitPath:e,divId:t})})}if(this.siteSetting.enableGamSingleRequest||this.siteSetting.enablePrebid||!(0,n.ze)(this.siteSetting.keywordsBlock)){let e=this.siteSetting.enableSeparateRequest?l:o;const i="functionTrigger"in t.settings&&t.settings.useFunctionTrigger;if("overlay"==t.type&&i&&(e=e.filter(e=>"overlay"!==e),d.push("overlay")),e.some(e=>t.type===e)&&(t.active||s.vF.isDev)){const{adUnitPath:e,divIDs:i,setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o}=t.settings;i.forEach(t=>{this.gptSlotConfigsForSRA.push({adUnitPath:e,sizes:[[300,250]],divId:t,setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o})})}if(this.siteSetting.enableSeparateRequest&&d.some(e=>t.type===e)&&(t.active||s.vF.isDev)){const{divIDs:e}=t.settings;this.separateRequestDivIds.push(...e)}if("prebid_only"===t.type&&(t.active||s.vF.isDev)){const{divID:e,divIDType:i,inViewRefresh:s}=t.settings;this.prebidAnalyticsConfig.adUnitIdPathMapping[e]={id:t.settings.adUnitId,path:t.settings.adUnitPath},t.settings.isPrebidOnly&&(this.prebidOnlySlotsDivIds.push(e),this.prebidOnlySlotsDivIdMap[e]={divIDType:i,inViewRefresh:s})}"adx_inst"===t.type&&(t.active||s.vF.isDev)&&this.gptOutOfPageSettings.push(t.settings),"adx_overlay"===t.type&&(t.active||s.vF.isDev)&&this.gptOutOfPageSettings.push(t.settings)}if("apm"===t.type&&(this.apmConfig.formats.push({id:t.settings.formatId}),this.apmConfig.pageId=t.settings.pageId),this.configsForCurrentPage.push(t),t.breakPoint&&(t.active||s.vF.isDev)){s.vF.log("this is break point, config: ",t);break}}}}get currentUrl(){const e=document.location.pathname+document.location.search+document.location.hash;return decodeURIComponent(e)}get currentUrlPath(){return decodeURIComponent(window.location.pathname)}get referrerHostName(){return""!==document.referrer?new URL(document.referrer).hostname:""}get userDeviceType(){return(0,n.gE)()}get filteredPrebidOnlySettings(){return this.configsForCurrentPage.filter(e=>"prebid_only"===e.type)}get filteredTamSettings(){return this.configsForCurrentPage.filter(e=>"tam"===e.type)}}},348(e,t,i){i.d(t,{Cu:()=>s.Cu,KB:()=>s.KB,sp:()=>s.sp});var s=i(78)},472(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{O:()=>functionTargeting});var _Logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(335);const throttle=(e,t)=>{let i=!1;return function(s,n){i||(e(s,n),i=!0,setTimeout(function(){i=!1},t))}};class FunctionTargeting{constructor(){this.MUTATION_TIMEOUT=18e4,this.mutationObserverList={},this.mutationConfig={childList:!0,subtree:!0},this.callback=(key,functionTrigger,resolve)=>(_mutationsList,observer)=>{let result;try{result=eval(functionTrigger)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("[functionTrigger]",key,e)}result&&(_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log(key+": find target"),resolve(!0),observer.disconnect())},this.waitForConditionMet=async(parentElm,instanceCount,functionTrigger,adUnitPath)=>new Promise(resolve=>{const key=instanceCount+adUnitPath;let result;try{result=eval(functionTrigger)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("[functionTrigger]",key,e)}if(result)_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log(key+": find target"),resolve(!0);else{const e=new MutationObserver(throttle(this.callback(key,functionTrigger,resolve),50));this.mutationObserverList[key]=e,e.observe(parentElm,this.mutationConfig),setTimeout(()=>e.disconnect(),this.MUTATION_TIMEOUT)}}),this.dispose=()=>{Object.keys(this.mutationObserverList).forEach(e=>{this.mutationObserverList[e].disconnect()})}}}const functionTargeting=new FunctionTargeting},554(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,_7:()=>withGptAsync});var _Logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(335),_core_utils_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(939),_TargetObserver__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(356),_GptBase__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(655);const CHECK_INTERVAL_TIME=1e3,THROTTLE_TIME=200,PPID_COOKIE_NAME="am_FPID",PPID_JS_COOKIE_NAME="am_FPID_JS",GPT_URL="https://securepubads.g.doubleclick.net/tag/js/gpt.js";let googletag=window.googletag=window.googletag||{};function throttle(e,t){let i=!1;return function(){i||(e(),i=!0,setTimeout(function(){i=!1},t))}}googletag.cmd=googletag.cmd||[];class GptLogger{constructor(e=_Logger__WEBPACK_IMPORTED_MODULE_0__.vF){this.logger=e,this.log=(...e)=>{this.logger.log("gpt:",...e)},this.warn=(...e)=>{this.logger.warn("gpt:",...e)},this.error=(...e)=>{this.logger.error("gpt:",...e)}}}const gptLogger=new GptLogger,withGptAsync=e=>(...t)=>{googletag.cmd.push(()=>e(...t))};class Gpt extends _GptBase__WEBPACK_IMPORTED_MODULE_3__.N{constructor(tagServices,prebid,aps){super(),this.tagServices=tagServices,this.prebid=prebid,this.aps=aps,this.isSRAEnabled=!1,this.atsSlots=[],this.definedAtsSlots={},this.atsSlotsWithVisibility=[],this.callbacksOnSlotRenderEnded=[],this.refreshedSlots=[],this.outOfPageSlots=[],this.enableSeparateRequest=!1,this.destroyAtsSlotsOnly=!1,this.enableAdRecovery=!1,this.separateRequestDivIds=[],this.lazyLoadCallbacks={},this.prebidOnlySlotsDivIdMap={},this.addGoogletagEventListner=()=>{withGptAsync(()=>{googletag.pubads().addEventListener("slotRenderEnded",e=>{for(const t of this.callbacksOnSlotRenderEnded)t(e)}),googletag.pubads().addEventListener("slotVisibilityChanged",e=>{for(const t of this.atsSlotsWithVisibility)e.slot===t.slot&&(t.visibilityPercentage=e.inViewPercentage)}),googletag.pubads().addEventListener("impressionViewable",e=>{for(const t of this.atsSlotsWithVisibility)e.slot===t.slot&&(t.isViewable=!0)})})()},this.insertGptTag=()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.nL)(!0,GPT_URL)},this.addEventListener=(e,t)=>{googletag.pubads().addEventListener(e,t)},this.removeEventListener=(e,t)=>{googletag.pubads().removeEventListener(e,t)},this.display=e=>{googletag.display(e)},this.destroySlots=e=>{googletag.destroySlots(e)},this.setForceSafeFrameForSlot=(e,t)=>{e.setConfig({safeFrame:{forceSafeFrame:t}})},this.setTargetingForEachSlot=(slot,setTargetingConfigs)=>{setTargetingConfigs.forEach(setTargetingConfig=>{if(setTargetingConfig.isActive){const keyConfig=setTargetingConfig.key;let valueConfig=setTargetingConfig.value;try{valueConfig=eval(valueConfig)+""}catch(e){gptLogger.error("setTargeting failed",e)}slot.setTargeting(keyConfig,valueConfig)}})},this.setTargeting=(e,t)=>{googletag.pubads().setTargeting(e,t)},this.setPPID=async(url,customScript)=>{if(!url&&!customScript)return;const label="[PPID]",_getPPID=()=>{const e=(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.Ri)();return e[PPID_COOKIE_NAME]||e[PPID_JS_COOKIE_NAME]},_setPPID=e=>{this._ppid=e,(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.TV)(PPID_JS_COOKIE_NAME,e,2555),googletag.cmd.push(()=>{googletag.pubads().setPublisherProvidedId(e),gptLogger.log(label,`set ${e}`)})},ppid=_getPPID();if(ppid)return gptLogger.log(label,`has ${ppid}`),void _setPPID(ppid);if(gptLogger.log(label,"no PPID"),url)await fetch(url,{mode:"cors",credentials:"include"}).then(e=>{if(!e.ok)return void gptLogger.error(label,`The request to ${url} failed`);gptLogger.log(label,`The request to ${url} was successful`);const t=_getPPID();t?_setPPID(t):gptLogger.error(label,"no ppid in cookie")},e=>{gptLogger.error(label,`The request to ${url} failed by ${e}`)});else if(customScript)try{await eval(customScript)}catch(e){gptLogger.error(label,"Fail custom script",e)}},this.refreshAds=(e,t,i=!0)=>{t||(e=e.filter(e=>!this.refreshedSlots.some(t=>e===t))),0({slotId:e.getSlotElementId(),adUnitPath:e.getAdUnitPath()}))),googletag.pubads().refresh(e,{changeCorrelator:i}),e.forEach(e=>!this.refreshedSlots.some(t=>e===t)&&this.refreshedSlots.push(e))):gptLogger.log("no refresh")},this.checkIfEnableRefreshAd=(e,t,i,s)=>new Promise(n=>{const a=setInterval(()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.ze)(i)||i[e].shouldStopRefresh?(clearInterval(a),n()):(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.pr)()&&this.isSlotViewable(t,s)&&(gptLogger.log(`auto refresh for ${e}`),clearInterval(a),n())},CHECK_INTERVAL_TIME)}),this.isSlotViewable=(e,t)=>{const i=this.atsSlotsWithVisibility.find(t=>t.slot===e);return void 0===i||!!i.isViewable&&(i.visibilityPercentage>=t&&(i.isViewable=!1,!0))},this.intervalRefreshAds=(e,t,i,s,n,a=0,o=[])=>{const r=n[s];r.isGPTRefreshCalled=!0;let d=!0;const l=r.adSenseReplacementClient&&r.adSenseReplacementSlot;let h=i;const c=async()=>{if(!r.shouldStopRefresh){if(await new Promise(e=>setTimeout(e,1e3*t)),void 0===e[0]||!n)return;r.shouldStopRefresh||(d&&(d=!1,await this.checkIfEnableRefreshAd(s,e[0],n,a)),l||(d=!0),"number"!=typeof h||0e.getSlotElementId())}`))}};c()},this.replaceAdSense=({slot:e,adSenseReplacementClient:t,adSenseReplacementSlot:i})=>{if(!t||!i)return;gptLogger.log("Replace adsense",e.id,t,i),e.textContent="";const s=document.createElement("script");s.async=!0,s.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${t}`,s.setAttribute("crossorigin","anonymous"),e.appendChild(s);const n=document.createElement("ins");n.classList.add("adsbygoogle"),n.style.display="block",n.setAttribute("data-ad-client",t),n.setAttribute("data-ad-slot",i),n.setAttribute("data-ad-format","auto"),n.setAttribute("data-full-width-responsive","true"),e.appendChild(n),(window.adsbygoogle=window.adsbygoogle||[]).push({})},this.executeBasicTargetings=()=>{const e=window.location.search.substring(1),t=window.document.referrer?document.referrer.split("/")[2]:"null",i=window.location.pathname;if(googletag.pubads().setTargeting("url",[i]),googletag.pubads().setTargeting("ref",[t]),e){const t=e.split("&");for(let e=0;e{googletag.pubads().isInitialLoadDisabled()||googletag.setConfig({disableInitialLoad:!0})},this.isInitialLoadDisabled=()=>googletag.pubads().isInitialLoadDisabled(),this.enableSingleRequest=()=>{this.isSRAEnabled=!0,googletag.setConfig({singleRequest:!0})},this.collapseEmptyDivs=()=>{googletag.setConfig({collapseDiv:"ON_NO_FILL"})},this.setKeyValuesToSlots=(e,t,i)=>{e.forEach(e=>{e.setTargeting(t,i)})},this.enableGamLazyload=e=>{googletag.setConfig({lazyLoad:{fetchMarginPercent:e.gamLazyloadFetchMarginPercent,renderMarginPercent:e.gamLazyloadRenderMarginPercent,mobileScaling:e.gamLazyloadMobileScaling}})},this.enableServices=()=>{googletag.pubadsReady?gptLogger.log("already gpt service is enabled"):googletag.enableServices()},this.forceHB=async e=>{if(e.length<=0)return;const t=[],i=[],s=[];for(const n of e){const e=n.getAdUnitPath(),a=n.getSlotElementId();t.push(a);for(const t of this.configManager.configsForCurrentPage)if("prebid_only"===t.type&&t.settings.adUnitPath===e){const e=JSON.parse(JSON.stringify(t));e.settings.divID=a,i.push(e)}else if("tam"===t.type){const i=JSON.parse(JSON.stringify(t));i.settings.tamAdUnits=i.settings.tamAdUnits.filter(({slot:t})=>(t.slotID=a,t.adUnitPath===e)),0e.code))&&n.forEach(e=>this.prebid.setTargetingForEachSlot(e.code))}if(0{!Array.isArray(e)||e.length<0?gptLogger.error("[infinite hb] not correct input"):(await this.callHb(e),googletag.pubads().isInitialLoadDisabled()&&this.refreshAds(e))},this.callHb=async(e,t=!1,i=[])=>{if(0!==e.length&&(this.prebid.isCalled||this.aps.isCalled)){const s=[],n=[],a=[];if(e.forEach(e=>{t&&(e.clearTargeting(),this.setTargetingForEachSlot(e,i));const o=e.getSlotElementId(),r=e.getAdUnitPath(),d=this.prebid.adUnitsDict[r]?this.prebid.adUnitsDict[r].prebidAdUnits:null,l=this.prebid.adUnitsDict[r]?this.prebid.adUnitsDict[r].code:null;d&&l&&(this.prebid.removeAdUnit(l),d.forEach(e=>{e.code=o,s.push(e)}),n.push(o));const h=this.aps.slotsDict[r];void 0!==h&&(h.slotID=o,a.push(h))}),s.length>0){await this.prebid.sendBids(s,n)&&n.forEach(e=>this.prebid.setTargetingForEachSlot(e))}if(a.length>0){await this.aps.fetchApsBids(a)&&this.aps.setTargeting()}}},this.defineAdxRewardSlot=(e,t)=>{const i=googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat.REWARDED);return i&&(this.setTargetingForEachSlot(i,t),i.addService(googletag.pubads())),i},this.callOutOfPageSlot=async({adUnitPath:e,position:t,setTargetingConfigs:i},s)=>{if(await this.setPPIDPromise,this.isSRAEnabled){const e=t=>{t?.target?.removeEventListener(t.type,e),this.outOfPageSlots.forEach(({slot:e,config:t})=>{googletag.display(e),0{if(i.slot===e){if(gptLogger.log(`render slot \npath: ${e.getAdUnitPath()}`),!i.isEmpty)return;googletag.destroySlots([i.slot]);let s=!1;t.autoAdUnitPaths.reduce((e,i,n,a)=>e.then(async()=>{if(!s){const e={...t,adUnitPath:i},o=await this.callOutOfPageSlotforMulticall(e);o&&(o.isEmpty&&n{e.slot===n&&(gptLogger.log(`render slot \npath: ${n.getAdUnitPath()}`),s(e))}))}},this.lazySetTargetingAndRefresh=notFoundPBOnlySlotMap=>{const slotIds=Object.keys(notFoundPBOnlySlotMap);slotIds.forEach(_slotId=>{const divIdType=notFoundPBOnlySlotMap[_slotId].divIDType,inViewRefresh=notFoundPBOnlySlotMap[_slotId].inViewRefresh;_TargetObserver__WEBPACK_IMPORTED_MODULE_2__.c.waitForElement("QuerySelector"===divIdType?`#${_slotId}`:`#${eval(_slotId)}`,"QuerySelector",async()=>{const slotId="QuerySelector"===divIdType?_slotId:eval(_slotId),gptSlot=await this.waitGptAdSlot(slotId);gptLogger.log("lazy refresh: ",slotId),await this.prebid.onFirstPrebidResponseEnded&&this.prebid.setTargetingForEachSlot(slotId),await this.aps.onFirstApsResponseEnded&&this.aps.setTargeting();const target=document.querySelector("#"+slotId);inViewRefresh&&target&&await Gpt.isIntersected(target),this.refreshAds([gptSlot])})})},this.waitGptAdSlot=e=>new Promise(t=>{const i=setInterval(()=>{s(i)},100),s=i=>{const s=googletag.pubads().getSlots().find(t=>t.getSlotElementId()===e);s&&(clearInterval(i),t(s))}}),this.defineATSSlotsForSRA=async(e,t)=>{if(e.forEach(e=>this.defineSlot(e.adUnitPath,[[300,250]],e.divId,e.sizeMappingGroup,e.setCollapseEmptyDiv,e.enableSetForceSafeFrameForSlot,e.setTargetingConfigs)),await this.setPPIDPromise,t.forEach(e=>{const{adUnitPath:t,position:i,setTargetingConfigs:s}=e;gptLogger.log(`call defineOutOfPageSlot adUnitPath: ${t}, position: ${i}`);const n=googletag.defineOutOfPageSlot(t,googletag.enums.OutOfPageFormat[i]);n&&(n.addService(googletag.pubads()),this.setTargetingForEachSlot(n,s),this.outOfPageSlots.push({slot:n,config:e}),this.atsSlots.push(n))}),await this.tagServices.shouldBlockRefresh)return void gptLogger.error("not refresh ads because of keyword block");await this.prebid.onFirstPrebidResponseEnded&&this.prebid.setTargeting();if(await this.aps.onFirstApsResponseEnded&&this.aps.setTargeting(),googletag.pubads().isInitialLoadDisabled()){let e=googletag.pubads().getSlots();const{notFoundPrebidOnlySlotsDivIds:t,notFoundPBOnlySlotMap:i}=Gpt.extractLazyPBOnly(e,this.prebidOnlySlotsDivIdMap);e=e.filter(e=>!t.includes(e.getSlotElementId()));const s=1===this.gamAdsRefreshMode?e.filter(e=>!this.separateRequestDivIds.some(t=>t===e.getSlotElementId())):this.atsSlots.filter(e=>!this.separateRequestDivIds.some(t=>t===e.getSlotElementId())).concat(e.filter(e=>this.prebidOnlySlotsDivIds.some(t=>t===e.getSlotElementId())));this.refreshAds(s,!0),this.lazySetTargetingAndRefresh(i)}},this.defineSlot=(e,t,i,s,n,a,o)=>{gptLogger.log(`call defineSlot with divId: ${i}, adUnitPath: ${e}`);const r=googletag.defineSlot(e,t,i);if(!r)return gptLogger.error(`Fail to googletag.defineSlot(${e}, ${t}, ${i})`),null;let d=[];if(s.forEach(e=>{const t=googletag.sizeMapping().addSize(e.deviceSizes,e.sizes).build();t&&(d=d.concat(t))}),r.defineSizeMapping(d),this.setForceSafeFrameForSlot(r,a),n)switch(n){case"none":r.setConfig({collapseDiv:"DISABLED"});break;case"after_fetch":r.setConfig({collapseDiv:"ON_NO_FILL"});break;case"before_fetch":r.setConfig({collapseDiv:"BEFORE_FETCH"})}return r.addService(googletag.pubads()),o&&this.setTargetingForEachSlot(r,o),this.definedAtsSlots[i]=r,this.atsSlots.push(r),this.atsSlotsWithVisibility.push({slot:r,visibilityPercentage:0,isViewable:!1}),r},this.fetchAd=async({adUnitPath:e,sizes:t,divId:i,sizeMappingGroup:s,setCollapseEmptyDiv:n,setTargetingConfigs:a,onAfterGptRendered:o,onAfterGptFetched:r,enableLazyLoad:d,lazyLoadMode:l,lazyLoadConfig:h,enableSetForceSafeFrameForSlot:c,infinite:p,slotWrapperDiv:g,instanceCount:_})=>{let u;if(u=!this.isSRAEnabled||p||this.enableSeparateRequest&&this.separateRequestDivIds.some(e=>e===i)?this.defineSlot(e,t,i,s,n,c,a):this.definedAtsSlots[i],u){if(d&&await this.waitDisplaySlot(i,h,l),await this.setPPIDPromise,gptLogger.log("call display for: ",i),googletag.display(i),o&&this.callbacksOnSlotRenderEnded.push(t=>{t.slot===u&&(gptLogger.log(`render slot \npath: ${e} \nslotId: ${i}`),o(t))}),p)await this.infiniteHb([u]);else if(googletag.pubads().isInitialLoadDisabled()&&this.isSRAEnabled&&this.enableSeparateRequest){if(await this.tagServices.shouldBlockRefresh)return void gptLogger.error("not refresh ads because of keyword block");await this.prebid.onFirstPrebidResponseEnded&&this.prebid.setTargetingForEachSlot(i);await this.aps.onFirstApsResponseEnded&&this.aps.setTargeting(),this.refreshAds([u],!1,!1)}if(this.enableAdRecovery&&this.tagServices.adObserver.observe(g,_),r)try{r(u)}catch(e){gptLogger.error(e)}}},this.lazyLoadCallback=(e,t,i,s,n,a)=>()=>{a||window.requestAnimationFrame(()=>{const o=t.getBoundingClientRect(),r=o.top-window.innerHeight,d=o.bottom,l=this.calcDistance(s,n,t);this.shouldCallDisplay(r,d,l)&&(e(),window.removeEventListener("scroll",this.lazyLoadCallbacks[i])),a=!1}),a=!0},this.waitDisplaySlot=async(e,t,i)=>await new Promise(s=>{const n=document.querySelector(`#${e}`);gptLogger.log(`waiting display ad slots:${e}`);const a=throttle(this.lazyLoadCallback(()=>{s()},n,e,i,t,!1),THROTTLE_TIME);this.lazyLoadCallbacks[e]=a,window.addEventListener("scroll",a)}),this.shouldCallDisplay=(e,t,i)=>Math.abs(e)2===e?window.innerHeight*t:i.offsetTop*t/100,this.reset=e=>{try{e?0{googletag=window.googletag=window.googletag||{},googletag.cmd=googletag.cmd||[],this.addGoogletagEventListner()},1e4);const t=e.siteSetting.publisherProvidedSignal;t&&this.setTargeting(t.key,t.value),this.setPPIDPromise=this.setPPID(e.siteSetting.ppidServerUrl,e.siteSetting.ppidCustomJs)}async callOutOfPageSlotWrapper(e){const t=[e.adUnitPath,...e.autoAdUnitPaths];if(1==t.length)this.callOutOfPageSlot(e);else{const i=t.values();let s=i.next();for(;s.value;){const t=await new Promise(t=>{const i={...e,adUnitPath:s.value??""};this.callOutOfPageSlot(i,e=>{t(e)})});if(s=i.next(),!t.isEmpty||s.done)break;googletag.destroySlots([t.slot])}}}async callOutOfPageSlotforMulticall({adUnitPath:e,position:t,setTargetingConfigs:i}){gptLogger.log(`call defineOutOfPageSlot adUnitPath: ${e}, position: ${t}`);const s=googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat[t]);if(s)return this.atsSlots.push(s),s.addService(googletag.pubads()),this.setTargetingForEachSlot(s,i),googletag.display(s),googletag.pubads().isInitialLoadDisabled()&&this.refreshAds([s]),new Promise(e=>{this.callbacksOnSlotRenderEnded.push(t=>{t.slot===s&&(gptLogger.log(`render slot \npath: ${s.getAdUnitPath()}`),e(t))})})}get extractAtsSlots(){const e=[];return googletag.pubads().getSlots().forEach(t=>{const i=t.getSlotElementId(),s=t.getAdUnitPath();(this.configManager.gptSlotConfigs.some(e=>e.divId===i)||this.configManager.gptOutOfPageSettings.some(e=>e.adUnitPath===s))&&e.push(t)}),e}}Gpt.extractLazyPBOnly=(e,t)=>{const i=[],s=Object.keys(t).reduce((s,n)=>{const a=t[n].divIDType,o=t[n].inViewRefresh;let r;if("Function"===a)try{const e=(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.uf)(n);if(null===e)return gptLogger.warn("Function selector returned non-string or empty value, skipping slot."),s;r=e}catch(e){return gptLogger.error("The script to find the target failed.",e),s}else r=n;let d=null;try{d=document.getElementById(r)||document.querySelector(`#${r}`)}catch(e){}return d&&e.find(e=>e.getSlotElementId()===r)&&!o||(s[n]={divIDType:a,inViewRefresh:o},i.push(r)),s},{});return{notFoundPrebidOnlySlotsDivIds:i,notFoundPBOnlySlotMap:s}},Gpt.isIntersected=e=>new Promise(t=>{new IntersectionObserver((e,i)=>{e[0].isIntersecting&&(i.disconnect(),t(!0))},{root:null,rootMargin:"0px",threshold:0}).observe(e)});const __WEBPACK_DEFAULT_EXPORT__=Gpt},655(e,t,i){i.d(t,{N:()=>s});class s{constructor(){this.prebidOnlySlotsDivIds=[],this.getVastUrl=e=>{const t=e.sz?e.sz.map(e=>e.join("x")).join("|"):"320x180",i=e.ciu_szs?e.ciu_szs.map(e=>e.join("x")).join(","):"",s={...e,sz:t,ciu_szs:i};return"https://securepubads.g.doubleclick.net/gampad/ads?"+new URLSearchParams(s).toString()}}get ppid(){return this._ppid}}},335(e,t,i){i.d(t,{vF:()=>r});var s=i(581),n=i(348);const a="ats_pbjs_debug";class o extends s.V{constructor(e,t){super(e,t),this.enableLog=n.sp,this.isDev=n.Cu,this.getSlotInfo=(e,t)=>{this.log(e,`adUnitPath: ${t.getAdUnitPath()}\n slotElementId: ${t.getSlotElementId()}`)},this.setPrebidLog=(e=!this.enablePrebidLog)=>{e?window.sessionStorage?.setItem(a,"true"):window.sessionStorage?.removeItem(a),location.reload()},this.enablePrebidLog="true"===window.sessionStorage?.getItem(a)}setDecoration(e){this.decorate=[`%c${e}%c${this.label}`,this.labelStyle("#fff","#1567b3"),this.labelStyle("#000","#aaa")]}}const r=new o("Ads",n.sp)},903(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{h:()=>TagServices});var _libs_SiteSettings__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(722),_libs_ads_InsertAds__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(456),_libs_ads_Overlay__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(101),_libs_ads_Interstitial__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(463),_libs_ads_Skyscraper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(284),_libs_ads_AdxInterstitial__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(840),_libs_ads_AdxOverlay__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(404),_libs_ads_AdxReward__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(297),_Logger__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(335),_libs_Prebid__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(326),_libs_Aps__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(34),_Gpt__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(554),_TargetObserver__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(356),_AdObserver__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(8),_ConfigManager__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(114),_Debug__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(348),_core_utils_util__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(939),_libs_WaitUntilJSLoaded__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(197),_libs_ads_Parallax__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(862),_libs_ads_ReplaceAds__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(67),_libs_ads_Slider__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(476),_FunctionTargeting__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(472),_libs_ads_InsertVideo__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(389),_VideoManager__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(561),_config_thirdPartyVideoPlayer__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(641);const queFunc=e=>{try{e()}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.error(e)}},callFnAfterDomContentLoaded=e=>{if("loading"!==document.readyState)e();else{const t=()=>{document.removeEventListener("DOMContentLoaded",t),e()};document.addEventListener("DOMContentLoaded",t)}};class TagServices{constructor(originalConfigs){this.originalConfigs=originalConfigs,this.INTERSTITIAL_BLOCK_AD_INSTANCE_COUNT=1e4,this.atsLogger=_Logger__WEBPACK_IMPORTED_MODULE_8__.vF,this.setDev=_Debug__WEBPACK_IMPORTED_MODULE_15__.KB,this.run=!1,this.que={push:queFunc},this.infinite={},this.shouldCallKeywordBlock=!1,this.instances=[],this.shouldBlockRefresh=!1,this.disposed=!1,this.loaded=!0,this.start=async()=>{if(this.disposed=!0,this.siteSettings.browsersBlock())return void _Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log("browser block");if(this.siteSettingsConfig.enableUrlBlock&&(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_16__.UW)(this.siteSettingsConfig.blockedUrls,this.configManager.currentUrl))return void _Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log("url Block");const{enablePrebid,prebidSettings,enablePrebidGate,prebidGateExpression}=this.siteSettingsConfig,headerBiddingAllowed=(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_16__.jX)(enablePrebidGate,prebidGateExpression);headerBiddingAllowed||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log("prebid gate block"),this.waitUntilJSLoaded=headerBiddingAllowed?(0,_libs_WaitUntilJSLoaded__WEBPACK_IMPORTED_MODULE_17__.A)(this.siteSettingsConfig):void 0,this.configManager.filterConfig(),_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log("config: ",this.configManager),_VideoManager__WEBPACK_IMPORTED_MODULE_23__.f.registerVideoUrls(this.siteSettingsConfig.videoJsUrl,this.siteSettingsConfig.videoCssUrl),this.adObserver.init(this.siteSettingsConfig),this.gpt.init(this.configManager),enablePrebid&&headerBiddingAllowed&&(this.prebid.init(this.configManager.filteredPrebidOnlySettings,this.waitUntilJSLoaded),prebidSettings.prebidTamPubId&&this.aps.init(this.configManager.filteredTamSettings,this.waitUntilJSLoaded));const shouldCallGPTDisableInitialLoad=this.prebid.isCalled&&!this.prebid.noAdUnits||this.aps.isCalled&&!this.aps.noSlots||this.shouldCallKeywordBlock||this.siteSettingsConfig.enableGamDisableInitialLoad||!headerBiddingAllowed;this.siteSettings.callSiteLevelSetting(shouldCallGPTDisableInitialLoad,this.configManager.apmConfig,this.configManager.gptSlotConfigsForSRA,this.configManager.gptOutOfPageSettings,this.waitUntilJSLoaded);const shouldBlockCallAtsAds=await this.checkKeywordBlock();if(shouldBlockCallAtsAds)return;await this.callAdsFunctions(this.configManager.configsForCurrentPage);const customScriptAfterATSRun=this.siteSettingsConfig.customScript;if(customScriptAfterATSRun)try{eval(customScriptAfterATSRun)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.error("Site settings custom script failed",e)}},this.getRandomInteger=()=>Math.floor(100*Math.random())+1,this.choosePlayer=(e,t,i,s,n,a)=>{const o=this.getRandomInteger();return o<=e?1:o<=e+t?2:o<=e+t+i?3:o<=e+t+i+s?5:o<=e+t+i+s+n?6:o<=e+t+i+s+n+a?7:4},this.waitAdsBlockInterstitial=async(e,t=!1)=>{const i=e.find(e=>!t&&"interstitial"===e.type&&(e.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)&&e.settings.blockWithoutAds);return i&&await new Promise(e=>{this.executeInterstitial(i.settings,this.INTERSTITIAL_BLOCK_AD_INSTANCE_COUNT,e)}),e.filter(e=>e!==i)},this.callAdsFunctions=async(newConfigs,element=document,infinite=!1,keys=[])=>{const configs=await this.waitAdsBlockInterstitial(newConfigs,infinite);configs.forEach((config,index)=>{if(infinite||"interstitial"!==config.type||!config.active&&!_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev||this.executeInterstitial(config.settings,index),!infinite&&"overlay"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const e=new _libs_ads_Overlay__WEBPACK_IMPORTED_MODULE_2__.h(this.gpt,config.settings,index,this.adObserver);this.instances.push(e),callFnAfterDomContentLoaded(()=>{e.execute()})}if("skyscraper"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const{selector:e,targetType:t,adUnitPath:i}=config.settings,s=0===keys.length||keys.includes(i);if(!infinite||!this.infinite[i]&&s){const e=new _libs_ads_Skyscraper__WEBPACK_IMPORTED_MODULE_4__.G(this.gpt,config.settings,index,this.adObserver);this.instances.push(e),this.infinite[i]=e}if(infinite&&s)this.infinite[i].execute(element,infinite);else if(!infinite){const s=this.infinite[i];_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(e,t,e=>{s.execute(e)})}}if("insert_ads"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const{selector:e,targetType:t,adUnitPath:i}=config.settings,s=0===keys.length||keys.includes(i);if(!infinite||!this.infinite[i]&&s){const e=new _libs_ads_InsertAds__WEBPACK_IMPORTED_MODULE_1__.W(this.gpt,config.settings,index,this.adObserver);this.instances.push(e),this.infinite[i]=e}if(infinite&&s)this.infinite[i].execute(element,infinite);else if(!infinite){const s=this.infinite[i];_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(e,t,e=>{s.execute(e)})}}if(infinite||"insert_video"!==config.type||!config.active&&!_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev||(config.settings.lazyRendering?(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_16__.m$)(()=>this.executeVideo(config.settings)):this.executeVideo(config.settings)),"replace_ads"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const{selector:e,targetType:t,adUnitPath:i}=config.settings,s=0===keys.length||keys.includes(i);if(!infinite||!this.infinite[i]&&s){const e=new _libs_ads_ReplaceAds__WEBPACK_IMPORTED_MODULE_19__.N(this.gpt,config.settings,index,this.adObserver);this.instances.push(e),this.infinite[i]=e}if(infinite&&s)this.infinite[i].lazyExecute(config.settings.replaceTime,element,infinite);else if(!infinite){const s=this.infinite[i];_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(e,t,e=>{s.lazyExecute(config.settings.replaceTime,e,!0)})}}if("parallax"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const{selector:e,targetType:t,adUnitPath:i}=config.settings,s=0===keys.length||keys.includes(i);if(!infinite||!this.infinite[i]&&s){const e=new _libs_ads_Parallax__WEBPACK_IMPORTED_MODULE_18__.k(this.gpt,config.settings,index,this.adObserver);this.instances.push(e),this.infinite[i]=e}if(infinite&&s)this.infinite[i].execute(element,infinite);else if(!infinite){const s=this.infinite[i];_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(e,t,e=>{s.execute(e)})}}if(!infinite&&"slider"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const e=new _libs_ads_Slider__WEBPACK_IMPORTED_MODULE_20__.A(this.gpt,config.settings,index,this.adObserver);this.instances.push(e);const{selector:t,targetType:i}=config.settings;_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(t,i,t=>{e.execute(t)})}if(!infinite&&"adx_inst"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const e=new _libs_ads_AdxInterstitial__WEBPACK_IMPORTED_MODULE_5__.A(this.gpt);this.instances.push(e),e.execute(config.settings)}if(!infinite&&"adx_overlay"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const e=new _libs_ads_AdxOverlay__WEBPACK_IMPORTED_MODULE_6__.A(this.gpt);this.instances.push(e),e.execute(config.settings)}if(!infinite&&"adx_reward"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const{selector:e,targetType:t}=config.settings,i=new _libs_ads_AdxReward__WEBPACK_IMPORTED_MODULE_7__.A(this.gpt,config.settings,index);_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(e,t,e=>{i.execute(e)}),this.instances.push(i)}if(!infinite&&"apm"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){const e=new _libs_ads_InsertAds__WEBPACK_IMPORTED_MODULE_1__.W(this.gpt,config.settings,index,this.adObserver),{selector:t,targetType:i}=config.settings;_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(t,i,t=>{e.execute(t)})}if(!infinite&&"custom"===config.type&&(config.active||_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.isDev)){if(config.settings.script)try{eval(config.settings.script)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.error("custom script failed",e)}config.settings.style&&(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_16__.TD)(config.settings.style)}})},this.executeVideo=e=>{const{thirdPartyVideoPlayerSettings:t,youtubeChannelFeedUrl:i,videoSource:s,divIDs:n,amVideoFeed:a,generatedVideosFeedJsonUrl:o,selector:r,insertPosition:d,targetType:l}=e,h=t[1]?.frequency||0,c=t[2]?.frequency||0,p=t[3]?.frequency||0,g=t[5]?.frequency||0,_=t[6]?.frequency||0,u=t[7]?.frequency||0,m=this.choosePlayer(h,c,p,g,_,u);if(1===m){if(e.adUnitPath){1===s&&i?_VideoManager__WEBPACK_IMPORTED_MODULE_23__.f.fetchYTVideoFeed(i):2===s&&a?_VideoManager__WEBPACK_IMPORTED_MODULE_23__.f.registerAMVideoFeed(a,n[0]):3===s&&o&&_VideoManager__WEBPACK_IMPORTED_MODULE_23__.f.fetchGeneratedVideoFeed(o);const t=new _libs_ads_InsertVideo__WEBPACK_IMPORTED_MODULE_22__.b(this.gpt,e,this.prebid);this.instances.push(t),this.infinite[e.adUnitPath]=t,_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(r,l,e=>{t.execute(e,!1)})}}else _TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.waitForElement(r,l,()=>{const e=new _config_thirdPartyVideoPlayer__WEBPACK_IMPORTED_MODULE_24__.k(m,l,r,d,t[m]);e.insertThirdPartyVideoPlayer(),this.instances.push(e);const i=t[m].custom_css;i&&(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_16__.TD)(i)})},this.executeInterstitial=(interstitialSetting,instanceCount,resolve)=>{const interstitial=new _libs_ads_Interstitial__WEBPACK_IMPORTED_MODULE_3__.R(this.gpt,interstitialSetting,instanceCount,resolve);if(this.instances.push(interstitial),callFnAfterDomContentLoaded(()=>{interstitial.execute()}),interstitialSetting.script)try{eval(interstitialSetting.script)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.error("inst: custom script failed",e)}},this.getAdUnitId=e=>{const t=this.originalConfigs.configs.find(t=>"adUnitId"in t.settings&&"adUnitPath"in t.settings&&t.settings.adUnitPath===e);if(t&&"adUnitId"in t.settings)return t.settings.adUnitId},this.executeInfinite=async(e,t=[])=>{this.configManager.filterConfig(),await this.checkKeywordBlock(e)||this.callAdsFunctions(this.configManager.configsForCurrentPage,e,!0,t)},this.dispose=e=>{this.instances.forEach(e=>e.dispose()),this.instances.splice(0);for(const e in this.infinite)delete this.infinite[e];this.gpt.reset(e),this.prebid.reset(),this.aps.reset(),_TargetObserver__WEBPACK_IMPORTED_MODULE_12__.c.reset(),_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.reset(),this.shouldBlockRefresh=!1,this.disposed=!1,_FunctionTargeting__WEBPACK_IMPORTED_MODULE_21__.O.dispose(),_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log("disposed")},_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log("original config: ",originalConfigs),this.configManager=new _ConfigManager__WEBPACK_IMPORTED_MODULE_14__.m(originalConfigs),this.siteSettingsConfig=this.configManager.siteSetting;const{keywordsBlock}=this.siteSettingsConfig;this.shouldCallKeywordBlock=!(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_16__.ze)(keywordsBlock),this.prebid=new _libs_Prebid__WEBPACK_IMPORTED_MODULE_9__.A(this.siteSettingsConfig.prebidSettings,this.siteSettingsConfig.siteId,this.siteSettingsConfig.parentAccountSiteDomain,this.configManager.prebidAnalyticsConfig,this.siteSettingsConfig.applyGDPR),this.aps=new _libs_Aps__WEBPACK_IMPORTED_MODULE_10__.A(this.siteSettingsConfig.prebidSettings.prebidTimeout,this.siteSettingsConfig.prebidSettings.prebidTamPubId,this.siteSettingsConfig.prebidSettings.sellerId,this.siteSettingsConfig.parentAccountSiteDomain),this.gpt=new _Gpt__WEBPACK_IMPORTED_MODULE_11__.Ay(this,this.prebid,this.aps),this.siteSettings=new _libs_SiteSettings__WEBPACK_IMPORTED_MODULE_0__.p(this.gpt,this.siteSettingsConfig),this.instances.push(this.siteSettings),this.hb=this.gpt.infiniteHb,this.forceHB=this.gpt.forceHB,this.adObserver=new _AdObserver__WEBPACK_IMPORTED_MODULE_13__.A(this.gpt)}async checkKeywordBlock(e){const{keywordsBlock:t}=this.siteSettingsConfig;if(this.shouldCallKeywordBlock){const i=t.keywordsCountry;return this.shouldBlockRefresh=i&&i.length>0?this.siteSettings.fetchKeywordJson(e):this.siteSettings.callKeywordBlocks(e),this.shouldBlockRefresh.then(e=>(_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log(e?"[BLOCK]":"[UN-BLOCK]"),e))}return!1}}},356(e,t,i){i.d(t,{c:()=>o});var s=i(939),n=i(335);const a={childList:!0,subtree:!0};const o=new class{constructor(){this.MUTATION_OBSERVER_TIMEOUT=12e5,this.mutationObserver=null,this.elementListeners=[],this.connect=()=>{this.mutationObserver=(0,s.l9)(this.check.bind(this),50),this.mutationObserver.observe(document,a),this.disconnectTimeoutId=window.setTimeout(this.disconnect.bind(this),this.MUTATION_OBSERVER_TIMEOUT),this.check()},this.disconnect=()=>{null!==this.mutationObserver&&(this.mutationObserver.disconnect(),n.vF.log("MutationObserver disconnected"),this.mutationObserver=null,this.disconnectTimeoutId&&(window.clearTimeout(this.disconnectTimeoutId),delete this.disconnectTimeoutId),this.check())},this.check=()=>{if(0!==this.elementListeners.length){const e=this.elementListeners.slice();for(let t=e.length-1;t>=0;t--){const{selector:i,targetType:a,fn:o}=e[t],r=(0,s.EW)(window.document,i,a);if(null!=r){try{o(window.document)}catch(e){n.vF.error(e)}this.elementListeners.splice(t,1)}}}},this.waitForElement=(e,t,i)=>{this.elementListeners.push({selector:e,targetType:t,fn:i}),this.mutationObserver||this.connect(),this.check()},this.reset=()=>{try{this.disconnect(),delete this.disconnectTimeoutId;for(let e=0;ea});var s=i(335);class n extends Error{constructor(e,t){super(e),this.res=t,this.errorHandler=()=>{switch(this.res.status){case 404:s.vF.error("no file");break;case 403:s.vF.error("no permission");break;default:s.vF.log(this.res)}},s.vF.log(t),this.errorHandler()}}const a=new class{constructor(){this.videoJs="",this.videoCss="",this.ytFeedJson={},this.amFeedJson={},this.generatedVideoJson={},this.selectedVideoFeedJson={},this.insertedVideoTag=!1,this.registerVideoUrls=(e,t)=>{this.videoJs=e,this.videoCss=t},this.registerSelectedVideos=(e,t)=>{this.selectedVideoFeedJson[t]=e},this.chooseVideoRandomlyFromSelected=async(e,t)=>{const i=this.selectedVideoFeedJson[e][Math.floor(Math.random()*this.selectedVideoFeedJson[e].length)];return(await this.ytFeedJson[t]).videos[i.video_id]},this.chooseVideoByIndexFromSelected=async(e,t,i)=>{const s=this.selectedVideoFeedJson[e];if(!s||0===s.length)return;const n=s[s.length{this.ytFeedJson[e]||(this.ytFeedJson[e]=fetch(e).then(e=>{if(!e.ok)throw new n("fetch error",e);return e.json()}).catch(()=>""))},this.fetchGeneratedVideoFeed=e=>{this.generatedVideoJson[e]||(this.generatedVideoJson[e]=fetch(e).then(e=>{if(!e.ok)throw new n("fetch error",e);return e.json()}).catch(()=>""))},this.registerAMVideoFeed=(e,t)=>{this.amFeedJson[t]=e},this.chooseAMVideoEntryByIndex=(e,t)=>{const i=this.amFeedJson[e].lengththis.amFeedJson[e][Math.floor(Math.random()*this.amFeedJson[e].length)],this.chooseLatestPublishedYTVideoEntry=e=>this.ytFeedJson[e].then(e=>Object.keys(e.videos).map(t=>e.videos[t]).reduce((e,t)=>t.published_at?Date.parse(e.published_at)>Date.parse(t.published_at)?e:t:e)),this.chooseRandomYTVideoEntry=e=>this.ytFeedJson[e].then(e=>{const t=Object.keys(e.videos).map(t=>e.videos[t]);return t[Math.floor(Math.random()*t.length)]}),this.chooseGeneratedFeedVideoEntry=(e,t,i)=>this.generatedVideoJson[e].then(e=>{const s=Object.keys(e.videos).filter(e=>t.some(t=>e==t)),n=s.length({id:t,entry:e.videos[t]}))[n]}),this.insertVideoTag=async()=>{if(this.insertedVideoTag)return;const e=(e,t)=>new Promise(i=>{if("style"===e){const e=document.createElement("link");e.href=t,e.rel="stylesheet",e.setAttribute("ats-videojs","true"),e.onload=()=>i(),document.head.append(e)}else{const e=document.createElement("script");e.src=t,e.setAttribute("ats-videojs","true"),e.onload=()=>i(),document.head.append(e)}});await Promise.all([e("style",this.videoCss),e("script","https://imasdk.googleapis.com/js/sdkloader/ima3.js"),e("script",this.videoJs)]),this.insertedVideoTag=!0}}}},292(e,t,i){i.d(t,{D0:()=>m,Dw:()=>b,Hi:()=>v,L1:()=>o,PI:()=>d,PL:()=>g,Rv:()=>c,UH:()=>y,W:()=>h,X1:()=>l,Xx:()=>_,ap:()=>s,fX:()=>n,ku:()=>u,pt:()=>p,qp:()=>f,yN:()=>r,z1:()=>a});const s={USD:{USD:1,HKD:7.75,JPY:110,PHP:51.22,SGD:1.4,CNY:6.9,THB:34,MYR:4.24,IDR:14710,EUR:.9}},n=[{bidder:"criteo"},{bidder:"ix",versions:["5"]},{bidder:"openx"}],a={buckets:[{precision:2,min:0,max:4,increment:.01},{precision:2,min:4,max:20,increment:.1}]},o={adgeneration:{bidCpmAdjustment:e=>.85*e},standard:{storageAllowed:!0},nexx360:{allowAlternateBidderCodes:!0,allowedAlternateBidderCodes:["*"],adserverTargeting:[{key:"nexx360_ssp",val:e=>e.meta?.demandSource||""}]}},r={alwaysUseBid:!0,sendStandardTargeting:!1,suppressEmptyKeys:!0,adserverTargeting:[{key:"adt",val:e=>e.adt},{key:"alc",val:e=>e.alc},{key:"dlm",val:e=>e.dlm},{key:"drg",val:e=>e.drg},{key:"hat",val:e=>e.hat},{key:"off",val:e=>e.off},{key:"vio",val:e=>e.vio},{key:"fr",val:e=>e.fr},{key:"id",val:e=>e.slots[e.adUnitCode].id},{key:"vw",val:e=>e.slots[e.adUnitCode].vw},{key:"grm",val:e=>e.slots[e.adUnitCode].grm},{key:"pub",val:e=>e.slots[e.adUnitCode].pub},{key:"vw05",val:e=>e.slots[e.adUnitCode].vw05},{key:"vw10",val:e=>e.slots[e.adUnitCode].vw10},{key:"vw15",val:e=>e.slots[e.adUnitCode].vw15},{key:"vw30",val:e=>e.slots[e.adUnitCode].vw30}]},d=["criteo","pubmatic","unruly","ix"],l={maxTopicCaller:2,bidders:[{bidder:"pubmatic",iframeURL:"https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html",expiry:7},{bidder:"yandex",iframeURL:"https://yandex.ru/ads/prebid/topics_frame.html",expiry:7}]},h="pubstack_server",c="https://prebid-server.pbstck.com/openrtb2/auction",p="https://prebid-server.pbstck.com/cookie_sync",g="prebidServer",_=1408,u="https://boot.pbstck.com/v1/tag",m=["relaido","teads"],b=["ogury"],f=/^ats-insert_ads_flexible-\d+-\d+(-\d+)?$/,v=/^ats-insert_ads_flexible-\d+-[1-9]+(-\d+)?$/,y=/^ats-insert_ads_flexible-\d+-[2-9]+(-\d+)?$/},641(e,t,i){i.d(t,{k:()=>o});var s=i(939),n=i(335);const a=/\/\/a\.vdo\.ai\/core\/(?v-.+)\/vdo\.ai\.js$/g;class o{constructor(e,t,i,o,r){this.type=e,this.targetType=t,this.selector=i,this.insertPos=o,this.thirdPartyVideoPlayerSetting=r,this.className="ats-select-media-wrapper",this.id="ats-third-party-wrapper",this.zeltoId="",this.insertThirdPartyVideoPlayer=()=>{const e=(0,s.EW)(document,this.selector,this.targetType);if(e&&(n.vF.log("insert third party player"),(6!==this.type||this.thirdPartyVideoPlayerSetting.pub_key&&this.thirdPartyVideoPlayerSetting.site_key)&&(7!==this.type||this.zeltoId))){switch(this.type){case 2:this.className="ats-trvd-wrapper";break;case 3:this.className="ats-glia-wrapper";break;case 5:this.className="ats-vdoai-wrapper";break;case 6:this.className="ats-browsi-video-wrapper";break;case 7:this.className="ats-zelto-video-wrapper"}this.createWrapper(this.type,this.className,this.thirdPartyVideoPlayerSetting.width||360,this.thirdPartyVideoPlayerSetting.slot||"",this.thirdPartyVideoPlayerSetting.max_height||360,this.insertPos,e),7===this.type&&this.callZeltoFn(this.zeltoId)}},this.callZeltoFn=e=>{const t=window.adpushup=window.adpushup||{};t.que=t.que||[],t.que.push(function(){t.triggerAd(e)})},this.createWrapper=(e,t,i,s,n,o,r)=>{const d=document.createElement("div");if(this.wrapDiv=d,d.className=t,d.id=this.id,[5,7].includes(e)||(d.style.width=`${i}px`,d.style.margin="20px auto"),3==e){const e=document.createElement("div");e.className="gliaplayer-container",e.dataset.slot=s,d.append(e),s=`https://player.gliacloud.com/player/${s}`}else if(5==e){const e=document.createElement("div"),t=a.exec(s);if(t){const i=t.groups&&t.groups.vdoAiId;e.id=i||"",d.append(e)}}else if(6==e){const e=document.createElement("div");e.id="browsi",d.append(e),r.insertAdjacentElement(o,d)}else if(7===e){const e=document.createElement("div");e.id=this.zeltoId,e.className="_ap_apex_ad",e.style.maxHeight=n+"px",d.append(e),r.insertAdjacentElement(o,d)}const l=document.createElement("script");l.type="text/javascript",l.async=!0,2==e?l.dataset.cfasync="false":5==e?(l.defer=!0,s=window.location.protocol+s):6==e&&this.thirdPartyVideoPlayerSetting.pub_key&&this.thirdPartyVideoPlayerSetting.site_key?(l.id="browsi-tag",l.setAttribute("data-pubKey",this.thirdPartyVideoPlayerSetting.pub_key),l.setAttribute("data-siteKey",this.thirdPartyVideoPlayerSetting.site_key),s="https://cdn.browsiprod.com/bootstrap/bootstrap.js"):7===e&&(l.setAttribute("data-cfasync","false"),l.crossOrigin="anonymous"),l.src=s,d.append(l),r.insertAdjacentElement(o,d)},this.dispose=()=>{this.wrapDiv&&this.wrapDiv.remove()},7===this.type&&(this.zeltoId=this.thirdPartyVideoPlayerSetting.pub_key||"")}}},34(e,t,i){i.d(t,{A:()=>a});var s=i(335),n=i(939);class a{constructor(e,t,i,a){this.timeout=e,this.apsPubId=t,this.sellerId=i,this.parentAccountSiteDomain=a,this.isCalled=!1,this.noSlots=!1,this.onFirstApsResponseEnded=null,this.slotsDict={},this.configs=[],this.init=(e,t)=>{this.configs=e,this.waitUntilJSLoaded=t,this.isCalled||(this.isCalled=!0,this.loadAps()),window.apstag.init({pubID:this.apsPubId,adServer:"googletag",schain:this.getSchain()});const i=this.createParameters(this.configs,!1);if(0===i.length)return this.noSlots=!0,void s.vF.error("aps: no slots");this.onFirstApsResponseEnded=this.fetchApsBids(i)},this.getSchain=()=>({complete:1,ver:"1.0",nodes:[{asi:this.parentAccountSiteDomain,sid:this.sellerId,hp:1}]}),this.callExternalScript=()=>{const e=e=>{try{e()}catch(e){s.vF.error(e)}};window.anymindTSApstag=window.anymindTSApstag||{cmd:[]},window.anymindTSApstag.cmd.forEach(e),window.anymindTSApstag.cmd.splice(0),window.anymindTSApstag.cmd.push=e},this.loadAps=()=>{this.insertApsScriptTag("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js")},this.setTargeting=()=>{s.vF.log("aps: setTargeting"),window.apstag.setDisplayBids()},this.fetchApsBids=e=>{const t=new Promise(t=>{try{window.apstag.fetchBids({slots:e,timeout:this.timeout},e=>{s.vF.log("aps: return bids",e),t(!0)})}catch(e){s.vF.error("aps: fetchBids failed",e),t(!1)}}),i=new Promise(e=>{setTimeout(()=>{s.vF.log(`aps: fetchBids timeout: ${this.timeout+500}ms`),e(!1)},this.timeout+500)});return Promise.race([t,i])},this.createParameters=(e,t)=>{const i=[];for(const a of e)if(t||a.active||s.vF.isDev)for(const e of a.settings.tamAdUnits)if((0,n.hg)(e.deviceSizes)){let t=e.slot.slotID;if("Function"===e.slot.divIDType)try{const e=(0,n.uf)(t);if(null===e){s.vF.warn("aps: Function selector returned non-string or empty value, skipping slot.");continue}t=e}catch(e){s.vF.error("aps: The script to find the target failed.",e);continue}const a={slotID:t,slotName:e.slot.slotName,slotParams:{gpid:e.slot.slotName},sizes:e.slot.sizes.filter(e=>e.enable||s.vF.isDev).reduce((e,t)=>{for(const[i,s]of t.sizes)e.push([i,s]);return e},[])};if(a.sizes.length<=0)continue;this.slotsDict[a.slotName]=a,i.push(a);break}return s.vF.log("aps: slots",i),s.vF.log("aps: slots dict",this.slotsDict),i},this.reset=()=>{this.onFirstApsResponseEnded=null,this.noSlots=!1}}async insertApsScriptTag(e,t,i,s,n){if(t[e])return;function a(i,s){t[e]._Q.push([i,s])}t[e]={init:function(){a("i",arguments)},fetchBids:function(){a("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},dpa:function(){a("di",arguments)},rpa:function(){a("ri",arguments)},upa:function(){a("ui",arguments)},_Q:[]},this.callExternalScript();await this.waitUntilJSLoaded,(()=>{const e=i.createElement(s);e.async=!0,e.src=n;const t=i.getElementsByTagName(s)[0];t.parentNode?.insertBefore(e,t)})()}}},326(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:()=>Prebid});var _Logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(335),_core_utils_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(939),_config_prebid__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(292),_Gpt__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(554);class Prebid{constructor(prebidSettings,siteId,parentAccountSiteDomain,prebidAnalyticsConfig,applyGDPR){this.prebidSettings=prebidSettings,this.siteId=siteId,this.parentAccountSiteDomain=parentAccountSiteDomain,this.prebidAnalyticsConfig=prebidAnalyticsConfig,this.applyGDPR=applyGDPR,this.isCalled=!1,this.noAdUnits=!1,this.onFirstPrebidResponseEnded=null,this.adUnitsDict={},this.adUnitsCodeDict={},this.configs=[],this.adagioOrganizationId="",this.adagioSite="",this.init=(configs,waitUntilJSLoaded)=>{this.configs=configs,this.noAdUnits=!1;const adUnits=this.createParamaters(this.configs,!1);this.setUpAdagio(adUnits),this.prebidSettings.prebidUseAtspbjs?this.pbjs=window.atspbjs=window.atspbjs||{que:[]}:this.pbjs=window.pbjs=window.pbjs||{que:[]},this.isCalled||(this.isCalled=!0,waitUntilJSLoaded?waitUntilJSLoaded.then(()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.nL)(!0,this.prebidSettings.prebidJsURL)}):(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.nL)(!0,this.prebidSettings.prebidJsURL)),this.onFirstPrebidResponseEnded=new Promise(resolve=>{let resolved=!1;const resolveOnce=()=>{resolved||(resolved=!0,resolve(!0))};try{window.setTimeout(()=>{resolved||(_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("prebid 6000ms timeout"),resolveOnce())},6e3),this.pbjs.que.push(async()=>{_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log(this.prebidSettings.prebidUseAtspbjs?"atspbjs":"pbjs","Prebid.js",this.pbjs.version),this.prebidSettings.enableSchain&&this.setSchain(this.configs,!1),this.prebidSettings.criteoPublisherId&&this.setCriteoPublisherId(this.prebidSettings.criteoPublisherId),this.pbjs.aliasBidder("appnexus","dg"),this.pbjs.aliasBidder("appnexus","xandr"),this.pbjs.aliasBidder("microad","microad_wipe"),this.pbjs.aliasBidder("microad","microad_irs"),this.pbjs.bidderSettings=_config_prebid__WEBPACK_IMPORTED_MODULE_2__.L1;const prebidConfig=this.createPrebidConfig(this.prebidSettings);if(this.enableFledgeModule(),this.pbjs.setConfig(prebidConfig),this.configs.some(({settings:e})=>e.prebidAdUnits.some(({deviceSizes:e,atsPrebidAdUnits:t})=>(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.hg)(e)&&t.some(({bids:e})=>e.some(({bidder:e})=>"ias"===e))))&&(this.pbjs.bidderSettings.ias=_config_prebid__WEBPACK_IMPORTED_MODULE_2__.yN),this.prebidSettings.prebidCustomScript)try{eval(this.prebidSettings.prebidCustomScript)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("custom script for prebid",e)}(this.prebidSettings.prebidUseAtspbjs||this.prebidSettings.useSafeFrame)&&this.modifyKeyValue(prebidConfig.priceGranularity,this.prebidSettings.prebidUseAtspbjs,this.prebidSettings.useSafeFrame);const analytics=[];if(this.prebidSettings.enableAnalytics&&analytics.push(this.enableAnyMindPrebidAnalytics(this.prebidAnalyticsConfig.adUnitIdPathMapping,this.prebidAnalyticsConfig.amPrebidBidderMap,this.prebidSettings.analyticsSamplingRate,this.prebidSettings.ampaEndPoint)),0e.code);await this.sendBids(adUnits,adUnitCodes),resolveOnce()})}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error(e),resolveOnce()}})},this.setUpAdagio=e=>{for(const t of e){const e=t.bids.find(e=>"adagio"===e.bidder);if(e){this.adagioOrganizationId=e.params.organizationId,this.adagioSite=e.params.site;break}}},this.enableAnyMindPrebidAnalytics=(e,t,i,s)=>({provider:"anymind",options:{sampling:i,siteId:this.siteId,adUnitIdPathMappings:e,amPrebidBidderMap:t,endpoint:s}}),this.enableFledgeModule=()=>{this.pbjs.setBidderConfig({bidders:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.PI,config:{fledgeEnabled:!0,defaultForSlots:1}})},this.removeAdUnit=e=>{this.pbjs.removeAdUnit(e)},this.setTargeting=()=>{_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("pbjs: setTargeting for all"),this.pbjs.setTargetingForGPTAsync()},this.setTargetingForEachSlot=e=>{_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("pbjs: setTargeting for ",e),this.pbjs.setTargetingForGPTAsync(e)},this.buildVideoUrl=(e,t)=>{const i={adUnit:e,params:t};return this.pbjs.adServers.dfp.buildVideoUrl(i)},this.modifyKeyValue=(e,t,i=!1)=>{var s,n,a;const o="object"==typeof e?"custom":e;(s=this.pbjs).bidderSettings??(s.bidderSettings={}),(n=this.pbjs.bidderSettings).standard??(n.standard={}),(a=this.pbjs.bidderSettings.standard).adserverTargeting??(a.adserverTargeting=[]),this.pbjs.bidderSettings.standard.adserverTargeting.push({key:"hb_size",val:e=>e.size},{key:"hb_adid",val:e=>e.adId},{key:"hb_source",val:e=>e.source},{key:"hb_format",val:e=>e.mediaType},{key:"hb_uuid",val:e=>e.videoCacheKey}),t?this.pbjs.bidderSettings.standard.adserverTargeting.push({key:"ats_hb_bidder",val:e=>e.bidderCode},{key:i?"ats_hb_pb_sfc":"ats_hb_pb",val:e=>{switch(o){case"medium":default:return e.pbMg;case"high":return e.pbHg;case"custom":return e.pbCg}}},{key:"ats_hb_bid",val:()=>"true"}):this.pbjs.bidderSettings.standard.adserverTargeting.push({key:"hb_bidder",val:e=>e.bidderCode},{key:i?"hb_pb_sfc":"hb_pb",val:e=>{switch(o){case"medium":default:return e.pbMg;case"high":return e.pbHg;case"custom":return e.pbCg}}},{key:"hb_bid",val:()=>"true"}),i&&this.pbjs.bidderSettings.standard.adserverTargeting.push({key:"use_sfc",val:e=>(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.A$)()?"true":"false"}),this.pbjs.bidderSettings.standard.adserverTargeting=this.pbjs.bidderSettings.standard.adserverTargeting.filter((e,t,i)=>i.findIndex(t=>t.key===e.key)===t)},this.createPrebidConfig=({prebidCurrency,prebidPriceGranularity,prebidTimeout,prebidUserSyncScript,prebidVersion,userIds})=>{var _a;const config={enableTIDs:!0,debug:_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.enablePrebidLog,rubicon:{singleRequest:!0},criteo:{fastBidVersion:"latest"},enableSendAllBids:!1,...(()=>{try{if(prebidUserSyncScript)return{userSync:eval(prebidUserSyncScript)}}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("Error in Prebid userSync Script",e)}})(),currency:{adServerCurrency:prebidCurrency,granularityMultiplier:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.ap.USD[prebidCurrency],conversionRateFile:"https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json",defaultRates:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.ap},priceGranularity:"custom"==prebidPriceGranularity?_config_prebid__WEBPACK_IMPORTED_MODULE_2__.z1:prebidPriceGranularity,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache",useLocal:!0},bidderTimeout:prebidTimeout};if(this.applyGDPR&&"function"==typeof window.__tcfapi&&(config.consentManagement={gdpr:{cmpApi:"iab",timeout:1e3,defaultGdprScope:!1,allowAuctionWithoutConsent:!0,rules:[{purpose:"storage",enforcePurpose:!1,enforceVendor:!1},{purpose:"basicAds",enforcePurpose:!1,enforceVendor:!1}]}}),this.adagioOrganizationId&&this.adagioSite&&!this.isFourMAccount()&&(config.realTimeData=config.realTimeData||{dataProviders:[]},config.realTimeData.dataProviders=config.realTimeData.dataProviders||[],config.realTimeData.dataProviders.push({name:"adagio",params:{organizationId:this.adagioOrganizationId,site:this.adagioSite}})),config.topics=_config_prebid__WEBPACK_IMPORTED_MODULE_2__.X1,this.prebidSettings.prebidVersion>="11"&&(config.paapi={enabled:!0,bidders:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.PI,defaultForSlots:1}),0t.name!=e.name)&&config.userSync.userIds.push(e)}let ortb2Config={};return this.prebidSettings.enableAdvertiserDomainBlock&&this.prebidSettings.blockedAdvertiserDomains&&this.prebidSettings.blockedAdvertiserDomains.length>0&&(ortb2Config.badv=this.prebidSettings.blockedAdvertiserDomains,config.bidResponseFilter={cat:{enforce:!1,blockUnknown:!1},adv:{enforce:!0,blockUnknown:!1},attr:{enforce:!1,blockUnknown:!1},mediaTypes:{enforce:!1,blockUnknown:!1}}),config.ortb2=ortb2Config,this.applyPubstackServerS2S(config),config},this.applyPubstackServerS2S=e=>{const t=new Set;for(const e of this.configs)if(e.active||_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.isDev)for(const i of e.settings.prebidAdUnits)if((0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.hg)(i.deviceSizes))for(const{bids:e}of i.atsPrebidAdUnits)for(const i of e){if(i.bidder!==_config_prebid__WEBPACK_IMPORTED_MODULE_2__.W)continue;const e=i.params?.siteId;"string"==typeof e&&e.length>0&&t.add(e)}if(0===t.size)return;if(t.size>1)return void _Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("Pubstack Spark: multiple siteIds on the same site, skipping s2sConfig",Array.from(t));const[i]=Array.from(t);e.s2sConfig={accountId:i,enabled:!0,adapter:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.PL,bidders:[_config_prebid__WEBPACK_IMPORTED_MODULE_2__.W],endpoint:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.Rv,syncEndpoint:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.pt},e.gvlMapping={...e.gvlMapping??{},[_config_prebid__WEBPACK_IMPORTED_MODULE_2__.W]:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.Xx},(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.nL)(!0,`${_config_prebid__WEBPACK_IMPORTED_MODULE_2__.ku}/${i}`)},this.sendBids=(e,t)=>new Promise(i=>{const s=(0,_Gpt__WEBPACK_IMPORTED_MODULE_3__._7)(async()=>{i(!0)});this.pbjs.que.push(()=>{this.pbjs.addAdUnits(e),this.pbjs.requestBids({timeout:this.prebidSettings.prebidTimeout,adUnitCodes:t,bidsBackHandler:s})})}),this.renderer=e=>({backupOnly:!0,url:e,render:e=>{_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log(`execute OutStream Renderer ${e.bidderCode} ${e.mediaType}`),void 0!==e.ad&&null!==e.ad||void 0===e.vastUrl||null===e.vastUrl||(_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("Bid object contains bid.vastUrl with value: "+e.vastUrl),e.ad=e.vastUrl);const t={vastTimeout:5e3,maxAllowedVastTagRedirects:3,allowVpaid:!0,autoPlay:!1,preload:!0,mute:!0};e.width&&(t.width=e.width),e.height&&(t.height=e.height),e.renderer.push(()=>{try{window.outstreamPlayer&&window.outstreamPlayer.player(e,e.adUnitCode,t)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error(e),_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("Error in ad rendering!")}})}}),this.createParamaters=(configs,force=!1)=>{const adUnits=[];for(const config of configs){if(!force&&!config.active&&!_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.isDev)continue;const{adUnitPath,prebidAdUnits}=config.settings;let divID=config.settings.divID;if("Function"===config.settings.divIDType)try{const e=(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.uf)(divID);if(null===e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.warn("pbjs: Function selector returned non-string or empty value, skipping slot.");continue}divID=e}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("pbjs: The script to find the target failed.",e);continue}const _prebidAdUnits=[];for(const prebidAdUnit of prebidAdUnits)if((0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.hg)(prebidAdUnit.deviceSizes)){for(const atsPrebidAdunit of prebidAdUnit.atsPrebidAdUnits){const adUnit={code:divID,bids:atsPrebidAdunit.bids.reduce((accumulator,{bidder,params,script})=>{if(_config_prebid__WEBPACK_IMPORTED_MODULE_2__.D0.includes(bidder)&&_config_prebid__WEBPACK_IMPORTED_MODULE_2__.qp.test(divID)&&_config_prebid__WEBPACK_IMPORTED_MODULE_2__.Hi.test(divID))return accumulator;if(_config_prebid__WEBPACK_IMPORTED_MODULE_2__.Dw.includes(bidder)&&_config_prebid__WEBPACK_IMPORTED_MODULE_2__.qp.test(divID)&&_config_prebid__WEBPACK_IMPORTED_MODULE_2__.UH.test(divID))return accumulator;try{const resolvedParams=script?eval(script):params;if(bidder===_config_prebid__WEBPACK_IMPORTED_MODULE_2__.W){if(!resolvedParams?.adUnitName)return _Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("Pubstack Spark: pubstack_server bid missing adUnitName, skipping",resolvedParams),accumulator;const{siteId:e,...t}=resolvedParams;return accumulator.push({bidder,params:t}),accumulator}accumulator.push({bidder,params:resolvedParams})}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("[Error in Prebid params]",e)}return accumulator},[]),mediaTypes:{},...(()=>{const e=config.settings.adUnitPath+(_config_prebid__WEBPACK_IMPORTED_MODULE_2__.qp.test(divID)?`#${divID}`:"");return{ortb2Imp:{ext:{gpid:e,ae:1,data:{adserver:{name:"gam",adslot:e}},bidder:{uid:e}}}}})()};if(!(adUnit.bids.length<=0)){(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.ze)(atsPrebidAdunit.mediaTypes.banner)||(adUnit.mediaTypes.banner=atsPrebidAdunit.mediaTypes.banner),(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.ze)(atsPrebidAdunit.mediaTypes.video)||(adUnit.mediaTypes.video=atsPrebidAdunit.mediaTypes.video,this.prebidSettings&&"outstream"===adUnit.mediaTypes.video?.context&&adUnit.bids.some(({bidder:e})=>_config_prebid__WEBPACK_IMPORTED_MODULE_2__.fX.some(({bidder:t,versions:i})=>t===e&&(!i||i.includes(this.prebidSettings.prebidVersion))))&&(adUnit.mediaTypes.video.renderer=this.renderer(this.prebidSettings.rendererJsURL))),(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.ze)(atsPrebidAdunit.mediaTypes.native)||(adUnit.mediaTypes.native=atsPrebidAdunit.mediaTypes.native);for(const e of adUnit.bids)if("adagio"===e.bidder){adUnit.ortb2Imp.ext.data.divId=adUnit.code,adUnit.ortb2Imp.ext.data.placement=e.params.placement;break}adUnits.push(adUnit),_prebidAdUnits.push(adUnit)}}this.adUnitsDict[adUnitPath]={prebidAdUnits:_prebidAdUnits,code:divID},this.adUnitsCodeDict[divID]={prebidAdUnits:_prebidAdUnits,adUnitPath};break}}return _Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("pbjs: adUnits",adUnits),_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("pbjs: adunits dict",this.adUnitsDict),adUnits},this.setSchain=(e,t=!1)=>{const i=new Set;if(e.forEach(e=>{(t||e.active||_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.isDev)&&e.settings.prebidAdUnits.forEach(e=>{e.atsPrebidAdUnits.forEach(({bids:t})=>{t.forEach(t=>{t.includeSchain&&(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.hg)(e.deviceSizes)&&i.add(t.bidder)})})})}),i.size>0){const e=[];i.forEach(t=>e.push(t)),this.pbjs.setBidderConfig({bidders:e,config:{schain:{validation:"relaxed",config:{ver:"1.0",complete:1,nodes:[{asi:this.parentAccountSiteDomain,sid:`${this.prebidSettings.sellerId}`,hp:1}]}}}})}},this.setCriteoPublisherId=e=>{this.pbjs.setBidderConfig({bidders:["criteo"],config:{ortb2:{site:{publisher:{id:e}}}}})},this.isFourMAccount=()=>"fourm.jp"===this.parentAccountSiteDomain,this.reset=()=>{try{this.pbjs&&this.pbjs.que.push(()=>{this.pbjs.removeAdUnit()}),this.onFirstPrebidResponseEnded=null,this.configs=[],this.noAdUnits=!1;for(const e in this.adUnitsDict)delete this.adUnitsDict[e]}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error(e)}}}}},722(e,t,i){i.d(t,{p:()=>d});var s=i(139),n=i(939);window.adloox_pubint=window.adloox_pubint||{cmd:[]};const a=window.googletag=window.googletag||{};a.cmd=a.cmd||[];const o=new class{constructor(){this.ADLOOX_URL="//p.adlooxtracking.com/gpt/a.js",this.isCalled=!1,this.init=(e,t)=>{e&&this.reducer(t,()=>{this.isCalled=!0,(0,n.nL)(!0,this.ADLOOX_URL),window.adloox_pubint.cmd.push(function(){window.adloox_pubint.init({clientid:152,platformid:238,tagid:1095})}),a.cmd.push(function(){window.adloox_pubint.cmd.push(function(){window.adloox_pubint.gpt_js(a)}),setTimeout(function(){window.adloox_pubint.cmd.push(function(){window.adloox_pubint.gpt(a,()=>{})})},2e3)})})},this.reducer=(e,t)=>{Math.random(){const{enableBasicSetTargetings:d,enableGamLazyload:l,enableGamSingleRequest:h,enableCollapseEmptyDivs:c,enableApm:p,apmNetworkId:g,apmSiteId:_,enableAdloox:u,adlooxRequestRatio:m,enableGptScript:b}=this.config;b&&(r?r.then(()=>{this.gpt.insertGptTag()}):this.gpt.insertGptTag()),d&&this.gpt.executeBasicTargetings(),!(0,n.ze)(l)&&this.gpt.enableGamLazyload(l),c&&this.gpt.collapseEmptyDivs(),e&&this.gpt.disableInitialLoad(),(h||e)&&(this.gpt.defineATSSlotsForSRA(i,a),this.gpt.enableSingleRequest()),this.gpt.enableServices(),p&&g&&_&&(s.rG.insertSasScript(g),s.rG.setUpAndCall(g,_,t)),o.init(u,m)}}}},425(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{i:()=>SiteSettingsBase});var _Logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(335);class SiteSettingsBase{constructor(config){this.config=config,this.countryKeywordsJson={},this.browsersBlock=()=>{if(this.config.browsersBlock)for(const fnc of this.config.browsersBlock)try{if(eval(`(${fnc})(navigator.userAgent)`))return!0}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("browsersBlock script",e)}return!1},this.fetchKeywordJson=async e=>"countryKeywordsJsonUrl"in this.config.keywordsBlock&&"string"==typeof this.config.keywordsBlock.countryKeywordsJsonUrl&&fetch(this.config.keywordsBlock.countryKeywordsJsonUrl,{mode:"cors",method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(t=>(this.countryKeywordsJson=t,this.callKeywordBlocks(e)),e=>(_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error(e),!1)),this.callKeywordBlocks=async e=>("loading"===document.readyState&&await new Promise(e=>{const t=()=>{document.removeEventListener("DOMContentLoaded",t),e()};document.addEventListener("DOMContentLoaded",t)}),this.keywordsBlock(e)),this.keywordsBlock=async(e=document)=>{if(!("keywordsContainers"in this.config.keywordsBlock))return!1;const{keywordsContainers:t,keywords:i=[],keywordsCountry:s=[]}=this.config.keywordsBlock;s.length>0&&s.forEach(e=>{this.countryKeywordsJson[e]&&this.countryKeywordsJson[e].forEach(e=>i.push(e.toLowerCase()))}),_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("keywords for block: ",i);const n=t.length>0?t.map(t=>e.querySelector(t)?.innerText||"").join(" "):"innerText"in e?e.innerText:e.body.innerText;return this.isMatchedWithRegex(n.toLowerCase(),i)},this.isMatchedWithRegex=(e,t)=>{if(0===t.length)return _Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("no keywords"),!1;const i=t.map(e=>(["\\","*","+",".","?","{","}","(",")","[","]","^","$","|"].forEach(t=>{e=e.replace(t,`\\${t}`)}),e)).join("|"),s=new RegExp(i);return s.test(e)?(_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("block by keyword"),_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log(e.match(s)),!0):(_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("regex unblock"),!1)},this.dispose=()=>{}}}},197(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:()=>waitUntilJSLoaded});var _core_utils_util__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(939),_Logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(335);const LIVE_LAMP_SCRIPT_URL="https://launchpad.privacymanager.io/1/launchpad.bundle.js",PUBCID_SCRIPT_URL="https://cdn.pubcid.org/pubcid.min.js",JS_LOAD_TIMEOUT_MS=500,loadScriptGated=(e,t,i)=>new Promise(s=>{let n=!1;const a=()=>{n||(n=!0,s())};window.setTimeout(()=>{n||_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log(i),a()},JS_LOAD_TIMEOUT_MS),(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.nL)(!1,e,()=>{t(),a()})}),initIntentIqAgent=e=>{_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("IntentIQ Script loaded");try{window.pbjs=window.pbjs||{que:[]};const t=new window.IntentIqObject({callback:()=>{},gamObjectReference:window.googletag,gamParameterName:`iiq_group_${e}`,partner:e,region:"apac",shouldSetPPID:!0,pbjs:window.pbjs,ABTestingConfigurationSource:"IIQServer",domainName:window.location.origin,vrBrowserBlackList:["chrome"]});window["agent_"+e]=t}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.error("IntentIQ Script error",e)}},waitUntilJSLoaded=({enablePrebid,enableIdentityHub,identityHubPublisherId,identityHubProfileId,enableLiveRamp,liveRampJsURL,liveRampScript,enablePubcidScript,pubcidScriptOnload,enableIntentIq,intentIqPartnerId,intentIqAgentUrl})=>{const loadPromises=[];if(enableIntentIq&&intentIqPartnerId&&intentIqAgentUrl&&(_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("Loading IntentIQ script",intentIqAgentUrl),loadPromises.push(loadScriptGated(intentIqAgentUrl,()=>initIntentIqAgent(intentIqPartnerId),"IntentIQ timeout"))),enablePrebid&&enablePubcidScript&&(_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("enable PubCID Script"),window.setTimeout(()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.nL)(!1,PUBCID_SCRIPT_URL,()=>{_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("PubCID Script loaded");try{pubcidScriptOnload&&eval(pubcidScriptOnload)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.error("PubCID Script error",e)}})})),enablePrebid&&enableLiveRamp&&liveRampJsURL&&(_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("enable LiveRamp"),window.setTimeout(()=>{if(/.*launchpad-wrapper\.privacymanager\.io\/.*/.test(liveRampJsURL)){const e=document.createElement("link");e.setAttribute("rel","preload"),e.setAttribute("href",LIVE_LAMP_SCRIPT_URL),e.setAttribute("as","script"),document.head.appendChild(e)}(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.nL)(!1,liveRampJsURL,()=>{_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("LiveRamp loaded");try{liveRampScript&&eval(liveRampScript)}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.error("LiveRamp error",e)}})})),enablePrebid&&enableIdentityHub&&identityHubPublisherId&&identityHubProfileId&&loadPromises.push(new Promise(e=>{_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("enable PWT");let t=!1;const i=()=>{t||(t=!0,_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("PWT loaded"),e())};window.PWT=window.PWT||{},window.PWT.jsLoaded=()=>{location.hostname.match(/proxypy.org|printwhatyoulike.com/)||i()},setTimeout(()=>{_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("PWT timeout"),i()},JS_LOAD_TIMEOUT_MS);const s=window.location.href;let n="";if(s.indexOf("pwtv=")>0){const e=/pwtv=([^&#]+)/g.exec(s);e&&e.length>=2&&e[1].length>0&&(n="/"+e[1])}(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.nL)(!0,`//ads.pubmatic.com/AdServer/js/pwt/${identityHubPublisherId}/${identityHubProfileId}${n}/pwt.js`)})),0!==loadPromises.length)return Promise.all(loadPromises).then(()=>{})}},840(e,t,i){i.d(t,{A:()=>n});var s=i(335);class n{constructor(e){this.gpt=e,this.isCalled=!1,this.config=null,this.execute=e=>{this.config=e,!this.isCalled&&this.config?(this.gpt.callOutOfPageSlotWrapper(this.config),this.isCalled=!0):s.vF.error("adx inst must be called once")},this.dispose=()=>{this.isCalled=!1}}}},404(e,t,i){i.d(t,{A:()=>n});var s=i(335);class n{constructor(e){this.gpt=e,this.isCalled=!1,this.config=null,this.execute=e=>{this.config=e,!this.isCalled&&this.config?(this.gpt.callOutOfPageSlotWrapper(this.config),this.isCalled=!0):s.vF.error("adx overlay must be called once")},this.dispose=()=>{this.isCalled=!1}}}},297(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:()=>AdxReward});var _Logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(335),_Gpt__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(554),_core_utils_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(939),_FunctionTargeting__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(472);class AdxRewardLogger{constructor(e=_Logger__WEBPACK_IMPORTED_MODULE_0__.vF){this.logger=e,this.log=(...e)=>{this.logger.log("reward:",...e)},this.error=(...e)=>{this.logger.error("reward:",...e)}}}const rewardLogger=new AdxRewardLogger;class AdxReward{constructor(gpt,config,indexCount){this.gpt=gpt,this.config=config,this.indexCount=indexCount,this.atsElm=window.document,this.originalElement=null,this.tempElement=null,this.rewardedSlot=null,this.storageKey="",this.tryCatchEval=callbackStr=>()=>{try{eval(callbackStr)}catch(e){rewardLogger.error(e)}},this.execute=async e=>{this.atsElm=e,this.blockByFrequency(this.config.frequency,this.storageKey,this.lastValue)||(this.config.useFunctionTrigger&&this.config.functionTrigger&&await this.checkFunctionTrigger(e),await this.gpt.setPPIDPromise,this.rewardedSlot=this.gpt.defineAdxRewardSlot(this.config.adUnitPath,this.config.setTargetingConfigs),this.rewardedSlot&&(this.gpt.addEventListener("rewardedSlotReady",this.onRewardedSlotReady),this.gpt.addEventListener("rewardedSlotGranted",this.onRewardedSlotGranted),this.gpt.addEventListener("rewardedSlotClosed",this.onRewardedSlotClosed),this.gpt.display(this.rewardedSlot),this.gpt.isInitialLoadDisabled()&&this.gpt.refreshAds([this.rewardedSlot])))},this.checkFunctionTrigger=async e=>{this.config.useFunctionTrigger&&this.config.functionTrigger&&(rewardLogger.log("use functionTrigger:"+this.config.adUnitPath),await _FunctionTargeting__WEBPACK_IMPORTED_MODULE_3__.O.waitForConditionMet(e||document,this.indexCount,this.config.functionTrigger,this.config.adUnitPath))},this.blockByFrequency=(e,t,i)=>{const s={timeStamp:0,rsg:!1},n=Date.now();s.timeStamp=n;const a=i.timeStamp,o=i.rsg;return a&&n-a<1e3*e&&o?(rewardLogger.log("no display by frequency"),!0):(sessionStorage.setItem(t,JSON.stringify(s)),!1)},this.showPopupBeforeAds=e=>confirm(e),this.onRewardedSlotReady=e=>{if(e.slot===this.rewardedSlot){if(rewardLogger.log("rewardedSlotReady"),this.originalElement=(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_2__.EW)(this.atsElm,this.config.selector,this.config.targetType)||null,!this.originalElement)return;this.tempElement=this.originalElement.cloneNode(!0),this.replaceElement(this.originalElement,this.tempElement),this.cbRewardIsReady();const t=()=>{this.config.enablePopupMessageBeforeAds?this.showPopupBeforeAds(this.config.popupMessageBeforeAds)&&e.makeRewardedVisible():e.makeRewardedVisible()};this.tempElement.addEventListener("click",e=>{e.preventDefault(),t()})}},this.replaceElement=(e,t)=>{e&&t&&e.parentNode&&e.parentNode.replaceChild(t,e)},this.onRewardedSlotGranted=e=>{if(e.slot===this.rewardedSlot){rewardLogger.log("rewardedSlotGranted"),this.gpt.removeEventListener("rewardedSlotGranted",this.onRewardedSlotGranted);const e={timeStamp:Date.now(),rsg:!0};sessionStorage.setItem(this.storageKey,JSON.stringify(e)),this.cbAfterRewarded(),this.originalElement?.click(),this.replaceElement(this.tempElement,this.originalElement)}},this.onRewardedSlotClosed=e=>{e.slot===this.rewardedSlot&&(rewardLogger.log("rewardedSlotClosed"),this.gpt.removeEventListener("rewardedSlotClosed",this.onRewardedSlotClosed),this.rewardedSlot&&this.gpt.destroySlots([this.rewardedSlot]),this.replaceElement(this.tempElement,this.originalElement))},this.dispose=()=>{this.rewardedSlot&&this.gpt.destroySlots([this.rewardedSlot]),this.replaceElement(this.tempElement,this.originalElement)},this.cbRewardIsReady=this.tryCatchEval(this.config.cbRewardIsReady),this.cbAfterRewarded=this.tryCatchEval(this.config.cbAfterRewarded),this.execute=(0,_Gpt__WEBPACK_IMPORTED_MODULE_1__._7)(this.execute),this.storageKey=`amrwd_${indexCount}_${this.config.adUnitPath}`,this.lastValue=JSON.parse(sessionStorage.getItem(this.storageKey)||"{}")}}},599(e,t,i){i.d(t,{x:()=>o});var s=i(139),n=i(472),a=i(335);class o{constructor(e,t,i,o,r){this.gpt=e,this.config=t,this.AD_NAME=i,this.instanceCount=o,this.adType=r,this.RENDERED="rendered",this.UNRENDERED="unrendered",this.NOT_DISPLAYED="not-displayed",this.SHOW_ADVERTISEMENT="show_advertisement",this.ENABLE_STICKY="enable_sticky",this.ABSOLUTE="absolute",this.STICKY="sticky",this.ADVERTISEMENT_TEXT="ADVERTISEMENT",this.slots={},this.infinite=!1,this.CLASS_NAME="",this.execute=async(e,t)=>{this.config.useFunctionTrigger&&this.config.functionTrigger&&(a.vF.log("use functionTrigger:"+this.config.adUnitPath),await n.O.waitForConditionMet(e||document,this.instanceCount,this.config.functionTrigger,this.config.adUnitPath));const i=this._execute(e,t),o=this._findTarget(i);if(null===o)return;o.map(e=>{const t=this._buildSlot(e,i);return null!==t&&(this.config.formatId?this.slots[t].slot.id=s.jC.sasDivIdPrefix+this.config.formatId:this.slots[t].slot.id=t),{divId:t,target:e}}).forEach(e=>{if(null!==e.divId)if(this.config.formatId){const e=this.config.formatId;s.rG.render(e)}else{const t=this._getFetchAdConfig(e.divId,e.target,this.infinite);this.gptFetchAd(t.gpt)}})},this.makeReplaceAdSenseParams=()=>({adSenseReplacementClient:this.config.adSenseReplacementClient,adSenseReplacementSlot:this.config.adSenseReplacementSlot}),this._init(),this._addStyle()}async gptFetchAd(e){let t=e.divId;const i=document.getElementById(t),s=[e.adUnitPath,...this.config.autoAdUnitPaths||[]];if(1==s.length)await this.gpt.fetchAd(e);else{const n=e.onAfterGptFetched,o=e.onAfterGptRendered;let r=i;for(const d of s){const s=await new Promise(i=>{const s={...e,adUnitPath:d,divId:r.id,onAfterGptFetched:e=>{a.vF.log("fake onAfterGptFetched",e)},onAfterGptRendered:e=>{a.vF.log("fake onAfterGptRendered",e),i(e)}};a.vF.log("div.id",r.id,"divId",t,"adUnitPath",s.adUnitPath,"config",s),this.gpt.fetchAd(s)});if(!s.isEmpty){n(s.slot),o(s);break}r.style.display="none",r=document.createElement("div"),r.id=t+="-a",i.parentNode?.appendChild(r)}}}}},456(e,t,i){i.d(t,{W:()=>r});var s=i(939),n=i(599),a=i(335);const o="2147483647";class r extends n.x{constructor(e,t,i,n){super(e,t,"insert_ads",i,"insert_ads"),this.executeCallCount=0,this.requestAnimationFrameId=0,this.currentNumOfAds=0,this._execute=(e,t=!1)=>(this.infinite=t,this.executeCallCount++,this.currentNumOfAds=0,e),this.choosePositions=e=>{let t=this.config.selector;"Function"===this.config.targetType&&(t=(0,s.ab)(e).join(">"));const i=this.config.targetFirstLevelOnly?this.config.selectors.map(e=>`${t}>${e}`).join(","):this.config.selectors.join(",");let n=Array.prototype.map.call(e.querySelectorAll(i),e=>e);if(this.config.exclusiveSelectors&&0`${e}+*`).join(",");n=n.filter(t=>!t.matches(e))}return n},this.selectPositions=(e,t)=>{const i=window.innerHeight,s=e.getBoundingClientRect(),n=s.top+window.pageYOffset,o=s.bottom+window.pageYOffset;if(s.height{const t=e.getBoundingClientRect(),s=t.top+window.pageYOffset,d=t.bottom+window.pageYOffset;return!(s-n{const{selector:t,targetType:i,isFlexible:n}=this.config,o=(0,s.EW)(e,t,i);if(null==o)return null;const r=[],d=[];if(n?(r.push(...this.choosePositions(o)),d.push(...this.selectPositions(o,r))):(r.push(o),d.push(o)),a.vF.enableLog)for(let e=0;e

${e}

`);return d.length<=0?(a.vF.error("i flex: no position"),null):d},this._buildSlot=(e,t)=>{const{showAdvertisement:i,customShowAdsText:s,insertPosition:n="afterbegin",isFlexible:a,divIDs:o}=this.config;if(this.currentNumOfAds++,this.currentNumOfAds>this.config.numOfAds)return null;const r=o[this.currentNumOfAds-1]+(this.infinite?`-${this.executeCallCount}`:""),d=document.createElement("div"),l=document.createElement("div");if(l.classList.add("ats-slot"),i){const e=document.createElement("p"),t=document.createTextNode(s||this.ADVERTISEMENT_TEXT);e.appendChild(t),d.appendChild(e)}d.appendChild(l);const h=document.createElement("div");h.id=`${r}-wrapper`,h.classList.add(this.AD_NAME,this.CLASS_NAME),i&&h.classList.add(this.SHOW_ADVERTISEMENT),h.appendChild(d);const c=a?"beforebegin":n;return e.insertAdjacentElement(c,h),this.slots[r]={baseElement:t,adUnitPath:this.config.adUnitPath,divId:r,slotWrapper:h,slot:l,isGPTRefreshCalled:!1,shouldStopRefresh:!1,...this.makeReplaceAdSenseParams()},r},this._getFetchAdConfig=(e,t,i)=>{const{setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,enableLazyLoad:o,lazyLoadConfig:r,lazyLoadMode:d,enableSetForceSafeFrameForSlot:l}=this.config,h=this.slots[e];return{gpt:{slotWrapperDiv:h.slotWrapper,instanceCount:this.instanceCount,adUnitPath:h.adUnitPath,sizes:[[300,250]],divId:h.divId,setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,onAfterGptRendered:this._onAfterGptRendered(e),onAfterGptFetched:this._onAfterGptFetched(e),enableSetForceSafeFrameForSlot:l,enableLazyLoad:o,lazyLoadConfig:r,lazyLoadMode:d,infinite:i}}},this._onAfterGptFetched=e=>t=>{const i=this.slots[e];i.googletagSlot=t,i.dispose=()=>{i.shouldStopRefresh=!0,googletag.destroySlots([t]),i.slotWrapper.remove()}},this._onAfterGptRendered=e=>t=>{const{isFlexible:i,isSticky:s,refreshInterval:n,refreshLimit:a,inViewRate:o,setTargetingConfigs:r}=this.config,d=this.slots[e];n>0&&!d.isGPTRefreshCalled&&this.gpt.intervalRefreshAds([t.slot],n,a,e,this.slots,o,r),t.slot===d.googletagSlot&&(t.isEmpty?d.slotWrapper.classList.add(this.UNRENDERED):(d.eventSize=Array.isArray(t.size)?[t.size[0],t.size[1]]:[0,0],d.slotWrapper.classList.add(this.RENDERED),!i&&s&&(this.initializeStyle(d.slotWrapper),this.handleSticky(d))))},this.handleSticky=e=>{if(!e.baseElement)return;const{slotWrapper:t,eventSize:i}=e,{stickyStopTarget:n,stickyStopTargetType:o,stickySizes:r,overrideMargin:d=!1,overrideMarginBottom:l=0,overrideMarginTop:h=0}=this.config,[c]=e.eventSize||[0],p=t.children[0],g=window.getComputedStyle(p),_=t.offsetHeight,{marginTop:u,marginBottom:m,marginLeft:b}=g,f=parseFloat(u)||0,v=parseFloat(m)||0,y=parseFloat(b)||0,E=d?h:parseFloat(u)||0,A=d?l:parseFloat(m)||0,S=(()=>{let e=!1;if(r&&r.length>0)for(let t=0;t{D||(D=!0,S?e.requestAnimationFrameId=window.requestAnimationFrame(()=>{this.handleScroll(c,y,E,A,_,e,p,P),D=!1}):(D=!0,e.requestAnimationFrameId&&window.cancelAnimationFrame(e.requestAnimationFrameId)))};t.classList.contains(this.ENABLE_STICKY)||(window.addEventListener("scroll",w),e.removeScrollEventListener=()=>{window.cancelAnimationFrame(this.requestAnimationFrameId),window.removeEventListener("scroll",w)},t.classList.add(this.ENABLE_STICKY))},this.handleScroll=(e,t,i,s,n,a,o,r)=>{const{slotWrapper:d}=a,{overrideMargin:l=!1,overrideMarginBottom:h=0,overrideMarginTop:c=0}=this.config;d.classList.remove(this.STICKY,this.ABSOLUTE),o.style.top="",o.style.marginLeft="";const p=(o.offsetWidth-e)/2+t,g=r?r.getBoundingClientRect().top:document.body.getBoundingClientRect().bottom,_=r?r.offsetTop:g+window.pageYOffset,u=d.getBoundingClientRect(),m=0{const t=e.children[0];e.classList.remove(this.ENABLE_STICKY),e.classList.remove(this.ABSOLUTE),e.classList.remove(this.STICKY),e.style.height="",t.style.marginLeft="",t.style.marginTop="",t.style.marginBottom=""},this.dispose=()=>{try{a.vF.log("i: dispose");for(const e in this.slots){const t=this.slots[e];t.removeScrollEventListener&&t.removeScrollEventListener(),t.dispose&&t.dispose(),delete this.slots[e]}}catch(e){a.vF.error(e)}},n.createAdObserver(this.config,this)}_init(){this.CLASS_NAME=`${this.AD_NAME}-${this.instanceCount}`}_addStyle(){(0,s.TD)([`div.${this.AD_NAME}.${this.UNRENDERED},`,`div.${this.AD_NAME}.${this.UNRENDERED} > div,`,`div.${this.AD_NAME}.${this.UNRENDERED} > div > div,`,`div.${this.AD_NAME}.${this.UNRENDERED} > div > div > div,`,`div.${this.AD_NAME}.${this.UNRENDERED} > div > div > div > iframe {`,"height: 1px;","}",`div.${this.AD_NAME},`,`div.${this.AD_NAME} > div,`,`div.${this.AD_NAME} > div > div,`,`div.${this.AD_NAME} > div > div > div,`,`div.${this.AD_NAME} > div > div > div > iframe {`,"text-align: center;","}",`div.${this.AD_NAME}.${this.RENDERED}.${this.SHOW_ADVERTISEMENT} > div > p {`,"color: #8a9299;","font-size: 10px;","margin-bottom: 3px;","margin-top: 3px;","text-transform: uppercase;","text-align: center;","}",`div.${this.AD_NAME}:not(.${this.RENDERED}) > div > p,`,`div.${this.AD_NAME}:not(.${this.SHOW_ADVERTISEMENT}) > div > p {`,"display: none;","}",`div.${this.AD_NAME}.${this.RENDERED}.${this.ENABLE_STICKY}.${this.ABSOLUTE} > div {`,"position: absolute;",`z-index: ${o};`,"}",`div.${this.AD_NAME}.${this.RENDERED}.${this.ENABLE_STICKY}.${this.STICKY} > div {`,"position: fixed;",`z-index: ${o};`,"top: 0px;","}"].join("")+(a.vF.enableLog?[`div.${this.AD_NAME}-debug {`,"height: 1px;","margin: 0 auto;","padding: 0;","position: relative;","}",`div.${this.AD_NAME}-debug > p {`,"background-color: rgba(225, 0, 80, 0.5);","color: #212121;","font-size: 7px;","height: 16px;","margin: 0 auto;","text-align: center;","top: 0;","width: 16px;","}"].join(""):""),this.AD_NAME),(0,s.TD)([`div.${this.CLASS_NAME}.${this.AD_NAME} > div {`,this.config.customCss,"}",`div.${this.CLASS_NAME}.${this.AD_NAME}.${this.RENDERED}.${this.SHOW_ADVERTISEMENT} > div {`,this.config.customCssForShowAdvertisement,"}"].join("")+(this.config.isSticky?[`div.${this.CLASS_NAME}.${this.AD_NAME}.${this.RENDERED}.${this.ENABLE_STICKY}.${this.ABSOLUTE} > div {`,"background-color: inherit;","}",`div.${this.CLASS_NAME}.${this.AD_NAME}.${this.RENDERED}.${this.ENABLE_STICKY}.${this.STICKY} > div {`,"top: 0px;","background-color: inherit;","}"].join(""):""),this.CLASS_NAME)}}},389(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{b:()=>InsertVideoAds});var _core_utils_util__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(939),_Logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(335),_VideoManager__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(561);const Z_INDEX_MAX_VALUE="2147483647",DEFAULT_PLAYER_VOLUME=.01,defaultSizes169=[[640,360],[320,180]],defaultSizes43=[[640,480],[480,360],[320,240]],defaultSizes916=[[360,640],[180,320]],defaultSizes34=[[480,640],[360,480],[240,320]],defaultSizes11=[[300,300],[250,250]],DEFAULT_PLAYER_CONTROL_Z_INDEX=999,DEFAULT_PLAYER_AD_CONTAINER_Z_INDEX=998,YOUTUBE_VIDEO_URL="https://www.youtube.com/watch?v=";class VjsLogger{constructor(e=_Logger__WEBPACK_IMPORTED_MODULE_1__.vF){this.logger=e,this.log=(...e)=>{this.logger.log("video:",...e)},this.error=(...e)=>{this.logger.error("video:",...e)}}}const vjsLogger=new VjsLogger;class InsertVideoAds{constructor(gpt,config,prebid){this.gpt=gpt,this.config=config,this.prebid=prebid,this.RENDERED="rendered",this.executeCallCount=0,this.infinite=!1,this.divId="",this.closeButtonId="",this.wrapperClassName="ats-insert-video-wrapper",this.divClassName="ats-insert-video",this.closeButton=document.createElement("button"),this.wrapperId="",this.originVideoWidth=0,this.originVideoHeight=0,this.videoStickyWrapperId="ats-insert-video-sticky-wrapper",this.isAutoPlayed=!1,this.stickyOrAnchoring=!1,this.observer=null,this.anchoringClass="",this.topStickyClass=this.wrapperClassName+"-top-sticky",this.poster="",this.deviceType=(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.gE)(),this.isFirstPlay=!1,this.testAdTagUrl=window.sessionStorage.getItem("ats_test_ad_tag_url")||"",this.MAX_RETRY=216,this.counter_retry=1,this.REFRESH_INTERVAL=15e3,this.videoPlayerViewMoreLinkId="video-player-read-more-link",this.articleLinks=[],this.topStickyCloseButton=document.createElement("a"),this.topStickyCloseButtonId="top-sticky-close-button",this.showTopStickyVideoCloseButton=!1,this.generatedVideoArticles=[],this.scrollCallbacks=[],this.onceInView=!1,this.autoplayInNext=!1,this.autoAdUnitPaths=[],this.videoLoadingCount=0,this.lastMissingVideosCount=0,this.userStopAnchor=!1,this.anchorCallbackWhenAdLoaded=null,this.showCloseButton=!1,this.videoLength=0,this.isAdPlaying=!1,this.isAdPaused=!1,this.adDisplayContainerInitialized=!1,this.allAdsCompleted=!0,this.contentEnded=!1,this.hlsConfig={maxBufferLength:5,maxMaxBufferLength:10,backBufferLength:1/0,maxBufferSize:2e5,maxBufferHole:.5,highBufferWatchdogPeriod:2},this.detectUICallback=null,this.PC_PLAYLIST_HEIGHT=180,this.SP_PLAYLIST_HEIGHT=90,this.numOfPlaylists=0,this.RSS_VIDEO_LENGTH=30,this.NON_LINEAR_ADS_CLASS_NAME="non-linear_ats_ima_ad_container",this.convertedGeneratedVideos={},this.DEFAULT_RSS_LINK_BUT_TEXT="Read Article",this.isSoundAvailable=!1,this.ELAPSED_TIME_TO_GET_UI=10,this.currentTime=0,this.soundAdsAvailable=!1,this.onAdEvent=e=>{this.counter_retry=1;const t=window.google;vjsLogger.log(`ads event: ${e.type}`);const{CONTENT_PAUSE_REQUESTED:i,CONTENT_RESUME_REQUESTED:s,AD_BREAK_READY:n,STARTED:a,SKIPPABLE_STATE_CHANGED:o,LOADED:r,ALL_ADS_COMPLETED:d,USER_CLOSE:l,COMPLETE:h,SKIPPED:c,VOLUME_CHANGED:p}=t.ima.AdEvent.Type;if(e.type==i)this.player.pause(),this.showAdDisplayContainer(),this.isAdPlaying=!0,this.disablePlaylist(),this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.style.display="none");else if(e.type==s)this.hideAdDisplayContainer(),this.isAdPaused=!1,this.isAdPlaying=!1,this.contentEnded||(this.play(),this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.style.display="block"));else if(e.type==n)vjsLogger.log("ad break ready");else if(e.type===p)0===this.adsManager.getVolume()?(vjsLogger.log("ad sound off"),this.adMuteButton.classList.remove("plyr__control--not-pressed"),this.adMuteButton.classList.add("plyr__control--pressed")):(vjsLogger.log("ad sound on"),this.adMuteButton.classList.remove("plyr__control--pressed"),this.adMuteButton.classList.add("plyr__control--not-pressed"));else if(e.type==a){if(vjsLogger.log("ad started"),this.player.pause(),this.currentAd=e.getAd(),this.currentAd.isLinear()&&(this.countdownTimer=setInterval(this.trackLinearAd,250),this.showImaControlBar()),this.adMuteButton=document.querySelector("#ats-ad-container button.plyr__control[data-plyr='mute']"),this.playWithSound&&this.soundAdsAvailable||this.adsManager.setVolume(0),this.adsManager.resume(),0===this.adsManager.getVolume()?(vjsLogger.log("ad sound off"),this.adMuteButton.classList.remove("plyr__control--not-pressed"),this.adMuteButton.classList.add("plyr__control--pressed")):(vjsLogger.log("ad sound on"),this.adMuteButton.classList.remove("plyr__control--pressed"),this.adMuteButton.classList.add("plyr__control--not-pressed")),this.adMuteButton.addEventListener("click",this.onAdMuteClick),this.userStopAnchor||this.enableAdAnchoredPlayback){let e=!1;this.anchorCallback();const t=()=>{e||(window.requestAnimationFrame(()=>{this.anchorCallback(),e=!1}),e=!0)};document.addEventListener("scroll",t),this.scrollCallbacks.push(t),this.anchorCallbackWhenAdLoaded=t,this.closeButton.addEventListener("click",()=>{document.removeEventListener("scroll",t),this.stopElmAnchoring()})}}else if(e.type==o){const t=e.ad.data.skippable?e.ad.data.skipTimeOffset:0;vjsLogger.log(t),t>0&&(this.showCloseButton=!0,this.stickyOrAnchoring&&(this.closeButton.style.visibility="visible"))}else if(e.type==r){this.allAdsCompleted=!1;e.getAd().isLinear()?(vjsLogger.log("linear ads"),this.adDisplayContainerElm.classList.remove(this.NON_LINEAR_ADS_CLASS_NAME)):(vjsLogger.log("non-linear ads"),this.adDisplayContainerElm.classList.add(this.NON_LINEAR_ADS_CLASS_NAME))}else e.type!=d&&e.type!=l&&e.type!=h&&e.type!=c&&e.type!=t.ima.AdErrorEvent.Type.AD_ERROR||(this.enablePlaylist(),this.hideImaControlBar(),this.initAdUIElement(),clearInterval(this.countdownTimer),this.isAdPlaying=!1,this.isAdPaused=!1,this.showCloseButton=!1,this.userStopAnchor&&this.anchorCallbackWhenAdLoaded&&(document.removeEventListener("scroll",this.anchorCallbackWhenAdLoaded),this.anchorCallbackWhenAdLoaded=null,this.stopElmAnchoring()),this.enableAdAnchoredPlayback&&(this.anchorCallbackWhenAdLoaded&&document.removeEventListener("scroll",this.anchorCallbackWhenAdLoaded),this.stopElmAnchoring()));if(e.type===d||e.type==t.ima.AdErrorEvent.Type.AD_ERROR){this.hideAdDisplayContainer(),vjsLogger.error(e),this.resizeObserver?.disconnect(),this.adsManager.destroy();const t=this.videoLoadingCount;vjsLogger.log(`call ads after ${this.REFRESH_INTERVAL/1e3} sec`),this.allAdsCompleted=!0,setTimeout(()=>{this.refreshAds(this.getAdTagUrl(),t)},this.REFRESH_INTERVAL)}if(e.type==t.ima.AdErrorEvent.Type.AD_ERROR&&(this.isSoundAvailable=!1,vjsLogger.log("error fallback to content"),this.player.play().catch(()=>{vjsLogger.error("Failed to play video after ad error")})),e.type==t.ima.AdEvent.Type.LOG){const t=e.getAdData();t.adError&&(vjsLogger.error("Non-fatal error occurred: "+t.adError.getMessage()),this.isSoundAvailable=!1,vjsLogger.log("error fallback to content"),this.player.play().catch(()=>{vjsLogger.error("Failed to play video after ad error")}))}},this.execute=async(e,t=!1)=>{this.videoLoadingCount+=1,this.infinite=t,this.executeCallCount++,await _VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.insertVideoTag();const i=this.findTarget(e);i&&(await this.gpt.setPPIDPromise,this.buildVideo(i)),this.workaroundForBFCache()},this.workaroundForBFCache=()=>{const e=t=>{t.persisted&&(this.dispose(),vjsLogger.log("persisted"),window.removeEventListener("pageshow",e),this.detectUIPromise=this.detectUI(),this.execute(document))};window.addEventListener("pageshow",e)},this.findTarget=e=>{const{selector:t,targetType:i}=this.config,s=(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.EW)(e,t,i);if(null!=s)return s},this.applyInsertVideoCss=()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TD)(`\n #ats-ad-container * {\n margin: 0;\n }\n #${this.divId} {\n margin: 0 auto;\n }\n\n .ats-insert-video-wrapper {\n position: relative\n }\n\n .ats-insert-video-wrapper * {\n box-shadow: none;\n }\n\n #${this.videoPlayerViewMoreLinkId} {\n background-color: #3892E5;\n color: white;\n display: block;\n padding: 6px 32px 6px 20px;\n position: absolute;\n top: 20px;\n right: 25px;\n text-align: center;\n text-decoration:none;\n visibility: hidden;\n border: 2px solid transparent;\n border-radius: 5px;\n font-size: small;\n z-index: ${DEFAULT_PLAYER_CONTROL_Z_INDEX} !important\n }\n\n #${this.videoPlayerViewMoreLinkId}::after {\n content: ' ';\n position: absolute;\n top: 10px;\n right: 16px;\n display: block;\n width: 3px;\n height: 3px;\n border: solid #FFF;\n border-width: 0 2px 2px 0;\n padding: 2px;\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n .${this.wrapperClassName}-anchoring #${this.videoPlayerViewMoreLinkId} {\n padding: 3px 14px 3px 6px;\n top: 5px;\n right: 5px;\n max-width: 125px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .${this.wrapperClassName}-anchoring #${this.videoPlayerViewMoreLinkId}::after {\n top: 6px;\n right: 6px;\n }\n @media only screen and (max-width: 600px) {\n #${this.videoPlayerViewMoreLinkId} {\n padding: 6px 22px 6px 10px;\n top: 10px;\n right: 10px;\n }\n #${this.videoPlayerViewMoreLinkId}::after {\n right: 12px;\n }\n\n .${this.wrapperClassName}-anchoring #${this.videoPlayerViewMoreLinkId} {\n font-size: 11px;\n }\n .${this.wrapperClassName}-anchoring #${this.videoPlayerViewMoreLinkId}::after {\n top: 5px;\n border-width: 0 1px 1px 0;\n width: 3px;\n height: 3px\n }\n }\n\n .${this.wrapperClassName}-anchoring {\n z-index: ${Z_INDEX_MAX_VALUE};\n }\n .${this.wrapperClassName}-non-anchoring {\n z-index: ${Z_INDEX_MAX_VALUE};\n }\n .${this.wrapperClassName}-right {\n position: fixed;\n bottom: 16px;\n right: 16px;\n width: 256px;\n }\n .${this.wrapperClassName}-left {\n position: fixed;\n bottom: 16px;\n left: 16px;\n width: 256px;\n }\n .${this.topStickyClass} {\n z-index: ${Z_INDEX_MAX_VALUE};\n position: fixed;\n top: 0;\n }\n .${this.wrapperClassName} {\n background-color: rgba(57, 127, 195, .1);\n }\n #${this.topStickyCloseButtonId} {\n visibility: hidden;\n position: absolute;\n display: block;\n top: 0px;\n right: -24px;\n width: 24px;\n height: 34px;\n border: 0px !important;\n border-radius: 0 7px 7px 0;\n text-align: center;\n background: #00000066;\n }\n #${this.closeButtonId} {\n visibility: hidden;\n position: absolute;\n right: 0px;\n display: block;\n top: -24px;\n width: 34px;\n height: 24px;\n border: 0px !important;\n border-radius: 7px 7px 0 0;\n text-align: center;\n background: #00000066;\n }\n #${this.closeButtonId}::after,\n #${this.closeButtonId}::before,\n #${this.topStickyCloseButtonId}::after,\n #${this.topStickyCloseButtonId}::before {\n content: "";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 2px;\n height: 15px;\n background: #fff;\n }\n #${this.closeButtonId}::before,\n #${this.topStickyCloseButtonId}::before {\n transform: translate(-50%,-50%) rotate(45deg);\n }\n #${this.closeButtonId}::after,\n #${this.topStickyCloseButtonId}::after {\n transform: translate(-50%,-50%) rotate(-45deg);\n }\n #ats-ad-container {\n position: absolute;\n z-index: ${DEFAULT_PLAYER_AD_CONTAINER_Z_INDEX};\n display: none;\n height: 100%;\n top: 0;\n width: 100%;\n }\n .${this.NON_LINEAR_ADS_CLASS_NAME} {\n top: auto!important;\n bottom: 0;\n margin-bottom: 40px;\n max-height: 100px!important;\n overflow: hidden;\n }\n .${this.NON_LINEAR_ADS_CLASS_NAME} > div, .${this.NON_LINEAR_ADS_CLASS_NAME} > div > iframe {\n max-height: 100px!important;\n }\n #${this.videoStickyWrapperId} .plyr__volume input[type=range] {\n max-width: 60px;\n min-width: 45px;\n }\n #${this.videoStickyWrapperId} .plyr {\n display: none;\n }\n #${this.videoStickyWrapperId}{\n --plyr-color-main: rgba(0,0,0,0.3);\n }\n .plyr--full-ui input[type=range] {\n --plyr-color-main: red;\n }\n div.plyr > button.plyr__control[data-plyr='play'] svg {\n --plyr-control-icon-size: 32px;\n }\n #${this.videoStickyWrapperId} .plyr .plyr__controls {\n padding-top: calc(var(--plyr-control-spacing, 10px)* 1);\n --plyr-control-spacing: 8px;\n }\n .plyr__control svg {\n --plyr-control-icon-size: 14px;\n }\n #${this.videoStickyWrapperId} .plyr__time--current{\n font-family: sans-serif;\n --plyr-font-size-time: 12px;\n }\n .ats-ima-control-play {\n width: 30px;\n height: 10px;\n background-color: red;\n }\n .plyr__control--overlaid, .plyr__control {\n transition: none;\n }\n .ats-ima-control-bar.plyr__controls {\n border-bottom-left-radius: inherit;\n border-bottom-right-radius: inherit;\n bottom: 0;\n color: #fff;\n color: var(--plyr-video-control-color, #fff);\n left: 0;\n position: absolute;\n right: 0;\n transition: opacity .4s ease-in-out, transform .4s ease-in-out;\n z-index: ${DEFAULT_PLAYER_CONTROL_Z_INDEX};\n flex-direction: column;\n display: block;\n }\n #ats_ads_progress_bar {\n position: relative;\n width: 100%;\n height: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n }\n #ats_ads_progress_bar-progress {\n position: relative;\n width: 0%;\n height: 100%;\n background-color: yellow;\n }\n #ads_countdown {\n font-family: sans-serif;\n font-size: 11px;\n padding: 3px 2px;\n min-width: 48px;\n text-align: left;\n }\n #ats-ad-container button[data-plyr='mute']{\n --plyr-control-spacing: 3px;\n padding-left: 10px;\n padding-right: 10px;\n }\n button[data-plyr='play'].ats-ima-control{\n --plyr-control-spacing: 7px;\n padding-left: 8px;\n }\n .plyr__progress .plyr__tooltip{\n font-family: sans-serif;\n }\n .ats-video-playlist {\n position: relative;\n margin: 0px auto;\n }\n .ats-video-playlist-button-left {\n z-index: 1;\n position: absolute;\n top: 100px;\n width: 28px;\n height: 28px;\n left: 6px;\n background-color: white;\n border-radius: 14px;\n border: none;\n }\n .ats-video-playlist-button-left::after {\n content: '';\n position: absolute;\n left:11px;\n top: 50%;\n width: 7px;\n height: 7px;\n border-top: 2px solid #333;\n border-right: 2px solid #333;\n transform: translate(0, -50%) rotate(225deg);\n }\n .ats-video-playlist-button-right {\n z-index: 1;\n position: absolute;\n top: 100px;\n width: 28px;\n height: 28px;\n right: 6px;\n background-color: white;\n border-radius: 14px;\n border: none;\n }\n .ats-video-playlist-button-right::after {\n content: '';\n position: absolute;\n right: 11px;\n top: 50%;\n width: 7px;\n height: 7px;\n border-top: 2px solid #333;\n border-right: 2px solid #333;\n transform: translate(0, -50%) rotate(45deg);\n }\n .ats-video-playlist-container {\n display: flex;\n overflow-y: hidden;\n overflow-x: scroll;\n height: ${"sp"===this.deviceType?this.SP_PLAYLIST_HEIGHT:this.PC_PLAYLIST_HEIGHT}px;\n background-color: black;\n }\n .ats-video-playlist-mask {\n z-index: 1;\n display: none;\n background: rgba(255, 255, 255, 0.8);\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n }\n .ats-playlist-item {\n position: relative;\n height: calc(100% - ${"sp"===this.deviceType?8:16}px);\n padding: 0;\n margin: ${"sp"===this.deviceType?4:8}px;\n }\n .ats-playlist-item:hover:after {\n box-sizing: border-box;\n content: '';\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0px;\n left: 0px;\n background-color: rgba(0, 0, 0, 0.2);\n border: 1px dotted rgba(144,128,64);\n }\n .ats-playlist-item > img {\n height: 100%;\n max-width:260px;\n margin: 0;\n padding: 0;\n }\n .ats-playlist-item > div{\n padding: 0;\n width: 80%;\n position: absolute;\n bottom: 0;\n margin: 0;\n overflow: hidden;\n background-color: rgba(0, 0, 0, 0.4);\n }\n .ats-playlist-item > div > p {\n display: -webkit-box;\n margin: 0;\n font-family: sans-serif;\n line-height: ${"sp"===this.deviceType?12:16}px;\n font-size: ${"sp"===this.deviceType?11:14}px;\n color: white;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n max-height: ${"sp"===this.deviceType?24:32}px;\n }\n .ats-ima-control-container {\n display: flex;\n align-items: center;\n position: absolute;\n top: -24px;\n background-color: rgba(0, 0, 0, 0.9);\n height: 24px;\n }\n #ats-ad-container .plyr__controls__item.plyr__progress__container {\n width: 100%;\n padding-left: 0;\n background: rgba(0, 0, 0, 0.6);\n }\n #ats-insert-video-sticky-wrapper .plyr__controls button.plyr__control, #ats-insert-video-sticky-wrapper .ats-ima-control-bar button.plyr__control {\n opacity: 1;\n transition: none;\n padding: 4px 8px;\n margin: auto;\n height: 24px;\n color: white;\n }\n .plyr .plyr__controls, .plyr__control--overlaid[data-plyr="play"] {\n z-index: ${DEFAULT_PLAYER_CONTROL_Z_INDEX}\n }\n}\n `,`${this.divId}`)},this.onClickAdPlayButton=()=>{this.adsManager&&(this.isAdPaused?(this.isAdPaused=!1,this.adsManager.resume(),this.adPlayButton.classList.add("plyr__control--pressed")):(this.isAdPaused=!0,this.adsManager.pause(),this.adPlayButton.classList.remove("plyr__control--pressed")))},this.buildVideo=async e=>{const{insertPosition:t="afterbegin",scrollEffect:i,adOutputFormat:s="vast",enableVastContinuousAds:n,numberOfRepeatedAds:a,maxWidth:o,maxHeight:r}=this.config;this.applyInsertVideoCss(),(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TD)(`#${this.wrapperId} {${this.config.customWrapperCss}}`);const d=document.createElement("video");this.videoTag=d,d.id=this.divId,d.className=this.divClassName,this.videoStickyWrapper=document.createElement("div"),this.videoWrapper=document.createElement("div"),this.videoWrapper.className=this.wrapperClassName,this.videoWrapper.id=this.wrapperId,d.setAttribute("controls","true"),d.setAttribute("playsinline","true"),d.setAttribute("webkit-playsinline","true"),d.setAttribute("preload","auto"),d.setAttribute("muted","true");const l=document.createElement("div");l.id="ats-ad-container",this.adDisplayContainerElm=l,o&&(this.videoWrapper.style.maxWidth=`${o}px`),r&&(this.videoWrapper.style.maxHeight=`${r}px`),this.videoWrapper.style.margin="0 auto",this.closeButton.id=this.closeButtonId,3===i&&this.videoStickyWrapper.appendChild(this.closeButton),this.videoStickyWrapper.appendChild(d),this.videoStickyWrapper.appendChild(l),this.videoWrapper.appendChild(this.videoStickyWrapper),e.insertAdjacentElement(t,this.videoWrapper),this.createImaControls(),this.adPlayButton=document.querySelector("button[data-plyr='play'].ats-ima-control"),this.adPlayButton?.addEventListener("click",this.onClickAdPlayButton),this.prebid?.adUnitsCodeDict[this.divId]?await this.prebid.onFirstPrebidResponseEnded&&this.prebidAdUnits&&this.prebidAdUnit&&this.invokeVideoPlayer(this.prebid.buildVideoUrl(this.prebidAdUnit,this.createVastParams(this.prebidAdUnits.adUnitPath,s,n,a)),this.divId):this.invokeVideoPlayer(this.getAdTagUrl(),this.divId)},this.createAdSizes=e=>{let t=defaultSizes169;switch(e){case"9:16":t=defaultSizes916;break;case"4:3":t=defaultSizes43;break;case"3:4":t=defaultSizes34;break;case"1:1":t=defaultSizes11}return t},this.createVastParams=(e,t,i,s,n)=>{const a={iu:e,plcmt:"2",description_url:location.href,gdfp_req:"1",output:t,unviewed_position_start:"1",env:"vp",impl:"s",vid_d:"vmap"===t&&this.videoLength>0?this.videoLength.toString():"",..."vmap"===t?{ad_rule:"1"}:i?{ad_rule:"0",pmad:s?s.toString():"5",pmnd:"0",pmxd:"180000"}:{ad_rule:"0"},...(o=this.gpt.ppid||window.anymindTS&&"gpt"in window.anymindTS&&window.anymindTS.gpt.ppid||void 0,o?{ppid:o}:{})};var o;n&&(a.sz=n);const r=this.getCustomVastParam();return Object.assign(a,r),a},this.getCustomVastParam=()=>{const{customVastParams}=this.config;return customVastParams.reduce((current,value)=>{let valueConfig;try{valueConfig=eval(value.value)+""}catch(e){vjsLogger.error("error in eval: ",value.value)}return current[value.key]=valueConfig,current},{})},this.createPlaylist=(e,t)=>{e.length<5&&vjsLogger.error("not enough playlist items, should be 5 or more");const i=document.createElement("div"),s=document.createElement("div"),n=document.createElement("div");if(i.classList.add("ats-video-playlist"),i.style.width=this.originVideoWidth+"px",s.classList.add("ats-video-playlist-container"),n.classList.add("ats-video-playlist-mask"),this.playlistMask=n,e.forEach(e=>{const i=document.createElement("div"),n=document.createElement("img"),a=document.createElement("div"),o=document.createElement("p");i.classList.add("ats-playlist-item"),o.textContent=e.title,n.src=e.thumbnail,a.appendChild(o),i.appendChild(n),i.appendChild(a),this.registerPlayListItemClickEvent(i,e,t),s.appendChild(i)}),i.appendChild(s),i.appendChild(n),this.numOfPlaylists=e.length,"pc"===this.deviceType){const e=document.createElement("button"),t=document.createElement("button");e.classList.add("ats-video-playlist-button-left"),t.classList.add("ats-video-playlist-button-right"),s.appendChild(e),s.appendChild(t),e.addEventListener("click",this.onClickLeftPlaylist),t.addEventListener("click",this.onClickRightPlaylist)}return i},this.disablePlaylist=()=>{this.playlistMask&&(this.playlistMask.style.display="block")},this.enablePlaylist=()=>{this.playlistMask&&(this.playlistMask.style.display="")},this.onClickLeftPlaylist=()=>{const e=document.querySelector(".ats-video-playlist-container");e&&(e.scrollLeft=e.scrollLeft-e.scrollWidth/this.numOfPlaylists)},this.onClickRightPlaylist=()=>{const e=document.querySelector(".ats-video-playlist-container");e&&(e.scrollLeft=e.scrollLeft+e.scrollWidth/this.numOfPlaylists)},this.registerPlayListItemClickEvent=(e,t,i)=>{e.addEventListener("click",this.onClickPlaylist(t,i))},this.onClickPlaylist=(e,t)=>()=>{const{videoSource:i,youtubeButtonText:s}=this.config;this.resetAdObj(),this.loadVideo(e.hls),this.changePoster(e.thumbnail),this.initIMA(t),3===i&&e.articles?(this.articleLinks=e.articles.map(e=>e.url),this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.text=e.buttonText||this.DEFAULT_RSS_LINK_BUT_TEXT)):1===i&&s&&this.videoPlayerViewMoreLink&&e.videoId&&(this.videoPlayerViewMoreLink.href=`${YOUTUBE_VIDEO_URL}${e.videoId}`),this.play()},this.loadVideo=e=>{this.hls.loadSource(e),this.hls.attachMedia(this.videoTag)},this.resetAdObj=()=>{this.hideAdDisplayContainer(),this.hideImaControlBar(),this.adDisplayContainerInitialized=!1,this.adsManager&&this.adsManager.destroy(),this.adsLoader&&this.adsLoader.destroy(),this.adDisplayContainer&&this.adDisplayContainer.destroy(),this.adsRequest=null,this.allAdsCompleted=!0,this.isAdPlaying=!1,clearInterval(this.intervalTimer),clearInterval(this.countdownTimer),clearTimeout(this.refreshTimer),this.isAdPaused=!1,this.contentEnded=!1},this.changePoster=e=>{this.player.poster=e},this.refreshAds=async(e,t)=>{if(vjsLogger.log("refresh ads"),await this.waitUntilHasFocus(),t===this.videoLoadingCount&&this.player&&!this.isAdPlaying){if(this.adsManager&&this.adsManager.destroy(),this.adsLoader)try{this.adsLoader.contentComplete()}catch(e){vjsLogger.error("adsLoader contentComplete error: ",e)}this.adDisplayContainer.initialize(),vjsLogger.log("try to refresh ads"),this.imaRequestAds(e)}},this.waitUntilHasFocus=()=>new Promise(e=>{document.hasFocus()&&e(!0),this.hasFocusTimer=setInterval(()=>{document.hasFocus()&&(clearInterval(this.hasFocusTimer),e(!0))},100)}),this.waitUntilFirstPlay=()=>!!this.isFirstPlay||new Promise(e=>{const t=setInterval(()=>{this.isFirstPlay&&(e(!0),clearInterval(t))},50)}),this.createImaControls=()=>{this.adDisplayContainerElm.insertAdjacentHTML("afterbegin",'\n
\n
\n \n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
'),this.countdownDiv=document.querySelector("#ads_countdown"),this.progressDiv=document.querySelector("#ats_ads_progress_bar-progress"),this.imaControlBar=document.querySelector(".ats-ima-control-bar")},this.hideImaControlBar=()=>{this.imaControlBar.style.visibility="hidden"},this.showImaControlBar=()=>{this.imaControlBar.style.visibility="visible"},this.waitUntilInView=()=>new Promise(e=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TG)(this.videoStickyWrapper)&&e(!0);let t=!1;const i=()=>{t||(window.requestAnimationFrame(()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TG)(this.videoStickyWrapper)&&(document.removeEventListener("scroll",i),e(!0)),t=!1}),t=!0)};this.scrollCallbacks.push(i),i(),document.addEventListener("scroll",i)}),this.onAdsErrorCallback=async e=>{const t=e.getError().data.errorCode;vjsLogger.error(`${this.divId}: error code: ${t}`,e.getError().data);const i=this.videoLoadingCount;await this.multiCallAds(i)},this.multiCallAds=async e=>{if(vjsLogger.log("multi call ads"),this.autoAdUnitPaths[this.counter_retry-1]&&this.counter_retry<=this.MAX_RETRY){let t;t=this.prebid&&this.prebidAdUnits&&this.prebidAdUnit&&await this.prebid.onFirstPrebidResponseEnded?this.prebid.buildVideoUrl(this.prebidAdUnit,this.createVastParams(this.autoAdUnitPaths[this.counter_retry-1]||"",this.config.adOutputFormat,this.config.enableVastContinuousAds,this.config.numberOfRepeatedAds)):this.gpt.getVastUrl(this.createVastParams(this.autoAdUnitPaths[this.counter_retry-1]||"",this.config.adOutputFormat,this.config.enableVastContinuousAds,this.config.numberOfRepeatedAds,this.createAdSizes(this.config.aspectRatio))),await this.refreshAds(t,e),vjsLogger.log("retry count",this.counter_retry),this.counter_retry++}else{this.counter_retry=1,vjsLogger.log(`all retry is fail, call ads after ${this.REFRESH_INTERVAL/1e3} seconds`);const e=this.videoLoadingCount;this.refreshTimer=setTimeout(()=>{this.refreshAds(this.getAdTagUrl(),e)},this.REFRESH_INTERVAL)}},this.initIMA=e=>{vjsLogger.log("init ima");const t=window.google;t.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.createAdDisplayContainer();const i=new t.ima.AdsLoader(this.adDisplayContainer);this.adsLoader=i,i.addEventListener(t.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),i.addEventListener(t.ima.AdErrorEvent.Type.AD_ERROR,this.onAdsErrorCallback,!1),this.imaRequestAds(e)},this.contentEndedListener=()=>{this.contentEnded=!0;try{this.adsLoader.contentComplete()}catch(e){vjsLogger.error("adsLoader contentComplete error: ",e)}},this.imaRequestAds=e=>{const t=new window.google.ima.AdsRequest;this.adsRequest=t,t.adTagUrl=this.testAdTagUrl?this.testAdTagUrl:e,t.linearAdSlotWidth=this.originVideoWidth,t.linearAdSlotHeight=this.originVideoHeight,t.nonLinearAdSlotWidth=this.originVideoWidth,t.nonLinearAdSlotHeight=this.originVideoHeight/3,this.playWithSound&&this.soundAdsAvailable?(vjsLogger.log("sound ads request"),t.setAdWillPlayMuted(!1)):(vjsLogger.log("mute ads request"),t.setAdWillPlayMuted(!0)),this.adsLoader.requestAds(t)},this.createAdDisplayContainer=()=>{this.adDisplayContainer=new window.google.ima.AdDisplayContainer(this.adDisplayContainerElm,this.videoTag)},this.initializeAdDisplayContainer=()=>{this.adDisplayContainer&&this.adDisplayContainer.initialize()},this.showAdDisplayContainer=()=>{this.initAdUIElement(),this.adDisplayContainerElm.style.display="block"},this.hideAdDisplayContainer=()=>{this.initAdUIElement(),this.adDisplayContainerElm.style.display="none"},this.initAdUIElement=()=>{this.progressDiv.style.width="0%",this.countdownDiv.innerHTML=""},this.onAdsManagerLoaded=e=>{vjsLogger.log("ads manager loaded");const t=window.google,i=new t.ima.AdsRenderingSettings;i.restoreCustomPlaybackStateOnAdBreakComplete=!0;const s=e.getAdsManager(this.videoTag,i);this.adsManager=s,this.resizeObserver=new ResizeObserver(e=>{this.adsManager.resize(this.videoTag.clientWidth,this.videoTag.clientHeight,t.ima.ViewMode.NORMAL)}),this.resizeObserver.observe(this.videoTag);const{STARTED:n,CONTENT_PAUSE_REQUESTED:a,CONTENT_RESUME_REQUESTED:o,ALL_ADS_COMPLETED:r,LOADED:d,COMPLETE:l,SKIPPABLE_STATE_CHANGED:h,SKIPPED:c,USER_CLOSE:p,LOG:g,AD_BREAK_READY:_,VOLUME_CHANGED:u}=t.ima.AdEvent.Type,m=[n,t.ima.AdErrorEvent.Type.AD_ERROR,a,o,r,d,l,h,c,p,g,_,u];for(const e of m)s.addEventListener(e,this.onAdEvent);this.playAdBreaks()},this.onAdMuteClick=()=>{this.adMuteButton.classList.contains("plyr__control--pressed")?(this.adMuteButton.classList.add("plyr__control--not-pressed"),this.adMuteButton.classList.remove("plyr__control--pressed"),this.adsManager.setVolume(1)):(this.adMuteButton.classList.add("plyr__control--pressed"),this.adMuteButton.classList.remove("plyr__control--not-pressed"),this.adsManager.setVolume(0))},this.trackLinearAd=()=>{const e=this.currentAd.getDuration()>=0?this.currentAd.getDuration():0,t=this.adsManager.getRemainingTime()>0?this.adsManager.getRemainingTime():e;let i=e-t;i=i>=0?i:0;let s,n=0;this.currentAd.getAdPodInfo()&&(s=this.currentAd.getAdPodInfo().getAdPosition(),n=this.currentAd.getAdPodInfo().getTotalAds()),this.updateAdUi(i,t,e,s,n)},this.updateAdUi=(e,t,i,s,n)=>{const a=Math.floor(t/60),o=Math.floor(t%60);let r="";o.toString().length<2?r="0"+o:r+=o;let d=": ";n>1&&(d=" ("+s+"/"+n+") "),this.countdownDiv.innerHTML="Ad"+d+a+":"+r;let l=0;i>0&&(l=e/i);const h=100*l;this.progressDiv.style.width=h+"%"},this.initAdsManager=()=>{this.adsManager.init(this.videoTag.clientWidth,this.videoTag.clientHeight,window.google.ima.ViewMode.NORMAL),this.initializeAdDisplayContainer()},this.playAdBreaks=async()=>{this.userStopAnchor||this.enableAdAnchoredPlayback||await this.waitUntilInView(),await this.waitUntilFirstPlay(),this.initAdsManager(),this.showAdDisplayContainer(),this.hideImaControlBar();try{vjsLogger.log("play ads"),this.adsManager.start()}catch(e){vjsLogger.log(e),this.player?.play().catch(()=>{this.player.muted=!0,this.player.volume=0,this.isSoundAvailable=!1,this.player.play().catch(()=>{vjsLogger.error("play content error after ad error and retry with muted player")})})}},this.handleMissingVideo=async()=>{this.lastMissingVideosCount++,this.dispose(),await this.execute(document)},this.invokeVideoPlayer=async(e,t)=>{const{aspectRatio:i,scrollEffect:s,youtubeChannelFeedUrl:n,youtubeButtonText:a,videoSource:o,selectedYoutubeVideos:r,generatedVideosFeedJsonUrl:d,generatedVideos:l=[],enablePlaylist:h=!1,removePlaylistCarousel:c=!1}=this.config;let p="",g=null;if(1===o&&n){if(r.length>0){if(this.videoFeedEntry=h?await _VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseVideoByIndexFromSelected(t,n,this.videoLoadingCount):await _VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseVideoRandomlyFromSelected(t,n),!this.videoFeedEntry&&this.lastMissingVideosCount<3)return void await this.handleMissingVideo();this.lastMissingVideosCount=0}else this.videoFeedEntry=await _VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseLatestPublishedYTVideoEntry(n);if(this.videoFeed=await _VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.ytFeedJson[n],!this.videoFeedEntry)return this.dispose(),void vjsLogger.error("iv: fail to download video");this.videoLength=this.videoFeedEntry.video_length||0,p=this.useMP4?this.videoFeedEntry.mp4.low:this.videoFeedEntry.hls.manifest,this.poster=this.videoFeedEntry.thumbnail}else if(2===o){const e=h?_VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseAMVideoEntryByIndex(this.divId,this.videoLoadingCount):_VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseAMVideoEntry(this.divId);if(!e&&h&&this.lastMissingVideosCount<3)return void await this.handleMissingVideo();this.lastMissingVideosCount=0,p=this.useMP4?e.mp4.low:e.hls.manifest,this.poster=e.thumbnail,this.videoFeed=_VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.amFeedJson[this.divId]}else if(3===o&&d&&l.length>0){const e=l.map(e=>e.generatedVideoID),t=await _VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseGeneratedFeedVideoEntry(d,e,h?this.videoLoadingCount:0);if(!t&&h&&this.lastMissingVideosCount<3)return void await this.handleMissingVideo();if(this.lastMissingVideosCount=0,this.videoFeed=await _VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.generatedVideoJson[d],!t)return this.videoWrapper.style.display="none",void vjsLogger.error("iv: fail to download video");p=this.useMP4?t.entry.mp4.low:t.entry.hls.manifest,this.convertedGeneratedVideos=l.reduce((e,t)=>(e[t.generatedVideoID]=t,e),{}),g=this.convertedGeneratedVideos[t.id]?this.convertedGeneratedVideos[t.id].generatedVideoButtonText:null,this.poster=this.convertedGeneratedVideos[t.id].generatedVideoThumbnail,this.generatedVideoArticles=t.entry.articles,this.videoLength=this.RSS_VIDEO_LENGTH}if(this.videoLength>0&&"vmap"===this.config.adOutputFormat){const t=new URL(e);t.searchParams.get("vid_d")||(t.searchParams.set("vid_d",this.videoLength.toString()),e=t.toString())}this.useMP4?this.videoTag.src=p:(this.hls=new window.atsHls(this.hlsConfig),this.hls.loadSource(p),this.hls.attachMedia(this.videoTag));const _={controls:["play-large","play","progress","current-time","mute","volume"],ratio:i};this.videoTag.setAttribute("data-poster",this.poster);const u=new window.atsPlyr(`#${t}`,_);this.player=u,this.initIMA(e);const{height:m,width:b}=this.videoWrapper.getBoundingClientRect();if(this.videoWrapper.style.height=m+"px",this.videoWrapper.style.width=b+"px",this.videoStickyWrapper.style.width=b+"px",this.originVideoWidth=b,this.originVideoHeight=m,h){const t=[];if(1===o){const e=this.videoFeed.videos;let i=Object.keys(e);if(r.length>0){const e=r.map(e=>e.video_id);i=e.filter(e=>i.some(t=>t===e))}i.forEach(i=>{t.push({videoId:e[i].video_id,thumbnail:e[i].thumbnail,title:e[i].title,hls:e[i].hls.manifest,mp4:e[i].mp4.low})})}else if(3===o){let e=[];this.config.generatedVideos&&this.config.generatedVideos.length>0&&(e=this.config.generatedVideos.map(e=>e.generatedVideoID));const i=this.videoFeed.videos;Object.keys(i).forEach(s=>{e.some(e=>e===s)&&t.push({thumbnail:i[s].articles[0].thumbnail,title:i[s].articles[0].title,hls:i[s].hls.manifest,mp4:i[s].mp4.low,articles:i[s].articles,buttonText:this.convertedGeneratedVideos[s].generatedVideoButtonText})})}else 2===o&&this.videoFeed.forEach(e=>{t.push({thumbnail:e.thumbnail,title:e.title,hls:e.hls.manifest,mp4:e.mp4.low})});c||(this.playlist=this.createPlaylist(t,e),this.playlist&&this.videoWrapper.insertAdjacentElement("afterend",this.playlist))}this.videoStickyWrapper.id=this.videoStickyWrapperId,u.on("ready",()=>{u.elements.container.style.display="block"}),u.on("play",()=>{this.isFirstPlay||(vjsLogger.log("first play"),this.isFirstPlay=!0)}),u.on("timeupdate",()=>{this.currentTime=u.currentTime,this.currentTime>this.ELAPSED_TIME_TO_GET_UI&&!this.soundAdsAvailable&&(this.soundAdsAvailable=!0,this.detectUIPromise=this.detectUI(),this.config.sound&&this.detectUIPromise.then(async()=>{await this.waitUntilFirstPlay(),u.volume=DEFAULT_PLAYER_VOLUME,this.isSoundAvailable=!0}))}),u.on("ended",async()=>{this.contentEndedListener(),await new Promise(e=>{const t=setInterval(()=>{this.allAdsCompleted&&(clearInterval(t),e(!0))},300)}),this.dispose(),await this.execute(document)}),this.autoplayInNext&&this.autoplay();let f=!1;(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TG)(this.videoStickyWrapper)&&(this.onceInView=!0);const v=()=>{f||(window.requestAnimationFrame(()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TG)(this.videoStickyWrapper)&&(this.onceInView=!0,document.removeEventListener("scroll",v)),f=!1}),f=!0)};if(document.addEventListener("scroll",v),this.scrollCallbacks.push(v),this.generatedVideoArticles.length>0&&l.length>0?(this.videoPlayerViewMoreLink=document.createElement("a"),this.videoPlayerViewMoreLink.id=this.videoPlayerViewMoreLinkId,this.videoPlayerViewMoreLink.text=g||l[0].generatedVideoButtonText||this.DEFAULT_RSS_LINK_BUT_TEXT,this.videoStickyWrapper.appendChild(this.videoPlayerViewMoreLink),this.articleLinks=this.generatedVideoArticles.map(e=>e.url),u.on("timeupdate",()=>{const e=Math.floor(u.currentTime/6),t=this.articleLinks[e];t&&this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.href=t,this.videoPlayerViewMoreLink.style.visibility="visible")})):1===o&&a&&this.videoFeedEntry&&this.videoFeedEntry.video_id?(this.videoPlayerViewMoreLink=document.createElement("a"),this.videoPlayerViewMoreLink.id=this.videoPlayerViewMoreLinkId,this.videoPlayerViewMoreLink.text=a,this.videoStickyWrapper.appendChild(this.videoPlayerViewMoreLink),this.videoPlayerViewMoreLink.href=`${YOUTUBE_VIDEO_URL}${this.videoFeedEntry.video_id}`,this.videoPlayerViewMoreLink.style.visibility="visible"):this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.style.visibility="hidden"),3!==s||this.userStopAnchor||this.enableAdAnchoredPlayback)if(2===s){let e=!1;this.topStickyCallback();const t=()=>{e||(window.requestAnimationFrame(()=>{this.topStickyCallback(),e=!1}),e=!0)};this.scrollCallbacks.push(t),document.addEventListener("scroll",t),this.showTopStickyVideoCloseButton&&(this.topStickyCloseButton.id=this.topStickyCloseButtonId,this.topStickyCloseButton.onclick=()=>{this.videoStickyWrapper.classList.remove(this.topStickyClass)},this.videoStickyWrapper.appendChild(this.topStickyCloseButton))}else(1===s||this.enableAdAnchoredPlayback)&&(this.observer=new IntersectionObserver(this.staticCallback,{root:document,rootMargin:"0px",threshold:1}),this.observer.observe(this.videoWrapper));else{let e=!1;this.anchorCallback();const t=()=>{e||(window.requestAnimationFrame(()=>{this.anchorCallback(),e=!1}),e=!0)};document.addEventListener("scroll",t),this.scrollCallbacks.push(t),this.closeButton.addEventListener("click",()=>{this.userStopAnchor=!0,document.removeEventListener("scroll",t),this.stopElmAnchoring()})}},this.startElmAnchoring=()=>{this.stickyOrAnchoring||(this.stickyOrAnchoring=!0,this.videoStickyWrapper.classList.remove(`${this.wrapperClassName}-non-anchoring`),this.videoStickyWrapper.classList.add(`${this.wrapperClassName}-anchoring`),this.videoStickyWrapper.classList.add(this.anchoringClass),this.userStopAnchor&&!this.showCloseButton||(this.closeButton.style.visibility="visible"),this.player.elements.inputs.volume&&(this.player.elements.inputs.volume.style.display="none"),this.videoStickyWrapper.style.width="")},this.stopElmAnchoring=()=>{this.stickyOrAnchoring=!1,this.videoStickyWrapper.classList.remove(`${this.wrapperClassName}-anchoring`),this.videoStickyWrapper.classList.remove(this.anchoringClass),this.videoStickyWrapper.classList.add(`${this.wrapperClassName}-non-anchoring`),this.videoStickyWrapper.style.width=this.originVideoWidth+"px",this.player.elements.inputs.volume&&(this.player.elements.inputs.volume.style.display="block"),this.closeButton.style.visibility="hidden"},this.anchorCallback=()=>{const{top:e,height:t}=this.videoWrapper.getBoundingClientRect();t/2+e-window.innerHeight<0&&this.autoplay(),!this.userStopAnchor&&!this.onceInView||(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TG)(this.videoWrapper)?this.stickyOrAnchoring&&this.stopElmAnchoring():this.startElmAnchoring()},this.topStickyCallback=()=>{const e=this.videoWrapper.getBoundingClientRect().height,t=this.videoWrapper.getBoundingClientRect().top,i=this.videoWrapper.getBoundingClientRect().left;e/2+t-window.innerHeight<0&&this.autoplay(),t<0?this.stickyOrAnchoring||(this.stickyOrAnchoring=!0,this.videoStickyWrapper.classList.add(this.topStickyClass),this.videoStickyWrapper.style.width="",this.videoStickyWrapper.style.left=i+"px",this.videoStickyWrapper.style.width=this.originVideoWidth+"px",this.topStickyCloseButton.style.visibility="visible"):this.stickyOrAnchoring&&(this.stickyOrAnchoring=!1,this.videoStickyWrapper.classList.remove(this.topStickyClass),this.videoStickyWrapper.style.width=this.originVideoWidth+"px",this.topStickyCloseButton.style.visibility="hidden")},this.staticCallback=e=>{e[0].intersectionRatio>.5&&(this.observer?.disconnect(),this.autoplay())},this.detectUI=async()=>new Promise(async e=>{const t=()=>{this.isFirstPlay&&(this.detectUICallback=null,window.removeEventListener("click",t),this.isSoundAvailable=!0,e(!0))};this.detectUICallback=t,document.addEventListener("click",t)}),this.autoplay=()=>{this.isAutoPlayed||this.isAdPlaying||1!==this.config.playerMode||(this.isAutoPlayed=!0,this.player?.play().catch(()=>{vjsLogger.error("autoplay fail"),this.player.muted=!0,this.player.volume=0,this.isSoundAvailable=!1,this.player.play().catch(()=>{vjsLogger.error("autoplay with muted fail")})}))},this.play=async()=>{await this.waitUntilInView(),await this.waitUntilFirstPlay(),vjsLogger.log("play video"),this.player?.play().catch(()=>{vjsLogger.error("play fail"),this.player.muted=!0,this.player.volume=0,this.isSoundAvailable=!1,this.player.play().catch(()=>{vjsLogger.error("play with muted fail")})})},this.dispose=()=>{vjsLogger.log("dispose"),this.scrollCallbacks=this.scrollCallbacks.reduce((e,t)=>(document.removeEventListener("scroll",t),e),[]),this.counter_retry=1,this.isSoundAvailable=!1,this.isFirstPlay=!1,this.isAutoPlayed=!1,this.stickyOrAnchoring=!1,this.autoplayInNext=!0,this.showCloseButton=!1,this.hls?.detachMedia(),this.hls=null,this.player&&(this.player.destroy(),this.resetAdObj(),this.player.muted=!0,this.player.volume=0),this.videoWrapper?.remove(),this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.style.visibility="hidden"),this.playlist?.remove()},this.divId=this.config.divIDs[0],this.closeButtonId=`${this.divId}-close-button`,this.closeButton.type="button",this.wrapperId=`${this.divId}-wrapper`;const{sizeMappingGroup,selectedYoutubeVideos,scrollEffect,enableAdAnchoredPlayback,anchorPosition=1,autoAdUnitPaths=[],showTopStickyVideoCloseButton}=this.config;this.autoAdUnitPaths=autoAdUnitPaths,this.prebidAdUnits=this.prebid?.adUnitsCodeDict[this.divId],this.prebidAdUnit=this.prebidAdUnits?.prebidAdUnits.filter(e=>"instream"===e.mediaTypes.video?.context)[0];const sizeMapping=sizeMappingGroup.find(e=>(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.hg)(e.deviceSizes));this.vastSizes=sizeMapping?sizeMapping.sizes[0]:[300,250],2===anchorPosition?this.anchoringClass=`${this.wrapperClassName}-left`:1===anchorPosition&&(this.anchoringClass=`${this.wrapperClassName}-right`),this.enableAdAnchoredPlayback=enableAdAnchoredPlayback&&3==scrollEffect,this.showTopStickyVideoCloseButton=showTopStickyVideoCloseButton,_VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.registerSelectedVideos(selectedYoutubeVideos,this.divId)}get useMP4(){return!window.atsHls.isSupported()}getAdTagUrl(){return this.config.adUnitPath?this.gpt.getVastUrl(this.createVastParams(this.config.adUnitPath,this.config.adOutputFormat,this.config.enableVastContinuousAds,this.config.numberOfRepeatedAds,this.createAdSizes(this.config.aspectRatio))):""}get playWithSound(){return!!this.config.sound&&this.isSoundAvailable&&this.isFirstPlay}}},463(e,t,i){i.d(t,{R:()=>r});var s=i(939),n=i(554),a=i(335),o=i(599);class r extends o.x{constructor(e,t,i,o){super(e,t,"ats-interstitial",i,"interstitial"),this.resolve=o,this._execute=()=>{},this._findTarget=()=>[document.body],this._buildSlot=e=>{const t=this.config.divIDs[0];return this.slots[t]={slotWrapper:this.createDiv(`${this.AD_NAME}-root`),slot:document.createElement("div"),divId:t,adUnitPath:this.config.adUnitPath,isGPTRefreshCalled:!1,shouldStopRefresh:!1},this.backdrop=this.createDiv(`${this.AD_NAME}-backdrop`),this.container=this.createDiv(`${this.AD_NAME}-container`),this.paper=this.createDiv(`${this.AD_NAME}-paper`),this.paper.appendChild(this.slots[t].slot),this.container.appendChild(this.paper),this.slots[t].slotWrapper.appendChild(this.backdrop),this.slots[t].slotWrapper.appendChild(this.container),this.slots[t].slotWrapper.appendChild(this.closeButton),this.setCustomStyle(),e.insertAdjacentElement("beforeend",this.slots[t].slotWrapper),t},this._getFetchAdConfig=e=>{const{adUnitPath:t,sizeMappingGroup:i,setCollapseEmptyDiv:s,setTargetingConfigs:n,enableSetForceSafeFrameForSlot:a}=this.config;return{gpt:{slotWrapperDiv:this.slots[e].slotWrapper,instanceCount:this.instanceCount,adUnitPath:t,sizes:[[300,250]],divId:e,sizeMappingGroup:i,setCollapseEmptyDiv:s,setTargetingConfigs:n,enableSetForceSafeFrameForSlot:a,onAfterGptRendered:this._onAfterGptRendered(e),onAfterGptFetched:this._onAfterGptFetched(e),infinite:!1}}},this._onAfterGptFetched=e=>t=>{this.dispose=()=>{try{this.close(t,e)}catch(e){a.vF.error(e)}},this.closeButton.onclick=()=>this.close(t,e)},this._onAfterGptRendered=e=>t=>{try{if(t.isEmpty)throw new Error(t.slot+" isEmpty");const[i,s]=Array.isArray(t.size)?t.size:[0,0];this.show(i,s,e)}catch(e){this.dispose()}},this.setCloseButtonPosition=()=>{let e=`#${this.AD_NAME}-button {\n top: 112px;\n bottom: auto!important;\n right: 56px;\n }`;switch(this.config.closeButtonPosition){case"topleft":e=`#${this.AD_NAME}-button {\n top: 112px;\n bottom: auto!important;\n left: 56px;\n }`;break;case"topright":e=`#${this.AD_NAME}-button {\n top: 112px;\n bottom: auto!important;\n right: 56px;\n }`;break;case"topmiddle":e=`#${this.AD_NAME}-button {\n top: 112px;\n bottom: auto!important;\n left: 50%;\n transform: translateX(-50%);\n padding: 8px 32px;\n }`;break;case"bottomleft":e=`#${this.AD_NAME}-button {\n bottom: 112px;\n top: auto!important;\n left: 56px;\n }`;break;case"bottomright":e=`#${this.AD_NAME}-button {\n bottom: 112px;\n top: auto!important;\n right: 56px;\n }`;break;case"bottommiddle":e=`#${this.AD_NAME}-button {\n bottom: 112px;\n top: auto!important;\n left: 50%;\n transform: translateX(-50%);\n padding: 8px 32px;\n }`}(0,s.TD)(e,`${this.AD_NAME}-override-position`)},this.setCustomStyle=()=>{this.config.useCloseButtonXIcon&&(0,s.TD)(`#${this.AD_NAME}-button::before {content: '×';font-size: inherit;${this.config.closeButtonText?"margin-right: 8px;":""}color: inherit}`,`${this.AD_NAME}-close-button-x-icon`),this.setCloseButtonPosition(),this.config.useCustomCss&&this.config.customCss&&(0,s.TD)(this.config.customCss,`${this.AD_NAME}-override`)},this.createDiv=e=>{const t=document.createElement("div");return t.id=e,t},this.createCloseButton=(e,t)=>{const i=document.createElement("button"),s=document.createTextNode(t);return i.appendChild(s),i.id=e,i},this.show=(e,t,i)=>{this.slots[i].slotWrapper.style.visibility="visible",this.slots[i].slotWrapper.style.opacity="1",this.paper.style.width=`${e}px`,this.paper.style.height=`${t}px`,this.closeButton.style.display="none";const s=this.slots[i].slot.querySelector("iframe");s&&s.addEventListener("load",()=>{setTimeout(()=>{this.closeButton.style.display="inline-block"},window.anymindTS_TIME_HIDE_INTERSTITIAL_CLOSE_BUTTON??300)})},this.close=(e,t)=>{this.slots[t].slotWrapper.style.opacity="0",(0,n._7)(()=>{e&&(googletag.destroySlots([e]),document.body.removeChild(this.slots[t].slotWrapper))})(),this.resolve&&(a.vF.log("is: close"),this.resolve())},this.dispose=()=>{},this.backdrop=this.createDiv(`${this.AD_NAME}-backdrop`),this.container=this.createDiv(`${this.AD_NAME}-container`),this.paper=this.createDiv(`${this.AD_NAME}-paper`),this.closeButton=this.createCloseButton(`${this.AD_NAME}-button`,this.config.closeButtonText||"")}_init(){}_addStyle(){(0,s.TD)(`\n #${this.AD_NAME}-root {\n visibility: hidden;\n opacity: 0;\n will-change: opacity;\n transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n box-sizing: border-box;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1500;\n position: fixed;\n }\n #${this.AD_NAME}-backdrop {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n position: fixed;\n touch-action: none;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-tap-highlight-color: transparent;\n }\n #${this.AD_NAME}-container {\n height: 100%;\n outline: none;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n #${this.AD_NAME}-paper {\n flex: 0 1 auto;\n max-width: 1000px;\n max-height: calc(100% - 96px);\n margin: 0;\n display: flex;\n position: relative;\n overflow-y: auto;\n flex-direction: column;\n box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);\n border-radius: 4px;\n background-color: rgba(50, 50, 50, 0.4);\n box-sizing: inherit;\n }\n #${this.AD_NAME}-button {\n position: fixed;\n top: 112px;\n right: 56px;\n color: ${this.config.closeButtonTextColor||"#fff"};\n background-color: ${this.config.closeButtonBackgroundColor||"#000000"};\n padding: 8px 16px;\n font-size: 1rem;\n min-width: 64px;\n box-sizing: border-box;\n min-height: 36px;\n font-weight: ${this.config.closeButtonBoldText?600:500};\n line-height: 1.5;\n border: none;\n border-radius: 8px;\n letter-spacing: 0.02857em;\n white-space: nowrap;\n }\n #${this.AD_NAME}-button:focus {\n outline: none !important;\n }\n`,this.AD_NAME)}}},101(e,t,i){i.d(t,{h:()=>r});var s,n=i(939),a=i(335),o=i(599);!function(e){e[e.NORMAL=1]="NORMAL",e[e.AMP_LIKE=2]="AMP_LIKE",e[e.ADSENSE_LIKE=3]="ADSENSE_LIKE"}(s||(s={}));class r extends o.x{constructor(e,t,i,n){super(e,t,`ats-overlay-${t.anchorPosition}`,i,"overlay"),this.isOpen=!0,this._execute=(e,t=!1)=>(this.infinite=t,e),this._findTarget=()=>[document.body],this._buildSlot=e=>{const t=this.config.divIDs[0];this.slots[t]={slotWrapper:document.createElement("div"),slot:document.createElement("div"),divId:t,adUnitPath:this.config.adUnitPath,isGPTRefreshCalled:!1,shouldStopRefresh:!1,...this.makeReplaceAdSenseParams()},this.slots[t].slotWrapper.classList.add(`${this.AD_NAME}-wrapper-${this.UNRENDERED}`);const i=document.createElement("div");i.className=`${this.AD_NAME}-padding-block-top`;const n=document.createElement("div");return n.className=`${this.AD_NAME}-padding-block-bottom`,this.slots[t].slotWrapper.appendChild(i),this.config.overlayDesign===s.AMP_LIKE||this.config.overlayDesign===s.ADSENSE_LIKE?(this.config.overlayDesign===s.ADSENSE_LIKE&&(this.slots[t].slotWrapper.style.transition="bottom 1s ease-in-out, top 1s ease-in-out"),"bottom"===this.config.anchorPosition?(n.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`),this.slots[t].slotWrapper.appendChild(this.closeButton),this.slots[t].slotWrapper.appendChild(this.slots[t].slot),this.slots[t].slotWrapper.appendChild(n)):(i.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`),this.slots[t].slotWrapper.appendChild(this.slots[t].slot),this.slots[t].slotWrapper.appendChild(n),this.slots[t].slotWrapper.appendChild(this.closeButton))):(n.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`),i.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`),this.slots[t].slotWrapper.appendChild(this.slots[t].slot),this.slots[t].slotWrapper.appendChild(n)),e.insertAdjacentElement("afterbegin",this.slots[t].slotWrapper),t},this.deleteOverlay=(e,t)=>()=>{e&&googletag.destroySlots([e]),this.slots[t].shouldStopRefresh=!0,this.slots[t].slotWrapper.remove()},this.handleClickAdSenseLike=e=>()=>{const{anchorPosition:t}=this.config;if(this.isOpen){this.isOpen=!1,this.closeButton.style.backgroundImage="bottom"===this.config.anchorPosition?this.upArrowSvgUrl:this.downArrowSvgUrl,this.slots[e].shouldStopRefresh=!0;const i=this.slots[e].slotWrapper.getBoundingClientRect().height;"bottom"===t?this.slots[e].slotWrapper.style.bottom=`-${i}px`:this.slots[e].slotWrapper.style.top=`-${i}px`}else this.isOpen=!0,this.closeButton.style.backgroundImage="bottom"===this.config.anchorPosition?this.downArrowSvgUrl:this.upArrowSvgUrl,this.slots[e].shouldStopRefresh=!1,"bottom"===t?this.slots[e].slotWrapper.style.bottom="0px":this.slots[e].slotWrapper.style.top="0px"},this._getFetchAdConfig=e=>{const{adUnitPath:t,sizeMappingGroup:i,setCollapseEmptyDiv:s,setTargetingConfigs:n,enableSetForceSafeFrameForSlot:a}=this.config;return{gpt:{slotWrapperDiv:this.slots[e].slotWrapper,instanceCount:this.instanceCount,adUnitPath:t,sizes:[[300,250]],divId:e,enableSetForceSafeFrameForSlot:a,sizeMappingGroup:i,setCollapseEmptyDiv:s,setTargetingConfigs:n,onAfterGptRendered:this._onAfterGptRendered(e),onAfterGptFetched:this._onAfterGptFetched(e),infinite:this.infinite}}},this._onAfterGptFetched=e=>t=>{const{overlayDesign:i}=this.config;i===s.AMP_LIKE?this.closeButton.onclick=this.deleteOverlay(t,e):i===s.ADSENSE_LIKE&&(this.closeButton.onclick=this.handleClickAdSenseLike(e)),this.dispose=()=>{try{this.deleteOverlay(t,e)(),a.vF.log("o: dispose")}catch(e){a.vF.error(e)}}},this._onAfterGptRendered=e=>t=>{const i=this.slots[e];if(this.config.refreshInterval>0&&!1===i.isGPTRefreshCalled&&this.gpt.intervalRefreshAds([t.slot],this.config.refreshInterval,this.config.refreshLimit,e,this.slots,0,this.config.setTargetingConfigs),!t.size)return i.slotWrapper.classList.remove(`${this.AD_NAME}-wrapper-${this.RENDERED}`),void i.slotWrapper.classList.add(`${this.AD_NAME}-wrapper-${this.UNRENDERED}`);i.slotWrapper.classList.add(`${this.AD_NAME}-wrapper-${this.RENDERED}`),i.slotWrapper.classList.remove(`${this.AD_NAME}-wrapper-${this.UNRENDERED}`),i.eventSize=Array.isArray(t.size)?[t.size[0],t.size[1]]:[0,0];const s=t.size.join("x");"0x0"!==s&&"1x1"!==s&&(i.slot.style.width=t.size[0]+"px",i.slot.style.height=t.size[1]+"px")},this.dispose=()=>{a.vF.log("o: dispose. (Not overwritten yet)")},n.createAdObserver(this.config,this),this.closeButton=document.createElement("button"),this.closeButton.classList.add(`${this.AD_NAME}-close-button`)}_init(){this.initialArrowDown="bottom"===this.config.anchorPosition,this.upArrowSvgUrl="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.646454 11.6465L10.6465 1.64645L20.6465 11.6465' stroke='black' stroke-opacity='0.8'/%3E%3C/svg%3E%0A\")",this.downArrowSvgUrl="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='22' height='12' viewBox='0 0 22 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 1L11 11L1 1' stroke='black' stroke-opacity='0.8'/%3E%3C/svg%3E%0A\")",this.ampLikeSvg="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='13' height='13' viewBox='341 8 13 13' fill='black' fill-opacity='0.6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M354 9.31L352.69 8l-5.19 5.19L342.31 8 341 9.31l5.19 5.19-5.19 5.19 1.31 1.31 5.19-5.19 5.19 5.19 1.31-1.31-5.19-5.19z' fill-rule='evenodd'/%3E%3C/svg%3E\")"}_addStyle(){const e=`\n display: block !important;\n height: auto !important;\n visibility: visible;\n opacity: 1;\n will-change: opacity;\n width: 100%;\n position: fixed;\n left: 0;\n right: 0;\n ${this.config.anchorPosition}: 0;\n box-sizing: border-box;\n z-index: 2147483647;\n box-shadow: ${"bottom"===this.config.anchorPosition?"rgba(0, 0, 0, 0.4) 0px -4px 6px -3px":"rgba(0, 0, 0, 0.4) -2px 2px 6px -3px"};\n background: ${this.config.overlayDesign===s.NORMAL?this.config.backgroundCss||"rgba(0,0,0,0.8)":"#fff"};\n `;let t="";this.config.overlayDesign===s.AMP_LIKE?t=`\n display: block !important;\n background-image: ${this.ampLikeSvg};\n background-size: 13px 13px;\n background-position: center;\n background-color: #fff;\n background-repeat: no-repeat;\n border: none;\n height: 28px;\n width: 28px;\n padding: 0;\n margin: 0;\n position: absolute;\n right: 0;\n `+("top"===this.config.anchorPosition?"\n bottom: -27px;\n box-shadow: -1px 1px 1px 0 rgba(0,0,0,0.1);\n border-radius: 0 0 0 12px;\n ":"\n top: -27px;\n box-shadow: 0 -1px 1px 0 rgba(0,0,0,0.2);\n border-radius: 12px 0 0 0;\n "):this.config.overlayDesign===s.ADSENSE_LIKE&&(t=`\n display: block !important;\n background-image: ${this.initialArrowDown?this.downArrowSvgUrl:this.upArrowSvgUrl};\n background-size: 16px 16px;\n background-position: center;\n background-color: #fff;\n background-repeat: no-repeat;\n border: none;\n height: 28px;\n width: 56px;\n padding: 0;\n margin: 0;\n position: absolute;\n right: 0;\n `+("top"===this.config.anchorPosition?"\n bottom: -27px;\n box-shadow: -1px 1px 1px 0 rgba(0,0,0,0.1);\n border-radius: 0 0 6px 6px;\n ":"\n top: -27px;\n box-shadow: 0 -1px 1px 0 rgba(0,0,0,0.2);\n border-radius: 6px 6px 0 0;\n "));const i='\n position: absolute;\n content: "";\n '+("top"===this.config.anchorPosition?"\n top: 0px;\n right: 0;\n left: -20px;\n bottom: -20px;\n ":"\n top: -20px;\n right: 0;\n left: -20px;\n bottom: 0;\n ");(0,n.TD)(`\n .${this.AD_NAME}-wrapper-${this.UNRENDERED} {\n height: 1px;\n visibility: hidden;\n opacity: 0;\n will-change: opacity;\n transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n box-sizing: border-box;\n }\n \n .${this.AD_NAME}-wrapper-${this.RENDERED} {\n ${e}\n }\n \n \n .${this.AD_NAME}-wrapper-${this.RENDERED} > div,\n .${this.AD_NAME}-wrapper-${this.RENDERED} > div > div,\n .${this.AD_NAME}-wrapper-${this.RENDERED} > div > div > iframe {\n margin: 0 auto;\n text-align: center;\n }\n \n .${this.AD_NAME}-close-button::before {\n ${i}\n }\n \n .${this.AD_NAME}-close-button {\n ${t}\n }\n \n .${this.AD_NAME}-close-button:focus {\n outline: none;\n }\n \n .${this.AD_NAME}-padding-block-top {\n height: 4px;\n }\n \n .${this.AD_NAME}-padding-block-bottom {\n height: 4px;\n }\n \n .${this.AD_NAME}-${this.NOT_DISPLAYED} {\n display: none;\n }\n \n .${this.AD_NAME}-wrapper-${this.RENDERED} {\n ${this.config.customCss||""}\n }\n `,this.AD_NAME)}}},862(e,t,i){i.d(t,{k:()=>o});var s=i(939),n=i(599),a=i(335);class o extends n.x{constructor(e,t,i,n){super(e,t,"ats-parallax",i,"parallax"),this.executeCount=0,this._execute=(e,t=!1)=>(this.infinite=t,this.executeCount++,e),this._findTarget=e=>{const{selector:t,targetType:i}=this.config,n=(0,s.EW)(e,t,i);return null==n?null:[n]},this._buildSlot=(e,t)=>{const{divIDs:i,insertPosition:s,centerAd:n,headerText:a,footerText:o}=this.config,r=i[0]+this.executeCountSuffix(),d=document.createElement("div"),l=document.createElement("div"),h=document.createElement("div"),c=document.createElement("div"),p=document.createElement("div"),g=document.createElement("div"),_=document.createElement("div"),u=document.createElement("div");if(d.append(l),l.append(h),l.append(p),l.append(c),p.append(g),g.append(_),_.append(u),d.classList.add(`${this.AD_NAME}-container`),l.classList.add(`${this.AD_NAME}-clipper`),h.classList.add(`${this.AD_NAME}-header`),c.classList.add(`${this.AD_NAME}-footer`),p.classList.add(`${this.AD_NAME}-position-relative`),n?(_.classList.add(`${this.AD_NAME}-ad-wrapper-center`),g.classList.add(`${this.AD_NAME}-content-center`)):(_.classList.add(`${this.AD_NAME}-ad-wrapper`),g.classList.add(`${this.AD_NAME}-content`)),a){const e=document.createTextNode(a);h.appendChild(e)}else h.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`);if(o){const e=document.createTextNode(o);c.appendChild(e)}else c.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`);return d.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`),e.insertAdjacentElement(s,d),this.slots[r]={baseElement:t,slotWrapper:d,adUnitPath:this.config.adUnitPath,divId:r,slot:u,isGPTRefreshCalled:!1,shouldStopRefresh:!1,...this.makeReplaceAdSenseParams()},r},this._getFetchAdConfig=(e,t,i)=>{const{setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o}=this.config,r=this.slots[e];return{gpt:{slotWrapperDiv:r.slotWrapper,instanceCount:this.instanceCount,adUnitPath:r.adUnitPath,sizes:[[300,250]],divId:r.divId,setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o,onAfterGptRendered:this._onAfterGptRendered(e),onAfterGptFetched:this._onAfterGptFetched(e),infinite:i}}},this._onAfterGptFetched=e=>t=>{const i=this.slots[e];i.googletagSlot=t,i.dispose=()=>{i.shouldStopRefresh=!0,googletag.destroySlots([t]),i.slotWrapper.remove()}},this._onAfterGptRendered=e=>t=>{const{refreshInterval:i,refreshLimit:s,inViewRate:n,setTargetingConfigs:a}=this.config,o=this.slots[e];i>0&&!1===o.isGPTRefreshCalled&&this.gpt.intervalRefreshAds([t.slot],i,s,e,this.slots,n,a),t.slot===o.googletagSlot&&(t.isEmpty||(o.eventSize=Array.isArray(t.size)?[t.size[0],t.size[1]]:[0,0],o.slotWrapper.classList.remove(`${this.AD_NAME}-${this.NOT_DISPLAYED}`)))},this.dispose=()=>{try{a.vF.log("p: dispose");for(const e in this.slots){const t=this.slots[e];t.removeScrollEventListener&&t.removeScrollEventListener(),t.dispose&&t.dispose(),delete this.slots[e]}}catch(e){a.vF.error(e)}},n.createAdObserver(this.config,this)}_init(){}_addStyle(){const{marginTop:e,centerAd:t,containerMargin:i,containerHeight:n,containerWidthType:a,contentWidth:o,backgroundColor:r,customCss:d}=this.config,l=t?"100%":o,h=i||"0",c=t?0:e,p=n>360?n:361;(0,s.TD)(`\n .${this.AD_NAME}-container {\n width: 100${a};\n height: 100vh;\n max-height: ${p}px;\n min-height: 350px;\n position: relative;\n margin: ${h};\n }\n\n .${this.AD_NAME}-clipper {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n overflow: hidden;\n clip-path: inset(0px);\n clip: rect(0px auto auto 0px);\n background: ${r||"#ccc"}\n }\n\n .${this.AD_NAME}-header {\n position: absolute;\n z-index: 1;\n top: 0px;\n font-size: 12px;\n text-align: center;\n width: 100%;\n line-height: normal;\n padding: 4px 0px;\n background-color: #000;\n color: #fff;\n letter-spacing: 3px;\n font-family: Arial;\n }\n\n .${this.AD_NAME}-footer {\n position: absolute;\n z-index: 1;\n bottom: 0px;\n font-size: 9pt;\n text-align: center;\n width: 100%;\n line-height: normal;\n padding: 4px 0px;\n background-color: #000;\n color: #fff;\n letter-spacing: 3px;\n font-family: Arial;\n }\n\n .${this.AD_NAME}-position-relative {\n height: 100%;\n position: relative;\n width: 100%;\n margin: 0 auto;\n text-align: center;\n z-index: -1;\n }\n\n .${this.AD_NAME}-content {\n position: fixed;\n margin-top: ${c}px;\n top: 0;\n width: ${l};\n z-index: -1;\n }\n \n .${this.AD_NAME}-content-center {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n margin: 0;\n padding: 0px;\n bottom: 0;\n transform: translateZ(0px);\n z-index: -1;\n }\n\n .${this.AD_NAME}-ad-wrapper {\n text-align: center;\n z-index: -1;\n }\n \n .${this.AD_NAME}-ad-wrapper-center {\n width: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateY(-50%) translateX(-50%);\n -webkit-transform: translateY(-50%) translateX(-50%);\n }\n \n .${this.AD_NAME}-${this.NOT_DISPLAYED} {\n display: none;\n }\n`,`${this.AD_NAME}`),d&&(0,s.TD)(d,`${this.AD_NAME}-override`)}executeCountSuffix(){return this.infinite?"_"+this.executeCount.toString():""}}},67(e,t,i){i.d(t,{N:()=>o});var s=i(456),n=i(939),a=i(335);class o extends s.W{constructor(e,t,i,s){super(e,t,i,s),this._disposed=!1,this.waitUntilInView=(e,t,i)=>new Promise(s=>{const a=(0,n.EW)(e,t,i);a&&(this._inViewResolve=s,this.checkInViewTimer=setInterval(()=>{(0,n.TG)(a)&&(clearInterval(this.checkInViewTimer),s(!0))},200))}),this.sleep=e=>new Promise(t=>{this._sleepResolve=t,this._sleepTimer=setTimeout(()=>{t(!0)},1e3*e)}),this.lazyExecute=async(e,t,i)=>{const{selector:s,targetType:o}=this.config;if(!await this.waitUntilInView(t,s,o)||this._disposed)return;a.vF.log(`replace: wait ${e} seconds to replace with ${this.config.adUnitPath}`);const r=(0,n.EW)(t,s,o);if(r&&"true"===r.getAttribute("ats-non-replace"))return;await this.sleep(e)&&!this._disposed&&await this.execute(t,i)},this.dispose=()=>{this._disposed=!0,this.checkInViewTimer&&clearInterval(this.checkInViewTimer),this._inViewResolve&&this._inViewResolve(!1),this._sleepTimer&&clearTimeout(this._sleepTimer),this._sleepResolve&&this._sleepResolve(!1)},this._findTarget=e=>{const{selector:t,targetType:i}=this.config,s=(0,n.EW)(e,t,i);return null==s?null:(a.vF.log("Replace target",s),[s])},this._buildSlot=(e,t)=>{const{showAdvertisement:i,customShowAdsText:s,divIDs:n}=this.config;if(this.currentNumOfAds++,this.currentNumOfAds>this.config.numOfAds)return null;const a=n[this.currentNumOfAds-1]+(this.infinite?`-${this.executeCallCount}`:""),o=document.createElement("div"),r=document.createElement("div");if(r.classList.add("ats-slot"),i){const e=document.createElement("p"),t=document.createTextNode(s||this.ADVERTISEMENT_TEXT);e.appendChild(t),o.appendChild(e)}o.appendChild(r);const d=document.createElement("div"),l=`${a}-wrapper`;return d.id=l,d.classList.add(this.AD_NAME,this.CLASS_NAME),i&&d.classList.add(this.SHOW_ADVERTISEMENT),d.appendChild(o),e.insertAdjacentElement("beforebegin",d),e.remove(),this.slots[a]={baseElement:t,adUnitPath:this.config.adUnitPath,divId:a,slotWrapper:d,slot:r,isGPTRefreshCalled:!1,shouldStopRefresh:!1,...this.makeReplaceAdSenseParams()},a}}}},284(e,t,i){i.d(t,{G:()=>o});var s=i(939),n=i(335),a=i(599);class o extends a.x{constructor(e,t,i,a){super(e,t,"ats-skyscraper",i,"skyscraper"),this.executeCount=0,this.adSizes=null,this.maxAdSizes=[300,250],this._execute=(e,t=!1)=>(this.infinite=t,this.executeCount++,e),this._findTarget=e=>{if(null===this.adSizes)return null;const{adUnitPath:t,targetType:i,selector:a,anchorPosition:o}=this.config,r=(0,s.EW)(e,a,i);if(!r)return null;const d=r.getBoundingClientRect(),l=d.width,h="left"===o?d[o]:window.innerWidth-d[o],c=l+this.marginSide+this.extractMaxAdSize(this.adSizes)[0];return window.innerWidth{const{sizeMappingGroup:s,setCollapseEmptyDiv:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o}=this.config;return{gpt:{slotWrapperDiv:this.slots[e].slotWrapper,instanceCount:this.instanceCount,adUnitPath:this.slots[e].adUnitPath,sizes:[[300,250]],divId:e,sizeMappingGroup:s,setCollapseEmptyDiv:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o,onAfterGptFetched:this._onAfterGptFetched(e),onAfterGptRendered:this._onAfterGptRendered(e,t),infinite:i}}},this._onAfterGptFetched=e=>t=>{this.slots[e].googletagSlot=t,this.slots[e].dispose=()=>{googletag.destroySlots([t]),this.slots[e].slotWrapper.remove()}},this._onAfterGptRendered=(e,t)=>i=>{if(null===i.size)return;const{isSticky:s,anchorPosition:a,refreshInterval:o,refreshLimit:r,inViewRate:d,setTargetingConfigs:l,showAdsText:h}=this.config,c=this.slots[e];o>0&&!1===c.isGPTRefreshCalled&&this.gpt.intervalRefreshAds([i.slot],o,r,e,this.slots,d,l),c.eventSize=Array.isArray(i.size)?[i.size[0],i.size[1]]:[0,0],h&&c.slot.classList.add(this.RENDERED);const p=t.getBoundingClientRect().width,g=c.slotWrapper,_=i.size;g.style[a]=`calc(50% - ${p/2+_[0]+this.marginSide}px)`,_[0](e.sort((e,t)=>t[1]-e[1]),e.sort((e,t)=>t[0]-e[0]),e[0]),this.stickyNodes=(e,t,i)=>{let s;const n=()=>{s&&window.cancelAnimationFrame(s),s=window.requestAnimationFrame(()=>{const s=e.getBoundingClientRect();s.top>0?(this.setWrapperStyle(t,"position","absolute"),this.setWrapperStyle(t,"top",`${this.marginTop+s.top+window.pageYOffset}px`)):s.top+s.height-i[1]-this.marginTop-this.marginBottom<0?(this.setWrapperStyle(t,"position","absolute"),this.setWrapperStyle(t,"top",s.top+window.pageYOffset+s.height-i[1]-this.marginBottom+"px")):(this.setWrapperStyle(t,"position","fixed"),this.setWrapperStyle(t,"top",this.marginTop+"px"))})};this.slots[t].removeScrollEventListener=()=>{s&&window.cancelAnimationFrame(s),window.removeEventListener("scroll",n)},window.addEventListener("scroll",n)},this.dispose=()=>{try{for(const e in this.slots)if(Object.prototype.hasOwnProperty.call(this.slots,e)){const t=this.slots[e];t.shouldStopRefresh=!0,t.removeScrollEventListener&&t.removeScrollEventListener(),t.dispose&&t.dispose()}}catch(e){n.vF.error(e)}},a.createAdObserver(this.config,this);const{margin:o,sizeMappingGroup:r,anchorPosition:d}=this.config,l=o.split(" ").map(e=>parseInt(e.slice(0,-2)));this.marginSide="left"===d?l[1]:l[3],this.marginTop=l[0],this.marginBottom=l[2];for(let e=0;e"fluid"!==e);this.adSizes=e,this.maxAdSizes=this.extractMaxAdSize(this.adSizes);break}}}_init(){}_addStyle(){const{customCssForShowAdsText:e,customShowAdsText:t,showAdsText:i,divIDs:n}=this.config,a=n[0];let o=`\n .${this.AD_NAME}-wrapper {\n position: absolute;\n }\n `;i&&(o=o.concat(`div[id^=${a}].${this.RENDERED} ::before {\n content: "${t||"ADVERTISEMENT"}";\n color: #8a9299;\n font-size: 11px;\n position: relative;\n top: -4px;\n text-align: center;\n display: block;\n font-family: sans-serif;\n letter-spacing: 0.6px;\n width: 120px;\n }`),e&&(o=o.concat(`div[id^=${a}].${this.RENDERED} ::before {${e}}`))),(0,s.TD)(o,a)}_buildSlot(e){const t=this.config.divIDs[0]+this.executeCountSuffix,i=e.getBoundingClientRect().top+window.pageYOffset,s=document.createElement("div");s.classList.add(`${this.AD_NAME}-wrapper`),s.style.top=`${this.marginTop+i}px`;const n=document.createElement("div");return n.classList.add(this.AD_NAME),this.slots[t]={slotWrapper:s,adUnitPath:this.config.adUnitPath,divId:t,slot:n,isGPTRefreshCalled:!1,shouldStopRefresh:!1,...this.makeReplaceAdSenseParams()},s.appendChild(n),window.document.body.appendChild(s),t}get executeCountSuffix(){return this.infinite?"_"+this.executeCount.toString():""}setWrapperStyle(e,t,i){this.slots[e].slotWrapper.style[t]=i}}},476(e,t,i){i.d(t,{A:()=>o});var s=i(939),n=i(599),a=i(335);class o extends n.x{constructor(e,t,i,n){super(e,t,"ats-slider",i,"slider"),this.sliderCloseButton=document.createElement("button"),this.slider=document.createElement("div"),this.wrapperClassName="ats-slider-wrapper",this.sliderClassName="ats-slider",this.buttonClassName="ats-slider-button",this.wrapperId=this.wrapperClassName+"-"+this.instanceCount,this.sliderDivId=this.sliderClassName+"-div-"+this.instanceCount,this.buttonId=this.buttonClassName+"-"+this.instanceCount,this._execute=e=>(this.addStyle(),e),this._findTarget=e=>{const{selector:t,targetType:i}=this.config,n=(0,s.EW)(e,t,i);return null==n?null:[n]},this._buildSlot=(e,t)=>{const{divIDs:i,insertPosition:s}=this.config,n=i[0],a=document.createElement("div");a.setAttribute("id",this.wrapperId),a.classList.add(this.wrapperClassName),this.slider.setAttribute("id",this.sliderDivId),this.slider.classList.add(this.sliderClassName),this.slider.classList.add(this.UNRENDERED),a.append(this.slider),this.sliderCloseButton.setAttribute("id",this.buttonId),this.sliderCloseButton.classList.add(this.buttonClassName),this.sliderCloseButton.classList.add(this.UNRENDERED),this.slider.append(this.sliderCloseButton);const o=document.createElement("div"),r=document.createElement("div");r.classList.add(this.sliderClassName+"-wrapper-paper");const d=document.createElement("div");return d.classList.add(this.sliderClassName+"-wrapper"),d.append(o),r.append(d),this.slider.append(r),e.insertAdjacentElement(s,a),this.slots[n]={baseElement:t,slotWrapper:a,adUnitPath:this.config.adUnitPath,divId:n,slot:o,isGPTRefreshCalled:!1,shouldStopRefresh:!1,...this.makeReplaceAdSenseParams()},n},this._getFetchAdConfig=(e,t,i)=>{const{setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o}=this.config,r=this.slots[e];return{gpt:{slotWrapperDiv:r.slotWrapper,instanceCount:this.instanceCount,adUnitPath:r.adUnitPath,sizes:[[300,250]],divId:r.divId,setCollapseEmptyDiv:s,sizeMappingGroup:n,setTargetingConfigs:a,enableSetForceSafeFrameForSlot:o,onAfterGptRendered:this._onAfterGptRendered(e),onAfterGptFetched:this._onAfterGptFetched(e),infinite:i}}},this._onAfterGptFetched=e=>t=>{this.sliderCloseButton.onclick=this.onClose(t,e),this.dispose=()=>{try{this.onClose(t,e)(),a.vF.log("o: dispose")}catch(e){a.vF.error(e)}}},this._onAfterGptRendered=e=>t=>{const{refreshInterval:i,refreshLimit:s,inViewRate:n,setTargetingConfigs:a}=this.config,o=this.slots[e];if(i>0&&!o.isGPTRefreshCalled&&this.gpt.intervalRefreshAds([t.slot],i,s,e,this.slots,n,a),!t.isEmpty){if("0x0"===t.size.join("x"))return;this.slider.classList.remove(this.UNRENDERED),this.slider.classList.add(this.RENDERED),this.sliderCloseButton.classList.remove(this.UNRENDERED),this.sliderCloseButton.classList.add(this.RENDERED)}},this.onClose=(e,t)=>()=>{e&&googletag.destroySlots([e]),this.slots[t].shouldStopRefresh=!0,this.slots[t].slotWrapper.remove()},this.dispose=()=>{try{a.vF.log("s: dispose");for(const e in this.slots){const t=this.slots[e];t.removeScrollEventListener&&t.removeScrollEventListener(),t.dispose&&t.dispose(),delete this.slots[e]}}catch(e){a.vF.error(e)}},n.createAdObserver(this.config,this)}_init(){}_addStyle(){}addStyle(){const{customCss:e,sliderScale:t,sliderPosition:i}=this.config;(0,s.TD)(`\n #${this.sliderDivId}.${this.RENDERED} {\n text-align: center;\n position: fixed;\n ${1===i?"left: 0":"right: 0"};\n bottom: 0;\n transform: scale(${t/100});\n z-index: 9999;\n }\n #${this.sliderDivId}.${this.RENDERED} {\n ${e}\n }\n #${this.buttonId}.${this.RENDERED} {\n display: block !important;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='338 4 16 18' fill='black' fill-opacity='0.6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M354 9.31L352.69 8l-5.19 5.19L342.31 8 341 9.31l5.19 5.19-5.19 5.19 1.31 1.31 5.19-5.19 5.19 5.19 1.31-1.31-5.19-5.19z' fill-rule='evenodd'/%3E%3C/svg%3E");\n background-size: 20px 20px;\n background-position: center;\n background-color: #fff;\n background-repeat: no-repeat;\n border: none;\n height: 40px;\n width: 40px;\n padding: 0;\n margin: 0;\n position: absolute;\n right: 0;\n box-shadow: 0 -1px 1px 0 rgba(0,0,0,0.2);\n border-radius: 12px 0 0 0;\n top: -35px;\n }\n #${this.buttonId}.${this.RENDERED}::before {\n position: absolute;\n content: "";\n top: -20px;\n right: 0;\n left: -20px;\n bottom: 0;\n }\n #${this.buttonId}.${this.UNRENDERED} {\n visibility: hidden;\n }\n .${this.sliderClassName+"-wrapper-paper"} {\n position: relative;\n border: 15px solid #fff;\n }\n .${this.sliderClassName+"-wrapper"} {\n margin: auto;\n }\n`,`${this.AD_NAME}`)}}},78(e,t,i){i.d(t,{Cu:()=>s,KB:()=>a,sp:()=>n});const s=-1!==(sessionStorage?.getItem("ats_debug")||"").indexOf("true")||-1!==location.search.slice(1).split("&").indexOf("ats_debug=true"),n=s||/only_log|enable_log/.test(sessionStorage?.getItem("ats_debug")||"")||-1!==location.search.slice(1).split("&").indexOf("ats_debug=only_log"),a=(e="true"!==window.sessionStorage.getItem("ats_debug"))=>{e?window.sessionStorage.setItem("ats_debug","true"):window.sessionStorage.removeItem("ats_debug"),location.reload()}},581(e,t,i){i.d(t,{A:()=>o,V:()=>n});var s=i(78);class n{constructor(e,t=!1){this.label=e,this._enableLog=t,this.labelStyle=(e,t)=>`display: inline-block; color: ${e}; background: ${t}; padding: 1px 4px; border-radius: 3px;`,this.measurePerformance=e=>{try{performance.mark("start")}catch(e){}const t=e();try{performance.mark("end"),performance.measure("test","start","end");const e=performance.getEntriesByName("test");this.log(e[0])}catch(e){}return t},this.reset=()=>{},this.decorate=[`%cATS%c${e}`,this.labelStyle("#fff","#2196f3"),this.labelStyle("#000","#aaa")]}log(...e){try{if(!this._enableLog)return;console.log(...this.decorate,"LOG:",...e)}catch(t){this.log(...e)}}info(...e){try{if(!this._enableLog)return;console.info(...this.decorate,"INFO:",...e)}catch(t){this.log(...e)}}warn(...e){try{if(!this._enableLog)return;console.warn(...this.decorate,"WARN:",...e)}catch(t){this.log(...e)}}error(...e){try{if(!this._enableLog)return;console.error(...this.decorate,"ERROR:",...e)}catch(t){this.log(...e)}}table(e,t,i){try{if(!this._enableLog)return;this.log(e),console.table(t,i)}catch(s){this.log(e,t,i)}}}const a=new n("Core",s.sp),o=a;if(s.sp)try{const e=t=>{t?.target?.removeEventListener(t.type,e);const i=window.performance.timing;i&&a.log("Page Performance",{dns:i.domainLookupEnd-i.domainLookupStart,tcp:i.connectEnd-i.connectStart,request:i.responseStart-i.requestStart,response:i.responseEnd-i.responseStart,interactive:i.domInteractive-i.domLoading,domContentLoaded:i.domContentLoadedEventStart-i.domLoading,domComplete:i.domComplete-i.domLoading,load:i.loadEventEnd-i.loadEventStart,untilResponseStart:i.responseStart-i.navigationStart,untilLoadComplete:i.loadEventEnd-i.navigationStart})};"complete"===document.readyState?e():window.addEventListener("load",e)}catch(e){}},939(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A$:()=>detectInAppBrowser,EW:()=>getTarget,FC:()=>isMatchedDevice,G:()=>isMatchedPath,P7:()=>updateArray,Ri:()=>getCookie,TD:()=>addStyle,TG:()=>isInView,TV:()=>setCookie,UW:()=>isMatchedBlockedUrl,ab:()=>getSelectorFromElement,gE:()=>getUserDeviceType,hg:()=>isCorrectSizes,jX:()=>isHeaderBiddingAllowed,k3:()=>isMatchedReferrerHistory,kU:()=>isInflow,l9:()=>debouncedMutationObserver,m$:()=>scrollDetector,nL:()=>insertScriptTag,oj:()=>isMatchedReferrer,pr:()=>checkWindow,uf:()=>evalFunctionSelector,yz:()=>getHostName,ze:()=>isEmptyObj});var _Logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(581);const addStyle=(e,t)=>{if(!document.querySelector(`style[data-css-${t}]`)){const i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",s.appendChild(document.createTextNode(e)),t&&s.setAttribute(`data-css-${t}`,""),i.appendChild(s)}},checkWindow=()=>document.hasFocus();let isUserInteractedOnDocument=!1;window.document.addEventListener("click",()=>{isUserInteractedOnDocument=!0}),window.document.addEventListener("touchstart",()=>{isUserInteractedOnDocument=!0});const isSafariPC=()=>{const e=navigator.userAgent,t=navigator.vendor;return/Safari/i.test(e)&&/Apple Computer/.test(t)&&!/Mobi|Android/i.test(e)},debounce=(e,t,...i)=>{let s;return()=>{const n=i;s&&clearTimeout(s),s=window.setTimeout(function(){s=null,e(n)},t)}},evalFunctionSelector=source=>{let result=eval(source);return"function"==typeof result&&(result=result()),"string"==typeof result&&result.length>0?result:null},getTarget=(atsElm,selector,targetType)=>{let element;try{element="Function"===targetType?eval(selector):atsElm.querySelector(selector)}catch(e){element=null}return element},debouncedMutationObserver=(e,t)=>new MutationObserver(debounce(e,t)),isCorrectSizes=e=>e[0]null==e||!Object.keys(e).length,insertScriptTag=(e=!1,t,i)=>{const s=document.createElement("script"),n=document.getElementsByTagName("script")[0];i&&(s.onload=i),s.async=e,s.src=t,n?.parentNode?.insertBefore(s,n)},getSelectorFromElement=e=>{const t=[];if(!(e instanceof Element))return t;const i=(e,t)=>{let i=1,s=e;for(;s=s.previousElementSibling;)s.nodeName.toLowerCase()===t&&++i;return i};for(;e&&e.nodeType===Node.ELEMENT_NODE;){let s=e.nodeName.toLowerCase();if(e.id){s+=`#${e.id}`,t.unshift(s);break}const n=i(e,s);1{let t=!1;return[deviceRegex,deviceRegex2].forEach(i=>{t=t||i.test(e)}),t?MOBILE_NAME:DESKTOP_NAME},CURRENT_USER_DEVICE_TYPE=getUserDeviceType(),isMatchedPath=({regex:e},t)=>{let i;try{i=new RegExp(e)}catch(e){return _Logger__WEBPACK_IMPORTED_MODULE_0__.A.error(`regex is not correct: ${i}: ${e}`),!1}return i.test(t)},isMatchedReferrer=(e,t)=>{if(!e.enableReferrerTargeting||e.enableKeepingReferrer||!e.domainList)return!0;const i=e.domainList.some(e=>e===t);return"include"===e.filteringRule?i:!i},getHostName=(e,t)=>{e=e.sort((e,t)=>e.length-t.length);for(const i of e)if(-1!==t.indexOf(i))return i;return t},isInflow=(e,t)=>-1===t.indexOf(e),setCookie=(e,t,i)=>{let s="";if(i){const e=new Date;e.setTime(e.getTime()+24*i*60*60*1e3),s="; expires="+e.toUTCString()}document.cookie=e+"="+(t||"")+s+"; path=/"},eraseCookie=e=>{document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},getCookie=()=>document.cookie.split(/;\s*/).reduce((e,t)=>{const[i,s]=t.split("=");let n="temp";try{s&&(n=decodeURIComponent(s))}catch(e){}return i&&(e[i]=n),e},{}),updateArray=(e,t,i,s)=>{let n=s?[]:JSON.parse(getCookie()[t]||"[]");return n.push(i),n=n.filter((e,t,i)=>i.indexOf(e)===t),document.cookie=`${t}=${encodeURIComponent(JSON.stringify(n))}; Domain=${e}; Path=/; max-age=3600; SameSite=Strict;`,n},isMatchedReferrerHistory=(e,t)=>{if(!e.enableReferrerTargeting||!e.enableKeepingReferrer||!e.domainList)return!0;const i=t.some(t=>e.domainList?.some(e=>e===t));return"include"===e.filteringRule?i:!i},isMatchedBlockedUrl=(e,t)=>e.some(e=>decodeURIComponent(e)===t&&(_Logger__WEBPACK_IMPORTED_MODULE_0__.A.log(`blocked with url = ${e}`),!0)),isHeaderBiddingAllowed=(enabled,expression)=>{if(!enabled||!expression)return!0;try{return Boolean(eval(`(${expression})()`))}catch(e){return _Logger__WEBPACK_IMPORTED_MODULE_0__.A.error("prebidGateExpression eval",e),!1}},isMatchedDevice=(e,t)=>e===t||e===RESPONSIVE_NAME,inViewPercentage=50,isInView=e=>{const{top:t,bottom:i,height:s}=e.getBoundingClientRect();return window.innerHeight-t-s*(inViewPercentage/100)>0&&i-s*(inViewPercentage/100)>0},scrollDetector=e=>{const t=()=>{e(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)},detectInAppBrowser=()=>{const e=window.navigator.userAgent||"",t=/Line/i.test(e),i=/Instagram/i.test(e),s=/FBAN|FBAV/i.test(e),n=/Twitter/i.test(e),a=/Threads|Barcelona/i.test(e),o=/iPhone|iPad|iPod/i.test(e),r=/Safari/i.test(e)&&!/CriOS|FxiOS/i.test(e),d=/CriOS/i.test(e),l=o&&!r&&!d,h=/Android/i.test(e)&&/wv|Version\/\d+\.\d+/.test(e);return t||i||s||n||a||l||h}},974(e){e.exports=JSON.parse('{"siteSetting":{"enablePrebidGate":false,"asyncJsTrigger":"","useAsyncJsTrigger":false,"destroyAtsSlotsOnly":false,"enableApm":true,"apmSiteId":163823,"apmNetworkId":2060,"hostNames":["thanhnien.vn"],"blockedAdvertiserDomains":["yolly.io","wakedigital.com.co","vi.fun88.com","fun88.com","oralsalud.com.co","oralsalud.com","fun88.mx","thichbongda88.com","fun682wc2026.com"],"enableAdvertiserDomainBlock":true,"blockedUrls":["/hoc-sinh-quan-he-tinh-duc-som-ai-san-sang-dua-con-bao-cao-su-1851452989.htm","/billie-eilish-ke-chuyen-lan-dau-dong-phim-18523032107294393.htm","/an-mang-kinh-hoang-2-nguoi-chet-o-hoc-mon-cha-xong-vao-cuu-con-1851389842.htm","/chien-su-ngay-395-ukraine-ra-tuyen-bo-moi-ve-tinh-hinh-o-bakhmut-18523032523400989.htm","/binh-duong-xac-minh-vu-mot-phu-nu-bi-danh-cat-toc-lot-do-giua-duong-185230327173059227.htm","/dieu-tra-nghi-an-chong-danh-chet-vo-roi-voi-va-cho-xac-nan-nhan-ve-que-185230321083229542.htm","/canh-nong-tao-bao-trong-the-glory-gay-tranh-cai-185230314220229582.htm","/tien-giang-chong-dam-vo-nhieu-nhat-roi-tu-tu-1851544935.htm","/ca-mau-vo-giet-chong-ho-roi-giau-xac-duoi-ao-lanh-an-14-nam-tu-185230323205612977.htm","/dung-hoang-neu-ban-thay-11-dieu-la-nay-sau-khi-quan-he-tinh-duc-185900916.htm","/binh-phuoc-cong-an-dieu-tra-clip-nu-sinh-thcs-bi-cac-ban-danh-hoi-dong-185230327134752392.htm","/9-bi-mat-ve-su-cuong-cung-cua-cau-nho-185486047.htm","/tiet-lo-nhung-phan-ung-tinh-duc-cua-phu-nu-185580111.htm","/ky-1-lat-tay-dong-livestream-khieu-dam-chao-moi-co-bac-1851082257.htm","/ky-1-tran-lan-thuoc-kich-thich-tang-sung-suong-khi-quan-he-tinh-duc-1851533311.htm","/lai-xay-ra-dam-chem-chet-nguoi-vi-mau-thuan-hat-karaoke-185230328082136861.htm","/canh-nong-trong-sac-gioi-la-sex-that-185796886.htm","/nhet-di-vat-vao-nieu-dao-de-tao-khoai-cam-tro-quai-di-cua-khong-it-nguoi-1851030992.htm","/bac-si-oi-tre-bi-ket-dap-tay-chan-phai-so-cuu-the-nao-cho-dung-185994524.htm","/dan-ac-nu-nong-bong-cua-the-glory-185230312194449991.htm","/the-gioi","/xon-xao-clip-co-gai-bi-nu-sinh-lop-11-lot-do-danh-giua-duong-1851491985.htm","/thu-nhap-hang-ti-dong-cua-dien-vien-phim-khieu-dam-nhat-ban-185926977.htm","/yoko-kumada-bom-sex-duoc-bao-nguoi-khao-khat-39-tuoi-ly-hon-vi-chong-bao-hanh-1851075369.htm","/tphcm-on-lanh-clip-nam-thanh-nien-bi-nhom-nguoi-chem-toi-tap-trong-con-hem-1851532220.htm","/tai-sao-cu-yeu-xong-la-nhieu-nguoi-lan-ra-ngu-185874631.htm","/hoa-hau-thanh-thuy-khoe-dang-nong-bong-185230324203149407.htm","/tphcm-mot-nguoi-bi-dam-tu-vong-trong-quan-nhau-185230328131431858.htm","/ke-ton-sung-sa-tang-sat-hai-phan-xac-ban-tu-ma-cai-nguc-khong-hay-biet-1851072326.htm","/vu-be-gai-bi-dong-dinh-vao-dau-chau-be-3-tuoi-tung-thoat-chet-4-lan-1851507319.htm","/cap-sao-chinh-cua-phim-18-sexlife-yeu-nhau-tu-man-anh-ra-den-doi-thuc-1851091229.htm","/vo-ti-phu-cong-nghe-sieu-mau-miranda-kerr-van-sexy-du-da-39-tuoi-1851509478.htm","/chiem-nguong-bo-anh-cosplay-yae-miko-bong-mat-cua-game-thu-nguoi-viet-1851472946.htm","/vu-be-gai-8-tuoi-bi-bao-hanh-tu-vong-vi-sao-hdxx-khong-phat-nguyen-kim-trung-thai-toi-giet-nguoi-1851525555.htm","/vo-thuc-quan-do-non-oi-sau-khi-uong-ruou-bia-lam-gi-de-phong-tranh-1851455119.htm","/nhung-vu-bao-hanh-tre-em-rung-dong-du-luan-cam-phan-cung-noi-dau-dau-1851423021.htm","/dak-lak-khoi-to-nguoi-me-danh-chet-con-trai-185230316161847867.htm","/nhung-sao-hoa-ngu-khoi-nghiep-bang-scandal-sex-185638341.htm","/phim-dai-tap-han-quoc-co-dang-lam-dung-canh-nong-de-cau-view-1851406272.htm","/kon-tum-go-vao-dau-dan-khien-2-nguoi-tu-vong-3-nguoi-bi-thuong-185230326115857473.htm","/vi-sao-da-co-ban-tinh-nguoi-ta-van-xem-phim-sex-185869424.htm","/khoa-hoc-giai-ma-ve-cuc-khoai-o-nu-gioi-185492185.htm","/trieu-tap-3-nguoi-phu-nu-danh-ghen-lot-do-co-gai-tre-o-quan-ca-phe-185994698.htm","/van-mai-huong-nghi-bi-lo-clip-nhay-cam-ban-tre-lam-gi-de-bao-ve-minh-185913064.htm","/mot-thay-giao-bi-to-xam-hai-nu-sinh-lop-9-185230325083556362.htm","/clip-nu-sinh-lop-8-bi-ban-danh-nhap-vien-chi-vi-vai-cau-noi-18523032616360468.htm","/binh-duong-mau-thuan-tren-ban-nhau-1-nguoi-bi-dam-chet-185230309132505793.htm","/vinh-long-dieu-tra-nhom-thieu-nu-dung-mu-bao-hiem-vay-danh-nu-sinh-lop-8-185230311115338502.htm","/gioi-tre-viet-nam-co-xu-huong-quan-he-tinh-duc-som-hon-1851416865.htm","/video-nam-sinh-lop-8-danh-ban-nu-guc-tai-cho-185594267.htm","/zayn-malik-bi-to-danh-me-cua-gigi-hadid-cap-doi-lan-nua-chia-tay-1851395875.htm","/dak-lak-dieu-tra-vu-nguoi-me-khai-nhan-dung-bua-danh-con-trai-tu-vong-185230314084427149.htm","/vu-danh-nu-sinh-sau-va-cham-giao-thong-nhom-anh-em-xa-hoi-co-vi-pham-1851019397.htm","/nong-tren-mang-xa-hoi-phan-no-thay-giao-day-sinh-dam-o-nhieu-nam-sinh-185961128.htm","/voc-dang-nong-bong-cua-chi-dai-thai-lan-lukkade-metinee-o-tuoi-50-1851511103.htm","/issei-sagawa-ke-an-thit-nguoi-o-kobe-da-qua-doi-1851527959.htm","/bom-sex-goc-viet-chung-le-de-nong-bong-o-tuoi-54-185240219225744712.htm","/tphcm-nguoi-phu-nu-giao-do-an-bi-thanh-nien-hanh-hung-185260316172020617.htm","/khoi-to-nam-thanh-nien-keo-le-co-gai-tren-duong-o-hai-phong-185260313163759057.htm","/tphcm-nam-shipper-bi-danh-toi-tap-bang-ghe-khi-dung-xe-o-via-he-nhan-don-185260312111508841.htm","/bang-hoang-hinh-anh-linh-my-tham-sat-dan-thuong-iraq-vua-duoc-cong-bo-18524082911180108.htm","/vo-sat-hai-chong-sau-bua-ruou-lien-hoan-185250818155102366.htm","/do-choi-tinh-duc-trong-cuoc-tron-chay-ky-8-sex-toy-khien-con-nguoi-va-xa-hoi-hong-di-185382129.htm","/nhung-dieu-thu-vi-ve-tinh-duc-co-the-ban-chua-biet-185378710.htm","/nguoi-dan-ong-bi-chem-20-nhat-thua-song-thieu-chet-trong-quan-karaoke-1851236293.htm","/con-danh-me-doa-giet-vi-khong-muon-duoc-dien-thoai-se-giam-dinh-tam-than-1851102490.htm","/sex-thi-nen-bat-den-hay-tat-den-1851450196.htm","/tu-the-giao-ban-tot-cho-moi-lua-tuoi-185492272.htm","/nong-mat-voi-clip-quang-cao-nude-toan-tap-cua-ngoc-trinh-185215077.htm","/nha-trang-hai-nhom-thanh-nien-hon-chien-nhu-phim-hanh-dong-tai-quan-karaoke-avatar-1851512135.htm","/hot-girl-viet-khoe-than-noi-thang-canh-noi-tieng-hay-tai-tieng-185885219.htm","/vu-be-trai-2-tuoi-bi-bao-hanh-thuong-vo-cung-khi-thay-chau-dau-don-185230424151341114.htm","/hon-78-nguoi-chon-khong-nen-cam-do-choi-tinh-duc-185381488.htm","/do-choi-tinh-duc-trong-cuoc-tron-chay-ky-1-khoi-thuy-va-nhung-tranh-cai-trien-mien-185380832.htm","/da-lat-bat-khan-cap-nguoi-cha-hanh-ha-con-trai-nhu-thoi-trung-co-1851512832.htm","/uae-truc-xuat-18-co-gai-khoa-than-chup-anh-tren-ban-cong-1851254546.htm","/tphue-nghi-pham-vu-an-mang-lao-xuong-song-huong-tu-vong-185250712204749044.htm","/tphcm-mot-khach-hang-vut-gay-sat-vao-dau-nhan-vien-cua-hang-fpt-1851006531.htm","/thoi-gian-tot-nhat-de-yeu-7-gio-30-sang-185700353.htm","/tay-ninh-nghi-an-chong-giet-vo-con-roi-tu-tu-1851071446.htm","/nu-hoang-noi-y-ngoc-trinh-gay-sot-voi-trao-luu-khoe-chan-nguc-185600616.htm","/nu-dj-viet-khoa-than-tam-tien-co-pham-luat-185581413.htm","/no-sung-trong-dem-tai-thanh-pho-thanh-hoa-4-nguoi-bi-thuong-185797364.htm","/bao-den-naomi-campbell-tu-tin-chup-anh-khoa-than-o-tuoi-50-185921229.htm","/3-tu-the-yeu-luc-mang-thai-18548398.htm","/danh-ghen-xam-len-mat-tinh-dich-2-phu-nu-o-ca-mau-lanh-an-tu-18526032710165366.htm","/tphcm-xong-vao-quan-an-hanh-hung-khien-mot-nguoi-nhap-vien-18526032613311304.htm","/cong-an-tphcm-moi-lam-viec-thanh-nien-bao-hanh-cau-ruot-bi-tai-bien-185260330160044658.htm","/mat-tich-10-ngay-nguoi-phu-nu-duoc-tim-thay-trong-rung-sau-185260401092143212.htm","/vu-chau-bao-hanh-cau-ruot-bi-tai-bien-dua-mot-nguoi-di-dieu-tri-tam-than-185260331164446497.htm","/nu-sinh-lop-7-bi-danh-hoi-dong-lot-ao-keo-le-tren-duong-gay-phan-no-185260331155942702.htm","/tinh-tiet-vu-chau-trai-lien-tuc-chui-boi-hanh-hung-cau-ruot-liet-nua-nguoi-185260330222528642.htm","/nhan-cuoi-mac-vao-cua-xe-tai-xe-o-tphcm-nguy-co-mat-ngon-tay-18526032612135817.htm","/clip-nguoi-dan-ong-da-vao-mat-nu-quan-ly-quan-nhau-o-nha-trang-gay-phan-no-185260426162511304.htm","/thuc-hu-thong-tin-be-trai-12-tuoi-o-tay-ninh-bi-danh-tu-vong-vi-no-100000-dong-185260423195454571.htm","/hoc-sinh-lop-9-dam-ban-tu-vong-o-mui-ne-185260424175944302.htm","/dang-lam-vuon-nguoi-dan-ong-dut-lia-ban-chan-duoc-phau-thuat-noi-lai-thanh-cong-185260428102521457.htm","/vu-an/nghi-an-chong-sat-hai-vo-con-va-chem-cha-me-ruot-thuong-tich_192235.htm","/chong-dung-dao-sat-hai-vo-va-con-2-thang-tuoi-o-tay-ninh-185260503182315852.htm","/be-trai-2-tuoi-bi-me-ruot-va-nguoi-tinh-bao-hanh-gay-gay-xuong-hon-me-185260505142413106.htm","/tphcm-loi-khai-cua-nhom-hanh-hung-sinh-vien-bang-trai-bida-185260505132924912.htm","/tam-giu-me-ruot-va-nguoi-tinh-danh-be-trai-2-tuoi-hon-me-gay-xuong-18526050517184567.htm","/nghe-trinh-sat-hinh-su-ke-lai-cuoc-truy-bat-nghet-tho-nghi-pham-dam-vo-da-man-185251225163051698.htm","/tphcm-truy-xet-nhom-hanh-hung-sinh-vien-bang-trai-bi-da-185260504194052291.htm","/benh-vuc-cha-con-trai-danh-va-bop-co-nguoi-hanh-hung-den-tu-vong-185260505080454726.htm","/vu-be-trai-2-tuoi-bi-hanh-ha-hon-me-gay-xuong-bat-giu-me-ruot-va-nguoi-tinh-185260505184241736.htm","/chong-dung-dao-sat-hai-vo-va-con-2-thang-tuoi-o-tay-ninh-185260503182315852.htm?avivid_manual=6","/loi-thu-nhan-cua-cha-duong-vu-hanh-ha-be-trai-2-tuoi-danh-bang-cay-tre-vi-185260505210155397.htm","/toan-canh-17h-bieu-hien-bat-thuong-truoc-vu-tham-an-o-tay-ninh-bat-tai-xe-vu-chay-o-to-o-cay-xang-185260504162054201.htm","/khanh-hoa-csgt-bi-nguoi-nuoc-ngoai-tan-cong-185250807193935982.htm","/tham-kich-cua-gia-dinh-mot-co-giao-o-can-tho-185155735.htm","/chan-dut-lia-do-may-cat-co-bac-si-noi-lai-thanh-cong-185260504214210237.htm","/be-trai-2-tuoi-bi-me-ruot-va-nguoi-tinh-bao-hanh-gay-gay-xuong-hon-me-185260505142413106.htm?zarsrc=10","/nga-vao-noi-nuoc-soi-va-hanh-trinh-16-gio-trao-tra-guong-mat-185260508133138164.htm","/loi-khai-cua-bi-can-bao-hanh-be-gai-4-tuoi-tu-vong-185260507200116567.htm","/vu-be-gai-4-tuoi-bi-bao-hanh-tu-vong-toi-khong-xung-dang-lam-me-185260507171205162.htm","/cong-an-ha-noi-be-gai-4-tuoi-bi-danh-bo-doi-nhieu-ngay-truoc-khi-chet-185260507142023735.htm","/vu-sat-hai-vo-va-con-2-thang-tuoi-nghi-pham-da-tu-vong-tai-benh-vien-185260512140021904.htm","/thit-ban-tung-hoanh-qua-lo-hong-kiem-dich-tham-nhap-lo-mo-chui-185260511195833282.htm","/be-trai-2-tuoi-o-tphcm-bi-bao-hanh-da-man-me-ruot-nguoi-tinh-khai-gi-185260506123948797.htm","/an-giang-truy-bat-nhom-thanh-thieu-nien-danh-nhau-bang-hung-khi-gay-thuong-tich-185260511172548827.htm","/hoa-chat-tu-do-choi-khien-be-gai-5-tuoi-o-dak-lak-nhap-vien-cap-cuu-185260511175005524.htm","/xac-minh-vu-be-trai-nghi-bi-me-ke-va-bo-danh-dap-185260513103427382.htm","/mot-phu-nu-tu-vong-tai-nha-rieng-voi-nhieu-vet-thuong-185260512090436961.htm","/xac-minh-clip-2-nguoi-di-xe-may-danh-nhau-giua-duong-pho-tphcm-gay-nao-loan-18526051811520903.htm","/nu-sinh-lop-6-bi-danh-hoi-dong-ep-quy-goi-xin-loi-giua-duong-185260519180005223.htm","/xac-minh-vu-giao-vien-dung-thuoc-danh-hoc-sinh-tieu-hoc-chan-thuong-o-tay-185260320120021283.htm?gidzl=zzSz9j06Y2lpm3afr1k09VJ7E2FA78WWliK-SPyQZdA-m3mbdH7UTBISFoMTGjvnlf9kT6GGw80rrGc9Am","/lap-ho-so-xu-ly-nhom-nu-sinh-danh-hoi-dong-ban-nu-cung-truong-185260324070132198.htm","/chi-200-trieu-thue-con-do-tat-a-xit-danh-gay-chan-nguoi-tinh-cua-con-trai-185250220194059084.htm","/dien-vien-ha-hien-cua-bui-doi-cho-lon-thieu-bao-luc-lieu-phim-co-con-hay-185638876.htm","/tham-sat-o-yen-bai-chem-chet-luon-nho-sau-nay-lon-len-no-tra-thu-185494359.htm","/tphcm-lay-loi-khai-14-thanh-thieu-nien-danh-nguoi-di-duong-bang-that-lung-185251227172020735.htm","/tphcm-nguoi-dan-ong-cam-xeng-tan-cong-2-hoc-sinh-bi-thuong-vong-185260615150030192.htm","/vu-chem-nguoi-khi-thac-mac-tien-gui-xe-tam-giu-hinh-su-3-bao-ve-185260616174231882.htm","/thong-tin-them-ve-vu-2-nguoi-bi-hanh-hung-khi-thac-mac-tien-gui-o-to-160000-185260616152039251.htm","/truy-tim-nghi-pham-hanh-hung-2-nguoi-thac-mac-tien-gui-xe-o-chung-cu-185260616105757624.htm","/2-nguoi-bi-hanh-hung-khi-thac-mac-tien-gui-o-to-160000-dong-o-chung-cu-185260615175332896.htm","/xac-minh-vu-tai-xe-lai-o-to-can-qua-nguoi-dan-ong-vi-mau-thuan-185260525093157168.htm","/thong-tin-them-ve-vu-2-nguoi-bi-hanh-hung-khi-thac-mac-tien-gui-o-to-160000-185260616152039251.htm?zarsrc=31","/nam-sinh-truong-kinh-te-gianh-5-huy-chuong-lan-dau-thi-the-hinh-185260615145553338.htm","/bi-chat-dau-vi-lai-xe-can-nguoi-185378408.htm","/bac-si-tieu-hoa-chi-ra-5-loai-trai-cay-giup-giam-tao-bon-tu-nhien-185260622082438802.htm","/phan-no-thieu-nu-15-tuoi-bi-danh-hoi-dong-tut-quan-roi-quay-clip-phat-tan-185260629153712152.htm","/bo-gd-dt-vua-bai-bo-van-ban-quy-pham-phap-luat-nao-trong-linh-vuc-giao-duc-185260630164704793.htm","/nghe-an-nu-sinh-lop-8-bi-ban-danh-hoi-dong-den-trong-thuong-185260520151553328.htm","/phan-no-thieu-nu-15-tuoi-bi-danh-hoi-dong-tut-quan-roi-quay-clip-phat-tan-185260629153712152.htm?wct=mobile","/xon-xao-clip-nhom-thanh-thieu-nien-danh-nhau-loan-xa-tren-duong-185260704143406644.htm","/chan-dung-nghi-can-giet-da-man-2-nguoi-trong-biet-thu-o-tien-giang-185536229.htm","/chi-dao-hoa-toc-bao-ve-be-gai-3-tuoi-bi-cha-duong-bao-hanh-o-tphcm-18526071107240141.htm","/xac-minh-vu-tai-xe-xe-tai-o-tphcm-to-bi-hanh-hung-con-gai-mang-thai-cung-bi-danh-185260713102257046.htm","/dieu-tra-vu-nhom-thanh-nien-cam-hung-khi-ruot-duoi-nguoi-dap-xe-o-trung-tam-tphcm-185260711113121859.htm","/an-giang-mau-thuan-nho-nhat-dung-dao-dam-hang-xom-tu-vong-185260710193321795.htm"],"enableUrlBlock":true,"isSPA":false,"enablePrebid":true,"prebidSettings":{"prebidVersion":"11","prebidTimeout":2000,"prebidTamPubId":"db25e772-a50a-4abc-826c-f029cd5364e4","prebidUserSyncScript":"(function () {\\r\\n return {\\r\\n syncDelay: 6000, // Default = 3000\\r\\n syncsPerBidder: 10, // Default = 5\\r\\n filterSettings: {\\r\\n all: {\\r\\n bidders: \\"*\\",\\r\\n filter: \\"include\\",\\r\\n },\\r\\n },\\r\\n // https://publisherdocs.criteotilt.com/rtus/prebid/\\r\\n userIds: [\\r\\n {\\r\\n name: \\"criteo\\",\\r\\n },\\r\\n ],\\r\\n };\\r\\n})();","prebidCustomScript":"","prebidCoreGamNetworkId":21622890900,"prebidCurrency":"USD","prebidPriceGranularity":"custom","prebidJsURL":"https://anymind360.com/js/743/prebid_2026_8_9_6_23_43.js","rendererJsURL":"https://anymind360.com/js/bundle.js","prebidUseAtspbjs":true,"enableAnalytics":false,"ampaEndPoint":"https://storage.googleapis.com/prod-ampa-collect/collect","analyticsSamplingRate":0.05,"userIds":[],"enableSchain":true,"sellerId":"A380","criteoPublisherId":"","enableAdvertiserDomainBlock":true,"blockedAdvertiserDomains":["yolly.io","wakedigital.com.co","vi.fun88.com","fun88.com","oralsalud.com.co","oralsalud.com","fun88.mx","thichbongda88.com","fun682wc2026.com"]},"applyGDPR":true,"keywordsBlock":{},"enableAdRecovery":false,"gamAdsRefresh":2,"enableGamDisableInitialLoad":false,"enableGamLazyload":{},"enableSeparateRequest":true,"enableGamSingleRequest":true,"enableCollapseEmptyDivs":true,"enableBasicSetTargetings":true,"adlooxRequestRatio":0.02,"enableAdloox":false,"enableGptScript":true,"parentAccountSiteDomain":"anymanager.io","siteId":743,"enableAds":true,"ppidServerUrl":"https://ssfpc.thanhnien.vn/am/743/fpid/","enableIpBlocking":false,"enableIdentityHub":false,"identityHubPublisherId":null,"identityHubProfileId":null,"enableLiveRamp":false,"liveRampJsURL":"https://ats.rlcdn.com/ats.js","liveRampScript":"","enablePubcidScript":false,"pubcidScriptOnload":null,"enableIntentIq":false,"intentIqPartnerId":null,"intentIqAgentUrl":null,"enablePwa":false,"videoCssUrl":"https://anymind360.com/video/css/bundle_ver20240507.css","videoJsUrl":"https://anymind360.com/video/js/bundle_ver20240507.js"},"configs":[{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n// document.addEventListener(\\"DOMContentLoaded\\", function() { \\nvar newNode = document.createElement(\'div\');\\nnewNode.setAttribute(\\"id\\", \\"ATS_mb_bottom\\"); \\nnewNode.setAttribute(\\"style\\", \\"height: 250px; width:300px;display: block;margin: 0 auto;\\");\\n// Get the reference node\\nvar referenceNode = document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_mb_article_bottom_300x250\\");\\n// Insert the new node before the reference node\\nreferenceNode.prepend(newNode);\\nconsole.log(\'running!!\');\\n// });\\n}catch(e){}","style":""}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250]]}},"bids":[{"bidder":"openx","params":{"unit":"558900538","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"468204","zoneId":"2760290","accountId":"17692"},"includeSchain":true},{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_pc_article_right2_300x250_22088109413"},"includeSchain":true},{"bidder":"smaato","params":{"adspaceId":"134621949","publisherId":"1100048581"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"152408941"},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034322,"siteId":335339,"formatId":133543},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034322,"siteId":335339,"formatId":117858},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610338,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right2_300x250","adUnitId":89913,"divID":"ats-insert_ads-3","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".htm"},{"regex":".htm","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-3","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right2_300x250","slotName":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right2_300x250","sizes":[{"enable":true,"sizes":[[300,250]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"beforeend","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_pc_article_right2_300x250\\")","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":1,"divIDs":["ats-insert_ads-3"],"adUnitId":89913,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right2_300x250","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".htm"},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250]]}},"bids":[{"bidder":"openx","params":{"unit":"558900718","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_pc_article_right1_300x250_21806972844"},"includeSchain":true},{"bidder":"smaato","params":{"adspaceId":"134621956","publisherId":"1100048581"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"449317726"},"includeSchain":true},{"bidder":"yandex","params":{"impId":2,"pageId":3858391},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":"32539595"},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034328,"siteId":335339,"formatId":133543},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034328,"siteId":335339,"formatId":117858},"includeSchain":true},{"bidder":"inmobi","params":{"plc":"10000282146"},"includeSchain":true},{"bidder":"copper6ssp","params":{"placementId":"268"},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610337,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right1_300x250","adUnitId":43851,"divID":"ats-insert_ads-5","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".htm"},{"regex":".htm","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-5","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right1_300x250","slotName":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right1_300x250","sizes":[{"enable":true,"sizes":[[300,250]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterbegin","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_pc_article_right1_300x250\\")","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":1,"divIDs":["ats-insert_ads-5"],"adUnitId":43851,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_right1_300x250","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".htm"},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250]]}},"bids":[{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_pc_article_bottom_300x250_22088164237"},"includeSchain":true},{"bidder":"openx","params":{"unit":"558900722","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"468204","zoneId":"2760634","accountId":"17692"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"613977257"},"includeSchain":true},{"bidder":"yandex","params":{"impId":1,"pageId":3858391},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":"32539568"},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034332,"siteId":335339,"formatId":133543},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034332,"siteId":335339,"formatId":117858},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610336,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_bottom_300x250","adUnitId":89914,"divID":"ats-insert_ads-7","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".htm"},{"regex":".htm","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-7","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_bottom_300x250","slotName":"/21622890900,23411214/VN_thanhnien.vn_pc_article_bottom_300x250","sizes":[{"enable":true,"sizes":[[300,250]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterbegin","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 0px 0px 15px 0px;\\nmax-height: 270px!important;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_pc_article_bottom_300x250\\")","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":1,"divIDs":["ats-insert_ads-7"],"adUnitId":89914,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_article_bottom_300x250","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".htm"},{"regex":".htm","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"","style":"div.insert_ads-5.insert_ads > div {margin-top: 0px!important}"}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[728,90]]}},"bids":[{"bidder":"openx","params":{"unit":"558903796","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"468204","zoneId":"2761292","accountId":"17692"},"includeSchain":true},{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_pc_home_mid1_728x90_22875782693"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":"29452570"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"195945658"},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034336,"siteId":335339,"formatId":133543},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034336,"siteId":335339,"formatId":117858},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610335,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid1_728x90","adUnitId":196973,"divID":"ats-insert_ads-9","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":"^\\\\/$"},{"regex":"^\\\\/$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-9","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid1_728x90","slotName":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid1_728x90","sizes":[{"enable":true,"sizes":[[728,90]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterbegin","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_pc_home_mid1_728x90\\")","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":1,"divIDs":["ats-insert_ads-9"],"adUnitId":196973,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid1_728x90","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[728,90]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":"^\\\\/$"},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[728,90]]}},"bids":[{"bidder":"openx","params":{"unit":"558903798","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"468204","zoneId":"2761296","accountId":"17692"},"includeSchain":true},{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_pc_home_mid2_728x90_22875782891"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"381568111"},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610334,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid2_728x90","adUnitId":196974,"divID":"ats-insert_ads-10","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":"^\\\\/$"},{"regex":"^\\\\/$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-10","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid2_728x90","slotName":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid2_728x90","sizes":[{"enable":true,"sizes":[[728,90]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterbegin","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_pc_home_mid2_728x90\\")","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":1,"divIDs":["ats-insert_ads-10"],"adUnitId":196974,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_pc_home_mid2_728x90","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[728,90]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":"^\\\\/$"},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250],[1,1]]}},"bids":[{"bidder":"openx","params":{"unit":"558903794","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"468204","zoneId":"2761280","accountId":"17692"},"includeSchain":true},{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_mb_article_bottom_300x250_21806970915"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"643151722"},"includeSchain":true},{"bidder":"ogury","params":{"adUnitId":"wm-hb-iart-thanhn-anymi-eii2wftswjv3","assetKey":"OGY-355C56D80960"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":"32539607"},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034342,"siteId":335339,"formatId":133543},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2034342,"siteId":335339,"formatId":117858},"includeSchain":true},{"bidder":"nexverse","params":{"uid":"d4b7b8d5b84844b3f03bc48646fe422e","pubId":"24209","pubEpid":"34756"},"includeSchain":true},{"bidder":"copper6ssp","params":{"placementId":"267"},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610333,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_bottom_300x250","adUnitId":43847,"divID":"ats-insert_ads-11","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".htm"},{"regex":".htm","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-11","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_bottom_300x250","slotName":"/21622890900,23411214/VN_thanhnien.vn_mb_article_bottom_300x250","sizes":[{"enable":true,"sizes":[[300,250],[1,1]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterbegin","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_mb_article_bottom_300x250\\");","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":1,"divIDs":["ats-insert_ads-11"],"adUnitId":43847,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_bottom_300x250","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[1,1]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".htm"},{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n// input percentage of traffic\\n // document.addEventListener(\\"DOMContentLoaded\\", function() { \\nif (Math.random() * 100 < 20) {\\nvar geoEdgeScript0 = document.createElement(\\"script\\");\\nvar a = document.head;\\ngeoEdgeScript0.id = \\"geoEdge-script\\";\\ngeoEdgeScript0.innerHTML = `window.grumi = {\\n cfg: { pbGlobal: \'atspbjs\',\\n advs: {\\n \'4874430452\': true,\\n \'5102171883\': true,\\n \'5154605245\': true,\\n \'4423307908\': true,\\n \'5256022284\': true,\\n \'5045253251\': true,\\n \'4438813095\': true,\\n \'4420818472\': true,\\n \'4634467093\': true,\\n \'5144541100\': true\\n },\\n },\\n key: \'e847bac1-a300-49a6-bb4f-25fbe45ce675\'\\n \\n };`\\na.insertAdjacentElement(\\"afterbegin\\", geoEdgeScript0);\\n\\nvar geoEdgeScript1 = document.querySelector(\'#geoEdge-script\');\\nvar script = document.createElement(\'script\');\\nscript.setAttribute(\'src\', \'//rumcdn.geoedge.be/e847bac1-a300-49a6-bb4f-25fbe45ce675/grumi-ip.js\');\\nscript.setAttribute(\'async\', \'\');\\ngeoEdgeScript1.insertAdjacentElement(\'afterend\', script);\\n };\\n \\n // });\\n}catch(e){}","style":""}},{"regex":".htm","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"","style":"#ats-insert_ads-4-wrapper {max-height:260px!important;}\\n.insert_ads.insert_ads-7 > div {max-height: 260px!important;}"}},{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n// document.addEventListener(\'DOMContentLoaded\', function () {\\n const categoryList = [\'Thời sự\',\'Quốc tế\',\'Kinh tế\',\'Tin mới\',\'Thế giới\',\'Chính trị\',\'Tư vấn\',\'Văn hóa-giải trí\',\'Đời sống\',\'Xã hội\',\'Pháp luật\',\'Tin tức - sự kiện\',\'giải trí\',\'Công nghệ - game\',\'Bạn đọc\',\'Thể thao\',\'Văn hóa\',\'Tin tức sự kiện\',\'Công nghệ \',\'Quốc phòng-An ninh\',\'Kinh doanh\',\'Tin tức\',\'Sự kiện\',\'Game\'];\\n\\n let siteCategory = document.querySelector(\'.category-page__name\');\\n if (!siteCategory) siteCategory = document.querySelector(\'.title-current\');\\n\\n// const pixelId = 8452349669;\\n\\n// const pixelHandler = (Id) => {\\n// let a = String(Math.floor(Math.random() * 10000000000000000));\\n// new Image().src = `https://pubads.g.doubleclick.net/activity;dc_iu=/21622890900/DFPAudiencePixel;ord=${a};dc_seg=${Id}?`;\\n// };\\n\\n const siteCategoryLowerCase = siteCategory.textContent.toLowerCase();\\n\\n const categoryListLowerCase = categoryList.map((element) => {\\n return element.toLowerCase();\\n });\\n\\n const category = categoryListLowerCase\\n .filter((cate) => siteCategoryLowerCase.includes(cate))\\n .toString();\\n if (category) {\\n const googletag = window.googletag || {};\\n googletag.cmd = googletag.cmd || [];\\n\\n googletag.cmd.push(function () {\\n googletag.pubads().setTargeting(\'Category_GNI\', category);\\n\\n // googletag.pubads().addEventListener(\'impressionViewable\', (viewedEvent) => {\\n // const viewedSlot = viewedEvent.slot;\\n\\n // if (viewedSlot.getAdUnitPath().includes(\'21622890900\')) {\\n // pixelHandler(pixelId);\\n // }\\n // });\\n });\\n }\\n console.log(category);\\n// });\\n}catch(e){}","style":""}},{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\nconst pixelIdRON = 8452349669;\\n\\nconst pixelIdSite = 8461524548;\\n\\ngoogletag.pubads().addEventListener(\'impressionViewable\', (viewedEvent) => {\\n// const viewedSlot = viewedEvent.slot;\\n\\n// if (viewedSlot.getAdUnitPath().includes(\'21622890900\')) {\\n let a = String(Math.floor(Math.random() * 10000000000000000));\\n new Image().src = `https://pubads.g.doubleclick.net/activity;dc_iu=/21622890900/DFPAudiencePixel;ord=${a};dc_seg=${pixelIdRON}?`;\\n \\n let b = String(Math.floor(Math.random() * 10000000000000000));\\n new Image().src = `https://pubads.g.doubleclick.net/activity;dc_iu=/21622890900/DFPAudiencePixel;ord=${b};dc_seg=${pixelIdSite}?`;\\n// }\\n});\\n}catch(e){}","style":""}},{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n// document.addEventListener(\\"DOMContentLoaded\\", function() { \\nsetTimeout(function(){\\nvar pubDiv = document.querySelector(\\"#AnyMind_thanhnien\\\\\\\\.vn_res_article_1x1\\");\\nif (pubDiv) {\\n var newNode = document.createElement(\'div\');\\n newNode.setAttribute(\\"id\\", \\"ATS_res_instream\\"); \\n newNode.setAttribute(\\"style\\", \\"margin: 0px; padding: 0px;\\");\\n var referenceNode = document.querySelectorAll(\'.detail-content.afcbc-body > p\')[3];\\n referenceNode.insertAdjacentElement(\'afterend\', newNode);\\n // Get the reference node\\n// var articleLength = document.querySelector(\'.detail-content.afcbc-body\').childElementCount;\\n// var referenceNode = Math.round(articleLength * 0.40);\\n// // Insert the new node before the reference node\\n// document.querySelectorAll(\'.detail-content.afcbc-body > p\')[referenceNode].after(newNode);\\n// document.querySelector(\'.detail-content.afcbc-body\').querySelectorAll(\'p\')[referenceNode].after(newNode);\\n}\\n},2000);\\n// });\\n}catch(e){}","style":""}},{"regex":"/duong-sach-tphcm-va-bao-tang-lich-su-tphcm-duoc-binh-chon-trong-100-dieu-thu-vi-nam-2023-185231201225106086.htm","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-19","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_res_article_1x1","slotName":"/21622890900,23411214/VN_thanhnien.vn_res_article_1x1","sizes":[{"enable":true,"sizes":[[1,1]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterend","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"QuerySelector","selector":"#ATS_res_instream","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":1,"divIDs":["ats-insert_ads-19"],"adUnitId":259316,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_res_article_1x1","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[1,1]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":false,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"resp","regex":"/duong-sach-tphcm-va-bao-tang-lich-su-tphcm-duoc-binh-chon-trong-100-dieu-thu-vi-nam-2023-185231201225106086.htm"},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250],[336,280]]}},"bids":[{"bidder":"openx","params":{"unit":"564178318","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"605518","zoneId":"3954973","accountId":"17692"},"includeSchain":true},{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_mb_article_mid_300x250_23322630238"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"506966294"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":"36708674"},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2135091,"siteId":741496,"formatId":133543},"includeSchain":true},{"bidder":"amx","params":{"tagId":"kEdeuvy5P","adUnitId":"HB_VN_thanhnien.vn_mb_article_mid_300x250_23322630238"},"includeSchain":true},{"bidder":"inmobi","params":{"plc":"10000525921"},"includeSchain":true},{"bidder":"sparteo","params":{"custom1":"HB_VN_23322630238","networkId":"431d5181-b002-4701-8377-795bfff722f1"},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610340,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid_300x250","adUnitId":516034,"divID":"ats-insert_ads-20","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".htm"},{"regex":".htm","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-20","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid_300x250","slotName":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid_300x250","sizes":[{"enable":true,"sizes":[[300,250],[336,280]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterbegin","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\'#AnyMind_thanhnien\\\\\\\\.vn_mb_article_mid_300x250\');","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":0,"divIDs":["ats-insert_ads-20"],"adUnitId":516034,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid_300x250","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".htm"},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250],[336,280]]}},"bids":[{"bidder":"openx","params":{"unit":"564178342","delDomain":"adasia-d.openx.net"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"605518","zoneId":"3955003","accountId":"17692"},"includeSchain":true},{"bidder":"criteo","params":{"networkId":9528,"publisherSubId":"HB_VN_thanhnien.vn_mb_article_mid2_300x250_23322932104"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CU3VM41V","crid":"381817322"},"includeSchain":true},{"bidder":"smartadserver","params":{"domain":"https://prg-apac.smartadserver.com","pageId":2135092,"siteId":741496,"formatId":133543},"includeSchain":true},{"bidder":"amx","params":{"tagId":"kEdeuvy5P","adUnitId":"HB_VN_thanhnien.vn_mb_article_mid2_300x250_23322932104"},"includeSchain":true},{"bidder":"sparteo","params":{"custom1":"HB_VN_23322932104","networkId":"431d5181-b002-4701-8377-795bfff722f1"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":"36772732"},"includeSchain":true},{"bidder":"inmobi","params":{"plc":"10000525922"},"includeSchain":true},{"bidder":"unruly","params":{"siteId":292935,"targetingUUID":"766220b5-3d02-46c5-aa8b-2bc60c6f7418"},"includeSchain":true},{"bidder":"ssp_geniee","params":{"zoneId":1610339,"currency":"USD"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid2_300x250","adUnitId":516122,"divID":"ats-insert_ads-21","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".htm"},{"regex":".htm","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"ats-insert_ads-21","divIDType":"QuerySelector","adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid2_300x250","slotName":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid2_300x250","sizes":[{"enable":true,"sizes":[[300,250],[336,280]]}]}}]}},{"settings":{"isSticky":false,"stickySizes":[],"customShowAdsText":"ADVERTISEMENT","showAdvertisement":false,"targetFirstLevelOnly":false,"exclusiveSelectors":[],"isFlexible":false,"selectors":[],"insertPosition":"afterbegin","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","spacing":1,"numOfAds":1,"overrideMargin":false,"stickyStopTargetType":"QuerySelector","stickyStopTarget":"","targetType":"Function","selector":"document.querySelector(\'#AnyMind_thanhnien\\\\\\\\.vn_mb_article_mid2_300x250\');","lazyLoadMode":2,"enableLazyLoad":false,"lazyLoadConfig":0,"divIDs":["ats-insert_ads-21"],"adUnitId":516122,"adUnitPath":"/21622890900,23411214/VN_thanhnien.vn_mb_article_mid2_300x250","setCollapseEmptyDiv":"before_fetch","sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280]]}],"inViewRate":0,"refreshInterval":0,"enableSetForceSafeFrameForSlot":false,"autoAdUnitPaths":[]},"enablePrebid":true,"type":"insert_ads","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".htm"}],"information":{"env":"prod","buildDate":"2026-08-09T15:23:43.962Z","versions":{"ads":"3.1.337 ver3","pwa":"3.1.337","core":"3.1.337","bundler":"3.1.337"}},"amPrebidBidderMap":{"openx":29,"rubicon":34,"criteo":24,"smaato":63,"medianet":68,"smartadserver":25,"unruly":72,"ssp_geniee":224,"yandex":123,"appnexus":26,"inmobi":177,"copper6ssp":203,"ogury":109,"nexverse":181,"amx":196,"sparteo":214}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](i,i.exports,__webpack_require__),i.exports}__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={},_TagServices__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(903),_Logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(335);const anymindTS=window.anymindTS=window.anymindTS||{que:[]};let originalQue=[];Array.isArray(anymindTS.que)&&(originalQue=anymindTS.que.slice(),anymindTS.que.splice(0));const iterateAndCallFuncInQue=e=>{e.length>0&&e.forEach((e,t)=>{try{e()}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.error(`anymindTS.que[${t}]`,e)}})};class ATSManager{constructor(config){this.config=config,this.startAnymindTS=async()=>{if(this.tagServices.disposed)_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.error("Must execute 'window.anymindTS.dispose();'");else{if(this.config.siteSetting.useAsyncJsTrigger&&this.config.siteSetting.asyncJsTrigger)try{const result=await eval(this.config.siteSetting.asyncJsTrigger);if(_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log("asyncJsTrigger result: ",result),!result)return}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log(e)}this.tagServices.start()}},this.run=async()=>{this.tagServices.run=!0,_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.log(`\nenv: ${this.config.information.env}\nversion: ${this.config.information.versions.ads}\nbuild date: ${this.config.information.buildDate}\nsite id: ${this.config.siteSetting.siteId}`),this.config.siteSetting.isSPA||this.startAnymindTS(),iterateAndCallFuncInQue(originalQue),originalQue.splice(0)},window.startAnymindTS=window.startAnyMindTS=this.startAnymindTS,this.tagServices=window.anymindTS=new _TagServices__WEBPACK_IMPORTED_MODULE_0__.h(config)}}try{const e=__webpack_require__(974);if(window.anymindTS.loaded)_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.error("already ats.js is loaded");else{const t=new ATSManager(e);t.run()}}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_1__.vF.error(e)}})();