; (self.AMP=self.AMP||[]).push({m:1,v:"2601162341000",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="proxy.php?url=",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.UB=t,this.Fnt=!1,this.Qnt=!1,this._s=!1,this.Xnt=!1,this.cb=!1,this.pet=null,this.fet=n.uiConfig&&!0===n.uiConfig.overlay,this.met=n.captions&&n.captions.consentPromptCaption||"User Consent Prompt",this._et=n.captions&&n.captions.buttonActionCaption||"Focus Prompt",this.Pet=!1,this.vet=!0,this.RH=null,this.Aet=null,this.Iet=null,this.zi=t.getAmpDoc(),this.Il=F(this.zi,"viewport"),this.yn=(t=>F(this.zi,"viewer"))(),this.ei=t.element,this.i=t.win,this.Bo=this.i.document,this.bet=null,this.yb=!1,this.yet=null,this.Lg=null,this.Ret="30vh",this.Eet=!0,this.Met=!1,this.Cet=!1,this.Tet=this.wet.bind(this),this.sA=n,this.sl(n,e)}sl(t,n){if(n){const t=this.zi.getElementById(n);return t||U().error(Wt,"postPromptUI element with id=%s not found",n),this.pet=t,void(this.Qnt=!0)}const e=t.promptUI,i=t.promptUISrc;if(e){const t=this.zi.getElementById(e);t&&this.ei.contains(t)||U().error(Wt,"child element of with promptUI id %s not found",e),this.pet=t}else i&&(this.Fnt=!0,mt(i,this.ei),this.pet=this.Vet(i),this.Lg=this.ket(),this.yet=t.clientConfig||null)}show(t){if(!this.pet)return;if(this.Qnt&&!this.ei.contains(this.pet))return void I(this.pet,!0);I(this.ei,!0);const{classList:n}=this.ei;if(n.add("amp-active"),n.remove("amp-hidden"),this.UB.getViewport().addToFixedLayer(this.ei,!0),this.Fnt)this.Cet=t,this.Oet().then((()=>{this.UB.mutateElement((()=>{this.Qnt||(this.Iet=this.Bo.activeElement),this.xet(),this.Uet(),this.jet()}))}));else{const t=()=>{this.pet&&(I(this.pet,!0),this.Qnt||(this.Iet=this.Bo.activeElement,this.xet(),this.resume(),this.pet.focus()))};$t(this.pet)?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.pet).then((()=>this.pet.build())).then((()=>t())):t()}this._s=!0}hide(){this.pet&&(this.pause(),this.UB.mutateElement((()=>{if(this.Fnt&&this.Det(),!this.Qnt){const{classList:t}=this.ei;t.remove("amp-active"),t.add("amp-hidden")}this.Net(),this.Let(),this.Het(),this.Fet(),this.UB.getViewport().removeFromFixedLayer(this.ei),I(this.pet,!1),this._s=!1,this.Iet?(this.Iet.focus(),this.Iet=null):this.i.document.body.children.length>0&&this.i.document.body.children[0].focus()})))}pause(){this.pet&&Y(this.UB.element).schedulePause(this.UB.element,this.pet)}resume(){this.pet&&(Y(this.UB.element).scheduleLayout(this.UB.element,this.pet),Y(this.UB.element).scheduleResume(this.UB.element,this.pet))}qet(t){if(this.Ret="30vh",this.Eet=!0,this.Met=!1,t.initialHeight)if("string"==typeof t.initialHeight&&t.initialHeight.indexOf("vh")>=0){const n=parseInt(t.initialHeight,10);this.Ret=n>=80?"80vh":this.Ret,n>=10&&n<=80?(this.Ret=`${n}vh`,this.Met=n>60,this.fet=this.Met||this.fet):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.Met||(this.Eet=!1),this.bet.resolve()}Get(){if(!this.pet||!this._s||this.cb)return;this.Fet(),this.$et("requestFullOverlay");const{classList:t}=this.ei;t.add(Qt),this.sZ(),this.cb=!0}$et(t){this.yn.sendMessage(t,{},!0)}Vet(t){const n=this.ei.ownerDocument.createElement("iframe"),e=this.Bet(t);n.setAttribute("title",this.ei.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}Bet(t){const n=["allow-scripts","allow-popups"];this.zet(t)&&n.push("allow-same-origin");const e=this.Wet();return Array.prototype.push.apply(n,e),n.join(" ")}zet(t){const n=q(this.ei,"url"),e=n.parse(t),i=n.parse(this.zi.getUrl());return e.origin!=i.origin}Wet(){return(this.sA.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}))}ket(){const t=this.ei.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}Jet(){return xt(this.zi).then((t=>t.getLastConsentInstanceInfo().then((t=>({"clientConfig":this.yet,"consentState":St(t.consentState),"consentStateValue":St(t.consentState),"tcfPolicyVersion":t.tcfPolicyVersion,"consentMetadata":t.consentMetadata,"consentString":t.consentString,"promptTrigger":this.Cet?"action":"load","isDirty":!!t.isDirty,"purposeConsents":t.purposeConsents})))))}Oet(){this.bet=new i;const{classList:t}=this.ei;var n;n=this.ei,m("placeholder"),n.querySelector("placeholder")||R(this.ei,this.Lg),t.add(tn),I(this.pet,!1),this.yb=!1;const e=this.Jet().then((t=>Lt(this.ei,this.sA.promptUISrc,{"CONSENT_INFO":n=>JSON.stringify(t[n])}).then((n=>{this.pet.src=n,this.pet.setAttribute("name",JSON.stringify(t)),this.i.addEventListener("message",this.Tet),R(this.ei,this.pet)}))));return Promise.all([e,this.bet.promise,this.UB.mutateElement((()=>{I(this.Lg,!0)}))])}jet(){const{classList:t}=this.ei;t.add(Yt),I(this.Lg,!1),I(this.pet,!0),this.Met&&(t.add(Zt),E(this.pet)),this.Fet(),this.UB.mutateElement((()=>{t.remove(tn),this.UB.mutateElement((()=>{t.add(Xt),this.Xnt=!0,this.Ket()}))}))}Det(){const{classList:t}=this.ei;t.remove(Yt),t.remove(Zt),t.remove(nn),this.i.removeEventListener("message",this.Tet),t.remove(Qt),this.cb?this.$et("cancelFullOverlay"):this.Met&&this.Il.leaveLightboxMode(),this.cb=!1,t.remove(Xt),this.Xnt=!1,this.pet.removeAttribute("name"),I(this.Lg,!1),this.yb=!0,this.i.setTimeout((()=>{this.yb&&y(this.pet)}),1e3)}Uet(){if(this.Pet||this.Met)return;const t=this.Bo.createElement("div"),n=this.Bo.createElement("button"),e=this.Bo.createElement("div");t.setAttribute("role","alertdialog"),e.textContent=this.met,n.textContent=this._et,n.onclick=()=>{E(this.pet)},t.appendChild(e),t.appendChild(n);const{classList:i}=t;i.add("i-amphtml-consent-alertdialog"),this.UB.element.appendChild(t),E(n),this.Pet=!0,this.Aet=t}Let(){this.Aet&&(y(this.Aet),delete this.Aet)}Fet(){A(this.ei,{transform:"",transition:""})}Ket(){const{classList:t}=this.ei;this.pet&&A(this.pet,{height:this.Ret}),function(t,n){const{style:e}=t;for(const t in n)e.setProperty(P(g(e,t)),String(n[t]),"important")}(this.ei,{"--i-amphtml-modal-height":`${this.Ret}`}),t.add("i-amphtml-consent-ui-iframe-transform"),(this.Eet||this.Met)&&t.add(nn),this.Met&&this.Il.enterLightboxMode()}xet(){if(this.fet){if(!this.RH){const t=this.i.document.createElement("div");t.classList.add("i-amphtml-consent-ui-mask"),this.ei.ownerDocument.body.appendChild(t),this.RH=t}I(this.RH,!0),this.sZ()}}Net(){this.fet&&(this.RH&&I(this.RH,!1),this.Het())}sZ(){this.vet&&(this.Il.enterOverlayMode(),this.vet=!1)}Het(){this.vet||(this.Il.leaveOverlayMode(),this.vet=!0)}wet(t){if(this.pet.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.qet(n),"enter-fullscreen"===e){if(!this.Xnt||this.Met||this.Bo.activeElement!==this.pet&&!this.Cet)return void this.Qet(i,e,!0);this.Qet(i,e),this.UB.mutateElement((()=>{this.Get()}))}}Qet(t,n,e=!1){this.Yet("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.")}Yet(t,n,e,i,s){const o=this.pet.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.Zet=null,this.Xet=null,this.tst=null,this.nst=null,this.est=null,this.rV=null,this.ist=null,this.sst=null,this.ost=null,this.rst=!1,this.hst=!1,this.ast=!1,this.Xr=this.getVsync(),this.lst=null,this.ust=null,this.pst=null,this.dst=null}getConsentPolicy(){return null}buildCallback(){L(this.element.getAttribute("id"),"amp-consent should have an id");const t=new class{constructor(t){this.yf=t,this.pst=null,this.Lb=null}getConsentConfigPromise(){return this.Lb||(this.Lb=this.fst()),this.Lb}getMatchedGeoGroup(){return this.pst}mst(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.gst(t))).then((t=>this.vst(t)))}Pst(t){return t.geoOverride?(n=this.yf,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}jnt(){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}