; (self.AMP=self.AMP||[]).push({m:0,v:"2601162341000",n:"amp-consent",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i=0&&t.indexOf(n,i)==i}var f,l,p=Object.prototype,v=p.hasOwnProperty,m=p.toString;function d(t){return"[object Object]"===m.call(t)}function g(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function b(t,n){return v.call(t,n)}function y(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,e=[],r=[];for(r.push({t:t,s:n,d:0});r.length>0;){var o=r.shift(),s=o.d,u=o.s,a=o.t;if(e.includes(u))throw new Error("Source object has a circular reference.");if(e.push(u),a!==u)if(s>i)Object.assign(a,u);else for(var c=0,h=Object.keys(u);c2&&void 0!==arguments[2]?arguments[2]:5;if(!isFinite(i)||i<0)throw new Error("Invalid depth: "+i);if(t===n)return!0;for(var e=[{a:t,b:n,depth:i}];e.length>0;){var r=e.shift(),o=r.a,s=r.b,a=r.depth;if(a>0){if(u(o)!==u(s))return!1;if(c(o)&&c(s)){if(o.length!==s.length)return!1;for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function T(t){var n,i=g();if(!t)return i;for(;n=D.exec(t);){var e=M(n[1],n[1]),r=n[2]?M(n[2].replace(/\+/g," "),n[2]):"";i[e]=r}return i}function L(t){var n=(t||self).location;return T(n.originalHash||n.hash)}var H="";function F(t){var n;return H||(H=(null===(n=t.AMP_CONFIG)||void 0===n?void 0:n.v)||"01".concat("2601162341000")),H}function V(t,n){var i=n||L(t);return["1","actions","amp","amp4ads","amp4email"].includes(i.development)||!!t.AMP_DEV_MODE}function q(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var G=self.__AMP_LOG;function B(t,n){throw new Error("failed to call initLogConstructor")}function W(t){return G.user||(G.user=z()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(G.user.win,t)?G.userForEmbed||(G.userForEmbed=z()):G.user}function z(t){return B()}function $(){return G.dev||(G.dev=B())}function J(t,n,i,e,r,o,s,u,a,c,h){return t}function K(t,n,i,e,r,o,s,u,a,c,h){return W().assert(t,n,i,e,r,o,s,u,a,c,h)}function Y(t,n){return et(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function Z(t,n){return et(it(nt(t)),n)}function Q(t,n){var i=it(nt(t));return st(i,n)?et(i,n):null}function X(t,n){return function(t,n){var i=rt(t,n);if(i)return i;var e,o,s,u,a=ot(t);return a[n]=(o=(e=new r).promise,s=e.reject,u=e.resolve,o.catch((function(){})),{obj:null,promise:o,resolve:u,reject:s,context:null,ctor:null}),a[n].promise}(it(t),n)}function tt(t,n){return rt(it(t),n)}function nt(t){return t.nodeType?(i=t,n=(i.ownerDocument||i).defaultView,Y(n,"ampdoc")).getAmpDoc(t):t;var n,i}function it(t){var n=nt(t);return n.isSingleDoc()?n.win:n}function et(t,n){J(st(t,n));var i=ot(t)[n];return i.obj||(J(i.ctor),J(i.context),i.obj=new i.ctor(i.context),J(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function rt(t,n){var i=ot(t)[n];return i?i.promise?i.promise:(et(t,n),i.promise=Promise.resolve(i.obj)):null}function ot(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function st(t,n){var i=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!i||!i.ctor)}var ut=function(t){return Z(t,"owners")},at=function(t){return Q(t,"url-replace")},ct=function(t){return Y(t,"xhr")},ht="notificationUIManager",ft=function(){function t(){this.t5=0,this.n5=e(),this.i5=function(){},this.e5=function(){}}var n=t.prototype;return n.onQueueEmpty=function(t){this.i5=t,0==this.t5&&t()},n.onQueueNotEmpty=function(t){this.e5=t,this.t5>0&&t()},n.registerUI=function(t){var n=this;0==this.t5&&this.e5(),this.t5++;var i=this.n5.then((function(){return t().then((function(){n.t5--,0==n.t5&&n.i5()}))}));return this.n5=i,i},t}();function lt(t){return t.data}function pt(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function vt(t){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:"source";return K(null!=t,"%s %s must be available",n,i),K(jt(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',n,i,t),t}function At(t){return Ct.cdnProxyRegex.test(Ot(t).origin)}function Ut(t){if(!At(t=Ot(t)))return t.href;var n=t.pathname.split("/"),i=n[1];K(St.has(i),"Unknown path prefix in url %s",t.href);var e=n[2],r="s"==e?"https://"+decodeURIComponent(n[3]):"http://"+decodeURIComponent(e);return K(r.indexOf(".")>0,"Expected a . in origin %s",r),n.splice(1,"s"==e?3:2),r+n.join("/")+function(t,n){if(!t||"?"==t)return"";var i=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),e=t.replace(i,"").replace(/^[?&]/,"");return e?"?"+e:""}(t.search)+(t.hash||"")}var Et=function(){function t(){}return t.getTop=function(t){return t.top},t.getLocation=function(t){return t.location},t.getDocumentReferrer=function(t){return t.document.referrer},t.getHostname=function(t){return t.location.hostname},t.getUserAgent=function(t){return t.navigator.userAgent},t.getUserLanguage=function(t){return t.navigator.userLanguage||t.navigator.language},t.getDevicePixelRatio=function(){return self.devicePixelRatio||1},t.getSendBeacon=function(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)},t.getXMLHttpRequest=function(t){return t.XMLHttpRequest},t.getImage=function(t){return t.Image},t}(),_t=function(){return self.AMP.config.urls}(),Nt="-test-amp-cookie-tmp";function Rt(t,n){var i=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!i)return null;for(var e=i.split(";"),r=0;r=0;u--)if(o=r[u]+"."+o,Mt(t,s,"delete",Date.now()+1e3,o),"delete"==Rt(t,s))return Mt(t,s,"delete",Date.now()-1e3,o),o;return null}function Mt(t,n,i,e,r,o,s){"ampproject.org"==r&&(i="delete",e=0);var u=encodeURIComponent(n)+"="+encodeURIComponent(i)+"; path=/"+(r?"; domain="+r:"")+"; expires="+new Date(e).toUTCString()+function(t,n){return n?"; SameSite=".concat(n):""}(0,o)+(s?"; Secure":"");try{t.document.cookie=u}catch(t){}}function Tt(t,n,i){if(n.allowOnProxyOrigin)K(!n.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");else{K(!At(t.location.href),"Should never attempt to set cookie on proxy origin: ".concat(i));var e=xt(t.location.href).hostname.toLowerCase(),r=xt(_t.cdn).hostname.toLowerCase();K(!(e==r||h(e,"."+r)),"Should never attempt to set cookie on proxy origin. (in depth check): "+i)}}var Lt=31536e6;var Ht="removeEventListener";function Ft(t){return!!t&&!(!b(t,"isDirty")||1!=t.isDirty)}function Vt(t){return 1==t||2!=t&&null}function qt(t,n,i){if(!t&&!n)return!0;if(t&&n){var e,r=Vt(t.consentState)===Vt(n.consentState),o=(t.consentString||"")===(n.consentString||"");e=i?!!t.isDirty==!!i:!!t.isDirty==!!n.isDirty;var s=E(t.consentMetadata,n.consentMetadata),u=E(t.purposeConsents,n.purposeConsents),a=t.tcfPolicyVersion==n.tcfPolicyVersion;return r&&o&&s&&u&&e&&a}return!1}function Gt(t,n,i,e,r,o){return{"consentState":t,"consentString":n,"consentMetadata":i,"purposeConsents":e,"isDirty":r,"tcfPolicyVersion":o}}function Bt(t,n,i,e,r){return{"consentStringType":t,"additionalConsent":n,"gdprApplies":i,"purposeOne":e,"gppSectionId":r}}function Wt(t){return!0===t||1===t?1:!1===t||0===t?2:5}function zt(t){return!!t.consentString||1===t.consentState||2===t.consentState}function $t(t){return 1===t?"accepted":2===t?"rejected":"unknown"}var Jt="CONSENT-STATE-MANAGER";function Kt(t){return X(t,"consentStateManager")}var Yt=function(){function t(t){var n=this;this.Lr=t,this.r5=null,this.o5=null,this.s5=null,this.u5=null,this.a5=null,this.c5=void 0;var i,e,o,s=new r;this.h5=s.resolve,this.f5=s.promise,this.consentPageViewId64=(i=!1,e=null,o=function(){return function(t){var n,i=function(t){var n=function(t,n){var i=t.crypto;if(!(i=i||t.msCrypto)||!i.getRandomValues)return null;var e=new Uint8Array(16);return i.getRandomValues(e),e}(t);return n||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}(t);if("string"==typeof i)return(n=t,Y(n,"crypto")).sha384Base64(i);var e,r=i;return e=function(){return(t=r,n=gt(t),btoa(n).replace(/[+/=]/g,(function(t){return It[t]}))).replace(/\.+$/,"");var t,n},new Promise((function(t){t(e())}))}(n.Lr.win)},function(){if(!i){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]&&arguments[1];this.c5||(this.c5={});var e=Object.keys(t);e.forEach((function(e){if(!i||!b(n.c5,e)){var r=t[e]?1:2;n.c5[e]=r}}))},n.getLastConsentInstanceInfo=function(){return J(this.o5),this.o5.get()},n.getConsentInstanceInfo=function(){return J(this.o5),this.o5.get().then((function(t){return Ft(t)?Gt(5):t}))},n.onConsentStateChange=function(t){J(this.o5),J(!this.s5),this.s5=t,this.getConsentInstanceInfo().then((function(n){t(n)}))},n.setConsentInstanceSharedData=function(t){J(this.o5),this.o5.sharedDataPromise=t},n.hasAllPurposeConsents=function(){this.h5()},n.whenHasAllPurposeConsents=function(){return this.f5},n.setDirtyBit=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.o5.setDirtyBit(t)},n.getConsentInstanceSharedData=function(){return J(this.o5),this.o5.sharedDataPromise},n.whenConsentReady=function(){if(this.o5)return e();if(!this.u5){var t=new r;this.u5=t.promise,this.a5=t.resolve}return this.u5},n.getSavedInstanceForTesting=function(){return this.o5.l5},t}(),Zt=function(){function t(t,n,i){var e,r,o;this.Lr=t,this.Wi=n,this.sharedDataPromise=null,this.p5=(e=nt(t),r=Y(e.win,"ampdoc"),X((o=r.isSingleDoc()?r.getSingleDoc():null)&&o.win==e.win?o:e,"storage")),this.v5=null,this.l5=null,this.m5="amp-consent:"+n,this.d5=i.onUpdateHref||null,this.d5&&Pt(this.d5,"AMP-CONSENT"),this.g5=void 0}var n=t.prototype;return n.setDirtyBit=function(){var t=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.g5=n,this.get().then((function(i){Ft(i)!==n&&t.update(i.consentState,i.consentString,i.purposeConsents,i.consentMetadata,n)}))},n.update=function(t,n,i,e,r,o){var s,u,a,c=(u=this.v5&&this.v5.consentState,1!==(a=s=t)&&2!==a&&3!==a&&4!==a&&5!==a&&(s=5),3==s?u||5:4==s&&u&&5!=u?u:s);if(3!==t){var h=this.v5;r&&Ft(h)?this.v5=Gt(c,n,e,i,!0,o):this.v5=Gt(c,n,e,i,void 0,o);var f=Gt(c,n,e,i,this.g5,o);qt(f,this.l5)||this.b5(f)}else{var l,p,v,m;this.v5=Gt(c,null===(l=this.v5)||void 0===l?void 0:l.consentString,null===(p=this.v5)||void 0===p?void 0:p.consentMetadata,null===(v=this.v5)||void 0===v?void 0:v.purposeConsents,void 0,null===(m=this.v5)||void 0===m?void 0:m.tcfPolicyVersion)}},n.b5=function(t){var n=this;this.p5.then((function(i){if(qt(t,n.v5,n.g5))if(5!==t.consentState){var e=function(t){var n,i,e=g(),r=t.consentState;if(1==r)e.s=1;else{if(2!=r)return null;e.s=0}return t.consentString&&(e.r=t.consentString),t.tcfPolicyVersion&&(e.e=t.tcfPolicyVersion),!0===t.isDirty&&(e.d=1),t.consentMetadata&&(e.m=(n=t.consentMetadata,i=g(),n.consentStringType&&(i.cst=n.consentStringType),n.additionalConsent&&(i.ac=n.additionalConsent),null!=n.gdprApplies&&(i.ga=n.gdprApplies),null!=n.purposeOne&&(i.po=n.purposeOne),null!=n.gppSectionId&&(i.gsi=n.gppSectionId),i)),t.purposeConsents&&(e.pc=t.purposeConsents),0==Object.keys(e)?null:e}(t);null!=e&&(n.l5=t,i.setNonBoolean(n.m5,e),n.y5(t))}else i.remove(n.m5)}))},n.get=function(){var t,n=this;return this.v5?Promise.resolve(this.v5):this.p5.then((function(i){return(t=i).get(n.m5)})).then((function(i){if(n.v5)return n.v5;var e=function(t){if(void 0===t)return Gt(5);if("boolean"==typeof t)return function(t){return Gt(Wt(t))}(t);if(!d(t))throw $().createError("Invalid stored consent value");return Gt(Wt(t.s),t.r,(n=t.m)?Bt(n.cst,n.ac,n.ga,n.po,n.gsi):Bt(),t.pc,t.d&&1===t.d,t.e);var n}(i);return n.l5=e,Ft(e)&&(n.y5(Gt(5)),t.remove(n.m5),n.l5=null),n.v5=e,n.v5})).catch((function(t){return $().error(Jt,"Failed to read storage",t),Gt(5)}))},n.y5=function(t){var n=this;if(this.d5&&!Ft(t)){var i=Vt(t.consentState);on(this.Lr).then((function(e){var r={"consentInstanceId":n.Wi,"ampUserId":e};null!=i&&(r.consentState=i),r.consentStateValue=$t(t.consentState),t.consentString&&(r.consentString=t.consentString),t.consentMetadata&&(r.consentMetadata=t.consentMetadata),t.purposeConsents&&(r.purposeConsents=t.purposeConsents),t.tcfPolicyVersion&&(r.tcfPolicyVersion=t.tcfPolicyVersion);var o={credentials:"include",method:"POST",body:r,ampCors:!1};n.Lr.whenFirstVisible().then((function(){rn(n.Lr.getHeadNode(),n.d5).then((function(t){ct(n.Lr.win).fetchJson(t,o)}))}))}))}},t}(),Qt="amp-consent/consent-config",Xt="amp-story-consent",tn={"promptUI":!0,"checkConsentHref":!0,"promptIfUnknownForGeoGroup":!0,"onUpdateHref":!0},nn={"CANONICAL_URL":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"SOURCE_URL":!0},en=function(){function t(t){this.tp=t,this.w5=null,this.Fw=null}var n=t.prototype;return n.getConsentConfigPromise=function(){return this.Fw||(this.Fw=this.I5()),this.Fw},n.getMatchedGeoGroup=function(){return this.w5},n.k5=function(t){var n=t.consents;if(!t.consents)return t;var i=Object.keys(n);if(K(i.length<=1,"%s: only single consent instance is supported",Qt),i.length>0){t.consentInstanceId=i[0];for(var e=t.consents[i[0]],r=Object.keys(e),o=0;o to use `geoOverride`",Qt);for(var e=g(t),r=Object.keys(t.geoOverride),o=0;o ".concat("amp-story-consent"))&&K(!t.promptUISrc,"%s: `promptUiSrc` cannot be specified while using %s.",Qt,Xt),t;var n},n.C5=function(){try{return function(t){var n,i,e,r=(n=t,C("script"),i=n,e="> ".concat("script"),I(i)?i.querySelectorAll(k(e,":scope")):S(i,e)),o=r.length;if(1!==o)throw new Error("Found ".concat(o,"