(self.AMP=self.AMP||[]).push({m:0,v:"2504091801000",n:"amp-auto-ads",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function i(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,r)}return i}function r(t){for(var r=1;rt.length)&&(n=t.length);for(var i=0,r=new Array(n);i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=function(){var t=this;this.promise=new Promise((function(n,i){t.resolve=n,t.reject=i}))};function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,n){if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var l=Array.isArray;function d(t,n){var i=t.length-n.length;return i>=0&&t.indexOf(n,i)==i}var v=Object.prototype,p=(v.hasOwnProperty,v.toString);function m(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function g(t,n,i,r,e,u,o,a,c,s,f){return t}function b(t){return JSON.parse(t)}var y=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function w(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function S(t){var n,i=m();if(!t)return i;for(;n=y.exec(t);){var r=w(n[1],n[1]),e=n[2]?w(n[2].replace(/\+/g," "),n[2]):"";i[r]=e}return i}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var A=self.__AMP_LOG;function j(t,n){throw new Error("failed to call initLogConstructor")}function C(t){return A.user||(A.user=M()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(A.user.win,t)?A.userForEmbed||(A.userForEmbed=M()):A.user}function M(t){return j()}function O(t,n,i,r,e,u,o,a,c,s,f){return t}function P(t,n,i,r,e,u,o,a,c,s,f){return C().assert(t,n,i,r,e,u,o,a,c,s,f)}function x(t){return(t.ownerDocument||t).defaultView}function k(t,n){return N(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function E(t,n){return N((i=I(t),(r=I(i)).isSingleDoc()?r.win:r),n);var i,r}function I(t){return t.nodeType?(n=x(t),k(n,"ampdoc")).getAmpDoc(t):t;var n}function N(t,n){O(function(t,n){var i=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!i||!i.ctor)}(t,n));var i=function(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}(t)[n];return i.obj||(O(i.ctor),O(i.context),i.obj=new i.ctor(i.context),O(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}var R,q="__AMP__EXPERIMENT_TOGGLES";function T(t,n){return t.replace(/^|,/g,"$&".concat(n," "))}function _(t,n,i){return function(t,n){for(var i in n)t.setAttribute(i,n[i]);return t}(t.createElement(n),i)}var D=function(t){return E(t,"documentInfo").get()},U=function(t){return k(t,"extensions")},B=function(t){return E(t,"viewport")};function z(t,n,i,r){var e=[],u=r&&null!=r.value&&""!==r.value?encodeURIComponent(r.name)+"="+encodeURIComponent(String(r.value)):null,o=i-t.length;u&&(o-=u.length+1);for(var a=Object.keys(n),c=0;co){var v=l.substr(0,o-h.length-1).replace(/%\w?$/,"");v&&e.push(h+v),u&&e.push(u);break}e.push(h+l),o-=d}}return e.length?t+"?"+e.join("&"):t}var F="amp-auto-ads",G={"type":!0,"rtc-config":!0,"layout":!0,"height":!0,"width":!0,"sticky":!0,"json":!0},$="attributes";function Y(t,n){return t[n]?(i=t[n],"[object Object]"!==p.call(i)||l(t[n])?(C().warn(F,n+" property not an object"),{}):function(t){var n={};for(var i in t)if(G[i]||i.startsWith("data-")){var r=f(t[i]);"number"==r||"string"==r||"boolean"==r?n[i]=String(t[i]):C().warn(F,"Attribute type not supported: "+r)}else C().warn(F,"Attribute not whitlisted: "+i);return n}(t[n])):{};var i}var K,L,X=function(){function t(t){this.zt=t,this.It=0,this.Ct=0,this.Ot=m()}var n=t.prototype;return n.has=function(t){return!!this.Ot[t]},n.get=function(t){var n=this.Ot[t];if(n)return n.access=++this.Ct,n.payload},n.put=function(t,n){this.has(t)||this.It++,this.Ot[t]={payload:n,access:this.Ct},this.qt()},n.qt=function(){if(!(this.It<=this.zt)){var t,n=this.Ot,i=this.Ct+1;for(var r in n){var e=n[r].access;eu?(e._i=0,e._i):i.isTooNearAnAd(u).then((function(i){if(i)return e._i=3,e._i;var u=r&&e.cC(e.nC);return e.oC=u?e.sC(t):e.fC(t,n.width),e.rC(e.nC,e.getAdElement()),u?it(e.getAdElement()).then((function(){return e.getAdElement().build()})).then((function(){var t=!e.getAdElement().classList.contains("i-amphtml-layout-awaiting-size");return e._i=t?2:1,e._i})):e.hC(n).then((function(t){return it(e.getAdElement()).then((function(){return e.getAdElement().build()})).then((function(){return e.wh.requestChangeSize(e.getAdElement(),t.height,t.width,t.margins)})).then((function(){return e._i=2,e._i}),(function(){return e._i=1,e._i}))}))}))}))},n.hC=function(t){return Promise.resolve({height:t.height||250,margins:this.uC})},n.fC=function(t,n){var i=r(r({"layout":n?"fixed":"fixed-height","height":"0","width":n||"auto","class":"i-amphtml-layout-awaiting-size"},t),this.eC);return _(this.ampdoc.win.document,"amp-ad",i)},n.sC=function(t){var n=r(r({"width":"100vw","height":"0","layout":"fixed","class":"i-amphtml-layout-awaiting-size","data-auto-format":"rspv","data-full-width":""},t),this.eC);return _(this.ampdoc.win.document,"amp-ad",n)},n.cC=function(t){return B(t).getSize().width<488},t}();function ct(t,n){var i=n.placements;if(!i)return C().info(et,"No placements in config"),[];var r=[];return i.forEach((function(n){!function(t,n,i){var r=ot[n.pos];if(r){var e=n.anchor;if(e){var u=st(t.getRootNode(),e);if(u.length){var o=void 0;if(n.style){var a=parseInt(n.style.top_m,10),c=parseInt(n.style.bot_m,10);(a||c)&&(o={top:a||void 0,bottom:c||void 0})}u.forEach((function(e){if(function(t,n){var i=1==n||4==n?t.parentElement:t;if(!i)return C().warn(et,"Parentless anchor with BEFORE/AFTER position."),!1;var r=i;return!ut.some((function(t){return i=t,!!((n=r).closest?n.closest(i):function(t,n,i){var r;for(r=t;r&&void 0!==r;r=r.parentElement)if(n(r))return r;return null}(n,(function(t){return function(t,n){var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}(t,i)})))&&(C().warn(et,"Placement inside denylisted ancestor: "+t),!0);var n,i}))}(e,n.pos)){var u=Y(n,$);i.push(new at(t,e,n.pos,r,u,o))}}))}else C().warn(et,"No anchor element found")}else C().warn(et,"No anchor in placement")}else C().warn(et,"No injector for position")}(t,n,r)})),r}function st(t,n){var i=n.selector;if(!i)return C().warn(et,"No selector in anchor"),[];var r=[].slice.call(function(t,n){return(void 0!==R?R:R=function(t){try{var n=t.ownerDocument,i=n.createElement("div"),r=n.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(t){return!1}}(t))?t.querySelectorAll(T(n,":scope")):function(t,n){var i=t.classList,r="i-amphtml-scoped";i.add(r);var e=T(n,".".concat(r)),u=t.querySelectorAll(e);return i.remove(r),u}(t,n)}(t.documentElement||t,i)),e=n.min_c||0;if(e>0&&(r=r.filter((function(t){return t.textContent.length>=e}))),"number"==typeof n.index||!n.all){var u=r[n.index||0];r=u?[u]:[]}if(0==r.length)return[];if(n.sub){var o=[];return r.forEach((function(t){o=o.concat(st(t,n.sub))})),o}return r}var ft=function(){function t(t,n,i,r){var e=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.lC=t.slice(0),this.dC=n,this.vC=i,this.pC=r,this.mC=0,this.gC=e}var n=t.prototype;return n.run=function(){var t,n=this;return this.pC.isMaxAdCountReached()?(t=function(){return n.bC()},new Promise((function(n){n(t())}))):this.yC().then((function(t){return t?n.run():n.bC()}))},n.bC=function(){return{adsPlaced:this.mC,totalAdsOnPage:this.pC.getAdCount()}},n.yC=function(){var t=this,n=this.lC.shift();return n?n.placeAd(this.dC,this.vC,this.pC,this.gC).then((function(i){return 2==i?(t.pC.addAd(n.getAdElement()),t.mC++,!0):t.yC()})):(C().info("amp-auto-ads","unable to fulfill ad strategy"),Promise.resolve(!1))},t}(),ht="amp-auto-ads",lt=function(){function t(t,n){this.wC=t,this.SC=n.initialMinSpacing,this.AC=n.subsequentMinSpacing.slice(0).sort((function(t,n){return t.adCount-n.adCount})),this.jC=n.maxAdCount,this.CC=this.MC()}var n=t.prototype;return n.addAd=function(t){this.wC.push(t),this.CC=this.MC()},n.getAdCount=function(){return this.wC.length},n.isMaxAdCountReached=function(){return this.getAdCount()>=this.jC},n.isTooNearAnAd=function(t){return this.OC(t,0)},n.OC=function(t,n){var i=this;return n>=this.wC.length?Promise.resolve(!1):this.PC(t,this.wC[n]).then((function(r){return r=n.top&&t<=n.bottom?0:Math.min(Math.abs(t-n.top),Math.abs(t-n.bottom))}))},n.MC=function(){for(var t=this.getAdCount(),n=this.SC,i=0;i."),Promise.resolve(!1)):this.EC()?("top"===this.dC.sticky?(U(this.ampdoc.win).installExtensionForDoc(this.ampdoc,"amp-ad","0.1"),this.IC()):(U(this.ampdoc.win).installExtensionForDoc(this.ampdoc,"amp-sticky-ad","1.0"),this.NC()),Promise.resolve(!0)):Promise.resolve(!1)},n.kC=function(){return!!this.ampdoc.getRootNode().querySelector("amp-sticky-ad, amp-ad[sticky]")},n.EC=function(){return C().assertArray(this.xC.optInStatus||[]).includes(2)},n.IC=function(){var t=B(this.ampdoc).getWidth(),n=r(r({},this.dC),{},{"width":String(t),"height":this.dC.height||"100"}),i=_(this.ampdoc.win.document,"amp-ad",n),e=this.ampdoc.getBody();e.insertBefore(i,e.firstChild)},n.NC=function(){var t=this.dC,n=B(this.ampdoc).getWidth(),i=r(r({},t),{},{"width":String(n),"height":t.height||"100"});delete i.sticky;var e=this.ampdoc.win.document,u=_(e,"amp-ad",i),o=_(e,"amp-sticky-ad",{"layout":"nodisplay"});o.appendChild(u);var a=this.ampdoc.getBody();a.insertBefore(o,a.firstChild)},t}(),pt="amp-auto-ads",mt=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(a,t);var n,i,e=(n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(n);if(i){var e=s(this).constructor;t=Reflect.construct(r,arguments,e)}else t=r.apply(this,arguments);return h(this,t)});function a(){return e.apply(this,arguments)}var f=a.prototype;return f.buildCallback=function(){var t=this,n=this.element.getAttribute("type");if(P(n,"Missing type attribute"),this.RC=function(t,n){return"adsense"==t?new H(n):"alright"==t?new Q(n):"denakop"==t?new V(n):"doubleclick"==t?new W(n):"firstimpression.io"==t?new Z(n):"premiumads"==t?new tt(n):"wunderkind"==t?new nt(n):null}(n,this.element),P(this.RC,"No AdNetworkConfig for type: "+n),this.RC.isEnabled(this.win)){var i=this.getAmpDoc();U(this.win).installExtensionForDoc(i,"amp-ad"),this.qC=this.getAmpDoc().whenFirstVisible().then((function(){return t.RC.filterConfig(t.TC(t.RC.getConfigUrl()))})),this._C()||this.DC()}},f.isLayoutSupported=function(){return!0},f.layoutCallback=function(){return this._C()?this.DC():o||(o=Promise.resolve(void 0))},f.TC=function(t){var n,i=this;return(n=this.win,k(n,"xhr")).fetchJson(t,{mode:"cors",method:"GET",credentials:"omit"}).then((function(t){return t.json()})).catch((function(t){return i.user().error(pt,"amp-auto-ads config xhr failed: "+t),null}))},f._C=function(){return t=this.win,n="auto-ads-layout-callback",i=function(t){var n,i,e,o,a;if(t[q])return t[q];t[q]=m();var c=t[q];g(c);var s=r(r({},null!==(n=t.AMP_CONFIG)&&void 0!==n?n:{}),null!==(i=t.AMP_EXP)&&void 0!==i?i:b((null===(e=t.__AMP_EXP)||void 0===e?void 0:e.textContent)||"{}"));for(var f in s){var h=s[f];"number"==typeof h&&h>=0&&h<=1&&(c[f]=Math.random()