"use strict";(function(){var S=function(r,i){return function(){return r&&(i=r(r=0)),i}};var I=function(r,i){return function(){return i||r((i={exports:{}}).exports,i),i.exports}};var v=S(function(){});var m=S(function(){});var y=S(function(){});var w=S(function(){});var _=S(function(){});var b=S(function(){});var k=S(function(){});var E=S(function(){});var j=I(function(B){"use strict";v();m();y();w();_();b();k();E();Object.defineProperty(B,"__esModule",{value:!0});B.AdditionalWidget=B.ScriptUrlType=void 0;var q;(function(r){r.es5="es5",r.es6="es6"})(q||(B.ScriptUrlType=q={}));var K=(function(){function r(i,t){var e=this;if(this.additionalWidgets=i,this.urlType=t,this.additionalWidgets.length)for(var n=function(s){setTimeout(function(){e.init(e.additionalWidgets[s])},0)},o=0;o<this.additionalWidgets.length;o++)n(o)}return r.prototype.init=function(i){var t=this,e=i.widgetDivId?this.createWidgetDiv(i):null,n=this.createWidgetScript(i.urls[this.urlType]),o=i.insertTo||"before";this.waitForElement(i.searchSelector).then(function(s){var a;i.widgetDivId&&t.insertWidgetBlock(s,e,o),(a=window.performance)===null||a===void 0||a.mark("main_script_start_load",{detail:{_mgwidget:i.id}}),t.insertWidgetScript(n)})},r.prototype.createWidgetDiv=function(i){var t=document.createElement("div"),e=document.createElement("div"),n=i.widgetDivId;return t.classList.add("".concat(n,"-additional")),e.id=n,i.dataAttributes&&i.dataAttributes.forEach(function(o){e.dataset[o.name]=o.value}),t.appendChild(e),t},r.prototype.createWidgetScript=function(i){var t=document.createElement("script");return t.src=i,t.async=!0,t.crossOrigin="anonymous",t},r.prototype.insertWidgetBlock=function(i,t,e){switch(e){case"into":i.appendChild(t);break;case"before":var n=i.parentElement;n.insertBefore(t,i);break;case"after":i.insertAdjacentElement("afterend",t);break}},r.prototype.insertWidgetScript=function(i){document.head?document.head.appendChild(i):document.body.appendChild(i)},r.prototype.waitForElement=function(i){return new Promise(function(t){if(document.querySelector(i))return t(document.querySelector(i));var e=new MutationObserver(function(){document.querySelector(i)&&(t(document.querySelector(i)),e.disconnect())});e.observe(document,{childList:!0,subtree:!0})})},r})();B.AdditionalWidget=K});var H=I(function(U){"use strict";v();m();y();w();_();b();k();E();Object.defineProperty(U,"__esModule",{value:!0});U.AppUtilsBlock=void 0;var $=(function(){function r(i){this.isMobileResult=null,this.agent=navigator.userAgent||navigator.vendor||window.opera||"",this.controller=i||null,this.isStorageAvailable=this.checkStorageAvailable()}return r.prototype.isMobile=function(){if(this.isMobileResult===null){var i=!1;(function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(i=!0)})(this.agent),this.isMobileResult=i}return this.isMobileResult},r.prototype.isTablet=function(){return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.agent.toLowerCase())},r.prototype.isIosFBWebview=function(){var i=this.agent.toLowerCase();return i.indexOf("apple")>-1&&i.indexOf("iphone")>-1&&i.indexOf("webkit")>-1&&(i.indexOf("fban")>-1||i.indexOf("fbav")>-1)&&i.indexOf("safari")===-1&&i.indexOf("firefox")===-1&&i.indexOf("chrome")===-1},r.prototype.isIosWebview=function(){var i=this.agent||"",t=/iPad|iPhone|iPod/.test(i),e=/Safari/.test(i);return t&&!e},r.prototype.isFBAndroid=function(){return(this.agent.indexOf("FBAN")>-1||this.agent.indexOf("FBAV")>-1)&&this.agent.indexOf("Android")>-1},r.prototype.isChromeWebView=function(){var i=["WebView","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+i.join("|")+")","ig");return!!this.agent.match(t)},r.prototype.isObject=function(i){return i!==null&&i.constructor===Object},r.prototype.isSupportES6=function(){try{return new Function("async (x=0)=> x; try {const x=window?.x;} catch {};"),!0}catch(i){return!1}},r.prototype.generateHash=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)},r.prototype.getSingleJsController=function(i){var t,e,n;return this.controller||((n=(e=((t=window._mgc)===null||t===void 0?void 0:t.controllers)||[])===null||e===void 0?void 0:e.filter(function(o){return o.siteId===i})[0])===null||n===void 0?void 0:n.controller)},r.prototype.isLoadWithAbTest=function(i){var t=Number(i),e=Math.random(),n=(100-t)/2/100;return e>n&&e<1-n},r.prototype.isAdblockDetectedByDOM=function(){if(!window._mgAdbDetected){var i=["banner_ad","sponsored_ad"],t=document.body||document.documentElement,e=function(s){var a=document.createElement("div");return a.className=s,a.style.setProperty("display","block","important"),a.style.setProperty("padding","1px","important"),a.style.visibility="hidden",a.style.position="absolute",a.innerHTML=".",t.appendChild(a),a},n=function(s){return!s.offsetHeight},o=function(s){for(var a=null,l=0;l<s.length;l++){a=e(s[l]);var d=n(a);if(t.removeChild(a),d)return!0}return!1};window._mgAdbDetected=o(i)}return window._mgAdbDetected},r.prototype.getQueryParameterByName=function(i){i=i.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]"+i+"(=([^&#]*)|&|#|$)"),e=t.exec(location.href);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null},r.prototype.getSiteElement=function(i){return i.document.head||i.document.body||i.document.documentElement},r.prototype.checkStorageAvailable=function(){try{var i=window.localStorage,t="__storage_test__";return i.setItem(t,t),i.removeItem(t),!0}catch(e){return!1}},r})();U.AppUtilsBlock=$});var V=I(function(O){"use strict";v();m();y();w();_();b();k();E();var Q=O&&O.__extends||(function(){var r=function(i,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},r(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();Object.defineProperty(O,"__esModule",{value:!0});O.ReadMoreButton=void 0;var Z=H(),F;(function(r){r.load="load",r.impression="impression",r.click="click"})(F||(F={}));var tt=(function(r){Q(i,r);function i(t){var e=r.call(this)||this;return e.name="ReadMoreButton",e.options=t,e.button=null,e.widgetData=null,Array.isArray(e.options.excludeCountries)&&e.options.excludeCountries.length?e.checkFilters():e.init(),e}return i.prototype.checkFilters=function(){var t=this;typeof fetch=="function"&&typeof this.options.singleJsUrl!="undefined"&&fetch(this.options.singleJsUrl,{method:"HEAD",cache:"force-cache"}).then(function(e){var n,o,s=(o=(n=e.headers)===null||n===void 0?void 0:n.get("X-Cntry"))===null||o===void 0?void 0:o.toLowerCase();s?t.options.excludeCountries.some(function(a){return a.toLowerCase()===s})?console.log("".concat(t.name,": the block didn't pass the filtering conditions.")):t.init():console.log("".concat(t.name,": X-Cntry didn't found."))}).catch(function(e){console.error("".concat(t.name,": fetch error "),e)})},i.prototype.init=function(){var t;!((t=this.options)===null||t===void 0)&&t.abTest?this.isLoadWithAbTest(this.options.abTest)&&(window["_mgRMB"+this.options.siteId]=!0,this.load()):this.load()},i.prototype.load=function(){typeof window.rmbOpts=="undefined"&&(window.rmbOpts=this.options,this.addReadMoreButton(),this.detectReadMoreButton())},i.prototype.addReadMoreButton=function(){var t=this.getSiteElement(window),e=document.createElement("script"),n="//".concat(this.options.cdnDomain,"/js/read-more/btn.js");e.async=!0,e.src=n,e.setAttribute("fetchpriority","high"),t.insertAdjacentElement("afterbegin",e),this.sendEvent(F.load)},i.prototype.detectReadMoreButton=function(){var t=this,e=void 0;e=setInterval(function(){t.button=document.querySelector("button.widget-btn"),t.button&&(clearInterval(e),t.startEvents())},100)},i.prototype.startEvents=function(){var t=this;if(this.button.addEventListener("click",function(){t.sendEvent(F.click),typeof t.options.widgetId!="undefined"&&t.insertWidget()}),IntersectionObserver){var e=new IntersectionObserver(function(n){n.forEach(function(o){o.intersectionRatio>=.9&&(e.unobserve(o.target),t.sendEvent(F.impression))})},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});e.observe(this.button)}},i.prototype.sendEvent=function(t){var e=encodeURIComponent(document.location.href),n="\n      https://".concat(this.options.countersDomain,"/rmb?site_id=").concat(this.options.siteId,"&page_url=").concat(e,"&event=").concat(t);this.widgetData=this.widgetData||this.getWidgetData(),this.widgetData&&(n+="&widget_id=".concat(this.widgetData.id,"&distance=").concat(this.widgetData.distance));var o=document.createElement("IMG");o.referrerPolicy="strict-origin-when-cross-origin",o.src=n},i.prototype.getWidgetData=function(){var t=this;if(!this.button)return null;var e=[].slice.call(document.querySelectorAll('[data-type="_mgwidget"], [id^="M'.concat(this.options.siteId,'ScriptRootC"]'))).filter(function(n){return!!(t.button.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}).map(function(n){return{id:n.dataset.widgetId||n.id.match(/C(\d+)/)[1],distance:n.getBoundingClientRect().top-t.button.getBoundingClientRect().bottom}});return e.length?e.reduce(function(n,o){return o.distance<n.distance?o:n},e[0]):null},i.prototype.insertWidget=function(){var t=this.getSingleJsController(this.options.siteId),e=document.createElement("div");e.dataset.type="_mgwidget",e.dataset.widgetId=String(this.options.widgetId),e.dataset.rmb="true",t&&(document.body.appendChild(e),t.load())},i})(Z.AppUtilsBlock);O.ReadMoreButton=tt});var J=I(function(P){"use strict";v();m();y();w();_();b();k();E();var G=P&&P.__assign||function(){return G=Object.assign||function(r){for(var i,t=1,e=arguments.length;t<e;t++){i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])}return r},G.apply(this,arguments)};Object.defineProperty(P,"__esModule",{value:!0});P.PerformanceTracker=void 0;var et={main_script_start_load:{flow:"widget_lifecycle",step:10},main_script_start_work:{flow:"widget_lifecycle",step:20},ssp_request_start:{flow:"widget_lifecycle",step:30},ssp_response:{flow:"widget_lifecycle",step:40},render_finish:{flow:"widget_lifecycle",step:50},teaser_impression:{flow:"widget_lifecycle",step:100},teaser_click_started:{flow:"teaser_click",step:10},teaser_click_finished:{flow:"teaser_click",step:20},widget_error:{flow:"widget_error",step:10},alive_0:{flow:"bounce_rate",step:10},alive_1000:{flow:"bounce_rate",step:20},alive_2000:{flow:"bounce_rate",step:30},alive_5000:{flow:"bounce_rate",step:40},alive_10000:{flow:"bounce_rate",step:50},alive_30000:{flow:"bounce_rate",step:60},alive_60000:{flow:"bounce_rate",step:70},render_banner_widget:{flow:"render_banner_widget",step:10}},it=new Set(["_mgwidget","flow","step","metric"]),nt=(function(){function r(i,t){var e=this,n,o;if(this.widgetContexts=new Map,!!window.PerformanceObserver&&!(Math.random()*100>t.samplingRate)){this.trackerDomain=i,this.samplingRate=t.samplingRate,this.defaultClientId=(n=t.clientId)!==null&&n!==void 0?n:0,this.defaultSiteId=(o=t.siteId)!==null&&o!==void 0?o:0;var s=new PerformanceObserver(function(a,l){a.getEntries().forEach(function(d){var p=e.preparePayload(d);p&&e.sendMetric(p.clientId,p.siteId,p.widgetId,p.flow,p.step,p.metric,p.time,p.pvid,p.rid,p.details)})});s.observe({entryTypes:["mark"]})}}return r.prototype.setWidgetContext=function(i,t){var e=this.widgetContexts.get(i)||{};this.widgetContexts.set(i,G(G({},e),t))},r.prototype.sendMetric=function(i,t,e,n,o,s,a,l,d,p){var f="https://"+this.trackerDomain+"/widget-performance?",u=[];u.push(this.encodeParam("client",i)),u.push(this.encodeParam("site",t)),u.push(this.encodeParam("widget",e)),u.push(this.encodeParam("flow",n)),u.push(this.encodeParam("step",o)),u.push(this.encodeParam("metric",s)),u.push(this.encodeParam("time",a)),u.push(this.encodeParam("sampling_rate",this.samplingRate)),u.push(this.encodeParam("pvid",l)),u.push(this.encodeParam("rid",d)),u.push(this.encodeParam("details",p));try{var h=navigator.connection||navigator.mozConnection||navigator.webkitConnection;typeof h.effectiveType!="undefined"&&u.push(this.encodeParam("contype",h.effectiveType))}catch(g){}if(f+=u.join("&"),typeof navigator.sendBeacon=="function")try{navigator.sendBeacon(f)}catch(g){this.pixelFallback(f)}else this.pixelFallback(f)},r.prototype.pixelFallback=function(i){var t=document.createElement("IMG");t.src=i},r.prototype.preparePayload=function(i){var t,e,n,o,s=this.getDetail(i);if(!("_mgwidget"in s))return null;var a=parseInt(String(s._mgwidget||""),10)||0,l=et[i.name],d=this.getStringValue(s.flow)||(l==null?void 0:l.flow)||"",p=this.getNumberValue(s.step)||(l==null?void 0:l.step)||0,f=this.getStringValue(s.metric)||i.name,u=this.widgetContexts.get(a)||{},h=this.collectDetails(s);return{clientId:(t=u.clientId)!==null&&t!==void 0?t:this.defaultClientId,siteId:(e=u.siteId)!==null&&e!==void 0?e:this.defaultSiteId,widgetId:a,flow:d,step:p,metric:f,time:i.startTime,pvid:(n=u.pvid)!==null&&n!==void 0?n:"",rid:(o=u.rid)!==null&&o!==void 0?o:"",details:h}},r.prototype.collectDetails=function(i){for(var t={},e=0,n=Object.keys(i);e<n.length;e++){var o=n[e];it.has(o)||(t[o]=i[o])}return Object.keys(t).length>0?JSON.stringify(t):""},r.prototype.getDetail=function(i){return i.detail&&typeof i.detail=="object"?i.detail:{}},r.prototype.getStringValue=function(i){return typeof i=="string"?i:typeof i=="number"?String(i):""},r.prototype.getNumberValue=function(i){var t=Number(i);return Number.isFinite(t)?t:0},r.prototype.encodeParam=function(i,t){return encodeURIComponent(i)+"="+encodeURIComponent(String(t))},r})();P.PerformanceTracker=nt});var X=I(function(T){"use strict";v();m();y();w();_();b();k();E();var ot=T&&T.__extends||(function(){var r=function(i,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])},r(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),x=T&&T.__assign||function(){return x=Object.assign||function(r){for(var i,t=1,e=arguments.length;t<e;t++){i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])}return r},x.apply(this,arguments)};Object.defineProperty(T,"__esModule",{value:!0});T.BackButtonBlock=T.ClassName=void 0;var z=j(),at=H(),c;(function(r){r.startedPage="mg-started-page",r.additionalPage="mg-additional-page",r.container="mg-additional-container",r.header="mg-additional-header",r.headerAdded="mg-header-added",r.popup="mg-additional-popup",r.popupInner="mg-additional-popup-inner",r.popupText="mg-additional-popup-text",r.popupTriangle="mg-additional-popup-triangle",r.popupCloseBtn="mg-additional-popup-close-btn",r.popupAdded="mg-popup-added",r.popupShowed="mg-popup-showed",r.popupClosed="mg-popup-closed",r.crossButtonContainer="mg-additional-cross-button",r.crossButton="mg-cross-button"})(c||(T.ClassName=c={}));var rt=(function(r){ot(i,r);function i(t,e){var n,o,s,a=r.call(this,e)||this;if(a.startedPage="_mgStartedPage",a.additionalPage="_mgAdditionalPage",a.storageStartUrl="_mgStartUrl",a.storagePopupCloseTime="_mgPopupCloseTime",a.storagePagesList="_mgStartPagesList",a.servicerFiltersData="_mgServicerFiltersData",a.name="BackButtonBlock",a.options=t,a.lastUrl="",a.hashOverlayChainActive=!1,typeof window[a.servicerFiltersData]=="undefined"){window[a.servicerFiltersData]={},a.widgetId=Number(a.options.widget_id),a.widgetContainerSelector="M".concat(a.options.siteId,"ScriptRootC").concat(a.widgetId,"-additional"),a.hasFilters=!!(!((o=(n=a.options)===null||n===void 0?void 0:n.filters)===null||o===void 0)&&o.length),a.isAggressiveMode=(s=a.options)===null||s===void 0?void 0:s.aggressive_mode,a.initialEvent=typeof onpointerdown=="undefined"?"click":"pointerdown",a.pointerHandler=a.pointerHandler.bind(a),a.hashChangeHandler=a.hashChangeHandler.bind(a);try{typeof sessionStorage!="undefined"&&(a.hasFilters?a.checkFilters():a.start())}catch(l){console.log("".concat(a.name,": sessionStorage not available."),l)}}return a}return i.prototype.checkGeoFilters=function(){var t=this,e,n,o,s=(o=(n=(e=this.options)===null||e===void 0?void 0:e.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="exclude_countries"})[0])===null||o===void 0?void 0:o.value,a=this.options.singleJsUrl||(this.isSupportES6()?this.options.widgetPathES6:this.options.widgetPathES5);return new Promise(function(l){s&&s.length?typeof fetch=="function"&&typeof a=="string"&&fetch(a,{method:"HEAD",cache:"force-cache"}).then(function(d){var p,f,u=(f=(p=d.headers)===null||p===void 0?void 0:p.get("X-Cntry"))===null||f===void 0?void 0:f.toLowerCase();u?s.some(function(h){return h.toLowerCase()===u})?console.log("".concat(t.name,": the block didn't pass GEO filtering conditions.")):l():console.log("".concat(t.name,": header X-Cntry didn't found."))}).catch(function(d){console.log("".concat(t.name,": fetch error."),d)}):l()})},i.prototype.checkDeviceFilters=function(){var t=this,e,n,o,s,a=(o=(n=(e=this.options)===null||e===void 0?void 0:e.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="device"})[0])===null||o===void 0?void 0:o.value;return new Promise(function(l){a&&a.length?s=setInterval(function(){if(typeof window[t.servicerFiltersData].device!="undefined"){clearInterval(s);var d=window[t.servicerFiltersData].device.toLowerCase();a.some(function(p){return p.toLowerCase()===d})?l():console.log("".concat(t.name,": the block didn't pass Device filtering conditions."))}},250):l()})},i.prototype.checkTrafficSourceFilters=function(){var t=this,e,n,o,s,a=(o=(n=(e=this.options)===null||e===void 0?void 0:e.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="traffic_source"})[0])===null||o===void 0?void 0:o.value;return new Promise(function(l){a&&a.length?s=setInterval(function(){if(typeof window[t.servicerFiltersData].trafficSource!="undefined"){clearInterval(s);var d=window[t.servicerFiltersData].trafficSource.toLowerCase();a.some(function(p){return p.toLowerCase().indexOf(d)!==-1})?l():console.log("".concat(t.name,": the block didn't pass Traffic Source filtering conditions."))}},250):l()})},i.prototype.checkTrafficTypeFilters=function(){var t=this,e,n,o,s,a=(o=(n=(e=this.options)===null||e===void 0?void 0:e.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="traffic_type"})[0])===null||o===void 0?void 0:o.value;return new Promise(function(l){a&&a.length?s=setInterval(function(){if(typeof window[t.servicerFiltersData].trafficType!="undefined"){clearInterval(s);var d=window[t.servicerFiltersData].trafficType.toLowerCase();a.some(function(p){return p.toLowerCase()===d})?l():console.log("".concat(t.name,": the block didn't pass Traffic Type filtering conditions."))}},250):l()})},i.prototype.checkFilters=function(){var t=this;Promise.all([this.checkGeoFilters(),this.checkDeviceFilters(),this.checkTrafficSourceFilters(),this.checkTrafficTypeFilters()]).then(function(){t.start()})},i.prototype.start=function(){var t=this,e,n,o,s=void 0,a=420*1e3,l=new Date().getTime(),d=null;if(!((n=(e=window==null?void 0:window.performance)===null||e===void 0?void 0:e.getEntriesByType("navigation"))===null||n===void 0)&&n.length?d=window.performance.getEntriesByType("navigation")[0]:!((o=window==null?void 0:window.performance)===null||o===void 0)&&o.timing&&(d=window.performance.timing),d!=null&&d.loadEventEnd&&d.loadEventEnd>0){this.startEvents();return}s=setInterval(function(){if(new Date().getTime()-l>=a){clearInterval(s),console.log("".concat(t.name,": didn't load, too long site page loading process."));return}d!=null&&d.loadEventEnd&&d.loadEventEnd>0&&(clearInterval(s),t.startEvents())},150)},i.prototype.startEvents=function(){this.siteBody=document.body||document.documentElement,this.lastUrl=document.location.href;var t=history.state,e=this.getStartedUrl(),n=document.location.href,o=this.isAggressiveMode?this.hasStoragePage(n):e===n;o&&this.isObject(t)&&Object.prototype.hasOwnProperty.call(t,this.additionalPage)&&typeof window[this.additionalPage]=="undefined"&&(window[this.additionalPage]=!0,this.buildAdditionalPage(),this.showAdditionalPage()),this.siteBody.addEventListener(this.initialEvent,this.pointerHandler),window.addEventListener("hashchange",this.hashChangeHandler.bind(this)),window.addEventListener("popstate",this.popstateHandler.bind(this))},i.prototype.hashChangeHandler=function(){var t=document.location.href,e=this.isSameDocumentNavigation(this.lastUrl,t);e&&(this.hasHash(this.lastUrl)||this.hasHash(t))&&(this.hashOverlayChainActive=!0),this.lastUrl=t},i.prototype.pointerHandler=function(){this.siteBody.removeEventListener(this.initialEvent,this.pointerHandler);var t=document.location.href;if(this.isAggressiveMode){var e=this.hasStoragePage(t);e||(this.setStoragePage(t),this.pushHistoryState())}else{var n=this.getStartedUrl();n||(this.setStartedUrl(t),this.pushHistoryState())}},i.prototype.popstateHandler=function(t){var e,n,o=((n=(e=t.target)===null||e===void 0?void 0:e.history)===null||n===void 0?void 0:n.state)||t.state,s=this.getStartedUrl(),a=document.location.href,l=this.isStateSatisfy(o),d=this.isAggressiveMode?this.hasStoragePage(a):s===a;if(this.shouldSkipOverlayPopstate(a,l)){this.lastUrl=a;return}if(d&&l&&typeof window[this.additionalPage]=="undefined"){window[this.additionalPage]=!0,this.replaceHistoryState(),this.buildAdditionalPage(),this.showAdditionalPage(),this.lastUrl=a;return}this.isObject(o)&&(!d&&!Object.prototype.hasOwnProperty.call(o,this.additionalPage)&&!Object.prototype.hasOwnProperty.call(o,this.startedPage)&&this.showRegularPage(),Object.prototype.hasOwnProperty.call(o,this.startedPage)&&this.showStartedPage(),Object.prototype.hasOwnProperty.call(o,this.additionalPage)&&this.showAdditionalPage()),this.lastUrl=a},i.prototype.isStateSatisfy=function(t){return t===null||t===""||this.isObject(t)&&!Object.prototype.hasOwnProperty.call(t,this.startedPage)&&!Object.prototype.hasOwnProperty.call(t,"flowcards")},i.prototype.shouldSkipOverlayPopstate=function(t,e){var n=this.isHashOnlyNavigation(this.lastUrl,t),o=this.isSameDocumentNavigation(this.lastUrl,t);return o&&e&&this.hashOverlayChainActive?(this.hasHash(t)||(this.hashOverlayChainActive=!1),!0):n&&e?(this.hashOverlayChainActive=!0,!0):!1},i.prototype.isHashOnlyNavigation=function(t,e){if(!t||!e||t===e)return!1;try{var n=new URL(t,document.location.origin),o=new URL(e,document.location.origin);return n.pathname===o.pathname&&n.search===o.search&&n.hash!==o.hash}catch(s){return!1}},i.prototype.isSameDocumentNavigation=function(t,e){if(!t||!e)return!1;try{var n=new URL(t,document.location.origin),o=new URL(e,document.location.origin);return n.pathname===o.pathname&&n.search===o.search}catch(s){return!1}},i.prototype.hasHash=function(t){if(!t)return!1;try{return!!new URL(t,document.location.origin).hash}catch(e){return!1}},i.prototype.pushHistoryState=function(){var t,e=history.state,n=(t={},t[this.startedPage]=!0,t),o=document.location;if(e===null||e==="")(this.isIosFBWebview()||this.isFBAndroid())&&!o.hash?history.pushState(n,"",o.href+"#"+this.generateHash()):history.pushState(n,"","");else if(this.isObject(e)){var s=x(x({},e),n);(this.isIosFBWebview()||this.isFBAndroid())&&!o.hash?history.pushState(s,"",o.href+"#"+this.generateHash()):history.pushState(s,"","")}else console.log("".concat(this.name,": client also uses history.state and its not an object, so module will not work."))},i.prototype.replaceHistoryState=function(){var t,e=history.state,n=(t={},t[this.additionalPage]=!0,t);e===null||e===""?history.replaceState(n,"",""):this.isObject(e)?history.replaceState(x(x({},e),n),"",""):console.log("".concat(this.name,": client also uses history.state and its not an object, so module will not work."))},i.prototype.buildAdditionalPage=function(){var t,e,n,o,s,a=(e=(t=this.options)===null||t===void 0?void 0:t.display)===null||e===void 0?void 0:e.some(function(f){return f.type==="header"}),l=(o=(n=this.options)===null||n===void 0?void 0:n.display)===null||o===void 0?void 0:o.some(function(f){return f.type==="banner"}),d=((s=this.options)===null||s===void 0?void 0:s.cross_button)||!1,p=document.createElement("div");p.classList.add(c.container),p.style.display="none",this.siteBody.appendChild(p),this.styles="\n      body.".concat(c.additionalPage," > *:not(.").concat(c.container,"),\n      html.").concat(c.additionalPage," > *:not(.").concat(c.container,"){\n        display: none !important;\n      }\n      body.").concat(c.additionalPage," .").concat(c.container,",\n      html.").concat(c.additionalPage," .").concat(c.container," {\n        display: block !important;\n      }\n      body.").concat(c.startedPage," .").concat(c.container,",\n      html.").concat(c.startedPage," .").concat(c.container," {\n        display: none !important;\n      }\n      body.").concat(c.additionalPage,",\n      html.").concat(c.additionalPage," {\n        padding-top: 0 !important;\n        margin-top: 0 !important;\n        transform: none !important;\n      }\n      .").concat(c.container," {display: none;margin: 0 auto;box-sizing: border-box;\n        padding: 15px 10px;width: 100%;max-width: 1100px;background: #fff;}\n    "),a&&this.insertHeader(p),d&&this.insertCrossButton(p),l&&this.insertPopup(p),(d||l)&&this.changeSize(p),this.addingStyles(p),this.addingWidget(p)},i.prototype.insertHeader=function(t){var e,n,o=((n=(e=this.options.display.filter(function(d){return d.type==="header"})[0])===null||e===void 0?void 0:e.options)===null||n===void 0?void 0:n.selector)||"header",s=document.querySelector(o);if(s){var a=getComputedStyle(s),l=s.cloneNode(!0);l.classList.add(c.header),t.classList.add(c.headerAdded),t.appendChild(l),this.styles=this.styles+".".concat(c.container,".").concat(c.headerAdded," {padding: 0 !important;}\n        .").concat(c.header," {margin-bottom: 10px !important;z-index: 9999999 !important;}\n        .").concat(c.container,".").concat(c.headerAdded," div[class=").concat(this.widgetContainerSelector,"] {\n        padding: 0 10px;box-sizing: border-box;}"),!this.isMobile()&&!this.isTablet()&&(t.style.maxWidth=a.width),a.position==="fixed"&&(l.style.maxWidth="100%",l.style.top="0px",l.style.zIndex="9999999",t.style.setProperty("padding-top",a.height,"important"))}},i.prototype.insertCrossButton=function(t){var e=this,n=27,o=document.createElement("div");o.classList.add(c.crossButtonContainer);var s=document.createElement("div");s.classList.add(c.crossButton),s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" \n      xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" \n      width="'.concat(n,'px" height="').concat(n,'px" viewBox="0 0 43 40" enable-background="new 0 0 43 40" \n      xml:space="preserve"><path fill="#4C4C4C" d="M21.5,2c-9.941,0-18,8.06-18,18.001c0,9.941,8.059,18,\n      18,18s18-8.059,18-18C39.5,10.059,31.441,2,21.5,2z"></path><path fill="#FFFFFF" d="M30.076,24.07c0.564,\n      0.564,0.564,1.482,0,2.047l-2.459,2.459c-0.564,0.564-1.48,0.564-2.047,0l-4.07-4.07  \n      l-4.07,4.07c-0.566,0.564-1.482,0.564-2.051,0l-2.455-2.459c-0.566-0.564-0.566-1.482,\n      0-2.047l4.07-4.07l-4.07-4.071  c-0.566-0.565-0.566-1.482,0-2.049l2.455-2.455c0.568-0.566,\n      1.484-0.566,2.051,0l4.07,4.07l4.07-4.07  c0.566-0.566,1.482-0.566,2.047,0l2.459,2.455c0.564,\n      0.566,0.564,1.483,0,2.049L26.006,20L30.076,24.07z"></path></svg>'),this.styles=this.styles+".".concat(c.crossButtonContainer," {display: block !important;\n      margin: 10px auto !important;} .").concat(c.crossButton," {display: block !important;\n      width: ").concat(n,"px !important;height: ").concat(n,"px !important;max-width: ").concat(n,"px !important;\n      max-height: ").concat(n,"px !important;cursor: pointer;border-radius: 50%;overflow: hidden;\n      margin-left: auto;} .").concat(c.crossButton," svg {max-width: ").concat(n,"px !important; \n      max-height: ").concat(n,"px !important;}"),t.appendChild(o),o.appendChild(s),s.addEventListener("click",function(){history.back(),e.showStartedPage()})},i.prototype.insertPopup=function(t){var e=this,n,o=this.isStorageAvailable?localStorage.getItem(this.storagePopupCloseTime):null,s=1440*60*1e3,a=o&&new Date().getTime()-Number(o)>=s;if(!o||a){var l=(n=this.options.display.filter(function(g){return g.type==="banner"})[0])===null||n===void 0?void 0:n.options,d=(l==null?void 0:l.bg_color)||"#0279f5",p=(l==null?void 0:l.text_color)||"#ffffff",f=(l==null?void 0:l.text)||this.getTranslation("[INFORMER_BACK_BUTTON_BANNER_TEXT]"),u=document.createElement("div");u.classList.add(c.popup),t.classList.add(c.popupAdded),u.innerHTML='<div class="'.concat(c.popupInner,'">\n        <div class="').concat(c.popupText,'">').concat(f,'</div><div class="').concat(c.popupTriangle,'"></div>\n        <div class="').concat(c.popupCloseBtn,'"><svg width="11" height="11" viewBox="0 0 11 11">\n        <path fill="').concat(p,'" fill-rule="evenodd" d="M10.34.038L5.5 4.878.66.038.038.66l4.84 \n        4.84-4.84 4.84.622.622 4.84-4.84 4.84 4.84.622-.622-4.84-4.84 4.84-4.84z"></path></svg></div></div>'),t.appendChild(u),this.styles=this.styles+".".concat(c.popup," {display: block;margin: 0 auto;width: 100%;\n        height: 50px;overflow: hidden;position: relative;z-index: 999999;}\n        .").concat(c.popupInner," {position: relative;display: flex;align-items: center;\n        justify-content: space-between;margin: 0 auto;width: 100%;height: 40px;text-align: center;\n        transition: all 0.7s ease;opacity: 0;transform: translateY(-150px);background: ").concat(d,";}\n        .").concat(c.popup,".").concat(c.popupShowed," .").concat(c.popupInner," {transform: translateY(0px);\n        opacity: 1;}.").concat(c.popup,".").concat(c.popupClosed," .").concat(c.popupInner," {\n        display: none;}.").concat(c.popup,".").concat(c.popupClosed," {z-index: -1;}\n        .").concat(c.popupText," {box-sizing: border-box;padding: 10px;width: 100%;height: 100%;\n        display: flex;align-items: center;justify-content: center;font-family: Helvetica, Arial, sans-serif;\n        font-size: 16px;line-height: 1;font-weight: 400;color: ").concat(p,";}\n        .").concat(c.popupTriangle," {display: block;position: absolute;bottom: -10px;left: 50%;\n        transform: translateX(-50%);width: 0;height: 0;border-left: 12px solid transparent;\n        border-right: 12px solid transparent;border-top: 12px solid;color: ").concat(d,";}\n        .").concat(c.popupCloseBtn," {display: flex;align-items: center;justify-content: center;\n        width: 15px;height: 15px;margin-right: 10px;color: ").concat(p,";cursor: pointer;}\n        .").concat(c.container,".").concat(c.popupAdded," div[class=").concat(this.widgetContainerSelector,"] {\n        margin-top: -40px;}@media (max-width: 480px){.").concat(c.popupText," {font-size: 13px;}}");var h=document.querySelector(".".concat(c.popupCloseBtn));h&&h.addEventListener("click",function(){u.classList.add(c.popupClosed),e.isStorageAvailable&&localStorage.setItem(e.storagePopupCloseTime,String(new Date().getTime()))})}},i.prototype.changeSize=function(t){var e=this,n=t.querySelector(".".concat(c.popup)),o=t.querySelector(".".concat(c.crossButtonContainer)),s=void 0,a=90*1e3,l=new Date().getTime();s=setInterval(function(){if(new Date().getTime()-l>=a){clearInterval(s),console.log("".concat(e.name,": additional Smart widget didn't load."));return}var d=t.querySelector("div[class=".concat(e.widgetContainerSelector,"]"));if(d&&d.children.length){var p=d.children[0],f=void 0,u;if(p.shadowRoot&&p.shadowRoot.children.length?f=p.shadowRoot.children:p.children.length&&(f=p.children),f!=null&&f.length&&[].slice.call(f).forEach(function(g){g.getElementsByClassName("mgbox")[0]&&(u=g.getElementsByClassName("mgbox")[0])}),u){clearInterval(s);var h=getComputedStyle(u).width;n&&(n.style.maxWidth=h,n.classList.add(c.popupShowed)),o&&(o.style.maxWidth=h),window.addEventListener("resize",function(){n&&(n.style.maxWidth=getComputedStyle(u).width),o&&(o.style.maxWidth=getComputedStyle(u).width)})}}},150)},i.prototype.addingStyles=function(t){var e=document.createElement("style");e.setAttribute("id","mgAdditionalStyles"),e.appendChild(document.createTextNode(this.styles)),t.appendChild(e)},i.prototype.addingWidget=function(t){var e=this;if(this.options.singleJsUrl){var n=this.getSingleJsController(this.options.siteId),o=document.createElement("div"),s=document.createElement("div");s.dataset.type="_mgwidget",s.dataset.widgetId=String(this.widgetId),s.dataset.typeStory="true",o.classList.add(this.widgetContainerSelector),o.appendChild(s),t.appendChild(o),n&&n.load()}else new z.AdditionalWidget([{id:this.widgetId,urls:{es5:this.options.widgetPathES5.split(".").map(function(a,l,d){return l===d.length-3?e.widgetId:a}).join("."),es6:this.options.widgetPathES6.split(".").map(function(a,l,d){return l===d.length-3?e.widgetId:a}).join(".")},widgetDivId:"M".concat(this.options.siteId,"ScriptRootC").concat(this.widgetId),searchSelector:".".concat(c.container),insertTo:"into",dataAttributes:[{name:"typeStory",value:"true"}]}],this.isSupportES6()?z.ScriptUrlType.es6:z.ScriptUrlType.es5)},i.prototype.showAdditionalPage=function(){this.siteBody.classList.remove(c.startedPage),this.siteBody.classList.add(c.additionalPage)},i.prototype.showStartedPage=function(){this.siteBody.classList.remove(c.additionalPage),this.siteBody.classList.add(c.startedPage)},i.prototype.showRegularPage=function(){this.siteBody.classList.remove(c.startedPage),this.siteBody.classList.remove(c.additionalPage)},i.prototype.getStartedUrl=function(){return this.isStorageAvailable?sessionStorage.getItem(this.storageStartUrl):null},i.prototype.setStartedUrl=function(t){this.isStorageAvailable&&sessionStorage.setItem(this.storageStartUrl,t)},i.prototype.hasStoragePage=function(t){var e=this.isStorageAvailable?JSON.parse(sessionStorage.getItem(this.storagePagesList))||[]:[];return e.some(function(n){return n===t})},i.prototype.setStoragePage=function(t){var e=this.isStorageAvailable?JSON.parse(sessionStorage.getItem(this.storagePagesList))||[]:[];e.push(t),this.isStorageAvailable&&sessionStorage.setItem(this.storagePagesList,JSON.stringify(e))},i.prototype.getTranslation=function(t){var e=this.options.translations;return t.search(/^\[\S*\]$/g)===0?e[t]?e[t]:"":t},i})(at.AppUtilsBlock);T.BackButtonBlock=rt});var st=I(function(Y){v();m();y();w();_();b();k();E();Object.defineProperty(Y,"__esModule",{value:!0});var ye=j(),we=V(),_e=J(),be=X();(function(){var r=n(),i=r?"https://jsc.mgid.com/x/p/xposeindonesia.com.1418685.es6.js":"https://jsc.mgid.com/x/p/xposeindonesia.com.1418685.es5.js";a(),p(i),s(),l();for(var t=["https://servicer.mgid.com"],e=0;e<t.length;e++)o(t[e]);function n(){try{return new Function("async (x=0)=> x; try {const x=window?.x;} catch {};"),!0}catch(u){return!1}}function o(u){var h=document.createElement("link");h.rel="preconnect",h.href=u,document.head?document.head.appendChild(h):document.body.appendChild(h)}function s(){var u=JSON.parse("[]")}function a(){if(0)var u}function l(){if(0)var u}function d(u){}function p(u){var h,g=document.createElement("script");g.async=!0,g.charset="utf-8",g.src=u,g.crossOrigin="anonymous",(h=window.performance)===null||h===void 0||h.mark("main_script_start_load",{detail:{_mgwidget:1418685}}),document.head?document.head.appendChild(g):document.body.appendChild(g)}function f(){[0,1e3,2e3,5e3,1e4,3e4,6e4].forEach(function(u){setTimeout(function(){var h;(h=window.performance)===null||h===void 0||h.mark("alive_".concat(u),{detail:{_mgwidget:1418685}})},u)})}})()});st();})();