; (self.AMP=self.AMP||[]).push({m:1,v:"2410031633000",n:"amp-consent",ev:"0.1",l:!0,f:function(t,n){(()=>{var n;function e(){return n||(n=Promise.resolve(void 0))}var i=class{constructor(){this.promise=new Promise(((t,n)=>{this.resolve=t,this.reject=n}))}},{isArray:s}=Array;function o(t,n){const e=t.length-n.length;return e>=0&&t.indexOf(n,e)==e}var r,{hasOwnProperty:h,toString:c}=Object.prototype;function a(t){return"[object Object]"===c.call(t)}function l(t){const n=Object.create(null);return t&&Object.assign(n,t),n}function u(t,n){return h.call(t,n)}function p(t,n,e=10){const i=[],s=[];for(s.push({t:t,s:n,d:0});s.length>0;){const{d:t,s:n,t:o}=s.shift();if(i.includes(n))throw new Error("Source object has a circular reference.");if(i.push(n),o!==n)if(t>e)Object.assign(o,n);else for(const e of Object.keys(n)){const i=n[e];if(u(o,e)){const n=o[e];if(a(i)&&a(n)){s.push({t:n,s:i,d:t+1});continue}}o[e]=i}}return t}function d(t,n,e,i,s,o,r,h,c,a,l){return t}function f(t,n){return t.replace(/^|,/g,`$&${n} `)}function m(t){d(/^[\w-]+$/.test(t))}var _=["Webkit","webkit","Moz","moz","ms","O","o"];function P(t){const n=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return _.some((t=>n.startsWith(t+"-")))?`-${n}`:n}function g(t,n,e){if(n.startsWith("--"))return n;r||(r=l());let i=r[n];if(!i||e){if(i=n,void 0===t[n]){const e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),s=function(t,n){for(let e=0;e<_.length;e++){const i=_[e]+n;if(void 0!==t[i])return i}return""}(t,e);void 0!==t[s]&&(i=s)}e||(r[n]=i)}return i}function v(t,n,e,i,s){const o=g(t.style,n,s);if(!o)return;const r=i?e+i:e;t.style.setProperty(P(o),r)}function A(t,n){for(const e in n)v(t,e,n[e])}function I(t,n){void 0===n&&(n=t.hasAttribute("hidden")),n?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function b(t,n,e=5){if(!isFinite(e)||e<0)throw new Error("Invalid depth: "+e);if(t===n)return!0;const i=[{a:t,b:n,depth:e}];for(;i.length>0;){const{a:t,b:n,depth:e}=i.shift();if(e>0){if(typeof t!=typeof n)return!1;if(s(t)&&s(n)){if(t.length!==n.length)return!1;for(let s=0;s{})),{obj:null,promise:n,resolve:s,reject:e,context:null,ctor:null}}(),s[n].promise}(z(t),n)}function $(t,n){return J(z(t),n)}function B(t){return t.nodeType?(e=t,n=(e.ownerDocument||e).defaultView,H(n,"ampdoc")).getAmpDoc(t):t;var n,e}function z(t){const n=B(t);return n.isSingleDoc()?n.win:n}function W(t,n){N(Q(t,n));const e=K(t)[n];return e.obj||(N(e.ctor),N(e.context),e.obj=new e.ctor(e.context),N(e.obj),e.context=null,e.resolve&&e.resolve(e.obj)),e.obj}function J(t,n){const e=K(t)[n];return e?e.promise?e.promise:(W(t,n),e.promise=Promise.resolve(e.obj)):null}function K(t){let n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function Q(t,n){const e=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!e||!e.ctor)}var Y=t=>F(t,"owners"),Z=t=>q(t,"url-replace"),X=t=>H(t,"xhr"),tt="notificationUIManager";function nt(t){return t.data}function et(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function it(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function st(t){for(var n=1;nself.AMP.config.urls)(),pt=new Set(["c","v","a","ad"]),dt=t=>"string"==typeof t?ft(t):t;function ft(t,n){return ct||(ct=self.document.createElement("a")),function(t,n,e){return t.href="",new URL(n,t.href)}(ct,t)}function mt(t,n,e="source"){var i;return L(null!=t,"%s %s must be available",n,e),L("https:"==(i=dt(i=t)).protocol||"localhost"==i.hostname||"127.0.0.1"==i.hostname||o(i.hostname,".localhost")||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',n,e,t),t}function _t(t){return ut.cdnProxyRegex.test(dt(t).origin)}function Pt(t){if(!_t(t=dt(t)))return t.href;const n=t.pathname.split("/"),e=n[1];L(pt.has(e),"Unknown path prefix in url %s",t.href);const i=n[2],s="s"==i?"https://"+decodeURIComponent(n[3]):"http://"+decodeURIComponent(i);return L(s.indexOf(".")>0,"Expected a . in origin %s",s),n.splice(1,"s"==i?3:2),s+n.join("/")+function(t,n){if(!t||"?"==t)return"";const e=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),i=t.replace(e,"").replace(/^[?&]/,"");return i?"?"+i:""}(t.search)+(t.hash||"")}var gt=class{static getTop(t){return t.top}static getLocation(t){return t.location}static getDocumentReferrer(t){return t.document.referrer}static getHostname(t){return t.location.hostname}static getUserAgent(t){return t.navigator.userAgent}static getUserLanguage(t){return t.navigator.userLanguage||t.navigator.language}static getDevicePixelRatio(){return self.devicePixelRatio||1}static getSendBeacon(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)}static getXMLHttpRequest(t){return t.XMLHttpRequest}static getImage(t){return t.Image}},vt=(()=>self.AMP.config.urls)(),At="-test-amp-cookie-tmp";function It(t,n){const e=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!e)return null;const i=e.split(";");for(let t=0;txt(t).then((t=>t.consentPageViewId64()))},e);return Z(t).expandUrlAsync(n,i,st(st({},i),Nt))}function Ht(t){return(n=t,G(n,"cid")).then((t=>t.get({scope:"AMP-CONSENT",createCookieIfNotPresent:!0},e())));var n}var Ft,qt="consent-policy-manager",Gt={"default":!0,"_till_responded":!0,"_till_accepted":!0,"_auto_reject":!0};function $t(t){const n=t.tagName;return n.startsWith("AMP-")&&!("AMP-STICKY-AD-TOP-PADDING"==n||"AMP-BODY"==n)}function Bt(t){return function(t,n){if(d(1===n.length),d(Array.isArray(n)||u(n,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){const e=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return n[0]}});t.innerHTML=e.createHTML("ignored")}else t.innerHTML=n[0];const e=t.firstElementChild;return d(e),d(!e.nextElementSibling),t.removeChild(e),e}(Ft,t)}var zt=[''],Wt="amp-consent-ui",Jt=["allow-popups-to-escape-sandbox","allow-top-navigation-by-user-activation"],Kt=["geolocation","payment"],Qt="i-amphtml-consent-ui-iframe-fullscreen",Yt="i-amphtml-consent-ui-iframe-active",Zt="i-amphtml-consent-ui-modal",Xt="i-amphtml-consent-ui-in",tn="i-amphtml-consent-ui-loading",nn="i-amphtml-consent-ui-border-enabled",en=class{constructor(t,n,e){this.tD=t,this._nt=!1,this.Pnt=!1,this.rs=!1,this.Ant=!1,this.WP=!1,this.Int=null,this.Rnt=n.uiConfig&&!0===n.uiConfig.overlay,this.Ent=n.captions&&n.captions.consentPromptCaption||"User Consent Prompt",this.Mnt=n.captions&&n.captions.buttonActionCaption||"Focus Prompt",this.Cnt=!1,this.Tnt=!0,this.iK=null,this.Vnt=null,this.Snt=null,this.Ni=t.getAmpDoc(),this.Uu=F(this.Ni,"viewport"),this.Fe=(t=>F(this.Ni,"viewer"))(),this.qt=t.element,this.i=t.win,this.Zh=this.i.document,this.Ont=null,this.CM=!1,this.xnt=null,this.wg=null,this.Unt="30vh",this.jnt=!0,this.Dnt=!1,this.Nnt=!1,this.Lnt=this.Hnt.bind(this),this.aA=n,this.Au(n,e)}Au(t,n){if(n){const t=this.Ni.getElementById(n);return t||U().error(Wt,"postPromptUI element with id=%s not found",n),this.Int=t,void(this.Pnt=!0)}const e=t.promptUI,i=t.promptUISrc;if(e){const t=this.Ni.getElementById(e);t&&this.qt.contains(t)||U().error(Wt,"child element of with promptUI id %s not found",e),this.Int=t}else i&&(this._nt=!0,mt(i,this.qt),this.Int=this.Fnt(i),this.wg=this.qnt(),this.xnt=t.clientConfig||null)}show(t){if(!this.Int)return;if(this.Pnt&&!this.qt.contains(this.Int))return void I(this.Int,!0);I(this.qt,!0);const{classList:n}=this.qt;if(n.add("amp-active"),n.remove("amp-hidden"),this.tD.getViewport().addToFixedLayer(this.qt,!0),this._nt)this.Nnt=t,this.Gnt().then((()=>{this.tD.mutateElement((()=>{this.Pnt||(this.Snt=this.Zh.activeElement),this.$nt(),this.Bnt(),this.znt()}))}));else{const t=()=>{this.Int&&(I(this.Int,!0),this.Pnt||(this.Snt=this.Zh.activeElement,this.$nt(),this.resume(),this.Int.focus()))};$t(this.Int)?function(t){if(d($t(t)),t.createdCallback)return Promise.resolve(t);if(!t.__AMP_UPG_PRM){const n=new i;t.__AMP_UPG_PRM=n.promise,t.__AMP_UPG_RES=n.resolve}const n=t.__AMP_UPG_PRM;return d(n),n}(this.Int).then((()=>this.Int.build())).then((()=>t())):t()}this.rs=!0}hide(){this.Int&&(this.pause(),this.tD.mutateElement((()=>{if(this._nt&&this.Wnt(),!this.Pnt){const{classList:t}=this.qt;t.remove("amp-active"),t.add("amp-hidden")}this.Jnt(),this.Knt(),this.Qnt(),this.Ynt(),this.tD.getViewport().removeFromFixedLayer(this.qt),I(this.Int,!1),this.rs=!1,this.Snt?(this.Snt.focus(),this.Snt=null):this.i.document.body.children.length>0&&this.i.document.body.children[0].focus()})))}pause(){this.Int&&Y(this.tD.element).schedulePause(this.tD.element,this.Int)}resume(){this.Int&&(Y(this.tD.element).scheduleLayout(this.tD.element,this.Int),Y(this.tD.element).scheduleResume(this.tD.element,this.Int))}Znt(t){if(this.Unt="30vh",this.jnt=!0,this.Dnt=!1,t.initialHeight)if("string"==typeof t.initialHeight&&t.initialHeight.indexOf("vh")>=0){const n=parseInt(t.initialHeight,10);this.Unt=n>=80?"80vh":this.Unt,n>=10&&n<=80?(this.Unt=`${n}vh`,this.Dnt=n>60,this.Rnt=this.Dnt||this.Rnt):U().error(Wt,`Inavlid initial height: ${t.initialHeight}.Minimum: 10vh. Maximum: 80vh.`)}else U().error(Wt,`Inavlid initial height: ${t.initialHeight}.Must be a string in "vh" units.`);!1!==t.border||this.Dnt||(this.jnt=!1),this.Ont.resolve()}Xnt(){if(!this.Int||!this.rs||this.WP)return;this.Ynt(),this.het("requestFullOverlay");const{classList:t}=this.qt;t.add(Qt),this.v6(),this.WP=!0}het(t){this.Fe.sendMessage(t,{},!0)}Fnt(t){const n=this.qt.ownerDocument.createElement("iframe"),e=this.cet(t);n.setAttribute("title",this.qt.title||"Consent Banner"),n.setAttribute("sandbox",e),n.setAttribute("allow",Kt.join("; "));const{classList:i}=n;return i.add("i-amphtml-consent-ui-fill"),n}cet(t){const n=["allow-scripts","allow-popups"];this.aet(t)&&n.push("allow-same-origin");const e=this.let();return Array.prototype.push.apply(n,e),n.join(" ")}aet(t){const n=q(this.qt,"url"),e=n.parse(t),i=n.parse(this.Ni.getUrl());return e.origin!=i.origin}let(){return(this.aA.sandbox||"").split(" ").filter(Boolean).filter((t=>{const n=-1!==Jt.indexOf(t);return n||U().error(Wt,`The sandbox attribute "${t}" is not allowed`),n}))}qnt(){const t=this.qt.ownerDocument.createElement("placeholder");I(t,!1),t.classList.add("i-amphtml-consent-ui-placeholder");const n=function(t){const n=t.ownerDocument||t;return Ft&&Ft.ownerDocument===n||(Ft=n.createElement("div")),Bt}(t)(zt);return t.appendChild(n),t}pet(){return xt(this.Ni).then((t=>t.getLastConsentInstanceInfo().then((t=>({"clientConfig":this.xnt,"consentState":St(t.consentState),"consentStateValue":St(t.consentState),"tcfPolicyVersion":t.tcfPolicyVersion,"consentMetadata":t.consentMetadata,"consentString":t.consentString,"promptTrigger":this.Nnt?"action":"load","isDirty":!!t.isDirty,"purposeConsents":t.purposeConsents})))))}Gnt(){this.Ont=new i;const{classList:t}=this.qt;var n;n=this.qt,m("placeholder"),n.querySelector("placeholder")||R(this.qt,this.wg),t.add(tn),I(this.Int,!1),this.CM=!1;const e=this.pet().then((t=>Lt(this.qt,this.aA.promptUISrc,{"CONSENT_INFO":n=>JSON.stringify(t[n])}).then((n=>{this.Int.src=n,this.Int.setAttribute("name",JSON.stringify(t)),this.i.addEventListener("message",this.Lnt),R(this.qt,this.Int)}))));return Promise.all([e,this.Ont.promise,this.tD.mutateElement((()=>{I(this.wg,!0)}))])}znt(){const{classList:t}=this.qt;t.add(Yt),I(this.wg,!1),I(this.Int,!0),this.Dnt&&(t.add(Zt),E(this.Int)),this.Ynt(),this.tD.mutateElement((()=>{t.remove(tn),this.tD.mutateElement((()=>{t.add(Xt),this.Ant=!0,this.det()}))}))}Wnt(){const{classList:t}=this.qt;t.remove(Yt),t.remove(Zt),t.remove(nn),this.i.removeEventListener("message",this.Lnt),t.remove(Qt),this.WP?this.het("cancelFullOverlay"):this.Dnt&&this.Uu.leaveLightboxMode(),this.WP=!1,t.remove(Xt),this.Ant=!1,this.Int.removeAttribute("name"),I(this.wg,!1),this.CM=!0,this.i.setTimeout((()=>{this.CM&&y(this.Int)}),1e3)}Bnt(){if(this.Cnt||this.Dnt)return;const t=this.Zh.createElement("div"),n=this.Zh.createElement("button"),e=this.Zh.createElement("div");t.setAttribute("role","alertdialog"),e.textContent=this.Ent,n.textContent=this.Mnt,n.onclick=()=>{E(this.Int)},t.appendChild(e),t.appendChild(n);const{classList:i}=t;i.add("i-amphtml-consent-alertdialog"),this.tD.element.appendChild(t),E(n),this.Cnt=!0,this.Vnt=t}Knt(){this.Vnt&&(y(this.Vnt),delete this.Vnt)}Ynt(){A(this.qt,{transform:"",transition:""})}det(){const{classList:t}=this.qt;this.Int&&A(this.Int,{height:this.Unt}),function(t,n){const{style:e}=t;for(const t in n)e.setProperty(P(g(e,t)),String(n[t]),"important")}(this.qt,{"--i-amphtml-modal-height":`${this.Unt}`}),t.add("i-amphtml-consent-ui-iframe-transform"),(this.jnt||this.Dnt)&&t.add(nn),this.Dnt&&this.Uu.enterLightboxMode()}$nt(){if(this.Rnt){if(!this.iK){const t=this.i.document.createElement("div");t.classList.add("i-amphtml-consent-ui-mask"),this.qt.ownerDocument.body.appendChild(t),this.iK=t}I(this.iK,!0),this.v6()}}Jnt(){this.Rnt&&(this.iK&&I(this.iK,!1),this.Qnt())}v6(){this.Tnt&&(this.Uu.enterOverlayMode(),this.Tnt=!1)}Qnt(){this.Tnt||(this.Uu.leaveOverlayMode(),this.Tnt=!0)}Hnt(t){if(this.Int.contentWindow!==t.source)return;const n=nt(t);if(!n||"consent-ui"!=n.type)return;const e=n.action,i=n.type;if("ready"===e&&this.Znt(n),"enter-fullscreen"===e){if(!this.Ant||this.Dnt||this.Zh.activeElement!==this.Int&&!this.Nnt)return void this.fet(i,e,!0);this.fet(i,e),this.tD.mutateElement((()=>{this.Xnt()}))}}fet(t,n,e=!1){this.met("amp-consent-response",t,n,e?"error":"success",e?"Could not enter fullscreen. Fullscreen is only supported when the iframe is visible as a bottom sheet and after user interaction.":"Entering fullscreen.")}met(t,n,e,i,s){const o=this.Int.contentWindow;o&&o.postMessage({type:t,requestType:n,requestAction:e,state:i,info:s},"*")}},sn=null,on="*",rn=/^[a-zA-Z0-9\-_.]+$/,hn="amp-analytics/linker";function cn(t,n){const e=n||0;return function(t){sn||(sn=function(){const t=new Array(256);for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)1&e?e=e>>>1^3988292384:e>>>=1;t[n]=e}return t}());const n=(e=t,"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):rt(unescape(encodeURIComponent(e))));var e;let i=-1>>>0;for(let t=0;t>>8^sn[e]}return(-1^i)>>>0}([function(){const t=(new Date).getTimezoneOffset(),n=gt.getUserLanguage(window);return[gt.getUserAgent(window),t,n].join(on)}(),Math.floor(Date.now()/6e4)-e,t].join(on)).toString(36)}function an(t){return function(t){const n=function(t){return rt(atob(t.replace(/[-_.]/g,(t=>at[t]))))}(t);return function(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8").decode(t);const n=ht(new Uint8Array(t.buffer||t));return decodeURIComponent(escape(n))}(n)}(String(t))}var ln="amp-consent/cookie-writer",un={"referrerDomains":!0,"enabled":!0,"cookiePath":!0,"cookieMaxAge":!0,"cookieSecure":!0,"cookieDomain":!0},pn={"LINKER_PARAM":!0},dn="amp-consent",fn="loaded",mn=t=>"accept"===t||"reject"===t||"dismiss"===t,_n="consentStateManager",Pn="consentPolicyManager",gn="amp-consent",vn="accept",An="reject",In="dismiss",bn=class extends t.BaseElement{constructor(t){super(t),this._et=null,this.Pet=null,this.vet=null,this.Aet=null,this.Iet=null,this.gk=null,this.bet=null,this.yet=null,this.Ret=null,this.Eet=!1,this.Met=!1,this.Cet=!1,this.ar=this.getVsync(),this.Tet=null,this.wet=null,this.Vet=null,this.ket=null}getConsentPolicy(){return null}buildCallback(){L(this.element.getAttribute("id"),"amp-consent should have an id");const t=new class{constructor(t){this.zf=t,this.Vet=null,this.Ow=null}getConsentConfigPromise(){return this.Ow||(this.Ow=this.Oet()),this.Ow}getMatchedGeoGroup(){return this.Vet}xet(t){const n=t.consents;if(!t.consents)return t;const e=Object.keys(n);if(L(e.length<=1,"%s: only single consent instance is supported",Ut),e.length>0){t.consentInstanceId=e[0];const n=t.consents[e[0]],i=Object.keys(n);for(let e=0;ethis.Net(t))).then((t=>this.Let(t)))}Det(t){return t.geoOverride?(n=this.zf,function(t,n,e,i){const s=$(t,n);if(s)return s;const o=B(t);return o.whenExtensionsKnown().then((()=>{const t=o.getExtensionVersion(e);return t?H(o.win,"extensions").waitForExtension(e,t):null})).then((e=>e?$(t,n):null))}(n,"geo","amp-geo")).then((n=>{L(n,"%s: requires to use `geoOverride`",Ut);const e=l(t),i=Object.keys(t.geoOverride);for(let s=0;s amp-story-consent",n.querySelector(f("> amp-story-consent",":scope"))&&L(!t.promptUISrc,"%s: `promptUiSrc` cannot be specified while using %s.",Ut,jt),t;var n}Uet(){try{return function(t){const n=(i=t,m("script"),i.querySelectorAll(f("> script",":scope"))),{length:e}=n;var i;if(1!==e)throw new Error(`Found ${e}