/*!
* version: {"ads":"3.1.323 ver3","pwa":"3.1.323","core":"3.1.323","bundler":"3.1.323"} - env: prod - bundle date: 2025-05-29T19:27:45.501Z
*
*/(()=>{"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)}}}},34:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>AmazonPublisherService});var _Logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(335),_core_utils_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(939);class AmazonPublisherService{constructor(timeout,apsPubId,sellerId,parentAccountSiteDomain){this.timeout=timeout,this.apsPubId=apsPubId,this.sellerId=sellerId,this.parentAccountSiteDomain=parentAccountSiteDomain,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 _Logger__WEBPACK_IMPORTED_MODULE_0__.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){_Logger__WEBPACK_IMPORTED_MODULE_0__.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=()=>{_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("aps: setTargeting"),window.apstag.setDisplayBids()},this.fetchApsBids=e=>new Promise((t=>{window.apstag.fetchBids({slots:e,timeout:this.timeout},(e=>{_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("aps return bids",e),t(!0)}))})),this.createParameters=(configs,force)=>{const slots=[];for(const config of configs)if(force||config.active||_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.isDev)for(const tamAdUnit of config.settings.tamAdUnits)if((0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.hg)(tamAdUnit.deviceSizes)){let slotID=tamAdUnit.slot.slotID;try{slotID="Function"===tamAdUnit.slot.divIDType&&eval(slotID)||slotID}catch(e){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.error("aps: The script to find the target failed.",e);continue}const apsAdSlot={slotID,slotName:tamAdUnit.slot.slotName,sizes:tamAdUnit.slot.sizes.filter((e=>e.enable||_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.isDev)).reduce(((e,t)=>{for(const[i,s]of t.sizes)e.push([i,s]);return e}),[])};if(apsAdSlot.sizes.length<=0)continue;this.slotsDict[apsAdSlot.slotName]=apsAdSlot,slots.push(apsAdSlot);break}return _Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("aps: slots",slots),_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("aps: slots dict",this.slotsDict),slots},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)})()}}},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.waitUntilInView=(e,t,i)=>new Promise((s=>{const a=(0,n.EW)(e,t,i);a&&(this.checkInViewTimer=setInterval((()=>{(0,n.TG)(a)&&(clearInterval(this.checkInViewTimer),s(!0))}),200))})),this.sleep=e=>new Promise((t=>setTimeout((()=>{t(!0)}),1e3*e))),this.lazyExecute=async(e,t,i)=>{const{selector:s,targetType:n}=this.config;await this.waitUntilInView(t,s,n),a.vF.log(`replace: wait ${e} second to replace with ${this.config.adUnitPath}`);const o=document.querySelector(s);o&&"true"===o.getAttribute("ats-non-replace")||(await this.sleep(e),await this.execute(t,i))},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}}}},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()}},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)}}},114:(e,t,i)=>{i.d(t,{m:()=>c});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 c{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))}}},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},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",waitUntilJSLoaded=({enablePrebid,enableIdentityHub,identityHubPublisherId,identityHubProfileId,enableLiveRamp,liveRampJsURL,liveRampScript})=>{if(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)return 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()}),500);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`)}))}},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,c="left"===o?d[o]:window.innerWidth-d[o],p=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:c}=this.config,p=this.slots[e];o>0&&!1===p.isGPTRefreshCalled&&this.gpt.intervalRefreshAds([i.slot],o,r,e,this.slots,d,l),p.eventSize=Array.isArray(i.size)?[i.size[0],i.size[1]]:[0,0],c&&p.slot.classList.add(this.RENDERED);const h=t.getBoundingClientRect().width,g=p.slotWrapper,_=i.size;g.style[a]=`calc(50% - ${h/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}}},292:(e,t,i)=>{i.d(t,{D0:()=>c,Hi:()=>h,L1:()=>o,PI:()=>d,X1:()=>l,ap:()=>s,fX:()=>n,qp:()=>p,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}},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}]},c=["relaido","teads"],p=/^ats-insert_ads_flexible-\d+-\d+(-\d+)?$/,h=/^ats-insert_ads_flexible-\d+-[1-9]+(-\d+)?$/},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<60*e*1e3&&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.showPopupBeforeAds(this.config.popupMessageBeforeAds)&&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)||"{}")}}},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));const intentIQ=this.prebidSettings.intentIQ;if(intentIQ&&this.prebidSettings.prebidVersion<9&&(this.waitIntentIQ=this.callIntentIQ(intentIQ)),this.pbjs.que.push((()=>{_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.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.modifyKeyValue(prebidConfig.priceGranularity);const analytics=[];this.prebidSettings.enableAnalytics&&analytics.push(this.enableAnyMindPrebidAnalytics(this.prebidAnalyticsConfig.adUnitIdPathMapping,this.prebidAnalyticsConfig.amPrebidBidderMap,this.prebidSettings.analyticsSamplingRate,this.prebidSettings.ampaEndPoint)),prebidConfig.userSync?.userIds?.some((e=>"intentIqId"==e.name))&&analytics.push({provider:"iiqAnalytics"}),0e.code));this.onFirstPrebidResponseEnded=this.sendBids(adUnits,adUnitCodes)},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.callIntentIQ=async e=>{if(e&&e.jsURL){const t=e.jsURL;delete e.jsURL,_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("setup IntentIQ"),await new Promise((i=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_1__.nL)(!0,t,(()=>{const t={callback:e=>{_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("IntentIQ eids",e,this.iiq?.getIntentIqData()),i()},pbjs:this.pbjs,domainName:new URL(location.href).hostname,...e};_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("IntentIQ params",t),this.iiq=new window.IntentIqObject(t),googletag.cmd.push((()=>{try{googletag.pubads().setTargeting("intent_iq_group",this.iiq?.intentIqConfig.abTesting.currentTestGroup||"U")}catch(e){googletag.pubads().setTargeting("intent_iq_group","N")}}))}))}))}},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=>{var t,i,s;const n="object"==typeof e?"custom":e;(t=this.pbjs).bidderSettings??(t.bidderSettings={}),(i=this.pbjs.bidderSettings).standard??(i.standard={}),(s=this.pbjs.bidderSettings.standard).adserverTargeting??(s.adserverTargeting=[]),this.pbjs.bidderSettings.standard.adserverTargeting.push({key:"ats_hb_bidder",val:e=>e.bidderCode},{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:"ats_hb_pb",val:e=>{switch(n){case"medium":default:return e.pbMg;case"high":return e.pbHg;case"custom":return e.pbCg}}},{key:"ats_hb_bid",val:()=>"true"},{key:"hb_uuid",val:e=>e.videoCacheKey}),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("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"},bidderTimeout:prebidTimeout,paapi:{enabled:!0,bidders:_config_prebid__WEBPACK_IMPORTED_MODULE_2__.PI,defaultForSlots:1}};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.prebidSettings.prebidVersion>8&&!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}})),prebidVersion>=8&&(config.topics=_config_prebid__WEBPACK_IMPORTED_MODULE_2__.X1),0t.name!=e.name))&&config.userSync.userIds.push(e)}return config.userSync?.userIds?.forEach((e=>{"intentIqId"==e.name&&(e.params.callback=(e,t)=>_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("IntentIQ callback",{data:e,group:t}))})),config},this.sendBids=(e,t)=>new Promise((i=>{const s=(0,_Gpt__WEBPACK_IMPORTED_MODULE_3__._7)((async()=>{await this.waitIntentIQ;const e=this.pbjs.getHighestCpmBids()[0];if(e&&this.iiq){_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.log("IntentIQ winningBid",e);const t={biddingPlatformId:1,partnerAuctionId:e.auctionId,bidderCode:e.bidder,prebidAuctionId:e.auctionId,cpm:e.cpm,currency:e.currency||"USD",originalCpm:e.originalCpm,originalCurrency:e.originalCurrency||"USD",status:e.status||"rendered",placementId:e.adUnitCode};_Logger__WEBPACK_IMPORTED_MODULE_0__.vF.table("IntentIQ reportData",t),this.iiq.reportExternalWin(t)}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;try{divID="Function"===config.settings.divIDType&&eval(divID)||divID}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;try{accumulator.push({bidder,params:script?eval(script):params})}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}}}}}})()};if(!(adUnit.bids.length<=0)){if((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),this.prebidSettings.prebidVersion>8&&!this.isFourMAccount())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)=>{this.pbjs.que.push((()=>{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.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)}}}}},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)},348:(e,t,i)=>{i.d(t,{Cu:()=>s.Cu,KB:()=>s.KB,sp:()=>s.sp});var s=i(78)},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.reset=()=>{try{this.disconnect(),delete this.disconnectTimeoutId;for(let e=0;e{__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.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.isUserInteractedOnDocument=!1,this.isSoundAvailable=!1,this.soundOnEvent=new CustomEvent("atssoundon",{}),this.onAdEvent=e=>{this.counter_retry=1;const t=window.google;if(vjsLogger.log(`ads event: ${e.type}`),e.type==t.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED)this.player.pause(),this.showAdDisplayContainer(),this.isAdPlaying=!0,this.disablePlaylist(),this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.style.display="none");else if(e.type==t.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED)this.hideAdDisplayContainer(),this.isAdPaused=!1,this.isAdPlaying=!1,this.contentEnded||(this.play(),this.videoPlayerViewMoreLink&&(this.videoPlayerViewMoreLink.style.display="block"));else if(e.type==t.ima.AdEvent.Type.AD_BREAK_READY)vjsLogger.log("ad break ready");else if(e.type==t.ima.AdEvent.Type.STARTED){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.isSoundAvailable&&"unmuted"===this.adsRequest?.l||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==t.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED){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==t.ima.AdEvent.Type.LOADED){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!=t.ima.AdEvent.Type.ALL_ADS_COMPLETED&&e.type!=t.ima.AdEvent.Type.USER_CLOSE&&e.type!=t.ima.AdEvent.Type.COMPLETE&&e.type!=t.ima.AdEvent.Type.SKIPPED&&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===t.ima.AdEvent.Type.ALL_ADS_COMPLETED||e.type==t.ima.AdErrorEvent.Type.AD_ERROR){this.hideAdDisplayContainer(),vjsLogger.log(e),this.resizeObserver?.disconnect(),this.adsManager.destroy();const t=this.videoLoadingCount;vjsLogger.log("call ads after 30 sec"),this.allAdsCompleted=!0,setTimeout((()=>{this.refreshAds(this.adTagUrl,t)}),this.REFRESH_INTERVAL)}if(e.type==t.ima.AdEvent.Type.LOG){const t=e.getAdData();t.adError&&vjsLogger.error("Non-fatal error occurred: "+t.adError.getMessage())}},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.isUserInteractedOnDocument=!1,this.isSoundAvailable=!1,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");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.adTagUrl,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(await this.waitUntilHasFocus(),t===this.videoLoadingCount&&this.player&&!this.isAdPlaying){if(this.adsManager&&this.adsManager.destroy(),this.adsLoader)try{this.adsLoader.contentComplete()}catch(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.waitUntilFP=()=>!!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
'),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),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 some seconds");const e=this.videoLoadingCount;this.refreshTimer=setTimeout((()=>{this.refreshAds(this.adTagUrl,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){}},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?(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 n=[t.ima.AdEvent.Type.STARTED,t.ima.AdErrorEvent.Type.AD_ERROR,t.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,t.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,t.ima.AdEvent.Type.ALL_ADS_COMPLETED,t.ima.AdEvent.Type.LOADED,t.ima.AdEvent.Type.COMPLETE,t.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,t.ima.AdEvent.Type.SKIPPED,t.ima.AdEvent.Type.USER_CLOSE,t.ima.AdEvent.Type.LOG,t.ima.AdEvent.Type.AD_BREAK_READY];for(const e of n)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 c=100*l;this.progressDiv.style.width=c+"%"},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.waitUntilFP(),this.initAdsManager(),this.showAdDisplayContainer(),this.hideImaControlBar();try{vjsLogger.log("play ads"),this.adsManager.start()}catch(e){vjsLogger.log(e),this.play()}},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:c=!1,removePlaylistCarousel:p=!1}=this.config;let h="",g=null;if(1===o&&n){if(r.length>0){if(this.videoFeedEntry=c?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,h=this.useMP4?this.videoFeedEntry.mp4.low:this.videoFeedEntry.hls.manifest,this.poster=this.videoFeedEntry.thumbnail}else if(2===o){const e=c?_VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseAMVideoEntryByIndex(this.divId,this.videoLoadingCount):_VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.chooseAMVideoEntry(this.divId);if(!e&&c&&this.lastMissingVideosCount<3)return void await this.handleMissingVideo();this.lastMissingVideosCount=0,h=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,c?this.videoLoadingCount:0);if(!t&&c&&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");h=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=h:(this.hls=new window.atsHls(this.hlsConfig),this.hls.loadSource(h),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.isSoundAvailable||window.addEventListener("atssoundon",(()=>{this.isSoundAvailable=!0})),this.initIMA(e),this.playWithSound?u.volume=DEFAULT_PLAYER_VOLUME:(vjsLogger.log("mute video sound"),u.volume=0,u.muted=!0),this.config.sound&&0===u.volume&&this.detectUIPromise.then((async()=>{await this.waitUntilFP(),u.volume=DEFAULT_PLAYER_VOLUME,window.dispatchEvent(this.soundOnEvent)}));const{height:f,width:m}=this.videoWrapper.getBoundingClientRect();if(this.videoWrapper.style.height=f+"px",this.videoWrapper.style.width=m+"px",this.videoStickyWrapper.style.width=m+"px",this.originVideoWidth=m,this.originVideoHeight=f,c){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})}));p||(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||(this.isFirstPlay=!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 b=!1;(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TG)(this.videoStickyWrapper)&&(this.onceInView=!0);const v=()=>{b||(window.requestAnimationFrame((()=>{(0,_core_utils_util__WEBPACK_IMPORTED_MODULE_0__.TG)(this.videoStickyWrapper)&&(this.onceInView=!0,document.removeEventListener("scroll",v)),b=!1})),b=!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()=>{const e=()=>{this.isFirstPlay&&(this.isUserInteractedOnDocument=!0,document.removeEventListener("click",e))};return document.addEventListener("click",e),await this.observeUI()},this.observeUI=()=>new Promise((e=>{const t=window.setInterval((()=>{this.isUserInteractedOnDocument&&(window.clearInterval(t),e(!0))}),300)})),this.autoplay=()=>{this.isAutoPlayed||this.isAdPlaying||1!==this.config.playerMode||(this.isAutoPlayed=!0,this.player?.play())},this.play=async()=>{await this.waitUntilInView(),await this.waitUntilFP(),vjsLogger.log("play video"),this.player?.play()},this.dispose=()=>{vjsLogger.log("dispose"),this.scrollCallbacks=this.scrollCallbacks.reduce(((e,t)=>(document.removeEventListener("scroll",t),e)),[]),this.counter_retry=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.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,this.detectUIPromise=this.detectUI(),_VideoManager__WEBPACK_IMPORTED_MODULE_2__.f.registerSelectedVideos(selectedYoutubeVideos,this.divId)}get useMP4(){return!window.atsHls.isSupported()}get adTagUrl(){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.isFirstPlay&&!!this.config.sound&&this.isSoundAvailable}}},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}}}},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=()=>{}}}},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 c=document.createElement("div");c.id=`${r}-wrapper`,c.classList.add(this.AD_NAME,this.CLASS_NAME),i&&c.classList.add(this.SHOW_ADVERTISEMENT),c.appendChild(d);const p=a?"beforebegin":n;return e.insertAdjacentElement(p,c),this.slots[r]={baseElement:t,adUnitPath:this.config.adUnitPath,divId:r,slotWrapper:c,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,c=this.slots[e];return{gpt:{slotWrapperDiv:c.slotWrapper,instanceCount:this.instanceCount,adUnitPath:c.adUnitPath,sizes:[[300,250]],divId:c.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:c=0}=this.config,[p]=e.eventSize||[0],h=t.children[0],g=window.getComputedStyle(h),_=t.offsetHeight,{marginTop:u,marginBottom:f,marginLeft:m}=g,b=parseFloat(u)||0,v=parseFloat(f)||0,y=parseFloat(m)||0,E=d?c:parseFloat(u)||0,A=d?l:parseFloat(f)||0,S=(()=>{let e=!1;if(r&&r.length>0)for(let t=0;t{P||(P=!0,S?e.requestAnimationFrameId=window.requestAnimationFrame((()=>{this.handleScroll(p,y,E,A,_,e,h,w),P=!1})):(P=!0,e.requestAnimationFrameId&&window.cancelAnimationFrame(e.requestAnimationFrameId)))};t.classList.contains(this.ENABLE_STICKY)||(window.addEventListener("scroll",D),e.removeScrollEventListener=()=>{window.cancelAnimationFrame(this.requestAnimationFrameId),window.removeEventListener("scroll",D)},t.classList.add(this.ENABLE_STICKY))},this.handleScroll=(e,t,i,s,n,a,o,r)=>{const{slotWrapper:d}=a,{overrideMargin:l=!1,overrideMarginBottom:c=0,overrideMarginTop:p=0}=this.config;d.classList.remove(this.STICKY,this.ABSOLUTE),o.style.top="",o.style.marginLeft="";const h=(o.offsetWidth-e)/2+t,g=r?r.getBoundingClientRect().top:document.body.getBoundingClientRect().bottom,_=r?r.offsetTop:g+window.pageYOffset,u=d.getBoundingClientRect(),f=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)}}},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)}}},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},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}`)}}},554:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Ay:()=>Gpt,_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.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.setForceSafeFrame(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 c=i;const p=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 c||0e.getSlotElementId()))}`))}};p()},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.pubads().disableInitialLoad()},this.isInitialLoadDisabled=()=>googletag.pubads().isInitialLoadDisabled(),this.enableSingleRequest=()=>{this.isSRAEnabled=!0,googletag.pubads().enableSingleRequest()},this.collapseEmptyDivs=()=>{googletag.pubads().collapseEmptyDivs()},this.setKeyValuesToSlots=(e,t,i)=>{e.forEach((e=>{e.setTargeting(t,i)}))},this.enableGamLazyload=e=>{googletag.pubads().enableLazyLoad({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 c=this.aps.slotsDict[r];void 0!==c&&(c.slotID=o,a.push(c))})),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.setCollapseEmptyDiv(!1);break;case"after_fetch":r.setCollapseEmptyDiv(!0);break;case"before_fetch":r.setCollapseEmptyDiv(!0,!0)}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:c,enableSetForceSafeFrameForSlot:p,infinite:h,slotWrapperDiv:g,instanceCount:_})=>{let u;if(u=!this.isSRAEnabled||h||this.enableSeparateRequest&&this.separateRequestDivIds.some((e=>e===i))?this.defineSlot(e,t,i,s,n,p,a):this.definedAtsSlots[i],u){if(d&&await this.waitDisplaySlot(i,c,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))})),h)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=(allSlots,prebidOnlySlotsDivIdMap)=>{const lazyPBOnlySlotsDivIds=[],lazyPBOnlySlotMap=Object.keys(prebidOnlySlotsDivIdMap).reduce(((result,_pbSlotId)=>{const divIdType=prebidOnlySlotsDivIdMap[_pbSlotId].divIDType,inViewRefresh=prebidOnlySlotsDivIdMap[_pbSlotId].inViewRefresh;let pbSlotId;if("Function"===divIdType)try{pbSlotId=eval(_pbSlotId)}catch(e){return gptLogger.log(e),result}else pbSlotId=_pbSlotId;let elm=null;try{elm=document.getElementById(pbSlotId)||document.querySelector(`#${pbSlotId}`)}catch(e){}return elm&&allSlots.find((e=>e.getSlotElementId()===pbSlotId))&&!inViewRefresh||(result[_pbSlotId]={divIDType:divIdType,inViewRefresh},lazyPBOnlySlotsDivIds.push(pbSlotId)),result}),{});return{notFoundPrebidOnlySlotsDivIds:lazyPBOnlySlotsDivIds,notFoundPBOnlySlotMap:lazyPBOnlySlotMap}},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)}))},561:(e,t,i)=>{i.d(t,{f:()=>a});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}}}},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){}},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)}}}}},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||"")}}},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}}},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:c,enableCollapseEmptyDivs:p,enableApm:h,apmNetworkId:g,apmSiteId:_,enableAdloox:u,adlooxRequestRatio:f,enableGptScript:m}=this.config;m&&(r?r.then((()=>{this.gpt.insertGptTag()})):this.gpt.insertGptTag()),d&&this.gpt.executeBasicTargetings(),!(0,n.ze)(l)&&this.gpt.enableGamLazyload(l),p&&this.gpt.collapseEmptyDivs(),e&&this.gpt.disableInitialLoad(),(c||e)&&(this.gpt.defineATSSlotsForSRA(i,a),this.gpt.enableSingleRequest()),this.gpt.enableServices(),h&&g&&_&&(s.rG.insertSasScript(g),s.rG.setUpAndCall(g,_,t)),o.init(u,f)}}}},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}}}},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"),c=document.createElement("div"),p=document.createElement("div"),h=document.createElement("div"),g=document.createElement("div"),_=document.createElement("div"),u=document.createElement("div");if(d.append(l),l.append(c),l.append(h),l.append(p),h.append(g),g.append(_),_.append(u),d.classList.add(`${this.AD_NAME}-container`),l.classList.add(`${this.AD_NAME}-clipper`),c.classList.add(`${this.AD_NAME}-header`),p.classList.add(`${this.AD_NAME}-footer`),h.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);c.appendChild(e)}else c.classList.add(`${this.AD_NAME}-${this.NOT_DISPLAYED}`);if(o){const e=document.createTextNode(o);p.appendChild(e)}else p.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,c=i||"0",p=t?0:e,h=n>360?n:361;(0,s.TD)(`\n .${this.AD_NAME}-container {\n width: 100${a};\n height: 100vh;\n max-height: ${h}px;\n min-height: 350px;\n position: relative;\n margin: ${c};\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: ${p}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():""}}},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");this.waitUntilJSLoaded=(0,_libs_WaitUntilJSLoaded__WEBPACK_IMPORTED_MODULE_17__.A)(this.siteSettingsConfig),this.configManager.filterConfig(),_Logger__WEBPACK_IMPORTED_MODULE_8__.vF.log("config: ",this.configManager);const{enablePrebid,prebidSettings}=this.siteSettingsConfig;_VideoManager__WEBPACK_IMPORTED_MODULE_23__.f.registerVideoUrls(this.siteSettingsConfig.videoJsUrl,this.siteSettingsConfig.videoCssUrl),this.adObserver.init(this.siteSettingsConfig),this.gpt.init(this.configManager),enablePrebid&&(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;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,c=t[1]?.frequency||0,p=t[2]?.frequency||0,h=t[3]?.frequency||0,g=t[5]?.frequency||0,_=t[6]?.frequency||0,u=t[7]?.frequency||0,f=this.choosePlayer(c,p,h,g,_,u);if(1===f){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(f,l,r,d,t[f]);e.insertThirdPartyVideoPlayer(),this.instances.push(e);const i=t[f].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}}},939:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{EW:()=>getTarget,FC:()=>isMatchedDevice,G:()=>isMatchedPath,P7:()=>updateArray,Ri:()=>getCookie,TD:()=>addStyle,TG:()=>isInView,TV:()=>setCookie,UW:()=>isMatchedBlockedUrl,ab:()=>getSelectorFromElement,gE:()=>getUserDeviceType,hg:()=>isCorrectSizes,k3:()=>isMatchedReferrerHistory,kU:()=>isInflow,l9:()=>debouncedMutationObserver,m$:()=>scrollDetector,nL:()=>insertScriptTag,oj:()=>isMatchedReferrer,pr:()=>checkWindow,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)}},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))),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)}},974:e=>{e.exports=JSON.parse('{"siteSetting":{"enableAds":true,"enableGptScript":true,"parentAccountSiteDomain":"fourm.jp","siteId":5088,"enableAdloox":false,"adlooxRequestRatio":0.08,"enableIpBlocking":false,"enableBasicSetTargetings":true,"enableCollapseEmptyDivs":true,"enableGamSingleRequest":true,"enableSeparateRequest":false,"enableGamDisableInitialLoad":false,"enableGamLazyload":{},"gamAdsRefresh":1,"enablePrebid":true,"applyGDPR":false,"prebidSettings":{"prebidVersion":9,"prebidTimeout":2000,"prebidTamPubId":"7de8a22d-a113-4373-928c-8ebde784b42b","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 name: \'unifiedId\',\\r\\n params: {\\r\\n url: \\"//match.adsrvr.org/track/rid?ttd_pid=36a81ej&fmt=json\\"\\r\\n },\\r\\n storage: {\\r\\n name: \'pbjs-unifiedid\',\\r\\n type: \'cookie\',\\r\\n expires: 60\\r\\n }\\r\\n } \\r\\n ],\\r\\n };\\r\\n})();","prebidCustomScript":"","prebidCoreGamNetworkId":7753536,"prebidCurrency":"JPY","prebidPriceGranularity":"medium","prebidJsURL":"https://anymind360.com/js/5088/prebid_2025_5_29_10_27_45.js","rendererJsURL":"https://anymind360.com/js/bundle.js","prebidUseAtspbjs":false,"enableAnalytics":true,"ampaEndPoint":"https://storage.googleapis.com/prod-ampa-collect/collect","analyticsSamplingRate":0.05,"userIds":[],"enableSchain":true,"sellerId":"A2954"},"enableIdentityHub":false,"identityHubPublisherId":null,"identityHubProfileId":null,"enableLiveRamp":false,"liveRampJsURL":"https://ats.rlcdn.com/ats.js","liveRampScript":"","enablePwa":false,"keywordsBlock":{},"isSPA":false,"enableAdRecovery":false,"destroyAtsSlotsOnly":false,"enableUrlBlock":false,"blockedUrls":[],"hostNames":["r.gnavi.co.jp"],"enableApm":false,"videoCssUrl":"https://anymind360.com/video/css/bundle_ver20240507.css","videoJsUrl":"https://anymind360.com/video/js/bundle_ver20240507.js","useAsyncJsTrigger":false,"asyncJsTrigger":""},"configs":[{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n(function(e) {\\n var googletag = window.googletag || {};\\n googletag.cmd = googletag.cmd || [];\\n\\n var s = () => {\\n var el = e.querySelector(\'.kanjiRank .rankName\');\\n if (!el) return;\\n\\n var text = el.textContent.trim();\\n\\n var rank = \'unknown\';\\n\\n if (text.includes(\'ロイヤル幹事\')) {\\n rank = \'royal\';\\n } else if (text.includes(\'エース幹事\')) {\\n rank = \'ace\';\\n } else if (text.includes(\'レギュラー幹事\')) {\\n rank = \'regular\';\\n } else if (text.includes(\'獲得していません\')) {\\n rank = \'none\';\\n }\\n\\n googletag.cmd.push(function() {\\n googletag.pubads().setTargeting(\'ExecutiveRank\', rank);\\n });\\n };\\n\\n e.readyState !== \\"loading\\" ? s() : e.addEventListener(\\"DOMContentLoaded\\", s);\\n})(document);\\n}catch(e){}","style":""}},{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n(function(doc) {\\n // Google Publisher Tag の初期化\\n const googletag = window.googletag || {};\\n googletag.cmd = googletag.cmd || [];\\n\\n // ページレベルターゲティングを設定する関数\\n const setPageLevelTargeting = () => {\\n googletag.cmd.push(() => {\\n googletag.pubads().setTargeting(\'pref\', [\'pref13\']);\\n googletag.pubads().setTargeting(\'areal\', [\'areal2101\']);\\n googletag.pubads().setTargeting(\'aream\', [\'aream2105\']);\\n googletag.pubads().setTargeting(\'areas\', [\'areas2105\']);\\n googletag.pubads().setTargeting(\'bdg\', [\'bdgs0007\']);\\n });\\n };\\n\\n // 広告スロットを定義する関数\\n const defineAdSlots = () => {\\n googletag.cmd.push(() => {\\n googletag.defineSlot(\'/7753536/gnavi_pc_shop-rp_01\', [200, 200], \'div-gpt-ad-1605491556362-0\').addService(googletag.pubads());\\n googletag.defineSlot(\'/7753536/Shop-rp_pc_300x250m_shop_04\', [[200, 200], [300, 250], [336, 280]], \'div-gpt-ad-1574315388453-0\').addService(googletag.pubads());\\n googletag.defineSlot(\'/7753536/Shop-rp_pc_140x600_shop_02\', [[140, 600], [160, 600]], \'div-gpt-ad-1574932632125-0\').addService(googletag.pubads());\\n\\n // シングルリクエストと空スロット折り畳みの設定\\n googletag.pubads().enableSingleRequest();\\n googletag.pubads().collapseEmptyDivs();\\n googletag.enableServices();\\n });\\n };\\n\\n // メイン関数\\n const main = () => {\\n setPageLevelTargeting(); // ページレベルターゲティングを設定\\n defineAdSlots(); // 広告スロットを定義\\n\\n // デバッグログ\\n console.log(\\"Page-level targeting has been set.\\");\\n };\\n\\n // DOM読み込み後に実行\\n if (doc.readyState !== \\"loading\\") {\\n main();\\n } else {\\n doc.addEventListener(\\"DOMContentLoaded\\", main);\\n }\\n})(document);\\n}catch(e){}","style":""}},{"regex":".*","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n(function(l) {\\n console.log(\'popup logic insert\');\\n\\n // ポップアップ設定\\n var settingsOptions = [\\n {\\n lead: \'加盟店紹介テキストはこちらに記載可能\',\\n lead1: \'↓詳細はこちら↓\',\\n subLead: \'今すぐチェック
\',\\n button: \'とじる\'\\n }\\n ];\\n\\n // 表示タイミング設定\\n var displayControl = {\\n scroll: [true, 1000],\\n element: [false, \'.content\', 200]\\n };\\n\\n // ポップアップをランダムに選択\\n var randomIndex = Math.floor(Math.random() * settingsOptions.length);\\n var settings = settingsOptions[randomIndex];\\n\\n // 画面スクロールチェック\\n function scrollHandler(num) {\\n function onScroll() {\\n if (window.scrollY >= num) {\\n window.removeEventListener(\'scroll\', onScroll);\\n popup();\\n }\\n }\\n window.addEventListener(\'scroll\', onScroll);\\n }\\n\\n function popup() {\\n var containerId = \'div-gpt-ad-popup\';\\n var o = l.createElement(\'div\');\\n o.className = \'optimize-m\';\\n o.insertAdjacentHTML(\'afterbegin\', `\\n \\n \\n
\\n
\\n
${settings.lead}
\\n
${settings.lead1}
\\n
${settings.subLead}
\\n
\\n `);\\n\\n l.body.appendChild(o);\\n\\n // GAM広告スロットを動的に読み込む\\n loadGAMCreative(containerId);\\n\\n // 閉じるボタンのイベントリスナー設定\\n [].slice.call(l.querySelectorAll(\'[data-m-close]\')).forEach(function(el) {\\n el.addEventListener(\'click\', function() {\\n o.style.display = \'none\';\\n dataLayer.push({ event: \'popup_click_close\' });\\n });\\n });\\n }\\n\\n function loadGAMCreative(containerId) {\\n if (!window.googletag || !googletag.apiReady) {\\n console.error(\'GAM is not loaded. Ensure the GAM script is included.\');\\n return;\\n }\\n\\n googletag.cmd.push(function() {\\n googletag.defineSlot(\'/7753536/gnavi_sp_popup\', [300, 250], containerId)\\n .addService(googletag.pubads());\\n googletag.pubads().enableSingleRequest();\\n googletag.enableServices();\\n googletag.display(containerId);\\n });\\n }\\n\\n function e() {\\n if (displayControl.scroll[0]) scrollHandler(displayControl.scroll[1]);\\n }\\n\\n if (l.readyState !== \'loading\') e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".optimize-m {\\n position: fixed;\\n top: 0;\\n left: 0;\\n z-index: 999999;\\n width: 100vw;\\n height: 100vh;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background: rgba(0, 0, 0, 0.7); /* 背景を濃いめにして高級感 */\\n backdrop-filter: blur(5px); /* 背景をぼかしておしゃれ感を演出 */\\n}\\n\\n.optimize-m-inner {\\n background: linear-gradient(145deg, #fdf8f3, #f6e8d8); /* ゴールドベージュのグラデーション */\\n border-radius: 16px; /* 少し丸みを付けたデザイン */\\n border: 2px solid rgba(212, 172, 130, 0.8); /* ゴールド系のボーダー */\\n width: 90%;\\n max-width: 420px; /* デバイスに応じた最適な幅 */\\n padding: 40px 30px; /* 十分な余白を確保 */\\n text-align: center;\\n box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.3); /* リッチな影を追加 */\\n position: relative;\\n animation: fadeIn 0.5s ease-in-out; /* なめらかなフェードイン */\\n}\\n\\n.optimize-m-title {\\n font-size: 24px; /* 大きめのタイトル */\\n font-weight: bold; /* 太字で強調 */\\n color: #5a3e2f; /* 深みのあるブラウン */\\n margin-bottom: 10px;\\n text-transform: uppercase; /* 大文字で強調 */\\n letter-spacing: 1.2px; /* 文字間を少し広げる */\\n}\\n\\n.optimize-m-subtitle {\\n font-size: 18px;\\n font-weight: bold;\\n color: #ffffff; /* 白文字 */\\n background: linear-gradient(90deg, #b3864b, #d4a678); /* ゴールド系グラデーション */\\n padding: 6px 15px;\\n border-radius: 8px;\\n display: inline-block;\\n margin-bottom: 20px;\\n text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* 文字に軽い影を付けて立体感 */\\n}\\n\\n.optimize-m-lead {\\n font-size: 18px; /* リード文 */\\n color: #4f3d2a; /* 落ち着いたブラウン系 */\\n margin-bottom: 25px;\\n line-height: 1.8; /* 読みやすい行間 */\\n font-family: \\"Georgia\\", serif; /* 高級感のあるフォント */\\n}\\n\\n.optimize-m-points {\\n display: flex;\\n justify-content: space-around; /* ポイントを均等配置 */\\n margin-bottom: 30px;\\n}\\n\\n.optimize-m-point {\\n width: 30%;\\n text-align: center;\\n font-size: 14px;\\n color: #4f3d2a;\\n font-family: \\"Georgia\\", serif; /* おしゃれなフォント */\\n}\\n\\n.optimize-m-point-circle {\\n width: 60px;\\n height: 60px;\\n margin: 0 auto 10px;\\n background: linear-gradient(145deg, #ecd3b0, #d4a678); /* ゴールド系のグラデーション */\\n color: #5a3e2f;\\n font-weight: bold;\\n font-size: 18px;\\n line-height: 60px;\\n border-radius: 50%; /* 丸い背景 */\\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* 丸型に影を追加 */\\n}\\n\\n.optimize-m-button {\\n display: inline-block;\\n font-size: 18px;\\n font-weight: bold;\\n color: #ffffff; /* 白文字 */\\n background: linear-gradient(45deg, #c38d5e, #8c6d48); /* ゴールド系グラデーション */\\n padding: 12px 30px;\\n border-radius: 30px; /* 丸みのあるボタン */\\n text-align: center;\\n text-decoration: none;\\n transition: all 0.3s ease;\\n cursor: pointer;\\n margin-top: 20px;\\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 立体感のある影 */\\n}\\n\\n.optimize-m-button:hover {\\n background: linear-gradient(45deg, #8c6d48, #c38d5e); /* ホバーで逆方向のグラデーション */\\n transform: translateY(-3px); /* 少し浮き上がる */\\n box-shadow: 0px 6px 20px rgba(165, 122, 76, 0.5); /* さらに強い影 */\\n}\\n\\n.close-button {\\n position: absolute;\\n top: 10px;\\n right: 10px;\\n font-size: 20px;\\n color: #7a5240;\\n cursor: pointer;\\n background: transparent;\\n border: none;\\n transition: transform 0.3s ease;\\n}\\n\\n.close-button:hover {\\n transform: rotate(90deg);\\n color: #5a3e2f;\\n text-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3); /* 影を追加 */\\n}\\n\\n@keyframes fadeIn {\\n from {\\n opacity: 0;\\n transform: scale(0.9);\\n }\\n to {\\n opacity: 1;\\n transform: scale(1);\\n }\\n}"}},{"regex":"^\\\\/(hokkaido|aomori|iwate|miyagi|akita|yamagata|fukushima|ibaraki|tochigi|gunma|saitama|chiba|tokyo|kanagawa|niigata|toyama|ishikawa|fukui|yamanashi|nagano|gifu|shizuoka|aichi|mie|shiga|kyoto|osaka|hyogo|nara|wakayama|tottori|shimane|okayama|hiroshima|yamaguchi|tokushima|kagawa|ehime|kochi|fukuoka|saga|nagasaki|kumamoto|oita|miyazaki|kagoshima|okinawa)\\\\/$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n const wRectBoxSettings = {\\n target: \'.Title__wrap-34N\',\\n divInsertPos: \'beforebegin\',\\n id: \'ats_wRect_adBox_underarticle\',\\n };\\n\\n const wRectBoxExec = (pos) => {\\n var newNode = document.createElement(\'div\');\\n newNode.id = wRectBoxSettings.id; \\n newNode.style.cssText = \'text-align: center; display: flex; justify-content: center; padding-top: 85px;\';\\n pos.insertAdjacentElement(wRectBoxSettings.divInsertPos, newNode);\\n console.log(\'ATS: custom insert : D-Rect Div inserted:\'+newNode.id);\\n };\\n\\n function e () {\\n var targetPos = l.querySelector(wRectBoxSettings.target);\\n if (!targetPos) return;\\n\\n wRectBoxExec(targetPos);\\n }\\n\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":""}},{"regex":"^\\\\/(hokkaido|aomori|iwate|miyagi|akita|yamagata|fukushima|ibaraki|tochigi|gunma|saitama|chiba|tokyo|kanagawa|niigata|toyama|ishikawa|fukui|yamanashi|nagano|gifu|shizuoka|aichi|mie|shiga|kyoto|osaka|hyogo|nara|wakayama|tottori|shimane|okayama|hiroshima|yamaguchi|tokushima|kagawa|ehime|kochi|fukuoka|saga|nagasaki|kumamoto|oita|miyazaki|kagoshima|okinawa)\\\\/$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":false,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_left","adUnitId":183329,"divIDs":["ats-insert_ads-4"],"targetType":"QuerySelector","selector":"#ats_wRect_adBox_underarticle","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 10px 15px 0px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"afterbegin","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":0}},{"regex":"^\\\\/(hokkaido|aomori|iwate|miyagi|akita|yamagata|fukushima|ibaraki|tochigi|gunma|saitama|chiba|tokyo|kanagawa|niigata|toyama|ishikawa|fukui|yamanashi|nagano|gifu|shizuoka|aichi|mie|shiga|kyoto|osaka|hyogo|nara|wakayama|tottori|shimane|okayama|hiroshima|yamaguchi|tokushima|kagawa|ehime|kochi|fukuoka|saga|nagasaki|kumamoto|oita|miyazaki|kagoshima|okinawa)\\\\/$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":false,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_right","adUnitId":183330,"divIDs":["ats-insert_ads-5"],"targetType":"QuerySelector","selector":"#ats_wRect_adBox_underarticle","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 10px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"beforeend","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":0}},{"regex":"^\\\\/(hokkaido|aomori|iwate|miyagi|akita|yamagata|fukushima|ibaraki|tochigi|gunma|saitama|chiba|tokyo|kanagawa|niigata|toyama|ishikawa|fukui|yamanashi|nagano|gifu|shizuoka|aichi|mie|shiga|kyoto|osaka|hyogo|nara|wakayama|tottori|shimane|okayama|hiroshima|yamaguchi|tokushima|kagawa|ehime|kochi|fukuoka|saga|nagasaki|kumamoto|oita|miyazaki|kagoshima|okinawa)\\\\/$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n var settings = {\\n selector: \'#link-searchShops\',\\n insertPos: \'afterend\',\\n tagSrc: \'//go.trvdp.com/init/9160.js?pid=6588\',\\n width: \'640px\',\\n } \\n \\n function e() {\\n var insPos = l.querySelector(settings.selector);\\n if (!insPos) return;\\n \\n var wrapDiv = l.createElement(\'div\');\\n wrapDiv.className = \'ats-trvd-wrapper\';\\n wrapDiv.style.width = settings.width;\\n wrapDiv.style.margin = \'20px auto\';\\n wrapDiv.style.paddingTop = \'85px\'; \\n var trvScript = l.createElement(\'script\');\\n trvScript.src = settings.tagSrc;\\n trvScript.type = \'text/javascript\';\\n trvScript.async = true;\\n trvScript.dataset.cfasync = \'false\';\\n wrapDiv.append(trvScript);\\n insPos.insertAdjacentElement(settings.insertPos, wrapDiv);\\n console.log(\'truvid tag inserted\');\\n }\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".trvdfloater{bottom: 100px !important;}"}},{"regex":"^\\\\/(hokkaido|aomori|iwate|miyagi|akita|yamagata|fukushima|ibaraki|tochigi|gunma|saitama|chiba|tokyo|kanagawa|niigata|toyama|ishikawa|fukui|yamanashi|nagano|gifu|shizuoka|aichi|mie|shiga|kyoto|osaka|hyogo|nara|wakayama|tottori|shimane|okayama|hiroshima|yamaguchi|tokushima|kagawa|ehime|kochi|fukuoka|saga|nagasaki|kumamoto|oita|miyazaki|kagoshima|okinawa)\\\\/$","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n var settings = {\\n selector: \'#link-searchShops\',\\n insertPos: \'afterend\',\\n tagSrc: \'//go.trvdp.com/init/9160.js?pid=6588\',\\n width: \'320px\',\\n } \\n \\n function e() {\\n var insPos = l.querySelector(settings.selector);\\n if (!insPos) return;\\n \\n var wrapDiv = l.createElement(\'div\');\\n wrapDiv.className = \'ats-trvd-wrapper\';\\n wrapDiv.style.width = settings.width;\\n wrapDiv.style.margin = \'20px auto\';\\n wrapDiv.style.paddingTop = \'52px\'; \\n var trvScript = l.createElement(\'script\');\\n trvScript.src = settings.tagSrc;\\n trvScript.type = \'text/javascript\';\\n trvScript.async = true;\\n trvScript.dataset.cfasync = \'false\';\\n wrapDiv.append(trvScript);\\n insPos.insertAdjacentElement(settings.insertPos, wrapDiv);\\n console.log(\'truvid tag inserted\');\\n }\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".trvdfloater{bottom: 100px !important;}"}},{"regex":"^\\\\/(hokkaido|aomori|iwate|miyagi|akita|yamagata|fukushima|ibaraki|tochigi|gunma|saitama|chiba|tokyo|kanagawa|niigata|toyama|ishikawa|fukui|yamanashi|nagano|gifu|shizuoka|aichi|mie|shiga|kyoto|osaka|hyogo|nara|wakayama|tottori|shimane|okayama|hiroshima|yamaguchi|tokushima|kagawa|ehime|kochi|fukuoka|saga|nagasaki|kumamoto|oita|miyazaki|kagoshima|okinawa)\\\\/$","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":false,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_SP_m.shop_rectangle","adUnitId":183331,"divIDs":["ats-insert_ads-8"],"targetType":"QuerySelector","selector":"#js-suggestContents-swiper","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 10px 15px 0px;\\npadding-top: 52px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"beforebegin","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":0}},{"regex":"^(?=.*area).*$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n const wRectBoxSettings = {\\n target: \'.box__title.box__title--m\',\\n divInsertPos: \'beforebegin\',\\n id: \'ats_wRect_adBox_underarticle\',\\n };\\n\\n const wRectBoxExec = (pos) => {\\n var newNode = document.createElement(\'div\');\\n newNode.id = wRectBoxSettings.id; \\n newNode.style.cssText = \'text-align: center; display: flex; justify-content: center;padding-bottom: 85px;\';\\n pos.insertAdjacentElement(wRectBoxSettings.divInsertPos, newNode);\\n console.log(\'ATS: custom insert : D-Rect Div inserted:\'+newNode.id);\\n };\\n\\n function e () {\\n var targetPos = l.querySelector(wRectBoxSettings.target);\\n if (!targetPos) return;\\n\\n wRectBoxExec(targetPos);\\n }\\n\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":"#ats_wRect_adBox_underarticle{\\n padding-bottom:85px\\n}"}},{"regex":"^(?=.*area).*$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":false,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280],[320,100]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_left","adUnitId":183329,"divIDs":["ats-insert_ads-10"],"targetType":"QuerySelector","selector":"#ats_wRect_adBox_underarticle","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 10px 15px 0px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"afterbegin","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":0}},{"regex":"^(?=.*area).*$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":false,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280],[320,100]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_right","adUnitId":183330,"divIDs":["ats-insert_ads-11"],"targetType":"QuerySelector","selector":"#ats_wRect_adBox_underarticle","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 10px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"beforeend","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":0}},{"regex":"^(?=.*area).*$","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":false,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_SP_m.shop_rectangle","adUnitId":183331,"divIDs":["ats-insert_ads-12"],"targetType":"QuerySelector","selector":".headline","customCss":"display: block;\\ntext-align: center!important;\\npadding-top: 52px","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"beforebegin","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":0}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250],[336,280],[1,1]]}},"bids":[{"bidder":"adg","params":{"id":"168894"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"381556","zoneId":"2619634","accountId":"13136"},"includeSchain":true},{"bidder":"ix","params":{"siteId":"900231"},"includeSchain":true},{"bidder":"rtbhouse","params":{"region":"prebid-asia","publisherId":"YWl3oVzwwoU0CCh7Y3e4"},"includeSchain":true},{"bidder":"adagio","params":{"site":"Gurunavi","pagetype":"article","placement":"gnavi_SP_m.shop_rectangle","environment":"mobile","organizationId":"1236","useAdUnitCodeAsPlacement":false,"useAdUnitCodeAsAdUnitElementId":true},"includeSchain":true},{"bidder":"logicad","params":{"cur":"USD","tid":"x3DV"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":27810623,"usePaymentRule":true},"includeSchain":true},{"bidder":"criteo","params":{"uid":441583,"zoneId":1695838},"includeSchain":true},{"bidder":"ttd","params":{"publisherId":"A2954","supplySourceId":"fourm"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/7753536/gnavi_SP_m.shop_rectangle","adUnitId":183331,"divID":"ats-insert_ads-13","divIDType":"QuerySelector"},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".*"},{"regex":".*","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-13","divIDType":"QuerySelector","adUnitPath":"/7753536/gnavi_SP_m.shop_rectangle","slotName":"/7753536/gnavi_SP_m.shop_rectangle","sizes":[{"enable":true,"sizes":[[300,250],[336,280],[1,1]]}]}}]}},{"regex":".*","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":true,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280],[1,1]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_SP_m.shop_rectangle","adUnitId":183331,"divIDs":["ats-insert_ads-13"],"targetType":"QuerySelector","selector":".commonSectionNoLink.-marginBottom.js-shopInfoSection","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 0px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"beforebegin","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":1}},{"regex":".*","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n const wRectBoxSettings = {\\n target: \'#js-shop-surrounding\',\\n divInsertPos: \'afterend\',\\n id: \'ats_wRect_adBox\',\\n };\\n\\n const wRectBoxExec = (pos) => {\\n var newNode = document.createElement(\'div\');\\n newNode.id = wRectBoxSettings.id; \\n newNode.style.cssText = \'text-align: center; display: flex; justify-content: center;\';\\n pos.insertAdjacentElement(wRectBoxSettings.divInsertPos, newNode);\\n console.log(\'ATS: custom insert : D-Rect Div inserted:\'+newNode.id);\\n };\\n\\n function e () {\\n var targetPos = l.querySelector(wRectBoxSettings.target);\\n if (!targetPos) return;\\n\\n wRectBoxExec(targetPos);\\n }\\n\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":""}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250],[336,280]]}},"bids":[{"bidder":"adg","params":{"id":"168896"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"381556","zoneId":"2619640","accountId":"13136"},"includeSchain":true},{"bidder":"adagio","params":{"site":"Gurunavi","pagetype":"article","placement":"gnavi_PC_m.shop_rectangle_left","environment":"desktop","organizationId":"1236","useAdUnitCodeAsPlacement":false,"useAdUnitCodeAsAdUnitElementId":true},"includeSchain":true},{"bidder":"rtbhouse","params":{"region":"prebid-asia","publisherId":"YWl3oVzwwoU0CCh7Y3e4"},"includeSchain":true},{"bidder":"ix","params":{"siteId":"900234"},"includeSchain":true},{"bidder":"logicad","params":{"cur":"USD","tid":"o4Dy"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":27810629,"usePaymentRule":true},"includeSchain":true},{"bidder":"pubmatic","params":{"adSlot":"4762397","publisherId":"157255"},"includeSchain":true},{"bidder":"criteo","params":{"uid":441553,"zoneId":1695832},"includeSchain":true},{"bidder":"ttd","params":{"publisherId":"A2954","supplySourceId":"fourm"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_left","adUnitId":183329,"divID":"ats-insert_ads-15","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-15","divIDType":"QuerySelector","adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_left","slotName":"/7753536/gnavi_PC_m.shop_rectangle_left","sizes":[{"enable":true,"sizes":[[300,250],[336,280]]}]}}]}},{"regex":".*","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":true,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_left","adUnitId":183329,"divIDs":["ats-insert_ads-15"],"targetType":"QuerySelector","selector":"#ats_wRect_adBox","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 3px 15px 0px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"afterbegin","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":1}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250],[336,280]]}},"bids":[{"bidder":"rubicon","params":{"siteId":"381556","zoneId":"2619638","accountId":"13136"},"includeSchain":true},{"bidder":"ix","params":{"siteId":"900233"},"includeSchain":true},{"bidder":"adg","params":{"id":"168897"},"includeSchain":true},{"bidder":"rtbhouse","params":{"region":"prebid-asia","publisherId":"YWl3oVzwwoU0CCh7Y3e4"},"includeSchain":true},{"bidder":"adagio","params":{"site":"Gurunavi","pagetype":"article","placement":"gnavi_PC_m.shop_rectangle_right","environment":"desktop","organizationId":"1236","useAdUnitCodeAsPlacement":false,"useAdUnitCodeAsAdUnitElementId":true},"includeSchain":true},{"bidder":"logicad","params":{"cur":"USD","tid":"weDJ"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":27810628,"usePaymentRule":true},"includeSchain":true},{"bidder":"pubmatic","params":{"adSlot":"4762396","publisherId":"157255"},"includeSchain":true},{"bidder":"criteo","params":{"uid":441549,"zoneId":1695831},"includeSchain":true},{"bidder":"ttd","params":{"publisherId":"A2954","supplySourceId":"fourm"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_right","adUnitId":183330,"divID":"ats-insert_ads-16","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-16","divIDType":"QuerySelector","adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_right","slotName":"/7753536/gnavi_PC_m.shop_rectangle_right","sizes":[{"enable":true,"sizes":[[300,250],[336,280]]}]}}]}},{"regex":".*","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":true,"settings":{"refreshInterval":0,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[300,250],[336,280]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_PC_m.shop_rectangle_right","adUnitId":183330,"divIDs":["ats-insert_ads-16"],"targetType":"QuerySelector","selector":"#ats_wRect_adBox","customCss":"display: block;\\ntext-align: center!important;\\nmargin: 15px 0px 15px 3px;","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"beforeend","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":1}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[728,90],[970,90]]}},"bids":[{"bidder":"adg","params":{"id":"168901"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"381556","zoneId":"2619648","accountId":"13136"},"includeSchain":true},{"bidder":"ix","params":{"siteId":"900238"},"includeSchain":true},{"bidder":"rtbhouse","params":{"region":"prebid-asia","publisherId":"YWl3oVzwwoU0CCh7Y3e4"},"includeSchain":true},{"bidder":"adagio","params":{"site":"Gurunavi","pagetype":"article","placement":"gnavi_PC_m.shop_footerovelay","environment":"desktop","organizationId":"1236","useAdUnitCodeAsPlacement":false,"useAdUnitCodeAsAdUnitElementId":true},"includeSchain":true},{"bidder":"logicad","params":{"cur":"USD","tid":"DZwK"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":27810633,"usePaymentRule":true},"includeSchain":true},{"bidder":"pubmatic","params":{"adSlot":"4762401","publisherId":"157255"},"includeSchain":true},{"bidder":"criteo","params":{"uid":441569,"zoneId":1695836},"includeSchain":true},{"bidder":"ttd","params":{"publisherId":"A2954","supplySourceId":"fourm"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/7753536/gnavi_PC_m.shop_footerovelay","adUnitId":183325,"divID":"ats-overlay_bottom-17","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-overlay_bottom-17","divIDType":"QuerySelector","adUnitPath":"/7753536/gnavi_PC_m.shop_footerovelay","slotName":"/7753536/gnavi_PC_m.shop_footerovelay","sizes":[{"enable":true,"sizes":[[728,90],[970,90]]}]}}]}},{"regex":".*","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"overlay","enablePrebid":true,"settings":{"refreshInterval":30,"refreshLimit":3,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[[728,90],[970,90]]}],"enableSetForceSafeFrameForSlot":false,"setCollapseEmptyDiv":"before_fetch","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_PC_m.shop_footerovelay","adUnitId":183325,"divIDs":["ats-overlay_bottom-17"],"overlayDesign":2,"backgroundCss":"","useFunctionTrigger":false,"anchorPosition":"bottom","functionTrigger":null}},{"regex":".*","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"div-gpt-ad-1574319341533-0","divIDType":"QuerySelector","adUnitPath":"/7753536/Shop-rp_smp_320x100m_shop_03","slotName":"/7753536/Shop-rp_smp_320x100m_shop_03","sizes":[{"enable":true,"sizes":[[320,100]]}]}}]}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[320,100]]}},"bids":[{"bidder":"criteo","params":{"uid":441590,"zoneId":1598112},"includeSchain":true},{"bidder":"pubmatic","params":{"adSlot":"3904424","publisherId":"157255"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":21874483,"usePaymentRule":true},"includeSchain":true},{"bidder":"logicad","params":{"cur":"USD","tid":"KOkB"},"includeSchain":true},{"bidder":"rtbhouse","params":{"region":"prebid-asia","publisherId":"YWl3oVzwwoU0CCh7Y3e4"},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"381556","zoneId":"2116278","accountId":"13136"},"includeSchain":true},{"bidder":"adg","params":{"id":"144742"},"includeSchain":true},{"bidder":"unicorn","params":{"mediaId":"www.gnavi.co.jp","accountId":290124,"placementId":"Shop-rp_smp_320x100m_shop_03"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CUJVS55O","crid":"523289675"},"includeSchain":true},{"bidder":"ttd","params":{"publisherId":"A2954","supplySourceId":"fourm"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"inViewRefresh":false,"adUnitPath":"/7753536/Shop-rp_smp_320x100m_shop_03","adUnitId":112168,"divID":"div-gpt-ad-1574319341533-0","divIDType":"QuerySelector","lazyRefresh":false,"isPrebidOnly":true},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".*"},{"regex":".*","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"tam","settings":{"tamAdUnits":[{"deviceSizes":[0,0],"slot":{"slotID":"div-gpt-ad-1574318812947-0","divIDType":"QuerySelector","adUnitPath":"/7753536/Shop-rp_pc_300x250m_shop_05","slotName":"/7753536/Shop-rp_pc_300x250m_shop_05","sizes":[{"enable":true,"sizes":[[300,250]]}]}}]}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250]]}},"bids":[{"bidder":"pubmatic","params":{"adSlot":"3904417","publisherId":"157255"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":21874476,"usePaymentRule":true},"includeSchain":true},{"bidder":"logicad","params":{"cur":"USD","tid":"lekp"},"includeSchain":true},{"bidder":"rtbhouse","params":{"region":"prebid-asia","publisherId":"YWl3oVzwwoU0CCh7Y3e4"},"includeSchain":true},{"bidder":"criteo","params":{"uid":441541,"zoneId":1598105},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"381556","zoneId":"2116264","accountId":"13136"},"includeSchain":true},{"bidder":"adg","params":{"id":"146688"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CUJVS55O","crid":"865578412"},"includeSchain":true},{"bidder":"ttd","params":{"publisherId":"A2954","supplySourceId":"fourm"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"inViewRefresh":false,"adUnitPath":"/7753536/Shop-rp_pc_300x250m_shop_05","adUnitId":112166,"divID":"div-gpt-ad-1574318812947-0","divIDType":"QuerySelector","lazyRefresh":false,"isPrebidOnly":true},"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":"div-gpt-ad-1574315388453-0","divIDType":"QuerySelector","adUnitPath":"/7753536/Shop-rp_pc_300x250m_shop_04","slotName":"/7753536/Shop-rp_pc_300x250m_shop_04","sizes":[{"enable":true,"sizes":[[300,250]]}]}}]}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{},"banner":{"pos":0,"sizes":[[300,250]]}},"bids":[{"bidder":"pubmatic","params":{"adSlot":"3904419","publisherId":"157255"},"includeSchain":true},{"bidder":"appnexus","params":{"placementId":21874478,"usePaymentRule":true},"includeSchain":true},{"bidder":"logicad","params":{"cur":"USD","tid":"yw59"},"includeSchain":true},{"bidder":"rtbhouse","params":{"region":"prebid-asia","publisherId":"YWl3oVzwwoU0CCh7Y3e4"},"includeSchain":true},{"bidder":"criteo","params":{"uid":441545,"zoneId":1598107},"includeSchain":true},{"bidder":"rubicon","params":{"siteId":"381556","zoneId":"2116268","accountId":"13136"},"includeSchain":true},{"bidder":"adg","params":{"id":"146690"},"includeSchain":true},{"bidder":"medianet","params":{"cid":"8CUJVS55O","crid":"374676540"},"includeSchain":true},{"bidder":"ttd","params":{"publisherId":"A2954","supplySourceId":"fourm"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"inViewRefresh":false,"adUnitPath":"/7753536/Shop-rp_pc_300x250m_shop_04","adUnitId":112165,"divID":"div-gpt-ad-1574315388453-0","divIDType":"QuerySelector","lazyRefresh":false,"isPrebidOnly":true},"type":"prebid_only","active":true,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".*"},{"regex":"^(?=.*photoreview).*$","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"insert_ads","enablePrebid":false,"settings":{"refreshInterval":30,"inViewRate":0,"sizeMappingGroup":[{"deviceSizes":[0,700],"sizes":[[320,50],[320,100]]},{"deviceSizes":[0,0],"sizes":[[320,50]]}],"enableSetForceSafeFrameForSlot":true,"setCollapseEmptyDiv":"none","autoAdUnitPaths":[],"adUnitPath":"/7753536/gnavi_SP_m.shop_photo_banner","adUnitId":315537,"divIDs":["ats-insert_ads-21"],"targetType":"QuerySelector","selector":"#m_photo_cm","customCss":"display: block;\\nposition: relative;\\ntext-align: center!important;\\nmargin: 100px 0px 15px 0px;\\nz-index: 2147483647 !important","customCssForShowAdvertisement":"border-top: 1px solid rgb(243, 243, 243);\\nborder-bottom: 1px solid rgb(243, 243, 243);","insertPosition":"beforebegin","isFlexible":false,"numOfAds":1,"selectors":[],"exclusiveSelectors":[],"targetFirstLevelOnly":false,"spacing":1,"showAdvertisement":false,"customShowAdsText":"ADVERTISEMENT","isSticky":false,"stickyStopTarget":"","stickyStopTargetType":"QuerySelector","overrideMargin":false,"stickySizes":[],"enableLazyLoad":false,"lazyLoadMode":2,"lazyLoadConfig":0}},{"regex":".*","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n var settings = {\\n selector: \'.commonGlobalNav\',\\n insertPos: \'afterend\',\\n tagSrc: \'//go.trvdp.com/init/9160.js?pid=6588\',\\n width: \'320px\',\\n } \\n \\n function e() {\\n var insPos = l.querySelector(settings.selector);\\n if (!insPos) return;\\n \\n var wrapDiv = l.createElement(\'div\');\\n wrapDiv.className = \'ats-trvd-wrapper\';\\n wrapDiv.style.width = settings.width;\\n wrapDiv.style.margin = \'20px auto\';\\n var trvScript = l.createElement(\'script\');\\n trvScript.src = settings.tagSrc;\\n trvScript.type = \'text/javascript\';\\n trvScript.async = true;\\n trvScript.dataset.cfasync = \'false\';\\n wrapDiv.append(trvScript);\\n insPos.insertAdjacentElement(settings.insertPos, wrapDiv);\\n console.log(\'truvid tag inserted\');\\n }\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".trvdfloater{bottom: 80px !important;}"}},{"regex":".*","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n var settings = {\\n selector: \'#js-shop-surrounding\',\\n insertPos: \'afterend\',\\n tagSrc: \'//go.trvdp.com/init/9160.js?pid=6588\',\\n width: \'640px\',\\n } \\n \\n function e() {\\n var insPos = l.querySelector(settings.selector);\\n if (!insPos) return;\\n \\n var wrapDiv = l.createElement(\'div\');\\n wrapDiv.className = \'ats-trvd-wrapper\';\\n wrapDiv.style.width = settings.width;\\n wrapDiv.style.margin = \'20px auto\';\\n var trvScript = l.createElement(\'script\');\\n trvScript.src = settings.tagSrc;\\n trvScript.type = \'text/javascript\';\\n trvScript.async = true;\\n trvScript.dataset.cfasync = \'false\';\\n wrapDiv.append(trvScript);\\n insPos.insertAdjacentElement(settings.insertPos, wrapDiv);\\n console.log(\'truvid tag inserted\');\\n }\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".trvdfloater{bottom: 100px !important;}"}},{"regex":".*","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":true,"type":"custom","settings":{"script":"","style":"#gn_footer {\\r\\n padding-bottom: 100px;\\r\\n}"}},{"regex":"XXXXXXX","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n(function(l) {\\n console.log(\'popup logic insert\');\\n // ポップアップ設定\\n var settingsOptions = [\\n {\\n linkURL: \'https://fourm.jp/\',\\n eyecatchImg: \'https://storage.googleapis.com/fm-adops-adassets/popup/%E3%81%90%E3%82%8B%E3%81%AA%E3%81%B3/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202024-12-13%2015.29.45%20(1).png\',\\n lead: \'加盟店紹介テキストはこちらに記載可能\',\\n lead1: \'↓詳細はこちら↓\',\\n subLead: \'今すぐチェック
\',\\n button: \'とじる\'\\n }\\n ];\\n\\n // フリコン設定\\n var frequencyControl = {\\n session: false,\\n migrationRate: [false, 3],\\n keyValue: [false, [[\'key\', \'value\']]],\\n notKeyValue: [false, [[\'key\', \'value\']]]\\n };\\n\\n // 表示タイミング設定\\n var displayControl = {\\n scroll: [true, 1000],\\n element: [false, \'.content\', 200]\\n };\\n\\n // ポップアップをランダムに選択\\n var randomIndex = Math.floor(Math.random() * settingsOptions.length);\\n var settings = settingsOptions[randomIndex];\\n\\n var resultArray = [true];\\n\\n // セッションチェック関数\\n function sessionCheck() {\\n return sessionStorage.__popup__ !== \'1\';\\n }\\n\\n // 回遊数チェック\\n function countPageViews(num) {\\n var count = sessionStorage.getItem(\'pageViews\');\\n count = count ? parseInt(count, 10) : 0;\\n count++;\\n sessionStorage.setItem(\'pageViews\', count);\\n\\n if (count % num === 0) {\\n return true;\\n } else {\\n sessionStorage.removeItem(\'__popup__\');\\n return false;\\n }\\n }\\n\\n // key-valueチェック(あり)\\n function shouldExecute(keyValue) {\\n return new Promise(resolve => {\\n let executed = false;\\n googletag.cmd.push(function() {\\n executed = true;\\n googletag.pubads().enableSingleRequest();\\n googletag.enableServices();\\n\\n Promise.all(keyValue[1].map(pair => {\\n var key = pair[0];\\n var value = pair[1];\\n var targetingValue = googletag.pubads().getTargeting(key)[0];\\n return targetingValue === value;\\n })).then(results => {\\n resolve(results.every(result => result));\\n });\\n });\\n\\n setTimeout(() => {\\n if (!executed) resolve(false);\\n }, 2000);\\n });\\n }\\n\\n // key-valueチェック(なし)\\n function shouldNotMatchAny(keyValue) {\\n return new Promise(resolve => {\\n let executed = false;\\n googletag.cmd.push(function() {\\n executed = true;\\n googletag.pubads().enableSingleRequest();\\n googletag.enableServices();\\n\\n Promise.all(keyValue[1].map(pair => {\\n var key = pair[0];\\n var value = pair[1];\\n var targetingValue = googletag.pubads().getTargeting(key)[0];\\n return targetingValue === value;\\n })).then(results => {\\n resolve(!results.some(result => result));\\n });\\n });\\n\\n setTimeout(() => {\\n if (!executed) resolve(true);\\n }, 2000);\\n });\\n }\\n\\n // 画面スクロールチェック\\n function scrollHandler(num) {\\n function onScroll() {\\n if (window.scrollY >= num) {\\n window.removeEventListener(\'scroll\', onScroll);\\n popup();\\n }\\n }\\n window.addEventListener(\'scroll\', onScroll);\\n }\\n\\n // 指定要素画面表示チェック\\n function getFooterElement(element) {\\n let attempt = 0;\\n let intervalTime = 200;\\n\\n let intervalId = setInterval(function() {\\n var footerElement = document.querySelector(element[1]);\\n\\n if (footerElement) {\\n clearInterval(intervalId);\\n window.addEventListener(\'scroll\', function scrollHandler() {\\n if (footerElement.getBoundingClientRect().top <= window.innerHeight - element[2]) {\\n popup();\\n window.removeEventListener(\'scroll\', scrollHandler);\\n }\\n });\\n } else if (++attempt >= 5) {\\n clearInterval(intervalId);\\n }\\n }, intervalTime);\\n }\\n\\n async function e() {\\n if (frequencyControl.session) resultArray.push(sessionCheck());\\n if (frequencyControl.migrationRate[0]) resultArray.push(countPageViews(frequencyControl.migrationRate[1]));\\n if (frequencyControl.keyValue[0]) resultArray.push(await shouldExecute(frequencyControl.keyValue));\\n if (frequencyControl.notKeyValue[0]) resultArray.push(await shouldNotMatchAny(frequencyControl.notKeyValue));\\n\\n if (resultArray.every(value => value === true)) {\\n if (displayControl.scroll[0]) scrollHandler(displayControl.scroll[1]);\\n else if (displayControl.element[0]) getFooterElement(displayControl.element);\\n }\\n }\\n\\n function popup() {\\n var o = l.createElement(\'div\');\\n o.className = \'optimize-m\';\\n o.insertAdjacentHTML(\'afterbegin\', \'\\\\\\n \\\\\\n
\\\\\\n \\\\\\n
\\\\\\n
\\\\\\n
\' + settings.lead + \'
\\\\\\n
\' + settings.lead1 + \'
\\\\\\n \\\\\\n
\');\\n\\n l.body.appendChild(o);\\n sessionStorage.setItem(\'__popup__\', \'1\');\\n\\n [].slice.call(l.querySelectorAll(\'[data-m-close]\')).forEach(function(el) {\\n el.addEventListener(\'click\', function() {\\n o.style.display = \'none\';\\n dataLayer.push({ event: \'popup_click_close\' });\\n });\\n });\\n\\n [].slice.call(l.querySelectorAll(\'.popup_click1\')).forEach(function(el) {\\n el.addEventListener(\'click\', function() {\\n o.style.display = \'none\';\\n dataLayer.push({ event: \'popup_click\' });\\n });\\n });\\n }\\n\\n if (l.readyState !== \'loading\') e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".optimize-m {\\n position: fixed;\\n top: 0;\\n left: 0;\\n z-index: 999999;\\n width: 100vw;\\n height: 100vh;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background: rgba(0, 0, 0, 0.7); /* 背景を濃いめにして高級感 */\\n backdrop-filter: blur(5px); /* 背景をぼかしておしゃれ感を演出 */\\n}\\n\\n.optimize-m-inner {\\n background: linear-gradient(145deg, #fdf8f3, #f6e8d8); /* ゴールドベージュのグラデーション */\\n border-radius: 16px; /* 少し丸みを付けたデザイン */\\n border: 2px solid rgba(212, 172, 130, 0.8); /* ゴールド系のボーダー */\\n width: 90%;\\n max-width: 420px; /* デバイスに応じた最適な幅 */\\n padding: 40px 30px; /* 十分な余白を確保 */\\n text-align: center;\\n box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.3); /* リッチな影を追加 */\\n position: relative;\\n animation: fadeIn 0.5s ease-in-out; /* なめらかなフェードイン */\\n}\\n\\n.optimize-m-title {\\n font-size: 24px; /* 大きめのタイトル */\\n font-weight: bold; /* 太字で強調 */\\n color: #5a3e2f; /* 深みのあるブラウン */\\n margin-bottom: 10px;\\n text-transform: uppercase; /* 大文字で強調 */\\n letter-spacing: 1.2px; /* 文字間を少し広げる */\\n}\\n\\n.optimize-m-subtitle {\\n font-size: 18px;\\n font-weight: bold;\\n color: #ffffff; /* 白文字 */\\n background: linear-gradient(90deg, #b3864b, #d4a678); /* ゴールド系グラデーション */\\n padding: 6px 15px;\\n border-radius: 8px;\\n display: inline-block;\\n margin-bottom: 20px;\\n text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* 文字に軽い影を付けて立体感 */\\n}\\n\\n.optimize-m-lead {\\n font-size: 18px; /* リード文 */\\n color: #4f3d2a; /* 落ち着いたブラウン系 */\\n margin-bottom: 25px;\\n line-height: 1.8; /* 読みやすい行間 */\\n font-family: \\"Georgia\\", serif; /* 高級感のあるフォント */\\n}\\n\\n.optimize-m-points {\\n display: flex;\\n justify-content: space-around; /* ポイントを均等配置 */\\n margin-bottom: 30px;\\n}\\n\\n.optimize-m-point {\\n width: 30%;\\n text-align: center;\\n font-size: 14px;\\n color: #4f3d2a;\\n font-family: \\"Georgia\\", serif; /* おしゃれなフォント */\\n}\\n\\n.optimize-m-point-circle {\\n width: 60px;\\n height: 60px;\\n margin: 0 auto 10px;\\n background: linear-gradient(145deg, #ecd3b0, #d4a678); /* ゴールド系のグラデーション */\\n color: #5a3e2f;\\n font-weight: bold;\\n font-size: 18px;\\n line-height: 60px;\\n border-radius: 50%; /* 丸い背景 */\\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* 丸型に影を追加 */\\n}\\n\\n.optimize-m-button {\\n display: inline-block;\\n font-size: 18px;\\n font-weight: bold;\\n color: #ffffff; /* 白文字 */\\n background: linear-gradient(45deg, #c38d5e, #8c6d48); /* ゴールド系グラデーション */\\n padding: 12px 30px;\\n border-radius: 30px; /* 丸みのあるボタン */\\n text-align: center;\\n text-decoration: none;\\n transition: all 0.3s ease;\\n cursor: pointer;\\n margin-top: 20px;\\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 立体感のある影 */\\n}\\n\\n.optimize-m-button:hover {\\n background: linear-gradient(45deg, #8c6d48, #c38d5e); /* ホバーで逆方向のグラデーション */\\n transform: translateY(-3px); /* 少し浮き上がる */\\n box-shadow: 0px 6px 20px rgba(165, 122, 76, 0.5); /* さらに強い影 */\\n}\\n\\n.close-button {\\n position: absolute;\\n top: 10px;\\n right: 10px;\\n font-size: 20px;\\n color: #7a5240;\\n cursor: pointer;\\n background: transparent;\\n border: none;\\n transition: transform 0.3s ease;\\n}\\n\\n.close-button:hover {\\n transform: rotate(90deg);\\n color: #5a3e2f;\\n text-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3); /* 影を追加 */\\n}\\n\\n@keyframes fadeIn {\\n from {\\n opacity: 0;\\n transform: scale(0.9);\\n }\\n to {\\n opacity: 1;\\n transform: scale(1);\\n }\\n}"}},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{"pos":0,"skip":1,"mimes":["video/mp4"],"context":"instream","protocols":[1,2,3,4,5,6,7,8],"playerSize":[320,180],"playbackmethod":[2]},"banner":{}},"bids":[{"bidder":"ix","params":{"siteId":"1045414"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/7753536/gnavi_PC_m.shop_AnyManagerVideo","adUnitId":244944,"divID":"ats-insert_video-26","divIDType":"QuerySelector"},"type":"prebid_only","active":false,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".*"},{"settings":{"lazyRendering":false,"aspectRatio":"16:9","adOutputFormat":"vast","playerMode":1,"sound":false,"divIDs":["ats-insert_video-26"],"maxHeight":null,"maxWidth":null,"thirdPartyVideoPlayerSettings":{"1":{"id":145847,"is_enabled":true,"frequency":100,"slot":null,"custom_css":null,"width":null,"type":1,"pub_key":"","site_key":"","max_height":null}},"videoSource":1,"amVideoFeed":{"mp4":{},"hls":{}},"youtubeButtonText":null,"youtubeChannelFeedUrl":"https://prod.video.anymanager.io/video/youtube_channel/UCrViSX3Pe8g0bXdALSgKPRw/feed/feed.json","scrollEffect":3,"anchorPosition":2,"customWrapperCss":".ats-insert-video-wrapper-left {bottom: 110px !important; z-index:10; left:10px;}\\n.ats-insert-video-wrapper-left > button {left: 0px;right: auto;}","insertPosition":"afterend","selector":"#js-shop-surrounding","targetType":"QuerySelector","adUnitPath":"/7753536/gnavi_PC_m.shop_AnyManagerVideo","adUnitId":244944,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[]}],"customVastParams":[],"autoAdUnitPaths":[],"enableAdAnchoredPlayback":true,"enablePlaylist":false,"removePlaylistCarousel":false,"selectedYoutubeVideos":[],"showTopStickyVideoCloseButton":false,"enableVastContinuousAds":false,"numberOfRepeatedAds":null},"type":"insert_video","active":false,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"pc","regex":".*"},{"settings":{"prebidAdUnits":[{"atsPrebidAdUnits":[{"mediaTypes":{"video":{"pos":0,"skip":1,"mimes":["video/mp4"],"context":"instream","protocols":[1,2,3,4,5,6,7,8],"playerSize":[320,180],"playbackmethod":[2]},"banner":{}},"bids":[{"bidder":"ix","params":{"siteId":"1045415"},"includeSchain":true}]}],"deviceSizes":[0,0]}],"adUnitPath":"/7753536/gnavi_SP_m.shop_AnyManagerVideo","adUnitId":244945,"divID":"ats-insert_video-27","divIDType":"QuerySelector"},"type":"prebid_only","active":false,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".*"},{"settings":{"lazyRendering":false,"aspectRatio":"16:9","adOutputFormat":"vast","playerMode":1,"sound":false,"divIDs":["ats-insert_video-27"],"maxHeight":null,"maxWidth":null,"thirdPartyVideoPlayerSettings":{"1":{"id":145850,"is_enabled":true,"frequency":100,"slot":null,"custom_css":null,"width":null,"type":1,"pub_key":"","site_key":"","max_height":null}},"videoSource":1,"amVideoFeed":{"mp4":{},"hls":{}},"youtubeButtonText":null,"youtubeChannelFeedUrl":"https://prod.video.anymanager.io/video/youtube_channel/UCrViSX3Pe8g0bXdALSgKPRw/feed/feed.json","scrollEffect":3,"anchorPosition":2,"customWrapperCss":".ats-insert-video-wrapper-left {bottom: 110px !important; z-index:10; left:10px;}\\n.ats-insert-video-wrapper-left > button {left: 0px;right: auto;}","insertPosition":"afterend","selector":".commonGlobalNav","targetType":"QuerySelector","adUnitPath":"/7753536/gnavi_SP_m.shop_AnyManagerVideo","adUnitId":244945,"sizeMappingGroup":[{"deviceSizes":[0,0],"sizes":[]}],"customVastParams":[],"autoAdUnitPaths":[],"enableAdAnchoredPlayback":true,"enablePlaylist":false,"removePlaylistCarousel":false,"selectedYoutubeVideos":[],"showTopStickyVideoCloseButton":false,"enableVastContinuousAds":false,"numberOfRepeatedAds":null},"type":"insert_video","active":false,"domainList":[],"filteringRule":"include","enableKeepingReferrer":false,"enableReferrerTargeting":false,"breakPoint":false,"device":"sp","regex":".*"},{"regex":"^(?=.*area).*$","device":"sp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n var settings = {\\n selector: \'#page > section:nth-child(5) > div.headline\',\\n insertPos: \'afterbegin\',\\n tagSrc: \'//go.trvdp.com/init/9160.js?pid=6588\',\\n width: \'320px\',\\n } \\n \\n function e() {\\n var insPos = l.querySelector(settings.selector);\\n if (!insPos) return;\\n \\n var wrapDiv = l.createElement(\'div\');\\n wrapDiv.className = \'ats-trvd-wrapper\';\\n wrapDiv.style.width = settings.width;\\n wrapDiv.style.cssText = \'padding-top: 52px; margin-left: auto; margin-right: auto; width: 320px;\';\\n var trvScript = l.createElement(\'script\');\\n trvScript.src = settings.tagSrc;\\n trvScript.type = \'text/javascript\';\\n trvScript.async = true;\\n trvScript.dataset.cfasync = \'false\';\\n wrapDiv.append(trvScript);\\n insPos.insertAdjacentElement(settings.insertPos, wrapDiv);\\n console.log(\'truvid tag inserted\');\\n }\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".trvdfloater{bottom: 100px !important;}"}},{"regex":"^(?=.*area).*$","device":"pc","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n!(function(l) {\\n var settings = {\\n selector: \'.container > section:nth-child(2) > div\',\\n insertPos: \'afterend\',\\n tagSrc: \'//go.trvdp.com/init/9160.js?pid=6588\',\\n width: \'640px\',\\n } \\n \\n function e() {\\n var insPos = l.querySelector(settings.selector);\\n if (!insPos) return;\\n \\n var wrapDiv = l.createElement(\'div\');\\n wrapDiv.className = \'ats-trvd-wrapper\';\\n wrapDiv.style.width = settings.width;\\n wrapDiv.style.margin = \'20px auto\';\\n var trvScript = l.createElement(\'script\');\\n trvScript.src = settings.tagSrc;\\n trvScript.type = \'text/javascript\';\\n trvScript.async = true;\\n trvScript.dataset.cfasync = \'false\';\\n wrapDiv.append(trvScript);\\n insPos.insertAdjacentElement(settings.insertPos, wrapDiv);\\n console.log(\'truvid tag inserted\');\\n }\\n if (\'loading\' !== l.readyState) e();\\n else l.addEventListener(\'DOMContentLoaded\', e);\\n})(document);\\n}catch(e){}","style":".trvdfloater{bottom: 100px !important;}\\n.ats-trvd-wrapper{\\n padding-bottom: 85px\\n }"}},{"regex":".*","device":"resp","breakPoint":false,"enableReferrerTargeting":false,"enableKeepingReferrer":false,"filteringRule":"include","domainList":[],"active":false,"type":"custom","settings":{"script":"try{\\n// 未加盟店用のJSファイル名 (部分一致でも可)\\nconst targetScriptName = \'non-member.js\'; // 例: 未加盟店用のファイル名\\n\\n// ページ上の全スクリプトを取得して確認\\nconst scripts = Array.from(document.scripts);\\nconst isNonMemberScriptLoaded = scripts.some(script => script.src.includes(targetScriptName));\\n\\n// 読み込まれている場合、GAMのkey-valueを送信\\nif (isNonMemberScriptLoaded) {\\n googletag.cmd.push(function() {\\n googletag.pubads().setTargeting(\'shop_status\', \'non-member\');\\n googletag.enableServices();\\n });\\n}\\n}catch(e){}","style":""}}],"information":{"env":"prod","buildDate":"2025-05-29T19:27:45.501Z","versions":{"ads":"3.1.323 ver3","pwa":"3.1.323","core":"3.1.323","bundler":"3.1.323"}},"amPrebidBidderMap":{"adg":22,"rubicon":5,"ix":13,"rtbhouse":6,"adagio":89,"logicad":12,"appnexus":23,"criteo":17,"ttd":115,"pubmatic":4,"unicorn":66,"medianet":61}}')}},__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)}})();