(self.AMP=self.AMP||[]).push({n:"amp-analytics",v:"2007102309000",f:(function(AMP,_){ var k,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function ba(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;cc?Object.assign(a.$,a.S):Object.keys(a.S).forEach(function(a){return function(b){var c=a.S[b];if(F(a.$,b)){var d=a.$[b];if(x(c)&&x(d)){e.push({t:d,s:c,d:a.Oa+1});return}}a.$[b]=c}}(a)));a={S:a.S,$:a.$,Oa:a.Oa}}};function za(){this.Qc=100;this.ub=this.Rb=0;this.Sa=Object.create(null)}za.prototype.has=function(a){return!!this.Sa[a]};za.prototype.get=function(a){var b=this.Sa[a];if(b)return b.access=++this.ub,b.payload};za.prototype.put=function(a,b){this.has(a)||this.Rb++;this.Sa[a]={payload:b,access:this.ub};if(!(this.Rb<=this.Qc)){C().warn("lru-cache","Trimming LRU cache");a=this.Sa;var c=this.ub+1,d;for(d in a){var e=a[d].access;if(ea.length?!1:0==a.lastIndexOf(b,0)}function Ba(a,b){for(var c={},d=0;5>d&&(c.Pa=0,a=a.replace(/\${([^}]*)}/g,function(a){return function(c,d){a.Pa++;return b(d)}}(c)),c.Pa);c={Pa:c.Pa},d++);return a} function Ca(a,b){var c=/\${([^}]*)}/g;if("string"===typeof b)return Promise.resolve(a.replace(c,b));var d=[],e=0;a.replace(c,function(c){var f=arguments[arguments.length-2];d.push(a.slice(e,f));e=f+c.length;var h=b.apply(null,arguments);d.push(h)});d.push(a.slice(e));return Promise.all(d).then(function(a){return a.join("")})};var Da=E({c:!0,v:!0,a:!0,ad:!0,action:!0}),Ea,Fa,Ga=/[?&]amp_js[^&]*/,Ha=/[?&]amp_gsa[^&]*/,Ia=/[?&]amp_r[^&]*/,Ja=/[?&]amp_kit[^&]*/,Ka=/[?&]usqp[^&]*/; function H(a){Ea||(Ea=self.document.createElement("a"),Fa=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new za));var b=Fa,c=Ea;if(b&&b.has(a))a=b.get(a);else{c.href=a;c.protocol||(c.href=c.href);var d={href:c.href,protocol:c.protocol,host:c.host,hostname:c.hostname,port:"0"==c.port?"":c.port,pathname:c.pathname,search:c.search,hash:c.hash,origin:null};"/"!==d.pathname[0]&&(d.pathname="/"+d.pathname);if("http:"==d.protocol&&80==d.port||"https:"==d.protocol&&443==d.port)d.port="",d.host=d.hostname;d.origin= c.origin&&"null"!=c.origin?c.origin:"data:"!=d.protocol&&d.host?d.protocol+"//"+d.host:d.href;b&&b.put(a,d);a=d}return a}function La(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),f=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return f+=d[1]?"#"+d[1]:""} function Ma(a){var b=[],c;for(c in a){var d=a[c];if(null!=d)if(w(d))for(var e=0;e=d&&(b[c]=Math.random()d;d++){for(var f=d,g=0;8>g;g++)f=f&1?f>>>1^3988292384:f>>>1;c[d]=f}jc=c}a=Gb(a);c=4294967295;for(d=0;d>>8^jc[(c^a[d])&255];return((c^-1)>>>0).toString(36)} function mc(a){return a?Object.keys(a).filter(function(a){var b=kc.test(a);b||B().error("amp-analytics/linker","Invalid linker key: "+a);return b}).map(function(b){return b+"*"+Nb(String(a[b]))}).join("*"):""};function oc(a){this.l=a;this.Da={}} oc.prototype.get=function(a,b){if(!a||!b)return B().error("amp-analytics/linker-reader","LINKER_PARAM requires two params, name and id"),null;if(!F(this.Da,a)){var c=this.Da;var d=u(this.l.location.search);if(F(d,a)){d=d[a];var e=this.l.location;if(this.l.history.replaceState){var f;f=(f=e.search)&&"?"!=f?(f=f.replace(new RegExp("[?&]"+a+"=[^&]*","g"),"").replace(/^[?&]/,""))?"?"+f:"":"";this.l.history.replaceState(null,"",e.origin+e.pathname+f+(e.hash||""))}e=d.split("*");f=0==e.length%2;4>e.length|| !f?(B().error("amp-analytics/linker","Invalid linker_param value "+d),d=null):(d=Number(e.shift()),1!==d?(B().error("amp-analytics/linker","Invalid version number "+d),d=null):(d=e.shift(),e=e.join("*"),d={checksum:d,serializedIds:e}));if(d){e=d.serializedIds;c:{d=d.checksum;for(f=0;1>=f;f++)if(nc(e,f)==d){d=!0;break c}d=!1}if(d)for(d={},e=e.split("*"),f=0;fd)&&(B().error("amp-analytics/variables","Third argument in MATCH macro must be a number >= 0"),d=0);return(a=a.match(new RegExp(b)))&&a[d]?a[d]:""} function vc(a){var b=this;this.m=a;this.na=E({});this.md=K(this.m.win,"amp-analytics-linker-reader");this.na.$DEFAULT=sc;this.na.$SUBSTR=rc;P(this,"$TRIM",function(a){return a.trim()});P(this,"$TOLOWERCASE",function(a){return a.toLowerCase()});P(this,"$TOUPPERCASE",function(a){return a.toUpperCase()});P(this,"$NOT",function(a){return String(!a)});P(this,"$BASE64",function(a){return Nb(a)});P(this,"$HASH",this.jd.bind(this));P(this,"$IF",function(a,b,e){return wc(a)?b:e});this.na.$REPLACE=tc;this.na.$MATCH= uc;P(this,"$EQUALS",function(a,b){return a===b});P(this,"LINKER_PARAM",function(a,d){return b.md.get(a,d)});P(this,"TIMEZONE_CODE",function(){var a="";"Intl"in b.m.win&&"DateTimeFormat"in b.m.win.Intl&&(a=(new b.m.win.Intl.DateTimeFormat).resolvedOptions().timeZone);return a});P(this,"SCROLL_TOP",function(){return Math.round(N(b.m).getScrollTop())});P(this,"SCROLL_LEFT",function(){return Math.round(N(b.m).getScrollLeft())})} vc.prototype.getMacros=function(a){var b=this,c={COOKIE:function(c){var d=b.m.win;return hc(d,a)?Ob(d,c):null},CONSENT_STATE:xc(a)},d=gc(a)?{}:{FIRST_CONTENTFUL_PAINT:function(){return ob(b.m.win).getMetric("fcpv")},FIRST_VIEWPORT_READY:function(){return ob(b.m.win).getMetric("pc")},MAKE_BODY_VISIBLE:function(){return ob(b.m.win).getMetric("mbv")},LARGEST_CONTENTFUL_PAINT:function(){return ob(b.m.win).getMetric("lcpv")},FIRST_INPUT_DELAY:function(){return ob(b.m.win).getMetric("fid")},CUMULATIVE_LAYOUT_SHIFT:function(){return ob(b.m.win).getMetric("cls")}}; return Object.assign({},this.na,c,d)};function P(a,b,c){a.na[b]=c} vc.prototype.expandTemplate=function(a,b,c,d,e){var f=this;return Ca(a,function(a,h){if(0>b.iterations)return B().error("amp-analytics/variables","Maximum depth reached while expanding variables. Please ensure that the variables are not recursive."),a;if(!h)return"";var g=yc(h);h=g.name;g=g.argList;if(b.freezeVars[h])return a;a=b.getVar(h);var m=M(c);if("string"==typeof a)a=zc(f,a,b,c,m,d,e,g);else if(w(a)){for(h=0;h script".replace(/^|,/g,"$&:scope ")):kb(f,"> script");if(1!==g.length)throw Error("Found "+g.length+"